cx 24.7.6 → 24.8.0
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/charts.js +2 -2
- package/dist/manifest.js +759 -759
- package/package.json +1 -1
- package/src/charts/helpers/SnapPointFinder.js +2 -2
- package/src/ui/app/Url.d.ts +21 -21
- package/src/widgets/form/LookupField.d.ts +1 -1
- package/src/widgets/nav/LinkButton.d.ts +34 -31
package/package.json
CHANGED
|
@@ -13,8 +13,8 @@ export class SnapPointFinder extends PointReducer {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
onInitAccumulator(acc, { data }) {
|
|
16
|
-
acc.cursorX = data.cursorX;
|
|
17
|
-
acc.cursorY = data.cursorY;
|
|
16
|
+
acc.cursorX = this.convertX(data.cursorX);
|
|
17
|
+
acc.cursorY = this.convertY(data.cursorY);
|
|
18
18
|
acc.dist = data.maxDistance > 0 ? Math.pow(data.maxDistance, 2) : Number.POSITIVE_INFINITY;
|
|
19
19
|
acc.snapX = null;
|
|
20
20
|
acc.snapY = null;
|
package/src/ui/app/Url.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import * as Cx from "../../core";
|
|
2
|
-
|
|
3
|
-
export class Url {
|
|
4
|
-
static resolve(path: string): string;
|
|
5
|
-
|
|
6
|
-
static absolute(path: string): string;
|
|
7
|
-
|
|
8
|
-
static unresolve(path: string): string;
|
|
9
|
-
|
|
10
|
-
static getAbsoluteBase(): string;
|
|
11
|
-
|
|
12
|
-
static isLocal(url: string): boolean;
|
|
13
|
-
|
|
14
|
-
static setBase(base: string): void;
|
|
15
|
-
|
|
16
|
-
static getOrigin(): string;
|
|
17
|
-
|
|
18
|
-
static getBaseFromScriptSrc(src: string, scriptPath: string): string;
|
|
19
|
-
|
|
20
|
-
static setBaseFromScript(scriptPath: string |
|
|
21
|
-
}
|
|
1
|
+
import * as Cx from "../../core";
|
|
2
|
+
|
|
3
|
+
export class Url {
|
|
4
|
+
static resolve(path: string): string;
|
|
5
|
+
|
|
6
|
+
static absolute(path: string): string;
|
|
7
|
+
|
|
8
|
+
static unresolve(path: string): string;
|
|
9
|
+
|
|
10
|
+
static getAbsoluteBase(): string;
|
|
11
|
+
|
|
12
|
+
static isLocal(url: string): boolean;
|
|
13
|
+
|
|
14
|
+
static setBase(base: string): void;
|
|
15
|
+
|
|
16
|
+
static getOrigin(): string;
|
|
17
|
+
|
|
18
|
+
static getBaseFromScriptSrc(src: string, scriptPath: string): string;
|
|
19
|
+
|
|
20
|
+
static setBaseFromScript(scriptPath: string | RegExp);
|
|
21
|
+
}
|
|
@@ -121,7 +121,7 @@ interface LookupFieldProps<T = unknown> extends FieldProps {
|
|
|
121
121
|
/** Close the dropdown after selection. Default is `true`. */
|
|
122
122
|
closeOnSelect?: boolean;
|
|
123
123
|
|
|
124
|
-
/**
|
|
124
|
+
/** Message to be displayed to the user if the entered search query is too short. */
|
|
125
125
|
minQueryLengthMessageText?: string;
|
|
126
126
|
|
|
127
127
|
/** Name or configuration of the icon to be put on the left side of the input. */
|
|
@@ -1,31 +1,34 @@
|
|
|
1
|
-
import * as Cx from "../../core";
|
|
2
|
-
import { ButtonProps } from "../Button";
|
|
3
|
-
|
|
4
|
-
export interface LinkButtonProps extends ButtonProps {
|
|
5
|
-
/** Url to the link's target location. Should start with `~/` or `#/` for pushState/hash based navigation. */
|
|
6
|
-
href?: Cx.StringProp;
|
|
7
|
-
|
|
8
|
-
/** Binding to the current url location in the store. If `href` matches `url`, additional CSS class `active` is applied. */
|
|
9
|
-
url?: Cx.StringProp;
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Accepted values are `equal`, `prefix` and `subroute`. Default is `equal` which means that `url` must exactly match `href` in order to consider the link active.
|
|
13
|
-
* In `prefix` mode, if `href` is a prefix of `url`, the link is considered active. The `subroute` mode is similar to `prefix` mode, except that `href` must be followed by a forward slash `/`, indicating
|
|
14
|
-
* a subroute.
|
|
15
|
-
*/
|
|
16
|
-
match?: "equal" | "prefix" | "subroute";
|
|
17
|
-
|
|
18
|
-
/** Additional CSS style to aplied when the link is active. */
|
|
19
|
-
activeStyle?: Cx.StyleProp;
|
|
20
|
-
|
|
21
|
-
/** Additional CSS style to aplied when the link is inactive. */
|
|
22
|
-
inactiveStyle?: Cx.StyleProp;
|
|
23
|
-
|
|
24
|
-
/** Additional CSS class to aplied when the link is active. */
|
|
25
|
-
activeClass?: Cx.StyleProp;
|
|
26
|
-
|
|
27
|
-
/** Additional CSS class to aplied when the link is inactive. */
|
|
28
|
-
inactiveClass?: Cx.StyleProp;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
1
|
+
import * as Cx from "../../core";
|
|
2
|
+
import { ButtonProps } from "../Button";
|
|
3
|
+
|
|
4
|
+
export interface LinkButtonProps extends ButtonProps {
|
|
5
|
+
/** Url to the link's target location. Should start with `~/` or `#/` for pushState/hash based navigation. */
|
|
6
|
+
href?: Cx.StringProp;
|
|
7
|
+
|
|
8
|
+
/** Binding to the current url location in the store. If `href` matches `url`, additional CSS class `active` is applied. */
|
|
9
|
+
url?: Cx.StringProp;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Accepted values are `equal`, `prefix` and `subroute`. Default is `equal` which means that `url` must exactly match `href` in order to consider the link active.
|
|
13
|
+
* In `prefix` mode, if `href` is a prefix of `url`, the link is considered active. The `subroute` mode is similar to `prefix` mode, except that `href` must be followed by a forward slash `/`, indicating
|
|
14
|
+
* a subroute.
|
|
15
|
+
*/
|
|
16
|
+
match?: "equal" | "prefix" | "subroute";
|
|
17
|
+
|
|
18
|
+
/** Additional CSS style to aplied when the link is active. */
|
|
19
|
+
activeStyle?: Cx.StyleProp;
|
|
20
|
+
|
|
21
|
+
/** Additional CSS style to aplied when the link is inactive. */
|
|
22
|
+
inactiveStyle?: Cx.StyleProp;
|
|
23
|
+
|
|
24
|
+
/** Additional CSS class to aplied when the link is active. */
|
|
25
|
+
activeClass?: Cx.StyleProp;
|
|
26
|
+
|
|
27
|
+
/** Additional CSS class to aplied when the link is inactive. */
|
|
28
|
+
inactiveClass?: Cx.StyleProp;
|
|
29
|
+
|
|
30
|
+
/** Where to display the linked URL, as the name for a browsing context (a tab, window, or <iframe>) */
|
|
31
|
+
target?: Cx.Prop<"_self" | "_blank" | "_parent" | "_top" | (string & {})>;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export class LinkButton extends Cx.Widget<LinkButtonProps> {}
|