vueless 0.0.586 → 0.0.588
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 +1 -1
- package/ui.form-color-picker/UColorPicker.vue +3 -0
- package/ui.form-color-picker/types.ts +1 -1
- package/ui.form-date-picker/UDatePicker.vue +1 -1
- package/ui.form-date-picker/config.ts +1 -1
- package/ui.form-date-picker-range/UDatePickerRange.vue +2 -2
- package/ui.form-input/UInput.vue +2 -2
- package/ui.navigation-tabs/types.ts +1 -1
- package/web-types.json +5 -2
package/package.json
CHANGED
|
@@ -12,11 +12,14 @@ import { UColorPicker } from "./constants.ts";
|
|
|
12
12
|
import defaultConfig from "./config.ts";
|
|
13
13
|
|
|
14
14
|
import type { Props, IconSize, Config } from "./types.ts";
|
|
15
|
+
import type { BrandColors } from "../types.ts";
|
|
15
16
|
|
|
16
17
|
defineOptions({ inheritAttrs: false });
|
|
17
18
|
|
|
18
19
|
const props = withDefaults(defineProps<Props>(), {
|
|
19
20
|
...getDefaults<Props, Config>(defaultConfig, UColorPicker),
|
|
21
|
+
colorOptions: () =>
|
|
22
|
+
getDefaults<Props, Config>(defaultConfig, UColorPicker).colorOptions as BrandColors[],
|
|
20
23
|
modelValue: "",
|
|
21
24
|
label: "",
|
|
22
25
|
});
|
|
@@ -257,10 +257,10 @@ const mutatedProps = computed(() => ({
|
|
|
257
257
|
|
|
258
258
|
const {
|
|
259
259
|
config,
|
|
260
|
+
wrapperAttrs,
|
|
260
261
|
datepickerInputAttrs,
|
|
261
262
|
datepickerInputActiveAttrs,
|
|
262
263
|
datepickerCalendarAttrs,
|
|
263
|
-
wrapperAttrs,
|
|
264
264
|
} = useUI<Config>(defaultConfig, mutatedProps);
|
|
265
265
|
|
|
266
266
|
/* Merging DatePicker's i18n translations into Calendar's i18n translations. */
|
|
@@ -65,7 +65,7 @@ import type {
|
|
|
65
65
|
Config,
|
|
66
66
|
} from "./types.ts";
|
|
67
67
|
import type { RangeDate, Config as UCalendarConfig } from "../ui.form-calendar/types.ts";
|
|
68
|
-
import type { ComponentExposed } from "../types.ts";
|
|
68
|
+
import type { ComponentExposed, KeyAttrsWithConfig } from "../types.ts";
|
|
69
69
|
|
|
70
70
|
defineOptions({ inheritAttrs: false });
|
|
71
71
|
|
|
@@ -722,8 +722,8 @@ watchEffect(() => {
|
|
|
722
722
|
v-model="calendarValue"
|
|
723
723
|
:min-date="minDate"
|
|
724
724
|
:max-date="maxDate"
|
|
725
|
-
v-bind="datepickerCalendarAttrs"
|
|
726
725
|
:date-format="dateFormat"
|
|
726
|
+
v-bind="datepickerCalendarAttrs as KeyAttrsWithConfig<UCalendarConfig>"
|
|
727
727
|
range
|
|
728
728
|
@mouseenter="onMouseoverCalendar"
|
|
729
729
|
@input="onInputCalendar"
|
package/ui.form-input/UInput.vue
CHANGED
|
@@ -127,7 +127,7 @@ onMounted(() => {
|
|
|
127
127
|
setLabelPosition();
|
|
128
128
|
});
|
|
129
129
|
|
|
130
|
-
function onInput(inputEvent:
|
|
130
|
+
function onInput(inputEvent: Event) {
|
|
131
131
|
const target = inputEvent.target as HTMLInputElement | null;
|
|
132
132
|
|
|
133
133
|
if (!target) return;
|
|
@@ -149,7 +149,7 @@ function onInput(inputEvent: InputEvent) {
|
|
|
149
149
|
emit("input", value);
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
-
function onChange(event:
|
|
152
|
+
function onChange(event: Event) {
|
|
153
153
|
emit("change", event);
|
|
154
154
|
}
|
|
155
155
|
|
package/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"framework": "vue",
|
|
3
3
|
"name": "vueless",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.588",
|
|
5
5
|
"contributions": {
|
|
6
6
|
"html": {
|
|
7
7
|
"description-markup": "markdown",
|
|
@@ -2517,9 +2517,12 @@
|
|
|
2517
2517
|
"name": "colorOptions",
|
|
2518
2518
|
"required": false,
|
|
2519
2519
|
"description": "Color picker color list.",
|
|
2520
|
+
"enum": [
|
|
2521
|
+
"BrandColors"
|
|
2522
|
+
],
|
|
2520
2523
|
"value": {
|
|
2521
2524
|
"kind": "expression",
|
|
2522
|
-
"type": "
|
|
2525
|
+
"type": "Array"
|
|
2523
2526
|
},
|
|
2524
2527
|
"default": "red,orange,amber,yellow,lime,green,emerald,teal,cyan,sky,blue,indigo,violet,purple,fuchsia,pink,rose"
|
|
2525
2528
|
},
|