1 | import { DATA_PORTAL_ATTRIBUTE } from '@fluentui/dom-utilities';
|
2 | import { elementContains } from '@fluentui/dom-utilities';
|
3 | import { elementContainsAttribute } from '@fluentui/dom-utilities';
|
4 | import type { ExtendedCSSStyleSheet } from '@fluentui/merge-styles';
|
5 | import { findElementRecursive } from '@fluentui/dom-utilities';
|
6 | import { getActiveElement } from '@fluentui/dom-utilities';
|
7 | import { getChildren } from '@fluentui/dom-utilities';
|
8 | import { getEventTarget } from '@fluentui/dom-utilities';
|
9 | import { getParent } from '@fluentui/dom-utilities';
|
10 | import { getVirtualParent } from '@fluentui/dom-utilities';
|
11 | import type { IProcessedStyleSet } from '@fluentui/merge-styles';
|
12 | import { IStyleFunction } from '@fluentui/merge-styles';
|
13 | import { IStyleFunctionOrObject } from '@fluentui/merge-styles';
|
14 | import type { IStyleSetBase } from '@fluentui/merge-styles';
|
15 | import { isVirtualElement } from '@fluentui/dom-utilities';
|
16 | import { IVirtualElement } from '@fluentui/dom-utilities';
|
17 | import { Omit as Omit_2 } from '@fluentui/merge-styles';
|
18 | import { portalContainsElement } from '@fluentui/dom-utilities';
|
19 | import * as React_2 from 'react';
|
20 | import { setPortalAttribute } from '@fluentui/dom-utilities';
|
21 | import { setVirtualParent } from '@fluentui/dom-utilities';
|
22 | import { ShadowConfig } from '@fluentui/merge-styles';
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 | export declare function addDirectionalKeyCode(which: number): void;
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 | export declare function addElementAtIndex<T>(array: T[], index: number, itemToAdd: T): T[];
|
38 |
|
39 | export declare type AdoptedStylesheetExHook = (stylesheetKey: string, shadowCtx: MergeStylesShadowRootContextValue | undefined, rootMergeStyles: Map<string, ExtendedCSSStyleSheet>, win: Window | undefined) => boolean;
|
40 |
|
41 | export declare type AdoptedStylesheetHook = (stylesheetKey: string) => boolean;
|
42 |
|
43 |
|
44 |
|
45 |
|
46 | export declare const allowOverscrollOnElement: (element: HTMLElement | null, events: EventGroup) => void;
|
47 |
|
48 |
|
49 |
|
50 |
|
51 |
|
52 | export declare const allowScrollOnElement: (element: HTMLElement | null, events: EventGroup) => void;
|
53 |
|
54 |
|
55 |
|
56 |
|
57 |
|
58 |
|
59 | export declare const anchorProperties: Record<string, number>;
|
60 |
|
61 |
|
62 |
|
63 |
|
64 |
|
65 | export declare function appendFunction(parent: any, ...functions: any[]): () => void;
|
66 |
|
67 |
|
68 |
|
69 |
|
70 |
|
71 |
|
72 |
|
73 |
|
74 | export declare function arraysEqual<T>(array1: T[], array2: T[]): boolean;
|
75 |
|
76 |
|
77 |
|
78 |
|
79 |
|
80 |
|
81 |
|
82 | export declare function asAsync<TProps extends {}>(options: IAsAsyncOptions<TProps>): React_2.ForwardRefExoticComponent<React_2.PropsWithoutRef<TProps & {
|
83 | asyncPlaceholder?: React_2.ElementType<any> | undefined;
|
84 | }> & React_2.RefAttributes<React_2.ElementType<TProps>>>;
|
85 |
|
86 |
|
87 |
|
88 |
|
89 |
|
90 |
|
91 | export declare function assertNever(x: never): never;
|
92 |
|
93 |
|
94 |
|
95 |
|
96 |
|
97 |
|
98 |
|
99 |
|
100 |
|
101 |
|
102 |
|
103 | export declare function assign(this: any, target: any, ...args: any[]): any;
|
104 |
|
105 |
|
106 |
|
107 |
|
108 |
|
109 |
|
110 |
|
111 |
|
112 |
|
113 |
|
114 | export declare class Async {
|
115 | private _timeoutIds;
|
116 | private _immediateIds;
|
117 | private _intervalIds;
|
118 | private _animationFrameIds;
|
119 | private _isDisposed;
|
120 | private _parent;
|
121 | private _onErrorHandler;
|
122 | private _noop;
|
123 | constructor(parent?: object, onError?: (e: any) => void);
|
124 | /**
|
125 | * Dispose function, clears all async operations.
|
126 | */
|
127 | dispose(): void;
|
128 | /**
|
129 | * SetTimeout override, which will auto cancel the timeout during dispose.
|
130 | * @param callback - Callback to execute.
|
131 | * @param duration - Duration in milliseconds.
|
132 | * @returns The setTimeout id.
|
133 | */
|
134 | setTimeout(callback: () => void, duration: number): number;
|
135 | /**
|
136 | * Clears the timeout.
|
137 | * @param id - Id to cancel.
|
138 | */
|
139 | clearTimeout(id: number): void;
|
140 | /**
|
141 | * SetImmediate override, which will auto cancel the immediate during dispose.
|
142 | * @param callback - Callback to execute.
|
143 | * @param targetElement - Optional target element to use for identifying the correct window.
|
144 | * @returns The setTimeout id.
|
145 | */
|
146 | setImmediate(callback: () => void, targetElement?: Element | null): number;
|
147 | /**
|
148 | * Clears the immediate.
|
149 | * @param id - Id to cancel.
|
150 | * @param targetElement - Optional target element to use for identifying the correct window.
|
151 | */
|
152 | clearImmediate(id: number, targetElement?: Element | null): void;
|
153 | /**
|
154 | * SetInterval override, which will auto cancel the timeout during dispose.
|
155 | * @param callback - Callback to execute.
|
156 | * @param duration - Duration in milliseconds.
|
157 | * @returns The setTimeout id.
|
158 | */
|
159 | setInterval(callback: () => void, duration: number): number;
|
160 | /**
|
161 | * Clears the interval.
|
162 | * @param id - Id to cancel.
|
163 | */
|
164 | clearInterval(id: number): void;
|
165 | /**
|
166 | * Creates a function that, when executed, will only call the func function at most once per
|
167 | * every wait milliseconds. Provide an options object to indicate that func should be invoked
|
168 | * on the leading and/or trailing edge of the wait timeout. Subsequent calls to the throttled
|
169 | * function will return the result of the last func call.
|
170 | *
|
171 | * Note: If leading and trailing options are true func will be called on the trailing edge of
|
172 | * the timeout only if the throttled function is invoked more than once during the wait timeout.
|
173 | *
|
174 | * @param func - The function to throttle.
|
175 | * @param wait - The number of milliseconds to throttle executions to. Defaults to 0.
|
176 | * @param options - The options object.
|
177 | * @returns The new throttled function.
|
178 | */
|
179 | throttle<T extends (...args: any[]) => any>(func: T, wait?: number, options?: {
|
180 | leading?: boolean;
|
181 | trailing?: boolean;
|
182 | }): T;
|
183 | /**
|
184 | * Creates a function that will delay the execution of func until after wait milliseconds have
|
185 | * elapsed since the last time it was invoked. Provide an options object to indicate that func
|
186 | * should be invoked on the leading and/or trailing edge of the wait timeout. Subsequent calls
|
187 | * to the debounced function will return the result of the last func call.
|
188 | *
|
189 | * Note: If leading and trailing options are true func will be called on the trailing edge of
|
190 | * the timeout only if the debounced function is invoked more than once during the wait
|
191 | * timeout.
|
192 | *
|
193 | * @param func - The function to debounce.
|
194 | * @param wait - The number of milliseconds to delay.
|
195 | * @param options - The options object.
|
196 | * @returns The new debounced function.
|
197 | */
|
198 | debounce<T extends (...args: any[]) => any>(func: T, wait?: number, options?: {
|
199 | leading?: boolean;
|
200 | maxWait?: number;
|
201 | trailing?: boolean;
|
202 | }): ICancelable<T> & T;
|
203 | requestAnimationFrame(callback: () => void, targetElement?: Element | null): number;
|
204 | cancelAnimationFrame(id: number, targetElement?: Element | null): void;
|
205 | protected _logError(e: any): void;
|
206 | }
|
207 |
|
208 | /**
|
209 | * An array of AUDIO tag properties and events.
|
210 |
|
211 | * @public
|
212 | */
|
213 | export declare const audioProperties: Record<string, number>;
|
214 |
|
215 | /**
|
216 | * AutoScroll simply hooks up mouse events given a parent element, and scrolls the container
|
217 | * up/down depending on how close the mouse is to the top/bottom of the container.
|
218 | *
|
219 | * Once you don't want autoscroll any more, just dispose the helper and it will unhook events.
|
220 | *
|
221 | * @public
|
222 | * {@docCategory AutoScroll}
|
223 | */
|
224 | export declare class AutoScroll {
|
225 | private _events;
|
226 | private _scrollableParent;
|
227 | private _scrollRect;
|
228 | private _scrollVelocity;
|
229 | private _isVerticalScroll;
|
230 | private _timeoutId?;
|
231 | constructor(element: HTMLElement, win?: Window);
|
232 | dispose(): void;
|
233 | private _onMouseMove;
|
234 | private _onTouchMove;
|
235 | private _computeScrollVelocity;
|
236 | private _startScroll;
|
237 | private _incrementScroll;
|
238 | private _stopScroll;
|
239 | }
|
240 |
|
241 | /**
|
242 | * BaseComponent class, which provides basic helpers for all components.
|
243 | *
|
244 | * @public
|
245 | * {@docCategory BaseComponent}
|
246 | *
|
247 | * @deprecated Do not use. We are moving away from class component.
|
248 | */
|
249 | export declare class BaseComponent<TProps extends IBaseProps = {}, TState extends {} = {}> extends React_2.Component<TProps, TState> {
|
250 | |
251 |
|
252 |
|
253 | static onError: (errorMessage?: string, ex?: any) => void;
|
254 | |
255 |
|
256 |
|
257 |
|
258 |
|
259 | protected _skipComponentRefResolution: boolean;
|
260 | private __async;
|
261 | private __events;
|
262 | private __disposables;
|
263 | private __resolves;
|
264 | private __className;
|
265 | |
266 |
|
267 |
|
268 |
|
269 |
|
270 | constructor(props: TProps, context?: any);
|
271 | /**
|
272 | * When the component receives props, make sure the componentRef is updated.
|
273 | */
|
274 | componentDidUpdate(prevProps: TProps, prevState: TState): void;
|
275 | /**
|
276 | * When the component has mounted, update the componentRef.
|
277 | */
|
278 | componentDidMount(): void;
|
279 | /**
|
280 | * If we have disposables, dispose them automatically on unmount.
|
281 | */
|
282 | componentWillUnmount(): void;
|
283 | /**
|
284 | * Gets the object's class name.
|
285 | */
|
286 | get className(): string;
|
287 | /**
|
288 | * Allows subclasses to push things to this._disposables to be auto disposed.
|
289 | */
|
290 | protected get _disposables(): IDisposable[];
|
291 | /**
|
292 | * Gets the async instance associated with the component, created on demand. The async instance gives
|
293 | * subclasses a way to execute setTimeout/setInterval async calls safely, where the callbacks
|
294 | * will be cleared/ignored automatically after unmounting. The helpers within the async object also
|
295 | * preserve the this pointer so that you don't need to "bind" the callbacks.
|
296 | */
|
297 | protected get _async(): Async;
|
298 | /**
|
299 | * Gets the event group instance assocaited with the component, created on demand. The event instance
|
300 | * provides on/off methods for listening to DOM (or regular javascript object) events. The event callbacks
|
301 | * will be automatically disconnected after unmounting. The helpers within the events object also
|
302 | * preserve the this reference so that you don't need to "bind" the callbacks.
|
303 | */
|
304 | protected get _events(): EventGroup;
|
305 | /**
|
306 | * Helper to return a memoized ref resolver function.
|
307 | * @param refName - Name of the member to assign the ref to.
|
308 | * @returns A function instance keyed from the given refname.
|
309 | * @deprecated Use `createRef` from React.createRef.
|
310 | */
|
311 | protected _resolveRef(refName: string): (ref: React_2.ReactNode) => React_2.ReactNode;
|
312 | /**
|
313 | * Updates the componentRef (by calling it with "this" when necessary.)
|
314 | */
|
315 | protected _updateComponentRef(currentProps: IBaseProps, newProps?: IBaseProps): void;
|
316 | /**
|
317 | * Warns when a deprecated props are being used.
|
318 | *
|
319 | * @param deprecationMap - The map of deprecations, where key is the prop name and the value is
|
320 | * either null or a replacement prop name.
|
321 | */
|
322 | protected _warnDeprecations(deprecationMap: ISettingsMap<TProps>): void;
|
323 | /**
|
324 | * Warns when props which are mutually exclusive with each other are both used.
|
325 | *
|
326 | * @param mutuallyExclusiveMap - The map of mutually exclusive props.
|
327 | */
|
328 | protected _warnMutuallyExclusive(mutuallyExclusiveMap: ISettingsMap<TProps>): void;
|
329 | /**
|
330 | * Warns when props are required if a condition is met.
|
331 | *
|
332 | * @param requiredProps - The name of the props that are required when the condition is met.
|
333 | * @param conditionalPropName - The name of the prop that the condition is based on.
|
334 | * @param condition - Whether the condition is met.
|
335 | */
|
336 | protected _warnConditionallyRequiredProps(requiredProps: string[], conditionalPropName: string, condition: boolean): void;
|
337 | private _setComponentRef;
|
338 | }
|
339 |
|
340 | /**
|
341 | * An array of events that are allowed on every html element type.
|
342 | *
|
343 | * @public
|
344 | */
|
345 | export declare const baseElementEvents: Record<string, number>;
|
346 |
|
347 | /**
|
348 | * An array of element attributes which are allowed on every html element type.
|
349 | *
|
350 | * @public
|
351 | */
|
352 | export declare const baseElementProperties: Record<string, number>;
|
353 |
|
354 | /**
|
355 | * An array of BUTTON tag properties and events.
|
356 | *
|
357 | * @public
|
358 | */
|
359 | export declare const buttonProperties: Record<string, number>;
|
360 |
|
361 | /**
|
362 | * Calculates a number's precision based on the number of trailing
|
363 | * zeros if the number does not have a decimal indicated by a negative
|
364 | * precision. Otherwise, it calculates the number of digits after
|
365 | * the decimal point indicated by a positive precision.
|
366 | * @param value - the value to determine the precision of
|
367 | */
|
368 | export declare function calculatePrecision(value: number | string): number;
|
369 |
|
370 | /**
|
371 | * Verifies if an application can use DOM.
|
372 | */
|
373 | export declare function canUseDOM(): boolean;
|
374 |
|
375 | /**
|
376 | * Creates a getClassNames function which calls getStyles given the props, and injects them
|
377 | * into mergeStyleSets.
|
378 | *
|
379 | * Note that the props you pass in on every render should be in the same order and
|
380 | * immutable (numbers, strings, and booleans). This will allow the results to be memoized. Violating
|
381 | * these will cause extra recalcs to occur.
|
382 | */
|
383 | export declare function classNamesFunction<TStyleProps extends {}, TStyleSet extends IStyleSetBase>(options?: IClassNamesFunctionOptions): (getStyles: IStyleFunctionOrObject<TStyleProps, TStyleSet> | undefined, styleProps?: TStyleProps) => IProcessedStyleSet<TStyleSet>;
|
384 |
|
385 | export declare const colGroupProperties: Record<string, number>;
|
386 |
|
387 | export declare const colProperties: Record<string, number>;
|
388 |
|
389 |
|
390 |
|
391 |
|
392 |
|
393 |
|
394 |
|
395 |
|
396 | export declare function composeComponentAs<TProps extends {}>(outer: IComponentAs<TProps>, inner: IComponentAs<TProps>): IComponentAs<TProps>;
|
397 |
|
398 |
|
399 |
|
400 |
|
401 |
|
402 |
|
403 |
|
404 | export declare function composeRenderFunction<TProps>(outer: IRenderFunction<TProps>, inner: IRenderFunction<TProps>): IRenderFunction<TProps>;
|
405 |
|
406 |
|
407 |
|
408 |
|
409 |
|
410 |
|
411 |
|
412 |
|
413 | export declare function createArray<T>(size: number, getItem: (index: number) => T): T[];
|
414 |
|
415 |
|
416 |
|
417 |
|
418 |
|
419 |
|
420 |
|
421 |
|
422 |
|
423 |
|
424 |
|
425 |
|
426 | export declare function createMemoizer<F extends (input: any) => any>(getValue: F): F;
|
427 |
|
428 |
|
429 |
|
430 |
|
431 | export declare const createMergedRef: <TType, TValue = null>(value?: TValue | undefined) => (...newRefs: (React_2.Ref<TType | TValue | null> | undefined)[]) => (newValue: TType | TValue | null) => void;
|
432 |
|
433 |
|
434 |
|
435 |
|
436 |
|
437 |
|
438 | export declare function css(...args: ICssInput[]): string;
|
439 |
|
440 | export declare function customizable(scope: string, fields: string[], concatStyles?: boolean): <P>(ComposedComponent: React_2.ComponentType<P>) => any;
|
441 |
|
442 | export declare class Customizations {
|
443 | private static _suppressUpdates;
|
444 | static reset(): void;
|
445 | |
446 |
|
447 |
|
448 | static applySettings(settings: ISettings): void;
|
449 | |
450 |
|
451 |
|
452 | static applyScopedSettings(scopeName: string, settings: ISettings): void;
|
453 | static getSettings(properties: string[], scopeName?: string, localSettings?: ICustomizations): any;
|
454 | |
455 |
|
456 |
|
457 |
|
458 |
|
459 | static applyBatchedUpdates(code: () => void, suppressUpdate?: boolean): void;
|
460 | static observe(onChange: () => void): void;
|
461 | static unobserve(onChange: () => void): void;
|
462 | private static _raiseChange;
|
463 | }
|
464 |
|
465 |
|
466 |
|
467 |
|
468 |
|
469 |
|
470 |
|
471 |
|
472 |
|
473 |
|
474 |
|
475 |
|
476 |
|
477 |
|
478 |
|
479 |
|
480 |
|
481 |
|
482 | export declare class Customizer extends React_2.Component<ICustomizerProps> {
|
483 | componentDidMount(): void;
|
484 | componentWillUnmount(): void;
|
485 | render(): React_2.ReactElement<{}>;
|
486 | private _onCustomizationChange;
|
487 | }
|
488 |
|
489 | export declare const CustomizerContext: React_2.Context<ICustomizerContext>;
|
490 |
|
491 |
|
492 |
|
493 |
|
494 |
|
495 |
|
496 |
|
497 |
|
498 | export declare const DATA_IS_SCROLLABLE_ATTRIBUTE = "data-is-scrollable";
|
499 |
|
500 | export { DATA_PORTAL_ATTRIBUTE }
|
501 |
|
502 |
|
503 |
|
504 |
|
505 |
|
506 |
|
507 |
|
508 |
|
509 |
|
510 | export declare class DelayedRender extends React_2.Component<IDelayedRenderProps, IDelayedRenderState> {
|
511 | static defaultProps: {
|
512 | delay: number;
|
513 | };
|
514 | private _timeoutId;
|
515 | constructor(props: IDelayedRenderProps);
|
516 | componentDidMount(): void;
|
517 | componentWillUnmount(): void;
|
518 | render(): React_2.ReactElement<{}> | null;
|
519 | }
|
520 |
|
521 |
|
522 |
|
523 |
|
524 |
|
525 |
|
526 | export declare function disableBodyScroll(): void;
|
527 |
|
528 |
|
529 |
|
530 |
|
531 |
|
532 |
|
533 | export declare const divProperties: Record<string, number>;
|
534 |
|
535 |
|
536 |
|
537 |
|
538 |
|
539 |
|
540 | export declare function doesElementContainFocus(element: HTMLElement): boolean;
|
541 |
|
542 | export { elementContains }
|
543 |
|
544 | export { elementContainsAttribute }
|
545 |
|
546 |
|
547 |
|
548 |
|
549 |
|
550 |
|
551 | export declare function enableBodyScroll(): void;
|
552 |
|
553 |
|
554 |
|
555 |
|
556 |
|
557 |
|
558 |
|
559 |
|
560 |
|
561 |
|
562 |
|
563 |
|
564 | export declare class EventGroup {
|
565 | private static _uniqueId;
|
566 | private _parent;
|
567 | private _eventRecords;
|
568 | private _id;
|
569 | private _isDisposed;
|
570 | |
571 |
|
572 |
|
573 |
|
574 |
|
575 |
|
576 | static raise(target: any, eventName: string, eventArgs?: any, bubbleEvent?: boolean, doc?: Document): boolean | undefined;
|
577 | static isObserved(target: any, eventName: string): boolean;
|
578 |
|
579 | static isDeclared(target: any, eventName: string): boolean;
|
580 | static stopPropagation(event: any): void;
|
581 | private static _isElement;
|
582 |
|
583 | constructor(parent: any);
|
584 | dispose(): void;
|
585 | /** On the target, attach a set of events, where the events object is a name to function mapping. */
|
586 | onAll(target: any, events: {
|
587 | [key: string]: (args?: any) => void;
|
588 | }, useCapture?: boolean): void;
|
589 | /**
|
590 | * On the target, attach an event whose handler will be called in the context of the parent
|
591 | * of this instance of EventGroup.
|
592 | */
|
593 | on(target: any, eventName: string, callback: (args?: any) => void, options?: boolean | AddEventListenerOptions): void;
|
594 | off(target?: any, eventName?: string, callback?: (args?: any) => void, options?: boolean | AddEventListenerOptions): void;
|
595 | /** Trigger the given event in the context of this instance of EventGroup. */
|
596 | raise(eventName: string, eventArgs?: any, bubbleEvent?: boolean): boolean | undefined;
|
597 | /** Declare an event as being supported by this instance of EventGroup. */
|
598 | declare(event: string | string[]): void;
|
599 | }
|
600 |
|
601 | /**
|
602 | * Extends a component's lifetime methods by appending new functions to the existing lifetime functions.
|
603 | */
|
604 | export declare function extendComponent<T extends React_2.Component>(parent: T, methods: {
|
605 | [key in keyof T]?: T[key];
|
606 | }): void;
|
607 |
|
608 | /**
|
609 | * Performance helper class for measuring things.
|
610 | *
|
611 | * @public
|
612 | * {@docCategory FabricPerformance}
|
613 | */
|
614 | export declare class FabricPerformance {
|
615 | static summary: IPerfSummary;
|
616 | private static _timeoutId;
|
617 | |
618 |
|
619 |
|
620 |
|
621 |
|
622 |
|
623 | static measure(name: string, func: () => void): void;
|
624 | static reset(): void;
|
625 | static setPeriodicReset(): void;
|
626 | }
|
627 |
|
628 |
|
629 |
|
630 |
|
631 |
|
632 |
|
633 |
|
634 |
|
635 |
|
636 |
|
637 |
|
638 |
|
639 |
|
640 | export declare function filteredAssign(isAllowed: (propName: string) => boolean, target: any, ...args: any[]): any;
|
641 |
|
642 |
|
643 |
|
644 |
|
645 |
|
646 |
|
647 | export declare function find<T>(array: T[], cb: (item: T, index: number) => boolean): T | undefined;
|
648 |
|
649 | export { findElementRecursive }
|
650 |
|
651 |
|
652 |
|
653 |
|
654 |
|
655 |
|
656 |
|
657 |
|
658 |
|
659 |
|
660 | export declare function findIndex<T>(array: T[], cb: (item: T, index: number) => boolean, fromIndex?: number): number;
|
661 |
|
662 |
|
663 |
|
664 |
|
665 |
|
666 |
|
667 |
|
668 | export declare function findScrollableParent(startingElement: HTMLElement | null): HTMLElement | Window | undefined | null;
|
669 |
|
670 |
|
671 |
|
672 |
|
673 |
|
674 |
|
675 |
|
676 |
|
677 |
|
678 |
|
679 |
|
680 |
|
681 | export declare function fitContentToBounds(options: IFitContentToBoundsOptions): ISize;
|
682 |
|
683 |
|
684 |
|
685 |
|
686 | export declare type FitMode = 'contain' | 'cover';
|
687 |
|
688 |
|
689 |
|
690 |
|
691 |
|
692 | export declare function flatten<T>(array: (T | T[])[]): T[];
|
693 |
|
694 |
|
695 |
|
696 |
|
697 |
|
698 |
|
699 |
|
700 | export declare function focusAsync(element: HTMLElement | {
|
701 | focus: () => void;
|
702 | } | undefined | null): void;
|
703 |
|
704 |
|
705 |
|
706 |
|
707 |
|
708 |
|
709 |
|
710 |
|
711 |
|
712 | export declare function focusFirstChild(rootElement: HTMLElement, bypassHiddenElements?: boolean, includeShadowRoots?: boolean): boolean;
|
713 |
|
714 |
|
715 |
|
716 |
|
717 |
|
718 | export declare const FocusRects: React_2.FunctionComponent<{
|
719 | rootRef?: React_2.RefObject<HTMLElement>;
|
720 | }>;
|
721 |
|
722 | export declare const FocusRectsContext: React_2.Context<IFocusRectsContext | undefined>;
|
723 |
|
724 | export declare const FocusRectsProvider: React_2.FC<FocusRectsProviderProps>;
|
725 |
|
726 | export declare type FocusRectsProviderProps = {
|
727 | |
728 |
|
729 |
|
730 | providerRef: React_2.RefObject<HTMLElement>;
|
731 | |
732 |
|
733 |
|
734 | layerRoot?: boolean;
|
735 | };
|
736 |
|
737 |
|
738 |
|
739 |
|
740 |
|
741 |
|
742 |
|
743 |
|
744 |
|
745 |
|
746 |
|
747 |
|
748 |
|
749 |
|
750 | export declare function format(s: string, ...values: any[]): string;
|
751 |
|
752 |
|
753 |
|
754 |
|
755 |
|
756 |
|
757 | export declare const formProperties: Record<string, number>;
|
758 |
|
759 | export { getActiveElement }
|
760 |
|
761 | export { getChildren }
|
762 |
|
763 |
|
764 |
|
765 |
|
766 |
|
767 |
|
768 | export declare function getDistanceBetweenPoints(point1: Point, point2: Point): number;
|
769 |
|
770 |
|
771 |
|
772 |
|
773 |
|
774 |
|
775 |
|
776 |
|
777 | export declare function getDocument(rootElement?: HTMLElement | null): Document | undefined;
|
778 |
|
779 |
|
780 |
|
781 |
|
782 |
|
783 |
|
784 |
|
785 | export declare function getElementIndexPath(fromElement: HTMLElement, toElement: HTMLElement): number[];
|
786 |
|
787 | export { getEventTarget }
|
788 |
|
789 |
|
790 |
|
791 |
|
792 |
|
793 |
|
794 | export declare function getFirstFocusable(rootElement: HTMLElement, currentElement: HTMLElement, includeElementsInFocusZones?: boolean, includeShadowRoots?: boolean): HTMLElement | null;
|
795 |
|
796 |
|
797 |
|
798 |
|
799 |
|
800 |
|
801 |
|
802 |
|
803 |
|
804 |
|
805 |
|
806 | export declare function getFirstTabbable(rootElement: HTMLElement, currentElement: HTMLElement, includeElementsInFocusZones?: boolean, checkNode?: boolean, includeShadowRoots?: boolean): HTMLElement | null;
|
807 |
|
808 |
|
809 |
|
810 |
|
811 |
|
812 |
|
813 |
|
814 |
|
815 | export declare function getFirstVisibleElementFromSelector(selector: string): Element | undefined;
|
816 |
|
817 |
|
818 |
|
819 |
|
820 |
|
821 | export declare function getFocusableByIndexPath(parent: HTMLElement, path: number[]): HTMLElement | undefined;
|
822 |
|
823 |
|
824 |
|
825 |
|
826 |
|
827 |
|
828 | export declare function getId(prefix?: string): string;
|
829 |
|
830 |
|
831 |
|
832 |
|
833 |
|
834 |
|
835 |
|
836 |
|
837 |
|
838 | export declare function getInitials(displayName: string | undefined | null, isRtl: boolean, allowPhoneInitials?: boolean): string;
|
839 |
|
840 |
|
841 |
|
842 |
|
843 |
|
844 | export declare function getLanguage(persistenceType?: 'localStorage' | 'sessionStorage' | 'none'): string | null;
|
845 |
|
846 |
|
847 |
|
848 |
|
849 |
|
850 |
|
851 | export declare function getLastFocusable(rootElement: HTMLElement, currentElement: HTMLElement, includeElementsInFocusZones?: boolean, includeShadowRoots?: boolean): HTMLElement | null;
|
852 |
|
853 |
|
854 |
|
855 |
|
856 |
|
857 |
|
858 |
|
859 |
|
860 |
|
861 |
|
862 |
|
863 | export declare function getLastTabbable(rootElement: HTMLElement, currentElement: HTMLElement, includeElementsInFocusZones?: boolean, checkNode?: boolean, includeShadowRoots?: boolean): HTMLElement | null;
|
864 |
|
865 |
|
866 |
|
867 |
|
868 |
|
869 |
|
870 |
|
871 |
|
872 | export declare function getNativeElementProps<TAttributes extends React_2.HTMLAttributes<any>>(tagName: string, props: {}, excludedPropNames?: string[]): TAttributes;
|
873 |
|
874 |
|
875 |
|
876 |
|
877 |
|
878 |
|
879 |
|
880 |
|
881 |
|
882 |
|
883 |
|
884 |
|
885 |
|
886 |
|
887 |
|
888 | export declare function getNativeProps<T extends Record<string, any>>(props: Record<string, any>, allowedPropNames: string[] | Record<string, number>, excludedPropNames?: string[]): T;
|
889 |
|
890 |
|
891 |
|
892 |
|
893 |
|
894 |
|
895 |
|
896 |
|
897 | export declare function getNextElement(rootElement: HTMLElement, currentElement: HTMLElement | null, checkNode?: boolean, suppressParentTraversal?: boolean, suppressChildTraversal?: boolean, includeElementsInFocusZones?: boolean, allowFocusRoot?: boolean, tabbable?: boolean, bypassHiddenElements?: boolean, includeShadowRoots?: boolean): HTMLElement | null;
|
898 |
|
899 | export { getParent }
|
900 |
|
901 |
|
902 |
|
903 |
|
904 |
|
905 |
|
906 |
|
907 | export declare function getPreviousElement(rootElement: HTMLElement, currentElement: HTMLElement | null, checkNode?: boolean, suppressParentTraversal?: boolean, traverseChildren?: boolean, includeElementsInFocusZones?: boolean, allowFocusRoot?: boolean, tabbable?: boolean, includeShadowRoots?: boolean): HTMLElement | null;
|
908 |
|
909 |
|
910 |
|
911 |
|
912 |
|
913 |
|
914 |
|
915 |
|
916 | export declare function getPropsWithDefaults<TProps extends {}>(defaultProps: Partial<TProps>, propsWithoutDefaults: TProps): TProps;
|
917 |
|
918 |
|
919 |
|
920 |
|
921 |
|
922 |
|
923 | export declare function getRect(element: HTMLElement | Window | null, win?: Window): IRectangle | undefined;
|
924 |
|
925 |
|
926 |
|
927 |
|
928 | export declare function getResourceUrl(url: string): string;
|
929 |
|
930 |
|
931 |
|
932 |
|
933 | export declare function getRTL(theme?: {
|
934 | rtl?: boolean;
|
935 | }): boolean;
|
936 |
|
937 |
|
938 |
|
939 |
|
940 | export declare function getRTLSafeKeyCode(key: number, theme?: {
|
941 | rtl?: boolean;
|
942 | }): number;
|
943 |
|
944 |
|
945 |
|
946 |
|
947 |
|
948 |
|
949 | export declare function getScrollbarWidth(doc?: Document): number;
|
950 |
|
951 | export { getVirtualParent }
|
952 |
|
953 |
|
954 |
|
955 |
|
956 |
|
957 |
|
958 |
|
959 |
|
960 |
|
961 | export declare function getWindow(rootElement?: Element | null): Window | undefined;
|
962 |
|
963 |
|
964 |
|
965 |
|
966 |
|
967 |
|
968 |
|
969 |
|
970 |
|
971 | export declare class GlobalSettings {
|
972 | static getValue<T>(key: string, defaultValue?: T | (() => T)): T;
|
973 | static setValue<T>(key: string, value: T): T;
|
974 | static addChangeListener(cb: IChangeEventCallback): void;
|
975 | static removeChangeListener(cb: IChangeEventCallback): void;
|
976 | }
|
977 |
|
978 | /**
|
979 | * Detects whether an element's content has horizontal overflow
|
980 | *
|
981 | * @public
|
982 | * @param element - Element to check for overflow
|
983 | * @returns True if element's content overflows
|
984 | */
|
985 | export declare function hasHorizontalOverflow(element: HTMLElement): boolean;
|
986 |
|
987 | export declare type HasMergeStylesShadowRootContextHook = () => boolean;
|
988 |
|
989 |
|
990 |
|
991 |
|
992 |
|
993 |
|
994 |
|
995 |
|
996 | export declare function hasOverflow(element: HTMLElement): boolean;
|
997 |
|
998 |
|
999 |
|
1000 |
|
1001 |
|
1002 |
|
1003 |
|
1004 |
|
1005 | export declare function hasVerticalOverflow(element: HTMLElement): boolean;
|
1006 |
|
1007 |
|
1008 |
|
1009 |
|
1010 |
|
1011 |
|
1012 |
|
1013 |
|
1014 |
|
1015 |
|
1016 | export declare function hoistMethods(destination: any, source: any, exclusions?: string[]): string[];
|
1017 |
|
1018 |
|
1019 |
|
1020 |
|
1021 |
|
1022 |
|
1023 |
|
1024 |
|
1025 |
|
1026 |
|
1027 |
|
1028 | export declare function hoistStatics<TSource extends Object, TDest>(source: TSource, dest: TDest): TDest;
|
1029 |
|
1030 |
|
1031 |
|
1032 |
|
1033 |
|
1034 |
|
1035 | export declare const htmlElementProperties: Record<string, number>;
|
1036 |
|
1037 | export declare interface IAsAsyncOptions<TProps> {
|
1038 | |
1039 |
|
1040 |
|
1041 | load: () => Promise<React_2.ElementType<TProps>>;
|
1042 | |
1043 |
|
1044 |
|
1045 | onLoad?: () => void;
|
1046 | |
1047 |
|
1048 |
|
1049 | onError?: (error: Error) => void;
|
1050 | }
|
1051 |
|
1052 |
|
1053 |
|
1054 |
|
1055 |
|
1056 |
|
1057 |
|
1058 | export declare interface IBaseProps<T = any> {
|
1059 | componentRef?: IRefObject<T>;
|
1060 | }
|
1061 |
|
1062 | export declare type ICancelable<T extends (...args: any[]) => any> = {
|
1063 | flush: () => ReturnType<T>;
|
1064 | cancel: () => void;
|
1065 | pending: () => boolean;
|
1066 | };
|
1067 |
|
1068 |
|
1069 |
|
1070 |
|
1071 |
|
1072 |
|
1073 |
|
1074 | export declare interface IChangeDescription {
|
1075 | key: string;
|
1076 | oldValue: any;
|
1077 | value: any;
|
1078 | }
|
1079 |
|
1080 |
|
1081 |
|
1082 |
|
1083 |
|
1084 |
|
1085 |
|
1086 | export declare interface IChangeEventCallback {
|
1087 | __id__?: string;
|
1088 | (changeDescription?: IChangeDescription): void;
|
1089 | }
|
1090 |
|
1091 |
|
1092 |
|
1093 |
|
1094 | export declare type IClassNames<T> = {
|
1095 | [key in keyof T]: string;
|
1096 | };
|
1097 |
|
1098 | export declare interface IClassNamesFunctionOptions {
|
1099 | |
1100 |
|
1101 |
|
1102 | disableCaching?: boolean;
|
1103 | |
1104 |
|
1105 |
|
1106 | cacheSize?: number;
|
1107 | |
1108 |
|
1109 |
|
1110 | useStaticStyles?: boolean;
|
1111 | }
|
1112 |
|
1113 |
|
1114 |
|
1115 |
|
1116 |
|
1117 |
|
1118 |
|
1119 | export declare type IComponentAs<T> = React_2.ComponentType<IComponentAsProps<T>>;
|
1120 |
|
1121 |
|
1122 |
|
1123 |
|
1124 |
|
1125 |
|
1126 |
|
1127 | export declare type IComponentAsProps<T> = T & {
|
1128 | defaultRender?: React_2.ComponentType<T>;
|
1129 | };
|
1130 |
|
1131 |
|
1132 |
|
1133 |
|
1134 |
|
1135 |
|
1136 | export declare type ICssInput = string | ISerializableObject | IDictionary | null | undefined | boolean;
|
1137 |
|
1138 | export declare interface ICustomizableProps {
|
1139 | |
1140 |
|
1141 |
|
1142 | scope: string;
|
1143 | |
1144 |
|
1145 |
|
1146 |
|
1147 | fields?: string[];
|
1148 | }
|
1149 |
|
1150 | export declare interface ICustomizations {
|
1151 | settings: ISettings;
|
1152 | scopedSettings: {
|
1153 | [key: string]: ISettings;
|
1154 | };
|
1155 | inCustomizerContext?: boolean;
|
1156 | }
|
1157 |
|
1158 | export declare interface ICustomizerContext {
|
1159 | customizations: ICustomizations;
|
1160 | }
|
1161 |
|
1162 | export declare type ICustomizerProps = IBaseProps & Partial<{
|
1163 | |
1164 |
|
1165 |
|
1166 |
|
1167 |
|
1168 |
|
1169 |
|
1170 |
|
1171 |
|
1172 |
|
1173 |
|
1174 |
|
1175 |
|
1176 | settings: ISettings | ISettingsFunction;
|
1177 | |
1178 |
|
1179 |
|
1180 |
|
1181 |
|
1182 |
|
1183 |
|
1184 |
|
1185 |
|
1186 |
|
1187 |
|
1188 |
|
1189 |
|
1190 |
|
1191 |
|
1192 |
|
1193 |
|
1194 |
|
1195 |
|
1196 |
|
1197 | scopedSettings: ISettings | ISettingsFunction;
|
1198 | }> & {
|
1199 | children?: React_2.ReactNode;
|
1200 | |
1201 |
|
1202 |
|
1203 |
|
1204 | contextTransform?: (context: Readonly<ICustomizerContext>) => ICustomizerContext;
|
1205 | };
|
1206 |
|
1207 |
|
1208 |
|
1209 |
|
1210 | export declare interface IDeclaredEventsByName {
|
1211 | [eventName: string]: boolean;
|
1212 | }
|
1213 |
|
1214 |
|
1215 |
|
1216 |
|
1217 |
|
1218 |
|
1219 | export declare interface IDelayedRenderProps extends IReactProps<{}> {
|
1220 | |
1221 |
|
1222 |
|
1223 | delay?: number;
|
1224 | }
|
1225 |
|
1226 |
|
1227 |
|
1228 |
|
1229 |
|
1230 |
|
1231 | export declare interface IDelayedRenderState {
|
1232 | |
1233 |
|
1234 |
|
1235 | isRendered: boolean;
|
1236 | }
|
1237 |
|
1238 |
|
1239 |
|
1240 |
|
1241 |
|
1242 |
|
1243 | export declare interface IDictionary {
|
1244 | [className: string]: boolean;
|
1245 | }
|
1246 |
|
1247 |
|
1248 |
|
1249 |
|
1250 |
|
1251 |
|
1252 |
|
1253 | export declare interface IDisposable {
|
1254 | dispose: () => void;
|
1255 | }
|
1256 |
|
1257 |
|
1258 |
|
1259 |
|
1260 | export declare interface IEventRecord {
|
1261 | target: any;
|
1262 | eventName: string;
|
1263 | parent: any;
|
1264 | callback: (args?: any) => void;
|
1265 | elementCallback?: (...args: any[]) => void;
|
1266 | objectCallback?: (args?: any) => void;
|
1267 | options?: boolean | AddEventListenerOptions;
|
1268 | }
|
1269 |
|
1270 |
|
1271 |
|
1272 |
|
1273 | export declare interface IEventRecordList {
|
1274 | [id: string]: IEventRecord[] | number;
|
1275 | count: number;
|
1276 | }
|
1277 |
|
1278 |
|
1279 |
|
1280 |
|
1281 | export declare interface IEventRecordsByName {
|
1282 | [eventName: string]: IEventRecordList;
|
1283 | }
|
1284 |
|
1285 |
|
1286 |
|
1287 |
|
1288 | export declare interface IFitContentToBoundsOptions {
|
1289 | |
1290 |
|
1291 |
|
1292 |
|
1293 | contentSize: ISize;
|
1294 | |
1295 |
|
1296 |
|
1297 | boundsSize: ISize;
|
1298 | |
1299 |
|
1300 |
|
1301 | mode: FitMode;
|
1302 | |
1303 |
|
1304 |
|
1305 |
|
1306 | maxScale?: number;
|
1307 | }
|
1308 |
|
1309 | export declare type IFocusRectsContext = {
|
1310 | |
1311 |
|
1312 |
|
1313 | readonly providerRef: React_2.RefObject<HTMLElement>;
|
1314 | |
1315 |
|
1316 |
|
1317 |
|
1318 |
|
1319 |
|
1320 |
|
1321 | readonly registeredProviders: React_2.RefObject<HTMLElement>[];
|
1322 | |
1323 |
|
1324 |
|
1325 | readonly registerProvider: (ref: React_2.RefObject<HTMLElement>) => void;
|
1326 | |
1327 |
|
1328 |
|
1329 | readonly unregisterProvider: (ref: React_2.RefObject<HTMLElement>) => void;
|
1330 | };
|
1331 |
|
1332 |
|
1333 |
|
1334 |
|
1335 |
|
1336 |
|
1337 | export declare const iframeProperties: Record<string, number>;
|
1338 |
|
1339 |
|
1340 |
|
1341 |
|
1342 | export declare const imageProperties: Record<string, number>;
|
1343 |
|
1344 |
|
1345 |
|
1346 |
|
1347 |
|
1348 |
|
1349 | export declare const imgProperties: Record<string, number>;
|
1350 |
|
1351 |
|
1352 |
|
1353 |
|
1354 |
|
1355 |
|
1356 |
|
1357 | export declare function initializeComponentRef<TProps extends IBaseProps, TState>(obj: React_2.Component<TProps, TState>): void;
|
1358 |
|
1359 |
|
1360 |
|
1361 |
|
1362 |
|
1363 |
|
1364 |
|
1365 |
|
1366 |
|
1367 |
|
1368 |
|
1369 |
|
1370 |
|
1371 |
|
1372 |
|
1373 |
|
1374 |
|
1375 | export declare function initializeFocusRects(window?: Window): void;
|
1376 |
|
1377 |
|
1378 |
|
1379 |
|
1380 |
|
1381 |
|
1382 | export declare const inputProperties: Record<string, number>;
|
1383 |
|
1384 |
|
1385 |
|
1386 |
|
1387 | export declare interface IObjectWithKey {
|
1388 | key?: string | number;
|
1389 | }
|
1390 |
|
1391 |
|
1392 |
|
1393 |
|
1394 |
|
1395 |
|
1396 | export declare interface IPerfData {
|
1397 | duration: number;
|
1398 | timeStamp: number;
|
1399 | }
|
1400 |
|
1401 |
|
1402 |
|
1403 |
|
1404 |
|
1405 |
|
1406 | export declare interface IPerfMeasurement {
|
1407 | totalDuration: number;
|
1408 | count: number;
|
1409 | all: IPerfData[];
|
1410 | }
|
1411 |
|
1412 |
|
1413 |
|
1414 |
|
1415 |
|
1416 |
|
1417 | export declare interface IPerfSummary {
|
1418 | [key: string]: IPerfMeasurement;
|
1419 | }
|
1420 |
|
1421 |
|
1422 |
|
1423 |
|
1424 |
|
1425 |
|
1426 |
|
1427 |
|
1428 | export declare interface IPoint extends Point {
|
1429 | }
|
1430 |
|
1431 | export declare interface IPropsWithStyles<TStyleProps, TStyleSet extends IStyleSetBase> {
|
1432 | styles?: IStyleFunctionOrObject<TStyleProps, TStyleSet>;
|
1433 | }
|
1434 |
|
1435 | export declare interface IReactProps<T> {
|
1436 | children?: React_2.ReactNode | undefined;
|
1437 | key?: React_2.Key | undefined;
|
1438 | ref?: React_2.LegacyRef<T> | undefined;
|
1439 | }
|
1440 |
|
1441 |
|
1442 |
|
1443 |
|
1444 |
|
1445 |
|
1446 |
|
1447 | export declare interface IRectangle {
|
1448 | left: number;
|
1449 | top: number;
|
1450 | width: number;
|
1451 | height: number;
|
1452 | right?: number;
|
1453 | bottom?: number;
|
1454 | }
|
1455 |
|
1456 | export declare type IRefObject<T> = React_2.RefObject<T> | RefObject<T> | ((ref: T | null) => void);
|
1457 |
|
1458 | /**
|
1459 | * An interface representing a component that will not output any DOM, will just render its children and
|
1460 | * pass through items to modify the children.
|
1461 | *
|
1462 | * {@docCategory IRenderComponent}
|
1463 | */
|
1464 | export declare interface IRenderComponent<TProps> {
|
1465 | /**
|
1466 | * JSX.Element to return in this component's render() function.
|
1467 | */
|
1468 | children: (props: TProps) => JSX.Element;
|
1469 | }
|
1470 |
|
1471 |
|
1472 |
|
1473 |
|
1474 |
|
1475 |
|
1476 | export declare interface IRenderFunction<P> {
|
1477 | (props?: P, defaultRender?: (props?: P) => JSX.Element | null): JSX.Element | null;
|
1478 | }
|
1479 |
|
1480 |
|
1481 |
|
1482 |
|
1483 |
|
1484 |
|
1485 |
|
1486 | export declare function isControlled<P>(props: P, valueProp: keyof P): boolean;
|
1487 |
|
1488 |
|
1489 |
|
1490 |
|
1491 | export declare function isDirectionalKeyCode(which: number): boolean;
|
1492 |
|
1493 |
|
1494 |
|
1495 |
|
1496 | export declare interface ISelection<TItem = IObjectWithKey> {
|
1497 | count: number;
|
1498 | mode: SelectionMode_2;
|
1499 | canSelectItem: (item: TItem, index?: number) => boolean;
|
1500 | setChangeEvents(isEnabled: boolean, suppressChange?: boolean): void;
|
1501 | setItems(items: TItem[], shouldClear: boolean): void;
|
1502 | getItems(): TItem[];
|
1503 | getItemIndex?(key: string): number;
|
1504 | getSelection(): TItem[];
|
1505 | getSelectedIndices(): number[];
|
1506 | getSelectedCount(): number;
|
1507 | isRangeSelected(fromIndex: number, count: number): boolean;
|
1508 | isAllSelected(): boolean;
|
1509 | isKeySelected(key: string): boolean;
|
1510 | isIndexSelected(index: number): boolean;
|
1511 | isModal?(): boolean;
|
1512 | setAllSelected(isAllSelected: boolean): void;
|
1513 | setKeySelected(key: string, isSelected: boolean, shouldAnchor: boolean): void;
|
1514 | setIndexSelected(index: number, isSelected: boolean, shouldAnchor: boolean): void;
|
1515 | setRangeSelected?(fromIndex: number, count: number, isSelected: boolean, shouldAnchor: boolean): void;
|
1516 | setModal?(isModal: boolean): void;
|
1517 | selectToKey(key: string, clearSelection?: boolean): void;
|
1518 | selectToIndex(index: number, clearSelection?: boolean): void;
|
1519 | selectToRange?(index: number, count: number, clearSelection?: boolean): void;
|
1520 | toggleAllSelected(): void;
|
1521 | toggleKeySelected(key: string): void;
|
1522 | toggleIndexSelected(index: number): void;
|
1523 | toggleRangeSelected(fromIndex: number, count: number): void;
|
1524 | }
|
1525 |
|
1526 |
|
1527 |
|
1528 |
|
1529 | export declare interface ISelectionOptions<TItem = IObjectWithKey> {
|
1530 | onSelectionChanged?: () => void;
|
1531 | onItemsChanged?: () => void;
|
1532 |
|
1533 | getKey?: (item: TItem, index?: number) => string | number;
|
1534 | canSelectItem?: (item: TItem, index?: number) => boolean;
|
1535 | selectionMode?: SelectionMode_2;
|
1536 | items?: TItem[];
|
1537 | }
|
1538 |
|
1539 |
|
1540 |
|
1541 |
|
1542 |
|
1543 | export declare type ISelectionOptionsWithRequiredGetKey<TItem> = ISelectionOptions<TItem> & Required<Pick<ISelectionOptions<TItem>, 'getKey'>>;
|
1544 |
|
1545 |
|
1546 |
|
1547 |
|
1548 |
|
1549 |
|
1550 | export declare function isElementFocusSubZone(element?: HTMLElement): boolean;
|
1551 |
|
1552 |
|
1553 |
|
1554 |
|
1555 |
|
1556 |
|
1557 | export declare function isElementFocusZone(element?: HTMLElement): boolean;
|
1558 |
|
1559 |
|
1560 |
|
1561 |
|
1562 |
|
1563 |
|
1564 |
|
1565 |
|
1566 | export declare function isElementTabbable(element: HTMLElement, checkTabIndex?: boolean, checkShadowRoot?: boolean): boolean;
|
1567 |
|
1568 |
|
1569 |
|
1570 |
|
1571 |
|
1572 |
|
1573 | export declare function isElementVisible(element: HTMLElement | undefined | null): boolean;
|
1574 |
|
1575 |
|
1576 |
|
1577 |
|
1578 |
|
1579 |
|
1580 |
|
1581 |
|
1582 | export declare function isElementVisibleAndNotHidden(element: HTMLElement | undefined | null, win?: Window): boolean;
|
1583 |
|
1584 |
|
1585 |
|
1586 |
|
1587 |
|
1588 |
|
1589 | export declare interface ISerializableObject {
|
1590 | toString?: () => string;
|
1591 | }
|
1592 |
|
1593 | export declare type ISettings = {
|
1594 | [key: string]: any;
|
1595 | };
|
1596 |
|
1597 | export declare type ISettingsFunction = (settings: ISettings) => ISettings;
|
1598 |
|
1599 | export declare type ISettingsMap<T> = {
|
1600 | [P in keyof T]?: string;
|
1601 | };
|
1602 |
|
1603 | export declare const IsFocusVisibleClassName = "ms-Fabric--isFocusVisible";
|
1604 |
|
1605 | export declare const isIE11: () => boolean;
|
1606 |
|
1607 |
|
1608 |
|
1609 |
|
1610 |
|
1611 | export declare const isIOS: () => boolean;
|
1612 |
|
1613 |
|
1614 |
|
1615 |
|
1616 | export declare interface ISize {
|
1617 | width: number;
|
1618 | height: number;
|
1619 | }
|
1620 |
|
1621 |
|
1622 |
|
1623 |
|
1624 |
|
1625 | export declare function isMac(reset?: boolean): boolean;
|
1626 |
|
1627 | export { IStyleFunction }
|
1628 |
|
1629 | export { IStyleFunctionOrObject }
|
1630 |
|
1631 | export { isVirtualElement }
|
1632 |
|
1633 | export { IVirtualElement }
|
1634 |
|
1635 | export declare interface IWarnControlledUsageParams<P> {
|
1636 |
|
1637 | componentId: string;
|
1638 |
|
1639 | componentName: string;
|
1640 |
|
1641 | props: P;
|
1642 |
|
1643 | oldProps?: P;
|
1644 |
|
1645 | valueProp: keyof P;
|
1646 |
|
1647 | defaultValueProp: keyof P;
|
1648 |
|
1649 | onChangeProp: keyof P;
|
1650 |
|
1651 | readOnlyProp?: keyof P;
|
1652 | }
|
1653 |
|
1654 |
|
1655 |
|
1656 |
|
1657 |
|
1658 |
|
1659 |
|
1660 | export declare const KeyCodes: {
|
1661 | backspace: 8;
|
1662 | tab: 9;
|
1663 | enter: 13;
|
1664 | shift: 16;
|
1665 | ctrl: 17;
|
1666 | alt: 18;
|
1667 | pauseBreak: 19;
|
1668 | capslock: 20;
|
1669 | escape: 27;
|
1670 | space: 32;
|
1671 | pageUp: 33;
|
1672 | pageDown: 34;
|
1673 | end: 35;
|
1674 | home: 36;
|
1675 | left: 37;
|
1676 | up: 38;
|
1677 | right: 39;
|
1678 | down: 40;
|
1679 | insert: 45;
|
1680 | del: 46;
|
1681 | zero: 48;
|
1682 | one: 49;
|
1683 | two: 50;
|
1684 | three: 51;
|
1685 | four: 52;
|
1686 | five: 53;
|
1687 | six: 54;
|
1688 | seven: 55;
|
1689 | eight: 56;
|
1690 | nine: 57;
|
1691 | colon: 58;
|
1692 | a: 65;
|
1693 | b: 66;
|
1694 | c: 67;
|
1695 | d: 68;
|
1696 | e: 69;
|
1697 | f: 70;
|
1698 | g: 71;
|
1699 | h: 72;
|
1700 | i: 73;
|
1701 | j: 74;
|
1702 | k: 75;
|
1703 | l: 76;
|
1704 | m: 77;
|
1705 | n: 78;
|
1706 | o: 79;
|
1707 | p: 80;
|
1708 | q: 81;
|
1709 | r: 82;
|
1710 | s: 83;
|
1711 | t: 84;
|
1712 | u: 85;
|
1713 | v: 86;
|
1714 | w: 87;
|
1715 | x: 88;
|
1716 | y: 89;
|
1717 | z: 90;
|
1718 | leftWindow: 91;
|
1719 | rightWindow: 92;
|
1720 | select: 93;
|
1721 | zero_numpad: 96;
|
1722 | one_numpad: 97;
|
1723 | two_numpad: 98;
|
1724 | three_numpad: 99;
|
1725 | four_numpad: 100;
|
1726 | five_numpad: 101;
|
1727 | six_numpad: 102;
|
1728 | seven_numpad: 103;
|
1729 | eight_numpad: 104;
|
1730 | nine_numpad: 105;
|
1731 | multiply: 106;
|
1732 | add: 107;
|
1733 | subtract: 109;
|
1734 | decimalPoint: 110;
|
1735 | divide: 111;
|
1736 | f1: 112;
|
1737 | f2: 113;
|
1738 | f3: 114;
|
1739 | f4: 115;
|
1740 | f5: 116;
|
1741 | f6: 117;
|
1742 | f7: 118;
|
1743 | f8: 119;
|
1744 | f9: 120;
|
1745 | f10: 121;
|
1746 | f11: 122;
|
1747 | f12: 123;
|
1748 | numlock: 144;
|
1749 | scrollLock: 145;
|
1750 | semicolon: 186;
|
1751 | equalSign: 187;
|
1752 | comma: 188;
|
1753 | dash: 189;
|
1754 | period: 190;
|
1755 | forwardSlash: 191;
|
1756 | graveAccent: 192;
|
1757 | openBracket: 219;
|
1758 | backSlash: 220;
|
1759 | closeBracket: 221;
|
1760 | singleQuote: 222;
|
1761 | };
|
1762 |
|
1763 | export declare type KeyCodes = number;
|
1764 |
|
1765 |
|
1766 |
|
1767 |
|
1768 |
|
1769 |
|
1770 | export declare const labelProperties: Record<string, number>;
|
1771 |
|
1772 |
|
1773 |
|
1774 |
|
1775 |
|
1776 |
|
1777 | export declare const liProperties: Record<string, number>;
|
1778 |
|
1779 |
|
1780 |
|
1781 |
|
1782 |
|
1783 |
|
1784 |
|
1785 |
|
1786 | export declare function mapEnumByName<T>(theEnum: any, callback: (name?: string, value?: string | number) => T | undefined): (T | undefined)[] | undefined;
|
1787 |
|
1788 |
|
1789 |
|
1790 |
|
1791 |
|
1792 |
|
1793 |
|
1794 |
|
1795 | export declare function memoize<T extends Function>(_target: any, _key: string, descriptor: TypedPropertyDescriptor<T>): {
|
1796 | configurable: boolean;
|
1797 | get(): T;
|
1798 | };
|
1799 |
|
1800 |
|
1801 |
|
1802 |
|
1803 |
|
1804 |
|
1805 |
|
1806 |
|
1807 |
|
1808 |
|
1809 |
|
1810 |
|
1811 |
|
1812 |
|
1813 |
|
1814 |
|
1815 |
|
1816 |
|
1817 |
|
1818 |
|
1819 | export declare function memoizeFunction<T extends (...args: any[]) => RetType, RetType>(cb: T, maxCacheSize?: number, ignoreNullOrUndefinedResult?: boolean): T;
|
1820 |
|
1821 |
|
1822 |
|
1823 |
|
1824 |
|
1825 |
|
1826 | export declare function merge<T = {}>(target: Partial<T>, ...args: (Partial<T> | null | undefined | false)[]): T;
|
1827 |
|
1828 |
|
1829 |
|
1830 |
|
1831 |
|
1832 |
|
1833 |
|
1834 | export declare function mergeAriaAttributeValues(...ariaAttributes: (string | undefined | false)[]): string | undefined;
|
1835 |
|
1836 |
|
1837 |
|
1838 |
|
1839 |
|
1840 |
|
1841 |
|
1842 |
|
1843 | export declare function mergeCustomizations(props: ICustomizerProps, parentContext: ICustomizerContext): ICustomizerContext;
|
1844 |
|
1845 | export declare function mergeScopedSettings(oldSettings?: ISettings, newSettings?: ISettings | ISettingsFunction): ISettings;
|
1846 |
|
1847 |
|
1848 |
|
1849 |
|
1850 |
|
1851 |
|
1852 |
|
1853 |
|
1854 | export declare function mergeSettings(oldSettings?: ISettings, newSettings?: ISettings | ISettingsFunction): ISettings;
|
1855 |
|
1856 | export declare type MergeStylesContextConsumerProps = {
|
1857 | stylesheetKey: string;
|
1858 | children: (inShadow: boolean) => React_2.ReactElement<any, any>;
|
1859 | };
|
1860 |
|
1861 | export declare type MergeStylesRootContextValue = {
|
1862 | |
1863 |
|
1864 |
|
1865 | stylesheets: Map<string, ExtendedCSSStyleSheet>;
|
1866 | useAdoptedStylesheetEx: AdoptedStylesheetExHook;
|
1867 | useAdoptedStylesheet: AdoptedStylesheetHook;
|
1868 | useShadowConfig: ShadowConfigHook;
|
1869 | useMergeStylesShadowRootContext: MergeStylesShadowRootContetHook;
|
1870 | useHasMergeStylesShadowRootContext: HasMergeStylesShadowRootContextHook;
|
1871 | useMergeStylesRootStylesheets: MergeStylesRootStylesheetsHook;
|
1872 | useWindow: UseWindowHook;
|
1873 | useStyled: UseStyledHook;
|
1874 | };
|
1875 |
|
1876 |
|
1877 |
|
1878 |
|
1879 |
|
1880 | export declare const MergeStylesRootProvider: React_2.FC<MergeStylesRootProviderProps>;
|
1881 |
|
1882 | export declare type MergeStylesRootProviderProps = {
|
1883 | |
1884 |
|
1885 |
|
1886 | stylesheets?: Map<string, ExtendedCSSStyleSheet>;
|
1887 | |
1888 |
|
1889 |
|
1890 |
|
1891 | window?: Window;
|
1892 | useAdoptedStylesheetEx?: AdoptedStylesheetExHook;
|
1893 | useAdoptedStylesheet?: AdoptedStylesheetHook;
|
1894 | useShadowConfig?: ShadowConfigHook;
|
1895 | useMergeStylesShadowRootContext?: MergeStylesShadowRootContetHook;
|
1896 | useHasMergeStylesShadowRootContext?: HasMergeStylesShadowRootContextHook;
|
1897 | useMergeStylesRootStylesheets?: MergeStylesRootStylesheetsHook;
|
1898 | useWindow?: UseWindowHook;
|
1899 | useStyled?: UseStyledHook;
|
1900 | };
|
1901 |
|
1902 | declare type MergeStylesRootStylesheetsHook = () => Map<string, ExtendedCSSStyleSheet>;
|
1903 |
|
1904 | declare type MergeStylesShadowRootContetHook = () => MergeStylesShadowRootContextValue | undefined;
|
1905 |
|
1906 | export declare const MergeStylesShadowRootContext: React_2.Context<MergeStylesShadowRootContextValue | undefined>;
|
1907 |
|
1908 | export declare type MergeStylesShadowRootContextValue = {
|
1909 | |
1910 |
|
1911 |
|
1912 | stylesheets: Map<string, CSSStyleSheet>;
|
1913 | |
1914 |
|
1915 |
|
1916 | shadowRoot?: ShadowRoot | null;
|
1917 | };
|
1918 |
|
1919 |
|
1920 |
|
1921 |
|
1922 | export declare const MergeStylesShadowRootProvider: React_2.FC<MergeStylesShadowRootProviderProps>;
|
1923 |
|
1924 | export declare type MergeStylesShadowRootProviderProps = {
|
1925 | |
1926 |
|
1927 |
|
1928 | shadowRoot?: ShadowRoot | null;
|
1929 | };
|
1930 |
|
1931 |
|
1932 |
|
1933 |
|
1934 |
|
1935 |
|
1936 |
|
1937 |
|
1938 |
|
1939 |
|
1940 | export declare function modalize(target: HTMLElement): () => void;
|
1941 |
|
1942 |
|
1943 |
|
1944 |
|
1945 |
|
1946 |
|
1947 | export declare function nullRender(): JSX.Element | null;
|
1948 |
|
1949 |
|
1950 |
|
1951 |
|
1952 |
|
1953 |
|
1954 | export declare const olProperties: Record<string, number>;
|
1955 |
|
1956 |
|
1957 |
|
1958 |
|
1959 |
|
1960 |
|
1961 |
|
1962 |
|
1963 |
|
1964 |
|
1965 |
|
1966 |
|
1967 |
|
1968 |
|
1969 | export declare function omit<TObj extends Record<string, any>>(obj: TObj, exclusions: (keyof TObj)[]): TObj;
|
1970 |
|
1971 | export { Omit_2 as Omit }
|
1972 |
|
1973 | export declare function on(element: Element | Window | Document, eventName: string, callback: (ev: Event) => void, options?: boolean): () => void;
|
1974 |
|
1975 | export declare const optionProperties: Record<string, number>;
|
1976 |
|
1977 |
|
1978 |
|
1979 |
|
1980 |
|
1981 |
|
1982 |
|
1983 | export declare interface Point {
|
1984 | left?: number;
|
1985 | top?: number;
|
1986 |
|
1987 | x?: number;
|
1988 |
|
1989 | y?: number;
|
1990 | }
|
1991 |
|
1992 | export { portalContainsElement }
|
1993 |
|
1994 |
|
1995 |
|
1996 |
|
1997 |
|
1998 |
|
1999 | export declare function precisionRound(value: number, precision: number, base?: number): number;
|
2000 |
|
2001 |
|
2002 |
|
2003 |
|
2004 | export declare function raiseClick(target: Element, doc?: Document): void;
|
2005 |
|
2006 |
|
2007 |
|
2008 |
|
2009 |
|
2010 |
|
2011 |
|
2012 | export declare class Rectangle {
|
2013 | top: number;
|
2014 | bottom: number;
|
2015 | left: number;
|
2016 | right: number;
|
2017 | constructor(left?: number, right?: number, top?: number, bottom?: number);
|
2018 | /**
|
2019 | * Calculated automatically by subtracting the right from left
|
2020 | */
|
2021 | get width(): number;
|
2022 | /**
|
2023 | * Calculated automatically by subtracting the bottom from top.
|
2024 | */
|
2025 | get height(): number;
|
2026 | /**
|
2027 | * Tests if another rect is approximately equal to this rect (within 4 decimal places.)
|
2028 | */
|
2029 | equals(rect: Rectangle): boolean;
|
2030 | }
|
2031 |
|
2032 | export declare type RefObject<T> = {
|
2033 | (component: T | null): void;
|
2034 | current: T | null;
|
2035 | };
|
2036 |
|
2037 |
|
2038 |
|
2039 |
|
2040 |
|
2041 |
|
2042 | export declare function removeDirectionalKeyCode(which: number): void;
|
2043 |
|
2044 |
|
2045 |
|
2046 |
|
2047 |
|
2048 |
|
2049 | export declare function removeIndex<T>(array: T[], index: number): T[];
|
2050 |
|
2051 |
|
2052 |
|
2053 |
|
2054 |
|
2055 |
|
2056 |
|
2057 | export declare function replaceElement<T>(array: T[], newElement: T, index: number): T[];
|
2058 |
|
2059 |
|
2060 | export declare function resetControlledWarnings(): void;
|
2061 |
|
2062 |
|
2063 |
|
2064 |
|
2065 |
|
2066 |
|
2067 | export declare function resetIds(counter?: number): void;
|
2068 |
|
2069 |
|
2070 |
|
2071 |
|
2072 | export declare function resetMemoizations(): void;
|
2073 |
|
2074 |
|
2075 |
|
2076 |
|
2077 |
|
2078 |
|
2079 |
|
2080 | export declare const safeRequestAnimationFrame: (component: React_2.Component) => (cb: Function) => void;
|
2081 |
|
2082 |
|
2083 |
|
2084 |
|
2085 |
|
2086 |
|
2087 |
|
2088 | export declare const safeSetTimeout: (component: React_2.Component) => (cb: Function, duration: number) => void;
|
2089 |
|
2090 |
|
2091 |
|
2092 |
|
2093 | declare class Selection_2<TItem = IObjectWithKey> implements ISelection<TItem> {
|
2094 |
|
2095 | count: number;
|
2096 | readonly mode: SelectionMode_2;
|
2097 | private _getKey;
|
2098 | private _canSelectItem;
|
2099 | private _changeEventSuppressionCount;
|
2100 | private _items;
|
2101 | private _selectedItems;
|
2102 | private _selectedIndices;
|
2103 | private _isAllSelected;
|
2104 | private _exemptedIndices;
|
2105 | private _exemptedCount;
|
2106 | private _keyToIndexMap;
|
2107 | private _anchoredIndex;
|
2108 | private _onSelectionChanged;
|
2109 | private _onItemsChanged;
|
2110 | private _hasChanged;
|
2111 | private _unselectableIndices;
|
2112 | private _unselectableCount;
|
2113 | private _isModal;
|
2114 | |
2115 |
|
2116 |
|
2117 |
|
2118 |
|
2119 | constructor(...options: TItem extends IObjectWithKey ? [] | [ISelectionOptions<TItem>] : [ISelectionOptionsWithRequiredGetKey<TItem>]);
|
2120 | canSelectItem(item: TItem, index?: number): boolean;
|
2121 | getKey(item: TItem, index?: number): string;
|
2122 | setChangeEvents(isEnabled: boolean, suppressChange?: boolean): void;
|
2123 | isModal(): boolean;
|
2124 | setModal(isModal: boolean): void;
|
2125 | /**
|
2126 | * Selection needs the items, call this method to set them. If the set
|
2127 | * of items is the same, this will re-evaluate selection and index maps.
|
2128 | * Otherwise, shouldClear should be set to true, so that selection is
|
2129 | * cleared.
|
2130 | */
|
2131 | setItems(items: TItem[], shouldClear?: boolean): void;
|
2132 | getItems(): TItem[];
|
2133 | getSelection(): TItem[];
|
2134 | getSelectedCount(): number;
|
2135 | getSelectedIndices(): number[];
|
2136 | getItemIndex(key: string): number;
|
2137 | isRangeSelected(fromIndex: number, count: number): boolean;
|
2138 | isAllSelected(): boolean;
|
2139 | isKeySelected(key: string): boolean;
|
2140 | isIndexSelected(index: number): boolean;
|
2141 | setAllSelected(isAllSelected: boolean): void;
|
2142 | setKeySelected(key: string, isSelected: boolean, shouldAnchor: boolean): void;
|
2143 | setIndexSelected(index: number, isSelected: boolean, shouldAnchor: boolean): void;
|
2144 | setRangeSelected(fromIndex: number, count: number, isSelected: boolean, shouldAnchor: boolean): void;
|
2145 | selectToKey(key: string, clearSelection?: boolean): void;
|
2146 | selectToRange(fromIndex: number, count: number, clearSelection?: boolean): void;
|
2147 | selectToIndex(index: number, clearSelection?: boolean): void;
|
2148 | toggleAllSelected(): void;
|
2149 | toggleKeySelected(key: string): void;
|
2150 | toggleIndexSelected(index: number): void;
|
2151 | toggleRangeSelected(fromIndex: number, count: number): void;
|
2152 | private _updateCount;
|
2153 | private _setAllSelected;
|
2154 | private _change;
|
2155 | }
|
2156 | export { Selection_2 as Selection }
|
2157 |
|
2158 | export declare const SELECTION_CHANGE = "change";
|
2159 |
|
2160 | export declare const SELECTION_ITEMS_CHANGE = "items-change";
|
2161 |
|
2162 |
|
2163 |
|
2164 |
|
2165 | export declare enum SelectionDirection {
|
2166 | horizontal = 0,
|
2167 | vertical = 1
|
2168 | }
|
2169 |
|
2170 |
|
2171 |
|
2172 |
|
2173 | declare enum SelectionMode_2 {
|
2174 | none = 0,
|
2175 | single = 1,
|
2176 | multiple = 2
|
2177 | }
|
2178 | export { SelectionMode_2 as SelectionMode }
|
2179 |
|
2180 |
|
2181 |
|
2182 |
|
2183 |
|
2184 |
|
2185 | export declare const selectProperties: Record<string, number>;
|
2186 |
|
2187 |
|
2188 |
|
2189 |
|
2190 | export declare function setBaseUrl(baseUrl: string): void;
|
2191 |
|
2192 |
|
2193 |
|
2194 |
|
2195 |
|
2196 |
|
2197 |
|
2198 |
|
2199 |
|
2200 |
|
2201 |
|
2202 |
|
2203 |
|
2204 |
|
2205 |
|
2206 |
|
2207 | export declare function setFocusVisibility(enabled: boolean, target?: Element, registeredProviders?: React_2.RefObject<HTMLElement>[]): void;
|
2208 |
|
2209 |
|
2210 |
|
2211 |
|
2212 |
|
2213 |
|
2214 | export declare function setLanguage(language: string, persistenceType?: 'localStorage' | 'sessionStorage' | 'none'): void;
|
2215 |
|
2216 |
|
2217 |
|
2218 |
|
2219 |
|
2220 |
|
2221 |
|
2222 | export declare function setLanguage(language: string, avoidPersisting?: boolean): void;
|
2223 |
|
2224 |
|
2225 |
|
2226 |
|
2227 |
|
2228 |
|
2229 | export declare function setMemoizeWeakMap(weakMap: any): void;
|
2230 |
|
2231 | export { setPortalAttribute }
|
2232 |
|
2233 |
|
2234 |
|
2235 |
|
2236 | export declare function setRTL(isRTL: boolean, persistSetting?: boolean): void;
|
2237 |
|
2238 |
|
2239 |
|
2240 |
|
2241 |
|
2242 |
|
2243 | export declare function setSSR(isEnabled: boolean): void;
|
2244 |
|
2245 |
|
2246 |
|
2247 |
|
2248 | export declare type Settings = ISettings;
|
2249 |
|
2250 |
|
2251 |
|
2252 |
|
2253 | export declare type SettingsFunction = ISettingsFunction;
|
2254 |
|
2255 | export { setVirtualParent }
|
2256 |
|
2257 |
|
2258 |
|
2259 |
|
2260 |
|
2261 |
|
2262 |
|
2263 |
|
2264 | export declare function setWarningCallback(warningCallback?: (message: string) => void): void;
|
2265 |
|
2266 | export declare type ShadowConfigHook = (stylesheetKey: string, inShadow: boolean, win?: Window) => ShadowConfig;
|
2267 |
|
2268 |
|
2269 |
|
2270 |
|
2271 |
|
2272 |
|
2273 | export declare function shallowCompare<TA extends any, TB extends any>(a: TA, b: TB): boolean;
|
2274 |
|
2275 |
|
2276 |
|
2277 |
|
2278 |
|
2279 |
|
2280 |
|
2281 | export declare function shouldWrapFocus(element: HTMLElement, noWrapDataAttribute: 'data-no-vertical-wrap' | 'data-no-horizontal-wrap', doc?: Document): boolean;
|
2282 |
|
2283 |
|
2284 |
|
2285 |
|
2286 |
|
2287 |
|
2288 |
|
2289 |
|
2290 |
|
2291 |
|
2292 |
|
2293 |
|
2294 |
|
2295 |
|
2296 |
|
2297 |
|
2298 |
|
2299 |
|
2300 |
|
2301 |
|
2302 | export declare function styled<TComponentProps extends IPropsWithStyles<TStyleProps, TStyleSet>, TStyleProps, TStyleSet extends IStyleSetBase>(Component: React_2.ComponentClass<TComponentProps> | React_2.FunctionComponent<TComponentProps>, baseStyles: IStyleFunctionOrObject<TStyleProps, TStyleSet>, getProps?: (props: TComponentProps) => Partial<TComponentProps>, customizable?: ICustomizableProps, pure?: boolean): React_2.FunctionComponent<TComponentProps>;
|
2303 |
|
2304 | export declare function styled<TComponentProps extends IPropsWithStyles<TStyleProps, TStyleSet> & React_2.RefAttributes<TRef>, TStyleProps, TStyleSet extends IStyleSetBase, TRef = unknown>(Component: React_2.ComponentClass<TComponentProps> | React_2.FunctionComponent<TComponentProps>, baseStyles: IStyleFunctionOrObject<TStyleProps, TStyleSet>, getProps?: (props: TComponentProps) => Partial<TComponentProps>, customizable?: ICustomizableProps, pure?: boolean): React_2.ForwardRefExoticComponent<React_2.PropsWithoutRef<TComponentProps> & React_2.RefAttributes<TRef>>;
|
2305 |
|
2306 | export declare type StyleFunction<TStyleProps, TStyleSet extends IStyleSetBase> = IStyleFunctionOrObject<TStyleProps, TStyleSet> & {
|
2307 |
|
2308 | __cachedInputs__: (IStyleFunctionOrObject<TStyleProps, TStyleSet> | undefined)[];
|
2309 |
|
2310 | __noStyleOverride__: boolean;
|
2311 |
|
2312 | __shadowConfig__?: ShadowConfig;
|
2313 | };
|
2314 |
|
2315 |
|
2316 |
|
2317 |
|
2318 |
|
2319 |
|
2320 | export declare const tableProperties: Record<string, number>;
|
2321 |
|
2322 |
|
2323 |
|
2324 |
|
2325 |
|
2326 |
|
2327 | export declare const tdProperties: Record<string, number>;
|
2328 |
|
2329 |
|
2330 |
|
2331 |
|
2332 |
|
2333 |
|
2334 | export declare const textAreaProperties: Record<string, number>;
|
2335 |
|
2336 |
|
2337 |
|
2338 |
|
2339 |
|
2340 |
|
2341 | export declare const thProperties: Record<string, number>;
|
2342 |
|
2343 |
|
2344 |
|
2345 |
|
2346 |
|
2347 |
|
2348 |
|
2349 |
|
2350 |
|
2351 |
|
2352 | export declare function toMatrix<T>(items: T[], columnCount: number): T[][];
|
2353 |
|
2354 |
|
2355 |
|
2356 |
|
2357 |
|
2358 |
|
2359 | export declare const trProperties: Record<string, number>;
|
2360 |
|
2361 |
|
2362 |
|
2363 |
|
2364 |
|
2365 |
|
2366 |
|
2367 |
|
2368 | export declare function unhoistMethods(source: any, methodNames: string[]): void;
|
2369 |
|
2370 |
|
2371 |
|
2372 |
|
2373 | export declare const useAdoptedStylesheet: AdoptedStylesheetHook;
|
2374 |
|
2375 |
|
2376 |
|
2377 |
|
2378 | export declare const useAdoptedStylesheetEx: AdoptedStylesheetExHook;
|
2379 |
|
2380 |
|
2381 |
|
2382 |
|
2383 |
|
2384 | export declare function useCustomizationSettings(properties: string[], scopeName?: string): ISettings;
|
2385 |
|
2386 |
|
2387 |
|
2388 |
|
2389 |
|
2390 |
|
2391 |
|
2392 |
|
2393 |
|
2394 |
|
2395 |
|
2396 |
|
2397 |
|
2398 |
|
2399 |
|
2400 |
|
2401 |
|
2402 |
|
2403 |
|
2404 | export declare function useFocusRects(rootRef?: React_2.RefObject<HTMLElement>): void;
|
2405 |
|
2406 |
|
2407 |
|
2408 |
|
2409 |
|
2410 | export declare const useHasMergeStylesShadowRootContext: HasMergeStylesShadowRootContextHook;
|
2411 |
|
2412 |
|
2413 |
|
2414 |
|
2415 |
|
2416 |
|
2417 |
|
2418 |
|
2419 |
|
2420 |
|
2421 |
|
2422 |
|
2423 |
|
2424 | export declare const useIsomorphicLayoutEffect: typeof React_2.useEffect;
|
2425 |
|
2426 | export declare const useMergeStylesHooks: () => {
|
2427 | useAdoptedStylesheet: AdoptedStylesheetHook;
|
2428 | useAdoptedStylesheetEx: AdoptedStylesheetExHook;
|
2429 | useShadowConfig: ShadowConfigHook;
|
2430 | useMergeStylesShadowRootContext: MergeStylesShadowRootContetHook;
|
2431 | useHasMergeStylesShadowRootContext: HasMergeStylesShadowRootContextHook;
|
2432 | useMergeStylesRootStylesheets: MergeStylesRootStylesheetsHook;
|
2433 | useWindow: () => Window | undefined;
|
2434 | useStyled: UseStyledHook;
|
2435 | };
|
2436 |
|
2437 |
|
2438 |
|
2439 |
|
2440 | export declare const useMergeStylesRootStylesheets: MergeStylesRootStylesheetsHook;
|
2441 |
|
2442 |
|
2443 |
|
2444 |
|
2445 |
|
2446 | export declare const useMergeStylesShadowRootContext: MergeStylesShadowRootContetHook;
|
2447 |
|
2448 |
|
2449 |
|
2450 |
|
2451 |
|
2452 |
|
2453 |
|
2454 | export declare const useShadowConfig: ShadowConfigHook;
|
2455 |
|
2456 | export declare const useStyled: UseStyledHook;
|
2457 |
|
2458 | export declare type UseStyledHook = (scope: string) => ShadowConfig | undefined;
|
2459 |
|
2460 | declare type UseWindowHook = () => Window | undefined;
|
2461 |
|
2462 |
|
2463 |
|
2464 |
|
2465 |
|
2466 |
|
2467 | export declare function values<T>(obj: any): T[];
|
2468 |
|
2469 |
|
2470 |
|
2471 |
|
2472 |
|
2473 |
|
2474 | export declare const videoProperties: Record<string, number>;
|
2475 |
|
2476 |
|
2477 |
|
2478 |
|
2479 |
|
2480 |
|
2481 |
|
2482 | export declare function warn(message: string): void;
|
2483 |
|
2484 |
|
2485 |
|
2486 |
|
2487 |
|
2488 |
|
2489 |
|
2490 |
|
2491 |
|
2492 |
|
2493 |
|
2494 | export declare function warnConditionallyRequiredProps<P extends {}>(componentName: string, props: P, requiredProps: string[], conditionalPropName: string, condition: boolean): void;
|
2495 |
|
2496 |
|
2497 |
|
2498 |
|
2499 |
|
2500 |
|
2501 |
|
2502 |
|
2503 |
|
2504 |
|
2505 |
|
2506 | export declare function warnControlledUsage<P>(params: IWarnControlledUsageParams<P>): void;
|
2507 |
|
2508 |
|
2509 |
|
2510 |
|
2511 |
|
2512 |
|
2513 |
|
2514 |
|
2515 |
|
2516 |
|
2517 | export declare function warnDeprecations<P extends {}>(componentName: string, props: P, deprecationMap: ISettingsMap<P>): void;
|
2518 |
|
2519 |
|
2520 |
|
2521 |
|
2522 |
|
2523 |
|
2524 |
|
2525 |
|
2526 |
|
2527 | export declare function warnMutuallyExclusive<P>(componentName: string, props: P, exclusiveMap: ISettingsMap<P>): void;
|
2528 |
|
2529 | export { }
|