infinity-forge 0.36.4 → 0.36.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/system/presentation/components/data/index.d.ts +1 -0
- package/dist/system/presentation/components/data/index.js +1 -0
- package/dist/system/presentation/components/data/index.js.map +1 -1
- package/dist/system/presentation/components/data/notifications/card/index.d.ts +2 -0
- package/dist/system/presentation/components/data/notifications/card/index.js +38 -0
- package/dist/system/presentation/components/data/notifications/card/index.js.map +1 -0
- package/dist/system/presentation/components/data/notifications/card/styles.d.ts +5 -0
- package/dist/system/presentation/components/data/notifications/card/styles.js +14 -0
- package/dist/system/presentation/components/data/notifications/card/styles.js.map +1 -0
- package/dist/system/presentation/components/data/notifications/index.d.ts +2 -0
- package/dist/system/presentation/components/data/notifications/index.js +112 -0
- package/dist/system/presentation/components/data/notifications/index.js.map +1 -0
- package/dist/system/presentation/components/data/notifications/interfaces.d.ts +4 -0
- package/dist/system/presentation/components/data/notifications/interfaces.js +3 -0
- package/dist/system/presentation/components/data/notifications/interfaces.js.map +1 -0
- package/dist/system/presentation/components/data/notifications/styles.d.ts +8 -0
- package/dist/system/presentation/components/data/notifications/styles.js +15 -0
- package/dist/system/presentation/components/data/notifications/styles.js.map +1 -0
- package/dist/system/presentation/components/data/select-workspace/styles.js +1 -1
- package/dist/system/presentation/components/data/select-workspace/styles.js.map +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/index.js +1 -2
- package/dist/system/presentation/components/layout/header/components/menu-right/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -10,6 +10,7 @@ export * from './detail-card/index.js';
|
|
|
10
10
|
export * from './highlight-icon/index.js';
|
|
11
11
|
export * from './input-search/index.js';
|
|
12
12
|
export * from './page-wrapper/index.js';
|
|
13
|
+
export * from './notifications/index.js';
|
|
13
14
|
export * from './profile-infos/index.js';
|
|
14
15
|
export * from './highlight-text/index.js';
|
|
15
16
|
export * from './select-workspace/index.js';
|
|
@@ -26,6 +26,7 @@ __exportStar(require("./detail-card/index.js"), exports);
|
|
|
26
26
|
__exportStar(require("./highlight-icon/index.js"), exports);
|
|
27
27
|
__exportStar(require("./input-search/index.js"), exports);
|
|
28
28
|
__exportStar(require("./page-wrapper/index.js"), exports);
|
|
29
|
+
__exportStar(require("./notifications/index.js"), exports);
|
|
29
30
|
__exportStar(require("./profile-infos/index.js"), exports);
|
|
30
31
|
__exportStar(require("./highlight-text/index.js"), exports);
|
|
31
32
|
__exportStar(require("./select-workspace/index.js"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/system/presentation/components/data/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAqB;AACrB,yCAAsB;AACtB,yCAAsB;AACtB,2CAAwB;AACxB,4CAAyB;AACzB,4CAAyB;AACzB,4CAAyB;AACzB,4CAAyB;AACzB,gDAA6B;AAC7B,mDAAgC;AAChC,iDAA8B;AAC9B,iDAA8B;AAC9B,kDAA+B;AAC/B,mDAAgC;AAChC,qDAAkC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/system/presentation/components/data/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAqB;AACrB,yCAAsB;AACtB,yCAAsB;AACtB,2CAAwB;AACxB,4CAAyB;AACzB,4CAAyB;AACzB,4CAAyB;AACzB,4CAAyB;AACzB,gDAA6B;AAC7B,mDAAgC;AAChC,iDAA8B;AAC9B,iDAA8B;AAC9B,kDAA+B;AAC/B,kDAA+B;AAC/B,mDAAgC;AAChC,qDAAkC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.NotificationCard = void 0;
|
|
27
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
|
+
var ui_1 = require("../../../../../../ui/index.js");
|
|
29
|
+
var S = __importStar(require("./styles.js"));
|
|
30
|
+
function NotificationCard(_a) {
|
|
31
|
+
// function renderStatus() {
|
|
32
|
+
// // if (status === "")
|
|
33
|
+
// // }
|
|
34
|
+
var title = _a.title, createdAtText = _a.createdAtText, message = _a.message, status = _a.status;
|
|
35
|
+
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'NotificationCard', children: (0, jsx_runtime_1.jsxs)(S.NotificationCard, { children: [(0, jsx_runtime_1.jsxs)("div", { className: 'top', children: [title && (0, jsx_runtime_1.jsx)("h4", { className: 'font-16-bold', children: title }), createdAtText && (0, jsx_runtime_1.jsx)("span", { className: 'font-12-regular', children: createdAtText })] }), message && (0, jsx_runtime_1.jsx)("div", { className: 'description font-16-regular', dangerouslySetInnerHTML: { __html: message } })] }) }));
|
|
36
|
+
}
|
|
37
|
+
exports.NotificationCard = NotificationCard;
|
|
38
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/system/presentation/components/data/notifications/card/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAA4B;AAI5B,0CAA6B;AAE7B,SAAgB,gBAAgB,CAAC,EAAwD;IACvF,8BAA8B;IAC9B,wBAAwB;IACxB,SAAS;QAHwB,KAAK,WAAA,EAAE,aAAa,mBAAA,EAAE,OAAO,aAAA,EAAE,MAAM,YAAA;IAKtE,OAAO,CACL,uBAAC,UAAK,IAAC,IAAI,EAAC,kBAAkB,YAC5B,wBAAC,CAAC,CAAC,gBAAgB,eACjB,iCAAK,SAAS,EAAC,KAAK,aACjB,KAAK,IAAI,+BAAI,SAAS,EAAC,cAAc,YAAE,KAAK,GAAM,EAClD,aAAa,IAAI,iCAAM,SAAS,EAAC,iBAAiB,YAAE,aAAa,GAAQ,IACtE,EAEL,OAAO,IAAI,gCAAK,SAAS,EAAC,6BAA6B,EAAC,uBAAuB,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,GAAI,IACtF,GACf,CACT,CAAA;AACH,CAAC;AAjBD,4CAiBC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
3
|
+
export declare const NotificationCard: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
4
|
+
ref?: import("react").Ref<HTMLDivElement>;
|
|
5
|
+
}, never>> & string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
+
};
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.NotificationCard = void 0;
|
|
11
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
+
exports.NotificationCard = (0, styled_components_1.default)('div')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n\n * {\n margin: 0;\n }\n\n .top {\n margin-bottom: 10px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n\n > span {\n color: #828282;\n }\n }\n\n .description {\n color: #828282;\n }\n\n & + & {\n margin-top: 20px;\n border-top: 1px solid #e1e1e1;\n padding-top: 20px;\n }\n"], ["\n width: 100%;\n\n * {\n margin: 0;\n }\n\n .top {\n margin-bottom: 10px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n\n > span {\n color: #828282;\n }\n }\n\n .description {\n color: #828282;\n }\n\n & + & {\n margin-top: 20px;\n border-top: 1px solid #e1e1e1;\n padding-top: 20px;\n }\n"])));
|
|
13
|
+
var templateObject_1;
|
|
14
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../../src/system/presentation/components/data/notifications/card/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,gBAAgB,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,scAAA,mYA4B5C,KAAA"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
+
}
|
|
19
|
+
Object.defineProperty(o, k2, desc);
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
+
if (mod && mod.__esModule) return mod;
|
|
31
|
+
var result = {};
|
|
32
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
+
__setModuleDefault(result, mod);
|
|
34
|
+
return result;
|
|
35
|
+
};
|
|
36
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
40
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
41
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
42
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
46
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
47
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
48
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
49
|
+
function step(op) {
|
|
50
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
51
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
52
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
53
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
54
|
+
switch (op[0]) {
|
|
55
|
+
case 0: case 1: t = op; break;
|
|
56
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
57
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
58
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
59
|
+
default:
|
|
60
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
61
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
62
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
63
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
64
|
+
if (t[2]) _.ops.pop();
|
|
65
|
+
_.trys.pop(); continue;
|
|
66
|
+
}
|
|
67
|
+
op = body.call(thisArg, _);
|
|
68
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
69
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
73
|
+
exports.Notifications = void 0;
|
|
74
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
75
|
+
var swr_1 = require("swr");
|
|
76
|
+
var semantic_ui_react_1 = require("semantic-ui-react");
|
|
77
|
+
var ui_1 = require("../../../../../ui/index.js");
|
|
78
|
+
var system_1 = require("../../../../../system/index.js");
|
|
79
|
+
var card_1 = require("./card/index.js");
|
|
80
|
+
var styles_1 = require("../../layout/header/components/menu-right/styles.js");
|
|
81
|
+
var S = __importStar(require("./styles.js"));
|
|
82
|
+
function Notifications(props) {
|
|
83
|
+
var data = (0, system_1.useLoadNoReadNotifications)().data;
|
|
84
|
+
var notifications = (0, system_1.useLoadAllNotifications)();
|
|
85
|
+
if (!data || !notifications.data) {
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
function handleOnOpen() {
|
|
89
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
90
|
+
var noReadNotifications;
|
|
91
|
+
var _a;
|
|
92
|
+
return __generator(this, function (_b) {
|
|
93
|
+
switch (_b.label) {
|
|
94
|
+
case 0:
|
|
95
|
+
noReadNotifications = (_a = notifications.data) === null || _a === void 0 ? void 0 : _a.filter(function (notification) { return !notification.isRead; }).map(function (noRead) { return noRead.id; });
|
|
96
|
+
return [4 /*yield*/, system_1.container.get(system_1.Types.RemoteNotifications).readAll({ ids: noReadNotifications })];
|
|
97
|
+
case 1:
|
|
98
|
+
_b.sent();
|
|
99
|
+
(0, swr_1.mutate)('LoadAllNotifications');
|
|
100
|
+
(0, swr_1.mutate)('LoadNoReadNotifications');
|
|
101
|
+
return [2 /*return*/];
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'Notifications', children: (0, jsx_runtime_1.jsx)(S.Notifications, { children: (0, jsx_runtime_1.jsx)(semantic_ui_react_1.Popup, { trigger: (0, jsx_runtime_1.jsxs)(styles_1.ActionBox, { type: 'button', children: [(data === null || data === void 0 ? void 0 : data.number) > 0 && (0, jsx_runtime_1.jsx)("div", { className: 'circle' }), (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconFullFieldBell' })] }), position: 'bottom right', on: 'click', style: { padding: '0', borderRadius: 5 }, onOpen: handleOnOpen, content: (0, jsx_runtime_1.jsx)(S.Content, { children: notifications.data.length > 0 &&
|
|
107
|
+
notifications.data.map(function (notification) {
|
|
108
|
+
(props === null || props === void 0 ? void 0 : props.CustomComponent) ? props.CustomComponent : (0, jsx_runtime_1.jsx)(card_1.NotificationCard, __assign({}, notification));
|
|
109
|
+
}) }) }) }) }));
|
|
110
|
+
}
|
|
111
|
+
exports.Notifications = Notifications;
|
|
112
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/system/presentation/components/data/notifications/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAA4B;AAC5B,uDAAyC;AAEzC,2BAAkC;AAClC,mCAAqH;AAErH,+BAAyC;AAGzC,2EAA4E;AAE5E,0CAA6B;AAE7B,SAAgB,aAAa,CAAC,KAA0B;IAC9C,IAAA,IAAI,GAAK,IAAA,mCAA0B,GAAE,KAAjC,CAAiC;IAC7C,IAAM,aAAa,GAAG,IAAA,gCAAuB,GAAE,CAAA;IAE/C,IAAI,CAAC,IAAI,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE,CAAC;QACjC,OAAM;IACR,CAAC;IAED,SAAe,YAAY;;;;;;;wBACnB,mBAAmB,GAAG,MAAA,aAAa,CAAC,IAAI,0CAC1C,MAAM,CAAC,UAAC,YAAY,IAAK,OAAA,CAAC,YAAY,CAAC,MAAM,EAApB,CAAoB,EAC9C,GAAG,CAAC,UAAC,MAAM,IAAK,OAAA,MAAM,CAAC,EAAE,EAAT,CAAS,CAAC,CAAA;wBAE7B,qBAAM,kBAAS,CAAC,GAAG,CAAsB,cAAK,CAAC,mBAAmB,CAAC,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,mBAAmB,EAAE,CAAC,EAAA;;wBAAzG,SAAyG,CAAA;wBACzG,IAAA,YAAM,EAAC,sBAAsB,CAAC,CAAA;wBAC9B,IAAA,YAAM,EAAC,yBAAyB,CAAC,CAAA;wBACjC,sBAAM;;;;KACP;IAED,OAAO,CACL,uBAAC,UAAK,IAAC,IAAI,EAAC,eAAe,YACzB,uBAAC,CAAC,CAAC,aAAa,cACd,uBAAC,yBAAK,IACJ,OAAO,EACL,wBAAC,kBAAS,IAAC,IAAI,EAAC,QAAQ,aACrB,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,IAAG,CAAC,IAAI,gCAAK,SAAS,EAAC,QAAQ,GAAG,EAE/C,uBAAC,SAAI,IAAC,IAAI,EAAC,mBAAmB,GAAG,IACvB,EAEd,QAAQ,EAAC,cAAc,EACvB,EAAE,EAAC,OAAO,EACV,KAAK,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,YAAY,EAAE,CAAC,EAAE,EACxC,MAAM,EAAE,YAAY,EACpB,OAAO,EACL,uBAAC,CAAC,CAAC,OAAO,cACP,aAAa,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC;wBAC5B,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,UAAC,YAAY;4BAClC,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,eAAe,EAAC,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC,uBAAC,uBAAgB,eAAK,YAAY,EAAI,CAAA;wBACzF,CAAC,CAAC,GACM,GAEd,GACc,GACZ,CACT,CAAA;AACH,CAAC;AA9CD,sCA8CC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../../src/system/presentation/components/data/notifications/interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
3
|
+
export declare const Notifications: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
4
|
+
ref?: import("react").Ref<HTMLDivElement>;
|
|
5
|
+
}, never>> & string;
|
|
6
|
+
export declare const Content: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
7
|
+
ref?: import("react").Ref<HTMLDivElement>;
|
|
8
|
+
}, never>> & string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
+
};
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.Content = exports.Notifications = void 0;
|
|
11
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
+
exports.Notifications = (0, styled_components_1.default)('div')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n\n .circle {\n width: 10px;\n height: 10px;\n border-radius: 100rem;\n background: #f5a623;\n position: absolute;\n top: 15%;\n right: 20%;\n border: 1px solid transparent;\n }\n"], ["\n position: relative;\n\n .circle {\n width: 10px;\n height: 10px;\n border-radius: 100rem;\n background: #f5a623;\n position: absolute;\n top: 15%;\n right: 20%;\n border: 1px solid transparent;\n }\n"])));
|
|
13
|
+
exports.Content = (0, styled_components_1.default)('div')(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n max-height: 400px;\n overflow-y: auto;\n width: 100%;\n min-width: 400px;\n text-align: left;\n padding: 20px;\n\n &::-webkit-scrollbar {\n width: 5px;\n border-radius: 10px;\n }\n\n &::-webkit-scrollbar-track {\n background: #ccc;\n border-radius: 10px;\n }\n\n &::-webkit-scrollbar-thumb {\n background: #000;\n border-radius: 10px;\n }\n"], ["\n max-height: 400px;\n overflow-y: auto;\n width: 100%;\n min-width: 400px;\n text-align: left;\n padding: 20px;\n\n &::-webkit-scrollbar {\n width: 5px;\n border-radius: 10px;\n }\n\n &::-webkit-scrollbar-track {\n background: #ccc;\n border-radius: 10px;\n }\n\n &::-webkit-scrollbar-thumb {\n background: #000;\n border-radius: 10px;\n }\n"])));
|
|
14
|
+
var templateObject_1, templateObject_2;
|
|
15
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../src/system/presentation/components/data/notifications/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,aAAa,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,0SAAA,uOAazC,KAAA;AACY,QAAA,OAAO,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,0bAAA,uXAsBnC,KAAA"}
|
|
@@ -9,6 +9,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.SelectWorkSpace = void 0;
|
|
11
11
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
-
exports.SelectWorkSpace = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n height: 40px;\n box-shadow: 0px 0px 5px 0px #00000033;\n\n [class*='-DummyInput'],\n [id*='-input'],\n #react-select-2-input {\n position: absolute !important;\n top: 0 !important;\n left: 0 !important;\n width: 100% !important;\n }\n\n [class*='-indicatorContainer'] {\n padding: 0;\n }\n\n [class*='-control'] {\n * {\n color: #fff;\n font-weight: 700;\n }\n }\n\n .item {\n background: none;\n padding: 0;\n border: 0;\n display: flex;\n width: 100%;\n height: 100%;\n align-items: center;\n gap: 10px;\n cursor: pointer;\n\n > div {\n display: flex;\n flex-direction: column;\n text-align: start;\n\n > span {\n text-overflow: ellipsis;\n
|
|
12
|
+
exports.SelectWorkSpace = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n height: 40px;\n box-shadow: 0px 0px 5px 0px #00000033;\n\n [class*='-DummyInput'],\n [id*='-input'],\n #react-select-2-input {\n position: absolute !important;\n top: 0 !important;\n left: 0 !important;\n width: 100% !important;\n }\n\n [class*='-indicatorContainer'] {\n padding: 0;\n }\n\n [class*='-control'] {\n * {\n color: #fff;\n font-weight: 700;\n }\n }\n\n .item {\n background: none;\n padding: 0;\n border: 0;\n display: flex;\n width: 100%;\n height: 100%;\n align-items: center;\n gap: 10px;\n cursor: pointer;\n\n > div {\n display: flex;\n flex-direction: column;\n text-align: start;\n\n > span {\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 1;\n -webkit-box-orient: vertical;\n max-width: 100%;\n }\n\n .subtitulo {\n color: #828282;\n }\n }\n\n .circle {\n width: 30px;\n height: 30px;\n min-width: 30px;\n min-height: 30px;\n border-radius: 100rem;\n background-color: #444444;\n }\n\n .avatar {\n width: 30px;\n height: 30px;\n min-width: 30px;\n min-height: 30px;\n\n img {\n object-fit: cover !important;\n }\n }\n }\n\n .item + .item {\n margin-top: 10px;\n }\n"], ["\n width: 100%;\n height: 40px;\n box-shadow: 0px 0px 5px 0px #00000033;\n\n [class*='-DummyInput'],\n [id*='-input'],\n #react-select-2-input {\n position: absolute !important;\n top: 0 !important;\n left: 0 !important;\n width: 100% !important;\n }\n\n [class*='-indicatorContainer'] {\n padding: 0;\n }\n\n [class*='-control'] {\n * {\n color: #fff;\n font-weight: 700;\n }\n }\n\n .item {\n background: none;\n padding: 0;\n border: 0;\n display: flex;\n width: 100%;\n height: 100%;\n align-items: center;\n gap: 10px;\n cursor: pointer;\n\n > div {\n display: flex;\n flex-direction: column;\n text-align: start;\n\n > span {\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 1;\n -webkit-box-orient: vertical;\n max-width: 100%;\n }\n\n .subtitulo {\n color: #828282;\n }\n }\n\n .circle {\n width: 30px;\n height: 30px;\n min-width: 30px;\n min-height: 30px;\n border-radius: 100rem;\n background-color: #444444;\n }\n\n .avatar {\n width: 30px;\n height: 30px;\n min-width: 30px;\n min-height: 30px;\n\n img {\n object-fit: cover !important;\n }\n }\n }\n\n .item + .item {\n margin-top: 10px;\n }\n"])));
|
|
13
13
|
var templateObject_1;
|
|
14
14
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../src/system/presentation/components/data/select-workspace/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,eAAe,GAAG,2BAAM,CAAC,GAAG,
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../src/system/presentation/components/data/select-workspace/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,eAAe,GAAG,2BAAM,CAAC,GAAG,y7CAAA,s3CA+ExC,KAAA"}
|
|
@@ -28,7 +28,6 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
28
28
|
var ui_1 = require("../../../../../../../ui/index.js");
|
|
29
29
|
var profile_1 = require("./profile/index.js");
|
|
30
30
|
var settings_1 = require("./settings/index.js");
|
|
31
|
-
var notifications_1 = require("./notifications/index.js");
|
|
32
31
|
var data_1 = require("../../../../../../../system/presentation/components/data/index.js");
|
|
33
32
|
var S = __importStar(require("./styles.js"));
|
|
34
33
|
function MenuRight(props) {
|
|
@@ -48,7 +47,7 @@ function MenuRight(props) {
|
|
|
48
47
|
// ],
|
|
49
48
|
// onChangeWorkSpace: () => null,
|
|
50
49
|
// }
|
|
51
|
-
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'MenuRight', children: (0, jsx_runtime_1.jsxs)(S.MenuRight, { children: [props.workspaces && (0, jsx_runtime_1.jsx)(data_1.SelectWorkSpace, { workspaces: props.workspaces }), (0, jsx_runtime_1.jsx)(
|
|
50
|
+
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'MenuRight', children: (0, jsx_runtime_1.jsxs)(S.MenuRight, { children: [props.workspaces && (0, jsx_runtime_1.jsx)(data_1.SelectWorkSpace, { workspaces: props.workspaces }), (0, jsx_runtime_1.jsx)(data_1.Notifications, {}), (0, jsx_runtime_1.jsx)(settings_1.Settings, {}), (0, jsx_runtime_1.jsx)(profile_1.Profile, {})] }) }));
|
|
52
51
|
}
|
|
53
52
|
exports.MenuRight = MenuRight;
|
|
54
53
|
//# sourceMappingURL=index.js.map
|
package/dist/system/presentation/components/layout/header/components/menu-right/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/system/presentation/components/layout/header/components/menu-right/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAA4B;AAC5B,qCAAmC;AACnC,uCAAqC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/system/presentation/components/layout/header/components/menu-right/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAA4B;AAC5B,qCAAmC;AACnC,uCAAqC;AAGrC,8DAAsF;AAGtF,0CAA6B;AAM7B,SAAgB,SAAS,CAAC,KAAiB;IACzC,kCAAkC;IAClC,yBAAyB;IACzB,YAAY;IACZ,QAAQ;IACR,iBAAiB;IACjB,uBAAuB;IACvB,0BAA0B;IAC1B,SAAS;IACT,QAAQ;IACR,iBAAiB;IACjB,8BAA8B;IAC9B,kCAAkC;IAClC,SAAS;IACT,OAAO;IACP,mCAAmC;IACnC,IAAI;IAEJ,OAAO,CACL,uBAAC,UAAK,IAAC,IAAI,EAAC,WAAW,YACrB,wBAAC,CAAC,CAAC,SAAS,eACT,KAAK,CAAC,UAAU,IAAI,uBAAC,sBAAe,IAAC,UAAU,EAAE,KAAK,CAAC,UAAU,GAAI,EAEtE,uBAAC,oBAAa,KAAG,EAMjB,uBAAC,mBAAQ,KAAG,EAEZ,uBAAC,iBAAO,KAAG,IACC,GACR,CACT,CAAA;AACH,CAAC;AAnCD,8BAmCC"}
|