@dative-gpi/foundation-core-components 1.0.6 → 1.0.9

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.
@@ -89,8 +89,7 @@
89
89
  </template>
90
90
 
91
91
  <script lang="ts">
92
- import type { PropType } from "vue";
93
- import { computed, defineComponent } from "vue";
92
+ import { computed, defineComponent, type PropType } from "vue";
94
93
 
95
94
  import { useAppTimeZone } from "@dative-gpi/foundation-shared-services/composables";
96
95
 
@@ -38,8 +38,7 @@
38
38
  </template>
39
39
 
40
40
  <script lang="ts">
41
- import type { PropType } from "vue";
42
- import { computed, defineComponent } from "vue";
41
+ import { computed, defineComponent, type PropType } from "vue";
43
42
 
44
43
  import type { FSGridItem } from "@dative-gpi/foundation-shared-components/models";
45
44
 
@@ -1,8 +1,8 @@
1
1
  import { useAppTimeZone } from "@dative-gpi/foundation-shared-services/composables";
2
- import type { CustomPropertyInfos} from "../../../foundation-core-domain/models";
3
- import { FilterType, PropertyDataType } from "../../../foundation-core-domain/models";
4
2
 
5
- const { getUserOffsetMillis, getMachineOffsetMillis } = useAppTimeZone();
3
+ import { type CustomPropertyInfos, FilterType, PropertyDataType } from "../../../foundation-core-domain/models";
4
+
5
+ const { getOffsetDifference } = useAppTimeZone();
6
6
 
7
7
  export const getColor = (property: CustomPropertyInfos, value: string): string | undefined => {
8
8
  if (property.colorful) {
@@ -187,5 +187,5 @@ const getEpoch = (expression: string): string => {
187
187
  expression = expression.substring(match[0].length);
188
188
  match = /(?:(?:([-+])(\d*))?(\w+))?(?:\/(\w))?/g.exec(expression);
189
189
  }
190
- return (date.getTime() + getMachineOffsetMillis() - getUserOffsetMillis()).toString();
190
+ return (date.getTime() + getOffsetDifference()).toString();
191
191
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dative-gpi/foundation-core-components",
3
3
  "sideEffects": false,
4
- "version": "1.0.6",
4
+ "version": "1.0.9",
5
5
  "description": "",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -10,11 +10,11 @@
10
10
  "author": "",
11
11
  "license": "ISC",
12
12
  "dependencies": {
13
- "@dative-gpi/foundation-core-domain": "1.0.6",
14
- "@dative-gpi/foundation-core-services": "1.0.6",
15
- "@dative-gpi/foundation-shared-components": "1.0.6",
16
- "@dative-gpi/foundation-shared-domain": "1.0.6",
17
- "@dative-gpi/foundation-shared-services": "1.0.6"
13
+ "@dative-gpi/foundation-core-domain": "1.0.9",
14
+ "@dative-gpi/foundation-core-services": "1.0.9",
15
+ "@dative-gpi/foundation-shared-components": "1.0.9",
16
+ "@dative-gpi/foundation-shared-domain": "1.0.9",
17
+ "@dative-gpi/foundation-shared-services": "1.0.9"
18
18
  },
19
19
  "peerDependencies": {
20
20
  "@dative-gpi/bones-ui": "^0.0.75",
@@ -26,5 +26,5 @@
26
26
  "sass": "1.71.1",
27
27
  "sass-loader": "13.3.2"
28
28
  },
29
- "gitHead": "b2bbdea22792b7454a5234d8a6b8bb43553f3202"
29
+ "gitHead": "018a67489fc022344c90d45b02bfabdcd0dcefec"
30
30
  }
@@ -1,6 +1,5 @@
1
1
  import { useTranslations as useTranslationsProvider } from "@dative-gpi/bones-ui/composables";
2
- import type { ColorBase} from "@dative-gpi/foundation-shared-components/models";
3
- import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
2
+ import { type ColorBase, ColorEnum } from "@dative-gpi/foundation-shared-components/models";
4
3
  import { DashboardType } from "@dative-gpi/foundation-shared-domain/models"
5
4
 
6
5
  const { $tr } = useTranslationsProvider();
package/utils/roles.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { useTranslations as useTranslationsProvider } from "@dative-gpi/bones-ui/composables";
2
- import type { ColorBase} from "@dative-gpi/foundation-shared-components/models";
3
- import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
2
+ import { type ColorBase, ColorEnum } from "@dative-gpi/foundation-shared-components/models";
4
3
  import { RoleType } from "@dative-gpi/foundation-core-domain/models"
5
4
 
6
5
  const { $tr } = useTranslationsProvider();