ngx-hana-nameserver-history-viewer 1.2.0-9.8.beta → 1.2.0-9.9.beta

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.
@@ -6,7 +6,7 @@ import * as i2$1 from '@angular/forms';
6
6
  import { FormsModule } from '@angular/forms';
7
7
  import * as i1$1 from '@danielmoncada/angular-datetime-picker';
8
8
  import { OwlDateTimeModule, OwlNativeDateTimeModule } from '@danielmoncada/angular-datetime-picker';
9
- import * as moment$2 from 'moment-timezone';
9
+ import moment from 'moment-timezone';
10
10
  import * as i2 from 'ngx-dropdown-list';
11
11
  import { DropdownListModule } from 'ngx-dropdown-list';
12
12
  import { SelectionModel } from '@angular/cdk/collections';
@@ -14,7 +14,7 @@ import * as chartjs from 'chart.js';
14
14
  import { Chart as Chart$2 } from 'chart.js';
15
15
  import { parse } from 'papaparse';
16
16
  import * as hammerjs from 'hammerjs';
17
- import * as moment_module from 'moment';
17
+ import moment$1 from 'moment';
18
18
  import * as i8 from 'ngx-selection-table';
19
19
  import { SelectionTableModule } from 'ngx-selection-table';
20
20
 
@@ -548,7 +548,7 @@ function _getTimeRange(time) {
548
548
  * get default local time zone
549
549
  */
550
550
  function getDefaultTimezone() {
551
- return moment$2.tz.guess();
551
+ return moment.tz.guess();
552
552
  }
553
553
  /**
554
554
  * Get time from provided timezone, using this only because chart.js doesn't support timezone.
@@ -561,8 +561,8 @@ function getTimeFromTimeZone(time, timezone) {
561
561
  timezone = getDefaultTimezone();
562
562
  console.warn(`getTimeFromTimeZone - Input timezone is null, returning the local (${timezone}) time. `);
563
563
  }
564
- const utcOffset = moment$2.tz.zone(timezone).utcOffset(time * 1000);
565
- const currentOffset = moment$2.tz.zone(getDefaultTimezone()).utcOffset(time * 1000);
564
+ const utcOffset = moment.tz.zone(timezone).utcOffset(time * 1000);
565
+ const currentOffset = moment.tz.zone(getDefaultTimezone()).utcOffset(time * 1000);
566
566
  // convert to utc and then to selected timezone
567
567
  return time + currentOffset * 60 - utcOffset * 60;
568
568
  }
@@ -570,7 +570,7 @@ function getTimeFromTimeZone(time, timezone) {
570
570
  * Get time formatted with the provided timezone
571
571
  */
572
572
  function getTimeString(time) {
573
- return moment$2(time).format('YYYY-MM-DD HH:mm:ss');
573
+ return moment(time).format('YYYY-MM-DD HH:mm:ss');
574
574
  }
575
575
  /**
576
576
  * Get the time range string by time array, eg: 2018-10-25 10:10:00 ~ 2018-10-25 12:12:00
@@ -772,7 +772,7 @@ class TimezoneSelectorService {
772
772
  */
773
773
  getZones() {
774
774
  const timezones = [];
775
- const zones = moment$2.tz.names();
775
+ const zones = moment.tz.names();
776
776
  zones.forEach(zone => {
777
777
  // get region
778
778
  let region;
@@ -829,7 +829,7 @@ class TimezoneSelectorComponent {
829
829
  return tz[tz.length - 1].replace('_', ' ');
830
830
  }
831
831
  _getOffset(zone) {
832
- let offset = moment$2.tz(zone).utcOffset();
832
+ let offset = moment.tz(zone).utcOffset();
833
833
  const neg = offset < 0;
834
834
  if (neg) {
835
835
  offset = -1 * offset;
@@ -2709,7 +2709,6 @@ class LTTBDataMipmap extends DataMipmap {
2709
2709
  }
2710
2710
  }
2711
2711
 
2712
- const moment$1 = (window && window.moment) ? window.moment : moment_module;
2713
2712
  function getCompareValue(value) {
2714
2713
  if (typeof value === 'number') {
2715
2714
  return value;
@@ -2788,7 +2787,6 @@ function cullData(data, range) {
2788
2787
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2789
2788
  * SOFTWARE.
2790
2789
  */
2791
- const moment = (window && window.moment) ? window.moment : moment_module;
2792
2790
  // Using dynamic flag to fix the issue of ng-packagr #696: Lambda not supported
2793
2791
  // @dynamic
2794
2792
  /**
@@ -2845,8 +2843,8 @@ class ResponsiveDownsamplePlugin {
2845
2843
  if (isNil(xScale)) {
2846
2844
  return null;
2847
2845
  }
2848
- const start = moment(xScale.getValueForPixel(xScale.left));
2849
- const end = moment(xScale.getValueForPixel(xScale.left + 1));
2846
+ const start = moment$1(xScale.getValueForPixel(xScale.left));
2847
+ const end = moment$1(xScale.getValueForPixel(xScale.left + 1));
2850
2848
  const targetResolution = end.diff(start);
2851
2849
  return targetResolution * options.desiredDataPointDistance;
2852
2850
  }