@ebertjendustries/cswrapper 1.0.10 → 1.0.11
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/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +11 -0
- package/dist/index.mjs +11 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -204,6 +204,7 @@ declare abstract class ViewElementSpec implements IViewElementSpec {
|
|
|
204
204
|
getDataTestId(): string;
|
|
205
205
|
getLocalisationKey(): string;
|
|
206
206
|
getKeyHierarchy(): string[];
|
|
207
|
+
log(prefix?: string): void;
|
|
207
208
|
abstract getValueValidityLevel(value: any): ElementValidityLevel;
|
|
208
209
|
}
|
|
209
210
|
type FieldValidatorFunctionType = (fieldSpec: IFieldSpec, value: any) => ElementValidityLevel;
|
|
@@ -240,6 +241,7 @@ declare class ViewSpec<F extends Object> extends ViewElementSpec {
|
|
|
240
241
|
addView<FieldType extends Object>(viewSpecProvider: (parent: ViewSpec<any>, key: string, instanceId?: string) => ViewSpec<FieldType>, key: string, instanceId?: string): ViewSpec<FieldType>;
|
|
241
242
|
getAllElements(): IViewElementSpec[];
|
|
242
243
|
getValueValidityLevel(value: any): ElementValidityLevel;
|
|
244
|
+
logViewSpec(): void;
|
|
243
245
|
}
|
|
244
246
|
|
|
245
247
|
type LocalisedElements = {
|
package/dist/index.d.ts
CHANGED
|
@@ -204,6 +204,7 @@ declare abstract class ViewElementSpec implements IViewElementSpec {
|
|
|
204
204
|
getDataTestId(): string;
|
|
205
205
|
getLocalisationKey(): string;
|
|
206
206
|
getKeyHierarchy(): string[];
|
|
207
|
+
log(prefix?: string): void;
|
|
207
208
|
abstract getValueValidityLevel(value: any): ElementValidityLevel;
|
|
208
209
|
}
|
|
209
210
|
type FieldValidatorFunctionType = (fieldSpec: IFieldSpec, value: any) => ElementValidityLevel;
|
|
@@ -240,6 +241,7 @@ declare class ViewSpec<F extends Object> extends ViewElementSpec {
|
|
|
240
241
|
addView<FieldType extends Object>(viewSpecProvider: (parent: ViewSpec<any>, key: string, instanceId?: string) => ViewSpec<FieldType>, key: string, instanceId?: string): ViewSpec<FieldType>;
|
|
241
242
|
getAllElements(): IViewElementSpec[];
|
|
242
243
|
getValueValidityLevel(value: any): ElementValidityLevel;
|
|
244
|
+
logViewSpec(): void;
|
|
243
245
|
}
|
|
244
246
|
|
|
245
247
|
type LocalisedElements = {
|
package/dist/index.js
CHANGED
|
@@ -859,6 +859,9 @@ var ViewElementSpec = class {
|
|
|
859
859
|
}
|
|
860
860
|
return this.keyHierarchy;
|
|
861
861
|
}
|
|
862
|
+
log(prefix) {
|
|
863
|
+
LOGGER.info(`${prefix === void 0 ? "" : prefix}DT ID = ${this.getDataTestId()} ----> Loc Key = ${this.getLocalisationKey()}`);
|
|
864
|
+
}
|
|
862
865
|
};
|
|
863
866
|
var FieldSpec = class _FieldSpec extends ViewElementSpec {
|
|
864
867
|
constructor(key, required, maxLength, minValue, maxValue, customFieldValidator, instanceId) {
|
|
@@ -964,6 +967,14 @@ var ViewSpec = class _ViewSpec extends ViewElementSpec {
|
|
|
964
967
|
getValueValidityLevel(value) {
|
|
965
968
|
return this.viewValidator(this, value);
|
|
966
969
|
}
|
|
970
|
+
logViewSpec() {
|
|
971
|
+
this.log();
|
|
972
|
+
for (const element of Object.values(this.elements)) {
|
|
973
|
+
if (element instanceof ViewElementSpec) {
|
|
974
|
+
element.log(" ");
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
}
|
|
967
978
|
};
|
|
968
979
|
|
|
969
980
|
// src/views/CSVEnumRatingView.tsx
|
package/dist/index.mjs
CHANGED
|
@@ -750,6 +750,9 @@ var ViewElementSpec = class {
|
|
|
750
750
|
}
|
|
751
751
|
return this.keyHierarchy;
|
|
752
752
|
}
|
|
753
|
+
log(prefix) {
|
|
754
|
+
LOGGER.info(`${prefix === void 0 ? "" : prefix}DT ID = ${this.getDataTestId()} ----> Loc Key = ${this.getLocalisationKey()}`);
|
|
755
|
+
}
|
|
753
756
|
};
|
|
754
757
|
var FieldSpec = class _FieldSpec extends ViewElementSpec {
|
|
755
758
|
constructor(key, required, maxLength, minValue, maxValue, customFieldValidator, instanceId) {
|
|
@@ -855,6 +858,14 @@ var ViewSpec = class _ViewSpec extends ViewElementSpec {
|
|
|
855
858
|
getValueValidityLevel(value) {
|
|
856
859
|
return this.viewValidator(this, value);
|
|
857
860
|
}
|
|
861
|
+
logViewSpec() {
|
|
862
|
+
this.log();
|
|
863
|
+
for (const element of Object.values(this.elements)) {
|
|
864
|
+
if (element instanceof ViewElementSpec) {
|
|
865
|
+
element.log(" ");
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
}
|
|
858
869
|
};
|
|
859
870
|
|
|
860
871
|
// src/views/CSVEnumRatingView.tsx
|