@fiduswriter/frontend 0.1.68 → 0.1.70

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 (73) hide show
  1. package/css/two_factor.css +0 -52
  2. package/css/user_template_manager.css +6 -0
  3. package/dist/css/bibliography/colors.css +0 -4
  4. package/dist/css/bibliography/forms.css +3 -61
  5. package/dist/css/document-template-editor/document_template_designer.css +68 -68
  6. package/dist/css/fwtoolkit/action_chooser_dialog.css +66 -0
  7. package/dist/css/fwtoolkit/action_toolbar.css +132 -0
  8. package/dist/css/fwtoolkit/alerts.css +53 -19
  9. package/dist/css/fwtoolkit/application_menu_controller.css +28 -0
  10. package/dist/css/fwtoolkit/attachment_field.css +19 -0
  11. package/dist/css/fwtoolkit/attachment_list.css +118 -0
  12. package/dist/css/fwtoolkit/avatar_label.css +80 -0
  13. package/dist/css/fwtoolkit/boolean_switch.css +128 -0
  14. package/dist/css/fwtoolkit/buttons.css +181 -85
  15. package/dist/css/fwtoolkit/category_filter_controller.css +11 -0
  16. package/dist/css/fwtoolkit/checkable_list.css +39 -6
  17. package/dist/css/fwtoolkit/colors.css +71 -69
  18. package/dist/css/fwtoolkit/common.css +49 -17
  19. package/dist/css/fwtoolkit/content_menu.css +49 -27
  20. package/dist/css/fwtoolkit/data_table.css +278 -41
  21. package/dist/css/fwtoolkit/datatable_bulk.css +106 -0
  22. package/dist/css/fwtoolkit/destination_settings_form.css +67 -0
  23. package/dist/css/fwtoolkit/dialog.css +100 -25
  24. package/dist/css/fwtoolkit/dialog_presets.css +157 -0
  25. package/dist/css/fwtoolkit/dialog_table.css +63 -26
  26. package/dist/css/fwtoolkit/directory_navigator.css +244 -0
  27. package/dist/css/fwtoolkit/drop_up.css +36 -24
  28. package/dist/css/fwtoolkit/faq_dialog.css +28 -4
  29. package/dist/css/fwtoolkit/file_input_field.css +150 -0
  30. package/dist/css/fwtoolkit/file_selector.css +265 -12
  31. package/dist/css/fwtoolkit/form_error_summary.css +53 -0
  32. package/dist/css/fwtoolkit/forms.css +261 -54
  33. package/dist/css/fwtoolkit/fwtoolkit.css +6618 -1522
  34. package/dist/css/fwtoolkit/grid_size_picker.css +119 -0
  35. package/dist/css/fwtoolkit/icon_button_group.css +110 -0
  36. package/dist/css/fwtoolkit/image_preview_field.css +156 -0
  37. package/dist/css/fwtoolkit/inline_status.css +69 -0
  38. package/dist/css/fwtoolkit/inline_tools.css +47 -16
  39. package/dist/css/fwtoolkit/input_list.css +33 -2
  40. package/dist/css/fwtoolkit/loader.css +12 -2
  41. package/dist/css/fwtoolkit/media_card_grid.css +251 -0
  42. package/dist/css/fwtoolkit/navigation_drawer.css +172 -0
  43. package/dist/css/fwtoolkit/one_time_code_field.css +135 -0
  44. package/dist/css/fwtoolkit/overflow_action_bar.css +28 -0
  45. package/dist/css/fwtoolkit/overview_menu.css +35 -27
  46. package/dist/css/fwtoolkit/permission_badge.css +121 -0
  47. package/dist/css/fwtoolkit/progress_task.css +51 -27
  48. package/dist/css/fwtoolkit/pulldown.css +50 -22
  49. package/dist/css/fwtoolkit/pulldown_menu.css +22 -11
  50. package/dist/css/fwtoolkit/remote_options_field.css +297 -0
  51. package/dist/css/fwtoolkit/reset.css +4 -3
  52. package/dist/css/fwtoolkit/resource_field.css +134 -0
  53. package/dist/css/fwtoolkit/sortable_list.css +160 -0
  54. package/dist/css/fwtoolkit/text.css +54 -15
  55. package/dist/css/fwtoolkit/token_input.css +189 -0
  56. package/dist/css/fwtoolkit/tokens.css +158 -0
  57. package/dist/css/fwtoolkit/tree_view.css +165 -0
  58. package/dist/css/fwtoolkit/two_pane_selector.css +150 -9
  59. package/dist/css/fwtoolkit/ui_tabs.css +41 -13
  60. package/dist/css/image-manager/dialog_usermedia.css +41 -41
  61. package/dist/css/manifest.json +29 -0
  62. package/dist/css/two_factor.css +0 -52
  63. package/dist/css/user_template_manager.css +6 -0
  64. package/dist/document_templates/editor.d.ts +3 -0
  65. package/dist/document_templates/editor.d.ts.map +1 -1
  66. package/dist/document_templates/editor.js +35 -18
  67. package/dist/document_templates/editor.js.map +1 -1
  68. package/dist/user/auth/two_factor.d.ts.map +1 -1
  69. package/dist/user/auth/two_factor.js +133 -157
  70. package/dist/user/auth/two_factor.js.map +1 -1
  71. package/package.json +9 -9
  72. package/src/document_templates/editor.ts +41 -21
  73. package/src/user/auth/two_factor.ts +203 -228
@@ -1,25 +1,278 @@
1
+ /*
2
+ * macOS-Finder-style column browser for the file selector.
3
+ *
4
+ * Layout: a breadcrumb `nav` above a horizontally scrollable strip of
5
+ * columns. Every folder along the open path owns one column; the strip
6
+ * scrolls to reveal columns to the right as the user descends.
7
+ */
8
+
1
9
  .fw-file-selector {
2
- line-height: 1.2em;
3
- padding: 10px 10px 10px 20px;
10
+ --fw-column-width: 260px;
11
+ /* Bounded by the dialog content box; can be overridden by hosts. */
12
+ --fw-file-columns-height: max(320px, calc(100vh - 420px));
13
+
14
+ display: flex;
15
+ flex-direction: column;
16
+ gap: var(--fw-space-2);
17
+ font-family: var(--fw-font-sans);
18
+ font-size: var(--fw-font-size-base);
19
+ line-height: var(--fw-line-height-base);
20
+ color: var(--fw-text-primary);
4
21
  }
5
22
 
6
- .fw-file-selector p.fw-file {
7
- text-indent: -10px;
23
+ /* -------------------------------------------------------------------------
24
+ * Breadcrumb
25
+ * ---------------------------------------------------------------------- */
26
+ .fw-file-selector-breadcrumb {
27
+ display: flex;
28
+ flex-wrap: wrap;
29
+ align-items: center;
30
+ gap: var(--fw-space-1);
31
+ padding: 0 var(--fw-space-1);
32
+ min-height: 32px;
8
33
  }
9
34
 
10
- .fw-file-selector .fa-plus-square,
11
- .fw-file-selector .fa-minus-square {
12
- margin-left: -16px;
35
+ .fw-file-selector-crumb {
36
+ display: inline-flex;
37
+ align-items: center;
38
+ gap: 6px;
39
+ max-width: 220px;
40
+ padding: 6px 12px;
41
+ border: 0;
42
+ border-radius: var(--fw-radius-pill);
43
+ background: none;
44
+ color: var(--fw-accent);
45
+ font: inherit;
46
+ cursor: pointer;
47
+ overflow: hidden;
48
+ text-overflow: ellipsis;
49
+ white-space: nowrap;
13
50
  }
14
51
 
15
- .fw-file-selector .fa-plus-square,
16
- .fw-file-selector .fa-minus-square,
17
- .fw-file-selector .fw-file-name,
18
- .fw-file-selector .fw-folder-name {
52
+ .fw-file-selector-crumb > span {
53
+ overflow: hidden;
54
+ text-overflow: ellipsis;
55
+ }
56
+
57
+ .fw-file-selector-crumb:hover {
58
+ background-color: var(--fw-surface-2);
59
+ }
60
+
61
+ .fw-file-selector-crumb:focus {
62
+ outline: none;
63
+ }
64
+
65
+ .fw-file-selector-crumb:focus-visible {
66
+ outline: 2px solid var(--fw-focus);
67
+ outline-offset: 2px;
68
+ }
69
+
70
+ .fw-file-selector-crumb.fw-current {
71
+ color: var(--fw-text-primary);
72
+ font-weight: var(--fw-font-weight-medium);
73
+ cursor: default;
74
+ }
75
+
76
+ .fw-file-selector-crumb-sep {
77
+ color: var(--fw-text-secondary);
78
+ user-select: none;
79
+ }
80
+
81
+ /* -------------------------------------------------------------------------
82
+ * Column strip
83
+ * ---------------------------------------------------------------------- */
84
+ .fw-file-selector-columns {
85
+ display: flex;
86
+ align-items: stretch;
87
+ gap: 1px;
88
+ height: var(--fw-file-columns-height);
89
+ min-height: 240px;
90
+ max-height: var(--fw-file-columns-height);
91
+ overflow: auto hidden;
92
+ border: 1px solid var(--fw-border-subtle);
93
+ border-radius: var(--fw-radius-md);
94
+ background-color: var(--fw-surface);
95
+ scroll-behavior: smooth;
96
+ overscroll-behavior-x: contain;
97
+ }
98
+
99
+ .fw-file-selector-column {
100
+ flex: 0 0 var(--fw-column-width);
101
+ width: var(--fw-column-width);
102
+ min-width: var(--fw-column-width);
103
+ max-height: 100%;
104
+ overflow-y: auto;
105
+ border-right: 1px solid var(--fw-border-subtle);
106
+ background-color: var(--fw-surface);
107
+ }
108
+
109
+ .fw-file-selector-column:last-child {
110
+ border-right: 0;
111
+ }
112
+
113
+ .fw-file-selector-column.fw-closed {
114
+ display: none;
115
+ }
116
+
117
+ .fw-file-selector-column .fw-folder-content {
118
+ list-style: none;
119
+ margin: 0;
120
+ padding: var(--fw-space-1) 0;
121
+ }
122
+
123
+ /* -------------------------------------------------------------------------
124
+ * Rows
125
+ * ---------------------------------------------------------------------- */
126
+ .fw-file-selector-row {
127
+ display: flex;
128
+ align-items: center;
129
+ gap: var(--fw-space-2);
130
+ box-sizing: border-box;
131
+ min-height: var(--fw-hit-area);
132
+ margin: 0 var(--fw-space-1);
133
+ padding: 0 var(--fw-space-3);
134
+ border-radius: var(--fw-radius-md);
135
+ color: var(--fw-text-primary);
19
136
  cursor: pointer;
137
+ user-select: none;
138
+ transition: background-color var(--fw-motion-fast) var(--fw-motion-ease);
139
+ }
140
+
141
+ .fw-file-selector-row:hover {
142
+ background-color: var(--fw-surface-2);
143
+ }
144
+
145
+ /* Keyboard cursor (roving tabindex). */
146
+ .fw-file-selector-row.fw-active {
147
+ background-color: var(--fw-surface-2);
148
+ }
149
+
150
+ .fw-file-selector-row.fw-active:focus {
151
+ outline: none;
20
152
  }
21
153
 
154
+ .fw-file-selector-row:focus-visible,
155
+ .fw-file-selector-row.fw-active:focus-visible {
156
+ outline: 2px solid var(--fw-focus);
157
+ outline-offset: -2px;
158
+ }
159
+
160
+ /* Selected entry: brand green as a 10% tint, never as text. */
161
+ .fw-file-selector-row.fw-selected,
162
+ .fw-file-selector-row.fw-selected.fw-active {
163
+ background-color: var(--fw-brand-tint-3);
164
+ color: var(--fw-text-on-brand);
165
+ font-weight: var(--fw-font-weight-medium);
166
+ }
167
+
168
+ .fw-file-selector-row.fw-selected:focus-visible {
169
+ outline: 2px solid var(--fw-focus);
170
+ outline-offset: -2px;
171
+ }
172
+
173
+ .fw-file-selector-row-icon {
174
+ display: inline-flex;
175
+ align-items: center;
176
+ justify-content: center;
177
+ flex: 0 0 auto;
178
+ width: 20px;
179
+ color: var(--fw-text-primary);
180
+ }
181
+
182
+ .fw-file-selector-row.fw-folder-row .fw-file-selector-row-icon {
183
+ color: var(--fw-brand-active);
184
+ }
185
+
186
+ .fw-file-selector-row .fw-folder-name,
187
+ .fw-file-selector-row .fw-file-name {
188
+ flex: 1 1 auto;
189
+ min-width: 0;
190
+ overflow: hidden;
191
+ text-overflow: ellipsis;
192
+ white-space: nowrap;
193
+ }
194
+
195
+ /* The historical selected-underline is replaced by the tinted row. */
22
196
  .fw-file-selector .fw-file-name.fw-selected,
23
197
  .fw-file-selector .fw-folder-name.fw-selected {
24
- text-decoration: underline;
198
+ text-decoration: none;
199
+ }
200
+
201
+ .fw-file-selector-row-chevron {
202
+ flex: 0 0 auto;
203
+ margin-left: auto;
204
+ padding-left: var(--fw-space-1);
205
+ color: var(--fw-text-secondary);
206
+ font-size: var(--fw-font-size-sm);
207
+ }
208
+
209
+ .fw-file-selector-empty {
210
+ padding: var(--fw-space-3);
211
+ color: var(--fw-text-secondary);
212
+ font-size: var(--fw-font-size-sm);
213
+ font-style: italic;
214
+ list-style: none;
215
+ }
216
+
217
+ /* -------------------------------------------------------------------------
218
+ * Legacy hooks
219
+ *
220
+ * Older hosts/tests reference `i.fa-plus-square` to expand a folder and
221
+ * `.fw-folder-content .fw-folder-name` to find a folder. The column view
222
+ * exposes the expand affordance through the chevron and keeps the name
223
+ * classes; `p.fw-file`/`div.fw-folder` selectors are no longer produced but
224
+ * their class names are still tolerated for styling continuity.
225
+ * ---------------------------------------------------------------------- */
226
+ .fw-file-selector .fa-plus-square,
227
+ .fw-file-selector .fa-minus-square,
228
+ .fw-file-selector .fw-file-selector-row {
229
+ cursor: pointer;
230
+ }
231
+
232
+ @media (prefers-reduced-motion: reduce) {
233
+ .fw-file-selector-columns {
234
+ scroll-behavior: auto;
235
+ }
236
+
237
+ .fw-file-selector-row {
238
+ transition: none;
239
+ }
240
+ }
241
+
242
+ @media (width <= 700px) {
243
+ .fw-file-selector {
244
+ --fw-column-width: 220px;
245
+ }
246
+
247
+ /* On narrow screens one column at a time fits best. */
248
+ .fw-file-selector {
249
+ --fw-file-columns-height: 50vh;
250
+ }
251
+ }
252
+
253
+ /* -------------------------------------------------------------------------
254
+ * Move dialog (FileDialog) layout
255
+ * ---------------------------------------------------------------------- */
256
+ .fw-file-dialog {
257
+ display: flex;
258
+ flex-direction: column;
259
+ gap: var(--fw-space-3);
260
+ }
261
+
262
+ .fw-file-dialog-path {
263
+ display: flex;
264
+ align-items: center;
265
+ gap: var(--fw-space-3);
266
+ }
267
+
268
+ .fw-file-dialog-path label {
269
+ flex: 0 0 auto;
270
+ font-size: var(--fw-font-size-sm);
271
+ font-weight: var(--fw-font-weight-medium);
272
+ color: var(--fw-text-muted);
273
+ }
274
+
275
+ .fw-file-dialog-path input {
276
+ flex: 1 1 auto;
277
+ margin: 0;
25
278
  }
@@ -0,0 +1,53 @@
1
+ .fw-form-error-summary {
2
+ box-sizing: border-box;
3
+ min-width: 0;
4
+ margin-top: 16px;
5
+ }
6
+
7
+ .fw-form-error-summary[hidden] {
8
+ display: none;
9
+ }
10
+
11
+ .fw-form-error-summary .fw-inline-status {
12
+ width: 100%;
13
+ }
14
+
15
+ .fw-form-error-list {
16
+ display: grid;
17
+ gap: 2px;
18
+ margin: 8px 0 0;
19
+ padding: 0;
20
+ list-style: none;
21
+ }
22
+
23
+ .fw-form-error-list li {
24
+ min-width: 0;
25
+ overflow-wrap: anywhere;
26
+ }
27
+
28
+ .fw-form-error-list a {
29
+ display: inline-flex;
30
+ align-items: center;
31
+ box-sizing: border-box;
32
+ min-height: var(--fw-hit-area, 44px);
33
+ max-width: 100%;
34
+ padding: 8px 4px;
35
+ color: var(--fw-danger-text, #c22c00);
36
+ font-weight: var(--fw-font-weight-medium, 500);
37
+ text-decoration: underline;
38
+ text-underline-offset: 3px;
39
+ }
40
+
41
+ .fw-form-error-list a:hover {
42
+ text-decoration-thickness: 2px;
43
+ }
44
+
45
+ .fw-form-error-list a:focus-visible {
46
+ outline: 2px solid var(--fw-focus, #1b57ff);
47
+ outline-offset: 2px;
48
+ border-radius: var(--fw-radius-sm, 4px);
49
+ }
50
+
51
+ :where([data-theme="dark"], [data-color-scheme="dark"]) .fw-form-error-list a {
52
+ color: #ff9b7d;
53
+ }