@nanoporetech-digital/components 5.2.1 → 5.3.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/{_commonjsHelpers-9f2314fc.js → _commonjsHelpers-29614748.js} +1 -17
- package/dist/cjs/_commonjsHelpers-29614748.js.map +1 -0
- package/dist/cjs/algoliasearch-lite.esm.browser-992a2eff.js +922 -0
- package/dist/cjs/algoliasearch-lite.esm.browser-992a2eff.js.map +1 -0
- package/dist/cjs/component-store-21cb4901.js +328 -0
- package/dist/cjs/component-store-21cb4901.js.map +1 -0
- package/dist/cjs/events-db0a42ee.js +39 -0
- package/dist/cjs/events-db0a42ee.js.map +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/nano-alert.cjs.entry.js +9 -2
- package/dist/cjs/nano-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-algolia-filter.cjs.entry.js +1 -2
- package/dist/cjs/nano-algolia-filter.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-algolia-input.cjs.entry.js +8 -4
- package/dist/cjs/nano-algolia-input.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-algolia.cjs.entry.js +4 -4
- package/dist/cjs/nano-algolia.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-components.cjs.js +1 -1
- package/dist/cjs/nano-datalist_3.cjs.entry.js +1 -1
- package/dist/cjs/nano-dialog.cjs.entry.js +23 -22
- package/dist/cjs/nano-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-drawer.cjs.entry.js +169 -111
- package/dist/cjs/nano-drawer.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-dropdown.cjs.entry.js +16 -2
- package/dist/cjs/nano-dropdown.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-global-nav.cjs.entry.js +5 -6
- package/dist/cjs/nano-global-nav.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-global-search-results.cjs.entry.js +2 -1
- package/dist/cjs/nano-global-search-results.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-slides.cjs.entry.js +1 -1
- package/dist/cjs/nano-sortable.cjs.entry.js +3 -15
- package/dist/cjs/nano-sortable.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-sticker.cjs.entry.js +16 -9
- package/dist/cjs/nano-sticker.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-tab-group.cjs.entry.js +1 -2
- package/dist/cjs/nano-tab-group.cjs.entry.js.map +1 -1
- package/dist/cjs/{nano-table-10a40ab3.js → nano-table-e15cc6b0.js} +6 -6
- package/dist/cjs/nano-table-e15cc6b0.js.map +1 -0
- package/dist/cjs/nano-table.cjs.entry.js +1 -1
- package/dist/cjs/{slot-a448c1a7.js → slot-2dd6ed1d.js} +20 -15
- package/dist/cjs/slot-2dd6ed1d.js.map +1 -0
- package/dist/cjs/{table.worker-f04588c1.js → table.worker-8759e6ea.js} +2 -2
- package/dist/cjs/table.worker-8759e6ea.js.map +1 -0
- package/dist/collection/components/alert/alert.css +15 -0
- package/dist/collection/components/alert/alert.js +10 -2
- package/dist/collection/components/alert/alert.js.map +1 -1
- package/dist/collection/components/algolia/algolia-interface.js.map +1 -1
- package/dist/collection/components/algolia/algolia.js +1 -1
- package/dist/collection/components/algolia/algolia.js.map +1 -1
- package/dist/collection/components/dialog/dialog.css +1 -17
- package/dist/collection/components/dialog/dialog.js +31 -20
- package/dist/collection/components/dialog/dialog.js.map +1 -1
- package/dist/collection/components/drawer/drawer.css +136 -67
- package/dist/collection/components/drawer/drawer.js +282 -154
- package/dist/collection/components/drawer/drawer.js.map +1 -1
- package/dist/collection/components/dropdown/dropdown.css +10 -0
- package/dist/collection/components/dropdown/dropdown.js +15 -1
- package/dist/collection/components/dropdown/dropdown.js.map +1 -1
- package/dist/collection/components/global-nav/global-nav.js +2 -2
- package/dist/collection/components/global-nav/global-nav.js.map +1 -1
- package/dist/collection/components/global-nav/style/global-nav.css +5 -1
- package/dist/collection/components/global-search-results/global-search-results.js +2 -1
- package/dist/collection/components/global-search-results/global-search-results.js.map +1 -1
- package/dist/collection/components/sticker/sticker.js +16 -9
- package/dist/collection/components/sticker/sticker.js.map +1 -1
- package/dist/collection/components/table/table.pin-service.js +4 -4
- package/dist/collection/components/table/table.pin-service.js.map +1 -1
- package/dist/collection/utils/events.js +17 -0
- package/dist/collection/utils/events.js.map +1 -1
- package/dist/collection/utils/slot.js +19 -14
- package/dist/collection/utils/slot.js.map +1 -1
- package/dist/collection/utils/store/get-set.js +6 -12
- package/dist/collection/utils/store/get-set.js.map +1 -1
- package/dist/components/_commonjsHelpers.js +1 -16
- package/dist/components/_commonjsHelpers.js.map +1 -1
- package/dist/components/algolia.js +2 -2
- package/dist/components/algolia.js.map +1 -1
- package/dist/components/algoliasearch-lite.esm.browser.js +920 -0
- package/dist/components/algoliasearch-lite.esm.browser.js.map +1 -0
- package/dist/components/component-store.js +68 -2001
- package/dist/components/component-store.js.map +1 -1
- package/dist/components/dropdown.js +16 -2
- package/dist/components/dropdown.js.map +1 -1
- package/dist/components/events.js +36 -0
- package/dist/components/events.js.map +1 -0
- package/dist/components/nano-alert.js +10 -2
- package/dist/components/nano-alert.js.map +1 -1
- package/dist/components/nano-algolia-input.js +6 -1
- package/dist/components/nano-algolia-input.js.map +1 -1
- package/dist/components/nano-dialog.js +21 -20
- package/dist/components/nano-dialog.js.map +1 -1
- package/dist/components/nano-drawer.js +205 -122
- package/dist/components/nano-drawer.js.map +1 -1
- package/dist/components/nano-global-nav.js +4 -4
- package/dist/components/nano-global-nav.js.map +1 -1
- package/dist/components/nano-global-search-results.js +2 -1
- package/dist/components/nano-global-search-results.js.map +1 -1
- package/dist/components/nano-sortable.js +1 -13
- package/dist/components/nano-sortable.js.map +1 -1
- package/dist/components/slot.js +19 -14
- package/dist/components/slot.js.map +1 -1
- package/dist/components/sticker.js +16 -9
- package/dist/components/sticker.js.map +1 -1
- package/dist/components/table.js +4 -4
- package/dist/components/table.js.map +1 -1
- package/dist/esm/{_commonjsHelpers-e401b2a2.js → _commonjsHelpers-04a0e019.js} +2 -17
- package/dist/esm/_commonjsHelpers-04a0e019.js.map +1 -0
- package/dist/esm/algoliasearch-lite.esm.browser-04891fdc.js +920 -0
- package/dist/esm/algoliasearch-lite.esm.browser-04891fdc.js.map +1 -0
- package/dist/esm/component-store-65d7e36a.js +326 -0
- package/dist/esm/component-store-65d7e36a.js.map +1 -0
- package/dist/esm/events-6a805b42.js +36 -0
- package/dist/esm/events-6a805b42.js.map +1 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/nano-alert.entry.js +9 -2
- package/dist/esm/nano-alert.entry.js.map +1 -1
- package/dist/esm/nano-algolia-filter.entry.js +1 -2
- package/dist/esm/nano-algolia-filter.entry.js.map +1 -1
- package/dist/esm/nano-algolia-input.entry.js +7 -3
- package/dist/esm/nano-algolia-input.entry.js.map +1 -1
- package/dist/esm/nano-algolia.entry.js +4 -4
- package/dist/esm/nano-algolia.entry.js.map +1 -1
- package/dist/esm/nano-components.js +1 -1
- package/dist/esm/nano-datalist_3.entry.js +1 -1
- package/dist/esm/nano-dialog.entry.js +23 -22
- package/dist/esm/nano-dialog.entry.js.map +1 -1
- package/dist/esm/nano-drawer.entry.js +171 -113
- package/dist/esm/nano-drawer.entry.js.map +1 -1
- package/dist/esm/nano-dropdown.entry.js +16 -2
- package/dist/esm/nano-dropdown.entry.js.map +1 -1
- package/dist/esm/nano-global-nav.entry.js +5 -6
- package/dist/esm/nano-global-nav.entry.js.map +1 -1
- package/dist/esm/nano-global-search-results.entry.js +2 -1
- package/dist/esm/nano-global-search-results.entry.js.map +1 -1
- package/dist/esm/nano-slides.entry.js +1 -1
- package/dist/esm/nano-sortable.entry.js +1 -13
- package/dist/esm/nano-sortable.entry.js.map +1 -1
- package/dist/esm/nano-sticker.entry.js +16 -9
- package/dist/esm/nano-sticker.entry.js.map +1 -1
- package/dist/esm/nano-tab-group.entry.js +1 -2
- package/dist/esm/nano-tab-group.entry.js.map +1 -1
- package/dist/esm/{nano-table-2bbcaa8d.js → nano-table-5c5bd3f2.js} +6 -6
- package/dist/esm/nano-table-5c5bd3f2.js.map +1 -0
- package/dist/esm/nano-table.entry.js +1 -1
- package/dist/esm/{slot-a4f6e2af.js → slot-8126e238.js} +20 -15
- package/dist/esm/slot-8126e238.js.map +1 -0
- package/dist/esm/{table.worker-7324ad73.js → table.worker-e7f4f50c.js} +2 -2
- package/dist/esm/table.worker-e7f4f50c.js.map +1 -0
- package/dist/nano-components/nano-components.css +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-0301e8f7.entry.js +5 -0
- package/dist/nano-components/p-0301e8f7.entry.js.map +1 -0
- package/dist/nano-components/p-27422aa9.entry.js +5 -0
- package/dist/nano-components/{p-6920ad69.entry.js.map → p-27422aa9.entry.js.map} +1 -1
- package/dist/nano-components/{p-52ae36ec.js → p-2d79f5b3.js} +2 -2
- package/dist/nano-components/{p-0697795a.entry.js → p-31c23d6e.entry.js} +2 -2
- package/dist/nano-components/p-31c23d6e.entry.js.map +1 -0
- package/dist/nano-components/p-487de04d.entry.js.map +1 -1
- package/dist/nano-components/p-570d2e50.entry.js +5 -0
- package/dist/nano-components/p-570d2e50.entry.js.map +1 -0
- package/dist/nano-components/{p-3eb6d833.entry.js → p-5a4b3fa9.entry.js} +2 -2
- package/dist/nano-components/p-653ae985.js +5 -0
- package/dist/nano-components/p-653ae985.js.map +1 -0
- package/dist/nano-components/p-676a4744.entry.js +5 -0
- package/dist/nano-components/{p-d0eefd52.entry.js.map → p-676a4744.entry.js.map} +1 -1
- package/dist/nano-components/p-8fe51abf.js +5 -0
- package/dist/nano-components/{p-4884b65a.entry.js → p-90cd4f56.entry.js} +2 -2
- package/dist/nano-components/p-90cd4f56.entry.js.map +1 -0
- package/dist/nano-components/p-9ba81ed2.js +5 -0
- package/dist/nano-components/p-9ba81ed2.js.map +1 -0
- package/dist/nano-components/p-9bfdee71.js +5 -0
- package/dist/nano-components/p-9bfdee71.js.map +1 -0
- package/dist/nano-components/p-a8d6ca38.entry.js +5 -0
- package/dist/nano-components/p-a8d6ca38.entry.js.map +1 -0
- package/dist/nano-components/p-ace7743c.entry.js +5 -0
- package/dist/nano-components/p-ace7743c.entry.js.map +1 -0
- package/dist/nano-components/{p-39aec880.entry.js → p-bab2888b.entry.js} +2 -2
- package/dist/nano-components/p-bdb5b6fc.entry.js +5 -0
- package/dist/nano-components/p-bdb5b6fc.entry.js.map +1 -0
- package/dist/nano-components/p-cad86fb8.js +5 -0
- package/dist/nano-components/p-cad86fb8.js.map +1 -0
- package/dist/nano-components/p-dc565459.js +5 -0
- package/dist/nano-components/p-dc565459.js.map +1 -0
- package/dist/nano-components/p-ede12d35.entry.js +5 -0
- package/dist/nano-components/p-ede12d35.entry.js.map +1 -0
- package/dist/nano-components/p-f504b1df.entry.js +7 -0
- package/dist/nano-components/p-f504b1df.entry.js.map +1 -0
- package/dist/nano-components/{p-db370094.entry.js → p-f7a4c62b.entry.js} +2 -2
- package/dist/themes/london-calling.css.map +1 -1
- package/dist/themes/nanopore.cn.css.map +1 -1
- package/dist/themes/nanopore.css.map +1 -1
- package/dist/types/components/alert/alert.d.ts +1 -0
- package/dist/types/components/algolia/algolia-interface.d.ts +1 -1
- package/dist/types/components/algolia/algolia.d.ts +1 -1
- package/dist/types/components/dialog/dialog.d.ts +15 -4
- package/dist/types/components/drawer/drawer.d.ts +69 -50
- package/dist/types/components/sticker/sticker.d.ts +4 -4
- package/dist/types/components.d.ts +50 -28
- package/dist/types/types/algolia.d.ts +4 -0
- package/dist/types/types/scss.vars.d.ts +4 -0
- package/dist/types/utils/events.d.ts +7 -0
- package/dist/types/utils/slot.d.ts +3 -3
- package/docs-json.json +268 -61
- package/docs-vscode.json +28 -11
- package/hydrate/index.js +1335 -2236
- package/package.json +4 -4
- package/dist/cjs/_commonjsHelpers-9f2314fc.js.map +0 -1
- package/dist/cjs/algoliasearch.umd-689c1560.js +0 -15
- package/dist/cjs/algoliasearch.umd-689c1560.js.map +0 -1
- package/dist/cjs/component-store-f1dc1276.js +0 -2261
- package/dist/cjs/component-store-f1dc1276.js.map +0 -1
- package/dist/cjs/nano-table-10a40ab3.js.map +0 -1
- package/dist/cjs/slot-a448c1a7.js.map +0 -1
- package/dist/cjs/table.worker-f04588c1.js.map +0 -1
- package/dist/components/algoliasearch.umd.js +0 -13
- package/dist/components/algoliasearch.umd.js.map +0 -1
- package/dist/esm/_commonjsHelpers-e401b2a2.js.map +0 -1
- package/dist/esm/algoliasearch.umd-4f7efa84.js +0 -13
- package/dist/esm/algoliasearch.umd-4f7efa84.js.map +0 -1
- package/dist/esm/component-store-c23ebc9c.js +0 -2259
- package/dist/esm/component-store-c23ebc9c.js.map +0 -1
- package/dist/esm/nano-table-2bbcaa8d.js.map +0 -1
- package/dist/esm/slot-a4f6e2af.js.map +0 -1
- package/dist/esm/table.worker-7324ad73.js.map +0 -1
- package/dist/nano-components/p-0697795a.entry.js.map +0 -1
- package/dist/nano-components/p-17b099cc.entry.js +0 -5
- package/dist/nano-components/p-17b099cc.entry.js.map +0 -1
- package/dist/nano-components/p-1a0b5bc3.js +0 -5
- package/dist/nano-components/p-1a0b5bc3.js.map +0 -1
- package/dist/nano-components/p-4884b65a.entry.js.map +0 -1
- package/dist/nano-components/p-58cf5446.js +0 -5
- package/dist/nano-components/p-58cf5446.js.map +0 -1
- package/dist/nano-components/p-6920ad69.entry.js +0 -5
- package/dist/nano-components/p-69a3e911.js +0 -5
- package/dist/nano-components/p-7baa9e14.entry.js +0 -5
- package/dist/nano-components/p-7baa9e14.entry.js.map +0 -1
- package/dist/nano-components/p-9b533dc3.js +0 -5
- package/dist/nano-components/p-9b533dc3.js.map +0 -1
- package/dist/nano-components/p-a362bd23.entry.js +0 -5
- package/dist/nano-components/p-a362bd23.entry.js.map +0 -1
- package/dist/nano-components/p-b04fd7ca.entry.js +0 -5
- package/dist/nano-components/p-b04fd7ca.entry.js.map +0 -1
- package/dist/nano-components/p-b72df1aa.entry.js +0 -5
- package/dist/nano-components/p-b72df1aa.entry.js.map +0 -1
- package/dist/nano-components/p-ce5efc3f.entry.js +0 -5
- package/dist/nano-components/p-ce5efc3f.entry.js.map +0 -1
- package/dist/nano-components/p-d0eefd52.entry.js +0 -5
- package/dist/nano-components/p-e2b2b015.entry.js +0 -5
- package/dist/nano-components/p-e2b2b015.entry.js.map +0 -1
- package/dist/nano-components/p-ed6adde2.js +0 -7
- package/dist/nano-components/p-ed6adde2.js.map +0 -1
- package/dist/types/dom.ie.d.ts +0 -3
- /package/dist/nano-components/{p-39aec880.entry.js.map → p-2d79f5b3.js.map} +0 -0
- /package/dist/nano-components/{p-3eb6d833.entry.js.map → p-5a4b3fa9.entry.js.map} +0 -0
- /package/dist/nano-components/{p-52ae36ec.js.map → p-8fe51abf.js.map} +0 -0
- /package/dist/nano-components/{p-69a3e911.js.map → p-bab2888b.entry.js.map} +0 -0
- /package/dist/nano-components/{p-db370094.entry.js.map → p-f7a4c62b.entry.js.map} +0 -0
@@ -725,23 +725,23 @@ export namespace Components {
|
|
725
725
|
"storeMethod": StorageMethods;
|
726
726
|
}
|
727
727
|
/**
|
728
|
-
*
|
728
|
+
* Drawers slide in from a container to expose additional options and information.
|
729
729
|
*/
|
730
730
|
interface NanoDrawer {
|
731
731
|
/**
|
732
|
-
* By default, the drawer slides out of its containing block (usually the viewport). To make the drawer slide out of its parent element, set this
|
732
|
+
* By default, the drawer slides out of its containing block (usually the viewport). To make the drawer slide out of its parent element, set this attribute and add `position: relative` to the parent.
|
733
733
|
*/
|
734
734
|
"contained": boolean;
|
735
|
-
/**
|
736
|
-
* Required for 'reveal' and 'push' types A valid DOM selector of the content element that this drawer will push or reveal underneath Please remember - elements wrapping the content element must be 'overflow: hidden' otherwise menus will be shown when closed
|
737
|
-
*/
|
738
|
-
"contentSelector": string;
|
739
735
|
/**
|
740
736
|
* Hides the drawer
|
741
737
|
*/
|
742
738
|
"hide": () => Promise<void>;
|
743
739
|
/**
|
744
|
-
*
|
740
|
+
* Relocate the dialog to the root of the DOM. Useful for elements bound via css `transform: ...`
|
741
|
+
*/
|
742
|
+
"hoist": boolean;
|
743
|
+
/**
|
744
|
+
* The drawer's label as displayed in the header. You should always include a relevant label even when using `no-header`, as it is required for proper accessibility. If you need to display HTML, use the `label` slot instead.
|
745
745
|
*/
|
746
746
|
"label": string;
|
747
747
|
/**
|
@@ -749,7 +749,11 @@ export namespace Components {
|
|
749
749
|
*/
|
750
750
|
"noHeader": boolean;
|
751
751
|
/**
|
752
|
-
*
|
752
|
+
* An alternative to `preventDefault()` on the `nanoRequestClose` event. This will hide the close button and disable clicks on the overlay or presses the `Escape` key
|
753
|
+
*/
|
754
|
+
"noUserDismiss": boolean;
|
755
|
+
/**
|
756
|
+
* Indicates whether or not the drawer is open. You can toggle this attribute to show and hide the drawer, or you can use the `show()` and `hide()` methods and this attribute will reflect the drawer's open state.
|
753
757
|
*/
|
754
758
|
"open": boolean;
|
755
759
|
/**
|
@@ -757,13 +761,17 @@ export namespace Components {
|
|
757
761
|
*/
|
758
762
|
"placement": 'top' | 'end' | 'bottom' | 'start';
|
759
763
|
/**
|
760
|
-
* Shows the drawer
|
764
|
+
* Shows the drawer.
|
761
765
|
*/
|
762
766
|
"show": () => Promise<void>;
|
763
767
|
/**
|
764
|
-
*
|
768
|
+
* Store search queries (against this ID) to the component store. Use in conjunction with storeMethod
|
769
|
+
*/
|
770
|
+
"storeId"?: string;
|
771
|
+
/**
|
772
|
+
* The method of storage. Either session storage, url hash (after the '#') or url query (after the '?').
|
765
773
|
*/
|
766
|
-
"
|
774
|
+
"storeMethod": StorageMethods;
|
767
775
|
}
|
768
776
|
/**
|
769
777
|
* Dropdowns show additional content in a panel.
|
@@ -2867,7 +2875,7 @@ declare global {
|
|
2867
2875
|
new (): HTMLNanoDialogElement;
|
2868
2876
|
};
|
2869
2877
|
/**
|
2870
|
-
*
|
2878
|
+
* Drawers slide in from a container to expose additional options and information.
|
2871
2879
|
*/
|
2872
2880
|
interface HTMLNanoDrawerElement extends Components.NanoDrawer, HTMLStencilElement {
|
2873
2881
|
}
|
@@ -4044,47 +4052,57 @@ declare namespace LocalJSX {
|
|
4044
4052
|
"storeMethod"?: StorageMethods;
|
4045
4053
|
}
|
4046
4054
|
/**
|
4047
|
-
*
|
4055
|
+
* Drawers slide in from a container to expose additional options and information.
|
4048
4056
|
*/
|
4049
4057
|
interface NanoDrawer {
|
4050
4058
|
/**
|
4051
|
-
* By default, the drawer slides out of its containing block (usually the viewport). To make the drawer slide out of its parent element, set this
|
4059
|
+
* By default, the drawer slides out of its containing block (usually the viewport). To make the drawer slide out of its parent element, set this attribute and add `position: relative` to the parent.
|
4052
4060
|
*/
|
4053
4061
|
"contained"?: boolean;
|
4054
4062
|
/**
|
4055
|
-
*
|
4063
|
+
* Relocate the dialog to the root of the DOM. Useful for elements bound via css `transform: ...`
|
4056
4064
|
*/
|
4057
|
-
"
|
4065
|
+
"hoist"?: boolean;
|
4058
4066
|
/**
|
4059
|
-
* The drawer's label as displayed in the header. You should always include a relevant label even when using `no-header`, as it is required for proper accessibility.
|
4067
|
+
* The drawer's label as displayed in the header. You should always include a relevant label even when using `no-header`, as it is required for proper accessibility. If you need to display HTML, use the `label` slot instead.
|
4060
4068
|
*/
|
4061
|
-
"label"
|
4069
|
+
"label": string;
|
4062
4070
|
/**
|
4063
4071
|
* Removes the header. This will also remove the default close button, so please ensure you provide an easy, accessible way for users to dismiss the drawer.
|
4064
4072
|
*/
|
4065
4073
|
"noHeader"?: boolean;
|
4066
4074
|
/**
|
4067
|
-
*
|
4075
|
+
* An alternative to `preventDefault()` on the `nanoRequestClose` event. This will hide the close button and disable clicks on the overlay or presses the `Escape` key
|
4076
|
+
*/
|
4077
|
+
"noUserDismiss"?: boolean;
|
4078
|
+
/**
|
4079
|
+
* Emitted after the drawer closes and all animations are complete.
|
4068
4080
|
*/
|
4069
4081
|
"onNanoAfterHide"?: (event: NanoDrawerCustomEvent<any>) => void;
|
4070
4082
|
/**
|
4071
|
-
* Emitted after the drawer opens and all
|
4083
|
+
* Emitted after the drawer opens and all animations are complete.
|
4072
4084
|
*/
|
4073
4085
|
"onNanoAfterShow"?: (event: NanoDrawerCustomEvent<any>) => void;
|
4074
4086
|
/**
|
4075
|
-
* Emitted when the drawer closes.
|
4087
|
+
* Emitted when the drawer closes.
|
4076
4088
|
*/
|
4077
4089
|
"onNanoHide"?: (event: NanoDrawerCustomEvent<any>) => void;
|
4078
4090
|
/**
|
4079
|
-
* Emitted when the
|
4091
|
+
* Emitted when the drawer opens and is ready to receive focus. Calling `event.preventDefault()` will prevent focusing and allow you to set it on a different element, such as an input.
|
4092
|
+
*/
|
4093
|
+
"onNanoInitialFocus"?: (event: NanoDrawerCustomEvent<any>) => void;
|
4094
|
+
/**
|
4095
|
+
* Emitted when the user attempts to close the drawer by clicking the close button, clicking the overlay, or pressing escape. Calling `event.preventDefault()` will keep the drawer open. Avoid using this unless closing the drawer will result in destructive behavior such as data loss.
|
4080
4096
|
*/
|
4081
|
-
"
|
4097
|
+
"onNanoRquestClose"?: (event: NanoDrawerCustomEvent<{
|
4098
|
+
source: 'close-button' | 'keyboard' | 'overlay';
|
4099
|
+
}>) => void;
|
4082
4100
|
/**
|
4083
|
-
* Emitted when the drawer opens.
|
4101
|
+
* Emitted when the drawer opens.
|
4084
4102
|
*/
|
4085
4103
|
"onNanoShow"?: (event: NanoDrawerCustomEvent<any>) => void;
|
4086
4104
|
/**
|
4087
|
-
* Indicates whether or not the drawer is open. You can
|
4105
|
+
* Indicates whether or not the drawer is open. You can toggle this attribute to show and hide the drawer, or you can use the `show()` and `hide()` methods and this attribute will reflect the drawer's open state.
|
4088
4106
|
*/
|
4089
4107
|
"open"?: boolean;
|
4090
4108
|
/**
|
@@ -4092,9 +4110,13 @@ declare namespace LocalJSX {
|
|
4092
4110
|
*/
|
4093
4111
|
"placement"?: 'top' | 'end' | 'bottom' | 'start';
|
4094
4112
|
/**
|
4095
|
-
*
|
4113
|
+
* Store search queries (against this ID) to the component store. Use in conjunction with storeMethod
|
4114
|
+
*/
|
4115
|
+
"storeId"?: string;
|
4116
|
+
/**
|
4117
|
+
* The method of storage. Either session storage, url hash (after the '#') or url query (after the '?').
|
4096
4118
|
*/
|
4097
|
-
"
|
4119
|
+
"storeMethod"?: StorageMethods;
|
4098
4120
|
}
|
4099
4121
|
/**
|
4100
4122
|
* Dropdowns show additional content in a panel.
|
@@ -6115,7 +6137,7 @@ declare module "@stencil/core" {
|
|
6115
6137
|
*/
|
6116
6138
|
"nano-dialog": LocalJSX.NanoDialog & JSXBase.HTMLAttributes<HTMLNanoDialogElement>;
|
6117
6139
|
/**
|
6118
|
-
*
|
6140
|
+
* Drawers slide in from a container to expose additional options and information.
|
6119
6141
|
*/
|
6120
6142
|
"nano-drawer": LocalJSX.NanoDrawer & JSXBase.HTMLAttributes<HTMLNanoDrawerElement>;
|
6121
6143
|
/**
|
@@ -13,3 +13,10 @@ export declare function addListeners(el: Element | Document, events: string, fn:
|
|
13
13
|
* @param fn the function to call
|
14
14
|
*/
|
15
15
|
export declare function removeListeners(el: Element | Document, events: string, fn: (e: Event) => void): void;
|
16
|
+
/**
|
17
|
+
* Waits for a specific event to be emitted from an element.
|
18
|
+
* Ignores events that bubble up from child elements.
|
19
|
+
* @param el an html element
|
20
|
+
* @param eventName name of the event
|
21
|
+
*/
|
22
|
+
export declare function waitForEvent(el: HTMLElement, eventName: string): Promise<void>;
|
@@ -15,8 +15,8 @@ export declare function getTextContent(slot: HTMLSlotElement): string;
|
|
15
15
|
/**
|
16
16
|
* Determines whether an element has a slot. If name is specified, the function will look for a corresponding named
|
17
17
|
* slot, otherwise it will look for a "default" slot (e.g. a non-empty text node or an element with no slot attribute).
|
18
|
-
* @param
|
19
|
-
* @param name
|
18
|
+
* @param host a custom element host
|
19
|
+
* @param name a slot to find
|
20
20
|
* @returns boolean
|
21
21
|
*/
|
22
|
-
export declare function hasSlot(
|
22
|
+
export declare function hasSlot(host: HTMLElement, name?: string): boolean;
|