rappel-ui 1.0.14 → 1.0.16

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 (138) hide show
  1. package/cjs/_virtual/_rolldown/runtime.js +1 -1
  2. package/cjs/components/button/src/button-group.vue_vue_type_script_setup_true_lang.js +1 -1
  3. package/cjs/components/button/src/button.vue_vue_type_script_setup_true_lang.js +1 -1
  4. package/cjs/components/colors/src/neutral-color.vue_vue_type_script_setup_true_lang.js +1 -1
  5. package/cjs/components/colors/src/primary-color.vue.d.ts +4 -1
  6. package/cjs/components/colors/src/primary-color.vue_vue_type_script_setup_true_lang.js +1 -1
  7. package/cjs/components/colors/src/secondary-color.vue.d.ts +7 -1
  8. package/cjs/components/colors/src/secondary-color.vue_vue_type_script_setup_true_lang.js +1 -1
  9. package/cjs/components/filter-panel/index.d.ts +9 -9
  10. package/cjs/components/filter-panel/src/filter-panel.vue.d.ts +3 -3
  11. package/cjs/components/filter-panel/src/filter-panel.vue_vue_type_script_setup_true_lang.js +1 -1
  12. package/cjs/components/popconfirm/index.d.ts +28 -5
  13. package/cjs/components/popconfirm/src/popconfirm.vue.d.ts +19 -4
  14. package/cjs/components/popconfirm/src/popconfirm.vue_vue_type_script_setup_true_lang.js +1 -1
  15. package/cjs/components/popover/index.d.ts +19 -3
  16. package/cjs/components/popover/src/popover.vue.d.ts +10 -1
  17. package/cjs/components/popover/src/popover.vue_vue_type_script_setup_true_lang.js +1 -1
  18. package/cjs/components/svg-icon/src/svg-icon.vue.d.ts +1 -0
  19. package/cjs/components/svg-icon/src/svg-icon.vue_vue_type_script_setup_true_lang.js +1 -1
  20. package/cjs/components/tooltip/src/use-tooltip.js +1 -1
  21. package/cjs/composables/use-theme/index.js +1 -1
  22. package/cjs/index.d.ts +72 -19
  23. package/cjs/index.js +1 -1
  24. package/cjs/node_modules/.pnpm/@vueuse_core@14.4.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.js +1 -0
  25. package/cjs/node_modules/.pnpm/@vueuse_shared@14.4.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.js +1 -0
  26. package/cjs/node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js +1 -0
  27. package/cjs/svg-icons/constants.js +1 -0
  28. package/cjs/svg-icons/dist/es/index.js +1 -1
  29. package/cjs/svg-icons/dist/es/node_modules/.pnpm/@vueuse_core@14.4.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.js +1 -0
  30. package/cjs/svg-icons/dist/es/node_modules/.pnpm/@vueuse_shared@14.4.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.js +1 -0
  31. package/cjs/svg-icons/dist/es/packages/composables/use-theme/index.js +1 -1
  32. package/cjs/svg-icons/index.js +1 -0
  33. package/cjs/utils/util.d.ts +8 -7
  34. package/cjs/utils/util.js +1 -1
  35. package/es/_virtual/_rolldown/runtime.mjs +2 -2
  36. package/es/components/button/src/button-group.vue_vue_type_script_setup_true_lang.mjs +1 -2
  37. package/es/components/button/src/button.vue_vue_type_script_setup_true_lang.mjs +1 -2
  38. package/es/components/colors/src/colors.vue_vue_type_script_setup_true_lang.mjs +1 -1
  39. package/es/components/colors/src/neutral-color.vue_vue_type_script_setup_true_lang.mjs +6 -4
  40. package/es/components/colors/src/primary-color.vue.d.ts +4 -1
  41. package/es/components/colors/src/primary-color.vue_vue_type_script_setup_true_lang.mjs +30 -21
  42. package/es/components/colors/src/secondary-color.vue.d.ts +7 -1
  43. package/es/components/colors/src/secondary-color.vue_vue_type_script_setup_true_lang.mjs +50 -31
  44. package/es/components/filter-panel/index.d.ts +9 -9
  45. package/es/components/filter-panel/src/filter-panel.vue.d.ts +3 -3
  46. package/es/components/filter-panel/src/filter-panel.vue_vue_type_script_setup_true_lang.mjs +4 -6
  47. package/es/components/index.mjs +1 -1
  48. package/es/components/input/src/input.vue_vue_type_script_setup_true_lang.mjs +1 -1
  49. package/es/components/popconfirm/index.d.ts +28 -5
  50. package/es/components/popconfirm/src/popconfirm.vue.d.ts +19 -4
  51. package/es/components/popconfirm/src/popconfirm.vue_vue_type_script_setup_true_lang.mjs +63 -49
  52. package/es/components/popover/index.d.ts +19 -3
  53. package/es/components/popover/src/popover.vue.d.ts +10 -1
  54. package/es/components/popover/src/popover.vue_vue_type_script_setup_true_lang.mjs +27 -22
  55. package/es/components/svg-icon/src/svg-icon.vue.d.ts +1 -0
  56. package/es/components/svg-icon/src/svg-icon.vue_vue_type_script_setup_true_lang.mjs +1 -2
  57. package/es/components/tabs/src/tabs.mjs +1 -1
  58. package/es/components/tooltip/src/content.vue_vue_type_script_setup_true_lang.mjs +3 -3
  59. package/es/components/tooltip/src/tooltip.vue_vue_type_script_setup_true_lang.mjs +4 -4
  60. package/es/components/tooltip/src/use-tooltip.mjs +8 -15
  61. package/es/composables/use-theme/index.mjs +2 -2
  62. package/es/composables/use-time-nodes/index.mjs +1 -1
  63. package/es/index.d.ts +72 -19
  64. package/es/index.mjs +35 -35
  65. package/es/node_modules/.pnpm/@floating-ui_core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +1 -1
  66. package/es/node_modules/.pnpm/@floating-ui_dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +2 -2
  67. package/es/node_modules/.pnpm/{@vueuse_core@14.0.0_vue@3.5.26_typescript@5.9.3_ → @vueuse_core@14.4.0_vue@3.5.26_typescript@5.9.3_}/node_modules/@vueuse/core/dist/index.mjs +114 -112
  68. package/es/node_modules/.pnpm/@vueuse_shared@14.4.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.mjs +136 -0
  69. package/es/node_modules/.pnpm/process@0.11.10/node_modules/process/browser.mjs +90 -0
  70. package/es/svg-icons/constants.mjs +114 -0
  71. package/es/svg-icons/dist/es/index.mjs +19 -47
  72. package/es/svg-icons/dist/es/node_modules/.pnpm/@vueuse_core@14.4.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.mjs +273 -0
  73. package/es/svg-icons/dist/es/node_modules/.pnpm/@vueuse_shared@14.4.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.mjs +88 -0
  74. package/es/svg-icons/dist/es/packages/components/svg-icon/src/svg-icon.vue_vue_type_script_setup_true_lang.mjs +1 -1
  75. package/es/svg-icons/dist/es/packages/composables/use-theme/index.mjs +1 -1
  76. package/es/svg-icons/index.mjs +77 -0
  77. package/es/utils/util.d.ts +8 -7
  78. package/es/utils/util.mjs +4 -4
  79. package/package.json +1 -1
  80. package/theme-chalk/base.css +1 -231
  81. package/theme-chalk/index.css +1 -1271
  82. package/theme-chalk/re-button-group.css +1 -68
  83. package/theme-chalk/re-button.css +1 -810
  84. package/theme-chalk/re-colors.css +1 -87
  85. package/theme-chalk/re-filter-panel.css +1 -36
  86. package/theme-chalk/re-popconfirm.css +1 -47
  87. package/theme-chalk/re-popover.css +1 -31
  88. package/theme-chalk/re-svg-icon.css +1 -33
  89. package/theme-chalk/re-tooltip.css +1 -62
  90. package/theme-chalk/root-vars.css +1 -201
  91. package/theme-chalk/src/base.scss +3 -4
  92. package/theme-chalk/src/colors.scss +16 -0
  93. package/theme-chalk/src/css-vars/_colors.scss +7 -7
  94. package/theme-chalk/src/function/index.scss +8 -8
  95. package/theme-chalk/src/mixins/_button.scss +1 -1
  96. package/umd/index.css +1 -0
  97. package/umd/index.js +9 -9
  98. package/cjs/components/button/style/index.js +0 -1
  99. package/cjs/components/button-group/style/index.js +0 -1
  100. package/cjs/components/colors/style/index.js +0 -1
  101. package/cjs/components/filter-panel/style/index.js +0 -1
  102. package/cjs/components/svg-icon/style/index.js +0 -1
  103. package/cjs/node_modules/.pnpm/@vueuse_core@14.0.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.js +0 -1
  104. package/cjs/node_modules/.pnpm/@vueuse_shared@14.0.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.js +0 -1
  105. package/cjs/svg-icons/dist/es/node_modules/.pnpm/@vueuse_core@14.0.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.js +0 -1
  106. package/cjs/svg-icons/dist/es/node_modules/.pnpm/@vueuse_shared@14.0.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.js +0 -1
  107. package/cjs/theme-chalk/src/base.css +0 -1
  108. package/cjs/theme-chalk/src/button-group.css +0 -1
  109. package/cjs/theme-chalk/src/button.css +0 -1
  110. package/cjs/theme-chalk/src/colors.css +0 -1
  111. package/cjs/theme-chalk/src/filter-panel.css +0 -1
  112. package/cjs/theme-chalk/src/svg-icon.css +0 -1
  113. package/es/components/button/style/index.mjs +0 -2
  114. package/es/components/button-group/style/index.mjs +0 -2
  115. package/es/components/colors/style/index.mjs +0 -2
  116. package/es/components/filter-panel/style/index.mjs +0 -2
  117. package/es/components/svg-icon/style/index.mjs +0 -2
  118. package/es/node_modules/.pnpm/@vueuse_shared@14.0.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.mjs +0 -121
  119. package/es/svg-icons/dist/es/node_modules/.pnpm/@vueuse_core@14.0.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.mjs +0 -275
  120. package/es/svg-icons/dist/es/node_modules/.pnpm/@vueuse_shared@14.0.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.mjs +0 -88
  121. package/es/theme-chalk/src/base.css +0 -1
  122. package/es/theme-chalk/src/button-group.css +0 -1
  123. package/es/theme-chalk/src/button.css +0 -1
  124. package/es/theme-chalk/src/colors.css +0 -1
  125. package/es/theme-chalk/src/filter-panel.css +0 -1
  126. package/es/theme-chalk/src/svg-icon.css +0 -1
  127. package/theme-chalk/css-vars/_button-group.css +0 -15
  128. package/theme-chalk/css-vars/_button.css +0 -15
  129. package/theme-chalk/css-vars/_colors.css +0 -33
  130. package/theme-chalk/css-vars/_popconfirm.css +0 -15
  131. package/theme-chalk/css-vars/_tooltip.css +0 -15
  132. package/theme-chalk/function/_button.css +0 -15
  133. package/theme-chalk/function/index.css +0 -15
  134. package/theme-chalk/mixins/_base.css +0 -15
  135. package/theme-chalk/mixins/_button.css +0 -18
  136. package/theme-chalk/mixins/_popconfirm.css +0 -18
  137. package/theme-chalk/mixins/_tooltip.css +0 -18
  138. package/theme-chalk/mixins/index.css +0 -18
@@ -3,54 +3,73 @@ import "../../../utils/index.mjs";
3
3
  import { useNamespace as n } from "../../../composables/use-namespace/index.mjs";
4
4
  import { useTheme as r } from "../../../composables/use-theme/index.mjs";
5
5
  import "../../../composables/index.mjs";
6
- import "../style/index.mjs";
7
- import { Fragment as i, createElementBlock as a, createElementVNode as o, defineComponent as s, normalizeClass as c, normalizeStyle as l, onMounted as u, openBlock as d, ref as f, renderList as p, toDisplayString as m, unref as h, watch as g } from "vue";
6
+ import { require_browser as i } from "../../../node_modules/.pnpm/process@0.11.10/node_modules/process/browser.mjs";
7
+ import { Fragment as a, computed as o, createElementBlock as s, createElementVNode as c, defineComponent as l, normalizeClass as u, normalizeStyle as d, onMounted as f, openBlock as p, ref as m, renderList as h, toDisplayString as g, unref as _, watch as v } from "vue";
8
8
  //#region packages/components/colors/src/secondary-color.vue?vue&type=script&setup=true&lang.ts
9
- var _ = /*@__PURE__*/ s({
9
+ var y = i(), b = ["innerHTML"], x = l({
10
10
  name: "ReSecondaryColor",
11
11
  __name: "secondary-color",
12
- setup(s) {
13
- let { nm: _, ns: v } = n("colors"), { isDark: y } = r(), b = f([]), x = (n) => {
14
- let r = Object.values(t("re-color-success-base"))[0], i = Object.values(t("re-color-warning-base"))[0], a = Object.values(t("re-color-danger-base"))[0], o = Object.values(t("re-color-info-base"))[0];
15
- b.value = [
12
+ props: {
13
+ successCodeHtml: { default: "" },
14
+ warningCodeHtml: { default: "" },
15
+ dangerCodeHtml: { default: "" },
16
+ infoCodeHtml: { default: "" }
17
+ },
18
+ setup(i) {
19
+ let { nm: l, ns: x } = n("colors"), { isDark: S } = r(), C = m([]), w = (n) => {
20
+ let r = Object.values(t("re-color-success-base"))[0], a = Object.values(t("re-color-warning-base"))[0], s = Object.values(t("re-color-danger-base"))[0], c = Object.values(t("re-color-info-base"))[0];
21
+ C.value = [
16
22
  {
17
23
  base: r,
18
24
  text: "Success",
19
- shades: e(r, n)
25
+ shades: e(r, n),
26
+ codeHtml: o(() => i.successCodeHtml)
20
27
  },
21
28
  {
22
- base: i,
23
- text: "Danger/Error ",
24
- shades: e(i, n)
29
+ base: a,
30
+ text: "Warning ",
31
+ shades: e(a, n),
32
+ codeHtml: o(() => i.warningCodeHtml)
25
33
  },
26
34
  {
27
- base: a,
28
- text: "Warning",
29
- shades: e(a, n)
35
+ base: s,
36
+ text: "Danger/Error",
37
+ shades: e(s, n),
38
+ codeHtml: o(() => i.dangerCodeHtml)
30
39
  },
31
40
  {
32
- base: o,
41
+ base: c,
33
42
  text: "Info",
34
- shades: e(o, n)
43
+ shades: e(c, n),
44
+ codeHtml: o(() => i.infoCodeHtml)
35
45
  }
36
46
  ];
37
47
  };
38
- return g(y, (e) => {
39
- x(e);
40
- }), u(() => {
41
- x(y.value);
42
- }), (e, t) => (d(), a("div", { class: c([h(_)("secondary")]) }, [(d(!0), a(i, null, p(b.value, (e) => (d(), a("div", {
48
+ return v(S, (e) => {
49
+ (0, y.nextTick)(() => {
50
+ w(e);
51
+ });
52
+ }), f(() => {
53
+ w(S.value);
54
+ }), (e, t) => (p(), s("div", { class: u([_(l)("secondary")]) }, [(p(!0), s(a, null, h(C.value, (e) => (p(), s("div", {
43
55
  key: e.base,
44
- class: c([h(v)("panel")])
45
- }, [o("div", {
46
- class: c([h(v)("base")]),
47
- style: l({ "background-color": e.base })
48
- }, [o("div", null, m(e.text), 1), o("div", null, m(e.base.toUpperCase()), 1)], 6), o("div", { class: c([h(v)("shades")]) }, [(d(!0), a(i, null, p(e.shades, (e) => (d(), a("div", {
49
- key: e,
50
- class: c([h(v)("shade")]),
51
- style: l({ "background-color": e })
52
- }, null, 6))), 128))], 2)], 2))), 128))], 2));
56
+ class: u([_(x)("panel")])
57
+ }, [
58
+ c("div", {
59
+ class: u([_(x)("base")]),
60
+ style: d({ "background-color": e.base })
61
+ }, [c("div", null, g(e.text), 1), c("div", null, g(e.base.toUpperCase()), 1)], 6),
62
+ c("div", { class: u([_(x)("shades")]) }, [(p(!0), s(a, null, h(e.shades, (e) => (p(), s("div", {
63
+ key: e,
64
+ class: u([_(x)("shade")]),
65
+ style: d({ "background-color": e })
66
+ }, null, 6))), 128))], 2),
67
+ c("div", {
68
+ class: u([_(x)("code")]),
69
+ innerHTML: e.codeHtml
70
+ }, null, 10, b)
71
+ ], 2))), 128))], 2));
53
72
  }
54
73
  });
55
74
  //#endregion
56
- export { _ as default };
75
+ export { x as default };
@@ -8,9 +8,9 @@ export declare const ReFilterPanel: {
8
8
  toggle: () => void;
9
9
  update: () => void;
10
10
  isExpand: import('vue').ModelRef<boolean, string, boolean, boolean>;
11
- innerH: import('vue').ShallowRef<number, number>;
12
- innerW: import('vue').ShallowRef<number, number>;
13
- wrapperW: import('vue').ShallowRef<number, number>;
11
+ innerH: import('vue').ShallowRef<number>;
12
+ innerW: import('vue').ShallowRef<number>;
13
+ wrapperW: import('vue').ShallowRef<number>;
14
14
  maxH: import('vue').ComputedRef<number>;
15
15
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
16
16
  "update:isExpand": (value: boolean) => any;
@@ -29,9 +29,9 @@ export declare const ReFilterPanel: {
29
29
  toggle: () => void;
30
30
  update: () => void;
31
31
  isExpand: import('vue').ModelRef<boolean, string, boolean, boolean>;
32
- innerH: import('vue').ShallowRef<number, number>;
33
- innerW: import('vue').ShallowRef<number, number>;
34
- wrapperW: import('vue').ShallowRef<number, number>;
32
+ innerH: import('vue').ShallowRef<number>;
33
+ innerW: import('vue').ShallowRef<number>;
34
+ wrapperW: import('vue').ShallowRef<number>;
35
35
  maxH: import('vue').ComputedRef<number>;
36
36
  }, {}, {}, {}, {}>;
37
37
  __isFragment?: never;
@@ -45,9 +45,9 @@ export declare const ReFilterPanel: {
45
45
  toggle: () => void;
46
46
  update: () => void;
47
47
  isExpand: import('vue').ModelRef<boolean, string, boolean, boolean>;
48
- innerH: import('vue').ShallowRef<number, number>;
49
- innerW: import('vue').ShallowRef<number, number>;
50
- wrapperW: import('vue').ShallowRef<number, number>;
48
+ innerH: import('vue').ShallowRef<number>;
49
+ innerW: import('vue').ShallowRef<number>;
50
+ wrapperW: import('vue').ShallowRef<number>;
51
51
  maxH: import('vue').ComputedRef<number>;
52
52
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
53
53
  "update:isExpand": (value: boolean) => any;
@@ -27,9 +27,9 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {
27
27
  toggle: () => void;
28
28
  update: () => void;
29
29
  isExpand: import('vue').ModelRef<boolean, string, boolean, boolean>;
30
- innerH: import('vue').ShallowRef<number, number>;
31
- innerW: import('vue').ShallowRef<number, number>;
32
- wrapperW: import('vue').ShallowRef<number, number>;
30
+ innerH: import('vue').ShallowRef<number>;
31
+ innerW: import('vue').ShallowRef<number>;
32
+ wrapperW: import('vue').ShallowRef<number>;
33
33
  maxH: import('vue').ComputedRef<number>;
34
34
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
35
35
  "update:isExpand": (value: boolean) => any;
@@ -1,16 +1,14 @@
1
1
  import { ArrowDownward as e, ArrowUpward as t } from "../../../svg-icons/dist/es/index.mjs";
2
2
  import { useNamespace as n } from "../../../composables/use-namespace/index.mjs";
3
- import { useElementSize as r, useMutationObserver as i } from "../../../node_modules/.pnpm/@vueuse_core@14.0.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.mjs";
3
+ import { useElementSize as r, useMutationObserver as i } from "../../../node_modules/.pnpm/@vueuse_core@14.4.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.mjs";
4
4
  import "../../../composables/index.mjs";
5
5
  import { ReButton as a } from "../../button/index.mjs";
6
- import "../style/index.mjs";
7
- import "../../index.mjs";
8
6
  import { computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, effectScope as m, mergeModels as h, normalizeClass as g, normalizeStyle as _, onMounted as v, onUnmounted as y, openBlock as b, renderSlot as x, unref as S, useModel as C, useTemplateRef as w, watch as T, watchEffect as E, withCtx as D, withModifiers as O } from "vue";
9
7
  //#region packages/components/filter-panel/src/filter-panel.vue?vue&type=script&setup=true&lang.ts
10
- var k = /*@__PURE__*/ p({
8
+ var k = p({
11
9
  name: "ReFilterPanel",
12
10
  __name: "filter-panel",
13
- props: /*@__PURE__*/ h({
11
+ props: h({
14
12
  selector: { default: "> *" },
15
13
  maxHeight: { default: 0 },
16
14
  itemMinw: { default: 240 },
@@ -31,7 +29,7 @@ var k = /*@__PURE__*/ p({
31
29
  },
32
30
  isExpandModifiers: {}
33
31
  }),
34
- emits: /*@__PURE__*/ h(["reset", "search"], ["update:isExpand"]),
32
+ emits: h(["reset", "search"], ["update:isExpand"]),
35
33
  setup(p, { expose: h, emit: k }) {
36
34
  let { n: A, ns: j } = n("filter-panel"), M = w("main"), { height: N } = r(M), P = o(() => p.maxHeight || N.value), F = k, I = w("wrapper"), L = w("inner"), R = C(p, "isExpand"), z = o(() => V.value > P.value), B = () => {
37
35
  R.value = !R.value;
@@ -13,7 +13,7 @@ import { ReTooltip as h } from "./tooltip/index.mjs";
13
13
  import { RePopover as g } from "./popover/index.mjs";
14
14
  import { RePopconfirm as _ } from "./popconfirm/index.mjs";
15
15
  //#region packages/components/index.ts
16
- var v = /* @__PURE__ */ e({
16
+ var v = e({
17
17
  ReButton: () => a,
18
18
  ReButtonGroup: () => o,
19
19
  ReColors: () => f,
@@ -1,6 +1,6 @@
1
1
  import { createElementBlock as e, defineComponent as t, mergeProps as n, openBlock as r } from "vue";
2
2
  //#region packages/components/input/src/input.vue?vue&type=script&setup=true&lang.ts
3
- var i = /*@__PURE__*/ t({
3
+ var i = t({
4
4
  name: "ReInput",
5
5
  __name: "input",
6
6
  props: {
@@ -1,12 +1,18 @@
1
1
  export * from './src/types.ts';
2
2
  export declare const RePopconfirm: {
3
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./index.ts').PopconfirmProps> & Readonly<{
3
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./index.ts').PopconfirmProps & {
4
+ visible?: boolean;
5
+ }> & Readonly<{
4
6
  onCancel?: ((e: MouseEvent) => any) | undefined;
7
+ "onUpdate:visible"?: ((value: boolean) => any) | undefined;
5
8
  onConfirm?: ((e: MouseEvent) => any) | undefined;
6
9
  }>, {
7
10
  tooltipRef: Readonly<import('vue').ShallowRef<any, any>>;
11
+ cancel: (e: MouseEvent) => void;
12
+ confirm: (e: MouseEvent) => void;
8
13
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
14
  cancel: (e: MouseEvent) => any;
15
+ "update:visible": (value: boolean) => any;
10
16
  confirm: (e: MouseEvent) => any;
11
17
  }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
12
18
  P: {};
@@ -15,26 +21,40 @@ export declare const RePopconfirm: {
15
21
  C: {};
16
22
  M: {};
17
23
  Defaults: {};
18
- }, Readonly<import('./index.ts').PopconfirmProps> & Readonly<{
24
+ }, Readonly<import('./index.ts').PopconfirmProps & {
25
+ visible?: boolean;
26
+ }> & Readonly<{
19
27
  onCancel?: ((e: MouseEvent) => any) | undefined;
28
+ "onUpdate:visible"?: ((value: boolean) => any) | undefined;
20
29
  onConfirm?: ((e: MouseEvent) => any) | undefined;
21
30
  }>, {
22
31
  tooltipRef: Readonly<import('vue').ShallowRef<any, any>>;
32
+ cancel: (e: MouseEvent) => void;
33
+ confirm: (e: MouseEvent) => void;
23
34
  }, {}, {}, {}, {}>;
24
35
  __isFragment?: never;
25
36
  __isTeleport?: never;
26
37
  __isSuspense?: never;
27
- } & import('vue').ComponentOptionsBase<Readonly<import('./index.ts').PopconfirmProps> & Readonly<{
38
+ } & import('vue').ComponentOptionsBase<Readonly<import('./index.ts').PopconfirmProps & {
39
+ visible?: boolean;
40
+ }> & Readonly<{
28
41
  onCancel?: ((e: MouseEvent) => any) | undefined;
42
+ "onUpdate:visible"?: ((value: boolean) => any) | undefined;
29
43
  onConfirm?: ((e: MouseEvent) => any) | undefined;
30
44
  }>, {
31
45
  tooltipRef: Readonly<import('vue').ShallowRef<any, any>>;
46
+ cancel: (e: MouseEvent) => void;
47
+ confirm: (e: MouseEvent) => void;
32
48
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
33
49
  cancel: (e: MouseEvent) => any;
50
+ "update:visible": (value: boolean) => any;
34
51
  confirm: (e: MouseEvent) => any;
35
52
  }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
36
53
  $slots: {
37
- header?: (props: {}) => any;
54
+ header?: (props: {
55
+ icon: string | import('vue').Component | undefined;
56
+ title: string;
57
+ }) => any;
38
58
  } & {
39
59
  icon?: (props: {
40
60
  icon: string | import('vue').Component | undefined;
@@ -66,7 +86,10 @@ export declare const RePopconfirm: {
66
86
  cancelText: string;
67
87
  }) => any;
68
88
  } & {
69
- extra?: (props: {}) => any;
89
+ extra?: (props: {
90
+ cancel: (e: MouseEvent) => void;
91
+ confirm: (e: MouseEvent) => void;
92
+ }) => any;
70
93
  } & {
71
94
  confirm?: (props: {
72
95
  confirm: (e: MouseEvent) => void;
@@ -1,5 +1,13 @@
1
1
  import { PopconfirmProps } from './types';
2
- declare var __VLS_15: {}, __VLS_17: {
2
+ type __VLS_Props = PopconfirmProps;
3
+ type __VLS_ModelProps = {
4
+ 'visible'?: boolean;
5
+ };
6
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
7
+ declare var __VLS_15: {
8
+ icon: string | import('vue').Component | undefined;
9
+ title: string;
10
+ }, __VLS_17: {
3
11
  icon: string | import('vue').Component | undefined;
4
12
  }, __VLS_24: {
5
13
  title: string;
@@ -19,7 +27,10 @@ declare var __VLS_15: {}, __VLS_17: {
19
27
  cancelSize: "" | "small" | "mini" | "large";
20
28
  cancelType: "" | "primary" | "success" | "warning" | "danger" | "info";
21
29
  cancelText: string;
22
- }, __VLS_40: {}, __VLS_42: {
30
+ }, __VLS_40: {
31
+ cancel: (e: MouseEvent) => void;
32
+ confirm: (e: MouseEvent) => void;
33
+ }, __VLS_42: {
23
34
  confirm: (e: MouseEvent) => void;
24
35
  confirmSize: "" | "small" | "mini" | "large";
25
36
  confirmType: "" | "primary" | "success" | "warning" | "danger" | "info";
@@ -42,13 +53,17 @@ type __VLS_Slots = {} & {
42
53
  } & {
43
54
  confirm?: (props: typeof __VLS_42) => any;
44
55
  };
45
- declare const __VLS_base: import('vue').DefineComponent<PopconfirmProps, {
56
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {
46
57
  tooltipRef: Readonly<import('vue').ShallowRef<any, any>>;
58
+ cancel: (e: MouseEvent) => void;
59
+ confirm: (e: MouseEvent) => void;
47
60
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
48
61
  cancel: (e: MouseEvent) => any;
62
+ "update:visible": (value: boolean) => any;
49
63
  confirm: (e: MouseEvent) => any;
50
- }, string, import('vue').PublicProps, Readonly<PopconfirmProps> & Readonly<{
64
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
51
65
  onCancel?: ((e: MouseEvent) => any) | undefined;
66
+ "onUpdate:visible"?: ((value: boolean) => any) | undefined;
52
67
  onConfirm?: ((e: MouseEvent) => any) | undefined;
53
68
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
54
69
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -2,12 +2,12 @@ import { getIcon as e } from "../../../svg-icons/dist/es/index.mjs";
2
2
  import { useNamespace as t } from "../../../composables/use-namespace/index.mjs";
3
3
  import "../../../composables/index.mjs";
4
4
  import { filterNodeTypes as n } from "../../tooltip/src/constants.mjs";
5
- import { Fragment as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, h as f, normalizeClass as p, openBlock as m, renderSlot as h, resolveComponent as g, resolveDynamicComponent as _, toDisplayString as v, unref as y, useSlots as b, useTemplateRef as x, withCtx as S } from "vue";
5
+ import { Fragment as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, h as f, mergeModels as p, normalizeClass as m, openBlock as h, renderSlot as g, resolveComponent as _, resolveDynamicComponent as v, toDisplayString as y, unref as b, useModel as x, useSlots as S, useTemplateRef as C, withCtx as w } from "vue";
6
6
  //#region packages/components/popconfirm/src/popconfirm.vue?vue&type=script&setup=true&lang.ts
7
- var C = ["innerHTML"], w = /*@__PURE__*/ d({
7
+ var T = ["innerHTML"], E = d({
8
8
  name: "RePopconfirm",
9
9
  __name: "popconfirm",
10
- props: {
10
+ props: p({
11
11
  icon: { default: "help" },
12
12
  showIcon: {
13
13
  type: Boolean,
@@ -20,10 +20,7 @@ var C = ["innerHTML"], w = /*@__PURE__*/ d({
20
20
  confirmText: { default: "Yes" },
21
21
  confirmType: { default: "primary" },
22
22
  confirmSize: { default: "mini" },
23
- visible: {
24
- type: Boolean,
25
- default: () => void 0
26
- },
23
+ visible: { type: Boolean },
27
24
  content: { default: "" },
28
25
  isHtml: {
29
26
  type: Boolean,
@@ -111,36 +108,47 @@ var C = ["innerHTML"], w = /*@__PURE__*/ d({
111
108
  default: () => void 0
112
109
  },
113
110
  virtualRef: { default: () => void 0 }
114
- },
115
- emits: ["confirm", "cancel"],
116
- setup(d, { expose: w, emit: T }) {
117
- let { n: E, ns: D } = t("popconfirm"), O = T, k = i(() => [E(), d.floatingClass]), A = b(), j = i(() => {
111
+ }, {
112
+ visible: {
113
+ type: Boolean,
114
+ default: void 0
115
+ },
116
+ visibleModifiers: {}
117
+ }),
118
+ emits: p(["confirm", "cancel"], ["update:visible"]),
119
+ setup(d, { expose: p, emit: E }) {
120
+ let { n: D, ns: O } = t("popconfirm"), k = x(d, "visible"), A = E, j = i(() => [D(), d.floatingClass]), M = S(), N = i(() => {
118
121
  var e, t;
119
- let r = A == null || (e = A.default) == null || (e = e.call(A)) == null ? void 0 : e.filter((e) => e && !n.includes(e.type.toString()))[0];
122
+ let r = M == null || (e = M.default) == null || (e = e.call(M)) == null ? void 0 : e.filter((e) => e && !n.includes(e.type.toString()))[0];
120
123
  return (r == null || (t = r.type) == null ? void 0 : t.toString()) === "Symbol(v-txt)" ? f("span", {}, r) : r;
121
- }), M = i(() => e(d.icon)), N = x("tooltipRef"), P = (e) => {
124
+ }), P = i(() => e(d.icon)), F = C("tooltipRef"), I = (e) => {
122
125
  var t;
123
- O("cancel", e), (t = N.value) == null || t.delayHide();
124
- }, F = (e) => {
126
+ A("cancel", e), (t = F.value) == null || t.delayHide();
127
+ }, L = (e) => {
125
128
  var t;
126
- O("confirm", e), (t = N.value) == null || t.delayHide();
129
+ A("confirm", e), (t = F.value) == null || t.delayHide();
127
130
  };
128
- return w({ tooltipRef: N }), (e, t) => {
129
- let n = g("re-button"), i = g("re-tooltip");
130
- return m(), a(i, {
131
+ return p({
132
+ tooltipRef: F,
133
+ cancel: I,
134
+ confirm: L
135
+ }), (e, t) => {
136
+ let n = _("re-button"), i = _("re-tooltip");
137
+ return h(), a(i, {
131
138
  ref_key: "tooltipRef",
132
- ref: N,
139
+ ref: F,
140
+ visible: k.value,
141
+ "onUpdate:visible": t[0] || (t[0] = (e) => k.value = e),
133
142
  width: d.width,
134
143
  height: d.height,
135
144
  "max-width": d.maxWidth,
136
145
  "max-height": d.maxHeight,
137
- "floating-class": k.value,
146
+ "floating-class": j.value,
138
147
  "floating-style": d.floatingStyle,
139
148
  disabled: d.disabled,
140
149
  theme: d.theme,
141
150
  placement: d.placement,
142
151
  trigger: d.trigger,
143
- visible: d.visible,
144
152
  "reverse-theme": d.reverseTheme,
145
153
  "show-delay": d.showDelay,
146
154
  "hide-delay": d.hideDelay,
@@ -167,68 +175,74 @@ var C = ["innerHTML"], w = /*@__PURE__*/ d({
167
175
  "is-virtual": d.isVirtual,
168
176
  "virtual-ref": d.virtualRef
169
177
  }, {
170
- content: S(() => [
171
- h(e.$slots, "header", {}, () => [c("div", { class: p([y(D)("header")]) }, [h(e.$slots, "icon", { icon: M.value }, () => [d.showIcon ? (m(), s(r, { key: 0 }, [typeof M.value == "string" ? (m(), s("i", {
178
+ content: w(() => [
179
+ g(e.$slots, "header", {
180
+ icon: P.value,
181
+ title: d.title
182
+ }, () => [c("div", { class: m([b(O)("header")]) }, [g(e.$slots, "icon", { icon: P.value }, () => [d.showIcon ? (h(), s(r, { key: 0 }, [typeof P.value == "string" ? (h(), s("i", {
172
183
  key: 0,
173
- class: p([y(D)("icon"), M.value]),
184
+ class: m([b(O)("icon"), P.value]),
174
185
  "aria-hidden": "true"
175
- }, null, 2)) : (m(), a(_(M.value), {
186
+ }, null, 2)) : (h(), a(v(P.value), {
176
187
  key: 1,
177
- class: p([y(D)("icon")]),
188
+ class: m([b(O)("icon")]),
178
189
  "aria-hidden": "true"
179
- }, null, 8, ["class"]))], 64)) : o("", !0)]), h(e.$slots, "title", { title: d.title }, () => [c("div", { class: p([y(D)("title")]) }, v(d.title), 3)])], 2)]),
180
- h(e.$slots, "content", { content: d.content }, () => [d.isHtml ? (m(), s("div", {
190
+ }, null, 8, ["class"]))], 64)) : o("", !0)]), g(e.$slots, "title", { title: d.title }, () => [c("div", { class: m([b(O)("title")]) }, y(d.title), 3)])], 2)]),
191
+ g(e.$slots, "content", { content: d.content }, () => [d.isHtml ? (h(), s("div", {
181
192
  key: 0,
182
- class: p([y(D)("content")]),
193
+ class: m([b(O)("content")]),
183
194
  innerHTML: d.content
184
- }, null, 10, C)) : (m(), s("div", {
195
+ }, null, 10, T)) : (h(), s("div", {
185
196
  key: 1,
186
- class: p([y(D)("content")])
187
- }, v(d.content), 3))]),
188
- h(e.$slots, "footer", {
189
- cancel: P,
197
+ class: m([b(O)("content")])
198
+ }, y(d.content), 3))]),
199
+ g(e.$slots, "footer", {
200
+ cancel: I,
190
201
  cancelSize: d.cancelSize,
191
202
  cancelType: d.cancelType,
192
203
  cancelText: d.cancelText,
193
- confirm: F,
204
+ confirm: L,
194
205
  confirmSize: d.confirmSize,
195
206
  confirmType: d.confirmType,
196
207
  confirmText: d.confirmText
197
- }, () => [c("div", { class: p([y(D)("footer")]) }, [
198
- h(e.$slots, "cancel", {
199
- cancel: P,
208
+ }, () => [c("div", { class: m([b(O)("footer")]) }, [
209
+ g(e.$slots, "cancel", {
210
+ cancel: I,
200
211
  cancelSize: d.cancelSize,
201
212
  cancelType: d.cancelType,
202
213
  cancelText: d.cancelText
203
214
  }, () => [u(n, {
204
215
  size: d.cancelSize,
205
216
  type: d.cancelType,
206
- onClick: P
217
+ onClick: I
207
218
  }, {
208
- default: S(() => [l(v(d.cancelText), 1)]),
219
+ default: w(() => [l(y(d.cancelText), 1)]),
209
220
  _: 1
210
221
  }, 8, ["size", "type"])]),
211
- h(e.$slots, "extra"),
212
- h(e.$slots, "confirm", {
213
- confirm: F,
222
+ g(e.$slots, "extra", {
223
+ cancel: I,
224
+ confirm: L
225
+ }),
226
+ g(e.$slots, "confirm", {
227
+ confirm: L,
214
228
  confirmSize: d.confirmSize,
215
229
  confirmType: d.confirmType,
216
230
  confirmText: d.confirmText
217
231
  }, () => [u(n, {
218
232
  size: d.confirmSize,
219
233
  type: d.confirmType,
220
- onClick: F
234
+ onClick: L
221
235
  }, {
222
- default: S(() => [l(v(d.confirmText), 1)]),
236
+ default: w(() => [l(y(d.confirmText), 1)]),
223
237
  _: 1
224
238
  }, 8, ["size", "type"])])
225
239
  ], 2)])
226
240
  ]),
227
- default: S(() => [(m(), a(_(j.value)))]),
241
+ default: w(() => [(h(), a(v(N.value)))]),
228
242
  _: 3
229
- }, 8, /* @__PURE__ */ "width.height.max-width.max-height.floating-class.floating-style.disabled.theme.placement.trigger.visible.reverse-theme.show-delay.hide-delay.transition.css-duration.css-transition.show-arrow.offset.teleported.append-to.persistent.boundary.element-context.alt-boundary.root-boundary.arrow-size.arrow-offset.flip-offset.arrow-options.flip-options.inline-options.is-external.external-ref.is-virtual.virtual-ref".split("."));
243
+ }, 8, "visible.width.height.max-width.max-height.floating-class.floating-style.disabled.theme.placement.trigger.reverse-theme.show-delay.hide-delay.transition.css-duration.css-transition.show-arrow.offset.teleported.append-to.persistent.boundary.element-context.alt-boundary.root-boundary.arrow-size.arrow-offset.flip-offset.arrow-options.flip-options.inline-options.is-external.external-ref.is-virtual.virtual-ref".split("."));
230
244
  };
231
245
  }
232
246
  });
233
247
  //#endregion
234
- export { w as default };
248
+ export { E as default };
@@ -1,17 +1,33 @@
1
1
  export * from './src/types';
2
2
  export declare const RePopover: {
3
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('.').PopoverProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
3
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('.').PopoverProps & {
4
+ visible?: boolean;
5
+ }> & Readonly<{
6
+ "onUpdate:visible"?: ((value: boolean) => any) | undefined;
7
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
8
+ "update:visible": (value: boolean) => any;
9
+ }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
4
10
  P: {};
5
11
  B: {};
6
12
  D: {};
7
13
  C: {};
8
14
  M: {};
9
15
  Defaults: {};
10
- }, Readonly<import('.').PopoverProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
16
+ }, Readonly<import('.').PopoverProps & {
17
+ visible?: boolean;
18
+ }> & Readonly<{
19
+ "onUpdate:visible"?: ((value: boolean) => any) | undefined;
20
+ }>, {}, {}, {}, {}, {}>;
11
21
  __isFragment?: never;
12
22
  __isTeleport?: never;
13
23
  __isSuspense?: never;
14
- } & import('vue').ComponentOptionsBase<Readonly<import('.').PopoverProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
24
+ } & import('vue').ComponentOptionsBase<Readonly<import('.').PopoverProps & {
25
+ visible?: boolean;
26
+ }> & Readonly<{
27
+ "onUpdate:visible"?: ((value: boolean) => any) | undefined;
28
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
29
+ "update:visible": (value: boolean) => any;
30
+ }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
15
31
  $slots: {
16
32
  title?: (props: {}) => any;
17
33
  } & {
@@ -1,11 +1,20 @@
1
1
  import { PopoverProps } from './types';
2
+ type __VLS_Props = PopoverProps;
3
+ type __VLS_ModelProps = {
4
+ 'visible'?: boolean;
5
+ };
6
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
2
7
  declare var __VLS_14: {}, __VLS_16: {};
3
8
  type __VLS_Slots = {} & {
4
9
  title?: (props: typeof __VLS_14) => any;
5
10
  } & {
6
11
  content?: (props: typeof __VLS_16) => any;
7
12
  };
8
- declare const __VLS_base: import('vue').DefineComponent<PopoverProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<PopoverProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
+ "update:visible": (value: boolean) => any;
15
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
16
+ "onUpdate:visible"?: ((value: boolean) => any) | undefined;
17
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
18
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
10
19
  declare const _default: typeof __VLS_export;
11
20
  export default _default;