@nanoporetech-digital/components 3.0.0 → 3.1.1
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/CHANGELOG.md +31 -0
- package/dist/cjs/index-41582c2a.js +8 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/nano-checkbox-group.cjs.entry.js +12 -3
- package/dist/cjs/nano-checkbox-group.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-components.cjs.js +1 -1
- package/dist/cjs/nano-details.cjs.entry.js +2 -2
- package/dist/cjs/nano-details.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-field-validator.cjs.entry.js +2 -0
- package/dist/cjs/nano-field-validator.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-global-nav-user-profile_3.cjs.entry.js +3 -3
- package/dist/cjs/nano-global-nav-user-profile_3.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-global-nav.cjs.entry.js +18 -20
- package/dist/cjs/nano-global-nav.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-input.cjs.entry.js +1 -1
- package/dist/cjs/nano-input.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-menu-drawer.cjs.entry.js +1 -1
- package/dist/cjs/nano-menu-drawer.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-progress-bar.cjs.entry.js +33 -0
- package/dist/cjs/nano-progress-bar.cjs.entry.js.map +1 -0
- package/dist/cjs/nano-resize-observe_2.cjs.entry.js +2 -2
- package/dist/cjs/nano-resize-observe_2.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-spinner.cjs.entry.js +1 -1
- package/dist/cjs/nano-spinner.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-tab-group.cjs.entry.js +1 -1
- package/dist/cjs/nano-tab.cjs.entry.js +1 -1
- package/dist/cjs/nano-tab.cjs.entry.js.map +1 -1
- package/dist/cjs/{nano-table-8a898621.js → nano-table-844394ad.js} +146 -58
- package/dist/cjs/nano-table-844394ad.js.map +1 -0
- package/dist/cjs/nano-table.cjs.entry.js +2 -1
- package/dist/cjs/nano-table.cjs.entry.js.map +1 -1
- package/dist/cjs/{table.worker-b0b0044a.js → table.worker-1bc19978.js} +3 -2
- package/dist/cjs/table.worker-1bc19978.js.map +1 -0
- package/dist/cjs/{transitions-d295a09e.js → transitions-5cd8f697.js} +10 -8
- package/dist/cjs/transitions-5cd8f697.js.map +1 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/checkbox/checkbox-group.js +12 -3
- package/dist/collection/components/checkbox/checkbox-group.js.map +1 -1
- package/dist/collection/components/details/details.css +1 -0
- package/dist/collection/components/field-validator/field-validator.js +2 -0
- package/dist/collection/components/field-validator/field-validator.js.map +1 -1
- package/dist/collection/components/global-nav/assets/ont-logo.svg +89 -47
- package/dist/collection/components/global-nav/global-nav-interface.js.map +1 -1
- package/dist/collection/components/global-nav/global-nav.js +19 -21
- package/dist/collection/components/global-nav/global-nav.js.map +1 -1
- package/dist/collection/components/global-nav/{global-nav.css → style/global-nav.css} +465 -405
- package/dist/collection/components/input/input.css +2 -0
- package/dist/collection/components/menu-drawer/menu-drawer.css +1 -0
- package/dist/collection/components/nav-item/nav-item.css +6 -6
- package/dist/collection/components/progress-bar/progress-bar.css +84 -0
- package/dist/collection/components/progress-bar/progress-bar.js +106 -0
- package/dist/collection/components/progress-bar/progress-bar.js.map +1 -0
- package/dist/collection/components/select/select.css +4 -0
- package/dist/collection/components/skeleton/skeleton.css +8 -5
- package/dist/collection/components/skeleton/skeleton.js +1 -1
- package/dist/collection/components/skeleton/skeleton.js.map +1 -1
- package/dist/collection/components/spinner/spinner.css +5 -9
- package/dist/collection/components/table/table.children.js +43 -17
- package/dist/collection/components/table/table.children.js.map +1 -1
- package/dist/collection/components/table/table.css +97 -27
- package/dist/collection/components/table/table.js +143 -33
- package/dist/collection/components/table/table.js.map +1 -1
- package/dist/collection/components/table/table.service.js +1 -10
- package/dist/collection/components/table/table.service.js.map +1 -1
- package/dist/collection/components/table/table.store.js +11 -11
- package/dist/collection/components/table/table.store.js.map +1 -1
- package/dist/collection/components/tabs/tab.css +1 -0
- package/dist/collection/utils/transitions.js +9 -7
- package/dist/collection/utils/transitions.js.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/input.js.map +1 -1
- package/dist/components/nano-checkbox-group.js +12 -3
- package/dist/components/nano-checkbox-group.js.map +1 -1
- package/dist/components/nano-details.js +1 -1
- package/dist/components/nano-details.js.map +1 -1
- package/dist/components/nano-field-validator.js +2 -0
- package/dist/components/nano-field-validator.js.map +1 -1
- package/dist/components/nano-global-nav.js +17 -19
- package/dist/components/nano-global-nav.js.map +1 -1
- package/dist/components/nano-menu-drawer.js +1 -1
- package/dist/components/nano-menu-drawer.js.map +1 -1
- package/dist/components/nano-progress-bar.d.ts +11 -0
- package/dist/components/nano-progress-bar.js +11 -0
- package/dist/components/nano-progress-bar.js.map +1 -0
- package/dist/components/nano-tab.js +1 -1
- package/dist/components/nano-tab.js.map +1 -1
- package/dist/components/nano-table.js +167 -58
- package/dist/components/nano-table.js.map +1 -1
- package/dist/components/nav-item.js +1 -1
- package/dist/components/nav-item.js.map +1 -1
- package/dist/components/progress-bar.js +48 -0
- package/dist/components/progress-bar.js.map +1 -0
- package/dist/components/select.js +1 -1
- package/dist/components/select.js.map +1 -1
- package/dist/components/skeleton.js +2 -2
- package/dist/components/skeleton.js.map +1 -1
- package/dist/components/spinner.js +1 -1
- package/dist/components/spinner.js.map +1 -1
- package/dist/components/transitions.js +9 -7
- package/dist/components/transitions.js.map +1 -1
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +219 -96
- package/dist/custom-elements/index.js.map +1 -1
- package/dist/esm/index-3c280603.js +8 -4
- package/dist/esm/loader.js +1 -1
- package/dist/esm/nano-checkbox-group.entry.js +12 -3
- package/dist/esm/nano-checkbox-group.entry.js.map +1 -1
- package/dist/esm/nano-components.js +1 -1
- package/dist/esm/nano-details.entry.js +2 -2
- package/dist/esm/nano-details.entry.js.map +1 -1
- package/dist/esm/nano-field-validator.entry.js +2 -0
- package/dist/esm/nano-field-validator.entry.js.map +1 -1
- package/dist/esm/nano-global-nav-user-profile_3.entry.js +3 -3
- package/dist/esm/nano-global-nav-user-profile_3.entry.js.map +1 -1
- package/dist/esm/nano-global-nav.entry.js +18 -20
- package/dist/esm/nano-global-nav.entry.js.map +1 -1
- package/dist/esm/nano-input.entry.js +1 -1
- package/dist/esm/nano-input.entry.js.map +1 -1
- package/dist/esm/nano-menu-drawer.entry.js +1 -1
- package/dist/esm/nano-menu-drawer.entry.js.map +1 -1
- package/dist/esm/nano-progress-bar.entry.js +29 -0
- package/dist/esm/nano-progress-bar.entry.js.map +1 -0
- package/dist/esm/nano-resize-observe_2.entry.js +2 -2
- package/dist/esm/nano-resize-observe_2.entry.js.map +1 -1
- package/dist/esm/nano-spinner.entry.js +1 -1
- package/dist/esm/nano-spinner.entry.js.map +1 -1
- package/dist/esm/nano-tab-group.entry.js +1 -1
- package/dist/esm/nano-tab.entry.js +1 -1
- package/dist/esm/nano-tab.entry.js.map +1 -1
- package/dist/esm/{nano-table-efdf3dba.js → nano-table-19d19d72.js} +146 -58
- package/dist/esm/nano-table-19d19d72.js.map +1 -0
- package/dist/esm/nano-table.entry.js +2 -1
- package/dist/esm/nano-table.entry.js.map +1 -1
- package/dist/esm/{table.worker-10ba1126.js → table.worker-c82cecdf.js} +3 -2
- package/dist/esm/table.worker-c82cecdf.js.map +1 -0
- package/dist/esm/{transitions-d75d242e.js → transitions-71cca3ed.js} +10 -8
- package/dist/esm/transitions-71cca3ed.js.map +1 -0
- package/dist/nano-components/assets/ont-logo.svg +89 -47
- package/dist/nano-components/nano-components.esm.js +1 -1
- package/dist/nano-components/nano-components.esm.js.map +1 -1
- package/dist/nano-components/p-02df1f62.entry.js +5 -0
- package/dist/nano-components/{p-9f8b091a.entry.js.map → p-02df1f62.entry.js.map} +1 -1
- package/dist/nano-components/p-167b9165.js +5 -0
- package/dist/nano-components/p-167b9165.js.map +1 -0
- package/dist/nano-components/p-1ae8c03e.entry.js +5 -0
- package/dist/nano-components/p-1ae8c03e.entry.js.map +1 -0
- package/dist/nano-components/p-28b43ee9.entry.js +5 -0
- package/dist/nano-components/{p-49a831a3.entry.js.map → p-28b43ee9.entry.js.map} +1 -1
- package/dist/nano-components/{p-8ef2363b.entry.js → p-6cd59e58.entry.js} +2 -2
- package/dist/nano-components/{p-8ef2363b.entry.js.map → p-6cd59e58.entry.js.map} +0 -0
- package/dist/nano-components/{p-687350a5.entry.js → p-701e8ebf.entry.js} +2 -2
- package/dist/nano-components/p-701e8ebf.entry.js.map +1 -0
- package/dist/nano-components/p-7ade1695.js +5 -0
- package/dist/nano-components/{p-8a6834ff.entry.js.map → p-7ade1695.js.map} +0 -0
- package/dist/nano-components/p-8a52a411.entry.js +5 -0
- package/dist/nano-components/{p-68b18b99.entry.js.map → p-8a52a411.entry.js.map} +1 -1
- package/dist/nano-components/p-a2d0d7b9.entry.js.map +1 -1
- package/dist/nano-components/p-b4a045a2.entry.js +5 -0
- package/dist/nano-components/{p-b7b06e04.js.map → p-b4a045a2.entry.js.map} +0 -0
- package/dist/nano-components/p-b7901427.entry.js +5 -0
- package/dist/nano-components/p-b7901427.entry.js.map +1 -0
- package/dist/nano-components/p-b83a8320.js +5 -0
- package/dist/nano-components/p-b83a8320.js.map +1 -0
- package/dist/nano-components/p-d8e8d7e3.entry.js +5 -0
- package/dist/nano-components/p-d8e8d7e3.entry.js.map +1 -0
- package/dist/nano-components/p-efa8c520.entry.js +5 -0
- package/dist/nano-components/{p-47bd0f5d.entry.js.map → p-efa8c520.entry.js.map} +1 -1
- package/dist/nano-components/p-f95a263c.entry.js +5 -0
- package/dist/nano-components/p-f95a263c.entry.js.map +1 -0
- package/dist/nano-components/p-fa2a6733.entry.js +5 -0
- package/dist/nano-components/p-fa2a6733.entry.js.map +1 -0
- package/dist/themes/london-calling.css.map +1 -1
- package/dist/themes/nanopore.css.map +1 -1
- package/dist/types/components/global-nav/global-nav-interface.d.ts +43 -0
- package/dist/types/components/global-nav/global-nav.d.ts +1 -1
- package/dist/types/components/progress-bar/progress-bar.d.ts +19 -0
- package/dist/types/components/table/table.children.d.ts +2 -1
- package/dist/types/components/table/table.d.ts +25 -7
- package/dist/types/components/table/table.service.d.ts +1 -7
- package/dist/types/components/table/table.store.d.ts +4 -2
- package/dist/types/components.d.ts +60 -5
- package/docs-json.json +274 -49
- package/docs-vscode.json +31 -2
- package/package.json +3 -3
- package/dist/cjs/nano-table-8a898621.js.map +0 -1
- package/dist/cjs/table.worker-b0b0044a.js.map +0 -1
- package/dist/cjs/transitions-d295a09e.js.map +0 -1
- package/dist/esm/nano-table-efdf3dba.js.map +0 -1
- package/dist/esm/table.worker-10ba1126.js.map +0 -1
- package/dist/esm/transitions-d75d242e.js.map +0 -1
- package/dist/nano-components/p-03402e69.entry.js +0 -5
- package/dist/nano-components/p-03402e69.entry.js.map +0 -1
- package/dist/nano-components/p-2382d5e9.entry.js +0 -5
- package/dist/nano-components/p-2382d5e9.entry.js.map +0 -1
- package/dist/nano-components/p-47bd0f5d.entry.js +0 -5
- package/dist/nano-components/p-49a831a3.entry.js +0 -5
- package/dist/nano-components/p-4c6ef60b.js +0 -5
- package/dist/nano-components/p-4c6ef60b.js.map +0 -1
- package/dist/nano-components/p-61bfb8b9.entry.js +0 -5
- package/dist/nano-components/p-61bfb8b9.entry.js.map +0 -1
- package/dist/nano-components/p-687350a5.entry.js.map +0 -1
- package/dist/nano-components/p-68b18b99.entry.js +0 -5
- package/dist/nano-components/p-82295d91.js +0 -5
- package/dist/nano-components/p-82295d91.js.map +0 -1
- package/dist/nano-components/p-8a6834ff.entry.js +0 -5
- package/dist/nano-components/p-9f2524d4.entry.js +0 -5
- package/dist/nano-components/p-9f2524d4.entry.js.map +0 -1
- package/dist/nano-components/p-9f8b091a.entry.js +0 -5
- package/dist/nano-components/p-b7b06e04.js +0 -5
@@ -35,3 +35,46 @@ export interface MyAccountUser {
|
|
35
35
|
is_nanopore_user: boolean;
|
36
36
|
kudos: number;
|
37
37
|
}
|
38
|
+
export interface MyAccountData {
|
39
|
+
user: MyAccountUser;
|
40
|
+
cart: {
|
41
|
+
count: number;
|
42
|
+
url: string;
|
43
|
+
};
|
44
|
+
notifications: {
|
45
|
+
count: number;
|
46
|
+
};
|
47
|
+
hs: {
|
48
|
+
lists?: Array<number>;
|
49
|
+
};
|
50
|
+
registration: {
|
51
|
+
next_url: string | null;
|
52
|
+
};
|
53
|
+
links: null | MyAccountLink[];
|
54
|
+
urls: {
|
55
|
+
forgot_password: string | null;
|
56
|
+
logout: string | null;
|
57
|
+
login: string | null;
|
58
|
+
messages: string | null;
|
59
|
+
cart: string | null;
|
60
|
+
};
|
61
|
+
domains: [
|
62
|
+
{
|
63
|
+
origin: string;
|
64
|
+
domain: string;
|
65
|
+
}
|
66
|
+
];
|
67
|
+
search: {
|
68
|
+
app_id: string;
|
69
|
+
api_key: string;
|
70
|
+
indeces: [
|
71
|
+
{
|
72
|
+
index: string;
|
73
|
+
name: string;
|
74
|
+
domain: string;
|
75
|
+
all_group?: boolean;
|
76
|
+
filters?: [string];
|
77
|
+
}
|
78
|
+
];
|
79
|
+
};
|
80
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
/**
|
2
|
+
* Used to show the status of an ongoing operation.
|
3
|
+
*
|
4
|
+
* @slot - A label to show inside the indicator.
|
5
|
+
*
|
6
|
+
* @part base - The component's base wrapper.
|
7
|
+
* @part indicator - The progress bar indicator.
|
8
|
+
* @part label - The progress bar label.
|
9
|
+
*/
|
10
|
+
export declare class ProgressBar {
|
11
|
+
host: HTMLNanoProgressBarElement;
|
12
|
+
/** The progress bar's percentage, 0 to 100. */
|
13
|
+
value: number;
|
14
|
+
/** When true, percentage is ignored, the label is hidden, and the progress bar is drawn in an indeterminate state. */
|
15
|
+
indeterminate: boolean;
|
16
|
+
/** Whether to show the progress bar's current percent as text. Will be overwritten if you use the default slot. */
|
17
|
+
showPercent: boolean;
|
18
|
+
render(): any;
|
19
|
+
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { FunctionalComponent } from '../../stencil-public-runtime';
|
1
|
+
import { FunctionalComponent, VNode } from '../../stencil-public-runtime';
|
2
2
|
import type { TableTypes } from '../../interface';
|
3
3
|
declare type PinnedCb = (positions: {
|
4
4
|
[key in TableTypes.Position]?: boolean;
|
@@ -24,6 +24,7 @@ export declare const TableColHead: FunctionalComponent<TableColHeadProps>;
|
|
24
24
|
declare type TableCellProps = {
|
25
25
|
rowIndex: number;
|
26
26
|
colIndex: number;
|
27
|
+
nestedContent?: VNode;
|
27
28
|
};
|
28
29
|
export declare const TableCell: FunctionalComponent<TableCellProps>;
|
29
30
|
export {};
|
@@ -1,11 +1,19 @@
|
|
1
1
|
import { ComponentInterface, EventEmitter } from '../../stencil-public-runtime';
|
2
2
|
import type { TableTypes } from '../../interface';
|
3
3
|
/**
|
4
|
-
*
|
5
|
-
*
|
6
|
-
*
|
4
|
+
* A performant, accessible and semantic (uses real html `<table />`, `<tr />` etc) table and data-grid solution.
|
5
|
+
* - Built-in search
|
6
|
+
* - Built-in column filter
|
7
|
+
* - Built-in column sort
|
8
|
+
* - Easily swap in API / async based search / filter & sort
|
9
|
+
* - Pin headers, footers, rows, columns
|
10
|
+
* - Add custom rendering at every level
|
11
|
+
* - Add custom properties at every level
|
12
|
+
*
|
13
|
+
* @slot caption - The table's caption. You must either use this or the `caption` attribute.
|
7
14
|
*/
|
8
15
|
export declare class Table implements ComponentInterface {
|
16
|
+
constructor();
|
9
17
|
/** The type of table. Grid type will make cells navigable by keyboard */
|
10
18
|
type: 'grid' | 'table';
|
11
19
|
/** A descriptive title of the table.
|
@@ -13,8 +21,17 @@ export declare class Table implements ComponentInterface {
|
|
13
21
|
caption: string;
|
14
22
|
/** Show the caption on-screen */
|
15
23
|
showCaption: boolean;
|
24
|
+
/** Will show a loading state when true.
|
25
|
+
* Will be shown automatically if `rows` is a promise waiting to resolve
|
26
|
+
* or when performing custom filtering or sorting */
|
27
|
+
get loading(): boolean;
|
28
|
+
set loading(l: boolean);
|
29
|
+
_loading: boolean;
|
30
|
+
private debounceSetLoading;
|
31
|
+
/** When loading rows asynchronously, this will render this number of placeholder rows */
|
32
|
+
placeholderSize: number;
|
16
33
|
/** The data to place in the table */
|
17
|
-
rows: TableTypes.NanoTable['rows']
|
34
|
+
rows: TableTypes.NanoTable['rows'] | Promise<TableTypes.NanoTable['rows']>;
|
18
35
|
handleRowsChange(): void;
|
19
36
|
/** The column config used to generate present the rows of data */
|
20
37
|
columns: TableTypes.NanoTable['columns'];
|
@@ -82,7 +99,7 @@ export declare class Table implements ComponentInterface {
|
|
82
99
|
nanoTblBeforeSearch: EventEmitter<{
|
83
100
|
term: string;
|
84
101
|
}>;
|
85
|
-
/** Fired after a general search */
|
102
|
+
/** Fired after a general / cross column search */
|
86
103
|
nanoTblAfterSearch: EventEmitter<{
|
87
104
|
term: string;
|
88
105
|
}>;
|
@@ -108,6 +125,7 @@ export declare class Table implements ComponentInterface {
|
|
108
125
|
private currentFilters;
|
109
126
|
private currentSort;
|
110
127
|
private tableEle;
|
128
|
+
private topAnchorEle;
|
111
129
|
/** `tr` elements split into units - defined by `perPage`
|
112
130
|
These are show / hidden for perf */
|
113
131
|
blocks: TableTypes.TBody[];
|
@@ -169,8 +187,8 @@ export declare class Table implements ComponentInterface {
|
|
169
187
|
/** cache the height for all active blocks for later renders */
|
170
188
|
private setBlockHeight;
|
171
189
|
/**
|
172
|
-
* Attaches an intersection observer to each rendered tbody
|
173
|
-
* shows / hides intersecting blocks' and sets heights for when
|
190
|
+
* Attaches an intersection observer to each rendered tbody element
|
191
|
+
* shows / hides intersecting blocks' and sets heights for when they're hidden
|
174
192
|
* @param el - the tbody element to observe
|
175
193
|
* @param blockIndex - the rendering tbody we're attaching the IO to
|
176
194
|
*/
|
@@ -39,10 +39,4 @@ export declare function cellRender(rowIndex: number, colIndex: number): VNode;
|
|
39
39
|
* @param col - the current column config object
|
40
40
|
* @returns - a JSX node
|
41
41
|
*/
|
42
|
-
export declare function
|
43
|
-
/**
|
44
|
-
* Renders a table header (within a tfoot) using a custom template if set.
|
45
|
-
* @param col - the current column config object
|
46
|
-
* @returns - a JSX node
|
47
|
-
*/
|
48
|
-
export declare function colFootRender(col: TableTypes.ColumnConfig): VNode | void;
|
42
|
+
export declare function colheadFootRender(col: TableTypes.ColumnConfig): VNode;
|
@@ -9,11 +9,13 @@ export interface TableStores {
|
|
9
9
|
}>;
|
10
10
|
general: ObservableMap<{
|
11
11
|
workerId: string;
|
12
|
+
scrollParent: HTMLElement;
|
13
|
+
host: HTMLNanoTableElement;
|
12
14
|
}>;
|
13
15
|
}
|
14
|
-
export declare function generateStore(host:
|
16
|
+
export declare function generateStore(host: HTMLNanoTableElement, columns: TableTypes.NanoTable['columns'], scrollParent: HTMLElement): Promise<TableStores>;
|
15
17
|
export declare function getStore(host: HTMLElement): TableStores;
|
16
|
-
export declare function storeSetData(host: HTMLElement, rows: TableTypes.RowData[]):
|
18
|
+
export declare function storeSetData(host: HTMLElement, rows: TableTypes.RowData[]): Promise<boolean>;
|
17
19
|
export declare function storeSetConfig(host: HTMLElement, columns: TableTypes.ColumnConfig[]): void;
|
18
20
|
export declare function storeSearch(host: HTMLElement, term: string): Promise<void>;
|
19
21
|
export declare function storeFilter(host: HTMLElement, filters: TableTypes.Filter[]): Promise<void>;
|
@@ -933,7 +933,7 @@ export namespace Components {
|
|
933
933
|
*/
|
934
934
|
"logoUrl": string;
|
935
935
|
/**
|
936
|
-
* MyAccount
|
936
|
+
* MyAccount un-read message count.
|
937
937
|
*/
|
938
938
|
"msgCount": number;
|
939
939
|
/**
|
@@ -1472,6 +1472,20 @@ export namespace Components {
|
|
1472
1472
|
*/
|
1473
1473
|
"value": string;
|
1474
1474
|
}
|
1475
|
+
interface NanoProgressBar {
|
1476
|
+
/**
|
1477
|
+
* When true, percentage is ignored, the label is hidden, and the progress bar is drawn in an indeterminate state.
|
1478
|
+
*/
|
1479
|
+
"indeterminate": boolean;
|
1480
|
+
/**
|
1481
|
+
* Whether to show the progress bar's current percent as text. Will be overwritten if you use the default slot.
|
1482
|
+
*/
|
1483
|
+
"showPercent": boolean;
|
1484
|
+
/**
|
1485
|
+
* The progress bar's percentage, 0 to 100.
|
1486
|
+
*/
|
1487
|
+
"value": number;
|
1488
|
+
}
|
1475
1489
|
interface NanoRange {
|
1476
1490
|
/**
|
1477
1491
|
* The color to use from your application's color palette. Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`
|
@@ -2025,10 +2039,18 @@ export namespace Components {
|
|
2025
2039
|
* Used for custom thead row rendering
|
2026
2040
|
*/
|
2027
2041
|
"headRender": TableTypes.HeadFootRenderer;
|
2042
|
+
/**
|
2043
|
+
* Will show a loading state when true. Will be shown automatically if `rows` is a promise waiting to resolve or when performing custom filtering or sorting
|
2044
|
+
*/
|
2045
|
+
"loading": boolean;
|
2028
2046
|
/**
|
2029
2047
|
* To improve performance, data is split into blocks which are shown / hidden and rendered as they become visible. Use this to control the number of hits within a block - A block should fill a scrolling viewport. The less perBlock the better for performance
|
2030
2048
|
*/
|
2031
2049
|
"perBlock": number;
|
2050
|
+
/**
|
2051
|
+
* When loading rows asynchronously, this will render this number of placeholder rows
|
2052
|
+
*/
|
2053
|
+
"placeholderSize": number;
|
2032
2054
|
/**
|
2033
2055
|
* Remove any column filters currently applied
|
2034
2056
|
* @returns a promise which resolves when complete
|
@@ -2046,7 +2068,8 @@ export namespace Components {
|
|
2046
2068
|
/**
|
2047
2069
|
* The data to place in the table
|
2048
2070
|
*/
|
2049
|
-
"rows": TableTypes.NanoTable['rows']
|
2071
|
+
"rows": | TableTypes.NanoTable['rows']
|
2072
|
+
| Promise<TableTypes.NanoTable['rows']>;
|
2050
2073
|
/**
|
2051
2074
|
* Term to search for in the data
|
2052
2075
|
*/
|
@@ -2461,6 +2484,12 @@ declare global {
|
|
2461
2484
|
prototype: HTMLNanoOptionElement;
|
2462
2485
|
new (): HTMLNanoOptionElement;
|
2463
2486
|
};
|
2487
|
+
interface HTMLNanoProgressBarElement extends Components.NanoProgressBar, HTMLStencilElement {
|
2488
|
+
}
|
2489
|
+
var HTMLNanoProgressBarElement: {
|
2490
|
+
prototype: HTMLNanoProgressBarElement;
|
2491
|
+
new (): HTMLNanoProgressBarElement;
|
2492
|
+
};
|
2464
2493
|
interface HTMLNanoRangeElement extends Components.NanoRange, HTMLStencilElement {
|
2465
2494
|
}
|
2466
2495
|
var HTMLNanoRangeElement: {
|
@@ -2585,6 +2614,7 @@ declare global {
|
|
2585
2614
|
"nano-menu-drawer": HTMLNanoMenuDrawerElement;
|
2586
2615
|
"nano-nav-item": HTMLNanoNavItemElement;
|
2587
2616
|
"nano-option": HTMLNanoOptionElement;
|
2617
|
+
"nano-progress-bar": HTMLNanoProgressBarElement;
|
2588
2618
|
"nano-range": HTMLNanoRangeElement;
|
2589
2619
|
"nano-rating": HTMLNanoRatingElement;
|
2590
2620
|
"nano-resize-observe": HTMLNanoResizeObserveElement;
|
@@ -3569,7 +3599,7 @@ declare namespace LocalJSX {
|
|
3569
3599
|
*/
|
3570
3600
|
"logoUrl"?: string;
|
3571
3601
|
/**
|
3572
|
-
* MyAccount
|
3602
|
+
* MyAccount un-read message count.
|
3573
3603
|
*/
|
3574
3604
|
"msgCount"?: number;
|
3575
3605
|
/**
|
@@ -4147,6 +4177,20 @@ declare namespace LocalJSX {
|
|
4147
4177
|
*/
|
4148
4178
|
"value"?: string;
|
4149
4179
|
}
|
4180
|
+
interface NanoProgressBar {
|
4181
|
+
/**
|
4182
|
+
* When true, percentage is ignored, the label is hidden, and the progress bar is drawn in an indeterminate state.
|
4183
|
+
*/
|
4184
|
+
"indeterminate"?: boolean;
|
4185
|
+
/**
|
4186
|
+
* Whether to show the progress bar's current percent as text. Will be overwritten if you use the default slot.
|
4187
|
+
*/
|
4188
|
+
"showPercent"?: boolean;
|
4189
|
+
/**
|
4190
|
+
* The progress bar's percentage, 0 to 100.
|
4191
|
+
*/
|
4192
|
+
"value"?: number;
|
4193
|
+
}
|
4150
4194
|
interface NanoRange {
|
4151
4195
|
/**
|
4152
4196
|
* The color to use from your application's color palette. Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`
|
@@ -4704,12 +4748,16 @@ declare namespace LocalJSX {
|
|
4704
4748
|
* Used for custom thead row rendering
|
4705
4749
|
*/
|
4706
4750
|
"headRender"?: TableTypes.HeadFootRenderer;
|
4751
|
+
/**
|
4752
|
+
* Will show a loading state when true. Will be shown automatically if `rows` is a promise waiting to resolve or when performing custom filtering or sorting
|
4753
|
+
*/
|
4754
|
+
"loading"?: boolean;
|
4707
4755
|
/**
|
4708
4756
|
* Fired after a column is sorted
|
4709
4757
|
*/
|
4710
4758
|
"onNanoTblAfterFilter"?: (event: NanoTableCustomEvent<{ filters: TableTypes.Filter[] }>) => void;
|
4711
4759
|
/**
|
4712
|
-
* Fired after a general search
|
4760
|
+
* Fired after a general / cross column search
|
4713
4761
|
*/
|
4714
4762
|
"onNanoTblAfterSearch"?: (event: NanoTableCustomEvent<{ term: string }>) => void;
|
4715
4763
|
/**
|
@@ -4749,6 +4797,10 @@ declare namespace LocalJSX {
|
|
4749
4797
|
* To improve performance, data is split into blocks which are shown / hidden and rendered as they become visible. Use this to control the number of hits within a block - A block should fill a scrolling viewport. The less perBlock the better for performance
|
4750
4798
|
*/
|
4751
4799
|
"perBlock"?: number;
|
4800
|
+
/**
|
4801
|
+
* When loading rows asynchronously, this will render this number of placeholder rows
|
4802
|
+
*/
|
4803
|
+
"placeholderSize"?: number;
|
4752
4804
|
/**
|
4753
4805
|
* Used for custom row rendering
|
4754
4806
|
*/
|
@@ -4756,7 +4808,8 @@ declare namespace LocalJSX {
|
|
4756
4808
|
/**
|
4757
4809
|
* The data to place in the table
|
4758
4810
|
*/
|
4759
|
-
"rows"?: TableTypes.NanoTable['rows']
|
4811
|
+
"rows"?: | TableTypes.NanoTable['rows']
|
4812
|
+
| Promise<TableTypes.NanoTable['rows']>;
|
4760
4813
|
/**
|
4761
4814
|
* Term to search for in the data
|
4762
4815
|
*/
|
@@ -4865,6 +4918,7 @@ declare namespace LocalJSX {
|
|
4865
4918
|
"nano-menu-drawer": NanoMenuDrawer;
|
4866
4919
|
"nano-nav-item": NanoNavItem;
|
4867
4920
|
"nano-option": NanoOption;
|
4921
|
+
"nano-progress-bar": NanoProgressBar;
|
4868
4922
|
"nano-range": NanoRange;
|
4869
4923
|
"nano-rating": NanoRating;
|
4870
4924
|
"nano-resize-observe": NanoResizeObserve;
|
@@ -4919,6 +4973,7 @@ declare module "@stencil/core" {
|
|
4919
4973
|
"nano-menu-drawer": LocalJSX.NanoMenuDrawer & JSXBase.HTMLAttributes<HTMLNanoMenuDrawerElement>;
|
4920
4974
|
"nano-nav-item": LocalJSX.NanoNavItem & JSXBase.HTMLAttributes<HTMLNanoNavItemElement>;
|
4921
4975
|
"nano-option": LocalJSX.NanoOption & JSXBase.HTMLAttributes<HTMLNanoOptionElement>;
|
4976
|
+
"nano-progress-bar": LocalJSX.NanoProgressBar & JSXBase.HTMLAttributes<HTMLNanoProgressBarElement>;
|
4922
4977
|
"nano-range": LocalJSX.NanoRange & JSXBase.HTMLAttributes<HTMLNanoRangeElement>;
|
4923
4978
|
"nano-rating": LocalJSX.NanoRating & JSXBase.HTMLAttributes<HTMLNanoRatingElement>;
|
4924
4979
|
"nano-resize-observe": LocalJSX.NanoResizeObserve & JSXBase.HTMLAttributes<HTMLNanoResizeObserveElement>;
|