@voicenter-team/voicenter-ui-plus 4.0.0-beta.8 → 4.0.0-beta.9
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 -3
- package/library/assets/components/VcTimeInput/VcTimeInput.css +1 -1
- package/library/components/VcTimeInput/VcTimeInput.vue.mjs +9 -117
- package/library/style.css +1 -1
- package/library/style.css.br +0 -0
- package/library/style.css.gz +0 -0
- package/library/types/components/VcTimeInput/VcTimeInput.vue.d.ts +6 -20
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -672,9 +672,8 @@ Additions that ask nothing of an application (new components, props, theme keys
|
|
|
672
672
|
| `4.0.0-beta.5` | `VcViewSwitcher` is removed; `VcSegmented` takes icons, disabled hints and the `surface` variant, its `change` passes `(value, option)`, and its `color` prop is removed | Every `<VcViewSwitcher>` becomes `<VcSegmented variant="surface">` by the list under **`VcViewSwitcher` is removed** ([AI chat components](#ai-chat-components)); a `@change` handler of an existing `VcSegmented` that read the earlier value as its second argument is updated, `color` is removed from every `<VcSegmented>`, and a style on `.el-segmented__item-selected` moves to `.el-segmented__item.is-selected` |
|
|
673
673
|
| `4.0.0-beta.5` | `VcDatetimeRangePicker`, the step keys `beforeStepFn` and `onEnterStepFn` of `VcWizard`, and the types `BindResultObjectType`, `VcPresetRangesType` and `VcDatetimeRangePickerModelType` are removed | The application searches for these names (`grep -rnE "VcDatetimeRangePicker|vc-datetime-range-picker|beforeStepFn|onEnterStepFn|BindResultObjectType|VcPresetRangesType" src`) and replaces each hit by its row in **Styles and component defaults** ([Styles and component defaults](#styles-and-component-defaults)); a wizard step with the old keys otherwise skips its validation silently |
|
|
674
674
|
| `4.0.0-beta.5` | The `columns` of `VcTable` are typed by the table's row: `ColumnType<Row>` | Nothing at runtime. Where `vue-tsc` reports the `columns` of a `<VcTable>`, the columns are declared as `ColumnType<Row>` with the type of the table's `options` ([Styles and component defaults](#styles-and-component-defaults)) |
|
|
675
|
-
| `4.0.0-beta.
|
|
676
|
-
|
|
677
|
-
| `4.0.0-beta.5` | `VcTimeInput` mounted with a value above `maxValue` sends `maxValue`, where the earlier betas showed `maxValue` and sent `minValue`; with `maxValue` 0 (no upper limit) its + button adds a step, where the earlier betas set the value to 0; on an RTL page its digits stay left to right (01:30, where the earlier betas showed 30:01) | An application with a time input whose starting value can be above its `maxValue`, or with `max-value="0"`, checks the value it receives; one that styled around the reversed RTL digits removes that style |
|
|
675
|
+
| `4.0.0-beta.6` | `VcTimeInput` mounted with a value above `maxValue` sends `maxValue`, where the earlier betas showed `maxValue` and sent `minValue`; with `maxValue` 0 (no upper limit) its + button adds a step, where the earlier betas set the value to 0; on an RTL page its digits stay left to right (01:30, where the earlier betas showed 30:01) | An application with a time input whose starting value can be above its `maxValue`, or with `max-value="0"`, checks the value it receives; one that styled around the reversed RTL digits removes that style |
|
|
676
|
+
| `4.0.0-beta.9` | `clearable` does nothing on `VcTimeInput`, where `4.0.0-beta.8` alone drew a clear control: the field always holds a number, `update:modelValue` passes `number`, and the `seconds` of `input` is a `number` | `clearable` is removed from every `<VcTimeInput>` (`grep -rnE "<VcTimeInput[^>]*clearable" src`), and a handler written for `number \| undefined` can take `number`; a field that must be able to hold no value is shown or hidden by the form around it |
|
|
678
677
|
|
|
679
678
|
After its rows the application runs the search of [Finding the 3.x names](#finding-the-3x-names) again: it finds a 3.x name that the guide of an earlier beta did not list.
|
|
680
679
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.vc-time-input{width:100%}.vc-time-input__container{position:relative;display:flex;align-items:center;justify-content:space-between;overflow:hidden;border-radius:var(--vc-radius-control);border-width:1px;border-color:var(--vc-input);font-size:.875rem;outline:2px solid transparent;outline-offset:2px;height:var(--vc-size-control-md)}.vc-time-input__container:hover:not(.is-disabled):not(.is-error){border-color:var(--vc-input--hover)}.vc-time-input__container.vc-time-input-color--primary:hover:not(.is-disabled):not(.is-error){border-color:color-mix(in srgb,var(--vc-action-primary) 45%,var(--vc-input))}.vc-time-input__container.vc-time-input-color--primary.is-focused:not(.is-disabled):not(.is-error){border-color:var(--vc-action-primary--hover)}.vc-time-input__container.vc-time-input-color--
|
|
1
|
+
.vc-time-input{width:100%}.vc-time-input__container{position:relative;display:flex;align-items:center;justify-content:space-between;overflow:hidden;border-radius:var(--vc-radius-control);border-width:1px;border-color:var(--vc-input);font-size:.875rem;outline:2px solid transparent;outline-offset:2px;height:var(--vc-size-control-md)}.vc-time-input__container:hover:not(.is-disabled):not(.is-error){border-color:var(--vc-input--hover)}.vc-time-input__container.vc-time-input-color--primary:hover:not(.is-disabled):not(.is-error){border-color:color-mix(in srgb,var(--vc-action-primary) 45%,var(--vc-input))}.vc-time-input__container.vc-time-input-color--primary.is-focused:not(.is-disabled):not(.is-error){border-color:var(--vc-action-primary--hover)}.vc-time-input__container.vc-time-input-color--secondary:hover:not(.is-disabled):not(.is-error){border-color:color-mix(in srgb,var(--vc-action-secondary) 45%,var(--vc-input))}.vc-time-input__container.vc-time-input-color--secondary.is-focused:not(.is-disabled):not(.is-error){border-color:var(--vc-action-secondary--hover)}.vc-time-input__container.vc-time-input-color--destructive:hover:not(.is-disabled):not(.is-error){border-color:color-mix(in srgb,var(--vc-action-danger) 45%,var(--vc-input))}.vc-time-input__container.vc-time-input-color--destructive.is-focused:not(.is-disabled):not(.is-error){border-color:var(--vc-action-danger--hover)}.vc-time-input__container.vc-time-input-color--success:hover:not(.is-disabled):not(.is-error){border-color:color-mix(in srgb,var(--vc-action-success) 45%,var(--vc-input))}.vc-time-input__container.vc-time-input-color--success.is-focused:not(.is-disabled):not(.is-error){border-color:var(--vc-action-success--hover)}.vc-time-input__container.vc-time-input-color--warning:hover:not(.is-disabled):not(.is-error){border-color:color-mix(in srgb,var(--vc-action-warning) 45%,var(--vc-input))}.vc-time-input__container.vc-time-input-color--warning.is-focused:not(.is-disabled):not(.is-error){border-color:var(--vc-action-warning--hover)}.vc-time-input__container.vc-time-input-color--info:hover:not(.is-disabled):not(.is-error){border-color:color-mix(in srgb,var(--vc-action-info) 45%,var(--vc-input))}.vc-time-input__container.vc-time-input-color--info.is-focused:not(.is-disabled):not(.is-error){border-color:var(--vc-action-info--hover)}.vc-time-input__container.is-disabled,.vc-time-input__container.is-disabled .vc-time-input__times,.vc-time-input__container.is-disabled input{background-color:var(--vc-bg-inset)}.vc-time-input__container.is-disabled:hover,.vc-time-input__container.is-disabled input{cursor:not-allowed}.vc-time-input__container.is-error{border-color:var(--vc-action-danger)}.vc-time-input__btn-decrease,.vc-time-input__btn-increase{display:flex;height:100%;width:2rem;flex-shrink:0;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;justify-content:center;background-color:var(--vc-action-secondary--subtle-hover)}.vc-time-input__btn-decrease:hover,.vc-time-input__btn-increase:hover{cursor:pointer}.vc-time-input__btn-decrease .icon,.vc-time-input__btn-increase .icon{color:var(--vc-content-primary)}.vc-time-input__btn-decrease.is-disabled:hover,.vc-time-input__btn-increase.is-disabled:hover{cursor:not-allowed}.vc-time-input__btn-decrease.is-disabled .icon,.vc-time-input__btn-increase.is-disabled .icon{color:var(--vc-content-primary);opacity:.5}.vc-time-input__input-wrapper{height:100%;flex-grow:1;background-color:var(--vc-bg-field)}.vc-time-input__empty-placeholder{display:flex;height:100%;width:100%;align-items:center;justify-content:center;color:var(--vc-content-tertiary)}.vc-time-input__empty-placeholder:hover{cursor:text}.vc-time-input__times{display:flex;height:100%;align-items:center;justify-content:center;padding-left:.75rem;padding-right:.75rem;direction:ltr}.vc-time-input__times .vc-time-input__input{height:100%;width:1.5rem;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--vc-bg-field);padding:.125rem;text-align:center;font-size:.875rem;outline:2px solid transparent;outline-offset:2px}.vc-time-input__times .vc-time-input__input::-webkit-outer-spin-button,.vc-time-input__times .vc-time-input__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.vc-time-input .divider-wrapper{display:inline-flex;height:100%;align-items:center}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '../../assets/components/VcTimeInput/VcTimeInput.css';
|
|
2
|
-
import { defineComponent, ref, reactive, computed, watch, onMounted, openBlock, createElementBlock, normalizeStyle, unref, createElementVNode, normalizeClass, withDirectives, createVNode, toDisplayString, createCommentVNode, withModifiers, vModelText
|
|
2
|
+
import { defineComponent, ref, reactive, computed, watch, onMounted, openBlock, createElementBlock, normalizeStyle, unref, createElementVNode, normalizeClass, withDirectives, createVNode, toDisplayString, createCommentVNode, withModifiers, vModelText } from "vue";
|
|
3
3
|
import _sfc_main$1 from "../VcIcon/VcIcon.vue.mjs";
|
|
4
4
|
import '../../assets/components/VcIcon/VcIcon.css';/* empty css */
|
|
5
|
-
import { Minus,
|
|
5
|
+
import { Minus, Plus } from "@lucide/vue";
|
|
6
6
|
import { longPress } from "../../directives/long-press.mjs";
|
|
7
7
|
import useInputBase from "../../composables/input/useInputBase.mjs";
|
|
8
8
|
import { DEFAULT_COLOR } from "../../enum/inputDefaults.mjs";
|
|
@@ -24,10 +24,6 @@ const _hoisted_7 = {
|
|
|
24
24
|
};
|
|
25
25
|
const _hoisted_8 = { class: "divider" };
|
|
26
26
|
const _hoisted_9 = ["disabled"];
|
|
27
|
-
const _hoisted_10 = {
|
|
28
|
-
key: 0,
|
|
29
|
-
class: "vc-time-input__clearable"
|
|
30
|
-
};
|
|
31
27
|
const CLASS_FOR_COLOR = "vc-time-input-color--";
|
|
32
28
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
33
29
|
...{
|
|
@@ -44,10 +40,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
44
40
|
emptyDataText: { default: "" },
|
|
45
41
|
placeholder: { default: "" },
|
|
46
42
|
allowMouseWheel: { type: Boolean, default: false },
|
|
47
|
-
clearable: { type: Boolean, default: false },
|
|
48
43
|
format: { default: "hh:mm:ss" },
|
|
49
44
|
id: { default: void 0 },
|
|
50
45
|
disabled: { type: Boolean, default: false },
|
|
46
|
+
clearable: { type: Boolean },
|
|
51
47
|
isError: { type: Boolean, default: false },
|
|
52
48
|
emptyText: {},
|
|
53
49
|
prefixIcon: {},
|
|
@@ -57,7 +53,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
57
53
|
prefixIconColor: {},
|
|
58
54
|
color: { default: DEFAULT_COLOR }
|
|
59
55
|
},
|
|
60
|
-
emits: ["input", "update:modelValue"
|
|
56
|
+
emits: ["input", "update:modelValue"],
|
|
61
57
|
setup(__props, { emit: __emit }) {
|
|
62
58
|
const UNIT_OF = {
|
|
63
59
|
hh: "hours",
|
|
@@ -65,11 +61,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
65
61
|
ss: "seconds"
|
|
66
62
|
};
|
|
67
63
|
const vLongPress = { ...longPress };
|
|
68
|
-
const EMPTY_TIME = {
|
|
69
|
-
hours: "",
|
|
70
|
-
minutes: "",
|
|
71
|
-
seconds: ""
|
|
72
|
-
};
|
|
73
64
|
const props = __props;
|
|
74
65
|
const emit = __emit;
|
|
75
66
|
const { maxWidthStyle, inputClasses } = useInputBase(props, {
|
|
@@ -87,45 +78,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
87
78
|
const timeModel = computed(() => {
|
|
88
79
|
return props.modelValue || 0;
|
|
89
80
|
});
|
|
90
|
-
const isEmptyModel = computed(() => {
|
|
91
|
-
return props.clearable && (props.modelValue === void 0 || props.modelValue === null);
|
|
92
|
-
});
|
|
93
|
-
const shownModel = computed(() => {
|
|
94
|
-
return isEmptyModel.value ? void 0 : timeModel.value;
|
|
95
|
-
});
|
|
96
|
-
const isEmpty = computed(() => {
|
|
97
|
-
return props.clearable && !hasTime(timeSettingModel);
|
|
98
|
-
});
|
|
99
|
-
const showClear = computed(() => {
|
|
100
|
-
return !isEmpty.value && !props.disabled;
|
|
101
|
-
});
|
|
102
81
|
const disabledDecreaseBtn = computed(() => {
|
|
103
|
-
if (isEmpty.value) {
|
|
104
|
-
return props.disabled;
|
|
105
|
-
}
|
|
106
82
|
const _time = timeModel.value;
|
|
107
83
|
return _time <= props.minValue || props.disabled;
|
|
108
84
|
});
|
|
109
85
|
const disabledIncreaseBtn = computed(() => {
|
|
110
|
-
if (isEmpty.value) {
|
|
111
|
-
return props.disabled;
|
|
112
|
-
}
|
|
113
86
|
const _time = timeModel.value;
|
|
114
87
|
return props.maxValue !== 0 && _time >= props.maxValue || props.disabled;
|
|
115
88
|
});
|
|
116
89
|
const hideInputs = computed(() => {
|
|
117
|
-
if (props.clearable) {
|
|
118
|
-
return !isFocus.value && isEmpty.value && !!(props.emptyDataText || props.placeholder);
|
|
119
|
-
}
|
|
120
90
|
const _time = props.modelValue || timeModel.value;
|
|
121
91
|
return !!(!isFocus.value && _time === 0 && props.emptyDataText);
|
|
122
92
|
});
|
|
123
93
|
const units = computed(() => props.format.split(":").map((part) => UNIT_OF[part]).filter((unit) => !!unit));
|
|
124
94
|
const lastUnit = computed(() => units.value[units.value.length - 1] ?? "seconds");
|
|
125
95
|
function clearHiddenUnits() {
|
|
126
|
-
if (props.clearable && units.value.every((unit) => timeSettingModel[unit] === "")) {
|
|
127
|
-
return;
|
|
128
|
-
}
|
|
129
96
|
const order = ["hours", "minutes", "seconds"];
|
|
130
97
|
order.slice(order.indexOf(lastUnit.value) + 1).forEach((unit) => {
|
|
131
98
|
timeSettingModel[unit] = "00";
|
|
@@ -209,64 +176,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
209
176
|
seconds: seconds2
|
|
210
177
|
};
|
|
211
178
|
}
|
|
212
|
-
function hasTime(time) {
|
|
213
|
-
return time.hours !== "" || time.minutes !== "" || time.seconds !== "";
|
|
214
|
-
}
|
|
215
|
-
function hasBlankPart(time) {
|
|
216
|
-
return time.hours === "" || time.minutes === "" || time.seconds === "";
|
|
217
|
-
}
|
|
218
|
-
function setEmptyTime() {
|
|
219
|
-
timeSettingModel.hours = EMPTY_TIME.hours;
|
|
220
|
-
timeSettingModel.minutes = EMPTY_TIME.minutes;
|
|
221
|
-
timeSettingModel.seconds = EMPTY_TIME.seconds;
|
|
222
|
-
}
|
|
223
|
-
function fillBlankParts() {
|
|
224
|
-
const zero = setFormatValue(0);
|
|
225
|
-
if (timeSettingModel.hours === "") {
|
|
226
|
-
timeSettingModel.hours = zero;
|
|
227
|
-
}
|
|
228
|
-
if (timeSettingModel.minutes === "") {
|
|
229
|
-
timeSettingModel.minutes = zero;
|
|
230
|
-
}
|
|
231
|
-
if (timeSettingModel.seconds === "") {
|
|
232
|
-
timeSettingModel.seconds = zero;
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
function normaliseTimePart(val, type) {
|
|
236
|
-
if (isEmpty.value) {
|
|
237
|
-
return;
|
|
238
|
-
}
|
|
239
|
-
timeSettingModel[type] = updateTimeInput(val, type);
|
|
240
|
-
if (props.clearable) {
|
|
241
|
-
fillBlankParts();
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
function clampTime(time) {
|
|
245
|
-
if (props.maxValue > 0 && time > props.maxValue) {
|
|
246
|
-
return props.maxValue;
|
|
247
|
-
}
|
|
248
|
-
return Math.max(time, props.minValue, 0);
|
|
249
|
-
}
|
|
250
|
-
function stepFromEmpty(delta) {
|
|
251
|
-
setTimeData(clampTime(delta));
|
|
252
|
-
}
|
|
253
|
-
function onClear() {
|
|
254
|
-
setEmptyTime();
|
|
255
|
-
emit("update:modelValue", void 0);
|
|
256
|
-
emit("input", {
|
|
257
|
-
seconds: void 0,
|
|
258
|
-
string: { ...EMPTY_TIME }
|
|
259
|
-
});
|
|
260
|
-
emit("clear");
|
|
261
|
-
}
|
|
262
179
|
function decrease() {
|
|
263
180
|
if (disabledDecreaseBtn.value) {
|
|
264
181
|
return;
|
|
265
182
|
}
|
|
266
|
-
if (isEmpty.value) {
|
|
267
|
-
stepFromEmpty(-props.step);
|
|
268
|
-
return;
|
|
269
|
-
}
|
|
270
183
|
let _nevTime = timeModel.value - props.step;
|
|
271
184
|
if (_nevTime <= 0) {
|
|
272
185
|
_nevTime = 0;
|
|
@@ -279,10 +192,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
279
192
|
if (disabledIncreaseBtn.value) {
|
|
280
193
|
return;
|
|
281
194
|
}
|
|
282
|
-
if (isEmpty.value) {
|
|
283
|
-
stepFromEmpty(props.step);
|
|
284
|
-
return;
|
|
285
|
-
}
|
|
286
195
|
let _nevTime = timeModel.value + props.step;
|
|
287
196
|
if (props.maxValue > 0 && _nevTime >= props.maxValue) {
|
|
288
197
|
_nevTime = props.maxValue;
|
|
@@ -298,7 +207,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
298
207
|
watch(
|
|
299
208
|
() => timeSettingModel.seconds,
|
|
300
209
|
(val) => {
|
|
301
|
-
|
|
210
|
+
timeSettingModel.seconds = updateTimeInput(val, "seconds");
|
|
302
211
|
},
|
|
303
212
|
{
|
|
304
213
|
immediate: true
|
|
@@ -307,7 +216,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
307
216
|
watch(
|
|
308
217
|
() => timeSettingModel.minutes,
|
|
309
218
|
(val) => {
|
|
310
|
-
|
|
219
|
+
timeSettingModel.minutes = updateTimeInput(val, "minutes");
|
|
311
220
|
},
|
|
312
221
|
{
|
|
313
222
|
immediate: true
|
|
@@ -316,18 +225,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
316
225
|
watch(
|
|
317
226
|
() => timeSettingModel.hours,
|
|
318
227
|
(val) => {
|
|
319
|
-
|
|
228
|
+
timeSettingModel.hours = updateTimeInput(val, "hours");
|
|
320
229
|
},
|
|
321
230
|
{
|
|
322
231
|
immediate: true
|
|
323
232
|
}
|
|
324
233
|
);
|
|
325
234
|
watch(
|
|
326
|
-
|
|
235
|
+
timeModel,
|
|
327
236
|
(val) => {
|
|
328
|
-
if (val
|
|
329
|
-
setEmptyTime();
|
|
330
|
-
} else if (props.maxValue > 0 && val > props.maxValue) {
|
|
237
|
+
if (props.maxValue > 0 && val > props.maxValue) {
|
|
331
238
|
setTimeData(props.maxValue);
|
|
332
239
|
} else if (val < props.minValue) {
|
|
333
240
|
setTimeData(props.minValue);
|
|
@@ -340,9 +247,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
340
247
|
watch(
|
|
341
248
|
timeSettingModel,
|
|
342
249
|
(val) => {
|
|
343
|
-
if (props.clearable && hasBlankPart(val)) {
|
|
344
|
-
return;
|
|
345
|
-
}
|
|
346
250
|
const _seconds = getSecondsOfTime(val);
|
|
347
251
|
emit("update:modelValue", _seconds);
|
|
348
252
|
emit("input", {
|
|
@@ -353,9 +257,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
353
257
|
{ deep: true }
|
|
354
258
|
);
|
|
355
259
|
onMounted(() => {
|
|
356
|
-
if (isEmptyModel.value) {
|
|
357
|
-
return;
|
|
358
|
-
}
|
|
359
260
|
if (timeModel.value < props.minValue) {
|
|
360
261
|
const res = {
|
|
361
262
|
seconds: props.minValue || 0,
|
|
@@ -476,15 +377,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
476
377
|
]) : createCommentVNode("", true)
|
|
477
378
|
], 32)
|
|
478
379
|
]),
|
|
479
|
-
__props.clearable ? (openBlock(), createElementBlock("div", _hoisted_10, [
|
|
480
|
-
showClear.value ? (openBlock(), createBlock(_sfc_main$1, {
|
|
481
|
-
key: 0,
|
|
482
|
-
icon: unref(X),
|
|
483
|
-
class: "icon-xs",
|
|
484
|
-
"data-test": "clear-button",
|
|
485
|
-
onClick: onClear
|
|
486
|
-
}, null, 8, ["icon"])) : createCommentVNode("", true)
|
|
487
|
-
])) : createCommentVNode("", true),
|
|
488
380
|
withDirectives((openBlock(), createElementBlock("div", {
|
|
489
381
|
class: normalizeClass(["vc-time-input__btn-increase", {
|
|
490
382
|
"is-disabled": disabledIncreaseBtn.value
|
package/library/style.css
CHANGED
|
@@ -354,7 +354,7 @@ svg:is(.vc-icon-component){display:inline-block;width:1em;height:1em}
|
|
|
354
354
|
|
|
355
355
|
.vc-tag-input__wrap{width:100%}.vc-tag-input__prefix-icon{display:flex;flex-shrink:0;align-items:center;justify-content:center;padding-left:.25rem;padding-right:.25rem;color:var(--vc-content-brand)}.vc-tag-input__clearable{display:flex;flex-shrink:0;align-items:center;justify-content:center;padding-left:.25rem;padding-right:.25rem}.vc-tag-input__clearable svg{cursor:pointer;color:var(--vc-content-brand);transition:all .3s ease}.vc-tag-input__clearable svg:hover{color:var(--vc-content-brand--hover)}.vc-tag-input__container{display:flex;width:100%;max-width:100%;align-items:center;overflow:hidden;border-radius:var(--vc-radius-control);border-width:1px;border-color:var(--vc-input);padding-left:.75rem;padding-right:.75rem;font-size:.875rem;outline:2px solid transparent;outline-offset:2px;min-height:var(--vc-size-control-md)}.vc-tag-input__container.is-clearable{padding-right:0}.vc-tag-input__container.is-prefix-icon{padding-left:0}.vc-tag-input__wrap:not(.vc-tag-input__wrap--focus) .vc-tag-input__container:hover:not(.is-disabled):not(.is-error){border-color:var(--vc-input--hover)}.vc-tag-input__tags{gap:.375rem;padding-block:3px}.vc-tag-input__wrap.is--compact .vc-tag-input__container{min-height:1.25rem}.vc-tag-input__wrap.is--compact .vc-tag-input__tags{padding-block:1px}.vc-tag-input__wrap.is--compact .vc-tag{line-height:1rem}.vc-tag-input__wrap--focus:not(.vc-tag-input__wrap--disabled):not(.vc-tag-input__wrap--error) .vc-tag-input__container{border-color:var(--vc-action-primary--hover)}.vc-tag-input__wrap--error .vc-tag-input__container{border-color:var(--vc-action-danger)}.vc-tag-input__wrap--disabled .vc-tag-input__container,.vc-tag-input__wrap--disabled input{background-color:var(--vc-bg-inset)}.vc-tag-input__wrap--disabled .vc-tag-input__container:hover,.vc-tag-input__wrap--disabled input:hover{cursor:not-allowed;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.vc-tag-input__wrap--disabled .vc-tag-input__clearable svg{cursor:not-allowed;pointer-events:none}.vc-tag-input__content{flex-grow:1;flex-wrap:wrap;max-width:calc(100% - 32px);overflow:hidden}.vc-tag-input__input-token{flex:1 1 1rem;display:inline-flex}.vc-tag-input__input{border:0 none;outline:0 none;background-color:transparent;margin:0;padding:0;box-shadow:none;border-radius:0;width:100%}.vc-tag-input__prefix-icon .vc-tag-input-icon-color--primary{color:var(--vc-content-brand)}.vc-tag-input__container.vc-tag-input-color--primary .vc-tag-input__clearable svg{color:var(--vc-content-brand)}.vc-tag-input__container.vc-tag-input-color--primary .vc-tag-input__clearable svg:hover{color:var(--vc-content-brand--hover)}.vc-tag-input__wrap:not(.vc-tag-input__wrap--focus) .vc-tag-input__container.vc-tag-input-color--primary:hover:not(.is-disabled):not(.is-error){border-color:color-mix(in srgb,var(--vc-action-primary) 45%,var(--vc-input))}.vc-tag-input__wrap--focus:not(.vc-tag-input__wrap--disabled):not(.vc-tag-input__wrap--error) .vc-tag-input__container.vc-tag-input-color--primary:not(.is-error){border-color:var(--vc-action-primary--hover)}.vc-tag-input__prefix-icon .vc-tag-input-icon-color--secondary{color:var(--vc-content-secondary)}.vc-tag-input__container.vc-tag-input-color--secondary .vc-tag-input__clearable svg{color:var(--vc-content-secondary)}.vc-tag-input__container.vc-tag-input-color--secondary .vc-tag-input__clearable svg:hover{color:var(--vc-content-secondary--hover)}.vc-tag-input__wrap:not(.vc-tag-input__wrap--focus) .vc-tag-input__container.vc-tag-input-color--secondary:hover:not(.is-disabled):not(.is-error){border-color:color-mix(in srgb,var(--vc-action-secondary) 45%,var(--vc-input))}.vc-tag-input__wrap--focus:not(.vc-tag-input__wrap--disabled):not(.vc-tag-input__wrap--error) .vc-tag-input__container.vc-tag-input-color--secondary:not(.is-error){border-color:var(--vc-action-secondary--hover)}.vc-tag-input__prefix-icon .vc-tag-input-icon-color--destructive{color:var(--vc-content-danger)}.vc-tag-input__container.vc-tag-input-color--destructive .vc-tag-input__clearable svg{color:var(--vc-content-danger)}.vc-tag-input__container.vc-tag-input-color--destructive .vc-tag-input__clearable svg:hover{color:var(--vc-content-danger--hover)}.vc-tag-input__wrap:not(.vc-tag-input__wrap--focus) .vc-tag-input__container.vc-tag-input-color--destructive:hover:not(.is-disabled):not(.is-error){border-color:color-mix(in srgb,var(--vc-action-danger) 45%,var(--vc-input))}.vc-tag-input__wrap--focus:not(.vc-tag-input__wrap--disabled):not(.vc-tag-input__wrap--error) .vc-tag-input__container.vc-tag-input-color--destructive:not(.is-error){border-color:var(--vc-action-danger--hover)}.vc-tag-input__prefix-icon .vc-tag-input-icon-color--success{color:var(--vc-content-success)}.vc-tag-input__container.vc-tag-input-color--success .vc-tag-input__clearable svg{color:var(--vc-content-success)}.vc-tag-input__container.vc-tag-input-color--success .vc-tag-input__clearable svg:hover{color:var(--vc-content-success--hover)}.vc-tag-input__wrap:not(.vc-tag-input__wrap--focus) .vc-tag-input__container.vc-tag-input-color--success:hover:not(.is-disabled):not(.is-error){border-color:color-mix(in srgb,var(--vc-action-success) 45%,var(--vc-input))}.vc-tag-input__wrap--focus:not(.vc-tag-input__wrap--disabled):not(.vc-tag-input__wrap--error) .vc-tag-input__container.vc-tag-input-color--success:not(.is-error){border-color:var(--vc-action-success--hover)}.vc-tag-input__prefix-icon .vc-tag-input-icon-color--warning{color:var(--vc-content-warning)}.vc-tag-input__container.vc-tag-input-color--warning .vc-tag-input__clearable svg{color:var(--vc-content-warning)}.vc-tag-input__container.vc-tag-input-color--warning .vc-tag-input__clearable svg:hover{color:var(--vc-content-warning--hover)}.vc-tag-input__wrap:not(.vc-tag-input__wrap--focus) .vc-tag-input__container.vc-tag-input-color--warning:hover:not(.is-disabled):not(.is-error){border-color:color-mix(in srgb,var(--vc-action-warning) 45%,var(--vc-input))}.vc-tag-input__wrap--focus:not(.vc-tag-input__wrap--disabled):not(.vc-tag-input__wrap--error) .vc-tag-input__container.vc-tag-input-color--warning:not(.is-error){border-color:var(--vc-action-warning--hover)}.vc-tag-input__prefix-icon .vc-tag-input-icon-color--info{color:var(--vc-content-info)}.vc-tag-input__container.vc-tag-input-color--info .vc-tag-input__clearable svg{color:var(--vc-content-info)}.vc-tag-input__container.vc-tag-input-color--info .vc-tag-input__clearable svg:hover{color:var(--vc-content-info--hover)}.vc-tag-input__wrap:not(.vc-tag-input__wrap--focus) .vc-tag-input__container.vc-tag-input-color--info:hover:not(.is-disabled):not(.is-error){border-color:color-mix(in srgb,var(--vc-action-info) 45%,var(--vc-input))}.vc-tag-input__wrap--focus:not(.vc-tag-input__wrap--disabled):not(.vc-tag-input__wrap--error) .vc-tag-input__container.vc-tag-input-color--info:not(.is-error){border-color:var(--vc-action-info--hover)}[dir=rtl] .vc-tag-input__container{padding-left:.75rem;padding-right:.75rem}[dir=rtl] .vc-tag-input__container.is-clearable{padding-left:0}[dir=rtl] .vc-tag-input__container.is-prefix-icon{padding-right:0}
|
|
356
356
|
|
|
357
|
-
.vc-time-input{width:100%}.vc-time-input__container{position:relative;display:flex;align-items:center;justify-content:space-between;overflow:hidden;border-radius:var(--vc-radius-control);border-width:1px;border-color:var(--vc-input);font-size:.875rem;outline:2px solid transparent;outline-offset:2px;height:var(--vc-size-control-md)}.vc-time-input__container:hover:not(.is-disabled):not(.is-error){border-color:var(--vc-input--hover)}.vc-time-input__container.vc-time-input-color--primary:hover:not(.is-disabled):not(.is-error){border-color:color-mix(in srgb,var(--vc-action-primary) 45%,var(--vc-input))}.vc-time-input__container.vc-time-input-color--primary.is-focused:not(.is-disabled):not(.is-error){border-color:var(--vc-action-primary--hover)}.vc-time-input__container.vc-time-input-color--
|
|
357
|
+
.vc-time-input{width:100%}.vc-time-input__container{position:relative;display:flex;align-items:center;justify-content:space-between;overflow:hidden;border-radius:var(--vc-radius-control);border-width:1px;border-color:var(--vc-input);font-size:.875rem;outline:2px solid transparent;outline-offset:2px;height:var(--vc-size-control-md)}.vc-time-input__container:hover:not(.is-disabled):not(.is-error){border-color:var(--vc-input--hover)}.vc-time-input__container.vc-time-input-color--primary:hover:not(.is-disabled):not(.is-error){border-color:color-mix(in srgb,var(--vc-action-primary) 45%,var(--vc-input))}.vc-time-input__container.vc-time-input-color--primary.is-focused:not(.is-disabled):not(.is-error){border-color:var(--vc-action-primary--hover)}.vc-time-input__container.vc-time-input-color--secondary:hover:not(.is-disabled):not(.is-error){border-color:color-mix(in srgb,var(--vc-action-secondary) 45%,var(--vc-input))}.vc-time-input__container.vc-time-input-color--secondary.is-focused:not(.is-disabled):not(.is-error){border-color:var(--vc-action-secondary--hover)}.vc-time-input__container.vc-time-input-color--destructive:hover:not(.is-disabled):not(.is-error){border-color:color-mix(in srgb,var(--vc-action-danger) 45%,var(--vc-input))}.vc-time-input__container.vc-time-input-color--destructive.is-focused:not(.is-disabled):not(.is-error){border-color:var(--vc-action-danger--hover)}.vc-time-input__container.vc-time-input-color--success:hover:not(.is-disabled):not(.is-error){border-color:color-mix(in srgb,var(--vc-action-success) 45%,var(--vc-input))}.vc-time-input__container.vc-time-input-color--success.is-focused:not(.is-disabled):not(.is-error){border-color:var(--vc-action-success--hover)}.vc-time-input__container.vc-time-input-color--warning:hover:not(.is-disabled):not(.is-error){border-color:color-mix(in srgb,var(--vc-action-warning) 45%,var(--vc-input))}.vc-time-input__container.vc-time-input-color--warning.is-focused:not(.is-disabled):not(.is-error){border-color:var(--vc-action-warning--hover)}.vc-time-input__container.vc-time-input-color--info:hover:not(.is-disabled):not(.is-error){border-color:color-mix(in srgb,var(--vc-action-info) 45%,var(--vc-input))}.vc-time-input__container.vc-time-input-color--info.is-focused:not(.is-disabled):not(.is-error){border-color:var(--vc-action-info--hover)}.vc-time-input__container.is-disabled,.vc-time-input__container.is-disabled .vc-time-input__times,.vc-time-input__container.is-disabled input{background-color:var(--vc-bg-inset)}.vc-time-input__container.is-disabled:hover,.vc-time-input__container.is-disabled input{cursor:not-allowed}.vc-time-input__container.is-error{border-color:var(--vc-action-danger)}.vc-time-input__btn-decrease,.vc-time-input__btn-increase{display:flex;height:100%;width:2rem;flex-shrink:0;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;justify-content:center;background-color:var(--vc-action-secondary--subtle-hover)}.vc-time-input__btn-decrease:hover,.vc-time-input__btn-increase:hover{cursor:pointer}.vc-time-input__btn-decrease .icon,.vc-time-input__btn-increase .icon{color:var(--vc-content-primary)}.vc-time-input__btn-decrease.is-disabled:hover,.vc-time-input__btn-increase.is-disabled:hover{cursor:not-allowed}.vc-time-input__btn-decrease.is-disabled .icon,.vc-time-input__btn-increase.is-disabled .icon{color:var(--vc-content-primary);opacity:.5}.vc-time-input__input-wrapper{height:100%;flex-grow:1;background-color:var(--vc-bg-field)}.vc-time-input__empty-placeholder{display:flex;height:100%;width:100%;align-items:center;justify-content:center;color:var(--vc-content-tertiary)}.vc-time-input__empty-placeholder:hover{cursor:text}.vc-time-input__times{display:flex;height:100%;align-items:center;justify-content:center;padding-left:.75rem;padding-right:.75rem;direction:ltr}.vc-time-input__times .vc-time-input__input{height:100%;width:1.5rem;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--vc-bg-field);padding:.125rem;text-align:center;font-size:.875rem;outline:2px solid transparent;outline-offset:2px}.vc-time-input__times .vc-time-input__input::-webkit-outer-spin-button,.vc-time-input__times .vc-time-input__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.vc-time-input .divider-wrapper{display:inline-flex;height:100%;align-items:center}
|
|
358
358
|
|
|
359
359
|
.vc-tool-call-value--text{margin:0;overflow:auto;white-space:pre-wrap;overflow-wrap:break-word;border-radius:var(--vc-radius-inner);border-width:1px;border-color:var(--vc-border);background-color:var(--vc-bg-page);padding:.5rem .75rem;font-size:.75rem;color:var(--vc-content-primary);font-family:inherit;text-align:start}.vc-tool-call-value--empty{font-size:.75rem;color:var(--vc-content-disabled)}
|
|
360
360
|
|
package/library/style.css.br
CHANGED
|
Binary file
|
package/library/style.css.gz
CHANGED
|
Binary file
|
|
@@ -6,11 +6,7 @@ type TimeSettingsType = {
|
|
|
6
6
|
seconds: string;
|
|
7
7
|
};
|
|
8
8
|
interface ITimeInputProps extends IVcBaseInputProps {
|
|
9
|
-
|
|
10
|
-
* @description Time in seconds. Without `clearable`, `undefined` and `null` show as 0;
|
|
11
|
-
* with it, they are the empty field.
|
|
12
|
-
*/
|
|
13
|
-
modelValue?: number | null;
|
|
9
|
+
modelValue?: number;
|
|
14
10
|
step?: number;
|
|
15
11
|
minValue?: number;
|
|
16
12
|
maxValue?: number;
|
|
@@ -19,11 +15,6 @@ interface ITimeInputProps extends IVcBaseInputProps {
|
|
|
19
15
|
emptyDataText?: string;
|
|
20
16
|
placeholder?: string;
|
|
21
17
|
allowMouseWheel?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* @description Lets the field be empty: an empty model (`undefined` or `null`) shows the
|
|
24
|
-
* placeholder instead of 0, and a clear button empties the field and emits `undefined`
|
|
25
|
-
*/
|
|
26
|
-
clearable?: boolean;
|
|
27
18
|
/**
|
|
28
19
|
* @description Which units the input shows. The model is always seconds; the first unit has no
|
|
29
20
|
* upper limit (`mm:ss` shows 90:00), the ones after it go up to 59. Default `hh:mm:ss`.
|
|
@@ -41,7 +32,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
41
32
|
placeholder: string;
|
|
42
33
|
dataTestName: string;
|
|
43
34
|
allowMouseWheel: boolean;
|
|
44
|
-
clearable: boolean;
|
|
45
35
|
format: string;
|
|
46
36
|
disabled: boolean;
|
|
47
37
|
isError: boolean;
|
|
@@ -49,11 +39,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
49
39
|
color: string;
|
|
50
40
|
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
51
41
|
input: (val: {
|
|
52
|
-
seconds: number
|
|
42
|
+
seconds: number;
|
|
53
43
|
string: TimeSettingsType;
|
|
54
44
|
}) => void;
|
|
55
|
-
"update:modelValue": (seconds: number
|
|
56
|
-
clear: () => void;
|
|
45
|
+
"update:modelValue": (seconds: number) => void;
|
|
57
46
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ITimeInputProps>, {
|
|
58
47
|
id: undefined;
|
|
59
48
|
modelValue: undefined;
|
|
@@ -65,25 +54,22 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
65
54
|
placeholder: string;
|
|
66
55
|
dataTestName: string;
|
|
67
56
|
allowMouseWheel: boolean;
|
|
68
|
-
clearable: boolean;
|
|
69
57
|
format: string;
|
|
70
58
|
disabled: boolean;
|
|
71
59
|
isError: boolean;
|
|
72
60
|
name: undefined;
|
|
73
61
|
color: string;
|
|
74
62
|
}>>> & Readonly<{
|
|
75
|
-
"onUpdate:modelValue"?: ((seconds: number
|
|
63
|
+
"onUpdate:modelValue"?: ((seconds: number) => any) | undefined;
|
|
76
64
|
onInput?: ((val: {
|
|
77
|
-
seconds: number
|
|
65
|
+
seconds: number;
|
|
78
66
|
string: TimeSettingsType;
|
|
79
67
|
}) => any) | undefined;
|
|
80
|
-
onClear?: (() => any) | undefined;
|
|
81
68
|
}>, {
|
|
82
69
|
id: string;
|
|
83
70
|
disabled: boolean;
|
|
84
|
-
clearable: boolean;
|
|
85
71
|
isError: boolean;
|
|
86
|
-
modelValue: number
|
|
72
|
+
modelValue: number;
|
|
87
73
|
dataTestName: string;
|
|
88
74
|
name: string;
|
|
89
75
|
placeholder: string;
|