@usssa/component-library 1.0.0-alpha.158 → 1.0.0-alpha.159

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usssa/component-library",
3
- "version": "1.0.0-alpha.158",
3
+ "version": "1.0.0-alpha.159",
4
4
  "description": "A Quasar component library project",
5
5
  "productName": "Quasar component library App",
6
6
  "author": "Troy Moreland <troy.moreland@usssa.com>",
@@ -15,6 +15,9 @@ const emit = defineEmits([
15
15
  const dialogs = defineModel('dialogs', { default: () => [], type: Array })
16
16
 
17
17
  const props = defineProps({
18
+ closeIconLabel:{
19
+ type: String,
20
+ },
18
21
  label: {
19
22
  type: String,
20
23
  },
@@ -24,6 +27,9 @@ const props = defineProps({
24
27
  searchText: {
25
28
  type: String,
26
29
  },
30
+ selectOptionLabel: {
31
+ type: String,
32
+ },
27
33
  size: {
28
34
  type: String,
29
35
  default: 'md',
@@ -70,6 +76,8 @@ const updateInputVal = (event) => {
70
76
  <USheet
71
77
  v-model:dialogs="dialogs"
72
78
  dialogClass="typeahead-sheet"
79
+ :close-icon-label="closeIconLabel"
80
+ :heading="selectOptionLabel"
73
81
  @onCloseDialog="onCloseDialog"
74
82
  >
75
83
  <template #content>
@@ -11,6 +11,14 @@ import UTooltip from './UTooltip.vue'
11
11
  const emit = defineEmits(['update:modelValue'])
12
12
 
13
13
  const props = defineProps({
14
+ applyLabel:{
15
+ type: String,
16
+ default: 'Apply'
17
+ },
18
+ cancelLabel:{
19
+ type: String,
20
+ default: 'Cancel'
21
+ },
14
22
  caption: {
15
23
  type: String,
16
24
  default: '',
@@ -19,6 +27,10 @@ const props = defineProps({
19
27
  type: String,
20
28
  default: 'neutral-7',
21
29
  },
30
+ closeIconLabel: {
31
+ type: String,
32
+ default: 'Close Icon'
33
+ },
22
34
  dataTestId: {
23
35
  type: String,
24
36
  default: 'select-std',
@@ -284,9 +296,9 @@ watch(
284
296
  v-bind="$attrs"
285
297
  v-model="model"
286
298
  :class="`u-select field-${size}`"
299
+ options-selected-class="primary bg-blue-1"
287
300
  :popup-content-class="`u-options-menu ${popupClass}`"
288
301
  behavior="menu"
289
- options-selected-class="primary bg-blue-1"
290
302
  bottom-slots
291
303
  :color="color"
292
304
  emit-value
@@ -379,6 +391,7 @@ watch(
379
391
  <USheet
380
392
  v-if="$screen.isMobile"
381
393
  v-model:dialogs="dialogs"
394
+ :close-icon-label="closeIconLabel"
382
395
  dialogClass="select-sheet"
383
396
  :heading="sheetHeading"
384
397
  :heading-caption="caption"
@@ -451,7 +464,7 @@ watch(
451
464
  <template #action_primary_one>
452
465
  <UBtnStd
453
466
  color="primary"
454
- label="Cancel"
467
+ :label="cancelLabel"
455
468
  outline
456
469
  size="md"
457
470
  @onClick="handleClose"
@@ -460,7 +473,7 @@ watch(
460
473
  <template #action_primary_two>
461
474
  <UBtnStd
462
475
  color="primary"
463
- label="Apply"
476
+ :label="applyLabel"
464
477
  size="md"
465
478
  @onClick="handleApply"
466
479
  />
@@ -68,6 +68,10 @@ const props = defineProps({
68
68
  options: {
69
69
  type: Array,
70
70
  },
71
+ recentlySelected: {
72
+ type: String,
73
+ default: 'Recently Selected'
74
+ },
71
75
  recentSearches: {
72
76
  type: Array,
73
77
  },
@@ -694,7 +698,7 @@ watch(
694
698
  !recentSearchesLoading
695
699
  "
696
700
  >
697
- <span class="text-overline-xs q-px-sm"> Recently Selected </span>
701
+ <span class="text-overline-xs q-px-sm"> {{ props.recentlySelected }} </span>
698
702
 
699
703
  <template v-for="item in recentSearches" :key="item.id">
700
704
  <q-item class="list-item q-py-xs q-px-sm" clickable>