sprof 0.4.1 → 0.5.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 +1 -1
- package/dist/core/components/FiltersButtonsSelect.vue.d.ts +9 -0
- package/dist/core/components/SortSelect.vue.d.ts +9 -0
- package/dist/core/components/atoms/index.d.ts +1 -3
- package/dist/core/ftsp/FTSP.d.ts +8 -0
- package/dist/global-components.d.ts +0 -2
- package/dist/modules/forms/components/Fields/DateField.vue.d.ts +1 -1
- package/dist/modules/forms/components/Fields/FieldsComponentsMap.d.ts +1 -1
- package/dist/sprof.js +2574 -2642
- package/dist/sprof.umd.cjs +12 -12
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/core/components/atoms/PDatePicker/PDatePicker.stories.d.ts +0 -469
- package/dist/core/components/atoms/PDatePicker/PDatePicker.test.d.ts +0 -1
- package/dist/core/components/atoms/PDatePicker/PDatePicker.vue.d.ts +0 -84
- package/dist/core/components/atoms/PInputDate/PInputDate.stories.d.ts +0 -155
- package/dist/core/components/atoms/PInputDate/PInputDate.test.d.ts +0 -1
- package/dist/core/components/atoms/PInputDate/PInputDate.vue.d.ts +0 -63
package/README.md
CHANGED
|
@@ -146,7 +146,7 @@ import { PF, PFM } from 'sprof';
|
|
|
146
146
|
## 🧪 Разработка
|
|
147
147
|
|
|
148
148
|
```bash
|
|
149
|
-
npm run test # vitest (
|
|
149
|
+
npm run test # vitest (64 файла, 448 тестов)
|
|
150
150
|
npm run lint # eslint src --fix
|
|
151
151
|
npm run lint:check # eslint src (без мутаций, для CI)
|
|
152
152
|
npm run build # сборка dist (ESM + UMD + d.ts)
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { default as FilterModel } from '../ftsp/FilterModel';
|
|
2
|
+
import { default as FTSP } from '../ftsp/FTSP';
|
|
2
3
|
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
3
4
|
models: {
|
|
4
5
|
type: {
|
|
@@ -26,6 +27,10 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
26
27
|
required: false;
|
|
27
28
|
default: boolean;
|
|
28
29
|
};
|
|
30
|
+
ftsp: {
|
|
31
|
+
type: globalThis.PropType<FTSP>;
|
|
32
|
+
required: false;
|
|
33
|
+
};
|
|
29
34
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
30
35
|
load: (...args: any[]) => void;
|
|
31
36
|
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
@@ -55,6 +60,10 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
55
60
|
required: false;
|
|
56
61
|
default: boolean;
|
|
57
62
|
};
|
|
63
|
+
ftsp: {
|
|
64
|
+
type: globalThis.PropType<FTSP>;
|
|
65
|
+
required: false;
|
|
66
|
+
};
|
|
58
67
|
}>> & Readonly<{
|
|
59
68
|
onLoad?: ((...args: any[]) => any) | undefined;
|
|
60
69
|
}>, {
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
+
import { default as FTSP } from '../ftsp/FTSP';
|
|
1
2
|
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
2
3
|
maxWidth: {
|
|
3
4
|
type: (StringConstructor | NumberConstructor)[];
|
|
4
5
|
default: number;
|
|
5
6
|
};
|
|
7
|
+
ftsp: {
|
|
8
|
+
type: globalThis.PropType<FTSP>;
|
|
9
|
+
required: false;
|
|
10
|
+
};
|
|
6
11
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
12
|
load: (...args: any[]) => void;
|
|
8
13
|
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
@@ -10,6 +15,10 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
10
15
|
type: (StringConstructor | NumberConstructor)[];
|
|
11
16
|
default: number;
|
|
12
17
|
};
|
|
18
|
+
ftsp: {
|
|
19
|
+
type: globalThis.PropType<FTSP>;
|
|
20
|
+
required: false;
|
|
21
|
+
};
|
|
13
22
|
}>> & Readonly<{
|
|
14
23
|
onLoad?: ((...args: any[]) => any) | undefined;
|
|
15
24
|
}>, {
|
|
@@ -3,14 +3,12 @@ import { default as PButton } from './PButton/PButton.vue';
|
|
|
3
3
|
import { default as PCheckBox } from './PCheckbox/PCheckBox.vue';
|
|
4
4
|
import { default as PChip } from './PChip/PChip.vue';
|
|
5
5
|
import { default as PDateInput } from './PDateInput/PDateInput.vue';
|
|
6
|
-
import { default as PDatePicker } from './PDatePicker/PDatePicker.vue';
|
|
7
6
|
import { default as PDateTimeInput } from './PDateTimeInput/PDateTimeInput.vue';
|
|
8
7
|
import { default as PDialog } from './PDialog/PDialog.vue';
|
|
9
8
|
import { default as PFlex } from './PFlex/PFlex.vue';
|
|
10
9
|
import { default as PForm } from './PForm/PForm.vue';
|
|
11
10
|
import { default as PHint } from './PHint/PHint.vue';
|
|
12
11
|
import { default as PInput } from './PInput/PInput.vue';
|
|
13
|
-
import { default as PInputDate } from './PInputDate/PInputDate.vue';
|
|
14
12
|
import { default as PInputNumber } from './PInputNumber/PInputNumber.vue';
|
|
15
13
|
import { default as PLeftSlider } from './PLeftSlider/PLeftSlider.vue';
|
|
16
14
|
import { default as PList } from './PList/PList.vue';
|
|
@@ -30,4 +28,4 @@ import { default as PTopSlider } from './PTopSlider/PTopSlider.vue';
|
|
|
30
28
|
export default function install(app: {
|
|
31
29
|
component: (a: string, b: unknown) => void;
|
|
32
30
|
}): void;
|
|
33
|
-
export { PBadge, PButton, PCheckBox, PChip, PDateInput,
|
|
31
|
+
export { PBadge, PButton, PCheckBox, PChip, PDateInput, PDateTimeInput, PDialog, PFlex, PForm, PHint, PInput, PInputNumber, PLeftSlider, PList, PListItem, POptionsListSingle, POpts, PRadio, PRightSlider, PSelect, PSticky, PString, PTableToggle, PTextarea, PToggle, PTooltip, PTopSlider, };
|
package/dist/core/ftsp/FTSP.d.ts
CHANGED
|
@@ -13,6 +13,14 @@ export default class FTSP {
|
|
|
13
13
|
t: TreeModel;
|
|
14
14
|
constructor(i?: FTSP);
|
|
15
15
|
static Get(): FTSP;
|
|
16
|
+
/**
|
|
17
|
+
* Фабрика (Т1 TECH_DEBT): реактивный экземпляр на страницу/компонент.
|
|
18
|
+
*
|
|
19
|
+
* Синглтон Get() оставлен для совместимости; новый код — create() + передача
|
|
20
|
+
* экземпляра в useCrud/useFilters/usePagination и в компоненты с prop `ftsp`,
|
|
21
|
+
* чтобы фильтры/пагинация не «перетекали» между разделами.
|
|
22
|
+
*/
|
|
23
|
+
static create(): FTSP;
|
|
16
24
|
createFrom(ftsp: string): void;
|
|
17
25
|
clearForHTTP(): FTSP;
|
|
18
26
|
private static EmptyEntiries;
|
|
@@ -12,14 +12,12 @@ declare module 'vue' {
|
|
|
12
12
|
PCheckBox: typeof Atoms.PCheckBox;
|
|
13
13
|
PChip: typeof Atoms.PChip;
|
|
14
14
|
PDateInput: typeof Atoms.PDateInput;
|
|
15
|
-
PDatePicker: typeof Atoms.PDatePicker;
|
|
16
15
|
PDateTimeInput: typeof Atoms.PDateTimeInput;
|
|
17
16
|
PDialog: typeof Atoms.PDialog;
|
|
18
17
|
PFlex: typeof Atoms.PFlex;
|
|
19
18
|
PForm: typeof Atoms.PForm;
|
|
20
19
|
PHint: typeof Atoms.PHint;
|
|
21
20
|
PInput: typeof Atoms.PInput;
|
|
22
|
-
PInputDate: typeof Atoms.PInputDate;
|
|
23
21
|
PInputNumber: typeof Atoms.PInputNumber;
|
|
24
22
|
PLeftSlider: typeof Atoms.PLeftSlider;
|
|
25
23
|
PList: typeof Atoms.PList;
|
|
@@ -12,5 +12,5 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
12
12
|
};
|
|
13
13
|
}>> & Readonly<{
|
|
14
14
|
onFill?: ((...args: any[]) => any) | undefined;
|
|
15
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {},
|
|
15
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
16
16
|
export default _default;
|
|
@@ -58,7 +58,7 @@ declare const FiedlsComponents: {
|
|
|
58
58
|
};
|
|
59
59
|
}>> & Readonly<{
|
|
60
60
|
onFill?: ((...args: any[]) => any) | undefined;
|
|
61
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {},
|
|
61
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
62
62
|
radio: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
63
63
|
fieldFill: {
|
|
64
64
|
type: typeof import('../../classes').FieldFill;
|