@wcardinal/wcardinal-ui 0.332.0 → 0.334.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/types/wcardinal/ui/d-base-padding-adjustable.d.ts +12 -34
- package/dist/types/wcardinal/ui/d-base.d.ts +2 -0
- package/dist/types/wcardinal/ui/d-button-select.d.ts +3 -3
- package/dist/types/wcardinal/ui/d-dialog-select-search-dismissable-impl.d.ts +7 -7
- package/dist/types/wcardinal/ui/d-dialog-select-search-dismissable.d.ts +4 -4
- package/dist/types/wcardinal/ui/d-dialog-select-search-impl.d.ts +4 -4
- package/dist/types/wcardinal/ui/d-dialog-select-search.d.ts +2 -2
- package/dist/types/wcardinal/ui/d-dialog-select.d.ts +42 -14
- package/dist/types/wcardinal/ui/d-table-body-cell-input-tree-input.d.ts +1 -1
- package/dist/types/wcardinal/ui/d-table-body-cell-tree.d.ts +1 -0
- package/dist/types/wcardinal/ui/d-tree-item-text.d.ts +1 -0
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-dialog-select.d.ts +2 -0
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-dialog-select.d.ts +2 -0
- package/dist/types/wcardinal/ui/util/index.d.ts +1 -0
- package/dist/types/wcardinal/ui/util/to-id.d.ts +1 -0
- package/dist/wcardinal/ui/d-base-padding-adjustable.js +27 -88
- package/dist/wcardinal/ui/d-base-padding-adjustable.js.map +1 -1
- package/dist/wcardinal/ui/d-base.js +5 -1
- package/dist/wcardinal/ui/d-base.js.map +1 -1
- package/dist/wcardinal/ui/d-button-select.js +2 -37
- package/dist/wcardinal/ui/d-button-select.js.map +1 -1
- package/dist/wcardinal/ui/d-dialog-select-search-dismissable-impl.js.map +1 -1
- package/dist/wcardinal/ui/d-dialog-select-search-dismissable.js.map +1 -1
- package/dist/wcardinal/ui/d-dialog-select-search-impl.js +1 -1
- package/dist/wcardinal/ui/d-dialog-select-search-impl.js.map +1 -1
- package/dist/wcardinal/ui/d-dialog-select-search.js.map +1 -1
- package/dist/wcardinal/ui/d-dialog-select.js +162 -15
- package/dist/wcardinal/ui/d-dialog-select.js.map +1 -1
- package/dist/wcardinal/ui/d-table-body-cell-input-tree-input.js +5 -4
- package/dist/wcardinal/ui/d-table-body-cell-input-tree-input.js.map +1 -1
- package/dist/wcardinal/ui/d-table-body-cell-tree.js +4 -4
- package/dist/wcardinal/ui/d-table-body-cell-tree.js.map +1 -1
- package/dist/wcardinal/ui/d-tree-item-text.js +3 -1
- package/dist/wcardinal/ui/d-tree-item-text.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape-connector-edge-impl.js +6 -2
- package/dist/wcardinal/ui/shape/e-shape-connector-edge-impl.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-dialog-select.js +9 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-dialog-select.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-dialog-select.js +9 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-dialog-select.js.map +1 -1
- package/dist/wcardinal/ui/util/index.js +1 -0
- package/dist/wcardinal/ui/util/index.js.map +1 -1
- package/dist/wcardinal/ui/util/to-id.js +27 -0
- package/dist/wcardinal/ui/util/to-id.js.map +1 -0
- package/dist/wcardinal-ui-theme-dark.js +10 -2
- package/dist/wcardinal-ui-theme-dark.min.js +2 -2
- package/dist/wcardinal-ui-theme-dark.min.js.map +1 -1
- package/dist/wcardinal-ui-theme-white.js +10 -2
- package/dist/wcardinal-ui-theme-white.min.js +2 -2
- package/dist/wcardinal-ui-theme-white.min.js.map +1 -1
- package/dist/wcardinal-ui.cjs.js +252 -156
- package/dist/wcardinal-ui.js +238 -154
- package/dist/wcardinal-ui.min.js +2 -2
- package/dist/wcardinal-ui.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,39 +1,17 @@
|
|
|
1
|
-
import { DThemeBase } from "./d-base";
|
|
2
|
-
import {
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export declare class DBasePaddingAdjustable implements DPadding {
|
|
10
|
-
protected _target: DPadding;
|
|
11
|
-
protected _top: number;
|
|
12
|
-
protected _right: number;
|
|
13
|
-
protected _bottom: number;
|
|
14
|
-
protected _left: number;
|
|
15
|
-
protected _callback?: () => void;
|
|
16
|
-
constructor(target: DPadding);
|
|
17
|
-
getTheme(): DThemeBase;
|
|
18
|
-
setTheme(theme: DThemeBase): void;
|
|
1
|
+
import { DBaseOptions, DThemeBase } from "./d-base";
|
|
2
|
+
import { DBasePadding } from "./d-base-padding";
|
|
3
|
+
export declare class DBasePaddingAdjustable extends DBasePadding {
|
|
4
|
+
protected _atop: number;
|
|
5
|
+
protected _aright: number;
|
|
6
|
+
protected _abottom: number;
|
|
7
|
+
protected _aleft: number;
|
|
8
|
+
constructor(theme: DThemeBase, options?: DBaseOptions<any>, callback?: () => void);
|
|
19
9
|
getLeft(): number;
|
|
20
|
-
adjLeft(
|
|
21
|
-
get left(): number | undefined;
|
|
22
|
-
set left(left: number | undefined);
|
|
10
|
+
adjLeft(aleft: number): void;
|
|
23
11
|
getTop(): number;
|
|
24
|
-
adjTop(
|
|
25
|
-
get top(): number | undefined;
|
|
26
|
-
set top(top: number | undefined);
|
|
12
|
+
adjTop(atop: number): void;
|
|
27
13
|
getRight(): number;
|
|
28
|
-
adjRight(
|
|
29
|
-
get right(): number | undefined;
|
|
30
|
-
set right(right: number | undefined);
|
|
14
|
+
adjRight(aright: number): void;
|
|
31
15
|
getBottom(): number;
|
|
32
|
-
adjBottom(
|
|
33
|
-
get bottom(): number | undefined;
|
|
34
|
-
set bottom(bottom: number | undefined);
|
|
35
|
-
set(padding: number): void;
|
|
36
|
-
set(topAndBottom: number, leftAndRight: number): void;
|
|
37
|
-
set(top: number, leftAndRight: number, bottom: number): void;
|
|
38
|
-
set(top: number, right: number, bottom: number, left: number): void;
|
|
16
|
+
adjBottom(abottom: number): void;
|
|
39
17
|
}
|
|
@@ -3,6 +3,7 @@ import InteractionEvent = interaction.InteractionEvent;
|
|
|
3
3
|
import InteractionManager = interaction.InteractionManager;
|
|
4
4
|
import { DBackgroundStateAware } from "./d-background";
|
|
5
5
|
import { DBaseInteractive } from "./d-base-interactive";
|
|
6
|
+
import { DBasePadding } from "./d-base-padding";
|
|
6
7
|
import { DBasePoint } from "./d-base-point";
|
|
7
8
|
import { DBaseStateSet } from "./d-base-state-set";
|
|
8
9
|
import { DBorderStateAware } from "./d-border";
|
|
@@ -617,6 +618,7 @@ export declare class DBase<THEME extends DThemeBase = DThemeBase, OPTIONS extend
|
|
|
617
618
|
protected _lastDownPoint?: Point;
|
|
618
619
|
protected _cursor?: DStateAwareOrValueMightBe<string>;
|
|
619
620
|
constructor(options?: OPTIONS);
|
|
621
|
+
protected newPadding(theme: THEME, options?: OPTIONS, callback?: () => void): DBasePadding;
|
|
620
622
|
protected toCursor(cursor: DStateAwareOrValueMightBe<string> | undefined, state: DBaseStateSet): string;
|
|
621
623
|
get snippet(): DBaseSnippetContainer;
|
|
622
624
|
get reflowable(): DBaseReflowableContainer;
|
|
@@ -40,7 +40,7 @@ export interface DButtonSelectOnOptions<VALUE, EMITTER> extends Partial<DButtonS
|
|
|
40
40
|
/**
|
|
41
41
|
* {@link DButtonSelect} options.
|
|
42
42
|
*/
|
|
43
|
-
export interface DButtonSelectOptions<VALUE = unknown, DIALOG_VALUE = unknown, DIALOG extends DButtonSelectDialog<DIALOG_VALUE> = DButtonSelectDialog<DIALOG_VALUE>, THEME extends DThemeButtonSelect<VALUE> = DThemeButtonSelect<VALUE>, EMITTER = any> extends DButtonOptions<VALUE | null, THEME, EMITTER> {
|
|
43
|
+
export interface DButtonSelectOptions<VALUE = unknown, DIALOG_VALUE = unknown, DIALOG_CATEGORY = unknown, DIALOG_CATEGORY_ID = unknown, DIALOG extends DButtonSelectDialog<DIALOG_VALUE> = DButtonSelectDialog<DIALOG_VALUE>, THEME extends DThemeButtonSelect<VALUE> = DThemeButtonSelect<VALUE>, EMITTER = any> extends DButtonOptions<VALUE | null, THEME, EMITTER> {
|
|
44
44
|
/**
|
|
45
45
|
* A function to retrieve a selected value from a dialog.
|
|
46
46
|
*/
|
|
@@ -53,7 +53,7 @@ export interface DButtonSelectOptions<VALUE = unknown, DIALOG_VALUE = unknown, D
|
|
|
53
53
|
/**
|
|
54
54
|
* A dialog to select values.
|
|
55
55
|
*/
|
|
56
|
-
dialog?: DDialogSelectOptions<DIALOG_VALUE> | DIALOG;
|
|
56
|
+
dialog?: DDialogSelectOptions<DIALOG_VALUE, DIALOG_CATEGORY, DIALOG_CATEGORY_ID> | DIALOG;
|
|
57
57
|
on?: DButtonSelectOnOptions<VALUE, EMITTER>;
|
|
58
58
|
}
|
|
59
59
|
/**
|
|
@@ -61,7 +61,7 @@ export interface DButtonSelectOptions<VALUE = unknown, DIALOG_VALUE = unknown, D
|
|
|
61
61
|
*/
|
|
62
62
|
export interface DThemeButtonSelect<VALUE = unknown> extends DThemeButton<VALUE | null> {
|
|
63
63
|
}
|
|
64
|
-
export declare class DButtonSelect<VALUE = unknown, DIALOG_VALUE = unknown, DIALOG extends DButtonSelectDialog<DIALOG_VALUE> = DButtonSelectDialog<DIALOG_VALUE>, THEME extends DThemeButtonSelect<VALUE> = DThemeButtonSelect<VALUE>, OPTIONS extends DButtonSelectOptions<VALUE, DIALOG_VALUE, DIALOG, THEME> = DButtonSelectOptions<VALUE, DIALOG_VALUE, DIALOG, THEME>> extends DButton<VALUE | null, THEME, OPTIONS> {
|
|
64
|
+
export declare class DButtonSelect<VALUE = unknown, DIALOG_VALUE = unknown, DIALOG_CATEGORY = unknown, DIALOG_CATEGORY_ID = unknown, DIALOG extends DButtonSelectDialog<DIALOG_VALUE> = DButtonSelectDialog<DIALOG_VALUE>, THEME extends DThemeButtonSelect<VALUE> = DThemeButtonSelect<VALUE>, OPTIONS extends DButtonSelectOptions<VALUE, DIALOG_VALUE, DIALOG_CATEGORY, DIALOG_CATEGORY_ID, DIALOG, THEME> = DButtonSelectOptions<VALUE, DIALOG_VALUE, DIALOG_CATEGORY, DIALOG_CATEGORY_ID, DIALOG, THEME>> extends DButton<VALUE | null, THEME, OPTIONS> {
|
|
65
65
|
protected _dialog?: DIALOG;
|
|
66
66
|
protected _dialogGetter: DButtonSelectGetter<VALUE, DIALOG>;
|
|
67
67
|
protected _dialogSetter: DButtonSelectSetter<VALUE, DIALOG>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { utils } from "pixi.js";
|
|
2
2
|
import { DDialogSelectSearch } from "./d-dialog-select-search";
|
|
3
3
|
import { DDialogSelectSearchDismissable, DDialogSelectSearhDismissableFilter, DDialogSelectSearhDismissableOptions } from "./d-dialog-select-search-dismissable";
|
|
4
|
-
export declare class DDialogSelectSearhDismissableImpl<VALUE> extends utils.EventEmitter implements DDialogSelectSearchDismissable<VALUE> {
|
|
5
|
-
protected _target: DDialogSelectSearch<VALUE>;
|
|
6
|
-
protected _args?: [string];
|
|
4
|
+
export declare class DDialogSelectSearhDismissableImpl<VALUE, CATEGORY, CATEGORY_ID> extends utils.EventEmitter implements DDialogSelectSearchDismissable<VALUE, CATEGORY, CATEGORY_ID> {
|
|
5
|
+
protected _target: DDialogSelectSearch<VALUE, CATEGORY, CATEGORY_ID>;
|
|
6
|
+
protected _args?: [string, CATEGORY_ID | null];
|
|
7
7
|
protected _value?: VALUE;
|
|
8
|
-
protected _filter?: DDialogSelectSearhDismissableFilter<VALUE>;
|
|
9
|
-
constructor(target: DDialogSelectSearch<VALUE>, options: DDialogSelectSearhDismissableOptions<VALUE>);
|
|
10
|
-
protected toDismissValue(args?: [string]): VALUE | undefined;
|
|
8
|
+
protected _filter?: DDialogSelectSearhDismissableFilter<VALUE, CATEGORY, CATEGORY_ID>;
|
|
9
|
+
constructor(target: DDialogSelectSearch<VALUE, CATEGORY, CATEGORY_ID>, options: DDialogSelectSearhDismissableOptions<VALUE, CATEGORY, CATEGORY_ID>);
|
|
10
|
+
protected toDismissValue(args?: [string, CATEGORY_ID | null]): VALUE | undefined;
|
|
11
11
|
protected toDismissable(values: VALUE[]): VALUE[];
|
|
12
|
-
create(args: [string]): void;
|
|
12
|
+
create(args: [string, CATEGORY_ID | null]): void;
|
|
13
13
|
isDone(): boolean;
|
|
14
14
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { DDialogSelectSearch } from "./d-dialog-select-search";
|
|
2
|
-
export declare type DDialogSelectSearhDismissableFilter<VALUE> = (value: VALUE, word?: string) => boolean;
|
|
3
|
-
export interface DDialogSelectSearhDismissableOptions<VALUE> {
|
|
2
|
+
export declare type DDialogSelectSearhDismissableFilter<VALUE, CATEGORY, CATEGORY_ID> = (value: VALUE, word?: string, categoryId?: CATEGORY_ID | null) => boolean;
|
|
3
|
+
export interface DDialogSelectSearhDismissableOptions<VALUE, CATEGORY, CATEGORY_ID> {
|
|
4
4
|
value: VALUE;
|
|
5
|
-
filter?: DDialogSelectSearhDismissableFilter<VALUE>;
|
|
5
|
+
filter?: DDialogSelectSearhDismissableFilter<VALUE, CATEGORY, CATEGORY_ID>;
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
8
|
* {@link DDialogSelect} dismissable search object.
|
|
9
9
|
*/
|
|
10
|
-
export interface DDialogSelectSearchDismissable<VALUE> extends DDialogSelectSearch<VALUE> {
|
|
10
|
+
export interface DDialogSelectSearchDismissable<VALUE, CATEGORY, CATEGORY_ID> extends DDialogSelectSearch<VALUE, CATEGORY, CATEGORY_ID> {
|
|
11
11
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { utils } from "pixi.js";
|
|
2
2
|
import { DDialogSelectSearch } from "./d-dialog-select-search";
|
|
3
|
-
export declare class DDialogSelectSearhImpl<VALUE> extends utils.EventEmitter implements DDialogSelectSearch<VALUE> {
|
|
4
|
-
protected _search: (word: string) => Promise<VALUE[]>;
|
|
3
|
+
export declare class DDialogSelectSearhImpl<VALUE, CATEGORY, CATEGORY_ID> extends utils.EventEmitter implements DDialogSelectSearch<VALUE, CATEGORY, CATEGORY_ID> {
|
|
4
|
+
protected _search: (word: string, categoryId: CATEGORY_ID) => Promise<VALUE[]>;
|
|
5
5
|
protected _id: number;
|
|
6
6
|
protected _idCompleted: number;
|
|
7
|
-
constructor(search?: (word: string) => Promise<VALUE[]>);
|
|
8
|
-
create(args: [string]): void;
|
|
7
|
+
constructor(search?: (word: string, categoryId: CATEGORY_ID) => Promise<VALUE[]>);
|
|
8
|
+
create(args: [string, CATEGORY_ID]): void;
|
|
9
9
|
isDone(): boolean;
|
|
10
10
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* {@link DDialogSelect} search object.
|
|
3
3
|
*/
|
|
4
|
-
export interface DDialogSelectSearch<VALUE> {
|
|
5
|
-
create(args: [string]): void;
|
|
4
|
+
export interface DDialogSelectSearch<VALUE, CATEGORY, CATEGORY_ID> {
|
|
5
|
+
create(args: [string, CATEGORY_ID | null]): void;
|
|
6
6
|
on(event: "success", handler: (e: unknown, searchResults: VALUE[]) => void): void;
|
|
7
7
|
on(event: "fail", handler: () => void): void;
|
|
8
8
|
on(event: "change", handler: () => void): void;
|
|
@@ -3,25 +3,28 @@ import { DBase } from "./d-base";
|
|
|
3
3
|
import { DDialogLayered, DDialogLayeredEvents, DDialogLayeredOptions, DThemeDialogLayered } from "./d-dialog-layered";
|
|
4
4
|
import { DDialogSelectList, DDialogSelectListOptions } from "./d-dialog-select-list";
|
|
5
5
|
import { DInputSearch, DInputSearchOptions } from "./d-input-search";
|
|
6
|
-
import { DLayoutHorizontal
|
|
6
|
+
import { DLayoutHorizontal } from "./d-layout-horizontal";
|
|
7
|
+
import { DLayoutSpace } from "./d-layout-space";
|
|
7
8
|
import { DListOptions } from "./d-list";
|
|
8
9
|
import { DListDataSelection } from "./d-list-data-selection";
|
|
9
10
|
import { DNote, DNoteOptions } from "./d-note";
|
|
10
11
|
import { DOnOptions } from "./d-on-options";
|
|
11
12
|
import { DDialogSelectSearch } from "./d-dialog-select-search";
|
|
12
13
|
import { DDialogSelectSearhDismissableOptions } from "./d-dialog-select-search-dismissable";
|
|
14
|
+
import { DSelect, DSelectOptions } from "./d-select";
|
|
13
15
|
export interface DDialogSelectInputOpitons extends DInputSearchOptions {
|
|
14
16
|
margin?: number;
|
|
15
17
|
}
|
|
16
18
|
/**
|
|
17
19
|
* {@link DDialogSelect} search function.
|
|
18
20
|
*/
|
|
19
|
-
export declare type DDialogSelectSearchFunction<VALUE> = (word: string) => Promise<VALUE[]>;
|
|
21
|
+
export declare type DDialogSelectSearchFunction<VALUE, CATEGORY, CATEGORY_ID> = (word: string, categoryId: CATEGORY_ID) => Promise<VALUE[]>;
|
|
20
22
|
/**
|
|
21
23
|
* {@link DDialogSelect} controller.
|
|
22
24
|
*/
|
|
23
|
-
export interface DDialogSelectController<VALUE> {
|
|
24
|
-
search: DDialogSelectSearch<VALUE> | DDialogSelectSearchFunction<VALUE>;
|
|
25
|
+
export interface DDialogSelectController<VALUE, CATEGORY, CATEGORY_ID> {
|
|
26
|
+
search: DDialogSelectSearch<VALUE, CATEGORY, CATEGORY_ID> | DDialogSelectSearchFunction<VALUE, CATEGORY, CATEGORY_ID>;
|
|
27
|
+
getCategories?: () => Promise<CATEGORY[]>;
|
|
25
28
|
}
|
|
26
29
|
/**
|
|
27
30
|
* {@link DDialogSelect} note options.
|
|
@@ -39,6 +42,13 @@ export declare type DDialogSelectItemIsEqual<VALUE> = (a: VALUE, b: VALUE, calle
|
|
|
39
42
|
export interface DDialogSelectEvents<VALUE, EMITTER> extends DDialogLayeredEvents<VALUE, EMITTER> {
|
|
40
43
|
select(value: VALUE, self: EMITTER): void;
|
|
41
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* {@link DDialogSelect} category options.
|
|
47
|
+
*/
|
|
48
|
+
export interface DDialogSelectCategoryOptions<VALUE, CATEGORY, CATEGORY_ID> extends DSelectOptions<CATEGORY_ID> {
|
|
49
|
+
toId?: (category: CATEGORY) => CATEGORY_ID;
|
|
50
|
+
toLabel?: (category: CATEGORY) => string;
|
|
51
|
+
}
|
|
42
52
|
/**
|
|
43
53
|
* {@link DDialogSelect} "on" options.
|
|
44
54
|
*/
|
|
@@ -47,9 +57,10 @@ export interface DDialogSelectOnOptions<VALUE, EMITTER> extends Partial<DDialogS
|
|
|
47
57
|
/**
|
|
48
58
|
* {@link DDialogSelect} options.
|
|
49
59
|
*/
|
|
50
|
-
export interface DDialogSelectOptions<VALUE, THEME extends DThemeDialogSelect<VALUE> = DThemeDialogSelect<VALUE>, EMITTER = any> extends DDialogLayeredOptions<VALUE, THEME> {
|
|
51
|
-
controller?: DDialogSelectController<VALUE>;
|
|
52
|
-
|
|
60
|
+
export interface DDialogSelectOptions<VALUE, CATEGORY = unknown, CATEGORY_ID = unknown, THEME extends DThemeDialogSelect<VALUE, CATEGORY, CATEGORY_ID> = DThemeDialogSelect<VALUE, CATEGORY, CATEGORY_ID>, EMITTER = any> extends DDialogLayeredOptions<VALUE, THEME> {
|
|
61
|
+
controller?: DDialogSelectController<VALUE, CATEGORY, CATEGORY_ID>;
|
|
62
|
+
category?: DDialogSelectCategoryOptions<VALUE, CATEGORY, CATEGORY_ID>;
|
|
63
|
+
dismiss?: DDialogSelectSearhDismissableOptions<VALUE, CATEGORY, CATEGORY_ID>;
|
|
53
64
|
input?: DDialogSelectInputOpitons;
|
|
54
65
|
list?: DListOptions<VALUE>;
|
|
55
66
|
note?: DDialogSelectNoteOptions;
|
|
@@ -58,27 +69,40 @@ export interface DDialogSelectOptions<VALUE, THEME extends DThemeDialogSelect<VA
|
|
|
58
69
|
/**
|
|
59
70
|
* {@link DDialogSelect} theme.
|
|
60
71
|
*/
|
|
61
|
-
export interface DThemeDialogSelect<VALUE = unknown> extends DThemeDialogLayered {
|
|
72
|
+
export interface DThemeDialogSelect<VALUE = unknown, CATEGORY = unknown, CATEGORY_ID = unknown> extends DThemeDialogLayered {
|
|
62
73
|
getInputMargin(): number;
|
|
74
|
+
toCategoryId(category: CATEGORY): CATEGORY_ID;
|
|
75
|
+
toCategoryLabel(category: CATEGORY): string;
|
|
63
76
|
}
|
|
64
|
-
export declare class DDialogSelect<VALUE = unknown, THEME extends DThemeDialogSelect<VALUE> = DThemeDialogSelect<VALUE>, OPTIONS extends DDialogSelectOptions<VALUE, THEME> = DDialogSelectOptions<VALUE, THEME>> extends DDialogLayered<VALUE | null, THEME, OPTIONS> {
|
|
77
|
+
export declare class DDialogSelect<VALUE = unknown, CATEGORY = unknown, CATEGORY_ID = unknown, THEME extends DThemeDialogSelect<VALUE, CATEGORY, CATEGORY_ID> = DThemeDialogSelect<VALUE, CATEGORY, CATEGORY_ID>, OPTIONS extends DDialogSelectOptions<VALUE, CATEGORY, CATEGORY_ID, THEME> = DDialogSelectOptions<VALUE, CATEGORY, CATEGORY_ID, THEME>> extends DDialogLayered<VALUE | null, THEME, OPTIONS> {
|
|
65
78
|
protected _value: VALUE | null;
|
|
79
|
+
protected _spaceLeft?: DLayoutSpace;
|
|
80
|
+
protected _spaceRight?: DLayoutSpace;
|
|
81
|
+
protected _selectCategory?: DSelect<CATEGORY_ID> | null;
|
|
82
|
+
protected _isCategoryFetched?: boolean;
|
|
66
83
|
protected _input?: DInputSearch;
|
|
67
84
|
protected _inputLayout?: DLayoutHorizontal;
|
|
68
85
|
protected _list?: DDialogSelectList<VALUE>;
|
|
69
|
-
protected _search?: DDialogSelectSearch<VALUE>;
|
|
86
|
+
protected _search?: DDialogSelectSearch<VALUE, CATEGORY, CATEGORY_ID>;
|
|
70
87
|
protected _noteError?: DNote | null;
|
|
71
88
|
protected _noteNoItemsFound?: DNote | null;
|
|
72
89
|
protected _noteSearching?: DNote | null;
|
|
73
90
|
constructor(options?: OPTIONS);
|
|
74
91
|
protected newContentChildren(theme: THEME, options?: OPTIONS): Array<DisplayObject | null>;
|
|
75
92
|
protected get inputLayout(): DLayoutHorizontal;
|
|
76
|
-
protected newInputLayout(
|
|
77
|
-
protected
|
|
93
|
+
protected newInputLayout(): DLayoutHorizontal;
|
|
94
|
+
protected get spaceLeft(): DLayoutSpace;
|
|
95
|
+
protected get spaceRight(): DLayoutSpace;
|
|
96
|
+
protected newSpace(): DLayoutSpace;
|
|
97
|
+
protected get selectCategory(): DSelect<CATEGORY_ID> | null;
|
|
98
|
+
protected newSelectCategory(): DSelect<CATEGORY_ID> | null;
|
|
99
|
+
protected toSelectCategoryOptions(theme: THEME, options?: OPTIONS): DSelectOptions<CATEGORY_ID>;
|
|
100
|
+
protected onSelectCategoryChange(categoryId: CATEGORY_ID): void;
|
|
78
101
|
get input(): DInputSearch;
|
|
79
102
|
protected newInput(): DInputSearch;
|
|
80
103
|
protected toInputOptions(theme: THEME, options?: OPTIONS): DInputSearchOptions;
|
|
81
104
|
protected toInputMargin(theme: THEME, options?: OPTIONS): number;
|
|
105
|
+
protected onInputInput(value: string): void;
|
|
82
106
|
get list(): DDialogSelectList<VALUE>;
|
|
83
107
|
protected newList(): DDialogSelectList<VALUE>;
|
|
84
108
|
protected onListSelectionChange(selection: DListDataSelection<VALUE>): void;
|
|
@@ -90,13 +114,17 @@ export declare class DDialogSelect<VALUE = unknown, THEME extends DThemeDialogSe
|
|
|
90
114
|
protected get noteSearching(): DNote | null;
|
|
91
115
|
protected newNoteSearching(): DNote | null;
|
|
92
116
|
protected toNoteOptions(parent: DBase, options?: DNoteOptions): DNoteOptions;
|
|
93
|
-
protected get search(): DDialogSelectSearch<VALUE>;
|
|
94
|
-
protected newSearch(): DDialogSelectSearch<VALUE>;
|
|
117
|
+
protected get search(): DDialogSelectSearch<VALUE, CATEGORY, CATEGORY_ID>;
|
|
118
|
+
protected newSearch(): DDialogSelectSearch<VALUE, CATEGORY, CATEGORY_ID>;
|
|
95
119
|
get value(): VALUE | null;
|
|
96
120
|
protected onSearched(results: VALUE[]): void;
|
|
97
121
|
protected getResolvedValue(): VALUE | null | PromiseLike<VALUE | null>;
|
|
98
122
|
protected getType(): string;
|
|
99
123
|
protected onOpen(): void;
|
|
124
|
+
protected onCategoryFetched(selectCategory: DSelect<CATEGORY_ID>, categories: CATEGORY[]): void;
|
|
125
|
+
protected toCategoryId(target: CATEGORY): CATEGORY_ID;
|
|
126
|
+
protected toCategoryLabel(target: CATEGORY): string;
|
|
127
|
+
protected findCategories(): Promise<CATEGORY[]> | CATEGORY[] | null;
|
|
100
128
|
protected onOk(value: VALUE | null | PromiseLike<VALUE | null>): void;
|
|
101
129
|
destroy(): void;
|
|
102
130
|
}
|
|
@@ -6,7 +6,7 @@ export interface DThemeTableBodyCellInputTreeInput extends DThemeInputText {
|
|
|
6
6
|
}
|
|
7
7
|
export declare class DTableBodyCellInputTreeInput<THEME extends DThemeTableBodyCellInputTreeInput = DThemeTableBodyCellInputTreeInput, OPTIONS extends DTableBodyCellInputTreeInputOptions<THEME> = DTableBodyCellInputTreeInputOptions<THEME>> extends DInputText<THEME, OPTIONS> {
|
|
8
8
|
protected _padding: DBasePaddingAdjustable;
|
|
9
|
-
|
|
9
|
+
protected newPadding(theme: THEME, options?: OPTIONS, callback?: () => void): DBasePaddingAdjustable;
|
|
10
10
|
get padding(): DBasePaddingAdjustable;
|
|
11
11
|
protected getType(): string;
|
|
12
12
|
}
|
|
@@ -15,6 +15,7 @@ export declare class DTableBodyCellTree<ROW, VALUE = unknown, THEME extends DThe
|
|
|
15
15
|
protected _padding: DBasePaddingAdjustable;
|
|
16
16
|
protected _link?: DLink | null;
|
|
17
17
|
constructor(columnIndex: number, column: DTableColumn<ROW, VALUE | null>, onChange: DTableBodyCellOnChange<ROW, VALUE | null>, options?: OPTIONS);
|
|
18
|
+
protected newPadding(theme: THEME, options?: OPTIONS, callback?: () => void): DBasePaddingAdjustable;
|
|
18
19
|
protected onClick(e: interaction.InteractionEvent): void;
|
|
19
20
|
get link(): DLink | null;
|
|
20
21
|
protected newLink(): DLink | null;
|
|
@@ -44,6 +44,7 @@ export declare class DTreeItemText<NODE extends DTreeNode = DTreeNode, THEME ext
|
|
|
44
44
|
protected _node?: NODE;
|
|
45
45
|
protected _index?: number;
|
|
46
46
|
constructor(data: DTreeData<NODE>, options?: OPTIONS);
|
|
47
|
+
protected newPadding(theme: THEME, options?: OPTIONS, callback?: () => void): DBasePaddingAdjustable;
|
|
47
48
|
get node(): NODE | undefined;
|
|
48
49
|
get value(): NODE | undefined;
|
|
49
50
|
get index(): number | undefined;
|
|
@@ -6,4 +6,6 @@ export declare class DThemeDarkDialogSelect<VALUE> extends DThemeDarkDialogLayer
|
|
|
6
6
|
getWidth(): DCoordinateSize;
|
|
7
7
|
getFooter(): DDialogLayeredFooterOptions | undefined | null;
|
|
8
8
|
getInputMargin(): number;
|
|
9
|
+
toCategoryId(category: unknown): unknown;
|
|
10
|
+
toCategoryLabel(category: unknown): string;
|
|
9
11
|
}
|
|
@@ -6,4 +6,6 @@ export declare class DThemeWhiteDialogSelect<VALUE> extends DThemeWhiteDialogLay
|
|
|
6
6
|
getWidth(): DCoordinateSize;
|
|
7
7
|
getFooter(): DDialogLayeredFooterOptions | undefined | null;
|
|
8
8
|
getInputMargin(): number;
|
|
9
|
+
toCategoryId(category: unknown): unknown;
|
|
10
|
+
toCategoryLabel(category: unknown): string;
|
|
9
11
|
}
|
|
@@ -31,6 +31,7 @@ export * from "./number-formatters";
|
|
|
31
31
|
export * from "./to-ceiling-index";
|
|
32
32
|
export * from "./to-cloned";
|
|
33
33
|
export * from "./to-enum";
|
|
34
|
+
export * from "./to-id";
|
|
34
35
|
export * from "./to-index-of";
|
|
35
36
|
export * from "./to-label";
|
|
36
37
|
export * from "./to-merged";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const toId: (target: any) => unknown;
|
|
@@ -2,128 +2,67 @@
|
|
|
2
2
|
* Copyright (C) 2019 Toshiba Corporation
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
|
+
import { __extends } from "tslib";
|
|
5
6
|
import { DBasePadding } from "./d-base-padding";
|
|
6
|
-
var DBasePaddingAdjustable = /** @class */ (function () {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
7
|
+
var DBasePaddingAdjustable = /** @class */ (function (_super) {
|
|
8
|
+
__extends(DBasePaddingAdjustable, _super);
|
|
9
|
+
function DBasePaddingAdjustable(theme, options, callback) {
|
|
10
|
+
var _this = _super.call(this, theme, options, callback) || this;
|
|
11
|
+
_this._atop = 0;
|
|
12
|
+
_this._aright = 0;
|
|
13
|
+
_this._abottom = 0;
|
|
14
|
+
_this._aleft = 0;
|
|
15
|
+
return _this;
|
|
16
16
|
}
|
|
17
|
-
DBasePaddingAdjustable.prototype.getTheme = function () {
|
|
18
|
-
return this._target.getTheme();
|
|
19
|
-
};
|
|
20
|
-
DBasePaddingAdjustable.prototype.setTheme = function (theme) {
|
|
21
|
-
this._target.setTheme(theme);
|
|
22
|
-
};
|
|
23
17
|
DBasePaddingAdjustable.prototype.getLeft = function () {
|
|
24
|
-
return
|
|
18
|
+
return _super.prototype.getLeft.call(this) + this._aleft;
|
|
25
19
|
};
|
|
26
|
-
DBasePaddingAdjustable.prototype.adjLeft = function (
|
|
27
|
-
if (this.
|
|
28
|
-
this.
|
|
20
|
+
DBasePaddingAdjustable.prototype.adjLeft = function (aleft) {
|
|
21
|
+
if (this._aleft !== aleft) {
|
|
22
|
+
this._aleft = aleft;
|
|
29
23
|
var callback = this._callback;
|
|
30
24
|
if (callback) {
|
|
31
25
|
callback();
|
|
32
26
|
}
|
|
33
27
|
}
|
|
34
28
|
};
|
|
35
|
-
Object.defineProperty(DBasePaddingAdjustable.prototype, "left", {
|
|
36
|
-
get: function () {
|
|
37
|
-
return this._target.left;
|
|
38
|
-
},
|
|
39
|
-
set: function (left) {
|
|
40
|
-
this._target.left = left;
|
|
41
|
-
},
|
|
42
|
-
enumerable: false,
|
|
43
|
-
configurable: true
|
|
44
|
-
});
|
|
45
29
|
DBasePaddingAdjustable.prototype.getTop = function () {
|
|
46
|
-
return
|
|
30
|
+
return _super.prototype.getTop.call(this) + this._atop;
|
|
47
31
|
};
|
|
48
|
-
DBasePaddingAdjustable.prototype.adjTop = function (
|
|
49
|
-
if (this.
|
|
50
|
-
this.
|
|
32
|
+
DBasePaddingAdjustable.prototype.adjTop = function (atop) {
|
|
33
|
+
if (this._atop !== atop) {
|
|
34
|
+
this._atop = atop;
|
|
51
35
|
var callback = this._callback;
|
|
52
36
|
if (callback) {
|
|
53
37
|
callback();
|
|
54
38
|
}
|
|
55
39
|
}
|
|
56
40
|
};
|
|
57
|
-
Object.defineProperty(DBasePaddingAdjustable.prototype, "top", {
|
|
58
|
-
get: function () {
|
|
59
|
-
return this._target.top;
|
|
60
|
-
},
|
|
61
|
-
set: function (top) {
|
|
62
|
-
this._target.top = top;
|
|
63
|
-
},
|
|
64
|
-
enumerable: false,
|
|
65
|
-
configurable: true
|
|
66
|
-
});
|
|
67
41
|
DBasePaddingAdjustable.prototype.getRight = function () {
|
|
68
|
-
return
|
|
42
|
+
return _super.prototype.getRight.call(this) + this._aright;
|
|
69
43
|
};
|
|
70
|
-
DBasePaddingAdjustable.prototype.adjRight = function (
|
|
71
|
-
if (this.
|
|
72
|
-
this.
|
|
44
|
+
DBasePaddingAdjustable.prototype.adjRight = function (aright) {
|
|
45
|
+
if (this._aright !== aright) {
|
|
46
|
+
this._aright = aright;
|
|
73
47
|
var callback = this._callback;
|
|
74
48
|
if (callback) {
|
|
75
49
|
callback();
|
|
76
50
|
}
|
|
77
51
|
}
|
|
78
52
|
};
|
|
79
|
-
Object.defineProperty(DBasePaddingAdjustable.prototype, "right", {
|
|
80
|
-
get: function () {
|
|
81
|
-
return this._target.right;
|
|
82
|
-
},
|
|
83
|
-
set: function (right) {
|
|
84
|
-
this._target.right = right;
|
|
85
|
-
},
|
|
86
|
-
enumerable: false,
|
|
87
|
-
configurable: true
|
|
88
|
-
});
|
|
89
53
|
DBasePaddingAdjustable.prototype.getBottom = function () {
|
|
90
|
-
return
|
|
54
|
+
return _super.prototype.getBottom.call(this) + this._abottom;
|
|
91
55
|
};
|
|
92
|
-
DBasePaddingAdjustable.prototype.adjBottom = function (
|
|
93
|
-
if (this.
|
|
94
|
-
this.
|
|
56
|
+
DBasePaddingAdjustable.prototype.adjBottom = function (abottom) {
|
|
57
|
+
if (this._abottom !== abottom) {
|
|
58
|
+
this._abottom = abottom;
|
|
95
59
|
var callback = this._callback;
|
|
96
60
|
if (callback) {
|
|
97
61
|
callback();
|
|
98
62
|
}
|
|
99
63
|
}
|
|
100
64
|
};
|
|
101
|
-
Object.defineProperty(DBasePaddingAdjustable.prototype, "bottom", {
|
|
102
|
-
get: function () {
|
|
103
|
-
return this._target.bottom;
|
|
104
|
-
},
|
|
105
|
-
set: function (bottom) {
|
|
106
|
-
this._target.bottom = bottom;
|
|
107
|
-
},
|
|
108
|
-
enumerable: false,
|
|
109
|
-
configurable: true
|
|
110
|
-
});
|
|
111
|
-
DBasePaddingAdjustable.prototype.set = function (top, right, bottom, left) {
|
|
112
|
-
var target = this._target;
|
|
113
|
-
if (right == null) {
|
|
114
|
-
target.set(top);
|
|
115
|
-
}
|
|
116
|
-
else if (bottom == null) {
|
|
117
|
-
target.set(top, right);
|
|
118
|
-
}
|
|
119
|
-
else if (left == null) {
|
|
120
|
-
target.set(top, right, bottom);
|
|
121
|
-
}
|
|
122
|
-
else {
|
|
123
|
-
target.set(top, right, bottom, left);
|
|
124
|
-
}
|
|
125
|
-
};
|
|
126
65
|
return DBasePaddingAdjustable;
|
|
127
|
-
}());
|
|
66
|
+
}(DBasePadding));
|
|
128
67
|
export { DBasePaddingAdjustable };
|
|
129
68
|
//# sourceMappingURL=d-base-padding-adjustable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"d-base-padding-adjustable.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-base-padding-adjustable.ts"],"names":[],"mappings":"AAAA;;;GAGG
|
|
1
|
+
{"version":3,"file":"d-base-padding-adjustable.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-base-padding-adjustable.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD;IAA4C,0CAAY;IAMvD,gCAAY,KAAiB,EAAE,OAA2B,EAAE,QAAqB;QAAjF,YACC,kBAAM,KAAK,EAAE,OAAO,EAAE,QAAQ,CAAC,SAK/B;QAJA,KAAI,CAAC,KAAK,GAAG,CAAC,CAAC;QACf,KAAI,CAAC,OAAO,GAAG,CAAC,CAAC;QACjB,KAAI,CAAC,QAAQ,GAAG,CAAC,CAAC;QAClB,KAAI,CAAC,MAAM,GAAG,CAAC,CAAC;;IACjB,CAAC;IAEQ,wCAAO,GAAhB;QACC,OAAO,iBAAM,OAAO,WAAE,GAAG,IAAI,CAAC,MAAM,CAAC;IACtC,CAAC;IAED,wCAAO,GAAP,UAAQ,KAAa;QACpB,IAAI,IAAI,CAAC,MAAM,KAAK,KAAK,EAAE;YAC1B,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;YACpB,IAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC;YAChC,IAAI,QAAQ,EAAE;gBACb,QAAQ,EAAE,CAAC;aACX;SACD;IACF,CAAC;IAEQ,uCAAM,GAAf;QACC,OAAO,iBAAM,MAAM,WAAE,GAAG,IAAI,CAAC,KAAK,CAAC;IACpC,CAAC;IAED,uCAAM,GAAN,UAAO,IAAY;QAClB,IAAI,IAAI,CAAC,KAAK,KAAK,IAAI,EAAE;YACxB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;YAClB,IAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC;YAChC,IAAI,QAAQ,EAAE;gBACb,QAAQ,EAAE,CAAC;aACX;SACD;IACF,CAAC;IAEQ,yCAAQ,GAAjB;QACC,OAAO,iBAAM,QAAQ,WAAE,GAAG,IAAI,CAAC,OAAO,CAAC;IACxC,CAAC;IAED,yCAAQ,GAAR,UAAS,MAAc;QACtB,IAAI,IAAI,CAAC,OAAO,KAAK,MAAM,EAAE;YAC5B,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;YACtB,IAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC;YAChC,IAAI,QAAQ,EAAE;gBACb,QAAQ,EAAE,CAAC;aACX;SACD;IACF,CAAC;IAEQ,0CAAS,GAAlB;QACC,OAAO,iBAAM,SAAS,WAAE,GAAG,IAAI,CAAC,QAAQ,CAAC;IAC1C,CAAC;IAED,0CAAS,GAAT,UAAU,OAAe;QACxB,IAAI,IAAI,CAAC,QAAQ,KAAK,OAAO,EAAE;YAC9B,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;YACxB,IAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC;YAChC,IAAI,QAAQ,EAAE;gBACb,QAAQ,EAAE,CAAC;aACX;SACD;IACF,CAAC;IACF,6BAAC;AAAD,CAAC,AArED,CAA4C,YAAY,GAqEvD","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DBaseOptions, DThemeBase } from \"./d-base\";\nimport { DBasePadding } from \"./d-base-padding\";\n\nexport class DBasePaddingAdjustable extends DBasePadding {\n\tprotected _atop: number;\n\tprotected _aright: number;\n\tprotected _abottom: number;\n\tprotected _aleft: number;\n\n\tconstructor(theme: DThemeBase, options?: DBaseOptions<any>, callback?: () => void) {\n\t\tsuper(theme, options, callback);\n\t\tthis._atop = 0;\n\t\tthis._aright = 0;\n\t\tthis._abottom = 0;\n\t\tthis._aleft = 0;\n\t}\n\n\toverride getLeft(): number {\n\t\treturn super.getLeft() + this._aleft;\n\t}\n\n\tadjLeft(aleft: number): void {\n\t\tif (this._aleft !== aleft) {\n\t\t\tthis._aleft = aleft;\n\t\t\tconst callback = this._callback;\n\t\t\tif (callback) {\n\t\t\t\tcallback();\n\t\t\t}\n\t\t}\n\t}\n\n\toverride getTop(): number {\n\t\treturn super.getTop() + this._atop;\n\t}\n\n\tadjTop(atop: number): void {\n\t\tif (this._atop !== atop) {\n\t\t\tthis._atop = atop;\n\t\t\tconst callback = this._callback;\n\t\t\tif (callback) {\n\t\t\t\tcallback();\n\t\t\t}\n\t\t}\n\t}\n\n\toverride getRight(): number {\n\t\treturn super.getRight() + this._aright;\n\t}\n\n\tadjRight(aright: number): void {\n\t\tif (this._aright !== aright) {\n\t\t\tthis._aright = aright;\n\t\t\tconst callback = this._callback;\n\t\t\tif (callback) {\n\t\t\t\tcallback();\n\t\t\t}\n\t\t}\n\t}\n\n\toverride getBottom(): number {\n\t\treturn super.getBottom() + this._abottom;\n\t}\n\n\tadjBottom(abottom: number): void {\n\t\tif (this._abottom !== abottom) {\n\t\t\tthis._abottom = abottom;\n\t\t\tconst callback = this._callback;\n\t\t\tif (callback) {\n\t\t\t\tcallback();\n\t\t\t}\n\t\t}\n\t}\n}\n"]}
|
|
@@ -90,7 +90,8 @@ var DBase = /** @class */ (function (_super) {
|
|
|
90
90
|
_this._snippet = new DBaseSnippetContainer(_this);
|
|
91
91
|
_this._reflowable = new DBaseReflowableContainer();
|
|
92
92
|
_this._clearType = toEnum((_b = options === null || options === void 0 ? void 0 : options.clear) !== null && _b !== void 0 ? _b : theme.getClearType(), DLayoutClearType);
|
|
93
|
-
_this._padding =
|
|
93
|
+
_this._padding = _this.newPadding(theme, options, function () {
|
|
94
|
+
_this.toDirty();
|
|
94
95
|
_this.toParentResized();
|
|
95
96
|
_this.toHierarchyDirty();
|
|
96
97
|
DApplications.update(_this);
|
|
@@ -336,6 +337,9 @@ var DBase = /** @class */ (function (_super) {
|
|
|
336
337
|
_this.emit("init", _this);
|
|
337
338
|
return _this;
|
|
338
339
|
}
|
|
340
|
+
DBase.prototype.newPadding = function (theme, options, callback) {
|
|
341
|
+
return new DBasePadding(theme, options, callback);
|
|
342
|
+
};
|
|
339
343
|
DBase.prototype.toCursor = function (cursor, state) {
|
|
340
344
|
if (cursor) {
|
|
341
345
|
if (isFunction(cursor)) {
|