@globalbrain/sefirot 2.0.0-draft.5 → 2.0.0-draft.8
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/CHANGELOG.md +20 -0
- package/LICENSE.md +1 -1
- package/lib/.DS_Store +0 -0
- package/lib/components/.DS_Store +0 -0
- package/lib/components/SInputSelect.vue +235 -0
- package/lib/components/icons/.DS_Store +0 -0
- package/lib/composables/Form.ts +1 -1
- package/lib/composables/Validation.ts +11 -7
- package/lib/validation/rules/checked.ts +6 -4
- package/lib/validation/rules/email.ts +8 -0
- package/lib/validation/rules/fileExtension.ts +2 -2
- package/lib/validation/rules/hms.ts +2 -2
- package/lib/validation/rules/index.ts +2 -0
- package/lib/validation/rules/maxLength.ts +2 -4
- package/lib/validation/rules/minLength.ts +2 -4
- package/lib/validation/rules/required.ts +6 -1
- package/lib/validation/rules/requiredHms.ts +2 -2
- package/lib/validation/rules/requiredIf.ts +8 -2
- package/lib/validation/rules/requiredYmd.ts +2 -2
- package/lib/validation/rules/url.ts +8 -0
- package/lib/validation/rules/ymd.ts +2 -2
- package/package.json +24 -24
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
# [2.0.0-draft.8](https://github.com/globalbrain/sefirot/compare/v2.0.0-draft.7...v2.0.0-draft.8) (2022-04-21)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
* **validation:** update types
|
|
6
|
+
|
|
7
|
+
# [2.0.0-draft.7](https://github.com/globalbrain/sefirot/compare/v2.0.0-draft.6...v2.0.0-draft.7) (2022-02-21)
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **validation:** vuelidate import ([1c2e547](https://github.com/globalbrain/sefirot/commit/1c2e547d2ef5fa31ab36ba65882c54085cc4a991))
|
|
12
|
+
|
|
13
|
+
# [2.0.0-draft.6](https://github.com/globalbrain/sefirot/compare/v2.0.0-draft.5...v2.0.0-draft.6) (2022-02-21)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **input-select:** add SInputSelect component ([1d0608e](https://github.com/globalbrain/sefirot/commit/1d0608e8aaa3f7007bb4aff18255ce2b528a7d76))
|
|
18
|
+
* **validation:** add custom error message support ([acb0894](https://github.com/globalbrain/sefirot/commit/acb0894ec5fdcc052100e3623525fbf030854a2f))
|
|
19
|
+
|
|
20
|
+
|
|
1
21
|
# [2.0.0-draft.5](https://github.com/globalbrain/sefirot/compare/v2.0.0-draft.4...v2.0.0-draft.5) (2022-02-16)
|
|
2
22
|
|
|
3
23
|
### Features
|
package/LICENSE.md
CHANGED
package/lib/.DS_Store
ADDED
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<SInputBase
|
|
3
|
+
class="SInputSelect"
|
|
4
|
+
:class="classes"
|
|
5
|
+
:label="label"
|
|
6
|
+
:note="note"
|
|
7
|
+
:help="help"
|
|
8
|
+
:error-message="errorMessage ?? true"
|
|
9
|
+
:validation="validation"
|
|
10
|
+
>
|
|
11
|
+
<div class="box" :class="{ focus: isFocused }">
|
|
12
|
+
<select
|
|
13
|
+
class="select"
|
|
14
|
+
:class="{ 'is-not-selected': isNotSelected }"
|
|
15
|
+
:disabled="disabled"
|
|
16
|
+
@focus="focus"
|
|
17
|
+
@blur="blur"
|
|
18
|
+
@change="emitChange"
|
|
19
|
+
>
|
|
20
|
+
<option
|
|
21
|
+
v-if="placeholder || nullable"
|
|
22
|
+
:value="JSON.stringify({ value: null })"
|
|
23
|
+
:selected="isNotSelected"
|
|
24
|
+
:disabled="!nullable"
|
|
25
|
+
>
|
|
26
|
+
{{ placeholder || 'Please select' }}
|
|
27
|
+
</option>
|
|
28
|
+
|
|
29
|
+
<option
|
|
30
|
+
v-for="(option, index) in options"
|
|
31
|
+
:key="index"
|
|
32
|
+
:style="{ display: option.disabled ? 'none' : undefined }"
|
|
33
|
+
:value="JSON.stringify(option)"
|
|
34
|
+
:selected="isSelectedOption(option)"
|
|
35
|
+
>
|
|
36
|
+
{{ option.label }}
|
|
37
|
+
</option>
|
|
38
|
+
</select>
|
|
39
|
+
|
|
40
|
+
<div class="icon" role="button">
|
|
41
|
+
<SIconChevronUp class="icon-svg up" />
|
|
42
|
+
<SIconChevronDown class="icon-svg down" />
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
</SInputBase>
|
|
46
|
+
</template>
|
|
47
|
+
|
|
48
|
+
<script setup lang="ts">
|
|
49
|
+
import { PropType, ref, computed } from 'vue'
|
|
50
|
+
import { Validation, Validatable } from '../composables/Validation'
|
|
51
|
+
import SIconChevronUp from './icons/SIconChevronUp.vue'
|
|
52
|
+
import SIconChevronDown from './icons/SIconChevronDown.vue'
|
|
53
|
+
import SInputBase from './SInputBase.vue'
|
|
54
|
+
|
|
55
|
+
type Size = 'mini' | 'small' | 'medium'
|
|
56
|
+
|
|
57
|
+
interface Option {
|
|
58
|
+
label: string
|
|
59
|
+
value: boolean | number | string
|
|
60
|
+
disabled?: boolean
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
const props = defineProps({
|
|
64
|
+
size: { type: String as PropType<Size>, default: 'small' },
|
|
65
|
+
label: { type: String, default: null },
|
|
66
|
+
note: { type: String, default: null },
|
|
67
|
+
help: { type: String, default: null },
|
|
68
|
+
placeholder: { type: String, default: null },
|
|
69
|
+
options: { type: Array as PropType<Option[]>, required: true },
|
|
70
|
+
disabled: { type: Boolean, default: false },
|
|
71
|
+
nullable: { type: Boolean, default: false },
|
|
72
|
+
errorMessage: { type: Boolean, default: true },
|
|
73
|
+
modelValue: { type: [String, Number, Boolean] as PropType<string | number | boolean | null>, default: null },
|
|
74
|
+
validation: { type: Object as PropType<Validatable>, default: null }
|
|
75
|
+
})
|
|
76
|
+
|
|
77
|
+
const emit = defineEmits(['update:modelValue'])
|
|
78
|
+
|
|
79
|
+
const isFocused = ref(false)
|
|
80
|
+
|
|
81
|
+
const classes = computed(() => [
|
|
82
|
+
props.size ?? 'small',
|
|
83
|
+
{ disabled: props.disabled ?? false }
|
|
84
|
+
])
|
|
85
|
+
|
|
86
|
+
const isNotSelected = computed(() => {
|
|
87
|
+
return props.modelValue === undefined || props.modelValue === null || props.modelValue === ''
|
|
88
|
+
})
|
|
89
|
+
|
|
90
|
+
function isSelectedOption(option: Option): boolean {
|
|
91
|
+
return option.value === props.modelValue
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
function focus() {
|
|
95
|
+
isFocused.value = true
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
function blur() {
|
|
99
|
+
isFocused.value = false
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
function emitChange(e: any): void {
|
|
103
|
+
props.validation?.$touch()
|
|
104
|
+
|
|
105
|
+
const option = JSON.parse(e.target.value)
|
|
106
|
+
|
|
107
|
+
emit('update:modelValue', option.value)
|
|
108
|
+
}
|
|
109
|
+
</script>
|
|
110
|
+
|
|
111
|
+
<style scoped lang="postcss">
|
|
112
|
+
.SInputSelect.mini {
|
|
113
|
+
.box {
|
|
114
|
+
height: 32px;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.select {
|
|
118
|
+
padding: 3px 30px 3px 12px;
|
|
119
|
+
line-height: 24px;
|
|
120
|
+
font-size: 14px;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.icon {
|
|
124
|
+
top: 3px;
|
|
125
|
+
right: 8px;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.SInputSelect.small {
|
|
130
|
+
.box {
|
|
131
|
+
height: 40px;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.select {
|
|
135
|
+
padding: 7px 30px 5px 12px;
|
|
136
|
+
line-height: 24px;
|
|
137
|
+
font-size: 16px;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.icon {
|
|
141
|
+
top: 7px;
|
|
142
|
+
right: 10px;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.SInputSelect.medium {
|
|
147
|
+
.box {
|
|
148
|
+
height: 48px;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.select {
|
|
152
|
+
padding: 11px 44px 11px 16px;
|
|
153
|
+
line-height: 24px;
|
|
154
|
+
font-size: 16px;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.icon {
|
|
158
|
+
top: 11px;
|
|
159
|
+
right: 12px;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.SInputSelect.disabled {
|
|
164
|
+
.box {
|
|
165
|
+
background-color: var(--c-bg-mute);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.box:hover .select {
|
|
169
|
+
cursor: not-allowed;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.SInputSelect.has-error {
|
|
174
|
+
.box {
|
|
175
|
+
border-color: var(--c-danger);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.select {
|
|
179
|
+
border-color: var(--c-danger);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.box {
|
|
184
|
+
position: relative;
|
|
185
|
+
border: 1px solid var(--input-border);
|
|
186
|
+
border-radius: 4px;
|
|
187
|
+
width: 100%;
|
|
188
|
+
color: var(--input-text);
|
|
189
|
+
cursor: pointer;
|
|
190
|
+
transition: border-color .25s, background-color .25s;
|
|
191
|
+
|
|
192
|
+
&:hover,
|
|
193
|
+
&.focus {
|
|
194
|
+
border-color: var(--input-border);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
&:focus:not(:focus-visible) {
|
|
198
|
+
border-color: var(--input-border);
|
|
199
|
+
outline: 0;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.select {
|
|
204
|
+
position: relative;
|
|
205
|
+
z-index: 20;
|
|
206
|
+
display: block;
|
|
207
|
+
border: 0;
|
|
208
|
+
border-radius: 4px;
|
|
209
|
+
width: 100%;
|
|
210
|
+
background-color: transparent;
|
|
211
|
+
cursor: pointer;
|
|
212
|
+
|
|
213
|
+
&.select.is-not-selected {
|
|
214
|
+
color: var(--input-placeholder);
|
|
215
|
+
font-weight: 500;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.icon {
|
|
220
|
+
position: absolute;
|
|
221
|
+
z-index: 10;
|
|
222
|
+
cursor: pointer;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.icon-svg {
|
|
226
|
+
display: block;
|
|
227
|
+
width: 14px;
|
|
228
|
+
height: 14px;
|
|
229
|
+
fill: var(--input-placeholder);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.icon-svg.up {
|
|
233
|
+
margin-bottom: -4px;
|
|
234
|
+
}
|
|
235
|
+
</style>
|
|
Binary file
|
package/lib/composables/Form.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Ref, ToRefs, reactive, computed } from 'vue'
|
|
2
2
|
import { cloneDeep } from '../support/Utils'
|
|
3
3
|
import { useSnackbar } from './Snackbar'
|
|
4
|
-
import { Validation,
|
|
4
|
+
import { Validation, ValidationArgs, useValidation } from './Validation'
|
|
5
5
|
|
|
6
6
|
export interface Form<D> {
|
|
7
7
|
data: D
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Ref, ToRefs } from 'vue'
|
|
2
|
-
import
|
|
2
|
+
import {
|
|
3
3
|
Validation,
|
|
4
4
|
ValidationArgs,
|
|
5
5
|
GlobalConfig,
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
ErrorObject,
|
|
7
|
+
useVuelidate
|
|
8
8
|
} from '@vuelidate/core'
|
|
9
9
|
|
|
10
|
-
export type { Validation, ValidationArgs, GlobalConfig
|
|
10
|
+
export type { Validation, ValidationArgs, GlobalConfig }
|
|
11
11
|
|
|
12
12
|
export interface Validatable {
|
|
13
13
|
readonly $dirty: boolean
|
|
@@ -16,13 +16,17 @@ export interface Validatable {
|
|
|
16
16
|
readonly $touch: () => void
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
export interface ValidationNotification {
|
|
20
|
+
notify(): Promise<boolean>
|
|
21
|
+
}
|
|
22
|
+
|
|
19
23
|
export function useValidation<
|
|
20
|
-
T extends
|
|
21
|
-
A extends ValidationArgs
|
|
24
|
+
T extends { [key in keyof A]: any },
|
|
25
|
+
A extends ValidationArgs = ValidationArgs,
|
|
22
26
|
>(
|
|
23
27
|
state: T | Ref<T> | ToRefs<T>,
|
|
24
28
|
rules: Ref<A> | A,
|
|
25
29
|
config?: GlobalConfig
|
|
26
|
-
): Ref<Validation<A>> {
|
|
30
|
+
): Ref<Validation<A, T>> {
|
|
27
31
|
return useVuelidate(rules, state, config)
|
|
28
32
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { helpers } from '@vuelidate/validators'
|
|
2
2
|
import { checked as baseChecked } from '../validators/checked'
|
|
3
3
|
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
)
|
|
4
|
+
export function checked(msg?: string) {
|
|
5
|
+
return helpers.withMessage(
|
|
6
|
+
() => msg ?? 'You must check the field.',
|
|
7
|
+
(value: boolean) => !helpers.req(value) || baseChecked(value)
|
|
8
|
+
)
|
|
9
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { helpers } from '@vuelidate/validators'
|
|
2
2
|
import { fileExtension as baseFileExtension } from '../validators/fileExtension'
|
|
3
3
|
|
|
4
|
-
export function fileExtension(extensions: string[],
|
|
4
|
+
export function fileExtension(extensions: string[], msg?: string) {
|
|
5
5
|
return helpers.withMessage(
|
|
6
|
-
'The file extension is invalid.',
|
|
6
|
+
() => msg ?? 'The file extension is invalid.',
|
|
7
7
|
(value: File) => {
|
|
8
8
|
return !helpers.req(value) || baseFileExtension(value, extensions)
|
|
9
9
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { helpers } from '@vuelidate/validators'
|
|
2
2
|
import { hms as baseHms, Hms, HmsType } from '../validators/hms'
|
|
3
3
|
|
|
4
|
-
export function hms(required?: HmsType[]) {
|
|
4
|
+
export function hms(required?: HmsType[], msg?: string) {
|
|
5
5
|
return helpers.withMessage(
|
|
6
|
-
'The time is invalid.',
|
|
6
|
+
() => msg ?? 'The time is invalid.',
|
|
7
7
|
(value: Hms) => {
|
|
8
8
|
return !helpers.req(value) || baseHms(value, required)
|
|
9
9
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from './checked'
|
|
2
|
+
export * from './email'
|
|
2
3
|
export * from './fileExtension'
|
|
3
4
|
export * from './hms'
|
|
4
5
|
export * from './maxLength'
|
|
@@ -7,4 +8,5 @@ export * from './required'
|
|
|
7
8
|
export * from './requiredHms'
|
|
8
9
|
export * from './requiredIf'
|
|
9
10
|
export * from './requiredYmd'
|
|
11
|
+
export * from './url'
|
|
10
12
|
export * from './ymd'
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { helpers, maxLength as baseMaxLength } from '@vuelidate/validators'
|
|
2
2
|
|
|
3
|
-
export function maxLength(length: number) {
|
|
3
|
+
export function maxLength(length: number, msg?: string) {
|
|
4
4
|
return helpers.withMessage(
|
|
5
5
|
({ $params }) => {
|
|
6
|
-
return `
|
|
7
|
-
The value must be less or equal to ${($params as any).max} characters.
|
|
8
|
-
`
|
|
6
|
+
return msg ?? `The value must be less or equal to ${($params as any).max} characters.`
|
|
9
7
|
},
|
|
10
8
|
baseMaxLength(length)
|
|
11
9
|
)
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { helpers, minLength as baseMinLength } from '@vuelidate/validators'
|
|
2
2
|
|
|
3
|
-
export function minLength(length: number) {
|
|
3
|
+
export function minLength(length: number, msg?: string) {
|
|
4
4
|
return helpers.withMessage(
|
|
5
5
|
({ $params }) => {
|
|
6
|
-
return `
|
|
7
|
-
The value must be greater or equal to ${($params as any).min} characters.
|
|
8
|
-
`
|
|
6
|
+
return msg ?? `The value must be greater or equal to ${($params as any).min} characters.`
|
|
9
7
|
},
|
|
10
8
|
baseMinLength(length)
|
|
11
9
|
)
|
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
import { helpers, required as baseRequired } from '@vuelidate/validators'
|
|
2
2
|
|
|
3
|
-
export
|
|
3
|
+
export function required(msg?: string) {
|
|
4
|
+
return helpers.withMessage(
|
|
5
|
+
() => msg ?? 'The field is required.',
|
|
6
|
+
baseRequired
|
|
7
|
+
)
|
|
8
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { helpers } from '@vuelidate/validators'
|
|
2
2
|
import { requiredHms as baseRequiredHms, Hms, HmsType } from '../validators/requiredHms'
|
|
3
3
|
|
|
4
|
-
export function requiredHms(required?: HmsType[]) {
|
|
4
|
+
export function requiredHms(required?: HmsType[], msg?: string) {
|
|
5
5
|
return helpers.withMessage(
|
|
6
|
-
'The field is required.',
|
|
6
|
+
() => msg ?? 'The field is required.',
|
|
7
7
|
(value: Hms) => {
|
|
8
8
|
return !helpers.req(value) || baseRequiredHms(value, required)
|
|
9
9
|
}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { helpers, requiredIf as baseRequiredIf } from '@vuelidate/validators'
|
|
2
2
|
|
|
3
|
-
export function requiredIf(
|
|
4
|
-
|
|
3
|
+
export function requiredIf(
|
|
4
|
+
prop: boolean | string | (() => boolean | Promise<boolean>),
|
|
5
|
+
msg?: string
|
|
6
|
+
) {
|
|
7
|
+
return helpers.withMessage(
|
|
8
|
+
() => msg ?? 'The field is required.',
|
|
9
|
+
baseRequiredIf(prop)
|
|
10
|
+
)
|
|
5
11
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { helpers } from '@vuelidate/validators'
|
|
2
2
|
import { requiredYmd as baseRequiredYmd, Ymd, YmdType } from '../validators/requiredYmd'
|
|
3
3
|
|
|
4
|
-
export function requiredYmd(required?: YmdType[]) {
|
|
4
|
+
export function requiredYmd(required?: YmdType[], msg?: string) {
|
|
5
5
|
return helpers.withMessage(
|
|
6
|
-
'The field is required.',
|
|
6
|
+
() => msg ?? 'The field is required.',
|
|
7
7
|
(value: Ymd) => {
|
|
8
8
|
return !helpers.req(value) || baseRequiredYmd(value, required)
|
|
9
9
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { helpers } from '@vuelidate/validators'
|
|
2
2
|
import { ymd as baseYmd, Ymd, YmdType } from '../validators/ymd'
|
|
3
3
|
|
|
4
|
-
export function ymd(required?: YmdType[]) {
|
|
4
|
+
export function ymd(required?: YmdType[], msg?: string) {
|
|
5
5
|
return helpers.withMessage(
|
|
6
|
-
'The date is invalid.',
|
|
6
|
+
() => msg ?? 'The date is invalid.',
|
|
7
7
|
(value: Ymd) => {
|
|
8
8
|
return !helpers.req(value) || baseYmd(value, required)
|
|
9
9
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@globalbrain/sefirot",
|
|
3
|
-
"version": "2.0.0-draft.
|
|
3
|
+
"version": "2.0.0-draft.8",
|
|
4
4
|
"description": "Vue Components for Global Brain Design System.",
|
|
5
5
|
"files": [
|
|
6
6
|
"lib"
|
|
@@ -32,51 +32,51 @@
|
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"@types/body-scroll-lock": "^3.1.0",
|
|
35
|
-
"@types/lodash-es": "^4.17.
|
|
36
|
-
"@vuelidate/core": "^2.0.0-alpha.
|
|
37
|
-
"@vuelidate/validators": "^2.0.0-alpha.
|
|
35
|
+
"@types/lodash-es": "^4.17.6",
|
|
36
|
+
"@vuelidate/core": "^2.0.0-alpha.38",
|
|
37
|
+
"@vuelidate/validators": "^2.0.0-alpha.28",
|
|
38
38
|
"body-scroll-lock": "^4.0.0-beta.0",
|
|
39
|
+
"dayjs": "^1.11.0",
|
|
39
40
|
"fuse.js": "^6.5.3",
|
|
40
41
|
"lodash-es": "^4.17.21",
|
|
41
42
|
"normalize.css": "^8.0.1",
|
|
42
|
-
"postcss": "^8.4.
|
|
43
|
+
"postcss": "^8.4.12",
|
|
43
44
|
"postcss-nested": "^5.0.6",
|
|
44
|
-
"typescript": "^4.
|
|
45
|
+
"typescript": "^4.6.3",
|
|
45
46
|
"vue": "^3.2.31",
|
|
46
|
-
"vue-router": "^4.0.
|
|
47
|
-
"vue-tsc": "^0.31.4",
|
|
47
|
+
"vue-router": "^4.0.14",
|
|
48
48
|
"vuex": "^4.0.2"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@babel/core": "^7.17.
|
|
51
|
+
"@babel/core": "^7.17.8",
|
|
52
52
|
"@types/body-scroll-lock": "^3.1.0",
|
|
53
53
|
"@types/lodash-es": "^4.17.6",
|
|
54
|
-
"@typescript-eslint/parser": "^5.
|
|
55
|
-
"@vitejs/plugin-vue": "^2.2.
|
|
56
|
-
"@vue/test-utils": "^2.0.0-rc.
|
|
57
|
-
"@vuelidate/core": "^2.0.0-alpha.
|
|
58
|
-
"@vuelidate/validators": "^2.0.0-alpha.
|
|
54
|
+
"@typescript-eslint/parser": "^5.17.0",
|
|
55
|
+
"@vitejs/plugin-vue": "^2.2.4",
|
|
56
|
+
"@vue/test-utils": "^2.0.0-rc.18",
|
|
57
|
+
"@vuelidate/core": "^2.0.0-alpha.38",
|
|
58
|
+
"@vuelidate/validators": "^2.0.0-alpha.28",
|
|
59
59
|
"body-scroll-lock": "^4.0.0-beta.0",
|
|
60
60
|
"c8": "^7.11.0",
|
|
61
61
|
"codecov": "^3.8.3",
|
|
62
62
|
"conventional-changelog-cli": "^2.2.2",
|
|
63
|
-
"dayjs": "^1.
|
|
63
|
+
"dayjs": "^1.11.0",
|
|
64
64
|
"enquirer": "^2.3.6",
|
|
65
|
-
"eslint": "^8.
|
|
66
|
-
"eslint-plugin-vue": "^8.
|
|
65
|
+
"eslint": "^8.12.0",
|
|
66
|
+
"eslint-plugin-vue": "^8.5.0",
|
|
67
67
|
"execa": "^5.1.1",
|
|
68
68
|
"fuse.js": "^6.5.3",
|
|
69
|
-
"happy-dom": "^2.
|
|
69
|
+
"happy-dom": "^2.50.0",
|
|
70
70
|
"lodash-es": "^4.17.21",
|
|
71
71
|
"normalize.css": "^8.0.1",
|
|
72
|
-
"postcss": "^8.4.
|
|
72
|
+
"postcss": "^8.4.12",
|
|
73
73
|
"postcss-nested": "^5.0.6",
|
|
74
|
-
"typescript": "^4.
|
|
75
|
-
"vite": "^2.8.
|
|
76
|
-
"vitest": "^0.
|
|
74
|
+
"typescript": "^4.6.3",
|
|
75
|
+
"vite": "^2.8.6",
|
|
76
|
+
"vitest": "^0.7.12",
|
|
77
77
|
"vue": "^3.2.31",
|
|
78
|
-
"vue-router": "^4.0.
|
|
79
|
-
"vue-tsc": "^0.
|
|
78
|
+
"vue-router": "^4.0.14",
|
|
79
|
+
"vue-tsc": "^0.33.9",
|
|
80
80
|
"vuex": "^4.0.2"
|
|
81
81
|
}
|
|
82
82
|
}
|