@leechanyong/ispark-ui 0.5.9 → 0.5.11
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/CHANGELOG.md +160 -160
- package/LICENSE +21 -21
- package/README.md +124 -124
- package/dist/icons/svg/arrow-right.svg +3 -3
- package/dist/icons/svg/check.svg +3 -3
- package/dist/icons/svg/close.svg +4 -4
- package/dist/icons/svg/eye-off.svg +6 -6
- package/dist/icons/svg/eye.svg +4 -4
- package/dist/index.d.ts +93 -0
- package/dist/ispark-ui.cjs +44 -44
- package/dist/ispark-ui.css +1 -1
- package/dist/ispark-ui.js +3295 -3060
- package/package.json +1 -1
package/dist/icons/svg/close.svg
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M1.59961 1.59998L14.3996 14.4" stroke="#000" stroke-width="2" stroke-linecap="round"/>
|
|
3
|
-
<path d="M1.59961 14.4L14.3996 1.60002" stroke="#000" stroke-width="2" stroke-linecap="round"/>
|
|
4
|
-
</svg>
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M1.59961 1.59998L14.3996 14.4" stroke="#000" stroke-width="2" stroke-linecap="round"/>
|
|
3
|
+
<path d="M1.59961 14.4L14.3996 1.60002" stroke="#000" stroke-width="2" stroke-linecap="round"/>
|
|
4
|
+
</svg>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M2 2L22 22" stroke="#000" stroke-width="2" stroke-linecap="round"/>
|
|
3
|
-
<path d="M6.71277 6.7226C3.66479 8.27169 1.25 11.5 1.25 11.5C3.26428 15.6394 7.30558 18.5 12 18.5C13.8791 18.5 15.6362 17.9857 17.1737 17.0872" stroke="#000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
-
<path d="M19.8076 14.8379C21.2649 13.2908 22.75 11.5 22.75 11.5C20.7357 7.36065 16.6944 4.5 12 4.5C11.1418 4.5 10.3052 4.59185 9.5 4.76556" stroke="#000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
5
|
-
<path d="M9.76066 9.82843C9.29009 10.2788 9 10.8539 9 11.5C9 12.8807 10.3431 14 12 14C12.6642 14 13.2794 13.8094 13.7866 13.4858" stroke="#000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
6
|
-
</svg>
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M2 2L22 22" stroke="#000" stroke-width="2" stroke-linecap="round"/>
|
|
3
|
+
<path d="M6.71277 6.7226C3.66479 8.27169 1.25 11.5 1.25 11.5C3.26428 15.6394 7.30558 18.5 12 18.5C13.8791 18.5 15.6362 17.9857 17.1737 17.0872" stroke="#000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
<path d="M19.8076 14.8379C21.2649 13.2908 22.75 11.5 22.75 11.5C20.7357 7.36065 16.6944 4.5 12 4.5C11.1418 4.5 10.3052 4.59185 9.5 4.76556" stroke="#000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
5
|
+
<path d="M9.76066 9.82843C9.29009 10.2788 9 10.8539 9 11.5C9 12.8807 10.3431 14 12 14C12.6642 14 13.2794 13.8094 13.7866 13.4858" stroke="#000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
6
|
+
</svg>
|
package/dist/icons/svg/eye.svg
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M12 4.5C7.30558 4.5 3.26428 7.36065 1.25 11.5C3.26428 15.6394 7.30558 18.5 12 18.5C16.6944 18.5 20.7357 15.6394 22.75 11.5C20.7357 7.36065 16.6944 4.5 12 4.5Z" stroke="#000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
-
<circle cx="12" cy="11.5" r="3.5" stroke="#000" stroke-width="2"/>
|
|
4
|
-
</svg>
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M12 4.5C7.30558 4.5 3.26428 7.36065 1.25 11.5C3.26428 15.6394 7.30558 18.5 12 18.5C16.6944 18.5 20.7357 15.6394 22.75 11.5C20.7357 7.36065 16.6944 4.5 12 4.5Z" stroke="#000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
+
<circle cx="12" cy="11.5" r="3.5" stroke="#000" stroke-width="2"/>
|
|
4
|
+
</svg>
|
package/dist/index.d.ts
CHANGED
|
@@ -422,6 +422,12 @@ declare type __VLS_WithTemplateSlots_12<T, S> = T & {
|
|
|
422
422
|
};
|
|
423
423
|
};
|
|
424
424
|
|
|
425
|
+
declare type __VLS_WithTemplateSlots_13<T, S> = T & {
|
|
426
|
+
new (): {
|
|
427
|
+
$slots: S;
|
|
428
|
+
};
|
|
429
|
+
};
|
|
430
|
+
|
|
425
431
|
declare type __VLS_WithTemplateSlots_2<T, S> = T & {
|
|
426
432
|
new (): {
|
|
427
433
|
$slots: S;
|
|
@@ -485,6 +491,27 @@ export declare type BadgeSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
|
485
491
|
|
|
486
492
|
export declare type BadgeVariant = 'default' | 'primary' | 'success' | 'warning' | 'danger' | 'info';
|
|
487
493
|
|
|
494
|
+
/** 막대 위치 — 단일/여러 날 일정의 시작·중간·끝 */
|
|
495
|
+
export declare type CalendarEventSpan = 'single' | 'start' | 'middle' | 'end';
|
|
496
|
+
|
|
497
|
+
/** 캘린더 일정(정규화 모델). end 없으면 단일일, 있으면 여러 날 막대로 표시 */
|
|
498
|
+
export declare interface CalendarMonthEvent {
|
|
499
|
+
/** 고유 id — 여러 소스를 합칠 땐 'todo-5'처럼 충돌 없는 값 권장 */
|
|
500
|
+
id: string | number;
|
|
501
|
+
/** 시작일 'YYYY-MM-DD' */
|
|
502
|
+
start: string;
|
|
503
|
+
/** 종료일 'YYYY-MM-DD' (없거나 start보다 빠르면 단일일 취급) */
|
|
504
|
+
end?: string | null;
|
|
505
|
+
/** 막대 라벨 */
|
|
506
|
+
title: string;
|
|
507
|
+
/** 막대 색 (기본 var(--color-primary)) */
|
|
508
|
+
color?: string;
|
|
509
|
+
/** 하루종일 여부 (표시는 consumer 자유, meta로 전달) */
|
|
510
|
+
allDay?: boolean;
|
|
511
|
+
/** 도메인 데이터 passthrough — #event 슬롯에서 활용 */
|
|
512
|
+
meta?: unknown;
|
|
513
|
+
}
|
|
514
|
+
|
|
488
515
|
/** 토스트 수동 닫기 */
|
|
489
516
|
export declare function closeToast(id: number): void;
|
|
490
517
|
|
|
@@ -1108,6 +1135,72 @@ export declare const UiBadgeGroup: __VLS_WithTemplateSlots_6<typeof __VLS_compon
|
|
|
1108
1135
|
|
|
1109
1136
|
export declare const UiButton: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
1110
1137
|
|
|
1138
|
+
export declare const UiCalendarMonth: __VLS_WithTemplateSlots_13<DefineComponent< {
|
|
1139
|
+
/** 표시할 연도 */
|
|
1140
|
+
year: number;
|
|
1141
|
+
/** 표시할 월 (1-12) */
|
|
1142
|
+
month: number;
|
|
1143
|
+
/** 일정 목록 */
|
|
1144
|
+
events?: CalendarMonthEvent[];
|
|
1145
|
+
/** 선택된 날짜 'YYYY-MM-DD' */
|
|
1146
|
+
selectedDate?: string;
|
|
1147
|
+
/** 오늘 날짜 'YYYY-MM-DD' — 미지정 시 실제 오늘 (테스트/스토리에서 주입) */
|
|
1148
|
+
today?: string;
|
|
1149
|
+
/** 한 칸에 표시할 최대 레인 수 (초과분은 +N) */
|
|
1150
|
+
maxLanes?: number;
|
|
1151
|
+
/** 좌우 스와이프로 월 전환 */
|
|
1152
|
+
swipeable?: boolean;
|
|
1153
|
+
/** 요일 헤더 표시 */
|
|
1154
|
+
showWeekdays?: boolean;
|
|
1155
|
+
}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1156
|
+
"update:year": (year: number) => any;
|
|
1157
|
+
"update:month": (month: number) => any;
|
|
1158
|
+
"change-month": (value: {
|
|
1159
|
+
year: number;
|
|
1160
|
+
month: number;
|
|
1161
|
+
}) => any;
|
|
1162
|
+
"select-date": (date: string) => any;
|
|
1163
|
+
"select-event": (event: CalendarMonthEvent) => any;
|
|
1164
|
+
}, string, PublicProps, Readonly<{
|
|
1165
|
+
/** 표시할 연도 */
|
|
1166
|
+
year: number;
|
|
1167
|
+
/** 표시할 월 (1-12) */
|
|
1168
|
+
month: number;
|
|
1169
|
+
/** 일정 목록 */
|
|
1170
|
+
events?: CalendarMonthEvent[];
|
|
1171
|
+
/** 선택된 날짜 'YYYY-MM-DD' */
|
|
1172
|
+
selectedDate?: string;
|
|
1173
|
+
/** 오늘 날짜 'YYYY-MM-DD' — 미지정 시 실제 오늘 (테스트/스토리에서 주입) */
|
|
1174
|
+
today?: string;
|
|
1175
|
+
/** 한 칸에 표시할 최대 레인 수 (초과분은 +N) */
|
|
1176
|
+
maxLanes?: number;
|
|
1177
|
+
/** 좌우 스와이프로 월 전환 */
|
|
1178
|
+
swipeable?: boolean;
|
|
1179
|
+
/** 요일 헤더 표시 */
|
|
1180
|
+
showWeekdays?: boolean;
|
|
1181
|
+
}> & Readonly<{
|
|
1182
|
+
"onUpdate:year"?: ((year: number) => any) | undefined;
|
|
1183
|
+
"onUpdate:month"?: ((month: number) => any) | undefined;
|
|
1184
|
+
"onChange-month"?: ((value: {
|
|
1185
|
+
year: number;
|
|
1186
|
+
month: number;
|
|
1187
|
+
}) => any) | undefined;
|
|
1188
|
+
"onSelect-date"?: ((date: string) => any) | undefined;
|
|
1189
|
+
"onSelect-event"?: ((event: CalendarMonthEvent) => any) | undefined;
|
|
1190
|
+
}>, {
|
|
1191
|
+
events: CalendarMonthEvent[];
|
|
1192
|
+
selectedDate: string;
|
|
1193
|
+
today: string;
|
|
1194
|
+
maxLanes: number;
|
|
1195
|
+
swipeable: boolean;
|
|
1196
|
+
showWeekdays: boolean;
|
|
1197
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>, {
|
|
1198
|
+
event?(_: {
|
|
1199
|
+
event: CalendarMonthEvent;
|
|
1200
|
+
span: CalendarEventSpan;
|
|
1201
|
+
}): any;
|
|
1202
|
+
}>;
|
|
1203
|
+
|
|
1111
1204
|
export declare const UiCheckbox: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
|
|
1112
1205
|
|
|
1113
1206
|
export declare const UiConfirm: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|