@natec/mef-dev-ui-kit 16.2.4 → 16.2.5
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 +6 -1
- package/esm2022/lib/markup-kit/executors/mefdev-executor-page/mefdev-executor-page.component.mjs +69 -1
- package/esm2022/lib/markup-kit/executors/stage/stage.component.mjs +4 -1
- package/esm2022/lib/markup-kit/executors/step-executor/step-executor.component.mjs +116 -1
- package/fesm2022/natec-mef-dev-ui-kit.mjs +186 -0
- package/fesm2022/natec-mef-dev-ui-kit.mjs.map +1 -1
- package/lib/markup-kit/card/card.module.d.ts +1 -1
- package/lib/markup-kit/executors/mefdev-executor-page/mefdev-executor-page.component.d.ts +68 -0
- package/lib/markup-kit/executors/stage/stage.component.d.ts +3 -0
- package/lib/markup-kit/executors/step-executor/step-executor.component.d.ts +115 -0
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ import * as i4 from "@angular/common";
|
|
|
9
9
|
import * as i5 from "../collapse/collapse.module";
|
|
10
10
|
import * as i6 from "../../pg-components/select/select.module";
|
|
11
11
|
import * as i7 from "../../pg-components/card/card.module";
|
|
12
|
-
export declare const mefDevCardComponents: (typeof
|
|
12
|
+
export declare const mefDevCardComponents: (typeof CardComponent | typeof CardLongComponent | typeof CardSimpleComponent)[];
|
|
13
13
|
export declare class MefDevCardModule {
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<MefDevCardModule, never>;
|
|
15
15
|
static ɵmod: i0.ɵɵNgModuleDeclaration<MefDevCardModule, [typeof i1.CardComponent, typeof i2.CardLongComponent, typeof i3.CardSimpleComponent], [typeof i4.CommonModule, typeof i5.MefDevCollapseModule, typeof i6.MefDevSelectModule, typeof i7.pgCardModule], [typeof i1.CardComponent, typeof i2.CardLongComponent, typeof i3.CardSimpleComponent]>;
|
|
@@ -1,12 +1,80 @@
|
|
|
1
1
|
import { ElementRef, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { StepExecutorComponent } from '../step-executor/step-executor.component';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* A component that allows us to create a content page - a step in our executor.
|
|
6
|
+
* Each individual step can have different styles, content and settings.
|
|
7
|
+
*
|
|
8
|
+
* Example of usage:
|
|
9
|
+
*
|
|
10
|
+
* ```
|
|
11
|
+
* <mefdev-executor-page
|
|
12
|
+
* [title]="'Executor title 1'"
|
|
13
|
+
* [isActive]="mainExecutor.activePageInd === 0"
|
|
14
|
+
* [isCompleted]="mainExecutor.activePageInd >= 0"
|
|
15
|
+
* class="yourClass">
|
|
16
|
+
* <!-- Content of the first executor step -->
|
|
17
|
+
* </mefdev-executor-page>
|
|
18
|
+
* <mefdev-executor-page
|
|
19
|
+
* [title]="'Executor title 2'"
|
|
20
|
+
* [isActive]="mainExecutor.activePageInd === 1"
|
|
21
|
+
* [isCompleted]="mainExecutor.activePageInd >= 1"
|
|
22
|
+
* class="yourClass">
|
|
23
|
+
* <!-- Content of the second executor step -->
|
|
24
|
+
* </mefdev-executor-page>
|
|
25
|
+
* <mefdev-executor-page
|
|
26
|
+
* [title]="'Executor title 3'"
|
|
27
|
+
* [isActive]="mainExecutor.activePageInd === 2"
|
|
28
|
+
* [isCompleted]="mainExecutor.activePageInd >= 2"
|
|
29
|
+
* class="yourClass">
|
|
30
|
+
* <!-- Content of the third executor step -->
|
|
31
|
+
* </mefdev-executor-page>
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
4
35
|
export declare class MefdevExecutorPageComponent implements OnChanges {
|
|
5
36
|
private _mainExecutor;
|
|
6
37
|
private _elementRef;
|
|
38
|
+
/**
|
|
39
|
+
* The title of the step
|
|
40
|
+
* @usageNotes
|
|
41
|
+
* ```
|
|
42
|
+
* <mefdev-executor-page [title]="'Description of situation 1'"></mefdev-executor-page>
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
7
45
|
title: string;
|
|
46
|
+
/**
|
|
47
|
+
* The input parameter that corresponds to whether the current step matches the respective page.
|
|
48
|
+
* The value of the active page is passed by reference from the specific component StepExecutorComponent.
|
|
49
|
+
*
|
|
50
|
+
* @usageNotes
|
|
51
|
+
* ```
|
|
52
|
+
* <mefdev-step-executor #mainExecutor>
|
|
53
|
+
* <mefdev-executor-page [isActive]="mainExecutor.activePageInd === 0">
|
|
54
|
+
* <mefdev-executor-page [isActive]="mainExecutor.activePageInd === 1">
|
|
55
|
+
* <mefdev-executor-page [isActive]="mainExecutor.activePageInd === 2">
|
|
56
|
+
* </<mefdev-step-executor>
|
|
57
|
+
*
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
8
60
|
isActive: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* The input parameter that checks whether the step is completed.
|
|
63
|
+
*
|
|
64
|
+
* @usageNotes
|
|
65
|
+
* ```
|
|
66
|
+
* <mefdev-executor-page [isCompleted]="mainExecutor.activePageInd >= 0"></mefdev-executor-page>
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
9
69
|
isCompleted: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* The output parameter that emits a boolean value indicating whether our completed step has changed.
|
|
72
|
+
*
|
|
73
|
+
* @usageNotes
|
|
74
|
+
* ```
|
|
75
|
+
* <mefdev-executor-page (isCompletedChange)="onStepChanged($event)"></mefdev-executor-page>
|
|
76
|
+
* ```
|
|
77
|
+
*/
|
|
10
78
|
isCompletedChange: EventEmitter<boolean>;
|
|
11
79
|
elRef: ElementRef;
|
|
12
80
|
constructor(_mainExecutor: StepExecutorComponent, _elementRef: ElementRef);
|
|
@@ -1,13 +1,104 @@
|
|
|
1
1
|
import { AfterViewInit, ElementRef, EventEmitter, Renderer2, TemplateRef } from '@angular/core';
|
|
2
2
|
import { MefdevExecutorPageComponent } from '../mefdev-executor-page/mefdev-executor-page.component';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Wrapper component that represents a specific encapsulated executor.
|
|
6
|
+
*
|
|
7
|
+
* Example of usage:
|
|
8
|
+
*```
|
|
9
|
+
* <mefdev-step-executor #mainExecutor [view]="'regular'">
|
|
10
|
+
*
|
|
11
|
+
* <ng-template #title>
|
|
12
|
+
* <!-- Content for the executor title -->
|
|
13
|
+
* </ng-template>
|
|
14
|
+
* <ng-template #description>
|
|
15
|
+
* <!-- Content for the executor description -->
|
|
16
|
+
* </ng-template>
|
|
17
|
+
*
|
|
18
|
+
* <mefdev-executor-page
|
|
19
|
+
* [title]="'Description of situation 1'"
|
|
20
|
+
* [isActive]="mainExecutor.activePageInd === 0"
|
|
21
|
+
* [isCompleted]="mainExecutor.activePageInd >= 0">
|
|
22
|
+
* <!-- Content of the first executor step -->
|
|
23
|
+
* </mefdev-executor-page>
|
|
24
|
+
* <mefdev-executor-page
|
|
25
|
+
* [title]="'Description of situation 2'"
|
|
26
|
+
* [isActive]="mainExecutor.activePageInd === 1"
|
|
27
|
+
* [isCompleted]="mainExecutor.activePageInd >= 1">
|
|
28
|
+
* <!-- Content of the second executor step -->
|
|
29
|
+
* </mefdev-executor-page>
|
|
30
|
+
* <mefdev-executor-page
|
|
31
|
+
* [title]="'Description of situation 3'"
|
|
32
|
+
* [isActive]="mainExecutor.activePageInd === 2"
|
|
33
|
+
* [isCompleted]="mainExecutor.activePageInd >= 2">
|
|
34
|
+
* <!-- Content of the third executor step -->
|
|
35
|
+
* </mefdev-executor-page>
|
|
36
|
+
*
|
|
37
|
+
* <ng-template #footer>
|
|
38
|
+
* <!-- Content for the executor footer -->
|
|
39
|
+
* <ng-template>
|
|
40
|
+
*
|
|
41
|
+
* </mefdev-step-executor>
|
|
42
|
+
*
|
|
43
|
+
*```
|
|
44
|
+
*/
|
|
4
45
|
export declare class StepExecutorComponent implements AfterViewInit {
|
|
5
46
|
private renderer;
|
|
47
|
+
/**
|
|
48
|
+
* Mandatory input parameter that specifies the type of the step-by-step wizard.
|
|
49
|
+
* It can have three options: regular, modal, right.
|
|
50
|
+
*
|
|
51
|
+
* @usageNotes
|
|
52
|
+
* ```
|
|
53
|
+
* <mefdev-step-executor #mainExecutor [view]="'regular'"></mefdev-step-executor>
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
6
56
|
view: string;
|
|
57
|
+
/**
|
|
58
|
+
* ViewChild reference to the host executor content.
|
|
59
|
+
*/
|
|
7
60
|
container: ElementRef<HTMLElement>;
|
|
61
|
+
/**
|
|
62
|
+
* Template for displaying the content of the executor title.
|
|
63
|
+
*
|
|
64
|
+
* @usageNotes
|
|
65
|
+
* ```
|
|
66
|
+
* <ng-template #title>
|
|
67
|
+
* <!-- Content for the executor title -->
|
|
68
|
+
* </ng-template>
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
8
71
|
title: TemplateRef<void>;
|
|
72
|
+
/**
|
|
73
|
+
* Template for displaying the content of the executor description.
|
|
74
|
+
*
|
|
75
|
+
* @usageNotes
|
|
76
|
+
* ```
|
|
77
|
+
* <ng-template #description>
|
|
78
|
+
* <!-- Content for the executor description -->
|
|
79
|
+
* </ng-template>
|
|
80
|
+
* ```
|
|
81
|
+
*/
|
|
9
82
|
description: TemplateRef<void>;
|
|
83
|
+
/**
|
|
84
|
+
* Template for displaying the content of the executor footer.
|
|
85
|
+
*
|
|
86
|
+
* @usageNotes
|
|
87
|
+
* ```
|
|
88
|
+
* <ng-template #footer>
|
|
89
|
+
* <!-- Content for the executor footer -->
|
|
90
|
+
* </ng-template>
|
|
91
|
+
* ```
|
|
92
|
+
*/
|
|
10
93
|
footer: TemplateRef<void>;
|
|
94
|
+
/**
|
|
95
|
+
* The output parameter that emits the class of the active page - active step.
|
|
96
|
+
*
|
|
97
|
+
* @usageNotes
|
|
98
|
+
* ```
|
|
99
|
+
* <mefdev-step-executor #mainExecutor (onActivePageChange)="getActiveStep($event)"></mefdev-step-executor>
|
|
100
|
+
* ```
|
|
101
|
+
*/
|
|
11
102
|
onActivePageChange: EventEmitter<MefdevExecutorPageComponent>;
|
|
12
103
|
_activePageInd: number;
|
|
13
104
|
pages: MefdevExecutorPageComponent[];
|
|
@@ -16,13 +107,37 @@ export declare class StepExecutorComponent implements AfterViewInit {
|
|
|
16
107
|
get activePageInd(): number;
|
|
17
108
|
get activePage(): MefdevExecutorPageComponent | null;
|
|
18
109
|
ngAfterViewInit(): void;
|
|
110
|
+
/**
|
|
111
|
+
* Check whether there is a next step of the executor. If we are at the last step - disable the 'next' button
|
|
112
|
+
*/
|
|
19
113
|
nextBtnIsDisabled(): boolean;
|
|
114
|
+
/**
|
|
115
|
+
* Check whether there is a next step of the executor. If we are at the last step - disable the 'next' button
|
|
116
|
+
*/
|
|
20
117
|
prev(): void;
|
|
118
|
+
/**
|
|
119
|
+
* Go back to the previous step
|
|
120
|
+
*/
|
|
21
121
|
cancel(): void;
|
|
122
|
+
/**
|
|
123
|
+
* Go to the next step
|
|
124
|
+
*/
|
|
22
125
|
next(): void;
|
|
126
|
+
/**
|
|
127
|
+
* Set a specific active page
|
|
128
|
+
*/
|
|
23
129
|
setActivePage(pageNumber: number): void;
|
|
130
|
+
/**
|
|
131
|
+
* Add new page
|
|
132
|
+
*/
|
|
24
133
|
addPage(page: MefdevExecutorPageComponent): void;
|
|
134
|
+
/**
|
|
135
|
+
* Delete a specific page
|
|
136
|
+
*/
|
|
25
137
|
removeSpecificPage(page: MefdevExecutorPageComponent): void;
|
|
138
|
+
/**
|
|
139
|
+
* Delete a page by its index
|
|
140
|
+
*/
|
|
26
141
|
removePageByIndex(index: number): void;
|
|
27
142
|
static ɵfac: i0.ɵɵFactoryDeclaration<StepExecutorComponent, never>;
|
|
28
143
|
static ɵcmp: i0.ɵɵComponentDeclaration<StepExecutorComponent, "mefdev-step-executor", never, { "view": { "alias": "view"; "required": true; }; }, { "onActivePageChange": "onActivePageChange"; }, ["title", "description", "footer"], never, false, never>;
|