@appmax_npm/ds-prime 1.0.0-alpha.109 → 1.0.0-alpha.110

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.
@@ -1,7 +1,7 @@
1
1
  import { Component, DefineComponent, VNode } from 'vue';
2
2
  import { AmFieldWrapperProps } from '../AmFieldWrapper';
3
3
 
4
- export interface AmFieldProps extends Omit<AmFieldWrapperProps, "error"> {
4
+ export interface AmFieldProps extends AmFieldWrapperProps {
5
5
  as?: Component;
6
6
  name: string;
7
7
  }
package/amfield/index.js CHANGED
@@ -1,36 +1,37 @@
1
- import { defineComponent as i, createPropsRestProxy as m, openBlock as n, createBlock as t, unref as p, withCtx as o, createVNode as d, resolveDynamicComponent as b, mergeProps as h } from "vue";
1
+ import { defineComponent as i, createPropsRestProxy as m, openBlock as o, createBlock as n, unref as p, withCtx as t, createVNode as d, resolveDynamicComponent as b, mergeProps as h } from "vue";
2
2
  import { _ as u } from "../AmFieldWrapper.vue_vue_type_script_setup_true_lang-DhxSM53l.js";
3
3
  import f from "primevue/inputtext";
4
4
  import { FormField as c } from "@primevue/forms";
5
- const _ = { name: "AmField" }, P = /* @__PURE__ */ i({
6
- ..._,
5
+ const H = { name: "AmField" }, P = /* @__PURE__ */ i({
6
+ ...H,
7
7
  props: {
8
8
  as: { default: () => f },
9
9
  name: {},
10
10
  label: {},
11
11
  labelHint: {},
12
12
  hint: {},
13
+ error: {},
13
14
  help: {},
14
15
  disabled: { type: Boolean }
15
16
  },
16
17
  setup(s) {
17
- const a = m(s, ["as", "help", "label", "labelHint", "hint"]);
18
- return (e, H) => (n(), t(p(c), {
19
- name: a.name
18
+ const r = m(s, ["as", "help", "label", "labelHint", "hint", "error"]);
19
+ return (e, _) => (o(), n(p(c), {
20
+ name: r.name
20
21
  }, {
21
- default: o((l) => {
22
- var r;
22
+ default: t((a) => {
23
+ var l;
23
24
  return [
24
25
  d(u, {
25
26
  help: e.help,
26
27
  label: e.label,
27
28
  labelHint: e.labelHint,
28
29
  hint: e.hint,
29
- error: (r = l == null ? void 0 : l.error) == null ? void 0 : r.message,
30
- disabled: a.disabled
30
+ error: e.error || ((l = a == null ? void 0 : a.error) == null ? void 0 : l.message),
31
+ disabled: r.disabled
31
32
  }, {
32
- default: o(() => [
33
- (n(), t(b(e.as), h({ ...e.$attrs, ...a }, { disabled: e.disabled }), null, 16, ["disabled"]))
33
+ default: t(() => [
34
+ (o(), n(b(e.as), h({ ...e.$attrs, ...r }, { disabled: e.disabled }), null, 16, ["disabled"]))
34
35
  ]),
35
36
  _: 2
36
37
  }, 1032, ["help", "label", "labelHint", "hint", "error", "disabled"])
@@ -1,4 +1,4 @@
1
- import { AllowedComponentProps, Component, DefineComponent, VNode } from 'vue';
1
+ import { DefineComponent, VNode } from 'vue';
2
2
 
3
3
  export interface AmFieldWrapperProps {
4
4
  label?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appmax_npm/ds-prime",
3
- "version": "1.0.0-alpha.109",
3
+ "version": "1.0.0-alpha.110",
4
4
  "description": "Design System da Appmax baseado no Primevue",
5
5
  "author": "Appmax",
6
6
  "exports": {