@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 +2 -2
- package/package.json +1 -1
- package/src/components/core/UDate.vue +19 -4
- package/src/components/core/UTable/UTable.vue +1079 -910
- package/src/components/core/UTableStd.vue +48 -22
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Component Library v1.0.0-alpha.
|
|
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
|
@@ -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)
|
|
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="
|
|
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="
|
|
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="
|
|
301
|
+
:label="applyLabel"
|
|
287
302
|
size="md"
|
|
288
303
|
@on-click="handleApply"
|
|
289
304
|
/>
|