@ailaw/venus 0.4.4 → 0.5.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/en3.js CHANGED
@@ -819,6 +819,7 @@ var lang3 = {
819
819
  selectedEmailAddresses: "email addresses have been selected.",
820
820
  StartDate: "Start Date",
821
821
  caseTemplateManagement: "Case Template Management",
822
+ caseTemplate: "Case Template",
822
823
  caseTemplates: "Case Templates",
823
824
  selectSourceTemplate: "Select Source Template",
824
825
  fromGallery: "From Gallery",
@@ -833,6 +834,11 @@ var lang3 = {
833
834
  changeNotSave: "Do you want to leave this page? Your changes won't be saved.",
834
835
  deleteCaseTemplate: "Do you confirm to delete this case template? This action is permanent and cannot be undone.",
835
836
  noTemplateSelected: "Select a template/case to preview",
837
+ smart: "Smart",
838
+ classic: "Classic",
839
+ custom: "Custom",
840
+ gallery: "Gallery",
841
+ templates: "Templates",
836
842
  taskName: "Task Name",
837
843
  assignee: "Assignee",
838
844
  descriptions: "Descriptions",
@@ -871,6 +877,9 @@ var lang3 = {
871
877
  searchTaskPlaceholder: "Search Task name/Tag",
872
878
  taskManagement: "Task Management",
873
879
  addFromList: "Add from list",
874
- createANewTask: "Create a new task"
880
+ createANewTask: "Create a new task",
881
+ choosePreparer: "Choose a preparer",
882
+ choosePetitioner: "Choose a petitioner",
883
+ chooseIndividual: "Choose an individual"
875
884
  };
876
885
  export { lang3 as default };
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}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mr-2{margin-right:.5rem}.mb-5{margin-bottom:1.25rem}.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}.justify-end{justify-content:flex-end}.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)))}.border{border-width:1px}.p-4{padding:1rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.capitalize{text-transform:capitalize}.text-secondary{--tw-text-opacity: 1;color:rgba(102,102,102,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)}.container[data-v-17f08d86]{border:1px solid #cccccc;border-radius:6px;padding:0 4px;min-height:30px;cursor:pointer}.tags-container[data-v-18554545]{word-break:keep-all;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.taskTemplateInline[data-v-c3a26010]{float:right}a.taskTemplateInline[data-v-c3a26010]{margin-left:10px}div.taskTemplateInline[data-v-c3a26010]{margin-top:5px!important}
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}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mr-2{margin-right:.5rem}.mb-5{margin-bottom:1.25rem}.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}.justify-end{justify-content:flex-end}.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}.px-3{padding-left:.75rem;padding-right:.75rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.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)}.min-w-80[data-v-5ca33108]{min-width:320px}.container[data-v-38dac57e]{border:1px solid #cccccc;border-radius:6px;padding:0 4px;min-height:30px;cursor:pointer}.tags-container[data-v-18554545]{word-break:keep-all;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.taskTemplateInline[data-v-c3a26010]{float:right}a.taskTemplateInline[data-v-c3a26010]{margin-left:10px}div.taskTemplateInline[data-v-c3a26010]{margin-top:5px!important}
package/dist/venus.es.js CHANGED
@@ -17,12 +17,12 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import { defineComponent, ref, watch, computed, toRefs, getCurrentScope, shallowRef } from "vue-demi";
20
+ import { defineComponent, ref, watch, reactive, computed, toRefs, getCurrentScope, shallowRef } from "vue-demi";
21
21
  import { Select, Modal, Form, Input, Checkbox, Divider, Button, Upload, Tag, Tooltip, Row, Col, Radio, Popconfirm, Table, Badge, Card, message } from "ant-design-vue";
22
22
  import { useQuery, useResult, useMutation, useApolloClient } from "@vue/apollo-composable";
23
23
  import gql from "graphql-tag";
24
24
  import { path, uniqBy, prop } from "ramda";
25
- var index$4 = "";
25
+ var index$5 = "";
26
26
  function __variableDynamicImportRuntime0__$1(path2) {
27
27
  switch (path2) {
28
28
  case "./icons/attorney.svg":
@@ -37,7 +37,7 @@ function __variableDynamicImportRuntime0__$1(path2) {
37
37
  });
38
38
  }
39
39
  }
40
- var __vue2_script$h = defineComponent({
40
+ var __vue2_script$k = defineComponent({
41
41
  props: {
42
42
  type: {
43
43
  type: String,
@@ -64,13 +64,13 @@ var __vue2_script$h = defineComponent({
64
64
  return { iconUrl };
65
65
  }
66
66
  });
67
- var render$h = function() {
67
+ var render$k = function() {
68
68
  var _vm = this;
69
69
  var _h = _vm.$createElement;
70
70
  var _c = _vm._self._c || _h;
71
71
  return _c("img", { staticClass: "w-6 h-6", attrs: { "src": _vm.iconUrl, "alt": _vm.type } });
72
72
  };
73
- var staticRenderFns$h = [];
73
+ var staticRenderFns$k = [];
74
74
  function normalizeComponent(scriptExports, render2, staticRenderFns2, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
75
75
  var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
76
76
  if (render2) {
@@ -122,17 +122,17 @@ function normalizeComponent(scriptExports, render2, staticRenderFns2, functional
122
122
  options
123
123
  };
124
124
  }
125
- const __cssModules$h = {};
126
- var __component__$h = /* @__PURE__ */ normalizeComponent(__vue2_script$h, render$h, staticRenderFns$h, false, __vue2_injectStyles$h, null, null, null);
127
- function __vue2_injectStyles$h(context) {
128
- for (let o in __cssModules$h) {
129
- this[o] = __cssModules$h[o];
125
+ const __cssModules$k = {};
126
+ var __component__$k = /* @__PURE__ */ normalizeComponent(__vue2_script$k, render$k, staticRenderFns$k, false, __vue2_injectStyles$k, null, null, null);
127
+ function __vue2_injectStyles$k(context) {
128
+ for (let o in __cssModules$k) {
129
+ this[o] = __cssModules$k[o];
130
130
  }
131
131
  }
132
132
  var ProfileTypeIcon = /* @__PURE__ */ function() {
133
- return __component__$h.exports;
133
+ return __component__$k.exports;
134
134
  }();
135
- var __vue2_script$g = defineComponent({
135
+ var __vue2_script$j = defineComponent({
136
136
  props: {
137
137
  source: {
138
138
  type: Object,
@@ -141,22 +141,22 @@ var __vue2_script$g = defineComponent({
141
141
  },
142
142
  components: { ProfileTypeIcon }
143
143
  });
144
- var render$g = function() {
144
+ var render$j = function() {
145
145
  var _vm = this;
146
146
  var _h = _vm.$createElement;
147
147
  var _c = _vm._self._c || _h;
148
148
  return _c("div", { staticClass: "flex space-x-1 items-center" }, [_c("ProfileTypeIcon", { attrs: { "type": _vm.source.profileType } }), _c("div", { staticClass: "text-secondary" }, [_vm._v(_vm._s(_vm.source.profileName))])], 1);
149
149
  };
150
- var staticRenderFns$g = [];
151
- const __cssModules$g = {};
152
- var __component__$g = /* @__PURE__ */ normalizeComponent(__vue2_script$g, render$g, staticRenderFns$g, false, __vue2_injectStyles$g, null, null, null);
153
- function __vue2_injectStyles$g(context) {
154
- for (let o in __cssModules$g) {
155
- this[o] = __cssModules$g[o];
150
+ var staticRenderFns$j = [];
151
+ const __cssModules$j = {};
152
+ var __component__$j = /* @__PURE__ */ normalizeComponent(__vue2_script$j, render$j, staticRenderFns$j, false, __vue2_injectStyles$j, null, null, null);
153
+ function __vue2_injectStyles$j(context) {
154
+ for (let o in __cssModules$j) {
155
+ this[o] = __cssModules$j[o];
156
156
  }
157
157
  }
158
158
  var ProfileSelectItem = /* @__PURE__ */ function() {
159
- return __component__$g.exports;
159
+ return __component__$j.exports;
160
160
  }();
161
161
  const meQuery = gql`
162
162
  query Me {
@@ -192,27 +192,37 @@ const profilesQuery = gql`
192
192
  id
193
193
  profileType
194
194
  profileName
195
+ accountList {
196
+ id
197
+ email
198
+ }
195
199
  }
196
200
  }
197
201
  }
198
202
  `;
199
203
  const addProfileUserMutation = gql`
200
- mutation addProfileUser(
201
- $email: String
202
- $name: String
203
- $petitionerProfileName: String
204
+ mutation AddProfileUser(
204
205
  $lawFirmId: Int!
206
+ $name: String!
207
+ $profileType: ProfileType
208
+ $email: String!
209
+ $sendEmail: Boolean!
205
210
  ) {
206
- addProfileUserNoNotify(
207
- email: $email
208
- name: $name
209
- petitionerProfileName: $petitionerProfileName
211
+ addProfileUser(
210
212
  selfLawFirmId: $lawFirmId
213
+ name: $name
214
+ profileType: $profileType
215
+ email: $email
216
+ sendEmail: $sendEmail
211
217
  ) {
212
218
  profile {
213
219
  id
214
220
  profileName
215
221
  profileType
222
+ accountList {
223
+ id
224
+ email
225
+ }
216
226
  }
217
227
  }
218
228
  }
@@ -220,19 +230,12 @@ const addProfileUserMutation = gql`
220
230
  function useCreateProfile() {
221
231
  const me = useMe();
222
232
  const { mutate, loading } = useMutation(addProfileUserMutation);
223
- const createProfile = async (profile) => {
233
+ const createProfile = async (variables) => {
224
234
  var _a;
225
- const variables = {
226
- email: profile.email,
235
+ const result = await mutate(__spreadProps(__spreadValues({}, variables), {
227
236
  lawFirmId: (_a = me.value) == null ? void 0 : _a.lawFirmId
228
- };
229
- if (profile.profileType === "USERPROFILE") {
230
- variables.name = profile.profileName;
231
- } else {
232
- variables.petitionerProfileName = profile.profileName;
233
- }
234
- const result = await mutate(variables);
235
- return path(["data", "addProfileUserNoNotify", "profile"], result);
237
+ }));
238
+ return path(["data", "addProfileUser", "profile"], result);
236
239
  };
237
240
  return { createProfile, loading };
238
241
  }
@@ -241,7 +244,7 @@ const profileTypes = {
241
244
  CLIENTPROFILE: "Company",
242
245
  PREPARERPROFILE: "Attorney"
243
246
  };
244
- var __vue2_script$f = defineComponent({
247
+ var __vue2_script$i = defineComponent({
245
248
  props: {
246
249
  value: {
247
250
  type: String
@@ -261,7 +264,7 @@ var __vue2_script$f = defineComponent({
261
264
  return { profileTypes, handleChange };
262
265
  }
263
266
  });
264
- var render$f = function() {
267
+ var render$i = function() {
265
268
  var _vm = this;
266
269
  var _h = _vm.$createElement;
267
270
  var _c = _vm._self._c || _h;
@@ -269,18 +272,18 @@ var render$f = function() {
269
272
  return _c("Option", { key, attrs: { "value": key } }, [_c("div", { staticClass: "flex items-center space-x-1" }, [_c("ProfileTypeIcon", { attrs: { "type": key } }), _c("div", { staticClass: "text-secondary" }, [_vm._v(_vm._s(_vm.profileTypes[key]))])], 1)]);
270
273
  }), 1);
271
274
  };
272
- var staticRenderFns$f = [];
273
- const __cssModules$f = {};
274
- var __component__$f = /* @__PURE__ */ normalizeComponent(__vue2_script$f, render$f, staticRenderFns$f, false, __vue2_injectStyles$f, null, null, null);
275
- function __vue2_injectStyles$f(context) {
276
- for (let o in __cssModules$f) {
277
- this[o] = __cssModules$f[o];
275
+ var staticRenderFns$i = [];
276
+ const __cssModules$i = {};
277
+ var __component__$i = /* @__PURE__ */ normalizeComponent(__vue2_script$i, render$i, staticRenderFns$i, false, __vue2_injectStyles$i, null, null, null);
278
+ function __vue2_injectStyles$i(context) {
279
+ for (let o in __cssModules$i) {
280
+ this[o] = __cssModules$i[o];
278
281
  }
279
282
  }
280
283
  var ProfileTypeSelect = /* @__PURE__ */ function() {
281
- return __component__$f.exports;
284
+ return __component__$i.exports;
282
285
  }();
283
- var __vue2_script$e = defineComponent({
286
+ var __vue2_script$h = defineComponent({
284
287
  components: {
285
288
  Modal,
286
289
  Form,
@@ -290,26 +293,35 @@ var __vue2_script$e = defineComponent({
290
293
  Checkbox
291
294
  },
292
295
  setup(_, { emit }) {
293
- const value = ref({});
294
- const shouldSendPassword = ref(false);
295
- const canSubmit = computed(() => value.value.profileName && value.value.profileType);
296
+ const value = reactive({
297
+ profileType: void 0,
298
+ name: "",
299
+ email: "",
300
+ sendEmail: false
301
+ });
302
+ const canSubmit = computed(() => {
303
+ if (value.name === "" || value.profileType == null)
304
+ return false;
305
+ if (value.email !== "" && !value.email.includes("@"))
306
+ return false;
307
+ return true;
308
+ });
296
309
  const rules = {
297
310
  profileType: { required: true },
298
- profileName: { required: true },
311
+ name: { required: true },
299
312
  email: { type: "email" }
300
313
  };
301
- const clearValue = () => value.value = {};
314
+ const clearValue = () => Object.assign(value, {});
302
315
  const { createProfile, loading } = useCreateProfile();
303
316
  const hide = () => emit("cancel");
304
317
  const handleSubmit = async () => {
305
- const profile = await createProfile(value.value);
318
+ const profile = await createProfile(value);
306
319
  hide();
307
320
  emit("profile-created", profile);
308
321
  };
309
322
  return {
310
323
  value,
311
324
  rules,
312
- shouldSendPassword,
313
325
  clearValue,
314
326
  loading,
315
327
  canSubmit,
@@ -317,40 +329,36 @@ var __vue2_script$e = defineComponent({
317
329
  };
318
330
  }
319
331
  });
320
- var render$e = function() {
332
+ var render$h = function() {
321
333
  var _vm = this;
322
334
  var _h = _vm.$createElement;
323
335
  var _c = _vm._self._c || _h;
324
- return _c("modal", _vm._g(_vm._b({ attrs: { "closable": false, "ok-text": "Create", "width": 320, "okButtonProps": { props: { disabled: !_vm.canSubmit, loading: _vm.loading } } }, on: { "cancel": _vm.clearValue, "ok": _vm.handleSubmit } }, "modal", _vm.$attrs, false), _vm.$listeners), [_c("Form", { attrs: { "layout": "vertical", "validate-trigger": "blur", "model": _vm.value, "rules": _vm.rules } }, [_c("form-item", { attrs: { "label": "Profile type", "name": "profileType" } }, [_c("profile-type-select", { attrs: { "enabledTypes": ["USERPROFILE", "CLIENTPROFILE"] }, model: { value: _vm.value.profileType, callback: function($$v) {
336
+ return _c("modal", _vm._g(_vm._b({ attrs: { "closable": false, "ok-text": "Create", "width": 320, "okButtonProps": { props: { disabled: !_vm.canSubmit, loading: _vm.loading } } }, on: { "cancel": _vm.clearValue, "ok": _vm.handleSubmit } }, "modal", _vm.$attrs, false), _vm.$listeners), [_c("Form", { attrs: { "layout": "vertical", "validate-trigger": "blur", "model": _vm.value, "rules": _vm.rules } }, [_c("form-item", { attrs: { "label": "Profile type", "prop": "profileType" } }, [_c("profile-type-select", { attrs: { "enabledTypes": ["USERPROFILE", "CLIENTPROFILE"] }, model: { value: _vm.value.profileType, callback: function($$v) {
325
337
  _vm.$set(_vm.value, "profileType", $$v);
326
- }, expression: "value.profileType" } })], 1), _c("form-item", { attrs: { "label": "Name", "name": "profileName" } }, [_c("Input", { model: { value: _vm.value.profileName, callback: function($$v) {
327
- _vm.$set(_vm.value, "profileName", $$v);
328
- }, expression: "value.profileName" } })], 1), _c("form-item", { attrs: { "label": "Email" } }, [_c("Input", { model: { value: _vm.value.email, callback: function($$v) {
338
+ }, expression: "value.profileType" } })], 1), _c("form-item", { attrs: { "label": "Name", "prop": "name" } }, [_c("Input", { model: { value: _vm.value.name, callback: function($$v) {
339
+ _vm.$set(_vm.value, "name", $$v);
340
+ }, expression: "value.name" } })], 1), _c("form-item", { attrs: { "label": "Email", "prop": "email" } }, [_c("Input", { model: { value: _vm.value.email, callback: function($$v) {
329
341
  _vm.$set(_vm.value, "email", $$v);
330
- }, expression: "value.email" } })], 1), _c("form-item", [_c("checkbox", { model: { value: _vm.shouldSendPassword, callback: function($$v) {
331
- _vm.shouldSendPassword = $$v;
332
- }, expression: "shouldSendPassword" } }, [_vm._v("Send client portal login password (System will email client a login password)")])], 1)], 1)], 1);
342
+ }, expression: "value.email" } })], 1), _c("form-item", [_c("checkbox", { model: { value: _vm.value.sendEmail, callback: function($$v) {
343
+ _vm.$set(_vm.value, "sendEmail", $$v);
344
+ }, expression: "value.sendEmail" } }, [_vm._v("Send client portal login password (System will email client a login password)")])], 1)], 1)], 1);
333
345
  };
334
- var staticRenderFns$e = [];
335
- const __cssModules$e = {};
336
- var __component__$e = /* @__PURE__ */ normalizeComponent(__vue2_script$e, render$e, staticRenderFns$e, false, __vue2_injectStyles$e, null, null, null);
337
- function __vue2_injectStyles$e(context) {
338
- for (let o in __cssModules$e) {
339
- this[o] = __cssModules$e[o];
346
+ var staticRenderFns$h = [];
347
+ const __cssModules$h = {};
348
+ var __component__$h = /* @__PURE__ */ normalizeComponent(__vue2_script$h, render$h, staticRenderFns$h, false, __vue2_injectStyles$h, null, null, null);
349
+ function __vue2_injectStyles$h(context) {
350
+ for (let o in __cssModules$h) {
351
+ this[o] = __cssModules$h[o];
340
352
  }
341
353
  }
342
354
  var ProfileCreateModal = /* @__PURE__ */ function() {
343
- return __component__$e.exports;
355
+ return __component__$h.exports;
344
356
  }();
345
- var __vue2_script$d = defineComponent({
357
+ var __vue2_script$g = defineComponent({
346
358
  props: {
347
359
  value: {
348
360
  type: Object
349
361
  },
350
- keywords: {
351
- type: String,
352
- required: true
353
- },
354
362
  source: {
355
363
  type: Array,
356
364
  required: true
@@ -377,36 +385,36 @@ var __vue2_script$d = defineComponent({
377
385
  var _a;
378
386
  return (_a = props.value) == null ? void 0 : _a.id;
379
387
  });
380
- const handleSelect = (value) => emit("input", props.source.find((v) => String(v.id) == value));
388
+ const handleChange = (value) => emit("input", props.source.find((v) => String(v.id) == value));
381
389
  const handleProfileCreate = () => emit("create-profile");
382
390
  return {
383
391
  selectedId,
384
- handleSelect,
392
+ handleChange,
385
393
  handleProfileCreate,
386
394
  menu: {}
387
395
  };
388
396
  }
389
397
  });
390
- var render$d = function() {
398
+ var render$g = function() {
391
399
  var _vm = this;
392
400
  var _h = _vm.$createElement;
393
401
  var _c = _vm._self._c || _h;
394
- return _c("Select", _vm._g(_vm._b({ staticClass: "w-72", attrs: { "allowClear": "", "showSearch": "", "optionFilterProp": "name", "value": _vm.selectedId }, on: { "select": _vm.handleSelect }, scopedSlots: _vm._u([{ key: "dropdownRender", fn: function(menu) {
402
+ return _c("Select", _vm._g(_vm._b({ staticClass: "w-72", attrs: { "allowClear": "", "showSearch": "", "optionFilterProp": "name", "value": _vm.selectedId }, on: { "change": _vm.handleChange }, scopedSlots: _vm._u([{ key: "dropdownRender", fn: function(menu) {
395
403
  return _c("div", {}, [_c("v-nodes", { attrs: { "vnodes": menu } }), _vm.creatable ? _c("Divider", { staticClass: "my-1" }) : _vm._e(), _vm.creatable ? _c("div", { staticClass: "flex justify-end px-3 py-1" }, [_c("Button", { attrs: { "size": "small" }, on: { "click": _vm.handleProfileCreate } }, [_vm._v("Create new profile")])], 1) : _vm._e()], 1);
396
404
  } }]) }, "Select", _vm.$attrs, false), _vm.$listeners), _vm._l(_vm.source, function(v) {
397
405
  return _c("Option", { key: v.id, attrs: { "value": v.id } }, [_c("ProfileSelectItem", { attrs: { "source": v } })], 1);
398
406
  }), 1);
399
407
  };
400
- var staticRenderFns$d = [];
401
- const __cssModules$d = {};
402
- var __component__$d = /* @__PURE__ */ normalizeComponent(__vue2_script$d, render$d, staticRenderFns$d, false, __vue2_injectStyles$d, null, null, null);
403
- function __vue2_injectStyles$d(context) {
404
- for (let o in __cssModules$d) {
405
- this[o] = __cssModules$d[o];
408
+ var staticRenderFns$g = [];
409
+ const __cssModules$g = {};
410
+ var __component__$g = /* @__PURE__ */ normalizeComponent(__vue2_script$g, render$g, staticRenderFns$g, false, __vue2_injectStyles$g, null, null, null);
411
+ function __vue2_injectStyles$g(context) {
412
+ for (let o in __cssModules$g) {
413
+ this[o] = __cssModules$g[o];
406
414
  }
407
415
  }
408
416
  var ProfileSelector = /* @__PURE__ */ function() {
409
- return __component__$d.exports;
417
+ return __component__$g.exports;
410
418
  }();
411
419
  function useProfiles(keywords, onlyRole, profileIds) {
412
420
  const me = useMe();
@@ -424,7 +432,7 @@ function useProfiles(keywords, onlyRole, profileIds) {
424
432
  const profiles = useResult(result, [], (data) => data.profileSearch.profileList);
425
433
  return { profiles, loading };
426
434
  }
427
- var __vue2_script$c = defineComponent({
435
+ var __vue2_script$f = defineComponent({
428
436
  components: { ProfileSelector, ProfileCreateModal },
429
437
  props: {
430
438
  value: {
@@ -439,7 +447,7 @@ var __vue2_script$c = defineComponent({
439
447
  },
440
448
  preLoaded: {
441
449
  type: Array,
442
- default: []
450
+ default: () => []
443
451
  },
444
452
  profileIds: {
445
453
  type: Array
@@ -476,19 +484,163 @@ var __vue2_script$c = defineComponent({
476
484
  };
477
485
  }
478
486
  });
479
- var render$c = function() {
487
+ var render$f = function() {
480
488
  var _vm = this;
481
489
  var _h = _vm.$createElement;
482
490
  var _c = _vm._self._c || _h;
483
- return _c("div", [_c("profile-selector", _vm._g(_vm._b({ attrs: { "source": _vm.profiles, "value": _vm.value, "keywords": _vm.keywords, "creatable": _vm.creatable }, on: { "search": _vm.handleSearch, "create-profile": function($event) {
491
+ return _c("div", [_c("profile-selector", _vm._g(_vm._b({ attrs: { "source": _vm.profiles, "value": _vm.value, "creatable": _vm.creatable }, on: { "search": _vm.handleSearch, "create-profile": function($event) {
484
492
  return _vm.toggleModal(true);
485
493
  }, "input": _vm.updateValue } }, "profile-selector", _vm.$attrs, false), _vm.$listeners)), _vm.creatable ? _c("profile-create-modal", { attrs: { "visible": _vm.isModalVisible }, on: { "cancel": function($event) {
486
494
  return _vm.toggleModal(false);
487
495
  }, "profile-created": _vm.handleProfileCreated } }) : _vm._e()], 1);
488
496
  };
497
+ var staticRenderFns$f = [];
498
+ const __cssModules$f = {};
499
+ var __component__$f = /* @__PURE__ */ normalizeComponent(__vue2_script$f, render$f, staticRenderFns$f, false, __vue2_injectStyles$f, null, null, null);
500
+ function __vue2_injectStyles$f(context) {
501
+ for (let o in __cssModules$f) {
502
+ this[o] = __cssModules$f[o];
503
+ }
504
+ }
505
+ var index$4 = /* @__PURE__ */ function() {
506
+ return __component__$f.exports;
507
+ }();
508
+ const queryAllCaseTemplates = gql`
509
+ query AllCaseTemplates($lawFirmId: Int!) {
510
+ gallery: galleryCaseTemplateList(selfLawFirmId: $lawFirmId) {
511
+ id
512
+ isSmart
513
+ templateName
514
+ }
515
+
516
+ custom: customCaseTemplateList(selfLawFirmId: $lawFirmId) {
517
+ id
518
+ isSmart
519
+ templateName
520
+ }
521
+ }
522
+ `;
523
+ function useCaseTemplates() {
524
+ const me = useMe();
525
+ const { result, loading } = useQuery(queryAllCaseTemplates, () => {
526
+ var _a;
527
+ return {
528
+ lawFirmId: (_a = me.value) == null ? void 0 : _a.lawFirmId
529
+ };
530
+ }, () => ({
531
+ enabled: me.value != null
532
+ }));
533
+ const templates = useResult(result);
534
+ return { templates, loading };
535
+ }
536
+ var __vue2_script$e = defineComponent({
537
+ props: {
538
+ isSmart: {
539
+ type: Boolean
540
+ }
541
+ },
542
+ setup() {
543
+ }
544
+ });
545
+ var render$e = function() {
546
+ var _vm = this;
547
+ var _h = _vm.$createElement;
548
+ var _c = _vm._self._c || _h;
549
+ return _c("div", { staticClass: "border border-solid rounded px-2 leading-5", class: {
550
+ "text-smart bg-purple border-light-purple": _vm.isSmart,
551
+ "text-classic bg-blue border-light-blue": !_vm.isSmart
552
+ } }, [_vm._v(" " + _vm._s(_vm.isSmart ? _vm.$t("message.smart") : _vm.$t("message.classic")) + " ")]);
553
+ };
554
+ var staticRenderFns$e = [];
555
+ const __cssModules$e = {};
556
+ var __component__$e = /* @__PURE__ */ normalizeComponent(__vue2_script$e, render$e, staticRenderFns$e, false, __vue2_injectStyles$e, null, null, null);
557
+ function __vue2_injectStyles$e(context) {
558
+ for (let o in __cssModules$e) {
559
+ this[o] = __cssModules$e[o];
560
+ }
561
+ }
562
+ var CaseTemplateTypeBadge = /* @__PURE__ */ function() {
563
+ return __component__$e.exports;
564
+ }();
565
+ var __vue2_script$d = defineComponent({
566
+ props: {
567
+ source: {
568
+ type: Object,
569
+ required: true
570
+ }
571
+ },
572
+ components: { CaseTemplateTypeBadge },
573
+ setup() {
574
+ }
575
+ });
576
+ var render$d = function() {
577
+ var _vm = this;
578
+ var _h = _vm.$createElement;
579
+ var _c = _vm._self._c || _h;
580
+ return _c("div", { staticClass: "flex space-x-2 items-center" }, [_c("span", [_vm._v(_vm._s(_vm.source.templateName))]), _c("case-template-type-badge", { attrs: { "isSmart": _vm.source.isSmart } })], 1);
581
+ };
582
+ var staticRenderFns$d = [];
583
+ const __cssModules$d = {};
584
+ var __component__$d = /* @__PURE__ */ normalizeComponent(__vue2_script$d, render$d, staticRenderFns$d, false, __vue2_injectStyles$d, null, null, null);
585
+ function __vue2_injectStyles$d(context) {
586
+ for (let o in __cssModules$d) {
587
+ this[o] = __cssModules$d[o];
588
+ }
589
+ }
590
+ var CaseTemplateOption = /* @__PURE__ */ function() {
591
+ return __component__$d.exports;
592
+ }();
593
+ var __vue2_script$c = defineComponent({
594
+ props: {
595
+ value: {
596
+ type: Object
597
+ }
598
+ },
599
+ components: {
600
+ ASelect: Select,
601
+ AOption: Select.Option,
602
+ AOptionGroup: Select.OptGroup,
603
+ CaseTemplateOption
604
+ },
605
+ setup(props, { emit }) {
606
+ const { templates } = useCaseTemplates();
607
+ const customTemplates = computed(() => {
608
+ var _a, _b;
609
+ return (_b = (_a = templates.value) == null ? void 0 : _a.custom) != null ? _b : [];
610
+ });
611
+ const galleryTemplates = computed(() => {
612
+ var _a, _b;
613
+ return (_b = (_a = templates.value) == null ? void 0 : _a.gallery) != null ? _b : [];
614
+ });
615
+ const allTemplates = computed(() => [
616
+ ...customTemplates.value,
617
+ ...galleryTemplates.value
618
+ ]);
619
+ const selectedId = computed(() => {
620
+ var _a;
621
+ return (_a = props.value) == null ? void 0 : _a.id;
622
+ });
623
+ const onChange = (value) => {
624
+ const result = allTemplates.value.find((v) => v.id === value);
625
+ emit("update:value", result);
626
+ };
627
+ return { customTemplates, galleryTemplates, selectedId, onChange };
628
+ }
629
+ });
630
+ var render$c = function() {
631
+ var _vm = this;
632
+ var _h = _vm.$createElement;
633
+ var _c = _vm._self._c || _h;
634
+ return _c("a-select", _vm._b({ staticClass: "min-w-80", attrs: { "value": _vm.selectedId }, on: { "change": _vm.onChange } }, "a-select", _vm.$attrs, false), [_c("a-option-group", { attrs: { "label": [_vm.$t("message.custom"), _vm.$t("message.templates")].join(" ") } }, _vm._l(_vm.customTemplates, function(v) {
635
+ return _c("a-option", { key: v.id, attrs: { "value": v.id } }, [_c("CaseTemplateOption", { attrs: { "source": v } })], 1);
636
+ }), 1), _c("a-option-group", { attrs: { "label": [_vm.$t("message.gallery"), _vm.$t("message.templates")].join(" ") } }, _vm._l(_vm.galleryTemplates, function(v) {
637
+ return _c("a-option", { key: v.id, attrs: { "value": v.id } }, [_c("CaseTemplateOption", { attrs: { "source": v } })], 1);
638
+ }), 1)], 1);
639
+ };
489
640
  var staticRenderFns$c = [];
641
+ var index_vue_vue_type_style_index_0_scoped_true_lang$7 = "";
490
642
  const __cssModules$c = {};
491
- var __component__$c = /* @__PURE__ */ normalizeComponent(__vue2_script$c, render$c, staticRenderFns$c, false, __vue2_injectStyles$c, null, null, null);
643
+ var __component__$c = /* @__PURE__ */ normalizeComponent(__vue2_script$c, render$c, staticRenderFns$c, false, __vue2_injectStyles$c, "5ca33108", null, null);
492
644
  function __vue2_injectStyles$c(context) {
493
645
  for (let o in __cssModules$c) {
494
646
  this[o] = __cssModules$c[o];
@@ -814,17 +966,17 @@ var render$b = function() {
814
966
  return _c("div", { class: { container: !_vm.previewMode } }, [_c("ant-modal", { attrs: { "visible": !!_vm.previewImage, "footer": null }, on: { "cancel": function($event) {
815
967
  _vm.previewImage = null;
816
968
  } } }, [_c("img", { staticStyle: { "width": "100%" }, attrs: { "src": _vm.previewImage } })]), _c("ant-upload", { staticStyle: { "display": "inline" }, attrs: { "disabled": _vm.disabled || _vm.loading, "before-upload": _vm.beforeUpload, "action": "javascript:;", "fileList": [], "accept": _vm.acceptableFormats.join(",") } }, [!_vm.previewMode ? _c("ant-tag", [_vm._v(" " + _vm._s(_vm.$t("message.selectFile")) + " ")]) : _vm._e(), _vm.value.length ? _c("div", { staticStyle: { "display": "inline-block" } }, _vm._l(_vm.value, function(file) {
817
- return _c("ant-tag", { key: file.id, attrs: { "closable": "" }, on: { "close": function($event) {
969
+ return _c("ant-tag", { key: file.id, attrs: { "closable": !_vm.previewMode && !_vm.disabled }, on: { "close": function($event) {
818
970
  return _vm.remove(file.id);
819
971
  } } }, [_c("a", { staticStyle: { "color": "#111" }, attrs: { "href": file.link, "target": "_blank" }, on: { "click": function($event) {
820
972
  return _vm.clickItem(file, $event);
821
973
  } } }, [_vm._v(" " + _vm._s(file.name) + " ")])]);
822
- }), 1) : _vm._e(), !_vm.previewMode ? _c("span", { directives: [{ name: "else", rawName: "v-else" }], staticStyle: { "color": "#ccc" } }, [_vm._v(_vm._s(_vm.acceptableFormats.join(" ")))]) : _vm._e()], 1)], 1);
974
+ }), 1) : !_vm.previewMode ? _c("span", { staticStyle: { "color": "#ccc" } }, [_vm._v(_vm._s(_vm.acceptableFormats.join(" ")))]) : _vm._e()], 1)], 1);
823
975
  };
824
976
  var staticRenderFns$b = [];
825
977
  var index_vue_vue_type_style_index_0_scoped_true_lang$6 = "";
826
978
  const __cssModules$b = {};
827
- var __component__$b = /* @__PURE__ */ normalizeComponent(__vue2_script$b, render$b, staticRenderFns$b, false, __vue2_injectStyles$b, "17f08d86", null, null);
979
+ var __component__$b = /* @__PURE__ */ normalizeComponent(__vue2_script$b, render$b, staticRenderFns$b, false, __vue2_injectStyles$b, "38dac57e", null, null);
828
980
  function __vue2_injectStyles$b(context) {
829
981
  for (let o in __cssModules$b) {
830
982
  this[o] = __cssModules$b[o];
@@ -2075,4 +2227,4 @@ function __vue2_injectStyles(context) {
2075
2227
  var index = /* @__PURE__ */ function() {
2076
2228
  return __component__.exports;
2077
2229
  }();
2078
- export { AssigneeTag, AFileUploader as FileUploader, NewTask, index$3 as ProfileSelect, TagsWithTooltip, index$1 as TaskCart, TaskForm, TaskTable, TaskTemplateFilter, index as TestComponent, index$2 as forms, getLanguageMessage, refactorParams as refactorTaskTemplateParams, submit as submitTaskTemplate, useCreateTaskTemplate, useMutateTaskTemplate, useSearchTaskConditions, useSearchTaskTemplates };
2230
+ export { AFileUploader, AssigneeTag, index$3 as CaseTemplateSelect, CaseTemplateTypeBadge, NewTask, index$4 as ProfileSelect, TagsWithTooltip, index$1 as TaskCart, TaskForm, TaskTable, TaskTemplateFilter, index as TestComponent, 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.4.4",
3
+ "version": "0.5.0",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -10,7 +10,7 @@
10
10
  "scripts": {
11
11
  "dev": "vite --open",
12
12
  "build": "vite build",
13
- "build:local": "npm run build && npm pack",
13
+ "build:local": "rm -f ./ailaw-venus-*.tgz && npm run build && npm pack",
14
14
  "emit": "vue-tsc --emitDeclarationOnly -p ./tsconfig.build.json"
15
15
  },
16
16
  "dependencies": {
@@ -30,9 +30,9 @@
30
30
  "@types/ramda": "^0.27.62",
31
31
  "@vitejs/plugin-vue-jsx": "^1.3.3",
32
32
  "@vue/compiler-sfc": "^3.2.26",
33
- "@vue/composition-api": "^1.4.3",
34
33
  "autoprefixer": "^10.4.2",
35
34
  "js-cookie": "^3.0.1",
35
+ "less": "^4.1.2",
36
36
  "nprogress": "^0.2.0",
37
37
  "postcss": "^8.4.5",
38
38
  "prettier": "^2.2.1",
@@ -40,19 +40,12 @@
40
40
  "typescript": "~4.1.5",
41
41
  "vite": "^2.7.12",
42
42
  "vite-plugin-vue2": "^1.9.2",
43
- "vue": "^2.6.14",
44
43
  "vue-template-compiler": "^2.6.14",
45
44
  "vue-tsc": "^0.30.2"
46
45
  },
47
46
  "peerDependencies": {
48
- "@vue/composition-api": "^1.0.0-rc.1",
49
47
  "vue": "^2.0.0 || >=3.0.0"
50
48
  },
51
- "peerDependenciesMeta": {
52
- "@vue/composition-api": {
53
- "optional": true
54
- }
55
- },
56
49
  "browserslist": [
57
50
  "> 1%",
58
51
  "last 2 versions",