@usssa/component-library 1.0.0-alpha.128 → 1.0.0-alpha.129

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.128
1
+ # Component Library v1.0.0-alpha.129
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.128",
3
+ "version": "1.0.0-alpha.129",
4
4
  "description": "A Quasar component library project",
5
5
  "productName": "Quasar component library App",
6
6
  "author": "Troy Moreland <troy.moreland@usssa.com>",
@@ -4,20 +4,35 @@ import UInputTextStd from './UInputTextStd.vue'
4
4
  import UTooltip from './UTooltip.vue'
5
5
 
6
6
  const emit = defineEmits(['onRightIconClick', 'onUpdate'])
7
-
8
7
  const modelValue = defineModel()
9
-
10
8
  defineOptions({
11
9
  inheritAttrs: false,
12
10
  })
13
-
14
11
  const props = defineProps({
15
- hintText: {
12
+ borderless: {
13
+ type: Boolean,
14
+ default: false,
15
+ },
16
+ dataTestId:{
17
+ type: String,
18
+ default: 'address-lookup'
19
+ },
20
+ disable: {
21
+ type: Boolean,
22
+ default: false,
23
+ },
24
+ error: {
25
+ type: Boolean,
26
+ },
27
+ errorMessage: {
16
28
  type: String,
17
29
  },
18
30
  hintIcon: {
19
31
  type: String,
20
32
  },
33
+ hintText: {
34
+ type: String,
35
+ },
21
36
  isRequired: {
22
37
  type: Boolean,
23
38
  default: false,
@@ -25,21 +40,28 @@ const props = defineProps({
25
40
  label: {
26
41
  type: String,
27
42
  },
28
- leftIcon: {
29
- type: String,
43
+ leftBorderRadius: {
44
+ type: Boolean,
45
+ default: false,
30
46
  },
31
- rightIcon: {
47
+ leftIcon: {
32
48
  type: String,
33
49
  },
34
50
  outlined: {
35
51
  type: Boolean,
36
52
  default: true,
37
53
  },
38
- borderless: {
54
+ parentClass: {
55
+ type: String,
56
+ },
57
+ placeholder: {
58
+ type: String,
59
+ },
60
+ readonly: {
39
61
  type: Boolean,
40
62
  default: false,
41
63
  },
42
- placeholder: {
64
+ rightIcon: {
43
65
  type: String,
44
66
  },
45
67
  rightIconAriaLabel: {
@@ -55,37 +77,16 @@ const props = defineProps({
55
77
  },
56
78
  validationRules: {
57
79
  type: Array,
58
- },
59
- readonly: {
60
- type: Boolean,
61
- default: false,
62
- },
63
- disable: {
64
- type: Boolean,
65
- default: false,
66
- },
67
- error: {
68
- type: Boolean,
69
- },
70
- errorMessage: {
71
- type: String,
72
- },
73
- leftBorderRadius: {
74
- type: Boolean,
75
- default: false,
76
- },
77
- parentClass: {
78
- type: String,
79
- },
80
+ }
80
81
  })
81
82
 
82
83
  let sessionToken, autocompleteSuggestion
83
84
 
84
85
  const inputRef = ref(null)
85
86
  const predictions = ref([])
87
+ const resultItem = ref({})
86
88
  const resultsMenuRef = ref(null)
87
89
  const resultsMenuShowing = ref(false)
88
- const resultItem = ref({})
89
90
 
90
91
  const leftBorderRadius = computed(() => {
91
92
  if (props.leftBorderRadius === true) {
@@ -221,8 +222,8 @@ watch(modelValue, async (value) => {
221
222
  <template>
222
223
  <div
223
224
  v-if="JSON.stringify(resultItem) === '{}'"
224
- class="q-gutter-xs"
225
- :class="parentClass"
225
+ :class="`q-gutter-xs ${parentClass}`"
226
+ :dataTestId="dataTestId"
226
227
  >
227
228
  <label
228
229
  v-if="label"
@@ -254,8 +255,7 @@ watch(modelValue, async (value) => {
254
255
  <q-input
255
256
  v-bind="$attrs"
256
257
  v-model="modelValue"
257
- class="u-input"
258
- :class="`field-${size} ${leftBorderRadius}`"
258
+ :class="`u-input field-${size} ${leftBorderRadius}`"
259
259
  :borderless="borderless"
260
260
  :bottom-slots="!!hintText"
261
261
  :debounce="500"
@@ -354,7 +354,8 @@ watch(modelValue, async (value) => {
354
354
 
355
355
  <UInputTextStd
356
356
  v-if="JSON.stringify(resultItem) !== '{}'"
357
- v-model="resultItem.street_address"
357
+ v-model="resultItem.formattedAddress"
358
+ :dataTestId="dataTestId"
358
359
  :label="label"
359
360
  readonly
360
361
  rightIcon="fa-kit-duotone fa-circle-xmark"
@@ -9,7 +9,14 @@ const props = defineProps({
9
9
  default: 'fa-kit-duotone fa-circle-xmark',
10
10
  type: String,
11
11
  },
12
- closeIconLabel: { type: String, default: 'close Icon' },
12
+ closeIconLabel: {
13
+ type: String,
14
+ default: 'close Icon',
15
+ },
16
+ dataTestId: {
17
+ type: String,
18
+ default: 'sheet-std',
19
+ },
13
20
  heading: {
14
21
  default: 'Select Option',
15
22
  type: String,
@@ -18,9 +25,18 @@ const props = defineProps({
18
25
  default: null,
19
26
  type: String,
20
27
  },
21
- isLeftIcon: { type: Boolean, default: false },
22
- leftIcon: { type: String, default: 'fa-kit-duotone fa-circle-arrow-left' },
23
- leftIconLabel: { type: String, default: 'Back Icon' },
28
+ isLeftIcon: {
29
+ type: Boolean,
30
+ default: false,
31
+ },
32
+ leftIcon: {
33
+ type: String,
34
+ default: 'fa-kit-duotone fa-circle-arrow-left',
35
+ },
36
+ leftIconLabel: {
37
+ type: String,
38
+ default: 'Back Icon',
39
+ },
24
40
  showActionButtons: {
25
41
  default: false,
26
42
  type: Boolean,
@@ -144,6 +160,7 @@ watch(
144
160
  <q-dialog
145
161
  v-for="(dialog, key) in dialogs"
146
162
  v-model="dialog.open"
163
+ :dataTestId="dataTestId"
147
164
  :key="key"
148
165
  :persistent="
149
166
  typeof dialog.persistent === 'undefined' ? true : dialog.persistent