@pocketprep/ui-kit 3.4.30 → 3.4.32

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.
@@ -4192,8 +4192,8 @@ var cn = { exports: {} };
4192
4192
  }), this.getMargins(), ee.forEach(function(Ye) {
4193
4193
  Ye.isDirty && (Ie = !0);
4194
4194
  }), ee.forEach(function(Ye) {
4195
- var st = Ye.min + "," + Ye.max;
4196
- Ye.extKey !== st && (Ye.extKey = st, Se.push(function() {
4195
+ var nt = Ye.min + "," + Ye.max;
4196
+ Ye.extKey !== nt && (Ye.extKey = nt, Se.push(function() {
4197
4197
  q(Ye, "afterSetExtremes", z(Ye.eventArgs, Ye.getExtremes())), delete Ye.eventArgs;
4198
4198
  })), (Ie || Te) && Ye.redraw();
4199
4199
  }), Ie && this.drawChartBox(), q(this, "predraw"), re.forEach(function(Ye) {
@@ -4343,12 +4343,12 @@ var cn = { exports: {} };
4343
4343
  $[re] = se($.margin[he], $.spacing[he]);
4344
4344
  }), $.axisOffset = [0, 0, 0, 0], $.clipOffset = [0, 0, 0, 0];
4345
4345
  }, ae.prototype.drawChartBox = function() {
4346
- var $ = this.options.chart, ee = this.renderer, re = this.chartWidth, he = this.chartHeight, ce = this.styledMode, Ae = this.plotBGImage, Ee = $.backgroundColor, Pe = $.plotBackgroundColor, Se = $.plotBackgroundImage, Ie = this.plotLeft, Qe = this.plotTop, qe = this.plotWidth, Te = this.plotHeight, We = this.plotBox, Ye = this.clipRect, st = this.clipBox, ot = this.chartBackground, $e = this.plotBackground, ei = this.plotBorder, nt, Et = "animate";
4346
+ var $ = this.options.chart, ee = this.renderer, re = this.chartWidth, he = this.chartHeight, ce = this.styledMode, Ae = this.plotBGImage, Ee = $.backgroundColor, Pe = $.plotBackgroundColor, Se = $.plotBackgroundImage, Ie = this.plotLeft, Qe = this.plotTop, qe = this.plotWidth, Te = this.plotHeight, We = this.plotBox, Ye = this.clipRect, nt = this.clipBox, ot = this.chartBackground, $e = this.plotBackground, ei = this.plotBorder, rt, Et = "animate";
4347
4347
  if (ot || (this.chartBackground = ot = ee.rect().addClass("highcharts-background").add(), Et = "attr"), ce)
4348
- var Bt = nt = ot.strokeWidth();
4348
+ var Bt = rt = ot.strokeWidth();
4349
4349
  else
4350
- Bt = $.borderWidth || 0, nt = Bt + ($.shadow ? 8 : 0), Ee = { fill: Ee || "none" }, (Bt || ot["stroke-width"]) && (Ee.stroke = $.borderColor, Ee["stroke-width"] = Bt), ot.attr(Ee).shadow($.shadow);
4351
- ot[Et]({ x: nt / 2, y: nt / 2, width: re - nt - Bt % 2, height: he - nt - Bt % 2, r: $.borderRadius }), Et = "animate", $e || (Et = "attr", this.plotBackground = $e = ee.rect().addClass("highcharts-plot-background").add()), $e[Et](We), ce || ($e.attr({ fill: Pe || "none" }).shadow($.plotShadow), Se && (Ae ? (Se !== Ae.attr("href") && Ae.attr("href", Se), Ae.animate(We)) : this.plotBGImage = ee.image(Se, Ie, Qe, qe, Te).add())), Ye ? Ye.animate({ width: st.width, height: st.height }) : this.clipRect = ee.clipRect(st), Et = "animate", ei || (Et = "attr", this.plotBorder = ei = ee.rect().addClass("highcharts-plot-border").attr({ zIndex: 1 }).add()), ce || ei.attr({ stroke: $.plotBorderColor, "stroke-width": $.plotBorderWidth || 0, fill: "none" }), ei[Et](ei.crisp({ x: Ie, y: Qe, width: qe, height: Te }, -ei.strokeWidth())), this.isDirtyBox = !1, q(this, "afterDrawChartBox");
4350
+ Bt = $.borderWidth || 0, rt = Bt + ($.shadow ? 8 : 0), Ee = { fill: Ee || "none" }, (Bt || ot["stroke-width"]) && (Ee.stroke = $.borderColor, Ee["stroke-width"] = Bt), ot.attr(Ee).shadow($.shadow);
4351
+ ot[Et]({ x: rt / 2, y: rt / 2, width: re - rt - Bt % 2, height: he - rt - Bt % 2, r: $.borderRadius }), Et = "animate", $e || (Et = "attr", this.plotBackground = $e = ee.rect().addClass("highcharts-plot-background").add()), $e[Et](We), ce || ($e.attr({ fill: Pe || "none" }).shadow($.plotShadow), Se && (Ae ? (Se !== Ae.attr("href") && Ae.attr("href", Se), Ae.animate(We)) : this.plotBGImage = ee.image(Se, Ie, Qe, qe, Te).add())), Ye ? Ye.animate({ width: nt.width, height: nt.height }) : this.clipRect = ee.clipRect(nt), Et = "animate", ei || (Et = "attr", this.plotBorder = ei = ee.rect().addClass("highcharts-plot-border").attr({ zIndex: 1 }).add()), ce || ei.attr({ stroke: $.plotBorderColor, "stroke-width": $.plotBorderWidth || 0, fill: "none" }), ei[Et](ei.crisp({ x: Ie, y: Qe, width: qe, height: Te }, -ei.strokeWidth())), this.isDirtyBox = !1, q(this, "afterDrawChartBox");
4352
4352
  }, ae.prototype.propFromSeries = function() {
4353
4353
  var $ = this, ee = $.options.chart, re = $.options.series, he, ce, Ae;
4354
4354
  ["inverted", "angular", "polar"].forEach(function(Ee) {
@@ -4474,11 +4474,11 @@ var cn = { exports: {} };
4474
4474
  }), this.collectionsWithUpdate.forEach(function(Te) {
4475
4475
  if ($[Te]) {
4476
4476
  var We = [];
4477
- ce[Te].forEach(function(Ye, st) {
4478
- Ye.options.isInternal || We.push(se(Ye.options.index, st));
4479
- }), pe($[Te]).forEach(function(Ye, st) {
4477
+ ce[Te].forEach(function(Ye, nt) {
4478
+ Ye.options.isInternal || We.push(se(Ye.options.index, nt));
4479
+ }), pe($[Te]).forEach(function(Ye, nt) {
4480
4480
  var ot = N(Ye.id), $e;
4481
- ot && ($e = ce.get(Ye.id)), !$e && ce[Te] && ($e = ce[Te][We ? We[st] : st]) && ot && N($e.options.id) && ($e = void 0), $e && $e.coll === Te && ($e.update(Ye, !1), re && ($e.touched = !0)), !$e && re && ce.collectionsWithInit[Te] && (ce.collectionsWithInit[Te][0].apply(ce, [Ye].concat(ce.collectionsWithInit[Te][1] || []).concat([!1])).touched = !0);
4481
+ ot && ($e = ce.get(Ye.id)), !$e && ce[Te] && ($e = ce[Te][We ? We[nt] : nt]) && ot && N($e.options.id) && ($e = void 0), $e && $e.coll === Te && ($e.update(Ye, !1), re && ($e.touched = !0)), !$e && re && ce.collectionsWithInit[Te] && (ce.collectionsWithInit[Te][0].apply(ce, [Ye].concat(ce.collectionsWithInit[Te][1] || []).concat([!1])).touched = !0);
4482
4482
  }), re && ce[Te].forEach(function(Ye) {
4483
4483
  Ye.touched || Ye.options.isInternal ? delete Ye.touched : Pe.push(Ye);
4484
4484
  });
@@ -4531,13 +4531,13 @@ var cn = { exports: {} };
4531
4531
  if (Ie.options.panningEnabled && !Ie.options.isInternal) {
4532
4532
  var Qe = Ie.horiz, qe = $[Qe ? "chartX" : "chartY"];
4533
4533
  Qe = Qe ? "mouseDownX" : "mouseDownY";
4534
- var Te = re[Qe], We = Ie.minPointOffset || 0, Ye = Ie.reversed && !re.inverted || !Ie.reversed && re.inverted ? -1 : 1, st = Ie.getExtremes(), ot = Ie.toValue(Te - qe, !0) + We * Ye, $e = Ie.toValue(Te + Ie.len - qe, !0) - (We * Ye || Ie.isXAxis && Ie.pointRangePadding || 0), ei = $e < ot;
4534
+ var Te = re[Qe], We = Ie.minPointOffset || 0, Ye = Ie.reversed && !re.inverted || !Ie.reversed && re.inverted ? -1 : 1, nt = Ie.getExtremes(), ot = Ie.toValue(Te - qe, !0) + We * Ye, $e = Ie.toValue(Te + Ie.len - qe, !0) - (We * Ye || Ie.isXAxis && Ie.pointRangePadding || 0), ei = $e < ot;
4535
4535
  Ye = Ie.hasVerticalPanning(), Te = ei ? $e : ot, ot = ei ? ot : $e;
4536
- var nt = Ie.panningState;
4537
- !Ye || Ie.isXAxis || nt && !nt.isDirty || Ie.series.forEach(function(Et) {
4536
+ var rt = Ie.panningState;
4537
+ !Ye || Ie.isXAxis || rt && !rt.isDirty || Ie.series.forEach(function(Et) {
4538
4538
  var Bt = Et.getProcessedData(!0);
4539
- Bt = Et.getExtremes(Bt.yData, !0), nt || (nt = { startMin: Number.MAX_VALUE, startMax: -Number.MAX_VALUE }), R(Bt.dataMin) && R(Bt.dataMax) && (nt.startMin = Math.min(se(Et.options.threshold, 1 / 0), Bt.dataMin, nt.startMin), nt.startMax = Math.max(se(Et.options.threshold, -1 / 0), Bt.dataMax, nt.startMax));
4540
- }), Ye = Math.min(se(nt && nt.startMin, st.dataMin), We ? st.min : Ie.toValue(Ie.toPixels(st.min) - Ie.minPixelPadding)), $e = Math.max(se(nt && nt.startMax, st.dataMax), We ? st.max : Ie.toValue(Ie.toPixels(st.max) + Ie.minPixelPadding)), Ie.panningState = nt, Ie.isOrdinal || (We = Ye - Te, 0 < We && (ot += We, Te = Ye), We = ot - $e, 0 < We && (ot = $e, Te -= We), Ie.series.length && Te !== st.min && ot !== st.max && Te >= Ye && ot <= $e && (Ie.setExtremes(Te, ot, !1, !1, { trigger: "pan" }), !re.resetZoomButton && Te !== Ye && ot !== $e && Ae.match("y") && (re.showResetZoom(), Ie.displayBtn = !1), Ee = !0), Se[Qe] = qe);
4539
+ Bt = Et.getExtremes(Bt.yData, !0), rt || (rt = { startMin: Number.MAX_VALUE, startMax: -Number.MAX_VALUE }), R(Bt.dataMin) && R(Bt.dataMax) && (rt.startMin = Math.min(se(Et.options.threshold, 1 / 0), Bt.dataMin, rt.startMin), rt.startMax = Math.max(se(Et.options.threshold, -1 / 0), Bt.dataMax, rt.startMax));
4540
+ }), Ye = Math.min(se(rt && rt.startMin, nt.dataMin), We ? nt.min : Ie.toValue(Ie.toPixels(nt.min) - Ie.minPixelPadding)), $e = Math.max(se(rt && rt.startMax, nt.dataMax), We ? nt.max : Ie.toValue(Ie.toPixels(nt.max) + Ie.minPixelPadding)), Ie.panningState = rt, Ie.isOrdinal || (We = Ye - Te, 0 < We && (ot += We, Te = Ye), We = ot - $e, 0 < We && (ot = $e, Te -= We), Ie.series.length && Te !== nt.min && ot !== nt.max && Te >= Ye && ot <= $e && (Ie.setExtremes(Te, ot, !1, !1, { trigger: "pan" }), !re.resetZoomButton && Te !== Ye && ot !== $e && Ae.match("y") && (re.showResetZoom(), Ie.displayBtn = !1), Ee = !0), Se[Qe] = qe);
4541
4541
  }
4542
4542
  }), te(Se, function(Ie, Qe) {
4543
4543
  re[Qe] = Ie;
@@ -13418,7 +13418,7 @@ function t7(e, i, s, o, t, n) {
13418
13418
  ]);
13419
13419
  }
13420
13420
  const i7 = /* @__PURE__ */ me(Bi, [["render", t7]]);
13421
- var o7 = Object.defineProperty, s7 = Object.getOwnPropertyDescriptor, at = (e, i, s, o) => {
13421
+ var o7 = Object.defineProperty, s7 = Object.getOwnPropertyDescriptor, st = (e, i, s, o) => {
13422
13422
  for (var t = o > 1 ? void 0 : o ? s7(i, s) : i, n = e.length - 1, r; n >= 0; n--)
13423
13423
  (r = e[n]) && (t = (o ? r(i, s, t) : r(t)) || t);
13424
13424
  return o && t && o7(i, s, t), t;
@@ -13439,6 +13439,8 @@ let tt = class extends we {
13439
13439
  Y(this, "error");
13440
13440
  Y(this, "openMenuAbove");
13441
13441
  Y(this, "isDarkMode");
13442
+ Y(this, "dropdownOverride");
13443
+ // Can override the icon to be an X instead
13442
13444
  Y(this, "hover", !1);
13443
13445
  Y(this, "focus", !1);
13444
13446
  Y(this, "showDropdown", !1);
@@ -13460,7 +13462,7 @@ let tt = class extends we {
13460
13462
  }
13461
13463
  blurMenu(s) {
13462
13464
  var o;
13463
- ((o = s == null ? void 0 : s.relatedTarget) == null ? void 0 : o.tagName) !== "LI" && (this.focus = !1, this.showDropdown = !1, this.typeahead && !this.searchText && this.emitUpdateModelValue(null), this.typeahead && this.searchText && this.filteredData.length < 1 ? (this.emitUpdateModelValue(null), this.searchText = "") : this.typeahead && this.searchText && this.filteredData[0] && this.emitUpdateModelValue(this.filteredData[0]));
13465
+ ((o = s == null ? void 0 : s.relatedTarget) == null ? void 0 : o.tagName) !== "LI" && (this.focus = !1, this.showDropdown = !1, this.typeahead && !this.searchText && this.emitUpdateModelValue(null), this.typeahead && this.searchText && this.filteredData.length < 1 && !this.dropdownOverride ? (this.emitUpdateModelValue(null), this.searchText = "") : this.typeahead && this.searchText && this.filteredData[0] && this.emitUpdateModelValue(this.filteredData[0]));
13464
13466
  }
13465
13467
  updateMenuHeight() {
13466
13468
  if (this.openMenuAbove) {
@@ -13518,6 +13520,9 @@ let tt = class extends we {
13518
13520
  selectItem(s) {
13519
13521
  s && (this.showDropdown = !1), s.type === "link" ? this.emitLinkClick(s.value ? s : null) : this.emitUpdateModelValue(s.value ? s : null);
13520
13522
  }
13523
+ performCloseActions() {
13524
+ this.searchText ? this.searchText = "" : this.showDropdown = !1;
13525
+ }
13521
13526
  showDropdownChanged(s) {
13522
13527
  this.emitOpenDropdown(s);
13523
13528
  }
@@ -13543,64 +13548,67 @@ let tt = class extends we {
13543
13548
  return s;
13544
13549
  }
13545
13550
  };
13546
- at([
13551
+ st([
13547
13552
  W()
13548
13553
  ], tt.prototype, "label", 2);
13549
- at([
13554
+ st([
13550
13555
  W()
13551
13556
  ], tt.prototype, "modelValue", 2);
13552
- at([
13557
+ st([
13553
13558
  W()
13554
13559
  ], tt.prototype, "subtext", 2);
13555
- at([
13560
+ st([
13556
13561
  W()
13557
13562
  ], tt.prototype, "placeholder", 2);
13558
- at([
13563
+ st([
13559
13564
  W()
13560
13565
  ], tt.prototype, "data", 2);
13561
- at([
13566
+ st([
13562
13567
  W()
13563
13568
  ], tt.prototype, "disabled", 2);
13564
- at([
13569
+ st([
13565
13570
  W()
13566
13571
  ], tt.prototype, "autoFocus", 2);
13567
- at([
13572
+ st([
13568
13573
  W()
13569
13574
  ], tt.prototype, "showEmptyOption", 2);
13570
- at([
13575
+ st([
13571
13576
  W()
13572
13577
  ], tt.prototype, "emptyOptionLabel", 2);
13573
- at([
13578
+ st([
13574
13579
  W()
13575
13580
  ], tt.prototype, "typeahead", 2);
13576
- at([
13581
+ st([
13577
13582
  W()
13578
13583
  ], tt.prototype, "error", 2);
13579
- at([
13584
+ st([
13580
13585
  W()
13581
13586
  ], tt.prototype, "openMenuAbove", 2);
13582
- at([
13587
+ st([
13583
13588
  W({ default: !1 })
13584
13589
  ], tt.prototype, "isDarkMode", 2);
13585
- at([
13590
+ st([
13591
+ W({ default: !1 })
13592
+ ], tt.prototype, "dropdownOverride", 2);
13593
+ st([
13586
13594
  it("showDropdown")
13587
13595
  ], tt.prototype, "showDropdownChanged", 1);
13588
- at([
13596
+ st([
13589
13597
  it("modelValue")
13590
13598
  ], tt.prototype, "valueChanged", 1);
13591
- at([
13599
+ st([
13592
13600
  it("searchText")
13593
13601
  ], tt.prototype, "searchTextChanged", 1);
13594
- at([
13602
+ st([
13595
13603
  De("update:modelValue")
13596
13604
  ], tt.prototype, "emitUpdateModelValue", 1);
13597
- at([
13605
+ st([
13598
13606
  De("linkClick")
13599
13607
  ], tt.prototype, "emitLinkClick", 1);
13600
- at([
13608
+ st([
13601
13609
  De("openDropdown")
13602
13610
  ], tt.prototype, "emitOpenDropdown", 1);
13603
- tt = at([
13611
+ tt = st([
13604
13612
  ve({
13605
13613
  components: {
13606
13614
  Icon: Ue
@@ -13697,7 +13705,15 @@ function h7(e, i, s, o, t, n) {
13697
13705
  ], 2)), [
13698
13706
  [O, e.isDarkMode]
13699
13707
  ]),
13700
- le(Ge(r, {
13708
+ e.dropdownOverride ? le((U(), Me(r, {
13709
+ key: 3,
13710
+ type: "close",
13711
+ class: "uikit-select__x",
13712
+ onClick: e.performCloseActions
13713
+ }, null, 8, ["onClick"])), [
13714
+ [O, e.isDarkMode]
13715
+ ]) : le((U(), Me(r, {
13716
+ key: 2,
13701
13717
  type: "accordionArrow",
13702
13718
  class: Le(["uikit-select__arrow", {
13703
13719
  "uikit-select__arrow--hover": e.hover,
@@ -13705,7 +13721,7 @@ function h7(e, i, s, o, t, n) {
13705
13721
  "uikit-select__arrow--show-dropdown": e.showDropdown
13706
13722
  }]),
13707
13723
  onClick: i[6] || (i[6] = (k) => e.showDropdown = !0)
13708
- }, null, 8, ["class"]), [
13724
+ }, null, 8, ["class"])), [
13709
13725
  [O, e.isDarkMode]
13710
13726
  ]),
13711
13727
  le((U(), ie("ul", {
@@ -13756,7 +13772,7 @@ var c7 = Object.defineProperty, p7 = Object.getOwnPropertyDescriptor, pt = (e, i
13756
13772
  (r = e[n]) && (t = (o ? r(i, s, t) : r(t)) || t);
13757
13773
  return o && t && c7(i, s, t), t;
13758
13774
  };
13759
- let rt = class extends we {
13775
+ let at = class extends we {
13760
13776
  constructor() {
13761
13777
  super(...arguments);
13762
13778
  Y(this, "label");
@@ -13791,56 +13807,56 @@ let rt = class extends we {
13791
13807
  };
13792
13808
  pt([
13793
13809
  W()
13794
- ], rt.prototype, "label", 2);
13810
+ ], at.prototype, "label", 2);
13795
13811
  pt([
13796
13812
  W({ default: "text" })
13797
- ], rt.prototype, "fieldType", 2);
13813
+ ], at.prototype, "fieldType", 2);
13798
13814
  pt([
13799
13815
  W({ default: "" })
13800
- ], rt.prototype, "placeholder", 2);
13816
+ ], at.prototype, "placeholder", 2);
13801
13817
  pt([
13802
13818
  W({ default: "524288" })
13803
- ], rt.prototype, "maxlength", 2);
13819
+ ], at.prototype, "maxlength", 2);
13804
13820
  pt([
13805
13821
  W({ default: !1 })
13806
- ], rt.prototype, "center", 2);
13822
+ ], at.prototype, "center", 2);
13807
13823
  pt([
13808
13824
  W()
13809
- ], rt.prototype, "modelValue", 2);
13825
+ ], at.prototype, "modelValue", 2);
13810
13826
  pt([
13811
13827
  W({ default: !1 })
13812
- ], rt.prototype, "disabled", 2);
13828
+ ], at.prototype, "disabled", 2);
13813
13829
  pt([
13814
13830
  W({ default: !1 })
13815
- ], rt.prototype, "autoFocus", 2);
13831
+ ], at.prototype, "autoFocus", 2);
13816
13832
  pt([
13817
13833
  W({ default: !1 })
13818
- ], rt.prototype, "error", 2);
13834
+ ], at.prototype, "error", 2);
13819
13835
  pt([
13820
13836
  W({ default: 0 })
13821
- ], rt.prototype, "tabindex", 2);
13837
+ ], at.prototype, "tabindex", 2);
13822
13838
  pt([
13823
13839
  W({ default: !1 })
13824
- ], rt.prototype, "isDarkMode", 2);
13840
+ ], at.prototype, "isDarkMode", 2);
13825
13841
  pt([
13826
13842
  W({ default: !1 })
13827
- ], rt.prototype, "ariaRequired", 2);
13843
+ ], at.prototype, "ariaRequired", 2);
13828
13844
  pt([
13829
13845
  W({ default: "" })
13830
- ], rt.prototype, "name", 2);
13846
+ ], at.prototype, "name", 2);
13831
13847
  pt([
13832
13848
  W({ default: !1 })
13833
- ], rt.prototype, "forceHoverStyle", 2);
13849
+ ], at.prototype, "forceHoverStyle", 2);
13834
13850
  pt([
13835
13851
  W({ default: !1 })
13836
- ], rt.prototype, "forceFocusStyle", 2);
13852
+ ], at.prototype, "forceFocusStyle", 2);
13837
13853
  pt([
13838
13854
  W({ default: !1 })
13839
- ], rt.prototype, "hideInputCaret", 2);
13855
+ ], at.prototype, "hideInputCaret", 2);
13840
13856
  pt([
13841
13857
  De("update:modelValue")
13842
- ], rt.prototype, "valueChange", 1);
13843
- rt = pt([
13858
+ ], at.prototype, "valueChange", 1);
13859
+ at = pt([
13844
13860
  ve({
13845
13861
  components: {
13846
13862
  Icon: Ue
@@ -13849,7 +13865,7 @@ rt = pt([
13849
13865
  dark: je
13850
13866
  }
13851
13867
  })
13852
- ], rt);
13868
+ ], at);
13853
13869
  const u7 = ["id"], g7 = {
13854
13870
  key: 1,
13855
13871
  class: "uikit-input__password-container"
@@ -13948,7 +13964,7 @@ function m7(e, i, s, o, t, n) {
13948
13964
  Be(e.$slots, "default")
13949
13965
  ], 32);
13950
13966
  }
13951
- const xr = /* @__PURE__ */ me(rt, [["render", m7]]);
13967
+ const xr = /* @__PURE__ */ me(at, [["render", m7]]);
13952
13968
  var v7 = Object.defineProperty, w7 = Object.getOwnPropertyDescriptor, Xt = (e, i, s, o) => {
13953
13969
  for (var t = o > 1 ? void 0 : o ? w7(i, s) : i, n = e.length - 1, r; n >= 0; n--)
13954
13970
  (r = e[n]) && (t = (o ? r(i, s, t) : r(t)) || t);