@simai-studio/mail 0.0.0-stage → 1.0.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/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,512 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "The source of sf-mail-library's 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-library (smart.manifest.json 0.2.0, ui-mail 330720b) 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-library (owner decision q-08d1979fc9). Written by hand in the 1.4 form on the shape of sf-chat-interlocutor; x-decisions says how each point was decided.",
|
|
3
|
+
"id": "smart.mail-library",
|
|
4
|
+
"tag": "sf-mail-library",
|
|
5
|
+
"version": "1.0.8",
|
|
6
|
+
"kind": "leaf",
|
|
7
|
+
"family": "list",
|
|
8
|
+
"settings": {
|
|
9
|
+
"items": {
|
|
10
|
+
"type": "list",
|
|
11
|
+
"default": [],
|
|
12
|
+
"of": {
|
|
13
|
+
"type": "id",
|
|
14
|
+
"title": "string",
|
|
15
|
+
"purpose": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"optional": true
|
|
18
|
+
},
|
|
19
|
+
"icon": {
|
|
20
|
+
"type": "icon",
|
|
21
|
+
"optional": true
|
|
22
|
+
},
|
|
23
|
+
"group": "id",
|
|
24
|
+
"sample": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"optional": true
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"entries": {
|
|
30
|
+
"key": "type",
|
|
31
|
+
"changes": "content"
|
|
32
|
+
},
|
|
33
|
+
"x-markup": "a property (a host has objects), or the JSON island a server prints; title, purpose and sample are text, never markup. A row whose group is not in groups is not shown.",
|
|
34
|
+
"summary": "The blocks a letter can take, one row each: {type, title, purpose, icon, group, sample?}, in the person's words. A row whose group is not in groups is not shown."
|
|
35
|
+
},
|
|
36
|
+
"groups": {
|
|
37
|
+
"type": "list",
|
|
38
|
+
"default": [],
|
|
39
|
+
"of": {
|
|
40
|
+
"id": "id",
|
|
41
|
+
"title": "string"
|
|
42
|
+
},
|
|
43
|
+
"entries": {
|
|
44
|
+
"key": "id",
|
|
45
|
+
"changes": "content"
|
|
46
|
+
},
|
|
47
|
+
"summary": "The groups in the order they are shown: {id, title}. With more than one, the category switch «Все» and one per group is drawn above the rows."
|
|
48
|
+
},
|
|
49
|
+
"places": {
|
|
50
|
+
"type": "list",
|
|
51
|
+
"default": [],
|
|
52
|
+
"of": {
|
|
53
|
+
"family": "id",
|
|
54
|
+
"title": "string",
|
|
55
|
+
"current": {
|
|
56
|
+
"type": "id",
|
|
57
|
+
"optional": true
|
|
58
|
+
},
|
|
59
|
+
"items": "list"
|
|
60
|
+
},
|
|
61
|
+
"entries": {
|
|
62
|
+
"key": "family",
|
|
63
|
+
"changes": "content"
|
|
64
|
+
},
|
|
65
|
+
"summary": "The places every letter has («Шапка», «Подвал») and their variants: {family, title, current, items: [{type, title, purpose, icon}]}. The current variant is marked and not offered again; shown with «Все» only."
|
|
66
|
+
},
|
|
67
|
+
"query": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"default": "",
|
|
70
|
+
"summary": "The search words; the field inside the element writes it while the person types. A block is found by its name, its purpose and its type."
|
|
71
|
+
},
|
|
72
|
+
"category": {
|
|
73
|
+
"type": "string",
|
|
74
|
+
"default": "all",
|
|
75
|
+
"summary": "all, or the id of one group, as its segment of the category switch would set it. An id no group has shows every group, so a stale filter never leaves the Library empty."
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"values": {},
|
|
79
|
+
"events": {
|
|
80
|
+
"add": {
|
|
81
|
+
"carries": {
|
|
82
|
+
"type": "id"
|
|
83
|
+
},
|
|
84
|
+
"own-verb": true,
|
|
85
|
+
"x-summary": "A row was pressed (a click, Enter or Space): the host adds a block of that type where it decides (after the selection, at the end). The element never touches a letter.",
|
|
86
|
+
"summary": "A block was chosen to add: {type}. The host adds it where it decides; the element never touches a letter."
|
|
87
|
+
},
|
|
88
|
+
"replace": {
|
|
89
|
+
"carries": {
|
|
90
|
+
"family": "id",
|
|
91
|
+
"type": "id"
|
|
92
|
+
},
|
|
93
|
+
"own-verb": true,
|
|
94
|
+
"x-summary": "Another variant of a place was chosen: the host replaces the place's block, in one step that can be undone. The current variant raises nothing.",
|
|
95
|
+
"summary": "Another variant of a place was chosen: {family, type}. The host replaces the block; the variant the letter has now raises nothing."
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"actions": {
|
|
99
|
+
"search": {
|
|
100
|
+
"with": {
|
|
101
|
+
"query": "string"
|
|
102
|
+
},
|
|
103
|
+
"x-outcomes": [
|
|
104
|
+
"applied"
|
|
105
|
+
],
|
|
106
|
+
"x-summary": "the search field's input: the setting query, the rows filtered at once",
|
|
107
|
+
"summary": "Search as the field does: sets query and filters at once.",
|
|
108
|
+
"x-returns": {
|
|
109
|
+
"type": "object",
|
|
110
|
+
"description": "{outcome: applied}"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"filter": {
|
|
114
|
+
"with": {
|
|
115
|
+
"category": "string"
|
|
116
|
+
},
|
|
117
|
+
"x-outcomes": [
|
|
118
|
+
"applied"
|
|
119
|
+
],
|
|
120
|
+
"x-summary": "a segment chosen in the category switch: the setting category (all or a group's id)",
|
|
121
|
+
"summary": "Show one group, or all, as its segment of the category switch would.",
|
|
122
|
+
"x-returns": {
|
|
123
|
+
"type": "object",
|
|
124
|
+
"description": "{outcome: applied}"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"add": {
|
|
128
|
+
"with": {
|
|
129
|
+
"type": "id"
|
|
130
|
+
},
|
|
131
|
+
"x-outcomes": [
|
|
132
|
+
"applied",
|
|
133
|
+
"refused"
|
|
134
|
+
],
|
|
135
|
+
"x-summary": "a row's press: sends add {type}; refused unknown for a type no item has",
|
|
136
|
+
"summary": "Add a block as its row would: sends add {type}; refused unknown for a type no item has.",
|
|
137
|
+
"x-returns": {
|
|
138
|
+
"type": "object",
|
|
139
|
+
"description": "{outcome: applied} or {outcome: refused, reason: unknown}"
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
"replace": {
|
|
143
|
+
"with": {
|
|
144
|
+
"family": "id",
|
|
145
|
+
"type": "id"
|
|
146
|
+
},
|
|
147
|
+
"x-outcomes": [
|
|
148
|
+
"applied",
|
|
149
|
+
"refused"
|
|
150
|
+
],
|
|
151
|
+
"x-summary": "a variant row's press: sends replace {family, type}; refused current for the variant the letter has now, unknown for a place or variant not given",
|
|
152
|
+
"summary": "Choose a variant of a place as its row would: sends replace {family, type}; refused current for the variant the letter has now.",
|
|
153
|
+
"x-returns": {
|
|
154
|
+
"type": "object",
|
|
155
|
+
"description": "{outcome: applied} or {outcome: refused, reason: current | unknown}"
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
"slots": {},
|
|
160
|
+
"keyboard": {
|
|
161
|
+
"host": {
|
|
162
|
+
"Tab": "reach"
|
|
163
|
+
},
|
|
164
|
+
"row": {
|
|
165
|
+
"Enter": "add",
|
|
166
|
+
"Space": "add"
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
"relations": [
|
|
170
|
+
{
|
|
171
|
+
"name": "cl-input"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"name": "cl-segmented"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"name": "cl-icon"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"name": "cl-empty-state"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"name": "sr-only/default"
|
|
184
|
+
}
|
|
185
|
+
],
|
|
186
|
+
"templates": {
|
|
187
|
+
"default": {
|
|
188
|
+
"file": "js/templates/default.js",
|
|
189
|
+
"$comment": "The Lit template in JavaScript, the migration form of §5.2 (§16)."
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
"styles": "js/templates/default.css",
|
|
193
|
+
"examples": "examples.json",
|
|
194
|
+
"docs": "docs.md",
|
|
195
|
+
"lang": "lang/",
|
|
196
|
+
"accessibility": {
|
|
197
|
+
"role": "group",
|
|
198
|
+
"name": {
|
|
199
|
+
"from": [
|
|
200
|
+
"runtime.search-label"
|
|
201
|
+
]
|
|
202
|
+
},
|
|
203
|
+
"keys": {
|
|
204
|
+
"Tab": "reach",
|
|
205
|
+
"Enter": "add",
|
|
206
|
+
"Space": "add"
|
|
207
|
+
},
|
|
208
|
+
"x-keys": "the search field first, then the category switch (one Tab stop, the arrows move the choice), then every row as an ordinary button in the Tab order; Enter or Space on a row adds its block or replaces the variant"
|
|
209
|
+
},
|
|
210
|
+
"host-states": {},
|
|
211
|
+
"css-variables": {},
|
|
212
|
+
"x-summary": "The blocks a letter of SIMAI Email Editor can take, grouped by what they are for, with a category switch, a search over their names and purposes, and the variants of the letter's header and footer. A row adds its block or replaces its variant; the element raises an event and never touches a letter.",
|
|
213
|
+
"x-source": {
|
|
214
|
+
"package": "ui-pro",
|
|
215
|
+
"folder": "mail-library",
|
|
216
|
+
"manifest": "simai/ui-mail@330720b package/src/smart/mail-library/smart.manifest.json (0.2.0)",
|
|
217
|
+
"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"
|
|
218
|
+
},
|
|
219
|
+
"x-words": [],
|
|
220
|
+
"x-renamed": [
|
|
221
|
+
"events.sf-mail-library-variant {family, type} → replace {family, type} (vocabulary §5.1: a request takes a bare verb; variant is a noun, and no §5 verb means «put this variant in place of the current one»); never released, so no dated alias",
|
|
222
|
+
"methods.choose(family, type) → the action replace {family, type}, answering refused current for the variant the letter has now (it sent nothing before, and still sends nothing)",
|
|
223
|
+
"methods.add(type), search(value), filter(category) → the actions add {type}, search {query}, filter {category} (§4.4), taking one object or the parameters in declared order",
|
|
224
|
+
"words: ui-mail's MAIL_LIBRARY_TEXT in index.js → lang/<locale>.json runtime words (§11): search-label, add-text, category-label, all-text, change-variant-text, current-text, nothing-found-heading, nothing-found-text",
|
|
225
|
+
"sf-input type=search → input-type=search, sf-empty-state title → heading: the names the pinned Framework declares (title is a dated alias of heading)",
|
|
226
|
+
"css: scss/_smart__mail_library.scss → js/templates/default.css, the same rules without the host's display: block (a Smart host is display: contents)"
|
|
227
|
+
],
|
|
228
|
+
"x-decisions": [
|
|
229
|
+
"version: 0.2.0 in simai/ui-mail → 1.0.0 here: the first release, in ui-pro, of a tag ui-mail never released.",
|
|
230
|
+
"names: sf-mail-library stays (owner decision q-08d1979fc9) and keeps the Framework's sf- prefix, as the package's other elements do.",
|
|
231
|
+
"shape: a leaf. It places sf-input, an sf-segmented category switch, sf-icon rows and sf-empty-state as its own markup; no part is in a role a rule could bind.",
|
|
232
|
+
"events: add {type} and replace {family, type} are verbs of this element (vocabulary §5.1): adding a block of a type to a letter is not create (the Library makes nothing, it names a kind for the host), and replacing a place's variant is not select (local) or change (a value the element holds). Neither is cancelable: the element changes nothing, so there is nothing to undo.",
|
|
233
|
+
"items, groups, places: data, not a dependency. The host passes them in the person's language, in the order they are shown, so the element works for any block library and knows nothing of the editor's manifest format.",
|
|
234
|
+
"category: a stale id (a group the host no longer gives) shows every group, never an empty Library; the category switch is drawn only with more than one group.",
|
|
235
|
+
"places: the «Шапка и подвал» section shows with «Все» only -- a category is about content. The current variant is marked (is-selected, aria-pressed=true, a tick, «сейчас в письме» for a screen reader) and replace answers refused current for it.",
|
|
236
|
+
"a11y-name: a row's accessible name is its own words -- the block's name and purpose -- and then the action, so a voice command with the block's name reaches it (WCAG 2.5.3); the icons are aria-hidden, a group is role=group named by its title and the title text is hidden so it is not read twice.",
|
|
237
|
+
"first paint (§5.4): no late data. The editor's blocks come from its own manifest with the page, together with the groups and places; the printed markup is the search field, the category switch and the rows. A host that loads its blocks later holds its own skeleton.",
|
|
238
|
+
"words: lang/ru.json and lang/en.json; ru is the source language (the ui-mail words were written in Russian first). The own verbs' words are events.<verb>.label.",
|
|
239
|
+
"css-variables: none yet. Every value is a Framework token, as it was in ui-mail.",
|
|
240
|
+
"self-contained: nothing from simai/ui-mail is imported.",
|
|
241
|
+
"version 1.0.3 (2026-11-09): a patch (no visible change). A category chip that is not chosen 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.",
|
|
242
|
+
"version 1.0.4 (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.",
|
|
243
|
+
"version 1.0.5 (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.",
|
|
244
|
+
"version 1.0.6 (2026-11-17): a patch, for SIMAI Framework group build 9 (ui-source 3d55e44d7). The first-paint snapshots and sheet list are retaken over the group build. Settings, values, events and actions are unchanged. The number is above 1.0.5, the highest on any ui-pro branch and in the released pro-589ced99cfbd.",
|
|
245
|
+
"version 1.0.7 (2026-11-18): a patch (docs finding DF-16). The category chips were a row of sf-button with aria-pressed, the chosen one tonal primary: a screen reader heard toggles, the look was not the pressed look, and the pair's sf-button docs say a choice of one among several is no row of toggles -- write sf-segmented (owner decision C211 (1)). The chips are now one sf-segmented (size 1/2, the track look) named «Категория», its items «Все» and one per group; the chosen segment takes the pair's plate, the others are radios with aria-checked=false, Tab reaches the switch once and the arrows move the choice. The row still scrolls sideways when the groups outgrow the panel. The rule relation cl-button becomes cl-segmented. The row icons and their «+» move from the old icon scale size=\"2\" to its ladder name, data-sf-icon-scale=\"ladder\" size=\"1/2\" (journal value-icon-size-ladder, owner decision C151): the same 20 px at 1440 and 16 px at 390, and no legacy-name note in the console. Settings, values, events and actions are unchanged (filter({category}) is what a segment calls). The number is above 1.0.6, the highest on any ui-pro branch and in the released pro-a57887949f9a.",
|
|
246
|
+
"version 1.0.8 (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 sheets its examples print moved (static/sheets.json: the text-overflow and text-align utility sheets, and for the window and the list sf-bulk-actions, the progress bar, the text-max-width and user-select utilities). Its own code, settings, values and events are unchanged. 1.0.8 is above 1.0.7 (ui-pro), the highest on any origin branch."
|
|
247
|
+
],
|
|
248
|
+
"x-rule": {
|
|
249
|
+
"$comment": [
|
|
250
|
+
"The Library draws its search field as sf-input, the category switch as",
|
|
251
|
+
"sf-segmented, the row icons as sf-icon and «nothing found» as sf-empty-state;",
|
|
252
|
+
"a tag it renders is a tag it fetches. The words a row says to a screen",
|
|
253
|
+
"reader are visually hidden with the sr-only utility, which a class scan can",
|
|
254
|
+
"miss on a node drawn later, so it comes with the component. Nothing else:",
|
|
255
|
+
"the blocks are data the host passes in."
|
|
256
|
+
]
|
|
257
|
+
},
|
|
258
|
+
"x-registry": {
|
|
259
|
+
"capabilities": [
|
|
260
|
+
"interaction",
|
|
261
|
+
"keyboard",
|
|
262
|
+
"search",
|
|
263
|
+
"responsive"
|
|
264
|
+
],
|
|
265
|
+
"persistence": {
|
|
266
|
+
"mode": "none",
|
|
267
|
+
"source_of_truth": "host",
|
|
268
|
+
"network_owner": "host",
|
|
269
|
+
"revision_field": null
|
|
270
|
+
},
|
|
271
|
+
"readiness": {
|
|
272
|
+
"level": "host-required",
|
|
273
|
+
"required_checks": [
|
|
274
|
+
"manifest",
|
|
275
|
+
"loader-rule",
|
|
276
|
+
"mail-library-probe"
|
|
277
|
+
]
|
|
278
|
+
},
|
|
279
|
+
"tags": [
|
|
280
|
+
"mail",
|
|
281
|
+
"library",
|
|
282
|
+
"catalogue",
|
|
283
|
+
"blocks"
|
|
284
|
+
],
|
|
285
|
+
"contracts": {
|
|
286
|
+
"item": {
|
|
287
|
+
"type": "object",
|
|
288
|
+
"properties": {
|
|
289
|
+
"type": {
|
|
290
|
+
"type": "string",
|
|
291
|
+
"description": "The block's type: what add carries."
|
|
292
|
+
},
|
|
293
|
+
"title": {
|
|
294
|
+
"type": "string",
|
|
295
|
+
"description": "Its name in the person's words, drawn as text."
|
|
296
|
+
},
|
|
297
|
+
"purpose": {
|
|
298
|
+
"type": "string",
|
|
299
|
+
"description": "What it is for, the row's second line."
|
|
300
|
+
},
|
|
301
|
+
"icon": {
|
|
302
|
+
"type": "string",
|
|
303
|
+
"description": "A Framework icon name; widgets when none."
|
|
304
|
+
},
|
|
305
|
+
"group": {
|
|
306
|
+
"type": "string",
|
|
307
|
+
"description": "The id of the group it is shown under."
|
|
308
|
+
},
|
|
309
|
+
"sample": {
|
|
310
|
+
"type": "string",
|
|
311
|
+
"description": "A sample of its text, in the row's tooltip."
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
"required": [
|
|
315
|
+
"type",
|
|
316
|
+
"title",
|
|
317
|
+
"group"
|
|
318
|
+
]
|
|
319
|
+
},
|
|
320
|
+
"place": {
|
|
321
|
+
"type": "object",
|
|
322
|
+
"properties": {
|
|
323
|
+
"family": {
|
|
324
|
+
"type": "string",
|
|
325
|
+
"description": "The place: header or footer."
|
|
326
|
+
},
|
|
327
|
+
"title": {
|
|
328
|
+
"type": "string",
|
|
329
|
+
"description": "Its name: «Шапка», «Подвал»."
|
|
330
|
+
},
|
|
331
|
+
"current": {
|
|
332
|
+
"type": "string",
|
|
333
|
+
"description": "The type of the variant the letter has now."
|
|
334
|
+
},
|
|
335
|
+
"items": {
|
|
336
|
+
"type": "array",
|
|
337
|
+
"description": "Its variants, {type, title, purpose, icon}."
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
"required": [
|
|
341
|
+
"family",
|
|
342
|
+
"title",
|
|
343
|
+
"items"
|
|
344
|
+
]
|
|
345
|
+
},
|
|
346
|
+
"choice": {
|
|
347
|
+
"const": "A row dispatches sf-mail-library-add {type}; another variant dispatches sf-mail-library-replace {family, type}. The element never changes a letter: the host adds or replaces, and passes the new current variant back in places."
|
|
348
|
+
}
|
|
349
|
+
},
|
|
350
|
+
"state": {
|
|
351
|
+
"machines": {
|
|
352
|
+
"search": [
|
|
353
|
+
"empty",
|
|
354
|
+
"filtered",
|
|
355
|
+
"nothing-found"
|
|
356
|
+
],
|
|
357
|
+
"category": [
|
|
358
|
+
"all",
|
|
359
|
+
"one-group"
|
|
360
|
+
]
|
|
361
|
+
},
|
|
362
|
+
"visual_states": [
|
|
363
|
+
"default",
|
|
364
|
+
"selected"
|
|
365
|
+
]
|
|
366
|
+
},
|
|
367
|
+
"ownership": {
|
|
368
|
+
"source": "simai/ui-pro",
|
|
369
|
+
"data": "host",
|
|
370
|
+
"effects": "host",
|
|
371
|
+
"forbidden_client_responsibilities": [
|
|
372
|
+
"changing the letter",
|
|
373
|
+
"reading the block manifest file",
|
|
374
|
+
"deciding where a block is inserted"
|
|
375
|
+
]
|
|
376
|
+
},
|
|
377
|
+
"security": {
|
|
378
|
+
"permissions_owner": "host",
|
|
379
|
+
"untrusted_inputs": [
|
|
380
|
+
"block titles, purposes and samples (drawn as text)"
|
|
381
|
+
],
|
|
382
|
+
"network_policy": "deny"
|
|
383
|
+
},
|
|
384
|
+
"presentation": {
|
|
385
|
+
"themes": [
|
|
386
|
+
"light",
|
|
387
|
+
"dark"
|
|
388
|
+
],
|
|
389
|
+
"locales": [
|
|
390
|
+
"en",
|
|
391
|
+
"ru"
|
|
392
|
+
],
|
|
393
|
+
"responsive": [
|
|
394
|
+
"desktop",
|
|
395
|
+
"mobile"
|
|
396
|
+
]
|
|
397
|
+
},
|
|
398
|
+
"ai_guidance": {
|
|
399
|
+
"use_when": "Use sf-mail-library wherever a person chooses a block to add to a letter of SIMAI Email Editor, or another variant of the letter's header or footer.",
|
|
400
|
+
"do_not": [
|
|
401
|
+
"Do not add the block in the element; listen for sf-mail-library-add and add it in the host",
|
|
402
|
+
"Do not pass the block manifest file; pass items and groups in the person's language",
|
|
403
|
+
"Do not draw a second search field beside it; set query instead",
|
|
404
|
+
"Do not replace the variant in the element; listen for sf-mail-library-replace and pass the new current back in places"
|
|
405
|
+
],
|
|
406
|
+
"required_reads": [
|
|
407
|
+
"inputs",
|
|
408
|
+
"contracts",
|
|
409
|
+
"events",
|
|
410
|
+
"accessibility"
|
|
411
|
+
],
|
|
412
|
+
"minimal_example": "<sf-mail-library id=\"library\"></sf-mail-library> <script>library.groups = [{id: 'basics', title: 'Основа'}]; library.items = [{type: 'heading', title: 'Заголовок', purpose: 'Главная мысль письма', icon: 'title', group: 'basics'}];</script>",
|
|
413
|
+
"owner_commands": [
|
|
414
|
+
"node scripts/test.mjs",
|
|
415
|
+
"node scripts/run-manifest-probes.mjs <free output> <package output> mail-library"
|
|
416
|
+
]
|
|
417
|
+
},
|
|
418
|
+
"accessibility": {
|
|
419
|
+
"accessible_name": "internal",
|
|
420
|
+
"focus": "The search field comes first, then the category switch (sf-segmented named «Категория»: one radio per group and «Все», one Tab stop, the arrows move the choice), then every row as an ordinary button; Enter or Space adds its block or replaces the variant. A group is a role=group named by its title, and the title text is hidden from assistive technology so it is not read twice. A row's accessible name is its own words -- the block's name and purpose -- followed by the action; a variant row says «сейчас в письме» for the current one and carries aria-pressed. Icons are decorative."
|
|
421
|
+
},
|
|
422
|
+
"compatibility": {
|
|
423
|
+
"migrations": [
|
|
424
|
+
{
|
|
425
|
+
"from": "0.2.0",
|
|
426
|
+
"to": "1.0.0",
|
|
427
|
+
"changes": [
|
|
428
|
+
"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/",
|
|
429
|
+
"sf-mail-library-variant -> sf-mail-library-replace (event; never released, no alias)",
|
|
430
|
+
"choose(family, type) -> the action replace {family, type}; add, search and filter are actions"
|
|
431
|
+
]
|
|
432
|
+
}
|
|
433
|
+
]
|
|
434
|
+
},
|
|
435
|
+
"inputs": {
|
|
436
|
+
"template": {
|
|
437
|
+
"const": "default"
|
|
438
|
+
},
|
|
439
|
+
"items": {
|
|
440
|
+
"items": {
|
|
441
|
+
"type": "object",
|
|
442
|
+
"properties": {
|
|
443
|
+
"type": {
|
|
444
|
+
"type": "string"
|
|
445
|
+
},
|
|
446
|
+
"title": {
|
|
447
|
+
"type": "string"
|
|
448
|
+
},
|
|
449
|
+
"purpose": {
|
|
450
|
+
"type": "string"
|
|
451
|
+
},
|
|
452
|
+
"icon": {
|
|
453
|
+
"type": "string"
|
|
454
|
+
},
|
|
455
|
+
"group": {
|
|
456
|
+
"type": "string"
|
|
457
|
+
},
|
|
458
|
+
"sample": {
|
|
459
|
+
"type": "string"
|
|
460
|
+
}
|
|
461
|
+
},
|
|
462
|
+
"required": [
|
|
463
|
+
"type",
|
|
464
|
+
"title",
|
|
465
|
+
"group"
|
|
466
|
+
]
|
|
467
|
+
}
|
|
468
|
+
},
|
|
469
|
+
"groups": {
|
|
470
|
+
"items": {
|
|
471
|
+
"type": "object",
|
|
472
|
+
"properties": {
|
|
473
|
+
"id": {
|
|
474
|
+
"type": "string"
|
|
475
|
+
},
|
|
476
|
+
"title": {
|
|
477
|
+
"type": "string"
|
|
478
|
+
}
|
|
479
|
+
},
|
|
480
|
+
"required": [
|
|
481
|
+
"id",
|
|
482
|
+
"title"
|
|
483
|
+
]
|
|
484
|
+
}
|
|
485
|
+
},
|
|
486
|
+
"places": {
|
|
487
|
+
"items": {
|
|
488
|
+
"type": "object",
|
|
489
|
+
"properties": {
|
|
490
|
+
"family": {
|
|
491
|
+
"type": "string"
|
|
492
|
+
},
|
|
493
|
+
"title": {
|
|
494
|
+
"type": "string"
|
|
495
|
+
},
|
|
496
|
+
"current": {
|
|
497
|
+
"type": "string"
|
|
498
|
+
},
|
|
499
|
+
"items": {
|
|
500
|
+
"type": "array"
|
|
501
|
+
}
|
|
502
|
+
},
|
|
503
|
+
"required": [
|
|
504
|
+
"family",
|
|
505
|
+
"title",
|
|
506
|
+
"items"
|
|
507
|
+
]
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,149 @@
|
|
|
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-library, the Library of SIMAI Email Editor: a search field and
|
|
5
|
+
the category switch over groups of rows. A row is the icon, the block's
|
|
6
|
+
name and, as a second line, what it is for; «+» shows on hover and focus
|
|
7
|
+
only, so 47 blocks are not 47 blue marks at rest. The host is
|
|
8
|
+
display: contents; .sf-mail-library is what a panel places. Every value
|
|
9
|
+
is a Framework token: the element brings no length or colour of its own. */
|
|
10
|
+
.sf-mail-library {
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
gap: var(--sf-space-1\/2);
|
|
14
|
+
}
|
|
15
|
+
/* One row on any panel: three rows of buttons outweigh the list they filter.
|
|
16
|
+
The category switch (sf-segmented) scrolls sideways when the groups
|
|
17
|
+
outgrow the panel; the arrows bring a segment that is out of view into it. */
|
|
18
|
+
.sf-mail-library-chips {
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-wrap: nowrap;
|
|
21
|
+
gap: var(--sf-space-1\/4);
|
|
22
|
+
padding-top: var(--sf-space-1\/4);
|
|
23
|
+
padding-bottom: var(--sf-space-1\/4);
|
|
24
|
+
padding-block: var(--sf-space-1\/4);
|
|
25
|
+
overflow-x: auto;
|
|
26
|
+
scrollbar-width: thin;
|
|
27
|
+
}
|
|
28
|
+
.sf-mail-library-chips > * {
|
|
29
|
+
flex-shrink: 0;
|
|
30
|
+
}
|
|
31
|
+
.sf-mail-library-groups {
|
|
32
|
+
display: flex;
|
|
33
|
+
flex-direction: column;
|
|
34
|
+
}
|
|
35
|
+
.sf-mail-library-group {
|
|
36
|
+
display: flex;
|
|
37
|
+
flex-direction: column;
|
|
38
|
+
}
|
|
39
|
+
.sf-mail-library-group + .sf-mail-library-group {
|
|
40
|
+
margin-top: var(--sf-space-1\/2);
|
|
41
|
+
-webkit-margin-before: var(--sf-space-1\/2);
|
|
42
|
+
margin-block-start: var(--sf-space-1\/2);
|
|
43
|
+
}
|
|
44
|
+
.sf-mail-library-group-title {
|
|
45
|
+
padding-left: var(--sf-space-1\/2);
|
|
46
|
+
padding-right: var(--sf-space-1\/2);
|
|
47
|
+
padding-inline: var(--sf-space-1\/2);
|
|
48
|
+
font-size: var(--sf-text--size-1\/3);
|
|
49
|
+
color: var(--sf-on-surface-variant);
|
|
50
|
+
text-transform: uppercase;
|
|
51
|
+
letter-spacing: var(--sf-px);
|
|
52
|
+
}
|
|
53
|
+
.sf-mail-library-row:where(:dir(ltr)){
|
|
54
|
+
text-align: left;
|
|
55
|
+
}
|
|
56
|
+
.sf-mail-library-row:where(:dir(rtl)){
|
|
57
|
+
text-align: right;
|
|
58
|
+
}
|
|
59
|
+
.sf-mail-library-row {
|
|
60
|
+
position: relative;
|
|
61
|
+
display: flex;
|
|
62
|
+
align-items: flex-start;
|
|
63
|
+
gap: var(--sf-space-1\/2);
|
|
64
|
+
width: 100%;
|
|
65
|
+
inline-size: 100%;
|
|
66
|
+
box-sizing: border-box;
|
|
67
|
+
padding: var(--sf-space-1\/4) var(--sf-space-1\/2);
|
|
68
|
+
border: 0;
|
|
69
|
+
border-radius: var(--sf-radius--ui);
|
|
70
|
+
background: transparent;
|
|
71
|
+
color: inherit;
|
|
72
|
+
font: inherit;
|
|
73
|
+
font-size: var(--sf-text--size-1\/2);
|
|
74
|
+
line-height: var(--sf-text--height-1\/2);
|
|
75
|
+
text-align: start;
|
|
76
|
+
cursor: pointer;
|
|
77
|
+
}
|
|
78
|
+
.sf-mail-library-row:hover {
|
|
79
|
+
background: var(--sf-surface-transparent-hover);
|
|
80
|
+
}
|
|
81
|
+
/* The rows stand flush one under another, so the system's ring is turned
|
|
82
|
+
inwards by its own width. */
|
|
83
|
+
.sf-mail-library-row.focus-visible {
|
|
84
|
+
outline: var(--sf-focus--width) var(--sf-focus--style) var(--sf-focus--color);
|
|
85
|
+
outline-offset: calc(var(--sf-focus--width) * -1);
|
|
86
|
+
}
|
|
87
|
+
.sf-mail-library-row:focus-visible {
|
|
88
|
+
outline: var(--sf-focus--width) var(--sf-focus--style) var(--sf-focus--color);
|
|
89
|
+
outline-offset: calc(var(--sf-focus--width) * -1);
|
|
90
|
+
}
|
|
91
|
+
.sf-mail-library-row-icon {
|
|
92
|
+
flex-shrink: 0;
|
|
93
|
+
color: var(--sf-on-surface-variant);
|
|
94
|
+
}
|
|
95
|
+
.sf-mail-library-row-words {
|
|
96
|
+
display: flex;
|
|
97
|
+
flex-direction: column;
|
|
98
|
+
flex-grow: 1;
|
|
99
|
+
min-width: 0;
|
|
100
|
+
min-inline-size: 0;
|
|
101
|
+
}
|
|
102
|
+
.sf-mail-library-row-title:where(:dir(ltr)){
|
|
103
|
+
padding-right: var(--sf-space-1);
|
|
104
|
+
}
|
|
105
|
+
.sf-mail-library-row-title:where(:dir(rtl)){
|
|
106
|
+
padding-left: var(--sf-space-1);
|
|
107
|
+
}
|
|
108
|
+
.sf-mail-library-row-title {
|
|
109
|
+
overflow: hidden;
|
|
110
|
+
-webkit-padding-end: var(--sf-space-1);
|
|
111
|
+
padding-inline-end: var(--sf-space-1);
|
|
112
|
+
font-weight: var(--sf-font-weight-medium);
|
|
113
|
+
text-overflow: ellipsis;
|
|
114
|
+
white-space: nowrap;
|
|
115
|
+
}
|
|
116
|
+
.sf-mail-library-row-purpose {
|
|
117
|
+
display: -webkit-box;
|
|
118
|
+
overflow: hidden;
|
|
119
|
+
color: var(--sf-on-surface-variant);
|
|
120
|
+
-webkit-box-orient: vertical;
|
|
121
|
+
-webkit-line-clamp: 2;
|
|
122
|
+
}
|
|
123
|
+
.sf-mail-library-row-add:where(:dir(ltr)){
|
|
124
|
+
right: var(--sf-space-1\/4);
|
|
125
|
+
}
|
|
126
|
+
.sf-mail-library-row-add:where(:dir(rtl)){
|
|
127
|
+
left: var(--sf-space-1\/4);
|
|
128
|
+
}
|
|
129
|
+
.sf-mail-library-row-add {
|
|
130
|
+
position: absolute;
|
|
131
|
+
top: var(--sf-space-1\/4);
|
|
132
|
+
inset-block-start: var(--sf-space-1\/4);
|
|
133
|
+
inset-inline-end: var(--sf-space-1\/4);
|
|
134
|
+
display: inline-flex;
|
|
135
|
+
color: var(--sf-primary);
|
|
136
|
+
opacity: 0;
|
|
137
|
+
}
|
|
138
|
+
.sf-mail-library-row:hover .sf-mail-library-row-add,
|
|
139
|
+
.sf-mail-library-row:focus .sf-mail-library-row-add {
|
|
140
|
+
opacity: 1;
|
|
141
|
+
}
|
|
142
|
+
/* The variant a place has now: marked at rest, with its tick. */
|
|
143
|
+
.sf-mail-library-row.is-selected {
|
|
144
|
+
background: var(--sf-primary-transparent-select);
|
|
145
|
+
}
|
|
146
|
+
.sf-mail-library-row.is-selected .sf-mail-library-row-add {
|
|
147
|
+
opacity: 1;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
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-library{display:flex;flex-direction:column;gap:var(--sf-space-1\/2)}.sf-mail-library-chips{display:flex;flex-wrap:nowrap;gap:var(--sf-space-1\/4);padding-top:var(--sf-space-1\/4);padding-bottom:var(--sf-space-1\/4);padding-block:var(--sf-space-1\/4);overflow-x:auto;scrollbar-width:thin}.sf-mail-library-chips>*{flex-shrink:0}.sf-mail-library-groups{display:flex;flex-direction:column}.sf-mail-library-group{display:flex;flex-direction:column}.sf-mail-library-group+.sf-mail-library-group{margin-top:var(--sf-space-1\/2);-webkit-margin-before:var(--sf-space-1\/2);margin-block-start:var(--sf-space-1\/2)}.sf-mail-library-group-title{padding-left:var(--sf-space-1\/2);padding-right:var(--sf-space-1\/2);padding-inline:var(--sf-space-1\/2);font-size:var(--sf-text--size-1\/3);color:var(--sf-on-surface-variant);text-transform:uppercase;letter-spacing:var(--sf-px)}.sf-mail-library-row:where(:dir(ltr)){text-align:left}.sf-mail-library-row:where(:dir(rtl)){text-align:right}.sf-mail-library-row{position:relative;display:flex;align-items:flex-start;gap:var(--sf-space-1\/2);width:100%;inline-size:100%;box-sizing:border-box;padding:var(--sf-space-1\/4) var(--sf-space-1\/2);border:0;border-radius:var(--sf-radius--ui);background:rgba(0,0,0,0);color:inherit;font:inherit;font-size:var(--sf-text--size-1\/2);line-height:var(--sf-text--height-1\/2);text-align:start;cursor:pointer}.sf-mail-library-row:hover{background:var(--sf-surface-transparent-hover)}.sf-mail-library-row.focus-visible{outline:var(--sf-focus--width) var(--sf-focus--style) var(--sf-focus--color);outline-offset:calc(var(--sf-focus--width)*-1)}.sf-mail-library-row:focus-visible{outline:var(--sf-focus--width) var(--sf-focus--style) var(--sf-focus--color);outline-offset:calc(var(--sf-focus--width)*-1)}.sf-mail-library-row-icon{flex-shrink:0;color:var(--sf-on-surface-variant)}.sf-mail-library-row-words{display:flex;flex-direction:column;flex-grow:1;min-width:0;min-inline-size:0}.sf-mail-library-row-title:where(:dir(ltr)){padding-right:var(--sf-space-1)}.sf-mail-library-row-title:where(:dir(rtl)){padding-left:var(--sf-space-1)}.sf-mail-library-row-title{overflow:hidden;-webkit-padding-end:var(--sf-space-1);padding-inline-end:var(--sf-space-1);font-weight:var(--sf-font-weight-medium);text-overflow:ellipsis;white-space:nowrap}.sf-mail-library-row-purpose{display:-webkit-box;overflow:hidden;color:var(--sf-on-surface-variant);-webkit-box-orient:vertical;-webkit-line-clamp:2}.sf-mail-library-row-add:where(:dir(ltr)){right:var(--sf-space-1\/4)}.sf-mail-library-row-add:where(:dir(rtl)){left:var(--sf-space-1\/4)}.sf-mail-library-row-add{position:absolute;top:var(--sf-space-1\/4);inset-block-start:var(--sf-space-1\/4);inset-inline-end:var(--sf-space-1\/4);display:inline-flex;color:var(--sf-primary);opacity:0}.sf-mail-library-row:hover .sf-mail-library-row-add,.sf-mail-library-row:focus .sf-mail-library-row-add{opacity:1}.sf-mail-library-row.is-selected{background:var(--sf-primary-transparent-select)}.sf-mail-library-row.is-selected .sf-mail-library-row-add{opacity:1}}
|
|
Binary file
|