ninemoon-ui 0.0.27 → 0.1.0

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 (135) hide show
  1. package/dist/assets/dialog-a1b585e9.css +9 -0
  2. package/dist/assets/index-6d2c28a9.css +1210 -0
  3. package/dist/{tabs.css → assets/tabs-d2c8965f.css} +3 -3
  4. package/dist/components/alert/alert.d.ts +3 -11
  5. package/dist/components/alert/alertcomponent.vue.d.ts +22 -11
  6. package/dist/components/badge/badge.vue.d.ts +2 -0
  7. package/dist/components/carousel/carousel.vue.d.ts +29 -3
  8. package/dist/components/{tree/tree.vue.d.ts → carousel/clickbutton.vue.d.ts} +6 -19
  9. package/dist/components/check/checkbox.vue.d.ts +24 -16
  10. package/dist/components/check/checkgroup.vue.d.ts +15 -3
  11. package/dist/components/date/datepicker.vue.d.ts +28 -6
  12. package/dist/components/date/datepickerRange.vue.d.ts +15 -4
  13. package/dist/components/form/form.vue.d.ts +7 -20
  14. package/dist/components/form/formlabel.vue.d.ts +3 -3
  15. package/dist/components/form/type.d.ts +11 -0
  16. package/dist/components/icon/add.vue.d.ts +2 -0
  17. package/dist/components/icon/alertTip.vue.d.ts +2 -0
  18. package/dist/components/icon/arrow.vue.d.ts +2 -0
  19. package/dist/components/icon/calendar.vue.d.ts +2 -0
  20. package/dist/components/icon/close.vue.d.ts +2 -0
  21. package/dist/components/icon/dateArrow.vue.d.ts +2 -0
  22. package/dist/components/icon/dateArrowplus.vue.d.ts +2 -0
  23. package/dist/components/icon/delete.vue.d.ts +2 -0
  24. package/dist/components/icon/ellipsis.vue.d.ts +2 -0
  25. package/dist/components/icon/errTip.vue.d.ts +2 -0
  26. package/dist/components/icon/eye.vue.d.ts +2 -0
  27. package/dist/components/icon/infoTip.vue.d.ts +2 -0
  28. package/dist/components/icon/minus.vue.d.ts +2 -0
  29. package/dist/components/icon/successTip.vue.d.ts +2 -0
  30. package/dist/components/icon/turnleft.vue.d.ts +2 -0
  31. package/dist/components/icon/turnright.vue.d.ts +2 -0
  32. package/dist/components/icon/warnTip.vue.d.ts +2 -0
  33. package/dist/components/input/input.vue.d.ts +13 -8
  34. package/dist/components/loadding/loadcomponent.vue.d.ts +24 -4
  35. package/dist/components/loadding/loadding.d.ts +12 -19
  36. package/dist/components/menu/menu.vue.d.ts +13 -3
  37. package/dist/components/message/message.d.ts +68 -14
  38. package/dist/components/message/messagecomponent.vue.d.ts +5 -13
  39. package/dist/components/numberInput/numberinput.vue.d.ts +3 -3
  40. package/dist/components/pagination/pagination.vue.d.ts +24 -0
  41. package/dist/components/popover/poparrow.d.ts +55 -0
  42. package/dist/components/popover/popover.vue.d.ts +10 -4
  43. package/dist/components/radio/radiobox.vue.d.ts +24 -16
  44. package/dist/components/radio/radiogroup.vue.d.ts +15 -3
  45. package/dist/components/scrollBar/movebar.vue.d.ts +2 -2
  46. package/dist/components/scrollBar/scrollBar.vue.d.ts +12 -16
  47. package/dist/components/scrollloading/scrolllead.d.ts +18 -11
  48. package/dist/components/select/select.vue.d.ts +15 -1
  49. package/dist/components/select/selectoption.vue.d.ts +18 -6
  50. package/dist/components/switch/switch.vue.d.ts +14 -14
  51. package/dist/components/table/table.vue.d.ts +20 -9
  52. package/dist/components/table/tableItem.vue.d.ts +10 -4
  53. package/dist/components/tabs/tabs.vue.d.ts +14 -1
  54. package/dist/directives/arrowKeys.d.ts +10 -0
  55. package/dist/directives/drag.d.ts +20 -0
  56. package/dist/directives/escape.d.ts +7 -0
  57. package/dist/directives/outsideclick.d.ts +14 -0
  58. package/dist/directives/watchwindow.d.ts +13 -0
  59. package/dist/directives/wheel.d.ts +12 -0
  60. package/dist/directives/whitespaceclick.d.ts +12 -0
  61. package/dist/index.d.ts +831 -401
  62. package/dist/js/arrow-ebe47bd0.js +17 -0
  63. package/dist/js/{badge/badge.js → badge-496028b6.js} +9 -16
  64. package/dist/js/calendar-5c242731.js +87 -0
  65. package/dist/js/carousel-10621aeb.js +155 -0
  66. package/dist/js/{carousel/carouselitem.js → carouselitem-89116745.js} +1 -7
  67. package/dist/js/checkbox-530025c4.js +50 -0
  68. package/dist/js/checkgroup-e4e6adbc.js +58 -0
  69. package/dist/js/dateArrowplus-8181993f.js +25 -0
  70. package/dist/js/datepicker-ef8b7019.js +362 -0
  71. package/dist/js/datepickerRange-4c400f88.js +500 -0
  72. package/dist/js/delete-e898f83c.js +19 -0
  73. package/dist/js/dialog-0127ca01.js +122 -0
  74. package/dist/js/form-6ae96387.js +79 -0
  75. package/dist/js/formlabel-9339bd1c.js +136 -0
  76. package/dist/js/image-76711716.js +300 -0
  77. package/dist/js/index-283810a0.js +6261 -0
  78. package/dist/js/index-b4e420ce.js +958 -0
  79. package/dist/js/index-e12c8d65.js +36 -0
  80. package/dist/js/input-11fe67a5.js +107 -0
  81. package/dist/js/menu-fb9b4a4f.js +86 -0
  82. package/dist/js/numberinput-00fa4429.js +119 -0
  83. package/dist/js/pagination-3bcaa109.js +203 -0
  84. package/dist/js/popover-45f75f86.js +345 -0
  85. package/dist/js/radiobox-8f11e726.js +49 -0
  86. package/dist/js/radiogroup-727923c7.js +33 -0
  87. package/dist/js/scrollBar-07906042.js +252 -0
  88. package/dist/js/select-b5bbb138.js +203 -0
  89. package/dist/js/selectoption-00c8f06d.js +57 -0
  90. package/dist/js/shapeFlag-8cf4bcf1.js +17 -0
  91. package/dist/js/switch-06ae74cc.js +50 -0
  92. package/dist/js/table-9bb52630.js +270 -0
  93. package/dist/js/{table/tableItem.js → tableItem-7d8bf2db.js} +1 -1
  94. package/dist/js/{tabs/tabs.js → tabs-9d7be734.js} +57 -59
  95. package/dist/js/{upload/upload.js → upload-16dbef22.js} +8 -23
  96. package/dist/types/shapeFlag.d.ts +13 -0
  97. package/dist/{components/utils → utils}/tool.d.ts +11 -4
  98. package/package.json +1 -1
  99. package/dist/badge.css +0 -27
  100. package/dist/carousel.css +0 -13
  101. package/dist/checkgroup.css +0 -41
  102. package/dist/datepickerRange.css +0 -79
  103. package/dist/image.css +0 -8
  104. package/dist/index.css +0 -897
  105. package/dist/index.es.js +0 -37
  106. package/dist/index.umd.js +0 -6006
  107. package/dist/js/carousel/carousel.js +0 -171
  108. package/dist/js/check/checkbox.js +0 -16
  109. package/dist/js/check/checkgroup.js +0 -69
  110. package/dist/js/date/datepicker.js +0 -366
  111. package/dist/js/date/datepickerRange.js +0 -589
  112. package/dist/js/dialog/dialog.js +0 -138
  113. package/dist/js/form/form.js +0 -87
  114. package/dist/js/form/formlabel.js +0 -167
  115. package/dist/js/getcalendar/getcalendar.js +0 -48
  116. package/dist/js/image/image.js +0 -250
  117. package/dist/js/index/index.js +0 -860
  118. package/dist/js/input/input.js +0 -90
  119. package/dist/js/menu/menu.js +0 -59
  120. package/dist/js/numberInput/numberinput.js +0 -127
  121. package/dist/js/pagination/pagination.js +0 -234
  122. package/dist/js/popover/popover.js +0 -241
  123. package/dist/js/radio/radiobox.js +0 -16
  124. package/dist/js/radio/radiogroup.js +0 -69
  125. package/dist/js/scrollBar/scrollBar.js +0 -208
  126. package/dist/js/select/select.js +0 -118
  127. package/dist/js/select/selectoption.js +0 -16
  128. package/dist/js/switch/switch.js +0 -50
  129. package/dist/js/table/table.js +0 -216
  130. package/dist/js/tree/tree.js +0 -72
  131. package/dist/js/tree/treeleaf.js +0 -116
  132. package/dist/radiogroup.css +0 -44
  133. package/dist/scrollBar.css +0 -37
  134. package/dist/select.css +0 -20
  135. /package/dist/js/{tabs/tabsPane.js → tabsPane-f024a6bf.js} +0 -0
@@ -1,32 +1,37 @@
1
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
- data: Array<{
3
- [key: string]: any;
4
- }>;
1
+ import { MyVNode } from '../../types/types';
2
+
3
+ declare function __VLS_template(): Readonly<{
4
+ default: () => MyVNode[];
5
+ }> & {
6
+ default: () => MyVNode[];
7
+ };
8
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
9
+ data: Array<any>;
5
10
  whiteword?: string;
6
11
  showHead?: boolean;
7
12
  headclass?: string;
8
13
  cellclass?: string;
9
14
  tableclass?: string;
15
+ idKey?: string;
10
16
  }>, {
11
17
  whiteword: string;
12
18
  showHead: boolean;
13
19
  }>>, {
14
20
  clearSelection: () => void;
15
21
  allSelection: () => void;
16
- toggleAllSelection: () => void;
17
- toggleSelection: (arr: Array<number>) => void;
22
+ toggleSelection: () => void;
23
+ setSelection: (arr: Array<string>) => void;
18
24
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
19
25
  rowClick: (...args: any[]) => void;
20
26
  selectionChange: (...args: any[]) => void;
21
27
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
22
- data: Array<{
23
- [key: string]: any;
24
- }>;
28
+ data: Array<any>;
25
29
  whiteword?: string;
26
30
  showHead?: boolean;
27
31
  headclass?: string;
28
32
  cellclass?: string;
29
33
  tableclass?: string;
34
+ idKey?: string;
30
35
  }>, {
31
36
  whiteword: string;
32
37
  showHead: boolean;
@@ -37,6 +42,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
37
42
  whiteword: string;
38
43
  showHead: boolean;
39
44
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
45
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
40
46
  export default _default;
41
47
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
42
48
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -55,3 +61,8 @@ type __VLS_WithDefaults<P, D> = {
55
61
  type __VLS_Prettify<T> = {
56
62
  [K in keyof T]: T[K];
57
63
  } & {};
64
+ type __VLS_WithTemplateSlots<T, S> = T & {
65
+ new (): {
66
+ $slots: S;
67
+ };
68
+ };
@@ -9,24 +9,30 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
9
9
  width?: string | number;
10
10
  label?: string | number;
11
11
  fixed?: "left" | "right";
12
- type?: "selection" | "index" | "expand";
12
+ type?: "selection" | "index" | "append" | "prepend" | "default";
13
13
  sortable?: boolean;
14
14
  row?: {
15
15
  [key: string]: any;
16
16
  };
17
17
  index?: number;
18
- }>, {}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
18
+ }>, {
19
+ type: string;
20
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
19
21
  prop?: string;
20
22
  width?: string | number;
21
23
  label?: string | number;
22
24
  fixed?: "left" | "right";
23
- type?: "selection" | "index" | "expand";
25
+ type?: "selection" | "index" | "append" | "prepend" | "default";
24
26
  sortable?: boolean;
25
27
  row?: {
26
28
  [key: string]: any;
27
29
  };
28
30
  index?: number;
29
- }>, {}>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
31
+ }>, {
32
+ type: string;
33
+ }>>> & Readonly<{}>, {
34
+ type: "selection" | "index" | "append" | "prepend" | "default";
35
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
30
36
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
31
37
  export default _default;
32
38
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -1,4 +1,11 @@
1
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
1
+ import { MyVNode } from '../../types/types';
2
+
3
+ declare function __VLS_template(): Readonly<{
4
+ default: () => MyVNode[];
5
+ }> & {
6
+ default: () => MyVNode[];
7
+ };
8
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
9
  active?: string;
3
10
  type?: "line" | "card";
4
11
  }>, {
@@ -15,6 +22,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
15
22
  }>, {
16
23
  type: "line" | "card";
17
24
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
25
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
18
26
  export default _default;
19
27
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
20
28
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -33,3 +41,8 @@ type __VLS_WithDefaults<P, D> = {
33
41
  type __VLS_Prettify<T> = {
34
42
  [K in keyof T]: T[K];
35
43
  } & {};
44
+ type __VLS_WithTemplateSlots<T, S> = T & {
45
+ new (): {
46
+ $slots: S;
47
+ };
48
+ };
@@ -0,0 +1,10 @@
1
+ import { Directive } from 'vue';
2
+
3
+ type DirectionHandlers = {
4
+ up?: (e: KeyboardEvent) => void;
5
+ down?: (e: KeyboardEvent) => void;
6
+ left?: (e: KeyboardEvent) => void;
7
+ right?: (e: KeyboardEvent) => void;
8
+ };
9
+ export declare const createArrowKeysDirective: (options: Partial<DirectionHandlers>) => Directive;
10
+ export {};
@@ -0,0 +1,20 @@
1
+ import { ObjectDirective } from 'vue';
2
+
3
+ type DraggableOptions = {
4
+ throttleWait?: number;
5
+ resetOnEnd?: boolean;
6
+ onDragStart?: (position: {
7
+ x: number;
8
+ y: number;
9
+ }) => void;
10
+ onDrag: (position: {
11
+ x: number;
12
+ y: number;
13
+ }) => void;
14
+ onDragEnd?: (position: {
15
+ x: number;
16
+ y: number;
17
+ }) => void;
18
+ };
19
+ export declare const createDraggableDirective: (options?: Partial<DraggableOptions>) => ObjectDirective;
20
+ export {};
@@ -0,0 +1,7 @@
1
+ import { ObjectDirective } from 'vue';
2
+
3
+ interface EscapeDirectiveOptions {
4
+ onEscape: (event: KeyboardEvent) => void;
5
+ }
6
+ export declare const createEscapeDirective: (options: Partial<EscapeDirectiveOptions>) => ObjectDirective<HTMLElement, any>;
7
+ export {};
@@ -0,0 +1,14 @@
1
+ import { ObjectDirective } from 'vue';
2
+
3
+ export type wheelDom = {
4
+ _checkout_handlers_?: {
5
+ click: (e: MouseEvent) => void;
6
+ };
7
+ } & HTMLElement;
8
+ interface CheckOutDirectiveOptions {
9
+ onCheckOut: (e: MouseEvent, el: wheelDom) => void;
10
+ moveModel?: boolean;
11
+ debounceWait?: number;
12
+ }
13
+ export declare const createBgClickDirective: (options: Partial<CheckOutDirectiveOptions>) => ObjectDirective<wheelDom, any>;
14
+ export {};
@@ -0,0 +1,13 @@
1
+ import { ObjectDirective } from 'vue';
2
+
3
+ export type wheelDom = {
4
+ _watchwindow_handlers_?: {
5
+ move: (e: Event) => void;
6
+ };
7
+ } & HTMLElement;
8
+ interface CheckMoveDirectiveOptions {
9
+ onMove: () => void;
10
+ debounceWait?: number;
11
+ }
12
+ export declare const createScrollDirective: (options: Partial<CheckMoveDirectiveOptions>) => ObjectDirective<wheelDom, any>;
13
+ export {};
@@ -0,0 +1,12 @@
1
+ import { ObjectDirective } from 'vue';
2
+
3
+ export type wheelDom = {
4
+ _wheel_handlers_?: {
5
+ wheel: (e: WheelEvent) => void;
6
+ };
7
+ } & HTMLElement;
8
+ interface WheelDirectiveOptions {
9
+ onWheel: (e: WheelEvent) => void;
10
+ }
11
+ export declare const createWheelDirective: (options: Partial<WheelDirectiveOptions>) => ObjectDirective<wheelDom, any>;
12
+ export {};
@@ -0,0 +1,12 @@
1
+ import { ObjectDirective } from 'vue';
2
+
3
+ interface BgPictureDirectiveOptions {
4
+ onBgPicture: (e: MouseEvent) => void;
5
+ }
6
+ interface bgPictureDom extends HTMLElement {
7
+ _bgPicture_handlers_?: {
8
+ bgPicture: (e: MouseEvent) => void;
9
+ };
10
+ }
11
+ export declare const createBgClickeDirective: (options: Partial<BgPictureDirectiveOptions>) => ObjectDirective<bgPictureDom, any>;
12
+ export {};