@dcrackel/hematournamentui 1.0.661 → 1.0.662

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.
@@ -111,6 +111,10 @@ const He = /* @__PURE__ */ se(pf, [["render", Cf]]), If = {
111
111
  type: String,
112
112
  default: "primary",
113
113
  validator: (t) => ["neutral", "primary", "secondary", "tertiary", "quaternary", "quinary", "bright", "white", "alarm"].includes(t)
114
+ },
115
+ allowPercent: {
116
+ type: Boolean,
117
+ default: !1
114
118
  }
115
119
  },
116
120
  data() {
@@ -163,7 +167,7 @@ const He = /* @__PURE__ */ se(pf, [["render", Cf]]), If = {
163
167
  methods: {
164
168
  onInput(t) {
165
169
  let e = t.target.value;
166
- this.inputType === "number" && (e = e.replace(/\D/g, "")), this.inputType === "text" && (e = e.replace(/[\\'"=*<>|#$%^(){}\[\]]/g, "")), this.internalValue = e, clearTimeout(this.timeout), this.timeout = setTimeout(() => {
170
+ this.inputType === "number" && (e = e.replace(/\D/g, "")), this.inputType === "text" && (this.allowPercent ? e = e.replace(/[\\'"=*<>|#$^(){}\[\]]/g, "") : e = e.replace(/[\\'"=*<>|#$%^(){}\[\]]/g, "")), this.internalValue = e, clearTimeout(this.timeout), this.timeout = setTimeout(() => {
167
171
  this.$emit("update:value", this.internalValue);
168
172
  }, 300);
169
173
  },
@@ -1285,6 +1289,10 @@ const vq = /* @__PURE__ */ se(Ap, [["render", mp]]), fp = {
1285
1289
  disabled: {
1286
1290
  type: Boolean,
1287
1291
  default: !1
1292
+ },
1293
+ allowPercent: {
1294
+ type: Boolean,
1295
+ default: !1
1288
1296
  }
1289
1297
  },
1290
1298
  methods: {
@@ -1311,8 +1319,9 @@ function Cp(t, e, n, r, o, i) {
1311
1319
  disabled: n.disabled,
1312
1320
  placeholder: n.placeholder,
1313
1321
  value: n.inputValue,
1322
+ allowPercent: n.allowPercent,
1314
1323
  "onUpdate:value": i.handleUpdateValue
1315
- }, null, 8, ["invalid", "inputType", "disabled", "placeholder", "value", "onUpdate:value"])
1324
+ }, null, 8, ["invalid", "inputType", "disabled", "placeholder", "value", "allowPercent", "onUpdate:value"])
1316
1325
  ]);
1317
1326
  }
1318
1327
  const or = /* @__PURE__ */ se(fp, [["render", Cp]]);
@@ -10287,6 +10296,7 @@ function lv(t, e, n, r, o, i) {
10287
10296
  h(c, {
10288
10297
  inputValue: n.eventConfig.DEPromotionAmount,
10289
10298
  invalid: n.validation.DEPromotionAmount,
10299
+ allowPercent: !0,
10290
10300
  placeholder: "Enter Number or Percent..",
10291
10301
  title: "",
10292
10302
  "onUpdate:value": i.handleDEPromotionAmountChange
@@ -10725,7 +10735,7 @@ const Ev = /* @__PURE__ */ se(cv, [["render", Bv]]), Qv = {
10725
10735
  }));
10726
10736
  },
10727
10737
  handleSubmit() {
10728
- this.localEvent.rules = this.convertEventConfigToRules(this.eventConfig), console.log("Event Config:", this.localEvent), this.$emit("update:submit", this.localEvent);
10738
+ this.localEvent.rules = this.convertEventConfigToRules(this.eventConfig), console.log("Event Config:", this.localEvent), console.log("Event Rules:", this.localEvent.rules), this.$emit("update:submit", this.localEvent);
10729
10739
  },
10730
10740
  handleCancel() {
10731
10741
  this.$emit("update:cancel");