@citruslime/ui 2.4.1 → 2.4.2

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 (41) hide show
  1. package/dist/citrus-lime-ui.es.js +1031 -1022
  2. package/dist/citrus-lime-ui.umd.js +2 -2
  3. package/dist/components/accordion/cl-ui-accordion.vue.d.ts +11 -26
  4. package/dist/components/accordion/item/cl-ui-accordion-item.vue.d.ts +20 -29
  5. package/dist/components/app/cl-ui-app.vue.d.ts +11 -26
  6. package/dist/components/button/cl-ui-button.vue.d.ts +36 -39
  7. package/dist/components/calendar/cl-ui-calendar-input.vue.d.ts +57 -24
  8. package/dist/components/calendar/cl-ui-calendar.vue.d.ts +72 -53
  9. package/dist/components/card/cl-ui-card.vue.d.ts +19 -30
  10. package/dist/components/combo-box/cl-ui-combo-box.vue.d.ts +124 -79
  11. package/dist/components/combo-box/search-container/cl-ui-combo-box-search.vue.d.ts +84 -59
  12. package/dist/components/combo-box/search-container/header/cl-ui-combo-box-header.vue.d.ts +28 -35
  13. package/dist/components/combo-box/search-container/selectable/cl-ui-combo-box-selectable.vue.d.ts +44 -41
  14. package/dist/components/grid/action-row/cl-ui-grid-action-row.vue.d.ts +52 -25
  15. package/dist/components/grid/body/cl-ui-grid-body.vue.d.ts +75 -41
  16. package/dist/components/grid/body/cl-ui-grid-cell-value.vue.d.ts +26 -17
  17. package/dist/components/grid/body/cl-ui-grid-cell.vue.d.ts +46 -48
  18. package/dist/components/grid/body/cl-ui-grid-row.vue.d.ts +51 -37
  19. package/dist/components/grid/cl-ui-grid.vue.d.ts +80 -43
  20. package/dist/components/grid/footer/cl-ui-grid-footer.vue.d.ts +20 -29
  21. package/dist/components/grid/header/cl-ui-grid-filter.vue.d.ts +39 -32
  22. package/dist/components/grid/header/cl-ui-grid-header.vue.d.ts +44 -23
  23. package/dist/components/grid/header/cl-ui-grid-method-selector.vue.d.ts +36 -33
  24. package/dist/components/grid/types.d.ts +11 -0
  25. package/dist/components/grid/view-manager/cl-ui-grid-view-manager.vue.d.ts +12 -15
  26. package/dist/components/header/cl-ui-header.vue.d.ts +10 -15
  27. package/dist/components/header/menu/cl-ui-header-menu.vue.d.ts +43 -40
  28. package/dist/components/input/cl-ui-input.vue.d.ts +531 -128
  29. package/dist/components/language-switcher/cl-ui-language-switcher.vue.d.ts +28 -33
  30. package/dist/components/login/cl-ui-login.vue.d.ts +20 -31
  31. package/dist/components/modal/cl-ui-modal.vue.d.ts +27 -34
  32. package/dist/components/navigation/cl-ui-navigation.vue.d.ts +11 -26
  33. package/dist/components/navigation/group/cl-ui-navigation-group.vue.d.ts +11 -14
  34. package/dist/components/navigation/icon/cl-ui-navigation-icon.vue.d.ts +27 -30
  35. package/dist/components/notification/cl-ui-notification.vue.d.ts +19 -30
  36. package/dist/components/slider/cl-ui-slider.vue.d.ts +60 -45
  37. package/dist/components/tab/cl-ui-tab.vue.d.ts +27 -34
  38. package/dist/components/tab/header/cl-ui-tab-header.vue.d.ts +36 -35
  39. package/dist/style.css +1 -1
  40. package/package.json +3 -3
  41. package/dist/components/grid/body/types.d.ts +0 -12
@@ -1,30 +1,51 @@
1
1
  import type { FilterRequest, GridColumn, GridConfig } from '../types';
2
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
- request: FilterRequest<Record<string, unknown>>;
4
- columns: GridColumn<Record<string, unknown>>[];
5
- options: Partial<GridConfig>;
6
- filterPanelOpen: boolean;
7
- timeZone: string;
8
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
2
+ declare const _default: import("vue").DefineComponent<{
3
+ request: {
4
+ type: import("vue").PropType<FilterRequest<Record<string, unknown>>>;
5
+ required: true;
6
+ };
7
+ columns: {
8
+ type: import("vue").PropType<GridColumn<Record<string, unknown>>[]>;
9
+ required: true;
10
+ };
11
+ options: {
12
+ type: import("vue").PropType<Partial<GridConfig>>;
13
+ required: true;
14
+ };
15
+ filterPanelOpen: {
16
+ type: import("vue").PropType<boolean>;
17
+ required: true;
18
+ };
19
+ timeZone: {
20
+ type: import("vue").PropType<string>;
21
+ required: true;
22
+ };
23
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
24
  "update:request": (value: FilterRequest<Record<string, unknown>>) => void;
10
25
  "update:filterPanelOpen": (value: boolean) => void;
11
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
12
- request: FilterRequest<Record<string, unknown>>;
13
- columns: GridColumn<Record<string, unknown>>[];
14
- options: Partial<GridConfig>;
15
- filterPanelOpen: boolean;
16
- timeZone: string;
17
- }>>> & {
26
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
27
+ request: {
28
+ type: import("vue").PropType<FilterRequest<Record<string, unknown>>>;
29
+ required: true;
30
+ };
31
+ columns: {
32
+ type: import("vue").PropType<GridColumn<Record<string, unknown>>[]>;
33
+ required: true;
34
+ };
35
+ options: {
36
+ type: import("vue").PropType<Partial<GridConfig>>;
37
+ required: true;
38
+ };
39
+ filterPanelOpen: {
40
+ type: import("vue").PropType<boolean>;
41
+ required: true;
42
+ };
43
+ timeZone: {
44
+ type: import("vue").PropType<string>;
45
+ required: true;
46
+ };
47
+ }>> & {
18
48
  "onUpdate:filterPanelOpen"?: ((value: boolean) => any) | undefined;
19
49
  "onUpdate:request"?: ((value: FilterRequest<Record<string, unknown>>) => any) | undefined;
20
50
  }, {}, {}>;
21
51
  export default _default;
22
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
23
- type __VLS_TypePropsToRuntimeProps<T> = {
24
- [K in keyof T]-?: {} extends Pick<T, K> ? {
25
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
26
- } : {
27
- type: import('vue').PropType<T[K]>;
28
- required: true;
29
- };
30
- };
@@ -1,40 +1,43 @@
1
1
  import { type FilterArg, FilterOperation, type GridColumn } from '../types';
2
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
- filter: FilterArg<Record<string, unknown>> | undefined;
4
- column: GridColumn<Record<string, unknown>>;
5
- defaultOperation: FilterOperation;
6
- firstHalf?: boolean | undefined;
7
- }>, {
8
- firstHalf: boolean;
9
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
2
+ declare const _default: import("vue").DefineComponent<{
3
+ filter: {
4
+ type: import("vue").PropType<FilterArg<Record<string, unknown>> | undefined>;
5
+ required: true;
6
+ };
7
+ column: {
8
+ type: import("vue").PropType<GridColumn<Record<string, unknown>>>;
9
+ required: true;
10
+ };
11
+ defaultOperation: {
12
+ type: import("vue").PropType<FilterOperation>;
13
+ required: true;
14
+ };
15
+ firstHalf: {
16
+ type: import("vue").PropType<boolean>;
17
+ default: boolean;
18
+ };
19
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
20
  "update:filter": (value: FilterArg<Record<string, unknown>>) => void;
11
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
12
- filter: FilterArg<Record<string, unknown>> | undefined;
13
- column: GridColumn<Record<string, unknown>>;
14
- defaultOperation: FilterOperation;
15
- firstHalf?: boolean | undefined;
16
- }>, {
17
- firstHalf: boolean;
18
- }>>> & {
21
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
22
+ filter: {
23
+ type: import("vue").PropType<FilterArg<Record<string, unknown>> | undefined>;
24
+ required: true;
25
+ };
26
+ column: {
27
+ type: import("vue").PropType<GridColumn<Record<string, unknown>>>;
28
+ required: true;
29
+ };
30
+ defaultOperation: {
31
+ type: import("vue").PropType<FilterOperation>;
32
+ required: true;
33
+ };
34
+ firstHalf: {
35
+ type: import("vue").PropType<boolean>;
36
+ default: boolean;
37
+ };
38
+ }>> & {
19
39
  "onUpdate:filter"?: ((value: FilterArg<Record<string, unknown>>) => any) | undefined;
20
40
  }, {
21
41
  firstHalf: boolean;
22
42
  }, {}>;
23
43
  export default _default;
24
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
25
- type __VLS_TypePropsToRuntimeProps<T> = {
26
- [K in keyof T]-?: {} extends Pick<T, K> ? {
27
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
28
- } : {
29
- type: import('vue').PropType<T[K]>;
30
- required: true;
31
- };
32
- };
33
- type __VLS_WithDefaults<P, D> = {
34
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
35
- default: D[K];
36
- }> : P[K];
37
- };
38
- type __VLS_Prettify<T> = {
39
- [K in keyof T]: T[K];
40
- } & {};
@@ -1,4 +1,6 @@
1
1
  import type { DateFormat, NumberFormat } from '../../utils';
2
+ import type { ComboBoxItem } from '../combo-box';
3
+ import type { InputValueType } from '../input';
2
4
  export interface GridConfig {
3
5
  rowSelectionEnabled: boolean;
4
6
  hideViewManager: boolean;
@@ -82,6 +84,15 @@ export interface FilterResponse<T> {
82
84
  results: T[];
83
85
  totalRecords: number;
84
86
  }
87
+ export type CellSlot = {
88
+ column: GridColumn;
89
+ record: Record<string, InputValueType>;
90
+ };
91
+ export type EditCellSlot = CellSlot & Partial<{
92
+ edited: boolean;
93
+ listEntries: ComboBoxItem[];
94
+ cellFocused: () => void;
95
+ }>;
85
96
  /**
86
97
  * Checks if the provided object is of type FilterRequest.
87
98
  *
@@ -1,20 +1,17 @@
1
1
  import type { GridColumn } from '../types';
2
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
- columns: GridColumn<Record<string, unknown>>[];
4
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
2
+ declare const _default: import("vue").DefineComponent<{
3
+ columns: {
4
+ type: import("vue").PropType<GridColumn<Record<string, unknown>>[]>;
5
+ required: true;
6
+ };
7
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
5
8
  "update:columns": (value: GridColumn<Record<string, unknown>>[]) => void;
6
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
7
- columns: GridColumn<Record<string, unknown>>[];
8
- }>>> & {
9
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
10
+ columns: {
11
+ type: import("vue").PropType<GridColumn<Record<string, unknown>>[]>;
12
+ required: true;
13
+ };
14
+ }>> & {
9
15
  "onUpdate:columns"?: ((value: GridColumn<Record<string, unknown>>[]) => any) | undefined;
10
16
  }, {}, {}>;
11
17
  export default _default;
12
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
13
- type __VLS_TypePropsToRuntimeProps<T> = {
14
- [K in keyof T]-?: {} extends Pick<T, K> ? {
15
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
16
- } : {
17
- type: import('vue').PropType<T[K]>;
18
- required: true;
19
- };
20
- };
@@ -1,10 +1,14 @@
1
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
2
- isOpen?: boolean | undefined;
3
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
2
+ isOpen: {
3
+ type: import("vue").PropType<boolean>;
4
+ };
5
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4
6
  "open-click": () => void;
5
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
6
- isOpen?: boolean | undefined;
7
- }>>> & {
7
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
8
+ isOpen: {
9
+ type: import("vue").PropType<boolean>;
10
+ };
11
+ }>> & {
8
12
  "onOpen-click"?: (() => any) | undefined;
9
13
  }, {}, {}>, {
10
14
  logo?(_: {}): any;
@@ -12,15 +16,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
12
16
  icon?(_: {}): any;
13
17
  }>;
14
18
  export default _default;
15
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
16
- type __VLS_TypePropsToRuntimeProps<T> = {
17
- [K in keyof T]-?: {} extends Pick<T, K> ? {
18
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
19
- } : {
20
- type: import('vue').PropType<T[K]>;
21
- required: true;
22
- };
23
- };
24
19
  type __VLS_WithTemplateSlots<T, S> = T & {
25
20
  new (): {
26
21
  $slots: S;
@@ -1,26 +1,46 @@
1
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
- username?: string | undefined;
3
- group?: string | undefined;
4
- image?: string | undefined;
5
- isOpen: boolean;
6
- colour?: "default" | "secondary" | undefined;
7
- }>, {
8
- username: string;
9
- group: string;
10
- image: string;
11
- colour: string;
12
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
13
- username?: string | undefined;
14
- group?: string | undefined;
15
- image?: string | undefined;
16
- isOpen: boolean;
17
- colour?: "default" | "secondary" | undefined;
18
- }>, {
19
- username: string;
20
- group: string;
21
- image: string;
22
- colour: string;
23
- }>>>, {
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
2
+ image: {
3
+ type: import("vue").PropType<string>;
4
+ default: string;
5
+ };
6
+ colour: {
7
+ type: import("vue").PropType<"default" | "secondary">;
8
+ default: string;
9
+ };
10
+ group: {
11
+ type: import("vue").PropType<string>;
12
+ default: string;
13
+ };
14
+ isOpen: {
15
+ type: import("vue").PropType<boolean>;
16
+ required: true;
17
+ };
18
+ username: {
19
+ type: import("vue").PropType<string>;
20
+ default: string;
21
+ };
22
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
23
+ image: {
24
+ type: import("vue").PropType<string>;
25
+ default: string;
26
+ };
27
+ colour: {
28
+ type: import("vue").PropType<"default" | "secondary">;
29
+ default: string;
30
+ };
31
+ group: {
32
+ type: import("vue").PropType<string>;
33
+ default: string;
34
+ };
35
+ isOpen: {
36
+ type: import("vue").PropType<boolean>;
37
+ required: true;
38
+ };
39
+ username: {
40
+ type: import("vue").PropType<string>;
41
+ default: string;
42
+ };
43
+ }>>, {
24
44
  image: string;
25
45
  colour: "default" | "secondary";
26
46
  group: string;
@@ -29,25 +49,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
29
49
  default?(_: {}): any;
30
50
  }>;
31
51
  export default _default;
32
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
33
- type __VLS_TypePropsToRuntimeProps<T> = {
34
- [K in keyof T]-?: {} extends Pick<T, K> ? {
35
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
36
- } : {
37
- type: import('vue').PropType<T[K]>;
38
- required: true;
39
- };
40
- };
41
- type __VLS_WithDefaults<P, D> = {
42
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
43
- default: D[K];
44
- }> : P[K];
45
- };
46
52
  type __VLS_WithTemplateSlots<T, S> = T & {
47
53
  new (): {
48
54
  $slots: S;
49
55
  };
50
56
  };
51
- type __VLS_Prettify<T> = {
52
- [K in keyof T]: T[K];
53
- } & {};