@nanoporetech-digital/components 2.1.3 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +31 -0
- package/README.md +1 -1
- package/dist/cjs/index-cb62df44.js +5 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/nano-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-components.cjs.js +1 -1
- package/dist/cjs/nano-datalist_3.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-date-input.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-details.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-file-upload.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-global-nav.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-global-search-results.cjs.entry.js +36 -26
- package/dist/cjs/nano-global-search-results.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-hero.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-icon-button.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-menu-drawer.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-rating.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-split-pane.cjs.entry.js +278 -0
- package/dist/cjs/nano-split-pane.cjs.entry.js.map +1 -0
- package/dist/cjs/nano-tab-group.cjs.entry.js +1 -0
- package/dist/cjs/nano-tab-group.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-tab.cjs.entry.js +1 -1
- package/dist/cjs/nano-tab.cjs.entry.js.map +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/accordion/accordion.js +1 -1
- package/dist/collection/components/alert/alert.js +1 -1
- package/dist/collection/components/algolia/algolia-filter.js +2 -2
- package/dist/collection/components/algolia/algolia-input.js +5 -5
- package/dist/collection/components/algolia/algolia-results.js +1 -1
- package/dist/collection/components/algolia/algolia.js +6 -6
- package/dist/collection/components/checkbox/checkbox-group.js +2 -2
- package/dist/collection/components/checkbox/checkbox.js +3 -3
- package/dist/collection/components/datalist/datalist.css +1 -1
- package/dist/collection/components/datalist/datalist.js +1 -1
- package/dist/collection/components/date-input/date-input.js +7 -7
- package/dist/collection/components/date-picker/date-picker.js +5 -5
- package/dist/collection/components/details/details.js +1 -1
- package/dist/collection/components/dialog/dialog.js +1 -1
- package/dist/collection/components/file-upload/file-upload.js +4 -4
- package/dist/collection/components/global-nav/global-nav.js +4 -4
- package/dist/collection/components/global-search-results/global-search-results.css +21 -0
- package/dist/collection/components/global-search-results/global-search-results.js +35 -25
- package/dist/collection/components/global-search-results/global-search-results.js.map +1 -1
- package/dist/collection/components/grid/grid-item.js +1 -1
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/input/input.js +5 -5
- package/dist/collection/components/nav-item/nav-item.js +4 -4
- package/dist/collection/components/range/range.js +4 -4
- package/dist/collection/components/resize-observe/resize-observe.js +1 -1
- package/dist/collection/components/select/select.js +7 -7
- package/dist/collection/components/slides/slides.js +7 -7
- package/dist/collection/components/split-pane/split-pane.css +104 -0
- package/dist/collection/components/split-pane/split-pane.js +464 -0
- package/dist/collection/components/split-pane/split-pane.js.map +1 -0
- package/dist/collection/components/tabs/tab-group.js +3 -2
- package/dist/collection/components/tabs/tab-group.js.map +1 -1
- package/dist/collection/components/tabs/tab.js +1 -1
- package/dist/collection/components/tabs/tab.js.map +1 -1
- package/dist/collection/utils/drag.js +21 -0
- package/dist/collection/utils/drag.js.map +1 -0
- package/dist/components/datalist.js.map +1 -1
- package/dist/components/icon-button.js.map +1 -1
- package/dist/components/menu.js.map +1 -1
- package/dist/components/nano-alert.js.map +1 -1
- package/dist/components/nano-checkbox.js.map +1 -1
- package/dist/components/nano-date-input.js.map +1 -1
- package/dist/components/nano-details.js.map +1 -1
- package/dist/components/nano-dialog.js.map +1 -1
- package/dist/components/nano-file-upload.js.map +1 -1
- package/dist/components/nano-global-nav.js.map +1 -1
- package/dist/components/nano-global-search-results.js +36 -26
- package/dist/components/nano-global-search-results.js.map +1 -1
- package/dist/components/nano-hero.js.map +1 -1
- package/dist/components/nano-menu-drawer.js.map +1 -1
- package/dist/components/nano-rating.js.map +1 -1
- package/dist/components/nano-split-pane.d.ts +11 -0
- package/dist/components/nano-split-pane.js +308 -0
- package/dist/components/nano-split-pane.js.map +1 -0
- package/dist/components/nano-tab-group.js +1 -0
- package/dist/components/nano-tab-group.js.map +1 -1
- package/dist/components/nano-tab.js +1 -1
- package/dist/components/nano-tab.js.map +1 -1
- package/dist/components/option.js.map +1 -1
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +310 -31
- package/dist/custom-elements/index.js.map +1 -1
- package/dist/esm/index-5f8d16e7.js +5 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/nano-alert.entry.js.map +1 -1
- package/dist/esm/nano-checkbox.entry.js.map +1 -1
- package/dist/esm/nano-components.js +1 -1
- package/dist/esm/nano-datalist_3.entry.js.map +1 -1
- package/dist/esm/nano-date-input.entry.js.map +1 -1
- package/dist/esm/nano-details.entry.js.map +1 -1
- package/dist/esm/nano-dialog.entry.js.map +1 -1
- package/dist/esm/nano-file-upload.entry.js.map +1 -1
- package/dist/esm/nano-global-nav.entry.js.map +1 -1
- package/dist/esm/nano-global-search-results.entry.js +36 -26
- package/dist/esm/nano-global-search-results.entry.js.map +1 -1
- package/dist/esm/nano-hero.entry.js.map +1 -1
- package/dist/esm/nano-icon-button.entry.js.map +1 -1
- package/dist/esm/nano-menu-drawer.entry.js.map +1 -1
- package/dist/esm/nano-rating.entry.js.map +1 -1
- package/dist/esm/nano-split-pane.entry.js +274 -0
- package/dist/esm/nano-split-pane.entry.js.map +1 -0
- package/dist/esm/nano-tab-group.entry.js +1 -0
- package/dist/esm/nano-tab-group.entry.js.map +1 -1
- package/dist/esm/nano-tab.entry.js +1 -1
- package/dist/esm/nano-tab.entry.js.map +1 -1
- package/dist/esm-es5/index-5f8d16e7.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/loader.js.map +1 -1
- package/dist/esm-es5/nano-alert.entry.js.map +1 -1
- package/dist/esm-es5/nano-checkbox.entry.js.map +1 -1
- package/dist/esm-es5/nano-components.js +1 -1
- package/dist/esm-es5/nano-components.js.map +1 -1
- package/dist/esm-es5/nano-datalist_3.entry.js.map +1 -1
- package/dist/esm-es5/nano-date-input.entry.js.map +1 -1
- package/dist/esm-es5/nano-details.entry.js.map +1 -1
- package/dist/esm-es5/nano-dialog.entry.js.map +1 -1
- package/dist/esm-es5/nano-file-upload.entry.js.map +1 -1
- package/dist/esm-es5/nano-global-nav.entry.js.map +1 -1
- package/dist/esm-es5/nano-global-search-results.entry.js +1 -1
- package/dist/esm-es5/nano-global-search-results.entry.js.map +1 -1
- package/dist/esm-es5/nano-hero.entry.js.map +1 -1
- package/dist/esm-es5/nano-icon-button.entry.js.map +1 -1
- package/dist/esm-es5/nano-menu-drawer.entry.js.map +1 -1
- package/dist/esm-es5/nano-rating.entry.js.map +1 -1
- package/dist/esm-es5/nano-split-pane.entry.js +5 -0
- package/dist/esm-es5/nano-split-pane.entry.js.map +1 -0
- package/dist/esm-es5/nano-tab-group.entry.js +1 -1
- package/dist/esm-es5/nano-tab-group.entry.js.map +1 -1
- package/dist/esm-es5/nano-tab.entry.js +2 -2
- package/dist/esm-es5/nano-tab.entry.js.map +1 -1
- 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-e35eac75.entry.js → p-08b43111.entry.js} +2 -2
- package/dist/nano-components/p-08b43111.entry.js.map +1 -0
- package/dist/nano-components/p-090f22a9.system.entry.js.map +1 -1
- package/dist/nano-components/p-096682d9.system.js +1 -1
- package/dist/nano-components/p-096682d9.system.js.map +1 -1
- package/dist/nano-components/{p-e6f8f9f7.system.entry.js → p-1238f0fc.system.entry.js} +2 -2
- package/dist/nano-components/p-1238f0fc.system.entry.js.map +1 -0
- package/dist/nano-components/p-1e974cad.entry.js.map +1 -1
- package/dist/nano-components/p-1ec44caf.entry.js.map +1 -1
- package/dist/nano-components/p-1f99d776.entry.js +5 -0
- package/dist/nano-components/p-1f99d776.entry.js.map +1 -0
- package/dist/nano-components/p-20db18f3.entry.js.map +1 -1
- package/dist/nano-components/p-3456db01.entry.js.map +1 -1
- package/dist/nano-components/p-3ad1d5aa.system.entry.js.map +1 -1
- package/dist/nano-components/{p-3cf35ac4.system.entry.js → p-3f736fa2.system.entry.js} +2 -2
- package/dist/nano-components/p-3f736fa2.system.entry.js.map +1 -0
- package/dist/nano-components/p-4429caac.system.entry.js.map +1 -1
- package/dist/nano-components/p-531d5275.system.entry.js.map +1 -1
- package/dist/nano-components/p-56ba0d63.entry.js.map +1 -1
- package/dist/nano-components/p-58419bed.system.entry.js.map +1 -1
- package/dist/nano-components/p-5a476bba.system.entry.js.map +1 -1
- package/dist/nano-components/p-6afdb510.system.entry.js +5 -0
- package/dist/nano-components/p-6afdb510.system.entry.js.map +1 -0
- package/dist/nano-components/p-71c26ace.entry.js.map +1 -1
- package/dist/nano-components/p-730f60ea.entry.js.map +1 -1
- package/dist/nano-components/p-7d2e2685.entry.js.map +1 -1
- package/dist/nano-components/p-8a8f893b.system.entry.js.map +1 -1
- package/dist/nano-components/p-93448bcd.system.entry.js.map +1 -1
- package/dist/nano-components/p-94593617.system.entry.js.map +1 -1
- package/dist/nano-components/p-9ca5e023.system.entry.js +5 -0
- package/dist/nano-components/p-9ca5e023.system.entry.js.map +1 -0
- package/dist/nano-components/{p-bbe6b7af.entry.js → p-ad0715d1.entry.js} +2 -2
- package/dist/nano-components/p-ad0715d1.entry.js.map +1 -0
- package/dist/nano-components/p-b59d2bd5.entry.js.map +1 -1
- package/dist/nano-components/p-c0ddb4c3.entry.js.map +1 -1
- package/dist/nano-components/p-d6569144.entry.js.map +1 -1
- package/dist/nano-components/p-d9f2dda5.entry.js +5 -0
- package/dist/nano-components/p-d9f2dda5.entry.js.map +1 -0
- package/dist/nano-components/p-e11bd40d.entry.js.map +1 -1
- package/dist/nano-components/p-e15be516.system.entry.js.map +1 -1
- package/dist/nano-components/p-ef4e0912.system.entry.js.map +1 -1
- package/dist/nano-components/p-f2e7d2f9.system.entry.js.map +1 -1
- package/dist/themes/london-calling.css +1 -1
- package/dist/themes/london-calling.css.map +1 -1
- package/dist/themes/nanopore.css +1 -1
- package/dist/themes/nanopore.css.map +1 -1
- package/dist/types/components/split-pane/split-pane.d.ts +74 -0
- package/dist/types/components.d.ts +85 -0
- package/dist/types/utils/drag.d.ts +1 -0
- package/docs-json.json +294 -2
- package/docs-vscode.json +49 -0
- package/package.json +8 -6
- package/dist/nano-components/p-05844b46.system.entry.js +0 -5
- package/dist/nano-components/p-05844b46.system.entry.js.map +0 -1
- package/dist/nano-components/p-3cf35ac4.system.entry.js.map +0 -1
- package/dist/nano-components/p-bbe6b7af.entry.js.map +0 -1
- package/dist/nano-components/p-e35eac75.entry.js.map +0 -1
- package/dist/nano-components/p-e6f8f9f7.system.entry.js.map +0 -1
- package/dist/nano-components/p-fea32549.entry.js +0 -5
- package/dist/nano-components/p-fea32549.entry.js.map +0 -1
@@ -1684,6 +1684,40 @@ export namespace Components {
|
|
1684
1684
|
*/
|
1685
1685
|
"type": 'dna' | 'circle';
|
1686
1686
|
}
|
1687
|
+
interface NanoSplitPane {
|
1688
|
+
/**
|
1689
|
+
* When changing `position` via property, the pane will animate into position. Make `animationDuration` 0 to disable.
|
1690
|
+
*/
|
1691
|
+
"animationDuration": number;
|
1692
|
+
/**
|
1693
|
+
* Disables resizing. Note that the position may still change as a result of resizing the host element.
|
1694
|
+
*/
|
1695
|
+
"disabled": boolean;
|
1696
|
+
/**
|
1697
|
+
* The current position of the divider from the primary panel's edge as a percentage 0-100. Defaults to 50% of the container's initial size.
|
1698
|
+
*/
|
1699
|
+
"position": number;
|
1700
|
+
/**
|
1701
|
+
* The current position of the divider from the primary panel's edge in pixels.
|
1702
|
+
*/
|
1703
|
+
"positionInPixels": number;
|
1704
|
+
/**
|
1705
|
+
* If no primary panel is designated, both panels will resize proportionally when the host element is resized. If a primary panel is designated, it will maintain its size and the other panel will grow or shrink as needed when the host element is resized.
|
1706
|
+
*/
|
1707
|
+
"primary"?: 'start' | 'end';
|
1708
|
+
/**
|
1709
|
+
* One or more space-separated values at which the divider should snap. Values can be in pixels or percentages, e.g. `"100px 50%"`.
|
1710
|
+
*/
|
1711
|
+
"snap"?: string;
|
1712
|
+
/**
|
1713
|
+
* How close the divider must be to a snap point until snapping occurs.
|
1714
|
+
*/
|
1715
|
+
"snapThreshold": number;
|
1716
|
+
/**
|
1717
|
+
* Draws the split panel in a vertical orientation with the start and end panels stacked.
|
1718
|
+
*/
|
1719
|
+
"vertical": boolean;
|
1720
|
+
}
|
1687
1721
|
interface NanoSticker {
|
1688
1722
|
/**
|
1689
1723
|
* Only applicable to root stickers. When applied the sticker will grow or shrink to the scrollParent size
|
@@ -2090,6 +2124,12 @@ declare global {
|
|
2090
2124
|
prototype: HTMLNanoSpinnerElement;
|
2091
2125
|
new (): HTMLNanoSpinnerElement;
|
2092
2126
|
};
|
2127
|
+
interface HTMLNanoSplitPaneElement extends Components.NanoSplitPane, HTMLStencilElement {
|
2128
|
+
}
|
2129
|
+
var HTMLNanoSplitPaneElement: {
|
2130
|
+
prototype: HTMLNanoSplitPaneElement;
|
2131
|
+
new (): HTMLNanoSplitPaneElement;
|
2132
|
+
};
|
2093
2133
|
interface HTMLNanoStickerElement extends Components.NanoSticker, HTMLStencilElement {
|
2094
2134
|
}
|
2095
2135
|
var HTMLNanoStickerElement: {
|
@@ -2160,6 +2200,7 @@ declare global {
|
|
2160
2200
|
"nano-slide": HTMLNanoSlideElement;
|
2161
2201
|
"nano-slides": HTMLNanoSlidesElement;
|
2162
2202
|
"nano-spinner": HTMLNanoSpinnerElement;
|
2203
|
+
"nano-split-pane": HTMLNanoSplitPaneElement;
|
2163
2204
|
"nano-sticker": HTMLNanoStickerElement;
|
2164
2205
|
"nano-tab": HTMLNanoTabElement;
|
2165
2206
|
"nano-tab-content": HTMLNanoTabContentElement;
|
@@ -3951,6 +3992,48 @@ declare namespace LocalJSX {
|
|
3951
3992
|
*/
|
3952
3993
|
"type"?: 'dna' | 'circle';
|
3953
3994
|
}
|
3995
|
+
interface NanoSplitPane {
|
3996
|
+
/**
|
3997
|
+
* When changing `position` via property, the pane will animate into position. Make `animationDuration` 0 to disable.
|
3998
|
+
*/
|
3999
|
+
"animationDuration"?: number;
|
4000
|
+
/**
|
4001
|
+
* Disables resizing. Note that the position may still change as a result of resizing the host element.
|
4002
|
+
*/
|
4003
|
+
"disabled"?: boolean;
|
4004
|
+
/**
|
4005
|
+
* Emitted when the divider is being dragged.
|
4006
|
+
*/
|
4007
|
+
"onNanoDragging"?: (event: CustomEvent<number>) => void;
|
4008
|
+
/**
|
4009
|
+
* Emitted when the divider's position changes.
|
4010
|
+
*/
|
4011
|
+
"onNanoReposition"?: (event: CustomEvent<any>) => void;
|
4012
|
+
/**
|
4013
|
+
* The current position of the divider from the primary panel's edge as a percentage 0-100. Defaults to 50% of the container's initial size.
|
4014
|
+
*/
|
4015
|
+
"position"?: number;
|
4016
|
+
/**
|
4017
|
+
* The current position of the divider from the primary panel's edge in pixels.
|
4018
|
+
*/
|
4019
|
+
"positionInPixels"?: number;
|
4020
|
+
/**
|
4021
|
+
* If no primary panel is designated, both panels will resize proportionally when the host element is resized. If a primary panel is designated, it will maintain its size and the other panel will grow or shrink as needed when the host element is resized.
|
4022
|
+
*/
|
4023
|
+
"primary"?: 'start' | 'end';
|
4024
|
+
/**
|
4025
|
+
* One or more space-separated values at which the divider should snap. Values can be in pixels or percentages, e.g. `"100px 50%"`.
|
4026
|
+
*/
|
4027
|
+
"snap"?: string;
|
4028
|
+
/**
|
4029
|
+
* How close the divider must be to a snap point until snapping occurs.
|
4030
|
+
*/
|
4031
|
+
"snapThreshold"?: number;
|
4032
|
+
/**
|
4033
|
+
* Draws the split panel in a vertical orientation with the start and end panels stacked.
|
4034
|
+
*/
|
4035
|
+
"vertical"?: boolean;
|
4036
|
+
}
|
3954
4037
|
interface NanoSticker {
|
3955
4038
|
/**
|
3956
4039
|
* Only applicable to root stickers. When applied the sticker will grow or shrink to the scrollParent size
|
@@ -4180,6 +4263,7 @@ declare namespace LocalJSX {
|
|
4180
4263
|
"nano-slide": NanoSlide;
|
4181
4264
|
"nano-slides": NanoSlides;
|
4182
4265
|
"nano-spinner": NanoSpinner;
|
4266
|
+
"nano-split-pane": NanoSplitPane;
|
4183
4267
|
"nano-sticker": NanoSticker;
|
4184
4268
|
"nano-tab": NanoTab;
|
4185
4269
|
"nano-tab-content": NanoTabContent;
|
@@ -4230,6 +4314,7 @@ declare module "@stencil/core" {
|
|
4230
4314
|
"nano-slide": LocalJSX.NanoSlide & JSXBase.HTMLAttributes<HTMLNanoSlideElement>;
|
4231
4315
|
"nano-slides": LocalJSX.NanoSlides & JSXBase.HTMLAttributes<HTMLNanoSlidesElement>;
|
4232
4316
|
"nano-spinner": LocalJSX.NanoSpinner & JSXBase.HTMLAttributes<HTMLNanoSpinnerElement>;
|
4317
|
+
"nano-split-pane": LocalJSX.NanoSplitPane & JSXBase.HTMLAttributes<HTMLNanoSplitPaneElement>;
|
4233
4318
|
"nano-sticker": LocalJSX.NanoSticker & JSXBase.HTMLAttributes<HTMLNanoStickerElement>;
|
4234
4319
|
"nano-tab": LocalJSX.NanoTab & JSXBase.HTMLAttributes<HTMLNanoTabElement>;
|
4235
4320
|
"nano-tab-content": LocalJSX.NanoTabContent & JSXBase.HTMLAttributes<HTMLNanoTabContentElement>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function drag(container: HTMLElement, onMove: (x: number, y: number) => void): void;
|
package/docs-json.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
{
|
2
|
-
"timestamp": "2022-
|
2
|
+
"timestamp": "2022-05-06T16:49:44",
|
3
3
|
"compiler": {
|
4
4
|
"name": "@stencil/core",
|
5
5
|
"version": "2.12.2",
|
@@ -2648,7 +2648,7 @@
|
|
2648
2648
|
{
|
2649
2649
|
"name": "--color",
|
2650
2650
|
"annotation": "prop",
|
2651
|
-
"docs": "default text color of content other than `nano-option`. Defaults to
|
2651
|
+
"docs": "default text color of content other than `nano-option`. Defaults to #b5aea7;"
|
2652
2652
|
},
|
2653
2653
|
{
|
2654
2654
|
"name": "--font-size",
|
@@ -7213,6 +7213,7 @@
|
|
7213
7213
|
"nano-menu-drawer",
|
7214
7214
|
"nano-option",
|
7215
7215
|
"nano-select",
|
7216
|
+
"nano-split-pane",
|
7216
7217
|
"nano-tab-group"
|
7217
7218
|
],
|
7218
7219
|
"dependencies": [],
|
@@ -7244,6 +7245,9 @@
|
|
7244
7245
|
"nano-select": [
|
7245
7246
|
"nano-icon"
|
7246
7247
|
],
|
7248
|
+
"nano-split-pane": [
|
7249
|
+
"nano-icon"
|
7250
|
+
],
|
7247
7251
|
"nano-tab-group": [
|
7248
7252
|
"nano-icon"
|
7249
7253
|
]
|
@@ -12234,6 +12238,294 @@
|
|
12234
12238
|
]
|
12235
12239
|
}
|
12236
12240
|
},
|
12241
|
+
{
|
12242
|
+
"filePath": "./src/components/split-pane/split-pane.tsx",
|
12243
|
+
"encapsulation": "shadow",
|
12244
|
+
"tag": "nano-split-pane",
|
12245
|
+
"readme": "# nano-split-pane\n\n\n",
|
12246
|
+
"docs": "Split panes display two adjacent panels, allowing the user to reposition them.",
|
12247
|
+
"docsTags": [
|
12248
|
+
{
|
12249
|
+
"name": "part",
|
12250
|
+
"text": "start - The start panel."
|
12251
|
+
},
|
12252
|
+
{
|
12253
|
+
"name": "part",
|
12254
|
+
"text": "end - The end panel."
|
12255
|
+
},
|
12256
|
+
{
|
12257
|
+
"name": "part",
|
12258
|
+
"text": "panel - Targets both the start and end panels."
|
12259
|
+
},
|
12260
|
+
{
|
12261
|
+
"name": "part",
|
12262
|
+
"text": "divider - The divider that separates the start and end panels."
|
12263
|
+
},
|
12264
|
+
{
|
12265
|
+
"name": "slot",
|
12266
|
+
"text": "start - The start panel."
|
12267
|
+
},
|
12268
|
+
{
|
12269
|
+
"name": "slot",
|
12270
|
+
"text": "end - The end panel."
|
12271
|
+
},
|
12272
|
+
{
|
12273
|
+
"name": "slot",
|
12274
|
+
"text": "handle - An optional handle to render at the center of the divider."
|
12275
|
+
}
|
12276
|
+
],
|
12277
|
+
"usage": {},
|
12278
|
+
"props": [
|
12279
|
+
{
|
12280
|
+
"name": "animationDuration",
|
12281
|
+
"type": "number",
|
12282
|
+
"mutable": false,
|
12283
|
+
"attr": "animation-duration",
|
12284
|
+
"reflectToAttr": false,
|
12285
|
+
"docs": "When changing `position` via property, the pane will animate into position. Make `animationDuration` 0 to disable.",
|
12286
|
+
"docsTags": [],
|
12287
|
+
"default": "0.6",
|
12288
|
+
"values": [
|
12289
|
+
{
|
12290
|
+
"type": "number"
|
12291
|
+
}
|
12292
|
+
],
|
12293
|
+
"optional": false,
|
12294
|
+
"required": false,
|
12295
|
+
"getter": false,
|
12296
|
+
"setter": false
|
12297
|
+
},
|
12298
|
+
{
|
12299
|
+
"name": "disabled",
|
12300
|
+
"type": "boolean",
|
12301
|
+
"mutable": false,
|
12302
|
+
"attr": "disabled",
|
12303
|
+
"reflectToAttr": true,
|
12304
|
+
"docs": "Disables resizing. Note that the position may still change as a result of resizing the host element.",
|
12305
|
+
"docsTags": [],
|
12306
|
+
"default": "false",
|
12307
|
+
"values": [
|
12308
|
+
{
|
12309
|
+
"type": "boolean"
|
12310
|
+
}
|
12311
|
+
],
|
12312
|
+
"optional": false,
|
12313
|
+
"required": false,
|
12314
|
+
"getter": false,
|
12315
|
+
"setter": false
|
12316
|
+
},
|
12317
|
+
{
|
12318
|
+
"name": "position",
|
12319
|
+
"type": "number",
|
12320
|
+
"mutable": false,
|
12321
|
+
"attr": "position",
|
12322
|
+
"reflectToAttr": false,
|
12323
|
+
"docs": "The current position of the divider from the primary panel's edge as a percentage 0-100. Defaults to 50% of the\ncontainer's initial size.",
|
12324
|
+
"docsTags": [],
|
12325
|
+
"values": [
|
12326
|
+
{
|
12327
|
+
"type": "number"
|
12328
|
+
}
|
12329
|
+
],
|
12330
|
+
"optional": false,
|
12331
|
+
"required": false,
|
12332
|
+
"getter": true,
|
12333
|
+
"setter": true
|
12334
|
+
},
|
12335
|
+
{
|
12336
|
+
"name": "positionInPixels",
|
12337
|
+
"type": "number",
|
12338
|
+
"mutable": true,
|
12339
|
+
"attr": "position-in-pixels",
|
12340
|
+
"reflectToAttr": false,
|
12341
|
+
"docs": "The current position of the divider from the primary panel's edge in pixels.",
|
12342
|
+
"docsTags": [],
|
12343
|
+
"values": [
|
12344
|
+
{
|
12345
|
+
"type": "number"
|
12346
|
+
}
|
12347
|
+
],
|
12348
|
+
"optional": false,
|
12349
|
+
"required": false,
|
12350
|
+
"getter": false,
|
12351
|
+
"setter": false
|
12352
|
+
},
|
12353
|
+
{
|
12354
|
+
"name": "primary",
|
12355
|
+
"type": "\"end\" | \"start\"",
|
12356
|
+
"mutable": false,
|
12357
|
+
"attr": "primary",
|
12358
|
+
"reflectToAttr": false,
|
12359
|
+
"docs": "If no primary panel is designated, both panels will resize proportionally when the host element is resized. If a\nprimary panel is designated, it will maintain its size and the other panel will grow or shrink as needed when the\nhost element is resized.",
|
12360
|
+
"docsTags": [],
|
12361
|
+
"values": [
|
12362
|
+
{
|
12363
|
+
"value": "end",
|
12364
|
+
"type": "string"
|
12365
|
+
},
|
12366
|
+
{
|
12367
|
+
"value": "start",
|
12368
|
+
"type": "string"
|
12369
|
+
}
|
12370
|
+
],
|
12371
|
+
"optional": true,
|
12372
|
+
"required": false,
|
12373
|
+
"getter": false,
|
12374
|
+
"setter": false
|
12375
|
+
},
|
12376
|
+
{
|
12377
|
+
"name": "snap",
|
12378
|
+
"type": "string",
|
12379
|
+
"mutable": false,
|
12380
|
+
"attr": "snap",
|
12381
|
+
"reflectToAttr": false,
|
12382
|
+
"docs": "One or more space-separated values at which the divider should snap. Values can be in pixels or percentages, e.g.\n`\"100px 50%\"`.",
|
12383
|
+
"docsTags": [],
|
12384
|
+
"values": [
|
12385
|
+
{
|
12386
|
+
"type": "string"
|
12387
|
+
}
|
12388
|
+
],
|
12389
|
+
"optional": true,
|
12390
|
+
"required": false,
|
12391
|
+
"getter": false,
|
12392
|
+
"setter": false
|
12393
|
+
},
|
12394
|
+
{
|
12395
|
+
"name": "snapThreshold",
|
12396
|
+
"type": "number",
|
12397
|
+
"mutable": false,
|
12398
|
+
"attr": "snap-threshold",
|
12399
|
+
"reflectToAttr": false,
|
12400
|
+
"docs": "How close the divider must be to a snap point until snapping occurs.",
|
12401
|
+
"docsTags": [],
|
12402
|
+
"default": "12",
|
12403
|
+
"values": [
|
12404
|
+
{
|
12405
|
+
"type": "number"
|
12406
|
+
}
|
12407
|
+
],
|
12408
|
+
"optional": false,
|
12409
|
+
"required": false,
|
12410
|
+
"getter": false,
|
12411
|
+
"setter": false
|
12412
|
+
},
|
12413
|
+
{
|
12414
|
+
"name": "vertical",
|
12415
|
+
"type": "boolean",
|
12416
|
+
"mutable": false,
|
12417
|
+
"attr": "vertical",
|
12418
|
+
"reflectToAttr": true,
|
12419
|
+
"docs": "Draws the split panel in a vertical orientation with the start and end panels stacked.",
|
12420
|
+
"docsTags": [],
|
12421
|
+
"default": "false",
|
12422
|
+
"values": [
|
12423
|
+
{
|
12424
|
+
"type": "boolean"
|
12425
|
+
}
|
12426
|
+
],
|
12427
|
+
"optional": false,
|
12428
|
+
"required": false,
|
12429
|
+
"getter": false,
|
12430
|
+
"setter": false
|
12431
|
+
}
|
12432
|
+
],
|
12433
|
+
"methods": [],
|
12434
|
+
"events": [
|
12435
|
+
{
|
12436
|
+
"event": "nanoDragging",
|
12437
|
+
"detail": "number",
|
12438
|
+
"bubbles": true,
|
12439
|
+
"cancelable": true,
|
12440
|
+
"composed": true,
|
12441
|
+
"docs": "Emitted when the divider is being dragged.",
|
12442
|
+
"docsTags": []
|
12443
|
+
},
|
12444
|
+
{
|
12445
|
+
"event": "nanoReposition",
|
12446
|
+
"detail": "any",
|
12447
|
+
"bubbles": true,
|
12448
|
+
"cancelable": true,
|
12449
|
+
"composed": true,
|
12450
|
+
"docs": "Emitted when the divider's position changes.",
|
12451
|
+
"docsTags": []
|
12452
|
+
}
|
12453
|
+
],
|
12454
|
+
"listeners": [],
|
12455
|
+
"styles": [
|
12456
|
+
{
|
12457
|
+
"name": "--background-color",
|
12458
|
+
"annotation": "prop",
|
12459
|
+
"docs": "Handle background. Default #e4e6e8."
|
12460
|
+
},
|
12461
|
+
{
|
12462
|
+
"name": "--content-color",
|
12463
|
+
"annotation": "prop",
|
12464
|
+
"docs": "Handle color. Default #918b86."
|
12465
|
+
},
|
12466
|
+
{
|
12467
|
+
"name": "--divider-hit-area",
|
12468
|
+
"annotation": "prop",
|
12469
|
+
"docs": "The invisible region around the divider where dragging can occur. This is usually wider than the divider to facilitate easier dragging. Default 12px."
|
12470
|
+
},
|
12471
|
+
{
|
12472
|
+
"name": "--divider-width",
|
12473
|
+
"annotation": "prop",
|
12474
|
+
"docs": "The width of the visible divider. Default 4px."
|
12475
|
+
},
|
12476
|
+
{
|
12477
|
+
"name": "--max",
|
12478
|
+
"annotation": "prop",
|
12479
|
+
"docs": "The maximum allowed size of the primary panel. Default 100%."
|
12480
|
+
},
|
12481
|
+
{
|
12482
|
+
"name": "--min",
|
12483
|
+
"annotation": "prop",
|
12484
|
+
"docs": "The minimum allowed size of the primary panel. Default 0."
|
12485
|
+
}
|
12486
|
+
],
|
12487
|
+
"slots": [
|
12488
|
+
{
|
12489
|
+
"name": "end",
|
12490
|
+
"docs": "The end panel."
|
12491
|
+
},
|
12492
|
+
{
|
12493
|
+
"name": "handle",
|
12494
|
+
"docs": "An optional handle to render at the center of the divider."
|
12495
|
+
},
|
12496
|
+
{
|
12497
|
+
"name": "start",
|
12498
|
+
"docs": "The start panel."
|
12499
|
+
}
|
12500
|
+
],
|
12501
|
+
"parts": [
|
12502
|
+
{
|
12503
|
+
"name": "divider",
|
12504
|
+
"docs": "The divider that separates the start and end panels."
|
12505
|
+
},
|
12506
|
+
{
|
12507
|
+
"name": "end",
|
12508
|
+
"docs": "The end panel."
|
12509
|
+
},
|
12510
|
+
{
|
12511
|
+
"name": "panel",
|
12512
|
+
"docs": "Targets both the start and end panels."
|
12513
|
+
},
|
12514
|
+
{
|
12515
|
+
"name": "start",
|
12516
|
+
"docs": "The start panel."
|
12517
|
+
}
|
12518
|
+
],
|
12519
|
+
"dependents": [],
|
12520
|
+
"dependencies": [
|
12521
|
+
"nano-icon"
|
12522
|
+
],
|
12523
|
+
"dependencyGraph": {
|
12524
|
+
"nano-split-pane": [
|
12525
|
+
"nano-icon"
|
12526
|
+
]
|
12527
|
+
}
|
12528
|
+
},
|
12237
12529
|
{
|
12238
12530
|
"filePath": "./src/components/sticky/sticker.tsx",
|
12239
12531
|
"encapsulation": "shadow",
|
package/docs-vscode.json
CHANGED
@@ -2298,6 +2298,55 @@
|
|
2298
2298
|
}
|
2299
2299
|
]
|
2300
2300
|
},
|
2301
|
+
{
|
2302
|
+
"name": "nano-split-pane",
|
2303
|
+
"description": {
|
2304
|
+
"kind": "markdown",
|
2305
|
+
"value": "Split panes display two adjacent panels, allowing the user to reposition them."
|
2306
|
+
},
|
2307
|
+
"attributes": [
|
2308
|
+
{
|
2309
|
+
"name": "animation-duration",
|
2310
|
+
"description": "When changing `position` via property, the pane will animate into position. Make `animationDuration` 0 to disable."
|
2311
|
+
},
|
2312
|
+
{
|
2313
|
+
"name": "disabled",
|
2314
|
+
"description": "Disables resizing. Note that the position may still change as a result of resizing the host element."
|
2315
|
+
},
|
2316
|
+
{
|
2317
|
+
"name": "position",
|
2318
|
+
"description": "The current position of the divider from the primary panel's edge as a percentage 0-100. Defaults to 50% of the\ncontainer's initial size."
|
2319
|
+
},
|
2320
|
+
{
|
2321
|
+
"name": "position-in-pixels",
|
2322
|
+
"description": "The current position of the divider from the primary panel's edge in pixels."
|
2323
|
+
},
|
2324
|
+
{
|
2325
|
+
"name": "primary",
|
2326
|
+
"description": "If no primary panel is designated, both panels will resize proportionally when the host element is resized. If a\nprimary panel is designated, it will maintain its size and the other panel will grow or shrink as needed when the\nhost element is resized.",
|
2327
|
+
"values": [
|
2328
|
+
{
|
2329
|
+
"name": "end"
|
2330
|
+
},
|
2331
|
+
{
|
2332
|
+
"name": "start"
|
2333
|
+
}
|
2334
|
+
]
|
2335
|
+
},
|
2336
|
+
{
|
2337
|
+
"name": "snap",
|
2338
|
+
"description": "One or more space-separated values at which the divider should snap. Values can be in pixels or percentages, e.g.\n`\"100px 50%\"`."
|
2339
|
+
},
|
2340
|
+
{
|
2341
|
+
"name": "snap-threshold",
|
2342
|
+
"description": "How close the divider must be to a snap point until snapping occurs."
|
2343
|
+
},
|
2344
|
+
{
|
2345
|
+
"name": "vertical",
|
2346
|
+
"description": "Draws the split panel in a vertical orientation with the start and end panels stacked."
|
2347
|
+
}
|
2348
|
+
]
|
2349
|
+
},
|
2301
2350
|
{
|
2302
2351
|
"name": "nano-sticker",
|
2303
2352
|
"description": {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nanoporetech-digital/components",
|
3
|
-
"version": "2.1
|
3
|
+
"version": "2.2.1",
|
4
4
|
"repository": {
|
5
5
|
"type": "git",
|
6
6
|
"url": "https://git.oxfordnanolabs.local/Digital/nano-components"
|
@@ -22,7 +22,6 @@
|
|
22
22
|
"docs-json.json"
|
23
23
|
],
|
24
24
|
"scripts": {
|
25
|
-
"prepare": "npm run build",
|
26
25
|
"start": "npm run stencil.dev",
|
27
26
|
"build": "run-s themes.prod stencil.prod",
|
28
27
|
"dev": "run-p themes.dev stencil.dev",
|
@@ -43,12 +42,12 @@
|
|
43
42
|
"prettier.test": "npm run prettier.base -- --check",
|
44
43
|
"prettier.base": "prettier \"./{src,jest}/**/*.{ts,tsx,js,jsx}\"",
|
45
44
|
"test": "run-p themes.prod test.all.base",
|
46
|
-
"test.ci": "run-p themes.prod test.all.base
|
45
|
+
"test.ci": "run-p themes.prod test.all.base",
|
47
46
|
"test.spec": "stencil test --spec --max-workers=2 --watch --config='./stencil.config.test.ts'",
|
48
47
|
"test.spec.debug": "npx --node-arg=\"--inspect-brk\" stencil test --spec --config='./stencil.config.test.ts'",
|
49
48
|
"test.watch": "run-s themes.prod test.all.watch",
|
50
49
|
"test.all.watch": "stencil test --spec --e2e --watch --bail --config='./stencil.config.test.ts'",
|
51
|
-
"test.all.base": "stencil test --spec --e2e --max-workers=
|
50
|
+
"test.all.base": "stencil test --spec --e2e --max-workers=1 --config='./stencil.config.test.ts'",
|
52
51
|
"jest": "jest",
|
53
52
|
"serve": "http-server www -p 5000"
|
54
53
|
},
|
@@ -72,7 +71,7 @@
|
|
72
71
|
"devDependencies": {
|
73
72
|
"@stencil/eslint-plugin": "^0.3.1",
|
74
73
|
"@stencil/postcss": "^2.0.0",
|
75
|
-
"@stencil/react-output-target": "0.
|
74
|
+
"@stencil/react-output-target": "^0.3.1",
|
76
75
|
"@stencil/sass": "^2.0.0-0",
|
77
76
|
"@stencil/vue-output-target": "^0.5",
|
78
77
|
"@types/jest": "^26.0.3",
|
@@ -107,6 +106,9 @@
|
|
107
106
|
"tslint": "^6.1.3",
|
108
107
|
"typescript": "^3.9.5"
|
109
108
|
},
|
109
|
+
"resolutions": {
|
110
|
+
"eslint": "^6.0.0"
|
111
|
+
},
|
110
112
|
"jest": {
|
111
113
|
"preset": "@stencil/core/testing"
|
112
114
|
},
|
@@ -124,5 +126,5 @@
|
|
124
126
|
"peerDependencies": {
|
125
127
|
"@stencil/core": "^2.5.0"
|
126
128
|
},
|
127
|
-
"gitHead": "
|
129
|
+
"gitHead": "c53e8785f9b90074379cf31b2a22207350762cce"
|
128
130
|
}
|