ember-validated-form 7.0.1 → 8.0.1

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.
Files changed (36) hide show
  1. package/.husky/commit-msg +2 -7
  2. package/.husky/pre-commit +0 -6
  3. package/CHANGELOG.md +36 -0
  4. package/README.md +1 -1
  5. package/addon/-private/features.js +7 -0
  6. package/addon/components/validated-button/button.hbs +5 -5
  7. package/addon/components/validated-button.hbs +19 -19
  8. package/addon/components/validated-button.js +5 -10
  9. package/addon/components/validated-form.hbs +1 -0
  10. package/addon/components/validated-form.js +11 -14
  11. package/addon/components/validated-input/error.hbs +2 -5
  12. package/addon/components/validated-input/hint.hbs +3 -5
  13. package/addon/components/validated-input/label.hbs +1 -1
  14. package/addon/components/validated-input/render/wrapper.hbs +1 -1
  15. package/addon/components/validated-input/render.hbs +149 -124
  16. package/addon/components/validated-input/types/checkbox-group.hbs +2 -2
  17. package/addon/components/validated-input/types/checkbox.hbs +2 -2
  18. package/addon/components/validated-input/types/date.hbs +16 -0
  19. package/addon/components/validated-input/types/input.hbs +5 -5
  20. package/addon/components/validated-input/types/radio-group.hbs +2 -2
  21. package/addon/components/validated-input/types/select.hbs +6 -6
  22. package/addon/components/validated-input/types/textarea.hbs +5 -5
  23. package/addon/components/validated-input.hbs +88 -76
  24. package/addon/components/validated-input.js +0 -7
  25. package/addon/helpers/evf-theme.js +14 -0
  26. package/app/components/validated-input/types/date.js +1 -0
  27. package/app/helpers/evf-class-list.js +1 -0
  28. package/app/helpers/evf-theme.js +1 -0
  29. package/config/addon-docs.js +9 -0
  30. package/index.js +9 -61
  31. package/package.json +74 -63
  32. package/addon/components/validated-input/render.js +0 -13
  33. package/addon/passed-or-default.js +0 -16
  34. package/app/helpers/class-list.js +0 -1
  35. package/tsconfig.declarations.json +0 -10
  36. /package/addon/helpers/{class-list.js → evf-class-list.js} +0 -0
@@ -1,22 +1,22 @@
1
1
  <select
2
- class={{class-list
2
+ class={{evf-class-list
3
3
  (if
4
- (macroCondition (macroGetOwnConfig "isUikit"))
5
- (class-list
4
+ (evf-theme "uikit")
5
+ (evf-class-list
6
6
  "uk-select"
7
7
  (if @isValid "uk-form-success")
8
8
  (if @isInvalid "uk-form-danger")
9
9
  )
10
10
  )
11
11
  (if
12
- (macroCondition (macroGetOwnConfig "isBootstrap"))
13
- (class-list
12
+ (evf-theme "bootstrap")
13
+ (evf-class-list
14
14
  "form-control" (if @isValid "is-valid") (if @isInvalid "is-invalid")
15
15
  )
16
16
  )
17
17
  }}
18
18
  name={{@name}}
19
- id={{@inpudId}}
19
+ id={{@inputId}}
20
20
  disabled={{@disabled}}
21
21
  multiple={{@multiple}}
22
22
  {{on "change" this.onUpdate}}
@@ -1,16 +1,16 @@
1
1
  <textarea
2
- class={{class-list
2
+ class={{evf-class-list
3
3
  (if
4
- (macroCondition (macroGetOwnConfig "isUikit"))
5
- (class-list
4
+ (evf-theme "uikit")
5
+ (evf-class-list
6
6
  "uk-textarea"
7
7
  (if @isValid "uk-form-success")
8
8
  (if @isInvalid "uk-form-danger")
9
9
  )
10
10
  )
11
11
  (if
12
- (macroCondition (macroGetOwnConfig "isBootstrap"))
13
- (class-list
12
+ (evf-theme "bootstrap")
13
+ (evf-class-list
14
14
  "form-control" (if @isValid "is-valid") (if @isInvalid "is-invalid")
15
15
  )
16
16
  )
@@ -1,83 +1,95 @@
1
- {{#if (has-block)}}
2
- <this.labelComponent
3
- @label={{@label}}
4
- @required={{this.required}}
5
- @isValid={{this.isValid}}
6
- @isInvalid={{this.isInvalid}}
7
- @inputId={{this.inputId}}
8
- />
9
-
10
- {{yield
11
- (hash
12
- value=this._val
13
- update=this.update
14
- setDirty=this.setDirty
15
- model=@model
16
- name=@name
17
- inputId=this.inputId
18
- isValid=this.isValid
19
- isInvalid=this.isInvalid
1
+ {{#let
2
+ (component
3
+ (ensure-safe-component
4
+ (or @labelComponent (component "validated-input/label"))
20
5
  )
21
- }}
22
-
23
- {{#if @hint}}
24
- <this.hintComponent @hint={{@hint}} id={{this.hintId}} />
25
- {{/if}}
6
+ label=@label
7
+ required=this.required
8
+ isValid=this.isValid
9
+ isInvalid=this.isInvalid
10
+ inputId=this.inputId
11
+ )
12
+ (component
13
+ (ensure-safe-component
14
+ (or @errorComponent (component "validated-input/error"))
15
+ )
16
+ errors=this.errors
17
+ id=this.errorId
18
+ )
19
+ (component
20
+ (ensure-safe-component
21
+ (or @hintComponent (component "validated-input/hint"))
22
+ )
23
+ hint=@hint
24
+ id=this.hintId
25
+ )
26
+ as |LabelComponent ErrorComponent HintComponent|
27
+ }}
28
+ {{#if (has-block)}}
29
+ <LabelComponent />
26
30
 
27
- {{#if (and this.showValidity this.errors)}}
28
- <this.errorComponent @errors={{this.errors}} id={{this.errorId}} />
29
- {{/if}}
30
- {{else}}
31
- <this.renderComponent
32
- @type={{this.type}}
33
- @value={{this._val}}
34
- @inputId={{this.inputId}}
35
- @options={{@options}}
36
- @name={{@name}}
37
- @inputName={{@inputName}}
38
- @disabled={{@disabled}}
39
- @autofocus={{@autofocus}}
40
- @autocomplete={{@autocomplete}}
41
- @rows={{@rows}}
42
- @cols={{@cols}}
43
- @model={{@model}}
44
- @isValid={{this.isValid}}
45
- @isInvalid={{this.isInvalid}}
46
- @placeholder={{@placeholder}}
47
- @class={{@class}}
48
- @prompt={{@prompt}}
49
- @promptIsSelectable={{@promptIsSelectable}}
50
- @optionLabelPath={{@optionLabelPath}}
51
- @optionValuePath={{@optionValuePath}}
52
- @optionTargetPath={{@optionTargetPath}}
53
- @multiple={{@multiple}}
54
- @update={{this.update}}
55
- @setDirty={{this.setDirty}}
56
- @submitted={{@submitted}}
57
- @labelComponent={{component
58
- (ensure-safe-component this.labelComponent)
59
- label=@label
60
- required=@required
61
- isValid=this.isValid
62
- isInvalid=this.isInvalid
63
- inputId=this.inputId
64
- }}
65
- @hintComponent={{if
66
- @hint
67
- (component
68
- (ensure-safe-component this.hintComponent) hint=@hint id=this.hintId
31
+ {{yield
32
+ (hash
33
+ value=this._val
34
+ update=this.update
35
+ setDirty=this.setDirty
36
+ model=@model
37
+ name=@name
38
+ inputId=this.inputId
39
+ isValid=this.isValid
40
+ isInvalid=this.isInvalid
69
41
  )
70
42
  }}
71
- @errorComponent={{if
72
- (and this.showValidity this.errors)
43
+
44
+ {{#if @hint}}
45
+ <HintComponent />
46
+ {{/if}}
47
+
48
+ {{#if (and this.showValidity this.errors)}}
49
+ <ErrorComponent />
50
+ {{/if}}
51
+ {{else}}
52
+ {{#let
73
53
  (component
74
- (ensure-safe-component this.errorComponent)
75
- errors=this.errors
76
- id=this.errorId
54
+ (ensure-safe-component
55
+ (or @renderComponent (component "validated-input/render"))
56
+ )
57
+ type=this.type
58
+ value=this._val
59
+ inputId=this.inputId
60
+ options=@options
61
+ name=@name
62
+ inputName=@inputName
63
+ disabled=@disabled
64
+ autofocus=@autofocus
65
+ autocomplete=@autocomplete
66
+ rows=@rows
67
+ cols=@cols
68
+ model=@model
69
+ isValid=this.isValid
70
+ isInvalid=this.isInvalid
71
+ placeholder=@placeholder
72
+ class=@class
73
+ prompt=@prompt
74
+ promptIsSelectable=@promptIsSelectable
75
+ optionLabelPath=@optionLabelPath
76
+ optionValuePath=@optionValuePath
77
+ optionTargetPath=@optionTargetPath
78
+ multiple=@multiple
79
+ update=this.update
80
+ setDirty=this.setDirty
81
+ submitted=@submitted
82
+ labelComponent=LabelComponent
83
+ hintComponent=(if @hint HintComponent)
84
+ errorComponent=(if (and this.showValidity this.errors) ErrorComponent)
77
85
  )
86
+ as |RenderComponent|
78
87
  }}
79
- aria-invalid={{if this.isInvalid "true"}}
80
- aria-describedby={{if this.isInvalid this.errorId this.hintId}}
81
- ...attributes
82
- />
83
- {{/if}}
88
+ <RenderComponent
89
+ aria-invalid={{if this.isInvalid "true"}}
90
+ aria-describedby={{if this.isInvalid this.errorId this.hintId}}
91
+ ...attributes
92
+ />
93
+ {{/let}}
94
+ {{/if}}
95
+ {{/let}}
@@ -4,8 +4,6 @@ import { isEmpty } from "@ember/utils";
4
4
  import Component from "@glimmer/component";
5
5
  import { tracked } from "@glimmer/tracking";
6
6
 
7
- import passedOrDefault from "ember-validated-form/passed-or-default";
8
-
9
7
  /**
10
8
  * This component wraps form inputs.
11
9
  *
@@ -35,11 +33,6 @@ export default class ValidatedInputComponent extends Component {
35
33
  @tracked type;
36
34
  @tracked validateBeforeSubmit;
37
35
 
38
- @passedOrDefault("error") errorComponent;
39
- @passedOrDefault("hint") hintComponent;
40
- @passedOrDefault("label") labelComponent;
41
- @passedOrDefault("render") renderComponent;
42
-
43
36
  constructor(...args) {
44
37
  super(...args);
45
38
 
@@ -0,0 +1,14 @@
1
+ import { getOwner } from "@ember/application";
2
+ import Helper from "@ember/component/helper";
3
+
4
+ export default class EVFThemeHelper extends Helper {
5
+ get currentTheme() {
6
+ return getOwner(this).resolveRegistration("config:environment")[
7
+ "ember-validated-form"
8
+ ].theme;
9
+ }
10
+
11
+ compute([expectedTheme]) {
12
+ return this.currentTheme === expectedTheme;
13
+ }
14
+ }
@@ -0,0 +1 @@
1
+ export { default } from "ember-validated-form/components/validated-input/types/date";
@@ -0,0 +1 @@
1
+ export { default } from "ember-validated-form/helpers/evf-class-list";
@@ -0,0 +1 @@
1
+ export { default } from "ember-validated-form/helpers/evf-theme";
@@ -0,0 +1,9 @@
1
+ /* eslint-env node */
2
+ "use strict";
3
+
4
+ const AddonDocsConfig = require("ember-cli-addon-docs/lib/config");
5
+
6
+ module.exports = class extends AddonDocsConfig {
7
+ // See https://ember-learn.github.io/ember-cli-addon-docs/latest/docs/deploying
8
+ // for details on configuration you can override here.
9
+ };
package/index.js CHANGED
@@ -3,69 +3,17 @@
3
3
  module.exports = {
4
4
  name: require("./package").name,
5
5
 
6
- included(...args) {
7
- this._super.included.apply(this, ...args);
8
-
6
+ config() {
9
7
  const app = this._findHost(this);
10
8
 
11
- const {
12
- theme = null,
13
- scrollErrorIntoView = false,
14
- defaults = {},
15
- } = app.options["ember-validated-form"] ?? {};
16
-
17
- // Theming options
18
- this.options["@embroider/macros"].setOwnConfig.isDefault = ![
19
- "uikit",
20
- "bootstrap",
21
- ].includes(theme);
22
- this.options["@embroider/macros"].setOwnConfig.isUikit = theme === "uikit";
23
- this.options["@embroider/macros"].setOwnConfig.isBootstrap =
24
- theme === "bootstrap";
25
-
26
- // Features
27
- this.options["@embroider/macros"].setOwnConfig.scrollErrorIntoView =
28
- scrollErrorIntoView;
29
-
30
- // Component defaults
31
- this.options["@embroider/macros"].setOwnConfig.error =
32
- defaults.error ?? "ember-validated-form/components/validated-input/error";
33
- this.options["@embroider/macros"].setOwnConfig.hint =
34
- defaults.hint ?? "ember-validated-form/components/validated-input/hint";
35
- this.options["@embroider/macros"].setOwnConfig.label =
36
- defaults.label ?? "ember-validated-form/components/validated-input/label";
37
- this.options["@embroider/macros"].setOwnConfig.render =
38
- defaults.render ??
39
- "ember-validated-form/components/validated-input/render";
40
- this.options["@embroider/macros"].setOwnConfig.button =
41
- defaults.button ??
42
- "ember-validated-form/components/validated-button/button";
43
- this.options["@embroider/macros"].setOwnConfig["types/checkbox-group"] =
44
- defaults["types/checkbox-group"] ??
45
- "ember-validated-form/components/validated-input/types/checkbox-group";
46
- this.options["@embroider/macros"].setOwnConfig["types/checkbox"] =
47
- defaults["types/checkbox"] ??
48
- "ember-validated-form/components/validated-input/types/checkbox";
49
- this.options["@embroider/macros"].setOwnConfig["types/input"] =
50
- defaults["types/input"] ??
51
- "ember-validated-form/components/validated-input/types/input";
52
- this.options["@embroider/macros"].setOwnConfig["types/radio-group"] =
53
- defaults["types/radio-group"] ??
54
- "ember-validated-form/components/validated-input/types/radio-group";
55
- this.options["@embroider/macros"].setOwnConfig["types/select"] =
56
- defaults["types/select"] ??
57
- "ember-validated-form/components/validated-input/types/select";
58
- this.options["@embroider/macros"].setOwnConfig["types/textarea"] =
59
- defaults["types/textarea"] ??
60
- "ember-validated-form/components/validated-input/types/textarea";
61
- this.options["@embroider/macros"].setOwnConfig["types/date"] =
62
- defaults["types/date"] ??
63
- "ember-validated-form/components/validated-input/types/input";
64
- },
9
+ const appConfig = app.options["ember-validated-form"] ?? {};
65
10
 
66
- options: {
67
- "@embroider/macros": {
68
- setOwnConfig: {},
69
- },
11
+ return {
12
+ "ember-validated-form": {
13
+ theme: "default",
14
+ scrollErrorIntoView: false,
15
+ ...appConfig,
16
+ },
17
+ };
70
18
  },
71
19
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember-validated-form",
3
- "version": "7.0.1",
3
+ "version": "8.0.1",
4
4
  "description": "Easily create forms with client-side validations",
5
5
  "keywords": [
6
6
  "ember-addon",
@@ -14,100 +14,111 @@
14
14
  "directories": {
15
15
  "test": "tests"
16
16
  },
17
- "homepage": "https://adfinis.github.io/ember-validated-form",
17
+ "homepage": "https://docs.adfinis.com/ember-validated-form",
18
18
  "bugs": {
19
19
  "url": "https://github.com/adfinis/ember-validated-form/issues"
20
20
  },
21
21
  "scripts": {
22
22
  "build": "ember build --environment=production",
23
- "lint": "concurrently \"npm:lint:*(!fix)\" --names \"lint:\"",
23
+ "format": "prettier . --cache --write",
24
+ "lint": "concurrently \"pnpm:lint:*(!fix)\" --names \"lint:\" --prefixColors auto",
24
25
  "lint:css": "stylelint \"**/*.css\"",
25
- "lint:css:fix": "concurrently \"npm:lint:css -- --fix\"",
26
- "lint:fix": "concurrently \"npm:lint:*:fix\" --names \"fix:\"",
26
+ "lint:css:fix": "concurrently \"pnpm:lint:css -- --fix\"",
27
+ "lint:fix": "concurrently \"pnpm:lint:*:fix\" --names \"fix:\" --prefixColors auto && pnpm format",
28
+ "lint:format": "prettier . --cache --check",
27
29
  "lint:hbs": "ember-template-lint .",
28
30
  "lint:hbs:fix": "ember-template-lint . --fix",
29
31
  "lint:js": "eslint . --cache",
30
32
  "lint:js:fix": "eslint . --fix",
31
33
  "start": "ember serve",
32
- "test": "concurrently \"npm:lint\" \"npm:test:*\" --names \"lint,test:\"",
34
+ "test": "concurrently \"pnpm:lint\" \"pnpm:test:*\" --names \"lint,test:\" --prefixColors auto",
33
35
  "test:ember": "ember test",
34
36
  "test:ember-compatibility": "ember try:each",
35
- "prepare": "husky install"
37
+ "prepare": "husky"
36
38
  },
37
39
  "dependencies": {
38
- "@babel/core": "^7.24.0",
39
- "@embroider/macros": "^1.15.0",
40
- "@embroider/util": "^1.13.0",
41
- "@glimmer/component": "^1.1.2",
42
- "@glimmer/tracking": "^1.1.2",
43
- "ember-changeset": "^4.1.2",
44
- "ember-changeset-validations": "^4.1.1",
40
+ "@babel/core": "^7.24.6",
41
+ "ember-auto-import": "^2.11.0",
45
42
  "ember-cli-babel": "^8.2.0",
46
- "ember-cli-htmlbars": "^6.3.0",
47
- "ember-truth-helpers": "^3.1.0"
43
+ "ember-cli-htmlbars": "^6.3.0 || ^7.0.0",
44
+ "ember-template-imports": "^4.3.0"
48
45
  },
49
46
  "devDependencies": {
50
- "@adfinis/eslint-config": "2.1.1",
51
- "@adfinis/semantic-release-config": "4.1.0",
52
- "@babel/eslint-parser": "7.23.10",
53
- "@babel/plugin-proposal-decorators": "7.24.0",
54
- "@ember/optional-features": "2.1.0",
55
- "@ember/string": "3.1.1",
56
- "@ember/test-helpers": "3.3.0",
57
- "@embroider/test-setup": "3.0.3",
58
- "@fortawesome/ember-fontawesome": "2.0.0",
59
- "@fortawesome/fontawesome-svg-core": "6.5.1",
60
- "@fortawesome/free-solid-svg-icons": "6.5.1",
47
+ "@adfinis/eslint-config": "3.0.2",
48
+ "@adfinis/semantic-release-config": "6.0.0",
49
+ "@babel/eslint-parser": "7.28.6",
50
+ "@babel/plugin-proposal-decorators": "7.28.6",
51
+ "@commitlint/cli": "20.3.1",
52
+ "@commitlint/config-conventional": "20.3.1",
53
+ "@ember/optional-features": "2.3.0",
54
+ "@ember/string": "4.0.1",
55
+ "@ember/test-helpers": "5.4.1",
56
+ "@embroider/macros": "1.19.6",
57
+ "@embroider/test-setup": "4.0.0",
58
+ "@eslint/js": "9.39.2",
59
+ "@fortawesome/ember-fontawesome": "3.1.0",
60
+ "@fortawesome/fontawesome-svg-core": "7.1.0",
61
+ "@fortawesome/free-solid-svg-icons": "7.1.0",
62
+ "@glimmer/component": "1.1.2",
63
+ "@glimmer/tracking": "1.1.2",
61
64
  "broccoli-asset-rev": "3.0.0",
62
- "concurrently": "8.2.2",
63
- "ember-auto-import": "2.7.2",
64
- "ember-cli": "5.7.0",
65
- "ember-cli-addon-docs": "7.0.1",
65
+ "concurrently": "9.2.1",
66
+ "ember-changeset": "5.0.0",
67
+ "ember-changeset-validations": "5.0.0",
68
+ "ember-cli": "6.10.0",
69
+ "ember-cli-addon-docs": "10.1.0",
66
70
  "ember-cli-clean-css": "3.0.0",
67
- "ember-cli-dependency-checker": "3.3.2",
71
+ "ember-cli-dependency-checker": "3.3.3",
68
72
  "ember-cli-deploy": "2.0.0",
69
73
  "ember-cli-deploy-build": "3.0.0",
70
74
  "ember-cli-deploy-git": "1.3.4",
71
75
  "ember-cli-deploy-git-ci": "1.0.1",
76
+ "ember-cli-deprecation-workflow": "4.0.0",
72
77
  "ember-cli-inject-live-reload": "2.1.0",
73
78
  "ember-cli-sri": "2.1.1",
74
79
  "ember-cli-terser": "4.0.2",
75
80
  "ember-cli-test-loader": "3.1.0",
76
- "ember-concurrency": "4.0.1",
77
- "ember-data": "5.3.3",
78
- "ember-flatpickr": "7.1.0",
79
- "ember-load-initializers": "2.1.2",
80
- "ember-qunit": "8.0.2",
81
- "ember-resolver": "11.0.1",
82
- "ember-source": "5.7.0",
81
+ "ember-concurrency": "5.1.0",
82
+ "ember-data": "5.8.1",
83
+ "ember-flatpickr": "9.0.2",
84
+ "ember-load-initializers": "3.0.1",
85
+ "ember-qunit": "9.0.4",
86
+ "ember-resolver": "13.1.1",
87
+ "ember-source": "6.10.0",
83
88
  "ember-source-channel-url": "3.0.0",
84
- "ember-template-lint": "5.13.0",
85
- "ember-template-lint-plugin-prettier": "5.0.0",
86
- "ember-try": "3.0.0",
87
- "eslint": "8.57.0",
88
- "eslint-config-prettier": "9.1.0",
89
- "eslint-plugin-ember": "12.0.2",
90
- "eslint-plugin-import": "2.29.1",
91
- "eslint-plugin-n": "16.6.2",
92
- "eslint-plugin-prettier": "5.1.3",
93
- "eslint-plugin-qunit": "8.1.1",
89
+ "ember-template-lint": "7.9.3",
90
+ "ember-truth-helpers": "5.0.0",
91
+ "ember-try": "4.0.0",
92
+ "eslint": "9.39.2",
93
+ "eslint-config-prettier": "10.1.8",
94
+ "eslint-plugin-ember": "12.7.5",
95
+ "eslint-plugin-import": "2.32.0",
96
+ "eslint-plugin-n": "17.23.2",
97
+ "eslint-plugin-prettier": "5.5.5",
98
+ "eslint-plugin-qunit": "8.2.5",
94
99
  "flatpickr": "4.6.13",
95
- "husky": "9.0.11",
96
- "lint-staged": "15.2.2",
100
+ "globals": "17.1.0",
101
+ "husky": "9.1.7",
102
+ "lint-staged": "16.2.7",
97
103
  "loader.js": "4.7.0",
98
- "prettier": "3.2.5",
99
- "qunit": "2.20.1",
100
- "qunit-dom": "3.0.0",
101
- "semantic-release": "23.0.4",
102
- "stylelint": "16.2.1",
103
- "stylelint-config-standard": "36.0.0",
104
- "stylelint-prettier": "5.0.0",
105
- "webpack": "5.90.3"
104
+ "prettier": "3.8.1",
105
+ "prettier-plugin-ember-template-tag": "2.1.2",
106
+ "qunit": "2.25.0",
107
+ "qunit-dom": "3.5.0",
108
+ "semantic-release": "25.0.3",
109
+ "stylelint": "17.0.0",
110
+ "stylelint-config-standard": "40.0.0",
111
+ "stylelint-prettier": "5.0.3",
112
+ "webpack": "5.104.1"
106
113
  },
107
114
  "peerDependencies": {
108
- "ember-source": ">= 4.0.0"
115
+ "@embroider/util": "^1.13.0",
116
+ "ember-changeset": "^4.1.2 || ^5.0.0",
117
+ "ember-changeset-validations": "^4.1.1 || ^5.0.0",
118
+ "ember-source": ">= 4.0.0",
119
+ "ember-truth-helpers": "^3.1.0 || ^4.0.0 || ^5.0.0"
109
120
  },
110
- "packageManager": "pnpm@8.11.0",
121
+ "packageManager": "pnpm@10.28.1",
111
122
  "pnpm": {
112
123
  "peerDependencyRules": {
113
124
  "allowedVersions": {
@@ -116,14 +127,14 @@
116
127
  }
117
128
  },
118
129
  "engines": {
119
- "node": ">= 18"
130
+ "node": ">= 20.19"
120
131
  },
121
132
  "ember": {
122
133
  "edition": "octane"
123
134
  },
124
135
  "ember-addon": {
125
136
  "configPath": "tests/dummy/config",
126
- "demoURL": "https://adfinis.github.io/ember-validated-form"
137
+ "demoURL": "https://docs.adfinis.com/ember-validated-form"
127
138
  },
128
139
  "release": {
129
140
  "extends": "@adfinis/semantic-release-config"
@@ -1,13 +0,0 @@
1
- import Component from "@glimmer/component";
2
-
3
- import passedOrDefault from "ember-validated-form/passed-or-default";
4
-
5
- export default class RenderComponent extends Component {
6
- @passedOrDefault("types/checkbox-group") checkboxGroupComponent;
7
- @passedOrDefault("types/checkbox") checkboxComponent;
8
- @passedOrDefault("types/input") inputComponent;
9
- @passedOrDefault("types/radio-group") radioGroupComponent;
10
- @passedOrDefault("types/select") selectComponent;
11
- @passedOrDefault("types/textarea") textareaComponent;
12
- @passedOrDefault("types/date") dateComponent;
13
- }
@@ -1,16 +0,0 @@
1
- import { importSync, getOwnConfig } from "@embroider/macros";
2
- import { ensureSafeComponent } from "@embroider/util";
3
-
4
- export default function passedOrDefault(componentName) {
5
- return function (target, property) {
6
- return {
7
- get() {
8
- return ensureSafeComponent(
9
- this.args[property] ??
10
- importSync(getOwnConfig()[componentName]).default,
11
- this,
12
- );
13
- },
14
- };
15
- };
16
- }
@@ -1 +0,0 @@
1
- export { default } from "ember-validated-form/helpers/class-list";
@@ -1,10 +0,0 @@
1
- {
2
- "extends": "./tsconfig.json",
3
- "compilerOptions": {
4
- "declarationDir": "declarations",
5
- "emitDeclarationOnly": true,
6
- "noEmit": false,
7
- "rootDir": "."
8
- },
9
- "include": ["addon", "addon-test-support"]
10
- }