jsuites 6.4.2 → 6.4.3

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 (78) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +119 -119
  3. package/dist/jsuites.css +3424 -3424
  4. package/dist/jsuites.d.ts +10 -10
  5. package/dist/jsuites.js +22475 -22450
  6. package/dist/jsuites.webcomponents.js +501 -501
  7. package/dist/types/animation.d.ts +23 -23
  8. package/dist/types/calendar.d.ts +87 -87
  9. package/dist/types/color.d.ts +50 -50
  10. package/dist/types/contextmenu.d.ts +43 -43
  11. package/dist/types/dropdown.d.ts +177 -177
  12. package/dist/types/editor.d.ts +96 -96
  13. package/dist/types/floating.d.ts +23 -23
  14. package/dist/types/form.d.ts +57 -57
  15. package/dist/types/index.d.ts +59 -59
  16. package/dist/types/mask.d.ts +50 -50
  17. package/dist/types/modal.d.ts +35 -35
  18. package/dist/types/notification.d.ts +27 -27
  19. package/dist/types/picker.d.ts +45 -45
  20. package/dist/types/rating.d.ts +19 -19
  21. package/dist/types/search.d.ts +23 -23
  22. package/dist/types/slider.d.ts +31 -31
  23. package/dist/types/tabs.d.ts +79 -79
  24. package/dist/types/tags.d.ts +105 -105
  25. package/dist/types/toolbar.d.ts +70 -70
  26. package/dist/types/upload.d.ts +45 -45
  27. package/dist/types/validations.d.ts +39 -39
  28. package/package.json +4 -4
  29. package/react/calendar/index.d.ts +105 -105
  30. package/react/calendar/index.js +28 -28
  31. package/react/color/index.d.ts +84 -84
  32. package/react/color/index.js +28 -28
  33. package/react/contextmenu/index.d.ts +61 -61
  34. package/react/contextmenu/index.js +24 -24
  35. package/react/dropdown/index.d.ts +184 -184
  36. package/react/dropdown/index.js +25 -25
  37. package/react/editor/index.d.ts +114 -114
  38. package/react/editor/index.js +31 -31
  39. package/react/index.js +26 -26
  40. package/react/modal/index.d.ts +53 -53
  41. package/react/modal/index.js +30 -30
  42. package/react/picker/index.d.ts +64 -64
  43. package/react/picker/index.js +28 -28
  44. package/react/rating/index.d.ts +37 -37
  45. package/react/rating/index.js +28 -28
  46. package/react/slider/index.d.ts +49 -49
  47. package/react/slider/index.js +30 -30
  48. package/react/tabs/index.d.ts +97 -97
  49. package/react/tabs/index.js +29 -29
  50. package/react/tags/index.d.ts +121 -121
  51. package/react/tags/index.js +24 -24
  52. package/react/toolbar/index.d.ts +88 -88
  53. package/react/toolbar/index.js +24 -24
  54. package/vue/calendar/index.d.ts +105 -105
  55. package/vue/calendar/index.js +36 -36
  56. package/vue/color/index.d.ts +84 -84
  57. package/vue/color/index.js +36 -36
  58. package/vue/contextmenu/index.d.ts +61 -61
  59. package/vue/contextmenu/index.js +21 -21
  60. package/vue/dropdown/index.d.ts +184 -184
  61. package/vue/dropdown/index.js +25 -25
  62. package/vue/editor/index.d.ts +114 -114
  63. package/vue/editor/index.js +40 -40
  64. package/vue/index.js +40 -40
  65. package/vue/modal/index.d.ts +53 -53
  66. package/vue/modal/index.js +41 -41
  67. package/vue/picker/index.d.ts +64 -64
  68. package/vue/picker/index.js +36 -36
  69. package/vue/rating/index.d.ts +37 -37
  70. package/vue/rating/index.js +36 -36
  71. package/vue/slider/index.d.ts +49 -49
  72. package/vue/slider/index.js +33 -33
  73. package/vue/tabs/index.d.ts +97 -97
  74. package/vue/tabs/index.js +28 -28
  75. package/vue/tags/index.d.ts +121 -121
  76. package/vue/tags/index.js +21 -21
  77. package/vue/toolbar/index.d.ts +88 -88
  78. package/vue/toolbar/index.js +21 -21
@@ -1,88 +1,88 @@
1
- /**
2
- * Official Type definitions for LemonadeJS plugins
3
- * https://lemonadejs.net
4
- * Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5
- */
6
-
7
- declare function Component(el: HTMLElement, options?: Component.Options): Component.Instance;
8
-
9
- interface Item {
10
- /** Toolbar item type */
11
- type?: 'icon' | 'divisor' | 'label' | 'select';
12
- /** Content of the toolbar element */
13
- content?: string;
14
- /** Tooltip for the toolbar element */
15
- tooltip?: string;
16
- /** Toolbar element width */
17
- width?: number;
18
- /** The initial selected option for the type: select */
19
- value?: string;
20
- /** Render method parser for the elements in the dropdown when type: select */
21
- render?: Function;
22
- /** When a item is clicked */
23
- onclick?: (el: HTMLElement, iconObject: object, toolbarItem: HTMLElement) => void;
24
- /** For the type select when a new item is selected */
25
- onchange?: (el: HTMLElement, pickerObject: object, reservedValue: any, itemValue: string, itemKey: string, mouseEvent: object) => void;
26
- /** To update the state of the toolbar */
27
- updateState?: (toolbarObject: object, toolbarItem: HTMLElement, option: any, extendOption: any) => void;
28
- }
29
-
30
- declare namespace Component {
31
- interface Options {
32
- /** Instance for the application you integrate your toolbar */
33
- app?: any;
34
- /** Container of the toolbar */
35
- container?: boolean;
36
- /** Show badge. Default: false */
37
- badge?: boolean;
38
- /** Show titles */
39
- title?: boolean;
40
- /** Responsive toolbar. Default: false */
41
- responsive?: boolean;
42
- /** Max toolbar width */
43
- maxWidth?: number | null;
44
- /** Show toolbar in the bottom of the component */
45
- bottom?: boolean;
46
- /** Items */
47
- items: Item[];
48
- }
49
-
50
- interface Instance {
51
- /** Close the floating extended options */
52
- close: () => void;
53
- /** Create the toolbar */
54
- create: (items: Item[]) => void;
55
- /** Destroy the toolbar */
56
- destroy: () => void;
57
- /** Return the HTMLElement container */
58
- get: () => void;
59
- /** Hide the toolbar */
60
- hide: () => void;
61
- /** Open the floating extended options */
62
- open: () => void;
63
- /** Toolbar settings */
64
- options: Component.Options;
65
- /** Refresh the toolbar items */
66
- refresh: () => void;
67
- /** Select the toolbar item */
68
- selectItem: (element: HTMLElement) => void;
69
- /** Set the badge for a toolbar item */
70
- setBadge: (index: number, value: number) => void;
71
- /** Define readonly status */
72
- setReadonly: (state: boolean) => void;
73
- /** Show the toolbar */
74
- show: () => void;
75
- /** Internal controller */
76
- type: 'toolbar';
77
- /** Update the state of a toolbar item. Arguments to be sent to the items */
78
- update: (option?: any, extendedOption?: any) => void;
79
- }
80
- }
81
-
82
- interface Toolbar {
83
- (): any
84
- [key: string]: any
85
- }
86
-
87
- declare function Toolbar<Toolbar>(props: Component.Options): any;
88
- export default Toolbar;
1
+ /**
2
+ * Official Type definitions for LemonadeJS plugins
3
+ * https://lemonadejs.net
4
+ * Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5
+ */
6
+
7
+ declare function Component(el: HTMLElement, options?: Component.Options): Component.Instance;
8
+
9
+ interface Item {
10
+ /** Toolbar item type */
11
+ type?: 'icon' | 'divisor' | 'label' | 'select';
12
+ /** Content of the toolbar element */
13
+ content?: string;
14
+ /** Tooltip for the toolbar element */
15
+ tooltip?: string;
16
+ /** Toolbar element width */
17
+ width?: number;
18
+ /** The initial selected option for the type: select */
19
+ value?: string;
20
+ /** Render method parser for the elements in the dropdown when type: select */
21
+ render?: Function;
22
+ /** When a item is clicked */
23
+ onclick?: (el: HTMLElement, iconObject: object, toolbarItem: HTMLElement) => void;
24
+ /** For the type select when a new item is selected */
25
+ onchange?: (el: HTMLElement, pickerObject: object, reservedValue: any, itemValue: string, itemKey: string, mouseEvent: object) => void;
26
+ /** To update the state of the toolbar */
27
+ updateState?: (toolbarObject: object, toolbarItem: HTMLElement, option: any, extendOption: any) => void;
28
+ }
29
+
30
+ declare namespace Component {
31
+ interface Options {
32
+ /** Instance for the application you integrate your toolbar */
33
+ app?: any;
34
+ /** Container of the toolbar */
35
+ container?: boolean;
36
+ /** Show badge. Default: false */
37
+ badge?: boolean;
38
+ /** Show titles */
39
+ title?: boolean;
40
+ /** Responsive toolbar. Default: false */
41
+ responsive?: boolean;
42
+ /** Max toolbar width */
43
+ maxWidth?: number | null;
44
+ /** Show toolbar in the bottom of the component */
45
+ bottom?: boolean;
46
+ /** Items */
47
+ items: Item[];
48
+ }
49
+
50
+ interface Instance {
51
+ /** Close the floating extended options */
52
+ close: () => void;
53
+ /** Create the toolbar */
54
+ create: (items: Item[]) => void;
55
+ /** Destroy the toolbar */
56
+ destroy: () => void;
57
+ /** Return the HTMLElement container */
58
+ get: () => void;
59
+ /** Hide the toolbar */
60
+ hide: () => void;
61
+ /** Open the floating extended options */
62
+ open: () => void;
63
+ /** Toolbar settings */
64
+ options: Component.Options;
65
+ /** Refresh the toolbar items */
66
+ refresh: () => void;
67
+ /** Select the toolbar item */
68
+ selectItem: (element: HTMLElement) => void;
69
+ /** Set the badge for a toolbar item */
70
+ setBadge: (index: number, value: number) => void;
71
+ /** Define readonly status */
72
+ setReadonly: (state: boolean) => void;
73
+ /** Show the toolbar */
74
+ show: () => void;
75
+ /** Internal controller */
76
+ type: 'toolbar';
77
+ /** Update the state of a toolbar item. Arguments to be sent to the items */
78
+ update: (option?: any, extendedOption?: any) => void;
79
+ }
80
+ }
81
+
82
+ interface Toolbar {
83
+ (): any
84
+ [key: string]: any
85
+ }
86
+
87
+ declare function Toolbar<Toolbar>(props: Component.Options): any;
88
+ export default Toolbar;
@@ -1,22 +1,22 @@
1
- import { h } from 'vue';
2
- import jSuites from "../../dist/jsuites";
3
-
4
-
5
- export default {
6
- inheritAttrs: false,
7
- mounted() {
8
- let options = {
9
- ...this.$attrs
10
- };
11
-
12
- this.el = this.$refs.container;
13
-
14
- this.current = jSuites.toolbar(this.$refs.container, options);
15
- },
16
- setup() {
17
- let containerProps = {
18
- ref: 'container',
19
- };
20
- return () => h('div', containerProps);
21
- },
1
+ import { h } from 'vue';
2
+ import jSuites from "../../dist/jsuites";
3
+
4
+
5
+ export default {
6
+ inheritAttrs: false,
7
+ mounted() {
8
+ let options = {
9
+ ...this.$attrs
10
+ };
11
+
12
+ this.el = this.$refs.container;
13
+
14
+ this.current = jSuites.toolbar(this.$refs.container, options);
15
+ },
16
+ setup() {
17
+ let containerProps = {
18
+ ref: 'container',
19
+ };
20
+ return () => h('div', containerProps);
21
+ },
22
22
  }