@turquoisehealth/pit-viper 2.64.2-dev.0 → 2.64.2-dev.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.
@@ -1,4 +1,4 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".pv-popover-list[data-v-cda1af8c]{font-size:14px}.pv-icon-button[data-v-79a7def3]{background-color:transparent;border:none}.pv-icon-button[data-v-79a7def3]:hover{cursor:pointer;color:#176f6f}.pv-select[data-v-79a7def3]{padding-top:4px;padding-bottom:4px}.pv-button-loading[data-v-942d55a7]{width:16px;height:16px;border:2px solid #ccc;border-top-color:#fff;border-radius:50%;animation:spin-942d55a7 1s linear infinite}@keyframes spin-942d55a7{to{transform:rotate(360deg)}}.pv-badge-md[data-v-fc3c1104]{--inset-size: 2px 2px;min-height:20px;max-height:20px;min-width:20px;font-weight:500}.pv-badge-sm[data-v-fc3c1104]{--inset-size: 0 2px;min-height:16px;max-height:16px;min-width:16px;font-weight:500}.pv-surface-lighten-5[data-v-fc3c1104]{background-color:#e0e5e4}.pv-text-secondary[data-v-fc3c1104]{color:#4b595c}.pv-menu-item-disabled[data-v-8ae6f9c7]{color:#7d898d;pointer-events:none;background:#ececec}.pv-menu-item[data-v-8ae6f9c7]{cursor:pointer}.pv-table-row-count{position:absolute;right:12px;top:6px;opacity:1;background-color:#f7f8f8;transition:opacity .3s ease}.pv-table-group-cell:hover .pv-table-row-count{opacity:0}.pv-table-row-number{padding:8px 12px 8px 0;text-align:center;color:#89989b}.focus-button{opacity:0;transition:opacity .2s ease}.option-label:hover .focus-button{opacity:1}.suggested-label[data-v-15b1e2de]:hover{color:#16696d}.ag-custom-header-cell[data-v-08855a14]{height:100%;align-items:center}.ag-header-actions .ag-header-cell-menu-button[data-v-08855a14]{opacity:0;transition:opacity .2s ease-in-out}.ag-header-cell-menu-button:hover .ag-header-actions .ag-header-cell-menu-button[data-v-08855a14]{opacity:1}.ag-header-cell-menu-button:focus .ag-header-actions .ag-header-cell-menu-button[data-v-08855a14]{opacity:1}.pv-table-row-number[data-v-ae67b797]{padding:8px 12px 8px 0;text-align:center;color:#89989b}.pv-table-overlay{position:absolute;margin-top:20px;z-index:2;background:#fff;width:100%;top:50%;left:50%;height:95%;transform:translate(-50%,-50%);pointer-events:none}.ag-header-cell-resize{border:none!important}.ag-row-group-leaf-indent{padding-left:7px;margin-left:0}.ag-custom-loading-cell{width:100%;height:40%;margin:15px;background-color:#ccc;border-radius:4px}.ag-group-value{width:100%}.ag-menu-option:hover{background-color:#f7f8f8}.ag-menu-option:active{background-color:#e8f2f4}.ag-menu-option-text{font-family:Inter,sans-serif}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
1
+ (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".pv-popover-list[data-v-cda1af8c]{font-size:14px}.pv-icon-button[data-v-79a7def3]{background-color:transparent;border:none}.pv-icon-button[data-v-79a7def3]:hover{cursor:pointer;color:#176f6f}.pv-select[data-v-79a7def3]{padding-top:4px;padding-bottom:4px}.pv-button-loading[data-v-942d55a7]{width:16px;height:16px;border:2px solid #ccc;border-top-color:#fff;border-radius:50%;animation:spin-942d55a7 1s linear infinite}@keyframes spin-942d55a7{to{transform:rotate(360deg)}}.pv-badge-md[data-v-fc3c1104]{--inset-size: 2px 2px;min-height:20px;max-height:20px;min-width:20px;font-weight:500}.pv-badge-sm[data-v-fc3c1104]{--inset-size: 0 2px;min-height:16px;max-height:16px;min-width:16px;font-weight:500}.pv-surface-lighten-5[data-v-fc3c1104]{background-color:#e0e5e4}.pv-text-secondary[data-v-fc3c1104]{color:#4b595c}.pv-menu-item-disabled[data-v-8ae6f9c7]{color:#7d898d;pointer-events:none;background:#ececec}.pv-menu-item[data-v-8ae6f9c7]{cursor:pointer}.pv-table-row-count{position:absolute;right:12px;top:6px;opacity:1;background-color:#f7f8f8;transition:opacity .3s ease}.pv-table-group-cell:hover .pv-table-row-count{opacity:0}.pv-table-row-number{padding:8px 12px 8px 0;text-align:center;color:#89989b}.focus-button{opacity:0;transition:opacity .2s ease}.option-label:hover .focus-button{opacity:1}.suggested-label[data-v-0316bc36]:hover{color:#16696d}.ag-custom-header-cell[data-v-08855a14]{height:100%;align-items:center}.ag-header-actions .ag-header-cell-menu-button[data-v-08855a14]{opacity:0;transition:opacity .2s ease-in-out}.ag-header-cell-menu-button:hover .ag-header-actions .ag-header-cell-menu-button[data-v-08855a14]{opacity:1}.ag-header-cell-menu-button:focus .ag-header-actions .ag-header-cell-menu-button[data-v-08855a14]{opacity:1}.pv-table-row-number[data-v-ae67b797]{padding:8px 12px 8px 0;text-align:center;color:#89989b}.pv-table-overlay{position:absolute;margin-top:20px;z-index:2;background:#fff;width:100%;top:50%;left:50%;height:95%;transform:translate(-50%,-50%);pointer-events:none}.ag-header-cell-resize{border:none!important}.ag-row-group-leaf-indent{padding-left:7px;margin-left:0}.ag-custom-loading-cell{width:100%;height:40%;margin:15px;background-color:#ccc;border-radius:4px}.ag-group-value{width:100%}.ag-menu-option:hover{background-color:#f7f8f8}.ag-menu-option:active{background-color:#e8f2f4}.ag-menu-option-text{font-family:Inter,sans-serif}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
2
  import { defineComponent as Pe, mergeModels as Jo, useTemplateRef as pi, ref as Y, toRefs as lf, watch as rt, useModel as Ri, getCurrentInstance as ci, createElementBlock as z, onMounted as No, markRaw as df, onUnmounted as cf, openBlock as k, mergeDefaults as uf, toRaw as Cd, isRef as ml, isReactive as hf, isProxy as pf, createVNode as Le, render as bd, toRef as gf, readonly as gu, customRef as ff, shallowRef as En, toValue as Je, nextTick as rs, getCurrentScope as mf, onScopeDispose as vf, computed as K, unref as oe, normalizeStyle as xi, renderSlot as Ct, withDirectives as Xi, createElementVNode as Q, createBlock as Se, normalizeClass as Be, createTextVNode as ro, Teleport as vl, withCtx as Ze, createCommentVNode as ee, onBeforeMount as Cl, Fragment as $e, toDisplayString as xe, withModifiers as nr, vModelText as Cf, resolveDynamicComponent as _s, normalizeProps as Qi, mergeProps as zs, renderList as Po, vShow as bf, vModelDynamic as wf, vModelCheckbox as yf, inject as it, onBeforeUnmount as Sf, createSlots as wd, guardReactiveProps as yd, provide as At } from "vue";
3
3
  var To = class {
4
4
  constructor() {
@@ -43102,7 +43102,7 @@ const fl = Symbol("FilterStoreKey"), F_ = Symbol("FocusDataKey"), Wg = Symbol("S
43102
43102
  const { focuses: e, focusType: t } = it(F_, {
43103
43103
  focuses: Y([]),
43104
43104
  focusType: Y(null)
43105
- }), o = (n) => n ? e.value.includes(n) : !1, i = (n) => {
43105
+ }), o = (n, a) => !n || !a ? !1 : e.value.includes(n) && t.value === a, i = (n) => {
43106
43106
  e.value = e.value.filter((a) => a !== n), e.value.length === 0 && (t.value = null);
43107
43107
  };
43108
43108
  return {
@@ -43272,7 +43272,7 @@ const N_ = /* @__PURE__ */ Ro(G_, [["render", B_]]), H_ = { class: "pv-table-gro
43272
43272
  const y = v.node.expanded, R = v.node.rowIndex;
43273
43273
  R != null && (s.value[R] = y);
43274
43274
  }, { isFocused: p, focuses: g } = us(), f = K(
43275
- () => p(r.value.key) ? "pv-flex" : ""
43275
+ () => p(r.value.key, r.value.field) ? "pv-flex" : ""
43276
43276
  ), m = K(() => {
43277
43277
  const v = g.value;
43278
43278
  return r.value.key && v.includes(r.value.key);
@@ -43304,7 +43304,7 @@ const N_ = /* @__PURE__ */ Ro(G_, [["render", B_]]), H_ = { class: "pv-table-gro
43304
43304
  m.value ? (k(), z("div", $_, [
43305
43305
  Le(rr, {
43306
43306
  variant: "dark",
43307
- tooltipPosition: "center-right",
43307
+ tooltipPosition: "center-left",
43308
43308
  size: "sm"
43309
43309
  }, {
43310
43310
  label: Ze(() => [
@@ -43546,14 +43546,17 @@ const K_ = (e) => {
43546
43546
  }, {
43547
43547
  label: Ze(() => [
43548
43548
  Le(ht, {
43549
- class: Be(["pv-space-between", oe(o)(s.id) ? "" : "focus-button"]),
43549
+ class: Be([
43550
+ "pv-space-between",
43551
+ oe(o)(s.id, t.rendererProps?.filterField) ? "" : "focus-button"
43552
+ ]),
43550
43553
  variant: "ghost",
43551
43554
  "left-icon": "focus",
43552
43555
  onClick: r[0] || (r[0] = (n) => i(s.id))
43553
43556
  }, null, 8, ["class"])
43554
43557
  ]),
43555
43558
  "tooltip-content": Ze(() => [
43556
- oe(o)(s.id) ? (k(), z("span", J_, " Remove Focus ")) : (k(), z("span", ez, " Select as Focus "))
43559
+ oe(o)(s.id, t.rendererProps?.filterField) ? (k(), z("span", J_, " Remove Focus ")) : (k(), z("span", ez, " Select as Focus "))
43557
43560
  ]),
43558
43561
  _: 1
43559
43562
  })
@@ -43674,6 +43677,7 @@ const K_ = (e) => {
43674
43677
  disabled: ze(ie),
43675
43678
  renderer: Ee(y.value) ? tz : U.value,
43676
43679
  rendererProps: {
43680
+ filterField: y.value,
43677
43681
  onFocusUpdate: at
43678
43682
  },
43679
43683
  classList: ["option-label"]
@@ -43685,7 +43689,7 @@ const K_ = (e) => {
43685
43689
  })),
43686
43690
  set: (B) => {
43687
43691
  b.value = B.map((ie) => ie.id), we(), he.value.forEach((ie) => {
43688
- !b.value.includes(ie) && Te.value === y.value && te(ie);
43692
+ !b.value.includes(ie) && Te.value === y.value && (i("focus-update", {}), te(ie));
43689
43693
  }), i("filter-selection-changed");
43690
43694
  }
43691
43695
  });
@@ -43731,7 +43735,7 @@ const K_ = (e) => {
43731
43735
  const De = (B) => {
43732
43736
  B && G.value ? b.value = [B] : B && !b.value.includes(B) && (b.value = [...b.value, B]), we(), i("filter-selection-changed");
43733
43737
  }, Oe = (B) => {
43734
- b.value = b.value.filter((ie) => ie !== B), we(), i("filter-selection-changed"), be(B) && (i("focus-update", {}), te(B));
43738
+ b.value = b.value.filter((ie) => ie !== B), we(), i("filter-selection-changed"), be(B, y.value) && (i("focus-update", {}), te(B));
43735
43739
  }, we = () => {
43736
43740
  const B = b.value.length > 0 ? b.value : null;
43737
43741
  if (F.value) {
@@ -43882,7 +43886,7 @@ const K_ = (e) => {
43882
43886
  ])) : ee("", !0)
43883
43887
  ], 64));
43884
43888
  }
43885
- }), nu = /* @__PURE__ */ Ro(cz, [["__scopeId", "data-v-15b1e2de"]]), uz = { class: "pv-flex" }, hz = { class: "pv-flex" }, pz = {
43889
+ }), nu = /* @__PURE__ */ Ro(cz, [["__scopeId", "data-v-0316bc36"]]), uz = { class: "pv-flex" }, hz = { class: "pv-flex" }, pz = {
43886
43890
  id: "filter-vertical-drawer",
43887
43891
  class: "pv-flex-vertical pv-space-between pv-full-width",
43888
43892
  style: { height: "100%", "overflow-x": "hidden" }