sprof 1.0.4 → 1.0.6
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/core/components/atoms/PLoader/PLoader.stories.d.ts +15 -15
- package/dist/core/components/atoms/PLoader/PLoader.vue.d.ts +1 -1
- package/dist/global-components.d.ts +2 -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/cells/PTableEditableCell.test.d.ts +1 -0
- package/dist/modules/table/cells/PTableEditableCell.vue.d.ts +47 -0
- package/dist/modules/table/index.d.ts +3 -1
- package/dist/sprof.js +4433 -4158
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -25,8 +25,8 @@ declare const _default: {
|
|
|
25
25
|
spinnerSize: string;
|
|
26
26
|
loading: boolean;
|
|
27
27
|
empty: boolean;
|
|
28
|
-
loadingText: string;
|
|
29
28
|
emptyText: string;
|
|
29
|
+
loadingText: string;
|
|
30
30
|
emptyIcon: string;
|
|
31
31
|
retryLabel: string;
|
|
32
32
|
inline: boolean;
|
|
@@ -58,8 +58,8 @@ declare const _default: {
|
|
|
58
58
|
spinnerSize: string;
|
|
59
59
|
loading: boolean;
|
|
60
60
|
empty: boolean;
|
|
61
|
-
loadingText: string;
|
|
62
61
|
emptyText: string;
|
|
62
|
+
loadingText: string;
|
|
63
63
|
emptyIcon: string;
|
|
64
64
|
retryLabel: string;
|
|
65
65
|
inline: boolean;
|
|
@@ -90,8 +90,8 @@ declare const _default: {
|
|
|
90
90
|
spinnerSize: string;
|
|
91
91
|
loading: boolean;
|
|
92
92
|
empty: boolean;
|
|
93
|
-
loadingText: string;
|
|
94
93
|
emptyText: string;
|
|
94
|
+
loadingText: string;
|
|
95
95
|
emptyIcon: string;
|
|
96
96
|
retryLabel: string;
|
|
97
97
|
inline: boolean;
|
|
@@ -162,8 +162,8 @@ export declare const Loading: StoryFn<{
|
|
|
162
162
|
spinnerSize: string;
|
|
163
163
|
loading: boolean;
|
|
164
164
|
empty: boolean;
|
|
165
|
-
loadingText: string;
|
|
166
165
|
emptyText: string;
|
|
166
|
+
loadingText: string;
|
|
167
167
|
emptyIcon: string;
|
|
168
168
|
retryLabel: string;
|
|
169
169
|
inline: boolean;
|
|
@@ -195,8 +195,8 @@ export declare const Loading: StoryFn<{
|
|
|
195
195
|
spinnerSize: string;
|
|
196
196
|
loading: boolean;
|
|
197
197
|
empty: boolean;
|
|
198
|
-
loadingText: string;
|
|
199
198
|
emptyText: string;
|
|
199
|
+
loadingText: string;
|
|
200
200
|
emptyIcon: string;
|
|
201
201
|
retryLabel: string;
|
|
202
202
|
inline: boolean;
|
|
@@ -227,8 +227,8 @@ export declare const Loading: StoryFn<{
|
|
|
227
227
|
spinnerSize: string;
|
|
228
228
|
loading: boolean;
|
|
229
229
|
empty: boolean;
|
|
230
|
-
loadingText: string;
|
|
231
230
|
emptyText: string;
|
|
231
|
+
loadingText: string;
|
|
232
232
|
emptyIcon: string;
|
|
233
233
|
retryLabel: string;
|
|
234
234
|
inline: boolean;
|
|
@@ -266,8 +266,8 @@ export declare const Error: StoryFn<{
|
|
|
266
266
|
spinnerSize: string;
|
|
267
267
|
loading: boolean;
|
|
268
268
|
empty: boolean;
|
|
269
|
-
loadingText: string;
|
|
270
269
|
emptyText: string;
|
|
270
|
+
loadingText: string;
|
|
271
271
|
emptyIcon: string;
|
|
272
272
|
retryLabel: string;
|
|
273
273
|
inline: boolean;
|
|
@@ -299,8 +299,8 @@ export declare const Error: StoryFn<{
|
|
|
299
299
|
spinnerSize: string;
|
|
300
300
|
loading: boolean;
|
|
301
301
|
empty: boolean;
|
|
302
|
-
loadingText: string;
|
|
303
302
|
emptyText: string;
|
|
303
|
+
loadingText: string;
|
|
304
304
|
emptyIcon: string;
|
|
305
305
|
retryLabel: string;
|
|
306
306
|
inline: boolean;
|
|
@@ -331,8 +331,8 @@ export declare const Error: StoryFn<{
|
|
|
331
331
|
spinnerSize: string;
|
|
332
332
|
loading: boolean;
|
|
333
333
|
empty: boolean;
|
|
334
|
-
loadingText: string;
|
|
335
334
|
emptyText: string;
|
|
335
|
+
loadingText: string;
|
|
336
336
|
emptyIcon: string;
|
|
337
337
|
retryLabel: string;
|
|
338
338
|
inline: boolean;
|
|
@@ -370,8 +370,8 @@ export declare const Empty: StoryFn<{
|
|
|
370
370
|
spinnerSize: string;
|
|
371
371
|
loading: boolean;
|
|
372
372
|
empty: boolean;
|
|
373
|
-
loadingText: string;
|
|
374
373
|
emptyText: string;
|
|
374
|
+
loadingText: string;
|
|
375
375
|
emptyIcon: string;
|
|
376
376
|
retryLabel: string;
|
|
377
377
|
inline: boolean;
|
|
@@ -403,8 +403,8 @@ export declare const Empty: StoryFn<{
|
|
|
403
403
|
spinnerSize: string;
|
|
404
404
|
loading: boolean;
|
|
405
405
|
empty: boolean;
|
|
406
|
-
loadingText: string;
|
|
407
406
|
emptyText: string;
|
|
407
|
+
loadingText: string;
|
|
408
408
|
emptyIcon: string;
|
|
409
409
|
retryLabel: string;
|
|
410
410
|
inline: boolean;
|
|
@@ -435,8 +435,8 @@ export declare const Empty: StoryFn<{
|
|
|
435
435
|
spinnerSize: string;
|
|
436
436
|
loading: boolean;
|
|
437
437
|
empty: boolean;
|
|
438
|
-
loadingText: string;
|
|
439
438
|
emptyText: string;
|
|
439
|
+
loadingText: string;
|
|
440
440
|
emptyIcon: string;
|
|
441
441
|
retryLabel: string;
|
|
442
442
|
inline: boolean;
|
|
@@ -474,8 +474,8 @@ export declare const Ready: StoryFn<{
|
|
|
474
474
|
spinnerSize: string;
|
|
475
475
|
loading: boolean;
|
|
476
476
|
empty: boolean;
|
|
477
|
-
loadingText: string;
|
|
478
477
|
emptyText: string;
|
|
478
|
+
loadingText: string;
|
|
479
479
|
emptyIcon: string;
|
|
480
480
|
retryLabel: string;
|
|
481
481
|
inline: boolean;
|
|
@@ -507,8 +507,8 @@ export declare const Ready: StoryFn<{
|
|
|
507
507
|
spinnerSize: string;
|
|
508
508
|
loading: boolean;
|
|
509
509
|
empty: boolean;
|
|
510
|
-
loadingText: string;
|
|
511
510
|
emptyText: string;
|
|
511
|
+
loadingText: string;
|
|
512
512
|
emptyIcon: string;
|
|
513
513
|
retryLabel: string;
|
|
514
514
|
inline: boolean;
|
|
@@ -539,8 +539,8 @@ export declare const Ready: StoryFn<{
|
|
|
539
539
|
spinnerSize: string;
|
|
540
540
|
loading: boolean;
|
|
541
541
|
empty: boolean;
|
|
542
|
-
loadingText: string;
|
|
543
542
|
emptyText: string;
|
|
543
|
+
loadingText: string;
|
|
544
544
|
emptyIcon: string;
|
|
545
545
|
retryLabel: string;
|
|
546
546
|
inline: boolean;
|
|
@@ -32,8 +32,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
32
32
|
spinnerSize: string;
|
|
33
33
|
loading: boolean;
|
|
34
34
|
empty: boolean;
|
|
35
|
-
loadingText: string;
|
|
36
35
|
emptyText: string;
|
|
36
|
+
loadingText: string;
|
|
37
37
|
emptyIcon: string;
|
|
38
38
|
retryLabel: string;
|
|
39
39
|
inline: boolean;
|
|
@@ -78,10 +78,12 @@ declare module 'vue' {
|
|
|
78
78
|
PFormRenderer: typeof Forms.PFormRenderer;
|
|
79
79
|
PFormSectionEditor: typeof Forms.PFormSectionEditor;
|
|
80
80
|
PTable: typeof Table.PTable;
|
|
81
|
+
PTableActions: typeof Table.PTableActions;
|
|
81
82
|
PTableBadge: typeof Table.PTableBadge;
|
|
82
83
|
PTableBadges: typeof Table.PTableBadges;
|
|
83
84
|
PTableCount: typeof Table.PTableCount;
|
|
84
85
|
PTableEdit: typeof Table.PTableEdit;
|
|
86
|
+
PTableEditableCell: typeof Table.PTableEditableCell;
|
|
85
87
|
PTableNumber: typeof Table.PTableNumber;
|
|
86
88
|
PTableSelect: typeof Table.PTableSelect;
|
|
87
89
|
PTableString: typeof Table.PTableString;
|
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, PTableEditableCell, 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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { default as IOption } from '../../../core/interfaces/IOption';
|
|
2
|
+
/** Тип редактора — как в реестре полей rdkb-map. */
|
|
3
|
+
export type EditableKind = 'text' | 'number' | 'date' | 'select' | 'enum' | 'toggle' | 'none';
|
|
4
|
+
interface Props {
|
|
5
|
+
/** Текущее значение клетки (для отображения и как черновик). */
|
|
6
|
+
modelValue?: string | number | boolean | null;
|
|
7
|
+
/** Тип редактора. */
|
|
8
|
+
kind: EditableKind;
|
|
9
|
+
/** Подпись поля — заголовок окна. */
|
|
10
|
+
label?: string;
|
|
11
|
+
/** Можно ли править (права + не `none`). */
|
|
12
|
+
editable?: boolean;
|
|
13
|
+
/** Идёт сохранение — редакторы блокируются. */
|
|
14
|
+
saving?: boolean;
|
|
15
|
+
/** Для `select`/`enum` — варианты выбора. */
|
|
16
|
+
options?: IOption[];
|
|
17
|
+
/** Текст, когда значение пустое. */
|
|
18
|
+
emptyText?: string;
|
|
19
|
+
/** Оконный редактор текста — многострочный (`textarea`). */
|
|
20
|
+
multiline?: boolean;
|
|
21
|
+
placeholder?: string;
|
|
22
|
+
/** Единица измерения — приписывается к числу. */
|
|
23
|
+
unit?: string;
|
|
24
|
+
/** Для `number`. */
|
|
25
|
+
min?: number;
|
|
26
|
+
max?: number;
|
|
27
|
+
step?: number;
|
|
28
|
+
}
|
|
29
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
30
|
+
commit: (value: unknown) => any;
|
|
31
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
32
|
+
onCommit?: ((value: unknown) => any) | undefined;
|
|
33
|
+
}>, {
|
|
34
|
+
label: string;
|
|
35
|
+
options: IOption[];
|
|
36
|
+
multiline: boolean;
|
|
37
|
+
placeholder: string;
|
|
38
|
+
modelValue: string | number | boolean | null;
|
|
39
|
+
max: number;
|
|
40
|
+
min: number;
|
|
41
|
+
step: number;
|
|
42
|
+
saving: boolean;
|
|
43
|
+
editable: boolean;
|
|
44
|
+
emptyText: string;
|
|
45
|
+
unit: string;
|
|
46
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
47
|
+
export default _default;
|
|
@@ -1,11 +1,13 @@
|
|
|
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';
|
|
5
6
|
import { default as PTableEdit } from './cells/PTableEdit.vue';
|
|
7
|
+
import { default as PTableEditableCell } from './cells/PTableEditableCell.vue';
|
|
6
8
|
import { default as PTableNumber } from './cells/PTableNumber.vue';
|
|
7
9
|
import { default as PTableSelect } from './cells/PTableSelect.vue';
|
|
8
10
|
import { default as PTableString } from './cells/PTableString.vue';
|
|
9
11
|
import { default as PTable } from './PTable.vue';
|
|
10
|
-
export { PTable, PTableBadge, PTableBadges, PTableCount, PTableEdit, PTableNumber, PTableSelect, PTableString, };
|
|
12
|
+
export { PTable, PTableActions, PTableBadge, PTableBadges, PTableCount, PTableEdit, PTableEditableCell, PTableNumber, PTableSelect, PTableString, };
|
|
11
13
|
export default function install(app: App): void;
|