@nanoporetech-digital/components 5.9.5 → 5.10.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 +36 -0
- package/dist/cjs/index-1d3ebe1a.js +0 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/nano-algolia.cjs.entry.js +13 -1
- package/dist/cjs/nano-algolia.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-components.cjs.js +1 -1
- package/dist/cjs/nano-details.cjs.entry.js +1 -1
- package/dist/cjs/nano-dropdown.cjs.entry.js +10 -6
- package/dist/cjs/nano-dropdown.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-global-nav-user-profile_3.cjs.entry.js +2 -2
- package/dist/cjs/nano-global-nav-user-profile_3.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-global-nav.cjs.entry.js +92 -53
- package/dist/cjs/nano-global-nav.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-global-search-results.cjs.entry.js +6 -7
- package/dist/cjs/nano-global-search-results.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-icon-button_2.cjs.entry.js +1 -1
- package/dist/cjs/nano-tab-group.cjs.entry.js +1 -1
- package/dist/cjs/{nano-table-be63f3e1.js → nano-table-72d5dc63.js} +2 -2
- package/dist/cjs/{nano-table-be63f3e1.js.map → nano-table-72d5dc63.js.map} +1 -1
- package/dist/cjs/nano-table.cjs.entry.js +1 -1
- package/dist/cjs/{popover-088646b2.js → popover-b506f6ae.js} +10 -17
- package/dist/cjs/popover-b506f6ae.js.map +1 -0
- package/dist/cjs/{table.worker-b05ffc52.js → table.worker-3df34efe.js} +2 -2
- package/dist/cjs/table.worker-3df34efe.js.map +1 -0
- package/dist/cjs/{transitions-8c57ddb1.js → transitions-cc18619c.js} +3 -2
- package/dist/cjs/transitions-cc18619c.js.map +1 -0
- package/dist/collection/collection-manifest.json +0 -1
- package/dist/collection/components/algolia/algolia-interface.js.map +1 -1
- package/dist/collection/components/algolia/algolia.js +17 -5
- package/dist/collection/components/algolia/algolia.js.map +1 -1
- package/dist/collection/components/dropdown/dropdown.js +9 -5
- package/dist/collection/components/dropdown/dropdown.js.map +1 -1
- package/dist/collection/components/global-nav/global-nav.js +90 -51
- package/dist/collection/components/global-nav/global-nav.js.map +1 -1
- package/dist/collection/components/global-nav/style/global-nav.css +18 -18
- package/dist/collection/components/global-search-results/global-search-results.js +6 -7
- package/dist/collection/components/global-search-results/global-search-results.js.map +1 -1
- package/dist/collection/components/nav-item/nav-item.css +4 -4
- package/dist/collection/utils/transitions.js +2 -1
- package/dist/collection/utils/transitions.js.map +1 -1
- package/dist/components/algolia.js +13 -2
- package/dist/components/algolia.js.map +1 -1
- package/dist/components/dropdown.js +9 -5
- package/dist/components/dropdown.js.map +1 -1
- package/dist/components/index.d.ts +0 -1
- package/dist/components/index.js +0 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/nano-global-nav.js +91 -52
- package/dist/components/nano-global-nav.js.map +1 -1
- package/dist/components/nano-global-search-results.js +6 -7
- package/dist/components/nano-global-search-results.js.map +1 -1
- package/dist/components/nav-item.js +1 -1
- package/dist/components/nav-item.js.map +1 -1
- package/dist/components/popover.js +9 -16
- package/dist/components/popover.js.map +1 -1
- package/dist/components/transitions.js +2 -1
- package/dist/components/transitions.js.map +1 -1
- package/dist/esm/index-06666022.js +0 -4
- package/dist/esm/loader.js +1 -1
- package/dist/esm/nano-algolia.entry.js +13 -1
- package/dist/esm/nano-algolia.entry.js.map +1 -1
- package/dist/esm/nano-components.js +1 -1
- package/dist/esm/nano-details.entry.js +1 -1
- package/dist/esm/nano-dropdown.entry.js +10 -6
- package/dist/esm/nano-dropdown.entry.js.map +1 -1
- package/dist/esm/nano-global-nav-user-profile_3.entry.js +2 -2
- package/dist/esm/nano-global-nav-user-profile_3.entry.js.map +1 -1
- package/dist/esm/nano-global-nav.entry.js +92 -53
- package/dist/esm/nano-global-nav.entry.js.map +1 -1
- package/dist/esm/nano-global-search-results.entry.js +6 -7
- package/dist/esm/nano-global-search-results.entry.js.map +1 -1
- package/dist/esm/nano-icon-button_2.entry.js +1 -1
- package/dist/esm/nano-tab-group.entry.js +1 -1
- package/dist/esm/{nano-table-8ac79667.js → nano-table-5af42ba4.js} +2 -2
- package/dist/esm/{nano-table-8ac79667.js.map → nano-table-5af42ba4.js.map} +1 -1
- package/dist/esm/nano-table.entry.js +1 -1
- package/dist/esm/{popover-02e6714d.js → popover-e5e7a641.js} +10 -17
- package/dist/esm/popover-e5e7a641.js.map +1 -0
- package/dist/esm/{table.worker-822b1223.js → table.worker-3cae908c.js} +2 -2
- package/dist/esm/table.worker-3cae908c.js.map +1 -0
- package/dist/esm/{transitions-b4657201.js → transitions-fb09eb32.js} +3 -2
- package/dist/esm/transitions-fb09eb32.js.map +1 -0
- 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-f57cea20.entry.js → p-0e4da739.entry.js} +2 -2
- package/dist/nano-components/{p-f49f57ed.js → p-1987f7a9.js} +2 -2
- package/dist/nano-components/{p-f8dd8c20.entry.js → p-2a105609.entry.js} +2 -2
- package/dist/nano-components/{p-24dcd788.entry.js → p-2c0218e6.entry.js} +2 -2
- package/dist/nano-components/p-2c0218e6.entry.js.map +1 -0
- package/dist/nano-components/p-36c3ded8.entry.js +5 -0
- package/dist/nano-components/p-36c3ded8.entry.js.map +1 -0
- package/dist/nano-components/{p-2a7d0c13.entry.js → p-5fc3035d.entry.js} +2 -2
- package/dist/nano-components/p-688f1a55.entry.js +5 -0
- package/dist/nano-components/p-688f1a55.entry.js.map +1 -0
- package/dist/nano-components/p-abd11243.entry.js +5 -0
- package/dist/nano-components/p-abd11243.entry.js.map +1 -0
- package/dist/nano-components/p-c3e8e3f9.js +5 -0
- package/dist/nano-components/p-c3e8e3f9.js.map +1 -0
- package/dist/nano-components/p-cd1fd454.js +5 -0
- package/dist/nano-components/p-cd1fd454.js.map +1 -0
- package/dist/nano-components/{p-78323d6e.js → p-dc4020f8.js} +2 -2
- package/dist/nano-components/p-dc6cb252.entry.js +5 -0
- package/dist/nano-components/p-dc6cb252.entry.js.map +1 -0
- package/dist/nano-components/{p-7da12234.entry.js → p-fbde7010.entry.js} +2 -2
- package/dist/types/components/algolia/algolia-interface.d.ts +8 -2
- package/dist/types/components/algolia/algolia.d.ts +3 -4
- package/dist/types/components/global-nav/global-nav.d.ts +32 -0
- package/dist/types/components.d.ts +2 -127
- package/docs-json.json +5 -257
- package/docs-vscode.json +2 -63
- package/hydrate/index.js +134 -269
- package/package.json +3 -3
- package/dist/cjs/nano-algolia-input.cjs.entry.js +0 -168
- package/dist/cjs/nano-algolia-input.cjs.entry.js.map +0 -1
- package/dist/cjs/popover-088646b2.js.map +0 -1
- package/dist/cjs/table.worker-b05ffc52.js.map +0 -1
- package/dist/cjs/transitions-8c57ddb1.js.map +0 -1
- package/dist/collection/components/algolia/algolia-input.js +0 -463
- package/dist/collection/components/algolia/algolia-input.js.map +0 -1
- package/dist/components/nano-algolia-input.d.ts +0 -11
- package/dist/components/nano-algolia-input.js +0 -195
- package/dist/components/nano-algolia-input.js.map +0 -1
- package/dist/esm/nano-algolia-input.entry.js +0 -164
- package/dist/esm/nano-algolia-input.entry.js.map +0 -1
- package/dist/esm/popover-02e6714d.js.map +0 -1
- package/dist/esm/table.worker-822b1223.js.map +0 -1
- package/dist/esm/transitions-b4657201.js.map +0 -1
- package/dist/nano-components/p-02b727d3.entry.js +0 -5
- package/dist/nano-components/p-02b727d3.entry.js.map +0 -1
- package/dist/nano-components/p-24dcd788.entry.js.map +0 -1
- package/dist/nano-components/p-2db8bb0b.js +0 -5
- package/dist/nano-components/p-2db8bb0b.js.map +0 -1
- package/dist/nano-components/p-51bc8b59.js +0 -5
- package/dist/nano-components/p-51bc8b59.js.map +0 -1
- package/dist/nano-components/p-5e3f928c.entry.js +0 -5
- package/dist/nano-components/p-5e3f928c.entry.js.map +0 -1
- package/dist/nano-components/p-783de955.entry.js +0 -5
- package/dist/nano-components/p-783de955.entry.js.map +0 -1
- package/dist/nano-components/p-79c96564.entry.js +0 -5
- package/dist/nano-components/p-79c96564.entry.js.map +0 -1
- package/dist/nano-components/p-7dd30a3f.entry.js +0 -7
- package/dist/nano-components/p-7dd30a3f.entry.js.map +0 -1
- package/dist/types/components/algolia/algolia-input.d.ts +0 -103
- /package/dist/nano-components/{p-f57cea20.entry.js.map → p-0e4da739.entry.js.map} +0 -0
- /package/dist/nano-components/{p-7da12234.entry.js.map → p-1987f7a9.js.map} +0 -0
- /package/dist/nano-components/{p-f8dd8c20.entry.js.map → p-2a105609.entry.js.map} +0 -0
- /package/dist/nano-components/{p-2a7d0c13.entry.js.map → p-5fc3035d.entry.js.map} +0 -0
- /package/dist/nano-components/{p-78323d6e.js.map → p-dc4020f8.js.map} +0 -0
- /package/dist/nano-components/{p-f49f57ed.js.map → p-fbde7010.entry.js.map} +0 -0
@@ -70,7 +70,6 @@ export namespace Components {
|
|
70
70
|
}
|
71
71
|
/**
|
72
72
|
* Algolia search container to contain and sync nano-algolia-results and nano-algolia-filter components.
|
73
|
-
* Can optionally contain nano-algolia-input components or use them as a 'resultsEmitter'
|
74
73
|
*/
|
75
74
|
interface NanoAlgolia {
|
76
75
|
/**
|
@@ -90,7 +89,7 @@ export namespace Components {
|
|
90
89
|
*/
|
91
90
|
"filters": Array<string>;
|
92
91
|
/**
|
93
|
-
* JS
|
92
|
+
* JS querySelector string of a `nano-input` / `input` element from which to listen to `nano-change` or `change` events and change the `query` prop. Not required if an appropriate field is in the 'search-input' slot
|
94
93
|
*/
|
95
94
|
"listenTo"?: string;
|
96
95
|
/**
|
@@ -173,53 +172,6 @@ export namespace Components {
|
|
173
172
|
*/
|
174
173
|
"value": string | Array<string>;
|
175
174
|
}
|
176
|
-
/**
|
177
|
-
* @deprecated Component for querying Algolia Indeces.
|
178
|
-
* Can be nested within an algolia element or used outside as a 'resultsEmitter' (see algolia component documentation)
|
179
|
-
* Must include one 'nano-input' component
|
180
|
-
*/
|
181
|
-
interface NanoAlgoliaInput {
|
182
|
-
/**
|
183
|
-
* An Algolia API Key. Used in conjunction with 'searchIndex' & 'appId'. Alternatively this will be set automatically when nested within an algolia component
|
184
|
-
*/
|
185
|
-
"apiKey": string;
|
186
|
-
/**
|
187
|
-
* An Algolia App ID key. Used in conjunction with 'searchIndex' & 'apiKey'. Alternatively this will be set automatically when nested within an algolia component
|
188
|
-
*/
|
189
|
-
"appId": string;
|
190
|
-
/**
|
191
|
-
* Automatically emit results data to algolia components. For example, if you wanted to provide an 'autocomplete' style dropdown before showing the main results with a submit button
|
192
|
-
*/
|
193
|
-
"autoEmit": boolean;
|
194
|
-
/**
|
195
|
-
* Will maintain a search all / '*' on init and reset allowing for a view then filter experience rather than a search first experience
|
196
|
-
*/
|
197
|
-
"browseIndex": boolean;
|
198
|
-
/**
|
199
|
-
* Minimum number of characters before performing a search
|
200
|
-
*/
|
201
|
-
"minChars": number;
|
202
|
-
/**
|
203
|
-
* Manually emit search results to algolia components. Useful if you don't wish to search on input change / want to provide 'autocomplete' options or / and want to use a submit button
|
204
|
-
*/
|
205
|
-
"search": () => Promise<void>;
|
206
|
-
/**
|
207
|
-
* Algolia search index. Used in conjunction with 'searchIndex' & 'appId'. Alternatively this will be set automatically if you're using a 'resultsEmitter' element. ``` { index: string, // algolia index name domain?: string, // used in template filers to resolve incomplete url fields filters?: [string], // algolia facets to retrive hitsPerPage?: number, name?: string // human readable index name } ```
|
208
|
-
*/
|
209
|
-
"searchIndex": SearchIndex;
|
210
|
-
/**
|
211
|
-
* Algolia search index name. Alternative to 'searchIndex'. A simplified shortcut for setting an index. properties such as hitsPerPage and facets will come from the algolia index
|
212
|
-
*/
|
213
|
-
"searchIndexName": string;
|
214
|
-
/**
|
215
|
-
* Store search queries (against this ID) to the component store. Use in conjunction with storeMethod
|
216
|
-
*/
|
217
|
-
"storeId"?: string;
|
218
|
-
/**
|
219
|
-
* The method of storage. Either session storage, url hash (after the '#') or url query (after the '?').
|
220
|
-
*/
|
221
|
-
"storeMethod": StorageMethods;
|
222
|
-
}
|
223
175
|
/**
|
224
176
|
* Displays results from Algolia searches.
|
225
177
|
* TODO / WIP
|
@@ -2590,10 +2542,6 @@ export interface NanoAlgoliaFilterCustomEvent<T> extends CustomEvent<T> {
|
|
2590
2542
|
detail: T;
|
2591
2543
|
target: HTMLNanoAlgoliaFilterElement;
|
2592
2544
|
}
|
2593
|
-
export interface NanoAlgoliaInputCustomEvent<T> extends CustomEvent<T> {
|
2594
|
-
detail: T;
|
2595
|
-
target: HTMLNanoAlgoliaInputElement;
|
2596
|
-
}
|
2597
2545
|
export interface NanoAlgoliaPaginationCustomEvent<T> extends CustomEvent<T> {
|
2598
2546
|
detail: T;
|
2599
2547
|
target: HTMLNanoAlgoliaPaginationElement;
|
@@ -2747,7 +2695,6 @@ declare global {
|
|
2747
2695
|
};
|
2748
2696
|
/**
|
2749
2697
|
* Algolia search container to contain and sync nano-algolia-results and nano-algolia-filter components.
|
2750
|
-
* Can optionally contain nano-algolia-input components or use them as a 'resultsEmitter'
|
2751
2698
|
*/
|
2752
2699
|
interface HTMLNanoAlgoliaElement extends Components.NanoAlgolia, HTMLStencilElement {
|
2753
2700
|
}
|
@@ -2765,17 +2712,6 @@ declare global {
|
|
2765
2712
|
prototype: HTMLNanoAlgoliaFilterElement;
|
2766
2713
|
new (): HTMLNanoAlgoliaFilterElement;
|
2767
2714
|
};
|
2768
|
-
/**
|
2769
|
-
* @deprecated Component for querying Algolia Indeces.
|
2770
|
-
* Can be nested within an algolia element or used outside as a 'resultsEmitter' (see algolia component documentation)
|
2771
|
-
* Must include one 'nano-input' component
|
2772
|
-
*/
|
2773
|
-
interface HTMLNanoAlgoliaInputElement extends Components.NanoAlgoliaInput, HTMLStencilElement {
|
2774
|
-
}
|
2775
|
-
var HTMLNanoAlgoliaInputElement: {
|
2776
|
-
prototype: HTMLNanoAlgoliaInputElement;
|
2777
|
-
new (): HTMLNanoAlgoliaInputElement;
|
2778
|
-
};
|
2779
2715
|
/**
|
2780
2716
|
* Displays results from Algolia searches.
|
2781
2717
|
* TODO / WIP
|
@@ -3260,7 +3196,6 @@ declare global {
|
|
3260
3196
|
"nano-alert": HTMLNanoAlertElement;
|
3261
3197
|
"nano-algolia": HTMLNanoAlgoliaElement;
|
3262
3198
|
"nano-algolia-filter": HTMLNanoAlgoliaFilterElement;
|
3263
|
-
"nano-algolia-input": HTMLNanoAlgoliaInputElement;
|
3264
3199
|
"nano-algolia-pagination": HTMLNanoAlgoliaPaginationElement;
|
3265
3200
|
"nano-algolia-results": HTMLNanoAlgoliaResultsElement;
|
3266
3201
|
"nano-aspect-ratio": HTMLNanoAspectRatioElement;
|
@@ -3367,7 +3302,6 @@ declare namespace LocalJSX {
|
|
3367
3302
|
}
|
3368
3303
|
/**
|
3369
3304
|
* Algolia search container to contain and sync nano-algolia-results and nano-algolia-filter components.
|
3370
|
-
* Can optionally contain nano-algolia-input components or use them as a 'resultsEmitter'
|
3371
3305
|
*/
|
3372
3306
|
interface NanoAlgolia {
|
3373
3307
|
/**
|
@@ -3387,7 +3321,7 @@ declare namespace LocalJSX {
|
|
3387
3321
|
*/
|
3388
3322
|
"filters"?: Array<string>;
|
3389
3323
|
/**
|
3390
|
-
* JS
|
3324
|
+
* JS querySelector string of a `nano-input` / `input` element from which to listen to `nano-change` or `change` events and change the `query` prop. Not required if an appropriate field is in the 'search-input' slot
|
3391
3325
|
*/
|
3392
3326
|
"listenTo"?: string;
|
3393
3327
|
/**
|
@@ -3493,57 +3427,6 @@ declare namespace LocalJSX {
|
|
3493
3427
|
*/
|
3494
3428
|
"value"?: string | Array<string>;
|
3495
3429
|
}
|
3496
|
-
/**
|
3497
|
-
* @deprecated Component for querying Algolia Indeces.
|
3498
|
-
* Can be nested within an algolia element or used outside as a 'resultsEmitter' (see algolia component documentation)
|
3499
|
-
* Must include one 'nano-input' component
|
3500
|
-
*/
|
3501
|
-
interface NanoAlgoliaInput {
|
3502
|
-
/**
|
3503
|
-
* An Algolia API Key. Used in conjunction with 'searchIndex' & 'appId'. Alternatively this will be set automatically when nested within an algolia component
|
3504
|
-
*/
|
3505
|
-
"apiKey"?: string;
|
3506
|
-
/**
|
3507
|
-
* An Algolia App ID key. Used in conjunction with 'searchIndex' & 'apiKey'. Alternatively this will be set automatically when nested within an algolia component
|
3508
|
-
*/
|
3509
|
-
"appId"?: string;
|
3510
|
-
/**
|
3511
|
-
* Automatically emit results data to algolia components. For example, if you wanted to provide an 'autocomplete' style dropdown before showing the main results with a submit button
|
3512
|
-
*/
|
3513
|
-
"autoEmit"?: boolean;
|
3514
|
-
/**
|
3515
|
-
* Will maintain a search all / '*' on init and reset allowing for a view then filter experience rather than a search first experience
|
3516
|
-
*/
|
3517
|
-
"browseIndex"?: boolean;
|
3518
|
-
/**
|
3519
|
-
* Minimum number of characters before performing a search
|
3520
|
-
*/
|
3521
|
-
"minChars"?: number;
|
3522
|
-
/**
|
3523
|
-
* Emitted when search results are successfully returned from Algolia.
|
3524
|
-
*/
|
3525
|
-
"onNanoSearch"?: (event: NanoAlgoliaInputCustomEvent<AloliaSearchResultDetail>) => void;
|
3526
|
-
/**
|
3527
|
-
* Emitted when search field is cleared.
|
3528
|
-
*/
|
3529
|
-
"onNanoSearchReset"?: (event: NanoAlgoliaInputCustomEvent<AloliaSearchResultDetail>) => void;
|
3530
|
-
/**
|
3531
|
-
* Algolia search index. Used in conjunction with 'searchIndex' & 'appId'. Alternatively this will be set automatically if you're using a 'resultsEmitter' element. ``` { index: string, // algolia index name domain?: string, // used in template filers to resolve incomplete url fields filters?: [string], // algolia facets to retrive hitsPerPage?: number, name?: string // human readable index name } ```
|
3532
|
-
*/
|
3533
|
-
"searchIndex"?: SearchIndex;
|
3534
|
-
/**
|
3535
|
-
* Algolia search index name. Alternative to 'searchIndex'. A simplified shortcut for setting an index. properties such as hitsPerPage and facets will come from the algolia index
|
3536
|
-
*/
|
3537
|
-
"searchIndexName"?: string;
|
3538
|
-
/**
|
3539
|
-
* Store search queries (against this ID) to the component store. Use in conjunction with storeMethod
|
3540
|
-
*/
|
3541
|
-
"storeId"?: string;
|
3542
|
-
/**
|
3543
|
-
* The method of storage. Either session storage, url hash (after the '#') or url query (after the '?').
|
3544
|
-
*/
|
3545
|
-
"storeMethod"?: StorageMethods;
|
3546
|
-
}
|
3547
3430
|
/**
|
3548
3431
|
* Displays results from Algolia searches.
|
3549
3432
|
* TODO / WIP
|
@@ -6030,7 +5913,6 @@ declare namespace LocalJSX {
|
|
6030
5913
|
"nano-alert": NanoAlert;
|
6031
5914
|
"nano-algolia": NanoAlgolia;
|
6032
5915
|
"nano-algolia-filter": NanoAlgoliaFilter;
|
6033
|
-
"nano-algolia-input": NanoAlgoliaInput;
|
6034
5916
|
"nano-algolia-pagination": NanoAlgoliaPagination;
|
6035
5917
|
"nano-algolia-results": NanoAlgoliaResults;
|
6036
5918
|
"nano-aspect-ratio": NanoAspectRatio;
|
@@ -6094,7 +5976,6 @@ declare module "@stencil/core" {
|
|
6094
5976
|
"nano-alert": LocalJSX.NanoAlert & JSXBase.HTMLAttributes<HTMLNanoAlertElement>;
|
6095
5977
|
/**
|
6096
5978
|
* Algolia search container to contain and sync nano-algolia-results and nano-algolia-filter components.
|
6097
|
-
* Can optionally contain nano-algolia-input components or use them as a 'resultsEmitter'
|
6098
5979
|
*/
|
6099
5980
|
"nano-algolia": LocalJSX.NanoAlgolia & JSXBase.HTMLAttributes<HTMLNanoAlgoliaElement>;
|
6100
5981
|
/**
|
@@ -6102,12 +5983,6 @@ declare module "@stencil/core" {
|
|
6102
5983
|
* Must be nested within an nano-algolia component.
|
6103
5984
|
*/
|
6104
5985
|
"nano-algolia-filter": LocalJSX.NanoAlgoliaFilter & JSXBase.HTMLAttributes<HTMLNanoAlgoliaFilterElement>;
|
6105
|
-
/**
|
6106
|
-
* @deprecated Component for querying Algolia Indeces.
|
6107
|
-
* Can be nested within an algolia element or used outside as a 'resultsEmitter' (see algolia component documentation)
|
6108
|
-
* Must include one 'nano-input' component
|
6109
|
-
*/
|
6110
|
-
"nano-algolia-input": LocalJSX.NanoAlgoliaInput & JSXBase.HTMLAttributes<HTMLNanoAlgoliaInputElement>;
|
6111
5986
|
/**
|
6112
5987
|
* Displays results from Algolia searches.
|
6113
5988
|
* TODO / WIP
|
package/docs-json.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
{
|
2
|
-
"timestamp": "2023-11-
|
2
|
+
"timestamp": "2023-11-15T09:49:34",
|
3
3
|
"compiler": {
|
4
4
|
"name": "@stencil/core",
|
5
5
|
"version": "2.23.1",
|
@@ -440,11 +440,11 @@
|
|
440
440
|
"encapsulation": "shadow",
|
441
441
|
"tag": "nano-algolia",
|
442
442
|
"readme": "# nano-algolia-result\n\n\n",
|
443
|
-
"docs": "Algolia search container to contain and sync nano-algolia-results and nano-algolia-filter components
|
443
|
+
"docs": "Algolia search container to contain and sync nano-algolia-results and nano-algolia-filter components.",
|
444
444
|
"docsTags": [
|
445
445
|
{
|
446
446
|
"name": "slot",
|
447
|
-
"text": "search-input - optional. Should contain an
|
447
|
+
"text": "search-input - optional. Should contain an `input` or `nano-input` component."
|
448
448
|
},
|
449
449
|
{
|
450
450
|
"name": "slot",
|
@@ -540,7 +540,7 @@
|
|
540
540
|
"mutable": false,
|
541
541
|
"attr": "listen-to",
|
542
542
|
"reflectToAttr": false,
|
543
|
-
"docs": "JS
|
543
|
+
"docs": "JS querySelector string of a `nano-input` / `input` element from which\nto listen to `nano-change` or `change` events and change the `query` prop.\nNot required if an appropriate field is in the 'search-input' slot",
|
544
544
|
"docsTags": [],
|
545
545
|
"default": "null",
|
546
546
|
"values": [
|
@@ -914,7 +914,7 @@
|
|
914
914
|
},
|
915
915
|
{
|
916
916
|
"name": "search-input",
|
917
|
-
"docs": "optional. Should contain an
|
917
|
+
"docs": "optional. Should contain an `input` or `nano-input` component."
|
918
918
|
},
|
919
919
|
{
|
920
920
|
"name": "template",
|
@@ -1128,258 +1128,6 @@
|
|
1128
1128
|
"dependencies": [],
|
1129
1129
|
"dependencyGraph": {}
|
1130
1130
|
},
|
1131
|
-
{
|
1132
|
-
"filePath": "./src/components/algolia/algolia-input.tsx",
|
1133
|
-
"encapsulation": "shadow",
|
1134
|
-
"tag": "nano-algolia-input",
|
1135
|
-
"readme": "# nano-algolia-result\n\n\n",
|
1136
|
-
"docs": "",
|
1137
|
-
"docsTags": [
|
1138
|
-
{
|
1139
|
-
"name": "deprecated",
|
1140
|
-
"text": "Component for querying Algolia Indeces.\nCan be nested within an algolia element or used outside as a 'resultsEmitter' (see algolia component documentation)\nMust include one 'nano-input' component"
|
1141
|
-
}
|
1142
|
-
],
|
1143
|
-
"usage": {},
|
1144
|
-
"props": [
|
1145
|
-
{
|
1146
|
-
"name": "apiKey",
|
1147
|
-
"type": "string",
|
1148
|
-
"mutable": false,
|
1149
|
-
"attr": "api-key",
|
1150
|
-
"reflectToAttr": false,
|
1151
|
-
"docs": "An Algolia API Key. Used in conjunction with 'searchIndex' & 'appId'.\nAlternatively this will be set automatically when nested within an algolia component",
|
1152
|
-
"docsTags": [],
|
1153
|
-
"default": "''",
|
1154
|
-
"values": [
|
1155
|
-
{
|
1156
|
-
"type": "string"
|
1157
|
-
}
|
1158
|
-
],
|
1159
|
-
"optional": false,
|
1160
|
-
"required": false,
|
1161
|
-
"getter": false,
|
1162
|
-
"setter": false
|
1163
|
-
},
|
1164
|
-
{
|
1165
|
-
"name": "appId",
|
1166
|
-
"type": "string",
|
1167
|
-
"mutable": false,
|
1168
|
-
"attr": "app-id",
|
1169
|
-
"reflectToAttr": false,
|
1170
|
-
"docs": "An Algolia App ID key. Used in conjunction with 'searchIndex' & 'apiKey'.\nAlternatively this will be set automatically when nested within an algolia component",
|
1171
|
-
"docsTags": [],
|
1172
|
-
"default": "''",
|
1173
|
-
"values": [
|
1174
|
-
{
|
1175
|
-
"type": "string"
|
1176
|
-
}
|
1177
|
-
],
|
1178
|
-
"optional": false,
|
1179
|
-
"required": false,
|
1180
|
-
"getter": false,
|
1181
|
-
"setter": false
|
1182
|
-
},
|
1183
|
-
{
|
1184
|
-
"name": "autoEmit",
|
1185
|
-
"type": "boolean",
|
1186
|
-
"mutable": false,
|
1187
|
-
"attr": "auto-emit",
|
1188
|
-
"reflectToAttr": false,
|
1189
|
-
"docs": "Automatically emit results data to algolia components.\nFor example, if you wanted to provide an 'autocomplete' style dropdown\nbefore showing the main results with a submit button",
|
1190
|
-
"docsTags": [],
|
1191
|
-
"default": "true",
|
1192
|
-
"values": [
|
1193
|
-
{
|
1194
|
-
"type": "boolean"
|
1195
|
-
}
|
1196
|
-
],
|
1197
|
-
"optional": false,
|
1198
|
-
"required": false,
|
1199
|
-
"getter": false,
|
1200
|
-
"setter": false
|
1201
|
-
},
|
1202
|
-
{
|
1203
|
-
"name": "browseIndex",
|
1204
|
-
"type": "boolean",
|
1205
|
-
"mutable": true,
|
1206
|
-
"attr": "browse-index",
|
1207
|
-
"reflectToAttr": false,
|
1208
|
-
"docs": "Will maintain a search all / '*' on init and reset allowing for a view\nthen filter experience rather than a search first experience",
|
1209
|
-
"docsTags": [],
|
1210
|
-
"default": "false",
|
1211
|
-
"values": [
|
1212
|
-
{
|
1213
|
-
"type": "boolean"
|
1214
|
-
}
|
1215
|
-
],
|
1216
|
-
"optional": false,
|
1217
|
-
"required": false,
|
1218
|
-
"getter": false,
|
1219
|
-
"setter": false
|
1220
|
-
},
|
1221
|
-
{
|
1222
|
-
"name": "minChars",
|
1223
|
-
"type": "number",
|
1224
|
-
"mutable": false,
|
1225
|
-
"attr": "min-chars",
|
1226
|
-
"reflectToAttr": false,
|
1227
|
-
"docs": "Minimum number of characters before performing a search",
|
1228
|
-
"docsTags": [],
|
1229
|
-
"default": "2",
|
1230
|
-
"values": [
|
1231
|
-
{
|
1232
|
-
"type": "number"
|
1233
|
-
}
|
1234
|
-
],
|
1235
|
-
"optional": false,
|
1236
|
-
"required": false,
|
1237
|
-
"getter": false,
|
1238
|
-
"setter": false
|
1239
|
-
},
|
1240
|
-
{
|
1241
|
-
"name": "searchIndex",
|
1242
|
-
"type": "SearchIndex",
|
1243
|
-
"mutable": true,
|
1244
|
-
"reflectToAttr": false,
|
1245
|
-
"docs": "Algolia search index. Used in conjunction with 'searchIndex' & 'appId'.\nAlternatively this will be set automatically if you're using a 'resultsEmitter' element.\n```\n{ index: string, // algolia index name\n domain?: string, // used in template filers to resolve incomplete url fields\n filters?: [string], // algolia facets to retrive\n hitsPerPage?: number,\n name?: string // human readable index name\n}\n```",
|
1246
|
-
"docsTags": [],
|
1247
|
-
"default": "null",
|
1248
|
-
"values": [
|
1249
|
-
{
|
1250
|
-
"type": "SearchIndex"
|
1251
|
-
}
|
1252
|
-
],
|
1253
|
-
"optional": false,
|
1254
|
-
"required": false,
|
1255
|
-
"getter": false,
|
1256
|
-
"setter": false
|
1257
|
-
},
|
1258
|
-
{
|
1259
|
-
"name": "searchIndexName",
|
1260
|
-
"type": "string",
|
1261
|
-
"mutable": false,
|
1262
|
-
"attr": "search-index-name",
|
1263
|
-
"reflectToAttr": false,
|
1264
|
-
"docs": "Algolia search index name. Alternative to 'searchIndex'.\nA simplified shortcut for setting an index.\nproperties such as hitsPerPage and facets will come from the algolia index",
|
1265
|
-
"docsTags": [],
|
1266
|
-
"values": [
|
1267
|
-
{
|
1268
|
-
"type": "string"
|
1269
|
-
}
|
1270
|
-
],
|
1271
|
-
"optional": false,
|
1272
|
-
"required": false,
|
1273
|
-
"getter": false,
|
1274
|
-
"setter": false
|
1275
|
-
},
|
1276
|
-
{
|
1277
|
-
"name": "storeId",
|
1278
|
-
"type": "string",
|
1279
|
-
"mutable": false,
|
1280
|
-
"attr": "store-id",
|
1281
|
-
"reflectToAttr": false,
|
1282
|
-
"docs": "Store search queries (against this ID) to the component store.\nUse in conjunction with storeMethod",
|
1283
|
-
"docsTags": [],
|
1284
|
-
"values": [
|
1285
|
-
{
|
1286
|
-
"type": "string"
|
1287
|
-
}
|
1288
|
-
],
|
1289
|
-
"optional": true,
|
1290
|
-
"required": false,
|
1291
|
-
"getter": false,
|
1292
|
-
"setter": false
|
1293
|
-
},
|
1294
|
-
{
|
1295
|
-
"name": "storeMethod",
|
1296
|
-
"type": "\"local\" | \"session\" | \"url-hash\" | \"url-hash-push\" | \"url-query\" | \"url-query-push\"",
|
1297
|
-
"mutable": false,
|
1298
|
-
"attr": "store-method",
|
1299
|
-
"reflectToAttr": false,
|
1300
|
-
"docs": "The method of storage.\nEither session storage, url hash (after the '#') or url query (after the '?').",
|
1301
|
-
"docsTags": [],
|
1302
|
-
"default": "'session'",
|
1303
|
-
"values": [
|
1304
|
-
{
|
1305
|
-
"value": "local",
|
1306
|
-
"type": "string"
|
1307
|
-
},
|
1308
|
-
{
|
1309
|
-
"value": "session",
|
1310
|
-
"type": "string"
|
1311
|
-
},
|
1312
|
-
{
|
1313
|
-
"value": "url-hash",
|
1314
|
-
"type": "string"
|
1315
|
-
},
|
1316
|
-
{
|
1317
|
-
"value": "url-hash-push",
|
1318
|
-
"type": "string"
|
1319
|
-
},
|
1320
|
-
{
|
1321
|
-
"value": "url-query",
|
1322
|
-
"type": "string"
|
1323
|
-
},
|
1324
|
-
{
|
1325
|
-
"value": "url-query-push",
|
1326
|
-
"type": "string"
|
1327
|
-
}
|
1328
|
-
],
|
1329
|
-
"optional": false,
|
1330
|
-
"required": false,
|
1331
|
-
"getter": false,
|
1332
|
-
"setter": false
|
1333
|
-
}
|
1334
|
-
],
|
1335
|
-
"methods": [
|
1336
|
-
{
|
1337
|
-
"name": "search",
|
1338
|
-
"returns": {
|
1339
|
-
"type": "Promise<void>",
|
1340
|
-
"docs": ""
|
1341
|
-
},
|
1342
|
-
"signature": "search() => Promise<void>",
|
1343
|
-
"parameters": [],
|
1344
|
-
"docs": "Manually emit search results to algolia components.\nUseful if you don't wish to search on input change / want to provide 'autocomplete' options\nor / and want to use a submit button",
|
1345
|
-
"docsTags": []
|
1346
|
-
}
|
1347
|
-
],
|
1348
|
-
"events": [
|
1349
|
-
{
|
1350
|
-
"event": "nanoSearch",
|
1351
|
-
"detail": "AloliaSearchResultDetail",
|
1352
|
-
"bubbles": true,
|
1353
|
-
"cancelable": true,
|
1354
|
-
"composed": true,
|
1355
|
-
"docs": "Emitted when search results are successfully returned from Algolia.",
|
1356
|
-
"docsTags": []
|
1357
|
-
},
|
1358
|
-
{
|
1359
|
-
"event": "nanoSearchReset",
|
1360
|
-
"detail": "AloliaSearchResultDetail",
|
1361
|
-
"bubbles": true,
|
1362
|
-
"cancelable": true,
|
1363
|
-
"composed": true,
|
1364
|
-
"docs": "Emitted when search field is cleared.",
|
1365
|
-
"docsTags": []
|
1366
|
-
}
|
1367
|
-
],
|
1368
|
-
"listeners": [
|
1369
|
-
{
|
1370
|
-
"event": "nanoChange",
|
1371
|
-
"capture": false,
|
1372
|
-
"passive": false
|
1373
|
-
}
|
1374
|
-
],
|
1375
|
-
"styles": [],
|
1376
|
-
"slots": [],
|
1377
|
-
"parts": [],
|
1378
|
-
"dependents": [],
|
1379
|
-
"dependencies": [],
|
1380
|
-
"dependencyGraph": {},
|
1381
|
-
"deprecation": "Component for querying Algolia Indeces.\nCan be nested within an algolia element or used outside as a 'resultsEmitter' (see algolia component documentation)\nMust include one 'nano-input' component"
|
1382
|
-
},
|
1383
1131
|
{
|
1384
1132
|
"filePath": "./src/components/algolia/algolia-pagination.tsx",
|
1385
1133
|
"encapsulation": "shadow",
|
package/docs-vscode.json
CHANGED
@@ -105,7 +105,7 @@
|
|
105
105
|
"name": "nano-algolia",
|
106
106
|
"description": {
|
107
107
|
"kind": "markdown",
|
108
|
-
"value": "Algolia search container to contain and sync nano-algolia-results and nano-algolia-filter components
|
108
|
+
"value": "Algolia search container to contain and sync nano-algolia-results and nano-algolia-filter components."
|
109
109
|
},
|
110
110
|
"attributes": [
|
111
111
|
{
|
@@ -122,7 +122,7 @@
|
|
122
122
|
},
|
123
123
|
{
|
124
124
|
"name": "listen-to",
|
125
|
-
"description": "JS
|
125
|
+
"description": "JS querySelector string of a `nano-input` / `input` element from which\nto listen to `nano-change` or `change` events and change the `query` prop.\nNot required if an appropriate field is in the 'search-input' slot"
|
126
126
|
},
|
127
127
|
{
|
128
128
|
"name": "min-chars",
|
@@ -247,67 +247,6 @@
|
|
247
247
|
}
|
248
248
|
]
|
249
249
|
},
|
250
|
-
{
|
251
|
-
"name": "nano-algolia-input",
|
252
|
-
"description": {
|
253
|
-
"kind": "markdown",
|
254
|
-
"value": ""
|
255
|
-
},
|
256
|
-
"attributes": [
|
257
|
-
{
|
258
|
-
"name": "api-key",
|
259
|
-
"description": "An Algolia API Key. Used in conjunction with 'searchIndex' & 'appId'.\nAlternatively this will be set automatically when nested within an algolia component"
|
260
|
-
},
|
261
|
-
{
|
262
|
-
"name": "app-id",
|
263
|
-
"description": "An Algolia App ID key. Used in conjunction with 'searchIndex' & 'apiKey'.\nAlternatively this will be set automatically when nested within an algolia component"
|
264
|
-
},
|
265
|
-
{
|
266
|
-
"name": "auto-emit",
|
267
|
-
"description": "Automatically emit results data to algolia components.\nFor example, if you wanted to provide an 'autocomplete' style dropdown\nbefore showing the main results with a submit button"
|
268
|
-
},
|
269
|
-
{
|
270
|
-
"name": "browse-index",
|
271
|
-
"description": "Will maintain a search all / '*' on init and reset allowing for a view\nthen filter experience rather than a search first experience"
|
272
|
-
},
|
273
|
-
{
|
274
|
-
"name": "min-chars",
|
275
|
-
"description": "Minimum number of characters before performing a search"
|
276
|
-
},
|
277
|
-
{
|
278
|
-
"name": "search-index-name",
|
279
|
-
"description": "Algolia search index name. Alternative to 'searchIndex'.\nA simplified shortcut for setting an index.\nproperties such as hitsPerPage and facets will come from the algolia index"
|
280
|
-
},
|
281
|
-
{
|
282
|
-
"name": "store-id",
|
283
|
-
"description": "Store search queries (against this ID) to the component store.\nUse in conjunction with storeMethod"
|
284
|
-
},
|
285
|
-
{
|
286
|
-
"name": "store-method",
|
287
|
-
"description": "The method of storage.\nEither session storage, url hash (after the '#') or url query (after the '?').",
|
288
|
-
"values": [
|
289
|
-
{
|
290
|
-
"name": "local"
|
291
|
-
},
|
292
|
-
{
|
293
|
-
"name": "session"
|
294
|
-
},
|
295
|
-
{
|
296
|
-
"name": "url-hash"
|
297
|
-
},
|
298
|
-
{
|
299
|
-
"name": "url-hash-push"
|
300
|
-
},
|
301
|
-
{
|
302
|
-
"name": "url-query"
|
303
|
-
},
|
304
|
-
{
|
305
|
-
"name": "url-query-push"
|
306
|
-
}
|
307
|
-
]
|
308
|
-
}
|
309
|
-
]
|
310
|
-
},
|
311
250
|
{
|
312
251
|
"name": "nano-algolia-pagination",
|
313
252
|
"description": {
|