@vmscloud/moz-ui-components-core 0.1.42

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.
Files changed (146) hide show
  1. package/dist/components/avatar/avatar.core.d.ts +39 -0
  2. package/dist/components/avatar/index.d.ts +14 -0
  3. package/dist/components/bread-crumb/breadcrumb.core.d.ts +70 -0
  4. package/dist/components/bread-crumb/icons.d.ts +9 -0
  5. package/dist/components/bread-crumb/index.d.ts +10 -0
  6. package/dist/components/button/button.core.d.ts +59 -0
  7. package/dist/components/button/circleLoader.d.ts +8 -0
  8. package/dist/components/button/index.d.ts +12 -0
  9. package/dist/components/calendar/calendar.core.d.ts +25 -0
  10. package/dist/components/calendar/icons.d.ts +7 -0
  11. package/dist/components/calendar/index.d.ts +7 -0
  12. package/dist/components/checkbox/checkbox.core.d.ts +46 -0
  13. package/dist/components/checkbox/icons.d.ts +9 -0
  14. package/dist/components/checkbox/index.d.ts +10 -0
  15. package/dist/components/collapsible/collapsible.core.d.ts +34 -0
  16. package/dist/components/collapsible/index.d.ts +15 -0
  17. package/dist/components/context-menu/contextmenu.core.d.ts +58 -0
  18. package/dist/components/context-menu/index.d.ts +10 -0
  19. package/dist/components/controller/controller.core.d.ts +44 -0
  20. package/dist/components/controller/icons.d.ts +12 -0
  21. package/dist/components/controller/index.d.ts +12 -0
  22. package/dist/components/date-input/dateinput.core.d.ts +32 -0
  23. package/dist/components/date-input/icons.d.ts +6 -0
  24. package/dist/components/date-input/index.d.ts +7 -0
  25. package/dist/components/empty-state/emptystate.core.d.ts +25 -0
  26. package/dist/components/empty-state/emptystate.types.d.ts +17 -0
  27. package/dist/components/empty-state/index.d.ts +8 -0
  28. package/dist/components/input/icons.d.ts +4 -0
  29. package/dist/components/input/index.d.ts +10 -0
  30. package/dist/components/input/input.core.d.ts +38 -0
  31. package/dist/components/label/index.d.ts +6 -0
  32. package/dist/components/label/label.core.d.ts +22 -0
  33. package/dist/components/multi-select/icons.d.ts +14 -0
  34. package/dist/components/multi-select/index.d.ts +10 -0
  35. package/dist/components/multi-select/multiselect.core.d.ts +60 -0
  36. package/dist/components/number-input/icons.d.ts +7 -0
  37. package/dist/components/number-input/index.d.ts +7 -0
  38. package/dist/components/number-input/numberinput.core.d.ts +30 -0
  39. package/dist/components/password-input/icons.d.ts +7 -0
  40. package/dist/components/password-input/index.d.ts +7 -0
  41. package/dist/components/password-input/passwordinput.core.d.ts +29 -0
  42. package/dist/components/popover/index.d.ts +14 -0
  43. package/dist/components/popover/popover.core.d.ts +65 -0
  44. package/dist/components/popup/icons.d.ts +18 -0
  45. package/dist/components/popup/index.d.ts +14 -0
  46. package/dist/components/popup/popup.core.d.ts +132 -0
  47. package/dist/components/radio/index.d.ts +9 -0
  48. package/dist/components/radio/radio.core.d.ts +35 -0
  49. package/dist/components/scroll-area/index.d.ts +16 -0
  50. package/dist/components/scroll-area/scrollarea.core.d.ts +47 -0
  51. package/dist/components/select/icons.d.ts +16 -0
  52. package/dist/components/select/index.d.ts +10 -0
  53. package/dist/components/select/select.core.d.ts +48 -0
  54. package/dist/components/slider/index.d.ts +6 -0
  55. package/dist/components/slider/slider.core.d.ts +23 -0
  56. package/dist/components/split-pane/index.d.ts +15 -0
  57. package/dist/components/split-pane/splitpane.core.d.ts +24 -0
  58. package/dist/components/tab/icons.d.ts +4 -0
  59. package/dist/components/tab/index.d.ts +10 -0
  60. package/dist/components/tab/tab.core.d.ts +28 -0
  61. package/dist/components/table-select/index.d.ts +10 -0
  62. package/dist/components/table-select/tableselect.core.d.ts +45 -0
  63. package/dist/components/tag-input/icons.d.ts +9 -0
  64. package/dist/components/tag-input/index.d.ts +12 -0
  65. package/dist/components/tag-input/taginput.core.d.ts +32 -0
  66. package/dist/components/textarea/index.d.ts +6 -0
  67. package/dist/components/textarea/textarea.core.d.ts +35 -0
  68. package/dist/components/time-picker/icons.d.ts +9 -0
  69. package/dist/components/time-picker/index.d.ts +10 -0
  70. package/dist/components/time-picker/timepicker.core.d.ts +26 -0
  71. package/dist/components/toast/icons.d.ts +12 -0
  72. package/dist/components/toast/index.d.ts +13 -0
  73. package/dist/components/toast/timer.d.ts +17 -0
  74. package/dist/components/toast/toast.core.d.ts +48 -0
  75. package/dist/components/toast/useToast.d.ts +13 -0
  76. package/dist/components/toggle/index.d.ts +9 -0
  77. package/dist/components/toggle/toggle.core.d.ts +54 -0
  78. package/dist/components/tooltip/index.d.ts +18 -0
  79. package/dist/components/tooltip/placement.d.ts +9 -0
  80. package/dist/components/tooltip/tooltip.core.d.ts +50 -0
  81. package/dist/components/tree-select/icons.d.ts +14 -0
  82. package/dist/components/tree-select/index.d.ts +12 -0
  83. package/dist/components/tree-select/tree-utils.d.ts +63 -0
  84. package/dist/components/tree-select/treeselect.core.d.ts +45 -0
  85. package/dist/index.cjs +1887 -0
  86. package/dist/index.cjs.map +1 -0
  87. package/dist/index.d.ts +51 -0
  88. package/dist/index.js +9233 -0
  89. package/dist/index.js.map +1 -0
  90. package/dist/locale/en.d.ts +3 -0
  91. package/dist/locale/index.d.ts +10 -0
  92. package/dist/locale/ja.d.ts +3 -0
  93. package/dist/locale/ko.d.ts +3 -0
  94. package/dist/locale/types.d.ts +482 -0
  95. package/dist/locale/zh.d.ts +3 -0
  96. package/dist/overlay/DismissStack.d.ts +49 -0
  97. package/dist/overlay/Overlay.d.ts +39 -0
  98. package/dist/overlay/PortalHost.d.ts +11 -0
  99. package/dist/overlay/index.d.ts +5 -0
  100. package/dist/overlay/placement.d.ts +74 -0
  101. package/dist/runtime/ChromeComponent.d.ts +38 -0
  102. package/dist/runtime/Observable.d.ts +18 -0
  103. package/dist/runtime/SlotHost.d.ts +48 -0
  104. package/dist/runtime/defineHeadless.d.ts +28 -0
  105. package/dist/runtime/spread.d.ts +26 -0
  106. package/dist/runtime/types.d.ts +149 -0
  107. package/dist/shared/cn.d.ts +8 -0
  108. package/dist/shared/dayjs.d.ts +10 -0
  109. package/dist/shared/index.d.ts +5 -0
  110. package/dist/shared/utils.d.ts +58 -0
  111. package/dist/styles/default/avatar.css +94 -0
  112. package/dist/styles/default/breadcrumb.css +120 -0
  113. package/dist/styles/default/button.css +220 -0
  114. package/dist/styles/default/calendar.css +158 -0
  115. package/dist/styles/default/checkbox.css +128 -0
  116. package/dist/styles/default/collapsible.css +27 -0
  117. package/dist/styles/default/contextmenu.css +212 -0
  118. package/dist/styles/default/controller.css +157 -0
  119. package/dist/styles/default/dateinput.css +193 -0
  120. package/dist/styles/default/emptystate.css +91 -0
  121. package/dist/styles/default/index.css +3877 -0
  122. package/dist/styles/default/input.css +179 -0
  123. package/dist/styles/default/label.css +65 -0
  124. package/dist/styles/default/multiselect.css +394 -0
  125. package/dist/styles/default/numberinput.css +174 -0
  126. package/dist/styles/default/passwordinput.css +189 -0
  127. package/dist/styles/default/popover.css +92 -0
  128. package/dist/styles/default/popup.css +222 -0
  129. package/dist/styles/default/radio.css +264 -0
  130. package/dist/styles/default/scrollarea.css +133 -0
  131. package/dist/styles/default/select.css +287 -0
  132. package/dist/styles/default/slider.css +123 -0
  133. package/dist/styles/default/splitpane.css +62 -0
  134. package/dist/styles/default/tab.css +172 -0
  135. package/dist/styles/default/tableselect.css +313 -0
  136. package/dist/styles/default/taginput.css +296 -0
  137. package/dist/styles/default/textarea.css +145 -0
  138. package/dist/styles/default/timepicker.css +221 -0
  139. package/dist/styles/default/toast.css +165 -0
  140. package/dist/styles/default/toggle.css +129 -0
  141. package/dist/styles/default/tooltip.css +131 -0
  142. package/dist/styles/default/treeselect.css +382 -0
  143. package/dist/validator/createValidator.d.ts +7 -0
  144. package/dist/validator/index.d.ts +2 -0
  145. package/dist/validator/types.d.ts +26 -0
  146. package/package.json +57 -0
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Avatar 코어 — 프로필 이미지 + 로드 실패 시 대체 표시.
3
+ *
4
+ * 이 컴포넌트의 본체는 마크업이 아니라 **이미지 로드 상태 기계**다. 소비처가 직접
5
+ * `onError` 를 붙이면 (a) 실패 전까지 깨진 이미지가 잠깐 보이고 (b) `src` 가 바뀔 때마다
6
+ * 상태를 손으로 되돌려야 한다. 그래서 코어가 오프스크린 `Image()` 로 먼저 재 보고,
7
+ * **성공했을 때만** `<img>` 를 트리에 넣는다.
8
+ *
9
+ * 대체 표시(fallback)는 slot 이다 — 이니셜·아이콘·스켈레톤 무엇이든 소비처가 정한다.
10
+ * `delayMs` 를 주면 그 시간 전에는 fallback 을 그리지 않는다. 캐시된 이미지가 즉시 뜨는
11
+ * 경우에 이니셜이 한 프레임 번쩍이는 것을 막는 용도다.
12
+ *
13
+ * 상태는 루트의 `data-status` 로 노출한다(`idle|loading|loaded|error`).
14
+ */
15
+ export type AvatarLoadingStatus = 'idle' | 'loading' | 'loaded' | 'error';
16
+ export interface AvatarProps {
17
+ /** 이미지 주소. 없으면 상태는 `idle` 이고 fallback 만 그린다 */
18
+ src?: string;
19
+ /** 이미지 대체 텍스트 */
20
+ alt?: string;
21
+ /** 이 시간(ms)이 지나기 전에는 fallback 을 그리지 않는다 */
22
+ delayMs?: number;
23
+ /** `<img>` 에 실을 클래스 */
24
+ imageClass?: unknown;
25
+ /** fallback 래퍼에 실을 클래스 */
26
+ fallbackClass?: unknown;
27
+ class?: unknown;
28
+ style?: unknown;
29
+ [attr: string]: unknown;
30
+ }
31
+ export interface AvatarEmits {
32
+ /** 로드 상태가 바뀔 때마다 */
33
+ loadingStatusChange: [AvatarLoadingStatus];
34
+ }
35
+ export interface AvatarApi {
36
+ /** 현재 로드 상태 (명령형 조회용) */
37
+ readonly status: AvatarLoadingStatus;
38
+ }
39
+ export declare const createAvatar: import('../..').CoreFactory<AvatarProps, AvatarEmits, AvatarApi>;
@@ -0,0 +1,14 @@
1
+ import { MozSpec } from '../../runtime/types';
2
+ import { AvatarProps, AvatarEmits, AvatarApi } from './avatar.core';
3
+
4
+ export { createAvatar } from './avatar.core';
5
+ export type { AvatarProps, AvatarEmits, AvatarApi, AvatarLoadingStatus } from './avatar.core';
6
+ /**
7
+ * AVATAR_SPEC — 이미지 로드 상태를 코어가 소유하고, 대체 표시만 slot 으로 받는다.
8
+ *
9
+ * `fallback` slot 은 **동적 slot 경로(`slots={{ fallback: … }}`)로 넘겨야 한다.** 정적 slot 으로
10
+ * 넘기면 브릿지가 독립 React root 에 마운트해 소비자 context 가 끊긴다(Tooltip 이후 공통 규약).
11
+ *
12
+ * (스타일은 별도: `@vmscloud/moz-ui-components-core/styles/avatar.css`)
13
+ */
14
+ export declare const AVATAR_SPEC: MozSpec<AvatarProps, AvatarEmits, AvatarApi>;
@@ -0,0 +1,70 @@
1
+ import { TemplateResult } from 'lit-html';
2
+
3
+ /**
4
+ * BreadCrumb 코어 — BreadCrumb.vue 1:1 포팅.
5
+ *
6
+ * 보존 포인트(1:1):
7
+ * - v-model(favorite, 기본 true) 은 표시 전용 — 클릭해도 스스로 토글하지 않고 emit('click', favorite) 만.
8
+ * - favorite slot 은 fallback(기본 버튼) 을 가짐 — 소비자가 주면 버튼 대체.
9
+ * - 마지막 item 은 .current-item, 그 외 item 뒤에 .separator 화살표.
10
+ *
11
+ * 항목 slot 모드 (`items`, ITSM-2026-002320 / v-project §7-C 재판정) — opt-in, 기본값에서는 위 1:1 그대로:
12
+ * - `itemSource: string[]` 은 문자열만 그릴 수 있어 **항목별 링크·라우팅**을 담지 못한다. `items` 를 주면
13
+ * 항목마다 `item-${key}` 동적 slot 을 열어 소비자가 링크(`<a>`/라우터 Link)든 무엇이든 그린다.
14
+ * - 마크업은 `nav > ol > li` 로 바뀐다(WAI-ARIA breadcrumb 패턴). 구분자는 `li[role=presentation]` 이고
15
+ * `separator` slot 으로 바꿀 수 있다(없으면 기본 화살표). `current: true` 인 항목의 `li` 에
16
+ * `aria-current="page"` 를 단다 — 소비자가 안쪽 요소에 직접 달 거면 `current` 를 비워 둔다.
17
+ * - `favorite`·`title` slot 과 `showFavorite` 는 두 모드에서 같게 동작한다.
18
+ */
19
+ export interface BreadCrumbItem {
20
+ /** slot 이름 `item-${key}` 의 key. 항목 안에서 고유해야 한다. */
21
+ key: string;
22
+ /** true 면 그 `li` 에 `aria-current="page"` 를 단다. */
23
+ current?: boolean;
24
+ }
25
+ export interface BreadCrumbProps {
26
+ itemSource?: string[];
27
+ /**
28
+ * 항목 slot 모드. 주면 `itemSource` 대신 항목마다 `item-${key}` slot 을 그린다(`nav > ol > li`).
29
+ * 비우면(기본) 종전 문자열 모드다.
30
+ */
31
+ items?: BreadCrumbItem[];
32
+ /** `items` 모드의 `<ol>` 에 실을 클래스 — 항목 간격·줄바꿈·글꼴은 소비자 디자인 시스템이 정한다. */
33
+ listClass?: unknown;
34
+ showFavorite?: boolean;
35
+ /** v-model:favorite (defineModel default true) */
36
+ modelValue?: boolean;
37
+ class?: unknown;
38
+ style?: unknown;
39
+ [attr: string]: unknown;
40
+ }
41
+ export interface BreadCrumbEmits {
42
+ click: [boolean];
43
+ }
44
+ export interface BreadCrumbTemplateOptions {
45
+ itemSource?: string[];
46
+ showFavorite?: boolean;
47
+ /** favorite v-model 값 (표시 전용) */
48
+ favorite?: boolean;
49
+ onFavClick?: () => void;
50
+ /** 소비자가 준 favorite slot 콘텐츠 (있으면 기본 버튼 대체) */
51
+ favoriteSlot?: unknown;
52
+ /** title slot 콘텐츠 */
53
+ titleSlot?: unknown;
54
+ /**
55
+ * navigation landmark 의 접근 가능한 이름.
56
+ *
57
+ * 이 템플릿은 순수 함수라 `ctx.locale` 에 닿지 못한다 — 호출하는 코어가 로케일 문자열을
58
+ * 넘긴다. 생략 시 영어 'breadcrumb' 로 두어 기존 동작을 유지한다.
59
+ */
60
+ ariaLabel?: string;
61
+ class?: unknown;
62
+ style?: unknown;
63
+ rest?: Record<string, unknown>;
64
+ }
65
+ /**
66
+ * 순수 lit-html BreadCrumb 템플릿 — 다른 코어(Controller 의 navigation 표시 등)에서 합성용.
67
+ * createBreadCrumb 의 render 를 1:1 재현.
68
+ */
69
+ export declare function breadcrumbTemplate(o: BreadCrumbTemplateOptions): TemplateResult;
70
+ export declare const createBreadCrumb: import('../..').CoreFactory<BreadCrumbProps, BreadCrumbEmits, void>;
@@ -0,0 +1,9 @@
1
+ import { TemplateResult } from 'lit-html';
2
+
3
+ /** BreadCrumb 아이콘 (IconArrowRight/IconFavorite/IconFavoriteFilled.vue 1:1 포팅) */
4
+ /** 구분자 화살표 — 원본은 color prop 이 있으나 템플릿에서 미사용(fill 하드코딩 #8998b5). */
5
+ export declare function iconArrowRight(cls?: string): TemplateResult;
6
+ /** 즐겨찾기(빈) — stroke=color, 기본 #8998b5 */
7
+ export declare function iconFavorite(color?: string, cls?: string): TemplateResult;
8
+ /** 즐겨찾기(채움) — fill+stroke=color, 기본 #4568e0 */
9
+ export declare function iconFavoriteFilled(color?: string, cls?: string): TemplateResult;
@@ -0,0 +1,10 @@
1
+ import { MozSpec } from '../../runtime/types';
2
+ import { BreadCrumbProps, BreadCrumbEmits } from './breadcrumb.core';
3
+
4
+ export { createBreadCrumb, breadcrumbTemplate } from './breadcrumb.core';
5
+ export type { BreadCrumbProps, BreadCrumbEmits, BreadCrumbItem, BreadCrumbTemplateOptions } from './breadcrumb.core';
6
+ export { iconArrowRight, iconFavorite, iconFavoriteFilled } from './icons';
7
+ /**
8
+ * favorite 는 v-model(modelValue) — 표시 전용(클릭은 click 이벤트만, 자체 토글 안 함).
9
+ */
10
+ export declare const BREADCRUMB_SPEC: MozSpec<BreadCrumbProps, BreadCrumbEmits, void>;
@@ -0,0 +1,59 @@
1
+ import { TemplateResult } from 'lit-html';
2
+
3
+ /**
4
+ * Button 코어 — Button.vue 의 mount-함수 팩토리 1:1 포팅.
5
+ *
6
+ * 보존해야 하는 기벽(1:1):
7
+ * - 19-멤버 ButtonType 유니온이지만 실제 분기는 6개뿐, 나머지는 조용히 default 로 폴백.
8
+ * - action==='Search' 클릭 시 self-managed internalLoading (true→loading 없으면 즉시 false).
9
+ * - width 가 :style(rem) 과 raw(var) 양쪽에 먹임.
10
+ * - $attrs 패스스루(native click 버블 포함).
11
+ */
12
+ export type ButtonType = 'contained' | 'contained-large' | 'contained-small' | 'outline' | 'outline-small' | 'outline-icon' | 'ghost' | 'ghost-small' | 'ghost-xsmall' | 'contained-icon' | 'contained-icon-large' | 'contained-icon-small' | 'icon' | 'icon-active' | 'icon-accent' | 'text' | 'no-interaction' | 'default';
13
+ export type ButtonAction = 'Add' | 'Remove' | 'Edit' | 'Save' | 'Search' | 'Run' | 'Copy';
14
+ export interface ButtonProps {
15
+ action?: ButtonAction;
16
+ text?: string;
17
+ /** moz 시각 variant. native HTML button 의 `type` 이 아니다 — 그건 `nativeType`. */
18
+ type?: ButtonType;
19
+ /**
20
+ * native HTML `button[type]`. 기본 `'button'`.
21
+ *
22
+ * ⚠️ 기본값이 native 기본(`submit`)이 아니라 `'button'` 인 이유: `type` prop 이 moz
23
+ * variant 로 이미 점유돼 있어 소비자가 native type 을 지정할 통로가 없었고, 그 결과
24
+ * moz Button 이 <form> 안에 놓이면 어떤 버튼이든 폼을 제출했다. 제출이 필요한 버튼은
25
+ * `nativeType="submit"` 을 명시한다.
26
+ */
27
+ nativeType?: 'button' | 'submit' | 'reset';
28
+ width?: string | number;
29
+ loading?: boolean;
30
+ disabled?: boolean;
31
+ /** 패스스루 (Vue $attrs / React className·style·rest) */
32
+ class?: unknown;
33
+ style?: unknown;
34
+ [attr: string]: unknown;
35
+ }
36
+ export interface ButtonEmits {
37
+ click: [MouseEvent];
38
+ }
39
+ export interface ButtonApi {
40
+ setLoading(v: boolean): void;
41
+ }
42
+ export interface ButtonTemplateOptions {
43
+ /** 클릭 핸들러 (disabled/loading 시 자동 차단 — Button.vue handleClick guard 1:1) */
44
+ onClick?: (e: MouseEvent) => void;
45
+ /** icon 슬롯 콘텐츠 (Button.vue #icon) */
46
+ icon?: unknown;
47
+ /** default 슬롯 콘텐츠 (Button.vue 기본 슬롯) */
48
+ content?: unknown;
49
+ /** 루트 button 으로 패스스루할 추가 attrs */
50
+ rest?: Record<string, unknown>;
51
+ }
52
+ /**
53
+ * 순수 lit-html Button 템플릿 — 다른 코어(Popup 의 close/footer 버튼 등)에서 합성용.
54
+ *
55
+ * createButton 의 render 를 1:1 재현하되, Search 액션 self-loading 같은 내부 상태는 없다
56
+ * (합성처는 loading 을 prop 으로 직접 제어하므로 internalLoading === loading 이 항상 성립).
57
+ */
58
+ export declare function buttonTemplate(p: ButtonProps, opts?: ButtonTemplateOptions): TemplateResult;
59
+ export declare const createButton: import('../..').CoreFactory<ButtonProps, ButtonEmits, ButtonApi>;
@@ -0,0 +1,8 @@
1
+ import { TemplateResult } from 'lit-html';
2
+
3
+ /** CircleLoader.vue 의 lit-html 1:1 포팅 (내부 스피너). SVG path/색상 동일. */
4
+ export interface CircleLoaderProps {
5
+ circleClass?: string;
6
+ progressClass?: string;
7
+ }
8
+ export declare function circleLoader(props?: CircleLoaderProps): TemplateResult;
@@ -0,0 +1,12 @@
1
+ import { MozSpec } from '../../runtime/types';
2
+ import { ButtonProps, ButtonEmits, ButtonApi } from './button.core';
3
+
4
+ export { createButton, buttonTemplate } from './button.core';
5
+ export type { ButtonProps, ButtonEmits, ButtonApi, ButtonType, ButtonAction, ButtonTemplateOptions } from './button.core';
6
+ export { circleLoader } from './circleLoader';
7
+ export type { CircleLoaderProps } from './circleLoader';
8
+ /**
9
+ * BUTTON_SPEC — Vue/React 래퍼가 각각 1줄로 컴포넌트를 찍어내는 공용 스펙.
10
+ * (스타일은 별도: `@vmscloud/moz-ui-components-core/styles/button.css` 를 소비자가 import)
11
+ */
12
+ export declare const BUTTON_SPEC: MozSpec<ButtonProps, ButtonEmits, ButtonApi>;
@@ -0,0 +1,25 @@
1
+ import { Dayjs } from '../../shared';
2
+
3
+ /**
4
+ * Calendar 코어 — Calendar.vue 1:1 포팅.
5
+ * 3 뷰(달력/연도/월) + 월 네비 + min/max disable + v-model. dayjs(raw, 플러그인 확장) 사용.
6
+ * 보존: modelValue 변경 시 inputValue 리셋(watch), weeksInMonth 계산 시 setMaxHeight emit(원본 side-effect),
7
+ * defineModel set 은 effectively dayjs(day) 를 emit. 'changed' emit 은 원본에서도 dead(선언만).
8
+ * (원본 onYearViewClick 의 스크롤-투-선택연도는 cosmetic — 생략)
9
+ */
10
+ export interface CalendarProps {
11
+ rowHeight?: number;
12
+ exceptWeeks?: number[];
13
+ min?: string | Date | Dayjs | null;
14
+ max?: string | Date | Dayjs | null;
15
+ modelValue?: Dayjs | Date | null;
16
+ class?: unknown;
17
+ style?: unknown;
18
+ [attr: string]: unknown;
19
+ }
20
+ export interface CalendarEmits {
21
+ changed: [];
22
+ setMaxHeight: [number];
23
+ 'update:modelValue': [Dayjs | undefined];
24
+ }
25
+ export declare const createCalendar: import('../..').CoreFactory<CalendarProps, CalendarEmits, void>;
@@ -0,0 +1,7 @@
1
+ import { TemplateResult } from 'lit-html';
2
+
3
+ /** Calendar 아이콘 (IconArrowDown/Left/Right/CalendarTodayDot.vue 1:1 포팅). */
4
+ export declare function iconArrowDown(color?: string): TemplateResult;
5
+ export declare function iconArrowLeft(color?: string): TemplateResult;
6
+ export declare function iconArrowRight(color?: string): TemplateResult;
7
+ export declare function iconCalendarTodayDot(color?: string): TemplateResult;
@@ -0,0 +1,7 @@
1
+ import { MozSpec } from '../../runtime/types';
2
+ import { CalendarProps, CalendarEmits } from './calendar.core';
3
+
4
+ export { createCalendar } from './calendar.core';
5
+ export type { CalendarProps, CalendarEmits } from './calendar.core';
6
+ /** 헤더 아이콘 버튼이 moz-button 클래스를 재현 → 소비자는 button.css 도 함께 import. */
7
+ export declare const CALENDAR_SPEC: MozSpec<CalendarProps, CalendarEmits, void>;
@@ -0,0 +1,46 @@
1
+ import { TemplateResult } from 'lit-html';
2
+
3
+ /**
4
+ * CheckBox 코어 — CheckBox.vue 1:1 포팅.
5
+ *
6
+ * 보존 포인트(1:1):
7
+ * - controlled/uncontrolled 이중 모드: 소비자가 `checked` prop 을 전달했으면 controlled
8
+ * (ctx.controlled('checked'); 원본의 vnode.props introspection 대체). controlled 는 model 을
9
+ * 바꾸지 않고 change 만 emit + native checkbox 를 강제 리셋.
10
+ * - uncontrolled 는 update:modelValue + change 둘 다 emit.
11
+ * - indeterminate 는 아이콘 스왑만(native input.indeterminate 는 설정 안 함).
12
+ * - readonly 는 native change 를 되돌림, disabled/readonly 시 토글 차단.
13
+ * - 키보드 Enter/Space 토글 + focus 링(isFocused).
14
+ * - $attrs 는 (inheritAttrs:false) 루트가 아니라 input 으로 패스스루.
15
+ */
16
+ export interface CheckBoxProps {
17
+ label?: string;
18
+ fieldId?: string;
19
+ disabled?: boolean;
20
+ readonly?: boolean;
21
+ checked?: boolean;
22
+ indeterminate?: boolean;
23
+ modelValue?: boolean;
24
+ class?: unknown;
25
+ style?: unknown;
26
+ [attr: string]: unknown;
27
+ }
28
+ export interface CheckBoxEmits {
29
+ change: [boolean];
30
+ 'update:modelValue': [boolean];
31
+ }
32
+ export interface CheckboxTemplateOptions {
33
+ checked?: boolean;
34
+ disabled?: boolean;
35
+ indeterminate?: boolean;
36
+ /** 토글 시 새 checked 값으로 호출 (controlled — 렌더는 항상 opts.checked 를 반영) */
37
+ onChange?: (checked: boolean) => void;
38
+ class?: unknown;
39
+ }
40
+ /**
41
+ * 순수 lit-html CheckBox 템플릿 — 다른 코어(TreeSelect 등)에서 합성용.
42
+ * controlled 전용(내부 상태 없음): 클릭/change 시 onChange(!checked) 만 호출하고 렌더는 opts.checked 반영.
43
+ * 클릭은 stopPropagation(부모 행 클릭과 분리) — CheckBox.vue onClick 1:1.
44
+ */
45
+ export declare function checkboxTemplate(opts?: CheckboxTemplateOptions): TemplateResult;
46
+ export declare const createCheckBox: import('../..').CoreFactory<CheckBoxProps, CheckBoxEmits, void>;
@@ -0,0 +1,9 @@
1
+ import { TemplateResult } from 'lit-html';
2
+
3
+ /** CheckBox 아이콘 (IconCheckBox/IconCheckBoxChecked/IconCheckboxIndeterminate.vue 1:1 포팅) */
4
+ /** 미체크 — 테두리 사각형. data-icon=unchecked, 클래스 check-icon(hover 재색칠 대상) */
5
+ export declare function iconCheckBox(color?: string, disabled?: boolean, cls?: string): TemplateResult;
6
+ /** 체크 — 체크 표시. data-icon=checked, 클래스 checked-icon */
7
+ export declare function iconCheckBoxChecked(color?: string, disabled?: boolean, cls?: string): TemplateResult;
8
+ /** 부분선택 — 가로줄. data-icon=indeterminate, 클래스 checked-icon */
9
+ export declare function iconCheckboxIndeterminate(color?: string, disabled?: boolean, cls?: string): TemplateResult;
@@ -0,0 +1,10 @@
1
+ import { MozSpec } from '../../runtime/types';
2
+ import { CheckBoxProps, CheckBoxEmits } from './checkbox.core';
3
+
4
+ export { createCheckBox, checkboxTemplate } from './checkbox.core';
5
+ export type { CheckBoxProps, CheckBoxEmits, CheckboxTemplateOptions } from './checkbox.core';
6
+ export { iconCheckBox, iconCheckBoxChecked, iconCheckboxIndeterminate } from './icons';
7
+ /**
8
+ * checked 전달 시 controlled(model 미변경, change 만). 미전달 시 uncontrolled(update:modelValue + change).
9
+ */
10
+ export declare const CHECKBOX_SPEC: MozSpec<CheckBoxProps, CheckBoxEmits, void>;
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Collapsible 코어 — **콘텐츠 패널만** 그린다.
3
+ *
4
+ * 트리거는 소비처가 이미 렌더한 프레임워크 엘리먼트다(버튼·행 헤더·아이콘 조합). 거기에 ref·
5
+ * 클릭 토글·`aria-expanded`/`aria-controls` 를 얹는 일은 프레임워크 래퍼의 몫이라 코어가
6
+ * 그리지 않는다 — Tooltip·Popover 와 같은 규약이다.
7
+ *
8
+ * 코어가 갖는 것은 패널의 마크업·상태 훅·높이 실측이다.
9
+ * - `data-state="open"|"closed"` 로 스타일 훅을 노출한다.
10
+ * - 닫히면 기본적으로 **DOM 에서 사라진다**(`nothing`). 닫힌 채로도 남겨야 하면 `forceMount`
11
+ * 를 켜고, 그때는 `hidden` 속성이 실린다.
12
+ * - 열려 있는 동안 패널의 자연 높이를 `--moz-collapsible-content-height` 로 실어 준다.
13
+ * 높이 전환 애니메이션은 스타일 테마가 이 변수를 읽어 처리한다(코어는 강제하지 않는다).
14
+ */
15
+ export interface CollapsibleProps {
16
+ /** 열림 상태. 제어는 전적으로 소비처(래퍼) 몫이다. */
17
+ open?: boolean;
18
+ /** 패널 element 의 id — 트리거의 `aria-controls` 와 짝을 이룬다. */
19
+ contentId?: string;
20
+ /** 트리거가 비활성일 때 패널에도 `data-disabled` 를 남긴다(스타일 훅). */
21
+ disabled?: boolean;
22
+ /** 닫혀도 DOM 에 남긴다(`hidden`). 검색·인쇄·전환 애니메이션이 필요할 때만 켠다. */
23
+ forceMount?: boolean;
24
+ class?: unknown;
25
+ style?: unknown;
26
+ [attr: string]: unknown;
27
+ }
28
+ export interface CollapsibleEmits {
29
+ /** 패널의 자연 높이(px)가 바뀔 때. 소비처 애니메이션·가상 스크롤 보정용. */
30
+ heightChange: [number];
31
+ }
32
+ /** 실측 높이를 싣는 CSS 변수 이름 — 테마 SCSS 와 소비처가 함께 읽는 계약이다. */
33
+ export declare const COLLAPSIBLE_HEIGHT_VAR = "--moz-collapsible-content-height";
34
+ export declare const createCollapsible: import('../..').CoreFactory<CollapsibleProps, CollapsibleEmits, void>;
@@ -0,0 +1,15 @@
1
+ import { MozSpec } from '../../runtime/types';
2
+ import { CollapsibleProps, CollapsibleEmits } from './collapsible.core';
3
+
4
+ export { createCollapsible, COLLAPSIBLE_HEIGHT_VAR } from './collapsible.core';
5
+ export type { CollapsibleProps, CollapsibleEmits } from './collapsible.core';
6
+ /**
7
+ * COLLAPSIBLE_SPEC — 콘텐츠 패널 전용 스펙. 트리거는 소비처 소유라 코어가 그리지 않는다.
8
+ *
9
+ * `content` slot 은 **동적 slot 경로(`slots={{ content: … }}`)로 넘겨야 한다.** 정적 slot 으로
10
+ * 넘기면 브릿지가 독립 React root 에 마운트해 소비자 context(Router·QueryClient·테마)가
11
+ * 끊긴다 — Tooltip·Popover 와 같은 규약이다.
12
+ *
13
+ * (스타일은 별도: `@vmscloud/moz-ui-components-core/styles/collapsible.css`)
14
+ */
15
+ export declare const COLLAPSIBLE_SPEC: MozSpec<CollapsibleProps, CollapsibleEmits, void>;
@@ -0,0 +1,58 @@
1
+ /**
2
+ * ContextMenu 코어 — ContextMenu.vue(+Items/Item) 1:1 포팅 (오버레이 티어).
3
+ *
4
+ * 보존 포인트(1:1):
5
+ * - 명령형 api: open(setMenuItems?, menuProps?) / close() / toggle() / state. 보통 우클릭에서 open() 호출.
6
+ * - body 포털: 전체화면 backdrop(.context-menu-wrapper, mouseenter 로 커서 위치 계산) + content.
7
+ * - 재귀 서브메뉴(ContextMenuItems ↔ ContextMenuItemsItem): item.children hover(400ms debounce) 시 펼침.
8
+ * - 코너 감지(isRightCorner/isBottomCorner/isSubRightCorner)로 방향 클래스. transition(fade) 상태머신.
9
+ * - item: text+화살표 / template(슬롯 커스텀) / separator / disabled(bool|fn) / hidden / hover / function.
10
+ * - beforeClose 는 truthy 체크만(항상 truthy fn) → 실제 호출 안 되는 기벽 보존.
11
+ * - 위치/코너/트랜지션 픽셀은 jsdom 에서 검증 불가(레이아웃 없음) — 로직만 1:1.
12
+ */
13
+ export interface IContextMenu {
14
+ text?: string;
15
+ function?: () => void;
16
+ disabled?: boolean | (() => boolean);
17
+ hidden?: boolean;
18
+ hover?: boolean;
19
+ separator?: boolean;
20
+ template?: string;
21
+ children?: IContextMenu[];
22
+ [key: string]: unknown;
23
+ }
24
+ export interface ContextPosition {
25
+ left: string | number;
26
+ top: string | number;
27
+ selector?: string;
28
+ useTeleport?: boolean;
29
+ }
30
+ export interface ContextMenuProps {
31
+ itemSource?: IContextMenu[];
32
+ beforeClose?: () => unknown;
33
+ transition?: string;
34
+ minWidth?: string;
35
+ direction?: string;
36
+ fixPosition?: ContextPosition;
37
+ toTopCenter?: boolean;
38
+ toBottomCenter?: boolean;
39
+ noPadding?: boolean;
40
+ disableCloseOnClickBackdrop?: boolean;
41
+ class?: unknown;
42
+ [attr: string]: unknown;
43
+ }
44
+ export interface ContextMenuEmits {
45
+ open: [{
46
+ target: HTMLElement | null;
47
+ }];
48
+ close: [{
49
+ target: HTMLElement | null;
50
+ }];
51
+ }
52
+ export interface ContextMenuApi {
53
+ state: () => boolean;
54
+ open: (setMenuItems?: (menuProps?: unknown) => IContextMenu[], menuProps?: unknown) => void;
55
+ close: () => void;
56
+ toggle: () => void;
57
+ }
58
+ export declare const createContextMenu: import('../..').CoreFactory<ContextMenuProps, ContextMenuEmits, ContextMenuApi>;
@@ -0,0 +1,10 @@
1
+ import { MozSpec } from '../../runtime/types';
2
+ import { ContextMenuProps, ContextMenuEmits, ContextMenuApi } from './contextmenu.core';
3
+
4
+ export { createContextMenu } from './contextmenu.core';
5
+ export type { ContextMenuProps, ContextMenuEmits, ContextMenuApi, IContextMenu, ContextPosition } from './contextmenu.core';
6
+ /**
7
+ * ContextMenu — 명령형 open/close/toggle 로 여는 컨텍스트 메뉴(재귀 서브메뉴). 스타일: contextmenu.css.
8
+ * 보통 우클릭 핸들러에서 ref 로 open() 호출. item.template 이름의 슬롯으로 커스텀 아이템 렌더.
9
+ */
10
+ export declare const CONTEXTMENU_SPEC: MozSpec<ContextMenuProps, ContextMenuEmits, ContextMenuApi>;
@@ -0,0 +1,44 @@
1
+ import { ButtonAction } from '../button/button.core';
2
+
3
+ /**
4
+ * Controller 코어 — Controller.vue 1:1 포팅.
5
+ *
6
+ * 합성: BreadCrumb(navigation 표시, show-favorite=false 고정) + Toggle(조회조건) + Button(액션들).
7
+ * → breadcrumbTemplate / toggleTemplate / buttonTemplate 순수 템플릿 헬퍼로 합성.
8
+ *
9
+ * 보존 포인트(1:1):
10
+ * - showFilter 는 내부 상태(showFilterButton 초기값, 이후 prop 변경에 재동기화 안 함).
11
+ * - customQueryParamsPanel 는 v-model(controlled/uncontrolled) — custom-filter slot 있을 때 쓰는 토글.
12
+ * - custom-filter slot 은 `.moz-contents-container` 로 텔레포트(mount 시 존재해야 활성) + v-show.
13
+ * - actionButtons: action 종류→아이콘 매핑 + loading action 있으면 그 외 버튼 disabled.
14
+ * - setControlHeight(height) 를 마운트 전(onBeforeMount 상당)에 1회 호출.
15
+ * - showFavorite/showPreset prop 은 선언만 되고 템플릿에서 미사용(원본 그대로 dead).
16
+ * - filter 패널 transition(controller-filter)은 시각 효과 — 조건부 렌더로 대체(동작 동일).
17
+ */
18
+ export interface ControllerAction {
19
+ action: ButtonAction | 'Edit';
20
+ icon?: string;
21
+ text?: string;
22
+ disabled?: boolean;
23
+ click?: () => void;
24
+ loading?: boolean;
25
+ }
26
+ export interface ControllerProps {
27
+ height?: number;
28
+ setControlHeight?: (h: number) => void;
29
+ showFilterButton?: boolean;
30
+ actions?: ControllerAction[];
31
+ containerStyle?: Record<string, string>;
32
+ headerStyle?: Record<string, string>;
33
+ filterStyle?: Record<string, string>;
34
+ showFavorite?: boolean;
35
+ showPreset?: boolean;
36
+ navigations?: string[];
37
+ /** v-model:customQueryParamsPanel */
38
+ customQueryParamsPanel?: boolean;
39
+ [attr: string]: unknown;
40
+ }
41
+ export interface ControllerEmits {
42
+ 'update:customQueryParamsPanel': [boolean];
43
+ }
44
+ export declare const createController: import('../..').CoreFactory<ControllerProps, ControllerEmits, void>;
@@ -0,0 +1,12 @@
1
+ import { TemplateResult } from 'lit-html';
2
+
3
+ /**
4
+ * Controller 액션 버튼 아이콘 (assets/IconSave/Trash/Plus/Search/Play.vue 1:1 포팅).
5
+ * Controller 는 항상 `size="14" color="currentColor"` 로만 사용(disabled 는 아이콘에 안 넘김) →
6
+ * 모든 fill/stroke 는 color 로 귀결. width>=14 이므로 각 아이콘의 14px 변형만 렌더.
7
+ */
8
+ export declare function iconSave(color?: string, size?: number): TemplateResult;
9
+ export declare function iconTrash(color?: string, size?: number): TemplateResult;
10
+ export declare function iconPlus(color?: string, size?: number): TemplateResult;
11
+ export declare function iconSearch(color?: string, size?: number): TemplateResult;
12
+ export declare function iconPlay(color?: string, size?: number): TemplateResult;
@@ -0,0 +1,12 @@
1
+ import { MozSpec } from '../../runtime/types';
2
+ import { ControllerProps, ControllerEmits } from './controller.core';
3
+
4
+ export { createController } from './controller.core';
5
+ export type { ControllerProps, ControllerEmits, ControllerAction } from './controller.core';
6
+ /**
7
+ * Controller — 액션 바(BreadCrumb + 조회조건 Toggle + 액션 Button 들). 스타일: controller.css.
8
+ *
9
+ * customQueryParamsPanel 은 v-model(코어가 update:customQueryParamsPanel 직접 발행) — custom-filter
10
+ * slot 사용 시의 패널 토글. custom-filter slot 은 마운트 시 `.moz-contents-container` 로 텔레포트.
11
+ */
12
+ export declare const CONTROLLER_SPEC: MozSpec<ControllerProps, ControllerEmits, void>;
@@ -0,0 +1,32 @@
1
+ import { Dayjs } from '../../shared';
2
+
3
+ /**
4
+ * DateInput 코어 — DateInput.vue 1:1 포팅.
5
+ * input(포맷 표시) + optional 스핀 버튼(±1일) + 아이콘 클릭 시 Calendar 드롭다운(PortalHost + Overlay).
6
+ * defineModel set 은 type-preserving(Date↔Date, Dayjs↔Dayjs). 드롭다운은 core-composes-core:
7
+ * createCalendar 를 포털 el 에 마운트하고 v-model/min/max/setMaxHeight 를 브릿지.
8
+ */
9
+ export interface DateInputProps {
10
+ label?: string;
11
+ name?: string;
12
+ width?: string | number;
13
+ required?: boolean;
14
+ disabled?: boolean;
15
+ readonly?: boolean;
16
+ format?: string;
17
+ showSpin?: boolean;
18
+ min?: string | Date | Dayjs | null;
19
+ max?: string | Date | Dayjs | null;
20
+ modelValue?: Dayjs | Date | null;
21
+ class?: unknown;
22
+ style?: unknown;
23
+ [attr: string]: unknown;
24
+ }
25
+ export interface DateInputEmits {
26
+ change: [Dayjs | Date | undefined | null];
27
+ focus: [];
28
+ focusOut: [];
29
+ close: [];
30
+ 'update:modelValue': [Dayjs | Date | undefined];
31
+ }
32
+ export declare const createDateInput: import('../..').CoreFactory<DateInputProps, DateInputEmits, void>;
@@ -0,0 +1,6 @@
1
+ import { TemplateResult } from 'lit-html';
2
+
3
+ /** DateInput 아이콘 (IconArrowLeft/Right/Calendar.vue 1:1 포팅). */
4
+ export declare function iconArrowLeft(color?: string, size?: string | number, disabled?: boolean): TemplateResult;
5
+ export declare function iconArrowRight(color?: string, size?: string | number, disabled?: boolean): TemplateResult;
6
+ export declare function iconCalendar(color?: string, cls?: string): TemplateResult;
@@ -0,0 +1,7 @@
1
+ import { MozSpec } from '../../runtime/types';
2
+ import { DateInputProps, DateInputEmits } from './dateinput.core';
3
+
4
+ export { createDateInput } from './dateinput.core';
5
+ export type { DateInputProps, DateInputEmits } from './dateinput.core';
6
+ /** 스핀 버튼(button.css) + 드롭다운 Calendar(calendar.css) 스타일도 함께 import 필요. */
7
+ export declare const DATEINPUT_SPEC: MozSpec<DateInputProps, DateInputEmits, void>;
@@ -0,0 +1,25 @@
1
+ import { EmptyStateMessages } from './emptystate.types';
2
+
3
+ export interface EmptyStateProps {
4
+ isReadOnly?: boolean;
5
+ isCustomState?: boolean;
6
+ headerMsg?: string;
7
+ contentMsg?: string;
8
+ /** 원본 오타 유지 (filtered 아님) */
9
+ filterdRowCount?: number;
10
+ totalRowCount?: number;
11
+ useImg?: boolean;
12
+ selectImg?: 'Custom' | 'Result' | 'Data' | 'Search';
13
+ messages?: EmptyStateMessages;
14
+ /**
15
+ * 조립 모드. true 면 `icon`·`heading`·`description`·`actions` slot 만 그리고, 프리셋 이미지·기본 문구·
16
+ * 행 카운트 판정을 전부 끈다. 기본 false(1:1 프리셋 모드).
17
+ */
18
+ composed?: boolean;
19
+ class?: unknown;
20
+ style?: unknown;
21
+ [attr: string]: unknown;
22
+ }
23
+ export interface EmptyStateEmits {
24
+ }
25
+ export declare const createEmptyState: import('../..').CoreFactory<EmptyStateProps, EmptyStateEmits, void>;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * EmptyState 메시지 인터페이스
3
+ */
4
+ export interface EmptyStateMessages {
5
+ customEmptyHeader?: string;
6
+ customEmptyContent?: string;
7
+ dataEmptyHeader?: string;
8
+ dataEmptyContent?: string;
9
+ resultEmptyHeader?: string;
10
+ resultEmptyContent?: string;
11
+ searchEmptyHeader?: string;
12
+ searchEmptyContent?: string;
13
+ }
14
+ /**
15
+ * 기본 메시지
16
+ */
17
+ export declare const defaultEmptyStateMessages: EmptyStateMessages;
@@ -0,0 +1,8 @@
1
+ import { MozSpec } from '../../runtime/types';
2
+ import { EmptyStateProps, EmptyStateEmits } from './emptystate.core';
3
+
4
+ export { createEmptyState } from './emptystate.core';
5
+ export type { EmptyStateProps, EmptyStateEmits } from './emptystate.core';
6
+ export { defaultEmptyStateMessages } from './emptystate.types';
7
+ export type { EmptyStateMessages } from './emptystate.types';
8
+ export declare const EMPTYSTATE_SPEC: MozSpec<EmptyStateProps, EmptyStateEmits, void>;