@idds/vue 1.6.46 → 1.6.48
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 +1 -0
- package/dist/components/DatePicker.vue.d.ts.map +1 -1
- package/dist/components/MonthPicker.vue.d.ts +1 -0
- package/dist/components/MonthPicker.vue.d.ts.map +1 -1
- package/dist/components/YearPicker.vue.d.ts +1 -0
- package/dist/components/YearPicker.vue.d.ts.map +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.css +1 -1
- package/dist/index.es.js +27 -18
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -3018,12 +3018,13 @@ const jn = {
|
|
|
3018
3018
|
readonly: { type: Boolean, default: !1 },
|
|
3019
3019
|
required: { type: Boolean, default: !1 },
|
|
3020
3020
|
showIcon: { type: Boolean, default: !1 },
|
|
3021
|
-
showClearButton: { type: Boolean, default: !1 }
|
|
3021
|
+
showClearButton: { type: Boolean, default: !1 },
|
|
3022
|
+
id: {}
|
|
3022
3023
|
},
|
|
3023
3024
|
emits: ["update:modelValue", "change", "clear"],
|
|
3024
3025
|
setup(e, { emit: i }) {
|
|
3025
3026
|
const t = e, a = i, o = z(), r = z(), d = z(), u = z(!1), p = z({}), m = z(!1), k = z(null), w = v(
|
|
3026
|
-
() => `month-picker-${Math.random().toString(36).substr(2, 9)}`
|
|
3027
|
+
() => t.id || `month-picker-${Math.random().toString(36).substr(2, 9)}`
|
|
3027
3028
|
), x = v(() => t.modelValue), _ = [
|
|
3028
3029
|
"Jan",
|
|
3029
3030
|
"Feb",
|
|
@@ -3132,7 +3133,7 @@ const jn = {
|
|
|
3132
3133
|
onKeydown: ie
|
|
3133
3134
|
}, [
|
|
3134
3135
|
e.showIcon ? (s(), n("div", Tl, [...B[1] || (B[1] = [
|
|
3135
|
-
Ue('<svg width="16" height="16" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-
|
|
3136
|
+
Ue('<svg width="16" height="16" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-71cbdabb><rect x="3" y="4" width="18" height="18" rx="2" ry="2" stroke="currentColor" stroke-width="2" data-v-71cbdabb></rect><line x1="16" y1="2" x2="16" y2="6" stroke="currentColor" stroke-width="2" stroke-linecap="round" data-v-71cbdabb></line><line x1="8" y1="2" x2="8" y2="6" stroke="currentColor" stroke-width="2" stroke-linecap="round" data-v-71cbdabb></line><line x1="3" y1="10" x2="21" y2="10" stroke="currentColor" stroke-width="2" stroke-linecap="round" data-v-71cbdabb></line></svg>', 1)
|
|
3136
3137
|
])])) : b("", !0),
|
|
3137
3138
|
l("span", Al, I(c.value || e.placeholder), 1),
|
|
3138
3139
|
e.showClearButton && x.value !== void 0 && !e.disabled && !e.readonly ? (s(), n("button", {
|
|
@@ -3239,7 +3240,7 @@ const jn = {
|
|
|
3239
3240
|
}, I(e.statusMessage), 3)) : b("", !0)
|
|
3240
3241
|
], 2));
|
|
3241
3242
|
}
|
|
3242
|
-
}), at = /* @__PURE__ */ ye(Nl, [["__scopeId", "data-v-
|
|
3243
|
+
}), at = /* @__PURE__ */ ye(Nl, [["__scopeId", "data-v-71cbdabb"]]), Rl = {
|
|
3243
3244
|
key: 0,
|
|
3244
3245
|
class: "ina-multiple-choice-grid__title"
|
|
3245
3246
|
}, Pl = {
|
|
@@ -4588,7 +4589,7 @@ const yi = async (e) => {
|
|
|
4588
4589
|
emits: ["update:modelValue", "change", "focus", "blur"],
|
|
4589
4590
|
setup(e, { expose: i, emit: t }) {
|
|
4590
4591
|
const a = e, o = t, r = z([]), d = z(a.modelValue), u = v(
|
|
4591
|
-
() => `radio-input-label-${Math.random().toString(36).substr(2, 9)}`
|
|
4592
|
+
() => a.name || `radio-input-label-${Math.random().toString(36).substr(2, 9)}`
|
|
4592
4593
|
), p = v(() => {
|
|
4593
4594
|
const c = ["ina-radio-input"];
|
|
4594
4595
|
return c.push(`ina-radio-input--size-${a.size}`), c.push(`ina-radio-input--orientation-${a.orientation}`), a.disabled && c.push("ina-radio-input--disabled"), a.error && c.push("ina-radio-input--error"), c;
|
|
@@ -4747,12 +4748,13 @@ const to = /* @__PURE__ */ ye(Xi, [["render", eo]]), ao = ["for"], so = {
|
|
|
4747
4748
|
maxYear: { default: 2100 },
|
|
4748
4749
|
decadeSize: { default: 20 },
|
|
4749
4750
|
showIcon: { type: Boolean, default: !1 },
|
|
4750
|
-
showClearButton: { type: Boolean, default: !1 }
|
|
4751
|
+
showClearButton: { type: Boolean, default: !1 },
|
|
4752
|
+
id: {}
|
|
4751
4753
|
},
|
|
4752
4754
|
emits: ["update:modelValue", "change", "clear"],
|
|
4753
4755
|
setup(e, { emit: i }) {
|
|
4754
4756
|
const t = e, a = i, o = z(), r = z(), d = z(), u = z(!1), p = z({}), m = z(!1), k = z(null), w = z(t.decadeSize), x = v(() => c.value ? Math.floor(c.value / w.value) * w.value : Math.floor((/* @__PURE__ */ new Date()).getFullYear() / w.value) * w.value), _ = v(
|
|
4755
|
-
() => `year-picker-${Math.random().toString(36).substr(2, 9)}`
|
|
4757
|
+
() => t.id || `year-picker-${Math.random().toString(36).substr(2, 9)}`
|
|
4756
4758
|
), c = v(() => t.modelValue);
|
|
4757
4759
|
v(
|
|
4758
4760
|
() => Math.floor(t.minYear / w.value) * w.value
|
|
@@ -4876,7 +4878,7 @@ const to = /* @__PURE__ */ ye(Xi, [["render", eo]]), ao = ["for"], so = {
|
|
|
4876
4878
|
onKeydown: h
|
|
4877
4879
|
}, [
|
|
4878
4880
|
e.showIcon ? (s(), n("div", io, [...U[1] || (U[1] = [
|
|
4879
|
-
Ue('<svg width="16" height="16" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-
|
|
4881
|
+
Ue('<svg width="16" height="16" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-b6049cd2><rect x="3" y="4" width="18" height="18" rx="2" ry="2" stroke="currentColor" stroke-width="2" data-v-b6049cd2></rect><line x1="16" y1="2" x2="16" y2="6" stroke="currentColor" stroke-width="2" stroke-linecap="round" data-v-b6049cd2></line><line x1="8" y1="2" x2="8" y2="6" stroke="currentColor" stroke-width="2" stroke-linecap="round" data-v-b6049cd2></line><line x1="3" y1="10" x2="21" y2="10" stroke="currentColor" stroke-width="2" stroke-linecap="round" data-v-b6049cd2></line></svg>', 1)
|
|
4880
4882
|
])])) : b("", !0),
|
|
4881
4883
|
l("span", oo, I(c.value || e.placeholder), 1),
|
|
4882
4884
|
e.showClearButton && c.value && !e.disabled && !e.readonly ? (s(), n("button", {
|
|
@@ -5017,7 +5019,7 @@ const to = /* @__PURE__ */ ye(Xi, [["render", eo]]), ao = ["for"], so = {
|
|
|
5017
5019
|
}, I(e.statusMessage), 3)) : b("", !0)
|
|
5018
5020
|
], 2));
|
|
5019
5021
|
}
|
|
5020
|
-
}), nt = /* @__PURE__ */ ye(po, [["__scopeId", "data-v-
|
|
5022
|
+
}), nt = /* @__PURE__ */ ye(po, [["__scopeId", "data-v-b6049cd2"]]), mo = ["for"], go = { key: 1 }, bo = {
|
|
5021
5023
|
key: 2,
|
|
5022
5024
|
class: "ina-date-picker__required"
|
|
5023
5025
|
}, yo = {
|
|
@@ -5060,14 +5062,15 @@ const to = /* @__PURE__ */ ye(Xi, [["render", eo]]), ao = ["for"], so = {
|
|
|
5060
5062
|
panelClassName: { default: "" },
|
|
5061
5063
|
triggerClassname: { default: "" },
|
|
5062
5064
|
popperPlacement: { default: "bottom-start" },
|
|
5063
|
-
panelOnly: { type: Boolean, default: !1 }
|
|
5065
|
+
panelOnly: { type: Boolean, default: !1 },
|
|
5066
|
+
id: {}
|
|
5064
5067
|
},
|
|
5065
5068
|
emits: ["update:modelValue", "change", "clear"],
|
|
5066
5069
|
setup(e, { expose: i, emit: t }) {
|
|
5067
5070
|
const a = e, o = t, r = z(), d = z(), u = z(!1), p = z({}), m = z(/* @__PURE__ */ new Date()), k = z(new Date((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() + 1)));
|
|
5068
5071
|
z(null);
|
|
5069
5072
|
const w = z(!1), x = z(null), _ = v(
|
|
5070
|
-
() => `date-picker-${Math.random().toString(36).substring(2, 9)}`
|
|
5073
|
+
() => a.id || `date-picker-${Math.random().toString(36).substring(2, 9)}`
|
|
5071
5074
|
), c = v(() => `${_.value}-status`), g = v(() => m.value.getFullYear()), f = v(() => m.value.getMonth()), $ = v(() => k.value.getFullYear()), D = v(() => k.value.getMonth()), E = [
|
|
5072
5075
|
"Januari",
|
|
5073
5076
|
"Februari",
|
|
@@ -5588,15 +5591,17 @@ const to = /* @__PURE__ */ ye(Xi, [["render", eo]]), ao = ["for"], so = {
|
|
|
5588
5591
|
l("div", xo, [
|
|
5589
5592
|
l("div", Mo, [
|
|
5590
5593
|
oe(at, {
|
|
5594
|
+
id: `${_.value}-month`,
|
|
5591
5595
|
"model-value": f.value,
|
|
5592
5596
|
disabled: e.disabled,
|
|
5593
5597
|
readonly: e.readonly,
|
|
5594
5598
|
size: "sm",
|
|
5595
5599
|
"onUpdate:modelValue": j
|
|
5596
|
-
}, null, 8, ["model-value", "disabled", "readonly"])
|
|
5600
|
+
}, null, 8, ["id", "model-value", "disabled", "readonly"])
|
|
5597
5601
|
]),
|
|
5598
5602
|
l("div", So, [
|
|
5599
5603
|
oe(nt, {
|
|
5604
|
+
id: `${_.value}-year`,
|
|
5600
5605
|
"model-value": g.value,
|
|
5601
5606
|
"min-year": 1900,
|
|
5602
5607
|
"max-year": 2100,
|
|
@@ -5605,7 +5610,7 @@ const to = /* @__PURE__ */ ye(Xi, [["render", eo]]), ao = ["for"], so = {
|
|
|
5605
5610
|
readonly: e.readonly,
|
|
5606
5611
|
size: "sm",
|
|
5607
5612
|
"onUpdate:modelValue": le
|
|
5608
|
-
}, null, 8, ["model-value", "disabled", "readonly"])
|
|
5613
|
+
}, null, 8, ["id", "model-value", "disabled", "readonly"])
|
|
5609
5614
|
])
|
|
5610
5615
|
]),
|
|
5611
5616
|
l("button", {
|
|
@@ -5661,15 +5666,17 @@ const to = /* @__PURE__ */ ye(Xi, [["render", eo]]), ao = ["for"], so = {
|
|
|
5661
5666
|
l("div", Eo, [
|
|
5662
5667
|
l("div", Lo, [
|
|
5663
5668
|
oe(at, {
|
|
5669
|
+
id: `${_.value}-left-month`,
|
|
5664
5670
|
"model-value": f.value,
|
|
5665
5671
|
disabled: e.disabled,
|
|
5666
5672
|
readonly: e.readonly,
|
|
5667
5673
|
size: "sm",
|
|
5668
5674
|
"onUpdate:modelValue": j
|
|
5669
|
-
}, null, 8, ["model-value", "disabled", "readonly"])
|
|
5675
|
+
}, null, 8, ["id", "model-value", "disabled", "readonly"])
|
|
5670
5676
|
]),
|
|
5671
5677
|
l("div", No, [
|
|
5672
5678
|
oe(nt, {
|
|
5679
|
+
id: `${_.value}-left-year`,
|
|
5673
5680
|
"model-value": g.value,
|
|
5674
5681
|
"min-year": 1900,
|
|
5675
5682
|
"max-year": 2100,
|
|
@@ -5678,7 +5685,7 @@ const to = /* @__PURE__ */ ye(Xi, [["render", eo]]), ao = ["for"], so = {
|
|
|
5678
5685
|
readonly: e.readonly,
|
|
5679
5686
|
size: "sm",
|
|
5680
5687
|
"onUpdate:modelValue": le
|
|
5681
|
-
}, null, 8, ["model-value", "disabled", "readonly"])
|
|
5688
|
+
}, null, 8, ["id", "model-value", "disabled", "readonly"])
|
|
5682
5689
|
])
|
|
5683
5690
|
]),
|
|
5684
5691
|
l("button", {
|
|
@@ -5762,15 +5769,17 @@ const to = /* @__PURE__ */ ye(Xi, [["render", eo]]), ao = ["for"], so = {
|
|
|
5762
5769
|
l("div", Go, [
|
|
5763
5770
|
l("div", Uo, [
|
|
5764
5771
|
oe(at, {
|
|
5772
|
+
id: `${_.value}-right-month`,
|
|
5765
5773
|
"model-value": D.value,
|
|
5766
5774
|
disabled: e.disabled,
|
|
5767
5775
|
readonly: e.readonly,
|
|
5768
5776
|
size: "sm",
|
|
5769
5777
|
"onUpdate:modelValue": G
|
|
5770
|
-
}, null, 8, ["model-value", "disabled", "readonly"])
|
|
5778
|
+
}, null, 8, ["id", "model-value", "disabled", "readonly"])
|
|
5771
5779
|
]),
|
|
5772
5780
|
l("div", Wo, [
|
|
5773
5781
|
oe(nt, {
|
|
5782
|
+
id: `${_.value}-right-year`,
|
|
5774
5783
|
"model-value": $.value,
|
|
5775
5784
|
"min-year": 1900,
|
|
5776
5785
|
"max-year": 2100,
|
|
@@ -5779,7 +5788,7 @@ const to = /* @__PURE__ */ ye(Xi, [["render", eo]]), ao = ["for"], so = {
|
|
|
5779
5788
|
readonly: e.readonly,
|
|
5780
5789
|
size: "sm",
|
|
5781
5790
|
"onUpdate:modelValue": L
|
|
5782
|
-
}, null, 8, ["model-value", "disabled", "readonly"])
|
|
5791
|
+
}, null, 8, ["id", "model-value", "disabled", "readonly"])
|
|
5783
5792
|
])
|
|
5784
5793
|
]),
|
|
5785
5794
|
l("button", {
|
|
@@ -5851,7 +5860,7 @@ const to = /* @__PURE__ */ ye(Xi, [["render", eo]]), ao = ["for"], so = {
|
|
|
5851
5860
|
}, I(e.statusMessage), 11, Xo)) : b("", !0)
|
|
5852
5861
|
], 2));
|
|
5853
5862
|
}
|
|
5854
|
-
}), er = /* @__PURE__ */ ye(Qo, [["__scopeId", "data-v-
|
|
5863
|
+
}), er = /* @__PURE__ */ ye(Qo, [["__scopeId", "data-v-774aaf1a"]]), tr = Z({
|
|
5855
5864
|
name: "IconChevronUp",
|
|
5856
5865
|
props: {
|
|
5857
5866
|
size: {
|