@fibrae/semi-foundation 0.1.1 → 0.2.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 -1
- package/dist/anchor/foundation.js +21 -21
- package/dist/audio-player/foundation.d.ts +10 -10
- package/dist/audio-player/foundation.js +19 -19
- package/dist/auto-complete/foundation.d.ts +12 -12
- package/dist/auto-complete/foundation.js +51 -51
- package/dist/avatar/foundation.d.ts +5 -5
- package/dist/avatar/foundation.js +16 -16
- package/dist/backtop/foundation.d.ts +2 -2
- package/dist/backtop/foundation.js +7 -7
- package/dist/banner/foundation.d.ts +1 -1
- package/dist/banner/foundation.js +4 -4
- package/dist/base/auto-close-foundation.d.ts +8 -8
- package/dist/base/auto-close-foundation.js +15 -15
- package/dist/base/foundation.d.ts +4 -3
- package/dist/base/foundation.js +12 -11
- 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.js +1 -1
- package/dist/calendar/foundation.js +4 -4
- package/dist/calendar/month-foundation.d.ts +2 -2
- package/dist/calendar/month-foundation.js +6 -6
- package/dist/carousel/foundation.d.ts +17 -17
- package/dist/carousel/foundation.js +51 -51
- package/dist/cascader/foundation.d.ts +34 -26
- package/dist/cascader/foundation.js +143 -121
- package/dist/checkbox/checkbox-foundation.d.ts +2 -2
- package/dist/checkbox/checkbox-foundation.js +15 -15
- package/dist/checkbox/checkbox-group-foundation.d.ts +2 -2
- package/dist/checkbox/checkbox-group-foundation.js +8 -8
- package/dist/code-highlight/index.d.ts +1 -1
- 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-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/config-provider/breakpoint-observer.d.ts +3 -3
- package/dist/config-provider/breakpoint-observer.js +6 -6
- package/dist/cropper/foundation.d.ts +15 -15
- package/dist/cropper/foundation.js +26 -23
- package/dist/date-picker/_utils/picker-type.d.ts +1 -1
- package/dist/date-picker/foundation.d.ts +36 -36
- package/dist/date-picker/foundation.js +125 -129
- package/dist/date-picker/input-foundation.d.ts +9 -9
- package/dist/date-picker/input-foundation.js +28 -28
- package/dist/date-picker/months-grid-foundation.d.ts +16 -16
- package/dist/date-picker/months-grid-foundation.js +64 -65
- 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 -2
- package/dist/drag-move/foundation.js +15 -13
- package/dist/dropdown/foundation.d.ts +8 -5
- package/dist/dropdown/foundation.js +32 -28
- package/dist/dropdown/menu-foundation.d.ts +1 -1
- package/dist/dropdown/menu-foundation.js +11 -11
- package/dist/feedback/foundation.d.ts +9 -9
- package/dist/feedback/foundation.js +33 -33
- package/dist/form/form-api-proxy.d.ts +8 -7
- package/dist/form/form-api-proxy.js +25 -25
- package/dist/form/foundation.d.ts +5 -5
- package/dist/form/foundation.js +60 -61
- package/dist/highlight/foundation.js +1 -1
- package/dist/hot-keys/foundation.d.ts +2 -2
- package/dist/hot-keys/foundation.js +5 -5
- package/dist/image/image-foundation.d.ts +4 -4
- package/dist/image/image-foundation.js +10 -10
- package/dist/image/preview-footer-foundation.d.ts +3 -3
- package/dist/image/preview-footer-foundation.js +10 -10
- package/dist/image/preview-foundation.js +7 -6
- package/dist/image/preview-image-foundation.d.ts +6 -8
- package/dist/image/preview-image-foundation.js +14 -14
- package/dist/image/preview-inner-foundation.d.ts +9 -9
- package/dist/image/preview-inner-foundation.js +38 -38
- package/dist/input/foundation.d.ts +10 -10
- package/dist/input/foundation.js +47 -49
- package/dist/input/text-entry-foundation.d.ts +3 -3
- package/dist/input/text-entry-foundation.js +14 -14
- package/dist/input/textarea-foundation.d.ts +7 -7
- package/dist/input/textarea-foundation.js +36 -36
- package/dist/input-number/foundation.d.ts +16 -14
- package/dist/input-number/foundation.js +54 -53
- package/dist/json-viewer/foundation.d.ts +8 -8
- package/dist/json-viewer/foundation.js +23 -23
- package/dist/lottie/foundation.d.ts +1 -1
- package/dist/lottie/foundation.js +4 -4
- package/dist/markdown-render/foundation.d.ts +1 -1
- package/dist/markdown-render/foundation.js +4 -4
- 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 -1
- package/dist/navigation/foundation.js +14 -14
- 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 -3
- package/dist/navigation/sub-nav-foundation.js +17 -17
- package/dist/notification/notification-list-foundation.d.ts +7 -7
- package/dist/notification/notification-list-foundation.js +12 -12
- package/dist/overflow-list/foundation.d.ts +4 -4
- package/dist/overflow-list/foundation.js +18 -18
- package/dist/pagination/foundation.d.ts +8 -8
- package/dist/pagination/foundation.js +28 -28
- package/dist/pincode/foundation.d.ts +5 -5
- package/dist/pincode/foundation.js +22 -22
- package/dist/popconfirm/popconfirm-foundation.d.ts +7 -7
- package/dist/popconfirm/popconfirm-foundation.js +26 -26
- package/dist/radio/radio-foundation.d.ts +5 -5
- package/dist/radio/radio-foundation.js +15 -15
- package/dist/radio/radio-group-foundation.d.ts +2 -2
- package/dist/radio/radio-group-foundation.js +9 -9
- package/dist/rating/foundation.d.ts +10 -10
- package/dist/rating/foundation.js +35 -35
- package/dist/resizable/group/index.d.ts +6 -6
- package/dist/resizable/group/index.js +40 -40
- package/dist/resizable/single/index.d.ts +2 -2
- package/dist/resizable/single/index.js +9 -9
- package/dist/scroll-list/item-foundation.d.ts +7 -7
- package/dist/scroll-list/item-foundation.js +35 -35
- package/dist/select/foundation.d.ts +42 -56
- package/dist/select/foundation.js +214 -279
- package/dist/select/option-foundation.d.ts +23 -27
- package/dist/select/option-foundation.js +10 -18
- package/dist/side-sheet/side-sheet-foundation.d.ts +6 -6
- package/dist/side-sheet/side-sheet-foundation.js +22 -22
- package/dist/slider/foundation.d.ts +16 -16
- package/dist/slider/foundation.js +46 -46
- package/dist/sortable/accessibility.d.ts +1 -1
- package/dist/sortable/accessibility.js +2 -2
- package/dist/spin/foundation.d.ts +2 -2
- package/dist/spin/foundation.js +6 -6
- package/dist/steps/utils.d.ts +1 -1
- package/dist/switch/foundation.d.ts +2 -2
- package/dist/switch/foundation.js +7 -7
- package/dist/table/foundation.d.ts +14 -14
- package/dist/table/foundation.js +93 -93
- package/dist/table/utils.d.ts +2 -2
- package/dist/tabs/foundation.d.ts +5 -5
- package/dist/tabs/foundation.js +17 -17
- package/dist/tag-input/foundation.d.ts +11 -11
- package/dist/tag-input/foundation.js +52 -52
- package/dist/time-picker/foundation.d.ts +13 -13
- package/dist/time-picker/foundation.js +39 -39
- package/dist/time-picker/input-foundation.d.ts +4 -4
- package/dist/time-picker/input-foundation.js +13 -13
- package/dist/toast/toast-list-foundation.d.ts +7 -7
- package/dist/toast/toast-list-foundation.js +14 -14
- package/dist/tooltip/foundation.d.ts +9 -9
- package/dist/tooltip/foundation.js +67 -61
- package/dist/transfer/foundation.d.ts +22 -9
- package/dist/transfer/foundation.js +38 -23
- package/dist/tree/foundation.d.ts +14 -14
- package/dist/tree/foundation.js +61 -61
- package/dist/tree/shared.d.ts +1 -1
- package/dist/tree-select/foundation.d.ts +26 -20
- package/dist/tree-select/foundation.js +91 -83
- package/dist/typography/ellipsis.d.ts +4 -4
- package/dist/typography/ellipsis.js +8 -8
- package/dist/typography/format-numeral.d.ts +1 -1
- package/dist/typography/format-numeral.js +2 -2
- package/dist/upload/constants.d.ts +1 -1
- package/dist/upload/foundation.d.ts +17 -17
- package/dist/upload/foundation.js +92 -92
- package/dist/upload/utils.d.ts +3 -3
- package/dist/upload/utils.js +6 -6
- package/dist/user-guide/foundation.d.ts +3 -3
- package/dist/user-guide/foundation.js +19 -19
- package/dist/utils/a11y.d.ts +1 -1
- package/dist/utils/announcer.d.ts +2 -2
- package/dist/utils/announcer.js +4 -4
- package/dist/utils/focus-handle.d.ts +1 -1
- package/dist/utils/focus-handle.js +1 -2
- package/dist/utils/focus-scope.d.ts +5 -5
- package/dist/utils/focus-scope.js +10 -10
- 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/video-player/foundation.d.ts +15 -15
- package/dist/video-player/foundation.js +89 -89
- package/dist/video-player/progress-foundation.d.ts +2 -2
- package/dist/video-player/progress-foundation.js +12 -12
- package/package.json +2 -2
|
@@ -18,7 +18,6 @@ export interface BasicEntities {
|
|
|
18
18
|
[idx: string]: BasicEntity;
|
|
19
19
|
}
|
|
20
20
|
export interface BasicEntity {
|
|
21
|
-
_notExist?: boolean;
|
|
22
21
|
children?: Array<BasicEntity>;
|
|
23
22
|
data: BasicCascaderData;
|
|
24
23
|
ind: number;
|
|
@@ -174,8 +173,8 @@ export interface CascaderAdapter<E = unknown, LE = unknown> extends DefaultAdapt
|
|
|
174
173
|
notifyChange: (value: BasicValue) => void;
|
|
175
174
|
notifySelect: (selected: string | number | Array<string | number>) => void;
|
|
176
175
|
notifyOnSearch: (input: string) => void;
|
|
177
|
-
notifyFocus: (e: E) => void;
|
|
178
|
-
notifyBlur: (e?: E | MouseEvent) => void;
|
|
176
|
+
notifyFocus: (e: E | FocusEvent) => void;
|
|
177
|
+
notifyBlur: (e?: E | MouseEvent | FocusEvent) => void;
|
|
179
178
|
notifyDropdownVisibleChange: (visible: boolean) => void;
|
|
180
179
|
/**
|
|
181
180
|
* Calls `loadData`. `callback` must run after the treeData update it caused is applied, since that update keeps
|
|
@@ -247,7 +246,7 @@ export default class CascaderFoundation<E = unknown, LE = unknown> extends BaseF
|
|
|
247
246
|
getStates(): BasicCascaderInnerData;
|
|
248
247
|
getState<K extends keyof BasicCascaderInnerData>(key: K): BasicCascaderInnerData[K];
|
|
249
248
|
init(): void;
|
|
250
|
-
handleKeyDown(e: E & Pick<KeyboardEvent,
|
|
249
|
+
handleKeyDown: (e: E & Pick<KeyboardEvent, "key" | "preventDefault">) => void;
|
|
251
250
|
/**
|
|
252
251
|
* Keys of the open popup (APG combobox with a tree popup, or a listbox while searching); focus stays on the
|
|
253
252
|
* trigger or its search input. Up, Down, Home and End move within the current column or the search results;
|
|
@@ -256,45 +255,54 @@ export default class CascaderFoundation<E = unknown, LE = unknown> extends BaseF
|
|
|
256
255
|
* starting with them (APG tree typeahead). In a search input Space and typed characters edit the text; while
|
|
257
256
|
* searching only Up, Down and Enter navigate. Returns whether the key was used.
|
|
258
257
|
*/
|
|
259
|
-
handleOptionKeyDown(e: E & Pick<KeyboardEvent,
|
|
258
|
+
handleOptionKeyDown: (e: E & Pick<KeyboardEvent, "key" | "ctrlKey" | "metaKey" | "altKey" | "preventDefault">, { editing, rtl }: {
|
|
260
259
|
editing: boolean;
|
|
261
260
|
rtl: boolean;
|
|
262
|
-
})
|
|
261
|
+
}) => boolean;
|
|
263
262
|
/**
|
|
264
263
|
* After an update, the host reports whether the options (treeData or keyMaps) and value changed by its own change
|
|
265
264
|
* detection. Re-collecting the options also re-resolves the value.
|
|
266
265
|
*/
|
|
267
|
-
handleInputsChange({ optionsChanged, valueChanged }: {
|
|
266
|
+
handleInputsChange: ({ optionsChanged, valueChanged }: {
|
|
268
267
|
optionsChanged: boolean;
|
|
269
268
|
valueChanged: boolean;
|
|
270
|
-
}, value: BasicValue)
|
|
271
|
-
open()
|
|
269
|
+
}, value: BasicValue) => void;
|
|
270
|
+
open: () => void;
|
|
272
271
|
/** Mousedown outside the trigger and dropdown while open */
|
|
273
|
-
handleClickOutside(e: MouseEvent)
|
|
274
|
-
|
|
272
|
+
handleClickOutside: (e: MouseEvent) => void;
|
|
273
|
+
/** Focus entered the trigger (its search input, tags, clear button) or the dropdown from outside, by any means */
|
|
274
|
+
handleFocusEnter: (e: E | FocusEvent) => void;
|
|
275
|
+
/**
|
|
276
|
+
* The focus left the trigger and the dropdown (the component checks where it went): reports the blur. An open
|
|
277
|
+
* dropdown closes when the focus went to another element (APG combobox); a window blur has no target and keeps
|
|
278
|
+
* it, as the native select does.
|
|
279
|
+
*/
|
|
280
|
+
handleFocusLeave: (e: FocusEvent) => void;
|
|
281
|
+
/** Closes the dropdown; the focus stays in the component, so no blur */
|
|
282
|
+
close: () => void;
|
|
275
283
|
/** Closes without a blur; called when Vue KeepAlive deactivates the host */
|
|
276
|
-
deactivate()
|
|
277
|
-
focus()
|
|
278
|
-
blur()
|
|
284
|
+
deactivate: () => void;
|
|
285
|
+
focus: () => void;
|
|
286
|
+
blur: () => void;
|
|
279
287
|
/** Leaves search mode after the closed dropdown finishes its exit */
|
|
280
|
-
endSearching()
|
|
288
|
+
endSearching: () => void;
|
|
281
289
|
/** A key that opens the dropdown sets the current option before the list mounts; it is scrolled to once shown */
|
|
282
|
-
handlePopoverOpen()
|
|
283
|
-
handleItemClick(e: E, item: BasicEntity | BasicData)
|
|
284
|
-
handleItemHover(_e: unknown, item: BasicEntity)
|
|
285
|
-
onItemCheckboxClick(item: BasicEntity | BasicData)
|
|
286
|
-
handleClick(e: E & Pick<UIEvent,
|
|
290
|
+
handlePopoverOpen: () => void;
|
|
291
|
+
handleItemClick: (e: E, item: BasicEntity | BasicData) => void;
|
|
292
|
+
handleItemHover: (_e: unknown, item: BasicEntity) => void;
|
|
293
|
+
onItemCheckboxClick: (item: BasicEntity | BasicData) => void;
|
|
294
|
+
handleClick: (e: E & Pick<UIEvent, "detail" | "target" | "currentTarget">) => void;
|
|
287
295
|
/**
|
|
288
296
|
* Enter toggles like a click; Down and Up open a closed popup (APG combobox). Without a search input (select-only
|
|
289
297
|
* combobox) Space also opens it, and Home and End open it on the first and last option of the first column.
|
|
290
298
|
* While open with no current option (handleOptionKeyDown left the key), Space outside a text field acts like
|
|
291
299
|
* Enter, as in Select and TreeSelect. A search input keeps Space, Home and End for its text.
|
|
292
300
|
*/
|
|
293
|
-
handleSelectionKeyDown(keyboardEvent: E & Pick<KeyboardEvent,
|
|
294
|
-
handleInputChange(sugInput: string)
|
|
295
|
-
handleClear()
|
|
296
|
-
handleListScroll(e: LE, ind: number)
|
|
297
|
-
handleTagRemoveByKey(key: string)
|
|
298
|
-
handleTagRemoveInTrigger(pos: string)
|
|
301
|
+
handleSelectionKeyDown: (keyboardEvent: E & Pick<KeyboardEvent, "key" | "preventDefault" | "detail" | "target" | "currentTarget">) => void;
|
|
302
|
+
handleInputChange: (sugInput: string) => void;
|
|
303
|
+
handleClear: () => void;
|
|
304
|
+
handleListScroll: (e: LE, ind: number) => void;
|
|
305
|
+
handleTagRemoveByKey: (key: string) => void;
|
|
306
|
+
handleTagRemoveInTrigger: (pos: string) => void;
|
|
299
307
|
}
|
|
300
308
|
export type { KeyMapProps };
|