@done-coding/admin-core 0.5.0 → 0.5.1-alpha.1

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 (124) hide show
  1. package/es/bridge/index.mjs +30 -42
  2. package/es/components/app-layout/AppHeader.vue.mjs +2 -2
  3. package/es/components/app-layout/AppHeader.vue2.mjs +16 -19
  4. package/es/components/data-view/DataListView.vue.mjs +2 -2
  5. package/es/components/data-view/DataListView.vue2.mjs +64 -53
  6. package/es/components/data-view/utils.mjs +36 -0
  7. package/es/components/display/TabsHeader.vue.mjs +2 -2
  8. package/es/components/display/TabsMain.vue.mjs +1 -1
  9. package/es/components/list-page/ListPage.vue.mjs +2 -2
  10. package/es/components/list-page/ListPage.vue2.mjs +44 -44
  11. package/es/components/misc/ActionConfirm.vue2.mjs +16 -16
  12. package/es/components/modal/ConfirmModal.vue.mjs +2 -2
  13. package/es/components/modal/DetailModal.vue.mjs +10 -10
  14. package/es/components/table/TableMain.vue.mjs +3 -3
  15. package/es/components/table/TableMain.vue2.mjs +167 -177
  16. package/es/components/table/TableToolbar.vue.mjs +3 -3
  17. package/es/components/table/TableToolbar.vue2.mjs +8 -4
  18. package/es/index.mjs +150 -180
  19. package/es/style.css +1 -1
  20. package/package.json +6 -5
  21. package/types/bridge/index.d.ts +3 -6
  22. package/types/bridge/route.d.ts +0 -1
  23. package/types/components/app-layout/AppBody.vue.d.ts +14 -34
  24. package/types/components/app-layout/AppBreadcrumb.vue.d.ts +6 -19
  25. package/types/components/app-layout/AppFooter.vue.d.ts +1 -1
  26. package/types/components/app-layout/AppHeader.vue.d.ts +15 -39
  27. package/types/components/app-layout/AppLayout.vue.d.ts +17 -50
  28. package/types/components/app-layout/AppPage.vue.d.ts +14 -39
  29. package/types/components/app-layout/AppSidebar.vue.d.ts +15 -37
  30. package/types/components/app-layout/index.d.ts +1 -19
  31. package/types/components/app-layout/types.d.ts +0 -1
  32. package/types/components/data-view/DataListView.vue.d.ts +9 -9
  33. package/types/components/data-view/DataListViewItem.vue.d.ts +19 -17
  34. package/types/components/data-view/index.d.ts +0 -1
  35. package/types/components/data-view/types.d.ts +9 -18
  36. package/types/components/data-view/utils.d.ts +5 -0
  37. package/types/components/display/ActionBtnGroup.vue.d.ts +8 -6
  38. package/types/components/display/HeightProvider.vue.d.ts +15 -31
  39. package/types/components/display/TabsHeader.vue.d.ts +27 -34
  40. package/types/components/display/TabsMain.vue.d.ts +33 -73
  41. package/types/components/display/TabsNaturalFlow.vue.d.ts +11 -5
  42. package/types/components/display/TabsRefineFlow.vue.d.ts +13 -31
  43. package/types/components/display/WatchSize.vue.d.ts +20 -32
  44. package/types/components/display/index.d.ts +0 -3
  45. package/types/components/display/types.d.ts +1 -2
  46. package/types/components/form/FormItem.vue.d.ts +208 -33
  47. package/types/components/form/FormMain.vue.d.ts +6 -7
  48. package/types/components/form/FormRadioGroup.vue.d.ts +14 -31
  49. package/types/components/form/FormSearch.vue.d.ts +5 -6
  50. package/types/components/form/FormSelect.vue.d.ts +19 -40
  51. package/types/components/form/FormTree.vue.d.ts +2037 -32
  52. package/types/components/form/FormVerifyCode.vue.d.ts +6 -6
  53. package/types/components/form/FormVerifyImage.vue.d.ts +6 -6
  54. package/types/components/form/form-search-utils.d.ts +0 -1
  55. package/types/components/form/index.d.ts +0 -3
  56. package/types/components/form/types.d.ts +0 -1
  57. package/types/components/form/utils.d.ts +0 -1
  58. package/types/components/list-page/ListPage.vue.d.ts +32 -33
  59. package/types/components/list-page/index.d.ts +0 -3
  60. package/types/components/list-page/types.d.ts +0 -1
  61. package/types/components/menu/MenuItemSub.vue.d.ts +3 -15
  62. package/types/components/menu/MenuTree.vue.d.ts +117 -19
  63. package/types/components/menu/index.d.ts +0 -3
  64. package/types/components/misc/ActionBtn.vue.d.ts +10 -11
  65. package/types/components/misc/ActionConfirm.vue.d.ts +21 -60
  66. package/types/components/misc/AutoRefresh.vue.d.ts +18 -24
  67. package/types/components/misc/TriggerAutoImport.vue.d.ts +8 -2
  68. package/types/components/misc/index.d.ts +4 -14
  69. package/types/components/misc/types.d.ts +0 -1
  70. package/types/components/modal/ConfirmModal.vue.d.ts +26 -83
  71. package/types/components/modal/DetailModal.vue.d.ts +5 -6
  72. package/types/components/modal/ModalPorter.vue.d.ts +13 -18
  73. package/types/components/modal/ModalShelf.vue.d.ts +13 -18
  74. package/types/components/modal/index.d.ts +0 -4
  75. package/types/components/modal/modal-shelf-core.d.ts +0 -1
  76. package/types/components/modal/modal-shelf-hierarchy.d.ts +0 -1
  77. package/types/components/modal/modal-shelf-types.d.ts +0 -1
  78. package/types/components/modal/types.d.ts +0 -1
  79. package/types/components/panel/PanelEditSwitch.vue.d.ts +17 -20
  80. package/types/components/panel/PanelItem.vue.d.ts +7 -16
  81. package/types/components/panel/PanelMain.vue.d.ts +5 -6
  82. package/types/components/panel/index.d.ts +0 -4
  83. package/types/components/panel/types.d.ts +0 -1
  84. package/types/components/table/TableMain.vue.d.ts +12 -12
  85. package/types/components/table/TableToolbar.vue.d.ts +17 -108
  86. package/types/components/table/ToolbarButtons.vue.d.ts +15 -17
  87. package/types/components/table/index.d.ts +0 -3
  88. package/types/components/table/types.d.ts +59 -19
  89. package/types/config/list-model.d.ts +0 -1
  90. package/types/helpers/form.d.ts +0 -1
  91. package/types/helpers/index.d.ts +0 -10
  92. package/types/helpers/list-helper.d.ts +0 -1
  93. package/types/hooks/menus-dispatch.d.ts +0 -1
  94. package/types/hooks/use-channel-viewport-height.d.ts +0 -1
  95. package/types/index.d.ts +0 -13
  96. package/types/inject/key.d.ts +0 -1
  97. package/types/router/guard/index.d.ts +0 -1
  98. package/types/router/guard/login.d.ts +0 -1
  99. package/types/router/guard/permission.d.ts +0 -1
  100. package/types/router/guard/types.d.ts +0 -1
  101. package/types/store/app.d.ts +1 -2
  102. package/types/store/router-permission.d.ts +0 -1
  103. package/types/store/user.d.ts +0 -1
  104. package/types/types/route.d.ts +0 -1
  105. package/types/utils/export.d.ts +11 -10
  106. package/types/utils/router.d.ts +0 -1
  107. package/es/components/app-layout/index.mjs +0 -32
  108. package/es/components/display/index.mjs +0 -18
  109. package/es/components/form/index.mjs +0 -32
  110. package/es/components/list-page/index.mjs +0 -14
  111. package/es/components/menu/index.mjs +0 -12
  112. package/es/components/misc/ActionButton.vue.mjs +0 -52
  113. package/es/components/misc/ActionButton.vue2.mjs +0 -4
  114. package/es/components/misc/ActionButtonDanger.vue.mjs +0 -32
  115. package/es/components/misc/ActionButtonDanger.vue2.mjs +0 -4
  116. package/es/components/misc/ActionButtonWarn.vue.mjs +0 -32
  117. package/es/components/misc/ActionButtonWarn.vue2.mjs +0 -4
  118. package/es/components/misc/index.mjs +0 -32
  119. package/es/components/modal/index.mjs +0 -23
  120. package/es/components/panel/index.mjs +0 -20
  121. package/es/components/table/index.mjs +0 -14
  122. package/types/components/misc/ActionButton.vue.d.ts +0 -24
  123. package/types/components/misc/ActionButtonDanger.vue.d.ts +0 -19
  124. package/types/components/misc/ActionButtonWarn.vue.d.ts +0 -19
@@ -1,14 +1,13 @@
1
1
  import { FormSearchInstance, FormSearchProps, FormSearchSearchType } from './types';
2
-
3
- declare const _default: <PO extends Record<string, any>, SO extends Record<string, any>, SQ extends Record<string, any>>(__VLS_props: Awaited<typeof __VLS_setup>["props"], __VLS_ctx?: __VLS_Prettify<Pick<Awaited<typeof __VLS_setup>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
- props: __VLS_Prettify<__VLS_OmitKeepDiscriminatedUnion<(Partial<{}> & Omit<{
2
+ declare const _default: <PO extends Record<string, any>, SO extends Record<string, any>, SQ extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
5
4
  readonly onSearch?: ((data: import('./types').ExcludeNeverProperties<import('./types').ExtractFormStringifyRawFromObject<PO, SO>> & SQ, type: FormSearchSearchType) => any) | undefined;
6
5
  readonly onVisibleChange?: ((status: boolean) => any) | undefined;
7
6
  readonly onHeightChange?: ((height: number) => any) | undefined;
8
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>) & FormSearchProps<PO, SO, SQ>, keyof import('vue').VNodeProps | keyof import('vue').AllowedComponentProps>> & {} & (import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps);
7
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onVisibleChange" | "onHeightChange" | "onSearch"> & FormSearchProps<PO, SO, SQ> & Partial<{}>> & import('vue').PublicProps;
9
8
  expose(exposed: import('vue').ShallowUnwrapRef<FormSearchInstance>): void;
10
9
  attrs: any;
11
- slots: ReturnType<() => Partial<Record<NonNullable<Extract<keyof PO, string>>, (_: any) => any>>>;
10
+ slots: Partial<Record<NonNullable<Extract<keyof PO, string>>, (_: any) => any>>;
12
11
  emit: {
13
12
  (e: "search", data: import('./types').ExcludeNeverProperties<import('./types').ExtractFormStringifyRawFromObject<PO, SO>> & SQ, type: FormSearchSearchType): void;
14
13
  (e: "heightChange", height: number): void;
@@ -18,6 +17,6 @@ declare const _default: <PO extends Record<string, any>, SO extends Record<strin
18
17
  __ctx?: Awaited<typeof __VLS_setup>;
19
18
  };
20
19
  export default _default;
21
- type __VLS_Prettify<T> = {
20
+ type __VLS_PrettifyLocal<T> = {
22
21
  [K in keyof T]: T[K];
23
22
  } & {};
@@ -1,54 +1,33 @@
1
1
  import { OptionItem } from './types';
2
-
3
- declare function __VLS_template(): {
4
- option?(_: {
5
- data: OptionItem;
6
- }): any;
7
- };
8
- declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
9
- modelValue: OptionItem["value"];
10
- options?: OptionItem[];
11
- remoteMethod?: (query?: string) => Promise<OptionItem[]>;
12
- itemCls?: string;
13
- getOptions?: () => Promise<OptionItem[]>;
14
- }>, {
15
- options: () => never[];
16
- }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
17
- "update:modelValue": (value: string | number) => void;
18
- detailChange: (value?: OptionItem | undefined) => void;
19
- }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
+ type __VLS_Props = {
20
3
  modelValue: OptionItem["value"];
21
4
  options?: OptionItem[];
22
5
  remoteMethod?: (query?: string) => Promise<OptionItem[]>;
23
6
  itemCls?: string;
24
7
  getOptions?: () => Promise<OptionItem[]>;
25
- }>, {
26
- options: () => never[];
27
- }>>> & Readonly<{
8
+ };
9
+ declare function __VLS_template(): {
10
+ attrs: Partial<{}>;
11
+ slots: {
12
+ option?(_: {
13
+ data: OptionItem;
14
+ }): any;
15
+ };
16
+ refs: {};
17
+ rootEl: any;
18
+ };
19
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
20
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
21
+ "update:modelValue": (value: string | number) => any;
22
+ detailChange: (value?: OptionItem | undefined) => any;
23
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
28
24
  "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
29
25
  onDetailChange?: ((value?: OptionItem | undefined) => any) | undefined;
30
26
  }>, {
31
27
  options: OptionItem[];
32
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
33
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
28
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
29
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
34
30
  export default _default;
35
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
36
- type __VLS_TypePropsToRuntimeProps<T> = {
37
- [K in keyof T]-?: {} extends Pick<T, K> ? {
38
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
39
- } : {
40
- type: import('vue').PropType<T[K]>;
41
- required: true;
42
- };
43
- };
44
- type __VLS_WithDefaults<P, D> = {
45
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
46
- default: D[K];
47
- }> : P[K];
48
- };
49
- type __VLS_Prettify<T> = {
50
- [K in keyof T]: T[K];
51
- } & {};
52
31
  type __VLS_WithTemplateSlots<T, S> = T & {
53
32
  new (): {
54
33
  $slots: S;