Package Exports
- @enso-ui/filters/bulma
- @enso-ui/filters/renderless
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@enso-ui/filters) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Dropdown Filters
Renderless Vue Filter Components with a Bulma implementation
Usage
Unless where specified otherwise, the components can be used outside of the Enso ecosystem.
Demo
For live examples and demos, you may visit laravel-enso.com
Installation
Install the package:
yarn add @enso-ui/filtersImport the desired component(s):
import { IntervalFilter, DateFilter, ... } from '@enso-ui/filters/bulma';
import { IntervalFilter, DateFilter, ... } from '@enso-ui/filters/renderless';Exports
@enso-ui/filters/bulma:
IntervalFilter,EnsoIntervalFilter,DateFilter,EnsoDateFilter,DateIntervalFilter,EnsoDateIntervalFilter,BooleanFilter,VueFilter,EnsoFilter,SelectFilter,EnsoSelectFilter,
@enso-ui/filters/renderless:
IntervalFilter,DateFilter,DateIntervalFilter,
bulma/BooleanFilter.vue
The bulma styled boolean filtering component, built on top of the VueFilter component.
'Passed-through' Properties:
compact-boolean, optional, defaultfalse, shows the component using a more compact statehideOff-boolean, optional, defaultfalse, if true hides the 'off' optioni18n,Function, optional, defaultv => v, the function that performs translationsicons-boolean, optional, defaultfalse, if true, also shows icons for each optionoffLabel-string, optional, default ``, the label used for the 'off' optionoptions,array, optional, default[], the list of optionsreadonly-boolean, optional, defaultfalse, if true hides marks the filter as read-onlylabel-string, optional, defaultnull, the label for the filtervalue,null, optional, defaultnull, the value of the filter
bulma/DateFilter.vue
The bulma styled date filtering component, built on top of the renderless version of the component.
Example:
<date-filter class="box raises-on-hover has-margin-top-large"
@update="filters.interval = $event"/>Properties:
compact-boolean, optional, defaultfalse, shows the component using a more compact statei18n,Function, optional, defaultv => v, the function that performs translations
'Passed-through' properties:
locale-string, optional, defaulten, the locale used for the pickerformat-string, optional, defaultd-m-Y, the format of the datedefault, 'string', optional, defaulttoday, valid options are: 'today', 'yesterday', 'last week', 'last month', 'all'
bulma/DateIntervalFilter.vue
The bulma styled date interval filtering component, built on top of the renderless version of the component.
Example:
<date-interval-filter class="box raises-on-hover has-margin-top-large"
@update="filters.interval = $event"/>Properties:
compact-boolean, optional, defaultfalse, shows the component using a more compact statei18n,Function, optional, defaultv => v, the function that performs translationslocale-string, optional, defaulten, the locale used for the pickermaxLabel-string, optional, defaultTo, the label for the interval endminLabel-string, optional, defaultFrom, the label used for interval startlabel-string, optional, defaultnull, the label for the filter
'Passed-through' properties:
format-string, optional, defaultd-m-Y, the format of the date
bulma/EnsoDateFilter.vue
This bulma styled date filtering component, built on top of the generic version of the component is designed to be used within the Enso ecosystem, requiring less configuration from the dev.
Example:
<enso-date-filter class="box raises-on-hover has-margin-top-large"
v-model="params.dateInterval"
:interval="intervals.products.updated_at"/>Properties:
format-string, optional, defaultd-m-Y, the format of the date
'Passed-through' properties:
compact-boolean, optional, defaultfalse, shows the component using a more compact statei18n,Function, optional, defaultv => v, the function that performs translationslocale-string, optional, defaulten, the locale used for the picker
bulma/EnsoDateIntervalFilter.vue
This bulma styled date interval filtering component, built on top of the enso date filter version of the component is designed to be used within the Enso ecosystem, requiring less configuration from the dev.
Example:
<enso-date-interval-filter class="box raises-on-hover has-margin-top-large"
@update="filters.interval = $event"/>Properties:
format-string, optional, defaultd-m-Y, the format of the date
'Passed-through' properties:
compact-boolean, optional, defaultfalse, shows the component using a more compact statei18n,Function, optional, defaultv => v, the function that performs translationslocale-string, optional, defaulten, the locale used for the picker
bulma/EnsoIntervalFilter.vue
This bulma styled date interval filtering component, built on top of the generic version of the component is designed to be used within the Enso ecosystem, requiring less configuration from the dev.
Example:
<enso-interval-filter class="box raises-on-hover has-margin-top-large"
@update="filters.interval = $event"/>'Passed-through' Properties:
compact-boolean, optional, defaultfalse, shows the component using a more compact statei18n,Function, optional, defaultv => v, the function that performs translationsmaxLabel-string, optional, defaultMax, the label for the interval endminLabel-string, optional, defaultMin, the label used for interval startlabel-string, optional, defaultnull, the label for the filter
bulma/EnsoFilter.vue
This bulma styled filtering component, built on top of the renderless version of the component is designed to be used within the Enso ecosystem, requiring less configuration from the dev.
Example:
<enso-filter :options="[{value:1, label: 'a'},{value:2 , label: 'b'}]" v-model="myModel"/>'Passed-through' Properties:
compact-boolean, optional, defaultfalse, shows the component using a more compact statehideOff-boolean, optional, defaultfalse, if true hides the 'off' optioni18n,Function, optional, defaultv => v, the function that performs translationsicons-boolean, optional, defaultfalse, if true, also shows icons for each optionoffLabel-string, optional, default ``, the label used for the 'off' optionoptions,array, optional, default[], the list of optionsreadonly-boolean, optional, defaultfalse, if true hides marks the filter as read-onlylabel-string, optional, defaultnull, the label for the filtervalue,null, optional, defaultnull, the value of the filter
bulma/IntervalFilter.vue
The bulma styled interval filtering component, built on top of the renderless version of the component.
Properties:
compact-boolean, optional, defaultfalse, shows the component using a more compact statei18n,function, optional, defaultv => v, the function that performs translationsmaxLabel-string, optional, defaultMax, the label for the interval endminLabel-string, optional, defaultMin, the label used for interval startlabel-string, optional, defaultnull, the label for the filter
'Passed-through' Properties:
interval-object, optional, default{min: null, max: null}, the min/max values objecttype-string, optional, defaultstring, the type of the two filter inputs
bulma/SelectFilter.vue
The bulma styled interval filtering component, built on top of the renderless version of the component.
Example:
<select-filter label="my label"
:source="route('administration.userGroups.options')"
v-model="filters.user_group_id"/>Properties:
compact-boolean, optional, defaultfalse, shows the component using a more compact statei18n,Function, optional, defaultv => v, the function that performs translationslabel-string, optional, defaultnull, the label for the filter
'Passed-through' Properties:
value- optional, defaultnull, the value of the select filter
bulma/VueFilter.vue
The bulma styled filtering component, built on top of the renderless version of the component.
Example:
<vue-filter :options="[{
value: true,
label: 'check',
class: 'has-text-success',
}, {
value: false,
label: 'times',
class: 'has-text-danger',
}]" v-model="myVariable"/>Here, the option list is given in-line but in practice, you would hold the list in a variable.
Properties:
compact-boolean, optional, defaultfalse, shows the component using a more compact statehideOff-boolean, optional, defaultfalse, if true hides the 'off' optioni18n,Function, optional, defaultv => v, the function that performs translationsicons-boolean, optional, defaultfalse, if true, also shows icons for each optionoffLabel-string, optional, default ``, the label used for the 'off' optionoptions,array, optional, default[], the list of optionsreadonly-boolean, optional, defaultfalse, if true hides marks the filter as read-onlylabel-string, optional, defaultnull, the label for the filtervalue,null, optional, defaultnull, the value of the filter
renderless/DateFilter.vue
The renderless version of the DateFilter component, which can be used in custom implementations.
Properties:
default-string, optional, defaulttoday, the default of the filter. Valid options are: 'today', 'yesterday', 'last week', 'last month', 'all'
renderless/DateIntervalFilter.vue
The renderless version of the DateIntervalFilter component, which can be used in custom implementations.
Methods:
update, emits and 'update' event having as payload the sanitized interval values
renderless/IntervalFilter.vue
The renderless version of the DateIntervalFilter component, which can be used in custom implementations.
'Passed-through' Properties:
interval-Object, optional, default{min: null, max: null}, the min/max values objecttype- optional, defaultnumber, the type of the interval inputs used
Methods:
update, emits and 'update' event having as payload the interval values
Documentation
For live examples and demos, you may visit laravel-enso.com
Questions & Issues
For questions and support please use the issues functionality for this package's github repository.
Please make sure to search for existing issues before creating a new issue, and when opening a new issue, fill the required information in the issue template.
Issues not conforming to the guidelines may be closed immediately.
Depends on
@enso-ui/datepicker@enso-ui/transitions@fortawesome/fontawesome-svg-core@fortawesome/free-solid-svg-icons@fortawesome/vue-fontawesomebulmadate-fnsv-tooltipvuevuex
Contributions
are welcome. Pull requests are great, but issues are good too.
Thank you to all the people who already contributed to Enso!