@ember-formwright/layouts 0.0.0-stage → 1.3.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/CHANGELOG.md +20 -0
- package/LICENSE.md +9 -0
- package/README.md +43 -2
- package/addon-main.cjs +4 -0
- package/declarations/index.d.ts +29 -0
- package/declarations/index.d.ts.map +1 -0
- package/dist/index.js +34 -0
- package/dist/index.js.map +1 -0
- package/dist/layouts.css +123 -0
- package/package.json +84 -3
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# @ember-formwright/layouts
|
|
2
|
+
|
|
3
|
+
## 1.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- aad9026: Pluggable field layouts. `@layout` on a `Form` (inherited by nested forms) or a `Field` takes
|
|
8
|
+
a registered name or a component; `registerLayout` and `setDefaultLayout` work like
|
|
9
|
+
`registerControl` and `setDefaultAdapter`. A layout receives pre-wired parts (`Label`, `Hint`,
|
|
10
|
+
`Control`, `Errors`, `Group`) and read-only field state, and places them inside the field's
|
|
11
|
+
`div.fw-field`. The default layout renders the same markup as before.
|
|
12
|
+
|
|
13
|
+
New package, `@ember-formwright/layouts`: `horizontal`, `compact` and `checkbox-after` layouts
|
|
14
|
+
with their CSS, and an `Actions` bar with `left` and `right` slots.
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies [aad9026]
|
|
19
|
+
- Updated dependencies [abc6560]
|
|
20
|
+
- @ember-formwright/ember@1.3.0
|
package/LICENSE.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2020
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,44 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @ember-formwright/layouts
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Field layouts for Formwright, and a button bar.
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
npm install @ember-formwright/ember @ember-formwright/layouts
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
// app/app.ts
|
|
11
|
+
import { registerLayouts } from '@ember-formwright/layouts'
|
|
12
|
+
import '@ember-formwright/ember/theme.css'
|
|
13
|
+
import '@ember-formwright/layouts/layouts.css'
|
|
14
|
+
|
|
15
|
+
registerLayouts() // @layout="horizontal", "compact" and "checkbox-after"
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
```gts
|
|
19
|
+
import { Actions } from '@ember-formwright/layouts'
|
|
20
|
+
|
|
21
|
+
<Form @model={{@member}} @layout="horizontal" as |f|>
|
|
22
|
+
<f.Field @for="name" @label="Name" />
|
|
23
|
+
<f.Field @for="agree" @control="checkbox" @label="I agree" @layout="checkbox-after" />
|
|
24
|
+
|
|
25
|
+
<Actions>
|
|
26
|
+
<:left><f.Submit>Save</f.Submit><f.Reset>Cancel</f.Reset></:left>
|
|
27
|
+
<:right><f.Button @onClick={{this.delete}}>Delete</f.Button></:right>
|
|
28
|
+
</Actions>
|
|
29
|
+
</Form>
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
| Export | |
|
|
33
|
+
| ----------------- | ------------------------------------------------------------------------------------ |
|
|
34
|
+
| `Horizontal` | `horizontal`: the label in a left column (`--fw-label-width`), the rest on the right |
|
|
35
|
+
| `Compact` | `compact`: label and control on one line; hint and errors wrap below |
|
|
36
|
+
| `CheckboxAfter` | `checkbox-after`: the control, then its label. Groups keep their legend first |
|
|
37
|
+
| `Actions` | A bar with `<:left>` and `<:right>` blocks for the form's buttons |
|
|
38
|
+
| `registerLayouts` | Registers the three layouts by name |
|
|
39
|
+
|
|
40
|
+
The components can also be passed directly: `@layout={{Horizontal}}`.
|
|
41
|
+
|
|
42
|
+
Layouts only change structure. A purely visual change, such as a label column, is plain CSS
|
|
43
|
+
on `.fw-field`. To write your own layout, see `FieldLayoutSignature` in
|
|
44
|
+
`@ember-formwright/ember` and the guide's Layouts page.
|
package/addon-main.cjs
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { TOC } from '@ember/component/template-only';
|
|
2
|
+
import { type FieldLayoutSignature } from '@ember-formwright/ember';
|
|
3
|
+
/** The label in a column on the left; control, hint and errors on the right. */
|
|
4
|
+
export declare const Horizontal: TOC<FieldLayoutSignature>;
|
|
5
|
+
/** Label and control on one line, for filter bars and settings rows; hint and errors below. */
|
|
6
|
+
export declare const Compact: TOC<FieldLayoutSignature>;
|
|
7
|
+
/**
|
|
8
|
+
* The control, then its label: the usual order for a single checkbox. A group keeps its
|
|
9
|
+
* legend first, as a fieldset needs.
|
|
10
|
+
*/
|
|
11
|
+
export declare const CheckboxAfter: TOC<FieldLayoutSignature>;
|
|
12
|
+
interface ActionsSignature {
|
|
13
|
+
Element: HTMLDivElement;
|
|
14
|
+
Blocks: {
|
|
15
|
+
/** Buttons on the start side, e.g. `<f.Submit>` and `<f.Reset>`. */
|
|
16
|
+
left: [];
|
|
17
|
+
/** Buttons on the end side, e.g. a destructive `<f.Button>`. */
|
|
18
|
+
right: [];
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
/** A bar for a form's buttons, with `left` and `right` slots. */
|
|
22
|
+
export declare const Actions: TOC<ActionsSignature>;
|
|
23
|
+
/**
|
|
24
|
+
* Makes `@layout="horizontal"`, `"compact"` and `"checkbox-after"` available to every form.
|
|
25
|
+
* Call once, e.g. in app.ts.
|
|
26
|
+
*/
|
|
27
|
+
export declare function registerLayouts(): void;
|
|
28
|
+
export {};
|
|
29
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.gts"],"names":[],"mappings":"AA+EA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gCAAgC,CAAA;AACzD,OAAO,EAAkB,KAAK,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AASnF,gFAAgF;AAChF,eAAO,MAAM,UAAU,EAAE,GAAG,CAAC,oBAAoB,CAmC/C,CAAA;AAEF,+FAA+F;AAC/F,eAAO,MAAM,OAAO,EAAE,GAAG,CAAC,oBAAoB,CA2B5C,CAAA;AAEF;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,GAAG,CAAC,oBAAoB,CA8ClD,CAAA;AAEF,UAAU,gBAAgB;IACxB,OAAO,EAAE,cAAc,CAAA;IACvB,MAAM,EAAE;QACN,oEAAoE;QACpE,IAAI,EAAE,EAAE,CAAA;QACR,gEAAgE;QAChE,KAAK,EAAE,EAAE,CAAA;KACV,CAAA;CACF;AAED,iEAAiE;AACjE,eAAO,MAAM,OAAO,EAAE,GAAG,CAAC,gBAAgB,CA6BxC,CAAA;AAEF;;;GAGG;AACH,wBAAgB,eAAe,IAAI,IAAI,CAItC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { registerLayout } from '@ember-formwright/ember';
|
|
2
|
+
import { precompileTemplate } from '@ember/template-compilation';
|
|
3
|
+
import { setComponentTemplate } from '@ember/component';
|
|
4
|
+
import templateOnly from '@ember/component/template-only';
|
|
5
|
+
|
|
6
|
+
const Horizontal = setComponentTemplate(precompileTemplate("<@parts.Group>\n <@parts.Label class=\"fw-horizontal-label\" />\n <div class=\"fw-horizontal-body\">\n <@parts.Control as |control|>{{yield control}}</@parts.Control>\n <@parts.Hint />\n <@parts.Errors />\n </div>\n</@parts.Group>", {
|
|
7
|
+
strictMode: true
|
|
8
|
+
}), templateOnly());
|
|
9
|
+
/** Label and control on one line, for filter bars and settings rows; hint and errors below. */
|
|
10
|
+
const Compact = setComponentTemplate(precompileTemplate("<@parts.Group>\n <@parts.Label />\n <@parts.Control as |control|>{{yield control}}</@parts.Control>\n <@parts.Hint />\n <@parts.Errors class=\"fw-compact-errors\" />\n</@parts.Group>", {
|
|
11
|
+
strictMode: true
|
|
12
|
+
}), templateOnly());
|
|
13
|
+
/**
|
|
14
|
+
* The control, then its label: the usual order for a single checkbox. A group keeps its
|
|
15
|
+
* legend first, as a fieldset needs.
|
|
16
|
+
*/
|
|
17
|
+
const CheckboxAfter = setComponentTemplate(precompileTemplate("{{#if @field.isGroup}}\n <@parts.Group>\n <@parts.Label />\n <@parts.Hint />\n <@parts.Control as |control|>{{yield control}}</@parts.Control>\n <@parts.Errors />\n </@parts.Group>\n{{else}}\n <@parts.Control as |control|>{{yield control}}</@parts.Control>\n <@parts.Label class=\"fw-checkbox-after-label\" />\n <@parts.Hint />\n <@parts.Errors />\n{{/if}}", {
|
|
18
|
+
strictMode: true
|
|
19
|
+
}), templateOnly());
|
|
20
|
+
/** A bar for a form's buttons, with `left` and `right` slots. */const Actions = setComponentTemplate(precompileTemplate("<div class=\"fw-actions\" ...attributes>\n <div class=\"fw-actions-left\">{{yield to=\"left\"}}</div>\n <div class=\"fw-actions-right\">{{yield to=\"right\"}}</div>\n</div>", {
|
|
21
|
+
strictMode: true
|
|
22
|
+
}), templateOnly());
|
|
23
|
+
/**
|
|
24
|
+
* Makes `@layout="horizontal"`, `"compact"` and `"checkbox-after"` available to every form.
|
|
25
|
+
* Call once, e.g. in app.ts.
|
|
26
|
+
*/
|
|
27
|
+
function registerLayouts() {
|
|
28
|
+
registerLayout('horizontal', Horizontal);
|
|
29
|
+
registerLayout('compact', Compact);
|
|
30
|
+
registerLayout('checkbox-after', CheckboxAfter);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { Actions, CheckboxAfter, Compact, Horizontal, registerLayouts };
|
|
34
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/index.gts"],"sourcesContent":["import type { TOC } from '@ember/component/template-only'\nimport { registerLayout, type FieldLayoutSignature } from '@ember-formwright/ember'\n\n/*\n * Each layout places the parts a field gives it (see FieldLayoutParts in the core). The parts\n * own their ids, aria-* and data-test-fw-* attributes, so a layout only decides structure.\n * A group control's <legend> stays the first child of its <fieldset>: `Label` is always the\n * first thing inside `Group`.\n */\n\n/** The label in a column on the left; control, hint and errors on the right. */\nexport const Horizontal: TOC<FieldLayoutSignature> = <template>\n <@parts.Group>\n <@parts.Label class=\"fw-horizontal-label\" />\n <div class=\"fw-horizontal-body\">\n <@parts.Control as |control|>{{yield control}}</@parts.Control>\n <@parts.Hint />\n <@parts.Errors />\n </div>\n </@parts.Group>\n</template>\n\n/** Label and control on one line, for filter bars and settings rows; hint and errors below. */\nexport const Compact: TOC<FieldLayoutSignature> = <template>\n <@parts.Group>\n <@parts.Label />\n <@parts.Control as |control|>{{yield control}}</@parts.Control>\n <@parts.Hint />\n <@parts.Errors class=\"fw-compact-errors\" />\n </@parts.Group>\n</template>\n\n/**\n * The control, then its label: the usual order for a single checkbox. A group keeps its\n * legend first, as a fieldset needs.\n */\nexport const CheckboxAfter: TOC<FieldLayoutSignature> = <template>\n {{#if @field.isGroup}}\n <@parts.Group>\n <@parts.Label />\n <@parts.Hint />\n <@parts.Control as |control|>{{yield control}}</@parts.Control>\n <@parts.Errors />\n </@parts.Group>\n {{else}}\n <@parts.Control as |control|>{{yield control}}</@parts.Control>\n <@parts.Label class=\"fw-checkbox-after-label\" />\n <@parts.Hint />\n <@parts.Errors />\n {{/if}}\n</template>\n\ninterface ActionsSignature {\n Element: HTMLDivElement\n Blocks: {\n /** Buttons on the start side, e.g. `<f.Submit>` and `<f.Reset>`. */\n left: []\n /** Buttons on the end side, e.g. a destructive `<f.Button>`. */\n right: []\n }\n}\n\n/** A bar for a form's buttons, with `left` and `right` slots. */\nexport const Actions: TOC<ActionsSignature> = <template>\n <div class=\"fw-actions\" ...attributes>\n <div class=\"fw-actions-left\">{{yield to=\"left\"}}</div>\n <div class=\"fw-actions-right\">{{yield to=\"right\"}}</div>\n </div>\n</template>\n\n/**\n * Makes `@layout=\"horizontal\"`, `\"compact\"` and `\"checkbox-after\"` available to every form.\n * Call once, e.g. in app.ts.\n */\nexport function registerLayouts(): void {\n registerLayout('horizontal', Horizontal)\n registerLayout('compact', Compact)\n registerLayout('checkbox-after', CheckboxAfter)\n}\n"],"names":["Horizontal","setComponentTemplate","precompileTemplate","strictMode","templateOnly","Compact","CheckboxAfter","Actions","registerLayouts","registerLayout"],"mappings":";;;;;MAWaA,UAAgB,GAAAC,oBAAA,CAAwBC,kBAAA,CAAA,oPAAA,EASrD;EAAAC,UAAA,EAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EAAA;AAEV;MACaC,OAAa,GAAAJ,oBAAA,CAAwBC,kBAAA,CAAA,4LAAA,EAOlD;EAAAC,UAAA,EAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EAAA;AAEV;;;AAGC;MACYE,aAAmB,GAAAL,oBAAA,CAAwBC,kBAAA,CAAA,wXAAA,EAcxD;EAAAC,UAAA,EAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EAAA;AAYV,iEACO,MAAMG,OAAa,GAAAN,oBAAA,CAAoBC,kBAAA,CAAA,gLAAA,EAK9C;EAAAC,UAAA,EAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EAAA;AAEV;;;;AAIO,SAASI,eAAAA,GAAuB;AACrCC,EAAAA,cAAA,CAAe,YAAA,EAAcT,UAAA,CAAA;AAC7BS,EAAAA,cAAA,CAAe,SAAA,EAAWJ,OAAA,CAAA;AAC1BI,EAAAA,cAAA,CAAe,gBAAA,EAAkBH,aAAA,CAAA;AACnC;;"}
|
package/dist/layouts.css
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Styles for @ember-formwright/layouts. Import after the core theme:
|
|
3
|
+
*
|
|
4
|
+
* import '@ember-formwright/ember/theme.css'
|
|
5
|
+
* import '@ember-formwright/layouts/layouts.css'
|
|
6
|
+
*
|
|
7
|
+
* Built on the theme's custom properties, plus:
|
|
8
|
+
* --fw-label-width the label column of `horizontal` (default 10rem)
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/* ---- horizontal ------------------------------------------------------------------------ */
|
|
12
|
+
|
|
13
|
+
.fw-field:has(> .fw-horizontal-body) {
|
|
14
|
+
grid-template-columns: var(--fw-label-width, 10rem) minmax(0, 1fr);
|
|
15
|
+
column-gap: calc(var(--fw-gap) * 3);
|
|
16
|
+
align-items: start;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.fw-field:has(> .fw-horizontal-body) > .fw-horizontal-label {
|
|
20
|
+
padding-block-start: 0.55rem;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* A legend can't be a grid item of its fieldset; float it into the label column instead. */
|
|
24
|
+
.fw-group:has(> .fw-horizontal-body) {
|
|
25
|
+
display: block;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.fw-group:has(> .fw-horizontal-body) > .fw-horizontal-label {
|
|
29
|
+
float: inline-start;
|
|
30
|
+
width: var(--fw-label-width, 10rem);
|
|
31
|
+
padding-block-start: 0;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.fw-group > .fw-horizontal-body {
|
|
35
|
+
margin-inline-start: calc(var(--fw-label-width, 10rem) + var(--fw-gap) * 3);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.fw-horizontal-body {
|
|
39
|
+
display: grid;
|
|
40
|
+
gap: var(--fw-gap);
|
|
41
|
+
min-width: 0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@media (max-width: 40rem) {
|
|
45
|
+
.fw-field:has(> .fw-horizontal-body) {
|
|
46
|
+
grid-template-columns: minmax(0, 1fr);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.fw-group:has(> .fw-horizontal-body) > .fw-horizontal-label {
|
|
50
|
+
float: none;
|
|
51
|
+
width: auto;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.fw-group > .fw-horizontal-body {
|
|
55
|
+
margin-inline-start: 0;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/* ---- compact --------------------------------------------------------------------------- */
|
|
60
|
+
|
|
61
|
+
.fw-field:has(> .fw-compact-errors),
|
|
62
|
+
.fw-group:has(> .fw-compact-errors) {
|
|
63
|
+
display: flex;
|
|
64
|
+
flex-wrap: wrap;
|
|
65
|
+
align-items: center;
|
|
66
|
+
column-gap: calc(var(--fw-gap) * 2);
|
|
67
|
+
row-gap: var(--fw-gap);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.fw-field:has(> .fw-compact-errors) > .fw-label {
|
|
71
|
+
white-space: nowrap;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.fw-field:has(> .fw-compact-errors) > .fw-control-area,
|
|
75
|
+
.fw-group:has(> .fw-compact-errors) > .fw-control-area {
|
|
76
|
+
flex: 1 1 10rem;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.fw-field:has(> .fw-compact-errors) > .fw-hint,
|
|
80
|
+
.fw-compact-errors {
|
|
81
|
+
flex-basis: 100%;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.fw-compact-errors:empty {
|
|
85
|
+
display: none;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/* ---- checkbox-after -------------------------------------------------------------------- */
|
|
89
|
+
|
|
90
|
+
.fw-field:has(> .fw-checkbox-after-label) {
|
|
91
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
92
|
+
align-items: center;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/* The core theme reorders a checkbox's label with CSS; here the markup is already in order. */
|
|
96
|
+
.fw-field:has(> .fw-checkbox-after-label) > .fw-label {
|
|
97
|
+
order: 0;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.fw-field:has(> .fw-checkbox-after-label) > .fw-hint,
|
|
101
|
+
.fw-field:has(> .fw-checkbox-after-label) > .fw-errors {
|
|
102
|
+
grid-column: 1 / -1;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/* ---- actions --------------------------------------------------------------------------- */
|
|
106
|
+
|
|
107
|
+
.fw-actions {
|
|
108
|
+
display: flex;
|
|
109
|
+
flex-wrap: wrap;
|
|
110
|
+
justify-content: space-between;
|
|
111
|
+
gap: var(--fw-gap);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.fw-actions-left,
|
|
115
|
+
.fw-actions-right {
|
|
116
|
+
display: flex;
|
|
117
|
+
flex-wrap: wrap;
|
|
118
|
+
gap: var(--fw-gap);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.fw-actions-right {
|
|
122
|
+
margin-inline-start: auto;
|
|
123
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,87 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ember-formwright/layouts",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "1.3.0",
|
|
4
|
+
"description": "Field layouts for Formwright: horizontal, compact, checkbox-after, and an Actions bar.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"ember-addon",
|
|
7
|
+
"ember",
|
|
8
|
+
"forms",
|
|
9
|
+
"formwright",
|
|
10
|
+
"layout"
|
|
11
|
+
],
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"author": "Joe Gaudet <joe@joegaudet.com>",
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+https://github.com/joegaudet/ember-formwright.git",
|
|
17
|
+
"directory": "packages/layouts"
|
|
18
|
+
},
|
|
19
|
+
"homepage": "https://joegaudet.com/ember-formwright/",
|
|
20
|
+
"bugs": "https://github.com/joegaudet/ember-formwright/issues",
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"types": "./declarations/index.d.ts",
|
|
24
|
+
"default": "./dist/index.js"
|
|
25
|
+
},
|
|
26
|
+
"./layouts.css": "./dist/layouts.css",
|
|
27
|
+
"./addon-main.js": "./addon-main.cjs"
|
|
28
|
+
},
|
|
29
|
+
"typesVersions": {
|
|
30
|
+
"*": {
|
|
31
|
+
"*": [
|
|
32
|
+
"declarations/*"
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"files": [
|
|
37
|
+
"addon-main.cjs",
|
|
38
|
+
"declarations",
|
|
39
|
+
"dist",
|
|
40
|
+
"README.md",
|
|
41
|
+
"CHANGELOG.md"
|
|
42
|
+
],
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"@embroider/addon-shim": "^1.10.3",
|
|
45
|
+
"decorator-transforms": "^2.4.0"
|
|
46
|
+
},
|
|
47
|
+
"peerDependencies": {
|
|
48
|
+
"ember-source": ">= 6.12.0",
|
|
49
|
+
"@ember-formwright/ember": "^1.3.0"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"@babel/core": "^7.29.7",
|
|
53
|
+
"@babel/plugin-transform-typescript": "^7.29.7",
|
|
54
|
+
"@babel/runtime": "^7.29.7",
|
|
55
|
+
"@ember/library-tsconfig": "^3.0.0",
|
|
56
|
+
"@embroider/addon-dev": "^8.4.2",
|
|
57
|
+
"@glimmer/component": "^2.1.1",
|
|
58
|
+
"@glimmer/tracking": "^1.1.2",
|
|
59
|
+
"@glint/ember-tsc": "^1.11.6",
|
|
60
|
+
"@glint/template": "^1.9.0",
|
|
61
|
+
"@rollup/plugin-babel": "^7.1.0",
|
|
62
|
+
"babel-plugin-ember-template-compilation": "^4.0.1",
|
|
63
|
+
"ember-source": "~7.3.0",
|
|
64
|
+
"rollup": "^4.64.6",
|
|
65
|
+
"typescript": "~6.0.3",
|
|
66
|
+
"@ember-formwright/ember": "1.3.0"
|
|
67
|
+
},
|
|
68
|
+
"publishConfig": {
|
|
69
|
+
"access": "public"
|
|
70
|
+
},
|
|
71
|
+
"engines": {
|
|
72
|
+
"node": ">=22.12.0"
|
|
73
|
+
},
|
|
74
|
+
"ember": {
|
|
75
|
+
"edition": "octane"
|
|
76
|
+
},
|
|
77
|
+
"ember-addon": {
|
|
78
|
+
"version": 2,
|
|
79
|
+
"type": "addon",
|
|
80
|
+
"main": "addon-main.cjs"
|
|
81
|
+
},
|
|
82
|
+
"scripts": {
|
|
83
|
+
"build": "rollup --config",
|
|
84
|
+
"start": "rollup --config --watch",
|
|
85
|
+
"typecheck": "ember-tsc --noEmit"
|
|
86
|
+
}
|
|
6
87
|
}
|