@mediusinc/mng-commons 3.4.2 → 3.5.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/components/action/action.component.mjs +2 -2
- package/esm2022/lib/components/form/dropdown/dropdown.component.mjs +2 -2
- package/esm2022/lib/components/form/formly/fields/formly-field-action/formly-field-action.component.mjs +2 -2
- package/esm2022/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.mjs +8 -3
- package/esm2022/lib/components/form/formly/fields/formly-field-tabs/formly-field-tabs.component.mjs +3 -3
- package/esm2022/lib/components/layout/topbar.component.mjs +2 -2
- package/esm2022/lib/components/pages/error/{error-page.component.mjs → error.page.component.mjs} +1 -1
- package/esm2022/lib/components/pages/index.mjs +3 -3
- package/esm2022/lib/components/pages/not-found/{not-found-page.component.mjs → not-found.page.component.mjs} +1 -1
- package/esm2022/lib/components/tableview/table/column-value/column-value.component.mjs +2 -2
- package/esm2022/lib/components/tableview/table/table.component.mjs +2 -2
- package/esm2022/lib/services/action-executor.service.mjs +8 -11
- package/fesm2022/mediusinc-mng-commons.mjs +22 -20
- package/fesm2022/mediusinc-mng-commons.mjs.map +1 -1
- package/lib/components/pages/index.d.ts +2 -2
- package/lib/mng-commons.module.d.ts +2 -2
- package/lib/services/action-executor.service.d.ts +6 -10
- package/package.json +2 -2
- package/scss/mng-overrides/_theme_autocomplete.scss +25 -10
- package/scss/mng-overrides/_theme_datepicker.scss +14 -0
- package/scss/mng-overrides/_theme_input.scss +25 -2
- package/scss/mng-overrides/_theme_styles.scss +1 -4
- package/scss/mng-overrides/_theme_tabview.scss +11 -0
- /package/lib/components/pages/error/{error-page.component.d.ts → error.page.component.d.ts} +0 -0
- /package/lib/components/pages/not-found/{not-found-page.component.d.ts → not-found.page.component.d.ts} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './error/error
|
|
2
|
-
export * from './not-found/not-found
|
|
1
|
+
export * from './error/error.page.component';
|
|
2
|
+
export * from './not-found/not-found.page.component';
|
|
@@ -92,8 +92,8 @@ import * as i87 from "./components/form/editor/form-editor.component";
|
|
|
92
92
|
import * as i88 from "./components/action/action.component";
|
|
93
93
|
import * as i89 from "./components/action/editor/action-editor.component";
|
|
94
94
|
import * as i90 from "./components/action/localization/data-language-dropdown.component";
|
|
95
|
-
import * as i91 from "./components/pages/error/error
|
|
96
|
-
import * as i92 from "./components/pages/not-found/not-found
|
|
95
|
+
import * as i91 from "./components/pages/error/error.page.component";
|
|
96
|
+
import * as i92 from "./components/pages/not-found/not-found.page.component";
|
|
97
97
|
export declare const primeNgModules: (typeof InputTextModule)[];
|
|
98
98
|
export declare class MngCommonsModule {
|
|
99
99
|
static forRoot(config: MngModuleConfig): ModuleWithProviders<MngCommonsModule>;
|
|
@@ -45,10 +45,6 @@ export declare class MngActionExecutorService {
|
|
|
45
45
|
* running next/error action and triggering dismiss of action. Confirmation
|
|
46
46
|
*
|
|
47
47
|
* @param ctx Action context to run.
|
|
48
|
-
* @param parameters Action parameters for context.
|
|
49
|
-
* @param dataProvider Editor data provider for context.
|
|
50
|
-
* @param instance Optional existing action instance (if non provided, new will be created).
|
|
51
|
-
* @param previousActionInstance Optional previous action instance to link in next instance.
|
|
52
48
|
*
|
|
53
49
|
* @return Action context for submit (=run) function.
|
|
54
50
|
*/
|
|
@@ -80,12 +76,11 @@ export declare class MngActionExecutorService {
|
|
|
80
76
|
/**
|
|
81
77
|
* Prepares action exec context for action of type editor.
|
|
82
78
|
*
|
|
83
|
-
* @param
|
|
84
|
-
* @param
|
|
85
|
-
* @param
|
|
86
|
-
* @param
|
|
87
|
-
* @param
|
|
88
|
-
* @param actionData Additional action data.
|
|
79
|
+
* @param instance Action instance.
|
|
80
|
+
* @param parameters Action parameters for context.
|
|
81
|
+
* @param functionName Action function name parameter.
|
|
82
|
+
* @param dataProvider Optional data provider. If not provided data provider from either the action editor or view container will be used.
|
|
83
|
+
* @param previousActionInstance Optional previous action instance to link in next instance.
|
|
89
84
|
*/
|
|
90
85
|
private prepareContextForEditor;
|
|
91
86
|
/**
|
|
@@ -116,6 +111,7 @@ export declare class MngActionExecutorService {
|
|
|
116
111
|
* To be called when action editor is initialized to correctly activate action.
|
|
117
112
|
* @param action Action descriptor.
|
|
118
113
|
* @param instance Action instance (if available).
|
|
114
|
+
* @param componentRef Optional action editor component reference.
|
|
119
115
|
*/
|
|
120
116
|
onActionEditorInit<T, S>(action: ActionDescriptor<T>, instance?: ActionInstance<T, S>, componentRef?: IActionEditorComponent): ActionInstance<T, S>;
|
|
121
117
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mediusinc/mng-commons",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/animations": "^16.0.0",
|
|
6
6
|
"@angular/common": "^16.0.0",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"@angular/router": "^16.0.0",
|
|
11
11
|
"@ngx-formly/core": "^6.1.3",
|
|
12
12
|
"@ngx-translate/core": "^14.0.0",
|
|
13
|
-
"primeng": "
|
|
13
|
+
"primeng": "^16.5.0"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"reflect-metadata": "^0.1.13",
|
|
@@ -1,16 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
& .p-
|
|
4
|
-
|
|
1
|
+
p-autocomplete {
|
|
2
|
+
// Merging input field with button so they look like one
|
|
3
|
+
& .p-autocomplete-input {
|
|
4
|
+
margin-right: -1px;
|
|
5
|
+
border-top-right-radius: 0;
|
|
6
|
+
border-bottom-right-radius: 0;
|
|
7
|
+
border-right-color: transparent !important;
|
|
5
8
|
}
|
|
6
9
|
|
|
7
|
-
& .p-autocomplete-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
+
& .p-autocomplete-dropdown {
|
|
11
|
+
border-top-left-radius: 0;
|
|
12
|
+
border-bottom-left-radius: 0;
|
|
10
13
|
}
|
|
11
14
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
+
//clear icon
|
|
16
|
+
& .p-autocomplete-clearable {
|
|
17
|
+
& .p-inputtext {
|
|
18
|
+
padding-right: 2rem;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
& .p-autocomplete-clear-icon {
|
|
22
|
+
color: $secondaryButtonTextColor;
|
|
23
|
+
right: 0.5rem;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
& .p-autocomplete-dd .p-autocomplete-clear-icon {
|
|
27
|
+
color: $secondaryButtonTextColor;
|
|
28
|
+
right: 2.857rem;
|
|
29
|
+
}
|
|
15
30
|
}
|
|
16
31
|
}
|
|
@@ -5,3 +5,17 @@
|
|
|
5
5
|
}
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
|
+
|
|
9
|
+
p-calendar {
|
|
10
|
+
& .p-inputtext {
|
|
11
|
+
margin-right: -1px;
|
|
12
|
+
border-top-right-radius: 0;
|
|
13
|
+
border-bottom-right-radius: 0;
|
|
14
|
+
border-right-color: transparent !important;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
& .p-datepicker-trigger {
|
|
18
|
+
border-top-left-radius: 0;
|
|
19
|
+
border-bottom-left-radius: 0;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -1,4 +1,27 @@
|
|
|
1
1
|
// This makes number input fields have the same height as the other input fields inside filter row in tables
|
|
2
|
-
.p-inputnumber.p-inputnumber-buttons-stacked .p-inputnumber-button-group
|
|
3
|
-
|
|
2
|
+
.p-inputnumber.p-inputnumber-buttons-stacked .p-inputnumber-button-group {
|
|
3
|
+
& .p-button.p-inputnumber-button {
|
|
4
|
+
flex-basis: 0;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
// The following two class overrides change button radius so it looks like the buttons are merged together with input field
|
|
8
|
+
& .p-inputnumber-button-up {
|
|
9
|
+
border-top-left-radius: 0;
|
|
10
|
+
border-bottom-left-radius: 0;
|
|
11
|
+
border-bottom-right-radius: 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
& .p-inputnumber-button-down {
|
|
15
|
+
border-top-left-radius: 0;
|
|
16
|
+
border-top-right-radius: 0;
|
|
17
|
+
border-bottom-left-radius: 0;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// Margin is used to hide default miter joint for border, we also hide the right border, so it does not look like the button width changes when we click on the field
|
|
22
|
+
p-columnfilterformelement .p-inputnumber-input {
|
|
23
|
+
margin-right: -1px;
|
|
24
|
+
border-top-right-radius: 0;
|
|
25
|
+
border-bottom-right-radius: 0;
|
|
26
|
+
border-right-color: transparent !important;
|
|
4
27
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
.p-tabview-title-error {
|
|
2
|
+
color: $errorColor !important;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.p-tabview-nav-btn.p-link {
|
|
6
|
+
background: $primaryTextColor;
|
|
7
|
+
color: $primaryColor;
|
|
8
|
+
border-radius: 0;
|
|
9
|
+
width: 3rem;
|
|
10
|
+
box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
|
|
11
|
+
}
|
|
File without changes
|
|
File without changes
|