sprof 1.12.3 → 1.14.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.
@@ -0,0 +1,79 @@
1
+ import { StoryFn } from '@storybook/vue3';
2
+ declare const _default: {
3
+ title: string;
4
+ component: import('vue').DefineComponent<{
5
+ code?: string | number | undefined;
6
+ text?: string | undefined;
7
+ label?: string | undefined;
8
+ to?: string | undefined;
9
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
10
+ code?: string | number | undefined;
11
+ text?: string | undefined;
12
+ label?: string | undefined;
13
+ to?: string | undefined;
14
+ }> & Readonly<{}>, {
15
+ text: string;
16
+ to: string;
17
+ label: string;
18
+ code: string | number;
19
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
20
+ tags: string[];
21
+ parameters: {
22
+ docs: {
23
+ description: {
24
+ component: string;
25
+ };
26
+ };
27
+ };
28
+ argTypes: {
29
+ code: {
30
+ control: string;
31
+ description: string;
32
+ };
33
+ text: {
34
+ control: string;
35
+ description: string;
36
+ };
37
+ label: {
38
+ control: string;
39
+ description: string;
40
+ };
41
+ to: {
42
+ control: string;
43
+ description: string;
44
+ };
45
+ };
46
+ };
47
+ export default _default;
48
+ export declare const Default: StoryFn<import('vue').DefineComponent<{
49
+ code?: string | number | undefined;
50
+ text?: string | undefined;
51
+ label?: string | undefined;
52
+ to?: string | undefined;
53
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
54
+ code?: string | number | undefined;
55
+ text?: string | undefined;
56
+ label?: string | undefined;
57
+ to?: string | undefined;
58
+ }> & Readonly<{}>, {
59
+ text: string;
60
+ to: string;
61
+ label: string;
62
+ code: string | number;
63
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>>;
64
+ export declare const ServerError: StoryFn<import('vue').DefineComponent<{
65
+ code?: string | number | undefined;
66
+ text?: string | undefined;
67
+ label?: string | undefined;
68
+ to?: string | undefined;
69
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
70
+ code?: string | number | undefined;
71
+ text?: string | undefined;
72
+ label?: string | undefined;
73
+ to?: string | undefined;
74
+ }> & Readonly<{}>, {
75
+ text: string;
76
+ to: string;
77
+ label: string;
78
+ code: string | number;
79
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>>;
@@ -0,0 +1,13 @@
1
+ type __VLS_Props = {
2
+ code?: string | number;
3
+ text?: string;
4
+ label?: string;
5
+ to?: string;
6
+ };
7
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
8
+ text: string;
9
+ to: string;
10
+ label: string;
11
+ code: string | number;
12
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
13
+ export default _default;
@@ -1,9 +1,10 @@
1
1
  import { default as PAuthForm } from './PAuthForm/PAuthForm.vue';
2
2
  import { default as PAuthModal } from './PAuthModal/PAuthModal.vue';
3
+ import { default as PErrorNotFound } from './PErrorNotFound/PErrorNotFound.vue';
3
4
  import { default as PMenuTabs } from './PMenuTabs/PMenuTabs.vue';
4
5
  import { default as PUploaderFile } from './PUploaderFile/PUploaderFile.vue';
5
6
  import { default as PUploaderImage } from './PUploaderImage/PUploaderImage.vue';
6
7
  export default function install(app: {
7
8
  component: (a: string, b: unknown) => void;
8
9
  }): void;
9
- export { PAuthForm, PAuthModal, PMenuTabs, PUploaderFile, PUploaderImage };
10
+ export { PAuthForm, PAuthModal, PErrorNotFound, PMenuTabs, PUploaderFile, PUploaderImage };
@@ -1,5 +1,21 @@
1
- import { NavigationGuardNext } from 'vue-router';
1
+ import { NavigationGuard, NavigationGuardNext } from 'vue-router';
2
+ /**
3
+ * Минимальный контракт Keycloak-хелпера клиента (`src/helpers/auth`).
4
+ * Структурный тип — чтобы библиотека не зависела от конкретной реализации.
5
+ */
6
+ export interface KeycloakAuth {
7
+ isReady: () => boolean;
8
+ init: () => Promise<unknown>;
9
+ isAuth: () => boolean;
10
+ login: (redirectUri: string) => Promise<unknown>;
11
+ }
2
12
  export default abstract class RouterGuard {
3
- static Auth(next?: NavigationGuardNext): Promise<void>;
4
- static Dev(): void;
13
+ /** Пропускающий guard: актуализирует статус и передаёт навигацию дальше. */
14
+ static Auth(next?: NavigationGuardNext): void;
15
+ /**
16
+ * Реальный Keycloak-guard: неавторизованного уводит на форму входа,
17
+ * запоминая исходный маршрут в `sessionStorage.auth_redirect`.
18
+ * Регистрируется в `router/index.ts` через `beforeEach`.
19
+ */
20
+ static Keycloak(auth: KeycloakAuth): NavigationGuard;
5
21
  }
@@ -0,0 +1 @@
1
+ export {};
@@ -61,6 +61,7 @@ declare module 'vue' {
61
61
  VerticalCollapseContainer: typeof Molecules.VerticalCollapseContainer;
62
62
  PAuthForm: typeof Organisms.PAuthForm;
63
63
  PAuthModal: typeof Organisms.PAuthModal;
64
+ PErrorNotFound: typeof Organisms.PErrorNotFound;
64
65
  PMenuTabs: typeof Organisms.PMenuTabs;
65
66
  PUploaderFile: typeof Organisms.PUploaderFile;
66
67
  PUploaderImage: typeof Organisms.PUploaderImage;
package/dist/index.d.ts CHANGED
@@ -24,6 +24,7 @@ export { default as PCard } from './core/components/molecules/PCard/PCard.vue';
24
24
  export { default as PCrudList } from './core/components/molecules/PCrudList/PCrudList.vue';
25
25
  export { default as PEditDialog } from './core/components/molecules/PEditDialog/PEditDialog.vue';
26
26
  export { default as PChart } from './core/components/molecules/PChart/PChart.vue';
27
+ export { default as PErrorNotFound } from './core/components/organisms/PErrorNotFound/PErrorNotFound.vue';
27
28
  export type { AuthFormSettingsType } from './core/auth/index';
28
29
  export { AuthButtonLogin, AuthButtonRefresh, AuthButtonRegister, AuthButtonRestore, AuthChunks, AuthFieldsIds, AuthFormSettings, AuthMethods, EmailField, LoginField, PasswordField, PasswordRepeatField, } from './core/auth/index';
29
30
  export { Schedule, ScheduleDay, SchedulePlace, ScheduleSession, ScheduleSlot, } from './modules/schedule/classes/index';