PromucFlow_constructor/app/client/packages/dsl
Pawan Kumar 23a577285f
chore: Create query selector (#37018)
/ok-to-test tags="@tag.All"

This PR updates the WidgetQueryGeneratorForm to only allow queries so
that it looks like a query selector. This is needed for chat widget
where the widget can only bind Appsmith AI queries.

![CleanShot 2024-10-23 at 12 30
32](https://github.com/user-attachments/assets/c1237435-3e9e-4cfd-8c2e-c762c76089bd)

PS: The above image is an example where TableWidget had
allowedDatasourcestypes as "Mysql" ( just for testing )

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

## Summary by CodeRabbit

- **New Features**
- Introduced a new dropdown variant "Connect to query" for improved
datasource selection.
- Enhanced handling of dynamic query options and datasource filtering
based on context.

- **Improvements**
- Updated the Widget Query Generator Form to support new properties for
better data management.
- Improved control flow in dropdown options to ensure appropriate
options are displayed based on the current context.
- Enhanced the One Click Binding Control to utilize new properties for
better interaction with the Widget Query Generator Form.

- **Bug Fixes**
- Refined logic for displaying datasource options, preventing
unnecessary options from appearing.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

<!-- This is an auto-generated comment: Cypress test results  -->
> [!TIP]
> 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
> Workflow run:
<https://github.com/appsmithorg/appsmith/actions/runs/11493055126>
> Commit: d6e322c649ef07c5fa58cd16fa0a5d97e55f7129
> <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=11493055126&attempt=2"
target="_blank">Cypress dashboard</a>.
> Tags: `@tag.All`
> Spec:
> <hr>Thu, 24 Oct 2024 06:53:37 UTC
<!-- end of auto-generated comment: Cypress test results  -->
2024-10-24 13:19:30 +05:30
..
src chore: Create query selector (#37018) 2024-10-24 13:19:30 +05:30
.eslintrc.json fix: add testing library eslint rules (#31028) 2024-02-12 18:59:10 +03:00
.prettierignore
jest.config.js chore: upgrade typescript to 5.4 (#35181) 2024-07-30 16:15:48 +02:00
package.json fix: removing unused dependencies and explicitly installing used ones (#36573) 2024-09-30 12:28:46 +03:00
rollup.config.js feat: dsl migration with server (#28518) 2023-11-30 18:03:33 +05:30
tsconfig.json