@dxs-ts/eveli-ide 0.0.431 → 0.0.432

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.
@@ -1,4 +1,4 @@
1
1
  import { default as React } from 'react';
2
- export declare const EveliTaskDetails: React.FC<{
2
+ export declare const EveliTaskDashboard: React.FC<{
3
3
  taskId: string;
4
4
  }>;
@@ -1 +1 @@
1
- export * from './EveliTaskDetails';
1
+ export * from './EveliTaskDashboard';
@@ -4,4 +4,4 @@ export interface CustomerMessagesEditProps {
4
4
  task: TaskApi.Task;
5
5
  }
6
6
  export declare const CustomerMessagesEdit: React.FC<CustomerMessagesEditProps>;
7
- export declare const useUtilityClasses: () => Record<"container" | "messageRow" | "senderInfo" | "frontdeskAvatar" | "customerAvatar" | "frontdeskMessageBody" | "customerMessageBody" | "messageBoxLabel" | "messagesContainer" | "inputBox", string>;
7
+ export declare const useUtilityClasses: () => Record<"container" | "messageRow" | "messageBoxLabel" | "messagesContainer" | "senderInfo" | "inputBox" | "frontdeskAvatar" | "customerAvatar" | "frontdeskMessageBody" | "customerMessageBody", string>;
@@ -1,9 +1,9 @@
1
1
  import { default as React } from 'react';
2
2
  import { TaskCardStyleDefinition } from '../eveli-task-composer-v2/cardThemeConfig';
3
3
  import { TaskApi } from '../api-task';
4
- export interface CustomerMessagesReadOnlyProps {
4
+ export interface EveliCustomerMessagesReadOnlyProps {
5
5
  style: TaskCardStyleDefinition;
6
6
  task: TaskApi.Task;
7
7
  }
8
- export declare const CustomerMessagesReadOnly: React.FC<CustomerMessagesReadOnlyProps>;
8
+ export declare const EveliCustomerMessagesReadOnly: React.FC<EveliCustomerMessagesReadOnlyProps>;
9
9
  export declare const useUtilityClasses: () => Record<"container" | "messageRow" | "senderInfo" | "frontdeskAvatar" | "customerAvatar" | "frontdeskMessageBody" | "customerMessageBody", string>;
@@ -1,2 +1,2 @@
1
- export * from './CustomerMessagesReadOnly';
2
1
  export * from './EditCustomerMessagesDialog';
2
+ export * from './EveliCustomerMessagesReadOnly';
@@ -1,7 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
  import { TaskApi } from '../api-task';
3
- export interface TaskRolesProps {
3
+ export interface EveliTaskRolesProps {
4
4
  task: TaskApi.Task;
5
5
  }
6
- export declare const TaskRoles: React.FC<TaskRolesProps>;
6
+ export declare const EveliTaskRoles: React.FC<EveliTaskRolesProps>;
7
7
  export declare const useUtilityClasses: () => Record<"root", string>;
@@ -0,0 +1 @@
1
+ export * from './EveliTaskRoles';
package/build/index.js CHANGED
@@ -57044,7 +57044,7 @@ function UK(e) {
57044
57044
  })
57045
57045
  };
57046
57046
  }
57047
- const DS = { tag: "eveli-ide-0.0.431", built: "22/07/2025" }, wx = we("worker/rest/api/version.GET")({
57047
+ const DS = { tag: "eveli-ide-0.0.432", built: "22/07/2025" }, wx = we("worker/rest/api/version.GET")({
57048
57048
  hook: $K
57049
57049
  });
57050
57050
  function $K(e) {
@@ -69989,35 +69989,13 @@ const Wre = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3
69989
69989
  }
69990
69990
  })), tie = () => He({
69991
69991
  root: ["root"]
69992
- }, (n) => Ue(HN, n), {}), nie = ({ task: e }) => {
69993
- const t = aie();
69994
- return !e.assignedRoles || e.assignedRoles.length === 0 ? /* @__PURE__ */ i(yk, { children: /* @__PURE__ */ i(F, { children: "--" }) }) : /* @__PURE__ */ i(yk, { className: t.root, children: e.assignedRoles.map((n, a) => /* @__PURE__ */ i(Qt, { label: n, variant: "filled" }, a)) });
69995
- }, VN = "TaskRolesRootClassName", yk = fe("div", {
69996
- name: VN,
69997
- slot: "Root",
69998
- overridesResolver: (e, t) => [
69999
- t.root
70000
- ]
70001
- })(({ theme: e }) => ({
70002
- display: "flex",
70003
- alignItems: "center",
70004
- flexWrap: "wrap",
70005
- marginBottom: e.spacing(1),
70006
- gap: e.spacing(1),
70007
- "& .MuiChip-root": {
70008
- backgroundColor: e.palette.info.dark,
70009
- color: e.palette.background.default,
70010
- boxShadow: "0 4px 12px rgba(0, 0, 0, 0.2)"
70011
- }
70012
- })), aie = () => He({
70013
- root: ["root"]
70014
- }, (n) => Ue(VN, n), {}), rie = ({ task: e, style: t }) => {
70015
- const { getOneFeedback: n } = ei(), [a, r] = C.useState(), s = sie();
69992
+ }, (n) => Ue(HN, n), {}), nie = ({ task: e, style: t }) => {
69993
+ const { getOneFeedback: n } = ei(), [a, r] = C.useState(), s = rie();
70016
69994
  return C.useEffect(() => {
70017
69995
  n(e.taskRef).then((o) => {
70018
69996
  r(o), console.log("Setting feedback:", o);
70019
69997
  });
70020
- }, [e.taskRef]), !a || !a.content ? /* @__PURE__ */ i(F, { sx: { ...t.bodyTypography }, children: "No feedback" }) : /* @__PURE__ */ E(iie, { className: s.root, children: [
69998
+ }, [e.taskRef]), !a || !a.content ? /* @__PURE__ */ i(F, { sx: { ...t.bodyTypography }, children: "No feedback" }) : /* @__PURE__ */ E(aie, { className: s.root, children: [
70021
69999
  /* @__PURE__ */ E(R, { display: "flex", flexDirection: "row", justifyContent: "space-between", children: [
70022
70000
  /* @__PURE__ */ E(R, { flexDirection: "column", alignItems: "center", children: [
70023
70001
  /* @__PURE__ */ i(F, { className: s.feedbackCategories, sx: { ...t.bodyTypography }, children: a.content.main }),
@@ -70038,8 +70016,8 @@ const Wre = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3
70038
70016
  a.content.question
70039
70017
  ] })
70040
70018
  ] });
70041
- }, zN = "CustomerFeedback", iie = fe("div", {
70042
- name: zN,
70019
+ }, VN = "CustomerFeedback", aie = fe("div", {
70020
+ name: VN,
70043
70021
  slot: "Message",
70044
70022
  overridesResolver: (e, t) => [
70045
70023
  t.root
@@ -70064,20 +70042,20 @@ const Wre = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3
70064
70042
  "& .CustomerFeedback-feedbackCategories": {
70065
70043
  fontWeight: 500
70066
70044
  }
70067
- })), sie = () => He({
70045
+ })), rie = () => He({
70068
70046
  root: ["root"],
70069
70047
  publishedNotifier: ["publishedNotifier"],
70070
70048
  feedbackCategories: ["feedbackCategories"]
70071
- }, (n) => Ue(zN, n), {}), oie = ({ task: e, style: t }) => {
70072
- const n = cie();
70073
- return /* @__PURE__ */ i(lie, { className: n.root, style: t, children: /* @__PURE__ */ E(R, { className: n.file, children: [
70049
+ }, (n) => Ue(VN, n), {}), iie = ({ task: e, style: t }) => {
70050
+ const n = oie();
70051
+ return /* @__PURE__ */ i(sie, { className: n.root, style: t, children: /* @__PURE__ */ E(R, { className: n.file, children: [
70074
70052
  /* @__PURE__ */ i($O, { className: n.fileIcon }),
70075
70053
  /* @__PURE__ */ i(F, { sx: { ...t }, children: "file-name.jpg" }),
70076
70054
  /* @__PURE__ */ i(R, { flexGrow: 1 }),
70077
70055
  /* @__PURE__ */ i(_e, { color: "error", children: /* @__PURE__ */ i(zc, { className: n.deleteIcon }) })
70078
70056
  ] }) });
70079
- }, GN = "TaskFiles", lie = fe("div", {
70080
- name: GN,
70057
+ }, zN = "TaskFiles", sie = fe("div", {
70058
+ name: zN,
70081
70059
  slot: "Root",
70082
70060
  overridesResolver: (e, t) => [
70083
70061
  t.root
@@ -70107,271 +70085,20 @@ const Wre = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3
70107
70085
  "& .TaskFiles-deleteIcon": {
70108
70086
  color: e.palette.error.main
70109
70087
  }
70110
- })), cie = () => He({
70088
+ })), oie = () => He({
70111
70089
  root: ["root"],
70112
70090
  file: ["file"],
70113
70091
  fileIcon: ["fileIcon"],
70114
70092
  deleteIcon: ["deleteIcon"]
70115
- }, (n) => Ue(GN, n), {}), uie = ({ task: e, style: t }) => {
70116
- var l;
70117
- const n = pie(), a = ((l = e.comments) == null ? void 0 : l.filter((c) => c.external).sort((c, u) => Pe.fromISO(u.created).toMillis() - Pe.fromISO(c.created).toMillis())) || [], r = a.slice(0, 3), s = (c) => {
70118
- try {
70119
- return Pe.fromISO(c).setLocale("fi").toLocaleString(Pe.DATETIME_SHORT);
70120
- } catch {
70121
- return c;
70122
- }
70123
- }, o = (c, u) => c.length <= u ? c : c.slice(0, u) + "…";
70124
- return /* @__PURE__ */ E(die, { className: n.container, children: [
70125
- r.length === 0 && /* @__PURE__ */ i(F, { sx: { ...t }, children: "No messages" }),
70126
- r.slice(0, 3).map((c) => /* @__PURE__ */ E(R, { className: n.messageRow, children: [
70127
- /* @__PURE__ */ i(Hn, { className: c.source === "FRONTDESK" ? n.frontdeskAvatar : n.customerAvatar }),
70128
- /* @__PURE__ */ E(R, { className: c.source === "FRONTDESK" ? n.frontdeskMessageBody : n.customerMessageBody, children: [
70129
- /* @__PURE__ */ E(F, { className: n.senderInfo, sx: { ...t.bodyTypography }, children: [
70130
- c.userName,
70131
- " wrote on ",
70132
- s(c.created)
70133
- ] }),
70134
- /* @__PURE__ */ i(F, { style: { ...t.bodyTypography, overflow: "hidden", whiteSpace: "normal" }, children: o(c.commentText, 200) })
70135
- ] })
70136
- ] }, c.id)),
70137
- a.length > 3 && /* @__PURE__ */ E(F, { sx: { ...t.bodyTypography }, children: [
70138
- "...",
70139
- a.length - 3,
70140
- " more..."
70141
- ] })
70142
- ] });
70143
- }, WN = "CustomerMessagesReadOnly", die = fe("div", {
70144
- name: WN,
70145
- slot: "Message",
70146
- overridesResolver: (e, t) => [
70147
- t.container
70148
- ]
70149
- })(({ theme: e }) => ({
70150
- display: "flex",
70151
- flexDirection: "column",
70152
- gap: e.spacing(2),
70153
- "& .CustomerMessagesReadOnly-messageRow": {
70154
- display: "flex",
70155
- alignItems: "center"
70156
- },
70157
- "& .CustomerMessagesReadOnly-senderInfo": {
70158
- fontWeight: "bold !important"
70159
- //TODO figure out a better way with cardThemeConfig
70160
- },
70161
- "& .CustomerMessagesReadOnly-frontdeskAvatar": {
70162
- border: `1px solid ${$n("#caf0f8", 0.1)}`,
70163
- backgroundColor: "#caf0f8",
70164
- marginRight: e.spacing(1),
70165
- boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.1)"
70166
- },
70167
- "& .CustomerMessagesReadOnly-customerAvatar": {
70168
- border: `1px solid ${$n("#ecf39e", 0.1)}`,
70169
- backgroundColor: "#ecf39e",
70170
- marginRight: e.spacing(1),
70171
- boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.1)"
70172
- },
70173
- "& .CustomerMessagesReadOnly-frontdeskMessageBody": {
70174
- flexGrow: 1,
70175
- backgroundColor: "#caf0f8",
70176
- borderRadius: "20px",
70177
- padding: e.spacing(1),
70178
- border: `1px solid ${$n("#caf0f8", 0.1)}`,
70179
- boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.1)"
70180
- },
70181
- "& .CustomerMessagesReadOnly-customerMessageBody": {
70182
- flexGrow: 1,
70183
- backgroundColor: "#ecf39e",
70184
- borderRadius: "20px",
70185
- padding: e.spacing(1),
70186
- border: `1px solid ${$n("#ecf39e", 0.1)}`,
70187
- boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.1)"
70188
- },
70189
- "& .MuiSvgIcon-root": {
70190
- fontSize: "10pt",
70191
- marginRight: e.spacing(1),
70192
- marginLeft: e.spacing(1)
70193
- }
70194
- })), pie = () => He({
70195
- container: ["container"],
70196
- messageRow: ["messageRow"],
70197
- senderInfo: ["senderInfo"],
70198
- frontdeskAvatar: ["frontdeskAvatar"],
70199
- customerAvatar: ["customerAvatar"],
70200
- frontdeskMessageBody: ["frontdeskMessageBody"],
70201
- customerMessageBody: ["customerMessageBody"]
70202
- }, (n) => Ue(WN, n), {}), fie = ({ task: e }) => {
70203
- var c;
70204
- const t = gie(), n = ie(), [a, r] = C.useState(""), s = ((c = e.comments) == null ? void 0 : c.filter((u) => u.external).sort((u, d) => Pe.fromISO(d.created).toMillis() - Pe.fromISO(u.created).toMillis())) || [], o = (u) => {
70205
- try {
70206
- return Pe.fromISO(u).setLocale("fi").toLocaleString(Pe.DATETIME_SHORT);
70207
- } catch {
70208
- return u;
70209
- }
70210
- };
70211
- function l(u) {
70212
- r(u), console.log("message:", u);
70213
- }
70214
- return /* @__PURE__ */ E(mie, { className: t.container, children: [
70215
- /* @__PURE__ */ i(R, { className: t.messagesContainer, children: s.length === 0 ? /* @__PURE__ */ i(bo, { severity: "info", children: "No messages yet" }) : s.map((u) => /* @__PURE__ */ E(R, { className: t.messageRow, children: [
70216
- /* @__PURE__ */ i(Hn, { className: u.source === "FRONTDESK" ? t.frontdeskAvatar : t.customerAvatar }),
70217
- /* @__PURE__ */ E(R, { className: u.source === "FRONTDESK" ? t.frontdeskMessageBody : t.customerMessageBody, children: [
70218
- /* @__PURE__ */ E(F, { className: t.senderInfo, children: [
70219
- u.userName,
70220
- " wrote on ",
70221
- o(u.created)
70222
- ] }),
70223
- /* @__PURE__ */ i(F, { style: { overflow: "hidden", whiteSpace: "normal" }, children: u.commentText })
70224
- ] })
70225
- ] }, u.id)) }),
70226
- /* @__PURE__ */ E(R, { className: t.inputBox, children: [
70227
- /* @__PURE__ */ i(rt, {}),
70228
- /* @__PURE__ */ E(R, { display: "flex", alignItems: "center", children: [
70229
- /* @__PURE__ */ i(Oa, { color: "primary" }),
70230
- /* @__PURE__ */ i(F, { className: t.messageBoxLabel, children: n.formatMessage({ id: "task.customerMessages.newMessageTitle", defaultMessage: "Write a new message" }) })
70231
- ] }),
70232
- /* @__PURE__ */ i(
70233
- hie,
70234
- {
70235
- value: a,
70236
- fullWidth: !0,
70237
- multiline: !0,
70238
- rows: 3,
70239
- onChange: (u) => l(u.target.value),
70240
- placeholder: n.formatMessage({ id: "task.customerMessages.newMessagePlaceholder", defaultMessage: "My message to customer..." })
70241
- }
70242
- )
70243
- ] })
70244
- ] });
70245
- }, jN = "CustomerMessagesEdit", mie = fe("div", {
70246
- name: jN,
70247
- slot: "Message",
70248
- overridesResolver: (e, t) => [
70249
- t.container
70250
- ]
70251
- })(({ theme: e }) => ({
70252
- display: "flex",
70253
- flexDirection: "column",
70254
- height: "100%",
70255
- overflow: "hidden",
70256
- padding: e.spacing(2),
70257
- ".MuiDivider-root": {
70258
- marginTop: e.spacing(1),
70259
- marginBottom: e.spacing(1)
70260
- },
70261
- "& .CustomerMessagesEdit-messageBoxLabel": {
70262
- ...e.typography.body2,
70263
- fontWeight: "bold"
70264
- },
70265
- "& .CustomerMessagesEdit-messageRow": {
70266
- display: "flex",
70267
- alignItems: "center",
70268
- marginBottom: e.spacing(2)
70269
- },
70270
- "& .CustomerMessagesEdit-inputBox": {
70271
- flexShrink: 0,
70272
- bottom: 0,
70273
- position: "sticky",
70274
- width: "100%",
70275
- padding: e.spacing(1)
70276
- },
70277
- "& .CustomerMessagesEdit-messagesContainer": {
70278
- flexGrow: 1,
70279
- overflowY: "auto",
70280
- paddingRight: e.spacing(1)
70281
- },
70282
- "& .CustomerMessagesEdit-senderInfo": {
70283
- fontWeight: "bold !important"
70284
- //TODO figure out a better way with cardThemeConfig
70285
- },
70286
- "& .CustomerMessagesEdit-frontdeskAvatar": {
70287
- border: `1px solid ${$n("#caf0f8", 0.1)}`,
70288
- backgroundColor: "#caf0f8",
70289
- marginRight: e.spacing(1),
70290
- boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.1)"
70291
- },
70292
- "& .CustomerMessagesEdit-customerAvatar": {
70293
- border: `1px solid ${$n("#ecf39e", 0.1)}`,
70294
- backgroundColor: "#ecf39e",
70295
- marginRight: e.spacing(1),
70296
- boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.1)"
70297
- },
70298
- "& .CustomerMessagesEdit-frontdeskMessageBody": {
70299
- flexGrow: 1,
70300
- backgroundColor: "#caf0f8",
70301
- borderRadius: "20px",
70302
- padding: e.spacing(1),
70303
- border: `1px solid ${$n("#caf0f8", 0.1)}`,
70304
- boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.1)"
70305
- },
70306
- "& .CustomerMessagesEdit-customerMessageBody": {
70307
- flexGrow: 1,
70308
- backgroundColor: "#ecf39e",
70309
- borderRadius: "20px",
70310
- padding: e.spacing(1),
70311
- border: `1px solid ${$n("#ecf39e", 0.1)}`,
70312
- boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.1)"
70313
- },
70314
- "& .MuiSvgIcon-root": {
70315
- fontSize: "20pt",
70316
- marginRight: e.spacing(1),
70317
- marginLeft: e.spacing(1)
70318
- }
70319
- })), hie = fe(Fe)(({ theme: e }) => ({
70320
- width: "100%",
70321
- "& .MuiInputBase-input": {
70322
- height: "2.5rem",
70323
- padding: "0 12px"
70324
- }
70325
- })), gie = () => He({
70326
- container: ["container"],
70327
- messageRow: ["messageRow"],
70328
- messageBoxLabel: ["messageBoxLabel"],
70329
- messagesContainer: ["messagesContainer"],
70330
- senderInfo: ["senderInfo"],
70331
- inputBox: ["inputBox"],
70332
- frontdeskAvatar: ["frontdeskAvatar"],
70333
- customerAvatar: ["customerAvatar"],
70334
- frontdeskMessageBody: ["frontdeskMessageBody"],
70335
- customerMessageBody: ["customerMessageBody"]
70336
- }, (n) => Ue(jN, n), {}), bie = ({ task: e, open: t, onClose: n }) => {
70337
- const a = yie(), r = ie();
70338
- return /* @__PURE__ */ E(Eie, { className: a.editCustomerMessages, open: t, onClose: n, fullWidth: !0, maxWidth: "lg", slots: { transition: Uk }, children: [
70339
- /* @__PURE__ */ E(Ce, { children: [
70340
- r.formatMessage({ id: "task.customerMessages" }),
70341
- r.formatMessage({ id: "eveli.textSeparatorColon" }),
70342
- e.taskRef ?? "no task reference id"
70343
- ] }),
70344
- /* @__PURE__ */ i(ke, { children: /* @__PURE__ */ i(fie, { task: e }) }),
70345
- /* @__PURE__ */ E(Ae, { children: [
70346
- /* @__PURE__ */ i(K, { variant: "outlined", onClick: n, children: r.formatMessage({ id: "button.cancel" }) }),
70347
- /* @__PURE__ */ i(K, { children: r.formatMessage({ id: "button.sendMessage", defaultMessage: "Send message now" }) })
70348
- ] })
70349
- ] });
70350
- }, qN = "EditCustomerMessagesDialog", Eie = fe(Se, {
70351
- name: qN,
70352
- slot: "Messages",
70353
- overridesResolver: (e, t) => [
70354
- t.EditCustomerMessages
70355
- ]
70356
- })(({ theme: e }) => ({
70357
- height: "100vh",
70358
- ".MuiDialogContent-root": {
70359
- display: "flex",
70360
- flexDirection: "column",
70361
- padding: 0,
70362
- overflow: "hidden"
70363
- }
70364
- })), yie = () => He({
70365
- editCustomerMessages: ["editCustomerMessages"]
70366
- }, (n) => Ue(qN, n), {}), YN = ({ task: e }) => {
70093
+ }, (n) => Ue(zN, n), {}), GN = ({ task: e }) => {
70367
70094
  if (e.keyWords)
70368
70095
  return /* @__PURE__ */ i(R, { gap: 1, display: "flex", mt: 1, children: e.keyWords.map((t) => /* @__PURE__ */ i(Qt, { label: t, variant: "filled", color: "primary", sx: {
70369
70096
  boxShadow: "0 4px 12px rgba(0, 0, 0, 0.2)"
70370
70097
  } }, t)) });
70371
- }, Tie = ({ task: e, open: t, onClose: n }) => {
70098
+ }, lie = ({ task: e, open: t, onClose: n }) => {
70372
70099
  var s;
70373
- const a = Sie(), r = ie();
70374
- return /* @__PURE__ */ E(vie, { className: a.editDialog, open: t, onClose: n, maxWidth: "md", slots: { transition: Uk }, children: [
70100
+ const a = uie(), r = ie();
70101
+ return /* @__PURE__ */ E(cie, { className: a.editDialog, open: t, onClose: n, maxWidth: "md", slots: { transition: Uk }, children: [
70375
70102
  /* @__PURE__ */ E(Ce, { children: [
70376
70103
  r.formatMessage({ id: "task.edit" }),
70377
70104
  r.formatMessage({ id: "eveli.textSeparatorColon" }),
@@ -70387,7 +70114,7 @@ const Wre = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3
70387
70114
  /* @__PURE__ */ i(oe, { size: { md: 3, lg: 3, xl: 3 }, children: /* @__PURE__ */ i(F, { fontWeight: "bold", children: r.formatMessage({ id: "task.additionalInfo" }) }) }),
70388
70115
  /* @__PURE__ */ i(oe, { size: { md: 9, lg: 9, xl: 9 }, children: /* @__PURE__ */ i($l, { rows: 3, multiline: !0, value: e.additionalInfo }) }),
70389
70116
  /* @__PURE__ */ i(oe, { size: { md: 3, lg: 3, xl: 3 }, children: /* @__PURE__ */ i(F, { fontWeight: "bold", children: r.formatMessage({ id: "task.metaData" }) }) }),
70390
- /* @__PURE__ */ i(oe, { size: { md: 9, lg: 9, xl: 9 }, children: /* @__PURE__ */ i(YN, { task: e }) })
70117
+ /* @__PURE__ */ i(oe, { size: { md: 9, lg: 9, xl: 9 }, children: /* @__PURE__ */ i(GN, { task: e }) })
70391
70118
  ] }) }),
70392
70119
  /* @__PURE__ */ E(Ae, { children: [
70393
70120
  /* @__PURE__ */ i(K, { variant: "outlined", onClick: n, children: r.formatMessage({ id: "button.cancel" }) }),
@@ -70400,16 +70127,16 @@ const Wre = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3
70400
70127
  height: "2.5rem",
70401
70128
  padding: "0 12px"
70402
70129
  }
70403
- })), KN = "EditTaskDialog", vie = fe(Se, {
70404
- name: KN,
70130
+ })), WN = "EditTaskDialog", cie = fe(Se, {
70131
+ name: WN,
70405
70132
  slot: "EditDialog",
70406
70133
  overridesResolver: (e, t) => [
70407
70134
  t.editDialog
70408
70135
  ]
70409
- })(({ theme: e }) => ({})), Sie = () => He({
70136
+ })(({ theme: e }) => ({})), uie = () => He({
70410
70137
  editDialog: ["editDialog"]
70411
- }, (n) => Ue(KN, n), {});
70412
- function kie(e) {
70138
+ }, (n) => Ue(WN, n), {});
70139
+ function die(e) {
70413
70140
  if (!e.dueDate)
70414
70141
  return;
70415
70142
  const t = Pe.local().startOf("day"), n = Pe.fromJSDate(e.dueDate).startOf("day"), a = Math.floor(t.diff(n, "days").days);
@@ -70431,8 +70158,8 @@ function kie(e) {
70431
70158
  status: "upcomingDue"
70432
70159
  };
70433
70160
  }
70434
- const wie = ({ ...e }) => {
70435
- const t = Cie(), n = kie(e.task);
70161
+ const pie = ({ ...e }) => {
70162
+ const t = fie(), n = die(e.task);
70436
70163
  if (n)
70437
70164
  switch (n == null ? void 0 : n.status) {
70438
70165
  case "upcomingDue":
@@ -70469,8 +70196,8 @@ const wie = ({ ...e }) => {
70469
70196
  default:
70470
70197
  return /* @__PURE__ */ i(W, {});
70471
70198
  }
70472
- }, XN = "TaskOverrdueWarningClassName", Hl = fe("div", {
70473
- name: XN,
70199
+ }, jN = "TaskOverrdueWarningClassName", Hl = fe("div", {
70200
+ name: jN,
70474
70201
  slot: "Priority",
70475
70202
  overridesResolver: (e, t) => [
70476
70203
  t.root
@@ -70502,15 +70229,15 @@ const wie = ({ ...e }) => {
70502
70229
  default:
70503
70230
  return e.palette.background.paper;
70504
70231
  }
70505
- }, Cie = () => He({
70232
+ }, fie = () => He({
70506
70233
  root: ["root"]
70507
- }, (n) => Ue(XN, n), {}), Aie = ({ style: e }) => {
70508
- const t = Iie(), [n, a] = tt("LOW"), r = [
70234
+ }, (n) => Ue(jN, n), {}), mie = ({ style: e }) => {
70235
+ const t = gie(), [n, a] = tt("LOW"), r = [
70509
70236
  { level: "LOW", color: "#45a048" },
70510
70237
  { level: "MEDIUM", color: "#2196f3" },
70511
70238
  { level: "HIGH", color: "#f44336" }
70512
70239
  ];
70513
- return /* @__PURE__ */ i(_ie, { className: t.root, style: e, children: /* @__PURE__ */ E(Rt, { direction: "column", width: "100%", children: [
70240
+ return /* @__PURE__ */ i(hie, { className: t.root, style: e, children: /* @__PURE__ */ E(Rt, { direction: "column", width: "100%", children: [
70514
70241
  /* @__PURE__ */ E(F, { fontWeight: 500, mb: 1, sx: { ...e.bodyTypography, fontWeight: 500 }, children: [
70515
70242
  "Priority: ",
70516
70243
  n
@@ -70538,8 +70265,8 @@ const wie = ({ ...e }) => {
70538
70265
  );
70539
70266
  }) })
70540
70267
  ] }) });
70541
- }, ZN = "TaskPriority", _ie = fe("div", {
70542
- name: ZN,
70268
+ }, qN = "TaskPriority", hie = fe("div", {
70269
+ name: qN,
70543
70270
  slot: "Root",
70544
70271
  overridesResolver: (e, t) => [
70545
70272
  t.root
@@ -70565,11 +70292,11 @@ const wie = ({ ...e }) => {
70565
70292
  borderBottomRightRadius: e.spacing(1)
70566
70293
  }
70567
70294
  }
70568
- })), Iie = () => He({
70295
+ })), gie = () => He({
70569
70296
  root: ["root"],
70570
70297
  prioritySelect: ["prioritySelect"]
70571
- }, (n) => Ue(ZN, n), {}), xie = ({ status: e, style: t }) => {
70572
- const n = JN(), a = () => {
70298
+ }, (n) => Ue(qN, n), {}), bie = ({ status: e, style: t }) => {
70299
+ const n = KN(), a = () => {
70573
70300
  switch (e) {
70574
70301
  case "NEW":
70575
70302
  return 25;
@@ -70620,12 +70347,12 @@ const wie = ({ ...e }) => {
70620
70347
  "% complete"
70621
70348
  ] })
70622
70349
  ] });
70623
- }, Nie = ({ style: e }) => {
70624
- const t = JN(), [n, a] = C.useState("NEW"), r = (s) => {
70350
+ }, Eie = ({ style: e }) => {
70351
+ const t = KN(), [n, a] = C.useState("NEW"), r = (s) => {
70625
70352
  a(s.target.value);
70626
70353
  };
70627
- return /* @__PURE__ */ E(Rie, { className: t.root, children: [
70628
- /* @__PURE__ */ i(xie, { status: n, style: e }),
70354
+ return /* @__PURE__ */ E(yie, { className: t.root, children: [
70355
+ /* @__PURE__ */ i(bie, { status: n, style: e }),
70629
70356
  /* @__PURE__ */ E(
70630
70357
  Vi,
70631
70358
  {
@@ -70646,8 +70373,8 @@ const wie = ({ ...e }) => {
70646
70373
  }
70647
70374
  )
70648
70375
  ] });
70649
- }, QN = "TaskStatus", Rie = fe("div", {
70650
- name: QN,
70376
+ }, YN = "TaskStatus", yie = fe("div", {
70377
+ name: YN,
70651
70378
  slot: "Root",
70652
70379
  overridesResolver: (e, t) => [
70653
70380
  t.root
@@ -70672,26 +70399,26 @@ const wie = ({ ...e }) => {
70672
70399
  textAlign: "right",
70673
70400
  ...e.typography.caption
70674
70401
  }
70675
- })), JN = () => He({
70402
+ })), KN = () => He({
70676
70403
  root: ["root"],
70677
70404
  progressBar: ["progressBar"],
70678
70405
  backgroundTrack: ["backgroundTrack"],
70679
70406
  progressIndicator: ["progressIndicator"],
70680
70407
  progressDesc: ["progressDesc"]
70681
- }, (n) => Ue(QN, n), {}), Die = (e) => e ? (e instanceof Date ? Pe.fromJSDate(e) : Pe.fromISO(e)).setLocale("fi").toLocaleString(Pe.DATE_SHORT) : "--", Oie = ({ task: e, style: t }) => {
70408
+ }, (n) => Ue(YN, n), {}), Tie = (e) => e ? (e instanceof Date ? Pe.fromJSDate(e) : Pe.fromISO(e)).setLocale("fi").toLocaleString(Pe.DATE_SHORT) : "--", vie = ({ task: e, style: t }) => {
70682
70409
  var s;
70683
- const n = Fie(), a = ((s = e.comments) == null ? void 0 : s.filter((o) => !o.external)) || [];
70410
+ const n = kie(), a = ((s = e.comments) == null ? void 0 : s.filter((o) => !o.external)) || [];
70684
70411
  if (!a || a.length === 0)
70685
70412
  return /* @__PURE__ */ i(W, { children: "No notes" });
70686
70413
  const r = (o, l) => o.length <= l ? o : o.slice(0, l) + "…";
70687
- return /* @__PURE__ */ E(Lie, { className: n.notesContainer, children: [
70414
+ return /* @__PURE__ */ E(Sie, { className: n.notesContainer, children: [
70688
70415
  a.slice(0, 3).map((o) => /* @__PURE__ */ i(R, { children: /* @__PURE__ */ E(W, { children: [
70689
70416
  /* @__PURE__ */ E(R, { display: "flex", alignItems: "center", children: [
70690
70417
  /* @__PURE__ */ i(Pf, { sx: { fontSize: "7pt", mr: 1, color: "primary.main" } }),
70691
70418
  /* @__PURE__ */ i(F, { component: "div", sx: { ...t.bodyTypography }, className: n.noteBody, children: `${r(o.commentText, 200)}` })
70692
70419
  ] }),
70693
70420
  /* @__PURE__ */ i(rt, {}),
70694
- /* @__PURE__ */ i(R, { display: "flex", alignItems: "center", justifyContent: "flex-end", children: /* @__PURE__ */ i(F, { component: "div", sx: { ...t.bodyTypographySmall }, className: n.noteAuthor, children: `${o.userName} noted on ${Die(o.created)}` }) })
70421
+ /* @__PURE__ */ i(R, { display: "flex", alignItems: "center", justifyContent: "flex-end", children: /* @__PURE__ */ i(F, { component: "div", sx: { ...t.bodyTypographySmall }, className: n.noteAuthor, children: `${o.userName} noted on ${Tie(o.created)}` }) })
70695
70422
  ] }) }, o.id)),
70696
70423
  a.length > 3 && /* @__PURE__ */ E(F, { sx: { ...t.bodyTypography }, children: [
70697
70424
  "...",
@@ -70699,8 +70426,8 @@ const wie = ({ ...e }) => {
70699
70426
  " more..."
70700
70427
  ] })
70701
70428
  ] });
70702
- }, eR = "TaskNotes", Lie = fe("div", {
70703
- name: eR,
70429
+ }, XN = "TaskNotes", Sie = fe("div", {
70430
+ name: XN,
70704
70431
  slot: "Notes",
70705
70432
  overridesResolver: (e, t) => [
70706
70433
  t.notesContainer
@@ -70714,11 +70441,284 @@ const wie = ({ ...e }) => {
70714
70441
  textAlign: "right",
70715
70442
  color: e.palette.text.disabled
70716
70443
  }
70717
- })), Fie = () => He({
70444
+ })), kie = () => He({
70718
70445
  notesContainer: ["notesContainer"],
70719
70446
  noteBody: ["noteBody"],
70720
70447
  noteAuthor: ["noteAuthor"],
70721
70448
  noteBackground: ["noteBackground"]
70449
+ }, (n) => Ue(XN, n), {}), wie = ({ task: e }) => {
70450
+ const t = Cie();
70451
+ return !e.assignedRoles || e.assignedRoles.length === 0 ? /* @__PURE__ */ i(yk, { children: /* @__PURE__ */ i(F, { children: "--" }) }) : /* @__PURE__ */ i(yk, { className: t.root, children: e.assignedRoles.map((n, a) => /* @__PURE__ */ i(Qt, { label: n, variant: "filled" }, a)) });
70452
+ }, ZN = "TaskRolesRootClassName", yk = fe("div", {
70453
+ name: ZN,
70454
+ slot: "Root",
70455
+ overridesResolver: (e, t) => [
70456
+ t.root
70457
+ ]
70458
+ })(({ theme: e }) => ({
70459
+ display: "flex",
70460
+ alignItems: "center",
70461
+ flexWrap: "wrap",
70462
+ marginBottom: e.spacing(1),
70463
+ gap: e.spacing(1),
70464
+ "& .MuiChip-root": {
70465
+ backgroundColor: e.palette.info.dark,
70466
+ color: e.palette.background.default,
70467
+ boxShadow: "0 4px 12px rgba(0, 0, 0, 0.2)"
70468
+ }
70469
+ })), Cie = () => He({
70470
+ root: ["root"]
70471
+ }, (n) => Ue(ZN, n), {}), Aie = ({ task: e }) => {
70472
+ var c;
70473
+ const t = xie(), n = ie(), [a, r] = C.useState(""), s = ((c = e.comments) == null ? void 0 : c.filter((u) => u.external).sort((u, d) => Pe.fromISO(d.created).toMillis() - Pe.fromISO(u.created).toMillis())) || [], o = (u) => {
70474
+ try {
70475
+ return Pe.fromISO(u).setLocale("fi").toLocaleString(Pe.DATETIME_SHORT);
70476
+ } catch {
70477
+ return u;
70478
+ }
70479
+ };
70480
+ function l(u) {
70481
+ r(u), console.log("message:", u);
70482
+ }
70483
+ return /* @__PURE__ */ E(_ie, { className: t.container, children: [
70484
+ /* @__PURE__ */ i(R, { className: t.messagesContainer, children: s.length === 0 ? /* @__PURE__ */ i(bo, { severity: "info", children: "No messages yet" }) : s.map((u) => /* @__PURE__ */ E(R, { className: t.messageRow, children: [
70485
+ /* @__PURE__ */ i(Hn, { className: u.source === "FRONTDESK" ? t.frontdeskAvatar : t.customerAvatar }),
70486
+ /* @__PURE__ */ E(R, { className: u.source === "FRONTDESK" ? t.frontdeskMessageBody : t.customerMessageBody, children: [
70487
+ /* @__PURE__ */ E(F, { className: t.senderInfo, children: [
70488
+ u.userName,
70489
+ " wrote on ",
70490
+ o(u.created)
70491
+ ] }),
70492
+ /* @__PURE__ */ i(F, { style: { overflow: "hidden", whiteSpace: "normal" }, children: u.commentText })
70493
+ ] })
70494
+ ] }, u.id)) }),
70495
+ /* @__PURE__ */ E(R, { className: t.inputBox, children: [
70496
+ /* @__PURE__ */ i(rt, {}),
70497
+ /* @__PURE__ */ E(R, { display: "flex", alignItems: "center", children: [
70498
+ /* @__PURE__ */ i(Oa, { color: "primary" }),
70499
+ /* @__PURE__ */ i(F, { className: t.messageBoxLabel, children: n.formatMessage({ id: "task.customerMessages.newMessageTitle", defaultMessage: "Write a new message" }) })
70500
+ ] }),
70501
+ /* @__PURE__ */ i(
70502
+ Iie,
70503
+ {
70504
+ value: a,
70505
+ fullWidth: !0,
70506
+ multiline: !0,
70507
+ rows: 3,
70508
+ onChange: (u) => l(u.target.value),
70509
+ placeholder: n.formatMessage({ id: "task.customerMessages.newMessagePlaceholder", defaultMessage: "My message to customer..." })
70510
+ }
70511
+ )
70512
+ ] })
70513
+ ] });
70514
+ }, QN = "CustomerMessagesEdit", _ie = fe("div", {
70515
+ name: QN,
70516
+ slot: "Message",
70517
+ overridesResolver: (e, t) => [
70518
+ t.container
70519
+ ]
70520
+ })(({ theme: e }) => ({
70521
+ display: "flex",
70522
+ flexDirection: "column",
70523
+ height: "100%",
70524
+ overflow: "hidden",
70525
+ padding: e.spacing(2),
70526
+ ".MuiDivider-root": {
70527
+ marginTop: e.spacing(1),
70528
+ marginBottom: e.spacing(1)
70529
+ },
70530
+ "& .CustomerMessagesEdit-messageBoxLabel": {
70531
+ ...e.typography.body2,
70532
+ fontWeight: "bold"
70533
+ },
70534
+ "& .CustomerMessagesEdit-messageRow": {
70535
+ display: "flex",
70536
+ alignItems: "center",
70537
+ marginBottom: e.spacing(2)
70538
+ },
70539
+ "& .CustomerMessagesEdit-inputBox": {
70540
+ flexShrink: 0,
70541
+ bottom: 0,
70542
+ position: "sticky",
70543
+ width: "100%",
70544
+ padding: e.spacing(1)
70545
+ },
70546
+ "& .CustomerMessagesEdit-messagesContainer": {
70547
+ flexGrow: 1,
70548
+ overflowY: "auto",
70549
+ paddingRight: e.spacing(1)
70550
+ },
70551
+ "& .CustomerMessagesEdit-senderInfo": {
70552
+ fontWeight: "bold !important"
70553
+ //TODO figure out a better way with cardThemeConfig
70554
+ },
70555
+ "& .CustomerMessagesEdit-frontdeskAvatar": {
70556
+ border: `1px solid ${$n("#caf0f8", 0.1)}`,
70557
+ backgroundColor: "#caf0f8",
70558
+ marginRight: e.spacing(1),
70559
+ boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.1)"
70560
+ },
70561
+ "& .CustomerMessagesEdit-customerAvatar": {
70562
+ border: `1px solid ${$n("#ecf39e", 0.1)}`,
70563
+ backgroundColor: "#ecf39e",
70564
+ marginRight: e.spacing(1),
70565
+ boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.1)"
70566
+ },
70567
+ "& .CustomerMessagesEdit-frontdeskMessageBody": {
70568
+ flexGrow: 1,
70569
+ backgroundColor: "#caf0f8",
70570
+ borderRadius: "20px",
70571
+ padding: e.spacing(1),
70572
+ border: `1px solid ${$n("#caf0f8", 0.1)}`,
70573
+ boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.1)"
70574
+ },
70575
+ "& .CustomerMessagesEdit-customerMessageBody": {
70576
+ flexGrow: 1,
70577
+ backgroundColor: "#ecf39e",
70578
+ borderRadius: "20px",
70579
+ padding: e.spacing(1),
70580
+ border: `1px solid ${$n("#ecf39e", 0.1)}`,
70581
+ boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.1)"
70582
+ },
70583
+ "& .MuiSvgIcon-root": {
70584
+ fontSize: "20pt",
70585
+ marginRight: e.spacing(1),
70586
+ marginLeft: e.spacing(1)
70587
+ }
70588
+ })), Iie = fe(Fe)(({ theme: e }) => ({
70589
+ width: "100%",
70590
+ "& .MuiInputBase-input": {
70591
+ height: "2.5rem",
70592
+ padding: "0 12px"
70593
+ }
70594
+ })), xie = () => He({
70595
+ container: ["container"],
70596
+ messageRow: ["messageRow"],
70597
+ messageBoxLabel: ["messageBoxLabel"],
70598
+ messagesContainer: ["messagesContainer"],
70599
+ senderInfo: ["senderInfo"],
70600
+ inputBox: ["inputBox"],
70601
+ frontdeskAvatar: ["frontdeskAvatar"],
70602
+ customerAvatar: ["customerAvatar"],
70603
+ frontdeskMessageBody: ["frontdeskMessageBody"],
70604
+ customerMessageBody: ["customerMessageBody"]
70605
+ }, (n) => Ue(QN, n), {}), Nie = ({ task: e, open: t, onClose: n }) => {
70606
+ const a = Die(), r = ie();
70607
+ return /* @__PURE__ */ E(Rie, { className: a.editCustomerMessages, open: t, onClose: n, fullWidth: !0, maxWidth: "lg", slots: { transition: Uk }, children: [
70608
+ /* @__PURE__ */ E(Ce, { children: [
70609
+ r.formatMessage({ id: "task.customerMessages" }),
70610
+ r.formatMessage({ id: "eveli.textSeparatorColon" }),
70611
+ e.taskRef ?? "no task reference id"
70612
+ ] }),
70613
+ /* @__PURE__ */ i(ke, { children: /* @__PURE__ */ i(Aie, { task: e }) }),
70614
+ /* @__PURE__ */ E(Ae, { children: [
70615
+ /* @__PURE__ */ i(K, { variant: "outlined", onClick: n, children: r.formatMessage({ id: "button.cancel" }) }),
70616
+ /* @__PURE__ */ i(K, { children: r.formatMessage({ id: "button.sendMessage", defaultMessage: "Send message now" }) })
70617
+ ] })
70618
+ ] });
70619
+ }, JN = "EditCustomerMessagesDialog", Rie = fe(Se, {
70620
+ name: JN,
70621
+ slot: "Messages",
70622
+ overridesResolver: (e, t) => [
70623
+ t.EditCustomerMessages
70624
+ ]
70625
+ })(({ theme: e }) => ({
70626
+ height: "100vh",
70627
+ ".MuiDialogContent-root": {
70628
+ display: "flex",
70629
+ flexDirection: "column",
70630
+ padding: 0,
70631
+ overflow: "hidden"
70632
+ }
70633
+ })), Die = () => He({
70634
+ editCustomerMessages: ["editCustomerMessages"]
70635
+ }, (n) => Ue(JN, n), {}), Oie = ({ task: e, style: t }) => {
70636
+ var l;
70637
+ const n = Fie(), a = ((l = e.comments) == null ? void 0 : l.filter((c) => c.external).sort((c, u) => Pe.fromISO(u.created).toMillis() - Pe.fromISO(c.created).toMillis())) || [], r = a.slice(0, 3), s = (c) => {
70638
+ try {
70639
+ return Pe.fromISO(c).setLocale("fi").toLocaleString(Pe.DATETIME_SHORT);
70640
+ } catch {
70641
+ return c;
70642
+ }
70643
+ }, o = (c, u) => c.length <= u ? c : c.slice(0, u) + "…";
70644
+ return /* @__PURE__ */ E(Lie, { className: n.container, children: [
70645
+ r.length === 0 && /* @__PURE__ */ i(F, { sx: { ...t }, children: "No messages" }),
70646
+ r.slice(0, 3).map((c) => /* @__PURE__ */ E(R, { className: n.messageRow, children: [
70647
+ /* @__PURE__ */ i(Hn, { className: c.source === "FRONTDESK" ? n.frontdeskAvatar : n.customerAvatar }),
70648
+ /* @__PURE__ */ E(R, { className: c.source === "FRONTDESK" ? n.frontdeskMessageBody : n.customerMessageBody, children: [
70649
+ /* @__PURE__ */ E(F, { className: n.senderInfo, sx: { ...t.bodyTypography }, children: [
70650
+ c.userName,
70651
+ " wrote on ",
70652
+ s(c.created)
70653
+ ] }),
70654
+ /* @__PURE__ */ i(F, { style: { ...t.bodyTypography, overflow: "hidden", whiteSpace: "normal" }, children: o(c.commentText, 200) })
70655
+ ] })
70656
+ ] }, c.id)),
70657
+ a.length > 3 && /* @__PURE__ */ E(F, { sx: { ...t.bodyTypography }, children: [
70658
+ "...",
70659
+ a.length - 3,
70660
+ " more..."
70661
+ ] })
70662
+ ] });
70663
+ }, eR = "EveliCustomerMessagesReadOnly", Lie = fe("div", {
70664
+ name: eR,
70665
+ slot: "Message",
70666
+ overridesResolver: (e, t) => [
70667
+ t.container
70668
+ ]
70669
+ })(({ theme: e }) => ({
70670
+ display: "flex",
70671
+ flexDirection: "column",
70672
+ gap: e.spacing(2),
70673
+ "& .EveliCustomerMessagesReadOnly-messageRow": {
70674
+ display: "flex",
70675
+ alignItems: "center"
70676
+ },
70677
+ "& .EveliCustomerMessagesReadOnly-senderInfo": {
70678
+ fontWeight: "bold !important"
70679
+ //TODO figure out a better way with cardThemeConfig
70680
+ },
70681
+ "& .EveliCustomerMessagesReadOnly-frontdeskAvatar": {
70682
+ border: `1px solid ${$n("#caf0f8", 0.1)}`,
70683
+ backgroundColor: "#caf0f8",
70684
+ marginRight: e.spacing(1),
70685
+ boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.1)"
70686
+ },
70687
+ "& .EveliCustomerMessagesReadOnly-customerAvatar": {
70688
+ border: `1px solid ${$n("#ecf39e", 0.1)}`,
70689
+ backgroundColor: "#ecf39e",
70690
+ marginRight: e.spacing(1),
70691
+ boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.1)"
70692
+ },
70693
+ "& .EveliCustomerMessagesReadOnly-frontdeskMessageBody": {
70694
+ flexGrow: 1,
70695
+ backgroundColor: "#caf0f8",
70696
+ borderRadius: "20px",
70697
+ padding: e.spacing(1),
70698
+ border: `1px solid ${$n("#caf0f8", 0.1)}`,
70699
+ boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.1)"
70700
+ },
70701
+ "& .EveliCustomerMessagesReadOnly-customerMessageBody": {
70702
+ flexGrow: 1,
70703
+ backgroundColor: "#ecf39e",
70704
+ borderRadius: "20px",
70705
+ padding: e.spacing(1),
70706
+ border: `1px solid ${$n("#ecf39e", 0.1)}`,
70707
+ boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.1)"
70708
+ },
70709
+ "& .MuiSvgIcon-root": {
70710
+ fontSize: "10pt",
70711
+ marginRight: e.spacing(1),
70712
+ marginLeft: e.spacing(1)
70713
+ }
70714
+ })), Fie = () => He({
70715
+ container: ["container"],
70716
+ messageRow: ["messageRow"],
70717
+ senderInfo: ["senderInfo"],
70718
+ frontdeskAvatar: ["frontdeskAvatar"],
70719
+ customerAvatar: ["customerAvatar"],
70720
+ frontdeskMessageBody: ["frontdeskMessageBody"],
70721
+ customerMessageBody: ["customerMessageBody"]
70722
70722
  }, (n) => Ue(eR, n), {}), Mie = (e) => {
70723
70723
  const [t, n] = C.useState(), { getTask: a } = ve("worker/rest/api/tasks/$taskId.GET", {}), [r, s] = C.useState(!1), [o, l] = C.useState({}), [c, u] = C.useState(), [d, p] = C.useState("default"), m = BN(r)[d], h = (k) => {
70724
70724
  l((w) => ({
@@ -70758,7 +70758,7 @@ const wie = ({ ...e }) => {
70758
70758
  Sa,
70759
70759
  {
70760
70760
  id: "task_main",
70761
- editDialog: c === "task_main" && /* @__PURE__ */ i(Tie, { task: t, open: !0, onClose: v }),
70761
+ editDialog: c === "task_main" && /* @__PURE__ */ i(lie, { task: t, open: !0, onClose: v }),
70762
70762
  onDoubleClick: () => A("task_main"),
70763
70763
  isMenu: !0,
70764
70764
  title: `Task: ${t.taskRef}`,
@@ -70775,14 +70775,14 @@ const wie = ({ ...e }) => {
70775
70775
  style: m,
70776
70776
  value: /* @__PURE__ */ E(R, { display: "flex", justifyContent: "space-between", children: [
70777
70777
  b(t.dueDate),
70778
- /* @__PURE__ */ i(wie, { task: t, style: m })
70778
+ /* @__PURE__ */ i(pie, { task: t, style: m })
70779
70779
  ] })
70780
70780
  }
70781
70781
  ),
70782
70782
  /* @__PURE__ */ i(ka, { label: "Customer name", value: t.clientIdentificator ? t.clientIdentificator : "NONE", style: m }),
70783
70783
  /* @__PURE__ */ i(ka, { label: "Subject", value: t.subject, style: m }),
70784
70784
  /* @__PURE__ */ i(ka, { label: "Info", value: t.additionalInfo, style: m }),
70785
- /* @__PURE__ */ i(YN, { task: t }),
70785
+ /* @__PURE__ */ i(GN, { task: t }),
70786
70786
  /* @__PURE__ */ i(Se, { open: !1 })
70787
70787
  ]
70788
70788
  }
@@ -70822,9 +70822,9 @@ const wie = ({ ...e }) => {
70822
70822
  flashy: g("status-priority"),
70823
70823
  onToggleFlashy: () => h("status-priority"),
70824
70824
  children: /* @__PURE__ */ E(Rt, { direction: "column", height: "100%", children: [
70825
- /* @__PURE__ */ i(Nie, { style: m }),
70825
+ /* @__PURE__ */ i(Eie, { style: m }),
70826
70826
  /* @__PURE__ */ i(rt, { sx: { my: 1 } }),
70827
- /* @__PURE__ */ i(Aie, { style: m })
70827
+ /* @__PURE__ */ i(mie, { style: m })
70828
70828
  ] })
70829
70829
  }
70830
70830
  ) }),
@@ -70839,7 +70839,7 @@ const wie = ({ ...e }) => {
70839
70839
  flashy: g("assignees-roles"),
70840
70840
  onToggleFlashy: () => h("assignees-roles"),
70841
70841
  children: [
70842
- /* @__PURE__ */ i(Ul, { label: "Roles", value: /* @__PURE__ */ i(nie, { task: t }), style: m }),
70842
+ /* @__PURE__ */ i(Ul, { label: "Roles", value: /* @__PURE__ */ i(wie, { task: t }), style: m }),
70843
70843
  /* @__PURE__ */ i(rt, { sx: { my: 1 } }),
70844
70844
  /* @__PURE__ */ i(Ul, { label: "Assigned to", value: /* @__PURE__ */ i(eie, { task: t }), style: m })
70845
70845
  ]
@@ -70850,14 +70850,14 @@ const wie = ({ ...e }) => {
70850
70850
  {
70851
70851
  id: "customer_messages",
70852
70852
  title: "Customer messages",
70853
- editDialog: c === "customer_messages" && /* @__PURE__ */ i(bie, { task: t, open: !0, onClose: v }),
70853
+ editDialog: c === "customer_messages" && /* @__PURE__ */ i(Nie, { task: t, open: !0, onClose: v }),
70854
70854
  onDoubleClick: () => A("customer_messages"),
70855
70855
  isMenu: !0,
70856
70856
  startAdornmentIcon: /* @__PURE__ */ i(Wa, { icon: MO }),
70857
70857
  styleVariant: d,
70858
70858
  flashy: g("customer_messages"),
70859
70859
  onToggleFlashy: () => h("customer_messages"),
70860
- children: /* @__PURE__ */ i(Rt, { direction: "column", children: /* @__PURE__ */ i(uie, { task: t, style: m }) })
70860
+ children: /* @__PURE__ */ i(Rt, { direction: "column", children: /* @__PURE__ */ i(Oie, { task: t, style: m }) })
70861
70861
  }
70862
70862
  ) }),
70863
70863
  /* @__PURE__ */ i(oe, { size: r ? _t.singleCol : _t[d], children: /* @__PURE__ */ i(
@@ -70870,7 +70870,7 @@ const wie = ({ ...e }) => {
70870
70870
  styleVariant: d,
70871
70871
  flashy: g("files"),
70872
70872
  onToggleFlashy: () => h("files"),
70873
- children: /* @__PURE__ */ i(oie, { task: t, style: m })
70873
+ children: /* @__PURE__ */ i(iie, { task: t, style: m })
70874
70874
  }
70875
70875
  ) }),
70876
70876
  /* @__PURE__ */ i(oe, { size: r ? _t.singleCol : _t[d], children: /* @__PURE__ */ i(
@@ -70883,7 +70883,7 @@ const wie = ({ ...e }) => {
70883
70883
  styleVariant: d,
70884
70884
  flashy: g("feedback"),
70885
70885
  onToggleFlashy: () => h("feedback"),
70886
- children: /* @__PURE__ */ i(rie, { task: t, style: m })
70886
+ children: /* @__PURE__ */ i(nie, { task: t, style: m })
70887
70887
  }
70888
70888
  ) }),
70889
70889
  /* @__PURE__ */ i(oe, { size: r ? _t.singleCol : _t[d], children: /* @__PURE__ */ i(
@@ -70896,7 +70896,7 @@ const wie = ({ ...e }) => {
70896
70896
  styleVariant: d,
70897
70897
  flashy: g("notes"),
70898
70898
  onToggleFlashy: () => h("notes"),
70899
- children: /* @__PURE__ */ i(Oie, { task: t, style: m })
70899
+ children: /* @__PURE__ */ i(vie, { task: t, style: m })
70900
70900
  }
70901
70901
  ) }),
70902
70902
  /* @__PURE__ */ i(oe, { size: r ? _t.singleCol : _t[d], children: /* @__PURE__ */ E(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxs-ts/eveli-ide",
3
- "version": "0.0.431",
3
+ "version": "0.0.432",
4
4
  "homepage": "https://github.com/digiexpress-io/digiexpress-parent",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",