vue-quest-ui 0.0.30 → 0.0.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -82,13 +82,17 @@ All components can be customized based on your needs by passing props to them. R
82
82
 
83
83
 
84
84
 
85
-
86
-
87
-
88
-
89
-
90
-
91
-
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
92
96
 
93
97
  ## Components
94
98
  * [QstIcon (v0.0.13)](#qsticon)
@@ -110,6 +114,7 @@ All components can be customized based on your needs by passing props to them. R
110
114
  * [QstRadioGroup (v0.0.28)](#qstradiogroup)
111
115
  * [QstAutocomplete (v0.0.29)](#qstautocomplete)
112
116
  * [QstAddressAutocomplete (v0.0.30)](#qstaddressautocomplete)
117
+ * [QstSelect (v0.0.31)](#qstselect)
113
118
 
114
119
  ## Props
115
120
 
@@ -294,6 +299,7 @@ A reusable modal component that provides a flexible, customizable overlay for di
294
299
  | cancelBtnText | string | false | Cancel | The text to be shown on the cancel button. |
295
300
  | closeOnSubmit | boolean | false | false | The modal will be closed when the submit button is clicked. |
296
301
  | hideScroll | boolean | false | true | If the modal has overflow, the scrollbar will be hidden. |
302
+ | darkMode | boolean | false | false | Changes the styles to a dark theme. |
297
303
 
298
304
 
299
305
 
@@ -520,13 +526,13 @@ An autocomplete input component, with functionality for single/multiselect, sear
520
526
  | Name | Type | Required | Default | Description |
521
527
  |------|------|----------|---------|-------------|
522
528
  | multiSelect | boolean | false | false | Whether only a single or multiple options can be selected. |
523
- | src | array | false | — | The source of the autocomplete options to be displayed. Types can be string[], number[], AutocompleteProp[] ({id?: number | string | boolean, text: string, result?: any, subtext?: string, leftImage?: string, searchData?: {label: string, value: string | number}[], disabled?: boolean, disabledReason?: string}). When using AutocompleteProp[], the text field is required. |
529
+ | src | array | false | — | The source of the autocomplete options to be displayed. Types can be string[], number[], AutocompleteProp[] (AutocompleteProp: {id?: (number, string, boolean), text: string, result?: any, subtext?: string, leftImage?: string, searchData?: {label: string, value: (string, number)}[], disabled?: boolean, disabledReason?: string}). *When using AutocompleteProp[], the text field is required.* |
524
530
  | autocompleteEndpoint | string | false | — | Endpoint URL for the autocomplete. If the src prop is not set, the autocomplete will use the endpoint to fetch the data. |
525
- | modelValue | object, array|string|number | false | null | Used for v-model, will be set to the active autocomplete value. *(For multiSelect, v-model must be set to an array)* |
531
+ | modelValue | object, array|string|number | false | null | Used for v-model, will be set to the active autocomplete value. *(For multiselect, v-model must be set to an array)* |
526
532
  | result | object, array|string|number | false | null | Used for v-model:result, value will be the *result* property of AutocompleteProp. |
527
533
  | query | string, number | false | null | Used for v-model:query, value will be the searched text in the input. |
528
534
  | size | string | false | 14px | Pixel value to resize the component, styles are adjusted when the size is updated. |
529
- | dynamicSizes | object | false | null | Any screen size defined will target that screen size and below ({xl: '10px'} will change to 10px on max-width: 1549px). Any larger size than what is defined will use the normal size prop. |
535
+ | dynamicSizes | object | false | null | Any screen size defined will target that screen size and below (ex/ {xl: '10px'} will change to 10px on max-width: 1549px). Screen sizes larger than what is defined will use the normal props.size. Use dynamicSizes when the dropdown is being teleported to update the dropdown's size as well. |
530
536
  | color | string | false | #539F5F | The accent color, used for details within the component. |
531
537
  | width | string | false | 100% | The width of the autocomplete. |
532
538
  | useEditMode | boolean | false | true | Whether the input should be editable or not. |
@@ -537,23 +543,23 @@ An autocomplete input component, with functionality for single/multiselect, sear
537
543
  | disabledTooltipPosition | string | false | right | Tooltip position for showing an option's disabled reason. Applies to both top level input and/or the dropdown option's disabled tooltips. |
538
544
  | numExpandedOptions | number | false | 3 | Number of options to show before showing '+X options selected' tooltip. |
539
545
  | hideSelectedOptions | boolean | false | false | Hides the currently selected options from dropdown. (multiselect only) |
540
- | minChars | number | false | 0 | Number of characters required in the input for the dropdown to show the filtered search results.' |
546
+ | minChars | number | false | 0 | Number of characters required in the input for the dropdown to show the filtered search results. (single select only) |
541
547
  | error | string | false | null | Sets the error message.' |
542
548
  | clearAfterSelecting | boolean | false | false | After selecting a dropdown option, the value will be cleared from the top input. |
543
- | isLoading | boolean | false | null | Set to loading value when loading options from an endpoint. *(Overrides loader in QstAutocompleteMenu)* |
549
+ | isLoadingOptions | boolean | false | null | Set to loading value when loading options from an endpoint. *(Overrides loader in dropdown)* |
544
550
  | dropdownHeight | string | false | 350px | The height for the autocomplete menu dropdown. |
545
- | closeMultiSelectAfterSelecting | boolean | false | false | After selecting an option, closes the autocomplete menu dropdown. *(multiSelect only)* |
551
+ | closeMultiSelectAfterSelecting | boolean | false | false | After selecting an option, closes the autocomplete menu dropdown. *(multiselect only)* |
546
552
  | zoomedOut | boolean | false | false | Zooms out autocomplete dropdown to 80% for laptop devices. |
547
553
  | showErrorBelow | boolean | false | false | Shows the error message at the bottom of the input. |
548
554
  | allowOpenInput | boolean | false | false | Allows the user to search for any value, regardless of the dropdown options. Emits the value using 'autocomplete-search-query'. |
549
555
  | boldMatchingSearchValues | boolean | false | true | The matching portion of each option will be bolded based on the search value. |
550
- | showExtendedResults | boolean | false | false | Shows a link at the bottom of QstAutocompleteMenu to view all results in a modal. |
556
+ | showExtendedResults | boolean | false | false | Shows a link at the bottom of the dropdown to view all results in a modal. |
551
557
  | useMagnifyIcon | boolean | false | false | Adds a magnifying glass icon to the right of the autocomplete, clicking will submit the search value. |
552
558
  | useErrorIcon | boolean | false | false | An error icon will be displayed on the right of the autocomplete, hovering over will show a tooltip with the error message. |
553
559
  | useClearIcon | boolean | false | true | Adds X icon to the right of the autocomplete, clicking it clears the v-model value. Overrides any other previously set icons. |
554
- | icon | string | false | — | Any Iconify value, will be displayed on the right of autocomplete. |
560
+ | icon | string | false | — | Any Iconify value, will be displayed on the right of the autocomplete. |
555
561
  | tooltip | string, object | false | null | Shows a tooltip dropdown when hovering over the input. Set to a string or object, based on if tooltip props are needed. *(ex/ offset, width, position, etc)* Tooltip is displayed inside the autocomplete, width and offset will default to match input dimensions. |
556
- | darkMode | boolean | false | false | |
562
+ | darkMode | boolean | false | false | Changes the styles to a dark theme. |
557
563
 
558
564
 
559
565
 
@@ -582,4 +588,45 @@ A set of input fields designed for selecting an address. The first field feature
582
588
 
583
589
 
584
590
 
591
+
592
+ ### `QstSelect`
593
+
594
+ A select component, with functionality for single/multiselect, search, select all logic, and custom options.
595
+
596
+ | Name | Type | Required | Default | Description |
597
+ |------|------|----------|---------|-------------|
598
+ | multiSelect | boolean | false | false | Whether only a single or multiple options can be selected. |
599
+ | options | array | false | [] | The dropdown options to be displayed. Types can be string[], number[], AutocompleteProp[]. (AutocompleteProp: {id?: (number, string, boolean), text: string, result?: any, subtext?: string, leftImage?: string, searchData?: {label: string, value: (string, number)}[], disabled?: boolean, disabledReason?: string}). *When using AutocompleteProp[], the text field is required.* |
600
+ | modelValue | object, array|string|number | false | null | Used for v-model, will be set to the active select value. *(For multiselect, v-model must be set to an array)* |
601
+ | result | object, array|string|number | false | null | Used for v-model:result, value will be the *result* property of AutocompleteProp. |
602
+ | size | string | false | 14px | Pixel value to resize the component, styles are adjusted when the size is updated.' |
603
+ | dynamicSizes | object | false | null | Any screen size defined will target that screen size and below (ex/ {xl: '10px'} will change to 10px on max-width: 1549px). Screen sizes larger than what is defined will use the normal props.size. Use dynamicSizes when the dropdown is being teleported to update dropdown's size as well. |
604
+ | color | string | false | #539F5F | The accent color, used for details within the component.' |
605
+ | width | string | false | — | The width of the select and dropdown. If unset, the sizing will adjust to the size prop for single select or 100% for multiselect. |
606
+ | fullWidth | boolean | false | false | Sets the select to be full-width and take up 100% of its parent container. |
607
+ | useEditMode | boolean | false | true | Whether the input should be editable or not.' |
608
+ | showLabelOnEditMode | boolean | false | true | Shows a label when in edit mode.' |
609
+ | placeholder | string, number | false | Select | Placeholder for select input. |
610
+ | disabled | boolean | false | false | Disables the select, will show grayed out and unusable. |
611
+ | disabledReason | string | false | — | When the input is disabled, hovering over the input will show a tooltip with the disabled reason. *(This is only for the top select input. To set on an individual dropdown option, set disabledReason property on the option. (AutocompleteProp))* |
612
+ | disabledTooltipPosition | string | false | right | Tooltip position for showing an option's disabled reason. Applies to both top level input and/or the dropdown option's disabled tooltips. |
613
+ | numExpandedOptions | number | false | 3 | Number of options to show before showing '+X options selected' tooltip. |
614
+ | error | string | false | null | Sets the error message.' |
615
+ | useErrorIcon | boolean | false | false | An error icon will be displayed on the right of the select, hovering over will show a tooltip with the error message. |
616
+ | showErrorBelow | boolean | false | false | Shows error message at the bottom of the input. |
617
+ | sortAlphabetically | boolean | false | true | Whether or not to alphabetically sort the list of options in the dropdown. |
618
+ | isLoadingOptions | boolean | false | null | Set to loading value when loading options from an endpoint. *(Overrides loader in dropdown)* |
619
+ | defaultVal | string | false | — | A default value that will be added to the dropdown options as the first selected value. Selecting the default value will replace any active values. |
620
+ | dropdownHeight | string | false | 350px | The height for the dropdown.' |
621
+ | closeMultiSelectAfterSelecting | boolean | false | false | After selecting an option, closes the dropdown. *(multiselect only)* |
622
+ | icon | string | false | — | Any Iconify value, will be displayed to the right of the dropdown arrow.' |
623
+ | tooltip | string, object | false | null | Shows a tooltip dropdown when hovering over the input. Set to a string or object, based on if tooltip props are needed. *(ex/ offset, width, position, etc)* Tooltip is displayed inside the select, width and offset will default to match input dimensions. |
624
+ | useSelectAll | boolean | false | false | Adds an option in the dropdown to select all options (multiselect only) |
625
+ | darkMode | boolean | false | false | Changes the styles to a dark theme. |
626
+
627
+
628
+
629
+
630
+
631
+
585
632