@fkui/vue-labs 6.41.0 → 6.43.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.
@@ -34,4 +34,7 @@
34
34
  #fillista:hover {
35
35
  cursor: default;
36
36
  background-color: transparent;
37
- }
37
+ }
38
+ time[data-v-03b0dfe5] {
39
+ color: var(--fkds-color-text-primary);
40
+ }
@@ -2,6 +2,8 @@ import { Component } from 'vue';
2
2
  import { ComponentOptions } from 'vue';
3
3
  import { ComponentOptionsMixin } from 'vue';
4
4
  import { ComponentProvideOptions } from 'vue';
5
+ import { Dataset } from '@fkui/vue';
6
+ import { DatasetNestedKeyOf } from '@fkui/vue';
5
7
  import { DefineComponent } from 'vue';
6
8
  import { ExtractPropTypes } from 'vue';
7
9
  import { FormatFunction } from '@fkui/vue';
@@ -22,12 +24,11 @@ import { VNode } from 'vue';
22
24
 
23
25
  declare const __VLS_base: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
24
26
 
25
- declare const __VLS_export: <T, KeyAttribute extends keyof T = keyof T, ExpandableAttribute extends keyof T = keyof T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
27
+ declare const __VLS_export: <T extends object, KeyAttribute extends keyof T = keyof T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
26
28
  props: PublicProps & __VLS_PrettifyLocal<({
27
29
  columns: Array<TableColumn<T, KeyAttribute>>;
28
- rows: T[];
30
+ rows: Dataset<T>;
29
31
  keyAttribute?: KeyAttribute;
30
- expandableAttribute?: ExpandableAttribute;
31
32
  /**
32
33
  * Optional callback for setting classes on table rows (`<tr>` element).
33
34
  */
@@ -62,9 +63,9 @@ declare const __VLS_export: <T, KeyAttribute extends keyof T = keyof T, Expandab
62
63
  */
63
64
  expandable?(bindings: {
64
65
  /**
65
- * The expanded row (from `expandableAttribute` of the parent row)
66
+ * The expanded row (from the dataset nested attribute of the parent row)
66
67
  */
67
- row: Required<T>[ExpandableAttribute] extends unknown[] ? Required<T>[ExpandableAttribute][number] : never;
68
+ row: Required<T>[DatasetNestedKeyOf<T>] extends unknown[] ? Required<T>[DatasetNestedKeyOf<T>][number] : never;
68
69
  }): void;
69
70
  };
70
71
  emit: (event: "update:selectedRows", value: T[]) => void;
@@ -74,7 +75,9 @@ declare const __VLS_export: <T, KeyAttribute extends keyof T = keyof T, Expandab
74
75
 
75
76
  declare const __VLS_export_2: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
76
77
 
77
- declare const __VLS_export_3: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal_2<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
78
+ declare const __VLS_export_3: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
79
+
80
+ declare const __VLS_export_4: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal_2<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
78
81
  props: PublicProps & __VLS_PrettifyLocal_2<{
79
82
  data: T[];
80
83
  sort?(data: T[]): T[];
@@ -98,7 +101,7 @@ declare const __VLS_export_3: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_
98
101
  __ctx?: Awaited<typeof __VLS_setup>;
99
102
  };
100
103
 
101
- declare const __VLS_export_4: DefineComponent<ExtractPropTypes< {
104
+ declare const __VLS_export_5: DefineComponent<ExtractPropTypes< {
102
105
  formatter: {
103
106
  type: PropType<FormatFunction<HoursMinutesString>>;
104
107
  required: false;
@@ -594,6 +597,19 @@ declare type __VLS_PrettifyLocal_2<T> = (T extends any ? {
594
597
  [K in keyof T as K]: T[K];
595
598
  }) & {};
596
599
 
600
+ declare type __VLS_Props = {
601
+ /**
602
+ * Unix timestamp in milliseconds.
603
+ */
604
+ timestamp: number;
605
+ /**
606
+ * Referemce time to compare the timestamp to.
607
+ *
608
+ * Defaults to the current time.
609
+ */
610
+ reference?: number;
611
+ };
612
+
597
613
  declare type __VLS_Slots = {} & {
598
614
  image?: (props: typeof __VLS_1) => any;
599
615
  };
@@ -967,9 +983,11 @@ export declare function uniqueValues<T, K extends keyof T = keyof T>(items: T[],
967
983
 
968
984
  export declare const XFileDragdrop: typeof __VLS_export_2;
969
985
 
970
- export declare const XSortFilterDatasetNg: typeof __VLS_export_3;
986
+ export declare const XRelativeTime: typeof __VLS_export_3;
987
+
988
+ export declare const XSortFilterDatasetNg: typeof __VLS_export_4;
971
989
 
972
- export declare const XTimeTextField: typeof __VLS_export_4;
990
+ export declare const XTimeTextField: typeof __VLS_export_5;
973
991
 
974
992
  export { }
975
993
 
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.57.7"
8
+ "packageVersion": "7.58.2"
9
9
  }
10
10
  ]
11
11
  }
@@ -7,6 +7,21 @@ module.exports = defineMetadata({
7
7
  flow: true,
8
8
  },
9
9
 
10
+ "x-relative-time": {
11
+ flow: true,
12
+ phrasing: true,
13
+ permittedContent: [],
14
+ textContent: "none",
15
+ attributes: {
16
+ timestamp: {
17
+ required: true,
18
+ },
19
+ reference: {
20
+ required: false,
21
+ },
22
+ },
23
+ },
24
+
10
25
  "x-sort-filter-dataset-ng": {
11
26
  flow: true,
12
27
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fkui/vue-labs",
3
- "version": "6.41.0",
3
+ "version": "6.43.0",
4
4
  "description": "Experimental and unstable FKUI components",
5
5
  "keywords": [
6
6
  "fkui",
@@ -27,7 +27,7 @@
27
27
  "import": "./dist/esm/cypress.esm.js",
28
28
  "require": "./dist/cjs/cypress.cjs.js"
29
29
  },
30
- "./style.css": "./dummy.css",
30
+ "./style.css": "./dist/esm/vue-labs.css",
31
31
  "./htmlvalidate": "./htmlvalidate/index.cjs"
32
32
  },
33
33
  "main": "./dist/cjs/index.cjs.js",
@@ -59,10 +59,10 @@
59
59
  "unit:watch": "jest --watch"
60
60
  },
61
61
  "peerDependencies": {
62
- "@fkui/date": "^6.41.0",
63
- "@fkui/design": "^6.41.0",
64
- "@fkui/logic": "^6.41.0",
65
- "@fkui/vue": "^6.41.0",
62
+ "@fkui/date": "^6.43.0",
63
+ "@fkui/design": "^6.43.0",
64
+ "@fkui/logic": "^6.43.0",
65
+ "@fkui/vue": "^6.43.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": "b5a8d5801dff4745cf7007b9209a9bc5a8bbe40c"
78
+ "gitHead": "8aa2f5ff756d16251bc06925c51186a20a4ea73d"
79
79
  }