@citruslime/ui 2.0.2-beta.8 → 2.1.0-beta.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.
- package/dist/citrus-lime-ui.es.js +2131 -1995
- package/dist/citrus-lime-ui.umd.js +2 -2
- package/dist/components/accordion/{cl-ui-accordion.vue.d.ts → cl-ui-accordion.d.ts} +5 -6
- package/dist/components/accordion/header/cl-ui-accordion-header.d.ts +3 -0
- package/dist/components/accordion/index.d.ts +3 -3
- package/dist/components/accordion/item/{cl-ui-accordion-item.vue.d.ts → cl-ui-accordion-item.d.ts} +5 -7
- package/dist/components/app/{cl-ui-app.vue.d.ts → cl-ui-app.d.ts} +8 -6
- package/dist/components/app/index.d.ts +1 -1
- package/dist/components/button/{cl-ui-button.vue.d.ts → cl-ui-button.d.ts} +5 -4
- package/dist/components/button/index.d.ts +1 -1
- package/dist/components/button/types.d.ts +2 -2
- package/dist/components/calendar/cl-ui-calendar.d.ts +3 -0
- package/dist/components/calendar/index.d.ts +1 -1
- package/dist/components/calendar/types.d.ts +1 -1
- package/dist/components/card/{cl-ui-card.vue.d.ts → cl-ui-card.d.ts} +3 -2
- package/dist/components/card/index.d.ts +1 -1
- package/dist/components/card/types.d.ts +1 -1
- package/dist/components/combo-box/cl-ui-combo-box.d.ts +2372 -0
- package/dist/components/combo-box/index.d.ts +1 -1
- package/dist/components/combo-box/search-container/cl-ui-combo-box-search.d.ts +868 -0
- package/dist/components/combo-box/search-container/header/{cl-ui-combo-box-header.vue.d.ts → cl-ui-combo-box-header.d.ts} +4 -3
- package/dist/components/combo-box/search-container/selectable/{cl-ui-combo-box-selectable.vue.d.ts → cl-ui-combo-box-selectable.d.ts} +8 -14
- package/dist/components/footer/cl-ui-footer.d.ts +3 -0
- package/dist/components/footer/index.d.ts +1 -1
- package/dist/components/grid/body/cl-ui-grid-body.d.ts +874 -0
- package/dist/components/grid/body/cl-ui-grid-cell-value.d.ts +643 -0
- package/dist/components/grid/body/cl-ui-grid-cell.d.ts +687 -0
- package/dist/components/grid/body/cl-ui-grid-row.d.ts +724 -0
- package/dist/components/grid/cl-ui-grid.d.ts +3157 -0
- package/dist/components/grid/footer/cl-ui-grid-footer.d.ts +666 -0
- package/dist/components/grid/header/cl-ui-grid-action-row.d.ts +102 -0
- package/dist/components/grid/header/cl-ui-grid-filter.d.ts +722 -0
- package/dist/components/grid/header/cl-ui-grid-header.d.ts +877 -0
- package/dist/components/grid/header/cl-ui-grid-method-selector.d.ts +57 -0
- package/dist/components/grid/{filter → header}/filter-methods.d.ts +0 -0
- package/dist/components/grid/index.d.ts +1 -1
- package/dist/components/grid/types.d.ts +11 -3
- package/dist/components/grid/view-manager/cl-ui-grid-view-manager.d.ts +694 -0
- package/dist/components/header/cl-ui-header.d.ts +5 -0
- package/dist/components/header/index.d.ts +1 -1
- package/dist/components/header/menu/{cl-ui-header-menu.vue.d.ts → cl-ui-header-menu.d.ts} +11 -3
- package/dist/components/header/menu/index.d.ts +1 -1
- package/dist/components/input/cl-ui-input.d.ts +522 -0
- package/dist/components/input/index.d.ts +1 -1
- package/dist/components/input/types.d.ts +2 -1
- package/dist/components/input/utils.d.ts +8 -0
- package/dist/components/language-switcher/cl-ui-language-switcher.d.ts +49 -0
- package/dist/components/language-switcher/index.d.ts +1 -1
- package/dist/components/loading-spinner/cl-ui-loading-spinner.d.ts +3 -0
- package/dist/components/loading-spinner/index.d.ts +1 -1
- package/dist/components/login/cl-ui-login.d.ts +715 -0
- package/dist/components/login/index.d.ts +1 -1
- package/dist/components/modal/{cl-ui-modal.vue.d.ts → cl-ui-modal.d.ts} +5 -9
- package/dist/components/modal/index.d.ts +1 -1
- package/dist/components/modal/types.d.ts +2 -2
- package/dist/components/navigation/cl-ui-navigation.d.ts +18 -0
- package/dist/components/navigation/group/cl-ui-navigation-group.d.ts +13 -0
- package/dist/components/navigation/icon/cl-ui-navigation-icon.d.ts +21 -0
- package/dist/components/navigation/index.d.ts +5 -5
- package/dist/components/navigation/item/cl-ui-navigation-item.d.ts +3 -0
- package/dist/components/navigation/section/cl-ui-navigation-section.d.ts +3 -0
- package/dist/components/notification/{cl-ui-notification.vue.d.ts → cl-ui-notification.d.ts} +5 -4
- package/dist/components/notification/index.d.ts +1 -1
- package/dist/components/slider/{cl-ui-slider.vue.d.ts → cl-ui-slider.d.ts} +22 -27
- package/dist/components/slider/index.d.ts +1 -0
- package/dist/components/tab/{cl-ui-tab.vue.d.ts → cl-ui-tab.d.ts} +8 -11
- package/dist/components/tab/content/cl-ui-tab-content.d.ts +3 -0
- package/dist/components/tab/header/{cl-ui-tab-header.vue.d.ts → cl-ui-tab-header.d.ts} +8 -13
- package/dist/components/tab/index.d.ts +3 -3
- package/dist/components/tab/types.d.ts +2 -2
- package/dist/composables/notification.d.ts +12 -3
- package/dist/style.css +1 -1
- package/dist/utils/i18n/config.d.ts +2 -1
- package/dist/utils/i18n/types.d.ts +0 -3
- package/package.json +6 -6
- package/dist/components/accordion/header/cl-ui-accordion-header.vue.d.ts +0 -2
- package/dist/components/calendar/cl-ui-calendar.vue.d.ts +0 -2
- package/dist/components/combo-box/cl-ui-combo-box.vue.d.ts +0 -573
- package/dist/components/combo-box/search-container/cl-ui-combo-box-search.vue.d.ts +0 -270
- package/dist/components/footer/cl-ui-footer.vue.d.ts +0 -2
- package/dist/components/grid/cell/cl-ui-grid-cell.vue.d.ts +0 -68
- package/dist/components/grid/cl-ui-grid.vue.d.ts +0 -517
- package/dist/components/grid/filter/cl-ui-grid-filter.vue.d.ts +0 -66
- package/dist/components/grid/footer/cl-ui-grid-footer.vue.d.ts +0 -56
- package/dist/components/grid/header/cl-ui-grid-header.vue.d.ts +0 -198
- package/dist/components/grid/view-manager/cl-ui-grid-view-manager.vue.d.ts +0 -83
- package/dist/components/header/cl-ui-header.vue.d.ts +0 -4
- package/dist/components/input/cl-ui-input.vue.d.ts +0 -2
- package/dist/components/language-switcher/cl-ui-language-switcher.vue.d.ts +0 -37
- package/dist/components/loading-spinner/cl-ui-loading-spinner.vue.d.ts +0 -2
- package/dist/components/login/cl-ui-login.vue.d.ts +0 -101
- package/dist/components/navigation/cl-ui-navigation.vue.d.ts +0 -11
- package/dist/components/navigation/group/cl-ui-navigation-group.vue.d.ts +0 -12
- package/dist/components/navigation/icon/cl-ui-navigation-icon.vue.d.ts +0 -20
- package/dist/components/navigation/item/cl-ui-navigation-item.vue.d.ts +0 -2
- package/dist/components/navigation/section/cl-ui-navigation-section.vue.d.ts +0 -2
- package/dist/components/notification/types.d.ts +0 -9
- package/dist/components/tab/content/cl-ui-tab-content.vue.d.ts +0 -2
- package/dist/env.d.ts +0 -1
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { LocaleMessage, RemoveIndexSignature } from '@intlify/core-base';
|
|
2
|
+
import type { ComposerTranslation, VueMessageType, LocaleMessageValue } from 'vue-i18n';
|
|
3
|
+
import type { DefineComponent, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
4
|
+
import { type FilterMethodType, type FilterArg, type FilterMethod } from '../types';
|
|
5
|
+
declare const _sfc_main: DefineComponent<{
|
|
6
|
+
filter: {
|
|
7
|
+
type: null;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
column: {
|
|
11
|
+
type: null;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
defaultOperation: {
|
|
15
|
+
type: null;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
firstHalf: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
required: false;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
}, {
|
|
24
|
+
props: any;
|
|
25
|
+
emit: (e: 'update:filter', value: FilterArg) => void;
|
|
26
|
+
t: ComposerTranslation<{
|
|
27
|
+
[x: string]: LocaleMessage<VueMessageType>;
|
|
28
|
+
}, string, RemoveIndexSignature<{
|
|
29
|
+
[x: string]: LocaleMessageValue<VueMessageType>;
|
|
30
|
+
}>, never, string, string>;
|
|
31
|
+
allowedFilterMethods: ComputedRef<FilterMethod[]>;
|
|
32
|
+
currentFilterMethod: ComputedRef<FilterMethod | undefined>;
|
|
33
|
+
setFilterMethod: (filterMethod: FilterMethodType) => void;
|
|
34
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:filter"[], "update:filter", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
35
|
+
filter: {
|
|
36
|
+
type: null;
|
|
37
|
+
required: true;
|
|
38
|
+
};
|
|
39
|
+
column: {
|
|
40
|
+
type: null;
|
|
41
|
+
required: true;
|
|
42
|
+
};
|
|
43
|
+
defaultOperation: {
|
|
44
|
+
type: null;
|
|
45
|
+
required: true;
|
|
46
|
+
};
|
|
47
|
+
firstHalf: {
|
|
48
|
+
type: BooleanConstructor;
|
|
49
|
+
required: false;
|
|
50
|
+
default: boolean;
|
|
51
|
+
};
|
|
52
|
+
}>> & {
|
|
53
|
+
"onUpdate:filter"?: ((...args: any[]) => any) | undefined;
|
|
54
|
+
}, {
|
|
55
|
+
firstHalf: boolean;
|
|
56
|
+
}>;
|
|
57
|
+
export default _sfc_main;
|
|
File without changes
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as clUiGrid } from
|
|
1
|
+
export { default as clUiGrid } from "./cl-ui-grid";
|
|
2
2
|
export * from './types';
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { DateFormat, NumberFormat } from '../../utils';
|
|
2
|
+
export interface GridConfig {
|
|
3
|
+
rowSelectionEnabled: boolean;
|
|
4
|
+
hideViewManager: boolean;
|
|
5
|
+
}
|
|
2
6
|
export declare const gridColumnTypes: readonly ["string", "boolean", "number", "date", "datetime", "slot"];
|
|
3
|
-
export
|
|
7
|
+
export type GridColumnType = typeof gridColumnTypes[number];
|
|
4
8
|
export interface GridColumn {
|
|
5
9
|
name: string;
|
|
6
10
|
field?: string;
|
|
@@ -36,7 +40,7 @@ export declare function isGridColumn(objectToTest: GridColumn): boolean;
|
|
|
36
40
|
*/
|
|
37
41
|
export declare function isGridColumnArray(arrayToTest: GridColumn[]): boolean;
|
|
38
42
|
export declare const stringFormats: readonly ["ellipsis"];
|
|
39
|
-
export
|
|
43
|
+
export type StringFormat = typeof stringFormats[number];
|
|
40
44
|
export declare enum FilterOperation {
|
|
41
45
|
CONTAINS = 0,
|
|
42
46
|
NOT_CONTAINS = 1,
|
|
@@ -50,7 +54,7 @@ export declare enum FilterOperation {
|
|
|
50
54
|
EQUAL_OR_LESS_THAN = 9
|
|
51
55
|
}
|
|
52
56
|
export declare const filterMethodTypes: readonly ["equal", "notequal", "contains", "notcontains", "lessthan", "greaterthan", "startswith", "endswith", "equalorlessthan", "equalorgreaterthan"];
|
|
53
|
-
export
|
|
57
|
+
export type FilterMethodType = typeof filterMethodTypes[number];
|
|
54
58
|
export interface FilterArg {
|
|
55
59
|
filterOnColumn: string;
|
|
56
60
|
filterMethod?: FilterMethodType;
|
|
@@ -86,6 +90,10 @@ export declare function isFilterRequest(objectToTest: FilterRequest): boolean;
|
|
|
86
90
|
* @returns True if the object is a FilterResponse; false otherwise.
|
|
87
91
|
*/
|
|
88
92
|
export declare function isFilterResponse<T>(objectToTest: FilterResponse<T>, resultValidator: (resultToTest: T) => boolean): boolean;
|
|
93
|
+
export interface GridCellUpdateEvent {
|
|
94
|
+
field?: string;
|
|
95
|
+
value: unknown;
|
|
96
|
+
}
|
|
89
97
|
export interface GridUpdateModel {
|
|
90
98
|
index: number;
|
|
91
99
|
record: Record<string, unknown>;
|