@nanoporetech-digital/components 3.5.1 → 3.6.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/CHANGELOG.md +20 -0
- package/dist/cjs/{date-utils-c581f187.js → date-utils-42fbcb42.js} +5 -3
- package/dist/cjs/date-utils-42fbcb42.js.map +1 -0
- package/dist/cjs/index-41582c2a.js +2 -6
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/nano-components.cjs.js +1 -1
- package/dist/cjs/nano-datalist_3.cjs.entry.js +10 -5
- package/dist/cjs/nano-datalist_3.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-date-input.cjs.entry.js +1 -1
- package/dist/cjs/nano-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/nano-demo.cjs.entry.js +3 -2
- package/dist/cjs/nano-demo.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-dropdown.cjs.entry.js +5 -2
- package/dist/cjs/nano-dropdown.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-file-upload.cjs.entry.js +4 -0
- package/dist/cjs/nano-file-upload.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-global-nav-user-profile_3.cjs.entry.js +1 -2
- package/dist/cjs/nano-global-nav-user-profile_3.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-icon-button.cjs.entry.js +1 -1
- package/dist/cjs/nano-icon-button.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-icon.cjs.entry.js.map +1 -1
- package/dist/cjs/{nano-tooltip.cjs.entry.js → nano-progress-bar_2.cjs.entry.js} +28 -4
- package/dist/cjs/nano-progress-bar_2.cjs.entry.js.map +1 -0
- package/dist/cjs/nano-resize-observe_2.cjs.entry.js +74 -12
- package/dist/cjs/nano-resize-observe_2.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-sticker.cjs.entry.js +2 -0
- package/dist/cjs/nano-sticker.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-tab-group.cjs.entry.js +1 -1
- package/dist/cjs/nano-tab-group.cjs.entry.js.map +1 -1
- package/dist/cjs/{nano-table-067e0c12.js → nano-table-b031ec24.js} +164 -84
- package/dist/cjs/nano-table-b031ec24.js.map +1 -0
- package/dist/cjs/nano-table.cjs.entry.js +1 -1
- package/dist/cjs/{table.worker-a4d75c46.js → table.worker-dadd1eb0.js} +3 -3
- package/dist/cjs/table.worker-dadd1eb0.js.map +1 -0
- package/dist/{esm/table.worker-e9fb087e.js → cjs/table.worker-e2f9ccfa.js} +1 -1
- package/dist/collection/components/datalist/datalist.js +3 -3
- package/dist/collection/components/datalist/datalist.js.map +1 -1
- package/dist/collection/components/demo/demo.js +3 -2
- package/dist/collection/components/demo/demo.js.map +1 -1
- package/dist/collection/components/dropdown/dropdown.js +5 -2
- package/dist/collection/components/dropdown/dropdown.js.map +1 -1
- package/dist/collection/components/file-upload/file-upload.js +4 -0
- package/dist/collection/components/file-upload/file-upload.js.map +1 -1
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/icon/icon.js.map +1 -1
- package/dist/collection/components/icon-button/icon-button.js +1 -1
- package/dist/collection/components/icon-button/icon-button.js.map +1 -1
- package/dist/collection/components/menu/menu.js +8 -3
- package/dist/collection/components/menu/menu.js.map +1 -1
- package/dist/collection/components/nav-item/nav-item.js +1 -2
- package/dist/collection/components/nav-item/nav-item.js.map +1 -1
- package/dist/collection/components/resize-observe/resize-observe.js +118 -14
- package/dist/collection/components/resize-observe/resize-observe.js.map +1 -1
- package/dist/collection/components/sticker/sticker.js +2 -0
- package/dist/collection/components/sticker/sticker.js.map +1 -1
- package/dist/collection/components/table/table-interface.js.map +1 -1
- package/dist/collection/components/table/table.cell.js +10 -5
- package/dist/collection/components/table/table.cell.js.map +1 -1
- package/dist/collection/components/table/table.css +9 -23
- package/dist/collection/components/table/table.js +227 -88
- package/dist/collection/components/table/table.js.map +1 -1
- package/dist/collection/components/table/table.row.js +19 -12
- package/dist/collection/components/table/table.row.js.map +1 -1
- package/dist/collection/components/table/table.store.js +1 -1
- package/dist/collection/components/table/table.store.js.map +1 -1
- package/dist/collection/components/table/table.utils.js +4 -4
- package/dist/collection/components/table/table.utils.js.map +1 -1
- package/dist/collection/components/table/table.worker.js +8 -0
- package/dist/collection/components/table/table.worker.js.map +1 -1
- package/dist/collection/components/tabs/tab-group.js +1 -1
- package/dist/collection/components/tabs/tab-group.js.map +1 -1
- package/dist/collection/components/tooltip/tooltip.js +25 -3
- package/dist/collection/components/tooltip/tooltip.js.map +1 -1
- package/dist/collection/utils/date-utils.js +4 -2
- package/dist/collection/utils/date-utils.js.map +1 -1
- package/dist/collection/utils/testing/index.js +15 -8
- package/dist/collection/utils/testing/index.js.map +1 -1
- package/dist/components/datalist.js +3 -3
- package/dist/components/datalist.js.map +1 -1
- package/dist/components/date-picker.js +4 -2
- package/dist/components/date-picker.js.map +1 -1
- package/dist/components/dropdown.js +5 -2
- package/dist/components/dropdown.js.map +1 -1
- package/dist/components/icon-button.js +1 -1
- package/dist/components/icon-button.js.map +1 -1
- package/dist/components/icon.js.map +1 -1
- package/dist/components/menu.js +8 -3
- package/dist/components/menu.js.map +1 -1
- package/dist/components/nano-demo.js +21 -14
- package/dist/components/nano-demo.js.map +1 -1
- package/dist/components/nano-file-upload.js +4 -0
- package/dist/components/nano-file-upload.js.map +1 -1
- package/dist/components/nano-tab-group.js +1 -1
- package/dist/components/nano-tab-group.js.map +1 -1
- package/dist/components/nav-item.js +1 -2
- package/dist/components/nav-item.js.map +1 -1
- package/dist/components/resize-observe.js +80 -14
- package/dist/components/resize-observe.js.map +1 -1
- package/dist/components/sticker.js +2 -0
- package/dist/components/sticker.js.map +1 -1
- package/dist/components/table.js +187 -98
- package/dist/components/table.js.map +1 -1
- package/dist/components/table.worker.js +1 -1
- package/dist/components/tooltip.js +6 -3
- package/dist/components/tooltip.js.map +1 -1
- package/dist/custom-elements/index.js +277 -116
- package/dist/custom-elements/index.js.map +1 -1
- package/dist/esm/{date-utils-bb82b123.js → date-utils-6b7a6e1f.js} +5 -3
- package/dist/esm/date-utils-6b7a6e1f.js.map +1 -0
- package/dist/esm/index-3c280603.js +2 -6
- package/dist/esm/loader.js +1 -1
- package/dist/esm/nano-components.js +1 -1
- package/dist/esm/nano-datalist_3.entry.js +10 -5
- package/dist/esm/nano-datalist_3.entry.js.map +1 -1
- package/dist/esm/nano-date-input.entry.js +1 -1
- package/dist/esm/nano-date-picker.entry.js +1 -1
- package/dist/esm/nano-demo.entry.js +3 -2
- package/dist/esm/nano-demo.entry.js.map +1 -1
- package/dist/esm/nano-dropdown.entry.js +5 -2
- package/dist/esm/nano-dropdown.entry.js.map +1 -1
- package/dist/esm/nano-file-upload.entry.js +4 -0
- package/dist/esm/nano-file-upload.entry.js.map +1 -1
- package/dist/esm/nano-global-nav-user-profile_3.entry.js +1 -2
- package/dist/esm/nano-global-nav-user-profile_3.entry.js.map +1 -1
- package/dist/esm/nano-icon-button.entry.js +1 -1
- package/dist/esm/nano-icon-button.entry.js.map +1 -1
- package/dist/esm/nano-icon.entry.js.map +1 -1
- package/dist/esm/{nano-tooltip.entry.js → nano-progress-bar_2.entry.js} +29 -6
- package/dist/esm/nano-progress-bar_2.entry.js.map +1 -0
- package/dist/esm/nano-resize-observe_2.entry.js +74 -12
- package/dist/esm/nano-resize-observe_2.entry.js.map +1 -1
- package/dist/esm/nano-sticker.entry.js +2 -0
- package/dist/esm/nano-sticker.entry.js.map +1 -1
- package/dist/esm/nano-tab-group.entry.js +1 -1
- package/dist/esm/nano-tab-group.entry.js.map +1 -1
- package/dist/esm/{nano-table-95921f46.js → nano-table-74d627a5.js} +164 -84
- package/dist/esm/nano-table-74d627a5.js.map +1 -0
- package/dist/esm/nano-table.entry.js +1 -1
- package/dist/esm/{table.worker-769f1441.js → table.worker-2908df63.js} +3 -3
- package/dist/esm/table.worker-2908df63.js.map +1 -0
- package/dist/{nano-components/p-e9fb087e.js → esm/table.worker-e2f9ccfa.js} +1 -1
- 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-135fed16.entry.js +5 -0
- package/dist/nano-components/p-135fed16.entry.js.map +1 -0
- package/dist/nano-components/{p-2cb4615b.entry.js → p-2a97ef51.entry.js} +2 -2
- package/dist/nano-components/{p-2cb4615b.entry.js.map → p-2a97ef51.entry.js.map} +0 -0
- package/dist/nano-components/{p-751927d1.entry.js → p-3f25fc76.entry.js} +2 -2
- package/dist/nano-components/p-3f25fc76.entry.js.map +1 -0
- package/dist/nano-components/p-5d149792.entry.js +5 -0
- package/dist/nano-components/p-5d149792.entry.js.map +1 -0
- package/dist/nano-components/p-69e5a37d.entry.js.map +1 -1
- package/dist/nano-components/p-6ad194e4.entry.js +5 -0
- package/dist/nano-components/p-6ad194e4.entry.js.map +1 -0
- package/dist/nano-components/{p-46b348b7.entry.js → p-6cb77d5c.entry.js} +2 -2
- package/dist/nano-components/{p-46b348b7.entry.js.map → p-6cb77d5c.entry.js.map} +0 -0
- package/dist/nano-components/{p-85cfb0af.entry.js → p-9a4297e1.entry.js} +2 -2
- package/dist/nano-components/p-9a4297e1.entry.js.map +1 -0
- package/dist/nano-components/{p-d1c8eca4.entry.js → p-b55ffa92.entry.js} +2 -2
- package/dist/nano-components/p-b55ffa92.entry.js.map +1 -0
- package/dist/nano-components/p-cc5e7acb.entry.js +5 -0
- package/dist/nano-components/p-cc5e7acb.entry.js.map +1 -0
- package/dist/nano-components/p-cecb9af1.js +5 -0
- package/dist/nano-components/p-cecb9af1.js.map +1 -0
- package/dist/nano-components/{p-601e18d5.entry.js → p-d5303933.entry.js} +2 -2
- package/dist/nano-components/p-d5303933.entry.js.map +1 -0
- package/dist/nano-components/{p-4f0e14b5.entry.js → p-d565991d.entry.js} +2 -2
- package/dist/nano-components/p-d565991d.entry.js.map +1 -0
- package/dist/nano-components/p-d7ed2d6e.js +5 -0
- package/dist/nano-components/p-d7ed2d6e.js.map +1 -0
- package/dist/nano-components/p-d81d40d9.js +5 -0
- package/dist/nano-components/{p-26905bca.js.map → p-d81d40d9.js.map} +0 -0
- package/dist/nano-components/{p-244223f0.entry.js → p-dc50b93c.entry.js} +2 -2
- package/dist/nano-components/p-dc50b93c.entry.js.map +1 -0
- package/dist/{cjs/table.worker-e9fb087e.js → nano-components/p-e2f9ccfa.js} +1 -1
- package/dist/nano-components/{p-fb12a45d.entry.js → p-f5ee07b3.entry.js} +2 -2
- package/dist/nano-components/{p-fb12a45d.entry.js.map → p-f5ee07b3.entry.js.map} +0 -0
- package/dist/types/components/icon/icon.d.ts +1 -1
- package/dist/types/components/menu/menu.d.ts +1 -0
- package/dist/types/components/resize-observe/resize-observe.d.ts +20 -1
- package/dist/types/components/table/table-interface.d.ts +35 -24
- package/dist/types/components/table/table.cell.d.ts +1 -1
- package/dist/types/components/table/table.d.ts +48 -15
- package/dist/types/components/table/table.row.d.ts +1 -1
- package/dist/types/components/table/table.store.d.ts +1 -1
- package/dist/types/components/table/table.utils.d.ts +1 -1
- package/dist/types/components/table/table.worker.d.ts +3 -3
- package/dist/types/components/tooltip/tooltip.d.ts +5 -0
- package/dist/types/components.d.ts +59 -14
- package/dist/types/utils/date-utils.d.ts +1 -1
- package/docs-json.json +179 -31
- package/docs-vscode.json +26 -3
- package/package.json +2 -2
- package/dist/cjs/date-utils-c581f187.js.map +0 -1
- package/dist/cjs/nano-progress-bar.cjs.entry.js +0 -33
- package/dist/cjs/nano-progress-bar.cjs.entry.js.map +0 -1
- package/dist/cjs/nano-table-067e0c12.js.map +0 -1
- package/dist/cjs/nano-tooltip.cjs.entry.js.map +0 -1
- package/dist/cjs/table.worker-a4d75c46.js.map +0 -1
- package/dist/esm/date-utils-bb82b123.js.map +0 -1
- package/dist/esm/nano-progress-bar.entry.js +0 -29
- package/dist/esm/nano-progress-bar.entry.js.map +0 -1
- package/dist/esm/nano-table-95921f46.js.map +0 -1
- package/dist/esm/nano-tooltip.entry.js.map +0 -1
- package/dist/esm/table.worker-769f1441.js.map +0 -1
- package/dist/nano-components/p-15a60f7e.js +0 -5
- package/dist/nano-components/p-15a60f7e.js.map +0 -1
- package/dist/nano-components/p-244223f0.entry.js.map +0 -1
- package/dist/nano-components/p-26905bca.js +0 -5
- package/dist/nano-components/p-4f0e14b5.entry.js.map +0 -1
- package/dist/nano-components/p-601e18d5.entry.js.map +0 -1
- package/dist/nano-components/p-751927d1.entry.js.map +0 -1
- package/dist/nano-components/p-85cfb0af.entry.js.map +0 -1
- package/dist/nano-components/p-8fc2a38d.js +0 -5
- package/dist/nano-components/p-8fc2a38d.js.map +0 -1
- package/dist/nano-components/p-9e8c9bac.entry.js +0 -5
- package/dist/nano-components/p-9e8c9bac.entry.js.map +0 -1
- package/dist/nano-components/p-a2e38472.entry.js +0 -5
- package/dist/nano-components/p-a2e38472.entry.js.map +0 -1
- package/dist/nano-components/p-b9c8b99f.entry.js +0 -5
- package/dist/nano-components/p-b9c8b99f.entry.js.map +0 -1
- package/dist/nano-components/p-d1c8eca4.entry.js.map +0 -1
- package/dist/nano-components/p-f43d1d8e.entry.js +0 -5
- package/dist/nano-components/p-f43d1d8e.entry.js.map +0 -1
- package/dist/nano-components/p-feb9f164.entry.js +0 -5
- package/dist/nano-components/p-feb9f164.entry.js.map +0 -1
@@ -1099,7 +1099,7 @@ export namespace Components {
|
|
1099
1099
|
*/
|
1100
1100
|
"icon"?: any;
|
1101
1101
|
/**
|
1102
|
-
* If enabled, nano-icon will be loaded lazily when it's visible in the viewport. Default, `
|
1102
|
+
* If enabled, nano-icon will be loaded lazily when it's visible in the viewport. Default, `true`.
|
1103
1103
|
*/
|
1104
1104
|
"lazy": boolean;
|
1105
1105
|
/**
|
@@ -1583,6 +1583,10 @@ export namespace Components {
|
|
1583
1583
|
"value": number;
|
1584
1584
|
}
|
1585
1585
|
interface NanoResizeObserve {
|
1586
|
+
/**
|
1587
|
+
* Fire `nanoResizeContentFitChange` events notifying whether content currently fits or does not on the x, y or both axis'. Also makes the `content-fit-...` slots available
|
1588
|
+
*/
|
1589
|
+
"notifyContentFit": 'x' | 'y' | 'xy';
|
1586
1590
|
/**
|
1587
1591
|
* string list of sizes and optional class-names. Adds class-names and fires nanoResizeStateChange events. Upon hitting breakpoints. Format: `states="800w, 300h class1 class2"`
|
1588
1592
|
*/
|
@@ -2019,20 +2023,22 @@ export namespace Components {
|
|
2019
2023
|
*/
|
2020
2024
|
"caption": string;
|
2021
2025
|
/**
|
2022
|
-
* The column config used to
|
2026
|
+
* The column config used to present the rows of data
|
2023
2027
|
*/
|
2024
2028
|
"columns": TableTypes.NanoTable['columns'];
|
2025
2029
|
/**
|
2026
|
-
* A custom filtering function. Should return a promise.
|
2030
|
+
* A custom filtering function. Should return a promise. If the promise resolves as `true` the column UI will be updated. If the promise resolves as falsey, the sort will be performed by the component. A good use-case would be performing the filter on a server / via fetch. Then on success, updating the table's data via the `rows` property
|
2027
2031
|
*/
|
2028
|
-
"customFilterFn"?: (
|
2032
|
+
"customFilterFn"?: (
|
2033
|
+
filters: TableTypes.Filter[]
|
2034
|
+
) => Promise<true | TableTypes.Falsy>;
|
2029
2035
|
/**
|
2030
|
-
* A custom sorting function. Should return a promise.
|
2036
|
+
* A custom sorting function. Should return a promise. If the promise resolves as `true` the column UI will be updated. If the promise resolves as falsey, the sort will be performed by the component. A good use-case would be performing the sort on a server / via fetch. Then on success, updating the table's data via the `rows` property
|
2031
2037
|
*/
|
2032
2038
|
"customSortFn"?: (
|
2033
2039
|
property: TableTypes.Prop,
|
2034
2040
|
order: TableTypes.Order
|
2035
|
-
) => Promise<
|
2041
|
+
) => Promise<true | TableTypes.Falsy>;
|
2036
2042
|
/**
|
2037
2043
|
* The default draggable option for all columns. `true` will enable column drag-to-reorder unless you set `draggable: false` on a column `false` will disable column drag-to-reorder unless you set `draggable: true` on a column
|
2038
2044
|
*/
|
@@ -2050,7 +2056,7 @@ export namespace Components {
|
|
2050
2056
|
*/
|
2051
2057
|
"headRender": TableTypes.HeadFootRenderer;
|
2052
2058
|
/**
|
2053
|
-
* Will show a loading state when true.
|
2059
|
+
* Will show a loading state when set to true. By default, will be shown automatically if `rows` is a promise waiting to resolve or when performing custom filtering or sorting. *Note* when set manually, will overwrite any internal loading state. Set to 'undefined' to revert to default behaviour.
|
2054
2060
|
*/
|
2055
2061
|
"loading": boolean;
|
2056
2062
|
/**
|
@@ -2102,6 +2108,16 @@ export namespace Components {
|
|
2102
2108
|
* The type of table. Grid type will make cells navigable by keyboard
|
2103
2109
|
*/
|
2104
2110
|
"type": 'grid' | 'table';
|
2111
|
+
/**
|
2112
|
+
* Updates a row model at a given index
|
2113
|
+
* @param row - the row to update. *Note* - this should come from the `col.cellTemplate` or `row.rowRender.template` `rowModel` property - rows are augmented with certain properties to aid with efficient rendering
|
2114
|
+
* @param rowIndex - the row index to insert this row
|
2115
|
+
*/
|
2116
|
+
"updateRow": (row: TableTypes.RowData, rowIndex: number) => Promise<void>;
|
2117
|
+
/**
|
2118
|
+
* Use this to render the table with roughly the correct dimensions. a use-case might be; fetch a small initial dataset to minimise load-time, render the table with the correct dimensions, the table becomes interactive, load the rest of the data
|
2119
|
+
*/
|
2120
|
+
"virtualTotalItems": number;
|
2105
2121
|
}
|
2106
2122
|
interface NanoTooltip {
|
2107
2123
|
/**
|
@@ -2120,6 +2136,10 @@ export namespace Components {
|
|
2120
2136
|
* Hides the tooltip.
|
2121
2137
|
*/
|
2122
2138
|
"hide": () => Promise<void>;
|
2139
|
+
/**
|
2140
|
+
* Enable this option to prevent the panel from being clipped when the component is placed inside a container with `overflow: auto|scroll`.
|
2141
|
+
*/
|
2142
|
+
"hoist": boolean;
|
2123
2143
|
/**
|
2124
2144
|
* Indicates whether or not the tooltip is open. You can use this in lieu of the show/hide methods.
|
2125
2145
|
*/
|
@@ -3808,7 +3828,7 @@ declare namespace LocalJSX {
|
|
3808
3828
|
*/
|
3809
3829
|
"icon"?: any;
|
3810
3830
|
/**
|
3811
|
-
* If enabled, nano-icon will be loaded lazily when it's visible in the viewport. Default, `
|
3831
|
+
* If enabled, nano-icon will be loaded lazily when it's visible in the viewport. Default, `true`.
|
3812
3832
|
*/
|
3813
3833
|
"lazy"?: boolean;
|
3814
3834
|
/**
|
@@ -4335,6 +4355,17 @@ declare namespace LocalJSX {
|
|
4335
4355
|
"value"?: number;
|
4336
4356
|
}
|
4337
4357
|
interface NanoResizeObserve {
|
4358
|
+
/**
|
4359
|
+
* Fire `nanoResizeContentFitChange` events notifying whether content currently fits or does not on the x, y or both axis'. Also makes the `content-fit-...` slots available
|
4360
|
+
*/
|
4361
|
+
"notifyContentFit"?: 'x' | 'y' | 'xy';
|
4362
|
+
/**
|
4363
|
+
* Fires when the content either begins or stops to fit. Will only work when `notifyContentFit` is set.
|
4364
|
+
*/
|
4365
|
+
"onNanoResizeContentFitChange"?: (event: NanoResizeObserveCustomEvent<{
|
4366
|
+
x: boolean;
|
4367
|
+
y: boolean;
|
4368
|
+
}>) => void;
|
4338
4369
|
/**
|
4339
4370
|
* Fires after the initial loading and assessment
|
4340
4371
|
*/
|
@@ -4763,20 +4794,22 @@ declare namespace LocalJSX {
|
|
4763
4794
|
*/
|
4764
4795
|
"caption"?: string;
|
4765
4796
|
/**
|
4766
|
-
* The column config used to
|
4797
|
+
* The column config used to present the rows of data
|
4767
4798
|
*/
|
4768
4799
|
"columns"?: TableTypes.NanoTable['columns'];
|
4769
4800
|
/**
|
4770
|
-
* A custom filtering function. Should return a promise.
|
4801
|
+
* A custom filtering function. Should return a promise. If the promise resolves as `true` the column UI will be updated. If the promise resolves as falsey, the sort will be performed by the component. A good use-case would be performing the filter on a server / via fetch. Then on success, updating the table's data via the `rows` property
|
4771
4802
|
*/
|
4772
|
-
"customFilterFn"?: (
|
4803
|
+
"customFilterFn"?: (
|
4804
|
+
filters: TableTypes.Filter[]
|
4805
|
+
) => Promise<true | TableTypes.Falsy>;
|
4773
4806
|
/**
|
4774
|
-
* A custom sorting function. Should return a promise.
|
4807
|
+
* A custom sorting function. Should return a promise. If the promise resolves as `true` the column UI will be updated. If the promise resolves as falsey, the sort will be performed by the component. A good use-case would be performing the sort on a server / via fetch. Then on success, updating the table's data via the `rows` property
|
4775
4808
|
*/
|
4776
4809
|
"customSortFn"?: (
|
4777
4810
|
property: TableTypes.Prop,
|
4778
4811
|
order: TableTypes.Order
|
4779
|
-
) => Promise<
|
4812
|
+
) => Promise<true | TableTypes.Falsy>;
|
4780
4813
|
/**
|
4781
4814
|
* The default draggable option for all columns. `true` will enable column drag-to-reorder unless you set `draggable: false` on a column `false` will disable column drag-to-reorder unless you set `draggable: true` on a column
|
4782
4815
|
*/
|
@@ -4794,7 +4827,7 @@ declare namespace LocalJSX {
|
|
4794
4827
|
*/
|
4795
4828
|
"headRender"?: TableTypes.HeadFootRenderer;
|
4796
4829
|
/**
|
4797
|
-
* Will show a loading state when true.
|
4830
|
+
* Will show a loading state when set to true. By default, will be shown automatically if `rows` is a promise waiting to resolve or when performing custom filtering or sorting. *Note* when set manually, will overwrite any internal loading state. Set to 'undefined' to revert to default behaviour.
|
4798
4831
|
*/
|
4799
4832
|
"loading"?: boolean;
|
4800
4833
|
/**
|
@@ -4812,6 +4845,10 @@ declare namespace LocalJSX {
|
|
4812
4845
|
column: TableTypes.Prop;
|
4813
4846
|
order: TableTypes.Order;
|
4814
4847
|
}>) => void;
|
4848
|
+
/**
|
4849
|
+
* Fired before a general search. `event.preventDefault()` to stop searching.
|
4850
|
+
*/
|
4851
|
+
"onNanoTblBeforeEdit"?: (event: NanoTableCustomEvent<{ term: string }>) => void;
|
4815
4852
|
/**
|
4816
4853
|
* Fired before a column is filtered. `event.preventDefault()` to stop filtering.
|
4817
4854
|
*/
|
@@ -4886,6 +4923,10 @@ declare namespace LocalJSX {
|
|
4886
4923
|
* The type of table. Grid type will make cells navigable by keyboard
|
4887
4924
|
*/
|
4888
4925
|
"type"?: 'grid' | 'table';
|
4926
|
+
/**
|
4927
|
+
* Use this to render the table with roughly the correct dimensions. a use-case might be; fetch a small initial dataset to minimise load-time, render the table with the correct dimensions, the table becomes interactive, load the rest of the data
|
4928
|
+
*/
|
4929
|
+
"virtualTotalItems"?: number;
|
4889
4930
|
}
|
4890
4931
|
interface NanoTooltip {
|
4891
4932
|
/**
|
@@ -4900,6 +4941,10 @@ declare namespace LocalJSX {
|
|
4900
4941
|
* The distance in pixels from which to offset the tooltip away from its target.
|
4901
4942
|
*/
|
4902
4943
|
"distance"?: number;
|
4944
|
+
/**
|
4945
|
+
* Enable this option to prevent the panel from being clipped when the component is placed inside a container with `overflow: auto|scroll`.
|
4946
|
+
*/
|
4947
|
+
"hoist"?: boolean;
|
4903
4948
|
/**
|
4904
4949
|
* Emitted after the tooltip has hidden and all transitions are complete.
|
4905
4950
|
*/
|
package/docs-json.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
{
|
2
|
-
"timestamp": "2022-12-
|
2
|
+
"timestamp": "2022-12-23T16:36:52",
|
3
3
|
"compiler": {
|
4
4
|
"name": "@stencil/core",
|
5
5
|
"version": "2.19.4",
|
@@ -3941,7 +3941,8 @@
|
|
3941
3941
|
"nano-progress-bar",
|
3942
3942
|
"nano-skeleton",
|
3943
3943
|
"nano-spinner",
|
3944
|
-
"nano-icon"
|
3944
|
+
"nano-icon",
|
3945
|
+
"nano-tooltip"
|
3945
3946
|
]
|
3946
3947
|
}
|
3947
3948
|
},
|
@@ -7839,7 +7840,7 @@
|
|
7839
7840
|
"mutable": false,
|
7840
7841
|
"attr": "lazy",
|
7841
7842
|
"reflectToAttr": false,
|
7842
|
-
"docs": "If enabled, nano-icon will be loaded lazily when it's visible in the viewport.\nDefault, `
|
7843
|
+
"docs": "If enabled, nano-icon will be loaded lazily when it's visible in the viewport.\nDefault, `true`.",
|
7843
7844
|
"docsTags": [],
|
7844
7845
|
"default": "true",
|
7845
7846
|
"values": [
|
@@ -11542,18 +11543,61 @@
|
|
11542
11543
|
},
|
11543
11544
|
{
|
11544
11545
|
"filePath": "./src/components/resize-observe/resize-observe.tsx",
|
11545
|
-
"encapsulation": "
|
11546
|
+
"encapsulation": "shadow",
|
11546
11547
|
"tag": "nano-resize-observe",
|
11547
11548
|
"readme": "# nano-resize-observe\n\n\n",
|
11548
|
-
"docs": "A Resize-Observer utility component.\nTakes a string list of sizes and optional class-names
|
11549
|
+
"docs": "A Resize-Observer utility component.\nTakes a string list of sizes and optional class-names.\nAdds class-names and fires `nanoResizeStateChange` events when the component reaches those sizes.\nAdditionally, can fire events when content no-longer fits within the element.",
|
11549
11550
|
"docsTags": [
|
11550
11551
|
{
|
11551
11552
|
"name": "slot",
|
11552
11553
|
"text": "- Main slot for any content."
|
11554
|
+
},
|
11555
|
+
{
|
11556
|
+
"name": "slot",
|
11557
|
+
"text": "content-fit-x - optional slot (when `notifyContentFit` is set). Shows when content fits / doesn't get cut off"
|
11558
|
+
},
|
11559
|
+
{
|
11560
|
+
"name": "slot",
|
11561
|
+
"text": "content-nofit-x - optional slot (when `notifyContentFit` is set). Shows when content doesn't get cut off"
|
11562
|
+
},
|
11563
|
+
{
|
11564
|
+
"name": "slot",
|
11565
|
+
"text": "content-fit-y - optional slot (when `notifyContentFit` is set). Shows when content fits / doesn't get cut off"
|
11566
|
+
},
|
11567
|
+
{
|
11568
|
+
"name": "slot",
|
11569
|
+
"text": "content-nofit-y - optional slot (when `notifyContentFit` is set). Shows when content doesn't get cut off"
|
11553
11570
|
}
|
11554
11571
|
],
|
11555
11572
|
"usage": {},
|
11556
11573
|
"props": [
|
11574
|
+
{
|
11575
|
+
"name": "notifyContentFit",
|
11576
|
+
"type": "\"x\" | \"xy\" | \"y\"",
|
11577
|
+
"mutable": false,
|
11578
|
+
"attr": "notify-content-fit",
|
11579
|
+
"reflectToAttr": false,
|
11580
|
+
"docs": "Fire `nanoResizeContentFitChange` events notifying\nwhether content currently fits or does not on the x, y or both axis'.\nAlso makes the `content-fit-...` slots available",
|
11581
|
+
"docsTags": [],
|
11582
|
+
"values": [
|
11583
|
+
{
|
11584
|
+
"value": "x",
|
11585
|
+
"type": "string"
|
11586
|
+
},
|
11587
|
+
{
|
11588
|
+
"value": "xy",
|
11589
|
+
"type": "string"
|
11590
|
+
},
|
11591
|
+
{
|
11592
|
+
"value": "y",
|
11593
|
+
"type": "string"
|
11594
|
+
}
|
11595
|
+
],
|
11596
|
+
"optional": false,
|
11597
|
+
"required": false,
|
11598
|
+
"getter": false,
|
11599
|
+
"setter": false
|
11600
|
+
},
|
11557
11601
|
{
|
11558
11602
|
"name": "states",
|
11559
11603
|
"type": "string",
|
@@ -11575,6 +11619,15 @@
|
|
11575
11619
|
],
|
11576
11620
|
"methods": [],
|
11577
11621
|
"events": [
|
11622
|
+
{
|
11623
|
+
"event": "nanoResizeContentFitChange",
|
11624
|
+
"detail": "{ x: boolean; y: boolean; }",
|
11625
|
+
"bubbles": true,
|
11626
|
+
"cancelable": true,
|
11627
|
+
"composed": true,
|
11628
|
+
"docs": "Fires when the content either begins or stops to fit. Will only work when `notifyContentFit` is set.",
|
11629
|
+
"docsTags": []
|
11630
|
+
},
|
11578
11631
|
{
|
11579
11632
|
"event": "nanoResizeObserverReady",
|
11580
11633
|
"detail": "void",
|
@@ -11600,6 +11653,22 @@
|
|
11600
11653
|
{
|
11601
11654
|
"name": "",
|
11602
11655
|
"docs": "Main slot for any content."
|
11656
|
+
},
|
11657
|
+
{
|
11658
|
+
"name": "content-fit-x",
|
11659
|
+
"docs": "optional slot (when `notifyContentFit` is set). Shows when content fits / doesn't get cut off"
|
11660
|
+
},
|
11661
|
+
{
|
11662
|
+
"name": "content-fit-y",
|
11663
|
+
"docs": "optional slot (when `notifyContentFit` is set). Shows when content fits / doesn't get cut off"
|
11664
|
+
},
|
11665
|
+
{
|
11666
|
+
"name": "content-nofit-x",
|
11667
|
+
"docs": "optional slot (when `notifyContentFit` is set). Shows when content doesn't get cut off"
|
11668
|
+
},
|
11669
|
+
{
|
11670
|
+
"name": "content-nofit-y",
|
11671
|
+
"docs": "optional slot (when `notifyContentFit` is set). Shows when content doesn't get cut off"
|
11603
11672
|
}
|
11604
11673
|
],
|
11605
11674
|
"parts": [],
|
@@ -14734,15 +14803,15 @@
|
|
14734
14803
|
},
|
14735
14804
|
{
|
14736
14805
|
"name": "columns",
|
14737
|
-
"type": "ColumnConfig<
|
14806
|
+
"type": "ColumnConfig<RowGeneric>[]",
|
14738
14807
|
"mutable": true,
|
14739
14808
|
"reflectToAttr": false,
|
14740
|
-
"docs": "The column config used to
|
14809
|
+
"docs": "The column config used to present the rows of data",
|
14741
14810
|
"docsTags": [],
|
14742
14811
|
"default": "[]",
|
14743
14812
|
"values": [
|
14744
14813
|
{
|
14745
|
-
"type": "ColumnConfig<
|
14814
|
+
"type": "ColumnConfig<RowGeneric>[]"
|
14746
14815
|
}
|
14747
14816
|
],
|
14748
14817
|
"optional": false,
|
@@ -14752,14 +14821,17 @@
|
|
14752
14821
|
},
|
14753
14822
|
{
|
14754
14823
|
"name": "customFilterFn",
|
14755
|
-
"type": "(filters: Filter[]) => Promise<
|
14824
|
+
"type": "(filters: Filter[]) => Promise<true | Falsy>",
|
14756
14825
|
"mutable": false,
|
14757
14826
|
"reflectToAttr": false,
|
14758
|
-
"docs": "A custom filtering function. Should return a promise.\
|
14827
|
+
"docs": "A custom filtering function. Should return a promise.\nIf the promise resolves as `true` the column UI will be updated.\nIf the promise resolves as falsey, the sort will be performed by the component.\nA good use-case would be performing the filter on a server / via fetch.\nThen on success, updating the table's data via the `rows` property",
|
14759
14828
|
"docsTags": [],
|
14760
14829
|
"values": [
|
14761
14830
|
{
|
14762
|
-
"type": "(filters: Filter[]) => Promise<
|
14831
|
+
"type": "(filters: Filter[]) => Promise<true"
|
14832
|
+
},
|
14833
|
+
{
|
14834
|
+
"type": "Falsy>"
|
14763
14835
|
}
|
14764
14836
|
],
|
14765
14837
|
"optional": true,
|
@@ -14769,14 +14841,17 @@
|
|
14769
14841
|
},
|
14770
14842
|
{
|
14771
14843
|
"name": "customSortFn",
|
14772
|
-
"type": "(property: keyof
|
14844
|
+
"type": "(property: keyof RowGeneric, order: Order) => Promise<true | Falsy>",
|
14773
14845
|
"mutable": false,
|
14774
14846
|
"reflectToAttr": false,
|
14775
|
-
"docs": "A custom sorting function. Should return a promise.\
|
14847
|
+
"docs": "A custom sorting function. Should return a promise.\nIf the promise resolves as `true` the column UI will be updated.\nIf the promise resolves as falsey, the sort will be performed by the component.\nA good use-case would be performing the sort on a server / via fetch.\nThen on success, updating the table's data via the `rows` property",
|
14776
14848
|
"docsTags": [],
|
14777
14849
|
"values": [
|
14778
14850
|
{
|
14779
|
-
"type": "(property: keyof
|
14851
|
+
"type": "(property: keyof RowGeneric, order: Order) => Promise<true"
|
14852
|
+
},
|
14853
|
+
{
|
14854
|
+
"type": "Falsy>"
|
14780
14855
|
}
|
14781
14856
|
],
|
14782
14857
|
"optional": true,
|
@@ -14864,9 +14939,9 @@
|
|
14864
14939
|
"mutable": false,
|
14865
14940
|
"attr": "loading",
|
14866
14941
|
"reflectToAttr": false,
|
14867
|
-
"docs": "Will show a loading state when true.\
|
14942
|
+
"docs": "Will show a loading state when set to true.\nBy default, will be shown automatically if `rows` is a promise waiting to resolve\nor when performing custom filtering or sorting.\n*Note* when set manually, will overwrite any internal loading state.\nSet to 'undefined' to revert to default behaviour.",
|
14868
14943
|
"docsTags": [],
|
14869
|
-
"default": "
|
14944
|
+
"default": "undefined",
|
14870
14945
|
"values": [
|
14871
14946
|
{
|
14872
14947
|
"type": "boolean"
|
@@ -14874,8 +14949,8 @@
|
|
14874
14949
|
],
|
14875
14950
|
"optional": false,
|
14876
14951
|
"required": false,
|
14877
|
-
"getter":
|
14878
|
-
"setter":
|
14952
|
+
"getter": false,
|
14953
|
+
"setter": false
|
14879
14954
|
},
|
14880
14955
|
{
|
14881
14956
|
"name": "perBlock",
|
@@ -14917,14 +14992,14 @@
|
|
14917
14992
|
},
|
14918
14993
|
{
|
14919
14994
|
"name": "rowRender",
|
14920
|
-
"type": "RowRenderer",
|
14995
|
+
"type": "RowRenderer<RowData<RowGeneric>>",
|
14921
14996
|
"mutable": false,
|
14922
14997
|
"reflectToAttr": false,
|
14923
14998
|
"docs": "Used for custom row rendering",
|
14924
14999
|
"docsTags": [],
|
14925
15000
|
"values": [
|
14926
15001
|
{
|
14927
|
-
"type": "RowRenderer"
|
15002
|
+
"type": "RowRenderer<RowData<RowGeneric>>"
|
14928
15003
|
}
|
14929
15004
|
],
|
14930
15005
|
"optional": false,
|
@@ -14934,17 +15009,17 @@
|
|
14934
15009
|
},
|
14935
15010
|
{
|
14936
15011
|
"name": "rows",
|
14937
|
-
"type": "Promise<
|
14938
|
-
"mutable":
|
15012
|
+
"type": "Promise<RowGeneric[]> | RowGeneric[]",
|
15013
|
+
"mutable": true,
|
14939
15014
|
"reflectToAttr": false,
|
14940
15015
|
"docs": "The data to place in the table",
|
14941
15016
|
"docsTags": [],
|
14942
15017
|
"values": [
|
14943
15018
|
{
|
14944
|
-
"type": "Promise<
|
15019
|
+
"type": "Promise<RowGeneric[]>"
|
14945
15020
|
},
|
14946
15021
|
{
|
14947
|
-
"type": "
|
15022
|
+
"type": "RowGeneric[]"
|
14948
15023
|
}
|
14949
15024
|
],
|
14950
15025
|
"optional": false,
|
@@ -15031,6 +15106,25 @@
|
|
15031
15106
|
"required": false,
|
15032
15107
|
"getter": false,
|
15033
15108
|
"setter": false
|
15109
|
+
},
|
15110
|
+
{
|
15111
|
+
"name": "virtualTotalItems",
|
15112
|
+
"type": "number",
|
15113
|
+
"mutable": false,
|
15114
|
+
"attr": "virtual-total-items",
|
15115
|
+
"reflectToAttr": false,
|
15116
|
+
"docs": "Use this to render the table with roughly the correct dimensions.\na use-case might be; fetch a small initial dataset to minimise load-time,\nrender the table with the correct dimensions, the table becomes interactive,\nload the rest of the data",
|
15117
|
+
"docsTags": [],
|
15118
|
+
"default": "0",
|
15119
|
+
"values": [
|
15120
|
+
{
|
15121
|
+
"type": "number"
|
15122
|
+
}
|
15123
|
+
],
|
15124
|
+
"optional": false,
|
15125
|
+
"required": false,
|
15126
|
+
"getter": false,
|
15127
|
+
"setter": false
|
15034
15128
|
}
|
15035
15129
|
],
|
15036
15130
|
"methods": [
|
@@ -15125,6 +15219,26 @@
|
|
15125
15219
|
"text": "a promise which resolves when complete"
|
15126
15220
|
}
|
15127
15221
|
]
|
15222
|
+
},
|
15223
|
+
{
|
15224
|
+
"name": "updateRow",
|
15225
|
+
"returns": {
|
15226
|
+
"type": "Promise<void>",
|
15227
|
+
"docs": ""
|
15228
|
+
},
|
15229
|
+
"signature": "updateRow(row: TableTypes.RowData, rowIndex: number) => Promise<void>",
|
15230
|
+
"parameters": [],
|
15231
|
+
"docs": "Updates a row model at a given index",
|
15232
|
+
"docsTags": [
|
15233
|
+
{
|
15234
|
+
"name": "param",
|
15235
|
+
"text": "row - the row to update.\n*Note* - this should come from the `col.cellTemplate` or `row.rowRender.template` `rowModel` property\n- rows are augmented with certain properties to aid with efficient rendering"
|
15236
|
+
},
|
15237
|
+
{
|
15238
|
+
"name": "param",
|
15239
|
+
"text": "rowIndex - the row index to insert this row"
|
15240
|
+
}
|
15241
|
+
]
|
15128
15242
|
}
|
15129
15243
|
],
|
15130
15244
|
"events": [
|
@@ -15148,13 +15262,22 @@
|
|
15148
15262
|
},
|
15149
15263
|
{
|
15150
15264
|
"event": "nanoTblAfterSort",
|
15151
|
-
"detail": "{ column: keyof
|
15265
|
+
"detail": "{ column: keyof RowGeneric; order: Order; }",
|
15152
15266
|
"bubbles": true,
|
15153
15267
|
"cancelable": true,
|
15154
15268
|
"composed": true,
|
15155
15269
|
"docs": "Fired after a column is sorted",
|
15156
15270
|
"docsTags": []
|
15157
15271
|
},
|
15272
|
+
{
|
15273
|
+
"event": "nanoTblBeforeEdit",
|
15274
|
+
"detail": "{ term: string; }",
|
15275
|
+
"bubbles": true,
|
15276
|
+
"cancelable": true,
|
15277
|
+
"composed": true,
|
15278
|
+
"docs": "Fired before a general search.\n`event.preventDefault()` to stop searching.",
|
15279
|
+
"docsTags": []
|
15280
|
+
},
|
15158
15281
|
{
|
15159
15282
|
"event": "nanoTblBeforeFilter",
|
15160
15283
|
"detail": "{ filters: Filter[]; }",
|
@@ -15175,7 +15298,7 @@
|
|
15175
15298
|
},
|
15176
15299
|
{
|
15177
15300
|
"event": "nanoTblBeforeSort",
|
15178
|
-
"detail": "{ column: keyof
|
15301
|
+
"detail": "{ column: keyof RowGeneric; order: Order; }",
|
15179
15302
|
"bubbles": true,
|
15180
15303
|
"cancelable": true,
|
15181
15304
|
"composed": true,
|
@@ -15193,7 +15316,7 @@
|
|
15193
15316
|
},
|
15194
15317
|
{
|
15195
15318
|
"event": "nanoTblColDrag",
|
15196
|
-
"detail": "{ column: keyof
|
15319
|
+
"detail": "{ column: keyof RowGeneric; }",
|
15197
15320
|
"bubbles": true,
|
15198
15321
|
"cancelable": true,
|
15199
15322
|
"composed": true,
|
@@ -15202,7 +15325,7 @@
|
|
15202
15325
|
},
|
15203
15326
|
{
|
15204
15327
|
"event": "nanoTblColDrop",
|
15205
|
-
"detail": "{ fromCol: keyof
|
15328
|
+
"detail": "{ fromCol: keyof RowGeneric; toCol: keyof RowGeneric; fromIndex: number; toIndex: number; }",
|
15206
15329
|
"bubbles": true,
|
15207
15330
|
"cancelable": true,
|
15208
15331
|
"composed": true,
|
@@ -15398,7 +15521,8 @@
|
|
15398
15521
|
"nano-progress-bar",
|
15399
15522
|
"nano-skeleton",
|
15400
15523
|
"nano-spinner",
|
15401
|
-
"nano-icon"
|
15524
|
+
"nano-icon",
|
15525
|
+
"nano-tooltip"
|
15402
15526
|
],
|
15403
15527
|
"dependencyGraph": {
|
15404
15528
|
"nano-table": [
|
@@ -15406,7 +15530,8 @@
|
|
15406
15530
|
"nano-progress-bar",
|
15407
15531
|
"nano-skeleton",
|
15408
15532
|
"nano-spinner",
|
15409
|
-
"nano-icon"
|
15533
|
+
"nano-icon",
|
15534
|
+
"nano-tooltip"
|
15410
15535
|
],
|
15411
15536
|
"nano-demo": [
|
15412
15537
|
"nano-table"
|
@@ -15488,6 +15613,25 @@
|
|
15488
15613
|
"getter": false,
|
15489
15614
|
"setter": false
|
15490
15615
|
},
|
15616
|
+
{
|
15617
|
+
"name": "hoist",
|
15618
|
+
"type": "boolean",
|
15619
|
+
"mutable": false,
|
15620
|
+
"attr": "hoist",
|
15621
|
+
"reflectToAttr": false,
|
15622
|
+
"docs": "Enable this option to prevent the panel from being clipped when the component is placed inside a container with\n`overflow: auto|scroll`.",
|
15623
|
+
"docsTags": [],
|
15624
|
+
"default": "false",
|
15625
|
+
"values": [
|
15626
|
+
{
|
15627
|
+
"type": "boolean"
|
15628
|
+
}
|
15629
|
+
],
|
15630
|
+
"optional": false,
|
15631
|
+
"required": false,
|
15632
|
+
"getter": false,
|
15633
|
+
"setter": false
|
15634
|
+
},
|
15491
15635
|
{
|
15492
15636
|
"name": "open",
|
15493
15637
|
"type": "boolean",
|
@@ -15727,12 +15871,16 @@
|
|
15727
15871
|
}
|
15728
15872
|
],
|
15729
15873
|
"dependents": [
|
15730
|
-
"nano-file-upload"
|
15874
|
+
"nano-file-upload",
|
15875
|
+
"nano-table"
|
15731
15876
|
],
|
15732
15877
|
"dependencies": [],
|
15733
15878
|
"dependencyGraph": {
|
15734
15879
|
"nano-file-upload": [
|
15735
15880
|
"nano-tooltip"
|
15881
|
+
],
|
15882
|
+
"nano-table": [
|
15883
|
+
"nano-tooltip"
|
15736
15884
|
]
|
15737
15885
|
}
|
15738
15886
|
}
|
package/docs-vscode.json
CHANGED
@@ -1484,7 +1484,7 @@
|
|
1484
1484
|
},
|
1485
1485
|
{
|
1486
1486
|
"name": "lazy",
|
1487
|
-
"description": "If enabled, nano-icon will be loaded lazily when it's visible in the viewport.\nDefault, `
|
1487
|
+
"description": "If enabled, nano-icon will be loaded lazily when it's visible in the viewport.\nDefault, `true`."
|
1488
1488
|
},
|
1489
1489
|
{
|
1490
1490
|
"name": "name",
|
@@ -2187,9 +2187,24 @@
|
|
2187
2187
|
"name": "nano-resize-observe",
|
2188
2188
|
"description": {
|
2189
2189
|
"kind": "markdown",
|
2190
|
-
"value": "A Resize-Observer utility component.\nTakes a string list of sizes and optional class-names
|
2190
|
+
"value": "A Resize-Observer utility component.\nTakes a string list of sizes and optional class-names.\nAdds class-names and fires `nanoResizeStateChange` events when the component reaches those sizes.\nAdditionally, can fire events when content no-longer fits within the element."
|
2191
2191
|
},
|
2192
2192
|
"attributes": [
|
2193
|
+
{
|
2194
|
+
"name": "notify-content-fit",
|
2195
|
+
"description": "Fire `nanoResizeContentFitChange` events notifying\nwhether content currently fits or does not on the x, y or both axis'.\nAlso makes the `content-fit-...` slots available",
|
2196
|
+
"values": [
|
2197
|
+
{
|
2198
|
+
"name": "x"
|
2199
|
+
},
|
2200
|
+
{
|
2201
|
+
"name": "xy"
|
2202
|
+
},
|
2203
|
+
{
|
2204
|
+
"name": "y"
|
2205
|
+
}
|
2206
|
+
]
|
2207
|
+
},
|
2193
2208
|
{
|
2194
2209
|
"name": "states",
|
2195
2210
|
"description": "string list of sizes and optional class-names. Adds class-names and fires nanoResizeStateChange events. Upon hitting breakpoints.\nFormat: `states=\"800w, 300h class1 class2\"`"
|
@@ -2707,7 +2722,7 @@
|
|
2707
2722
|
},
|
2708
2723
|
{
|
2709
2724
|
"name": "loading",
|
2710
|
-
"description": "Will show a loading state when true.\
|
2725
|
+
"description": "Will show a loading state when set to true.\nBy default, will be shown automatically if `rows` is a promise waiting to resolve\nor when performing custom filtering or sorting.\n*Note* when set manually, will overwrite any internal loading state.\nSet to 'undefined' to revert to default behaviour."
|
2711
2726
|
},
|
2712
2727
|
{
|
2713
2728
|
"name": "per-block",
|
@@ -2740,6 +2755,10 @@
|
|
2740
2755
|
"name": "table"
|
2741
2756
|
}
|
2742
2757
|
]
|
2758
|
+
},
|
2759
|
+
{
|
2760
|
+
"name": "virtual-total-items",
|
2761
|
+
"description": "Use this to render the table with roughly the correct dimensions.\na use-case might be; fetch a small initial dataset to minimise load-time,\nrender the table with the correct dimensions, the table becomes interactive,\nload the rest of the data"
|
2743
2762
|
}
|
2744
2763
|
]
|
2745
2764
|
},
|
@@ -2762,6 +2781,10 @@
|
|
2762
2781
|
"name": "distance",
|
2763
2782
|
"description": "The distance in pixels from which to offset the tooltip away from its target."
|
2764
2783
|
},
|
2784
|
+
{
|
2785
|
+
"name": "hoist",
|
2786
|
+
"description": "Enable this option to prevent the panel from being clipped when the component is placed inside a container with\n`overflow: auto|scroll`."
|
2787
|
+
},
|
2765
2788
|
{
|
2766
2789
|
"name": "open",
|
2767
2790
|
"description": "Indicates whether or not the tooltip is open. You can use this in lieu of the show/hide methods."
|