primitive-app 3.2.0-alpha.2 → 3.2.0-alpha.20
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/components/ui/native-select/NativeSelectOptGroup.vue.d.ts +48 -48
- package/dist/components/ui/native-select/NativeSelectOption.vue.d.ts +50 -50
- package/dist/dev-tools/blob-explorer/blobExplorerTypes.d.ts +11 -2
- package/dist/dev-tools/document-explorer/composables/useOptimisticList.d.ts +3 -3
- package/dist/dev-tools/document-explorer/documentLists.d.ts +72 -0
- package/dist/dev-tools/document-explorer/utils.d.ts +1 -0
- package/dist/dev-tools/vite-plugin/generated-env-resolver-core.d.ts +131 -12
- package/dist/dev-tools/vite-plugin/index.cjs +3 -3
- package/dist/dev-tools/vite-plugin/index.js +173 -105
- package/dist/dev-tools/vite-plugin/primitive-env.d.ts +1 -1
- package/dist/index.cjs +5 -5
- package/dist/index.js +3418 -3402
- package/dist/lib/portal-target.d.ts +14 -0
- package/dist/lib-CZJJRJq3.cjs +1 -0
- package/dist/{lib-B7ZH2Pdd.js → lib-SnRn0TGH.js} +101 -29
- package/dist/primitive-app.css +1 -1
- package/dist/services/JsBaoClientService.d.ts +4 -2
- package/dist/testing/index.cjs +1 -1
- package/dist/testing/index.js +4 -4
- package/package.json +3 -2
- package/src/style.css +185 -2
- package/dist/lib-CFnieS8T.cjs +0 -1
|
@@ -4,24 +4,24 @@ type __VLS_Slots = {} & {
|
|
|
4
4
|
};
|
|
5
5
|
declare const __VLS_base: import("vue").DefineComponent<{
|
|
6
6
|
class?: import("vue").ClassValue | undefined;
|
|
7
|
-
disabled?: (boolean | "
|
|
7
|
+
disabled?: (boolean | "true" | "false") | undefined;
|
|
8
8
|
label?: string | undefined | undefined;
|
|
9
9
|
"data-slot"?: string | undefined;
|
|
10
10
|
innerHTML?: string | undefined | undefined;
|
|
11
11
|
style?: import("vue").StyleValue;
|
|
12
12
|
accesskey?: string | undefined | undefined;
|
|
13
|
-
contenteditable?: "inherit" | (boolean | "
|
|
13
|
+
contenteditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
|
|
14
14
|
contextmenu?: string | undefined | undefined;
|
|
15
15
|
dir?: string | undefined | undefined;
|
|
16
|
-
draggable?: (boolean | "
|
|
16
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
17
17
|
enterkeyhint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
18
18
|
enterKeyHint?: "search" | "done" | "enter" | "go" | "next" | "previous" | "send" | undefined;
|
|
19
|
-
hidden?: "" | "hidden" | (boolean | "
|
|
19
|
+
hidden?: "" | "until-found" | "hidden" | (boolean | "true" | "false") | undefined;
|
|
20
20
|
id?: string | undefined | undefined;
|
|
21
|
-
inert?: (boolean | "
|
|
21
|
+
inert?: (boolean | "true" | "false") | undefined;
|
|
22
22
|
lang?: string | undefined | undefined;
|
|
23
23
|
placeholder?: string | undefined | undefined;
|
|
24
|
-
spellcheck?: (boolean | "
|
|
24
|
+
spellcheck?: (boolean | "true" | "false") | undefined;
|
|
25
25
|
tabindex?: (string | number) | undefined;
|
|
26
26
|
title?: string | undefined | undefined;
|
|
27
27
|
translate?: "yes" | "no" | undefined | undefined;
|
|
@@ -40,7 +40,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
|
|
|
40
40
|
autosave?: string | undefined | undefined;
|
|
41
41
|
color?: string | undefined | undefined;
|
|
42
42
|
itemprop?: string | undefined | undefined;
|
|
43
|
-
itemscope?: (boolean | "
|
|
43
|
+
itemscope?: (boolean | "true" | "false") | undefined;
|
|
44
44
|
itemtype?: string | undefined | undefined;
|
|
45
45
|
itemid?: string | undefined | undefined;
|
|
46
46
|
itemref?: string | undefined | undefined;
|
|
@@ -52,47 +52,47 @@ declare const __VLS_base: import("vue").DefineComponent<{
|
|
|
52
52
|
exportparts?: string | undefined;
|
|
53
53
|
part?: string | undefined;
|
|
54
54
|
'aria-activedescendant'?: string | undefined | undefined;
|
|
55
|
-
'aria-atomic'?: (boolean | "
|
|
55
|
+
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
56
56
|
'aria-autocomplete'?: "none" | "inline" | "list" | "both" | undefined | undefined;
|
|
57
|
-
'aria-busy'?: (boolean | "
|
|
58
|
-
'aria-checked'?: (boolean | "
|
|
57
|
+
'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
58
|
+
'aria-checked'?: (boolean | "true" | "false") | "mixed" | undefined;
|
|
59
59
|
'aria-colcount'?: (string | number) | undefined;
|
|
60
60
|
'aria-colindex'?: (string | number) | undefined;
|
|
61
61
|
'aria-colspan'?: (string | number) | undefined;
|
|
62
62
|
'aria-controls'?: string | undefined | undefined;
|
|
63
|
-
'aria-current'?: "time" | (boolean | "
|
|
63
|
+
'aria-current'?: "time" | (boolean | "true" | "false") | "date" | "page" | "step" | "location" | undefined;
|
|
64
64
|
'aria-describedby'?: string | undefined | undefined;
|
|
65
65
|
'aria-details'?: string | undefined | undefined;
|
|
66
|
-
'aria-disabled'?: (boolean | "
|
|
66
|
+
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
67
67
|
'aria-dropeffect'?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined | undefined;
|
|
68
68
|
'aria-errormessage'?: string | undefined | undefined;
|
|
69
|
-
'aria-expanded'?: (boolean | "
|
|
69
|
+
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
70
70
|
'aria-flowto'?: string | undefined | undefined;
|
|
71
|
-
'aria-grabbed'?: (boolean | "
|
|
72
|
-
'aria-haspopup'?: "dialog" | "menu" | (boolean | "
|
|
73
|
-
'aria-hidden'?: (boolean | "
|
|
74
|
-
'aria-invalid'?: (boolean | "
|
|
71
|
+
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
72
|
+
'aria-haspopup'?: "dialog" | "menu" | (boolean | "true" | "false") | "listbox" | "tree" | "grid" | undefined;
|
|
73
|
+
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
74
|
+
'aria-invalid'?: (boolean | "true" | "false") | "grammar" | "spelling" | undefined;
|
|
75
75
|
'aria-keyshortcuts'?: string | undefined | undefined;
|
|
76
76
|
'aria-label'?: string | undefined | undefined;
|
|
77
77
|
'aria-labelledby'?: string | undefined | undefined;
|
|
78
78
|
'aria-level'?: (string | number) | undefined;
|
|
79
79
|
'aria-live'?: "off" | "assertive" | "polite" | undefined | undefined;
|
|
80
|
-
'aria-modal'?: (boolean | "
|
|
81
|
-
'aria-multiline'?: (boolean | "
|
|
82
|
-
'aria-multiselectable'?: (boolean | "
|
|
80
|
+
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
81
|
+
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
82
|
+
'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
83
83
|
'aria-orientation'?: "horizontal" | "vertical" | undefined | undefined;
|
|
84
84
|
'aria-owns'?: string | undefined | undefined;
|
|
85
85
|
'aria-placeholder'?: string | undefined | undefined;
|
|
86
86
|
'aria-posinset'?: (string | number) | undefined;
|
|
87
|
-
'aria-pressed'?: (boolean | "
|
|
88
|
-
'aria-readonly'?: (boolean | "
|
|
87
|
+
'aria-pressed'?: (boolean | "true" | "false") | "mixed" | undefined;
|
|
88
|
+
'aria-readonly'?: (boolean | "true" | "false") | undefined;
|
|
89
89
|
'aria-relevant'?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | undefined;
|
|
90
|
-
'aria-required'?: (boolean | "
|
|
90
|
+
'aria-required'?: (boolean | "true" | "false") | undefined;
|
|
91
91
|
'aria-roledescription'?: string | undefined | undefined;
|
|
92
92
|
'aria-rowcount'?: (string | number) | undefined;
|
|
93
93
|
'aria-rowindex'?: (string | number) | undefined;
|
|
94
94
|
'aria-rowspan'?: (string | number) | undefined;
|
|
95
|
-
'aria-selected'?: (boolean | "
|
|
95
|
+
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
96
96
|
'aria-setsize'?: (string | number) | undefined;
|
|
97
97
|
'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined | undefined;
|
|
98
98
|
'aria-valuemax'?: (string | number) | undefined;
|
|
@@ -199,24 +199,24 @@ declare const __VLS_base: import("vue").DefineComponent<{
|
|
|
199
199
|
ref_key?: string | undefined | undefined;
|
|
200
200
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
201
201
|
class?: import("vue").ClassValue | undefined;
|
|
202
|
-
disabled?: (boolean | "
|
|
202
|
+
disabled?: (boolean | "true" | "false") | undefined;
|
|
203
203
|
label?: string | undefined | undefined;
|
|
204
204
|
"data-slot"?: string | undefined;
|
|
205
205
|
innerHTML?: string | undefined | undefined;
|
|
206
206
|
style?: import("vue").StyleValue;
|
|
207
207
|
accesskey?: string | undefined | undefined;
|
|
208
|
-
contenteditable?: "inherit" | (boolean | "
|
|
208
|
+
contenteditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
|
|
209
209
|
contextmenu?: string | undefined | undefined;
|
|
210
210
|
dir?: string | undefined | undefined;
|
|
211
|
-
draggable?: (boolean | "
|
|
211
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
212
212
|
enterkeyhint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
213
213
|
enterKeyHint?: "search" | "done" | "enter" | "go" | "next" | "previous" | "send" | undefined;
|
|
214
|
-
hidden?: "" | "hidden" | (boolean | "
|
|
214
|
+
hidden?: "" | "until-found" | "hidden" | (boolean | "true" | "false") | undefined;
|
|
215
215
|
id?: string | undefined | undefined;
|
|
216
|
-
inert?: (boolean | "
|
|
216
|
+
inert?: (boolean | "true" | "false") | undefined;
|
|
217
217
|
lang?: string | undefined | undefined;
|
|
218
218
|
placeholder?: string | undefined | undefined;
|
|
219
|
-
spellcheck?: (boolean | "
|
|
219
|
+
spellcheck?: (boolean | "true" | "false") | undefined;
|
|
220
220
|
tabindex?: (string | number) | undefined;
|
|
221
221
|
title?: string | undefined | undefined;
|
|
222
222
|
translate?: "yes" | "no" | undefined | undefined;
|
|
@@ -235,7 +235,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
|
|
|
235
235
|
autosave?: string | undefined | undefined;
|
|
236
236
|
color?: string | undefined | undefined;
|
|
237
237
|
itemprop?: string | undefined | undefined;
|
|
238
|
-
itemscope?: (boolean | "
|
|
238
|
+
itemscope?: (boolean | "true" | "false") | undefined;
|
|
239
239
|
itemtype?: string | undefined | undefined;
|
|
240
240
|
itemid?: string | undefined | undefined;
|
|
241
241
|
itemref?: string | undefined | undefined;
|
|
@@ -247,47 +247,47 @@ declare const __VLS_base: import("vue").DefineComponent<{
|
|
|
247
247
|
exportparts?: string | undefined;
|
|
248
248
|
part?: string | undefined;
|
|
249
249
|
'aria-activedescendant'?: string | undefined | undefined;
|
|
250
|
-
'aria-atomic'?: (boolean | "
|
|
250
|
+
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
251
251
|
'aria-autocomplete'?: "none" | "inline" | "list" | "both" | undefined | undefined;
|
|
252
|
-
'aria-busy'?: (boolean | "
|
|
253
|
-
'aria-checked'?: (boolean | "
|
|
252
|
+
'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
253
|
+
'aria-checked'?: (boolean | "true" | "false") | "mixed" | undefined;
|
|
254
254
|
'aria-colcount'?: (string | number) | undefined;
|
|
255
255
|
'aria-colindex'?: (string | number) | undefined;
|
|
256
256
|
'aria-colspan'?: (string | number) | undefined;
|
|
257
257
|
'aria-controls'?: string | undefined | undefined;
|
|
258
|
-
'aria-current'?: "time" | (boolean | "
|
|
258
|
+
'aria-current'?: "time" | (boolean | "true" | "false") | "date" | "page" | "step" | "location" | undefined;
|
|
259
259
|
'aria-describedby'?: string | undefined | undefined;
|
|
260
260
|
'aria-details'?: string | undefined | undefined;
|
|
261
|
-
'aria-disabled'?: (boolean | "
|
|
261
|
+
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
262
262
|
'aria-dropeffect'?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined | undefined;
|
|
263
263
|
'aria-errormessage'?: string | undefined | undefined;
|
|
264
|
-
'aria-expanded'?: (boolean | "
|
|
264
|
+
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
265
265
|
'aria-flowto'?: string | undefined | undefined;
|
|
266
|
-
'aria-grabbed'?: (boolean | "
|
|
267
|
-
'aria-haspopup'?: "dialog" | "menu" | (boolean | "
|
|
268
|
-
'aria-hidden'?: (boolean | "
|
|
269
|
-
'aria-invalid'?: (boolean | "
|
|
266
|
+
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
267
|
+
'aria-haspopup'?: "dialog" | "menu" | (boolean | "true" | "false") | "listbox" | "tree" | "grid" | undefined;
|
|
268
|
+
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
269
|
+
'aria-invalid'?: (boolean | "true" | "false") | "grammar" | "spelling" | undefined;
|
|
270
270
|
'aria-keyshortcuts'?: string | undefined | undefined;
|
|
271
271
|
'aria-label'?: string | undefined | undefined;
|
|
272
272
|
'aria-labelledby'?: string | undefined | undefined;
|
|
273
273
|
'aria-level'?: (string | number) | undefined;
|
|
274
274
|
'aria-live'?: "off" | "assertive" | "polite" | undefined | undefined;
|
|
275
|
-
'aria-modal'?: (boolean | "
|
|
276
|
-
'aria-multiline'?: (boolean | "
|
|
277
|
-
'aria-multiselectable'?: (boolean | "
|
|
275
|
+
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
276
|
+
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
277
|
+
'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
278
278
|
'aria-orientation'?: "horizontal" | "vertical" | undefined | undefined;
|
|
279
279
|
'aria-owns'?: string | undefined | undefined;
|
|
280
280
|
'aria-placeholder'?: string | undefined | undefined;
|
|
281
281
|
'aria-posinset'?: (string | number) | undefined;
|
|
282
|
-
'aria-pressed'?: (boolean | "
|
|
283
|
-
'aria-readonly'?: (boolean | "
|
|
282
|
+
'aria-pressed'?: (boolean | "true" | "false") | "mixed" | undefined;
|
|
283
|
+
'aria-readonly'?: (boolean | "true" | "false") | undefined;
|
|
284
284
|
'aria-relevant'?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | undefined;
|
|
285
|
-
'aria-required'?: (boolean | "
|
|
285
|
+
'aria-required'?: (boolean | "true" | "false") | undefined;
|
|
286
286
|
'aria-roledescription'?: string | undefined | undefined;
|
|
287
287
|
'aria-rowcount'?: (string | number) | undefined;
|
|
288
288
|
'aria-rowindex'?: (string | number) | undefined;
|
|
289
289
|
'aria-rowspan'?: (string | number) | undefined;
|
|
290
|
-
'aria-selected'?: (boolean | "
|
|
290
|
+
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
291
291
|
'aria-setsize'?: (string | number) | undefined;
|
|
292
292
|
'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined | undefined;
|
|
293
293
|
'aria-valuemax'?: (string | number) | undefined;
|
|
@@ -4,26 +4,26 @@ type __VLS_Slots = {} & {
|
|
|
4
4
|
};
|
|
5
5
|
declare const __VLS_base: import("vue").DefineComponent<{
|
|
6
6
|
class?: import("vue").ClassValue | undefined;
|
|
7
|
-
disabled?: (boolean | "
|
|
7
|
+
disabled?: (boolean | "true" | "false") | undefined;
|
|
8
8
|
label?: string | undefined | undefined;
|
|
9
|
-
selected?: (boolean | "
|
|
9
|
+
selected?: (boolean | "true" | "false") | undefined;
|
|
10
10
|
value?: any;
|
|
11
11
|
"data-slot"?: string | undefined;
|
|
12
12
|
innerHTML?: string | undefined | undefined;
|
|
13
13
|
style?: import("vue").StyleValue;
|
|
14
14
|
accesskey?: string | undefined | undefined;
|
|
15
|
-
contenteditable?: "inherit" | (boolean | "
|
|
15
|
+
contenteditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
|
|
16
16
|
contextmenu?: string | undefined | undefined;
|
|
17
17
|
dir?: string | undefined | undefined;
|
|
18
|
-
draggable?: (boolean | "
|
|
18
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
19
19
|
enterkeyhint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
20
20
|
enterKeyHint?: "search" | "done" | "enter" | "go" | "next" | "previous" | "send" | undefined;
|
|
21
|
-
hidden?: "" | "hidden" | (boolean | "
|
|
21
|
+
hidden?: "" | "until-found" | "hidden" | (boolean | "true" | "false") | undefined;
|
|
22
22
|
id?: string | undefined | undefined;
|
|
23
|
-
inert?: (boolean | "
|
|
23
|
+
inert?: (boolean | "true" | "false") | undefined;
|
|
24
24
|
lang?: string | undefined | undefined;
|
|
25
25
|
placeholder?: string | undefined | undefined;
|
|
26
|
-
spellcheck?: (boolean | "
|
|
26
|
+
spellcheck?: (boolean | "true" | "false") | undefined;
|
|
27
27
|
tabindex?: (string | number) | undefined;
|
|
28
28
|
title?: string | undefined | undefined;
|
|
29
29
|
translate?: "yes" | "no" | undefined | undefined;
|
|
@@ -42,7 +42,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
|
|
|
42
42
|
autosave?: string | undefined | undefined;
|
|
43
43
|
color?: string | undefined | undefined;
|
|
44
44
|
itemprop?: string | undefined | undefined;
|
|
45
|
-
itemscope?: (boolean | "
|
|
45
|
+
itemscope?: (boolean | "true" | "false") | undefined;
|
|
46
46
|
itemtype?: string | undefined | undefined;
|
|
47
47
|
itemid?: string | undefined | undefined;
|
|
48
48
|
itemref?: string | undefined | undefined;
|
|
@@ -54,47 +54,47 @@ declare const __VLS_base: import("vue").DefineComponent<{
|
|
|
54
54
|
exportparts?: string | undefined;
|
|
55
55
|
part?: string | undefined;
|
|
56
56
|
'aria-activedescendant'?: string | undefined | undefined;
|
|
57
|
-
'aria-atomic'?: (boolean | "
|
|
57
|
+
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
58
58
|
'aria-autocomplete'?: "none" | "inline" | "list" | "both" | undefined | undefined;
|
|
59
|
-
'aria-busy'?: (boolean | "
|
|
60
|
-
'aria-checked'?: (boolean | "
|
|
59
|
+
'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
60
|
+
'aria-checked'?: (boolean | "true" | "false") | "mixed" | undefined;
|
|
61
61
|
'aria-colcount'?: (string | number) | undefined;
|
|
62
62
|
'aria-colindex'?: (string | number) | undefined;
|
|
63
63
|
'aria-colspan'?: (string | number) | undefined;
|
|
64
64
|
'aria-controls'?: string | undefined | undefined;
|
|
65
|
-
'aria-current'?: "time" | (boolean | "
|
|
65
|
+
'aria-current'?: "time" | (boolean | "true" | "false") | "date" | "page" | "step" | "location" | undefined;
|
|
66
66
|
'aria-describedby'?: string | undefined | undefined;
|
|
67
67
|
'aria-details'?: string | undefined | undefined;
|
|
68
|
-
'aria-disabled'?: (boolean | "
|
|
68
|
+
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
69
69
|
'aria-dropeffect'?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined | undefined;
|
|
70
70
|
'aria-errormessage'?: string | undefined | undefined;
|
|
71
|
-
'aria-expanded'?: (boolean | "
|
|
71
|
+
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
72
72
|
'aria-flowto'?: string | undefined | undefined;
|
|
73
|
-
'aria-grabbed'?: (boolean | "
|
|
74
|
-
'aria-haspopup'?: "dialog" | "menu" | (boolean | "
|
|
75
|
-
'aria-hidden'?: (boolean | "
|
|
76
|
-
'aria-invalid'?: (boolean | "
|
|
73
|
+
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
74
|
+
'aria-haspopup'?: "dialog" | "menu" | (boolean | "true" | "false") | "listbox" | "tree" | "grid" | undefined;
|
|
75
|
+
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
76
|
+
'aria-invalid'?: (boolean | "true" | "false") | "grammar" | "spelling" | undefined;
|
|
77
77
|
'aria-keyshortcuts'?: string | undefined | undefined;
|
|
78
78
|
'aria-label'?: string | undefined | undefined;
|
|
79
79
|
'aria-labelledby'?: string | undefined | undefined;
|
|
80
80
|
'aria-level'?: (string | number) | undefined;
|
|
81
81
|
'aria-live'?: "off" | "assertive" | "polite" | undefined | undefined;
|
|
82
|
-
'aria-modal'?: (boolean | "
|
|
83
|
-
'aria-multiline'?: (boolean | "
|
|
84
|
-
'aria-multiselectable'?: (boolean | "
|
|
82
|
+
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
83
|
+
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
84
|
+
'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
85
85
|
'aria-orientation'?: "horizontal" | "vertical" | undefined | undefined;
|
|
86
86
|
'aria-owns'?: string | undefined | undefined;
|
|
87
87
|
'aria-placeholder'?: string | undefined | undefined;
|
|
88
88
|
'aria-posinset'?: (string | number) | undefined;
|
|
89
|
-
'aria-pressed'?: (boolean | "
|
|
90
|
-
'aria-readonly'?: (boolean | "
|
|
89
|
+
'aria-pressed'?: (boolean | "true" | "false") | "mixed" | undefined;
|
|
90
|
+
'aria-readonly'?: (boolean | "true" | "false") | undefined;
|
|
91
91
|
'aria-relevant'?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | undefined;
|
|
92
|
-
'aria-required'?: (boolean | "
|
|
92
|
+
'aria-required'?: (boolean | "true" | "false") | undefined;
|
|
93
93
|
'aria-roledescription'?: string | undefined | undefined;
|
|
94
94
|
'aria-rowcount'?: (string | number) | undefined;
|
|
95
95
|
'aria-rowindex'?: (string | number) | undefined;
|
|
96
96
|
'aria-rowspan'?: (string | number) | undefined;
|
|
97
|
-
'aria-selected'?: (boolean | "
|
|
97
|
+
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
98
98
|
'aria-setsize'?: (string | number) | undefined;
|
|
99
99
|
'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined | undefined;
|
|
100
100
|
'aria-valuemax'?: (string | number) | undefined;
|
|
@@ -201,26 +201,26 @@ declare const __VLS_base: import("vue").DefineComponent<{
|
|
|
201
201
|
ref_key?: string | undefined | undefined;
|
|
202
202
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
203
203
|
class?: import("vue").ClassValue | undefined;
|
|
204
|
-
disabled?: (boolean | "
|
|
204
|
+
disabled?: (boolean | "true" | "false") | undefined;
|
|
205
205
|
label?: string | undefined | undefined;
|
|
206
|
-
selected?: (boolean | "
|
|
206
|
+
selected?: (boolean | "true" | "false") | undefined;
|
|
207
207
|
value?: any;
|
|
208
208
|
"data-slot"?: string | undefined;
|
|
209
209
|
innerHTML?: string | undefined | undefined;
|
|
210
210
|
style?: import("vue").StyleValue;
|
|
211
211
|
accesskey?: string | undefined | undefined;
|
|
212
|
-
contenteditable?: "inherit" | (boolean | "
|
|
212
|
+
contenteditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
|
|
213
213
|
contextmenu?: string | undefined | undefined;
|
|
214
214
|
dir?: string | undefined | undefined;
|
|
215
|
-
draggable?: (boolean | "
|
|
215
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
216
216
|
enterkeyhint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
217
217
|
enterKeyHint?: "search" | "done" | "enter" | "go" | "next" | "previous" | "send" | undefined;
|
|
218
|
-
hidden?: "" | "hidden" | (boolean | "
|
|
218
|
+
hidden?: "" | "until-found" | "hidden" | (boolean | "true" | "false") | undefined;
|
|
219
219
|
id?: string | undefined | undefined;
|
|
220
|
-
inert?: (boolean | "
|
|
220
|
+
inert?: (boolean | "true" | "false") | undefined;
|
|
221
221
|
lang?: string | undefined | undefined;
|
|
222
222
|
placeholder?: string | undefined | undefined;
|
|
223
|
-
spellcheck?: (boolean | "
|
|
223
|
+
spellcheck?: (boolean | "true" | "false") | undefined;
|
|
224
224
|
tabindex?: (string | number) | undefined;
|
|
225
225
|
title?: string | undefined | undefined;
|
|
226
226
|
translate?: "yes" | "no" | undefined | undefined;
|
|
@@ -239,7 +239,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
|
|
|
239
239
|
autosave?: string | undefined | undefined;
|
|
240
240
|
color?: string | undefined | undefined;
|
|
241
241
|
itemprop?: string | undefined | undefined;
|
|
242
|
-
itemscope?: (boolean | "
|
|
242
|
+
itemscope?: (boolean | "true" | "false") | undefined;
|
|
243
243
|
itemtype?: string | undefined | undefined;
|
|
244
244
|
itemid?: string | undefined | undefined;
|
|
245
245
|
itemref?: string | undefined | undefined;
|
|
@@ -251,47 +251,47 @@ declare const __VLS_base: import("vue").DefineComponent<{
|
|
|
251
251
|
exportparts?: string | undefined;
|
|
252
252
|
part?: string | undefined;
|
|
253
253
|
'aria-activedescendant'?: string | undefined | undefined;
|
|
254
|
-
'aria-atomic'?: (boolean | "
|
|
254
|
+
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
255
255
|
'aria-autocomplete'?: "none" | "inline" | "list" | "both" | undefined | undefined;
|
|
256
|
-
'aria-busy'?: (boolean | "
|
|
257
|
-
'aria-checked'?: (boolean | "
|
|
256
|
+
'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
257
|
+
'aria-checked'?: (boolean | "true" | "false") | "mixed" | undefined;
|
|
258
258
|
'aria-colcount'?: (string | number) | undefined;
|
|
259
259
|
'aria-colindex'?: (string | number) | undefined;
|
|
260
260
|
'aria-colspan'?: (string | number) | undefined;
|
|
261
261
|
'aria-controls'?: string | undefined | undefined;
|
|
262
|
-
'aria-current'?: "time" | (boolean | "
|
|
262
|
+
'aria-current'?: "time" | (boolean | "true" | "false") | "date" | "page" | "step" | "location" | undefined;
|
|
263
263
|
'aria-describedby'?: string | undefined | undefined;
|
|
264
264
|
'aria-details'?: string | undefined | undefined;
|
|
265
|
-
'aria-disabled'?: (boolean | "
|
|
265
|
+
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
266
266
|
'aria-dropeffect'?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined | undefined;
|
|
267
267
|
'aria-errormessage'?: string | undefined | undefined;
|
|
268
|
-
'aria-expanded'?: (boolean | "
|
|
268
|
+
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
269
269
|
'aria-flowto'?: string | undefined | undefined;
|
|
270
|
-
'aria-grabbed'?: (boolean | "
|
|
271
|
-
'aria-haspopup'?: "dialog" | "menu" | (boolean | "
|
|
272
|
-
'aria-hidden'?: (boolean | "
|
|
273
|
-
'aria-invalid'?: (boolean | "
|
|
270
|
+
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
271
|
+
'aria-haspopup'?: "dialog" | "menu" | (boolean | "true" | "false") | "listbox" | "tree" | "grid" | undefined;
|
|
272
|
+
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
273
|
+
'aria-invalid'?: (boolean | "true" | "false") | "grammar" | "spelling" | undefined;
|
|
274
274
|
'aria-keyshortcuts'?: string | undefined | undefined;
|
|
275
275
|
'aria-label'?: string | undefined | undefined;
|
|
276
276
|
'aria-labelledby'?: string | undefined | undefined;
|
|
277
277
|
'aria-level'?: (string | number) | undefined;
|
|
278
278
|
'aria-live'?: "off" | "assertive" | "polite" | undefined | undefined;
|
|
279
|
-
'aria-modal'?: (boolean | "
|
|
280
|
-
'aria-multiline'?: (boolean | "
|
|
281
|
-
'aria-multiselectable'?: (boolean | "
|
|
279
|
+
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
280
|
+
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
281
|
+
'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
282
282
|
'aria-orientation'?: "horizontal" | "vertical" | undefined | undefined;
|
|
283
283
|
'aria-owns'?: string | undefined | undefined;
|
|
284
284
|
'aria-placeholder'?: string | undefined | undefined;
|
|
285
285
|
'aria-posinset'?: (string | number) | undefined;
|
|
286
|
-
'aria-pressed'?: (boolean | "
|
|
287
|
-
'aria-readonly'?: (boolean | "
|
|
286
|
+
'aria-pressed'?: (boolean | "true" | "false") | "mixed" | undefined;
|
|
287
|
+
'aria-readonly'?: (boolean | "true" | "false") | undefined;
|
|
288
288
|
'aria-relevant'?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | undefined;
|
|
289
|
-
'aria-required'?: (boolean | "
|
|
289
|
+
'aria-required'?: (boolean | "true" | "false") | undefined;
|
|
290
290
|
'aria-roledescription'?: string | undefined | undefined;
|
|
291
291
|
'aria-rowcount'?: (string | number) | undefined;
|
|
292
292
|
'aria-rowindex'?: (string | number) | undefined;
|
|
293
293
|
'aria-rowspan'?: (string | number) | undefined;
|
|
294
|
-
'aria-selected'?: (boolean | "
|
|
294
|
+
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
295
295
|
'aria-setsize'?: (string | number) | undefined;
|
|
296
296
|
'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined | undefined;
|
|
297
297
|
'aria-valuemax'?: (string | number) | undefined;
|
|
@@ -9,8 +9,17 @@ export interface BlobItem {
|
|
|
9
9
|
uploadedAt?: string | null;
|
|
10
10
|
sha256?: string;
|
|
11
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* A blob as the list and get calls return it. Older servers report the size
|
|
14
|
+
* and upload time as `numBytes` and `createdAt`.
|
|
15
|
+
*/
|
|
16
|
+
export interface RawBlobItem extends BlobItem {
|
|
17
|
+
numBytes?: number | null;
|
|
18
|
+
createdAt?: string | null;
|
|
19
|
+
}
|
|
12
20
|
/** Result from a paginated blob list call */
|
|
13
21
|
export interface BlobListResult {
|
|
14
|
-
items:
|
|
15
|
-
|
|
22
|
+
items: RawBlobItem[];
|
|
23
|
+
hasMore?: boolean;
|
|
24
|
+
nextCursor?: string;
|
|
16
25
|
}
|
|
@@ -14,21 +14,21 @@ export interface OptimisticListActions<T> {
|
|
|
14
14
|
* Optimistically remove item(s) matching `key === value` from the list,
|
|
15
15
|
* execute the async operation, and rollback on failure.
|
|
16
16
|
*/
|
|
17
|
-
optimisticRemove(matchValue: string, operation: () => Promise<void>)
|
|
17
|
+
optimisticRemove: (matchValue: string, operation: () => Promise<void>) => Promise<{
|
|
18
18
|
success: boolean;
|
|
19
19
|
}>;
|
|
20
20
|
/**
|
|
21
21
|
* Optimistically remove multiple items from the list by key values,
|
|
22
22
|
* execute the async operation, and rollback any that failed.
|
|
23
23
|
*/
|
|
24
|
-
optimisticBulkRemove(matchValues: string[], operation: (ids: string[]) => Promise<string[]>)
|
|
24
|
+
optimisticBulkRemove: (matchValues: string[], operation: (ids: string[]) => Promise<string[]>) => Promise<{
|
|
25
25
|
failedIds: string[];
|
|
26
26
|
}>;
|
|
27
27
|
/**
|
|
28
28
|
* Optimistically update a field on an item, execute the async operation,
|
|
29
29
|
* and rollback on failure.
|
|
30
30
|
*/
|
|
31
|
-
optimisticFieldUpdate<K extends keyof T>(matchValue: string, field: K, newValue: T[K], operation: () => Promise<void>)
|
|
31
|
+
optimisticFieldUpdate: <K extends keyof T>(matchValue: string, field: K, newValue: T[K], operation: () => Promise<void>) => Promise<{
|
|
32
32
|
success: boolean;
|
|
33
33
|
}>;
|
|
34
34
|
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import type { DocumentInfo } from "js-bao-wss-client";
|
|
2
|
+
/** Rows requested per page: the server's cap for both lists. */
|
|
3
|
+
export declare const DOCUMENT_LIST_PAGE_SIZE = 100;
|
|
4
|
+
/**
|
|
5
|
+
* Pages read per list before the explorers stop (5,000 rows at the page
|
|
6
|
+
* size), so a dev tool never walks an unbounded history.
|
|
7
|
+
*/
|
|
8
|
+
export declare const DOCUMENT_LIST_MAX_PAGES = 50;
|
|
9
|
+
/** One page of a document list, as the client returns it. */
|
|
10
|
+
interface ListPage {
|
|
11
|
+
items: DocumentInfo[];
|
|
12
|
+
hasMore?: boolean;
|
|
13
|
+
nextCursor?: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* How long after a create (or its commit) a locally known owned document is
|
|
17
|
+
* kept although no server page carries it yet: the window the client's own
|
|
18
|
+
* `me.ownedDocuments()` bridges while `GET /me/owned-documents` catches up
|
|
19
|
+
* with a just-created document (#1953).
|
|
20
|
+
*/
|
|
21
|
+
export declare const RECENT_CREATE_MERGE_WINDOW_MS = 60000;
|
|
22
|
+
/**
|
|
23
|
+
* The slice of the client the dev-tools document listings read: the caller's
|
|
24
|
+
* owned and shared documents.
|
|
25
|
+
*/
|
|
26
|
+
export interface DocumentListsClient {
|
|
27
|
+
makeRequest(method: "GET", path: string): Promise<unknown>;
|
|
28
|
+
me: {
|
|
29
|
+
ownedDocuments(options: {
|
|
30
|
+
includeRoot?: boolean;
|
|
31
|
+
localOnly?: boolean;
|
|
32
|
+
refreshFromServer?: boolean;
|
|
33
|
+
}): Promise<DocumentInfo[]>;
|
|
34
|
+
sharedDocuments(options?: {
|
|
35
|
+
cursor?: string;
|
|
36
|
+
limit?: number;
|
|
37
|
+
}): Promise<ListPage>;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* How a listing pages: rows per page and pages per list. The defaults are
|
|
42
|
+
* `DOCUMENT_LIST_PAGE_SIZE` and `DOCUMENT_LIST_MAX_PAGES`.
|
|
43
|
+
*/
|
|
44
|
+
export interface DocumentListPaging {
|
|
45
|
+
pageSize?: number;
|
|
46
|
+
maxPages?: number;
|
|
47
|
+
}
|
|
48
|
+
/** The caller's owned documents (root included) and shared documents. */
|
|
49
|
+
export interface DocumentLists {
|
|
50
|
+
owned: DocumentInfo[];
|
|
51
|
+
shared: DocumentInfo[];
|
|
52
|
+
/** False when either list stopped at `DOCUMENT_LIST_MAX_PAGES`. */
|
|
53
|
+
complete: boolean;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Load the caller's owned documents (root included), every page up to
|
|
57
|
+
* `DOCUMENT_LIST_MAX_PAGES`, plus the locally cached owned rows the server
|
|
58
|
+
* pages do not carry yet, as `me.ownedDocuments()` merges them: those with
|
|
59
|
+
* local data (a pending create) and those created or committed within
|
|
60
|
+
* `RECENT_CREATE_MERGE_WINDOW_MS` (a committed create the listing index has
|
|
61
|
+
* not caught up with).
|
|
62
|
+
*/
|
|
63
|
+
export declare function loadOwnedDocuments(client: DocumentListsClient, { pageSize, maxPages, }?: DocumentListPaging): Promise<{
|
|
64
|
+
owned: DocumentInfo[];
|
|
65
|
+
complete: boolean;
|
|
66
|
+
}>;
|
|
67
|
+
/**
|
|
68
|
+
* Load the owned and shared lists the Document and Blob explorers show,
|
|
69
|
+
* every page of each up to `DOCUMENT_LIST_MAX_PAGES` (or `paging.maxPages`).
|
|
70
|
+
*/
|
|
71
|
+
export declare function loadDocumentLists(client: DocumentListsClient, paging?: DocumentListPaging): Promise<DocumentLists>;
|
|
72
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { FieldSchemaInfo, FilterMode, ModelFilter, ModelInfo, SortDirection, SortField } from "./types";
|
|
2
2
|
export declare function safeJsonStringify(value: unknown, indent?: number): string;
|
|
3
|
+
export declare function toDisplayString(value: unknown): string;
|
|
3
4
|
export declare function fuzzyMatch(text: string, query: string): boolean;
|
|
4
5
|
export declare function filterModeHasValue(mode: FilterMode): boolean;
|
|
5
6
|
export declare function applyFilterToRecord(record: Record<string, unknown>, filter: ModelFilter): boolean;
|