@arcgis/common-components 5.0.0-next.135 → 5.0.0-next.137
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/cdn/{O63ZTZG5.js → 2CMN2PLW.js} +2 -2
- package/dist/cdn/{QEMZUVQL.js → 3D5FKOXY.js} +2 -2
- package/dist/cdn/{XVOXEDSL.js → 43YNUTPG.js} +2 -2
- package/dist/cdn/{RNS5S5UL.js → 4I34IC6Q.js} +2 -2
- package/dist/cdn/{BXXIZYBD.js → 5CDET57O.js} +2 -2
- package/dist/cdn/{5Z2QK75J.js → 6DBUX6JF.js} +1 -1
- package/dist/cdn/ACOIQKWZ.js +6 -0
- package/dist/cdn/{K3LTU64J.js → BAXXL46B.js} +2 -2
- package/dist/cdn/{FREENMNZ.js → CMYVMNBW.js} +2 -2
- package/dist/cdn/{BAEY2UNC.js → ENYQISNB.js} +2 -2
- package/dist/cdn/{IGSEZSZY.js → GTFPNZX7.js} +2 -2
- package/dist/cdn/{LC3J3GLV.js → HRF4HSM5.js} +2 -2
- package/dist/cdn/{LNDXDU5Z.js → IC6DINF6.js} +123 -123
- package/dist/cdn/{4JREURGY.js → KY3QFUVB.js} +2 -2
- package/dist/cdn/{RD2QMBYZ.js → KYBEHVPR.js} +2 -2
- package/dist/cdn/{Y2EXN4GQ.js → L63ONHBD.js} +2 -2
- package/dist/cdn/{C2DNC2YJ.js → NFPYN5F7.js} +1 -1
- package/dist/cdn/{SYONVE3P.js → OGEHJX2A.js} +2 -2
- package/dist/cdn/{62JZVUW3.js → R4UCTMNW.js} +2 -2
- package/dist/cdn/{G7BIJSLP.js → ROYSN427.js} +2 -2
- package/dist/cdn/{3CIN6YRD.js → X5QI7LLG.js} +1 -1
- package/dist/cdn/{JVNYGVN3.js → YAIYR7HY.js} +2 -2
- package/dist/cdn/{ZDJE23FU.js → YJBSULAA.js} +2 -2
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/commonFunctions.js +1 -1
- package/dist/chunks/resources.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/types.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/components/arcgis-ckeditor5/customElement.d.ts +94 -98
- package/dist/components/arcgis-ckeditor5/customElement.js +6887 -7708
- package/dist/components/arcgis-ckeditor5/types.d.ts +4 -7
- package/dist/components/arcgis-ckeditor5-popover/customElement.d.ts +37 -38
- package/dist/components/arcgis-ckeditor5-popover/customElement.js +2 -2
- package/dist/components/arcgis-ckeditor5-popover/index.d.ts +0 -2
- package/dist/components/arcgis-color-input/customElement.d.ts +105 -82
- package/dist/components/arcgis-color-input/customElement.js +1 -1
- package/dist/components/arcgis-color-input/index.d.ts +0 -5
- package/dist/components/arcgis-field-info/customElement.d.ts +204 -41
- package/dist/components/arcgis-field-info/customElement.js +1 -1
- package/dist/components/arcgis-field-info/utils/basic.d.ts +2 -36
- package/dist/components/arcgis-field-pick-list/customElement.d.ts +196 -170
- package/dist/components/arcgis-field-pick-list/customElement.js +1 -1
- package/dist/components/arcgis-field-pick-list/index.d.ts +0 -13
- package/dist/components/arcgis-field-pick-list/utils/types.d.ts +2 -1
- package/dist/components/arcgis-histogram/customElement.d.ts +206 -195
- package/dist/components/arcgis-histogram/customElement.js +1 -1
- package/dist/components/arcgis-histogram/types.d.ts +22 -30
- package/dist/components/arcgis-label-input/customElement.d.ts +46 -45
- package/dist/components/arcgis-label-input/customElement.js +1 -1
- package/dist/components/arcgis-label-input/index.d.ts +0 -2
- package/dist/components/arcgis-picker-input/customElement.d.ts +41 -41
- package/dist/components/arcgis-picker-input/customElement.js +2 -2
- package/dist/components/arcgis-picker-input/index.d.ts +0 -4
- package/dist/components/arcgis-ramp-color/customElement.d.ts +16 -17
- package/dist/components/arcgis-ramp-color/customElement.js +1 -1
- package/dist/components/arcgis-ramp-color-break/customElement.d.ts +17 -18
- package/dist/components/arcgis-ramp-color-break/customElement.js +1 -1
- package/dist/components/arcgis-ramp-color-break/index.d.ts +0 -1
- package/dist/components/arcgis-ramp-opacity/customElement.d.ts +16 -18
- package/dist/components/arcgis-ramp-opacity/customElement.js +1 -1
- package/dist/components/arcgis-ramp-opacity/index.d.ts +0 -1
- package/dist/components/arcgis-slider/customElement.d.ts +287 -287
- package/dist/components/arcgis-slider/customElement.js +1 -1
- package/dist/components/arcgis-slider/index.d.ts +0 -2
- package/dist/components/arcgis-slider-input/customElement.d.ts +57 -58
- package/dist/components/arcgis-slider-input/customElement.js +1 -1
- package/dist/components/arcgis-slider-input/index.d.ts +0 -2
- package/dist/components/arcgis-ticks/customElement.d.ts +99 -94
- package/dist/components/arcgis-ticks/customElement.js +1 -1
- package/dist/components/arcgis-unique-values-list/customElement.d.ts +106 -89
- package/dist/components/arcgis-unique-values-list/customElement.js +1 -1
- package/dist/components/arcgis-unique-values-list/index.d.ts +0 -7
- package/dist/components/arcgis-unique-values-list/utils/basic.d.ts +2 -9
- package/dist/docs/api.json +1 -7276
- package/dist/docs/docs.json +1 -6072
- package/dist/docs/vscode.css-custom-data.json +1 -27
- package/dist/docs/vscode.html-custom-data.json +1 -1185
- package/dist/docs/web-types.json +1 -2387
- package/dist/index.d.ts +30 -23
- package/dist/index.js +1 -1
- package/dist/loader.js +11 -11
- package/dist/types/lumina.d.ts +54 -54
- package/dist/types/preact.d.ts +54 -54
- package/dist/types/react.d.ts +54 -54
- package/dist/types/stencil.d.ts +54 -54
- package/dist/utils/types.d.ts +33 -29
- package/package.json +6 -4
- package/dist/cdn/ZMDBYWZB.js +0 -6
- package/dist/components/arcgis-ckeditor5/resources.d.ts +0 -9
- package/dist/components/arcgis-field-info/utils/feature.d.ts +0 -21
- package/dist/components/arcgis-field-info/utils/field.d.ts +0 -30
- package/dist/components/arcgis-field-info/utils/index.d.ts +0 -3
- package/dist/components/arcgis-histogram/css.d.ts +0 -8
- package/dist/components/arcgis-histogram/histogramSample.d.ts +0 -25
- package/dist/components/arcgis-histogram/utils.d.ts +0 -19
- package/dist/components/arcgis-slider/SliderData.d.ts +0 -37
- package/dist/components/arcgis-slider/stepsUtils.d.ts +0 -52
- package/dist/components/arcgis-ticks/css.d.ts +0 -11
- package/dist/components/arcgis-unique-values-list/utils/date.d.ts +0 -7
- package/dist/components/arcgis-unique-values-list/utils/domain.d.ts +0 -5
- package/dist/components/arcgis-unique-values-list/utils/field.d.ts +0 -3
- package/dist/components/arcgis-unique-values-list/utils/index.d.ts +0 -4
- package/dist/controllers/useT9n.d.ts +0 -1
- package/dist/runtime.d.ts +0 -6
- package/dist/utils/commonFunctions.d.ts +0 -28
- package/dist/utils/dom.d.ts +0 -7
- package/dist/utils/functional.d.ts +0 -16
- package/dist/utils/functionalComponents/FieldIcons.d.ts +0 -6
- package/dist/utils/storage.d.ts +0 -3
- package/dist/utils/style.d.ts +0 -1
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/// <reference types="@arcgis/core/interfaces.d.ts" />
|
|
2
|
-
import { ComponentProps, CompFieldInfo } from './';
|
|
3
|
-
export type StatisticsResult = __esri.SummaryStatisticsResult & {
|
|
4
|
-
totalCount: number;
|
|
5
|
-
};
|
|
6
|
-
/**
|
|
7
|
-
* Returns additional field information from layer
|
|
8
|
-
*
|
|
9
|
-
* @param props - properties containing layer and fieldName
|
|
10
|
-
*/
|
|
11
|
-
export declare function getFieldInfo(props: ComponentProps): CompFieldInfo | undefined;
|
|
12
|
-
/**
|
|
13
|
-
* Returns feature count in layer
|
|
14
|
-
*
|
|
15
|
-
* @param props - properties containing layer and fieldName
|
|
16
|
-
*/
|
|
17
|
-
export declare function getFeatureCount(props: ComponentProps): Promise<number | undefined>;
|
|
18
|
-
/**
|
|
19
|
-
* Returns summary statistics
|
|
20
|
-
*
|
|
21
|
-
* @param props - properties containing layer and fieldName
|
|
22
|
-
*/
|
|
23
|
-
export declare function getStatistics(props: ComponentProps): Promise<StatisticsResult>;
|
|
24
|
-
/**
|
|
25
|
-
* Returns unique values
|
|
26
|
-
*
|
|
27
|
-
* @param props - properties containing layer and fieldName
|
|
28
|
-
*/
|
|
29
|
-
export declare function getUniqueValues(props: ComponentProps): Promise<__esri.UniqueValuesResult>;
|
|
30
|
-
export declare function getCodedValues(fieldName: string, props: ComponentProps): any;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { ArcgisHistogram } from './customElement.js';
|
|
2
|
-
export declare const histogramData: {
|
|
3
|
-
minValue: number;
|
|
4
|
-
maxValue: number;
|
|
5
|
-
normalizationTotal: null;
|
|
6
|
-
bins: {
|
|
7
|
-
minValue: number;
|
|
8
|
-
maxValue: number;
|
|
9
|
-
count: number;
|
|
10
|
-
}[];
|
|
11
|
-
};
|
|
12
|
-
export declare const histogramStats: {
|
|
13
|
-
min: number;
|
|
14
|
-
max: number;
|
|
15
|
-
avg: number;
|
|
16
|
-
stddev: number;
|
|
17
|
-
count: number;
|
|
18
|
-
sum: number;
|
|
19
|
-
variance: number;
|
|
20
|
-
median: number;
|
|
21
|
-
nullcount: number;
|
|
22
|
-
};
|
|
23
|
-
export declare const histogramColorStops: ArcgisHistogram["colorStops"];
|
|
24
|
-
export declare const histogramClassedColorStops: ArcgisHistogram["colorStops"];
|
|
25
|
-
export declare const histogramDataLines: ArcgisHistogram["dataLines"];
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { HistogramBin } from '@arcgis/core/smartMapping/statistics/types.js';
|
|
2
|
-
import { DataLine, HistogramColorStops, HistogramLayout, NormalizedHistogramColorStops, SymbolDataLine } from './types';
|
|
3
|
-
export declare function getRenderedBarsInfo(bins: HistogramBin[] | nullish, min: nullish | number, max: nullish | number, layout: HistogramLayout, containerDimensions: [number, number]): [number, number, number, number][] | nullish;
|
|
4
|
-
export declare function getRenderedDataLines(average: nullish | number, standardDeviation: nullish | number, min: nullish | number, max: nullish | number, dataLines: DataLine[] | nullish): (DataLine | SymbolDataLine)[];
|
|
5
|
-
export declare function getLinePosition(containerDimensions: [number, number], layout: HistogramLayout, min: nullish | number, range: number, value: number): (number | string)[];
|
|
6
|
-
export declare function getLabelPosition(containerDimensions: [number, number], layout: HistogramLayout, min: nullish | number, range: number, value: number): [number, number];
|
|
7
|
-
export declare function normalizeColorStops(colorStops: HistogramColorStops | nullish, defaultColor: string, selectedColor: string): NormalizedHistogramColorStops | nullish;
|
|
8
|
-
/**
|
|
9
|
-
* Get the color for a bin based on the provided color stops.
|
|
10
|
-
*
|
|
11
|
-
* @param colorStops - The color stops to use for the histogram.
|
|
12
|
-
* @param bin - The histogram bin to get the color for.
|
|
13
|
-
* @param defaultColor - The default color to use if no color stops are provided or if the bin does not match any color stop.
|
|
14
|
-
* @param colorBlendingEnabled - When true, overlapping classed color stops will be blended together.
|
|
15
|
-
* When false, the color with the most overlap will be used.
|
|
16
|
-
* If colorStops is not classed, this parameter is ignored.
|
|
17
|
-
* @returns - The color for the bin.
|
|
18
|
-
*/
|
|
19
|
-
export declare function getCSSColorMix(colorStops: NormalizedHistogramColorStops | nullish, bin: HistogramBin, defaultColor: string, colorBlendingEnabled: boolean): string;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { default as Accessor } from '@arcgis/core/core/Accessor.js';
|
|
2
|
-
import { UUID } from '@arcgis/toolkit/string';
|
|
3
|
-
type ConstructProperties = Partial<Pick<SliderData, "max" | "min" | "precision" | "values">>;
|
|
4
|
-
export declare class SliderData extends Accessor {
|
|
5
|
-
constructor(properties?: ConstructProperties);
|
|
6
|
-
startup(): void;
|
|
7
|
-
private _entries;
|
|
8
|
-
get entries(): ReadonlyMap<UUID, number>;
|
|
9
|
-
/**
|
|
10
|
-
* The maximum possible data/thumb value of the slider.
|
|
11
|
-
*/
|
|
12
|
-
set max(value: number);
|
|
13
|
-
/**
|
|
14
|
-
* The minimum possible data/thumb value of the slider.
|
|
15
|
-
*/
|
|
16
|
-
set min(value: number);
|
|
17
|
-
/**
|
|
18
|
-
* The number of decimal places to which the slider values are rounded.
|
|
19
|
-
* The default value is `4`.
|
|
20
|
-
*/
|
|
21
|
-
precision: number;
|
|
22
|
-
/** When `ready`, constraints apply to values when set. */
|
|
23
|
-
readonly ready: boolean;
|
|
24
|
-
set values(values: number[]);
|
|
25
|
-
getValue(entry: UUID): number | undefined;
|
|
26
|
-
/**
|
|
27
|
-
* Updates a thumb [value](#values) based on the provided index. The provided value
|
|
28
|
-
* must differ from the previous value.
|
|
29
|
-
* The provided value must also be between the [min](#min) and [max](#max).
|
|
30
|
-
*
|
|
31
|
-
* @returns `true` if the value was changed, otherwise `false`.
|
|
32
|
-
*/
|
|
33
|
-
setValue(entry: UUID, value: number): boolean;
|
|
34
|
-
setValues(entries: ReadonlyMap<UUID, number>): boolean;
|
|
35
|
-
private _updatesValues;
|
|
36
|
-
}
|
|
37
|
-
export {};
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { UUID } from '@arcgis/toolkit/string';
|
|
2
|
-
export interface StepsInfo {
|
|
3
|
-
min: number;
|
|
4
|
-
max: number;
|
|
5
|
-
steps?: number[] | number;
|
|
6
|
-
}
|
|
7
|
-
export interface StepsProvider {
|
|
8
|
-
minIndex: number;
|
|
9
|
-
maxIndex: number;
|
|
10
|
-
indexToValue: (index: number) => number;
|
|
11
|
-
valueToIndex: (value: number) => number;
|
|
12
|
-
}
|
|
13
|
-
export declare function createStepsProvider(info: StepsInfo): nullish | StepsProvider;
|
|
14
|
-
/**
|
|
15
|
-
* Snaps thumb values to the closest step values based on the provided steps provider.
|
|
16
|
-
*
|
|
17
|
-
* TODO: integrate a resolution parameter to control how many steps to consider.
|
|
18
|
-
* The resolution would depend on the size of the slider and the min/max range,
|
|
19
|
-
* as well as the displayMin and displayMax.
|
|
20
|
-
*/
|
|
21
|
-
export declare function offsetValues(stepsProvider: nullish | StepsProvider, entries: ReadonlyMap<UUID, number>, offset: number): Map<UUID, number>;
|
|
22
|
-
/**
|
|
23
|
-
* Snaps a single entry to the closest available step, avoiding conflicts with other entries.
|
|
24
|
-
*/
|
|
25
|
-
export declare function offsetValue(stepsProvider: nullish | StepsProvider, entries: ReadonlyMap<UUID, number>, entry: UUID, offset: number, allowValuesOverlap: boolean): number;
|
|
26
|
-
type Configuration = {
|
|
27
|
-
stepsProvider: nullish | StepsProvider;
|
|
28
|
-
resolution: number;
|
|
29
|
-
min: number;
|
|
30
|
-
max: number;
|
|
31
|
-
allowValuesOverlap: boolean;
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* Offsets all entries in the given direction, respecting the steps defined in the configuration.
|
|
35
|
-
*/
|
|
36
|
-
export declare function offsetEntriesInDirection(configuration: Configuration, entries: ReadonlyMap<UUID, number>, direction: number): {
|
|
37
|
-
changed: boolean;
|
|
38
|
-
entries: ReadonlyMap<UUID, number>;
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* Offsets an entry in the given direction, respecting the steps defined in the configuration.
|
|
42
|
-
*/
|
|
43
|
-
export declare function offsetEntryInDirection(configuration: Configuration, entries: ReadonlyMap<UUID, number>, entry: UUID, direction: number): number;
|
|
44
|
-
/**
|
|
45
|
-
* Offsets all entries to the minimum or maximum value, depending on the direction.
|
|
46
|
-
*/
|
|
47
|
-
export declare function offsetEntryToEnds(configuration: Configuration, entries: ReadonlyMap<UUID, number>, entry: UUID, direction: number): number;
|
|
48
|
-
/**
|
|
49
|
-
* Offsets all entries to the minimum or maximum value, depending on the direction.
|
|
50
|
-
*/
|
|
51
|
-
export declare function offsetEntriesToEnds(configuration: Configuration, entries: ReadonlyMap<UUID, number>, direction: number): ReadonlyMap<UUID, number>;
|
|
52
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const css: {
|
|
2
|
-
readonly container: "container";
|
|
3
|
-
readonly ticksContainer: "ticks-container";
|
|
4
|
-
readonly labelsContainer: "labels-container";
|
|
5
|
-
readonly tick: "tick";
|
|
6
|
-
readonly tickMin: "tick--min";
|
|
7
|
-
readonly tickMax: "tick--max";
|
|
8
|
-
readonly tickLabel: "tick-label";
|
|
9
|
-
readonly baseline: "baseline";
|
|
10
|
-
};
|
|
11
|
-
export type CSSClass = (typeof css)[keyof typeof css];
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="@arcgis/core/interfaces.d.ts" />
|
|
2
|
-
export declare function timeString24ToUnixTimestamp(timeString: string): number;
|
|
3
|
-
export declare function dateOnlyToUnixTimestamp(value: string): number;
|
|
4
|
-
export declare function getDateDisplayString(value: number, timeZone: string, dateFormat?: string): string;
|
|
5
|
-
export declare function getDateOnlyDisplayString(value: number | string): string;
|
|
6
|
-
export declare function getTimeOnlyDisplayString(value: number | string): string;
|
|
7
|
-
export declare function getTimestampOffsetString(value: number | string, view?: __esri.MapView | __esri.SceneView): string;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { CodedValueProperties } from '@arcgis/core/layers/support/CodedValue.js';
|
|
2
|
-
import { default as Field } from '@arcgis/core/layers/support/Field';
|
|
3
|
-
import { SupportedLayer } from './';
|
|
4
|
-
export declare function collectFieldDomains(layer: SupportedLayer, field: Field): CodedValueProperties[] | undefined;
|
|
5
|
-
export declare function getDecodedValue(value: number | string, fieldDomains: CodedValueProperties[]): number | string;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/// <reference types="@arcgis/core/interfaces.d.ts" />
|
|
2
|
-
export declare function isNumberType(field: __esri.Field): boolean;
|
|
3
|
-
export declare function getSimpleFieldType(field: __esri.Field): "date-only" | "date" | "number" | "string" | "time-only" | "timestamp-offset" | undefined;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useT9n: import('@arcgis/lumina/controllers').UseT9n;
|
package/dist/runtime.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const runtime: import('@arcgis/lumina').Runtime;
|
|
2
|
-
/**
|
|
3
|
-
* "customElement" needs to be exported - it will be used by the build system.
|
|
4
|
-
* You should not call it directly.
|
|
5
|
-
*/
|
|
6
|
-
export declare const customElement: (tagName: string, component: typeof import('@arcgis/lumina').LitElement) => void, getAssetPath: (suffix: string) => string, setAssetPath: (path: URL | string) => void;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/// <reference types="@arcgis/core/interfaces.d.ts" />
|
|
2
|
-
import { default as FeatureLayer } from '@arcgis/core/layers/FeatureLayer.js';
|
|
3
|
-
/**
|
|
4
|
-
* Returns true if the value is defined
|
|
5
|
-
*
|
|
6
|
-
* @param value - value to check
|
|
7
|
-
*/
|
|
8
|
-
export declare function isDefined<T>(value: T | null | undefined): value is T;
|
|
9
|
-
/**
|
|
10
|
-
* Find an element up the DOM tree.
|
|
11
|
-
* @param el - HTMLElement
|
|
12
|
-
* @param selector - Selector
|
|
13
|
-
*/
|
|
14
|
-
export declare function queryParentElement(el: HTMLElement | undefined, selector: string): HTMLElement | undefined;
|
|
15
|
-
/**
|
|
16
|
-
* Returns feature count of layer
|
|
17
|
-
* @param layer - FeatureLayer | WFSLayer | OGCFeatureLayer | StreamLayer | CSVLayer
|
|
18
|
-
* @param mapView - View
|
|
19
|
-
*/
|
|
20
|
-
export declare function getFeatureCount(layer: __esri.CatalogFootprintLayer | __esri.CatalogLayer | __esri.CSVLayer | __esri.FeatureLayer | __esri.GeoJSONLayer | __esri.KnowledgeGraphSublayer | __esri.OGCFeatureLayer | __esri.OrientedImageryLayer | __esri.SceneLayer | __esri.StreamLayer | __esri.Sublayer | __esri.SubtypeGroupLayer | __esri.SubtypeSublayer | __esri.WFSLayer, view?: __esri.View): Promise<number>;
|
|
21
|
-
/**
|
|
22
|
-
* Returns feature count of feature collection layer
|
|
23
|
-
* @param layer - FeatureLayer
|
|
24
|
-
*/
|
|
25
|
-
export declare function getFeatureCountForCollection(layer: __esri.FeatureLayer): Promise<number>;
|
|
26
|
-
export declare function supportsFieldConfiguration(layer: unknown): layer is FeatureLayer;
|
|
27
|
-
export declare function isFeatureLayer(layer: unknown): layer is FeatureLayer;
|
|
28
|
-
export declare function isFeatureServiceLayer(layer: any): layer is FeatureLayer;
|
package/dist/utils/dom.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Returns a parent element with that tag name or class name
|
|
3
|
-
* @param node - starting node
|
|
4
|
-
* @param tagName - tag name to find up the tree
|
|
5
|
-
* @param className - class name to find up the tree
|
|
6
|
-
*/
|
|
7
|
-
export declare function findParentNode(node: HTMLElement, tagName?: string, className?: string): HTMLElement | undefined;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Call a function only after it has not been called for n milliseconds
|
|
3
|
-
* @param fn - function to call
|
|
4
|
-
* @param delay - delay in milliseconds
|
|
5
|
-
*/
|
|
6
|
-
export declare const debounce: <F extends (...args: any[]) => any>(fn: F, delay: number) => {
|
|
7
|
-
(...args: Parameters<F>): Promise<ReturnType<F> | null>;
|
|
8
|
-
flush: (...args: Parameters<F>) => Promise<ReturnType<F> | null>;
|
|
9
|
-
invoke: (...args: Parameters<F>) => Promise<ReturnType<F> | null>;
|
|
10
|
-
cancel: (...args: Parameters<F>) => Promise<ReturnType<F> | null>;
|
|
11
|
-
getStatus: () => "pending" | "idle" | "cancelled" | "flushed" | "invoked";
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* Helper method to inline setTimeout as an await in async functions
|
|
15
|
-
*/
|
|
16
|
-
export declare function timeout(ms: number): Promise<unknown>;
|
package/dist/utils/storage.d.ts
DELETED
package/dist/utils/style.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function insertJsApiStylesheet(shadowRoot: ShadowRoot | null): void;
|