@simai-studio/mail 0.0.0-stage → 1.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.
- package/LICENSE.md +188 -0
- package/README.md +79 -2
- package/dist/package-receipt.json +1176 -0
- package/dist/set.json +97 -0
- package/dist/smart/mail-canvas/component.json +562 -0
- package/dist/smart/mail-canvas/component.json.gz +0 -0
- package/dist/smart/mail-canvas/css/mail-canvas.css +85 -0
- package/dist/smart/mail-canvas/css/mail-canvas.css.gz +0 -0
- package/dist/smart/mail-canvas/css/mail-canvas.min.css +2 -0
- package/dist/smart/mail-canvas/css/mail-canvas.min.css.gz +0 -0
- package/dist/smart/mail-canvas/examples.json +731 -0
- package/dist/smart/mail-canvas/examples.json.gz +0 -0
- package/dist/smart/mail-canvas/js/mail-canvas.js +1039 -0
- package/dist/smart/mail-canvas/js/mail-canvas.js.gz +0 -0
- package/dist/smart/mail-canvas/js/mail-canvas.min.js +22 -0
- package/dist/smart/mail-canvas/js/mail-canvas.min.js.gz +0 -0
- package/dist/smart/mail-canvas/lang/en.json +25 -0
- package/dist/smart/mail-canvas/lang/en.json.gz +0 -0
- package/dist/smart/mail-canvas/lang/ru.json +25 -0
- package/dist/smart/mail-canvas/lang/ru.json.gz +0 -0
- package/dist/smart/mail-canvas/probe.json +465 -0
- package/dist/smart/mail-canvas/probe.json.gz +0 -0
- package/dist/smart/mail-canvas/smart.manifest.json +550 -0
- package/dist/smart/mail-canvas/smart.manifest.json.gz +0 -0
- package/dist/smart/mail-canvas/static/default/notes.html +43 -0
- package/dist/smart/mail-canvas/static/default/notes.html.gz +0 -0
- package/dist/smart/mail-canvas/static/default/phone.html +43 -0
- package/dist/smart/mail-canvas/static/default/phone.html.gz +0 -0
- package/dist/smart/mail-canvas/static/default/reference.html +48 -0
- package/dist/smart/mail-canvas/static/default/reference.html.gz +0 -0
- package/dist/smart/mail-canvas/static/sheets.json +132 -0
- package/dist/smart/mail-canvas/static/sheets.json.gz +0 -0
- package/dist/smart/mail-canvas/studio.fixture.json +63 -0
- package/dist/smart/mail-canvas/studio.fixture.json.gz +0 -0
- package/dist/smart/mail-canvas/studio.scenario.json +39 -0
- package/dist/smart/mail-canvas/studio.scenario.json.gz +0 -0
- package/dist/smart/mail-canvas/template/default.css +73 -0
- package/dist/smart/mail-canvas/template/default.css.gz +0 -0
- package/dist/smart/mail-canvas/template/default.js +38 -0
- package/dist/smart/mail-canvas/template/default.js.gz +0 -0
- package/dist/smart/mail-inspector/component.json +768 -0
- package/dist/smart/mail-inspector/component.json.gz +0 -0
- package/dist/smart/mail-inspector/css/mail-inspector.css +194 -0
- package/dist/smart/mail-inspector/css/mail-inspector.css.gz +0 -0
- package/dist/smart/mail-inspector/css/mail-inspector.min.css +2 -0
- package/dist/smart/mail-inspector/css/mail-inspector.min.css.gz +0 -0
- package/dist/smart/mail-inspector/examples.json +1301 -0
- package/dist/smart/mail-inspector/examples.json.gz +0 -0
- package/dist/smart/mail-inspector/js/mail-inspector.js +1619 -0
- package/dist/smart/mail-inspector/js/mail-inspector.js.gz +0 -0
- package/dist/smart/mail-inspector/js/mail-inspector.min.js +103 -0
- package/dist/smart/mail-inspector/js/mail-inspector.min.js.gz +0 -0
- package/dist/smart/mail-inspector/lang/en.json +29 -0
- package/dist/smart/mail-inspector/lang/en.json.gz +0 -0
- package/dist/smart/mail-inspector/lang/ru.json +29 -0
- package/dist/smart/mail-inspector/lang/ru.json.gz +0 -0
- package/dist/smart/mail-inspector/probe.json +648 -0
- package/dist/smart/mail-inspector/probe.json.gz +0 -0
- package/dist/smart/mail-inspector/smart.manifest.json +920 -0
- package/dist/smart/mail-inspector/smart.manifest.json.gz +0 -0
- package/dist/smart/mail-inspector/static/default/item.html +189 -0
- package/dist/smart/mail-inspector/static/default/item.html.gz +0 -0
- package/dist/smart/mail-inspector/static/default/letter.html +247 -0
- package/dist/smart/mail-inspector/static/default/letter.html.gz +0 -0
- package/dist/smart/mail-inspector/static/default/reference.html +545 -0
- package/dist/smart/mail-inspector/static/default/reference.html.gz +0 -0
- package/dist/smart/mail-inspector/static/sheets.json +226 -0
- package/dist/smart/mail-inspector/static/sheets.json.gz +0 -0
- package/dist/smart/mail-inspector/studio.fixture.json +232 -0
- package/dist/smart/mail-inspector/studio.fixture.json.gz +0 -0
- package/dist/smart/mail-inspector/studio.scenario.json +43 -0
- package/dist/smart/mail-inspector/studio.scenario.json.gz +0 -0
- package/dist/smart/mail-inspector/template/default.css +190 -0
- package/dist/smart/mail-inspector/template/default.css.gz +0 -0
- package/dist/smart/mail-inspector/template/default.js +249 -0
- package/dist/smart/mail-inspector/template/default.js.gz +0 -0
- package/dist/smart/mail-letters/component.json +455 -0
- package/dist/smart/mail-letters/component.json.gz +0 -0
- package/dist/smart/mail-letters/css/mail-letters.css +72 -0
- package/dist/smart/mail-letters/css/mail-letters.css.gz +0 -0
- package/dist/smart/mail-letters/css/mail-letters.min.css +2 -0
- package/dist/smart/mail-letters/css/mail-letters.min.css.gz +0 -0
- package/dist/smart/mail-letters/examples.json +477 -0
- package/dist/smart/mail-letters/examples.json.gz +0 -0
- package/dist/smart/mail-letters/js/mail-letters.js +1772 -0
- package/dist/smart/mail-letters/js/mail-letters.js.gz +0 -0
- package/dist/smart/mail-letters/js/mail-letters.min.js +35 -0
- package/dist/smart/mail-letters/js/mail-letters.min.js.gz +0 -0
- package/dist/smart/mail-letters/lang/en.json +29 -0
- package/dist/smart/mail-letters/lang/en.json.gz +0 -0
- package/dist/smart/mail-letters/lang/ru.json +31 -0
- package/dist/smart/mail-letters/lang/ru.json.gz +0 -0
- package/dist/smart/mail-letters/probe.json +290 -0
- package/dist/smart/mail-letters/probe.json.gz +0 -0
- package/dist/smart/mail-letters/smart.manifest.json +476 -0
- package/dist/smart/mail-letters/smart.manifest.json.gz +0 -0
- package/dist/smart/mail-letters/static/default/by-title.html +177 -0
- package/dist/smart/mail-letters/static/default/by-title.html.gz +0 -0
- package/dist/smart/mail-letters/static/default/empty.html +88 -0
- package/dist/smart/mail-letters/static/default/empty.html.gz +0 -0
- package/dist/smart/mail-letters/static/default/nothing-found.html +88 -0
- package/dist/smart/mail-letters/static/default/nothing-found.html.gz +0 -0
- package/dist/smart/mail-letters/static/default/reference.html +168 -0
- package/dist/smart/mail-letters/static/default/reference.html.gz +0 -0
- package/dist/smart/mail-letters/static/sheets.json +245 -0
- package/dist/smart/mail-letters/static/sheets.json.gz +0 -0
- package/dist/smart/mail-letters/studio.fixture.json +41 -0
- package/dist/smart/mail-letters/studio.fixture.json.gz +0 -0
- package/dist/smart/mail-letters/studio.scenario.json +41 -0
- package/dist/smart/mail-letters/studio.scenario.json.gz +0 -0
- package/dist/smart/mail-letters/template/default.css +79 -0
- package/dist/smart/mail-letters/template/default.css.gz +0 -0
- package/dist/smart/mail-letters/template/default.js +61 -0
- package/dist/smart/mail-letters/template/default.js.gz +0 -0
- package/dist/smart/mail-library/component.json +512 -0
- package/dist/smart/mail-library/component.json.gz +0 -0
- package/dist/smart/mail-library/css/mail-library.css +149 -0
- package/dist/smart/mail-library/css/mail-library.css.gz +0 -0
- package/dist/smart/mail-library/css/mail-library.min.css +2 -0
- package/dist/smart/mail-library/css/mail-library.min.css.gz +0 -0
- package/dist/smart/mail-library/examples.json +616 -0
- package/dist/smart/mail-library/examples.json.gz +0 -0
- package/dist/smart/mail-library/js/mail-library.js +559 -0
- package/dist/smart/mail-library/js/mail-library.js.gz +0 -0
- package/dist/smart/mail-library/js/mail-library.min.js +52 -0
- package/dist/smart/mail-library/js/mail-library.min.js.gz +0 -0
- package/dist/smart/mail-library/lang/en.json +21 -0
- package/dist/smart/mail-library/lang/en.json.gz +0 -0
- package/dist/smart/mail-library/lang/ru.json +21 -0
- package/dist/smart/mail-library/lang/ru.json.gz +0 -0
- package/dist/smart/mail-library/probe.json +275 -0
- package/dist/smart/mail-library/probe.json.gz +0 -0
- package/dist/smart/mail-library/smart.manifest.json +512 -0
- package/dist/smart/mail-library/smart.manifest.json.gz +0 -0
- package/dist/smart/mail-library/static/default/category.html +85 -0
- package/dist/smart/mail-library/static/default/category.html.gz +0 -0
- package/dist/smart/mail-library/static/default/nothing-found.html +81 -0
- package/dist/smart/mail-library/static/default/nothing-found.html.gz +0 -0
- package/dist/smart/mail-library/static/default/one-group.html +67 -0
- package/dist/smart/mail-library/static/default/one-group.html.gz +0 -0
- package/dist/smart/mail-library/static/default/reference.html +135 -0
- package/dist/smart/mail-library/static/default/reference.html.gz +0 -0
- package/dist/smart/mail-library/static/sheets.json +180 -0
- package/dist/smart/mail-library/static/sheets.json.gz +0 -0
- package/dist/smart/mail-library/studio.fixture.json +75 -0
- package/dist/smart/mail-library/studio.fixture.json.gz +0 -0
- package/dist/smart/mail-library/studio.scenario.json +41 -0
- package/dist/smart/mail-library/studio.scenario.json.gz +0 -0
- package/dist/smart/mail-library/template/default.css +133 -0
- package/dist/smart/mail-library/template/default.css.gz +0 -0
- package/dist/smart/mail-library/template/default.js +83 -0
- package/dist/smart/mail-library/template/default.js.gz +0 -0
- package/dist/smart/mail-structure/component.json +497 -0
- package/dist/smart/mail-structure/component.json.gz +0 -0
- package/dist/smart/mail-structure/css/mail-structure.css +106 -0
- package/dist/smart/mail-structure/css/mail-structure.css.gz +0 -0
- package/dist/smart/mail-structure/css/mail-structure.min.css +2 -0
- package/dist/smart/mail-structure/css/mail-structure.min.css.gz +0 -0
- package/dist/smart/mail-structure/examples.json +286 -0
- package/dist/smart/mail-structure/examples.json.gz +0 -0
- package/dist/smart/mail-structure/js/mail-structure.js +767 -0
- package/dist/smart/mail-structure/js/mail-structure.js.gz +0 -0
- package/dist/smart/mail-structure/js/mail-structure.min.js +48 -0
- package/dist/smart/mail-structure/js/mail-structure.min.js.gz +0 -0
- package/dist/smart/mail-structure/lang/en.json +22 -0
- package/dist/smart/mail-structure/lang/en.json.gz +0 -0
- package/dist/smart/mail-structure/lang/ru.json +22 -0
- package/dist/smart/mail-structure/lang/ru.json.gz +0 -0
- package/dist/smart/mail-structure/probe.json +112 -0
- package/dist/smart/mail-structure/probe.json.gz +0 -0
- package/dist/smart/mail-structure/smart.manifest.json +495 -0
- package/dist/smart/mail-structure/smart.manifest.json.gz +0 -0
- package/dist/smart/mail-structure/static/default/empty.html +76 -0
- package/dist/smart/mail-structure/static/default/empty.html.gz +0 -0
- package/dist/smart/mail-structure/static/default/reference.html +98 -0
- package/dist/smart/mail-structure/static/default/reference.html.gz +0 -0
- package/dist/smart/mail-structure/static/default/settings.html +98 -0
- package/dist/smart/mail-structure/static/default/settings.html.gz +0 -0
- package/dist/smart/mail-structure/static/sheets.json +142 -0
- package/dist/smart/mail-structure/static/sheets.json.gz +0 -0
- package/dist/smart/mail-structure/studio.fixture.json +45 -0
- package/dist/smart/mail-structure/studio.fixture.json.gz +0 -0
- package/dist/smart/mail-structure/studio.scenario.json +42 -0
- package/dist/smart/mail-structure/studio.scenario.json.gz +0 -0
- package/dist/smart/mail-structure/template/default.css +100 -0
- package/dist/smart/mail-structure/template/default.css.gz +0 -0
- package/dist/smart/mail-structure/template/default.js +80 -0
- package/dist/smart/mail-structure/template/default.js.gz +0 -0
- package/dist/smart/rule.js +161 -0
- package/dist/smart/rule.js.gz +0 -0
- package/package.json +29 -4
|
@@ -0,0 +1,455 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "The source of sf-mail-letters' element plumbing (core/js/element-manifest.js); standard simai.smart-component 1.4, vocabulary 1.1.5. Moved from simai/ui-mail package/src/smart/mail-letters (smart.manifest.json 0.1.0, ui-mail 750be03) by the owner's decision D31 of 2026-10-29: a product repository makes no component set of its own, the shared components live in ui-pro. The name stays sf-mail-letters (owner decision q-08d1979fc9). Written by hand in the 1.4 form on the shape of sf-chat-interlocutor and sf-mail-library; x-decisions says how each point was decided.",
|
|
3
|
+
"id": "smart.mail-letters",
|
|
4
|
+
"tag": "sf-mail-letters",
|
|
5
|
+
"version": "1.1.3",
|
|
6
|
+
"kind": "leaf",
|
|
7
|
+
"family": "list",
|
|
8
|
+
"settings": {
|
|
9
|
+
"letters": {
|
|
10
|
+
"type": "list",
|
|
11
|
+
"default": [],
|
|
12
|
+
"of": {
|
|
13
|
+
"id": "id",
|
|
14
|
+
"title": "string",
|
|
15
|
+
"at": {
|
|
16
|
+
"type": "date",
|
|
17
|
+
"optional": true
|
|
18
|
+
},
|
|
19
|
+
"blocks": {
|
|
20
|
+
"type": "number",
|
|
21
|
+
"integer": true,
|
|
22
|
+
"min": 0,
|
|
23
|
+
"optional": true
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"entries": {
|
|
27
|
+
"key": "id",
|
|
28
|
+
"changes": "content"
|
|
29
|
+
},
|
|
30
|
+
"x-markup": "a property (a host has objects), or the JSON island a server prints; at is a moment (ISO 8601), never a worded date; title is text, never markup",
|
|
31
|
+
"summary": "The letters, one row each: {id, title, at, blocks}. at is the moment the letter changed; the row words it («5 минут назад») and the block count («4 блока») in the page's language."
|
|
32
|
+
},
|
|
33
|
+
"query": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"default": "",
|
|
36
|
+
"summary": "The search by name; the field inside the element writes it while the person types."
|
|
37
|
+
},
|
|
38
|
+
"order": {
|
|
39
|
+
"type": "enum",
|
|
40
|
+
"values": [
|
|
41
|
+
"changed",
|
|
42
|
+
"title"
|
|
43
|
+
],
|
|
44
|
+
"default": "changed",
|
|
45
|
+
"summary": "changed (the newest first) or title (by name, sorted in the page's language); the order control inside the element writes it."
|
|
46
|
+
},
|
|
47
|
+
"current": {
|
|
48
|
+
"type": "id",
|
|
49
|
+
"default": "",
|
|
50
|
+
"summary": "The letter open in the editor: its row is marked, says «открыто сейчас» and offers no «Открыть»."
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"values": {},
|
|
54
|
+
"events": {
|
|
55
|
+
"open": {
|
|
56
|
+
"carries": {
|
|
57
|
+
"id": "id"
|
|
58
|
+
},
|
|
59
|
+
"x-summary": "«Открыть» of a row (vocabulary §5 open); never for the current letter, which offers no «Открыть».",
|
|
60
|
+
"summary": "Open this letter: {id}. The current letter is not offered."
|
|
61
|
+
},
|
|
62
|
+
"copy": {
|
|
63
|
+
"carries": {
|
|
64
|
+
"id": "id"
|
|
65
|
+
},
|
|
66
|
+
"own-verb": true,
|
|
67
|
+
"x-summary": "«Копия» under ⋯: the host makes a copy of the letter (a verb of this element: no §5 verb makes a copy of an entry).",
|
|
68
|
+
"summary": "Make a copy of this letter: {id}."
|
|
69
|
+
},
|
|
70
|
+
"rename": {
|
|
71
|
+
"carries": {
|
|
72
|
+
"id": "id"
|
|
73
|
+
},
|
|
74
|
+
"x-summary": "«Переименовать» under ⋯ (vocabulary §5 rename). The element has no name field: the host asks for the new name, so the request carries the id alone, without title.",
|
|
75
|
+
"summary": "Rename this letter: {id}. The host asks for the new name."
|
|
76
|
+
},
|
|
77
|
+
"delete": {
|
|
78
|
+
"carries": {
|
|
79
|
+
"ids": "list",
|
|
80
|
+
"id": "id"
|
|
81
|
+
},
|
|
82
|
+
"x-summary": "«Удалить» under ⋯ (vocabulary §5 delete {ids}); one row is one letter, so ids holds that one and id names it, as sf-thread-list's archive does. The host confirms; the element deletes nothing.",
|
|
83
|
+
"summary": "Delete this letter: {ids: [id], id}. The host confirms and deletes."
|
|
84
|
+
},
|
|
85
|
+
"create": {
|
|
86
|
+
"carries": {},
|
|
87
|
+
"x-summary": "«Новое письмо» (vocabulary §5 create).",
|
|
88
|
+
"summary": "A new letter was asked for."
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"actions": {
|
|
92
|
+
"search": {
|
|
93
|
+
"with": {
|
|
94
|
+
"query": "string"
|
|
95
|
+
},
|
|
96
|
+
"x-outcomes": [
|
|
97
|
+
"applied"
|
|
98
|
+
],
|
|
99
|
+
"x-summary": "the search field's input: the setting query",
|
|
100
|
+
"summary": "Search as the field does: sets query.",
|
|
101
|
+
"x-returns": {
|
|
102
|
+
"type": "object",
|
|
103
|
+
"description": "{outcome: applied}"
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"sort": {
|
|
107
|
+
"with": {
|
|
108
|
+
"order": {
|
|
109
|
+
"type": "enum",
|
|
110
|
+
"values": [
|
|
111
|
+
"changed",
|
|
112
|
+
"title"
|
|
113
|
+
]
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"x-outcomes": [
|
|
117
|
+
"applied",
|
|
118
|
+
"refused"
|
|
119
|
+
],
|
|
120
|
+
"x-summary": "the order control: the setting order; refused unknown for another word",
|
|
121
|
+
"summary": "Order the rows as the order control does; refused unknown for an order that is not changed or title.",
|
|
122
|
+
"x-returns": {
|
|
123
|
+
"type": "object",
|
|
124
|
+
"description": "{outcome: applied} or {outcome: refused, reason: unknown}"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"choose": {
|
|
128
|
+
"with": {
|
|
129
|
+
"action": {
|
|
130
|
+
"type": "enum",
|
|
131
|
+
"values": [
|
|
132
|
+
"open",
|
|
133
|
+
"copy",
|
|
134
|
+
"rename",
|
|
135
|
+
"delete",
|
|
136
|
+
"create"
|
|
137
|
+
]
|
|
138
|
+
},
|
|
139
|
+
"id": {
|
|
140
|
+
"type": "id",
|
|
141
|
+
"optional": true
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
"x-outcomes": [
|
|
145
|
+
"applied",
|
|
146
|
+
"refused"
|
|
147
|
+
],
|
|
148
|
+
"x-summary": "what a row's «Открыть», its ⋯ menu or «Новое письмо» does: sends the event of that verb; refused unknown for another action or a letter not given, current for open of the letter open now",
|
|
149
|
+
"summary": "Do what a row or the bar would: sends open, copy, rename, delete or create; refused current for opening the letter open now.",
|
|
150
|
+
"x-returns": {
|
|
151
|
+
"type": "object",
|
|
152
|
+
"description": "{outcome: applied} or {outcome: refused, reason: unknown | current}"
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
"slots": {},
|
|
157
|
+
"keyboard": {
|
|
158
|
+
"host": {
|
|
159
|
+
"Tab": "reach"
|
|
160
|
+
},
|
|
161
|
+
"row": {
|
|
162
|
+
"Enter": "open",
|
|
163
|
+
"Space": "open"
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
"relations": [
|
|
167
|
+
{
|
|
168
|
+
"name": "cl-input"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"name": "cl-dropdown"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"name": "cl-button"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"name": "cl-button-icon"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"name": "cl-empty-state"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"name": "cl-menu-context",
|
|
184
|
+
"lazy": true
|
|
185
|
+
}
|
|
186
|
+
],
|
|
187
|
+
"templates": {
|
|
188
|
+
"default": {
|
|
189
|
+
"file": "js/templates/default.js",
|
|
190
|
+
"$comment": "The Lit template in JavaScript, the migration form of §5.2 (§16)."
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
"styles": "js/templates/default.css",
|
|
194
|
+
"examples": "examples.json",
|
|
195
|
+
"docs": "docs.md",
|
|
196
|
+
"lang": "lang/",
|
|
197
|
+
"accessibility": {
|
|
198
|
+
"role": "list",
|
|
199
|
+
"name": {
|
|
200
|
+
"from": [
|
|
201
|
+
"runtime.search-label"
|
|
202
|
+
]
|
|
203
|
+
},
|
|
204
|
+
"keys": {
|
|
205
|
+
"Tab": "reach",
|
|
206
|
+
"Enter": "open",
|
|
207
|
+
"Space": "open"
|
|
208
|
+
},
|
|
209
|
+
"x-keys": "the bar first -- the search, the order, «Новое письмо» -- then every row's «Открыть» and its ⋯ in the Tab order; Enter and Space press them; the ⋯ menu is sf-menu-context with its own keys"
|
|
210
|
+
},
|
|
211
|
+
"host-states": {},
|
|
212
|
+
"css-variables": {},
|
|
213
|
+
"x-summary": "Every letter a person has in SIMAI Email Editor: a search by name, an order, and what each row offers -- «Открыть» and, under ⋯, a copy, a rename and a delete. The moment and the block count are worded in the page's language. The element holds no letter and stores nothing; it says what the person chose.",
|
|
214
|
+
"x-source": {
|
|
215
|
+
"package": "ui-pro",
|
|
216
|
+
"folder": "mail-letters",
|
|
217
|
+
"manifest": "simai/ui-mail@750be03 package/src/smart/mail-letters/smart.manifest.json (0.1.0)",
|
|
218
|
+
"converted": "by hand (D31, 2026-10-29): ui-mail wrote it in the 1.3 form of its pin (smart.manifest.json, index.js on smart-base); here it is made from component.json"
|
|
219
|
+
},
|
|
220
|
+
"x-words": [],
|
|
221
|
+
"x-renamed": [
|
|
222
|
+
"events.sf-mail-letters-new {} → create {} (vocabulary §5 create: «new» is not a verb); never released, so no dated alias",
|
|
223
|
+
"events.sf-mail-letters-delete {id} → delete {ids, id} (vocabulary §5 delete carries ids; id stays beside it, as sf-thread-list's archive carries both)",
|
|
224
|
+
"methods.choose(action, id), search(value), sort(value) → the actions choose {action, id}, search {query}, sort {order} (§4.4); choose answers refused current for open of the current letter, sort refused unknown for another order (it fell back to changed before)",
|
|
225
|
+
"words: ui-mail's MAIL_LETTERS_TEXT in index.js → lang/<locale>.json runtime words (§11); the block count's blocks-one/-few/-many/-other keys → one plural word blocks-text {one, few, many, other} with {n}, which the Framework picks by Intl.PluralRules (§11.1)",
|
|
226
|
+
"the delete row of the ⋯ menu: scheme error → danger: true, the context menu's entry field at the pin",
|
|
227
|
+
"sf-empty-state title → heading (title is a dated alias of heading at the pin); sf-context-menu takes popup, so it is not drawn until opened",
|
|
228
|
+
"css: scss/_smart__mail_letters.scss → js/templates/default.css, the same rules without the host's display: block (a Smart host is display: contents)"
|
|
229
|
+
],
|
|
230
|
+
"x-decisions": [
|
|
231
|
+
"version: 0.1.0 in simai/ui-mail → 1.0.0 here: the first release, in ui-pro, of a tag ui-mail never released.",
|
|
232
|
+
"names: sf-mail-letters stays (owner decision q-08d1979fc9) and keeps the Framework's sf- prefix, as the package's other elements do.",
|
|
233
|
+
"shape: a leaf. It places sf-input, sf-dropdown, sf-button, sf-icon-button, sf-empty-state and one sf-context-menu as its own markup; no part is in a role a rule could bind.",
|
|
234
|
+
"events: open, rename, delete and create are vocabulary §5 verbs; copy is a verb of this element (no §5 verb makes a copy of an entry). None is cancelable: the element changes nothing, the host acts and passes letters back.",
|
|
235
|
+
"rename carries {id} without title: the element has no name field, the host asks for the new name (as the editor did before).",
|
|
236
|
+
"moment: at is a moment, worded by Intl.RelativeTimeFormat in the page's language with numeric auto («вчера», «5 минут назад»), in the largest unit it fills. The first-paint tools fix the clock (scripts/first-paint-lib.mjs FIRST_PAINT_NOW, 2026-10-27T12:00:00+03:00), and the examples are written against that instant.",
|
|
237
|
+
"count: blocks is worded by the plural word blocks-text, the form chosen by Intl.PluralRules of the language the word is found in: «1 блок», «4 блока», «7 блоков», «11 блоков». A single form said «4 блоков» in ui-mail's first draft; the conformance probe holds every form.",
|
|
238
|
+
"current: the letter open in the editor is marked (is-current), says «открыто сейчас» in words, not by colour alone, and offers no «Открыть»; choose open answers refused current for it.",
|
|
239
|
+
"empty: no letters at all is sf-empty-state no-data «Писем пока нет»; letters with none for the search is nothing-found «Ничего не найдено». They are different states, and the person sees which is theirs.",
|
|
240
|
+
"menu: one sf-context-menu, filled for the row it is opened from; the id is remembered, not read back out of the markup, so a redraw meanwhile does not move the answer to another row. It is fetched lazily and printed closed (popup).",
|
|
241
|
+
"first paint (§5.4): no late data declared. The editor's letters come from its local store with the page; a host that loads them later holds its own skeleton.",
|
|
242
|
+
"words: lang/ru.json and lang/en.json; ru is the source language. The own verb's word is events.copy.label.",
|
|
243
|
+
"css-variables: none yet. Every value is a Framework token, as it was in ui-mail.",
|
|
244
|
+
"self-contained: nothing from simai/ui-mail is imported.",
|
|
245
|
+
"version 1.0.1: a letter's «5 минут назад» is formatRelativeTime of core/js/format.js (core.runtime 1.20.0; reuse audit 2026-11-02, finding 7): the same steps (the largest unit the moment fills), numeric auto, and '' for no moment; the local STEPS table is gone. No visible change. Needs core.runtime >= 1.20.0.",
|
|
246
|
+
"version 1.0.2: the Framework elements it draws, finds and listens to are named by their new tags (Smart component naming of 2026-11-02, sf-[set]-<block>): the row's ⋯ is sf-button-icon, its menu sf-menu-context. The rule relations and the registry ids follow (cl-<new>, smart.<new>; the package reference pro.package.json of the pair). The former tags stay dated aliases of the Framework until 2027-01-01; public CSS variables and classes keep their names. No visible change. Needs the SIMAI Framework pair with the tag renames (core.runtime 1.21.0).",
|
|
247
|
+
"version 1.0.5 (2026-11-09): a patch (no visible change). A row's ⋯ asks for appearance=\"ghost\", the look SIMAI Framework now calls ghost (decision C15, sf-button 1.7.0 and sf-button-icon of the pair ui-d6f01121baca); link is its former name, a dated alias until 2027-01-01, drawn the same. Settings, values and events are unchanged.",
|
|
248
|
+
"version 1.0.6 (2026-11-09): a patch (first paint only). The first-paint snapshots are retaken over SIMAI Framework ui-cb287da78ab1 (the pair's elements now print data-sf-size-relative on sf-icon and the other markup of that pair); static/sheets.json is unchanged (no sheet drift). Code, settings, values and events are unchanged.",
|
|
249
|
+
"version 1.0.7 (2026-11-10): a patch (first paint only). The first-paint snapshots are retaken over SIMAI Framework ui-a0370c0c99fb: the pair's sf-input prints one more empty text node (its shortcut place, C38), whitespace only. Settings, values and events are unchanged.",
|
|
250
|
+
"version 1.0.8 (2026-11-10): a patch (first paint only). The first-paint snapshots are retaken over SIMAI Framework ui-2bd5a3ab478a: the pair's sf-menu-context prints its panel without the flex utility class (class=\"sf-context-menu\"); static/sheets.json is unchanged (no sheet drift). Code, settings, values and events are unchanged.",
|
|
251
|
+
"version 1.1.0 (2026-11-15): a minor (decisions C105 H5, C144, C164 (1)(2); register RG-S2-46, defect TL-2), for SIMAI Framework ui-994f9db407fa (ui-source 09cf1b0f). A row's «Открыть» and ⋯ are one group of the row's actions and stand --sf-space-1/3 apart (8, 4 under compact density), where they stood 4: a row's action group is not a toolbar. A row's ⋯ menu also opens on a right click on the row, at the pointer (sf-menu-context's point anchor), and on the context-menu key and Shift+F10 from a control in the row, at its ⋯; Shift with a right click leaves the browser's menu. 1.0.9 is held by another branch. Settings, values, events and actions are unchanged.",
|
|
252
|
+
"version 1.1.1 (2026-11-16, defect TL-7 of the toolbar and row-menu study, ui-control control/research/2026-11-14-toolbar-menu-open.md; above 1.1.0 of every branch): a patch. The ⋯ menu asks the Loader for sf-menu-context (SF.Loader.ensure) before waiting for it, so a press before the page's lazy relations came opens the menu instead of nothing. Nothing drawn differently; settings, values, events and keys unchanged.",
|
|
253
|
+
"version 1.1.2 (2026-11-17): a patch (a look). A letter's ⋯ button names its scheme, on-surface-variant (C15: an icon button's look is two axes, appearance and scheme): ghost without a scheme drew the icon in the primary ink (rgb(0 68 145)) where the panel's other quiet icons are grey. Settings, values and events unchanged.",
|
|
254
|
+
"version 1.1.3 (2026-11-21): a patch, rebuilt over SIMAI Framework ui-9ceecc24c988 (group build 15; ui-source e7ea89e07, core.runtime 1.65.0, core.styles 1.21.0): its first-paint snapshots (static/) are retaken from the build through scripts/run-first-paint.mjs, since the Framework segmented and button parts it prints write pointer-events-none on their glyphs and labels (the former pointer-event-none matched no utility). Its own code, settings, values and events are unchanged. 1.1.3 is above 1.1.2 (ui-pro), the highest on any origin branch."
|
|
255
|
+
],
|
|
256
|
+
"x-rule": {
|
|
257
|
+
"$comment": [
|
|
258
|
+
"The letters page draws its search as sf-input, the order as sf-dropdown,",
|
|
259
|
+
"«Открыть» and «Новое письмо» as sf-button, the row's ⋯ as sf-button-icon",
|
|
260
|
+
"and «писем пока нет» as sf-empty-state; a tag it renders is a tag it",
|
|
261
|
+
"fetches. The ⋯ menu opens in sf-menu-context on a press, so the menu is",
|
|
262
|
+
"fetched after the page is ready, and the element waits for it before",
|
|
263
|
+
"opening it."
|
|
264
|
+
]
|
|
265
|
+
},
|
|
266
|
+
"x-registry": {
|
|
267
|
+
"capabilities": [
|
|
268
|
+
"interaction",
|
|
269
|
+
"keyboard",
|
|
270
|
+
"search",
|
|
271
|
+
"responsive"
|
|
272
|
+
],
|
|
273
|
+
"persistence": {
|
|
274
|
+
"mode": "none",
|
|
275
|
+
"source_of_truth": "host",
|
|
276
|
+
"network_owner": "host",
|
|
277
|
+
"revision_field": null
|
|
278
|
+
},
|
|
279
|
+
"readiness": {
|
|
280
|
+
"level": "host-required",
|
|
281
|
+
"required_checks": [
|
|
282
|
+
"manifest",
|
|
283
|
+
"loader-rule",
|
|
284
|
+
"mail-letters-probe"
|
|
285
|
+
]
|
|
286
|
+
},
|
|
287
|
+
"tags": [
|
|
288
|
+
"mail",
|
|
289
|
+
"letters",
|
|
290
|
+
"library",
|
|
291
|
+
"list"
|
|
292
|
+
],
|
|
293
|
+
"contracts": {
|
|
294
|
+
"letter": {
|
|
295
|
+
"type": "object",
|
|
296
|
+
"properties": {
|
|
297
|
+
"id": {
|
|
298
|
+
"type": "string",
|
|
299
|
+
"description": "The letter's id: what the events carry."
|
|
300
|
+
},
|
|
301
|
+
"title": {
|
|
302
|
+
"type": "string",
|
|
303
|
+
"description": "Its name, drawn as text."
|
|
304
|
+
},
|
|
305
|
+
"at": {
|
|
306
|
+
"type": "string",
|
|
307
|
+
"description": "The moment it changed (ISO 8601), worded by the row."
|
|
308
|
+
},
|
|
309
|
+
"blocks": {
|
|
310
|
+
"type": "integer",
|
|
311
|
+
"description": "How many blocks it has, worded with its plural form."
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
"required": [
|
|
315
|
+
"id",
|
|
316
|
+
"title"
|
|
317
|
+
]
|
|
318
|
+
},
|
|
319
|
+
"choice": {
|
|
320
|
+
"const": "«Открыть» dispatches sf-mail-letters-open {id}; the ⋯ menu sf-mail-letters-copy {id}, sf-mail-letters-rename {id} and sf-mail-letters-delete {ids, id}; «Новое письмо» sf-mail-letters-create {}. The element opens, copies, renames and deletes nothing: the host does, and passes letters back."
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
"state": {
|
|
324
|
+
"machines": {
|
|
325
|
+
"order": [
|
|
326
|
+
"changed",
|
|
327
|
+
"title"
|
|
328
|
+
],
|
|
329
|
+
"search": [
|
|
330
|
+
"empty",
|
|
331
|
+
"filtered",
|
|
332
|
+
"nothing-found"
|
|
333
|
+
]
|
|
334
|
+
},
|
|
335
|
+
"visual_states": [
|
|
336
|
+
"default",
|
|
337
|
+
"selected",
|
|
338
|
+
"empty",
|
|
339
|
+
"open",
|
|
340
|
+
"closed"
|
|
341
|
+
]
|
|
342
|
+
},
|
|
343
|
+
"ownership": {
|
|
344
|
+
"source": "simai/ui-pro",
|
|
345
|
+
"data": "host",
|
|
346
|
+
"effects": "host",
|
|
347
|
+
"forbidden_client_responsibilities": [
|
|
348
|
+
"opening, copying, renaming or deleting a letter",
|
|
349
|
+
"reading or writing the letter store",
|
|
350
|
+
"asking for a new name or confirming a delete"
|
|
351
|
+
]
|
|
352
|
+
},
|
|
353
|
+
"security": {
|
|
354
|
+
"permissions_owner": "host",
|
|
355
|
+
"untrusted_inputs": [
|
|
356
|
+
"letter titles (drawn as text)"
|
|
357
|
+
],
|
|
358
|
+
"network_policy": "deny"
|
|
359
|
+
},
|
|
360
|
+
"presentation": {
|
|
361
|
+
"themes": [
|
|
362
|
+
"light",
|
|
363
|
+
"dark"
|
|
364
|
+
],
|
|
365
|
+
"locales": [
|
|
366
|
+
"en",
|
|
367
|
+
"ru"
|
|
368
|
+
],
|
|
369
|
+
"responsive": [
|
|
370
|
+
"desktop",
|
|
371
|
+
"mobile"
|
|
372
|
+
]
|
|
373
|
+
},
|
|
374
|
+
"ai_guidance": {
|
|
375
|
+
"use_when": "Use sf-mail-letters wherever a person picks among the letters they have in SIMAI Email Editor.",
|
|
376
|
+
"do_not": [
|
|
377
|
+
"Do not open, copy, rename or delete in the element; listen for its events and do it in the host",
|
|
378
|
+
"Do not pass a worded date in at; pass the moment and let the row word it",
|
|
379
|
+
"Do not confirm a delete inside the element; the host asks",
|
|
380
|
+
"Do not draw a second search field or order control beside it; set query and order instead"
|
|
381
|
+
],
|
|
382
|
+
"required_reads": [
|
|
383
|
+
"inputs",
|
|
384
|
+
"contracts",
|
|
385
|
+
"events",
|
|
386
|
+
"accessibility"
|
|
387
|
+
],
|
|
388
|
+
"minimal_example": "<sf-mail-letters id=\"letters\"></sf-mail-letters> <script>letters.letters = [{id: 'prj_1', title: 'Осенняя рассылка', at: '2026-10-29T08:00:00Z', blocks: 7}];</script>",
|
|
389
|
+
"owner_commands": [
|
|
390
|
+
"node scripts/test.mjs",
|
|
391
|
+
"node scripts/run-manifest-probes.mjs <free output> <package output> mail-letters"
|
|
392
|
+
]
|
|
393
|
+
},
|
|
394
|
+
"accessibility": {
|
|
395
|
+
"accessible_name": "internal",
|
|
396
|
+
"focus": "The bar comes first -- the search, the order, «Новое письмо» -- then every row's «Открыть» and its ⋯ in the tab order; the menu is sf-menu-context and keeps its own keyboard. A row's ⋯ is named «Действия с письмом: <name>», so two rows never sound alike. The open letter's row says «открыто сейчас» in its own words, not by colour alone, and offers no «Открыть»."
|
|
397
|
+
},
|
|
398
|
+
"compatibility": {
|
|
399
|
+
"migrations": [
|
|
400
|
+
{
|
|
401
|
+
"from": "0.1.0",
|
|
402
|
+
"to": "1.0.0",
|
|
403
|
+
"changes": [
|
|
404
|
+
"moved from simai/ui-mail to ui-pro (D31): standard simai.smart-component 1.4, the element is made from component.json; words in lang/",
|
|
405
|
+
"sf-mail-letters-new -> sf-mail-letters-create (event; never released, no alias)",
|
|
406
|
+
"sf-mail-letters-delete carries {ids, id} (was {id})",
|
|
407
|
+
"choose, search and sort are actions"
|
|
408
|
+
]
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
"from": "1.0.0",
|
|
412
|
+
"to": "1.0.1",
|
|
413
|
+
"changes": [
|
|
414
|
+
"The letter's relative time through core's formatRelativeTime; needs core.runtime >= 1.20.0. No visible change. Nothing to change for a host on a pair from core.runtime 1.20.0 on."
|
|
415
|
+
]
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
"from": "1.0.1",
|
|
419
|
+
"to": "1.0.2",
|
|
420
|
+
"changes": [
|
|
421
|
+
"Draws and finds the renamed Framework elements by their new tags (the row's ⋯ is sf-button-icon, its menu sf-menu-context); the rule relations name cl-<new>. Needs the SIMAI Framework pair with the tag renames (core.runtime 1.21.0). No visible change. Nothing to change for a host on that pair; a host that writes the former tags keeps working until 2027-01-01."
|
|
422
|
+
]
|
|
423
|
+
}
|
|
424
|
+
]
|
|
425
|
+
},
|
|
426
|
+
"inputs": {
|
|
427
|
+
"template": {
|
|
428
|
+
"const": "default"
|
|
429
|
+
},
|
|
430
|
+
"letters": {
|
|
431
|
+
"items": {
|
|
432
|
+
"type": "object",
|
|
433
|
+
"properties": {
|
|
434
|
+
"id": {
|
|
435
|
+
"type": "string"
|
|
436
|
+
},
|
|
437
|
+
"title": {
|
|
438
|
+
"type": "string"
|
|
439
|
+
},
|
|
440
|
+
"at": {
|
|
441
|
+
"type": "string"
|
|
442
|
+
},
|
|
443
|
+
"blocks": {
|
|
444
|
+
"type": "integer"
|
|
445
|
+
}
|
|
446
|
+
},
|
|
447
|
+
"required": [
|
|
448
|
+
"id",
|
|
449
|
+
"title"
|
|
450
|
+
]
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
@layer sf.reset, sf.tokens, sf.base, sf.paint, sf.utilities, sf.components, sf.overrides, sf.states;
|
|
3
|
+
@layer sf.components {
|
|
4
|
+
/* sf-mail-letters, the letters page of SIMAI Email Editor: a bar (search,
|
|
5
|
+
order, «Новое письмо») over a list of rows. A row is the name, when it
|
|
6
|
+
changed and how many blocks, with «Открыть» and ⋯ at its end; the open
|
|
7
|
+
letter is marked. The host is display: contents; .sf-mail-letters is what
|
|
8
|
+
a page places. Every value is a Framework token. */
|
|
9
|
+
.sf-mail-letters {
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
gap: var(--sf-space-1\/2);
|
|
13
|
+
}
|
|
14
|
+
.sf-mail-letters-bar {
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-wrap: wrap;
|
|
17
|
+
align-items: flex-end;
|
|
18
|
+
gap: var(--sf-space-1\/2);
|
|
19
|
+
}
|
|
20
|
+
.sf-mail-letters-search {
|
|
21
|
+
flex-grow: 1;
|
|
22
|
+
min-width: var(--sf-g0);
|
|
23
|
+
min-inline-size: var(--sf-g0);
|
|
24
|
+
}
|
|
25
|
+
.sf-mail-letters-list {
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
margin: 0;
|
|
29
|
+
padding: 0;
|
|
30
|
+
list-style: none;
|
|
31
|
+
}
|
|
32
|
+
.sf-mail-letters-row {
|
|
33
|
+
display: flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
gap: var(--sf-space-1\/2);
|
|
36
|
+
padding: var(--sf-space-1\/4) var(--sf-space-1\/2);
|
|
37
|
+
border-radius: var(--sf-radius--ui);
|
|
38
|
+
font-size: var(--sf-text--size-1\/2);
|
|
39
|
+
line-height: var(--sf-text--height-1\/2);
|
|
40
|
+
}
|
|
41
|
+
.sf-mail-letters-row:hover {
|
|
42
|
+
background: var(--sf-surface-transparent-hover);
|
|
43
|
+
}
|
|
44
|
+
.sf-mail-letters-row.is-current {
|
|
45
|
+
background: var(--sf-primary-transparent-select);
|
|
46
|
+
}
|
|
47
|
+
.sf-mail-letters-words {
|
|
48
|
+
display: flex;
|
|
49
|
+
flex-direction: column;
|
|
50
|
+
flex-grow: 1;
|
|
51
|
+
min-width: 0;
|
|
52
|
+
min-inline-size: 0;
|
|
53
|
+
}
|
|
54
|
+
.sf-mail-letters-title {
|
|
55
|
+
overflow: hidden;
|
|
56
|
+
font-weight: var(--sf-font-weight-medium);
|
|
57
|
+
text-overflow: ellipsis;
|
|
58
|
+
white-space: nowrap;
|
|
59
|
+
}
|
|
60
|
+
.sf-mail-letters-summary {
|
|
61
|
+
color: var(--sf-on-surface-variant);
|
|
62
|
+
}
|
|
63
|
+
/* «Открыть» and ⋯ are one group of a row's actions, not a toolbar: buttons
|
|
64
|
+
of one group stand --sf-space-1/3 apart, 8 and 4 under compact density
|
|
65
|
+
(C105 H5, C144; RG-S2-46). They stood 4 apart. */
|
|
66
|
+
.sf-mail-letters-actions {
|
|
67
|
+
display: flex;
|
|
68
|
+
flex-shrink: 0;
|
|
69
|
+
align-items: center;
|
|
70
|
+
gap: var(--sf-space-1\/3);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
@layer sf.reset, sf.tokens, sf.base, sf.paint, sf.utilities, sf.components, sf.overrides, sf.states;
|
|
2
|
+
@layer sf.components{.sf-mail-letters{display:flex;flex-direction:column;gap:var(--sf-space-1\/2)}.sf-mail-letters-bar{display:flex;flex-wrap:wrap;align-items:flex-end;gap:var(--sf-space-1\/2)}.sf-mail-letters-search{flex-grow:1;min-width:var(--sf-g0);min-inline-size:var(--sf-g0)}.sf-mail-letters-list{display:flex;flex-direction:column;margin:0;padding:0;list-style:none}.sf-mail-letters-row{display:flex;align-items:center;gap:var(--sf-space-1\/2);padding:var(--sf-space-1\/4) var(--sf-space-1\/2);border-radius:var(--sf-radius--ui);font-size:var(--sf-text--size-1\/2);line-height:var(--sf-text--height-1\/2)}.sf-mail-letters-row:hover{background:var(--sf-surface-transparent-hover)}.sf-mail-letters-row.is-current{background:var(--sf-primary-transparent-select)}.sf-mail-letters-words{display:flex;flex-direction:column;flex-grow:1;min-width:0;min-inline-size:0}.sf-mail-letters-title{overflow:hidden;font-weight:var(--sf-font-weight-medium);text-overflow:ellipsis;white-space:nowrap}.sf-mail-letters-summary{color:var(--sf-on-surface-variant)}.sf-mail-letters-actions{display:flex;flex-shrink:0;align-items:center;gap:var(--sf-space-1\/3)}}
|
|
Binary file
|