@gravitee/ui-components 3.35.0 → 3.35.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -13,16 +13,8 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { css, LitElement, html,
|
|
17
|
-
import { Directive, directive } from 'lit/directive.js';
|
|
16
|
+
import { css, LitElement, html, svg } from 'lit';
|
|
18
17
|
import { classMap } from 'lit/directives/class-map.js';
|
|
19
|
-
class Namespaced extends Directive {
|
|
20
|
-
update(part, [namespace, value]) {
|
|
21
|
-
part.element.setAttributeNS(namespace, part.name, value);
|
|
22
|
-
return noChange;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
const namespaced = directive(Namespaced);
|
|
26
18
|
/**
|
|
27
19
|
* An icon
|
|
28
20
|
*
|
|
@@ -84,10 +76,8 @@ export class GvIcon extends LitElement {
|
|
|
84
76
|
return `./icons/${category}.svg#${icon}`;
|
|
85
77
|
}
|
|
86
78
|
render() {
|
|
87
|
-
const
|
|
88
|
-
return html `<svg class="${classMap({ 'no-color': !this.canCustomize() })}"
|
|
89
|
-
<use xlink:href="${namespaced(xlinkNamespace, GvIcon.getHref(this.shape))}" />
|
|
90
|
-
</svg>`;
|
|
79
|
+
const icon = svg `<use href="${GvIcon.getHref(this.shape)}" />`;
|
|
80
|
+
return html `<svg xmlns="http://www.w3.org/2000/svg" class="${classMap({ 'no-color': !this.canCustomize() })}">${icon}</svg>`;
|
|
91
81
|
}
|
|
92
82
|
}
|
|
93
83
|
window.customElements.define('gv-icon', GvIcon);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gv-icon.js","sourceRoot":"","sources":["../../../../src/atoms/gv-icon/gv-icon.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,GAAG,EAAE,UAAU,EAA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