Skip to content

Commit

Permalink
Merge pull request #282 from CCALI/develop
Browse files Browse the repository at this point in the history
8.4.1 release.
  • Loading branch information
tobiasnteireho authored Feb 13, 2025
2 parents 819ece7 + 16da41a commit 15b8409
Show file tree
Hide file tree
Showing 13 changed files with 59 additions and 68 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,6 @@ To find out more about A2J Viewer and A2J Author® please see our website, [www.

Ever growing backend documentation including tutorials and examples can be found at [https://www.a2jauthor.org/content/a2j-selfhosting-and-backend](https://www.a2jauthor.org/content/a2j-selfhosting-and-backend)

The A2J-Author project is run by the Center for Computer-Assisted Legal Instruction (www.cali.org), a consoritum of US law schools.

For questions, contact Tobias Nteireho at [email protected]
4 changes: 2 additions & 2 deletions demo/viewer/viewer.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@
<script main="@empty"
env="production"
config="../package.json!npm"
src="../dist/bundles/app.js?v=1731353014593"
src="../dist/bundles/app.js?v=1733890832481"
cache-key="v"
cache-version="1731353014593"
cache-version="1733890832481"
base-url="../">
</script>
</body>
Expand Down
2 changes: 1 addition & 1 deletion index.dev.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@
errRepURL: ''
}));
</script>
<script src="node_modules/steal/steal.production.js?v=1730921214984" cache-key="v" cache-version="1730921214984" main="@caliorg/a2jviewer/app"></script>
<script src="node_modules/steal/steal.production.js?v=1738596676504" cache-key="v" cache-version="1738596676504" main="@caliorg/a2jviewer/app"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@
errRepURL: ''
}));
</script>
<script src="node_modules/steal/steal.production.js?v=1731350626175" cache-key="v" cache-version="1731350626175" main="@caliorg/a2jviewer/app"></script>
<script src="node_modules/steal/steal.production.js?v=1739423482585" cache-key="v" cache-version="1739423482585" main="@caliorg/a2jviewer/app"></script>
</body>
</html>
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@caliorg/a2jviewer",
"version": "8.3.0",
"version": "8.4.1",
"description": "A2J Viewer standalone and preview app.",
"main": "a2jviewer/app",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/footer/footerVersion.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

const version = {
number: '8.3.0',
date: '2024-12-10'
number: '8.4.1',
date: '2025-02-13'
}

export default version
8 changes: 8 additions & 0 deletions src/mobile/pages/fields/field/field.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,14 @@ export const FieldVM = DefineMap.extend('FieldVM', {
get () {
const min = this.field.min || 'any'
const max = this.field.max || 'any'
const isDateMDY = this.field.type === 'datemdy'

if (isDateMDY) {
let minDate = moment(min, 'MMDDYYYY').format('MM/DD/YYYY')
let maxDate = moment(max, 'MMDDYYYY').format('MM/DD/YYYY')
return `(${minDate} ~~~ ${maxDate})`
}

return `(${min} ~~~ ${max})`
}
},
Expand Down
16 changes: 7 additions & 9 deletions src/mobile/pages/fields/field/views/datemdy.stache
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,14 @@
{{#if(field.required)}}<small class="text-danger">({{lang.Required}})</small>{{/if}}
</label>
<div class="datepicker-field-field">
<input
type="text"
id:from="this.idFromLabelHTML(field.label)"
name="{{field.name}}"
value:bind="field._answerVm.textValue"
on:change="validateField(null, scope.element)"
{{#if(field.required)}}required{{/if}}
class="form-control datepicker-input" />
<input type="text" id:from="this.idFromLabelHTML(field.label)" name="{{field.name}}"
value:bind="field._answerVm.textValue" on:change="validateField(null, scope.element)"
{{#if(field.required)}}required{{/if}} class="form-control datepicker-input" />
</div>
{{#if(showMinMaxPrompt)}}
{{minMaxPrompt}}
{{/if}}
</div>

{{> invalid-prompt-tpl }}
</div>
</div>
15 changes: 6 additions & 9 deletions src/mobile/pages/fields/field/views/invalid-prompt.stache
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
{{#if(showInvalidPrompt)}}
<div class="alert alert-danger" role="alert">
<span class="glyphicon-attention" aria-hidden="true">
{{{ parseText(scope.vm.invalidPrompt) }}}
{{#if(showMinMaxPrompt)}}
{{minMaxPrompt}}
{{/if}}
</span>
</div>
{{/if}}
<div class="alert alert-danger" role="alert">
<span class="glyphicon-attention" aria-hidden="true">
{{{ parseText(scope.vm.invalidPrompt) }}}
</span>
</div>
{{/if}}
33 changes: 13 additions & 20 deletions src/mobile/pages/fields/field/views/number.stache
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,19 @@
{{#if(field.required)}}<small class="text-danger">({{lang.Required}})</small>{{/if}}
</label>
<div class="number-field">
<input
type="text"
inputmode="decimal"
id="{{idFromLabelHTML(field.label)}}"
name="{{field.name}}"
{{#if(field.required)}}required{{/if}}
class="form-control"
on:input="preValidateNumber(null, scope.element)"
on:change="validateField(null, scope.element)"
value:bind="field._answerVm.textValue"/>
{{#if(field.calculator)}}
<button
aria-label="Expand Calculator"
class="btn btn-default expand-calc pull-right"
on:click="showCalculator(field)"
aui-action="open">
<span class="icon calc-icon glyphicon-calc" aria-hidden="true"></span>
</button>
{{/if}}
<input type="text" inputmode="decimal" id="{{idFromLabelHTML(field.label)}}" name="{{field.name}}"
{{#if(field.required)}}required{{/if}} class="form-control" on:input="preValidateNumber(null, scope.element)"
on:change="validateField(null, scope.element)" value:bind="field._answerVm.textValue" />
{{#if(field.calculator)}}
<button aria-label="Expand Calculator" class="btn btn-default expand-calc pull-right"
on:click="showCalculator(field)" aui-action="open">
<span class="icon calc-icon glyphicon-calc" aria-hidden="true"></span>
</button>
{{/if}}
</div>
{{#if(showMinMaxPrompt)}}
{{minMaxPrompt}}
{{/if}}
</div>
{{> invalid-prompt-tpl }}
</div>
</div>
33 changes: 13 additions & 20 deletions src/mobile/pages/fields/field/views/numberdollar.stache
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,20 @@

<div class="numberdollar-field">
<span>$</span>
<input
type="text"
inputmode="decimal"
id="{{idFromLabelHTML(field.label)}}"
name="{{field.name}}"
{{#if(field.required)}}required{{/if}}
class="form-control"
on:input="preValidateNumber(null, scope.element)"
on:change="validateField(null, scope.element)"
value:bind="field._answerVm.values"/>
{{#if(field.calculator)}}
<button
aria-label="Expand Calculator"
class="btn btn-default expand-calc pull-right"
on:click="showCalculator(field)"
aui-action="open">
<span class="icon calc-icon glyphicon-calc" aria-hidden="true"></span>
</button>
{{/if}}
<input type="text" inputmode="decimal" id="{{idFromLabelHTML(field.label)}}" name="{{field.name}}"
{{#if(field.required)}}required{{/if}} class="form-control" on:input="preValidateNumber(null, scope.element)"
on:change="validateField(null, scope.element)" value:bind="field._answerVm.values" />
{{#if(field.calculator)}}
<button aria-label="Expand Calculator" class="btn btn-default expand-calc pull-right"
on:click="showCalculator(field)" aui-action="open">
<span class="icon calc-icon glyphicon-calc" aria-hidden="true"></span>
</button>
{{/if}}
</div>
{{#if(showMinMaxPrompt)}}
{{minMaxPrompt}}
{{/if}}
</div>

{{> invalid-prompt-tpl }}
</div>
</div>
2 changes: 1 addition & 1 deletion src/mobile/pages/pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export default Component.extend({
if (Array.isArray(postBody.invalidAnswers)) {
if (postBody.invalidAnswers.length) {
$.ajax({
url: 'https://staging.a2jauthor.org/a2jauthor/bad-answer-alert.php',
url: 'https://www.a2jauthor.org/a2jauthor/bad-answer-alert.php',
type: 'POST',
data: JSON.stringify(postBody),
dataType: 'json'
Expand Down

0 comments on commit 15b8409

Please sign in to comment.