From db7857afd73c51cb9ed12556f9b28c5baae51eaa Mon Sep 17 00:00:00 2001 From: Nico Melone Date: Thu, 30 Jan 2020 08:39:34 -0600 Subject: [PATCH] Added holiday to profile --- package-lock.json | 263 ++++++++++---------- src/app/auth/profile/profile.component.html | 7 + src/app/auth/profile/profile.component.ts | 10 +- 3 files changed, 150 insertions(+), 130 deletions(-) diff --git a/package-lock.json b/package-lock.json index 307bf9a..1a5ecc0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1038,28 +1038,28 @@ } }, "@angular/platform-browser-dynamic": { - "version": "8.2.10", - "resolved": "https://registry.npmjs.org/@angular/platform-browser-dynamic/-/platform-browser-dynamic-8.2.10.tgz", - "integrity": "sha512-mpViCrRlCOtM4iW1VwPwANEAPLu2gHAQbtnZheSN1RSyuXFoe1th8ToGfSWcsWa0Hep6xU0sunYbaYWtb2IgjA==", + "version": "8.2.14", + "resolved": "https://registry.npmjs.org/@angular/platform-browser-dynamic/-/platform-browser-dynamic-8.2.14.tgz", + "integrity": "sha512-mO2JPR5kLU/A3AQngy9+R/Q5gaF9csMStBQjwsCRI0wNtlItOIGL6+wTYpiTuh/ux+WVN1F2sLcEYU4Zf1ud9A==", "requires": { "tslib": "^1.9.0" } }, "@angular/pwa": { - "version": "0.803.9", - "resolved": "https://registry.npmjs.org/@angular/pwa/-/pwa-0.803.9.tgz", - "integrity": "sha512-x3PMgEVGLolFQ+e5Pj9ppcm3KwSGhut6Ibe6Zy3H9p064H76FSgGrh/PlatUHHAtWHVe2GYb3p7RKXqRrwsK+g==", + "version": "0.803.23", + "resolved": "https://registry.npmjs.org/@angular/pwa/-/pwa-0.803.23.tgz", + "integrity": "sha512-OxDLF5r3Gg3TvtdIkXsHaNJLJS+BVMUct0G6EfdvgxYxQ5pdRyhHDaEMl8WZaokPb8R+R1uwsV2gLW24dT1Iuw==", "requires": { - "@angular-devkit/core": "8.3.9", - "@angular-devkit/schematics": "8.3.9", - "@schematics/angular": "8.3.9", + "@angular-devkit/core": "8.3.23", + "@angular-devkit/schematics": "8.3.23", + "@schematics/angular": "8.3.23", "parse5-html-rewriting-stream": "5.1.0" }, "dependencies": { "@angular-devkit/core": { - "version": "8.3.9", - "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-8.3.9.tgz", - "integrity": "sha512-LYNdY8UpcEGaqWq0smPhSAiz+Oq1gv4j1LGLLyY1d2CJpf4czIuI8SkTHtmGMjpKy8ss/Vk1mHwRjBrWB0dUag==", + "version": "8.3.23", + "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-8.3.23.tgz", + "integrity": "sha512-y++LN6R/fu+obPUKEMDSKZ5FzeWN5rV0Z8vrdC+uF02VJLv/5QI/dUx3ROKFzJO3m2LU6EAuo5b/TLAPq4ving==", "requires": { "ajv": "6.10.2", "fast-json-stable-stringify": "2.0.0", @@ -1069,148 +1069,151 @@ } }, "@angular-devkit/schematics": { - "version": "8.3.9", - "resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-8.3.9.tgz", - "integrity": "sha512-JKrXdbJhyvvMfSoJ01l5zDk1Rhg0em0tgyzFWiqQ+cSt/zbPQrDRDpNJ7f95dPNu6R1KCuojAnaC8MXKRNTm0A==", + "version": "8.3.23", + "resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-8.3.23.tgz", + "integrity": "sha512-O8i/vn6YfqbT0q7o4jsVOTnWE07T1tcvk2zJ4O/1ete2z+Z2aw1YtIddwXEGJNCDpeE0B7f2sUHoLOS4Jc4O9w==", "requires": { - "@angular-devkit/core": "8.3.9", + "@angular-devkit/core": "8.3.23", "rxjs": "6.4.0" } }, "@schematics/angular": { - "version": "8.3.9", - "resolved": "https://registry.npmjs.org/@schematics/angular/-/angular-8.3.9.tgz", - "integrity": "sha512-hVEkssR35otuZbHUYx9bwhhGms5deM4+lJG+FeasAjPCNkOVzIemVvF/DuBDitb4WxGpr99hjtEBr7yBIyVAUQ==", + "version": "8.3.23", + "resolved": "https://registry.npmjs.org/@schematics/angular/-/angular-8.3.23.tgz", + "integrity": "sha512-yisP1iCLGC4VnZNC3kOnYyTS5cmfKEnLM9bMzhZGMWwov9RRfdxKKeSnG9FJNwHxI0WjQ0UWwfiz1dj0YacG3g==", "requires": { - "@angular-devkit/core": "8.3.9", - "@angular-devkit/schematics": "8.3.9" + "@angular-devkit/core": "8.3.23", + "@angular-devkit/schematics": "8.3.23" } } } }, "@angular/router": { - "version": "8.2.10", - "resolved": "https://registry.npmjs.org/@angular/router/-/router-8.2.10.tgz", - "integrity": "sha512-qY5HnxrP1pKq87xp/iREVEGFmIB+NXZnS4BFN0sU8vwqPtEv8yC45YNIilT4zwn2fDxmTHvC7W+t3+yRizz+cQ==", + "version": "8.2.14", + "resolved": "https://registry.npmjs.org/@angular/router/-/router-8.2.14.tgz", + "integrity": "sha512-DHA2BhODqV7F0g6ZKgFaZgbsqzHHWRcfWchCOrOVKu2rYiKUTwwHVLBgZAhrpNeinq2pWanVYSIhMr7wy+LfEA==", "requires": { "tslib": "^1.9.0" } }, "@angular/service-worker": { - "version": "8.2.10", - "resolved": "https://registry.npmjs.org/@angular/service-worker/-/service-worker-8.2.10.tgz", - "integrity": "sha512-xBRtK73VmQIr2MuxFwVG9dZOkG6Wlsjdr/T2h8r1IT4+9s0sunBlscPfmeYtg6KaoPVGuMvS0h2vVp9Aq+f+ag==", + "version": "8.2.14", + "resolved": "https://registry.npmjs.org/@angular/service-worker/-/service-worker-8.2.14.tgz", + "integrity": "sha512-Xv1ES5bXDRxPJ5uyRqeKw6mGKaJVzKK0oFcR0mr4OSdyLXGZ+x6fC2S/QcLy4ugpb64fyEksrnHhHjeMVzGh2Q==", "requires": { "tslib": "^1.9.0" } }, "@aws-amplify/analytics": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/@aws-amplify/analytics/-/analytics-1.3.2.tgz", - "integrity": "sha512-RzSBZ0lIHkOnP88pRc0hjh3z6A+kSfHCTyloUSXrpMgiRMi+XvaWNqD+uH0Au5x9X3xKIZb3AOrsPX9pyCTXeA==", + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/@aws-amplify/analytics/-/analytics-1.4.3.tgz", + "integrity": "sha512-rgZwbNNPOqhQCGWy2qTT+wyLMveqXuQbZXVa7IRmRHMuuuZiCcI+QLNI+9Yg9CmYg6ISVYSSwYx06gGP5B6N0A==", "requires": { - "@aws-amplify/cache": "^1.1.2", - "@aws-amplify/core": "^1.2.2", + "@aws-amplify/cache": "^1.2.3", + "@aws-amplify/core": "^1.3.3", "uuid": "^3.2.1" } }, "@aws-amplify/api": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@aws-amplify/api/-/api-1.2.2.tgz", - "integrity": "sha512-jpMf6HQO36oyZ0WVi6wIDK3EtQCjMLDSwHrLKzFGM83mtcDdC8XBIaqElWG6nKgFE8MKOmG8I9YSinTl3HpPqg==", + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@aws-amplify/api/-/api-1.3.3.tgz", + "integrity": "sha512-d0+x+DzUoDzjdSL3v0d2GglFqApC7c8qgGPXW1SySKZU53byCEJ/ipNBAdjh46BDxx+l0pWaz55OwvTnYMQs9w==", "requires": { - "@aws-amplify/auth": "^1.4.2", - "@aws-amplify/cache": "^1.1.2", - "@aws-amplify/core": "^1.2.2", + "@aws-amplify/auth": "^1.6.3", + "@aws-amplify/cache": "^1.2.3", + "@aws-amplify/core": "^1.3.3", + "@types/zen-observable": "^0.5.3", "axios": "^0.19.0", - "graphql": "0.13.0", + "graphql": "14.0.0", "uuid": "^3.2.1", "zen-observable": "^0.8.6" } }, "@aws-amplify/auth": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/@aws-amplify/auth/-/auth-1.4.2.tgz", - "integrity": "sha512-X82t3zxAMjRQjwZ8M4xT+96DhRrb6H8FoZZDp1Pxr4p2KSKKMkEkS2AJCenLNQ37g6CUBLlltQ++iGXDLabskw==", + "version": "1.6.3", + "resolved": "https://registry.npmjs.org/@aws-amplify/auth/-/auth-1.6.3.tgz", + "integrity": "sha512-yJEknYhBo9/Uc9/am6kPOoN9ybjrS+cvJzHpYsNnqACjD20cF1lTWALXcgvs0WNylQ8o6PfHcUe5uymyadyXSg==", "requires": { - "@aws-amplify/cache": "^1.1.2", - "@aws-amplify/core": "^1.2.2", - "amazon-cognito-identity-js": "^3.1.2", + "@aws-amplify/cache": "^1.2.3", + "@aws-amplify/core": "^1.3.3", + "amazon-cognito-identity-js": "^3.3.3", "crypto-js": "^3.1.9-1" } }, "@aws-amplify/cache": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@aws-amplify/cache/-/cache-1.1.2.tgz", - "integrity": "sha512-ZK/IANuqQ0rrgI2soN6yR6YhwvftHsnmovMXzeQG+tHdnK2n3RxUciku6+Ey9k4usCD67ZFbXbb+V4KWqBf9Yw==", + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/@aws-amplify/cache/-/cache-1.2.3.tgz", + "integrity": "sha512-kd4IrBUM+fhZlx2mzO7SvU07lEtnopV2zEXUUxyAHoP98DInSTlTJSg4mIbeaBqaVS0Ltmt39UJkJJMgLrXRyQ==", "requires": { - "@aws-amplify/core": "^1.2.2" + "@aws-amplify/core": "^1.3.3" } }, "@aws-amplify/core": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@aws-amplify/core/-/core-1.2.2.tgz", - "integrity": "sha512-mczpQr+wBP6WxL0EK9yue4p+5mQVm+u8IGiyB9HN5ibMLs1t4hPcbS/D/QzjeWSfZ16oMPvZ3Sej3Z4J9zjv9Q==", + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@aws-amplify/core/-/core-1.3.3.tgz", + "integrity": "sha512-NyJii+PvZ1Sb1j7w1XWJpRr9nDjB60bjb+FspCRAWjdwlxgVgpCQdhXE4F4teUtLUd22Po2boxLkyhKnuI0jwg==", "requires": { "aws-sdk": "2.518.0", "url": "^0.11.0" } }, "@aws-amplify/interactions": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@aws-amplify/interactions/-/interactions-1.1.2.tgz", - "integrity": "sha512-07kHROAHk2IF87+3+yWjbagPiQLgDbas3NgqQXg0gxwd/Vt/jsUGHiJop64g4prO7NZ2ut+nx27bf0n3cxPNGA==", + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/@aws-amplify/interactions/-/interactions-1.2.3.tgz", + "integrity": "sha512-71WRgKv4+LF8Di4V9LM4Xc6Ef4PtmAEp2BGN7dlK+vRWTrdcVFM4aJD5h6A36HEbORb9OMCVbLOdwvs+6I7KgA==", "requires": { - "@aws-amplify/core": "^1.2.2" + "@aws-amplify/core": "^1.3.3" } }, "@aws-amplify/predictions": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@aws-amplify/predictions/-/predictions-1.1.2.tgz", - "integrity": "sha512-vCWy8U4cWbL47C2BxqkeX2JUfH7i9XyVPgFpVorkDKpR4yH4Rt4zyHXzNXT2rP4iFAZwJCVXa1L5QA/u3AxPJg==", + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/@aws-amplify/predictions/-/predictions-1.2.3.tgz", + "integrity": "sha512-w1f7w9MJywwGzDkhznRow9txPtDIKqLMFEpweJp0sq9sM/ARzWv+ssLD7PaOF1VtlWAp1iusT91D1w4dqbb7Iw==", "requires": { - "@aws-amplify/core": "^1.2.2", - "@aws-amplify/storage": "^1.2.2", - "@aws-sdk/eventstream-marshaller": "^0.1.0-preview.2", - "@aws-sdk/util-utf8-node": "^0.1.0-preview.1", + "@aws-amplify/core": "^1.3.3", + "@aws-amplify/storage": "^1.3.3", + "@aws-sdk/eventstream-marshaller": "0.1.0-preview.2", + "@aws-sdk/util-utf8-node": "0.1.0-preview.1", "uuid": "^3.2.1" } }, "@aws-amplify/pubsub": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@aws-amplify/pubsub/-/pubsub-1.2.2.tgz", - "integrity": "sha512-nyWnf26ppu2VELwtTF6vF8UaDB/SiWau7atwu4MrGBSuLi3GBd5bhvLTPgDWV91YWA8rcc4Q17Cd18LE8guw3Q==", + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@aws-amplify/pubsub/-/pubsub-1.3.3.tgz", + "integrity": "sha512-xdKWhhNFFUDrZ8d8RbLrpXW5vwbTolH1vVz5ulIr5gghV7I/+KquNSebCF9g3maA1MwjSAvWViwgt2yHH2Sj4Q==", "requires": { - "@aws-amplify/core": "^1.2.2", + "@aws-amplify/core": "^1.3.3", + "@types/zen-observable": "^0.5.3", + "paho-mqtt": "^1.1.0", "uuid": "^3.2.1", "zen-observable": "^0.8.6" } }, "@aws-amplify/storage": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@aws-amplify/storage/-/storage-1.2.2.tgz", - "integrity": "sha512-ZZgLRA2yKIfvFfOi2EKBSHE3P2kSsvRu9OX/9uLiHzNfZjF/LNebhpadh3+jMfLvF7obS/AWZYK0wzhZtcgw1Q==", + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@aws-amplify/storage/-/storage-1.3.3.tgz", + "integrity": "sha512-CZO76XYA538U+wSS7IoNQkhP5qgfjIXawc011yigSVbN5+g7Bky5+fY6++XOA9+v3rATYq1wWkbhyro6tss3oA==", "requires": { - "@aws-amplify/core": "^1.2.2" + "@aws-amplify/core": "^1.3.3" } }, "@aws-amplify/ui": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@aws-amplify/ui/-/ui-1.1.2.tgz", - "integrity": "sha512-K9wX+yYY0jp+GEDnhT2hVEB5JuLm0a5u134qC+Neg3rD5u71oOUd+jCJq48iuE2hjaNxMMOA0eGwFmsltr7h6w==" + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/@aws-amplify/ui/-/ui-1.2.3.tgz", + "integrity": "sha512-ZsNMkthkLfax/OngdlWFdJEjqXuRqXa5iwb4uKoGu58PTp6AnaM6nFkwPTGCLU4ilPicSXqZPIHCJ9K6MBlzHQ==" }, "@aws-amplify/xr": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/@aws-amplify/xr/-/xr-0.2.2.tgz", - "integrity": "sha512-DSyD12o0rcbvWj0DMEss50HRS3X8xja2lNpNrO8MvjdN6Y8zS+a3GBTM9vx+/kCgp2zRRmC4Ei/ZeD/Rt5N5PA==", + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@aws-amplify/xr/-/xr-0.3.3.tgz", + "integrity": "sha512-RzyopwtcWOi0RuJsc8QNhxXR729IakUaFxydYsgNweDrPKXtjbTJpXZSyIJ/BE095U5Z7QsCbFKqspmh7I9AnQ==", "requires": { - "@aws-amplify/core": "^1.2.2" + "@aws-amplify/core": "^1.3.3" } }, "@aws-crypto/crc32": { - "version": "0.1.0-preview.1", - "resolved": "https://registry.npmjs.org/@aws-crypto/crc32/-/crc32-0.1.0-preview.1.tgz", - "integrity": "sha512-GPxlpx1ezlWAYygSfyGIsQ2/imDJgOYnpqwAFlU3H4KacIqX3LHpE5/Ps+s7nxiYtEFR9GvQhsN7VNDF5/FbHg==", + "version": "0.1.0-preview.4", + "resolved": "https://registry.npmjs.org/@aws-crypto/crc32/-/crc32-0.1.0-preview.4.tgz", + "integrity": "sha512-Faxpmo6pUPvfwE8ELdJo9K9bdIjsra+AM2Cq2Fvydd4xJRHpKLWzQ3kdz324auMkHKbn4veTDo3sZRuSbh/Pug==", "requires": { "tslib": "^1.9.3" } @@ -1544,6 +1547,11 @@ } } }, + "@types/zen-observable": { + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/@types/zen-observable/-/zen-observable-0.5.4.tgz", + "integrity": "sha512-sW6xN96wUak4tgc89d0tbTg7QDGYhGv5hvQIS6h4mRCd8h2btiZ80loPU8cyLwsBbA4ZeQt0FjvUhJ4rNhdsGg==" + }, "@webassemblyjs/ast": { "version": "1.8.5", "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.8.5.tgz", @@ -1818,9 +1826,9 @@ "dev": true }, "amazon-cognito-identity-js": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/amazon-cognito-identity-js/-/amazon-cognito-identity-js-3.1.2.tgz", - "integrity": "sha512-NQ/MxGvzYAauHNWjWu/OMB0LtH5w3D/BKeYP9royQwT6+pR4UJifqFaETh2GQUefROKkv0rqEuvkvT/Wx2RA+Q==", + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/amazon-cognito-identity-js/-/amazon-cognito-identity-js-3.3.3.tgz", + "integrity": "sha512-uB1Bk2ezxVUz0vELZ4tI40ZJEYEZZcWdz8TVyNOPjQCKS+SszNUORTkOkL0KgawZMak7KhDfLTEXbInBeTsiow==", "requires": { "buffer": "4.9.1", "crypto-js": "^3.1.9-1", @@ -2093,21 +2101,21 @@ } }, "aws-amplify": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/aws-amplify/-/aws-amplify-1.2.2.tgz", - "integrity": "sha512-HJ+TRwO/zow+F5OBiNaPo4xgCSgR7S4LFJTn9pMB7SqDRm0l8hKFGnlJ2nU7cBxFUf2ot1ZpdIS4l3d6RBKesw==", + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/aws-amplify/-/aws-amplify-1.3.3.tgz", + "integrity": "sha512-CKryRZMyqNsxlYpIaiT1YkW3LzOVkCYYCcEWlz8v8+q4CwchDM1eycMfaJBqkQYqE3tUzavPZEXgxylCSL2bNQ==", "requires": { - "@aws-amplify/analytics": "^1.3.2", - "@aws-amplify/api": "^1.2.2", - "@aws-amplify/auth": "^1.4.2", - "@aws-amplify/cache": "^1.1.2", - "@aws-amplify/core": "^1.2.2", - "@aws-amplify/interactions": "^1.1.2", - "@aws-amplify/predictions": "^1.1.2", - "@aws-amplify/pubsub": "^1.2.2", - "@aws-amplify/storage": "^1.2.2", - "@aws-amplify/ui": "^1.1.2", - "@aws-amplify/xr": "^0.2.2" + "@aws-amplify/analytics": "^1.4.3", + "@aws-amplify/api": "^1.3.3", + "@aws-amplify/auth": "^1.6.3", + "@aws-amplify/cache": "^1.2.3", + "@aws-amplify/core": "^1.3.3", + "@aws-amplify/interactions": "^1.2.3", + "@aws-amplify/predictions": "^1.2.3", + "@aws-amplify/pubsub": "^1.3.3", + "@aws-amplify/storage": "^1.3.3", + "@aws-amplify/ui": "^1.2.3", + "@aws-amplify/xr": "^0.3.3" } }, "aws-sdk": { @@ -2189,12 +2197,11 @@ "dev": true }, "axios": { - "version": "0.19.0", - "resolved": "https://registry.npmjs.org/axios/-/axios-0.19.0.tgz", - "integrity": "sha512-1uvKqKQta3KBxIz14F2v06AEHZ/dIoeKfbTRkK1E5oqjDnuEerLmYTgJB5AiQZHJcljpg1TuRzdjDR06qNk0DQ==", + "version": "0.19.2", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.19.2.tgz", + "integrity": "sha512-fjgm5MvRHLhx+osE2xoekY70AhARk3a6hkN+3Io1jc00jtquGvxYlKlsFUhmUET0V5te6CcZI7lcv2Ym61mjHA==", "requires": { - "follow-redirects": "1.5.10", - "is-buffer": "^2.0.2" + "follow-redirects": "1.5.10" }, "dependencies": { "debug": { @@ -2212,11 +2219,6 @@ "requires": { "debug": "=3.1.0" } - }, - "is-buffer": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.4.tgz", - "integrity": "sha512-Kq1rokWXOPXWuaMAqZiJW4XxsmD9zGx9q4aePabbn3qCRGedtH7Cm+zV8WETitMfu1wdh+Rvd6w5egwSngUX2A==" } } }, @@ -4687,11 +4689,11 @@ "dev": true }, "graphql": { - "version": "0.13.0", - "resolved": "https://registry.npmjs.org/graphql/-/graphql-0.13.0.tgz", - "integrity": "sha512-WlO+ZJT9aY3YrBT+H5Kk+eVb3OVVehB9iRD/xqeHdmrrn4AFl5FIcOpfHz/vnBr6Y6JthGMlnFqU8XRnDjSR7A==", + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/graphql/-/graphql-14.0.0.tgz", + "integrity": "sha512-HGVcnO6B25YZcSt6ZsH6/N+XkYuPA7yMqJmlJ4JWxWlS4Tr8SHI56R1Ocs8Eor7V7joEZPRXPDH8RRdll1w44Q==", "requires": { - "iterall": "1.1.x" + "iterall": "^1.2.2" } }, "hammerjs": { @@ -5718,9 +5720,9 @@ } }, "iterall": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/iterall/-/iterall-1.1.4.tgz", - "integrity": "sha512-eaDsM/PY8D/X5mYQhecVc5/9xvSHED7yPON+ffQroBeTuqUVm7dfphMkK8NksXuImqZlVRoKtrNfMIVCYIqaUQ==" + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/iterall/-/iterall-1.3.0.tgz", + "integrity": "sha512-QZ9qOMdF+QLHxy1QIpUHUU1D5pS2CG2P69LF6L6CPjPYA/XMOmKV3PZpawHoAjHNyB0swdVTRxdYT4tbBbxqwg==" }, "jasmine": { "version": "2.8.0", @@ -7920,6 +7922,11 @@ } } }, + "paho-mqtt": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/paho-mqtt/-/paho-mqtt-1.1.0.tgz", + "integrity": "sha512-KPbL9KAB0ASvhSDbOrZBaccXS+/s7/LIofbPyERww8hM5Ko71GUJQ6Nmg0BWqj8phAIT8zdf/Sd/RftHU9i2HA==" + }, "pako": { "version": "1.0.10", "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.10.tgz", @@ -7977,24 +7984,24 @@ }, "dependencies": { "parse5": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-5.1.0.tgz", - "integrity": "sha512-fxNG2sQjHvlVAYmzBZS9YlDp6PTSSDwa98vkD4QgVDDCAo84z5X1t5XyJQ62ImdLXx5NdIIfihey6xpum9/gRQ==" + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-5.1.1.tgz", + "integrity": "sha512-ugq4DFI0Ptb+WWjAdOK16+u/nHfiIrcE+sh8kZMaM0WllQKLI9rOUq6c2b7cwPkXdzfQESqvoqK6ug7U/Yyzug==" } } }, "parse5-sax-parser": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/parse5-sax-parser/-/parse5-sax-parser-5.1.0.tgz", - "integrity": "sha512-VEhdEDhBkoSILPmsZ96SoIIUow3hZbtgQsqXw7r8DxxnqsCIO0fwkT9mWgBcf9SPjVUh92liuEprHrrYzXBPWQ==", + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/parse5-sax-parser/-/parse5-sax-parser-5.1.1.tgz", + "integrity": "sha512-9HIh6zd7bF1NJe95LPCUC311CekdOi55R+HWXNCsGY6053DWaMijVKOv1oPvdvPTvFicifZyimBVJ6/qvG039Q==", "requires": { - "parse5": "^5.1.0" + "parse5": "^5.1.1" }, "dependencies": { "parse5": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-5.1.0.tgz", - "integrity": "sha512-fxNG2sQjHvlVAYmzBZS9YlDp6PTSSDwa98vkD4QgVDDCAo84z5X1t5XyJQ62ImdLXx5NdIIfihey6xpum9/gRQ==" + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-5.1.1.tgz", + "integrity": "sha512-ugq4DFI0Ptb+WWjAdOK16+u/nHfiIrcE+sh8kZMaM0WllQKLI9rOUq6c2b7cwPkXdzfQESqvoqK6ug7U/Yyzug==" } } }, @@ -12515,9 +12522,9 @@ "dev": true }, "zen-observable": { - "version": "0.8.14", - "resolved": "https://registry.npmjs.org/zen-observable/-/zen-observable-0.8.14.tgz", - "integrity": "sha512-kQz39uonEjEESwh+qCi83kcC3rZJGh4mrZW7xjkSQYXkq//JZHTtKo+6yuVloTgMtzsIWOJrjIrKvk/dqm0L5g==" + "version": "0.8.15", + "resolved": "https://registry.npmjs.org/zen-observable/-/zen-observable-0.8.15.tgz", + "integrity": "sha512-PQ2PC7R9rslx84ndNBZB/Dkv8V8fZEpk83RLgXtYd0fwUgEjseMn1Dgajh2x6S8QbZAFa9p2qVCEuYZNgve0dQ==" }, "zone.js": { "version": "0.9.1", diff --git a/src/app/auth/profile/profile.component.html b/src/app/auth/profile/profile.component.html index da50caf..4600838 100644 --- a/src/app/auth/profile/profile.component.html +++ b/src/app/auth/profile/profile.component.html @@ -14,6 +14,13 @@ + + + + True + False + +
diff --git a/src/app/auth/profile/profile.component.ts b/src/app/auth/profile/profile.component.ts index 687f609..5ed4550 100644 --- a/src/app/auth/profile/profile.component.ts +++ b/src/app/auth/profile/profile.component.ts @@ -17,7 +17,8 @@ export class ProfileComponent implements OnInit { email: new FormControl('', [ Validators.email ]), phone: new FormControl('', [ Validators.min(10) ]), fname: new FormControl('', [ Validators.min(2) ]), - lname: new FormControl('', [ Validators.min(2) ]) + lname: new FormControl('', [ Validators.min(2) ]), + 'custom:holiday': new FormControl('', [Validators.min(1)]) }); currentAvatarUrl: string; avatar: string; @@ -29,6 +30,7 @@ export class ProfileComponent implements OnInit { get fnameInput() { return this.profileForm.get('fname'); } get lnameInput() { return this.profileForm.get('lname'); } get phoneInput() { return this.profileForm.get('phone'); } + get holidayInput() { return this.profileForm.get('custom:holiday'); } constructor( private authService: AuthService, @@ -44,6 +46,7 @@ export class ProfileComponent implements OnInit { async getUserInfo() { this.profile = await Auth.currentUserInfo(); this.user = await Auth.currentAuthenticatedUser(); + console.log(this.profile); if ( this.profile.attributes.profile ) { this.avatar = this.profile.attributes.profile; this.currentAvatarUrl = await Storage.vault.get(this.avatar) as string; @@ -51,6 +54,7 @@ export class ProfileComponent implements OnInit { this.fnameInput.setValue(this.profile.attributes.given_name); this.lnameInput.setValue(this.profile.attributes.family_name); this.phoneInput.setValue(this.profile.attributes.phone_number); + this.holidayInput.setValue(String(this.profile.attributes['custom:holiday'])); this.loading.hide(); } @@ -89,11 +93,13 @@ export class ProfileComponent implements OnInit { given_name: this.fnameInput.value, family_name: this.lnameInput.value, phone_number: this.phoneInput.value, - profile: this.profile.value + profile: this.profile.value, + 'custom:holiday': this.holidayInput.value }; if (this.avatar) { attributes.profile = this.avatar; } + console.log(attributes); await Auth.updateUserAttributes(this.user, attributes); if (!this.avatar && this.deleteAvatar) { this.user.deleteAttributes(['profile'], (error) => {