@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 +1 -1
- package/package.json +1 -1
- package/src/components/core/UBannerStd.vue +0 -2
- package/src/components/core/UBtnIcon.vue +3 -0
- package/src/components/core/UInputTextStd.vue +8 -0
- package/src/components/core/UMultiSelectStd.vue +0 -1
- package/src/components/core/USelectStd.vue +0 -1
- package/src/components/core/UTableStd.vue +22 -17
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -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>
|
|
@@ -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
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
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
|
-
|
|
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
|
-
:
|
|
400
|
-
|
|
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
|
|
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
|
|