pict-section-flow 0.0.16 → 0.0.17

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pict-section-flow",
3
- "version": "0.0.16",
3
+ "version": "0.0.17",
4
4
  "description": "Pict Section Flow Diagram",
5
5
  "main": "source/Pict-Section-Flow.js",
6
6
  "scripts": {
@@ -927,6 +927,9 @@ class PictProviderFlowCSS extends libFableServiceProviderBase
927
927
  user-select: none;
928
928
  -webkit-user-select: none;
929
929
  }
930
+ .pict-flow-toolbar-btn:focus {
931
+ outline: none;
932
+ }
930
933
  .pict-flow-toolbar-btn:hover {
931
934
  background-color: var(--pf-button-hover-bg);
932
935
  border-color: var(--pf-button-hover-border);
@@ -1387,6 +1390,9 @@ class PictProviderFlowCSS extends libFableServiceProviderBase
1387
1390
  justify-content: center;
1388
1391
  transition: background-color 0.15s;
1389
1392
  }
1393
+ .pict-flow-floating-btn:focus {
1394
+ outline: none;
1395
+ }
1390
1396
  .pict-flow-floating-btn:hover {
1391
1397
  background-color: var(--pf-button-hover-bg);
1392
1398
  }
@@ -155,7 +155,7 @@ class PictViewFlowFloatingToolbar extends libPictView
155
155
  // Populate icons
156
156
  this._populateIcons();
157
157
 
158
- // Hide buttons based on options
158
+ // Remove buttons from DOM based on options
159
159
  if (tmpFloatingToolbar.length > 0)
160
160
  {
161
161
  if (this.options.EnableAddNode === false)
@@ -163,7 +163,7 @@ class PictViewFlowFloatingToolbar extends libPictView
163
163
  let tmpAddNodeBtn = tmpFloatingToolbar[0].querySelector('[data-flow-action="add-node"]');
164
164
  if (tmpAddNodeBtn)
165
165
  {
166
- tmpAddNodeBtn.style.display = 'none';
166
+ tmpAddNodeBtn.remove();
167
167
  }
168
168
  }
169
169
  if (this.options.EnableCardPalette === false)
@@ -171,7 +171,7 @@ class PictViewFlowFloatingToolbar extends libPictView
171
171
  let tmpCardsBtn = tmpFloatingToolbar[0].querySelector('[data-flow-action="cards-popup"]');
172
172
  if (tmpCardsBtn)
173
173
  {
174
- tmpCardsBtn.style.display = 'none';
174
+ tmpCardsBtn.remove();
175
175
  }
176
176
  }
177
177
  }
@@ -157,13 +157,13 @@ class PictViewFlowToolbar extends libPictView
157
157
  // Populate SVG icons for toolbar buttons
158
158
  this._populateToolbarIcons();
159
159
 
160
- // Hide buttons based on options
160
+ // Remove buttons from DOM based on options
161
161
  if (this.options.EnableAddNode === false)
162
162
  {
163
163
  let tmpAddNodeBtn = this.pict.ContentAssignment.getElement(`#Flow-Toolbar-AddNode-${tmpFlowViewIdentifier}`);
164
164
  if (tmpAddNodeBtn.length > 0)
165
165
  {
166
- tmpAddNodeBtn[0].style.display = 'none';
166
+ tmpAddNodeBtn[0].remove();
167
167
  }
168
168
  }
169
169
  if (this.options.EnableCardPalette === false)
@@ -171,7 +171,7 @@ class PictViewFlowToolbar extends libPictView
171
171
  let tmpCardsBtn = this.pict.ContentAssignment.getElement(`#Flow-Toolbar-Cards-${tmpFlowViewIdentifier}`);
172
172
  if (tmpCardsBtn.length > 0)
173
173
  {
174
- tmpCardsBtn[0].style.display = 'none';
174
+ tmpCardsBtn[0].remove();
175
175
  }
176
176
  }
177
177