sprof 1.0.3 → 1.0.5
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/global-components.d.ts +7 -0
- package/dist/index.d.ts +1 -1
- package/dist/modules/table/cells/PTableActions.test.d.ts +1 -0
- package/dist/modules/table/cells/PTableActions.vue.d.ts +34 -0
- package/dist/modules/table/index.d.ts +2 -1
- package/dist/sprof.js +1892 -1858
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -3,6 +3,7 @@ import type * as Components from '@/core/components/components';
|
|
|
3
3
|
import type * as Molecules from '@/core/components/molecules';
|
|
4
4
|
import type * as Organisms from '@/core/components/organisms';
|
|
5
5
|
import type * as Contacts from '@/modules/contacts';
|
|
6
|
+
import type * as Forms from '@/modules/forms';
|
|
6
7
|
import type * as Table from '@/modules/table';
|
|
7
8
|
import type * as Tabs from '@/modules/tabs';
|
|
8
9
|
declare module 'vue' {
|
|
@@ -71,7 +72,13 @@ declare module 'vue' {
|
|
|
71
72
|
PContactFormViewEmails: typeof Contacts.PContactFormViewEmails;
|
|
72
73
|
PContactFormViewPhones: typeof Contacts.PContactFormViewPhones;
|
|
73
74
|
defaultContactsLabels: typeof Contacts.defaultContactsLabels;
|
|
75
|
+
PFieldInput: typeof Forms.PFieldInput;
|
|
76
|
+
PFormBuilder: typeof Forms.PFormBuilder;
|
|
77
|
+
PFormFieldEditor: typeof Forms.PFormFieldEditor;
|
|
78
|
+
PFormRenderer: typeof Forms.PFormRenderer;
|
|
79
|
+
PFormSectionEditor: typeof Forms.PFormSectionEditor;
|
|
74
80
|
PTable: typeof Table.PTable;
|
|
81
|
+
PTableActions: typeof Table.PTableActions;
|
|
75
82
|
PTableBadge: typeof Table.PTableBadge;
|
|
76
83
|
PTableBadges: typeof Table.PTableBadges;
|
|
77
84
|
PTableCount: typeof Table.PTableCount;
|
package/dist/index.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ export { default as ScheduleGridEditor } from './modules/schedule/components/Sch
|
|
|
28
28
|
export { default as ScheduleTimeline } from './modules/schedule/components/ScheduleTimeline.vue';
|
|
29
29
|
export type { NotifyType, ScheduleFactories, ScheduleItemKind, ScheduleLabels, SchedulePersistence, } from './modules/schedule/types/index';
|
|
30
30
|
export { defaultScheduleLabels as ScheduleDefaultLabels } from './modules/schedule/types/index';
|
|
31
|
-
export { PTable, PTableBadge, PTableBadges, PTableCount, PTableEdit, PTableNumber, PTableSelect, PTableString } from './modules/table/index';
|
|
31
|
+
export { PTable, PTableActions, PTableBadge, PTableBadges, PTableCount, PTableEdit, PTableNumber, PTableSelect, PTableString } from './modules/table/index';
|
|
32
32
|
export { PTabs, PTabsLeft, TabsStore } from './modules/tabs/index';
|
|
33
33
|
export type { default as ITab } from './modules/tabs/ITab';
|
|
34
34
|
export { PContactForm, PContactFormDeleteDialog, PContactFormEdit, PContactFormEditDialog, PContactFormEditEmails, PContactFormEditPhones, PContactFormView, PContactFormViewEmails, PContactFormViewPhones, } from './modules/contacts/index';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface PTableAction {
|
|
2
|
+
/** Имя иконки Quasar (material icons). */
|
|
3
|
+
icon: string;
|
|
4
|
+
/** Цвет кнопки; по умолчанию — брендовый акцент (`primary`). */
|
|
5
|
+
color?: string;
|
|
6
|
+
/** Подсказка/`aria-label` (одно и то же — иначе кнопка без имени). */
|
|
7
|
+
title?: string;
|
|
8
|
+
/** Действие строки. */
|
|
9
|
+
handler: (row: Record<string, unknown>) => void;
|
|
10
|
+
/** Скрыть кнопку для конкретной строки (напр. нет права). */
|
|
11
|
+
show?: (row: Record<string, unknown>) => boolean;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Ячейка действий строки (кнопки-иконки справа/слева).
|
|
15
|
+
*
|
|
16
|
+
* Унифицирует десятки самодельных `<q-td auto-width>` с `PButton icon="edit"`,
|
|
17
|
+
* из-за которых шапка и тело расходились на колонку.
|
|
18
|
+
*
|
|
19
|
+
* ⚠️ `bare` — содержимое БЕЗ своей `q-td`: для слота `#lead` `PTable`
|
|
20
|
+
* (`<QTd v-if="lead">` рисует сама таблица). Обычная колонка идёт с `q-td`.
|
|
21
|
+
*/
|
|
22
|
+
type __VLS_Props = {
|
|
23
|
+
row: Record<string, any>;
|
|
24
|
+
actions: PTableAction[];
|
|
25
|
+
/** Без своей `q-td` — для вставки в слот `#lead`. */
|
|
26
|
+
bare?: boolean;
|
|
27
|
+
/** CSS-класс ячейки (для `bare` — на обёртке). */
|
|
28
|
+
cellClass?: string;
|
|
29
|
+
};
|
|
30
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
31
|
+
bare: boolean;
|
|
32
|
+
cellClass: string;
|
|
33
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
34
|
+
export default _default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
|
+
import { default as PTableActions } from './cells/PTableActions.vue';
|
|
2
3
|
import { default as PTableBadge } from './cells/PTableBadge.vue';
|
|
3
4
|
import { default as PTableBadges } from './cells/PTableBadges.vue';
|
|
4
5
|
import { default as PTableCount } from './cells/PTableCount.vue';
|
|
@@ -7,5 +8,5 @@ import { default as PTableNumber } from './cells/PTableNumber.vue';
|
|
|
7
8
|
import { default as PTableSelect } from './cells/PTableSelect.vue';
|
|
8
9
|
import { default as PTableString } from './cells/PTableString.vue';
|
|
9
10
|
import { default as PTable } from './PTable.vue';
|
|
10
|
-
export { PTable, PTableBadge, PTableBadges, PTableCount, PTableEdit, PTableNumber, PTableSelect, PTableString, };
|
|
11
|
+
export { PTable, PTableActions, PTableBadge, PTableBadges, PTableCount, PTableEdit, PTableNumber, PTableSelect, PTableString, };
|
|
11
12
|
export default function install(app: App): void;
|