coer-elements 0.0.60 → 0.0.62

Sign up to get free protection for your applications and to get access to all the features.
@@ -225,6 +225,18 @@ const Tools = {
225
225
  }, milliseconds)
226
226
  }));
227
227
  });
228
+ },
229
+ /** */
230
+ Except: (array, filter, ...properties) => {
231
+ const result = [];
232
+ for (const item of array) {
233
+ if (typeof item === 'object' && Tools.IsNotNull(properties) && properties.length > 0) {
234
+ if (!filter.some(x => x[properties[0]] === item[properties[0]])) {
235
+ result.push(item);
236
+ }
237
+ }
238
+ }
239
+ return [...result];
228
240
  }
229
241
  };
230
242
 
@@ -1186,12 +1198,18 @@ class Section {
1186
1198
  this.IsNotOnlyWhiteSpace = Tools.IsNotOnlyWhiteSpace;
1187
1199
  }
1188
1200
  ngAfterViewInit() {
1189
- Tools.Sleep().then(_ => this.onReady.emit());
1201
+ Tools.Sleep().then(_ => {
1202
+ this.RunSection();
1203
+ this.onReady.emit();
1204
+ });
1190
1205
  Tools.Sleep(1000).then(_ => this.enableAnimations = true);
1191
1206
  }
1192
1207
  ngOnDestroy() {
1193
1208
  this.onDestroy.emit();
1194
1209
  }
1210
+ /** Main method. Starts after ngAfterViewInit() */
1211
+ RunSection() { }
1212
+ ;
1195
1213
  /** */
1196
1214
  Log(value, log = null) {
1197
1215
  if (Tools.IsNotNull(log))