@ghentcdh/ui 1.1.1 → 3.0.0
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/ControlWrapper-DejmeYzV.js +1 -0
- package/ControlWrapper-DqO2d36v.js +152 -0
- package/Markdown-DcpBYoNe.js +1 -0
- package/Markdown-Dj1gzJJq.js +59 -0
- package/button/Btn.properties.d.ts +6 -2
- package/button/btn.vue.d.ts +15 -5
- package/const/colors.d.ts +2 -1
- package/drawer/drawer.properties.d.ts +4 -0
- package/drawer/drawer.vue.d.ts +9 -0
- package/filter/filter.vue.d.ts +1 -1
- package/form/Checkbox.properties.d.ts +14 -1
- package/form/Checkbox.vue.d.ts +41 -8
- package/form/Input.properties.d.ts +18 -1
- package/form/Input.vue.d.ts +50 -8
- package/form/InputNumber.properties.d.ts +14 -1
- package/form/InputNumber.vue.d.ts +41 -8
- package/form/Textarea.properties.d.ts +26 -1
- package/form/Textarea.vue.d.ts +68 -8
- package/form/core/ControlWrapper.properties.d.ts +54 -1
- package/form/core/ControlWrapper.vue.d.ts +42 -8
- package/form/core/properties.d.ts +2 -16
- package/form/core/styles.d.ts +1 -1
- package/form/core/utils/style.d.ts +3 -3
- package/form/index.d.ts +273 -1
- package/form/select/AutoComplete.properties.d.ts +27 -2
- package/form/select/AutoComplete.vue.d.ts +75 -15
- package/form/select/ListResults.properties.d.ts +7 -1
- package/form/select/ListResults.vue.d.ts +12 -3
- package/form/select/MultiSelect.vue.d.ts +73 -13
- package/form/select/SelectComponent.vue.d.ts +61 -10
- package/form/select/SelectWrapper.properties.d.ts +57 -9
- package/form/select/SelectWrapper.vue.d.ts +99 -17
- package/form/text/Markdown.vue.d.ts +41 -8
- package/form/text/MarkdownComponent.properties.d.ts +14 -1
- package/form/text/MarkdownFallback.vue.d.ts +267 -0
- package/icons/icon-list.d.ts +3 -1
- package/index.css +3 -1
- package/index.d.ts +1 -0
- package/index.js +2 -2
- package/index.mjs +2318 -2359
- package/modal/modal.vue.d.ts +1 -0
- package/package.json +26 -16
- package/table/cells/text.cell.vue.d.ts +1 -1
- package/table/column.model.d.ts +6 -0
- package/table/header/sort.header.properties.d.ts +1 -1
- package/table/header/sort.header.vue.d.ts +2 -2
- package/table/index.d.ts +2 -0
- package/table/pagination.component.properties.d.ts +5 -0
- package/table/pagination.component.vue.d.ts +9 -0
- package/table/table.component.properties.d.ts +4 -0
- package/table/table.component.vue.d.ts +9 -0
- package/table/table.model.d.ts +4 -1
- package/testing.js +1 -1
- package/testing.mjs +338 -419
- package/test-utils/withSetup.d.ts +0 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./Markdown-DcpBYoNe.js`);let e=require(`vue`);var t={group:{root:`group`,label:`text-primary text-lg font-bold`,item:`group-item`},verticalLayout:{root:`flex flex-col gap-x-2`,item:`w-full`},horizontalLayout:{root:`flex flex-row gap-x-2`,item:`w-full`},arrayList:{root:`fieldset`,legend:`fieldset-legend text-xl capitalize`},control:{root:`fieldset`,wrapper:`fieldset`,label:`fieldset-legend`,error:``,input:`input`,textarea:`textarea h-32`,checkbox:`checkbox`,select:`input pr-14`,description:`form-control--description label text-xs text-gray-500`},fixedArrayList:{root:`flex flex-row gap-x-2`,item:`w-full`}},n=e=>{if(!e)return{...t};let n={...t};for(let r of Object.keys(e)){let i=e[r];i&&typeof i==`object`&&(n[r]={...t[r],...i})}return n},r={id:{type:String,default:void 0},placeholder:{type:String,default:void 0},description:{type:String,default:void 0},errors:{type:String,default:void 0},label:{type:String,default:void 0},visible:{type:Boolean,default:!1},required:{type:Boolean,default:!1},enabled:{type:Boolean,default:!0},isFocused:{type:Boolean,default:!1},isTouched:{type:Boolean,default:!1},hideLabel:{type:Boolean,default:!1},styles:{type:Object,default:()=>t},width:{type:String,default:`!w-48`},size:{type:String,default:void 0},hideErrors:{type:Boolean,default:!1}},i=[`change`],a={...r,width:{type:String,default:`w-48`},minHeight:{type:String,default:`min-h-[50vh]`},actions:{type:Object,default:()=>[{label:`<strong>B</strong>`,name:`bold`,action:e=>e?.chain().focus().toggleBold().run()},{label:`<em>I</em>`,name:`italic`,action:e=>e?.chain().focus().toggleItalic().run()}]}},o=({isTouched:e,errors:t})=>!!(e&&t),s=(e,t,n,r)=>t===void 0||t!==void 0&&!e||!r&&!n,c=(e,t)=>[e,{"input-sm":t.size===`sm`,"input-error":o(t)}],l={key:0,class:`flex items-center justify-between mb-2`},u={key:0},d=(0,e.defineComponent)({__name:`ControlWrapper`,props:r,setup(t){let r=t,i=(0,e.computed)(()=>!s(r.visible,r.description,r.isFocused,!0)),a=(0,e.computed)(()=>r.required),c=(0,e.computed)(()=>o(r)),d=(0,e.computed)(()=>n(r.styles));return(t,n)=>((0,e.openBlock)(),(0,e.createElementBlock)(`fieldset`,{class:(0,e.normalizeClass)([`fieldset`,[t.width,d.value.control.wrapper]])},[(0,e.createElementVNode)(`legend`,{class:(0,e.normalizeClass)([`w-full inline-block`,[d.value.control.label,{"p-0 h-0 leading-none":t.hideLabel}]])},[t.hideLabel?(0,e.createCommentVNode)(``,!0):((0,e.openBlock)(),(0,e.createElementBlock)(`div`,l,[(0,e.createElementVNode)(`div`,null,[(0,e.createElementVNode)(`span`,null,(0,e.toDisplayString)(t.label),1),a.value?((0,e.openBlock)(),(0,e.createElementBlock)(`span`,u,`*`)):(0,e.createCommentVNode)(``,!0)]),(0,e.renderSlot)(t.$slots,`label-action`)]))],2),(0,e.renderSlot)(t.$slots,`default`),t.hideErrors?(0,e.createCommentVNode)(``,!0):((0,e.openBlock)(),(0,e.createElementBlock)(`p`,{key:0,class:(0,e.normalizeClass)([`fieldset-label h-4`,{"text-error":c.value}])},(0,e.toDisplayString)(c.value?t.errors:i.value?t.description:null),3))],2))}});Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return d}});
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { computed as e, createCommentVNode as t, createElementBlock as n, createElementVNode as r, defineComponent as i, normalizeClass as a, openBlock as o, renderSlot as s, toDisplayString as c } from "vue";
|
|
2
|
+
//#region src/form/core/styles.ts
|
|
3
|
+
var l = {
|
|
4
|
+
group: {
|
|
5
|
+
root: "group",
|
|
6
|
+
label: "text-primary text-lg font-bold",
|
|
7
|
+
item: "group-item"
|
|
8
|
+
},
|
|
9
|
+
verticalLayout: {
|
|
10
|
+
root: "flex flex-col gap-x-2",
|
|
11
|
+
item: "w-full"
|
|
12
|
+
},
|
|
13
|
+
horizontalLayout: {
|
|
14
|
+
root: "flex flex-row gap-x-2",
|
|
15
|
+
item: "w-full"
|
|
16
|
+
},
|
|
17
|
+
arrayList: {
|
|
18
|
+
root: "fieldset",
|
|
19
|
+
legend: "fieldset-legend text-xl capitalize"
|
|
20
|
+
},
|
|
21
|
+
control: {
|
|
22
|
+
root: "fieldset",
|
|
23
|
+
wrapper: "fieldset",
|
|
24
|
+
label: "fieldset-legend",
|
|
25
|
+
error: "",
|
|
26
|
+
input: "input",
|
|
27
|
+
textarea: "textarea h-32",
|
|
28
|
+
checkbox: "checkbox",
|
|
29
|
+
select: "input pr-14",
|
|
30
|
+
description: "form-control--description label text-xs text-gray-500"
|
|
31
|
+
},
|
|
32
|
+
fixedArrayList: {
|
|
33
|
+
root: "flex flex-row gap-x-2",
|
|
34
|
+
item: "w-full"
|
|
35
|
+
}
|
|
36
|
+
}, u = (e) => {
|
|
37
|
+
if (!e) return { ...l };
|
|
38
|
+
let t = { ...l };
|
|
39
|
+
for (let n of Object.keys(e)) {
|
|
40
|
+
let r = e[n];
|
|
41
|
+
r && typeof r == "object" && (t[n] = {
|
|
42
|
+
...l[n],
|
|
43
|
+
...r
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
return t;
|
|
47
|
+
}, d = {
|
|
48
|
+
id: {
|
|
49
|
+
type: String,
|
|
50
|
+
default: void 0
|
|
51
|
+
},
|
|
52
|
+
placeholder: {
|
|
53
|
+
type: String,
|
|
54
|
+
default: void 0
|
|
55
|
+
},
|
|
56
|
+
description: {
|
|
57
|
+
type: String,
|
|
58
|
+
default: void 0
|
|
59
|
+
},
|
|
60
|
+
errors: {
|
|
61
|
+
type: String,
|
|
62
|
+
default: void 0
|
|
63
|
+
},
|
|
64
|
+
label: {
|
|
65
|
+
type: String,
|
|
66
|
+
default: void 0
|
|
67
|
+
},
|
|
68
|
+
visible: {
|
|
69
|
+
type: Boolean,
|
|
70
|
+
default: !1
|
|
71
|
+
},
|
|
72
|
+
required: {
|
|
73
|
+
type: Boolean,
|
|
74
|
+
default: !1
|
|
75
|
+
},
|
|
76
|
+
enabled: {
|
|
77
|
+
type: Boolean,
|
|
78
|
+
default: !0
|
|
79
|
+
},
|
|
80
|
+
isFocused: {
|
|
81
|
+
type: Boolean,
|
|
82
|
+
default: !1
|
|
83
|
+
},
|
|
84
|
+
isTouched: {
|
|
85
|
+
type: Boolean,
|
|
86
|
+
default: !1
|
|
87
|
+
},
|
|
88
|
+
hideLabel: {
|
|
89
|
+
type: Boolean,
|
|
90
|
+
default: !1
|
|
91
|
+
},
|
|
92
|
+
styles: {
|
|
93
|
+
type: Object,
|
|
94
|
+
default: () => l
|
|
95
|
+
},
|
|
96
|
+
width: {
|
|
97
|
+
type: String,
|
|
98
|
+
default: "!w-48"
|
|
99
|
+
},
|
|
100
|
+
size: {
|
|
101
|
+
type: String,
|
|
102
|
+
default: void 0
|
|
103
|
+
},
|
|
104
|
+
hideErrors: {
|
|
105
|
+
type: Boolean,
|
|
106
|
+
default: !1
|
|
107
|
+
}
|
|
108
|
+
}, f = ["change"], p = {
|
|
109
|
+
...d,
|
|
110
|
+
width: {
|
|
111
|
+
type: String,
|
|
112
|
+
default: "w-48"
|
|
113
|
+
},
|
|
114
|
+
minHeight: {
|
|
115
|
+
type: String,
|
|
116
|
+
default: "min-h-[50vh]"
|
|
117
|
+
},
|
|
118
|
+
actions: {
|
|
119
|
+
type: Object,
|
|
120
|
+
default: () => [{
|
|
121
|
+
label: "<strong>B</strong>",
|
|
122
|
+
name: "bold",
|
|
123
|
+
action: (e) => e?.chain().focus().toggleBold().run()
|
|
124
|
+
}, {
|
|
125
|
+
label: "<em>I</em>",
|
|
126
|
+
name: "italic",
|
|
127
|
+
action: (e) => e?.chain().focus().toggleItalic().run()
|
|
128
|
+
}]
|
|
129
|
+
}
|
|
130
|
+
}, m = ({ isTouched: e, errors: t }) => !!(e && t), h = (e, t, n, r) => t === void 0 || t !== void 0 && !e || !r && !n, g = (e, t) => [e, {
|
|
131
|
+
"input-sm": t.size === "sm",
|
|
132
|
+
"input-error": m(t)
|
|
133
|
+
}], _ = {
|
|
134
|
+
key: 0,
|
|
135
|
+
class: "flex items-center justify-between mb-2"
|
|
136
|
+
}, v = { key: 0 }, y = /* @__PURE__ */ i({
|
|
137
|
+
__name: "ControlWrapper",
|
|
138
|
+
props: d,
|
|
139
|
+
setup(i) {
|
|
140
|
+
let l = i, d = e(() => !h(l.visible, l.description, l.isFocused, !0)), f = e(() => l.required), p = e(() => m(l)), g = e(() => u(l.styles));
|
|
141
|
+
return (e, i) => (o(), n("fieldset", { class: a(["fieldset", [e.width, g.value.control.wrapper]]) }, [
|
|
142
|
+
r("legend", { class: a(["w-full inline-block", [g.value.control.label, { "p-0 h-0 leading-none": e.hideLabel }]]) }, [e.hideLabel ? t("", !0) : (o(), n("div", _, [r("div", null, [r("span", null, c(e.label), 1), f.value ? (o(), n("span", v, "*")) : t("", !0)]), s(e.$slots, "label-action")]))], 2),
|
|
143
|
+
s(e.$slots, "default"),
|
|
144
|
+
e.hideErrors ? t("", !0) : (o(), n("p", {
|
|
145
|
+
key: 0,
|
|
146
|
+
class: a(["fieldset-label h-4", { "text-error": p.value }])
|
|
147
|
+
}, c(p.value ? e.errors : d.value ? e.description : null), 3))
|
|
148
|
+
], 2));
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
//#endregion
|
|
152
|
+
export { p as a, u as c, m as i, l, g as n, f as o, h as r, d as s, y as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));const c=require(`./ControlWrapper-DejmeYzV.js`);let l=require(`vue`),u=require(`@tiptap/starter-kit`);u=s(u);let d=require(`@tiptap/vue-3`),f=require(`tiptap-markdown`);var p=[`aria-label`],m={class:`flex items-center gap-1 px-3 py-2 border-b border-base-300 bg-base-200`},h=[`title`,`onClick`],g=[`innerHTML`],_={class:`card-body p-3`},v=(0,l.defineComponent)({__name:`Markdown`,props:(0,l.mergeModels)(c.a,{modelValue:{},modelModifiers:{}}),emits:(0,l.mergeModels)(c.o,[`update:modelValue`]),setup(e,{emit:t}){let n=e,r=t,i=(0,l.useModel)(e,`modelValue`),a=(0,d.useEditor)({content:i.value??``,extensions:[u.default.configure({heading:!1,blockquote:!1,bulletList:!1,orderedList:!1,listItem:!1,code:!1,codeBlock:!1,horizontalRule:!1,hardBreak:!1}),f.Markdown.configure({html:!1,transformPastedText:!0})],onUpdate({editor:e}){let t=e.storage.markdown.getMarkdown();i.value=t,r(`change`,t)}});return(0,l.onBeforeUnmount)(()=>{a.value?.destroy()}),(e,t)=>((0,l.openBlock)(),(0,l.createBlock)(c.t,(0,l.normalizeProps)((0,l.guardReactiveProps)(n)),{default:(0,l.withCtx)(()=>[(0,l.createElementVNode)(`div`,{class:(0,l.normalizeClass)([[e.minHeight],`card bg-base-100 border border-base-300 w-full`]),"aria-label":e.id,role:`textbox`},[(0,l.createElementVNode)(`div`,m,[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(e.actions,e=>((0,l.openBlock)(),(0,l.createElementBlock)(`button`,{key:e.name,tabindex:`-1`,type:`button`,class:(0,l.normalizeClass)([`btn btn-sm btn-ghost`,{"btn-active":(0,l.unref)(a)?.isActive(e.name)}]),title:e.label,onClick:t=>e.action((0,l.unref)(a))},[(0,l.createElementVNode)(`span`,{innerHTML:e.label},null,8,g)],10,h))),128))]),(0,l.createElementVNode)(`div`,_,[(0,l.createVNode)((0,l.unref)(d.EditorContent),{editor:(0,l.unref)(a),class:`prose prose-sm max-w-none h-full`},null,8,[`editor`])])],10,p)]),_:1},16))}});exports.default=v,exports.t=s;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { a as e, o as t, t as n } from "./ControlWrapper-DqO2d36v.js";
|
|
2
|
+
import { Fragment as r, createBlock as i, createElementBlock as a, createElementVNode as o, createVNode as s, defineComponent as c, guardReactiveProps as l, mergeModels as u, normalizeClass as d, normalizeProps as f, onBeforeUnmount as p, openBlock as m, renderList as h, unref as g, useModel as _, withCtx as v } from "vue";
|
|
3
|
+
import y from "@tiptap/starter-kit";
|
|
4
|
+
import { EditorContent as b, useEditor as x } from "@tiptap/vue-3";
|
|
5
|
+
import { Markdown as S } from "tiptap-markdown";
|
|
6
|
+
//#region src/form/text/Markdown.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
+
var C = ["aria-label"], w = { class: "flex items-center gap-1 px-3 py-2 border-b border-base-300 bg-base-200" }, T = ["title", "onClick"], E = ["innerHTML"], D = { class: "card-body p-3" }, O = /* @__PURE__ */ c({
|
|
8
|
+
__name: "Markdown",
|
|
9
|
+
props: /* @__PURE__ */ u(e, {
|
|
10
|
+
modelValue: {},
|
|
11
|
+
modelModifiers: {}
|
|
12
|
+
}),
|
|
13
|
+
emits: /* @__PURE__ */ u(t, ["update:modelValue"]),
|
|
14
|
+
setup(e, { emit: t }) {
|
|
15
|
+
let c = e, u = t, O = _(e, "modelValue"), k = x({
|
|
16
|
+
content: O.value ?? "",
|
|
17
|
+
extensions: [y.configure({
|
|
18
|
+
heading: !1,
|
|
19
|
+
blockquote: !1,
|
|
20
|
+
bulletList: !1,
|
|
21
|
+
orderedList: !1,
|
|
22
|
+
listItem: !1,
|
|
23
|
+
code: !1,
|
|
24
|
+
codeBlock: !1,
|
|
25
|
+
horizontalRule: !1,
|
|
26
|
+
hardBreak: !1
|
|
27
|
+
}), S.configure({
|
|
28
|
+
html: !1,
|
|
29
|
+
transformPastedText: !0
|
|
30
|
+
})],
|
|
31
|
+
onUpdate({ editor: e }) {
|
|
32
|
+
let t = e.storage.markdown.getMarkdown();
|
|
33
|
+
O.value = t, u("change", t);
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
return p(() => {
|
|
37
|
+
k.value?.destroy();
|
|
38
|
+
}), (e, t) => (m(), i(n, f(l(c)), {
|
|
39
|
+
default: v(() => [o("div", {
|
|
40
|
+
class: d([[e.minHeight], "card bg-base-100 border border-base-300 w-full"]),
|
|
41
|
+
"aria-label": e.id,
|
|
42
|
+
role: "textbox"
|
|
43
|
+
}, [o("div", w, [(m(!0), a(r, null, h(e.actions, (e) => (m(), a("button", {
|
|
44
|
+
key: e.name,
|
|
45
|
+
tabindex: "-1",
|
|
46
|
+
type: "button",
|
|
47
|
+
class: d(["btn btn-sm btn-ghost", { "btn-active": g(k)?.isActive(e.name) }]),
|
|
48
|
+
title: e.label,
|
|
49
|
+
onClick: (t) => e.action(g(k))
|
|
50
|
+
}, [o("span", { innerHTML: e.label }, null, 8, E)], 10, T))), 128))]), o("div", D, [s(g(b), {
|
|
51
|
+
editor: g(k),
|
|
52
|
+
class: "prose prose-sm max-w-none h-full"
|
|
53
|
+
}, null, 8, ["editor"])])], 10, C)]),
|
|
54
|
+
_: 1
|
|
55
|
+
}, 16));
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
//#endregion
|
|
59
|
+
export { O as default };
|
|
@@ -30,8 +30,8 @@ export declare const BtnProperties: {
|
|
|
30
30
|
default: boolean;
|
|
31
31
|
};
|
|
32
32
|
color: {
|
|
33
|
-
type: PropType
|
|
34
|
-
default: Color
|
|
33
|
+
type: PropType<`${Color}`>;
|
|
34
|
+
default: `${Color}`;
|
|
35
35
|
};
|
|
36
36
|
size: {
|
|
37
37
|
type: PropType<Size>;
|
|
@@ -41,5 +41,9 @@ export declare const BtnProperties: {
|
|
|
41
41
|
type: BooleanConstructor;
|
|
42
42
|
default: boolean;
|
|
43
43
|
};
|
|
44
|
+
noBorder: {
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
default: boolean;
|
|
47
|
+
};
|
|
44
48
|
};
|
|
45
49
|
export declare const BtnEmits: string[];
|
package/button/btn.vue.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Color } from '../const/colors';
|
|
1
2
|
declare function __VLS_template(): {
|
|
2
3
|
attrs: Partial<{}>;
|
|
3
4
|
slots: {
|
|
@@ -34,8 +35,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
34
35
|
default: boolean;
|
|
35
36
|
};
|
|
36
37
|
color: {
|
|
37
|
-
type: import('vue').PropType
|
|
38
|
-
default:
|
|
38
|
+
type: import('vue').PropType<`${Color}`>;
|
|
39
|
+
default: `${Color}`;
|
|
39
40
|
};
|
|
40
41
|
size: {
|
|
41
42
|
type: import('vue').PropType<import('../const/size').Size>;
|
|
@@ -45,6 +46,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
45
46
|
type: BooleanConstructor;
|
|
46
47
|
default: boolean;
|
|
47
48
|
};
|
|
49
|
+
noBorder: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
48
53
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
49
54
|
href: {
|
|
50
55
|
type: StringConstructor;
|
|
@@ -72,8 +77,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
72
77
|
default: boolean;
|
|
73
78
|
};
|
|
74
79
|
color: {
|
|
75
|
-
type: import('vue').PropType
|
|
76
|
-
default:
|
|
80
|
+
type: import('vue').PropType<`${Color}`>;
|
|
81
|
+
default: `${Color}`;
|
|
77
82
|
};
|
|
78
83
|
size: {
|
|
79
84
|
type: import('vue').PropType<import('../const/size').Size>;
|
|
@@ -83,14 +88,19 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
83
88
|
type: BooleanConstructor;
|
|
84
89
|
default: boolean;
|
|
85
90
|
};
|
|
91
|
+
noBorder: {
|
|
92
|
+
type: BooleanConstructor;
|
|
93
|
+
default: boolean;
|
|
94
|
+
};
|
|
86
95
|
}>> & Readonly<{}>, {
|
|
87
96
|
size: import('../const/size').Size;
|
|
88
97
|
type: import('./const').ButtonType;
|
|
89
98
|
disabled: boolean;
|
|
90
|
-
color:
|
|
99
|
+
color: "error" | "blank" | "primary" | "secondary" | "ghost";
|
|
91
100
|
as: import('./const').ButtonTag;
|
|
92
101
|
outline: boolean;
|
|
93
102
|
square: boolean;
|
|
103
|
+
noBorder: boolean;
|
|
94
104
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
95
105
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
96
106
|
export default _default;
|
package/const/colors.d.ts
CHANGED
|
@@ -2,7 +2,8 @@ export declare enum Color {
|
|
|
2
2
|
blank = "blank",
|
|
3
3
|
primary = "primary",
|
|
4
4
|
secondary = "secondary",
|
|
5
|
-
error = "error"
|
|
5
|
+
error = "error",
|
|
6
|
+
ghost = "ghost"
|
|
6
7
|
}
|
|
7
8
|
export declare const ButtonColor: Record<Color, string>;
|
|
8
9
|
export declare const BadgeColor: Record<Color, string>;
|
package/drawer/drawer.vue.d.ts
CHANGED
|
@@ -26,6 +26,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
26
26
|
type: BooleanConstructor;
|
|
27
27
|
default: boolean;
|
|
28
28
|
};
|
|
29
|
+
drawerColor: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
29
33
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
30
34
|
widthLeft: {
|
|
31
35
|
type: NumberConstructor;
|
|
@@ -43,11 +47,16 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
43
47
|
type: BooleanConstructor;
|
|
44
48
|
default: boolean;
|
|
45
49
|
};
|
|
50
|
+
drawerColor: {
|
|
51
|
+
type: StringConstructor;
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
46
54
|
}>> & Readonly<{}>, {
|
|
47
55
|
widthLeft: number;
|
|
48
56
|
widthRight: number;
|
|
49
57
|
initialLeftOpen: boolean;
|
|
50
58
|
initialRightOpen: boolean;
|
|
59
|
+
drawerColor: string;
|
|
51
60
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLElement>;
|
|
52
61
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
53
62
|
export default _default;
|
package/filter/filter.vue.d.ts
CHANGED
|
@@ -73,9 +73,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
73
73
|
default: boolean;
|
|
74
74
|
};
|
|
75
75
|
}>> & Readonly<{}>, {
|
|
76
|
+
modelValue: any[];
|
|
76
77
|
labelKey: string;
|
|
77
78
|
valueKey: string;
|
|
78
|
-
modelValue: any[];
|
|
79
79
|
opened: boolean;
|
|
80
80
|
colorKey: string;
|
|
81
81
|
countKey: string;
|
|
@@ -1,18 +1,23 @@
|
|
|
1
1
|
export declare const CheckboxProperties: {
|
|
2
2
|
id: {
|
|
3
3
|
type: StringConstructor;
|
|
4
|
+
default: undefined;
|
|
4
5
|
};
|
|
5
6
|
placeholder: {
|
|
6
7
|
type: StringConstructor;
|
|
8
|
+
default: undefined;
|
|
7
9
|
};
|
|
8
10
|
description: {
|
|
9
11
|
type: StringConstructor;
|
|
12
|
+
default: undefined;
|
|
10
13
|
};
|
|
11
14
|
errors: {
|
|
12
15
|
type: StringConstructor;
|
|
16
|
+
default: undefined;
|
|
13
17
|
};
|
|
14
18
|
label: {
|
|
15
19
|
type: StringConstructor;
|
|
20
|
+
default: undefined;
|
|
16
21
|
};
|
|
17
22
|
visible: {
|
|
18
23
|
type: BooleanConstructor;
|
|
@@ -64,7 +69,7 @@ export declare const CheckboxProperties: {
|
|
|
64
69
|
readonly label: "fieldset-legend";
|
|
65
70
|
readonly error: "";
|
|
66
71
|
readonly input: "input";
|
|
67
|
-
readonly textarea: "
|
|
72
|
+
readonly textarea: "textarea h-32";
|
|
68
73
|
readonly checkbox: "checkbox";
|
|
69
74
|
readonly select: "input pr-14";
|
|
70
75
|
readonly description: "form-control--description label text-xs text-gray-500";
|
|
@@ -79,5 +84,13 @@ export declare const CheckboxProperties: {
|
|
|
79
84
|
type: StringConstructor;
|
|
80
85
|
default: string;
|
|
81
86
|
};
|
|
87
|
+
size: {
|
|
88
|
+
type: StringConstructor;
|
|
89
|
+
default: undefined;
|
|
90
|
+
};
|
|
91
|
+
hideErrors: {
|
|
92
|
+
type: BooleanConstructor;
|
|
93
|
+
default: boolean;
|
|
94
|
+
};
|
|
82
95
|
};
|
|
83
96
|
export declare const CheckboxEmits: string[];
|
package/form/Checkbox.vue.d.ts
CHANGED
|
@@ -1,18 +1,23 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
2
|
id: {
|
|
3
3
|
type: StringConstructor;
|
|
4
|
+
default: undefined;
|
|
4
5
|
};
|
|
5
6
|
placeholder: {
|
|
6
7
|
type: StringConstructor;
|
|
8
|
+
default: undefined;
|
|
7
9
|
};
|
|
8
10
|
description: {
|
|
9
11
|
type: StringConstructor;
|
|
12
|
+
default: undefined;
|
|
10
13
|
};
|
|
11
14
|
errors: {
|
|
12
15
|
type: StringConstructor;
|
|
16
|
+
default: undefined;
|
|
13
17
|
};
|
|
14
18
|
label: {
|
|
15
19
|
type: StringConstructor;
|
|
20
|
+
default: undefined;
|
|
16
21
|
};
|
|
17
22
|
visible: {
|
|
18
23
|
type: BooleanConstructor;
|
|
@@ -64,7 +69,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
64
69
|
readonly label: "fieldset-legend";
|
|
65
70
|
readonly error: "";
|
|
66
71
|
readonly input: "input";
|
|
67
|
-
readonly textarea: "
|
|
72
|
+
readonly textarea: "textarea h-32";
|
|
68
73
|
readonly checkbox: "checkbox";
|
|
69
74
|
readonly select: "input pr-14";
|
|
70
75
|
readonly description: "form-control--description label text-xs text-gray-500";
|
|
@@ -79,6 +84,14 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
79
84
|
type: StringConstructor;
|
|
80
85
|
default: string;
|
|
81
86
|
};
|
|
87
|
+
size: {
|
|
88
|
+
type: StringConstructor;
|
|
89
|
+
default: undefined;
|
|
90
|
+
};
|
|
91
|
+
hideErrors: {
|
|
92
|
+
type: BooleanConstructor;
|
|
93
|
+
default: boolean;
|
|
94
|
+
};
|
|
82
95
|
modelValue: {
|
|
83
96
|
type: import('vue').PropType<any>;
|
|
84
97
|
};
|
|
@@ -87,18 +100,23 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
87
100
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
88
101
|
id: {
|
|
89
102
|
type: StringConstructor;
|
|
103
|
+
default: undefined;
|
|
90
104
|
};
|
|
91
105
|
placeholder: {
|
|
92
106
|
type: StringConstructor;
|
|
107
|
+
default: undefined;
|
|
93
108
|
};
|
|
94
109
|
description: {
|
|
95
110
|
type: StringConstructor;
|
|
111
|
+
default: undefined;
|
|
96
112
|
};
|
|
97
113
|
errors: {
|
|
98
114
|
type: StringConstructor;
|
|
115
|
+
default: undefined;
|
|
99
116
|
};
|
|
100
117
|
label: {
|
|
101
118
|
type: StringConstructor;
|
|
119
|
+
default: undefined;
|
|
102
120
|
};
|
|
103
121
|
visible: {
|
|
104
122
|
type: BooleanConstructor;
|
|
@@ -150,7 +168,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
150
168
|
readonly label: "fieldset-legend";
|
|
151
169
|
readonly error: "";
|
|
152
170
|
readonly input: "input";
|
|
153
|
-
readonly textarea: "
|
|
171
|
+
readonly textarea: "textarea h-32";
|
|
154
172
|
readonly checkbox: "checkbox";
|
|
155
173
|
readonly select: "input pr-14";
|
|
156
174
|
readonly description: "form-control--description label text-xs text-gray-500";
|
|
@@ -165,14 +183,33 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
165
183
|
type: StringConstructor;
|
|
166
184
|
default: string;
|
|
167
185
|
};
|
|
186
|
+
size: {
|
|
187
|
+
type: StringConstructor;
|
|
188
|
+
default: undefined;
|
|
189
|
+
};
|
|
190
|
+
hideErrors: {
|
|
191
|
+
type: BooleanConstructor;
|
|
192
|
+
default: boolean;
|
|
193
|
+
};
|
|
168
194
|
modelValue: {
|
|
169
195
|
type: import('vue').PropType<any>;
|
|
170
196
|
};
|
|
171
197
|
}>> & Readonly<{
|
|
172
198
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
173
199
|
}>, {
|
|
200
|
+
size: string;
|
|
201
|
+
label: string;
|
|
174
202
|
required: boolean;
|
|
203
|
+
id: string;
|
|
204
|
+
placeholder: string;
|
|
175
205
|
width: string;
|
|
206
|
+
visible: boolean;
|
|
207
|
+
errors: string;
|
|
208
|
+
isTouched: boolean;
|
|
209
|
+
description: string;
|
|
210
|
+
enabled: boolean;
|
|
211
|
+
isFocused: boolean;
|
|
212
|
+
hideLabel: boolean;
|
|
176
213
|
styles: {
|
|
177
214
|
readonly group: {
|
|
178
215
|
readonly root: "group";
|
|
@@ -197,7 +234,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
197
234
|
readonly label: "fieldset-legend";
|
|
198
235
|
readonly error: "";
|
|
199
236
|
readonly input: "input";
|
|
200
|
-
readonly textarea: "
|
|
237
|
+
readonly textarea: "textarea h-32";
|
|
201
238
|
readonly checkbox: "checkbox";
|
|
202
239
|
readonly select: "input pr-14";
|
|
203
240
|
readonly description: "form-control--description label text-xs text-gray-500";
|
|
@@ -207,10 +244,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
207
244
|
readonly item: "w-full";
|
|
208
245
|
};
|
|
209
246
|
};
|
|
210
|
-
|
|
211
|
-
isTouched: boolean;
|
|
212
|
-
visible: boolean;
|
|
213
|
-
enabled: boolean;
|
|
214
|
-
isFocused: boolean;
|
|
247
|
+
hideErrors: boolean;
|
|
215
248
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
216
249
|
export default _default;
|
|
@@ -3,20 +3,29 @@ export declare const InputProperties: {
|
|
|
3
3
|
type: StringConstructor;
|
|
4
4
|
default: string;
|
|
5
5
|
};
|
|
6
|
+
clearable: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
6
10
|
id: {
|
|
7
11
|
type: StringConstructor;
|
|
12
|
+
default: undefined;
|
|
8
13
|
};
|
|
9
14
|
placeholder: {
|
|
10
15
|
type: StringConstructor;
|
|
16
|
+
default: undefined;
|
|
11
17
|
};
|
|
12
18
|
description: {
|
|
13
19
|
type: StringConstructor;
|
|
20
|
+
default: undefined;
|
|
14
21
|
};
|
|
15
22
|
errors: {
|
|
16
23
|
type: StringConstructor;
|
|
24
|
+
default: undefined;
|
|
17
25
|
};
|
|
18
26
|
label: {
|
|
19
27
|
type: StringConstructor;
|
|
28
|
+
default: undefined;
|
|
20
29
|
};
|
|
21
30
|
visible: {
|
|
22
31
|
type: BooleanConstructor;
|
|
@@ -68,7 +77,7 @@ export declare const InputProperties: {
|
|
|
68
77
|
readonly label: "fieldset-legend";
|
|
69
78
|
readonly error: "";
|
|
70
79
|
readonly input: "input";
|
|
71
|
-
readonly textarea: "
|
|
80
|
+
readonly textarea: "textarea h-32";
|
|
72
81
|
readonly checkbox: "checkbox";
|
|
73
82
|
readonly select: "input pr-14";
|
|
74
83
|
readonly description: "form-control--description label text-xs text-gray-500";
|
|
@@ -83,5 +92,13 @@ export declare const InputProperties: {
|
|
|
83
92
|
type: StringConstructor;
|
|
84
93
|
default: string;
|
|
85
94
|
};
|
|
95
|
+
size: {
|
|
96
|
+
type: StringConstructor;
|
|
97
|
+
default: undefined;
|
|
98
|
+
};
|
|
99
|
+
hideErrors: {
|
|
100
|
+
type: BooleanConstructor;
|
|
101
|
+
default: boolean;
|
|
102
|
+
};
|
|
86
103
|
};
|
|
87
104
|
export declare const InputEmits: string[];
|