@ailaw/venus 0.13.9 → 0.15.0

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.
@@ -0,0 +1,2 @@
1
+ declare const _default: import("../types/form").Form;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("../types/form").Form;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("../types/form").Form;
2
+ export default _default;
@@ -1,6 +1,7 @@
1
1
  export declare const formRecords: {
2
2
  g28Company: import("../types/form").Form;
3
3
  g28Person: import("../types/form").Form;
4
+ g325A: import("../types/form").Form;
4
5
  g639: import("../types/form").Form;
5
6
  g1145: import("../types/form").Form;
6
7
  g1450: import("../types/form").Form;
@@ -12,8 +13,10 @@ export declare const formRecords: {
12
13
  i131: import("../types/form").Form;
13
14
  i134: import("../types/form").Form;
14
15
  i192: import("../types/form").Form;
16
+ i360: import("../types/form").Form;
15
17
  i485: import("../types/form").Form;
16
18
  i485A: import("../types/form").Form;
19
+ i485J: import("../types/form").Form;
17
20
  i508: import("../types/form").Form;
18
21
  i539: import("../types/form").Form;
19
22
  i539A: import("../types/form").Form;
package/dist/index.d.ts CHANGED
@@ -4,6 +4,7 @@ export { default as CaseTemplateSelect } from './case-template-select/index.vue'
4
4
  export { default as CaseTemplateTypeBadge } from './case-template-select/components/case-template-type-badge.vue';
5
5
  export { default as getLanguageMessage } from './utils/languages';
6
6
  export { default as forms, formRecords } from './forms';
7
+ export { GlueRoleType } from './types/profile';
7
8
  export { default as AFileUploader } from './a-file-uploader/index.vue';
8
9
  export { default as AssigneeTag } from './assignee-tag/index.vue';
9
10
  export { default as TagsWithTooltip } from './tags-with-tooltip/index.vue';
@@ -1,6 +1,6 @@
1
- import { Profile, RoleType } from '@/types/profile';
1
+ import { GlueRoleType, Profile, RoleType } from '@/types/profile';
2
2
  import { Ref } from 'vue-demi';
3
- export default function useProfiles(keywords: Ref<string>, onlyRole: Ref<RoleType | undefined>, profileIds: Ref<number[] | undefined>, disabledProfile: Ref<Boolean | undefined>): {
3
+ export default function useProfiles(keywords: Ref<string>, onlyRole: Ref<RoleType | undefined>, roleTypes: Ref<GlueRoleType[]>, profileIds: Ref<number[] | undefined>, disabledProfile: Ref<Boolean | undefined>): {
4
4
  profiles: Readonly<Ref<readonly Profile[]>>;
5
5
  loading: Ref<boolean>;
6
6
  };
@@ -1,5 +1,5 @@
1
1
  import { PropType } from 'vue-demi';
2
- import { Profile, RoleType } from '@/types/profile';
2
+ import { GlueRoleType, Profile, RoleType } from '@/types/profile';
3
3
  declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
4
4
  profiles: import("@vue/composition-api").ComputedRef<Profile[]>;
5
5
  isModalVisible: import("@vue/composition-api").Ref<boolean>;
@@ -20,6 +20,10 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
20
20
  onlyRole: {
21
21
  type: PropType<RoleType>;
22
22
  };
23
+ roleTypes: {
24
+ type: PropType<GlueRoleType[]>;
25
+ required: true;
26
+ };
23
27
  preLoaded: {
24
28
  type: PropType<Profile[]>;
25
29
  default: () => never[];
@@ -38,6 +42,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
38
42
  }, {
39
43
  simpleCreate: boolean;
40
44
  creatable: boolean;
45
+ roleTypes: GlueRoleType[];
41
46
  preLoaded: Profile[];
42
47
  disabledProfile: boolean;
43
48
  } & {
@@ -47,6 +52,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
47
52
  }> & Pick<import("vue").VueConstructor<import("vue").default>, "filter" | "extend" | "nextTick" | "set" | "delete" | "directive" | "component" | "use" | "mixin" | "compile" | "observable" | "util" | "config" | "version"> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
48
53
  simpleCreate: boolean;
49
54
  creatable: boolean;
55
+ roleTypes: GlueRoleType[];
50
56
  preLoaded: Profile[];
51
57
  disabledProfile: boolean;
52
58
  } & {
@@ -65,6 +71,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
65
71
  }>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
66
72
  simpleCreate: boolean;
67
73
  creatable: boolean;
74
+ roleTypes: GlueRoleType[];
68
75
  preLoaded: Profile[];
69
76
  disabledProfile: boolean;
70
77
  } & {
package/dist/venus.es.js CHANGED
@@ -177,6 +177,7 @@ const profilesQuery = gql`
177
177
  $lawFirmId: Int!
178
178
  $keywords: String
179
179
  $profileType: String
180
+ $profileTypeInt: [Int!]
180
181
  $profileIds: [Int!]
181
182
  $isDisabled: Int
182
183
  ) {
@@ -185,6 +186,7 @@ const profilesQuery = gql`
185
186
  lawFirmId: $lawFirmId
186
187
  keywords: $keywords
187
188
  profileType: $profileType
189
+ profileTypeInt: $profileTypeInt
188
190
  profileId: $profileIds
189
191
  isDisabled: $isDisabled
190
192
  }
@@ -436,7 +438,7 @@ function __vue2_injectStyles$g(context) {
436
438
  var ProfileSelector = /* @__PURE__ */ function() {
437
439
  return __component__$g.exports;
438
440
  }();
439
- function useProfiles(keywords, onlyRole, profileIds, disabledProfile) {
441
+ function useProfiles(keywords, onlyRole, roleTypes, profileIds, disabledProfile) {
440
442
  const me = useMe();
441
443
  const isDisabled = computed(() => {
442
444
  if (disabledProfile.value === true) {
@@ -453,6 +455,7 @@ function useProfiles(keywords, onlyRole, profileIds, disabledProfile) {
453
455
  lawFirmId: (_a = me.value) == null ? void 0 : _a.lawFirmId,
454
456
  keywords: keywords.value,
455
457
  profileType: onlyRole.value,
458
+ profileTypeInt: roleTypes.value,
456
459
  profileIds: profileIds.value,
457
460
  isDisabled: isDisabled.value
458
461
  };
@@ -475,6 +478,10 @@ var __vue2_script$f = defineComponent({
475
478
  onlyRole: {
476
479
  type: String
477
480
  },
481
+ roleTypes: {
482
+ type: Array,
483
+ required: true
484
+ },
478
485
  preLoaded: {
479
486
  type: Array,
480
487
  default: () => []
@@ -494,8 +501,8 @@ var __vue2_script$f = defineComponent({
494
501
  setup(props, { emit }) {
495
502
  const keywords = ref("");
496
503
  const handleSearch = (value) => keywords.value = value;
497
- const { onlyRole, profileIds, disabledProfile } = toRefs(props);
498
- const { profiles: rawProfiles } = useProfiles(keywords, onlyRole, profileIds, disabledProfile);
504
+ const { onlyRole, roleTypes, profileIds, disabledProfile } = toRefs(props);
505
+ const { profiles: rawProfiles } = useProfiles(keywords, onlyRole, roleTypes, profileIds, disabledProfile);
499
506
  const createdProfile = ref();
500
507
  const profiles = computed(() => {
501
508
  const list = [
@@ -859,6 +866,12 @@ var g28Person = createForm({
859
866
  Preparer: [GlueRoleType.PREPARERPROFILE]
860
867
  }
861
868
  });
869
+ var g325A = createForm({
870
+ displayName: "G-325A",
871
+ roles: {
872
+ Beneficiary: [GlueRoleType.USERPROFILE]
873
+ }
874
+ });
862
875
  var g639 = createForm({
863
876
  displayName: "G-639",
864
877
  roles: {
@@ -939,6 +952,14 @@ var i192 = createForm({
939
952
  Preparer: [GlueRoleType.PREPARERPROFILE]
940
953
  }
941
954
  });
955
+ var i360 = createForm({
956
+ displayName: "I-360",
957
+ roles: {
958
+ Beneficiary: [GlueRoleType.USERPROFILE],
959
+ Petitioner: [GlueRoleType.USERPROFILE, GlueRoleType.CLIENTPROFILE],
960
+ Preparer: [GlueRoleType.PREPARERPROFILE]
961
+ }
962
+ });
942
963
  var i485 = createForm({
943
964
  displayName: "I-485",
944
965
  roles: {
@@ -953,6 +974,14 @@ var i485A = createForm({
953
974
  Preparer: [GlueRoleType.PREPARERPROFILE]
954
975
  }
955
976
  });
977
+ var i485J = createForm({
978
+ displayName: "I-485J",
979
+ roles: {
980
+ Beneficiary: [GlueRoleType.USERPROFILE],
981
+ Petitioner: [GlueRoleType.USERPROFILE, GlueRoleType.CLIENTPROFILE],
982
+ Preparer: [GlueRoleType.PREPARERPROFILE]
983
+ }
984
+ });
956
985
  var i508 = createForm({
957
986
  displayName: "I-508",
958
987
  roles: {
@@ -1058,6 +1087,7 @@ var i918B = createForm({
1058
1087
  const formRecords = {
1059
1088
  g28Company,
1060
1089
  g28Person,
1090
+ g325A,
1061
1091
  g639,
1062
1092
  g1145,
1063
1093
  g1450,
@@ -1069,8 +1099,10 @@ const formRecords = {
1069
1099
  i131,
1070
1100
  i134,
1071
1101
  i192,
1102
+ i360,
1072
1103
  i485,
1073
1104
  i485A,
1105
+ i485J,
1074
1106
  i508,
1075
1107
  i539,
1076
1108
  i539A,
@@ -2542,4 +2574,4 @@ function __vue2_injectStyles(context) {
2542
2574
  var index = /* @__PURE__ */ function() {
2543
2575
  return __component__.exports;
2544
2576
  }();
2545
- export { AFileUploader, AssigneeTag, index$3 as CaseTemplateSelect, CaseTemplateTypeBadge, NewTask, index$4 as ProfileSelect, TagsWithTooltip, index$1 as TaskCart, TaskForm, TaskTable, TaskTemplateFilter, index as TestComponent, formRecords, index$2 as forms, getLanguageMessage, refactorParams as refactorTaskTemplateParams, submit as submitTaskTemplate, useCreateTaskTemplate, useMutateTaskTemplate, useSearchTaskConditions, useSearchTaskTemplates };
2577
+ export { AFileUploader, AssigneeTag, index$3 as CaseTemplateSelect, CaseTemplateTypeBadge, GlueRoleType, NewTask, index$4 as ProfileSelect, TagsWithTooltip, index$1 as TaskCart, TaskForm, TaskTable, TaskTemplateFilter, index as TestComponent, formRecords, index$2 as forms, getLanguageMessage, refactorParams as refactorTaskTemplateParams, submit as submitTaskTemplate, useCreateTaskTemplate, useMutateTaskTemplate, useSearchTaskConditions, useSearchTaskTemplates };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ailaw/venus",
3
- "version": "0.13.9",
3
+ "version": "0.15.0",
4
4
  "files": [
5
5
  "dist"
6
6
  ],