@ailaw/venus 1.121.0 → 1.122.0-family

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.
package/dist/en3.js CHANGED
@@ -854,7 +854,6 @@ var lang3 = {
854
854
  attachments: "Attachments",
855
855
  selectFile: "Select file",
856
856
  addToTaskList: "Add to task list",
857
- allowSubmitWithoutFile: "Allow submission without files if N/A",
858
857
  required: "Required",
859
858
  optional: "Optional",
860
859
  submit: "Submit",
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- /*! tailwindcss v2.2.17 | MIT License | https://tailwindcss.com *//*! modern-normalize v1.1.0 | MIT License | https://github.com/sindresorhus/modern-normalize */*,:before,:after{box-sizing:border-box}html{-moz-tab-size:4;-o-tab-size:4;tab-size:4}html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}body{font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"}hr{height:0;color:inherit}abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}::-moz-focus-inner{border-style:none;padding:0}legend{padding:0}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}button{background-color:transparent;background-image:none}fieldset{margin:0;padding:0}ol,ul{list-style:none;margin:0;padding:0}html{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5}body{font-family:inherit;line-height:inherit}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}hr{border-top-width:1px}img{border-style:solid}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#a1a1aa}input:-ms-input-placeholder,textarea:-ms-input-placeholder{opacity:1;color:#a1a1aa}input::placeholder,textarea::placeholder{opacity:1;color:#a1a1aa}button,[role=button]{cursor:pointer}table{border-collapse:collapse}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}button,input,optgroup,select,textarea{padding:0;line-height:inherit;color:inherit}pre,code,kbd,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}*,:before,:after{border-color:currentColor}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.visible{visibility:visible}.relative{position:relative}.mr-2{margin-right:.5rem}.mb-0{margin-bottom:0}.mb-5{margin-bottom:1.25rem}.ml-2{margin-left:.5rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.table{display:table}.h-6{height:1.5rem}.h-screen{height:100vh}.w-6{width:1.5rem}.w-60{width:15rem}.w-72{width:18rem}.flex-1{flex:1 1 0%}@-webkit-keyframes spin{to{transform:rotate(360deg)}}@keyframes spin{to{transform:rotate(360deg)}}@-webkit-keyframes ping{75%,to{transform:scale(2);opacity:0}}@keyframes ping{75%,to{transform:scale(2);opacity:0}}@-webkit-keyframes pulse{50%{opacity:.5}}@keyframes pulse{50%{opacity:.5}}@-webkit-keyframes bounce{0%,to{transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}@keyframes bounce{0%,to{transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}.items-center{align-items:center}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.rounded{border-radius:.25rem}.border{border-width:1px}.border-solid{border-style:solid}.border-light-purple{--tw-border-opacity: 1;border-color:rgba(192,150,250,var(--tw-border-opacity))}.border-light-blue{--tw-border-opacity: 1;border-color:rgba(145,213,255,var(--tw-border-opacity))}.bg-purple{--tw-bg-opacity: 1;background-color:rgba(249,240,255,var(--tw-bg-opacity))}.bg-blue{--tw-bg-opacity: 1;background-color:rgba(230,247,255,var(--tw-bg-opacity))}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.font-bold{font-weight:700}.capitalize{text-transform:capitalize}.leading-5{line-height:1.25rem}.text-secondary{--tw-text-opacity: 1;color:rgba(102,102,102,var(--tw-text-opacity))}.text-smart{--tw-text-opacity: 1;color:rgba(114,46,209,var(--tw-text-opacity))}.text-classic{--tw-text-opacity: 1;color:rgba(24,144,255,var(--tw-text-opacity))}*,:before,:after{--tw-shadow: 0 0 #0000}*,:before,:after{--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgba(59, 130, 246, .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000}.filter{--tw-blur: var(--tw-empty, );--tw-brightness: var(--tw-empty, );--tw-contrast: var(--tw-empty, );--tw-grayscale: var(--tw-empty, );--tw-hue-rotate: var(--tw-empty, );--tw-invert: var(--tw-empty, );--tw-saturate: var(--tw-empty, );--tw-sepia: var(--tw-empty, );--tw-drop-shadow: var(--tw-empty, );filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.blur{--tw-blur: blur(8px)}.btn-divider[data-v-599bdbb2]{margin-bottom:0!important;margin-top:12px!important}.beta[data-v-1114aea6]{line-height:20px;border-radius:15px;background-color:red;color:#fff;padding:0 3.5px;margin:0 5px}.min-w-80[data-v-72ef9bd2]{min-width:320px}.ant-popover{z-index:9999!important}.ant-popover .ant-popover-inner-content{padding:8px 16px}.container[data-v-1c53738a]{border:1px solid #cccccc;border-radius:6px;padding:0 4px;min-height:30px;cursor:pointer}.block[data-v-1c53738a]{display:block}.tags-container[data-v-18554545]{word-break:keep-all;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.taskTemplateInline[data-v-c5d917d8]{float:right}a.taskTemplateInline[data-v-c5d917d8]{margin-left:10px}div.taskTemplateInline[data-v-c5d917d8]{margin-top:5px!important}.task-cart-main-modal[data-v-697d89e6] .ant-modal-body{padding-bottom:0}
1
+ /*! tailwindcss v2.2.17 | MIT License | https://tailwindcss.com *//*! modern-normalize v1.1.0 | MIT License | https://github.com/sindresorhus/modern-normalize */*,:before,:after{box-sizing:border-box}html{-moz-tab-size:4;-o-tab-size:4;tab-size:4}html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}body{font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"}hr{height:0;color:inherit}abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}::-moz-focus-inner{border-style:none;padding:0}legend{padding:0}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}button{background-color:transparent;background-image:none}fieldset{margin:0;padding:0}ol,ul{list-style:none;margin:0;padding:0}html{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5}body{font-family:inherit;line-height:inherit}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}hr{border-top-width:1px}img{border-style:solid}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#a1a1aa}input:-ms-input-placeholder,textarea:-ms-input-placeholder{opacity:1;color:#a1a1aa}input::placeholder,textarea::placeholder{opacity:1;color:#a1a1aa}button,[role=button]{cursor:pointer}table{border-collapse:collapse}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}button,input,optgroup,select,textarea{padding:0;line-height:inherit;color:inherit}pre,code,kbd,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}*,:before,:after{border-color:currentColor}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.visible{visibility:visible}.relative{position:relative}.mr-2{margin-right:.5rem}.mb-0{margin-bottom:0}.mb-5{margin-bottom:1.25rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.table{display:table}.h-6{height:1.5rem}.h-screen{height:100vh}.w-6{width:1.5rem}.w-60{width:15rem}.w-72{width:18rem}.flex-1{flex:1 1 0%}@-webkit-keyframes spin{to{transform:rotate(360deg)}}@keyframes spin{to{transform:rotate(360deg)}}@-webkit-keyframes ping{75%,to{transform:scale(2);opacity:0}}@keyframes ping{75%,to{transform:scale(2);opacity:0}}@-webkit-keyframes pulse{50%{opacity:.5}}@keyframes pulse{50%{opacity:.5}}@-webkit-keyframes bounce{0%,to{transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}@keyframes bounce{0%,to{transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}.items-center{align-items:center}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.rounded{border-radius:.25rem}.border{border-width:1px}.border-solid{border-style:solid}.border-light-purple{--tw-border-opacity: 1;border-color:rgba(192,150,250,var(--tw-border-opacity))}.border-light-blue{--tw-border-opacity: 1;border-color:rgba(145,213,255,var(--tw-border-opacity))}.bg-purple{--tw-bg-opacity: 1;background-color:rgba(249,240,255,var(--tw-bg-opacity))}.bg-blue{--tw-bg-opacity: 1;background-color:rgba(230,247,255,var(--tw-bg-opacity))}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.font-bold{font-weight:700}.capitalize{text-transform:capitalize}.leading-5{line-height:1.25rem}.text-secondary{--tw-text-opacity: 1;color:rgba(102,102,102,var(--tw-text-opacity))}.text-smart{--tw-text-opacity: 1;color:rgba(114,46,209,var(--tw-text-opacity))}.text-classic{--tw-text-opacity: 1;color:rgba(24,144,255,var(--tw-text-opacity))}*,:before,:after{--tw-shadow: 0 0 #0000}*,:before,:after{--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgba(59, 130, 246, .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000}.filter{--tw-blur: var(--tw-empty, );--tw-brightness: var(--tw-empty, );--tw-contrast: var(--tw-empty, );--tw-grayscale: var(--tw-empty, );--tw-hue-rotate: var(--tw-empty, );--tw-invert: var(--tw-empty, );--tw-saturate: var(--tw-empty, );--tw-sepia: var(--tw-empty, );--tw-drop-shadow: var(--tw-empty, );filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.blur{--tw-blur: blur(8px)}.btn-divider[data-v-599bdbb2]{margin-bottom:0!important;margin-top:12px!important}.beta[data-v-1114aea6]{line-height:20px;border-radius:15px;background-color:red;color:#fff;padding:0 3.5px;margin:0 5px}.min-w-80[data-v-72ef9bd2]{min-width:320px}.ant-popover{z-index:9999!important}.ant-popover .ant-popover-inner-content{padding:8px 16px}.container[data-v-1c53738a]{border:1px solid #cccccc;border-radius:6px;padding:0 4px;min-height:30px;cursor:pointer}.block[data-v-1c53738a]{display:block}.tags-container[data-v-18554545]{word-break:keep-all;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.taskTemplateInline[data-v-c5d917d8]{float:right}a.taskTemplateInline[data-v-c5d917d8]{margin-left:10px}div.taskTemplateInline[data-v-c5d917d8]{margin-top:5px!important}.task-cart-main-modal[data-v-697d89e6] .ant-modal-body{padding-bottom:0}
package/dist/venus.es.js CHANGED
@@ -163,6 +163,9 @@ const meQuery = gql`
163
163
  me {
164
164
  id
165
165
  lawFirmId
166
+ lawFirm {
167
+ licenseTags
168
+ }
166
169
  }
167
170
  }
168
171
  `;
@@ -170,7 +173,14 @@ function useMe() {
170
173
  const { result } = useQuery(meQuery, void 0, {
171
174
  fetchPolicy: "cache-first"
172
175
  });
173
- return useResult(result);
176
+ return useResult(result, {
177
+ id: "",
178
+ lawFirmId: -1,
179
+ lawFirm: {
180
+ id: -1,
181
+ licenseTags: []
182
+ }
183
+ });
174
184
  }
175
185
  const profilesQuery = gql`
176
186
  query ProfileSearch(
@@ -1451,7 +1461,6 @@ var eoir29 = createForm({
1451
1461
  displayName: "EOIR-29",
1452
1462
  roles: {
1453
1463
  Beneficiary: [GlueRoleType.USERPROFILE],
1454
- Petitioner: [GlueRoleType.USERPROFILE],
1455
1464
  Preparer: [GlueRoleType.PREPARERPROFILE]
1456
1465
  }
1457
1466
  });
@@ -1462,19 +1471,6 @@ var i526e = createForm({
1462
1471
  Preparer: [GlueRoleType.PREPARERPROFILE]
1463
1472
  }
1464
1473
  });
1465
- var i407 = createForm({
1466
- displayName: "I-407",
1467
- roles: {
1468
- Beneficiary: [GlueRoleType.USERPROFILE]
1469
- }
1470
- });
1471
- var eoir26 = createForm({
1472
- displayName: "EOIR-26",
1473
- roles: {
1474
- Beneficiary: [GlueRoleType.USERPROFILE],
1475
- Preparer: [GlueRoleType.PREPARERPROFILE]
1476
- }
1477
- });
1478
1474
  const formRecords = {
1479
1475
  g28Company,
1480
1476
  g28Person,
@@ -1551,9 +1547,7 @@ const formRecords = {
1551
1547
  n600,
1552
1548
  eoir27,
1553
1549
  eoir29,
1554
- i526e,
1555
- i407,
1556
- eoir26
1550
+ i526e
1557
1551
  };
1558
1552
  var index$2 = Object.values(formRecords);
1559
1553
  const acceptableFormats = [
@@ -1966,6 +1960,26 @@ function __vue2_injectStyles$8(context) {
1966
1960
  var TaskForm = /* @__PURE__ */ function() {
1967
1961
  return __component__$8.exports;
1968
1962
  }();
1963
+ var useLicenseTagConfirm = () => {
1964
+ const me = useMe();
1965
+ const family = Portal.familyBase;
1966
+ const ailaw = Portal.ailaw;
1967
+ return (callBack) => {
1968
+ var _a;
1969
+ if (+((_a = me.value) == null ? void 0 : _a.lawFirmId) === 29) {
1970
+ Modal.confirm({
1971
+ title: "Choose License",
1972
+ content: "Is this data for Immigration or FamilyLaw ?",
1973
+ okText: "Family Base",
1974
+ cancelText: "Immigration Base",
1975
+ onOk: () => callBack && callBack(family),
1976
+ onCancel: () => callBack && callBack(ailaw)
1977
+ });
1978
+ } else {
1979
+ callBack(me.value.lawFirm.licenseTags[0]);
1980
+ }
1981
+ };
1982
+ };
1969
1983
  var __vue2_script$7 = defineComponent({
1970
1984
  name: "NewTask",
1971
1985
  components: {
@@ -1993,10 +2007,6 @@ var __vue2_script$7 = defineComponent({
1993
2007
  type: Boolean,
1994
2008
  default: false
1995
2009
  },
1996
- showAllowSubmit: {
1997
- type: Boolean,
1998
- default: false
1999
- },
2000
2010
  uploadFilesFunc: {
2001
2011
  type: Function,
2002
2012
  required: true
@@ -2026,25 +2036,28 @@ var __vue2_script$7 = defineComponent({
2026
2036
  const nameError = ref(false);
2027
2037
  const typeError = ref(false);
2028
2038
  const changeVal = useChangeVal(props, emit);
2039
+ const chooseLicense = useLicenseTagConfirm();
2029
2040
  const submit2 = () => {
2030
2041
  taskForm.value.validFields((passed, ts) => {
2031
- var _a;
2032
2042
  if (passed) {
2033
- const data = {
2034
- taskTemplateObj: __spreadProps(__spreadValues({}, omit(["presetDocs"], ts)), {
2035
- taskName: (_a = ts.taskName) == null ? void 0 : _a.trim(),
2036
- taskType: props.value.taskTemplateObj.taskType,
2037
- tagList: ts.tagList || [],
2038
- descriptions: ts.descriptions || ""
2039
- }),
2040
- selfUserId: props.userId,
2041
- selfLawFirmId: props.lawFirmId,
2042
- taskTemplateId: ts.id,
2043
- isAddedToTask: props.value.isAddedToTask || false,
2044
- isNotified: props.value.isNotified || false,
2045
- allowSubmitWithoutFile: props.value.allowSubmitWithoutFile
2046
- };
2047
- emit("submit", data);
2043
+ chooseLicense((licenseTag) => {
2044
+ var _a;
2045
+ const data = {
2046
+ taskTemplateObj: __spreadProps(__spreadValues({}, omit(["presetDocs"], ts)), {
2047
+ taskName: (_a = ts.taskName) == null ? void 0 : _a.trim(),
2048
+ taskType: props.value.taskTemplateObj.taskType,
2049
+ tagList: ts.tagList || [],
2050
+ descriptions: ts.descriptions || ""
2051
+ }),
2052
+ selfUserId: props.userId,
2053
+ selfLawFirmId: props.lawFirmId,
2054
+ taskTemplateId: ts.id,
2055
+ isAddedToTask: props.value.isAddedToTask || false,
2056
+ isNotified: props.value.isNotified || false,
2057
+ tag: licenseTag
2058
+ };
2059
+ emit("submit", data);
2060
+ });
2048
2061
  }
2049
2062
  });
2050
2063
  };
@@ -2055,7 +2068,6 @@ var __vue2_script$7 = defineComponent({
2055
2068
  selfLawFirmId: props.lawFirmId,
2056
2069
  isAddedToTask: props.value.isAddedToTask,
2057
2070
  isNotified: props.value.isNotified,
2058
- allowSubmitWithoutFile: props.value.allowSubmitWithoutFile,
2059
2071
  taskTemplateObj: __spreadProps(__spreadValues({}, record), {
2060
2072
  isEmployee: record.isEmployee
2061
2073
  })
@@ -2089,14 +2101,12 @@ var render$7 = function() {
2089
2101
  } } }, [_vm._v(_vm._s(_vm.$t("message.cancel")) + " ")])], 1)])];
2090
2102
  }, proxy: true }]) }, [_c("task-form", { ref: "taskForm", attrs: { "upload-files-func": _vm.uploadFilesFunc, "law-firm-id": _vm.lawFirmId, "user-id": _vm.userId, "value": _vm.value.taskTemplateObj }, on: { "update:value": _vm.updateFormValue } }), _vm.showAddToList ? _c("ant-checkbox", { attrs: { "checked": _vm.value.isAddedToTask }, on: { "change": function($event) {
2091
2103
  return _vm.changeVal("isAddedToTask", $event.target.checked);
2092
- } } }, [_vm._v(" " + _vm._s(_vm.$t("message.addToTaskList")) + " ")]) : _vm._e(), _vm.showAllowSubmit ? _c("ant-checkbox", { staticClass: "ml-2", attrs: { "checked": _vm.value.allowSubmitWithoutFile }, on: { "change": function($event) {
2093
- return _vm.changeVal("allowSubmitWithoutFile", $event.target.checked);
2094
- } } }, [_vm._v(" " + _vm._s(_vm.$t("message.allowSubmitWithoutFile")) + " ")]) : _vm._e()], 1);
2104
+ } } }, [_vm._v(" " + _vm._s(_vm.$t("message.addToTaskList")) + " ")]) : _vm._e()], 1);
2095
2105
  };
2096
2106
  var staticRenderFns$7 = [];
2097
2107
  var index_vue_vue_type_style_index_0_scoped_true_lang$2 = "";
2098
2108
  const __cssModules$7 = {};
2099
- var __component__$7 = /* @__PURE__ */ normalizeComponent(__vue2_script$7, render$7, staticRenderFns$7, false, __vue2_injectStyles$7, "6c04e972", null, null);
2109
+ var __component__$7 = /* @__PURE__ */ normalizeComponent(__vue2_script$7, render$7, staticRenderFns$7, false, __vue2_injectStyles$7, "27750318", null, null);
2100
2110
  function __vue2_injectStyles$7(context) {
2101
2111
  for (let o in __cssModules$7) {
2102
2112
  this[o] = __cssModules$7[o];
@@ -2293,25 +2303,33 @@ var TaskTablePure = /* @__PURE__ */ function() {
2293
2303
  return __component__$5.exports;
2294
2304
  }();
2295
2305
  var useSearchTaskTemplates = (pagination, conditions = ref({}), lawFirmId, withGallery = true) => {
2306
+ var _a, _b, _c;
2296
2307
  const startIndex = computed(() => (pagination.value.current - 1) * pagination.value.pageSize);
2297
2308
  const endIndex = computed(() => startIndex.value + pagination.value.pageSize);
2298
2309
  watch(() => conditions.value, () => {
2299
2310
  pagination.value.current = 1;
2300
2311
  pagination.value.total = 0;
2301
2312
  });
2302
- return useQuery(SearchTaskTemplatesQuery, () => ({
2303
- query: {
2304
- includeGallery: withGallery,
2305
- keywords: conditions.value.keywords || "",
2306
- isEmployee: conditions.value.isEmployee,
2307
- taskTemplateId: conditions.value.taskTemplateId,
2308
- sortBy: TaskTemplateSortBy.name,
2309
- sortOrder: SortOrder.asc
2310
- },
2311
- startIndex: startIndex.value,
2312
- endIndex: endIndex.value,
2313
- lawFirmId
2314
- }));
2313
+ const me = useMe();
2314
+ return useQuery(SearchTaskTemplatesQuery, () => {
2315
+ var _a2, _b2;
2316
+ return {
2317
+ query: {
2318
+ includeGallery: withGallery,
2319
+ keywords: conditions.value.keywords || "",
2320
+ isEmployee: conditions.value.isEmployee,
2321
+ taskTemplateId: conditions.value.taskTemplateId,
2322
+ sortBy: TaskTemplateSortBy.name,
2323
+ sortOrder: SortOrder.asc,
2324
+ tags: (_b2 = (_a2 = me.value) == null ? void 0 : _a2.lawFirm) == null ? void 0 : _b2.licenseTags
2325
+ },
2326
+ startIndex: startIndex.value,
2327
+ endIndex: endIndex.value,
2328
+ lawFirmId
2329
+ };
2330
+ }, {
2331
+ enabled: !!((_c = (_b = (_a = me.value) == null ? void 0 : _a.lawFirm) == null ? void 0 : _b.licenseTags) == null ? void 0 : _c.length)
2332
+ });
2315
2333
  };
2316
2334
  const taskTemplateFragment = gql`
2317
2335
  fragment taskTemplate on TaskTemplate {
@@ -2731,11 +2749,13 @@ const CreateTaskTemplateMutation = gql`
2731
2749
  $selfUserId: Int!
2732
2750
  $selfLawFirmId: Int!
2733
2751
  $taskTemplateObj: TaskTemplateInput!
2752
+ $tag: String!
2734
2753
  ) {
2735
2754
  createTaskTemplate(
2736
2755
  selfUserId: $selfUserId
2737
2756
  selfLawFirmId: $selfLawFirmId
2738
2757
  taskTemplateObj: $taskTemplateObj
2758
+ tag: $tag
2739
2759
  ) {
2740
2760
  code
2741
2761
  message
@@ -2893,6 +2913,7 @@ var __vue2_script$1 = defineComponent({
2893
2913
  });
2894
2914
  };
2895
2915
  const _submit = async (record) => {
2916
+ record.tag = me.value.lawFirm.licenseTags[0];
2896
2917
  const { newRecord, success, isUpdate } = await submit(record, updateTemplate, createTemplate);
2897
2918
  if (success) {
2898
2919
  writeQuery(record.taskTemplateId, newRecord, isUpdate);
@@ -2983,7 +3004,7 @@ var render$1 = function() {
2983
3004
  var staticRenderFns$1 = [];
2984
3005
  var index_vue_vue_type_style_index_0_scoped_true_lang = "";
2985
3006
  const __cssModules$1 = {};
2986
- var __component__$1 = /* @__PURE__ */ normalizeComponent(__vue2_script$1, render$1, staticRenderFns$1, false, __vue2_injectStyles$1, "466cfa4a", null, null);
3007
+ var __component__$1 = /* @__PURE__ */ normalizeComponent(__vue2_script$1, render$1, staticRenderFns$1, false, __vue2_injectStyles$1, "183a0848", null, null);
2987
3008
  function __vue2_injectStyles$1(context) {
2988
3009
  for (let o in __cssModules$1) {
2989
3010
  this[o] = __cssModules$1[o];
@@ -3021,4 +3042,10 @@ function __vue2_injectStyles(context) {
3021
3042
  var index = /* @__PURE__ */ function() {
3022
3043
  return __component__.exports;
3023
3044
  }();
3024
- 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, caseTemplateFilter, formRecords, index$2 as forms, getLanguageMessage, refactorParams as refactorTaskTemplateParams, submit as submitTaskTemplate, useCreateTaskTemplate, useMutateTaskTemplate, useSearchTaskConditions, useSearchTaskTemplates };
3045
+ var Portal = {
3046
+ ailaw: "Immigration",
3047
+ familyBase: "FamilyBase",
3048
+ familyCalifornia: "FamilyBase",
3049
+ familyTexas: "FamilyTexas"
3050
+ };
3051
+ export { AFileUploader, AssigneeTag, index$3 as CaseTemplateSelect, CaseTemplateTypeBadge, GlueRoleType, NewTask, Portal, index$4 as ProfileSelect, TagsWithTooltip, index$1 as TaskCart, TaskForm, TaskTable, TaskTemplateFilter, index as TestComponent, caseTemplateFilter, formRecords, index$2 as forms, getLanguageMessage, refactorParams as refactorTaskTemplateParams, submit as submitTaskTemplate, useCreateTaskTemplate, useLicenseTagConfirm, useMutateTaskTemplate, useSearchTaskConditions, useSearchTaskTemplates };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ailaw/venus",
3
- "version": "1.121.0",
3
+ "version": "1.122.0-family",
4
4
  "files": [
5
5
  "dist"
6
6
  ],