finso-vue-components 0.1.1 → 0.1.2
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.
|
@@ -11,24 +11,20 @@ export interface FTextFieldProps {
|
|
|
11
11
|
readonly?: boolean;
|
|
12
12
|
rules?: ((value: string) => boolean | string)[];
|
|
13
13
|
}
|
|
14
|
-
|
|
15
|
-
type __VLS_PublicProps = __VLS_Props & {
|
|
16
|
-
modelValue?: string;
|
|
17
|
-
};
|
|
18
|
-
declare var __VLS_6: {}, __VLS_8: {}, __VLS_10: {}, __VLS_12: {};
|
|
14
|
+
declare var __VLS_10: {}, __VLS_12: {}, __VLS_14: {}, __VLS_16: {};
|
|
19
15
|
type __VLS_Slots = {} & {
|
|
20
|
-
prepend?: (props: typeof
|
|
16
|
+
prepend?: (props: typeof __VLS_10) => any;
|
|
21
17
|
} & {
|
|
22
|
-
'prepend-inner'?: (props: typeof
|
|
18
|
+
'prepend-inner'?: (props: typeof __VLS_12) => any;
|
|
23
19
|
} & {
|
|
24
|
-
'append-inner'?: (props: typeof
|
|
20
|
+
'append-inner'?: (props: typeof __VLS_14) => any;
|
|
25
21
|
} & {
|
|
26
|
-
append?: (props: typeof
|
|
22
|
+
append?: (props: typeof __VLS_16) => any;
|
|
27
23
|
};
|
|
28
|
-
declare const __VLS_component: import("vue").DefineComponent<
|
|
29
|
-
"update:modelValue": (value: string
|
|
30
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
31
|
-
"onUpdate:modelValue"?: ((value: string
|
|
24
|
+
declare const __VLS_component: import("vue").DefineComponent<FTextFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
|
+
"update:modelValue": (value: string) => any;
|
|
26
|
+
}, string, import("vue").PublicProps, Readonly<FTextFieldProps> & Readonly<{
|
|
27
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
32
28
|
}>, {
|
|
33
29
|
variant: "filled" | "outlined" | "plain" | "underlined" | "solo" | "solo-inverted" | "solo-filled";
|
|
34
30
|
disabled: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as o, resolveComponent as s, openBlock as i, createBlock as r, mergeProps as u, createSlots as f, withCtx as t, renderSlot as n, renderList as y, normalizeProps as h, guardReactiveProps as b } from "vue";
|
|
2
|
+
const c = /* @__PURE__ */ o({
|
|
3
3
|
name: "FButton",
|
|
4
4
|
inheritAttrs: !1,
|
|
5
5
|
__name: "FButton",
|
|
@@ -12,43 +12,43 @@ const g = /* @__PURE__ */ s({
|
|
|
12
12
|
disabled: { type: Boolean, default: !1 }
|
|
13
13
|
},
|
|
14
14
|
setup(e) {
|
|
15
|
-
return (a,
|
|
16
|
-
const
|
|
17
|
-
return
|
|
15
|
+
return (a, d) => {
|
|
16
|
+
const l = s("v-btn");
|
|
17
|
+
return i(), r(l, u(a.$attrs, {
|
|
18
18
|
variant: e.variant,
|
|
19
19
|
color: e.color,
|
|
20
20
|
size: e.size,
|
|
21
21
|
rounded: e.rounded,
|
|
22
22
|
loading: e.loading,
|
|
23
23
|
disabled: e.disabled
|
|
24
|
-
}),
|
|
25
|
-
default:
|
|
26
|
-
|
|
24
|
+
}), f({
|
|
25
|
+
default: t(() => [
|
|
26
|
+
n(a.$slots, "default")
|
|
27
27
|
]),
|
|
28
28
|
_: 2
|
|
29
29
|
}, [
|
|
30
30
|
a.$slots.prepend ? {
|
|
31
31
|
name: "prepend",
|
|
32
|
-
fn:
|
|
33
|
-
|
|
32
|
+
fn: t(() => [
|
|
33
|
+
n(a.$slots, "prepend")
|
|
34
34
|
]),
|
|
35
35
|
key: "0"
|
|
36
36
|
} : void 0,
|
|
37
37
|
a.$slots.append ? {
|
|
38
38
|
name: "append",
|
|
39
|
-
fn:
|
|
40
|
-
|
|
39
|
+
fn: t(() => [
|
|
40
|
+
n(a.$slots, "append")
|
|
41
41
|
]),
|
|
42
42
|
key: "1"
|
|
43
43
|
} : void 0
|
|
44
44
|
]), 1040, ["variant", "color", "size", "rounded", "loading", "disabled"]);
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
}),
|
|
47
|
+
}), $ = /* @__PURE__ */ o({
|
|
48
48
|
name: "FTextField",
|
|
49
49
|
inheritAttrs: !1,
|
|
50
50
|
__name: "FTextField",
|
|
51
|
-
props:
|
|
51
|
+
props: {
|
|
52
52
|
modelValue: { default: "" },
|
|
53
53
|
variant: { default: "outlined" },
|
|
54
54
|
density: { default: "default" },
|
|
@@ -60,18 +60,14 @@ const g = /* @__PURE__ */ s({
|
|
|
60
60
|
disabled: { type: Boolean, default: !1 },
|
|
61
61
|
readonly: { type: Boolean, default: !1 },
|
|
62
62
|
rules: {}
|
|
63
|
-
},
|
|
64
|
-
modelValue: {},
|
|
65
|
-
modelModifiers: {}
|
|
66
|
-
}),
|
|
63
|
+
},
|
|
67
64
|
emits: ["update:modelValue"],
|
|
68
65
|
setup(e) {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
modelValue: a
|
|
74
|
-
"onUpdate:modelValue": d[0] || (d[0] = (o) => a.value = o),
|
|
66
|
+
return (a, d) => {
|
|
67
|
+
const l = s("v-text-field");
|
|
68
|
+
return i(), r(l, u(a.$attrs, {
|
|
69
|
+
"model-value": e.modelValue,
|
|
70
|
+
"onUpdate:modelValue": d[0] || (d[0] = (m) => a.$emit("update:modelValue", m)),
|
|
75
71
|
variant: e.variant,
|
|
76
72
|
density: e.density,
|
|
77
73
|
label: e.label,
|
|
@@ -82,39 +78,39 @@ const g = /* @__PURE__ */ s({
|
|
|
82
78
|
disabled: e.disabled,
|
|
83
79
|
readonly: e.readonly,
|
|
84
80
|
rules: e.rules
|
|
85
|
-
}),
|
|
86
|
-
|
|
81
|
+
}), f({ _: 2 }, [
|
|
82
|
+
a.$slots.prepend ? {
|
|
87
83
|
name: "prepend",
|
|
88
|
-
fn:
|
|
89
|
-
|
|
84
|
+
fn: t(() => [
|
|
85
|
+
n(a.$slots, "prepend")
|
|
90
86
|
]),
|
|
91
87
|
key: "0"
|
|
92
88
|
} : void 0,
|
|
93
|
-
|
|
89
|
+
a.$slots["prepend-inner"] ? {
|
|
94
90
|
name: "prepend-inner",
|
|
95
|
-
fn:
|
|
96
|
-
|
|
91
|
+
fn: t(() => [
|
|
92
|
+
n(a.$slots, "prepend-inner")
|
|
97
93
|
]),
|
|
98
94
|
key: "1"
|
|
99
95
|
} : void 0,
|
|
100
|
-
|
|
96
|
+
a.$slots["append-inner"] ? {
|
|
101
97
|
name: "append-inner",
|
|
102
|
-
fn:
|
|
103
|
-
|
|
98
|
+
fn: t(() => [
|
|
99
|
+
n(a.$slots, "append-inner")
|
|
104
100
|
]),
|
|
105
101
|
key: "2"
|
|
106
102
|
} : void 0,
|
|
107
|
-
|
|
103
|
+
a.$slots.append ? {
|
|
108
104
|
name: "append",
|
|
109
|
-
fn:
|
|
110
|
-
|
|
105
|
+
fn: t(() => [
|
|
106
|
+
n(a.$slots, "append")
|
|
111
107
|
]),
|
|
112
108
|
key: "3"
|
|
113
109
|
} : void 0
|
|
114
|
-
]), 1040, ["
|
|
110
|
+
]), 1040, ["model-value", "variant", "density", "label", "placeholder", "hint", "persistent-hint", "clearable", "disabled", "readonly", "rules"]);
|
|
115
111
|
};
|
|
116
112
|
}
|
|
117
|
-
}),
|
|
113
|
+
}), F = /* @__PURE__ */ o({
|
|
118
114
|
name: "FDataTable",
|
|
119
115
|
inheritAttrs: !1,
|
|
120
116
|
__name: "FDataTable",
|
|
@@ -128,9 +124,9 @@ const g = /* @__PURE__ */ s({
|
|
|
128
124
|
density: { default: "default" }
|
|
129
125
|
},
|
|
130
126
|
setup(e) {
|
|
131
|
-
return (a,
|
|
132
|
-
const
|
|
133
|
-
return
|
|
127
|
+
return (a, d) => {
|
|
128
|
+
const l = s("v-data-table");
|
|
129
|
+
return i(), r(l, u(a.$attrs, {
|
|
134
130
|
headers: e.headers,
|
|
135
131
|
items: e.items,
|
|
136
132
|
loading: e.loading,
|
|
@@ -138,24 +134,24 @@ const g = /* @__PURE__ */ s({
|
|
|
138
134
|
"items-per-page": e.itemsPerPage,
|
|
139
135
|
hover: e.hover,
|
|
140
136
|
density: e.density
|
|
141
|
-
}),
|
|
142
|
-
|
|
143
|
-
name:
|
|
144
|
-
fn:
|
|
145
|
-
|
|
137
|
+
}), f({ _: 2 }, [
|
|
138
|
+
y(a.$slots, (m, p) => ({
|
|
139
|
+
name: p,
|
|
140
|
+
fn: t((v) => [
|
|
141
|
+
n(a.$slots, p, h(b(v ?? {})))
|
|
146
142
|
])
|
|
147
143
|
}))
|
|
148
144
|
]), 1040, ["headers", "items", "loading", "search", "items-per-page", "hover", "density"]);
|
|
149
145
|
};
|
|
150
146
|
}
|
|
151
|
-
}),
|
|
147
|
+
}), B = {
|
|
152
148
|
install(e) {
|
|
153
|
-
e.component("FButton",
|
|
149
|
+
e.component("FButton", c), e.component("FTextField", $), e.component("FDataTable", F);
|
|
154
150
|
}
|
|
155
151
|
};
|
|
156
152
|
export {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
153
|
+
c as FButton,
|
|
154
|
+
F as FDataTable,
|
|
155
|
+
$ as FTextField,
|
|
156
|
+
B as default
|
|
161
157
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(a,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(a=typeof globalThis<"u"?globalThis:a||self,e(a.FinsoVueComponents={},a.Vue))})(this,(function(a,e){"use strict";const o=e.defineComponent({name:"FButton",inheritAttrs:!1,__name:"FButton",props:{variant:{default:"flat"},color:{default:"primary"},size:{default:"default"},rounded:{type:[String,Number,Boolean],default:"lg"},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup(t){return(n,d)=>{const l=e.resolveComponent("v-btn");return e.openBlock(),e.createBlock(l,e.mergeProps(n.$attrs,{variant:t.variant,color:t.color,size:t.size,rounded:t.rounded,loading:t.loading,disabled:t.disabled}),e.createSlots({default:e.withCtx(()=>[e.renderSlot(n.$slots,"default")]),_:2},[n.$slots.prepend?{name:"prepend",fn:e.withCtx(()=>[e.renderSlot(n.$slots,"prepend")]),key:"0"}:void 0,n.$slots.append?{name:"append",fn:e.withCtx(()=>[e.renderSlot(n.$slots,"append")]),key:"1"}:void 0]),1040,["variant","color","size","rounded","loading","disabled"])}}}),i=e.defineComponent({name:"FTextField",inheritAttrs:!1,__name:"FTextField",props:{modelValue:{default:""},variant:{default:"outlined"},density:{default:"default"},label:{},placeholder:{},hint:{},persistentHint:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},rules:{}},emits:["update:modelValue"],setup(t){return(n,d)=>{const l=e.resolveComponent("v-text-field");return e.openBlock(),e.createBlock(l,e.mergeProps(n.$attrs,{"model-value":t.modelValue,"onUpdate:modelValue":d[0]||(d[0]=s=>n.$emit("update:modelValue",s)),variant:t.variant,density:t.density,label:t.label,placeholder:t.placeholder,hint:t.hint,"persistent-hint":t.persistentHint,clearable:t.clearable,disabled:t.disabled,readonly:t.readonly,rules:t.rules}),e.createSlots({_:2},[n.$slots.prepend?{name:"prepend",fn:e.withCtx(()=>[e.renderSlot(n.$slots,"prepend")]),key:"0"}:void 0,n.$slots["prepend-inner"]?{name:"prepend-inner",fn:e.withCtx(()=>[e.renderSlot(n.$slots,"prepend-inner")]),key:"1"}:void 0,n.$slots["append-inner"]?{name:"append-inner",fn:e.withCtx(()=>[e.renderSlot(n.$slots,"append-inner")]),key:"2"}:void 0,n.$slots.append?{name:"append",fn:e.withCtx(()=>[e.renderSlot(n.$slots,"append")]),key:"3"}:void 0]),1040,["model-value","variant","density","label","placeholder","hint","persistent-hint","clearable","disabled","readonly","rules"])}}}),r=e.defineComponent({name:"FDataTable",inheritAttrs:!1,__name:"FDataTable",props:{headers:{},items:{},loading:{type:Boolean,default:!1},search:{default:""},itemsPerPage:{default:10},hover:{type:Boolean,default:!0},density:{default:"default"}},setup(t){return(n,d)=>{const l=e.resolveComponent("v-data-table");return e.openBlock(),e.createBlock(l,e.mergeProps(n.$attrs,{headers:t.headers,items:t.items,loading:t.loading,search:t.search,"items-per-page":t.itemsPerPage,hover:t.hover,density:t.density}),e.createSlots({_:2},[e.renderList(n.$slots,(s,f)=>({name:f,fn:e.withCtx(p=>[e.renderSlot(n.$slots,f,e.normalizeProps(e.guardReactiveProps(p??{})))])}))]),1040,["headers","items","loading","search","items-per-page","hover","density"])}}}),m={install(t){t.component("FButton",o),t.component("FTextField",i),t.component("FDataTable",r)}};a.FButton=o,a.FDataTable=r,a.FTextField=i,a.default=m,Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|