@dative-gpi/foundation-shared-components 0.0.99 → 0.0.101
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/models/breadcrumbs.ts +6 -6
- package/models/colors.ts +6 -6
- package/models/deviceAlerts.ts +2 -2
- package/models/deviceConnectivities.ts +3 -3
- package/models/deviceStatuses.ts +6 -6
- package/models/grids.ts +2 -2
- package/models/modelStatuses.ts +4 -4
- package/models/rules.ts +1 -1
- package/models/tables.ts +12 -12
- package/models/toggleSets.ts +4 -4
- package/package.json +4 -4
package/models/breadcrumbs.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { RouteLocationRaw } from "vue-router";
|
|
2
2
|
export interface FSBreadcrumbItem {
|
|
3
|
-
to?: RouteLocationRaw
|
|
4
|
-
disabled?: boolean
|
|
5
|
-
replace?: boolean
|
|
6
|
-
exact?: boolean
|
|
7
|
-
title: string
|
|
8
|
-
href?: string
|
|
3
|
+
to?: RouteLocationRaw | null;
|
|
4
|
+
disabled?: boolean | null;
|
|
5
|
+
replace?: boolean | null;
|
|
6
|
+
exact?: boolean | null;
|
|
7
|
+
title: string | null;
|
|
8
|
+
href?: string | null;
|
|
9
9
|
}
|
package/models/colors.ts
CHANGED
|
@@ -6,17 +6,17 @@ export enum ColorEnum {
|
|
|
6
6
|
Error = "error",
|
|
7
7
|
Warning = "warning",
|
|
8
8
|
Success = "success"
|
|
9
|
-
}
|
|
9
|
+
}
|
|
10
10
|
|
|
11
11
|
export interface ColorVariations {
|
|
12
12
|
light: string;
|
|
13
|
-
lightContrast?: string;
|
|
13
|
+
lightContrast?: string | null;
|
|
14
14
|
soft: string;
|
|
15
|
-
softContrast?: string;
|
|
15
|
+
softContrast?: string | null;
|
|
16
16
|
base: string;
|
|
17
|
-
baseContrast?: string;
|
|
17
|
+
baseContrast?: string | null;
|
|
18
18
|
dark: string;
|
|
19
|
-
darkContrast?: string;
|
|
20
|
-
}
|
|
19
|
+
darkContrast?: string | null;
|
|
20
|
+
}
|
|
21
21
|
|
|
22
22
|
export type ColorBase = (string | ColorEnum);
|
package/models/deviceAlerts.ts
CHANGED
|
@@ -2,9 +2,9 @@ import { ConnectivityStatus } from "@dative-gpi/foundation-shared-domain/models"
|
|
|
2
2
|
|
|
3
3
|
export interface FSDeviceConnectivity {
|
|
4
4
|
id: string;
|
|
5
|
-
sourceTimestamp?: number;
|
|
6
|
-
enqueuedTimestamp?: number;
|
|
7
|
-
processedTimestamp?: number;
|
|
5
|
+
sourceTimestamp?: number | null;
|
|
6
|
+
enqueuedTimestamp?: number | null;
|
|
7
|
+
processedTimestamp?: number | null;
|
|
8
8
|
status: ConnectivityStatus;
|
|
9
9
|
icon: string;
|
|
10
10
|
color: string;
|
package/models/deviceStatuses.ts
CHANGED
|
@@ -5,12 +5,12 @@ export interface FSDeviceStatus {
|
|
|
5
5
|
|
|
6
6
|
export interface FSDeviceStatusGroup {
|
|
7
7
|
label: string;
|
|
8
|
-
groupByValue?: string;
|
|
9
|
-
value?: string;
|
|
10
|
-
unit?: string;
|
|
8
|
+
groupByValue?: string | null;
|
|
9
|
+
value?: string | null;
|
|
10
|
+
unit?: string | null;
|
|
11
11
|
icon: string;
|
|
12
12
|
color: string;
|
|
13
|
-
sourceTimestamp?: number;
|
|
14
|
-
enqueuedTimestamp?: number;
|
|
15
|
-
processedTimestamp?: number;
|
|
13
|
+
sourceTimestamp?: number | null;
|
|
14
|
+
enqueuedTimestamp?: number | null;
|
|
15
|
+
processedTimestamp?: number | null;
|
|
16
16
|
}
|
package/models/grids.ts
CHANGED
package/models/modelStatuses.ts
CHANGED
|
@@ -3,9 +3,9 @@ export interface FSModelStatus {
|
|
|
3
3
|
label: string;
|
|
4
4
|
inline: boolean;
|
|
5
5
|
index: number;
|
|
6
|
-
groupById?: string;
|
|
7
|
-
groupByLabel?: string;
|
|
6
|
+
groupById?: string | null;
|
|
7
|
+
groupByLabel?: string | null;
|
|
8
8
|
showDefault: boolean;
|
|
9
|
-
iconDefault?: string;
|
|
10
|
-
colorDefault?: string;
|
|
9
|
+
iconDefault?: string | null;
|
|
10
|
+
colorDefault?: string | null;
|
|
11
11
|
}
|
package/models/rules.ts
CHANGED
|
@@ -12,7 +12,7 @@ export const TextRules = {
|
|
|
12
12
|
min: (min: number, message: string | undefined = undefined) => (value: string) => value.length >= min || (message ?? $tr("ui.rules.text-min", "Must be at least {0} characters", min.toString())),
|
|
13
13
|
max: (max: number, message: string | undefined = undefined) => (value: string) => value.length <= max || (message ?? $tr("ui.rules.text-max", "Must be at most {0} characters", max.toString())),
|
|
14
14
|
email: (message: string | undefined = undefined) => (value: string) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(value) || (message ?? $tr("ui.rules.text-email", "Must be a valid email")),
|
|
15
|
-
phone: (message: string | undefined = undefined) => (value: string) => /^[
|
|
15
|
+
phone: (message: string | undefined = undefined) => (value: string) => /^[+]?([0-9]+[ -]?)+$/.test(value) || (message ?? $tr("ui.rules.text-phone", "Must be a valid phone number")),
|
|
16
16
|
digit: (message: string | undefined = undefined) => (value: string) => /(?=.*\d)/.test(value) || (message ?? $tr("ui.rules.text-digit", "Must contain a digit")),
|
|
17
17
|
uppercase: (message: string | undefined = undefined) => (value: string) => /(?=.*[A-Z])/.test(value) || (message ?? $tr("ui.rules.text-uppercase", "Must contain an uppercase letter")),
|
|
18
18
|
lowercase: (message: string | undefined = undefined) => (value: string) => /(?=.*[a-z])/.test(value) || (message ?? $tr("ui.rules.text-lowercase", "Must contain a lowercase letter")),
|
package/models/tables.ts
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
export interface FSDataTableColumn {
|
|
2
2
|
[key: string]: any;
|
|
3
|
-
text?: string;
|
|
4
|
-
value?: string;
|
|
3
|
+
text?: string | null;
|
|
4
|
+
value?: string | null;
|
|
5
5
|
index: number;
|
|
6
6
|
hidden: boolean;
|
|
7
|
-
width?: string | number;
|
|
7
|
+
width?: string | number | null;
|
|
8
8
|
|
|
9
|
-
sortable?: boolean;
|
|
10
|
-
sort?: (a: any, b: any) => number;
|
|
9
|
+
sortable?: boolean | null;
|
|
10
|
+
sort?: ((a: any, b: any) => number) | null;
|
|
11
11
|
|
|
12
|
-
filterable?: boolean;
|
|
13
|
-
fixedFilters?: { value: any, text: string }[];
|
|
14
|
-
methodFilter?: (value: any, item: any) => boolean;
|
|
15
|
-
filter?: (value: any, search: string, item: any) => boolean;
|
|
12
|
+
filterable?: boolean | null;
|
|
13
|
+
fixedFilters?: { value: any, text: string }[] | null;
|
|
14
|
+
methodFilter?: ((value: any, item: any) => boolean) | null;
|
|
15
|
+
filter?: ((value: any, search: string, item: any) => boolean) | null;
|
|
16
16
|
|
|
17
|
-
innerValue?: (value: any) => any;
|
|
17
|
+
innerValue?: ((value: any) => any) | null;
|
|
18
18
|
|
|
19
19
|
// Should not be set directly !
|
|
20
|
-
slotName?: string;
|
|
20
|
+
slotName?: string | null;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
export interface FSDataTableFilter {
|
|
24
24
|
text: string;
|
|
25
25
|
value: string;
|
|
26
26
|
hidden: boolean;
|
|
27
|
-
filter?: (value: any, property: any, item: any) => boolean;
|
|
27
|
+
filter?: ((value: any, property: any, item: any) => boolean) | null;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
export interface FSDataTableOrder {
|
package/models/toggleSets.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dative-gpi/foundation-shared-components",
|
|
3
3
|
"sideEffects": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.101",
|
|
5
5
|
"description": "",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"author": "",
|
|
11
11
|
"license": "ISC",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@dative-gpi/foundation-shared-domain": "0.0.
|
|
14
|
-
"@dative-gpi/foundation-shared-services": "0.0.
|
|
13
|
+
"@dative-gpi/foundation-shared-domain": "0.0.101",
|
|
14
|
+
"@dative-gpi/foundation-shared-services": "0.0.101",
|
|
15
15
|
"@fontsource/montserrat": "^5.0.16",
|
|
16
16
|
"@lexical/clipboard": "^0.12.5",
|
|
17
17
|
"@lexical/history": "^0.12.5",
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"sass": "^1.69.5",
|
|
33
33
|
"sass-loader": "^13.3.2"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "8ab763942b592e5d46dc629ca95e80cfb7729400"
|
|
36
36
|
}
|