@cronapp/templates 2.9.2-SP.8 → 2.9.2-SP.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/file/view.html/EmptyCrudHtml/__FileName__.view.html.ftl +69 -0
- package/file/view.html/EmptyCrudHtml/template.properties +7 -0
- package/file/view.html/EmptyCrudHtml/template_pt_BR.properties +4 -0
- package/file/view.html/EmptyCrudHtml/view.html.png +0 -0
- package/package.json +1 -1
- package/project/M/cronapp-lyceum-project-mobile-cordova/template.properties +0 -1
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/www-sem-autenticacao/js/blockly/auth/Home.blockly +6 -6
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/www-sem-autenticacao/js/blockly/auth/Home.blockly.js +1 -1
- package/project/M/cronapp-rad-project-mobile-cordova/template.properties +2 -2
- package/project/W/cronapp-rad-project/diagram/app.umlcd +2 -2
- package/project/W/cronapp-rad-project/src/main/java/app/entity/ApplicationUser.java +2 -2
- package/project/W/cronapp-rad-project/src/main/java/app/entity/Login.java +1 -1
- package/project/W/cronapp-rad-project/src/main/webapp-sem-autenticacao/webapp/views/{home.view.html.ftl → public/home.view.html.ftl} +0 -0
- package/project/W/cronapp-rad-project/template.properties +1 -2
- package/templates/low-code/data-layer/ENTITIES.ftl +2 -8
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
<h2 class="component-holder text-left h3 title">Title</h2>
|
|
2
|
+
|
|
3
|
+
<datasource data-component="crn-datasource" filter="" name="MainDatasource" entity="" keys="" rows-per-page="100" class="" schema="" lazy=""></datasource>
|
|
4
|
+
|
|
5
|
+
<div role="search" ng-hide="MainDatasource.inserting || MainDatasource.editing" data-component="crn-datasource-filter" id="crn-datasource-filter" class="">
|
|
6
|
+
<div class="form-group">
|
|
7
|
+
<label for="textinput-filter" class="">{{"template.crud.search" | translate}}</label>
|
|
8
|
+
<input type="text" ng-model="vars.search" id="textinput-filter" class="form-control k-textbox" cronapp-filter="" cronapp-filter-operator="" cronapp-filter-caseinsensitive="false" cronapp-filter-autopost="true" crn-datasource="MainDatasource" value="" placeholder="{{'template.crud.search' | translate}}">
|
|
9
|
+
</div>
|
|
10
|
+
</div>
|
|
11
|
+
|
|
12
|
+
<section ng-hide="MainDatasource.editing || MainDatasource.inserting" class="component-holder ng-binding ng-scope" data-component="crn-cron-grid" id="cron-crn-grid-search">
|
|
13
|
+
<cron-grid options="{"dataSourceScreen":{},"allowPaging":true,"allowSorting":true,"allowGrouping":false,"allowSelectionTotalPageToShow":true,"allowRefreshGrid":true,"allowSelectionRow":true,"editable":"datasource","columns":[],"toolBarButtons":[{"type":"Native","title":"create"}],"details":[]}" ng-model="vars.gridmain" class="" style="">
|
|
14
|
+
</cron-grid>
|
|
15
|
+
</section>
|
|
16
|
+
<div data-component="crn-form" id="crn-form-form">
|
|
17
|
+
<section class="form" ng-show="MainDatasource.editing || MainDatasource.inserting">
|
|
18
|
+
<form crn-datasource="MainDatasource" class="">
|
|
19
|
+
<div class="tool-bar" ng-hide="datasource.editing || datasource.inserting">
|
|
20
|
+
<div class="component-holder ng-scope" data-component="crn-button" id="crn-button-startInserting">
|
|
21
|
+
<button class="btn k-button btn-block btn-default btn-fab" ng-click="datasource.startInserting()" aria-label="{{'StartInserting' | translate}}" xattr-fullsize="btn-block" xattr-theme="btn-default" xattr-disabled="">
|
|
22
|
+
<i class="glyphicon glyphicon-plus" icon-theme=""></i>
|
|
23
|
+
</button>
|
|
24
|
+
</div>
|
|
25
|
+
<div class="component-holder ng-scope" data-component="crn-button" id="crn-button-startEditing">
|
|
26
|
+
<button class="btn k-button btn-block btn-default btn-fab" ng-click="datasource.startEditing()" aria-label="{{'startEditing' | translate}}" xattr-fullsize="btn-block" xattr-theme="btn-default" xattr-disabled="">
|
|
27
|
+
<i class="glyphicon glyphicon-pencil" icon-theme=""></i>
|
|
28
|
+
</button>
|
|
29
|
+
</div>
|
|
30
|
+
<div class="component-holder ng-scope" data-component="crn-button" id="crn-button-previous">
|
|
31
|
+
<button class="btn k-button btn-block btn-default btn-fab" ng-click="datasource.previous()" ng-disabled="!datasource.hasPrevious()" aria-label="{{'Before' | translate}}" xattr-fullsize="btn-block" xattr-theme="btn-default" xattr-disabled="">
|
|
32
|
+
<i class="glyphicon glyphicon-chevron-left" icon-theme=""></i>
|
|
33
|
+
</button>
|
|
34
|
+
</div>
|
|
35
|
+
<div class="component-holder ng-scope" data-component="crn-button" id="crn-button-next">
|
|
36
|
+
<button class="btn k-button btn-block btn-default btn-fab" ng-click="datasource.next()" ng-disabled="!datasource.hasNext()" aria-label="{{'Next' | translate}}" xattr-fullsize="btn-block" xattr-theme="btn-default" xattr-disabled="">
|
|
37
|
+
<i class="glyphicon glyphicon-chevron-right" icon-theme=""></i>
|
|
38
|
+
</button>
|
|
39
|
+
</div>
|
|
40
|
+
<div class="component-holder ng-scope" data-component="crn-button" id="crn-button-remove">
|
|
41
|
+
<button class="btn k-button btn-block btn-danger btn-fab" ng-click="datasource.remove()" aria-label="{{'Remove' | translate}}" xattr-fullsize="btn-block" xattr-theme="btn-danger" xattr-disabled="">
|
|
42
|
+
<i class="glyphicon glyphicon-remove" icon-theme=""></i>
|
|
43
|
+
</button>
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
<div class="active-bar" ng-hide="!datasource.editing && !datasource.inserting">
|
|
47
|
+
<div class="component-holder ng-scope" data-component="crn-button" id="btn_crud_post_${model.random}">
|
|
48
|
+
<button class="btn k-button btn-block btn-success btn-fab" ng-click="datasource.post()" aria-label="{{'SaveChanges' | translate}}" xattr-fullsize="btn-block" xattr-theme="btn-success" xattr-disabled="">
|
|
49
|
+
<i class="glyphicon glyphicon-ok" icon-theme=""></i>
|
|
50
|
+
</button>
|
|
51
|
+
</div>
|
|
52
|
+
<div class="component-holder ng-scope" data-component="crn-button" id="btn_crud_cancel_${model.random}">
|
|
53
|
+
<button class="btn k-button btn-block btn-danger btn-fab" ng-click="datasource.cancel()" aria-label="{{'CancelChanges' | translate}}" xattr-fullsize="btn-block" xattr-theme="btn-danger" xattr-disabled="">
|
|
54
|
+
<i class="glyphicon glyphicon-ban-circle" icon-theme=""></i>
|
|
55
|
+
</button>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
<br>
|
|
59
|
+
<fieldset ng-disabled="!datasource.editing && !datasource.inserting">
|
|
60
|
+
<div class="component-holder ng-binding ng-scope" data-component="crn-textinput" id="crn-textinput-98075">
|
|
61
|
+
<div class="form-group">
|
|
62
|
+
<label for="input5045">Label</label>
|
|
63
|
+
<input type="text" mask="" mask-placeholder="" ng-required="false" ng-model="vars.input5045" class="form-control k-textbox" id="input5045" placeholder="Placeholder text">
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
</fieldset>
|
|
67
|
+
</form>
|
|
68
|
+
</section>
|
|
69
|
+
</div>
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -15,7 +15,6 @@ billingPlan=developer,techne
|
|
|
15
15
|
|
|
16
16
|
template.id=cronapp-lyceum-project-mobile-cordova
|
|
17
17
|
features=ionic|angularjs|eclipselink|jpa|maven|springboot|cordova
|
|
18
|
-
authenticationTypes=SSO
|
|
19
18
|
|
|
20
19
|
parameter.page.1.string.0.appid=${generateAppId}
|
|
21
20
|
parameter.page.1.boolean.1.frontend=true
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?><blockly formTarget="" resourceType="JS" ruleDescription="Home" ruleName="Home" ruleSynchronous="false" ruleTimeout="" ruleType="I">
|
|
2
|
-
<metadata scale="1" scrollx="
|
|
3
|
-
<block colour="#995ba5" id="Anb:u5+^,0vLkL9QIqn5" origintype="procedures_defreturn" output="false" tooltip="Cria uma função que possui um valor de retorno." type="procedures_defreturn" x="-350" y="130">
|
|
4
|
-
<field name="NAME">change</field>
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?><blockly audit="false" blocklyType="" bpmnAble="false" formTarget="" library="false" resourceType="JS" ruleDescription="Home" ruleName="Home" ruleSynchronous="false" ruleTimeout="" ruleType="I" soap="false" swagger="false">
|
|
2
|
+
<metadata scale="1" scrollx="487.4999999999998" scrolly="-63.30000000000007" target="Anb:u5+^,0vLkL9QIqn5"/>
|
|
3
|
+
<block asynccall="false" colour="#995ba5" id="Anb:u5+^,0vLkL9QIqn5" origintype="procedures_defreturn" output="false" tooltip="Cria uma função que possui um valor de retorno." type="procedures_defreturn" x="-350" y="130">
|
|
4
|
+
<field customattributes="" name="NAME">change</field>
|
|
5
5
|
<comment h="80" pinned="false" w="160">Home</comment>
|
|
6
6
|
<statement name="STACK">
|
|
7
|
-
<block colour="#
|
|
8
|
-
<mutation
|
|
7
|
+
<block asynccall="false" colour="#487f7f" dependencyby="Anb:u5+^,0vLkL9QIqn5" id="CaY}*Wwy6hi.D$j_/QB`" multilayer="true" namespace="cronapi.util.changeViewMain" origintype="procedures_callnoreturn" output="false" returntype="ObjectType.VOID" tooltip="%3Cdiv%20class=%22name%22%3E%3Cstrong%3ENome:%3C/strong%3E%3Cdiv%3EAlterar%20para%20rota%20padr%C3%A3o%3C/div%3E%3C/div%3E%3Cdiv%20class=%22description%22%3E%3Cstrong%3EDescri%C3%A7%C3%A3o:%3C/strong%3E%3Cdiv%3EAlterar%20para%20rota%20padr%C3%A3o%20que%20est%C3%A1%20definido%20no%20projeto%3C/div%3E%3C/div%3E%3Cdiv%20class=%22link%22%3E%3Cstrong%3EAjuda:%3C/strong%3E%3Cdiv%20class=%22tooltip-link%22%3E%3Ca%20target=%22_blank%22%20href=%22http://localhost:8080/help?type=blockly&amp;id=cronapi.util.changeViewMain%22%3EAjuda%3C/a%3E%3C/div%3E%3C/div%3E" type="procedures_callnoreturn">
|
|
8
|
+
<mutation name="{{cronapi.util.changeViewMain}}" return-raw-type="undefined"/>
|
|
9
9
|
</block>
|
|
10
10
|
</statement>
|
|
11
11
|
</block>
|
|
@@ -96,7 +96,7 @@ maven.dependecies.new.dependency.14.artifactId=gson
|
|
|
96
96
|
maven.dependecies.new.dependency.14.version=2.8.0
|
|
97
97
|
|
|
98
98
|
features=ionic|angularjs|eclipselink|jpa|maven|springboot|cordova
|
|
99
|
-
|
|
99
|
+
|
|
100
100
|
|
|
101
101
|
parameter.page.1.string.0.appid=${generateAppId}
|
|
102
102
|
parameter.page.1.boolean.1.frontend=true
|
|
@@ -104,8 +104,8 @@ parameter.page.1.boolean.2.backend=true
|
|
|
104
104
|
parameter.page.1.list.3.authentication=Token|SSO|Saml|Nenhuma
|
|
105
105
|
parameter.page.1.list.6.social=Não|Sim
|
|
106
106
|
parameter.page.1.list.7.mutual=Não|Sim
|
|
107
|
-
parameter.page.2.theme.6.theme=Material|Aquamarine|Fuse|DsGov|Cerulean|Cosmo|Cyborg|Darkly|Flatly|Journal|Lumen|Paper|Readable|Sandstone|Simplex|Slate|Spacelab|Superhero|United|Yeti
|
|
108
107
|
|
|
108
|
+
parameter.page.2.theme.6.theme=Material|Aquamarine|Fuse|DsGov|Cerulean|Cosmo|Cyborg|Darkly|Flatly|Journal|Lumen|Paper|Readable|Sandstone|Simplex|Slate|Spacelab|Superhero|United|Yeti
|
|
109
109
|
themeDescription.Aquamarine=O tema Aquamarine utiliza o padrão de HTML e CSS do Bootstrap 🆕
|
|
110
110
|
themeDescription.Fuse=O tema Fuse utiliza o padrão de HTML e CSS do Bootstrap 🆕
|
|
111
111
|
themeDescription.DsGov=O tema DsGov utiliza o padrão de HTML e CSS do Gov.br 🆕
|
|
@@ -359,7 +359,7 @@
|
|
|
359
359
|
"referencedColumnName": "",
|
|
360
360
|
"isSearchable": false,
|
|
361
361
|
"sequence": "",
|
|
362
|
-
"isCascade":
|
|
362
|
+
"isCascade": false,
|
|
363
363
|
"isVersion": false,
|
|
364
364
|
"storageId": "",
|
|
365
365
|
"storageKey": "",
|
|
@@ -1308,7 +1308,7 @@
|
|
|
1308
1308
|
"referencedColumnName": "",
|
|
1309
1309
|
"isSearchable": false,
|
|
1310
1310
|
"sequence": "",
|
|
1311
|
-
"isCascade":
|
|
1311
|
+
"isCascade": false
|
|
1312
1312
|
}
|
|
1313
1313
|
],
|
|
1314
1314
|
"id": "2016ad54-a0f9-4337-ad10-694a48f0435c",
|
|
@@ -37,7 +37,7 @@ public class ApplicationUser implements Serializable {
|
|
|
37
37
|
* @generated
|
|
38
38
|
*/
|
|
39
39
|
@ManyToOne
|
|
40
|
-
@JoinColumn(name
|
|
40
|
+
@JoinColumn(name="application_id", nullable = true, referencedColumnName = "id", insertable=true, updatable=true, foreignKey = @ForeignKey(name = "", foreignKeyDefinition = "FOREIGN KEY (application_id) REFERENCES APPLICATION (id)"))
|
|
41
41
|
|
|
42
42
|
private Application application;
|
|
43
43
|
|
|
@@ -45,7 +45,7 @@ public class ApplicationUser implements Serializable {
|
|
|
45
45
|
* @generated
|
|
46
46
|
*/
|
|
47
47
|
@ManyToOne
|
|
48
|
-
@JoinColumn(name
|
|
48
|
+
@JoinColumn(name="user_id", nullable = true, referencedColumnName = "id", insertable=true, updatable=true, foreignKey = @ForeignKey(name = "", foreignKeyDefinition = "FOREIGN KEY (user_id) REFERENCES USER (id)"))
|
|
49
49
|
|
|
50
50
|
private User user;
|
|
51
51
|
|
|
@@ -58,7 +58,7 @@ public class Login implements Serializable {
|
|
|
58
58
|
* @generated
|
|
59
59
|
*/
|
|
60
60
|
@ManyToOne
|
|
61
|
-
@JoinColumn(name
|
|
61
|
+
@JoinColumn(name="user_id", nullable = false, referencedColumnName = "id", insertable=true, updatable=true)
|
|
62
62
|
|
|
63
63
|
private User user;
|
|
64
64
|
|
|
File without changes
|
|
@@ -70,7 +70,7 @@ maven.dependecies.new.dependency.10.version=1.3.5.RELEASE
|
|
|
70
70
|
maven.dependecies.new.dependency.10.scope=provided
|
|
71
71
|
|
|
72
72
|
features=angularjs|eclipselink|jpa|maven|springboot
|
|
73
|
-
|
|
73
|
+
|
|
74
74
|
|
|
75
75
|
parameter.page.1.string.0.appid=${generateAppId}
|
|
76
76
|
parameter.page.1.boolean.1.frontend=true
|
|
@@ -80,7 +80,6 @@ parameter.page.1.list.4.menuPosition=Horizontal|Vertical
|
|
|
80
80
|
parameter.page.1.list.6.social=Não|Sim
|
|
81
81
|
parameter.page.1.list.7.mutual=Não|Sim
|
|
82
82
|
parameter.page.2.theme.6.theme=Material|Aquamarine|Fuse|DsGov|Cosmo|Cyborg|Darkly|Flatly|Journal|Lumen|Paper|Readable|Sandstone|Simplex|Slate|Spacelab|Superhero|United|Yeti
|
|
83
|
-
|
|
84
83
|
themeDescription.Aquamarine=O tema Aquamarine utiliza o padrão de HTML e CSS do Bootstrap 🆕
|
|
85
84
|
themeDescription.Fuse=O tema Fuse utiliza o padrão de HTML e CSS do Bootstrap 🆕
|
|
86
85
|
themeDescription.DsGov=O tema DsGov utiliza o padrão de HTML e CSS do Gov.br 🆕
|
|
@@ -223,10 +223,7 @@ public class ${clazz.name} implements Serializable {
|
|
|
223
223
|
</#list>
|
|
224
224
|
})
|
|
225
225
|
<#else>
|
|
226
|
-
<#if field.
|
|
227
|
-
@Lob
|
|
228
|
-
</#if>
|
|
229
|
-
@Column(name = "${field.dbFieldName?replace("\"", "\\\"")}", nullable = ${field.nullable?c}<#if !field.primaryKey>, unique = ${field.unique?c}</#if><#if field.length??>, length=${field.length?c}</#if><#if field.precision??>, precision=${field.precision?c}</#if><#if field.scale??>, scale=${field.scale?c}</#if>, insertable=${field.insertable?c}, updatable=${field.updatable?c}<#if field.columnDefinition?? && (field.columnDefinition != "TEXT" || persistenceProvider?upper_case != "ORACLE")>, columnDefinition = "${field.columnDefinition}"</#if>)
|
|
226
|
+
@Column(name = "${field.dbFieldName?replace("\"", "\\\"")}", nullable = ${field.nullable?c}<#if !field.primaryKey>, unique = ${field.unique?c}</#if><#if field.length??>, length=${field.length?c}</#if><#if field.precision??>, precision=${field.precision?c}</#if><#if field.scale??>, scale=${field.scale?c}</#if>, insertable=${field.insertable?c}, updatable=${field.updatable?c}<#if field.columnDefinition??>, columnDefinition = "${field.columnDefinition}"</#if>)
|
|
230
227
|
</#if>
|
|
231
228
|
${field.modifier} <#if field.arrayRelation>${field.type}<#else>${field.type}</#if> ${name}<#if field.defaultValue?has_content> = ${field.defaultValue}<#elseif field.primaryKey && field.generationType?? && field.generationType == "UUID"> = UUID.randomUUID().toString().toUpperCase()</#if>;
|
|
232
229
|
</#if>
|
|
@@ -283,10 +280,7 @@ public class ${clazz.name} implements Serializable {
|
|
|
283
280
|
<#elseif field.isTimestamp()>
|
|
284
281
|
@Temporal(TemporalType.TIMESTAMP)
|
|
285
282
|
</#if>
|
|
286
|
-
<#if field.
|
|
287
|
-
@Lob
|
|
288
|
-
</#if>
|
|
289
|
-
@Column(name = "${field.dbFieldName?replace("\"", "\\\"")}", nullable = ${field.nullable?c}<#if !field.primaryKey>, unique = ${field.unique?c}</#if><#if field.length??>, length=${field.length?c}</#if><#if field.precision??>, precision=${field.precision?c}</#if><#if field.scale??>, scale=${field.scale?c}</#if>, insertable=${field.insertable?c}, updatable=${field.updatable?c}<#if field.columnDefinition?? && (field.columnDefinition != "TEXT" || persistenceProvider?upper_case != "ORACLE")>, columnDefinition = "${field.columnDefinition}"</#if>)
|
|
283
|
+
@Column(name = "${field.dbFieldName?replace("\"", "\\\"")}", nullable = ${field.nullable?c}<#if !field.primaryKey>, unique = ${field.unique?c}</#if><#if field.length??>, length=${field.length?c}</#if><#if field.precision??>, precision=${field.precision?c}</#if><#if field.scale??>, scale=${field.scale?c}</#if>, insertable=${field.insertable?c}, updatable=${field.updatable?c}<#if field.columnDefinition??>, columnDefinition = "${field.columnDefinition}"</#if>)
|
|
290
284
|
</#if>
|
|
291
285
|
</#if>
|
|
292
286
|
<#if field.getUseOuterJoin()>
|