@optionfactory/fml 9.0.0-rc7 → 9.0.0-rc8

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.
@@ -21,7 +21,7 @@
21
21
  },
22
22
  {
23
23
  "name": "ful-dialog",
24
- "description": "A modal dialog on the native platform: header, body and buttons, the header attribute naming its heading, opened by any element carrying dialog-target set to its id, or programmatically through open()/ask(), which resolve with the data-result of the button that closed the dialog (null on Escape). Longer explanations belong here, shorter ones in ful-tooltip.",
24
+ "description": "A modal dialog on the native platform: header, body and buttons, the header attribute naming its heading, opened by any element carrying dialog-target set to its id, or programmatically through open()/ask(), which answer with how the dialog ended, or through update(callback), which opens it on a loading state and then shows either what the callback delivered or the problems of a rejection. Longer explanations belong here, shorter ones in ful-tooltip.",
25
25
  "attributes": [
26
26
  {
27
27
  "name": "header",
@@ -30,6 +30,10 @@
30
30
  {
31
31
  "name": "requires-answer",
32
32
  "description": "For the dialog that must be answered: the close button is not rendered and Escape is refused, so the only way out is a button carrying a result. Both, since a close button withheld while Escape still worked would be decoration rather than a rule. (boolean)"
33
+ },
34
+ {
35
+ "name": "close-on-submit",
36
+ "description": "For the dialog whose answer is a form succeeding rather than a button being pressed: its own form submitting successfully closes it and answers with the response. Opt in, and its own form only, a ful-form the body holds directly, since a ful-table wraps its filters in a form of its own and searching one is not the dialog being answered. (boolean)"
33
37
  }
34
38
  ]
35
39
  },
@@ -44,6 +48,10 @@
44
48
  {
45
49
  "name": "placement",
46
50
  "description": "Which edge the panel slides in from: end (the default) or start, following the page's writing direction. (string)"
51
+ },
52
+ {
53
+ "name": "close-on-submit",
54
+ "description": "For the drawer whose ending is a form succeeding rather than its close button being pressed: the form its content holds directly submitting successfully closes it, the close event carrying the response. Opt in, and its own form only, since a ful-table wraps its filters in a form of its own and searching one is not the drawer finishing. (boolean)"
47
55
  }
48
56
  ]
49
57
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@optionfactory/fml",
4
- "version": "9.0.0-rc7",
4
+ "version": "9.0.0-rc8",
5
5
  "description-markup": "none",
6
6
  "contributions": {
7
7
  "html": {
@@ -45,7 +45,7 @@
45
45
  },
46
46
  {
47
47
  "name": "ful-dialog",
48
- "description": "A modal dialog on the native platform: header, body and buttons, the header attribute naming its heading, opened by any element carrying dialog-target set to its id, or programmatically through open()/ask(), which resolve with the data-result of the button that closed the dialog (null on Escape). Longer explanations belong here, shorter ones in ful-tooltip.",
48
+ "description": "A modal dialog on the native platform: header, body and buttons, the header attribute naming its heading, opened by any element carrying dialog-target set to its id, or programmatically through open()/ask(), which answer with how the dialog ended, or through update(callback), which opens it on a loading state and then shows either what the callback delivered or the problems of a rejection. Longer explanations belong here, shorter ones in ful-tooltip.",
49
49
  "attributes": [
50
50
  {
51
51
  "name": "header",
@@ -62,6 +62,14 @@
62
62
  "kind": "plain",
63
63
  "type": "boolean"
64
64
  }
65
+ },
66
+ {
67
+ "name": "close-on-submit",
68
+ "description": "For the dialog whose answer is a form succeeding rather than a button being pressed: its own form submitting successfully closes it and answers with the response. Opt in, and its own form only, a ful-form the body holds directly, since a ful-table wraps its filters in a form of its own and searching one is not the dialog being answered.",
69
+ "value": {
70
+ "kind": "plain",
71
+ "type": "boolean"
72
+ }
65
73
  }
66
74
  ],
67
75
  "slots": [
@@ -71,13 +79,13 @@
71
79
  },
72
80
  {
73
81
  "name": "buttons",
74
- "description": "Buttons closing the dialog; each carries a data-result that ask() resolves with. Without this slot a localized acknowledge button is shown."
82
+ "description": "Buttons closing the dialog; each carries a data-result that the answer carries back. Without this slot a localized acknowledge button is shown."
75
83
  }
76
84
  ],
77
85
  "events": [
78
86
  {
79
87
  "name": "close",
80
- "description": "Fired when the dialog closes, carrying the data-result of the button that closed it, or null on Escape; ask() and open() resolve with the same answer, and a dialog leaving the document while open answers its waiters with null."
88
+ "description": "Fired when the dialog closes, carrying how it ended: dismissed tells a cancel from an answer, result the data-result of the button that closed it, response what a submit answered with. ask() and open() resolve with the same object, and a dialog leaving the document while open answers its waiters with a dismissal."
81
89
  },
82
90
  {
83
91
  "name": "section:requested",
@@ -104,6 +112,14 @@
104
112
  "kind": "plain",
105
113
  "type": "string"
106
114
  }
115
+ },
116
+ {
117
+ "name": "close-on-submit",
118
+ "description": "For the drawer whose ending is a form succeeding rather than its close button being pressed: the form its content holds directly submitting successfully closes it, the close event carrying the response. Opt in, and its own form only, since a ful-table wraps its filters in a form of its own and searching one is not the drawer finishing.",
119
+ "value": {
120
+ "kind": "plain",
121
+ "type": "boolean"
122
+ }
107
123
  }
108
124
  ],
109
125
  "slots": [
@@ -119,7 +135,7 @@
119
135
  "events": [
120
136
  {
121
137
  "name": "close",
122
- "description": "Fired when the drawer closes, by its close button or Escape."
138
+ "description": "Fired when the drawer closes, carrying how it ended: dismissed tells the close button and Escape from a form that closed it under close-on-submit, and response what that submit answered with, a save answering with no body at all being a save all the same."
123
139
  },
124
140
  {
125
141
  "name": "section:requested",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optionfactory/fml",
3
- "version": "9.0.0-rc7",
3
+ "version": "9.0.0-rc8",
4
4
  "type": "module",
5
5
  "main": "./dist/fml.mjs",
6
6
  "module": "./dist/fml.mjs",