Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@query-builder/solid-query-builder
Advanced tools
Install it:
npm install @query-builder/solid-query-builder;
# or
yarn add @query-builder/solid-query-builder;
# or
pnpm add @query-builder/solid-query-builder;
Use it:
import { QueryBuilder } from '@query-builder/solid-query-builder';
// optional import for default minimal styling
import '@query-builder/solid-query-builder/dist/index.css'
https://query-builder.github.io/solid-query-builder/
<QueryBuilder
initialQuery={QUERY_DATA}
fields={FIELDSDATA}
operators={OPERATORS_DATA}
showShiftActions
allowDragAndDrop
disabled={false}
addSingleRuleToGroup={false}
showNotToggle="both"
/>
{
id: uuidv4(),
combinator: 'OR',
rules: [
{
id: uuidv4(),
field: 'First Name',
fieldValue: 'ABC-1',
operator: '=',
},
{
id: uuidv4(),
field: 'Last Name',
fieldValue: 'ABC-2',
operator: '=',
},
{
id: uuidv4(),
combinator: 'OR',
rules: [
{
id: uuidv4(),
field: 'Age',
fieldValue: 'ABC-3',
operator: '=',
},
{
id: uuidv4(),
field: 'Email',
fieldValue: 'john@doe.com',
operator: '=',
},
],
},
{
id: uuidv4(),
field: 'Subscription',
fieldValue: 'ABC-4',
operator: '=',
},
],
};
[
{
name: 'First Name',
label: 'First Name',
placeholder: 'Enter first name',
id: '1',
operators: [
{ name: 'equals', value: 'equals', label: 'Equals' },
{ name: 'between', value: 'between', label: 'Between' },
],
valueEditorType: 'text',
inputType: 'text',
values: [{ value: 'John', label: 'John' }],
defaultOperator: 'equals',
defaultValue: 'John',
comparator: 'string',
},
{
name: 'Last Name',
label: 'Last Name',
placeholder: 'Enter last name',
id: '2',
valueEditorType: 'text',
inputType: 'text',
values: [{ value: 'Doe', label: 'Doe' }],
defaultOperator: 'equals',
defaultValue: 'Doe',
comparator: 'string',
},
{
name: 'Age',
label: 'Age',
placeholder: 'Enter age',
id: '3',
operators: [{ name: 'greater_than', value: 'greater_than', label: 'Greater Than' }],
valueEditorType: 'text',
inputType: 'number',
values: [{ value: '30', label: '30' }],
defaultOperator: 'greater_than',
defaultValue: 30,
comparator: 'number',
},
{
name: 'Email',
label: 'Email',
placeholder: 'Enter email address',
id: '4',
operators: [{ name: 'contains', value: 'contains', label: 'Contains' }],
valueEditorType: 'text',
inputType: 'email',
values: [{ value: 'example@example.com', label: 'example@example.com' }],
defaultOperator: 'contains',
defaultValue: 'example@example.com',
comparator: 'string',
},
{
name: 'Subscription',
label: 'Subscribed to Newsletter',
id: '5',
operators: [{ name: 'equals', value: 'equals', label: 'Equals' }],
valueEditorType: 'checkbox',
inputType: 'checkbox',
values: [{ value: 'true', label: 'Yes' }],
defaultOperator: 'equals',
defaultValue: true,
comparator: 'boolean',
},
]
[
{ name: '=', value: '=', label: '=' },
{ name: '!=', value: '!=', label: '!=' },
{ name: '<', value: '<', label: '<' },
{ name: '>', value: '>', label: '>' },
{ name: '<=', value: '<=', label: '<=' },
{ name: '>=', value: '>=', label: '>=' },
{ name: 'contains', value: 'contains', label: 'contains' },
{ name: 'beginsWith', value: 'beginsWith', label: 'begins with' },
]
1.0.1 - 2024-11-14
FAQs
Customizable SolidJS based Query Builder
The npm package @query-builder/solid-query-builder receives a total of 0 weekly downloads. As such, @query-builder/solid-query-builder popularity was classified as not popular.
We found that @query-builder/solid-query-builder demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.