sprof 0.1.57 → 0.2.2
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 +0 -0
- package/dist/ExtractsList-DRZdaLvF.js +51 -0
- package/dist/core/classes/index.d.ts +1 -1
- package/dist/core/components/GeneralItem.vue.d.ts +2 -2
- package/dist/core/components/GridContainer.vue.d.ts +1 -1
- package/dist/core/components/Icons/Filter/IconDownload.vue.d.ts +1 -1
- package/dist/core/components/Icons/Filter/IconFilter.vue.d.ts +1 -1
- package/dist/core/components/Icons/Pagination/ArrowLeft.vue.d.ts +1 -1
- package/dist/core/components/Icons/Pagination/ArrowRight.vue.d.ts +1 -1
- package/dist/core/components/Icons/Pagination/DoubleArrowLeft.vue.d.ts +1 -1
- package/dist/core/components/Icons/Pagination/DoubleArrowRight.vue.d.ts +1 -1
- package/dist/core/components/Icons/Pagination/EllipsisSvg.vue.d.ts +1 -1
- package/dist/core/components/InfoItem.vue.d.ts +1 -1
- package/dist/core/components/PPagination.vue.d.ts +2 -8
- package/dist/core/components/RemoteSearch.vue.d.ts +2 -2
- package/dist/core/components/atoms/PButton/PButton.stories.d.ts +48 -12
- package/dist/core/components/atoms/PButton/PButton.vue.d.ts +13 -2
- package/dist/core/components/atoms/PCheckbox/PCheckBox.stories.d.ts +4 -4
- package/dist/core/components/atoms/PCheckbox/PCheckBox.vue.d.ts +2 -2
- package/dist/core/components/atoms/PDatePicker/PDatePicker.vue.d.ts +3 -3
- package/dist/core/components/atoms/PFlex/PFlex.stories.d.ts +6 -6
- package/dist/core/components/atoms/PFlex/PFlex.vue.d.ts +1 -1
- package/dist/core/components/atoms/PInput/PInput.stories.d.ts +40 -22
- package/dist/core/components/atoms/PInput/PInput.vue.d.ts +11 -5
- package/dist/core/components/atoms/PInputNumber/PInputNumber.stories.d.ts +4 -4
- package/dist/core/components/atoms/PInputNumber/PInputNumber.vue.d.ts +4 -4
- package/dist/core/components/atoms/PLabelField/PLabelField.stories.d.ts +24 -24
- package/dist/core/components/atoms/PLabelField/PLabelField.vue.d.ts +5 -5
- package/dist/core/components/atoms/PLeftSlider/PLeftSlider.stories.d.ts +6 -6
- package/dist/core/components/atoms/PLeftSlider/PLeftSlider.vue.d.ts +1 -1
- package/dist/core/components/atoms/PList/PList.stories.d.ts +8 -8
- package/dist/core/components/atoms/PList/PList.vue.d.ts +2 -2
- package/dist/core/components/atoms/PListItem/PListItem.stories.d.ts +12 -12
- package/dist/core/components/atoms/PListItem/PListItem.vue.d.ts +2 -2
- package/dist/core/components/atoms/PRadio/PRadio.stories.d.ts +4 -4
- package/dist/core/components/atoms/PRadio/PRadio.vue.d.ts +2 -2
- package/dist/core/components/atoms/PRightSlider/PRightSlider.stories.d.ts +6 -6
- package/dist/core/components/atoms/PRightSlider/PRightSlider.vue.d.ts +1 -1
- package/dist/core/components/atoms/PSelect/PSelect.stories.d.ts +60 -24
- package/dist/core/components/atoms/PSelect/PSelect.vue.d.ts +15 -4
- package/dist/core/components/atoms/PSticky/PSticky.stories.d.ts +6 -6
- package/dist/core/components/atoms/PSticky/PSticky.vue.d.ts +1 -1
- package/dist/core/components/atoms/PString/PString.stories.d.ts +4 -4
- package/dist/core/components/atoms/PString/PString.vue.d.ts +2 -2
- package/dist/core/components/atoms/PTextarea/PTextarea.stories.d.ts +14 -18
- package/dist/core/components/atoms/PTextarea/PTextarea.vue.d.ts +3 -5
- package/dist/core/components/atoms/index.d.ts +2 -2
- package/dist/core/components/components.d.ts +1 -3
- package/dist/core/components/molecules/Collapse/CollapseItem.stories.d.ts +2 -2
- package/dist/core/components/molecules/Collapse/CollapseItem.vue.d.ts +1 -1
- package/dist/core/components/molecules/PAdd/PAdd.vue.d.ts +1 -1
- package/dist/core/components/molecules/PAdd/PContainer.vue.d.ts +1 -1
- package/dist/core/components/molecules/PAdd/PContainerStickyHead.vue.d.ts +1 -1
- package/dist/core/components/molecules/PDel/PDel.vue.d.ts +1 -1
- package/dist/core/components/molecules/PModal/PModal.vue.d.ts +3 -3
- package/dist/core/components/molecules/index.d.ts +1 -2
- package/dist/core/components/organisms/PAuthForm/PAuthForm.stories.d.ts +44 -35
- package/dist/core/components/organisms/PAuthForm/PAuthForm.vue.d.ts +22 -17
- 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/PUploaderFile/PUploaderFile.stories.d.ts +33 -33
- package/dist/core/components/organisms/PUploaderFile/PUploaderFile.vue.d.ts +4 -4
- package/dist/core/components/organisms/PUploaderImage/ImageCropper.vue.d.ts +6 -10
- package/dist/core/helpers/Classes.d.ts +2 -4
- package/dist/core/helpers/Message.d.ts +13 -2
- package/dist/core/interfaces/index.d.ts +11 -2
- package/dist/core/ui/Dialog.d.ts +18 -3
- package/dist/core/ui/Dialog.test.d.ts +1 -0
- package/dist/core/ui/Notify.d.ts +19 -24
- package/dist/core/ui/Notify.test.d.ts +1 -0
- package/dist/index-CNpz7Czv.js +13826 -0
- package/dist/index.d.ts +3 -4
- package/dist/install.d.ts +25 -0
- package/dist/modules/buildings/classes/index.d.ts +4 -0
- package/dist/modules/buildings/index.d.ts +2 -0
- package/dist/modules/extracts/index.d.ts +3 -0
- package/dist/modules/index.d.ts +3 -1
- package/dist/sprof.js +5 -13833
- package/dist/sprof.umd.cjs +14 -18
- package/dist/style.css +1 -1
- package/dist/test-utils/quasar.d.ts +5 -0
- package/package.json +20 -4
- package/dist/core/components/MessageBody.vue.d.ts +0 -27
- package/dist/core/components/PDialog.vue.d.ts +0 -2
- package/dist/core/components/molecules/PNotify/PNotify.stories.d.ts +0 -242
- package/dist/core/components/molecules/PNotify/PNotify.vue.d.ts +0 -2
- package/dist/core/ui/index.d.ts +0 -110
|
@@ -37,9 +37,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
37
37
|
}> & Omit<{
|
|
38
38
|
readonly [x: string]: any;
|
|
39
39
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>;
|
|
40
|
-
$attrs:
|
|
41
|
-
[x: string]: unknown;
|
|
42
|
-
};
|
|
40
|
+
$attrs: import('vue').Attrs;
|
|
43
41
|
$refs: {
|
|
44
42
|
[x: string]: unknown;
|
|
45
43
|
};
|
|
@@ -82,7 +80,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
82
80
|
$forceUpdate: () => void;
|
|
83
81
|
$nextTick: typeof import('vue').nextTick;
|
|
84
82
|
$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;
|
|
85
|
-
} & Readonly<{}> & Omit<Readonly<any>, "refresh" | "reset" | "
|
|
83
|
+
} & Readonly<{}> & Omit<Readonly<any>, "refresh" | "reset" | "rotate" | "move" | "setCoordinates" | "getResult" | "zoom" | "flip"> & {
|
|
86
84
|
getResult: () => import('vue-advanced-cropper').CropperResult;
|
|
87
85
|
setCoordinates: (transform: import('vue-advanced-cropper').Transform | import('vue-advanced-cropper').Transform[]) => void;
|
|
88
86
|
refresh: () => void;
|
|
@@ -91,7 +89,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
91
89
|
rotate: (angle: number) => void;
|
|
92
90
|
flip: (horizontal: boolean, vertical?: boolean | undefined) => void;
|
|
93
91
|
reset: () => void;
|
|
94
|
-
}
|
|
92
|
+
} & {
|
|
95
93
|
[x: string]: never;
|
|
96
94
|
} & import('vue').MethodOptions & import('vue').ComponentCustomProperties & {}) | ({
|
|
97
95
|
$: import('vue').ComponentInternalInstance;
|
|
@@ -101,9 +99,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
101
99
|
}> & Omit<{
|
|
102
100
|
readonly [x: string]: any;
|
|
103
101
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>;
|
|
104
|
-
$attrs:
|
|
105
|
-
[x: string]: unknown;
|
|
106
|
-
};
|
|
102
|
+
$attrs: import('vue').Attrs;
|
|
107
103
|
$refs: {
|
|
108
104
|
[x: string]: unknown;
|
|
109
105
|
};
|
|
@@ -148,7 +144,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
148
144
|
$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;
|
|
149
145
|
} & Readonly<{
|
|
150
146
|
[x: string]: any;
|
|
151
|
-
}> & Omit<Readonly<any>, "refresh" | "reset" | "
|
|
147
|
+
}> & Omit<Readonly<any>, "refresh" | "reset" | "rotate" | "move" | "setCoordinates" | "getResult" | "zoom" | "flip"> & {
|
|
152
148
|
getResult: () => import('vue-advanced-cropper').CropperResult;
|
|
153
149
|
setCoordinates: (transform: import('vue-advanced-cropper').Transform | import('vue-advanced-cropper').Transform[]) => void;
|
|
154
150
|
refresh: () => void;
|
|
@@ -157,7 +153,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
157
153
|
rotate: (angle: number) => void;
|
|
158
154
|
flip: (horizontal: boolean, vertical?: boolean | undefined) => void;
|
|
159
155
|
reset: () => void;
|
|
160
|
-
}
|
|
156
|
+
} & {
|
|
161
157
|
[x: string]: never;
|
|
162
158
|
} & import('vue').MethodOptions & import('vue').ComponentCustomProperties & {}) | null;
|
|
163
159
|
}, HTMLDivElement>;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { default as IWithId } from '../interfaces/IWithId';
|
|
2
|
-
export type ClassType =
|
|
3
|
-
[key: string]: any;
|
|
4
|
-
};
|
|
2
|
+
export type ClassType = Record<string, any>;
|
|
5
3
|
export type Constructable<T> = {
|
|
6
4
|
new (...args: any[]): T;
|
|
7
5
|
};
|
|
@@ -15,6 +13,6 @@ export default class Classes {
|
|
|
15
13
|
static GetPropertyName<T extends ClassType>(obj: Constructable<T>): T;
|
|
16
14
|
static InitClassInstance(passedClass: ClassType, arg?: ClassType): ClassType;
|
|
17
15
|
static ExistsWithId(arr: IWithId[], id?: string): boolean;
|
|
18
|
-
static DeepMap(fn: (...args: any) => any): any;
|
|
16
|
+
static DeepMap(fn: (...args: any[]) => any): (obj: unknown) => any;
|
|
19
17
|
static DeepTrim<T>(obj: T): any;
|
|
20
18
|
}
|
|
@@ -1,17 +1,28 @@
|
|
|
1
1
|
import { default as Statuses } from '../types/Statuses';
|
|
2
|
-
import { default as Visible } from './Visible';
|
|
3
2
|
export type MessageOpts = {
|
|
4
3
|
text: string;
|
|
5
4
|
title?: string;
|
|
6
5
|
};
|
|
7
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Base class for UI messages (Notify / Dialog).
|
|
8
|
+
*
|
|
9
|
+
* Stores the message state (text / title / type) and provides helpers to
|
|
10
|
+
* build messages and map sprof `Statuses` onto Quasar theme colors.
|
|
11
|
+
* Rendering itself is delegated to the Quasar plugins (Notify / Dialog).
|
|
12
|
+
*/
|
|
13
|
+
export default abstract class Message {
|
|
8
14
|
type: Statuses;
|
|
9
15
|
text: string;
|
|
10
16
|
title: string;
|
|
17
|
+
/** Map sprof Statuses → Quasar theme color names */
|
|
18
|
+
static ToQuasarColor(t: Statuses): string;
|
|
19
|
+
/** True when the string contains HTML markup (e.g. FormMessage output) */
|
|
20
|
+
static ContainsHtml(s: string): boolean;
|
|
11
21
|
showMessage(m: string | MessageOpts, t: Statuses): void;
|
|
12
22
|
GetText(): string;
|
|
13
23
|
GetTitle(): string;
|
|
14
24
|
GetType(): Statuses;
|
|
25
|
+
GetQuasarColor(): string;
|
|
15
26
|
Info(m: string | MessageOpts): void;
|
|
16
27
|
Success(m: string | MessageOpts): void;
|
|
17
28
|
Error(m: string | MessageOpts): void;
|
|
@@ -1,2 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
1
|
+
export { AdminLayout } from './AdminLayout';
|
|
2
|
+
export { Animations } from './Animations';
|
|
3
|
+
export { CalendarScale } from './CalendarScale';
|
|
4
|
+
export type { Callback, MyCallbackWithOptParam } from './Callback';
|
|
5
|
+
export type { ClassNameGetter } from './Class';
|
|
6
|
+
export type { FilterModelBuilder } from './Filter';
|
|
7
|
+
export type { ISupposedTimePeriod as IWithSupposedTimePeriod } from './IWithSupposedTimePeriod';
|
|
8
|
+
export { default as LocalStoreKeys } from './LocalStoreKeys';
|
|
9
|
+
export { SocialTypes } from './SocialTypes';
|
|
10
|
+
export type { SortModelBuilder, SortModelBuildersLib } from './Sort';
|
|
11
|
+
export { default as ValueRelation } from './ValueRelation';
|
package/dist/core/ui/Dialog.d.ts
CHANGED
|
@@ -8,19 +8,34 @@ type DialogOpts = MessageOpts & {
|
|
|
8
8
|
text: string;
|
|
9
9
|
confirmButtonText: string;
|
|
10
10
|
cancelButtonText: string;
|
|
11
|
+
persistent?: boolean;
|
|
11
12
|
};
|
|
13
|
+
type DialogResolver = (value: DialogResult | boolean) => void;
|
|
14
|
+
type DialogRejecter = (reason?: unknown) => void;
|
|
15
|
+
/**
|
|
16
|
+
* Reactive singleton for confirm dialogs.
|
|
17
|
+
*
|
|
18
|
+
* Wraps the Quasar `Dialog` plugin (`Dialog.create`), so the consumer app
|
|
19
|
+
* must install Quasar with the Dialog plugin enabled:
|
|
20
|
+
*
|
|
21
|
+
* ```ts
|
|
22
|
+
* app.use(Quasar, { plugins: { Notify, Dialog } })
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
12
25
|
declare class DialogConstructor extends Message {
|
|
13
26
|
confirmButtonText: string;
|
|
14
27
|
cancelButtonText: string;
|
|
15
|
-
|
|
16
|
-
|
|
28
|
+
persistent: boolean;
|
|
29
|
+
resolve?: DialogResolver;
|
|
30
|
+
reject?: DialogRejecter;
|
|
17
31
|
GetConfirmButtonText(): string;
|
|
18
32
|
GetCancelButtonText(): string;
|
|
19
33
|
Show(m: string | DialogOpts): Promise<DialogResult>;
|
|
20
34
|
Save(): Promise<DialogResult>;
|
|
21
35
|
Submit(): void;
|
|
22
36
|
Cancel(): void;
|
|
23
|
-
|
|
37
|
+
/** Runs the action once and clears the stored handlers */
|
|
38
|
+
private Settle;
|
|
24
39
|
}
|
|
25
40
|
declare const Dialog: DialogConstructor;
|
|
26
41
|
export default Dialog;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/core/ui/Notify.d.ts
CHANGED
|
@@ -1,29 +1,24 @@
|
|
|
1
|
-
import { MessageOpts } from '../helpers/Message';
|
|
1
|
+
import { default as Message, MessageOpts } from '../helpers/Message';
|
|
2
2
|
import { default as Statuses } from '../types/Statuses';
|
|
3
3
|
type NotifyOpts = MessageOpts & {
|
|
4
4
|
duration: number;
|
|
5
5
|
};
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Reactive singleton for user notifications.
|
|
8
|
+
*
|
|
9
|
+
* Wraps the Quasar `Notify` plugin (`Notify.create`), so the consumer app
|
|
10
|
+
* must install Quasar with the Notify plugin enabled:
|
|
11
|
+
*
|
|
12
|
+
* ```ts
|
|
13
|
+
* app.use(Quasar, { plugins: { Notify, Dialog } })
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
declare class Notify extends Message {
|
|
7
17
|
duration: number;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
title: string;
|
|
16
|
-
GetText: () => string;
|
|
17
|
-
GetTitle: () => string;
|
|
18
|
-
GetType: () => Statuses;
|
|
19
|
-
Info: (m: string | MessageOpts) => void;
|
|
20
|
-
Success: (m: string | MessageOpts) => void;
|
|
21
|
-
Error: (m: string | MessageOpts) => void;
|
|
22
|
-
Warning: (m: string | MessageOpts) => void;
|
|
23
|
-
FormMessage: (errorFields: any) => string;
|
|
24
|
-
visible: boolean;
|
|
25
|
-
hide: () => void;
|
|
26
|
-
show: () => void;
|
|
27
|
-
IsVisible: () => boolean;
|
|
28
|
-
};
|
|
29
|
-
export default _default;
|
|
18
|
+
showMessage(m: string | NotifyOpts, t: Statuses): void;
|
|
19
|
+
GetDuration(): number;
|
|
20
|
+
Dev(): void;
|
|
21
|
+
Save(): void;
|
|
22
|
+
}
|
|
23
|
+
declare const instance: Notify;
|
|
24
|
+
export default instance;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|