@aplus-frontend/ui 0.0.13 → 0.0.14

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.
Files changed (101) hide show
  1. package/es/index.mjs +53 -55
  2. package/es/src/ap-field/checkbox/index.vue.mjs +2 -0
  3. package/es/src/ap-field/date/index.vue.mjs +2 -0
  4. package/es/src/ap-field/date-range/index.vue.mjs +2 -0
  5. package/es/src/ap-field/interface.d.ts +2 -0
  6. package/es/src/ap-field/number/index.vue.mjs +2 -0
  7. package/es/src/ap-field/radio/index.vue.mjs +9 -7
  8. package/es/src/ap-field/rate/index.vue.mjs +4 -2
  9. package/es/src/ap-field/segmented/index.vue.mjs +15 -13
  10. package/es/src/ap-field/select/index.vue.mjs +18 -16
  11. package/es/src/ap-field/slider/index.vue.mjs +11 -9
  12. package/es/src/ap-field/switch/index.vue.mjs +10 -8
  13. package/es/src/ap-field/text/index.vue.d.ts +1 -1
  14. package/es/src/ap-field/text/index.vue2.mjs +12 -10
  15. package/es/src/ap-field/text/password.vue.d.ts +1 -1
  16. package/es/src/ap-field/text/password.vue.mjs +16 -14
  17. package/es/src/ap-field/text-area/index.vue.d.ts +1 -1
  18. package/es/src/ap-field/text-area/index.vue.mjs +2 -0
  19. package/es/src/ap-table/constants.d.ts +715 -487
  20. package/es/src/ap-table/utils.d.ts +3 -3
  21. package/es/src/business/index.d.ts +2 -5
  22. package/es/src/business/index.mjs +4 -5
  23. package/es/src/business/title/ApTitle.vue.mjs +2 -48
  24. package/es/src/business/title/ApTitle.vue2.mjs +48 -2
  25. package/es/src/config-provider/config-provider-props.d.ts +1 -1
  26. package/es/src/config-provider/config-provider-props.mjs +5 -6
  27. package/es/src/config-provider/config-provider.d.ts +11 -11
  28. package/es/src/config-provider/hooks/use-global-config.d.ts +1 -1
  29. package/es/src/config-provider/index.d.ts +31 -31
  30. package/es/src/description/description.vue.d.ts +1 -1
  31. package/es/src/description/index.d.ts +3 -3
  32. package/es/src/editable-table/form-item.vue.d.ts +1 -1
  33. package/es/src/icon-picker/icon-picker.vue.d.ts +2 -2
  34. package/es/src/icon-picker/index.d.ts +26 -26
  35. package/es/src/index.mjs +50 -52
  36. package/es/src/modal/basic.vue.d.ts +1 -1
  37. package/es/src/modal/components/modal-footer.vue.d.ts +1 -1
  38. package/es/src/modal/index.d.ts +2 -2
  39. package/es/src/pro-form/components/api-cascader.vue.d.ts +1 -1
  40. package/es/src/pro-form/components/api-radio-group.vue.d.ts +1 -1
  41. package/es/src/pro-form/components/api-select.vue.d.ts +2 -2
  42. package/es/src/pro-form/components/api-transfer.vue.d.ts +1 -1
  43. package/es/src/pro-form/components/api-tree-select.vue.d.ts +1 -1
  44. package/es/src/pro-form/components/api-tree.vue.d.ts +1 -1
  45. package/es/src/pro-form/hooks/use-label-width.d.ts +6 -6
  46. package/es/src/pro-form/pro-form.vue.d.ts +1 -1
  47. package/es/src/pro-table/components/editable/editable-cell.vue.d.ts +1 -1
  48. package/es/src/pro-table/pro-table.vue.d.ts +1 -1
  49. package/es/src/scroll-bar/index.d.ts +12 -12
  50. package/es/src/utils/config-provider-preset.d.ts +12 -12
  51. package/lib/index.js +1 -1
  52. package/lib/src/ap-field/checkbox/index.vue.js +1 -1
  53. package/lib/src/ap-field/date/index.vue.js +1 -1
  54. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  55. package/lib/src/ap-field/interface.d.ts +2 -0
  56. package/lib/src/ap-field/number/index.vue.js +1 -1
  57. package/lib/src/ap-field/radio/index.vue.js +1 -1
  58. package/lib/src/ap-field/rate/index.vue.js +1 -1
  59. package/lib/src/ap-field/segmented/index.vue.js +1 -1
  60. package/lib/src/ap-field/select/index.vue.js +1 -1
  61. package/lib/src/ap-field/slider/index.vue.js +1 -1
  62. package/lib/src/ap-field/switch/index.vue.js +1 -1
  63. package/lib/src/ap-field/text/index.vue.d.ts +1 -1
  64. package/lib/src/ap-field/text/index.vue2.js +1 -1
  65. package/lib/src/ap-field/text/password.vue.d.ts +1 -1
  66. package/lib/src/ap-field/text/password.vue.js +1 -1
  67. package/lib/src/ap-field/text-area/index.vue.d.ts +1 -1
  68. package/lib/src/ap-field/text-area/index.vue.js +1 -1
  69. package/lib/src/ap-table/constants.d.ts +715 -487
  70. package/lib/src/ap-table/utils.d.ts +3 -3
  71. package/lib/src/business/index.d.ts +2 -5
  72. package/lib/src/business/index.js +1 -1
  73. package/lib/src/business/title/ApTitle.vue.js +1 -1
  74. package/lib/src/business/title/ApTitle.vue2.js +1 -1
  75. package/lib/src/config-provider/config-provider-props.d.ts +1 -1
  76. package/lib/src/config-provider/config-provider-props.js +1 -1
  77. package/lib/src/config-provider/config-provider.d.ts +11 -11
  78. package/lib/src/config-provider/hooks/use-global-config.d.ts +1 -1
  79. package/lib/src/config-provider/index.d.ts +31 -31
  80. package/lib/src/description/description.vue.d.ts +1 -1
  81. package/lib/src/description/index.d.ts +3 -3
  82. package/lib/src/editable-table/form-item.vue.d.ts +1 -1
  83. package/lib/src/icon-picker/icon-picker.vue.d.ts +2 -2
  84. package/lib/src/icon-picker/index.d.ts +26 -26
  85. package/lib/src/index.js +1 -1
  86. package/lib/src/modal/basic.vue.d.ts +1 -1
  87. package/lib/src/modal/components/modal-footer.vue.d.ts +1 -1
  88. package/lib/src/modal/index.d.ts +2 -2
  89. package/lib/src/pro-form/components/api-cascader.vue.d.ts +1 -1
  90. package/lib/src/pro-form/components/api-radio-group.vue.d.ts +1 -1
  91. package/lib/src/pro-form/components/api-select.vue.d.ts +2 -2
  92. package/lib/src/pro-form/components/api-transfer.vue.d.ts +1 -1
  93. package/lib/src/pro-form/components/api-tree-select.vue.d.ts +1 -1
  94. package/lib/src/pro-form/components/api-tree.vue.d.ts +1 -1
  95. package/lib/src/pro-form/hooks/use-label-width.d.ts +6 -6
  96. package/lib/src/pro-form/pro-form.vue.d.ts +1 -1
  97. package/lib/src/pro-table/components/editable/editable-cell.vue.d.ts +1 -1
  98. package/lib/src/pro-table/pro-table.vue.d.ts +1 -1
  99. package/lib/src/scroll-bar/index.d.ts +12 -12
  100. package/lib/src/utils/config-provider-preset.d.ts +12 -12
  101. package/package.json +1 -1
@@ -3,8 +3,8 @@ import { Input as V } from "ant-design-vue";
3
3
  import "../../hooks/index.mjs";
4
4
  import { omit as j } from "lodash-unified";
5
5
  import { useControllableValue as F } from "../../hooks/useControllableValue.mjs";
6
- function T(u) {
7
- return typeof u == "function" || Object.prototype.toString.call(u) === "[object Object]" && !x(u);
6
+ function T(l) {
7
+ return typeof l == "function" || Object.prototype.toString.call(l) === "[object Object]" && !x(l);
8
8
  }
9
9
  const K = /* @__PURE__ */ v({
10
10
  name: "ApFieldText",
@@ -13,6 +13,8 @@ const K = /* @__PURE__ */ v({
13
13
  mode: {
14
14
  default: "edit"
15
15
  },
16
+ class: {},
17
+ style: {},
16
18
  id: {},
17
19
  placeholder: {},
18
20
  autocomplete: {},
@@ -84,12 +86,12 @@ const K = /* @__PURE__ */ v({
84
86
  }
85
87
  },
86
88
  emits: ["update:value"],
87
- setup(u, {
88
- expose: d,
89
- emit: c
89
+ setup(l, {
90
+ expose: c,
91
+ emit: d
90
92
  }) {
91
93
  const n = B(), t = g();
92
- d({
94
+ c({
93
95
  focus: (e) => {
94
96
  var o;
95
97
  (o = n.value) == null || o.focus(e);
@@ -111,19 +113,19 @@ const K = /* @__PURE__ */ v({
111
113
  return (e = n.value) == null ? void 0 : e.input;
112
114
  })
113
115
  });
114
- const f = c, a = u, {
115
- value: l,
116
+ const f = d, a = l, {
117
+ value: u,
116
118
  updateValue: s
117
119
  } = F(a, f);
118
120
  function m() {
119
121
  var e, o;
120
122
  return a.mode === "edit" ? p(V, C(j(a, ["mode", "emptyText", "value", "onUpdate:value"]), {
121
- value: i(l),
123
+ value: i(u),
122
124
  "onUpdate:value": s,
123
125
  ref: n
124
126
  }), T(t) ? t : {
125
127
  default: () => [t]
126
- }) : p(h, null, [a.prefix || ((e = t == null ? void 0 : t.prefix) == null ? void 0 : e.call(t)), i(l) || a.emptyText, a.suffix || ((o = t == null ? void 0 : t.suffix) == null ? void 0 : o.call(t))]);
128
+ }) : p(h, null, [a.prefix || ((e = t == null ? void 0 : t.prefix) == null ? void 0 : e.call(t)), i(u) || a.emptyText, a.suffix || ((o = t == null ? void 0 : t.suffix) == null ? void 0 : o.call(t))]);
127
129
  }
128
130
  return (e, o) => (S(), _(R(m())));
129
131
  }
@@ -40,7 +40,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
40
40
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
41
41
  }, {
42
42
  visible: boolean;
43
- type: "number" | "text" | "color" | "button" | "time" | "image" | "search" | "submit" | "reset" | "hidden" | "tel" | "url" | "email" | "checkbox" | "radio" | "range" | "date" | "week" | "month" | "datetime-local" | "file" | "password";
43
+ type: "number" | "text" | "color" | "reset" | "submit" | "button" | "time" | "month" | "date" | "week" | "hidden" | "search" | "image" | "tel" | "url" | "email" | "checkbox" | "radio" | "range" | "datetime-local" | "file" | "password";
44
44
  mode: FieldMode;
45
45
  bordered: boolean;
46
46
  allowClear: boolean;
@@ -1,11 +1,11 @@
1
- import { isVNode as B, defineComponent as x, ref as C, useSlots as g, unref as p, createVNode as o, mergeProps as h, Fragment as V, openBlock as _, createBlock as w, resolveDynamicComponent as P } from "vue";
1
+ import { isVNode as B, defineComponent as x, ref as C, useSlots as g, unref as p, createVNode as t, mergeProps as h, Fragment as V, openBlock as _, createBlock as w, resolveDynamicComponent as P } from "vue";
2
2
  import { Input as S, Space as U } from "ant-design-vue";
3
3
  import "../../hooks/index.mjs";
4
4
  import { omit as O } from "lodash-unified";
5
5
  import { EyeOutlined as T, EyeInvisibleOutlined as j } from "@ant-design/icons-vue";
6
6
  import { useControllableValue as d } from "../../hooks/useControllableValue.mjs";
7
- function k(t) {
8
- return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !B(t);
7
+ function k(o) {
8
+ return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !B(o);
9
9
  }
10
10
  const D = /* @__PURE__ */ x({
11
11
  name: "ApFieldTextPassword",
@@ -14,6 +14,8 @@ const D = /* @__PURE__ */ x({
14
14
  mode: {
15
15
  default: "edit"
16
16
  },
17
+ class: {},
18
+ style: {},
17
19
  id: {},
18
20
  placeholder: {},
19
21
  autocomplete: {},
@@ -98,7 +100,7 @@ const D = /* @__PURE__ */ x({
98
100
  }
99
101
  },
100
102
  emits: ["update:value", "update:visible"],
101
- setup(t, {
103
+ setup(o, {
102
104
  expose: c,
103
105
  emit: f
104
106
  }) {
@@ -113,35 +115,35 @@ const D = /* @__PURE__ */ x({
113
115
  (e = a.value) == null || e.blur();
114
116
  }
115
117
  });
116
- const i = f, l = t, {
118
+ const i = f, l = o, {
117
119
  value: m,
118
- updateValue: v
120
+ updateValue: y
119
121
  } = d(l, i), {
120
- value: y,
122
+ value: v,
121
123
  updateValue: s
122
124
  } = d(l, i, {
123
125
  valuePropName: "visible"
124
126
  });
125
127
  function b() {
126
- const e = p(m), n = p(y);
128
+ const e = p(m), n = p(v);
127
129
  if (l.mode === "edit")
128
- return o(S.Password, h(O(l, ["mode", "emptyText", "value", "onUpdate:value", "visible", "onUpdate:visible"]), {
130
+ return t(S.Password, h(O(l, ["mode", "emptyText", "value", "onUpdate:value", "visible", "onUpdate:visible"]), {
129
131
  value: e,
130
- "onUpdate:value": v,
132
+ "onUpdate:value": y,
131
133
  visible: n,
132
134
  "onUpdate:visible": s,
133
135
  ref: a
134
136
  }), k(u) ? u : {
135
137
  default: () => [u]
136
138
  });
137
- let r = o(V, null, [l.emptyText]);
138
- return e && (r = o(U, null, {
139
- default: () => [o("span", null, [n ? e : "********"]), o("span", {
139
+ let r = t(V, null, [l.emptyText]);
140
+ return e && (r = t(U, null, {
141
+ default: () => [t("span", null, [n ? e : "********"]), t("span", {
140
142
  style: {
141
143
  cursor: "pointer"
142
144
  },
143
145
  onClick: () => s(!n)
144
- }, [n ? o(T, null, null) : o(j, null, null)])]
146
+ }, [n ? t(T, null, null) : t(j, null, null)])]
145
147
  })), r;
146
148
  }
147
149
  return (e, n) => (_(), w(P(b())));
@@ -25,7 +25,7 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
25
25
  }>>> & {
26
26
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
27
27
  }, {
28
- type: "number" | "text" | "color" | "button" | "time" | "image" | "search" | "submit" | "reset" | "hidden" | "tel" | "url" | "email" | "checkbox" | "radio" | "range" | "date" | "week" | "month" | "datetime-local" | "file" | "password";
28
+ type: "number" | "text" | "color" | "reset" | "submit" | "button" | "time" | "month" | "date" | "week" | "hidden" | "search" | "image" | "tel" | "url" | "email" | "checkbox" | "radio" | "range" | "datetime-local" | "file" | "password";
29
29
  mode: FieldMode;
30
30
  bordered: boolean;
31
31
  allowClear: boolean;
@@ -11,6 +11,8 @@ const I = /* @__PURE__ */ c({
11
11
  __name: "index",
12
12
  props: {
13
13
  mode: { default: "edit" },
14
+ class: {},
15
+ style: {},
14
16
  rows: {},
15
17
  autosize: { type: [Boolean, Object] },
16
18
  autoSize: { type: [Boolean, Object] },