react-input-material 0.0.671 → 0.0.672
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/FileInput/helper.d.ts +2 -1
- package/dist/components/FileInput/index.css +1 -1
- package/dist/components/FileInput/index.d.ts +1 -1
- package/dist/components/FileInput/index.js +1 -1
- package/dist/components/Inputs/index.css +1 -1
- package/dist/components/Inputs/index.d.ts +2 -1
- package/dist/components/Inputs/index.js +1 -1
- package/dist/components/Interval/index.css +1 -1
- package/dist/components/Interval/index.d.ts +1 -1
- package/dist/components/Interval/index.js +1 -1
- package/dist/components/RequireableCheckbox/index.d.ts +1 -1
- package/dist/components/RequireableCheckbox/index.js +1 -1
- package/dist/components/TextInput/helper.d.ts +7 -14
- package/dist/components/TextInput/index.css +1 -1
- package/dist/components/TextInput/index.d.ts +2 -2
- package/dist/components/TextInput/index.js +1 -1
- package/dist/components/WrapConfigurations.js +1 -1
- package/dist/components/WrapTooltip.js +1 -1
- package/dist/helper.d.ts +3 -1
- package/dist/helper.js +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/dist/type.d.ts +6 -454
- package/dist/type.js +1 -1
- package/package.json +68 -31
package/dist/type.d.ts
CHANGED
|
@@ -1,22 +1,12 @@
|
|
|
1
|
-
import { Mapping
|
|
2
|
-
import
|
|
3
|
-
import { ComponentClass,
|
|
1
|
+
import { Mapping } from 'clientnode';
|
|
2
|
+
import { Requireable } from 'clientnode/dist/property-types';
|
|
3
|
+
import { ComponentClass, FocusEvent, ForwardRefExoticComponent, FunctionComponent, MouseEvent, ReactElement, RefAttributes } from 'react';
|
|
4
4
|
import { GenericEvent } from 'react-generic-tools/type';
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import { ComponentAdapter, PropertiesValidationMap, StaticWebComponent as StaticBaseWebComponent, ValidationMapping } from 'web-component-wrapper/type';
|
|
8
|
-
import { MDCMenuFoundation } from '@material/menu';
|
|
9
|
-
import { MDCSelectFoundation } from '@material/select';
|
|
10
|
-
import { MDCTextFieldFoundation } from '@material/textfield';
|
|
11
|
-
import { ComponentProps as RMWCComponentProps } from '@rmwc/types';
|
|
12
|
-
import { CardMediaProps } from '@rmwc/card';
|
|
13
|
-
import { MenuApi } from '@rmwc/menu';
|
|
14
|
-
import { FormattedOption as FormattedSelectionOption, SelectProps } from '@rmwc/select';
|
|
15
|
-
import { TextFieldProps } from '@rmwc/textfield';
|
|
5
|
+
import { ComponentAdapter, StaticWebComponent as StaticBaseWebComponent, ValidationMapping } from 'web-component-wrapper/type';
|
|
6
|
+
import { SelectProps } from '@rmwc/select';
|
|
16
7
|
import { ThemeProviderProps } from '@rmwc/theme';
|
|
17
8
|
import { TooltipProps } from '@rmwc/tooltip';
|
|
18
|
-
import {
|
|
19
|
-
import { Editor as RichTextEditorComponent, IAllProps as RichTextEditorProps } from '@tinymce/tinymce-react';
|
|
9
|
+
import { RipplePropT } from '@rmwc/types';
|
|
20
10
|
export interface CursorState {
|
|
21
11
|
end: number;
|
|
22
12
|
start: number;
|
|
@@ -145,447 +135,9 @@ export declare const propertyTypes: ValidationMapping;
|
|
|
145
135
|
export declare const defaultModelState: ModelState;
|
|
146
136
|
export declare const defaultModel: BaseModel<string>;
|
|
147
137
|
export declare const defaultProperties: DefaultProperties;
|
|
148
|
-
export interface CheckboxProperties extends Properties<boolean | null> {
|
|
149
|
-
checked: boolean;
|
|
150
|
-
id: string;
|
|
151
|
-
}
|
|
152
|
-
export type CheckboxModel = BaseModel<boolean | null>;
|
|
153
|
-
export type CheckboxModelState = ModelState;
|
|
154
|
-
export type CheckboxValueState = ValueState<boolean>;
|
|
155
|
-
export type CheckboxProps = Partial<Omit<CheckboxProperties, 'model'>> & {
|
|
156
|
-
model?: (Partial<Omit<CheckboxModel, 'state'>> & {
|
|
157
|
-
state?: Partial<CheckboxModelState>;
|
|
158
|
-
});
|
|
159
|
-
};
|
|
160
|
-
export type DefaultCheckboxProperties = Omit<CheckboxProps, 'model'> & {
|
|
161
|
-
model: CheckboxModel;
|
|
162
|
-
};
|
|
163
|
-
export type CheckboxState = State<boolean>;
|
|
164
|
-
export type CheckboxAdapter = ComponentAdapter<CheckboxProperties, Omit<CheckboxState, 'value'>>;
|
|
165
|
-
export type CheckboxComponent<ComponentType> = InputComponent<boolean, ComponentType, CheckboxProps, CheckboxModelState, DefaultCheckboxProperties, CheckboxAdapter>;
|
|
166
|
-
export declare const checkboxPropertyTypes: PropertiesValidationMap;
|
|
167
|
-
export declare const defaultCheckboxModel: CheckboxModel;
|
|
168
|
-
export declare const defaultCheckboxProperties: DefaultCheckboxProperties;
|
|
169
|
-
export type Transformer<T = unknown> = (value: T, transformer: InputDataTransformation, configuration: DefaultInputProperties<T>) => string;
|
|
170
|
-
export interface FormatSpecification<T = unknown> {
|
|
171
|
-
options?: PlainObject;
|
|
172
|
-
transform?: Transformer<T>;
|
|
173
|
-
}
|
|
174
|
-
export interface FormatSpecifications<T = unknown> {
|
|
175
|
-
final: FormatSpecification<T>;
|
|
176
|
-
intermediate?: FormatSpecification<T>;
|
|
177
|
-
}
|
|
178
|
-
export interface DataTransformSpecification<T = unknown, InputType = number | string> {
|
|
179
|
-
format?: FormatSpecifications<T>;
|
|
180
|
-
parse?: (value: InputType, transformer: InputDataTransformation, configuration: DefaultInputProperties<T>) => T;
|
|
181
|
-
type?: NativeInputType;
|
|
182
|
-
}
|
|
183
|
-
export interface DateTransformSpecification extends DataTransformSpecification<number | string, Date | number | string> {
|
|
184
|
-
useISOString: boolean;
|
|
185
|
-
}
|
|
186
|
-
export type InputDataTransformation = {
|
|
187
|
-
boolean: DataTransformSpecification<boolean>;
|
|
188
|
-
currency: DataTransformSpecification<number, string>;
|
|
189
|
-
date: DateTransformSpecification;
|
|
190
|
-
'date-local': DataTransformSpecification<number | string, Date | number | string>;
|
|
191
|
-
datetime: DataTransformSpecification<number | string, Date | number | string>;
|
|
192
|
-
'datetime-local': DataTransformSpecification<number | string, Date | number | string>;
|
|
193
|
-
time: DataTransformSpecification<number | string, Date | number | string>;
|
|
194
|
-
'time-local': DataTransformSpecification<number | string, Date | number | string>;
|
|
195
|
-
float: DataTransformSpecification<number, string>;
|
|
196
|
-
integer: DataTransformSpecification<number, string>;
|
|
197
|
-
number: DataTransformSpecification<number, number>;
|
|
198
|
-
string?: DataTransformSpecification;
|
|
199
|
-
} & {
|
|
200
|
-
[key in Exclude<NativeInputType, ('date' | 'date-local' | 'datetime' | 'datetime-local' | 'time' | 'time-local' | 'number')>]?: DataTransformSpecification;
|
|
201
|
-
};
|
|
202
|
-
export type InputSelection = Array<boolean | number | null> | Array<[boolean | number | string | null, string]> | NormalizedSelection | SelectProps['options'];
|
|
203
|
-
export type NormalizedSelection = Array<Omit<FormattedSelectionOption, 'value'> & {
|
|
204
|
-
value: unknown;
|
|
205
|
-
}>;
|
|
206
|
-
export interface InputTablePosition {
|
|
207
|
-
column: number;
|
|
208
|
-
row: number;
|
|
209
|
-
}
|
|
210
|
-
export interface InputModelState extends ModelState {
|
|
211
|
-
invalidMaximum: boolean;
|
|
212
|
-
invalidMinimum: boolean;
|
|
213
|
-
invalidMaximumLength: boolean;
|
|
214
|
-
invalidMinimumLength: boolean;
|
|
215
|
-
invalidInvertedPattern: boolean;
|
|
216
|
-
invalidPattern: boolean;
|
|
217
|
-
}
|
|
218
|
-
export interface InputModel<T = unknown> extends BaseModel<T> {
|
|
219
|
-
state?: InputModelState;
|
|
220
|
-
}
|
|
221
|
-
export type PartialInputModel<T = unknown> = Partial<Omit<InputModel<T>, 'state'>> & {
|
|
222
|
-
state?: Partial<InputModelState>;
|
|
223
|
-
};
|
|
224
|
-
export interface InputValueState<T = unknown, MS = ModelState> extends ValueState<T, MS> {
|
|
225
|
-
representation?: ReactNode;
|
|
226
|
-
}
|
|
227
|
-
export type NativeInputType = ('date' | 'datetime-local' | 'time' | 'week' | 'month' | 'number' | 'range' | 'text');
|
|
228
|
-
export type TextInputType = ('date-local' | 'datetime' | 'time-local' | 'boolean' | 'currency' | 'float' | 'integer' | 'string' | NativeInputType);
|
|
229
|
-
export interface InputChildrenOptions<P, T> {
|
|
230
|
-
index: number;
|
|
231
|
-
normalizedSelection?: NormalizedSelection | null;
|
|
232
|
-
properties: P;
|
|
233
|
-
query: string;
|
|
234
|
-
suggestion: ReactNode | string;
|
|
235
|
-
value: T;
|
|
236
|
-
}
|
|
237
|
-
export interface SuggestionCreatorOptions<P> {
|
|
238
|
-
abortController: AbortController;
|
|
239
|
-
properties: P;
|
|
240
|
-
query: string;
|
|
241
|
-
}
|
|
242
|
-
export type Editor = ('code' | 'code(css)' | 'code(script)' | 'plain' | 'text' | 'richtext(raw)' | 'richtext(simple)' | 'richtext(normal)' | 'richtext(advanced)');
|
|
243
|
-
export interface InputProperties<T = unknown> extends InputModelState, Properties<T> {
|
|
244
|
-
align: 'end' | 'start';
|
|
245
|
-
children: (options: InputChildrenOptions<this, T>) => null | ReactElement;
|
|
246
|
-
cursor: Partial<CursorState> | null;
|
|
247
|
-
editor: Editor;
|
|
248
|
-
editorIsActive: boolean;
|
|
249
|
-
hidden?: boolean;
|
|
250
|
-
icon: string | (IconOptions & {
|
|
251
|
-
tooltip?: string | TooltipProps;
|
|
252
|
-
});
|
|
253
|
-
trailingIcon: string | (IconOptions & {
|
|
254
|
-
tooltip?: string | TooltipProps;
|
|
255
|
-
});
|
|
256
|
-
inputProperties: Partial<CodeEditorProps | RichTextEditorProps | SelectProps | TextFieldProps>;
|
|
257
|
-
inputProps?: Mapping<boolean | number | string>;
|
|
258
|
-
invertedPattern: Array<RegExp | string> | null | RegExp | string;
|
|
259
|
-
invertedPatternText: string;
|
|
260
|
-
labels: Array<[string, string]> | Array<string> | Mapping;
|
|
261
|
-
maximumLengthText: string;
|
|
262
|
-
minimumLengthText: string;
|
|
263
|
-
maximumText: string;
|
|
264
|
-
minimumText: string;
|
|
265
|
-
model: InputModel<T>;
|
|
266
|
-
onChangeEditorIsActive: (isActive: boolean, event: MouseEvent | undefined, properties: this) => void;
|
|
267
|
-
onKeyDown: (event: KeyboardEvent, properties: this) => void;
|
|
268
|
-
onKeyUp: (event: KeyboardEvent, properties: this) => void;
|
|
269
|
-
onSelect: (event: GenericEvent, properties: this) => void;
|
|
270
|
-
onSelectionChange: (event: GenericEvent, properties: this) => void;
|
|
271
|
-
outlined: boolean;
|
|
272
|
-
pattern: Array<RegExp | string> | null | RegExp | string;
|
|
273
|
-
patternText: string;
|
|
274
|
-
placeholder: string;
|
|
275
|
-
representation: ReactNode | string;
|
|
276
|
-
rows: number;
|
|
277
|
-
searchSelection: boolean;
|
|
278
|
-
selectableEditor: boolean;
|
|
279
|
-
step: number;
|
|
280
|
-
suggestionCreator?: (options: SuggestionCreatorOptions<this>) => InputProperties['selection'] | Promise<InputProperties['selection']>;
|
|
281
|
-
suggestSelection: boolean;
|
|
282
|
-
transformer: RecursivePartial<DataTransformSpecification<T, Date | number | string>>;
|
|
283
|
-
}
|
|
284
|
-
export type InputProps<T = unknown> = Partial<Omit<InputProperties<T>, 'model'>> & {
|
|
285
|
-
model?: PartialInputModel<T>;
|
|
286
|
-
};
|
|
287
|
-
export type DefaultInputProperties<T = string> = Omit<InputProps<T>, 'model'> & {
|
|
288
|
-
model: InputModel<T>;
|
|
289
|
-
};
|
|
290
|
-
export type InputPropertyTypes<T = unknown> = {
|
|
291
|
-
[key in keyof InputProperties<T>]: ValueOf<typeof PropertyTypes>;
|
|
292
|
-
};
|
|
293
|
-
export interface InputState<T = unknown> extends State<T> {
|
|
294
|
-
cursor: CursorState;
|
|
295
|
-
editorIsActive: boolean;
|
|
296
|
-
hidden?: boolean;
|
|
297
|
-
modelState: InputModelState;
|
|
298
|
-
representation?: ReactNode | string;
|
|
299
|
-
selectionIsUnstable: boolean;
|
|
300
|
-
showDeclaration: boolean;
|
|
301
|
-
}
|
|
302
|
-
export type InputAdapter<T = unknown> = ComponentAdapter<InputProperties<T>, Omit<InputState<T>, 'representation' | 'selectionIsUnstable' | 'value'> & {
|
|
303
|
-
representation?: ReactNode | string;
|
|
304
|
-
value?: null | T;
|
|
305
|
-
}>;
|
|
306
|
-
export interface InputAdapterWithReferences<T = unknown> extends InputAdapter<T> {
|
|
307
|
-
references: {
|
|
308
|
-
codeEditorReference: MutableRefObject<CodeEditorType | null>;
|
|
309
|
-
codeEditorInputReference: MutableRefObject<HTMLTextAreaElement | null>;
|
|
310
|
-
foundationReference: MutableRefObject<MDCSelectFoundation | MDCTextFieldFoundation | null>;
|
|
311
|
-
inputReference: MutableRefObject<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement | null>;
|
|
312
|
-
richTextEditorInputReference: MutableRefObject<HTMLTextAreaElement | null>;
|
|
313
|
-
richTextEditorInstance: MutableRefObject<RichTextEditor | null>;
|
|
314
|
-
richTextEditorReference: MutableRefObject<RichTextEditorComponent | null>;
|
|
315
|
-
suggestionMenuAPIReference: MutableRefObject<MenuApi | null>;
|
|
316
|
-
suggestionMenuFoundationReference: MutableRefObject<MDCMenuFoundation | null>;
|
|
317
|
-
wrapperReference: MutableRefObject<HTMLDivElement | null>;
|
|
318
|
-
};
|
|
319
|
-
}
|
|
320
|
-
export interface TinyMCEOptions extends RawTinyMCEOptions {
|
|
321
|
-
selector?: undefined;
|
|
322
|
-
target?: undefined;
|
|
323
|
-
}
|
|
324
|
-
export interface TextInputComponent<Type> extends Omit<ForwardRefExoticComponent<InputProps>, 'propTypes'>, StaticWebComponent<Type, InputModelState, DefaultInputProperties> {
|
|
325
|
-
<T = string>(props: InputProps<T> & RefAttributes<InputAdapter<T>>): ReactElement;
|
|
326
|
-
locales: Array<string>;
|
|
327
|
-
transformer: InputDataTransformation;
|
|
328
|
-
}
|
|
329
|
-
export declare const inputModelStatePropertyTypes: {
|
|
330
|
-
[key in keyof InputModelState]: Requireable<boolean | symbol>;
|
|
331
|
-
};
|
|
332
|
-
export declare const inputPropertyTypes: PropertiesValidationMap;
|
|
333
|
-
export declare const textInputRenderProperties: Array<string>;
|
|
334
|
-
export declare const defaultInputModelState: InputModelState;
|
|
335
|
-
export declare const defaultInputModel: InputModel<string>;
|
|
336
|
-
export declare const defaultInputProperties: DefaultInputProperties;
|
|
337
|
-
export type FileRepresentationType = 'binary' | 'image' | 'embedableText' | 'text' | 'video';
|
|
338
|
-
export type BlobType = Blob | Buffer | string;
|
|
339
|
-
export interface FileValue {
|
|
340
|
-
blob?: Partial<BlobType>;
|
|
341
|
-
hash?: string;
|
|
342
|
-
name?: string;
|
|
343
|
-
source?: string;
|
|
344
|
-
url?: string;
|
|
345
|
-
}
|
|
346
|
-
export interface FileInputValueState<Type extends FileValue = FileValue> extends ValueState<Type, FileInputModelState> {
|
|
347
|
-
attachBlobProperty: boolean;
|
|
348
|
-
}
|
|
349
|
-
export interface FileInputModelState extends ModelState {
|
|
350
|
-
invalidMaximumSize: boolean;
|
|
351
|
-
invalidMinimumSize: boolean;
|
|
352
|
-
invalidContentTypePattern: boolean;
|
|
353
|
-
invalidInvertedContentTypePattern: boolean;
|
|
354
|
-
invalidName: boolean;
|
|
355
|
-
}
|
|
356
|
-
export interface FileInputModel<Type extends FileValue = FileValue> extends BaseModel<null | Type> {
|
|
357
|
-
contentTypePattern?: Pattern;
|
|
358
|
-
invertedContentTypePattern?: Pattern;
|
|
359
|
-
maximumSize: number;
|
|
360
|
-
minimumSize: number;
|
|
361
|
-
fileName: InputModel<string>;
|
|
362
|
-
state?: FileInputModelState;
|
|
363
|
-
}
|
|
364
|
-
export interface FileInputChildrenOptions<P, Type extends FileValue = FileValue> {
|
|
365
|
-
declaration: string;
|
|
366
|
-
invalid: boolean;
|
|
367
|
-
properties: P;
|
|
368
|
-
value?: null | Type;
|
|
369
|
-
}
|
|
370
|
-
export interface FileInputProperties<Type extends FileValue = FileValue, MediaTag extends ElementType = 'div'> extends Properties<null | Type>, FileInputModelState {
|
|
371
|
-
children?: (options: FileInputChildrenOptions<FileInputProperties<Type, MediaTag>, Type>) => ReactNode;
|
|
372
|
-
contentTypePattern: Array<RegExp | string> | null | RegExp | string;
|
|
373
|
-
invertedContentTypePattern: Array<RegExp | string> | null | RegExp | string;
|
|
374
|
-
contentTypePatternText: string;
|
|
375
|
-
invertedContentTypePatternText: string;
|
|
376
|
-
maximumSizeText: string;
|
|
377
|
-
minimumSizeText: string;
|
|
378
|
-
deleteButton: ReactNode;
|
|
379
|
-
downloadButton: ReactNode;
|
|
380
|
-
editButton: ReactNode;
|
|
381
|
-
newButton: ReactNode;
|
|
382
|
-
encoding: string;
|
|
383
|
-
generateFileNameInputProperties: (prototype: InputProps<string>, properties: FileInputProperties<Type, MediaTag>) => InputProps<string> | null;
|
|
384
|
-
media: RMWCComponentProps<CardMediaProps, HTMLProps<HTMLElement>, MediaTag>;
|
|
385
|
-
model: FileInputModel<Type>;
|
|
386
|
-
outlined: boolean;
|
|
387
|
-
sourceToBlobOptions?: {
|
|
388
|
-
endings?: 'native' | 'transparent';
|
|
389
|
-
type?: string;
|
|
390
|
-
};
|
|
391
|
-
hashingConfiguration: {
|
|
392
|
-
binaryString: boolean;
|
|
393
|
-
prefix: string;
|
|
394
|
-
readChunkSizeInByte: number;
|
|
395
|
-
};
|
|
396
|
-
}
|
|
397
|
-
export type FileInputProps<Type extends FileValue = FileValue> = Partial<Omit<FileInputProperties<Type>, 'model'>> & {
|
|
398
|
-
model?: (Partial<Omit<FileInputModel<Type>, 'fileName' | 'state'>> & {
|
|
399
|
-
fileName?: PartialInputModel<string>;
|
|
400
|
-
state?: Partial<FileInputModelState>;
|
|
401
|
-
});
|
|
402
|
-
};
|
|
403
|
-
export type DefaultFileInputProperties<Type extends FileValue = FileValue> = Omit<FileInputProps<Type>, 'model'> & {
|
|
404
|
-
model: FileInputModel<Type>;
|
|
405
|
-
};
|
|
406
|
-
export type FileInputPropertyTypes = {
|
|
407
|
-
[key in keyof FileInputProperties]: ValueOf<typeof PropertyTypes>;
|
|
408
|
-
};
|
|
409
|
-
export declare const fileInputRenderProperties: Array<string>;
|
|
410
|
-
export interface FileInputState<Type extends FileValue = FileValue> extends State<Type> {
|
|
411
|
-
modelState: FileInputModelState;
|
|
412
|
-
}
|
|
413
|
-
export type FileInputAdapter<Type extends FileValue = FileValue> = ComponentAdapter<FileInputProperties<Type>, Omit<FileInputState<Type>, 'value'> & {
|
|
414
|
-
value?: null | Type;
|
|
415
|
-
}>;
|
|
416
|
-
export interface FileInputAdapterWithReferences extends FileInputAdapter {
|
|
417
|
-
references: {
|
|
418
|
-
deleteButtonReference: MutableRefObject<HTMLButtonElement | null>;
|
|
419
|
-
downloadLinkReference: MutableRefObject<HTMLAnchorElement | null>;
|
|
420
|
-
fileInputReference: MutableRefObject<HTMLInputElement | null>;
|
|
421
|
-
nameInputReference: MutableRefObject<InputAdapter<string> | null>;
|
|
422
|
-
uploadButtonReference: MutableRefObject<HTMLButtonElement | null>;
|
|
423
|
-
};
|
|
424
|
-
}
|
|
425
|
-
export interface FileInputComponent<Type> extends Omit<ForwardRefExoticComponent<FileInputProps>, 'propTypes'>, StaticWebComponent<Type, FileInputModelState, DefaultFileInputProperties> {
|
|
426
|
-
<T extends FileValue = FileValue>(props: FileInputProps<T> & RefAttributes<FileInputAdapter<T>>): ReactElement;
|
|
427
|
-
}
|
|
428
|
-
export declare const dedicatedFileInputPropertyTypes: ValidationMapping;
|
|
429
|
-
export declare const fileInputModelPropertyTypes: PropertiesValidationMap;
|
|
430
|
-
export declare const fileInputModelStatePropertyTypes: {
|
|
431
|
-
[key in keyof FileInputModelState]: Requireable<boolean | symbol>;
|
|
432
|
-
};
|
|
433
|
-
export declare const fileInputPropertyTypes: PropertiesValidationMap;
|
|
434
|
-
export declare const defaultFileInputModelState: FileInputModelState;
|
|
435
|
-
export declare const defaultFileInputModel: FileInputModel;
|
|
436
|
-
export declare const defaultFileNameInputProperties: InputProps<string>;
|
|
437
|
-
export declare const defaultFileInputProperties: DefaultFileInputProperties;
|
|
438
|
-
export interface InputsPropertiesItem<T, TS = unknown> {
|
|
439
|
-
model?: {
|
|
440
|
-
state?: TS;
|
|
441
|
-
value?: T;
|
|
442
|
-
};
|
|
443
|
-
value?: T;
|
|
444
|
-
}
|
|
445
|
-
export interface InputsCreateOptions<T, IP> {
|
|
446
|
-
index: number;
|
|
447
|
-
properties: IP;
|
|
448
|
-
values?: Array<T> | null;
|
|
449
|
-
}
|
|
450
|
-
export interface InputsCreateItemOptions<T, P extends InputsPropertiesItem<T>, IP> extends InputsCreateOptions<T, IP> {
|
|
451
|
-
item: Partial<P>;
|
|
452
|
-
}
|
|
453
|
-
export interface InputsCreatePrototypeOptions<T, P extends InputsPropertiesItem<T>, IP> extends InputsCreateItemOptions<T, P, IP> {
|
|
454
|
-
lastValue: null | T | undefined;
|
|
455
|
-
}
|
|
456
|
-
export interface InputsModelState extends ModelState {
|
|
457
|
-
invalidMaximumNumber: boolean;
|
|
458
|
-
invalidMinimumNumber: boolean;
|
|
459
|
-
}
|
|
460
|
-
export interface InputsModel<T, P extends InputsPropertiesItem<T> = InputsPropertiesItem<T>> extends BaseModel<Array<P> | null> {
|
|
461
|
-
maximumNumber: number;
|
|
462
|
-
minimumNumber: number;
|
|
463
|
-
state?: InputsModelState;
|
|
464
|
-
writable: boolean;
|
|
465
|
-
}
|
|
466
|
-
export interface InputsChildrenOptions<T, P extends InputsPropertiesItem<T>, IP> {
|
|
467
|
-
index: number;
|
|
468
|
-
inputsProperties: IP;
|
|
469
|
-
properties: Partial<P>;
|
|
470
|
-
}
|
|
471
|
-
export interface InputsProperties<T = unknown, P extends InputsPropertiesItem<T> = Properties<T>> extends InputsModelState, Omit<Properties<Array<P> | null>, 'onChangeValue'> {
|
|
472
|
-
addIcon: IconOptions;
|
|
473
|
-
removeIcon: IconOptions;
|
|
474
|
-
children: (options: InputsChildrenOptions<T, P, this>) => ReactNode;
|
|
475
|
-
createItem: (options: InputsCreateItemOptions<T, P, this>) => P;
|
|
476
|
-
createPrototype: (options: InputsCreatePrototypeOptions<T, P, this>) => P;
|
|
477
|
-
maximumNumber: number;
|
|
478
|
-
minimumNumber: number;
|
|
479
|
-
model: InputsModel<T, P>;
|
|
480
|
-
onChangeValue: (values: Array<T> | null, event: unknown, properties: this) => void;
|
|
481
|
-
value: Array<P> | null;
|
|
482
|
-
writable: boolean;
|
|
483
|
-
}
|
|
484
|
-
export type PartialInputsModel<T = unknown, P extends InputsPropertiesItem<T> = Properties<T>> = Partial<Omit<InputsModel<T, P>, 'state'> & {
|
|
485
|
-
state?: Partial<InputsModelState>;
|
|
486
|
-
}>;
|
|
487
|
-
export type InputsProps<T = unknown, P extends InputsPropertiesItem<T> = Properties<T>> = Partial<Omit<InputsProperties<T, P>, 'model' | 'value'>> & {
|
|
488
|
-
model?: PartialInputsModel<T, P>;
|
|
489
|
-
value?: Array<Partial<P>> | Array<T> | null;
|
|
490
|
-
};
|
|
491
|
-
export type DefaultInputsProperties<T = string, P extends InputsPropertiesItem<T> = InputProps<T>> = Partial<Omit<InputsProperties<T, P>, 'default' | 'model' | 'value'>> & {
|
|
492
|
-
model: InputsModel<T, P>;
|
|
493
|
-
};
|
|
494
|
-
export type InputsPropertyTypes<T = unknown, P extends InputsPropertiesItem<T> = Properties<T>> = {
|
|
495
|
-
[key in keyof InputsProperties<P>]: ValueOf<typeof PropertyTypes>;
|
|
496
|
-
};
|
|
497
|
-
export type InputsState<T = unknown> = State<Array<null | T | undefined>>;
|
|
498
|
-
export type InputsAdapter<T = unknown, P extends InputsPropertiesItem<T> = Properties<T>> = ComponentAdapter<InputsProperties<T, P>, InputsState<T>>;
|
|
499
|
-
export type InputsAdapterWithReferences<T = unknown, P extends InputsPropertiesItem<T> = Properties<T>, RefType = unknown> = InputsAdapter<T, P> & {
|
|
500
|
-
references: Array<MutableRefObject<RefType>>;
|
|
501
|
-
};
|
|
502
|
-
export interface InputsComponent<Type> extends Omit<ForwardRefExoticComponent<InputsProps>, 'propTypes'>, StaticWebComponent<Type, InputsModelState, DefaultInputsProperties> {
|
|
503
|
-
<T = string, P extends InputsPropertiesItem<T> = InputProperties<T>>(props: InputsProps<T, P> & RefAttributes<InputsAdapter<T, P>>): ReactElement;
|
|
504
|
-
}
|
|
505
|
-
export declare const inputsPropertyTypes: PropertiesValidationMap;
|
|
506
|
-
export declare const inputsRenderProperties: Array<string>;
|
|
507
|
-
export declare const defaultInputsModel: InputsModel<string, InputProperties<string>>;
|
|
508
|
-
export declare const defaultInputsProperties: DefaultInputsProperties;
|
|
509
|
-
export type DateTimeRepresentation = number | string;
|
|
510
|
-
export interface IntervalValue {
|
|
511
|
-
end?: DateTimeRepresentation | null;
|
|
512
|
-
start?: DateTimeRepresentation | null;
|
|
513
|
-
}
|
|
514
|
-
export type IntervalInputModel = Omit<InputModel<DateTimeRepresentation | null>, 'maximum' | 'minimum'> & {
|
|
515
|
-
maximum: DateTimeRepresentation;
|
|
516
|
-
minimum: DateTimeRepresentation;
|
|
517
|
-
};
|
|
518
|
-
export type IntervalInputProps = Omit<InputProps<DateTimeRepresentation | null>, 'maximum' | 'minimum'> & {
|
|
519
|
-
maximum: DateTimeRepresentation;
|
|
520
|
-
minimum: DateTimeRepresentation;
|
|
521
|
-
};
|
|
522
|
-
export interface IntervalConfiguration {
|
|
523
|
-
end: Partial<IntervalInputModel> | Partial<IntervalInputProps>;
|
|
524
|
-
start: Partial<IntervalInputModel> | Partial<IntervalInputProps>;
|
|
525
|
-
}
|
|
526
|
-
export type IntervalModelState = ModelState;
|
|
527
|
-
export interface IntervalModel {
|
|
528
|
-
name: string;
|
|
529
|
-
state?: IntervalModelState;
|
|
530
|
-
value: {
|
|
531
|
-
end: IntervalInputModel;
|
|
532
|
-
start: IntervalInputModel;
|
|
533
|
-
};
|
|
534
|
-
}
|
|
535
|
-
export interface IntervalProperties extends Omit<InputProperties<DateTimeRepresentation | null>, 'icon' | 'model' | 'onChange' | 'onChangeValue' | 'value'> {
|
|
536
|
-
icon: IconOptions;
|
|
537
|
-
model: IntervalModel;
|
|
538
|
-
onChange: (properties: this, event?: GenericEvent) => void;
|
|
539
|
-
onChangeValue: (value: IntervalValue | null, event?: GenericEvent) => void;
|
|
540
|
-
value: IntervalConfiguration;
|
|
541
|
-
}
|
|
542
|
-
type PartialIntervalValue = Partial<Omit<InputModel<DateTimeRepresentation | null>, 'value'>> & {
|
|
543
|
-
value: DateTimeRepresentation | null;
|
|
544
|
-
};
|
|
545
|
-
export type PartialIntervalModel = Partial<Omit<IntervalProperties['model'], 'state' | 'value'>> & {
|
|
546
|
-
value?: {
|
|
547
|
-
end?: PartialIntervalValue;
|
|
548
|
-
start?: PartialIntervalValue;
|
|
549
|
-
};
|
|
550
|
-
state?: Partial<IntervalModelState>;
|
|
551
|
-
};
|
|
552
|
-
export type IntervalProps = Omit<InputProps<DateTimeRepresentation | null>, 'icon' | 'model' | 'onChange' | 'onChangeValue' | 'value'> & Partial<{
|
|
553
|
-
end: Partial<Omit<InputProps<DateTimeRepresentation | null>, 'maximum' | 'minimum'> & {
|
|
554
|
-
maximum: DateTimeRepresentation;
|
|
555
|
-
minimum: DateTimeRepresentation;
|
|
556
|
-
}>;
|
|
557
|
-
start: Partial<Omit<InputProps<DateTimeRepresentation | null>, 'maximum' | 'minimum'> & {
|
|
558
|
-
maximum: DateTimeRepresentation;
|
|
559
|
-
minimum: DateTimeRepresentation;
|
|
560
|
-
}>;
|
|
561
|
-
icon: IntervalProperties['icon'] | string;
|
|
562
|
-
model?: PartialIntervalModel;
|
|
563
|
-
onChange: IntervalProperties['onChange'];
|
|
564
|
-
onChangeValue: IntervalProperties['onChangeValue'];
|
|
565
|
-
value?: IntervalConfiguration | IntervalValue | null;
|
|
566
|
-
}>;
|
|
567
|
-
export type DefaultIntervalProperties = Omit<IntervalProps, 'model'> & {
|
|
568
|
-
model: IntervalModel;
|
|
569
|
-
};
|
|
570
|
-
export type IntervalPropertyTypes = {
|
|
571
|
-
[key in keyof IntervalProperties]: ValueOf<typeof PropertyTypes>;
|
|
572
|
-
};
|
|
573
|
-
export type IntervalAdapter = ComponentAdapter<IntervalProperties, {
|
|
574
|
-
value?: IntervalValue | null;
|
|
575
|
-
}>;
|
|
576
|
-
export interface IntervalAdapterWithReferences extends IntervalAdapter {
|
|
577
|
-
references: {
|
|
578
|
-
end: MutableRefObject<InputAdapterWithReferences<DateTimeRepresentation | null> | null>;
|
|
579
|
-
start: MutableRefObject<InputAdapterWithReferences<DateTimeRepresentation | null> | null>;
|
|
580
|
-
};
|
|
581
|
-
}
|
|
582
|
-
export type IntervalComponent<ComponentType> = InputComponent<IntervalConfiguration | IntervalValue | null, ComponentType, IntervalProps, IntervalModelState, DefaultIntervalProperties, IntervalAdapter>;
|
|
583
|
-
export declare const intervalPropertyTypes: PropertiesValidationMap;
|
|
584
|
-
export declare const defaultIntervalProperties: DefaultIntervalProperties;
|
|
585
138
|
export interface ConfigurationProperties {
|
|
586
139
|
strict?: boolean;
|
|
587
140
|
themeConfiguration?: ThemeProviderProps['options'];
|
|
588
141
|
tooltip?: Properties['tooltip'];
|
|
589
142
|
wrap?: boolean;
|
|
590
143
|
}
|
|
591
|
-
export {};
|
package/dist/type.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";if("undefined"!=typeof module&&null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&"undefined"!=typeof __dirname&&null!==__dirname&&(module.paths=eval("require.main.paths").concat(module.paths.filter((function(path){return eval("require.main.paths").includes(path)}))))}if(null==window)var window="undefined"==typeof global||null===global?{}:global;!function(e,n){if("object"==typeof exports&&"object"==typeof module)module.exports=n(require("@babel/runtime/helpers/extends"),require("clientnode"),require("clientnode/dist/property-types"));else if("function"==typeof define&&define.amd)define(["@babel/runtime/helpers/extends","clientnode","clientnode/dist/property-types"],n);else{var t="object"==typeof exports?n(require("@babel/runtime/helpers/extends"),require("clientnode"),require("clientnode/dist/property-types")):n(e["@babel/runtime/helpers/extends"],e.clientnode,e["clientnode/dist/property-types"]);for(var o in t)("object"==typeof exports?exports:e)[o]=t[o]}}(this,(function(e,n,t){return function(){var o={1:function(n){n.exports=e},2:function(e){e.exports=n},8:function(e){e.exports=t}},r={};function i(e){var n=r[e];if(void 0!==n)return n.exports;var t=r[e]={exports:{}};return o[e](t,t.exports,i),t.exports}i.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(n,{a:n}),n},i.d=function(e,n){for(var t in n)i.o(n,t)&&!i.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},i.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};i.r(a),i.d(a,{baseModelPropertyTypes:function(){return p},checkboxPropertyTypes:function(){return T},dedicatedFileInputPropertyTypes:function(){return M},defaultCheckboxModel:function(){return h},defaultCheckboxProperties:function(){return v},defaultFileInputModel:function(){return z},defaultFileInputModelState:function(){return $},defaultFileInputProperties:function(){return E},defaultFileNameInputProperties:function(){return L},defaultInputModel:function(){return I},defaultInputModelState:function(){return j},defaultInputProperties:function(){return S},defaultInputsModel:function(){return F},defaultInputsProperties:function(){return V},defaultIntervalProperties:function(){return R},defaultModel:function(){return b},defaultModelState:function(){return y},defaultProperties:function(){return g},fileInputModelPropertyTypes:function(){return N},fileInputModelStatePropertyTypes:function(){return w},fileInputPropertyTypes:function(){return C},fileInputRenderProperties:function(){return q},inputModelStatePropertyTypes:function(){return x},inputPropertyTypes:function(){return O},inputsPropertyTypes:function(){return _},inputsRenderProperties:function(){return B},intervalPropertyTypes:function(){return D},modelPropertyTypes:function(){return c},modelStatePropertyTypes:function(){return d},propertyTypes:function(){return f},textInputRenderProperties:function(){return P}});var u=i(1),l=i.n(u),s=i(2),m=i(8),p={name:m.string,declaration:m.string,description:m.string,default:m.any,selection:(0,m.oneOfType)([(0,m.arrayOf)((0,m.oneOfType)([(0,m.arrayOf)((0,m.oneOfType)([m.number,m.string])),m.number,(0,m.objectOf)((0,m.oneOfType)([m.number,m.string])),m.string])),(0,m.objectOf)((0,m.oneOfType)([m.number,m.string]))]),type:m.string,value:m.any},d={dirty:(0,m.oneOfType)([m.boolean,m.symbol]),pristine:(0,m.oneOfType)([m.boolean,m.symbol]),touched:(0,m.oneOfType)([m.boolean,m.symbol]),untouched:(0,m.oneOfType)([m.boolean,m.symbol]),focused:(0,m.oneOfType)([m.boolean,m.symbol]),visited:(0,m.oneOfType)([m.boolean,m.symbol]),invalid:(0,m.oneOfType)([m.boolean,m.symbol]),invalidRequired:(0,m.oneOfType)([m.boolean,m.symbol]),valid:(0,m.oneOfType)([m.boolean,m.symbol])},c=l()({},p,{emptyEqualsNull:m.boolean,trim:m.boolean,invertedPattern:(0,m.oneOfType)([(0,m.arrayOf)((0,m.oneOfType)([m.object,m.string])),m.object,m.string]),pattern:(0,m.oneOfType)([(0,m.arrayOf)((0,m.oneOfType)([m.object,m.string])),m.object,m.string]),maximum:(0,m.oneOfType)([m.number,m.string]),minimum:(0,m.oneOfType)([m.number,m.string]),maximumLength:m.number,minimumLength:m.number,mutable:m.boolean,writable:m.boolean,state:(0,m.shape)(d)}),f=l()({},p,d,{className:(0,m.oneOfType)([(0,m.arrayOf)(m.string),m.string]),styles:m.object,themeConfiguration:m.object,disabled:m.boolean,enforceUncontrolled:m.boolean,initialValue:m.any,inputProperties:m.object,model:(0,m.shape)(c),onChange:m.func,onChangeValue:m.func,onChangeShowDeclaration:m.func,onChangeState:m.func,onClick:m.func,onFocus:m.func,onTouch:m.func,required:m.boolean,requiredText:m.string,ripple:(0,m.oneOfType)([m.boolean,m.object]),rootProps:m.object,showDeclaration:(0,m.oneOfType)([m.boolean,m.symbol]),showInitialValidationState:m.boolean,showValidationState:m.boolean,tooltip:m.any}),y={dirty:!1,pristine:!0,focused:!1,visited:!1,invalid:!1,invalidRequired:!1,valid:!0,touched:!1,untouched:!0},b={declaration:"",description:"",name:"NO_NAME_DEFINED",emptyEqualsNull:!0,pattern:void 0,invertedPattern:void 0,maximum:1/0,minimum:-1/0,maximumLength:-1,minimumLength:0,mutable:!0,writable:!0,nullable:!0,state:l()({},y),trim:!0,type:"string"},g={className:[],styles:{},enforceUncontrolled:!1,model:l()({},b),triggerInitialPropertiesConsolidation:!1,showDeclaration:void 0,showInitialValidationState:!1,showValidationState:!0,requiredText:"Please fill this field."},T=l()({},f,d,{checked:m.boolean,id:m.string}),h=l()({},b,{default:!1,type:"boolean",value:!1}),v=l()({},g,{default:!1,model:l()({},h),requiredText:"Please check this field."}),x=l()({},d,{invalidMaximum:(0,m.oneOfType)([m.boolean,m.symbol]),invalidMinimum:(0,m.oneOfType)([m.boolean,m.symbol]),invalidMaximumLength:(0,m.oneOfType)([m.boolean,m.symbol]),invalidMinimumLength:(0,m.oneOfType)([m.boolean,m.symbol]),invalidInvertedPattern:(0,m.oneOfType)([m.boolean,m.symbol]),invalidPattern:(0,m.oneOfType)([m.boolean,m.symbol])}),O=l()({},f,x,{align:m.string,children:m.func,cursor:(0,m.oneOfType)([(0,m.shape)({end:m.number.isRequired,start:m.number.isRequired}),m.symbol]),editor:m.string,editorIsActive:(0,m.oneOfType)([m.boolean,m.symbol]),hidden:(0,m.oneOfType)([m.boolean,m.symbol]),icon:(0,m.oneOfType)([m.string,m.object]),inputProps:m.object,invertedPattern:(0,m.oneOfType)([(0,m.arrayOf)((0,m.oneOfType)([m.object,m.string])),m.object,m.string]),invertedPatternText:m.string,labels:(0,m.oneOfType)([(0,m.arrayOf)((0,m.arrayOf)(m.string)),(0,m.arrayOf)(m.string),m.object]),maximum:(0,m.oneOfType)([m.number,m.string]),maximumLengthText:m.string,maximumText:m.string,minimum:(0,m.oneOfType)([m.number,m.string]),minimumLengthText:m.string,minimumText:m.string,onBlur:m.func,onChangeEditorIsActive:m.func,onKeyDown:m.func,onKeyUp:m.func,onSelect:m.func,onSelectionChange:m.func,outlined:m.boolean,pattern:(0,m.oneOfType)([(0,m.arrayOf)((0,m.oneOfType)([m.object,m.string])),m.object,m.string]),patternText:m.string,placeholder:m.string,representation:(0,m.oneOfType)([m.string,m.symbol]),rows:m.number,searchSelection:m.boolean,selectableEditor:m.boolean,step:m.number,suggestionCreator:m.func,suggestSelection:m.boolean,trailingIcon:m.any,transformer:m.object}),P=["children","suggestionCreator"],j=l()({},y,{invalidMaximum:!1,invalidMinimum:!1,invalidMaximumLength:!1,invalidMinimumLength:!1,invalidInvertedPattern:!1,invalidPattern:!1}),I=l()({},b,{state:j}),S=l()({},g,{cursor:{end:0,start:0},editor:"plain",selectableEditor:!1,rows:4,invertedPatternText:'Your string should not match the regular expression${[].concat(invertedPattern).length > 1 ? "s" : ""}: "${[].concat(invertedPattern).join("\\", \\"")}".',maximumLengthText:"Please type less or equal than ${maximumLength} symbols.",minimumLengthText:"Please type at least or equal ${minimumLength} symbols.",maximumText:"Please type less or equal than ${formatValue(maximum)}.",minimumText:"Please type at least or equal ${formatValue(minimum)}.",model:l()({},I),patternText:'Your string have to match the regular expression${[].concat(pattern).length > 1 ? "s" : ""}: "${[].concat(pattern).join("\\", \\"")}".',searchSelection:!1,suggestSelection:!1,step:1}),q=["children","generateFileNameInputProperties"],M={contentTypePattern:(0,m.oneOfType)([(0,m.arrayOf)((0,m.oneOfType)([m.object,m.string])),m.object,m.string]),invertedContentTypePattern:(0,m.oneOfType)([(0,m.arrayOf)((0,m.oneOfType)([m.object,m.string])),m.object,m.string]),maximumSize:m.number,minimumSize:m.number},N=l()({},c,M,{fileName:(0,m.shape)(O)}),w=l()({},d,{invalidContentTypePattern:(0,m.oneOfType)([m.boolean,m.symbol]),invalidInvertedContentTypePattern:(0,m.oneOfType)([m.boolean,m.symbol]),invalidMaximumSize:(0,m.oneOfType)([m.boolean,m.symbol]),invalidMinimumSize:(0,m.oneOfType)([m.boolean,m.symbol]),invalidName:(0,m.oneOfType)([m.boolean,m.symbol])}),C=l()({},f,M,w,{children:m.func,contentTypePatternText:(0,m.oneOfType)([(0,m.arrayOf)((0,m.oneOfType)([m.object,m.string])),m.object,m.string]),invertedContentTypePatternText:(0,m.oneOfType)([(0,m.arrayOf)((0,m.oneOfType)([m.object,m.string])),m.object,m.string]),maximumSizeText:m.string,minimumSizeText:m.string,model:(0,m.shape)(N),deleteButton:(0,m.oneOfType)([m.object,m.string]),downloadButton:(0,m.oneOfType)([m.object,m.string]),editButton:(0,m.oneOfType)([m.object,m.string]),newButton:(0,m.oneOfType)([m.object,m.string]),encoding:m.string,generateFileNameInputProperties:m.func,onBlur:m.func,outlined:m.boolean}),$=l()({},y,{invalidContentTypePattern:!1,invalidInvertedContentTypePattern:!1,invalidMaximumSize:!1,invalidMinimumSize:!1,invalidName:!1}),z=l()({},b,{contentTypePattern:/^.+\/.+$/,invertedContentTypePattern:void 0,fileName:l()({},I,{maximumLength:1024,name:"Name",pattern:/^[^/]+$/}),maximumSize:1/0,minimumSize:0,state:$}),L=l()({},S,{emptyEqualsNull:!1,invertedPatternText:'Your file\'s name should not match the regular expression${[].concat(invertedPattern).length > 1 ? "s" : ""}: "${[].concat(invertedPattern).join("\\", \\"")}".',patternText:'Your file\'s name has to match the regular expression${[].concat(pattern).length > 1 ? "s" : ""}: "${[].concat(pattern).join("\\", \\"")}".',required:!0});delete L.model;var E=l()({},g,{contentTypePatternText:'Your file\'s mime-type has to match the regular expression${[].concat(contentTypePattern).length > 1 ? "s" : ""}: "${[].concat(contentTypePattern).join("\\", \\"")}".',invertedContentTypePatternText:'Your file\'s mime-type should not match the regular expression${[].concat(invertedContentTypePattern).length > 1 ? "s" : ""}: "${[].concat(invertedContentTypePattern).join("\\", \\"")}".',maximumSizeText:"Please provide a file with less or equal size than ${maximumSize} byte.",minimumSizeText:"Please provide a file with more or equal size than ${maximumSize} byte.",requiredText:"Please select a file.",deleteButton:"delete",downloadButton:"download",editButton:"edit",newButton:"new",encoding:"utf-8",generateFileNameInputProperties:s.identity,media:{sixteenByNine:!0},model:l()({},z),sourceToBlobOptions:{endings:"transparent",type:"text/plain"},hashingConfiguration:{binaryString:!1,prefix:"",readChunkSizeInByte:2097152}}),_=l()({},f,x,{children:m.func,createItem:m.func,createPrototype:m.func,maximumNumber:m.number,minimumNumber:m.number}),B=["children","createItem","createPrototype"],F=l()({},b,{state:l()({},b.state,{invalidMaximumNumber:!1,invalidMinimumNumber:!1}),maximumNumber:1/0,minimumNumber:0,type:"string[]"}),V=l()({},g,{addIcon:{icon:"add"},removeIcon:{icon:"clear"},createItem:function(e){return e.item},createPrototype:function(e){return e.item},model:l()({},F)}),D=l()({},O,{value:(0,m.shape)({end:(0,m.oneOfType)([m.number,m.string,(0,m.shape)(O)]),start:(0,m.oneOfType)([m.number,m.string,(0,m.shape)(O)])})}),R={icon:{icon:"timelapse"},maximumText:"Please provide something earlier than ${formatValue(maximum)}.",minimumText:"Please provide something later than ${formatValue(minimum)}.",requiredText:"Please provide a range.",model:{name:"NO_NAME_DEFINED",state:l()({},y),value:{end:l()({},I,{description:"End",name:"end"}),start:l()({},I,{description:"Start",name:"start"})}},type:"time"};return a}()}));
|
|
1
|
+
"use strict";if("undefined"!=typeof module&&null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&"undefined"!=typeof __dirname&&null!==__dirname&&(module.paths=eval("require.main.paths").concat(module.paths.filter((function(path){return eval("require.main.paths").includes(path)}))))}if(null==window)var window="undefined"==typeof global||null===global?{}:global;!function(e,n){if("object"==typeof exports&&"object"==typeof module)module.exports=n(require("@babel/runtime/helpers/extends"),require("clientnode/dist/property-types"));else if("function"==typeof define&&define.amd)define(["@babel/runtime/helpers/extends","clientnode/dist/property-types"],n);else{var o="object"==typeof exports?n(require("@babel/runtime/helpers/extends"),require("clientnode/dist/property-types")):n(e["@babel/runtime/helpers/extends"],e["clientnode/dist/property-types"]);for(var t in o)("object"==typeof exports?exports:e)[t]=o[t]}}(this,(function(e,n){return function(){var o=[function(n){n.exports=e},,,,function(e){e.exports=n}],t={};function r(e){var n=t[e];if(void 0!==n)return n.exports;var i=t[e]={exports:{}};return o[e](i,i.exports,r),i.exports}r.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(n,{a:n}),n},r.d=function(e,n){for(var o in n)r.o(n,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})},r.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};r.r(i),r.d(i,{baseModelPropertyTypes:function(){return s},defaultModel:function(){return m},defaultModelState:function(){return y},defaultProperties:function(){return b},modelPropertyTypes:function(){return p},modelStatePropertyTypes:function(){return d},propertyTypes:function(){return f}});var a=r(0),l=r.n(a),u=r(4),s={name:u.string,declaration:u.string,description:u.string,default:u.any,selection:(0,u.oneOfType)([(0,u.arrayOf)((0,u.oneOfType)([(0,u.arrayOf)((0,u.oneOfType)([u.number,u.string])),u.number,(0,u.objectOf)((0,u.oneOfType)([u.number,u.string])),u.string])),(0,u.objectOf)((0,u.oneOfType)([u.number,u.string]))]),type:u.string,value:u.any},d={dirty:(0,u.oneOfType)([u.boolean,u.symbol]),pristine:(0,u.oneOfType)([u.boolean,u.symbol]),touched:(0,u.oneOfType)([u.boolean,u.symbol]),untouched:(0,u.oneOfType)([u.boolean,u.symbol]),focused:(0,u.oneOfType)([u.boolean,u.symbol]),visited:(0,u.oneOfType)([u.boolean,u.symbol]),invalid:(0,u.oneOfType)([u.boolean,u.symbol]),invalidRequired:(0,u.oneOfType)([u.boolean,u.symbol]),valid:(0,u.oneOfType)([u.boolean,u.symbol])},p=l()({},s,{emptyEqualsNull:u.boolean,trim:u.boolean,invertedPattern:(0,u.oneOfType)([(0,u.arrayOf)((0,u.oneOfType)([u.object,u.string])),u.object,u.string]),pattern:(0,u.oneOfType)([(0,u.arrayOf)((0,u.oneOfType)([u.object,u.string])),u.object,u.string]),maximum:(0,u.oneOfType)([u.number,u.string]),minimum:(0,u.oneOfType)([u.number,u.string]),maximumLength:u.number,minimumLength:u.number,mutable:u.boolean,writable:u.boolean,state:(0,u.shape)(d)}),f=l()({},s,d,{className:(0,u.oneOfType)([(0,u.arrayOf)(u.string),u.string]),styles:u.object,themeConfiguration:u.object,disabled:u.boolean,enforceUncontrolled:u.boolean,initialValue:u.any,inputProperties:u.object,model:(0,u.shape)(p),onChange:u.func,onChangeValue:u.func,onChangeShowDeclaration:u.func,onChangeState:u.func,onClick:u.func,onFocus:u.func,onTouch:u.func,required:u.boolean,requiredText:u.string,ripple:(0,u.oneOfType)([u.boolean,u.object]),rootProps:u.object,showDeclaration:(0,u.oneOfType)([u.boolean,u.symbol]),showInitialValidationState:u.boolean,showValidationState:u.boolean,tooltip:u.any}),y={dirty:!1,pristine:!0,focused:!1,visited:!1,invalid:!1,invalidRequired:!1,valid:!0,touched:!1,untouched:!0},m={declaration:"",description:"",name:"NO_NAME_DEFINED",emptyEqualsNull:!0,pattern:void 0,invertedPattern:void 0,maximum:1/0,minimum:-1/0,maximumLength:-1,minimumLength:0,mutable:!0,writable:!0,nullable:!0,state:l()({},y),trim:!0,type:"string"},b={className:[],styles:{},enforceUncontrolled:!1,model:l()({},m),triggerInitialPropertiesConsolidation:!1,showDeclaration:void 0,showInitialValidationState:!1,showValidationState:!0,requiredText:"Please fill this field."};return i}()}));
|