2017-01-27 23:39:18 +00:00
|
|
|
define([
|
|
|
|
"./src/ExampleStyleGuideModelProvider",
|
2017-01-30 21:46:24 +00:00
|
|
|
"./src/MCTExample",
|
2018-08-07 21:47:50 +00:00
|
|
|
"./res/templates/intro.html",
|
|
|
|
"./res/templates/standards.html",
|
|
|
|
"./res/templates/colors.html",
|
|
|
|
"./res/templates/status.html",
|
|
|
|
"./res/templates/glyphs.html",
|
|
|
|
"./res/templates/controls.html",
|
|
|
|
"./res/templates/input.html",
|
2019-11-28 00:04:52 +00:00
|
|
|
"./res/templates/menus.html"
|
2017-01-27 23:39:18 +00:00
|
|
|
], function (
|
|
|
|
ExampleStyleGuideModelProvider,
|
2017-01-30 21:46:24 +00:00
|
|
|
MCTExample,
|
2018-08-07 21:47:50 +00:00
|
|
|
introTemplate,
|
|
|
|
standardsTemplate,
|
|
|
|
colorsTemplate,
|
|
|
|
statusTemplate,
|
|
|
|
glyphsTemplate,
|
|
|
|
controlsTemplate,
|
|
|
|
inputTemplate,
|
2019-11-28 00:04:52 +00:00
|
|
|
menusTemplate
|
2017-01-27 23:39:18 +00:00
|
|
|
) {
|
2019-11-28 00:04:52 +00:00
|
|
|
return {
|
2020-07-31 19:11:03 +00:00
|
|
|
name: "example/styleguide",
|
2019-11-28 00:04:52 +00:00
|
|
|
definition: {
|
|
|
|
"name": "Open MCT Style Guide",
|
|
|
|
"description": "Examples and documentation illustrating UI styles in use in Open MCT.",
|
|
|
|
"extensions":
|
2017-01-27 23:39:18 +00:00
|
|
|
{
|
|
|
|
"types": [
|
2020-07-31 19:11:03 +00:00
|
|
|
{
|
|
|
|
"key": "styleguide.intro",
|
|
|
|
"name": "Introduction",
|
|
|
|
"cssClass": "icon-page",
|
|
|
|
"description": "Introduction and overview to the style guide"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "styleguide.standards",
|
|
|
|
"name": "Standards",
|
|
|
|
"cssClass": "icon-page",
|
|
|
|
"description": ""
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "styleguide.colors",
|
|
|
|
"name": "Colors",
|
|
|
|
"cssClass": "icon-page",
|
|
|
|
"description": ""
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "styleguide.status",
|
|
|
|
"name": "status",
|
|
|
|
"cssClass": "icon-page",
|
|
|
|
"description": "Limits, telemetry paused, etc."
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "styleguide.glyphs",
|
|
|
|
"name": "Glyphs",
|
|
|
|
"cssClass": "icon-page",
|
|
|
|
"description": "Glyphs overview"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "styleguide.controls",
|
|
|
|
"name": "Controls",
|
|
|
|
"cssClass": "icon-page",
|
|
|
|
"description": "Buttons, selects, HTML controls"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "styleguide.input",
|
|
|
|
"name": "Text Inputs",
|
|
|
|
"cssClass": "icon-page",
|
|
|
|
"description": "Various text inputs"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "styleguide.menus",
|
|
|
|
"name": "Menus",
|
|
|
|
"cssClass": "icon-page",
|
|
|
|
"description": "Context menus, dropdowns"
|
|
|
|
}
|
2017-01-27 23:39:18 +00:00
|
|
|
],
|
|
|
|
"views": [
|
2020-07-31 19:11:03 +00:00
|
|
|
{
|
|
|
|
"key": "styleguide.intro",
|
|
|
|
"type": "styleguide.intro",
|
|
|
|
"template": introTemplate,
|
|
|
|
"editable": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "styleguide.standards",
|
|
|
|
"type": "styleguide.standards",
|
|
|
|
"template": standardsTemplate,
|
|
|
|
"editable": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "styleguide.colors",
|
|
|
|
"type": "styleguide.colors",
|
|
|
|
"template": colorsTemplate,
|
|
|
|
"editable": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "styleguide.status",
|
|
|
|
"type": "styleguide.status",
|
|
|
|
"template": statusTemplate,
|
|
|
|
"editable": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "styleguide.glyphs",
|
|
|
|
"type": "styleguide.glyphs",
|
|
|
|
"template": glyphsTemplate,
|
|
|
|
"editable": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "styleguide.controls",
|
|
|
|
"type": "styleguide.controls",
|
|
|
|
"template": controlsTemplate,
|
|
|
|
"editable": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "styleguide.input",
|
|
|
|
"type": "styleguide.input",
|
|
|
|
"template": inputTemplate,
|
|
|
|
"editable": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "styleguide.menus",
|
|
|
|
"type": "styleguide.menus",
|
|
|
|
"template": menusTemplate,
|
|
|
|
"editable": false
|
|
|
|
}
|
2017-01-27 23:39:18 +00:00
|
|
|
],
|
|
|
|
"roots": [
|
|
|
|
{
|
2017-02-06 19:42:39 +00:00
|
|
|
"id": "styleguide:home"
|
2017-01-27 23:39:18 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"models": [
|
|
|
|
{
|
2017-02-06 19:42:39 +00:00
|
|
|
"id": "styleguide:home",
|
2020-07-31 19:11:03 +00:00
|
|
|
"priority": "preferred",
|
2017-01-27 23:39:18 +00:00
|
|
|
"model": {
|
2021-02-16 19:51:44 +00:00
|
|
|
"type": "noneditable.folder",
|
2017-02-06 19:42:39 +00:00
|
|
|
"name": "Style Guide Home",
|
2017-02-01 22:10:48 +00:00
|
|
|
"location": "ROOT",
|
2017-01-27 23:39:18 +00:00
|
|
|
"composition": [
|
|
|
|
"intro",
|
2017-02-06 19:42:39 +00:00
|
|
|
"standards",
|
2017-02-08 23:32:04 +00:00
|
|
|
"colors",
|
2017-08-17 18:27:35 +00:00
|
|
|
"status",
|
2017-02-06 19:42:39 +00:00
|
|
|
"glyphs",
|
|
|
|
"styleguide:ui-elements"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "styleguide:ui-elements",
|
2020-07-31 19:11:03 +00:00
|
|
|
"priority": "preferred",
|
2017-02-06 19:42:39 +00:00
|
|
|
"model": {
|
2021-02-16 19:51:44 +00:00
|
|
|
"type": "noneditable.folder",
|
2017-02-08 23:32:04 +00:00
|
|
|
"name": "UI Elements",
|
2017-02-06 19:42:39 +00:00
|
|
|
"location": "styleguide:home",
|
|
|
|
"composition": [
|
2017-02-01 00:07:40 +00:00
|
|
|
"controls",
|
|
|
|
"input",
|
2017-02-06 19:42:39 +00:00
|
|
|
"menus"
|
2017-01-27 23:39:18 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2017-01-30 21:46:24 +00:00
|
|
|
"directives": [
|
|
|
|
{
|
|
|
|
"key": "mctExample",
|
|
|
|
"implementation": MCTExample
|
|
|
|
}
|
|
|
|
],
|
2017-01-27 23:39:18 +00:00
|
|
|
"components": [
|
|
|
|
{
|
|
|
|
"provides": "modelService",
|
|
|
|
"type": "provider",
|
|
|
|
"implementation": ExampleStyleGuideModelProvider,
|
|
|
|
"depends": [
|
|
|
|
"$q"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2019-11-28 00:04:52 +00:00
|
|
|
}
|
|
|
|
};
|
2017-01-30 21:46:24 +00:00
|
|
|
});
|