sprof 1.29.0 → 1.29.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { default as PF } from './core/index';
2
- import * as PFM from './modules/index';
2
+ import { ALL as PFM } from './modules/index';
3
3
  export { PF, PFM };
4
4
  export { provideSurveyStores, useSurveyStores } from './modules/survey/stores';
5
5
  export { makeSurveyRoutes } from './modules/survey/routes.example';
@@ -21,3 +21,12 @@ export type Block = {
21
21
  html: string;
22
22
  };
23
23
  export declare const renderBlocks: (text: string) => Block[];
24
+ /**
25
+ * markdown-lite → ОДНА HTML-строка (абзацы и списки).
26
+ *
27
+ * ⚠️ Зачем отдельно от `renderBlocks`: `renderBlocks` отдаёт массив, чтобы
28
+ * шаблон мог разложить его по компонентам. Но у аккордеона (`faq`) ответ —
29
+ * ОДНА строка: там `v-html` на весь ответ, а не цикл по блокам. Без этой
30
+ * функции в ответе видны сырые `- пункт` списками-дефисами.
31
+ */
32
+ export declare const renderBlocksToHtml: (text: string) => string;
@@ -410,9 +410,20 @@ export interface FaqBlockData {
410
410
  type: 'faq';
411
411
  /** Заголовок над списком: «Частые вопросы». */
412
412
  title?: string;
413
+ /**
414
+ * ⚠️ `marker` (18.11.2026). Зачем: тем же блоком сворачивают НЕ вопросы, а
415
+ * разделы — классы стандартов на «Специалистам» (19 штук), группы приказов на
416
+ * «О нас». Точки/счётчик там не нужны, а значок раскрытия — нужен.
417
+ * `count` — число внутри пункта справа («12 документов»).
418
+ */
413
419
  items: {
414
420
  question: string;
421
+ /** Ответ: markdown-lite. У длинных пунктов — несколько абзацев. */
415
422
  answer: string;
423
+ /** Счётчик/подпись справа от заголовка: «12 документов». */
424
+ count?: string;
425
+ /** Раскрыт по умолчанию. */
426
+ open?: boolean;
416
427
  }[];
417
428
  }
418
429
  /**
@@ -5,6 +5,7 @@ export default class Form {
5
5
  name: string;
6
6
  status: string;
7
7
  imageUrl: string;
8
+ description: string;
8
9
  order: number;
9
10
  isLaboratory: boolean;
10
11
  formSections: FormSection[];
@@ -3,6 +3,7 @@ import { default as Form } from '../classes/Form';
3
3
  type __VLS_Props = {
4
4
  form: Form;
5
5
  title?: string;
6
+ description?: string;
6
7
  prefill?: Record<string, string>;
7
8
  paramBanner?: {
8
9
  key: string;
@@ -1,3 +1,13 @@
1
+ import * as ContactsModule from './contacts/index';
2
+ import * as ContentModule from './content/index';
3
+ import * as FiltersModule from './filters/index';
4
+ import * as FormsModule from './forms/index';
5
+ import * as MenusModule from './menus/index';
6
+ import * as NotifyModule from './notify/index';
7
+ import * as ScheduleModule from './schedule/index';
8
+ import * as SurveyModule from './survey/index';
9
+ import * as TableModule from './table/index';
10
+ import * as TabsModule from './tabs/index';
1
11
  export * as Contacts from './contacts/index';
2
12
  export * as Content from './content/index';
3
13
  export * as Filters from './filters/index';
@@ -8,3 +18,22 @@ export * as Schedule from './schedule/index';
8
18
  export * as Survey from './survey/index';
9
19
  export * as Table from './table/index';
10
20
  export * as Tabs from './tabs/index';
21
+ /**
22
+ * `ALL` — объект всех модулей для `PFM`.
23
+ *
24
+ * ⚠️ Именно он экспортируется в `src/index.ts` как `PFM`, вместо
25
+ * `import * as PFM`. Namespace-импорт ленивый и теряет модули при
26
+ * сборке библиотеки; явный объект — нет.
27
+ */
28
+ export declare const ALL: {
29
+ Contacts: typeof ContactsModule;
30
+ Content: typeof ContentModule;
31
+ Filters: typeof FiltersModule;
32
+ Forms: typeof FormsModule;
33
+ Menus: typeof MenusModule;
34
+ Notify: typeof NotifyModule;
35
+ Schedule: typeof ScheduleModule;
36
+ Survey: typeof SurveyModule;
37
+ Table: typeof TableModule;
38
+ Tabs: typeof TabsModule;
39
+ };
package/dist/sprof.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A as e, b as t, c as o, d as i, e as l, f as P, g as u, h as d, B as r, i as n, D as g, E as h, F as T, L as S, M as c, N as F, j as m, P as b, k as C, l as L, m as A, n as E, o as p, p as B, q as f, r as D, s as R, t as k, u as y, v as I, w as v, x as N, y as w, z as M, C as O, G as x, H as V, I as q, J as H, K as U, O as G, Q as J, R as K, S as W, T as _, U as j, V as z, W as X, X as Q, Y, Z, $, a0 as aa, a1 as sa, a2 as ea, a3 as ta, a4 as oa, a5 as ia, a6 as la, a7 as Pa, a8 as ua, a9 as da, aa as ra, ab as na, ac as ga, ad as ha, ae as Ta, af as Sa, ag as ca, ah as Fa, ai as ma, aj as ba, ak as Ca, al as La, am as Aa, an as Ea, ao as pa, ap as Ba, aq as fa, ar as Da, as as Ra, at as ka, au as ya, av as Ia, aw as va, ax as Na, ay as wa, az as Ma, aA as Oa, aB as xa, aC as Va, aD as qa, aE as Ha, aF as Ua, aG as Ga, aH as Ja, aI as Ka, aJ as Wa, aK as _a, aL as ja, aM as za, aN as Xa, aO as Qa } from "./index-CcAYzwj-.js";
1
+ import { A as e, b as t, c as o, d as i, e as l, f as P, g as u, h as d, B as r, i as n, D as g, E as h, F as T, L as S, M as c, N as F, j as m, P as b, k as C, l as L, m as A, n as E, o as p, p as B, q as f, r as D, s as R, t as k, u as y, v as I, w as v, x as N, y as w, z as M, C as O, G as x, H as V, I as q, J as H, K as U, O as G, Q as J, R as K, S as W, T as _, U as j, V as z, W as X, X as Q, Y, Z, $, a0 as aa, a1 as sa, a2 as ea, a3 as ta, a4 as oa, a5 as ia, a6 as la, a7 as Pa, a8 as ua, a9 as da, aa as ra, ab as na, ac as ga, ad as ha, ae as Ta, af as Sa, ag as ca, ah as Fa, ai as ma, aj as ba, ak as Ca, al as La, am as Aa, an as Ea, ao as pa, ap as Ba, aq as fa, ar as Da, as as Ra, at as ka, au as ya, av as Ia, aw as va, ax as Na, ay as wa, az as Ma, aA as Oa, aB as xa, aC as Va, aD as qa, aE as Ha, aF as Ua, aG as Ga, aH as Ja, aI as Ka, aJ as Wa, aK as _a, aL as ja, aM as za, aN as Xa, aO as Qa } from "./index-DdGKW1sL.js";
2
2
  export {
3
3
  e as AuthButtonLogin,
4
4
  t as AuthButtonRefresh,