├── .gitignore ├── angular-element ├── 3rdpartylicenses.txt ├── assets │ ├── .gitkeep │ └── data.json ├── elements.js ├── favicon.ico ├── index.html ├── main-es2015.js ├── main-es5.js ├── polyfills-es2015.js ├── polyfills-es5.js ├── runtime-es2015.js ├── runtime-es5.js └── scripts.js ├── image-slider-finished ├── .editorconfig ├── README.md ├── angular.json ├── e2e │ ├── protractor.conf.js │ ├── src │ │ ├── app.e2e-spec.ts │ │ └── app.po.ts │ └── tsconfig.e2e.json ├── elements.js.gz ├── index.html ├── package-lock.json ├── package.json ├── src │ ├── app │ │ ├── app.module.ts │ │ ├── data.service.spec.ts │ │ ├── data.service.ts │ │ └── slider │ │ │ ├── result.ts │ │ │ ├── slider.component.css │ │ │ ├── slider.component.html │ │ │ ├── slider.component.spec.ts │ │ │ └── slider.component.ts │ ├── assets │ │ ├── .gitkeep │ │ └── data.json │ ├── browserslist │ ├── environments │ │ ├── environment.prod.ts │ │ └── environment.ts │ ├── favicon.ico │ ├── index.html │ ├── karma.conf.js │ ├── main.ts │ ├── polyfills.ts │ ├── styles.css │ ├── test.ts │ ├── tsconfig.app.json │ ├── tsconfig.spec.json │ └── tslint.json ├── tsconfig.json └── tslint.json ├── image-slider ├── .editorconfig ├── .gitignore ├── README.md ├── angular.json ├── e2e │ ├── protractor.conf.js │ ├── src │ │ ├── app.e2e-spec.ts │ │ └── app.po.ts │ └── tsconfig.e2e.json ├── package-lock.json ├── package.json ├── src │ ├── app │ │ ├── app.module.ts │ │ ├── data.service.ts │ │ └── slider │ │ │ ├── result.ts │ │ │ ├── slider.component.css │ │ │ ├── slider.component.html │ │ │ ├── slider.component.spec.ts │ │ │ └── slider.component.ts │ ├── assets │ │ ├── .gitkeep │ │ └── data.json │ ├── browserslist │ ├── environments │ │ ├── environment.prod.ts │ │ └── environment.ts │ ├── favicon.ico │ ├── index.html │ ├── karma.conf.js │ ├── main.ts │ ├── polyfills.ts │ ├── styles.css │ ├── test.ts │ ├── tsconfig.app.json │ ├── tsconfig.spec.json │ └── tslint.json ├── tsconfig.json └── tslint.json └── package-lock.json /.gitignore: -------------------------------------------------------------------------------- 1 | # See http://help.github.com/ignore-files/ for more about ignoring files. 2 | 3 | # compiled output 4 | dist/ 5 | tmp/ 6 | out-tsc/ 7 | 8 | # dependencies 9 | node_modules/ 10 | 11 | # IDEs and editors 12 | .idea/ 13 | .project 14 | .classpath 15 | .c9/ 16 | .launch 17 | .settings/ 18 | *.sublime-workspace 19 | 20 | # IDE - VSCode 21 | .vscode/* 22 | !.vscode/settings.json 23 | !.vscode/tasks.json 24 | !.vscode/launch.json 25 | !.vscode/extensions.json 26 | 27 | # misc 28 | .sass-cache/ 29 | connect.lock/ 30 | coverage/ 31 | libpeerconnection.log/ 32 | npm-debug.log 33 | yarn-error.log 34 | testem.log 35 | typings/ 36 | 37 | # System Files 38 | .DS_Store 39 | Thumbs.db 40 | -------------------------------------------------------------------------------- /angular-element/3rdpartylicenses.txt: -------------------------------------------------------------------------------- 1 | @angular-devkit/build-angular 2 | MIT 3 | The MIT License 4 | 5 | Copyright (c) 2017 Google, Inc. 6 | 7 | Permission is hereby granted, free of charge, to any person obtaining a copy 8 | of this software and associated documentation files (the "Software"), to deal 9 | in the Software without restriction, including without limitation the rights 10 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | copies of the Software, and to permit persons to whom the Software is 12 | furnished to do so, subject to the following conditions: 13 | 14 | The above copyright notice and this permission notice shall be included in all 15 | copies or substantial portions of the Software. 16 | 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | SOFTWARE. 24 | 25 | 26 | @angular/common 27 | MIT 28 | 29 | @angular/core 30 | MIT 31 | 32 | @angular/elements 33 | MIT 34 | 35 | @angular/platform-browser 36 | MIT 37 | 38 | core-js 39 | MIT 40 | Copyright (c) 2014-2019 Denis Pushkarev 41 | 42 | Permission is hereby granted, free of charge, to any person obtaining a copy 43 | of this software and associated documentation files (the "Software"), to deal 44 | in the Software without restriction, including without limitation the rights 45 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 46 | copies of the Software, and to permit persons to whom the Software is 47 | furnished to do so, subject to the following conditions: 48 | 49 | The above copyright notice and this permission notice shall be included in 50 | all copies or substantial portions of the Software. 51 | 52 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 53 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 54 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 55 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 56 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 57 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 58 | THE SOFTWARE. 59 | 60 | 61 | css-loader 62 | MIT 63 | Copyright JS Foundation and other contributors 64 | 65 | Permission is hereby granted, free of charge, to any person obtaining 66 | a copy of this software and associated documentation files (the 67 | 'Software'), to deal in the Software without restriction, including 68 | without limitation the rights to use, copy, modify, merge, publish, 69 | distribute, sublicense, and/or sell copies of the Software, and to 70 | permit persons to whom the Software is furnished to do so, subject to 71 | the following conditions: 72 | 73 | The above copyright notice and this permission notice shall be 74 | included in all copies or substantial portions of the Software. 75 | 76 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, 77 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 78 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 79 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 80 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 81 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 82 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 83 | 84 | 85 | regenerator-runtime 86 | MIT 87 | MIT License 88 | 89 | Copyright (c) 2014-present, Facebook, Inc. 90 | 91 | Permission is hereby granted, free of charge, to any person obtaining a copy 92 | of this software and associated documentation files (the "Software"), to deal 93 | in the Software without restriction, including without limitation the rights 94 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 95 | copies of the Software, and to permit persons to whom the Software is 96 | furnished to do so, subject to the following conditions: 97 | 98 | The above copyright notice and this permission notice shall be included in all 99 | copies or substantial portions of the Software. 100 | 101 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 102 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 103 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 104 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 105 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 106 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 107 | SOFTWARE. 108 | 109 | 110 | rxjs 111 | Apache-2.0 112 | Apache License 113 | Version 2.0, January 2004 114 | http://www.apache.org/licenses/ 115 | 116 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 117 | 118 | 1. Definitions. 119 | 120 | "License" shall mean the terms and conditions for use, reproduction, 121 | and distribution as defined by Sections 1 through 9 of this document. 122 | 123 | "Licensor" shall mean the copyright owner or entity authorized by 124 | the copyright owner that is granting the License. 125 | 126 | "Legal Entity" shall mean the union of the acting entity and all 127 | other entities that control, are controlled by, or are under common 128 | control with that entity. For the purposes of this definition, 129 | "control" means (i) the power, direct or indirect, to cause the 130 | direction or management of such entity, whether by contract or 131 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 132 | outstanding shares, or (iii) beneficial ownership of such entity. 133 | 134 | "You" (or "Your") shall mean an individual or Legal Entity 135 | exercising permissions granted by this License. 136 | 137 | "Source" form shall mean the preferred form for making modifications, 138 | including but not limited to software source code, documentation 139 | source, and configuration files. 140 | 141 | "Object" form shall mean any form resulting from mechanical 142 | transformation or translation of a Source form, including but 143 | not limited to compiled object code, generated documentation, 144 | and conversions to other media types. 145 | 146 | "Work" shall mean the work of authorship, whether in Source or 147 | Object form, made available under the License, as indicated by a 148 | copyright notice that is included in or attached to the work 149 | (an example is provided in the Appendix below). 150 | 151 | "Derivative Works" shall mean any work, whether in Source or Object 152 | form, that is based on (or derived from) the Work and for which the 153 | editorial revisions, annotations, elaborations, or other modifications 154 | represent, as a whole, an original work of authorship. For the purposes 155 | of this License, Derivative Works shall not include works that remain 156 | separable from, or merely link (or bind by name) to the interfaces of, 157 | the Work and Derivative Works thereof. 158 | 159 | "Contribution" shall mean any work of authorship, including 160 | the original version of the Work and any modifications or additions 161 | to that Work or Derivative Works thereof, that is intentionally 162 | submitted to Licensor for inclusion in the Work by the copyright owner 163 | or by an individual or Legal Entity authorized to submit on behalf of 164 | the copyright owner. For the purposes of this definition, "submitted" 165 | means any form of electronic, verbal, or written communication sent 166 | to the Licensor or its representatives, including but not limited to 167 | communication on electronic mailing lists, source code control systems, 168 | and issue tracking systems that are managed by, or on behalf of, the 169 | Licensor for the purpose of discussing and improving the Work, but 170 | excluding communication that is conspicuously marked or otherwise 171 | designated in writing by the copyright owner as "Not a Contribution." 172 | 173 | "Contributor" shall mean Licensor and any individual or Legal Entity 174 | on behalf of whom a Contribution has been received by Licensor and 175 | subsequently incorporated within the Work. 176 | 177 | 2. Grant of Copyright License. Subject to the terms and conditions of 178 | this License, each Contributor hereby grants to You a perpetual, 179 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 180 | copyright license to reproduce, prepare Derivative Works of, 181 | publicly display, publicly perform, sublicense, and distribute the 182 | Work and such Derivative Works in Source or Object form. 183 | 184 | 3. Grant of Patent License. Subject to the terms and conditions of 185 | this License, each Contributor hereby grants to You a perpetual, 186 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 187 | (except as stated in this section) patent license to make, have made, 188 | use, offer to sell, sell, import, and otherwise transfer the Work, 189 | where such license applies only to those patent claims licensable 190 | by such Contributor that are necessarily infringed by their 191 | Contribution(s) alone or by combination of their Contribution(s) 192 | with the Work to which such Contribution(s) was submitted. If You 193 | institute patent litigation against any entity (including a 194 | cross-claim or counterclaim in a lawsuit) alleging that the Work 195 | or a Contribution incorporated within the Work constitutes direct 196 | or contributory patent infringement, then any patent licenses 197 | granted to You under this License for that Work shall terminate 198 | as of the date such litigation is filed. 199 | 200 | 4. Redistribution. You may reproduce and distribute copies of the 201 | Work or Derivative Works thereof in any medium, with or without 202 | modifications, and in Source or Object form, provided that You 203 | meet the following conditions: 204 | 205 | (a) You must give any other recipients of the Work or 206 | Derivative Works a copy of this License; and 207 | 208 | (b) You must cause any modified files to carry prominent notices 209 | stating that You changed the files; and 210 | 211 | (c) You must retain, in the Source form of any Derivative Works 212 | that You distribute, all copyright, patent, trademark, and 213 | attribution notices from the Source form of the Work, 214 | excluding those notices that do not pertain to any part of 215 | the Derivative Works; and 216 | 217 | (d) If the Work includes a "NOTICE" text file as part of its 218 | distribution, then any Derivative Works that You distribute must 219 | include a readable copy of the attribution notices contained 220 | within such NOTICE file, excluding those notices that do not 221 | pertain to any part of the Derivative Works, in at least one 222 | of the following places: within a NOTICE text file distributed 223 | as part of the Derivative Works; within the Source form or 224 | documentation, if provided along with the Derivative Works; or, 225 | within a display generated by the Derivative Works, if and 226 | wherever such third-party notices normally appear. The contents 227 | of the NOTICE file are for informational purposes only and 228 | do not modify the License. You may add Your own attribution 229 | notices within Derivative Works that You distribute, alongside 230 | or as an addendum to the NOTICE text from the Work, provided 231 | that such additional attribution notices cannot be construed 232 | as modifying the License. 233 | 234 | You may add Your own copyright statement to Your modifications and 235 | may provide additional or different license terms and conditions 236 | for use, reproduction, or distribution of Your modifications, or 237 | for any such Derivative Works as a whole, provided Your use, 238 | reproduction, and distribution of the Work otherwise complies with 239 | the conditions stated in this License. 240 | 241 | 5. Submission of Contributions. Unless You explicitly state otherwise, 242 | any Contribution intentionally submitted for inclusion in the Work 243 | by You to the Licensor shall be under the terms and conditions of 244 | this License, without any additional terms or conditions. 245 | Notwithstanding the above, nothing herein shall supersede or modify 246 | the terms of any separate license agreement you may have executed 247 | with Licensor regarding such Contributions. 248 | 249 | 6. Trademarks. This License does not grant permission to use the trade 250 | names, trademarks, service marks, or product names of the Licensor, 251 | except as required for reasonable and customary use in describing the 252 | origin of the Work and reproducing the content of the NOTICE file. 253 | 254 | 7. Disclaimer of Warranty. Unless required by applicable law or 255 | agreed to in writing, Licensor provides the Work (and each 256 | Contributor provides its Contributions) on an "AS IS" BASIS, 257 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 258 | implied, including, without limitation, any warranties or conditions 259 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 260 | PARTICULAR PURPOSE. You are solely responsible for determining the 261 | appropriateness of using or redistributing the Work and assume any 262 | risks associated with Your exercise of permissions under this License. 263 | 264 | 8. Limitation of Liability. In no event and under no legal theory, 265 | whether in tort (including negligence), contract, or otherwise, 266 | unless required by applicable law (such as deliberate and grossly 267 | negligent acts) or agreed to in writing, shall any Contributor be 268 | liable to You for damages, including any direct, indirect, special, 269 | incidental, or consequential damages of any character arising as a 270 | result of this License or out of the use or inability to use the 271 | Work (including but not limited to damages for loss of goodwill, 272 | work stoppage, computer failure or malfunction, or any and all 273 | other commercial damages or losses), even if such Contributor 274 | has been advised of the possibility of such damages. 275 | 276 | 9. Accepting Warranty or Additional Liability. While redistributing 277 | the Work or Derivative Works thereof, You may choose to offer, 278 | and charge a fee for, acceptance of support, warranty, indemnity, 279 | or other liability obligations and/or rights consistent with this 280 | License. However, in accepting such obligations, You may act only 281 | on Your own behalf and on Your sole responsibility, not on behalf 282 | of any other Contributor, and only if You agree to indemnify, 283 | defend, and hold each Contributor harmless for any liability 284 | incurred by, or claims asserted against, such Contributor by reason 285 | of your accepting any such warranty or additional liability. 286 | 287 | END OF TERMS AND CONDITIONS 288 | 289 | APPENDIX: How to apply the Apache License to your work. 290 | 291 | To apply the Apache License to your work, attach the following 292 | boilerplate notice, with the fields enclosed by brackets "[]" 293 | replaced with your own identifying information. (Don't include 294 | the brackets!) The text should be enclosed in the appropriate 295 | comment syntax for the file format. We also recommend that a 296 | file or class name and description of purpose be included on the 297 | same "printed page" as the copyright notice for easier 298 | identification within third-party archives. 299 | 300 | Copyright (c) 2015-2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors 301 | 302 | Licensed under the Apache License, Version 2.0 (the "License"); 303 | you may not use this file except in compliance with the License. 304 | You may obtain a copy of the License at 305 | 306 | http://www.apache.org/licenses/LICENSE-2.0 307 | 308 | Unless required by applicable law or agreed to in writing, software 309 | distributed under the License is distributed on an "AS IS" BASIS, 310 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 311 | See the License for the specific language governing permissions and 312 | limitations under the License. 313 | 314 | 315 | 316 | zone.js 317 | MIT 318 | The MIT License 319 | 320 | Copyright (c) 2010-2020 Google LLC. http://angular.io/license 321 | 322 | Permission is hereby granted, free of charge, to any person obtaining a copy 323 | of this software and associated documentation files (the "Software"), to deal 324 | in the Software without restriction, including without limitation the rights 325 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 326 | copies of the Software, and to permit persons to whom the Software is 327 | furnished to do so, subject to the following conditions: 328 | 329 | The above copyright notice and this permission notice shall be included in 330 | all copies or substantial portions of the Software. 331 | 332 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 333 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 334 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 335 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 336 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 337 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 338 | THE SOFTWARE. 339 | -------------------------------------------------------------------------------- /angular-element/assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aayusharora/angular-element-codelab/8343f7dec0ce3789fe19b991f8cd0ea03cd4831c/angular-element/assets/.gitkeep -------------------------------------------------------------------------------- /angular-element/assets/data.json: -------------------------------------------------------------------------------- 1 | { 2 | "sliderArray":[ 3 | {"img": "http://bloquo.cc/img/works/1.jpg", "alt": "", "text": "365 Days Of weddings a year"}, 4 | {"img": "http://bloquo.cc/img/works/2.jpg", "alt": "", "text": "365 Days Of weddings a year"}, 5 | {"img": "http://bloquo.cc/img/works/3.jpg", "alt": "", "text": "365 Days Of weddings a year"}, 6 | {"img": "http://bloquo.cc/img/works/4.jpg", "alt": "", "text": "365 Days Of weddings a year"}, 7 | {"img": "http://bloquo.cc/img/works/5.jpg", "alt": "", "text": "365 Days Of weddings a year"} 8 | ] 9 | } 10 | -------------------------------------------------------------------------------- /angular-element/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aayusharora/angular-element-codelab/8343f7dec0ce3789fe19b991f8cd0ea03cd4831c/angular-element/favicon.ico -------------------------------------------------------------------------------- /angular-element/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |