@veritree/ui 0.75.1-6 → 0.75.1-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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veritree/ui",
3
- "version": "0.75.1-6",
3
+ "version": "0.75.1-8",
4
4
  "description": "veritree ui library",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -20,10 +20,8 @@
20
20
  v-model="valueModel"
21
21
  :min-date="min"
22
22
  :max-date="max"
23
- :modelConfig="{
24
- type: 'string',
25
- mask: 'YYYY-MM-DD',
26
- }"
23
+ :model-config="modelConfig"
24
+ :available-dates="availableDates"
27
25
  color="null"
28
26
  class="min-w-full"
29
27
  @dayclick="onDayClick"
@@ -55,6 +53,10 @@ export default {
55
53
  },
56
54
 
57
55
  props: {
56
+ availableDates: {
57
+ type: Object,
58
+ default: null,
59
+ },
58
60
  min: {
59
61
  type: [String, Date],
60
62
  default: null,
@@ -67,6 +69,13 @@ export default {
67
69
  type: Boolean,
68
70
  default: false,
69
71
  },
72
+ modelConfig: {
73
+ type: Object,
74
+ default: () => ({
75
+ type: 'string',
76
+ mask: 'YYYY-MM-DD',
77
+ }),
78
+ },
70
79
  },
71
80
 
72
81
  computed: {
@@ -76,6 +85,7 @@ export default {
76
85
  },
77
86
  set(newDate) {
78
87
  this.$emit('input', newDate);
88
+ this.$emit('change', newDate);
79
89
  },
80
90
  },
81
91
  },
@@ -46,7 +46,7 @@ export default {
46
46
 
47
47
  props: {
48
48
  role: {
49
- type: 'String',
49
+ type: String,
50
50
  default: 'combobox',
51
51
  },
52
52
  },
@@ -94,22 +94,6 @@ export default {
94
94
 
95
95
  return `button-base button--${this.variant} button--${this.size}`;
96
96
  },
97
-
98
- // valueLength() {
99
- // if (this.multiple) {
100
- // return this.apiListbox().valueComputed.length;
101
- // }
102
-
103
- // return 0;
104
- // },
105
-
106
- // hasBadge() {
107
- // return this.valueLength > 0;
108
- // },
109
-
110
- // isOutline() {
111
- // return this.valueLength > 0;
112
- // },
113
97
  },
114
98
 
115
99
  mounted() {