@usssa/component-library 1.0.0-alpha.241 → 1.0.0-alpha.242

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.241",
3
+ "version": "1.0.0-alpha.242",
4
4
  "description": "A Quasar component library project",
5
5
  "productName": "Quasar component library App",
6
6
  "author": "Engineering Team <engineering@usssa.com>",
@@ -89,6 +89,10 @@ const props = defineProps({
89
89
  }
90
90
  },
91
91
  },
92
+ minOverflowLength: {
93
+ type: Number,
94
+ default: 12
95
+ },
92
96
  rowCardHeight: {
93
97
  type: Number,
94
98
  default: 25,
@@ -130,8 +134,6 @@ const props = defineProps({
130
134
  const $q = useQuasar()
131
135
  const $screen = useScreenType()
132
136
 
133
- const minOverflowLength = 12
134
-
135
137
  const activeMenuId = ref(null)
136
138
  const captionMaxWidth = ref('100%')
137
139
  const cellOverflowStates = ref({})
@@ -139,6 +141,7 @@ const headerMaxWidth = ref('100%')
139
141
  const infiniteNoMoreShow = ref(false)
140
142
  const infiniteScrollProp = ref(props.infiniteScrollProperty)
141
143
  const isScrollActionActive = ref(false)
144
+ const minOverflowLength = ref(props.minOverflowLength)
142
145
  const mobileActionsDialog = ref({})
143
146
  const moreActionsDialogs = ref({})
144
147
  const tableCardWrapperRef = ref(null)
@@ -168,7 +171,7 @@ const checkCellOverflow = (selector, key) => {
168
171
  nextTick(() => {
169
172
  requestAnimationFrame(() => {
170
173
  const element = document.querySelector(selector)
171
-
174
+
172
175
  if (element) {
173
176
  cellOverflowStates.value[key] = element.scrollWidth > element.clientWidth
174
177
  } else {
@@ -1474,7 +1477,7 @@ window.addEventListener('resize', handleCellOverflowResize)
1474
1477
  ]"
1475
1478
  >
1476
1479
  <!-- Label -->
1477
- <div class="text-caption text-description">
1480
+ <div class="text-caption text-description q-mb-xxs">
1478
1481
  {{ col.label }}
1479
1482
  </div>
1480
1483
  <!-- Content -->
@@ -1669,9 +1672,7 @@ window.addEventListener('resize', handleCellOverflowResize)
1669
1672
  size="1.5rem"
1670
1673
  />
1671
1674
  <!-- Text -->
1672
- <span v-else class="text-body-sm">
1673
- {{ props.row[col.field] }}
1674
- </span>
1675
+ <span v-else class="text-body-sm">{{ props.row[col.field] }}</span>
1675
1676
  </div>
1676
1677
  <!-- Caption (if any) -->
1677
1678
  <div
@@ -125,6 +125,10 @@ const props = defineProps({
125
125
  type: Boolean,
126
126
  default: false,
127
127
  },
128
+ minOverflowLength: {
129
+ type: Number,
130
+ default: 12
131
+ },
128
132
  multiSelection: {
129
133
  type: Boolean,
130
134
  default: false,
@@ -480,6 +484,7 @@ watch(
480
484
  :infinite-scroll="infiniteScroll"
481
485
  :infinite-scroll-property="infiniteScrollProperty"
482
486
  :loading="loading"
487
+ :minOverflowLength="minOverflowLength"
483
488
  :row-card-height="rowCardHeight"
484
489
  :select-more-options="selectMoreOptions"
485
490
  :separator="separator"
@@ -1655,10 +1660,8 @@ watch(
1655
1660
  .u-expansion-body
1656
1661
  display: flex
1657
1662
  flex-wrap: wrap
1658
- gap: $xs
1659
-
1660
- > *:not(:last-child)
1661
- margin-bottom: $ba
1663
+ column-gap: $xs
1664
+ row-gap: $ba
1662
1665
 
1663
1666
  .table-data-avatar
1664
1667
  display: flex