@ni/ok-components 1.4.0 → 1.4.2

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.
@@ -10,7 +10,7 @@
10
10
  },
11
11
  {
12
12
  "kind": "javascript-module",
13
- "path": "src/ts/all-ts.ts",
13
+ "path": "src/ex/all-ex.ts",
14
14
  "declarations": [],
15
15
  "exports": []
16
16
  },
@@ -22,74 +22,47 @@
22
22
  },
23
23
  {
24
24
  "kind": "javascript-module",
25
- "path": "src/ex/all-ex.ts",
25
+ "path": "src/ts/all-ts.ts",
26
26
  "declarations": [],
27
27
  "exports": []
28
28
  },
29
29
  {
30
30
  "kind": "javascript-module",
31
- "path": "src/ts/icon-dynamic/index.ts",
31
+ "path": "src/ex/button/index.ts",
32
32
  "declarations": [
33
33
  {
34
34
  "kind": "class",
35
- "description": "Base class for dynamic icons. Not intended to be used directly, instead use to register dynamic icons:\n```\ncustomElements.get('ok-ts-icon-dynamic').registerIconDynamic('ok-ts-icon-dynamic-awesome', '<img data uri or arbitrary url>');\n```\nAfter calling successfully, the icon can be used like any other icon:\n```\n<ok-ts-icon-dynamic-awesome></ok-ts-icon-dynamic-awesome>\n<nimble-mapping-icon icon=\"ok-ts-icon-dynamic-awesome\"></nimble-mapping-icon>\n```",
36
- "name": "TsIconDynamic",
37
- "members": [
38
- {
39
- "kind": "method",
40
- "name": "registerIconDynamic",
41
- "privacy": "public",
42
- "static": true,
43
- "return": {
44
- "type": {
45
- "text": "void"
46
- }
47
- },
48
- "parameters": [
49
- {
50
- "name": "tagName",
51
- "type": {
52
- "text": "string"
53
- }
54
- },
55
- {
56
- "name": "url",
57
- "type": {
58
- "text": "string"
59
- }
60
- }
61
- ]
62
- }
63
- ],
35
+ "description": "A Ok demo component (not for production use)",
36
+ "name": "ExButton",
64
37
  "superclass": {
65
- "name": "Icon",
66
- "package": "@ni/nimble-components/dist/esm/icon-base"
38
+ "name": "FoundationElement",
39
+ "package": "@ni/fast-foundation"
67
40
  }
68
41
  },
69
42
  {
70
43
  "kind": "variable",
71
- "name": "tsIconDynamicTag",
44
+ "name": "exButtonTag",
72
45
  "type": {
73
46
  "text": "string"
74
47
  },
75
- "default": "'ok-ts-icon-dynamic'"
48
+ "default": "'ok-ex-button'"
76
49
  }
77
50
  ],
78
51
  "exports": [
79
52
  {
80
53
  "kind": "js",
81
- "name": "TsIconDynamic",
54
+ "name": "ExButton",
82
55
  "declaration": {
83
- "name": "TsIconDynamic",
84
- "module": "src/ts/icon-dynamic/index.ts"
56
+ "name": "ExButton",
57
+ "module": "src/ex/button/index.ts"
85
58
  }
86
59
  },
87
60
  {
88
61
  "kind": "js",
89
- "name": "tsIconDynamicTag",
62
+ "name": "exButtonTag",
90
63
  "declaration": {
91
- "name": "tsIconDynamicTag",
92
- "module": "src/ts/icon-dynamic/index.ts"
64
+ "name": "exButtonTag",
65
+ "module": "src/ex/button/index.ts"
93
66
  }
94
67
  }
95
68
  ]
@@ -1705,41 +1678,68 @@
1705
1678
  },
1706
1679
  {
1707
1680
  "kind": "javascript-module",
1708
- "path": "src/ex/button/index.ts",
1681
+ "path": "src/ts/icon-dynamic/index.ts",
1709
1682
  "declarations": [
1710
1683
  {
1711
1684
  "kind": "class",
1712
- "description": "A Ok demo component (not for production use)",
1713
- "name": "ExButton",
1685
+ "description": "Base class for dynamic icons. Not intended to be used directly, instead use to register dynamic icons:\n```\ncustomElements.get('ok-ts-icon-dynamic').registerIconDynamic('ok-ts-icon-dynamic-awesome', '<img data uri or arbitrary url>');\n```\nAfter calling successfully, the icon can be used like any other icon:\n```\n<ok-ts-icon-dynamic-awesome></ok-ts-icon-dynamic-awesome>\n<nimble-mapping-icon icon=\"ok-ts-icon-dynamic-awesome\"></nimble-mapping-icon>\n```",
1686
+ "name": "TsIconDynamic",
1687
+ "members": [
1688
+ {
1689
+ "kind": "method",
1690
+ "name": "registerIconDynamic",
1691
+ "privacy": "public",
1692
+ "static": true,
1693
+ "return": {
1694
+ "type": {
1695
+ "text": "void"
1696
+ }
1697
+ },
1698
+ "parameters": [
1699
+ {
1700
+ "name": "tagName",
1701
+ "type": {
1702
+ "text": "string"
1703
+ }
1704
+ },
1705
+ {
1706
+ "name": "url",
1707
+ "type": {
1708
+ "text": "string"
1709
+ }
1710
+ }
1711
+ ]
1712
+ }
1713
+ ],
1714
1714
  "superclass": {
1715
- "name": "FoundationElement",
1716
- "package": "@ni/fast-foundation"
1715
+ "name": "Icon",
1716
+ "package": "@ni/nimble-components/dist/esm/icon-base"
1717
1717
  }
1718
1718
  },
1719
1719
  {
1720
1720
  "kind": "variable",
1721
- "name": "exButtonTag",
1721
+ "name": "tsIconDynamicTag",
1722
1722
  "type": {
1723
1723
  "text": "string"
1724
1724
  },
1725
- "default": "'ok-ex-button'"
1725
+ "default": "'ok-ts-icon-dynamic'"
1726
1726
  }
1727
1727
  ],
1728
1728
  "exports": [
1729
1729
  {
1730
1730
  "kind": "js",
1731
- "name": "ExButton",
1731
+ "name": "TsIconDynamic",
1732
1732
  "declaration": {
1733
- "name": "ExButton",
1734
- "module": "src/ex/button/index.ts"
1733
+ "name": "TsIconDynamic",
1734
+ "module": "src/ts/icon-dynamic/index.ts"
1735
1735
  }
1736
1736
  },
1737
1737
  {
1738
1738
  "kind": "js",
1739
- "name": "exButtonTag",
1739
+ "name": "tsIconDynamicTag",
1740
1740
  "declaration": {
1741
- "name": "exButtonTag",
1742
- "module": "src/ex/button/index.ts"
1741
+ "name": "tsIconDynamicTag",
1742
+ "module": "src/ts/icon-dynamic/index.ts"
1743
1743
  }
1744
1744
  }
1745
1745
  ]
@@ -1,16 +1,10 @@
1
- ## class: `TsIconDynamic`
1
+ ## class: `ExButton`
2
2
 
3
3
  ### Superclass
4
4
 
5
- | Name | Module | Package |
6
- | ------ | ------ | ---------------------------------------- |
7
- | `Icon` | | @ni/nimble-components/dist/esm/icon-base |
8
-
9
- ### Static Methods
10
-
11
- | Name | Privacy | Description | Parameters | Return | Inherited From |
12
- | --------------------- | ------- | ----------- | ------------------------------ | ------ | -------------- |
13
- | `registerIconDynamic` | public | | `tagName: string, url: string` | `void` | |
5
+ | Name | Module | Package |
6
+ | ------------------- | ------ | ------------------- |
7
+ | `FoundationElement` | | @ni/fast-foundation |
14
8
 
15
9
  <hr/>
16
10
 
@@ -314,13 +308,19 @@
314
308
 
315
309
  <hr/>
316
310
 
317
- ## class: `ExButton`
311
+ ## class: `TsIconDynamic`
318
312
 
319
313
  ### Superclass
320
314
 
321
- | Name | Module | Package |
322
- | ------------------- | ------ | ------------------- |
323
- | `FoundationElement` | | @ni/fast-foundation |
315
+ | Name | Module | Package |
316
+ | ------ | ------ | ---------------------------------------- |
317
+ | `Icon` | | @ni/nimble-components/dist/esm/icon-base |
318
+
319
+ ### Static Methods
320
+
321
+ | Name | Privacy | Description | Parameters | Return | Inherited From |
322
+ | --------------------- | ------- | ----------- | ------------------------------ | ------ | -------------- |
323
+ | `registerIconDynamic` | public | | `tagName: string, url: string` | `void` | |
324
324
 
325
325
  <hr/>
326
326
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ni/ok-components",
3
- "version": "1.4.0",
3
+ "version": "1.4.2",
4
4
  "description": "NI Ok Components",
5
5
  "scripts": {
6
6
  "build": "npm run build:components && npm run build:cem",
@@ -43,7 +43,7 @@
43
43
  "@ni/fast-foundation": "^10.2.3",
44
44
  "@ni/fast-web-utilities": "^10.0.0",
45
45
  "@ni/nimble-components": "^35.10.0",
46
- "@ni/spright-components": "^6.20.0",
46
+ "@ni/spright-components": "^6.20.2",
47
47
  "tslib": "^2.2.0"
48
48
  },
49
49
  "devDependencies": {