@neovici/cosmoz-treenode-navigator 3.0.5 → 3.1.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 CHANGED
@@ -1,3 +1,31 @@
1
+ # [3.1.0](https://github.com/neovici/cosmoz-treenode-navigator/compare/v3.0.8...v3.1.0) (2021-12-07)
2
+
3
+
4
+ ### Features
5
+
6
+ * add button and icon slots ([d7ea96d](https://github.com/neovici/cosmoz-treenode-navigator/commit/d7ea96dc06bf01e3dc33cbf76fa523524d67ba2c))
7
+
8
+ ## [3.0.8](https://github.com/neovici/cosmoz-treenode-navigator/compare/v3.0.7...v3.0.8) (2021-10-17)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * css comments ([f9d97f3](https://github.com/neovici/cosmoz-treenode-navigator/commit/f9d97f3e257044e6ebd78f69f3571c8663a741a9))
14
+
15
+ ## [3.0.7](https://github.com/neovici/cosmoz-treenode-navigator/compare/v3.0.6...v3.0.7) (2021-10-17)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * **cosmoz-treenode-button-view:** ios rtl overflow ([80725a7](https://github.com/neovici/cosmoz-treenode-navigator/commit/80725a763f29171cb6af20af81a02a82d1304369))
21
+
22
+ ## [3.0.6](https://github.com/neovici/cosmoz-treenode-navigator/compare/v3.0.5...v3.0.6) (2021-10-16)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * **cosmoz-treenode-button-view:** rtl fixes ([43e70a3](https://github.com/neovici/cosmoz-treenode-navigator/commit/43e70a3684ce2187d0afbb0666613d62067ef02a))
28
+
1
29
  ## [3.0.5](https://github.com/neovici/cosmoz-treenode-navigator/compare/v3.0.4...v3.0.5) (2021-10-16)
2
30
 
3
31
 
@@ -34,6 +34,10 @@ class CosmozTreenodeButtonView extends translatable(PolymerElement) {
34
34
  direction: rtl;
35
35
  text-align: left;
36
36
  }
37
+ /* Safari only css fix */
38
+ @media not all and (min-resolution:.001dpcm) { @supports (-webkit-appearance:none) {
39
+ .pathToNode span { display: inline-block;}
40
+ }}
37
41
 
38
42
  #chips {
39
43
  display: flex;
@@ -75,10 +79,10 @@ class CosmozTreenodeButtonView extends translatable(PolymerElement) {
75
79
  }
76
80
  </style>
77
81
  <div class="actions">
78
- <paper-button class="open" raised on-click="openDialogTree">
79
- <div class="pathToNode">[[ _getButtonLabel(nodesOnNodePath, buttonTextPlaceholder) ]]</div>
82
+ <paper-button part="button" class="open" raised on-click="openDialogTree" title="[[ buttonText ]]">
83
+ <div class="pathToNode">&lrm;<span>[[ buttonText ]]</span></div>
80
84
  </paper-button>
81
- <paper-icon-button icon="clear" on-click="reset" hidden$="[[ !_enableReset(nodePath, noReset) ]]"></paper-icon-button>
85
+ <paper-icon-button part="clear" icon="clear" on-click="reset" hidden$="[[ !_enableReset(nodePath, noReset) ]]"></paper-icon-button>
82
86
  </div>
83
87
  <template is="dom-if" if="[[ _showSelectedNodes(multiSelection, selectedNodes.length) ]]">
84
88
  <div id="chips" class="row">
@@ -163,6 +167,12 @@ class CosmozTreenodeButtonView extends translatable(PolymerElement) {
163
167
  type: String,
164
168
  computed: 'getButtonTextPlaceholder(multiSelection)'
165
169
  },
170
+
171
+ buttonText: {
172
+ type: String,
173
+ computed: '_getButtonLabel(nodesOnNodePath, buttonTextPlaceholder)'
174
+ },
175
+
166
176
  /*
167
177
  * The path of the selected node
168
178
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neovici/cosmoz-treenode-navigator",
3
- "version": "3.0.5",
3
+ "version": "3.1.0",
4
4
  "description": "A Polymer component that lets you navigate and search through hierarchically structured data-nodes and select one of them.",
5
5
  "keywords": [
6
6
  "polymer",
@@ -58,8 +58,7 @@
58
58
  "@polymer/polymer": "^3.4.0",
59
59
  "@web/dev-server": "^0.1.25",
60
60
  "@web/test-runner": "^0.13.19",
61
- "@web/test-runner-selenium": "^0.5.2",
62
- "@webcomponents/shadycss": "^1.0.0"
61
+ "@web/test-runner-selenium": "^0.5.2"
63
62
  },
64
63
  "devDependencies": {
65
64
  "@commitlint/cli": "^13.0.0",
@@ -17,7 +17,7 @@ suite('rtl', () => {
17
17
  // stamped asynchronously, so we need to wait a bit.
18
18
  setTimeout(() => {
19
19
  const buttonLabel = treeButton.shadowRoot.querySelector('.pathToNode').textContent;
20
- assert.equal(buttonLabel, '1 / 2 / 3');
20
+ assert.isTrue(buttonLabel.endsWith('1 / 2 / 3'));
21
21
  done();
22
22
  }, 500);
23
23
  });