imm-element-ui 0.1.8 → 0.2.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/esm2022/lib/crumb-action/crumb-action.component.mjs +41 -7
- package/esm2022/lib/import/import.component.mjs +3 -1
- package/esm2022/lib/page-form/page-form.component.mjs +3 -3
- package/esm2022/lib/page-grid-list/page-grid-list.component.mjs +2 -2
- package/esm2022/lib/search/pop-panel/pop-panel.component.mjs +5 -18
- package/esm2022/lib/search/pop-sort/pop-sort.component.mjs +24 -0
- package/esm2022/lib/steps/steps.component.mjs +158 -15
- package/esm2022/public-api.mjs +6 -1
- package/fesm2022/imm-element-ui.mjs +225 -40
- package/fesm2022/imm-element-ui.mjs.map +1 -1
- package/lib/crumb-action/crumb-action.component.d.ts +8 -1
- package/lib/search/pop-panel/pop-panel.component.d.ts +0 -1
- package/lib/search/pop-sort/pop-sort.component.d.ts +9 -0
- package/lib/service/themeConfig.service.d.ts +1 -1
- package/lib/steps/steps.component.d.ts +29 -4
- package/package.json +1 -1
- package/public-api.d.ts +5 -0
- package/src/lib/search/pop-panel/pop-panel.component.scss +1 -18
- package/src/lib/search/pop-sort/pop-sort.component.scss +29 -0
- package/src/lib/steps/steps.component.scss +47 -1
|
@@ -15,6 +15,7 @@ export declare class CrumbActionComponent implements OnInit {
|
|
|
15
15
|
crumbEnd: HistoryItem[];
|
|
16
16
|
op: Popover;
|
|
17
17
|
listOp: Popover;
|
|
18
|
+
actOp: Popover;
|
|
18
19
|
saveEvent: import("@angular/core").OutputEmitterRef<void>;
|
|
19
20
|
addVisible: import("@angular/core").InputSignal<boolean | undefined>;
|
|
20
21
|
newUrl: import("@angular/core").InputSignal<string>;
|
|
@@ -23,6 +24,9 @@ export declare class CrumbActionComponent implements OnInit {
|
|
|
23
24
|
isList: import("@angular/core").InputSignal<boolean>;
|
|
24
25
|
authLevel: import("@angular/core").InputSignal<number>;
|
|
25
26
|
cancelEvent: import("@angular/core").OutputEmitterRef<void>;
|
|
27
|
+
actionList: import("@angular/core").InputSignal<any>;
|
|
28
|
+
actionEvent: import("@angular/core").OutputEmitterRef<void>;
|
|
29
|
+
showAct: boolean;
|
|
26
30
|
newBtnTemplateRef: TemplateRef<any> | undefined;
|
|
27
31
|
listOpItems: {
|
|
28
32
|
label: string;
|
|
@@ -31,6 +35,7 @@ export declare class CrumbActionComponent implements OnInit {
|
|
|
31
35
|
level: number;
|
|
32
36
|
}[];
|
|
33
37
|
constructor();
|
|
38
|
+
resize(event: any): void;
|
|
34
39
|
ngOnInit(): void;
|
|
35
40
|
goNew(): void;
|
|
36
41
|
closeNew(): void;
|
|
@@ -39,6 +44,8 @@ export declare class CrumbActionComponent implements OnInit {
|
|
|
39
44
|
toggle(event: any): void;
|
|
40
45
|
toggleListOp(event: any): void;
|
|
41
46
|
listAct(type: string): void;
|
|
47
|
+
actEvent(item: any): void;
|
|
48
|
+
toggleAct(event: any): void;
|
|
42
49
|
static ɵfac: i0.ɵɵFactoryDeclaration<CrumbActionComponent, never>;
|
|
43
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CrumbActionComponent, "app-crumb-action", never, { "isShowCog": { "alias": "isShowCog"; "required": false; "isSignal": true; }; "addVisible": { "alias": "addVisible"; "required": false; "isSignal": true; }; "newUrl": { "alias": "newUrl"; "required": false; "isSignal": true; }; "onExport": { "alias": "onExport"; "required": false; "isSignal": true; }; "outlined": { "alias": "outlined"; "required": false; "isSignal": true; }; "isList": { "alias": "isList"; "required": false; "isSignal": true; }; "authLevel": { "alias": "authLevel"; "required": false; "isSignal": true; }; }, { "saveEvent": "saveEvent"; "cancelEvent": "cancelEvent"; }, ["newBtnTemplateRef"], never, true, never>;
|
|
50
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CrumbActionComponent, "app-crumb-action", never, { "isShowCog": { "alias": "isShowCog"; "required": false; "isSignal": true; }; "addVisible": { "alias": "addVisible"; "required": false; "isSignal": true; }; "newUrl": { "alias": "newUrl"; "required": false; "isSignal": true; }; "onExport": { "alias": "onExport"; "required": false; "isSignal": true; }; "outlined": { "alias": "outlined"; "required": false; "isSignal": true; }; "isList": { "alias": "isList"; "required": false; "isSignal": true; }; "authLevel": { "alias": "authLevel"; "required": false; "isSignal": true; }; "actionList": { "alias": "actionList"; "required": false; "isSignal": true; }; }, { "saveEvent": "saveEvent"; "cancelEvent": "cancelEvent"; "actionEvent": "actionEvent"; }, ["newBtnTemplateRef"], never, true, never>;
|
|
44
51
|
}
|
|
@@ -9,7 +9,6 @@ export declare class PopPanelComponent {
|
|
|
9
9
|
groupItems: SearchItem[];
|
|
10
10
|
itemop: SearchItem;
|
|
11
11
|
constructor(action: ActionService);
|
|
12
|
-
onGroupClick(group: SearchItem, event: Event): void;
|
|
13
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<PopPanelComponent, never>;
|
|
14
13
|
static ɵcmp: i0.ɵɵComponentDeclaration<PopPanelComponent, "pop-panel", never, { "searchItems": { "alias": "searchItems"; "required": false; "isSignal": true; }; "modelName": { "alias": "modelName"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
15
14
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SearchItem } from '../search/search.component';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class PopSortComponent {
|
|
4
|
+
searchItems: import("@angular/core").InputSignal<SearchItem[] | undefined>;
|
|
5
|
+
isActive: boolean;
|
|
6
|
+
onLabelClick(event: MouseEvent): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PopSortComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PopSortComponent, "pop-sort", never, { "searchItems": { "alias": "searchItems"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
9
|
+
}
|
|
@@ -9,7 +9,7 @@ export declare class ThemeConfigService {
|
|
|
9
9
|
appState: import("@angular/core").WritableSignal<AppState | null>;
|
|
10
10
|
document: Document;
|
|
11
11
|
platformId: Object;
|
|
12
|
-
theme: import("@angular/core").Signal<"
|
|
12
|
+
theme: import("@angular/core").Signal<"light" | "dark">;
|
|
13
13
|
initialized: boolean;
|
|
14
14
|
transitionComplete: import("@angular/core").WritableSignal<boolean>;
|
|
15
15
|
constructor();
|
|
@@ -1,19 +1,44 @@
|
|
|
1
|
+
import { ElementRef, Renderer2 } from '@angular/core';
|
|
1
2
|
import { I18nService } from '../service/i18n.service';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export interface Step {
|
|
4
5
|
label: string;
|
|
5
6
|
i18nKey?: string;
|
|
6
|
-
value: number;
|
|
7
|
+
value: number | 'start' | 'end';
|
|
7
8
|
}
|
|
8
9
|
export declare class StepsComponent {
|
|
10
|
+
private renderer;
|
|
11
|
+
containerRef: ElementRef;
|
|
12
|
+
endBtn: ElementRef;
|
|
9
13
|
steps: import("@angular/core").InputSignal<Step[]>;
|
|
10
|
-
|
|
14
|
+
displaySteps: import("@angular/core").Signal<Step[]>;
|
|
15
|
+
excludeValues: import("@angular/core").WritableSignal<(number | "start" | "end")[]>;
|
|
16
|
+
current: import("@angular/core").InputSignal<number>;
|
|
11
17
|
i18n: I18nService;
|
|
12
18
|
change: import("@angular/core").OutputEmitterRef<number>;
|
|
13
19
|
authLevel: import("@angular/core").InputSignal<number>;
|
|
14
|
-
|
|
15
|
-
|
|
20
|
+
widthList: number[];
|
|
21
|
+
START_BUTTON_WIDTH: number;
|
|
22
|
+
END_BUTTON_WIDTH: number;
|
|
23
|
+
startIndex: number;
|
|
24
|
+
endIndex: number;
|
|
25
|
+
startSteps: Step[];
|
|
26
|
+
endSteps: Step[];
|
|
27
|
+
maxWidth: number;
|
|
28
|
+
onResize(): void;
|
|
29
|
+
constructor(renderer: Renderer2);
|
|
30
|
+
ngAfterViewInit(): void;
|
|
31
|
+
initWidthList(): void;
|
|
32
|
+
calcMaxWidth(): void;
|
|
33
|
+
showStartSteps(event: any, startOp: any): void;
|
|
34
|
+
showEndSteps(event: any, endOp: any): void;
|
|
35
|
+
getClass(i: number, classes: string[]): string;
|
|
16
36
|
changeStatus(step: any): void;
|
|
37
|
+
onStartStepsChange(event: any): void;
|
|
38
|
+
onEndStepsChange(event: any): void;
|
|
39
|
+
alternateWidthList(): void;
|
|
40
|
+
isExceedMaxWidth(totalWidth: number): boolean;
|
|
41
|
+
handleSteps(): void;
|
|
17
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<StepsComponent, never>;
|
|
18
43
|
static ɵcmp: i0.ɵɵComponentDeclaration<StepsComponent, "custom-steps", never, { "steps": { "alias": "steps"; "required": false; "isSignal": true; }; "current": { "alias": "current"; "required": false; "isSignal": true; }; "authLevel": { "alias": "authLevel"; "required": false; "isSignal": true; }; }, { "change": "change"; }, never, never, true, never>;
|
|
19
44
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from './lib/grid/cell-edit/index';
|
|
|
8
8
|
export * from './lib/grid/grid-utils';
|
|
9
9
|
export * from './lib/grid/cell-render/link-render';
|
|
10
10
|
export * from './lib/grid/cell-render/async-renderer';
|
|
11
|
+
export * from './lib/grid/actions/actions.component';
|
|
11
12
|
export * from './lib/head/head.component';
|
|
12
13
|
export * from './lib/import/import.component';
|
|
13
14
|
export * from './lib/log/log.component';
|
|
@@ -24,3 +25,7 @@ export * from './lib/search/search/search.component';
|
|
|
24
25
|
export * from './lib/page-form/page-form.interface';
|
|
25
26
|
export * from './lib/service/userHistory.service';
|
|
26
27
|
export * from './lib/theme-config/theme-config.compoent';
|
|
28
|
+
export * from './lib/log/log.component';
|
|
29
|
+
export * from './lib/import/import.component';
|
|
30
|
+
export * from './lib/steps/steps.component';
|
|
31
|
+
export * from './lib/row-selector/row-selector.component';
|
|
@@ -29,21 +29,4 @@
|
|
|
29
29
|
width: 1.5rem;
|
|
30
30
|
line-height: 1;
|
|
31
31
|
display: inline-block;
|
|
32
|
-
}
|
|
33
|
-
.s-pop-panel-item {
|
|
34
|
-
padding: 6px 0;
|
|
35
|
-
}
|
|
36
|
-
.s-pop-panel-item-option {
|
|
37
|
-
font-size: 14px;
|
|
38
|
-
padding: 2px 0;
|
|
39
|
-
}
|
|
40
|
-
.s-pop-panel-item-option:hover {
|
|
41
|
-
background-color: var(--p-list-option-focus-background);
|
|
42
|
-
cursor: pointer;
|
|
43
|
-
}
|
|
44
|
-
.s-pop-panel-item-option-self {
|
|
45
|
-
padding: 2.5px 1.6rem;
|
|
46
|
-
}
|
|
47
|
-
.s-pop-panel-item-selected-option {
|
|
48
|
-
color: var(--p-form-field-focus-border-color);
|
|
49
|
-
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
@import 'styles';
|
|
2
|
+
.s-pop-sort-container {
|
|
3
|
+
padding: 5px 0;
|
|
4
|
+
border-bottom: solid 1px #d6d8db;
|
|
5
|
+
}
|
|
6
|
+
.s-pop-sort-label {
|
|
7
|
+
padding: 2.5px 1.6rem;
|
|
8
|
+
display: flex;
|
|
9
|
+
justify-content: space-between;
|
|
10
|
+
align-items: center;
|
|
11
|
+
font-size: 14px;
|
|
12
|
+
}
|
|
13
|
+
.s-pop-sort-label-icon {
|
|
14
|
+
color: var(--p-form-field-icon-color);
|
|
15
|
+
font-size: 12px;
|
|
16
|
+
}
|
|
17
|
+
.s-pop-sort-label:hover {
|
|
18
|
+
background-color: var(--p-list-option-focus-background);
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
}
|
|
21
|
+
.s-pop-sort-panel {
|
|
22
|
+
padding: 6px 0;
|
|
23
|
+
}
|
|
24
|
+
.s-pop-sort-panel-show {
|
|
25
|
+
display: block;
|
|
26
|
+
}
|
|
27
|
+
.s-pop-sort-panel-hide {
|
|
28
|
+
display: none;
|
|
29
|
+
}
|
|
@@ -1,4 +1,48 @@
|
|
|
1
|
-
|
|
1
|
+
::ng-deep {
|
|
2
|
+
.pop-steps {
|
|
3
|
+
&.p-popover.p-popover-flipped:before {
|
|
4
|
+
display: none;
|
|
5
|
+
}
|
|
6
|
+
&.p-popover.p-popover-flipped:after {
|
|
7
|
+
display: none;
|
|
8
|
+
}
|
|
9
|
+
&.p-popover:before {
|
|
10
|
+
display: none;
|
|
11
|
+
}
|
|
12
|
+
&.p-popover:after {
|
|
13
|
+
display: none;
|
|
14
|
+
}
|
|
15
|
+
&.p-popover-flipped {
|
|
16
|
+
margin-top: -5px;
|
|
17
|
+
}
|
|
18
|
+
.p-popover-content {
|
|
19
|
+
padding: 0;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
.end-steps {
|
|
23
|
+
&.p-popover {
|
|
24
|
+
margin-top: 2.5px;
|
|
25
|
+
z-index: 999;
|
|
26
|
+
position: absolute !important;
|
|
27
|
+
left: auto !important;
|
|
28
|
+
right: 0 !important;
|
|
29
|
+
top: 100% !important;
|
|
30
|
+
min-width: 125px;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
.start-steps {
|
|
34
|
+
&.p-popover {
|
|
35
|
+
margin-top: 2.5px;
|
|
36
|
+
z-index: 999;
|
|
37
|
+
position: absolute !important;
|
|
38
|
+
left: 0 !important;
|
|
39
|
+
right: auto !important;
|
|
40
|
+
top: 100% !important;
|
|
41
|
+
min-width: 125px;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
2
46
|
.step-item {
|
|
3
47
|
position: relative;
|
|
4
48
|
height: 32px;
|
|
@@ -6,6 +50,7 @@
|
|
|
6
50
|
background-color: #e7e9ed;
|
|
7
51
|
span {
|
|
8
52
|
color: #334155c2;
|
|
53
|
+
white-space: nowrap;
|
|
9
54
|
}
|
|
10
55
|
}
|
|
11
56
|
.step-item.step-first {
|
|
@@ -42,6 +87,7 @@
|
|
|
42
87
|
z-index: 2;
|
|
43
88
|
}
|
|
44
89
|
.step-item.step-active {
|
|
90
|
+
flex: 1 1 0%;
|
|
45
91
|
background-color: var(--p-primary-200);
|
|
46
92
|
span {
|
|
47
93
|
color: #334155;
|