Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NRPT-697: added name redaction on issuingAgency and made datepicker years scrollable #813

Merged
merged 4 commits into from
Mar 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,17 @@ <h4>Application Communication Popup</h4>
<lib-date-picker
[control]="myForm.controls.startDate"
[isValidate]="true"
[reset]="resetDates">
</lib-date-picker>
[reset]="resetDates"
[minDate]="datepickerMinDate">
</lib-date-picker>
</div>
<div class="label-pair">
<label for="endDate">End Date</label>
<lib-date-picker
[control]="myForm.controls.endDate"
[isValidate]="true"
[reset]="resetDates">
[reset]="resetDates"
[minDate]="datepickerMinDate">
</lib-date-picker>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { CommunicationsPackage } from '../../../../common/src/app/models/master/
import { MapInfo } from './../../../../common/src/app/models/master/common-models/map-info';
import { FactoryService } from '../services/factory.service';
import { DatePickerComponent, LoadingScreenService, Utils } from 'nrpti-angular-components';
import { Constants } from '../utils/constants/misc';

@Component({
selector: 'communications-add',
Expand Down Expand Up @@ -40,6 +41,8 @@ export class CommunicationsComponent implements OnInit, OnDestroy {
' removeformat | help' ]
};

public datepickerMinDate = Constants.DatepickerMinDate;

constructor(
public route: ActivatedRoute,
public router: Router,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ <h2 class="border-0 mb-0">Edit record</h2>
<lib-date-picker
[control]="myForm.controls.recordDate"
[isValidate]="true"
[isDisabled]="disableEdit">
[isDisabled]="disableEdit"
[minDate]="datepickerMinDate"
[maxDate]="datepickerMaxDate">
</lib-date-picker>
</div>
<div class="label-pair">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { DialogService } from 'ng2-bootstrap-modal';
import moment from 'moment';
import { ConfirmComponent } from '../../confirm/confirm.component';
import { takeUntil, catchError } from 'rxjs/operators';
import { Constants } from '../../utils/constants/misc';

@Component({
selector: 'app-mines-records-edit',
Expand Down Expand Up @@ -53,6 +54,9 @@ export class MinesRecordsEditComponent implements OnInit {
// record add edit state
public recordState = null;

public datepickerMinDate = Constants.DatepickerMinDate;
public datepickerMaxDate = Constants.DatepickerMaxDate;

constructor(
public route: ActivatedRoute,
public router: Router,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ <h2 *ngIf="!isEditing">Add News Post</h2>
<label class="font-weight-bold" for="date">Date:</label>
<lib-date-picker
[control]="myForm.controls.date"
[isValidate]="true">
[isValidate]="true"
[minDate]="datepickerMinDate">
</lib-date-picker>
</div>
<div class="label-pair mr-5 mt-4">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { Utils } from 'nrpti-angular-components';
import { LoadingScreenService } from 'nrpti-angular-components';
import { News } from '../../../../../common/src/app/models/master/common-models/news';
import { FactoryService } from '../../services/factory.service';
import { Constants } from '../../utils/constants/misc';

@Component({
selector: 'app-news-add-edit',
Expand All @@ -30,6 +31,8 @@ export class NewsAddEditComponent implements OnInit, OnDestroy {
public lngPublishSubtext = 'Not published';
public nrcedPublishSubtext = 'Not published';

public datepickerMinDate = Constants.DatepickerMinDate;

// Pick lists
public projects = [{
id: '588511d0aaecd9001b826192',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ <h4>Basic Information</h4>
<lib-date-picker
[control]="myForm.controls.dateIssued"
[isValidate]="true"
[minDate]="datepickerMinDate">
[minDate]="datepickerMinDate"
[maxDate]="datepickerMaxDate">
</lib-date-picker>
</div>
<div class="label-pair">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export class AdministrativePenaltyAddEditComponent implements OnInit, OnDestroy
public documentsToDelete = [];

public datepickerMinDate = Constants.DatepickerMinDate;
public datepickerMaxDate = Constants.DatepickerMaxDate;

constructor(
public route: ActivatedRoute,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ <h4>Basic Information</h4>
<lib-date-picker
[control]="myForm.controls.dateIssued"
[isValidate]="true"
[minDate]="datepickerMinDate">
[minDate]="datepickerMinDate"
[maxDate]="datepickerMaxDate">
</lib-date-picker>
</div>
<div class="label-pair">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export class AdministrativeSanctionAddEditComponent implements OnInit, OnDestroy
public documentsToDelete = [];

public datepickerMinDate = Constants.DatepickerMinDate;
public datepickerMaxDate = Constants.DatepickerMaxDate;

constructor(
public route: ActivatedRoute,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ <h4>Basic Information</h4>
<lib-date-picker
[control]="myForm.controls.dateIssued"
[isValidate]="true"
[minDate]="datepickerMinDate">
[minDate]="datepickerMinDate"
[maxDate]="datepickerMaxDate">
</lib-date-picker>
</div>
<div class="label-pair">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export class AgreementAddEditComponent implements OnInit, OnDestroy {
public documentsToDelete = [];

public datepickerMinDate = Constants.DatepickerMinDate;
public datepickerMaxDate = Constants.DatepickerMaxDate;

constructor(
public route: ActivatedRoute,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ <h4>Basic Information</h4>
<lib-date-picker
[control]="myForm.controls.dateIssued"
[isValidate]="true"
[minDate]="datepickerMinDate">
[minDate]="datepickerMinDate"
[maxDate]="datepickerMaxDate">
</lib-date-picker>
</div>
<div class="label-pair">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export class AnnualReportAddEditComponent implements OnInit, OnDestroy {
public agencies = Picklists.agencyPicklist;

public datepickerMinDate = Constants.DatepickerMinDate;
public datepickerMaxDate = Constants.DatepickerMaxDate;

// Documents
public documents = [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ <h4>Basic Information</h4>
<lib-date-picker
[control]="myForm.controls.dateIssued"
[isValidate]="true"
[minDate]="datepickerMinDate">
[minDate]="datepickerMinDate"
[maxDate]="datepickerMaxDate">
</lib-date-picker>
</div>
<div class="label-pair">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export class CertificateAmendmentAddEditComponent implements OnInit, OnDestroy {
public agencies = Picklists.agencyPicklist;

public datepickerMinDate = Constants.DatepickerMinDate;
public datepickerMaxDate = Constants.DatepickerMaxDate;

// Documents
public documents = [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ <h4>Basic Information</h4>
<lib-date-picker
[control]="myForm.controls.dateIssued"
[isValidate]="true"
[minDate]="datepickerMinDate">
[minDate]="datepickerMinDate"
[maxDate]="datepickerMaxDate">
</lib-date-picker>
</div>
<div class="label-pair">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export class CertificateAddEditComponent implements OnInit, OnDestroy {
public agencies = Picklists.agencyPicklist;

public datepickerMinDate = Constants.DatepickerMinDate;
public datepickerMaxDate = Constants.DatepickerMaxDate;

// Documents
public documents = [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ <h4>Basic Information</h4>
<lib-date-picker
[control]="myForm.controls.dateIssued"
[isValidate]="true"
[minDate]="datepickerMinDate">
[minDate]="datepickerMinDate"
[maxDate]="datepickerMaxDate">
</lib-date-picker>
</div>
<div class="label-pair">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export class ConstructionPlanAddEditComponent implements OnInit, OnDestroy {
public documentsToDelete = [];

public datepickerMinDate = Constants.DatepickerMinDate;
public datepickerMaxDate = Constants.DatepickerMaxDate;

constructor(
public route: ActivatedRoute,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ <h4>Basic Information</h4>
<lib-date-picker
[control]="myForm.controls.dateIssued"
[isValidate]="true"
[minDate]="datepickerMinDate">
[minDate]="datepickerMinDate"
[maxDate]="datepickerMaxDate">
</lib-date-picker>
</div>
<div class="label-pair">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export class CorrespondenceAddEditComponent implements OnInit, OnDestroy {
public documentsToDelete = [];

public datepickerMinDate = Constants.DatepickerMinDate;
public datepickerMaxDate = Constants.DatepickerMaxDate;

constructor(
public route: ActivatedRoute,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ <h4>Basic Information</h4>
<lib-date-picker
[control]="myForm.controls.dateIssued"
[isValidate]="true"
[minDate]="datepickerMinDate">
[minDate]="datepickerMinDate"
[maxDate]="datepickerMaxDate">
</lib-date-picker>
</div>
<div class="label-pair">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export class CourtConvictionAddEditComponent implements OnInit, OnDestroy {
public documentsToDelete = [];

public datepickerMinDate = Constants.DatepickerMinDate;
public datepickerMaxDate = Constants.DatepickerMaxDate;

constructor(
private route: ActivatedRoute,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ <h4>Basic Information</h4>
<lib-date-picker
[control]="myForm.controls.dateIssued"
[isValidate]="true"
[minDate]="datepickerMinDate">
[minDate]="datepickerMinDate"
[maxDate]="datepickerMaxDate">
</lib-date-picker>
</div>
<div class="label-pair">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export class DamSafetyInspectionAddEditComponent implements OnInit, OnDestroy {
public documentsToDelete = [];

public datepickerMinDate = Constants.DatepickerMinDate;
public datepickerMaxDate = Constants.DatepickerMaxDate;

constructor(
public route: ActivatedRoute,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ <h4>Basic Information</h4>
<lib-date-picker
[control]="myForm.controls.dateIssued"
[isValidate]="true"
[minDate]="datepickerMinDate">
[minDate]="datepickerMinDate"
[maxDate]="datepickerMaxDate">
</lib-date-picker>
</div>
<div class="label-pair">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export class InspectionAddEditComponent implements OnInit, OnDestroy {
public documentsToDelete = [];

public datepickerMinDate = Constants.DatepickerMinDate;
public datepickerMaxDate = Constants.DatepickerMaxDate;

constructor(
public route: ActivatedRoute,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ <h4>Basic Information</h4>
<lib-date-picker
[control]="myForm.controls.dateIssued"
[isValidate]="true"
[minDate]="datepickerMinDate">
[minDate]="datepickerMinDate"
[maxDate]="datepickerMaxDate">
</lib-date-picker>
</div>
<div class="label-pair">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export class ManagementPlanAddEditComponent implements OnInit, OnDestroy {
public documentsToDelete = [];

public datepickerMinDate = Constants.DatepickerMinDate;
public datepickerMaxDate = Constants.DatepickerMaxDate;

constructor(
public route: ActivatedRoute,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ <h4>Basic Information</h4>
<lib-date-picker
[control]="myForm.controls.dateIssued"
[isValidate]="true"
[minDate]="datepickerMinDate">
[minDate]="datepickerMinDate"
[maxDate]="datepickerMaxDate">
</lib-date-picker>
</div>
<div class="label-pair">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export class OrderAddEditComponent implements OnInit, OnDestroy {
public documentsToDelete = [];

public datepickerMinDate = Constants.DatepickerMinDate;
public datepickerMaxDate = Constants.DatepickerMaxDate;

constructor(
public route: ActivatedRoute,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ <h4>Basic Information</h4>
[control]="myForm.controls.dateIssued"
[isValidate]="true"
[minDate]="datepickerMinDate"
[maxDate]="datepickerMaxDate"
[isDisabled]="disableEdit">
</lib-date-picker>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export class PermitAddEditComponent implements OnInit, OnDestroy {
public disableEdit = false;

public datepickerMinDate = Constants.DatepickerMinDate;
public datepickerMaxDate = Constants.DatepickerMaxDate;

constructor(
public route: ActivatedRoute,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ <h4>Basic Information</h4>
<lib-date-picker
[control]="myForm.controls.dateIssued"
[isValidate]="true"
[minDate]="datepickerMinDate">
[minDate]="datepickerMinDate"
[maxDate]="datepickerMaxDate">
</lib-date-picker>
</div>
<div class="label-pair">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export class ReportAddEditComponent implements OnInit, OnDestroy {
public documentsToDelete = [];

public datepickerMinDate = Constants.DatepickerMinDate;
public datepickerMaxDate = Constants.DatepickerMaxDate;

constructor(
public route: ActivatedRoute,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ <h4>Basic Information</h4>
<lib-date-picker
[control]="myForm.controls.dateIssued"
[isValidate]="true"
[minDate]="datepickerMinDate">
[minDate]="datepickerMinDate"
[maxDate]="datepickerMaxDate">
</lib-date-picker>
</div>
<div class="label-pair">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export class RestorativeJusticeAddEditComponent implements OnInit, OnDestroy {
public documentsToDelete = [];

public datepickerMinDate = Constants.DatepickerMinDate;
public datepickerMaxDate = Constants.DatepickerMaxDate;

constructor(
public route: ActivatedRoute,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ <h4>Basic Information</h4>
<lib-date-picker
[control]="myForm.controls.dateIssued"
[isValidate]="true"
[minDate]="datepickerMinDate">
[minDate]="datepickerMinDate"
[maxDate]="datepickerMaxDate">
</lib-date-picker>
</div>
<div class="label-pair">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export class SelfReportAddEditComponent implements OnInit, OnDestroy {
public documentsToDelete = [];

public datepickerMinDate = Constants.DatepickerMinDate;
public datepickerMaxDate = Constants.DatepickerMaxDate;

constructor(
public route: ActivatedRoute,
Expand Down
Loading