@dt-frames/ui 2.0.2 → 2.0.4

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 (69) hide show
  1. package/es/assets/locales/en.ts +1 -1
  2. package/es/components/container/index.d.ts +4 -3
  3. package/es/components/container/index.js +24 -22
  4. package/es/components/container/src/slot-container.d.ts +5 -3
  5. package/es/components/curd/index.js +261 -229
  6. package/es/components/curd/src/components/Curd.d.ts +126 -331
  7. package/es/components/curd/src/props.d.ts +14 -15
  8. package/es/components/drawer/index.d.ts +3 -5
  9. package/es/components/drawer/index.js +55 -54
  10. package/es/components/drawer/src/components/DrawerHeader.d.ts +1 -3
  11. package/es/components/drawer/src/index.d.ts +4 -7
  12. package/es/components/form/index.d.ts +213 -361
  13. package/es/components/form/index.js +210 -163
  14. package/es/components/form/index.less +206 -8
  15. package/es/components/form/src/components/FormButtons.d.ts +3 -3
  16. package/es/components/form/src/components/FormItem.d.ts +152 -304
  17. package/es/components/form/src/components/formIcon.d.ts +4 -4
  18. package/es/components/form/src/components/formInputUseDialog.d.ts +3 -3
  19. package/es/components/form/src/enums/index.d.ts +1 -1
  20. package/es/components/form/src/index.d.ts +199 -347
  21. package/es/components/form/src/props.d.ts +8 -12
  22. package/es/components/form/src/types/form.type.d.ts +2 -2
  23. package/es/components/icons/index.d.ts +496 -2
  24. package/es/components/icons/index.less +5 -0
  25. package/es/components/icons/src/pick-icon.d.ts +5 -5
  26. package/es/components/modal/index.js +76 -74
  27. package/es/components/modal/index.less +10 -0
  28. package/es/components/modal/src/components/Modal.d.ts +108 -215
  29. package/es/components/modal/src/components/ModalFooter.d.ts +3 -3
  30. package/es/components/modal/src/index.d.ts +116 -223
  31. package/es/components/source/hooks/useSource.d.ts +14 -0
  32. package/es/components/source/index.js +66 -27
  33. package/es/components/source/types/source.type.d.ts +4 -8
  34. package/es/components/table/index.js +452 -820
  35. package/es/components/table/index.less +50 -14
  36. package/es/components/table/src/components/TableAction.d.ts +1 -1
  37. package/es/components/table/src/components/TableHeader.d.ts +109 -216
  38. package/es/components/table/src/components/TableRender.d.ts +13 -9
  39. package/es/components/table/src/components/tableSetting/Download.d.ts +107 -214
  40. package/es/components/table/src/components/tableSetting/DownloadCtrl.d.ts +107 -214
  41. package/es/components/table/src/components/tableSetting/index.d.ts +107 -214
  42. package/es/components/table/src/hooks/useDataSource.d.ts +1 -2
  43. package/es/components/table/src/hooks/usePagination.d.ts +3 -118
  44. package/es/components/table/src/index.d.ts +99 -435
  45. package/es/components/table/src/props.d.ts +19 -74
  46. package/es/components/table/src/types/actions.type.d.ts +1 -2
  47. package/es/components/table/src/types/table.type.d.ts +13 -8
  48. package/es/index.d.ts +1 -1
  49. package/es/index.js +2 -3240
  50. package/es/theme/index.js +688 -453
  51. package/es/theme/index.less +150 -0
  52. package/es/theme/src/components/header/components/logo.d.ts +0 -1
  53. package/es/theme/src/components/header/components/notify.d.ts +4 -3
  54. package/es/theme/src/components/header/components/setting-theme.d.ts +2 -1
  55. package/es/theme/src/components/header/components/user-info.d.ts +4 -3
  56. package/es/theme/src/components/header/helper/menu-tree.d.ts +1 -0
  57. package/es/theme/src/components/header/index.d.ts +8 -7
  58. package/es/theme/src/components/header/multiple-header.d.ts +22 -25
  59. package/es/theme/src/components/sider/components/drag-bar.d.ts +1 -1
  60. package/es/theme/src/components/sider/components/sider-trigger.d.ts +0 -1
  61. package/es/theme/src/components/sider/index.d.ts +147 -3
  62. package/es/theme/src/components/sider/mix-sider.d.ts +146 -0
  63. package/es/theme/src/enums/theme.enum.d.ts +2 -1
  64. package/es/theme/src/hooks/useMenu.d.ts +4 -2
  65. package/es/theme/src/index.d.ts +166 -23
  66. package/es/theme/src/stores/theme.store.d.ts +3 -0
  67. package/es/theme/src/types/theme.type.d.ts +2 -1
  68. package/package.json +3 -4
  69. package/vite.config.ts +0 -27
@@ -81,7 +81,7 @@ export const EN = {
81
81
  "NAV_MODE": "Navigation bar mode",
82
82
  "PAGE_SHOW": "Interface Display",
83
83
  "COPY": "Copy",
84
- "DRAWER_TIPS": "The function mainly real-time preview layout effect, more complete configuration in the SRC/core/Settings/theme.ts. The layout preview function will be turned off in production.",
84
+ "DRAWER_TIPS": "The function mainly real-time preview layout effect, more complete configuration in the src/core/Settings/theme.ts. The layout preview function will be turned off in production.",
85
85
  "FULL": "Flow-based",
86
86
  "FIXED": "Fixed width",
87
87
  "BREAD_CURB": "Bread crumbs",
@@ -80,9 +80,10 @@ declare const DtSlotContainer: import('../../utils/withInstall').SFCWithInstall<
80
80
  data: {
81
81
  type: ObjectConstructor;
82
82
  };
83
- }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
84
- [key: string]: any;
85
- }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
83
+ }, {
84
+ props: any;
85
+ Container: import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
86
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
86
87
  template: {
87
88
  type: FunctionConstructor;
88
89
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as defineComponent$1, getCurrentInstance, ref as ref$1, inject, computed as computed$1, onUnmounted, h as h$1, openBlock, createElementBlock, createElementVNode, normalizeClass, normalizeStyle, unref as unref$1, createBlock, resolveDynamicComponent, withCtx, renderSlot, createVNode, mergeProps } from "vue";
1
+ import { defineComponent, getCurrentInstance, ref, inject, computed, onUnmounted, h, provide, onMounted, nextTick, unref, onBeforeUnmount, openBlock, createElementBlock, createElementVNode, normalizeClass, normalizeStyle, createBlock, resolveDynamicComponent, withCtx, renderSlot, createVNode, mergeProps } from "vue";
2
2
  import { off, on } from "@dt-frames/core";
3
3
  const isServer = typeof window === "undefined";
4
4
  const BAR_MAP = {
@@ -60,7 +60,7 @@ function removeResizeListener(element, fn) {
60
60
  element.__ro__.disconnect();
61
61
  }
62
62
  }
63
- const Bar = defineComponent$1({
63
+ const Bar = defineComponent({
64
64
  name: "Bar",
65
65
  props: {
66
66
  vertical: Boolean,
@@ -69,13 +69,13 @@ const Bar = defineComponent$1({
69
69
  },
70
70
  setup(props) {
71
71
  const instance = getCurrentInstance();
72
- const thumb = ref$1();
72
+ const thumb = ref();
73
73
  const wrap = inject("scroll-bar-wrap", {});
74
- const bar = computed$1(() => {
74
+ const bar = computed(() => {
75
75
  return BAR_MAP[props.vertical ? "vertical" : "horizontal"];
76
76
  });
77
- const barStore = ref$1({});
78
- const cursorDown = ref$1();
77
+ const barStore = ref({});
78
+ const cursorDown = ref();
79
79
  const clickThumbHandler = (e) => {
80
80
  if (e.ctrlKey || e.button === 2) {
81
81
  return;
@@ -119,13 +119,13 @@ const Bar = defineComponent$1({
119
119
  onUnmounted(() => {
120
120
  off(document, "mouseup", mouseUpDocumentHandler);
121
121
  });
122
- return () => h$1(
122
+ return () => h(
123
123
  "div",
124
124
  {
125
125
  class: ["scrollbar__bar", "is-" + bar.value.key],
126
126
  onMousedown: clickTrackHandler
127
127
  },
128
- h$1("div", {
128
+ h("div", {
129
129
  ref: thumb,
130
130
  class: "scrollbar__thumb",
131
131
  onMousedown: clickThumbHandler,
@@ -139,7 +139,7 @@ const Bar = defineComponent$1({
139
139
  }
140
140
  });
141
141
  const _hoisted_1 = { class: "scrollbar relative h-full overflow-hidden" };
142
- const _sfc_main$2 = /* @__PURE__ */ defineComponent$1({
142
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
143
143
  __name: "scroll-bar",
144
144
  props: {
145
145
  wrapClass: {
@@ -213,7 +213,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent$1({
213
213
  ref_key: "wrap",
214
214
  ref: wrap,
215
215
  class: normalizeClass([[__props.wrapClass, "scrollbar__wrap--hidden-default"], "h-full overflow-auto"]),
216
- style: normalizeStyle(unref$1(style)),
216
+ style: normalizeStyle(unref(style)),
217
217
  onScroll: handleScroll
218
218
  }, [
219
219
  (openBlock(), createBlock(resolveDynamicComponent(__props.tag), {
@@ -228,20 +228,20 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent$1({
228
228
  _: 3
229
229
  }, 8, ["class", "style"]))
230
230
  ], 38),
231
- createVNode(unref$1(Bar), {
232
- move: unref$1(moveX),
233
- size: unref$1(sizeWidth)
231
+ createVNode(unref(Bar), {
232
+ move: moveX.value,
233
+ size: sizeWidth.value
234
234
  }, null, 8, ["move", "size"]),
235
- createVNode(unref$1(Bar), {
235
+ createVNode(unref(Bar), {
236
236
  vertical: "",
237
- move: unref$1(moveY),
238
- size: unref$1(sizeHeight)
237
+ move: moveY.value,
238
+ size: sizeHeight.value
239
239
  }, null, 8, ["move", "size"])
240
240
  ]);
241
241
  };
242
242
  }
243
243
  });
244
- const _sfc_main$1 = /* @__PURE__ */ defineComponent$1({
244
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
245
245
  __name: "scroll-container",
246
246
  setup(__props) {
247
247
  const scrollbarRef = ref(null);
@@ -258,8 +258,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent$1({
258
258
  };
259
259
  }
260
260
  });
261
- const _sfc_main = defineComponent({
262
- name: "slot-container",
261
+ const _sfc_main = /* @__PURE__ */ defineComponent({
262
+ __name: "slot-container",
263
263
  props: {
264
264
  template: {
265
265
  type: Function
@@ -268,9 +268,11 @@ const _sfc_main = defineComponent({
268
268
  type: Object
269
269
  }
270
270
  },
271
- setup(props) {
272
- return () => {
273
- return h("div", [props.template(props.data)]);
271
+ setup(__props) {
272
+ const props = __props;
273
+ const Container = h("div", [props.template(props.data)]);
274
+ return (_ctx, _cache) => {
275
+ return openBlock(), createBlock(unref(Container));
274
276
  };
275
277
  }
276
278
  });
@@ -1,3 +1,4 @@
1
+ import { Component } from 'vue';
1
2
  declare const _sfc_main: import("vue").DefineComponent<{
2
3
  template: {
3
4
  type: FunctionConstructor;
@@ -5,9 +6,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
5
6
  data: {
6
7
  type: ObjectConstructor;
7
8
  };
8
- }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
9
- [key: string]: any;
10
- }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
9
+ }, {
10
+ props: any;
11
+ Container: Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
12
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
11
13
  template: {
12
14
  type: FunctionConstructor;
13
15
  };