@g1cloud/entity-modeler-next 5.0.0-beta.44 → 5.0.0-beta.45
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.
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { EditorController } from '../editor/controller';
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
controller: EditorController;
|
|
4
|
+
/**
|
|
5
|
+
* 트리 접힘 상태를 sessionStorage 에 보존할 키. **생략 시 보존하지 않는다**
|
|
6
|
+
* (`useResizableWidth` 규약 동형 — 호스트가 끌 수 있어야 하고, read-only 다중 임베드가
|
|
7
|
+
* 서로 덮지 않아야 한다. 실제 슬롯은 다이어그램 id 로 한 번 더 갈린다).
|
|
8
|
+
*/
|
|
9
|
+
storageKey?: string;
|
|
4
10
|
};
|
|
5
|
-
declare function toggleAll(): void;
|
|
6
11
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
7
|
-
toggleAll:
|
|
12
|
+
toggleAll: () => void;
|
|
8
13
|
allExpanded: import('vue').ComputedRef<boolean>;
|
|
9
14
|
hasExpandable: import('vue').ComputedRef<boolean>;
|
|
10
15
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface TreeCollapseOptions {
|
|
2
|
+
/** 접기 가능한(=자식 있는) 노드 키 — `toggleAll`·`allExpanded` 계산 입력. */
|
|
3
|
+
expandableKeys: () => readonly string[];
|
|
4
|
+
/** 명시 토글이 없을 때의 기본 접힘 여부. 키의 순수 함수여야 한다. */
|
|
5
|
+
defaultCollapsed: (key: string) => boolean;
|
|
6
|
+
/** sessionStorage 보존 키. 생략 시 보존하지 않음. */
|
|
7
|
+
storageKey?: string;
|
|
8
|
+
/** 보존 슬롯 스코프(다이어그램 id 등). 바뀌면 다른 슬롯을 읽는다. */
|
|
9
|
+
scope?: () => string;
|
|
10
|
+
}
|
|
11
|
+
export declare function useTreeCollapse(opts: TreeCollapseOptions): {
|
|
12
|
+
isCollapsed: (key: string) => boolean;
|
|
13
|
+
toggle: (key: string) => void;
|
|
14
|
+
toggleAll: () => void;
|
|
15
|
+
allExpanded: import('vue').ComputedRef<boolean>;
|
|
16
|
+
};
|