@simai-studio/chat 1.0.0 → 1.1.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/README.md +7 -5
- package/dist/package-receipt.json +438 -436
- package/dist/set.json +4 -2
- package/dist/smart/chat-composer/aliases.json +11 -0
- package/dist/smart/chat-composer/aliases.json.gz +0 -0
- package/dist/smart/chat-composer/component.json +44 -4
- package/dist/smart/chat-composer/component.json.gz +0 -0
- package/dist/smart/chat-composer/css/chat-composer.css +8 -103
- package/dist/smart/chat-composer/css/chat-composer.css.gz +0 -0
- package/dist/smart/chat-composer/css/chat-composer.min.css +2 -2
- package/dist/smart/chat-composer/css/chat-composer.min.css.gz +0 -0
- package/dist/smart/chat-composer/examples.json +27 -8
- package/dist/smart/chat-composer/examples.json.gz +0 -0
- package/dist/smart/chat-composer/js/chat-composer.js +65 -60
- package/dist/smart/chat-composer/js/chat-composer.js.gz +0 -0
- package/dist/smart/chat-composer/js/chat-composer.min.js +17 -19
- package/dist/smart/chat-composer/js/chat-composer.min.js.gz +0 -0
- package/dist/smart/chat-composer/lang/en.json +1 -4
- package/dist/smart/chat-composer/lang/en.json.gz +0 -0
- package/dist/smart/chat-composer/lang/ru.json +1 -4
- package/dist/smart/chat-composer/lang/ru.json.gz +0 -0
- package/dist/smart/chat-composer/probe.json +21 -5
- package/dist/smart/chat-composer/probe.json.gz +0 -0
- package/dist/smart/chat-composer/smart.manifest.json +41 -15
- package/dist/smart/chat-composer/smart.manifest.json.gz +0 -0
- package/dist/smart/chat-composer/static/default/busy.html +2 -2
- package/dist/smart/chat-composer/static/default/busy.html.gz +0 -0
- package/dist/smart/chat-composer/static/default/disabled.html +1 -1
- package/dist/smart/chat-composer/static/default/disabled.html.gz +0 -0
- package/dist/smart/chat-composer/static/default/files.html +82 -27
- package/dist/smart/chat-composer/static/default/files.html.gz +0 -0
- package/dist/smart/chat-composer/static/default/near-limit.html +2 -2
- package/dist/smart/chat-composer/static/default/near-limit.html.gz +0 -0
- package/dist/smart/chat-composer/static/default/reference.html +2 -2
- package/dist/smart/chat-composer/static/default/reference.html.gz +0 -0
- package/dist/smart/chat-composer/static/sheets.json +24 -2
- package/dist/smart/chat-composer/static/sheets.json.gz +0 -0
- package/dist/smart/chat-composer/template/default.css +7 -82
- package/dist/smart/chat-composer/template/default.css.gz +0 -0
- package/dist/smart/chat-composer/template/default.js +1 -1
- package/dist/smart/chat-composer/template/default.js.gz +0 -0
- package/dist/smart/chat-composer/template/parts.js +40 -33
- package/dist/smart/chat-composer/template/parts.js.gz +0 -0
- package/dist/smart/chat-interlocutor/component.json +3 -2
- package/dist/smart/chat-interlocutor/component.json.gz +0 -0
- package/dist/smart/chat-interlocutor/css/chat-interlocutor.css +1 -36
- package/dist/smart/chat-interlocutor/css/chat-interlocutor.css.gz +0 -0
- package/dist/smart/chat-interlocutor/css/chat-interlocutor.min.css +2 -2
- package/dist/smart/chat-interlocutor/css/chat-interlocutor.min.css.gz +0 -0
- package/dist/smart/chat-interlocutor/js/chat-interlocutor.js +1 -1
- package/dist/smart/chat-interlocutor/js/chat-interlocutor.js.gz +0 -0
- package/dist/smart/chat-interlocutor/js/chat-interlocutor.min.js +1 -1
- package/dist/smart/chat-interlocutor/js/chat-interlocutor.min.js.gz +0 -0
- package/dist/smart/chat-interlocutor/smart.manifest.json +4 -4
- package/dist/smart/chat-interlocutor/smart.manifest.json.gz +0 -0
- package/dist/smart/chat-interlocutor/static/default/former.html +1 -1
- package/dist/smart/chat-interlocutor/static/default/former.html.gz +0 -0
- package/dist/smart/chat-interlocutor/static/default/grouped.html +1 -1
- package/dist/smart/chat-interlocutor/static/default/grouped.html.gz +0 -0
- package/dist/smart/chat-interlocutor/static/default/reference.html +1 -1
- package/dist/smart/chat-interlocutor/static/default/reference.html.gz +0 -0
- package/dist/smart/chat-interlocutor/static/default/single.html +1 -1
- package/dist/smart/chat-interlocutor/static/default/single.html.gz +0 -0
- package/dist/smart/chat-interlocutor/static/sheets.json +10 -5
- package/dist/smart/chat-interlocutor/static/sheets.json.gz +0 -0
- package/dist/smart/chat-interlocutor/template/default.css +1 -1
- package/dist/smart/chat-interlocutor/template/default.css.gz +0 -0
- package/dist/smart/chat-message/aliases.json +11 -0
- package/dist/smart/chat-message/aliases.json.gz +0 -0
- package/dist/smart/chat-message/component.json +30 -2
- package/dist/smart/chat-message/component.json.gz +0 -0
- package/dist/smart/chat-message/css/chat-message.css +91 -1122
- package/dist/smart/chat-message/css/chat-message.css.gz +0 -0
- package/dist/smart/chat-message/css/chat-message.min.css +2 -2
- package/dist/smart/chat-message/css/chat-message.min.css.gz +0 -0
- package/dist/smart/chat-message/examples.json +32 -10
- package/dist/smart/chat-message/examples.json.gz +0 -0
- package/dist/smart/chat-message/js/chat-message.js +511 -150
- package/dist/smart/chat-message/js/chat-message.js.gz +0 -0
- package/dist/smart/chat-message/js/chat-message.min.js +15 -25
- package/dist/smart/chat-message/js/chat-message.min.js.gz +0 -0
- package/dist/smart/chat-message/lang/en.json +1 -6
- package/dist/smart/chat-message/lang/en.json.gz +0 -0
- package/dist/smart/chat-message/lang/ru.json +1 -6
- package/dist/smart/chat-message/lang/ru.json.gz +0 -0
- package/dist/smart/chat-message/probe.json +31 -9
- package/dist/smart/chat-message/probe.json.gz +0 -0
- package/dist/smart/chat-message/smart.manifest.json +23 -13
- package/dist/smart/chat-message/smart.manifest.json.gz +0 -0
- package/dist/smart/chat-message/static/default/brief-card.html +1 -1
- package/dist/smart/chat-message/static/default/brief-card.html.gz +0 -0
- package/dist/smart/chat-message/static/default/brief-questions.html +1 -1
- package/dist/smart/chat-message/static/default/brief-questions.html.gz +0 -0
- package/dist/smart/chat-message/static/default/deliverables.html +1 -1
- package/dist/smart/chat-message/static/default/deliverables.html.gz +0 -0
- package/dist/smart/chat-message/static/default/document.html +2 -2
- package/dist/smart/chat-message/static/default/document.html.gz +0 -0
- package/dist/smart/chat-message/static/default/failed.html +1 -1
- package/dist/smart/chat-message/static/default/failed.html.gz +0 -0
- package/dist/smart/chat-message/static/default/feedback-reason.html +1 -1
- package/dist/smart/chat-message/static/default/feedback-reason.html.gz +0 -0
- package/dist/smart/chat-message/static/default/limit.html +1 -1
- package/dist/smart/chat-message/static/default/limit.html.gz +0 -0
- package/dist/smart/chat-message/static/default/proposal.html +17 -19
- package/dist/smart/chat-message/static/default/proposal.html.gz +0 -0
- package/dist/smart/chat-message/static/default/question.html +15 -11
- package/dist/smart/chat-message/static/default/question.html.gz +0 -0
- package/dist/smart/chat-message/static/default/reference.html +1 -1
- package/dist/smart/chat-message/static/default/reference.html.gz +0 -0
- package/dist/smart/chat-message/static/default/steps.html +1 -1
- package/dist/smart/chat-message/static/default/steps.html.gz +0 -0
- package/dist/smart/chat-message/static/default/stopped.html +1 -1
- package/dist/smart/chat-message/static/default/stopped.html.gz +0 -0
- package/dist/smart/chat-message/static/person/person-own.html +1 -1
- package/dist/smart/chat-message/static/person/person-own.html.gz +0 -0
- package/dist/smart/chat-message/static/person/person-reply.html +1 -5
- package/dist/smart/chat-message/static/person/person-reply.html.gz +0 -0
- package/dist/smart/chat-message/static/person/person.html +8 -10
- package/dist/smart/chat-message/static/person/person.html.gz +0 -0
- package/dist/smart/chat-message/static/sheets.json +66 -12
- package/dist/smart/chat-message/static/sheets.json.gz +0 -0
- package/dist/smart/chat-message/template/default.css +9 -99
- package/dist/smart/chat-message/template/default.css.gz +0 -0
- package/dist/smart/chat-threads/component.json +10 -2
- package/dist/smart/chat-threads/component.json.gz +0 -0
- package/dist/smart/chat-threads/css/chat-threads.css +1 -17
- package/dist/smart/chat-threads/css/chat-threads.css.gz +0 -0
- package/dist/smart/chat-threads/css/chat-threads.min.css +2 -2
- package/dist/smart/chat-threads/css/chat-threads.min.css.gz +0 -0
- package/dist/smart/chat-threads/examples.json +3 -3
- package/dist/smart/chat-threads/examples.json.gz +0 -0
- package/dist/smart/chat-threads/js/chat-threads.js +1 -1
- package/dist/smart/chat-threads/js/chat-threads.js.gz +0 -0
- package/dist/smart/chat-threads/js/chat-threads.min.js +1 -1
- package/dist/smart/chat-threads/js/chat-threads.min.js.gz +0 -0
- package/dist/smart/chat-threads/probe.json +3 -3
- package/dist/smart/chat-threads/probe.json.gz +0 -0
- package/dist/smart/chat-threads/smart.manifest.json +11 -4
- package/dist/smart/chat-threads/smart.manifest.json.gz +0 -0
- package/dist/smart/chat-threads/static/default/activity.html +27 -21
- package/dist/smart/chat-threads/static/default/activity.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/activity.skeleton.html +27 -21
- package/dist/smart/chat-threads/static/default/activity.skeleton.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/archive.html +9 -6
- package/dist/smart/chat-threads/static/default/archive.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/archive.skeleton.html +9 -6
- package/dist/smart/chat-threads/static/default/archive.skeleton.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/avatars.html +25 -13
- package/dist/smart/chat-threads/static/default/avatars.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/avatars.skeleton.html +25 -13
- package/dist/smart/chat-threads/static/default/avatars.skeleton.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/empty.html +11 -9
- package/dist/smart/chat-threads/static/default/empty.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/loading.html +11 -9
- package/dist/smart/chat-threads/static/default/loading.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/people.html +20 -11
- package/dist/smart/chat-threads/static/default/people.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/people.skeleton.html +20 -11
- package/dist/smart/chat-threads/static/default/people.skeleton.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/reference.html +22 -13
- package/dist/smart/chat-threads/static/default/reference.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/reference.skeleton.html +22 -13
- package/dist/smart/chat-threads/static/default/reference.skeleton.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/ungrouped.html +18 -13
- package/dist/smart/chat-threads/static/default/ungrouped.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/ungrouped.skeleton.html +18 -13
- package/dist/smart/chat-threads/static/default/ungrouped.skeleton.html.gz +0 -0
- package/dist/smart/chat-threads/static/sheets.json +81 -0
- package/dist/smart/chat-threads/static/sheets.json.gz +0 -0
- package/dist/smart/chat-threads/template/default.css +1 -1
- package/dist/smart/chat-threads/template/default.css.gz +0 -0
- package/dist/smart/chat-window/component.json +12 -2
- package/dist/smart/chat-window/component.json.gz +0 -0
- package/dist/smart/chat-window/css/chat-window.css +1 -209
- package/dist/smart/chat-window/css/chat-window.css.gz +0 -0
- package/dist/smart/chat-window/css/chat-window.min.css +2 -2
- package/dist/smart/chat-window/css/chat-window.min.css.gz +0 -0
- package/dist/smart/chat-window/examples.json +3 -3
- package/dist/smart/chat-window/examples.json.gz +0 -0
- package/dist/smart/chat-window/js/chat-window.js +520 -122
- package/dist/smart/chat-window/js/chat-window.js.gz +0 -0
- package/dist/smart/chat-window/js/chat-window.min.js +1 -1
- package/dist/smart/chat-window/js/chat-window.min.js.gz +0 -0
- package/dist/smart/chat-window/probe.json +3 -3
- package/dist/smart/chat-window/probe.json.gz +0 -0
- package/dist/smart/chat-window/smart.manifest.json +15 -6
- package/dist/smart/chat-window/smart.manifest.json.gz +0 -0
- package/dist/smart/chat-window/static/default/archived.html +15 -12
- package/dist/smart/chat-window/static/default/archived.html.gz +0 -0
- package/dist/smart/chat-window/static/default/embedded.html +19 -13
- package/dist/smart/chat-window/static/default/embedded.html.gz +0 -0
- package/dist/smart/chat-window/static/default/greeting.html +19 -13
- package/dist/smart/chat-window/static/default/greeting.html.gz +0 -0
- package/dist/smart/chat-window/static/default/people.html +21 -27
- package/dist/smart/chat-window/static/default/people.html.gz +0 -0
- package/dist/smart/chat-window/static/default/proposal.html +36 -32
- package/dist/smart/chat-window/static/default/proposal.html.gz +0 -0
- package/dist/smart/chat-window/static/default/reference.html +20 -14
- package/dist/smart/chat-window/static/default/reference.html.gz +0 -0
- package/dist/smart/chat-window/static/default/waiting.html +19 -13
- package/dist/smart/chat-window/static/default/waiting.html.gz +0 -0
- package/dist/smart/chat-window/static/sheets.json +50 -0
- package/dist/smart/chat-window/static/sheets.json.gz +0 -0
- package/dist/smart/chat-window/template/default.css +1 -1
- package/dist/smart/chat-window/template/default.css.gz +0 -0
- package/dist/smart/rule.js +8 -0
- package/dist/smart/rule.js.gz +0 -0
- package/package.json +1 -1
|
@@ -3,8 +3,8 @@ import {html, nothing} from "lit";
|
|
|
3
3
|
// The two small pieces the composer draws more than once, as Lit templates:
|
|
4
4
|
// the Framework's icon button and a file chip. In simai/ui-chat they were the
|
|
5
5
|
// base Component's iconButton and renderAttachment (component/chat/js/render.js),
|
|
6
|
-
// plain DOM shared with the site widget;
|
|
7
|
-
// markup
|
|
6
|
+
// plain DOM shared with the site widget; the icon button is the Framework's
|
|
7
|
+
// markup, and since K-08 the chip is the Framework's sf-file-preview (chip).
|
|
8
8
|
|
|
9
9
|
// The icon step that sits in a button of each step: 16 in 32, 20 in 40.
|
|
10
10
|
const ICON_IN_BUTTON = {"1/3": "1", "1/2": "1", "1": "2", "2": "2", "3": "3"};
|
|
@@ -44,39 +44,46 @@ export function attachmentState(file) {
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
/**
|
|
47
|
-
* A file chip
|
|
48
|
-
*
|
|
47
|
+
* A file chip (K-08, SIMAI Framework pair ui-73df5d1b4d4c): the Framework's
|
|
48
|
+
* sf-file-preview in its chip look draws the name, the type and the size,
|
|
49
|
+
* the upload's bar and per cent (state uploading, value), the refusal
|
|
50
|
+
* («Не загрузился: …», state error, error-text, with its «Повторить») and «×».
|
|
51
|
+
* The chat only maps its file to the preview's settings and hears its
|
|
52
|
+
* requests: detach («×») and retry («Повторить»), which go no further than
|
|
53
|
+
* the chip -- the host hears the chat's own events.
|
|
49
54
|
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
55
|
+
* The class sf-chat-attachment (and sf-chat-attachment--<state>) stays on the
|
|
56
|
+
* preview's host until 2027-01-01, a dated alias for a page that finds or
|
|
57
|
+
* styles a chip by it (aliases.json); its inner parts are the preview's.
|
|
58
|
+
*
|
|
59
|
+
* A progress of 0 (or none known) runs the bar without a share; an error that
|
|
60
|
+
* is not text (true) says «Не загрузился» alone.
|
|
61
|
+
*
|
|
62
|
+
* @param {{id?: string, name: string, bytes: number, href?: string, mime?: string, progress?: number|null, error?: string|boolean|null}} file
|
|
52
63
|
*/
|
|
53
|
-
export function renderAttachment(file, {
|
|
64
|
+
export function renderAttachment(file, {removable = false, href = "", onRemove = null, onRetry = null, onDownload = null, className = ""} = {}) {
|
|
54
65
|
const state = attachmentState(file);
|
|
55
66
|
const name = String(file.name ?? "");
|
|
56
|
-
const
|
|
57
|
-
const percent = Math.round((file.progress || 0) * 100);
|
|
58
|
-
const
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
className: "sf-chat-attachment__remove",
|
|
79
|
-
onClick: () => onRemove?.(file),
|
|
80
|
-
}) : nothing}
|
|
81
|
-
</div>`;
|
|
67
|
+
const bytes = file.bytes === null || file.bytes === undefined || file.bytes === "" ? NaN : Number(file.bytes);
|
|
68
|
+
const percent = Math.round(Math.min(1, Math.max(0, Number(file.progress) || 0)) * 100);
|
|
69
|
+
const stop = (handler) => (event) => {
|
|
70
|
+
event.stopPropagation();
|
|
71
|
+
event.preventDefault();
|
|
72
|
+
handler?.(file, event);
|
|
73
|
+
};
|
|
74
|
+
return html`<sf-file-preview
|
|
75
|
+
class="sf-chat-attachment sf-chat-attachment--${state} ${className}"
|
|
76
|
+
appearance="chip"
|
|
77
|
+
file-name=${name}
|
|
78
|
+
file-size=${Number.isFinite(bytes) && bytes >= 0 ? String(bytes) : nothing}
|
|
79
|
+
mime-type=${file.mime || nothing}
|
|
80
|
+
href=${href || nothing}
|
|
81
|
+
state=${state}
|
|
82
|
+
value=${state === "uploading" && Number(file.progress) > 0 ? String(percent) : nothing}
|
|
83
|
+
error-text=${state === "error" && typeof file.error === "string" ? file.error : nothing}
|
|
84
|
+
remove-action=${removable ? nothing : "false"}
|
|
85
|
+
@sf-file-preview-detach=${stop(onRemove)}
|
|
86
|
+
@sf-file-preview-retry=${stop(onRetry)}
|
|
87
|
+
@sf-file-preview-download=${onDownload ? (event) => { event.stopPropagation(); onDownload(file, event); } : nothing}
|
|
88
|
+
></sf-file-preview>`;
|
|
82
89
|
}
|
|
Binary file
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$comment": "The source of sf-chat-interlocutor's element plumbing (core/js/element-manifest.js); standard simai.smart-component 1.3.9, vocabulary 1.1.5. Moved from simai/ui-chat components/src/smart/chat-interlocutor (smart.manifest.json 0.3.1, ui-chat 10d376b) by the D31 move, step 3 (owner yes 2026-10-27); written by hand on the shape of sf-change-confirm and sf-thread-list, since migration/convert-1.3.8.mjs takes only the pinned 66 and needs stand 17's output. x-decisions says how each point was decided.",
|
|
3
3
|
"id": "smart.chat-interlocutor",
|
|
4
4
|
"tag": "sf-chat-interlocutor",
|
|
5
|
-
"version": "1.0.
|
|
5
|
+
"version": "1.0.9",
|
|
6
6
|
"kind": "leaf",
|
|
7
7
|
"family": "chat",
|
|
8
8
|
"settings": {
|
|
@@ -213,7 +213,8 @@
|
|
|
213
213
|
"version 1.0.5: its guidance names the conversation list sf-chat-threads (rename plan R2).",
|
|
214
214
|
"version 1.0.6 (2026-11-09): a patch (first paint only). The snapshots are retaken over SIMAI Framework ui-d6f01121baca: static/sheets.json lists the sheets the pair now asks for (component/kbd, a relation of the buttons since sf-kbd 1.1.0). Code, settings, values and events are unchanged.",
|
|
215
215
|
"version 1.0.7 (2026-11-09): a patch (no visible change). SIMAI Framework ui-cb287da78ab1 (core.runtime 1.45.0, standard §4.4) writes an action's method in the reference as one args object whose schema is the action's `with` fields, not the fields one by one (ui-source 9d2eeb8e, generate-component-files.mjs argumentsOf); smart.manifest.json is regenerated and changes only in methods.*.arguments. setOptions is the runtime's generated method and takes both forms. Settings, values and events are unchanged. The same version first-paint snapshots are retaken over that pair; static/sheets.json is unchanged.",
|
|
216
|
-
"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."
|
|
216
|
+
"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.",
|
|
217
|
+
"version 1.0.9 (2026-11-26): a patch (first paint only). The first-paint snapshots are retaken over SIMAI Framework ui-73df5d1b4d4c: the pair's markup prints the text-overflow utility, so static/sheets.json lists utility/text-overflow. Code, settings, values and events are unchanged."
|
|
217
218
|
],
|
|
218
219
|
"x-rule": {
|
|
219
220
|
"$comment": [
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@layer sf.reset, sf.tokens, sf.base, sf.utilities, sf.components, sf.overrides, sf.states;
|
|
1
|
+
@layer sf.reset, sf.tokens, sf.base, sf.paint, sf.utilities, sf.components, sf.overrides, sf.states;
|
|
2
2
|
@layer sf.components {
|
|
3
3
|
/* sf-chat-interlocutor. The host is display: contents; .sf-chat-interlocutor
|
|
4
4
|
is what a header places. Every value is a Framework token. The public
|
|
@@ -19,42 +19,10 @@
|
|
|
19
19
|
--sf-chat-interlocutor--radius: var(--sf-chat-interlocutor-radius, var(--sf-radius-1));
|
|
20
20
|
--sf-chat-interlocutor--height: var(--sf-chat-interlocutor-height, var(--sf-ui-1--control-height));
|
|
21
21
|
}
|
|
22
|
-
_:-ms-input-placeholder, html:not([dir="rtl"]) .sf-chat-interlocutor__button {
|
|
23
|
-
padding-left: var(--sf-space-1\/2);
|
|
24
|
-
}
|
|
25
|
-
@supports not (padding-inline-start: initial) {
|
|
26
|
-
html:not([dir="rtl"]) .sf-chat-interlocutor__button {
|
|
27
|
-
padding-left: var(--sf-space-1\/2);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
_:-ms-input-placeholder, html:not([dir="rtl"]) .sf-chat-interlocutor__button {
|
|
31
|
-
padding-right: var(--sf-space-1\/3);
|
|
32
|
-
}
|
|
33
|
-
@supports not (padding-inline-end: initial) {
|
|
34
|
-
html:not([dir="rtl"]) .sf-chat-interlocutor__button {
|
|
35
|
-
padding-right: var(--sf-space-1\/3);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
22
|
.sf-chat-interlocutor__button:where(:dir(ltr)) {
|
|
39
23
|
padding-left: var(--sf-space-1\/2);
|
|
40
24
|
padding-right: var(--sf-space-1\/3);
|
|
41
25
|
}
|
|
42
|
-
_:-ms-input-placeholder, [dir="rtl"] .sf-chat-interlocutor__button {
|
|
43
|
-
padding-right: var(--sf-space-1\/2);
|
|
44
|
-
}
|
|
45
|
-
@supports not (padding-inline-start: initial) {
|
|
46
|
-
[dir="rtl"] .sf-chat-interlocutor__button {
|
|
47
|
-
padding-right: var(--sf-space-1\/2);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
_:-ms-input-placeholder, [dir="rtl"] .sf-chat-interlocutor__button {
|
|
51
|
-
padding-left: var(--sf-space-1\/3);
|
|
52
|
-
}
|
|
53
|
-
@supports not (padding-inline-end: initial) {
|
|
54
|
-
[dir="rtl"] .sf-chat-interlocutor__button {
|
|
55
|
-
padding-left: var(--sf-space-1\/3);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
26
|
.sf-chat-interlocutor__button:where(:dir(rtl)) {
|
|
59
27
|
padding-right: var(--sf-space-1\/2);
|
|
60
28
|
padding-left: var(--sf-space-1\/3);
|
|
@@ -97,9 +65,6 @@
|
|
|
97
65
|
}
|
|
98
66
|
@media (pointer: coarse) {
|
|
99
67
|
.sf-chat-interlocutor__button {
|
|
100
|
-
min-height: var(--sf-ui-2--control-height);
|
|
101
|
-
min-block-size: var(--sf-ui-2--control-height);
|
|
102
|
-
min-height: var(--sf-ui-2--control-height);
|
|
103
68
|
min-height: var(--sf-chat-interlocutor-height, var(--sf-ui-2--control-height));
|
|
104
69
|
min-block-size: var(--sf-chat-interlocutor-height, var(--sf-ui-2--control-height));
|
|
105
70
|
}
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@layer sf.reset, sf.tokens, sf.base, sf.utilities, sf.components, sf.overrides, sf.states;
|
|
2
|
-
@layer sf.components{.sf-chat-interlocutor{--sf-chat-interlocutor--color: var(--sf-chat-interlocutor-color, var(--sf-on-surface));--sf-chat-interlocutor--icon-color: var(--sf-chat-interlocutor-icon-color, var(--sf-on-surface-variant));--sf-chat-interlocutor--hover: var(--sf-chat-interlocutor-hover-background-color, var(--sf-surface-transparent-hover));--sf-chat-interlocutor--radius: var(--sf-chat-interlocutor-radius, var(--sf-radius-1));--sf-chat-interlocutor--height: var(--sf-chat-interlocutor-height, var(--sf-ui-1--control-height))}
|
|
1
|
+
@layer sf.reset, sf.tokens, sf.base, sf.paint, sf.utilities, sf.components, sf.overrides, sf.states;
|
|
2
|
+
@layer sf.components{.sf-chat-interlocutor{--sf-chat-interlocutor--color: var(--sf-chat-interlocutor-color, var(--sf-on-surface));--sf-chat-interlocutor--icon-color: var(--sf-chat-interlocutor-icon-color, var(--sf-on-surface-variant));--sf-chat-interlocutor--hover: var(--sf-chat-interlocutor-hover-background-color, var(--sf-surface-transparent-hover));--sf-chat-interlocutor--radius: var(--sf-chat-interlocutor-radius, var(--sf-radius-1));--sf-chat-interlocutor--height: var(--sf-chat-interlocutor-height, var(--sf-ui-1--control-height))}.sf-chat-interlocutor__button:where(:dir(ltr)){padding-left:var(--sf-space-1\/2);padding-right:var(--sf-space-1\/3)}.sf-chat-interlocutor__button:where(:dir(rtl)){padding-right:var(--sf-space-1\/2);padding-left:var(--sf-space-1\/3)}.sf-chat-interlocutor__button{display:inline-flex;align-items:center;gap:var(--sf-space-1\/4);max-width:100%;max-inline-size:100%;min-height:var(--sf-chat-interlocutor--height);min-block-size:var(--sf-chat-interlocutor--height);padding-inline:var(--sf-space-1\/2) var(--sf-space-1\/3);border:0;border-radius:var(--sf-chat-interlocutor--radius);background:rgba(0,0,0,0);color:var(--sf-chat-interlocutor--color);font:inherit;font-size:var(--sf-text--size);line-height:var(--sf-text--height);font-weight:var(--sf-font-weight-bold);cursor:pointer}.sf-chat-interlocutor__button:hover:not(:disabled){background:var(--sf-chat-interlocutor--hover)}.sf-chat-interlocutor__button:disabled{cursor:default}.sf-chat-interlocutor__button sf-icon{color:var(--sf-chat-interlocutor--icon-color)}.sf-chat-interlocutor--single sf-icon{display:none}.sf-chat-interlocutor__title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(pointer: coarse){.sf-chat-interlocutor__button{min-height:var(--sf-chat-interlocutor-height, var(--sf-ui-2--control-height));min-block-size:var(--sf-chat-interlocutor-height, var(--sf-ui-2--control-height))}}}
|
|
Binary file
|
|
@@ -338,7 +338,7 @@ module.exports = /*#__PURE__*/JSON.parse('{"$comment":"Dated aliases of sf-chat-
|
|
|
338
338
|
/***/ "158c3492ef32"
|
|
339
339
|
(module) {
|
|
340
340
|
|
|
341
|
-
module.exports = /*#__PURE__*/JSON.parse('{"id":"smart.chat-interlocutor","tag":"sf-chat-interlocutor","version":"1.0.
|
|
341
|
+
module.exports = /*#__PURE__*/JSON.parse('{"id":"smart.chat-interlocutor","tag":"sf-chat-interlocutor","version":"1.0.9","kind":"leaf","settings":{"options":{"type":"list","default":[],"of":{"id":"id","title":"string","kind":{"type":"string","optional":true}},"entries":{"key":"id","changes":"content"}}},"values":{"value":{"type":"id","default":"","controlled":true}},"events":{"select":{"carries":{"id":"id"},"cancelable":true}},"actions":{"set-options":{"with":{"options":{"type":"list","schema":{"items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"kind":{"type":"string"}},"required":["id","title"]}}}}},"open":{}},"host-states":{},"css-variables":{"--sf-chat-interlocutor-color":{"type":"color","state":"default"},"--sf-chat-interlocutor-icon-color":{"type":"color","state":"default"},"--sf-chat-interlocutor-hover-background-color":{"type":"color","state":"hover"},"--sf-chat-interlocutor-radius":{"type":"length","state":"default"},"--sf-chat-interlocutor-height":{"type":"length","state":"default"}}}');
|
|
342
342
|
|
|
343
343
|
/***/ },
|
|
344
344
|
|
|
Binary file
|
|
@@ -19,4 +19,4 @@
|
|
|
19
19
|
></sf-menu-context>
|
|
20
20
|
<span class="sf-chat-interlocutor__note sr-only" id=${e.noteId}>${e.note}</span>
|
|
21
21
|
</div>
|
|
22
|
-
`}s()}catch(l){s(l)}})},"5b7d7695b41b"(e){e.exports=globalThis.SF&&globalThis.SF.runtimeModule?globalThis.SF.runtimeModule("element-manifest",1):new Promise((e,t)=>globalThis.addEventListener("sf-runtime-ready",()=>globalThis.SF.runtimeModule("element-manifest",1).then(e,t),{once:!0}))},e92fd2d1a38c(e){e.exports=globalThis.SF&&globalThis.SF.runtimeModule?globalThis.SF.runtimeModule("instance-path",1):new Promise((e,t)=>globalThis.addEventListener("sf-runtime-ready",()=>globalThis.SF.runtimeModule("instance-path",1).then(e,t),{once:!0}))},"2a080a730149"(e){e.exports=globalThis.SF&&globalThis.SF.runtimeModule?globalThis.SF.runtimeModule("lit",1):new Promise((e,t)=>globalThis.addEventListener("sf-runtime-ready",()=>globalThis.SF.runtimeModule("lit",1).then(e,t),{once:!0}))},deb1a4d61565(e){e.exports=globalThis.SF&&globalThis.SF.runtimeModule?globalThis.SF.runtimeModule("smart-base",1):new Promise((e,t)=>globalThis.addEventListener("sf-runtime-ready",()=>globalThis.SF.runtimeModule("smart-base",1).then(e,t),{once:!0}))},"8dd31d33c740"(e){e.exports=JSON.parse('{"$comment":"Dated aliases of sf-chat-interlocutor for the shim (core/js/aliases.js, standard §16 item 20). The 0.3 event of simai/ui-chat follows the vocabulary\'s select with the same detail.","component":"sf-chat-interlocutor","since":"2026-10-28","remove_after":"2026-12-01","aliases":[{"from":"sf-chat-interlocutor","to":"sf-chat-interlocutor-select","kind":"event","component":"sf-chat-interlocutor","since":"2026-10-28","remove_after":"2026-12-01","mode":"same-detail","cancelable":true,"section":"§8, vocabulary §5 select, §7","note":"an event takes its tag and a verb; {id} is unchanged"}]}')},"158c3492ef32"(e){e.exports=JSON.parse('{"id":"smart.chat-interlocutor","tag":"sf-chat-interlocutor","version":"1.0.
|
|
22
|
+
`}s()}catch(l){s(l)}})},"5b7d7695b41b"(e){e.exports=globalThis.SF&&globalThis.SF.runtimeModule?globalThis.SF.runtimeModule("element-manifest",1):new Promise((e,t)=>globalThis.addEventListener("sf-runtime-ready",()=>globalThis.SF.runtimeModule("element-manifest",1).then(e,t),{once:!0}))},e92fd2d1a38c(e){e.exports=globalThis.SF&&globalThis.SF.runtimeModule?globalThis.SF.runtimeModule("instance-path",1):new Promise((e,t)=>globalThis.addEventListener("sf-runtime-ready",()=>globalThis.SF.runtimeModule("instance-path",1).then(e,t),{once:!0}))},"2a080a730149"(e){e.exports=globalThis.SF&&globalThis.SF.runtimeModule?globalThis.SF.runtimeModule("lit",1):new Promise((e,t)=>globalThis.addEventListener("sf-runtime-ready",()=>globalThis.SF.runtimeModule("lit",1).then(e,t),{once:!0}))},deb1a4d61565(e){e.exports=globalThis.SF&&globalThis.SF.runtimeModule?globalThis.SF.runtimeModule("smart-base",1):new Promise((e,t)=>globalThis.addEventListener("sf-runtime-ready",()=>globalThis.SF.runtimeModule("smart-base",1).then(e,t),{once:!0}))},"8dd31d33c740"(e){e.exports=JSON.parse('{"$comment":"Dated aliases of sf-chat-interlocutor for the shim (core/js/aliases.js, standard §16 item 20). The 0.3 event of simai/ui-chat follows the vocabulary\'s select with the same detail.","component":"sf-chat-interlocutor","since":"2026-10-28","remove_after":"2026-12-01","aliases":[{"from":"sf-chat-interlocutor","to":"sf-chat-interlocutor-select","kind":"event","component":"sf-chat-interlocutor","since":"2026-10-28","remove_after":"2026-12-01","mode":"same-detail","cancelable":true,"section":"§8, vocabulary §5 select, §7","note":"an event takes its tag and a verb; {id} is unchanged"}]}')},"158c3492ef32"(e){e.exports=JSON.parse('{"id":"smart.chat-interlocutor","tag":"sf-chat-interlocutor","version":"1.0.9","kind":"leaf","settings":{"options":{"type":"list","default":[],"of":{"id":"id","title":"string","kind":{"type":"string","optional":true}},"entries":{"key":"id","changes":"content"}}},"values":{"value":{"type":"id","default":"","controlled":true}},"events":{"select":{"carries":{"id":"id"},"cancelable":true}},"actions":{"set-options":{"with":{"options":{"type":"list","schema":{"items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"kind":{"type":"string"}},"required":["id","title"]}}}}},"open":{}},"host-states":{},"css-variables":{"--sf-chat-interlocutor-color":{"type":"color","state":"default"},"--sf-chat-interlocutor-icon-color":{"type":"color","state":"default"},"--sf-chat-interlocutor-hover-background-color":{"type":"color","state":"hover"},"--sf-chat-interlocutor-radius":{"type":"length","state":"default"},"--sf-chat-interlocutor-height":{"type":"length","state":"default"}}}')},"8e9da33da7a1"(e){e.exports=JSON.parse('{"title":"Chat interlocutor","runtime":{"assistant-text":"Assistant","button-label":"Assistant: {title}","change-text":"Switching assistants starts a new conversation","group-knowledge-text":"Knowledge base assistants","group-own-text":"My assistants","menu-label":"Choose an assistant","search-empty-text":"Nothing found","search-placeholder":"Find an assistant"}}')},b853de4604c1(e){e.exports=JSON.parse('{"title":"Собеседник чата","runtime":{"assistant-text":"Помощник","button-label":"Помощник: {title}","change-text":"При смене помощника начнётся новый разговор","group-knowledge-text":"Помощники баз","group-own-text":"Мои помощники","menu-label":"Выбрать помощника","search-empty-text":"Ничего не найдено","search-placeholder":"Найти помощника"}}')}};const t={};function n(s){const o=t[s];if(void 0!==o)return o.exports;const r=t[s]={exports:{}};return e[s](r,r.exports,n),r.exports}(()=>{const e="function"==typeof Symbol,t=e?Symbol("webpack queues"):"__webpack_queues__",s=e?Symbol("webpack exports"):"__webpack_exports__",o=e?Symbol("webpack error"):"__webpack_error__",r=e=>{e?.d<1&&(e.d=1,e.forEach(e=>e.r--),e.forEach(e=>e.r--?e.r++:e()))};n.a=(e,n,a)=>{let i;a&&((i=[]).d=-1);const l=new Set,c=e.exports;let u,d,h;const p=new Promise((e,t)=>{h=t,d=e});p[s]=c,p[t]=e=>(i&&e(i),l.forEach(e),p.catch(e=>{})),e.exports=p;n(e=>{let n;u=(e=>e.map(e=>{if(null!==e&&"object"==typeof e){if(e[t])return e;if(e.then){const n=[];n.d=0,e.then(e=>{a[s]=e,r(n)},e=>{a[o]=e,r(n)});const a={};return a[t]=e=>e(n),a}}const n={};return n[t]=e=>{},n[s]=e,n}))(e);const a=()=>u.map(e=>{if(e[o])throw e[o];return e[s]}),c=new Promise(e=>{n=()=>e(a),n.r=0;const s=e=>e!==i&&!l.has(e)&&(l.add(e),e&&!e.d&&(n.r++,e.push(n)));u.map(e=>e[t](s))});return n.r?c:a()},e=>(e?h(p[o]=e):d(c),r(i))),i?.d<0&&(i.d=0)}})(),n.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{if(Array.isArray(t))for(var s=0;s<t.length;){var o=t[s++],r=t[s++];n.o(e,o)?0===r&&s++:0===r?Object.defineProperty(e,o,{enumerable:!0,value:t[s++]}):Object.defineProperty(e,o,{enumerable:!0,get:r})}else for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);n("87be7f608247")})();
|
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema_version": 2,
|
|
3
3
|
"id": "smart.chat-interlocutor",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.9",
|
|
5
5
|
"title": "Chat interlocutor",
|
|
6
6
|
"summary": "Who the conversation is with: the server's interlocutors in the Framework's context menu, the current one checked, and a choice of another reported for the host to start a new conversation with. One interlocutor is a name, not a choice.",
|
|
7
7
|
"kind": "smart",
|
|
@@ -302,8 +302,8 @@
|
|
|
302
302
|
"version": 2
|
|
303
303
|
},
|
|
304
304
|
"runtime_pair": {
|
|
305
|
-
"ui_revision": "
|
|
306
|
-
"ui_smart_revision": "
|
|
305
|
+
"ui_revision": "0000000000000000000000000000000000000000",
|
|
306
|
+
"ui_smart_revision": "0000000000000000000000000000000000000000"
|
|
307
307
|
},
|
|
308
308
|
"aliases": [],
|
|
309
309
|
"deprecations": [],
|
|
@@ -367,7 +367,7 @@
|
|
|
367
367
|
},
|
|
368
368
|
{
|
|
369
369
|
"path": "src/smart/chat-interlocutor/component.json",
|
|
370
|
-
"sha256": "
|
|
370
|
+
"sha256": "dcf4fc60a6d543c2818425064d828ebe2ee7fcf8ce8a9a1a57ffec21f142927e"
|
|
371
371
|
},
|
|
372
372
|
{
|
|
373
373
|
"path": "src/smart/chat-interlocutor/aliases.json",
|
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!-- sf-chat-interlocutor, example «former»: the static markup (standard simai.smart-component 1.3.8 §5.4). Generated by scripts/snapshot-first-paint.mjs from the built output; do not edit, run it again. -->
|
|
2
2
|
<sf-chat-interlocutor value="admin" style="display: contents;"><script type="application/json" data-sf-settings>{"options":[{"id":"personal","title":"Мой помощник","kind":"personal"}]}</script>
|
|
3
3
|
<div class="sf-chat-interlocutor sf-chat-interlocutor--single" data-sf-static>
|
|
4
|
-
<button type="button" class="sf-chat-interlocutor__button" aria-label="Помощник" disabled><span class="sf-chat-interlocutor__title">Помощник</span><sf-icon icon="expand_more" size="1/2" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1/2
|
|
4
|
+
<button type="button" class="sf-chat-interlocutor__button" aria-label="Помощник" disabled><span class="sf-chat-interlocutor__title">Помощник</span><sf-icon icon="expand_more" size="1/2" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1/2" aria-hidden="true" data-sf-static>expand_more</i></sf-icon></button>
|
|
5
5
|
<sf-menu-context class="sf-chat-interlocutor__menu" popup aria-label="Выбрать помощника" style="display: contents;">
|
|
6
6
|
<div class="sf-context-menu" role="menu" aria-label="Выбрать помощника" data-sf-static></div>
|
|
7
7
|
</sf-menu-context>
|
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!-- sf-chat-interlocutor, example «grouped»: the static markup (standard simai.smart-component 1.3.8 §5.4). Generated by scripts/snapshot-first-paint.mjs from the built output; do not edit, run it again. -->
|
|
2
2
|
<sf-chat-interlocutor value="base-3" style="display: contents;"><script type="application/json" data-sf-settings>{"options":[{"id":"personal","title":"Мой помощник","kind":"personal"},{"id":"base-1","title":"База 1","kind":"knowledge"},{"id":"base-2","title":"База 2","kind":"knowledge"},{"id":"base-3","title":"База 3","kind":"knowledge"},{"id":"base-4","title":"База 4","kind":"knowledge"},{"id":"base-5","title":"База 5","kind":"knowledge"},{"id":"base-6","title":"База 6","kind":"knowledge"},{"id":"base-7","title":"База 7","kind":"knowledge"},{"id":"base-8","title":"База 8","kind":"knowledge"}]}</script>
|
|
3
3
|
<div class="sf-chat-interlocutor" data-sf-static>
|
|
4
|
-
<button type="button" class="sf-chat-interlocutor__button" aria-label="Помощник: База 3" aria-haspopup="menu" aria-expanded="false" aria-describedby="sf-chat-interlocutor-grouped-1"><span class="sf-chat-interlocutor__title">База 3</span><sf-icon icon="expand_more" size="1/2" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1/2
|
|
4
|
+
<button type="button" class="sf-chat-interlocutor__button" aria-label="Помощник: База 3" aria-haspopup="menu" aria-expanded="false" aria-describedby="sf-chat-interlocutor-grouped-1"><span class="sf-chat-interlocutor__title">База 3</span><sf-icon icon="expand_more" size="1/2" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1/2" aria-hidden="true" data-sf-static>expand_more</i></sf-icon></button>
|
|
5
5
|
<sf-menu-context class="sf-chat-interlocutor__menu" popup aria-label="Выбрать помощника" style="display: contents;">
|
|
6
6
|
<div class="sf-context-menu" role="menu" aria-label="Выбрать помощника" data-sf-static></div>
|
|
7
7
|
</sf-menu-context>
|
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!-- sf-chat-interlocutor, example «reference»: the static markup (standard simai.smart-component 1.3.8 §5.4). Generated by scripts/snapshot-first-paint.mjs from the built output; do not edit, run it again. -->
|
|
2
2
|
<sf-chat-interlocutor value="personal" style="display: contents;"><script type="application/json" data-sf-settings>{"options":[{"id":"personal","title":"Мой помощник","kind":"personal"},{"id":"shop","title":"Поддержка магазина","kind":"knowledge"}]}</script>
|
|
3
3
|
<div class="sf-chat-interlocutor" data-sf-static>
|
|
4
|
-
<button type="button" class="sf-chat-interlocutor__button" aria-label="Помощник: Мой помощник" aria-haspopup="menu" aria-expanded="false" aria-describedby="sf-chat-interlocutor-reference-1"><span class="sf-chat-interlocutor__title">Мой помощник</span><sf-icon icon="expand_more" size="1/2" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1/2
|
|
4
|
+
<button type="button" class="sf-chat-interlocutor__button" aria-label="Помощник: Мой помощник" aria-haspopup="menu" aria-expanded="false" aria-describedby="sf-chat-interlocutor-reference-1"><span class="sf-chat-interlocutor__title">Мой помощник</span><sf-icon icon="expand_more" size="1/2" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1/2" aria-hidden="true" data-sf-static>expand_more</i></sf-icon></button>
|
|
5
5
|
<sf-menu-context class="sf-chat-interlocutor__menu" popup aria-label="Выбрать помощника" style="display: contents;">
|
|
6
6
|
<div class="sf-context-menu" role="menu" aria-label="Выбрать помощника" data-sf-static></div>
|
|
7
7
|
</sf-menu-context>
|
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!-- sf-chat-interlocutor, example «single»: the static markup (standard simai.smart-component 1.3.8 §5.4). Generated by scripts/snapshot-first-paint.mjs from the built output; do not edit, run it again. -->
|
|
2
2
|
<sf-chat-interlocutor value="personal" style="display: contents;"><script type="application/json" data-sf-settings>{"options":[{"id":"personal","title":"Мой помощник","kind":"personal"}]}</script>
|
|
3
3
|
<div class="sf-chat-interlocutor sf-chat-interlocutor--single" data-sf-static>
|
|
4
|
-
<button type="button" class="sf-chat-interlocutor__button" aria-label="Помощник: Мой помощник" disabled><span class="sf-chat-interlocutor__title">Мой помощник</span><sf-icon icon="expand_more" size="1/2" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1/2
|
|
4
|
+
<button type="button" class="sf-chat-interlocutor__button" aria-label="Помощник: Мой помощник" disabled><span class="sf-chat-interlocutor__title">Мой помощник</span><sf-icon icon="expand_more" size="1/2" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1/2" aria-hidden="true" data-sf-static>expand_more</i></sf-icon></button>
|
|
5
5
|
<sf-menu-context class="sf-chat-interlocutor__menu" popup aria-label="Выбрать помощника" style="display: contents;">
|
|
6
6
|
<div class="sf-context-menu" role="menu" aria-label="Выбрать помощника" data-sf-static></div>
|
|
7
7
|
</sf-menu-context>
|
|
Binary file
|
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
"utility/position/default/css/default.min.css",
|
|
23
23
|
"utility/sr-only/default/css/default.min.css",
|
|
24
24
|
"utility/text-align/default/css/default.min.css",
|
|
25
|
-
"utility/text-decoration/default/css/default.min.css"
|
|
25
|
+
"utility/text-decoration/default/css/default.min.css",
|
|
26
|
+
"utility/text-overflow/default/css/default.min.css"
|
|
26
27
|
],
|
|
27
28
|
"examples": {
|
|
28
29
|
"former": [
|
|
@@ -42,7 +43,8 @@
|
|
|
42
43
|
"utility/position/default/css/default.min.css",
|
|
43
44
|
"utility/sr-only/default/css/default.min.css",
|
|
44
45
|
"utility/text-align/default/css/default.min.css",
|
|
45
|
-
"utility/text-decoration/default/css/default.min.css"
|
|
46
|
+
"utility/text-decoration/default/css/default.min.css",
|
|
47
|
+
"utility/text-overflow/default/css/default.min.css"
|
|
46
48
|
],
|
|
47
49
|
"grouped": [
|
|
48
50
|
"component/avatars/css/avatars.min.css",
|
|
@@ -61,7 +63,8 @@
|
|
|
61
63
|
"utility/position/default/css/default.min.css",
|
|
62
64
|
"utility/sr-only/default/css/default.min.css",
|
|
63
65
|
"utility/text-align/default/css/default.min.css",
|
|
64
|
-
"utility/text-decoration/default/css/default.min.css"
|
|
66
|
+
"utility/text-decoration/default/css/default.min.css",
|
|
67
|
+
"utility/text-overflow/default/css/default.min.css"
|
|
65
68
|
],
|
|
66
69
|
"reference": [
|
|
67
70
|
"component/avatars/css/avatars.min.css",
|
|
@@ -80,7 +83,8 @@
|
|
|
80
83
|
"utility/position/default/css/default.min.css",
|
|
81
84
|
"utility/sr-only/default/css/default.min.css",
|
|
82
85
|
"utility/text-align/default/css/default.min.css",
|
|
83
|
-
"utility/text-decoration/default/css/default.min.css"
|
|
86
|
+
"utility/text-decoration/default/css/default.min.css",
|
|
87
|
+
"utility/text-overflow/default/css/default.min.css"
|
|
84
88
|
],
|
|
85
89
|
"single": [
|
|
86
90
|
"component/avatars/css/avatars.min.css",
|
|
@@ -99,7 +103,8 @@
|
|
|
99
103
|
"utility/position/default/css/default.min.css",
|
|
100
104
|
"utility/sr-only/default/css/default.min.css",
|
|
101
105
|
"utility/text-align/default/css/default.min.css",
|
|
102
|
-
"utility/text-decoration/default/css/default.min.css"
|
|
106
|
+
"utility/text-decoration/default/css/default.min.css",
|
|
107
|
+
"utility/text-overflow/default/css/default.min.css"
|
|
103
108
|
]
|
|
104
109
|
}
|
|
105
110
|
}
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@layer sf.reset, sf.tokens, sf.base, sf.utilities, sf.components, sf.overrides, sf.states;
|
|
1
|
+
@layer sf.reset, sf.tokens, sf.base, sf.paint, sf.utilities, sf.components, sf.overrides, sf.states;
|
|
2
2
|
@layer sf.components {
|
|
3
3
|
/* sf-chat-interlocutor. The host is display: contents; .sf-chat-interlocutor
|
|
4
4
|
is what a header places. Every value is a Framework token. The public
|
|
Binary file
|
|
@@ -109,6 +109,17 @@
|
|
|
109
109
|
"remove_after": "2026-12-01",
|
|
110
110
|
"section": "§3.1, §4.2",
|
|
111
111
|
"note": "the 0.3 property view (what the window knows), renamed: view is a name the base reserves; the old property reads and writes display"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"from": "sf-chat-attachment",
|
|
115
|
+
"to": null,
|
|
116
|
+
"kind": "attribute",
|
|
117
|
+
"component": "sf-chat-message",
|
|
118
|
+
"since": "2026-11-26",
|
|
119
|
+
"remove_after": "2027-01-01",
|
|
120
|
+
"mode": "host-attribute",
|
|
121
|
+
"section": "K-08, SIMAI Framework pair ui-73df5d1b4d4c",
|
|
122
|
+
"note": "the chip's former class (the chip is now sf-file-preview): sf-chat-attachment and sf-chat-attachment--<ready|uploading|error> stay on the sf-file-preview host until the date, for a page that finds or styles a chip by it (Mirai24 docs/ui-chat/HANDOFF.md names it); no shim. Its inner parts (__icon, __body, __name, __meta, __link, __progress, __remove) are gone: the parts are sf-file-preview's"
|
|
112
123
|
}
|
|
113
124
|
]
|
|
114
125
|
}
|
|
Binary file
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$comment": "The source of sf-chat-message's element plumbing (core/js/element-manifest.js); standard simai.smart-component 1.3.9, vocabulary 1.1.5. Moved from simai/ui-chat components/src/smart/chat-message (smart.manifest.json 0.3.1, ui-chat 10d376b) by the D31 move, step 5 (owner yes 2026-10-27), with the message view of component/chat it drew on (render.js, people.js as the template person, sanitize.js, the message's words of strings.js, chat.css and people.css); written by hand on the shape of sf-chat-interlocutor and sf-chat-composer (steps 3 and 4), since migration/convert-1.3.8.mjs takes only the pinned 66 and needs stand 17's output. x-decisions says how each point was decided.",
|
|
3
3
|
"id": "smart.chat-message",
|
|
4
4
|
"tag": "sf-chat-message",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.8.0",
|
|
6
6
|
"kind": "leaf",
|
|
7
7
|
"family": "chat",
|
|
8
8
|
"settings": {
|
|
@@ -251,6 +251,13 @@
|
|
|
251
251
|
{
|
|
252
252
|
"name": "cl-menu-context",
|
|
253
253
|
"lazy": true
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"name": "cl-file-preview",
|
|
257
|
+
"lazy": true,
|
|
258
|
+
"$comment": [
|
|
259
|
+
"A question's files and a person's files are SIMAI Framework's sf-file-preview, appearance chip (K-08, pair ui-73df5d1b4d4c)."
|
|
260
|
+
]
|
|
254
261
|
}
|
|
255
262
|
],
|
|
256
263
|
"templates": {
|
|
@@ -387,6 +394,17 @@
|
|
|
387
394
|
"kind": "setting",
|
|
388
395
|
"section": "§3.1, §4.2",
|
|
389
396
|
"note": "the 0.3 property view (what the window knows), renamed: view is a name the base reserves; the old property reads and writes display"
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
"from": "sf-chat-attachment",
|
|
400
|
+
"to": null,
|
|
401
|
+
"kind": "attribute",
|
|
402
|
+
"mode": "host-attribute",
|
|
403
|
+
"since": "2026-11-26",
|
|
404
|
+
"section": "K-08, SIMAI Framework pair ui-73df5d1b4d4c",
|
|
405
|
+
"note": "the chip's former class (the chip is now sf-file-preview): sf-chat-attachment and sf-chat-attachment--<ready|uploading|error> stay on the sf-file-preview host until the date, for a page that finds or styles a chip by it (Mirai24 docs/ui-chat/HANDOFF.md names it); no shim. Its inner parts (__icon, __body, __name, __meta, __link, __progress, __remove) are gone: the parts are sf-file-preview's",
|
|
406
|
+
"remove_after": "2027-01-01",
|
|
407
|
+
"since-version": "1.8.0"
|
|
390
408
|
}
|
|
391
409
|
]
|
|
392
410
|
},
|
|
@@ -444,7 +462,8 @@
|
|
|
444
462
|
"version 1.7.4 (2026-11-09): a patch (first paint only). The snapshots are retaken over SIMAI Framework ui-d6f01121baca: static/sheets.json lists the sheets the pair now asks for (component/kbd, a relation of the buttons since sf-kbd 1.1.0; smart/button-close and utility/sr-only where an example draws them). Code, settings, values and events are unchanged; its buttons still ask for appearance link, the dated alias of ghost until 2027-01-01.",
|
|
445
463
|
"version 1.7.5 (2026-11-09): a patch, for the SIMAI Framework pair with the shadow places (C20, owner 2026-11-08; core.runtime >= 1.43.0). The reaction picker reads --sf-surface-popup-nested and --sf-shadow-overlay instead of elevation step 4, the values the former names resolve to on that pair (a nested popup's shadow is the overlay one). No visible change against that pair; settings, values and events are unchanged.",
|
|
446
464
|
"version 1.7.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.",
|
|
447
|
-
"version 1.7.7 (2026-11-09): a patch (a look, the people editor only). The count and the refusal under a person's description read --sf-chat-message--muted, a variable nothing declares, so they took the text colour of the row; they read --sf-chat-message--ink-muted (the muted colour, --sf-chat-message-muted-color or on-surface-variant) as the rest of the message's secondary text does. Settings, values and events are unchanged."
|
|
465
|
+
"version 1.7.7 (2026-11-09): a patch (a look, the people editor only). The count and the refusal under a person's description read --sf-chat-message--muted, a variable nothing declares, so they took the text colour of the row; they read --sf-chat-message--ink-muted (the muted colour, --sf-chat-message-muted-color or on-surface-variant) as the rest of the message's secondary text does. Settings, values and events are unchanged.",
|
|
466
|
+
"version 1.8.0 (2026-11-26, K-08 and the ask label): a minor, over SIMAI Framework pair ui-73df5d1b4d4c (ui-source 5e30b946, core.runtime 1.69.0). (1) K-08: a question's files and a person's files are drawn as the Framework's sf-file-preview, appearance chip, through sf-chat-composer's chip (js/templates/parts.js): name, type · size, the upload's running bar (state uploading) and «Не загрузился» with «Повторить» (state error) are the preview's; a person's failed file raises retry {kind: file} from the preview's retry, as its own button did. A sent file with href is the preview's name link; its download request (sf-file-preview-download, cancelable) is held and the address asked first (HEAD), as before; a file gone loses its href and says «Файл недоступен» in place of its size, said once by a polite line beside it. A person's file with downloadUrl downloads as the preview does, unasked, as its whole-chip link did. The markup sf-chat-attachment* is not drawn; the class sf-chat-attachment (with --<state>) stays on the preview's host as a dated alias until 2027-01-01. The words attachment-file, attachment-uploading, attachment-remove, files-download-label, people-download and people-file-failed are dropped (the preview's own words name and say the file). The rule relates cl-file-preview (lazy). (2) A card block whose record.source is ask (the assistant's form, Mirai24 API v1.6, BLOCKS.md §6) is sent, not saved: applied says «Отправлено» (block-sent, en Sent); any other source keeps «Сохранено» (block-applied). (3) The sanitizer probe reads the links and the code by their parts: on the pair core marks a link that opens a new tab (its arrow and «(откроется в новой вкладке)») and draws code as sf-highlight; the sanitized result is unchanged."
|
|
448
467
|
],
|
|
449
468
|
"x-rule": {
|
|
450
469
|
"$comment": [
|
|
@@ -749,6 +768,15 @@
|
|
|
749
768
|
"changes": [
|
|
750
769
|
"Inline code in a table cell of an answer keeps SIMAI Framework's plate (the cell rule that took it away is gone), and inline code in the markup wraps inside a narrow bubble rather than staying on one line as the Framework's running text keeps it (tokens.typography 1.3.0, the pair ui-5edc71bd6936). Settings, values and events are unchanged."
|
|
751
770
|
]
|
|
771
|
+
},
|
|
772
|
+
{
|
|
773
|
+
"from": "1.7.7",
|
|
774
|
+
"to": "1.8.0",
|
|
775
|
+
"changes": [
|
|
776
|
+
"K-08 (pair ui-73df5d1b4d4c): a question's and a person's files are SIMAI Framework's sf-file-preview (appearance chip). The markup sf-chat-attachment__* (name, meta, link) is gone: a page that read it reads the chip's file-name, href and file-size; «Файл недоступен» is now the chip's file-size and a polite status line. The class sf-chat-attachment and sf-chat-attachment--<state> stay on the chip until 2027-01-01.",
|
|
777
|
+
"A card block with record.source ask, applied, says «Отправлено» (block-sent) instead of «Сохранено». Other cards are unchanged.",
|
|
778
|
+
"Needs a SIMAI Framework pair with sf-file-preview 1.4 or later (core.runtime >= 1.58.0)."
|
|
779
|
+
]
|
|
752
780
|
}
|
|
753
781
|
]
|
|
754
782
|
},
|
|
Binary file
|