q2-tecton-elements 1.55.3 → 1.55.4
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/bundle-report.json +299 -299
- package/dist/cjs/{index-f69742cf.js → index-e0aba375.js} +1 -1
- package/dist/cjs/{index-f69742cf.js.map → index-e0aba375.js.map} +1 -1
- package/dist/cjs/q2-action-group.cjs.entry.js +1 -1
- package/dist/cjs/q2-action-sheet.cjs.entry.js +1 -1
- package/dist/cjs/q2-avatar.cjs.entry.js +1 -1
- package/dist/cjs/q2-badge_7.cjs.entry.js +1 -1
- package/dist/cjs/q2-calendar.cjs.entry.js +2 -2
- package/dist/cjs/q2-carousel-pane.cjs.entry.js +2 -2
- package/dist/cjs/q2-carousel.cjs.entry.js +1 -1
- package/dist/cjs/q2-chart-area.cjs.entry.js +1 -1
- package/dist/cjs/q2-chart-bar.cjs.entry.js +1 -1
- package/dist/cjs/q2-chart-donut.cjs.entry.js +1 -1
- package/dist/cjs/q2-checkbox-group.cjs.entry.js +2 -2
- package/dist/cjs/q2-checkbox-group.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/q2-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-currency.cjs.entry.js +1 -1
- package/dist/cjs/q2-data-table.cjs.entry.js +1 -1
- package/dist/cjs/q2-detail.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-example.cjs.entry.js +1 -1
- package/dist/cjs/q2-form.cjs.entry.js +2 -2
- package/dist/cjs/q2-form.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-formatted-text.cjs.entry.js +1 -1
- package/dist/cjs/q2-item_3.cjs.entry.js +2 -2
- package/dist/cjs/q2-legend.cjs.entry.js +1 -1
- package/dist/cjs/q2-message.cjs.entry.js +1 -1
- package/dist/cjs/q2-modal.cjs.entry.js +1 -1
- package/dist/cjs/q2-month-picker.cjs.entry.js +2 -2
- package/dist/cjs/q2-optgroup.cjs.entry.js +1 -1
- package/dist/cjs/q2-option-list_2.cjs.entry.js +2 -2
- package/dist/cjs/q2-pagination.cjs.entry.js +3 -3
- package/dist/cjs/q2-pill.cjs.entry.js +1 -1
- 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-relative-time.cjs.entry.js +2 -2
- package/dist/cjs/q2-resize-observer.cjs.entry.js +1 -1
- package/dist/cjs/q2-section.cjs.entry.js +2 -2
- package/dist/cjs/q2-select.cjs.entry.js +2 -2
- package/dist/cjs/q2-stepper-pane.cjs.entry.js +1 -1
- package/dist/cjs/q2-stepper.cjs.entry.js +1 -1
- package/dist/cjs/q2-textarea.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +6 -6
- package/dist/collection/components/q2-action-group/q2-action-group.js +1 -1
- package/dist/collection/components/q2-action-sheet/q2-action-sheet.js +1 -1
- package/dist/collection/components/q2-avatar/q2-avatar.js +1 -1
- package/dist/collection/components/q2-calendar/q2-calendar.js +1 -1
- package/dist/collection/components/q2-calendar/q2-month-picker.js +2 -2
- package/dist/collection/components/q2-carousel/q2-carousel.js +1 -1
- package/dist/collection/components/q2-carousel-pane/q2-carousel-pane.js +2 -2
- package/dist/collection/components/q2-chart-area/q2-chart-area.js +1 -1
- package/dist/collection/components/q2-chart-bar/q2-chart-bar.js +1 -1
- package/dist/collection/components/q2-chart-donut/q2-chart-donut.js +1 -1
- package/dist/collection/components/q2-checkbox/q2-checkbox.css +1 -1
- package/dist/collection/components/q2-checkbox/q2-checkbox.js +1 -1
- package/dist/collection/components/q2-checkbox-group/q2-checkbox-group.css +0 -5
- package/dist/collection/components/q2-checkbox-group/q2-checkbox-group.js +1 -1
- package/dist/collection/components/q2-currency/q2-currency.js +1 -1
- package/dist/collection/components/q2-data-table/q2-data-table.js +8 -8
- package/dist/collection/components/q2-detail/q2-detail.js +1 -1
- package/dist/collection/components/q2-dropdown/q2-dropdown.js +1 -1
- package/dist/collection/components/q2-editable-field/q2-editable-field.js +1 -1
- package/dist/collection/components/q2-example/q2-example.js +1 -1
- package/dist/collection/components/q2-file-picker/q2-file-picker.js +5 -5
- package/dist/collection/components/q2-form/q2-form.css +0 -1
- package/dist/collection/components/q2-form/q2-form.js +1 -1
- package/dist/collection/components/q2-form/test/q2-form-test.e2e.js +24 -4
- package/dist/collection/components/q2-form/test/q2-form-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-formatted-text/q2-formatted-text.js +1 -1
- package/dist/collection/components/q2-input/q2-input.js +2 -2
- package/dist/collection/components/q2-item/q2-item.js +1 -1
- package/dist/collection/components/q2-legend/q2-legend.js +1 -1
- package/dist/collection/components/q2-list/q2-list.js +1 -1
- package/dist/collection/components/q2-message/q2-message.js +1 -1
- package/dist/collection/components/q2-modal/q2-modal.js +1 -1
- package/dist/collection/components/q2-optgroup/q2-optgroup.js +1 -1
- package/dist/collection/components/q2-option-list/q2-option-list.js +7 -7
- package/dist/collection/components/q2-pagination/q2-pagination.js +3 -3
- package/dist/collection/components/q2-pill/q2-pill.js +1 -1
- package/dist/collection/components/q2-popover/q2-popover.js +1 -1
- package/dist/collection/components/q2-radio/q2-radio.js +1 -1
- package/dist/collection/components/q2-radio-group/q2-radio-group.js +1 -1
- package/dist/collection/components/q2-relative-time/q2-relative-time.js +1 -1
- package/dist/collection/components/q2-resize-observer/q2-resize-observer.js +1 -1
- package/dist/collection/components/q2-section/q2-section.js +2 -2
- package/dist/collection/components/q2-select/q2-select.js +2 -2
- package/dist/collection/components/q2-stepper/q2-stepper.js +1 -1
- package/dist/collection/components/q2-stepper-pane/q2-stepper-pane.js +3 -3
- package/dist/collection/components/q2-textarea/q2-textarea.js +1 -1
- package/dist/components/q2-action-group2.js +1 -1
- package/dist/components/q2-action-sheet.js +1 -1
- package/dist/components/q2-avatar2.js +1 -1
- package/dist/components/q2-calendar.js +1 -1
- package/dist/components/q2-carousel-pane.js +2 -2
- package/dist/components/q2-carousel.js +1 -1
- package/dist/components/q2-chart-area.js +1 -1
- package/dist/components/q2-chart-bar.js +1 -1
- package/dist/components/q2-chart-donut.js +1 -1
- package/dist/components/q2-checkbox-group.js +2 -2
- package/dist/components/q2-checkbox-group.js.map +1 -1
- package/dist/components/q2-checkbox2.js +2 -2
- package/dist/components/q2-checkbox2.js.map +1 -1
- package/dist/components/q2-currency.js +1 -1
- package/dist/components/q2-data-table.js +1 -1
- package/dist/components/q2-detail.js +1 -1
- package/dist/components/q2-dropdown.js +1 -1
- package/dist/components/q2-editable-field.js +1 -1
- package/dist/components/q2-example.js +1 -1
- package/dist/components/q2-form.js +2 -2
- package/dist/components/q2-form.js.map +1 -1
- package/dist/components/q2-formatted-text.js +1 -1
- package/dist/components/q2-input2.js +1 -1
- package/dist/components/q2-item2.js +1 -1
- package/dist/components/q2-legend2.js +1 -1
- package/dist/components/q2-list2.js +1 -1
- package/dist/components/q2-message2.js +1 -1
- package/dist/components/q2-modal.js +1 -1
- package/dist/components/q2-month-picker.js +2 -2
- package/dist/components/q2-optgroup2.js +1 -1
- package/dist/components/q2-option-list2.js +1 -1
- package/dist/components/q2-pagination.js +3 -3
- package/dist/components/q2-pill.js +1 -1
- package/dist/components/q2-popover2.js +1 -1
- package/dist/components/q2-radio-group.js +1 -1
- package/dist/components/q2-radio.js +1 -1
- package/dist/components/q2-relative-time.js +1 -1
- package/dist/components/q2-resize-observer2.js +1 -1
- package/dist/components/q2-section.js +2 -2
- package/dist/components/q2-select2.js +2 -2
- package/dist/components/q2-stepper-pane.js +1 -1
- package/dist/components/q2-stepper.js +1 -1
- package/dist/components/q2-textarea.js +1 -1
- package/dist/esm/{index-3184c760.js → index-3bb7a785.js} +1 -1
- package/dist/esm/{index-3184c760.js.map → index-3bb7a785.js.map} +1 -1
- package/dist/esm/q2-action-group.entry.js +1 -1
- package/dist/esm/q2-action-sheet.entry.js +1 -1
- package/dist/esm/q2-avatar.entry.js +1 -1
- package/dist/esm/q2-badge_7.entry.js +1 -1
- package/dist/esm/q2-calendar.entry.js +2 -2
- package/dist/esm/q2-carousel-pane.entry.js +2 -2
- package/dist/esm/q2-carousel.entry.js +1 -1
- package/dist/esm/q2-chart-area.entry.js +1 -1
- package/dist/esm/q2-chart-bar.entry.js +1 -1
- package/dist/esm/q2-chart-donut.entry.js +1 -1
- package/dist/esm/q2-checkbox-group.entry.js +2 -2
- package/dist/esm/q2-checkbox-group.entry.js.map +1 -1
- package/dist/esm/q2-checkbox.entry.js +2 -2
- package/dist/esm/q2-checkbox.entry.js.map +1 -1
- package/dist/esm/q2-currency.entry.js +1 -1
- package/dist/esm/q2-data-table.entry.js +1 -1
- package/dist/esm/q2-detail.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-example.entry.js +1 -1
- package/dist/esm/q2-form.entry.js +2 -2
- package/dist/esm/q2-form.entry.js.map +1 -1
- package/dist/esm/q2-formatted-text.entry.js +1 -1
- package/dist/esm/q2-item_3.entry.js +2 -2
- package/dist/esm/q2-legend.entry.js +1 -1
- package/dist/esm/q2-message.entry.js +1 -1
- package/dist/esm/q2-modal.entry.js +1 -1
- package/dist/esm/q2-month-picker.entry.js +2 -2
- package/dist/esm/q2-optgroup.entry.js +1 -1
- package/dist/esm/q2-option-list_2.entry.js +2 -2
- package/dist/esm/q2-pagination.entry.js +3 -3
- package/dist/esm/q2-pill.entry.js +1 -1
- package/dist/esm/q2-radio-group.entry.js +1 -1
- package/dist/esm/q2-radio.entry.js +1 -1
- package/dist/esm/q2-relative-time.entry.js +2 -2
- package/dist/esm/q2-resize-observer.entry.js +1 -1
- package/dist/esm/q2-section.entry.js +2 -2
- package/dist/esm/q2-select.entry.js +2 -2
- package/dist/esm/q2-stepper-pane.entry.js +1 -1
- package/dist/esm/q2-stepper.entry.js +1 -1
- package/dist/esm/q2-textarea.entry.js +1 -1
- package/dist/q2-tecton-elements/{index-3184c760.js → index-3bb7a785.js} +1 -1
- package/dist/q2-tecton-elements/q2-action-group.entry.js +3 -3
- package/dist/q2-tecton-elements/q2-action-sheet.entry.js +62 -62
- package/dist/q2-tecton-elements/q2-avatar.entry.js +6 -6
- package/dist/q2-tecton-elements/q2-badge_7.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-calendar.entry.js +3 -3
- package/dist/q2-tecton-elements/q2-carousel-pane.entry.js +3 -3
- package/dist/q2-tecton-elements/q2-carousel.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-chart-area.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-chart-bar.entry.js +79 -79
- package/dist/q2-tecton-elements/q2-chart-donut.entry.js +100 -100
- package/dist/q2-tecton-elements/q2-checkbox-group.entry.js +11 -11
- package/dist/q2-tecton-elements/q2-checkbox-group.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-checkbox.entry.js +8 -8
- package/dist/q2-tecton-elements/q2-checkbox.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-currency.entry.js +6 -6
- package/dist/q2-tecton-elements/q2-data-table.entry.js +3 -3
- package/dist/q2-tecton-elements/q2-detail.entry.js +3 -3
- package/dist/q2-tecton-elements/q2-dropdown.entry.js +5 -5
- package/dist/q2-tecton-elements/q2-editable-field.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-example.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-form.entry.js +10 -10
- package/dist/q2-tecton-elements/q2-form.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-formatted-text.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-item_3.entry.js +21 -21
- package/dist/q2-tecton-elements/q2-legend.entry.js +5 -5
- package/dist/q2-tecton-elements/q2-message.entry.js +5 -5
- package/dist/q2-tecton-elements/q2-modal.entry.js +17 -17
- package/dist/q2-tecton-elements/q2-month-picker.entry.js +30 -30
- package/dist/q2-tecton-elements/q2-optgroup.entry.js +4 -4
- package/dist/q2-tecton-elements/q2-option-list_2.entry.js +7 -7
- package/dist/q2-tecton-elements/q2-pagination.entry.js +33 -33
- package/dist/q2-tecton-elements/q2-pill.entry.js +13 -13
- package/dist/q2-tecton-elements/q2-radio-group.entry.js +33 -33
- package/dist/q2-tecton-elements/q2-radio.entry.js +8 -8
- package/dist/q2-tecton-elements/q2-relative-time.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-resize-observer.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-section.entry.js +11 -11
- package/dist/q2-tecton-elements/q2-select.entry.js +5 -5
- package/dist/q2-tecton-elements/q2-stepper-pane.entry.js +11 -11
- package/dist/q2-tecton-elements/q2-stepper.entry.js +20 -20
- package/dist/q2-tecton-elements/q2-textarea.entry.js +2 -2
- package/dist/types/components/q2-action-group/q2-action-group.d.ts +0 -1
- package/dist/types/components/q2-loading/skeleton/shapes.d.ts +0 -1
- package/dist/types/components/q2-optgroup/q2-optgroup.d.ts +1 -1
- package/dist/types/components/q2-tab-container/q2-tab-container.d.ts +2 -2
- package/package.json +3 -4
- package/dist/types/components/q2-action-sheet/q2-action-sheet.d.ts +0 -60
- package/dist/types/components/q2-calendar/q2-calendar.d.ts +0 -327
- package/dist/types/components/q2-carousel/q2-carousel.d.ts +0 -95
- package/dist/types/components/q2-data-table/q2-data-table.d.ts +0 -261
- package/dist/types/components/q2-dropdown/q2-dropdown.d.ts +0 -181
- package/dist/types/components/q2-editable-field/q2-editable-field.d.ts +0 -140
- package/dist/types/components/q2-option-list/q2-option-list.d.ts +0 -100
- package/dist/types/components/q2-pagination/q2-pagination.d.ts +0 -117
- package/dist/types/components/q2-pill/q2-pill.d.ts +0 -143
- package/dist/types/components/q2-select/q2-select.d.ts +0 -238
- package/dist/types/components/q2-stepper/q2-stepper.d.ts +0 -61
- package/dist/types/components/q2-stepper-vertical/q2-stepper-vertical.d.ts +0 -68
- package/dist/types/components/q2-tag/q2-tag.d.ts +0 -91
- package/dist/types/utils/action-sheet.d.ts +0 -12
- /package/dist/q2-tecton-elements/{index-3184c760.js.map → index-3bb7a785.js.map} +0 -0
- /package/dist/types/{builds/q2e/development/tecton/tecton → Users/kvanhouten/Documents/Work/tecton_extra}/packages/q2-tecton-elements/.stencil/jest.setup.d.ts +0 -0
|
@@ -1,261 +0,0 @@
|
|
|
1
|
-
import { ComponentInterface, EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
-
export type Q2DataTableCellAlignOptions = 'start' | 'center' | 'end';
|
|
3
|
-
export type Q2DataTableCellType = {
|
|
4
|
-
type?: 'text' | 'number' | 'icon' | 'boolean' | 'code';
|
|
5
|
-
} | {
|
|
6
|
-
type?: 'badge';
|
|
7
|
-
badgeStatus?: HTMLQ2BadgeElement['status'];
|
|
8
|
-
badgeTheme?: HTMLQ2BadgeElement['theme'];
|
|
9
|
-
};
|
|
10
|
-
export type Q2DataTableHeader = {
|
|
11
|
-
title: string;
|
|
12
|
-
align?: Q2DataTableCellAlignOptions;
|
|
13
|
-
key?: string;
|
|
14
|
-
sortable?: boolean | 'auto' | 'manual';
|
|
15
|
-
width?: string;
|
|
16
|
-
backgroundColor?: string;
|
|
17
|
-
sorted?: 'ASC' | 'DESC';
|
|
18
|
-
ariaLabel?: string;
|
|
19
|
-
lineClamp?: number;
|
|
20
|
-
verticalAlign?: 'top' | 'bottom';
|
|
21
|
-
} & Partial<Q2DataTableCellType>;
|
|
22
|
-
export type Q2DataTableCell = {
|
|
23
|
-
value: string | number | boolean;
|
|
24
|
-
align?: Q2DataTableCellAlignOptions;
|
|
25
|
-
ariaLabel?: string;
|
|
26
|
-
lineClamp?: number;
|
|
27
|
-
verticalAlign?: 'top' | 'bottom';
|
|
28
|
-
} & Q2DataTableCellType;
|
|
29
|
-
export type Q2DataTableBaseRow = {
|
|
30
|
-
id: string | number;
|
|
31
|
-
selected?: boolean;
|
|
32
|
-
expanded?: boolean;
|
|
33
|
-
disabled?: boolean;
|
|
34
|
-
};
|
|
35
|
-
export type Q2DataTableCells = Record<string, string | number | Q2DataTableCell>;
|
|
36
|
-
export type Q2DataTableSerializedCells = Record<string, Q2DataTableCell>;
|
|
37
|
-
export type Q2DataTableRow = Q2DataTableBaseRow & {
|
|
38
|
-
cells: Q2DataTableCells;
|
|
39
|
-
};
|
|
40
|
-
export type Q2DataTableSerializedRow = Q2DataTableBaseRow & {
|
|
41
|
-
cells: Q2DataTableSerializedCells;
|
|
42
|
-
};
|
|
43
|
-
export declare class Q2DataTable implements ComponentInterface {
|
|
44
|
-
mutationObserver: MutationObserver;
|
|
45
|
-
resizeObserver: ResizeObserver;
|
|
46
|
-
hostElement: HTMLElement;
|
|
47
|
-
allRowsSelected: boolean;
|
|
48
|
-
checkSlotCount: number;
|
|
49
|
-
hasDropdowns: boolean;
|
|
50
|
-
hasExpandableRows: boolean;
|
|
51
|
-
hasRowData: boolean;
|
|
52
|
-
serializedHeaders: Q2DataTableHeader[];
|
|
53
|
-
serializedRows: Q2DataTableSerializedRow[];
|
|
54
|
-
someRowsSelected: boolean;
|
|
55
|
-
/** Adds borders between rows and/or columns in the table. */
|
|
56
|
-
bordered: boolean | 'horizontal' | 'vertical' | 'grid';
|
|
57
|
-
/** Provides a caption for the data table. */
|
|
58
|
-
caption: string;
|
|
59
|
-
/** Adds the ability to click a row and have the table emit an event with the selected row's data. */
|
|
60
|
-
clickable: boolean;
|
|
61
|
-
/** Determines the amount of padding for each of the cells in the table. */
|
|
62
|
-
density: 'compact' | 'normal' | 'comfortable';
|
|
63
|
-
/** Determines the `q2-icon` that will display when `rows` has no value. */
|
|
64
|
-
emptyIcon: string;
|
|
65
|
-
/** Determines the message that will display when `rows` has no value.
|
|
66
|
-
* @localizable
|
|
67
|
-
*/
|
|
68
|
-
emptyMessage: string;
|
|
69
|
-
/**
|
|
70
|
-
* Defines the headers of the table.
|
|
71
|
-
*
|
|
72
|
-
* **Example:**
|
|
73
|
-
* @snippet
|
|
74
|
-
* element.headers = [
|
|
75
|
-
* {
|
|
76
|
-
* title: 'Day of the Week',
|
|
77
|
-
* key: 'day',
|
|
78
|
-
* },
|
|
79
|
-
* {
|
|
80
|
-
* title: 'Sales',
|
|
81
|
-
* key: 'sales',
|
|
82
|
-
* align: 'end',
|
|
83
|
-
* }
|
|
84
|
-
* ]
|
|
85
|
-
*
|
|
86
|
-
*/
|
|
87
|
-
headers: Q2DataTableHeader[];
|
|
88
|
-
/** Hides the caption from view, but still makes it available to screen readers for accessibility purposes. */
|
|
89
|
-
hideCaption: boolean;
|
|
90
|
-
/**
|
|
91
|
-
* Visually hides the `Select` button that displays when `clickable=true`. It will still be discoverable by assistive technologies.
|
|
92
|
-
*
|
|
93
|
-
* @info
|
|
94
|
-
* Use of this property requires `clickable` to be set to `true`.
|
|
95
|
-
*/
|
|
96
|
-
hideClickable: boolean;
|
|
97
|
-
/** Displays a loading state on the table to indicate background activity. */
|
|
98
|
-
loading: boolean;
|
|
99
|
-
/**
|
|
100
|
-
* Defines the rows of the table.
|
|
101
|
-
*
|
|
102
|
-
* **Example:**
|
|
103
|
-
* @snippet
|
|
104
|
-
* element.rows = [
|
|
105
|
-
* {
|
|
106
|
-
* id: 1,
|
|
107
|
-
* cells: {
|
|
108
|
-
* day: 'Monday',
|
|
109
|
-
* sales: 93
|
|
110
|
-
* }
|
|
111
|
-
* },
|
|
112
|
-
* {
|
|
113
|
-
* id: 2,
|
|
114
|
-
* cells: {
|
|
115
|
-
* day: 'Tuesday',
|
|
116
|
-
* sales: 127
|
|
117
|
-
* }
|
|
118
|
-
* },
|
|
119
|
-
* {
|
|
120
|
-
* id: 3,
|
|
121
|
-
* cells: {
|
|
122
|
-
* day: 'Wednesday',
|
|
123
|
-
* sales: 121
|
|
124
|
-
* }
|
|
125
|
-
* ]
|
|
126
|
-
*/
|
|
127
|
-
rows: Q2DataTableRow[];
|
|
128
|
-
/** Adds a checkbox to each row of the table making it selectable. */
|
|
129
|
-
selectable: boolean;
|
|
130
|
-
/**
|
|
131
|
-
* Determines if the selectable checkboxes allow for multi-select or not. If set to "single", once a row is selected, all other rows will be disabled.
|
|
132
|
-
* See the documentation on the `select` event for how to handle selections.
|
|
133
|
-
*
|
|
134
|
-
* @warning
|
|
135
|
-
* Use of this property requires `selectable` to be set to `true`.
|
|
136
|
-
*/
|
|
137
|
-
selectMode: 'multiple' | 'single';
|
|
138
|
-
/** Adds a shadow to the table */
|
|
139
|
-
shadowed: boolean;
|
|
140
|
-
/** Enables alternating background colors for the table rows */
|
|
141
|
-
striped: boolean;
|
|
142
|
-
/**
|
|
143
|
-
* Emitted when a row is clicked.
|
|
144
|
-
*
|
|
145
|
-
* Requires the `clickable` prop to be set to `true`.
|
|
146
|
-
*
|
|
147
|
-
* Call `event.preventDefault()` to prevent the default click behavior.
|
|
148
|
-
*/
|
|
149
|
-
click: EventEmitter<{
|
|
150
|
-
row: Q2DataTableSerializedRow;
|
|
151
|
-
}>;
|
|
152
|
-
/**
|
|
153
|
-
* Emitted when a row is selected.
|
|
154
|
-
*
|
|
155
|
-
* Requires the `selectable` prop to be set to `true`.
|
|
156
|
-
*
|
|
157
|
-
* Call `event.preventDefault()` to prevent the default selection behavior.
|
|
158
|
-
*/
|
|
159
|
-
select: EventEmitter<{
|
|
160
|
-
row: Q2DataTableSerializedRow;
|
|
161
|
-
rows: Q2DataTableSerializedRow[];
|
|
162
|
-
allSelected: boolean;
|
|
163
|
-
}>;
|
|
164
|
-
/**
|
|
165
|
-
* Emitted when the select-all checkbox is toggled.
|
|
166
|
-
*
|
|
167
|
-
* Requires the `selectable` prop to be set to `true` and the `selectMode` prop to be set to `multiple`.
|
|
168
|
-
*
|
|
169
|
-
* Call `event.preventDefault()` to prevent the default behavior.
|
|
170
|
-
*/
|
|
171
|
-
selectAllRows: EventEmitter<{
|
|
172
|
-
checked: boolean;
|
|
173
|
-
}>;
|
|
174
|
-
/**
|
|
175
|
-
* Emitted when a column is sorted.
|
|
176
|
-
*
|
|
177
|
-
* Requires the `sortable` prop to be set to `true` on the column.
|
|
178
|
-
*
|
|
179
|
-
* Call `event.preventDefault()` to prevent the default sorting behavior.
|
|
180
|
-
*/
|
|
181
|
-
sort: EventEmitter<{
|
|
182
|
-
header: Q2DataTableHeader;
|
|
183
|
-
direction: 'ASC' | 'DESC';
|
|
184
|
-
}>;
|
|
185
|
-
/**
|
|
186
|
-
* Emitted when an expandable row is toggled.
|
|
187
|
-
*
|
|
188
|
-
* Requires content in the `row-{id}-expandable-content` slot.
|
|
189
|
-
*
|
|
190
|
-
* Call `event.preventDefault()` to prevent the default toggling behavior.
|
|
191
|
-
*/
|
|
192
|
-
toggle: EventEmitter<{
|
|
193
|
-
row: Q2DataTableSerializedRow;
|
|
194
|
-
}>;
|
|
195
|
-
disconnectedCallback(): void;
|
|
196
|
-
componentWillLoad(): void;
|
|
197
|
-
componentDidLoad(): void;
|
|
198
|
-
onClickListener(event: MouseEvent): void;
|
|
199
|
-
onSelectAllRows(event: CustomEvent<{
|
|
200
|
-
checked: boolean;
|
|
201
|
-
}>): void;
|
|
202
|
-
/**
|
|
203
|
-
* A method to click a row that accepts a row ID that is will be clicked.
|
|
204
|
-
*
|
|
205
|
-
* @testOnly
|
|
206
|
-
*/
|
|
207
|
-
clickRow(rowId: number | string): Promise<void>;
|
|
208
|
-
/**
|
|
209
|
-
* A method that returns the plain text value of a particular cell (including slot content).
|
|
210
|
-
*
|
|
211
|
-
* @testOnly
|
|
212
|
-
*/
|
|
213
|
-
getCellContent(rowId: number | string, columnKey: string): Promise<string>;
|
|
214
|
-
/**
|
|
215
|
-
* A method to sort a column that accepts a header object with key</b> and <b>sorted</b> property.
|
|
216
|
-
*
|
|
217
|
-
* @testOnly
|
|
218
|
-
*/
|
|
219
|
-
sortColumn(header: Q2DataTableHeader): Promise<void>;
|
|
220
|
-
/**
|
|
221
|
-
* A method to toggle row expansion that accepts a row ID that will be clicked to expand or collapse the expandable content
|
|
222
|
-
*
|
|
223
|
-
* @testOnly
|
|
224
|
-
*/
|
|
225
|
-
toggleRowExpansion(rowId: number | string): Promise<void>;
|
|
226
|
-
/**
|
|
227
|
-
* A method to toggle row selection that accepts a row ID whose checkbox will be checked, if the feature is enabled.
|
|
228
|
-
*
|
|
229
|
-
* @testOnly
|
|
230
|
-
*/
|
|
231
|
-
toggleRowSelect(rowId: number | string): Promise<void>;
|
|
232
|
-
/**
|
|
233
|
-
* A method to toggle select all button (checkbox) on left top corner.
|
|
234
|
-
*
|
|
235
|
-
* @testOnly
|
|
236
|
-
*/
|
|
237
|
-
toggleSelectAllRows(): Promise<void>;
|
|
238
|
-
headersHandler(headers?: Q2DataTableHeader[]): void;
|
|
239
|
-
rowsHandler(rows?: Q2DataTableRow[]): void;
|
|
240
|
-
selectableHandler(): void;
|
|
241
|
-
get mappedHeaders(): Record<string, Q2DataTableHeader>;
|
|
242
|
-
get numberOfColumns(): number;
|
|
243
|
-
get selectedRow(): Q2DataTableSerializedRow;
|
|
244
|
-
get selectedRows(): Q2DataTableSerializedRow[];
|
|
245
|
-
checkSlots: () => void;
|
|
246
|
-
onClickRow: (event: MouseEvent, row: Q2DataTableSerializedRow) => void;
|
|
247
|
-
onClickTableRow: (event: MouseEvent, row: Q2DataTableSerializedRow) => void;
|
|
248
|
-
onControlContainerClick: (event: MouseEvent) => void;
|
|
249
|
-
onSelectRow: (event: CustomEvent<{
|
|
250
|
-
checked: boolean;
|
|
251
|
-
}>, row: Q2DataTableSerializedRow) => void;
|
|
252
|
-
onSort: (header: Q2DataTableHeader) => void;
|
|
253
|
-
onToggleRow: (event: MouseEvent, row: Q2DataTableSerializedRow) => void;
|
|
254
|
-
sortRows(rows: Q2DataTableSerializedRow[], header: Q2DataTableHeader): Q2DataTableSerializedRow[];
|
|
255
|
-
render(): any;
|
|
256
|
-
renderCellContent(cell: Q2DataTableCell): any;
|
|
257
|
-
renderEmptyState(): any;
|
|
258
|
-
renderTableColGroup(): any;
|
|
259
|
-
renderTableHeader(): any;
|
|
260
|
-
renderTableRows(): any;
|
|
261
|
-
}
|
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
import { ComponentInterface } from '../../stencil-public-runtime';
|
|
2
|
-
import { IDict } from "../../util";
|
|
3
|
-
export declare class Q2Dropdown implements ComponentInterface {
|
|
4
|
-
controlElement?: HTMLQ2BtnElement;
|
|
5
|
-
dropdownItemSelector: string;
|
|
6
|
-
popoverElement?: HTMLQ2PopoverElement;
|
|
7
|
-
optionList: HTMLQ2OptionListElement;
|
|
8
|
-
hostElement: HTMLElement;
|
|
9
|
-
additionalContext: string;
|
|
10
|
-
/** @deprecated */
|
|
11
|
-
alignment: 'left' | 'right';
|
|
12
|
-
/** @deprecated */
|
|
13
|
-
ariaLabel: string;
|
|
14
|
-
/** If `true`, component expands to fill the width of its parent element. */
|
|
15
|
-
block: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Tells the outlet what the type of object being passed in as contextValue.
|
|
18
|
-
* This will allow for the hierarchy resolution logic to work to determine if an option should or should not be shown.
|
|
19
|
-
*
|
|
20
|
-
* @info
|
|
21
|
-
* Only applicable when using `<q2-dropdown>` for outlets.
|
|
22
|
-
*/
|
|
23
|
-
context: string;
|
|
24
|
-
/**
|
|
25
|
-
* Passes important information to the outlet (e.g., pass an account id that your platform can use to look up what module to show for that account type).
|
|
26
|
-
*
|
|
27
|
-
* @info
|
|
28
|
-
* Only applicable when using `<q2-dropdown>` for outlets.
|
|
29
|
-
*/
|
|
30
|
-
contextValue: string;
|
|
31
|
-
/** Indicates the menu cannot be focused or interacted with. */
|
|
32
|
-
disabled: boolean;
|
|
33
|
-
/**
|
|
34
|
-
* Hide's the field's `<label>` element from view.
|
|
35
|
-
* @warning
|
|
36
|
-
* Only use when a visible label is impractical.
|
|
37
|
-
*/
|
|
38
|
-
hideLabel: boolean;
|
|
39
|
-
/**
|
|
40
|
-
* Instructs the component to use the action sheet workflow for displaying its options.
|
|
41
|
-
*
|
|
42
|
-
* For more information, see [Action Sheets](https://tecton.q2developer.com/guides/action-sheets/).
|
|
43
|
-
*/
|
|
44
|
-
hoist: boolean;
|
|
45
|
-
/** The icon that will render within the toggle button. You may use any of the `q2-icon` types. */
|
|
46
|
-
icon: string;
|
|
47
|
-
/**
|
|
48
|
-
* The text that appears within the button.
|
|
49
|
-
* @warning
|
|
50
|
-
* This property should not be used if the `type` is `icon`.
|
|
51
|
-
* @localizable
|
|
52
|
-
*/
|
|
53
|
-
label: string;
|
|
54
|
-
/**
|
|
55
|
-
* Identifies this menu as an outlet. Used in conjunction with context and, optionally, `contextValue`.
|
|
56
|
-
* @info
|
|
57
|
-
* Only applicable when using `<q2-dropdown>` for outlets.
|
|
58
|
-
*/
|
|
59
|
-
name: string;
|
|
60
|
-
/**
|
|
61
|
-
* Determine whether the popover is open or closed.
|
|
62
|
-
*
|
|
63
|
-
* @readonly
|
|
64
|
-
*/
|
|
65
|
-
open: boolean;
|
|
66
|
-
/** Determines the label that is applied to the option list for accessibility purposes. */
|
|
67
|
-
optionListLabel: string;
|
|
68
|
-
/** @deprecated */
|
|
69
|
-
popDirection: 'up' | 'down';
|
|
70
|
-
/** Aligns the popover dropdown to the left or right side of the input field. */
|
|
71
|
-
popoverAlignment: 'left' | 'right';
|
|
72
|
-
/**
|
|
73
|
-
* Force the direction of the popover dropdown when it opens.
|
|
74
|
-
* If no value is passed, the component will auto-detect the direction based on available space.
|
|
75
|
-
*/
|
|
76
|
-
popoverDirection: 'up' | 'down';
|
|
77
|
-
/**
|
|
78
|
-
* Force the maximum height of the popover. This value will be interpreted as pixels.
|
|
79
|
-
* If no value is passed, or the value exceeds available space, the component will auto-detect the maximum height based on available space.
|
|
80
|
-
*/
|
|
81
|
-
popoverMaxHeight: number;
|
|
82
|
-
/** @deprecated */
|
|
83
|
-
popoverMinHeight: number;
|
|
84
|
-
/**
|
|
85
|
-
* Determines the display mode of the popover.
|
|
86
|
-
*
|
|
87
|
-
* Providing a value of `legacy` instructs the popover to use absolute positioning instead of fixed positioning.
|
|
88
|
-
*
|
|
89
|
-
* @info
|
|
90
|
-
* This is a temporary solution to work around styling issues related to using fixed positioning for the popover
|
|
91
|
-
* when nested inside of elements with transform properties. This will be removed once the popover API is available
|
|
92
|
-
* for use.
|
|
93
|
-
*/
|
|
94
|
-
popoverMode: 'legacy';
|
|
95
|
-
/**
|
|
96
|
-
* Use with `context` to tell the outlet where it appears. It will be matched with the appropriately configured module for that context.
|
|
97
|
-
* @info
|
|
98
|
-
* Only applicable when using `<q2-dropdown>` for outlets.
|
|
99
|
-
*/
|
|
100
|
-
resolvedType: string;
|
|
101
|
-
/** The type of button used as the menu toggle.
|
|
102
|
-
* @info
|
|
103
|
-
* Type must be "custom" to use the custom button slot.
|
|
104
|
-
*/
|
|
105
|
-
type: 'icon' | 'fab' | 'custom' | 'primary' | 'secondary' | 'neutral';
|
|
106
|
-
componentWillLoad(): void;
|
|
107
|
-
componentDidLoad(): void;
|
|
108
|
-
delegateFocus(event: FocusEvent): void;
|
|
109
|
-
popoverStateChangeHandler({ detail: { open } }: CustomEvent<{
|
|
110
|
-
open: boolean;
|
|
111
|
-
}>): void;
|
|
112
|
-
/**
|
|
113
|
-
* Emulates clicking the dropdown `<button>` to hide the popover if it is showing.
|
|
114
|
-
* @testOnly
|
|
115
|
-
*/
|
|
116
|
-
closePopover(): Promise<void>;
|
|
117
|
-
/**
|
|
118
|
-
* Emulates clicking the dropdown `<button>` to show the popover if it is hidden.
|
|
119
|
-
* @testOnly
|
|
120
|
-
*/
|
|
121
|
-
openPopover(): Promise<void>;
|
|
122
|
-
/**
|
|
123
|
-
* Emulates opening the dropdown and selecting a [Dropdown Item](https://tecton.q2developer.com/design-system/q2-dropdown-item/).
|
|
124
|
-
*
|
|
125
|
-
* If the dropdown is closed, this will open it before selecting the item.
|
|
126
|
-
*
|
|
127
|
-
* If the value does not match any item's value, this method does nothing.
|
|
128
|
-
* @testOnly
|
|
129
|
-
*/
|
|
130
|
-
selectItem(value: string): Promise<void>;
|
|
131
|
-
/**
|
|
132
|
-
* Emulates opening the dropdown and selecting a [Dropdown Item](https://tecton.q2developer.com/design-system/q2-dropdown-item/)'s *remove* button.
|
|
133
|
-
*
|
|
134
|
-
* If the dropdown is closed, this will open it before selecting the remove item button.
|
|
135
|
-
*
|
|
136
|
-
* Requirements for this method to work properly:
|
|
137
|
-
* - Provided `value` matches the item's `value` property
|
|
138
|
-
* - Item has the `removable` property enabled
|
|
139
|
-
* @testOnly
|
|
140
|
-
*/
|
|
141
|
-
selectRemoveItem(value: string): Promise<void>;
|
|
142
|
-
additionalContextHandler(): void;
|
|
143
|
-
alignmentHandler(): void;
|
|
144
|
-
ariaLabelHandler(): void;
|
|
145
|
-
contextHandler(): void;
|
|
146
|
-
contextValueHandler(): void;
|
|
147
|
-
nameHandler(): void;
|
|
148
|
-
popDirectionHandler(): void;
|
|
149
|
-
resolvedTypeHandler(): void;
|
|
150
|
-
get determineDropdownItemCount(): number;
|
|
151
|
-
get hasCustomControl(): boolean;
|
|
152
|
-
get toggleButtonProps(): {
|
|
153
|
-
icon: boolean;
|
|
154
|
-
fab: boolean;
|
|
155
|
-
intent: any;
|
|
156
|
-
active: boolean;
|
|
157
|
-
disabled: boolean;
|
|
158
|
-
ariaExpanded: boolean;
|
|
159
|
-
className: string;
|
|
160
|
-
custom: boolean;
|
|
161
|
-
};
|
|
162
|
-
_clickItem(value: string): void;
|
|
163
|
-
_handleActionSheet(event: MouseEvent | KeyboardEvent): Promise<void>;
|
|
164
|
-
_togglePopover(): void;
|
|
165
|
-
focusToggle: () => void;
|
|
166
|
-
navigateTo(featureName: string, moduleName?: string, queryParams?: IDict<string>): void;
|
|
167
|
-
onClickElsewhere: (event: CustomEvent) => void;
|
|
168
|
-
onToggleClick: (event: MouseEvent) => Promise<void>;
|
|
169
|
-
onToggleKeydown: (event: KeyboardEvent) => Promise<void>;
|
|
170
|
-
onPopoverState: (event: CustomEvent<{
|
|
171
|
-
open: boolean;
|
|
172
|
-
action: string;
|
|
173
|
-
}>) => void;
|
|
174
|
-
handleFocusOut: (event: FocusEvent) => void;
|
|
175
|
-
orchestrateResolvedMenuItems(): void;
|
|
176
|
-
removeResolvedElements(): void;
|
|
177
|
-
resolveMenu(): Promise<import("src/util").ResolvedMenuItem[]>;
|
|
178
|
-
resolveMenuItemElements(): Promise<HTMLQ2DropdownItemElement[]>;
|
|
179
|
-
showOverpanel(overpanelPath: string, params: IDict<string>): Promise<unknown>;
|
|
180
|
-
render(): any;
|
|
181
|
-
}
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
-
import { IEventDetail, Q2InputCustomEvent } from "../../components";
|
|
3
|
-
import { Q2Input } from '../q2-input/q2-input';
|
|
4
|
-
export declare class Q2EditableField {
|
|
5
|
-
cancelBtnElement: HTMLQ2BtnElement;
|
|
6
|
-
defaultValue: string;
|
|
7
|
-
editBtnElement: HTMLQ2BtnElement;
|
|
8
|
-
innerValue: string;
|
|
9
|
-
inputElement: HTMLQ2InputElement;
|
|
10
|
-
saveBtnElement: HTMLQ2BtnElement;
|
|
11
|
-
scheduledAfterRender: (() => void)[];
|
|
12
|
-
hostElement: HTMLElement;
|
|
13
|
-
formattedValue: string;
|
|
14
|
-
/** @deprecated */
|
|
15
|
-
ariaLabel: string;
|
|
16
|
-
/** If `true`, component expands to fill the width of its parent element. */
|
|
17
|
-
block: boolean;
|
|
18
|
-
/** Disables the edit button and field. */
|
|
19
|
-
disabled: boolean;
|
|
20
|
-
/** Controls the edit state of the element. */
|
|
21
|
-
editing: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Determines the `errors` applied to the `q2-input` element.
|
|
24
|
-
*
|
|
25
|
-
* See [q2-input](https://tecton.q2developer.com/design-system/q2-input/) for more information.
|
|
26
|
-
*/
|
|
27
|
-
errors: string[];
|
|
28
|
-
/**
|
|
29
|
-
* Determines the `formatModifier` applied to the `q2-input` element.
|
|
30
|
-
* @info
|
|
31
|
-
* Only applicable when `type="currency"`.
|
|
32
|
-
*
|
|
33
|
-
* See [q2-input](https://tecton.q2developer.com/design-system/q2-input/) for more information.
|
|
34
|
-
*/
|
|
35
|
-
formatModifier: string;
|
|
36
|
-
/** Hide's the field's `<label>` element from view. */
|
|
37
|
-
hideLabel: boolean;
|
|
38
|
-
/**
|
|
39
|
-
* Determines the `hints` applied to the `q2-input` element.
|
|
40
|
-
*
|
|
41
|
-
* See [q2-input](https://tecton.q2developer.com/design-system/q2-input/) for more information.
|
|
42
|
-
*/
|
|
43
|
-
hints: string[];
|
|
44
|
-
/**
|
|
45
|
-
* The visible descriptor for the element.
|
|
46
|
-
* Serves as the input label while in the edit state and as a decorative label for the read state when `persistentLabel` is `true`.
|
|
47
|
-
* @localizable
|
|
48
|
-
*/
|
|
49
|
-
label: string;
|
|
50
|
-
/**
|
|
51
|
-
* Determines the `maxLength` applied to the `q2-input`.
|
|
52
|
-
*
|
|
53
|
-
* See [q2-input](https://tecton.q2developer.com/design-system/q2-input/) for more information.
|
|
54
|
-
*/
|
|
55
|
-
maxlength: number;
|
|
56
|
-
/** Displays the provided label in the read state. */
|
|
57
|
-
persistentLabel: boolean;
|
|
58
|
-
/** Shortens long values with ellipses instead of splitting into multiple lines. */
|
|
59
|
-
truncated: boolean;
|
|
60
|
-
/**
|
|
61
|
-
* Determines the `type` applied to the `q2-input` element.
|
|
62
|
-
*
|
|
63
|
-
* See [q2-input](https://tecton.q2developer.com/design-system/q2-input/) for all `type` values.
|
|
64
|
-
*/
|
|
65
|
-
type: Q2Input['type'];
|
|
66
|
-
/** Serves as the visible text while in the read state, and the default value of the input while in the edit state. */
|
|
67
|
-
value: string;
|
|
68
|
-
/**
|
|
69
|
-
* Emitted when the 'Edit', 'Cancel', or 'Save' buttons are clicked.
|
|
70
|
-
*
|
|
71
|
-
* The event detail will not include a `value` or `formattedValue` if the event name is 'edit' or 'cancel'.
|
|
72
|
-
*@info
|
|
73
|
-
* If you are utilizing events to provide input validation, it is recommended you use the `input` event, not the `change` event.
|
|
74
|
-
*/
|
|
75
|
-
change: EventEmitter<{
|
|
76
|
-
editing: boolean;
|
|
77
|
-
name: 'edit' | 'cancel' | 'save';
|
|
78
|
-
value?: string;
|
|
79
|
-
formattedValue?: string;
|
|
80
|
-
}>;
|
|
81
|
-
/**
|
|
82
|
-
* Emitted when the user updates the `q2-input` element in the editing state.
|
|
83
|
-
*/
|
|
84
|
-
input: EventEmitter<{
|
|
85
|
-
formattedValue: string;
|
|
86
|
-
value: string;
|
|
87
|
-
}>;
|
|
88
|
-
componentWillLoad(): void;
|
|
89
|
-
componentDidLoad(): void;
|
|
90
|
-
componentDidRender(): void;
|
|
91
|
-
onHostElementChange(event: CustomEvent): void;
|
|
92
|
-
delegateFocus(event: FocusEvent): void;
|
|
93
|
-
/**
|
|
94
|
-
* Emulates clicking the cancel button, which will hide the `<q2-input>` field.
|
|
95
|
-
*
|
|
96
|
-
* @testOnly
|
|
97
|
-
*/
|
|
98
|
-
clickCancel(): void;
|
|
99
|
-
/**
|
|
100
|
-
* Emulates clicking the edit button, which will display the `<q2-input>` field.
|
|
101
|
-
*
|
|
102
|
-
* @testOnly
|
|
103
|
-
*/
|
|
104
|
-
clickEdit(): void;
|
|
105
|
-
/**
|
|
106
|
-
* Emulates clicking the save button, saving value in the `<q2-input>` field, and emitting a `change` event.
|
|
107
|
-
*
|
|
108
|
-
* @testOnly
|
|
109
|
-
*/
|
|
110
|
-
clickSave(): void;
|
|
111
|
-
/**
|
|
112
|
-
* Emulates clicking the edit button, and setting the value of the `<q2-input>` field.
|
|
113
|
-
*
|
|
114
|
-
* If the `clickSave` argument is `true` (default), the save button will be clicked after the value is set, and a\
|
|
115
|
-
* `change` event will be emitted.
|
|
116
|
-
*
|
|
117
|
-
* @testOnly
|
|
118
|
-
*/
|
|
119
|
-
setValue(value: string, options?: {
|
|
120
|
-
clickSave?: boolean;
|
|
121
|
-
}): Promise<void>;
|
|
122
|
-
ariaLabelObserver(): void;
|
|
123
|
-
observesEditing(newValue: boolean, oldValue: boolean): void;
|
|
124
|
-
errorsObserver(): void;
|
|
125
|
-
get hasErrors(): boolean;
|
|
126
|
-
get hasHints(): boolean;
|
|
127
|
-
get locLabel(): string;
|
|
128
|
-
get wrapperClass(): string;
|
|
129
|
-
cancelClick: (event?: MouseEvent) => void;
|
|
130
|
-
editClick: (event: MouseEvent) => void;
|
|
131
|
-
generateEditBtn(): any;
|
|
132
|
-
generateEditStateDOM(): any;
|
|
133
|
-
generateReadStateDOM(): any;
|
|
134
|
-
inputChange: (e: CustomEvent) => void;
|
|
135
|
-
inputClick: (event: MouseEvent) => void;
|
|
136
|
-
inputInput: (event: Q2InputCustomEvent<IEventDetail> & InputEvent) => void;
|
|
137
|
-
inputKeyDown: (e: KeyboardEvent) => void;
|
|
138
|
-
saveClick: (event?: MouseEvent) => void;
|
|
139
|
-
render(): any;
|
|
140
|
-
}
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { ComponentInterface, EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
-
export interface IOptionValue {
|
|
3
|
-
value: string;
|
|
4
|
-
display?: string;
|
|
5
|
-
}
|
|
6
|
-
export type ValidOptionElements = HTMLQ2OptionElement | HTMLQ2DropdownItemElement;
|
|
7
|
-
export declare class Q2OptionList implements ComponentInterface {
|
|
8
|
-
activeIndex: number;
|
|
9
|
-
contentElement: HTMLElement;
|
|
10
|
-
keyStore: {
|
|
11
|
-
queue: string[];
|
|
12
|
-
lastPressedAt: Date;
|
|
13
|
-
};
|
|
14
|
-
pivotIndex: number;
|
|
15
|
-
scheduledAfterRender: (() => void)[];
|
|
16
|
-
searchString: string;
|
|
17
|
-
searchStringTimer: number;
|
|
18
|
-
hostElement: HTMLElement;
|
|
19
|
-
hasOptions: boolean;
|
|
20
|
-
align: 'left' | 'right';
|
|
21
|
-
/** Indicates a custom search is being implemented for the option list. */
|
|
22
|
-
customSearch: boolean;
|
|
23
|
-
/** Disables the option list. */
|
|
24
|
-
disabled: boolean;
|
|
25
|
-
/** Determines the label that is applied to the option list for accessibility purposes. */
|
|
26
|
-
label: string;
|
|
27
|
-
/**
|
|
28
|
-
* Enables the multi-select ability for the option list.
|
|
29
|
-
* @info
|
|
30
|
-
* Only applicable when options are provided.
|
|
31
|
-
*/
|
|
32
|
-
multiple: boolean;
|
|
33
|
-
/** Disables the logic that handles selecting and focusing an option in the option list. */
|
|
34
|
-
noSelect: boolean;
|
|
35
|
-
/** A list of the selected options on the element. */
|
|
36
|
-
selectedOptions: IOptionValue[];
|
|
37
|
-
/** Applies focus to the selected option. */
|
|
38
|
-
showSelected: boolean;
|
|
39
|
-
/** Translates to the role of the option list */
|
|
40
|
-
type: 'menu' | 'listbox';
|
|
41
|
-
/**
|
|
42
|
-
* Emitted when an option is selected or deselected.
|
|
43
|
-
*
|
|
44
|
-
* When the multi-select is enabled, the `value` property will be `undefined` and the `selectedOptions` property
|
|
45
|
-
* will contain the selected option values.
|
|
46
|
-
*/
|
|
47
|
-
change: EventEmitter<{
|
|
48
|
-
value: string;
|
|
49
|
-
values: IOptionValue[];
|
|
50
|
-
}>;
|
|
51
|
-
/**
|
|
52
|
-
* Emitted to indicate the intended state of the popover.
|
|
53
|
-
* @private
|
|
54
|
-
*/
|
|
55
|
-
popoverState: EventEmitter<{
|
|
56
|
-
open: boolean;
|
|
57
|
-
action: 'close' | 'select' | 'open';
|
|
58
|
-
}>;
|
|
59
|
-
/**
|
|
60
|
-
* Emitted when the component has finished rendering.
|
|
61
|
-
* @private
|
|
62
|
-
*/
|
|
63
|
-
ready: EventEmitter<undefined>;
|
|
64
|
-
componentWillLoad(): void;
|
|
65
|
-
componentDidLoad(): void;
|
|
66
|
-
componentDidRender(): void;
|
|
67
|
-
handleClick(event: MouseEvent): void;
|
|
68
|
-
delegateFocus(event: FocusEvent): void;
|
|
69
|
-
getContents(): Promise<(HTMLQ2OptgroupElement | ValidOptionElements)[]>;
|
|
70
|
-
getOptions(): Promise<ValidOptionElements[]>;
|
|
71
|
-
handleExternalKeydown(event: KeyboardEvent): Promise<void>;
|
|
72
|
-
setActiveElement(index: number): Promise<void>;
|
|
73
|
-
setDefaultActiveElement(): Promise<void>;
|
|
74
|
-
selectedOptionsUpdated(): void;
|
|
75
|
-
showSelectedUpdated(showSelected: boolean): void;
|
|
76
|
-
get allContents(): (HTMLQ2OptgroupElement | ValidOptionElements)[];
|
|
77
|
-
get allOptions(): ValidOptionElements[];
|
|
78
|
-
get allVisibleOptions(): ValidOptionElements[];
|
|
79
|
-
adjustActiveOptionAndScroll(numToAdd: number): void;
|
|
80
|
-
checkOptions(): void;
|
|
81
|
-
clickHandler: (event: Event) => void;
|
|
82
|
-
externalKeydownHandler: (event: KeyboardEvent) => void;
|
|
83
|
-
focusoutHandler: (event: FocusEvent) => void;
|
|
84
|
-
focusSelectedSibling(option: ValidOptionElements): void;
|
|
85
|
-
getDefaultActiveIndex(): number;
|
|
86
|
-
getNextVisibleIndex(direction: any): number;
|
|
87
|
-
getRootSlot(element: Element): Element[];
|
|
88
|
-
internalKeydownHandler: (event: KeyboardEvent) => void;
|
|
89
|
-
openDropdownWithActiveElement(activeIndex: number): Promise<void>;
|
|
90
|
-
resetTimer(): void;
|
|
91
|
-
scrollToActiveOption(): void;
|
|
92
|
-
searchAndFocus: (keyValue: string, shouldSelect: boolean) => void;
|
|
93
|
-
searchOptions(key: string, shouldSelect?: boolean): void;
|
|
94
|
-
selectOption(selectedOption: ValidOptionElements): void;
|
|
95
|
-
setActiveOption(): void;
|
|
96
|
-
setFocusedOption(): void;
|
|
97
|
-
updateMultipleOptionAttrs(): void;
|
|
98
|
-
updateSingleOptionAttrs(): void;
|
|
99
|
-
render(): any;
|
|
100
|
-
}
|