@idds/vue 1.5.3 → 1.5.6
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/dist/components/DatePicker.vue.d.ts +3 -1
- package/dist/components/DatePicker.vue.d.ts.map +1 -1
- package/dist/components/TimePicker.vue.d.ts +6 -0
- package/dist/components/TimePicker.vue.d.ts.map +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +20 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +126 -101
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -1723,8 +1723,8 @@ const _hoisted_11$a = {
|
|
|
1723
1723
|
key: 2,
|
|
1724
1724
|
class: "ina-card__media"
|
|
1725
1725
|
};
|
|
1726
|
-
const _hoisted_12$
|
|
1727
|
-
const _hoisted_13$
|
|
1726
|
+
const _hoisted_12$9 = ["src", "alt"];
|
|
1727
|
+
const _hoisted_13$7 = {
|
|
1728
1728
|
key: 3,
|
|
1729
1729
|
class: "ina-card__media"
|
|
1730
1730
|
};
|
|
@@ -1889,10 +1889,10 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
1889
1889
|
key: 0,
|
|
1890
1890
|
src: __props.mediaSrc,
|
|
1891
1891
|
alt: __props.mediaAlt || "Card media"
|
|
1892
|
-
}, null, 8, _hoisted_12$
|
|
1892
|
+
}, null, 8, _hoisted_12$9)) : createCommentVNode("", true)
|
|
1893
1893
|
])
|
|
1894
1894
|
])) : createCommentVNode("", true),
|
|
1895
|
-
__props.variant === "horizontal" && computedMediaPosition.value === "left" ? (openBlock(), createElementBlock("div", _hoisted_13$
|
|
1895
|
+
__props.variant === "horizontal" && computedMediaPosition.value === "left" ? (openBlock(), createElementBlock("div", _hoisted_13$7, [
|
|
1896
1896
|
renderSlot(_ctx.$slots, "media", {}, () => [
|
|
1897
1897
|
__props.mediaSrc ? (openBlock(), createElementBlock("img", {
|
|
1898
1898
|
key: 0,
|
|
@@ -3477,11 +3477,11 @@ const _hoisted_8$c = { class: "ina-file-upload__description" };
|
|
|
3477
3477
|
const _hoisted_9$9 = ["disabled"];
|
|
3478
3478
|
const _hoisted_10$9 = { class: "ina-file-upload__files" };
|
|
3479
3479
|
const _hoisted_11$9 = { class: "ina-file-upload__file-indicator" };
|
|
3480
|
-
const _hoisted_12$
|
|
3480
|
+
const _hoisted_12$8 = {
|
|
3481
3481
|
key: 0,
|
|
3482
3482
|
class: "ina-file-upload__file-icon-wrapper ina-file-upload__file-icon-wrapper--uploading"
|
|
3483
3483
|
};
|
|
3484
|
-
const _hoisted_13$
|
|
3484
|
+
const _hoisted_13$6 = {
|
|
3485
3485
|
key: 1,
|
|
3486
3486
|
class: "ina-file-upload__file-icon-wrapper ina-file-upload__file-icon-wrapper--success"
|
|
3487
3487
|
};
|
|
@@ -3792,12 +3792,12 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
3792
3792
|
}])
|
|
3793
3793
|
}, [
|
|
3794
3794
|
createElementVNode("div", _hoisted_11$9, [
|
|
3795
|
-
uploadedFile.status === "uploading" ? (openBlock(), createElementBlock("div", _hoisted_12$
|
|
3795
|
+
uploadedFile.status === "uploading" ? (openBlock(), createElementBlock("div", _hoisted_12$8, [
|
|
3796
3796
|
createVNode(unref(IconLoader2), {
|
|
3797
3797
|
size: 20,
|
|
3798
3798
|
class: "ina-file-upload__file-icon--spinning"
|
|
3799
3799
|
})
|
|
3800
|
-
])) : uploadedFile.status === "success" ? (openBlock(), createElementBlock("div", _hoisted_13$
|
|
3800
|
+
])) : uploadedFile.status === "success" ? (openBlock(), createElementBlock("div", _hoisted_13$6, [
|
|
3801
3801
|
createVNode(unref(IconCircleCheck), {
|
|
3802
3802
|
size: 20,
|
|
3803
3803
|
stroke: "2"
|
|
@@ -4762,7 +4762,7 @@ const _hoisted_10$8 = {
|
|
|
4762
4762
|
class: "ina-pagination__page-size-container"
|
|
4763
4763
|
};
|
|
4764
4764
|
const _hoisted_11$8 = ["value", "disabled"];
|
|
4765
|
-
const _hoisted_12$
|
|
4765
|
+
const _hoisted_12$7 = ["value"];
|
|
4766
4766
|
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
4767
4767
|
__name: "Pagination",
|
|
4768
4768
|
props: {
|
|
@@ -5013,7 +5013,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
5013
5013
|
return openBlock(), createElementBlock("option", {
|
|
5014
5014
|
key: `${opt}-${index2}`,
|
|
5015
5015
|
value: opt
|
|
5016
|
-
}, toDisplayString(opt), 9, _hoisted_12$
|
|
5016
|
+
}, toDisplayString(opt), 9, _hoisted_12$7);
|
|
5017
5017
|
}), 128))
|
|
5018
5018
|
], 42, _hoisted_11$8)
|
|
5019
5019
|
])) : createCommentVNode("", true)
|
|
@@ -5491,8 +5491,8 @@ const _hoisted_8$7 = {
|
|
|
5491
5491
|
const _hoisted_9$6 = { class: "ina-phone-input__country-search" };
|
|
5492
5492
|
const _hoisted_10$6 = { class: "ina-phone-input__country-list" };
|
|
5493
5493
|
const _hoisted_11$6 = ["onClick"];
|
|
5494
|
-
const _hoisted_12$
|
|
5495
|
-
const _hoisted_13$
|
|
5494
|
+
const _hoisted_12$6 = { class: "ina-phone-input__country-flag" };
|
|
5495
|
+
const _hoisted_13$5 = { class: "ina-phone-input__country-name" };
|
|
5496
5496
|
const _hoisted_14$3 = { class: "ina-phone-input__country-dial-code" };
|
|
5497
5497
|
const _hoisted_15$3 = ["id", "placeholder", "disabled", "readonly"];
|
|
5498
5498
|
const _hoisted_16$2 = { key: 1 };
|
|
@@ -5737,8 +5737,8 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
5737
5737
|
class: normalizeClass(getCountryClasses(country)),
|
|
5738
5738
|
onClick: ($event) => selectCountry(country)
|
|
5739
5739
|
}, [
|
|
5740
|
-
createElementVNode("span", _hoisted_12$
|
|
5741
|
-
createElementVNode("span", _hoisted_13$
|
|
5740
|
+
createElementVNode("span", _hoisted_12$6, toDisplayString(country.flag), 1),
|
|
5741
|
+
createElementVNode("span", _hoisted_13$5, toDisplayString(country.name), 1),
|
|
5742
5742
|
createElementVNode("span", _hoisted_14$3, toDisplayString(country.dialCode), 1)
|
|
5743
5743
|
], 10, _hoisted_11$6);
|
|
5744
5744
|
}), 128))
|
|
@@ -6008,7 +6008,7 @@ const _hoisted_8$6 = ["disabled"];
|
|
|
6008
6008
|
const _hoisted_9$5 = { class: "ina-year-picker__decade-range" };
|
|
6009
6009
|
const _hoisted_10$5 = ["disabled"];
|
|
6010
6010
|
const _hoisted_11$5 = { class: "ina-year-picker__grid" };
|
|
6011
|
-
const _hoisted_12$
|
|
6011
|
+
const _hoisted_12$5 = ["disabled", "onClick", "onMouseenter"];
|
|
6012
6012
|
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
6013
6013
|
__name: "YearPicker",
|
|
6014
6014
|
props: {
|
|
@@ -6371,7 +6371,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
6371
6371
|
onClick: ($event) => selectYear(year),
|
|
6372
6372
|
onMouseenter: ($event) => !props.disabled && (hoveredYear.value = year),
|
|
6373
6373
|
onMouseleave: _cache[0] || (_cache[0] = ($event) => hoveredYear.value = null)
|
|
6374
|
-
}, toDisplayString(year), 43, _hoisted_12$
|
|
6374
|
+
}, toDisplayString(year), 43, _hoisted_12$5);
|
|
6375
6375
|
}), 128))
|
|
6376
6376
|
])
|
|
6377
6377
|
], 6)) : createCommentVNode("", true)
|
|
@@ -6389,38 +6389,39 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
6389
6389
|
});
|
|
6390
6390
|
const YearPicker = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-6e7c1cdf"]]);
|
|
6391
6391
|
const _hoisted_1$g = ["for"];
|
|
6392
|
-
const _hoisted_2$g = {
|
|
6393
|
-
|
|
6392
|
+
const _hoisted_2$g = { key: 1 };
|
|
6393
|
+
const _hoisted_3$e = {
|
|
6394
|
+
key: 2,
|
|
6394
6395
|
class: "ina-date-picker__required"
|
|
6395
6396
|
};
|
|
6396
|
-
const
|
|
6397
|
-
const
|
|
6397
|
+
const _hoisted_4$a = ["id", "disabled"];
|
|
6398
|
+
const _hoisted_5$9 = {
|
|
6398
6399
|
key: 0,
|
|
6399
6400
|
class: "ina-date-picker__calendar-container"
|
|
6400
6401
|
};
|
|
6401
|
-
const
|
|
6402
|
-
const
|
|
6403
|
-
const _hoisted_7$7 = { class: "ina-date-picker__dropdown-container" };
|
|
6402
|
+
const _hoisted_6$7 = { class: "ina-date-picker__calendar-header" };
|
|
6403
|
+
const _hoisted_7$7 = { class: "ina-date-picker__header-controls" };
|
|
6404
6404
|
const _hoisted_8$5 = { class: "ina-date-picker__dropdown-container" };
|
|
6405
|
-
const _hoisted_9$4 = { class: "ina-date-
|
|
6406
|
-
const _hoisted_10$4 =
|
|
6407
|
-
const _hoisted_11$4 =
|
|
6408
|
-
const _hoisted_12$
|
|
6409
|
-
const _hoisted_13$
|
|
6410
|
-
const _hoisted_14$2 = { class: "ina-date-
|
|
6411
|
-
const _hoisted_15$2 = { class: "ina-date-
|
|
6405
|
+
const _hoisted_9$4 = { class: "ina-date-picker__dropdown-container" };
|
|
6406
|
+
const _hoisted_10$4 = { class: "ina-date-picker__calendar-grid" };
|
|
6407
|
+
const _hoisted_11$4 = ["disabled", "onClick"];
|
|
6408
|
+
const _hoisted_12$4 = { class: "ina-date-picker__day-number" };
|
|
6409
|
+
const _hoisted_13$4 = { class: "ina-date-picker__calendar-container" };
|
|
6410
|
+
const _hoisted_14$2 = { class: "ina-date-picker__calendar-header" };
|
|
6411
|
+
const _hoisted_15$2 = { class: "ina-date-picker__header-controls" };
|
|
6412
6412
|
const _hoisted_16$1 = { class: "ina-date-picker__dropdown-container" };
|
|
6413
|
-
const _hoisted_17$1 = { class: "ina-date-
|
|
6414
|
-
const _hoisted_18$1 =
|
|
6415
|
-
const _hoisted_19$1 =
|
|
6416
|
-
const _hoisted_20$1 = { class: "ina-date-
|
|
6417
|
-
const _hoisted_21$1 = { class: "ina-date-
|
|
6418
|
-
const _hoisted_22 = { class: "ina-date-picker__next-month-
|
|
6419
|
-
const _hoisted_23 = { class: "ina-date-
|
|
6413
|
+
const _hoisted_17$1 = { class: "ina-date-picker__dropdown-container" };
|
|
6414
|
+
const _hoisted_18$1 = { class: "ina-date-picker__calendar-grid" };
|
|
6415
|
+
const _hoisted_19$1 = ["disabled", "onClick"];
|
|
6416
|
+
const _hoisted_20$1 = { class: "ina-date-picker__day-number" };
|
|
6417
|
+
const _hoisted_21$1 = { class: "ina-date-picker__calendar" };
|
|
6418
|
+
const _hoisted_22 = { class: "ina-date-picker__next-month-header" };
|
|
6419
|
+
const _hoisted_23 = { class: "ina-date-picker__next-month-controls" };
|
|
6420
6420
|
const _hoisted_24 = { class: "ina-date-picker__dropdown-container" };
|
|
6421
|
-
const _hoisted_25 = { class: "ina-date-
|
|
6422
|
-
const _hoisted_26 =
|
|
6423
|
-
const _hoisted_27 =
|
|
6421
|
+
const _hoisted_25 = { class: "ina-date-picker__dropdown-container" };
|
|
6422
|
+
const _hoisted_26 = { class: "ina-date-picker__calendar-grid" };
|
|
6423
|
+
const _hoisted_27 = ["disabled", "onClick"];
|
|
6424
|
+
const _hoisted_28 = { class: "ina-date-picker__day-number" };
|
|
6424
6425
|
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
6425
6426
|
__name: "DatePicker",
|
|
6426
6427
|
props: {
|
|
@@ -6540,6 +6541,11 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
6540
6541
|
selectedDisplay.value ? "ina-date-picker__trigger-text--value" : "ina-date-picker__trigger-text--placeholder"
|
|
6541
6542
|
);
|
|
6542
6543
|
});
|
|
6544
|
+
const labelComponent = computed(() => {
|
|
6545
|
+
if (!props.label) return null;
|
|
6546
|
+
if (typeof props.label === "string") return null;
|
|
6547
|
+
return props.label;
|
|
6548
|
+
});
|
|
6543
6549
|
const validatedTriggerWidth = ref(props.triggerWidth);
|
|
6544
6550
|
const validateTriggerWidth = () => {
|
|
6545
6551
|
var _a;
|
|
@@ -7199,8 +7205,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
7199
7205
|
for: triggerId.value,
|
|
7200
7206
|
class: "ina-date-picker__label"
|
|
7201
7207
|
}, [
|
|
7202
|
-
|
|
7203
|
-
__props.required ? (openBlock(), createElementBlock("span",
|
|
7208
|
+
labelComponent.value ? (openBlock(), createBlock(resolveDynamicComponent(labelComponent.value), { key: 0 })) : __props.label && typeof __props.label === "string" ? (openBlock(), createElementBlock("span", _hoisted_2$g, toDisplayString(__props.label), 1)) : createCommentVNode("", true),
|
|
7209
|
+
__props.required ? (openBlock(), createElementBlock("span", _hoisted_3$e, "*")) : createCommentVNode("", true)
|
|
7204
7210
|
], 8, _hoisted_1$g)) : createCommentVNode("", true),
|
|
7205
7211
|
createElementVNode("button", {
|
|
7206
7212
|
id: triggerId.value,
|
|
@@ -7231,7 +7237,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
7231
7237
|
class: "ina-date-picker__clear-icon"
|
|
7232
7238
|
})
|
|
7233
7239
|
])) : createCommentVNode("", true)
|
|
7234
|
-
], 46,
|
|
7240
|
+
], 46, _hoisted_4$a),
|
|
7235
7241
|
isOpen.value && !__props.disabled && !__props.readonly ? (openBlock(), createElementBlock("div", {
|
|
7236
7242
|
key: 1,
|
|
7237
7243
|
ref_key: "panelRef",
|
|
@@ -7242,8 +7248,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
7242
7248
|
createElementVNode("div", {
|
|
7243
7249
|
class: normalizeClass(panelContentClasses.value)
|
|
7244
7250
|
}, [
|
|
7245
|
-
__props.mode === "single" ? (openBlock(), createElementBlock("div",
|
|
7246
|
-
createElementVNode("div",
|
|
7251
|
+
__props.mode === "single" ? (openBlock(), createElementBlock("div", _hoisted_5$9, [
|
|
7252
|
+
createElementVNode("div", _hoisted_6$7, [
|
|
7247
7253
|
createElementVNode("button", {
|
|
7248
7254
|
type: "button",
|
|
7249
7255
|
class: "ina-date-picker__nav-button",
|
|
@@ -7254,8 +7260,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
7254
7260
|
class: "ina-date-picker__nav-icon"
|
|
7255
7261
|
})
|
|
7256
7262
|
]),
|
|
7257
|
-
createElementVNode("div",
|
|
7258
|
-
createElementVNode("div",
|
|
7263
|
+
createElementVNode("div", _hoisted_7$7, [
|
|
7264
|
+
createElementVNode("div", _hoisted_8$5, [
|
|
7259
7265
|
createVNode(MonthPicker, {
|
|
7260
7266
|
"model-value": currentMonth.value,
|
|
7261
7267
|
disabled: __props.disabled,
|
|
@@ -7264,7 +7270,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
7264
7270
|
"onUpdate:modelValue": handleMonthChange
|
|
7265
7271
|
}, null, 8, ["model-value", "disabled", "readonly"])
|
|
7266
7272
|
]),
|
|
7267
|
-
createElementVNode("div",
|
|
7273
|
+
createElementVNode("div", _hoisted_9$4, [
|
|
7268
7274
|
createVNode(YearPicker, {
|
|
7269
7275
|
"model-value": currentYear.value,
|
|
7270
7276
|
"min-year": 1900,
|
|
@@ -7288,7 +7294,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
7288
7294
|
})
|
|
7289
7295
|
])
|
|
7290
7296
|
]),
|
|
7291
|
-
createElementVNode("div",
|
|
7297
|
+
createElementVNode("div", _hoisted_10$4, [
|
|
7292
7298
|
(openBlock(), createElementBlock(Fragment, null, renderList(dayNames, (day) => {
|
|
7293
7299
|
return createElementVNode("div", {
|
|
7294
7300
|
key: `h-${day}`,
|
|
@@ -7303,13 +7309,13 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
7303
7309
|
disabled: isDayDisabled(day.date),
|
|
7304
7310
|
onClick: ($event) => selectDay(day)
|
|
7305
7311
|
}, [
|
|
7306
|
-
createElementVNode("span",
|
|
7307
|
-
], 10,
|
|
7312
|
+
createElementVNode("span", _hoisted_12$4, toDisplayString(day.date.getDate()), 1)
|
|
7313
|
+
], 10, _hoisted_11$4);
|
|
7308
7314
|
}), 128))
|
|
7309
7315
|
])
|
|
7310
7316
|
])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
7311
|
-
createElementVNode("div",
|
|
7312
|
-
createElementVNode("div",
|
|
7317
|
+
createElementVNode("div", _hoisted_13$4, [
|
|
7318
|
+
createElementVNode("div", _hoisted_14$2, [
|
|
7313
7319
|
createElementVNode("button", {
|
|
7314
7320
|
type: "button",
|
|
7315
7321
|
class: "ina-date-picker__nav-button",
|
|
@@ -7320,8 +7326,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
7320
7326
|
class: "ina-date-picker__nav-icon"
|
|
7321
7327
|
})
|
|
7322
7328
|
]),
|
|
7323
|
-
createElementVNode("div",
|
|
7324
|
-
createElementVNode("div",
|
|
7329
|
+
createElementVNode("div", _hoisted_15$2, [
|
|
7330
|
+
createElementVNode("div", _hoisted_16$1, [
|
|
7325
7331
|
createVNode(MonthPicker, {
|
|
7326
7332
|
"model-value": currentMonth.value,
|
|
7327
7333
|
disabled: __props.disabled,
|
|
@@ -7330,7 +7336,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
7330
7336
|
"onUpdate:modelValue": handleMonthChange
|
|
7331
7337
|
}, null, 8, ["model-value", "disabled", "readonly"])
|
|
7332
7338
|
]),
|
|
7333
|
-
createElementVNode("div",
|
|
7339
|
+
createElementVNode("div", _hoisted_17$1, [
|
|
7334
7340
|
createVNode(YearPicker, {
|
|
7335
7341
|
"model-value": currentYear.value,
|
|
7336
7342
|
"min-year": 1900,
|
|
@@ -7354,7 +7360,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
7354
7360
|
})
|
|
7355
7361
|
])
|
|
7356
7362
|
]),
|
|
7357
|
-
createElementVNode("div",
|
|
7363
|
+
createElementVNode("div", _hoisted_18$1, [
|
|
7358
7364
|
(openBlock(), createElementBlock(Fragment, null, renderList(dayNames, (day) => {
|
|
7359
7365
|
return createElementVNode("div", {
|
|
7360
7366
|
key: `lh-${day}`,
|
|
@@ -7369,13 +7375,13 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
7369
7375
|
disabled: isDayDisabled(day.date),
|
|
7370
7376
|
onClick: ($event) => selectDay(day)
|
|
7371
7377
|
}, [
|
|
7372
|
-
createElementVNode("span",
|
|
7373
|
-
], 10,
|
|
7378
|
+
createElementVNode("span", _hoisted_20$1, toDisplayString(day.date.getDate()), 1)
|
|
7379
|
+
], 10, _hoisted_19$1);
|
|
7374
7380
|
}), 128))
|
|
7375
7381
|
])
|
|
7376
7382
|
]),
|
|
7377
|
-
createElementVNode("div",
|
|
7378
|
-
createElementVNode("div",
|
|
7383
|
+
createElementVNode("div", _hoisted_21$1, [
|
|
7384
|
+
createElementVNode("div", _hoisted_22, [
|
|
7379
7385
|
createElementVNode("button", {
|
|
7380
7386
|
type: "button",
|
|
7381
7387
|
class: "ina-date-picker__nav-button",
|
|
@@ -7386,8 +7392,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
7386
7392
|
class: "ina-date-picker__nav-icon"
|
|
7387
7393
|
})
|
|
7388
7394
|
]),
|
|
7389
|
-
createElementVNode("div",
|
|
7390
|
-
createElementVNode("div",
|
|
7395
|
+
createElementVNode("div", _hoisted_23, [
|
|
7396
|
+
createElementVNode("div", _hoisted_24, [
|
|
7391
7397
|
createVNode(MonthPicker, {
|
|
7392
7398
|
"model-value": nextMonth.value,
|
|
7393
7399
|
disabled: __props.disabled,
|
|
@@ -7396,7 +7402,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
7396
7402
|
"onUpdate:modelValue": handleNextMonthChange
|
|
7397
7403
|
}, null, 8, ["model-value", "disabled", "readonly"])
|
|
7398
7404
|
]),
|
|
7399
|
-
createElementVNode("div",
|
|
7405
|
+
createElementVNode("div", _hoisted_25, [
|
|
7400
7406
|
createVNode(YearPicker, {
|
|
7401
7407
|
"model-value": nextYear.value,
|
|
7402
7408
|
"min-year": 1900,
|
|
@@ -7420,7 +7426,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
7420
7426
|
})
|
|
7421
7427
|
])
|
|
7422
7428
|
]),
|
|
7423
|
-
createElementVNode("div",
|
|
7429
|
+
createElementVNode("div", _hoisted_26, [
|
|
7424
7430
|
(openBlock(), createElementBlock(Fragment, null, renderList(dayNames, (day) => {
|
|
7425
7431
|
return createElementVNode("div", {
|
|
7426
7432
|
key: `rh-${day}`,
|
|
@@ -7435,8 +7441,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
7435
7441
|
disabled: isDayDisabled(day.date),
|
|
7436
7442
|
onClick: ($event) => selectDay(day)
|
|
7437
7443
|
}, [
|
|
7438
|
-
createElementVNode("span",
|
|
7439
|
-
], 10,
|
|
7444
|
+
createElementVNode("span", _hoisted_28, toDisplayString(day.date.getDate()), 1)
|
|
7445
|
+
], 10, _hoisted_27);
|
|
7440
7446
|
}), 128))
|
|
7441
7447
|
])
|
|
7442
7448
|
])
|
|
@@ -7451,7 +7457,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
7451
7457
|
};
|
|
7452
7458
|
}
|
|
7453
7459
|
});
|
|
7454
|
-
const DatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-
|
|
7460
|
+
const DatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-c8e09815"]]);
|
|
7455
7461
|
const _hoisted_1$f = ["disabled"];
|
|
7456
7462
|
const _hoisted_2$f = {
|
|
7457
7463
|
key: 0,
|
|
@@ -7478,8 +7484,8 @@ const _hoisted_10$3 = {
|
|
|
7478
7484
|
class: "ina-select-dropdown__preview-item ina-select-dropdown__preview-item--single"
|
|
7479
7485
|
};
|
|
7480
7486
|
const _hoisted_11$3 = { class: "ina-select-dropdown__preview-item-text" };
|
|
7481
|
-
const _hoisted_12$
|
|
7482
|
-
const _hoisted_13$
|
|
7487
|
+
const _hoisted_12$3 = ["aria-label"];
|
|
7488
|
+
const _hoisted_13$3 = ["disabled", "onClick"];
|
|
7483
7489
|
const _hoisted_14$1 = { class: "ina-select-dropdown__option-content" };
|
|
7484
7490
|
const _hoisted_15$1 = { class: "ina-select-dropdown__option-label" };
|
|
7485
7491
|
const _hoisted_16 = {
|
|
@@ -7931,7 +7937,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
7931
7937
|
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => removeSelectedItem(__props.modelValue), ["stop"]))
|
|
7932
7938
|
}, [
|
|
7933
7939
|
createVNode(unref(IconX), { size: 12 })
|
|
7934
|
-
], 8, _hoisted_12$
|
|
7940
|
+
], 8, _hoisted_12$3)) : createCommentVNode("", true)
|
|
7935
7941
|
])) : createCommentVNode("", true)
|
|
7936
7942
|
], 64))
|
|
7937
7943
|
])
|
|
@@ -7988,7 +7994,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
7988
7994
|
}, [
|
|
7989
7995
|
isSelected(option) ? (openBlock(), createElementBlock("div", _hoisted_17)) : createCommentVNode("", true)
|
|
7990
7996
|
], 2)) : createCommentVNode("", true)
|
|
7991
|
-
], 10, _hoisted_13$
|
|
7997
|
+
], 10, _hoisted_13$3);
|
|
7992
7998
|
}), 128)),
|
|
7993
7999
|
filteredOptions.value.length === 0 && !__props.loading ? (openBlock(), createElementBlock("div", _hoisted_18, " No results ")) : createCommentVNode("", true),
|
|
7994
8000
|
__props.hasMore && !__props.loading && filteredOptions.value.length > 0 && __props.onLoadMore && !__props.disabled ? (openBlock(), createElementBlock("div", _hoisted_19, [
|
|
@@ -8763,8 +8769,8 @@ const _hoisted_10$2 = {
|
|
|
8763
8769
|
class: "ina-table__cell"
|
|
8764
8770
|
};
|
|
8765
8771
|
const _hoisted_11$2 = ["tabindex"];
|
|
8766
|
-
const _hoisted_12$
|
|
8767
|
-
const _hoisted_13$
|
|
8772
|
+
const _hoisted_12$2 = ["onClick"];
|
|
8773
|
+
const _hoisted_13$2 = { class: "ina-table__pagination" };
|
|
8768
8774
|
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
8769
8775
|
__name: "Table",
|
|
8770
8776
|
props: {
|
|
@@ -9179,7 +9185,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
9179
9185
|
}, () => [
|
|
9180
9186
|
(openBlock(), createBlock(resolveDynamicComponent(getCellRenderComponent(col, row))))
|
|
9181
9187
|
])
|
|
9182
|
-
], 8, _hoisted_12$
|
|
9188
|
+
], 8, _hoisted_12$2))
|
|
9183
9189
|
], 64)) : renderSlot(_ctx.$slots, "cell", {
|
|
9184
9190
|
key: 1,
|
|
9185
9191
|
row,
|
|
@@ -9194,7 +9200,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
9194
9200
|
}), 128))
|
|
9195
9201
|
], 2)
|
|
9196
9202
|
], 2),
|
|
9197
|
-
createElementVNode("div", _hoisted_13$
|
|
9203
|
+
createElementVNode("div", _hoisted_13$2, [
|
|
9198
9204
|
createVNode(_sfc_main$q, {
|
|
9199
9205
|
modelValue: page.value,
|
|
9200
9206
|
totalPages: totalPages.value,
|
|
@@ -9819,26 +9825,31 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
9819
9825
|
};
|
|
9820
9826
|
}
|
|
9821
9827
|
});
|
|
9822
|
-
const _hoisted_1$5 =
|
|
9828
|
+
const _hoisted_1$5 = { key: 1 };
|
|
9823
9829
|
const _hoisted_2$5 = {
|
|
9830
|
+
key: 2,
|
|
9831
|
+
class: "ina-time-picker__required"
|
|
9832
|
+
};
|
|
9833
|
+
const _hoisted_3$4 = ["tabindex", "aria-expanded"];
|
|
9834
|
+
const _hoisted_4$3 = {
|
|
9824
9835
|
key: 0,
|
|
9825
9836
|
class: "ina-time-picker__prefix-icon"
|
|
9826
9837
|
};
|
|
9827
|
-
const
|
|
9828
|
-
const
|
|
9838
|
+
const _hoisted_5$3 = ["value", "placeholder", "disabled", "readonly"];
|
|
9839
|
+
const _hoisted_6$3 = {
|
|
9829
9840
|
key: 2,
|
|
9830
9841
|
class: "ina-time-picker__suffix-icon"
|
|
9831
9842
|
};
|
|
9832
|
-
const
|
|
9843
|
+
const _hoisted_7$3 = {
|
|
9833
9844
|
key: 3,
|
|
9834
9845
|
class: "ina-time-picker__suffix-icon"
|
|
9835
9846
|
};
|
|
9836
|
-
const
|
|
9837
|
-
const _hoisted_7$3 = ["onClick", "onMouseenter"];
|
|
9838
|
-
const _hoisted_8$2 = ["onClick", "onMouseenter"];
|
|
9847
|
+
const _hoisted_8$2 = { class: "ina-time-picker__content" };
|
|
9839
9848
|
const _hoisted_9$1 = ["onClick", "onMouseenter"];
|
|
9840
9849
|
const _hoisted_10$1 = ["onClick", "onMouseenter"];
|
|
9841
|
-
const _hoisted_11$1 =
|
|
9850
|
+
const _hoisted_11$1 = ["onClick", "onMouseenter"];
|
|
9851
|
+
const _hoisted_12$1 = ["onClick", "onMouseenter"];
|
|
9852
|
+
const _hoisted_13$1 = { class: "ina-time-picker__actions" };
|
|
9842
9853
|
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
9843
9854
|
__name: "TimePicker",
|
|
9844
9855
|
props: {
|
|
@@ -9862,7 +9873,9 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
9862
9873
|
disabledBackTime: { type: Boolean, default: false },
|
|
9863
9874
|
disabledTimeBefore: {},
|
|
9864
9875
|
disabledTimeAfter: {},
|
|
9865
|
-
showNowButton: { type: Boolean, default: false }
|
|
9876
|
+
showNowButton: { type: Boolean, default: false },
|
|
9877
|
+
label: {},
|
|
9878
|
+
required: { type: Boolean }
|
|
9866
9879
|
},
|
|
9867
9880
|
emits: ["update:modelValue", "change", "open-change"],
|
|
9868
9881
|
setup(__props, { emit: __emit }) {
|
|
@@ -10070,7 +10083,12 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
10070
10083
|
}
|
|
10071
10084
|
return classes;
|
|
10072
10085
|
});
|
|
10073
|
-
const
|
|
10086
|
+
const labelComponent = computed(() => {
|
|
10087
|
+
if (!props.label) return null;
|
|
10088
|
+
if (typeof props.label === "string") return null;
|
|
10089
|
+
return props.label;
|
|
10090
|
+
});
|
|
10091
|
+
const triggerClasses = computed(() => {
|
|
10074
10092
|
const classes = [
|
|
10075
10093
|
"ina-time-picker__input",
|
|
10076
10094
|
`ina-time-picker__input--size-${props.size}`
|
|
@@ -10113,10 +10131,17 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
10113
10131
|
});
|
|
10114
10132
|
return (_ctx, _cache) => {
|
|
10115
10133
|
return openBlock(), createElementBlock("div", {
|
|
10134
|
+
class: normalizeClass(["ina-time-picker", containerClasses.value]),
|
|
10116
10135
|
ref_key: "containerRef",
|
|
10117
|
-
ref: containerRef
|
|
10118
|
-
class: normalizeClass(["ina-time-picker", containerClasses.value])
|
|
10136
|
+
ref: containerRef
|
|
10119
10137
|
}, [
|
|
10138
|
+
__props.label ? (openBlock(), createElementBlock("label", {
|
|
10139
|
+
key: 0,
|
|
10140
|
+
class: normalizeClass(["ina-time-picker__label", { "ina-time-picker__label--required": __props.required }])
|
|
10141
|
+
}, [
|
|
10142
|
+
labelComponent.value ? (openBlock(), createBlock(resolveDynamicComponent(labelComponent.value), { key: 0 })) : __props.label && typeof __props.label === "string" ? (openBlock(), createElementBlock("span", _hoisted_1$5, toDisplayString(__props.label), 1)) : createCommentVNode("", true),
|
|
10143
|
+
__props.required ? (openBlock(), createElementBlock("span", _hoisted_2$5, "*")) : createCommentVNode("", true)
|
|
10144
|
+
], 2)) : createCommentVNode("", true),
|
|
10120
10145
|
createElementVNode("div", {
|
|
10121
10146
|
class: "ina-time-picker__wrapper",
|
|
10122
10147
|
tabindex: __props.disabled ? -1 : 0,
|
|
@@ -10126,7 +10151,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
10126
10151
|
onClick: handleWrapperClick,
|
|
10127
10152
|
onKeydown: handleWrapperKeydown
|
|
10128
10153
|
}, [
|
|
10129
|
-
__props.prefixIcon ? (openBlock(), createElementBlock("div",
|
|
10154
|
+
__props.prefixIcon ? (openBlock(), createElementBlock("div", _hoisted_4$3, [
|
|
10130
10155
|
renderSlot(_ctx.$slots, "prefixIcon", {}, () => [
|
|
10131
10156
|
createTextVNode(toDisplayString(__props.prefixIcon), 1)
|
|
10132
10157
|
])
|
|
@@ -10135,7 +10160,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
10135
10160
|
ref_key: "inputRef",
|
|
10136
10161
|
ref: inputRef,
|
|
10137
10162
|
type: "text",
|
|
10138
|
-
class:
|
|
10163
|
+
class: triggerClasses.value,
|
|
10139
10164
|
value: internalValue.value,
|
|
10140
10165
|
placeholder: __props.placeholder,
|
|
10141
10166
|
disabled: __props.disabled,
|
|
@@ -10145,7 +10170,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
10145
10170
|
onClick: handleInputClick,
|
|
10146
10171
|
onFocus: handleInputFocus,
|
|
10147
10172
|
onKeydown: handleInputKeydown
|
|
10148
|
-
}), null, 16,
|
|
10173
|
+
}), null, 16, _hoisted_5$3),
|
|
10149
10174
|
__props.allowClear && internalValue.value && !__props.disabled ? (openBlock(), createElementBlock("button", {
|
|
10150
10175
|
key: 1,
|
|
10151
10176
|
type: "button",
|
|
@@ -10154,21 +10179,21 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
10154
10179
|
onClick: handleClear
|
|
10155
10180
|
}, [
|
|
10156
10181
|
createVNode(unref(IconX), { size: 16 })
|
|
10157
|
-
])) : __props.suffixIcon ? (openBlock(), createElementBlock("div",
|
|
10182
|
+
])) : __props.suffixIcon ? (openBlock(), createElementBlock("div", _hoisted_6$3, [
|
|
10158
10183
|
renderSlot(_ctx.$slots, "suffixIcon", {}, () => [
|
|
10159
10184
|
createTextVNode(toDisplayString(__props.suffixIcon), 1)
|
|
10160
10185
|
])
|
|
10161
|
-
])) : (openBlock(), createElementBlock("div",
|
|
10186
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_7$3, [
|
|
10162
10187
|
createVNode(unref(IconClock), { size: 16 })
|
|
10163
10188
|
]))
|
|
10164
|
-
], 40,
|
|
10189
|
+
], 40, _hoisted_3$4),
|
|
10165
10190
|
isOpen.value ? (openBlock(), createElementBlock("div", {
|
|
10166
|
-
key:
|
|
10191
|
+
key: 1,
|
|
10167
10192
|
ref_key: "panelRef",
|
|
10168
10193
|
ref: panelRef,
|
|
10169
10194
|
class: "ina-time-picker__panel"
|
|
10170
10195
|
}, [
|
|
10171
|
-
createElementVNode("div",
|
|
10196
|
+
createElementVNode("div", _hoisted_8$2, [
|
|
10172
10197
|
createElementVNode("div", {
|
|
10173
10198
|
class: normalizeClass([
|
|
10174
10199
|
"ina-time-picker__column",
|
|
@@ -10190,7 +10215,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
10190
10215
|
]),
|
|
10191
10216
|
onClick: ($event) => handleTimeSelect("hour", option),
|
|
10192
10217
|
onMouseenter: ($event) => handleMouseEnter("hour", option)
|
|
10193
|
-
}, toDisplayString(option.toString().padStart(2, "0")), 43,
|
|
10218
|
+
}, toDisplayString(option.toString().padStart(2, "0")), 43, _hoisted_9$1);
|
|
10194
10219
|
}), 128))
|
|
10195
10220
|
], 32)
|
|
10196
10221
|
], 2),
|
|
@@ -10215,7 +10240,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
10215
10240
|
]),
|
|
10216
10241
|
onClick: ($event) => handleTimeSelect("minute", option),
|
|
10217
10242
|
onMouseenter: ($event) => handleMouseEnter("minute", option)
|
|
10218
|
-
}, toDisplayString(option.toString().padStart(2, "0")), 43,
|
|
10243
|
+
}, toDisplayString(option.toString().padStart(2, "0")), 43, _hoisted_10$1);
|
|
10219
10244
|
}), 128))
|
|
10220
10245
|
], 32)
|
|
10221
10246
|
], 2),
|
|
@@ -10241,7 +10266,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
10241
10266
|
]),
|
|
10242
10267
|
onClick: ($event) => handleTimeSelect("second", option),
|
|
10243
10268
|
onMouseenter: ($event) => handleMouseEnter("second", option)
|
|
10244
|
-
}, toDisplayString(option.toString().padStart(2, "0")), 43,
|
|
10269
|
+
}, toDisplayString(option.toString().padStart(2, "0")), 43, _hoisted_11$1);
|
|
10245
10270
|
}), 128))
|
|
10246
10271
|
], 32)
|
|
10247
10272
|
], 2)) : createCommentVNode("", true),
|
|
@@ -10266,12 +10291,12 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
10266
10291
|
]),
|
|
10267
10292
|
onClick: ($event) => handleTimeSelect("period", period),
|
|
10268
10293
|
onMouseenter: ($event) => handleMouseEnter("period", period)
|
|
10269
|
-
}, toDisplayString(period), 43,
|
|
10294
|
+
}, toDisplayString(period), 43, _hoisted_12$1);
|
|
10270
10295
|
}), 64))
|
|
10271
10296
|
], 32)
|
|
10272
10297
|
], 2)) : createCommentVNode("", true)
|
|
10273
10298
|
]),
|
|
10274
|
-
createElementVNode("div",
|
|
10299
|
+
createElementVNode("div", _hoisted_13$1, [
|
|
10275
10300
|
__props.showNowButton ? (openBlock(), createElementBlock("button", {
|
|
10276
10301
|
key: 0,
|
|
10277
10302
|
type: "button",
|