@ni/ok-components 1.8.3 → 1.9.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.
@@ -20,12 +20,6 @@
20
20
  "declarations": [],
21
21
  "exports": []
22
22
  },
23
- {
24
- "kind": "javascript-module",
25
- "path": "src/ts/all-ts.ts",
26
- "declarations": [],
27
- "exports": []
28
- },
29
23
  {
30
24
  "kind": "javascript-module",
31
25
  "path": "src/ex/button/index.ts",
@@ -67,6 +61,12 @@
67
61
  }
68
62
  ]
69
63
  },
64
+ {
65
+ "kind": "javascript-module",
66
+ "path": "src/ts/all-ts.ts",
67
+ "declarations": [],
68
+ "exports": []
69
+ },
70
70
  {
71
71
  "kind": "javascript-module",
72
72
  "path": "src/fv/accordion-item/index.ts",
@@ -1723,6 +1723,371 @@
1723
1723
  }
1724
1724
  ]
1725
1725
  },
1726
+ {
1727
+ "kind": "javascript-module",
1728
+ "path": "src/fv/splitter/index.ts",
1729
+ "declarations": [
1730
+ {
1731
+ "kind": "class",
1732
+ "description": "A vertical separator that enables pointer and keyboard resizing between two panes.",
1733
+ "name": "FvSplitter",
1734
+ "members": [
1735
+ {
1736
+ "kind": "field",
1737
+ "name": "ariaLabel",
1738
+ "type": {
1739
+ "text": "string"
1740
+ },
1741
+ "privacy": "public",
1742
+ "default": "'Resize panes'",
1743
+ "description": "The accessible name for the separator."
1744
+ },
1745
+ {
1746
+ "kind": "field",
1747
+ "name": "ariaLabelledby",
1748
+ "type": {
1749
+ "text": "string | undefined"
1750
+ },
1751
+ "privacy": "public",
1752
+ "description": "Identifies the element that labels the separator."
1753
+ },
1754
+ {
1755
+ "kind": "field",
1756
+ "name": "ariaControls",
1757
+ "type": {
1758
+ "text": "string | undefined"
1759
+ },
1760
+ "privacy": "public",
1761
+ "description": "Identifies the primary pane controlled by the separator."
1762
+ },
1763
+ {
1764
+ "kind": "field",
1765
+ "name": "position",
1766
+ "type": {
1767
+ "text": "number"
1768
+ },
1769
+ "privacy": "public",
1770
+ "default": "60",
1771
+ "description": "The splitter position as a percentage of the containing layout's width."
1772
+ },
1773
+ {
1774
+ "kind": "field",
1775
+ "name": "min",
1776
+ "type": {
1777
+ "text": "number"
1778
+ },
1779
+ "privacy": "public",
1780
+ "default": "0",
1781
+ "description": "The minimum allowed position."
1782
+ },
1783
+ {
1784
+ "kind": "field",
1785
+ "name": "max",
1786
+ "type": {
1787
+ "text": "number"
1788
+ },
1789
+ "privacy": "public",
1790
+ "default": "100",
1791
+ "description": "The maximum allowed position."
1792
+ },
1793
+ {
1794
+ "kind": "field",
1795
+ "name": "step",
1796
+ "type": {
1797
+ "text": "number"
1798
+ },
1799
+ "privacy": "public",
1800
+ "default": "1",
1801
+ "description": "The percentage-point increment used for keyboard resizing."
1802
+ },
1803
+ {
1804
+ "kind": "field",
1805
+ "name": "pointerId",
1806
+ "type": {
1807
+ "text": "number | undefined"
1808
+ },
1809
+ "privacy": "private"
1810
+ },
1811
+ {
1812
+ "kind": "field",
1813
+ "name": "pointerStartPosition",
1814
+ "type": {
1815
+ "text": "number"
1816
+ },
1817
+ "privacy": "private",
1818
+ "default": "0"
1819
+ },
1820
+ {
1821
+ "kind": "field",
1822
+ "name": "requestedPosition",
1823
+ "privacy": "private"
1824
+ },
1825
+ {
1826
+ "kind": "field",
1827
+ "name": "applyingConstrainedPosition",
1828
+ "type": {
1829
+ "text": "boolean"
1830
+ },
1831
+ "privacy": "private",
1832
+ "default": "false"
1833
+ },
1834
+ {
1835
+ "kind": "field",
1836
+ "name": "requestedPositionResetScheduled",
1837
+ "type": {
1838
+ "text": "boolean"
1839
+ },
1840
+ "privacy": "private",
1841
+ "default": "false"
1842
+ },
1843
+ {
1844
+ "kind": "field",
1845
+ "name": "positionChangeCallbackVersion",
1846
+ "type": {
1847
+ "text": "number"
1848
+ },
1849
+ "privacy": "private",
1850
+ "default": "0"
1851
+ },
1852
+ {
1853
+ "kind": "field",
1854
+ "name": "validMin",
1855
+ "type": {
1856
+ "text": "number"
1857
+ },
1858
+ "privacy": "private",
1859
+ "readonly": true
1860
+ },
1861
+ {
1862
+ "kind": "field",
1863
+ "name": "validMax",
1864
+ "type": {
1865
+ "text": "number"
1866
+ },
1867
+ "privacy": "private",
1868
+ "readonly": true
1869
+ },
1870
+ {
1871
+ "kind": "field",
1872
+ "name": "validStep",
1873
+ "type": {
1874
+ "text": "number"
1875
+ },
1876
+ "privacy": "private",
1877
+ "readonly": true
1878
+ },
1879
+ {
1880
+ "kind": "field",
1881
+ "name": "isRtl",
1882
+ "type": {
1883
+ "text": "boolean"
1884
+ },
1885
+ "privacy": "private",
1886
+ "readonly": true
1887
+ },
1888
+ {
1889
+ "kind": "field",
1890
+ "name": "keydownHandler",
1891
+ "privacy": "private",
1892
+ "readonly": true
1893
+ },
1894
+ {
1895
+ "kind": "method",
1896
+ "name": "constrain",
1897
+ "privacy": "private",
1898
+ "return": {
1899
+ "type": {
1900
+ "text": "number"
1901
+ }
1902
+ },
1903
+ "parameters": [
1904
+ {
1905
+ "name": "position",
1906
+ "type": {
1907
+ "text": "number"
1908
+ }
1909
+ }
1910
+ ]
1911
+ },
1912
+ {
1913
+ "kind": "method",
1914
+ "name": "updatePosition",
1915
+ "privacy": "private",
1916
+ "return": {
1917
+ "type": {
1918
+ "text": "void"
1919
+ }
1920
+ },
1921
+ "parameters": [
1922
+ {
1923
+ "name": "position",
1924
+ "type": {
1925
+ "text": "number"
1926
+ }
1927
+ }
1928
+ ]
1929
+ },
1930
+ {
1931
+ "kind": "method",
1932
+ "name": "applyConstrainedPosition",
1933
+ "privacy": "private",
1934
+ "return": {
1935
+ "type": {
1936
+ "text": "void"
1937
+ }
1938
+ }
1939
+ },
1940
+ {
1941
+ "kind": "method",
1942
+ "name": "resetRequestedPositionAfterSynchronousUpdates",
1943
+ "privacy": "private",
1944
+ "return": {
1945
+ "type": {
1946
+ "text": "void"
1947
+ }
1948
+ }
1949
+ },
1950
+ {
1951
+ "kind": "method",
1952
+ "name": "finishResize",
1953
+ "privacy": "private",
1954
+ "return": {
1955
+ "type": {
1956
+ "text": "void"
1957
+ }
1958
+ }
1959
+ },
1960
+ {
1961
+ "kind": "method",
1962
+ "name": "syncAriaValueAttributesIfConnected",
1963
+ "privacy": "private",
1964
+ "return": {
1965
+ "type": {
1966
+ "text": "void"
1967
+ }
1968
+ }
1969
+ },
1970
+ {
1971
+ "kind": "method",
1972
+ "name": "syncAriaValueAttributes",
1973
+ "privacy": "private",
1974
+ "return": {
1975
+ "type": {
1976
+ "text": "void"
1977
+ }
1978
+ }
1979
+ }
1980
+ ],
1981
+ "events": [
1982
+ {
1983
+ "name": "change",
1984
+ "type": {
1985
+ "text": "Event"
1986
+ }
1987
+ },
1988
+ {
1989
+ "name": "input",
1990
+ "type": {
1991
+ "text": "Event"
1992
+ }
1993
+ }
1994
+ ],
1995
+ "attributes": [
1996
+ {
1997
+ "name": "aria-label",
1998
+ "type": {
1999
+ "text": "string"
2000
+ },
2001
+ "default": "'Resize panes'",
2002
+ "description": "The accessible name for the separator.",
2003
+ "fieldName": "ariaLabel"
2004
+ },
2005
+ {
2006
+ "name": "aria-labelledby",
2007
+ "type": {
2008
+ "text": "string | undefined"
2009
+ },
2010
+ "description": "Identifies the element that labels the separator.",
2011
+ "fieldName": "ariaLabelledby"
2012
+ },
2013
+ {
2014
+ "name": "aria-controls",
2015
+ "type": {
2016
+ "text": "string | undefined"
2017
+ },
2018
+ "description": "Identifies the primary pane controlled by the separator.",
2019
+ "fieldName": "ariaControls"
2020
+ },
2021
+ {
2022
+ "name": "position",
2023
+ "type": {
2024
+ "text": "number"
2025
+ },
2026
+ "default": "60",
2027
+ "description": "The splitter position as a percentage of the containing layout's width.",
2028
+ "fieldName": "position"
2029
+ },
2030
+ {
2031
+ "name": "min",
2032
+ "type": {
2033
+ "text": "number"
2034
+ },
2035
+ "default": "0",
2036
+ "description": "The minimum allowed position.",
2037
+ "fieldName": "min"
2038
+ },
2039
+ {
2040
+ "name": "max",
2041
+ "type": {
2042
+ "text": "number"
2043
+ },
2044
+ "default": "100",
2045
+ "description": "The maximum allowed position.",
2046
+ "fieldName": "max"
2047
+ },
2048
+ {
2049
+ "name": "step",
2050
+ "type": {
2051
+ "text": "number"
2052
+ },
2053
+ "default": "1",
2054
+ "description": "The percentage-point increment used for keyboard resizing.",
2055
+ "fieldName": "step"
2056
+ }
2057
+ ],
2058
+ "superclass": {
2059
+ "name": "FoundationElement",
2060
+ "package": "@ni/fast-foundation"
2061
+ }
2062
+ },
2063
+ {
2064
+ "kind": "variable",
2065
+ "name": "fvSplitterTag",
2066
+ "type": {
2067
+ "text": "string"
2068
+ },
2069
+ "default": "'ok-fv-splitter'"
2070
+ }
2071
+ ],
2072
+ "exports": [
2073
+ {
2074
+ "kind": "js",
2075
+ "name": "FvSplitter",
2076
+ "declaration": {
2077
+ "name": "FvSplitter",
2078
+ "module": "src/fv/splitter/index.ts"
2079
+ }
2080
+ },
2081
+ {
2082
+ "kind": "js",
2083
+ "name": "fvSplitterTag",
2084
+ "declaration": {
2085
+ "name": "fvSplitterTag",
2086
+ "module": "src/fv/splitter/index.ts"
2087
+ }
2088
+ }
2089
+ ]
2090
+ },
1726
2091
  {
1727
2092
  "kind": "javascript-module",
1728
2093
  "path": "src/fv/sticky-header/index.ts",
@@ -308,6 +308,47 @@
308
308
 
309
309
  <hr/>
310
310
 
311
+ ## class: `FvSplitter`
312
+
313
+ ### Superclass
314
+
315
+ | Name | Module | Package |
316
+ | ------------------- | ------ | ------------------- |
317
+ | `FoundationElement` | | @ni/fast-foundation |
318
+
319
+ ### Fields
320
+
321
+ | Name | Privacy | Type | Default | Description | Inherited From |
322
+ | ---------------- | ------- | --------------------- | ---------------- | ----------------------------------------------------------------------- | -------------- |
323
+ | `ariaLabel` | public | `string` | `'Resize panes'` | The accessible name for the separator. | |
324
+ | `ariaLabelledby` | public | `string \| undefined` | | Identifies the element that labels the separator. | |
325
+ | `ariaControls` | public | `string \| undefined` | | Identifies the primary pane controlled by the separator. | |
326
+ | `position` | public | `number` | `60` | The splitter position as a percentage of the containing layout's width. | |
327
+ | `min` | public | `number` | `0` | The minimum allowed position. | |
328
+ | `max` | public | `number` | `100` | The maximum allowed position. | |
329
+ | `step` | public | `number` | `1` | The percentage-point increment used for keyboard resizing. | |
330
+
331
+ ### Events
332
+
333
+ | Name | Type | Description | Inherited From |
334
+ | -------- | ------- | ----------- | -------------- |
335
+ | `change` | `Event` | | |
336
+ | `input` | `Event` | | |
337
+
338
+ ### Attributes
339
+
340
+ | Name | Field | Inherited From |
341
+ | ----------------- | -------------- | -------------- |
342
+ | `aria-label` | ariaLabel | |
343
+ | `aria-labelledby` | ariaLabelledby | |
344
+ | `aria-controls` | ariaControls | |
345
+ | `position` | position | |
346
+ | `min` | min | |
347
+ | `max` | max | |
348
+ | `step` | step | |
349
+
350
+ <hr/>
351
+
311
352
  ## class: `FvStickyHeader`
312
353
 
313
354
  ### Superclass
@@ -10,3 +10,4 @@ import './sticky-header';
10
10
  import './summary-panel';
11
11
  import './summary-panel-tile';
12
12
  import './search-input';
13
+ import './splitter';
@@ -10,4 +10,5 @@ import './sticky-header';
10
10
  import './summary-panel';
11
11
  import './summary-panel-tile';
12
12
  import './search-input';
13
+ import './splitter';
13
14
  //# sourceMappingURL=all-fv.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"all-fv.js","sourceRoot":"","sources":["../../../src/fv/all-fv.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAC1B,OAAO,QAAQ,CAAC;AAChB,OAAO,iBAAiB,CAAC;AACzB,OAAO,gBAAgB,CAAC;AACxB,OAAO,2BAA2B,CAAC;AACnC,OAAO,sBAAsB,CAAC;AAC9B,OAAO,gBAAgB,CAAC;AACxB,OAAO,uBAAuB,CAAC;AAC/B,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,sBAAsB,CAAC;AAC9B,OAAO,gBAAgB,CAAC","sourcesContent":["import './accordion-item';\nimport './card';\nimport './chip-selector';\nimport './context-help';\nimport './master-detail-list-item';\nimport './master-detail-list';\nimport './split-button';\nimport './split-button-anchor';\nimport './sticky-header';\nimport './summary-panel';\nimport './summary-panel-tile';\nimport './search-input';\n"]}
1
+ {"version":3,"file":"all-fv.js","sourceRoot":"","sources":["../../../src/fv/all-fv.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAC1B,OAAO,QAAQ,CAAC;AAChB,OAAO,iBAAiB,CAAC;AACzB,OAAO,gBAAgB,CAAC;AACxB,OAAO,2BAA2B,CAAC;AACnC,OAAO,sBAAsB,CAAC;AAC9B,OAAO,gBAAgB,CAAC;AACxB,OAAO,uBAAuB,CAAC;AAC/B,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,sBAAsB,CAAC;AAC9B,OAAO,gBAAgB,CAAC;AACxB,OAAO,YAAY,CAAC","sourcesContent":["import './accordion-item';\nimport './card';\nimport './chip-selector';\nimport './context-help';\nimport './master-detail-list-item';\nimport './master-detail-list';\nimport './split-button';\nimport './split-button-anchor';\nimport './sticky-header';\nimport './summary-panel';\nimport './summary-panel-tile';\nimport './search-input';\nimport './splitter';\n"]}
@@ -0,0 +1,69 @@
1
+ import { FoundationElement } from '@ni/fast-foundation';
2
+ declare global {
3
+ interface HTMLElementTagNameMap {
4
+ 'ok-fv-splitter': FvSplitter;
5
+ }
6
+ }
7
+ /**
8
+ * A vertical separator that enables pointer and keyboard resizing between two panes.
9
+ */
10
+ export declare class FvSplitter extends FoundationElement {
11
+ /** The accessible name for the separator. */
12
+ ariaLabel: string;
13
+ /** Identifies the element that labels the separator. */
14
+ ariaLabelledby: string | undefined;
15
+ /** Identifies the primary pane controlled by the separator. */
16
+ ariaControls: string | undefined;
17
+ /** The splitter position as a percentage of the containing layout's width. */
18
+ position: number;
19
+ /** The minimum allowed position. */
20
+ min: number;
21
+ /** The maximum allowed position. */
22
+ max: number;
23
+ /** The percentage-point increment used for keyboard resizing. */
24
+ step: number;
25
+ /** @internal */
26
+ resizing: boolean;
27
+ private pointerId;
28
+ private pointerStartPosition;
29
+ private requestedPosition;
30
+ private applyingConstrainedPosition;
31
+ private requestedPositionResetScheduled;
32
+ private positionChangeCallbackVersion;
33
+ constructor();
34
+ /** @internal */
35
+ connectedCallback(): void;
36
+ /** @internal */
37
+ disconnectedCallback(): void;
38
+ /** @internal */
39
+ positionChanged(): void;
40
+ /** @internal */
41
+ minChanged(): void;
42
+ /** @internal */
43
+ maxChanged(): void;
44
+ /** @internal */
45
+ resizingChanged(): void;
46
+ /** @internal */
47
+ handlePointerDown(event: PointerEvent): boolean;
48
+ /** @internal */
49
+ handlePointerMove(event: PointerEvent): boolean;
50
+ /** @internal */
51
+ handlePointerUp(event: PointerEvent): boolean;
52
+ /** @internal */
53
+ handlePointerCancel(event: PointerEvent): boolean;
54
+ /** @internal */
55
+ handleKeyDown(event: KeyboardEvent): boolean;
56
+ private get validMin();
57
+ private get validMax();
58
+ private get validStep();
59
+ private get isRtl();
60
+ private readonly keydownHandler;
61
+ private constrain;
62
+ private updatePosition;
63
+ private applyConstrainedPosition;
64
+ private resetRequestedPositionAfterSynchronousUpdates;
65
+ private finishResize;
66
+ private syncAriaValueAttributesIfConnected;
67
+ private syncAriaValueAttributes;
68
+ }
69
+ export declare const fvSplitterTag = "ok-fv-splitter";