@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.
@@ -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", "radio", "render", "rowheader", "select"];
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> | TableColumnRadio<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>;
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
  */
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.57.6"
8
+ "packageVersion": "7.57.7"
9
9
  }
10
10
  ]
11
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fkui/vue-labs",
3
- "version": "6.39.0",
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
- "require": "./dist/cjs/index.cjs.js",
23
- "import": "./dist/esm/index.esm.js"
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
- "require": "./dist/cjs/cypress.cjs.js",
28
- "import": "./dist/esm/cypress.esm.js"
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.39.0",
63
- "@fkui/design": "^6.39.0",
64
- "@fkui/logic": "^6.39.0",
65
- "@fkui/vue": "^6.39.0",
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": "dcb4ae0482dae1d80806b45900c8b80771de7372"
78
+ "gitHead": "fffdc47340a925f20f586117a1a5bbb2e2ec8a48"
79
79
  }