@furo/ui5
Version:
SAP UI5 Web Components data bindings for furo-web
1,316 lines • 1.94 MB
JSON
{
"schemaVersion": "1.0.0",
"readme": "",
"modules": [
{
"kind": "javascript-module",
"path": "src/furo-ui5-barcode-scanner-dialog.js",
"declarations": [
{
"kind": "class",
"description": "The 'furo-ui5-barcode-scanner-dialog' component provides barcode scanning functionality for all devices that\nsupport the MediaDevices.getUserMedia() native API. Opening the dialog launches the device camera and scans for known barcode formats.\nInternally, the component uses the zxing-js/library third party OSS. For a list of supported barcode formats, see the\nzxing-js/library documentation. https://github.com/zxing-js/library\n\nIt supports all features from the [SAP ui5 Barcode Scanner Dialog element](https://sap.github.io/ui5-webcomponents/playground/components/BarcodeScannerDialog/).\n\nYou can bind any `string` type, like `furo.fat.String` type or the `google.protobuf.StringValue` type.\n\n```html\n <furo-ui5-button at-click=--openClicked>Open Scanner</furo-ui5-button>\n <furo-ui5-barcode-scanner-dialog fn-show=\"--openClicked\"\n fn-bind-data=\"--dao(*.field)\"></furo-ui5-barcode-scanner-dialog>\n\n```\n\n## Methods\n**bindData(fieldNode)**\nBind an entity field. You can use the entity even when no data was received.\n\nWhen you use at-object-ready from a furo-data-object which emits a EntityNode, just bind the field with --entity(*.fields.fieldname)",
"name": "FuroUi5BarcodeScannerDialog",
"members": [
{
"kind": "method",
"name": "_updateFNA",
"parameters": [
{
"name": "e"
}
],
"description": "Input change handler\nThis is done to be able to remove the event-listeners as a protection for multiple calls",
"return": {
"type": {
"text": "(function(): void)|*"
}
},
"privacy": "private"
},
{
"kind": "field",
"name": "metadata",
"static": true,
"privacy": "private",
"readonly": true
}
],
"events": [
{
"type": {
"text": "String"
},
"description": " Fires when the scan is completed successfuuly.",
"name": "scan-success"
},
{
"type": {
"text": "String"
},
"description": " Fires when the scan fails with error.",
"name": "scan-error"
},
{
"type": {
"text": "String"
},
"description": "Fires the field value when it changes.",
"name": "furo-value-changed"
}
],
"mixins": [
{
"name": "FieldNodeAdapter",
"package": "@furo/data/src/lib/FieldNodeAdapter.js"
}
],
"superclass": {
"module": "src/furo-ui5-barcode-scanner-dialog.js"
},
"tagName": "furo-ui5-barcode-scanner-dialog",
"summary": "data barcode scanner dialog",
"customElement": true
}
],
"exports": [
{
"kind": "js",
"name": "FuroUi5BarcodeScannerDialog",
"declaration": {
"name": "FuroUi5BarcodeScannerDialog",
"module": "src/furo-ui5-barcode-scanner-dialog.js"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/furo-ui5-bool-icon.js",
"declarations": [
{
"kind": "class",
"description": "Displays a icon/symbol for a boolean value\n\nThis component uses the SAP Ui5 icons.\nhttps://openui5.hana.ondemand.com/test-resources/sap/m/demokit/iconExplorer/webapp/index.html\n\n```html\n<furo-ui5-bool-icon fn-bind-data=\"--dao(FIELDNODE)\"></furo-ui5-bool-icon>\n```\n\nOnly `@ui5/webcomponents-icons/dist/navigation-down-arrow.js` and `@ui5/webcomponents-icons/dist/navigation-right-arrow.js` are imported.\nIf you set other icons, please do not forget to import them.",
"name": "FuroDataBoolIcon",
"members": [
{
"kind": "method",
"name": "_FBPReady",
"description": "flow is ready lifecycle method"
},
{
"kind": "method",
"name": "bindData",
"parameters": [
{
"name": "fieldNode",
"type": {
"text": "FieldNode"
}
}
],
"description": "Binds a FieldNode\n\nSupported types: `bool`"
},
{
"kind": "method",
"name": "toggle",
"description": "Toggles the icon."
},
{
"kind": "field",
"name": "symboltrue",
"privacy": "public",
"type": {
"text": "string"
},
"description": "Defines the icon for the true state.",
"default": "'navigation-down-arrow'",
"attribute": "symboltrue"
},
{
"kind": "field",
"name": "symbolfalse",
"privacy": "public",
"type": {
"text": "string"
},
"description": "Defines the icon for the false state.",
"default": "'navigation-right-arrow'",
"attribute": "symbolfalse"
},
{
"kind": "field",
"name": "field",
"type": {
"text": "object"
},
"default": "{}"
},
{
"kind": "field",
"name": "_ocSymbol",
"description": "open close symbol",
"type": {
"text": "string"
},
"privacy": "private"
},
{
"kind": "field",
"name": "_state",
"type": {
"text": "boolean"
},
"privacy": "private",
"default": "false"
}
],
"attributes": [
{
"name": "symboltrue",
"type": {
"text": "string"
},
"description": "Defines the icon for the true state.",
"default": "'navigation-down-arrow'",
"fieldName": "symboltrue"
},
{
"name": "symbolfalse",
"type": {
"text": "string"
},
"description": "Defines the icon for the false state.",
"default": "'navigation-right-arrow'",
"fieldName": "symbolfalse"
}
],
"mixins": [
{
"name": "FBP",
"package": "@furo/fbp"
}
],
"superclass": {
"name": "LitElement",
"package": "lit"
},
"tagName": "furo-ui5-bool-icon",
"summary": "Displays a icon for a boolean value",
"customElement": true
}
],
"exports": [
{
"kind": "js",
"name": "FuroDataBoolIcon",
"declaration": {
"name": "FuroDataBoolIcon",
"module": "src/furo-ui5-bool-icon.js"
}
},
{
"kind": "custom-element-definition",
"name": "furo-ui5-bool-icon",
"declaration": {
"name": "FuroDataBoolIcon",
"module": "src/furo-ui5-bool-icon.js"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/furo-ui5-busy-indicator.js",
"declarations": [
{
"kind": "class",
"description": "The furo-ui5-busy-indicator signals that some operation is going on and that the user must wait.\n\n```html\n<furo-ui5-busy-indicator></furo-ui5-busy-indicator>\n```\n\nhttps://sap.github.io/ui5-webcomponents/playground/components/BusyIndicator/",
"name": "FuroUiBusyIndicator",
"members": [
{
"kind": "method",
"name": "activate",
"description": "Sets the busy indicator state to active"
},
{
"kind": "method",
"name": "deactivate",
"description": "Sets the busy indicator state to inactive"
},
{
"kind": "field",
"name": "metadata",
"static": true,
"privacy": "private",
"readonly": true
}
],
"superclass": {
"module": "src/furo-ui5-busy-indicator.js"
},
"tagName": "furo-ui5-busy-indicator",
"summary": "ui5 busy indicator with methods",
"customElement": true
}
],
"exports": [
{
"kind": "js",
"name": "FuroUiBusyIndicator",
"declaration": {
"name": "FuroUiBusyIndicator",
"module": "src/furo-ui5-busy-indicator.js"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/furo-ui5-button.js",
"declarations": [
{
"kind": "class",
"description": "The furo-ui5-button component represents a simple push button. It enables users to trigger actions by clicking or\ntapping the furo-ui5-button, or by pressing certain keyboard keys, such as Enter.\nUsage\nFor the furo-ui5-button UI, you can define text, icon, or both. You can also specify whether the text or the icon is displayed first.\n\n```html\n<furo-ui5-button>Register</furo-ui5-button>\n```\n\nYou can choose from a set of predefined types that offer different styling to correspond to the triggered action.\n\nYou can set the furo-ui5-button as enabled or disabled.\nAn enabled ui5-button can be pressed by clicking or tapping it.\nThe button changes its style to provide visual feedback to the user that it is pressed or hovered over with the mouse cursor.\nA disabled furo-ui5-button appears inactive and cannot be pressed.\n\nWhat is different from ui5-button?\nWith flow based programming it's usual to address functions. So we added two convenience functions for\n- disabling => fn-disable\n- enabling => fn-enable\n\nhttps://sap.github.io/ui5-webcomponents/playground/components/Button/",
"name": "FuroUi5Button",
"members": [
{
"kind": "field",
"name": "buttonTypeText",
"description": "Overridden, because we use a different i18n bundle",
"return": {
"type": {
"text": "*|string"
}
},
"privacy": "private",
"readonly": true
},
{
"kind": "method",
"name": "disable",
"description": "Sets the button state to disabled"
},
{
"kind": "method",
"name": "enable",
"description": "Sets the button state to enabled"
},
{
"kind": "method",
"name": "show",
"description": "shows the button, when it was hidden before"
},
{
"kind": "method",
"name": "hide",
"description": "hides the button"
},
{
"kind": "field",
"name": "metadata",
"static": true,
"privacy": "private",
"readonly": true
}
],
"superclass": {
"module": "src/furo-ui5-button.js"
},
"tagName": "furo-ui5-button",
"summary": "ui5 button with methods",
"customElement": true
}
],
"exports": [
{
"kind": "js",
"name": "FuroUi5Button",
"declaration": {
"name": "FuroUi5Button",
"module": "src/furo-ui5-button.js"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/furo-ui5-card.js",
"declarations": [
{
"kind": "class",
"description": "The furo-ui5-card is a bindable card that represents information in the form of a tile with\nseparate header and content areas.\n\n```html\n <furo-ui5-card\n heading=\"Title\"\n subheading=\"Secondary text\"\n icon=\"card\"\n >\n <div slot=\"action\"><furo-ui5-button>Action</furo-ui5-button></div>\n <div slot=\"content\">content goes here</div>\n </furo-ui5-card>\n```\n\n## How To Use Semantic Colors\nYou can use semantic colors to visualize the status or state. Set the attribute design=\"\" with the following values:\n- Positive (--sapPositiveColor)\n- Negative (--sapNegativeColor)\n- Critical (--sapCriticalColor)\n- Neutral (--sapCriticalColor)\n\n```html\n <furo-ui5-card\n design=\"Positive\"\n icon=\"card\"\n >\n <div slot=\"content\">content goes here</div>\n </furo-ui5-card>\n```",
"name": "FuroUi5Card",
"slots": [
{
"type": {
"text": "HTMLElement [0..n]"
},
"description": "defines an action, displayed in the right most part of the header. Note: If status is set, the status text will be displayed, you can either have action, or status.",
"name": "action"
},
{
"type": {
"text": "HTMLElement [0..n]"
},
"description": "defines the content of the card",
"name": "content"
}
],
"members": [
{
"kind": "method",
"name": "bindHeading",
"parameters": [
{
"name": "fieldNode",
"description": "`string`",
"type": {
"text": "FieldNode"
}
}
],
"description": "Binds any **scalar** field to set the title of the panel.\n\nSupported types: scalar types e.g. `string`"
},
{
"kind": "method",
"name": "bindIcon",
"parameters": [
{
"name": "fieldNode",
"description": "`string`",
"type": {
"text": "FieldNode"
}
}
],
"description": "Binds a FieldNode to set the icon of the panel.\n\nDo not forget to import the icon you will use in your component.\n\nSupported types: `string`"
},
{
"kind": "method",
"name": "bindSubheading",
"parameters": [
{
"name": "fieldNode",
"description": "`string`",
"type": {
"text": "FieldNode"
}
}
],
"description": "Binds any **scalar** field to set the subtitle of the panel.\n\nSupported types: scalar types e.g. `string`"
},
{
"kind": "method",
"name": "bindNavNode",
"parameters": [
{
"name": "fieldNode",
"description": "`string`",
"type": {
"text": "FieldNode"
}
}
],
"description": "Binds a FieldNode with the following signature:\n\n- display_name (`string`)\n- secondary_text (`string`)\n- icon (`string`)"
},
{
"kind": "method",
"name": "_setNavNodeSignatureValues",
"description": "update attributes according to the value of furo.navigation.Navigationnode signature",
"privacy": "private"
},
{
"kind": "field",
"name": "icon",
"privacy": "public",
"type": {
"text": "string"
},
"description": "Defines the visual representation in the header of the card. Supports images and icons.\nhttps://openui5.hana.ondemand.com/test-resources/sap/m/demokit/iconExplorer/webapp/index.html",
"default": "''",
"attribute": "icon",
"reflects": true
},
{
"kind": "field",
"name": "heading",
"privacy": "public",
"type": {
"text": "string"
},
"description": "Defines the title displayed in the ui5-card header.",
"default": "''",
"attribute": "heading"
},
{
"kind": "field",
"name": "subheading",
"privacy": "public",
"type": {
"text": "string"
},
"description": "Defines the subheading displayed in the ui5-card header.",
"default": "''",
"attribute": "subheading"
},
{
"kind": "field",
"name": "status",
"privacy": "public",
"type": {
"text": "string"
},
"description": "Defines the status text displayed in the card header (upper right).\n\nBy enabling the status, actions are not visible.",
"default": "''",
"attribute": "status"
},
{
"kind": "field",
"name": "headerInteractive",
"privacy": "public",
"type": {
"text": "boolean"
},
"description": "Defines if the ui5-card header would be interactive, e.g gets hover effect, gets focused and header-click event is fired, when it is pressed.",
"default": "false",
"attribute": "header-interactive",
"reflects": true
},
{
"kind": "field",
"name": "noContentPadding",
"privacy": "public",
"type": {
"text": "boolean"
},
"description": "Shows the content slot area with no padding",
"default": "false",
"attribute": "no-content-padding",
"reflects": true
}
],
"events": [
{
"description": "Fired when the card head is clicked. The header-interactive attribute must be set.",
"name": "header-clicked"
},
{
"description": "Fired when interactive header was clicked.",
"name": "header-click"
}
],
"attributes": [
{
"name": "heading",
"type": {
"text": "string"
},
"description": "Defines the title displayed in the ui5-card header.",
"default": "''",
"fieldName": "heading"
},
{
"name": "subheading",
"type": {
"text": "string"
},
"description": "Defines the subheading displayed in the ui5-card header.",
"default": "''",
"fieldName": "subheading"
},
{
"name": "icon",
"type": {
"text": "string"
},
"description": "Defines the visual representation in the header of the card. Supports images and icons.\nhttps://openui5.hana.ondemand.com/test-resources/sap/m/demokit/iconExplorer/webapp/index.html",
"default": "''",
"fieldName": "icon"
},
{
"name": "status",
"type": {
"text": "string"
},
"description": "Defines the status text displayed in the card header (upper right).\n\nBy enabling the status, actions are not visible.",
"default": "''",
"fieldName": "status"
},
{
"name": "header-interactive",
"type": {
"text": "boolean"
},
"description": "Defines if the ui5-card header would be interactive, e.g gets hover effect, gets focused and header-click event is fired, when it is pressed.",
"default": "false",
"fieldName": "headerInteractive"
},
{
"name": "no-content-padding",
"type": {
"text": "boolean"
},
"description": "Shows the content slot area with no padding",
"default": "false",
"fieldName": "noContentPadding"
}
],
"mixins": [
{
"name": "FBP",
"package": "@furo/fbp"
}
],
"superclass": {
"name": "LitElement",
"package": "lit"
},
"tagName": "furo-ui5-card",
"summary": "Ui5 card with data bindings",
"customElement": true
}
],
"exports": [
{
"kind": "js",
"name": "FuroUi5Card",
"declaration": {
"name": "FuroUi5Card",
"module": "src/furo-ui5-card.js"
}
},
{
"kind": "custom-element-definition",
"name": "furo-ui5-card",
"declaration": {
"name": "FuroUi5Card",
"module": "src/furo-ui5-card.js"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/furo-ui5-chart-display.js",
"declarations": [
{
"kind": "class",
"description": "The furo-ui5-chart-display is the render component\nto display charts with apex the apex charts lib (https://github.com/apexcharts/apexcharts.js).\n\n Use `furo-ui5-chart` to connect your data.\n\n ```html\n <furo-ui5-chart-display chart-type=\"bar\">\n <furo-ui5-chart\n fn-bind-data=\"--projectDAO(*.entities)\"\n data-field=\"data.cost_limit.units\"\n category-field=\"data.description\"\n ></furo-ui5-chart>\n </furo-ui5-chart-display>\n ```",
"name": "FuroUi5ChartDisplay",
"members": [
{
"kind": "field",
"name": "sparkline",
"privacy": "public",
"type": {
"text": "Boolean"
},
"description": "Hides all elements of the chart other than the primary graphic.\nUse this to visualize data in very small areas.",
"attribute": "sparkline"
},
{
"kind": "field",
"name": "xaxisTitle",
"privacy": "public",
"type": {
"text": "String"
},
"description": "Give the x-axis a title which will be displayed below the axis labels by default.",
"attribute": "xaxis-title"
},
{
"kind": "field",
"name": "xaxisDatetime",
"privacy": "public",
"type": {
"text": "Boolean"
},
"description": "Set this to true if you have datetime, google.type.date or timestamp data on the x-axis",
"attribute": "xaxis-datetime"
},
{
"kind": "field",
"name": "zebra",
"privacy": "public",
"type": {
"text": "String"
},
"description": "set zebra color like zebra=\"#f3f4f5, #fff\" to get stripes",
"attribute": "zebra"
},
{
"kind": "field",
"name": "noDataText",
"privacy": "public",
"type": {
"text": "String"
},
"description": "Set the text to display, if no data is given.\n\nIf this option is not set, the default is **No data.**",
"attribute": "no-data-text"
},
{
"kind": "field",
"name": "legend",
"privacy": "public",
"type": {
"text": "Boolean"
},
"description": "Enables the legend on bottom left with offset 0:0",
"attribute": "legend"
},
{
"kind": "field",
"name": "dataLabels",
"privacy": "public",
"type": {
"text": "Boolean"
},
"description": "Enable labels with data on every item.",
"attribute": "data-labels"
},
{
"kind": "field",
"name": "tooltip",
"privacy": "public",
"type": {
"text": "Boolean"
},
"description": "show a tooltip on mouseover",
"attribute": "tooltip"
},
{
"kind": "field",
"name": "legendAlign",
"privacy": "public",
"type": {
"text": "String"
},
"description": "Aligns the legend to `left` `center` `right`\n\ndefault is **left**",
"attribute": "legend-align"
},
{
"kind": "field",
"name": "legendPosition",
"privacy": "public",
"type": {
"text": "String"
},
"description": "Set the position of the legend to `top`, `right`, `bottom`, `left`\n\nDefault is **bottom**",
"attribute": "legend-position"
},
{
"kind": "field",
"name": "legendOffsetX",
"privacy": "public",
"type": {
"text": "Number"
},
"description": "Moves the legend in the **x** direction for n pixels from `legend-position`",
"attribute": "legend-offset-x"
},
{
"kind": "field",
"name": "legendOffsetY",
"privacy": "public",
"type": {
"text": "Number"
},
"description": "Moves the legend in the **y** direction for n pixels from `legend-position`",
"attribute": "legend-offset-y"
},
{
"kind": "field",
"name": "toolbar",
"privacy": "public",
"type": {
"text": "Boolean"
},
"description": "Enables the toolbar",
"attribute": "toolbar"
},
{
"kind": "field",
"name": "toolbarDownload",
"privacy": "public",
"type": {
"text": "Boolean"
},
"description": "Enables the download option in the toolbar (svg,csv,png)",
"attribute": "toolbar-download"
},
{
"kind": "field",
"name": "plotHorizontal",
"privacy": "public",
"type": {
"text": "boolean"
},
"description": "Enable this to draw the bars horizontally",
"attribute": "plot-horizontal"
},
{
"kind": "field",
"name": "grid",
"privacy": "public",
"type": {
"text": "Boolean"
},
"description": "Draw the horizontal grid lines",
"attribute": "grid"
},
{
"kind": "field",
"name": "chartType",
"privacy": "public",
"type": {
"text": "String"
},
"description": "\nline, area, bar are mixable\n\nradar, scatter, heatmap\n\npie donut polarArea radialBar can only consume 1 data series",
"attribute": "chart-type"
},
{
"kind": "field",
"name": "stacked",
"privacy": "public",
"type": {
"text": "Boolean"
},
"description": "WORK IN PROGRESS\nStacked bar charts are not mixable",
"attribute": "stacked"
},
{
"kind": "field",
"name": "titleText",
"privacy": "public",
"type": {
"text": "String"
},
"description": "Set the title.",
"attribute": "title-text"
},
{
"kind": "field",
"name": "titleAlign",
"privacy": "public",
"type": {
"text": "String"
},
"description": "Aligns the title. Possible values are 'left', 'center', 'right'\n\nDefault is **left**",
"attribute": "title-align"
},
{
"kind": "field",
"name": "titleOffsetX",
"privacy": "public",
"type": {
"text": "Number"
},
"description": "Moves the title for n pixels on the x-axis from the alignment direction",
"attribute": "title-offset-x"
},
{
"kind": "field",
"name": "titleOffsetY",
"privacy": "public",
"type": {
"text": "Number"
},
"description": "Moves the title for n pixels on the y-axis from the alignment direction",
"attribute": "title-offset-y"
},
{
"kind": "field",
"name": "fixedHeight",
"privacy": "public",
"type": {
"text": "Number"
},
"description": "Set a fixed height for the plot. Default is auto, this can be useful if you need to control the heights",
"attribute": "fixed-height"
},
{
"kind": "method",
"name": "_initChart",
"parameters": [
{
"name": "apexOptions"
}
],
"privacy": "private"
},
{
"kind": "method",
"name": "_FBPReady",
"description": "flow is ready lifecycle method",
"privacy": "private"
},
{
"kind": "method",
"name": "_registerDataSourceComponents",
"parameters": [
{
"name": "dataSources"
}
],
"return": {
"type": {
"text": "Promise<void>"
}
},
"privacy": "private"
},
{
"kind": "method",
"name": "_fillInitialData",
"privacy": "private"
},
{
"kind": "field",
"name": "apexOptions",
"type": {
"text": "object"
},
"default": "{\n series: [],\n yaxis: [],\n // belize qualitative color palette\n // node_modules/@ui5/webcomponents-theming/dist/themes/sap_fiori_3/css_variables.css\n colors: [\n 'var(--sapChart_OrderedColor_1 , #5899da)',\n 'var(--sapChart_OrderedColor_2 , #e8743b)',\n 'var(--sapChart_OrderedColor_3 , #19a979)',\n 'var(--sapChart_OrderedColor_4 , #ed4a7b)',\n 'var(--sapChart_OrderedColor_5 , #945ecf)',\n 'var(--sapChart_OrderedColor_6 , #13a4b4)',\n 'var(--sapChart_OrderedColor_7 , #525df4)',\n 'var(--sapChart_OrderedColor_8 , #bf399e)',\n 'var(--sapChart_OrderedColor_9 , #6c8893)',\n 'var(--sapChart_OrderedColor_10 ,: #ee6868)',\n 'var(--sapChart_OrderedColor_11 ,: #2f6497)',\n ],\n noData: {\n text: 'No data.',\n align: 'center',\n verticalAlign: 'middle',\n offsetX: 0,\n offsetY: 0,\n style: {\n color: undefined,\n fontSize: '14px',\n fontFamily: undefined,\n },\n },\n chart: {\n // height: 550,\n fontFamily: 'var(--sapFontFamily, Helvetica, Arial, sans-serif)',\n foreColor: 'var(--sapTextColor)',\n type: 'line',\n stacked: false,\n background: 'unset',\n events: {},\n toolbar: {\n show: false, // disable by default\n tools: {\n download: false,\n selection: true,\n zoom: true,\n zoomin: true,\n zoomout: true,\n pan: true,\n reset: true,\n },\n },\n sparkline: {\n enabled: false,\n },\n },\n grid: {\n show: false, // https://apexcharts.com/docs/options/grid/\n // zebra\n // row: {\n // colors: [\"#f3f4f5\", \"#fff\"],\n // }\n },\n dataLabels: {\n enabled: false,\n },\n\n title: {\n // text: 'XYZ - Analysis',\n align: 'left',\n // offsetX: 70,\n },\n stroke: {},\n\n tooltip: {\n enabled: false,\n fixed: {\n enabled: false,\n position: 'topLeft', // topRight, topLeft, bottomRight, bottomLeft\n offsetY: 30,\n offsetX: 160,\n },\n },\n legend: {\n show: false,\n position: 'bottom',\n horizontalAlign: 'left',\n offsetX: 0,\n offsetY: 0,\n formatter: (seriesName, opts) => {\n if (\n opts.w.config.yaxis[opts.seriesIndex] &&\n opts.w.config.yaxis[opts.seriesIndex].legendLabel\n ) {\n return [opts.w.config.yaxis[opts.seriesIndex].legendLabel];\n }\n return [seriesName];\n },\n },\n plotOptions: {},\n xaxis: {\n // type: \"datetime\",\n\n // tickAmount: 6,\n title: {\n text: undefined,\n },\n },\n }"
}
],
"events": [
{
"type": {
"text": "Fieldnode"
},
"description": " Fired when a marker for this data source was clicked. Note: the event is fired from the furo-ui5-chart",
"name": "data-point-clicked"
}
],
"attributes": [
{
"name": "chart-type",
"type": {
"text": "String"
},
"description": "\nline, area, bar are mixable\n\nradar, scatter, heatmap\n\npie donut polarArea radialBar can only consume 1 data series",
"fieldName": "chartType"
},
{
"name": "title-text",
"type": {
"text": "String"
},
"description": "Set the title.",
"fieldName": "titleText"
},
{
"name": "title-align",
"type": {
"text": "String"
},
"description": "Aligns the title. Possible values are 'left', 'center', 'right'\n\nDefault is **left**",
"fieldName": "titleAlign"
},
{
"name": "title-offset-x",
"type": {
"text": "Number"
},
"description": "Moves the title for n pixels on the x-axis from the alignment direction",
"fieldName": "titleOffsetX"
},
{
"name": "title-offset-y",
"type": {
"text": "Number"
},
"description": "Moves the title for n pixels on the y-axis from the alignment direction",
"fieldName": "titleOffsetY"
},
{
"name": "no-data-text",
"type": {
"text": "String"
},
"description": "Set the text to display, if no data is given.\n\nIf this option is not set, the default is **No data.**",
"fieldName": "noDataText"
},
{
"name": "stacked",
"type": {
"text": "Boolean"
},
"description": "WORK IN PROGRESS\nStacked bar charts are not mixable",
"fieldName": "stacked"
},
{
"name": "data-labels",
"type": {
"text": "Boolean"
},
"description": "Enable labels with data on every item.",
"fieldName": "dataLabels"
},
{
"name": "fixed-height",
"type": {
"text": "Number"
},
"description": "Set a fixed height for the plot. Default is auto, this can be useful if you need to control the heights",
"fieldName": "fixedHeight"
},
{
"name": "tooltip",
"type": {
"text": "Boolean"
},
"description": "show a tooltip on mouseover",
"fieldName": "tooltip"
},
{
"name": "legend",
"type": {
"text": "Boolean"
},
"description": "Enables the legend on bottom left with offset 0:0",
"fieldName": "legend"
},
{
"name": "grid",
"type": {
"text": "Boolean"
},
"description": "Draw the horizontal grid lines",
"fieldName": "grid"
},
{
"name": "legend-align",
"type": {
"text": "String"
},
"description": "Aligns the legend to `left` `center` `right`\n\ndefault is **left**",
"fieldName": "legendAlign"
},
{
"name": "legend-position",
"type": {
"text": "String"
},
"description": "Set the position of the legend to `top`, `right`, `bottom`, `left`\n\nDefault is **bottom**",
"fieldName": "legendPosition"
},
{
"name": "legend-offset-x",
"type": {
"text": "Number"
},
"description": "Moves the legend in the **x** direction for n pixels from `legend-position`",
"fieldName": "legendOffsetX"
},
{
"name": "legend-offset-y",
"type": {
"text": "Number"
},
"description": "Moves the legend in the **y** direction for n pixels from `legend-position`",
"fieldName": "legendOffsetY"
},
{
"name": "toolbar",
"type": {
"text": "Boolean"
},
"description": "Enables the toolbar",
"fieldName": "toolbar"
},
{
"name": "toolbar-download",
"type": {
"text": "Boolean"
},
"description": "Enables the download option in the toolbar (svg,csv,png)",
"fieldName": "toolbarDownload"
},
{
"name": "plot-horizontal",
"type": {
"text": "boolean"
},
"description": "Enable this to draw the bars horizontally",
"fieldName": "plotHorizontal"
},
{
"name": "sparkline",
"type": {
"text": "Boolean"
},
"description": "Hides all elements of the chart other than the primary graphic.\nUse this to visualize data in very small areas.",
"fieldName": "sparkline"
},
{
"name": "zebra",
"type": {
"text": "String"
},
"description": "set zebra color like zebra=\"#f3f4f5, #fff\" to get stripes",
"fieldName": "zebra"
},
{
"name": "xaxis-title",
"type": {
"text": "String"
},
"description": "Give the x-axis a title which will be displayed below the axis labels by default.",
"fieldName": "xaxisTitle"
},
{
"name": "xaxis-datetime",
"type": {
"text": "Boolean"
},
"description": "Set this to true if you have datetime, google.type.date or timestamp data on the x-axis",
"fieldName": "xaxisDatetime"
}
],
"mixins": [
{
"name": "FBP",
"package": "@furo/fbp"
}
],
"superclass": {
"name": "LitElement",
"package": "lit"
},
"tagName": "furo-ui5-chart-display",
"summary": "Display charts with data objects",
"customElement": true
}
],
"exports": [
{
"kind": "js",
"name": "FuroUi5ChartDisplay",
"declaration": {
"name": "FuroUi5ChartDisplay",
"module": "src/furo-ui5-chart-display.js"
}
},
{
"kind": "custom-element-definition",
"name": "furo-ui5-chart-display",
"declaration": {
"name": "FuroUi5ChartDisplay",
"module": "src/furo-ui5-chart-display.js"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/furo-ui5-chart.js",
"declarations": [
{
"kind": "class",
"description": "furo-ui5-chart connects data objects (repeaterNodes) with the charting lib.\n\n Use multiple binders if you need more then one series per chart.\n\n ```html\n <furo-ui5-chart-display chart-type=\"bar\">\n <furo-ui5-chart\n fn-bind-data=\"--projectDAO(*.entities)\"\n data-field=\"data.cost_limit.units\"\n category-field=\"data.description\"\n ></furo-ui5-chart>\n </furo-ui5-chart-display>\n ```",
"name": "FuroUi5Chart",
"members": [
{
"kind": "field",
"name": "axisLabelOpposite",
"privacy": "public",
"type": {
"text": "Boolean"
},
"description": "Put the axis label on the opposite site (usually right)",
"attribute": "axis-label-opposite"
},
{
"kind": "field",
"name": "axisLabel",
"privacy": "public",
"type": {
"text": "String"
},
"description": "Text for the y axis",
"attribute": "axis-label"
},
{
"kind": "field",
"name": "axisLabelColor",
"privacy": "public",
"type": {
"text": "String"
},
"description": "Custom color for the y axis description text",
"attribute": "axis-label-color"
},
{
"kind": "field",
"name": "axisBorder",
"privacy": "public",
"type": {
"text": "Boolean"
},
"description": "Show a border on the right side of the y axis descriptions and labels.",
"attribute": "axis-border"
},
{
"kind": "field",
"name": "axisBorderColor",
"privacy": "public",
"type": {
"text": "String"
},
"description": "Custom color for the border.",
"attribute": "axis-border-color"
},
{
"kind": "field",
"name": "axisTicks",
"privacy": "public",
"type": {
"text": "Boolean"
},
"description": "Show tick marks on the y axis.",
"attribute": "axis-ticks"
},
{
"kind": "field",
"name": "axisTooltip",
"privacy": "public",
"type": {
"text": "Boolean"
},
"description": "Show a tooltip with the current value while hovering.",
"attribute": "axis-tooltip"
},
{
"kind": "field",
"name": "axisTicksColor",
"privacy": "public",
"type": {
"text": "String"
},
"description": "Custom color for the ticks",
"attribute": "axis-ticks-color"
},
{
"kind": "field",
"name": "seriesName",
"privacy": "public",
"type": {
"text": "String"
},
"description": "Series with same name will get the same y-axis",
"attribute": "series-name"
},
{
"kind": "field",
"name": "legendLabel",
"privacy": "public",
"type": {
"text": "String"
},
"description": "Label the Series for the legend. This text is also shown on the tooltips. This is useful when you have more then one data series.",
"attribute": "legend-label"
},
{
"kind": "method",
"name": "bindData",
"parameters": [
{
"name": "data",
"type": {
"text": "RepeaterNode"
}
}
],
"description": "Binds a RepeaterNode to the component.\n\nSupported types: repeated types"
},
{
"kind": "method",
"name": "_dataPointSelection",
"parameters": [
{
"name": "e"
},
{
"name": "context"
},
{
"name": "config"
}
],
"privacy": "private"
},
{
"kind": "method",
"name": "_convertData",
"description": "Prepares the data for the according chart display\n\nsome charts want 1 dimensional data (pie, donut) and others expect more dimensions (boxplot,...)",
"privacy": "private"
},
{
"kind": "method",
"name": "_initEmptySeries",
"privacy": "private"
},
{
"kind": "method",
"name": "_pathGet",
"parameters": [
{
"name": "root",
"description": "Object from which to dereference path from",
"type": {
"text": "Object"
}
},
{
"name": "path",
"description": "Path to read",
"type": {
"text": "string | !Array<string|number>"
}
}
],
"description": "Reads a value from a path. If any sub-property in the path is `undefined`,\nthis method returns `undefined` (will never throw.",
"return": {
"type": {
"text": "*"
}
},
"privacy": "private"
},
{
"kind": "method",
"name": "_split",
"parameters": [
{
"name": "path"
}
],
"return": {
"type": {
"text": "string[]"
}
},
"privacy": "private"
},
{
"kind": "field",
"name": "strokeWidth",
"privacy": "public",
"type": {
"text": "number"
},
"description": "Define the thickness of the lines in px.",
"default": "1",
"attribute": "chart-stroke-width"
},
{
"kind": "field",
"name": "markerSize",
"privacy": "public",
"type": {
"text": "number"
},
"description": "Set the size of the markers (hover state) in px.",
"default": "0",
"attribute": "c