@idds/vue 1.5.7 → 1.5.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/dist/components/SelectDropdown.vue.d.ts +10 -0
- package/dist/components/SelectDropdown.vue.d.ts.map +1 -1
- 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 +30 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +110 -97
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -1724,7 +1724,7 @@ const _hoisted_11$a = {
|
|
|
1724
1724
|
class: "ina-card__media"
|
|
1725
1725
|
};
|
|
1726
1726
|
const _hoisted_12$9 = ["src", "alt"];
|
|
1727
|
-
const _hoisted_13$
|
|
1727
|
+
const _hoisted_13$6 = {
|
|
1728
1728
|
key: 3,
|
|
1729
1729
|
class: "ina-card__media"
|
|
1730
1730
|
};
|
|
@@ -1754,7 +1754,7 @@ const _hoisted_21$3 = {
|
|
|
1754
1754
|
key: 1,
|
|
1755
1755
|
class: "ina-card__body"
|
|
1756
1756
|
};
|
|
1757
|
-
const _hoisted_22$
|
|
1757
|
+
const _hoisted_22$3 = {
|
|
1758
1758
|
key: 2,
|
|
1759
1759
|
class: "ina-card__footer"
|
|
1760
1760
|
};
|
|
@@ -1892,7 +1892,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
1892
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$6, [
|
|
1896
1896
|
renderSlot(_ctx.$slots, "media", {}, () => [
|
|
1897
1897
|
__props.mediaSrc ? (openBlock(), createElementBlock("img", {
|
|
1898
1898
|
key: 0,
|
|
@@ -1933,7 +1933,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
1933
1933
|
_ctx.$slots.default && !__props.title && !__props.description ? (openBlock(), createElementBlock("div", _hoisted_21$3, [
|
|
1934
1934
|
renderSlot(_ctx.$slots, "default")
|
|
1935
1935
|
])) : createCommentVNode("", true),
|
|
1936
|
-
__props.showFooter || _ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_22$
|
|
1936
|
+
__props.showFooter || _ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_22$3, [
|
|
1937
1937
|
renderSlot(_ctx.$slots, "footer")
|
|
1938
1938
|
])) : createCommentVNode("", true)
|
|
1939
1939
|
], 64)) : createCommentVNode("", true)
|
|
@@ -3481,7 +3481,7 @@ 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$5 = {
|
|
3485
3485
|
key: 1,
|
|
3486
3486
|
class: "ina-file-upload__file-icon-wrapper ina-file-upload__file-icon-wrapper--success"
|
|
3487
3487
|
};
|
|
@@ -3502,9 +3502,9 @@ const _hoisted_19$2 = {
|
|
|
3502
3502
|
};
|
|
3503
3503
|
const _hoisted_20$2 = { class: "ina-file-upload__file-actions" };
|
|
3504
3504
|
const _hoisted_21$2 = ["onClick"];
|
|
3505
|
-
const _hoisted_22$
|
|
3506
|
-
const _hoisted_23$
|
|
3507
|
-
const _hoisted_24$
|
|
3505
|
+
const _hoisted_22$2 = ["onClick"];
|
|
3506
|
+
const _hoisted_23$2 = ["onClick"];
|
|
3507
|
+
const _hoisted_24$2 = ["onClick"];
|
|
3508
3508
|
const _hoisted_25$1 = ["onClick"];
|
|
3509
3509
|
const _hoisted_26$1 = {
|
|
3510
3510
|
key: 2,
|
|
@@ -3797,7 +3797,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
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$5, [
|
|
3801
3801
|
createVNode(unref(IconCircleCheck), {
|
|
3802
3802
|
size: 20,
|
|
3803
3803
|
stroke: "2"
|
|
@@ -3836,7 +3836,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
3836
3836
|
onClick: ($event) => removeFile(getOriginalIndex(uploadedFile))
|
|
3837
3837
|
}, [
|
|
3838
3838
|
createVNode(unref(IconTrash), { size: 20 })
|
|
3839
|
-
], 8, _hoisted_22$
|
|
3839
|
+
], 8, _hoisted_22$2)
|
|
3840
3840
|
], 64)) : uploadedFile.status === "uploading" ? (openBlock(), createElementBlock("button", {
|
|
3841
3841
|
key: 1,
|
|
3842
3842
|
title: "Batalkan upload",
|
|
@@ -3845,7 +3845,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
3845
3845
|
onClick: ($event) => removeFile(getOriginalIndex(uploadedFile))
|
|
3846
3846
|
}, [
|
|
3847
3847
|
createVNode(unref(IconX), { size: 20 })
|
|
3848
|
-
], 8, _hoisted_23$
|
|
3848
|
+
], 8, _hoisted_23$2)) : uploadedFile.status === "success" ? (openBlock(), createElementBlock("button", {
|
|
3849
3849
|
key: 2,
|
|
3850
3850
|
title: "Hapus file",
|
|
3851
3851
|
type: "button",
|
|
@@ -3853,7 +3853,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
3853
3853
|
onClick: ($event) => removeFile(getOriginalIndex(uploadedFile))
|
|
3854
3854
|
}, [
|
|
3855
3855
|
createVNode(unref(IconTrash), { size: 20 })
|
|
3856
|
-
], 8, _hoisted_24$
|
|
3856
|
+
], 8, _hoisted_24$2)) : uploadedFile.status === "idle" ? (openBlock(), createElementBlock("button", {
|
|
3857
3857
|
key: 3,
|
|
3858
3858
|
title: "Hapus file",
|
|
3859
3859
|
type: "button",
|
|
@@ -5492,7 +5492,7 @@ 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
5494
|
const _hoisted_12$6 = { class: "ina-phone-input__country-flag" };
|
|
5495
|
-
const _hoisted_13$
|
|
5495
|
+
const _hoisted_13$4 = { 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 };
|
|
@@ -5738,7 +5738,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
5738
5738
|
onClick: ($event) => selectCountry(country)
|
|
5739
5739
|
}, [
|
|
5740
5740
|
createElementVNode("span", _hoisted_12$6, toDisplayString(country.flag), 1),
|
|
5741
|
-
createElementVNode("span", _hoisted_13$
|
|
5741
|
+
createElementVNode("span", _hoisted_13$4, toDisplayString(country.name), 1),
|
|
5742
5742
|
createElementVNode("span", _hoisted_14$3, toDisplayString(country.dialCode), 1)
|
|
5743
5743
|
], 10, _hoisted_11$6);
|
|
5744
5744
|
}), 128))
|
|
@@ -6406,7 +6406,7 @@ const _hoisted_9$4 = { class: "ina-date-picker__dropdown-container" };
|
|
|
6406
6406
|
const _hoisted_10$4 = { class: "ina-date-picker__calendar-grid" };
|
|
6407
6407
|
const _hoisted_11$4 = ["disabled", "onClick"];
|
|
6408
6408
|
const _hoisted_12$4 = { class: "ina-date-picker__day-number" };
|
|
6409
|
-
const _hoisted_13$
|
|
6409
|
+
const _hoisted_13$3 = { class: "ina-date-picker__calendar-container" };
|
|
6410
6410
|
const _hoisted_14$2 = { class: "ina-date-picker__calendar-header" };
|
|
6411
6411
|
const _hoisted_15$2 = { class: "ina-date-picker__header-controls" };
|
|
6412
6412
|
const _hoisted_16$1 = { class: "ina-date-picker__dropdown-container" };
|
|
@@ -6415,9 +6415,9 @@ const _hoisted_18$1 = { class: "ina-date-picker__calendar-grid" };
|
|
|
6415
6415
|
const _hoisted_19$1 = ["disabled", "onClick"];
|
|
6416
6416
|
const _hoisted_20$1 = { class: "ina-date-picker__day-number" };
|
|
6417
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
|
-
const _hoisted_24 = { class: "ina-date-picker__dropdown-container" };
|
|
6418
|
+
const _hoisted_22$1 = { class: "ina-date-picker__next-month-header" };
|
|
6419
|
+
const _hoisted_23$1 = { class: "ina-date-picker__next-month-controls" };
|
|
6420
|
+
const _hoisted_24$1 = { class: "ina-date-picker__dropdown-container" };
|
|
6421
6421
|
const _hoisted_25 = { class: "ina-date-picker__dropdown-container" };
|
|
6422
6422
|
const _hoisted_26 = { class: "ina-date-picker__calendar-grid" };
|
|
6423
6423
|
const _hoisted_27 = ["disabled", "onClick"];
|
|
@@ -7314,7 +7314,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
7314
7314
|
}), 128))
|
|
7315
7315
|
])
|
|
7316
7316
|
])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
7317
|
-
createElementVNode("div", _hoisted_13$
|
|
7317
|
+
createElementVNode("div", _hoisted_13$3, [
|
|
7318
7318
|
createElementVNode("div", _hoisted_14$2, [
|
|
7319
7319
|
createElementVNode("button", {
|
|
7320
7320
|
type: "button",
|
|
@@ -7381,7 +7381,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
7381
7381
|
])
|
|
7382
7382
|
]),
|
|
7383
7383
|
createElementVNode("div", _hoisted_21$1, [
|
|
7384
|
-
createElementVNode("div", _hoisted_22, [
|
|
7384
|
+
createElementVNode("div", _hoisted_22$1, [
|
|
7385
7385
|
createElementVNode("button", {
|
|
7386
7386
|
type: "button",
|
|
7387
7387
|
class: "ina-date-picker__nav-button",
|
|
@@ -7392,8 +7392,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
7392
7392
|
class: "ina-date-picker__nav-icon"
|
|
7393
7393
|
})
|
|
7394
7394
|
]),
|
|
7395
|
-
createElementVNode("div", _hoisted_23, [
|
|
7396
|
-
createElementVNode("div", _hoisted_24, [
|
|
7395
|
+
createElementVNode("div", _hoisted_23$1, [
|
|
7396
|
+
createElementVNode("div", _hoisted_24$1, [
|
|
7397
7397
|
createVNode(MonthPicker, {
|
|
7398
7398
|
"model-value": nextMonth.value,
|
|
7399
7399
|
disabled: __props.disabled,
|
|
@@ -7458,57 +7458,66 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
7458
7458
|
}
|
|
7459
7459
|
});
|
|
7460
7460
|
const DatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-c8e09815"]]);
|
|
7461
|
-
const _hoisted_1$f =
|
|
7462
|
-
const _hoisted_2$f = {
|
|
7461
|
+
const _hoisted_1$f = {
|
|
7463
7462
|
key: 0,
|
|
7464
|
-
class: "ina-select-
|
|
7463
|
+
class: "ina-select-dropdown__label"
|
|
7465
7464
|
};
|
|
7465
|
+
const _hoisted_2$f = { key: 1 };
|
|
7466
7466
|
const _hoisted_3$d = {
|
|
7467
|
+
key: 2,
|
|
7468
|
+
class: "ina-select-dropdown__required"
|
|
7469
|
+
};
|
|
7470
|
+
const _hoisted_4$9 = ["disabled"];
|
|
7471
|
+
const _hoisted_5$8 = {
|
|
7472
|
+
key: 0,
|
|
7473
|
+
class: "ina-select-dropdown__trigger-prefix"
|
|
7474
|
+
};
|
|
7475
|
+
const _hoisted_6$6 = {
|
|
7467
7476
|
key: 0,
|
|
7468
7477
|
class: "ina-select-dropdown__search"
|
|
7469
7478
|
};
|
|
7470
|
-
const
|
|
7471
|
-
const
|
|
7479
|
+
const _hoisted_7$6 = ["aria-label", "disabled"];
|
|
7480
|
+
const _hoisted_8$4 = {
|
|
7472
7481
|
key: 1,
|
|
7473
7482
|
class: "ina-select-dropdown__preview"
|
|
7474
7483
|
};
|
|
7475
|
-
const
|
|
7476
|
-
const
|
|
7477
|
-
const
|
|
7478
|
-
const
|
|
7484
|
+
const _hoisted_9$3 = { class: "ina-select-dropdown__preview-content" };
|
|
7485
|
+
const _hoisted_10$3 = { class: "ina-select-dropdown__preview-item-text" };
|
|
7486
|
+
const _hoisted_11$3 = ["aria-label", "onClick"];
|
|
7487
|
+
const _hoisted_12$3 = {
|
|
7479
7488
|
key: 0,
|
|
7480
7489
|
class: "ina-select-dropdown__preview-more"
|
|
7481
7490
|
};
|
|
7482
|
-
const
|
|
7491
|
+
const _hoisted_13$2 = {
|
|
7483
7492
|
key: 0,
|
|
7484
7493
|
class: "ina-select-dropdown__preview-item ina-select-dropdown__preview-item--single"
|
|
7485
7494
|
};
|
|
7486
|
-
const
|
|
7487
|
-
const
|
|
7488
|
-
const
|
|
7489
|
-
const
|
|
7490
|
-
const
|
|
7491
|
-
const
|
|
7495
|
+
const _hoisted_14$1 = { class: "ina-select-dropdown__preview-item-text" };
|
|
7496
|
+
const _hoisted_15$1 = ["aria-label"];
|
|
7497
|
+
const _hoisted_16 = ["disabled", "onClick"];
|
|
7498
|
+
const _hoisted_17 = { class: "ina-select-dropdown__option-content" };
|
|
7499
|
+
const _hoisted_18 = { class: "ina-select-dropdown__option-label" };
|
|
7500
|
+
const _hoisted_19 = {
|
|
7492
7501
|
key: 0,
|
|
7493
7502
|
class: "ina-select-dropdown__option-check-indicator"
|
|
7494
7503
|
};
|
|
7495
|
-
const
|
|
7504
|
+
const _hoisted_20 = {
|
|
7496
7505
|
key: 0,
|
|
7497
7506
|
class: "ina-select-dropdown__option-radio-dot"
|
|
7498
7507
|
};
|
|
7499
|
-
const
|
|
7508
|
+
const _hoisted_21 = {
|
|
7500
7509
|
key: 0,
|
|
7501
7510
|
class: "ina-select-dropdown__empty"
|
|
7502
7511
|
};
|
|
7503
|
-
const
|
|
7512
|
+
const _hoisted_22 = {
|
|
7504
7513
|
key: 1,
|
|
7505
7514
|
class: "ina-select-dropdown__load-more"
|
|
7506
7515
|
};
|
|
7507
|
-
const
|
|
7516
|
+
const _hoisted_23 = {
|
|
7508
7517
|
key: 2,
|
|
7509
7518
|
class: "ina-select-dropdown__loading"
|
|
7510
7519
|
};
|
|
7511
|
-
const
|
|
7520
|
+
const _hoisted_24 = { class: "ina-select-dropdown__loading-spinner" };
|
|
7512
7521
|
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
7513
7522
|
__name: "SelectDropdown",
|
|
7514
7523
|
props: {
|
|
@@ -7537,7 +7546,9 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
7537
7546
|
panelClassName: { default: "" },
|
|
7538
7547
|
triggerClassName: { default: "" },
|
|
7539
7548
|
showPreviewValue: { type: Boolean, default: true },
|
|
7540
|
-
searchable: { type: Boolean, default: true }
|
|
7549
|
+
searchable: { type: Boolean, default: true },
|
|
7550
|
+
label: { default: void 0 },
|
|
7551
|
+
required: { type: Boolean, default: false }
|
|
7541
7552
|
},
|
|
7542
7553
|
emits: ["update:modelValue", "change", "clear", "update:selectedRaw", "selectedRawChange"],
|
|
7543
7554
|
setup(__props, { emit: __emit }) {
|
|
@@ -7551,6 +7562,11 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
7551
7562
|
const internalSearchTerm = ref("");
|
|
7552
7563
|
const searchTimeoutRef = ref(null);
|
|
7553
7564
|
const selectedLabelsCache = ref(/* @__PURE__ */ new Map());
|
|
7565
|
+
const labelComponent = computed(() => {
|
|
7566
|
+
if (!props.label) return null;
|
|
7567
|
+
if (typeof props.label === "string") return null;
|
|
7568
|
+
return props.label;
|
|
7569
|
+
});
|
|
7554
7570
|
const isSearchControlled = computed(() => props.searchValue !== void 0);
|
|
7555
7571
|
const searchTerm = computed(
|
|
7556
7572
|
() => isSearchControlled.value ? props.searchValue || "" : internalSearchTerm.value
|
|
@@ -7859,6 +7875,10 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
7859
7875
|
class: normalizeClass(["ina-select-dropdown", containerClasses.value]),
|
|
7860
7876
|
style: normalizeStyle({ width: toCssSize(__props.width) })
|
|
7861
7877
|
}, [
|
|
7878
|
+
__props.label ? (openBlock(), createElementBlock("label", _hoisted_1$f, [
|
|
7879
|
+
labelComponent.value ? (openBlock(), createBlock(resolveDynamicComponent(labelComponent.value), { key: 0 })) : __props.label && typeof __props.label === "string" ? (openBlock(), createElementBlock("span", _hoisted_2$f, toDisplayString(__props.label), 1)) : createCommentVNode("", true),
|
|
7880
|
+
__props.required ? (openBlock(), createElementBlock("span", _hoisted_3$d, "*")) : createCommentVNode("", true)
|
|
7881
|
+
])) : createCommentVNode("", true),
|
|
7862
7882
|
createElementVNode("button", {
|
|
7863
7883
|
ref_key: "triggerRef",
|
|
7864
7884
|
ref: triggerRef,
|
|
@@ -7867,7 +7887,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
7867
7887
|
class: normalizeClass(triggerClasses.value),
|
|
7868
7888
|
onClick: toggleDropdown
|
|
7869
7889
|
}, [
|
|
7870
|
-
__props.prefixNode ? (openBlock(), createElementBlock("span",
|
|
7890
|
+
__props.prefixNode ? (openBlock(), createElementBlock("span", _hoisted_5$8, [
|
|
7871
7891
|
(openBlock(), createBlock(resolveDynamicComponent(__props.prefixNode)))
|
|
7872
7892
|
])) : createCommentVNode("", true),
|
|
7873
7893
|
createElementVNode("span", {
|
|
@@ -7882,7 +7902,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
7882
7902
|
size: __props.size === "sm" ? 16 : 20,
|
|
7883
7903
|
class: normalizeClass(triggerIconClasses.value)
|
|
7884
7904
|
}, null, 8, ["size", "class"]))
|
|
7885
|
-
], 10,
|
|
7905
|
+
], 10, _hoisted_4$9),
|
|
7886
7906
|
createVNode(Transition, { name: "dropdown" }, {
|
|
7887
7907
|
default: withCtx(() => [
|
|
7888
7908
|
isOpen.value && !__props.disabled ? (openBlock(), createElementBlock("div", {
|
|
@@ -7892,7 +7912,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
7892
7912
|
class: normalizeClass(panelClasses.value),
|
|
7893
7913
|
style: normalizeStyle(panelStyle.value)
|
|
7894
7914
|
}, [
|
|
7895
|
-
__props.searchable ? (openBlock(), createElementBlock("div",
|
|
7915
|
+
__props.searchable ? (openBlock(), createElementBlock("div", _hoisted_6$6, [
|
|
7896
7916
|
withDirectives(createElementVNode("input", {
|
|
7897
7917
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => internalSearchTerm.value = $event),
|
|
7898
7918
|
type: "text",
|
|
@@ -7901,19 +7921,19 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
7901
7921
|
disabled: __props.disabled,
|
|
7902
7922
|
class: normalizeClass(searchInputClasses.value),
|
|
7903
7923
|
onInput: handleSearchInput
|
|
7904
|
-
}, null, 42,
|
|
7924
|
+
}, null, 42, _hoisted_7$6), [
|
|
7905
7925
|
[vModelText, internalSearchTerm.value]
|
|
7906
7926
|
])
|
|
7907
7927
|
])) : createCommentVNode("", true),
|
|
7908
|
-
__props.showPreviewValue && hasSelectedItems.value ? (openBlock(), createElementBlock("div",
|
|
7909
|
-
createElementVNode("div",
|
|
7928
|
+
__props.showPreviewValue && hasSelectedItems.value ? (openBlock(), createElementBlock("div", _hoisted_8$4, [
|
|
7929
|
+
createElementVNode("div", _hoisted_9$3, [
|
|
7910
7930
|
__props.multiple ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
7911
7931
|
(openBlock(true), createElementBlock(Fragment, null, renderList(selectedArray.value.slice(0, 3), (value, index2) => {
|
|
7912
7932
|
return openBlock(), createElementBlock("div", {
|
|
7913
7933
|
key: index2,
|
|
7914
7934
|
class: "ina-select-dropdown__preview-item ina-select-dropdown__preview-item--multiple"
|
|
7915
7935
|
}, [
|
|
7916
|
-
createElementVNode("span",
|
|
7936
|
+
createElementVNode("span", _hoisted_10$3, toDisplayString(getOptionLabelByValue(value)), 1),
|
|
7917
7937
|
!__props.disabled ? (openBlock(), createElementBlock("button", {
|
|
7918
7938
|
key: 0,
|
|
7919
7939
|
type: "button",
|
|
@@ -7922,13 +7942,13 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
7922
7942
|
onClick: withModifiers(($event) => removeSelectedItem(value), ["stop"])
|
|
7923
7943
|
}, [
|
|
7924
7944
|
createVNode(unref(IconX), { size: 12 })
|
|
7925
|
-
], 8,
|
|
7945
|
+
], 8, _hoisted_11$3)) : createCommentVNode("", true)
|
|
7926
7946
|
]);
|
|
7927
7947
|
}), 128)),
|
|
7928
|
-
selectedArray.value.length > 3 ? (openBlock(), createElementBlock("span",
|
|
7948
|
+
selectedArray.value.length > 3 ? (openBlock(), createElementBlock("span", _hoisted_12$3, " +" + toDisplayString(selectedArray.value.length - 3) + " more ", 1)) : createCommentVNode("", true)
|
|
7929
7949
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
7930
|
-
__props.modelValue !== null && __props.modelValue !== void 0 && __props.modelValue !== "" ? (openBlock(), createElementBlock("div",
|
|
7931
|
-
createElementVNode("span",
|
|
7950
|
+
__props.modelValue !== null && __props.modelValue !== void 0 && __props.modelValue !== "" ? (openBlock(), createElementBlock("div", _hoisted_13$2, [
|
|
7951
|
+
createElementVNode("span", _hoisted_14$1, toDisplayString(getOptionLabelByValue(__props.modelValue)), 1),
|
|
7932
7952
|
!__props.disabled ? (openBlock(), createElementBlock("button", {
|
|
7933
7953
|
key: 0,
|
|
7934
7954
|
type: "button",
|
|
@@ -7937,7 +7957,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
7937
7957
|
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => removeSelectedItem(__props.modelValue), ["stop"]))
|
|
7938
7958
|
}, [
|
|
7939
7959
|
createVNode(unref(IconX), { size: 12 })
|
|
7940
|
-
], 8,
|
|
7960
|
+
], 8, _hoisted_15$1)) : createCommentVNode("", true)
|
|
7941
7961
|
])) : createCommentVNode("", true)
|
|
7942
7962
|
], 64))
|
|
7943
7963
|
])
|
|
@@ -7955,12 +7975,12 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
7955
7975
|
class: normalizeClass(getOptionClasses(option)),
|
|
7956
7976
|
onClick: ($event) => handleOptionClick(option)
|
|
7957
7977
|
}, [
|
|
7958
|
-
createElementVNode("div",
|
|
7978
|
+
createElementVNode("div", _hoisted_17, [
|
|
7959
7979
|
renderSlot(_ctx.$slots, "option", {
|
|
7960
7980
|
option,
|
|
7961
7981
|
selected: isSelected(option)
|
|
7962
7982
|
}, () => [
|
|
7963
|
-
createElementVNode("span",
|
|
7983
|
+
createElementVNode("span", _hoisted_18, toDisplayString(getOptionLabel(option)), 1)
|
|
7964
7984
|
], true)
|
|
7965
7985
|
]),
|
|
7966
7986
|
__props.multiple ? (openBlock(), createElementBlock("div", {
|
|
@@ -7977,7 +7997,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
7977
7997
|
size: 14
|
|
7978
7998
|
})) : createCommentVNode("", true)
|
|
7979
7999
|
], 2)) : __props.indicator === "check" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
7980
|
-
isSelected(option) ? (openBlock(), createElementBlock("div",
|
|
8000
|
+
isSelected(option) ? (openBlock(), createElementBlock("div", _hoisted_19, [
|
|
7981
8001
|
createVNode(unref(IconCheck), {
|
|
7982
8002
|
size: 16,
|
|
7983
8003
|
class: "ina-select-dropdown__option-check-icon"
|
|
@@ -7992,20 +8012,20 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
7992
8012
|
)
|
|
7993
8013
|
)
|
|
7994
8014
|
}, [
|
|
7995
|
-
isSelected(option) ? (openBlock(), createElementBlock("div",
|
|
8015
|
+
isSelected(option) ? (openBlock(), createElementBlock("div", _hoisted_20)) : createCommentVNode("", true)
|
|
7996
8016
|
], 2)) : createCommentVNode("", true)
|
|
7997
|
-
], 10,
|
|
8017
|
+
], 10, _hoisted_16);
|
|
7998
8018
|
}), 128)),
|
|
7999
|
-
filteredOptions.value.length === 0 && !__props.loading ? (openBlock(), createElementBlock("div",
|
|
8000
|
-
__props.hasMore && !__props.loading && filteredOptions.value.length > 0 && __props.onLoadMore && !__props.disabled ? (openBlock(), createElementBlock("div",
|
|
8019
|
+
filteredOptions.value.length === 0 && !__props.loading ? (openBlock(), createElementBlock("div", _hoisted_21, " No results ")) : createCommentVNode("", true),
|
|
8020
|
+
__props.hasMore && !__props.loading && filteredOptions.value.length > 0 && __props.onLoadMore && !__props.disabled ? (openBlock(), createElementBlock("div", _hoisted_22, [
|
|
8001
8021
|
createElementVNode("button", {
|
|
8002
8022
|
type: "button",
|
|
8003
8023
|
class: "ina-select-dropdown__load-more-button",
|
|
8004
8024
|
onClick: handleLoadMoreClick
|
|
8005
8025
|
}, " Tampilkan Lebih Banyak ")
|
|
8006
8026
|
])) : createCommentVNode("", true),
|
|
8007
|
-
__props.loading ? (openBlock(), createElementBlock("div",
|
|
8008
|
-
createElementVNode("div",
|
|
8027
|
+
__props.loading ? (openBlock(), createElementBlock("div", _hoisted_23, [
|
|
8028
|
+
createElementVNode("div", _hoisted_24, [
|
|
8009
8029
|
createVNode(unref(IconLoader2), { size: 20 })
|
|
8010
8030
|
]),
|
|
8011
8031
|
_cache[2] || (_cache[2] = createElementVNode("span", { class: "ina-select-dropdown__loading-text" }, "Loading...", -1))
|
|
@@ -8019,7 +8039,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
8019
8039
|
};
|
|
8020
8040
|
}
|
|
8021
8041
|
});
|
|
8022
|
-
const SelectDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-
|
|
8042
|
+
const SelectDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-2d7cbd9d"]]);
|
|
8023
8043
|
const _hoisted_1$e = ["aria-labelledby", "aria-describedby"];
|
|
8024
8044
|
const _hoisted_2$e = {
|
|
8025
8045
|
key: 0,
|
|
@@ -8770,7 +8790,7 @@ const _hoisted_10$2 = {
|
|
|
8770
8790
|
};
|
|
8771
8791
|
const _hoisted_11$2 = ["tabindex"];
|
|
8772
8792
|
const _hoisted_12$2 = ["onClick"];
|
|
8773
|
-
const _hoisted_13$
|
|
8793
|
+
const _hoisted_13$1 = { class: "ina-table__pagination" };
|
|
8774
8794
|
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
8775
8795
|
__name: "Table",
|
|
8776
8796
|
props: {
|
|
@@ -9200,7 +9220,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
9200
9220
|
}), 128))
|
|
9201
9221
|
], 2)
|
|
9202
9222
|
], 2),
|
|
9203
|
-
createElementVNode("div", _hoisted_13$
|
|
9223
|
+
createElementVNode("div", _hoisted_13$1, [
|
|
9204
9224
|
createVNode(_sfc_main$q, {
|
|
9205
9225
|
modelValue: page.value,
|
|
9206
9226
|
totalPages: totalPages.value,
|
|
@@ -9831,25 +9851,18 @@ const _hoisted_2$5 = {
|
|
|
9831
9851
|
class: "ina-time-picker__required"
|
|
9832
9852
|
};
|
|
9833
9853
|
const _hoisted_3$4 = ["tabindex", "aria-expanded"];
|
|
9834
|
-
const _hoisted_4$3 = {
|
|
9835
|
-
key: 0,
|
|
9836
|
-
class: "ina-time-picker__prefix-icon"
|
|
9837
|
-
};
|
|
9854
|
+
const _hoisted_4$3 = { class: "ina-time-picker__prefix-icon" };
|
|
9838
9855
|
const _hoisted_5$3 = ["value", "placeholder", "disabled", "readonly"];
|
|
9839
9856
|
const _hoisted_6$3 = {
|
|
9840
|
-
key:
|
|
9841
|
-
class: "ina-time-picker__suffix-icon"
|
|
9842
|
-
};
|
|
9843
|
-
const _hoisted_7$3 = {
|
|
9844
|
-
key: 3,
|
|
9857
|
+
key: 1,
|
|
9845
9858
|
class: "ina-time-picker__suffix-icon"
|
|
9846
9859
|
};
|
|
9847
|
-
const
|
|
9860
|
+
const _hoisted_7$3 = { class: "ina-time-picker__content" };
|
|
9861
|
+
const _hoisted_8$2 = ["onClick", "onMouseenter"];
|
|
9848
9862
|
const _hoisted_9$1 = ["onClick", "onMouseenter"];
|
|
9849
9863
|
const _hoisted_10$1 = ["onClick", "onMouseenter"];
|
|
9850
9864
|
const _hoisted_11$1 = ["onClick", "onMouseenter"];
|
|
9851
|
-
const _hoisted_12$1 =
|
|
9852
|
-
const _hoisted_13$1 = { class: "ina-time-picker__actions" };
|
|
9865
|
+
const _hoisted_12$1 = { class: "ina-time-picker__actions" };
|
|
9853
9866
|
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
9854
9867
|
__name: "TimePicker",
|
|
9855
9868
|
props: {
|
|
@@ -10091,11 +10104,9 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
10091
10104
|
const triggerClasses = computed(() => {
|
|
10092
10105
|
const classes = [
|
|
10093
10106
|
"ina-time-picker__input",
|
|
10094
|
-
`ina-time-picker__input--size-${props.size}
|
|
10107
|
+
`ina-time-picker__input--size-${props.size}`,
|
|
10108
|
+
"ina-time-picker__input--with-prefix"
|
|
10095
10109
|
];
|
|
10096
|
-
if (props.prefixIcon) {
|
|
10097
|
-
classes.push("ina-time-picker__input--with-prefix");
|
|
10098
|
-
}
|
|
10099
10110
|
if (props.suffixIcon || props.allowClear) {
|
|
10100
10111
|
classes.push("ina-time-picker__input--with-suffix");
|
|
10101
10112
|
}
|
|
@@ -10151,11 +10162,15 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
10151
10162
|
onClick: handleWrapperClick,
|
|
10152
10163
|
onKeydown: handleWrapperKeydown
|
|
10153
10164
|
}, [
|
|
10154
|
-
|
|
10165
|
+
_cache[0] || (_cache[0] = createTextVNode(" > ", -1)),
|
|
10166
|
+
createElementVNode("div", _hoisted_4$3, [
|
|
10155
10167
|
renderSlot(_ctx.$slots, "prefixIcon", {}, () => [
|
|
10156
|
-
|
|
10168
|
+
__props.prefixIcon ? (openBlock(), createBlock(resolveDynamicComponent(__props.prefixIcon), { key: 0 })) : (openBlock(), createBlock(unref(IconClock), {
|
|
10169
|
+
key: 1,
|
|
10170
|
+
size: 16
|
|
10171
|
+
}))
|
|
10157
10172
|
])
|
|
10158
|
-
])
|
|
10173
|
+
]),
|
|
10159
10174
|
createElementVNode("input", mergeProps({
|
|
10160
10175
|
ref_key: "inputRef",
|
|
10161
10176
|
ref: inputRef,
|
|
@@ -10172,7 +10187,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
10172
10187
|
onKeydown: handleInputKeydown
|
|
10173
10188
|
}), null, 16, _hoisted_5$3),
|
|
10174
10189
|
__props.allowClear && internalValue.value && !__props.disabled ? (openBlock(), createElementBlock("button", {
|
|
10175
|
-
key:
|
|
10190
|
+
key: 0,
|
|
10176
10191
|
type: "button",
|
|
10177
10192
|
class: "ina-time-picker__clear-button",
|
|
10178
10193
|
"aria-label": "Clear time",
|
|
@@ -10183,9 +10198,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
10183
10198
|
renderSlot(_ctx.$slots, "suffixIcon", {}, () => [
|
|
10184
10199
|
createTextVNode(toDisplayString(__props.suffixIcon), 1)
|
|
10185
10200
|
])
|
|
10186
|
-
])) : (
|
|
10187
|
-
createVNode(unref(IconClock), { size: 16 })
|
|
10188
|
-
]))
|
|
10201
|
+
])) : createCommentVNode("", true)
|
|
10189
10202
|
], 40, _hoisted_3$4),
|
|
10190
10203
|
isOpen.value ? (openBlock(), createElementBlock("div", {
|
|
10191
10204
|
key: 1,
|
|
@@ -10193,7 +10206,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
10193
10206
|
ref: panelRef,
|
|
10194
10207
|
class: "ina-time-picker__panel"
|
|
10195
10208
|
}, [
|
|
10196
|
-
createElementVNode("div",
|
|
10209
|
+
createElementVNode("div", _hoisted_7$3, [
|
|
10197
10210
|
createElementVNode("div", {
|
|
10198
10211
|
class: normalizeClass([
|
|
10199
10212
|
"ina-time-picker__column",
|
|
@@ -10215,7 +10228,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
10215
10228
|
]),
|
|
10216
10229
|
onClick: ($event) => handleTimeSelect("hour", option),
|
|
10217
10230
|
onMouseenter: ($event) => handleMouseEnter("hour", option)
|
|
10218
|
-
}, toDisplayString(option.toString().padStart(2, "0")), 43,
|
|
10231
|
+
}, toDisplayString(option.toString().padStart(2, "0")), 43, _hoisted_8$2);
|
|
10219
10232
|
}), 128))
|
|
10220
10233
|
], 32)
|
|
10221
10234
|
], 2),
|
|
@@ -10240,7 +10253,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
10240
10253
|
]),
|
|
10241
10254
|
onClick: ($event) => handleTimeSelect("minute", option),
|
|
10242
10255
|
onMouseenter: ($event) => handleMouseEnter("minute", option)
|
|
10243
|
-
}, toDisplayString(option.toString().padStart(2, "0")), 43,
|
|
10256
|
+
}, toDisplayString(option.toString().padStart(2, "0")), 43, _hoisted_9$1);
|
|
10244
10257
|
}), 128))
|
|
10245
10258
|
], 32)
|
|
10246
10259
|
], 2),
|
|
@@ -10266,7 +10279,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
10266
10279
|
]),
|
|
10267
10280
|
onClick: ($event) => handleTimeSelect("second", option),
|
|
10268
10281
|
onMouseenter: ($event) => handleMouseEnter("second", option)
|
|
10269
|
-
}, toDisplayString(option.toString().padStart(2, "0")), 43,
|
|
10282
|
+
}, toDisplayString(option.toString().padStart(2, "0")), 43, _hoisted_10$1);
|
|
10270
10283
|
}), 128))
|
|
10271
10284
|
], 32)
|
|
10272
10285
|
], 2)) : createCommentVNode("", true),
|
|
@@ -10291,12 +10304,12 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
10291
10304
|
]),
|
|
10292
10305
|
onClick: ($event) => handleTimeSelect("period", period),
|
|
10293
10306
|
onMouseenter: ($event) => handleMouseEnter("period", period)
|
|
10294
|
-
}, toDisplayString(period), 43,
|
|
10307
|
+
}, toDisplayString(period), 43, _hoisted_11$1);
|
|
10295
10308
|
}), 64))
|
|
10296
10309
|
], 32)
|
|
10297
10310
|
], 2)) : createCommentVNode("", true)
|
|
10298
10311
|
]),
|
|
10299
|
-
createElementVNode("div",
|
|
10312
|
+
createElementVNode("div", _hoisted_12$1, [
|
|
10300
10313
|
__props.showNowButton ? (openBlock(), createElementBlock("button", {
|
|
10301
10314
|
key: 0,
|
|
10302
10315
|
type: "button",
|