@rezkit/toursui 0.2.28 → 0.2.31

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/dist/toursui.js CHANGED
@@ -3312,10 +3312,11 @@ const df = {
3312
3312
  },
3313
3313
  emits: ["process:chosen-suggestion"],
3314
3314
  setup(e, { emit: t }) {
3315
- const r = e, a = Te(r, "type"), n = Te(r, "title"), i = Te(r, "suggestions"), o = function(u, c) {
3315
+ const r = e, a = Te(r, "type"), n = Te(r, "title"), i = Te(r, "suggestions"), o = function(u, c, d) {
3316
3316
  t("process:chosen-suggestion", {
3317
3317
  option: u,
3318
- type: c
3318
+ type: c,
3319
+ id: d
3319
3320
  });
3320
3321
  };
3321
3322
  return (s, u) => i.value && i.value[a.value][0].options && i.value[a.value][0].options.length > 0 ? (P(), F("ul", df, [
@@ -3324,7 +3325,7 @@ const df = {
3324
3325
  ]),
3325
3326
  (P(!0), F(He, null, vt(i.value[a.value][0].options, (c, d) => (P(), F("li", {
3326
3327
  key: `${a.value}-suggestion-${d}}`,
3327
- onClick: (v) => o(c.text, a.value)
3328
+ onClick: (v) => o(c.text, a.value, c._id || null)
3328
3329
  }, [
3329
3330
  pe("span", mf, it(c.text), 1)
3330
3331
  ], 8, vf))), 128))
@@ -13463,7 +13464,8 @@ const $1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13463
13464
  }).refine((e) => !(e.q && e.qs), { message: "`q` and `qs` are mutually exclusive", path: ["q", "qs"] }), g1 = $.union([$.string(), $.number(), $.boolean(), $.array($.string()), $.null()]), y1 = $.object({
13464
13465
  name: $.string(),
13465
13466
  code: $.string(),
13466
- description: $.string(),
13467
+ introduction: $.string().nullable(),
13468
+ description: $.string().nullable(),
13467
13469
  published: $.boolean(),
13468
13470
  type: $.literal("holiday"),
13469
13471
  duration: $.array($.number().int().nonnegative()),