@smartbit4all/ng-client 3.3.244 → 3.4.0-alpha
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/esm2020/lib/session/api/configuration.mjs +1 -1
- package/esm2020/lib/session/api/model/sessionInfoData.mjs +1 -1
- package/esm2020/lib/smart-component-layout/api/api/api.mjs +1 -1
- package/esm2020/lib/smart-component-layout/api/api/default.service.mjs +1 -1
- package/esm2020/lib/smart-component-layout/api/api.module.mjs +1 -1
- package/esm2020/lib/smart-component-layout/api/configuration.mjs +1 -1
- package/esm2020/lib/smart-component-layout/api/encoder.mjs +1 -1
- package/esm2020/lib/smart-component-layout/api/index.mjs +1 -1
- package/esm2020/lib/smart-component-layout/api/model/componentType.mjs +1 -1
- package/esm2020/lib/smart-component-layout/api/model/componentWidgetType.mjs +1 -1
- package/esm2020/lib/smart-component-layout/api/model/layoutDirection.mjs +1 -1
- package/esm2020/lib/smart-component-layout/api/model/models.mjs +1 -1
- package/esm2020/lib/smart-component-layout/api/model/smartComponentLayoutDefinition.mjs +1 -1
- package/esm2020/lib/smart-component-layout/api/model/smartComponentWidgetDefinition.mjs +1 -1
- package/esm2020/lib/smart-component-layout/api/param.mjs +1 -1
- package/esm2020/lib/smart-component-layout/api/variables.mjs +1 -1
- package/esm2020/lib/smart-filter/api/filter/model/filterExpressionBoolOperator.mjs +1 -1
- package/esm2020/lib/smart-filter/api/filter/model/filterExpressionBuilderField.mjs +1 -1
- package/esm2020/lib/smart-filter/api/filter/model/filterExpressionBuilderGroup.mjs +1 -1
- package/esm2020/lib/smart-filter/api/filter/model/filterExpressionBuilderModel.mjs +1 -1
- package/esm2020/lib/smart-filter/api/filter/model/filterExpressionData.mjs +1 -1
- package/esm2020/lib/smart-filter/api/filter/model/filterExpressionDataType.mjs +1 -1
- package/esm2020/lib/smart-filter/api/filter/model/filterExpressionField.mjs +1 -1
- package/esm2020/lib/smart-filter/api/filter/model/filterExpressionFieldList.mjs +1 -1
- package/esm2020/lib/smart-filter/api/filter/model/filterExpressionFieldWidgetType.mjs +1 -1
- package/esm2020/lib/smart-filter/api/filter/model/filterExpressionList.mjs +1 -1
- package/esm2020/lib/smart-filter/api/filter/model/filterExpressionOperandData.mjs +1 -1
- package/esm2020/lib/smart-filter/api/filter/model/filterExpressionOperation.mjs +1 -1
- package/esm2020/lib/smart-filter/api/filter/model/filterExpressionOrderBy.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/api/filter.service.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/configuration.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/encoder.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionBoolOperator.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionBuilderApiConfig.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionBuilderField.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionBuilderGroup.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionBuilderModel.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionBuilderUiModel.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionData.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionDataType.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionField.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionFieldEditor.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionFieldList.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionFieldWidgetType.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionList.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionOperandData.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionOperation.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/model/smartFilterType.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/param.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/variables.mjs +1 -1
- package/esm2020/lib/smart-form/api/model/models.mjs +1 -1
- package/esm2020/lib/smart-form/api/model/smartFormInputMode.mjs +1 -1
- package/esm2020/lib/smart-form/api/model/smartFormWidgetType.mjs +1 -1
- package/esm2020/lib/smart-form/api/model/smartWidgetDefinition.mjs +1 -1
- package/esm2020/lib/smart-form/services/smartform.service.mjs +14 -6
- package/esm2020/lib/smart-form/smartform.form-model.mjs +1 -1
- package/esm2020/lib/smart-form/smartform.model.mjs +1 -1
- package/esm2020/lib/smart-form/validators/validator-provider.mjs +44 -0
- package/esm2020/lib/smart-form/widgets/smartformwidget/smartformwidget.component.mjs +3 -1
- package/esm2020/lib/smart-tree/tree-api/api/tree.service.mjs +1 -1
- package/esm2020/lib/smart-tree/tree-api/configuration.mjs +1 -1
- package/esm2020/lib/smart-tree/tree-api/encoder.mjs +1 -1
- package/esm2020/lib/smart-tree/tree-api/param.mjs +1 -1
- package/esm2020/lib/smart-tree/tree-api/variables.mjs +1 -1
- package/esm2020/lib/smart-validation/named-validator.service.mjs +122 -0
- package/esm2020/lib/smart-validation/projects.mjs +4 -0
- package/esm2020/lib/smart-validation/smart-validation.module.mjs +24 -0
- package/esm2020/lib/smart-validation/smart-validation.types.mjs +4 -0
- package/esm2020/lib/view-context/api/model/clipboardData.mjs +1 -1
- package/esm2020/lib/view-context/api/model/componentConstraint.mjs +1 -1
- package/esm2020/lib/view-context/api/model/deviceInfo.mjs +1 -1
- package/esm2020/lib/view-context/api/model/models.mjs +2 -1
- package/esm2020/lib/view-context/api/model/namedValidator.mjs +19 -0
- package/esm2020/lib/view-context/api/model/uiActionButtonDescriptor.mjs +1 -1
- package/esm2020/lib/view-context/api/model/view.mjs +1 -1
- package/esm2020/lib/view-context/api/model/viewContext.mjs +1 -1
- package/esm2020/lib/view-context/api/model/viewContextData.mjs +1 -1
- package/esm2020/lib/view-context/api/model/viewContextUpdate.mjs +1 -1
- package/esm2020/lib/view-context/api/model/viewPlaceholder.mjs +1 -1
- package/esm2020/lib/view-context/smart-view-context.module.mjs +1 -1
- package/esm2020/lib/view-context/value-api/api/api.mjs +1 -1
- package/esm2020/lib/view-context/value-api/api/value.service.mjs +1 -1
- package/esm2020/lib/view-context/value-api/api.module.mjs +1 -1
- package/esm2020/lib/view-context/value-api/configuration.mjs +1 -1
- package/esm2020/lib/view-context/value-api/encoder.mjs +1 -1
- package/esm2020/lib/view-context/value-api/index.mjs +1 -1
- package/esm2020/lib/view-context/value-api/model/genericValue.mjs +1 -1
- package/esm2020/lib/view-context/value-api/model/models.mjs +1 -1
- package/esm2020/lib/view-context/value-api/model/value.mjs +1 -1
- package/esm2020/lib/view-context/value-api/model/valueSetDefinition.mjs +1 -1
- package/esm2020/lib/view-context/value-api/model/valueSetDefinitionIdentifier.mjs +1 -1
- package/esm2020/lib/view-context/value-api/model/valueSetOperand.mjs +1 -1
- package/esm2020/lib/view-context/value-api/param.mjs +1 -1
- package/esm2020/lib/view-context/value-api/variables.mjs +1 -1
- package/esm2020/projects.mjs +2 -1
- package/fesm2015/smartbit4all-ng-client.mjs +180 -7
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +175 -6
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/smart-form/services/smartform.service.d.ts +4 -1
- package/lib/smart-form/smartform.form-model.d.ts +2 -2
- package/lib/smart-form/smartform.model.d.ts +6 -0
- package/lib/smart-form/validators/validator-provider.d.ts +16 -0
- package/lib/smart-validation/named-validator.service.d.ts +17 -0
- package/lib/smart-validation/projects.d.ts +3 -0
- package/lib/smart-validation/smart-validation.module.d.ts +8 -0
- package/lib/smart-validation/smart-validation.types.d.ts +12 -0
- package/lib/view-context/api/model/componentConstraint.d.ts +6 -0
- package/lib/view-context/api/model/models.d.ts +1 -0
- package/lib/view-context/api/model/namedValidator.d.ts +26 -0
- package/package.json +1 -1
- package/projects.d.ts +1 -0
- package/smartbit4all-ng-client-3.4.0-alpha.tgz +0 -0
- package/src/lib/smart-component-layout/api/README.md +226 -226
- package/src/lib/smart-filter-editor/api/README.md +226 -226
- package/src/lib/smart-tree/tree-api/README.md +226 -226
- package/src/lib/view-context/value-api/README.md +226 -226
- package/smartbit4all-ng-client-3.3.244.tgz +0 -0
|
@@ -19,7 +19,7 @@ import { BrowserModule } from '@angular/platform-browser';
|
|
|
19
19
|
import * as i2$6 from '@angular/material/expansion';
|
|
20
20
|
import { MatExpansionModule } from '@angular/material/expansion';
|
|
21
21
|
import * as i22 from '@angular/forms';
|
|
22
|
-
import { FormGroup, FormControl,
|
|
22
|
+
import { Validators, FormGroup, FormControl, NG_VALUE_ACCESSOR, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
23
23
|
import { ENTER, COMMA } from '@angular/cdk/keycodes';
|
|
24
24
|
import { deepEqual } from 'fast-equals';
|
|
25
25
|
import moment from 'moment';
|
|
@@ -2221,6 +2221,25 @@ var MessageType;
|
|
|
2221
2221
|
MessageType["ERROR"] = "error";
|
|
2222
2222
|
})(MessageType || (MessageType = {}));
|
|
2223
2223
|
|
|
2224
|
+
/**
|
|
2225
|
+
* View API
|
|
2226
|
+
* View API
|
|
2227
|
+
*
|
|
2228
|
+
* The version of the OpenAPI document: 1.0.0
|
|
2229
|
+
* Contact: info@it4all.hu
|
|
2230
|
+
*
|
|
2231
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2232
|
+
* https://openapi-generator.tech
|
|
2233
|
+
* Do not edit the class manually.
|
|
2234
|
+
*/
|
|
2235
|
+
var NamedValidatorOperationEnum;
|
|
2236
|
+
(function (NamedValidatorOperationEnum) {
|
|
2237
|
+
NamedValidatorOperationEnum["ADD"] = "ADD";
|
|
2238
|
+
NamedValidatorOperationEnum["REMOVE"] = "REMOVE";
|
|
2239
|
+
NamedValidatorOperationEnum["ALTER"] = "ALTER";
|
|
2240
|
+
})(NamedValidatorOperationEnum || (NamedValidatorOperationEnum = {}));
|
|
2241
|
+
;
|
|
2242
|
+
|
|
2224
2243
|
/**
|
|
2225
2244
|
* View API
|
|
2226
2245
|
* View API
|
|
@@ -3922,8 +3941,129 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
|
|
|
3922
3941
|
type: Optional
|
|
3923
3942
|
}] }]; } });
|
|
3924
3943
|
|
|
3944
|
+
const EMPTY_PARAMS = {};
|
|
3945
|
+
const NAMED_VALIDATOR = new InjectionToken('Named validator factory');
|
|
3946
|
+
|
|
3947
|
+
const VALIDATOR_NAME_MAX = 'max';
|
|
3948
|
+
const VALIDATOR_NAME_MIN = 'min';
|
|
3949
|
+
const VALIDATOR_NAME_MAX_LEN = 'maxLength';
|
|
3950
|
+
const VALIDATOR_NAME_MIN_LEN = 'minLength';
|
|
3951
|
+
class NamedValidatorService {
|
|
3952
|
+
constructor(factories) {
|
|
3953
|
+
console.log(factories);
|
|
3954
|
+
this.factories = factories ? new Map(factories.map((it) => [it.name, it])) : new Map();
|
|
3955
|
+
}
|
|
3956
|
+
applyConstraint(w, c) {
|
|
3957
|
+
if (!w.validators) {
|
|
3958
|
+
w.validators = [];
|
|
3959
|
+
}
|
|
3960
|
+
this.applyBuiltInValidators(w, c);
|
|
3961
|
+
if (c.namedValidators) {
|
|
3962
|
+
this.applyNamedValidators(w, c.namedValidators);
|
|
3963
|
+
}
|
|
3964
|
+
}
|
|
3965
|
+
// TODO: this looks horrific, refactor!
|
|
3966
|
+
applyBuiltInValidators(w, c) {
|
|
3967
|
+
if (c.max) {
|
|
3968
|
+
if (c.max > 0) {
|
|
3969
|
+
w.validators.push({
|
|
3970
|
+
name: VALIDATOR_NAME_MAX,
|
|
3971
|
+
validator: Validators.max(c.max),
|
|
3972
|
+
isCustom: false,
|
|
3973
|
+
errorMessage: '',
|
|
3974
|
+
});
|
|
3975
|
+
}
|
|
3976
|
+
else {
|
|
3977
|
+
w.validators = w.validators.filter((it) => it.name !== VALIDATOR_NAME_MAX);
|
|
3978
|
+
}
|
|
3979
|
+
}
|
|
3980
|
+
if (c.min) {
|
|
3981
|
+
if (c.min > 0) {
|
|
3982
|
+
w.validators.push({
|
|
3983
|
+
name: VALIDATOR_NAME_MIN,
|
|
3984
|
+
validator: Validators.min(c.min),
|
|
3985
|
+
isCustom: false,
|
|
3986
|
+
errorMessage: '',
|
|
3987
|
+
});
|
|
3988
|
+
}
|
|
3989
|
+
else {
|
|
3990
|
+
w.validators = w.validators.filter((it) => it.name !== VALIDATOR_NAME_MIN);
|
|
3991
|
+
}
|
|
3992
|
+
}
|
|
3993
|
+
if (c.maxLength) {
|
|
3994
|
+
if (c.maxLength > 0) {
|
|
3995
|
+
w.validators.push({
|
|
3996
|
+
name: VALIDATOR_NAME_MAX_LEN,
|
|
3997
|
+
validator: Validators.maxLength(c.maxLength),
|
|
3998
|
+
isCustom: false,
|
|
3999
|
+
errorMessage: '',
|
|
4000
|
+
});
|
|
4001
|
+
}
|
|
4002
|
+
else {
|
|
4003
|
+
w.validators = w.validators.filter((it) => it.name !== VALIDATOR_NAME_MAX_LEN);
|
|
4004
|
+
}
|
|
4005
|
+
}
|
|
4006
|
+
if (c.minLength) {
|
|
4007
|
+
if (c.minLength > 0) {
|
|
4008
|
+
w.validators.push({
|
|
4009
|
+
name: VALIDATOR_NAME_MIN_LEN,
|
|
4010
|
+
validator: Validators.minLength(c.minLength),
|
|
4011
|
+
isCustom: false,
|
|
4012
|
+
errorMessage: '',
|
|
4013
|
+
});
|
|
4014
|
+
}
|
|
4015
|
+
else {
|
|
4016
|
+
w.validators = w.validators.filter((it) => it.name !== VALIDATOR_NAME_MIN_LEN);
|
|
4017
|
+
}
|
|
4018
|
+
}
|
|
4019
|
+
}
|
|
4020
|
+
applyNamedValidators(w, namedValidators) {
|
|
4021
|
+
for (const v of namedValidators) {
|
|
4022
|
+
this.applyNamedValidator(w, v);
|
|
4023
|
+
}
|
|
4024
|
+
}
|
|
4025
|
+
applyNamedValidator(w, namedValidator) {
|
|
4026
|
+
const validatorFactory = this.factories.get(namedValidator.name);
|
|
4027
|
+
if (!validatorFactory) {
|
|
4028
|
+
console.warn(`Custom validator named ${namedValidator.name} was requested, but isn't present!`);
|
|
4029
|
+
return;
|
|
4030
|
+
}
|
|
4031
|
+
switch (namedValidator.operation) {
|
|
4032
|
+
case NamedValidatorOperationEnum.ADD:
|
|
4033
|
+
const validatorFn = validatorFactory.create(namedValidator.params);
|
|
4034
|
+
w.validators.push({
|
|
4035
|
+
name: namedValidator.name,
|
|
4036
|
+
isCustom: true,
|
|
4037
|
+
errorMessage: '',
|
|
4038
|
+
validator: validatorFn,
|
|
4039
|
+
});
|
|
4040
|
+
break;
|
|
4041
|
+
case NamedValidatorOperationEnum.ALTER:
|
|
4042
|
+
const smartValidator = w.validators.find((it) => it.name === namedValidator.name);
|
|
4043
|
+
if (smartValidator) {
|
|
4044
|
+
smartValidator.validator = validatorFactory.create(namedValidator.params);
|
|
4045
|
+
}
|
|
4046
|
+
break;
|
|
4047
|
+
case NamedValidatorOperationEnum.REMOVE:
|
|
4048
|
+
w.validators = w.validators.filter((it) => it.name !== namedValidator.name);
|
|
4049
|
+
break;
|
|
4050
|
+
}
|
|
4051
|
+
}
|
|
4052
|
+
}
|
|
4053
|
+
NamedValidatorService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: NamedValidatorService, deps: [{ token: NAMED_VALIDATOR, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4054
|
+
NamedValidatorService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: NamedValidatorService });
|
|
4055
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: NamedValidatorService, decorators: [{
|
|
4056
|
+
type: Injectable
|
|
4057
|
+
}], ctorParameters: function () { return [{ type: Array, decorators: [{
|
|
4058
|
+
type: Inject,
|
|
4059
|
+
args: [NAMED_VALIDATOR]
|
|
4060
|
+
}, {
|
|
4061
|
+
type: Optional
|
|
4062
|
+
}] }]; } });
|
|
4063
|
+
|
|
3925
4064
|
class SmartFormService {
|
|
3926
|
-
constructor() {
|
|
4065
|
+
constructor(validatorProvider) {
|
|
4066
|
+
this.validatorProvider = validatorProvider;
|
|
3927
4067
|
this.emptyKey = 'e#m%p@t*y';
|
|
3928
4068
|
this.group = {};
|
|
3929
4069
|
this.regexRegexChars = new RegExp(/[\.\-\[\]\/\{\}\(\)\+\^\$\\\|]/g);
|
|
@@ -4386,7 +4526,7 @@ class SmartFormService {
|
|
|
4386
4526
|
// remove empty item
|
|
4387
4527
|
this.removeEmptyItemFromValueList(widget);
|
|
4388
4528
|
}
|
|
4389
|
-
if (wasMandatory && !tobeMandatory) {
|
|
4529
|
+
else if (wasMandatory && !tobeMandatory) {
|
|
4390
4530
|
// remove required validator
|
|
4391
4531
|
widget.validators?.splice(requiredIndex, 1);
|
|
4392
4532
|
// add empty item
|
|
@@ -4396,6 +4536,9 @@ class SmartFormService {
|
|
|
4396
4536
|
}
|
|
4397
4537
|
this.addEmptyItemToValueList(widget, emptyLabel);
|
|
4398
4538
|
}
|
|
4539
|
+
else {
|
|
4540
|
+
widget.validators = validators;
|
|
4541
|
+
}
|
|
4399
4542
|
if (constraint.enabled === undefined) {
|
|
4400
4543
|
if (widget.isDisabled === undefined) {
|
|
4401
4544
|
widget.isDisabled = false;
|
|
@@ -4405,6 +4548,7 @@ class SmartFormService {
|
|
|
4405
4548
|
widget.isDisabled = !constraint.enabled;
|
|
4406
4549
|
}
|
|
4407
4550
|
}
|
|
4551
|
+
this.validatorProvider?.applyConstraint(widget, constraint);
|
|
4408
4552
|
});
|
|
4409
4553
|
}
|
|
4410
4554
|
if (widget.type === SmartFormWidgetType.CONTAINER &&
|
|
@@ -4552,11 +4696,13 @@ class SmartFormService {
|
|
|
4552
4696
|
}));
|
|
4553
4697
|
}
|
|
4554
4698
|
}
|
|
4555
|
-
SmartFormService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFormService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4699
|
+
SmartFormService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFormService, deps: [{ token: NamedValidatorService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4556
4700
|
SmartFormService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFormService });
|
|
4557
4701
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFormService, decorators: [{
|
|
4558
4702
|
type: Injectable
|
|
4559
|
-
}]
|
|
4703
|
+
}], ctorParameters: function () { return [{ type: NamedValidatorService, decorators: [{
|
|
4704
|
+
type: Optional
|
|
4705
|
+
}] }]; } });
|
|
4560
4706
|
|
|
4561
4707
|
var SmartFormWidgetWidth;
|
|
4562
4708
|
(function (SmartFormWidgetWidth) {
|
|
@@ -5763,6 +5909,7 @@ class SmartformwidgetComponent {
|
|
|
5763
5909
|
}
|
|
5764
5910
|
let validators = [];
|
|
5765
5911
|
if (this.widgetInstance.validators) {
|
|
5912
|
+
console.log(this.widgetInstance.validators);
|
|
5766
5913
|
validators = this.widgetInstance.validators?.map((validator) => {
|
|
5767
5914
|
return validator.validator;
|
|
5768
5915
|
});
|
|
@@ -6158,6 +6305,7 @@ class SmartformwidgetComponent {
|
|
|
6158
6305
|
}
|
|
6159
6306
|
for (let index = 0; index < Object.keys(this.form.controls[widgetInstance.key].errors).length; index++) {
|
|
6160
6307
|
const errorKey = Object.keys(this.form.controls[widgetInstance.key].errors)[index];
|
|
6308
|
+
console.log('error key', errorKey);
|
|
6161
6309
|
let customValidatorOnWidget = widgetInstance.validators?.filter((validator) => validator.name === errorKey);
|
|
6162
6310
|
if (customValidatorOnWidget && customValidatorOnWidget.length) {
|
|
6163
6311
|
errorMessage = customValidatorOnWidget[0].errorMessage;
|
|
@@ -16611,6 +16759,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
|
|
|
16611
16759
|
* Public API Surface of smart-tab-group
|
|
16612
16760
|
*/
|
|
16613
16761
|
|
|
16762
|
+
class SmartValidationModule {
|
|
16763
|
+
static forRoot(providers) {
|
|
16764
|
+
return {
|
|
16765
|
+
ngModule: SmartValidationModule,
|
|
16766
|
+
providers: [NamedValidatorService, ...providers],
|
|
16767
|
+
};
|
|
16768
|
+
}
|
|
16769
|
+
}
|
|
16770
|
+
SmartValidationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartValidationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
16771
|
+
SmartValidationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartValidationModule });
|
|
16772
|
+
SmartValidationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartValidationModule, providers: [NamedValidatorService], imports: [[]] });
|
|
16773
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartValidationModule, decorators: [{
|
|
16774
|
+
type: NgModule,
|
|
16775
|
+
args: [{
|
|
16776
|
+
declarations: [],
|
|
16777
|
+
imports: [],
|
|
16778
|
+
providers: [NamedValidatorService],
|
|
16779
|
+
exports: [],
|
|
16780
|
+
}]
|
|
16781
|
+
}] });
|
|
16782
|
+
|
|
16614
16783
|
/*
|
|
16615
16784
|
* Public API Surface of smart-ng-client
|
|
16616
16785
|
*/
|
|
@@ -16619,5 +16788,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
|
|
|
16619
16788
|
* Generated bundle index. Do not edit.
|
|
16620
16789
|
*/
|
|
16621
16790
|
|
|
16622
|
-
export { APIS$3 as APIS, ApiModule$3 as ApiModule, ApiQueueService, BASE_PATH$5 as BASE_PATH, COLLECTION_FORMATS$5 as COLLECTION_FORMATS, CloseResult, ComponentFactoryService, ComponentFactoryServiceModule, ComponentType, ComponentWidgetType, Configuration$5 as Configuration, DIALOG_DISABLE_CLOSE, DataChangeKind, DefaultUiActionCode_CLOSE, ExpandableSectionButtonIconPosition, ExpandableSectionButtonType, ExpandableSectionComponent, FilterExpressionBoolOperator$1 as FilterExpressionBoolOperator, FilterExpressionBuilderGroupBuilderGroupKindEnum, FilterExpressionDataType, FilterExpressionFieldWidgetType, FilterExpressionOperation, FilterExpressionOrderByOrderEnum, GridColumnContentType, GridDataAccessConfigKindEnum, GridSelectionMode, GridSelectionType, GridUiActionType, GridViewDescriptorKindEnum, HighlightPipe, IS_ASYNC_PARAM_NAME, IconPosition, ImageResourceKindEnum, LayoutDirection, LinkTargetEnum, MessageOptionType, MessageTextType, MessageType, SelectionDefinitionTypeEnum, ServerRequestType, SessionAPIS, SessionErrorBehaviour, SessionService, SharedModule, SimplifiedTabGroupComponent, SmartActionType, SmartAuthService, SmartComponent, SmartComponentApiClient, SmartComponentLayoutComponent, SmartComponentLayoutModule, SmartComponentLayoutUtility, SmartDatePipe, SmartDateTimePipe, SmartDialog, SmartExpandableSectionModule, SmartExpandableSectionService, SmartFileUploaderComponent, SmartFilterComponent, SmartFilterEditorContentComponent, SmartFilterEditorModule, SmartFilterEditorService, SmartFilterExpressionItemComponent, SmartFilterExpressionItemsComponent, SmartFilterModule, SmartFilterParamComponent, SmartFilterParamsComponent, SmartFilterPosition, SmartFilterType, SmartFormInputMode, SmartFormTextFieldButtonIconPosition, SmartFormWidgetDirection, SmartFormWidgetType, SmartFormWidgetWidth, SmartGridButtonType, SmartGridComponent, SmartGridDataLayout, SmartGridModule, SmartGridService, SmartGridType, SmartIconComponent, SmartIconModule, SmartIconService, SmartLayoutDef, SmartLinkChannelVariableInPath, SmartLinkUuidVariableInPath, SmartNavbarComponent, SmartNavbarModule, SmartNavbarService, SmartNavigationModule, SmartNavigationService, SmartNgClientModule, SmartNgClientService, SmartService, SmartSessionModule, SmartSessionService, SmartSessionTimerComponent, SmartSessionTimerService, SmartSubject, SmartTabGroupModule, SmartTabGroupService, SmartTable, SmartTableButtonType, SmartTableHeaderPropertyType, SmartTableInterfaceTypeEnum, SmartTableOptionButtonDirection, SmartTableOrder, SmartTableType, SmartTimePipe, SmartTooltipDirective, SmartTreeComponent, SmartTreeNodeButtonType, SmartUserSettinsIconPosition, SmartValidatorName, SmartViewContextErrorDialogButtonLabel, SmartViewContextErrorDialogMessage, SmartViewContextErrorDialogTitle, SmartViewContextModule, SmartViewContextService, SmartViewRedirect, SmartWidgetHintPosition, SmartWidgetHintPositionEnum, SmartWidgetSettings, SmartdialogModule, SmartdialogService, SmartfileuploaderComponent, SmartformComponent, SmartformLayoutDefinitionService, SmartformwidgetComponent, SmarttableComponent, SmarttableModule, SmarttableService, SmarttreeGenericService, SmarttreeModule, SmarttreeService, TabGroupComponent, ToggleLabelPosition, UiActionButtonType, UiActionConfirmDialogComponent, UiActionConfirmDialogService, UiActionDescriptorService, UiActionDialogButtonComponent, UiActionDialogType, UiActionFeedbackType, UiActionInputDialogComponent, UiActionInputDialogService, UiActionInputType, UiActionService, UiActionToolbarComponent, UiActionTooltipTooltipPositionEnum, ValueChangeMode, ViewEventHandlerViewEventTypeEnum, ViewService, ViewState, ViewType };
|
|
16791
|
+
export { APIS$3 as APIS, ApiModule$3 as ApiModule, ApiQueueService, BASE_PATH$5 as BASE_PATH, COLLECTION_FORMATS$5 as COLLECTION_FORMATS, CloseResult, ComponentFactoryService, ComponentFactoryServiceModule, ComponentType, ComponentWidgetType, Configuration$5 as Configuration, DIALOG_DISABLE_CLOSE, DataChangeKind, DefaultUiActionCode_CLOSE, EMPTY_PARAMS, ExpandableSectionButtonIconPosition, ExpandableSectionButtonType, ExpandableSectionComponent, FilterExpressionBoolOperator$1 as FilterExpressionBoolOperator, FilterExpressionBuilderGroupBuilderGroupKindEnum, FilterExpressionDataType, FilterExpressionFieldWidgetType, FilterExpressionOperation, FilterExpressionOrderByOrderEnum, GridColumnContentType, GridDataAccessConfigKindEnum, GridSelectionMode, GridSelectionType, GridUiActionType, GridViewDescriptorKindEnum, HighlightPipe, IS_ASYNC_PARAM_NAME, IconPosition, ImageResourceKindEnum, LayoutDirection, LinkTargetEnum, MessageOptionType, MessageTextType, MessageType, NAMED_VALIDATOR, NamedValidatorOperationEnum, NamedValidatorService, SelectionDefinitionTypeEnum, ServerRequestType, SessionAPIS, SessionErrorBehaviour, SessionService, SharedModule, SimplifiedTabGroupComponent, SmartActionType, SmartAuthService, SmartComponent, SmartComponentApiClient, SmartComponentLayoutComponent, SmartComponentLayoutModule, SmartComponentLayoutUtility, SmartDatePipe, SmartDateTimePipe, SmartDialog, SmartExpandableSectionModule, SmartExpandableSectionService, SmartFileUploaderComponent, SmartFilterComponent, SmartFilterEditorContentComponent, SmartFilterEditorModule, SmartFilterEditorService, SmartFilterExpressionItemComponent, SmartFilterExpressionItemsComponent, SmartFilterModule, SmartFilterParamComponent, SmartFilterParamsComponent, SmartFilterPosition, SmartFilterType, SmartFormInputMode, SmartFormTextFieldButtonIconPosition, SmartFormWidgetDirection, SmartFormWidgetType, SmartFormWidgetWidth, SmartGridButtonType, SmartGridComponent, SmartGridDataLayout, SmartGridModule, SmartGridService, SmartGridType, SmartIconComponent, SmartIconModule, SmartIconService, SmartLayoutDef, SmartLinkChannelVariableInPath, SmartLinkUuidVariableInPath, SmartNavbarComponent, SmartNavbarModule, SmartNavbarService, SmartNavigationModule, SmartNavigationService, SmartNgClientModule, SmartNgClientService, SmartService, SmartSessionModule, SmartSessionService, SmartSessionTimerComponent, SmartSessionTimerService, SmartSubject, SmartTabGroupModule, SmartTabGroupService, SmartTable, SmartTableButtonType, SmartTableHeaderPropertyType, SmartTableInterfaceTypeEnum, SmartTableOptionButtonDirection, SmartTableOrder, SmartTableType, SmartTimePipe, SmartTooltipDirective, SmartTreeComponent, SmartTreeNodeButtonType, SmartUserSettinsIconPosition, SmartValidationModule, SmartValidatorName, SmartViewContextErrorDialogButtonLabel, SmartViewContextErrorDialogMessage, SmartViewContextErrorDialogTitle, SmartViewContextModule, SmartViewContextService, SmartViewRedirect, SmartWidgetHintPosition, SmartWidgetHintPositionEnum, SmartWidgetSettings, SmartdialogModule, SmartdialogService, SmartfileuploaderComponent, SmartformComponent, SmartformLayoutDefinitionService, SmartformwidgetComponent, SmarttableComponent, SmarttableModule, SmarttableService, SmarttreeGenericService, SmarttreeModule, SmarttreeService, TabGroupComponent, ToggleLabelPosition, UiActionButtonType, UiActionConfirmDialogComponent, UiActionConfirmDialogService, UiActionDescriptorService, UiActionDialogButtonComponent, UiActionDialogType, UiActionFeedbackType, UiActionInputDialogComponent, UiActionInputDialogService, UiActionInputType, UiActionService, UiActionToolbarComponent, UiActionTooltipTooltipPositionEnum, ValueChangeMode, ViewEventHandlerViewEventTypeEnum, ViewService, ViewState, ViewType };
|
|
16623
16792
|
//# sourceMappingURL=smartbit4all-ng-client.mjs.map
|