@projectcaluma/ember-form-builder 11.0.0-beta.28 → 11.0.0-beta.29
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/addon/components/cfb-code-editor.hbs +25 -10
- package/addon/components/cfb-form-editor/question/default.hbs +11 -9
- package/addon/components/cfb-form-editor/question/options.hbs +3 -3
- package/addon/components/cfb-form-editor/question/validation.hbs +15 -13
- package/addon/components/cfb-form-editor/question-list/item.hbs +27 -29
- package/addon/components/cfb-form-editor/question.hbs +35 -90
- package/addon/components/cfb-form-editor/question.js +7 -13
- package/addon/validators/gt-lt.js +17 -38
- package/config/environment.js +0 -7
- package/index.js +8 -0
- package/package.json +17 -15
- package/addon/components/cfb-float-input.hbs +0 -14
- package/addon/components/cfb-label.hbs +0 -12
- package/app/components/cfb-float-input.js +0 -1
- package/app/components/cfb-label.js +0 -1
|
@@ -1,12 +1,27 @@
|
|
|
1
|
-
|
|
1
|
+
<div class="uk-margin">
|
|
2
|
+
<@labelComponent />
|
|
2
3
|
|
|
3
|
-
<div
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
<div class="uk-form-controls">
|
|
5
|
+
<div
|
|
6
|
+
name={{@name}}
|
|
7
|
+
class="uk-textarea cfb-code-editor {{concat 'language-' @language}}"
|
|
8
|
+
{{did-insert this.didInsertNode}}
|
|
9
|
+
{{will-destroy this.willDestroyNode}}
|
|
10
|
+
{{autoresize mode="height"}}
|
|
11
|
+
></div>
|
|
12
|
+
</div>
|
|
10
13
|
|
|
11
|
-
{{
|
|
12
|
-
|
|
14
|
+
{{#if (eq @language "markdown")}}
|
|
15
|
+
<small class="uk-text-muted">
|
|
16
|
+
{{t "caluma.form-builder.question.supportsMarkdownPrefix"}}
|
|
17
|
+
<a
|
|
18
|
+
target="_blank"
|
|
19
|
+
rel="noopener noreferrer"
|
|
20
|
+
href="https://www.markdownguide.org/basic-syntax"
|
|
21
|
+
>{{t "caluma.form-builder.question.markdown"}}</a>
|
|
22
|
+
</small>
|
|
23
|
+
{{/if}}
|
|
24
|
+
|
|
25
|
+
<@hintComponent />
|
|
26
|
+
<@errorComponent />
|
|
27
|
+
</div>
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
<div class="uk-margin">
|
|
2
|
-
|
|
2
|
+
<@labelComponent />
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
<div class="uk-form-controls">
|
|
5
|
+
{{component
|
|
6
|
+
(get-widget this.field.question)
|
|
7
|
+
field=this.field
|
|
8
|
+
disabled=false
|
|
9
|
+
onSave=this.onUpdate
|
|
10
|
+
}}
|
|
11
|
+
</div>
|
|
10
12
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
+
<@hintComponent />
|
|
14
|
+
<@errorComponent />
|
|
13
15
|
</div>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<div class="uk-margin">
|
|
2
|
-
|
|
2
|
+
<@labelComponent />
|
|
3
3
|
|
|
4
4
|
<UkSortable
|
|
5
5
|
@handle=".uk-sortable-handle"
|
|
@@ -84,6 +84,6 @@
|
|
|
84
84
|
</li>
|
|
85
85
|
</UkSortable>
|
|
86
86
|
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
<@hintComponent />
|
|
88
|
+
<@errorComponent />
|
|
89
89
|
</div>
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
<div class="uk-margin">
|
|
2
|
-
|
|
2
|
+
<@labelComponent />
|
|
3
3
|
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
<div class="uk-form-controls">
|
|
5
|
+
<PowerSelectMultiple
|
|
6
|
+
@selected={{this.selected}}
|
|
7
|
+
@placeholder={{@placeholder}}
|
|
8
|
+
@options={{this.validators}}
|
|
9
|
+
@onChange={{this.updateValidators}}
|
|
10
|
+
@renderInPlace={{true}}
|
|
11
|
+
as |item|
|
|
12
|
+
>
|
|
13
|
+
{{item.name}}
|
|
14
|
+
</PowerSelectMultiple>
|
|
15
|
+
</div>
|
|
14
16
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
+
<@hintComponent />
|
|
18
|
+
<@errorComponent />
|
|
17
19
|
</div>
|
|
@@ -9,35 +9,33 @@
|
|
|
9
9
|
...attributes
|
|
10
10
|
>
|
|
11
11
|
<div class="uk-flex uk-flex-middle">
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
{{/if}}
|
|
40
|
-
</span>
|
|
12
|
+
{{#if (eq @mode "reorder")}}
|
|
13
|
+
<i
|
|
14
|
+
role="button"
|
|
15
|
+
data-test-sort-handle
|
|
16
|
+
uk-icon="menu"
|
|
17
|
+
class="uk-sortable-handle uk-margin-small-right"
|
|
18
|
+
>
|
|
19
|
+
</i>
|
|
20
|
+
{{else if (eq @mode "remove")}}
|
|
21
|
+
<i
|
|
22
|
+
role="button"
|
|
23
|
+
data-test-remove-item
|
|
24
|
+
uk-icon="minus"
|
|
25
|
+
class="cfb-pointer uk-text-danger uk-margin-small-right"
|
|
26
|
+
{{on "click" (fn (optional @onRemoveQuestion) @question)}}
|
|
27
|
+
>
|
|
28
|
+
</i>
|
|
29
|
+
{{else if (eq @mode "add")}}
|
|
30
|
+
<i
|
|
31
|
+
role="button"
|
|
32
|
+
data-test-add-item
|
|
33
|
+
uk-icon="plus"
|
|
34
|
+
class="cfb-pointer uk-text-success uk-margin-small-right"
|
|
35
|
+
{{on "click" (fn (optional @onAddQuestion) @question)}}
|
|
36
|
+
>
|
|
37
|
+
</i>
|
|
38
|
+
{{/if}}
|
|
41
39
|
|
|
42
40
|
{{#if (eq @mode "reorder")}}
|
|
43
41
|
<a
|
|
@@ -113,26 +113,11 @@
|
|
|
113
113
|
{{/if}}
|
|
114
114
|
|
|
115
115
|
{{#if (has-question-type f.model "static")}}
|
|
116
|
-
<
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
"cfb-code-editor"
|
|
122
|
-
language="markdown"
|
|
123
|
-
className="uk-margin-remove-bottom"
|
|
124
|
-
}}
|
|
125
|
-
class="uk-margin-remove-bottom"
|
|
126
|
-
/>
|
|
127
|
-
<small class="uk-text-muted">
|
|
128
|
-
{{t "caluma.form-builder.question.supportsMarkdownPrefix"}}
|
|
129
|
-
<a
|
|
130
|
-
target="_blank"
|
|
131
|
-
rel="noopener noreferrer"
|
|
132
|
-
href="https://www.markdownguide.org/basic-syntax"
|
|
133
|
-
>{{t "caluma.form-builder.question.markdown"}}</a>
|
|
134
|
-
</small>
|
|
135
|
-
</div>
|
|
116
|
+
<f.input
|
|
117
|
+
@label={{t "caluma.form-builder.question.staticContent"}}
|
|
118
|
+
@name="staticContent"
|
|
119
|
+
@renderComponent={{component "cfb-code-editor" language="markdown"}}
|
|
120
|
+
/>
|
|
136
121
|
{{/if}}
|
|
137
122
|
|
|
138
123
|
{{#if (has-question-type f.model "action-button")}}
|
|
@@ -143,25 +128,11 @@
|
|
|
143
128
|
{{autoresize mode="height"}}
|
|
144
129
|
/>
|
|
145
130
|
{{else}}
|
|
146
|
-
<
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
"cfb-code-editor"
|
|
152
|
-
language="markdown"
|
|
153
|
-
className="uk-margin-remove-bottom"
|
|
154
|
-
}}
|
|
155
|
-
/>
|
|
156
|
-
<small class="uk-text-muted">
|
|
157
|
-
{{t "caluma.form-builder.question.supportsMarkdownPrefix"}}
|
|
158
|
-
<a
|
|
159
|
-
target="_blank"
|
|
160
|
-
rel="noopener noreferrer"
|
|
161
|
-
href="https://www.markdownguide.org/basic-syntax"
|
|
162
|
-
>{{t "caluma.form-builder.question.markdown"}}</a>
|
|
163
|
-
</small>
|
|
164
|
-
</div>
|
|
131
|
+
<f.input
|
|
132
|
+
@label={{t "caluma.form-builder.question.infoText"}}
|
|
133
|
+
@name="infoText"
|
|
134
|
+
@renderComponent={{component "cfb-code-editor" language="markdown"}}
|
|
135
|
+
/>
|
|
165
136
|
{{/if}}
|
|
166
137
|
|
|
167
138
|
{{#if (not (has-question-type f.model "action-button" "static" "form"))}}
|
|
@@ -250,17 +221,18 @@
|
|
|
250
221
|
<div uk-grid class="uk-grid-small uk-child-width-1-2 uk-margin">
|
|
251
222
|
<div>
|
|
252
223
|
<f.input
|
|
224
|
+
@type="number"
|
|
253
225
|
@name="floatMinValue"
|
|
254
226
|
@label={{t "caluma.form-builder.question.min-value"}}
|
|
255
|
-
|
|
227
|
+
step="any"
|
|
256
228
|
/>
|
|
257
229
|
</div>
|
|
258
|
-
|
|
259
230
|
<div>
|
|
260
231
|
<f.input
|
|
232
|
+
@type="number"
|
|
261
233
|
@name="floatMaxValue"
|
|
262
234
|
@label={{t "caluma.form-builder.question.max-value"}}
|
|
263
|
-
|
|
235
|
+
step="any"
|
|
264
236
|
/>
|
|
265
237
|
</div>
|
|
266
238
|
</div>
|
|
@@ -367,33 +339,12 @@
|
|
|
367
339
|
</div>
|
|
368
340
|
|
|
369
341
|
{{#if @slug}}
|
|
370
|
-
<
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
{{#let rowEdge.node as |row|}}
|
|
377
|
-
<label>
|
|
378
|
-
<input
|
|
379
|
-
type="checkbox"
|
|
380
|
-
value={{row.slug}}
|
|
381
|
-
checked={{includes
|
|
382
|
-
row.slug
|
|
383
|
-
this.model.meta.columnsToDisplay
|
|
384
|
-
}}
|
|
385
|
-
class="uk-checkbox uk-margin-small-right"
|
|
386
|
-
{{on
|
|
387
|
-
"change"
|
|
388
|
-
(fn this.toggleColumnToDisplay row.slug f.model)
|
|
389
|
-
}}
|
|
390
|
-
/>
|
|
391
|
-
{{row.label}}
|
|
392
|
-
</label>
|
|
393
|
-
{{/let}}
|
|
394
|
-
{{/each}}
|
|
395
|
-
</f.input>
|
|
396
|
-
</div>
|
|
342
|
+
<f.input
|
|
343
|
+
@type="checkbox-group"
|
|
344
|
+
@name="meta.columnsToDisplay"
|
|
345
|
+
@label={{t "caluma.form-builder.question.columnsToDisplay"}}
|
|
346
|
+
@options={{this.columnsToDisplayOptions}}
|
|
347
|
+
/>
|
|
397
348
|
{{/if}}
|
|
398
349
|
{{/if}}
|
|
399
350
|
|
|
@@ -478,13 +429,11 @@
|
|
|
478
429
|
/>
|
|
479
430
|
{{/if}}
|
|
480
431
|
|
|
481
|
-
<
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
/>
|
|
487
|
-
</div>
|
|
432
|
+
<f.input
|
|
433
|
+
@label={{t "caluma.form-builder.question.isHidden"}}
|
|
434
|
+
@name="isHidden"
|
|
435
|
+
@renderComponent={{component "cfb-code-editor" language="jexl"}}
|
|
436
|
+
/>
|
|
488
437
|
|
|
489
438
|
{{#if
|
|
490
439
|
(not
|
|
@@ -493,22 +442,18 @@
|
|
|
493
442
|
)
|
|
494
443
|
)
|
|
495
444
|
}}
|
|
496
|
-
<div class="uk-margin">
|
|
497
|
-
<f.input
|
|
498
|
-
@label={{t "caluma.form-builder.question.isRequired"}}
|
|
499
|
-
@name="isRequired"
|
|
500
|
-
@renderComponent={{component "cfb-code-editor" language="jexl"}}
|
|
501
|
-
/>
|
|
502
|
-
</div>
|
|
503
|
-
{{/if}}
|
|
504
|
-
|
|
505
|
-
<div class="uk-margin">
|
|
506
445
|
<f.input
|
|
507
|
-
@label={{t "caluma.form-builder.question.
|
|
508
|
-
@name="
|
|
509
|
-
@renderComponent={{component "cfb-code-editor" language="
|
|
446
|
+
@label={{t "caluma.form-builder.question.isRequired"}}
|
|
447
|
+
@name="isRequired"
|
|
448
|
+
@renderComponent={{component "cfb-code-editor" language="jexl"}}
|
|
510
449
|
/>
|
|
511
|
-
|
|
450
|
+
{{/if}}
|
|
451
|
+
|
|
452
|
+
<f.input
|
|
453
|
+
@label={{t "caluma.form-builder.question.meta"}}
|
|
454
|
+
@name="meta"
|
|
455
|
+
@renderComponent={{component "cfb-code-editor" language="json"}}
|
|
456
|
+
/>
|
|
512
457
|
{{/if}}
|
|
513
458
|
|
|
514
459
|
<div class="uk-text-right">
|
|
@@ -204,6 +204,13 @@ export default class CfbFormEditorQuestion extends Component {
|
|
|
204
204
|
: "";
|
|
205
205
|
}
|
|
206
206
|
|
|
207
|
+
get columnsToDisplayOptions() {
|
|
208
|
+
return this.model.rowForm?.questions.edges.map((edge) => ({
|
|
209
|
+
key: edge.node.slug,
|
|
210
|
+
label: edge.node.label,
|
|
211
|
+
}));
|
|
212
|
+
}
|
|
213
|
+
|
|
207
214
|
getInput(changeset) {
|
|
208
215
|
const slug =
|
|
209
216
|
((!this.args.slug && this.prefix) || "") + changeset.get("slug");
|
|
@@ -496,19 +503,6 @@ export default class CfbFormEditorQuestion extends Component {
|
|
|
496
503
|
this.validateSlug.perform(this.prefix + value, changeset);
|
|
497
504
|
}
|
|
498
505
|
|
|
499
|
-
/*
|
|
500
|
-
* This function adds the selected slugs to the columns to display
|
|
501
|
-
* list if it isnt present, otherwise it will remove the slug.
|
|
502
|
-
*/
|
|
503
|
-
@action
|
|
504
|
-
toggleColumnToDisplay(value, changeset) {
|
|
505
|
-
const displayed = new Set(changeset.get("meta.columnsToDisplay"));
|
|
506
|
-
|
|
507
|
-
displayed.delete(value) || displayed.add(value);
|
|
508
|
-
|
|
509
|
-
changeset.set("meta.columnsToDisplay", [...displayed]);
|
|
510
|
-
}
|
|
511
|
-
|
|
512
506
|
@action
|
|
513
507
|
updateSubForm(value, changeset) {
|
|
514
508
|
changeset.set("subForm.slug", value.slug);
|
|
@@ -1,47 +1,26 @@
|
|
|
1
|
-
import
|
|
2
|
-
import buildMessage from "ember-changeset-validations/utils/validation-errors";
|
|
1
|
+
import { validateNumber } from "ember-changeset-validations/validators";
|
|
3
2
|
|
|
4
|
-
export default function validateGtLt(options = {
|
|
3
|
+
export default function validateGtLt(options = {}) {
|
|
5
4
|
return (key, newValue, oldValue, changes, content) => {
|
|
6
|
-
newValue = Number(newValue);
|
|
7
|
-
|
|
8
|
-
if (!newValue) {
|
|
9
|
-
return true;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
const messages = getMessages();
|
|
13
5
|
const data = { ...content, ...changes };
|
|
14
6
|
|
|
15
|
-
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
return dependentValue
|
|
19
|
-
? Number(newValue) > Number(dependentValue) ||
|
|
20
|
-
buildMessage(key, {
|
|
21
|
-
type: "greaterThan",
|
|
22
|
-
value: newValue,
|
|
23
|
-
context: {
|
|
24
|
-
gt: messages.getDescriptionFor(options.gt),
|
|
25
|
-
},
|
|
26
|
-
})
|
|
27
|
-
: true;
|
|
28
|
-
}
|
|
7
|
+
const parsedOptions = Object.entries(options).reduce((parsed, [k, v]) => {
|
|
8
|
+
const value =
|
|
9
|
+
/^(g|l)t(e)?$/.test(k) && typeof v === "string" ? data[v] : v;
|
|
29
10
|
|
|
30
|
-
|
|
31
|
-
|
|
11
|
+
if (value) {
|
|
12
|
+
return { ...parsed, [k]: value };
|
|
13
|
+
}
|
|
32
14
|
|
|
33
|
-
return
|
|
34
|
-
|
|
35
|
-
buildMessage(key, {
|
|
36
|
-
type: "lessThan",
|
|
37
|
-
value: newValue,
|
|
38
|
-
context: {
|
|
39
|
-
lt: messages.getDescriptionFor(options.lt),
|
|
40
|
-
},
|
|
41
|
-
})
|
|
42
|
-
: true;
|
|
43
|
-
}
|
|
15
|
+
return parsed;
|
|
16
|
+
}, {});
|
|
44
17
|
|
|
45
|
-
return
|
|
18
|
+
return validateNumber(parsedOptions)(
|
|
19
|
+
key,
|
|
20
|
+
newValue,
|
|
21
|
+
oldValue,
|
|
22
|
+
changes,
|
|
23
|
+
content
|
|
24
|
+
);
|
|
46
25
|
};
|
|
47
26
|
}
|
package/config/environment.js
CHANGED
package/index.js
CHANGED
|
@@ -9,4 +9,12 @@ module.exports = buildEngine({
|
|
|
9
9
|
lazyLoading: {
|
|
10
10
|
enabled: false,
|
|
11
11
|
},
|
|
12
|
+
|
|
13
|
+
included(...args) {
|
|
14
|
+
const app = this._findHost(this);
|
|
15
|
+
|
|
16
|
+
app.options["ember-validated-form"] = { theme: "uikit" };
|
|
17
|
+
|
|
18
|
+
this._super.included.apply(this, args);
|
|
19
|
+
},
|
|
12
20
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@projectcaluma/ember-form-builder",
|
|
3
|
-
"version": "11.0.0-beta.
|
|
3
|
+
"version": "11.0.0-beta.29",
|
|
4
4
|
"description": "Ember engine for building Caluma forms.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon",
|
|
@@ -18,13 +18,14 @@
|
|
|
18
18
|
"ember-engines": ">= 0.8"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
+
"@ember/legacy-built-in-components": "^0.4.1",
|
|
21
22
|
"@ember/render-modifiers": "^2.0.4",
|
|
22
23
|
"@ember/string": "^3.0.0",
|
|
23
24
|
"@embroider/macros": "^1.8.3",
|
|
24
25
|
"@glimmer/component": "^1.1.2",
|
|
25
26
|
"@glimmer/tracking": "^1.1.2",
|
|
26
|
-
"@projectcaluma/ember-core": "^11.0.0-beta.
|
|
27
|
-
"@projectcaluma/ember-form": "^11.0.0-beta.
|
|
27
|
+
"@projectcaluma/ember-core": "^11.0.0-beta.29",
|
|
28
|
+
"@projectcaluma/ember-form": "^11.0.0-beta.29",
|
|
28
29
|
"codejar": "^3.6.0",
|
|
29
30
|
"ember-apollo-client": "~4.0.2",
|
|
30
31
|
"ember-auto-import": "^2.4.2",
|
|
@@ -40,10 +41,10 @@
|
|
|
40
41
|
"ember-math-helpers": "^2.18.2",
|
|
41
42
|
"ember-pikaday": "^4.0.0",
|
|
42
43
|
"ember-power-select": "^6.0.1",
|
|
43
|
-
"ember-resources": "^5.
|
|
44
|
+
"ember-resources": "^5.4.0",
|
|
44
45
|
"ember-test-selectors": "^6.0.0",
|
|
45
|
-
"ember-uikit": "^6.
|
|
46
|
-
"ember-validated-form": "^
|
|
46
|
+
"ember-uikit": "^6.1.0",
|
|
47
|
+
"ember-validated-form": "^6.1.2",
|
|
47
48
|
"graphql": "^15.8.0",
|
|
48
49
|
"graphql-tag": "^2.12.6",
|
|
49
50
|
"highlight.js": "^11.6.0",
|
|
@@ -58,28 +59,26 @@
|
|
|
58
59
|
],
|
|
59
60
|
"devDependencies": {
|
|
60
61
|
"@ember/optional-features": "2.0.0",
|
|
61
|
-
"@ember/test-helpers": "2.
|
|
62
|
+
"@ember/test-helpers": "2.7.0",
|
|
62
63
|
"@embroider/test-setup": "1.8.3",
|
|
63
64
|
"@faker-js/faker": "7.5.0",
|
|
64
|
-
"@projectcaluma/ember-testing": "11.0.0-beta.
|
|
65
|
+
"@projectcaluma/ember-testing": "11.0.0-beta.29",
|
|
65
66
|
"broccoli-asset-rev": "3.0.0",
|
|
66
67
|
"ember-autoresize-modifier": "^0.5.0",
|
|
67
|
-
"ember-cli": "
|
|
68
|
+
"ember-cli": "4.7.0",
|
|
68
69
|
"ember-cli-code-coverage": "1.0.3",
|
|
69
70
|
"ember-cli-dependency-checker": "3.3.1",
|
|
70
71
|
"ember-cli-inject-live-reload": "2.1.0",
|
|
71
72
|
"ember-cli-mirage": "3.0.0-alpha.3",
|
|
72
73
|
"ember-cli-sri": "2.1.1",
|
|
73
74
|
"ember-cli-terser": "4.0.2",
|
|
74
|
-
"ember-data": "
|
|
75
|
+
"ember-data": "4.7.1",
|
|
75
76
|
"ember-disable-prototype-extensions": "1.1.3",
|
|
76
77
|
"ember-engines": "0.8.23",
|
|
77
|
-
"ember-export-application-global": "2.0.1",
|
|
78
78
|
"ember-load-initializers": "2.1.2",
|
|
79
|
-
"ember-maybe-import-regenerator": "1.0.0",
|
|
80
79
|
"ember-qunit": "5.1.5",
|
|
81
80
|
"ember-resolver": "8.0.3",
|
|
82
|
-
"ember-source": "
|
|
81
|
+
"ember-source": "4.7.0",
|
|
83
82
|
"ember-source-channel-url": "3.0.0",
|
|
84
83
|
"ember-try": "2.0.0",
|
|
85
84
|
"loader.js": "4.7.0",
|
|
@@ -90,12 +89,15 @@
|
|
|
90
89
|
"webpack": "5.74.0"
|
|
91
90
|
},
|
|
92
91
|
"engines": {
|
|
93
|
-
"node": "
|
|
92
|
+
"node": "14.* || >= 16"
|
|
94
93
|
},
|
|
95
94
|
"ember": {
|
|
96
95
|
"edition": "octane"
|
|
97
96
|
},
|
|
98
97
|
"ember-addon": {
|
|
99
|
-
"configPath": "tests/dummy/config"
|
|
98
|
+
"configPath": "tests/dummy/config",
|
|
99
|
+
"before": [
|
|
100
|
+
"ember-validated-form"
|
|
101
|
+
]
|
|
100
102
|
}
|
|
101
103
|
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<label
|
|
2
|
-
class="uk-form-label uk-flex uk-flex-between"
|
|
3
|
-
for={{@inputId}}
|
|
4
|
-
...attributes
|
|
5
|
-
>
|
|
6
|
-
{{yield}}{{@label}}
|
|
7
|
-
{{#unless @required}}
|
|
8
|
-
<span class="uk-text-muted uk-text-lowercase">
|
|
9
|
-
({{t "caluma.form-builder.global.optional"}})
|
|
10
|
-
</span>
|
|
11
|
-
{{/unless}}
|
|
12
|
-
</label>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "@projectcaluma/ember-form-builder/components/cfb-float-input";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "@projectcaluma/ember-form-builder/components/cfb-label";
|