@turquoisehealth/pit-viper 2.105.0 → 2.105.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/_site/assets/js/pit-viper.js +27 -13
- package/package.json +1 -1
- package/pv-components/dist/stats/vue/base/stats.html +4949 -0
- package/pv-components/dist/stats/vue/visualizations/stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-accordion-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-action-bar-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-avatar-group-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-avatar-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-banner-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-breadcrumbs-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-button-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-card-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-checkbox-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-company-label-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-company-logo-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-company-tag-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-counter-badge-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-date-picker-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-date-time-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-drawer-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-dropdown-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-expandable-content-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-ghost-input-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-icon-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-input-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-insight-card-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-modal-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-pagination-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-pill-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-popover-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-popover-v2-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-rating-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-release-badge-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-search-input-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-segmented-control-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-select-button-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-selectable-card-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-side-panel-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-skeleton-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-spinner-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-sprite-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-suggestion-tag-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-switch-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-tab-list-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-tabs-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-tag-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-text-area-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-toast-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-toggle-button-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-toggle-group-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-tooltip-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-tooltip-v2-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-widget-stats.html +4949 -0
|
@@ -206,23 +206,24 @@ class PVAutoClose extends HTMLElement {
|
|
|
206
206
|
}
|
|
207
207
|
|
|
208
208
|
isExpandedState() {
|
|
209
|
-
return !this.layout.hasAttribute('data-collapsed') &&
|
|
209
|
+
return !this.layout.hasAttribute('data-collapsed') && this.layout.hasAttribute('data-expanded');
|
|
210
210
|
}
|
|
211
211
|
|
|
212
212
|
collapseState() {
|
|
213
|
-
this.setState({ 'data-collapsed': true, 'data-expanded': false
|
|
213
|
+
this.setState({ 'data-collapsed': true, 'data-expanded': false });
|
|
214
214
|
}
|
|
215
215
|
|
|
216
216
|
expandState() {
|
|
217
|
-
this.setState({ 'data-collapsed': false, 'data-
|
|
217
|
+
this.setState({ 'data-collapsed': false, 'data-expanded': true });
|
|
218
218
|
}
|
|
219
219
|
|
|
220
220
|
hoverExpandState() {
|
|
221
|
-
this.
|
|
221
|
+
this.layout.removeAttribute('data-collapsed');
|
|
222
|
+
this.layout.removeAttribute('data-expanded');
|
|
222
223
|
}
|
|
223
224
|
|
|
224
225
|
hoverCollapseState() {
|
|
225
|
-
this.setState({ 'data-collapsed': true, 'data-
|
|
226
|
+
this.setState({ 'data-collapsed': true, 'data-expanded': false });
|
|
226
227
|
}
|
|
227
228
|
|
|
228
229
|
getSidebarMinimizeState() {
|
|
@@ -257,13 +258,23 @@ class PVAutoClose extends HTMLElement {
|
|
|
257
258
|
handleHoverIn() {
|
|
258
259
|
clearTimeout(this.hoverTimeout);
|
|
259
260
|
if (this.layout.hasAttribute('data-collapsed')) {
|
|
260
|
-
this.hoverTimeout = setTimeout(() =>
|
|
261
|
+
this.hoverTimeout = setTimeout(() => {
|
|
262
|
+
if (window.innerWidth < 768) {
|
|
263
|
+
this.layout.removeAttribute('data-collapsed');
|
|
264
|
+
this.layout.setAttribute('data-floating', '');
|
|
265
|
+
} else {
|
|
266
|
+
this.hoverExpandState();
|
|
267
|
+
}
|
|
268
|
+
}, 200);
|
|
261
269
|
}
|
|
262
270
|
}
|
|
263
271
|
|
|
264
272
|
handleHoverOut() {
|
|
265
273
|
clearTimeout(this.hoverTimeout);
|
|
266
|
-
if (this.layout.hasAttribute('data-
|
|
274
|
+
if (this.layout.hasAttribute('data-floating') && !this.hasOpenMenu()) {
|
|
275
|
+
this.layout.removeAttribute('data-floating');
|
|
276
|
+
this.layout.setAttribute('data-collapsed', '');
|
|
277
|
+
} else if (!this.layout.hasAttribute('data-collapsed') && !this.layout.hasAttribute('data-expanded') && !this.hasOpenMenu()) {
|
|
267
278
|
this.hoverCollapseState();
|
|
268
279
|
}
|
|
269
280
|
}
|
|
@@ -285,18 +296,21 @@ class PVAutoClose extends HTMLElement {
|
|
|
285
296
|
}
|
|
286
297
|
return;
|
|
287
298
|
}
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
if (this.
|
|
291
|
-
|
|
292
|
-
this.
|
|
299
|
+
|
|
300
|
+
// Only close menu if click is outside the sidebar
|
|
301
|
+
if (!this.contains(event.target)) {
|
|
302
|
+
allMenus.forEach(menu => menu.removeAttribute('data-active'));
|
|
303
|
+
this.style.overflowX = 'hidden';
|
|
304
|
+
if (!this.layout.hasAttribute('data-collapsed') && !this.layout.hasAttribute('data-expanded')) {
|
|
305
|
+
this.hoverCollapseState();
|
|
306
|
+
}
|
|
293
307
|
}
|
|
294
308
|
}
|
|
295
309
|
|
|
296
310
|
initializeSidebar() {
|
|
297
311
|
const currentSidebarMinimize = this.layout.hasAttribute('data-collapsed');
|
|
298
312
|
if (currentSidebarMinimize) {
|
|
299
|
-
|
|
313
|
+
this.collapseState();
|
|
300
314
|
}
|
|
301
315
|
const storedValue = this.getSidebarMinimizeState();
|
|
302
316
|
|