@hotelinking/ui 13.45.12 → 13.45.15

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/ui.d.ts CHANGED
@@ -1938,6 +1938,7 @@ sideBarClick: (t: string) => any;
1938
1938
  productBarClick: (t: string) => any;
1939
1939
  topBarClick: (T: string) => any;
1940
1940
  sidebarToggle: (T: boolean) => any;
1941
+ bellClick: () => any;
1941
1942
  }, string, PublicProps, Readonly<UiWrapperInterface> & Readonly<{
1942
1943
  onCheckboxChanged?: ((checkbox: UiCheckboxType_2) => any) | undefined;
1943
1944
  onInputChanged?: ((T: InputType_2) => any) | undefined;
@@ -1946,6 +1947,7 @@ onSideBarClick?: ((t: string) => any) | undefined;
1946
1947
  onProductBarClick?: ((t: string) => any) | undefined;
1947
1948
  onTopBarClick?: ((T: string) => any) | undefined;
1948
1949
  onSidebarToggle?: ((T: boolean) => any) | undefined;
1950
+ onBellClick?: (() => any) | undefined;
1949
1951
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>, {
1950
1952
  default?(_: {}): any;
1951
1953
  }>;
@@ -1965,6 +1967,8 @@ export declare interface UiWrapperEventsInterface {
1965
1967
  (e: "inputChanged", T: InputType): void;
1966
1968
  /** State of sidebar changed */
1967
1969
  (e: "sidebarToggle", T: boolean): void;
1970
+ /** Emits when bell is clicked */
1971
+ (e: "bellClick"): void;
1968
1972
  }
1969
1973
 
1970
1974
  export declare interface UiWrapperInterface {
package/dist/ui.es.js CHANGED
@@ -2473,7 +2473,7 @@ const se = /* @__PURE__ */ te(mo, [["render", fo]]), ho = {
2473
2473
  key: Q
2474
2474
  }, [
2475
2475
  p(se, {
2476
- onClick: (Pd) => q(F, N.id, N.name),
2476
+ onClick: (Id) => q(F, N.id, N.name),
2477
2477
  class: "border-l border-gray-200 px-6 py-3 text-black hover:text-lime-400 cursor-pointer",
2478
2478
  price: F,
2479
2479
  currency: x.currency.symbol,
@@ -4717,17 +4717,14 @@ const nr = /* @__PURE__ */ te(or, [["render", ar]]), ir = /* @__PURE__ */ B({
4717
4717
  ])
4718
4718
  ]));
4719
4719
  }
4720
- }), nd = { class: "fixed inset-0 flex" }, id = { class: "absolute left-full top-0 flex w-16 justify-center pt-5" }, dd = { class: "hidden lg:fixed lg:inset-y-0 lg:z-50 lg:flex lg:w-[25rem] lg:flex-col" }, ud = { class: "lg:pl-[25rem]" }, cd = { class: "sticky top-0 z-10 flex h-16 shrink-0 items-center gap-x-4 border-b border-gray-200 bg-white px-4 shadow-sm sm:gap-x-6 sm:px-6 lg:px-8" }, gd = { class: "flex flex-1 gap-x-4 self-stretch lg:gap-x-6" }, md = { class: "flex items-center gap-x-4 lg:gap-x-6" }, pd = {
4721
- type: "button",
4722
- class: "-m-2.5 p-2.5 text-gray-400 hover:text-gray-500 relative"
4723
- }, fd = { class: "redCircle flex items-center justify-center h-4 w-4 bg-red-500 rounded-full absolute top-1 left-2" }, hd = ["src"], yd = { class: "hidden lg:flex lg:items-center" }, bd = ["onClick"], vd = { class: "py-7" }, wd = { class: "px-7 lg:px-10" }, kd = /* @__PURE__ */ B({
4720
+ }), nd = { class: "fixed inset-0 flex" }, id = { class: "absolute left-full top-0 flex w-16 justify-center pt-5" }, dd = { class: "hidden lg:fixed lg:inset-y-0 lg:z-50 lg:flex lg:w-[25rem] lg:flex-col" }, ud = { class: "lg:pl-[25rem]" }, cd = { class: "sticky top-0 z-10 flex h-16 shrink-0 items-center gap-x-4 border-b border-gray-200 bg-white px-4 shadow-sm sm:gap-x-6 sm:px-6 lg:px-8" }, gd = { class: "flex flex-1 gap-x-4 self-stretch lg:gap-x-6" }, md = { class: "flex items-center gap-x-4 lg:gap-x-6" }, pd = { class: "redCircle flex items-center justify-center h-4 w-4 bg-red-500 rounded-full absolute top-1 left-2" }, fd = ["src"], hd = { class: "hidden lg:flex lg:items-center" }, yd = ["onClick"], bd = { class: "py-7" }, vd = { class: "px-7 lg:px-10" }, wd = /* @__PURE__ */ B({
4724
4721
  __name: "uiWrapper",
4725
4722
  props: {
4726
4723
  topbar: {},
4727
4724
  sidebar: {},
4728
4725
  sidebarOpen: { type: Boolean }
4729
4726
  },
4730
- emits: ["productBarClick", "sideBarClick", "selectChanged", "topBarClick", "checkboxChanged", "inputChanged", "sidebarToggle"],
4727
+ emits: ["productBarClick", "sideBarClick", "selectChanged", "topBarClick", "checkboxChanged", "inputChanged", "sidebarToggle", "bellClick"],
4731
4728
  setup(m, { emit: u }) {
4732
4729
  const a = m, i = u, o = A(a.sidebarOpen), s = () => {
4733
4730
  o.value = !o.value, i("sidebarToggle", o.value);
@@ -4752,11 +4749,11 @@ const nr = /* @__PURE__ */ te(or, [["render", ar]]), ir = /* @__PURE__ */ B({
4752
4749
  "leave-from": "opacity-100",
4753
4750
  "leave-to": "opacity-0"
4754
4751
  }, {
4755
- default: b(() => r[9] || (r[9] = [
4752
+ default: b(() => r[10] || (r[10] = [
4756
4753
  e("div", { class: "fixed inset-0 bg-gray-900/80" }, null, -1)
4757
4754
  ])),
4758
4755
  _: 1,
4759
- __: [9]
4756
+ __: [10]
4760
4757
  }),
4761
4758
  e("div", nd, [
4762
4759
  p(c(G), {
@@ -4787,7 +4784,7 @@ const nr = /* @__PURE__ */ te(or, [["render", ar]]), ir = /* @__PURE__ */ B({
4787
4784
  class: "-m-2.5 p-2.5",
4788
4785
  onClick: s
4789
4786
  }, [
4790
- r[10] || (r[10] = e("span", { class: "sr-only" }, "Close sidebar", -1)),
4787
+ r[11] || (r[11] = e("span", { class: "sr-only" }, "Close sidebar", -1)),
4791
4788
  p(c(J), {
4792
4789
  class: "h-6 w-6 text-white",
4793
4790
  "aria-hidden": "true"
@@ -4843,13 +4840,13 @@ const nr = /* @__PURE__ */ te(or, [["render", ar]]), ir = /* @__PURE__ */ B({
4843
4840
  class: "-m-2.5 p-2.5 text-gray-700 lg:hidden",
4844
4841
  onClick: s
4845
4842
  }, [
4846
- r[11] || (r[11] = e("span", { class: "sr-only" }, "Open sidebar", -1)),
4843
+ r[12] || (r[12] = e("span", { class: "sr-only" }, "Open sidebar", -1)),
4847
4844
  p(c(We), {
4848
4845
  class: "h-6 w-6",
4849
4846
  "aria-hidden": "true"
4850
4847
  })
4851
4848
  ]),
4852
- r[16] || (r[16] = e("div", {
4849
+ r[17] || (r[17] = e("div", {
4853
4850
  class: "h-6 w-px bg-gray-200 lg:hidden",
4854
4851
  "aria-hidden": "true"
4855
4852
  }, null, -1)),
@@ -4862,9 +4859,13 @@ const nr = /* @__PURE__ */ te(or, [["render", ar]]), ir = /* @__PURE__ */ B({
4862
4859
  onSelectChanged: r[8] || (r[8] = (d) => t.$emit("selectChanged", d))
4863
4860
  }, null, 8, ["items", "select"]),
4864
4861
  e("div", md, [
4865
- e("button", pd, [
4866
- r[13] || (r[13] = e("span", { class: "sr-only" }, "View notifications", -1)),
4867
- C(e("div", fd, r[12] || (r[12] = [
4862
+ e("button", {
4863
+ type: "button",
4864
+ class: "-m-2.5 p-2.5 text-gray-400 hover:text-gray-500 relative",
4865
+ onClick: r[9] || (r[9] = (d) => i("bellClick"))
4866
+ }, [
4867
+ r[14] || (r[14] = e("span", { class: "sr-only" }, "View notifications", -1)),
4868
+ C(e("div", pd, r[13] || (r[13] = [
4868
4869
  e("span", { class: "animate-ping absolute inline-flex h-4 w-4 bg-red-500 rounded-full opacity-75" }, null, -1)
4869
4870
  ]), 512), [
4870
4871
  [D, t.topbar.alerted]
@@ -4874,7 +4875,7 @@ const nr = /* @__PURE__ */ te(or, [["render", ar]]), ir = /* @__PURE__ */ B({
4874
4875
  "aria-hidden": "true"
4875
4876
  })
4876
4877
  ]),
4877
- r[15] || (r[15] = e("div", {
4878
+ r[16] || (r[16] = e("div", {
4878
4879
  class: "hidden lg:block lg:h-6 lg:w-px lg:bg-gray-200",
4879
4880
  "aria-hidden": "true"
4880
4881
  }, null, -1)),
@@ -4885,13 +4886,13 @@ const nr = /* @__PURE__ */ te(or, [["render", ar]]), ir = /* @__PURE__ */ B({
4885
4886
  default: b(() => [
4886
4887
  p(c(ve), { class: "-m-1.5 flex items-center p-1.5" }, {
4887
4888
  default: b(() => [
4888
- r[14] || (r[14] = e("span", { class: "sr-only" }, "Open user menu", -1)),
4889
+ r[15] || (r[15] = e("span", { class: "sr-only" }, "Open user menu", -1)),
4889
4890
  e("img", {
4890
4891
  class: "h-8 w-8 rounded-full bg-gray-50",
4891
4892
  src: t.topbar.accountLogo,
4892
4893
  alt: ""
4893
- }, null, 8, hd),
4894
- e("span", yd, [
4894
+ }, null, 8, fd),
4895
+ e("span", hd, [
4895
4896
  p(c(de), {
4896
4897
  class: "ml-2 h-5 w-5 text-gray-400",
4897
4898
  "aria-hidden": "true"
@@ -4899,7 +4900,7 @@ const nr = /* @__PURE__ */ te(or, [["render", ar]]), ir = /* @__PURE__ */ B({
4899
4900
  ])
4900
4901
  ]),
4901
4902
  _: 1,
4902
- __: [14]
4903
+ __: [15]
4903
4904
  }),
4904
4905
  p(ue, {
4905
4906
  "enter-active-class": "transition ease-out duration-100",
@@ -4919,7 +4920,7 @@ const nr = /* @__PURE__ */ te(or, [["render", ar]]), ir = /* @__PURE__ */ B({
4919
4920
  e("a", {
4920
4921
  onClick: (y) => t.$emit("topBarClick", d.id),
4921
4922
  class: f([h ? "bg-gray-50" : "", "block px-3 py-1 text-sm leading-6 text-gray-900"])
4922
- }, g(d.name), 11, bd)
4923
+ }, g(d.name), 11, yd)
4923
4924
  ]),
4924
4925
  _: 2
4925
4926
  }, 1024))), 128))
@@ -4935,15 +4936,15 @@ const nr = /* @__PURE__ */ te(or, [["render", ar]]), ir = /* @__PURE__ */ B({
4935
4936
  ])
4936
4937
  ])
4937
4938
  ]),
4938
- e("main", vd, [
4939
- e("div", wd, [
4939
+ e("main", bd, [
4940
+ e("div", vd, [
4940
4941
  V(t.$slots, "default")
4941
4942
  ])
4942
4943
  ])
4943
4944
  ])
4944
4945
  ]));
4945
4946
  }
4946
- }), xd = /* @__PURE__ */ B({
4947
+ }), kd = /* @__PURE__ */ B({
4947
4948
  __name: "uiDynamicStats",
4948
4949
  props: {
4949
4950
  dynamicStats: {},
@@ -4962,13 +4963,13 @@ const nr = /* @__PURE__ */ te(or, [["render", ar]]), ir = /* @__PURE__ */ B({
4962
4963
  }, null, 8, ["item", "loading"]))), 128))
4963
4964
  ], 2));
4964
4965
  }
4965
- }), $d = { class: "flex justify-between" }, _d = {
4966
+ }), xd = { class: "flex justify-between" }, $d = {
4966
4967
  key: 0,
4967
4968
  class: "text-[10px] uppercase justify-self-end place-self-center"
4968
- }, Cd = { class: "relative" }, Sd = { class: "block flex flex-wrap gap-2" }, Bd = {
4969
+ }, _d = { class: "relative" }, Cd = { class: "block flex flex-wrap gap-2" }, Sd = {
4969
4970
  key: 0,
4970
4971
  class: "p-0.5"
4971
- }, Md = ["onClick"], Dd = { class: "absolute mt-1 w-full rounded-md bg-white shadow-lg z-50" }, jd = {
4972
+ }, Bd = ["onClick"], Md = { class: "absolute mt-1 w-full rounded-md bg-white shadow-lg z-50" }, Dd = {
4972
4973
  key: 1,
4973
4974
  class: "animate-pulse px-4 py-2.5 bg-gray-200 rounded-md flex justify-between items-center w-full"
4974
4975
  }, st = /* @__PURE__ */ B({
@@ -4995,7 +4996,7 @@ const nr = /* @__PURE__ */ te(or, [["render", ar]]), ir = /* @__PURE__ */ B({
4995
4996
  function t(r) {
4996
4997
  o.value = o.value.filter((d) => d.id !== r.id), s(o.value);
4997
4998
  }
4998
- return (r, d) => r.loading ? (l(), n("div", jd, [
4999
+ return (r, d) => r.loading ? (l(), n("div", Dd, [
4999
5000
  d[4] || (d[4] = e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, null, -1)),
5000
5001
  p(c(fe), {
5001
5002
  "aria-hidden": "true",
@@ -5014,16 +5015,16 @@ const nr = /* @__PURE__ */ te(or, [["render", ar]]), ir = /* @__PURE__ */ B({
5014
5015
  as: "div"
5015
5016
  }, {
5016
5017
  default: b(() => [
5017
- e("div", $d, [
5018
+ e("div", xd, [
5018
5019
  p(c(mt), { class: "block text-sm font-medium" }, {
5019
5020
  default: b(() => [
5020
5021
  T(g(r.label), 1)
5021
5022
  ]),
5022
5023
  _: 1
5023
5024
  }),
5024
- r.requiredText ? (l(), n("span", _d, g(r.requiredText), 1)) : v("", !0)
5025
+ r.requiredText ? (l(), n("span", $d, g(r.requiredText), 1)) : v("", !0)
5025
5026
  ]),
5026
- e("div", Cd, [
5027
+ e("div", _d, [
5027
5028
  p(c(pt), {
5028
5029
  class: f([{
5029
5030
  "mt-1": r.requiredText || r.label,
@@ -5042,8 +5043,8 @@ const nr = /* @__PURE__ */ te(or, [["render", ar]]), ir = /* @__PURE__ */ B({
5042
5043
  }, "relative w-full rounded-md border py-2 pl-2 pr-10 shadow-sm focus:border-lime-400 focus:outline-none focus:ring-1 focus:ring-lime-400 sm:text-sm"])
5043
5044
  }, {
5044
5045
  default: b(() => [
5045
- e("span", Sd, [
5046
- c(o).length === 0 ? (l(), n("span", Bd, "...")) : v("", !0),
5046
+ e("span", Cd, [
5047
+ c(o).length === 0 ? (l(), n("span", Sd, "...")) : v("", !0),
5047
5048
  (l(!0), n($, null, _(c(o), (h) => (l(), n("span", {
5048
5049
  key: h.id,
5049
5050
  class: "flex items-center gap-1 rounded text-xs font-medium bg-lime-400 text-black border border-lime-200 px-2 py-0.5"
@@ -5063,7 +5064,7 @@ const nr = /* @__PURE__ */ te(or, [["render", ar]]), ir = /* @__PURE__ */ B({
5063
5064
  "stroke-width": "2",
5064
5065
  d: "M6 18L18 6M6 6l12 12"
5065
5066
  }, null, -1)
5066
- ]), 8, Md))
5067
+ ]), 8, Bd))
5067
5068
  ]))), 128))
5068
5069
  ]),
5069
5070
  d[2] || (d[2] = e("span", { class: "absolute h-full right-0 mr-2 self-center top-0 flex items-center" }, [
@@ -5085,7 +5086,7 @@ const nr = /* @__PURE__ */ te(or, [["render", ar]]), ir = /* @__PURE__ */ B({
5085
5086
  _: 1,
5086
5087
  __: [2]
5087
5088
  }, 8, ["class"]),
5088
- e("div", Dd, [
5089
+ e("div", Md, [
5089
5090
  p(c(ft), { class: "shadow-2xs focus:outline-hidden max-h-60 overflow-auto rounded-md py-1 text-base leading-6 sm:text-sm sm:leading-5" }, {
5090
5091
  default: b(() => [
5091
5092
  (l(!0), n($, null, _(r.items, (h) => (l(), k(c(ht), {
@@ -5139,7 +5140,7 @@ const nr = /* @__PURE__ */ te(or, [["render", ar]]), ir = /* @__PURE__ */ B({
5139
5140
  _: 1
5140
5141
  }, 8, ["modelValue", "disabled"]));
5141
5142
  }
5142
- }), Td = { class: "flex flex-col lg:flex-row items-center" }, zd = /* @__PURE__ */ B({
5143
+ }), jd = { class: "flex flex-col lg:flex-row items-center" }, Td = /* @__PURE__ */ B({
5143
5144
  __name: "uiSmartFilter",
5144
5145
  props: {
5145
5146
  items: {},
@@ -5168,7 +5169,7 @@ const nr = /* @__PURE__ */ te(or, [["render", ar]]), ir = /* @__PURE__ */ B({
5168
5169
  }
5169
5170
  s.value = r.props;
5170
5171
  };
5171
- return (r, d) => (l(), n("div", Td, [
5172
+ return (r, d) => (l(), n("div", jd, [
5172
5173
  p(Xe, {
5173
5174
  items: r.items,
5174
5175
  loading: r.loading,
@@ -5207,7 +5208,7 @@ const nr = /* @__PURE__ */ te(or, [["render", ar]]), ir = /* @__PURE__ */ B({
5207
5208
  uiDeviceStatus: ad,
5208
5209
  uiDragAndDrop: Mi,
5209
5210
  uiDropdown: me,
5210
- uiDynamicStats: xd,
5211
+ uiDynamicStats: kd,
5211
5212
  uiFilter: Xe,
5212
5213
  uiFooter: nr,
5213
5214
  uiFunnelChartV2: Zn,
@@ -5229,7 +5230,7 @@ const nr = /* @__PURE__ */ te(or, [["render", ar]]), ir = /* @__PURE__ */ B({
5229
5230
  uiSelect_v2: De,
5230
5231
  uiSidebar: Or,
5231
5232
  uiSidebarV2: he,
5232
- uiSmartFilter: zd,
5233
+ uiSmartFilter: Td,
5233
5234
  uiStats: lt,
5234
5235
  uiStripedCard: ba,
5235
5236
  uiTable: Fa,
@@ -5240,37 +5241,37 @@ const nr = /* @__PURE__ */ te(or, [["render", ar]]), ir = /* @__PURE__ */ B({
5240
5241
  uiTimeline: yn,
5241
5242
  uiToggle: Tl,
5242
5243
  uiTopbar: Yn,
5243
- uiWrapper: kd
5244
- }, Symbol.toStringTag, { value: "Module" })), Ld = [
5244
+ uiWrapper: wd
5245
+ }, Symbol.toStringTag, { value: "Module" })), zd = [
5245
5246
  "primary",
5246
5247
  "secondary",
5247
5248
  "light",
5248
5249
  "green",
5249
5250
  "yellow",
5250
5251
  "red"
5251
- ], Hd = [
5252
+ ], Ud = [
5252
5253
  "text",
5253
5254
  "email",
5254
5255
  "password",
5255
5256
  "number",
5256
5257
  "date",
5257
5258
  "datetime-local"
5258
- ], Ad = ["black", "gray", "white"], Ed = [...Ld, ...Ad], Od = ["small", "medium", "big"], Nd = ["bigger", "huge", "massive"], Zd = [...Od, ...Nd], Wd = ["default", "success", "warning", "danger"];
5259
- function Id(m) {
5259
+ ], Ld = ["black", "gray", "white"], Hd = [...zd, ...Ld], Ad = ["small", "medium", "big"], Od = ["bigger", "huge", "massive"], Ed = [...Ad, ...Od], Zd = ["default", "success", "warning", "danger"];
5260
+ function Nd(m) {
5260
5261
  for (const u in Ne)
5261
5262
  m.component(u, Ne[u]);
5262
5263
  }
5263
- const Jd = { install: Id };
5264
+ const Wd = { install: Nd };
5264
5265
  export {
5265
- Ed as AllColors,
5266
- Zd as AllSizes,
5267
- Nd as BiggerSizes,
5268
- Ld as Colors,
5269
- Ad as MonoColors,
5270
- Od as Sizes,
5271
- Wd as Types,
5272
- Hd as UiInputTypes,
5273
- Jd as default,
5266
+ Hd as AllColors,
5267
+ Ed as AllSizes,
5268
+ Od as BiggerSizes,
5269
+ zd as Colors,
5270
+ Ld as MonoColors,
5271
+ Ad as Sizes,
5272
+ Zd as Types,
5273
+ Ud as UiInputTypes,
5274
+ Wd as default,
5274
5275
  ql as uiAlert,
5275
5276
  Wl as uiBreadcrumbs,
5276
5277
  W as uiButton,
@@ -5282,7 +5283,7 @@ export {
5282
5283
  ad as uiDeviceStatus,
5283
5284
  Mi as uiDragAndDrop,
5284
5285
  me as uiDropdown,
5285
- xd as uiDynamicStats,
5286
+ kd as uiDynamicStats,
5286
5287
  Xe as uiFilter,
5287
5288
  nr as uiFooter,
5288
5289
  Zn as uiFunnelChartV2,
@@ -5304,7 +5305,7 @@ export {
5304
5305
  De as uiSelect_v2,
5305
5306
  Or as uiSidebar,
5306
5307
  he as uiSidebarV2,
5307
- zd as uiSmartFilter,
5308
+ Td as uiSmartFilter,
5308
5309
  lt as uiStats,
5309
5310
  ba as uiStripedCard,
5310
5311
  Fa as uiTable,
@@ -5315,5 +5316,5 @@ export {
5315
5316
  yn as uiTimeline,
5316
5317
  Tl as uiToggle,
5317
5318
  Yn as uiTopbar,
5318
- kd as uiWrapper
5319
+ wd as uiWrapper
5319
5320
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hotelinking/ui",
3
3
  "private": false,
4
- "version": "13.45.12",
4
+ "version": "13.45.15",
5
5
  "files": [
6
6
  "dist"
7
7
  ],