{"id":18645718,"url":"https://github.com/fliplet/fliplet-widget-data-source-query","last_synced_at":"2025-04-11T12:31:32.303Z","repository":{"id":48034753,"uuid":"83661925","full_name":"Fliplet/fliplet-widget-data-source-query","owner":"Fliplet","description":"Data Source Query Provider","archived":false,"fork":false,"pushed_at":"2022-12-01T22:24:46.000Z","size":410,"stargazers_count":0,"open_issues_count":6,"forks_count":5,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-25T13:51:10.754Z","etag":null,"topics":["data","provider","widget"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Fliplet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-02T09:49:34.000Z","updated_at":"2020-11-04T12:49:30.000Z","dependencies_parsed_at":"2023-01-23T19:01:23.449Z","dependency_job_id":null,"html_url":"https://github.com/Fliplet/fliplet-widget-data-source-query","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fliplet%2Ffliplet-widget-data-source-query","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fliplet%2Ffliplet-widget-data-source-query/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fliplet%2Ffliplet-widget-data-source-query/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fliplet%2Ffliplet-widget-data-source-query/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Fliplet","download_url":"https://codeload.github.com/Fliplet/fliplet-widget-data-source-query/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248401962,"owners_count":21097328,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data","provider","widget"],"created_at":"2024-11-07T06:16:56.492Z","updated_at":"2025-04-11T12:31:32.029Z","avatar_url":"https://github.com/Fliplet.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fliplet Data Source Query Provider\n\n**Please note: this widget requires you to run the gulp watcher during development to compile the source files as you save.**\n\nTo develop widgets, please follow our [widget development guide](http://developers.fliplet.com).\n\n---\n\nInstall dependencies:\n\n```\n$ npm install fliplet-cli -g\n```\n\n---\n\n\nClone and run for development:\n\n```\n$ git clone https://github.com/Fliplet/fliplet-widget-data-source-query.git\n$ cd fliplet-widget-data-source-query\n\n$ fliplet run\n```\n\nInstalling gulp and its plugins:\n\n```\n$ npm install\n```\n\n**Running gulp to continuously build ES6 into JS**:\n\n```\n$ npm run watch\n```\n\n---\n\n## How to call the provider\n\n```js\nvar sampleData = {\n  settings: {\n    dataSourceLabel: 'Select a data source',\n    modesDescription: 'How do you want your data to be plotted?',\n    modes: [\n      {\n        label: 'Plot my data as it is',\n        columns: [\n          {\n            key: 'bar',\n            label: 'Select the value for Bar',\n            type: 'single'\n          },\n          {\n            key: 'foobar',\n            label: 'Select the value for Foobar',\n            type: 'single'\n          }\n        ]\n      },\n      {\n        label: 'Summarise my data',\n        filters: false,\n        columns: [\n          {\n            key: 'foo',\n            label: 'Select the value for Foo',\n            type: 'single'\n          }\n        ]\n      }\n    ]\n  }\n};\n\nFliplet.Widget.open('com.fliplet.data-source-query', {\n  data: sampleData,\n  onEvent: function (event, data) {\n    if (event === 'mode-changed') {\n      console.log('mode index', data.value)\n    }\n\n    // return true to stop propagation up to studio or parent components\n  }\n});\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffliplet%2Ffliplet-widget-data-source-query","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffliplet%2Ffliplet-widget-data-source-query","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffliplet%2Ffliplet-widget-data-source-query/lists"}