@emuanalytics/flow-rdf-ui 0.0.38 → 0.0.39
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/custom-elements.json +4372 -4369
- package/dist/index.cjs +837 -579
- package/dist/index.d.cts +107 -1
- package/dist/index.d.mts +107 -1
- package/dist/index.d.ts +107 -1
- package/dist/index.mjs +837 -580
- package/dist/vscode.html-custom-data.json +153 -153
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -4,6 +4,7 @@ import * as chartjs_chart_matrix from 'chartjs-chart-matrix';
|
|
|
4
4
|
import * as chart_js from 'chart.js';
|
|
5
5
|
import { Chart, ChartTypeRegistry, ChartOptions, ChartData, Plugin, ChartComponentLike } from 'chart.js';
|
|
6
6
|
export { Chart as ChartJs } from 'chart.js';
|
|
7
|
+
import { FlowMap } from '@emuanalytics/flow-rdf-core';
|
|
7
8
|
|
|
8
9
|
type EventTypeRequiresDetail<T> = T extends keyof GlobalEventHandlersEventMap ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, unknown>> ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, never>> ? never : Partial<GlobalEventHandlersEventMap[T]['detail']> extends GlobalEventHandlersEventMap[T]['detail'] ? never : T : never : never;
|
|
9
10
|
type EventTypeDoesNotRequireDetail<T> = T extends keyof GlobalEventHandlersEventMap ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, unknown>> ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, never>> ? T : Partial<GlobalEventHandlersEventMap[T]['detail']> extends GlobalEventHandlersEventMap[T]['detail'] ? T : never : T : T;
|
|
@@ -2302,6 +2303,111 @@ declare global {
|
|
|
2302
2303
|
}
|
|
2303
2304
|
}
|
|
2304
2305
|
|
|
2306
|
+
/**
|
|
2307
|
+
* This component wraps a `FlowMap` instance from the flow-rdf-core library and
|
|
2308
|
+
* provides access to its API.
|
|
2309
|
+
*
|
|
2310
|
+
* The `map` property provides direct access to the underlying `FlowMap` instance.
|
|
2311
|
+
*
|
|
2312
|
+
* The `initialized` property provides a promise that resolves to the `FlowMap` once
|
|
2313
|
+
* it has been initialized and is the safest way to access the map API.
|
|
2314
|
+
*
|
|
2315
|
+
* Convenience properties are provided for setting the base style, center, zoom, bearing, and pitch
|
|
2316
|
+
* of the map. These properties can be set to update the map or the `FlowMap` API can be used directly.
|
|
2317
|
+
*
|
|
2318
|
+
*
|
|
2319
|
+
* @tagname flow-ui-map
|
|
2320
|
+
* @summary Display a Flo.w map.
|
|
2321
|
+
*
|
|
2322
|
+
* @event flow-ui-load - Dispatched when the map is first initialized and has completed loading.
|
|
2323
|
+
*
|
|
2324
|
+
* @csspart base - The base element of the component.
|
|
2325
|
+
* @csspart busy-indicator - The busy indicator flow-ui-progress-bar.
|
|
2326
|
+
* @csspart control-container - The map control containers.
|
|
2327
|
+
* @csspart control-container--top-left - The top left control container element.
|
|
2328
|
+
* @csspart control-container--top-right - The top right control container element.
|
|
2329
|
+
* @csspart control-container--bottom-left - The bottom left control container element.
|
|
2330
|
+
* @csspart control-container--bottom-right - The bottom right control container element.
|
|
2331
|
+
*
|
|
2332
|
+
*/
|
|
2333
|
+
declare class FlowUiMap extends FlowRdfElement {
|
|
2334
|
+
static styles: CSSResultGroup;
|
|
2335
|
+
private _map?;
|
|
2336
|
+
private _initialized;
|
|
2337
|
+
private _resolveInitialized;
|
|
2338
|
+
private _mapLoading;
|
|
2339
|
+
/**
|
|
2340
|
+
* The map ID. If not provided, a unique ID will be generated.
|
|
2341
|
+
*/
|
|
2342
|
+
mapId: string;
|
|
2343
|
+
/**
|
|
2344
|
+
* The base style of the map.
|
|
2345
|
+
*/
|
|
2346
|
+
baseStyle: string;
|
|
2347
|
+
/**
|
|
2348
|
+
* The center of the map specified as a longitude and latitude pair.
|
|
2349
|
+
*
|
|
2350
|
+
* Alternatively, use the `setCenter` method to update the center of the map
|
|
2351
|
+
* with animation options.
|
|
2352
|
+
*/
|
|
2353
|
+
center: [number, number];
|
|
2354
|
+
/**
|
|
2355
|
+
* The zoom level of the map.
|
|
2356
|
+
*
|
|
2357
|
+
* Alternatively, use the `setCenter` method to update the center of the map
|
|
2358
|
+
* with animation options.
|
|
2359
|
+
*/
|
|
2360
|
+
zoom: number;
|
|
2361
|
+
/**
|
|
2362
|
+
* The bearing of the map.
|
|
2363
|
+
*
|
|
2364
|
+
* Alternatively, use the `setCenter` method to update the center of the map
|
|
2365
|
+
* with animation options.
|
|
2366
|
+
*/
|
|
2367
|
+
bearing: number;
|
|
2368
|
+
/**
|
|
2369
|
+
* The pitch of the map.
|
|
2370
|
+
*
|
|
2371
|
+
* Alternatively, use the `setCenter` method to update the center of the map
|
|
2372
|
+
* with animation options.
|
|
2373
|
+
*/
|
|
2374
|
+
pitch: number;
|
|
2375
|
+
/**
|
|
2376
|
+
* Set to `true` to show a busy indicator on the map.
|
|
2377
|
+
*
|
|
2378
|
+
* Note that the busy indicator will also be automatically be shown when the map
|
|
2379
|
+
* is loading data.
|
|
2380
|
+
*/
|
|
2381
|
+
busy: boolean;
|
|
2382
|
+
/**
|
|
2383
|
+
* The underlying core FlowMap instance. Note that this is
|
|
2384
|
+
* `undefined` until the map has been initialized.
|
|
2385
|
+
*/
|
|
2386
|
+
get map(): FlowMap | undefined;
|
|
2387
|
+
/**
|
|
2388
|
+
* A promise that resolves to a map instance when the map has been initialized.
|
|
2389
|
+
*
|
|
2390
|
+
* This is the safest way to retrieve the underlying core FlowMap instance before
|
|
2391
|
+
* using its API.
|
|
2392
|
+
*/
|
|
2393
|
+
get initialized(): Promise<FlowMap>;
|
|
2394
|
+
constructor();
|
|
2395
|
+
/** @internal */
|
|
2396
|
+
handleCenterChange(): void;
|
|
2397
|
+
/** @internal */
|
|
2398
|
+
handleBaseStyleChange(): void;
|
|
2399
|
+
connectedCallback(): Promise<void>;
|
|
2400
|
+
disconnectedCallback(): void;
|
|
2401
|
+
private initializeMap;
|
|
2402
|
+
render(): lit.TemplateResult<1>;
|
|
2403
|
+
}
|
|
2404
|
+
|
|
2405
|
+
declare global {
|
|
2406
|
+
interface HTMLElementTagNameMap {
|
|
2407
|
+
'flow-ui-map': FlowUiMap;
|
|
2408
|
+
}
|
|
2409
|
+
}
|
|
2410
|
+
|
|
2305
2411
|
/**
|
|
2306
2412
|
* @summary Menu labels are used to describe a group of menu items.
|
|
2307
2413
|
* @documentation https://developer.emu-analytics.net/docs/flow-ui-rdf/components/menu-label
|
|
@@ -4896,4 +5002,4 @@ declare function unregisterIconLibrary(name: string): void;
|
|
|
4896
5002
|
declare function setDefaultLocale(locale: string): void;
|
|
4897
5003
|
declare function setDefaultTimeZone(timeZone: string): void;
|
|
4898
5004
|
|
|
4899
|
-
export { BaseColorMapperField, BaseColorStopOptions, ColorMapperField, ColorMapperOptions, ColorMapperValue, ColorStopOptions, ColorStopValue, FlowAfterCollapseEvent, FlowAfterExpandEvent, FlowAfterHideEvent, FlowAfterShowEvent, FlowAlert, SlAnimation as FlowAnimation, FlowAvatar, FlowBadge, FlowBlurEvent, FlowBreadcrumb, FlowBreadcrumbItem, FlowButton, FlowButtonGroup, FlowCalendar, FlowCancelEvent, FlowCard, FlowCarousel, FlowCarouselItem, FlowChangeEvent, FlowChart, FlowCheckbox, FlowClearEvent, FlowCloseEvent, FlowCollapseEvent, FlowColorMapper, FlowColorPicker, FlowColorStopComponent as FlowColorStop, FlowDatetimePicker as FlowDateTimePicker, FlowDetails, FlowDialog, FlowDivider, FlowDragEndEvent, FlowDragEvent, FlowDragStartEvent, FlowDrawer, SlDropdown as FlowDropdown, FlowErrorEvent, FlowExpandEvent, FlowFinishEvent, FlowFocusEvent, FlowGauge, FlowHideEvent, FlowHoverEvent, FlowIcon, FlowIconButton, FlowInitialFocusEvent, FlowInput, FlowInputEvent, FlowInvalidEvent, FlowLazyChangeEvent, FlowLazyLoadEvent, FlowLoadEvent, FlowMenu, FlowMenuItem, FlowMenuLabel, FlowMutationEvent, FlowMutationObserver, FlowNumberStepper, FlowOption, FlowPanel, FlowPanelHeader, FlowPanelToggleEvent, SlPopup as FlowPopup, FlowProgressBar, FlowProgressRing, FlowQueryBuilder, FlowRadio, FlowRadioGroup, FlowRange, FlowRemoveEvent, FlowRepositionEvent, FlowRequestCloseEvent, FlowResizeEvent, FlowResizeObserver, FlowScrollView, FlowSelect, FlowSelectEvent, FlowSelectionChangeEvent, FlowShowEvent, FlowSlideChange, FlowSpinner, FlowSplitView, FlowPanelDivider as FlowSplitViewDivider, FlowSplitViewPane, FlowSplitViewToggleButton, FlowStartEvent, FlowStepper, FlowStepperPanel, FlowSwitch, FlowTab, FlowTabGroup, FlowTabHideEvent, FlowTabPanel, FlowTabShowEvent, FlowTag, FlowTextarea, FlowTimer, FlowToolButton, FlowToolButtonGroup, FlowTooltip, FlowTree, FlowTreeItem, FlowVisuallyHidden, NumberColorMapperField, NumberColorStopOptions, SelectColorMapperField, SelectColorStopOptions, StringColorMapperField, StringColorStopOptions, addIcons, colorMapperValueToMaplibreExpression, escapeMaplibreString, getAnimationNames, getBasePath, getEasingNames, initializeChartJs, registerChartComponent, registerIconLibrary, setBasePath, setDefaultLocale, setDefaultTimeZone, unregisterIconLibrary };
|
|
5005
|
+
export { BaseColorMapperField, BaseColorStopOptions, ColorMapperField, ColorMapperOptions, ColorMapperValue, ColorStopOptions, ColorStopValue, FlowAfterCollapseEvent, FlowAfterExpandEvent, FlowAfterHideEvent, FlowAfterShowEvent, FlowAlert, SlAnimation as FlowAnimation, FlowAvatar, FlowBadge, FlowBlurEvent, FlowBreadcrumb, FlowBreadcrumbItem, FlowButton, FlowButtonGroup, FlowCalendar, FlowCancelEvent, FlowCard, FlowCarousel, FlowCarouselItem, FlowChangeEvent, FlowChart, FlowCheckbox, FlowClearEvent, FlowCloseEvent, FlowCollapseEvent, FlowColorMapper, FlowColorPicker, FlowColorStopComponent as FlowColorStop, FlowDatetimePicker as FlowDateTimePicker, FlowDetails, FlowDialog, FlowDivider, FlowDragEndEvent, FlowDragEvent, FlowDragStartEvent, FlowDrawer, SlDropdown as FlowDropdown, FlowErrorEvent, FlowExpandEvent, FlowFinishEvent, FlowFocusEvent, FlowGauge, FlowHideEvent, FlowHoverEvent, FlowIcon, FlowIconButton, FlowInitialFocusEvent, FlowInput, FlowInputEvent, FlowInvalidEvent, FlowLazyChangeEvent, FlowLazyLoadEvent, FlowLoadEvent, FlowUiMap as FlowMap, FlowMenu, FlowMenuItem, FlowMenuLabel, FlowMutationEvent, FlowMutationObserver, FlowNumberStepper, FlowOption, FlowPanel, FlowPanelHeader, FlowPanelToggleEvent, SlPopup as FlowPopup, FlowProgressBar, FlowProgressRing, FlowQueryBuilder, FlowRadio, FlowRadioGroup, FlowRange, FlowRemoveEvent, FlowRepositionEvent, FlowRequestCloseEvent, FlowResizeEvent, FlowResizeObserver, FlowScrollView, FlowSelect, FlowSelectEvent, FlowSelectionChangeEvent, FlowShowEvent, FlowSlideChange, FlowSpinner, FlowSplitView, FlowPanelDivider as FlowSplitViewDivider, FlowSplitViewPane, FlowSplitViewToggleButton, FlowStartEvent, FlowStepper, FlowStepperPanel, FlowSwitch, FlowTab, FlowTabGroup, FlowTabHideEvent, FlowTabPanel, FlowTabShowEvent, FlowTag, FlowTextarea, FlowTimer, FlowToolButton, FlowToolButtonGroup, FlowTooltip, FlowTree, FlowTreeItem, FlowVisuallyHidden, NumberColorMapperField, NumberColorStopOptions, SelectColorMapperField, SelectColorStopOptions, StringColorMapperField, StringColorStopOptions, addIcons, colorMapperValueToMaplibreExpression, escapeMaplibreString, getAnimationNames, getBasePath, getEasingNames, initializeChartJs, registerChartComponent, registerIconLibrary, setBasePath, setDefaultLocale, setDefaultTimeZone, unregisterIconLibrary };
|
package/dist/index.d.mts
CHANGED
|
@@ -4,6 +4,7 @@ import * as chartjs_chart_matrix from 'chartjs-chart-matrix';
|
|
|
4
4
|
import * as chart_js from 'chart.js';
|
|
5
5
|
import { Chart, ChartTypeRegistry, ChartOptions, ChartData, Plugin, ChartComponentLike } from 'chart.js';
|
|
6
6
|
export { Chart as ChartJs } from 'chart.js';
|
|
7
|
+
import { FlowMap } from '@emuanalytics/flow-rdf-core';
|
|
7
8
|
|
|
8
9
|
type EventTypeRequiresDetail<T> = T extends keyof GlobalEventHandlersEventMap ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, unknown>> ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, never>> ? never : Partial<GlobalEventHandlersEventMap[T]['detail']> extends GlobalEventHandlersEventMap[T]['detail'] ? never : T : never : never;
|
|
9
10
|
type EventTypeDoesNotRequireDetail<T> = T extends keyof GlobalEventHandlersEventMap ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, unknown>> ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, never>> ? T : Partial<GlobalEventHandlersEventMap[T]['detail']> extends GlobalEventHandlersEventMap[T]['detail'] ? T : never : T : T;
|
|
@@ -2302,6 +2303,111 @@ declare global {
|
|
|
2302
2303
|
}
|
|
2303
2304
|
}
|
|
2304
2305
|
|
|
2306
|
+
/**
|
|
2307
|
+
* This component wraps a `FlowMap` instance from the flow-rdf-core library and
|
|
2308
|
+
* provides access to its API.
|
|
2309
|
+
*
|
|
2310
|
+
* The `map` property provides direct access to the underlying `FlowMap` instance.
|
|
2311
|
+
*
|
|
2312
|
+
* The `initialized` property provides a promise that resolves to the `FlowMap` once
|
|
2313
|
+
* it has been initialized and is the safest way to access the map API.
|
|
2314
|
+
*
|
|
2315
|
+
* Convenience properties are provided for setting the base style, center, zoom, bearing, and pitch
|
|
2316
|
+
* of the map. These properties can be set to update the map or the `FlowMap` API can be used directly.
|
|
2317
|
+
*
|
|
2318
|
+
*
|
|
2319
|
+
* @tagname flow-ui-map
|
|
2320
|
+
* @summary Display a Flo.w map.
|
|
2321
|
+
*
|
|
2322
|
+
* @event flow-ui-load - Dispatched when the map is first initialized and has completed loading.
|
|
2323
|
+
*
|
|
2324
|
+
* @csspart base - The base element of the component.
|
|
2325
|
+
* @csspart busy-indicator - The busy indicator flow-ui-progress-bar.
|
|
2326
|
+
* @csspart control-container - The map control containers.
|
|
2327
|
+
* @csspart control-container--top-left - The top left control container element.
|
|
2328
|
+
* @csspart control-container--top-right - The top right control container element.
|
|
2329
|
+
* @csspart control-container--bottom-left - The bottom left control container element.
|
|
2330
|
+
* @csspart control-container--bottom-right - The bottom right control container element.
|
|
2331
|
+
*
|
|
2332
|
+
*/
|
|
2333
|
+
declare class FlowUiMap extends FlowRdfElement {
|
|
2334
|
+
static styles: CSSResultGroup;
|
|
2335
|
+
private _map?;
|
|
2336
|
+
private _initialized;
|
|
2337
|
+
private _resolveInitialized;
|
|
2338
|
+
private _mapLoading;
|
|
2339
|
+
/**
|
|
2340
|
+
* The map ID. If not provided, a unique ID will be generated.
|
|
2341
|
+
*/
|
|
2342
|
+
mapId: string;
|
|
2343
|
+
/**
|
|
2344
|
+
* The base style of the map.
|
|
2345
|
+
*/
|
|
2346
|
+
baseStyle: string;
|
|
2347
|
+
/**
|
|
2348
|
+
* The center of the map specified as a longitude and latitude pair.
|
|
2349
|
+
*
|
|
2350
|
+
* Alternatively, use the `setCenter` method to update the center of the map
|
|
2351
|
+
* with animation options.
|
|
2352
|
+
*/
|
|
2353
|
+
center: [number, number];
|
|
2354
|
+
/**
|
|
2355
|
+
* The zoom level of the map.
|
|
2356
|
+
*
|
|
2357
|
+
* Alternatively, use the `setCenter` method to update the center of the map
|
|
2358
|
+
* with animation options.
|
|
2359
|
+
*/
|
|
2360
|
+
zoom: number;
|
|
2361
|
+
/**
|
|
2362
|
+
* The bearing of the map.
|
|
2363
|
+
*
|
|
2364
|
+
* Alternatively, use the `setCenter` method to update the center of the map
|
|
2365
|
+
* with animation options.
|
|
2366
|
+
*/
|
|
2367
|
+
bearing: number;
|
|
2368
|
+
/**
|
|
2369
|
+
* The pitch of the map.
|
|
2370
|
+
*
|
|
2371
|
+
* Alternatively, use the `setCenter` method to update the center of the map
|
|
2372
|
+
* with animation options.
|
|
2373
|
+
*/
|
|
2374
|
+
pitch: number;
|
|
2375
|
+
/**
|
|
2376
|
+
* Set to `true` to show a busy indicator on the map.
|
|
2377
|
+
*
|
|
2378
|
+
* Note that the busy indicator will also be automatically be shown when the map
|
|
2379
|
+
* is loading data.
|
|
2380
|
+
*/
|
|
2381
|
+
busy: boolean;
|
|
2382
|
+
/**
|
|
2383
|
+
* The underlying core FlowMap instance. Note that this is
|
|
2384
|
+
* `undefined` until the map has been initialized.
|
|
2385
|
+
*/
|
|
2386
|
+
get map(): FlowMap | undefined;
|
|
2387
|
+
/**
|
|
2388
|
+
* A promise that resolves to a map instance when the map has been initialized.
|
|
2389
|
+
*
|
|
2390
|
+
* This is the safest way to retrieve the underlying core FlowMap instance before
|
|
2391
|
+
* using its API.
|
|
2392
|
+
*/
|
|
2393
|
+
get initialized(): Promise<FlowMap>;
|
|
2394
|
+
constructor();
|
|
2395
|
+
/** @internal */
|
|
2396
|
+
handleCenterChange(): void;
|
|
2397
|
+
/** @internal */
|
|
2398
|
+
handleBaseStyleChange(): void;
|
|
2399
|
+
connectedCallback(): Promise<void>;
|
|
2400
|
+
disconnectedCallback(): void;
|
|
2401
|
+
private initializeMap;
|
|
2402
|
+
render(): lit.TemplateResult<1>;
|
|
2403
|
+
}
|
|
2404
|
+
|
|
2405
|
+
declare global {
|
|
2406
|
+
interface HTMLElementTagNameMap {
|
|
2407
|
+
'flow-ui-map': FlowUiMap;
|
|
2408
|
+
}
|
|
2409
|
+
}
|
|
2410
|
+
|
|
2305
2411
|
/**
|
|
2306
2412
|
* @summary Menu labels are used to describe a group of menu items.
|
|
2307
2413
|
* @documentation https://developer.emu-analytics.net/docs/flow-ui-rdf/components/menu-label
|
|
@@ -4896,4 +5002,4 @@ declare function unregisterIconLibrary(name: string): void;
|
|
|
4896
5002
|
declare function setDefaultLocale(locale: string): void;
|
|
4897
5003
|
declare function setDefaultTimeZone(timeZone: string): void;
|
|
4898
5004
|
|
|
4899
|
-
export { BaseColorMapperField, BaseColorStopOptions, ColorMapperField, ColorMapperOptions, ColorMapperValue, ColorStopOptions, ColorStopValue, FlowAfterCollapseEvent, FlowAfterExpandEvent, FlowAfterHideEvent, FlowAfterShowEvent, FlowAlert, SlAnimation as FlowAnimation, FlowAvatar, FlowBadge, FlowBlurEvent, FlowBreadcrumb, FlowBreadcrumbItem, FlowButton, FlowButtonGroup, FlowCalendar, FlowCancelEvent, FlowCard, FlowCarousel, FlowCarouselItem, FlowChangeEvent, FlowChart, FlowCheckbox, FlowClearEvent, FlowCloseEvent, FlowCollapseEvent, FlowColorMapper, FlowColorPicker, FlowColorStopComponent as FlowColorStop, FlowDatetimePicker as FlowDateTimePicker, FlowDetails, FlowDialog, FlowDivider, FlowDragEndEvent, FlowDragEvent, FlowDragStartEvent, FlowDrawer, SlDropdown as FlowDropdown, FlowErrorEvent, FlowExpandEvent, FlowFinishEvent, FlowFocusEvent, FlowGauge, FlowHideEvent, FlowHoverEvent, FlowIcon, FlowIconButton, FlowInitialFocusEvent, FlowInput, FlowInputEvent, FlowInvalidEvent, FlowLazyChangeEvent, FlowLazyLoadEvent, FlowLoadEvent, FlowMenu, FlowMenuItem, FlowMenuLabel, FlowMutationEvent, FlowMutationObserver, FlowNumberStepper, FlowOption, FlowPanel, FlowPanelHeader, FlowPanelToggleEvent, SlPopup as FlowPopup, FlowProgressBar, FlowProgressRing, FlowQueryBuilder, FlowRadio, FlowRadioGroup, FlowRange, FlowRemoveEvent, FlowRepositionEvent, FlowRequestCloseEvent, FlowResizeEvent, FlowResizeObserver, FlowScrollView, FlowSelect, FlowSelectEvent, FlowSelectionChangeEvent, FlowShowEvent, FlowSlideChange, FlowSpinner, FlowSplitView, FlowPanelDivider as FlowSplitViewDivider, FlowSplitViewPane, FlowSplitViewToggleButton, FlowStartEvent, FlowStepper, FlowStepperPanel, FlowSwitch, FlowTab, FlowTabGroup, FlowTabHideEvent, FlowTabPanel, FlowTabShowEvent, FlowTag, FlowTextarea, FlowTimer, FlowToolButton, FlowToolButtonGroup, FlowTooltip, FlowTree, FlowTreeItem, FlowVisuallyHidden, NumberColorMapperField, NumberColorStopOptions, SelectColorMapperField, SelectColorStopOptions, StringColorMapperField, StringColorStopOptions, addIcons, colorMapperValueToMaplibreExpression, escapeMaplibreString, getAnimationNames, getBasePath, getEasingNames, initializeChartJs, registerChartComponent, registerIconLibrary, setBasePath, setDefaultLocale, setDefaultTimeZone, unregisterIconLibrary };
|
|
5005
|
+
export { BaseColorMapperField, BaseColorStopOptions, ColorMapperField, ColorMapperOptions, ColorMapperValue, ColorStopOptions, ColorStopValue, FlowAfterCollapseEvent, FlowAfterExpandEvent, FlowAfterHideEvent, FlowAfterShowEvent, FlowAlert, SlAnimation as FlowAnimation, FlowAvatar, FlowBadge, FlowBlurEvent, FlowBreadcrumb, FlowBreadcrumbItem, FlowButton, FlowButtonGroup, FlowCalendar, FlowCancelEvent, FlowCard, FlowCarousel, FlowCarouselItem, FlowChangeEvent, FlowChart, FlowCheckbox, FlowClearEvent, FlowCloseEvent, FlowCollapseEvent, FlowColorMapper, FlowColorPicker, FlowColorStopComponent as FlowColorStop, FlowDatetimePicker as FlowDateTimePicker, FlowDetails, FlowDialog, FlowDivider, FlowDragEndEvent, FlowDragEvent, FlowDragStartEvent, FlowDrawer, SlDropdown as FlowDropdown, FlowErrorEvent, FlowExpandEvent, FlowFinishEvent, FlowFocusEvent, FlowGauge, FlowHideEvent, FlowHoverEvent, FlowIcon, FlowIconButton, FlowInitialFocusEvent, FlowInput, FlowInputEvent, FlowInvalidEvent, FlowLazyChangeEvent, FlowLazyLoadEvent, FlowLoadEvent, FlowUiMap as FlowMap, FlowMenu, FlowMenuItem, FlowMenuLabel, FlowMutationEvent, FlowMutationObserver, FlowNumberStepper, FlowOption, FlowPanel, FlowPanelHeader, FlowPanelToggleEvent, SlPopup as FlowPopup, FlowProgressBar, FlowProgressRing, FlowQueryBuilder, FlowRadio, FlowRadioGroup, FlowRange, FlowRemoveEvent, FlowRepositionEvent, FlowRequestCloseEvent, FlowResizeEvent, FlowResizeObserver, FlowScrollView, FlowSelect, FlowSelectEvent, FlowSelectionChangeEvent, FlowShowEvent, FlowSlideChange, FlowSpinner, FlowSplitView, FlowPanelDivider as FlowSplitViewDivider, FlowSplitViewPane, FlowSplitViewToggleButton, FlowStartEvent, FlowStepper, FlowStepperPanel, FlowSwitch, FlowTab, FlowTabGroup, FlowTabHideEvent, FlowTabPanel, FlowTabShowEvent, FlowTag, FlowTextarea, FlowTimer, FlowToolButton, FlowToolButtonGroup, FlowTooltip, FlowTree, FlowTreeItem, FlowVisuallyHidden, NumberColorMapperField, NumberColorStopOptions, SelectColorMapperField, SelectColorStopOptions, StringColorMapperField, StringColorStopOptions, addIcons, colorMapperValueToMaplibreExpression, escapeMaplibreString, getAnimationNames, getBasePath, getEasingNames, initializeChartJs, registerChartComponent, registerIconLibrary, setBasePath, setDefaultLocale, setDefaultTimeZone, unregisterIconLibrary };
|
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import * as chartjs_chart_matrix from 'chartjs-chart-matrix';
|
|
|
4
4
|
import * as chart_js from 'chart.js';
|
|
5
5
|
import { Chart, ChartTypeRegistry, ChartOptions, ChartData, Plugin, ChartComponentLike } from 'chart.js';
|
|
6
6
|
export { Chart as ChartJs } from 'chart.js';
|
|
7
|
+
import { FlowMap } from '@emuanalytics/flow-rdf-core';
|
|
7
8
|
|
|
8
9
|
type EventTypeRequiresDetail<T> = T extends keyof GlobalEventHandlersEventMap ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, unknown>> ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, never>> ? never : Partial<GlobalEventHandlersEventMap[T]['detail']> extends GlobalEventHandlersEventMap[T]['detail'] ? never : T : never : never;
|
|
9
10
|
type EventTypeDoesNotRequireDetail<T> = T extends keyof GlobalEventHandlersEventMap ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, unknown>> ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, never>> ? T : Partial<GlobalEventHandlersEventMap[T]['detail']> extends GlobalEventHandlersEventMap[T]['detail'] ? T : never : T : T;
|
|
@@ -2302,6 +2303,111 @@ declare global {
|
|
|
2302
2303
|
}
|
|
2303
2304
|
}
|
|
2304
2305
|
|
|
2306
|
+
/**
|
|
2307
|
+
* This component wraps a `FlowMap` instance from the flow-rdf-core library and
|
|
2308
|
+
* provides access to its API.
|
|
2309
|
+
*
|
|
2310
|
+
* The `map` property provides direct access to the underlying `FlowMap` instance.
|
|
2311
|
+
*
|
|
2312
|
+
* The `initialized` property provides a promise that resolves to the `FlowMap` once
|
|
2313
|
+
* it has been initialized and is the safest way to access the map API.
|
|
2314
|
+
*
|
|
2315
|
+
* Convenience properties are provided for setting the base style, center, zoom, bearing, and pitch
|
|
2316
|
+
* of the map. These properties can be set to update the map or the `FlowMap` API can be used directly.
|
|
2317
|
+
*
|
|
2318
|
+
*
|
|
2319
|
+
* @tagname flow-ui-map
|
|
2320
|
+
* @summary Display a Flo.w map.
|
|
2321
|
+
*
|
|
2322
|
+
* @event flow-ui-load - Dispatched when the map is first initialized and has completed loading.
|
|
2323
|
+
*
|
|
2324
|
+
* @csspart base - The base element of the component.
|
|
2325
|
+
* @csspart busy-indicator - The busy indicator flow-ui-progress-bar.
|
|
2326
|
+
* @csspart control-container - The map control containers.
|
|
2327
|
+
* @csspart control-container--top-left - The top left control container element.
|
|
2328
|
+
* @csspart control-container--top-right - The top right control container element.
|
|
2329
|
+
* @csspart control-container--bottom-left - The bottom left control container element.
|
|
2330
|
+
* @csspart control-container--bottom-right - The bottom right control container element.
|
|
2331
|
+
*
|
|
2332
|
+
*/
|
|
2333
|
+
declare class FlowUiMap extends FlowRdfElement {
|
|
2334
|
+
static styles: CSSResultGroup;
|
|
2335
|
+
private _map?;
|
|
2336
|
+
private _initialized;
|
|
2337
|
+
private _resolveInitialized;
|
|
2338
|
+
private _mapLoading;
|
|
2339
|
+
/**
|
|
2340
|
+
* The map ID. If not provided, a unique ID will be generated.
|
|
2341
|
+
*/
|
|
2342
|
+
mapId: string;
|
|
2343
|
+
/**
|
|
2344
|
+
* The base style of the map.
|
|
2345
|
+
*/
|
|
2346
|
+
baseStyle: string;
|
|
2347
|
+
/**
|
|
2348
|
+
* The center of the map specified as a longitude and latitude pair.
|
|
2349
|
+
*
|
|
2350
|
+
* Alternatively, use the `setCenter` method to update the center of the map
|
|
2351
|
+
* with animation options.
|
|
2352
|
+
*/
|
|
2353
|
+
center: [number, number];
|
|
2354
|
+
/**
|
|
2355
|
+
* The zoom level of the map.
|
|
2356
|
+
*
|
|
2357
|
+
* Alternatively, use the `setCenter` method to update the center of the map
|
|
2358
|
+
* with animation options.
|
|
2359
|
+
*/
|
|
2360
|
+
zoom: number;
|
|
2361
|
+
/**
|
|
2362
|
+
* The bearing of the map.
|
|
2363
|
+
*
|
|
2364
|
+
* Alternatively, use the `setCenter` method to update the center of the map
|
|
2365
|
+
* with animation options.
|
|
2366
|
+
*/
|
|
2367
|
+
bearing: number;
|
|
2368
|
+
/**
|
|
2369
|
+
* The pitch of the map.
|
|
2370
|
+
*
|
|
2371
|
+
* Alternatively, use the `setCenter` method to update the center of the map
|
|
2372
|
+
* with animation options.
|
|
2373
|
+
*/
|
|
2374
|
+
pitch: number;
|
|
2375
|
+
/**
|
|
2376
|
+
* Set to `true` to show a busy indicator on the map.
|
|
2377
|
+
*
|
|
2378
|
+
* Note that the busy indicator will also be automatically be shown when the map
|
|
2379
|
+
* is loading data.
|
|
2380
|
+
*/
|
|
2381
|
+
busy: boolean;
|
|
2382
|
+
/**
|
|
2383
|
+
* The underlying core FlowMap instance. Note that this is
|
|
2384
|
+
* `undefined` until the map has been initialized.
|
|
2385
|
+
*/
|
|
2386
|
+
get map(): FlowMap | undefined;
|
|
2387
|
+
/**
|
|
2388
|
+
* A promise that resolves to a map instance when the map has been initialized.
|
|
2389
|
+
*
|
|
2390
|
+
* This is the safest way to retrieve the underlying core FlowMap instance before
|
|
2391
|
+
* using its API.
|
|
2392
|
+
*/
|
|
2393
|
+
get initialized(): Promise<FlowMap>;
|
|
2394
|
+
constructor();
|
|
2395
|
+
/** @internal */
|
|
2396
|
+
handleCenterChange(): void;
|
|
2397
|
+
/** @internal */
|
|
2398
|
+
handleBaseStyleChange(): void;
|
|
2399
|
+
connectedCallback(): Promise<void>;
|
|
2400
|
+
disconnectedCallback(): void;
|
|
2401
|
+
private initializeMap;
|
|
2402
|
+
render(): lit.TemplateResult<1>;
|
|
2403
|
+
}
|
|
2404
|
+
|
|
2405
|
+
declare global {
|
|
2406
|
+
interface HTMLElementTagNameMap {
|
|
2407
|
+
'flow-ui-map': FlowUiMap;
|
|
2408
|
+
}
|
|
2409
|
+
}
|
|
2410
|
+
|
|
2305
2411
|
/**
|
|
2306
2412
|
* @summary Menu labels are used to describe a group of menu items.
|
|
2307
2413
|
* @documentation https://developer.emu-analytics.net/docs/flow-ui-rdf/components/menu-label
|
|
@@ -4896,4 +5002,4 @@ declare function unregisterIconLibrary(name: string): void;
|
|
|
4896
5002
|
declare function setDefaultLocale(locale: string): void;
|
|
4897
5003
|
declare function setDefaultTimeZone(timeZone: string): void;
|
|
4898
5004
|
|
|
4899
|
-
export { BaseColorMapperField, BaseColorStopOptions, ColorMapperField, ColorMapperOptions, ColorMapperValue, ColorStopOptions, ColorStopValue, FlowAfterCollapseEvent, FlowAfterExpandEvent, FlowAfterHideEvent, FlowAfterShowEvent, FlowAlert, SlAnimation as FlowAnimation, FlowAvatar, FlowBadge, FlowBlurEvent, FlowBreadcrumb, FlowBreadcrumbItem, FlowButton, FlowButtonGroup, FlowCalendar, FlowCancelEvent, FlowCard, FlowCarousel, FlowCarouselItem, FlowChangeEvent, FlowChart, FlowCheckbox, FlowClearEvent, FlowCloseEvent, FlowCollapseEvent, FlowColorMapper, FlowColorPicker, FlowColorStopComponent as FlowColorStop, FlowDatetimePicker as FlowDateTimePicker, FlowDetails, FlowDialog, FlowDivider, FlowDragEndEvent, FlowDragEvent, FlowDragStartEvent, FlowDrawer, SlDropdown as FlowDropdown, FlowErrorEvent, FlowExpandEvent, FlowFinishEvent, FlowFocusEvent, FlowGauge, FlowHideEvent, FlowHoverEvent, FlowIcon, FlowIconButton, FlowInitialFocusEvent, FlowInput, FlowInputEvent, FlowInvalidEvent, FlowLazyChangeEvent, FlowLazyLoadEvent, FlowLoadEvent, FlowMenu, FlowMenuItem, FlowMenuLabel, FlowMutationEvent, FlowMutationObserver, FlowNumberStepper, FlowOption, FlowPanel, FlowPanelHeader, FlowPanelToggleEvent, SlPopup as FlowPopup, FlowProgressBar, FlowProgressRing, FlowQueryBuilder, FlowRadio, FlowRadioGroup, FlowRange, FlowRemoveEvent, FlowRepositionEvent, FlowRequestCloseEvent, FlowResizeEvent, FlowResizeObserver, FlowScrollView, FlowSelect, FlowSelectEvent, FlowSelectionChangeEvent, FlowShowEvent, FlowSlideChange, FlowSpinner, FlowSplitView, FlowPanelDivider as FlowSplitViewDivider, FlowSplitViewPane, FlowSplitViewToggleButton, FlowStartEvent, FlowStepper, FlowStepperPanel, FlowSwitch, FlowTab, FlowTabGroup, FlowTabHideEvent, FlowTabPanel, FlowTabShowEvent, FlowTag, FlowTextarea, FlowTimer, FlowToolButton, FlowToolButtonGroup, FlowTooltip, FlowTree, FlowTreeItem, FlowVisuallyHidden, NumberColorMapperField, NumberColorStopOptions, SelectColorMapperField, SelectColorStopOptions, StringColorMapperField, StringColorStopOptions, addIcons, colorMapperValueToMaplibreExpression, escapeMaplibreString, getAnimationNames, getBasePath, getEasingNames, initializeChartJs, registerChartComponent, registerIconLibrary, setBasePath, setDefaultLocale, setDefaultTimeZone, unregisterIconLibrary };
|
|
5005
|
+
export { BaseColorMapperField, BaseColorStopOptions, ColorMapperField, ColorMapperOptions, ColorMapperValue, ColorStopOptions, ColorStopValue, FlowAfterCollapseEvent, FlowAfterExpandEvent, FlowAfterHideEvent, FlowAfterShowEvent, FlowAlert, SlAnimation as FlowAnimation, FlowAvatar, FlowBadge, FlowBlurEvent, FlowBreadcrumb, FlowBreadcrumbItem, FlowButton, FlowButtonGroup, FlowCalendar, FlowCancelEvent, FlowCard, FlowCarousel, FlowCarouselItem, FlowChangeEvent, FlowChart, FlowCheckbox, FlowClearEvent, FlowCloseEvent, FlowCollapseEvent, FlowColorMapper, FlowColorPicker, FlowColorStopComponent as FlowColorStop, FlowDatetimePicker as FlowDateTimePicker, FlowDetails, FlowDialog, FlowDivider, FlowDragEndEvent, FlowDragEvent, FlowDragStartEvent, FlowDrawer, SlDropdown as FlowDropdown, FlowErrorEvent, FlowExpandEvent, FlowFinishEvent, FlowFocusEvent, FlowGauge, FlowHideEvent, FlowHoverEvent, FlowIcon, FlowIconButton, FlowInitialFocusEvent, FlowInput, FlowInputEvent, FlowInvalidEvent, FlowLazyChangeEvent, FlowLazyLoadEvent, FlowLoadEvent, FlowUiMap as FlowMap, FlowMenu, FlowMenuItem, FlowMenuLabel, FlowMutationEvent, FlowMutationObserver, FlowNumberStepper, FlowOption, FlowPanel, FlowPanelHeader, FlowPanelToggleEvent, SlPopup as FlowPopup, FlowProgressBar, FlowProgressRing, FlowQueryBuilder, FlowRadio, FlowRadioGroup, FlowRange, FlowRemoveEvent, FlowRepositionEvent, FlowRequestCloseEvent, FlowResizeEvent, FlowResizeObserver, FlowScrollView, FlowSelect, FlowSelectEvent, FlowSelectionChangeEvent, FlowShowEvent, FlowSlideChange, FlowSpinner, FlowSplitView, FlowPanelDivider as FlowSplitViewDivider, FlowSplitViewPane, FlowSplitViewToggleButton, FlowStartEvent, FlowStepper, FlowStepperPanel, FlowSwitch, FlowTab, FlowTabGroup, FlowTabHideEvent, FlowTabPanel, FlowTabShowEvent, FlowTag, FlowTextarea, FlowTimer, FlowToolButton, FlowToolButtonGroup, FlowTooltip, FlowTree, FlowTreeItem, FlowVisuallyHidden, NumberColorMapperField, NumberColorStopOptions, SelectColorMapperField, SelectColorStopOptions, StringColorMapperField, StringColorStopOptions, addIcons, colorMapperValueToMaplibreExpression, escapeMaplibreString, getAnimationNames, getBasePath, getEasingNames, initializeChartJs, registerChartComponent, registerIconLibrary, setBasePath, setDefaultLocale, setDefaultTimeZone, unregisterIconLibrary };
|