odant-work 1.0.81 → 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.
Files changed (35) hide show
  1. package/#system/package-manifest.json +37 -37
  2. package/$server/$folder/$class/$structure/handlers/pages/form/calendar/$handler/calendar.js +38 -8
  3. package/$server/$folder/$class/$structure/handlers/pages/form/chat/$handler/chat.js +91 -9
  4. package/$server/$folder/$class/$structure/handlers/pages/form/chat/$handler/video.html +8 -0
  5. package/$server/$folder/$class/$structure/handlers/pages/form/email/$handler/email.js +95 -8
  6. package/$server/$folder/$class/$structure/handlers/pages/form/system/$handler/system.js +33 -0
  7. package/$server/$folder/$class/$structure/handlers/pages/form/system/$handler/tabs/database.js +22 -1
  8. package/$server/$folder/$class/$structure/handlers/pages/form/system/$handler/tabs/messengers.js +7 -7
  9. package/$server/$folder/$class/handlers/pages/form/object/$handler/object.js +8 -6
  10. package/$server/$folder/$class/handlers/pages/form/objects/$handler/objects.js +14 -2
  11. package/$server/$folder/handlers/pages/form/$handler/form.js +55 -6
  12. package/$server/$folder/lib/calendar-form/calendar-form.js +7 -5
  13. package/$server/$folder/lib/class-picker/class-picker.js +5 -2
  14. package/$server/$folder/lib/dialogs/confirm/confirm.js +6 -2
  15. package/$server/$folder/lib/dialogs/input/input.js +15 -9
  16. package/$server/$folder/lib/editor-form/editor-form.js +8 -5
  17. package/$server/$folder/lib/explorer/explorer.js +20 -12
  18. package/$server/$folder/lib/icon/icon.js +4 -4
  19. package/$server/$folder/lib/local-models-transfer/local-models-transfer.js +3 -2
  20. package/$server/$folder/lib/messenger-settings/messenger-settings.js +4 -4
  21. package/$server/$folder/lib/prompt-bar/prompt-bar.js +2 -2
  22. package/$server/$folder/lib/support/support.js +213 -72
  23. package/oda/components/containers/containers.js +2 -2
  24. package/oda/components/containers/popover/popover.js +83 -18
  25. package/oda/components/inputs/link/link.js +7 -5
  26. package/oda/components/layouts/app-layout/app-layout.js +33 -10
  27. package/oda/components/menus/menu/menu.js +2 -2
  28. package/oda/oda.js +13 -2
  29. package/oda/tools/styles/styles.js +68 -0
  30. package/package.json +1 -1
  31. package/sources/index.html +7 -4
  32. package/sources/manifest.json +12 -6
  33. package/sources/modules/user-profile/user-profile.js +27 -5
  34. package/sources/page.html +7 -4
  35. package/sources/tester.html +4 -4
@@ -128,15 +128,31 @@ ODA({
128
128
  :host {
129
129
  @apply --horizontal;
130
130
  @apply --flex;
131
- min-width: 640px;
132
- min-height: 320px;
131
+ width: min(680px, calc(100vw - 24px));
132
+ max-width: 100%;
133
+ min-height: min(320px, 50dvh);
134
+ box-sizing: border-box;
133
135
  overflow: hidden;
134
136
  }
135
137
  .accounts {
136
138
  width: 220px;
137
- min-width: 180px;
139
+ min-width: 170px;
140
+ flex-shrink: 0;
138
141
  @apply --light;
139
142
  border-right: 1px solid var(--subtle-border);
143
+ overflow-y: auto;
144
+ }
145
+ @media (max-width: 640px) {
146
+ :host {
147
+ flex-direction: column;
148
+ }
149
+ .accounts {
150
+ width: 100%;
151
+ min-width: 0;
152
+ border-right: none;
153
+ border-bottom: 1px solid var(--subtle-border);
154
+ max-height: 32dvh;
155
+ }
140
156
  }
141
157
  .accounts-toolbar {
142
158
  padding: 6px var(--space-m);
@@ -604,9 +620,78 @@ export default {
604
620
  .compose-footer {
605
621
  @apply --horizontal;
606
622
  align-items: center;
623
+ flex-wrap: wrap;
607
624
  gap: 8px;
608
625
  padding-top: 4px;
609
626
  }
627
+ .mail-back-btn {
628
+ display: none;
629
+ }
630
+ @media (max-width: 960px) {
631
+ .mail-sidebar {
632
+ width: 176px;
633
+ }
634
+ .mail-list-pane {
635
+ width: 270px;
636
+ min-width: 210px;
637
+ }
638
+ }
639
+ @media (max-width: 768px) {
640
+ :host {
641
+ flex-direction: column;
642
+ }
643
+ .mail-sidebar {
644
+ width: 100%;
645
+ flex-direction: row;
646
+ align-items: center;
647
+ overflow-x: auto;
648
+ overflow-y: hidden;
649
+ border-right: none;
650
+ border-bottom: 1px solid var(--subtle-border, #e2e8f0);
651
+ padding: 6px 8px;
652
+ gap: 6px;
653
+ box-sizing: border-box;
654
+ }
655
+ .compose-btn {
656
+ margin-bottom: 0;
657
+ padding: 7px 11px;
658
+ white-space: nowrap;
659
+ flex-shrink: 0;
660
+ }
661
+ .nav-btn {
662
+ width: auto;
663
+ white-space: nowrap;
664
+ flex-shrink: 0;
665
+ padding: 6px 10px;
666
+ }
667
+ .side-sep, .side-label, .mail-side-spacer {
668
+ display: none;
669
+ }
670
+ .mail-list-pane {
671
+ width: 100%;
672
+ min-width: 0;
673
+ flex: 1 1 auto;
674
+ border-right: none;
675
+ }
676
+ .mail-list-pane.mobile-hidden {
677
+ display: none;
678
+ }
679
+ .mail-view-pane {
680
+ width: 100%;
681
+ flex: 1 1 auto;
682
+ min-height: 0;
683
+ }
684
+ .mail-view-pane.mobile-hidden {
685
+ display: none;
686
+ }
687
+ .mail-back-btn {
688
+ display: inline-flex;
689
+ }
690
+ .view-head, .view-body, .compose-wrap {
691
+ padding-left: 12px;
692
+ padding-right: 12px;
693
+ }
694
+ }
610
695
  </style>
611
696
 
612
697
  <aside class="mail-sidebar">
@@ -636,9 +721,9 @@ export default {
636
721
  <span>{{$for.item.address}}</span>
637
722
  </button>
638
723
 
639
- <div style="flex: 1;"></div>
724
+ <div class="mail-side-spacer" style="flex: 1;"></div>
640
725
  <div class="side-sep" ~if="canConfigure"></div>
641
- <label ~if="canConfigure && accounts.length" style="display:flex;align-items:center;gap:6px;padding:4px 8px;font-size:12px;cursor:pointer;">
726
+ <label ~if="canConfigure && accounts.length" style="display:flex;align-items:center;gap:6px;padding:4px 8px;font-size:12px;cursor:pointer;white-space:nowrap;flex-shrink:0;">
642
727
  <input type="checkbox" :checked="autoRefresh" @change="toggleAutoRefresh($event.target.checked)">
643
728
  <span>Автопроверка почты</span>
644
729
  </label>
@@ -648,7 +733,7 @@ export default {
648
733
  </button>
649
734
  </aside>
650
735
 
651
- <section class="mail-list-pane">
736
+ <section class="mail-list-pane" ~class="{ 'mobile-hidden': mode !== 'idle' }">
652
737
  <div class="list-toolbar">
653
738
  <input class="search-input" type="search" placeholder="Поиск писем…" :value="searchQuery" @input="onSearchInput($event)">
654
739
  <button type="button" class="icon-btn" ~class="{ active: unreadOnly }" @tap="toggleUnreadOnly()" title="Только непрочитанные">●</button>
@@ -681,7 +766,7 @@ export default {
681
766
  </div>
682
767
  </section>
683
768
 
684
- <main class="mail-view-pane">
769
+ <main class="mail-view-pane" ~class="{ 'mobile-hidden': mode === 'idle' }">
685
770
  <div ~if="mode === 'idle'" class="empty-pane">
686
771
  <oda-icon icon="enterprise:email" icon-size="40" style="opacity:0.35;"></oda-icon>
687
772
  <div style="font-size:14px;font-weight:600;">Выберите письмо для просмотра</div>
@@ -695,6 +780,7 @@ export default {
695
780
 
696
781
  <div ~if="mode === 'view' && selected" style="display:flex;flex-direction:column;flex:1;min-height:0;">
697
782
  <div class="view-actions">
783
+ <oda-button class="mail-back-btn" icon="icons:arrow-back" @tap="mode = 'idle'">Письма</oda-button>
698
784
  <oda-button ~if="selected.box === 'drafts'" icon="editor:mode-edit" info-invert @tap="editDraft(selected)">Продолжить черновик</oda-button>
699
785
  <oda-button ~if="selected.box !== 'drafts'" icon="icons:reply" @tap="reply(false)">Ответить</oda-button>
700
786
  <oda-button ~if="selected.box !== 'drafts' && (selected.cc || (selected.to || '').includes(','))" icon="icons:reply-all" @tap="reply(true)">Ответить всем</oda-button>
@@ -727,7 +813,8 @@ export default {
727
813
  </div>
728
814
 
729
815
  <div ~if="mode === 'compose'" class="compose-wrap">
730
- <div style="display:flex;align-items:center;justify-content:space-between;">
816
+ <div style="display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;">
817
+ <oda-button class="mail-back-btn" icon="icons:arrow-back" @tap="mode = 'idle'">Письма</oda-button>
731
818
  <span style="font-size:15px;font-weight:700;">{{draft.uid ? 'Редактирование черновика' : 'Новое письмо'}}</span>
732
819
  </div>
733
820
 
@@ -102,6 +102,7 @@ export default {
102
102
  @apply --horizontal;
103
103
  align-items: center;
104
104
  justify-content: space-between;
105
+ flex-wrap: wrap;
105
106
  gap: 10px;
106
107
  padding: 10px 16px;
107
108
  border-bottom: 1px solid var(--subtle-border, var(--border-color));
@@ -112,6 +113,38 @@ export default {
112
113
  font-size: 12.5px;
113
114
  color: var(--muted-color);
114
115
  }
116
+ @media (max-width: 768px) {
117
+ :host {
118
+ flex-direction: column;
119
+ }
120
+ .sys-sidebar {
121
+ width: 100%;
122
+ flex-direction: row;
123
+ align-items: center;
124
+ overflow-x: auto;
125
+ overflow-y: hidden;
126
+ border-right: none;
127
+ border-bottom: 1px solid var(--subtle-border, var(--border-color));
128
+ padding: 6px 8px;
129
+ gap: 6px;
130
+ box-sizing: border-box;
131
+ }
132
+ .sys-sep {
133
+ width: 1px;
134
+ height: 22px;
135
+ margin: 0 2px;
136
+ flex-shrink: 0;
137
+ }
138
+ .sys-tab {
139
+ width: auto;
140
+ white-space: nowrap;
141
+ flex-shrink: 0;
142
+ padding: 7px 11px;
143
+ }
144
+ .req-bar {
145
+ padding: 8px 12px;
146
+ }
147
+ }
115
148
  </style>
116
149
 
117
150
  <div ~if="isBossDenied" class="denied-msg" style="padding:28px 24px;color:var(--muted-color);font-size:14px;">
@@ -345,13 +345,34 @@ export default {
345
345
  .inspector {
346
346
  @apply --vertical;
347
347
  width: 410px;
348
- min-width: 340px;
348
+ min-width: 300px;
349
349
  max-width: 480px;
350
350
  border-left: 1px solid var(--border-color);
351
351
  background: var(--subtle-background);
352
352
  flex-shrink: 0;
353
353
  overflow: hidden;
354
354
  }
355
+ @media (max-width: 820px) {
356
+ .workspace {
357
+ flex-direction: column;
358
+ }
359
+ .sidebar {
360
+ width: 100%;
361
+ min-width: 0;
362
+ max-width: 100%;
363
+ max-height: 200px;
364
+ border-right: none;
365
+ border-bottom: 1px solid var(--border-color);
366
+ }
367
+ .inspector {
368
+ width: 100%;
369
+ min-width: 0;
370
+ max-width: 100%;
371
+ max-height: 45dvh;
372
+ border-left: none;
373
+ border-top: 1px solid var(--border-color);
374
+ }
375
+ }
355
376
  .inspector-head {
356
377
  @apply --horizontal;
357
378
  align-items: center;
@@ -190,22 +190,22 @@ export default {
190
190
  <option value="telegram">Telegram Bot API</option>
191
191
  <option value="max">MAX Bot API</option>
192
192
  </select>
193
- <span class="field-label" style="min-width: 120px;">Название бота:</span>
194
- <input type="text" placeholder="Например: Бот Бизнес Интер Софт" :value="draftBotLabel" @input="draftBotLabel = $event.target.value" style="min-width: 220px;">
193
+ <span class="field-label" style="min-width: 110px;">Название бота:</span>
194
+ <input type="text" placeholder="Например: Бот Бизнес Интер Софт" :value="draftBotLabel" @input="draftBotLabel = $event.target.value" style="min-width: 140px; flex: 1 1 180px; max-width: 100%; box-sizing: border-box;">
195
195
  </div>
196
196
  <div class="row">
197
197
  <span class="field-label">Токен бота:</span>
198
- <input type="password" :placeholder="ownBot?.tokenMask ? 'Сохранён (' + ownBot.tokenMask + ') — введите новый для замены' : 'Вставьте токен от @BotFather или MAX'" :value="draftBotToken" @input="draftBotToken = $event.target.value" style="min-width: 280px; flex: 1;">
199
- <span class="field-label" style="min-width: 95px;">@username:</span>
200
- <input type="text" placeholder="определится авто" :value="draftBotUsername" @input="draftBotUsername = $event.target.value" style="width: 160px;">
198
+ <input type="password" :placeholder="ownBot?.tokenMask ? 'Сохранён (' + ownBot.tokenMask + ') — введите новый для замены' : 'Вставьте токен от @BotFather или MAX'" :value="draftBotToken" @input="draftBotToken = $event.target.value" style="min-width: 160px; flex: 1 1 200px; max-width: 100%; box-sizing: border-box;">
199
+ <span class="field-label" style="min-width: 90px;">@username:</span>
200
+ <input type="text" placeholder="определится авто" :value="draftBotUsername" @input="draftBotUsername = $event.target.value" style="min-width: 120px; flex: 0 1 160px; max-width: 100%; box-sizing: border-box;">
201
201
  </div>
202
202
  </div>
203
203
 
204
204
  <!-- Общий групповой чат подразделения -->
205
205
  <div class="row" style="padding-top: 8px; border-top: 1px dashed var(--subtle-border, var(--border-color));">
206
206
  <span class="field-label">Общий чат точки:</span>
207
- <input type="text" placeholder="chat_id группы (необязательно)" :value="draftGroupChatId" @input="draftGroupChatId = $event.target.value" style="width: 190px;">
208
- <input type="text" placeholder="Название группы" :value="draftGroupTitle" @input="draftGroupTitle = $event.target.value" style="width: 190px;">
207
+ <input type="text" placeholder="chat_id группы (необязательно)" :value="draftGroupChatId" @input="draftGroupChatId = $event.target.value" style="min-width: 140px; flex: 1 1 170px; max-width: 100%; box-sizing: border-box;">
208
+ <input type="text" placeholder="Название группы" :value="draftGroupTitle" @input="draftGroupTitle = $event.target.value" style="min-width: 140px; flex: 1 1 170px; max-width: 100%; box-sizing: border-box;">
209
209
  <oda-button icon="av:vpn-key" label="Код привязки группы" title="Сгенерировать код и отправить в групповой чат с ботом" @tap="requestLinkCode('group')"></oda-button>
210
210
  <oda-button ~if="draftGroupChatId" icon="icons:close" title="Отвязать группу" @tap="unbind('group')"></oda-button>
211
211
  </div>
@@ -769,8 +769,9 @@ if (typeof ODA === 'function') {
769
769
  <style>
770
770
  :host {
771
771
  @apply --vertical;
772
- min-width: min(680px, 92vw);
773
- max-height: 78vh;
772
+ min-width: min(680px, calc(100vw - 24px));
773
+ max-width: 100%;
774
+ max-height: 78dvh;
774
775
  background: var(--content-background, #fff);
775
776
  color: var(--content-color, #1f2937);
776
777
  font-size: 13px;
@@ -778,9 +779,9 @@ if (typeof ODA === 'function') {
778
779
  }
779
780
  .binder-body {
780
781
  @apply --vertical;
781
- flex: 1;
782
- min-height: 220px;
783
- max-height: 64vh;
782
+ flex: 1 1 auto;
783
+ min-height: min(200px, 32dvh);
784
+ max-height: 64dvh;
784
785
  overflow-y: auto;
785
786
  padding: 10px 14px;
786
787
  gap: 12px;
@@ -803,8 +804,9 @@ if (typeof ODA === 'function') {
803
804
  }
804
805
  .doc-row {
805
806
  @apply --horizontal;
807
+ flex-wrap: wrap;
806
808
  align-items: center;
807
- gap: 10px;
809
+ gap: 6px 10px;
808
810
  padding: 6px 10px;
809
811
  border-bottom: 1px solid var(--subtle-border, #e5e7eb);
810
812
  }
@@ -1975,10 +1975,16 @@ ODA({
1975
1975
  <style>
1976
1976
  :host {
1977
1977
  @apply --vertical;
1978
+ width: min(680px, calc(100vw - 24px));
1979
+ max-width: 100%;
1980
+ min-height: 0;
1981
+ box-sizing: border-box;
1978
1982
  overflow: hidden;
1979
1983
  }
1980
1984
  oda-editor-form {
1981
- flex: 1;
1985
+ flex: 1 1 auto;
1986
+ min-height: 0;
1987
+ overflow-y: auto;
1982
1988
  }
1983
1989
  .error {
1984
1990
  color: var(--error-color);
@@ -2007,7 +2013,8 @@ ODA({
2007
2013
  }
2008
2014
  .traj-row {
2009
2015
  @apply --horizontal;
2010
- gap: 8px;
2016
+ flex-wrap: wrap;
2017
+ gap: 4px 8px;
2011
2018
  align-items: center;
2012
2019
  }
2013
2020
  .traj-link {
@@ -2017,15 +2024,20 @@ ODA({
2017
2024
  .traj-num {
2018
2025
  margin-left: auto;
2019
2026
  text-align: right;
2027
+ white-space: nowrap;
2020
2028
  }
2021
2029
  .bar {
2022
2030
  @apply --horizontal;
2023
2031
  flex-wrap: wrap;
2032
+ justify-content: flex-end;
2024
2033
  gap: var(--space-s);
2025
2034
  padding: var(--space-m);
2035
+ border-top: 1px solid var(--subtle-border, var(--border-color, #ddd));
2036
+ flex-shrink: 0;
2026
2037
  }
2027
2038
  .context {
2028
2039
  @apply --horizontal;
2040
+ flex-wrap: wrap;
2029
2041
  align-items: center;
2030
2042
  gap: var(--space-s);
2031
2043
  padding: var(--space-m) var(--space-m) 0;
@@ -174,20 +174,69 @@ ODA({is: 'work-form',
174
174
  .view-enter {
175
175
  animation: view-fade-in 0.5s ease;
176
176
  }
177
+ .form-header-inner {
178
+ min-width: 0;
179
+ flex-wrap: wrap;
180
+ gap: 4px;
181
+ margin: 4px;
182
+ align-items: center;
183
+ }
184
+ .form-header-inner item-node-explorer {
185
+ min-width: 0;
186
+ max-width: 100%;
187
+ flex-shrink: 1;
188
+ }
189
+ .consultant-btn {
190
+ border-radius: 50%;
191
+ margin-right: 12px;
192
+ flex-shrink: 0;
193
+ }
194
+ .call-btn {
195
+ border-radius: 50%;
196
+ margin-right: 32px;
197
+ flex-shrink: 0;
198
+ }
199
+ .view-selector {
200
+ justify-content: space-between;
201
+ overflow-x: auto;
202
+ max-width: 100%;
203
+ min-width: 0;
204
+ }
205
+ #formToolbar {
206
+ flex-wrap: wrap;
207
+ }
208
+ #formToolbar .toolbar-zone {
209
+ flex-wrap: wrap;
210
+ min-width: 0;
211
+ }
212
+ #formFooter {
213
+ flex-wrap: wrap;
214
+ padding-bottom: max(4px, var(--safe-bottom, 0px)) !important;
215
+ }
216
+ @media (max-width: 520px) {
217
+ .consultant-btn {
218
+ margin-right: 8px;
219
+ }
220
+ .call-btn {
221
+ margin-right: 16px;
222
+ }
223
+ .form-header-inner {
224
+ margin: 2px;
225
+ }
226
+ }
177
227
  @keyframes view-fade-in {
178
228
  from { opacity: 0; }
179
229
  to { opacity: 1; }
180
230
  }
181
231
  </style>
182
- <div id="formHeader" ~show="!fullScreen" accent-invert slot="header" shadow horizontal flex style="padding: 2px; gap: 4px; align-items: center;">
183
- <div center flex horizontal style="overflow: hidden; flex-wrap: balance; gap: 4px; margin: 4px;">
184
- <div :flex="ODA.states?.mobileMode"></div>
232
+ <div id="formHeader" ~show="!fullScreen" accent-invert slot="header" shadow horizontal flex style="padding: 2px; gap: 4px; align-items: center; min-width: 0;">
233
+ <div center flex horizontal class="form-header-inner">
185
234
  <item-node-explorer no-flex :$item="rootItem"></item-node-explorer>
186
235
  <div flex></div>
187
- <oda-button ~if="showConsultantBtn" id="consultantBtn" shadow icon="bootstrap:robot" @tap="askConsultant" title="Спросить ИИ-консультанта по текущей форме" :icon-size info-invert style="border-radius: 50%; margin-right: 8px; flex-shrink: 0;"></oda-button>
188
- <oda-button shadow icon="communication:call" @tap="call" title="Call..." :icon-size success style="border-radius: 50%;margin-right:32px;"></oda-button>
236
+ <oda-button ~if="showConsultantBtn" id="consultantBtn" shadow icon="bootstrap:robot" @tap="askConsultant" title="Спросить ИИ-консультанта по текущей форме" :icon-size info class="consultant-btn"></oda-button>
237
+ <oda-button shadow icon="communication:call" @tap="call" title="Call..." :icon-size success class="call-btn"></oda-button>
189
238
  <slot name="top-panel"></slot>
190
- <div class="view-selector" no-flex horizontal style="justify-content: space-between; overflow: hidden;">
239
+ <div class="view-selector" no-flex horizontal>
191
240
  <div class="flow" no-flex horizontal style="gap: 8px; border-radius: 4px; align-items: center;">
192
241
 
193
242
  <div
@@ -47,10 +47,9 @@ ODA({
47
47
  @apply --vertical;
48
48
  padding: 10px 14px;
49
49
  gap: 10px;
50
- min-width: 420px;
51
- max-width: 560px;
52
- max-height: 75vh;
53
- overflow-y: auto;
50
+ width: min(520px, calc(100vw - 24px));
51
+ max-width: 100%;
52
+ box-sizing: border-box;
54
53
  font-size: 13px;
55
54
  color: var(--content-color);
56
55
  }
@@ -75,6 +74,7 @@ ODA({
75
74
  font-family: inherit;
76
75
  font-size: 13px;
77
76
  width: 100%;
77
+ min-width: 0;
78
78
  padding: 3px 0;
79
79
  box-sizing: border-box;
80
80
  }
@@ -84,11 +84,13 @@ ODA({
84
84
  }
85
85
  .row {
86
86
  @apply --horizontal;
87
+ flex-wrap: wrap;
87
88
  gap: 10px;
88
89
  align-items: stretch;
89
90
  }
90
91
  .row > fieldset {
91
- @apply --flex;
92
+ flex: 1 1 180px;
93
+ min-width: 0;
92
94
  }
93
95
  .box {
94
96
  @apply --vertical;
@@ -247,12 +247,15 @@ export const CLASS_PICKER_DEF = {
247
247
  @apply --content;
248
248
  padding: 12px 14px;
249
249
  gap: 12px;
250
+ min-width: 0;
251
+ max-width: 100%;
250
252
  box-sizing: border-box;
251
253
  }
252
254
  .tree-box {
253
255
  @apply --vertical;
254
- min-height: 320px;
255
- max-height: 62vh;
256
+ flex: 1 1 auto;
257
+ min-height: min(240px, 38dvh);
258
+ max-height: 62dvh;
256
259
  overflow: auto;
257
260
  border: 1px solid var(--border-color);
258
261
  background: var(--content-background);
@@ -4,10 +4,13 @@ export default{
4
4
  <style>
5
5
  :host {
6
6
  border-radius: 8px;
7
+ max-width: min(480px, 100%);
8
+ box-sizing: border-box;
7
9
  @apply --light;
8
10
  }
9
11
  fieldset {
10
12
  border: none;
13
+ min-width: 0;
11
14
  }
12
15
  .btn {
13
16
  padding: 8px;
@@ -16,11 +19,12 @@ export default{
16
19
  }
17
20
  span {
18
21
  text-align: center;
19
- font-size: x-large;
20
- margin: 16px 2px;
22
+ font-size: large;
23
+ margin: 12px 2px;
21
24
  padding: 4px;
22
25
  border-radius: 8px;
23
26
  white-space: break-spaces;
27
+ word-break: break-word;
24
28
  }
25
29
  </style>
26
30
  <fieldset vertical>
@@ -3,12 +3,15 @@ export default{
3
3
  template:/* html */`
4
4
  <style>
5
5
  :host {
6
- max-width: 250px;
6
+ width: min(360px, calc(100vw - 32px));
7
+ max-width: 100%;
8
+ box-sizing: border-box;
7
9
  border-radius: 8px;
8
10
  @apply --light;
9
11
  }
10
12
  fieldset {
11
13
  border: none;
14
+ min-width: 0;
12
15
  }
13
16
  .btn {
14
17
  padding: 8px;
@@ -17,19 +20,22 @@ export default{
17
20
  }
18
21
  span {
19
22
  text-align: center;
20
- font-size: x-large;
21
- margin: 16px 2px;
23
+ font-size: large;
24
+ margin: 12px 2px;
22
25
  padding: 4px;
23
26
  border-radius: 8px;
24
27
  white-space: break-spaces;
28
+ word-break: break-word;
25
29
  }
26
30
  input {
27
- width: -webkit-fill-available;
28
- outline: node;
29
- border: node;
30
- padding: 2px 4px;
31
- margin-top: 16px;
32
- margin-bottom: 16px;
31
+ width: 100%;
32
+ box-sizing: border-box;
33
+ outline: none;
34
+ border: 1px solid var(--control-border-color, var(--subtle-border));
35
+ border-radius: var(--control-radius, 6px);
36
+ padding: 6px 8px;
37
+ margin-top: 12px;
38
+ margin-bottom: 12px;
33
39
  }
34
40
  </style>
35
41
  <fieldset vertical>
@@ -68,20 +68,23 @@ ODA({
68
68
  :host {
69
69
  display: flex;
70
70
  flex-direction: row;
71
+ flex-wrap: wrap;
71
72
  align-items: center;
72
- gap: 8px;
73
+ gap: 6px 8px;
73
74
  width: 100%;
75
+ min-width: 0;
76
+ box-sizing: border-box;
74
77
  font-size: inherit;
75
78
  }
76
79
  .field-label {
77
- flex: 0 0 auto;
78
- min-width: 96px;
80
+ flex: 0 1 auto;
81
+ min-width: min(96px, 100%);
79
82
  font-weight: 500;
80
- white-space: nowrap;
83
+ overflow-wrap: anywhere;
81
84
  }
82
85
  .editor-box {
83
86
  @apply --vertical;
84
- @apply --flex;
87
+ flex: 1 1 180px;
85
88
  min-width: 0;
86
89
  }
87
90
  .children-box {
@@ -13,17 +13,20 @@ export default {
13
13
  <iframe ~show="focusedPage === $for.item" style="border: none;" flex ~for="pages" :src="$for.item"></iframe>
14
14
  </div>
15
15
  </div>
16
- <oda-tabs id="bookmarksBar" slot="footer" class="pe-no-print" variant="rail" allow-close allow-drag
17
- :hidden="!hasBookmarks" ~show="hasBookmarks"
18
- :items="bookmarkTabItems" :focused-index="bookmarkFocusedIndex"
19
- @tab-select="onBookmarkSelect($event)"
20
- @tab-close="onBookmarkClose($event)"
21
- @close-others="onBookmarkCloseOthers($event)"
22
- @close-right="onBookmarkCloseRight($event)"
23
- @close-all="closeAllBookmarks($event)"
24
- @reorder="onBookmarksReorder($event)"
25
- style="z-index: 2;">
26
- </oda-tabs>
16
+ <div slot="footer" class="pe-no-print" horizontal ~show="hasBookmarks" style="z-index: 2; align-items: center; padding-bottom: var(--safe-bottom, 0px); background: var(--accent-color, var(--header-background));">
17
+ <oda-button ~if="mobile && left_drawer?.closed" accent-invert no-flex icon="icons:menu" title="Навигация" style="margin: 0 2px; flex-shrink: 0;" @tap="left_drawer.closed = false"></oda-button>
18
+ <oda-tabs id="bookmarksBar" flex variant="rail" allow-close allow-drag
19
+ :hidden="!hasBookmarks"
20
+ :items="bookmarkTabItems" :focused-index="bookmarkFocusedIndex"
21
+ @tab-select="onBookmarkSelect($event)"
22
+ @tab-close="onBookmarkClose($event)"
23
+ @close-others="onBookmarkCloseOthers($event)"
24
+ @close-right="onBookmarkCloseRight($event)"
25
+ @close-all="closeAllBookmarks($event)"
26
+ @reorder="onBookmarksReorder($event)"
27
+ style="min-width: 0;">
28
+ </oda-tabs>
29
+ </div>
27
30
  `,
28
31
  visibleMode: 'main',
29
32
  showSize: false,
@@ -33,7 +36,10 @@ export default {
33
36
  get hasBookmarks() {
34
37
  if (typeof window !== 'undefined' && window !== window.top)
35
38
  return false;
36
- return !this.mobile && Array.isArray(this.bookmarks) && this.bookmarks.length > 0 && this.visibleMode === 'main';
39
+ const ok = Array.isArray(this.bookmarks) && this.bookmarks.length > 0 && this.visibleMode === 'main';
40
+ if (this.left_drawer)
41
+ this.left_drawer.hideBackButton = Boolean(ok && this.mobile);
42
+ return ok;
37
43
  },
38
44
  get bookmarkTabItems() {
39
45
  return (this.bookmarks || []).map(b => ({
@@ -623,6 +629,8 @@ export default {
623
629
  this.pages.add(url);
624
630
  this.visibleMode = 'main';
625
631
  this.focusedPage = url;
632
+ if (this.mobile && this.left_drawer && !this.left_drawer.closed)
633
+ this.left_drawer.closed = true;
626
634
  const bm = this._upsertBookmarkForUrl(url);
627
635
  if (bm?.stateKey || bm?.short)
628
636
  this.syncTreeToPath(bm.stateKey || bm.short);