@usssa/component-library 1.0.0-alpha.145 → 1.0.0-alpha.147

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.145
1
+ # Component Library v1.0.0-alpha.147
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.145",
3
+ "version": "1.0.0-alpha.147",
4
4
  "description": "A Quasar component library project",
5
5
  "productName": "Quasar component library App",
6
6
  "author": "Troy Moreland <troy.moreland@usssa.com>",
@@ -1,9 +1,9 @@
1
1
  <script setup>
2
2
  import { ref, watch } from 'vue'
3
+ import { useScreenType } from '../../composables/useScreenType'
3
4
  import UBtnStd from './UBtnStd.vue'
4
5
  import UInputTextStd from './UInputTextStd.vue'
5
6
  import USheet from './USheet.vue'
6
- import { useScreenType } from '../../composables/useScreenType'
7
7
 
8
8
  const date = defineModel('date', { default: null })
9
9
 
@@ -18,6 +18,7 @@ const props = defineProps({
18
18
  default: 'date',
19
19
  },
20
20
  datePickerClass: { type: String, default: null },
21
+ datePickerOptions: { type: [Array, Function] },
21
22
  disable: { type: Boolean, default: false },
22
23
  errorMessage: {
23
24
  type: String,
@@ -275,6 +276,7 @@ watch(
275
276
  minimal
276
277
  :navigation-max-year-month="navigationMaxYearMonth"
277
278
  :navigation-min-year-month="navigationMinYearMonth"
279
+ :options="datePickerOptions"
278
280
  :range="range"
279
281
  />
280
282
  </div>
@@ -1,4 +1,5 @@
1
1
  <script setup>
2
+ import { useQuasar } from 'quasar'
2
3
  import { computed, ref, watch } from 'vue'
3
4
  import { useScreenType } from '../../../composables/useScreenType'
4
5
  import UAvatar from '../UAvatar.vue'
@@ -79,6 +80,7 @@ const props = defineProps({
79
80
  },
80
81
  })
81
82
 
83
+ const $q = useQuasar()
82
84
  const $screen = useScreenType()
83
85
 
84
86
  const mobileActionsDialog = ref({})
@@ -88,6 +90,9 @@ const tailClass = ref(null)
88
90
 
89
91
  const isDesktop = computed(() => $screen.value.isDesktop)
90
92
  const isMobile = computed(() => $screen.value.isMobile)
93
+ const isResponsiveTablet = computed(
94
+ () => $q.screen.width > 600 && $q.screen.width < 768
95
+ )
91
96
  const isTablet = computed(() => $screen.value.isTablet)
92
97
 
93
98
  // chekcing the menu position after show
@@ -257,6 +262,7 @@ watch(
257
262
  col.show ||
258
263
  col.field === 'action'
259
264
  "
265
+ :class="col.doubleSpan ? 'mobile-centered-col' : ''"
260
266
  >
261
267
  <q-item-section
262
268
  v-if="
@@ -337,7 +343,20 @@ watch(
337
343
 
338
344
  <q-item-label v-if="col.type !== 'icon'" caption>
339
345
  <span
340
- :class="`${col.value ? 'long-text-content' : null}`"
346
+ :class="[
347
+ col.value ? 'long-text-content' : '',
348
+ col.noEllipsis ? 'no-ellipsis-content' : '',
349
+ col.doubleSpan && col.noEllipsis
350
+ ? 'full-width-text-content'
351
+ : '',
352
+ !isResponsiveTablet &&
353
+ isTablet &&
354
+ col.classes &&
355
+ col.classes.length > 0 &&
356
+ col.classes[0] === 'no-wrap-text'
357
+ ? 'tablet-event-text'
358
+ : '',
359
+ ]"
341
360
  :id="`long-content-${col.field}-${props.row.id}`"
342
361
  >
343
362
  {{ col.value }}
@@ -359,6 +378,9 @@ watch(
359
378
  class="td-caption mobile-primary-caption text-body-md"
360
379
  :id="`long-caption-${col.field}-${props.row.id}`"
361
380
  >
381
+ <template v-if="col.captionKeyTitle">
382
+ {{ col.captionKeyTitle }}:
383
+ </template>
362
384
  {{ props.row[col.captionKey] }}
363
385
  </div>
364
386
  <UTooltip
@@ -137,6 +137,7 @@ const getRowsPerPageOptions = computed(() => {
137
137
  }
138
138
  })
139
139
 
140
+ const isMobile = computed(() => $screen.value.isMobile)
140
141
  const isMobileOrTablet = computed(
141
142
  () => $screen.value.isMobile || $screen.value.isTablet
142
143
  )
@@ -820,7 +821,6 @@ watch(
820
821
  </template> -->
821
822
  </UTable>
822
823
  <!-- customized pagination with the vitual scroll functionality and rows per page selection -->
823
-
824
824
  <div
825
825
  v-if="showPagination"
826
826
  :class="`row justify-end items-center pagination-wrapper${
@@ -996,6 +996,9 @@ watch(
996
996
  border: 1px solid $neutral-4
997
997
  box-shadow: none
998
998
 
999
+ .mobile-centered-col
1000
+ grid-column: span 2
1001
+
999
1002
  .q-item.q-item-type
1000
1003
  margin-top: 0px !important
1001
1004
  align-self: start
@@ -1025,7 +1028,7 @@ watch(
1025
1028
  font-size: 1rem
1026
1029
  font-weight: 500
1027
1030
  line-height: 1.063rem
1028
- width: 12.5rem
1031
+ width: 100%
1029
1032
 
1030
1033
  .u-sticky-table-header
1031
1034
  .q-table__top,
@@ -1204,6 +1207,15 @@ watch(
1204
1207
  overflow: hidden
1205
1208
  text-overflow: ellipsis
1206
1209
 
1210
+ .no-ellipsis-content
1211
+ white-space: normal !important
1212
+
1213
+ .full-width-text-content
1214
+ width: 19.5rem !important
1215
+
1216
+ .tablet-event-text
1217
+ width: 10.5rem
1218
+
1207
1219
  .mobile-primary-caption
1208
1220
  width: 11.5rem !important
1209
1221
  white-space: nowrap