@citruslime/ui 2.0.0-beta.7 → 2.0.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 (108) hide show
  1. package/README.md +5 -4
  2. package/dist/citrus-lime-ui.es.js +2612 -2214
  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/index.d.ts +4 -0
  6. package/dist/components/accordion/item/cl-ui-accordion-item.vue.d.ts +35 -0
  7. package/dist/{src/components → components}/accordion/types.d.ts +0 -0
  8. package/dist/{src/components → components}/app/cl-ui-app.vue.d.ts +19 -12
  9. package/dist/{src/components → components}/app/index.d.ts +0 -0
  10. package/dist/{src/components → components}/button/cl-ui-button.vue.d.ts +23 -12
  11. package/dist/{src/components → components}/button/index.d.ts +0 -0
  12. package/dist/{src/components → components}/button/types.d.ts +0 -0
  13. package/dist/{src/components → components}/calendar/cl-ui-calendar.vue.d.ts +0 -0
  14. package/dist/{src/components → components}/calendar/index.d.ts +0 -0
  15. package/dist/{src/components → components}/calendar/types.d.ts +1 -1
  16. package/dist/{src/components → components}/calendar/utils.d.ts +15 -0
  17. package/dist/{src/components → components}/card/cl-ui-card.vue.d.ts +4 -23
  18. package/dist/{src/components → components}/card/index.d.ts +1 -0
  19. package/dist/{src/components → components}/card/types.d.ts +0 -0
  20. package/dist/{src/components → components}/combo-box/cl-ui-combo-box.vue.d.ts +270 -211
  21. package/dist/{src/components → components}/combo-box/index.d.ts +0 -0
  22. package/dist/{src/components → components}/combo-box/search-container/cl-ui-combo-box-search.vue.d.ts +109 -63
  23. package/dist/{src/components → components}/combo-box/search-container/header/cl-ui-combo-box-header.vue.d.ts +17 -9
  24. package/dist/{src/components → components}/combo-box/search-container/selectable/cl-ui-combo-box-selectable.vue.d.ts +28 -15
  25. package/dist/{src/components → components}/combo-box/types.d.ts +0 -19
  26. package/dist/{src/components → components}/footer/index.d.ts +0 -0
  27. package/dist/{src/components → components}/grid/cell/cl-ui-grid-cell.vue.d.ts +16 -18
  28. package/dist/{src/components → components}/grid/cl-ui-grid.vue.d.ts +226 -220
  29. package/dist/components/grid/filter/cl-ui-grid-filter.vue.d.ts +72 -0
  30. package/dist/{src/utils → components/grid/filter}/filter-methods.d.ts +1 -1
  31. package/dist/components/grid/footer/cl-ui-grid-footer.vue.d.ts +63 -0
  32. package/dist/{src/components → components}/grid/header/cl-ui-grid-header.vue.d.ts +96 -68
  33. package/dist/{src/components → components}/grid/index.d.ts +0 -0
  34. package/dist/{src/components → components}/grid/types.d.ts +0 -47
  35. package/dist/components/grid/view-manager/cl-ui-grid-view-manager.vue.d.ts +88 -0
  36. package/dist/{src/components → components}/header/index.d.ts +0 -0
  37. package/dist/components/header/menu/cl-ui-header-menu.vue.d.ts +40 -0
  38. package/dist/{src/components → components}/header/menu/index.d.ts +0 -1
  39. package/dist/{src/components → components}/index.d.ts +2 -2
  40. package/dist/components/input/cl-ui-input.vue.d.ts +2 -0
  41. package/dist/components/input/index.d.ts +2 -0
  42. package/dist/components/input/types.d.ts +6 -0
  43. package/dist/components/input/utils.d.ts +44 -0
  44. package/dist/{src/components → components}/language-switcher/cl-ui-language-switcher.vue.d.ts +14 -20
  45. package/dist/{src/components → components}/language-switcher/index.d.ts +1 -0
  46. package/dist/{src/components → components}/language-switcher/types.d.ts +0 -1
  47. package/dist/{src/components → components}/loading-spinner/index.d.ts +0 -0
  48. package/dist/components/login/cl-ui-login.vue.d.ts +106 -0
  49. package/dist/{src/components → components}/login/index.d.ts +0 -0
  50. package/dist/components/login/types.d.ts +4 -0
  51. package/dist/components/modal/cl-ui-modal.vue.d.ts +49 -0
  52. package/dist/{src/components → components}/modal/index.d.ts +1 -0
  53. package/dist/{src/components → components}/modal/types.d.ts +2 -0
  54. package/dist/components/navigation/cl-ui-navigation.vue.d.ts +11 -0
  55. package/dist/components/navigation/group/cl-ui-navigation-group.vue.d.ts +12 -0
  56. package/dist/{src/components/footer/cl-ui-footer.vue.d.ts → components/navigation/icon/cl-ui-navigation-icon.vue.d.ts} +14 -16
  57. package/dist/components/navigation/index.d.ts +5 -0
  58. package/dist/{src/components → components}/notification/cl-ui-notification.vue.d.ts +12 -7
  59. package/dist/{src/components → components}/notification/index.d.ts +0 -0
  60. package/dist/{src/components → components}/notification/types.d.ts +0 -0
  61. package/dist/components/slider/cl-ui-slider.vue.d.ts +114 -0
  62. package/dist/{src/components → components}/slider/index.d.ts +0 -1
  63. package/dist/components/tab/cl-ui-tab.vue.d.ts +52 -0
  64. package/dist/components/tab/header/cl-ui-tab-header.vue.d.ts +60 -0
  65. package/dist/components/tab/index.d.ts +4 -0
  66. package/dist/components/tab/types.d.ts +4 -0
  67. package/dist/{src/composables → composables}/index.d.ts +0 -0
  68. package/dist/{src/composables → composables}/notification.d.ts +0 -0
  69. package/dist/{src/main.d.ts → main.d.ts} +0 -1
  70. package/dist/style.css +1 -1
  71. package/dist/utils/i18n/config.d.ts +33 -0
  72. package/dist/utils/i18n/defaults.d.ts +4 -0
  73. package/dist/utils/i18n/index.d.ts +3 -0
  74. package/dist/utils/i18n/types.d.ts +97 -0
  75. package/dist/utils/index.d.ts +2 -0
  76. package/dist/utils/validation.d.ts +37 -0
  77. package/package.json +17 -14
  78. package/dist/.eslintrc.js +0 -455
  79. package/dist/.stylelintrc.js +0 -119
  80. package/dist/src/components/accordion/cl-ui-accordion.vue.d.ts +0 -47
  81. package/dist/src/components/accordion/index.d.ts +0 -2
  82. package/dist/src/components/grid/filter/cl-ui-grid-filter.vue.d.ts +0 -68
  83. package/dist/src/components/grid/footer/cl-ui-grid-footer.vue.d.ts +0 -62
  84. package/dist/src/components/grid/view-manager/cl-ui-grid-view-manager.vue.d.ts +0 -71
  85. package/dist/src/components/header/menu/cl-ui-header-menu.vue.d.ts +0 -16
  86. package/dist/src/components/header/menu/types.d.ts +0 -13
  87. package/dist/src/components/login/cl-ui-login.vue.d.ts +0 -170
  88. package/dist/src/components/login/types.d.ts +0 -11
  89. package/dist/src/components/modal/cl-ui-modal.vue.d.ts +0 -107
  90. package/dist/src/components/navigation/cl-ui-navigation.vue.d.ts +0 -669
  91. package/dist/src/components/navigation/index.d.ts +0 -2
  92. package/dist/src/components/navigation/types.d.ts +0 -18
  93. package/dist/src/components/slider/cl-ui-slider.vue.d.ts +0 -97
  94. package/dist/src/components/slider/types.d.ts +0 -3
  95. package/dist/src/utils/copy.d.ts +0 -8
  96. package/dist/src/utils/debouncer.d.ts +0 -13
  97. package/dist/src/utils/extensions/string/index.d.ts +0 -2
  98. package/dist/src/utils/extensions/string/utils.d.ts +0 -83
  99. package/dist/src/utils/i18n/datetime-formats.d.ts +0 -2
  100. package/dist/src/utils/i18n/index.d.ts +0 -3
  101. package/dist/src/utils/i18n/number-formats.d.ts +0 -2
  102. package/dist/src/utils/i18n/types.d.ts +0 -15
  103. package/dist/src/utils/id.d.ts +0 -6
  104. package/dist/src/utils/index.d.ts +0 -8
  105. package/dist/src/utils/name-of.d.ts +0 -7
  106. package/dist/src/utils/sort.d.ts +0 -9
  107. package/dist/src/utils/url-params.d.ts +0 -8
  108. package/dist/theme.js +0 -121
@@ -1,62 +0,0 @@
1
- import { NumberFormat } from '../../../utils';
2
- import type { FilterRequest, FilterResponse, GridFooterLocalisations } from '../types';
3
- declare const _sfc_main: import("vue").DefineComponent<{
4
- request: {
5
- type: null;
6
- required: true;
7
- };
8
- currentLocale: {
9
- type: StringConstructor;
10
- required: false;
11
- default: string;
12
- };
13
- localisations: {
14
- type: null;
15
- required: true;
16
- };
17
- data: {
18
- type: null;
19
- required: false;
20
- default: () => null;
21
- };
22
- }, {
23
- props: {
24
- request: FilterRequest;
25
- currentLocale: string;
26
- localisations: GridFooterLocalisations;
27
- data: FilterResponse<unknown> | null;
28
- };
29
- emit: (event: "update:request", ...args: any[]) => void;
30
- pageSizes: number[];
31
- n: {
32
- (value: number): string;
33
- (value: number, key: string): string;
34
- (value: number, key: string, locale: string): string;
35
- (value: number, options: import("vue-i18n").NumberOptions): string;
36
- };
37
- debounce: (event: Function, eventArgs: unknown[]) => void;
38
- totalPages: import("vue").ComputedRef<number>;
39
- pageNumbers: import("vue").ComputedRef<number[]>;
40
- setPage: (pageNumber: number) => void;
41
- setPageFromInput: (target: EventTarget | null) => void;
42
- setPageSize: (pageSize: number) => void;
43
- NumberFormat: typeof NumberFormat;
44
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
45
- 'update:request': null;
46
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
47
- request?: unknown;
48
- currentLocale?: unknown;
49
- localisations?: unknown;
50
- data?: unknown;
51
- } & {
52
- data: any;
53
- currentLocale: string;
54
- localisations: any;
55
- request: any;
56
- } & {}> & {
57
- "onUpdate:request"?: ((...args: any[]) => any) | undefined;
58
- }, {
59
- data: any;
60
- currentLocale: string;
61
- }>;
62
- export default _sfc_main;
@@ -1,71 +0,0 @@
1
- import type { GridColumn, GridViewManagerLocalisations } from '../types';
2
- declare const _sfc_main: import("vue").DefineComponent<{
3
- localisations: {
4
- type: null;
5
- required: true;
6
- };
7
- columns: {
8
- type: ArrayConstructor;
9
- required: true;
10
- };
11
- }, {
12
- props: {
13
- localisations: GridViewManagerLocalisations;
14
- columns: GridColumn[];
15
- };
16
- emit: (event: "update:columns", ...args: any[]) => void;
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: any;
44
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
45
- colour?: unknown;
46
- size?: unknown;
47
- loading?: unknown;
48
- disabled?: unknown;
49
- } & {
50
- loading: boolean;
51
- disabled: boolean;
52
- size: any;
53
- colour: any;
54
- } & {}>, {
55
- loading: boolean;
56
- disabled: boolean;
57
- size: any;
58
- colour: any;
59
- }>;
60
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
61
- 'update:columns': null;
62
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
63
- localisations?: unknown;
64
- columns?: unknown;
65
- } & {
66
- localisations: any;
67
- columns: unknown[];
68
- } & {}> & {
69
- "onUpdate:columns"?: ((...args: any[]) => any) | undefined;
70
- }, {}>;
71
- export default _sfc_main;
@@ -1,16 +0,0 @@
1
- declare const _sfc_main: import("vue").DefineComponent<{
2
- user: {
3
- type: null;
4
- required: false;
5
- default: () => null;
6
- };
7
- }, {
8
- isOpen: import("vue").Ref<boolean>;
9
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
10
- user?: unknown;
11
- } & {
12
- user: any;
13
- } & {}>, {
14
- user: any;
15
- }>;
16
- export default _sfc_main;
@@ -1,13 +0,0 @@
1
- export interface HeaderHelperLocalisations {
2
- helpLabel: string;
3
- helpMessage: string;
4
- support: string;
5
- feedback: string;
6
- website: string;
7
- logout: string;
8
- }
9
- export interface AppUser {
10
- username?: string;
11
- group?: string;
12
- image?: string;
13
- }
@@ -1,170 +0,0 @@
1
- import type { Language } from '../language-switcher/types';
2
- import type { LoginLocalisations } from './types';
3
- declare type PasswordFieldType = 'text' | 'password';
4
- declare const _sfc_main: import("vue").DefineComponent<{
5
- errors: {
6
- type: ArrayConstructor;
7
- required: false;
8
- default: () => never[];
9
- };
10
- currentLocale: {
11
- type: StringConstructor;
12
- required: false;
13
- default: string;
14
- };
15
- supportedLocales: {
16
- type: ArrayConstructor;
17
- required: true;
18
- };
19
- localisations: {
20
- type: null;
21
- required: false;
22
- default: () => {
23
- login: string;
24
- email: string;
25
- password: string;
26
- validEmail: string;
27
- invalidEmail: string;
28
- };
29
- };
30
- logo: {
31
- type: StringConstructor;
32
- required: true;
33
- };
34
- backgroundImage: {
35
- type: StringConstructor;
36
- required: true;
37
- };
38
- loading: {
39
- type: BooleanConstructor;
40
- required: false;
41
- default: boolean;
42
- };
43
- }, {
44
- props: {
45
- errors: string[];
46
- currentLocale: string;
47
- supportedLocales: Language[];
48
- localisations: LoginLocalisations;
49
- logo: string;
50
- backgroundImage: string;
51
- loading: false;
52
- };
53
- emit: ((event: "update:current-locale", ...args: any[]) => void) & ((event: "login", ...args: any[]) => void) & ((event: "update:errors", ...args: any[]) => void);
54
- username: import("vue").Ref<string>;
55
- password: import("vue").Ref<string>;
56
- passwordFieldType: import("vue").Ref<PasswordFieldType>;
57
- usernameValid: import("vue").Ref<boolean>;
58
- selectedLocale: import("vue").WritableComputedRef<string>;
59
- login: () => void;
60
- clearErrors: () => void;
61
- ClUiButton: import("vue").DefineComponent<{
62
- colour: {
63
- type: null;
64
- required: false;
65
- default: string;
66
- };
67
- size: {
68
- type: null;
69
- required: false;
70
- default: string;
71
- };
72
- loading: {
73
- type: BooleanConstructor;
74
- required: false;
75
- default: boolean;
76
- };
77
- disabled: {
78
- type: BooleanConstructor;
79
- required: false;
80
- default: boolean;
81
- };
82
- }, {
83
- ClUiLoadingSpinner: any;
84
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
85
- colour?: unknown;
86
- size?: unknown;
87
- loading?: unknown;
88
- disabled?: unknown;
89
- } & {
90
- loading: boolean;
91
- disabled: boolean;
92
- size: any;
93
- colour: any;
94
- } & {}>, {
95
- loading: boolean;
96
- disabled: boolean;
97
- size: any;
98
- colour: any;
99
- }>;
100
- ClUiLanguageSwitcher: import("vue").DefineComponent<{
101
- currentLocale: {
102
- type: StringConstructor;
103
- required: true;
104
- };
105
- supportedLocales: {
106
- type: ArrayConstructor;
107
- required: true;
108
- };
109
- disabled: {
110
- type: BooleanConstructor;
111
- required: false;
112
- default: boolean;
113
- };
114
- }, {
115
- props: {
116
- currentLocale: string;
117
- supportedLocales: Language[];
118
- disabled: boolean;
119
- };
120
- localeToggleOpen: import("vue").Ref<boolean>;
121
- selectedLanguage: import("vue").ComputedRef<Language | null>;
122
- validLanguages: import("vue").ComputedRef<Language[]>;
123
- toggleLocaleSwitcher: () => void;
124
- isLanguageLocaleFormat: typeof import("../language-switcher/types").isLanguageLocaleFormat;
125
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
126
- 'update:current-locale': null;
127
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
128
- currentLocale?: unknown;
129
- supportedLocales?: unknown;
130
- disabled?: unknown;
131
- } & {
132
- disabled: boolean;
133
- currentLocale: string;
134
- supportedLocales: unknown[];
135
- } & {}> & {
136
- "onUpdate:current-locale"?: ((...args: any[]) => any) | undefined;
137
- }, {
138
- disabled: boolean;
139
- }>;
140
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
141
- login: null;
142
- 'update:errors': null;
143
- 'update:current-locale': null;
144
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
145
- errors?: unknown;
146
- currentLocale?: unknown;
147
- supportedLocales?: unknown;
148
- localisations?: unknown;
149
- logo?: unknown;
150
- backgroundImage?: unknown;
151
- loading?: unknown;
152
- } & {
153
- loading: boolean;
154
- currentLocale: string;
155
- localisations: any;
156
- supportedLocales: unknown[];
157
- errors: unknown[];
158
- logo: string;
159
- backgroundImage: string;
160
- } & {}> & {
161
- "onUpdate:current-locale"?: ((...args: any[]) => any) | undefined;
162
- onLogin?: ((...args: any[]) => any) | undefined;
163
- "onUpdate:errors"?: ((...args: any[]) => any) | undefined;
164
- }, {
165
- loading: boolean;
166
- currentLocale: string;
167
- localisations: any;
168
- errors: unknown[];
169
- }>;
170
- export default _sfc_main;
@@ -1,11 +0,0 @@
1
- export interface Authentication {
2
- username: string;
3
- password: string;
4
- }
5
- export interface LoginLocalisations {
6
- login: string;
7
- email: string;
8
- password: string;
9
- validEmail: string;
10
- invalidEmail: string;
11
- }
@@ -1,107 +0,0 @@
1
- import type { ModalSize } from './types';
2
- declare const _sfc_main: import("vue").DefineComponent<{
3
- title: {
4
- type: StringConstructor;
5
- required: true;
6
- };
7
- size: {
8
- type: null;
9
- required: false;
10
- default: string;
11
- };
12
- confirmButton: {
13
- type: StringConstructor;
14
- required: false;
15
- default: string;
16
- };
17
- cancelButton: {
18
- type: StringConstructor;
19
- required: false;
20
- default: string;
21
- };
22
- confirmEnabled: {
23
- type: BooleanConstructor;
24
- required: false;
25
- default: boolean;
26
- };
27
- }, {
28
- props: {
29
- title: string;
30
- size: ModalSize;
31
- confirmButton: string;
32
- cancelButton: string;
33
- confirmEnabled: boolean;
34
- };
35
- emit: ((event: "cancel", ...args: any[]) => void) & ((event: "confirm", ...args: any[]) => void);
36
- visible: import("vue").Ref<boolean>;
37
- showConfirmButton: import("vue").ComputedRef<boolean>;
38
- showCancelButton: import("vue").ComputedRef<boolean>;
39
- getButtonText: (buttonValue: string | boolean) => string;
40
- confirmButtonText: import("vue").ComputedRef<string>;
41
- cancelButtonText: import("vue").ComputedRef<string>;
42
- toggleModal: (show?: boolean | undefined) => void;
43
- modalAction: (action: boolean) => void;
44
- ClUiButton: import("vue").DefineComponent<{
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
- ClUiLoadingSpinner: any;
67
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
68
- colour?: unknown;
69
- size?: unknown;
70
- loading?: unknown;
71
- disabled?: unknown;
72
- } & {
73
- loading: boolean;
74
- disabled: boolean;
75
- size: any;
76
- colour: any;
77
- } & {}>, {
78
- loading: boolean;
79
- disabled: boolean;
80
- size: any;
81
- colour: any;
82
- }>;
83
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
84
- confirm: null;
85
- cancel: null;
86
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
87
- title?: unknown;
88
- size?: unknown;
89
- confirmButton?: unknown;
90
- cancelButton?: unknown;
91
- confirmEnabled?: unknown;
92
- } & {
93
- title: string;
94
- size: any;
95
- confirmButton: string;
96
- cancelButton: string;
97
- confirmEnabled: boolean;
98
- } & {}> & {
99
- onCancel?: ((...args: any[]) => any) | undefined;
100
- onConfirm?: ((...args: any[]) => any) | undefined;
101
- }, {
102
- size: any;
103
- confirmButton: string;
104
- cancelButton: string;
105
- confirmEnabled: boolean;
106
- }>;
107
- export default _sfc_main;