Skip to content

Commit

Permalink
fix: maximum call stack size exceeded
Browse files Browse the repository at this point in the history
fix #440
  • Loading branch information
dalelotts committed Nov 5, 2019
1 parent 9ec47e3 commit 3ad8f1c
Show file tree
Hide file tree
Showing 31 changed files with 5,139 additions and 2,904 deletions.
7,893 changes: 5,097 additions & 2,796 deletions package-lock.json

Large diffs are not rendered by default.

8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
"@angular/platform-browser": "^7.0.0",
"@angular/platform-browser-dynamic": "^7.0.0",
"@angular/router": "^7.0.0",
"core-js": "^2.5.0",
"moment": "^2.22.2",
"rxjs": "^6.3.3",
"zone.js": "^0.8.26"
Expand All @@ -69,16 +68,15 @@
"@angular/platform-browser": "^7.2.10",
"@angular/platform-browser-dynamic": "^7.2.10",
"@angular/router": "^7.2.10",
"@compodoc/compodoc": "1.1.8",
"@compodoc/compodoc": "^1.1.11",
"@types/jasmine": "~3.3.12",
"@types/jasminewd2": "~2.0.6",
"@types/node": "~11.11.4",
"bootstrap": "^4.3.1",
"codelyzer": "^4.5.0",
"core-js": "^2.6.5",
"jasmine-core": "~3.3.0",
"jasmine-spec-reporter": "^4.2.1",
"jquery": "^3.3.1",
"jquery": "^3.4.1",
"karma": "^4.0.1",
"karma-chrome-launcher": "^2.2.0",
"karma-coverage-istanbul-reporter": "^2.0.5",
Expand All @@ -91,7 +89,7 @@
"protractor": "^5.4.2",
"rxjs": "^6.4.0",
"scss-bundle": "^2.5.0",
"semantic-release": "^15.13.3",
"semantic-release": "^15.13.30",
"travis-deploy-once": "^5.0.11",
"ts-node": "^8.0.3",
"tsickle": "^0.34.3",
Expand Down
4 changes: 2 additions & 2 deletions src/app/app.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { TestBed, async } from '@angular/core/testing';
import {FormsModule} from '@angular/forms';
import {DlDateTimeDateModule} from '../lib/core';
import {DlDateTimePickerModule} from '../lib/dl-date-time-picker';
import {DlDateTimeDateModule} from '../lib';
import {DlDateTimePickerModule} from '../lib';
import { AppComponent } from './app.component';

describe('AppComponent', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

import {Component} from '@angular/core';
import {DlDateTimePickerChange} from '../lib/dl-date-time-picker';
import {DlDateTimePickerChange} from '../lib';

@Component({
selector: 'dl-root',
Expand Down
6 changes: 3 additions & 3 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {NgModule} from '@angular/core';
import {FormsModule} from '@angular/forms';
import {BrowserModule} from '@angular/platform-browser';
import {DlDateTimeDateModule} from '../lib/core';
import {DlDateTimeInputModule} from '../lib/dl-date-time-input';
import {DlDateTimePickerModule} from '../lib/dl-date-time-picker';
import {DlDateTimeDateModule} from '../lib';
import {DlDateTimeInputModule} from '../lib';
import {DlDateTimePickerModule} from '../lib';

import {AppComponent} from './app.component';

Expand Down
10 changes: 0 additions & 10 deletions src/lib/core/index.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/lib/dl-date-time-input/dl-date-time-input.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
Validators,
} from '@angular/forms';
import * as _moment from 'moment';
import {DL_DATE_TIME_DISPLAY_FORMAT, DL_DATE_TIME_INPUT_FORMATS, DlDateAdapter} from '../core';
import {DL_DATE_TIME_DISPLAY_FORMAT, DL_DATE_TIME_INPUT_FORMATS, DlDateAdapter} from '../core/public-api';
import {DlDateTimeInputChange} from './dl-date-time-input-change';

/**
Expand Down
10 changes: 0 additions & 10 deletions src/lib/dl-date-time-input/index.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@ import {async, ComponentFixture, fakeAsync, flush, TestBed} from '@angular/core/
import {FormsModule, NgForm} from '@angular/forms';
import {By} from '@angular/platform-browser';
import * as _moment from 'moment';
import {DL_DATE_TIME_DISPLAY_FORMAT_DEFAULT, DlDateTimeNumberModule} from '../../core';
import {JAN, OCT} from '../../dl-date-time-picker/specs/month-constants';
import {DlDateTimeInputDirective} from '../dl-date-time-input.directive';
import {DlDateTimeInputModule} from '../dl-date-time-input.module';
import {
DL_DATE_TIME_DISPLAY_FORMAT_DEFAULT,
DlDateTimeInputDirective,
DlDateTimeInputModule,
DlDateTimeNumberModule
} from '../../public-api';
import {OCT} from '../../dl-date-time-picker/specs/month-constants';

let moment = _moment;
if ('default' in _moment) {
Expand All @@ -15,10 +18,10 @@ if ('default' in _moment) {

@Component({
template: `
<form>
<input id="dateInput" name="dateValue" type="text" dlDateTimeInput [dlDateTimeInputFilter]="dateTimeFilter"
[(ngModel)]="dateValue"/>
</form>`
<form>
<input id="dateInput" name="dateValue" type="text" dlDateTimeInput [dlDateTimeInputFilter]="dateTimeFilter"
[(ngModel)]="dateValue"/>
</form>`
})
class DateModelComponent {
dateValue: any;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ import {Component, DebugElement, ViewChild} from '@angular/core';
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {FormsModule} from '@angular/forms';
import {By} from '@angular/platform-browser';
import {DlDateTimeDateModule} from '../../../core';
import {DlDateTimeInputDirective, DlDateTimeInputModule} from '../../index';
import {DlDateTimeDateModule, DlDateTimeInputDirective, DlDateTimeInputModule} from '../../../public-api';

@Component({
template: `<input id="dateInput"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {FormsModule} from '@angular/forms';
import {By} from '@angular/platform-browser';
import * as _moment from 'moment';
import {DlDateTimeMomentModule} from '../../../core';
import {DlDateTimeInputDirective, DlDateTimeInputModule} from '../../index';
import {DlDateTimeInputDirective, DlDateTimeInputModule, DlDateTimeMomentModule} from '../../../public-api';

let moment = _moment;
if ('default' in _moment) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ import {Component, DebugElement, ViewChild} from '@angular/core';
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {FormsModule} from '@angular/forms';
import {By} from '@angular/platform-browser';
import {DlDateTimeNumberModule} from '../../../core';
import {DlDateTimeInputDirective, DlDateTimeInputModule} from '../../index';
import {DlDateTimeInputDirective, DlDateTimeInputModule, DlDateTimeNumberModule} from '../../../public-api';

@Component({
template: `<input id="dateInput"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {FormsModule} from '@angular/forms';
import {By} from '@angular/platform-browser';
import * as _moment from 'moment';
import {DlDateTimeStringModule} from '../../../core';
import {DlDateTimeInputDirective, DlDateTimeInputModule} from '../../index';
import {DlDateTimeInputDirective, DlDateTimeInputModule, DlDateTimeStringModule} from '../../../public-api';

let moment = _moment;
if ('default' in _moment) {
Expand Down
4 changes: 1 addition & 3 deletions src/lib/dl-date-time-picker/dl-date-time-picker.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {
import {ControlValueAccessor, NG_VALUE_ACCESSOR} from '@angular/forms';
import * as _moment from 'moment';
import {take} from 'rxjs/operators';
import {DlDateAdapter} from '../core';
import {DlDateAdapter} from '../core/public-api';
import {DlDateTimePickerChange} from './dl-date-time-picker-change';
import {DateButton} from './dl-date-time-picker-date-button';
import {DlDateTimePickerModel} from './dl-date-time-picker-model';
Expand Down Expand Up @@ -515,8 +515,6 @@ export class DlDateTimePickerComponent<D> implements OnChanges, OnInit, ControlV
_handleKeyDown($event: KeyboardEvent): void {
const functionName = keyCodeToModelProviderMethod[$event.key];

console.log($event, functionName);

if (functionName) {
const modelProvider = this._viewToModelProvider[this._model.viewName];
this.model = modelProvider[functionName](this._model.activeDate, this.valueOf);
Expand Down
10 changes: 0 additions & 10 deletions src/lib/dl-date-time-picker/index.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {Component, DebugElement, ViewChild} from '@angular/core';
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {FormsModule} from '@angular/forms';
import {By} from '@angular/platform-browser';
import {DlDateTimeNumberModule} from '../../../core';
import {DlDateTimeNumberModule} from '../../../public-api';
import {DlDateTimePickerComponent} from '../../dl-date-time-picker.component';
import {DlDateTimePickerModule} from '../../dl-date-time-picker.module';

Expand Down
4 changes: 1 addition & 3 deletions src/lib/dl-date-time-picker/specs/max-view/max-view.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ import {Component, DebugElement, ViewChild} from '@angular/core';
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {FormsModule} from '@angular/forms';
import {By} from '@angular/platform-browser';
import {DlDateTimeNumberModule} from '../../../core';
import {DlDateTimePickerComponent} from '../../dl-date-time-picker.component';
import {DlDateTimePickerModule} from '../../dl-date-time-picker.module';
import {DlDateTimeNumberModule, DlDateTimePickerComponent, DlDateTimePickerModule} from '../../../public-api';

@Component({
template: '<dl-date-time-picker maxView="year" [(ngModel)]="selectedDate"></dl-date-time-picker>'
Expand Down
4 changes: 1 addition & 3 deletions src/lib/dl-date-time-picker/specs/min-view/min-view.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ import {Component, DebugElement, ViewChild} from '@angular/core';
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {FormsModule} from '@angular/forms';
import {By} from '@angular/platform-browser';
import {DlDateTimeNumberModule} from '../../../core';
import {DlDateTimePickerComponent} from '../../dl-date-time-picker.component';
import {DlDateTimePickerModule} from '../../dl-date-time-picker.module';
import {DlDateTimeNumberModule, DlDateTimePickerComponent, DlDateTimePickerModule} from '../../../public-api';

@Component({
template: '<dl-date-time-picker minView="year" [(ngModel)]="selectedDate"></dl-date-time-picker>'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ import {Component, DebugElement, ViewChild} from '@angular/core';
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {FormsModule} from '@angular/forms';
import {By} from '@angular/platform-browser';
import {DlDateTimeNumberModule} from '../../../core';
import {DlDateTimePickerComponent} from '../../dl-date-time-picker.component';
import {DlDateTimePickerModule} from '../../dl-date-time-picker.module';
import {DlDateTimeNumberModule, DlDateTimePickerComponent, DlDateTimePickerModule} from '../../../public-api';

@Component({
template: '<dl-date-time-picker [minuteStep]="minuteStep" startView="minute"></dl-date-time-picker>'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ import {Component, DebugElement, ViewChild} from '@angular/core';
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {FormsModule} from '@angular/forms';
import {By} from '@angular/platform-browser';
import {DlDateTimeDateModule} from '../../../core';
import {DlDateTimePickerComponent} from '../../dl-date-time-picker.component';
import {DlDateTimePickerModule} from '../../dl-date-time-picker.module';
import {DlDateTimeDateModule, DlDateTimePickerComponent, DlDateTimePickerModule} from '../../../public-api';

@Component({
template: '<dl-date-time-picker minView="day"></dl-date-time-picker>'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ import {By} from '@angular/platform-browser';

import * as _moment from 'moment';
import {Moment} from 'moment';
import {DlDateTimeMomentModule} from '../../../core';
import {DlDateTimePickerComponent} from '../../dl-date-time-picker.component';
import {DlDateTimePickerModule} from '../../dl-date-time-picker.module';
import {DlDateTimeMomentModule, DlDateTimePickerComponent, DlDateTimePickerModule} from '../../../public-api';

/**
* Work around for moment namespace conflict when used with webpack and rollup.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ import {Component, DebugElement, ViewChild} from '@angular/core';
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {FormsModule} from '@angular/forms';
import {By} from '@angular/platform-browser';
import {DlDateTimeNumberModule} from '../../../core';
import {DlDateTimePickerComponent} from '../../dl-date-time-picker.component';
import {DlDateTimePickerModule} from '../../dl-date-time-picker.module';
import {DlDateTimeNumberModule, DlDateTimePickerComponent, DlDateTimePickerModule} from '../../../public-api';

@Component({
template: '<dl-date-time-picker minView="day"></dl-date-time-picker>'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
import {Component, DebugElement, ViewChild} from '@angular/core';
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {By} from '@angular/platform-browser';
import {DlDateTimeStringModule} from '../../../core';
import {DlDateTimePickerComponent} from '../../dl-date-time-picker.component';
import {DlDateTimePickerModule} from '../../index';
import {DlDateTimePickerComponent, DlDateTimePickerModule, DlDateTimeStringModule} from '../../../public-api';


@Component({
Expand Down
4 changes: 1 addition & 3 deletions src/lib/dl-date-time-picker/specs/ng-model/ng-model.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ import {Component, DebugElement, ViewChild} from '@angular/core';
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {FormsModule} from '@angular/forms';
import {By} from '@angular/platform-browser';
import {DlDateTimeNumberModule} from '../../../core';
import {DlDateTimePickerComponent} from '../../dl-date-time-picker.component';
import {DlDateTimePickerModule} from '../../dl-date-time-picker.module';
import {DlDateTimeNumberModule, DlDateTimePickerComponent, DlDateTimePickerModule} from '../../../public-api';
import {dispatchKeyboardEvent, ENTER, SPACE} from '../dispatch-events';
import {JAN} from '../month-constants';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ import {Component, DebugElement, ViewChild} from '@angular/core';
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {FormsModule} from '@angular/forms';
import {By} from '@angular/platform-browser';
import {DlDateTimeNumberModule} from '../../../core';
import {DateButton} from '../../dl-date-time-picker-date-button';
import {DlDateTimePickerComponent} from '../../dl-date-time-picker.component';
import {DlDateTimePickerModule} from '../../dl-date-time-picker.module';
import {DateButton, DlDateTimeNumberModule, DlDateTimePickerComponent, DlDateTimePickerModule} from '../../../public-api';

@Component({
template: '<dl-date-time-picker [selectFilter]="selectFilter" [(ngModel)]="selectedDate" maxView="day"></dl-date-time-picker>'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ import {Component, DebugElement, ViewChild} from '@angular/core';
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {FormsModule} from '@angular/forms';
import {By} from '@angular/platform-browser';
import {DlDateTimeNumberModule} from '../../../core';
import {DlDateTimePickerComponent} from '../../dl-date-time-picker.component';
import {DlDateTimePickerModule} from '../../dl-date-time-picker.module';
import {DlDateTimeNumberModule, DlDateTimePickerComponent, DlDateTimePickerModule} from '../../../public-api';
import {APR, MAY, OCT} from '../month-constants';
import * as _moment from 'moment';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {FormsModule} from '@angular/forms';
import {By} from '@angular/platform-browser';
import * as moment from 'moment';
import {DlDateTimeNumberModule} from '../../../core';
import {DlDateTimePickerComponent} from '../../dl-date-time-picker.component';
import {DlDateTimePickerModule} from '../../dl-date-time-picker.module';
import {DlDateTimeNumberModule, DlDateTimePickerComponent, DlDateTimePickerModule} from '../../../public-api';
import {
dispatchKeyboardEvent,
DOWN_ARROW,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {FormsModule} from '@angular/forms';
import {By} from '@angular/platform-browser';
import * as moment from 'moment';
import {DlDateTimeNumberModule} from '../../../core';
import {DlDateTimePickerComponent} from '../../dl-date-time-picker.component';
import {DlDateTimePickerModule} from '../../dl-date-time-picker.module';
import {DlDateTimeNumberModule, DlDateTimePickerComponent, DlDateTimePickerModule} from '../../../public-api';
import {
dispatchKeyboardEvent,
DOWN_ARROW,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {FormsModule} from '@angular/forms';
import {By} from '@angular/platform-browser';
import * as moment from 'moment';
import {DlDateTimeNumberModule} from '../../../core';
import {DlDateTimePickerComponent} from '../../dl-date-time-picker.component';
import {DlDateTimePickerModule} from '../../dl-date-time-picker.module';
import {DlDateTimeNumberModule, DlDateTimePickerComponent, DlDateTimePickerModule} from '../../../public-api';
import {
dispatchKeyboardEvent,
DOWN_ARROW,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {FormsModule} from '@angular/forms';
import {By} from '@angular/platform-browser';
import * as moment from 'moment';
import {DlDateTimeNumberModule} from '../../../core';
import {DlDateTimePickerComponent} from '../../dl-date-time-picker.component';
import {DlDateTimePickerModule} from '../../dl-date-time-picker.module';
import {DlDateTimeNumberModule, DlDateTimePickerComponent, DlDateTimePickerModule} from '../../../public-api';
import {
dispatchKeyboardEvent,
DOWN_ARROW,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {FormsModule} from '@angular/forms';
import {By} from '@angular/platform-browser';
import * as moment from 'moment';
import {DlDateTimeNumberModule} from '../../../core';
import {DlDateTimePickerComponent} from '../../dl-date-time-picker.component';
import {DlDateTimePickerModule} from '../../dl-date-time-picker.module';
import {DlDateTimeNumberModule, DlDateTimePickerComponent, DlDateTimePickerModule} from '../../../public-api';
import {
dispatchKeyboardEvent,
DOWN_ARROW,
Expand Down

0 comments on commit 3ad8f1c

Please sign in to comment.