dromo-uploader-js 2.2.0 → 2.4.0
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/interfaces.d.ts +60 -2
- package/package.json +1 -1
package/dist/interfaces.d.ts
CHANGED
|
@@ -369,7 +369,26 @@ export type IUUIDField = {
|
|
|
369
369
|
}
|
|
370
370
|
];
|
|
371
371
|
};
|
|
372
|
-
export type IDeveloperField = IStringField | ICheckboxField | IEmailField | ISelectField |
|
|
372
|
+
export type IDeveloperField = IStringField | ICheckboxField | IEmailField | ISelectField | {
|
|
373
|
+
label: string;
|
|
374
|
+
key: string;
|
|
375
|
+
description?: string | undefined;
|
|
376
|
+
alternateMatches?: string[] | undefined;
|
|
377
|
+
validators?: IValidatorField[];
|
|
378
|
+
invalidValueMessage?: string | undefined;
|
|
379
|
+
readOnly?: boolean;
|
|
380
|
+
hidden?: boolean;
|
|
381
|
+
requireMapping?: boolean | undefined;
|
|
382
|
+
manyToOne?: boolean;
|
|
383
|
+
type: "multi-select" | [
|
|
384
|
+
"multi-select",
|
|
385
|
+
{
|
|
386
|
+
delimiter?: string | undefined;
|
|
387
|
+
trimValues?: boolean | undefined;
|
|
388
|
+
}
|
|
389
|
+
];
|
|
390
|
+
selectOptions: IDeveloperSelectOption[];
|
|
391
|
+
} | INumberField | IDateTimeField | IDomainField | IPhoneNumberField | IUrlField | ISSNField | IUUIDField | IUSZipCodeField | {
|
|
373
392
|
label: string;
|
|
374
393
|
key: string;
|
|
375
394
|
description?: string | undefined;
|
|
@@ -438,6 +457,9 @@ export type IDeveloperStyleOverrides = {
|
|
|
438
457
|
backgroundColor?: string;
|
|
439
458
|
color?: string;
|
|
440
459
|
outline?: string;
|
|
460
|
+
activeBorderColor?: string;
|
|
461
|
+
acceptBorderColor?: string;
|
|
462
|
+
rejectBorderColor?: string;
|
|
441
463
|
};
|
|
442
464
|
helpText?: {
|
|
443
465
|
textColor?: string;
|
|
@@ -468,11 +490,47 @@ export type IDeveloperStyleOverrides = {
|
|
|
468
490
|
headerActiveTextColor?: string;
|
|
469
491
|
headerHighlightedBackgroundColor?: string;
|
|
470
492
|
headerHighlightedTextColor?: string;
|
|
493
|
+
cellBackgroundColor?: string;
|
|
494
|
+
cellTextColor?: string;
|
|
495
|
+
cellHoverBackgroundColor?: string;
|
|
496
|
+
cellHoverTextColor?: string;
|
|
497
|
+
oddRowBackgroundColor?: string;
|
|
498
|
+
rowSelectedBackgroundColor?: string;
|
|
499
|
+
rowSelectedBorderColor?: string;
|
|
500
|
+
borderColor?: string;
|
|
501
|
+
dividerColor?: string;
|
|
502
|
+
errorCellBackgroundColor?: string;
|
|
503
|
+
errorCellHoverBackgroundColor?: string;
|
|
504
|
+
warningCellBackgroundColor?: string;
|
|
505
|
+
warningCellHoverBackgroundColor?: string;
|
|
506
|
+
infoCellBackgroundColor?: string;
|
|
507
|
+
infoCellHoverBackgroundColor?: string;
|
|
508
|
+
readOnlyCellBackgroundColor?: string;
|
|
509
|
+
readOnlyCellTextColor?: string;
|
|
471
510
|
};
|
|
472
511
|
modalOverlay?: {
|
|
473
512
|
backgroundColor?: string;
|
|
474
513
|
opacity?: string;
|
|
475
514
|
};
|
|
515
|
+
card?: {
|
|
516
|
+
backgroundColor?: string;
|
|
517
|
+
containerBackgroundColor?: string;
|
|
518
|
+
borderColor?: string;
|
|
519
|
+
borderWidth?: string;
|
|
520
|
+
borderRadius?: string;
|
|
521
|
+
textColor?: string;
|
|
522
|
+
expandedBackgroundColor?: string;
|
|
523
|
+
iconColor?: string;
|
|
524
|
+
};
|
|
525
|
+
dropdown?: {
|
|
526
|
+
backgroundColor?: string;
|
|
527
|
+
borderColor?: string;
|
|
528
|
+
textColor?: string;
|
|
529
|
+
errorBorderColor?: string;
|
|
530
|
+
menuBackgroundColor?: string;
|
|
531
|
+
optionHoverBackgroundColor?: string;
|
|
532
|
+
optionSelectedBackgroundColor?: string;
|
|
533
|
+
};
|
|
476
534
|
};
|
|
477
535
|
export type TLocaleShorthand = "bn" | "en" | "hr" | "ja" | "nl" | "ru" | "uk" | "cs" | "es" | "hu" | "ko" | "no" | "sv" | "vi" | "da" | "fi" | "id" | "lt" | "pl" | "sw" | "zh_CN" | "de" | "fr" | "is" | "lv" | "pt" | "th" | "zh_TW" | "el" | "hi" | "it" | "ms" | "ro" | "tr";
|
|
478
536
|
export type IDeveloperSettings = {
|
|
@@ -586,7 +644,7 @@ export type WrapAsync<T> = {
|
|
|
586
644
|
[P in keyof T]: T[P] extends (...args: infer Args) => infer Return ? (...args: Args) => Promise<Return> : T[P];
|
|
587
645
|
};
|
|
588
646
|
export type IPublicConnectionMethods = WrapAsync<Pick<IConnectionMethods, "addField" | "updateInfoMessages" | "setHeaderRowOverride" | "setUser" | "removeField" | "setDevelopmentMode" | "addRows" | "removeRows" | "setConfirmationMessage">>;
|
|
589
|
-
export type IDeveloperFieldType = "string" | "checkbox" | "select" | "number" | "domain" | "date" | "ssn" | "datetime" | "phone-number" | "time" | "url" | "us-zip-code" | "country" | "uuid" | "us-state-territory" | "email";
|
|
647
|
+
export type IDeveloperFieldType = "string" | "checkbox" | "select" | "multi-select" | "number" | "domain" | "date" | "ssn" | "datetime" | "phone-number" | "time" | "url" | "us-zip-code" | "country" | "uuid" | "us-state-territory" | "email";
|
|
590
648
|
export interface ICellRef {
|
|
591
649
|
rowIndex: number;
|
|
592
650
|
fieldKey: string;
|