feat: config-driven реестр на реальных данных SP

This commit is contained in:
Тимур Городецкий
2026-08-17 11:23:57 +05:00
commit 31ef6fdbb9
99 changed files with 33739 additions and 0 deletions
+742
View File
@@ -0,0 +1,742 @@
{
"version": "2.1.0",
"$schema": "http://json.schemastore.org/sarif-2.1.0-rtm.5",
"runs": [
{
"tool": {
"driver": {
"name": "ESLint",
"informationUri": "https://eslint.org",
"version": "8.57.1",
"rules": [
{
"id": "@rushstack/no-new-null",
"helpUri": "https://www.npmjs.com/package/@rushstack/eslint-plugin",
"properties": {},
"shortDescription": {
"text": "Prevent usage of JavaScript's \"null\" keyword in new type declarations. To avoid hampering usage of preexisting APIs that require \"null\", the rule ignores declarations that are local variables, private members, or types that are not exported."
}
},
{
"id": "dot-notation",
"helpUri": "https://eslint.org/docs/latest/rules/dot-notation",
"properties": {},
"shortDescription": {
"text": "Enforce dot notation whenever possible"
}
}
]
}
},
"artifacts": [
{
"location": {
"uri": "src/webparts/ctFormsPortal/components/registry/documentRegistry.ts"
}
},
{
"location": {
"uri": "src/webparts/ctFormsPortal/components/config/ctDocumentConfig.ts"
}
},
{
"location": {
"uri": "src/webparts/ctFormsPortal/components/config/oidDocumentConfig.ts"
}
},
{
"location": {
"uri": "src/webparts/ctFormsPortal/components/config/kpsDocumentConfig.ts"
}
},
{
"location": {
"uri": "src/webparts/ctFormsPortal/components/registry/documentsService.ts"
}
},
{
"location": {
"uri": "src/webparts/ctFormsPortal/components/registry/useDocumentDashboard.ts"
}
}
],
"results": [
{
"level": "warning",
"message": {
"text": "Usage of \"null\" is deprecated except when describing legacy APIs; use \"undefined\" instead"
},
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": "src/webparts/ctFormsPortal/components/registry/documentRegistry.ts",
"index": 0
},
"region": {
"startLine": 45,
"startColumn": 44,
"endLine": 45,
"endColumn": 48,
"snippet": {
"text": "null"
}
}
}
}
],
"ruleId": "@rushstack/no-new-null",
"ruleIndex": 0
},
{
"level": "warning",
"message": {
"text": "Usage of \"null\" is deprecated except when describing legacy APIs; use \"undefined\" instead"
},
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": "src/webparts/ctFormsPortal/components/registry/documentRegistry.ts",
"index": 0
},
"region": {
"startLine": 47,
"startColumn": 41,
"endLine": 47,
"endColumn": 45,
"snippet": {
"text": "null"
}
}
}
}
],
"ruleId": "@rushstack/no-new-null",
"ruleIndex": 0
},
{
"level": "warning",
"message": {
"text": "[\"status\"] is better written in dot notation."
},
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": "src/webparts/ctFormsPortal/components/config/ctDocumentConfig.ts",
"index": 1
},
"region": {
"startLine": 57,
"startColumn": 35,
"endLine": 57,
"endColumn": 43,
"snippet": {
"text": "'status'"
}
}
}
}
],
"ruleId": "dot-notation",
"ruleIndex": 1
},
{
"level": "warning",
"message": {
"text": "[\"Id\"] is better written in dot notation."
},
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": "src/webparts/ctFormsPortal/components/config/ctDocumentConfig.ts",
"index": 1
},
"region": {
"startLine": 60,
"startColumn": 24,
"endLine": 60,
"endColumn": 28,
"snippet": {
"text": "'Id'"
}
}
}
}
],
"ruleId": "dot-notation",
"ruleIndex": 1
},
{
"level": "warning",
"message": {
"text": "[\"number\"] is better written in dot notation."
},
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": "src/webparts/ctFormsPortal/components/config/ctDocumentConfig.ts",
"index": 1
},
"region": {
"startLine": 61,
"startColumn": 27,
"endLine": 61,
"endColumn": 35,
"snippet": {
"text": "'number'"
}
}
}
}
],
"ruleId": "dot-notation",
"ruleIndex": 1
},
{
"level": "warning",
"message": {
"text": "[\"Title\"] is better written in dot notation."
},
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": "src/webparts/ctFormsPortal/components/config/ctDocumentConfig.ts",
"index": 1
},
"region": {
"startLine": 61,
"startColumn": 44,
"endLine": 61,
"endColumn": 51,
"snippet": {
"text": "'Title'"
}
}
}
}
],
"ruleId": "dot-notation",
"ruleIndex": 1
},
{
"level": "warning",
"message": {
"text": "[\"project\"] is better written in dot notation."
},
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": "src/webparts/ctFormsPortal/components/config/ctDocumentConfig.ts",
"index": 1
},
"region": {
"startLine": 62,
"startColumn": 30,
"endLine": 62,
"endColumn": 39,
"snippet": {
"text": "'project'"
}
}
}
}
],
"ruleId": "dot-notation",
"ruleIndex": 1
},
{
"level": "warning",
"message": {
"text": "[\"Created\"] is better written in dot notation."
},
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": "src/webparts/ctFormsPortal/components/config/ctDocumentConfig.ts",
"index": 1
},
"region": {
"startLine": 66,
"startColumn": 26,
"endLine": 66,
"endColumn": 35,
"snippet": {
"text": "'Created'"
}
}
}
}
],
"ruleId": "dot-notation",
"ruleIndex": 1
},
{
"level": "warning",
"message": {
"text": "[\"Created\"] is better written in dot notation."
},
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": "src/webparts/ctFormsPortal/components/config/ctDocumentConfig.ts",
"index": 1
},
"region": {
"startLine": 66,
"startColumn": 50,
"endLine": 66,
"endColumn": 59,
"snippet": {
"text": "'Created'"
}
}
}
}
],
"ruleId": "dot-notation",
"ruleIndex": 1
},
{
"level": "warning",
"message": {
"text": "[\"status\"] is better written in dot notation."
},
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": "src/webparts/ctFormsPortal/components/config/oidDocumentConfig.ts",
"index": 2
},
"region": {
"startLine": 63,
"startColumn": 35,
"endLine": 63,
"endColumn": 43,
"snippet": {
"text": "'status'"
}
}
}
}
],
"ruleId": "dot-notation",
"ruleIndex": 1
},
{
"level": "warning",
"message": {
"text": "[\"Id\"] is better written in dot notation."
},
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": "src/webparts/ctFormsPortal/components/config/oidDocumentConfig.ts",
"index": 2
},
"region": {
"startLine": 66,
"startColumn": 24,
"endLine": 66,
"endColumn": 28,
"snippet": {
"text": "'Id'"
}
}
}
}
],
"ruleId": "dot-notation",
"ruleIndex": 1
},
{
"level": "warning",
"message": {
"text": "[\"number\"] is better written in dot notation."
},
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": "src/webparts/ctFormsPortal/components/config/oidDocumentConfig.ts",
"index": 2
},
"region": {
"startLine": 67,
"startColumn": 27,
"endLine": 67,
"endColumn": 35,
"snippet": {
"text": "'number'"
}
}
}
}
],
"ruleId": "dot-notation",
"ruleIndex": 1
},
{
"level": "warning",
"message": {
"text": "[\"Title\"] is better written in dot notation."
},
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": "src/webparts/ctFormsPortal/components/config/oidDocumentConfig.ts",
"index": 2
},
"region": {
"startLine": 67,
"startColumn": 44,
"endLine": 67,
"endColumn": 51,
"snippet": {
"text": "'Title'"
}
}
}
}
],
"ruleId": "dot-notation",
"ruleIndex": 1
},
{
"level": "warning",
"message": {
"text": "[\"project\"] is better written in dot notation."
},
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": "src/webparts/ctFormsPortal/components/config/oidDocumentConfig.ts",
"index": 2
},
"region": {
"startLine": 68,
"startColumn": 30,
"endLine": 68,
"endColumn": 39,
"snippet": {
"text": "'project'"
}
}
}
}
],
"ruleId": "dot-notation",
"ruleIndex": 1
},
{
"level": "warning",
"message": {
"text": "[\"Created\"] is better written in dot notation."
},
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": "src/webparts/ctFormsPortal/components/config/oidDocumentConfig.ts",
"index": 2
},
"region": {
"startLine": 72,
"startColumn": 26,
"endLine": 72,
"endColumn": 35,
"snippet": {
"text": "'Created'"
}
}
}
}
],
"ruleId": "dot-notation",
"ruleIndex": 1
},
{
"level": "warning",
"message": {
"text": "[\"Created\"] is better written in dot notation."
},
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": "src/webparts/ctFormsPortal/components/config/oidDocumentConfig.ts",
"index": 2
},
"region": {
"startLine": 72,
"startColumn": 50,
"endLine": 72,
"endColumn": 59,
"snippet": {
"text": "'Created'"
}
}
}
}
],
"ruleId": "dot-notation",
"ruleIndex": 1
},
{
"level": "warning",
"message": {
"text": "[\"status\"] is better written in dot notation."
},
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": "src/webparts/ctFormsPortal/components/config/kpsDocumentConfig.ts",
"index": 3
},
"region": {
"startLine": 61,
"startColumn": 35,
"endLine": 61,
"endColumn": 43,
"snippet": {
"text": "'status'"
}
}
}
}
],
"ruleId": "dot-notation",
"ruleIndex": 1
},
{
"level": "warning",
"message": {
"text": "[\"Id\"] is better written in dot notation."
},
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": "src/webparts/ctFormsPortal/components/config/kpsDocumentConfig.ts",
"index": 3
},
"region": {
"startLine": 64,
"startColumn": 24,
"endLine": 64,
"endColumn": 28,
"snippet": {
"text": "'Id'"
}
}
}
}
],
"ruleId": "dot-notation",
"ruleIndex": 1
},
{
"level": "warning",
"message": {
"text": "[\"number\"] is better written in dot notation."
},
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": "src/webparts/ctFormsPortal/components/config/kpsDocumentConfig.ts",
"index": 3
},
"region": {
"startLine": 65,
"startColumn": 27,
"endLine": 65,
"endColumn": 35,
"snippet": {
"text": "'number'"
}
}
}
}
],
"ruleId": "dot-notation",
"ruleIndex": 1
},
{
"level": "warning",
"message": {
"text": "[\"Title\"] is better written in dot notation."
},
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": "src/webparts/ctFormsPortal/components/config/kpsDocumentConfig.ts",
"index": 3
},
"region": {
"startLine": 65,
"startColumn": 44,
"endLine": 65,
"endColumn": 51,
"snippet": {
"text": "'Title'"
}
}
}
}
],
"ruleId": "dot-notation",
"ruleIndex": 1
},
{
"level": "warning",
"message": {
"text": "[\"project\"] is better written in dot notation."
},
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": "src/webparts/ctFormsPortal/components/config/kpsDocumentConfig.ts",
"index": 3
},
"region": {
"startLine": 66,
"startColumn": 30,
"endLine": 66,
"endColumn": 39,
"snippet": {
"text": "'project'"
}
}
}
}
],
"ruleId": "dot-notation",
"ruleIndex": 1
},
{
"level": "warning",
"message": {
"text": "[\"Created\"] is better written in dot notation."
},
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": "src/webparts/ctFormsPortal/components/config/kpsDocumentConfig.ts",
"index": 3
},
"region": {
"startLine": 70,
"startColumn": 26,
"endLine": 70,
"endColumn": 35,
"snippet": {
"text": "'Created'"
}
}
}
}
],
"ruleId": "dot-notation",
"ruleIndex": 1
},
{
"level": "warning",
"message": {
"text": "[\"Created\"] is better written in dot notation."
},
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": "src/webparts/ctFormsPortal/components/config/kpsDocumentConfig.ts",
"index": 3
},
"region": {
"startLine": 70,
"startColumn": 50,
"endLine": 70,
"endColumn": 59,
"snippet": {
"text": "'Created'"
}
}
}
}
],
"ruleId": "dot-notation",
"ruleIndex": 1
},
{
"level": "warning",
"message": {
"text": "[\"userId\"] is better written in dot notation."
},
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": "src/webparts/ctFormsPortal/components/registry/documentsService.ts",
"index": 4
},
"region": {
"startLine": 13,
"startColumn": 91,
"endLine": 13,
"endColumn": 99,
"snippet": {
"text": "'userId'"
}
}
}
}
],
"ruleId": "dot-notation",
"ruleIndex": 1
},
{
"level": "warning",
"message": {
"text": "Usage of \"null\" is deprecated except when describing legacy APIs; use \"undefined\" instead"
},
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": "src/webparts/ctFormsPortal/components/registry/useDocumentDashboard.ts",
"index": 5
},
"region": {
"startLine": 11,
"startColumn": 19,
"endLine": 11,
"endColumn": 23,
"snippet": {
"text": "null"
}
}
}
}
],
"ruleId": "@rushstack/no-new-null",
"ruleIndex": 0
}
]
}
]
}
@@ -0,0 +1,16 @@
define([], function() {
return {
"PropertyPaneDescription": "Description",
"BasicGroupName": "Group Name",
"DescriptionFieldLabel": "Description Field",
"AppLocalEnvironmentSharePoint": "The app is running on your local environment as SharePoint web part",
"AppLocalEnvironmentTeams": "The app is running on your local environment as Microsoft Teams app",
"AppLocalEnvironmentOffice": "The app is running on your local environment in office.com",
"AppLocalEnvironmentOutlook": "The app is running on your local environment in Outlook",
"AppSharePointEnvironment": "The app is running on SharePoint page",
"AppTeamsTabEnvironment": "The app is running in Microsoft Teams",
"AppOfficeEnvironment": "The app is running in office.com",
"AppOutlookEnvironment": "The app is running in Outlook",
"UnknownEnvironment": "The app is running in an unknown environment"
}
});
@@ -0,0 +1,16 @@
define([], function() {
return {
"PropertyPaneDescription": "Description",
"BasicGroupName": "Group Name",
"DescriptionFieldLabel": "Description Field",
"AppLocalEnvironmentSharePoint": "The app is running on your local environment as SharePoint web part",
"AppLocalEnvironmentTeams": "The app is running on your local environment as Microsoft Teams app",
"AppLocalEnvironmentOffice": "The app is running on your local environment in office.com",
"AppLocalEnvironmentOutlook": "The app is running on your local environment in Outlook",
"AppSharePointEnvironment": "The app is running on SharePoint page",
"AppTeamsTabEnvironment": "The app is running in Microsoft Teams",
"AppOfficeEnvironment": "The app is running in office.com",
"AppOutlookEnvironment": "The app is running in Outlook",
"UnknownEnvironment": "The app is running in an unknown environment"
}
});
@@ -0,0 +1,102 @@
"use strict";
self["webpackHotUpdate_459579c7_954c_469e_b707_ca75d808603f_0_0_1"]("ct-forms-portal-web-part",{
/***/ 996:
/*!**************************************************************************!*\
!*** ./lib/webparts/ctFormsPortal/components/config/ctDocumentConfig.js ***!
\**************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ createCtDocumentConfig: () => (/* binding */ createCtDocumentConfig)
/* harmony export */ });
var STATUS_LABEL = {
'Черновик': 'Сформирована',
'На согласовании': 'На согласовании',
'Согласовано': 'Согласована',
'Отклонено': 'Отклонена'
};
var STATUS_VARIANT = {
'Черновик': 'neutral',
'На согласовании': 'info',
'Согласовано': 'success',
'Отклонено': 'error'
};
function createCtDocumentConfig() {
return {
typeKey: 'ct',
typeLabel: 'СТ ОМТС',
icon: 'ShoppingCart',
// Списки СТ ОМТС — на сайте СЭД. Явно, чтобы портал не зависел от места размещения.
siteUrl: 'https://tnsukz.sharepoint.com/sites/sed',
myDocsListName: 'Сравнительная таблица',
buildMyDocsFilter: function (userId) { return "AuthorId eq ".concat(userId); },
myDocsSelect: 'Id,Title,number,project,status,Created',
pendingApproval: {
approvalListName: 'Согласование СТ',
buildPendingFilter: function (userId) { return "aproover/Id eq ".concat(userId, " and status eq '\u041D\u0430 \u0441\u043E\u0433\u043B\u0430\u0441\u043E\u0432\u0430\u043D\u0438\u0438'"); },
approvalSelect: 'Id,CTId,status,aproover/Id',
approvalExpand: 'aproover',
parentIdField: 'CTId',
buildParentQuery: function (parentIds) { return ({
listName: 'Сравнительная таблица',
filter: parentIds.map(function (id) { return "Id eq ".concat(id); }).join(' or '),
select: 'Id,Title,number,project,status,Created'
}); }
},
approvedByMe: {
approvalListName: 'Согласование СТ',
buildPendingFilter: function (userId) { return "aproover/Id eq ".concat(userId, " and status eq '\u0421\u043E\u0433\u043B\u0430\u0441\u043E\u0432\u0430\u043D\u043E'"); },
approvalSelect: 'Id,CTId,status,aproover/Id',
approvalExpand: 'aproover',
parentIdField: 'CTId',
buildParentQuery: function (parentIds) { return ({
listName: 'Сравнительная таблица',
filter: parentIds.map(function (id) { return "Id eq ".concat(id); }).join(' or '),
select: 'Id,Title,number,project,status,Created'
}); }
},
buildLinkUrl: function (row) {
var base = 'https://tnsukz.sharepoint.com/sites/sed/SitePages/Сравнительная-таблица.aspx';
var param = row.status === 'Черновик' ? 'ctId' : 'ctid';
return "".concat(base, "?").concat(param, "=").concat(row.id);
},
createNewUrl: 'https://tnsukz.sharepoint.com/sites/sed/SitePages/Сравнительная-таблица.aspx',
createNewLabel: 'Создать новую форму СТ',
mapItem: function (raw) {
var _a, _b, _c, _d, _e;
var spStatus = String((_a = raw['status']) !== null && _a !== void 0 ? _a : '');
return {
typeKey: 'ct',
id: String(raw['Id']),
title: "\u0421\u0422 \u2116".concat((_b = raw['number']) !== null && _b !== void 0 ? _b : raw['Title']),
subtitle: String((_c = raw['project']) !== null && _c !== void 0 ? _c : ''),
status: spStatus,
statusLabel: (_d = STATUS_LABEL[spStatus]) !== null && _d !== void 0 ? _d : spStatus,
statusVariant: (_e = STATUS_VARIANT[spStatus]) !== null && _e !== void 0 ? _e : 'neutral',
createdDate: raw['Created'] ? String(raw['Created']) : undefined
};
},
columns: [
{ key: 'title', label: 'Номер СТ', minWidth: 120 },
{ key: 'subtitle', label: 'Проект', minWidth: 180 },
{ key: 'status', label: 'Статус', minWidth: 130 },
{ key: 'created', label: 'Создана', minWidth: 110 }
]
};
}
/***/ })
},
/******/ function(__webpack_require__) { // webpackRuntimeModules
/******/ /* webpack/runtime/getFullHash */
/******/ (() => {
/******/ __webpack_require__.h = () => ("c0c82c263a05c3417a10")
/******/ })();
/******/
/******/ }
);
//# sourceMappingURL=ct-forms-portal-web-part.8bc87a793f5dc3d11d32.hot-update.js.map
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
{"c":["ct-forms-portal-web-part"],"r":[],"m":[]}
@@ -0,0 +1,108 @@
"use strict";
self["webpackHotUpdate_459579c7_954c_469e_b707_ca75d808603f_0_0_1"]("ct-forms-portal-web-part",{
/***/ 633:
/*!***************************************************************************!*\
!*** ./lib/webparts/ctFormsPortal/components/config/oidDocumentConfig.js ***!
\***************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ createOidDocumentConfig: () => (/* binding */ createOidDocumentConfig)
/* harmony export */ });
var STATUS_LABEL = {
'Черновик': 'Сформирована',
'formed': 'Сформирована',
'На согласовании': 'На согласовании',
'on_approval': 'На согласовании',
'Согласовано': 'Согласована',
'approved': 'Согласована',
'Отклонено': 'Отклонена'
};
var STATUS_VARIANT = {
'Черновик': 'neutral',
'formed': 'neutral',
'На согласовании': 'info',
'on_approval': 'info',
'Согласовано': 'success',
'approved': 'success',
'Отклонено': 'error'
};
function createOidDocumentConfig() {
return {
typeKey: 'oid',
typeLabel: 'СТ ОИД',
icon: 'CRMServices',
// Списки СТ ОИД — на сайте СЭД. Явно, чтобы портал не зависел от места размещения.
siteUrl: 'https://tnsukz.sharepoint.com/sites/sed',
myDocsListName: 'Сравнительная таблица ОИД',
buildMyDocsFilter: function (userId) { return "AuthorId eq ".concat(userId); },
myDocsSelect: 'Id,Title,number,project,status,Created',
pendingApproval: {
approvalListName: 'Согласование СТ ОИД',
buildPendingFilter: function (userId) { return "aproover/Id eq ".concat(userId, " and status eq '\u041D\u0430 \u0441\u043E\u0433\u043B\u0430\u0441\u043E\u0432\u0430\u043D\u0438\u0438'"); },
approvalSelect: 'Id,CTId,status,aproover/Id',
approvalExpand: 'aproover',
parentIdField: 'CTId',
buildParentQuery: function (parentIds) { return ({
listName: 'Сравнительная таблица ОИД',
filter: parentIds.map(function (id) { return "Id eq ".concat(id); }).join(' or '),
select: 'Id,Title,number,project,status,Created'
}); }
},
approvedByMe: {
approvalListName: 'Согласование СТ ОИД',
buildPendingFilter: function (userId) { return "aproover/Id eq ".concat(userId, " and status eq '\u0421\u043E\u0433\u043B\u0430\u0441\u043E\u0432\u0430\u043D\u043E'"); },
approvalSelect: 'Id,CTId,status,aproover/Id',
approvalExpand: 'aproover',
parentIdField: 'CTId',
buildParentQuery: function (parentIds) { return ({
listName: 'Сравнительная таблица ОИД',
filter: parentIds.map(function (id) { return "Id eq ".concat(id); }).join(' or '),
select: 'Id,Title,number,project,status,Created'
}); }
},
buildLinkUrl: function (row) {
var base = 'https://tnsukz.sharepoint.com/sites/sed/SitePages/Сравнительная-таблица-ОИД.aspx';
var param = row.status === 'Черновик' || row.status === 'formed' ? 'oidId' : 'oidid';
return "".concat(base, "?").concat(param, "=").concat(row.id);
},
createNewUrl: 'https://tnsukz.sharepoint.com/sites/sed/SitePages/Сравнительная-таблица-ОИД.aspx',
createNewLabel: 'Создать новую форму ОИД',
mapItem: function (raw) {
var _a, _b, _c, _d, _e;
var spStatus = String((_a = raw['status']) !== null && _a !== void 0 ? _a : '');
return {
typeKey: 'oid',
id: String(raw['Id']),
title: "\u0421\u0422 \u2116".concat((_b = raw['number']) !== null && _b !== void 0 ? _b : raw['Title']),
subtitle: String((_c = raw['project']) !== null && _c !== void 0 ? _c : ''),
status: spStatus,
statusLabel: (_d = STATUS_LABEL[spStatus]) !== null && _d !== void 0 ? _d : spStatus,
statusVariant: (_e = STATUS_VARIANT[spStatus]) !== null && _e !== void 0 ? _e : 'neutral',
createdDate: raw['Created'] ? String(raw['Created']) : undefined
};
},
columns: [
{ key: 'title', label: 'Номер СТ', minWidth: 120 },
{ key: 'subtitle', label: 'Проект', minWidth: 180 },
{ key: 'status', label: 'Статус', minWidth: 130 },
{ key: 'created', label: 'Создана', minWidth: 110 }
]
};
}
/***/ })
},
/******/ function(__webpack_require__) { // webpackRuntimeModules
/******/ /* webpack/runtime/getFullHash */
/******/ (() => {
/******/ __webpack_require__.h = () => ("28bba40dc5ac93a046a4")
/******/ })();
/******/
/******/ }
);
//# sourceMappingURL=ct-forms-portal-web-part.c0c82c263a05c3417a10.hot-update.js.map
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
{"c":["ct-forms-portal-web-part"],"r":[],"m":[]}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,27 @@
/** @license React v17.0.1
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
@@ -0,0 +1,237 @@
{
"bundles": {
"ct-forms-portal-web-part": {
"dependencies": [
{
"componentId": "0d910c1c-13b9-4e1c-9aa4-b008c5e42d7d",
"componentName": "react",
"componentVersion": "17.0.1",
"isDirectDependency": true
},
{
"componentId": "aa0a46ec-1505-43cd-a44a-93f3a5aa460a",
"componentName": "react-dom",
"componentVersion": "17.0.1",
"isDirectDependency": true
},
{
"componentId": "7263c7d0-1d6a-45ec-8d85-d4d1d234171b",
"componentName": "@microsoft/sp-core-library",
"componentVersion": "1.22.1",
"isDirectDependency": true
},
{
"componentId": "01c4df03-e775-48cb-aa14-171ee5199a15",
"componentName": "tslib",
"componentVersion": "2.3.1",
"isDirectDependency": false
},
{
"componentId": "2e09fb9b-13bb-48f2-859f-97d6fff71176",
"componentName": "@msinternal/odsp-core-bundle",
"componentVersion": "1.4.517",
"isDirectDependency": false
},
{
"componentId": "f9e737b7-f0df-4597-ba8c-3060f82380db",
"componentName": "@microsoft/sp-property-pane",
"componentVersion": "1.22.1",
"isDirectDependency": true
},
{
"componentId": "78359e4b-07c2-43c6-8d0b-d060b4d577e8",
"componentName": "@microsoft/sp-diagnostics",
"componentVersion": "1.22.1",
"isDirectDependency": false
},
{
"componentId": "73e1dc6c-8441-42cc-ad47-4bd3659f8a3a",
"componentName": "@microsoft/sp-lodash-subset",
"componentVersion": "1.22.1",
"isDirectDependency": false
},
{
"componentId": "3173fefe-9995-49d1-a75d-a5caeaaba212",
"componentName": "@msinternal/sp-pages-content-panel-context",
"componentVersion": "0.1.0",
"isDirectDependency": false
},
{
"componentId": "229b8d08-79f3-438b-8c21-4613fc877abd",
"componentName": "@microsoft/load-themed-styles",
"componentVersion": "0.1.2",
"isDirectDependency": false
},
{
"componentId": "8494e7d7-6b99-47b2-a741-59873e42f16f",
"componentName": "@msinternal/sp-component-utilities",
"componentVersion": "13.12.19",
"isDirectDependency": false
},
{
"componentId": "63d75709-2785-4c91-97ad-489b171397d4",
"componentName": "@msinternal/sp-fluentui-migration-reactdom-render-bundle",
"componentVersion": "0.1.0",
"isDirectDependency": false
},
{
"componentId": "cc2cc925-b5be-41bb-880a-f0f8030c6aff",
"componentName": "@msinternal/odsp-utilities-bundle",
"componentVersion": "5.6.517",
"isDirectDependency": false
},
{
"componentId": "8217e442-8ed3-41fd-957d-b112e841286a",
"componentName": "@msinternal/sp-telemetry",
"componentVersion": "0.35.58",
"isDirectDependency": false
},
{
"componentId": "0ec74f52-38bc-4a51-ab82-7c91a2b399a2",
"componentName": "@msinternal/sp-fluentui-v9-utilities-bundle",
"componentVersion": "0.1.0",
"isDirectDependency": false
},
{
"componentId": "72ec0651-8a26-441c-87f2-77ec66884ca3",
"componentName": "@msinternal/sp-fluentui-v9-react-button-bundle",
"componentVersion": "0.1.0",
"isDirectDependency": false
},
{
"componentId": "f652a763-4d5f-4a08-aed3-d3377ef835ff",
"componentName": "@msinternal/sp-fluentui-v9-react-menu-bundle",
"componentVersion": "0.1.0",
"isDirectDependency": false
},
{
"componentId": "d3139516-bb4d-4141-9d35-a8aefe0272ec",
"componentName": "@msinternal/sp-fluentui-v9-react-field-bundle",
"componentVersion": "0.1.0",
"isDirectDependency": false
},
{
"componentId": "17f3a86d-33ce-4338-8594-8700ee90c494",
"componentName": "@msinternal/sp-fluentui-v9-react-infolabel-bundle",
"componentVersion": "0.1.0",
"isDirectDependency": false
},
{
"componentId": "33c5a798-8532-4741-888a-d0a7734036b5",
"componentName": "@msinternal/sp-fluentui-v9-react-tooltip-bundle",
"componentVersion": "0.1.0",
"isDirectDependency": false
},
{
"componentId": "29728f96-9823-40fa-a481-ffdf106880b1",
"componentName": "@msinternal/sp-fluentui-v9-react-combobox-bundle",
"componentVersion": "0.1.0",
"isDirectDependency": false
},
{
"componentId": "dbdce381-c024-42a0-ab20-4134aca49a27",
"componentName": "@msinternal/sp-fluentui-v9-react-label-bundle",
"componentVersion": "0.1.0",
"isDirectDependency": false
},
{
"componentId": "396bbc17-3d18-4f43-8299-d99720d88e22",
"componentName": "@ms/office-ui-fabric-react-bundle",
"componentVersion": "1.19.51",
"isDirectDependency": false
},
{
"componentId": "fab65e60-a04f-4772-874c-10691e4afa4b",
"componentName": "@msinternal/sp-fluentui-migration-tooltip-bundle",
"componentVersion": "0.1.0",
"isDirectDependency": false
},
{
"componentId": "0ad7e31a-8df9-4659-add8-a32c8e40040d",
"componentName": "@msinternal/sp-fluentui-migration-button-bundle",
"componentVersion": "0.1.0",
"isDirectDependency": false
},
{
"componentId": "bf211556-3cf0-412c-9618-a4f0e7069ebf",
"componentName": "@msinternal/sp-heading-level",
"componentVersion": "0.1.0",
"isDirectDependency": false
},
{
"componentId": "ffe5c101-373a-4bd2-bebb-13082852bab0",
"componentName": "@msinternal/sp-fluentui-migration-label-bundle",
"componentVersion": "0.1.0",
"isDirectDependency": false
},
{
"componentId": "1c6c9123-7aac-41f3-a376-3caea41ed83f",
"componentName": "@microsoft/sp-loader",
"componentVersion": "1.22.1",
"isDirectDependency": false
},
{
"componentId": "8496636c-2300-4915-abef-20de64c98d8b",
"componentName": "@microsoft/sp-http-base",
"componentVersion": "1.22.1",
"isDirectDependency": false
},
{
"componentId": "1c4541f7-5c31-41aa-9fa8-fbc9dc14c0a8",
"componentName": "@microsoft/sp-page-context",
"componentVersion": "1.22.1",
"isDirectDependency": false
},
{
"componentId": "e40f8203-b39d-425a-a957-714852e33b79",
"componentName": "@microsoft/sp-dynamic-data",
"componentVersion": "1.22.1",
"isDirectDependency": false
},
{
"componentId": "974a7777-0990-4136-8fa6-95d80114c2e0",
"componentName": "@microsoft/sp-webpart-base",
"componentVersion": "1.22.1",
"isDirectDependency": true
},
{
"componentId": "467dc675-7cc5-4709-8aac-78e3b71bd2f6",
"componentName": "@microsoft/sp-component-base",
"componentVersion": "1.22.1",
"isDirectDependency": false
},
{
"componentId": "c07208f0-ea3b-4c1a-9965-ac1b825211a6",
"componentName": "@microsoft/sp-http",
"componentVersion": "1.22.1",
"isDirectDependency": false
},
{
"componentId": "aec2bbfd-a968-4d5b-a279-12e570f378e6",
"componentName": "@microsoft/sp-http-msgraph",
"componentVersion": "1.22.1",
"isDirectDependency": false
},
{
"componentId": "6d3c733c-8cb7-4871-bb22-b5b37c1d518d",
"componentName": "@msinternal/sp-safehtml",
"componentVersion": "0.5.2",
"isDirectDependency": false
},
{
"componentId": "42647dee-1f75-4b9f-b521-5c844a6c35cc",
"componentName": "@msinternal/sp-edit-customer-promise",
"componentVersion": "0.1.0",
"isDirectDependency": false
},
{
"componentId": "c49ba483-7614-4c5c-b9dd-11b45a5fa280",
"componentName": "@msinternal/sp-idle-web-task",
"componentVersion": "0.1.2",
"isDirectDependency": false
}
],
"asyncChunks": {}
}
}
}
@@ -0,0 +1,80 @@
{
"id": "459579c7-954c-469e-b707-ca75d808603f",
"alias": "CtFormsPortalWebPart",
"componentType": "WebPart",
"version": "0.0.1",
"manifestVersion": 2,
"requiresCustomScript": false,
"supportedHosts": [
"SharePointWebPart",
"TeamsPersonalApp",
"TeamsTab",
"SharePointFullPage"
],
"supportsThemeVariants": true,
"supportsFullBleed": true,
"preconfiguredEntries": [
{
"groupId": "5c03119e-3074-46fd-976b-c60198311f70",
"group": {
"default": "Advanced"
},
"title": {
"default": "ct-forms-portal"
},
"description": {
"default": "ct-forms-portal description"
},
"officeFabricIconFontName": "Page",
"properties": {
"description": "ct-forms-portal"
}
}
],
"loaderConfig": {
"internalModuleBaseUrls": [
"<!-- PATH TO CDN -->"
],
"entryModuleId": "ct-forms-portal-web-part",
"scriptResources": {
"ct-forms-portal-web-part": {
"type": "path",
"path": "ct-forms-portal-web-part.js"
},
"react": {
"type": "component",
"id": "0d910c1c-13b9-4e1c-9aa4-b008c5e42d7d",
"version": "17.0.1"
},
"react-dom": {
"type": "component",
"id": "aa0a46ec-1505-43cd-a44a-93f3a5aa460a",
"version": "17.0.1"
},
"@microsoft/sp-core-library": {
"type": "component",
"id": "7263c7d0-1d6a-45ec-8d85-d4d1d234171b",
"version": "1.22.1"
},
"@microsoft/sp-property-pane": {
"type": "component",
"id": "f9e737b7-f0df-4597-ba8c-3060f82380db",
"version": "1.22.1"
},
"@microsoft/sp-webpart-base": {
"type": "component",
"id": "974a7777-0990-4136-8fa6-95d80114c2e0",
"version": "1.22.1"
},
"CtFormsPortalWebPartStrings": {
"type": "path",
"path": "CtFormsPortalWebPartStrings_en-us.js"
},
"@microsoft/sp-http": {
"type": "component",
"id": "c07208f0-ea3b-4c1a-9965-ac1b825211a6",
"version": "1.22.1"
}
}
}
}