@laserfiche/types-lf-ui-components 12.0.0--preview-2302340779
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/LICENSE +21 -0
- package/README.md +6 -0
- package/index.d.ts +875 -0
- package/index.js +48 -0
- package/laserfiche-types-lf-ui-components-1.0.0.tgz +0 -0
- package/package.json +12 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 Laserfiche
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# @laserfiche/type-lf-ui-components
|
|
2
|
+
|
|
3
|
+
This is the type NPM package that contains the declaration files for lf-prefixed elements.
|
|
4
|
+
|
|
5
|
+
Read more about this package [here](https://v-dev-tfs/DefaultCollection/Integrations/_wiki/wikis/Integrations.wiki/21474/Type-NPM-Package-and-Usage).
|
|
6
|
+
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,875 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
export declare interface AbortedLoginError {
|
|
37
|
+
ErrorType: string;
|
|
38
|
+
ErrorMessage: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export declare interface AccountEndpoints {
|
|
42
|
+
webClientUrl: string;
|
|
43
|
+
wsignoutUrl: string;
|
|
44
|
+
repositoryApiBaseUrl: string;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
declare interface AdhocFieldInfo extends LfFieldInfo {
|
|
48
|
+
inTemplateSelected?: boolean;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export declare interface AuthorizationCredentials {
|
|
52
|
+
accessToken: string;
|
|
53
|
+
refreshToken: string;
|
|
54
|
+
expiresIn: string;
|
|
55
|
+
tokenType: string;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export declare interface Checklist {
|
|
59
|
+
name: string;
|
|
60
|
+
checklistItems: ChecklistItem[];
|
|
61
|
+
checklistOptions: ChecklistOption[];
|
|
62
|
+
collapsible?: boolean;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export declare interface ChecklistItem {
|
|
66
|
+
icon: string | string[];
|
|
67
|
+
name: string;
|
|
68
|
+
id: string;
|
|
69
|
+
checked: boolean;
|
|
70
|
+
disabled: boolean;
|
|
71
|
+
editable: boolean;
|
|
72
|
+
constraint?: string;
|
|
73
|
+
constraintError?: string;
|
|
74
|
+
isRequired?: boolean;
|
|
75
|
+
requiredError?: string;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export declare interface ChecklistOption {
|
|
79
|
+
name: string;
|
|
80
|
+
checked: boolean;
|
|
81
|
+
disabled: boolean;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/** FieldFormat copied from Web Access */
|
|
85
|
+
declare enum FieldFormat {
|
|
86
|
+
None = "None",
|
|
87
|
+
ShortDate = "ShortDate",
|
|
88
|
+
LongDate = "LongDate",
|
|
89
|
+
ShortDateTime = "ShortDateTime",
|
|
90
|
+
LongDateTime = "LongDateTime",
|
|
91
|
+
ShortTime = "ShortTime",
|
|
92
|
+
LongTime = "LongTime",
|
|
93
|
+
GeneralNumber = "GeneralNumber",
|
|
94
|
+
Currency = "Currency",
|
|
95
|
+
Percent = "Percent",
|
|
96
|
+
Scientific = "Scientific",
|
|
97
|
+
Custom = "Custom"
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
declare enum FieldType {
|
|
101
|
+
DateTime = "DateTime",
|
|
102
|
+
Blob = "Blob",
|
|
103
|
+
Date = "Date",
|
|
104
|
+
ShortInteger = "ShortInteger",
|
|
105
|
+
LongInteger = "LongInteger",
|
|
106
|
+
List = "List",
|
|
107
|
+
Number = "Number",
|
|
108
|
+
String = "String",
|
|
109
|
+
Time = "Time"
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
declare interface FieldValue {
|
|
113
|
+
fieldId: number;
|
|
114
|
+
fieldName?: string | null;
|
|
115
|
+
values?: Array<{
|
|
116
|
+
[key: string]: string;
|
|
117
|
+
}> | null;
|
|
118
|
+
fieldType?: FieldType;
|
|
119
|
+
groupId?: number | null;
|
|
120
|
+
flags?: number | null;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
declare interface FieldValues {
|
|
124
|
+
[fieldId: number]: FieldValue;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
declare abstract class FlatTreeDirective {
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
ok_button_text: string | undefined;
|
|
133
|
+
cancel_button_text: string | undefined;
|
|
134
|
+
ok_button_disabled: boolean;
|
|
135
|
+
filter_text: string | undefined;
|
|
136
|
+
get breadcrumbs(): TreeNode[];
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Contains required and custom properties to be tracked.
|
|
178
|
+
* Custom properties are snake_case because camelCase and PascalCase are not respected when sending to tracking service
|
|
179
|
+
*/
|
|
180
|
+
declare interface IUserTrackingEvent {
|
|
181
|
+
/**
|
|
182
|
+
* required property by Product Intelligence
|
|
183
|
+
*/
|
|
184
|
+
eventName: UserFeedbackTrackingEventType;
|
|
185
|
+
/**
|
|
186
|
+
* required property by Product Intelligence
|
|
187
|
+
*/
|
|
188
|
+
module: string;
|
|
189
|
+
/**
|
|
190
|
+
* required property by Product Intelligence
|
|
191
|
+
*/
|
|
192
|
+
accountId: string;
|
|
193
|
+
/**
|
|
194
|
+
* required property by Product Intelligence
|
|
195
|
+
*/
|
|
196
|
+
userId: string;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export declare class LfBreadcrumbsComponent {
|
|
200
|
+
breadcrumbs: TreeNode[];
|
|
201
|
+
breadcrumbSelected: CustomEvent<TreeNode | undefined>;
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export declare class LfChecklistComponent {
|
|
207
|
+
|
|
208
|
+
action_button_text: string | undefined;
|
|
209
|
+
cancel_button_text: string | undefined;
|
|
210
|
+
checklistChanged: CustomEvent<Checklist[]>;
|
|
211
|
+
actionClick: CustomEvent<Checklist[]>;
|
|
212
|
+
cancelClick: CustomEvent<Checklist[]>;
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
initAsync: (providers: LfChecklistProviders) => Promise<void>;
|
|
217
|
+
forceValidation: () => boolean;
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
export declare class LfChecklistModule {
|
|
224
|
+
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
export declare interface LfChecklistProviders {
|
|
228
|
+
checklistService: LfChecklistService;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
export declare interface LfChecklistService {
|
|
232
|
+
loadChecklistsAsync(): Promise<Checklist[]>;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
declare interface LfColor {
|
|
236
|
+
a: number;
|
|
237
|
+
r: number;
|
|
238
|
+
g: number;
|
|
239
|
+
b: number;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
export declare class LfFieldAdhocContainerComponent extends LfFieldContainerDirective {
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
dialogOpened: CustomEvent<void>;
|
|
251
|
+
dialogClosed: CustomEvent<void>;
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
getFieldValues: () => {
|
|
263
|
+
[fieldName: string]: FieldValue;
|
|
264
|
+
};
|
|
265
|
+
clearAsync: () => Promise<void>;
|
|
266
|
+
initAsync: (adhocFieldContainerService: LfFieldAdhocContainerService) => Promise<void>;
|
|
267
|
+
resetFieldDataAsync: (fields: {
|
|
268
|
+
value: FieldValue;
|
|
269
|
+
definition: LfFieldInfo;
|
|
270
|
+
}[]) => Promise<void>;
|
|
271
|
+
updateFieldValuesAsync: (values: FieldValue[]) => Promise<void>;
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
export declare interface LfFieldAdhocContainerService {
|
|
294
|
+
getAllFieldDefinitionsAsync(): Promise<LfFieldInfo[]>;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
declare class LfFieldComponent {
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
export declare class LfFieldContainerComponent {
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
collapsible: boolean;
|
|
325
|
+
start_collapsed: boolean;
|
|
326
|
+
fieldValuesChanged: CustomEvent<boolean>;
|
|
327
|
+
templateSelectedChanged: CustomEvent<number>;
|
|
328
|
+
dialogOpened: CustomEvent<void>;
|
|
329
|
+
dialogClosed: CustomEvent<void>;
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
initAsync: (lfFieldContainerService: LfFieldContainerService, templateIdentifier?: string | number | undefined) => Promise<void>;
|
|
340
|
+
forceValidation: () => boolean;
|
|
341
|
+
clearAsync: () => Promise<void>;
|
|
342
|
+
getFieldValues: () => {
|
|
343
|
+
[fieldName: string]: FieldValue;
|
|
344
|
+
};
|
|
345
|
+
getNumAdhocFields: () => number;
|
|
346
|
+
resetFieldDataAsync: (fields: {
|
|
347
|
+
value: FieldValue;
|
|
348
|
+
definition: LfFieldInfo;
|
|
349
|
+
}[]) => Promise<void>;
|
|
350
|
+
updateFieldValuesAsync: (values: FieldValue[]) => Promise<void>;
|
|
351
|
+
getTemplateValue: () => TemplateValue | undefined;
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
declare abstract class LfFieldContainerDirective {
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
fieldValuesChanged: CustomEvent<boolean>;
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
forceValidation: () => boolean;
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
export declare interface LfFieldContainerService extends LfFieldAdhocContainerService, LfFieldTemplateContainerService {
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
declare class LfFieldGroupComponent {
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
declare interface LfFieldInfo {
|
|
423
|
+
name: string;
|
|
424
|
+
id: number;
|
|
425
|
+
description?: string | null;
|
|
426
|
+
fieldType: FieldType;
|
|
427
|
+
length?: number;
|
|
428
|
+
defaultValue?: string | null;
|
|
429
|
+
isMultiValue?: boolean;
|
|
430
|
+
isRequired?: boolean;
|
|
431
|
+
constraint?: string | null;
|
|
432
|
+
constraintError?: string | null;
|
|
433
|
+
listValues?: Array<string> | null;
|
|
434
|
+
format?: FieldFormat;
|
|
435
|
+
currency?: string | null;
|
|
436
|
+
formatPattern?: string | null;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
declare class LfFieldMultivalueComponent {
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+
|
|
459
|
+
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
export declare class LfFieldTemplateContainerComponent extends LfFieldContainerDirective {
|
|
471
|
+
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
|
|
475
|
+
templateSelectedChange: CustomEvent<number>;
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
|
|
479
|
+
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+
|
|
483
|
+
|
|
484
|
+
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
|
|
491
|
+
initAsync: (providers: LfFieldTemplateProviders, templateIdentifier?: string | number | undefined) => Promise<void>;
|
|
492
|
+
clearAsync: () => Promise<void>;
|
|
493
|
+
getTemplateValue: () => TemplateValue | undefined;
|
|
494
|
+
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
|
|
499
|
+
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
|
|
504
|
+
|
|
505
|
+
|
|
506
|
+
|
|
507
|
+
|
|
508
|
+
|
|
509
|
+
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
|
|
513
|
+
|
|
514
|
+
|
|
515
|
+
|
|
516
|
+
|
|
517
|
+
|
|
518
|
+
|
|
519
|
+
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
export declare interface LfFieldTemplateContainerService {
|
|
523
|
+
getAvailableTemplatesAsync(): Promise<TemplateInfo[]>;
|
|
524
|
+
getTemplateFieldsAsync(templateIdentifier: number | string): Promise<TemplateFieldInfo[]>;
|
|
525
|
+
getTemplateDefinitionAsync(templateIdentifier: string | number): Promise<TemplateInfo | undefined>;
|
|
526
|
+
getDynamicFieldValueOptionsAsync(templateId: number, currentValues: FieldValues): Promise<{
|
|
527
|
+
[fieldId: number]: string[];
|
|
528
|
+
}>;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
export declare interface LfFieldTemplateProviders {
|
|
532
|
+
templateFieldContainerService: LfFieldTemplateContainerService;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
declare type LfFieldValue = string;
|
|
536
|
+
|
|
537
|
+
export declare class LfFileExplorerComponent extends FlatTreeDirective {
|
|
538
|
+
|
|
539
|
+
|
|
540
|
+
|
|
541
|
+
|
|
542
|
+
selected_nodes: TreeNode[] | undefined;
|
|
543
|
+
multiple: boolean;
|
|
544
|
+
okClick: CustomEvent<TreeNode[] | undefined>;
|
|
545
|
+
cancelClick: CustomEvent<TreeNode[] | undefined>;
|
|
546
|
+
nodeSelected: CustomEvent<TreeNode[] | undefined>;
|
|
547
|
+
|
|
548
|
+
|
|
549
|
+
/**
|
|
550
|
+
* function to initialize the lf-file-explorer component
|
|
551
|
+
* @param providers LfTreeProviders service
|
|
552
|
+
* @param selectedNode the id of the node to select, or a TreeNode[] starting from the selected node to the root node
|
|
553
|
+
*/
|
|
554
|
+
initAsync: (providers: LfTreeProviders, selectedNode?: string | TreeNode[] | undefined) => Promise<void>;
|
|
555
|
+
openSelectedNodeAsync: () => Promise<void>;
|
|
556
|
+
|
|
557
|
+
|
|
558
|
+
|
|
559
|
+
|
|
560
|
+
|
|
561
|
+
|
|
562
|
+
get shouldShowOpenButton(): boolean;
|
|
563
|
+
get focused_node(): TreeNode | undefined;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
export declare class LfFolderBrowserComponent extends FlatTreeDirective {
|
|
567
|
+
|
|
568
|
+
|
|
569
|
+
|
|
570
|
+
|
|
571
|
+
selected_node: TreeNode | undefined;
|
|
572
|
+
okClick: CustomEvent<TreeNode | undefined>;
|
|
573
|
+
cancelClick: CustomEvent<TreeNode | undefined>;
|
|
574
|
+
nodeSelected: CustomEvent<TreeNode | undefined>;
|
|
575
|
+
|
|
576
|
+
/**
|
|
577
|
+
* function to initialize the lf-folder-browser component
|
|
578
|
+
* @param providers LfTreeProviders service
|
|
579
|
+
* @param selectedNode the id of the node to select, or a TreeNode[] starting from the selected node to the root node
|
|
580
|
+
*/
|
|
581
|
+
initAsync: (providers: LfTreeProviders, selectedNode?: string | TreeNode[] | undefined) => Promise<void>;
|
|
582
|
+
openSelectedNodeAsync: () => Promise<void>;
|
|
583
|
+
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
|
|
587
|
+
|
|
588
|
+
get shouldShowOpenButton(): boolean;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
export declare class LfLoginComponent {
|
|
592
|
+
|
|
593
|
+
|
|
594
|
+
mode: LoginMode;
|
|
595
|
+
|
|
596
|
+
sign_in_text: string;
|
|
597
|
+
sign_out_text: string;
|
|
598
|
+
signing_in_text: string;
|
|
599
|
+
signing_out_text: string;
|
|
600
|
+
set client_id(val: string);
|
|
601
|
+
get client_id(): string;
|
|
602
|
+
set redirect_uri(val: string);
|
|
603
|
+
get redirect_uri(): string;
|
|
604
|
+
set scope(val: string);
|
|
605
|
+
get scope(): string;
|
|
606
|
+
set redirect_behavior(val: RedirectBehavior);
|
|
607
|
+
get redirect_behavior(): RedirectBehavior;
|
|
608
|
+
set authorize_url_host_name(val: string);
|
|
609
|
+
get authorize_url_host_name(): string;
|
|
610
|
+
get authorization_credentials(): AuthorizationCredentials | undefined;
|
|
611
|
+
get account_endpoints(): AccountEndpoints | undefined;
|
|
612
|
+
get account_id(): string | undefined;
|
|
613
|
+
get trustee_id(): string | undefined;
|
|
614
|
+
get state(): LoginState;
|
|
615
|
+
loginInitiated: CustomEvent<string>;
|
|
616
|
+
logoutInitiated: CustomEvent<string>;
|
|
617
|
+
loginCompleted: CustomEvent<void>;
|
|
618
|
+
logoutCompleted: CustomEvent<void | AbortedLoginError>;
|
|
619
|
+
refreshTokenAsync: (initiateLoginFlowOnRefreshFailure: boolean) => Promise<string | undefined>;
|
|
620
|
+
initLoginFlowAsync: () => Promise<string | undefined>;
|
|
621
|
+
handleRedirectURICallbackAsync: (url: string) => Promise<void>;
|
|
622
|
+
|
|
623
|
+
|
|
624
|
+
|
|
625
|
+
|
|
626
|
+
|
|
627
|
+
private onStorageChanged;
|
|
628
|
+
private onAccessTokenLocalStorageChange;
|
|
629
|
+
|
|
630
|
+
|
|
631
|
+
|
|
632
|
+
|
|
633
|
+
|
|
634
|
+
|
|
635
|
+
|
|
636
|
+
|
|
637
|
+
|
|
638
|
+
|
|
639
|
+
|
|
640
|
+
|
|
641
|
+
|
|
642
|
+
|
|
643
|
+
|
|
644
|
+
|
|
645
|
+
|
|
646
|
+
|
|
647
|
+
|
|
648
|
+
|
|
649
|
+
|
|
650
|
+
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
export declare class LfLoginModule {
|
|
654
|
+
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
declare class LfLoginService {
|
|
658
|
+
|
|
659
|
+
|
|
660
|
+
|
|
661
|
+
|
|
662
|
+
|
|
663
|
+
|
|
664
|
+
|
|
665
|
+
|
|
666
|
+
|
|
667
|
+
|
|
668
|
+
|
|
669
|
+
|
|
670
|
+
|
|
671
|
+
|
|
672
|
+
|
|
673
|
+
|
|
674
|
+
|
|
675
|
+
|
|
676
|
+
|
|
677
|
+
|
|
678
|
+
|
|
679
|
+
|
|
680
|
+
|
|
681
|
+
|
|
682
|
+
removeFromCache(): void;
|
|
683
|
+
|
|
684
|
+
|
|
685
|
+
|
|
686
|
+
|
|
687
|
+
|
|
688
|
+
|
|
689
|
+
|
|
690
|
+
|
|
691
|
+
|
|
692
|
+
|
|
693
|
+
|
|
694
|
+
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
export declare class LfMetadataModule {
|
|
698
|
+
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
export declare class LfToolbarComponent {
|
|
702
|
+
displayed_options: ToolbarOption[];
|
|
703
|
+
dropdown_options: ToolbarOption[];
|
|
704
|
+
optionSelected: CustomEvent<ToolbarOption>;
|
|
705
|
+
|
|
706
|
+
|
|
707
|
+
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
export declare class LfTreeComponent extends LfTreeKeysDirective {
|
|
711
|
+
|
|
712
|
+
|
|
713
|
+
|
|
714
|
+
|
|
715
|
+
|
|
716
|
+
|
|
717
|
+
|
|
718
|
+
ok_button_disabled: boolean;
|
|
719
|
+
selected_node: TreeNode | undefined;
|
|
720
|
+
nodeSelected: CustomEvent<TreeNode | undefined>;
|
|
721
|
+
description: string | undefined;
|
|
722
|
+
ok_button_text: string | undefined;
|
|
723
|
+
cancel_button_text: string | undefined;
|
|
724
|
+
okClick: CustomEvent<TreeNode>;
|
|
725
|
+
cancelClick: CustomEvent<TreeNode>;
|
|
726
|
+
initAsync: (providers: LfTreeProviders, selectedNodeId?: string | undefined) => Promise<void>;
|
|
727
|
+
|
|
728
|
+
private getRootNodesAsync;
|
|
729
|
+
|
|
730
|
+
|
|
731
|
+
|
|
732
|
+
|
|
733
|
+
|
|
734
|
+
|
|
735
|
+
|
|
736
|
+
|
|
737
|
+
|
|
738
|
+
|
|
739
|
+
private addLevelToNodes;
|
|
740
|
+
|
|
741
|
+
|
|
742
|
+
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
declare abstract class LfTreeKeysDirective {
|
|
746
|
+
|
|
747
|
+
|
|
748
|
+
|
|
749
|
+
|
|
750
|
+
|
|
751
|
+
|
|
752
|
+
|
|
753
|
+
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
export declare interface LfTreeProviders {
|
|
757
|
+
treeService: LfTreeService;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
/**
|
|
761
|
+
* Database for dynamic data. When expanding a node in the tree, the data source will need to fetch
|
|
762
|
+
* the descendants data from the database.
|
|
763
|
+
*/
|
|
764
|
+
export declare interface LfTreeService {
|
|
765
|
+
getChildrenAsync(node: TreeNode): Promise<TreeNode[]>;
|
|
766
|
+
getRootNodesAsync(): Promise<TreeNode[]>;
|
|
767
|
+
getParentNodeAsync(node: TreeNode): Promise<TreeNode | undefined>;
|
|
768
|
+
getNodeByIdAsync(id: string): Promise<TreeNode | undefined>;
|
|
769
|
+
addNewFolderAsync?(parentNode: TreeNode, folderName: string): Promise<void>;
|
|
770
|
+
refreshAsync?(node: TreeNode): Promise<TreeNode[]>;
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
export declare class LfUserFeedbackComponent {
|
|
774
|
+
|
|
775
|
+
|
|
776
|
+
hosting_module: string;
|
|
777
|
+
hosting_context: string;
|
|
778
|
+
user_id: string;
|
|
779
|
+
account_id: string;
|
|
780
|
+
|
|
781
|
+
|
|
782
|
+
|
|
783
|
+
|
|
784
|
+
|
|
785
|
+
|
|
786
|
+
|
|
787
|
+
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
export declare class LfUserFeedbackModule {
|
|
791
|
+
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
declare enum LoginMode {
|
|
795
|
+
'Button' = "Button",
|
|
796
|
+
'Menu' = "Menu"
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
declare enum LoginState {
|
|
800
|
+
LoggingIn = "LoggingIn",
|
|
801
|
+
LoggedIn = "LoggedIn",
|
|
802
|
+
LoggingOut = "LoggingOut",
|
|
803
|
+
LoggedOut = "LoggedOut"
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
declare enum RedirectBehavior {
|
|
807
|
+
Replace = "Replace",
|
|
808
|
+
Popup = "Popup",
|
|
809
|
+
None = "None"
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
declare interface Rule {
|
|
813
|
+
ancestors: number[];
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
declare interface TemplateFieldInfo extends LfFieldInfo {
|
|
817
|
+
rule?: Rule;
|
|
818
|
+
groupId?: number;
|
|
819
|
+
groupName?: string;
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
declare interface TemplateInfo {
|
|
823
|
+
id: number;
|
|
824
|
+
name?: string;
|
|
825
|
+
description?: string;
|
|
826
|
+
fieldCount?: number;
|
|
827
|
+
color?: LfColor;
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
declare interface TemplateValue {
|
|
831
|
+
name: string;
|
|
832
|
+
id: number;
|
|
833
|
+
fieldValues: {
|
|
834
|
+
[key: string]: FieldValue;
|
|
835
|
+
};
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
export declare interface ToolbarOption {
|
|
839
|
+
name: string;
|
|
840
|
+
disabled: boolean;
|
|
841
|
+
icon?: string[] | string;
|
|
842
|
+
children?: ToolbarOption[];
|
|
843
|
+
tag?: any;
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
export declare class TreeComponentsModule {
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
export declare interface TreeNode {
|
|
850
|
+
id: string;
|
|
851
|
+
icon: string | string[];
|
|
852
|
+
isContainer: boolean;
|
|
853
|
+
isLeaf: boolean;
|
|
854
|
+
isSelectable: boolean;
|
|
855
|
+
name: string;
|
|
856
|
+
path: string;
|
|
857
|
+
isLoadingChildren?: boolean;
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
declare interface TreeNodeEx extends TreeNode {
|
|
861
|
+
level: number;
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
declare interface UserFeedbackDialogData {
|
|
865
|
+
userFeedbackTrackingEventType: UserFeedbackTrackingEventType;
|
|
866
|
+
feedbackText: string;
|
|
867
|
+
canContact: boolean;
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
declare enum UserFeedbackTrackingEventType {
|
|
871
|
+
Feedback = "Feedback",
|
|
872
|
+
Suggestion = "Suggestion"
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
|
package/index.js
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export var FieldType;
|
|
2
|
+
(function (FieldType) {
|
|
3
|
+
FieldType["DateTime"] = "DateTime";
|
|
4
|
+
FieldType["Blob"] = "Blob";
|
|
5
|
+
FieldType["Date"] = "Date";
|
|
6
|
+
FieldType["ShortInteger"] = "ShortInteger";
|
|
7
|
+
FieldType["LongInteger"] = "LongInteger";
|
|
8
|
+
FieldType["List"] = "List";
|
|
9
|
+
FieldType["Number"] = "Number";
|
|
10
|
+
FieldType["String"] = "String";
|
|
11
|
+
FieldType["Time"] = "Time";
|
|
12
|
+
})(FieldType || (FieldType = {}));
|
|
13
|
+
/** FieldFormat copied from Web Access */
|
|
14
|
+
export var FieldFormat;
|
|
15
|
+
(function (FieldFormat) {
|
|
16
|
+
FieldFormat["None"] = "None";
|
|
17
|
+
FieldFormat["ShortDate"] = "ShortDate";
|
|
18
|
+
FieldFormat["LongDate"] = "LongDate";
|
|
19
|
+
FieldFormat["ShortDateTime"] = "ShortDateTime";
|
|
20
|
+
FieldFormat["LongDateTime"] = "LongDateTime";
|
|
21
|
+
FieldFormat["ShortTime"] = "ShortTime";
|
|
22
|
+
FieldFormat["LongTime"] = "LongTime";
|
|
23
|
+
FieldFormat["GeneralNumber"] = "GeneralNumber";
|
|
24
|
+
FieldFormat["Currency"] = "Currency";
|
|
25
|
+
FieldFormat["Percent"] = "Percent";
|
|
26
|
+
FieldFormat["Scientific"] = "Scientific";
|
|
27
|
+
FieldFormat["Custom"] = "Custom";
|
|
28
|
+
})(FieldFormat || (FieldFormat = {}));
|
|
29
|
+
export var RedirectBehavior;
|
|
30
|
+
(function (RedirectBehavior) {
|
|
31
|
+
RedirectBehavior["Replace"] = "Replace";
|
|
32
|
+
RedirectBehavior["Popup"] = "Popup";
|
|
33
|
+
RedirectBehavior["None"] = "None";
|
|
34
|
+
})(RedirectBehavior || (RedirectBehavior = {}));
|
|
35
|
+
// type RedirectBehavior = 'Replace' | 'Popup' | 'None'
|
|
36
|
+
export var LoginState;
|
|
37
|
+
(function (LoginState) {
|
|
38
|
+
LoginState["LoggingIn"] = "LoggingIn";
|
|
39
|
+
LoginState["LoggedIn"] = "LoggedIn";
|
|
40
|
+
LoginState["LoggingOut"] = "LoggingOut";
|
|
41
|
+
LoginState["LoggedOut"] = "LoggedOut"; // don't have tokens, previous state: LoggingOut, LoggingIn
|
|
42
|
+
})(LoginState || (LoginState = {}));
|
|
43
|
+
export var LoginMode;
|
|
44
|
+
(function (LoginMode) {
|
|
45
|
+
LoginMode["Button"] = "Button";
|
|
46
|
+
LoginMode["Menu"] = "Menu";
|
|
47
|
+
})(LoginMode || (LoginMode = {}));
|
|
48
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW51bXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy91aS1jb21wb25lbnRzL3NoYXJlZC9lbnVtcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQU4sSUFBWSxTQVVYO0FBVkQsV0FBWSxTQUFTO0lBQ25CLGtDQUFxQixDQUFBO0lBQ3JCLDBCQUFhLENBQUE7SUFDYiwwQkFBYSxDQUFBO0lBQ2IsMENBQTZCLENBQUE7SUFDN0Isd0NBQTJCLENBQUE7SUFDM0IsMEJBQWEsQ0FBQTtJQUNiLDhCQUFpQixDQUFBO0lBQ2pCLDhCQUFpQixDQUFBO0lBQ2pCLDBCQUFhLENBQUE7QUFDZixDQUFDLEVBVlcsU0FBUyxLQUFULFNBQVMsUUFVcEI7QUFDRCx5Q0FBeUM7QUFDekMsTUFBTSxDQUFOLElBQVksV0FhWDtBQWJELFdBQVksV0FBVztJQUNyQiw0QkFBYSxDQUFBO0lBQ2Isc0NBQXVCLENBQUE7SUFDdkIsb0NBQXFCLENBQUE7SUFDckIsOENBQStCLENBQUE7SUFDL0IsNENBQTZCLENBQUE7SUFDN0Isc0NBQXVCLENBQUE7SUFDdkIsb0NBQXFCLENBQUE7SUFDckIsOENBQStCLENBQUE7SUFDL0Isb0NBQXFCLENBQUE7SUFDckIsa0NBQW1CLENBQUE7SUFDbkIsd0NBQXlCLENBQUE7SUFDekIsZ0NBQWlCLENBQUE7QUFDbkIsQ0FBQyxFQWJXLFdBQVcsS0FBW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3RhdGU6IExvZ2dlZEluXHJcbiAgTG9nZ2VkT3V0ID0gJ0xvZ2dlZE91dCcgLy8gZG9uJ3QgaGF2ZSB0b2tlbnMsIHByZXZpb3VzIHN0YXRlOiBMb2dnaW5nT3V0LCBMb2dnaW5nSW5cclxufVxyXG5cclxuZXhwb3J0IGVudW0gTG9naW5Nb2RlIHtcclxuICAnQnV0dG9uJyA9ICdCdXR0b24nLFxyXG4gICdNZW51JyA9ICdNZW51J1xyXG59XHJcbiJdfQ==
|
|
Binary file
|
package/package.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@laserfiche/types-lf-ui-components",
|
|
3
|
+
"version": "12.0.0--preview-2302340779",
|
|
4
|
+
"scripts": {},
|
|
5
|
+
"dependencies": {},
|
|
6
|
+
"devDependencies": {},
|
|
7
|
+
"types": "index.d.ts",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"repository": {
|
|
10
|
+
"url": "https://github.com/Laserfiche/lf-ui-components"
|
|
11
|
+
}
|
|
12
|
+
}
|