coer-elements 2.0.2 → 2.0.3

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.
@@ -598,6 +598,11 @@ class Breadcrumbs {
598
598
  return (breadcrumbs.length > 0) ? breadcrumbs.shift() : null;
599
599
  }
600
600
  /** */
601
+ static GetLast() {
602
+ const breadcrumbs = this.Get();
603
+ return (breadcrumbs.length > 0) ? breadcrumbs.pop() : null;
604
+ }
605
+ /** */
601
606
  static Save(breadcrumbs) {
602
607
  let storage = sessionStorage.getItem(this.storage);
603
608
  if (storage)
@@ -716,6 +721,10 @@ class DateTime {
716
721
  return moment().utcOffset();
717
722
  }
718
723
  /** YYYY-MM-DD HH:mm:ss */
724
+ static GetCurrentDateTime() {
725
+ return moment().parseZone().local(true).format('YYYY-MM-DD HH:mm:ss');
726
+ }
727
+ /** YYYY-MM-DD HH:mm:ss */
719
728
  static GetFormatDB(date) {
720
729
  date = new Date(date.toString());
721
730
  return moment(date).format('YYYY-MM-DD HH:mm:ss');
@@ -1251,7 +1260,7 @@ class Page {
1251
1260
  }
1252
1261
  ngOnDestroy() {
1253
1262
  if (!this._preventDestroy)
1254
- Source.ClearPageResponse();
1263
+ this.ClearPageResponse();
1255
1264
  }
1256
1265
  /** Main method. Starts after ngAfterViewInit() */
1257
1266
  RunPage() { }
@@ -1343,6 +1352,11 @@ class Page {
1343
1352
  }
1344
1353
  ;
1345
1354
  /** */
1355
+ ClearPageResponse() {
1356
+ Source.ClearPageResponse();
1357
+ }
1358
+ ;
1359
+ /** */
1346
1360
  ReloadPage() {
1347
1361
  Breadcrumbs.RemoveLast();
1348
1362
  setTimeout(() => window.location.reload());