@voplus/morpho-workspace 6.0.18 → 6.0.19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (24) hide show
  1. package/es/data/worktype/WorkTypeStore.d.ts +2 -1
  2. package/es/data/worktype/WorkTypeStore.js +5 -0
  3. package/es/data/worktype/WorkTypeStore.js.map +1 -1
  4. package/es/data/worktype/interfaces.d.ts +6 -1
  5. package/es/data/worktype/types.d.ts +7 -0
  6. package/es/modules/work/work-type/components/AutoSequenceDialog/Tip.d.ts +5 -0
  7. package/es/modules/work/work-type/components/AutoSequenceDialog/Tip.js +10 -0
  8. package/es/modules/work/work-type/components/AutoSequenceDialog/Tip.js.map +1 -0
  9. package/es/modules/work/work-type/components/AutoSequenceDialog/index.d.ts +12 -0
  10. package/es/modules/work/work-type/components/AutoSequenceDialog/index.js +98 -0
  11. package/es/modules/work/work-type/components/AutoSequenceDialog/index.js.map +1 -0
  12. package/es/modules/work/work-type/components/AutoSequenceDialog/index.less +14 -0
  13. package/es/modules/work/work-type/components/AutoSequenceDialog/state.d.ts +12 -0
  14. package/es/modules/work/work-type/components/AutoSequenceDialog/state.js +81 -0
  15. package/es/modules/work/work-type/components/AutoSequenceDialog/state.js.map +1 -0
  16. package/es/modules/work/work-type/components/AutoSequenceLink/index.d.ts +5 -0
  17. package/es/modules/work/work-type/components/AutoSequenceLink/index.js +11 -0
  18. package/es/modules/work/work-type/components/AutoSequenceLink/index.js.map +1 -0
  19. package/es/modules/work/work-type/components/WorkTypeProperties/Properties.d.ts +1 -1
  20. package/es/modules/work/work-type/components/WorkTypeProperties/Properties.js +3 -0
  21. package/es/modules/work/work-type/components/WorkTypeProperties/Properties.js.map +1 -1
  22. package/es/modules/work/work-type/components/WorkTypeProperties/index.js +1 -0
  23. package/es/modules/work/work-type/components/WorkTypeProperties/index.js.map +1 -1
  24. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import { ApiEndPoint } from "@voplus/api";
2
2
  import { CountedMap, Store } from "@voplus/morpho-data";
3
- import { IWorkType, LoadWorkTypeOptions, WorkTypeCreateOptions, WorkTypeEditOptions, WorkTypeChangeFolderOptions } from ".";
3
+ import { IWorkType, IPreview, LoadPreviewOptions, LoadWorkTypeOptions, WorkTypeCreateOptions, WorkTypeEditOptions, WorkTypeChangeFolderOptions } from ".";
4
4
  import { LoadDocumentListOptions } from "@voplus/morpho-document-core";
5
5
  /** Corporate store supply backend functions. */
6
6
  export declare class WorkTypeStore extends Store {
@@ -25,6 +25,7 @@ export declare class WorkTypeStore extends Store {
25
25
  delete(ids: string[], options: {
26
26
  DeleteChilds?: boolean;
27
27
  }): Promise<IWorkType[]>;
28
+ preview(options: LoadPreviewOptions): Promise<IPreview>;
28
29
  loadList(options?: LoadDocumentListOptions): Promise<IWorkType[]>;
29
30
  load(id: string, options: LoadWorkTypeOptions): Promise<IWorkType>;
30
31
  }
@@ -88,6 +88,11 @@ export class WorkTypeStore extends Store {
88
88
  }
89
89
  return deleted;
90
90
  }
91
+ async preview(options) {
92
+ let query = `?format=${options.Format}&sequence=${options.Sequence}`;
93
+ const r = await this.endpoint.get(`/api/sequences/preview${query}`);
94
+ return (await r.json());
95
+ }
91
96
  async loadList(options) {
92
97
  let query = "";
93
98
  if (options === null || options === void 0 ? void 0 : options.Includes) {
@@ -1 +1 @@
1
- {"version":3,"file":"WorkTypeStore.js","sourceRoot":"","sources":["../../../src/data/worktype/WorkTypeStore.ts"],"names":[],"mappings":";AAAA,OAAO,EAAe,cAAc,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAU/E,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,MAAM,SAAS,GAAG,eAAe,CAAC;AAElC,gDAAgD;AAChD,MAAM,OAAO,aAAc,SAAQ,KAAK;IAMvC,YAAmC,QAAqB;QACvD,KAAK,EAAE,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AG,CAAC,kBAAkB,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC;QAClE,OAAO,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,CAAc,CAAC;IACtC,CAAC;CACD;AAjDa;IADZ,MAAM;2CAqBN;AA+BF,2BAA2B;AAC3B,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,EAAE;IACpC,MAAM,OAAO,GAAG,qBAAqB,EAAE,CAAC;IACxC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC;QAClC,OAAO,CAAC,QAAQ,CAAC,IAAI,aAAa,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,CAAC;IAClE,CAAC;IACD,OAAO,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAmB,CAAC;AACtD,CAAC,CAAC"}
@@ -9,7 +9,9 @@ export interface ICheckListItem {
9
9
  }
10
10
  export interface ISequenceInfo {
11
11
  format?: string;
12
- startfrom?: number;
12
+ startFrom?: number;
13
+ reset?: "None" | "Day" | "Month" | "Year";
14
+ sequence?: number;
13
15
  }
14
16
  export interface IAuditAuditorInfo {
15
17
  /** a value indicating whether audit is enabled */
@@ -70,3 +72,6 @@ export interface IWorkType extends ILoadable {
70
72
  rejectReasons?: string[];
71
73
  errorTypes?: string[];
72
74
  }
75
+ export interface IPreview {
76
+ preview: string;
77
+ }
@@ -12,13 +12,20 @@ export type WorkTypeCreateDataOptions = {
12
12
  /** name of the new workType */
13
13
  Name: string;
14
14
  };
15
+ export type SequenceReset = "None" | "Day" | "Month" | "Year";
15
16
  export type SequenceEditOptions = {
16
17
  /** gets the format of the sequence */
17
18
  Format?: string;
19
+ Sequence?: number;
18
20
  /** gets the reset value of the sequence */
21
+ Reset?: SequenceReset;
19
22
  /** gets the start value of the sequence */
20
23
  StartFrom?: number;
21
24
  };
25
+ export type LoadPreviewOptions = {
26
+ Format: string;
27
+ Sequence: number;
28
+ };
22
29
  export type WorkTypeCreateOptions = {
23
30
  data: WorkTypeCreateDataOptions;
24
31
  } & StoreActionOptions;
@@ -0,0 +1,5 @@
1
+ import React from "react";
2
+ declare const _default: (props: {
3
+ content: React.ReactNode | React.ReactNode[];
4
+ }) => React.JSX.Element;
5
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
2
+ import { Popover } from "antd";
3
+ import React from "react";
4
+ import { faCircleInfo } from "@fortawesome/pro-duotone-svg-icons";
5
+ export default (props) => {
6
+ return (React.createElement(Popover, { content: React.createElement("span", null, props.content) },
7
+ React.createElement("span", null,
8
+ React.createElement(FontAwesomeIcon, { icon: faCircleInfo, size: "sm", style: { color: "#9D9D9D", fontSize: "14px", marginLeft: "8px" } }))));
9
+ };
10
+ //# sourceMappingURL=Tip.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tip.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/components/AutoSequenceDialog/Tip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAElE,eAAe,CAAC,KAAuD,EAAE,EAAE;IAC1E,OAAO,CACN,oBAAC,OAAO,IAAC,OAAO,EAAE,kCAAO,KAAK,CAAC,OAAO,CAAQ;QAC7C;YACC,oBAAC,eAAe,IACf,IAAI,EAAE,YAAY,EAClB,IAAI,EAAC,IAAI,EACT,KAAK,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,GAC/D,CACI,CACE,CACV,CAAC;AACH,CAAC,CAAC"}
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ import "./index.less";
3
+ declare const AutoSequenceDialog: (props: {
4
+ id: string;
5
+ defaultDocument?: {
6
+ id: string;
7
+ name: string;
8
+ } | undefined;
9
+ onCancel?: (() => void) | undefined;
10
+ onSubmit?: (() => void) | undefined;
11
+ }) => React.JSX.Element;
12
+ export default AutoSequenceDialog;
@@ -0,0 +1,98 @@
1
+ import React, { useState } from "react";
2
+ import { useWorkTypeStore, useWorkType } from "../../../../../data/worktype";
3
+ import { State } from "./state";
4
+ import { observe } from "@voplus/morpho-ui";
5
+ import { Form, Select, Modal, Input, InputNumber, Row, Col } from "antd";
6
+ import Tip from "./Tip";
7
+ import "./index.less";
8
+ const AutoSequenceDialog = (props) => {
9
+ const store = useWorkTypeStore();
10
+ const [state] = useState(new State(store));
11
+ const dateFormat = "{0:date format}";
12
+ const sequenceFormat = "{1:sequence format}";
13
+ const worktype = useWorkType(props.id);
14
+ state.update(worktype);
15
+ return observe(() => {
16
+ var _a;
17
+ return (React.createElement(Modal, { width: 550, open: true, title: "Auto Sequence", okText: "Save", onCancel: props.onCancel, onOk: onSubmit },
18
+ React.createElement(Form, { layout: "vertical" },
19
+ React.createElement(Row, { gutter: 20 },
20
+ React.createElement(Col, { span: 12 },
21
+ React.createElement(Form.Item, { label: React.createElement(React.Fragment, null,
22
+ "Format",
23
+ React.createElement(Tip, { content: React.createElement("div", { className: "format-tip" },
24
+ React.createElement("h3", null, "Format Input Guide:"),
25
+ React.createElement("p", null, "Use the placeholders below to format your input correctly:"),
26
+ React.createElement("ul", null,
27
+ React.createElement("li", null,
28
+ "`",
29
+ dateFormat,
30
+ "`: Enter the date in your desired format. Example: dd-MM-yyyy for 31-12-",
31
+ React.createElement("br", null),
32
+ "2024."),
33
+ React.createElement("li", null,
34
+ "`",
35
+ sequenceFormat,
36
+ "`: Enter the sequence number as needed, using the specified number ",
37
+ React.createElement("br", null),
38
+ " formats. Example: 0000 for 0025 when the sequence is 25.")),
39
+ React.createElement("h3", null, "Available Date Formats:"),
40
+ React.createElement("ul", null,
41
+ React.createElement("li", null, "yy: 2-digit year (e.g., 2024 \u2794 24)"),
42
+ React.createElement("li", null, "yyyy: 4-digit year (e.g., 2024 \u2794 2024)"),
43
+ React.createElement("li", null, "MM: 2-digit month (e.g., June \u2794 06)"),
44
+ React.createElement("li", null, "MMM: 3-character month abbreviation (e.g., June \u2794 Jun)"),
45
+ React.createElement("li", null, "dd: 2-digit day (from 01 to 31)"),
46
+ React.createElement("li", null, "ddd: 3-character abbreviated weekday name (Mon to Sun)")),
47
+ React.createElement("h3", null, "Number Format for Sequences:"),
48
+ React.createElement("ul", null,
49
+ React.createElement("li", null, "#: Displays the actual sequence number without any leading zeros. (e.g., 25 \u2794 25)"),
50
+ React.createElement("li", null,
51
+ "0: Zero placeholder for sequence numbers, fills with zeros to match the format length. (e.g., ",
52
+ React.createElement("br", null),
53
+ "0000 for a sequence of 25 will show 0025)"))) })) },
54
+ React.createElement(Input, { value: state.format, onChange: (e) => (state.format = e.target.value), onBlur: () => state.getPreview() }))),
55
+ React.createElement(Col, { span: 12 },
56
+ React.createElement(Form.Item, { label: "Preview" }, (_a = state.preview) === null || _a === void 0 ? void 0 : _a.preview))),
57
+ React.createElement(Row, { gutter: 20 },
58
+ React.createElement(Col, { span: 8 },
59
+ React.createElement(Form.Item, { label: React.createElement(React.Fragment, null,
60
+ "Current Sequence",
61
+ React.createElement(Tip, { content: React.createElement(React.Fragment, null,
62
+ "The last sequence number. The next will be this number + 1. For example,",
63
+ React.createElement("br", null),
64
+ "entering 100 means the next sequence generated will be 101.") })) },
65
+ React.createElement(InputNumber, { value: state.sequence, onChange: (value) => (state.sequence = value) }))),
66
+ React.createElement(Col, { span: 8 },
67
+ React.createElement(Form.Item, { label: "Reset Frequency" },
68
+ React.createElement(Select, { value: state.reset, options: [
69
+ { value: "Day", label: "Every Day" },
70
+ { value: "Month", label: "Every Month" },
71
+ { value: "Year", label: "Every Year" },
72
+ ], onChange: (value) => (state.reset = value) }))),
73
+ React.createElement(Col, { span: 8 },
74
+ React.createElement(Form.Item, { label: React.createElement(React.Fragment, null,
75
+ "Reset Start Value",
76
+ React.createElement(Tip, { content: React.createElement(React.Fragment, null,
77
+ "The start number for sequence resets, according to reset frequency. For",
78
+ React.createElement("br", null),
79
+ "example, setting to 1 means the sequence starts at 1 after each reset.") })) },
80
+ React.createElement(InputNumber, { value: state.startFrom, onChange: (value) => (state.startFrom = value) })))))));
81
+ });
82
+ async function onSubmit() {
83
+ var _a;
84
+ store.edit(props.id, {
85
+ data: {
86
+ Sequence: {
87
+ Format: state.format,
88
+ Sequence: state.sequence,
89
+ Reset: state.reset,
90
+ StartFrom: state.startFrom,
91
+ },
92
+ },
93
+ });
94
+ (_a = props.onSubmit) === null || _a === void 0 ? void 0 : _a.call(props);
95
+ }
96
+ };
97
+ export default AutoSequenceDialog;
98
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/components/AutoSequenceDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AACzE,OAAO,GAAG,MAAM,OAAO,CAAC;AACxB,OAAO,cAAc,CAAC;AAEtB,MAAM,kBAAkB,GAAG,CAAC,KAK3B,EAAE,EAAE;IACJ,MAAM,KAAK,GAAG,gBAAgB,EAAE,CAAC;IACjC,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;IAC3C,MAAM,UAAU,GAAG,iBAAiB,CAAC;IACrC,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AE,CAAC,CAAC,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,GACrD,CACS,CACP,CACD,CACA,CACA,CACR,CAAA;KAAA,CAAC,CAAC;IAEH,KAAK,UAAU,QAAQ;;QACtB,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE;YACpB,IAAI,EAAE;gBACL,QAAQ,EAAE;oBACT,MAAM,EAAE,KAAK,CAAC,MAAM;oBACpB,QAAQ,EAAE,KAAK,CAAC,QAAQ;oBACxB,KAAK,EAAE,KAAK,CAAC,KAAK;oBAClB,SAAS,EAAE,KAAK,CAAC,SAAS;iBAC1B;aACD;SACD,CAAC,CAAC;QACH,MAAA,KAAK,CAAC,QAAQ,qDAAI,CAAC;IACpB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,14 @@
1
+ :global {
2
+ .format-tip {
3
+ line-height: 25px;
4
+ h3 {
5
+ font-size: unit((20/16), em);
6
+ color: #000;
7
+ }
8
+ ul {
9
+ list-style-type: disc;
10
+ margin: 10px 0;
11
+ padding: 0 0 0 18px;
12
+ }
13
+ }
14
+ }
@@ -0,0 +1,12 @@
1
+ import { IPreview, SequenceReset, IWorkType, WorkTypeStore } from "../../../../../data/worktype";
2
+ export declare class State {
3
+ private store;
4
+ constructor(store: WorkTypeStore);
5
+ format?: string;
6
+ sequence: number;
7
+ reset: SequenceReset;
8
+ startFrom?: number;
9
+ preview?: IPreview;
10
+ update(data: IWorkType): void;
11
+ getPreview(): Promise<void>;
12
+ }
@@ -0,0 +1,81 @@
1
+ import { __decorate } from "tslib";
2
+ import { makeObservable, observable, action } from "mobx";
3
+ export class State {
4
+ constructor(store) {
5
+ Object.defineProperty(this, "store", {
6
+ enumerable: true,
7
+ configurable: true,
8
+ writable: true,
9
+ value: store
10
+ });
11
+ Object.defineProperty(this, "format", {
12
+ enumerable: true,
13
+ configurable: true,
14
+ writable: true,
15
+ value: void 0
16
+ });
17
+ Object.defineProperty(this, "sequence", {
18
+ enumerable: true,
19
+ configurable: true,
20
+ writable: true,
21
+ value: 0
22
+ });
23
+ Object.defineProperty(this, "reset", {
24
+ enumerable: true,
25
+ configurable: true,
26
+ writable: true,
27
+ value: "None"
28
+ });
29
+ Object.defineProperty(this, "startFrom", {
30
+ enumerable: true,
31
+ configurable: true,
32
+ writable: true,
33
+ value: 0
34
+ });
35
+ Object.defineProperty(this, "preview", {
36
+ enumerable: true,
37
+ configurable: true,
38
+ writable: true,
39
+ value: void 0
40
+ });
41
+ makeObservable(this);
42
+ }
43
+ update(data) {
44
+ var _a, _b, _c, _d, _e, _f;
45
+ this.format = (_a = data === null || data === void 0 ? void 0 : data.sequence) === null || _a === void 0 ? void 0 : _a.format;
46
+ this.sequence = (_c = (_b = data === null || data === void 0 ? void 0 : data.sequence) === null || _b === void 0 ? void 0 : _b.sequence) !== null && _c !== void 0 ? _c : 0;
47
+ this.reset = (_e = (_d = data === null || data === void 0 ? void 0 : data.sequence) === null || _d === void 0 ? void 0 : _d.reset) !== null && _e !== void 0 ? _e : "None";
48
+ this.startFrom = (_f = data === null || data === void 0 ? void 0 : data.sequence) === null || _f === void 0 ? void 0 : _f.startFrom;
49
+ this.getPreview();
50
+ }
51
+ async getPreview() {
52
+ if (this.format) {
53
+ this.preview = await this.store.preview({
54
+ Format: this.format,
55
+ Sequence: this.sequence,
56
+ });
57
+ }
58
+ }
59
+ }
60
+ __decorate([
61
+ observable
62
+ ], State.prototype, "format", void 0);
63
+ __decorate([
64
+ observable
65
+ ], State.prototype, "sequence", void 0);
66
+ __decorate([
67
+ observable
68
+ ], State.prototype, "reset", void 0);
69
+ __decorate([
70
+ observable
71
+ ], State.prototype, "startFrom", void 0);
72
+ __decorate([
73
+ observable
74
+ ], State.prototype, "preview", void 0);
75
+ __decorate([
76
+ action
77
+ ], State.prototype, "update", null);
78
+ __decorate([
79
+ action
80
+ ], State.prototype, "getPreview", null);
81
+ //# sourceMappingURL=state.js.map
@@ -0,0 +1 @@
1
+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U;qCAAwB;AAChB;IAAlB,UAAU;uCAA6B;AACrB;IAAlB,UAAU;oCAAsC;AAC9B;IAAlB,UAAU;wCAA+B;AACvB;IAAlB,UAAU;sCAA2B;AAEvB;IAAd,MAAM;mCAMN;AAEoB;IAApB,MAAM;uCAON"}
@@ -0,0 +1,5 @@
1
+ import React from "react";
2
+ declare const AutoSequenceLink: (props: {
3
+ id: string;
4
+ }) => React.JSX.Element;
5
+ export default AutoSequenceLink;
@@ -0,0 +1,11 @@
1
+ import React, { useState } from "react";
2
+ import { observe } from "@voplus/morpho-ui";
3
+ import AutoSequenceDialog from "../AutoSequenceDialog";
4
+ const AutoSequenceLink = (props) => {
5
+ const [open, setOpen] = useState(false);
6
+ return observe(() => (React.createElement(React.Fragment, null,
7
+ React.createElement("span", { className: "add-info-style", onClick: () => setOpen(true) }, "Auto Sequence"),
8
+ open && (React.createElement(AutoSequenceDialog, { id: props.id, onCancel: () => setOpen(false), onSubmit: () => setOpen(false) })))));
9
+ };
10
+ export default AutoSequenceLink;
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/components/AutoSequenceLink/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AAEvD,MAAM,gBAAgB,GAAG,CAAC,KAAqB,EAAE,EAAE;IAClD,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IACxC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB;QACC,8BAAM,SAAS,EAAC,gBAAgB,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,oBAEtD;QACN,IAAI,IAAI,CACR,oBAAC,kBAAkB,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,GAAI,CACpG,CACC,CACH,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- export type WorkTypePropertiesName = "Work Space" | "Number Format" | "Status" | "Default Folder" | "Documentation" | "Default Due" | "Requester" | "Accepters" | "Default Owner" | "Auto Accept";
2
+ export type WorkTypePropertiesName = "Work Space" | "Sequence" | "Number Format" | "Status" | "Default Folder" | "Documentation" | "Default Due" | "Requester" | "Accepters" | "Default Owner" | "Auto Accept";
3
3
  declare const Properties: (props: {
4
4
  id: string;
5
5
  propertiesName: WorkTypePropertiesName;
@@ -11,6 +11,7 @@ import DocumentReference from "@voplus/morpho-document/es/controls/DocumentRefer
11
11
  import DocumentSelectDialog from "@voplus/morpho-document/es/components/DocumentSelectDialog";
12
12
  import ChangeWorkDefaultFolderDialog from "../ChangeWorkDefaultFolderDialog";
13
13
  import WorkTypeStatusLabel from "../../controls/WorkTypeStatusLabel";
14
+ import AutoSequenceLink from "../AutoSequenceLink";
14
15
  const Properties = (props) => {
15
16
  const { id, propertiesName } = props;
16
17
  const worktype = useWorkType(id);
@@ -27,6 +28,8 @@ const Properties = (props) => {
27
28
  switch (name) {
28
29
  case "Work Space":
29
30
  return (React.createElement(NodeLink, { node: worktype === null || worktype === void 0 ? void 0 : worktype.workspace, url: `/workspaces/${(_a = worktype.workspace) === null || _a === void 0 ? void 0 : _a.id}` }));
31
+ case "Sequence":
32
+ return React.createElement(AutoSequenceLink, { id: id });
30
33
  case "Number Format":
31
34
  return (React.createElement(InlineEdit, { defaultValue: (_b = worktype.sequence) === null || _b === void 0 ? void 0 : _b.format, content: (v) => {
32
35
  var _a;
@@ -1 +1 @@
1
- {"version":3,"file":"Properties.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/components/WorkTypeProperties/Properties.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,QAAQ,MAAM,kCAAkC,CAAC;AACxD,OAAO,UAAU,MAAM,6CAA6C,CAAC;AACrE,OAAO,iBAAiB,MAAM,+EAA+E,CAAC;AAC9G,OAAO,oBAAoB,MAAM,4DAA4D,CAAC;AAC9F,OAAO,6BAA6B,MAAM,kCAAkC,CAAC;AAC7E,OAAO,mBAAmB,MAAM,oCAAoC,CAAC;AAcrE,MAAM,UAAU,GAAG,CAAC,KAA6D,EAAE,EAAE;IACpF,MAAM,EAAE,EAAE,EAAE,cAAc,EAAE,GAAG,KAAK,CAAC;IACrC,MAAM,QAAQ,GAAG,WAAW,CAAC,EAAE,CAAC,CAAC;IACjC,MAAM,KAAK,GAAG,gBAAgB,EAAE,CAAC;IACjC,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;IAC3C,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAEvB,MAAM,EAAE,IAAI,EAAE,GAAG,qBAAqB,EAAE,CAAC;IAEzC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,KAAK,CAAC,QAAQ;QACb,UAAU,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CAAC,GAE5E,CACF,CAAC;QACJ,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"Properties.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/components/WorkTypeProperties/Properties.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,QAAQ,MAAM,kCAAkC,CAAC;AACxD,OAAO,UAAU,MAAM,6CAA6C,CAAC;AACrE,OAAO,iBAAiB,MAAM,+EAA+E,CAAC;AAC9G,OAAO,oBAAoB,MAAM,4DAA4D,CAAC;AAC9F,OAAO,6BAA6B,MAAM,kCAAkC,CAAC;AAC7E,OAAO,mBAAmB,MAAM,oCAAoC,CAAC;AACrE,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AAenD,MAAM,UAAU,GAAG,CAAC,KAA6D,EAAE,EAAE;IACpF,MAAM,EAAE,EAAE,EAAE,cAAc,EAAE,GAAG,KAAK,CAAC;IACrC,MAAM,QAAQ,GAAG,WAAW,CAAC,EAAE,CAAC,CAAC;IACjC,MAAM,KAAK,GAAG,gBAAgB,EAAE,CAAC;IACjC,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;IAC3C,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAEvB,MAAM,EA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,OAAO,EAAE,QAAQ,CAAC,UAAU,EAC5B,QAAQ,EAAE,CAAC,OAAO,EAAE,EAAE,CACrB,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,GAE5E,CACF,CAAC;QACJ,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -31,6 +31,7 @@ WorkTypeProperties.defaultProps = {
31
31
  header: true,
32
32
  workTypeProperties: [
33
33
  "Work Space",
34
+ "Sequence",
34
35
  "Number Format",
35
36
  "Status",
36
37
  "Default Folder",
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/components/WorkTypeProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,UAAsC,MAAM,cAAc,CAAC;AAClE,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAE7E,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,MAAM,kBAAkB,GAAG,CAAC,KAI3B,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,kBAAkB,EAAE,GAAG,KAAK,CAAC;IACzC,MAAM,KAAK,GAAG,gBAAgB,EAAE,CAAC;IACjC,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;IAE3C,MAAM,QAAQ,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ACI,CACK,CACR,CACN,CAAC,CAAC;IAEH,SAAS;IACT,SAAS,SAAS,CAAC,GAAW;QAC7B,MAAM,IAAI,GAAG,GAAG,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;QAClC,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC9D,OAAO,MAAM,CAAC;IACf,CAAC;AACF,CAAC,CAAC;AAEF,kBAAkB,CAAC,YAAY,GAAG;IACjC,MAAM,EAAE,IAAI;IACZ,kBAAkB,EAAE;QACnB,YAAY;QACZ,eAAe;QACf,QAAQ;QACR,gBAAgB;QAChB,eAAe;QACf,aAAa;QACb,WAAW;QACX,WAAW;QACX,eAAe;QACf,aAAa;KACb;CACD,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/components/WorkTypeProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,UAAsC,MAAM,cAAc,CAAC;AAClE,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAE7E,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,MAAM,kBAAkB,GAAG,CAAC,KAI3B,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,kBAAkB,EAAE,GAAG,KAAK,CAAC;IACzC,MAAM,KAAK,GAAG,gBAAgB,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AS,CAAC,CAAC,CAAC,EAAE;gBAC5E,oBAAC,UAAU,IAAC,EAAE,EAAE,EAAE,EAAE,cAAc,EAAE,CAAC,GAAI,CAC9B,CACZ,CAAC,CACI,CACK,CACR,CACN,CAAC,CAAC;IAEH,SAAS;IACT,SAAS,SAAS,CAAC,GAAW;QAC7B,MAAM,IAAI,GAAG,GAAG,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;QAClC,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC9D,OAAO,MAAM,CAAC;IACf,CAAC;AACF,CAAC,CAAC;AAEF,kBAAkB,CAAC,YAAY,GAAG;IACjC,MAAM,EAAE,IAAI;IACZ,kBAAkB,EAAE;QACnB,YAAY;QACZ,UAAU;QACV,eAAe;QACf,QAAQ;QACR,gBAAgB;QAChB,eAAe;QACf,aAAa;QACb,WAAW;QACX,WAAW;QACX,eAAe;QACf,aAAa;KACb;CACD,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voplus/morpho-workspace",
3
- "version": "6.0.18",
3
+ "version": "6.0.19",
4
4
  "description": "morpho workspace module",
5
5
  "repository": {
6
6
  "type": "git",