@dt-frames/ui 2.0.10 → 2.0.11

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 (48) hide show
  1. package/es/components/curd/index.js +7 -2966
  2. package/es/components/curd/src/components/Curd.d.ts +13 -889
  3. package/es/components/curd/src/hooks/useCurd.d.ts +2 -2
  4. package/es/components/curd/src/props.d.ts +3 -3
  5. package/es/components/curd/src/types/curd.type.d.ts +2 -2
  6. package/es/components/drawer/index.d.ts +9 -166
  7. package/es/components/drawer/index.js +20 -458
  8. package/es/components/drawer/src/components/DrawerFooter.d.ts +1 -84
  9. package/es/components/drawer/src/index.d.ts +9 -166
  10. package/es/components/drawer/src/types/index.type.d.ts +1 -1
  11. package/es/components/form/index.d.ts +5 -1
  12. package/es/components/form/index.js +50 -473
  13. package/es/components/form/src/components/formIcon.d.ts +3 -3
  14. package/es/components/form/src/components/formInputUseDialog.d.ts +2 -2
  15. package/es/components/form/src/props.d.ts +4 -4
  16. package/es/components/form/src/types/form.type.d.ts +2 -0
  17. package/es/components/modal/index.d.ts +2 -1
  18. package/es/components/modal/index.js +13 -470
  19. package/es/components/modal/src/components/Modal.d.ts +1 -1
  20. package/es/components/modal/src/components/ModalFooter.d.ts +2 -95
  21. package/es/components/modal/src/components/ModalWrap.d.ts +1 -75
  22. package/es/components/modal/src/index.d.ts +10 -177
  23. package/es/components/table/index.js +46 -1827
  24. package/es/components/table/src/components/TableAction.d.ts +1 -1
  25. package/es/components/table/src/components/editTable/EditTableCell.d.ts +1 -1
  26. package/es/components/table/src/components/tableSetting/DownloadCtrl.d.ts +1 -877
  27. package/es/components/table/src/index.d.ts +10 -10
  28. package/es/components/tree/index.js +29 -39
  29. package/es/components/tree/src/components/TreeHeader.d.ts +1 -1
  30. package/es/components/tree/src/index.d.ts +2 -2
  31. package/es/components/upload/index.d.ts +2 -0
  32. package/es/components/upload/index.js +16 -0
  33. package/es/components/upload/index.less +0 -0
  34. package/es/components/upload/src/index.d.ts +2 -0
  35. package/es/theme/index.d.ts +2 -1
  36. package/es/theme/index.js +95 -144
  37. package/es/theme/src/hooks/useMenu.d.ts +1 -1
  38. package/index.js +21 -1
  39. package/manualContentPath.js +110 -0
  40. package/package.json +5 -2
  41. package/vite.config.ts +16 -4
  42. package/vite.config.ts.timestamp-1678694558071.mjs +59 -0
  43. package/vite.config.ts.timestamp-1678700851971.mjs +61 -0
  44. package/es/components/curd/index.less +0 -2
  45. package/es/components/form/src/index.d.ts +0 -2922
  46. package/es/components/table/src/components/TableHeader.d.ts +0 -1136
  47. package/es/components/table/src/components/tableSetting/Download.d.ts +0 -922
  48. package/es/components/table/src/components/tableSetting/index.d.ts +0 -1030
@@ -187,8 +187,14 @@ declare const _sfc_main: import("vue").DefineComponent<{
187
187
  innerPropsRef: import("vue").Ref<BasicTableProps>;
188
188
  getProps: import("vue").ComputedRef<{
189
189
  components?: import("ant-design-vue/es/vc-table/interface").TableComponents<any>;
190
+ id?: string;
190
191
  size?: import("ant-design-vue/es/button").ButtonSize;
191
- title?: import("ant-design-vue/es/vc-table/interface").PanelRender<any>;
192
+ locale?: import("ant-design-vue/es/table/interface").TableLocale;
193
+ prefixCls?: string;
194
+ onChange?: (pagination: import("ant-design-vue/es/table").TablePaginationConfig, filters: Record<string, import("ant-design-vue/es/table/interface").FilterValue>, sorter: import("ant-design-vue/es/table/interface").SorterResult<any> | import("ant-design-vue/es/table/interface").SorterResult<any>[], extra: import("ant-design-vue/es/table/interface").TableCurrentDataSource<any>) => void;
195
+ rowKey: string | (import("ant-design-vue/es/vc-table/interface").GetRowKey<any> & string);
196
+ dataSource: import("@dt-frames/core").Recordable<any>[];
197
+ bordered: boolean;
192
198
  loading: (boolean | Partial<import("vue").ExtractPropTypes<{
193
199
  prefixCls: StringConstructor;
194
200
  spinning: {
@@ -201,14 +207,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
201
207
  delay: NumberConstructor;
202
208
  indicator: import("vue-types").VueTypeValidableDef<any>;
203
209
  }>>) & boolean;
204
- footer?: import("ant-design-vue/es/vc-table/interface").PanelRender<any>;
205
- id?: string;
206
- locale?: import("ant-design-vue/es/table/interface").TableLocale;
207
- prefixCls?: string;
208
- onChange?: (pagination: import("ant-design-vue/es/table").TablePaginationConfig, filters: Record<string, import("ant-design-vue/es/table/interface").FilterValue>, sorter: import("ant-design-vue/es/table/interface").SorterResult<any> | import("ant-design-vue/es/table/interface").SorterResult<any>[], extra: import("ant-design-vue/es/table/interface").TableCurrentDataSource<any>) => void;
209
- rowKey: string | (import("ant-design-vue/es/vc-table/interface").GetRowKey<any> & string);
210
- dataSource: import("@dt-frames/core").Recordable<any>[];
211
- bordered: boolean;
212
210
  rowClassName: (record: any, index: number) => string;
213
211
  scroll: {
214
212
  x?: string | number | true;
@@ -223,6 +221,8 @@ declare const _sfc_main: import("vue").DefineComponent<{
223
221
  customRow: import("ant-design-vue/es/vc-table/interface").GetComponentProps<any> & ((record: any, index: any) => void);
224
222
  childrenColumnName: string;
225
223
  tableLayout?: import("ant-design-vue/es/vc-table/interface").TableLayout;
224
+ title?: import("ant-design-vue/es/vc-table/interface").PanelRender<any>;
225
+ footer?: import("ant-design-vue/es/vc-table/interface").PanelRender<any>;
226
226
  showHeader?: boolean;
227
227
  customHeaderRow?: import("ant-design-vue/es/vc-table/interface").GetComponentProps<import("ant-design-vue/es/vc-table/interface").ColumnType<any>[]>;
228
228
  direction?: "ltr" | "rtl";
@@ -584,7 +584,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
584
584
  "onRow-mouseleave"?: (...args: any[]) => any;
585
585
  "onEdit-change"?: (...args: any[]) => any;
586
586
  }, {
587
- loading: boolean;
588
587
  autoFetch: boolean;
589
588
  clickToSelectRow: boolean;
590
589
  tableSetting: {};
@@ -607,6 +606,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
607
606
  bordered: boolean;
608
607
  canResize: boolean;
609
608
  pagination: any;
609
+ loading: boolean;
610
610
  scroll: {};
611
611
  onTableChange: Function;
612
612
  onDownload: Function;
@@ -196,8 +196,8 @@ function useTree(treeDataRef, getFieldNames) {
196
196
  const { key: keyField, children: childrenField } = unref(getFieldNames);
197
197
  if (!childrenField || !keyField)
198
198
  return keys;
199
- for (let index2 = 0; index2 < treeData.length; index2++) {
200
- const node = treeData[index2];
199
+ for (let index = 0; index < treeData.length; index++) {
200
+ const node = treeData[index];
201
201
  keys.push(node[keyField]);
202
202
  const children = node[childrenField];
203
203
  if (children && children.length) {
@@ -212,8 +212,8 @@ function useTree(treeDataRef, getFieldNames) {
212
212
  const { key: keyField, children: childrenField } = unref(getFieldNames);
213
213
  if (!childrenField || !keyField)
214
214
  return keys;
215
- for (let index2 = 0; index2 < treeData.length; index2++) {
216
- const node = treeData[index2];
215
+ for (let index = 0; index < treeData.length; index++) {
216
+ const node = treeData[index];
217
217
  node.disabled !== true && node.selectable !== false && keys.push(node[keyField]);
218
218
  const children = node[childrenField];
219
219
  if (children && children.length) {
@@ -228,8 +228,8 @@ function useTree(treeDataRef, getFieldNames) {
228
228
  const { key: keyField, children: childrenField } = unref(getFieldNames);
229
229
  if (!childrenField || !keyField)
230
230
  return keys;
231
- for (let index2 = 0; index2 < treeData.length; index2++) {
232
- const node = treeData[index2];
231
+ for (let index = 0; index < treeData.length; index++) {
232
+ const node = treeData[index];
233
233
  const children = node[childrenField];
234
234
  if (nodeKey === node[keyField]) {
235
235
  keys.push(node[keyField]);
@@ -251,11 +251,11 @@ function useTree(treeDataRef, getFieldNames) {
251
251
  const { key: keyField, children: childrenField } = unref(getFieldNames);
252
252
  if (!childrenField || !keyField)
253
253
  return;
254
- for (let index2 = 0; index2 < treeData.length; index2++) {
255
- const element = treeData[index2];
254
+ for (let index = 0; index < treeData.length; index++) {
255
+ const element = treeData[index];
256
256
  const children = element[childrenField];
257
257
  if (element[keyField] === key) {
258
- treeData[index2] = { ...treeData[index2], ...node };
258
+ treeData[index] = { ...treeData[index], ...node };
259
259
  break;
260
260
  } else if (children && children.length) {
261
261
  updateNodeByKey(key, node, element[childrenField]);
@@ -267,8 +267,8 @@ function useTree(treeDataRef, getFieldNames) {
267
267
  return [];
268
268
  const res = [];
269
269
  const data = list || unref(treeDataRef) || [];
270
- for (let index2 = 0; index2 < data.length; index2++) {
271
- const item = data[index2];
270
+ for (let index = 0; index < data.length; index++) {
271
+ const item = data[index];
272
272
  const { key: keyField, children: childrenField } = unref(getFieldNames);
273
273
  const key = keyField ? item[keyField] : "";
274
274
  const children = childrenField ? item[childrenField] : [];
@@ -330,11 +330,11 @@ function useTree(treeDataRef, getFieldNames) {
330
330
  const { key: keyField, children: childrenField } = unref(getFieldNames);
331
331
  if (!childrenField || !keyField)
332
332
  return;
333
- for (let index2 = 0; index2 < treeData.length; index2++) {
334
- const element = treeData[index2];
333
+ for (let index = 0; index < treeData.length; index++) {
334
+ const element = treeData[index];
335
335
  const children = element[childrenField];
336
336
  if (element[keyField] === key) {
337
- treeData.splice(index2, 1);
337
+ treeData.splice(index, 1);
338
338
  break;
339
339
  } else if (children && children.length) {
340
340
  deleteNodeByKey(key, element[childrenField]);
@@ -455,8 +455,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
455
455
  const _component_AMenu = Menu;
456
456
  const _component_ADropdown = Dropdown;
457
457
  return openBlock(), createElementBlock("div", _hoisted_1$1, [
458
- unref(slots).headerTitle ? renderSlot(_ctx.$slots, "headerTitle", { key: 0 }) : createCommentVNode("v-if", true),
459
- !unref(slots).headerTitle && _ctx.title ? (openBlock(), createElementBlock("h4", _hoisted_2, toDisplayString(_ctx.title), 1)) : createCommentVNode("v-if", true),
458
+ unref(slots).headerTitle ? renderSlot(_ctx.$slots, "headerTitle", { key: 0 }) : createCommentVNode("", true),
459
+ !unref(slots).headerTitle && _ctx.title ? (openBlock(), createElementBlock("h4", _hoisted_2, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
460
460
  _ctx.search || _ctx.toolbar ? (openBlock(), createElementBlock("div", _hoisted_3, [
461
461
  _ctx.search ? (openBlock(), createElementBlock("div", _hoisted_4, [
462
462
  createVNode(_component_AInputSearch, {
@@ -466,7 +466,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
466
466
  "onUpdate:value": _cache[0] || (_cache[0] = ($event) => searchValue.value = $event),
467
467
  placeholder: unref(t)("FILTER")
468
468
  }, null, 8, ["value", "placeholder"])
469
- ])) : createCommentVNode("v-if", true),
469
+ ])) : createCommentVNode("", true),
470
470
  _ctx.toolbar ? (openBlock(), createBlock(_component_ADropdown, {
471
471
  key: 1,
472
472
  onClick: _cache[1] || (_cache[1] = withModifiers(() => {
@@ -485,7 +485,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
485
485
  ]),
486
486
  _: 2
487
487
  }, 1040),
488
- item.divider ? (openBlock(), createBlock(_component_AMenuDivider, { key: 0 })) : createCommentVNode("v-if", true)
488
+ item.divider ? (openBlock(), createBlock(_component_AMenuDivider, { key: 0 })) : createCommentVNode("", true)
489
489
  ], 64);
490
490
  }), 128))
491
491
  ]),
@@ -496,20 +496,12 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
496
496
  _hoisted_5
497
497
  ]),
498
498
  _: 1
499
- })) : createCommentVNode("v-if", true)
500
- ])) : createCommentVNode("v-if", true)
499
+ })) : createCommentVNode("", true)
500
+ ])) : createCommentVNode("", true)
501
501
  ]);
502
502
  };
503
503
  }
504
504
  });
505
- const _export_sfc = (sfc, props) => {
506
- const target = sfc.__vccOpts || sfc;
507
- for (const [key, val] of props) {
508
- target[key] = val;
509
- }
510
- return target;
511
- };
512
- const TreeHeader = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__file", "D:/dt/dt-frame-front/dt-frames/frames/packages/ui/src/components/tree/src/components/TreeHeader.vue"]]);
513
505
  function _isSlot(s) {
514
506
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
515
507
  }
@@ -632,7 +624,6 @@ const _sfc_main$1 = defineComponent({
632
624
  };
633
625
  }
634
626
  });
635
- const contextMenuVue = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__file", "D:/dt/dt-frame-front/dt-frames/frames/packages/ui/src/components/tree/src/components/ContextMenu.vue"]]);
636
627
  function useContextMenu() {
637
628
  const menuManager = {
638
629
  domList: [],
@@ -656,7 +647,7 @@ function useContextMenu() {
656
647
  propsData.customEvent = event;
657
648
  propsData.axis = { x: event.clientX, y: event.clientY };
658
649
  }
659
- const vm = createVNode(contextMenuVue, propsData);
650
+ const vm = createVNode(_sfc_main$1, propsData);
660
651
  render(vm, container);
661
652
  const handleClick = function() {
662
653
  menuManager.resolve("");
@@ -843,9 +834,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
843
834
  setExpandedKeys([...state.expandedKeys, key]);
844
835
  } else {
845
836
  const keys = [...state.expandedKeys];
846
- const index2 = keys.findIndex((item) => item === key);
847
- if (index2 !== -1) {
848
- keys.splice(index2, 1);
837
+ const index = keys.findIndex((item) => item === key);
838
+ if (index !== -1) {
839
+ keys.splice(index, 1);
849
840
  }
850
841
  setExpandedKeys(keys);
851
842
  }
@@ -856,7 +847,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
856
847
  } = props;
857
848
  if (!actionList || actionList.length === 0)
858
849
  return;
859
- return actionList.map((item, index2) => {
850
+ return actionList.map((item, index) => {
860
851
  let nodeShow = true;
861
852
  if (isFunction(item.show)) {
862
853
  nodeShow = item.show?.(node);
@@ -866,7 +857,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
866
857
  if (!nodeShow)
867
858
  return null;
868
859
  return createVNode("span", {
869
- "key": index2,
860
+ "key": index,
870
861
  "class": "tree-action"
871
862
  }, [item.render(node)]);
872
863
  });
@@ -1055,7 +1046,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1055
1046
  const _component_ATree = Tree;
1056
1047
  const _component_AEmpty = Empty;
1057
1048
  const _component_ASpin = Spin;
1058
- return openBlock(), createElementBlock("div", _hoisted_1, [unref(showTitle) ? (openBlock(), createBlock(TreeHeader, {
1049
+ return openBlock(), createElementBlock("div", _hoisted_1, [unref(showTitle) ? (openBlock(), createBlock(_sfc_main$2, {
1059
1050
  key: 0,
1060
1051
  title: _ctx.title,
1061
1052
  toolbar: _ctx.toolbar,
@@ -1068,7 +1059,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1068
1059
  }, {
1069
1060
  default: withCtx(() => [createTextVNode(toDisplayString(unref(extendSlots)(unref(slots))), 1)]),
1070
1061
  _: 1
1071
- }, 8, ["title", "toolbar", "search", "checkable", "searchText"])) : createCommentVNode("v-if", true), createVNode(_component_ASpin, {
1062
+ }, 8, ["title", "toolbar", "search", "checkable", "searchText"])) : createCommentVNode("", true), createVNode(_component_ASpin, {
1072
1063
  spinning: _ctx.loading,
1073
1064
  tip: unref(t)("LOADING")
1074
1065
  }, {
@@ -1081,7 +1072,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1081
1072
  };
1082
1073
  }
1083
1074
  });
1084
- const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:/dt/dt-frame-front/dt-frames/frames/packages/ui/src/components/tree/src/index.vue"]]);
1085
1075
  export {
1086
- index as DtTree
1076
+ _sfc_main as DtTree
1087
1077
  };
@@ -87,10 +87,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
87
87
  }>> & {
88
88
  onSearch?: (...args: any[]) => any;
89
89
  }, {
90
- search: boolean;
91
90
  checkable: boolean;
92
91
  title: string;
93
92
  toolbar: boolean;
93
+ search: boolean;
94
94
  searchText: string;
95
95
  checkAll: Function;
96
96
  expandAll: Function;
@@ -6402,10 +6402,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
6402
6402
  }>> & {
6403
6403
  onSearch?: (...args: any[]) => any;
6404
6404
  }, {
6405
- search: boolean;
6406
6405
  checkable: boolean;
6407
6406
  title: string;
6408
6407
  toolbar: boolean;
6408
+ search: boolean;
6409
6409
  searchText: string;
6410
6410
  checkAll: Function;
6411
6411
  expandAll: Function;
@@ -6502,7 +6502,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
6502
6502
  onClickNode?: (...args: any[]) => any;
6503
6503
  "onUpdate:searchValue"?: (...args: any[]) => any;
6504
6504
  }, {
6505
- search: boolean;
6506
6505
  defaultExpandAll: boolean;
6507
6506
  showIcon: boolean;
6508
6507
  loading: boolean;
@@ -6522,5 +6521,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
6522
6521
  selectedOnSearch: boolean;
6523
6522
  title: string;
6524
6523
  toolbar: boolean;
6524
+ search: boolean;
6525
6525
  }>;
6526
6526
  export default _sfc_main;
@@ -0,0 +1,2 @@
1
+ import { default as DtUpload } from "./src/index";
2
+ export { DtUpload };
@@ -0,0 +1,16 @@
1
+ import { openBlock, createElementBlock } from "vue";
2
+ const _export_sfc = (sfc, props) => {
3
+ const target = sfc.__vccOpts || sfc;
4
+ for (const [key, val] of props) {
5
+ target[key] = val;
6
+ }
7
+ return target;
8
+ };
9
+ const _sfc_main = {};
10
+ function _sfc_render(_ctx, _cache) {
11
+ return openBlock(), createElementBlock("div", null, "\u8FD9\u662F\u6587\u4EF6\u4E0A\u4F20\u7EC4\u4EF6");
12
+ }
13
+ const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
14
+ export {
15
+ index as DtUpload
16
+ };
File without changes
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
+ export default _default;
@@ -6,6 +6,7 @@ import type { ThemeOptions, HeadOptions, MenuOptions, FooterOptions, RouteReuseO
6
6
  import { Component } from 'vue';
7
7
  import { SFCWithInstall } from '../utils/withInstall';
8
8
  import { UiSize, ContentMode, MenuMode, MenuType } from './src/enums/theme.enum';
9
+ import { useMenu, useHeader, useMultipleTab, useTheme } from './src/hooks';
9
10
  declare const DtTheme: SFCWithInstall<Component>;
10
- export { UiSize, ContentMode, MenuMode, MenuType, uiLang, DtTheme, useThemeStore, useRouteReuseStore, defaultThemeConf };
11
+ export { UiSize, ContentMode, MenuMode, MenuType, uiLang, DtTheme, useMenu, useHeader, useMultipleTab, useTheme, useThemeStore, useRouteReuseStore, defaultThemeConf };
11
12
  export type { ThemeOptions, HeadOptions, MenuOptions, FooterOptions, RouteReuseOptions };