Skip to content

Commit

Permalink
Merge pull request #52 from jannicz/feature/RC-1.10
Browse files Browse the repository at this point in the history
Feature/RC-1.10
  • Loading branch information
jannicz authored Mar 21, 2021
2 parents 9c4d638 + 133e500 commit 6f6991b
Show file tree
Hide file tree
Showing 20 changed files with 5,280 additions and 4,854 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v12.14.1
v14.9
18 changes: 4 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SVG icon sprite component for Angular 10
# SVG icon sprite component for Angular 11

This library provides both a solution for generating SVG sprites and a [module](https://www.npmjs.com/package/ng-svg-icon-sprite) for including them.

Expand Down Expand Up @@ -48,7 +48,7 @@ First add the library [for sprite generation svg2sprite](https://github.com/mrml

```json
"devDependencies": {
"svg2sprite-cli": "2.0.0"
"svg2sprite-cli": "^2.0.1"
}
```

Expand Down Expand Up @@ -187,18 +187,8 @@ Doing so you will still be able to override the default path by using the full s
- Firefox (57)
- Safari 11
- Edge
- IE 11 (with polyfill, see below)

### Polyfill for IE11

Older browsers do not support referencing to (external) SVG symbols. To make it work for IE11 and lower you can add
[svg4everybody](https://github.com/jonathantneal/svg4everybody) to your `polyfills.ts` file:

```javascript
// Add the node module, import and execute it in polyfills.ts
import * as svg4everybody from 'svg4everybody/dist/svg4everybody.js';
svg4everybody();
```
IE 11 support was removed in version 1.10.

## Accessibility

Expand All @@ -222,7 +212,7 @@ Or use combinations of several methods to achieve better results, like described

## Compatibility

This library is optimized for Angular 10, for Angular 9 use [v. 1.8](https://www.npmjs.com/package/ng-svg-icon-sprite/v/1.8.1), for 8 use [v. 1.7](https://www.npmjs.com/package/ng-svg-icon-sprite/v/1.7.0).
This library is optimized for Angular 11, for 10 use [v. 1.9](https://www.npmjs.com/package/ng-svg-icon-sprite/v/1.9.1), for 9 use [v. 1.8](https://www.npmjs.com/package/ng-svg-icon-sprite/v/1.8.1).
If you combine multiple frameworks (i.e. React, Vue, etc.), it is recommended to use [svg-icon-sprite web component](https://www.npmjs.com/package/svg-icon-sprite) instead!

## Author & License
Expand Down
1 change: 0 additions & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
Expand Down
1 change: 0 additions & 1 deletion browserslist
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@
last 2 versions
Firefox ESR
not dead
IE 9-11
74 changes: 2 additions & 72 deletions docs/3rdpartylicenses.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,36 +61,9 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


classlist.js
Dedicated to the public domain
This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.

In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.

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 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.

For more information, please refer to <http://unlicense.org/>

core-js
MIT
Copyright (c) 2014-2020 Denis Pushkarev
Copyright (c) 2014-2021 Denis Pushkarev

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -111,30 +84,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.


css-loader
MIT
Copyright JS Foundation and other contributors

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.


ng-svg-icon-sprite
MIT
MIT License
Expand Down Expand Up @@ -391,33 +340,14 @@ Apache-2.0



svg4everybody
CC0-1.0
# CC0 1.0 Universal License

Public Domain Dedication

The person(s) who associated a work with this deed has dedicated the work to the public domain by waiving all of his or her rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law.

You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

In no way are the patent or trademark rights of any person affected by CC0, nor are the rights that other persons may have in the work or in how the work is used, such as publicity or privacy rights.

Unless expressly stated otherwise, the person(s) who associated a work with this deed makes no warranties about the work, and disclaims liability for all uses of the work, to the fullest extent permitted by applicable law.

When using or citing the work, you should not imply endorsement by the author or the affirmer.

This is a [human-readable summary of the Legal Code](https://creativecommons.org/publicdomain/zero/1.0/) ([read the full text](https://creativecommons.org/publicdomain/zero/1.0/legalcode)).


web-animations-js
Apache-2.0

zone.js
MIT
The MIT License

Copyright (c) 2010-2020 Google LLC. http://angular.io/license
Copyright (c) 2010-2020 Google LLC. https://angular.io/license

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
5 changes: 3 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
<meta charset="utf-8">
<title>ng-SVG-Icon-Sprite DEMO Application</title>
<base href="/ng-svg-icon-sprite/">

<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="stylesheet" href="/ng-svg-icon-sprite/styles.7c0c7247ddd4bbf7f35d.css"></head>
<link rel="stylesheet" href="/ng-svg-icon-sprite/styles.af53f90572a1ac413b0b.css"></head>
<body>
<app-root></app-root>
<script src="/ng-svg-icon-sprite/runtime.4295061d37396e5c587c.js" defer></script><script src="/ng-svg-icon-sprite/polyfills-es5.0f2b216af852c626206d.js" nomodule defer></script><script src="/ng-svg-icon-sprite/polyfills.ecf2065bce18bc1bcbd6.js" defer></script><script src="/ng-svg-icon-sprite/main.205eceb8513fa8a26c98.js" defer></script></body>
<script src="/ng-svg-icon-sprite/runtime.a52a1306ecac82719f6d.js" defer></script><script src="/ng-svg-icon-sprite/polyfills-es5.d14a7739a81e0efa411d.js" nomodule defer></script><script src="/ng-svg-icon-sprite/polyfills.1f474eb4abd1ea9cb41c.js" defer></script><script src="/ng-svg-icon-sprite/main.21aaaa6b11c6dd2266e7.js" defer></script></body>
</html>
1 change: 0 additions & 1 deletion docs/main.205eceb8513fa8a26c98.js

This file was deleted.

1 change: 1 addition & 0 deletions docs/main.21aaaa6b11c6dd2266e7.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion docs/polyfills-es5.0f2b216af852c626206d.js

This file was deleted.

1 change: 1 addition & 0 deletions docs/polyfills-es5.d14a7739a81e0efa411d.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/polyfills.1f474eb4abd1ea9cb41c.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion docs/polyfills.ecf2065bce18bc1bcbd6.js

This file was deleted.

File renamed without changes.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6f6991b

Please sign in to comment.