@iapps/ng-dhis2-ui 1.0.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 +7 -0
- package/esm2022/iapps-ng-dhis2-ui.mjs +5 -0
- package/esm2022/index.mjs +5 -0
- package/esm2022/lib/modules/app-shell/app-shell.component.mjs +33 -0
- package/esm2022/lib/modules/app-shell/app-shell.module.mjs +19 -0
- package/esm2022/lib/modules/app-shell/index.mjs +6 -0
- package/esm2022/lib/modules/button/button.component.mjs +55 -0
- package/esm2022/lib/modules/button/button.module.mjs +19 -0
- package/esm2022/lib/modules/button/index.mjs +6 -0
- package/esm2022/lib/modules/header-bar/header-bar.component.mjs +39 -0
- package/esm2022/lib/modules/header-bar/header-bar.module.mjs +19 -0
- package/esm2022/lib/modules/header-bar/index.mjs +6 -0
- package/esm2022/lib/modules/header-bar/models/header-bar-app.model.mjs +20 -0
- package/esm2022/lib/modules/header-bar/models/header-bar-data.model.mjs +46 -0
- package/esm2022/lib/modules/header-bar/models/header-bar-notification.model.mjs +11 -0
- package/esm2022/lib/modules/header-bar/models/index.mjs +6 -0
- package/esm2022/lib/modules/header-bar/utils/apps.mjs +221 -0
- package/esm2022/lib/modules/header-bar/utils/debug-info/debug-info-menu-item.mjs +51 -0
- package/esm2022/lib/modules/header-bar/utils/debug-info/debug-info-modal.mjs +30 -0
- package/esm2022/lib/modules/header-bar/utils/debug-info/debug-info-table.mjs +39 -0
- package/esm2022/lib/modules/header-bar/utils/debug-info/use-debug-info.mjs +12 -0
- package/esm2022/lib/modules/header-bar/utils/header-bar-context.mjs +17 -0
- package/esm2022/lib/modules/header-bar/utils/header-bar.mjs +56 -0
- package/esm2022/lib/modules/header-bar/utils/join-path.mjs +5 -0
- package/esm2022/lib/modules/header-bar/utils/logo-image.mjs +52 -0
- package/esm2022/lib/modules/header-bar/utils/logo.mjs +35 -0
- package/esm2022/lib/modules/header-bar/utils/notification-icon.mjs +76 -0
- package/esm2022/lib/modules/header-bar/utils/notifications.mjs +35 -0
- package/esm2022/lib/modules/header-bar/utils/profile/use-on-doc-click.mjs +21 -0
- package/esm2022/lib/modules/header-bar/utils/profile-menu/index.mjs +2 -0
- package/esm2022/lib/modules/header-bar/utils/profile-menu/profile-header.mjs +95 -0
- package/esm2022/lib/modules/header-bar/utils/profile-menu/profile-menu.mjs +101 -0
- package/esm2022/lib/modules/header-bar/utils/profile-menu/update-notification.mjs +54 -0
- package/esm2022/lib/modules/header-bar/utils/profile.mjs +58 -0
- package/esm2022/lib/modules/header-bar/utils/title.mjs +22 -0
- package/esm2022/lib/ng-dhis2-ui.module.mjs +15 -0
- package/esm2022/lib/shared/components/index.mjs +7 -0
- package/esm2022/lib/shared/components/react-component-wrapper/react-wrapper.component.mjs +53 -0
- package/esm2022/lib/shared/shared.module.mjs +18 -0
- package/fesm2022/iapps-ng-dhis2-ui.mjs +1239 -0
- package/fesm2022/iapps-ng-dhis2-ui.mjs.map +1 -0
- package/index.d.ts +4 -0
- package/lib/modules/app-shell/app-shell.component.d.ts +8 -0
- package/lib/modules/app-shell/app-shell.module.d.ts +9 -0
- package/lib/modules/app-shell/index.d.ts +2 -0
- package/lib/modules/button/button.component.d.ts +19 -0
- package/lib/modules/button/button.module.d.ts +9 -0
- package/lib/modules/button/index.d.ts +2 -0
- package/lib/modules/header-bar/header-bar.component.d.ts +14 -0
- package/lib/modules/header-bar/header-bar.module.d.ts +9 -0
- package/lib/modules/header-bar/index.d.ts +2 -0
- package/lib/modules/header-bar/models/header-bar-app.model.d.ts +10 -0
- package/lib/modules/header-bar/models/header-bar-data.model.d.ts +16 -0
- package/lib/modules/header-bar/models/header-bar-notification.model.d.ts +5 -0
- package/lib/modules/header-bar/models/index.d.ts +2 -0
- package/lib/modules/header-bar/utils/apps.d.ts +16 -0
- package/lib/modules/header-bar/utils/debug-info/debug-info-menu-item.d.ts +15 -0
- package/lib/modules/header-bar/utils/debug-info/debug-info-modal.d.ts +8 -0
- package/lib/modules/header-bar/utils/debug-info/debug-info-table.d.ts +8 -0
- package/lib/modules/header-bar/utils/debug-info/use-debug-info.d.ts +7 -0
- package/lib/modules/header-bar/utils/header-bar-context.d.ts +14 -0
- package/lib/modules/header-bar/utils/header-bar.d.ts +19 -0
- package/lib/modules/header-bar/utils/join-path.d.ts +1 -0
- package/lib/modules/header-bar/utils/logo-image.d.ts +8 -0
- package/lib/modules/header-bar/utils/logo.d.ts +12 -0
- package/lib/modules/header-bar/utils/notification-icon.d.ts +21 -0
- package/lib/modules/header-bar/utils/notifications.d.ts +16 -0
- package/lib/modules/header-bar/utils/profile/use-on-doc-click.d.ts +1 -0
- package/lib/modules/header-bar/utils/profile-menu/index.d.ts +1 -0
- package/lib/modules/header-bar/utils/profile-menu/profile-header.d.ts +16 -0
- package/lib/modules/header-bar/utils/profile-menu/profile-menu.d.ts +13 -0
- package/lib/modules/header-bar/utils/profile-menu/update-notification.d.ts +14 -0
- package/lib/modules/header-bar/utils/profile.d.ts +18 -0
- package/lib/modules/header-bar/utils/title.d.ts +15 -0
- package/lib/ng-dhis2-ui.module.d.ts +7 -0
- package/lib/shared/components/index.d.ts +3 -0
- package/lib/shared/components/react-component-wrapper/react-wrapper.component.d.ts +19 -0
- package/lib/shared/shared.module.d.ts +7 -0
- package/package.json +38 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
declare module 'react' {
|
|
4
|
+
interface StyleHTMLAttributes<T> extends React.HTMLAttributes<T> {
|
|
5
|
+
jsx?: boolean;
|
|
6
|
+
global?: boolean;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export declare const Title: {
|
|
10
|
+
(params: any): React.JSX.Element;
|
|
11
|
+
propTypes: {
|
|
12
|
+
app: PropTypes.Requireable<string>;
|
|
13
|
+
instance: PropTypes.Requireable<string>;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@angular/common";
|
|
3
|
+
export declare class NgDhis2UiModule {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgDhis2UiModule, never>;
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgDhis2UiModule, never, [typeof i1.CommonModule], never>;
|
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NgDhis2UiModule>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, OnChanges, OnDestroy } from '@angular/core';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { ComponentProps } from 'react';
|
|
4
|
+
import * as ReactDOM from 'react-dom/client';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ReactWrapperComponent implements OnChanges, OnDestroy, AfterViewInit {
|
|
7
|
+
protected elementRef: ElementRef<HTMLElement>;
|
|
8
|
+
props?: ComponentProps<any>;
|
|
9
|
+
component: React.ElementType;
|
|
10
|
+
content: ElementRef<HTMLElement>;
|
|
11
|
+
protected reactDomRoot?: ReactDOM.Root;
|
|
12
|
+
constructor(elementRef: ElementRef<HTMLElement>);
|
|
13
|
+
ngAfterViewInit(): void;
|
|
14
|
+
ngOnChanges(): void;
|
|
15
|
+
ngOnDestroy(): void;
|
|
16
|
+
protected render(): void;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ReactWrapperComponent, never>;
|
|
18
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ReactWrapperComponent, "ng-dhis2-ui-wrapper", never, { "props": { "alias": "props"; "required": false; }; "component": { "alias": "component"; "required": false; }; }, {}, ["content"], never, false, never>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@angular/common";
|
|
3
|
+
export declare class SharedDhis2UiModule {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SharedDhis2UiModule, never>;
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedDhis2UiModule, never, [typeof i1.CommonModule], never>;
|
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SharedDhis2UiModule>;
|
|
7
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@iapps/ng-dhis2-ui",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular/common": "^16.2.0",
|
|
6
|
+
"@angular/core": "^16.2.0",
|
|
7
|
+
"@dhis2/app-adapter": "^10.3.10",
|
|
8
|
+
"@dhis2/app-runtime": "^3.9.4",
|
|
9
|
+
"@dhis2/d2-i18n": "^1.1.2",
|
|
10
|
+
"@dhis2/pwa": "^10.3.10",
|
|
11
|
+
"@dhis2/ui": "^8.14.9",
|
|
12
|
+
"@iapps/ngx-dhis2-http-client": "^3.0.0-alpha.3",
|
|
13
|
+
"dexie": "^3.2.4",
|
|
14
|
+
"html-react-parser": "^5.0.6",
|
|
15
|
+
"react": "^18.2.0",
|
|
16
|
+
"react-dom": "^18.2.0",
|
|
17
|
+
"react-query": "^3.39.3",
|
|
18
|
+
"rxjs": "~7.8.0",
|
|
19
|
+
"styled-jsx": "^5.1.2"
|
|
20
|
+
},
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"tslib": "^2.3.0"
|
|
23
|
+
},
|
|
24
|
+
"sideEffects": false,
|
|
25
|
+
"module": "fesm2022/iapps-ng-dhis2-ui.mjs",
|
|
26
|
+
"typings": "index.d.ts",
|
|
27
|
+
"exports": {
|
|
28
|
+
"./package.json": {
|
|
29
|
+
"default": "./package.json"
|
|
30
|
+
},
|
|
31
|
+
".": {
|
|
32
|
+
"types": "./index.d.ts",
|
|
33
|
+
"esm2022": "./esm2022/iapps-ng-dhis2-ui.mjs",
|
|
34
|
+
"esm": "./esm2022/iapps-ng-dhis2-ui.mjs",
|
|
35
|
+
"default": "./fesm2022/iapps-ng-dhis2-ui.mjs"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|