@usssa/component-library 1.0.0-alpha.14 → 1.0.0-alpha.15

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
@@ -1,4 +1,4 @@
1
- # Component Library v1.0.0-alpha.14
1
+ # Component Library v1.0.0-alpha.15
2
2
 
3
3
  This library provides custom UI components for USSSA applications.
4
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usssa/component-library",
3
- "version": "1.0.0-alpha.14",
3
+ "version": "1.0.0-alpha.15",
4
4
  "description": "A Quasar component library project",
5
5
  "productName": "Quasar component library App",
6
6
  "author": "Troy Moreland <troy.moreland@usssa.com>",
@@ -22,11 +22,9 @@ const props = defineProps({
22
22
  },
23
23
  primaryActionLabel: {
24
24
  type: String,
25
- default: 'Action 1',
26
25
  },
27
26
  secondaryActionLabel: {
28
27
  type: String,
29
- default: 'Action 2',
30
28
  },
31
29
  })
32
30
 
@@ -144,6 +144,9 @@ const btnClass = computed(() => {
144
144
  &.neutral-9
145
145
  color: $neutral-9
146
146
 
147
+ &.accent
148
+ background: $accent-bg-hover
149
+
147
150
  .icon-tooltip
148
151
  background: $dark
149
152
  border-radius: $xxs
@@ -32,6 +32,9 @@ const props = defineProps({
32
32
  placeholder: {
33
33
  type: String,
34
34
  },
35
+ rightIconAriaLabel: {
36
+ type: String,
37
+ },
35
38
  size: {
36
39
  type: String,
37
40
  default: 'md',
@@ -152,6 +155,11 @@ const handleRightIconClick = () => {
152
155
  @click="handleRightIconClick"
153
156
  :class="`slot-icon-size-${size} ${rightIcon}`"
154
157
  :tabindex="0"
158
+ :aria-label="
159
+ rightIcon && rightIconAriaLabel
160
+ ? rightIconAriaLabel
161
+ : 'right input icon '
162
+ "
155
163
  />
156
164
  </slot>
157
165
  </template>
@@ -113,7 +113,6 @@ const chipModelVal = ref(true)
113
113
  :option-label="optionLabel"
114
114
  :option-value="optionValue"
115
115
  :placeholder="placeholder"
116
- dropdown-icon="img:icons/caret-down.svg"
117
116
  bottom-slots
118
117
  outlined
119
118
  hide-bottom-space
@@ -108,7 +108,6 @@ const model = computed({
108
108
  :class="`field-${size}`"
109
109
  id="select"
110
110
  :color="color"
111
- dropdown-icon="img:/icons/caret-down.svg"
112
111
  emit-value
113
112
  map-options
114
113
  :menu-offset="[0, 5]"
@@ -383,24 +383,32 @@ const onRowPerPageChange = (value) => {
383
383
  <template v-else-if="col.avatarKey">
384
384
  <div class="flex justify-start items-center">
385
385
  <div
386
- :class="`${
387
- !multiSelection
388
- ? 'table-data-avatar-right'
389
- : 'table-data-avatar-left'
390
- }`"
386
+ v-if="
387
+ props.row[col.avatarKey] &&
388
+ typeof props.row[col.avatarKey] === 'object'
389
+ "
390
+ class="table-data-avatar"
391
391
  >
392
392
  <UAvatar
393
+ v-if="props.row[col.avatarKey]?.type === 'initials'"
394
+ size="md"
395
+ :name="`${props.row[col.avatarKey]?.value}`"
396
+ />
397
+ <UAvatar
398
+ v-else-if="props.row[col.avatarKey]?.type === 'image'"
399
+ size="md"
393
400
  :name="
394
- props.row[col.avatarKey]
395
- ? props.row[col.avatarKey]
396
- : 'Need to get initials of Name, replace with initial common function'
401
+ props.row[col.avatarKey]?.name ??
402
+ props.row[col.avatarKey]?.value
397
403
  "
404
+ :image="`${props.row[col.avatarKey]?.value}`"
405
+ />
406
+ </div>
407
+ <div v-else class="table-data-avatar">
408
+ <UAvatar
398
409
  size="md"
399
- :image="`${
400
- props.row[col.avatarKey]
401
- ? props.row[col.avatarKey]
402
- : 'https://cdn.quasar.dev/img/avatar1.jpg'
403
- }`"
410
+ :name="`${props.row[col.avatarKey]}`"
411
+ :image="`${props.row[col.avatarKey]}`"
404
412
  />
405
413
  </div>
406
414
  <div class="td-grid-content">
@@ -521,13 +529,10 @@ const onRowPerPageChange = (value) => {
521
529
  width: $md
522
530
  color: $neutral-9
523
531
 
524
- .table-data-avatar-left
532
+ .table-data-avatar
525
533
  padding: $xs
526
534
  padding-left: 0px
527
535
 
528
- .table-data-avatar-right
529
- padding: $xs
530
-
531
536
  .td-caption
532
537
  color: $description
533
538