@voplus/morpho-workspace 6.0.22 → 6.0.23
Sign up to get free protection for your applications and to get access to all the features.
- package/es/controls/filters/EventsFilter/index.js +5 -10
- package/es/controls/filters/EventsFilter/index.js.map +1 -1
- package/es/controls/filters/EventsFilter/state.d.ts +0 -2
- package/es/controls/filters/EventsFilter/state.js +0 -11
- package/es/controls/filters/EventsFilter/state.js.map +1 -1
- package/es/controls/filters/TaskStatusFilter/index.js +7 -9
- package/es/controls/filters/TaskStatusFilter/index.js.map +1 -1
- package/es/controls/filters/TaskStatusFilter/state.d.ts +0 -2
- package/es/controls/filters/TaskStatusFilter/state.js +0 -11
- package/es/controls/filters/TaskStatusFilter/state.js.map +1 -1
- package/es/modules/work/work-type/components/WorkTypeIcon/index.js +5 -4
- package/es/modules/work/work-type/components/WorkTypeIcon/index.js.map +1 -1
- package/es/modules/workspace/components/WorkspaceIcon/index.js +6 -5
- package/es/modules/workspace/components/WorkspaceIcon/index.js.map +1 -1
- package/es/modules/workspace/components/WorkspaceIcon/index.less +66 -64
- package/package.json +1 -1
@@ -3,25 +3,20 @@ import { Badge } from "antd";
|
|
3
3
|
import { State } from "./state";
|
4
4
|
import classnames from "classnames";
|
5
5
|
import { observe } from "@voplus/morpho-ui";
|
6
|
-
import { runInAction } from "mobx";
|
7
6
|
import { useFilterOptionsContext } from "@voplus/morpho-ui/es/data";
|
8
7
|
const EventsFilter = (props) => {
|
9
8
|
const context = useFilterOptionsContext();
|
10
9
|
const state = context.getFilterState("Events", () => new State());
|
11
|
-
// defaultValue 为传入的预选状态
|
12
10
|
useEffect(() => {
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
}, [
|
11
|
+
var _a;
|
12
|
+
state.reset();
|
13
|
+
(_a = props.defaultValue) === null || _a === void 0 ? void 0 : _a.map((value) => state.onChangeEvents(value));
|
14
|
+
}, [props.defaultValue]);
|
17
15
|
return observe(() => (React.createElement("div", null,
|
18
16
|
React.createElement("div", { className: "menu-item-title" }, "Events"),
|
19
17
|
state.menus.map((item, index) => (React.createElement("div", { key: index, className: classnames("filter-menu-item", {
|
20
18
|
bold: state.events.has(item.value),
|
21
|
-
}), onClick: () =>
|
22
|
-
state.onChangeEvents(item.value);
|
23
|
-
runInAction(() => (state.showDefaultValue = false));
|
24
|
-
} },
|
19
|
+
}), onClick: () => state.onChangeEvents(item.value) },
|
25
20
|
React.createElement("div", { className: "filter-name" },
|
26
21
|
React.createElement(Badge, { color: item.color }),
|
27
22
|
item.name),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/controls/filters/EventsFilter/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/controls/filters/EventsFilter/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,MAAM,YAAY,GAAG,CAAC,KAAkC,EAAE,EAAE;IAC3D,MAAM,OAAO,GAAG,uBAAuB,EAAE,CAAC;IAE1C,MAAM,KAAK,GAAG,OAAO,CAAC,cAAc,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;IAElE,SAAS,CAAC,GAAG,EAAE;;QACd,KAAK,CAAC,KAAK,EAAE,CAAC;QACd,MAAA,KAAK,CAAC,YAAY,0CAAE,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC;IACjE,CAAC,EAAE,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC;IAEzB,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB;QACC,6BAAK,SAAS,EAAC,iBAAiB,aAAa;QAC5C,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAS,EAAE,KAAa,EAAE,EAAE,CAAC,CAC9C,6BACC,GAAG,EAAE,KAAK,EACV,SAAS,EAAE,UAAU,CAAC,kBAAkB,EAAE;gBACzC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC;aAClC,CAAC,EACF,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC;YAE/C,6BAAK,SAAS,EAAC,aAAa;gBAC3B,oBAAC,KAAK,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,GAAI;gBAC3B,IAAI,CAAC,IAAI,CACL;YACN,kCAAO,IAAI,CAAC,MAAM,CAAQ,CACrB,CACN,CAAC,CACG,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
@@ -1,8 +1,6 @@
|
|
1
1
|
import { FilterOption } from "@voplus/morpho-data";
|
2
2
|
import { IFilterState } from "@voplus/morpho-ui/es/data/IFilterState";
|
3
3
|
export declare class State implements IFilterState {
|
4
|
-
/** 是否显示预选status */
|
5
|
-
showDefaultValue: boolean;
|
6
4
|
/** events of filter */
|
7
5
|
events: Map<string, boolean>;
|
8
6
|
constructor();
|
@@ -2,13 +2,6 @@ import { __decorate } from "tslib";
|
|
2
2
|
import { action, makeObservable, observable } from "mobx";
|
3
3
|
export class State {
|
4
4
|
constructor() {
|
5
|
-
/** 是否显示预选status */
|
6
|
-
Object.defineProperty(this, "showDefaultValue", {
|
7
|
-
enumerable: true,
|
8
|
-
configurable: true,
|
9
|
-
writable: true,
|
10
|
-
value: true
|
11
|
-
});
|
12
5
|
/** events of filter */
|
13
6
|
Object.defineProperty(this, "events", {
|
14
7
|
enumerable: true,
|
@@ -41,12 +34,8 @@ export class State {
|
|
41
34
|
}
|
42
35
|
reset() {
|
43
36
|
this.events.clear();
|
44
|
-
this.showDefaultValue = true;
|
45
37
|
}
|
46
38
|
}
|
47
|
-
__decorate([
|
48
|
-
observable
|
49
|
-
], State.prototype, "showDefaultValue", void 0);
|
50
39
|
__decorate([
|
51
40
|
observable
|
52
41
|
], State.prototype, "events", void 0);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../src/controls/filters/EventsFilter/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAK1D,MAAM,OAAO,KAAK;
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../src/controls/filters/EventsFilter/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAK1D,MAAM,OAAO,KAAK;IAIjB;QAHA,uBAAuB;QACJ;;;;mBAA+B,IAAI,GAAG,EAAE;WAAC;QAG3D,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IAED,oBAAoB;IAEb,cAAc,CAAC,KAAa;QAClC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IACnF,CAAC;IAED,IAAW,KAAK;QACf,OAAO;YACN,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE;YACjE,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE;YACxE,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE;SACxE,CAAC;IACH,CAAC;IACD,IAAW,OAAO;QACjB,OAAO;YACN;gBACC,CAAC,EAAE,WAAW;gBACd,CAAC,EAAE,UAAU;gBACb,EAAE,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;gBAClD,CAAC,EAAE,KAAK;aACQ;SACjB,CAAC;IACH,CAAC;IACM,KAAK;QACX,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;IACrB,CAAC;CACD;AAhCmB;IAAlB,UAAU;qCAAiD;AAQrD;IADN,MAAM;2CAGN"}
|
@@ -1,24 +1,22 @@
|
|
1
1
|
import { Badge } from "antd";
|
2
|
-
import React from "react";
|
2
|
+
import React, { useEffect } from "react";
|
3
3
|
import { State } from "./state";
|
4
4
|
import classnames from "classnames";
|
5
5
|
import { observe } from "@voplus/morpho-ui";
|
6
|
-
import { runInAction } from "mobx";
|
7
6
|
import { useFilterOptionsContext } from "@voplus/morpho-ui/es/data";
|
8
7
|
const TaskStatusFilter = (props) => {
|
9
8
|
const context = useFilterOptionsContext();
|
10
9
|
const state = context.getFilterState("Status", () => new State());
|
11
|
-
|
12
|
-
|
13
|
-
|
10
|
+
useEffect(() => {
|
11
|
+
var _a;
|
12
|
+
state.reset();
|
13
|
+
(_a = props.defaultValue) === null || _a === void 0 ? void 0 : _a.map((value) => state.onChangeStatus(value));
|
14
|
+
}, [props.defaultValue]);
|
14
15
|
return observe(() => (React.createElement("div", null,
|
15
16
|
React.createElement("div", { className: "menu-item-title" }, "Status"),
|
16
17
|
state.menus.map((item, index) => (React.createElement("div", { key: index, className: classnames("filter-menu-item", {
|
17
18
|
bold: state.status.has(item.value),
|
18
|
-
}), onClick: () =>
|
19
|
-
state.onChangeStatus(item.value);
|
20
|
-
runInAction(() => (state.showDefaultValue = false));
|
21
|
-
} },
|
19
|
+
}), onClick: () => state.onChangeStatus(item.value) },
|
22
20
|
React.createElement("div", { className: "filter-name" },
|
23
21
|
React.createElement(Badge, { color: item.color }),
|
24
22
|
item.name),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/controls/filters/TaskStatusFilter/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,KAAK,MAAM,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/controls/filters/TaskStatusFilter/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAIpE,MAAM,gBAAgB,GAAG,CAAC,KAA4B,EAAE,EAAE;IACzD,MAAM,OAAO,GAAG,uBAAuB,EAAE,CAAC;IAE1C,MAAM,KAAK,GAAG,OAAO,CAAC,cAAc,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;IAElE,SAAS,CAAC,GAAG,EAAE;;QACd,KAAK,CAAC,KAAK,EAAE,CAAC;QACd,MAAA,KAAK,CAAC,YAAY,0CAAE,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC;IACjE,CAAC,EAAE,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC;IAEzB,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB;QACC,6BAAK,SAAS,EAAC,iBAAiB,aAAa;QAC5C,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAS,EAAE,KAAa,EAAE,EAAE,CAAC,CAC9C,6BACC,GAAG,EAAE,KAAK,EACV,SAAS,EAAE,UAAU,CAAC,kBAAkB,EAAE;gBACzC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC;aAClC,CAAC,EACF,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC;YAE/C,6BAAK,SAAS,EAAC,aAAa;gBAC3B,oBAAC,KAAK,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,GAAI;gBAC3B,IAAI,CAAC,IAAI,CACL;YACN,kCAAO,IAAI,CAAC,MAAM,CAAQ,CACrB,CACN,CAAC,CACG,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
@@ -1,8 +1,6 @@
|
|
1
1
|
import { FilterOption } from "@voplus/morpho-data";
|
2
2
|
import { IFilterState } from "@voplus/morpho-ui/es/data/IFilterState";
|
3
3
|
export declare class State implements IFilterState {
|
4
|
-
/** 是否显示预选status */
|
5
|
-
showDefaultValue: boolean;
|
6
4
|
/** Status of filter */
|
7
5
|
status: Map<string, boolean>;
|
8
6
|
constructor();
|
@@ -2,13 +2,6 @@ import { __decorate } from "tslib";
|
|
2
2
|
import { action, makeObservable, observable } from "mobx";
|
3
3
|
export class State {
|
4
4
|
constructor() {
|
5
|
-
/** 是否显示预选status */
|
6
|
-
Object.defineProperty(this, "showDefaultValue", {
|
7
|
-
enumerable: true,
|
8
|
-
configurable: true,
|
9
|
-
writable: true,
|
10
|
-
value: true
|
11
|
-
});
|
12
5
|
/** Status of filter */
|
13
6
|
Object.defineProperty(this, "status", {
|
14
7
|
enumerable: true,
|
@@ -44,12 +37,8 @@ export class State {
|
|
44
37
|
}
|
45
38
|
reset() {
|
46
39
|
this.status.clear();
|
47
|
-
this.showDefaultValue = true;
|
48
40
|
}
|
49
41
|
}
|
50
|
-
__decorate([
|
51
|
-
observable
|
52
|
-
], State.prototype, "showDefaultValue", void 0);
|
53
42
|
__decorate([
|
54
43
|
observable
|
55
44
|
], State.prototype, "status", void 0);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../src/controls/filters/TaskStatusFilter/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAK1D,MAAM,OAAO,KAAK;
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../src/controls/filters/TaskStatusFilter/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAK1D,MAAM,OAAO,KAAK;IAIjB;QAHA,uBAAuB;QACJ;;;;mBAA+B,IAAI,GAAG,EAAE;WAAC;QAG3D,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IAED,oBAAoB;IAEb,cAAc,CAAC,KAAa;QAClC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IACnF,CAAC;IAED,IAAW,KAAK;QACf,OAAO;YACN,iFAAiF;YACjF,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE;YAC3E,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE;YACtE,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE;YAC9D,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE;SAClE,CAAC;IACH,CAAC;IACD,IAAW,OAAO;QACjB,yCAAyC;QACzC,OAAO;YACN;gBACC,CAAC,EAAE,YAAY;gBACf,CAAC,EAAE,UAAU;gBACb,EAAE,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;gBAClD,CAAC,EAAE,KAAK;aACQ;SACjB,CAAC;IACH,CAAC;IACM,KAAK;QACX,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;IACrB,CAAC;CACD;AAnCmB;IAAlB,UAAU;qCAAiD;AAQrD;IADN,MAAM;2CAGN"}
|
@@ -9,10 +9,11 @@ import styles from "../../../../workspace/components/WorkspaceIcon/index.less";
|
|
9
9
|
const WorkTypeIcon = (props) => {
|
10
10
|
const { id, active } = props;
|
11
11
|
const worktype = useWorkType(id);
|
12
|
-
return observe(() => (React.createElement(
|
13
|
-
React.createElement(
|
14
|
-
React.createElement(
|
15
|
-
|
12
|
+
return observe(() => (React.createElement("div", { className: styles["work-space-type-card"] },
|
13
|
+
React.createElement(Card, { className: classnames("diamond-common-style", { active: active }), padding: "15px 12px", shadow: false, hoverShadow: false },
|
14
|
+
React.createElement("div", { className: classnames("diamond-icon"), style: { backgroundColor: "#EE6868" } },
|
15
|
+
React.createElement(FAIcon, { icon: faFileAlt, className: "diamond-icon-fa" })),
|
16
|
+
React.createElement("div", { className: "diamond-name" }, worktype === null || worktype === void 0 ? void 0 : worktype.name)))));
|
16
17
|
};
|
17
18
|
export default WorkTypeIcon;
|
18
19
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/components/WorkTypeIcon/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAC;AAC/D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,MAAM,MAAM,2DAA2D,CAAC;AAE/E,MAAM,YAAY,GAAG,CAAC,KAMrB,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAC7B,MAAM,QAAQ,GAAG,WAAW,CAAC,EAAG,CAAC,CAAC;IAElC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,IAAI,IACJ,SAAS,EAAE,UAAU,CAAC,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/components/WorkTypeIcon/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAC;AAC/D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,MAAM,MAAM,2DAA2D,CAAC;AAE/E,MAAM,YAAY,GAAG,CAAC,KAMrB,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAC7B,MAAM,QAAQ,GAAG,WAAW,CAAC,EAAG,CAAC,CAAC;IAElC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAE,MAAM,CAAC,sBAAsB,CAAC;QAC7C,oBAAC,IAAI,IACJ,SAAS,EAAE,UAAU,CAAC,sBAAsB,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,EACjE,OAAO,EAAC,WAAW,EACnB,MAAM,EAAE,KAAK,EACb,WAAW,EAAE,KAAK;YAElB,6BAAK,SAAS,EAAE,UAAU,CAAC,cAAc,CAAC,EAAE,KAAK,EAAE,EAAE,eAAe,EAAE,SAAS,EAAE;gBAChF,oBAAC,MAAM,IAAC,IAAI,EAAE,SAAS,EAAE,SAAS,EAAC,iBAAiB,GAAG,CAClD;YACN,6BAAK,SAAS,EAAC,cAAc,IAAE,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,CAAO,CAC9C,CACF,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
@@ -14,11 +14,12 @@ const WorkspaceIcon = (props) => {
|
|
14
14
|
const workspace = useWorkspace(id);
|
15
15
|
return observe(() => {
|
16
16
|
var _a;
|
17
|
-
return (React.createElement(
|
18
|
-
React.createElement(
|
19
|
-
|
20
|
-
React.createElement(
|
21
|
-
|
17
|
+
return (React.createElement("div", { className: styles["work-space-type-card"] },
|
18
|
+
React.createElement(Card, { className: classnames("diamond-common-style", { active: active }), padding: "15px 12px", shadow: false, hoverShadow: false },
|
19
|
+
React.createElement(Badge, { count: (_a = workspace === null || workspace === void 0 ? void 0 : workspace.stats) === null || _a === void 0 ? void 0 : _a.activeWorks, className: "site-badge-count" }),
|
20
|
+
React.createElement("div", { className: classnames("diamond-icon", { "new-workspace-icon": !id }) },
|
21
|
+
React.createElement(FAIcon, { icon: id ? faFileAlt : faPlus, className: "diamond-icon-fa" })),
|
22
|
+
React.createElement("div", { className: "diamond-name" }, (workspace === null || workspace === void 0 ? void 0 : workspace.name) || "New WorkSpace"))));
|
22
23
|
});
|
23
24
|
};
|
24
25
|
export default WorkspaceIcon;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/workspace/components/WorkspaceIcon/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,SAAS,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;AAErF,MAAM,aAAa,GAAG,CAAC,KAMtB,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAC7B,MAAM,SAAS,GAAG,YAAY,CAAC,EAAG,CAAC,CAAC;IAEpC,OAAO,OAAO,CAAC,GAAG,EAAE;;QAAC,OAAA,CACpB,oBAAC,IAAI,IACJ,SAAS,EAAE,UAAU,CAAC,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/workspace/components/WorkspaceIcon/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,SAAS,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;AAErF,MAAM,aAAa,GAAG,CAAC,KAMtB,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAC7B,MAAM,SAAS,GAAG,YAAY,CAAC,EAAG,CAAC,CAAC;IAEpC,OAAO,OAAO,CAAC,GAAG,EAAE;;QAAC,OAAA,CACpB,6BAAK,SAAS,EAAE,MAAM,CAAC,sBAAsB,CAAC;YAC7C,oBAAC,IAAI,IACJ,SAAS,EAAE,UAAU,CAAC,sBAAsB,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,EACjE,OAAO,EAAC,WAAW,EACnB,MAAM,EAAE,KAAK,EACb,WAAW,EAAE,KAAK;gBAElB,oBAAC,KAAK,IAAC,KAAK,EAAE,MAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,KAAK,0CAAE,WAAW,EAAE,SAAS,EAAC,kBAAkB,GAAG;gBAC5E,6BACC,SAAS,EAAE,UAAU,CAAC,cAAc,EAAE,EAAE,oBAAoB,EAAE,CAAC,EAAE,EAAE,CAAC;oBAGpE,oBAAC,MAAM,IAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,EAAE,SAAS,EAAC,iBAAiB,GAAG,CAChE;gBACN,6BAAK,SAAS,EAAC,cAAc,IAAE,CAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,IAAI,KAAI,eAAe,CAAO,CAClE,CACF,CACN,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
@@ -1,79 +1,81 @@
|
|
1
1
|
@import "~@voplus/morpho-theme/styles/index.less";
|
2
2
|
|
3
|
-
.
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
3
|
+
.work-space-type-card {
|
4
|
+
:global {
|
5
|
+
.diamond-common-style {
|
6
|
+
width: 140px;
|
7
|
+
display: flex;
|
8
|
+
flex-flow: column;
|
9
|
+
align-items: center;
|
10
|
+
border-radius: @border-radius;
|
11
|
+
padding: 15px 8px;
|
12
|
+
background: transparent;
|
13
|
+
position: relative;
|
12
14
|
|
13
|
-
|
14
|
-
|
15
|
-
|
15
|
+
&:hover {
|
16
|
+
background: #f1f1f1;
|
17
|
+
}
|
16
18
|
|
17
|
-
|
18
|
-
|
19
|
-
|
19
|
+
&.active {
|
20
|
+
background: #f1f1f1;
|
21
|
+
}
|
20
22
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
top: 10px;
|
23
|
+
.site-badge-count {
|
24
|
+
position: absolute;
|
25
|
+
vertical-align: middle;
|
26
|
+
right: 10px;
|
27
|
+
top: 10px;
|
27
28
|
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
29
|
+
.ant-badge-count {
|
30
|
+
background-color: #fff !important;
|
31
|
+
border: none;
|
32
|
+
box-shadow: @badge-hover-shadow;
|
33
|
+
}
|
32
34
|
}
|
33
|
-
}
|
34
35
|
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
36
|
+
.diamond-icon {
|
37
|
+
width: 100px;
|
38
|
+
height: 100px;
|
39
|
+
font-size: 24px;
|
40
|
+
color: @white;
|
41
|
+
background: #469cff;
|
42
|
+
border-radius: @border-radius;
|
43
|
+
border: solid 1px @white;
|
44
|
+
display: flex;
|
45
|
+
justify-content: center;
|
46
|
+
align-items: center;
|
46
47
|
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
48
|
+
.diamond-icon-fa {
|
49
|
+
width: 31px;
|
50
|
+
height: 40px;
|
51
|
+
opacity: 1;
|
52
|
+
}
|
51
53
|
}
|
52
|
-
}
|
53
54
|
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
55
|
+
.new-workspace-icon {
|
56
|
+
color: #bdb9b9;
|
57
|
+
background: @white !important;
|
58
|
+
border: dashed 1px #bdb9b9;
|
59
|
+
}
|
59
60
|
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
61
|
+
.diamond-name {
|
62
|
+
// width: 100%;
|
63
|
+
max-width: 100px;
|
64
|
+
text-align: center;
|
65
|
+
display: -webkit-box;
|
66
|
+
-webkit-box-orient: vertical;
|
67
|
+
-webkit-line-clamp: 2;
|
68
|
+
overflow: hidden;
|
69
|
+
text-overflow: ellipsis;
|
70
|
+
height: 38px;
|
71
|
+
font-size: @font-size-base;
|
72
|
+
font-family: Microsoft YaHei;
|
73
|
+
font-weight: bold;
|
74
|
+
line-height: 19px;
|
75
|
+
margin-top: 16px;
|
76
|
+
color: #67696d;
|
77
|
+
opacity: 1;
|
78
|
+
}
|
77
79
|
}
|
78
80
|
}
|
79
81
|
}
|