golden-logic-ui 1.2.329 → 1.2.331

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.
@@ -113,7 +113,7 @@ function Hhe(r, t, s, a, c, f) {
113
113
  return f.actualLoading ? (Be(), nu(dA("button"), {
114
114
  key: 1,
115
115
  disabled: "",
116
- class: Tn(` opacity-50 h-10 flex items-center justify-center focus:outline-hidden text-sm px-6 py-2 font-medium ${s.has_border_reduced ? "rounded-lg" : ""} ${f.buttonTypeClass} ${s.classes}`)
116
+ class: Tn(` opacity-50 h-10 flex items-center justify-center focus:outline-hidden text-sm px-6 py-2 font-medium ${s.has_border_reduced ? "rounded-xl" : ""} ${f.buttonTypeClass} ${s.classes}`)
117
117
  }, {
118
118
  default: ou(() => t[0] || (t[0] = [
119
119
  U("svg", {
@@ -141,7 +141,7 @@ function Hhe(r, t, s, a, c, f) {
141
141
  disabled: s.is_disabled
142
142
  }, { type: s.is_submit ? "submit" : void 0 }, {
143
143
  href: s.tag === "a" ? s.href : void 0,
144
- class: ` ${s.is_disabled ? "cursor-not-allowed opacity-50" : ""} ${s.icon || s.svg_icon ? "flex" : ""} h-10 items-center justify-center gap-2 focus:outline-hidden text-sm px-3 py-2 font-medium ${s.has_border_reduced ? "rounded-lg" : ""} ${f.buttonTypeClass} ${s.classes}`
144
+ class: ` ${s.is_disabled ? "cursor-not-allowed opacity-50" : ""} ${s.icon || s.svg_icon ? "flex" : ""} h-10 items-center justify-center gap-2 focus:outline-hidden text-sm px-3 py-2 font-medium ${s.has_border_reduced ? "rounded-xl" : ""} ${f.buttonTypeClass} ${s.classes}`
145
145
  }), {
146
146
  default: ou(() => [
147
147
  s.icon ? (Be(), He("i", {
@@ -3806,20 +3806,20 @@ const aRe = /* @__PURE__ */ Ii(j0e, [["render", kpe], ["__scopeId", "data-v-4c7f
3806
3806
  }, m1e = { class: "relative focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:focus:ring-blue-500 dark:focus:border-blue-500" }, g1e = { class: "relative showOptions" }, p1e = ["value", "placeholder"], b1e = { class: "text-gray-700 bg-white border dark:border-gray-700 dark:bg-gray-800 dark:text-gray-200 absolute w-full z-999999999 rounded-md mt-1 pt-1" }, v1e = {
3807
3807
  key: 0,
3808
3808
  class: "border-b border-gray-200 dark:border-gray-700"
3809
- }, y1e = { class: "relative" }, O1e = ["id", "placeholder"], x1e = ["onClick", "onMousedown", "id"], w1e = { class: "flex items-center py-2 pr-4" }, S1e = {
3809
+ }, y1e = { class: "relative" }, O1e = ["id", "placeholder"], x1e = { class: "flex items-center py-2 pr-4" }, w1e = ["onClick", "onMousedown", "id"], S1e = { class: "flex items-center py-2 pr-4" }, C1e = {
3810
3810
  key: 0,
3811
3811
  class: "absolute flex items-center shrink-0 w-4 h-4 text-green-500 ltr:right-2 rtl:left-2 dark:text-green-400",
3812
3812
  "aria-hidden": "true",
3813
3813
  xmlns: "http://www.w3.org/2000/svg",
3814
3814
  fill: "none",
3815
3815
  viewBox: "0 0 16 12"
3816
- }, C1e = ["innerHTML"], k1e = {
3817
- key: 1,
3818
- class: "p-2 text-center text-gray-500"
3819
- }, _1e = {
3816
+ }, k1e = ["innerHTML"], _1e = {
3820
3817
  key: 2,
3818
+ class: "p-2 text-center text-gray-500"
3819
+ }, T1e = {
3820
+ key: 3,
3821
3821
  class: "p-2 text-gray-500"
3822
- }, T1e = { class: "flex items-center py-2 pr-4" }, E1e = { class: "block mt-1 text-sm font-normal leading-5 text-red-500" }, A1e = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, P1e = {
3822
+ }, E1e = { class: "block mt-1 text-sm font-normal leading-5 text-red-500" }, A1e = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, P1e = {
3823
3823
  __name: "GlDropdown",
3824
3824
  props: {
3825
3825
  modelValue: {
@@ -4245,7 +4245,17 @@ const aRe = /* @__PURE__ */ Ii(j0e, [["render", kpe], ["__scopeId", "data-v-4c7f
4245
4245
  ref_key: "dropdownRef",
4246
4246
  ref: xe
4247
4247
  }, [
4248
- Z.value.length ? (Be(!0), He(oo, { key: 0 }, Nr(Z.value, (on, wn) => (Be(), He("div", {
4248
+ r.allow_custom && x.value && !Z.value.find((on) => String(on.name) === String(x.value)) ? (Be(), He("div", {
4249
+ key: 0,
4250
+ class: "relative px-2 py-0.5 text-xs leading-4 text-gray-700 no-underline cursor-pointer dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-700 dark:hover:text-white hover:rounded-sm",
4251
+ onClick: xt[4] || (xt[4] = (on) => Xe()),
4252
+ onMousedown: xt[5] || (xt[5] = (on) => Xe())
4253
+ }, [
4254
+ U("div", x1e, [
4255
+ U("span", null, zt(r.custom_option_label) + ' "' + zt(x.value) + '"', 1)
4256
+ ])
4257
+ ], 32)) : Rt("", !0),
4258
+ Z.value.length ? (Be(!0), He(oo, { key: 1 }, Nr(Z.value, (on, wn) => (Be(), He("div", {
4249
4259
  class: Tn([
4250
4260
  "relative px-2 py-0.5 text-xs leading-4 text-gray-700 no-underline cursor-pointer dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-700 dark:hover:text-white hover:rounded-sm",
4251
4261
  wn + 1 == h.value ? "bg-gray-100 dark:bg-gray-700 rounded-sm" : ""
@@ -4255,8 +4265,8 @@ const aRe = /* @__PURE__ */ Ii(j0e, [["render", kpe], ["__scopeId", "data-v-4c7f
4255
4265
  key: wn,
4256
4266
  id: `${wn + 1}${C.value}`
4257
4267
  }, [
4258
- U("div", w1e, [
4259
- c.value?.id === on.id ? (Be(), He("svg", S1e, xt[11] || (xt[11] = [
4268
+ U("div", S1e, [
4269
+ c.value?.id === on.id ? (Be(), He("svg", C1e, xt[11] || (xt[11] = [
4260
4270
  U("path", {
4261
4271
  stroke: "currentColor",
4262
4272
  "stroke-linecap": "round",
@@ -4267,21 +4277,11 @@ const aRe = /* @__PURE__ */ Ii(j0e, [["render", kpe], ["__scopeId", "data-v-4c7f
4267
4277
  ]))) : Rt("", !0),
4268
4278
  U("span", {
4269
4279
  innerHTML: on.name || on.id || "-"
4270
- }, null, 8, C1e)
4271
- ])
4272
- ], 42, x1e))), 128)) : Rt("", !0),
4273
- T.value ? (Be(), He("div", k1e, " Loading... ")) : Rt("", !0),
4274
- !T.value && Z.value.length === 0 && !(r.allow_custom && x.value) ? (Be(), He("div", _1e, zt(r.no_results_found_placeholder), 1)) : Rt("", !0),
4275
- r.allow_custom && x.value && !Z.value.find((on) => String(on.name) === String(x.value)) ? (Be(), He("div", {
4276
- key: 3,
4277
- class: "relative px-2 py-0.5 text-xs leading-4 text-gray-700 no-underline cursor-pointer dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-700 dark:hover:text-white hover:rounded-sm",
4278
- onClick: xt[4] || (xt[4] = (on) => Xe()),
4279
- onMousedown: xt[5] || (xt[5] = (on) => Xe())
4280
- }, [
4281
- U("div", T1e, [
4282
- U("span", null, zt(r.custom_option_label) + ' "' + zt(x.value) + '"', 1)
4280
+ }, null, 8, k1e)
4283
4281
  ])
4284
- ], 32)) : Rt("", !0)
4282
+ ], 42, w1e))), 128)) : Rt("", !0),
4283
+ T.value ? (Be(), He("div", _1e, " Loading... ")) : Rt("", !0),
4284
+ !T.value && Z.value.length === 0 && !(r.allow_custom && x.value) ? (Be(), He("div", T1e, zt(r.no_results_found_placeholder), 1)) : Rt("", !0)
4285
4285
  ], 544)
4286
4286
  ], 512), [
4287
4287
  [Ld, b.value]