@vertexvis/ui 0.1.0-canary.2 → 0.1.0-canary.21
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/{color-circle-picker-13396ec4.js → color-circle-picker-a8f9a80a.js} +1 -1
- package/dist/cjs/color-picker-2a4820fa.js +46 -0
- package/dist/cjs/{color-circle-05be54bf.js → color-swatch-8aaf6c0b.js} +42 -17
- package/dist/cjs/components.cjs.js +1 -1
- package/dist/cjs/{dialog-88e2308a.js → dialog-34f1dd6e.js} +1 -1
- package/dist/cjs/dom-b6c5fbf4.js +13 -0
- package/dist/cjs/{icon-button-786427d6.js → icon-button-2256a63a.js} +1 -1
- package/dist/cjs/{icon-460fd0f5.js → icon-c3ab7a57.js} +1 -1
- package/dist/cjs/{icon-helper-ba408f49.js → icon-helper-35893713.js} +60 -0
- package/dist/cjs/index.cjs.js +20 -14
- package/dist/cjs/lib-1bd1e383.js +9 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{popover-d9ec8e10.js → popover-942209b8.js} +23 -1
- package/dist/cjs/{result-list-1e592c3c.js → result-list-241ffe8d.js} +46 -2
- package/dist/cjs/search-bar-2e7ee35a.js +527 -0
- package/dist/cjs/{select-0eb7203f.js → select-2b2bdb97.js} +27 -4
- package/dist/cjs/tab-4335cd8f.js +26 -0
- package/dist/cjs/tabs-ece62a01.js +111 -0
- package/dist/cjs/{text-field-0397fb34.js → text-field-bccbde1f.js} +1 -0
- package/dist/cjs/{tooltip-80a7b722.js → tooltip-9ac797a0.js} +59 -23
- package/dist/cjs/vertex-color-circle-picker.cjs.entry.js +1 -1
- package/dist/cjs/vertex-color-picker.cjs.entry.js +2 -1
- package/dist/cjs/vertex-color-swatch.cjs.entry.js +12 -0
- package/dist/cjs/vertex-dialog.cjs.entry.js +1 -1
- package/dist/cjs/vertex-icon-button.cjs.entry.js +2 -2
- package/dist/cjs/vertex-icon.cjs.entry.js +2 -2
- package/dist/cjs/vertex-popover.cjs.entry.js +1 -1
- package/dist/cjs/vertex-result-list.cjs.entry.js +1 -1
- package/dist/cjs/vertex-search-bar.cjs.entry.js +1 -1
- package/dist/cjs/vertex-select.cjs.entry.js +1 -1
- package/dist/cjs/{vertex-color-circle.cjs.entry.js → vertex-tab.cjs.entry.js} +3 -2
- package/dist/cjs/vertex-tabs.cjs.entry.js +12 -0
- package/dist/cjs/vertex-textfield.cjs.entry.js +1 -1
- package/dist/cjs/vertex-tooltip.cjs.entry.js +2 -1
- package/dist/collection/collection-manifest.json +5 -3
- package/dist/collection/components/color-circle-picker/color-circle-picker.js +7 -7
- package/dist/collection/components/color-picker/color-picker.css +95 -15
- package/dist/collection/components/color-picker/color-picker.js +57 -3
- package/dist/collection/components/color-swatch/color-swatch.css +43 -0
- package/dist/collection/components/{color-circle/color-circle.js → color-swatch/color-swatch.js} +96 -23
- package/dist/collection/components/color-swatch/lib.js +5 -0
- package/dist/collection/components/dialog/dialog.css +0 -1
- package/dist/collection/components/icon/icon-helper.js +33 -0
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/icon/icons/caution.js +2 -0
- package/dist/collection/components/icon/icons/compare.js +2 -0
- package/dist/collection/components/icon/icons/compress.js +2 -0
- package/dist/collection/components/icon/icons/cube-stack.js +2 -0
- package/dist/collection/components/icon/icons/expand.js +2 -0
- package/dist/collection/components/icon/icons/pin-text-square.js +2 -0
- package/dist/collection/components/icon/icons/plus-with-arrow.js +2 -0
- package/dist/collection/components/icon/icons/pmi.js +2 -0
- package/dist/collection/components/icon/icons/square-dot-outline.js +2 -0
- package/dist/collection/components/icon/icons/update.js +2 -0
- package/dist/collection/components/icon/icons/views.js +2 -0
- package/dist/collection/components/icon-button/icon-button.js +1 -1
- package/dist/collection/components/index.js +3 -1
- package/dist/collection/components/menu/menu.js +1 -1
- package/dist/collection/components/popover/popover.js +51 -0
- package/dist/collection/components/result-list/result-list.js +52 -5
- package/dist/collection/components/result-list/types.js +1 -0
- package/dist/collection/components/search-bar/dom.js +29 -0
- package/dist/collection/components/search-bar/lib.js +76 -15
- package/dist/collection/components/search-bar/search-bar.css +0 -16
- package/dist/collection/components/search-bar/search-bar.js +429 -320
- package/dist/collection/components/select/select.css +24 -0
- package/dist/collection/components/select/select.js +49 -2
- package/dist/collection/components/tab/tab.css +16 -0
- package/dist/collection/components/tab/tab.js +85 -0
- package/dist/collection/components/tab/util.js +3 -0
- package/dist/collection/components/tabs/tabs.css +67 -0
- package/dist/collection/components/tabs/tabs.js +159 -0
- package/dist/collection/components/text-field/text-field.js +1 -0
- package/dist/collection/components/tooltip/tooltip.js +62 -18
- package/dist/collection/types/icon.js +11 -0
- package/dist/collection/util/templates/element-pool.js +19 -1
- package/dist/components/components.css +1 -1
- package/dist/components/components.esm.js +1 -1
- package/dist/components/index.esm.js +1 -1
- package/dist/components/p-036a0be0.js +1 -0
- package/dist/components/{p-165aed7d.js → p-0d4a0d61.js} +1 -1
- package/dist/components/{p-9374ef6c.js → p-1367d3af.js} +1 -1
- package/dist/components/{p-103249b4.js → p-1971ed0b.js} +1 -1
- package/dist/components/p-1d08dd79.entry.js +1 -0
- package/dist/components/p-2ae8175d.entry.js +1 -0
- package/dist/components/p-2b4aedaa.entry.js +1 -0
- package/dist/components/p-3438c441.js +1 -0
- package/dist/components/p-3dd7a75f.entry.js +1 -0
- package/dist/components/p-406e73da.entry.js +1 -0
- package/dist/components/p-4327deea.js +1 -0
- package/dist/components/p-43b1b3f9.js +1 -0
- package/dist/components/p-49db6547.entry.js +1 -0
- package/dist/components/p-606596de.entry.js +1 -0
- package/dist/components/{p-ca52a423.js → p-63b48634.js} +1 -1
- package/dist/components/p-655053df.js +1 -0
- package/dist/components/p-69496858.js +1 -0
- package/dist/components/p-6a49c365.entry.js +1 -0
- package/dist/components/p-6b6c2260.js +1 -0
- package/dist/components/p-6b862967.js +1 -0
- package/dist/components/p-76b961b8.js +1 -0
- package/dist/components/p-8bbc344d.entry.js +1 -0
- package/dist/components/p-96f55673.js +1 -0
- package/dist/components/p-a0eac69c.entry.js +1 -0
- package/dist/components/p-bc2fbd68.entry.js +1 -0
- package/dist/components/p-c2706288.js +1 -0
- package/dist/components/p-d3fd9ca3.entry.js +1 -0
- package/dist/components/p-d539f530.js +1 -0
- package/dist/components/p-e35057b5.entry.js +1 -0
- package/dist/components/p-ee496965.entry.js +1 -0
- package/dist/components/p-ff7c70b9.js +1 -0
- package/dist/esm/{color-circle-picker-998a7e9c.js → color-circle-picker-e2a2cfb5.js} +1 -1
- package/dist/esm/color-picker-1d67effe.js +44 -0
- package/dist/esm/{color-circle-842f3321.js → color-swatch-0e62d13d.js} +42 -17
- package/dist/esm/components.js +1 -1
- package/dist/esm/{dialog-e3f49527.js → dialog-1cef715c.js} +1 -1
- package/dist/esm/dom-613e2677.js +10 -0
- package/dist/esm/{icon-d37150b4.js → icon-55b22de7.js} +1 -1
- package/dist/esm/{icon-button-aad3c0e7.js → icon-button-e6c72aec.js} +1 -1
- package/dist/esm/{icon-helper-83f10f73.js → icon-helper-67de1067.js} +60 -0
- package/dist/esm/index.js +17 -13
- package/dist/esm/lib-73fbca8b.js +7 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{popover-67c88e4b.js → popover-6e806354.js} +23 -1
- package/dist/esm/{result-list-36cfb08a.js → result-list-16c6afbd.js} +46 -2
- package/dist/esm/search-bar-8d18626e.js +525 -0
- package/dist/esm/{select-75ed5653.js → select-78aeff96.js} +27 -4
- package/dist/esm/tab-c76332b0.js +24 -0
- package/dist/esm/tabs-8e5353ba.js +109 -0
- package/dist/esm/{text-field-e542da25.js → text-field-32ac877e.js} +1 -0
- package/dist/esm/{tooltip-97c1b3ec.js → tooltip-29278ea4.js} +58 -22
- package/dist/esm/vertex-color-circle-picker.entry.js +1 -1
- package/dist/esm/vertex-color-picker.entry.js +2 -1
- package/dist/esm/vertex-color-swatch.entry.js +4 -0
- package/dist/esm/vertex-dialog.entry.js +1 -1
- package/dist/esm/vertex-icon-button.entry.js +2 -2
- package/dist/esm/vertex-icon.entry.js +2 -2
- package/dist/esm/vertex-popover.entry.js +1 -1
- package/dist/esm/vertex-result-list.entry.js +1 -1
- package/dist/esm/vertex-search-bar.entry.js +1 -1
- package/dist/esm/vertex-select.entry.js +1 -1
- package/dist/esm/vertex-tab.entry.js +3 -0
- package/dist/esm/vertex-tabs.entry.js +4 -0
- package/dist/esm/vertex-textfield.entry.js +1 -1
- package/dist/esm/vertex-tooltip.entry.js +2 -1
- package/dist/types/components/color-circle-picker/color-circle-picker.d.ts +7 -7
- package/dist/types/components/color-picker/color-picker.d.ts +19 -0
- package/dist/types/components/{color-circle/color-circle.d.ts → color-swatch/color-swatch.d.ts} +23 -5
- package/dist/types/components/color-swatch/lib.d.ts +1 -0
- package/dist/types/components/icon/icons/caution.d.ts +3 -0
- package/dist/types/components/icon/icons/compare.d.ts +3 -0
- package/dist/types/components/icon/icons/compress.d.ts +3 -0
- package/dist/types/components/icon/icons/cube-stack.d.ts +3 -0
- package/dist/types/components/icon/icons/expand.d.ts +3 -0
- package/dist/types/components/icon/icons/pin-text-square.d.ts +3 -0
- package/dist/types/components/icon/icons/plus-with-arrow.d.ts +3 -0
- package/dist/types/components/icon/icons/pmi.d.ts +3 -0
- package/dist/types/components/icon/icons/square-dot-outline.d.ts +3 -0
- package/dist/types/components/icon/icons/update.d.ts +3 -0
- package/dist/types/components/icon/icons/views.d.ts +3 -0
- package/dist/types/components/index.d.ts +3 -1
- package/dist/types/components/popover/popover.d.ts +7 -0
- package/dist/types/components/result-list/result-list.d.ts +6 -1
- package/dist/types/components/result-list/types.d.ts +4 -0
- package/dist/types/components/search-bar/dom.d.ts +8 -0
- package/dist/types/components/search-bar/lib.d.ts +31 -6
- package/dist/types/components/search-bar/search-bar.d.ts +125 -42
- package/dist/types/components/select/select.d.ts +8 -0
- package/dist/types/components/tab/tab.d.ts +11 -0
- package/dist/types/components/tab/util.d.ts +1 -0
- package/dist/types/components/tabs/tabs.d.ts +23 -0
- package/dist/types/components/tooltip/tooltip.d.ts +7 -0
- package/dist/types/components.d.ts +254 -96
- package/dist/types/types/icon.d.ts +11 -0
- package/dist/types/util/templates/element-pool.d.ts +10 -1
- package/package.json +4 -3
- package/dist/cjs/color-picker-876ace00.js +0 -37
- package/dist/cjs/search-bar-bb40cfa7.js +0 -290
- package/dist/collection/components/color-circle/color-circle.css +0 -18
- package/dist/components/p-03dbb28c.js +0 -1
- package/dist/components/p-0f8b9ede.entry.js +0 -1
- package/dist/components/p-19318fee.entry.js +0 -1
- package/dist/components/p-1d6cb015.entry.js +0 -1
- package/dist/components/p-209db2ba.entry.js +0 -1
- package/dist/components/p-20a74d5d.entry.js +0 -1
- package/dist/components/p-35e7ab78.entry.js +0 -1
- package/dist/components/p-4224c2ad.js +0 -1
- package/dist/components/p-52739247.js +0 -1
- package/dist/components/p-552c128f.js +0 -1
- package/dist/components/p-6505cdb3.js +0 -1
- package/dist/components/p-7dba2574.entry.js +0 -1
- package/dist/components/p-7f64b251.entry.js +0 -1
- package/dist/components/p-8434602f.js +0 -1
- package/dist/components/p-ae6a3c46.entry.js +0 -1
- package/dist/components/p-bd11e7d1.js +0 -1
- package/dist/components/p-d9b9aebe.js +0 -1
- package/dist/components/p-e576818b.entry.js +0 -1
- package/dist/components/p-ebabee40.entry.js +0 -1
- package/dist/components/p-f49a7ffd.js +0 -1
- package/dist/components/p-f71fc166.entry.js +0 -1
- package/dist/esm/color-picker-2e3b51fa.js +0 -35
- package/dist/esm/search-bar-59cc151d.js +0 -288
- package/dist/esm/vertex-color-circle.entry.js +0 -2
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const getWindowSelection: () => Selection | undefined | null;
|
|
2
|
+
export declare const nodeHasChildNodes: (node: Node) => boolean;
|
|
3
|
+
export declare const createDocumentRange: () => Range;
|
|
4
|
+
export declare const createTextNode: (text: string) => Text;
|
|
5
|
+
export declare const createBreak: () => HTMLBRElement;
|
|
6
|
+
export declare const createWrappingDiv: (nodes: Node[]) => HTMLDivElement;
|
|
7
|
+
export declare const isHtmlElement: (node?: Node | EventTarget | null) => node is HTMLElement;
|
|
8
|
+
export declare const isBrElement: (node: Node) => node is HTMLBRElement;
|
|
@@ -1,6 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { Result } from '../result-list/types';
|
|
2
|
+
export interface SearchResultReplacement {
|
|
3
|
+
before: Text;
|
|
4
|
+
beforeSpace: Text;
|
|
5
|
+
result: Text;
|
|
6
|
+
afterSpace: Text;
|
|
7
|
+
after?: Text;
|
|
8
|
+
}
|
|
9
|
+
export declare const createResultUri: (result: Result) => string;
|
|
10
|
+
export declare const createSearchResultReplacement: (result: Result, before: string, after?: string) => SearchResultReplacement;
|
|
11
|
+
/**
|
|
12
|
+
* Newline characters and spaces are represented slightly differently within a
|
|
13
|
+
* content editable element between browsers. This method standardizes the
|
|
14
|
+
* representation of those characters to avoid having to write branching logic
|
|
15
|
+
* to support each individual browser.
|
|
16
|
+
*/
|
|
17
|
+
export declare const standardizeNewlinesAndSpaces: (node: ChildNode) => ChildNode[];
|
|
18
|
+
export declare const getNodesForSearchResultReplacement: (replacement: SearchResultReplacement, isBreaking?: boolean) => Text[];
|
|
19
|
+
/**
|
|
20
|
+
* We leverage a couple unique spaces to represent mentions, allowing for
|
|
21
|
+
* correct cursor movement when using arrow keys. As these characters are
|
|
22
|
+
* purely for functional behavior of the input, `trimNonstandardSpaces`
|
|
23
|
+
* will remove them so the input is suitable for emitting.
|
|
24
|
+
*
|
|
25
|
+
* U+200A is a "Hair Space" which acts as a space, but is not visually
|
|
26
|
+
* represented as one.
|
|
27
|
+
*
|
|
28
|
+
* U+00A0 is a "No-Break Space" which is commonly added by browsers
|
|
29
|
+
* when interacting with a contenteditable element.
|
|
30
|
+
*/
|
|
31
|
+
export declare const trimNonstandardSpaces: (text: string) => string;
|
|
@@ -1,67 +1,150 @@
|
|
|
1
1
|
import { EventEmitter, h } from '../../stencil-public-runtime';
|
|
2
2
|
import { PopoverPlacement } from '../popover/popover';
|
|
3
|
-
import { Result } from '../result-list/
|
|
3
|
+
import { Result } from '../result-list/types';
|
|
4
4
|
export type SearchBarVariant = 'standard' | 'filled' | 'underlined' | 'blank';
|
|
5
5
|
export declare class SearchBar {
|
|
6
|
+
/**
|
|
7
|
+
* The search bar variant to display.
|
|
8
|
+
*
|
|
9
|
+
* Possible options are:
|
|
10
|
+
* - 'standard' (default)
|
|
11
|
+
* - 'filled'
|
|
12
|
+
* - 'underlined'
|
|
13
|
+
* - 'blank
|
|
14
|
+
*/
|
|
6
15
|
variant: SearchBarVariant;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
16
|
+
/**
|
|
17
|
+
* Whether this search bar is disabled.
|
|
18
|
+
*/
|
|
19
|
+
disabled: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* The character indicating that we should trigger a search.
|
|
22
|
+
*
|
|
23
|
+
* When this character is encountered, the text following it
|
|
24
|
+
* (omitting `breakCharacters`) will be emitted as a `searchChanged`
|
|
25
|
+
* event.
|
|
26
|
+
*/
|
|
27
|
+
triggerCharacter: string;
|
|
28
|
+
/**
|
|
29
|
+
* Characters that should trigger a "break" of the search. If
|
|
30
|
+
* a value in this list is encountered when trying to parse back
|
|
31
|
+
* to the `triggerCharacter`, this will hide the result list.
|
|
32
|
+
*/
|
|
10
33
|
breakCharacters: string[];
|
|
11
|
-
debounce: number;
|
|
12
34
|
/**
|
|
13
|
-
*
|
|
35
|
+
* The items to display in this search bar's `<vertex-result-list>`.
|
|
36
|
+
*
|
|
37
|
+
* This can be used alongside the `searchChanged` event to query for
|
|
38
|
+
* results to display.
|
|
39
|
+
*/
|
|
40
|
+
resultItems?: Result[];
|
|
41
|
+
/**
|
|
42
|
+
* The placement of the result list for this search bar.
|
|
43
|
+
*
|
|
44
|
+
* Corresponds to the value for the underlying <vertex-popover>
|
|
45
|
+
* placement value.
|
|
46
|
+
* @see(PopoverPlacement)
|
|
14
47
|
*/
|
|
15
|
-
placeholder?: string;
|
|
16
48
|
placement: PopoverPlacement;
|
|
17
|
-
triggerCharacterPressed: EventEmitter<string>;
|
|
18
|
-
private cursorPosition?;
|
|
19
|
-
private open;
|
|
20
|
-
private triggerKey?;
|
|
21
|
-
private triggerRange?;
|
|
22
|
-
private hostEl;
|
|
23
49
|
/**
|
|
24
|
-
*
|
|
50
|
+
* The initial value of this search bar. This will be used in
|
|
51
|
+
* combination with the value of `replacements` to display existing
|
|
52
|
+
* replaced values.
|
|
25
53
|
*/
|
|
26
|
-
|
|
54
|
+
value?: string;
|
|
27
55
|
/**
|
|
28
|
-
*
|
|
56
|
+
* A placeholder to display when no text has been entered.
|
|
29
57
|
*/
|
|
30
|
-
|
|
58
|
+
placeholder?: string;
|
|
31
59
|
/**
|
|
32
|
-
*
|
|
60
|
+
* Replaced result values. This will be used in combination with the
|
|
61
|
+
* value of `value` to display existing replaced values.
|
|
62
|
+
*
|
|
63
|
+
* This value will be automatically updated as `Result`s are clicked
|
|
64
|
+
* within this search bar's `<vertex-result-list>`.
|
|
33
65
|
*/
|
|
34
|
-
|
|
66
|
+
replacements: Result[];
|
|
67
|
+
/**
|
|
68
|
+
* The URI type of the values to replace. When `replacements` are
|
|
69
|
+
* evaluated, this value will be used as the scheme portion of the
|
|
70
|
+
* URI to detect matches.
|
|
71
|
+
*
|
|
72
|
+
* Defaults to `user`, and will match URIs composed with the `user`
|
|
73
|
+
* scheme and a UUID. E.g.
|
|
74
|
+
* `user:00000000-0000-0000-0000-000000000000`
|
|
75
|
+
*/
|
|
76
|
+
replacementUriType: string;
|
|
77
|
+
/**
|
|
78
|
+
* Emitted when the value of the current search triggered by
|
|
79
|
+
* the specified `triggerCharacter` has changed.
|
|
80
|
+
*/
|
|
81
|
+
searchChanged: EventEmitter<string>;
|
|
82
|
+
/**
|
|
83
|
+
* Emitted when the value of the input has changed.
|
|
84
|
+
*/
|
|
85
|
+
inputChanged: EventEmitter<string>;
|
|
86
|
+
/**
|
|
87
|
+
* Emitted when a result has been selected to replace the trigger text.
|
|
88
|
+
*
|
|
89
|
+
* Includes the ID of the `Result` selected.
|
|
90
|
+
*/
|
|
91
|
+
resultReplaced: EventEmitter<Result>;
|
|
92
|
+
/**
|
|
93
|
+
* Emitted when the input is focused.
|
|
94
|
+
*/
|
|
95
|
+
inputFocus: EventEmitter<FocusEvent>;
|
|
35
96
|
/**
|
|
36
|
-
* Emitted when
|
|
97
|
+
* Emitted when the input is blurred.
|
|
37
98
|
*/
|
|
38
|
-
|
|
99
|
+
inputBlur: EventEmitter<FocusEvent>;
|
|
100
|
+
private hostEl;
|
|
101
|
+
private cursorPosition?;
|
|
102
|
+
private displayedElements;
|
|
103
|
+
private hasTriggered;
|
|
39
104
|
private contentEl?;
|
|
40
|
-
private
|
|
41
|
-
|
|
105
|
+
private triggeredElement?;
|
|
106
|
+
private triggeredRange?;
|
|
107
|
+
private rawElements;
|
|
108
|
+
private lastReplacedSpace?;
|
|
109
|
+
constructor();
|
|
110
|
+
protected componentDidLoad(): void;
|
|
111
|
+
protected connectedCallback(): void;
|
|
42
112
|
protected disconnectedCallback(): void;
|
|
43
|
-
|
|
44
|
-
|
|
113
|
+
protected replaceContent(newValue?: string, oldValue?: string): void;
|
|
114
|
+
protected updateContent(newValue?: Result[], oldValue?: Result[]): void;
|
|
45
115
|
render(): h.JSX.IntrinsicElements;
|
|
46
116
|
private handleKeyDown;
|
|
47
117
|
private handleKeyUp;
|
|
48
|
-
private
|
|
49
|
-
private
|
|
50
|
-
private
|
|
51
|
-
private clearTriggerTimeout;
|
|
52
|
-
private updateCursorPosition;
|
|
53
|
-
private moveCursorToNodeEnd;
|
|
54
|
-
private updateInputCursorPosition;
|
|
55
|
-
private createReplacedElement;
|
|
56
|
-
private handleSelectionChange;
|
|
57
|
-
private getSelectionSubstring;
|
|
58
|
-
private insertAdjacentTextNode;
|
|
59
|
-
private updateTriggerState;
|
|
60
|
-
private updateTriggerRange;
|
|
61
|
-
private clearTriggerState;
|
|
62
|
-
private lastIndexOfBreakCharacter;
|
|
118
|
+
private handleInput;
|
|
119
|
+
private handleClick;
|
|
120
|
+
private handleWindowClick;
|
|
63
121
|
private handleFocus;
|
|
64
122
|
private handleBlur;
|
|
65
|
-
private
|
|
66
|
-
private
|
|
123
|
+
private handleResultClick;
|
|
124
|
+
private attemptReplaceElement;
|
|
125
|
+
private isIdenticalElement;
|
|
126
|
+
private getTextContent;
|
|
127
|
+
private getCursorPosition;
|
|
128
|
+
/**
|
|
129
|
+
* Inspects the cursor position for the following conditions:
|
|
130
|
+
*
|
|
131
|
+
* 1. The cursor has moved to text that contains a valid string
|
|
132
|
+
* and trigger character, indicating we need to dispatch a
|
|
133
|
+
* `searchChanged` event and display the results.
|
|
134
|
+
*
|
|
135
|
+
* 2. The cursor has moved within text that contains a valid string
|
|
136
|
+
* and trigger character, indicating we need to dispatch a
|
|
137
|
+
* `searchChanged` event to update the currently displayed results.
|
|
138
|
+
*
|
|
139
|
+
* 3. The cursor has moved to text that does not contain a valid
|
|
140
|
+
* string and trigger character, indicating we need to hide any
|
|
141
|
+
* displayed search results.
|
|
142
|
+
*/
|
|
143
|
+
private handleCursorPositionUpdate;
|
|
144
|
+
private readTriggerValue;
|
|
145
|
+
private includesBreakCharacter;
|
|
146
|
+
private firstIndexOfBreakCharacter;
|
|
147
|
+
private moveCursorToNodeEnd;
|
|
148
|
+
private getContentAsString;
|
|
149
|
+
private createReplacedElement;
|
|
67
150
|
}
|
|
@@ -24,6 +24,11 @@ export declare class Select {
|
|
|
24
24
|
* or closing.
|
|
25
25
|
*/
|
|
26
26
|
animated: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Whether this select will omit the currently selected
|
|
29
|
+
* value in the dropdown list.
|
|
30
|
+
*/
|
|
31
|
+
hideSelected: boolean;
|
|
27
32
|
/**
|
|
28
33
|
* Emitted when the selected option of this element
|
|
29
34
|
* changes, and contains the value that it has been
|
|
@@ -51,10 +56,13 @@ export declare class Select {
|
|
|
51
56
|
connectedCallback(): void;
|
|
52
57
|
disconnectedCallback(): void;
|
|
53
58
|
handleUpdateValue(value?: string): void;
|
|
59
|
+
protected handleUpdateDisplayValue(): void;
|
|
54
60
|
render(): h.JSX.IntrinsicElements;
|
|
55
61
|
private handleOpen;
|
|
56
62
|
private handleDismiss;
|
|
57
63
|
private updateDisplayValue;
|
|
58
64
|
private removeOptionListeners;
|
|
65
|
+
private clearSelectedOptionFlag;
|
|
66
|
+
private getSelectedOption;
|
|
59
67
|
private getBounds;
|
|
60
68
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EventEmitter, h } from '../../stencil-public-runtime';
|
|
2
|
+
export declare class Tab {
|
|
3
|
+
/**
|
|
4
|
+
* The label to include in tab list.
|
|
5
|
+
*/
|
|
6
|
+
label: string;
|
|
7
|
+
active: boolean;
|
|
8
|
+
tabClick: EventEmitter<string>;
|
|
9
|
+
render(): h.JSX.IntrinsicElements;
|
|
10
|
+
private handleClick;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isTabElement(element: Element): element is HTMLVertexTabElement;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { EventEmitter, h } from '../../stencil-public-runtime';
|
|
2
|
+
export declare class Tabs {
|
|
3
|
+
active?: string;
|
|
4
|
+
private labels;
|
|
5
|
+
private activeBounds?;
|
|
6
|
+
private activeButtonEl?;
|
|
7
|
+
private hostEl;
|
|
8
|
+
/**
|
|
9
|
+
* An event that is emitted whenever the selected tab changes
|
|
10
|
+
* and contains the label of the newly selected tab.
|
|
11
|
+
*/
|
|
12
|
+
selectedTabChanged: EventEmitter<string>;
|
|
13
|
+
private indicatorInitialized;
|
|
14
|
+
componentWillLoad(): void;
|
|
15
|
+
componentDidLoad(): void;
|
|
16
|
+
protected componentDidUpdate(): void;
|
|
17
|
+
protected handleActiveButtonChange(): void;
|
|
18
|
+
render(): h.JSX.IntrinsicElements;
|
|
19
|
+
private handleLabelClick;
|
|
20
|
+
private updateActiveOnTab;
|
|
21
|
+
private findTabByLabel;
|
|
22
|
+
private updateTabLabels;
|
|
23
|
+
}
|
|
@@ -40,18 +40,25 @@ export declare class Tooltip {
|
|
|
40
40
|
hostElement: HTMLElement;
|
|
41
41
|
private open;
|
|
42
42
|
private tooltipId;
|
|
43
|
+
private pointerEntered;
|
|
43
44
|
private openTimeout?;
|
|
44
45
|
private targetElement?;
|
|
45
46
|
private contentElement?;
|
|
46
47
|
private displayedSlottedContent?;
|
|
48
|
+
private internalContentElement?;
|
|
47
49
|
constructor();
|
|
48
50
|
disconnectedCallback(): void;
|
|
51
|
+
protected handleContentChange(): void;
|
|
52
|
+
protected handleDisabledChange(): void;
|
|
49
53
|
render(): h.JSX.IntrinsicElements;
|
|
50
54
|
private addElement;
|
|
51
55
|
private removeElement;
|
|
52
56
|
private createPopoverElement;
|
|
53
57
|
private createContentElement;
|
|
58
|
+
private updateContentElementClass;
|
|
59
|
+
private updateContentElementChildren;
|
|
54
60
|
private handlePointerEnter;
|
|
55
61
|
private handlePointerLeave;
|
|
62
|
+
private createOpenTimeout;
|
|
56
63
|
private clearOpenTimeout;
|
|
57
64
|
}
|