@nside/wefa 0.4.5 → 0.4.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/README.md +2 -0
- package/dist/containers.d.ts +1 -20
- package/dist/lib.d.ts +2 -20
- package/dist/network.d.ts +3 -20
- package/dist/router.d.ts +1 -20
- package/dist/src/components/AutoroutedBreadcrumb/AutoroutedBreadcrumb.vue.d.ts +9 -0
- package/dist/src/components/AutoroutedBreadcrumb/index.d.ts +1 -0
- package/dist/src/components/ControlBarComponent/ConfiguredControlBarComponent.vue.d.ts +30 -0
- package/dist/src/components/ControlBarComponent/ControlBarComponent.vue.d.ts +17 -0
- package/dist/src/components/ControlBarComponent/ControlBarItemComponent.vue.d.ts +20 -0
- package/dist/src/components/ControlBarComponent/index.d.ts +3 -0
- package/dist/src/components/DashboardComponent/DashboardComponent.vue.d.ts +21 -0
- package/dist/src/components/DashboardComponent/DashboardGroupComponent.vue.d.ts +25 -0
- package/dist/src/components/DashboardComponent/DashboardPanelComponent.vue.d.ts +26 -0
- package/dist/src/components/DashboardComponent/index.d.ts +3 -0
- package/dist/src/components/FormComponent/FormComponent.vue.d.ts +32 -0
- package/dist/src/components/FormComponent/index.d.ts +1 -0
- package/dist/src/components/GanttChartComponent/GanttChartComponent.vue.d.ts +26 -0
- package/dist/src/components/GanttChartComponent/GanttChartGrid.vue.d.ts +34 -0
- package/dist/src/components/GanttChartComponent/GanttChartHeaderGrid.vue.d.ts +7 -0
- package/dist/src/components/GanttChartComponent/GanttChartHeaderLabel.vue.d.ts +6 -0
- package/dist/src/components/GanttChartComponent/GanttChartLinksOverlay.vue.d.ts +12 -0
- package/dist/src/components/GanttChartComponent/GanttChartRowGrid.vue.d.ts +55 -0
- package/dist/src/components/GanttChartComponent/GanttChartRowLabel.vue.d.ts +7 -0
- package/dist/src/components/GanttChartComponent/composables/useGanttLinks.d.ts +37 -0
- package/dist/src/components/GanttChartComponent/composables/useGanttSizing.d.ts +9 -0
- package/dist/src/components/GanttChartComponent/ganttChartLayout.d.ts +42 -0
- package/dist/src/components/GanttChartComponent/ganttChartTypes.d.ts +22 -0
- package/dist/src/components/GanttChartComponent/index.d.ts +1 -0
- package/dist/src/components/NetworkButton/ApiMutationButton.vue.d.ts +3 -0
- package/dist/src/components/NetworkButton/ApiQueryButton.vue.d.ts +3 -0
- package/dist/src/components/NetworkButton/index.d.ts +3 -0
- package/dist/src/components/NetworkButton/types.d.ts +39 -0
- package/dist/src/components/NotFound/NotFound.vue.d.ts +26 -0
- package/dist/src/components/NotFound/index.d.ts +1 -0
- package/dist/src/components/PageComponent/PageComponent.vue.d.ts +22 -0
- package/dist/src/components/PageComponent/index.d.ts +1 -0
- package/dist/src/components/PlotlyComponent/PlotlyComponent.vue.d.ts +14 -0
- package/dist/src/components/PlotlyComponent/PlotlyFromTableComponent.vue.d.ts +16 -0
- package/dist/src/components/PlotlyComponent/index.d.ts +2 -0
- package/dist/src/components/TableComponent/TableComponent.vue.d.ts +29 -0
- package/dist/src/components/TableComponent/index.d.ts +1 -0
- package/dist/src/composables/useComponentResolver.d.ts +9 -0
- package/dist/src/composables/useValidatorResolver.d.ts +9 -0
- package/dist/src/containers/BareContainer/BareContainer.vue.d.ts +8 -0
- package/dist/src/containers/BareContainer/index.d.ts +2 -0
- package/dist/src/containers/LayoutContainer/LayoutContainer.vue.d.ts +13 -0
- package/dist/src/containers/LayoutContainer/MobileNavigationComponent/MobileNavigationComponent.vue.d.ts +7 -0
- package/dist/src/containers/LayoutContainer/SideNavigationComponent/MainComponent/MainComponent.vue.d.ts +6 -0
- package/dist/src/containers/LayoutContainer/SideNavigationComponent/MainComponent/NavigationLinkComponent.vue.d.ts +11 -0
- package/dist/src/containers/LayoutContainer/SideNavigationComponent/SideNavigationComponent.vue.d.ts +7 -0
- package/dist/src/containers/LayoutContainer/SideNavigationComponent/TopComponent/TopComponent.vue.d.ts +7 -0
- package/dist/src/containers/LayoutContainer/index.d.ts +1 -0
- package/dist/src/containers/NavbarContainer/NavbarContainer.vue.d.ts +6 -0
- package/dist/src/containers/NavbarContainer/index.d.ts +2 -0
- package/dist/src/containers/RoutedTabsComponent/RoutedTabsComponent.vue.d.ts +12 -0
- package/dist/src/containers/RoutedTabsComponent/index.d.ts +1 -0
- package/dist/src/containers/SideMenuContainer/SideMenuContainer.vue.d.ts +7 -0
- package/dist/src/containers/SideMenuContainer/index.d.ts +2 -0
- package/dist/src/containers/helpers.d.ts +47 -0
- package/dist/src/containers/index.d.ts +6 -0
- package/dist/src/lib.d.ts +24 -0
- package/dist/src/locales/index.d.ts +30 -0
- package/dist/src/network/apiClient.d.ts +32 -0
- package/dist/src/network/axios.d.ts +4 -0
- package/dist/src/network/index.d.ts +3 -0
- package/dist/src/network/typedApiClient.d.ts +58 -0
- package/dist/src/plugins/cookies/index.d.ts +51 -0
- package/dist/src/plugins/cookies/views/CookieBar.vue.d.ts +2 -0
- package/dist/src/plugins/cookies/views/CookiesConsent.vue.d.ts +2 -0
- package/dist/src/plugins/index.d.ts +1 -0
- package/dist/src/plugins/legalConsent/index.d.ts +89 -0
- package/dist/src/plugins/legalConsent/views/LegalConsent.vue.d.ts +2 -0
- package/dist/src/plugins/legalConsent/views/LegalDocument.vue.d.ts +8 -0
- package/dist/src/router/guards.d.ts +28 -0
- package/dist/src/router/index.d.ts +3 -0
- package/dist/src/router/libRoutes.d.ts +2 -0
- package/dist/src/router/types.d.ts +31 -0
- package/dist/src/stores/backend/common.d.ts +17 -0
- package/dist/src/stores/backend/constants.d.ts +19 -0
- package/dist/src/stores/backend/schemes/jwt.d.ts +22 -0
- package/dist/src/stores/backend/schemes/oauth.d.ts +14 -0
- package/dist/src/stores/backend/schemes/token.d.ts +20 -0
- package/dist/src/stores/backend/types.d.ts +88 -0
- package/dist/src/stores/backend.d.ts +5 -0
- package/dist/src/stores/darkMode.d.ts +29 -0
- package/dist/src/stores/index.d.ts +2 -0
- package/dist/src/theme/index.d.ts +2 -0
- package/dist/src/theme/nside.d.ts +2 -0
- package/dist/src/utils/color.d.ts +33 -0
- package/dist/src/utils/componentRegistry.d.ts +15 -0
- package/dist/src/utils/markdown.d.ts +24 -0
- package/dist/src/utils/translations.d.ts +8 -0
- package/dist/src/utils/validatorRegistry.d.ts +8 -0
- package/dist/src/views/LoginView.vue.d.ts +5 -0
- package/dist/src/views/LogoutView.vue.d.ts +2 -0
- package/package.json +7 -2
- package/scripts/verify-package-types.mjs +103 -0
package/README.md
CHANGED
|
@@ -154,6 +154,7 @@ From the `vue/` directory:
|
|
|
154
154
|
| `npm run build-storybook` | Build the static Storybook site |
|
|
155
155
|
| `npm run lint` / `npm run lint-check` | Auto-fix or check ESLint rules |
|
|
156
156
|
| `npm run format` / `npm run format-check` | Run Prettier in write/check mode |
|
|
157
|
+
| `npm run test:package-types` | Build the package, pack it, and verify published type declarations |
|
|
157
158
|
|
|
158
159
|
The project supports Node.js `^20.19.0 || ^22.13.0 || >=24.0.0`. Use the included `.node-version` or `.nvmrc` to align with CI; the repository currently pins `24.9.0`.
|
|
159
160
|
|
|
@@ -162,6 +163,7 @@ The project supports Node.js `^20.19.0 || ^22.13.0 || >=24.0.0`. Use the include
|
|
|
162
163
|
- Unit tests: `npm run test:unit`
|
|
163
164
|
- Unit tests in watch mode: `npm run test:unit:watch`
|
|
164
165
|
- End-to-end tests (Playwright against the demo app): `npm run test:e2e`
|
|
166
|
+
- Packaged declaration smoke test: `npm run test:package-types`
|
|
165
167
|
|
|
166
168
|
Aim for meaningful coverage when adding or changing components. Update or create MDX docs and Storybook stories alongside code changes.
|
|
167
169
|
|
package/dist/containers.d.ts
CHANGED
|
@@ -1,20 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Augment vue-router's RouteMeta globally so every route can carry WeFa metadata.
|
|
6
|
-
*
|
|
7
|
-
* Why:
|
|
8
|
-
* - Vue Router exposes `route.meta` as a shared interface (`RouteMeta`).
|
|
9
|
-
* - We add `wefa` to that interface so `route.meta.wefa` is type-safe everywhere
|
|
10
|
-
* (guards, containers, breadcrumb, stories, etc.).
|
|
11
|
-
*
|
|
12
|
-
* Notes:
|
|
13
|
-
* - `wefa` is optional (`?`) because not every route must define it.
|
|
14
|
-
* - This is type-only: it changes TypeScript checking/autocomplete, not runtime behavior.
|
|
15
|
-
*/
|
|
16
|
-
declare module 'vue-router' {
|
|
17
|
-
interface RouteMeta {
|
|
18
|
-
wefa?: WeFaRouteMeta;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
1
|
+
export * from './src/containers/index';
|
package/dist/lib.d.ts
CHANGED
|
@@ -1,20 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Augment vue-router's RouteMeta globally so every route can carry WeFa metadata.
|
|
6
|
-
*
|
|
7
|
-
* Why:
|
|
8
|
-
* - Vue Router exposes `route.meta` as a shared interface (`RouteMeta`).
|
|
9
|
-
* - We add `wefa` to that interface so `route.meta.wefa` is type-safe everywhere
|
|
10
|
-
* (guards, containers, breadcrumb, stories, etc.).
|
|
11
|
-
*
|
|
12
|
-
* Notes:
|
|
13
|
-
* - `wefa` is optional (`?`) because not every route must define it.
|
|
14
|
-
* - This is type-only: it changes TypeScript checking/autocomplete, not runtime behavior.
|
|
15
|
-
*/
|
|
16
|
-
declare module 'vue-router' {
|
|
17
|
-
interface RouteMeta {
|
|
18
|
-
wefa?: WeFaRouteMeta;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
1
|
+
export * from './src/lib';
|
|
2
|
+
export { default } from './src/lib';
|
package/dist/network.d.ts
CHANGED
|
@@ -1,20 +1,3 @@
|
|
|
1
|
-
export { }
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Augment vue-router's RouteMeta globally so every route can carry WeFa metadata.
|
|
6
|
-
*
|
|
7
|
-
* Why:
|
|
8
|
-
* - Vue Router exposes `route.meta` as a shared interface (`RouteMeta`).
|
|
9
|
-
* - We add `wefa` to that interface so `route.meta.wefa` is type-safe everywhere
|
|
10
|
-
* (guards, containers, breadcrumb, stories, etc.).
|
|
11
|
-
*
|
|
12
|
-
* Notes:
|
|
13
|
-
* - `wefa` is optional (`?`) because not every route must define it.
|
|
14
|
-
* - This is type-only: it changes TypeScript checking/autocomplete, not runtime behavior.
|
|
15
|
-
*/
|
|
16
|
-
declare module 'vue-router' {
|
|
17
|
-
interface RouteMeta {
|
|
18
|
-
wefa?: WeFaRouteMeta;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
1
|
+
export { default as axiosInstance } from './src/network/axios';
|
|
2
|
+
export { default as apiClient } from './src/network/apiClient';
|
|
3
|
+
export { default as typedApiClient } from './src/network/typedApiClient';
|
package/dist/router.d.ts
CHANGED
|
@@ -1,20 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Augment vue-router's RouteMeta globally so every route can carry WeFa metadata.
|
|
6
|
-
*
|
|
7
|
-
* Why:
|
|
8
|
-
* - Vue Router exposes `route.meta` as a shared interface (`RouteMeta`).
|
|
9
|
-
* - We add `wefa` to that interface so `route.meta.wefa` is type-safe everywhere
|
|
10
|
-
* (guards, containers, breadcrumb, stories, etc.).
|
|
11
|
-
*
|
|
12
|
-
* Notes:
|
|
13
|
-
* - `wefa` is optional (`?`) because not every route must define it.
|
|
14
|
-
* - This is type-only: it changes TypeScript checking/autocomplete, not runtime behavior.
|
|
15
|
-
*/
|
|
16
|
-
declare module 'vue-router' {
|
|
17
|
-
interface RouteMeta {
|
|
18
|
-
wefa?: WeFaRouteMeta;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
1
|
+
export * from './src/router/index';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Props for the AutoroutedBreadcrumb component
|
|
3
|
+
*/
|
|
4
|
+
export interface AutoroutedBreadcrumbProps {
|
|
5
|
+
/** Optional route path for the home icon. If provided, a home icon will be added at the beginning of the breadcrumb. */
|
|
6
|
+
homeRoute?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: import('vue').DefineComponent<AutoroutedBreadcrumbProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AutoroutedBreadcrumbProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as AutoroutedBreadcrumb, type AutoroutedBreadcrumbProps, } from './AutoroutedBreadcrumb.vue';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration for a single control bar item
|
|
3
|
+
*/
|
|
4
|
+
export interface ControlBarItemConfiguration {
|
|
5
|
+
/** The title displayed above the component */
|
|
6
|
+
title: string;
|
|
7
|
+
/** The name of the component to render (must be registered in componentRegistry) */
|
|
8
|
+
component: string;
|
|
9
|
+
/** The key in the data object to use as the component's value/label */
|
|
10
|
+
data: string;
|
|
11
|
+
/** Additional props to pass to the component */
|
|
12
|
+
props?: Record<string, unknown>;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Props for the ConfiguredControlBarComponent
|
|
16
|
+
*/
|
|
17
|
+
export interface ConfiguredControlBarComponentProps {
|
|
18
|
+
/** Array of configurations for each control bar item */
|
|
19
|
+
config: ControlBarItemConfiguration[];
|
|
20
|
+
}
|
|
21
|
+
type __VLS_Props = ConfiguredControlBarComponentProps;
|
|
22
|
+
type __VLS_PublicProps = {
|
|
23
|
+
modelValue?: Record<string, unknown>;
|
|
24
|
+
} & __VLS_Props;
|
|
25
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
26
|
+
"update:modelValue": (value: Record<string, unknown>) => any;
|
|
27
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
28
|
+
"onUpdate:modelValue"?: ((value: Record<string, unknown>) => any) | undefined;
|
|
29
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
30
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
rootEl: HTMLDivElement;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface ControlBarItemComponentProps {
|
|
2
|
+
title: string;
|
|
3
|
+
}
|
|
4
|
+
declare function __VLS_template(): {
|
|
5
|
+
attrs: Partial<{}>;
|
|
6
|
+
slots: {
|
|
7
|
+
default?(_: {}): any;
|
|
8
|
+
};
|
|
9
|
+
refs: {};
|
|
10
|
+
rootEl: HTMLDivElement;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
+
declare const __VLS_component: import('vue').DefineComponent<ControlBarItemComponentProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ControlBarItemComponentProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
14
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { default as ControlBarComponent } from './ControlBarComponent.vue';
|
|
2
|
+
export { default as ControlBarItemComponent } from './ControlBarItemComponent.vue';
|
|
3
|
+
export { default as ConfiguredControlBarComponent, type ConfiguredControlBarComponentProps, } from './ConfiguredControlBarComponent.vue';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface DashboardComponentProps {
|
|
2
|
+
orientation?: 'horizontal' | 'vertical';
|
|
3
|
+
boxedPanels?: boolean;
|
|
4
|
+
}
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
slots: {
|
|
8
|
+
default?(_: {}): any;
|
|
9
|
+
};
|
|
10
|
+
refs: {};
|
|
11
|
+
rootEl: HTMLDivElement;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
|
+
declare const __VLS_component: import('vue').DefineComponent<DashboardComponentProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DashboardComponentProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
15
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface DashboardGroupComponentProps {
|
|
2
|
+
orientation?: 'horizontal' | 'vertical';
|
|
3
|
+
weight?: number;
|
|
4
|
+
hugContent?: boolean;
|
|
5
|
+
maxWidth?: string;
|
|
6
|
+
maxHeight?: string;
|
|
7
|
+
stayVisibleWhenOtherExpand?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare function __VLS_template(): {
|
|
10
|
+
attrs: Partial<{}>;
|
|
11
|
+
slots: {
|
|
12
|
+
default?(_: {}): any;
|
|
13
|
+
};
|
|
14
|
+
refs: {};
|
|
15
|
+
rootEl: HTMLDivElement;
|
|
16
|
+
};
|
|
17
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
18
|
+
declare const __VLS_component: import('vue').DefineComponent<DashboardGroupComponentProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DashboardGroupComponentProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
19
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface DashboardPanelComponentProps {
|
|
2
|
+
weight?: number;
|
|
3
|
+
hugContent?: boolean;
|
|
4
|
+
maxWidth?: string;
|
|
5
|
+
maxHeight?: string;
|
|
6
|
+
canExpand?: boolean;
|
|
7
|
+
startExpanded?: boolean;
|
|
8
|
+
stayVisibleWhenOtherExpand?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare function __VLS_template(): {
|
|
11
|
+
attrs: Partial<{}>;
|
|
12
|
+
slots: {
|
|
13
|
+
default?(_: {}): any;
|
|
14
|
+
};
|
|
15
|
+
refs: {};
|
|
16
|
+
rootEl: HTMLDivElement;
|
|
17
|
+
};
|
|
18
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
19
|
+
declare const __VLS_component: import('vue').DefineComponent<DashboardPanelComponentProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DashboardPanelComponentProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
20
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { default as DashboardComponent, type DashboardComponentProps, } from './DashboardComponent.vue';
|
|
2
|
+
export { default as DashboardGroupComponent, type DashboardGroupComponentProps, } from './DashboardGroupComponent.vue';
|
|
3
|
+
export { default as DashboardPanelComponent, type DashboardPanelComponentProps, } from './DashboardPanelComponent.vue';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export interface FormFieldValidation {
|
|
2
|
+
minLength?: number;
|
|
3
|
+
minLengthMessage?: string;
|
|
4
|
+
required?: boolean;
|
|
5
|
+
requiredMessage?: string;
|
|
6
|
+
custom?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface FormField {
|
|
9
|
+
field: string;
|
|
10
|
+
editor: string;
|
|
11
|
+
editorProps?: Record<string, unknown>;
|
|
12
|
+
fieldProps?: Record<string, unknown>;
|
|
13
|
+
validation?: FormFieldValidation;
|
|
14
|
+
}
|
|
15
|
+
export interface FormProps {
|
|
16
|
+
formFields: FormField[];
|
|
17
|
+
submitProps?: Record<string, unknown>;
|
|
18
|
+
formProps?: Record<string, unknown>;
|
|
19
|
+
}
|
|
20
|
+
type __VLS_Props = FormProps;
|
|
21
|
+
declare const model: import('vue').ModelRef<Record<string, unknown>, string, Record<string, unknown>, Record<string, unknown>>;
|
|
22
|
+
type __VLS_PublicProps = {
|
|
23
|
+
modelValue: typeof model['value'];
|
|
24
|
+
} & __VLS_Props;
|
|
25
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
26
|
+
submit: (...args: any[]) => void;
|
|
27
|
+
"update:modelValue": (value: Record<string, unknown>) => void;
|
|
28
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
29
|
+
"onUpdate:modelValue"?: ((value: Record<string, unknown>) => any) | undefined;
|
|
30
|
+
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
31
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
32
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as FormComponent, type FormProps } from './FormComponent.vue';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { GanttChartActivityData, GanttChartLinkData, GanttChartRowData } from '../../../components/GanttChartComponent/ganttChartTypes';
|
|
2
|
+
type ActivityRow = GanttChartRowData;
|
|
3
|
+
type ActivityTooltip = (activity: GanttChartActivityData, rowData?: ActivityRow) => string;
|
|
4
|
+
type ActivityClickHandler = (activity: GanttChartActivityData, rowData?: ActivityRow) => void;
|
|
5
|
+
interface GanttChartComponentProps {
|
|
6
|
+
startDate?: Date;
|
|
7
|
+
endDate?: Date;
|
|
8
|
+
rows?: ActivityRow[];
|
|
9
|
+
links?: GanttChartLinkData[];
|
|
10
|
+
headerLabel?: string;
|
|
11
|
+
viewMode?: 'day' | 'week';
|
|
12
|
+
showWeekendShading?: boolean;
|
|
13
|
+
stackMiniActivities?: boolean;
|
|
14
|
+
activityTooltip?: ActivityTooltip;
|
|
15
|
+
activityClick?: ActivityClickHandler;
|
|
16
|
+
leftHeaderWidthPx?: number;
|
|
17
|
+
}
|
|
18
|
+
declare const _default: import('vue').DefineComponent<GanttChartComponentProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
19
|
+
activityClick: (activity: GanttChartActivityData, rowData: GanttChartRowData) => any;
|
|
20
|
+
}, string, import('vue').PublicProps, Readonly<GanttChartComponentProps> & Readonly<{
|
|
21
|
+
onActivityClick?: ((activity: GanttChartActivityData, rowData: GanttChartRowData) => any) | undefined;
|
|
22
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
23
|
+
'gantt-container': HTMLDivElement;
|
|
24
|
+
'gantt-header': HTMLDivElement;
|
|
25
|
+
}, HTMLDivElement>;
|
|
26
|
+
export default _default;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface GanttChartGridProps {
|
|
2
|
+
cardStyle: Record<string, string>;
|
|
3
|
+
bodyHeightPx: number;
|
|
4
|
+
containerProps: Record<string, unknown>;
|
|
5
|
+
wrapperProps: Record<string, unknown>;
|
|
6
|
+
leftHeaderWidthPx: number;
|
|
7
|
+
}
|
|
8
|
+
declare function __VLS_template(): {
|
|
9
|
+
attrs: Partial<{}>;
|
|
10
|
+
slots: {
|
|
11
|
+
'header-left'?(_: {}): any;
|
|
12
|
+
'header-right'?(_: {}): any;
|
|
13
|
+
'body-left'?(_: {}): any;
|
|
14
|
+
overlay?(_: {}): any;
|
|
15
|
+
'body-right'?(_: {}): any;
|
|
16
|
+
};
|
|
17
|
+
refs: {
|
|
18
|
+
headerScroller: HTMLDivElement;
|
|
19
|
+
bodyScroller: HTMLDivElement;
|
|
20
|
+
};
|
|
21
|
+
rootEl: HTMLDivElement;
|
|
22
|
+
};
|
|
23
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
24
|
+
declare const __VLS_component: import('vue').DefineComponent<GanttChartGridProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<GanttChartGridProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
25
|
+
headerScroller: HTMLDivElement;
|
|
26
|
+
bodyScroller: HTMLDivElement;
|
|
27
|
+
}, HTMLDivElement>;
|
|
28
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
31
|
+
new (): {
|
|
32
|
+
$slots: S;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { GanttChartViewMode } from '../../../components/GanttChartComponent/ganttChartLayout';
|
|
2
|
+
export interface GanttChartHeaderGridProps {
|
|
3
|
+
dateRange: Date[];
|
|
4
|
+
viewMode?: GanttChartViewMode;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: import('vue').DefineComponent<GanttChartHeaderGridProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<GanttChartHeaderGridProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export interface GanttChartHeaderLabelProps {
|
|
2
|
+
headerLabel?: string;
|
|
3
|
+
leftHeaderWidthPx?: number;
|
|
4
|
+
}
|
|
5
|
+
declare const _default: import('vue').DefineComponent<GanttChartHeaderLabelProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<GanttChartHeaderLabelProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { GanttLinkLayer } from '../../../components/GanttChartComponent/composables/useGanttLinks';
|
|
2
|
+
export interface GanttChartLinksOverlayProps {
|
|
3
|
+
linkLayers: {
|
|
4
|
+
base: GanttLinkLayer[];
|
|
5
|
+
mini: GanttLinkLayer[];
|
|
6
|
+
};
|
|
7
|
+
gridWidthPx: number;
|
|
8
|
+
virtualHeightPx: number;
|
|
9
|
+
leftHeaderWidthPx: number;
|
|
10
|
+
}
|
|
11
|
+
declare const _default: import('vue').DefineComponent<GanttChartLinksOverlayProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<GanttChartLinksOverlayProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { GanttChartViewMode } from '../../../components/GanttChartComponent/ganttChartLayout';
|
|
2
|
+
import { GanttChartActivityData, GanttChartRowData } from '../../../components/GanttChartComponent/ganttChartTypes';
|
|
3
|
+
export interface GanttChartRowGridProps {
|
|
4
|
+
dateRange: Date[];
|
|
5
|
+
viewMode?: GanttChartViewMode;
|
|
6
|
+
activities?: GanttChartActivityData[];
|
|
7
|
+
activityColorClass?: string;
|
|
8
|
+
stripeColor?: string;
|
|
9
|
+
showWeekendShading?: boolean;
|
|
10
|
+
stackMiniActivities?: boolean;
|
|
11
|
+
rowHeightPx?: number;
|
|
12
|
+
rowData?: GanttChartRowData;
|
|
13
|
+
activityTooltip?: (activity: GanttChartActivityData, rowData?: GanttChartRowData) => string;
|
|
14
|
+
}
|
|
15
|
+
declare function __VLS_template(): {
|
|
16
|
+
attrs: Partial<{}>;
|
|
17
|
+
slots: {
|
|
18
|
+
activity?(_: {
|
|
19
|
+
visualType: string;
|
|
20
|
+
style: {
|
|
21
|
+
top: string;
|
|
22
|
+
height: string;
|
|
23
|
+
backgroundImage: string;
|
|
24
|
+
left: string;
|
|
25
|
+
width: string;
|
|
26
|
+
};
|
|
27
|
+
activity: GanttChartActivityData;
|
|
28
|
+
}): any;
|
|
29
|
+
activity?(_: {
|
|
30
|
+
visualType: string;
|
|
31
|
+
style: Record<string, string>;
|
|
32
|
+
activity: GanttChartActivityData;
|
|
33
|
+
}): any;
|
|
34
|
+
activity?(_: {
|
|
35
|
+
visualType: string;
|
|
36
|
+
style: Record<string, string>;
|
|
37
|
+
activity: GanttChartActivityData;
|
|
38
|
+
}): any;
|
|
39
|
+
};
|
|
40
|
+
refs: {};
|
|
41
|
+
rootEl: HTMLDivElement;
|
|
42
|
+
};
|
|
43
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
44
|
+
declare const __VLS_component: import('vue').DefineComponent<GanttChartRowGridProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
45
|
+
activityClick: (activity: GanttChartActivityData, rowData?: GanttChartRowData | undefined) => any;
|
|
46
|
+
}, string, import('vue').PublicProps, Readonly<GanttChartRowGridProps> & Readonly<{
|
|
47
|
+
onActivityClick?: ((activity: GanttChartActivityData, rowData?: GanttChartRowData | undefined) => any) | undefined;
|
|
48
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
49
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
50
|
+
export default _default;
|
|
51
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
52
|
+
new (): {
|
|
53
|
+
$slots: S;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface GanttChartRowLabelProps {
|
|
2
|
+
rowLabel?: string;
|
|
3
|
+
rowHeightPx?: number;
|
|
4
|
+
leftHeaderWidthPx?: number;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: import('vue').DefineComponent<GanttChartRowLabelProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<GanttChartRowLabelProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { WeekColumn } from '../../../../components/GanttChartComponent/ganttChartLayout';
|
|
3
|
+
import { GanttChartActivityData, GanttChartLinkData, GanttChartRowData } from '../../../../components/GanttChartComponent/ganttChartTypes';
|
|
4
|
+
type GanttListItem = {
|
|
5
|
+
data: GanttChartRowData;
|
|
6
|
+
index: number;
|
|
7
|
+
};
|
|
8
|
+
export interface GanttLinkLayer {
|
|
9
|
+
id: string | number;
|
|
10
|
+
path: string;
|
|
11
|
+
color: string;
|
|
12
|
+
layer: 'base' | 'mini';
|
|
13
|
+
}
|
|
14
|
+
export declare const useGanttLinks: ({ list, rowHeights, rowOffsets, dateRange, viewMode, columnWidthPx, weekColumns, links, stackMiniActivities, }: {
|
|
15
|
+
list: Ref<GanttListItem[]>;
|
|
16
|
+
rowHeights: Ref<number[]>;
|
|
17
|
+
rowOffsets: Ref<number[]>;
|
|
18
|
+
dateRange: Ref<Date[]>;
|
|
19
|
+
viewMode: Ref<"day" | "week">;
|
|
20
|
+
columnWidthPx: Ref<number>;
|
|
21
|
+
weekColumns: Ref<WeekColumn[]>;
|
|
22
|
+
links: Ref<GanttChartLinkData[]>;
|
|
23
|
+
stackMiniActivities: Ref<boolean>;
|
|
24
|
+
}) => {
|
|
25
|
+
virtualOffsetPx: import('vue').ComputedRef<number>;
|
|
26
|
+
visibleActivityPositions: import('vue').ComputedRef<Map<string | number, {
|
|
27
|
+
startX: number;
|
|
28
|
+
endX: number;
|
|
29
|
+
y: number;
|
|
30
|
+
visualType: GanttChartActivityData["visualType"];
|
|
31
|
+
}>>;
|
|
32
|
+
linkLayers: import('vue').ComputedRef<{
|
|
33
|
+
base: GanttLinkLayer[];
|
|
34
|
+
mini: GanttLinkLayer[];
|
|
35
|
+
}>;
|
|
36
|
+
};
|
|
37
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
export declare const useGanttSizing: (container: Ref<HTMLElement | null>, header: Ref<HTMLElement | null>) => {
|
|
3
|
+
containerHeight: Ref<number, number>;
|
|
4
|
+
headerHeight: Ref<number, number>;
|
|
5
|
+
bodyHeightPx: import('vue').ComputedRef<number>;
|
|
6
|
+
cardStyle: import('vue').ComputedRef<{
|
|
7
|
+
height: string;
|
|
8
|
+
}>;
|
|
9
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export type GanttChartActivityType = 'stripe' | 'bar' | 'mini';
|
|
2
|
+
export type GanttChartViewMode = 'day' | 'week';
|
|
3
|
+
export type GanttChartActivityLike = {
|
|
4
|
+
startDate: Date;
|
|
5
|
+
endDate: Date;
|
|
6
|
+
visualType?: GanttChartActivityType;
|
|
7
|
+
};
|
|
8
|
+
export type MiniLaneItem<T extends GanttChartActivityLike> = {
|
|
9
|
+
activity: T;
|
|
10
|
+
laneIndex: number;
|
|
11
|
+
};
|
|
12
|
+
export type WeekColumn = {
|
|
13
|
+
start: Date;
|
|
14
|
+
end: Date;
|
|
15
|
+
weekYear: number;
|
|
16
|
+
weekNumber: number;
|
|
17
|
+
};
|
|
18
|
+
export type MonthSpan = {
|
|
19
|
+
year: number;
|
|
20
|
+
month: number;
|
|
21
|
+
label: string;
|
|
22
|
+
startIndex: number;
|
|
23
|
+
endIndex: number;
|
|
24
|
+
};
|
|
25
|
+
export declare const DAY_CELL_WIDTH_PX = 40;
|
|
26
|
+
export declare const WEEK_CELL_WIDTH_PX = 40;
|
|
27
|
+
export declare const BASE_ROW_HEIGHT_PX = 30;
|
|
28
|
+
export declare const BAR_VERTICAL_PADDING_PX = 4;
|
|
29
|
+
export declare const MINI_HEIGHT_PX = 12;
|
|
30
|
+
export declare const MINI_GAP_PX = 2;
|
|
31
|
+
export declare const STRIPE_SIZE_PX = 8;
|
|
32
|
+
export declare const computeMiniLanes: <T extends GanttChartActivityLike>(activities: T[], stackMiniActivities: boolean, viewMode?: GanttChartViewMode) => {
|
|
33
|
+
lanes: MiniLaneItem<T>[];
|
|
34
|
+
laneCount: number;
|
|
35
|
+
};
|
|
36
|
+
export declare const getRowHeight: <T extends GanttChartActivityLike>(activities: T[], stackMiniActivities: boolean, viewMode?: GanttChartViewMode) => number;
|
|
37
|
+
export declare const getWeekColumns: (startDate: Date, endDate: Date) => WeekColumn[];
|
|
38
|
+
export declare const getActivitySpanPx: (activity: GanttChartActivityLike, dateRange: Date[], viewMode: GanttChartViewMode, columnWidthPx: number, weekColumns: WeekColumn[]) => {
|
|
39
|
+
left: number;
|
|
40
|
+
width: number;
|
|
41
|
+
};
|
|
42
|
+
export declare const getMonthSpansForWeeks: (weeks: WeekColumn[]) => MonthSpan[];
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export type GanttChartActivityData = {
|
|
2
|
+
id?: string | number;
|
|
3
|
+
label?: string;
|
|
4
|
+
startDate: Date;
|
|
5
|
+
endDate: Date;
|
|
6
|
+
visualType?: 'stripe' | 'bar' | 'mini';
|
|
7
|
+
color?: string;
|
|
8
|
+
colorClass?: string;
|
|
9
|
+
};
|
|
10
|
+
export type GanttChartRowData = {
|
|
11
|
+
id?: string | number;
|
|
12
|
+
label?: string;
|
|
13
|
+
header?: string;
|
|
14
|
+
activities: GanttChartActivityData[];
|
|
15
|
+
};
|
|
16
|
+
export type GanttChartLinkData = {
|
|
17
|
+
id?: string | number;
|
|
18
|
+
fromId: string | number;
|
|
19
|
+
toId: string | number;
|
|
20
|
+
type?: 'finish-start' | 'start-start';
|
|
21
|
+
color?: string;
|
|
22
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as GanttChartComponent } from './GanttChartComponent.vue';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ApiMutationButtonProps } from './types';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<ApiMutationButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ApiMutationButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ApiQueryButtonProps } from './types';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<ApiQueryButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ApiQueryButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
3
|
+
export default _default;
|