{
// The author of the auxiliary schema will provide the namespace, which will be used
//for the component to call to initialize the constructed grades.
"namespace": "fluid.prefs.constructed",
// The common path to settings panel templates.
// The template defined in "panels" element will take precedence over this definition.
"templatePrefix": "../../../framework/preferences/html/",
// The path to the preferences editor own template (e.g. the separated panel prefs editor template)
"template": "%prefix/SeparatedPanelPrefsEditor.html",
// The common path to settings panel messages.
// The message defined in "panels" element will take precedence over this definition.
"messagePrefix": "../../../framework/preferences/messages/",
"message": "%prefix/prefsEditor.json",
"textSize": {
"type": "fluid.prefs.textSize",
"enactor": {
"type": "fluid.prefs.enactors.textSize"
},
"panel": {
"type": "fluid.prefs.panels.textSize",
"container": ".flc-prefsEditor-text-size",
"template": "%prefix/PrefsEditorTemplate-textSize.html",
"message": "%prefix/textSize.json"
}
},
"lineSpace": {
"type": "fluid.prefs.lineSpace",
"enactor": {
"type": "fluid.prefs.enactors.lineSpace",
"fontSizeMap": {
"xx-small": "9px",
"x-small": "11px",
"small": "13px",
"medium": "15px",
"large": "18px",
"x-large": "23px",
"xx-large": "30px"
}
},
"panel": {
"type": "fluid.prefs.panels.lineSpace",
"container": ".flc-prefsEditor-line-space",
"template": "%prefix/PrefsEditorTemplate-lineSpace.html",
"message": "%prefix/lineSpace.json"
}
},
"textFont": {
"type": "fluid.prefs.textFont",
"classes": {
"default": "",
"times": "fl-font-uio-times",
"comic": "fl-font-uio-comic-sans",
"arial": "fl-font-uio-arial",
"verdana": "fl-font-uio-verdana"
},
"enactor": {
"type": "fluid.prefs.enactors.textFont",
"classes": "@textFont.classes"
},
"panel": {
"type": "fluid.prefs.panels.textFont",
"container": ".flc-prefsEditor-text-font",
"classnameMap": {"textFont": "@textFont.classes"},
"template": "%prefix/PrefsEditorTemplate-textFont.html",
"message": "%prefix/textFont.json"
}
},
"contrast": {
"type": "fluid.prefs.contrast",
"classes": {
"default": "fl-theme-default-prefsEditor",
"bw": "fl-theme-bw-prefsEditor fl-theme-bw",
"wb": "fl-theme-wb-prefsEditor fl-theme-wb",
"by": "fl-theme-by-prefsEditor fl-theme-by",
"yb": "fl-theme-yb-prefsEditor fl-theme-yb",
"lgdg": "fl-theme-lgdg-prefsEditor fl-theme-lgdg"
},
"enactor": {
"type": "fluid.prefs.enactors.contrast",
"classes": "@contrast.classes"
},
"panel": {
"type": "fluid.prefs.panels.contrast",
"container": ".flc-prefsEditor-contrast",
"classnameMap": {"theme": "@contrast.classes"},
"template": "%prefix/PrefsEditorTemplate-contrast.html",
"message": "%prefix/contrast.json"
}
},
"tableOfContents": {
"type": "fluid.prefs.tableOfContents",
"enactor": {
"type": "fluid.prefs.enactors.tableOfContents",
"tocTemplate": "../../../../components/tableOfContents/html/TableOfContents.html"
},
"panel": {
"type": "fluid.prefs.panels.layoutControls",
"container": ".flc-prefsEditor-layout-controls",
"template": "%prefix/PrefsEditorTemplate-layout.html",
"message": "%prefix/tableOfContents.json"
}
},
"emphasizeLinks": {
"type": "fluid.prefs.emphasizeLinks",
"enactor": {
"type": "fluid.prefs.enactors.emphasizeLinks",
"cssClass": "fl-link-enhanced"
},
"panel": {
"type": "fluid.prefs.panels.linksControls",
"container": ".flc-prefsEditor-links-controls",
"template": "%prefix/PrefsEditorTemplate-links.html",
"message": "%prefix/links.json"
}
},
"inputsLarger": {
"type": "fluid.prefs.inputsLarger",
"enactor": {
"type": "fluid.prefs.enactorsenactor.inputsLarger",
"cssClass": "fl-text-larger"
},
"panel": {
"type": "fluid.prefs.panels.linksControls"panel.inputsLarger",
"container": ".flc-prefsEditor-inputsLarger", // the css selector in the template where the panel is rendered
"template": "%prefix/PrefsEditorTemplate-inputsLarger.html",
"message": "%prefix/inputsLarger.json"
}
},
groups: {
"linksControls": { // this defines a composite panel
"container": ".flc-prefsEditor-links-controls",
"template": "%prefix/PrefsEditorTemplate-linksControls.html",
"message": "%prefix/linksControls.json",
"type": "fluid.prefs.panel.linksControls",
"panels": ["emphasizeLinks", "inputsLarger"] // the composite panel includes these two subpanels
}
}
} |