sprof 0.2.18 → 0.2.20
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/{ExtractsList-DgW_psut.js → ExtractsList-C1218Nne.js} +1 -1
- package/dist/core/components/CarouselImages.vue.d.ts +1 -1
- package/dist/core/components/GeneralItem.vue.d.ts +2 -2
- package/dist/core/components/GridContainer.vue.d.ts +2 -2
- package/dist/core/components/InfoItem.vue.d.ts +2 -2
- package/dist/core/components/atoms/PButton/PButton.stories.d.ts +6 -6
- package/dist/core/components/atoms/PButton/PButton.vue.d.ts +1 -1
- package/dist/core/components/atoms/PCheckbox/PCheckBox.stories.d.ts +2 -2
- package/dist/core/components/atoms/PCheckbox/PCheckBox.vue.d.ts +1 -1
- package/dist/core/components/atoms/PDateInput/PDateInput.stories.d.ts +12 -12
- package/dist/core/components/atoms/PDateInput/PDateInput.vue.d.ts +1 -1
- package/dist/core/components/atoms/PDialog/PDialog.stories.d.ts +6 -6
- package/dist/core/components/atoms/PDialog/PDialog.vue.d.ts +1 -1
- package/dist/core/components/atoms/PFlex/PFlex.stories.d.ts +12 -12
- package/dist/core/components/atoms/PFlex/PFlex.vue.d.ts +2 -2
- package/dist/core/components/atoms/PInput/PInput.stories.d.ts +6 -6
- package/dist/core/components/atoms/PInput/PInput.vue.d.ts +1 -1
- package/dist/core/components/atoms/PInputDate/PInputDate.stories.d.ts +2 -2
- package/dist/core/components/atoms/PInputDate/PInputDate.vue.d.ts +1 -1
- package/dist/core/components/atoms/PInputNumber/PInputNumber.stories.d.ts +1 -1
- package/dist/core/components/atoms/PInputNumber/PInputNumber.vue.d.ts +1 -1
- package/dist/core/components/atoms/PLabelField/PLabelField.stories.d.ts +18 -18
- package/dist/core/components/atoms/PLabelField/PLabelField.vue.d.ts +3 -3
- package/dist/core/components/atoms/PList/PList.stories.d.ts +6 -6
- package/dist/core/components/atoms/PList/PList.vue.d.ts +1 -1
- package/dist/core/components/atoms/PRadio/PRadio.stories.d.ts +2 -2
- package/dist/core/components/atoms/PRadio/PRadio.vue.d.ts +1 -1
- package/dist/core/components/atoms/PSelect/PSelect.stories.d.ts +6 -6
- package/dist/core/components/atoms/PSelect/PSelect.vue.d.ts +1 -1
- package/dist/core/components/atoms/PString/PString.stories.d.ts +6 -6
- package/dist/core/components/atoms/PString/PString.vue.d.ts +3 -3
- package/dist/core/components/atoms/PToggle/PToggle.stories.d.ts +3 -3
- package/dist/core/components/atoms/PToggle/PToggle.vue.d.ts +1 -1
- package/dist/core/components/atoms/index.d.ts +2 -2
- package/dist/core/components/molecules/PCard/PCard.stories.d.ts +12 -12
- package/dist/core/components/molecules/PCard/PCard.vue.d.ts +1 -1
- package/dist/core/components/molecules/PCrudList/PCrudList.stories.d.ts +9 -9
- package/dist/core/components/molecules/PCrudList/PCrudList.vue.d.ts +1 -1
- package/dist/core/components/molecules/PEditDialog/PEditDialog.stories.d.ts +18 -18
- package/dist/core/components/molecules/PEditDialog/PEditDialog.vue.d.ts +2 -2
- package/dist/core/components/molecules/PModal/PModal.vue.d.ts +3 -3
- package/dist/core/components/organisms/PAuthForm/PAuthForm.stories.d.ts +14 -14
- package/dist/core/components/organisms/PAuthForm/PAuthForm.vue.d.ts +7 -7
- package/dist/core/components/organisms/PAuthModal/PAuthModal.stories.d.ts +2 -2
- package/dist/core/components/organisms/PAuthModal/PAuthModal.vue.d.ts +1 -1
- package/dist/core/components/organisms/PMenuTabs/PMenuTabs.stories.d.ts +6 -6
- package/dist/core/components/organisms/PMenuTabs/PMenuTabs.vue.d.ts +1 -1
- package/dist/core/components/organisms/PUploaderFile/PUploaderFile.stories.d.ts +9 -9
- package/dist/core/components/organisms/PUploaderFile/PUploaderFile.vue.d.ts +1 -1
- package/dist/core/components/organisms/PUploaderImage/ImageCropper.vue.d.ts +2 -2
- package/dist/global-components.d.ts +21 -1
- package/dist/index-CLoHvXYT.js +18658 -0
- package/dist/index.d.ts +5 -0
- package/dist/modules/contacts/components/PContactForm.test.d.ts +1 -0
- package/dist/modules/contacts/components/PContactForm.vue.d.ts +95 -0
- package/dist/modules/contacts/components/PContactFormDeleteDialog.vue.d.ts +44 -0
- package/dist/modules/contacts/components/PContactFormEdit.vue.d.ts +89 -0
- package/dist/modules/contacts/components/PContactFormEditDialog.vue.d.ts +51 -0
- package/dist/modules/contacts/components/PContactFormEditEmails.vue.d.ts +86 -0
- package/dist/modules/contacts/components/PContactFormEditPhones.vue.d.ts +86 -0
- package/dist/modules/contacts/components/PContactFormView.vue.d.ts +83 -0
- package/dist/modules/contacts/components/PContactFormViewEmails.vue.d.ts +86 -0
- package/dist/modules/contacts/components/PContactFormViewPhones.vue.d.ts +86 -0
- package/dist/modules/contacts/index.d.ts +14 -0
- package/dist/modules/contacts/types.d.ts +57 -0
- package/dist/modules/index.d.ts +8 -0
- package/dist/modules/table/PTable.test.d.ts +1 -0
- package/dist/modules/table/cells/PTableBadge.vue.d.ts +110 -0
- package/dist/modules/table/cells/PTableBadges.vue.d.ts +116 -0
- package/dist/modules/table/cells/PTableCount.vue.d.ts +14 -0
- package/dist/modules/table/cells/PTableEdit.vue.d.ts +6 -0
- package/dist/modules/table/cells/PTableNumber.vue.d.ts +119 -0
- package/dist/modules/table/cells/PTableSelect.vue.d.ts +9 -0
- package/dist/modules/table/cells/PTableString.vue.d.ts +105 -0
- package/dist/modules/table/index.d.ts +11 -0
- package/dist/sprof.js +62 -43
- package/dist/sprof.umd.cjs +15 -15
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/index-C9y_jQis.js +0 -17279
- package/dist/core/components/atoms/PTable/{PTable.stories.d.ts → PTableHtml.stories.d.ts} +6 -6
- package/dist/core/components/atoms/PTable/{PTable.test.d.ts → PTableHtml.test.d.ts} +0 -0
- package/dist/core/components/atoms/PTable/{PTable.vue.d.ts → PTableHtml.vue.d.ts} +1 -1
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { ContactsAdapter } from '../types';
|
|
2
|
+
declare const _default: <TContact, TPhone, TEmail>(__VLS_props: {
|
|
3
|
+
presetted?: number | undefined;
|
|
4
|
+
contact: TContact;
|
|
5
|
+
adapter: ContactsAdapter<TContact, TPhone, TEmail>;
|
|
6
|
+
labels?: Partial<{
|
|
7
|
+
readonly title: "Контактная информация";
|
|
8
|
+
readonly phonesTitle: "Телефоны";
|
|
9
|
+
readonly emailsTitle: "Электронная почта";
|
|
10
|
+
readonly addPhone: "Добавить телефон";
|
|
11
|
+
readonly addEmail: "Добавить email";
|
|
12
|
+
readonly noPhones: "Нет телефонных номеров";
|
|
13
|
+
readonly noEmails: "Нет email адресов";
|
|
14
|
+
readonly copied: "Скопировано в буфер обмена";
|
|
15
|
+
readonly copiedNumber: "Номер скопирован в буфер обмена";
|
|
16
|
+
readonly copiedEmail: "Email скопирован в буфер обмена";
|
|
17
|
+
readonly saved: "Сохранено";
|
|
18
|
+
readonly deleted: "Удалено";
|
|
19
|
+
readonly enterPhone: "Введите номер телефона";
|
|
20
|
+
readonly enterEmail: "Введите email адрес";
|
|
21
|
+
}> | undefined;
|
|
22
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, __VLS_ctx?: {
|
|
23
|
+
attrs: any;
|
|
24
|
+
slots: {};
|
|
25
|
+
emit: {};
|
|
26
|
+
} | undefined, __VLS_expose?: ((exposed: import('vue').ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
|
|
27
|
+
props: {
|
|
28
|
+
presetted?: number | undefined;
|
|
29
|
+
contact: TContact;
|
|
30
|
+
adapter: ContactsAdapter<TContact, TPhone, TEmail>;
|
|
31
|
+
labels?: Partial<{
|
|
32
|
+
readonly title: "Контактная информация";
|
|
33
|
+
readonly phonesTitle: "Телефоны";
|
|
34
|
+
readonly emailsTitle: "Электронная почта";
|
|
35
|
+
readonly addPhone: "Добавить телефон";
|
|
36
|
+
readonly addEmail: "Добавить email";
|
|
37
|
+
readonly noPhones: "Нет телефонных номеров";
|
|
38
|
+
readonly noEmails: "Нет email адресов";
|
|
39
|
+
readonly copied: "Скопировано в буфер обмена";
|
|
40
|
+
readonly copiedNumber: "Номер скопирован в буфер обмена";
|
|
41
|
+
readonly copiedEmail: "Email скопирован в буфер обмена";
|
|
42
|
+
readonly saved: "Сохранено";
|
|
43
|
+
readonly deleted: "Удалено";
|
|
44
|
+
readonly enterPhone: "Введите номер телефона";
|
|
45
|
+
readonly enterEmail: "Введите email адрес";
|
|
46
|
+
}> | undefined;
|
|
47
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
48
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
49
|
+
attrs: any;
|
|
50
|
+
slots: {};
|
|
51
|
+
emit: {};
|
|
52
|
+
}>) => globalThis.VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
53
|
+
[key: string]: any;
|
|
54
|
+
}> & {
|
|
55
|
+
__ctx?: {
|
|
56
|
+
props: {
|
|
57
|
+
presetted?: number | undefined;
|
|
58
|
+
contact: TContact;
|
|
59
|
+
adapter: ContactsAdapter<TContact, TPhone, TEmail>;
|
|
60
|
+
labels?: Partial<{
|
|
61
|
+
readonly title: "Контактная информация";
|
|
62
|
+
readonly phonesTitle: "Телефоны";
|
|
63
|
+
readonly emailsTitle: "Электронная почта";
|
|
64
|
+
readonly addPhone: "Добавить телефон";
|
|
65
|
+
readonly addEmail: "Добавить email";
|
|
66
|
+
readonly noPhones: "Нет телефонных номеров";
|
|
67
|
+
readonly noEmails: "Нет email адресов";
|
|
68
|
+
readonly copied: "Скопировано в буфер обмена";
|
|
69
|
+
readonly copiedNumber: "Номер скопирован в буфер обмена";
|
|
70
|
+
readonly copiedEmail: "Email скопирован в буфер обмена";
|
|
71
|
+
readonly saved: "Сохранено";
|
|
72
|
+
readonly deleted: "Удалено";
|
|
73
|
+
readonly enterPhone: "Введите номер телефона";
|
|
74
|
+
readonly enterEmail: "Введите email адрес";
|
|
75
|
+
}> | undefined;
|
|
76
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
77
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
78
|
+
attrs: any;
|
|
79
|
+
slots: {};
|
|
80
|
+
emit: {};
|
|
81
|
+
} | undefined;
|
|
82
|
+
};
|
|
83
|
+
export default _default;
|
|
84
|
+
type __VLS_PrettifyLocal<T> = {
|
|
85
|
+
[K in keyof T]: T[K];
|
|
86
|
+
} & {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
import { default as PContactForm } from './components/PContactForm.vue';
|
|
3
|
+
import { default as PContactFormDeleteDialog } from './components/PContactFormDeleteDialog.vue';
|
|
4
|
+
import { default as PContactFormEdit } from './components/PContactFormEdit.vue';
|
|
5
|
+
import { default as PContactFormEditDialog } from './components/PContactFormEditDialog.vue';
|
|
6
|
+
import { default as PContactFormEditEmails } from './components/PContactFormEditEmails.vue';
|
|
7
|
+
import { default as PContactFormEditPhones } from './components/PContactFormEditPhones.vue';
|
|
8
|
+
import { default as PContactFormView } from './components/PContactFormView.vue';
|
|
9
|
+
import { default as PContactFormViewEmails } from './components/PContactFormViewEmails.vue';
|
|
10
|
+
import { default as PContactFormViewPhones } from './components/PContactFormViewPhones.vue';
|
|
11
|
+
export { PContactForm, PContactFormDeleteDialog, PContactFormEdit, PContactFormEditDialog, PContactFormEditEmails, PContactFormEditPhones, PContactFormView, PContactFormViewEmails, PContactFormViewPhones, };
|
|
12
|
+
export type { ContactsAdapter, ContactsLabels } from './types';
|
|
13
|
+
export { defaultContactsLabels } from './types';
|
|
14
|
+
export default function install(app: App): void;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Адаптер контактных данных (P2.2) — «мост» между доменными моделями клиентов
|
|
3
|
+
* (hr: Contact/Phone/Email с декораторами и Store.*) и компонентами sprof.
|
|
4
|
+
*
|
|
5
|
+
* Компоненты PContact* работают ТОЛЬКО через этот адаптер — доменная модель
|
|
6
|
+
* остаётся в клиенте (как SchedulePersistence в модуле schedule).
|
|
7
|
+
*/
|
|
8
|
+
export interface ContactsAdapter<TContact = unknown, TPhone = unknown, TEmail = unknown> {
|
|
9
|
+
/** Список телефонов контакта */
|
|
10
|
+
phones(contact: TContact): TPhone[];
|
|
11
|
+
/** Список email'ов контакта */
|
|
12
|
+
emails(contact: TContact): TEmail[];
|
|
13
|
+
/** Создать телефон (пушить в contact.phones и вернуть) */
|
|
14
|
+
addPhone(contact: TContact): TPhone;
|
|
15
|
+
/** Создать email (пушить в contact.emails и вернуть) */
|
|
16
|
+
addEmail(contact: TContact): TEmail;
|
|
17
|
+
/** Номер телефона */
|
|
18
|
+
phoneNumber(phone: TPhone): string;
|
|
19
|
+
/** Маска набора номера ('' — без маски) */
|
|
20
|
+
phoneMask(phone: TPhone): string;
|
|
21
|
+
/** Описание телефона (необязательно) */
|
|
22
|
+
phoneDescription?(phone: TPhone): string;
|
|
23
|
+
/** Значение email */
|
|
24
|
+
emailValue(email: TEmail): string;
|
|
25
|
+
/** Описание email (необязательно) */
|
|
26
|
+
emailDescription?(email: TEmail): string;
|
|
27
|
+
/** id телефона (для удаления) */
|
|
28
|
+
phoneId?(phone: TPhone): string | undefined;
|
|
29
|
+
/** id email (для удаления) */
|
|
30
|
+
emailId?(email: TEmail): string | undefined;
|
|
31
|
+
/** Персистентность телефона */
|
|
32
|
+
updatePhone(phone: TPhone): Promise<void>;
|
|
33
|
+
removePhone(id?: string): Promise<void>;
|
|
34
|
+
/** Персистентность email */
|
|
35
|
+
updateEmail(email: TEmail): Promise<void>;
|
|
36
|
+
removeEmail(id?: string): Promise<void>;
|
|
37
|
+
/** Текст для «Скопировать все контакты» ('' — кнопка скрыта) */
|
|
38
|
+
copyAll(contact: TContact): string;
|
|
39
|
+
}
|
|
40
|
+
/** Локализация по умолчанию (переопределяется через пропсы title/subtitle) */
|
|
41
|
+
export declare const defaultContactsLabels: {
|
|
42
|
+
readonly title: "Контактная информация";
|
|
43
|
+
readonly phonesTitle: "Телефоны";
|
|
44
|
+
readonly emailsTitle: "Электронная почта";
|
|
45
|
+
readonly addPhone: "Добавить телефон";
|
|
46
|
+
readonly addEmail: "Добавить email";
|
|
47
|
+
readonly noPhones: "Нет телефонных номеров";
|
|
48
|
+
readonly noEmails: "Нет email адресов";
|
|
49
|
+
readonly copied: "Скопировано в буфер обмена";
|
|
50
|
+
readonly copiedNumber: "Номер скопирован в буфер обмена";
|
|
51
|
+
readonly copiedEmail: "Email скопирован в буфер обмена";
|
|
52
|
+
readonly saved: "Сохранено";
|
|
53
|
+
readonly deleted: "Удалено";
|
|
54
|
+
readonly enterPhone: "Введите номер телефона";
|
|
55
|
+
readonly enterEmail: "Введите email адрес";
|
|
56
|
+
};
|
|
57
|
+
export type ContactsLabels = typeof defaultContactsLabels;
|
package/dist/modules/index.d.ts
CHANGED
|
@@ -1,10 +1,18 @@
|
|
|
1
|
+
/** @deprecated 0 использований в клиентах — удаляется при 1.0.0 (P1.1) */
|
|
1
2
|
export * as Buildings from './buildings/index';
|
|
3
|
+
/** @deprecated 0 использований в клиентах — удаляется при 1.0.0 (P1.1) */
|
|
2
4
|
export * as Chats from './chats/index';
|
|
5
|
+
export * as Contacts from './contacts/index';
|
|
6
|
+
/** @deprecated 0 использований в клиентах (hr использует только компонент AdminFormPage) — удаляется при 1.0.0 (P1.1) */
|
|
3
7
|
export * as Docs from './docs/index';
|
|
8
|
+
/** @deprecated 0 использований в клиентах — удаляется при 1.0.0 (P1.1) */
|
|
4
9
|
export * as Extracts from './extracts/index';
|
|
5
10
|
export * as Forms from './forms/index';
|
|
6
11
|
export * as Menus from './menus/index';
|
|
12
|
+
/** @deprecated 0 использований в клиентах — удаляется при 1.0.0 (P1.1) */
|
|
7
13
|
export * as Pages from './pages/index';
|
|
8
14
|
export * as Schedule from './schedule/index';
|
|
15
|
+
/** @deprecated 0 использований в клиентах — удаляется при 1.0.0 (P1.1) */
|
|
9
16
|
export * as Settings from './settings/index';
|
|
17
|
+
export * as Table from './table/index';
|
|
10
18
|
export * as Tabs from './tabs/index';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { default as BaseStore } from '../../../core/helpers/BaseStore';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
row: Record<string, unknown>;
|
|
4
|
+
prop: string;
|
|
5
|
+
store: BaseStore;
|
|
6
|
+
storeOpts: BaseStore;
|
|
7
|
+
labelKey?: string;
|
|
8
|
+
};
|
|
9
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
10
|
+
click: () => any;
|
|
11
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
+
onClick?: (() => any) | undefined;
|
|
13
|
+
}>, {
|
|
14
|
+
labelKey: string;
|
|
15
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
16
|
+
edit: ({
|
|
17
|
+
$: import('vue').ComponentInternalInstance;
|
|
18
|
+
$data: {};
|
|
19
|
+
$props: {
|
|
20
|
+
readonly modelValue: boolean;
|
|
21
|
+
readonly title?: string | undefined;
|
|
22
|
+
readonly confirmLabel?: string | undefined;
|
|
23
|
+
readonly cancelLabel?: string | undefined;
|
|
24
|
+
readonly width?: string | undefined;
|
|
25
|
+
readonly disabled?: boolean | undefined;
|
|
26
|
+
readonly showConfirm: boolean;
|
|
27
|
+
readonly onClose?: (() => any) | undefined;
|
|
28
|
+
readonly onConfirm?: (() => any) | undefined;
|
|
29
|
+
readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
30
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
31
|
+
$attrs: import('vue').Attrs;
|
|
32
|
+
$refs: {
|
|
33
|
+
[x: string]: unknown;
|
|
34
|
+
};
|
|
35
|
+
$slots: Readonly<{
|
|
36
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
37
|
+
}>;
|
|
38
|
+
$root: globalThis.ComponentPublicInstance | null;
|
|
39
|
+
$parent: globalThis.ComponentPublicInstance | null;
|
|
40
|
+
$host: Element | null;
|
|
41
|
+
$emit: ((event: "close") => void) & ((event: "confirm") => void) & ((event: "update:modelValue", value: boolean) => void);
|
|
42
|
+
$el: any;
|
|
43
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('../../../core/components/molecules/PEditDialog/pEditDialogProps').PEditDialogProps> & Readonly<{
|
|
44
|
+
onClose?: (() => any) | undefined;
|
|
45
|
+
onConfirm?: (() => any) | undefined;
|
|
46
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
47
|
+
}>, {
|
|
48
|
+
opened: globalThis.Ref<boolean, boolean>;
|
|
49
|
+
toggle: () => void;
|
|
50
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
51
|
+
close: () => any;
|
|
52
|
+
confirm: () => any;
|
|
53
|
+
"update:modelValue": (value: boolean) => any;
|
|
54
|
+
}, string, {
|
|
55
|
+
title: string;
|
|
56
|
+
width: string;
|
|
57
|
+
disabled: boolean;
|
|
58
|
+
modelValue: boolean;
|
|
59
|
+
confirmLabel: string;
|
|
60
|
+
cancelLabel: string;
|
|
61
|
+
showConfirm: boolean;
|
|
62
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
63
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
64
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
65
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
66
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
67
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
68
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
69
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
70
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
71
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
72
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
73
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
74
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
75
|
+
renderTracked?: (((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[]) | undefined;
|
|
76
|
+
renderTriggered?: (((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[]) | undefined;
|
|
77
|
+
errorCaptured?: (((err: unknown, instance: globalThis.ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: globalThis.ComponentPublicInstance | null, info: string) => boolean | void)[]) | undefined;
|
|
78
|
+
};
|
|
79
|
+
$forceUpdate: () => void;
|
|
80
|
+
$nextTick: typeof import('vue').nextTick;
|
|
81
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R, args_2: import('@vue/reactivity').OnCleanup) => any : (args_0: any, args_1: any, args_2: import('@vue/reactivity').OnCleanup) => any, options?: import('vue').WatchOptions<boolean> | undefined): import('vue').WatchStopHandle;
|
|
82
|
+
} & Readonly<{
|
|
83
|
+
title: string;
|
|
84
|
+
width: string;
|
|
85
|
+
disabled: boolean;
|
|
86
|
+
modelValue: boolean;
|
|
87
|
+
confirmLabel: string;
|
|
88
|
+
cancelLabel: string;
|
|
89
|
+
showConfirm: boolean;
|
|
90
|
+
}> & Omit<Readonly<import('../../../core/components/molecules/PEditDialog/pEditDialogProps').PEditDialogProps> & Readonly<{
|
|
91
|
+
onClose?: (() => any) | undefined;
|
|
92
|
+
onConfirm?: (() => any) | undefined;
|
|
93
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
94
|
+
}>, "toggle" | "opened" | ("title" | "width" | "disabled" | "modelValue" | "confirmLabel" | "cancelLabel" | "showConfirm")> & {
|
|
95
|
+
opened: boolean;
|
|
96
|
+
toggle: () => void;
|
|
97
|
+
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
98
|
+
$slots: {
|
|
99
|
+
default?(_: {}): any;
|
|
100
|
+
};
|
|
101
|
+
}) | null;
|
|
102
|
+
}, any>, {
|
|
103
|
+
default?(_: {}): any;
|
|
104
|
+
}>;
|
|
105
|
+
export default _default;
|
|
106
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
107
|
+
new (): {
|
|
108
|
+
$slots: S;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { default as BaseStore } from '../../../core/helpers/BaseStore';
|
|
2
|
+
/**
|
|
3
|
+
* Бейдж «первый +N» для many-связей (PTableBadges).
|
|
4
|
+
* Унифицирует hr (items) и portal (row+prop) варианты:
|
|
5
|
+
* - `items` — массив связанных сущностей (или одна сущность);
|
|
6
|
+
* - `row` + `prop` — альтернатива: items берётся из row[prop];
|
|
7
|
+
* - слот `#default` — кастомный выбор (вместо POptionsListSingle).
|
|
8
|
+
*/
|
|
9
|
+
type __VLS_Props = {
|
|
10
|
+
items?: Record<string, unknown> | Record<string, unknown>[];
|
|
11
|
+
row?: Record<string, unknown>;
|
|
12
|
+
prop?: string;
|
|
13
|
+
store?: BaseStore;
|
|
14
|
+
storeOpts?: BaseStore;
|
|
15
|
+
labelKey?: string;
|
|
16
|
+
cellKey?: string;
|
|
17
|
+
};
|
|
18
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
19
|
+
labelKey: string;
|
|
20
|
+
cellKey: string;
|
|
21
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
22
|
+
edit: ({
|
|
23
|
+
$: import('vue').ComponentInternalInstance;
|
|
24
|
+
$data: {};
|
|
25
|
+
$props: {
|
|
26
|
+
readonly modelValue: boolean;
|
|
27
|
+
readonly title?: string | undefined;
|
|
28
|
+
readonly confirmLabel?: string | undefined;
|
|
29
|
+
readonly cancelLabel?: string | undefined;
|
|
30
|
+
readonly width?: string | undefined;
|
|
31
|
+
readonly disabled?: boolean | undefined;
|
|
32
|
+
readonly showConfirm: boolean;
|
|
33
|
+
readonly onClose?: (() => any) | undefined;
|
|
34
|
+
readonly onConfirm?: (() => any) | undefined;
|
|
35
|
+
readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
36
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
37
|
+
$attrs: import('vue').Attrs;
|
|
38
|
+
$refs: {
|
|
39
|
+
[x: string]: unknown;
|
|
40
|
+
};
|
|
41
|
+
$slots: Readonly<{
|
|
42
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
43
|
+
}>;
|
|
44
|
+
$root: globalThis.ComponentPublicInstance | null;
|
|
45
|
+
$parent: globalThis.ComponentPublicInstance | null;
|
|
46
|
+
$host: Element | null;
|
|
47
|
+
$emit: ((event: "close") => void) & ((event: "confirm") => void) & ((event: "update:modelValue", value: boolean) => void);
|
|
48
|
+
$el: any;
|
|
49
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('../../../core/components/molecules/PEditDialog/pEditDialogProps').PEditDialogProps> & Readonly<{
|
|
50
|
+
onClose?: (() => any) | undefined;
|
|
51
|
+
onConfirm?: (() => any) | undefined;
|
|
52
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
53
|
+
}>, {
|
|
54
|
+
opened: globalThis.Ref<boolean, boolean>;
|
|
55
|
+
toggle: () => void;
|
|
56
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
57
|
+
close: () => any;
|
|
58
|
+
confirm: () => any;
|
|
59
|
+
"update:modelValue": (value: boolean) => any;
|
|
60
|
+
}, string, {
|
|
61
|
+
title: string;
|
|
62
|
+
width: string;
|
|
63
|
+
disabled: boolean;
|
|
64
|
+
modelValue: boolean;
|
|
65
|
+
confirmLabel: string;
|
|
66
|
+
cancelLabel: string;
|
|
67
|
+
showConfirm: boolean;
|
|
68
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
69
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
70
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
71
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
72
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
73
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
74
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
75
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
76
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
77
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
78
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
79
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
80
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
81
|
+
renderTracked?: (((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[]) | undefined;
|
|
82
|
+
renderTriggered?: (((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[]) | undefined;
|
|
83
|
+
errorCaptured?: (((err: unknown, instance: globalThis.ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: globalThis.ComponentPublicInstance | null, info: string) => boolean | void)[]) | undefined;
|
|
84
|
+
};
|
|
85
|
+
$forceUpdate: () => void;
|
|
86
|
+
$nextTick: typeof import('vue').nextTick;
|
|
87
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R, args_2: import('@vue/reactivity').OnCleanup) => any : (args_0: any, args_1: any, args_2: import('@vue/reactivity').OnCleanup) => any, options?: import('vue').WatchOptions<boolean> | undefined): import('vue').WatchStopHandle;
|
|
88
|
+
} & Readonly<{
|
|
89
|
+
title: string;
|
|
90
|
+
width: string;
|
|
91
|
+
disabled: boolean;
|
|
92
|
+
modelValue: boolean;
|
|
93
|
+
confirmLabel: string;
|
|
94
|
+
cancelLabel: string;
|
|
95
|
+
showConfirm: boolean;
|
|
96
|
+
}> & Omit<Readonly<import('../../../core/components/molecules/PEditDialog/pEditDialogProps').PEditDialogProps> & Readonly<{
|
|
97
|
+
onClose?: (() => any) | undefined;
|
|
98
|
+
onConfirm?: (() => any) | undefined;
|
|
99
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
100
|
+
}>, "toggle" | "opened" | ("title" | "width" | "disabled" | "modelValue" | "confirmLabel" | "cancelLabel" | "showConfirm")> & {
|
|
101
|
+
opened: boolean;
|
|
102
|
+
toggle: () => void;
|
|
103
|
+
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
104
|
+
$slots: {
|
|
105
|
+
default?(_: {}): any;
|
|
106
|
+
};
|
|
107
|
+
}) | null;
|
|
108
|
+
}, any>, {
|
|
109
|
+
default?(_: {}): any;
|
|
110
|
+
}>;
|
|
111
|
+
export default _default;
|
|
112
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
113
|
+
new (): {
|
|
114
|
+
$slots: S;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
label?: string;
|
|
3
|
+
count: number;
|
|
4
|
+
to?: string;
|
|
5
|
+
cellKey?: string;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
click: () => any;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
+
onClick?: (() => any) | undefined;
|
|
11
|
+
}>, {
|
|
12
|
+
cellKey: string;
|
|
13
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
domen: string;
|
|
3
|
+
row: Record<string, unknown>;
|
|
4
|
+
}
|
|
5
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { default as BaseStore } from '../../../core/helpers/BaseStore';
|
|
2
|
+
interface Props {
|
|
3
|
+
row: Record<string, unknown>;
|
|
4
|
+
prop: string;
|
|
5
|
+
store?: BaseStore;
|
|
6
|
+
readonly?: boolean;
|
|
7
|
+
label?: string;
|
|
8
|
+
/** Количество десятичных знаков для отображения (toFixed). По умолчанию — авто */
|
|
9
|
+
decimals?: number;
|
|
10
|
+
/** Мин. значение для input */
|
|
11
|
+
min?: number;
|
|
12
|
+
/** Макс. значение для input */
|
|
13
|
+
max?: number;
|
|
14
|
+
/** Шаг для кнопок +/− */
|
|
15
|
+
step?: number;
|
|
16
|
+
/** Плейсхолдер, когда значение null/undefined */
|
|
17
|
+
emptyPlaceholder?: string;
|
|
18
|
+
/** Макс. цифр до появления tooltip */
|
|
19
|
+
tooltipThreshold?: number;
|
|
20
|
+
}
|
|
21
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
22
|
+
label: string;
|
|
23
|
+
readonly: boolean;
|
|
24
|
+
prop: string;
|
|
25
|
+
decimals: number;
|
|
26
|
+
min: number;
|
|
27
|
+
max: number;
|
|
28
|
+
step: number;
|
|
29
|
+
emptyPlaceholder: string;
|
|
30
|
+
tooltipThreshold: number;
|
|
31
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
32
|
+
edit: ({
|
|
33
|
+
$: import('vue').ComponentInternalInstance;
|
|
34
|
+
$data: {};
|
|
35
|
+
$props: {
|
|
36
|
+
readonly modelValue: boolean;
|
|
37
|
+
readonly title?: string | undefined;
|
|
38
|
+
readonly confirmLabel?: string | undefined;
|
|
39
|
+
readonly cancelLabel?: string | undefined;
|
|
40
|
+
readonly width?: string | undefined;
|
|
41
|
+
readonly disabled?: boolean | undefined;
|
|
42
|
+
readonly showConfirm: boolean;
|
|
43
|
+
readonly onClose?: (() => any) | undefined;
|
|
44
|
+
readonly onConfirm?: (() => any) | undefined;
|
|
45
|
+
readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
46
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
47
|
+
$attrs: import('vue').Attrs;
|
|
48
|
+
$refs: {
|
|
49
|
+
[x: string]: unknown;
|
|
50
|
+
};
|
|
51
|
+
$slots: Readonly<{
|
|
52
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
53
|
+
}>;
|
|
54
|
+
$root: globalThis.ComponentPublicInstance | null;
|
|
55
|
+
$parent: globalThis.ComponentPublicInstance | null;
|
|
56
|
+
$host: Element | null;
|
|
57
|
+
$emit: ((event: "close") => void) & ((event: "confirm") => void) & ((event: "update:modelValue", value: boolean) => void);
|
|
58
|
+
$el: any;
|
|
59
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('../../../core/components/molecules/PEditDialog/pEditDialogProps').PEditDialogProps> & Readonly<{
|
|
60
|
+
onClose?: (() => any) | undefined;
|
|
61
|
+
onConfirm?: (() => any) | undefined;
|
|
62
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
63
|
+
}>, {
|
|
64
|
+
opened: globalThis.Ref<boolean, boolean>;
|
|
65
|
+
toggle: () => void;
|
|
66
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
67
|
+
close: () => any;
|
|
68
|
+
confirm: () => any;
|
|
69
|
+
"update:modelValue": (value: boolean) => any;
|
|
70
|
+
}, string, {
|
|
71
|
+
title: string;
|
|
72
|
+
width: string;
|
|
73
|
+
disabled: boolean;
|
|
74
|
+
modelValue: boolean;
|
|
75
|
+
confirmLabel: string;
|
|
76
|
+
cancelLabel: string;
|
|
77
|
+
showConfirm: boolean;
|
|
78
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
79
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
80
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
81
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
82
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
83
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
84
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
85
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
86
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
87
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
88
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
89
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
90
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
91
|
+
renderTracked?: (((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[]) | undefined;
|
|
92
|
+
renderTriggered?: (((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[]) | undefined;
|
|
93
|
+
errorCaptured?: (((err: unknown, instance: globalThis.ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: globalThis.ComponentPublicInstance | null, info: string) => boolean | void)[]) | undefined;
|
|
94
|
+
};
|
|
95
|
+
$forceUpdate: () => void;
|
|
96
|
+
$nextTick: typeof import('vue').nextTick;
|
|
97
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R, args_2: import('@vue/reactivity').OnCleanup) => any : (args_0: any, args_1: any, args_2: import('@vue/reactivity').OnCleanup) => any, options?: import('vue').WatchOptions<boolean> | undefined): import('vue').WatchStopHandle;
|
|
98
|
+
} & Readonly<{
|
|
99
|
+
title: string;
|
|
100
|
+
width: string;
|
|
101
|
+
disabled: boolean;
|
|
102
|
+
modelValue: boolean;
|
|
103
|
+
confirmLabel: string;
|
|
104
|
+
cancelLabel: string;
|
|
105
|
+
showConfirm: boolean;
|
|
106
|
+
}> & Omit<Readonly<import('../../../core/components/molecules/PEditDialog/pEditDialogProps').PEditDialogProps> & Readonly<{
|
|
107
|
+
onClose?: (() => any) | undefined;
|
|
108
|
+
onConfirm?: (() => any) | undefined;
|
|
109
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
110
|
+
}>, "toggle" | "opened" | ("title" | "width" | "disabled" | "modelValue" | "confirmLabel" | "cancelLabel" | "showConfirm")> & {
|
|
111
|
+
opened: boolean;
|
|
112
|
+
toggle: () => void;
|
|
113
|
+
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
114
|
+
$slots: {
|
|
115
|
+
default?(_: {}): any;
|
|
116
|
+
};
|
|
117
|
+
}) | null;
|
|
118
|
+
}, any>;
|
|
119
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as BaseStore } from '../../../core/helpers/BaseStore';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
row: Record<string, unknown>;
|
|
4
|
+
prop: string;
|
|
5
|
+
storeOpts: BaseStore;
|
|
6
|
+
store: BaseStore;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
export default _default;
|