@ailaw/venus 1.110.0 → 100.112.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 +43 -16
- package/package.json +1 -1
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(
|
@@ -2269,25 +2279,33 @@ var TaskTablePure = /* @__PURE__ */ function() {
|
|
2269
2279
|
return __component__$5.exports;
|
2270
2280
|
}();
|
2271
2281
|
var useSearchTaskTemplates = (pagination, conditions = ref({}), lawFirmId, withGallery = true) => {
|
2282
|
+
var _a, _b, _c;
|
2272
2283
|
const startIndex = computed(() => (pagination.value.current - 1) * pagination.value.pageSize);
|
2273
2284
|
const endIndex = computed(() => startIndex.value + pagination.value.pageSize);
|
2274
2285
|
watch(() => conditions.value, () => {
|
2275
2286
|
pagination.value.current = 1;
|
2276
2287
|
pagination.value.total = 0;
|
2277
2288
|
});
|
2278
|
-
|
2279
|
-
|
2280
|
-
|
2281
|
-
|
2282
|
-
|
2283
|
-
|
2284
|
-
|
2285
|
-
|
2286
|
-
|
2287
|
-
|
2288
|
-
|
2289
|
-
|
2290
|
-
|
2289
|
+
const me = useMe();
|
2290
|
+
return useQuery(SearchTaskTemplatesQuery, () => {
|
2291
|
+
var _a2, _b2;
|
2292
|
+
return {
|
2293
|
+
query: {
|
2294
|
+
includeGallery: withGallery,
|
2295
|
+
keywords: conditions.value.keywords || "",
|
2296
|
+
isEmployee: conditions.value.isEmployee,
|
2297
|
+
taskTemplateId: conditions.value.taskTemplateId,
|
2298
|
+
sortBy: TaskTemplateSortBy.name,
|
2299
|
+
sortOrder: SortOrder.asc,
|
2300
|
+
tags: (_b2 = (_a2 = me.value) == null ? void 0 : _a2.lawFirm) == null ? void 0 : _b2.licenseTags
|
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
|
+
});
|
2291
2309
|
};
|
2292
2310
|
const taskTemplateFragment = gql`
|
2293
2311
|
fragment taskTemplate on TaskTemplate {
|
@@ -2707,11 +2725,13 @@ const CreateTaskTemplateMutation = gql`
|
|
2707
2725
|
$selfUserId: Int!
|
2708
2726
|
$selfLawFirmId: Int!
|
2709
2727
|
$taskTemplateObj: TaskTemplateInput!
|
2728
|
+
$tag: String!
|
2710
2729
|
) {
|
2711
2730
|
createTaskTemplate(
|
2712
2731
|
selfUserId: $selfUserId
|
2713
2732
|
selfLawFirmId: $selfLawFirmId
|
2714
2733
|
taskTemplateObj: $taskTemplateObj
|
2734
|
+
tag: $tag
|
2715
2735
|
) {
|
2716
2736
|
code
|
2717
2737
|
message
|
@@ -2869,6 +2889,7 @@ var __vue2_script$1 = defineComponent({
|
|
2869
2889
|
});
|
2870
2890
|
};
|
2871
2891
|
const _submit = async (record) => {
|
2892
|
+
record.tag = me.value.lawFirm.licenseTags[0];
|
2872
2893
|
const { newRecord, success, isUpdate } = await submit(record, updateTemplate, createTemplate);
|
2873
2894
|
if (success) {
|
2874
2895
|
writeQuery(record.taskTemplateId, newRecord, isUpdate);
|
@@ -2959,7 +2980,7 @@ var render$1 = function() {
|
|
2959
2980
|
var staticRenderFns$1 = [];
|
2960
2981
|
var index_vue_vue_type_style_index_0_scoped_true_lang = "";
|
2961
2982
|
const __cssModules$1 = {};
|
2962
|
-
var __component__$1 = /* @__PURE__ */ normalizeComponent(__vue2_script$1, render$1, staticRenderFns$1, false, __vue2_injectStyles$1, "
|
2983
|
+
var __component__$1 = /* @__PURE__ */ normalizeComponent(__vue2_script$1, render$1, staticRenderFns$1, false, __vue2_injectStyles$1, "183a0848", null, null);
|
2963
2984
|
function __vue2_injectStyles$1(context) {
|
2964
2985
|
for (let o in __cssModules$1) {
|
2965
2986
|
this[o] = __cssModules$1[o];
|
@@ -2997,4 +3018,10 @@ function __vue2_injectStyles(context) {
|
|
2997
3018
|
var index = /* @__PURE__ */ function() {
|
2998
3019
|
return __component__.exports;
|
2999
3020
|
}();
|
3000
|
-
|
3021
|
+
var portal = {
|
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 };
|