-
Notifications
You must be signed in to change notification settings - Fork 352
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #289 from edgarmueller/master
Configure typings for external use
- Loading branch information
Showing
59 changed files
with
437 additions
and
334 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
# generated files | ||
dist/ | ||
!dist/LICENSE | ||
components/ | ||
jsonforms.d.ts | ||
jsonforms.js | ||
temp/ | ||
coverage/ | ||
reports/ | ||
|
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 |
---|---|---|
@@ -1,7 +1,16 @@ | ||
const booleanTemplate = `<jsonforms-control> | ||
<input type="checkbox" | ||
id="{{vm.id}}" | ||
class="jsf-control-boolean" | ||
ng-model="vm.modelValue[vm.fragment]" | ||
ng-change='vm.modelChanged()' | ||
ng-disabled="vm.uiSchema.readOnly"/> | ||
</jsonforms-control>`; | ||
|
||
export default angular | ||
.module('jsonforms-bootstrap.renderers.controls.boolean', | ||
['jsonforms-bootstrap.renderers.controls']) | ||
.run(['$templateCache', $templateCache => { | ||
$templateCache.put('boolean.html', require('./boolean.html')); | ||
$templateCache.put('boolean.html', booleanTemplate); | ||
}]) | ||
.name; |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,6 +1,17 @@ | ||
const controlTemplate = `<div class="jsf-control form-group top-buffer" ng-hide="vm.hide"> | ||
<div> | ||
<label ng-if="vm.showLabel" for="{{vm.id}}">{{vm.label}}</label> | ||
</div> | ||
<div ng-transclude> | ||
</div> | ||
<div> | ||
<uib-alert ng-repeat="alert in vm.alerts" type="{{alert.type}}" >{{alert.msg}}</uib-alert> | ||
</div> | ||
</div>`; | ||
|
||
export default angular | ||
.module('jsonforms-bootstrap.renderers.controls', ['jsonforms-bootstrap']) | ||
.run(['$templateCache', $templateCache => { | ||
$templateCache.put('control.html', require('./control.html')); | ||
$templateCache.put('control.html', controlTemplate); | ||
}]) | ||
.name; |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
21 changes: 20 additions & 1 deletion
21
src/bootstrap/layouts/categories/categorization-directive.ts
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 |
---|---|---|
@@ -1,7 +1,26 @@ | ||
const categorizationTemplate = `<jsonforms-layout> | ||
<div class="row jsf-categorization"> | ||
<div class="col-sm-100"> | ||
<uib-tabset> | ||
<uib-tab | ||
heading="{{category.label}}" | ||
ng-repeat="category in vm.uiSchema.elements" | ||
select="vm.changeSelectedCategory(category)"> | ||
<fieldset ng-if="vm.selectedCategory===category"> | ||
<jsonforms-inner ng-repeat="child in category.elements" | ||
uischema="child" > | ||
</jsonforms-inner> | ||
</fieldset> | ||
</uib-tab> | ||
</uib-tabset> | ||
</div> | ||
</div> | ||
</jsonforms-layout>`; | ||
|
||
export default angular | ||
.module('jsonforms-bootstrap.renderers.layouts.categories', | ||
['jsonforms.renderers.layouts', 'jsonforms-bootstrap']) | ||
.run(['$templateCache', $templateCache => { | ||
$templateCache.put('categorization.html', require('./categorization.html')); | ||
$templateCache.put('categorization.html', categorizationTemplate); | ||
}]) | ||
.name; |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,7 +1,19 @@ | ||
const groupTemplate = `<jsonforms-layout class="jsf-group"> | ||
<div class="jsf-group"> | ||
<fieldset class="row"> | ||
<legend ng-if="vm.label">{{vm.label}}</legend> | ||
<jsonforms-inner ng-repeat="child in vm.uiSchema.elements" | ||
uischema="child" | ||
class="col-sm-100"> | ||
</jsonforms-inner> | ||
</fieldset> | ||
</div> | ||
</jsonforms-layout>`; | ||
|
||
export default angular | ||
.module('jsonforms-bootstrap.renderers.layouts.group', | ||
['jsonforms.renderers.layouts', 'jsonforms-bootstrap']) | ||
.run(['$templateCache', $templateCache => { | ||
$templateCache.put('group.html', require('./group.html')); | ||
$templateCache.put('group.html', groupTemplate); | ||
}]) | ||
.name; |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
36 changes: 0 additions & 36 deletions
36
src/bootstrap/layouts/masterdetail/masterdetail-collection.html
This file was deleted.
Oops, something went wrong.
59 changes: 56 additions & 3 deletions
59
src/bootstrap/layouts/masterdetail/masterdetail-directives.ts
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 |
---|---|---|
@@ -1,11 +1,64 @@ | ||
const masterDetailTemplate = ` | ||
<div class="row"> | ||
<!-- Master --> | ||
<div class="col-sm-30 jsf-masterdetail"> | ||
<jsonforms-masterdetail-collection properties="vm.subSchema.properties" | ||
instance="vm.data"> | ||
</jsonforms-masterdetail-collection> | ||
</div> | ||
<!-- Detail --> | ||
<div class="col-sm-70"> | ||
<jsonforms schema="vm.selectedSchema" | ||
data="vm.selectedChild" | ||
ng-if="vm.selectedChild"></jsonforms> | ||
</div> | ||
</div>`; | ||
|
||
const masterDetailCollectionTemplate = ` | ||
<div> | ||
<uib-accordion close-others="false"> | ||
<uib-accordion-group is-open="vm.attribute_open[$index]" | ||
ng-repeat="(key, value) in vm.filter(vm.properties)"> <!--class="{{isEmptyInstance(key)?'jsf-masterdetail-empty':''}}"--> | ||
<uib-accordion-heading class="jsf-masterdetail-header"> | ||
<span class="jsf-masterdetail-property">{{key}}</span> | ||
<i | ||
ng-class="{'glyphicon glyphicon-chevron-down': vm.attribute_open[$index],'glyphicon glyphicon-chevron-right': !vm.attribute_open[$index]}" | ||
ng-show="!vm.isEmptyInstance(vm.instance,key)" > <!--ng-click="vm.attribute_open[$index]=!vm.attribute_open[$index]"--> | ||
</i> | ||
</uib-accordion-heading> | ||
<uib-accordion close-others="false" ng-if="!vm.isEmptyInstance(vm.instance,key)" ng-show="vm.attribute_open[$index]"> | ||
<uib-accordion-group | ||
is-open="vm.object_open[$index]" | ||
ng-repeat="child in vm.instance[key]" | ||
class="{{vm.isEmptyInstance(vm.instance,key)?'jsf-masterdetail-empty':''}}"> | ||
<uib-accordion-heading> | ||
<span ng-click="vm.selectElement(child,value)" | ||
ng-class="{ | ||
'jsf-masterdetail-selected':selectedChild==child | ||
}"> | ||
{{child.name!=undefined?child.name:child}} | ||
</span> | ||
<i | ||
ng-class="{'glyphicon glyphicon-chevron-down': vm.object_open[$index],'glyphicon glyphicon-chevron-right': !vm.object_open[$index]}" | ||
ng-if="vm.hasKeys(value.items)"></i> <!--ng-click="vm.object_open[$index]=!vm.object_open[$index]"--> | ||
</uib-accordion-heading> | ||
<div ng-show="vm.object_open[$index]" ng-if="vm.hasKeys(value.items)" > <!--ng-include="'masterdetail-master-template.html'"--> | ||
<jsonforms-masterdetail-member child-schema="value.items" child-data="child"></jsonforms-masterdetail-member> | ||
</div> | ||
</uib-accordion-group> | ||
</uib-accordion> | ||
</uib-accordion-group> | ||
</uib-accordion> | ||
</div>`; | ||
|
||
export default angular | ||
.module('jsonforms-bootstrap.renderers.layouts.masterdetail', | ||
['jsonforms.renderers.layouts', 'jsonforms-bootstrap']) | ||
.run(['$templateCache', $templateCache => { | ||
$templateCache.put('masterdetail.html', require('./masterdetail.html')); | ||
$templateCache.put('masterdetail.html', masterDetailTemplate); | ||
}]) | ||
.run(['$templateCache', $templateCache => { | ||
$templateCache.put('masterdetail-collection.html', | ||
require('./masterdetail-collection.html')); | ||
$templateCache.put('masterdetail-collection.html', masterDetailCollectionTemplate); | ||
}]) | ||
.name; |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,7 +1,16 @@ | ||
const verticalTemplate = ` | ||
<jsonforms-layout> | ||
<div class="jsf-vertical-layout"> | ||
<fieldset class="row"> | ||
<jsonforms-inner ng-repeat="child in vm.uiSchema.elements" uischema="child" class="col-sm-100"></jsonforms-inner> | ||
</fieldset> | ||
</div> | ||
</jsonforms-layout>`; | ||
|
||
export default angular | ||
.module('jsonforms-bootstrap.renderers.layouts.vertical', | ||
['jsonforms.renderers.layouts', 'jsonforms-bootstrap']) | ||
.run(['$templateCache', $templateCache => { | ||
$templateCache.put('vertical.html', require('./vertical.html')); | ||
$templateCache.put('vertical.html', verticalTemplate); | ||
}]) | ||
.name; |
Oops, something went wrong.