@dative-gpi/foundation-shared-components 1.0.133-fix-termfield → 1.0.133

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.
@@ -650,10 +650,26 @@ export default defineComponent({
650
650
  innerDateValue.value = 1;
651
651
  };
652
652
 
653
- // This watcher is called once even if both value are set at the same time
654
- watch([() => props.startDate, () => props.endDate], () => {
655
- // Having one of those different from the inner value means something up the chain is updating
656
- if (props.startDate !== innerStartDate.value || props.endDate !== innerEndDate.value) {
653
+ watch(() => props.startDate, () => {
654
+ if (props.startDate && parseForPicker(props.startDate) != null) {
655
+ innerDateSetting.value = DateSetting.Pick;
656
+ if (props.startDate !== innerStartDate.value) {
657
+ innerStartDate.value = props.startDate;
658
+ }
659
+ }
660
+ else if (props.endDate !== innerEndDate.value) {
661
+ reset();
662
+ }
663
+ });
664
+
665
+ watch(() => props.endDate, () => {
666
+ if (props.endDate && parseForPicker(props.endDate) != null) {
667
+ innerDateSetting.value = DateSetting.Pick;
668
+ if (props.endDate !== innerEndDate.value) {
669
+ innerEndDate.value = props.endDate;
670
+ }
671
+ }
672
+ else if (props.startDate !== innerStartDate.value) {
657
673
  reset();
658
674
  }
659
675
  });
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.133-fix-termfield",
4
+ "version": "1.0.133",
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.133-fix-termfield",
14
- "@dative-gpi/foundation-shared-services": "1.0.133-fix-termfield"
13
+ "@dative-gpi/foundation-shared-domain": "1.0.133",
14
+ "@dative-gpi/foundation-shared-services": "1.0.133"
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": "528d9f495a0863486b5babc36be2b37c60142969"
38
+ "gitHead": "f775f6313a8d710351d32b2f913923bc07d727d6"
39
39
  }