@fkui/vue-labs 6.39.0 → 6.40.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/cjs/index.cjs.js +519 -489
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/esm/index.esm.js +520 -490
- package/dist/esm/index.esm.js.map +1 -1
- package/dist/types/index.d.ts +8 -14
- package/dist/types/tsdoc-metadata.json +1 -1
- package/package.json +10 -10
package/dist/types/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { ComponentProvideOptions } from 'vue';
|
|
|
5
5
|
import { DefineComponent } from 'vue';
|
|
6
6
|
import { ExtractPropTypes } from 'vue';
|
|
7
7
|
import { FormatFunction } from '@fkui/vue';
|
|
8
|
+
import { HTMLAttributes } from 'vue';
|
|
8
9
|
import { IPopupErrorData } from '@fkui/vue';
|
|
9
10
|
import { MaybeRef } from 'vue';
|
|
10
11
|
import { ParseFunction } from '@fkui/vue';
|
|
@@ -27,6 +28,10 @@ declare const __VLS_export: <T, KeyAttribute extends keyof T = keyof T, Expandab
|
|
|
27
28
|
rows: T[];
|
|
28
29
|
keyAttribute?: KeyAttribute;
|
|
29
30
|
expandableAttribute?: ExpandableAttribute;
|
|
31
|
+
/**
|
|
32
|
+
* Optional callback for setting classes on table rows (`<tr>` element).
|
|
33
|
+
*/
|
|
34
|
+
rowClass?: (row: T) => HTMLAttributes["class"];
|
|
30
35
|
striped?: boolean;
|
|
31
36
|
disableDividers?: boolean;
|
|
32
37
|
selectable?: "single" | "multi";
|
|
@@ -602,7 +607,7 @@ declare type __VLS_WithSlots<T, S> = T & {
|
|
|
602
607
|
/**
|
|
603
608
|
* @public
|
|
604
609
|
*/
|
|
605
|
-
export declare const baseTypes: readonly ["anchor", "button", "checkbox", "
|
|
610
|
+
export declare const baseTypes: readonly ["anchor", "button", "checkbox", "render", "rowheader", "select"];
|
|
606
611
|
|
|
607
612
|
/**
|
|
608
613
|
* @public
|
|
@@ -783,7 +788,7 @@ export declare function splitHoursMinutes(valueString: string, extraForgiving?:
|
|
|
783
788
|
/**
|
|
784
789
|
* @public
|
|
785
790
|
*/
|
|
786
|
-
export declare type TableColumn<T, K extends keyof T = keyof T> = TableColumnSimple<T, K> | TableColumnCheckbox<T, K> |
|
|
791
|
+
export declare type TableColumn<T, K extends keyof T = keyof T> = TableColumnSimple<T, K> | TableColumnCheckbox<T, K> | TableColumnRowHeader<T, K> | TableColumnText<T, K> | TableColumnNumber<T, K> | TableColumnAnchor<T, K> | TableColumnButton<T, K> | TableColumnRender<T, K> | TableColumnSelect<T, K> | TableColumnMenu<T>;
|
|
787
792
|
|
|
788
793
|
/**
|
|
789
794
|
* @public
|
|
@@ -804,6 +809,7 @@ export declare interface TableColumnBase {
|
|
|
804
809
|
header: string | Readonly<Ref<string>>;
|
|
805
810
|
description?: string | Readonly<Ref<string | null>>;
|
|
806
811
|
size?: TableColumnSize | Readonly<Ref<TableColumnSize | null>>;
|
|
812
|
+
sort?: boolean;
|
|
807
813
|
enabled?: MaybeRef<boolean>;
|
|
808
814
|
}
|
|
809
815
|
|
|
@@ -831,7 +837,6 @@ export declare interface TableColumnCheckbox<T, K extends keyof T> extends Table
|
|
|
831
837
|
label?(this: void, row: T): string;
|
|
832
838
|
checked?(this: void, row: T): boolean;
|
|
833
839
|
update?(this: void, row: T, newValue: boolean, oldValue: boolean): void;
|
|
834
|
-
editable?: boolean | ((this: void, row: T) => boolean);
|
|
835
840
|
}
|
|
836
841
|
|
|
837
842
|
/**
|
|
@@ -866,17 +871,6 @@ export declare interface TableColumnNumber<T, K extends keyof T> extends TableCo
|
|
|
866
871
|
formatter?(this: void, value: number | string): string | undefined;
|
|
867
872
|
}
|
|
868
873
|
|
|
869
|
-
/**
|
|
870
|
-
* @public
|
|
871
|
-
*/
|
|
872
|
-
export declare interface TableColumnRadio<T, K extends keyof T> extends TableColumnBase {
|
|
873
|
-
type: "radio";
|
|
874
|
-
key?: K;
|
|
875
|
-
label?(this: void, row: T): string;
|
|
876
|
-
checked?(this: void, row: T): boolean;
|
|
877
|
-
update?(this: void, row: T, newValue: boolean, oldValue: boolean): void;
|
|
878
|
-
}
|
|
879
|
-
|
|
880
874
|
/**
|
|
881
875
|
* @public
|
|
882
876
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fkui/vue-labs",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.40.0",
|
|
4
4
|
"description": "Experimental and unstable FKUI components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fkui",
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
"exports": {
|
|
20
20
|
".": {
|
|
21
21
|
"types": "./dist/types/index.d.ts",
|
|
22
|
-
"
|
|
23
|
-
"
|
|
22
|
+
"import": "./dist/esm/index.esm.js",
|
|
23
|
+
"require": "./dist/cjs/index.cjs.js"
|
|
24
24
|
},
|
|
25
25
|
"./cypress": {
|
|
26
26
|
"types": "./dist/types/cypress.d.ts",
|
|
27
|
-
"
|
|
28
|
-
"
|
|
27
|
+
"import": "./dist/esm/cypress.esm.js",
|
|
28
|
+
"require": "./dist/cjs/cypress.cjs.js"
|
|
29
29
|
},
|
|
30
30
|
"./style.css": "./dummy.css",
|
|
31
31
|
"./htmlvalidate": "./htmlvalidate/index.cjs"
|
|
@@ -59,10 +59,10 @@
|
|
|
59
59
|
"unit:watch": "jest --watch"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
|
-
"@fkui/date": "^6.
|
|
63
|
-
"@fkui/design": "^6.
|
|
64
|
-
"@fkui/logic": "^6.
|
|
65
|
-
"@fkui/vue": "^6.
|
|
62
|
+
"@fkui/date": "^6.40.0",
|
|
63
|
+
"@fkui/design": "^6.40.0",
|
|
64
|
+
"@fkui/logic": "^6.40.0",
|
|
65
|
+
"@fkui/vue": "^6.40.0",
|
|
66
66
|
"html-validate": ">= 7.9.0",
|
|
67
67
|
"vue": "^3.5.0"
|
|
68
68
|
},
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"node": ">= 20",
|
|
76
76
|
"npm": ">= 7"
|
|
77
77
|
},
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "fffdc47340a925f20f586117a1a5bbb2e2ec8a48"
|
|
79
79
|
}
|