[ACA-2064] support custom icons for extensions (#864)

* icon component, custom svg

* split components, fix modules

* simplify code

* universal icon component

* support custom icon registration

* update docs

* test fixes
This commit is contained in:
Denys Vuika
2018-12-07 19:09:45 +00:00
committed by GitHub
parent ec3eeb7a63
commit 99a8192b36
30 changed files with 505 additions and 229 deletions

View File

@@ -563,6 +563,24 @@
"type": "boolean"
}
}
},
"iconRef": {
"type": "object",
"required": ["id", "value"],
"properties": {
"id": {
"description": "Unique identifier. Must be in the format '[namespace]:[name]'.",
"type": "string"
},
"value": {
"description": "Icon path relative to the application root.",
"type": "string"
},
"disabled": {
"description": "Toggles the disabled state",
"type": "boolean"
}
}
}
},
@@ -628,6 +646,12 @@
"description": "Application-specific features and extensions",
"type": "object",
"properties": {
"icons": {
"description": "Custom icons",
"type": "array",
"items": { "$ref": "#/definitions/iconRef" },
"minItems": 1
},
"header": {
"description": "Application header extensions",
"type": "array",