comand-component-library 4.2.80 → 4.2.81

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.
@@ -3128,7 +3128,7 @@ const Gt = {
3128
3128
  this.validateInput(e), this.$emit("update:modelValue", e.target.value);
3129
3129
  },
3130
3130
  onChange(e) {
3131
- if (typeof this.modelValue == "boolean")
3131
+ if (this.validateInput(e), typeof this.modelValue == "boolean")
3132
3132
  this.$emit("update:modelValue", e.target.checked);
3133
3133
  else if (typeof this.modelValue == "string")
3134
3134
  this.$emit("update:modelValue", e.target.value);
@@ -3344,7 +3344,7 @@ function ws(e, t, n, s, i, l) {
3344
3344
  n.element === "select" ? (a(), r("select", S({ key: 4 }, l.elementAttributes, {
3345
3345
  id: e.htmlId,
3346
3346
  onBlur: t[16] || (t[16] = (...u) => l.onBlur && l.onBlur(...u)),
3347
- onChange: t[17] || (t[17] = (u) => e.$emit("update:modelValue", u.target.value))
3347
+ onChange: t[17] || (t[17] = (...u) => l.onChange && l.onChange(...u))
3348
3348
  }), [
3349
3349
  n.groupSelectOptionsByInitialLetters ? (a(!0), r(T, { key: 1 }, M(l.initialLetters, (u, h) => (a(), r("optgroup", {
3350
3350
  label: h,
@@ -20850,7 +20850,7 @@ const Fx = /* @__PURE__ */ B(Bx, [["render", Dx]]), Mx = [
20850
20850
  text: "Zimbabwe",
20851
20851
  value: "zw"
20852
20852
  }
20853
- ], ZC = "comand-component-library", QC = "4.2.80", XC = "GPL-3.0-only", $C = "CoManD-UI", e1 = "module", t1 = { prepublishOnly: "npm run build-lib", dev: "vite", build: "vite build", "build-lib": "vite build && gulp", preview: "vite preview" }, n1 = ["dist", "src"], i1 = { ".": "./dist/comand-component-library.js", "./css.js": "./src/css.js", "./comand-component-library.css": "./dist/comand-component-library.css", "./variables.scss": "./src/assets/styles/variables.scss", "./export-example-data.js": "./src/assets/data/export-example-data.js", "./countries.json": "./src/assets/lists-of-data/countries.json", "./currencies.json": "./src/assets/lists-of-data/currencies.json", "./dial-codes.json": "./src/assets/lists-of-data/dial-codes.json", "./us-cities.json": "./src/assets/lists-of-data/us-cities.json" }, l1 = { "clickout-event": "^1.1.2", "comand-frontend-framework": "^4.3.21", "comand-ui-iconfonts": "^1.0.19", "core-js": "^3.20.1", prismjs: "^1.27.0", vue: "^3.5.25", "vue-router": "^4.0.12", vuex: "^4.0.2" }, o1 = { "@iconify/vue": "^4.0.0", "@vitejs/plugin-vue": "^6.0.2", "@vue/test-utils": "^2.0.0-0", axios: "^1.7.2", gulp: "^4.0.2", sass: "^1.54.9", "unplugin-vue-components": "^0.24.0", vite: "^7.2.4", "vue-jest": "^5.0.0-0" }, a1 = {
20853
+ ], ZC = "comand-component-library", QC = "4.2.81", XC = "GPL-3.0-only", $C = "CoManD-UI", e1 = "module", t1 = { prepublishOnly: "npm run build-lib", dev: "vite", build: "vite build", "build-lib": "vite build && gulp", preview: "vite preview" }, n1 = ["dist", "src"], i1 = { ".": "./dist/comand-component-library.js", "./css.js": "./src/css.js", "./comand-component-library.css": "./dist/comand-component-library.css", "./variables.scss": "./src/assets/styles/variables.scss", "./export-example-data.js": "./src/assets/data/export-example-data.js", "./countries.json": "./src/assets/lists-of-data/countries.json", "./currencies.json": "./src/assets/lists-of-data/currencies.json", "./dial-codes.json": "./src/assets/lists-of-data/dial-codes.json", "./us-cities.json": "./src/assets/lists-of-data/us-cities.json" }, l1 = { "clickout-event": "^1.1.2", "comand-frontend-framework": "^4.3.21", "comand-ui-iconfonts": "^1.0.19", "core-js": "^3.20.1", prismjs: "^1.27.0", vue: "^3.5.25", "vue-router": "^4.0.12", vuex: "^4.0.2" }, o1 = { "@iconify/vue": "^4.0.0", "@vitejs/plugin-vue": "^6.0.2", "@vue/test-utils": "^2.0.0-0", axios: "^1.7.2", gulp: "^4.0.2", sass: "^1.54.9", "unplugin-vue-components": "^0.24.0", vite: "^7.2.4", "vue-jest": "^5.0.0-0" }, a1 = {
20854
20854
  name: ZC,
20855
20855
  version: QC,
20856
20856
  license: XC,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "comand-component-library",
3
- "version": "4.2.80",
3
+ "version": "4.2.81",
4
4
  "license": "GPL-3.0-only",
5
5
  "author": "CoManD-UI",
6
6
  "private": false,
@@ -190,7 +190,7 @@
190
190
  v-bind="elementAttributes"
191
191
  :id="htmlId"
192
192
  @blur="onBlur"
193
- @change="$emit('update:modelValue', $event.target.value)">
193
+ @change="onChange">
194
194
 
195
195
  <option v-if="!groupSelectOptionsByInitialLetters"
196
196
  v-for="(option, index) in selectOptions"
@@ -885,6 +885,8 @@ export default {
885
885
  this.$emit('update:modelValue', event.target.value)
886
886
  },
887
887
  onChange(event) {
888
+ this.validateInput(event)
889
+
888
890
  if (typeof this.modelValue === "boolean") {
889
891
  this.$emit("update:modelValue", event.target.checked)
890
892
  } else if (typeof this.modelValue === "string") {