sprof 1.9.0 → 1.10.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.
@@ -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 Filters from '@/modules/filters';
6
7
  import type * as Forms from '@/modules/forms';
7
8
  import type * as Table from '@/modules/table';
8
9
  import type * as Tabs from '@/modules/tabs';
@@ -73,6 +74,13 @@ declare module 'vue' {
73
74
  PContactFormViewEmails: typeof Contacts.PContactFormViewEmails;
74
75
  PContactFormViewPhones: typeof Contacts.PContactFormViewPhones;
75
76
  defaultContactsLabels: typeof Contacts.defaultContactsLabels;
77
+ PFilterCheckbox: typeof Filters.PFilterCheckbox;
78
+ PFilterCodeToggle: typeof Filters.PFilterCodeToggle;
79
+ PFilterInput: typeof Filters.PFilterInput;
80
+ PFilterInputOr: typeof Filters.PFilterInputOr;
81
+ PFilterSelect: typeof Filters.PFilterSelect;
82
+ PFilterSelectMultiple: typeof Filters.PFilterSelectMultiple;
83
+ PFilterToggle: typeof Filters.PFilterToggle;
76
84
  PFieldInput: typeof Forms.PFieldInput;
77
85
  PFormBuilder: typeof Forms.PFormBuilder;
78
86
  PFormFieldEditor: typeof Forms.PFormFieldEditor;
@@ -0,0 +1,14 @@
1
+ import { StoryFn } from '@storybook/vue3';
2
+ declare const _default: {
3
+ title: string;
4
+ tags: string[];
5
+ parameters: {
6
+ docs: {
7
+ description: {
8
+ component: string;
9
+ };
10
+ };
11
+ };
12
+ };
13
+ export default _default;
14
+ export declare const Overview: StoryFn;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ type __VLS_Props = {
2
+ model: InstanceType<typeof PF.F.FilterModel>;
3
+ };
4
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
5
+ load: () => any;
6
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
7
+ onLoad?: (() => any) | undefined;
8
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
+ export default _default;
@@ -0,0 +1,15 @@
1
+ type __VLS_Props = {
2
+ hasModel: InstanceType<typeof PF.F.FilterModel>;
3
+ noneModel: InstanceType<typeof PF.F.FilterModel>;
4
+ hasLabel?: string;
5
+ noneLabel?: string;
6
+ };
7
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
8
+ load: () => any;
9
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
10
+ onLoad?: (() => any) | undefined;
11
+ }>, {
12
+ hasLabel: string;
13
+ noneLabel: string;
14
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
15
+ export default _default;
@@ -0,0 +1,288 @@
1
+ type __VLS_Props = {
2
+ model: InstanceType<typeof PF.F.FilterModel>;
3
+ placeholder?: string;
4
+ width?: string;
5
+ debounce?: string | number;
6
+ };
7
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {
8
+ focus: () => void | undefined;
9
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
10
+ input: () => any;
11
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
12
+ onInput?: (() => any) | undefined;
13
+ }>, {
14
+ placeholder: string;
15
+ width: string;
16
+ debounce: string | number;
17
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
18
+ inputRef: ({
19
+ $: import('vue').ComponentInternalInstance;
20
+ $data: {};
21
+ $props: Partial<{
22
+ error: boolean;
23
+ color: string;
24
+ size: "s" | "l" | "m" | "xs" | "xl" | "sm" | "md" | "lg";
25
+ label: string;
26
+ padding: string;
27
+ mask: string;
28
+ margin: string;
29
+ width: string;
30
+ disabled: boolean;
31
+ borderColor: string;
32
+ rules: import('quasar').ValidationRule[];
33
+ errorMessage: string;
34
+ }> & Omit<{
35
+ readonly error: boolean;
36
+ readonly color: string;
37
+ readonly size: "s" | "l" | "m" | "xs" | "xl" | "sm" | "md" | "lg";
38
+ readonly label: string;
39
+ readonly padding: string;
40
+ readonly margin: string;
41
+ readonly width: string;
42
+ readonly disabled: boolean;
43
+ readonly borderColor: string;
44
+ readonly errorMessage: string;
45
+ readonly mask?: string | undefined;
46
+ readonly modelValue?: string | number | null | undefined;
47
+ readonly rules?: import('quasar').ValidationRule[] | undefined;
48
+ readonly onClear?: ((...args: any[]) => any) | undefined;
49
+ readonly onInput?: ((...args: any[]) => any) | undefined;
50
+ readonly onBlur?: ((...args: any[]) => any) | undefined;
51
+ readonly onFocus?: ((...args: any[]) => any) | undefined;
52
+ readonly "onUpdate:modelValue"?: ((value: string | number | null | undefined) => any) | undefined;
53
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "error" | "color" | "size" | "label" | "padding" | "mask" | "margin" | "width" | "disabled" | "borderColor" | "rules" | "errorMessage">;
54
+ $attrs: import('vue').Attrs;
55
+ $refs: {
56
+ [x: string]: unknown;
57
+ } & {
58
+ input: import('quasar').QInput | null;
59
+ };
60
+ $slots: Readonly<{
61
+ [name: string]: import('vue').Slot<any> | undefined;
62
+ }>;
63
+ $root: globalThis.ComponentPublicInstance | null;
64
+ $parent: globalThis.ComponentPublicInstance | null;
65
+ $host: Element | null;
66
+ $emit: ((event: "clear", ...args: any[]) => void) & ((event: "input", ...args: any[]) => void) & ((event: "blur", ...args: any[]) => void) & ((event: "focus", ...args: any[]) => void) & ((event: "update:modelValue", value: string | number | null | undefined) => void);
67
+ $el: any;
68
+ $options: import('vue').ComponentOptionsBase<Readonly<globalThis.ExtractPropTypes<{
69
+ label: {
70
+ type: StringConstructor;
71
+ default: string;
72
+ required: false;
73
+ };
74
+ margin: {
75
+ type: StringConstructor;
76
+ required: false;
77
+ default: string;
78
+ };
79
+ disabled: {
80
+ type: BooleanConstructor;
81
+ required: false;
82
+ default: boolean;
83
+ };
84
+ padding: {
85
+ type: StringConstructor;
86
+ default: string;
87
+ required: false;
88
+ };
89
+ width: {
90
+ type: StringConstructor;
91
+ required: false;
92
+ default: string;
93
+ };
94
+ size: {
95
+ type: globalThis.PropType<"s" | "l" | "m" | "xs" | "xl" | "sm" | "md" | "lg">;
96
+ default: import('../../../core/types/Sizes').default;
97
+ required: false;
98
+ };
99
+ mask: {
100
+ type: StringConstructor;
101
+ required: false;
102
+ default: undefined;
103
+ };
104
+ borderColor: {
105
+ type: StringConstructor;
106
+ default: string;
107
+ required: false;
108
+ };
109
+ color: {
110
+ type: StringConstructor;
111
+ default: string;
112
+ required: false;
113
+ };
114
+ rules: {
115
+ type: globalThis.PropType<import('quasar').ValidationRule[]>;
116
+ required: false;
117
+ default: undefined;
118
+ };
119
+ error: {
120
+ type: BooleanConstructor;
121
+ default: boolean;
122
+ };
123
+ errorMessage: {
124
+ type: StringConstructor;
125
+ default: string;
126
+ required: false;
127
+ };
128
+ modelValue: {
129
+ type: globalThis.PropType<string | number | null>;
130
+ };
131
+ }>> & Readonly<{
132
+ onClear?: ((...args: any[]) => any) | undefined;
133
+ onInput?: ((...args: any[]) => any) | undefined;
134
+ onBlur?: ((...args: any[]) => any) | undefined;
135
+ onFocus?: ((...args: any[]) => any) | undefined;
136
+ "onUpdate:modelValue"?: ((value: string | number | null | undefined) => any) | undefined;
137
+ }>, {
138
+ focus: () => void;
139
+ blur: () => void;
140
+ select: () => void;
141
+ getNativeElement: () => HTMLInputElement | undefined;
142
+ validate: () => Promise<boolean>;
143
+ resetValidation: () => void;
144
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
145
+ clear: (...args: any[]) => void;
146
+ input: (...args: any[]) => void;
147
+ blur: (...args: any[]) => void;
148
+ focus: (...args: any[]) => void;
149
+ "update:modelValue": (value: string | number | null | undefined) => void;
150
+ }, string, {
151
+ error: boolean;
152
+ color: string;
153
+ size: "s" | "l" | "m" | "xs" | "xl" | "sm" | "md" | "lg";
154
+ label: string;
155
+ padding: string;
156
+ mask: string;
157
+ margin: string;
158
+ width: string;
159
+ disabled: boolean;
160
+ borderColor: string;
161
+ rules: import('quasar').ValidationRule[];
162
+ errorMessage: string;
163
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
164
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
165
+ created?: ((() => void) | (() => void)[]) | undefined;
166
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
167
+ mounted?: ((() => void) | (() => void)[]) | undefined;
168
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
169
+ updated?: ((() => void) | (() => void)[]) | undefined;
170
+ activated?: ((() => void) | (() => void)[]) | undefined;
171
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
172
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
173
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
174
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
175
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
176
+ renderTracked?: (((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[]) | undefined;
177
+ renderTriggered?: (((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[]) | undefined;
178
+ errorCaptured?: (((err: unknown, instance: globalThis.ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: globalThis.ComponentPublicInstance | null, info: string) => boolean | void)[]) | undefined;
179
+ };
180
+ $forceUpdate: () => void;
181
+ $nextTick: typeof import('vue').nextTick;
182
+ $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;
183
+ } & Readonly<{
184
+ error: boolean;
185
+ color: string;
186
+ size: "s" | "l" | "m" | "xs" | "xl" | "sm" | "md" | "lg";
187
+ label: string;
188
+ padding: string;
189
+ mask: string;
190
+ margin: string;
191
+ width: string;
192
+ disabled: boolean;
193
+ borderColor: string;
194
+ rules: import('quasar').ValidationRule[];
195
+ errorMessage: string;
196
+ }> & Omit<Readonly<globalThis.ExtractPropTypes<{
197
+ label: {
198
+ type: StringConstructor;
199
+ default: string;
200
+ required: false;
201
+ };
202
+ margin: {
203
+ type: StringConstructor;
204
+ required: false;
205
+ default: string;
206
+ };
207
+ disabled: {
208
+ type: BooleanConstructor;
209
+ required: false;
210
+ default: boolean;
211
+ };
212
+ padding: {
213
+ type: StringConstructor;
214
+ default: string;
215
+ required: false;
216
+ };
217
+ width: {
218
+ type: StringConstructor;
219
+ required: false;
220
+ default: string;
221
+ };
222
+ size: {
223
+ type: globalThis.PropType<"s" | "l" | "m" | "xs" | "xl" | "sm" | "md" | "lg">;
224
+ default: import('../../../core/types/Sizes').default;
225
+ required: false;
226
+ };
227
+ mask: {
228
+ type: StringConstructor;
229
+ required: false;
230
+ default: undefined;
231
+ };
232
+ borderColor: {
233
+ type: StringConstructor;
234
+ default: string;
235
+ required: false;
236
+ };
237
+ color: {
238
+ type: StringConstructor;
239
+ default: string;
240
+ required: false;
241
+ };
242
+ rules: {
243
+ type: globalThis.PropType<import('quasar').ValidationRule[]>;
244
+ required: false;
245
+ default: undefined;
246
+ };
247
+ error: {
248
+ type: BooleanConstructor;
249
+ default: boolean;
250
+ };
251
+ errorMessage: {
252
+ type: StringConstructor;
253
+ default: string;
254
+ required: false;
255
+ };
256
+ modelValue: {
257
+ type: globalThis.PropType<string | number | null>;
258
+ };
259
+ }>> & Readonly<{
260
+ onClear?: ((...args: any[]) => any) | undefined;
261
+ onInput?: ((...args: any[]) => any) | undefined;
262
+ onBlur?: ((...args: any[]) => any) | undefined;
263
+ onFocus?: ((...args: any[]) => any) | undefined;
264
+ "onUpdate:modelValue"?: ((value: string | number | null | undefined) => any) | undefined;
265
+ }>, "validate" | "select" | "blur" | "focus" | "getNativeElement" | "resetValidation" | ("error" | "color" | "size" | "label" | "padding" | "mask" | "margin" | "width" | "disabled" | "borderColor" | "rules" | "errorMessage")> & {
266
+ focus: () => void;
267
+ blur: () => void;
268
+ select: () => void;
269
+ getNativeElement: () => HTMLInputElement | undefined;
270
+ validate: () => Promise<boolean>;
271
+ resetValidation: () => void;
272
+ } & {} & import('vue').ComponentCustomProperties & {} & {
273
+ $slots: {
274
+ prepend?(_: {}): any;
275
+ before?(_: {}): any;
276
+ default?(_: {}): any;
277
+ after?(_: {}): any;
278
+ append?(_: {}): any;
279
+ right?(_: {}): any;
280
+ label?(_: {}): any;
281
+ error?(_: {}): any;
282
+ hint?(_: {}): any;
283
+ counter?(_: {}): any;
284
+ loading?(_: {}): any;
285
+ };
286
+ }) | null;
287
+ }, any>;
288
+ export default _default;
@@ -0,0 +1,16 @@
1
+ type __VLS_Props = {
2
+ models: InstanceType<typeof PF.F.FilterModel>[];
3
+ placeholder?: string;
4
+ width?: string;
5
+ debounce?: string | number;
6
+ };
7
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
8
+ input: () => any;
9
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
10
+ onInput?: (() => any) | undefined;
11
+ }>, {
12
+ placeholder: string;
13
+ width: string;
14
+ debounce: string | number;
15
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
16
+ export default _default;
@@ -0,0 +1,19 @@
1
+ type __VLS_Props = {
2
+ options?: {
3
+ label: string;
4
+ value: InstanceType<typeof PF.F.FilterModel>;
5
+ }[];
6
+ label?: string;
7
+ };
8
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
9
+ load: () => any;
10
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
11
+ onLoad?: (() => any) | undefined;
12
+ }>, {
13
+ label: string;
14
+ options: {
15
+ label: string;
16
+ value: import('../../../core/ftsp/FilterModel').default;
17
+ }[];
18
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
19
+ export default _default;
@@ -0,0 +1,14 @@
1
+ type __VLS_Props = {
2
+ model: InstanceType<typeof PF.F.FilterModel>;
3
+ label: string;
4
+ storeOpts: InstanceType<typeof PF.H.BaseStore>;
5
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
6
+ };
7
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
8
+ load: () => any;
9
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
10
+ onLoad?: (() => any) | undefined;
11
+ }>, {
12
+ size: "xs" | "xl" | "sm" | "md" | "lg";
13
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
+ export default _default;
@@ -0,0 +1,9 @@
1
+ type __VLS_Props = {
2
+ model: InstanceType<typeof PF.F.FilterModel>;
3
+ };
4
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
5
+ load: () => any;
6
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
7
+ onLoad?: (() => any) | undefined;
8
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { App } from 'vue';
2
+ import { default as PFilterCheckbox } from './components/PFilterCheckbox.vue';
3
+ import { default as PFilterCodeToggle } from './components/PFilterCodeToggle.vue';
4
+ import { default as PFilterInput } from './components/PFilterInput.vue';
5
+ import { default as PFilterInputOr } from './components/PFilterInputOr.vue';
6
+ import { default as PFilterSelect } from './components/PFilterSelect.vue';
7
+ import { default as PFilterSelectMultiple } from './components/PFilterSelectMultiple.vue';
8
+ import { default as PFilterToggle } from './components/PFilterToggle.vue';
9
+ export { PFilterCheckbox, PFilterCodeToggle, PFilterInput, PFilterInputOr, PFilterSelect, PFilterSelectMultiple, PFilterToggle, };
10
+ export default function install(app: App): void;
@@ -1,4 +1,5 @@
1
1
  export * as Contacts from './contacts/index';
2
+ export * as Filters from './filters/index';
2
3
  export * as Forms from './forms/index';
3
4
  export * as Menus from './menus/index';
4
5
  export * as Schedule from './schedule/index';