@citruslime/ui 2.0.0-beta.9 → 2.0.1-beta.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 (112) hide show
  1. package/README.md +5 -4
  2. package/dist/citrus-lime-ui.es.js +2854 -2980
  3. package/dist/citrus-lime-ui.umd.js +2 -1
  4. package/dist/components/accordion/cl-ui-accordion.vue.d.ts +26 -0
  5. package/dist/components/accordion/header/cl-ui-accordion-header.vue.d.ts +2 -0
  6. package/dist/components/accordion/index.d.ts +4 -0
  7. package/dist/components/accordion/item/cl-ui-accordion-item.vue.d.ts +35 -0
  8. package/dist/{src/components → components}/accordion/types.d.ts +0 -0
  9. package/dist/{src/components → components}/app/cl-ui-app.vue.d.ts +19 -12
  10. package/dist/{src/components → components}/app/index.d.ts +0 -0
  11. package/dist/components/button/cl-ui-button.vue.d.ts +51 -0
  12. package/dist/{src/components → components}/button/index.d.ts +0 -0
  13. package/dist/{src/components → components}/button/types.d.ts +0 -0
  14. package/dist/{src/components → components}/calendar/cl-ui-calendar.vue.d.ts +0 -0
  15. package/dist/{src/components → components}/calendar/index.d.ts +0 -0
  16. package/dist/{src/components → components}/calendar/types.d.ts +1 -1
  17. package/dist/{src/components → components}/calendar/utils.d.ts +15 -0
  18. package/dist/components/card/cl-ui-card.vue.d.ts +27 -0
  19. package/dist/{src/components → components}/card/index.d.ts +0 -0
  20. package/dist/{src/components → components}/card/types.d.ts +0 -0
  21. package/dist/{src/components → components}/combo-box/cl-ui-combo-box.vue.d.ts +250 -185
  22. package/dist/{src/components → components}/combo-box/index.d.ts +0 -0
  23. package/dist/{src/components → components}/combo-box/search-container/cl-ui-combo-box-search.vue.d.ts +97 -57
  24. package/dist/{src/components → components}/combo-box/search-container/header/cl-ui-combo-box-header.vue.d.ts +18 -10
  25. package/dist/{src/components → components}/combo-box/search-container/selectable/cl-ui-combo-box-selectable.vue.d.ts +27 -14
  26. package/dist/{src/components → components}/combo-box/types.d.ts +0 -0
  27. package/dist/components/footer/cl-ui-footer.vue.d.ts +2 -0
  28. package/dist/{src/components → components}/footer/index.d.ts +0 -0
  29. package/dist/components/grid/cell/cl-ui-grid-cell.vue.d.ts +68 -0
  30. package/dist/{src/components → components}/grid/cl-ui-grid.vue.d.ts +211 -178
  31. package/dist/{src/components → components}/grid/filter/cl-ui-grid-filter.vue.d.ts +24 -22
  32. package/dist/{src/utils → components/grid/filter}/filter-methods.d.ts +1 -1
  33. package/dist/components/grid/footer/cl-ui-grid-footer.vue.d.ts +56 -0
  34. package/dist/{src/components → components}/grid/header/cl-ui-grid-header.vue.d.ts +82 -62
  35. package/dist/{src/components → components}/grid/index.d.ts +0 -0
  36. package/dist/{src/components → components}/grid/types.d.ts +0 -0
  37. package/dist/components/grid/view-manager/cl-ui-grid-view-manager.vue.d.ts +82 -0
  38. package/dist/components/header/cl-ui-header.vue.d.ts +2 -0
  39. package/dist/{src/components → components}/header/index.d.ts +0 -0
  40. package/dist/components/header/menu/cl-ui-header-menu.vue.d.ts +40 -0
  41. package/dist/{src/components → components}/header/menu/index.d.ts +0 -1
  42. package/dist/{src/components → components}/index.d.ts +2 -2
  43. package/dist/components/input/cl-ui-input.vue.d.ts +2 -0
  44. package/dist/components/input/index.d.ts +2 -0
  45. package/dist/components/input/types.d.ts +6 -0
  46. package/dist/components/input/utils.d.ts +44 -0
  47. package/dist/{src/components → components}/language-switcher/cl-ui-language-switcher.vue.d.ts +11 -7
  48. package/dist/{src/components → components}/language-switcher/index.d.ts +0 -0
  49. package/dist/{src/components → components}/language-switcher/types.d.ts +0 -1
  50. package/dist/components/loading-spinner/cl-ui-loading-spinner.vue.d.ts +2 -0
  51. package/dist/{src/components → components}/loading-spinner/index.d.ts +0 -0
  52. package/dist/components/login/cl-ui-login.vue.d.ts +100 -0
  53. package/dist/{src/components → components}/login/index.d.ts +0 -0
  54. package/dist/{src/components → components}/login/types.d.ts +0 -0
  55. package/dist/components/modal/cl-ui-modal.vue.d.ts +49 -0
  56. package/dist/{src/components → components}/modal/index.d.ts +1 -0
  57. package/dist/{src/components → components}/modal/types.d.ts +2 -0
  58. package/dist/components/navigation/cl-ui-navigation.vue.d.ts +11 -0
  59. package/dist/components/navigation/group/cl-ui-navigation-group.vue.d.ts +12 -0
  60. package/dist/components/navigation/icon/cl-ui-navigation-icon.vue.d.ts +20 -0
  61. package/dist/components/navigation/index.d.ts +5 -0
  62. package/dist/components/navigation/item/cl-ui-navigation-item.vue.d.ts +2 -0
  63. package/dist/components/navigation/section/cl-ui-navigation-section.vue.d.ts +2 -0
  64. package/dist/{src/components → components}/notification/cl-ui-notification.vue.d.ts +12 -7
  65. package/dist/{src/components → components}/notification/index.d.ts +0 -0
  66. package/dist/{src/components → components}/notification/types.d.ts +0 -0
  67. package/dist/components/slider/cl-ui-slider.vue.d.ts +107 -0
  68. package/dist/{src/components → components}/slider/index.d.ts +0 -0
  69. package/dist/components/tab/cl-ui-tab.vue.d.ts +52 -0
  70. package/dist/components/tab/content/cl-ui-tab-content.vue.d.ts +2 -0
  71. package/dist/components/tab/header/cl-ui-tab-header.vue.d.ts +60 -0
  72. package/dist/components/tab/index.d.ts +4 -0
  73. package/dist/components/tab/types.d.ts +4 -0
  74. package/dist/{src/composables → composables}/index.d.ts +0 -0
  75. package/dist/{src/composables → composables}/notification.d.ts +0 -0
  76. package/dist/env.d.ts +1 -0
  77. package/dist/{src/main.d.ts → main.d.ts} +0 -0
  78. package/dist/style.css +1 -1
  79. package/dist/{src/utils → utils}/i18n/config.d.ts +1 -1
  80. package/dist/{src/utils → utils}/i18n/defaults.d.ts +0 -0
  81. package/dist/{src/utils → utils}/i18n/index.d.ts +0 -0
  82. package/dist/{src/utils → utils}/i18n/types.d.ts +5 -2
  83. package/dist/utils/index.d.ts +2 -0
  84. package/dist/utils/validation.d.ts +37 -0
  85. package/package.json +15 -17
  86. package/dist/.eslintrc.js +0 -456
  87. package/dist/.stylelintrc.js +0 -119
  88. package/dist/src/components/accordion/cl-ui-accordion.vue.d.ts +0 -47
  89. package/dist/src/components/accordion/index.d.ts +0 -2
  90. package/dist/src/components/button/cl-ui-button.vue.d.ts +0 -40
  91. package/dist/src/components/card/cl-ui-card.vue.d.ts +0 -22
  92. package/dist/src/components/grid/cell/cl-ui-grid-cell.vue.d.ts +0 -65
  93. package/dist/src/components/grid/footer/cl-ui-grid-footer.vue.d.ts +0 -57
  94. package/dist/src/components/grid/view-manager/cl-ui-grid-view-manager.vue.d.ts +0 -75
  95. package/dist/src/components/header/menu/cl-ui-header-menu.vue.d.ts +0 -16
  96. package/dist/src/components/header/menu/types.d.ts +0 -5
  97. package/dist/src/components/login/cl-ui-login.vue.d.ts +0 -92
  98. package/dist/src/components/modal/cl-ui-modal.vue.d.ts +0 -107
  99. package/dist/src/components/navigation/cl-ui-navigation.vue.d.ts +0 -669
  100. package/dist/src/components/navigation/index.d.ts +0 -2
  101. package/dist/src/components/navigation/types.d.ts +0 -18
  102. package/dist/src/components/slider/cl-ui-slider.vue.d.ts +0 -87
  103. package/dist/src/utils/copy.d.ts +0 -8
  104. package/dist/src/utils/debouncer.d.ts +0 -13
  105. package/dist/src/utils/extensions/string/index.d.ts +0 -2
  106. package/dist/src/utils/extensions/string/utils.d.ts +0 -83
  107. package/dist/src/utils/id.d.ts +0 -6
  108. package/dist/src/utils/index.d.ts +0 -8
  109. package/dist/src/utils/name-of.d.ts +0 -7
  110. package/dist/src/utils/sort.d.ts +0 -9
  111. package/dist/src/utils/url-params.d.ts +0 -8
  112. package/dist/theme.js +0 -121
@@ -0,0 +1,56 @@
1
+ import { NumberFormat } from '../../../utils';
2
+ import type { FilterRequest, FilterResponse } from '../types';
3
+ declare const _sfc_main: import("vue").DefineComponent<{
4
+ request: {
5
+ type: null;
6
+ required: true;
7
+ };
8
+ data: {
9
+ type: null;
10
+ required: false;
11
+ default: null;
12
+ };
13
+ }, {
14
+ props: {
15
+ request: FilterRequest;
16
+ data: FilterResponse<unknown> | null;
17
+ };
18
+ emit: (event: "update:request", ...args: any[]) => void;
19
+ pageSizes: number[];
20
+ n: import("vue-i18n").ComposerNumberFormatting<{
21
+ [x: string]: import("vue-i18n").IntlNumberFormat;
22
+ }, string, import("@intlify/core-base").RemoveIndexSignature<{
23
+ [x: string]: import("@intlify/core-base").NumberFormatOptions;
24
+ }>, never, string | number, string | number>;
25
+ t: import("vue-i18n").ComposerTranslation<{
26
+ [x: string]: import("@intlify/core-base").LocaleMessage<import("vue-i18n").VueMessageType>;
27
+ }, string, import("@intlify/core-base").RemoveIndexSignature<{
28
+ [x: string]: import("vue-i18n").LocaleMessageValue<import("vue-i18n").VueMessageType>;
29
+ }>, never, string, string>;
30
+ debounce: (event: Function, ...eventArgs: unknown[]) => void;
31
+ currentPage: import("vue").Ref<number>;
32
+ totalPages: import("vue").ComputedRef<number>;
33
+ pageNumbers: import("vue").ComputedRef<number[]>;
34
+ setPage: (pageNumber: number) => void;
35
+ setPageFromInput: (target: EventTarget | HTMLInputElement | null) => void;
36
+ setPageSize: (pageSize: number) => void;
37
+ NumberFormat: typeof NumberFormat;
38
+ ClUiInput: import("vue").DefineComponent<unknown, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<unknown>, {}>;
39
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
40
+ 'update:request': null;
41
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
42
+ request: {
43
+ type: null;
44
+ required: true;
45
+ };
46
+ data: {
47
+ type: null;
48
+ required: false;
49
+ default: null;
50
+ };
51
+ }>> & {
52
+ "onUpdate:request"?: ((...args: any[]) => any) | undefined;
53
+ }, {
54
+ data: any;
55
+ }>;
56
+ export default _sfc_main;
@@ -25,17 +25,11 @@ declare const _sfc_main: import("vue").DefineComponent<{
25
25
  filterPanelOpen: boolean;
26
26
  };
27
27
  emit: ((event: "update:columns", ...args: any[]) => void) & ((event: "reset-filters", ...args: any[]) => void) & ((event: "update:edit-mode", ...args: any[]) => void) & ((event: "update:filter-panel-open", ...args: any[]) => void);
28
- t: {
29
- (key: string | number): string;
30
- (key: string | number, plural: number, options?: import("vue-i18n").TranslateOptions | undefined): string;
31
- (key: string | number, defaultMsg: string, options?: import("vue-i18n").TranslateOptions | undefined): string;
32
- (key: string | number, list: unknown[], options?: import("vue-i18n").TranslateOptions | undefined): string;
33
- (key: string | number, list: unknown[], plural: number): string;
34
- (key: string | number, list: unknown[], defaultMsg: string): string;
35
- (key: string | number, named: Record<string, unknown>, options?: import("vue-i18n").TranslateOptions | undefined): string;
36
- (key: string | number, named: Record<string, unknown>, plural: number): string;
37
- (key: string | number, named: Record<string, unknown>, defaultMsg: string): string;
38
- };
28
+ t: import("vue-i18n").ComposerTranslation<{
29
+ [x: string]: import("@intlify/core-base").LocaleMessage<import("vue-i18n").VueMessageType>;
30
+ }, string, import("@intlify/core-base").RemoveIndexSignature<{
31
+ [x: string]: import("vue-i18n").LocaleMessageValue<import("vue-i18n").VueMessageType>;
32
+ }>, never, string, string>;
39
33
  currentColumns: import("vue").WritableComputedRef<GridColumn[]>;
40
34
  ClUiButton: import("vue").DefineComponent<{
41
35
  colour: {
@@ -59,22 +53,33 @@ declare const _sfc_main: import("vue").DefineComponent<{
59
53
  default: boolean;
60
54
  };
61
55
  }, {
62
- ClUiLoadingSpinner: any;
63
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
64
- colour?: unknown;
65
- size?: unknown;
66
- loading?: unknown;
67
- disabled?: unknown;
68
- } & {
69
- colour: any;
70
- size: any;
71
- loading: boolean;
56
+ ClUiLoadingSpinner: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
57
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
58
+ colour: {
59
+ type: null;
60
+ required: false;
61
+ default: string;
62
+ };
63
+ size: {
64
+ type: null;
65
+ required: false;
66
+ default: string;
67
+ };
68
+ loading: {
69
+ type: BooleanConstructor;
70
+ required: false;
71
+ default: boolean;
72
+ };
73
+ disabled: {
74
+ type: BooleanConstructor;
75
+ required: false;
76
+ default: boolean;
77
+ };
78
+ }>>, {
72
79
  disabled: boolean;
73
- } & {}>, {
74
80
  colour: any;
75
81
  size: any;
76
82
  loading: boolean;
77
- disabled: boolean;
78
83
  }>;
79
84
  ClUiGridViewManager: import("vue").DefineComponent<{
80
85
  columns: {
@@ -86,17 +91,11 @@ declare const _sfc_main: import("vue").DefineComponent<{
86
91
  columns: GridColumn[];
87
92
  };
88
93
  emit: (event: "update:columns", ...args: any[]) => void;
89
- t: {
90
- (key: string | number): string;
91
- (key: string | number, plural: number, options?: import("vue-i18n").TranslateOptions | undefined): string;
92
- (key: string | number, defaultMsg: string, options?: import("vue-i18n").TranslateOptions | undefined): string;
93
- (key: string | number, list: unknown[], options?: import("vue-i18n").TranslateOptions | undefined): string;
94
- (key: string | number, list: unknown[], plural: number): string;
95
- (key: string | number, list: unknown[], defaultMsg: string): string;
96
- (key: string | number, named: Record<string, unknown>, options?: import("vue-i18n").TranslateOptions | undefined): string;
97
- (key: string | number, named: Record<string, unknown>, plural: number): string;
98
- (key: string | number, named: Record<string, unknown>, defaultMsg: string): string;
99
- };
94
+ t: import("vue-i18n").ComposerTranslation<{
95
+ [x: string]: import("@intlify/core-base").LocaleMessage<import("vue-i18n").VueMessageType>;
96
+ }, string, import("@intlify/core-base").RemoveIndexSignature<{
97
+ [x: string]: import("vue-i18n").LocaleMessageValue<import("vue-i18n").VueMessageType>;
98
+ }>, never, string, string>;
100
99
  visible: import("vue").Ref<boolean>;
101
100
  moveColumn: (columns: GridColumn[], oldIndex: number, newIndex: number) => void;
102
101
  updateColumnVisibility: (target: EventTarget | null, column: GridColumn) => void;
@@ -123,30 +122,43 @@ declare const _sfc_main: import("vue").DefineComponent<{
123
122
  default: boolean;
124
123
  };
125
124
  }, {
126
- ClUiLoadingSpinner: any;
127
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
128
- colour?: unknown;
129
- size?: unknown;
130
- loading?: unknown;
131
- disabled?: unknown;
132
- } & {
133
- colour: any;
134
- size: any;
135
- loading: boolean;
125
+ ClUiLoadingSpinner: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
126
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
127
+ colour: {
128
+ type: null;
129
+ required: false;
130
+ default: string;
131
+ };
132
+ size: {
133
+ type: null;
134
+ required: false;
135
+ default: string;
136
+ };
137
+ loading: {
138
+ type: BooleanConstructor;
139
+ required: false;
140
+ default: boolean;
141
+ };
142
+ disabled: {
143
+ type: BooleanConstructor;
144
+ required: false;
145
+ default: boolean;
146
+ };
147
+ }>>, {
136
148
  disabled: boolean;
137
- } & {}>, {
138
149
  colour: any;
139
150
  size: any;
140
151
  loading: boolean;
141
- disabled: boolean;
142
152
  }>;
153
+ ClUiInput: import("vue").DefineComponent<unknown, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<unknown>, {}>;
143
154
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
144
155
  'update:columns': null;
145
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
146
- columns?: unknown;
147
- } & {
148
- columns: unknown[];
149
- } & {}> & {
156
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
157
+ columns: {
158
+ type: ArrayConstructor;
159
+ required: true;
160
+ };
161
+ }>> & {
150
162
  "onUpdate:columns"?: ((...args: any[]) => any) | undefined;
151
163
  }, {}>;
152
164
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -154,17 +166,25 @@ declare const _sfc_main: import("vue").DefineComponent<{
154
166
  'update:columns': null;
155
167
  'update:edit-mode': null;
156
168
  'update:filter-panel-open': null;
157
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
158
- columns?: unknown;
159
- editMode?: unknown;
160
- editEnabled?: unknown;
161
- filterPanelOpen?: unknown;
162
- } & {
163
- columns: unknown[];
164
- editMode: boolean;
165
- editEnabled: boolean;
166
- filterPanelOpen: boolean;
167
- } & {}> & {
169
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
170
+ columns: {
171
+ type: ArrayConstructor;
172
+ required: true;
173
+ };
174
+ editMode: {
175
+ type: BooleanConstructor;
176
+ required: true;
177
+ };
178
+ editEnabled: {
179
+ type: BooleanConstructor;
180
+ required: true;
181
+ };
182
+ filterPanelOpen: {
183
+ type: BooleanConstructor;
184
+ required: false;
185
+ default: boolean;
186
+ };
187
+ }>> & {
168
188
  "onUpdate:columns"?: ((...args: any[]) => any) | undefined;
169
189
  "onReset-filters"?: ((...args: any[]) => any) | undefined;
170
190
  "onUpdate:edit-mode"?: ((...args: any[]) => any) | undefined;
@@ -0,0 +1,82 @@
1
+ import type { GridColumn } from '../types';
2
+ declare const _sfc_main: import("vue").DefineComponent<{
3
+ columns: {
4
+ type: ArrayConstructor;
5
+ required: true;
6
+ };
7
+ }, {
8
+ props: {
9
+ columns: GridColumn[];
10
+ };
11
+ emit: (event: "update:columns", ...args: any[]) => void;
12
+ t: import("vue-i18n").ComposerTranslation<{
13
+ [x: string]: import("@intlify/core-base").LocaleMessage<import("vue-i18n").VueMessageType>;
14
+ }, string, import("@intlify/core-base").RemoveIndexSignature<{
15
+ [x: string]: import("vue-i18n").LocaleMessageValue<import("vue-i18n").VueMessageType>;
16
+ }>, never, string, string>;
17
+ visible: import("vue").Ref<boolean>;
18
+ moveColumn: (columns: GridColumn[], oldIndex: number, newIndex: number) => void;
19
+ updateColumnVisibility: (target: EventTarget | null, column: GridColumn) => void;
20
+ changeColumnOrder: (columnIndex: number, direction: 'up' | 'down') => void;
21
+ ClUiButton: import("vue").DefineComponent<{
22
+ colour: {
23
+ type: null;
24
+ required: false;
25
+ default: string;
26
+ };
27
+ size: {
28
+ type: null;
29
+ required: false;
30
+ default: string;
31
+ };
32
+ loading: {
33
+ type: BooleanConstructor;
34
+ required: false;
35
+ default: boolean;
36
+ };
37
+ disabled: {
38
+ type: BooleanConstructor;
39
+ required: false;
40
+ default: boolean;
41
+ };
42
+ }, {
43
+ ClUiLoadingSpinner: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
44
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
45
+ colour: {
46
+ type: null;
47
+ required: false;
48
+ default: string;
49
+ };
50
+ size: {
51
+ type: null;
52
+ required: false;
53
+ default: string;
54
+ };
55
+ loading: {
56
+ type: BooleanConstructor;
57
+ required: false;
58
+ default: boolean;
59
+ };
60
+ disabled: {
61
+ type: BooleanConstructor;
62
+ required: false;
63
+ default: boolean;
64
+ };
65
+ }>>, {
66
+ disabled: boolean;
67
+ colour: any;
68
+ size: any;
69
+ loading: boolean;
70
+ }>;
71
+ ClUiInput: import("vue").DefineComponent<unknown, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<unknown>, {}>;
72
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
73
+ 'update:columns': null;
74
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
75
+ columns: {
76
+ type: ArrayConstructor;
77
+ required: true;
78
+ };
79
+ }>> & {
80
+ "onUpdate:columns"?: ((...args: any[]) => any) | undefined;
81
+ }, {}>;
82
+ export default _sfc_main;
@@ -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;
@@ -0,0 +1,40 @@
1
+ declare const _sfc_main: import("vue").DefineComponent<{
2
+ username: {
3
+ type: StringConstructor;
4
+ required: false;
5
+ default: string;
6
+ };
7
+ group: {
8
+ type: StringConstructor;
9
+ required: false;
10
+ default: string;
11
+ };
12
+ image: {
13
+ type: StringConstructor;
14
+ required: false;
15
+ default: string;
16
+ };
17
+ }, {
18
+ isOpen: import("vue").Ref<boolean>;
19
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
20
+ username: {
21
+ type: StringConstructor;
22
+ required: false;
23
+ default: string;
24
+ };
25
+ group: {
26
+ type: StringConstructor;
27
+ required: false;
28
+ default: string;
29
+ };
30
+ image: {
31
+ type: StringConstructor;
32
+ required: false;
33
+ default: string;
34
+ };
35
+ }>>, {
36
+ group: string;
37
+ username: string;
38
+ image: string;
39
+ }>;
40
+ export default _sfc_main;
@@ -1,2 +1 @@
1
1
  export { default as clUiHeaderMenu } from './cl-ui-header-menu.vue';
2
- export * from './types';
@@ -1,16 +1,16 @@
1
1
  export * from './accordion';
2
2
  export * from './app';
3
3
  export * from './button';
4
- export * from './calendar';
5
4
  export * from './card';
6
5
  export * from './combo-box';
7
6
  export * from './footer';
8
7
  export * from './grid';
9
8
  export * from './header';
9
+ export * from './input';
10
10
  export * from './language-switcher';
11
11
  export * from './loading-spinner';
12
12
  export * from './login';
13
13
  export * from './modal';
14
14
  export * from './navigation';
15
15
  export * from './notification';
16
- export * from './slider';
16
+ export * from './tab';
@@ -0,0 +1,2 @@
1
+ declare const _sfc_main: import("vue").DefineComponent<unknown, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<unknown>, {}>;
2
+ export default _sfc_main;
@@ -0,0 +1,2 @@
1
+ export { default as clUiInput } from './cl-ui-input.vue';
2
+ export * from './types';
@@ -0,0 +1,6 @@
1
+ export declare const inputTypes: readonly ["button", "checkbox", "color", "date", "datetime", "email", "file", "number", "password", "radio", "range", "reset", "search", "submit", "tel", "text", "time", "url"];
2
+ export declare type InputType = typeof inputTypes[number];
3
+ export interface InputValidationState {
4
+ valid: boolean;
5
+ message: string;
6
+ }
@@ -0,0 +1,44 @@
1
+ import type { CalendarType } from '../calendar';
2
+ import type { InputType } from './types';
3
+ /**
4
+ * Get whether the input is text-based.
5
+ *
6
+ * @param type The type.
7
+ * @returns True if the input is a text, false if not.
8
+ */
9
+ export declare function isInputText(type: InputType): boolean;
10
+ /**
11
+ * Get whether the input is numeric.
12
+ *
13
+ * @param type The type of input.
14
+ * @returns True if the input is numeric, false if not.
15
+ */
16
+ export declare function isInputNumeric(type: InputType): boolean;
17
+ /**
18
+ * Get whether the input is a date that is supported by the calendar component.
19
+ *
20
+ * @param type The input type.
21
+ * @returns True if supported, false if not.
22
+ */
23
+ export declare function isInputCalendarSupportedDate(type: InputType): boolean;
24
+ /**
25
+ * Get whether the input is a date.
26
+ *
27
+ * @param type The type of input.
28
+ * @returns True if the input is a date, false if not.
29
+ */
30
+ export declare function isInputDate(type: InputType): boolean;
31
+ /**
32
+ * Get whether the input is a button.
33
+ *
34
+ * @param type The type of input.
35
+ * @returns True if the input is a button, false if not.
36
+ */
37
+ export declare function isInputButton(type: InputType | string): boolean;
38
+ /**
39
+ * Get the InputType as a CalendarType.
40
+ *
41
+ * @param type The InputType.
42
+ * @returns The CalendarType.
43
+ */
44
+ export declare function getInputTypeAsCalendarType(type: InputType): CalendarType;
@@ -21,13 +21,17 @@ declare const _sfc_main: import("vue").DefineComponent<{
21
21
  validLanguages: import("vue").ComputedRef<Language[]>;
22
22
  toggleLocaleSwitcher: () => void;
23
23
  isLanguageLocaleFormat: typeof isLanguageLocaleFormat;
24
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
25
- supportedLanguages?: unknown;
26
- disabled?: unknown;
27
- } & {
28
- disabled: boolean;
29
- supportedLanguages: unknown[];
30
- } & {}>, {
24
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
25
+ supportedLanguages: {
26
+ type: ArrayConstructor;
27
+ required: true;
28
+ };
29
+ disabled: {
30
+ type: BooleanConstructor;
31
+ required: false;
32
+ default: boolean;
33
+ };
34
+ }>>, {
31
35
  disabled: boolean;
32
36
  }>;
33
37
  export default _sfc_main;
@@ -2,7 +2,6 @@ export interface Language {
2
2
  name: string;
3
3
  nativeName: string;
4
4
  localeCode: string;
5
- icon: string;
6
5
  }
7
6
  /**
8
7
  * Checks if a given language object contains the correct format of locale code (en-GB for example. 2 lowercase a-z chars, followed by a hyphen, followed by 2 uppercase A-Z chars).
@@ -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;
@@ -0,0 +1,100 @@
1
+ import type { InputValidationState } from '..';
2
+ declare const _sfc_main: import("vue").DefineComponent<{
3
+ errors: {
4
+ type: ArrayConstructor;
5
+ required: false;
6
+ default: () => never[];
7
+ };
8
+ loading: {
9
+ type: BooleanConstructor;
10
+ required: false;
11
+ default: boolean;
12
+ };
13
+ }, {
14
+ emit: ((event: "login", ...args: any[]) => void) & ((event: "update:errors", ...args: any[]) => void);
15
+ t: import("vue-i18n").ComposerTranslation<{
16
+ [x: string]: import("@intlify/core-base").LocaleMessage<import("vue-i18n").VueMessageType>;
17
+ }, string, import("@intlify/core-base").RemoveIndexSignature<{
18
+ [x: string]: import("vue-i18n").LocaleMessageValue<import("vue-i18n").VueMessageType>;
19
+ }>, never, string, string>;
20
+ username: import("vue").Ref<string>;
21
+ password: import("vue").Ref<string>;
22
+ passwordFieldType: import("vue").Ref<"text" | "password">;
23
+ usernameValid: import("vue").Ref<boolean | undefined>;
24
+ login: () => void;
25
+ clearErrors: () => void;
26
+ emptyIsInvalidValidation: (_: string, value: string | number | boolean | Date | null | undefined) => InputValidationState;
27
+ onUsernameValidated: (valid: boolean, _: string | number | boolean | Date | null) => void;
28
+ ClUiButton: import("vue").DefineComponent<{
29
+ colour: {
30
+ type: null;
31
+ required: false;
32
+ default: string;
33
+ };
34
+ size: {
35
+ type: null;
36
+ required: false;
37
+ default: string;
38
+ };
39
+ loading: {
40
+ type: BooleanConstructor;
41
+ required: false;
42
+ default: boolean;
43
+ };
44
+ disabled: {
45
+ type: BooleanConstructor;
46
+ required: false;
47
+ default: boolean;
48
+ };
49
+ }, {
50
+ ClUiLoadingSpinner: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
51
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
52
+ colour: {
53
+ type: null;
54
+ required: false;
55
+ default: string;
56
+ };
57
+ size: {
58
+ type: null;
59
+ required: false;
60
+ default: string;
61
+ };
62
+ loading: {
63
+ type: BooleanConstructor;
64
+ required: false;
65
+ default: boolean;
66
+ };
67
+ disabled: {
68
+ type: BooleanConstructor;
69
+ required: false;
70
+ default: boolean;
71
+ };
72
+ }>>, {
73
+ disabled: boolean;
74
+ colour: any;
75
+ size: any;
76
+ loading: boolean;
77
+ }>;
78
+ ClUiInput: import("vue").DefineComponent<unknown, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<unknown>, {}>;
79
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
80
+ login: null;
81
+ 'update:errors': null;
82
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
83
+ errors: {
84
+ type: ArrayConstructor;
85
+ required: false;
86
+ default: () => never[];
87
+ };
88
+ loading: {
89
+ type: BooleanConstructor;
90
+ required: false;
91
+ default: boolean;
92
+ };
93
+ }>> & {
94
+ onLogin?: ((...args: any[]) => any) | undefined;
95
+ "onUpdate:errors"?: ((...args: any[]) => any) | undefined;
96
+ }, {
97
+ loading: boolean;
98
+ errors: unknown[];
99
+ }>;
100
+ export default _sfc_main;