@loafacto/ui 0.12.5 → 0.13.1
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 +50 -0
- package/dist/components/LfSegmented.vue.d.ts +33 -0
- package/dist/components/LfSelect.vue.d.ts +37 -30
- package/dist/index.d.ts +2 -0
- package/dist/index.js +765 -337
- package/dist/index.js.map +1 -1
- package/dist/loafacto-ui.css +210 -2
- package/dist/types.d.ts +3 -1
- package/package.json +1 -1
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { LfOption } from '../types';
|
|
2
|
+
declare const __VLS_export: <T extends string | number | null = string | number | null>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<({
|
|
4
|
+
options?: (LfOption | string | number)[];
|
|
5
|
+
label?: string;
|
|
6
|
+
hint?: string;
|
|
7
|
+
error?: string;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
size?: "sm" | "md";
|
|
12
|
+
/** 목록 위에 찾기 칸. 열 개를 넘는 목록에 둔다. */
|
|
13
|
+
searchable?: boolean;
|
|
14
|
+
/** 적은 글자가 곧 값이다. 목록은 제안일 뿐이고, 없는 값도 적을 수 있다(combobox). */
|
|
15
|
+
editable?: boolean;
|
|
16
|
+
clearable?: boolean;
|
|
17
|
+
/** 목록을 아직 받는 중. 오른쪽 화살표 자리가 스피너가 된다. */
|
|
18
|
+
loading?: boolean;
|
|
19
|
+
emptyText?: string;
|
|
20
|
+
searchPlaceholder?: string;
|
|
21
|
+
clearLabel?: string;
|
|
22
|
+
} & {
|
|
23
|
+
modelValue: T;
|
|
24
|
+
}) & {
|
|
25
|
+
"onUpdate:modelValue"?: ((value: T) => any) | undefined;
|
|
26
|
+
}> & (typeof globalThis extends {
|
|
27
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
28
|
+
} ? P : {});
|
|
29
|
+
expose: (exposed: {}) => void;
|
|
30
|
+
attrs: any;
|
|
31
|
+
slots: {
|
|
32
|
+
selected?: (props: {
|
|
33
|
+
option: LfOption | null;
|
|
34
|
+
}) => any;
|
|
35
|
+
} & {
|
|
36
|
+
option?: (props: {
|
|
37
|
+
option: LfOption;
|
|
38
|
+
}) => any;
|
|
39
|
+
};
|
|
40
|
+
emit: (event: "update:modelValue", value: T) => void;
|
|
41
|
+
}>) => import("vue").VNode & {
|
|
42
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
43
|
+
};
|
|
44
|
+
declare const _default: typeof __VLS_export;
|
|
45
|
+
export default _default;
|
|
46
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
47
|
+
[K in keyof T]: T[K];
|
|
48
|
+
} : {
|
|
49
|
+
[K in keyof T as K]: T[K];
|
|
50
|
+
}) & {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { LfOption } from '../types';
|
|
2
|
+
declare const __VLS_export: <T extends string | number | null = string>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<({
|
|
4
|
+
options?: (LfOption | string)[];
|
|
5
|
+
size?: "sm" | "md";
|
|
6
|
+
/** 아이콘만 보인다. 라벨은 aria-label·title 로 남는다. */
|
|
7
|
+
labelHidden?: boolean;
|
|
8
|
+
/** 부모 폭을 채우고 칸을 같은 폭으로 나눈다. */
|
|
9
|
+
block?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
/** 묶음의 접근성 이름. 「보기 방식」처럼 무엇을 고르는 자리인지. */
|
|
12
|
+
ariaLabel?: string;
|
|
13
|
+
} & {
|
|
14
|
+
modelValue: T;
|
|
15
|
+
}) & {
|
|
16
|
+
"onUpdate:modelValue"?: ((value: T) => any) | undefined;
|
|
17
|
+
}> & (typeof globalThis extends {
|
|
18
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
19
|
+
} ? P : {});
|
|
20
|
+
expose: (exposed: {}) => void;
|
|
21
|
+
attrs: any;
|
|
22
|
+
slots: {};
|
|
23
|
+
emit: (event: "update:modelValue", value: T) => void;
|
|
24
|
+
}>) => import("vue").VNode & {
|
|
25
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
26
|
+
};
|
|
27
|
+
declare const _default: typeof __VLS_export;
|
|
28
|
+
export default _default;
|
|
29
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
30
|
+
[K in keyof T]: T[K];
|
|
31
|
+
} : {
|
|
32
|
+
[K in keyof T as K]: T[K];
|
|
33
|
+
}) & {};
|
|
@@ -1,34 +1,41 @@
|
|
|
1
1
|
import type { LfOption } from '../types';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
2
|
+
declare const __VLS_export: <T extends string | number | null = string | number | null>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<({
|
|
4
|
+
/** 문자열·숫자 배열도 받는다 — 값과 표시가 같을 때 `{value,label}` 을 두 번 쓰지 않으려고. */
|
|
5
|
+
options?: (LfOption | string | number)[];
|
|
6
|
+
label?: string;
|
|
7
|
+
hint?: string;
|
|
8
|
+
error?: string;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
/** 값이 비었을 때 보이는 안내 문구. 목록 맨 위 옵션으로 들어간다. */
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
/** placeholder 옵션을 다시 고를 수 있게 한다(= 선택 해제). */
|
|
13
|
+
clearable?: boolean;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
size?: "sm" | "md";
|
|
16
|
+
} & {
|
|
17
|
+
/**
|
|
18
|
+
* `v-model.number` 를 받는다. 컴포넌트의 v-model 에 붙은 수식어는 브라우저가 아니라
|
|
19
|
+
* 컴포넌트가 처리해야 한다 — 그냥 두면 `<LfTextField v-model.number="n">` 이 문자열을
|
|
20
|
+
* 돌려주고, 저장 직전에야 "1" + 1 = "11" 로 드러난다.
|
|
21
|
+
*/
|
|
22
|
+
modelValue: T;
|
|
23
|
+
}) & {
|
|
24
|
+
"onUpdate:modelValue"?: ((value: T) => any) | undefined;
|
|
25
|
+
}> & (typeof globalThis extends {
|
|
26
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
27
|
+
} ? P : {});
|
|
28
|
+
expose: (exposed: {}) => void;
|
|
29
|
+
attrs: any;
|
|
30
|
+
slots: {};
|
|
31
|
+
emit: (event: "update:modelValue", value: T) => void;
|
|
32
|
+
}>) => import("vue").VNode & {
|
|
33
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
15
34
|
};
|
|
16
|
-
type __VLS_ModelProps = {
|
|
17
|
-
/**
|
|
18
|
-
* `v-model.number` 를 받는다. 컴포넌트의 v-model 에 붙은 수식어는 브라우저가 아니라
|
|
19
|
-
* 컴포넌트가 처리해야 한다 — 그냥 두면 `<LfTextField v-model.number="n">` 이 문자열을
|
|
20
|
-
* 돌려주고, 저장 직전에야 "1" + 1 = "11" 로 드러난다.
|
|
21
|
-
*/
|
|
22
|
-
modelValue?: string | number | null;
|
|
23
|
-
};
|
|
24
|
-
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
25
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
26
|
-
"update:modelValue": (value: string | number | null) => any;
|
|
27
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
28
|
-
"onUpdate:modelValue"?: ((value: string | number | null) => any) | undefined;
|
|
29
|
-
}>, {
|
|
30
|
-
size: "sm" | "md";
|
|
31
|
-
options: (LfOption | string | number)[];
|
|
32
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
33
35
|
declare const _default: typeof __VLS_export;
|
|
34
36
|
export default _default;
|
|
37
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
38
|
+
[K in keyof T]: T[K];
|
|
39
|
+
} : {
|
|
40
|
+
[K in keyof T as K]: T[K];
|
|
41
|
+
}) & {};
|
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';
|