@dative-gpi/foundation-shared-components 1.0.101 → 1.0.102

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.
@@ -4,6 +4,7 @@
4
4
  :class="classes"
5
5
  :modelValue="$props.modelValue"
6
6
  @update:modelValue="$emit('update:modelValue', $event)"
7
+ @click="$emit('update:modelValue', false)"
7
8
  v-bind="$attrs"
8
9
  >
9
10
  <slot>
@@ -13,6 +14,7 @@
13
14
  :width="$props.width"
14
15
  :modelValue="$props.modelValue"
15
16
  @update:modelValue="$emit('update:modelValue', $event)"
17
+ @click.stop="$emit('click', $event)"
16
18
  >
17
19
  <template
18
20
  v-for="(_, name) in $slots"
@@ -67,7 +69,7 @@ export default defineComponent({
67
69
  default: false
68
70
  }
69
71
  },
70
- emits: ["update:modelValue"],
72
+ emits: ["click", "update:modelValue"],
71
73
  setup() {
72
74
  const { isExtraSmall } = useBreakpoints();
73
75
 
@@ -301,7 +301,7 @@ export default defineComponent({
301
301
  if (props.modelValue) {
302
302
  // FSClock just gives two numbers without consideration for the time zone
303
303
  // We must adjust the time to the user's time zone
304
- innerTime.value = Math.floor((props.modelValue + getUserOffset()) % (24 * 60 * 60 * 1000));
304
+ innerTime.value = Math.floor((props.modelValue + getUserOffset(props.modelValue)) % (24 * 60 * 60 * 1000));
305
305
  innerDate.value = props.modelValue - innerTime.value;
306
306
  }
307
307
  else {
@@ -208,13 +208,13 @@ export default defineComponent({
208
208
  break;
209
209
  }
210
210
  case 1: {
211
- innerTimeLeft.value = Math.floor((props.modelValue[0] + getUserOffset()) % (24 * 60 * 60 * 1000));
211
+ innerTimeLeft.value = Math.floor((props.modelValue[0] + getUserOffset(props.modelValue[0])) % (24 * 60 * 60 * 1000));
212
212
  innerDateRange.value = [props.modelValue[0] - innerTimeLeft.value];
213
213
  break;
214
214
  }
215
215
  default: {
216
- innerTimeLeft.value = Math.floor((props.modelValue[0] + getUserOffset()) % (24 * 60 * 60 * 1000));
217
- innerTimeRight.value = Math.floor((props.modelValue[1] + getUserOffset()) % (24 * 60 * 60 * 1000));
216
+ innerTimeLeft.value = Math.floor((props.modelValue[0] + getUserOffset(props.modelValue[0])) % (24 * 60 * 60 * 1000));
217
+ innerTimeRight.value = Math.floor((props.modelValue[1] + getUserOffset(props.modelValue[0])) % (24 * 60 * 60 * 1000));
218
218
  innerDateRange.value = [props.modelValue[0] - innerTimeLeft.value, props.modelValue[1] - innerTimeRight.value];
219
219
  break;
220
220
  }
@@ -674,8 +674,10 @@ export default defineComponent({
674
674
  }
675
675
  if (props.modelValue != null) {
676
676
  editor.update(() => {
677
- if(typeof props.modelValue === "string") {
678
- editor.setEditorState(editor.parseEditorState(props.modelValue!));
677
+ if (typeof props.modelValue === "string") {
678
+ if (props.modelValue !== "") {
679
+ editor.setEditorState(editor.parseEditorState(props.modelValue!));
680
+ }
679
681
  }
680
682
  else {
681
683
  editor.setEditorState(editor.parseEditorState(JSON.stringify(props.modelValue)));
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.101",
4
+ "version": "1.0.102",
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.101",
14
- "@dative-gpi/foundation-shared-services": "1.0.101"
13
+ "@dative-gpi/foundation-shared-domain": "1.0.102",
14
+ "@dative-gpi/foundation-shared-services": "1.0.102"
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": "f8be2b01dc860776a5907fe403950543afa48631"
38
+ "gitHead": "fd73b73f8107a44b608c04b092a41a70af78f8fa"
39
39
  }
@@ -1,14 +1,16 @@
1
1
  .fs-dialog-mobile > .v-overlay__content {
2
- max-height: calc(100% - 40px) !important;
3
- max-width: 100% !important;
4
- width: 100% !important;
5
- margin: 0 !important;
6
- align-self: flex-end;
2
+ flex-direction: column-reverse !important;
7
3
  }
8
4
 
9
5
  .fs-dialog > .v-overlay__content {
10
- max-height: calc(100vh - 40px) !important;
11
- max-width: calc(100vw - 40px) !important;
12
- width: fit-content !important;
13
- margin: 20px !important;
6
+ justify-content: center !important;
7
+ align-items: center !important;
8
+ }
9
+
10
+ .v-dialog > .v-overlay__content {
11
+ max-height: 100vh !important;
12
+ max-width: 100vw !important;
13
+ height: 100% !important;
14
+ width: 100% !important;
15
+ margin: 0 !important;
14
16
  }