@ssv/ngx.ux 3.2.0-dev.68 → 3.3.0-dev.76
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/fesm2022/ssv-ngx.ux.mjs +60 -72
- package/fesm2022/ssv-ngx.ux.mjs.map +1 -1
- package/index.d.ts +225 -3
- package/package.json +1 -3
- package/esm2022/index.mjs +0 -4
- package/esm2022/internal/internal.model.mjs +0 -2
- package/esm2022/platform/window.mjs +0 -31
- package/esm2022/ssv-ngx.ux.mjs +0 -5
- package/esm2022/ux.module.mjs +0 -19
- package/esm2022/version.mjs +0 -2
- package/esm2022/viewport/index.mjs +0 -10
- package/esm2022/viewport/viewport-data/index.mjs +0 -4
- package/esm2022/viewport/viewport-data/viewport-data-matcher.mjs +0 -107
- package/esm2022/viewport/viewport-data/viewport-data.pipe.mjs +0 -48
- package/esm2022/viewport/viewport-data/viewport-data.service.mjs +0 -32
- package/esm2022/viewport/viewport-data/viewport-data.utils.mjs +0 -100
- package/esm2022/viewport/viewport-matcher-var.directive.mjs +0 -69
- package/esm2022/viewport/viewport-matcher.directive.mjs +0 -136
- package/esm2022/viewport/viewport-server-size.service.mjs +0 -38
- package/esm2022/viewport/viewport.model.mjs +0 -30
- package/esm2022/viewport/viewport.module.mjs +0 -27
- package/esm2022/viewport/viewport.options.mjs +0 -51
- package/esm2022/viewport/viewport.service.mjs +0 -79
- package/esm2022/viewport/viewport.util.mjs +0 -117
- package/internal/internal.model.d.ts +0 -3
- package/platform/window.d.ts +0 -13
- package/ux.module.d.ts +0 -7
- package/version.d.ts +0 -1
- package/viewport/index.d.ts +0 -9
- package/viewport/viewport-data/index.d.ts +0 -3
- package/viewport/viewport-data/viewport-data-matcher.d.ts +0 -32
- package/viewport/viewport-data/viewport-data.pipe.d.ts +0 -18
- package/viewport/viewport-data/viewport-data.service.d.ts +0 -16
- package/viewport/viewport-data/viewport-data.utils.d.ts +0 -21
- package/viewport/viewport-matcher-var.directive.d.ts +0 -25
- package/viewport/viewport-matcher.directive.d.ts +0 -33
- package/viewport/viewport-server-size.service.d.ts +0 -10
- package/viewport/viewport.model.d.ts +0 -47
- package/viewport/viewport.module.d.ts +0 -9
- package/viewport/viewport.options.d.ts +0 -19
- package/viewport/viewport.service.d.ts +0 -34
- package/viewport/viewport.util.d.ts +0 -25
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { Dictionary } from "../../internal/internal.model";
|
|
2
|
-
import type { ViewportSizeTypeInfo } from "../viewport.model";
|
|
3
|
-
export type ViewportDataConfig<TValue = unknown, TData = Dictionary<TValue>> = TData & {
|
|
4
|
-
default?: TValue;
|
|
5
|
-
};
|
|
6
|
-
export declare enum ViewportDataMatchStrategy {
|
|
7
|
-
/** Indicates that size should match exact or default. */
|
|
8
|
-
exact = 0,
|
|
9
|
-
/** Indicates that size matches when exact match, first match smaller (down) or default. */
|
|
10
|
-
smaller = 1,
|
|
11
|
-
/** Indicates that size matches when exact match, first match larger (up) or default. */
|
|
12
|
-
larger = 2,
|
|
13
|
-
/** Indicates that size matches when exact match, or it tries both smaller/larger (smaller is preferred) until match or default. */
|
|
14
|
-
closestSmallerFirst = 3,
|
|
15
|
-
/** Indicates that size matches when exact match, or it tries both larger/smaller (larger is preferred) until match or default. */
|
|
16
|
-
closestLargerFirst = 4
|
|
17
|
-
}
|
|
18
|
-
export type ViewportDataMatchStrategyLiteral = keyof typeof ViewportDataMatchStrategy;
|
|
19
|
-
export interface ViewportDataMatcher<T = unknown> {
|
|
20
|
-
(dataConfig: ViewportDataConfig<T>, currentSizeType: ViewportSizeTypeInfo, sizeTypes: ViewportSizeTypeInfo[], sizeTypeMap: Dictionary<ViewportSizeTypeInfo>): T | undefined;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Utility function to match data based on strategy and size.
|
|
24
|
-
*
|
|
25
|
-
* @param dataConfig Data config to generate rules based on.
|
|
26
|
-
* @param sizeType Size type to get data for.
|
|
27
|
-
* @param strategy Strategy to use when building rules.
|
|
28
|
-
* @param sizeTypes Available size types ordered by index type. (Can be obtained from `ViewportService`)
|
|
29
|
-
* @param sizeTypeMap Available size type map. (Can be obtained from `ViewportService`)
|
|
30
|
-
* @returns Returns the matched data value.
|
|
31
|
-
*/
|
|
32
|
-
export declare function matchViewportData<T>(dataConfig: ViewportDataConfig<T>, sizeType: ViewportSizeTypeInfo, strategy: ViewportDataMatchStrategy, sizeTypes: ViewportSizeTypeInfo[], sizeTypeMap: Dictionary<ViewportSizeTypeInfo>): T | undefined;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { PipeTransform, OnDestroy, ChangeDetectorRef } from "@angular/core";
|
|
2
|
-
import { ViewportDataConfig, ViewportDataMatchStrategyLiteral } from "./viewport-data-matcher";
|
|
3
|
-
import { ViewportDataService } from "./viewport-data.service";
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class ViewportDataPipe implements PipeTransform, OnDestroy {
|
|
6
|
-
private viewportData;
|
|
7
|
-
private cdr;
|
|
8
|
-
private markForTransform;
|
|
9
|
-
private value;
|
|
10
|
-
private data;
|
|
11
|
-
private strategy;
|
|
12
|
-
private data$$;
|
|
13
|
-
constructor(viewportData: ViewportDataService, cdr: ChangeDetectorRef);
|
|
14
|
-
transform(data: ViewportDataConfig, strategy: ViewportDataMatchStrategyLiteral): unknown;
|
|
15
|
-
ngOnDestroy(): void;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ViewportDataPipe, never>;
|
|
17
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<ViewportDataPipe, "ssvViewportData", true>;
|
|
18
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Observable } from "rxjs";
|
|
2
|
-
import { ViewportSizeTypeInfo } from "../viewport.model";
|
|
3
|
-
import { ViewportDataConfig, ViewportDataMatchStrategy } from "./viewport-data-matcher";
|
|
4
|
-
import { ViewportDataRule } from "./viewport-data.utils";
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class ViewportDataService {
|
|
7
|
-
#private;
|
|
8
|
-
/** Get data for match. */
|
|
9
|
-
get<T>(dataConfig: ViewportDataConfig<T>, strategy?: ViewportDataMatchStrategy, sizeType?: ViewportSizeTypeInfo): T | undefined;
|
|
10
|
-
/** Get data for match as observable. */
|
|
11
|
-
get$<T>(dataConfig: ViewportDataConfig<T>, strategy?: ViewportDataMatchStrategy, throttle?: boolean): Observable<T | undefined>;
|
|
12
|
-
/** Generate rules based on strategies for data. */
|
|
13
|
-
generateRules<T>(dataConfig: ViewportDataConfig<T>, strategy?: ViewportDataMatchStrategy): ViewportDataRule<T>[];
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ViewportDataService, never>;
|
|
15
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ViewportDataService>;
|
|
16
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Dictionary } from "../../internal/internal.model";
|
|
2
|
-
import { ViewportSizeTypeInfo } from "../viewport.model";
|
|
3
|
-
import { ViewportDataConfig, ViewportDataMatchStrategy } from "./viewport-data-matcher";
|
|
4
|
-
export interface ViewportDataRule<T> {
|
|
5
|
-
min?: number;
|
|
6
|
-
max?: number;
|
|
7
|
-
value: T;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Utility function to generate rules based on strategies.
|
|
11
|
-
*
|
|
12
|
-
* @param dataConfig Data config to generate rules based on.
|
|
13
|
-
* @param strategy Strategy to use when building rules.
|
|
14
|
-
* @param sizeTypes Available size types ordered by index type. (Can be obtained from `ViewportService`)
|
|
15
|
-
* @param sizeTypeMap Available size type map. (Can be obtained from `ViewportService`)
|
|
16
|
-
* @returns Returns a collection of rules (ordered).
|
|
17
|
-
*/
|
|
18
|
-
export declare function generateViewportRulesRangeFromDataMatcher<T>(dataConfig: ViewportDataConfig<T>, strategy: ViewportDataMatchStrategy, sizeTypes: ViewportSizeTypeInfo[], sizeTypeMap: Dictionary<ViewportSizeTypeInfo>): ViewportDataRule<T>[];
|
|
19
|
-
export interface ViewportRuleRangeBuilder<T = unknown> {
|
|
20
|
-
(rule: ViewportDataRule<T>, dataSize: ViewportSizeTypeInfo, nextDataSize: ViewportSizeTypeInfo | undefined, prevDataSize: ViewportSizeTypeInfo | undefined, prevSize: ViewportSizeTypeInfo | undefined, prevRule: ViewportDataRule<T> | undefined, sizeTypes: ViewportSizeTypeInfo[]): void;
|
|
21
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { OnInit, OnDestroy, TemplateRef, ViewContainerRef } from "@angular/core";
|
|
2
|
-
import { ViewportService } from "./viewport.service";
|
|
3
|
-
import { ViewportSizeMatcherExpression } from "./viewport.model";
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class SsvViewportMatcherVarContext {
|
|
6
|
-
$implicit: boolean;
|
|
7
|
-
constructor($implicit?: boolean);
|
|
8
|
-
}
|
|
9
|
-
export declare class SsvViewportMatcherVarDirective implements OnInit, OnDestroy {
|
|
10
|
-
private viewport;
|
|
11
|
-
private viewContainer;
|
|
12
|
-
private templateRef;
|
|
13
|
-
private _matchConditions;
|
|
14
|
-
private _context;
|
|
15
|
-
private readonly _destroy$;
|
|
16
|
-
private readonly _update$;
|
|
17
|
-
private _viewRef;
|
|
18
|
-
set condition(value: string | string[] | ViewportSizeMatcherExpression);
|
|
19
|
-
constructor(viewport: ViewportService, viewContainer: ViewContainerRef, templateRef: TemplateRef<SsvViewportMatcherVarContext>);
|
|
20
|
-
ngOnInit(): void;
|
|
21
|
-
ngOnDestroy(): void;
|
|
22
|
-
private updateView;
|
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SsvViewportMatcherVarDirective, never>;
|
|
24
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<SsvViewportMatcherVarDirective, "[ssvViewportMatcherVar]", never, { "condition": { "alias": "ssvViewportMatcherVarWhen"; "required": false; }; }, {}, never, never, true, never>;
|
|
25
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { OnInit, OnDestroy, Renderer2, ViewContainerRef, TemplateRef, ChangeDetectorRef } from "@angular/core";
|
|
2
|
-
import { ViewportService } from "./viewport.service";
|
|
3
|
-
import { ViewportSizeTypeInfo, ViewportMatchConditions, ViewportSizeMatcherExpression } from "./viewport.model";
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class SsvViewportMatcherContext implements ViewportMatchConditions {
|
|
6
|
-
sizeType: string | string[] | null;
|
|
7
|
-
sizeTypeExclude: string | string[] | null;
|
|
8
|
-
expression?: ViewportSizeMatcherExpression;
|
|
9
|
-
}
|
|
10
|
-
export declare class SsvViewportMatcherDirective implements OnInit, OnDestroy {
|
|
11
|
-
private viewport;
|
|
12
|
-
private renderer;
|
|
13
|
-
private viewContainer;
|
|
14
|
-
private cdr;
|
|
15
|
-
sizeInfo: ViewportSizeTypeInfo | undefined;
|
|
16
|
-
private _context;
|
|
17
|
-
private _thenTemplateRef;
|
|
18
|
-
private _elseTemplateRef;
|
|
19
|
-
private _thenViewRef;
|
|
20
|
-
private _elseViewRef;
|
|
21
|
-
private sizeType$$;
|
|
22
|
-
private cssClass$$;
|
|
23
|
-
private readonly _update$;
|
|
24
|
-
set ssvViewportMatcher(value: string | string[] | ViewportSizeMatcherExpression);
|
|
25
|
-
set ssvViewportMatcherExclude(value: string | string[]);
|
|
26
|
-
set ssvViewportMatcherElse(templateRef: TemplateRef<SsvViewportMatcherContext> | null);
|
|
27
|
-
constructor(viewport: ViewportService, renderer: Renderer2, viewContainer: ViewContainerRef, cdr: ChangeDetectorRef, templateRef: TemplateRef<SsvViewportMatcherContext>);
|
|
28
|
-
ngOnInit(): void;
|
|
29
|
-
ngOnDestroy(): void;
|
|
30
|
-
private _updateView;
|
|
31
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SsvViewportMatcherDirective, never>;
|
|
32
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<SsvViewportMatcherDirective, "[ssvViewportMatcher]", ["ssvViewportMatcher"], { "ssvViewportMatcher": { "alias": "ssvViewportMatcher"; "required": false; }; "ssvViewportMatcherExclude": { "alias": "ssvViewportMatcherExclude"; "required": false; }; "ssvViewportMatcherElse": { "alias": "ssvViewportMatcherElse"; "required": false; }; }, {}, never, never, true, never>;
|
|
33
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from "@angular/core";
|
|
2
|
-
import { DeviceType, ViewportSize } from "./viewport.model";
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare const VIEWPORT_SSR_DEVICE: InjectionToken<DeviceType>;
|
|
5
|
-
export declare class ViewportServerSizeService {
|
|
6
|
-
private readonly deviceType;
|
|
7
|
-
get(): ViewportSize;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ViewportServerSizeService, never>;
|
|
9
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ViewportServerSizeService>;
|
|
10
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The indices of each breakpoint provided based on the `UX_VIEWPORT_DEFAULT_BREAKPOINTS`.
|
|
3
|
-
* @see UX_VIEWPORT_DEFAULT_BREAKPOINTS
|
|
4
|
-
*/
|
|
5
|
-
export declare enum ViewportSizeType {
|
|
6
|
-
xsmall = 0,
|
|
7
|
-
small = 1,
|
|
8
|
-
medium = 2,
|
|
9
|
-
large = 3,
|
|
10
|
-
xlarge = 4,
|
|
11
|
-
xxlarge = 5,
|
|
12
|
-
xxlarge1 = 6
|
|
13
|
-
}
|
|
14
|
-
export declare enum ComparisonOperation {
|
|
15
|
-
equals = "=",
|
|
16
|
-
notEquals = "<>",
|
|
17
|
-
lessThan = "<",
|
|
18
|
-
lessOrEqualThan = "<=",
|
|
19
|
-
greaterThan = ">",
|
|
20
|
-
greaterOrEqualThan = ">="
|
|
21
|
-
}
|
|
22
|
-
export type ComparisonOperationKeyType = keyof typeof ComparisonOperation;
|
|
23
|
-
export type ComparisonOperationValueType = "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
24
|
-
export type ComparisonOperationLiteral = ComparisonOperationKeyType | ComparisonOperationValueType;
|
|
25
|
-
export declare enum DeviceType {
|
|
26
|
-
desktop = "desktop",
|
|
27
|
-
mobile = "mobile",
|
|
28
|
-
tablet = "tablet"
|
|
29
|
-
}
|
|
30
|
-
export interface ViewportSize {
|
|
31
|
-
width: number;
|
|
32
|
-
height: number;
|
|
33
|
-
}
|
|
34
|
-
export interface ViewportSizeTypeInfo {
|
|
35
|
-
type: number;
|
|
36
|
-
name: string;
|
|
37
|
-
widthThreshold: number;
|
|
38
|
-
}
|
|
39
|
-
export interface ViewportMatchConditions {
|
|
40
|
-
sizeType?: string | string[] | null;
|
|
41
|
-
sizeTypeExclude?: string | string[] | null;
|
|
42
|
-
expression?: ViewportSizeMatcherExpression;
|
|
43
|
-
}
|
|
44
|
-
export interface ViewportSizeMatcherExpression {
|
|
45
|
-
size: string;
|
|
46
|
-
operation: ComparisonOperationLiteral;
|
|
47
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./viewport-matcher.directive";
|
|
3
|
-
import * as i2 from "./viewport-matcher-var.directive";
|
|
4
|
-
import * as i3 from "./viewport-data/viewport-data.pipe";
|
|
5
|
-
export declare class SsvUxViewportModule {
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SsvUxViewportModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SsvUxViewportModule, never, [typeof i1.SsvViewportMatcherDirective, typeof i2.SsvViewportMatcherVarDirective, typeof i3.ViewportDataPipe], [typeof i1.SsvViewportMatcherDirective, typeof i2.SsvViewportMatcherVarDirective, typeof i3.ViewportDataPipe]>;
|
|
8
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<SsvUxViewportModule>;
|
|
9
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { type EnvironmentProviders, InjectionToken } from "@angular/core";
|
|
2
|
-
import type { Dictionary } from "../internal/internal.model";
|
|
3
|
-
import { ViewportDataMatchStrategy } from "./viewport-data/viewport-data-matcher";
|
|
4
|
-
import { DeviceType } from "./viewport.model";
|
|
5
|
-
/** Default viewport breakpoints. */
|
|
6
|
-
export declare const UX_VIEWPORT_DEFAULT_BREAKPOINTS: Dictionary<number>;
|
|
7
|
-
export interface UxViewportOptions {
|
|
8
|
-
/** Polling speed on resizing (in milliseconds). e.g. the higher the number the longer it takes to recalculate. */
|
|
9
|
-
resizePollingSpeed: number;
|
|
10
|
-
/** Breakpoints to use. Key needs to match the size type and the value the width threshold.
|
|
11
|
-
* e.g. given width '1000' and `medium` is set to '992' => `large`.
|
|
12
|
-
*/
|
|
13
|
-
breakpoints: Dictionary<number>;
|
|
14
|
-
/** Default data match strategy to use. */
|
|
15
|
-
defaultDataMatchStrategy: ViewportDataMatchStrategy;
|
|
16
|
-
}
|
|
17
|
-
export declare const VIEWPORT_OPTIONS: InjectionToken<UxViewportOptions>;
|
|
18
|
-
export declare function provideSsvUxViewportOptions(options: Partial<UxViewportOptions> | ((defaults: Readonly<UxViewportOptions>) => Partial<UxViewportOptions>), ...features: EnvironmentProviders[]): EnvironmentProviders;
|
|
19
|
-
export declare function withViewportSsrDevice(options: DeviceType | (() => DeviceType)): EnvironmentProviders;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { Signal } from "@angular/core";
|
|
2
|
-
import { Observable } from "rxjs";
|
|
3
|
-
import { ViewportSizeTypeInfo, ViewportSize } from "./viewport.model";
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class ViewportService {
|
|
6
|
-
#private;
|
|
7
|
-
/** Viewport size types list ordered by type, smallest to largest. */
|
|
8
|
-
readonly sizeTypes: ViewportSizeTypeInfo[];
|
|
9
|
-
/** Size types refs of the generated viewport size type info. */
|
|
10
|
-
readonly sizeTypeMap: import("../internal/internal.model").Dictionary<ViewportSizeTypeInfo>;
|
|
11
|
-
/** Viewport size signal (which is also throttled). */
|
|
12
|
-
readonly viewportSize: Signal<ViewportSize>;
|
|
13
|
-
/** Viewport size type signal (which is also throttled). */
|
|
14
|
-
readonly sizeType: Signal<ViewportSizeTypeInfo>;
|
|
15
|
-
/** Window resize observable. */
|
|
16
|
-
readonly resizeSnap$: Observable<ViewportSize>;
|
|
17
|
-
/** Window resize observable (which is also throttled). */
|
|
18
|
-
readonly resize$: Observable<ViewportSize>;
|
|
19
|
-
/** Viewport size type observable (which is also throttled). */
|
|
20
|
-
readonly sizeType$: Observable<ViewportSizeTypeInfo>;
|
|
21
|
-
/** Viewport size type observable. */
|
|
22
|
-
readonly sizeTypeSnap$: Observable<ViewportSizeTypeInfo>;
|
|
23
|
-
/** Viewport size type snapshot of the last value. (Prefer use `sizeType$` observable when possible.) */
|
|
24
|
-
get sizeTypeSnapshot(): ViewportSizeTypeInfo;
|
|
25
|
-
/** Viewport size observable (which is also throttled). */
|
|
26
|
-
readonly size$: Observable<ViewportSize>;
|
|
27
|
-
/** Viewport size observable. */
|
|
28
|
-
readonly sizeSnap$: Observable<ViewportSize>;
|
|
29
|
-
constructor();
|
|
30
|
-
/** Returns the current viewport size */
|
|
31
|
-
private getViewportSize;
|
|
32
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ViewportService, never>;
|
|
33
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ViewportService>;
|
|
34
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Dictionary } from "../internal/internal.model";
|
|
2
|
-
import { ComparisonOperation, ViewportSizeMatcherExpression, ViewportSizeTypeInfo, ViewportMatchConditions } from "./viewport.model";
|
|
3
|
-
export declare function isViewportSizeMatcherExpression(value: unknown): value is ViewportSizeMatcherExpression;
|
|
4
|
-
export declare function isViewportSizeMatcherTupleExpression(arg: unknown): arg is [ComparisonOperation, string];
|
|
5
|
-
export declare const COMPARISON_OPERATION_FUNC_MAPPING: Dictionary<(a: number, b: number) => boolean>;
|
|
6
|
-
export declare function isViewportConditionMatch(evaluateSize: ViewportSizeTypeInfo, conditions: ViewportMatchConditions, viewportSizeTypeInfoRefs: Dictionary<ViewportSizeTypeInfo>): boolean;
|
|
7
|
-
export declare function getSizeTypeInfo(width: number, sizeTypes: ViewportSizeTypeInfo[]): ViewportSizeTypeInfo;
|
|
8
|
-
/**
|
|
9
|
-
* A util function which generates the ViewportSizeTypeInfo.type for each breakpoint.
|
|
10
|
-
* @param breakpoints the custom breakpoints
|
|
11
|
-
*/
|
|
12
|
-
export declare function generateViewportSizeType<T extends Record<string, number>>(breakpoints: T): T & Record<number, string>;
|
|
13
|
-
/**
|
|
14
|
-
* Pre-processes the given breakpoints into an ordered list from smallest to largest while generating
|
|
15
|
-
* all the necessary information on the viewport.
|
|
16
|
-
* @param breakpoints the breakpoints obtained from the config
|
|
17
|
-
* @internal
|
|
18
|
-
*/
|
|
19
|
-
export declare function generateViewportSizeTypeInfoList(breakpoints: Dictionary<number>): ViewportSizeTypeInfo[];
|
|
20
|
-
/**
|
|
21
|
-
* Converts the breakpoint list into a dictionary while using the name as key.
|
|
22
|
-
* @param breakpointList the list of breakpoints
|
|
23
|
-
* @internal
|
|
24
|
-
*/
|
|
25
|
-
export declare function generateViewportSizeTypeInfoRefs(breakpointList: ViewportSizeTypeInfo[]): Dictionary<ViewportSizeTypeInfo>;
|