q2-tecton-elements 1.23.0-alpha.0 → 1.24.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/cjs/action-sheet-4b366e9a.js +84 -0
- package/dist/cjs/charting-d02cba1f.js +3127 -0
- package/dist/cjs/{index-3518c78c.js → index-e00b4210.js} +33 -7
- package/dist/cjs/{installCanvasRenderer-b4d10c92.js → installCanvasRenderer-6c4fbcc9.js} +230 -1130
- package/dist/cjs/installLabelLayout-d6b548fe.js +1048 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/q2-action-sheet.cjs.entry.js +218 -0
- package/dist/cjs/q2-badge_2.cjs.entry.js +1 -1
- package/dist/cjs/q2-btn_2.cjs.entry.js +2 -2
- package/dist/cjs/q2-calendar.cjs.entry.js +1 -1
- package/dist/cjs/q2-card.cjs.entry.js +2 -2
- package/dist/cjs/q2-carousel-pane.cjs.entry.js +1 -1
- package/dist/cjs/q2-carousel.cjs.entry.js +1 -1
- package/dist/cjs/q2-chart-area.cjs.entry.js +4569 -0
- package/dist/cjs/q2-chart-bar.cjs.entry.js +25 -3133
- package/dist/cjs/q2-chart-donut.cjs.entry.js +9 -8
- package/dist/cjs/q2-checkbox-group.cjs.entry.js +1 -1
- package/dist/cjs/q2-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/q2-dropdown-item.cjs.entry.js +1 -1
- package/dist/cjs/q2-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/q2-editable-field.cjs.entry.js +1 -1
- package/dist/cjs/q2-icon.cjs.entry.js +1 -1
- package/dist/cjs/q2-loading-element.cjs.entry.js +1 -1
- package/dist/cjs/q2-loc.cjs.entry.js +1 -1
- package/dist/cjs/q2-message.cjs.entry.js +1 -1
- package/dist/cjs/q2-month-picker.cjs.entry.js +1 -1
- package/dist/cjs/q2-optgroup_2.cjs.entry.js +93 -0
- package/dist/cjs/q2-option-list_2.cjs.entry.js +230 -88
- package/dist/cjs/q2-pagination.cjs.entry.js +1 -1
- package/dist/cjs/q2-pill.cjs.entry.js +57 -18
- package/dist/cjs/q2-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/q2-radio.cjs.entry.js +1 -1
- package/dist/cjs/q2-section.cjs.entry.js +1 -1
- package/dist/cjs/q2-select.cjs.entry.js +149 -409
- package/dist/cjs/q2-stepper-pane.cjs.entry.js +1 -1
- package/dist/cjs/q2-stepper-vertical.cjs.entry.js +1 -1
- package/dist/cjs/q2-stepper.cjs.entry.js +1 -1
- package/dist/cjs/q2-tab-container.cjs.entry.js +1 -1
- package/dist/cjs/q2-tag.cjs.entry.js +21 -6
- package/dist/cjs/q2-tecton-elements.cjs.js +1 -1
- package/dist/cjs/q2-textarea.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/q2-action-sheet/index.js +345 -0
- package/dist/collection/components/q2-action-sheet/styles.css +215 -0
- package/dist/collection/components/q2-card/index.js +1 -1
- package/dist/collection/components/q2-chart-area/index.js +622 -0
- package/dist/collection/components/q2-chart-area/styles.css +82 -0
- package/dist/collection/components/q2-chart-bar/index.js +4 -4
- package/dist/collection/components/q2-chart-bar/styles.css +3 -6
- package/dist/collection/components/q2-chart-donut/index.js +1 -1
- package/dist/collection/components/q2-checkbox/index.js +2 -2
- package/dist/collection/components/q2-checkbox/styles.css +1 -0
- package/dist/collection/components/q2-dropdown/index.js +1 -1
- package/dist/collection/components/q2-loading/index.js +1 -1
- package/dist/collection/components/q2-loading/skeleton/q2-loading-element/styles.css +4 -0
- package/dist/collection/components/q2-loading/styles.css +4 -0
- package/dist/collection/components/q2-optgroup/styles.css +2 -2
- package/dist/collection/components/q2-option/index.js +1 -56
- package/dist/collection/components/q2-option/styles.css +7 -0
- package/dist/collection/components/q2-option-list/index.js +290 -102
- package/dist/collection/components/q2-pill/index.js +79 -18
- package/dist/collection/components/q2-pill/styles.css +1 -2
- package/dist/collection/components/q2-popover/index.js +21 -5
- package/dist/collection/components/q2-popover/styles.css +10 -67
- package/dist/collection/components/q2-radio/index.js +2 -2
- package/dist/collection/components/q2-select/index.js +197 -427
- package/dist/collection/components/q2-select/styles.css +5 -11
- package/dist/collection/components/q2-tag/index.js +38 -5
- package/dist/collection/utils/action-sheet.js +79 -0
- package/dist/collection/utils/index.js +31 -7
- package/dist/components/action-sheet.js +81 -0
- package/dist/components/charting.js +3113 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +2 -0
- package/dist/components/index10.js +1 -1
- package/dist/components/index11.js +42 -353
- package/dist/components/index12.js +44 -97
- package/dist/components/index13.js +495 -580
- package/dist/components/index14.js +137 -0
- package/dist/components/index15.js +626 -0
- package/dist/components/index5.js +1 -1
- package/dist/components/index6.js +1 -1
- package/dist/components/index7.js +1 -1
- package/dist/components/index8.js +1 -1
- package/dist/components/index9.js +3 -3
- package/dist/components/installCanvasRenderer.js +188 -1123
- package/dist/components/installLabelLayout.js +1042 -0
- package/dist/components/q2-action-sheet.d.ts +11 -0
- package/dist/components/q2-action-sheet.js +282 -0
- package/dist/components/q2-calendar.js +1 -1
- package/dist/components/q2-card.js +2 -2
- package/dist/components/q2-carousel-pane.js +1 -1
- package/dist/components/q2-carousel.js +1 -1
- package/dist/components/q2-chart-area.d.ts +11 -0
- package/dist/components/q2-chart-area.js +4604 -0
- package/dist/components/q2-chart-bar.js +11 -3119
- package/dist/components/q2-chart-donut.js +4 -3
- package/dist/components/q2-checkbox-group.js +1 -1
- package/dist/components/q2-checkbox.js +2 -2
- package/dist/components/q2-dropdown.js +2 -2
- package/dist/components/q2-editable-field.js +1 -1
- package/dist/components/q2-loading-element.js +1 -1
- package/dist/components/q2-loc.js +1 -1
- package/dist/components/q2-month-picker.js +1 -1
- package/dist/components/q2-optgroup.js +1 -70
- package/dist/components/q2-option-list.js +1 -1
- package/dist/components/q2-option.js +1 -76
- package/dist/components/q2-pagination.js +1 -1
- package/dist/components/q2-pill.js +62 -21
- package/dist/components/q2-popover.js +1 -1
- package/dist/components/q2-radio-group.js +1 -1
- package/dist/components/q2-radio.js +3 -3
- package/dist/components/q2-section.js +1 -1
- package/dist/components/q2-select.js +181 -427
- package/dist/components/q2-stepper-pane.js +1 -1
- package/dist/components/q2-stepper-vertical.js +1 -1
- package/dist/components/q2-stepper.js +1 -1
- package/dist/components/q2-tab-container.js +1 -1
- package/dist/components/q2-tag.js +24 -8
- package/dist/components/q2-textarea.js +1 -1
- package/dist/esm/action-sheet-a9597b32.js +81 -0
- package/dist/esm/charting-2a73ba8e.js +3113 -0
- package/dist/esm/{index-9c591682.js → index-ca21e539.js} +32 -8
- package/dist/esm/{installCanvasRenderer-0143b52d.js → installCanvasRenderer-4a470516.js} +188 -1123
- package/dist/esm/installLabelLayout-d660eaad.js +1042 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/q2-action-sheet.entry.js +214 -0
- package/dist/esm/q2-badge_2.entry.js +1 -1
- package/dist/esm/q2-btn_2.entry.js +2 -2
- package/dist/esm/q2-calendar.entry.js +1 -1
- package/dist/esm/q2-card.entry.js +2 -2
- package/dist/esm/q2-carousel-pane.entry.js +1 -1
- package/dist/esm/q2-carousel.entry.js +1 -1
- package/dist/esm/q2-chart-area.entry.js +4565 -0
- package/dist/esm/q2-chart-bar.entry.js +11 -3119
- package/dist/esm/q2-chart-donut.entry.js +4 -3
- package/dist/esm/q2-checkbox-group.entry.js +1 -1
- package/dist/esm/q2-checkbox.entry.js +2 -2
- package/dist/esm/q2-dropdown-item.entry.js +1 -1
- package/dist/esm/q2-dropdown.entry.js +1 -1
- package/dist/esm/q2-editable-field.entry.js +1 -1
- package/dist/esm/q2-icon.entry.js +1 -1
- package/dist/esm/q2-loading-element.entry.js +1 -1
- package/dist/esm/q2-loc.entry.js +1 -1
- package/dist/esm/q2-message.entry.js +1 -1
- package/dist/esm/q2-month-picker.entry.js +1 -1
- package/dist/esm/q2-optgroup_2.entry.js +88 -0
- package/dist/esm/q2-option-list_2.entry.js +230 -88
- package/dist/esm/q2-pagination.entry.js +1 -1
- package/dist/esm/q2-pill.entry.js +57 -18
- package/dist/esm/q2-radio-group.entry.js +1 -1
- package/dist/esm/q2-radio.entry.js +1 -1
- package/dist/esm/q2-section.entry.js +1 -1
- package/dist/esm/q2-select.entry.js +149 -409
- package/dist/esm/q2-stepper-pane.entry.js +1 -1
- package/dist/esm/q2-stepper-vertical.entry.js +1 -1
- package/dist/esm/q2-stepper.entry.js +1 -1
- package/dist/esm/q2-tab-container.entry.js +1 -1
- package/dist/esm/q2-tag.entry.js +21 -6
- package/dist/esm/q2-tecton-elements.js +1 -1
- package/dist/esm/q2-textarea.entry.js +1 -1
- package/dist/q2-tecton-elements/{p-db873db2.entry.js → p-0473f4f7.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-520c40f6.entry.js → p-13a1390b.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-9ebb283a.entry.js → p-13deb3ed.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-0ba564b1.entry.js → p-1d854203.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-1f71774f.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-18cc4758.entry.js → p-256d3fe6.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-9281adaa.entry.js → p-282f0f8c.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-2d2c5af2.entry.js → p-30969629.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-30cd888b.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-fc134a5d.entry.js → p-37cf9c97.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-fb37e67e.entry.js → p-388349b5.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-458b1987.js +1 -0
- package/dist/q2-tecton-elements/p-52063431.js +39 -0
- package/dist/q2-tecton-elements/p-5589ae0f.entry.js +1 -0
- package/dist/q2-tecton-elements/p-619aed74.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-4625184b.entry.js → p-63b67260.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-e4dc9ac0.entry.js → p-63e363ad.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-cbd1289a.entry.js → p-6736df05.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-72fe10cc.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-c4640b55.entry.js → p-75b817c6.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-c3f27fe2.entry.js → p-7a116095.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-7c94119b.entry.js +1 -0
- package/dist/q2-tecton-elements/p-833398d1.js +1 -0
- package/dist/q2-tecton-elements/{p-ce015552.entry.js → p-90572e43.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-91153c61.entry.js +1 -0
- package/dist/q2-tecton-elements/p-9792de8a.entry.js +1 -0
- package/dist/q2-tecton-elements/p-9acfa94e.js +1 -0
- package/dist/q2-tecton-elements/p-a1926e65.js +1 -0
- package/dist/q2-tecton-elements/{p-ffb48ccc.entry.js → p-b3a8cdc5.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-ce3f203c.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-041b3a82.entry.js → p-ce91cd9b.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-b8b00394.entry.js → p-cefc9d0b.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-d05beeb7.entry.js +1 -0
- package/dist/q2-tecton-elements/p-dc7c8371.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-16c11d74.entry.js → p-e58581fc.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-f800fd1e.entry.js → p-e886c55b.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-6e6b5b80.entry.js → p-f0ec4d2c.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-97aa8423.entry.js → p-f94e7043.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-c444a60b.entry.js → p-fcb7d191.entry.js} +1 -1
- package/dist/q2-tecton-elements/q2-tecton-elements.esm.js +1 -1
- package/dist/test/helpers.js +3 -2
- package/dist/types/components/q2-action-sheet/index.d.ts +52 -0
- package/dist/types/components/q2-card/index.d.ts +1 -1
- package/dist/types/components/q2-chart-area/index.d.ts +40 -0
- package/dist/types/components/q2-chart-bar/index.d.ts +2 -2
- package/dist/types/components/q2-chart-donut/index.d.ts +1 -1
- package/dist/types/components/q2-checkbox/index.d.ts +4 -1
- package/dist/types/components/q2-option/index.d.ts +0 -3
- package/dist/types/components/q2-option-list/index.d.ts +16 -8
- package/dist/types/components/q2-pill/index.d.ts +10 -1
- package/dist/types/components/q2-popover/index.d.ts +2 -0
- package/dist/types/components/q2-select/index.d.ts +46 -47
- package/dist/types/components/q2-tag/index.d.ts +3 -2
- package/dist/types/components.d.ts +100 -13
- package/dist/types/global.d.ts +10 -1
- package/dist/types/utils/action-sheet.d.ts +12 -0
- package/dist/types/utils/index.d.ts +3 -1
- package/dist/types/workspace/workspace/{_production_release_1.22.x-alpha → Tecton_tecton-production_master}/packages/q2-tecton-elements/.stencil/test/helpers.d.ts +1 -1
- package/package.json +3 -2
- package/dist/cjs/q2-optgroup.cjs.entry.js +0 -56
- package/dist/cjs/q2-option.cjs.entry.js +0 -46
- package/dist/esm/q2-optgroup.entry.js +0 -52
- package/dist/esm/q2-option.entry.js +0 -42
- package/dist/q2-tecton-elements/p-0d8dd75a.entry.js +0 -1
- package/dist/q2-tecton-elements/p-0fad9c5a.entry.js +0 -1
- package/dist/q2-tecton-elements/p-1f85cced.js +0 -39
- package/dist/q2-tecton-elements/p-2c9b1308.entry.js +0 -1
- package/dist/q2-tecton-elements/p-5e374fbd.js +0 -1
- package/dist/q2-tecton-elements/p-6b52a262.entry.js +0 -1
- package/dist/q2-tecton-elements/p-aaf42539.entry.js +0 -1
- package/dist/q2-tecton-elements/p-cf41970f.entry.js +0 -1
- package/dist/q2-tecton-elements/p-de164483.entry.js +0 -1
- package/dist/q2-tecton-elements/p-e6d26f39.entry.js +0 -1
- package/dist/q2-tecton-elements/p-f1d06917.entry.js +0 -1
- package/dist/q2-tecton-elements/p-f35bf6a3.entry.js +0 -1
|
@@ -5,13 +5,13 @@ export interface IOptionValue {
|
|
|
5
5
|
}
|
|
6
6
|
export declare class Q2OptionList implements ComponentInterface {
|
|
7
7
|
role: 'listbox' | 'menu';
|
|
8
|
-
direction: 'up' | 'down';
|
|
9
8
|
customSearch: boolean;
|
|
10
9
|
noSelect: boolean;
|
|
11
10
|
align: 'left' | 'right';
|
|
12
11
|
selectedOptions: IOptionValue[];
|
|
13
12
|
multiple: boolean;
|
|
14
13
|
disabled: boolean;
|
|
14
|
+
showSelected: boolean;
|
|
15
15
|
type: 'menu' | 'listbox';
|
|
16
16
|
change: EventEmitter<{
|
|
17
17
|
value: string;
|
|
@@ -19,7 +19,9 @@ export declare class Q2OptionList implements ComponentInterface {
|
|
|
19
19
|
}>;
|
|
20
20
|
popoverState: EventEmitter<{
|
|
21
21
|
open: boolean;
|
|
22
|
+
action: 'close' | 'select' | 'open';
|
|
22
23
|
}>;
|
|
24
|
+
ready: EventEmitter;
|
|
23
25
|
hasOptions: boolean;
|
|
24
26
|
contentElement: HTMLElement;
|
|
25
27
|
activeIndex: number;
|
|
@@ -30,29 +32,35 @@ export declare class Q2OptionList implements ComponentInterface {
|
|
|
30
32
|
componentWillLoad(): void;
|
|
31
33
|
componentDidLoad(): void;
|
|
32
34
|
componentDidRender(): void;
|
|
35
|
+
get allContents(): (HTMLQ2OptgroupElement | HTMLQ2OptionElement)[];
|
|
33
36
|
get allOptions(): HTMLQ2OptionElement[];
|
|
34
|
-
|
|
35
|
-
|
|
37
|
+
get allVisibleOptions(): HTMLQ2OptionElement[];
|
|
38
|
+
checkOptions(): Promise<void>;
|
|
39
|
+
getRootSlot(element: Element): Element[];
|
|
36
40
|
scrollToActiveOption(): void;
|
|
37
|
-
resizeIframe(): void;
|
|
38
41
|
openDropdownWithActiveElement(activeIndex: number): void;
|
|
39
42
|
getDefaultActiveIndex(): number;
|
|
40
43
|
updateSingleOptionAttrs(): void;
|
|
41
44
|
updateMultipleOptionAttrs(): void;
|
|
42
45
|
setActiveOption(): void;
|
|
43
46
|
setFocusedOption(): void;
|
|
44
|
-
getNextVisibleIndex(direction: any):
|
|
45
|
-
|
|
47
|
+
getNextVisibleIndex(direction: any): number;
|
|
48
|
+
focusSelectedSibling(option: HTMLQ2OptionElement): void;
|
|
49
|
+
selectOption(selectedOption: HTMLQ2OptionElement): void;
|
|
46
50
|
adjustActiveOptionAndScroll(numToAdd: number): void;
|
|
47
51
|
resetTimer(): void;
|
|
48
|
-
|
|
52
|
+
searchOptions(key: string, shouldSelect?: boolean): void;
|
|
53
|
+
showSelectedUpdated(showSelected: boolean): void;
|
|
49
54
|
selectedOptionsUpdated(): void;
|
|
50
55
|
delegateFocus(event: FocusEvent): void;
|
|
51
56
|
handleClick(event: MouseEvent): void;
|
|
52
57
|
setDefaultActiveElement(): Promise<void>;
|
|
53
58
|
setActiveElement(index: number): Promise<void>;
|
|
54
59
|
handleExternalKeydown(event: KeyboardEvent): Promise<void>;
|
|
55
|
-
|
|
60
|
+
getContents(): Promise<(HTMLQ2OptgroupElement | HTMLQ2OptionElement)[]>;
|
|
61
|
+
getOptions(): Promise<HTMLQ2OptionElement[]>;
|
|
62
|
+
externalKeydownHandler: (event: KeyboardEvent) => void;
|
|
63
|
+
internalKeydownHandler: (event: KeyboardEvent) => void;
|
|
56
64
|
focusoutHandler: (event: FocusEvent) => void;
|
|
57
65
|
clickHandler: (event: Event) => void;
|
|
58
66
|
render(): any;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ComponentInterface, EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
import { IOptionValue } from '../q2-option-list';
|
|
3
3
|
export declare class Q2Pill implements ComponentInterface {
|
|
4
|
+
hoist: boolean;
|
|
4
5
|
disabled: boolean;
|
|
5
6
|
active: boolean;
|
|
6
7
|
open: boolean;
|
|
@@ -13,6 +14,7 @@ export declare class Q2Pill implements ComponentInterface {
|
|
|
13
14
|
popoverMinHeight: number;
|
|
14
15
|
popoverDirection: 'up' | 'down';
|
|
15
16
|
hasOptions: boolean;
|
|
17
|
+
selectedOptionElements: HTMLQ2OptionElement[];
|
|
16
18
|
hostElement: HTMLElement;
|
|
17
19
|
change: EventEmitter<{
|
|
18
20
|
value: string;
|
|
@@ -32,14 +34,21 @@ export declare class Q2Pill implements ComponentInterface {
|
|
|
32
34
|
disconnectedCallback(): void;
|
|
33
35
|
get buttonContent(): string;
|
|
34
36
|
get truncatedButtonContent(): string;
|
|
37
|
+
updateSelectedOptionElements: () => Promise<void>;
|
|
35
38
|
determineHasOptions: () => void;
|
|
39
|
+
executeActionSheet(event: MouseEvent | KeyboardEvent): Promise<void>;
|
|
40
|
+
handleSelectionChanges(changeDetails: {
|
|
41
|
+
value?: string;
|
|
42
|
+
values?: IOptionValue[];
|
|
43
|
+
}): void;
|
|
36
44
|
clearSelectedOptions: () => void;
|
|
45
|
+
selectedOptionsWatcher(): void;
|
|
37
46
|
delegateFocus(event: FocusEvent): void;
|
|
38
47
|
popoverStateHandler({ detail: { open } }: CustomEvent<{
|
|
39
48
|
open: boolean;
|
|
40
49
|
}>): void;
|
|
41
50
|
handleClick: (event: MouseEvent) => Promise<void>;
|
|
42
|
-
handleKeydown: (event: KeyboardEvent) => void
|
|
51
|
+
handleKeydown: (event: KeyboardEvent) => Promise<void>;
|
|
43
52
|
handleChange: (event: any) => void;
|
|
44
53
|
handleWrapperClick: () => void;
|
|
45
54
|
onClickElsewhere: (event: CustomEvent) => void;
|
|
@@ -13,8 +13,10 @@ export declare class Q2Popover implements ComponentInterface {
|
|
|
13
13
|
privateDirection: 'down' | 'up';
|
|
14
14
|
containerElement: HTMLDivElement;
|
|
15
15
|
contentElement: HTMLDivElement;
|
|
16
|
+
scheduledAfterRender: (() => void)[];
|
|
16
17
|
componentDidLoad(): void;
|
|
17
18
|
componentWillRender(): void;
|
|
19
|
+
componentDidRender(): void;
|
|
18
20
|
toggle(): Promise<void>;
|
|
19
21
|
openChanged(open: any): void;
|
|
20
22
|
popoverStateHandler(event: CustomEvent<{
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { EventEmitter, Event, ComponentInterface } from '../../stencil-public-runtime';
|
|
3
|
+
import { Q2OptionListCustomEvent } from 'src/components';
|
|
4
|
+
import { IOptionValue } from '../q2-option-list';
|
|
3
5
|
export declare class Q2Select implements ComponentInterface {
|
|
4
6
|
label: string;
|
|
5
7
|
hideLabel: boolean;
|
|
6
8
|
value: string;
|
|
7
9
|
ariaLabel: string;
|
|
8
|
-
selectedOptions:
|
|
10
|
+
selectedOptions: string[];
|
|
9
11
|
disabled: boolean;
|
|
10
12
|
readonly: boolean;
|
|
11
13
|
invalid: boolean;
|
|
@@ -16,94 +18,91 @@ export declare class Q2Select implements ComponentInterface {
|
|
|
16
18
|
searchable: boolean;
|
|
17
19
|
multilineOptions: boolean;
|
|
18
20
|
optional: boolean;
|
|
21
|
+
placeholder: string;
|
|
22
|
+
hoist: boolean;
|
|
19
23
|
hostElement: HTMLElement;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
activeOptionId: string;
|
|
24
|
+
open: boolean;
|
|
25
|
+
showSelected: boolean;
|
|
23
26
|
searchText: string;
|
|
24
27
|
hasCustomDisplay: boolean;
|
|
25
28
|
inputFocused: boolean;
|
|
26
29
|
statusMessage: string;
|
|
27
30
|
prioritizeSearch: boolean;
|
|
31
|
+
structuredSelectedOptions: IOptionValue[];
|
|
28
32
|
inputField?: HTMLQ2InputElement | HTMLButtonElement;
|
|
29
|
-
|
|
33
|
+
optionList: HTMLQ2OptionListElement;
|
|
34
|
+
popoverElement?: HTMLQ2PopoverElement;
|
|
30
35
|
multiSelectHeader?: HTMLDivElement;
|
|
31
|
-
privatePopDirection: 'down' | 'up';
|
|
32
|
-
activeIndex: number;
|
|
33
|
-
pivotIndex: number;
|
|
34
36
|
scheduledAfterRender: (() => void)[];
|
|
35
|
-
keyStore: {
|
|
36
|
-
queue: string[];
|
|
37
|
-
lastPressedAt: Date;
|
|
38
|
-
};
|
|
39
|
-
guid: number;
|
|
40
37
|
mutationObserver: MutationObserver;
|
|
41
38
|
componentWillLoad(): void;
|
|
42
39
|
componentDidLoad(): void;
|
|
43
40
|
componentDidRender(): void;
|
|
44
41
|
disconnectedCallback(): void;
|
|
45
|
-
get
|
|
46
|
-
get
|
|
47
|
-
get
|
|
48
|
-
get minPopHeight(): number;
|
|
49
|
-
get selectedDisplay(): any;
|
|
42
|
+
get badgeValue(): string;
|
|
43
|
+
get popoverMinHeight(): number;
|
|
44
|
+
get selectedDisplay(): string;
|
|
50
45
|
get selectedDisplaySlot(): HTMLElement;
|
|
51
|
-
get firstSelectedValue():
|
|
46
|
+
get firstSelectedValue(): string;
|
|
52
47
|
get firstSelectedOptionElement(): HTMLQ2OptionElement;
|
|
53
48
|
get optionElements(): HTMLQ2OptionElement[];
|
|
54
|
-
get visibleOptionElements(): HTMLQ2OptionElement[];
|
|
55
49
|
get wrapperClasses(): string;
|
|
50
|
+
buildStructuredSelectedOptions(): void;
|
|
56
51
|
ariaLabelObserver(): void;
|
|
57
52
|
valueUpdated(): void;
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
53
|
+
handleMultilineOptionsUpdate(newValue: any, oldValue: any): void;
|
|
54
|
+
openChanged(isOpen: any): void;
|
|
55
|
+
change: EventEmitter<{
|
|
56
|
+
value: string;
|
|
57
|
+
selectedOptions: string[];
|
|
58
|
+
}>;
|
|
62
59
|
input: EventEmitter;
|
|
63
60
|
keydownHandler(event: KeyboardEvent): void;
|
|
64
|
-
onHostElementChange(event: CustomEvent
|
|
61
|
+
onHostElementChange(event: CustomEvent<{
|
|
62
|
+
value: string;
|
|
63
|
+
selectedOptions: string[];
|
|
64
|
+
}>): void;
|
|
65
65
|
onHostElementInput(event: CustomEvent): void;
|
|
66
66
|
delegateFocus(event: FocusEvent): void;
|
|
67
67
|
handleFocusout(event: FocusEvent): void;
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
68
|
+
executeActionSheet(event: MouseEvent | KeyboardEvent): Promise<void>;
|
|
69
|
+
handleSelectionChanges(changeDetails: {
|
|
70
|
+
value?: string;
|
|
71
|
+
values?: IOptionValue[];
|
|
72
|
+
}): void;
|
|
73
|
+
showSelectedOptions: (event: MouseEvent) => void;
|
|
74
|
+
showAllOptions: (event?: MouseEvent) => void;
|
|
75
|
+
clearValue(): void;
|
|
76
|
+
calculateMultiSelectSelectedDisplay(): string;
|
|
74
77
|
calculateSingleSelectSelectedDisplay(): string;
|
|
75
|
-
updateSingleOptionAttrs(): void;
|
|
76
|
-
updateMultipleOptionAttrs(): void;
|
|
77
78
|
onMutationObserved: () => void;
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
onOptionListChange: (event: Q2OptionListCustomEvent<{
|
|
80
|
+
value: string;
|
|
81
|
+
values: IOptionValue[];
|
|
82
|
+
}>) => void;
|
|
81
83
|
openDropdownWithoutActiveElement(): void;
|
|
82
|
-
openDropdownWithActiveElement(activeIndex: number): void;
|
|
83
84
|
closeDropdown(): void;
|
|
85
|
+
clearSearchText(): void;
|
|
84
86
|
toggleDropdown(): void;
|
|
85
|
-
adjustActiveOptionAndScroll(numToAdd: number): void;
|
|
86
|
-
setDefaultActiveElement(): void;
|
|
87
87
|
focusInput(): void;
|
|
88
|
-
getNextVisibleIndex(direction: any): any;
|
|
89
88
|
statusMessageTimer: NodeJS.Timeout;
|
|
90
89
|
setStatusMessage(message: any): void;
|
|
91
90
|
clearSelectedDisplay(): void;
|
|
92
91
|
checkSelectedDisplay(): void | HTMLElement;
|
|
93
92
|
checkSelectedDisplayHeight(): void;
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
inputKeydownHandler: (event: KeyboardEvent) => void
|
|
98
|
-
|
|
93
|
+
popoverStateChanged: ({ detail: { open } }: CustomEvent<{
|
|
94
|
+
open: boolean;
|
|
95
|
+
}>) => void;
|
|
96
|
+
inputKeydownHandler: (event: KeyboardEvent) => Promise<void>;
|
|
97
|
+
shouldClearSearchText(event: KeyboardEvent): boolean;
|
|
98
|
+
visibilityToggleKeyDown: (event: KeyboardEvent) => void;
|
|
99
|
+
inputClickHandler: (event: MouseEvent) => Promise<void>;
|
|
99
100
|
inputInputHandler: (event: CustomEvent) => void;
|
|
100
101
|
inputFocusHandler: () => void;
|
|
101
102
|
inputBlurHandler: () => void;
|
|
102
103
|
inputChangeHandler: (event: Event) => void;
|
|
103
104
|
clickedElsewhere: (event: CustomEvent) => void;
|
|
104
105
|
onCustomDisplayClick: (event: MouseEvent) => void;
|
|
105
|
-
showSelectedOptions: (event: MouseEvent) => void;
|
|
106
|
-
showAllOptions: (event: MouseEvent) => void;
|
|
107
106
|
renderCustomDisplay(): any;
|
|
108
107
|
render(): any;
|
|
109
108
|
optionsDropdown(): any;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ComponentInterface, EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
export declare class Q2Tag implements ComponentInterface {
|
|
3
|
+
hoist: boolean;
|
|
3
4
|
open: boolean;
|
|
4
5
|
role: string;
|
|
5
6
|
label: string;
|
|
@@ -26,8 +27,8 @@ export declare class Q2Tag implements ComponentInterface {
|
|
|
26
27
|
}>): void;
|
|
27
28
|
onClickElsewhere: (event: CustomEvent) => void;
|
|
28
29
|
handleChange: (event: any) => void;
|
|
29
|
-
handleClick: (event: MouseEvent) => void
|
|
30
|
-
handleKeydown: (event: KeyboardEvent) => void
|
|
30
|
+
handleClick: (event: MouseEvent) => Promise<void>;
|
|
31
|
+
handleKeydown: (event: KeyboardEvent) => Promise<void>;
|
|
31
32
|
handleButtonFocusout: (event: FocusEvent) => void;
|
|
32
33
|
handleWrapperClick: () => void;
|
|
33
34
|
render(): any;
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* It contains typing information for all components that exist in this project.
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
|
+
import { ActionSheetData, ActionSheetListCloseData } from "q2-tecton-common/lib/utility/action-sheet";
|
|
8
9
|
import { IChartData } from "src/utils/charting";
|
|
9
10
|
import { IDonutChartData } from "./components/q2-chart-donut/index";
|
|
10
11
|
import { IEventDetail } from "./components/q2-input/types";
|
|
@@ -14,6 +15,12 @@ import { IStepperPaneEvent } from "./components/q2-stepper-pane/index";
|
|
|
14
15
|
export namespace Components {
|
|
15
16
|
interface ClickElsewhere {
|
|
16
17
|
}
|
|
18
|
+
interface Q2ActionSheet {
|
|
19
|
+
"data": ActionSheetData;
|
|
20
|
+
"hide": (data?: ActionSheetListCloseData) => Promise<void>;
|
|
21
|
+
"hideClose": boolean;
|
|
22
|
+
"show": () => Promise<void>;
|
|
23
|
+
}
|
|
17
24
|
interface Q2Avatar {
|
|
18
25
|
"icon": string;
|
|
19
26
|
"initials": string;
|
|
@@ -104,6 +111,27 @@ export namespace Components {
|
|
|
104
111
|
"label": string;
|
|
105
112
|
"siblingCount": number;
|
|
106
113
|
}
|
|
114
|
+
interface Q2ChartArea {
|
|
115
|
+
"alignChartName": 'left' | 'right' | 'center';
|
|
116
|
+
"areaColor": string;
|
|
117
|
+
"chartName": string;
|
|
118
|
+
"data": IChartData[];
|
|
119
|
+
"dataNamesOverflow": 'break' | 'truncate';
|
|
120
|
+
"dataNamesWidth": number;
|
|
121
|
+
"format": 'currency' | 'default';
|
|
122
|
+
"formatModifier": string;
|
|
123
|
+
"gridLines": 'horizontal' | 'vertical' | 'off';
|
|
124
|
+
"hideNameAxisLabels": boolean;
|
|
125
|
+
"hideValueAxisLabels": boolean;
|
|
126
|
+
"lineColor": string;
|
|
127
|
+
"offsetDataNames": boolean;
|
|
128
|
+
"offsetDataValues": boolean;
|
|
129
|
+
"pointerLineColor": string;
|
|
130
|
+
"pointerLineStyle": 'solid' | 'dashed';
|
|
131
|
+
"showChartName": boolean;
|
|
132
|
+
"showDatapointLabels": boolean;
|
|
133
|
+
"showGradient": boolean;
|
|
134
|
+
}
|
|
107
135
|
interface Q2ChartBar {
|
|
108
136
|
"alignChartName": 'left' | 'right' | 'center';
|
|
109
137
|
"chartName": string;
|
|
@@ -282,18 +310,16 @@ export namespace Components {
|
|
|
282
310
|
"display": string;
|
|
283
311
|
"hidden": boolean;
|
|
284
312
|
"multiline": boolean;
|
|
285
|
-
"noSelect": boolean;
|
|
286
|
-
"optionId": string;
|
|
287
313
|
"role": string;
|
|
288
314
|
"selected": boolean;
|
|
289
|
-
"tabindex": string;
|
|
290
315
|
"value": string;
|
|
291
316
|
}
|
|
292
317
|
interface Q2OptionList {
|
|
293
318
|
"align": 'left' | 'right';
|
|
294
319
|
"customSearch": boolean;
|
|
295
|
-
"direction": 'up' | 'down';
|
|
296
320
|
"disabled": boolean;
|
|
321
|
+
"getContents": () => Promise<(HTMLQ2OptgroupElement | HTMLQ2OptionElement)[]>;
|
|
322
|
+
"getOptions": () => Promise<HTMLQ2OptionElement[]>;
|
|
297
323
|
"handleExternalKeydown": (event: KeyboardEvent) => Promise<void>;
|
|
298
324
|
"multiple": boolean;
|
|
299
325
|
"noSelect": boolean;
|
|
@@ -301,6 +327,7 @@ export namespace Components {
|
|
|
301
327
|
"selectedOptions": IOptionValue[];
|
|
302
328
|
"setActiveElement": (index: number) => Promise<void>;
|
|
303
329
|
"setDefaultActiveElement": () => Promise<void>;
|
|
330
|
+
"showSelected": boolean;
|
|
304
331
|
"type": 'menu' | 'listbox';
|
|
305
332
|
}
|
|
306
333
|
interface Q2Pagination {
|
|
@@ -315,6 +342,7 @@ export namespace Components {
|
|
|
315
342
|
interface Q2Pill {
|
|
316
343
|
"active": boolean;
|
|
317
344
|
"disabled": boolean;
|
|
345
|
+
"hoist": boolean;
|
|
318
346
|
"label": string;
|
|
319
347
|
"maxLength": number;
|
|
320
348
|
"multiple": boolean;
|
|
@@ -369,16 +397,18 @@ export namespace Components {
|
|
|
369
397
|
"disabled": boolean;
|
|
370
398
|
"errors": string[];
|
|
371
399
|
"hideLabel": boolean;
|
|
400
|
+
"hoist": boolean;
|
|
372
401
|
"invalid": boolean;
|
|
373
402
|
"label": string;
|
|
374
403
|
"minRows": number;
|
|
375
404
|
"multilineOptions": boolean;
|
|
376
405
|
"multiple": boolean;
|
|
377
406
|
"optional": boolean;
|
|
407
|
+
"placeholder": string;
|
|
378
408
|
"popDirection": 'up' | 'down';
|
|
379
409
|
"readonly": boolean;
|
|
380
410
|
"searchable": boolean;
|
|
381
|
-
"selectedOptions":
|
|
411
|
+
"selectedOptions": string[];
|
|
382
412
|
"value": string;
|
|
383
413
|
}
|
|
384
414
|
interface Q2Stepper {
|
|
@@ -414,6 +444,7 @@ export namespace Components {
|
|
|
414
444
|
"value": string;
|
|
415
445
|
}
|
|
416
446
|
interface Q2Tag {
|
|
447
|
+
"hoist": boolean;
|
|
417
448
|
"label": string;
|
|
418
449
|
"open": boolean;
|
|
419
450
|
"popoverDirection": 'up' | 'down';
|
|
@@ -467,6 +498,10 @@ export interface ClickElsewhereCustomEvent<T> extends CustomEvent<T> {
|
|
|
467
498
|
detail: T;
|
|
468
499
|
target: HTMLClickElsewhereElement;
|
|
469
500
|
}
|
|
501
|
+
export interface Q2ActionSheetCustomEvent<T> extends CustomEvent<T> {
|
|
502
|
+
detail: T;
|
|
503
|
+
target: HTMLQ2ActionSheetElement;
|
|
504
|
+
}
|
|
470
505
|
export interface Q2CalendarCustomEvent<T> extends CustomEvent<T> {
|
|
471
506
|
detail: T;
|
|
472
507
|
target: HTMLQ2CalendarElement;
|
|
@@ -483,6 +518,10 @@ export interface Q2CarouselPaneCustomEvent<T> extends CustomEvent<T> {
|
|
|
483
518
|
detail: T;
|
|
484
519
|
target: HTMLQ2CarouselPaneElement;
|
|
485
520
|
}
|
|
521
|
+
export interface Q2ChartAreaCustomEvent<T> extends CustomEvent<T> {
|
|
522
|
+
detail: T;
|
|
523
|
+
target: HTMLQ2ChartAreaElement;
|
|
524
|
+
}
|
|
486
525
|
export interface Q2ChartDonutCustomEvent<T> extends CustomEvent<T> {
|
|
487
526
|
detail: T;
|
|
488
527
|
target: HTMLQ2ChartDonutElement;
|
|
@@ -578,6 +617,12 @@ declare global {
|
|
|
578
617
|
prototype: HTMLClickElsewhereElement;
|
|
579
618
|
new (): HTMLClickElsewhereElement;
|
|
580
619
|
};
|
|
620
|
+
interface HTMLQ2ActionSheetElement extends Components.Q2ActionSheet, HTMLStencilElement {
|
|
621
|
+
}
|
|
622
|
+
var HTMLQ2ActionSheetElement: {
|
|
623
|
+
prototype: HTMLQ2ActionSheetElement;
|
|
624
|
+
new (): HTMLQ2ActionSheetElement;
|
|
625
|
+
};
|
|
581
626
|
interface HTMLQ2AvatarElement extends Components.Q2Avatar, HTMLStencilElement {
|
|
582
627
|
}
|
|
583
628
|
var HTMLQ2AvatarElement: {
|
|
@@ -620,6 +665,12 @@ declare global {
|
|
|
620
665
|
prototype: HTMLQ2CarouselPaneElement;
|
|
621
666
|
new (): HTMLQ2CarouselPaneElement;
|
|
622
667
|
};
|
|
668
|
+
interface HTMLQ2ChartAreaElement extends Components.Q2ChartArea, HTMLStencilElement {
|
|
669
|
+
}
|
|
670
|
+
var HTMLQ2ChartAreaElement: {
|
|
671
|
+
prototype: HTMLQ2ChartAreaElement;
|
|
672
|
+
new (): HTMLQ2ChartAreaElement;
|
|
673
|
+
};
|
|
623
674
|
interface HTMLQ2ChartBarElement extends Components.Q2ChartBar, HTMLStencilElement {
|
|
624
675
|
}
|
|
625
676
|
var HTMLQ2ChartBarElement: {
|
|
@@ -820,6 +871,7 @@ declare global {
|
|
|
820
871
|
};
|
|
821
872
|
interface HTMLElementTagNameMap {
|
|
822
873
|
"click-elsewhere": HTMLClickElsewhereElement;
|
|
874
|
+
"q2-action-sheet": HTMLQ2ActionSheetElement;
|
|
823
875
|
"q2-avatar": HTMLQ2AvatarElement;
|
|
824
876
|
"q2-badge": HTMLQ2BadgeElement;
|
|
825
877
|
"q2-btn": HTMLQ2BtnElement;
|
|
@@ -827,6 +879,7 @@ declare global {
|
|
|
827
879
|
"q2-card": HTMLQ2CardElement;
|
|
828
880
|
"q2-carousel": HTMLQ2CarouselElement;
|
|
829
881
|
"q2-carousel-pane": HTMLQ2CarouselPaneElement;
|
|
882
|
+
"q2-chart-area": HTMLQ2ChartAreaElement;
|
|
830
883
|
"q2-chart-bar": HTMLQ2ChartBarElement;
|
|
831
884
|
"q2-chart-donut": HTMLQ2ChartDonutElement;
|
|
832
885
|
"q2-checkbox": HTMLQ2CheckboxElement;
|
|
@@ -866,6 +919,12 @@ declare namespace LocalJSX {
|
|
|
866
919
|
interface ClickElsewhere {
|
|
867
920
|
"onChange"?: (event: ClickElsewhereCustomEvent<any>) => void;
|
|
868
921
|
}
|
|
922
|
+
interface Q2ActionSheet {
|
|
923
|
+
"data"?: ActionSheetData;
|
|
924
|
+
"hideClose"?: boolean;
|
|
925
|
+
"onClose"?: (event: Q2ActionSheetCustomEvent<ActionSheetListCloseData>) => void;
|
|
926
|
+
"onReady"?: (event: Q2ActionSheetCustomEvent<any>) => void;
|
|
927
|
+
}
|
|
869
928
|
interface Q2Avatar {
|
|
870
929
|
"icon"?: string;
|
|
871
930
|
"initials"?: string;
|
|
@@ -962,6 +1021,28 @@ declare namespace LocalJSX {
|
|
|
962
1021
|
"onClickCarouselPane"?: (event: Q2CarouselPaneCustomEvent<any>) => void;
|
|
963
1022
|
"siblingCount"?: number;
|
|
964
1023
|
}
|
|
1024
|
+
interface Q2ChartArea {
|
|
1025
|
+
"alignChartName"?: 'left' | 'right' | 'center';
|
|
1026
|
+
"areaColor"?: string;
|
|
1027
|
+
"chartName"?: string;
|
|
1028
|
+
"data"?: IChartData[];
|
|
1029
|
+
"dataNamesOverflow"?: 'break' | 'truncate';
|
|
1030
|
+
"dataNamesWidth"?: number;
|
|
1031
|
+
"format"?: 'currency' | 'default';
|
|
1032
|
+
"formatModifier"?: string;
|
|
1033
|
+
"gridLines"?: 'horizontal' | 'vertical' | 'off';
|
|
1034
|
+
"hideNameAxisLabels"?: boolean;
|
|
1035
|
+
"hideValueAxisLabels"?: boolean;
|
|
1036
|
+
"lineColor"?: string;
|
|
1037
|
+
"offsetDataNames"?: boolean;
|
|
1038
|
+
"offsetDataValues"?: boolean;
|
|
1039
|
+
"onChange"?: (event: Q2ChartAreaCustomEvent<any>) => void;
|
|
1040
|
+
"pointerLineColor"?: string;
|
|
1041
|
+
"pointerLineStyle"?: 'solid' | 'dashed';
|
|
1042
|
+
"showChartName"?: boolean;
|
|
1043
|
+
"showDatapointLabels"?: boolean;
|
|
1044
|
+
"showGradient"?: boolean;
|
|
1045
|
+
}
|
|
965
1046
|
interface Q2ChartBar {
|
|
966
1047
|
"alignChartName"?: 'left' | 'right' | 'center';
|
|
967
1048
|
"chartName"?: string;
|
|
@@ -1006,7 +1087,7 @@ declare namespace LocalJSX {
|
|
|
1006
1087
|
"indeterminate"?: boolean;
|
|
1007
1088
|
"label"?: string;
|
|
1008
1089
|
"name"?: string;
|
|
1009
|
-
"onChange"?: (event: Q2CheckboxCustomEvent<
|
|
1090
|
+
"onChange"?: (event: Q2CheckboxCustomEvent<{ value: string; checked: boolean }>) => void;
|
|
1010
1091
|
"readonly"?: boolean;
|
|
1011
1092
|
"type"?: string;
|
|
1012
1093
|
"value"?: string;
|
|
@@ -1147,24 +1228,22 @@ declare namespace LocalJSX {
|
|
|
1147
1228
|
"display"?: string;
|
|
1148
1229
|
"hidden"?: boolean;
|
|
1149
1230
|
"multiline"?: boolean;
|
|
1150
|
-
"noSelect"?: boolean;
|
|
1151
|
-
"optionId"?: string;
|
|
1152
1231
|
"role"?: string;
|
|
1153
1232
|
"selected"?: boolean;
|
|
1154
|
-
"tabindex"?: string;
|
|
1155
1233
|
"value"?: string;
|
|
1156
1234
|
}
|
|
1157
1235
|
interface Q2OptionList {
|
|
1158
1236
|
"align"?: 'left' | 'right';
|
|
1159
1237
|
"customSearch"?: boolean;
|
|
1160
|
-
"direction"?: 'up' | 'down';
|
|
1161
1238
|
"disabled"?: boolean;
|
|
1162
1239
|
"multiple"?: boolean;
|
|
1163
1240
|
"noSelect"?: boolean;
|
|
1164
1241
|
"onChange"?: (event: Q2OptionListCustomEvent<{ value: string; values: IOptionValue[] }>) => void;
|
|
1165
|
-
"onPopoverState"?: (event: Q2OptionListCustomEvent<{ open: boolean }>) => void;
|
|
1242
|
+
"onPopoverState"?: (event: Q2OptionListCustomEvent<{ open: boolean; action: 'close' | 'select' | 'open' }>) => void;
|
|
1243
|
+
"onReady"?: (event: Q2OptionListCustomEvent<any>) => void;
|
|
1166
1244
|
"role"?: 'listbox' | 'menu';
|
|
1167
1245
|
"selectedOptions"?: IOptionValue[];
|
|
1246
|
+
"showSelected"?: boolean;
|
|
1168
1247
|
"type"?: 'menu' | 'listbox';
|
|
1169
1248
|
}
|
|
1170
1249
|
interface Q2Pagination {
|
|
@@ -1180,6 +1259,7 @@ declare namespace LocalJSX {
|
|
|
1180
1259
|
interface Q2Pill {
|
|
1181
1260
|
"active"?: boolean;
|
|
1182
1261
|
"disabled"?: boolean;
|
|
1262
|
+
"hoist"?: boolean;
|
|
1183
1263
|
"label"?: string;
|
|
1184
1264
|
"maxLength"?: number;
|
|
1185
1265
|
"multiple"?: boolean;
|
|
@@ -1238,18 +1318,20 @@ declare namespace LocalJSX {
|
|
|
1238
1318
|
"disabled"?: boolean;
|
|
1239
1319
|
"errors"?: string[];
|
|
1240
1320
|
"hideLabel"?: boolean;
|
|
1321
|
+
"hoist"?: boolean;
|
|
1241
1322
|
"invalid"?: boolean;
|
|
1242
1323
|
"label"?: string;
|
|
1243
1324
|
"minRows"?: number;
|
|
1244
1325
|
"multilineOptions"?: boolean;
|
|
1245
1326
|
"multiple"?: boolean;
|
|
1246
|
-
"onChange"?: (event: Q2SelectCustomEvent<
|
|
1327
|
+
"onChange"?: (event: Q2SelectCustomEvent<{ value: string; selectedOptions: string[] }>) => void;
|
|
1247
1328
|
"onInput"?: (event: Q2SelectCustomEvent<any>) => void;
|
|
1248
1329
|
"optional"?: boolean;
|
|
1330
|
+
"placeholder"?: string;
|
|
1249
1331
|
"popDirection"?: 'up' | 'down';
|
|
1250
1332
|
"readonly"?: boolean;
|
|
1251
1333
|
"searchable"?: boolean;
|
|
1252
|
-
"selectedOptions"?:
|
|
1334
|
+
"selectedOptions"?: string[];
|
|
1253
1335
|
"value"?: string;
|
|
1254
1336
|
}
|
|
1255
1337
|
interface Q2Stepper {
|
|
@@ -1292,6 +1374,7 @@ declare namespace LocalJSX {
|
|
|
1292
1374
|
"value"?: string;
|
|
1293
1375
|
}
|
|
1294
1376
|
interface Q2Tag {
|
|
1377
|
+
"hoist"?: boolean;
|
|
1295
1378
|
"label"?: string;
|
|
1296
1379
|
"onClick"?: (event: Q2TagCustomEvent<{ value: string }>) => void;
|
|
1297
1380
|
"open"?: boolean;
|
|
@@ -1346,6 +1429,7 @@ declare namespace LocalJSX {
|
|
|
1346
1429
|
}
|
|
1347
1430
|
interface IntrinsicElements {
|
|
1348
1431
|
"click-elsewhere": ClickElsewhere;
|
|
1432
|
+
"q2-action-sheet": Q2ActionSheet;
|
|
1349
1433
|
"q2-avatar": Q2Avatar;
|
|
1350
1434
|
"q2-badge": Q2Badge;
|
|
1351
1435
|
"q2-btn": Q2Btn;
|
|
@@ -1353,6 +1437,7 @@ declare namespace LocalJSX {
|
|
|
1353
1437
|
"q2-card": Q2Card;
|
|
1354
1438
|
"q2-carousel": Q2Carousel;
|
|
1355
1439
|
"q2-carousel-pane": Q2CarouselPane;
|
|
1440
|
+
"q2-chart-area": Q2ChartArea;
|
|
1356
1441
|
"q2-chart-bar": Q2ChartBar;
|
|
1357
1442
|
"q2-chart-donut": Q2ChartDonut;
|
|
1358
1443
|
"q2-checkbox": Q2Checkbox;
|
|
@@ -1393,6 +1478,7 @@ declare module "@stencil/core" {
|
|
|
1393
1478
|
export namespace JSX {
|
|
1394
1479
|
interface IntrinsicElements {
|
|
1395
1480
|
"click-elsewhere": LocalJSX.ClickElsewhere & JSXBase.HTMLAttributes<HTMLClickElsewhereElement>;
|
|
1481
|
+
"q2-action-sheet": LocalJSX.Q2ActionSheet & JSXBase.HTMLAttributes<HTMLQ2ActionSheetElement>;
|
|
1396
1482
|
"q2-avatar": LocalJSX.Q2Avatar & JSXBase.HTMLAttributes<HTMLQ2AvatarElement>;
|
|
1397
1483
|
"q2-badge": LocalJSX.Q2Badge & JSXBase.HTMLAttributes<HTMLQ2BadgeElement>;
|
|
1398
1484
|
"q2-btn": LocalJSX.Q2Btn & JSXBase.HTMLAttributes<HTMLQ2BtnElement>;
|
|
@@ -1400,6 +1486,7 @@ declare module "@stencil/core" {
|
|
|
1400
1486
|
"q2-card": LocalJSX.Q2Card & JSXBase.HTMLAttributes<HTMLQ2CardElement>;
|
|
1401
1487
|
"q2-carousel": LocalJSX.Q2Carousel & JSXBase.HTMLAttributes<HTMLQ2CarouselElement>;
|
|
1402
1488
|
"q2-carousel-pane": LocalJSX.Q2CarouselPane & JSXBase.HTMLAttributes<HTMLQ2CarouselPaneElement>;
|
|
1489
|
+
"q2-chart-area": LocalJSX.Q2ChartArea & JSXBase.HTMLAttributes<HTMLQ2ChartAreaElement>;
|
|
1403
1490
|
"q2-chart-bar": LocalJSX.Q2ChartBar & JSXBase.HTMLAttributes<HTMLQ2ChartBarElement>;
|
|
1404
1491
|
"q2-chart-donut": LocalJSX.Q2ChartDonut & JSXBase.HTMLAttributes<HTMLQ2ChartDonutElement>;
|
|
1405
1492
|
"q2-checkbox": LocalJSX.Q2Checkbox & JSXBase.HTMLAttributes<HTMLQ2CheckboxElement>;
|
package/dist/types/global.d.ts
CHANGED
|
@@ -1,17 +1,26 @@
|
|
|
1
|
+
import { ShowActionSheetFn } from 'q2-tecton-common/lib/utility/action-sheet';
|
|
1
2
|
import { LocFn, ResizeIframeFn, ResolveMenuFn, NavigateToFn, ShowOverpanelFn } from './util';
|
|
2
3
|
|
|
3
4
|
declare global {
|
|
4
5
|
interface Window {
|
|
6
|
+
tecton: {
|
|
7
|
+
actions: Record<string, any>;
|
|
8
|
+
sources: Record<string, any>;
|
|
9
|
+
};
|
|
5
10
|
TectonElements?: {
|
|
6
11
|
loc: LocFn;
|
|
7
12
|
resizeIframe: ResizeIframeFn;
|
|
8
13
|
resolveMenu: ResolveMenuFn;
|
|
9
14
|
navigateTo: NavigateToFn;
|
|
10
15
|
showOverpanel: ShowOverpanelFn;
|
|
16
|
+
showActionSheet?: ShowActionSheetFn;
|
|
11
17
|
};
|
|
12
18
|
Tecton?: {
|
|
13
19
|
inMobileApp: boolean;
|
|
14
|
-
|
|
20
|
+
noStrings: boolean;
|
|
21
|
+
platformUrl: string;
|
|
22
|
+
platformDimensions: Record<string, any>;
|
|
23
|
+
useActionSheets?: boolean;
|
|
15
24
|
};
|
|
16
25
|
__forceSmoothScrollPolyfill__: boolean;
|
|
17
26
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ActionSheetListCloseData, ActionSheetListData } from 'q2-tecton-common/lib/utility/action-sheet';
|
|
2
|
+
interface IActionSheetComponent {
|
|
3
|
+
hoist: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare const shouldShowActionSheet: (component: IActionSheetComponent, event?: KeyboardEvent | MouseEvent) => boolean;
|
|
6
|
+
export declare const buildListData: (component: IActionSheetListComponent, event?: MouseEvent | KeyboardEvent) => Promise<ActionSheetListData>;
|
|
7
|
+
interface IActionSheetListComponent {
|
|
8
|
+
optionList: HTMLQ2OptionListElement;
|
|
9
|
+
label: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const showActionSheetList: (component: IActionSheetListComponent, event?: MouseEvent | KeyboardEvent) => Promise<ActionSheetListCloseData>;
|
|
12
|
+
export {};
|
|
@@ -10,6 +10,7 @@ import { Q2Loading } from 'src/components/q2-loading';
|
|
|
10
10
|
import { Q2Radio } from 'src/components/q2-radio';
|
|
11
11
|
import { Q2Select } from 'src/components/q2-select';
|
|
12
12
|
import { FormFieldTypes, IDict } from 'src/util';
|
|
13
|
+
export declare function isHostLosingFocus(event: FocusEvent, hostElement: HTMLElement): boolean;
|
|
13
14
|
export declare function isRelatedTargetWithinHost(event: FocusEvent, element: HTMLElement): boolean;
|
|
14
15
|
export declare function isEventFromElement(event: Event, element: HTMLElement): boolean;
|
|
15
16
|
export declare function overrideFocus(hostElement: HTMLElement): void;
|
|
@@ -18,7 +19,8 @@ export declare function isFirefox(): boolean;
|
|
|
18
19
|
export declare function isTouchDevice(): boolean;
|
|
19
20
|
export declare function isSafari(): boolean;
|
|
20
21
|
export declare function createGuid(): number;
|
|
21
|
-
export declare function nextPaint(fn: () => void
|
|
22
|
+
export declare function nextPaint(fn: (value?: unknown) => void): void;
|
|
23
|
+
export declare function waitForNextPaint(): Promise<unknown>;
|
|
22
24
|
export declare function capitalize(value: string): string;
|
|
23
25
|
export declare function pick(props: string[]): (obj: object) => object;
|
|
24
26
|
export declare function loc(key: string, subs?: IDict<any> | string[]): string;
|