@cobre-npm/ds-v3 0.95.1 → 0.95.2
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/README.md +0 -0
- package/dist/cobre-ds-v3-lib.es.js +7 -6
- package/dist/style.css +1 -1
- package/dist/tokens/_components.scss +0 -0
- package/dist/tokens/_primitives.scss +0 -0
- package/dist/tokens/_semantics.scss +0 -0
- package/dist/types/components/molecules/CobreInputAmount/CobreInputAmount.vue.d.ts +2 -0
- package/dist/vite.svg +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
File without changes
|
|
@@ -5274,7 +5274,8 @@ const n0 = { class: "co-input" }, r0 = {
|
|
|
5274
5274
|
max: { default: 9e14 },
|
|
5275
5275
|
disabled: { type: Boolean, default: !1 },
|
|
5276
5276
|
label: {},
|
|
5277
|
-
allowDecimals: { type: Boolean, default: !0 }
|
|
5277
|
+
allowDecimals: { type: Boolean, default: !0 },
|
|
5278
|
+
showErrors: { type: Boolean, default: !1 }
|
|
5278
5279
|
},
|
|
5279
5280
|
emits: ["update:modelValue"],
|
|
5280
5281
|
setup(a, { expose: e }) {
|
|
@@ -5298,10 +5299,10 @@ const n0 = { class: "co-input" }, r0 = {
|
|
|
5298
5299
|
...t.options,
|
|
5299
5300
|
precision: ((f = t.options) == null ? void 0 : f.precision) ?? { min: 2, max: t.allowDecimals ? 2 : 0 }
|
|
5300
5301
|
}, { inputRef: s, setValue: l } = Xu(o), i = N(() => r.value), c = N(() => t.modelValue ? +t.modelValue >= +t.min : !1), u = N(() => t.modelValue ? +t.modelValue <= +t.max : !1), d = N(() => {
|
|
5301
|
-
const { disabled: k, modelValue: _, isRequired: y } = t,
|
|
5302
|
-
if (k ||
|
|
5303
|
-
const
|
|
5304
|
-
return _ || y ?
|
|
5302
|
+
const { disabled: k, modelValue: _, isRequired: y, showErrors: w } = t, E = _ && !i.value && !w;
|
|
5303
|
+
if (k || E) return !0;
|
|
5304
|
+
const T = (!!_ || _ === 0) && c.value && u.value && !w;
|
|
5305
|
+
return _ || y ? T : !0;
|
|
5305
5306
|
}), m = () => {
|
|
5306
5307
|
r.value = !0;
|
|
5307
5308
|
}, b = () => {
|
|
@@ -5349,7 +5350,7 @@ const n0 = { class: "co-input" }, r0 = {
|
|
|
5349
5350
|
])) : O("", !0)
|
|
5350
5351
|
]));
|
|
5351
5352
|
}
|
|
5352
|
-
}), qx = /* @__PURE__ */ Se(d0, [["__scopeId", "data-v-
|
|
5353
|
+
}), qx = /* @__PURE__ */ Se(d0, [["__scopeId", "data-v-eaf332a3"]]), f0 = {
|
|
5353
5354
|
key: 0,
|
|
5354
5355
|
class: "d-flex align-items-center justify-content-between"
|
|
5355
5356
|
}, p0 = { class: "d-flex align-items-center" }, m0 = ["title"], h0 = {
|