atriusmaps-node-sdk 3.3.1056 → 3.3.1058
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/cjs/nodesdk/nodeEntry.js +17 -12
- package/dist/cjs/package.json.js +1 -1
- package/dist/cjs/src/app.js +1 -1
- package/dist/nodesdk/nodeEntry.js +1 -1
- package/dist/package.json.js +1 -1
- package/dist/src/app.js +1 -1
- package/dist/types/nodesdk/nodeEntry.d.ts +12 -0
- package/dist/types/nodesdk/nodeEntryCjs.d.cts +10 -0
- package/dist/types/plugins/monitoring/src/index.d.ts +1 -0
- package/dist/types/plugins/monitoring/src/monitoring.d.ts +34 -0
- package/dist/types/plugins/online/homeView/constants.d.ts +9 -0
- package/dist/types/plugins/sdkServer/src/prepareSDKConfig.d.ts +3 -0
- package/dist/types/plugins/sdkServer/src/publicTypes.d.ts +71 -0
- package/dist/types/plugins/sdkServer/src/types.d.ts +70 -0
- package/dist/types/plugins/wayfinder/src/navGraphDebug.d.ts +37 -0
- package/dist/types/src/LoadingIndicator.d.ts +11 -0
- package/dist/types/src/SystemErrorBoundary.d.ts +18 -0
- package/dist/types/src/app.d.ts +62 -0
- package/dist/types/src/configs/postproc-mol-url-parms.d.ts +3 -0
- package/dist/types/src/configs/postproc-stateTracking.d.ts +10 -0
- package/dist/types/src/controller.d.ts +13 -0
- package/dist/types/src/debugTools.d.ts +27 -0
- package/dist/types/src/env.d.ts +9 -0
- package/dist/types/src/extModules/bustle.d.ts +31 -0
- package/dist/types/src/extModules/log.d.ts +30 -0
- package/dist/types/src/historyManager.d.ts +4 -0
- package/dist/types/src/hooks/useCSSColors.d.ts +14 -0
- package/dist/types/src/layerManager.d.ts +3 -0
- package/dist/types/src/layouts/SpeedDial.d.ts +14 -0
- package/dist/types/src/layouts/fullscreenOnlyLayout.d.ts +10 -0
- package/dist/types/src/layouts/mapOnlyLayout.d.ts +2 -0
- package/dist/types/src/layouts/modEditorLayout.d.ts +2 -0
- package/dist/types/src/layouts/modLayout.d.ts +2 -0
- package/dist/types/src/layouts/searchDirectoryLayout.d.ts +2 -0
- package/dist/types/src/layouts/standardLayout.d.ts +2 -0
- package/dist/types/src/main.d.ts +2 -0
- package/dist/types/src/theme.d.ts +6 -0
- package/dist/types/src/themeManager.d.ts +29 -0
- package/dist/types/src/types/bus.d.ts +390 -0
- package/dist/types/src/types/layout.d.ts +56 -0
- package/dist/types/src/types/plugin-runtime.d.ts +91 -0
- package/dist/types/src/types/theme.d.ts +58 -0
- package/dist/types/src/ui/buttons/Button.d.ts +42 -0
- package/dist/types/src/ui/buttons/FloatingActionButton.d.ts +9 -0
- package/dist/types/src/ui/icons/Icon.d.ts +8 -0
- package/dist/types/src/ui/icons/iconRegistry.d.ts +53 -0
- package/dist/types/src/ui/icons/types.d.ts +47 -0
- package/dist/types/src/ui/icons/utils.d.ts +109 -0
- package/dist/types/src/ui/tageditorStyle.d.ts +2 -0
- package/dist/types/src/ui/tooltip/Tooltip.d.ts +16 -0
- package/dist/types/src/ui/tooltip/TooltipAnchor.d.ts +8 -0
- package/dist/types/src/ui/tooltip/index.d.ts +3 -0
- package/dist/types/src/utils/configUtils.d.ts +34 -0
- package/dist/types/src/utils/dom.d.ts +10 -0
- package/dist/types/src/utils/funcs.d.ts +36 -0
- package/dist/types/src/utils/i18n.d.ts +3 -0
- package/dist/types/src/utils/isInitialState.d.ts +6 -0
- package/dist/types/src/utils/mapElement.d.ts +54 -0
- package/dist/types/src/utils/modDefaultTheme.d.ts +164 -0
- package/dist/types/src/utils/molDesktopDefaultTheme.d.ts +156 -0
- package/dist/types/src/utils/observable.d.ts +17 -0
- package/dist/types/src/utils/stateObj.d.ts +31 -0
- package/dist/types/utils/constants.d.ts +31 -0
- package/dist/types/utils/findByLayoutId.d.ts +4 -0
- package/package.json +12 -4
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Calculate icon dimensions from iconSize prop
|
|
3
|
+
* @param {string|number} iconSize - Size value (sm|md|lg|xl|xxl or numeric)
|
|
4
|
+
* @param {object} theme - Theme context with iconSizes
|
|
5
|
+
* @returns {string|number} Resolved dimension value
|
|
6
|
+
*/
|
|
7
|
+
export declare const getIconDimensions: (iconSize: string | number | undefined, theme: Record<string, any>) => any;
|
|
8
|
+
/**
|
|
9
|
+
* Generate transform CSS for rotation and flip
|
|
10
|
+
* Use with styled-components: ${getTransformCSS}
|
|
11
|
+
*/
|
|
12
|
+
export declare const getTransformCSS: import("styled-components").RuleSet<NoInfer<{
|
|
13
|
+
$degreesOfIconRotation?: number;
|
|
14
|
+
$flipOnXAxis?: boolean;
|
|
15
|
+
}>>;
|
|
16
|
+
/**
|
|
17
|
+
* Generate common CSS for fill color and shadow
|
|
18
|
+
* Use with styled-components: ${getCommonCSS}
|
|
19
|
+
*/
|
|
20
|
+
export declare const getCommonCSS: import("styled-components").RuleSet<NoInfer<{
|
|
21
|
+
$fillColor?: string;
|
|
22
|
+
$shadowed?: boolean;
|
|
23
|
+
}>>;
|
|
24
|
+
/**
|
|
25
|
+
* Normalize dimension value to CSS-compatible string
|
|
26
|
+
* @param {string|number} value - Dimension value
|
|
27
|
+
* @returns {string} CSS dimension string
|
|
28
|
+
*/
|
|
29
|
+
export declare const normalizeDimension: (value: string | number | undefined) => string;
|
|
30
|
+
/**
|
|
31
|
+
* Set fill attribute to currentColor on an SVG element
|
|
32
|
+
* @param {Element} el - SVG element
|
|
33
|
+
*/
|
|
34
|
+
export declare const setFillToCurrentColor: (el: Element | null | undefined) => void | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Remove fill attribute from element and all children
|
|
37
|
+
* @param {Element} svg - SVG element
|
|
38
|
+
*/
|
|
39
|
+
export declare const removeFillFromSvg: (svg: Element | null | undefined) => void;
|
|
40
|
+
/**
|
|
41
|
+
* Apply coloring logic to SVG based on icon type
|
|
42
|
+
* @param {Element} svg - SVG element
|
|
43
|
+
* @param {boolean} isIconColored - Whether icon is a .color icon
|
|
44
|
+
* @param {boolean} removeFill - Whether to remove fills
|
|
45
|
+
*/
|
|
46
|
+
export declare const applyIconColoring: (svg: Element | null | undefined, isIconColored: boolean | undefined, removeFill: boolean | undefined) => void;
|
|
47
|
+
/**
|
|
48
|
+
* Apply accessibility attributes to SVG
|
|
49
|
+
* @param {Element} svg - SVG element
|
|
50
|
+
* @param {string} title - Accessible title/label
|
|
51
|
+
*/
|
|
52
|
+
export declare const applyA11yAttributes: (svg: Element, title: string | undefined) => void;
|
|
53
|
+
/**
|
|
54
|
+
* Build accessibility attributes for icons
|
|
55
|
+
* @param {object} params
|
|
56
|
+
* @param {string} params.title - Accessible title
|
|
57
|
+
* @param {string} params.ariaLabel - Accessible label
|
|
58
|
+
* @param {string} params.role - Role override
|
|
59
|
+
* @returns {{ role: string, ariaLabel: (string|undefined), ariaHidden: (string|undefined), title: (string|undefined) }}
|
|
60
|
+
*/
|
|
61
|
+
export declare const getIconA11y: ({ title, ariaLabel, role }: {
|
|
62
|
+
title?: string;
|
|
63
|
+
ariaLabel?: string;
|
|
64
|
+
role?: string;
|
|
65
|
+
}) => {
|
|
66
|
+
role: string;
|
|
67
|
+
'aria-label': string | undefined;
|
|
68
|
+
title: string | undefined;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* Calculate final container dimensions based on props and theme
|
|
72
|
+
* @param {object} params
|
|
73
|
+
* @param {string|number} params.width - Explicit width prop
|
|
74
|
+
* @param {string|number} params.height - Explicit height prop
|
|
75
|
+
* @param {string|number} params.size - Size prop
|
|
76
|
+
* @param {string|number} params.iconSize - Icon size category
|
|
77
|
+
* @param {object} params.theme - Theme object
|
|
78
|
+
* @returns {object} { width, height }
|
|
79
|
+
*/
|
|
80
|
+
export declare const calculateContainerDimensions: ({ width, height, size, iconSize, theme, }: {
|
|
81
|
+
width?: string | number;
|
|
82
|
+
height?: string | number;
|
|
83
|
+
size?: string | number;
|
|
84
|
+
iconSize?: string | number;
|
|
85
|
+
theme: Record<string, any>;
|
|
86
|
+
}) => {
|
|
87
|
+
width: any;
|
|
88
|
+
height: any;
|
|
89
|
+
};
|
|
90
|
+
/**
|
|
91
|
+
* Configure SVG element attributes before injection
|
|
92
|
+
* @param {Element} svg - SVG element
|
|
93
|
+
* @param {object} config
|
|
94
|
+
* @param {string} config.width - CSS width
|
|
95
|
+
* @param {string} config.height - CSS height
|
|
96
|
+
* @param {string} config.viewBox - Custom viewBox
|
|
97
|
+
* @param {string} config.title - A11y title
|
|
98
|
+
* @param {boolean} config.isIconColored - Is colored icon
|
|
99
|
+
* @param {boolean} config.removeFill - Remove fill flag
|
|
100
|
+
*/
|
|
101
|
+
export declare const configureSvg: (svg: Element, { width, height, viewBox, title, isIconColored, removeFill, role, }: {
|
|
102
|
+
width?: string;
|
|
103
|
+
height?: string;
|
|
104
|
+
viewBox?: string;
|
|
105
|
+
title?: string;
|
|
106
|
+
isIconColored?: boolean;
|
|
107
|
+
removeFill?: boolean;
|
|
108
|
+
role?: string;
|
|
109
|
+
}) => void;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type ArrowPosition = 'bottom' | 'left' | 'right' | 'top' | 'topright' | 'bottom-topright';
|
|
3
|
+
type TooltipProps = {
|
|
4
|
+
arrowPosition?: ArrowPosition;
|
|
5
|
+
avoidCover?: boolean;
|
|
6
|
+
cancelTooltip?: boolean;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
dataTestId?: string;
|
|
10
|
+
gutter?: number;
|
|
11
|
+
isVisible?: boolean;
|
|
12
|
+
placement?: string;
|
|
13
|
+
text?: string;
|
|
14
|
+
};
|
|
15
|
+
declare const Tooltip: ({ className, text, arrowPosition, children, isVisible, dataTestId, cancelTooltip, avoidCover, }: TooltipProps) => string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
16
|
+
export default Tooltip;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type TooltipAnchorProps = {
|
|
2
|
+
arrowPosition?: 'bottom' | 'left' | 'right' | 'top' | 'topright' | 'bottom-topright';
|
|
3
|
+
className?: string;
|
|
4
|
+
id: string;
|
|
5
|
+
text?: string;
|
|
6
|
+
};
|
|
7
|
+
declare const TooltipAnchor: ({ id, text, arrowPosition }: TooltipAnchorProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default TooltipAnchor;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Follows a localization scheme of checking for named values with locales appended,
|
|
3
|
+
* and checking more generally if values not found.
|
|
4
|
+
*
|
|
5
|
+
* For example, calling getLocalized("foo", "es-MX", "bar") would check the following keys in this order:
|
|
6
|
+
* "foo-es-MX"
|
|
7
|
+
* "foo-es"
|
|
8
|
+
* "foo"
|
|
9
|
+
*
|
|
10
|
+
* As soon as a value is found, it is returned, else the checks continue. If no value is found from any of these,
|
|
11
|
+
* the def value is returned. (If def is undefined, the undefined is returned)
|
|
12
|
+
*
|
|
13
|
+
* @param {object} config the configuration to inspect
|
|
14
|
+
* @param {string} name root key name to look up
|
|
15
|
+
* @param {string} lang language code
|
|
16
|
+
* @param {any} def default value to return if no value is found through localized checks
|
|
17
|
+
*/
|
|
18
|
+
export declare function getLocalized(config: any, name: string, lang: string | null, def: any): any;
|
|
19
|
+
/**
|
|
20
|
+
* iterate over the values of an object allowing
|
|
21
|
+
* self-referencing via >> prefix.
|
|
22
|
+
*
|
|
23
|
+
* i.e. resolveSelfRef({ a: 1, b: '>>a'}) = { a: 1, b: 1}
|
|
24
|
+
* @param {Object} ob Object whose properies may self-reference
|
|
25
|
+
*/
|
|
26
|
+
export declare function resolveSelfRef(ob: any): any;
|
|
27
|
+
/**
|
|
28
|
+
* Determines whether the map surround (WorldView) feature is enabled for a
|
|
29
|
+
* given surroundConfig.
|
|
30
|
+
*
|
|
31
|
+
* @param {object|null|undefined} surroundConfig the mapRenderer surroundConfig, or falsy if absent
|
|
32
|
+
*/
|
|
33
|
+
export declare function isSurroundEnabled(surroundConfig: any): boolean;
|
|
34
|
+
export declare function debugIsTrue(app: any, key: string): boolean;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const isDOMNode: (o: any) => any;
|
|
2
|
+
declare const $: (expr: any, container?: any) => any;
|
|
3
|
+
declare const $$: (expr: any, container?: any) => any[];
|
|
4
|
+
declare function ad(eConf?: any, parent?: any): HTMLElement;
|
|
5
|
+
declare const del: (element: any) => any;
|
|
6
|
+
declare const setStyles: (node: any, styles: any) => void;
|
|
7
|
+
declare const isAppleMobile: () => boolean | 0;
|
|
8
|
+
declare const isRtl: () => boolean;
|
|
9
|
+
declare const rgba: (hex: string, alpha: string | number) => string;
|
|
10
|
+
export { $, $$, ad, del, isAppleMobile, isDOMNode, isRtl, rgba, setStyles };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Limit the calls to specified function to 1 per timeslice.
|
|
3
|
+
* i.e. If x = 100ms, n = event, and this is called with 500ms
|
|
4
|
+
* xx1x2x3xx4xxx - calls made
|
|
5
|
+
* xx1xxxx3xxxx4 - calls occured
|
|
6
|
+
* Note: That last 4 call will not happen if you indicate noTailCall = true
|
|
7
|
+
* @param {function} fn The function to throttle
|
|
8
|
+
* @param {integer} ms The size of the timeslice (in milliseconds) (-1 indicates no throttling)
|
|
9
|
+
* @param {boolean} noTailCall If true, final call will be suppressed
|
|
10
|
+
*/
|
|
11
|
+
declare function throttle(fn: any, ms?: number, noTailCall?: boolean): (...args: any[]) => void;
|
|
12
|
+
declare const singleFile: (fn: any) => (...args: any[]) => any;
|
|
13
|
+
declare const changeTest: (val: any) => (val: any) => boolean;
|
|
14
|
+
declare const delay: (ms: number) => any;
|
|
15
|
+
declare const changeTestForArray: (initialArray?: any[]) => (currentArray: any[]) => boolean;
|
|
16
|
+
declare function changeTestObject(initialObject?: Record<string, any>): (valueOb: Record<string, any>) => boolean;
|
|
17
|
+
declare const calcOnce: (fn: any) => (arg?: any) => any;
|
|
18
|
+
declare const runOnce: (fn: any) => (arg?: any) => any;
|
|
19
|
+
declare const replaceablePromise: (sourceVal?: any) => {
|
|
20
|
+
replace: (this: any, newVal: any) => any;
|
|
21
|
+
valueProm: () => any;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* returns a copy of an object with any (top-level) properties that do not
|
|
25
|
+
* return truthy from the specified function stripped. So it works just like
|
|
26
|
+
* the Array.filter, but for objects.
|
|
27
|
+
* @param {function} fn A filter predicate - will be passed (key,object)
|
|
28
|
+
* @param {object} ob The object to filter (top level properties only)
|
|
29
|
+
* @returns (object) The newly created object with filtered properties
|
|
30
|
+
*/
|
|
31
|
+
declare function filterOb(fn: any, ob: any): Record<string, any>;
|
|
32
|
+
declare function shallowEqual(a: any, b: any): any;
|
|
33
|
+
declare const b64EncodeUnicode: (str: string) => string;
|
|
34
|
+
declare const b64DecodeUnicode: (str: string) => string;
|
|
35
|
+
declare function dupCheck(ar: any[]): void;
|
|
36
|
+
export { b64DecodeUnicode, b64EncodeUnicode, calcOnce, changeTest, changeTestForArray, changeTestObject, delay, dupCheck, filterOb, replaceablePromise, runOnce, shallowEqual, singleFile, throttle, };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare function startInitialStateListener(): void;
|
|
2
|
+
declare function addInitialStateCallback(cb: any): void;
|
|
3
|
+
declare function removeInitialStateCallback(cb: any): void;
|
|
4
|
+
declare function isInitialState(): boolean;
|
|
5
|
+
declare function overrideInitialStateForTests(value: boolean): void;
|
|
6
|
+
export { startInitialStateListener, overrideInitialStateForTests, addInitialStateCallback, removeInitialStateCallback, isInitialState, };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Centralized utility for accessing the SDK's root container element (.atrius-map)
|
|
3
|
+
* and computing container-relative dimensions/coordinates.
|
|
4
|
+
*
|
|
5
|
+
* Use these helpers instead of window.innerWidth / window.innerHeight so that
|
|
6
|
+
* the SDK works correctly when embedded without an iframe.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Returns the SDK root container element (.atrius-map).
|
|
10
|
+
* Caches the result after the first successful lookup.
|
|
11
|
+
* @returns {HTMLElement|null}
|
|
12
|
+
*/
|
|
13
|
+
export declare const getMapElement: () => Element | null;
|
|
14
|
+
/**
|
|
15
|
+
* Returns the bounding rect of the SDK container, or a window-sized fallback.
|
|
16
|
+
* The returned object has: width, height, top, left, right, bottom.
|
|
17
|
+
* @returns {{ width: number, height: number, top: number, left: number, right: number, bottom: number }}
|
|
18
|
+
*/
|
|
19
|
+
export declare const getContainerRect: () => DOMRect | {
|
|
20
|
+
top: number;
|
|
21
|
+
left: number;
|
|
22
|
+
right: number;
|
|
23
|
+
bottom: number;
|
|
24
|
+
width: number;
|
|
25
|
+
height: number;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Returns the width of the SDK container (falls back to window.innerWidth).
|
|
29
|
+
* Uses clientWidth for consistency with original implementations.
|
|
30
|
+
* @returns {number}
|
|
31
|
+
*/
|
|
32
|
+
export declare const getContainerWidth: () => number;
|
|
33
|
+
/**
|
|
34
|
+
* Returns the height of the SDK container (falls back to window.innerHeight).
|
|
35
|
+
* Uses clientHeight for consistency with original implementations.
|
|
36
|
+
* @returns {number}
|
|
37
|
+
*/
|
|
38
|
+
export declare const getContainerHeight: () => number;
|
|
39
|
+
/**
|
|
40
|
+
* Converts a viewport-relative DOMRect (from getBoundingClientRect()) to
|
|
41
|
+
* coordinates relative to the SDK container.
|
|
42
|
+
* @param {DOMRect} rect - Result of element.getBoundingClientRect()
|
|
43
|
+
* @returns {{ top: number, left: number, right: number, bottom: number, width: number, height: number }}
|
|
44
|
+
*/
|
|
45
|
+
export declare const toContainerCoords: (rect: DOMRect) => {
|
|
46
|
+
top: number;
|
|
47
|
+
left: number;
|
|
48
|
+
right: number;
|
|
49
|
+
bottom: number;
|
|
50
|
+
width: number;
|
|
51
|
+
height: number;
|
|
52
|
+
};
|
|
53
|
+
/** @internal — exposed for testing only */
|
|
54
|
+
export declare const _resetCache: () => void;
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import '@csstools/normalize.css';
|
|
2
|
+
declare const theme: {
|
|
3
|
+
colors: {
|
|
4
|
+
primary: string;
|
|
5
|
+
primaryButton: string;
|
|
6
|
+
primaryButtonHover: string;
|
|
7
|
+
primaryButtonText: string;
|
|
8
|
+
primaryText: string;
|
|
9
|
+
secondary: string;
|
|
10
|
+
secondaryButton: string;
|
|
11
|
+
secondaryButtonHover: string;
|
|
12
|
+
secondaryButtonText: string;
|
|
13
|
+
secondaryText: string;
|
|
14
|
+
destructiveButton: string;
|
|
15
|
+
destructiveButtonHover: string;
|
|
16
|
+
destructiveButtonText: string;
|
|
17
|
+
destructiveButtonHoverText: string;
|
|
18
|
+
background: string;
|
|
19
|
+
toolTipBackground: string;
|
|
20
|
+
toolTipText: string;
|
|
21
|
+
overlay: string;
|
|
22
|
+
mapNavBackground: string;
|
|
23
|
+
mapNavText: string;
|
|
24
|
+
mapNavSearchResults: string;
|
|
25
|
+
mapNavSearchResultsText: string;
|
|
26
|
+
widgetBackground: string;
|
|
27
|
+
widgetText: string;
|
|
28
|
+
widgetIcons: string;
|
|
29
|
+
myLocationPrimaryButton: string;
|
|
30
|
+
myLocationPrimaryButtonHover: string;
|
|
31
|
+
myLocationSecondaryButton: string;
|
|
32
|
+
myLocationSecondaryButtonHover: string;
|
|
33
|
+
adminMarkerText: string;
|
|
34
|
+
adminMarkerStroke: string;
|
|
35
|
+
programmaticPinMarkersText: string;
|
|
36
|
+
programmaticPinMarkersStroke: string;
|
|
37
|
+
miscBadgeIconColor: string;
|
|
38
|
+
miscBadgeIconStroke: string;
|
|
39
|
+
miscBadgeDynamicLabelColor: string;
|
|
40
|
+
miscBadgeDynamicLabelStroke: string;
|
|
41
|
+
miscBadgePinColor: string;
|
|
42
|
+
miscBadgePinStroke: string;
|
|
43
|
+
miscSelectedbgColor: string;
|
|
44
|
+
miscSelectedbgStroke: string;
|
|
45
|
+
miscWayfindingStartColor: string;
|
|
46
|
+
miscWayfindingStartStroke: string;
|
|
47
|
+
miscWayfindingStartGhostColor: string;
|
|
48
|
+
miscWayfindingStartGhostStroke: string;
|
|
49
|
+
statusAlertBackground: string;
|
|
50
|
+
statusAlertText: string;
|
|
51
|
+
statusActiveBackground: string;
|
|
52
|
+
statusActiveText: string;
|
|
53
|
+
statusInfoBackground: string;
|
|
54
|
+
statusInfoText: string;
|
|
55
|
+
statusWarningBackground: string;
|
|
56
|
+
statusWarningText: string;
|
|
57
|
+
statusInactiveBackground: string;
|
|
58
|
+
statusInactiveText: string;
|
|
59
|
+
statusSuccessBackground: string;
|
|
60
|
+
statusSuccessText: string;
|
|
61
|
+
statusErrorBackground: string;
|
|
62
|
+
statusErrorText: string;
|
|
63
|
+
categoryBadgeArt: string;
|
|
64
|
+
categoryBadgeBaggage: string;
|
|
65
|
+
categoryBadgeCheckin: string;
|
|
66
|
+
categoryBadgeConvention: string;
|
|
67
|
+
categoryBadgeEat: string;
|
|
68
|
+
categoryBadgeEntertainment: string;
|
|
69
|
+
categoryBadgeEquipment: string;
|
|
70
|
+
categoryBadgeExit: string;
|
|
71
|
+
categoryBadgeGambling: string;
|
|
72
|
+
categoryBadgeGate: string;
|
|
73
|
+
categoryBadgeInactive: string;
|
|
74
|
+
categoryBadgeHotel: string;
|
|
75
|
+
categoryBadgeMeeting: string;
|
|
76
|
+
categoryBadgeOffice: string;
|
|
77
|
+
categoryBadgeParking: string;
|
|
78
|
+
categoryBadgePortal: string;
|
|
79
|
+
categoryBadgeRecreation: string;
|
|
80
|
+
categoryBadgeRelax: string;
|
|
81
|
+
categoryBadgeRestroom: string;
|
|
82
|
+
categoryBadgeRoom: string;
|
|
83
|
+
categoryBadgeSecurity: string;
|
|
84
|
+
categoryBadgeServices: string;
|
|
85
|
+
categoryBadgeShop: string;
|
|
86
|
+
categoryBadgeTicketing: string;
|
|
87
|
+
categoryBadgeTransport: string;
|
|
88
|
+
categoryBadgeWayfinding: string;
|
|
89
|
+
categoryBadgeWorkstation: string;
|
|
90
|
+
modHeaderBackground: string;
|
|
91
|
+
modHeaderText: string;
|
|
92
|
+
};
|
|
93
|
+
fonts: {
|
|
94
|
+
default: string;
|
|
95
|
+
};
|
|
96
|
+
radii: {
|
|
97
|
+
none: string;
|
|
98
|
+
xs: string;
|
|
99
|
+
sm: string;
|
|
100
|
+
md: string;
|
|
101
|
+
lg: string;
|
|
102
|
+
full: string;
|
|
103
|
+
};
|
|
104
|
+
borders: {
|
|
105
|
+
none: number;
|
|
106
|
+
xs: string;
|
|
107
|
+
sm: string;
|
|
108
|
+
md: string;
|
|
109
|
+
lg: string;
|
|
110
|
+
};
|
|
111
|
+
borderWidths: {
|
|
112
|
+
sm: string;
|
|
113
|
+
md: string;
|
|
114
|
+
};
|
|
115
|
+
letterSpacings: {
|
|
116
|
+
sm: string;
|
|
117
|
+
md: string;
|
|
118
|
+
lg: string;
|
|
119
|
+
};
|
|
120
|
+
breakpoints: {
|
|
121
|
+
xs: number;
|
|
122
|
+
sm: number;
|
|
123
|
+
md: number;
|
|
124
|
+
lg: number;
|
|
125
|
+
xl: number;
|
|
126
|
+
};
|
|
127
|
+
shadows: {
|
|
128
|
+
xs: string;
|
|
129
|
+
sm: string;
|
|
130
|
+
md: string;
|
|
131
|
+
lg: string;
|
|
132
|
+
xl: string;
|
|
133
|
+
xxl: string;
|
|
134
|
+
xxxl: string;
|
|
135
|
+
};
|
|
136
|
+
fontSizes: {
|
|
137
|
+
xxs: string;
|
|
138
|
+
xs: string;
|
|
139
|
+
sm: string;
|
|
140
|
+
md: string;
|
|
141
|
+
lg: string;
|
|
142
|
+
xl: string;
|
|
143
|
+
xxl: string;
|
|
144
|
+
xxxl: string;
|
|
145
|
+
xxxxl: string;
|
|
146
|
+
};
|
|
147
|
+
fontWeights: {
|
|
148
|
+
lighter: number;
|
|
149
|
+
normal: number;
|
|
150
|
+
bold: number;
|
|
151
|
+
};
|
|
152
|
+
iconSizes: {
|
|
153
|
+
xs: string;
|
|
154
|
+
sm: string;
|
|
155
|
+
md: string;
|
|
156
|
+
lg: string;
|
|
157
|
+
};
|
|
158
|
+
icons: {
|
|
159
|
+
'2d': {
|
|
160
|
+
path: import("react/jsx-runtime").JSX.Element;
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
export default theme;
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import '@csstools/normalize.css';
|
|
2
|
+
declare const theme: {
|
|
3
|
+
colors: {
|
|
4
|
+
primary: string;
|
|
5
|
+
primaryButton: string;
|
|
6
|
+
primaryButtonHover: string;
|
|
7
|
+
primaryButtonText: string;
|
|
8
|
+
primaryText: string;
|
|
9
|
+
secondary: string;
|
|
10
|
+
secondaryButton: string;
|
|
11
|
+
secondaryButtonHover: string;
|
|
12
|
+
secondaryButtonText: string;
|
|
13
|
+
secondaryText: string;
|
|
14
|
+
destructiveButton: string;
|
|
15
|
+
destructiveButtonHover: string;
|
|
16
|
+
destructiveButtonText: string;
|
|
17
|
+
destructiveButtonHoverText: string;
|
|
18
|
+
background: string;
|
|
19
|
+
toolTipBackground: string;
|
|
20
|
+
toolTipText: string;
|
|
21
|
+
overlay: string;
|
|
22
|
+
mapNavBackground: string;
|
|
23
|
+
mapNavText: string;
|
|
24
|
+
mapNavSearchResults: string;
|
|
25
|
+
mapNavSearchResultsText: string;
|
|
26
|
+
widgetBackground: string;
|
|
27
|
+
widgetText: string;
|
|
28
|
+
widgetIcons: string;
|
|
29
|
+
myLocationPrimaryButton: string;
|
|
30
|
+
myLocationPrimaryButtonHover: string;
|
|
31
|
+
myLocationSecondaryButton: string;
|
|
32
|
+
myLocationSecondaryButtonHover: string;
|
|
33
|
+
adminMarkerText: string;
|
|
34
|
+
adminMarkerStroke: string;
|
|
35
|
+
programmaticPinMarkersText: string;
|
|
36
|
+
programmaticPinMarkersStroke: string;
|
|
37
|
+
miscBadgeIconColor: string;
|
|
38
|
+
miscBadgeIconStroke: string;
|
|
39
|
+
miscBadgeDynamicLabelColor: string;
|
|
40
|
+
miscBadgeDynamicLabelStroke: string;
|
|
41
|
+
miscBadgePinColor: string;
|
|
42
|
+
miscBadgePinStroke: string;
|
|
43
|
+
miscWayfindingStartColor: string;
|
|
44
|
+
miscWayfindingStartStroke: string;
|
|
45
|
+
miscWayfindingStartGhostColor: string;
|
|
46
|
+
miscWayfindingStartGhostStroke: string;
|
|
47
|
+
statusAlertBackground: string;
|
|
48
|
+
statusAlertText: string;
|
|
49
|
+
statusActiveBackground: string;
|
|
50
|
+
statusActiveText: string;
|
|
51
|
+
statusInfoBackground: string;
|
|
52
|
+
statusInfoText: string;
|
|
53
|
+
statusWarningBackground: string;
|
|
54
|
+
statusWarningText: string;
|
|
55
|
+
statusInactiveBackground: string;
|
|
56
|
+
statusInactiveText: string;
|
|
57
|
+
statusSuccessBackground: string;
|
|
58
|
+
statusSuccessText: string;
|
|
59
|
+
statusErrorBackground: string;
|
|
60
|
+
statusErrorText: string;
|
|
61
|
+
categoryBadgeArt: string;
|
|
62
|
+
categoryBadgeBaggage: string;
|
|
63
|
+
categoryBadgeCheckin: string;
|
|
64
|
+
categoryBadgeConvention: string;
|
|
65
|
+
categoryBadgeEat: string;
|
|
66
|
+
categoryBadgeEntertainment: string;
|
|
67
|
+
categoryBadgeEquipment: string;
|
|
68
|
+
categoryBadgeExit: string;
|
|
69
|
+
categoryBadgeGambling: string;
|
|
70
|
+
categoryBadgeGate: string;
|
|
71
|
+
categoryBadgeInactive: string;
|
|
72
|
+
categoryBadgeHotel: string;
|
|
73
|
+
categoryBadgeMeeting: string;
|
|
74
|
+
categoryBadgeOffice: string;
|
|
75
|
+
categoryBadgeParking: string;
|
|
76
|
+
categoryBadgePortal: string;
|
|
77
|
+
categoryBadgeRecreation: string;
|
|
78
|
+
categoryBadgeRelax: string;
|
|
79
|
+
categoryBadgeRestroom: string;
|
|
80
|
+
categoryBadgeRoom: string;
|
|
81
|
+
categoryBadgeSecurity: string;
|
|
82
|
+
categoryBadgeServices: string;
|
|
83
|
+
categoryBadgeShop: string;
|
|
84
|
+
categoryBadgeTicketing: string;
|
|
85
|
+
categoryBadgeTransport: string;
|
|
86
|
+
categoryBadgeWayfinding: string;
|
|
87
|
+
categoryBadgeWorkstation: string;
|
|
88
|
+
};
|
|
89
|
+
fonts: {
|
|
90
|
+
default: string;
|
|
91
|
+
};
|
|
92
|
+
radii: {
|
|
93
|
+
none: string;
|
|
94
|
+
xs: string;
|
|
95
|
+
sm: string;
|
|
96
|
+
md: string;
|
|
97
|
+
lg: string;
|
|
98
|
+
full: string;
|
|
99
|
+
};
|
|
100
|
+
borders: {
|
|
101
|
+
none: number;
|
|
102
|
+
xs: string;
|
|
103
|
+
sm: string;
|
|
104
|
+
md: string;
|
|
105
|
+
lg: string;
|
|
106
|
+
};
|
|
107
|
+
borderWidths: {
|
|
108
|
+
sm: string;
|
|
109
|
+
md: string;
|
|
110
|
+
};
|
|
111
|
+
letterSpacings: {
|
|
112
|
+
sm: string;
|
|
113
|
+
md: string;
|
|
114
|
+
lg: string;
|
|
115
|
+
};
|
|
116
|
+
breakpoints: {
|
|
117
|
+
xs: number;
|
|
118
|
+
sm: number;
|
|
119
|
+
md: number;
|
|
120
|
+
lg: number;
|
|
121
|
+
xl: number;
|
|
122
|
+
};
|
|
123
|
+
shadows: {
|
|
124
|
+
md: string;
|
|
125
|
+
lg: string;
|
|
126
|
+
xl: string;
|
|
127
|
+
xxl: string;
|
|
128
|
+
};
|
|
129
|
+
fontSizes: {
|
|
130
|
+
sm: string;
|
|
131
|
+
md: string;
|
|
132
|
+
lg: string;
|
|
133
|
+
xl: string;
|
|
134
|
+
xxl: string;
|
|
135
|
+
};
|
|
136
|
+
iconSizes: {
|
|
137
|
+
sm: string;
|
|
138
|
+
md: string;
|
|
139
|
+
lg: string;
|
|
140
|
+
xl: string;
|
|
141
|
+
xxl: string;
|
|
142
|
+
};
|
|
143
|
+
narrowIconSizes: {
|
|
144
|
+
sm: string;
|
|
145
|
+
md: string;
|
|
146
|
+
lg: string;
|
|
147
|
+
xl: string;
|
|
148
|
+
xxl: string;
|
|
149
|
+
};
|
|
150
|
+
icons: {
|
|
151
|
+
'2d': {
|
|
152
|
+
path: import("react/jsx-runtime").JSX.Element;
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
export default theme;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type ObserverCallback = (...args: unknown[]) => void;
|
|
2
|
+
export type ObservableInstance = {
|
|
3
|
+
_observers?: ObserverCallback[];
|
|
4
|
+
detach: (cb: ObserverCallback) => void;
|
|
5
|
+
filter: (fn: (...args: unknown[]) => boolean) => ObservableInstance;
|
|
6
|
+
fire: (...args: unknown[]) => ObservableInstance | undefined;
|
|
7
|
+
observe: (cb: ObserverCallback) => {
|
|
8
|
+
detach: () => void;
|
|
9
|
+
ob: ObservableInstance;
|
|
10
|
+
};
|
|
11
|
+
on: (value: unknown, cb: ObserverCallback) => {
|
|
12
|
+
detach: () => void;
|
|
13
|
+
ob: ObservableInstance;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
declare function create<TObject extends object | undefined = undefined>(ob?: TObject): ObservableInstance;
|
|
17
|
+
export default create;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
type StateRecord = Record<string, unknown>;
|
|
2
|
+
export declare class StateObj<TState extends StateRecord = StateRecord> {
|
|
3
|
+
state: TState;
|
|
4
|
+
callback: (state: TState) => void;
|
|
5
|
+
constructor(initial?: TState);
|
|
6
|
+
init: (initial: TState) => void;
|
|
7
|
+
setCallback: (fn: (state: TState) => void) => () => void;
|
|
8
|
+
unsetCallback: () => void;
|
|
9
|
+
update: (vals: Partial<TState>) => TState;
|
|
10
|
+
getState: () => TState;
|
|
11
|
+
}
|
|
12
|
+
export declare class StateObjMultiple<TState extends StateRecord = StateRecord> {
|
|
13
|
+
state: TState;
|
|
14
|
+
traceFlag: unknown;
|
|
15
|
+
lastState: TState;
|
|
16
|
+
callbacks: Set<(state: TState, prevState: TState) => void>;
|
|
17
|
+
constructor(initial?: TState, traceFlag?: unknown);
|
|
18
|
+
addCallback: (fn: (state: TState, prevState: TState) => void) => () => boolean;
|
|
19
|
+
rmCallback: (fn: (state: TState, prevState: TState) => void) => boolean;
|
|
20
|
+
getChanges: (vals: Partial<TState>) => {
|
|
21
|
+
changes: Record<string, {
|
|
22
|
+
from: unknown;
|
|
23
|
+
to: unknown;
|
|
24
|
+
}>;
|
|
25
|
+
stack: string | undefined;
|
|
26
|
+
};
|
|
27
|
+
update: (vals: Partial<TState>) => TState & Partial<TState>;
|
|
28
|
+
doCallbacks: () => () => void;
|
|
29
|
+
getState: () => TState;
|
|
30
|
+
}
|
|
31
|
+
export {};
|