@usssa/component-library 1.0.0-alpha.210 → 1.0.0-alpha.211
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
package/package.json
CHANGED
|
@@ -652,33 +652,33 @@ watch(
|
|
|
652
652
|
:id="`long-content-${col.field}-${props.row.id}`"
|
|
653
653
|
>
|
|
654
654
|
{{ col.value }}
|
|
655
|
+
</span>
|
|
656
|
+
<template
|
|
657
|
+
v-if="
|
|
658
|
+
typeof col.combineColoumn === 'function' &&
|
|
659
|
+
col.combineColoumn(props.row)
|
|
660
|
+
"
|
|
661
|
+
>
|
|
655
662
|
<template
|
|
656
|
-
v-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
"
|
|
663
|
+
v-for="(combineCol, colKey) in col.combineColoumn(
|
|
664
|
+
props.row
|
|
665
|
+
)"
|
|
666
|
+
:key="colKey"
|
|
660
667
|
>
|
|
661
|
-
<
|
|
662
|
-
v-
|
|
663
|
-
|
|
664
|
-
|
|
668
|
+
<q-icon
|
|
669
|
+
v-if="combineCol.icon"
|
|
670
|
+
:class="combineCol.icon"
|
|
671
|
+
:alt="combineCol.ariaLabel"
|
|
672
|
+
:aria-label="combineCol.ariaLabel"
|
|
673
|
+
:color="combineCol?.iconColor ?? 'primary'"
|
|
665
674
|
:key="colKey"
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
:aria-label="combineCol.ariaLabel"
|
|
672
|
-
:color="combineCol?.iconColor ?? 'primary'"
|
|
673
|
-
:key="colKey"
|
|
674
|
-
size="1rem"
|
|
675
|
-
/>
|
|
676
|
-
<div v-else>
|
|
677
|
-
{{ props.row[combineCol.key] }}
|
|
678
|
-
</div>
|
|
679
|
-
</template>
|
|
675
|
+
size="1rem"
|
|
676
|
+
/>
|
|
677
|
+
<div v-else>
|
|
678
|
+
{{ props.row[combineCol.key] }}
|
|
679
|
+
</div>
|
|
680
680
|
</template>
|
|
681
|
-
</
|
|
681
|
+
</template>
|
|
682
682
|
<UTooltip
|
|
683
683
|
v-if="
|
|
684
684
|
col.value &&
|
|
@@ -696,7 +696,11 @@ watch(
|
|
|
696
696
|
:target="`#long-content-${col.field}-${props.row.id}`"
|
|
697
697
|
/>
|
|
698
698
|
<div
|
|
699
|
-
v-if="
|
|
699
|
+
v-if="
|
|
700
|
+
col.captionKey &&
|
|
701
|
+
typeof col.showCaption === 'function' &&
|
|
702
|
+
col.showCaption(props.row)
|
|
703
|
+
"
|
|
700
704
|
class="td-caption mobile-primary-caption text-body-sm"
|
|
701
705
|
:id="`long-caption-${col.field}-${props.row.id}`"
|
|
702
706
|
>
|
|
@@ -1368,7 +1372,9 @@ watch(
|
|
|
1368
1372
|
<template
|
|
1369
1373
|
v-if="
|
|
1370
1374
|
!col.isPrimary &&
|
|
1371
|
-
(typeof col.show === '
|
|
1375
|
+
(typeof col.show === 'function'
|
|
1376
|
+
? col.show()
|
|
1377
|
+
: typeof col.show === 'undefined' || col.show) &&
|
|
1372
1378
|
col.field !== 'action'
|
|
1373
1379
|
"
|
|
1374
1380
|
>
|
|
@@ -491,7 +491,9 @@ watch(
|
|
|
491
491
|
</UTh>
|
|
492
492
|
<template v-for="(col, key) in props.cols">
|
|
493
493
|
<UTh
|
|
494
|
-
v-if="typeof col.show === '
|
|
494
|
+
v-if="typeof col.show === 'function'
|
|
495
|
+
? col.show()
|
|
496
|
+
: (typeof col.show === 'undefined' || col.show)"
|
|
495
497
|
:class="`${col.sortable ? 'cursor-pointer' : ''} ${
|
|
496
498
|
col.headerClasses
|
|
497
499
|
}`"
|
|
@@ -558,7 +560,9 @@ watch(
|
|
|
558
560
|
<UTd
|
|
559
561
|
v-if="
|
|
560
562
|
col.field !== 'action' &&
|
|
561
|
-
(typeof col.show === '
|
|
563
|
+
(typeof col.show === 'function'
|
|
564
|
+
? col.show()
|
|
565
|
+
: (typeof col.show === 'undefined' || col.show))
|
|
562
566
|
"
|
|
563
567
|
:class="col.classes"
|
|
564
568
|
:col="col"
|
|
@@ -763,7 +767,9 @@ watch(
|
|
|
763
767
|
<!-- to the action cell, it can have single and multiple -->
|
|
764
768
|
|
|
765
769
|
<UTd
|
|
766
|
-
v-else-if="typeof col.show === '
|
|
770
|
+
v-else-if="typeof col.show === 'function'
|
|
771
|
+
? col.show()
|
|
772
|
+
: (typeof col.show === 'undefined' || col.show)"
|
|
767
773
|
:class="col.classes"
|
|
768
774
|
:index="index"
|
|
769
775
|
:separator="separator"
|
|
@@ -1615,12 +1621,16 @@ watch(
|
|
|
1615
1621
|
gap: $xxs
|
|
1616
1622
|
|
|
1617
1623
|
.combine-col-small-device-wrapper
|
|
1624
|
+
width: auto !important
|
|
1625
|
+
max-width: 5.5rem !important
|
|
1626
|
+
padding-right: $xs
|
|
1627
|
+
|
|
1628
|
+
.q-table__grid-content .q-item__label--caption:has(span.combine-col-small-device-wrapper)
|
|
1618
1629
|
display: flex
|
|
1619
1630
|
justify-content: flex-start
|
|
1620
1631
|
align-items: center
|
|
1621
|
-
gap: $xxs
|
|
1622
1632
|
|
|
1623
|
-
.
|
|
1633
|
+
.u-expansion-table
|
|
1624
1634
|
.u-expansion-body
|
|
1625
1635
|
display: flex
|
|
1626
1636
|
flex-wrap: wrap
|