diff --git a/.eslintrc.cjs b/.eslintrc.cjs index cdef3cc8..52a80f05 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -9,6 +9,8 @@ module.exports = { rules: { 'vue/no-template-shadow': 'off', - 'no-console': 'warn' + 'no-console': 'warn', + 'unused-imports/no-unused-vars': 'off', + '@typescript-eslint/no-unused-vars': 'warn' } } diff --git a/client.d.ts b/client.d.ts index 131b0cb2..8fb0831d 100644 --- a/client.d.ts +++ b/client.d.ts @@ -2,8 +2,3 @@ /// // this file contains public types which are exposed to external modules - -declare module 'v-calendar' { - export * from 'v-calendar/dist/types/src/index.d.ts' - export { default } from 'v-calendar/dist/types/src/index.d.ts' -} diff --git a/config/vite.js b/config/vite.js index 39b1d66e..37beae99 100644 --- a/config/vite.js +++ b/config/vite.js @@ -61,11 +61,11 @@ export const baseConfig = { 'fuse.js', 'lodash-es', 'markdown-it', + 'maska', 'normalize.css', 'ofetch', 'pinia', 'qs', - 'v-calendar', 'vue-router', 'vue' ] diff --git a/lib/components/SDatePicker.vue b/lib/components/SDatePicker.vue new file mode 100644 index 00000000..01640a66 --- /dev/null +++ b/lib/components/SDatePicker.vue @@ -0,0 +1,528 @@ + + + + + + prev()" :disabled="isPrevDisabled"> + + + + {{ description }} + + next()" :disabled="isNextDisabled"> + + + + + {{ name }} + + + + + {{ getLabelForItem(i) }} + + + + + + diff --git a/lib/components/SInputDate.vue b/lib/components/SInputDate.vue index 122aea02..8b0c6846 100644 --- a/lib/components/SInputDate.vue +++ b/lib/components/SInputDate.vue @@ -1,8 +1,11 @@