portal-design-system 0.0.967 → 0.0.969
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/inputs/DateInput.vue.d.ts +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +8 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -19,4 +19,5 @@ import { default as Pagination } from './components/Pagination.vue';
|
|
|
19
19
|
import { default as RadioGroup } from './components/inputs/RadioGroup.vue';
|
|
20
20
|
import { default as DialogHeading } from './components/overlays/Heading.vue';
|
|
21
21
|
import { default as DateInput } from './components/inputs/DateInput.vue';
|
|
22
|
-
|
|
22
|
+
import { default as Label } from './components/inputs/Label.vue';
|
|
23
|
+
export { Button, Select, Input, DateInput, Error, Iconsax, IconsaxFont, Badge, Dialog, Icon, Text, Tabs, Dropdown, DurationTimeline, Drawer, DialogHeading, Pagination, Label, RadioGroup, useOutsideClick, useWindowScroll, vTooltip };
|
package/dist/index.js
CHANGED
|
@@ -18910,6 +18910,7 @@ const $o = [
|
|
|
18910
18910
|
classList: {},
|
|
18911
18911
|
labelClassList: {},
|
|
18912
18912
|
range: { type: Boolean },
|
|
18913
|
+
rangePosition: {},
|
|
18913
18914
|
disabled: { type: Boolean },
|
|
18914
18915
|
monthPicker: { type: Boolean },
|
|
18915
18916
|
timePicker: { type: Boolean },
|
|
@@ -18947,7 +18948,11 @@ const $o = [
|
|
|
18947
18948
|
return o.rounded === "full" ? s += " rounded-full" : o.rounded === "lg" ? s += " rounded-lg" : s += " rounded-xl", no(s, o.classList);
|
|
18948
18949
|
}), a = (s) => o.timeConfig.enableTimePicker ? s.toLocaleString("sv") : s.toLocaleDateString("sv"), i = U(() => {
|
|
18949
18950
|
if (r.value) {
|
|
18950
|
-
if (o.range && Array.isArray(t.value) && t.value.length
|
|
18951
|
+
if (o.rangePosition === "start" && o.range && Array.isArray(t.value) && t.value.length >= 1 && t.value[0])
|
|
18952
|
+
return a(new Date(t.value[0]));
|
|
18953
|
+
if (o.rangePosition === "end" && o.range && Array.isArray(t.value) && t.value.length === 2 && t.value[1])
|
|
18954
|
+
return a(new Date(t.value[1]));
|
|
18955
|
+
if (!o.rangePosition && o.range && Array.isArray(t.value) && t.value.length === 2 && t.value[0] && t.value[1])
|
|
18951
18956
|
return `${a(new Date(t.value[0]))} - ${a(new Date(t.value[1]))}`;
|
|
18952
18957
|
if (!o.range)
|
|
18953
18958
|
return a(new Date(t.value));
|
|
@@ -19020,7 +19025,7 @@ const $o = [
|
|
|
19020
19025
|
Re(ma, { errors: e.errors }, null, 8, ["errors"])
|
|
19021
19026
|
]));
|
|
19022
19027
|
}
|
|
19023
|
-
}), Ag = /* @__PURE__ */ rr(pg, [["__scopeId", "data-v-
|
|
19028
|
+
}), Ag = /* @__PURE__ */ rr(pg, [["__scopeId", "data-v-a5b57991"]]);
|
|
19024
19029
|
export {
|
|
19025
19030
|
yg as Badge,
|
|
19026
19031
|
Kn as Button,
|
|
@@ -19035,6 +19040,7 @@ export {
|
|
|
19035
19040
|
mo as Iconsax,
|
|
19036
19041
|
hg as IconsaxFont,
|
|
19037
19042
|
gg as Input,
|
|
19043
|
+
pn as Label,
|
|
19038
19044
|
Dg as Pagination,
|
|
19039
19045
|
Mg as RadioGroup,
|
|
19040
19046
|
ju as Select,
|