@abgov/nx-adsp 5.8.0-beta.5 → 5.8.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/nx-adsp",
3
- "version": "5.8.0-beta.5",
3
+ "version": "5.8.0",
4
4
  "license": "Apache-2.0",
5
5
  "main": "src/index.js",
6
6
  "description": "Government of Alberta - Nx plugin for ADSP apps.",
@@ -0,0 +1,23 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <title><%= projectName %></title>
6
+ <base href="/" />
7
+
8
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
9
+ <link rel="icon" type="image/x-icon" href="favicon.ico" />
10
+
11
+ <script
12
+ type="module"
13
+ src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.esm.js"
14
+ ></script>
15
+ <script
16
+ nomodule
17
+ src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.js"
18
+ ></script>
19
+ </head>
20
+ <body>
21
+ <div id="root"></div>
22
+ </body>
23
+ </html>
@@ -122,6 +122,7 @@ const <%= section.className %>FieldSet: FunctionComponent<FieldSetProps> = ({
122
122
  } _%>
123
123
  <%_ } _%>
124
124
  <%_ break;
125
+ case 'integer':
125
126
  case 'number': _%>
126
127
  <GoAInput
127
128
  type="number"
@@ -131,6 +132,15 @@ const <%= section.className %>FieldSet: FunctionComponent<FieldSetProps> = ({
131
132
  onChange={(name, updated) => onChange({ ...value, [name]: updated })}
132
133
  value={`${value.<%= key %> || ''}`}
133
134
  name="<%= key %>"
135
+ <%_ if (value?.maximum !== undefined) { _%>
136
+ max={<%= value.maximum %>}
137
+ <%_ } _%>
138
+ <%_ if (value?.minimum !== undefined) { _%>
139
+ min={<%= value.minimum %>}
140
+ <%_ } _%>
141
+ <%_ if (value?.multipleOf !== undefined) { _%>
142
+ step={<%= value.multipleOf %>}
143
+ <%_ } _%>
134
144
  />
135
145
  <%_ break;
136
146
  case 'boolean': _%>