@ailaw/venus 1.109.0 → 1.113.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.
- package/dist/venus.es.js +16 -43
- package/package.json +1 -1
package/dist/venus.es.js
CHANGED
|
@@ -163,9 +163,6 @@ const meQuery = gql`
|
|
|
163
163
|
me {
|
|
164
164
|
id
|
|
165
165
|
lawFirmId
|
|
166
|
-
lawFirm {
|
|
167
|
-
licenseTags
|
|
168
|
-
}
|
|
169
166
|
}
|
|
170
167
|
}
|
|
171
168
|
`;
|
|
@@ -173,14 +170,7 @@ function useMe() {
|
|
|
173
170
|
const { result } = useQuery(meQuery, void 0, {
|
|
174
171
|
fetchPolicy: "cache-first"
|
|
175
172
|
});
|
|
176
|
-
return useResult(result
|
|
177
|
-
id: "",
|
|
178
|
-
lawFirmId: -1,
|
|
179
|
-
lawFirm: {
|
|
180
|
-
id: -1,
|
|
181
|
-
licenseTags: []
|
|
182
|
-
}
|
|
183
|
-
});
|
|
173
|
+
return useResult(result);
|
|
184
174
|
}
|
|
185
175
|
const profilesQuery = gql`
|
|
186
176
|
query ProfileSearch(
|
|
@@ -2279,33 +2269,25 @@ var TaskTablePure = /* @__PURE__ */ function() {
|
|
|
2279
2269
|
return __component__$5.exports;
|
|
2280
2270
|
}();
|
|
2281
2271
|
var useSearchTaskTemplates = (pagination, conditions = ref({}), lawFirmId, withGallery = true) => {
|
|
2282
|
-
var _a, _b, _c;
|
|
2283
2272
|
const startIndex = computed(() => (pagination.value.current - 1) * pagination.value.pageSize);
|
|
2284
2273
|
const endIndex = computed(() => startIndex.value + pagination.value.pageSize);
|
|
2285
2274
|
watch(() => conditions.value, () => {
|
|
2286
2275
|
pagination.value.current = 1;
|
|
2287
2276
|
pagination.value.total = 0;
|
|
2288
2277
|
});
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
startIndex: startIndex.value,
|
|
2303
|
-
endIndex: endIndex.value,
|
|
2304
|
-
lawFirmId
|
|
2305
|
-
};
|
|
2306
|
-
}, {
|
|
2307
|
-
enabled: !!((_c = (_b = (_a = me.value) == null ? void 0 : _a.lawFirm) == null ? void 0 : _b.licenseTags) == null ? void 0 : _c.length)
|
|
2308
|
-
});
|
|
2278
|
+
return useQuery(SearchTaskTemplatesQuery, () => ({
|
|
2279
|
+
query: {
|
|
2280
|
+
includeGallery: withGallery,
|
|
2281
|
+
keywords: conditions.value.keywords || "",
|
|
2282
|
+
isEmployee: conditions.value.isEmployee,
|
|
2283
|
+
taskTemplateId: conditions.value.taskTemplateId,
|
|
2284
|
+
sortBy: TaskTemplateSortBy.name,
|
|
2285
|
+
sortOrder: SortOrder.asc
|
|
2286
|
+
},
|
|
2287
|
+
startIndex: startIndex.value,
|
|
2288
|
+
endIndex: endIndex.value,
|
|
2289
|
+
lawFirmId
|
|
2290
|
+
}));
|
|
2309
2291
|
};
|
|
2310
2292
|
const taskTemplateFragment = gql`
|
|
2311
2293
|
fragment taskTemplate on TaskTemplate {
|
|
@@ -2725,13 +2707,11 @@ const CreateTaskTemplateMutation = gql`
|
|
|
2725
2707
|
$selfUserId: Int!
|
|
2726
2708
|
$selfLawFirmId: Int!
|
|
2727
2709
|
$taskTemplateObj: TaskTemplateInput!
|
|
2728
|
-
$tag: String!
|
|
2729
2710
|
) {
|
|
2730
2711
|
createTaskTemplate(
|
|
2731
2712
|
selfUserId: $selfUserId
|
|
2732
2713
|
selfLawFirmId: $selfLawFirmId
|
|
2733
2714
|
taskTemplateObj: $taskTemplateObj
|
|
2734
|
-
tag: $tag
|
|
2735
2715
|
) {
|
|
2736
2716
|
code
|
|
2737
2717
|
message
|
|
@@ -2889,7 +2869,6 @@ var __vue2_script$1 = defineComponent({
|
|
|
2889
2869
|
});
|
|
2890
2870
|
};
|
|
2891
2871
|
const _submit = async (record) => {
|
|
2892
|
-
record.tag = me.value.lawFirm.licenseTags[0];
|
|
2893
2872
|
const { newRecord, success, isUpdate } = await submit(record, updateTemplate, createTemplate);
|
|
2894
2873
|
if (success) {
|
|
2895
2874
|
writeQuery(record.taskTemplateId, newRecord, isUpdate);
|
|
@@ -2980,7 +2959,7 @@ var render$1 = function() {
|
|
|
2980
2959
|
var staticRenderFns$1 = [];
|
|
2981
2960
|
var index_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
2982
2961
|
const __cssModules$1 = {};
|
|
2983
|
-
var __component__$1 = /* @__PURE__ */ normalizeComponent(__vue2_script$1, render$1, staticRenderFns$1, false, __vue2_injectStyles$1, "
|
|
2962
|
+
var __component__$1 = /* @__PURE__ */ normalizeComponent(__vue2_script$1, render$1, staticRenderFns$1, false, __vue2_injectStyles$1, "466cfa4a", null, null);
|
|
2984
2963
|
function __vue2_injectStyles$1(context) {
|
|
2985
2964
|
for (let o in __cssModules$1) {
|
|
2986
2965
|
this[o] = __cssModules$1[o];
|
|
@@ -3018,10 +2997,4 @@ function __vue2_injectStyles(context) {
|
|
|
3018
2997
|
var index = /* @__PURE__ */ function() {
|
|
3019
2998
|
return __component__.exports;
|
|
3020
2999
|
}();
|
|
3021
|
-
|
|
3022
|
-
ailaw: "Immigration",
|
|
3023
|
-
familyBase: "FamilyBase",
|
|
3024
|
-
familyCalifornia: "FamilyBase",
|
|
3025
|
-
familyTexas: "FamilyTexas"
|
|
3026
|
-
};
|
|
3027
|
-
export { AFileUploader, AssigneeTag, index$3 as CaseTemplateSelect, CaseTemplateTypeBadge, GlueRoleType, NewTask, portal as 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, useMutateTaskTemplate, useSearchTaskConditions, useSearchTaskTemplates };
|
|
3000
|
+
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 };
|