@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.
- package/dist/components/avatar/avatar.core.d.ts +39 -0
- package/dist/components/avatar/index.d.ts +14 -0
- package/dist/components/bread-crumb/breadcrumb.core.d.ts +70 -0
- package/dist/components/bread-crumb/icons.d.ts +9 -0
- package/dist/components/bread-crumb/index.d.ts +10 -0
- package/dist/components/button/button.core.d.ts +59 -0
- package/dist/components/button/circleLoader.d.ts +8 -0
- package/dist/components/button/index.d.ts +12 -0
- package/dist/components/calendar/calendar.core.d.ts +25 -0
- package/dist/components/calendar/icons.d.ts +7 -0
- package/dist/components/calendar/index.d.ts +7 -0
- package/dist/components/checkbox/checkbox.core.d.ts +46 -0
- package/dist/components/checkbox/icons.d.ts +9 -0
- package/dist/components/checkbox/index.d.ts +10 -0
- package/dist/components/collapsible/collapsible.core.d.ts +34 -0
- package/dist/components/collapsible/index.d.ts +15 -0
- package/dist/components/context-menu/contextmenu.core.d.ts +58 -0
- package/dist/components/context-menu/index.d.ts +10 -0
- package/dist/components/controller/controller.core.d.ts +44 -0
- package/dist/components/controller/icons.d.ts +12 -0
- package/dist/components/controller/index.d.ts +12 -0
- package/dist/components/date-input/dateinput.core.d.ts +32 -0
- package/dist/components/date-input/icons.d.ts +6 -0
- package/dist/components/date-input/index.d.ts +7 -0
- package/dist/components/empty-state/emptystate.core.d.ts +25 -0
- package/dist/components/empty-state/emptystate.types.d.ts +17 -0
- package/dist/components/empty-state/index.d.ts +8 -0
- package/dist/components/input/icons.d.ts +4 -0
- package/dist/components/input/index.d.ts +10 -0
- package/dist/components/input/input.core.d.ts +38 -0
- package/dist/components/label/index.d.ts +6 -0
- package/dist/components/label/label.core.d.ts +22 -0
- package/dist/components/multi-select/icons.d.ts +14 -0
- package/dist/components/multi-select/index.d.ts +10 -0
- package/dist/components/multi-select/multiselect.core.d.ts +60 -0
- package/dist/components/number-input/icons.d.ts +7 -0
- package/dist/components/number-input/index.d.ts +7 -0
- package/dist/components/number-input/numberinput.core.d.ts +30 -0
- package/dist/components/password-input/icons.d.ts +7 -0
- package/dist/components/password-input/index.d.ts +7 -0
- package/dist/components/password-input/passwordinput.core.d.ts +29 -0
- package/dist/components/popover/index.d.ts +14 -0
- package/dist/components/popover/popover.core.d.ts +65 -0
- package/dist/components/popup/icons.d.ts +18 -0
- package/dist/components/popup/index.d.ts +14 -0
- package/dist/components/popup/popup.core.d.ts +132 -0
- package/dist/components/radio/index.d.ts +9 -0
- package/dist/components/radio/radio.core.d.ts +35 -0
- package/dist/components/scroll-area/index.d.ts +16 -0
- package/dist/components/scroll-area/scrollarea.core.d.ts +47 -0
- package/dist/components/select/icons.d.ts +16 -0
- package/dist/components/select/index.d.ts +10 -0
- package/dist/components/select/select.core.d.ts +48 -0
- package/dist/components/slider/index.d.ts +6 -0
- package/dist/components/slider/slider.core.d.ts +23 -0
- package/dist/components/split-pane/index.d.ts +15 -0
- package/dist/components/split-pane/splitpane.core.d.ts +24 -0
- package/dist/components/tab/icons.d.ts +4 -0
- package/dist/components/tab/index.d.ts +10 -0
- package/dist/components/tab/tab.core.d.ts +28 -0
- package/dist/components/table-select/index.d.ts +10 -0
- package/dist/components/table-select/tableselect.core.d.ts +45 -0
- package/dist/components/tag-input/icons.d.ts +9 -0
- package/dist/components/tag-input/index.d.ts +12 -0
- package/dist/components/tag-input/taginput.core.d.ts +32 -0
- package/dist/components/textarea/index.d.ts +6 -0
- package/dist/components/textarea/textarea.core.d.ts +35 -0
- package/dist/components/time-picker/icons.d.ts +9 -0
- package/dist/components/time-picker/index.d.ts +10 -0
- package/dist/components/time-picker/timepicker.core.d.ts +26 -0
- package/dist/components/toast/icons.d.ts +12 -0
- package/dist/components/toast/index.d.ts +13 -0
- package/dist/components/toast/timer.d.ts +17 -0
- package/dist/components/toast/toast.core.d.ts +48 -0
- package/dist/components/toast/useToast.d.ts +13 -0
- package/dist/components/toggle/index.d.ts +9 -0
- package/dist/components/toggle/toggle.core.d.ts +54 -0
- package/dist/components/tooltip/index.d.ts +18 -0
- package/dist/components/tooltip/placement.d.ts +9 -0
- package/dist/components/tooltip/tooltip.core.d.ts +50 -0
- package/dist/components/tree-select/icons.d.ts +14 -0
- package/dist/components/tree-select/index.d.ts +12 -0
- package/dist/components/tree-select/tree-utils.d.ts +63 -0
- package/dist/components/tree-select/treeselect.core.d.ts +45 -0
- package/dist/index.cjs +1887 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +51 -0
- package/dist/index.js +9233 -0
- package/dist/index.js.map +1 -0
- package/dist/locale/en.d.ts +3 -0
- package/dist/locale/index.d.ts +10 -0
- package/dist/locale/ja.d.ts +3 -0
- package/dist/locale/ko.d.ts +3 -0
- package/dist/locale/types.d.ts +482 -0
- package/dist/locale/zh.d.ts +3 -0
- package/dist/overlay/DismissStack.d.ts +49 -0
- package/dist/overlay/Overlay.d.ts +39 -0
- package/dist/overlay/PortalHost.d.ts +11 -0
- package/dist/overlay/index.d.ts +5 -0
- package/dist/overlay/placement.d.ts +74 -0
- package/dist/runtime/ChromeComponent.d.ts +38 -0
- package/dist/runtime/Observable.d.ts +18 -0
- package/dist/runtime/SlotHost.d.ts +48 -0
- package/dist/runtime/defineHeadless.d.ts +28 -0
- package/dist/runtime/spread.d.ts +26 -0
- package/dist/runtime/types.d.ts +149 -0
- package/dist/shared/cn.d.ts +8 -0
- package/dist/shared/dayjs.d.ts +10 -0
- package/dist/shared/index.d.ts +5 -0
- package/dist/shared/utils.d.ts +58 -0
- package/dist/styles/default/avatar.css +94 -0
- package/dist/styles/default/breadcrumb.css +120 -0
- package/dist/styles/default/button.css +220 -0
- package/dist/styles/default/calendar.css +158 -0
- package/dist/styles/default/checkbox.css +128 -0
- package/dist/styles/default/collapsible.css +27 -0
- package/dist/styles/default/contextmenu.css +212 -0
- package/dist/styles/default/controller.css +157 -0
- package/dist/styles/default/dateinput.css +193 -0
- package/dist/styles/default/emptystate.css +91 -0
- package/dist/styles/default/index.css +3877 -0
- package/dist/styles/default/input.css +179 -0
- package/dist/styles/default/label.css +65 -0
- package/dist/styles/default/multiselect.css +394 -0
- package/dist/styles/default/numberinput.css +174 -0
- package/dist/styles/default/passwordinput.css +189 -0
- package/dist/styles/default/popover.css +92 -0
- package/dist/styles/default/popup.css +222 -0
- package/dist/styles/default/radio.css +264 -0
- package/dist/styles/default/scrollarea.css +133 -0
- package/dist/styles/default/select.css +287 -0
- package/dist/styles/default/slider.css +123 -0
- package/dist/styles/default/splitpane.css +62 -0
- package/dist/styles/default/tab.css +172 -0
- package/dist/styles/default/tableselect.css +313 -0
- package/dist/styles/default/taginput.css +296 -0
- package/dist/styles/default/textarea.css +145 -0
- package/dist/styles/default/timepicker.css +221 -0
- package/dist/styles/default/toast.css +165 -0
- package/dist/styles/default/toggle.css +129 -0
- package/dist/styles/default/tooltip.css +131 -0
- package/dist/styles/default/treeselect.css +382 -0
- package/dist/validator/createValidator.d.ts +7 -0
- package/dist/validator/index.d.ts +2 -0
- package/dist/validator/types.d.ts +26 -0
- package/package.json +57 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TemplateResult } from 'lit-html';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Select 아이콘 — IconCheck / IconDropdown / IconDropdownActive / IconSelectSearch.vue 1:1 포팅.
|
|
5
|
+
* size 프리셋(10~30) → width/height, 색상은 파라미터(+disabled 시 #a7b1bc).
|
|
6
|
+
*/
|
|
7
|
+
type IconSize = '10' | '12' | '14' | '16' | '18' | '20' | '22' | '30';
|
|
8
|
+
/** IconCheck.vue 1:1 (기본 size 12, color #8998b5) */
|
|
9
|
+
export declare function iconCheck(size?: IconSize, color?: string, disabled?: boolean, cls?: string): TemplateResult;
|
|
10
|
+
/** IconDropdown.vue 1:1 (기본 size 14, color #8998b5) */
|
|
11
|
+
export declare function iconDropdown(size?: IconSize, color?: string, disabled?: boolean): TemplateResult;
|
|
12
|
+
/** IconDropdownActive.vue 1:1 (기본 size 14, color #8998b5) */
|
|
13
|
+
export declare function iconDropdownActive(size?: IconSize, color?: string, disabled?: boolean): TemplateResult;
|
|
14
|
+
/** IconSelectSearch.vue 1:1 (기본 size 12, color #8998b5, width 구간별 2가지 SVG) */
|
|
15
|
+
export declare function iconSelectSearch(size?: IconSize, color?: string, disabled?: boolean): TemplateResult;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { MozSpec } from '../../runtime/types';
|
|
2
|
+
import { SelectProps, SelectEmits, SelectApi } from './select.core';
|
|
3
|
+
|
|
4
|
+
export { createSelect } from './select.core';
|
|
5
|
+
export type { SelectProps, SelectEmits, SelectApi, DisplayFormatter } from './select.core';
|
|
6
|
+
/**
|
|
7
|
+
* Select — 단일 선택 드롭다운(가상 스크롤 + 필터 + 검증). 스타일은 select.css + label.css 를 import.
|
|
8
|
+
* modelValue 는 v-model(controlled)/uncontrolled 이중 모드. useObjBinding=true 면 model 이 item 객체.
|
|
9
|
+
*/
|
|
10
|
+
export declare const SELECT_SPEC: MozSpec<SelectProps, SelectEmits, SelectApi>;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Rule, RuleEventTarget } from '../../validator/types';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Select 코어 — Select.vue 1:1 포팅 (오버레이 티어, 가상 스크롤).
|
|
5
|
+
*
|
|
6
|
+
* 보존 포인트(1:1):
|
|
7
|
+
* - 단일 v-model. useObjBinding=false 면 model 은 key, true 면 item 객체.
|
|
8
|
+
* - 드롭다운은 position:fixed 로 Overlay 배치(원본 teleport→body 와 화면상 동일; overflow 탈출).
|
|
9
|
+
* - @tanstack/virtual-core 로 가상 스크롤(24px, overscan 5) — vue-virtual 과 동일 엔진.
|
|
10
|
+
* - useFilter 검색(300ms debounce) + 하이라이트(escapeRegExp split).
|
|
11
|
+
* - Validator(change/blur 로컬, save 는 부모 Validator.validate). required 자동 save 규칙.
|
|
12
|
+
* - **close 기벽**: 닫을 때마다 close 가 2회 발행됨 — useDropdownPosition onClose 와 Select 의
|
|
13
|
+
* watch(showList) 가 둘 다 같은 showList 를 보고 emit('close') 하기 때문(원본 그대로).
|
|
14
|
+
* - 키보드 접근성(icon Tab→list, list Tab wrap, row Tab scroll, Esc 닫기) 이식.
|
|
15
|
+
*/
|
|
16
|
+
export type DisplayFormatter = (item: Record<string, unknown>) => string;
|
|
17
|
+
export interface SelectProps {
|
|
18
|
+
itemsSource: readonly Record<string, unknown>[] | Record<string, unknown>[];
|
|
19
|
+
label?: string | null;
|
|
20
|
+
width?: string | number;
|
|
21
|
+
required?: boolean;
|
|
22
|
+
readonly?: boolean;
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
keyProp?: string;
|
|
25
|
+
displayProp?: string | DisplayFormatter;
|
|
26
|
+
rules?: Rule[];
|
|
27
|
+
useObjBinding?: boolean;
|
|
28
|
+
useFilter?: boolean;
|
|
29
|
+
listWidth?: string | number;
|
|
30
|
+
/** 값이 비었을 때 값 표시부에 보여줄 안내 문구. 목록 필터용은 `searchPlaceholder`. */
|
|
31
|
+
placeholder?: string;
|
|
32
|
+
searchPlaceholder?: string;
|
|
33
|
+
emptyText?: string;
|
|
34
|
+
requiredMessage?: string;
|
|
35
|
+
modelValue?: string | number | object | null;
|
|
36
|
+
class?: unknown;
|
|
37
|
+
style?: unknown;
|
|
38
|
+
[attr: string]: unknown;
|
|
39
|
+
}
|
|
40
|
+
export interface SelectEmits {
|
|
41
|
+
change: [value: unknown, item: unknown];
|
|
42
|
+
close: [];
|
|
43
|
+
'update:modelValue': [value: unknown];
|
|
44
|
+
}
|
|
45
|
+
export interface SelectApi {
|
|
46
|
+
validate(eventTarget?: RuleEventTarget): Promise<boolean>;
|
|
47
|
+
}
|
|
48
|
+
export declare const createSelect: import('../..').CoreFactory<SelectProps, SelectEmits, SelectApi>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { MozSpec } from '../../runtime/types';
|
|
2
|
+
import { SliderProps, SliderEmits } from './slider.core';
|
|
3
|
+
|
|
4
|
+
export { createSlider } from './slider.core';
|
|
5
|
+
export type { SliderProps, SliderEmits } from './slider.core';
|
|
6
|
+
export declare const SLIDER_SPEC: MozSpec<SliderProps, SliderEmits, void>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Slider 코어 — Slider.vue 1:1 포팅.
|
|
3
|
+
* 보존: v-model + change emit, mousedown 드래그(window mousemove/mouseup), 좌/우 화살표 step,
|
|
4
|
+
* thumbPosition = ratio*(sliderWidth-18) (음수면 0). 언마운트 시 window 리스너 정리 보장(원본 누수 방지).
|
|
5
|
+
*/
|
|
6
|
+
export interface SliderProps {
|
|
7
|
+
id?: string;
|
|
8
|
+
width?: string | number;
|
|
9
|
+
label?: string;
|
|
10
|
+
min?: number;
|
|
11
|
+
max?: number;
|
|
12
|
+
step?: number;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
modelValue?: number;
|
|
15
|
+
class?: unknown;
|
|
16
|
+
style?: unknown;
|
|
17
|
+
[attr: string]: unknown;
|
|
18
|
+
}
|
|
19
|
+
export interface SliderEmits {
|
|
20
|
+
change: [];
|
|
21
|
+
'update:modelValue': [number];
|
|
22
|
+
}
|
|
23
|
+
export declare const createSlider: import('../..').CoreFactory<SliderProps, SliderEmits, void>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MozSpec } from '../../runtime/types';
|
|
2
|
+
import { SplitPaneProps, SplitPaneEmits } from './splitpane.core';
|
|
3
|
+
|
|
4
|
+
export { createSplitPane } from './splitpane.core';
|
|
5
|
+
export type { SplitPaneProps, SplitPaneEmits, PaneConfig } from './splitpane.core';
|
|
6
|
+
/**
|
|
7
|
+
* SplitPane — 드래그 리사이즈 분할 패널. 스타일: splitpane.css.
|
|
8
|
+
*
|
|
9
|
+
* API 재설계(원본 `<Pane>` 자식 VNode introspection 은 프레임워크 무관 코어 불가):
|
|
10
|
+
* `panes` 설정 배열({size/minSize/maxSize/hidden}) + 각 패널 콘텐츠는 `#pane-0`, `#pane-1` … 슬롯으로 전달.
|
|
11
|
+
* 예) <SplitPane :panes="[{size:'1fr'},{size:'200px',minSize:100}]">
|
|
12
|
+
* <template #pane-0><A/></template><template #pane-1><B/></template>
|
|
13
|
+
* </SplitPane>
|
|
14
|
+
*/
|
|
15
|
+
export declare const SPLITPANE_SPEC: MozSpec<SplitPaneProps, SplitPaneEmits, void>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SplitPane 코어 — SplitPane.vue 1:1 포팅 (드래그 리사이즈 분할 패널).
|
|
3
|
+
*
|
|
4
|
+
* API 재설계(원본은 자식 `<Pane>` VNode props 를 introspect — 프레임워크 무관 코어 불가):
|
|
5
|
+
* 코어는 `panes` 설정 배열({size/minSize/maxSize/hidden}) + `pane-N` 슬롯을 받는다.
|
|
6
|
+
* Vue/React 래퍼가 `<SplitPane><Pane>` 슈가로 자식을 읽어 panes + 슬롯으로 변환(각 프레임워크 방식).
|
|
7
|
+
*
|
|
8
|
+
* 보존(1:1): grid 레이아웃(paneSizes), 리사이저 드래그, min/max 는 숨김 size-calculator div 를
|
|
9
|
+
* clientWidth/Height 로 측정(%·px 단위 그대로), 방향 전환/overdrag 처리, clamp(min, %, max) 세팅.
|
|
10
|
+
*/
|
|
11
|
+
export interface PaneConfig {
|
|
12
|
+
size?: number | string;
|
|
13
|
+
minSize?: number | string;
|
|
14
|
+
maxSize?: number | string;
|
|
15
|
+
hidden?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface SplitPaneProps {
|
|
18
|
+
horizontal?: boolean;
|
|
19
|
+
panes?: PaneConfig[];
|
|
20
|
+
[attr: string]: unknown;
|
|
21
|
+
}
|
|
22
|
+
export interface SplitPaneEmits {
|
|
23
|
+
}
|
|
24
|
+
export declare const createSplitPane: import('../..').CoreFactory<SplitPaneProps, SplitPaneEmits, void>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { MozSpec } from '../../runtime/types';
|
|
2
|
+
import { TabProps, TabEmits } from './tab.core';
|
|
3
|
+
|
|
4
|
+
export { createTab } from './tab.core';
|
|
5
|
+
export type { TabProps, TabEmits, ITab } from './tab.core';
|
|
6
|
+
export { iconClose } from './icons';
|
|
7
|
+
/**
|
|
8
|
+
* slots 는 동적(`${id}-tab` / `${id}`) — Vue 래퍼는 소비자가 준 모든 slot 을 등록하므로 자동 지원.
|
|
9
|
+
*/
|
|
10
|
+
export declare const TAB_SPEC: MozSpec<TabProps, TabEmits, void>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/** Tab 아이템 (moz-ui-components shared/types ITab 1:1) */
|
|
2
|
+
export interface ITab {
|
|
3
|
+
id: string;
|
|
4
|
+
text: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Tab 코어 — Tab.vue 1:1 포팅.
|
|
8
|
+
* 보존: v-model(selected) + change/close emit, closeAble 닫기(현재 탭 닫으면 마지막 남은 탭 선택),
|
|
9
|
+
* 같은 탭 클릭 시 no-op, 마운트 시 modelValue 없으면 첫 탭 auto-select.
|
|
10
|
+
* 동적 slot: `${id}-tab`(헤더, scope {text, active}, fallback `<p.tab-label>`) / `${id}`(패널, scope {active}).
|
|
11
|
+
*/
|
|
12
|
+
export interface TabProps {
|
|
13
|
+
itemSource?: ITab[];
|
|
14
|
+
vertical?: boolean;
|
|
15
|
+
tabWidth?: number;
|
|
16
|
+
maxTabWidth?: number;
|
|
17
|
+
closeAble?: boolean;
|
|
18
|
+
modelValue?: string;
|
|
19
|
+
class?: unknown;
|
|
20
|
+
style?: unknown;
|
|
21
|
+
[attr: string]: unknown;
|
|
22
|
+
}
|
|
23
|
+
export interface TabEmits {
|
|
24
|
+
change: [string];
|
|
25
|
+
close: [string];
|
|
26
|
+
'update:modelValue': [string];
|
|
27
|
+
}
|
|
28
|
+
export declare const createTab: import('../..').CoreFactory<TabProps, TabEmits, void>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { MozSpec } from '../../runtime/types';
|
|
2
|
+
import { TableSelectProps, TableSelectEmits, TableSelectApi } from './tableselect.core';
|
|
3
|
+
|
|
4
|
+
export { createTableSelect } from './tableselect.core';
|
|
5
|
+
export type { TableSelectProps, TableSelectEmits, TableSelectApi } from './tableselect.core';
|
|
6
|
+
/**
|
|
7
|
+
* TableSelect — 다중 컬럼 표 형태의 단일 선택 드롭다운(가상 스크롤 + 필터 + 검증 + 화살표 네비).
|
|
8
|
+
* 스타일: tableselect.css + label.css. modelValue 는 v-model. useObjKeyProp=true 면 model 이 부분집합 객체.
|
|
9
|
+
*/
|
|
10
|
+
export declare const TABLESELECT_SPEC: MozSpec<TableSelectProps, TableSelectEmits, TableSelectApi>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Rule, RuleEventTarget } from '../../validator/types';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* TableSelect 코어 — TableSelect.vue 1:1 포팅 (오버레이 티어, 가상 스크롤 + 다중 컬럼).
|
|
5
|
+
*
|
|
6
|
+
* 보존 포인트(1:1):
|
|
7
|
+
* - Select 변형: 여러 컬럼(displayProps/columnWidths/columnHeaders) 표 레이아웃. 단일 v-model.
|
|
8
|
+
* - useObjKeyProp=false → model 은 keyProp 값 / true → model 은 displayProps 부분집합 객체({...item}).
|
|
9
|
+
* - 드롭다운은 body 포털 + Overlay(useDropdownPosition 1:1, useMinWidth, listWidth). 화살표↑↓/Enter 네비.
|
|
10
|
+
* - virtual-core(32px), useFilter 검색(모든 displayProps, debounce)+하이라이트, Validator(change/blur/save).
|
|
11
|
+
* - **close 기벽 2회**: useDropdownPosition onClose + watch(showList) 둘 다 emit('close') (Select 와 동일).
|
|
12
|
+
*/
|
|
13
|
+
export interface TableSelectProps {
|
|
14
|
+
itemsSource: readonly Record<string, unknown>[] | Record<string, unknown>[];
|
|
15
|
+
label?: string | null;
|
|
16
|
+
width?: string | number;
|
|
17
|
+
required?: boolean;
|
|
18
|
+
readonly?: boolean;
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
keyProp?: string;
|
|
21
|
+
displayProps?: string[];
|
|
22
|
+
columnWidths?: number[];
|
|
23
|
+
separator?: string;
|
|
24
|
+
rules?: Rule[];
|
|
25
|
+
useFilter?: boolean;
|
|
26
|
+
listWidth?: string | number;
|
|
27
|
+
searchPlaceholder?: string;
|
|
28
|
+
emptyText?: string;
|
|
29
|
+
requiredMessage?: string;
|
|
30
|
+
useObjKeyProp?: boolean;
|
|
31
|
+
columnHeaders?: string[];
|
|
32
|
+
modelValue?: string | number | Record<string, unknown> | null;
|
|
33
|
+
class?: unknown;
|
|
34
|
+
style?: unknown;
|
|
35
|
+
[attr: string]: unknown;
|
|
36
|
+
}
|
|
37
|
+
export interface TableSelectEmits {
|
|
38
|
+
change: [value: unknown, item: unknown];
|
|
39
|
+
close: [];
|
|
40
|
+
'update:modelValue': [unknown];
|
|
41
|
+
}
|
|
42
|
+
export interface TableSelectApi {
|
|
43
|
+
validate(eventTarget?: RuleEventTarget): Promise<boolean>;
|
|
44
|
+
}
|
|
45
|
+
export declare const createTableSelect: import('../..').CoreFactory<TableSelectProps, TableSelectEmits, TableSelectApi>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TemplateResult } from 'lit-html';
|
|
2
|
+
|
|
3
|
+
/** TagInput 아이콘 — IconClose / IconEdit.vue 1:1 포팅. */
|
|
4
|
+
type IconSize = '10' | '12' | '14' | '16' | '18' | '20' | '22' | '30';
|
|
5
|
+
/** IconClose.vue 1:1 (고정 12, color #8998b5) */
|
|
6
|
+
export declare function iconClose(color?: string, cls?: string): TemplateResult;
|
|
7
|
+
/** IconEdit.vue 1:1 (기본 size 12, color #8998b5) */
|
|
8
|
+
export declare function iconEdit(size?: IconSize, color?: string, disabled?: boolean, cls?: string): TemplateResult;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { MozSpec } from '../../runtime/types';
|
|
2
|
+
import { TagInputProps, TagInputEmits } from './taginput.core';
|
|
3
|
+
|
|
4
|
+
export { createTagInput } from './taginput.core';
|
|
5
|
+
export type { TagInputProps, TagInputEmits } from './taginput.core';
|
|
6
|
+
/**
|
|
7
|
+
* TagInput — 태그 입력(칩 추가/삭제/편집). 스타일: taginput.css.
|
|
8
|
+
* modelValue string[] v-model. float/dropdown 은 body 포털. left/right 슬롯.
|
|
9
|
+
*/
|
|
10
|
+
export declare const TAGINPUT_SPEC: MozSpec<TagInputProps, TagInputEmits, {
|
|
11
|
+
isValid: () => boolean;
|
|
12
|
+
}>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export interface TagInputProps {
|
|
2
|
+
modelValue?: string[];
|
|
3
|
+
required?: boolean;
|
|
4
|
+
label?: string;
|
|
5
|
+
addButtonLabel?: string;
|
|
6
|
+
itemsSource?: Record<string, unknown>[] | string[];
|
|
7
|
+
displayKey?: string;
|
|
8
|
+
pattern?: string;
|
|
9
|
+
dynamicSearch?: boolean;
|
|
10
|
+
requestCreate?: (value: string) => void;
|
|
11
|
+
requestRead?: (value: string) => Promise<unknown>;
|
|
12
|
+
requestUpdate?: (payload: {
|
|
13
|
+
before: string;
|
|
14
|
+
after: string;
|
|
15
|
+
}) => void;
|
|
16
|
+
simplify?: boolean;
|
|
17
|
+
limitItemLength?: number;
|
|
18
|
+
limitTextLength?: number;
|
|
19
|
+
disableUpdate?: boolean;
|
|
20
|
+
disableDelete?: boolean;
|
|
21
|
+
pushOnBlur?: boolean;
|
|
22
|
+
isExpandTop?: boolean;
|
|
23
|
+
[attr: string]: unknown;
|
|
24
|
+
}
|
|
25
|
+
export interface TagInputEmits {
|
|
26
|
+
'update:modelValue': [string[]];
|
|
27
|
+
modelChange: [string[]];
|
|
28
|
+
onEnterEmpty: [string[]];
|
|
29
|
+
}
|
|
30
|
+
export declare const createTagInput: import('../..').CoreFactory<TagInputProps, TagInputEmits, {
|
|
31
|
+
isValid: () => boolean;
|
|
32
|
+
}>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { MozSpec } from '../../runtime/types';
|
|
2
|
+
import { TextAreaProps, TextAreaEmits } from './textarea.core';
|
|
3
|
+
|
|
4
|
+
export { createTextArea } from './textarea.core';
|
|
5
|
+
export type { TextAreaProps, TextAreaEmits } from './textarea.core';
|
|
6
|
+
export declare const TEXTAREA_SPEC: MozSpec<TextAreaProps, TextAreaEmits, void>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Rule } from '../../validator/types';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* TextArea 코어 — TextArea.vue 1:1 포팅.
|
|
5
|
+
* 보존: maxLength 초과 시 silent truncation + char counter, invalid 메시지는 focus 무관 항상 표시,
|
|
6
|
+
* width 는 number 일 때 pxToRem rem, immediatelyFocus, $attrs(rows/placeholder 등) → textarea.
|
|
7
|
+
* emit 은 update:modelValue 뿐.
|
|
8
|
+
*/
|
|
9
|
+
export interface TextAreaProps {
|
|
10
|
+
id?: string;
|
|
11
|
+
label?: string;
|
|
12
|
+
width?: string | number;
|
|
13
|
+
height?: number;
|
|
14
|
+
required?: boolean;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
rules?: Rule[];
|
|
17
|
+
maxLength?: number | null;
|
|
18
|
+
/**
|
|
19
|
+
* 사용자 리사이즈 허용 방향. 기본 `'none'`(종전 동작 유지).
|
|
20
|
+
*
|
|
21
|
+
* `'none'` 이 아니면 컨트롤 높이를 고정 대신 `min-height` 로 두어 드래그로 늘릴 수 있게
|
|
22
|
+
* 한다 — 고정 `height` 를 유지하면 textarea 만 커지고 상자를 넘쳐 흐른다.
|
|
23
|
+
*/
|
|
24
|
+
resize?: 'none' | 'vertical' | 'horizontal' | 'both';
|
|
25
|
+
immediatelyFocus?: boolean;
|
|
26
|
+
requiredMessage?: string;
|
|
27
|
+
modelValue?: string;
|
|
28
|
+
class?: unknown;
|
|
29
|
+
style?: unknown;
|
|
30
|
+
[attr: string]: unknown;
|
|
31
|
+
}
|
|
32
|
+
export interface TextAreaEmits {
|
|
33
|
+
'update:modelValue': [string];
|
|
34
|
+
}
|
|
35
|
+
export declare const createTextArea: import('../..').CoreFactory<TextAreaProps, TextAreaEmits, void>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TemplateResult } from 'lit-html';
|
|
2
|
+
|
|
3
|
+
/** TimePicker 아이콘 — IconTime / IconCheck.vue 1:1 포팅. */
|
|
4
|
+
type IconSize = '10' | '12' | '14' | '16' | '18' | '20' | '22' | '30';
|
|
5
|
+
/** IconTime.vue 1:1 (기본 size 14, color #8998b5) */
|
|
6
|
+
export declare function iconTime(size?: IconSize, color?: string): TemplateResult;
|
|
7
|
+
/** IconCheck.vue 1:1 (기본 size 12, color #8998b5) */
|
|
8
|
+
export declare function iconCheck(size?: IconSize, color?: string, disabled?: boolean, cls?: string): TemplateResult;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { MozSpec } from '../../runtime/types';
|
|
2
|
+
import { TimePickerProps, TimePickerEmits } from './timepicker.core';
|
|
3
|
+
|
|
4
|
+
export { createTimePicker } from './timepicker.core';
|
|
5
|
+
export type { TimePickerProps, TimePickerEmits } from './timepicker.core';
|
|
6
|
+
/**
|
|
7
|
+
* TimePicker — 마스크 입력 + 시/분 드롭다운(현재시각 푸터). 스타일: timepicker.css + label.css.
|
|
8
|
+
* modelValue 'HH:mm' v-model. 드롭다운은 body 포털 + Overlay(고정 너비 160px).
|
|
9
|
+
*/
|
|
10
|
+
export declare const TIMEPICKER_SPEC: MozSpec<TimePickerProps, TimePickerEmits, void>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TimePicker 코어 — TimePicker.vue 1:1 포팅 (오버레이 티어).
|
|
3
|
+
*
|
|
4
|
+
* 보존 포인트(1:1):
|
|
5
|
+
* - 마스크 입력(투명 텍스트 input + __:__ 오버레이 span). HH:MM 자동 콜론, 커서 관리.
|
|
6
|
+
* - 드롭다운(시/분 컬럼 + 현재시각 푸터)은 body 포털 + Overlay(useDropdownPosition 1:1, listWidth 160px).
|
|
7
|
+
* - blur 시 파싱/클램프(0~23시, 0~59분), 완전한 HH:MM 이면 타이핑 중에도 즉시 update:modelValue.
|
|
8
|
+
* - 열릴 때 시/분 목록을 선택값 중앙으로 스크롤. modelValue 기본 '09:00'.
|
|
9
|
+
*/
|
|
10
|
+
export interface TimePickerProps {
|
|
11
|
+
width?: string;
|
|
12
|
+
modelValue?: string;
|
|
13
|
+
label?: string;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
hourLabel?: string;
|
|
16
|
+
minuteLabel?: string;
|
|
17
|
+
currentTimeLabel?: string;
|
|
18
|
+
required?: boolean;
|
|
19
|
+
class?: unknown;
|
|
20
|
+
style?: unknown;
|
|
21
|
+
[attr: string]: unknown;
|
|
22
|
+
}
|
|
23
|
+
export interface TimePickerEmits {
|
|
24
|
+
'update:modelValue': [string];
|
|
25
|
+
}
|
|
26
|
+
export declare const createTimePicker: import('../..').CoreFactory<TimePickerProps, TimePickerEmits, void>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TemplateResult } from 'lit-html';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Toast 아이콘 (IconToastSuccess/Error/Info/Warning.vue 1:1 포팅).
|
|
5
|
+
* Toast 는 항상 color="#FFF" 로 사용. (Error/Warning 은 luminance mask 포함 — 원본 그대로, 중복 id 도 유지.)
|
|
6
|
+
*/
|
|
7
|
+
export declare function iconToastSuccess(color?: string): TemplateResult;
|
|
8
|
+
export declare function iconToastError(color?: string): TemplateResult;
|
|
9
|
+
export declare function iconToastInfo(color?: string): TemplateResult;
|
|
10
|
+
export declare function iconToastWarning(color?: string): TemplateResult;
|
|
11
|
+
/** 조립 모드 닫기 버튼 아이콘 — 룩은 소비자 클래스가 정하므로 currentColor 만 쓴다. */
|
|
12
|
+
export declare const iconToastClose: () => TemplateResult;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { MozSpec } from '../../runtime/types';
|
|
2
|
+
import { ToastProps, ToastEmits } from './toast.core';
|
|
3
|
+
|
|
4
|
+
export { createToast } from './toast.core';
|
|
5
|
+
export type { ToastProps, ToastEmits, ToastType, ToastPosition } from './toast.core';
|
|
6
|
+
export { useToast } from './useToast';
|
|
7
|
+
export type { ToastOptions, ToastInstance } from './useToast';
|
|
8
|
+
export { default as Timer } from './timer';
|
|
9
|
+
/**
|
|
10
|
+
* Toast — 명령형(useToast) 우선이지만 선언형 `<Toast message="...">` 도 지원(코어가 공유 스택
|
|
11
|
+
* 컨테이너로 텔레포트 + 자동 show/dismiss). 스타일: toast.css. 슬롯 없음.
|
|
12
|
+
*/
|
|
13
|
+
export declare const TOAST_SPEC: MozSpec<ToastProps, ToastEmits, void>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Timer — pause/resume 지원 setTimeout 래퍼 (toast/timer.ts 1:1 verbatim).
|
|
3
|
+
* pause 시 남은 delay 를 보존, resume 시 그만큼만 재설정.
|
|
4
|
+
*/
|
|
5
|
+
export default class Timer {
|
|
6
|
+
startedAt: number;
|
|
7
|
+
callback: () => void;
|
|
8
|
+
delay: number;
|
|
9
|
+
timer: ReturnType<typeof setTimeout>;
|
|
10
|
+
constructor(callback: () => void, delay: number);
|
|
11
|
+
private paused;
|
|
12
|
+
pause(): void;
|
|
13
|
+
resume(): void;
|
|
14
|
+
/** 남은 시간(ms). 진행 표시(progress) 가 읽는다 — pause 중에는 고정된다. */
|
|
15
|
+
remaining(): number;
|
|
16
|
+
stop(): void;
|
|
17
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export type ToastType = 'success' | 'error' | 'info' | 'warning';
|
|
2
|
+
export type ToastPosition = 'top' | 'top-right' | 'top-left' | 'bottom' | 'bottom-right' | 'bottom-left';
|
|
3
|
+
export interface ToastProps {
|
|
4
|
+
message: string;
|
|
5
|
+
type?: ToastType;
|
|
6
|
+
position?: ToastPosition;
|
|
7
|
+
duration?: number;
|
|
8
|
+
dismissible?: boolean;
|
|
9
|
+
queue?: boolean;
|
|
10
|
+
pauseOnHover?: boolean;
|
|
11
|
+
onDismiss?: () => void;
|
|
12
|
+
/**
|
|
13
|
+
* 제자리 렌더. 공유 스택 컨테이너(`.toast--top/bottom`)로 텔레포트하지 않고 소비자가 둔 자리에
|
|
14
|
+
* 그린다 — 소비자가 자기 스택 컨테이너·위치를 가진 경우다. 큐(`queue`)는 의미가 없어 무시한다.
|
|
15
|
+
* 기본 false.
|
|
16
|
+
*/
|
|
17
|
+
inline?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* 조립 모드. `icon`·`heading`·`description`·`actions` slot 으로 내용을 그리고 본체 클릭 대신
|
|
20
|
+
* **닫기 버튼**(`dismissible` 일 때)으로 닫는다. `message` 와 프리셋 아이콘은 쓰지 않는다.
|
|
21
|
+
* 기본 false(1:1 프리셋 모드).
|
|
22
|
+
*/
|
|
23
|
+
composed?: boolean;
|
|
24
|
+
/** 남은 시간 진행 막대를 그린다(`duration` 이 있을 때). 기본 false. */
|
|
25
|
+
showProgress?: boolean;
|
|
26
|
+
/** 진행 막대(`.moz-toast-progress-bar`)에 실을 클래스 — 색은 소비자 토큰이 정한다. */
|
|
27
|
+
progressClass?: unknown;
|
|
28
|
+
/** 닫힘 애니메이션 뒤 `onDismiss` 까지의 대기(ms). 기본 150. */
|
|
29
|
+
exitDuration?: number;
|
|
30
|
+
class?: unknown;
|
|
31
|
+
[attr: string]: unknown;
|
|
32
|
+
}
|
|
33
|
+
export interface ToastEmits {
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Toast 코어 — Toast.vue 1:1 포팅.
|
|
37
|
+
*
|
|
38
|
+
* 합성/텔레포트: 공유 스택 컨테이너 `.toast--top`/`.toast--bottom`(없으면 생성) 으로 renderPortal +
|
|
39
|
+
* getPortalContainer 텔레포트. 포털 래퍼는 toast.scss 의 `display:contents` 로 투명 → `.moz-toast`
|
|
40
|
+
* 가 스택 컨테이너 flex 의 직속 아이템처럼 동작(align-self/쌓임 유지).
|
|
41
|
+
*
|
|
42
|
+
* 보존 포인트(1:1):
|
|
43
|
+
* - onBeforeMount=setupContainer, onMounted=show. show 는 queue 시 250ms 재시도.
|
|
44
|
+
* - duration Timer(pause/resume) — pauseOnHover 로 mouseenter pause / mouseleave resume.
|
|
45
|
+
* - dismiss: timer.stop + isActive=false, 150ms 후 onDismiss() + 엘리먼트 제거(removed→포털 close).
|
|
46
|
+
* - click 은 dismissible 일 때만 dismiss. v-show(isActive)=display:none.
|
|
47
|
+
*/
|
|
48
|
+
export declare const createToast: import('../..').CoreFactory<ToastProps, ToastEmits, void>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ToastProps } from './toast.core';
|
|
2
|
+
|
|
3
|
+
export interface ToastOptions extends Partial<Omit<ToastProps, 'message'>> {
|
|
4
|
+
message?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const useToast: (globalProps?: ToastOptions) => {
|
|
7
|
+
open: (options: ToastOptions | string) => void;
|
|
8
|
+
success(message: string, options?: ToastOptions): void;
|
|
9
|
+
error(message: string, options?: ToastOptions): void;
|
|
10
|
+
info(message: string, options?: ToastOptions): void;
|
|
11
|
+
warning(message: string, options?: ToastOptions): void;
|
|
12
|
+
};
|
|
13
|
+
export type ToastInstance = ReturnType<typeof useToast>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { MozSpec } from '../../runtime/types';
|
|
2
|
+
import { ToggleProps, ToggleEmits } from './toggle.core';
|
|
3
|
+
|
|
4
|
+
export { createToggle, toggleTemplate } from './toggle.core';
|
|
5
|
+
export type { ToggleProps, ToggleEmits, ToggleTemplateOptions } from './toggle.core';
|
|
6
|
+
/**
|
|
7
|
+
* modelValue 는 `change` 이벤트로 갱신 → 래퍼가 change + update:modelValue 둘 다 발행 (v-model).
|
|
8
|
+
*/
|
|
9
|
+
export declare const TOGGLE_SPEC: MozSpec<ToggleProps, ToggleEmits, void>;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { TemplateResult } from 'lit-html';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Toggle 코어 — Toggle.vue 1:1 포팅.
|
|
5
|
+
*
|
|
6
|
+
* 보존 포인트(1:1):
|
|
7
|
+
* - v-model(modelValue) 로 native checkbox 구동 → 토글 시 update:modelValue + change 둘 다 발행.
|
|
8
|
+
* - readonly 는 input[disabled] 에 안 걸고, onClick preventDefault + onChange early-return 으로만 차단.
|
|
9
|
+
* - visible 은 v-show (display:none, 엘리먼트는 유지).
|
|
10
|
+
* - label 은 좌/우 위치에 Label 코어 템플릿을 합성 (좌측만 required 마크).
|
|
11
|
+
*/
|
|
12
|
+
export interface ToggleProps {
|
|
13
|
+
modelValue?: boolean;
|
|
14
|
+
label?: string;
|
|
15
|
+
labelPosition?: 'left' | 'right';
|
|
16
|
+
required?: boolean;
|
|
17
|
+
readonly?: boolean;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
visible?: boolean;
|
|
20
|
+
[attr: string]: unknown;
|
|
21
|
+
}
|
|
22
|
+
export interface ToggleEmits {
|
|
23
|
+
change: [boolean];
|
|
24
|
+
}
|
|
25
|
+
export interface ToggleTemplateOptions {
|
|
26
|
+
/** input id (라벨 for 연결) */
|
|
27
|
+
id: string;
|
|
28
|
+
/** 현재 체크 상태 */
|
|
29
|
+
model: boolean;
|
|
30
|
+
label?: string;
|
|
31
|
+
labelPosition?: 'left' | 'right';
|
|
32
|
+
required?: boolean;
|
|
33
|
+
disabled?: boolean;
|
|
34
|
+
/** false 면 display:none (v-show 1:1) */
|
|
35
|
+
visible?: boolean;
|
|
36
|
+
onChange?: (e: Event) => void;
|
|
37
|
+
onClick?: (e: Event) => void;
|
|
38
|
+
/** 소비자 class 패스스루 (Vue $attrs / React className) */
|
|
39
|
+
class?: unknown;
|
|
40
|
+
/** 스펙 밖 임의 attribute/listener 패스스루 (data-* 등) — 루트 div 에 붙는다 */
|
|
41
|
+
rest?: Record<string, unknown>;
|
|
42
|
+
/**
|
|
43
|
+
* `aria-*` 는 여기로 — 실제 컨트롤인 `<input role="switch">` 에 붙는다. 루트 div 는
|
|
44
|
+
* 접근성 트리의 컨트롤이 아니라서 거기 붙은 `aria-label`/`aria-describedby` 는 스위치의
|
|
45
|
+
* 이름·설명이 되지 못한다(소비처 어댑터가 명령형으로 우회하던 결함).
|
|
46
|
+
*/
|
|
47
|
+
inputRest?: Record<string, unknown>;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* 순수 lit-html Toggle 템플릿 — 다른 코어(Controller 의 조회조건 토글 등)에서 합성용.
|
|
51
|
+
* createToggle 의 render 를 1:1 재현하되 내부 상태/이벤트 가드는 없음(합성처가 onChange/onClick 제어).
|
|
52
|
+
*/
|
|
53
|
+
export declare function toggleTemplate(o: ToggleTemplateOptions): TemplateResult;
|
|
54
|
+
export declare const createToggle: import('../..').CoreFactory<ToggleProps, ToggleEmits, void>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { MozSpec } from '../../runtime/types';
|
|
2
|
+
import { TooltipProps, TooltipEmits, TooltipApi } from './tooltip.core';
|
|
3
|
+
|
|
4
|
+
export { createTooltip } from './tooltip.core';
|
|
5
|
+
export type { TooltipProps, TooltipEmits, TooltipApi } from './tooltip.core';
|
|
6
|
+
export { computeTooltipPlacement } from './placement';
|
|
7
|
+
export type { TooltipSide, TooltipAlign, TooltipRect, TooltipSize, TooltipPlacement, TooltipPlacementOptions, } from './placement';
|
|
8
|
+
/**
|
|
9
|
+
* TOOLTIP_SPEC — 버블 전용 스펙. 트리거는 소비처 소유라 코어가 그리지 않는다.
|
|
10
|
+
*
|
|
11
|
+
* `content` slot 은 **동적 slot 경로(`slots={{ content: … }}`)로 넘겨야 한다.** 여기에 이름을
|
|
12
|
+
* 올려 두는 것은 예약(브릿지 rest 패스스루에서 제외)과 문서화가 목적이고, 정적 slot prop 으로
|
|
13
|
+
* 넘기면 브릿지가 독립 React root 에 마운트해 소비자 context 가 끊긴다. React 래퍼
|
|
14
|
+
* (`moz-ui-components-react/src/tooltip.tsx`)가 항상 동적 경로를 쓴다.
|
|
15
|
+
*
|
|
16
|
+
* (스타일은 별도: `@vmscloud/moz-ui-components-core/styles/tooltip.css`)
|
|
17
|
+
*/
|
|
18
|
+
export declare const TOOLTIP_SPEC: MozSpec<TooltipProps, TooltipEmits, TooltipApi>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tooltip 배치 — 구현은 `overlay/placement.ts` 로 옮겼다(ITSM-2026-002308).
|
|
3
|
+
*
|
|
4
|
+
* Popover 가 같은 기하학(side × align + flip/shift)을 쓰게 되면서 두 벌로 갈라지지 않도록
|
|
5
|
+
* 오버레이 공용 위치로 승격했다. 이 파일은 툴팁이 쓰던 이름을 그대로 유지하는 재수출이며,
|
|
6
|
+
* 게시된 공개 표면(`components/tooltip` 배럴)은 바뀌지 않는다.
|
|
7
|
+
*/
|
|
8
|
+
export { computeTooltipPlacement, computeOverlayPlacement, } from '../../overlay/placement';
|
|
9
|
+
export type { TooltipSide, TooltipAlign, TooltipRect, TooltipSize, TooltipPlacement, TooltipPlacementOptions, OverlaySide, OverlayAlign, OverlayRect, OverlaySize, OverlayPlacement, OverlayPlacementOptions, } from '../../overlay/placement';
|