0.2.3 • Published 1 year ago

@phoenix-cg/v-filters v0.2.3

Weekly downloads
-
License
ISC
Repository
bitbucket
Last release
1 year ago

v-filters

Project setup

npm install @phoenix-cg/v-filters

Props

PropsDescriptionDefault value
componentsMapObject, required. Object with components name mapping to field typesnone
fieldComponentNameString Component for field rendering. Should has "title" prop and a slot for field componentv-filter-field
fieldsArray, required. Array with fieldsnone
showWordsArray Array with words to put before found result count. First element should be in future tense and a last one in past tense.[]
notFoundTitleString Will be shown in button if count is 0''
declensionWordsArray Array of words to put after found result count.[]
countNumber Found count0
showParamsBoolean If true current filters state will be reflected in page query params.true
isResultShownBoolean If true action button title will be constructed in past tensefalse
humanLinkString Human link feature''
editedOutsideBoolean If true reset button will be shown even if the v-filters itself is untouched.false
immediateBoolean If true action button will not be shown and show-result event will fire immediately after changefalse

Slots

SlotDescriptionScope
before-fieldsSlot to place anything before fieldsnone
after-fieldsSlot to place anything after fieldsnone
actionsSlot for actions. Displays after fields{ showResult, resetFilters, count, immediate, edited }
actions-afterSlot for actions. Displays after fields{ showResult, resetFilters, count, immediate, edited }

Events

EventDescriptionPayload
request-countRequest count eventflatFilters: { ..., name: 1, 2 ,... }
show-resultShow result eventflatFilters: { ..., name: 1, 2,... }
reset-filtersReset filters eventnone
0.2.3

1 year ago

0.2.2

1 year ago

0.2.1

2 years ago

0.2.0

2 years ago

0.2.0-beta.16

2 years ago

0.2.0-beta.17

2 years ago

0.2.0-beta.18

2 years ago

0.2.0-beta.13

2 years ago

0.2.0-beta.14

2 years ago

0.2.0-beta.15

2 years ago

0.1.17

2 years ago

0.2.0-beta.12

3 years ago

0.1.14

3 years ago

0.1.15

3 years ago

0.2.0-beta.6

3 years ago

0.2.0-beta.9

3 years ago

0.2.0-beta.8

3 years ago

0.2.0-beta.7

3 years ago

0.2.0-beta.10

3 years ago

0.2.0-beta.11

3 years ago

0.1.16

3 years ago

0.1.12

3 years ago

0.1.13

3 years ago

0.2.0-beta.2

3 years ago

0.2.0-beta.1

3 years ago

0.2.0-beta.0

3 years ago

0.2.0-beta.5

3 years ago

0.2.0-beta.4

3 years ago

0.2.0-beta.3

3 years ago

0.1.11

4 years ago

0.1.10-beta.0

4 years ago

0.1.10

4 years ago

0.1.8

4 years ago

0.1.9

4 years ago

0.1.7

4 years ago

0.1.2

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago