@loafacto/ui 0.6.0 → 0.8.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/applyTheme-EBr0eOKY.js +260 -0
- package/dist/applyTheme-EBr0eOKY.js.map +1 -0
- package/dist/components/LfAlert.vue.d.ts +37 -0
- package/dist/components/LfAvatar.vue.d.ts +11 -0
- package/dist/components/LfBadge.vue.d.ts +37 -0
- package/dist/components/LfButton.vue.d.ts +44 -0
- package/dist/components/LfCard.vue.d.ts +34 -0
- package/dist/components/LfCheckbox.vue.d.ts +29 -0
- package/dist/components/LfDivider.vue.d.ts +18 -0
- package/dist/components/LfEmptyState.vue.d.ts +29 -0
- package/dist/components/LfField.vue.d.ts +23 -0
- package/dist/components/LfIcon.vue.d.ts +19 -0
- package/dist/components/LfIconButton.vue.d.ts +20 -0
- package/dist/components/LfMenu.vue.d.ts +38 -0
- package/dist/components/LfModal.vue.d.ts +45 -0
- package/dist/components/LfPageHeader.vue.d.ts +28 -0
- package/dist/components/LfPagination.vue.d.ts +38 -0
- package/dist/components/LfRadioGroup.vue.d.ts +24 -0
- package/dist/components/LfSelect.vue.d.ts +29 -0
- package/dist/components/LfSkeleton.vue.d.ts +14 -0
- package/dist/components/LfSpinner.vue.d.ts +10 -0
- package/dist/components/LfStatCard.vue.d.ts +38 -0
- package/dist/components/LfSwitch.vue.d.ts +28 -0
- package/dist/components/LfTable.vue.d.ts +47 -0
- package/dist/components/LfTextField.vue.d.ts +33 -0
- package/dist/components/LfTextarea.vue.d.ts +33 -0
- package/dist/components/LfTooltip.vue.d.ts +21 -0
- package/dist/icons.d.ts +55 -0
- package/dist/index.d.ts +29 -1
- package/dist/index.js +2026 -313
- package/dist/index.js.map +1 -1
- package/dist/lib/apiClient.d.ts +72 -0
- package/dist/loafacto-ui.css +1655 -16
- package/dist/stores/confirm.d.ts +25 -3
- package/dist/theme/themeColors.d.ts +8 -0
- package/dist/types.d.ts +34 -0
- package/dist/vuetify.d.ts +115 -0
- package/dist/vuetify.js +51 -0
- package/dist/vuetify.js.map +1 -0
- package/package.json +10 -3
- package/vuetify.css +383 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { LfOption } from '../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
items?: (LfOption | string)[];
|
|
4
|
+
/** 트리거 기준 정렬. 오른쪽 끝에 있는 메뉴는 'end' 로 두어야 화면 밖으로 안 나간다. */
|
|
5
|
+
align?: 'start' | 'end';
|
|
6
|
+
/** 기본 트리거(⋮)의 접근성 이름. */
|
|
7
|
+
triggerLabel?: string;
|
|
8
|
+
};
|
|
9
|
+
declare function toggle(): void;
|
|
10
|
+
declare var __VLS_1: {
|
|
11
|
+
open: boolean;
|
|
12
|
+
toggle: typeof toggle;
|
|
13
|
+
}, __VLS_16: {};
|
|
14
|
+
type __VLS_Slots = {} & {
|
|
15
|
+
trigger?: (props: typeof __VLS_1) => any;
|
|
16
|
+
} & {
|
|
17
|
+
items?: (props: typeof __VLS_16) => any;
|
|
18
|
+
};
|
|
19
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
20
|
+
open: import("vue").Ref<boolean, boolean>;
|
|
21
|
+
toggle: typeof toggle;
|
|
22
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
23
|
+
select: (item: LfOption) => any;
|
|
24
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
25
|
+
onSelect?: ((item: LfOption) => any) | undefined;
|
|
26
|
+
}>, {
|
|
27
|
+
items: (LfOption | string)[];
|
|
28
|
+
align: "start" | "end";
|
|
29
|
+
triggerLabel: string;
|
|
30
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
31
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
32
|
+
declare const _default: typeof __VLS_export;
|
|
33
|
+
export default _default;
|
|
34
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
35
|
+
new (): {
|
|
36
|
+
$slots: S;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
title?: string;
|
|
3
|
+
subtitle?: string;
|
|
4
|
+
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
5
|
+
/** 화면 높이를 거의 채운다. 목록·에디터처럼 내용이 긴 모달용. */
|
|
6
|
+
fullHeight?: boolean;
|
|
7
|
+
/** 바깥 클릭·ESC 로 닫히지 않게 한다. 입력 중이던 내용을 잃는 모달에 쓴다. */
|
|
8
|
+
persistent?: boolean;
|
|
9
|
+
/** 닫기 버튼을 놓을지. */
|
|
10
|
+
closable?: boolean;
|
|
11
|
+
closeLabel?: string;
|
|
12
|
+
/** `title` 이 없을 때의 접근성 이름. */
|
|
13
|
+
ariaLabel?: string;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_ModelProps = {
|
|
16
|
+
modelValue?: boolean;
|
|
17
|
+
};
|
|
18
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
19
|
+
declare var __VLS_13: {}, __VLS_22: {}, __VLS_24: {};
|
|
20
|
+
type __VLS_Slots = {} & {
|
|
21
|
+
header?: (props: typeof __VLS_13) => any;
|
|
22
|
+
} & {
|
|
23
|
+
default?: (props: typeof __VLS_22) => any;
|
|
24
|
+
} & {
|
|
25
|
+
footer?: (props: typeof __VLS_24) => any;
|
|
26
|
+
};
|
|
27
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
28
|
+
close: (reason: "close" | "scrim" | "esc") => any;
|
|
29
|
+
"update:modelValue": (value: boolean) => any;
|
|
30
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
31
|
+
onClose?: ((reason: "close" | "scrim" | "esc") => any) | undefined;
|
|
32
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
33
|
+
}>, {
|
|
34
|
+
size: "sm" | "md" | "lg" | "xl";
|
|
35
|
+
closable: boolean;
|
|
36
|
+
closeLabel: string;
|
|
37
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
38
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
39
|
+
declare const _default: typeof __VLS_export;
|
|
40
|
+
export default _default;
|
|
41
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
42
|
+
new (): {
|
|
43
|
+
$slots: S;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { LfIconName } from '../icons';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
title?: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
icon?: LfIconName;
|
|
6
|
+
iconPath?: string;
|
|
7
|
+
/** 제목 옆 작은 숫자. 목록의 크기를 먼저 알려 준다. */
|
|
8
|
+
count?: number;
|
|
9
|
+
};
|
|
10
|
+
declare var __VLS_6: {}, __VLS_8: {}, __VLS_10: {}, __VLS_12: {};
|
|
11
|
+
type __VLS_Slots = {} & {
|
|
12
|
+
title?: (props: typeof __VLS_6) => any;
|
|
13
|
+
} & {
|
|
14
|
+
filters?: (props: typeof __VLS_8) => any;
|
|
15
|
+
} & {
|
|
16
|
+
actions?: (props: typeof __VLS_10) => any;
|
|
17
|
+
} & {
|
|
18
|
+
description?: (props: typeof __VLS_12) => any;
|
|
19
|
+
};
|
|
20
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
22
|
+
declare const _default: typeof __VLS_export;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** 전체 건수. 페이지 수는 perPage 로 나눠서 구한다. */
|
|
3
|
+
total?: number;
|
|
4
|
+
perPage?: number;
|
|
5
|
+
/** 현재 페이지 좌우로 보여줄 번호 개수. */
|
|
6
|
+
siblings?: number;
|
|
7
|
+
/** "전체 N건"을 왼쪽에 보여줄지. */
|
|
8
|
+
showTotal?: boolean;
|
|
9
|
+
ariaLabel?: string;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_ModelProps = {
|
|
12
|
+
/** 1-based. 0-based 로 두면 화면에 그릴 때마다 +1 을 붙이다가 어딘가에서 빠뜨린다. */
|
|
13
|
+
modelValue?: number;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
16
|
+
declare var __VLS_1: {};
|
|
17
|
+
type __VLS_Slots = {} & {
|
|
18
|
+
total?: (props: typeof __VLS_1) => any;
|
|
19
|
+
};
|
|
20
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
|
+
"update:modelValue": (value: number) => any;
|
|
22
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
23
|
+
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
24
|
+
}>, {
|
|
25
|
+
ariaLabel: string;
|
|
26
|
+
total: number;
|
|
27
|
+
perPage: number;
|
|
28
|
+
siblings: number;
|
|
29
|
+
showTotal: boolean;
|
|
30
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
31
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
32
|
+
declare const _default: typeof __VLS_export;
|
|
33
|
+
export default _default;
|
|
34
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
35
|
+
new (): {
|
|
36
|
+
$slots: S;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { LfOption } from '../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
options?: (LfOption | string)[];
|
|
4
|
+
label?: string;
|
|
5
|
+
hint?: string;
|
|
6
|
+
error?: string;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
/** 선택지를 가로로 늘어놓는다. 두세 개짜리 짧은 라벨일 때만 쓴다. */
|
|
10
|
+
inline?: boolean;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_ModelProps = {
|
|
13
|
+
modelValue?: string | number;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
16
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
+
"update:modelValue": (value: string | number | undefined) => any;
|
|
18
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
19
|
+
"onUpdate:modelValue"?: ((value: string | number | undefined) => any) | undefined;
|
|
20
|
+
}>, {
|
|
21
|
+
options: (LfOption | string)[];
|
|
22
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const _default: typeof __VLS_export;
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { LfOption } from '../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** 문자열 배열도 받는다 — 값과 표시가 같을 때 `{value,label}` 을 두 번 쓰지 않으려고. */
|
|
4
|
+
options?: (LfOption | string)[];
|
|
5
|
+
label?: string;
|
|
6
|
+
hint?: string;
|
|
7
|
+
error?: string;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
/** 값이 비었을 때 보이는 안내 문구. 목록 맨 위 옵션으로 들어간다. */
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
/** placeholder 옵션을 다시 고를 수 있게 한다(= 선택 해제). */
|
|
12
|
+
clearable?: boolean;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
size?: 'sm' | 'md';
|
|
15
|
+
};
|
|
16
|
+
type __VLS_ModelProps = {
|
|
17
|
+
modelValue?: string | number;
|
|
18
|
+
};
|
|
19
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
20
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
|
+
"update:modelValue": (value: string | number) => any;
|
|
22
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
23
|
+
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
24
|
+
}>, {
|
|
25
|
+
size: "sm" | "md";
|
|
26
|
+
options: (LfOption | string)[];
|
|
27
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
|
+
declare const _default: typeof __VLS_export;
|
|
29
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** text — 글줄 / rect — 카드·이미지 / circle — 아바타 */
|
|
3
|
+
variant?: 'text' | 'rect' | 'circle';
|
|
4
|
+
width?: string;
|
|
5
|
+
height?: string;
|
|
6
|
+
/** 여러 줄. 마지막 줄은 짧게 그린다 — 문단이 그렇게 끝나기 때문이다. */
|
|
7
|
+
lines?: number;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
10
|
+
variant: "text" | "rect" | "circle";
|
|
11
|
+
lines: number;
|
|
12
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
size?: string | number;
|
|
3
|
+
/** 주면 role="status" 가 된다. 페이지 로딩처럼 스피너 자체가 유일한 신호일 때 쓴다. */
|
|
4
|
+
label?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
7
|
+
size: string | number;
|
|
8
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { LfIconName } from '../icons';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
label: string;
|
|
4
|
+
/** 크게 보일 값. 모르면 `—` 를 넘긴다 — 0 으로 적으면 사용자가 그걸 사실로 믿는다. */
|
|
5
|
+
value?: string | number;
|
|
6
|
+
/** 값 뒤에 작게 붙는 것(`%`, `/12`). 값과 같은 크기로 두면 숫자가 두 개로 보인다. */
|
|
7
|
+
unit?: string;
|
|
8
|
+
icon?: LfIconName;
|
|
9
|
+
iconPath?: string;
|
|
10
|
+
/** 값 아래 한 줄. 큰 숫자가 무엇으로 이뤄졌는지 풀어 줄 때만 쓴다. */
|
|
11
|
+
hint?: string;
|
|
12
|
+
/** 아이콘 배지에만 색이 든다. 평소(neutral)에는 색이 없다. */
|
|
13
|
+
tone?: 'neutral' | 'success' | 'warning' | 'error' | 'info';
|
|
14
|
+
/** 직전 기간 대비 변화. 부호와 색은 여기서 붙인다. */
|
|
15
|
+
delta?: number;
|
|
16
|
+
deltaUnit?: string;
|
|
17
|
+
/** 감소가 좋은 지표(오류율·응답 시간)에 준다. */
|
|
18
|
+
invert?: boolean;
|
|
19
|
+
/** 배경 이미지를 살려야 하는 화면(플랫폼 홈)에서 켠다. 기본은 불투명 종이다. */
|
|
20
|
+
glass?: boolean;
|
|
21
|
+
href?: string;
|
|
22
|
+
};
|
|
23
|
+
declare var __VLS_13: {};
|
|
24
|
+
type __VLS_Slots = {} & {
|
|
25
|
+
default?: (props: typeof __VLS_13) => any;
|
|
26
|
+
};
|
|
27
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
28
|
+
tone: "neutral" | "success" | "warning" | "error" | "info";
|
|
29
|
+
deltaUnit: string;
|
|
30
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
31
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
32
|
+
declare const _default: typeof __VLS_export;
|
|
33
|
+
export default _default;
|
|
34
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
35
|
+
new (): {
|
|
36
|
+
$slots: S;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
label?: string;
|
|
3
|
+
description?: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
/** 라벨과 스위치를 양 끝으로 벌린다. 설정 화면의 한 줄로 쓸 때. */
|
|
6
|
+
row?: boolean;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_ModelProps = {
|
|
9
|
+
modelValue?: boolean;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
12
|
+
declare var __VLS_1: {};
|
|
13
|
+
type __VLS_Slots = {} & {
|
|
14
|
+
default?: (props: typeof __VLS_1) => any;
|
|
15
|
+
};
|
|
16
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
+
"update:modelValue": (value: boolean) => any;
|
|
18
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
19
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
20
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
22
|
+
declare const _default: typeof __VLS_export;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { LfTableColumn, LfTableSort } from '../types';
|
|
2
|
+
type Row = Record<string, any>;
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
columns: LfTableColumn[];
|
|
5
|
+
rows?: Row[];
|
|
6
|
+
/** 행을 구분할 키. Vue 의 :key 로 쓴다. 없으면 인덱스라 재정렬 시 깜빡인다. */
|
|
7
|
+
rowKey?: string;
|
|
8
|
+
loading?: boolean;
|
|
9
|
+
/** 로딩 중 깔아 둘 회색 행 수. 실제 페이지 크기와 맞추면 높이가 튀지 않는다. */
|
|
10
|
+
skeletonRows?: number;
|
|
11
|
+
emptyText?: string;
|
|
12
|
+
/** 행 클릭을 받는다. 커서·포커스·Enter 키가 같이 붙는다. */
|
|
13
|
+
clickable?: boolean;
|
|
14
|
+
compact?: boolean;
|
|
15
|
+
/** 이보다 좁아지면 가로 스크롤이 생긴다. 열이 많은 표에 준다. */
|
|
16
|
+
minWidth?: string;
|
|
17
|
+
sort?: LfTableSort | null;
|
|
18
|
+
};
|
|
19
|
+
declare var __VLS_6: {}, __VLS_9: `cell-${string}`, __VLS_10: {
|
|
20
|
+
row: Row;
|
|
21
|
+
value: any;
|
|
22
|
+
index: number;
|
|
23
|
+
};
|
|
24
|
+
type __VLS_Slots = {} & {
|
|
25
|
+
[K in NonNullable<typeof __VLS_9>]?: (props: typeof __VLS_10) => any;
|
|
26
|
+
} & {
|
|
27
|
+
empty?: (props: typeof __VLS_6) => any;
|
|
28
|
+
};
|
|
29
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
30
|
+
rowClick: (row: Row) => any;
|
|
31
|
+
"update:sort": (sort: LfTableSort) => any;
|
|
32
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
33
|
+
onRowClick?: ((row: Row) => any) | undefined;
|
|
34
|
+
"onUpdate:sort"?: ((sort: LfTableSort) => any) | undefined;
|
|
35
|
+
}>, {
|
|
36
|
+
rows: Row[];
|
|
37
|
+
skeletonRows: number;
|
|
38
|
+
emptyText: string;
|
|
39
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
40
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
41
|
+
declare const _default: typeof __VLS_export;
|
|
42
|
+
export default _default;
|
|
43
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
44
|
+
new (): {
|
|
45
|
+
$slots: S;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { LfIconName } from '../icons';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
label?: string;
|
|
4
|
+
hint?: string;
|
|
5
|
+
error?: string;
|
|
6
|
+
required?: boolean;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
readonly?: boolean;
|
|
10
|
+
type?: 'text' | 'password' | 'email' | 'search' | 'url' | 'tel' | 'number' | 'date' | 'datetime-local' | 'time';
|
|
11
|
+
size?: 'sm' | 'md';
|
|
12
|
+
/** 왼쪽에 놓는 아이콘. 검색창의 돋보기 같은 것. */
|
|
13
|
+
icon?: LfIconName;
|
|
14
|
+
iconPath?: string;
|
|
15
|
+
/** 값이 있을 때 오른쪽에 지우기 버튼을 놓는다. */
|
|
16
|
+
clearable?: boolean;
|
|
17
|
+
/** 비밀번호 보기 토글. `type="password"` 와 함께 쓴다. */
|
|
18
|
+
revealable?: boolean;
|
|
19
|
+
};
|
|
20
|
+
type __VLS_ModelProps = {
|
|
21
|
+
modelValue?: string | number;
|
|
22
|
+
};
|
|
23
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
24
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
|
+
"update:modelValue": (value: string | number) => any;
|
|
26
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
27
|
+
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
28
|
+
}>, {
|
|
29
|
+
size: "sm" | "md";
|
|
30
|
+
type: "text" | "password" | "email" | "search" | "url" | "tel" | "number" | "date" | "datetime-local" | "time";
|
|
31
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
32
|
+
declare const _default: typeof __VLS_export;
|
|
33
|
+
export default _default;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
label?: string;
|
|
3
|
+
hint?: string;
|
|
4
|
+
error?: string;
|
|
5
|
+
required?: boolean;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
readonly?: boolean;
|
|
9
|
+
rows?: number;
|
|
10
|
+
size?: 'sm' | 'md';
|
|
11
|
+
maxlength?: number;
|
|
12
|
+
/** `maxlength` 와 함께 쓰면 남은 글자 수를 보여준다. */
|
|
13
|
+
counter?: boolean;
|
|
14
|
+
/** 사용자가 모서리를 끌어 크기를 바꿀 수 있게 둘지. */
|
|
15
|
+
resize?: boolean;
|
|
16
|
+
/** 내용에 맞춰 높이를 늘린다. `resize` 와 같이 쓰면 사용자가 늘린 높이를 덮어쓴다. */
|
|
17
|
+
autoGrow?: boolean;
|
|
18
|
+
};
|
|
19
|
+
type __VLS_ModelProps = {
|
|
20
|
+
modelValue?: string;
|
|
21
|
+
};
|
|
22
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
23
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
|
+
"update:modelValue": (value: string) => any;
|
|
25
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
26
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
27
|
+
}>, {
|
|
28
|
+
resize: boolean;
|
|
29
|
+
size: "sm" | "md";
|
|
30
|
+
rows: number;
|
|
31
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
32
|
+
declare const _default: typeof __VLS_export;
|
|
33
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
text?: string;
|
|
3
|
+
placement?: 'top' | 'bottom' | 'left' | 'right';
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_1) => any;
|
|
8
|
+
} & {
|
|
9
|
+
content?: (props: typeof __VLS_3) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
12
|
+
placement: "top" | "bottom" | "left" | "right";
|
|
13
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
package/dist/icons.d.ts
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 아이콘 경로 레지스트리 (24x24 viewBox 기준)
|
|
3
|
+
*
|
|
4
|
+
* 아이콘 폰트(material-icons 등)를 쓰지 않는다. 이 라이브러리를 가져다 쓰는 앱이
|
|
5
|
+
* 전부 그 폰트를 로드해야 하고, 로드가 끝나기 전에는 리거처 글자("close" 같은 단어)가
|
|
6
|
+
* 화면에 그대로 노출된다. AppToast 가 같은 이유로 이미 인라인 SVG 를 쓰고 있다.
|
|
7
|
+
*
|
|
8
|
+
* 이름은 **Material Symbols 의 리거처 이름을 그대로** 쓴다. hub 가 지금
|
|
9
|
+
* `<span class="material-icons-round">expand_more</span>` 로 쓰고 있으므로,
|
|
10
|
+
* 마이그레이션이 `<LfIcon name="expand_more" />` 로 기계적인 치환이 된다.
|
|
11
|
+
*
|
|
12
|
+
* 여기 없는 아이콘은 `path` 프로퍼티로 직접 넘기면 된다. 레지스트리는 hub 가
|
|
13
|
+
* 실제로 쓰는 것만 담는다 — 전체 세트를 안고 가면 폰트를 쓰지 않는 이점이 사라진다.
|
|
14
|
+
*/
|
|
15
|
+
export declare const LF_ICONS: {
|
|
16
|
+
readonly close: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z";
|
|
17
|
+
readonly search: "M15.5 14h-.79l-.28-.27A6.47 6.47 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19 15.5 14zm-6 0A4.5 4.5 0 1 1 14 9.5 4.5 4.5 0 0 1 9.5 14z";
|
|
18
|
+
readonly check: "M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z";
|
|
19
|
+
readonly check_circle: "M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z";
|
|
20
|
+
readonly info: "M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z";
|
|
21
|
+
readonly warning: "M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z";
|
|
22
|
+
readonly error: "M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z";
|
|
23
|
+
readonly expand_more: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z";
|
|
24
|
+
readonly expand_less: "M12 8.83 16.59 13.41 18 12l-6-6-6 6 1.41 1.41z";
|
|
25
|
+
readonly chevron_left: "M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z";
|
|
26
|
+
readonly chevron_right: "M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z";
|
|
27
|
+
readonly arrow_back: "M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z";
|
|
28
|
+
readonly arrow_upward: "M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z";
|
|
29
|
+
readonly arrow_downward: "M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z";
|
|
30
|
+
readonly add: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z";
|
|
31
|
+
readonly remove: "M19 13H5v-2h14z";
|
|
32
|
+
readonly edit: "M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a1 1 0 0 0 0-1.41l-2.34-2.34a1 1 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z";
|
|
33
|
+
readonly delete: "M6 19a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z";
|
|
34
|
+
readonly refresh: "M17.65 6.35A8 8 0 1 0 19.73 14h-2.08A6 6 0 1 1 12 6a5.94 5.94 0 0 1 4.22 1.78L13 11h7V4l-2.35 2.35z";
|
|
35
|
+
readonly more_vert: "M12 8a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm0 2a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm0 6a2 2 0 1 0 0 4 2 2 0 0 0 0-4z";
|
|
36
|
+
readonly download: "M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z";
|
|
37
|
+
readonly upload: "M9 16h6v-6h4l-7-7-7 7h4v6zM5 18h14v2H5v-2z";
|
|
38
|
+
readonly filter_list: "M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z";
|
|
39
|
+
readonly settings: "M19.14 12.94a7.07 7.07 0 0 0 0-1.88l2.03-1.58a.5.5 0 0 0 .12-.62l-1.92-3.32a.5.5 0 0 0-.6-.22l-2.39.96a7.3 7.3 0 0 0-1.62-.94l-.36-2.54a.5.5 0 0 0-.5-.42h-3.84a.5.5 0 0 0-.5.42l-.36 2.54c-.59.24-1.13.56-1.62.94l-2.39-.96a.5.5 0 0 0-.6.22L2.67 8.86a.5.5 0 0 0 .12.62l2.03 1.58a7.07 7.07 0 0 0 0 1.88l-2.03 1.58a.5.5 0 0 0-.12.62l1.92 3.32c.12.22.38.3.6.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.04.24.25.42.5.42h3.84c.25 0 .46-.18.5-.42l.36-2.54c.59-.24 1.12-.56 1.62-.94l2.39.96c.22.08.48 0 .6-.22l1.92-3.32a.5.5 0 0 0-.12-.62l-2.03-1.58zM12 15.6A3.6 3.6 0 1 1 15.6 12 3.6 3.6 0 0 1 12 15.6z";
|
|
40
|
+
readonly person: "M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z";
|
|
41
|
+
readonly people: "M16 11a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-8 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z";
|
|
42
|
+
readonly logout: "M17 7l-1.41 1.41L17.17 10H9v2h8.17l-1.58 1.59L17 15l4-4-4-4zM5 5h7V3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7v-2H5V5z";
|
|
43
|
+
readonly menu: "M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z";
|
|
44
|
+
readonly visibility: "M12 4.5A11.83 11.83 0 0 0 1 12a11.83 11.83 0 0 0 22 0 11.83 11.83 0 0 0-11-7.5zm0 12.5a5 5 0 1 1 5-5 5 5 0 0 1-5 5zm0-8a3 3 0 1 0 3 3 3 3 0 0 0-3-3z";
|
|
45
|
+
readonly visibility_off: "M12 6.5a5 5 0 0 1 5 5c0 .51-.08 1-.23 1.45l2.92 2.92A11.8 11.8 0 0 0 23 11.5 11.83 11.83 0 0 0 8.36 4.9l2.16 2.16c.46-.35.99-.56 1.48-.56zM2.71 3.16 1.29 4.58l2.44 2.44A11.75 11.75 0 0 0 1 11.5a11.83 11.83 0 0 0 15.23 6.7l3.19 3.19 1.41-1.41L2.71 3.16zM12 16.5a5 5 0 0 1-5-5c0-.69.15-1.34.4-1.93l1.57 1.57c-.03.12-.05.24-.05.36a3 3 0 0 0 3 3c.12 0 .24-.02.36-.05l1.57 1.57c-.59.25-1.24.4-1.93.4z";
|
|
46
|
+
readonly content_copy: "M16 1H4a2 2 0 0 0-2 2v14h2V3h12V1zm3 4H8a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2zm0 16H8V7h11v14z";
|
|
47
|
+
readonly open_in_new: "M19 19H5V5h7V3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z";
|
|
48
|
+
readonly help: "M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 17h-2v-2h2v2zm2.07-7.75-.9.92A3.4 3.4 0 0 0 13 14h-2v-.5a4 4 0 0 1 1.17-2.83l1.24-1.26A1.96 1.96 0 0 0 12 6a2 2 0 0 0-2 2H8a4 4 0 1 1 8 0 3.2 3.2 0 0 1-.93 2.25z";
|
|
49
|
+
readonly lock: "M18 8h-1V6a5 5 0 0 0-10 0v2H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2zM9 6a3 3 0 0 1 6 0v2H9V6zm3 12a2 2 0 1 1 2-2 2 2 0 0 1-2 2z";
|
|
50
|
+
readonly mail: "M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z";
|
|
51
|
+
readonly calendar_today: "M19 3h-1V1h-2v2H8V1H6v2H5a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2zm0 18H5V9h14v12z";
|
|
52
|
+
readonly save: "M17 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V7l-4-4zm-5 16a3 3 0 1 1 3-3 3 3 0 0 1-3 3zm3-10H5V5h10v4z";
|
|
53
|
+
};
|
|
54
|
+
/** 레지스트리에 들어 있는 아이콘 이름 */
|
|
55
|
+
export type LfIconName = keyof typeof LF_ICONS;
|
package/dist/index.d.ts
CHANGED
|
@@ -14,10 +14,38 @@
|
|
|
14
14
|
* 따로 만들지 않아도 된다.
|
|
15
15
|
*/
|
|
16
16
|
import './styles/base.css';
|
|
17
|
+
import './styles/controls.css';
|
|
17
18
|
export { default as AppShell } from './components/AppShell.vue';
|
|
18
19
|
export { default as AppToast } from './components/AppToast.vue';
|
|
19
20
|
export { default as AppLoadingOverlay } from './components/AppLoadingOverlay.vue';
|
|
20
21
|
export { default as AppConfirmModal } from './components/AppConfirmModal.vue';
|
|
22
|
+
export { default as LfIcon } from './components/LfIcon.vue';
|
|
23
|
+
export { default as LfSpinner } from './components/LfSpinner.vue';
|
|
24
|
+
export { default as LfButton } from './components/LfButton.vue';
|
|
25
|
+
export { default as LfIconButton } from './components/LfIconButton.vue';
|
|
26
|
+
export { default as LfField } from './components/LfField.vue';
|
|
27
|
+
export { default as LfTextField } from './components/LfTextField.vue';
|
|
28
|
+
export { default as LfTextarea } from './components/LfTextarea.vue';
|
|
29
|
+
export { default as LfSelect } from './components/LfSelect.vue';
|
|
30
|
+
export { default as LfCheckbox } from './components/LfCheckbox.vue';
|
|
31
|
+
export { default as LfSwitch } from './components/LfSwitch.vue';
|
|
32
|
+
export { default as LfRadioGroup } from './components/LfRadioGroup.vue';
|
|
33
|
+
export { default as LfModal } from './components/LfModal.vue';
|
|
34
|
+
export { default as LfCard } from './components/LfCard.vue';
|
|
35
|
+
export { default as LfPageHeader } from './components/LfPageHeader.vue';
|
|
36
|
+
export { default as LfBadge } from './components/LfBadge.vue';
|
|
37
|
+
export { default as LfAlert } from './components/LfAlert.vue';
|
|
38
|
+
export { default as LfAvatar } from './components/LfAvatar.vue';
|
|
39
|
+
export { default as LfTable } from './components/LfTable.vue';
|
|
40
|
+
export { default as LfPagination } from './components/LfPagination.vue';
|
|
41
|
+
export { default as LfEmptyState } from './components/LfEmptyState.vue';
|
|
42
|
+
export { default as LfSkeleton } from './components/LfSkeleton.vue';
|
|
43
|
+
export { default as LfStatCard } from './components/LfStatCard.vue';
|
|
44
|
+
export { default as LfTooltip } from './components/LfTooltip.vue';
|
|
45
|
+
export { default as LfMenu } from './components/LfMenu.vue';
|
|
46
|
+
export { default as LfDivider } from './components/LfDivider.vue';
|
|
47
|
+
export { LF_ICONS, type LfIconName } from './icons';
|
|
48
|
+
export { createApiClient, ApiError, type ApiClient, type ApiClientOptions, type ApiRequestOptions, } from './lib/apiClient';
|
|
21
49
|
export { useToastStore, type ToastItem, type ToastType } from './stores/toast';
|
|
22
50
|
export { useLoadingStore } from './stores/loading';
|
|
23
51
|
export { useConfirmStore, type ConfirmOptions } from './stores/confirm';
|
|
@@ -26,4 +54,4 @@ export { useConfirm } from './composables/useConfirm';
|
|
|
26
54
|
export { applyTheme, DARK_THEME, LIGHT_THEME, DEFAULT_THEME, type ThemeConfig, } from './theme/applyTheme';
|
|
27
55
|
export { initTheme, useTheme, type ThemeMode } from './theme/useTheme';
|
|
28
56
|
export { deriveSemanticPalette, applySemanticPalette, isLightBackground, colorToRgb, hexToRgb, luminance, contrastRatio, type SemanticPalette, } from './theme/themeColors';
|
|
29
|
-
export type { ServiceDescriptor, ShellUser, ShortcutLink } from './types';
|
|
57
|
+
export type { ServiceDescriptor, ShellUser, ShortcutLink, LfOption, LfTableColumn, LfTableSort, } from './types';
|