@usssa/component-library 1.0.0-alpha.183 → 1.0.0-alpha.189

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.178
1
+ # Component Library v1.0.0-alpha.189
2
2
 
3
3
  **This library provides custom UI components for USSSA applications**
4
4
 
@@ -25,7 +25,7 @@ yarn dev
25
25
 
26
26
  ## Usage in other local projects
27
27
 
28
- 1. Clone the component-library repo and install dependencies
28
+ 1. Clone the component-library repo and install dependencies.
29
29
  2. In component-library directory run `yarn link`
30
30
  3. In Nuxt or Quasar project directory run `yarn link @usssa/component-library`
31
31
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usssa/component-library",
3
- "version": "1.0.0-alpha.183",
3
+ "version": "1.0.0-alpha.189",
4
4
  "description": "A Quasar component library project",
5
5
  "productName": "Quasar component library App",
6
6
  "author": "Engineering Team <engineering@usssa.com>",
@@ -9,10 +9,18 @@ const date = defineModel('date', { default: null })
9
9
 
10
10
  const props = defineProps({
11
11
  anchor: { type: String, default: 'bottom start' },
12
+ applyLabel: {
13
+ type: String,
14
+ default: 'Apply',
15
+ },
12
16
  borderless: {
13
17
  type: Boolean,
14
18
  default: false,
15
19
  },
20
+ closeLabel: {
21
+ type: String,
22
+ default: 'Close',
23
+ },
16
24
  dataTestId: {
17
25
  type: String,
18
26
  default: 'date',
@@ -43,6 +51,10 @@ const props = defineProps({
43
51
  },
44
52
  range: { type: Boolean, default: false },
45
53
  self: { type: String, default: 'top left' },
54
+ sheetHeading: {
55
+ type: String,
56
+ default: 'Select Date',
57
+ },
46
58
  size: {
47
59
  type: String,
48
60
  default: 'md',
@@ -131,7 +143,10 @@ const openDialogs = () => {
131
143
  watch(
132
144
  date,
133
145
  (newData) => {
134
- if (!newData) return
146
+ if (!newData) {
147
+ selectedDate.value = ''
148
+ return
149
+ }
135
150
  if (typeof newData === 'string') {
136
151
  selectedDate.value = newData
137
152
  } else {
@@ -224,7 +239,7 @@ watch(
224
239
  v-model:dialogs="dialogs"
225
240
  dialog-class="date-sheet"
226
241
  closeIconLabel="Close Icon"
227
- heading="Select Date"
242
+ :heading="sheetHeading"
228
243
  :show-action-buttons="true"
229
244
  >
230
245
  <template #content>
@@ -274,7 +289,7 @@ watch(
274
289
  <template #action_primary_one>
275
290
  <UBtnStd
276
291
  color="primary"
277
- label="Close"
292
+ :label="closeLabel"
278
293
  outline
279
294
  size="md"
280
295
  @on-click="handleClose"
@@ -283,7 +298,7 @@ watch(
283
298
  <template #action_primary_two>
284
299
  <UBtnStd
285
300
  color="primary"
286
- label="Apply"
301
+ :label="applyLabel"
287
302
  size="md"
288
303
  @on-click="handleApply"
289
304
  />