@rxap/window-system 16.0.0-dev.1 → 16.0.0-dev.11

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.
Files changed (54) hide show
  1. package/CHANGELOG.md +314 -0
  2. package/LICENSE +621 -24
  3. package/LICENSE.md +621 -0
  4. package/README.md +7 -22
  5. package/esm2022/index.mjs +2 -2
  6. package/esm2022/lib/default-window/default-window.component.mjs +9 -10
  7. package/esm2022/lib/tokens.mjs +1 -1
  8. package/esm2022/lib/utilities.mjs +5 -2
  9. package/esm2022/lib/window-action-bar/window-action-bar.component.mjs +10 -9
  10. package/esm2022/lib/window-config.mjs +2 -2
  11. package/esm2022/lib/window-container/window-container.component.mjs +43 -44
  12. package/esm2022/lib/window-content/window-content.component.mjs +12 -13
  13. package/esm2022/lib/window-context.mjs +1 -1
  14. package/esm2022/lib/window-footer.directive.mjs +12 -25
  15. package/esm2022/lib/window-ref.mjs +20 -19
  16. package/esm2022/lib/window-resizer/window-resizer.component.mjs +24 -22
  17. package/esm2022/lib/window-system.module.mjs +15 -51
  18. package/esm2022/lib/window-task-bar/window-task/window-task.component.mjs +30 -22
  19. package/esm2022/lib/window-task-bar/window-task-bar-container/window-task-bar-container.component.mjs +30 -16
  20. package/esm2022/lib/window-task-bar/window-task-bar.component.mjs +13 -13
  21. package/esm2022/lib/window-task-bar/window-task-bar.module.mjs +8 -39
  22. package/esm2022/lib/window-title.directive.mjs +14 -27
  23. package/esm2022/lib/window-tool-bar/window-tool-bar.component.mjs +24 -14
  24. package/esm2022/lib/window.service.mjs +23 -25
  25. package/esm2022/rxap-window-system.mjs +1 -1
  26. package/fesm2022/rxap-window-system.mjs +292 -340
  27. package/fesm2022/rxap-window-system.mjs.map +1 -1
  28. package/index.d.ts +1 -1
  29. package/lib/default-window/default-window.component.d.ts +1 -1
  30. package/lib/tokens.d.ts +1 -1
  31. package/lib/window-action-bar/window-action-bar.component.d.ts +2 -2
  32. package/lib/window-config.d.ts +2 -2
  33. package/lib/window-container/window-container.component.d.ts +4 -5
  34. package/lib/window-content/window-content.component.d.ts +3 -3
  35. package/lib/window-context.d.ts +1 -1
  36. package/lib/window-footer.directive.d.ts +3 -8
  37. package/lib/window-ref.d.ts +9 -9
  38. package/lib/window-resizer/window-resizer.component.d.ts +2 -2
  39. package/lib/window-system.module.d.ts +2 -12
  40. package/lib/window-task-bar/window-task/window-task.component.d.ts +1 -1
  41. package/lib/window-task-bar/window-task-bar-container/window-task-bar-container.component.d.ts +1 -1
  42. package/lib/window-task-bar/window-task-bar.component.d.ts +2 -2
  43. package/lib/window-task-bar/window-task-bar.module.d.ts +1 -9
  44. package/lib/window-title.directive.d.ts +3 -8
  45. package/lib/window-tool-bar/window-tool-bar.component.d.ts +1 -1
  46. package/lib/window.service.d.ts +6 -6
  47. package/package.json +59 -53
  48. package/theme.css +1 -0
  49. package/collection.json +0 -10
  50. package/migration.json +0 -4
  51. package/src/schematics/ng-add/index.d.ts +0 -2
  52. package/src/schematics/ng-add/index.js +0 -8
  53. package/src/schematics/ng-add/index.js.map +0 -1
  54. package/src/schematics/ng-add/schema.json +0 -7
@@ -5,19 +5,9 @@ import * as i3 from "./window-resizer/window-resizer.component";
5
5
  import * as i4 from "./default-window/default-window.component";
6
6
  import * as i5 from "./window-content/window-content.component";
7
7
  import * as i6 from "./window-action-bar/window-action-bar.component";
8
- import * as i7 from "@angular/material/toolbar";
9
- import * as i8 from "@angular/flex-layout";
10
- import * as i9 from "@angular/common";
11
- import * as i10 from "@angular/cdk/drag-drop";
12
- import * as i11 from "@angular/material/icon";
13
- import * as i12 from "@angular/material/legacy-button";
14
- import * as i13 from "@angular/cdk/overlay";
15
- import * as i14 from "@angular/cdk/portal";
16
- import * as i15 from "@angular/material/legacy-progress-bar";
17
- import * as i16 from "@rxap/material-directives/icon";
18
- import * as i17 from "./window-task-bar/window-task-bar.module";
8
+ import * as i7 from "./window-task-bar/window-task-bar.module";
19
9
  export declare class RxapWindowSystemModule {
20
10
  static ɵfac: i0.ɵɵFactoryDeclaration<RxapWindowSystemModule, never>;
21
- static ɵmod: i0.ɵɵNgModuleDeclaration<RxapWindowSystemModule, [typeof i1.WindowContainerComponent, typeof i2.WindowToolBarComponent, typeof i3.WindowResizerComponent, typeof i4.DefaultWindowComponent, typeof i5.WindowContentComponent, typeof i6.WindowActionBarComponent], [typeof i7.MatToolbarModule, typeof i8.FlexLayoutModule, typeof i9.CommonModule, typeof i10.DragDropModule, typeof i11.MatIconModule, typeof i12.MatLegacyButtonModule, typeof i13.OverlayModule, typeof i14.PortalModule, typeof i15.MatLegacyProgressBarModule, typeof i16.IconDirectiveModule], [typeof i1.WindowContainerComponent, typeof i2.WindowToolBarComponent, typeof i3.WindowResizerComponent, typeof i4.DefaultWindowComponent, typeof i5.WindowContentComponent, typeof i17.WindowTaskBarModule]>;
11
+ static ɵmod: i0.ɵɵNgModuleDeclaration<RxapWindowSystemModule, never, [typeof i1.WindowContainerComponent, typeof i2.WindowToolBarComponent, typeof i3.WindowResizerComponent, typeof i4.DefaultWindowComponent, typeof i5.WindowContentComponent, typeof i6.WindowActionBarComponent], [typeof i1.WindowContainerComponent, typeof i2.WindowToolBarComponent, typeof i3.WindowResizerComponent, typeof i4.DefaultWindowComponent, typeof i5.WindowContentComponent, typeof i7.WindowTaskBarModule]>;
22
12
  static ɵinj: i0.ɵɵInjectorDeclaration<RxapWindowSystemModule>;
23
13
  }
@@ -5,5 +5,5 @@ export declare class WindowTaskComponent {
5
5
  close(): void;
6
6
  reopen(): void;
7
7
  static ɵfac: i0.ɵɵFactoryDeclaration<WindowTaskComponent, never>;
8
- static ɵcmp: i0.ɵɵComponentDeclaration<WindowTaskComponent, "rxap-window-task", never, { "window": { "alias": "window"; "required": false; }; }, {}, never, never, false, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<WindowTaskComponent, "rxap-window-task", never, { "window": { "alias": "window"; "required": true; }; }, {}, never, never, true, never>;
9
9
  }
@@ -10,5 +10,5 @@ export declare class WindowTaskBarContainerComponent {
10
10
  expand: boolean;
11
11
  constructor(windowService: WindowService, settings?: WindowTaskBarContainerSettings | null);
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<WindowTaskBarContainerComponent, [null, { optional: true; }]>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<WindowTaskBarContainerComponent, "rxap-window-task-bar-container", never, {}, {}, never, never, false, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<WindowTaskBarContainerComponent, "rxap-window-task-bar-container", never, {}, {}, never, never, true, never>;
14
14
  }
@@ -1,4 +1,4 @@
1
- import { ChangeDetectorRef, OnInit, OnDestroy } from '@angular/core';
1
+ import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
2
  import { WindowService } from '../window.service';
3
3
  import { Subscription } from 'rxjs';
4
4
  import * as i0 from "@angular/core";
@@ -10,5 +10,5 @@ export declare class WindowTaskBarComponent implements OnInit, OnDestroy {
10
10
  ngOnInit(): void;
11
11
  ngOnDestroy(): void;
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<WindowTaskBarComponent, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<WindowTaskBarComponent, "rxap-window-task-bar", never, {}, {}, never, never, false, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<WindowTaskBarComponent, "rxap-window-task-bar", never, {}, {}, never, never, true, never>;
14
14
  }
@@ -2,16 +2,8 @@ import * as i0 from "@angular/core";
2
2
  import * as i1 from "./window-task-bar.component";
3
3
  import * as i2 from "./window-task/window-task.component";
4
4
  import * as i3 from "./window-task-bar-container/window-task-bar-container.component";
5
- import * as i4 from "@angular/common";
6
- import * as i5 from "@angular/flex-layout";
7
- import * as i6 from "@angular/material/icon";
8
- import * as i7 from "@angular/material/toolbar";
9
- import * as i8 from "@angular/material/badge";
10
- import * as i9 from "@angular/material/legacy-button";
11
- import * as i10 from "@rxap/directives";
12
- import * as i11 from "@rxap/material-directives/icon";
13
5
  export declare class WindowTaskBarModule {
14
6
  static ɵfac: i0.ɵɵFactoryDeclaration<WindowTaskBarModule, never>;
15
- static ɵmod: i0.ɵɵNgModuleDeclaration<WindowTaskBarModule, [typeof i1.WindowTaskBarComponent, typeof i2.WindowTaskComponent, typeof i3.WindowTaskBarContainerComponent], [typeof i4.CommonModule, typeof i5.FlexLayoutModule, typeof i6.MatIconModule, typeof i7.MatToolbarModule, typeof i8.MatBadgeModule, typeof i9.MatLegacyButtonModule, typeof i10.StopPropagationDirectiveModule, typeof i11.IconDirectiveModule], [typeof i1.WindowTaskBarComponent, typeof i3.WindowTaskBarContainerComponent]>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<WindowTaskBarModule, never, [typeof i1.WindowTaskBarComponent, typeof i2.WindowTaskComponent, typeof i3.WindowTaskBarContainerComponent], [typeof i1.WindowTaskBarComponent, typeof i3.WindowTaskBarContainerComponent]>;
16
8
  static ɵinj: i0.ɵɵInjectorDeclaration<WindowTaskBarModule>;
17
9
  }
@@ -1,4 +1,4 @@
1
- import { TemplateRef, OnInit, ViewContainerRef } from '@angular/core';
1
+ import { OnInit, TemplateRef, ViewContainerRef } from '@angular/core';
2
2
  import { WindowRef } from './window-ref';
3
3
  import * as i0 from "@angular/core";
4
4
  export interface WindowTitleTemplateContext {
@@ -8,6 +8,7 @@ export declare class WindowTitleDirective implements OnInit {
8
8
  private readonly windowRef;
9
9
  private readonly template;
10
10
  private readonly viewContainerRef;
11
+ constructor(windowRef: WindowRef, template: TemplateRef<WindowTitleTemplateContext>, viewContainerRef: ViewContainerRef);
11
12
  /**
12
13
  * Asserts the correct type of the context for the template that `NgForOf` will render.
13
14
  *
@@ -15,13 +16,7 @@ export declare class WindowTitleDirective implements OnInit {
15
16
  * `NgForOf` structural directive renders its template with a specific context type.
16
17
  */
17
18
  static ngTemplateContextGuard(dir: WindowTitleDirective, ctx: any): ctx is WindowTitleTemplateContext;
18
- constructor(windowRef: WindowRef, template: TemplateRef<WindowTitleTemplateContext>, viewContainerRef: ViewContainerRef);
19
19
  ngOnInit(): void;
20
20
  static ɵfac: i0.ɵɵFactoryDeclaration<WindowTitleDirective, never>;
21
- static ɵdir: i0.ɵɵDirectiveDeclaration<WindowTitleDirective, "[rxapWindowTitle]", never, {}, {}, never, never, false, never>;
22
- }
23
- export declare class WindowTitleDirectiveModule {
24
- static ɵfac: i0.ɵɵFactoryDeclaration<WindowTitleDirectiveModule, never>;
25
- static ɵmod: i0.ɵɵNgModuleDeclaration<WindowTitleDirectiveModule, [typeof WindowTitleDirective], never, [typeof WindowTitleDirective]>;
26
- static ɵinj: i0.ɵɵInjectorDeclaration<WindowTitleDirectiveModule>;
21
+ static ɵdir: i0.ɵɵDirectiveDeclaration<WindowTitleDirective, "[rxapWindowTitle]", never, {}, {}, never, never, true, never>;
27
22
  }
@@ -4,5 +4,5 @@ export declare class WindowToolBarComponent<D> {
4
4
  windowRef: WindowRef<D>;
5
5
  constructor(context: any);
6
6
  static ɵfac: i0.ɵɵFactoryDeclaration<WindowToolBarComponent<any>, never>;
7
- static ɵcmp: i0.ɵɵComponentDeclaration<WindowToolBarComponent<any>, "rxap-window-tool-bar", never, {}, {}, never, never, false, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<WindowToolBarComponent<any>, "rxap-window-tool-bar", never, {}, {}, never, never, true, never>;
8
8
  }
@@ -1,20 +1,20 @@
1
- import { Injector, ComponentFactoryResolver } from '@angular/core';
2
- import { WindowConfig, WindowSettings } from './window-config';
3
1
  import { Overlay } from '@angular/cdk/overlay';
4
- import { WindowRef } from './window-ref';
2
+ import { ComponentFactoryResolver, Injector } from '@angular/core';
5
3
  import { Subject } from 'rxjs';
4
+ import { WindowConfig, WindowSettings } from './window-config';
5
+ import { WindowRef } from './window-ref';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class WindowService {
8
8
  private readonly injector;
9
9
  private readonly overlay;
10
10
  private readonly componentFactoryResolver;
11
11
  private readonly defaultWindowSettings?;
12
- get hasActiveWindows(): boolean;
13
- get activeWindowCount(): number;
14
- get allActiveWindows(): Array<WindowRef<any>>;
15
12
  readonly activeCount$: Subject<number>;
16
13
  private readonly active;
17
14
  constructor(injector: Injector, overlay: Overlay, componentFactoryResolver: ComponentFactoryResolver, defaultWindowSettings?: WindowSettings<any> | undefined);
15
+ get hasActiveWindows(): boolean;
16
+ get activeWindowCount(): number;
17
+ get allActiveWindows(): Array<WindowRef<any>>;
18
18
  get<D>(id: string): WindowRef<D>;
19
19
  close(id: string): void;
20
20
  has(id: string): boolean;
package/package.json CHANGED
@@ -1,68 +1,74 @@
1
1
  {
2
2
  "name": "@rxap/window-system",
3
- "version": "16.0.0-dev.1",
4
- "private": false,
5
- "author": "Merzough Münker",
6
- "homepage": "https://gitlab.com/rxap/packages/libs/window-system",
7
- "repository": "git@gitlab.com:rxap/packages.git",
3
+ "version": "16.0.0-dev.11",
4
+ "peerDependencies": {
5
+ "@angular/cdk": "^16.1.4",
6
+ "@angular/common": "^16.1.4",
7
+ "@angular/core": "^16.1.4",
8
+ "@angular/flex-layout": "^15.0.0-beta.42",
9
+ "@angular/material": "^16.1.4",
10
+ "@rxap/directives": "^16.0.0-dev.9",
11
+ "@rxap/material-directives": "^16.0.0-dev.11",
12
+ "@rxap/rxjs": "^1.0.1-dev.2",
13
+ "@rxap/services": "^16.0.0-dev.8",
14
+ "@rxap/utilities": "^16.0.0-dev.7",
15
+ "rxjs": "^7.8.0"
16
+ },
17
+ "sideEffects": false,
18
+ "dependencies": {
19
+ "tslib": "2.5.3"
20
+ },
21
+ "publishConfig": {
22
+ "access": "public",
23
+ "directory": "../../../dist/packages/angular/window-system"
24
+ },
8
25
  "keywords": [
9
26
  "rxap",
10
27
  "angular",
28
+ "ngx",
29
+ "packages",
11
30
  "window-system"
12
31
  ],
13
- "license": "BSD-3-Clause",
32
+ "homepage": "https:/gitlab.com/rxap/packages/packages/angular/window-system",
14
33
  "bugs": {
15
34
  "url": "https://gitlab.com/rxap/packages/-/issues",
16
35
  "email": "incoming+rxap-packages-14898188-issue-@incoming.gitlab.com"
17
36
  },
18
- "description": "Provides the WindowSystem concept for RxAP.",
19
- "peerDependencies": {
20
- "@angular-devkit/schematics": "^15.0.3",
21
- "@angular/cdk": "^16.0.1",
22
- "@angular/common": "^16.0.2",
23
- "@angular/core": "^16.0.2",
24
- "@angular/flex-layout": "^15.0.0-beta.42",
25
- "@angular/localize": "^16.0.2",
26
- "@angular/material": "^16.0.1",
27
- "@angular/platform-browser": "^16.0.2",
28
- "@angular/platform-browser-dynamic": "^16.0.2",
29
- "@angular/router": "^16.0.2",
30
- "@rxap/components": "^16.0.0-dev.1",
31
- "@rxap/config": "^16.0.0-dev.1",
32
- "@rxap/directives": "^16.0.0-dev.1",
33
- "@rxap/material-directives": "^16.0.0-dev.1",
34
- "@rxap/services": "^16.0.0-dev.1",
35
- "@rxap/utilities": "^16.0.0-dev.1",
36
- "joi": "^17.6.3",
37
- "reflect-metadata": "^0.1.13",
38
- "rxjs": "^6.6.0"
37
+ "license": "GPL-3.0-or-later",
38
+ "repository": {
39
+ "type": "git",
40
+ "url": "https://gitlab.com/rxap/packages.git",
41
+ "directory": "packages/angular/window-system"
39
42
  },
40
- "schematics": "./collection.json",
41
- "ng-update": {
42
- "migrations": "./migration.json",
43
+ "author": {
44
+ "name": "Merzough Münker",
45
+ "email": "mmuenker@digitaix.com"
46
+ },
47
+ "nx-migrations": {
43
48
  "packageGroup": [
44
- "@rxap/components",
45
- "@rxap/config",
46
- "@rxap/directives",
47
- "@rxap/material-directives",
48
- "@rxap/services",
49
- "@rxap/utilities",
50
- "@rxap/window-system"
49
+ {
50
+ "package": "@rxap/directives",
51
+ "version": "16.0.0-dev.9"
52
+ },
53
+ {
54
+ "package": "@rxap/material-directives",
55
+ "version": "16.0.0-dev.11"
56
+ },
57
+ {
58
+ "package": "@rxap/rxjs",
59
+ "version": "1.0.1-dev.2"
60
+ },
61
+ {
62
+ "package": "@rxap/services",
63
+ "version": "16.0.0-dev.8"
64
+ },
65
+ {
66
+ "package": "@rxap/utilities",
67
+ "version": "16.0.0-dev.7"
68
+ }
51
69
  ]
52
70
  },
53
- "publishConfig": {
54
- "directory": "../../dist/libs/window-system",
55
- "access": "public"
56
- },
57
- "ng-add": {
58
- "save": "dependencies"
59
- },
60
- "dependencies": {
61
- "@rxap/schematics-utilities": "^16.0.0-dev.1",
62
- "tslib": "^2.3.1",
63
- "uuid": "^8.3.2",
64
- "tsconfig-paths-webpack-plugin": "3.5.2"
65
- },
71
+ "gitHead": "372993ea6042370db6a054b3ccda10a4499da154",
66
72
  "module": "fesm2022/rxap-window-system.mjs",
67
73
  "typings": "index.d.ts",
68
74
  "exports": {
@@ -74,7 +80,7 @@
74
80
  "esm2022": "./esm2022/rxap-window-system.mjs",
75
81
  "esm": "./esm2022/rxap-window-system.mjs",
76
82
  "default": "./fesm2022/rxap-window-system.mjs"
77
- }
78
- },
79
- "sideEffects": false
83
+ },
84
+ "./theme": "./theme.css"
85
+ }
80
86
  }
package/theme.css ADDED
@@ -0,0 +1 @@
1
+ .container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.block{display:block}.inline{display:inline}.flex{display:flex}.contents{display:contents}.hidden{display:none}.grow{flex-grow:1}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.flex-row{flex-direction:row}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-between{justify-content:space-between}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.capitalize{text-transform:capitalize}.invert{--tw-invert:invert(100%)}.filter,.invert{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}
package/collection.json DELETED
@@ -1,10 +0,0 @@
1
- {
2
- "schematics": {
3
- "ng-add": {
4
- "description": "Setup the package @rxap/window-system for the workspace.",
5
- "factory": "./src/schematics/ng-add/index",
6
- "schema": "./src/schematics/ng-add/schema.json"
7
- }
8
- },
9
- "$schema": "../../node_modules/@angular-devkit/schematics/collection-schema.json"
10
- }
package/migration.json DELETED
@@ -1,4 +0,0 @@
1
- {
2
- "schematics": {},
3
- "$schema": "../../node_modules/@angular-devkit/schematics/collection-schema.json"
4
- }
@@ -1,2 +0,0 @@
1
- import { Rule } from '@angular-devkit/schematics';
2
- export default function (): Rule;
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const schematics_utilities_1 = require("@rxap/schematics-utilities");
4
- function default_1() {
5
- return (0, schematics_utilities_1.InstallPeerDependencies)();
6
- }
7
- exports.default = default_1;
8
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/window-system/src/schematics/ng-add/index.ts"],"names":[],"mappings":";;AACA,qEAAqE;AAErE;IACE,OAAO,IAAA,8CAAuB,GAAE,CAAC;AACnC,CAAC;AAFD,4BAEC"}
@@ -1,7 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema",
3
- "$id": "window-system-ng-add",
4
- "type": "object",
5
- "properties": {},
6
- "required": []
7
- }