angular-toolbox 1.2.1 → 1.2.3
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 +1 -1
- package/esm2022/lib/core/impl/version/version.impl.mjs +3 -4
- package/esm2022/lib/model/business/ui/window/window-init.mjs +1 -1
- package/esm2022/lib/model/service/ui/window/window.service.mjs +15 -10
- package/esm2022/lib/model/service/version/angular-toolbox-version.service.mjs +3 -3
- package/esm2022/lib/util/index.mjs +2 -1
- package/esm2022/lib/util/version.util.mjs +44 -0
- package/esm2022/lib/util/window/window-features-builder.mjs +13 -1
- package/fesm2022/angular-toolbox.mjs +73 -14
- package/fesm2022/angular-toolbox.mjs.map +1 -1
- package/lib/model/business/ui/window/window-init.d.ts +5 -0
- package/lib/model/service/ui/window/window.service.d.ts +0 -4
- package/lib/util/index.d.ts +1 -0
- package/lib/util/version.util.d.ts +30 -0
- package/lib/util/window/window-features-builder.d.ts +4 -0
- package/package.json +1 -1
|
@@ -67,4 +67,9 @@ export interface WindowInit {
|
|
|
67
67
|
* Specifies whether the menu bar is activated (`WindowFeatureState.YES`), or not (`WindowFeatureState.NO`).
|
|
68
68
|
*/
|
|
69
69
|
menubar?: WindowFeatureState;
|
|
70
|
+
/**
|
|
71
|
+
* Indicates whether the winbdow is centered (`true`), or not (`false`).
|
|
72
|
+
* If `true`, the `top` and `left` properties are ignored.
|
|
73
|
+
*/
|
|
74
|
+
center?: boolean;
|
|
70
75
|
}
|
package/lib/util/index.d.ts
CHANGED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be found in
|
|
6
|
+
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
+
*/
|
|
8
|
+
import { Version } from "../model";
|
|
9
|
+
/**
|
|
10
|
+
* A convenient utility class for working with `Version` objects.
|
|
11
|
+
*/
|
|
12
|
+
export declare class VersionUtil {
|
|
13
|
+
/**
|
|
14
|
+
* Returns a string that represents the specified `Version` object.
|
|
15
|
+
*
|
|
16
|
+
* @param version The `Version` object for which to get a string representation.
|
|
17
|
+
*
|
|
18
|
+
* @returns A string that represents the specified `Version` object.
|
|
19
|
+
*/
|
|
20
|
+
static stringify(version: Version): string;
|
|
21
|
+
/**
|
|
22
|
+
* Compares the given `Version` objects.
|
|
23
|
+
*
|
|
24
|
+
* @param v1 The first object to compare.
|
|
25
|
+
* @param v2 The second object to compare.
|
|
26
|
+
*
|
|
27
|
+
* @returns `true` whether both `Version` objects are equal; `false` otherwise.
|
|
28
|
+
*/
|
|
29
|
+
static equal(v1: Version, v2: Version): boolean;
|
|
30
|
+
}
|
|
@@ -19,6 +19,10 @@ export declare class BrowserWindowFeaturesBuilder {
|
|
|
19
19
|
* @returns A string that represents the features parameter of the `Window.open()` method.
|
|
20
20
|
*/
|
|
21
21
|
static build(init?: WindowInit): string;
|
|
22
|
+
/**
|
|
23
|
+
* @private
|
|
24
|
+
*/
|
|
25
|
+
static setCenterPos(init: WindowInit): void;
|
|
22
26
|
/**
|
|
23
27
|
* @private
|
|
24
28
|
*/
|