odant-work 1.0.82 → 1.0.83
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"packageName": "odant-work",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.83",
|
|
4
4
|
"createdAt": 1795100682741,
|
|
5
|
-
"updatedAt":
|
|
5
|
+
"updatedAt": 1795694160116,
|
|
6
6
|
"files": {
|
|
7
7
|
"run.mjs": "f8918c612e8641e9beee06221be6680aa6fd21f25468451f2ac857fd51772266",
|
|
8
|
-
"package.json": "
|
|
9
|
-
"package-lock.json": "
|
|
8
|
+
"package.json": "f7f5fcaff68bae50ae4a9151673a82794a904b6919f244bf3152ab9b58325918",
|
|
9
|
+
"package-lock.json": "d9b63f1e10304194b075f7535aef53cfbfe979ee8953c34446607de61f04d521",
|
|
10
10
|
"sources/client/class.js": "c3fb8f143fc83aaa2df1ddeddd412d2d4dfe88656578095babe2df34fb3b3922",
|
|
11
11
|
"sources/client/field.js": "ffdd50fa8b6ec515cc42da5fca96658ff2b20e274601a1f926e0031372467a19",
|
|
12
12
|
"sources/client/file.js": "667101d75fa30840370d5be232e518aaac7c1fd52ca05a12da560eef6c0848b0",
|
|
@@ -787,7 +787,7 @@
|
|
|
787
787
|
"$server/$folder/handlers/methods/help/$handler/class.js": "ff54bf976cbdc846d7c1b46ff12b111e99a3f4831240a4e420b73c98c0355a5c",
|
|
788
788
|
"$server/$folder/handlers/methods/info/$handler/class.js": "8752efb28abdcfad4e8ce56cfebcd8bb09ec0735cba7b84156d248bfcb0f9db0",
|
|
789
789
|
"$server/$folder/handlers/pages/form/$handler/class.js": "3902d3e1a8742afa2625410f97c68a3afac2559bd3d8f37044338edf7386d4df",
|
|
790
|
-
"$server/$folder/handlers/pages/form/$handler/form.js": "
|
|
790
|
+
"$server/$folder/handlers/pages/form/$handler/form.js": "0068dc5d43160e29504f5ebb1d1b634a2729b0a45a4788926c167c0e168775ce",
|
|
791
791
|
"$server/$folder/handlers/readme.md": "1167594c32f46323d229098a72e80a9865005c347373fdacef5af69838a0f8eb",
|
|
792
792
|
"$server/$folder/lib/calendar-form/calendar-form.js": "dbfc0f7014659222ad3b3519d8e6c79bd5567102ab287096d59d015d66015148",
|
|
793
793
|
"$server/$folder/lib/chat-item/chat-item.js": "2b7f1cd5b319e159ee414efe855ca55ada5740ec94bc948a4a0af3c78dc4bec5",
|
|
@@ -804,7 +804,7 @@
|
|
|
804
804
|
"$server/$folder/lib/email/settings.js": "25e13ecf12b84e5fd6bcac955b1e0dc47bf09b72a98776e8ce1e1f01617aef9d",
|
|
805
805
|
"$server/$folder/lib/explorer/explorer.js": "751c03c1c6ba8a9e246eb86d228134cc8cc26048c71c92594b84b451d2614c55",
|
|
806
806
|
"$server/$folder/lib/file-viewer/file-viewer.js": "b183fd61b72fcc7baba3e44e16ddf3800553596313711a7bc4dd91f3e1e260ab",
|
|
807
|
-
"$server/$folder/lib/icon/icon.js": "
|
|
807
|
+
"$server/$folder/lib/icon/icon.js": "86b677dffc0d80174c4824e1162afbf7407470453acd158861c05af06bd77014",
|
|
808
808
|
"$server/$folder/lib/icon/user/user.js": "481da79de754c244f0151c91d03a503c0452902575e4dc8bc2b3171c0fad3a2e",
|
|
809
809
|
"$server/$folder/lib/item-data-grid/item-data-grid.js": "c9650e7d09dd8a558e5f288da527d74c65267fa563a7006cf86222dc25198b54",
|
|
810
810
|
"$server/$folder/lib/item-data-grid/readme.md": "2a9f5703b83945884992120560baf9187aabde045d55026716579212a5930575",
|
|
@@ -186,11 +186,16 @@ ODA({is: 'work-form',
|
|
|
186
186
|
max-width: 100%;
|
|
187
187
|
flex-shrink: 1;
|
|
188
188
|
}
|
|
189
|
-
.
|
|
189
|
+
.consultant-btn {
|
|
190
190
|
border-radius: 50%;
|
|
191
191
|
margin-right: 12px;
|
|
192
192
|
flex-shrink: 0;
|
|
193
193
|
}
|
|
194
|
+
.call-btn {
|
|
195
|
+
border-radius: 50%;
|
|
196
|
+
margin-right: 32px;
|
|
197
|
+
flex-shrink: 0;
|
|
198
|
+
}
|
|
194
199
|
.view-selector {
|
|
195
200
|
justify-content: space-between;
|
|
196
201
|
overflow-x: auto;
|
|
@@ -208,9 +213,12 @@ ODA({is: 'work-form',
|
|
|
208
213
|
flex-wrap: wrap;
|
|
209
214
|
padding-bottom: max(4px, var(--safe-bottom, 0px)) !important;
|
|
210
215
|
}
|
|
211
|
-
@media (max-width:
|
|
216
|
+
@media (max-width: 520px) {
|
|
217
|
+
.consultant-btn {
|
|
218
|
+
margin-right: 8px;
|
|
219
|
+
}
|
|
212
220
|
.call-btn {
|
|
213
|
-
margin-right:
|
|
221
|
+
margin-right: 16px;
|
|
214
222
|
}
|
|
215
223
|
.form-header-inner {
|
|
216
224
|
margin: 2px;
|
|
@@ -225,7 +233,7 @@ ODA({is: 'work-form',
|
|
|
225
233
|
<div center flex horizontal class="form-header-inner">
|
|
226
234
|
<item-node-explorer no-flex :$item="rootItem"></item-node-explorer>
|
|
227
235
|
<div flex></div>
|
|
228
|
-
<oda-button ~if="showConsultantBtn" id="consultantBtn" shadow icon="bootstrap:robot" @tap="askConsultant" title="Спросить ИИ-консультанта по текущей форме" :icon-size info
|
|
236
|
+
<oda-button ~if="showConsultantBtn" id="consultantBtn" shadow icon="bootstrap:robot" @tap="askConsultant" title="Спросить ИИ-консультанта по текущей форме" :icon-size info class="consultant-btn"></oda-button>
|
|
229
237
|
<oda-button shadow icon="communication:call" @tap="call" title="Call..." :icon-size success class="call-btn"></oda-button>
|
|
230
238
|
<slot name="top-panel"></slot>
|
|
231
239
|
<div class="view-selector" no-flex horizontal>
|
|
@@ -73,7 +73,7 @@ export default {
|
|
|
73
73
|
if (this.$item?.type === '$virtual')
|
|
74
74
|
return 'carbon:filter';
|
|
75
75
|
if (this._bossUsers)
|
|
76
|
-
return this._bossUsers.then(list => bossAvatarInfo(list[0]).icon);
|
|
76
|
+
return Promise.resolve(this._bossUsers).then(list => bossAvatarInfo(Array.isArray(list) ? list[0] : null).icon);
|
|
77
77
|
return this.$item?.subIcon;
|
|
78
78
|
}
|
|
79
79
|
return Promise.resolve(this.online).then(res => res ? 'unicon:check-circle' : '');
|
|
@@ -86,7 +86,7 @@ export default {
|
|
|
86
86
|
if (this.$item?.type === '$virtual')
|
|
87
87
|
return '#ede9fe';
|
|
88
88
|
if (this._bossUsers)
|
|
89
|
-
return this._bossUsers.then(list => bossAvatarInfo(list[0]).color);
|
|
89
|
+
return Promise.resolve(this._bossUsers).then(list => bossAvatarInfo(Array.isArray(list) ? list[0] : null).color);
|
|
90
90
|
return '';
|
|
91
91
|
}
|
|
92
92
|
return Promise.resolve(this.online).then(res => res ? 'lime' : '');
|
|
@@ -96,8 +96,8 @@ export default {
|
|
|
96
96
|
$def: '',
|
|
97
97
|
get() {
|
|
98
98
|
if (this._bossUsers) {
|
|
99
|
-
return this._bossUsers.then(list => {
|
|
100
|
-
if (!list.length)
|
|
99
|
+
return Promise.resolve(this._bossUsers).then(list => {
|
|
100
|
+
if (!Array.isArray(list) || !list.length)
|
|
101
101
|
return '';
|
|
102
102
|
const names = list.map(u => bossAvatarInfo(u).label).filter(Boolean);
|
|
103
103
|
return names.length ? 'Руководитель: ' + names.join(', ') : '';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "odant-work",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.83",
|
|
4
4
|
"description": "ODANT-WORK — платформа цифровой организации (встроенная система учёта, документооборот, управление процессами и приватный мультимодальный ИИ)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "sources/work.js",
|