@pacem/pacem-scaffolding 1.0.0-abel
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 +191 -0
- package/NOTICE +4 -0
- package/dist/browser/pacem-scaffolding.js +10430 -0
- package/dist/browser/pacem-scaffolding.js.map +1 -0
- package/dist/browser/pacem-scaffolding.min.js +2 -0
- package/dist/browser/pacem-scaffolding.min.js.map +1 -0
- package/dist/bundle/pacem-scaffolding.min.mjs +380 -0
- package/dist/bundle/pacem-scaffolding.mjs +10046 -0
- package/dist/bundle/pacem-scaffolding.mjs.map +7 -0
- package/dist/esm/calendar-picker.js +478 -0
- package/dist/esm/char-counter.js +43 -0
- package/dist/esm/checkbox-list.js +75 -0
- package/dist/esm/checkbox.js +112 -0
- package/dist/esm/childform.js +237 -0
- package/dist/esm/contenteditable.js +326 -0
- package/dist/esm/datetime-picker.js +310 -0
- package/dist/esm/form.js +630 -0
- package/dist/esm/formfield.js +1065 -0
- package/dist/esm/geolocate.js +197 -0
- package/dist/esm/hierarchy.js +509 -0
- package/dist/esm/index-components-scaffolding.js +39 -0
- package/dist/esm/index-components.js +1 -0
- package/dist/esm/index-iife.js +3 -0
- package/dist/esm/index-root.js +2 -0
- package/dist/esm/index-scaffolding.js +3 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/input-chars.js +185 -0
- package/dist/esm/input-color.js +80 -0
- package/dist/esm/input-email.js +32 -0
- package/dist/esm/input-file.js +691 -0
- package/dist/esm/input-hidden.js +25 -0
- package/dist/esm/input-image.js +391 -0
- package/dist/esm/input-number.js +58 -0
- package/dist/esm/input-password.js +71 -0
- package/dist/esm/input-search.js +27 -0
- package/dist/esm/input-tel.js +31 -0
- package/dist/esm/input-text.js +36 -0
- package/dist/esm/input-url.js +32 -0
- package/dist/esm/input.js +215 -0
- package/dist/esm/l10n.js +66 -0
- package/dist/esm/latlng.js +178 -0
- package/dist/esm/namevalue-list.js +139 -0
- package/dist/esm/property-picker.js +84 -0
- package/dist/esm/radio-list.js +70 -0
- package/dist/esm/radio.js +79 -0
- package/dist/esm/select.js +126 -0
- package/dist/esm/slider.js +284 -0
- package/dist/esm/snapshot.js +325 -0
- package/dist/esm/suggest.js +545 -0
- package/dist/esm/tags.js +174 -0
- package/dist/esm/textarea-markdown.js +75 -0
- package/dist/esm/textarea.js +51 -0
- package/dist/esm/types-components.js +611 -0
- package/dist/esm/types.js +8 -0
- package/dist/esm/validators.js +409 -0
- package/package.json +38 -0
- package/typings/index.d.ts +2283 -0
|
@@ -0,0 +1,2283 @@
|
|
|
1
|
+
import { Animations } from '@pacem/pacem-core';
|
|
2
|
+
import { Components as Components_2 } from '@pacem/pacem-core';
|
|
3
|
+
import { Components as Components_3 } from '@pacem/pacem-ui';
|
|
4
|
+
import { Components as Components_4 } from '@pacem/pacem-maps';
|
|
5
|
+
import { CustomTypedEvent } from '@pacem/pacem-core';
|
|
6
|
+
import { HistoryService } from '@pacem/pacem-foundation';
|
|
7
|
+
import { ItemsContainer } from '@pacem/pacem-core';
|
|
8
|
+
import { Maps } from '@pacem/pacem-maps';
|
|
9
|
+
import { Net } from '@pacem/pacem-core';
|
|
10
|
+
import { PacemEventTarget } from '@pacem/pacem-core';
|
|
11
|
+
import { Type } from '@pacem/pacem-core';
|
|
12
|
+
|
|
13
|
+
declare type Address = Maps.Address;
|
|
14
|
+
|
|
15
|
+
declare type ApiEndpoint = {
|
|
16
|
+
method: Net.HttpMethod;
|
|
17
|
+
path: string;
|
|
18
|
+
parameters: ApiParameter[];
|
|
19
|
+
response?: ApiResponse;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
declare type ApiManifest = {
|
|
23
|
+
definitions: {
|
|
24
|
+
[name: string]: OpenApiSwagger.Schema;
|
|
25
|
+
};
|
|
26
|
+
endpoints: ApiEndpoint[];
|
|
27
|
+
baseUrl: string;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
declare interface ApiParameter extends Parameter, Schema {
|
|
31
|
+
type?: ApiParameterType;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
declare enum ApiParameterType {
|
|
35
|
+
String = "string",
|
|
36
|
+
Number = "number",
|
|
37
|
+
Datetime = "datetime",
|
|
38
|
+
Boolean = "boolean",
|
|
39
|
+
Binary = "binary",
|
|
40
|
+
Object = "object"
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
declare interface ApiParser {
|
|
44
|
+
parse(content: any): ApiManifest;
|
|
45
|
+
load(url: string): Promise<ApiManifest>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
declare abstract class ApiParserBase implements ApiParser {
|
|
49
|
+
abstract parse(content: any, url?: string): ApiManifest;
|
|
50
|
+
load(url: string, headers?: {
|
|
51
|
+
[name: string]: string;
|
|
52
|
+
}): Promise<ApiManifest>;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
declare interface ApiResponse extends Schema {
|
|
56
|
+
type: string;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
declare const BASIC_VALIDATOR_TEMPLATE: string;
|
|
60
|
+
|
|
61
|
+
declare type BinarySelectMode = 'file' | 'multiple' | 'directory-picker' | 'directory' | 'file-picker' | 'multiple-picker';
|
|
62
|
+
|
|
63
|
+
declare type BinaryValue = {
|
|
64
|
+
name: string;
|
|
65
|
+
size: number;
|
|
66
|
+
type: string;
|
|
67
|
+
lastModified: number | string | Date; /** base64 binary string */
|
|
68
|
+
content: string;
|
|
69
|
+
encoding?: string;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
declare class CalendarDateUnselectEvent extends Components_3.UI.DateSelectEvent {
|
|
73
|
+
constructor();
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
declare enum ChangePolicy {
|
|
77
|
+
Input = "input",
|
|
78
|
+
Blur = "blur"
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
declare const CHAR_COUNTER_CHILD: string;
|
|
82
|
+
|
|
83
|
+
declare type CommandMetadata = {
|
|
84
|
+
name: string;
|
|
85
|
+
tooltip?: string;
|
|
86
|
+
icon: string;
|
|
87
|
+
cssClass?: string[];
|
|
88
|
+
prepend?: boolean;
|
|
89
|
+
dependsOnValue?: boolean;
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
declare type CompareValidatorOperator = 'equal' | 'lessOrEqual' | 'less' | 'greater' | 'greaterOrEqual' | 'notEqual';
|
|
93
|
+
|
|
94
|
+
export declare namespace Components {
|
|
95
|
+
export {
|
|
96
|
+
Scaffolding_2 as Scaffolding
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
declare interface ContenteditableCommand {
|
|
101
|
+
exec(...args: any[]): Promise<unknown>;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
declare class ContenteditableDOMObserver {
|
|
105
|
+
#private;
|
|
106
|
+
constructor(contentElement: HTMLElement, mutationCallback: (item: Node, removed?: boolean) => void, selector?: string);
|
|
107
|
+
private _initContainer;
|
|
108
|
+
private _disposeContainer;
|
|
109
|
+
dispose(): void;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
declare interface ContenteditableFileCommand extends ContenteditableCommand {
|
|
113
|
+
pasteCallback(file: File): PromiseLike<any>;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
declare class ContenteditableUtils {
|
|
117
|
+
static getDefaultDashboard(): DocumentFragment;
|
|
118
|
+
/**
|
|
119
|
+
* Seeks for a Selection' surrounding node of a given type and returns it, if any.
|
|
120
|
+
* @param range
|
|
121
|
+
* @param type
|
|
122
|
+
*/
|
|
123
|
+
static findSurroundingNode(range: Range, tagName: string): Element;
|
|
124
|
+
static findSurroundingNode(node: Node, tagName: string): Element;
|
|
125
|
+
static findSurroundingNode(range: Range, filter: (node: Node) => boolean): Element;
|
|
126
|
+
static findSurroundingNode<TNode extends Node>(range: Range, type: Type<TNode>): TNode;
|
|
127
|
+
static findSurroundingBlockElement(range: Range): Element;
|
|
128
|
+
static findSurroundingSiblingBlockElements(range: Range): Element[];
|
|
129
|
+
static findContainingRootElements(range: Range): Element[];
|
|
130
|
+
static isBlockElement(node: Node): node is Element;
|
|
131
|
+
static select(node: Node, inside?: boolean): Range;
|
|
132
|
+
static copyAttributes(to: Element, from: Element): void;
|
|
133
|
+
/**
|
|
134
|
+
* Checks whether the provided range wraps an 'inert' (contentEditable=false) element, and returns result accordingly.
|
|
135
|
+
* @param range
|
|
136
|
+
*/
|
|
137
|
+
static testInertElementWrapping(range: Range): RangeWrapTestResult;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
declare const CONTENTELEMENT_BUTTONCOMMAND_TEMPLATE: string;
|
|
141
|
+
|
|
142
|
+
declare interface DataField extends PropertyMetadata {
|
|
143
|
+
props?: DataField[];
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
declare type DataSource = DataSourceItem[];
|
|
147
|
+
|
|
148
|
+
declare type DataSourceItem = {
|
|
149
|
+
value: any;
|
|
150
|
+
viewValue: string;
|
|
151
|
+
disabled?: boolean;
|
|
152
|
+
data: any;
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
declare const DEFAULT_ATTRIBUTION = "";
|
|
156
|
+
|
|
157
|
+
declare const DEFAULT_TILES = "";
|
|
158
|
+
|
|
159
|
+
declare type DependsOn = {
|
|
160
|
+
prop: string;
|
|
161
|
+
alias?: string;
|
|
162
|
+
/** The (optional) value to check equality against. */
|
|
163
|
+
value?: any;
|
|
164
|
+
/** Whether this dependency disables the field when its value is null or empty (optional: false) or not (optional: true). Default is `false`.
|
|
165
|
+
If {@link DependsOn#value} is provided, then the `optional` flag is always considered `true`.
|
|
166
|
+
*/
|
|
167
|
+
optional?: boolean;
|
|
168
|
+
hide?: boolean;
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
declare type DependsOnManifest = {
|
|
172
|
+
disabledAttr: string;
|
|
173
|
+
hideAttr?: string; /**@ dependency parameters */
|
|
174
|
+
parameterAttrs?: {
|
|
175
|
+
[alias: string]: string;
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
declare type DisplayCssClassManifest = {
|
|
180
|
+
cssClassAttr: string;
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
declare type DisplayCssManifest = {
|
|
184
|
+
cssAttr: string;
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
declare type DisplayMetadata = {
|
|
188
|
+
name?: string | PropertyMetadataLabelFactory;
|
|
189
|
+
description?: string;
|
|
190
|
+
short?: string;
|
|
191
|
+
watermark?: string;
|
|
192
|
+
null?: string;
|
|
193
|
+
ui?: string;
|
|
194
|
+
format?: string | Intl.DateTimeFormatOptions | Intl.NumberFormatOptions;
|
|
195
|
+
css?: {
|
|
196
|
+
[name: string]: string;
|
|
197
|
+
} | PropertyMetadataDisplayCssFactory;
|
|
198
|
+
cssClass?: string[] | PropertyMetadataDisplayCssClassFactory;
|
|
199
|
+
/** Metadata icons are currently managed only at TypeMetadata-level and only in particular scenarios (e.g. CMS). */
|
|
200
|
+
icon?: string;
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
declare type FetchRequestEventArgs = {
|
|
204
|
+
hint?: string;
|
|
205
|
+
skip: number;
|
|
206
|
+
take?: number;
|
|
207
|
+
};
|
|
208
|
+
|
|
209
|
+
declare class FieldChangeEvent extends CustomTypedEvent<FieldChangeEventArgs> {
|
|
210
|
+
constructor(args: FieldChangeEventArgs);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
declare interface FieldChangeEventArgs {
|
|
214
|
+
fieldName: string;
|
|
215
|
+
oldValue?: any;
|
|
216
|
+
currentValue: any;
|
|
217
|
+
/** Was the field in a pristine state before this change? */
|
|
218
|
+
firstChange?: boolean;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
declare const FieldChangeEventName: string;
|
|
222
|
+
|
|
223
|
+
declare type FieldManifest = {
|
|
224
|
+
tagName: string;
|
|
225
|
+
attrs?: {
|
|
226
|
+
[name: string]: string;
|
|
227
|
+
};
|
|
228
|
+
children?: FieldManifest[];
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
declare class FileChangeEvent extends CustomTypedEvent<FileChangeEventArgs> {
|
|
232
|
+
constructor(file: FileChangeEventArgs);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
declare type FileChangeEventArgs = {
|
|
236
|
+
file?: File | FileSystemFileHandle;
|
|
237
|
+
files?: File[] | FileSystemFileHandle[];
|
|
238
|
+
directory?: FileSystemDirectoryHandle;
|
|
239
|
+
valid: boolean;
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
declare const FileChangeEventName = "filechange";
|
|
243
|
+
|
|
244
|
+
declare class FileUploadEvent extends CustomTypedEvent<FileUploadEventArgs> {
|
|
245
|
+
constructor(file: FileUploadEventArgs);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
declare type FileUploadEventArgs = {
|
|
249
|
+
complete: boolean;
|
|
250
|
+
percentage: number;
|
|
251
|
+
uid: string;
|
|
252
|
+
filename: string;
|
|
253
|
+
originalFilename: string;
|
|
254
|
+
size: number;
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
declare const FileUploadEventName = "fileupload";
|
|
258
|
+
|
|
259
|
+
declare class FormEventEmitter {
|
|
260
|
+
private _element;
|
|
261
|
+
constructor(_element: PacemEventTarget);
|
|
262
|
+
start(): void;
|
|
263
|
+
private _itemEmitHandler;
|
|
264
|
+
stop(): void;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
declare class FormResetEvent extends Event {
|
|
268
|
+
constructor();
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
declare const FormResetEventName = "reset";
|
|
272
|
+
|
|
273
|
+
declare class Forms {
|
|
274
|
+
/**
|
|
275
|
+
* Localizes the metadata of a form **in place** using a translation dictionary.
|
|
276
|
+
*
|
|
277
|
+
* @param metadata The default metadata.
|
|
278
|
+
* @param dictionary The translation dictionary.
|
|
279
|
+
* @param options Custom replacement strategy, just in case.
|
|
280
|
+
* @returns The localized metadata.
|
|
281
|
+
*/
|
|
282
|
+
static localizeMetadata(metadata: TypeMetadata, dictionary: Record<string, string>, options?: Partial<LocalizationOptions>): TypeMetadata;
|
|
283
|
+
private static _localizeMetadata;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
declare class FormSubmitEvent extends CustomTypedEvent<FormSubmitEventArgs> {
|
|
287
|
+
constructor(args: FormSubmitEventArgs);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
declare type FormSubmitEventArgs = {
|
|
291
|
+
parameters: {
|
|
292
|
+
[key: string]: any;
|
|
293
|
+
};
|
|
294
|
+
fields: {
|
|
295
|
+
[key: string]: PacemModel;
|
|
296
|
+
};
|
|
297
|
+
};
|
|
298
|
+
|
|
299
|
+
declare const FormSubmitEventName = "submit";
|
|
300
|
+
|
|
301
|
+
declare function getOpenApiDefinition(manifest: ApiManifest, $ref: string): {
|
|
302
|
+
name: string;
|
|
303
|
+
schema: OpenApiSwagger.Schema;
|
|
304
|
+
};
|
|
305
|
+
|
|
306
|
+
declare type HierarchyDataSource = HierarchyDataSourceItem[];
|
|
307
|
+
|
|
308
|
+
declare type HierarchyDataSourceItem = DataSourceItem & {
|
|
309
|
+
parents?: HierarchyDataSource;
|
|
310
|
+
};
|
|
311
|
+
|
|
312
|
+
declare type Icon = Components_4.Maps.Icon;
|
|
313
|
+
|
|
314
|
+
declare class ImageFetchRequestEvent extends CustomTypedEvent<FetchRequestEventArgs> {
|
|
315
|
+
constructor(args: FetchRequestEventArgs);
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
declare const ImageFetchRequestEventName = "imagefetchrequest";
|
|
319
|
+
|
|
320
|
+
declare enum KnownExecCommand {
|
|
321
|
+
Bold = "bold",
|
|
322
|
+
Italic = "italic",
|
|
323
|
+
Underline = "underline",
|
|
324
|
+
StrikeThrough = "strikeThrough",
|
|
325
|
+
OrderedList = "insertOrderedList",
|
|
326
|
+
UnorderedList = "insertUnorderedList",
|
|
327
|
+
JustifyLeft = "justifyLeft",
|
|
328
|
+
JustifyCenter = "justifyCenter",
|
|
329
|
+
JustifyRight = "justifyRight",
|
|
330
|
+
JustifyFull = "justifyFull"
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
declare type KnownValidatorMetadata = {
|
|
334
|
+
type: 'required';
|
|
335
|
+
errorMessage: string;
|
|
336
|
+
} | {
|
|
337
|
+
type: 'email';
|
|
338
|
+
errorMessage: string;
|
|
339
|
+
} | {
|
|
340
|
+
type: 'length';
|
|
341
|
+
errorMessage: string;
|
|
342
|
+
params: {
|
|
343
|
+
min?: number;
|
|
344
|
+
max?: number;
|
|
345
|
+
};
|
|
346
|
+
} | {
|
|
347
|
+
type: 'range';
|
|
348
|
+
errorMessage: string;
|
|
349
|
+
params: {
|
|
350
|
+
min?: number | string | Date;
|
|
351
|
+
max?: number | string | Date;
|
|
352
|
+
};
|
|
353
|
+
} | {
|
|
354
|
+
type: 'regex';
|
|
355
|
+
errorMessage: string;
|
|
356
|
+
params: {
|
|
357
|
+
pattern: string | RegExp;
|
|
358
|
+
};
|
|
359
|
+
} | {
|
|
360
|
+
type: 'binary';
|
|
361
|
+
errorMessage: string;
|
|
362
|
+
params: {
|
|
363
|
+
pattern?: string;
|
|
364
|
+
maxSize?: number;
|
|
365
|
+
};
|
|
366
|
+
} | {
|
|
367
|
+
type: 'compare';
|
|
368
|
+
errorMessage: string;
|
|
369
|
+
params: {
|
|
370
|
+
value: any;
|
|
371
|
+
operator?: CompareValidatorOperator;
|
|
372
|
+
} | {
|
|
373
|
+
to: string;
|
|
374
|
+
operator?: CompareValidatorOperator;
|
|
375
|
+
} | {
|
|
376
|
+
toProperty: string;
|
|
377
|
+
operator?: CompareValidatorOperator;
|
|
378
|
+
};
|
|
379
|
+
} | {
|
|
380
|
+
type: 'async';
|
|
381
|
+
errorMessage: string;
|
|
382
|
+
params: {
|
|
383
|
+
url: string;
|
|
384
|
+
verb?: Net.HttpMethod;
|
|
385
|
+
dependsOn?: DependsOn[];
|
|
386
|
+
};
|
|
387
|
+
};
|
|
388
|
+
|
|
389
|
+
export declare namespace L10n {
|
|
390
|
+
export {
|
|
391
|
+
LocalizationOptions,
|
|
392
|
+
Forms
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
declare type LabelManifest = {
|
|
397
|
+
contentAttr: string;
|
|
398
|
+
};
|
|
399
|
+
|
|
400
|
+
declare interface LatLngOptions {
|
|
401
|
+
provider: 'osm' | 'leaflet' | 'azure' | 'google' | 'gmaps' | 'leafletjs';
|
|
402
|
+
tiles?: string;
|
|
403
|
+
attribution?: string;
|
|
404
|
+
apiKey?: string;
|
|
405
|
+
icon?: any;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
declare interface LocalizationOptions {
|
|
409
|
+
/**
|
|
410
|
+
* Translates the labels of a form field.
|
|
411
|
+
* @param displayProp Display object property (any of: 'name', 'description', 'watermark').
|
|
412
|
+
* @param prop Full entity property name.
|
|
413
|
+
* @param dictionary Object that holds the translations.
|
|
414
|
+
* @returns Translated label.
|
|
415
|
+
*/
|
|
416
|
+
display: (displayProp: string, prop: string, dictionary: Record<string, string>) => string;
|
|
417
|
+
/**
|
|
418
|
+
* Translates the error message of a validator given its type and order.
|
|
419
|
+
* @param validatorType Type of validator.
|
|
420
|
+
* @param validatorTypeIndex Index of validator of type @param validatorType.
|
|
421
|
+
* @param prop Full entity property name.
|
|
422
|
+
* @param dictionary Object that holds the translations.
|
|
423
|
+
* @returns Translated error message.
|
|
424
|
+
*/
|
|
425
|
+
validator: (validatorType: string, validatorTypeIndex: number, prop: string, dictionary: Record<string, string>) => string;
|
|
426
|
+
/**
|
|
427
|
+
* Translates the tooltip of a command given its name.
|
|
428
|
+
* @param commandName Name of the command.
|
|
429
|
+
* @param dictionary Object that holds the translations.
|
|
430
|
+
* @returns Translated command tooltip.
|
|
431
|
+
*/
|
|
432
|
+
commandTooltip: (commandName: string, dictionary: Record<string, string>) => string;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
export declare namespace OpenApi {
|
|
436
|
+
export {
|
|
437
|
+
OpenApiParser,
|
|
438
|
+
OpenApi3Schema,
|
|
439
|
+
OpenApi3Parser,
|
|
440
|
+
SwaggerParser,
|
|
441
|
+
getOpenApiDefinition,
|
|
442
|
+
ApiEndpoint,
|
|
443
|
+
Parameter,
|
|
444
|
+
Schema,
|
|
445
|
+
ApiParameter,
|
|
446
|
+
ApiParameterType,
|
|
447
|
+
DataField,
|
|
448
|
+
ApiResponse,
|
|
449
|
+
ApiManifest,
|
|
450
|
+
PagedSet,
|
|
451
|
+
ApiParser,
|
|
452
|
+
ApiParserBase
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
declare type OpenApi3Parameter = {
|
|
457
|
+
name: string;
|
|
458
|
+
in?: string;
|
|
459
|
+
description?: string;
|
|
460
|
+
required: boolean;
|
|
461
|
+
schema: OpenApi3SchemaType;
|
|
462
|
+
};
|
|
463
|
+
|
|
464
|
+
declare class OpenApi3Parser extends ApiParserBase {
|
|
465
|
+
parse(content: any, url?: string): ApiManifest;
|
|
466
|
+
private _convertToApiParameters;
|
|
467
|
+
private _translateType;
|
|
468
|
+
private _gatherDefinitions;
|
|
469
|
+
private _findDefinition;
|
|
470
|
+
private _findDefinitionName;
|
|
471
|
+
private _tryGetResponse;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
declare type OpenApi3Path = {
|
|
475
|
+
[method: string]: {
|
|
476
|
+
tags?: string[];
|
|
477
|
+
summary?: string;
|
|
478
|
+
description: string;
|
|
479
|
+
responses: {
|
|
480
|
+
[status: string]: OpenApi3Response;
|
|
481
|
+
};
|
|
482
|
+
parameters?: OpenApi3Parameter[];
|
|
483
|
+
};
|
|
484
|
+
};
|
|
485
|
+
|
|
486
|
+
declare type OpenApi3Response = {
|
|
487
|
+
description: string;
|
|
488
|
+
content: {
|
|
489
|
+
[mime: string]: {
|
|
490
|
+
schema: OpenApi3SchemaType;
|
|
491
|
+
};
|
|
492
|
+
};
|
|
493
|
+
};
|
|
494
|
+
|
|
495
|
+
declare type OpenApi3Schema = {
|
|
496
|
+
openapi: string;
|
|
497
|
+
info?: {
|
|
498
|
+
title?: string;
|
|
499
|
+
version?: string;
|
|
500
|
+
};
|
|
501
|
+
paths: {
|
|
502
|
+
[endpoint: string]: OpenApi3Path;
|
|
503
|
+
};
|
|
504
|
+
components: {
|
|
505
|
+
schemas: {
|
|
506
|
+
[type: string]: OpenApi3SchemaType;
|
|
507
|
+
};
|
|
508
|
+
};
|
|
509
|
+
};
|
|
510
|
+
|
|
511
|
+
declare type OpenApi3SchemaRef = {
|
|
512
|
+
"$ref": string;
|
|
513
|
+
};
|
|
514
|
+
|
|
515
|
+
declare type OpenApi3SchemaType = {
|
|
516
|
+
nullable?: boolean;
|
|
517
|
+
description?: string;
|
|
518
|
+
readOnly?: boolean;
|
|
519
|
+
required?: string[];
|
|
520
|
+
} & (OpenApi3SimpleSchemaType | {
|
|
521
|
+
type: "array";
|
|
522
|
+
items: OpenApi3SchemaRef | OpenApi3SchemaType;
|
|
523
|
+
} | {
|
|
524
|
+
type: "object";
|
|
525
|
+
properties: {
|
|
526
|
+
[name: string]: OpenApi3SchemaType;
|
|
527
|
+
};
|
|
528
|
+
additionalProperties?: boolean | {
|
|
529
|
+
[name: string]: OpenApi3SchemaType;
|
|
530
|
+
};
|
|
531
|
+
} | OpenApi3SchemaRef);
|
|
532
|
+
|
|
533
|
+
declare type OpenApi3SimpleSchemaType = {
|
|
534
|
+
type: "boolean";
|
|
535
|
+
} | {
|
|
536
|
+
type: "string";
|
|
537
|
+
format?: "date-time" | "byte" | "email";
|
|
538
|
+
maxLength?: number;
|
|
539
|
+
minLength?: number;
|
|
540
|
+
pattern?: string;
|
|
541
|
+
} | {
|
|
542
|
+
type: "integer";
|
|
543
|
+
format: "int32" | "int64" | "int16";
|
|
544
|
+
enum?: number[];
|
|
545
|
+
minimum?: number;
|
|
546
|
+
maximum?: number;
|
|
547
|
+
default?: number;
|
|
548
|
+
} | {
|
|
549
|
+
type: "number";
|
|
550
|
+
format: "double";
|
|
551
|
+
minimum?: number;
|
|
552
|
+
maximum?: number;
|
|
553
|
+
default?: number;
|
|
554
|
+
};
|
|
555
|
+
|
|
556
|
+
declare class OpenApiParser extends ApiParserBase {
|
|
557
|
+
private _openApi3;
|
|
558
|
+
private _swagger;
|
|
559
|
+
constructor(_openApi3?: OpenApi3Parser, _swagger?: SwaggerParser);
|
|
560
|
+
parse(content: any, url?: string): ApiManifest;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
declare class PacemAsyncValidatorElement extends PacemBaseValidatorElement implements Net.OAuthFetchable {
|
|
564
|
+
#private;
|
|
565
|
+
private _evaluateResult;
|
|
566
|
+
private _fetch;
|
|
567
|
+
private _debouncer;
|
|
568
|
+
private _deferredToken;
|
|
569
|
+
evaluate(val: any): PromiseLike<boolean>;
|
|
570
|
+
parameters: any;
|
|
571
|
+
fetchCredentials: RequestCredentials;
|
|
572
|
+
fetchHeaders: {
|
|
573
|
+
[key: string]: string;
|
|
574
|
+
};
|
|
575
|
+
url: string;
|
|
576
|
+
method: Net.HttpMethod;
|
|
577
|
+
private _fetcher;
|
|
578
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
declare abstract class PacemBaseElement extends PacemModelElement {
|
|
582
|
+
protected compareValuePropertyValues(old: any, val: any): boolean;
|
|
583
|
+
required: boolean;
|
|
584
|
+
autofocus: boolean;
|
|
585
|
+
readonly: boolean;
|
|
586
|
+
name: string;
|
|
587
|
+
placeholder: string;
|
|
588
|
+
protected abstract get inputFields(): HTMLElement[];
|
|
589
|
+
protected abstract toggleReadonlyView(readonly: boolean): void;
|
|
590
|
+
protected get preventKeyboardSubmit(): boolean;
|
|
591
|
+
/**
|
|
592
|
+
* When implemented in a derived class, must handle the `UI -> value` change logic and returns the value that has been set.
|
|
593
|
+
* @param evt {Event} Original event triggered by the user
|
|
594
|
+
*/
|
|
595
|
+
protected abstract onChange(evt?: Event): PromiseLike<any>;
|
|
596
|
+
/**
|
|
597
|
+
* When implemented in a derived class, must handle the `value -> UI` synchronization logic.
|
|
598
|
+
* @param val Current value
|
|
599
|
+
*/
|
|
600
|
+
protected abstract acceptValue(val: any): any;
|
|
601
|
+
propertyChangedCallback(name: string, old: any, val: any, first: boolean): void;
|
|
602
|
+
private _preFocusValue;
|
|
603
|
+
protected focusHandler: (evt: FocusEvent) => void;
|
|
604
|
+
protected changeHandler: (evt: Event) => void;
|
|
605
|
+
protected keydownHandler: (evt: KeyboardEvent) => void;
|
|
606
|
+
protected keyupHandler: (evt: KeyboardEvent) => void;
|
|
607
|
+
protected registerInputFields(inputFields?: HTMLElement | HTMLElement[]): void;
|
|
608
|
+
protected unregisterInputFields(inputFields?: HTMLElement | HTMLElement[]): void;
|
|
609
|
+
viewActivatedCallback(): void;
|
|
610
|
+
disconnectedCallback(): void;
|
|
611
|
+
focus(): void;
|
|
612
|
+
blur(): void;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
declare abstract class PacemBaseInputElement extends PacemBaseElement {
|
|
616
|
+
debounce: number | boolean;
|
|
617
|
+
changePolicy: ChangePolicy;
|
|
618
|
+
autoselect: boolean;
|
|
619
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
620
|
+
private _focusHandler;
|
|
621
|
+
protected acceptValue(val: any): void;
|
|
622
|
+
protected get inputField(): HTMLInputElement;
|
|
623
|
+
protected abstract getValue(value: string): any;
|
|
624
|
+
private _handle;
|
|
625
|
+
protected onChange(evt?: Event): Promise<any>;
|
|
626
|
+
protected registerInputFields(inputFields?: HTMLElement | HTMLElement[]): void;
|
|
627
|
+
protected unregisterInputFields(inputFields?: HTMLElement | HTMLElement[]): void;
|
|
628
|
+
viewActivatedCallback(): void;
|
|
629
|
+
disconnectedCallback(): void;
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
declare abstract class PacemBaseValidatorElement extends PacemFormRelevantElement implements Validator {
|
|
633
|
+
#private;
|
|
634
|
+
constructor();
|
|
635
|
+
invalid: boolean;
|
|
636
|
+
errorMessage: string;
|
|
637
|
+
watch: string;
|
|
638
|
+
viewActivatedCallback(): void;
|
|
639
|
+
propertyChangedCallback(name: string, old: any, val: any, first: boolean): void;
|
|
640
|
+
protected triggerFormFieldValidation(): void;
|
|
641
|
+
validate(val: any): PromiseLike<boolean>;
|
|
642
|
+
protected abstract evaluate(val: any): PromiseLike<boolean>;
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
declare class PacemBinaryValidatorElement extends PacemBaseValidatorElement {
|
|
646
|
+
pattern: string | RegExp;
|
|
647
|
+
maxSize: number;
|
|
648
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
649
|
+
protected evaluate(val: string | BinaryValue): PromiseLike<boolean>;
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
declare class PacemCalendarMonthPickerElement extends Components_2.PacemElement {
|
|
653
|
+
month: Date | string | number;
|
|
654
|
+
viewYear: number;
|
|
655
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
656
|
+
private _getMonthLabel;
|
|
657
|
+
private _isThisMonth;
|
|
658
|
+
private _isSelectedMonth;
|
|
659
|
+
private _setMonth;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
declare class PacemCalendarPickerElement extends PacemBaseElement {
|
|
663
|
+
#private;
|
|
664
|
+
private _input;
|
|
665
|
+
private _span;
|
|
666
|
+
private _clearButton;
|
|
667
|
+
private _proxy;
|
|
668
|
+
private _calendar;
|
|
669
|
+
private _monthPicker;
|
|
670
|
+
private _yearPicker;
|
|
671
|
+
private _monthLabel;
|
|
672
|
+
private _yearLabel;
|
|
673
|
+
private _rangeLabel;
|
|
674
|
+
private _dropdown;
|
|
675
|
+
private _swiper;
|
|
676
|
+
format: Intl.DateTimeFormatOptions | string;
|
|
677
|
+
disabledRanges: Components_3.UI.DateRange[];
|
|
678
|
+
weekStart: 'mon' | 'sun' | 'm' | 's' | 'monday' | 'sunday';
|
|
679
|
+
viewmode: 'calendar' | 'month' | 'year';
|
|
680
|
+
private _week;
|
|
681
|
+
private _viewDate;
|
|
682
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
683
|
+
viewActivatedCallback(): void;
|
|
684
|
+
disconnectedCallback(): void;
|
|
685
|
+
private _swipeHandler;
|
|
686
|
+
private _clearBtnHandler;
|
|
687
|
+
private _getHeaderLabel;
|
|
688
|
+
private _prev;
|
|
689
|
+
private _next;
|
|
690
|
+
private _jumpMonths;
|
|
691
|
+
private _setMonth;
|
|
692
|
+
private _setYear;
|
|
693
|
+
private _viewDateChangeHandler;
|
|
694
|
+
private _onViewDateChange;
|
|
695
|
+
private _popCalendarHandler;
|
|
696
|
+
private _hideCalendarHandler;
|
|
697
|
+
private _hideCalendar;
|
|
698
|
+
protected get inputFields(): HTMLElement[];
|
|
699
|
+
protected toggleReadonlyView(readonly: boolean): void;
|
|
700
|
+
protected onChange(evt?: Event): PromiseLike<any>;
|
|
701
|
+
protected acceptValue(val: any): void;
|
|
702
|
+
protected getViewValue(value: any): string;
|
|
703
|
+
protected compareValuePropertyValues(old: any, val: any): boolean;
|
|
704
|
+
protected convertValueAttributeToProperty(attr: string): any;
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
declare class PacemCalendarYearPickerElement extends Components_2.PacemElement {
|
|
708
|
+
year: Date | string | number;
|
|
709
|
+
viewYear: number;
|
|
710
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
711
|
+
private _getYearLabel;
|
|
712
|
+
private _isThisYear;
|
|
713
|
+
private _isSelectedYear;
|
|
714
|
+
private _setYear;
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
declare class PacemCharCountElement extends Components_2.PacemElement {
|
|
718
|
+
minlength: number;
|
|
719
|
+
maxlength: number;
|
|
720
|
+
string: string;
|
|
721
|
+
private _isValid;
|
|
722
|
+
private _length;
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
declare class PacemCharsInputElement extends PacemBaseInputElement {
|
|
726
|
+
#private;
|
|
727
|
+
charCount: number;
|
|
728
|
+
inputTransform: 'uppercase' | 'lowercase' | 'password' | 'none';
|
|
729
|
+
constructor();
|
|
730
|
+
private redactViewValue;
|
|
731
|
+
protected getValue(_: string): string;
|
|
732
|
+
protected getViewValue(value: any): string;
|
|
733
|
+
protected convertValueAttributeToProperty(attr: string): string;
|
|
734
|
+
private _chars;
|
|
735
|
+
private _span;
|
|
736
|
+
protected toggleReadonlyView(readonly?: boolean): void;
|
|
737
|
+
/** Override base behavior. */
|
|
738
|
+
focus(): void;
|
|
739
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
740
|
+
/**
|
|
741
|
+
* Override to apply input transform to all input fields.
|
|
742
|
+
* @param fields
|
|
743
|
+
*/
|
|
744
|
+
protected registerInputFields(fields?: HTMLInputElement | HTMLInputElement[]): void;
|
|
745
|
+
protected acceptValue(val: any): void;
|
|
746
|
+
protected onChange(evt: Event): Promise<any>;
|
|
747
|
+
viewActivatedCallback(): void;
|
|
748
|
+
disconnectedCallback(): void;
|
|
749
|
+
private _itemCreateHandler;
|
|
750
|
+
private _databind;
|
|
751
|
+
protected get inputFields(): HTMLInputElement[];
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
declare class PacemCheckboxElement extends PacemBaseElement {
|
|
755
|
+
constructor();
|
|
756
|
+
private _key;
|
|
757
|
+
protected convertValueAttributeToProperty(attr: string): void;
|
|
758
|
+
private _checkbox;
|
|
759
|
+
private _label;
|
|
760
|
+
span: HTMLElement;
|
|
761
|
+
caption: string;
|
|
762
|
+
trueValue: any;
|
|
763
|
+
falseValue: any;
|
|
764
|
+
selected: boolean;
|
|
765
|
+
protected toggleReadonlyView(readonly: boolean): void;
|
|
766
|
+
protected get inputFields(): HTMLInputElement[];
|
|
767
|
+
protected onChange(evt?: Event): Promise<any>;
|
|
768
|
+
viewActivatedCallback(): void;
|
|
769
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
770
|
+
private _synchronizeUi;
|
|
771
|
+
protected acceptValue(val: any): void;
|
|
772
|
+
protected getViewValue(val: any): string;
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
declare class PacemCheckboxListElement extends PacemDataSourceElement {
|
|
776
|
+
protected acceptValue(val: any): void;
|
|
777
|
+
constructor();
|
|
778
|
+
protected get inputFields(): any[];
|
|
779
|
+
private _span;
|
|
780
|
+
private _repeater;
|
|
781
|
+
private _disable;
|
|
782
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
783
|
+
viewActivatedCallback(): void;
|
|
784
|
+
protected toggleReadonlyView(readonly: boolean): void;
|
|
785
|
+
private _selectedUiItems;
|
|
786
|
+
private _selectionChanged;
|
|
787
|
+
protected onChange(evt?: Event): Promise<any[]>;
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
/** Represents a sub-form for automatic generation of editing fields for sub-entities. */
|
|
791
|
+
declare class PacemChildFormElement extends PacemBaseElement implements Net.OAuthFetchable {
|
|
792
|
+
fetchCredentials: RequestCredentials;
|
|
793
|
+
fetchHeaders: {
|
|
794
|
+
[key: string]: string;
|
|
795
|
+
};
|
|
796
|
+
protected get inputFields(): HTMLElement[];
|
|
797
|
+
protected toggleReadonlyView(readonly: boolean): void;
|
|
798
|
+
protected onChange(evt?: Event): PromiseLike<any>;
|
|
799
|
+
protected acceptValue(val: any): void;
|
|
800
|
+
protected getViewValue(value: any): string;
|
|
801
|
+
protected convertValueAttributeToProperty(attr: string): any;
|
|
802
|
+
private _container;
|
|
803
|
+
private _dragger;
|
|
804
|
+
private _floater;
|
|
805
|
+
mode: 'array' | 'object';
|
|
806
|
+
lockItems: boolean;
|
|
807
|
+
metadata: TypeMetadata | PropertyMetadata[];
|
|
808
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
809
|
+
/** Internal representation of the entity. */
|
|
810
|
+
private _model;
|
|
811
|
+
private _dragStart;
|
|
812
|
+
private _dragEnd;
|
|
813
|
+
reset(): void;
|
|
814
|
+
private _subForms;
|
|
815
|
+
private _itemCreate;
|
|
816
|
+
private _itemChange;
|
|
817
|
+
private _deleteAt;
|
|
818
|
+
private _addItem;
|
|
819
|
+
private _triggerChange;
|
|
820
|
+
private _entityToModel;
|
|
821
|
+
private _modelToEntity;
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
/** For internal use ONLY! */
|
|
825
|
+
declare class PacemChildFormPropagatorElement extends PacemEventTarget {
|
|
826
|
+
model: any;
|
|
827
|
+
/** Entity property replicated on @see model. */
|
|
828
|
+
property: string;
|
|
829
|
+
watch: any;
|
|
830
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
831
|
+
viewActivatedCallback(): void;
|
|
832
|
+
private _synchronize;
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
declare class PacemColorInputElement extends PacemBaseElement {
|
|
836
|
+
protected acceptValue(val: any): void;
|
|
837
|
+
protected convertValueAttributeToProperty(attr: string): string;
|
|
838
|
+
protected onChange(evt?: Event): PromiseLike<any>;
|
|
839
|
+
constructor();
|
|
840
|
+
_tint: HTMLInputElement;
|
|
841
|
+
_alpha: HTMLInputElement;
|
|
842
|
+
_wrapper: HTMLElement;
|
|
843
|
+
_span: Components_2.PacemSpanElement;
|
|
844
|
+
protected toggleReadonlyView(readonly: boolean): void;
|
|
845
|
+
private _getValue;
|
|
846
|
+
private _parseValue;
|
|
847
|
+
protected getViewValue(value: any): string;
|
|
848
|
+
protected get inputFields(): HTMLInputElement[];
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
declare class PacemCompareValidatorElement extends PacemBaseValidatorElement {
|
|
852
|
+
operator: 'equal' | 'lessOrEqual' | 'less' | 'greater' | 'greaterOrEqual' | 'notEqual';
|
|
853
|
+
to: any;
|
|
854
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
855
|
+
private _prepareValuesForComparison;
|
|
856
|
+
evaluate(val: any): Promise<boolean>;
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
declare class PacemContenteditableAlignCommandElement extends PacemContenteditableButtonCommandElement {
|
|
860
|
+
isRelevant(range: Range): boolean;
|
|
861
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
862
|
+
align: 'left' | 'right' | 'center' | 'justify';
|
|
863
|
+
exec(): Promise<void>;
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
declare abstract class PacemContenteditableButtonCommandElement extends PacemContenteditableCommandElement {
|
|
867
|
+
icon: string;
|
|
868
|
+
keyboardShortcut: string;
|
|
869
|
+
altText: string;
|
|
870
|
+
active: boolean;
|
|
871
|
+
cleanUp(_: HTMLElement): void;
|
|
872
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
873
|
+
protected getTooltip(altText?: string, shortcut?: string): string;
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
declare abstract class PacemContenteditableCommandElement extends PacemItemElement<PacemContenteditableElement> implements ContenteditableCommand {
|
|
877
|
+
abstract exec(...args: any[]): Promise<any>;
|
|
878
|
+
abstract isRelevant(range: Range): boolean;
|
|
879
|
+
/**
|
|
880
|
+
* Cleans up all its relevant markup in order to obtain the most pure output.
|
|
881
|
+
* @param contentElement
|
|
882
|
+
*/
|
|
883
|
+
abstract cleanUp(contentElement: HTMLElement): void;
|
|
884
|
+
protected execCommand(...args: any[]): void;
|
|
885
|
+
connectedCallback(): void;
|
|
886
|
+
viewActivatedCallback(): void;
|
|
887
|
+
disconnectedCallback(): void;
|
|
888
|
+
protected range: Range;
|
|
889
|
+
protected contentElement: HTMLDivElement;
|
|
890
|
+
private _containerPropChangeHandler;
|
|
891
|
+
protected containerPropertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
892
|
+
}
|
|
893
|
+
|
|
894
|
+
declare class PacemContenteditableElement extends PacemItemsContainerBaseElement<PacemContenteditableCommandElement> {
|
|
895
|
+
#private;
|
|
896
|
+
constructor();
|
|
897
|
+
get history(): HistoryService<string>;
|
|
898
|
+
reset(): void;
|
|
899
|
+
private _fireHistoryChange;
|
|
900
|
+
protected convertValueAttributeToProperty(attr: string): string;
|
|
901
|
+
private _container;
|
|
902
|
+
private _dashboard;
|
|
903
|
+
range: Range;
|
|
904
|
+
protected toggleReadonlyView(readonly: boolean): void;
|
|
905
|
+
register(item: PacemContenteditableCommandElement): boolean;
|
|
906
|
+
unregister(item: PacemContenteditableCommandElement): boolean;
|
|
907
|
+
/** @override */
|
|
908
|
+
protected get preventKeyboardSubmit(): boolean;
|
|
909
|
+
protected get inputFields(): HTMLDivElement[];
|
|
910
|
+
get contentElement(): HTMLDivElement;
|
|
911
|
+
protected onChange(evt?: Event): Promise<string>;
|
|
912
|
+
private _fixRangeMarkup;
|
|
913
|
+
private _ensureInteractiveMarkup;
|
|
914
|
+
private _focusHandler;
|
|
915
|
+
private _blurHandler;
|
|
916
|
+
private _pasteHandler;
|
|
917
|
+
private _shortcutHandler;
|
|
918
|
+
private _inputHandler;
|
|
919
|
+
private _checkChangedHandler;
|
|
920
|
+
private _updateHistory;
|
|
921
|
+
private _selectionChangeHandler;
|
|
922
|
+
protected acceptValue(val: any): void;
|
|
923
|
+
viewActivatedCallback(): void;
|
|
924
|
+
disconnectedCallback(): void;
|
|
925
|
+
protected getViewValue(val: any): any;
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
declare class PacemContenteditableExecCommandElement extends PacemContenteditableButtonCommandElement {
|
|
929
|
+
private _matchRelevance;
|
|
930
|
+
isRelevant(range: Range): boolean;
|
|
931
|
+
command: KnownExecCommand;
|
|
932
|
+
argument: string;
|
|
933
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
934
|
+
exec(): Promise<void>;
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
declare class PacemContenteditableHistoryCommandElement extends PacemContenteditableButtonCommandElement {
|
|
938
|
+
exec(): Promise<any>;
|
|
939
|
+
isRelevant(_: Range): boolean;
|
|
940
|
+
command: 'undo' | 'redo';
|
|
941
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
942
|
+
protected containerPropertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
declare class PacemContenteditableImageCommandElement extends PacemContenteditableButtonCommandElement implements ContenteditableFileCommand {
|
|
946
|
+
#private;
|
|
947
|
+
pasteCallback(f: File): Promise<HTMLPictureElement>;
|
|
948
|
+
cleanUp(content: HTMLElement): void;
|
|
949
|
+
isRelevant(range: Range): boolean;
|
|
950
|
+
private _file;
|
|
951
|
+
private _rescale;
|
|
952
|
+
viewActivatedCallback(): void;
|
|
953
|
+
disconnectedCallback(): void;
|
|
954
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
955
|
+
exec(): Promise<void>;
|
|
956
|
+
private _rescaleImg;
|
|
957
|
+
private _rangeChangeCallback;
|
|
958
|
+
private _setBehaviorHandler;
|
|
959
|
+
private _disposeBehaviorHandler;
|
|
960
|
+
private _enhancePictureElement;
|
|
961
|
+
private _downgradePictureElement;
|
|
962
|
+
private _initContainer;
|
|
963
|
+
private _disposeContainer;
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
declare class PacemContenteditableLinkCommandElement extends PacemContenteditableButtonCommandElement {
|
|
967
|
+
isRelevant(range: Range): boolean;
|
|
968
|
+
target: string;
|
|
969
|
+
viewActivatedCallback(): void;
|
|
970
|
+
exec(arg?: string, target?: string): Promise<void>;
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
declare class PacemContenteditablePlaceholderElement extends PacemContenteditableCommandElement {
|
|
974
|
+
#private;
|
|
975
|
+
private _itemtemplate;
|
|
976
|
+
private _dropdown;
|
|
977
|
+
cleanUp(content: HTMLElement): void;
|
|
978
|
+
exec(ph: string): Promise<any>;
|
|
979
|
+
datasource: (string | {
|
|
980
|
+
placeholder: string;
|
|
981
|
+
definition?: string;
|
|
982
|
+
})[];
|
|
983
|
+
isRelevant(_: Range): boolean;
|
|
984
|
+
viewActivatedCallback(): void;
|
|
985
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
986
|
+
disconnectedCallback(): void;
|
|
987
|
+
private _changeRelevancy;
|
|
988
|
+
private _fillDropdown;
|
|
989
|
+
private _initContainer;
|
|
990
|
+
private _disposeContainer;
|
|
991
|
+
private _focusHandler;
|
|
992
|
+
private _enhancePlaceholderElement;
|
|
993
|
+
private _downgradePlaceholderElement;
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
declare class PacemContenteditableWrapCommandElement extends PacemContenteditableButtonCommandElement {
|
|
997
|
+
isRelevant(range: Range): boolean;
|
|
998
|
+
tagname: string;
|
|
999
|
+
exec(): Promise<void>;
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
declare class PacemCustomValidatorElement extends PacemBaseValidatorElement {
|
|
1003
|
+
isValid: boolean;
|
|
1004
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
1005
|
+
protected evaluate(val: any): PromiseLike<boolean>;
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
declare class PacemDataItemElement extends PacemItemElement<PacemDataSourceElement> {
|
|
1009
|
+
value: any;
|
|
1010
|
+
label: string;
|
|
1011
|
+
disabled: boolean;
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
declare abstract class PacemDataSourceElement extends PacemItemsContainerBaseElement<PacemDataItemElement> {
|
|
1015
|
+
protected multipleChoice: boolean;
|
|
1016
|
+
constructor(multipleChoice?: boolean);
|
|
1017
|
+
datasource: any[];
|
|
1018
|
+
valueProperty: string;
|
|
1019
|
+
textProperty: string;
|
|
1020
|
+
disabledProperty: string;
|
|
1021
|
+
compareBy: string;
|
|
1022
|
+
protected adaptedDatasource: DataSource;
|
|
1023
|
+
/**
|
|
1024
|
+
* Registers a new item among the items.
|
|
1025
|
+
* @param item {PacemDataItemElement} Item to be enrolled
|
|
1026
|
+
*/
|
|
1027
|
+
register(item: PacemDataItemElement): boolean;
|
|
1028
|
+
/**
|
|
1029
|
+
* Removes an existing element from the items.
|
|
1030
|
+
* @param item {PacemDataItemElement} Item to be removed
|
|
1031
|
+
*/
|
|
1032
|
+
unregister(item: PacemDataItemElement): boolean;
|
|
1033
|
+
private _itemPropertyChangedHandler;
|
|
1034
|
+
protected buildAdaptedDatasource(ds?: any[]): DataSource;
|
|
1035
|
+
protected databind(datasource?: DataSource): void;
|
|
1036
|
+
protected handleDatasourceMismatch(datasource: DataSourceItem[]): void;
|
|
1037
|
+
/**
|
|
1038
|
+
* Checks wether the provided `item` matches the control's criteria for a selected option against a provided value (which defaults to control's value).
|
|
1039
|
+
* @param item {any} item to check against
|
|
1040
|
+
* @param value {any} value to match
|
|
1041
|
+
*/
|
|
1042
|
+
protected isItemSelected(item: any, value?: any): boolean;
|
|
1043
|
+
/**
|
|
1044
|
+
* Checks wether the provided `item` matches the control's criteria for a selected option against a provided value (which defaults to control's value).
|
|
1045
|
+
* @param item {DataSourceItem} item to check against
|
|
1046
|
+
* @param value {any} value to match
|
|
1047
|
+
*/
|
|
1048
|
+
protected isDataSourceItemSelected(item: DataSourceItem, value?: any): boolean;
|
|
1049
|
+
protected mapEntityToValue(entity: any): any;
|
|
1050
|
+
protected mapEntityToViewValue(entity: any): string;
|
|
1051
|
+
protected mapEntityToItem(entity: any): DataSourceItem;
|
|
1052
|
+
private _handle;
|
|
1053
|
+
private _handleItems;
|
|
1054
|
+
propertyChangedCallback(name: string, old: any, val: any, first: boolean): void;
|
|
1055
|
+
protected getViewValue(val: any): string;
|
|
1056
|
+
protected convertValueAttributeToProperty(attr: string): string | string[];
|
|
1057
|
+
protected compareValuePropertyValues(old: any, val: any): boolean;
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
declare class PacemDatetimePickerElement extends PacemBaseElement {
|
|
1061
|
+
constructor();
|
|
1062
|
+
private _yearel;
|
|
1063
|
+
private _monthel;
|
|
1064
|
+
private _dateel;
|
|
1065
|
+
private _hourel;
|
|
1066
|
+
private _minel;
|
|
1067
|
+
private _secel;
|
|
1068
|
+
protected get inputFields(): PacemSelectElement[];
|
|
1069
|
+
private _allFields;
|
|
1070
|
+
protected toggleReadonlyView(readonly: boolean): void;
|
|
1071
|
+
protected convertValueAttributeToProperty(attr: string): any;
|
|
1072
|
+
dateValue: Date;
|
|
1073
|
+
min: string | Date;
|
|
1074
|
+
max: string | Date;
|
|
1075
|
+
precision: 'day' | 'minute' | 'second';
|
|
1076
|
+
format: Intl.DateTimeFormatOptions | string;
|
|
1077
|
+
connectedCallback(): void;
|
|
1078
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
1079
|
+
protected acceptValue(val: any): void;
|
|
1080
|
+
private _disassembleDate;
|
|
1081
|
+
private _months;
|
|
1082
|
+
private _dates;
|
|
1083
|
+
private _a24;
|
|
1084
|
+
private _a60;
|
|
1085
|
+
private _years;
|
|
1086
|
+
private year;
|
|
1087
|
+
private month;
|
|
1088
|
+
private date;
|
|
1089
|
+
private hours;
|
|
1090
|
+
private minutes;
|
|
1091
|
+
private seconds;
|
|
1092
|
+
private _setupYears;
|
|
1093
|
+
protected onChange(evt?: Event): Promise<unknown>;
|
|
1094
|
+
private _buildupDates;
|
|
1095
|
+
private _computeValue;
|
|
1096
|
+
private _buildup;
|
|
1097
|
+
protected getViewValue(val: any): string;
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
declare class PacemEditImageElement extends Components_2.PacemElement {
|
|
1101
|
+
private _uploaderPropertyChangedCallback;
|
|
1102
|
+
private _thumbnailUploaderPropertyChangedCallback;
|
|
1103
|
+
private _uploaderFileUploadCallback;
|
|
1104
|
+
private _done;
|
|
1105
|
+
private _snapshotPropertyChangedCallback;
|
|
1106
|
+
reset(): void;
|
|
1107
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
1108
|
+
uploadUrl: string;
|
|
1109
|
+
private _index;
|
|
1110
|
+
hint: string;
|
|
1111
|
+
imageSet: PictureSet;
|
|
1112
|
+
value: string;
|
|
1113
|
+
maxWidth: number;
|
|
1114
|
+
maxHeight: number;
|
|
1115
|
+
maxThumbnailWidth: number;
|
|
1116
|
+
maxThumbnailHeight: number;
|
|
1117
|
+
allowSnapshot: boolean;
|
|
1118
|
+
private _fetching;
|
|
1119
|
+
private _images;
|
|
1120
|
+
private _repeater;
|
|
1121
|
+
private _uploader;
|
|
1122
|
+
private _thumbUploader;
|
|
1123
|
+
private _snapshot;
|
|
1124
|
+
private _progressbar;
|
|
1125
|
+
private _imagefetchSuddenly;
|
|
1126
|
+
private _imagefetch;
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1129
|
+
declare class PacemEmailInputElement extends PacemTextualInputElement {
|
|
1130
|
+
input: HTMLInputElement;
|
|
1131
|
+
anchor: Components_3.UI.PacemAnchorElement;
|
|
1132
|
+
protected toggleReadonlyView(readonly: boolean): void;
|
|
1133
|
+
protected get inputFields(): HTMLInputElement[];
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
declare class PacemFormElement extends PacemFormRelevantElement implements Net.OAuthFetchable {
|
|
1137
|
+
#private;
|
|
1138
|
+
fetcher: Components_2.PacemFetchElement;
|
|
1139
|
+
fetchCredentials: RequestCredentials;
|
|
1140
|
+
fetchHeaders: {
|
|
1141
|
+
[key: string]: string;
|
|
1142
|
+
};
|
|
1143
|
+
method: Net.HttpMethod;
|
|
1144
|
+
submitCaption: string;
|
|
1145
|
+
resetCaption: string;
|
|
1146
|
+
private _emitter;
|
|
1147
|
+
constructor();
|
|
1148
|
+
propertyChangedCallback(name: string, old: any, val: any, first: boolean): void;
|
|
1149
|
+
viewActivatedCallback(): void;
|
|
1150
|
+
disconnectedCallback(): void;
|
|
1151
|
+
private _buildUpForm;
|
|
1152
|
+
private _buttons;
|
|
1153
|
+
/** Gets the 'submit' and 'reset' form buttons. */
|
|
1154
|
+
get formButtons(): {
|
|
1155
|
+
submit: Element;
|
|
1156
|
+
reset: Element;
|
|
1157
|
+
};
|
|
1158
|
+
get fetching(): boolean;
|
|
1159
|
+
private _keyupHandler;
|
|
1160
|
+
private _submit;
|
|
1161
|
+
/**
|
|
1162
|
+
* Submits the form data via a provided fetcher.
|
|
1163
|
+
* @param fetcher The fetching delegate.
|
|
1164
|
+
*/
|
|
1165
|
+
submit(fetcher: Net.Fetcher): PromiseLike<any>;
|
|
1166
|
+
/** Resets the form to its pristine values. */
|
|
1167
|
+
reset(): void;
|
|
1168
|
+
private _submitInternally;
|
|
1169
|
+
private _getAllFields;
|
|
1170
|
+
private _reset;
|
|
1171
|
+
/** Modifies the state of the current entity programmatically. */
|
|
1172
|
+
apply(state: {
|
|
1173
|
+
[key: string]: any;
|
|
1174
|
+
}): void;
|
|
1175
|
+
/** Sets the current form (or the fields of it having the specified names) in a pristine state. */
|
|
1176
|
+
setPristine(...names: string[]): void;
|
|
1177
|
+
/** Sets the current form (or the fields of it having the specified names) in a dirty state. */
|
|
1178
|
+
setDirty(...names: string[]): void;
|
|
1179
|
+
private _setAs;
|
|
1180
|
+
private _fields;
|
|
1181
|
+
private _validators;
|
|
1182
|
+
private _subForms;
|
|
1183
|
+
private _fieldPropertyChanged;
|
|
1184
|
+
private _validatorPropertyChanged;
|
|
1185
|
+
private _checkFieldValidity;
|
|
1186
|
+
validate(name?: string): PromiseLike<boolean>;
|
|
1187
|
+
private _validateAllFields;
|
|
1188
|
+
private _validateField;
|
|
1189
|
+
private _checkDirtyness;
|
|
1190
|
+
private _checkValidity;
|
|
1191
|
+
registerSubForm(form: PacemFormElement): void;
|
|
1192
|
+
unregisterSubForm(form: PacemFormElement): void;
|
|
1193
|
+
registerField(name: string, model: PacemModel): void;
|
|
1194
|
+
unregisterField(name: string, check?: boolean): void;
|
|
1195
|
+
registerValidator(name: string, validator: Validator): void;
|
|
1196
|
+
unregisterValidator(name: string, validator: Validator): void;
|
|
1197
|
+
private _unregisterValidator;
|
|
1198
|
+
valid: boolean;
|
|
1199
|
+
dirty: boolean;
|
|
1200
|
+
readonly: boolean;
|
|
1201
|
+
success: boolean;
|
|
1202
|
+
fail: boolean;
|
|
1203
|
+
entity: any;
|
|
1204
|
+
entityName: string;
|
|
1205
|
+
metadata: TypeMetadata | PropertyMetadata[];
|
|
1206
|
+
autogenerate: boolean;
|
|
1207
|
+
/** Gets or sets whether to hint invalid fields even if still pristine (default 'true').
|
|
1208
|
+
* When 'true' - and form is autogenerated - the submit button status is tightly bound to the form valid state. */
|
|
1209
|
+
suddenValidation: boolean;
|
|
1210
|
+
/** Gets or sets whether the form should show - when autogenerated - the reset button. */
|
|
1211
|
+
resettable: boolean;
|
|
1212
|
+
action: string;
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1215
|
+
declare class PacemFormFieldElement extends PacemFormRelevantElement implements Net.OAuthFetchable {
|
|
1216
|
+
private _md;
|
|
1217
|
+
constructor(_md?: Components_3.UI.MarkdownService);
|
|
1218
|
+
private _field;
|
|
1219
|
+
private _key;
|
|
1220
|
+
private _label;
|
|
1221
|
+
private _container;
|
|
1222
|
+
private _balloon;
|
|
1223
|
+
private _fetcher;
|
|
1224
|
+
private _form;
|
|
1225
|
+
private _validators;
|
|
1226
|
+
get key(): string;
|
|
1227
|
+
get fetcher(): Net.Fetcher;
|
|
1228
|
+
metadata: PropertyMetadata;
|
|
1229
|
+
fetchHeaders: {
|
|
1230
|
+
[key: string]: string;
|
|
1231
|
+
};
|
|
1232
|
+
fetchCredentials: RequestCredentials;
|
|
1233
|
+
readonly: boolean;
|
|
1234
|
+
entity: any;
|
|
1235
|
+
get field(): HTMLElement;
|
|
1236
|
+
viewActivatedCallback(): void;
|
|
1237
|
+
propertyChangedCallback(name: string, old?: any, val?: any, first?: boolean): void;
|
|
1238
|
+
disconnectedCallback(): void;
|
|
1239
|
+
private _entityPropertyChangeHandler;
|
|
1240
|
+
private _normalizeTooltip;
|
|
1241
|
+
private _ensureBalloon;
|
|
1242
|
+
private _buildUpCss;
|
|
1243
|
+
private _buildUpLabel;
|
|
1244
|
+
private _labelClickHandler;
|
|
1245
|
+
private _isValueNullOrEmpty;
|
|
1246
|
+
/**
|
|
1247
|
+
* Reflects the value onto the entity attribute, if the 'entity' is an instance of HTMLElement.
|
|
1248
|
+
*/
|
|
1249
|
+
private _handleValueChange;
|
|
1250
|
+
/**
|
|
1251
|
+
* 'Prettifies' the input value (for some specific cases) to be included in an URL segment or query string.
|
|
1252
|
+
* @param v Input value
|
|
1253
|
+
*/
|
|
1254
|
+
private _adjustDependencyValue;
|
|
1255
|
+
private _broadcastFetchResult;
|
|
1256
|
+
private _buildUpFetcher;
|
|
1257
|
+
private _buildUpForm;
|
|
1258
|
+
private _buildUpField;
|
|
1259
|
+
}
|
|
1260
|
+
|
|
1261
|
+
declare interface PacemFormOrField {
|
|
1262
|
+
dirty: boolean;
|
|
1263
|
+
valid: boolean;
|
|
1264
|
+
name: string;
|
|
1265
|
+
form: PacemFormElement;
|
|
1266
|
+
setPristine(): void;
|
|
1267
|
+
setDirty(): void;
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
declare abstract class PacemFormRelevantElement extends Components_2.PacemElement {
|
|
1271
|
+
form: PacemFormElement;
|
|
1272
|
+
viewActivatedCallback(): void;
|
|
1273
|
+
}
|
|
1274
|
+
|
|
1275
|
+
declare class PacemGeolocateElement extends PacemBaseElement {
|
|
1276
|
+
#private;
|
|
1277
|
+
protected get inputFields(): HTMLElement[];
|
|
1278
|
+
protected toggleReadonlyView(readonly: boolean): void;
|
|
1279
|
+
protected onChange(evt?: CustomEvent<Address[]>): PromiseLike<any>;
|
|
1280
|
+
fetch(search: Maps.LatLng): void;
|
|
1281
|
+
protected compareValuePropertyValues(old: Address, any: Address): boolean;
|
|
1282
|
+
protected acceptValue(val: Address): void;
|
|
1283
|
+
protected getViewValue(value: Address): string;
|
|
1284
|
+
protected convertValueAttributeToProperty(attr: string): any;
|
|
1285
|
+
adapter: Components_4.Maps.PacemMapAdapterElement;
|
|
1286
|
+
map: Components_4.Maps.PacemMapElement;
|
|
1287
|
+
icon: string | Icon;
|
|
1288
|
+
private _datasource;
|
|
1289
|
+
private _suggest;
|
|
1290
|
+
private _geocoder;
|
|
1291
|
+
private _reverseGeocoder;
|
|
1292
|
+
viewActivatedCallback(): void;
|
|
1293
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
1294
|
+
disconnectedCallback(): void;
|
|
1295
|
+
private _setupAdapters;
|
|
1296
|
+
private _setupSuggest;
|
|
1297
|
+
private _detachMarker;
|
|
1298
|
+
private _dragendHandler;
|
|
1299
|
+
private _createMarker;
|
|
1300
|
+
private _disposeMarker;
|
|
1301
|
+
private _setupMapMarker;
|
|
1302
|
+
private _setup;
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
declare class PacemHiddenInputElement extends PacemTextualInputElement {
|
|
1306
|
+
constructor();
|
|
1307
|
+
input: HTMLInputElement;
|
|
1308
|
+
protected toggleReadonlyView(readonly: boolean): void;
|
|
1309
|
+
protected get inputFields(): HTMLInputElement[];
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1312
|
+
declare class PacemHierarchyElement extends PacemBaseElement {
|
|
1313
|
+
#private;
|
|
1314
|
+
protected getViewValue(value: any): string;
|
|
1315
|
+
protected convertValueAttributeToProperty(attr: string): any;
|
|
1316
|
+
constructor();
|
|
1317
|
+
private _balloon;
|
|
1318
|
+
private _defaultTemplate;
|
|
1319
|
+
private _repeater;
|
|
1320
|
+
private _dragger;
|
|
1321
|
+
private _dragger2;
|
|
1322
|
+
private _shellProxy;
|
|
1323
|
+
datasource: any[];
|
|
1324
|
+
valueProperty: string;
|
|
1325
|
+
textProperty: string;
|
|
1326
|
+
disabledProperty: string;
|
|
1327
|
+
unlinkCaption: string;
|
|
1328
|
+
private _adaptedDatasource;
|
|
1329
|
+
itemtemplate: HTMLTemplateElement;
|
|
1330
|
+
private _template;
|
|
1331
|
+
/**
|
|
1332
|
+
* */
|
|
1333
|
+
parentsProperty: string;
|
|
1334
|
+
protected get inputFields(): HTMLElement[];
|
|
1335
|
+
protected toggleReadonlyView(readonly: boolean): void;
|
|
1336
|
+
protected onChange(evt?: Event): PromiseLike<any>;
|
|
1337
|
+
protected acceptValue(val: any): void;
|
|
1338
|
+
viewActivatedCallback(): void;
|
|
1339
|
+
private _handle;
|
|
1340
|
+
private _handle2;
|
|
1341
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
1342
|
+
disconnectedCallback(): void;
|
|
1343
|
+
private _buildAdaptedDatasource;
|
|
1344
|
+
private _mapEntityToValue;
|
|
1345
|
+
private _mapEntityToViewValue;
|
|
1346
|
+
private _mapEntityToItem;
|
|
1347
|
+
private _unlink;
|
|
1348
|
+
private _binderClickHandler;
|
|
1349
|
+
private _buildHierarchyItemDomId;
|
|
1350
|
+
private _itemCreate;
|
|
1351
|
+
private _itemRemove;
|
|
1352
|
+
private _setupItemTemplate;
|
|
1353
|
+
private _compileHierarchy;
|
|
1354
|
+
private _cleanupHierarchy;
|
|
1355
|
+
private _dragInitHandler;
|
|
1356
|
+
private _dragStartHandler;
|
|
1357
|
+
private _dragHandler;
|
|
1358
|
+
private _dragEndHandler;
|
|
1359
|
+
private _dropHandler;
|
|
1360
|
+
private _dragOverHandler;
|
|
1361
|
+
private _dragOutHandler;
|
|
1362
|
+
private _setupDragger;
|
|
1363
|
+
private _disposeDragger;
|
|
1364
|
+
private _popoutHandler;
|
|
1365
|
+
private _setupBalloon;
|
|
1366
|
+
private _disposeBalloon;
|
|
1367
|
+
private _isInAncestors;
|
|
1368
|
+
private _isInDescendants;
|
|
1369
|
+
private _databind;
|
|
1370
|
+
private _databindByParents;
|
|
1371
|
+
}
|
|
1372
|
+
|
|
1373
|
+
declare class PacemImageInputElement extends PacemBaseElement {
|
|
1374
|
+
protected convertValueAttributeToProperty(attr: string): string;
|
|
1375
|
+
private _editImage;
|
|
1376
|
+
private _dialog;
|
|
1377
|
+
private _image;
|
|
1378
|
+
private _editBtn;
|
|
1379
|
+
private _clearBtn;
|
|
1380
|
+
private _input;
|
|
1381
|
+
getViewValue(value: any): any;
|
|
1382
|
+
protected get inputFields(): any[];
|
|
1383
|
+
private _clear;
|
|
1384
|
+
protected onChange(evt?: Event): PromiseLike<any>;
|
|
1385
|
+
protected toggleReadonlyView(readonly: boolean): void;
|
|
1386
|
+
private _addDialog;
|
|
1387
|
+
private _removeDialog;
|
|
1388
|
+
private _addEditImage;
|
|
1389
|
+
private _removeEditImage;
|
|
1390
|
+
private _broadcastFetchRequestEventName;
|
|
1391
|
+
private _innerValueChangedHandler;
|
|
1392
|
+
connectedCallback(): void;
|
|
1393
|
+
disconnectedCallback(): void;
|
|
1394
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
1395
|
+
protected acceptValue(val: any): void;
|
|
1396
|
+
private _update;
|
|
1397
|
+
private _retrieve;
|
|
1398
|
+
_edit(evt: Event): void;
|
|
1399
|
+
uploadUrl: string;
|
|
1400
|
+
imageSet: PictureSet;
|
|
1401
|
+
maxWidth: number;
|
|
1402
|
+
maxHeight: number;
|
|
1403
|
+
maxThumbnailWidth: number;
|
|
1404
|
+
maxThumbnailHeight: number;
|
|
1405
|
+
allowSnapshot: boolean;
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1408
|
+
declare abstract class PacemItemElement<TContainer extends PacemItemsContainerBaseElement<any>> extends Components_2.PacemElement {
|
|
1409
|
+
#private;
|
|
1410
|
+
/** @overridable */
|
|
1411
|
+
protected findContainer(): TContainer;
|
|
1412
|
+
protected get container(): TContainer;
|
|
1413
|
+
viewActivatedCallback(): void;
|
|
1414
|
+
disconnectedCallback(): void;
|
|
1415
|
+
}
|
|
1416
|
+
|
|
1417
|
+
declare abstract class PacemItemsContainerBaseElement<TItem extends HTMLElement> extends PacemBaseElement implements ItemsContainer<TItem> {
|
|
1418
|
+
items: TItem[];
|
|
1419
|
+
/**
|
|
1420
|
+
* Registers a new item among the items.
|
|
1421
|
+
* @param item {PacemDataItemElement} Item to be enrolled
|
|
1422
|
+
*/
|
|
1423
|
+
register(item: TItem): boolean;
|
|
1424
|
+
/**
|
|
1425
|
+
* Removes an existing element from the items.
|
|
1426
|
+
* @param item {PacemDataItemElement} Item to be removed
|
|
1427
|
+
*/
|
|
1428
|
+
unregister(item: TItem): boolean;
|
|
1429
|
+
}
|
|
1430
|
+
|
|
1431
|
+
declare class PacemLatLngElement extends PacemBaseElement {
|
|
1432
|
+
protected convertValueAttributeToProperty(attr: string): {
|
|
1433
|
+
lat: number;
|
|
1434
|
+
lng: number;
|
|
1435
|
+
};
|
|
1436
|
+
protected compareValuePropertyValues(old: any, val: any): boolean;
|
|
1437
|
+
protected getViewValue(value: any): string;
|
|
1438
|
+
private _getViewValue;
|
|
1439
|
+
protected get inputFields(): HTMLElement[];
|
|
1440
|
+
protected toggleReadonlyView(readonly: boolean): void;
|
|
1441
|
+
protected acceptValue(val: any): void;
|
|
1442
|
+
private _ensureValue;
|
|
1443
|
+
protected onChange(evt?: Event): PromiseLike<any>;
|
|
1444
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
1445
|
+
viewActivatedCallback(): void;
|
|
1446
|
+
private _synchronizeOptions;
|
|
1447
|
+
private _leafletAdapter;
|
|
1448
|
+
private _azureAdapter;
|
|
1449
|
+
private _googleAdapter;
|
|
1450
|
+
private _map;
|
|
1451
|
+
private _marker;
|
|
1452
|
+
private _latInput;
|
|
1453
|
+
private _lngInput;
|
|
1454
|
+
private _inputContainer;
|
|
1455
|
+
private _fetcher;
|
|
1456
|
+
options: LatLngOptions;
|
|
1457
|
+
private _lat;
|
|
1458
|
+
private _lng;
|
|
1459
|
+
}
|
|
1460
|
+
|
|
1461
|
+
declare class PacemLengthValidatorElement extends PacemBaseValidatorElement {
|
|
1462
|
+
min: number;
|
|
1463
|
+
max: number;
|
|
1464
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
1465
|
+
evaluate(val: any): Promise<boolean>;
|
|
1466
|
+
}
|
|
1467
|
+
|
|
1468
|
+
declare class PacemMarkdownTextAreaElement extends PacemTextualInputElement {
|
|
1469
|
+
private _md;
|
|
1470
|
+
constructor(_md?: Components_3.UI.MarkdownService);
|
|
1471
|
+
rows: number;
|
|
1472
|
+
cols: number;
|
|
1473
|
+
input: HTMLTextAreaElement;
|
|
1474
|
+
private _markdown;
|
|
1475
|
+
protected toggleReadonlyView(readonly: boolean): void;
|
|
1476
|
+
/** @override */
|
|
1477
|
+
protected get preventKeyboardSubmit(): boolean;
|
|
1478
|
+
protected get inputFields(): HTMLTextAreaElement[];
|
|
1479
|
+
protected getViewValue(val: any): string;
|
|
1480
|
+
propertyChangedCallback(name: string, old: any, val: any, first: boolean): void;
|
|
1481
|
+
viewActivatedCallback(): void;
|
|
1482
|
+
disconnectedCallback(): void;
|
|
1483
|
+
private _keydownHandler;
|
|
1484
|
+
}
|
|
1485
|
+
|
|
1486
|
+
declare interface PacemModel extends PacemFormOrField {
|
|
1487
|
+
value: any;
|
|
1488
|
+
viewValue: string;
|
|
1489
|
+
reset(): void;
|
|
1490
|
+
}
|
|
1491
|
+
|
|
1492
|
+
declare abstract class PacemModelElement extends PacemFormRelevantElement implements PacemModel {
|
|
1493
|
+
viewActivatedCallback(): void;
|
|
1494
|
+
private _registerFieldConditionally;
|
|
1495
|
+
propertyChangedCallback(name: string, old: any, val: any, first: boolean): void;
|
|
1496
|
+
disconnectedCallback(): void;
|
|
1497
|
+
protected get originalValue(): any;
|
|
1498
|
+
private _setAsOriginalValue;
|
|
1499
|
+
protected abstract getViewValue(value: any): string;
|
|
1500
|
+
reset(): void;
|
|
1501
|
+
setPristine(): void;
|
|
1502
|
+
setDirty(): void;
|
|
1503
|
+
protected abstract convertValueAttributeToProperty(attr: string): any;
|
|
1504
|
+
protected abstract compareValuePropertyValues(old: any, val: any): boolean;
|
|
1505
|
+
viewValue: string;
|
|
1506
|
+
value: any;
|
|
1507
|
+
dirty: boolean;
|
|
1508
|
+
valid: boolean;
|
|
1509
|
+
name: string;
|
|
1510
|
+
}
|
|
1511
|
+
|
|
1512
|
+
declare class PacemNameValueListElement extends PacemBaseElement {
|
|
1513
|
+
protected inputFields: HTMLElement[];
|
|
1514
|
+
protected toggleReadonlyView(readonly: boolean): void;
|
|
1515
|
+
protected onChange(evt?: Event): PromiseLike<any>;
|
|
1516
|
+
protected acceptValue(val: any): void;
|
|
1517
|
+
protected getViewValue(value: any): string;
|
|
1518
|
+
protected compareValuePropertyValues(old: any, val: any): boolean;
|
|
1519
|
+
protected convertValueAttributeToProperty(attr: string): any;
|
|
1520
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
1521
|
+
/** Gets or sets whether the names should be unique */
|
|
1522
|
+
dictionary: boolean;
|
|
1523
|
+
private _bag;
|
|
1524
|
+
private _bagToValue;
|
|
1525
|
+
private _valueToBag;
|
|
1526
|
+
private _deleteAt;
|
|
1527
|
+
private _addItem;
|
|
1528
|
+
}
|
|
1529
|
+
|
|
1530
|
+
declare class PacemNumberInputElement extends PacemOrdinalInputElement {
|
|
1531
|
+
private _input;
|
|
1532
|
+
private _span;
|
|
1533
|
+
format: Intl.NumberFormatOptions;
|
|
1534
|
+
protected toggleReadonlyView(readonly: boolean): void;
|
|
1535
|
+
protected get inputFields(): HTMLInputElement[];
|
|
1536
|
+
getViewValue(val: any): string;
|
|
1537
|
+
private _format;
|
|
1538
|
+
getValue(val: string): number;
|
|
1539
|
+
viewActivatedCallback(): void;
|
|
1540
|
+
disconnectedCallback(): void;
|
|
1541
|
+
}
|
|
1542
|
+
|
|
1543
|
+
declare abstract class PacemOrdinalInputElement extends PacemBaseInputElement {
|
|
1544
|
+
min: any;
|
|
1545
|
+
max: any;
|
|
1546
|
+
step: any;
|
|
1547
|
+
protected convertValueAttributeToProperty(attr: string): number;
|
|
1548
|
+
propertyChangedCallback(name: string, old: any, val: any, first: boolean): void;
|
|
1549
|
+
}
|
|
1550
|
+
|
|
1551
|
+
declare class PacemPasswordInputElement extends PacemTextualInputElement {
|
|
1552
|
+
constructor();
|
|
1553
|
+
private _input;
|
|
1554
|
+
private _span;
|
|
1555
|
+
private _toggler;
|
|
1556
|
+
protected get inputFields(): HTMLInputElement[];
|
|
1557
|
+
viewActivatedCallback(): void;
|
|
1558
|
+
disconnectedCallback(): void;
|
|
1559
|
+
toggleVisibility(): void;
|
|
1560
|
+
private _syncToggler;
|
|
1561
|
+
protected toggleReadonlyView(readonly: boolean): void;
|
|
1562
|
+
protected getViewValue(val: any): string;
|
|
1563
|
+
private _togglerMousedownHandler;
|
|
1564
|
+
}
|
|
1565
|
+
|
|
1566
|
+
declare class PacemPropertyPickerElement extends PacemBaseElement {
|
|
1567
|
+
protected get inputFields(): HTMLElement[];
|
|
1568
|
+
protected toggleReadonlyView(readonly: boolean): void;
|
|
1569
|
+
protected onChange(evt?: Event): PromiseLike<any>;
|
|
1570
|
+
protected acceptValue(val: any): void;
|
|
1571
|
+
protected getViewValue(value: any): string;
|
|
1572
|
+
protected convertValueAttributeToProperty(attr: string): any;
|
|
1573
|
+
private _select;
|
|
1574
|
+
target: HTMLElement;
|
|
1575
|
+
viewActivatedCallback(): void;
|
|
1576
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
1577
|
+
private _databind;
|
|
1578
|
+
}
|
|
1579
|
+
|
|
1580
|
+
declare class PacemRadioElement extends PacemBaseElement {
|
|
1581
|
+
protected convertValueAttributeToProperty(attr: string): string;
|
|
1582
|
+
constructor();
|
|
1583
|
+
private _key;
|
|
1584
|
+
private _radio;
|
|
1585
|
+
private _label;
|
|
1586
|
+
span: HTMLElement;
|
|
1587
|
+
caption: string;
|
|
1588
|
+
selected: boolean;
|
|
1589
|
+
protected toggleReadonlyView(readonly: boolean): void;
|
|
1590
|
+
protected get inputFields(): HTMLInputElement[];
|
|
1591
|
+
protected onChange(evt?: Event): Promise<string>;
|
|
1592
|
+
viewActivatedCallback(): void;
|
|
1593
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
1594
|
+
protected acceptValue(val: any): void;
|
|
1595
|
+
protected getViewValue(val: any): string;
|
|
1596
|
+
}
|
|
1597
|
+
|
|
1598
|
+
declare class PacemRadioListElement extends PacemDataSourceElement {
|
|
1599
|
+
protected acceptValue(val: any): void;
|
|
1600
|
+
constructor();
|
|
1601
|
+
protected get inputFields(): any[];
|
|
1602
|
+
private _repeater;
|
|
1603
|
+
private _disable;
|
|
1604
|
+
private _span;
|
|
1605
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
1606
|
+
viewActivatedCallback(): void;
|
|
1607
|
+
protected toggleReadonlyView(readonly: boolean): void;
|
|
1608
|
+
private _selectedValue;
|
|
1609
|
+
private _selectionChanged;
|
|
1610
|
+
protected onChange(evt?: Event): Promise<any>;
|
|
1611
|
+
}
|
|
1612
|
+
|
|
1613
|
+
declare class PacemRangeValidatorElement extends PacemBaseValidatorElement {
|
|
1614
|
+
min: any;
|
|
1615
|
+
max: any;
|
|
1616
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
1617
|
+
evaluate(val: any): Promise<boolean>;
|
|
1618
|
+
}
|
|
1619
|
+
|
|
1620
|
+
declare class PacemRegexValidatorElement extends PacemBaseValidatorElement {
|
|
1621
|
+
pattern: string | RegExp;
|
|
1622
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
1623
|
+
evaluate(val: any): Promise<boolean>;
|
|
1624
|
+
}
|
|
1625
|
+
|
|
1626
|
+
declare class PacemRequiredValidatorElement extends PacemBaseValidatorElement {
|
|
1627
|
+
evaluate(val: any): Promise<boolean>;
|
|
1628
|
+
}
|
|
1629
|
+
|
|
1630
|
+
declare class PacemSearchInputElement extends PacemTextualInputElement {
|
|
1631
|
+
constructor();
|
|
1632
|
+
input: HTMLInputElement;
|
|
1633
|
+
protected get inputFields(): HTMLInputElement[];
|
|
1634
|
+
protected toggleReadonlyView(readonly: boolean): void;
|
|
1635
|
+
}
|
|
1636
|
+
|
|
1637
|
+
declare class PacemSelectElement extends PacemDataSourceElement {
|
|
1638
|
+
private _select;
|
|
1639
|
+
private _repeater;
|
|
1640
|
+
private _span;
|
|
1641
|
+
emptyOption: boolean;
|
|
1642
|
+
protected toggleReadonlyView(readonly: boolean): void;
|
|
1643
|
+
protected get inputFields(): HTMLSelectElement[];
|
|
1644
|
+
private _manageDom;
|
|
1645
|
+
protected onChange(evt?: Event): Promise<any>;
|
|
1646
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
1647
|
+
protected buildAdaptedDatasource(ds?: any[]): DataSource;
|
|
1648
|
+
protected handleDatasourceMismatch(ds: DataSource): void;
|
|
1649
|
+
protected acceptValue(val: any): void;
|
|
1650
|
+
viewActivatedCallback(): void;
|
|
1651
|
+
disconnectedCallback(): void;
|
|
1652
|
+
}
|
|
1653
|
+
|
|
1654
|
+
declare class PacemSliderElement extends PacemBaseElement {
|
|
1655
|
+
protected inputFields: HTMLElement[];
|
|
1656
|
+
protected onChange(evt?: Event): PromiseLike<any>;
|
|
1657
|
+
private _draw;
|
|
1658
|
+
private _format;
|
|
1659
|
+
protected acceptValue(val: any): void;
|
|
1660
|
+
protected getViewValue(value: any): string;
|
|
1661
|
+
protected convertValueAttributeToProperty(attr: string): number;
|
|
1662
|
+
min: number;
|
|
1663
|
+
max: number;
|
|
1664
|
+
thumbLabel: boolean;
|
|
1665
|
+
step: 'any' | number;
|
|
1666
|
+
changePolicy: 'drag' | 'end';
|
|
1667
|
+
format: Intl.NumberFormatOptions;
|
|
1668
|
+
private _track;
|
|
1669
|
+
private _progress;
|
|
1670
|
+
private _thumb;
|
|
1671
|
+
private _min;
|
|
1672
|
+
private _max;
|
|
1673
|
+
private _dragger;
|
|
1674
|
+
private _shellProxy;
|
|
1675
|
+
protected toggleReadonlyView(readonly: boolean): void;
|
|
1676
|
+
private _trackSize;
|
|
1677
|
+
private _setTrackSize;
|
|
1678
|
+
private _computeAndAssignValue;
|
|
1679
|
+
private _setValue;
|
|
1680
|
+
private _dragHandler;
|
|
1681
|
+
private _endHandler;
|
|
1682
|
+
private _startHandler;
|
|
1683
|
+
private _downHandler;
|
|
1684
|
+
private _keydownHandler;
|
|
1685
|
+
connectedCallback(): void;
|
|
1686
|
+
viewActivatedCallback(): void;
|
|
1687
|
+
private _syncThumbLabel;
|
|
1688
|
+
disconnectedCallback(): void;
|
|
1689
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
1690
|
+
}
|
|
1691
|
+
|
|
1692
|
+
declare class PacemSnapshotElement extends PacemBaseElement {
|
|
1693
|
+
protected get inputFields(): HTMLElement[];
|
|
1694
|
+
protected toggleReadonlyView(readonly: boolean): void;
|
|
1695
|
+
protected onChange(evt?: Event): PromiseLike<any>;
|
|
1696
|
+
protected acceptValue(val: any): void;
|
|
1697
|
+
protected getViewValue(value: any): string;
|
|
1698
|
+
protected convertValueAttributeToProperty(attr: string): any;
|
|
1699
|
+
private _resizeHandler;
|
|
1700
|
+
private _root;
|
|
1701
|
+
private _stage;
|
|
1702
|
+
private _grabber;
|
|
1703
|
+
private _player;
|
|
1704
|
+
private _picker;
|
|
1705
|
+
private _snapshooter;
|
|
1706
|
+
private _taker;
|
|
1707
|
+
private _timer;
|
|
1708
|
+
private _confirmer;
|
|
1709
|
+
step: SnapshotStep;
|
|
1710
|
+
width: number;
|
|
1711
|
+
height: number;
|
|
1712
|
+
quality: number;
|
|
1713
|
+
get _getUserMedia(): any;
|
|
1714
|
+
private _canUseWebcam;
|
|
1715
|
+
private _countdown;
|
|
1716
|
+
private _webcamInitialized;
|
|
1717
|
+
private _buffer;
|
|
1718
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
1719
|
+
viewActivatedCallback(): void;
|
|
1720
|
+
disconnectedCallback(): void;
|
|
1721
|
+
private _syncSize;
|
|
1722
|
+
private _grabberChangeHandler;
|
|
1723
|
+
private _snapshooterClickHandler;
|
|
1724
|
+
private _pickerClickHandler;
|
|
1725
|
+
private _takerClickHandler;
|
|
1726
|
+
private _timerClickHandler;
|
|
1727
|
+
private _confirmerClickHandler;
|
|
1728
|
+
private _shutter;
|
|
1729
|
+
private _renderValue;
|
|
1730
|
+
private _setToBeConfirmed;
|
|
1731
|
+
private _refreshBuffer;
|
|
1732
|
+
private _ensureWebcamRunning;
|
|
1733
|
+
}
|
|
1734
|
+
|
|
1735
|
+
declare class PacemSuggestElement extends PacemDataSourceElement {
|
|
1736
|
+
#private;
|
|
1737
|
+
private _input;
|
|
1738
|
+
private _repeater;
|
|
1739
|
+
private span;
|
|
1740
|
+
private _defaultTemplate;
|
|
1741
|
+
private _tmplProxy;
|
|
1742
|
+
private _btnArrow;
|
|
1743
|
+
private _btnClear;
|
|
1744
|
+
private _balloon;
|
|
1745
|
+
protected get inputFields(): HTMLInputElement[];
|
|
1746
|
+
hint: string;
|
|
1747
|
+
/** Default: 10 (i.e. assumed `10` when not defined) */
|
|
1748
|
+
maxSuggestions: number;
|
|
1749
|
+
/** Default: true (i.e. assumed `true` when not defined) */
|
|
1750
|
+
allowTyping: boolean;
|
|
1751
|
+
/** Relevant in a rich/plain text header dashboard, in order to avoid the editing control to lose focus. */
|
|
1752
|
+
preventFocus: boolean;
|
|
1753
|
+
itemtemplate: HTMLTemplateElement;
|
|
1754
|
+
/** Fields (in addition to 'textProperty') used to filter the datasource */
|
|
1755
|
+
filterFields: string[];
|
|
1756
|
+
/** Whether allow or not values not available in the suggestions. If set to `true`, works only for primitive values. */
|
|
1757
|
+
allowNew: boolean;
|
|
1758
|
+
protected acceptValue(val: any): void;
|
|
1759
|
+
protected getViewValue(val: any): string;
|
|
1760
|
+
protected onChange(evt?: Event): Promise<any>;
|
|
1761
|
+
viewActivatedCallback(): void;
|
|
1762
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
1763
|
+
disconnectedCallback(): void;
|
|
1764
|
+
private _databind;
|
|
1765
|
+
private _syncButtons;
|
|
1766
|
+
private _toggleBtnHandler;
|
|
1767
|
+
private _clearBtnHandler;
|
|
1768
|
+
private get _isTyping();
|
|
1769
|
+
private _balloonPopupHandler;
|
|
1770
|
+
private _balloonPopoutHandler;
|
|
1771
|
+
private _inputHandler;
|
|
1772
|
+
private _keyupHandler;
|
|
1773
|
+
private _focusHandler;
|
|
1774
|
+
private _blurHandler;
|
|
1775
|
+
private _undo;
|
|
1776
|
+
private _findFirstAvailableListItem;
|
|
1777
|
+
private _keydownHandler;
|
|
1778
|
+
private _selectHandler;
|
|
1779
|
+
private _setDropdownMode;
|
|
1780
|
+
private _setupItemTemplate;
|
|
1781
|
+
private _focus;
|
|
1782
|
+
private _select;
|
|
1783
|
+
private _filter;
|
|
1784
|
+
private _itemCreate;
|
|
1785
|
+
private _itemRemove;
|
|
1786
|
+
protected toggleReadonlyView(readonly: boolean): void;
|
|
1787
|
+
popup(delay?: number): void;
|
|
1788
|
+
popout(delay?: number): void;
|
|
1789
|
+
private _checkBalloon;
|
|
1790
|
+
private _createBalloon;
|
|
1791
|
+
}
|
|
1792
|
+
|
|
1793
|
+
declare class PacemTagElement extends Components_2.PacemElement {
|
|
1794
|
+
tag: string;
|
|
1795
|
+
readonly: boolean;
|
|
1796
|
+
private _btn;
|
|
1797
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
1798
|
+
private _remove;
|
|
1799
|
+
}
|
|
1800
|
+
|
|
1801
|
+
declare class PacemTagsElement extends PacemDataSourceElement {
|
|
1802
|
+
constructor();
|
|
1803
|
+
hint: string;
|
|
1804
|
+
allowDuplicates: boolean;
|
|
1805
|
+
allowNew: boolean;
|
|
1806
|
+
private _justAddedIndex;
|
|
1807
|
+
private _suggest;
|
|
1808
|
+
private _tags;
|
|
1809
|
+
protected inputFields: HTMLElement[];
|
|
1810
|
+
protected toggleReadonlyView(readonly: boolean): void;
|
|
1811
|
+
private _tagRemove;
|
|
1812
|
+
private _tagAdd;
|
|
1813
|
+
protected handleDatasourceMismatch(): void;
|
|
1814
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
1815
|
+
protected onChange(evt?: Event): PromiseLike<any>;
|
|
1816
|
+
protected acceptValue(val: any): void;
|
|
1817
|
+
}
|
|
1818
|
+
|
|
1819
|
+
declare class PacemTelInputElement extends PacemTextualInputElement {
|
|
1820
|
+
constructor();
|
|
1821
|
+
input: HTMLInputElement;
|
|
1822
|
+
anchor: Components_3.UI.PacemAnchorElement;
|
|
1823
|
+
protected toggleReadonlyView(readonly: boolean): void;
|
|
1824
|
+
protected get inputFields(): HTMLInputElement[];
|
|
1825
|
+
}
|
|
1826
|
+
|
|
1827
|
+
declare class PacemTextAreaElement extends PacemTextualInputElement {
|
|
1828
|
+
rows: number;
|
|
1829
|
+
cols: number;
|
|
1830
|
+
private _input;
|
|
1831
|
+
private _span;
|
|
1832
|
+
/** @override */
|
|
1833
|
+
protected get preventKeyboardSubmit(): boolean;
|
|
1834
|
+
protected toggleReadonlyView(readonly: boolean): void;
|
|
1835
|
+
protected get inputFields(): HTMLTextAreaElement[];
|
|
1836
|
+
propertyChangedCallback(name: string, old: any, val: any, first: boolean): void;
|
|
1837
|
+
}
|
|
1838
|
+
|
|
1839
|
+
declare class PacemTextInputElement extends PacemTextualInputElement {
|
|
1840
|
+
constructor();
|
|
1841
|
+
private _input;
|
|
1842
|
+
private _span;
|
|
1843
|
+
protected toggleReadonlyView(readonly: boolean): void;
|
|
1844
|
+
protected get inputFields(): HTMLInputElement[];
|
|
1845
|
+
}
|
|
1846
|
+
|
|
1847
|
+
declare abstract class PacemTextualInputElement extends PacemBaseInputElement {
|
|
1848
|
+
pattern: string;
|
|
1849
|
+
minlength: number;
|
|
1850
|
+
maxlength: number;
|
|
1851
|
+
protected convertValueAttributeToProperty(attr: string): string;
|
|
1852
|
+
propertyChangedCallback(name: string, old: any, val: any, first: boolean): void;
|
|
1853
|
+
protected getValue(val: string): any;
|
|
1854
|
+
protected getViewValue(val: any): string;
|
|
1855
|
+
}
|
|
1856
|
+
|
|
1857
|
+
/**
|
|
1858
|
+
* PacemUploader Component
|
|
1859
|
+
*/
|
|
1860
|
+
declare class PacemUploadElement extends PacemBaseElement implements Net.OAuthFetchable {
|
|
1861
|
+
private _tweener;
|
|
1862
|
+
fetchCredentials: RequestCredentials;
|
|
1863
|
+
fetchHeaders: {
|
|
1864
|
+
[key: string]: string;
|
|
1865
|
+
};
|
|
1866
|
+
constructor(_tweener?: Animations.TweenService);
|
|
1867
|
+
protected convertValueAttributeToProperty(attr: string): string;
|
|
1868
|
+
protected acceptValue(val: any): void;
|
|
1869
|
+
private _fileupload;
|
|
1870
|
+
private _tuner;
|
|
1871
|
+
undoCaption: string;
|
|
1872
|
+
retryCaption: string;
|
|
1873
|
+
clearCaption: string;
|
|
1874
|
+
pattern: string;
|
|
1875
|
+
url: string;
|
|
1876
|
+
maxImageWidth: number;
|
|
1877
|
+
parallelism: number;
|
|
1878
|
+
chunkSize: number;
|
|
1879
|
+
maxImageHeight: number;
|
|
1880
|
+
/** Gets or sets the max blob size in bytes. */
|
|
1881
|
+
maxSize: number;
|
|
1882
|
+
selectMode: BinarySelectMode;
|
|
1883
|
+
uploading: boolean;
|
|
1884
|
+
size: number;
|
|
1885
|
+
percentage: number;
|
|
1886
|
+
complete: boolean;
|
|
1887
|
+
failed: boolean;
|
|
1888
|
+
invalidFile: boolean;
|
|
1889
|
+
private _getMimeIcon;
|
|
1890
|
+
get blob(): Blob;
|
|
1891
|
+
protected get inputFields(): HTMLInputElement[];
|
|
1892
|
+
protected getViewValue(val: any): string;
|
|
1893
|
+
protected toggleReadonlyView(readonly: boolean): void;
|
|
1894
|
+
viewActivatedCallback(): void;
|
|
1895
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
1896
|
+
disconnectedCallback(): void;
|
|
1897
|
+
private _setupInputElement;
|
|
1898
|
+
/**
|
|
1899
|
+
* Triggered from the component's template.
|
|
1900
|
+
*/
|
|
1901
|
+
private _dispatchDownload;
|
|
1902
|
+
reset(): void;
|
|
1903
|
+
private _fields;
|
|
1904
|
+
private _validateAll;
|
|
1905
|
+
private _validateSingleFile;
|
|
1906
|
+
upload(file: Blob, filename?: string, state?: string): Promise<Response>;
|
|
1907
|
+
private _upload;
|
|
1908
|
+
private _blobToBase64;
|
|
1909
|
+
private _doUpload;
|
|
1910
|
+
private _manage;
|
|
1911
|
+
private _stats;
|
|
1912
|
+
private _localValue;
|
|
1913
|
+
private _buildLocalValue;
|
|
1914
|
+
private _canPick;
|
|
1915
|
+
private _tryPickDirectory;
|
|
1916
|
+
private _tryPickFiles;
|
|
1917
|
+
/**
|
|
1918
|
+
* Called from the template.
|
|
1919
|
+
* @param evt
|
|
1920
|
+
*/
|
|
1921
|
+
private _clickHandler;
|
|
1922
|
+
private _mimicCompute;
|
|
1923
|
+
protected onChange(evt: Event): Promise<unknown>;
|
|
1924
|
+
private _fetch;
|
|
1925
|
+
private _undo;
|
|
1926
|
+
private _tweenPercentage;
|
|
1927
|
+
private _retry;
|
|
1928
|
+
private _clear;
|
|
1929
|
+
}
|
|
1930
|
+
|
|
1931
|
+
declare class PacemUrlInputElement extends PacemTextualInputElement {
|
|
1932
|
+
constructor();
|
|
1933
|
+
input: HTMLInputElement;
|
|
1934
|
+
anchor: Components_3.UI.PacemAnchorElement;
|
|
1935
|
+
protected toggleReadonlyView(readonly: boolean): void;
|
|
1936
|
+
protected get inputFields(): HTMLInputElement[];
|
|
1937
|
+
}
|
|
1938
|
+
|
|
1939
|
+
declare type PagedSet<T> = {
|
|
1940
|
+
set: T[];
|
|
1941
|
+
skip: number;
|
|
1942
|
+
take: number;
|
|
1943
|
+
total: number;
|
|
1944
|
+
size: number;
|
|
1945
|
+
};
|
|
1946
|
+
|
|
1947
|
+
declare type Parameter = {
|
|
1948
|
+
name: string;
|
|
1949
|
+
required: boolean;
|
|
1950
|
+
};
|
|
1951
|
+
|
|
1952
|
+
declare class Picture {
|
|
1953
|
+
thumbnailSrc: string;
|
|
1954
|
+
src: string;
|
|
1955
|
+
caption?: string;
|
|
1956
|
+
}
|
|
1957
|
+
|
|
1958
|
+
declare type PictureSet = {
|
|
1959
|
+
total: number;
|
|
1960
|
+
skip: number;
|
|
1961
|
+
take: number;
|
|
1962
|
+
set: Picture[];
|
|
1963
|
+
};
|
|
1964
|
+
|
|
1965
|
+
declare type PropertyMetadata = {
|
|
1966
|
+
prop: string;
|
|
1967
|
+
type: 'object' | 'array' | string | /* let the possibility to inject custom scaffolding elements */ PropertyMetadataFieldFactory;
|
|
1968
|
+
display?: DisplayMetadata;
|
|
1969
|
+
extra?: PropertyMetadataExtra & {
|
|
1970
|
+
[key: string]: any;
|
|
1971
|
+
};
|
|
1972
|
+
isReadOnly?: boolean;
|
|
1973
|
+
dataType?: string;
|
|
1974
|
+
isComplexType?: boolean;
|
|
1975
|
+
isNullable?: boolean;
|
|
1976
|
+
validators?: ValidatorMetadata[];
|
|
1977
|
+
commands?: CommandMetadata[];
|
|
1978
|
+
/** Either the metadata of an 'object' or the metadata of the single item of an homogeneous 'array'. */
|
|
1979
|
+
props?: TypeMetadata | PropertyMetadata[];
|
|
1980
|
+
};
|
|
1981
|
+
|
|
1982
|
+
/** @deprecated */
|
|
1983
|
+
declare type PropertyMetadata_2 = PropertyMetadata;
|
|
1984
|
+
|
|
1985
|
+
declare type PropertyMetadataDependsOnFactory = (host: Element, hostRef?: string, entityRef?: string, fieldEntityRef?: string) => DependsOnManifest;
|
|
1986
|
+
|
|
1987
|
+
declare type PropertyMetadataDisplayCssClassFactory = (host: Element, hostRef?: string, entityRef?: string) => DisplayCssClassManifest;
|
|
1988
|
+
|
|
1989
|
+
declare type PropertyMetadataDisplayCssFactory = (host: Element, hostRef?: string, entityRef?: string) => DisplayCssManifest;
|
|
1990
|
+
|
|
1991
|
+
declare type PropertyMetadataExtra = PropertyMetadataExtraCore & (PropertyMetadataExtraDatasource & PropertyMetadataExtraSnapshot & PropertyMetadataExtraTags & PropertyMetadataExtraChildform & PropertyMetadataExtraUpload & PropertyMetadataExtraSlider & PropertyMetadataExtraDatetime & PropertyMetadataExtraCode);
|
|
1992
|
+
|
|
1993
|
+
declare type PropertyMetadataExtraChildform = {
|
|
1994
|
+
lockItems?: boolean;
|
|
1995
|
+
};
|
|
1996
|
+
|
|
1997
|
+
declare type PropertyMetadataExtraCode = {
|
|
1998
|
+
charCount?: number;
|
|
1999
|
+
inputTransform?: 'none' | 'lowercase' | 'uppercase' | 'password';
|
|
2000
|
+
};
|
|
2001
|
+
|
|
2002
|
+
declare type PropertyMetadataExtraCore = {
|
|
2003
|
+
dependsOn?: DependsOn[] | PropertyMetadataDependsOnFactory;
|
|
2004
|
+
autofocus?: boolean;
|
|
2005
|
+
} & TooltipMetadata;
|
|
2006
|
+
|
|
2007
|
+
declare type PropertyMetadataExtraDatasource = {
|
|
2008
|
+
source?: Function | any[];
|
|
2009
|
+
sourceUrl?: string;
|
|
2010
|
+
verb?: Net.HttpMethod;
|
|
2011
|
+
valueProperty?: string;
|
|
2012
|
+
textProperty?: string;
|
|
2013
|
+
disabledProperty?: string;
|
|
2014
|
+
} & {
|
|
2015
|
+
enum?: any[];
|
|
2016
|
+
} & {
|
|
2017
|
+
itemtemplate?: string | HTMLTemplateElement;
|
|
2018
|
+
maxSuggestions?: number;
|
|
2019
|
+
filterFields?: string[] | string;
|
|
2020
|
+
};
|
|
2021
|
+
|
|
2022
|
+
declare type PropertyMetadataExtraDatetime = {
|
|
2023
|
+
/** @deprecated use display format field instead. */
|
|
2024
|
+
format?: string | Intl.DateTimeFormatOptions;
|
|
2025
|
+
disabledRanges?: Components_3.UI.DateRange[];
|
|
2026
|
+
};
|
|
2027
|
+
|
|
2028
|
+
declare type PropertyMetadataExtraSlider = {
|
|
2029
|
+
step?: 'any' | number;
|
|
2030
|
+
preventWheel?: boolean;
|
|
2031
|
+
};
|
|
2032
|
+
|
|
2033
|
+
declare type PropertyMetadataExtraSnapshot = {
|
|
2034
|
+
width?: number;
|
|
2035
|
+
height?: number;
|
|
2036
|
+
quality?: number;
|
|
2037
|
+
};
|
|
2038
|
+
|
|
2039
|
+
declare type PropertyMetadataExtraTags = {
|
|
2040
|
+
allowNew?: boolean;
|
|
2041
|
+
allowDuplicates?: boolean;
|
|
2042
|
+
};
|
|
2043
|
+
|
|
2044
|
+
declare type PropertyMetadataExtraUpload = {
|
|
2045
|
+
maxImageWidth?: number;
|
|
2046
|
+
maxImageHeight?: number;
|
|
2047
|
+
parallelism?: number;
|
|
2048
|
+
chunkSize?: number;
|
|
2049
|
+
uploadUrl?: string;
|
|
2050
|
+
mode?: BinarySelectMode;
|
|
2051
|
+
};
|
|
2052
|
+
|
|
2053
|
+
declare type PropertyMetadataFieldFactory = (host: Element, hostRef?: string, entityRef?: string) => FieldManifest;
|
|
2054
|
+
|
|
2055
|
+
declare type PropertyMetadataLabelFactory = (host: Element, hostRef?: string, entityRef?: string, formRef?: string) => LabelManifest;
|
|
2056
|
+
|
|
2057
|
+
declare type PropertyMetadataValidatorFactory = (host: Element, hostRef?: string, entityRef?: string) => ValidatorManifest;
|
|
2058
|
+
|
|
2059
|
+
declare type RangeWrapTestResult = {
|
|
2060
|
+
result: boolean;
|
|
2061
|
+
element?: Node;
|
|
2062
|
+
};
|
|
2063
|
+
|
|
2064
|
+
export declare namespace Scaffolding {
|
|
2065
|
+
export {
|
|
2066
|
+
OpenApi,
|
|
2067
|
+
L10n,
|
|
2068
|
+
FieldChangeEventArgs,
|
|
2069
|
+
FieldChangeEventName,
|
|
2070
|
+
FieldChangeEvent,
|
|
2071
|
+
DisplayCssClassManifest,
|
|
2072
|
+
PropertyMetadataDisplayCssClassFactory,
|
|
2073
|
+
DisplayCssManifest,
|
|
2074
|
+
PropertyMetadataDisplayCssFactory,
|
|
2075
|
+
DisplayMetadata,
|
|
2076
|
+
KnownValidatorMetadata,
|
|
2077
|
+
ValidatorType,
|
|
2078
|
+
ValidatorManifest,
|
|
2079
|
+
PropertyMetadataValidatorFactory,
|
|
2080
|
+
ValidatorMetadata,
|
|
2081
|
+
CommandMetadata,
|
|
2082
|
+
DependsOn,
|
|
2083
|
+
TooltipBalloonMetadata,
|
|
2084
|
+
TooltipMetadata,
|
|
2085
|
+
BinarySelectMode,
|
|
2086
|
+
PropertyMetadataExtra,
|
|
2087
|
+
FieldManifest,
|
|
2088
|
+
PropertyMetadataFieldFactory,
|
|
2089
|
+
DependsOnManifest,
|
|
2090
|
+
PropertyMetadataDependsOnFactory,
|
|
2091
|
+
LabelManifest,
|
|
2092
|
+
PropertyMetadataLabelFactory,
|
|
2093
|
+
PropertyMetadata,
|
|
2094
|
+
TypeMetadata
|
|
2095
|
+
}
|
|
2096
|
+
}
|
|
2097
|
+
|
|
2098
|
+
export declare namespace Scaffolding_2 {
|
|
2099
|
+
export {
|
|
2100
|
+
PacemContenteditableAlignCommandElement,
|
|
2101
|
+
KnownExecCommand,
|
|
2102
|
+
PacemContenteditableExecCommandElement,
|
|
2103
|
+
PacemContenteditableHistoryCommandElement,
|
|
2104
|
+
PacemContenteditableImageCommandElement,
|
|
2105
|
+
PacemContenteditableLinkCommandElement,
|
|
2106
|
+
PacemContenteditablePlaceholderElement,
|
|
2107
|
+
PacemContenteditableButtonCommandElement,
|
|
2108
|
+
CONTENTELEMENT_BUTTONCOMMAND_TEMPLATE,
|
|
2109
|
+
ContenteditableDOMObserver,
|
|
2110
|
+
RangeWrapTestResult,
|
|
2111
|
+
ContenteditableUtils,
|
|
2112
|
+
PacemContenteditableWrapCommandElement,
|
|
2113
|
+
ContenteditableCommand,
|
|
2114
|
+
PacemContenteditableCommandElement,
|
|
2115
|
+
ContenteditableFileCommand,
|
|
2116
|
+
PacemContenteditableElement,
|
|
2117
|
+
PacemCalendarMonthPickerElement,
|
|
2118
|
+
CalendarDateUnselectEvent,
|
|
2119
|
+
PacemCalendarYearPickerElement,
|
|
2120
|
+
PacemCalendarPickerElement,
|
|
2121
|
+
CHAR_COUNTER_CHILD,
|
|
2122
|
+
PacemCharCountElement,
|
|
2123
|
+
PacemCheckboxElement,
|
|
2124
|
+
PacemCheckboxListElement,
|
|
2125
|
+
PacemChildFormPropagatorElement,
|
|
2126
|
+
PacemChildFormElement,
|
|
2127
|
+
PacemDatetimePickerElement,
|
|
2128
|
+
FormSubmitEventArgs,
|
|
2129
|
+
FormSubmitEventName,
|
|
2130
|
+
FormResetEventName,
|
|
2131
|
+
FormSubmitEvent,
|
|
2132
|
+
FormResetEvent,
|
|
2133
|
+
FormEventEmitter,
|
|
2134
|
+
PacemFormRelevantElement,
|
|
2135
|
+
PacemFormElement,
|
|
2136
|
+
PacemFormFieldElement,
|
|
2137
|
+
PacemGeolocateElement,
|
|
2138
|
+
HierarchyDataSourceItem,
|
|
2139
|
+
HierarchyDataSource,
|
|
2140
|
+
PacemHierarchyElement,
|
|
2141
|
+
ChangePolicy,
|
|
2142
|
+
PacemBaseInputElement,
|
|
2143
|
+
PacemOrdinalInputElement,
|
|
2144
|
+
PacemTextualInputElement,
|
|
2145
|
+
PacemCharsInputElement,
|
|
2146
|
+
PacemColorInputElement,
|
|
2147
|
+
PacemEmailInputElement,
|
|
2148
|
+
FileUploadEventName,
|
|
2149
|
+
FileChangeEventName,
|
|
2150
|
+
FileUploadEventArgs,
|
|
2151
|
+
FileChangeEventArgs,
|
|
2152
|
+
FileUploadEvent,
|
|
2153
|
+
FileChangeEvent,
|
|
2154
|
+
PacemUploadElement,
|
|
2155
|
+
PacemHiddenInputElement,
|
|
2156
|
+
Picture,
|
|
2157
|
+
PictureSet,
|
|
2158
|
+
ImageFetchRequestEventName,
|
|
2159
|
+
FetchRequestEventArgs,
|
|
2160
|
+
ImageFetchRequestEvent,
|
|
2161
|
+
PacemEditImageElement,
|
|
2162
|
+
PacemImageInputElement,
|
|
2163
|
+
PacemNumberInputElement,
|
|
2164
|
+
PacemPasswordInputElement,
|
|
2165
|
+
PacemSearchInputElement,
|
|
2166
|
+
PacemTelInputElement,
|
|
2167
|
+
PacemTextInputElement,
|
|
2168
|
+
PacemUrlInputElement,
|
|
2169
|
+
DEFAULT_TILES,
|
|
2170
|
+
DEFAULT_ATTRIBUTION,
|
|
2171
|
+
LatLngOptions,
|
|
2172
|
+
PacemLatLngElement,
|
|
2173
|
+
PacemNameValueListElement,
|
|
2174
|
+
PacemPropertyPickerElement,
|
|
2175
|
+
PacemRadioElement,
|
|
2176
|
+
PacemRadioListElement,
|
|
2177
|
+
PacemSelectElement,
|
|
2178
|
+
PacemSliderElement,
|
|
2179
|
+
SnapshotStep,
|
|
2180
|
+
PacemSnapshotElement,
|
|
2181
|
+
PacemSuggestElement,
|
|
2182
|
+
PacemTagElement,
|
|
2183
|
+
PacemTagsElement,
|
|
2184
|
+
PacemTextAreaElement,
|
|
2185
|
+
PacemMarkdownTextAreaElement,
|
|
2186
|
+
PropertyMetadata_2 as PropertyMetadata,
|
|
2187
|
+
PacemFormOrField,
|
|
2188
|
+
PacemModel,
|
|
2189
|
+
BinaryValue,
|
|
2190
|
+
PacemModelElement,
|
|
2191
|
+
PacemBaseElement,
|
|
2192
|
+
DataSourceItem,
|
|
2193
|
+
DataSource,
|
|
2194
|
+
PacemItemElement,
|
|
2195
|
+
PacemItemsContainerBaseElement,
|
|
2196
|
+
PacemDataItemElement,
|
|
2197
|
+
PacemDataSourceElement,
|
|
2198
|
+
Validator,
|
|
2199
|
+
PacemBaseValidatorElement,
|
|
2200
|
+
BASIC_VALIDATOR_TEMPLATE,
|
|
2201
|
+
PacemRequiredValidatorElement,
|
|
2202
|
+
PacemRegexValidatorElement,
|
|
2203
|
+
PacemLengthValidatorElement,
|
|
2204
|
+
PacemRangeValidatorElement,
|
|
2205
|
+
PacemCompareValidatorElement,
|
|
2206
|
+
PacemBinaryValidatorElement,
|
|
2207
|
+
PacemAsyncValidatorElement,
|
|
2208
|
+
PacemCustomValidatorElement
|
|
2209
|
+
}
|
|
2210
|
+
}
|
|
2211
|
+
|
|
2212
|
+
declare type Schema = {
|
|
2213
|
+
meta?: OpenApiSwagger.Schema;
|
|
2214
|
+
fullType?: string;
|
|
2215
|
+
fields?: DataField[];
|
|
2216
|
+
};
|
|
2217
|
+
|
|
2218
|
+
declare enum SnapshotStep {
|
|
2219
|
+
Start = "start",
|
|
2220
|
+
Taking = "taking",
|
|
2221
|
+
Confirm = "confirm"
|
|
2222
|
+
}
|
|
2223
|
+
|
|
2224
|
+
declare class SwaggerParser extends ApiParserBase {
|
|
2225
|
+
private _findDefinitionName;
|
|
2226
|
+
parse(content: any, url?: string): ApiManifest;
|
|
2227
|
+
private _tryGetEndpoint;
|
|
2228
|
+
private _translateType;
|
|
2229
|
+
private _tryGetParameters;
|
|
2230
|
+
private _tryGetResponse;
|
|
2231
|
+
}
|
|
2232
|
+
|
|
2233
|
+
declare type TooltipBalloonMetadata = {
|
|
2234
|
+
type: TooltipTypeMetadata;
|
|
2235
|
+
position?: Components_3.UI.BalloonPosition;
|
|
2236
|
+
trigger?: Components_3.UI.BalloonTrigger;
|
|
2237
|
+
align?: Components_3.UI.BalloonAlignment;
|
|
2238
|
+
};
|
|
2239
|
+
|
|
2240
|
+
declare type TooltipMetadata = {
|
|
2241
|
+
tooltip?: TooltipTypeMetadata | TooltipBalloonMetadata;
|
|
2242
|
+
};
|
|
2243
|
+
|
|
2244
|
+
declare type TooltipTypeMetadata = 'html' | 'md' | 'markdown' | 'text' | boolean;
|
|
2245
|
+
|
|
2246
|
+
declare type TypeMetadata = {
|
|
2247
|
+
display?: DisplayMetadata;
|
|
2248
|
+
props: PropertyMetadata[];
|
|
2249
|
+
type?: 'object' | 'array';
|
|
2250
|
+
};
|
|
2251
|
+
|
|
2252
|
+
declare interface Validator {
|
|
2253
|
+
invalid: boolean;
|
|
2254
|
+
validate: (val: any) => PromiseLike<boolean>;
|
|
2255
|
+
}
|
|
2256
|
+
|
|
2257
|
+
declare type ValidatorManifest = {
|
|
2258
|
+
[name: string]: string;
|
|
2259
|
+
};
|
|
2260
|
+
|
|
2261
|
+
declare type ValidatorMetadata = KnownValidatorMetadata | {
|
|
2262
|
+
type: ValidatorType;
|
|
2263
|
+
errorMessage: string;
|
|
2264
|
+
params?: any;
|
|
2265
|
+
} | {
|
|
2266
|
+
type: ValidatorType;
|
|
2267
|
+
attributes: PropertyMetadataValidatorFactory;
|
|
2268
|
+
};
|
|
2269
|
+
|
|
2270
|
+
declare type ValidatorType = Omit<string, 'required' | 'email' | 'length' | 'range' | 'regex' | 'binary' | 'compare' | 'async'>;
|
|
2271
|
+
|
|
2272
|
+
|
|
2273
|
+
|
|
2274
|
+
declare global {
|
|
2275
|
+
namespace Pacem {
|
|
2276
|
+
export {
|
|
2277
|
+
Components,
|
|
2278
|
+
L10n,
|
|
2279
|
+
OpenApi,
|
|
2280
|
+
Scaffolding
|
|
2281
|
+
};
|
|
2282
|
+
}
|
|
2283
|
+
}
|