@loafacto/ui 0.12.4 → 0.13.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/dist/components/LfListSelect.vue.d.ts +54 -0
- package/dist/components/LfSegmented.vue.d.ts +26 -0
- package/dist/components/LfSelect.vue.d.ts +11 -6
- package/dist/components/LfTextField.vue.d.ts +10 -3
- package/dist/composables/useSplitAttrs.d.ts +9 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +823 -360
- package/dist/index.js.map +1 -1
- package/dist/loafacto-ui.css +227 -7
- package/dist/types.d.ts +5 -2
- package/package.json +1 -1
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { LfOption } from '../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
options?: (LfOption | string | number)[];
|
|
4
|
+
label?: string;
|
|
5
|
+
hint?: string;
|
|
6
|
+
error?: string;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
size?: 'sm' | 'md';
|
|
11
|
+
/** 목록 위에 찾기 칸. 열 개를 넘는 목록에 둔다. */
|
|
12
|
+
searchable?: boolean;
|
|
13
|
+
/** 적은 글자가 곧 값이다. 목록은 제안일 뿐이고, 없는 값도 적을 수 있다(combobox). */
|
|
14
|
+
editable?: boolean;
|
|
15
|
+
clearable?: boolean;
|
|
16
|
+
/** 목록을 아직 받는 중. 오른쪽 화살표 자리가 스피너가 된다. */
|
|
17
|
+
loading?: boolean;
|
|
18
|
+
emptyText?: string;
|
|
19
|
+
searchPlaceholder?: string;
|
|
20
|
+
clearLabel?: string;
|
|
21
|
+
};
|
|
22
|
+
type __VLS_ModelProps = {
|
|
23
|
+
modelValue?: string | number | null;
|
|
24
|
+
};
|
|
25
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
26
|
+
declare var __VLS_13: {
|
|
27
|
+
option: LfOption | null;
|
|
28
|
+
}, __VLS_42: {
|
|
29
|
+
option: LfOption;
|
|
30
|
+
};
|
|
31
|
+
type __VLS_Slots = {} & {
|
|
32
|
+
selected?: (props: typeof __VLS_13) => any;
|
|
33
|
+
} & {
|
|
34
|
+
option?: (props: typeof __VLS_42) => any;
|
|
35
|
+
};
|
|
36
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
37
|
+
"update:modelValue": (value: string | number | null) => any;
|
|
38
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
39
|
+
"onUpdate:modelValue"?: ((value: string | number | null) => any) | undefined;
|
|
40
|
+
}>, {
|
|
41
|
+
size: "sm" | "md";
|
|
42
|
+
options: (LfOption | string | number)[];
|
|
43
|
+
emptyText: string;
|
|
44
|
+
searchPlaceholder: string;
|
|
45
|
+
clearLabel: string;
|
|
46
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
47
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
48
|
+
declare const _default: typeof __VLS_export;
|
|
49
|
+
export default _default;
|
|
50
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
51
|
+
new (): {
|
|
52
|
+
$slots: S;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { LfOption } from '../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
options?: (LfOption | string)[];
|
|
4
|
+
size?: 'sm' | 'md';
|
|
5
|
+
/** 아이콘만 보인다. 라벨은 aria-label·title 로 남는다. */
|
|
6
|
+
labelHidden?: boolean;
|
|
7
|
+
/** 부모 폭을 채우고 칸을 같은 폭으로 나눈다. */
|
|
8
|
+
block?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
/** 묶음의 접근성 이름. 「보기 방식」처럼 무엇을 고르는 자리인지. */
|
|
11
|
+
ariaLabel?: string;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_ModelProps = {
|
|
14
|
+
modelValue?: string | number | null;
|
|
15
|
+
};
|
|
16
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
17
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
|
+
"update:modelValue": (value: string | number | null) => any;
|
|
19
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
20
|
+
"onUpdate:modelValue"?: ((value: string | number | null) => any) | undefined;
|
|
21
|
+
}>, {
|
|
22
|
+
size: "sm" | "md";
|
|
23
|
+
options: (LfOption | string)[];
|
|
24
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const _default: typeof __VLS_export;
|
|
26
|
+
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { LfOption } from '../types';
|
|
2
2
|
type __VLS_Props = {
|
|
3
|
-
/**
|
|
4
|
-
options?: (LfOption | string)[];
|
|
3
|
+
/** 문자열·숫자 배열도 받는다 — 값과 표시가 같을 때 `{value,label}` 을 두 번 쓰지 않으려고. */
|
|
4
|
+
options?: (LfOption | string | number)[];
|
|
5
5
|
label?: string;
|
|
6
6
|
hint?: string;
|
|
7
7
|
error?: string;
|
|
@@ -14,16 +14,21 @@ type __VLS_Props = {
|
|
|
14
14
|
size?: 'sm' | 'md';
|
|
15
15
|
};
|
|
16
16
|
type __VLS_ModelProps = {
|
|
17
|
-
|
|
17
|
+
/**
|
|
18
|
+
* `v-model.number` 를 받는다. 컴포넌트의 v-model 에 붙은 수식어는 브라우저가 아니라
|
|
19
|
+
* 컴포넌트가 처리해야 한다 — 그냥 두면 `<LfTextField v-model.number="n">` 이 문자열을
|
|
20
|
+
* 돌려주고, 저장 직전에야 "1" + 1 = "11" 로 드러난다.
|
|
21
|
+
*/
|
|
22
|
+
modelValue?: string | number | null;
|
|
18
23
|
};
|
|
19
24
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
20
25
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
|
-
"update:modelValue": (value: string | number) => any;
|
|
26
|
+
"update:modelValue": (value: string | number | null) => any;
|
|
22
27
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
23
|
-
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
28
|
+
"onUpdate:modelValue"?: ((value: string | number | null) => any) | undefined;
|
|
24
29
|
}>, {
|
|
25
30
|
size: "sm" | "md";
|
|
26
|
-
options: (LfOption | string)[];
|
|
31
|
+
options: (LfOption | string | number)[];
|
|
27
32
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
33
|
declare const _default: typeof __VLS_export;
|
|
29
34
|
export default _default;
|
|
@@ -16,15 +16,22 @@ type __VLS_Props = {
|
|
|
16
16
|
clearable?: boolean;
|
|
17
17
|
/** 비밀번호 보기 토글. `type="password"` 와 함께 쓴다. */
|
|
18
18
|
revealable?: boolean;
|
|
19
|
+
/** 값 뒤에 붙는 단위. "GB", "ms" 같은 것. */
|
|
20
|
+
suffix?: string;
|
|
19
21
|
};
|
|
20
22
|
type __VLS_ModelProps = {
|
|
21
|
-
|
|
23
|
+
/**
|
|
24
|
+
* `v-model.number` 를 받는다. 컴포넌트의 v-model 에 붙은 수식어는 브라우저가 아니라
|
|
25
|
+
* 컴포넌트가 처리해야 한다 — 그냥 두면 `<LfTextField v-model.number="n">` 이 문자열을
|
|
26
|
+
* 돌려주고, 저장 직전에야 "1" + 1 = "11" 로 드러난다.
|
|
27
|
+
*/
|
|
28
|
+
modelValue?: string | number | null;
|
|
22
29
|
};
|
|
23
30
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
24
31
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
|
-
"update:modelValue": (value: string | number) => any;
|
|
32
|
+
"update:modelValue": (value: string | number | null) => any;
|
|
26
33
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
27
|
-
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
34
|
+
"onUpdate:modelValue"?: ((value: string | number | null) => any) | undefined;
|
|
28
35
|
}>, {
|
|
29
36
|
size: "sm" | "md";
|
|
30
37
|
type: "text" | "password" | "email" | "search" | "url" | "tel" | "number" | "date" | "datetime-local" | "time";
|
package/dist/index.d.ts
CHANGED
|
@@ -44,6 +44,8 @@ export { default as LfStatCard } from './components/LfStatCard.vue';
|
|
|
44
44
|
export { default as LfTooltip } from './components/LfTooltip.vue';
|
|
45
45
|
export { default as LfMenu } from './components/LfMenu.vue';
|
|
46
46
|
export { default as LfNavRail } from './components/LfNavRail.vue';
|
|
47
|
+
export { default as LfSegmented } from './components/LfSegmented.vue';
|
|
48
|
+
export { default as LfListSelect } from './components/LfListSelect.vue';
|
|
47
49
|
export { default as LfDivider } from './components/LfDivider.vue';
|
|
48
50
|
export { LF_ICONS, type LfIconName } from './icons';
|
|
49
51
|
export { createApiClient, ApiError, type ApiClient, type ApiClientOptions, type ApiRequestOptions, } from './lib/apiClient';
|