@getlupa/client 1.11.5 → 1.11.6

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.
@@ -8451,7 +8451,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8451
8451
  const _hoisted_3$A = { id: "lupa-search-box-input" };
8452
8452
  const _hoisted_4$s = ["value"];
8453
8453
  const _hoisted_5$h = ["aria-label", "placeholder"];
8454
- const _hoisted_6$9 = {
8454
+ const _hoisted_6$9 = /* @__PURE__ */ createBaseVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
8455
+ const _hoisted_7$7 = [
8456
+ _hoisted_6$9
8457
+ ];
8458
+ const _hoisted_8$3 = {
8455
8459
  key: 0,
8456
8460
  class: "lupa-close-label"
8457
8461
  };
@@ -8463,7 +8467,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8463
8467
  emitInputOnFocus: { type: Boolean },
8464
8468
  suggestedValue: {}
8465
8469
  },
8466
- emits: ["input", "focus"],
8470
+ emits: ["input", "focus", "search"],
8467
8471
  setup(__props, { expose: __expose, emit: emit2 }) {
8468
8472
  const props = __props;
8469
8473
  const paramStore = useParamsStore();
@@ -8524,6 +8528,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8524
8528
  handleInput();
8525
8529
  }
8526
8530
  };
8531
+ const handleSubmit = () => {
8532
+ emit2("search");
8533
+ };
8527
8534
  const clear2 = () => {
8528
8535
  emit2("input", "");
8529
8536
  };
@@ -8565,14 +8572,18 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8565
8572
  onFocus: handleFocus
8566
8573
  }), null, 16, _hoisted_5$h), [
8567
8574
  [vModelText, inputValue.value]
8568
- ])
8575
+ ]),
8576
+ _ctx.options.showSubmitButton ? (openBlock(), createElementBlock("button", {
8577
+ key: 0,
8578
+ onClick: handleSubmit
8579
+ }, _hoisted_7$7)) : createCommentVNode("", true)
8569
8580
  ]),
8570
8581
  _ctx.canClose ? (openBlock(), createElementBlock("div", {
8571
8582
  key: 0,
8572
8583
  class: "lupa-close-search-container",
8573
8584
  onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
8574
8585
  }, [
8575
- labels.value.close ? (openBlock(), createElementBlock("span", _hoisted_6$9, toDisplayString(labels.value.close), 1)) : createCommentVNode("", true)
8586
+ labels.value.close ? (openBlock(), createElementBlock("span", _hoisted_8$3, toDisplayString(labels.value.close), 1)) : createCommentVNode("", true)
8576
8587
  ])) : createCommentVNode("", true)
8577
8588
  ]);
8578
8589
  };
@@ -10653,7 +10664,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10653
10664
  return suggestedValue.value.override ? suggestedValue.value.item.suggestion : inputValue.value;
10654
10665
  });
10655
10666
  const inputOptions = computed(
10656
- () => pick(props.options, ["minInputLength", "labels", "links", "inputAttributes"])
10667
+ () => pick(props.options, [
10668
+ "minInputLength",
10669
+ "labels",
10670
+ "links",
10671
+ "inputAttributes",
10672
+ "showSubmitButton"
10673
+ ])
10657
10674
  );
10658
10675
  const panelOptions = computed(
10659
10676
  () => pick(props.options, [
@@ -10880,6 +10897,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10880
10897
  ref: searchBoxInput,
10881
10898
  onInput: handleInput,
10882
10899
  onFocus: _cache[0] || (_cache[0] = ($event) => opened.value = true),
10900
+ onSearch: handleSearch,
10883
10901
  onClose: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
10884
10902
  }, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
10885
10903
  opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$W, {
@@ -8451,7 +8451,11 @@ const _hoisted_2$Q = { class: "lupa-input-clear" };
8451
8451
  const _hoisted_3$A = { id: "lupa-search-box-input" };
8452
8452
  const _hoisted_4$s = ["value"];
8453
8453
  const _hoisted_5$h = ["aria-label", "placeholder"];
8454
- const _hoisted_6$9 = {
8454
+ const _hoisted_6$9 = /* @__PURE__ */ createBaseVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
8455
+ const _hoisted_7$7 = [
8456
+ _hoisted_6$9
8457
+ ];
8458
+ const _hoisted_8$3 = {
8455
8459
  key: 0,
8456
8460
  class: "lupa-close-label"
8457
8461
  };
@@ -8463,7 +8467,7 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
8463
8467
  emitInputOnFocus: { type: Boolean },
8464
8468
  suggestedValue: {}
8465
8469
  },
8466
- emits: ["input", "focus"],
8470
+ emits: ["input", "focus", "search"],
8467
8471
  setup(__props, { expose: __expose, emit: emit2 }) {
8468
8472
  const props = __props;
8469
8473
  const paramStore = useParamsStore();
@@ -8524,6 +8528,9 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
8524
8528
  handleInput();
8525
8529
  }
8526
8530
  };
8531
+ const handleSubmit = () => {
8532
+ emit2("search");
8533
+ };
8527
8534
  const clear2 = () => {
8528
8535
  emit2("input", "");
8529
8536
  };
@@ -8565,14 +8572,18 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
8565
8572
  onFocus: handleFocus
8566
8573
  }), null, 16, _hoisted_5$h), [
8567
8574
  [vModelText, inputValue.value]
8568
- ])
8575
+ ]),
8576
+ _ctx.options.showSubmitButton ? (openBlock(), createElementBlock("button", {
8577
+ key: 0,
8578
+ onClick: handleSubmit
8579
+ }, _hoisted_7$7)) : createCommentVNode("", true)
8569
8580
  ]),
8570
8581
  _ctx.canClose ? (openBlock(), createElementBlock("div", {
8571
8582
  key: 0,
8572
8583
  class: "lupa-close-search-container",
8573
8584
  onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
8574
8585
  }, [
8575
- labels.value.close ? (openBlock(), createElementBlock("span", _hoisted_6$9, toDisplayString(labels.value.close), 1)) : createCommentVNode("", true)
8586
+ labels.value.close ? (openBlock(), createElementBlock("span", _hoisted_8$3, toDisplayString(labels.value.close), 1)) : createCommentVNode("", true)
8576
8587
  ])) : createCommentVNode("", true)
8577
8588
  ]);
8578
8589
  };
@@ -10653,7 +10664,13 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
10653
10664
  return suggestedValue.value.override ? suggestedValue.value.item.suggestion : inputValue.value;
10654
10665
  });
10655
10666
  const inputOptions = computed(
10656
- () => pick(props.options, ["minInputLength", "labels", "links", "inputAttributes"])
10667
+ () => pick(props.options, [
10668
+ "minInputLength",
10669
+ "labels",
10670
+ "links",
10671
+ "inputAttributes",
10672
+ "showSubmitButton"
10673
+ ])
10657
10674
  );
10658
10675
  const panelOptions = computed(
10659
10676
  () => pick(props.options, [
@@ -10880,6 +10897,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
10880
10897
  ref: searchBoxInput,
10881
10898
  onInput: handleInput,
10882
10899
  onFocus: _cache[0] || (_cache[0] = ($event) => opened.value = true),
10900
+ onSearch: handleSearch,
10883
10901
  onClose: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
10884
10902
  }, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
10885
10903
  opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$W, {
@@ -8449,7 +8449,11 @@ const _hoisted_2$Q = { class: "lupa-input-clear" };
8449
8449
  const _hoisted_3$A = { id: "lupa-search-box-input" };
8450
8450
  const _hoisted_4$s = ["value"];
8451
8451
  const _hoisted_5$h = ["aria-label", "placeholder"];
8452
- const _hoisted_6$9 = {
8452
+ const _hoisted_6$9 = /* @__PURE__ */ createBaseVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
8453
+ const _hoisted_7$7 = [
8454
+ _hoisted_6$9
8455
+ ];
8456
+ const _hoisted_8$3 = {
8453
8457
  key: 0,
8454
8458
  class: "lupa-close-label"
8455
8459
  };
@@ -8461,7 +8465,7 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
8461
8465
  emitInputOnFocus: { type: Boolean },
8462
8466
  suggestedValue: {}
8463
8467
  },
8464
- emits: ["input", "focus"],
8468
+ emits: ["input", "focus", "search"],
8465
8469
  setup(__props, { expose: __expose, emit: emit2 }) {
8466
8470
  const props = __props;
8467
8471
  const paramStore = useParamsStore();
@@ -8522,6 +8526,9 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
8522
8526
  handleInput();
8523
8527
  }
8524
8528
  };
8529
+ const handleSubmit = () => {
8530
+ emit2("search");
8531
+ };
8525
8532
  const clear2 = () => {
8526
8533
  emit2("input", "");
8527
8534
  };
@@ -8563,14 +8570,18 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
8563
8570
  onFocus: handleFocus
8564
8571
  }), null, 16, _hoisted_5$h), [
8565
8572
  [vModelText, inputValue.value]
8566
- ])
8573
+ ]),
8574
+ _ctx.options.showSubmitButton ? (openBlock(), createElementBlock("button", {
8575
+ key: 0,
8576
+ onClick: handleSubmit
8577
+ }, _hoisted_7$7)) : createCommentVNode("", true)
8567
8578
  ]),
8568
8579
  _ctx.canClose ? (openBlock(), createElementBlock("div", {
8569
8580
  key: 0,
8570
8581
  class: "lupa-close-search-container",
8571
8582
  onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
8572
8583
  }, [
8573
- labels.value.close ? (openBlock(), createElementBlock("span", _hoisted_6$9, toDisplayString(labels.value.close), 1)) : createCommentVNode("", true)
8584
+ labels.value.close ? (openBlock(), createElementBlock("span", _hoisted_8$3, toDisplayString(labels.value.close), 1)) : createCommentVNode("", true)
8574
8585
  ])) : createCommentVNode("", true)
8575
8586
  ]);
8576
8587
  };
@@ -10651,7 +10662,13 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
10651
10662
  return suggestedValue.value.override ? suggestedValue.value.item.suggestion : inputValue.value;
10652
10663
  });
10653
10664
  const inputOptions = computed(
10654
- () => pick(props.options, ["minInputLength", "labels", "links", "inputAttributes"])
10665
+ () => pick(props.options, [
10666
+ "minInputLength",
10667
+ "labels",
10668
+ "links",
10669
+ "inputAttributes",
10670
+ "showSubmitButton"
10671
+ ])
10655
10672
  );
10656
10673
  const panelOptions = computed(
10657
10674
  () => pick(props.options, [
@@ -10878,6 +10895,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
10878
10895
  ref: searchBoxInput,
10879
10896
  onInput: handleInput,
10880
10897
  onFocus: _cache[0] || (_cache[0] = ($event) => opened.value = true),
10898
+ onSearch: handleSearch,
10881
10899
  onClose: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
10882
10900
  }, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
10883
10901
  opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$W, {
@@ -8453,7 +8453,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8453
8453
  const _hoisted_3$A = { id: "lupa-search-box-input" };
8454
8454
  const _hoisted_4$s = ["value"];
8455
8455
  const _hoisted_5$h = ["aria-label", "placeholder"];
8456
- const _hoisted_6$9 = {
8456
+ const _hoisted_6$9 = /* @__PURE__ */ createBaseVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
8457
+ const _hoisted_7$7 = [
8458
+ _hoisted_6$9
8459
+ ];
8460
+ const _hoisted_8$3 = {
8457
8461
  key: 0,
8458
8462
  class: "lupa-close-label"
8459
8463
  };
@@ -8465,7 +8469,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8465
8469
  emitInputOnFocus: { type: Boolean },
8466
8470
  suggestedValue: {}
8467
8471
  },
8468
- emits: ["input", "focus"],
8472
+ emits: ["input", "focus", "search"],
8469
8473
  setup(__props, { expose: __expose, emit: emit2 }) {
8470
8474
  const props = __props;
8471
8475
  const paramStore = useParamsStore();
@@ -8526,6 +8530,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8526
8530
  handleInput();
8527
8531
  }
8528
8532
  };
8533
+ const handleSubmit = () => {
8534
+ emit2("search");
8535
+ };
8529
8536
  const clear2 = () => {
8530
8537
  emit2("input", "");
8531
8538
  };
@@ -8567,14 +8574,18 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8567
8574
  onFocus: handleFocus
8568
8575
  }), null, 16, _hoisted_5$h), [
8569
8576
  [vModelText, inputValue.value]
8570
- ])
8577
+ ]),
8578
+ _ctx.options.showSubmitButton ? (openBlock(), createElementBlock("button", {
8579
+ key: 0,
8580
+ onClick: handleSubmit
8581
+ }, _hoisted_7$7)) : createCommentVNode("", true)
8571
8582
  ]),
8572
8583
  _ctx.canClose ? (openBlock(), createElementBlock("div", {
8573
8584
  key: 0,
8574
8585
  class: "lupa-close-search-container",
8575
8586
  onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
8576
8587
  }, [
8577
- labels.value.close ? (openBlock(), createElementBlock("span", _hoisted_6$9, toDisplayString(labels.value.close), 1)) : createCommentVNode("", true)
8588
+ labels.value.close ? (openBlock(), createElementBlock("span", _hoisted_8$3, toDisplayString(labels.value.close), 1)) : createCommentVNode("", true)
8578
8589
  ])) : createCommentVNode("", true)
8579
8590
  ]);
8580
8591
  };
@@ -10655,7 +10666,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10655
10666
  return suggestedValue.value.override ? suggestedValue.value.item.suggestion : inputValue.value;
10656
10667
  });
10657
10668
  const inputOptions = computed(
10658
- () => pick(props.options, ["minInputLength", "labels", "links", "inputAttributes"])
10669
+ () => pick(props.options, [
10670
+ "minInputLength",
10671
+ "labels",
10672
+ "links",
10673
+ "inputAttributes",
10674
+ "showSubmitButton"
10675
+ ])
10659
10676
  );
10660
10677
  const panelOptions = computed(
10661
10678
  () => pick(props.options, [
@@ -10882,6 +10899,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10882
10899
  ref: searchBoxInput,
10883
10900
  onInput: handleInput,
10884
10901
  onFocus: _cache[0] || (_cache[0] = ($event) => opened.value = true),
10902
+ onSearch: handleSearch,
10885
10903
  onClose: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
10886
10904
  }, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
10887
10905
  opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$W, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlupa/client",
3
- "version": "1.11.5",
3
+ "version": "1.11.6",
4
4
  "main": "dist/lupaSearch.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/src/index.d.ts",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "devDependencies": {
22
22
  "@getlupa/client-sdk": "^1.3.4",
23
- "@getlupa/vue": "0.11.5",
23
+ "@getlupa/vue": "0.11.6",
24
24
  "@rushstack/eslint-patch": "^1.3.2",
25
25
  "@tsconfig/node18": "^2.0.1",
26
26
  "@types/jsdom": "^21.1.1",