ids-enterprise-ng 20.2.13 → 20.2.14
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.
|
@@ -1212,6 +1212,28 @@ class SohoAlertDirective {
|
|
|
1212
1212
|
this.triggerEvents = triggerEvents;
|
|
1213
1213
|
this.message = '';
|
|
1214
1214
|
}
|
|
1215
|
+
/**
|
|
1216
|
+
* Removes a specific message by its id
|
|
1217
|
+
*
|
|
1218
|
+
* @param id the id of the message to remove
|
|
1219
|
+
* @param type optional - 'error' (default)
|
|
1220
|
+
* @param triggerEvents optional - true (default) triggers events
|
|
1221
|
+
*/
|
|
1222
|
+
removeMessageById(id, type, triggerEvents) {
|
|
1223
|
+
if (this.jQueryElement) {
|
|
1224
|
+
this.ngZone.runOutsideAngular(() => {
|
|
1225
|
+
const field = this.jQueryElement;
|
|
1226
|
+
const msgType = type || 'error';
|
|
1227
|
+
const shouldTriggerEvents = (typeof triggerEvents !== 'boolean') ? true : triggerEvents;
|
|
1228
|
+
const instance = jQuery.data(field[0], 'Validator');
|
|
1229
|
+
if (instance) {
|
|
1230
|
+
const rule = { id, type: msgType, message: id };
|
|
1231
|
+
instance.removeMessage(field, rule, shouldTriggerEvents);
|
|
1232
|
+
instance.setIconOnParent(field, msgType);
|
|
1233
|
+
}
|
|
1234
|
+
});
|
|
1235
|
+
}
|
|
1236
|
+
}
|
|
1215
1237
|
/**
|
|
1216
1238
|
* Removes the message for all types
|
|
1217
1239
|
*
|
|
@@ -31718,7 +31740,7 @@ class SohoVersionInitializerService {
|
|
|
31718
31740
|
* Initializes the version attribute.
|
|
31719
31741
|
*/
|
|
31720
31742
|
initialize() {
|
|
31721
|
-
$('html').attr(SohoVersionInitializerService.VERSION_ATTR_NAME, '20.2.
|
|
31743
|
+
$('html').attr(SohoVersionInitializerService.VERSION_ATTR_NAME, '20.2.14');
|
|
31722
31744
|
}
|
|
31723
31745
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: SohoVersionInitializerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
31724
31746
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: SohoVersionInitializerService, providedIn: 'root' }); }
|