@dative-gpi/foundation-shared-components 1.0.175 → 1.0.176-service-account
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<FSSimpleTileUI
|
|
3
|
-
:
|
|
3
|
+
:bottomColor="null"
|
|
4
4
|
v-bind="$attrs"
|
|
5
5
|
>
|
|
6
6
|
<template
|
|
@@ -16,10 +16,9 @@
|
|
|
16
16
|
</template>
|
|
17
17
|
|
|
18
18
|
<script lang="ts">
|
|
19
|
-
import { defineComponent
|
|
19
|
+
import { defineComponent } from "vue";
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
import { ColorEnum, type ColorBase } from "@dative-gpi/foundation-shared-components/models";
|
|
21
|
+
import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
23
22
|
|
|
24
23
|
import FSEntityCountBadge from "./FSEntityCountBadge.vue";
|
|
25
24
|
import FSSimpleTileUI from './FSSimpleTileUI.vue';
|
|
@@ -35,12 +34,7 @@ export default defineComponent({
|
|
|
35
34
|
type: Number,
|
|
36
35
|
required: false,
|
|
37
36
|
default: null
|
|
38
|
-
}
|
|
39
|
-
iconColor: {
|
|
40
|
-
type: String as PropType<ColorBase>,
|
|
41
|
-
required: false
|
|
42
|
-
},
|
|
43
|
-
|
|
37
|
+
}
|
|
44
38
|
},
|
|
45
39
|
setup() {
|
|
46
40
|
return {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dative-gpi/foundation-shared-components",
|
|
3
3
|
"sideEffects": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.176-service-account",
|
|
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": "1.0.
|
|
14
|
-
"@dative-gpi/foundation-shared-services": "1.0.
|
|
13
|
+
"@dative-gpi/foundation-shared-domain": "1.0.176-service-account",
|
|
14
|
+
"@dative-gpi/foundation-shared-services": "1.0.176-service-account"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
17
|
"@dative-gpi/bones-ui": "^1.0.0",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"sass": "1.71.1",
|
|
36
36
|
"sass-loader": "13.3.2"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "b2767f7fee6b4c37aa19f1a688e80d1420cff00e"
|
|
39
39
|
}
|
package/tools/timeRangeTools.ts
CHANGED
|
@@ -122,4 +122,18 @@ export const dayLabel = (day: Days | number): string => {
|
|
|
122
122
|
default:
|
|
123
123
|
return $tr("ui.common.all-days", "All days");
|
|
124
124
|
}
|
|
125
|
-
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export const getPeriod = (value: string) => {
|
|
128
|
+
const cronArray = value.split(" ");
|
|
129
|
+
if (cronArray[3] !== "*") {
|
|
130
|
+
return $tr("ui.common.yearly", "Yearly");
|
|
131
|
+
}
|
|
132
|
+
else if (!cronArray[2].includes("*") || cronArray[2].includes("-")) {
|
|
133
|
+
return $tr("ui.common.monthly", "Monthly");
|
|
134
|
+
}
|
|
135
|
+
else if (cronArray[4] !== "*") {
|
|
136
|
+
return $tr("ui.common.weekly", "Weekly");
|
|
137
|
+
}
|
|
138
|
+
return $tr("ui.common.daily", "Daily");
|
|
139
|
+
};
|