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.
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ export default _default;
@@ -0,0 +1,8 @@
1
+ export interface CheckBoxListItem {
2
+ id: string;
3
+ label: string;
4
+ checked: boolean;
5
+ childrend: CheckBoxListItem[];
6
+ }
7
+ declare const _default: any;
8
+ export default _default;
@@ -0,0 +1,7 @@
1
+ export interface DropDownItem {
2
+ icon?: string;
3
+ label: string;
4
+ id: string;
5
+ }
6
+ declare const _default: any;
7
+ export default _default;
@@ -0,0 +1,8 @@
1
+ export interface DropDownCallBackItem {
2
+ icon?: string;
3
+ label: string;
4
+ value: string;
5
+ callback: (property: string) => any;
6
+ }
7
+ declare const _default: any;
8
+ export default _default;
@@ -0,0 +1,7 @@
1
+ export interface DropDownMenuItem {
2
+ icon: string;
3
+ label: string;
4
+ command: (item: any) => any;
5
+ }
6
+ declare const _default: any;
7
+ export default _default;
@@ -0,0 +1,6 @@
1
+ export interface FilterDateFilter {
2
+ from: string;
3
+ untill: string;
4
+ }
5
+ declare const _default: any;
6
+ export default _default;
@@ -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,2 @@
1
+ declare const _default: any;
2
+ export default _default;
@@ -0,0 +1,8 @@
1
+ export interface PaginatorSettings {
2
+ total: number;
3
+ pagesize: number;
4
+ page: number;
5
+ sizes: number[];
6
+ }
7
+ declare const _default: any;
8
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ export default _default;
@@ -0,0 +1,7 @@
1
+ export interface RadioButtonGroupItem {
2
+ label: string;
3
+ id: any;
4
+ selected?: boolean;
5
+ }
6
+ declare const _default: any;
7
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ 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;
@@ -0,0 +1,9 @@
1
+ export interface TextListBoxItem {
2
+ id: string;
3
+ label: string;
4
+ hideDelete?: boolean;
5
+ showId?: boolean;
6
+ childrend: TextListBoxItem[] | undefined;
7
+ }
8
+ declare const _default: any;
9
+ export default _default;
@@ -0,0 +1,9 @@
1
+ export interface Toast {
2
+ title: string;
3
+ message: string;
4
+ type: "info" | "success" | "warning" | "error";
5
+ id?: Date;
6
+ displayDuration?: number;
7
+ }
8
+ declare const _default: any;
9
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ export default _default;
@@ -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",
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": {