-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Does not fully resolve this feature but does go a long way into producing better reports. #65 Fixes #195
- Loading branch information
Showing
20 changed files
with
757 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<template> | ||
<require from="../../value-converters/empty-text"></require> | ||
<form> | ||
<div class="form-group row"> | ||
<label for="report-name" class="col-sm-3">${'reports.name'|t}</label> | ||
<div class="col-sm-9"> | ||
<input id="report-name" tabindex="10" class="form-control" type="text" value.bind="model.title | emptyText"> | ||
</div> | ||
</div> | ||
<div class="form-group row"> | ||
<span class="col-sm-3"></span> | ||
<label class="col-sm-9"> | ||
<input type="checkbox" tabindex="90" checked.bind="model.includeCountries"> | ||
<span>${'editor.includeCountries'|t}</span> | ||
</label> | ||
</div> | ||
<div class="form-group row"> | ||
<span class="col-sm-3"></span> | ||
<label class="col-sm-9"> | ||
<input type="checkbox" tabindex="90" checked.bind="model.includeNotes"> | ||
<span>${'editor.includeNotes'|t}</span> | ||
</label> | ||
</div> | ||
</form> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/** | ||
Copyright 2023 Jason Drake | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
import _ from 'lodash'; | ||
import {EventNames} from "../../../events/event-managed"; | ||
import {inject} from "aurelia-framework"; | ||
|
||
@inject() | ||
export class ReportBuilder { | ||
|
||
model; | ||
|
||
activate(options) { | ||
this.model = options; | ||
} | ||
|
||
save() { | ||
this.eventBus.publish(EventNames.generateReport, {model: this.model}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@import "../../../theme/_semantic.scss"; |
Oops, something went wrong.