admins-components 1.2.3 → 1.2.4
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/CheckBox.d.ts +2 -0
- package/dist/CheckBoxList.d.ts +8 -0
- package/dist/DropDown.d.ts +7 -0
- package/dist/DropDownCallBack.d.ts +8 -0
- package/dist/DropDownMenu.d.ts +7 -0
- package/dist/FilterCompact.d.ts +6 -0
- package/dist/FilterControl.d.ts +40 -0
- package/dist/IconButton.d.ts +2 -0
- package/dist/PaginatorControl.d.ts +8 -0
- package/dist/RadioButton.d.ts +2 -0
- package/dist/RadioButtonGroup.d.ts +7 -0
- package/dist/SpinningProgress.d.ts +2 -0
- package/dist/TableToList.d.ts +35 -0
- package/dist/TextListBox.d.ts +9 -0
- package/dist/ToastComponent.d.ts +9 -0
- package/dist/ToastWrapper.d.ts +2 -0
- package/dist/index.d.ts +1 -0
- package/package.json +3 -1
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { DropDownItem } from './DropDown';
|
|
3
|
+
export interface IFilterItem {
|
|
4
|
+
type: "text" | "date" | "dropdown";
|
|
5
|
+
key: string;
|
|
6
|
+
filtered: (key: string, value: any) => any;
|
|
7
|
+
defaultv?: string | undefined;
|
|
8
|
+
}
|
|
9
|
+
export declare class FilterText implements IFilterItem {
|
|
10
|
+
key: string;
|
|
11
|
+
placeholder: string;
|
|
12
|
+
filtered: (key: string, value: string) => any;
|
|
13
|
+
constructor(key: string, placeholder: string, filtered: (key: string, value: string) => any);
|
|
14
|
+
type: "text";
|
|
15
|
+
}
|
|
16
|
+
export declare class FilterDropDown implements IFilterItem {
|
|
17
|
+
key: string;
|
|
18
|
+
label: string;
|
|
19
|
+
options: Ref<DropDownItem[]>;
|
|
20
|
+
filterevent: boolean | undefined;
|
|
21
|
+
onfiltered: undefined | ((v: string) => any);
|
|
22
|
+
filtered: (key: string, value: string) => any;
|
|
23
|
+
constructor(key: string, label: string, options: Ref<DropDownItem[]>, filterevent: boolean | undefined, onfiltered: undefined | ((v: string) => any), filtered: (key: string, value: string) => any);
|
|
24
|
+
type: "dropdown";
|
|
25
|
+
}
|
|
26
|
+
export declare class FilterDate implements IFilterItem {
|
|
27
|
+
key: string;
|
|
28
|
+
label: string;
|
|
29
|
+
filtered: (key: string, value: FilterDateFilter) => any;
|
|
30
|
+
defFrom?: string | undefined;
|
|
31
|
+
defTill?: string | undefined;
|
|
32
|
+
constructor(key: string, label: string, filtered: (key: string, value: FilterDateFilter) => any, defFrom?: string | undefined, defTill?: string | undefined);
|
|
33
|
+
type: "date";
|
|
34
|
+
}
|
|
35
|
+
export interface FilterDateFilter {
|
|
36
|
+
from: string;
|
|
37
|
+
untill: string;
|
|
38
|
+
}
|
|
39
|
+
declare const _default: any;
|
|
40
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { IFilterItem } from './FilterControl';
|
|
3
|
+
import { PaginatorSettings } from './PaginatorControl';
|
|
4
|
+
export interface TableToListConfig {
|
|
5
|
+
selectableId?: string | undefined;
|
|
6
|
+
columns: Column[];
|
|
7
|
+
smColCount: number;
|
|
8
|
+
sortEnabled: boolean;
|
|
9
|
+
actions?: Action[] | undefined;
|
|
10
|
+
actionHeader?: string | undefined;
|
|
11
|
+
paginatorSettings?: Ref<PaginatorSettings> | undefined;
|
|
12
|
+
}
|
|
13
|
+
export interface Column {
|
|
14
|
+
visible?: boolean | undefined;
|
|
15
|
+
label: string;
|
|
16
|
+
filter: IFilterItem | undefined;
|
|
17
|
+
filterIcon: string | undefined;
|
|
18
|
+
property: string;
|
|
19
|
+
sort?: undefined | Sort;
|
|
20
|
+
converter: undefined | ((v: any, item: any) => any);
|
|
21
|
+
}
|
|
22
|
+
export interface Sort {
|
|
23
|
+
label: string;
|
|
24
|
+
icon: string;
|
|
25
|
+
active: Ref<boolean> | undefined;
|
|
26
|
+
callback: (property: string) => any;
|
|
27
|
+
}
|
|
28
|
+
export interface Action {
|
|
29
|
+
icon: string;
|
|
30
|
+
label: string;
|
|
31
|
+
enabled: (item: any) => boolean;
|
|
32
|
+
command: (item: any) => any;
|
|
33
|
+
}
|
|
34
|
+
declare const _default: any;
|
|
35
|
+
export default _default;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "admins-components",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"module": "./dist/admins-components.js",
|
|
10
10
|
"types": "./dist/index.d.ts",
|
|
11
11
|
"exports": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
12
13
|
"import": "./dist/admins-components.es.js",
|
|
13
14
|
"require": "./dist/admins-components.cjs.js"
|
|
14
15
|
},
|
|
@@ -19,6 +20,7 @@
|
|
|
19
20
|
},
|
|
20
21
|
"dependencies": {
|
|
21
22
|
"rollup-plugin-typescript2": "^0.36.0",
|
|
23
|
+
"vite-plugin-dts": "^4.5.3",
|
|
22
24
|
"vue": "^3.5.13"
|
|
23
25
|
},
|
|
24
26
|
"devDependencies": {
|