@fibrae/semi-foundation 0.1.1 → 0.3.0
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/anchor/foundation.d.ts +1 -4
- package/dist/anchor/foundation.js +21 -22
- package/dist/audio-player/foundation.d.ts +10 -13
- package/dist/audio-player/foundation.js +19 -20
- package/dist/auto-complete/foundation.d.ts +12 -14
- package/dist/auto-complete/foundation.js +51 -52
- package/dist/avatar/foundation.d.ts +5 -6
- package/dist/avatar/foundation.js +16 -16
- package/dist/avatar/variables.scss +0 -1
- package/dist/backtop/foundation.d.ts +2 -5
- package/dist/backtop/foundation.js +7 -8
- package/dist/banner/foundation.d.ts +1 -1
- package/dist/banner/foundation.js +4 -4
- package/dist/base/auto-close-foundation.d.ts +8 -9
- package/dist/base/auto-close-foundation.js +15 -15
- package/dist/base/foundation.d.ts +4 -4
- package/dist/base/foundation.js +12 -11
- package/dist/base/list-store.d.ts +0 -1
- package/dist/breadcrumb/foundation.d.ts +5 -5
- package/dist/breadcrumb/foundation.js +9 -10
- package/dist/breadcrumb/item-foundation.d.ts +3 -3
- package/dist/breadcrumb/item-foundation.js +6 -6
- package/dist/calendar/event-util.d.ts +0 -10
- package/dist/calendar/event-util.js +1 -11
- package/dist/calendar/foundation.d.ts +1 -6
- package/dist/calendar/foundation.js +5 -9
- package/dist/calendar/month-foundation.d.ts +2 -3
- package/dist/calendar/month-foundation.js +6 -7
- package/dist/carousel/foundation.d.ts +17 -19
- package/dist/carousel/foundation.js +51 -51
- package/dist/cascader/foundation.d.ts +36 -32
- package/dist/cascader/foundation.js +145 -132
- package/dist/cascader/util.d.ts +1 -8
- package/dist/cascader/util.js +1 -8
- package/dist/checkbox/checkbox-foundation.d.ts +3 -7
- package/dist/checkbox/checkbox-foundation.js +15 -17
- package/dist/checkbox/checkbox-group-foundation.d.ts +2 -3
- package/dist/checkbox/checkbox-group-foundation.js +8 -8
- package/dist/code-highlight/index.d.ts +1 -2
- package/dist/code-highlight/index.js +3 -3
- package/dist/collapse/foundation.d.ts +2 -2
- package/dist/collapse/foundation.js +7 -7
- package/dist/collapsible/foundation.d.ts +3 -3
- package/dist/collapsible/foundation.js +8 -8
- package/dist/color-picker/alpha-slider-foundation.d.ts +2 -4
- package/dist/color-picker/alpha-slider-foundation.js +10 -10
- package/dist/color-picker/color-choose-area-foundation.d.ts +2 -5
- package/dist/color-picker/color-choose-area-foundation.js +14 -14
- package/dist/color-picker/color-picker.scss +0 -2
- package/dist/color-picker/color-slider-foundation.d.ts +2 -4
- package/dist/color-picker/color-slider-foundation.js +10 -10
- package/dist/color-picker/data-part-foundation.d.ts +5 -5
- package/dist/color-picker/data-part-foundation.js +11 -11
- package/dist/color-picker/foundation.d.ts +4 -4
- package/dist/color-picker/foundation.js +10 -10
- package/dist/color-picker/interface.d.ts +0 -1
- package/dist/config-provider/breakpoint-observer.d.ts +3 -3
- package/dist/config-provider/breakpoint-observer.js +6 -6
- package/dist/config-provider/responsive-types.d.ts +0 -16
- package/dist/cropper/foundation.d.ts +15 -16
- package/dist/cropper/foundation.js +26 -24
- package/dist/date-picker/_utils/get-default-picker-date.d.ts +0 -3
- package/dist/date-picker/_utils/get-default-picker-date.js +0 -3
- package/dist/date-picker/_utils/get-inset-input-format-token.d.ts +0 -2
- package/dist/date-picker/_utils/get-inset-input-format-token.js +0 -2
- package/dist/date-picker/_utils/get-inset-input-value-from-inset-input-str.d.ts +0 -2
- package/dist/date-picker/_utils/get-inset-input-value-from-inset-input-str.js +0 -2
- package/dist/date-picker/_utils/parser.d.ts +0 -3
- package/dist/date-picker/_utils/parser.js +0 -7
- package/dist/date-picker/_utils/picker-type.d.ts +1 -3
- package/dist/date-picker/_utils/picker-type.js +0 -2
- package/dist/date-picker/_utils/to-callback-args.d.ts +0 -1
- package/dist/date-picker/_utils/to-callback-args.js +0 -1
- package/dist/date-picker/date-picker.scss +0 -3
- package/dist/date-picker/foundation.d.ts +39 -58
- package/dist/date-picker/foundation.js +126 -153
- package/dist/date-picker/input-foundation.d.ts +10 -16
- package/dist/date-picker/input-foundation.js +28 -30
- package/dist/date-picker/month-foundation.d.ts +0 -3
- package/dist/date-picker/month-foundation.js +0 -2
- package/dist/date-picker/months-grid-foundation.d.ts +17 -26
- package/dist/date-picker/months-grid-foundation.js +65 -75
- package/dist/date-picker/year-and-month-foundation.d.ts +3 -3
- package/dist/date-picker/year-and-month-foundation.js +11 -11
- package/dist/drag-move/foundation.d.ts +2 -3
- package/dist/drag-move/foundation.js +15 -13
- package/dist/dropdown/foundation.d.ts +8 -7
- package/dist/dropdown/foundation.js +32 -28
- package/dist/dropdown/menu-foundation.d.ts +1 -2
- package/dist/dropdown/menu-foundation.js +11 -11
- package/dist/feedback/foundation.d.ts +9 -10
- package/dist/feedback/foundation.js +33 -33
- package/dist/feedback/variables.scss +1 -5
- package/dist/float-button/float-button.css +0 -1
- package/dist/float-button/float-button.scss +0 -2
- package/dist/form/form-api-proxy.d.ts +8 -7
- package/dist/form/form-api-proxy.js +25 -25
- package/dist/form/form.scss +0 -12
- package/dist/form/foundation.d.ts +5 -5
- package/dist/form/foundation.js +60 -76
- package/dist/form/interface.d.ts +2 -15
- package/dist/form/utils.d.ts +0 -8
- package/dist/form/utils.js +0 -7
- package/dist/form/variables.scss +1 -4
- package/dist/grid/variables.scss +0 -10
- package/dist/highlight/foundation.d.ts +0 -2
- package/dist/highlight/foundation.js +1 -3
- package/dist/hot-keys/foundation.d.ts +2 -3
- package/dist/hot-keys/foundation.js +5 -5
- package/dist/image/image-foundation.d.ts +4 -6
- package/dist/image/image-foundation.js +10 -10
- package/dist/image/preview-footer-foundation.d.ts +3 -4
- package/dist/image/preview-footer-foundation.js +10 -10
- package/dist/image/preview-foundation.d.ts +0 -3
- package/dist/image/preview-foundation.js +7 -6
- package/dist/image/preview-image-foundation.d.ts +6 -9
- package/dist/image/preview-image-foundation.js +14 -14
- package/dist/image/preview-inner-foundation.d.ts +9 -10
- package/dist/image/preview-inner-foundation.js +38 -38
- package/dist/input/foundation.d.ts +10 -11
- package/dist/input/foundation.js +47 -49
- package/dist/input/text-entry-foundation.d.ts +3 -5
- package/dist/input/text-entry-foundation.js +14 -15
- package/dist/input/textarea-foundation.d.ts +7 -8
- package/dist/input/textarea-foundation.js +36 -36
- package/dist/input-number/caret.d.ts +0 -1
- package/dist/input-number/caret.js +0 -1
- package/dist/input-number/foundation.d.ts +16 -19
- package/dist/input-number/foundation.js +54 -58
- package/dist/json-viewer/foundation.d.ts +8 -10
- package/dist/json-viewer/foundation.js +23 -24
- package/dist/locale/interface.d.ts +0 -3
- package/dist/lottie/foundation.d.ts +1 -1
- package/dist/lottie/foundation.js +4 -4
- package/dist/markdown-render/foundation.d.ts +2 -7
- package/dist/markdown-render/foundation.js +5 -9
- package/dist/modal/modal-content-foundation.d.ts +7 -7
- package/dist/modal/modal-content-foundation.js +20 -20
- package/dist/modal/modal-foundation.d.ts +6 -6
- package/dist/modal/modal-foundation.js +24 -24
- package/dist/navigation/foundation.d.ts +1 -8
- package/dist/navigation/foundation.js +14 -20
- package/dist/navigation/item-foundation.d.ts +1 -1
- package/dist/navigation/item-foundation.js +8 -8
- package/dist/navigation/sub-nav-foundation.d.ts +3 -4
- package/dist/navigation/sub-nav-foundation.js +17 -17
- package/dist/notification/notification-list-foundation.d.ts +7 -8
- package/dist/notification/notification-list-foundation.js +12 -13
- package/dist/notification/variables.scss +0 -1
- package/dist/overflow-list/foundation.d.ts +4 -6
- package/dist/overflow-list/foundation.js +18 -19
- package/dist/pagination/foundation.d.ts +8 -10
- package/dist/pagination/foundation.js +28 -28
- package/dist/pincode/foundation.d.ts +6 -9
- package/dist/pincode/foundation.js +23 -26
- package/dist/popconfirm/popconfirm-foundation.d.ts +7 -9
- package/dist/popconfirm/popconfirm-foundation.js +26 -26
- package/dist/progress/generates.d.ts +1 -4
- package/dist/progress/generates.js +1 -4
- package/dist/progress/utils.d.ts +1 -1
- package/dist/progress/utils.js +1 -1
- package/dist/radio/radio-foundation.d.ts +5 -9
- package/dist/radio/radio-foundation.js +15 -16
- package/dist/radio/radio-group-foundation.d.ts +2 -3
- package/dist/radio/radio-group-foundation.js +9 -9
- package/dist/rating/foundation.d.ts +10 -15
- package/dist/rating/foundation.js +35 -38
- package/dist/resizable/group/index.d.ts +6 -10
- package/dist/resizable/group/index.js +40 -44
- package/dist/resizable/resizable.scss +0 -1
- package/dist/resizable/single/index.d.ts +3 -7
- package/dist/resizable/single/index.js +10 -13
- package/dist/scroll-list/item-foundation.d.ts +7 -9
- package/dist/scroll-list/item-foundation.js +35 -36
- package/dist/scroll-list/variables.scss +1 -6
- package/dist/select/foundation.d.ts +42 -57
- package/dist/select/foundation.js +214 -279
- package/dist/select/option-foundation.d.ts +23 -28
- package/dist/select/option-foundation.js +10 -19
- package/dist/select/variables.scss +1 -8
- package/dist/side-sheet/side-sheet-foundation.d.ts +7 -12
- package/dist/side-sheet/side-sheet-foundation.js +23 -27
- package/dist/side-sheet/variables.scss +1 -3
- package/dist/slider/foundation.d.ts +17 -28
- package/dist/slider/foundation.js +47 -59
- package/dist/slider/variables.scss +1 -5
- package/dist/sortable/accessibility.d.ts +1 -1
- package/dist/sortable/accessibility.js +2 -2
- package/dist/spin/foundation.d.ts +2 -4
- package/dist/spin/foundation.js +6 -7
- package/dist/spin/variables.scss +1 -3
- package/dist/steps/utils.d.ts +1 -1
- package/dist/switch/foundation.d.ts +2 -3
- package/dist/switch/foundation.js +7 -7
- package/dist/switch/switch.scss +1 -1
- package/dist/switch/variables.scss +1 -5
- package/dist/table/foundation.d.ts +24 -33
- package/dist/table/foundation.js +144 -108
- package/dist/table/table.scss +0 -1
- package/dist/table/utils.d.ts +2 -10
- package/dist/table/utils.js +0 -13
- package/dist/table/variables.scss +1 -5
- package/dist/tabs/foundation.d.ts +5 -14
- package/dist/tabs/foundation.js +17 -21
- package/dist/tabs/tabs.scss +1 -1
- package/dist/tag/focus.js +0 -1
- package/dist/tag-input/foundation.d.ts +11 -13
- package/dist/tag-input/foundation.js +52 -53
- package/dist/tag-input/tag-input.scss +0 -1
- package/dist/tag-input/utils/tag-focus.d.ts +0 -1
- package/dist/tag-input/utils/tag-focus.js +0 -1
- package/dist/time-picker/combox-foundation.d.ts +3 -11
- package/dist/time-picker/combox-foundation.js +3 -10
- package/dist/time-picker/foundation.d.ts +13 -23
- package/dist/time-picker/foundation.js +39 -48
- package/dist/time-picker/input-foundation.d.ts +4 -4
- package/dist/time-picker/input-foundation.js +13 -13
- package/dist/time-picker/utils/index.d.ts +0 -11
- package/dist/time-picker/utils/index.js +0 -11
- package/dist/toast/toast-list-foundation.d.ts +7 -7
- package/dist/toast/toast-list-foundation.js +14 -14
- package/dist/tooltip/adjust-position.d.ts +1 -2
- package/dist/tooltip/constants.d.ts +0 -3
- package/dist/tooltip/constants.js +0 -3
- package/dist/tooltip/foundation.d.ts +9 -12
- package/dist/tooltip/foundation.js +67 -63
- package/dist/tooltip/position.scss +0 -1
- package/dist/transfer/foundation.d.ts +22 -13
- package/dist/transfer/foundation.js +38 -24
- package/dist/tree/foundation.d.ts +14 -16
- package/dist/tree/foundation.js +61 -62
- package/dist/tree/shared.d.ts +2 -4
- package/dist/tree/shared.js +0 -2
- package/dist/tree/tree-util.d.ts +0 -5
- package/dist/tree/tree-util.js +0 -5
- package/dist/tree-select/foundation.d.ts +26 -22
- package/dist/tree-select/foundation.js +91 -86
- package/dist/typography/ellipsis.d.ts +5 -7
- package/dist/typography/ellipsis.js +8 -10
- package/dist/typography/format-numeral.d.ts +1 -1
- package/dist/typography/format-numeral.js +2 -2
- package/dist/typography/typography.scss +0 -1
- package/dist/upload/constants.d.ts +1 -1
- package/dist/upload/foundation.d.ts +17 -23
- package/dist/upload/foundation.js +93 -103
- package/dist/upload/utils.d.ts +3 -8
- package/dist/upload/utils.js +6 -11
- package/dist/user-guide/foundation.d.ts +3 -5
- package/dist/user-guide/foundation.js +19 -19
- package/dist/utils/a11y.d.ts +2 -6
- package/dist/utils/a11y.js +1 -4
- package/dist/utils/announcer.d.ts +2 -2
- package/dist/utils/announcer.js +4 -4
- package/dist/utils/array.d.ts +0 -6
- package/dist/utils/array.js +0 -6
- package/dist/utils/date-fns-extra.js +1 -5
- package/dist/utils/dom.d.ts +0 -1
- package/dist/utils/dom.js +0 -1
- package/dist/utils/escape-html.js +0 -3
- package/dist/utils/field-sizing.d.ts +0 -2
- package/dist/utils/field-sizing.js +0 -2
- package/dist/utils/focus-handle.d.ts +1 -2
- package/dist/utils/focus-handle.js +1 -3
- package/dist/utils/focus-scope.d.ts +5 -6
- package/dist/utils/focus-scope.js +10 -11
- package/dist/utils/is-promise.d.ts +1 -1
- package/dist/utils/release-holder.d.ts +2 -2
- package/dist/utils/release-holder.js +4 -4
- package/dist/utils/scroll-lock.d.ts +3 -4
- package/dist/utils/scroll-lock.js +3 -4
- package/dist/utils/tween.d.ts +0 -1
- package/dist/utils/tween.js +0 -1
- package/dist/utils/uuid.d.ts +0 -1
- package/dist/utils/uuid.js +0 -1
- package/dist/utils/warning.d.ts +0 -1
- package/dist/utils/warning.js +0 -1
- package/dist/video-player/foundation.d.ts +15 -15
- package/dist/video-player/foundation.js +89 -89
- package/dist/video-player/progress-foundation.d.ts +2 -3
- package/dist/video-player/progress-foundation.js +12 -13
- package/dist/video-player/variables.scss +1 -1
- package/package.json +2 -2
package/dist/tree/foundation.js
CHANGED
|
@@ -56,7 +56,7 @@ var TreeFoundation = class TreeFoundation extends BaseFoundation {
|
|
|
56
56
|
constructor(adapter) {
|
|
57
57
|
super({ ...adapter });
|
|
58
58
|
this.#throttledDragOverUpdate = throttle((dropPosition) => {
|
|
59
|
-
this.
|
|
59
|
+
this.adapter.updateState({ dropPosition });
|
|
60
60
|
}, 16);
|
|
61
61
|
}
|
|
62
62
|
#isMultiple() {
|
|
@@ -83,7 +83,7 @@ var TreeFoundation = class TreeFoundation extends BaseFoundation {
|
|
|
83
83
|
const data = this.getProp("treeDataSimpleJson");
|
|
84
84
|
const selectedPath = normalizedArr(key).map((i) => i.split(strings.JSON_KEY_SPLIT));
|
|
85
85
|
const value = pick$1(data, selectedPath);
|
|
86
|
-
this.
|
|
86
|
+
this.adapter.notifyChange(value);
|
|
87
87
|
}
|
|
88
88
|
#notifyMultipleChange(key) {
|
|
89
89
|
const { keyEntities } = this.getStates();
|
|
@@ -96,7 +96,7 @@ var TreeFoundation = class TreeFoundation extends BaseFoundation {
|
|
|
96
96
|
const nodes = keyList.map((key) => keyEntities[key] ? keyEntities[key].data : getDataForKeyNotInKeyEntities(key, props));
|
|
97
97
|
if (this.getProp("onChangeWithObject")) value = nodes;
|
|
98
98
|
else value = getValueOrKey(nodes, keyMaps);
|
|
99
|
-
this.
|
|
99
|
+
this.adapter.notifyChange(value);
|
|
100
100
|
}
|
|
101
101
|
#notifyChange(key) {
|
|
102
102
|
const isMultiple = this.#isMultiple();
|
|
@@ -111,26 +111,26 @@ var TreeFoundation = class TreeFoundation extends BaseFoundation {
|
|
|
111
111
|
const { data } = get(keyEntities, key);
|
|
112
112
|
value = getValueOrKey(data, keyMaps);
|
|
113
113
|
}
|
|
114
|
-
this.
|
|
114
|
+
this.adapter.notifyChange(value);
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
#handleSingleSelect(_e, { selected, eventKey, data }) {
|
|
118
118
|
let selectedKeys = [...this.getState("selectedKeys")];
|
|
119
119
|
const targetSelected = !selected;
|
|
120
|
-
this.
|
|
120
|
+
this.adapter.notifySelect(eventKey, true, data);
|
|
121
121
|
if (!targetSelected) return;
|
|
122
122
|
if (!selectedKeys.includes(eventKey)) {
|
|
123
123
|
selectedKeys = [eventKey];
|
|
124
124
|
this.#notifyChange(eventKey);
|
|
125
|
-
if (!this.
|
|
125
|
+
if (!this.isControlledComponent()) this.adapter.updateState({ selectedKeys });
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
#handleMultipleSelect(_e, treeNode) {
|
|
129
129
|
const result = getMultipleSelectResult(treeNode, this.getProps(), this.getStates());
|
|
130
130
|
if (!result) return;
|
|
131
|
-
this.
|
|
131
|
+
this.adapter.notifySelect(treeNode.eventKey, result.targetStatus, treeNode.data);
|
|
132
132
|
this.#notifyChange(result.keys);
|
|
133
|
-
if (!this.
|
|
133
|
+
if (!this.isControlledComponent()) this.adapter.updateState(result.state);
|
|
134
134
|
}
|
|
135
135
|
#setExpandedStatus({ eventKey, expanded, data }) {
|
|
136
136
|
const { inputValue, treeData, filteredShownKeys, keyEntities } = this.getStates();
|
|
@@ -145,7 +145,7 @@ var TreeFoundation = class TreeFoundation extends BaseFoundation {
|
|
|
145
145
|
expandedKeys.delete(eventKey);
|
|
146
146
|
motionType = "hide";
|
|
147
147
|
}
|
|
148
|
-
this.
|
|
148
|
+
this.adapter.setCachedFlattenNodes(motionType === "hide" && this.#isAnimated() ? this.getState("flattenNodes") : void 0);
|
|
149
149
|
if (!this.#isExpandControlled()) {
|
|
150
150
|
const flattenNodes = flattenTreeData(treeData, expandedKeys, keyMaps, isSearching && showFilteredOnly && filteredShownKeys);
|
|
151
151
|
let motionKeys = this.#isAnimated() ? getMotionKeys(eventKey, expandedKeys, keyEntities) : [];
|
|
@@ -156,7 +156,7 @@ var TreeFoundation = class TreeFoundation extends BaseFoundation {
|
|
|
156
156
|
motionKeys: new Set(motionKeys),
|
|
157
157
|
motionType
|
|
158
158
|
};
|
|
159
|
-
this.
|
|
159
|
+
this.adapter.updateState(newState);
|
|
160
160
|
}
|
|
161
161
|
return {
|
|
162
162
|
expandedKeys,
|
|
@@ -178,7 +178,7 @@ var TreeFoundation = class TreeFoundation extends BaseFoundation {
|
|
|
178
178
|
}
|
|
179
179
|
#clearDragState() {
|
|
180
180
|
this.#clearDragEnterTimers();
|
|
181
|
-
this.
|
|
181
|
+
this.adapter.updateState({
|
|
182
182
|
dragOverNodeKey: "",
|
|
183
183
|
dragging: false
|
|
184
184
|
});
|
|
@@ -311,7 +311,6 @@ var TreeFoundation = class TreeFoundation extends BaseFoundation {
|
|
|
311
311
|
newState.prevProps = { ...props };
|
|
312
312
|
return newState;
|
|
313
313
|
}
|
|
314
|
-
/** The state of a new tree: the empty state with what the props imply */
|
|
315
314
|
static getInitialState(props) {
|
|
316
315
|
const state = {
|
|
317
316
|
inputValue: "",
|
|
@@ -350,14 +349,14 @@ var TreeFoundation = class TreeFoundation extends BaseFoundation {
|
|
|
350
349
|
this.#clearDragEnterTimers();
|
|
351
350
|
}
|
|
352
351
|
/** Writes the state derived from new props back, so handlers read what was rendered */
|
|
353
|
-
syncDerivedState(derived) {
|
|
354
|
-
this.
|
|
355
|
-
}
|
|
356
|
-
scrollTo({ key, align = "center" }) {
|
|
357
|
-
if (key && this.getState("flattenNodes")?.some((node) => node.key === key)) this.
|
|
358
|
-
}
|
|
359
|
-
handleInputChange(sugInput) {
|
|
360
|
-
this.
|
|
352
|
+
syncDerivedState = (derived) => {
|
|
353
|
+
this.adapter.updateState(derived);
|
|
354
|
+
};
|
|
355
|
+
scrollTo = ({ key, align = "center" }) => {
|
|
356
|
+
if (key && this.getState("flattenNodes")?.some((node) => node.key === key)) this.adapter.scrollToNode(key, align);
|
|
357
|
+
};
|
|
358
|
+
handleInputChange = (sugInput) => {
|
|
359
|
+
this.adapter.updateInputValue(sugInput);
|
|
361
360
|
const { selectedKeys, keyEntities, treeData } = this.getStates();
|
|
362
361
|
const expandedKeys = new Set(this.getState("expandedKeys"));
|
|
363
362
|
const { showFilteredOnly, filterTreeNode, treeNodeFilterProp, keyMaps } = this.getProps();
|
|
@@ -380,8 +379,8 @@ var TreeFoundation = class TreeFoundation extends BaseFoundation {
|
|
|
380
379
|
flattenNodes = flattenTreeData(treeData, new Set(expandedOptsKeys), keyMaps, showFilteredOnly && filteredShownKeys);
|
|
381
380
|
}
|
|
382
381
|
const newFilteredExpandedKeys = new Set(expandedOptsKeys);
|
|
383
|
-
this.
|
|
384
|
-
this.
|
|
382
|
+
this.adapter.notifySearch(sugInput, Array.from(newFilteredExpandedKeys));
|
|
383
|
+
this.adapter.updateState({
|
|
385
384
|
expandedKeys,
|
|
386
385
|
flattenNodes,
|
|
387
386
|
motionKeys: /* @__PURE__ */ new Set([]),
|
|
@@ -389,29 +388,29 @@ var TreeFoundation = class TreeFoundation extends BaseFoundation {
|
|
|
389
388
|
filteredExpandedKeys: newFilteredExpandedKeys,
|
|
390
389
|
filteredShownKeys
|
|
391
390
|
});
|
|
392
|
-
}
|
|
393
|
-
handleNodeSelect(e, treeNode) {
|
|
391
|
+
};
|
|
392
|
+
handleNodeSelect = (e, treeNode) => {
|
|
394
393
|
if (this.#isDisabled(treeNode)) return;
|
|
395
394
|
if (!this.#isMultiple()) this.#handleSingleSelect(e, treeNode);
|
|
396
395
|
else this.#handleMultipleSelect(e, treeNode);
|
|
397
|
-
}
|
|
398
|
-
handleNodeRightClick(e, treeNode) {
|
|
399
|
-
this.
|
|
400
|
-
}
|
|
401
|
-
handleNodeDoubleClick(e, treeNode) {
|
|
402
|
-
this.
|
|
403
|
-
}
|
|
404
|
-
handleNodeExpand(_e, treeNode) {
|
|
396
|
+
};
|
|
397
|
+
handleNodeRightClick = (e, treeNode) => {
|
|
398
|
+
this.adapter.notifyRightClick(e, treeNode.data);
|
|
399
|
+
};
|
|
400
|
+
handleNodeDoubleClick = (e, treeNode) => {
|
|
401
|
+
this.adapter.notifyDoubleClick(e, treeNode.data);
|
|
402
|
+
};
|
|
403
|
+
handleNodeExpand = (_e, treeNode) => {
|
|
405
404
|
const { loadData } = this.getProps();
|
|
406
405
|
if (!loadData && (!treeNode.children || !treeNode.children.length)) return;
|
|
407
406
|
if (isTreeNodeLeaf(treeNode, loadData)) return;
|
|
408
407
|
const { expandedKeys, data, expanded } = this.#setExpandedStatus(treeNode);
|
|
409
|
-
this.
|
|
408
|
+
this.adapter.notifyExpand(expandedKeys, {
|
|
410
409
|
expanded,
|
|
411
410
|
node: data
|
|
412
411
|
});
|
|
413
412
|
if (expanded && loadData) this.handleNodeLoad(treeNode.eventKey, data);
|
|
414
|
-
}
|
|
413
|
+
};
|
|
415
414
|
/** Loads a node's children once; `key` is the node's entity key, which keyMaps may take from another field */
|
|
416
415
|
handleNodeLoad(key, data) {
|
|
417
416
|
const { loadData } = this.getProps();
|
|
@@ -423,20 +422,20 @@ var TreeFoundation = class TreeFoundation extends BaseFoundation {
|
|
|
423
422
|
const newLoadedKeys = prevLoadedKeys.add(key);
|
|
424
423
|
const newLoadingKeys = new Set(prevLoadingKeys);
|
|
425
424
|
newLoadingKeys.delete(key);
|
|
426
|
-
this.
|
|
427
|
-
if (!this.#isLoadControlled()) this.
|
|
428
|
-
this.
|
|
425
|
+
this.adapter.notifyLoad(newLoadedKeys, data);
|
|
426
|
+
if (!this.#isLoadControlled()) this.adapter.updateState({ loadedKeys: newLoadedKeys });
|
|
427
|
+
this.adapter.updateState({ loadingKeys: newLoadingKeys });
|
|
429
428
|
}).finally(() => {
|
|
430
429
|
const currentLoadingKeys = this.getState("loadingKeys");
|
|
431
430
|
if (currentLoadingKeys.has(key)) {
|
|
432
431
|
const newLoadingKeys = new Set(currentLoadingKeys);
|
|
433
432
|
newLoadingKeys.delete(key);
|
|
434
|
-
this.
|
|
433
|
+
this.adapter.updateState({ loadingKeys: newLoadingKeys });
|
|
435
434
|
}
|
|
436
435
|
});
|
|
437
|
-
this.
|
|
436
|
+
this.adapter.updateState({ loadingKeys: new Set(loadingKeys).add(key) });
|
|
438
437
|
}
|
|
439
|
-
handleNodeDragStart(e, treeNode) {
|
|
438
|
+
handleNodeDragStart = (e, treeNode) => {
|
|
440
439
|
const { keyEntities } = this.getStates();
|
|
441
440
|
const { hideDraggingNode, renderDraggingNode } = this.getProps();
|
|
442
441
|
const { eventKey, nodeInstance, data } = treeNode;
|
|
@@ -452,13 +451,13 @@ var TreeFoundation = class TreeFoundation extends BaseFoundation {
|
|
|
452
451
|
setTimeout(() => dragImg.remove());
|
|
453
452
|
}
|
|
454
453
|
this.#dragNode = treeNode;
|
|
455
|
-
this.
|
|
454
|
+
this.adapter.updateState({
|
|
456
455
|
dragging: true,
|
|
457
456
|
dragNodesKeys: new Set(getDragNodesKeys(eventKey, keyEntities))
|
|
458
457
|
});
|
|
459
|
-
this.
|
|
460
|
-
}
|
|
461
|
-
handleNodeDragEnter(e, treeNode) {
|
|
458
|
+
this.adapter.notifyDragStart(this.#dragProps(e, treeNode));
|
|
459
|
+
};
|
|
460
|
+
handleNodeDragEnter = (e, treeNode) => {
|
|
462
461
|
const { dragNodesKeys } = this.getStates();
|
|
463
462
|
const { autoExpandWhenDragEnter } = this.getProps();
|
|
464
463
|
const { eventKey, expanded } = treeNode;
|
|
@@ -466,7 +465,7 @@ var TreeFoundation = class TreeFoundation extends BaseFoundation {
|
|
|
466
465
|
if (!dragNode || dragNodesKeys.has(eventKey)) return;
|
|
467
466
|
const dropPosition = calcDropRelativePosition(e, treeNode);
|
|
468
467
|
if (dragNode.eventKey === eventKey && dropPosition === 0) {
|
|
469
|
-
this.
|
|
468
|
+
this.adapter.updateState({
|
|
470
469
|
dragOverNodeKey: "",
|
|
471
470
|
dropPosition: null
|
|
472
471
|
});
|
|
@@ -474,26 +473,26 @@ var TreeFoundation = class TreeFoundation extends BaseFoundation {
|
|
|
474
473
|
}
|
|
475
474
|
const timer = setTimeout(() => {
|
|
476
475
|
this.#dragEnterTimers.delete(timer);
|
|
477
|
-
this.
|
|
476
|
+
this.adapter.updateState({
|
|
478
477
|
dragOverNodeKey: eventKey,
|
|
479
478
|
dropPosition
|
|
480
479
|
});
|
|
481
480
|
if (!autoExpandWhenDragEnter || expanded) {
|
|
482
|
-
this.
|
|
481
|
+
this.adapter.notifyDragEnter(this.#dragProps(e, treeNode));
|
|
483
482
|
return;
|
|
484
483
|
}
|
|
485
484
|
clearTimeout(this.#autoExpandTimer);
|
|
486
485
|
this.#autoExpandTimer = setTimeout(() => {
|
|
487
486
|
const { expandedKeys: newExpandedKeys } = this.#setExpandedStatus(treeNode);
|
|
488
|
-
this.
|
|
487
|
+
this.adapter.notifyDragEnter({
|
|
489
488
|
...this.#dragProps(e, treeNode),
|
|
490
489
|
expandedKeys: [...newExpandedKeys]
|
|
491
490
|
});
|
|
492
491
|
}, 400);
|
|
493
492
|
}, 0);
|
|
494
493
|
this.#dragEnterTimers.add(timer);
|
|
495
|
-
}
|
|
496
|
-
handleNodeDragOver(e, treeNode) {
|
|
494
|
+
};
|
|
495
|
+
handleNodeDragOver = (e, treeNode) => {
|
|
497
496
|
const { dropPosition, dragNodesKeys, dragOverNodeKey } = this.getStates();
|
|
498
497
|
const { eventKey } = treeNode;
|
|
499
498
|
if (dragNodesKeys.has(eventKey)) return;
|
|
@@ -502,21 +501,21 @@ var TreeFoundation = class TreeFoundation extends BaseFoundation {
|
|
|
502
501
|
if (dropPosition === newPos) return;
|
|
503
502
|
this.#throttledDragOverUpdate(newPos);
|
|
504
503
|
}
|
|
505
|
-
this.
|
|
506
|
-
}
|
|
507
|
-
handleNodeDragLeave(e, treeNode) {
|
|
504
|
+
this.adapter.notifyDragOver(this.#dragProps(e, treeNode));
|
|
505
|
+
};
|
|
506
|
+
handleNodeDragLeave = (e, treeNode) => {
|
|
508
507
|
this.#throttledDragOverUpdate.cancel();
|
|
509
508
|
clearTimeout(this.#autoExpandTimer);
|
|
510
|
-
this.
|
|
511
|
-
this.
|
|
512
|
-
}
|
|
513
|
-
handleNodeDragEnd(e, treeNode) {
|
|
509
|
+
this.adapter.updateState({ dragOverNodeKey: "" });
|
|
510
|
+
this.adapter.notifyDragLeave(this.#dragProps(e, treeNode));
|
|
511
|
+
};
|
|
512
|
+
handleNodeDragEnd = (e, treeNode) => {
|
|
514
513
|
this.#throttledDragOverUpdate.flush();
|
|
515
514
|
this.#clearDragState();
|
|
516
|
-
this.
|
|
515
|
+
this.adapter.notifyDragEnd(this.#dragProps(e, treeNode));
|
|
517
516
|
this.#dragNode = null;
|
|
518
|
-
}
|
|
519
|
-
handleNodeDrop(e, treeNode) {
|
|
517
|
+
};
|
|
518
|
+
handleNodeDrop = (e, treeNode) => {
|
|
520
519
|
this.#throttledDragOverUpdate.flush();
|
|
521
520
|
const { dropPosition, dragNodesKeys } = this.getStates();
|
|
522
521
|
const { eventKey, pos } = treeNode;
|
|
@@ -529,11 +528,11 @@ var TreeFoundation = class TreeFoundation extends BaseFoundation {
|
|
|
529
528
|
dropPosition: calcDropActualPosition(pos, dropPosition),
|
|
530
529
|
dropToGap: dropPosition !== 0
|
|
531
530
|
};
|
|
532
|
-
this.
|
|
531
|
+
this.adapter.notifyDrop({
|
|
533
532
|
...this.#dragProps(e, treeNode),
|
|
534
533
|
...dropRes
|
|
535
534
|
});
|
|
536
535
|
this.#dragNode = null;
|
|
537
|
-
}
|
|
536
|
+
};
|
|
538
537
|
};
|
|
539
538
|
export { TreeFoundation as default, treeDerivedPropKeys };
|
package/dist/tree/shared.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { BasicFlattenNode, BasicTreeInnerData, BasicTreeNodeProps, BasicTreeProps, TreeMotionType } from "./foundation.js";
|
|
2
2
|
import { Typeahead } from "../utils/a11y.js";
|
|
3
3
|
type CheckState = Pick<BasicTreeInnerData, 'keyEntities' | 'checkedKeys' | 'halfCheckedKeys' | 'disabledKeys'>;
|
|
4
|
-
/** The props a tree node renders with */
|
|
5
4
|
export declare function getTreeNodeProps(key: string, { expandedKeys, selectedKeys, checkedKeys, halfCheckedKeys, realCheckedKeys, keyEntities, filteredKeys, inputValue, loadedKeys, loadingKeys, filteredExpandedKeys, filteredShownKeys, disabledKeys, treeData }: Partial<Omit<BasicTreeInnerData, 'prevProps'>>, props: Pick<BasicTreeProps, 'checkRelation' | 'disableStrictly' | 'showFilteredOnly'>): BasicTreeNodeProps | null;
|
|
6
5
|
/** Whether a node renders as a leaf, with no expand arrow; with loadData a node is a branch until it loads empty */
|
|
7
6
|
export declare function isTreeNodeLeaf({ isLeaf, children, loaded }: Pick<BasicTreeNodeProps, 'isLeaf' | 'children' | 'loaded'>, loadData: unknown): boolean;
|
|
@@ -23,13 +22,12 @@ export interface TreeRowAria {
|
|
|
23
22
|
'aria-selected'?: boolean;
|
|
24
23
|
'aria-setsize': number;
|
|
25
24
|
}
|
|
26
|
-
/** The treeitem attributes of a row: a multiple tree states each row's check, a single one its selection */
|
|
27
25
|
export declare function getTreeRowAria(row: BasicTreeNodeProps, { disabled, isLeaf, multiple }: {
|
|
28
26
|
disabled: boolean;
|
|
29
27
|
isLeaf: boolean;
|
|
30
28
|
multiple?: boolean;
|
|
31
29
|
}): TreeRowAria;
|
|
32
|
-
/**
|
|
30
|
+
/** `fullLabel` is whether a custom full label renders the row */
|
|
33
31
|
export interface TreeRowFlags {
|
|
34
32
|
disabled: boolean;
|
|
35
33
|
focused?: boolean;
|
|
@@ -54,7 +52,7 @@ export declare function sameKeys(a: {
|
|
|
54
52
|
*/
|
|
55
53
|
export declare function getTransitionNodes<T extends {
|
|
56
54
|
key?: string;
|
|
57
|
-
}>(nodes: T[], motionKeys: Set<string>, motionType
|
|
55
|
+
}>(nodes: T[], motionKeys: Set<string>, motionType?: TreeMotionType | null, flattenList?: T[]): (T | T[])[];
|
|
58
56
|
export type TreeKeyAction = {
|
|
59
57
|
type: 'move';
|
|
60
58
|
index: number;
|
package/dist/tree/shared.js
CHANGED
|
@@ -29,7 +29,6 @@ function getShownSiblings(entity, keyEntities, filteredShownKeys) {
|
|
|
29
29
|
}
|
|
30
30
|
return shown;
|
|
31
31
|
}
|
|
32
|
-
/** The props a tree node renders with */
|
|
33
32
|
function getTreeNodeProps(key, { expandedKeys = /* @__PURE__ */ new Set([]), selectedKeys = [], checkedKeys = /* @__PURE__ */ new Set([]), halfCheckedKeys = /* @__PURE__ */ new Set([]), realCheckedKeys = /* @__PURE__ */ new Set([]), keyEntities = {}, filteredKeys = /* @__PURE__ */ new Set([]), inputValue = "", loadedKeys = /* @__PURE__ */ new Set([]), loadingKeys = /* @__PURE__ */ new Set([]), filteredExpandedKeys = /* @__PURE__ */ new Set([]), filteredShownKeys = /* @__PURE__ */ new Set([]), disabledKeys = /* @__PURE__ */ new Set([]), treeData = [] }, props) {
|
|
34
33
|
const { checkRelation } = props;
|
|
35
34
|
const entity = keyEntities[key];
|
|
@@ -100,7 +99,6 @@ function buildRowProps(node, state, props) {
|
|
|
100
99
|
function nodeId(baseId, key) {
|
|
101
100
|
return `${baseId}-${encodeURIComponent(key)}`;
|
|
102
101
|
}
|
|
103
|
-
/** The treeitem attributes of a row: a multiple tree states each row's check, a single one its selection */
|
|
104
102
|
function getTreeRowAria(row, { disabled, isLeaf, multiple }) {
|
|
105
103
|
return {
|
|
106
104
|
"aria-busy": row.loading || void 0,
|
package/dist/tree/tree-util.d.ts
CHANGED
|
@@ -21,7 +21,6 @@ export interface KeyMapProps {
|
|
|
21
21
|
icon?: string;
|
|
22
22
|
}
|
|
23
23
|
export declare function getPosition(parentPos: string, index: number): string;
|
|
24
|
-
/** Flattens nested tree data into a list, as the virtual list renders it. */
|
|
25
24
|
export declare function flattenTreeData(treeNodeList: any[], expandedKeys: Set<string>, keyMaps: KeyMapProps, filteredShownKeys?: boolean | Set<any>): any[];
|
|
26
25
|
export declare function convertJsonToData(treeJson: TreeDataSimpleJson): any[];
|
|
27
26
|
export interface TraversedNode {
|
|
@@ -53,10 +52,6 @@ export declare function calcMotionKeys(oldKeySet: Set<string>, newKeySet: Set<st
|
|
|
53
52
|
motionType: "show" | "hide";
|
|
54
53
|
motionKeys: string[];
|
|
55
54
|
};
|
|
56
|
-
/**
|
|
57
|
-
* @returns whether option includes searchValue.
|
|
58
|
-
* When filterTreeNode is a function,returns the result of filterTreeNode which called with (searchValue, target, option).
|
|
59
|
-
*/
|
|
60
55
|
export declare function matchTreeNode(searchValue: string, option: any, filterTreeNode: any, filterProps: any): any;
|
|
61
56
|
/** The node field a search keyword is matched against: the default 'label' follows keyMaps.label. */
|
|
62
57
|
export declare function getFilterProp(treeNodeFilterProp: string, keyMaps?: KeyMapProps): string;
|
package/dist/tree/tree-util.js
CHANGED
|
@@ -11,7 +11,6 @@ const DRAG_OFFSET = .45;
|
|
|
11
11
|
function getPosition(parentPos, index) {
|
|
12
12
|
return `${parentPos}-${index}`;
|
|
13
13
|
}
|
|
14
|
-
/** Flattens nested tree data into a list, as the virtual list renders it. */
|
|
15
14
|
function flattenTreeData(treeNodeList, expandedKeys, keyMaps, filteredShownKeys = false) {
|
|
16
15
|
const flattenList = [];
|
|
17
16
|
const filterSearch = Boolean(filteredShownKeys);
|
|
@@ -254,10 +253,6 @@ function calcMotionKeys(oldKeySet, newKeySet, keyEntities) {
|
|
|
254
253
|
motionKeys: diffKeys.length === 1 ? findDescendantKeys(diffKeys, keyEntities, false) : []
|
|
255
254
|
};
|
|
256
255
|
}
|
|
257
|
-
/**
|
|
258
|
-
* @returns whether option includes searchValue.
|
|
259
|
-
* When filterTreeNode is a function,returns the result of filterTreeNode which called with (searchValue, target, option).
|
|
260
|
-
*/
|
|
261
256
|
function matchTreeNode(searchValue, option, filterTreeNode, filterProps) {
|
|
262
257
|
if (!filterTreeNode) return true;
|
|
263
258
|
let filterFn = filterTreeNode;
|
|
@@ -124,10 +124,9 @@ export default class TreeSelectFoundation<P extends BasicTreeSelectProps = Basic
|
|
|
124
124
|
* that writes the result back settles.
|
|
125
125
|
*/
|
|
126
126
|
static deriveState(props: BasicTreeSelectProps, prevState: BasicTreeSelectInnerData): Partial<BasicTreeSelectInnerData> | null;
|
|
127
|
-
/** The state of a new TreeSelect: the empty state with what the props imply */
|
|
128
127
|
static getInitialState(props: BasicTreeSelectProps): BasicTreeSelectInnerData;
|
|
129
128
|
/** The keys the trigger shows: the selection, or in multiple mode the checked keys merged as onChange reports them */
|
|
130
|
-
static getTriggerKeys(props: Pick<BasicTreeSelectProps, 'multiple' | 'checkRelation' | 'autoMergeValue' | 'leafOnly'>,
|
|
129
|
+
static getTriggerKeys(props: Pick<BasicTreeSelectProps, 'multiple' | 'checkRelation' | 'autoMergeValue' | 'leafOnly'>, { checkedKeys, realCheckedKeys, keyEntities, selectedKeys }: Pick<BasicTreeSelectInnerData, 'selectedKeys' | 'checkedKeys' | 'realCheckedKeys' | 'keyEntities'>): string[];
|
|
131
130
|
static hasValue(props: Pick<BasicTreeSelectProps, 'multiple' | 'checkRelation'>, { selectedKeys, checkedKeys, realCheckedKeys }: Pick<BasicTreeSelectInnerData, 'selectedKeys' | 'checkedKeys' | 'realCheckedKeys'>): boolean;
|
|
132
131
|
/** What the trigger shows for the single selection; pure, so render can call it */
|
|
133
132
|
static getRenderTextInSingle(props: Record<string, any>, { selectedKeys, keyEntities }: Pick<BasicTreeSelectInnerData, 'selectedKeys' | 'keyEntities'>): any;
|
|
@@ -138,39 +137,44 @@ export default class TreeSelectFoundation<P extends BasicTreeSelectProps = Basic
|
|
|
138
137
|
static getNodeData(key: string, keyEntities: BasicTreeSelectInnerData['keyEntities'], props: Parameters<typeof getDataForKeyNotInKeyEntities>[1]): BasicTreeNodeData | undefined;
|
|
139
138
|
init(): void;
|
|
140
139
|
/** Writes the state derived from new props back, so handlers read what was rendered */
|
|
141
|
-
syncDerivedState(derived: Partial<BasicTreeSelectInnerData>)
|
|
142
|
-
|
|
143
|
-
search(value: string): void;
|
|
140
|
+
syncDerivedState: (derived: Partial<BasicTreeSelectInnerData>) => void;
|
|
141
|
+
search: (value: string) => void;
|
|
144
142
|
/** Focus entering the trigger (its search input, tags, clear button) or the dropdown from outside */
|
|
145
|
-
handleTriggerFocus(e: FocusEvent)
|
|
143
|
+
handleTriggerFocus: (e: FocusEvent) => void;
|
|
146
144
|
/**
|
|
147
145
|
* Reports the blur once per focus: on a mousedown outside, a single pick that closes, or the focus leaving the
|
|
148
146
|
* trigger and the dropdown (the component checks where it went)
|
|
149
147
|
*/
|
|
150
148
|
handleTriggerBlur(e: E | MouseEvent | FocusEvent): void;
|
|
149
|
+
/**
|
|
150
|
+
* The focus left the trigger and the dropdown (the component checks where it went): reports the blur, and closes
|
|
151
|
+
* an open dropdown when the focus went to another element (APG combobox). A window blur has no target and keeps
|
|
152
|
+
* the dropdown, as the native select does.
|
|
153
|
+
*/
|
|
154
|
+
handleFocusLeave: (e: FocusEvent) => void;
|
|
151
155
|
/** A mousedown outside the trigger and the dropdown, listened to while the TreeSelect is focused or open */
|
|
152
|
-
handleClickOutside(e: MouseEvent)
|
|
153
|
-
handleKeyDown(e: Pick<KeyboardEvent,
|
|
154
|
-
onClickSingleTriggerSearchItem()
|
|
155
|
-
close()
|
|
156
|
-
handleClick(e: E & Pick<UIEvent,
|
|
156
|
+
handleClickOutside: (e: MouseEvent) => void;
|
|
157
|
+
handleKeyDown: (e: Pick<KeyboardEvent, "key" | "preventDefault">) => void;
|
|
158
|
+
onClickSingleTriggerSearchItem: () => void;
|
|
159
|
+
close: () => void;
|
|
160
|
+
handleClick: (e: E & Pick<UIEvent, "detail" | "target" | "currentTarget">) => void;
|
|
157
161
|
/**
|
|
158
162
|
* Enter toggles the popup like a click; Down and Up open a closed one (APG combobox). Outside a text field (the
|
|
159
163
|
* select-only combobox) Space toggles it like Enter, and Home and End open a closed one: the view moves to the
|
|
160
164
|
* first or the last row, which lives in the view.
|
|
161
165
|
*/
|
|
162
|
-
handleSelectionKeyDown(e: E & Pick<KeyboardEvent,
|
|
163
|
-
handleClear(e
|
|
164
|
-
removeTag(eventKey: BasicTreeNodeData[
|
|
165
|
-
handleNodeSelect(e:
|
|
166
|
-
handleNodeExpand(e:
|
|
167
|
-
handleInputTriggerBlur(e?: {
|
|
166
|
+
handleSelectionKeyDown: (e: E & Pick<KeyboardEvent, "key" | "preventDefault" | "detail" | "target" | "currentTarget">) => void;
|
|
167
|
+
handleClear: (e?: E) => void;
|
|
168
|
+
removeTag: (eventKey: BasicTreeNodeData["key"]) => void;
|
|
169
|
+
handleNodeSelect: (e: E, treeNode: BasicTreeNodeProps) => void;
|
|
170
|
+
handleNodeExpand: (e: E, treeNode: BasicTreeNodeProps) => void;
|
|
171
|
+
handleInputTriggerBlur: (e?: {
|
|
168
172
|
relatedTarget: EventTarget | null;
|
|
169
|
-
})
|
|
170
|
-
handleInputTriggerFocus(e?: {
|
|
173
|
+
}) => void;
|
|
174
|
+
handleInputTriggerFocus: (e?: {
|
|
171
175
|
relatedTarget: EventTarget | null;
|
|
172
|
-
})
|
|
173
|
-
handlePopoverOpen()
|
|
174
|
-
handleAfterClose()
|
|
176
|
+
}) => void;
|
|
177
|
+
handlePopoverOpen: () => void;
|
|
178
|
+
handleAfterClose: () => void;
|
|
175
179
|
}
|
|
176
180
|
export type { Size };
|