@krds.ui/vue 0.0.12 → 0.0.14
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/README.md +116 -88
- package/dist/img/component/icon/ico_play.svg +3 -0
- package/dist/img/component/icon/ico_stop.svg +3 -0
- package/dist/img/component/icon/ico_volume.svg +3 -0
- package/dist/krds-vue.es.js +2008 -1657
- package/dist/krds-vue.es.js.map +1 -1
- package/dist/style.css +2 -1
- package/dist/types/index.d.ts +358 -2
- package/package.json +37 -36
- package/dist/krds-vue.umd.js +0 -2
- package/dist/krds-vue.umd.js.map +0 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -183,6 +183,11 @@ declare type __VLS_WithTemplateSlots_6<T, S> = T & {
|
|
|
183
183
|
};
|
|
184
184
|
};
|
|
185
185
|
|
|
186
|
+
/**
|
|
187
|
+
* 알림 타입
|
|
188
|
+
*/
|
|
189
|
+
export declare type AlertType = 'danger' | 'ok' | 'info';
|
|
190
|
+
|
|
186
191
|
/**
|
|
187
192
|
* 정렬 타입
|
|
188
193
|
*/
|
|
@@ -502,6 +507,29 @@ export declare interface KrdsContextualHelpProps {
|
|
|
502
507
|
position?: 'top left' | 'top center' | 'top right' | 'bottom left' | 'bottom center' | 'bottom right';
|
|
503
508
|
}
|
|
504
509
|
|
|
510
|
+
export declare const KrdsCriticalAlerts: DefineComponent<KrdsCriticalAlertsProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<KrdsCriticalAlertsProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
511
|
+
|
|
512
|
+
/**
|
|
513
|
+
* KRDS Critical Alerts 컴포넌트 이벤트
|
|
514
|
+
*/
|
|
515
|
+
export declare interface KrdsCriticalAlertsEmits {
|
|
516
|
+
(e: 'link-click', event: MouseEvent): void;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
/**
|
|
520
|
+
* KRDS Critical Alerts 컴포넌트 속성
|
|
521
|
+
*/
|
|
522
|
+
export declare interface KrdsCriticalAlertsProps extends BaseComponentProps {
|
|
523
|
+
/** 알림 타입 */
|
|
524
|
+
type: AlertType;
|
|
525
|
+
/** 알림 메시지 */
|
|
526
|
+
message: string;
|
|
527
|
+
/** 링크 URL */
|
|
528
|
+
linkHref?: string;
|
|
529
|
+
/** 링크 텍스트 */
|
|
530
|
+
linkText?: string;
|
|
531
|
+
}
|
|
532
|
+
|
|
505
533
|
export declare const KrdsDateInput: DefineComponent<KrdsDateInputProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
506
534
|
focus: (event: FocusEvent) => any;
|
|
507
535
|
input: (event: Event) => any;
|
|
@@ -571,6 +599,25 @@ export declare interface KrdsDateInputProps extends BaseFormProps {
|
|
|
571
599
|
initialMonth?: number;
|
|
572
600
|
}
|
|
573
601
|
|
|
602
|
+
export declare const KrdsDisclosure: DefineComponent<KrdsDisclosureProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<KrdsDisclosureProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
603
|
+
|
|
604
|
+
/**
|
|
605
|
+
* KRDS Disclosure 컴포넌트 이벤트
|
|
606
|
+
*/
|
|
607
|
+
export declare interface KrdsDisclosureEmits {
|
|
608
|
+
(e: 'update:modelValue', value: boolean): void;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
/**
|
|
612
|
+
* KRDS Disclosure 컴포넌트 속성
|
|
613
|
+
*/
|
|
614
|
+
export declare interface KrdsDisclosureProps extends BaseComponentProps {
|
|
615
|
+
/** 디스클로저 제목 */
|
|
616
|
+
title: string;
|
|
617
|
+
/** 확장 상태 (v-model) */
|
|
618
|
+
modelValue?: boolean;
|
|
619
|
+
}
|
|
620
|
+
|
|
574
621
|
export declare const KrdsFileUpload: DefineComponent<ExtractPropTypes< {
|
|
575
622
|
modelValue: {
|
|
576
623
|
type: () => FileInfo[];
|
|
@@ -656,7 +703,9 @@ id: {
|
|
|
656
703
|
type: StringConstructor;
|
|
657
704
|
default: undefined;
|
|
658
705
|
};
|
|
659
|
-
}>, () =>
|
|
706
|
+
}>, () => VNode<RendererNode, RendererElement, {
|
|
707
|
+
[key: string]: any;
|
|
708
|
+
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("update:modelValue" | "file-added" | "file-removed" | "file-error" | "upload-start" | "upload-progress" | "upload-complete" | "upload-error" | "clear-all" | "download" | "preview")[], "update:modelValue" | "file-added" | "file-removed" | "file-error" | "upload-start" | "upload-progress" | "upload-complete" | "upload-error" | "clear-all" | "download" | "preview", PublicProps, Readonly<ExtractPropTypes< {
|
|
660
709
|
modelValue: {
|
|
661
710
|
type: () => FileInfo[];
|
|
662
711
|
default: () => never[];
|
|
@@ -830,6 +879,16 @@ export declare interface KrdsFileUploadProps extends BaseFormProps {
|
|
|
830
879
|
showClearAll?: boolean;
|
|
831
880
|
}
|
|
832
881
|
|
|
882
|
+
export declare const KrdsFooter: DefineComponent<KrdsFooterProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<KrdsFooterProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
883
|
+
|
|
884
|
+
/**
|
|
885
|
+
* KRDS Footer 컴포넌트 속성
|
|
886
|
+
*/
|
|
887
|
+
export declare interface KrdsFooterProps extends BaseComponentProps {
|
|
888
|
+
/** Footer ID */
|
|
889
|
+
id?: string;
|
|
890
|
+
}
|
|
891
|
+
|
|
833
892
|
export declare const KrdsFormGroup: DefineComponent<BaseComponentProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BaseComponentProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
834
893
|
|
|
835
894
|
/**
|
|
@@ -871,6 +930,61 @@ export declare interface KrdsFormLabelProps extends BaseComponentProps {
|
|
|
871
930
|
for?: string;
|
|
872
931
|
}
|
|
873
932
|
|
|
933
|
+
export declare const KrdsHeader: DefineComponent<ExtractPropTypes< {
|
|
934
|
+
id: {
|
|
935
|
+
type: StringConstructor;
|
|
936
|
+
default: string;
|
|
937
|
+
};
|
|
938
|
+
mobileNavId: {
|
|
939
|
+
type: StringConstructor;
|
|
940
|
+
default: string;
|
|
941
|
+
};
|
|
942
|
+
class: {
|
|
943
|
+
type: StringConstructor;
|
|
944
|
+
default: undefined;
|
|
945
|
+
};
|
|
946
|
+
}>, () => VNode<RendererNode, RendererElement, {
|
|
947
|
+
[key: string]: any;
|
|
948
|
+
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
949
|
+
id: {
|
|
950
|
+
type: StringConstructor;
|
|
951
|
+
default: string;
|
|
952
|
+
};
|
|
953
|
+
mobileNavId: {
|
|
954
|
+
type: StringConstructor;
|
|
955
|
+
default: string;
|
|
956
|
+
};
|
|
957
|
+
class: {
|
|
958
|
+
type: StringConstructor;
|
|
959
|
+
default: undefined;
|
|
960
|
+
};
|
|
961
|
+
}>> & Readonly<{}>, {
|
|
962
|
+
class: string;
|
|
963
|
+
id: string;
|
|
964
|
+
mobileNavId: string;
|
|
965
|
+
}, SlotsType<{
|
|
966
|
+
/** 유틸리티 메뉴 슬롯 */
|
|
967
|
+
utility?(): VNode[];
|
|
968
|
+
/** 브랜딩 영역 슬롯 (로고, 액션 버튼) */
|
|
969
|
+
branding?(): VNode[];
|
|
970
|
+
/** 데스크탑 네비게이션 메뉴 슬롯 */
|
|
971
|
+
navigation?(): VNode[];
|
|
972
|
+
/** 모바일 네비게이션 메뉴 슬롯 */
|
|
973
|
+
mobileNavigation?(): VNode[];
|
|
974
|
+
}>, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
975
|
+
|
|
976
|
+
/**
|
|
977
|
+
* KRDS Header 컴포넌트 속성
|
|
978
|
+
*/
|
|
979
|
+
export declare interface KrdsHeaderProps {
|
|
980
|
+
/** 헤더 ID */
|
|
981
|
+
id?: string;
|
|
982
|
+
/** 모바일 메뉴 ID */
|
|
983
|
+
mobileNavId?: string;
|
|
984
|
+
/** 추가 CSS 클래스 */
|
|
985
|
+
class?: string;
|
|
986
|
+
}
|
|
987
|
+
|
|
874
988
|
export declare const KrdsIcon: DefineComponent<KrdsIconProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<KrdsIconProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
875
989
|
|
|
876
990
|
/**
|
|
@@ -881,6 +995,22 @@ export declare interface KrdsIconProps extends BaseComponentProps {
|
|
|
881
995
|
name: string;
|
|
882
996
|
}
|
|
883
997
|
|
|
998
|
+
export declare const KrdsIdentifier: DefineComponent<KrdsIdentifierProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<KrdsIdentifierProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
999
|
+
|
|
1000
|
+
/**
|
|
1001
|
+
* KRDS Identifier 컴포넌트 이벤트
|
|
1002
|
+
*/
|
|
1003
|
+
export declare interface KrdsIdentifierEmits {
|
|
1004
|
+
(e: 'click', event: MouseEvent): void;
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
/**
|
|
1008
|
+
* KRDS Identifier 컴포넌트 속성
|
|
1009
|
+
*/
|
|
1010
|
+
export declare interface KrdsIdentifierProps extends BaseComponentProps {
|
|
1011
|
+
logoLabel?: string;
|
|
1012
|
+
}
|
|
1013
|
+
|
|
884
1014
|
export declare const KrdsInPageNavigation: DefineComponent<KrdsInPageNavigationProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<KrdsInPageNavigationProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
885
1015
|
|
|
886
1016
|
/**
|
|
@@ -968,6 +1098,27 @@ export declare interface KrdsLanguageSwitcherProps extends BaseComponentProps {
|
|
|
968
1098
|
dropPosition?: DropdownPosition;
|
|
969
1099
|
}
|
|
970
1100
|
|
|
1101
|
+
export declare const KrdsLayout: DefineComponent<KrdsLayoutProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<KrdsLayoutProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1102
|
+
|
|
1103
|
+
/**
|
|
1104
|
+
* KRDS Layout 컴포넌트 이벤트
|
|
1105
|
+
*/
|
|
1106
|
+
export declare interface KrdsLayoutEmits {
|
|
1107
|
+
resize: [size: LayoutSize];
|
|
1108
|
+
scroll: [details: ScrollDetails];
|
|
1109
|
+
'scroll-height': [height: number];
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
/**
|
|
1113
|
+
* KRDS Layout 컴포넌트 속성
|
|
1114
|
+
*/
|
|
1115
|
+
export declare interface KrdsLayoutProps extends BaseComponentProps {
|
|
1116
|
+
/** 레이아웃 ID */
|
|
1117
|
+
id?: string;
|
|
1118
|
+
/** 스크롤 감지 활성화 여부 */
|
|
1119
|
+
enableScrollDetection?: boolean;
|
|
1120
|
+
}
|
|
1121
|
+
|
|
971
1122
|
export declare const KrdsLink: DefineComponent<KrdsLinkProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<KrdsLinkProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
972
1123
|
|
|
973
1124
|
/**
|
|
@@ -1215,6 +1366,37 @@ export declare interface KrdsSelectProps extends BaseFormProps {
|
|
|
1215
1366
|
sort?: boolean;
|
|
1216
1367
|
}
|
|
1217
1368
|
|
|
1369
|
+
export declare const KrdsSideNavigation: DefineComponent< {
|
|
1370
|
+
title: string;
|
|
1371
|
+
modelValue?: SideNavItem[] | undefined;
|
|
1372
|
+
}, () => VNode<RendererNode, RendererElement, {
|
|
1373
|
+
[key: string]: any;
|
|
1374
|
+
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", PublicProps, Readonly<{
|
|
1375
|
+
title: string;
|
|
1376
|
+
modelValue?: SideNavItem[] | undefined;
|
|
1377
|
+
}> & Readonly<{
|
|
1378
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
1379
|
+
}>, {
|
|
1380
|
+
modelValue: SideNavItem[];
|
|
1381
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
1382
|
+
|
|
1383
|
+
/**
|
|
1384
|
+
* KRDS SideNavigation 컴포넌트 이벤트
|
|
1385
|
+
*/
|
|
1386
|
+
export declare interface KrdsSideNavigationEmits {
|
|
1387
|
+
(event: 'update:modelValue', value: SideNavItem[]): void;
|
|
1388
|
+
}
|
|
1389
|
+
|
|
1390
|
+
/**
|
|
1391
|
+
* KRDS SideNavigation 컴포넌트 속성
|
|
1392
|
+
*/
|
|
1393
|
+
export declare interface KrdsSideNavigationProps {
|
|
1394
|
+
/** 네비게이션 제목 */
|
|
1395
|
+
title: string;
|
|
1396
|
+
/** 메뉴 아이템 배열 */
|
|
1397
|
+
modelValue?: SideNavItem[];
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1218
1400
|
/**
|
|
1219
1401
|
* KRDS SkipLink 컴포넌트
|
|
1220
1402
|
*
|
|
@@ -1342,6 +1524,37 @@ export declare interface KrdsStepProps extends BaseComponentProps {
|
|
|
1342
1524
|
status?: 'done' | 'active' | 'pending';
|
|
1343
1525
|
}
|
|
1344
1526
|
|
|
1527
|
+
export declare const KrdsStructuredList: DefineComponent<KrdsStructuredListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<KrdsStructuredListProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1528
|
+
|
|
1529
|
+
/**
|
|
1530
|
+
* KRDS StructuredList 컴포넌트 속성
|
|
1531
|
+
*/
|
|
1532
|
+
export declare interface KrdsStructuredListProps extends BaseComponentProps {
|
|
1533
|
+
/** 전체 타입 여부 */
|
|
1534
|
+
full?: boolean;
|
|
1535
|
+
}
|
|
1536
|
+
|
|
1537
|
+
export declare const KrdsTable: DefineComponent<KrdsTableProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<KrdsTableProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1538
|
+
|
|
1539
|
+
/**
|
|
1540
|
+
* KRDS Table 컴포넌트 이벤트
|
|
1541
|
+
*/
|
|
1542
|
+
export declare interface KrdsTableEmits {
|
|
1543
|
+
(e: 'row-click', row: TableRow, index: number): void;
|
|
1544
|
+
}
|
|
1545
|
+
|
|
1546
|
+
/**
|
|
1547
|
+
* KRDS Table 컴포넌트 속성
|
|
1548
|
+
*/
|
|
1549
|
+
export declare interface KrdsTableProps extends BaseComponentProps {
|
|
1550
|
+
/** 테이블 캡션 */
|
|
1551
|
+
caption?: string;
|
|
1552
|
+
/** 테이블 열 정의 */
|
|
1553
|
+
columns: TableColumn[];
|
|
1554
|
+
/** 테이블 행 데이터 */
|
|
1555
|
+
rows: TableRow[];
|
|
1556
|
+
}
|
|
1557
|
+
|
|
1345
1558
|
export declare const KrdsTag: DefineComponent<KrdsTagProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<KrdsTagProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1346
1559
|
|
|
1347
1560
|
/**
|
|
@@ -1589,6 +1802,18 @@ export declare interface KrdsTextareaProps extends BaseFormProps {
|
|
|
1589
1802
|
resize?: 'none' | 'both' | 'horizontal' | 'vertical';
|
|
1590
1803
|
}
|
|
1591
1804
|
|
|
1805
|
+
export declare const KrdsTextList: DefineComponent<KrdsTextListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<KrdsTextListProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1806
|
+
|
|
1807
|
+
/**
|
|
1808
|
+
* KRDS TextList 컴포넌트 속성
|
|
1809
|
+
*/
|
|
1810
|
+
export declare interface KrdsTextListProps extends BaseComponentProps {
|
|
1811
|
+
/** 리스트 타입 */
|
|
1812
|
+
type?: 'ul' | 'ol';
|
|
1813
|
+
/** 스타일 변형 */
|
|
1814
|
+
variant?: 'decimal' | 'dash' | 'hollow' | 'ordered';
|
|
1815
|
+
}
|
|
1816
|
+
|
|
1592
1817
|
export declare const KrdsToggleSwitch: DefineComponent<KrdsToggleSwitchProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<KrdsToggleSwitchProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1593
1818
|
|
|
1594
1819
|
/**
|
|
@@ -1623,6 +1848,34 @@ export declare interface KrdsTooltipProps extends BaseComponentProps {
|
|
|
1623
1848
|
disabled?: boolean;
|
|
1624
1849
|
}
|
|
1625
1850
|
|
|
1851
|
+
export declare const KrdsTts: DefineComponent<KrdsTtsProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<KrdsTtsProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1852
|
+
|
|
1853
|
+
/**
|
|
1854
|
+
* KRDS TTS 컴포넌트 이벤트
|
|
1855
|
+
*/
|
|
1856
|
+
export declare interface KrdsTtsEmits {
|
|
1857
|
+
(e: 'play', text: string): void;
|
|
1858
|
+
(e: 'pause'): void;
|
|
1859
|
+
(e: 'end'): void;
|
|
1860
|
+
(e: 'error', error: Error): void;
|
|
1861
|
+
}
|
|
1862
|
+
|
|
1863
|
+
/**
|
|
1864
|
+
* KRDS TTS 컴포넌트 속성
|
|
1865
|
+
*/
|
|
1866
|
+
export declare interface KrdsTtsProps extends BaseComponentProps {
|
|
1867
|
+
/** 읽어줄 텍스트 */
|
|
1868
|
+
text: string;
|
|
1869
|
+
/** 레이블 텍스트 (미지정 시 아이콘만 표시) */
|
|
1870
|
+
label?: string;
|
|
1871
|
+
/** 버튼 크기 */
|
|
1872
|
+
size?: TtsSize;
|
|
1873
|
+
/** 아이콘 타입 */
|
|
1874
|
+
icon?: TtsIcon;
|
|
1875
|
+
/** 비활성화 여부 */
|
|
1876
|
+
disabled?: boolean;
|
|
1877
|
+
}
|
|
1878
|
+
|
|
1626
1879
|
/**
|
|
1627
1880
|
* KRDS Vue 플러그인
|
|
1628
1881
|
*/
|
|
@@ -1643,6 +1896,14 @@ declare type LanguageData = {
|
|
|
1643
1896
|
url?: string;
|
|
1644
1897
|
};
|
|
1645
1898
|
|
|
1899
|
+
/**
|
|
1900
|
+
* 레이아웃 크기 정보
|
|
1901
|
+
*/
|
|
1902
|
+
export declare interface LayoutSize {
|
|
1903
|
+
width: number;
|
|
1904
|
+
height: number;
|
|
1905
|
+
}
|
|
1906
|
+
|
|
1646
1907
|
/**
|
|
1647
1908
|
* 로딩 상태 속성
|
|
1648
1909
|
*/
|
|
@@ -1688,6 +1949,16 @@ export declare type ResponsiveValue<T> = T | {
|
|
|
1688
1949
|
desktop?: T;
|
|
1689
1950
|
};
|
|
1690
1951
|
|
|
1952
|
+
/**
|
|
1953
|
+
* 스크롤 상세 정보
|
|
1954
|
+
*/
|
|
1955
|
+
export declare interface ScrollDetails {
|
|
1956
|
+
scrollY: number;
|
|
1957
|
+
scrollHeight: number;
|
|
1958
|
+
direction: 'up' | 'down' | null;
|
|
1959
|
+
timestamp: number;
|
|
1960
|
+
}
|
|
1961
|
+
|
|
1691
1962
|
/**
|
|
1692
1963
|
* KRDS Select 옵션 타입
|
|
1693
1964
|
*/
|
|
@@ -1700,6 +1971,52 @@ export declare interface SelectOption {
|
|
|
1700
1971
|
disabled?: boolean;
|
|
1701
1972
|
}
|
|
1702
1973
|
|
|
1974
|
+
/**
|
|
1975
|
+
* 사이드 네비게이션 아이템 인터페이스
|
|
1976
|
+
*/
|
|
1977
|
+
export declare interface SideNavItem {
|
|
1978
|
+
/** 텍스트 */
|
|
1979
|
+
text: string;
|
|
1980
|
+
/** 링크 URL */
|
|
1981
|
+
href?: string;
|
|
1982
|
+
/** 확장 상태 */
|
|
1983
|
+
expanded?: boolean;
|
|
1984
|
+
/** 하위 아이템 */
|
|
1985
|
+
subItems?: SideNavSubItem[];
|
|
1986
|
+
/** 클릭 핸들러 */
|
|
1987
|
+
onClick?: (event: MouseEvent) => void;
|
|
1988
|
+
}
|
|
1989
|
+
|
|
1990
|
+
/**
|
|
1991
|
+
* 사이드 네비게이션 팝업 아이템 인터페이스 (4depth)
|
|
1992
|
+
*/
|
|
1993
|
+
export declare interface SideNavPopupItem {
|
|
1994
|
+
/** 텍스트 */
|
|
1995
|
+
text: string;
|
|
1996
|
+
/** 링크 URL */
|
|
1997
|
+
href?: string;
|
|
1998
|
+
/** 클릭 핸들러 */
|
|
1999
|
+
onClick?: (event: MouseEvent) => void;
|
|
2000
|
+
}
|
|
2001
|
+
|
|
2002
|
+
/**
|
|
2003
|
+
* 사이드 네비게이션 하위 아이템 인터페이스
|
|
2004
|
+
*/
|
|
2005
|
+
export declare interface SideNavSubItem {
|
|
2006
|
+
/** 텍스트 */
|
|
2007
|
+
text: string;
|
|
2008
|
+
/** 링크 URL */
|
|
2009
|
+
href?: string;
|
|
2010
|
+
/** 확장 상태 (3depth popup용) */
|
|
2011
|
+
expanded?: boolean;
|
|
2012
|
+
/** 팝업 제목 (3depth popup용) */
|
|
2013
|
+
popupTitle?: string;
|
|
2014
|
+
/** 하위 아이템 (4depth용) */
|
|
2015
|
+
subItems?: SideNavPopupItem[];
|
|
2016
|
+
/** 클릭 핸들러 */
|
|
2017
|
+
onClick?: (event: MouseEvent) => void;
|
|
2018
|
+
}
|
|
2019
|
+
|
|
1703
2020
|
/**
|
|
1704
2021
|
* 기본 크기 타입 (KRDS 실제 규격)
|
|
1705
2022
|
*/
|
|
@@ -1711,13 +2028,52 @@ declare type StepsData = {
|
|
|
1711
2028
|
description: string;
|
|
1712
2029
|
};
|
|
1713
2030
|
|
|
2031
|
+
/**
|
|
2032
|
+
* 테이블 열 정의
|
|
2033
|
+
*/
|
|
2034
|
+
export declare interface TableColumn {
|
|
2035
|
+
/** 고유 ID - 컬럼 식별자 */
|
|
2036
|
+
name: string;
|
|
2037
|
+
/** 헤더 라벨 */
|
|
2038
|
+
label: string;
|
|
2039
|
+
/** 행 객체 속성명 또는 함수 */
|
|
2040
|
+
field: string | ((row: TableRow) => unknown);
|
|
2041
|
+
/** 필수 컬럼 여부 (visible-columns 사용시 항상 표시) */
|
|
2042
|
+
required?: boolean;
|
|
2043
|
+
/** 정렬 */
|
|
2044
|
+
align?: 'left' | 'center' | 'right';
|
|
2045
|
+
/** body td 스타일 */
|
|
2046
|
+
style?: string | ((row: TableRow) => string);
|
|
2047
|
+
/** body td 클래스 */
|
|
2048
|
+
classes?: string | ((row: TableRow) => string);
|
|
2049
|
+
/** header th 스타일 */
|
|
2050
|
+
headerStyle?: string;
|
|
2051
|
+
/** header th 클래스 */
|
|
2052
|
+
headerClasses?: string;
|
|
2053
|
+
}
|
|
2054
|
+
|
|
2055
|
+
/**
|
|
2056
|
+
* 테이블 행 데이터
|
|
2057
|
+
*/
|
|
2058
|
+
export declare type TableRow = Record<string, unknown>;
|
|
2059
|
+
|
|
1714
2060
|
declare type TooltipType = 'default' | 'icon' | 'button';
|
|
1715
2061
|
|
|
2062
|
+
/**
|
|
2063
|
+
* TTS 아이콘 타입
|
|
2064
|
+
*/
|
|
2065
|
+
export declare type TtsIcon = 'volume' | 'play';
|
|
2066
|
+
|
|
2067
|
+
/**
|
|
2068
|
+
* TTS 사이즈 타입
|
|
2069
|
+
*/
|
|
2070
|
+
export declare type TtsSize = 'xsmall' | 'small' | 'medium';
|
|
2071
|
+
|
|
1716
2072
|
/**
|
|
1717
2073
|
* 버튼 변형 타입
|
|
1718
2074
|
*/
|
|
1719
2075
|
export declare type Variant = 'primary' | 'secondary' | 'tertiary';
|
|
1720
2076
|
|
|
1721
|
-
export declare const version
|
|
2077
|
+
export declare const version: string;
|
|
1722
2078
|
|
|
1723
2079
|
export { }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@krds.ui/vue",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.14",
|
|
4
4
|
"description": "KRDS Vue Design System - 한국 정부 디자인 시스템 Vue 컴포넌트 라이브러리",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"krds",
|
|
@@ -24,23 +24,20 @@
|
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"author": "Initializer Team",
|
|
26
26
|
"type": "module",
|
|
27
|
-
"main": "./dist/krds-vue.
|
|
27
|
+
"main": "./dist/krds-vue.es.js",
|
|
28
28
|
"module": "./dist/krds-vue.es.js",
|
|
29
29
|
"types": "./dist/types/index.d.ts",
|
|
30
30
|
"exports": {
|
|
31
31
|
".": {
|
|
32
32
|
"types": "./dist/types/index.d.ts",
|
|
33
|
-
"import": "./dist/krds-vue.es.js"
|
|
34
|
-
"require": "./dist/krds-vue.umd.js"
|
|
33
|
+
"import": "./dist/krds-vue.es.js"
|
|
35
34
|
},
|
|
36
35
|
"./dist/style.css": "./dist/style.css",
|
|
37
|
-
"./style": "./dist/style.css"
|
|
38
|
-
"./styles/*": "./dist/styles/*",
|
|
39
|
-
"./styles": {
|
|
40
|
-
"types": "./dist/types/styles/index.d.ts",
|
|
41
|
-
"import": "./dist/styles/index.js"
|
|
42
|
-
}
|
|
36
|
+
"./style": "./dist/style.css"
|
|
43
37
|
},
|
|
38
|
+
"sideEffects": [
|
|
39
|
+
"**/*.css"
|
|
40
|
+
],
|
|
44
41
|
"files": [
|
|
45
42
|
"dist"
|
|
46
43
|
],
|
|
@@ -48,37 +45,41 @@
|
|
|
48
45
|
"vue": "^3.5.0"
|
|
49
46
|
},
|
|
50
47
|
"devDependencies": {
|
|
51
|
-
"@eslint/js": "^
|
|
52
|
-
"@
|
|
53
|
-
"@storybook/addon-
|
|
54
|
-
"@storybook/
|
|
55
|
-
"@
|
|
56
|
-
"@
|
|
57
|
-
"@
|
|
58
|
-
"@
|
|
59
|
-
"@
|
|
60
|
-
"@
|
|
48
|
+
"@eslint/js": "^10.0.1",
|
|
49
|
+
"@microsoft/api-extractor": "^7.58.1",
|
|
50
|
+
"@storybook/addon-a11y": "^10.3.4",
|
|
51
|
+
"@storybook/addon-docs": "^10.3.4",
|
|
52
|
+
"@storybook/addon-vitest": "^10.3.4",
|
|
53
|
+
"@storybook/vue3-vite": "^10.3.4",
|
|
54
|
+
"@tsconfig/node20": "^20.1.9",
|
|
55
|
+
"@types/node": "^25.5.2",
|
|
56
|
+
"@typescript-eslint/eslint-plugin": "^8.58.0",
|
|
57
|
+
"@typescript-eslint/parser": "^8.58.0",
|
|
58
|
+
"@vitejs/plugin-vue": "^6.0.5",
|
|
59
|
+
"@vitest/browser": "^4.1.8",
|
|
60
|
+
"@vitest/browser-playwright": "^4.1.8",
|
|
61
|
+
"@vitest/coverage-v8": "^4.1.8",
|
|
61
62
|
"@vue/eslint-config-prettier": "^10.2.0",
|
|
62
|
-
"@vue/eslint-config-typescript": "^14.
|
|
63
|
+
"@vue/eslint-config-typescript": "^14.7.0",
|
|
63
64
|
"@vue/test-utils": "^2.4.6",
|
|
64
|
-
"@vue/tsconfig": "^0.
|
|
65
|
-
"eslint": "^
|
|
66
|
-
"eslint-plugin-storybook": "^10.
|
|
67
|
-
"eslint-plugin-vue": "^10.
|
|
68
|
-
"jsdom": "^
|
|
69
|
-
"playwright": "^1.
|
|
70
|
-
"prettier": "^3.
|
|
71
|
-
"sass": "^1.
|
|
65
|
+
"@vue/tsconfig": "^0.9.1",
|
|
66
|
+
"eslint": "^10.2.0",
|
|
67
|
+
"eslint-plugin-storybook": "^10.3.4",
|
|
68
|
+
"eslint-plugin-vue": "^10.8.0",
|
|
69
|
+
"jsdom": "^29.0.1",
|
|
70
|
+
"playwright": "^1.59.1",
|
|
71
|
+
"prettier": "^3.8.1",
|
|
72
|
+
"sass": "^1.99.0",
|
|
72
73
|
"source-map-explorer": "^2.5.3",
|
|
73
74
|
"standard-version": "^9.5.0",
|
|
74
|
-
"storybook": "^10.
|
|
75
|
+
"storybook": "^10.3.4",
|
|
75
76
|
"typescript": "5.9.3",
|
|
76
|
-
"vite": "^
|
|
77
|
+
"vite": "^8.0.16",
|
|
77
78
|
"vite-plugin-dts": "^4.5.4",
|
|
78
|
-
"vitest": "^4.
|
|
79
|
-
"vue": "^3.5.
|
|
80
|
-
"vue-eslint-parser": "^10.
|
|
81
|
-
"vue-tsc": "^3.
|
|
79
|
+
"vitest": "^4.1.8",
|
|
80
|
+
"vue": "^3.5.32",
|
|
81
|
+
"vue-eslint-parser": "^10.4.0",
|
|
82
|
+
"vue-tsc": "^3.2.6"
|
|
82
83
|
},
|
|
83
84
|
"publishConfig": {
|
|
84
85
|
"access": "public",
|
|
@@ -99,7 +100,7 @@
|
|
|
99
100
|
"lint": "eslint . --fix",
|
|
100
101
|
"format": "prettier --write src/",
|
|
101
102
|
"storybook": "storybook dev -p 6006",
|
|
102
|
-
"build-storybook": "storybook build",
|
|
103
|
+
"build-storybook": "storybook build && node scripts/storybook-seo.mjs",
|
|
103
104
|
"bundle-size": "vite build && echo 'Bundle size check removed due to bundlewatch security vulnerability'",
|
|
104
105
|
"release": "standard-version",
|
|
105
106
|
"release:minor": "standard-version --release-as minor",
|