@citruslime/ui 3.0.2-beta.0 → 3.0.2-beta.10

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.
@@ -2,6 +2,7 @@ import type { FilterRequest, GridColumn, GridConfig } from '../types';
2
2
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<{
3
3
  editMode: boolean;
4
4
  loading: boolean;
5
+ initialLoad: boolean;
5
6
  filterPanelOpen: boolean;
6
7
  columns: GridColumn<Record<string, unknown>>[];
7
8
  options: Partial<GridConfig>;
@@ -13,6 +14,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
13
14
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
14
15
  editMode: boolean;
15
16
  loading: boolean;
17
+ initialLoad: boolean;
16
18
  filterPanelOpen: boolean;
17
19
  columns: GridColumn<Record<string, unknown>>[];
18
20
  options: Partial<GridConfig>;
@@ -1,11 +1,12 @@
1
1
  import type { InputValueType } from '../../input/types';
2
- import type { FilterRequest, FilterResponse, GridColumn, GridConfig, GridUpdateModel } from '../types';
2
+ import type { EditCellSlot, FilterRequest, FilterResponse, GridColumn, GridConfig, GridUpdateModel } from '../types';
3
3
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
4
4
  columns: GridColumn<Record<string, unknown>>[];
5
5
  request: FilterRequest<Record<string, unknown>>;
6
6
  data: FilterResponse<Record<string, InputValueType>> | null;
7
7
  timeZone: string | null;
8
8
  loading: boolean;
9
+ initialLoad: boolean;
9
10
  options: Partial<GridConfig>;
10
11
  searchValue: string;
11
12
  editMode?: boolean | undefined;
@@ -22,6 +23,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
22
23
  data: FilterResponse<Record<string, InputValueType>> | null;
23
24
  timeZone: string | null;
24
25
  loading: boolean;
26
+ initialLoad: boolean;
25
27
  options: Partial<GridConfig>;
26
28
  searchValue: string;
27
29
  editMode?: boolean | undefined;
@@ -35,22 +37,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
35
37
  }, {
36
38
  editMode: boolean;
37
39
  }, {}>, Readonly<{
38
- [key: string]: (props: import("../types").CellSlot & Partial<{
39
- edited: boolean;
40
- listEntries: import("../../index.js").ComboBoxItem[];
41
- cellFocused: () => void;
42
- }> & {
43
- disabled: boolean;
44
- }) => any;
40
+ [key: string]: (props: EditCellSlot) => any;
45
41
  noData: () => any;
46
42
  }> & {
47
- [key: string]: (props: import("../types").CellSlot & Partial<{
48
- edited: boolean;
49
- listEntries: import("../../index.js").ComboBoxItem[];
50
- cellFocused: () => void;
51
- }> & {
52
- disabled: boolean;
53
- }) => any;
43
+ [key: string]: (props: EditCellSlot) => any;
54
44
  noData: () => any;
55
45
  }>;
56
46
  export default _default;
@@ -2,6 +2,7 @@ import type { FilterResponse, FilterRequest } from '../types';
2
2
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
3
3
  request: FilterRequest;
4
4
  loading: boolean;
5
+ initialLoad: boolean;
5
6
  showUnsavedChangesWarning: boolean;
6
7
  data?: FilterResponse<unknown> | null | undefined;
7
8
  }>, {
@@ -11,6 +12,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
11
12
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
12
13
  request: FilterRequest;
13
14
  loading: boolean;
15
+ initialLoad: boolean;
14
16
  showUnsavedChangesWarning: boolean;
15
17
  data?: FilterResponse<unknown> | null | undefined;
16
18
  }>, {
@@ -2,6 +2,7 @@ import type { QuickDateName } from '../../calendar/quick-dates';
2
2
  import type { FilterArg, GridColumn, GridConfig } from '../types';
3
3
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
4
4
  loading: boolean;
5
+ initialLoad: boolean;
5
6
  filter: FilterArg[] | undefined;
6
7
  column: GridColumn;
7
8
  timeZone: string | null;
@@ -13,6 +14,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
13
14
  "perform-data-request": () => void;
14
15
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
15
16
  loading: boolean;
17
+ initialLoad: boolean;
16
18
  filter: FilterArg[] | undefined;
17
19
  column: GridColumn;
18
20
  timeZone: string | null;
@@ -3,6 +3,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
3
3
  request: FilterRequest;
4
4
  columns: GridColumn[];
5
5
  loading: boolean;
6
+ initialLoad: boolean;
6
7
  filterPanelOpen: boolean;
7
8
  timeZone: string | null;
8
9
  headerDisplayTimezone: string | null;
@@ -15,6 +16,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
15
16
  request: FilterRequest;
16
17
  columns: GridColumn[];
17
18
  loading: boolean;
19
+ initialLoad: boolean;
18
20
  filterPanelOpen: boolean;
19
21
  timeZone: string | null;
20
22
  headerDisplayTimezone: string | null;
@@ -9,6 +9,7 @@ export interface GridConfig {
9
9
  disableUnsavedChangesWarning: boolean;
10
10
  hidePagination: boolean;
11
11
  hideGridMobileView: boolean;
12
+ forceEditMode: boolean;
12
13
  }
13
14
  export declare const gridColumnTypes: readonly ["string", "boolean", "number", "date", "datetime", "dateRange", "list", "slot"];
14
15
  export type GridColumnType = typeof gridColumnTypes[number];
@@ -33,6 +34,7 @@ export interface GridColumn<T = Record<string, unknown>> {
33
34
  editable?: boolean;
34
35
  width?: number;
35
36
  searchable?: boolean;
37
+ precision?: number;
36
38
  }
37
39
  export interface FilterMethod {
38
40
  method: FilterMethodType;
@@ -1,11 +1,9 @@
1
1
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
2
2
  pageSize: number;
3
3
  columnCount: number;
4
- gridLiteColumnCss: string;
5
4
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
6
5
  pageSize: number;
7
6
  columnCount: number;
8
- gridLiteColumnCss: string;
9
7
  }>>>, {}, {}>;
10
8
  export default _default;
11
9
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -3,7 +3,6 @@ import type { InputValueType } from '../../input/types';
3
3
  import type { GridLiteColumn, GridLiteConfig, GridSlot } from '../types';
4
4
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
5
5
  columns: GridLiteColumn<Record<string, unknown>>[];
6
- gridLiteColumnCss: string;
7
6
  options: Partial<GridLiteConfig>;
8
7
  gridId: string;
9
8
  data?: FilterResponse<Record<string, InputValueType>> | null | undefined;
@@ -17,7 +16,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
17
16
  timeZone: null;
18
17
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
19
18
  columns: GridLiteColumn<Record<string, unknown>>[];
20
- gridLiteColumnCss: string;
21
19
  options: Partial<GridLiteConfig>;
22
20
  gridId: string;
23
21
  data?: FilterResponse<Record<string, InputValueType>> | null | undefined;
@@ -3,14 +3,12 @@ import type { GridLiteColumn, GridSlot } from '../types';
3
3
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<{
4
4
  row: Record<string, InputValueType>;
5
5
  columns: GridLiteColumn<Record<string, unknown>>[];
6
- gridLiteColumnCss: string;
7
6
  timeZone: string | null;
8
7
  isSmallGrid: boolean;
9
8
  gridId: string;
10
9
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
11
10
  row: Record<string, InputValueType>;
12
11
  columns: GridLiteColumn<Record<string, unknown>>[];
13
- gridLiteColumnCss: string;
14
12
  timeZone: string | null;
15
13
  isSmallGrid: boolean;
16
14
  gridId: string;
@@ -8,10 +8,6 @@ declare const _default: import("vue").DefineComponent<{
8
8
  type: import("vue").PropType<GridLiteColumn<Record<string, unknown>>[]>;
9
9
  required: true;
10
10
  };
11
- gridLiteColumnCss: {
12
- type: import("vue").PropType<string>;
13
- required: true;
14
- };
15
11
  loading: {
16
12
  type: import("vue").PropType<boolean>;
17
13
  required: true;
@@ -34,10 +30,6 @@ declare const _default: import("vue").DefineComponent<{
34
30
  type: import("vue").PropType<GridLiteColumn<Record<string, unknown>>[]>;
35
31
  required: true;
36
32
  };
37
- gridLiteColumnCss: {
38
- type: import("vue").PropType<string>;
39
- required: true;
40
- };
41
33
  loading: {
42
34
  type: import("vue").PropType<boolean>;
43
35
  required: true;
@@ -21,8 +21,10 @@ export interface GridLiteColumn<T = Record<string, unknown>> {
21
21
  listEntries?: GridColumnListEntry[];
22
22
  format?: StringFormat | DateFormat | NumberFormat | ExtendedNumberFormat;
23
23
  maxLength?: number;
24
+ width?: number;
24
25
  sortable?: boolean;
25
26
  visible?: boolean;
27
+ precision?: number;
26
28
  }
27
29
  export interface GridSlot<T = any> {
28
30
  column: GridLiteColumn<Record<string, unknown>>;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,43 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
2
+ words?: number | undefined;
3
+ rows?: number | undefined;
4
+ }>, {
5
+ words: number;
6
+ rows: number;
7
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
8
+ words?: number | undefined;
9
+ rows?: number | undefined;
10
+ }>, {
11
+ words: number;
12
+ rows: number;
13
+ }>>>, {
14
+ words: number;
15
+ rows: number;
16
+ }, {}>, Readonly<{
17
+ default(): any;
18
+ }> & {
19
+ default(): any;
20
+ }>;
21
+ export default _default;
22
+ type __VLS_WithDefaults<P, D> = {
23
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
24
+ default: D[K];
25
+ }> : P[K];
26
+ };
27
+ type __VLS_Prettify<T> = {
28
+ [K in keyof T]: T[K];
29
+ } & {};
30
+ type __VLS_WithTemplateSlots<T, S> = T & {
31
+ new (): {
32
+ $slots: S;
33
+ };
34
+ };
35
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
36
+ type __VLS_TypePropsToOption<T> = {
37
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
38
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
39
+ } : {
40
+ type: import('vue').PropType<T[K]>;
41
+ required: true;
42
+ };
43
+ };
@@ -0,0 +1,3 @@
1
+ export { default as clUiSkeletonButton } from './cl-ui-skeleton-button.vue';
2
+ export { default as clUiSkeletonInput } from './cl-ui-skeleton-input.vue';
3
+ export { default as clUiSkeletonText } from './cl-ui-skeleton-text.vue';
@@ -7,9 +7,11 @@ declare function setTab(id?: number): void;
7
7
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
8
8
  colour?: "default" | "primary" | "secondary" | "danger" | "blue" | undefined;
9
9
  layout?: "horizontal" | "vertical" | undefined;
10
+ overflowHidden?: boolean | undefined;
10
11
  }>, {
11
12
  colour: string;
12
13
  layout: string;
14
+ overflowHidden: boolean;
13
15
  }>, {
14
16
  setTab: typeof setTab;
15
17
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -17,14 +19,17 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
17
19
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
18
20
  colour?: "default" | "primary" | "secondary" | "danger" | "blue" | undefined;
19
21
  layout?: "horizontal" | "vertical" | undefined;
22
+ overflowHidden?: boolean | undefined;
20
23
  }>, {
21
24
  colour: string;
22
25
  layout: string;
26
+ overflowHidden: boolean;
23
27
  }>>> & {
24
28
  "onTab-opened"?: ((args_0: number) => any) | undefined;
25
29
  }, {
26
30
  colour: "default" | "primary" | "secondary" | "danger" | "blue";
27
31
  layout: "horizontal" | "vertical";
32
+ overflowHidden: boolean;
28
33
  }, {}>, Readonly<{
29
34
  headings(props: {
30
35
  isTabOpen: (id: number) => boolean;
@@ -0,0 +1,30 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<{
2
+ id: string;
3
+ isSelected: boolean;
4
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
5
+ click: () => void;
6
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
7
+ id: string;
8
+ isSelected: boolean;
9
+ }>>> & {
10
+ onClick?: (() => any) | undefined;
11
+ }, {}, {}>, Readonly<{
12
+ default: () => any;
13
+ }> & {
14
+ default: () => any;
15
+ }>;
16
+ export default _default;
17
+ type __VLS_WithTemplateSlots<T, S> = T & {
18
+ new (): {
19
+ $slots: S;
20
+ };
21
+ };
22
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
23
+ type __VLS_TypePropsToOption<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
+ };