ninemoon-ui 0.0.27 → 0.1.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 (109) hide show
  1. package/dist/components/alert/alert.d.ts +3 -11
  2. package/dist/components/alert/alertcomponent.vue.d.ts +22 -11
  3. package/dist/components/badge/badge.vue.d.ts +2 -0
  4. package/dist/components/carousel/carousel.vue.d.ts +29 -3
  5. package/dist/components/{tree/tree.vue.d.ts → carousel/clickbutton.vue.d.ts} +6 -19
  6. package/dist/components/check/checkbox.vue.d.ts +24 -16
  7. package/dist/components/check/checkgroup.vue.d.ts +15 -3
  8. package/dist/components/date/datepicker.vue.d.ts +28 -6
  9. package/dist/components/date/datepickerRange.vue.d.ts +15 -4
  10. package/dist/components/form/form.vue.d.ts +7 -20
  11. package/dist/components/form/formlabel.vue.d.ts +3 -3
  12. package/dist/components/form/type.d.ts +11 -0
  13. package/dist/components/icon/add.vue.d.ts +2 -0
  14. package/dist/components/icon/alertTip.vue.d.ts +2 -0
  15. package/dist/components/icon/arrow.vue.d.ts +2 -0
  16. package/dist/components/icon/calendar.vue.d.ts +2 -0
  17. package/dist/components/icon/close.vue.d.ts +2 -0
  18. package/dist/components/icon/dateArrow.vue.d.ts +2 -0
  19. package/dist/components/icon/dateArrowplus.vue.d.ts +2 -0
  20. package/dist/components/icon/delete.vue.d.ts +2 -0
  21. package/dist/components/icon/ellipsis.vue.d.ts +2 -0
  22. package/dist/components/icon/errTip.vue.d.ts +2 -0
  23. package/dist/components/icon/eye.vue.d.ts +2 -0
  24. package/dist/components/icon/infoTip.vue.d.ts +2 -0
  25. package/dist/components/icon/minus.vue.d.ts +2 -0
  26. package/dist/components/icon/successTip.vue.d.ts +2 -0
  27. package/dist/components/icon/turnleft.vue.d.ts +2 -0
  28. package/dist/components/icon/turnright.vue.d.ts +2 -0
  29. package/dist/components/icon/warnTip.vue.d.ts +2 -0
  30. package/dist/components/input/input.vue.d.ts +13 -8
  31. package/dist/components/loadding/loadcomponent.vue.d.ts +24 -4
  32. package/dist/components/loadding/loadding.d.ts +12 -19
  33. package/dist/components/menu/menu.vue.d.ts +13 -3
  34. package/dist/components/message/message.d.ts +68 -14
  35. package/dist/components/message/messagecomponent.vue.d.ts +5 -13
  36. package/dist/components/numberInput/numberinput.vue.d.ts +3 -3
  37. package/dist/components/pagination/pagination.vue.d.ts +24 -0
  38. package/dist/components/popover/poparrow.d.ts +55 -0
  39. package/dist/components/popover/popover.vue.d.ts +10 -4
  40. package/dist/components/radio/radiobox.vue.d.ts +24 -16
  41. package/dist/components/radio/radiogroup.vue.d.ts +15 -3
  42. package/dist/components/scrollBar/movebar.vue.d.ts +2 -2
  43. package/dist/components/scrollBar/scrollBar.vue.d.ts +12 -16
  44. package/dist/components/scrollloading/scrolllead.d.ts +18 -11
  45. package/dist/components/select/select.vue.d.ts +15 -1
  46. package/dist/components/select/selectoption.vue.d.ts +18 -6
  47. package/dist/components/switch/switch.vue.d.ts +14 -14
  48. package/dist/components/table/table.vue.d.ts +20 -9
  49. package/dist/components/table/tableItem.vue.d.ts +10 -4
  50. package/dist/components/tabs/tabs.vue.d.ts +14 -1
  51. package/dist/dialog.css +9 -0
  52. package/dist/directives/arrowKeys.d.ts +10 -0
  53. package/dist/directives/drag.d.ts +20 -0
  54. package/dist/directives/escape.d.ts +7 -0
  55. package/dist/directives/outsideclick.d.ts +14 -0
  56. package/dist/directives/watchwindow.d.ts +13 -0
  57. package/dist/directives/wheel.d.ts +12 -0
  58. package/dist/directives/whitespaceclick.d.ts +12 -0
  59. package/dist/index.css +1186 -873
  60. package/dist/index.d.ts +831 -401
  61. package/dist/index.es.js +22 -23
  62. package/dist/index.umd.js +4019 -3764
  63. package/dist/js/arrow/arrow.js +17 -0
  64. package/dist/js/badge/badge.js +9 -16
  65. package/dist/js/calendar/calendar.js +87 -0
  66. package/dist/js/carousel/carousel.js +101 -117
  67. package/dist/js/carousel/carouselitem.js +1 -7
  68. package/dist/js/check/checkbox.js +38 -4
  69. package/dist/js/check/checkgroup.js +40 -51
  70. package/dist/js/date/datepicker.js +146 -150
  71. package/dist/js/date/datepickerRange.js +265 -354
  72. package/dist/js/dateArrowplus/dateArrowplus.js +25 -0
  73. package/dist/js/delete/delete.js +19 -0
  74. package/dist/js/dialog/dialog.js +41 -57
  75. package/dist/js/form/form.js +30 -38
  76. package/dist/js/form/formlabel.js +99 -130
  77. package/dist/js/image/image.js +199 -149
  78. package/dist/js/index/index.js +605 -507
  79. package/dist/js/input/input.js +60 -43
  80. package/dist/js/menu/menu.js +47 -20
  81. package/dist/js/numberInput/numberinput.js +52 -60
  82. package/dist/js/pagination/pagination.js +125 -156
  83. package/dist/js/popover/popover.js +238 -134
  84. package/dist/js/radio/radiobox.js +37 -4
  85. package/dist/js/radio/radiogroup.js +15 -51
  86. package/dist/js/scrollBar/scrollBar.js +100 -56
  87. package/dist/js/select/select.js +155 -70
  88. package/dist/js/select/selectoption.js +45 -4
  89. package/dist/js/shapeFlag/shapeFlag.js +17 -0
  90. package/dist/js/switch/switch.js +14 -14
  91. package/dist/js/table/table.js +165 -111
  92. package/dist/js/table/tableItem.js +1 -1
  93. package/dist/js/tabs/tabs.js +57 -59
  94. package/dist/js/upload/upload.js +8 -23
  95. package/dist/tabs.css +3 -3
  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/js/getcalendar/getcalendar.js +0 -48
  105. package/dist/js/tree/tree.js +0 -72
  106. package/dist/js/tree/treeleaf.js +0 -116
  107. package/dist/radiogroup.css +0 -44
  108. package/dist/scrollBar.css +0 -37
  109. package/dist/select.css +0 -20
@@ -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,9 @@
1
+
2
+ .fade-enter-active,
3
+ .fade-leave-active {
4
+ transition: opacity 0.2s ease;
5
+ }
6
+ .fade-enter-from,
7
+ .fade-leave-to {
8
+ opacity: 0;
9
+ }
@@ -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 {};