@ailaw/venus 0.3.0 → 0.3.1

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.
Files changed (2) hide show
  1. package/dist/venus.es.js +22 -19
  2. package/package.json +1 -1
package/dist/venus.es.js CHANGED
@@ -6,13 +6,13 @@ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
6
  var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
7
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
8
  var __spreadValues = (a, b) => {
9
- for (var prop in b || (b = {}))
10
- if (__hasOwnProp.call(b, prop))
11
- __defNormalProp(a, prop, b[prop]);
9
+ for (var prop2 in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop2))
11
+ __defNormalProp(a, prop2, b[prop2]);
12
12
  if (__getOwnPropSymbols)
13
- for (var prop of __getOwnPropSymbols(b)) {
14
- if (__propIsEnum.call(b, prop))
15
- __defNormalProp(a, prop, b[prop]);
13
+ for (var prop2 of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop2))
15
+ __defNormalProp(a, prop2, b[prop2]);
16
16
  }
17
17
  return a;
18
18
  };
@@ -21,7 +21,7 @@ import { defineComponent, ref as ref$1, watch, computed, toRefs as toRefs$1, onM
21
21
  import { Select, Modal, Form, Input, Checkbox, Divider, Button, message } from "ant-design-vue";
22
22
  import { useQuery, useResult, useMutation } from "@vue/apollo-composable";
23
23
  import gql from "graphql-tag";
24
- import { path } from "ramda";
24
+ import { path, uniqBy, prop } from "ramda";
25
25
  import "vue";
26
26
  import { Source, visit } from "graphql";
27
27
  var index$4 = "";
@@ -451,10 +451,13 @@ var __vue2_script$a = defineComponent({
451
451
  const { onlyRole, profileIds } = toRefs$1(props);
452
452
  const { profiles: rawProfiles } = useProfiles(keywords, onlyRole, profileIds);
453
453
  const createdProfile = ref$1();
454
- const profiles = computed(() => [
455
- ...props.preLoaded,
456
- ...createdProfile.value ? [createdProfile.value, ...rawProfiles.value] : rawProfiles.value
457
- ]);
454
+ const profiles = computed(() => {
455
+ const list = [
456
+ ...props.preLoaded,
457
+ ...createdProfile.value ? [createdProfile.value, ...rawProfiles.value] : rawProfiles.value
458
+ ];
459
+ return uniqBy(prop("id"), list);
460
+ });
458
461
  const isModalVisible = ref$1(false);
459
462
  const toggleModal = (value) => isModalVisible.value = value;
460
463
  const updateValue = (value) => emit("input", value);
@@ -1173,10 +1176,10 @@ function toVue3ComponentInstance(vm) {
1173
1176
  "vnode",
1174
1177
  "slots"
1175
1178
  ];
1176
- instanceProps.forEach(function(prop) {
1177
- proxy(instance, prop, {
1179
+ instanceProps.forEach(function(prop2) {
1180
+ proxy(instance, prop2, {
1178
1181
  get: function() {
1179
- return vm["$" + prop];
1182
+ return vm["$" + prop2];
1180
1183
  }
1181
1184
  });
1182
1185
  });
@@ -6285,8 +6288,8 @@ var g1145 = createForm({
6285
6288
  Preparer: "PREPARERPROFILE"
6286
6289
  }
6287
6290
  });
6288
- var g28 = createForm({
6289
- displayName: "G-28",
6291
+ var g28Person = createForm({
6292
+ displayName: "G-28-Person",
6290
6293
  roles: {
6291
6294
  Petitioner: "USERPROFILE",
6292
6295
  Beneficiary: "USERPROFILE",
@@ -6312,14 +6315,14 @@ var i130 = createForm({
6312
6315
  roles: {
6313
6316
  Petitioner: "USERPROFILE",
6314
6317
  Beneficiary: "USERPROFILE",
6315
- Preparer: "CLIENTPROFILE"
6318
+ Preparer: "PREPARERPROFILE"
6316
6319
  }
6317
6320
  });
6318
6321
  var i130a = createForm({
6319
6322
  displayName: "I-130A",
6320
6323
  roles: {
6321
6324
  Beneficiary: "USERPROFILE",
6322
- Preparer: "CLIENTPROFILE"
6325
+ Preparer: "PREPARERPROFILE"
6323
6326
  }
6324
6327
  });
6325
6328
  var i131 = createForm({
@@ -6367,7 +6370,7 @@ var i864a = createForm({
6367
6370
  }
6368
6371
  });
6369
6372
  var index = [
6370
- g28,
6373
+ g28Person,
6371
6374
  g1145,
6372
6375
  i129Attachment,
6373
6376
  i129Mh,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ailaw/venus",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "files": [
5
5
  "dist"
6
6
  ],