@rxap/window-system 12.0.10 → 13.0.0-next.1

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 (74) hide show
  1. package/esm2020/index.mjs +17 -0
  2. package/esm2020/lib/default-window/default-window.component.mjs +13 -0
  3. package/esm2020/lib/tokens.mjs +8 -0
  4. package/esm2020/lib/utilities.mjs +24 -0
  5. package/esm2020/lib/window-action-bar/window-action-bar.component.mjs +28 -0
  6. package/esm2020/lib/window-config.mjs +11 -0
  7. package/esm2020/lib/window-container/window-container.component.mjs +85 -0
  8. package/esm2020/lib/window-content/window-content.component.mjs +74 -0
  9. package/esm2020/lib/window-context.mjs +2 -0
  10. package/esm2020/lib/window-footer.directive.mjs +57 -0
  11. package/esm2020/lib/window-ref.mjs +162 -0
  12. package/esm2020/lib/window-resizer/window-resizer.component.mjs +79 -0
  13. package/esm2020/lib/window-system.module.mjs +92 -0
  14. package/esm2020/lib/window-task-bar/window-task/window-task.component.mjs +33 -0
  15. package/esm2020/lib/window-task-bar/window-task-bar-container/window-task-bar-container.component.mjs +39 -0
  16. package/esm2020/lib/window-task-bar/window-task-bar.component.mjs +35 -0
  17. package/esm2020/lib/window-task-bar/window-task-bar.module.mjs +52 -0
  18. package/esm2020/lib/window-title.directive.mjs +57 -0
  19. package/esm2020/lib/window-tool-bar/window-tool-bar.component.mjs +25 -0
  20. package/esm2020/lib/window.service.mjs +163 -0
  21. package/esm2020/rxap-window-system.mjs +5 -0
  22. package/fesm2015/rxap-window-system.mjs +933 -0
  23. package/fesm2015/rxap-window-system.mjs.map +1 -0
  24. package/{fesm2015/rxap-window-system.js → fesm2020/rxap-window-system.mjs} +90 -126
  25. package/fesm2020/rxap-window-system.mjs.map +1 -0
  26. package/lib/window-config.d.ts +1 -0
  27. package/package.json +38 -23
  28. package/src/schematics/ng-add/index.js +1 -1
  29. package/src/schematics/ng-add/index.js.map +1 -1
  30. package/bundles/rxap-window-system.umd.js +0 -1384
  31. package/bundles/rxap-window-system.umd.js.map +0 -1
  32. package/esm2015/index.js +0 -17
  33. package/esm2015/index.js.map +0 -1
  34. package/esm2015/lib/default-window/default-window.component.js +0 -18
  35. package/esm2015/lib/default-window/default-window.component.js.map +0 -1
  36. package/esm2015/lib/tokens.js +0 -8
  37. package/esm2015/lib/tokens.js.map +0 -1
  38. package/esm2015/lib/utilities.js +0 -24
  39. package/esm2015/lib/utilities.js.map +0 -1
  40. package/esm2015/lib/window-action-bar/window-action-bar.component.js +0 -32
  41. package/esm2015/lib/window-action-bar/window-action-bar.component.js.map +0 -1
  42. package/esm2015/lib/window-config.js +0 -11
  43. package/esm2015/lib/window-config.js.map +0 -1
  44. package/esm2015/lib/window-container/window-container.component.js +0 -91
  45. package/esm2015/lib/window-container/window-container.component.js.map +0 -1
  46. package/esm2015/lib/window-content/window-content.component.js +0 -79
  47. package/esm2015/lib/window-content/window-content.component.js.map +0 -1
  48. package/esm2015/lib/window-context.js +0 -2
  49. package/esm2015/lib/window-context.js.map +0 -1
  50. package/esm2015/lib/window-footer.directive.js +0 -57
  51. package/esm2015/lib/window-footer.directive.js.map +0 -1
  52. package/esm2015/lib/window-ref.js +0 -157
  53. package/esm2015/lib/window-ref.js.map +0 -1
  54. package/esm2015/lib/window-resizer/window-resizer.component.js +0 -84
  55. package/esm2015/lib/window-resizer/window-resizer.component.js.map +0 -1
  56. package/esm2015/lib/window-system.module.js +0 -95
  57. package/esm2015/lib/window-system.module.js.map +0 -1
  58. package/esm2015/lib/window-task-bar/window-task/window-task.component.js +0 -38
  59. package/esm2015/lib/window-task-bar/window-task/window-task.component.js.map +0 -1
  60. package/esm2015/lib/window-task-bar/window-task-bar-container/window-task-bar-container.component.js +0 -43
  61. package/esm2015/lib/window-task-bar/window-task-bar-container/window-task-bar-container.component.js.map +0 -1
  62. package/esm2015/lib/window-task-bar/window-task-bar.component.js +0 -40
  63. package/esm2015/lib/window-task-bar/window-task-bar.component.js.map +0 -1
  64. package/esm2015/lib/window-task-bar/window-task-bar.module.js +0 -53
  65. package/esm2015/lib/window-task-bar/window-task-bar.module.js.map +0 -1
  66. package/esm2015/lib/window-title.directive.js +0 -57
  67. package/esm2015/lib/window-title.directive.js.map +0 -1
  68. package/esm2015/lib/window-tool-bar/window-tool-bar.component.js +0 -30
  69. package/esm2015/lib/window-tool-bar/window-tool-bar.component.js.map +0 -1
  70. package/esm2015/lib/window.service.js +0 -156
  71. package/esm2015/lib/window.service.js.map +0 -1
  72. package/esm2015/rxap-window-system.js +0 -5
  73. package/esm2015/rxap-window-system.js.map +0 -1
  74. package/fesm2015/rxap-window-system.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"rxap-window-system.umd.js","sources":["../../../../libs/window-system/src/lib/tokens.ts","../../../../node_modules/tslib/tslib.es6.js","../../../../libs/window-system/src/lib/window-resizer/window-resizer.component.ts","../../../../libs/window-system/src/lib/window-resizer/window-resizer.component.html","../../../../libs/window-system/src/lib/window-tool-bar/window-tool-bar.component.ts","../../../../libs/window-system/src/lib/window-tool-bar/window-tool-bar.component.html","../../../../libs/window-system/src/lib/utilities.ts","../../../../libs/window-system/src/lib/window-ref.ts","../../../../libs/window-system/src/lib/window-container/window-container.component.ts","../../../../libs/window-system/src/lib/window-container/window-container.component.html","../../../../libs/window-system/src/lib/window-content/window-content.component.ts","../../../../libs/window-system/src/lib/window-content/window-content.component.html","../../../../libs/window-system/src/lib/default-window/default-window.component.ts","../../../../libs/window-system/src/lib/default-window/default-window.component.html","../../../../libs/window-system/src/lib/window-action-bar/window-action-bar.component.ts","../../../../libs/window-system/src/lib/window-action-bar/window-action-bar.component.html","../../../../libs/window-system/src/lib/window-config.ts","../../../../libs/window-system/src/lib/window.service.ts","../../../../libs/window-system/src/lib/window-task-bar/window-task/window-task.component.ts","../../../../libs/window-system/src/lib/window-task-bar/window-task/window-task.component.html","../../../../libs/window-system/src/lib/window-task-bar/window-task-bar.component.ts","../../../../libs/window-system/src/lib/window-task-bar/window-task-bar.component.html","../../../../libs/window-system/src/lib/window-task-bar/window-task-bar-container/window-task-bar-container.component.ts","../../../../libs/window-system/src/lib/window-task-bar/window-task-bar-container/window-task-bar-container.component.html","../../../../libs/window-system/src/lib/window-task-bar/window-task-bar.module.ts","../../../../libs/window-system/src/lib/window-system.module.ts","../../../../libs/window-system/src/lib/window-footer.directive.ts","../../../../libs/window-system/src/lib/window-title.directive.ts","../../../../libs/window-system/src/rxap-window-system.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\nimport type {\n WindowContext,\n WindowContainerContext\n} from './window-context';\nimport type { WindowRef } from './window-ref';\nimport { WindowSettings } from './window-config';\n\nexport const RXAP_WINDOW_CONTEXT = new InjectionToken<WindowContext<any>>('rxap/core/window/WINDOW_CONTEXT');\nexport const RXAP_WINDOW_DATA = new InjectionToken<any>('rxap/core/window/WINDOW_DATA');\nexport const RXAP_WINDOW_CONTAINER_CONTEXT = new InjectionToken<WindowContainerContext<any>>('rxap/core/window/WINDOW_CONTAINER_CONTEXT');\nexport const RXAP_WINDOW_REF = new InjectionToken<WindowRef>('rxap/window-system/WINDOW_REF');\nexport const RXAP_WINDOW_SETTINGS = new InjectionToken<WindowSettings>('rxap/window-system/window-settings');\nexport const RXAP_WINDOW_DEFAULT_SETTINGS = new InjectionToken<WindowSettings>('rxap/window-system/default-window-settings');\n","/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from) {\r\n for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)\r\n to[j] = from[i];\r\n return to;\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n","import {\n Component,\n OnInit,\n Input,\n ElementRef,\n OnDestroy,\n ViewChild,\n Output,\n EventEmitter,\n ChangeDetectionStrategy,\n Inject\n} from '@angular/core';\nimport {\n fromEvent,\n Subscription\n} from 'rxjs';\nimport {\n tap,\n switchMap,\n takeUntil,\n map,\n filter,\n finalize\n} from 'rxjs/operators';\nimport { RXAP_WINDOW_CONTEXT } from '../tokens';\nimport { WindowRef } from '../window-ref';\nimport { Required } from '@rxap/utilities';\n\n@Component({\n selector: 'rxap-window-resizer',\n templateUrl: './window-resizer.component.html',\n styleUrls: [ './window-resizer.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class WindowResizerComponent implements OnInit, OnDestroy {\n\n @Input() @Required public containerRef!: ElementRef<any>;\n\n public windowRef: WindowRef<any>;\n\n @ViewChild('resizer', { static: true }) public resizerRef!: ElementRef<any>;\n\n @Output('width') public width$ = new EventEmitter<string>();\n @Output('height') public height$ = new EventEmitter<string>();\n @Output('resizing') public resizing$ = new EventEmitter<boolean>();\n\n private _subscription = new Subscription();\n\n constructor(\n @Inject(RXAP_WINDOW_CONTEXT) context: any\n ) {\n this.windowRef = context.windowRef;\n }\n\n ngOnDestroy(): void {\n this._subscription.unsubscribe();\n }\n\n ngOnInit() {\n\n let originalMouseX = 0;\n let originalMouseY = 0;\n let originalWidth = 0;\n let originalHeight = 0;\n\n this._subscription.add(\n fromEvent<MouseEvent>(this.resizerRef.nativeElement, 'mousedown').pipe(\n tap(event => {\n this.resizing$.emit(true);\n originalMouseX = event.pageX;\n originalMouseY = event.pageY;\n originalWidth = parseFloat(\n getComputedStyle(this.containerRef.nativeElement, null)\n .getPropertyValue('width')\n .replace('px', '')\n );\n originalHeight = parseFloat(\n getComputedStyle(this.containerRef.nativeElement, null)\n .getPropertyValue('height')\n .replace('px', '')\n );\n }),\n switchMap(() => fromEvent<MouseEvent>(window, 'mousemove').pipe(\n takeUntil(fromEvent(window, 'mouseup')),\n map((event) => ({\n width: originalWidth + (event.pageX - originalMouseX),\n height: originalHeight + (event.pageY - originalMouseY)\n })),\n filter(size => (Number(this.windowRef.getSizeConfig().minHeight) || 0) <=\n size.height &&\n (Number(this.windowRef.getSizeConfig().minWidth) || 0) <=\n size.width),\n map(size => ({ width: size.width + 'px', height: size.height + 'px' })),\n tap(size => {\n this.width$.emit(size.width);\n this.height$.emit(size.height);\n }),\n tap(size => {\n this.windowRef.setHeight(size.height);\n this.windowRef.setWidth(size.width);\n }),\n finalize(() => this.resizing$.emit(false))\n )\n )\n ).subscribe()\n );\n\n }\n\n}\n","<div #resizer class=\"resizer\">\n <mat-icon [fxShow]=\"resizing$ | async\">texture</mat-icon>\n</div>\n","import {\n Component,\n ChangeDetectionStrategy,\n Inject\n} from '@angular/core';\nimport { WindowRef } from '../window-ref';\nimport { RXAP_WINDOW_CONTEXT } from '../tokens';\n\n@Component({\n selector: 'rxap-window-tool-bar',\n templateUrl: './window-tool-bar.component.html',\n styleUrls: [ './window-tool-bar.component.scss' ],\n changeDetection: ChangeDetectionStrategy.Default\n})\nexport class WindowToolBarComponent<D> {\n\n public windowRef: WindowRef<D>;\n\n constructor(@Inject(RXAP_WINDOW_CONTEXT) context: any) {\n this.windowRef = context.windowRef;\n }\n\n}\n","<mat-toolbar class=\"header\" fxLayout=\"row\" fxLayoutAlign=\"space-between center\" fxLayoutGap=\"1.5rem\">\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"1.0rem\">\n <ng-template [ngIf]=\"windowRef.titlePortal$ | async\" [ngIfElse]=\"titleFromSettings\" let-titlePortal>\n <ng-template [cdkPortalOutlet]=\"titlePortal\"></ng-template>\n </ng-template>\n <ng-template #titleFromSettings>\n <ng-template [ngIf]=\"windowRef.settings$ | async\" let-settings>\n <mat-icon *ngIf=\"settings.icon\" [rxapIcon]=\"settings.icon\" fxFlex=\"40px\"></mat-icon>\n <h3 *ngIf=\"settings.title\" fxFlex=\"nogrow\">{{settings.title}}</h3>\n </ng-template>\n </ng-template>\n </div>\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <button (click)=\"windowRef.minimize()\" fxFlex=\"40px\" mat-icon-button type=\"button\">\n <mat-icon>minimize</mat-icon>\n </button>\n <button (click)=\"windowRef.fullScreen()\" fxFlex=\"40px\" mat-icon-button type=\"button\">\n <mat-icon>fullscreen</mat-icon>\n </button>\n <button (click)=\"windowRef.complete()\" fxFlex=\"40px\" mat-icon-button type=\"button\">\n <mat-icon>close</mat-icon>\n </button>\n </div>\n</mat-toolbar>\n","export function GetWindowStartPos(): { top: string, left: string } {\n let top = '16px';\n let left = '16px';\n\n // TODO : remove hack to get a better window starting position\n\n const rxapLayoutHeaderElements = document.getElementsByClassName('rxap-layout-header');\n\n if (rxapLayoutHeaderElements) {\n const rxapLayoutHeaderElement = rxapLayoutHeaderElements.item(0);\n if (rxapLayoutHeaderElement && rxapLayoutHeaderElement instanceof HTMLElement) {\n top = (rxapLayoutHeaderElement.offsetHeight + 16) + 'px';\n }\n }\n\n const rxapLayoutSidenavs = document.getElementsByClassName('rxap-layout-sidenav');\n\n if (rxapLayoutSidenavs) {\n const rxapLayoutSidenav = rxapLayoutSidenavs.item(0);\n if (rxapLayoutSidenav && rxapLayoutSidenav instanceof HTMLElement) {\n const container = rxapLayoutSidenav.firstElementChild;\n if (container && container instanceof HTMLElement) {\n left = (container.offsetWidth + 16) + 'px';\n }\n }\n }\n\n return { top, left };\n}\n","import {\n OverlayRef,\n OverlaySizeConfig,\n Overlay\n} from '@angular/cdk/overlay';\nimport { WindowSettings } from './window-config';\nimport {\n BehaviorSubject,\n Subject,\n ReplaySubject\n} from 'rxjs';\nimport { GetWindowStartPos } from './utilities';\nimport { Portal } from '@angular/cdk/portal';\nimport {\n ComponentRef,\n EmbeddedViewRef,\n InjectFlags\n} from '@angular/core';\nimport { RXAP_WINDOW_SETTINGS } from './tokens';\n\nexport class WindowRef<D = any, R = any> extends Subject<R> {\n\n public readonly width$ = new BehaviorSubject<string>(this.getWidth());\n public readonly height$ = new BehaviorSubject<string>(this.getHeight());\n\n /**\n * @deprecated removed. use the subscribe method and wait for the resolve event\n */\n public readonly closed$ = new Subject<R | undefined>();\n\n public attachedRef$ = new ReplaySubject<ComponentRef<any> | EmbeddedViewRef<any>>(1);\n\n public get isMinimized(): boolean {\n return this.overlayRef.hostElement.style.display === 'none';\n }\n\n /**\n * stores the window size before fullScreen\n * @internal\n */\n private oldSizes: { width: string, height: string, pos: { x: string, y: string } } | null = null;\n\n /**\n * @internal\n */\n public footerPortal$ = new ReplaySubject<Portal<any>>(1);\n\n /**\n * @internal\n */\n public titlePortal$ = new ReplaySubject<Portal<any>>(1);\n\n public settings$ = new ReplaySubject<WindowSettings>(1);\n\n constructor(\n public readonly overlayRef: OverlayRef,\n private readonly overlay: Overlay,\n public settings: WindowSettings<D>\n ) {\n super();\n }\n\n /**\n * @deprecated removed. use the complete method\n * @param result\n */\n public close(result?: R): void {\n this.closed$.next(result);\n if (result !== undefined) {\n this.next(result);\n }\n this.complete();\n }\n\n public complete() {\n this.overlayRef.dispose();\n super.complete();\n }\n\n public minimize(): void {\n this.overlayRef.hostElement.style.display = 'none';\n }\n\n public reopen(): void {\n const startPos = GetWindowStartPos();\n this.setPos(startPos.left, startPos.top);\n this.overlayRef.hostElement.style.display = 'flex';\n }\n\n public getSizeConfig(): OverlaySizeConfig {\n const config = this.overlayRef.getConfig();\n return {\n width: config.width,\n height: config.height,\n minHeight: config.minHeight,\n minWidth: config.minWidth,\n maxHeight: config.maxHeight,\n maxWidth: config.maxWidth\n };\n }\n\n public setWidth(width: string): void {\n this.overlayRef.updateSize({\n ...this.getSizeConfig(),\n width\n });\n this.width$.next(width);\n }\n\n public setHeight(height: string): void {\n this.overlayRef.updateSize({\n ...this.getSizeConfig(),\n height\n });\n this.height$.next(height);\n }\n\n public getWidth(): string {\n // tslint:disable-next-line:no-non-null-assertion\n return this.getSizeConfig().width! + '';\n // return this.overlayRef.overlayElement.offsetWidth + 'px'\n }\n\n public getHeight(): string {\n // tslint:disable-next-line:no-non-null-assertion\n return this.getSizeConfig().height! + '';\n // return this.overlayRef.overlayElement.offsetHeight + 'px';\n }\n\n public setPos(x: string, y: string): void {\n this.overlayRef.updatePositionStrategy(this\n .overlay\n .position()\n .global()\n .top(y)\n .left(x)\n );\n this.overlayRef.updatePosition();\n }\n\n public getPos(): { x: string, y: string } {\n const pos = this.overlayRef.overlayElement.getBoundingClientRect();\n return { x: pos.left + 'px', y: pos.top + 'px' };\n }\n\n public fullScreen(): void {\n if (this.oldSizes === null) {\n this.oldSizes = {\n width: this.overlayRef.overlayElement.offsetWidth + 'px',\n height: this.overlayRef.overlayElement.offsetHeight + 'px',\n pos: this.getPos()\n };\n this.setWidth('100vw');\n this.setHeight('100vh');\n this.setPos('0px', '0px');\n } else {\n this.setWidth(this.oldSizes.width);\n this.setHeight(this.oldSizes.height);\n this.setPos(this.oldSizes.pos.x, this.oldSizes.pos.y);\n this.oldSizes = null;\n }\n }\n\n /**\n * @param portal\n */\n public setFooterPortal(portal: Portal<any>) {\n setTimeout(() => {\n this.footerPortal$.next(portal);\n });\n }\n\n public setTitlePortal(portal: Portal<any>) {\n setTimeout(() => {\n this.titlePortal$.next(portal);\n });\n }\n\n public setAttachedRef(attachedRef: ComponentRef<any> | EmbeddedViewRef<any>) {\n if (attachedRef instanceof ComponentRef) {\n this.updateWindowSettings(attachedRef);\n } else {\n this.updateWindowSettings();\n }\n this.attachedRef$.next(attachedRef);\n }\n\n\n /**\n * Injects the window settings from the component ref injector and overwrites\n * the settings\n * @private\n */\n private updateWindowSettings(componentRef?: ComponentRef<any>) {\n const settings = componentRef?.injector.get(RXAP_WINDOW_SETTINGS, null, InjectFlags.Optional) ?? this.settings;\n if (settings) {\n // prevent change diction error: ExpressionChangedAfterItHasBeenCheckedError\n setTimeout(() => {\n this.settings$.next(Object.assign({}, this.settings, settings));\n });\n }\n }\n\n}\n","import {\n Component,\n OnInit,\n Inject,\n ViewChild,\n ElementRef,\n ChangeDetectionStrategy,\n ContentChild,\n HostBinding\n} from '@angular/core';\nimport {\n RXAP_WINDOW_CONTEXT,\n RXAP_WINDOW_REF\n} from '../tokens';\nimport {\n Observable,\n merge\n} from 'rxjs';\nimport {\n CdkDragEnd,\n DragRef\n} from '@angular/cdk/drag-drop';\nimport { WindowResizerComponent } from '../window-resizer/window-resizer.component';\nimport { WindowRef } from '../window-ref';\nimport { LoadingIndicatorService } from '@rxap/services';\n\nexport interface Point {\n x: number;\n y: number;\n}\n\n@Component({\n selector: 'rxap-window-container',\n templateUrl: './window-container.component.html',\n styleUrls: [ './window-container.component.scss' ],\n changeDetection: ChangeDetectionStrategy.Default,\n host: {\n class: 'rxap-window-container'\n }\n})\nexport class WindowContainerComponent<D> implements OnInit {\n\n @ContentChild('[footer]', { static: true }) public footerContent!: ElementRef<any>;\n\n @ViewChild('container', { static: true }) public containerRef!: ElementRef<any>;\n @ViewChild(WindowResizerComponent, { static: true }) public windowContainerResizer!: WindowResizerComponent;\n\n @HostBinding('attr.data-id')\n public get id(): string {\n return this.context.id;\n }\n\n public width$!: Observable<string>;\n public height$!: Observable<string>;\n\n constructor(\n @Inject(RXAP_WINDOW_CONTEXT)\n public readonly context: any,\n @Inject(RXAP_WINDOW_REF)\n public readonly windowRef: WindowRef<D>,\n @Inject(LoadingIndicatorService)\n public readonly windowInstance: LoadingIndicatorService\n ) {}\n\n public ngOnInit() {\n\n this.width$ = merge(\n this.windowContainerResizer.width$,\n this.windowRef.width$\n );\n\n this.height$ = merge(\n this.windowContainerResizer.height$,\n this.windowRef.height$\n );\n\n }\n\n public onDragEnded($event: CdkDragEnd<any>) {\n const nativeElement = $event.source.element.nativeElement;\n const pos = nativeElement.getBoundingClientRect();\n $event.source.reset();\n this.windowRef.setPos(pos.left + 'px', pos.top + 'px');\n }\n\n public dragConstrainPosition(point: Point, dragRef: DragRef): Point {\n const height = document.body.offsetHeight;\n const width = document.body.offsetWidth;\n if (point.y <= 0) {\n point.y = 0;\n }\n if (point.x <= 0) {\n point.x = 0;\n }\n if (point.y > height - 64) {\n point.y = height - 64;\n }\n if (point.x > width - 100) {\n point.x = width - 100;\n }\n return point;\n }\n\n}\n","<div #container\n (cdkDragEnded)=\"onDragEnded($event)\"\n [cdkDragDisabled]=\"windowRef.settings.draggable === false\"\n [ngStyle]=\"{\n 'width': width$ | async,\n 'height': height$ | async,\n 'minWidth': windowRef.settings.minWidth,\n 'minHeight': windowRef.settings.minHeight,\n 'maxWidth': windowRef.settings.maxWidth,\n 'maxHeight': windowRef.settings.maxHeight\n }\"\n cdkDrag\n [cdkDragConstrainPosition]=\"dragConstrainPosition\"\n class=\"container mat-elevation-z4\"\n fxLayout=\"column\">\n\n <div cdkDragHandle class=\"tool-bar\" fxFlex=\"nogrow\">\n <rxap-window-tool-bar></rxap-window-tool-bar>\n </div>\n\n <div class=\"content\" fxFlex=\"grow\">\n <ng-content></ng-content>\n </div>\n\n <mat-toolbar *ngIf=\"windowRef.footerPortal$ | async as footerPortal\" class=\"footer mat-elevation-z1\" fxFlex=\"nogrow\">\n <ng-template [cdkPortalOutlet]=\"footerPortal\"></ng-template>\n </mat-toolbar>\n\n <mat-progress-bar mode=\"indeterminate\" *ngIf=\"windowInstance.isLoading$ | async\"></mat-progress-bar>\n\n <rxap-window-resizer [containerRef]=\"containerRef\"></rxap-window-resizer>\n\n</div>\n","import {\n Component,\n Inject,\n ChangeDetectionStrategy,\n Injector,\n ViewContainerRef,\n ViewChild,\n AfterViewInit,\n ComponentRef,\n isDevMode,\n OnInit\n} from '@angular/core';\nimport {\n RXAP_WINDOW_CONTAINER_CONTEXT,\n RXAP_WINDOW_REF\n} from '../tokens';\nimport { WindowContainerContext } from '../window-context';\nimport {\n ComponentPortal,\n Portal,\n TemplatePortal,\n CdkPortalOutlet\n} from '@angular/cdk/portal';\nimport type { WindowRef } from '../window-ref';\nimport {\n startWith,\n take,\n tap,\n timeout,\n catchError,\n filter,\n delay\n} from 'rxjs/operators';\nimport {\n TimeoutError,\n throwError,\n isObservable\n} from 'rxjs';\nimport { LoadingIndicatorService } from '@rxap/services';\nimport { isDefined } from '@rxap/utilities/rxjs';\n\n@Component({\n selector: 'rxap-window-content',\n templateUrl: './window-content.component.html',\n styleUrls: [ './window-content.component.scss' ],\n changeDetection: ChangeDetectionStrategy.Default\n})\nexport class WindowContentComponent implements AfterViewInit, OnInit {\n\n public context: WindowContainerContext<any>;\n\n public portal: Portal<any> | null = null;\n\n @ViewChild(CdkPortalOutlet)\n public portalOutlet!: CdkPortalOutlet;\n\n constructor(\n @Inject(RXAP_WINDOW_CONTAINER_CONTEXT)\n context: any,\n @Inject(RXAP_WINDOW_REF)\n private readonly windowRef: WindowRef,\n private readonly injector: Injector,\n private readonly viewContainerRef: ViewContainerRef,\n private readonly loadingIndicatorService: LoadingIndicatorService\n ) {\n this.context = context;\n }\n\n public ngOnInit() {\n if (this.context.template) {\n this.portal = new TemplatePortal(this.context.template, this.viewContainerRef);\n } else if (this.context.component) {\n this.portal = new ComponentPortal<any>(this.context.component, this.viewContainerRef, this.injector);\n }\n }\n\n public ngAfterViewInit() {\n this.portalOutlet.attached.pipe(\n startWith(this.portalOutlet.attachedRef),\n isDefined(),\n take(1),\n tap(attachedRef => this.windowRef.setAttachedRef(attachedRef)),\n tap(attachedRef => {\n const promise: Promise<any>[] = [];\n if (attachedRef instanceof ComponentRef) {\n attachedRef.changeDetectorRef.detectChanges();\n const loading$ = attachedRef.instance.loading$;\n if (loading$ && isObservable(loading$)) {\n if (isDevMode()) {\n console.warn('The component has a loading indicator member');\n }\n this.loadingIndicatorService.attachLoading(loading$);\n promise.push(loading$.pipe(\n filter(Boolean),\n take(1),\n delay(100),\n tap(() => attachedRef.changeDetectorRef.detectChanges())\n ).toPromise());\n } else {\n this.loadingIndicatorService.disable();\n }\n } else {\n this.loadingIndicatorService.disable();\n }\n return Promise.all(promise);\n }),\n timeout(10000),\n catchError(error => {\n\n if (error instanceof TimeoutError) {\n if (isDevMode()) {\n console.warn('The window content never resolved the attached ref');\n }\n }\n\n return throwError(error);\n })\n ).subscribe();\n }\n\n}\n","<div class=\"content\">\n <div class=\"inner\">\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\n </div>\n</div>\n","import {\n Component,\n ChangeDetectionStrategy\n} from '@angular/core';\n\n@Component({\n selector: 'rxap-default-window',\n templateUrl: './default-window.component.html',\n styleUrls: [ './default-window.component.scss' ],\n changeDetection: ChangeDetectionStrategy.Default\n})\nexport class DefaultWindowComponent {}\n","<rxap-window-container>\n <rxap-window-content></rxap-window-content>\n</rxap-window-container>\n","import {\n Component,\n Inject,\n Injector\n} from '@angular/core';\nimport { RXAP_WINDOW_CONTEXT } from '../tokens';\nimport { ButtonDefinition } from '@rxap/utilities/rxjs';\n\n@Component({\n selector: 'rxap-window-action-bar',\n templateUrl: './window-action-bar.component.html',\n styleUrls: [ './window-action-bar.component.scss' ]\n})\nexport class WindowActionBarComponent {\n\n public definitions: ButtonDefinition<any>[] | null = null;\n public position: string = 'start';\n\n constructor(@Inject(RXAP_WINDOW_CONTEXT) context: any, public injector: Injector) {\n if (context.windowRef.settings.actions) {\n this.definitions = context.windowRef.settings.actions.definitions;\n this.position = context.windowRef.settings.actions.position || this.position;\n }\n }\n\n}\n","<mat-toolbar-row *ngIf=\"definitions\" class=\"container\" fxLayout=\"row\" fxLayoutAlign=\"{{position}} center\" fxLayoutGap=\".8rem\">\n <button *ngFor=\"let definition of definitions\" [rxap-button]=\"definition\" fxFlex=\"nogrow\"></button>\n</mat-toolbar-row>\n","import { ComponentType } from '@angular/cdk/portal';\nimport {\n Injector,\n ComponentFactoryResolver,\n TemplateRef,\n ViewContainerRef\n} from '@angular/core';\nimport { IconConfig } from '@rxap/utilities';\nimport { ButtonDefinition } from '@rxap/utilities/rxjs';\n\nexport interface WindowActions<A> {\n position?: 'start' | 'end';\n definitions: ButtonDefinition<[ A ]>[];\n}\n\nexport interface WindowSettings<D = any> {\n id?: string;\n title?: string;\n icon?: IconConfig;\n width?: string;\n height?: string;\n minWidth?: string;\n minHeight?: string;\n maxWidth?: string;\n maxHeight?: string;\n resizeable?: boolean;\n draggable?: boolean;\n panelClass?: string;\n data?: D;\n actions?: WindowActions<D>;\n}\n\nexport interface WindowConfig<D = any, T = any> extends WindowSettings<D> {\n component?: ComponentType<T>;\n template?: TemplateRef<T>;\n injector?: Injector | null;\n injectorName?: string;\n componentFactoryResolver?: ComponentFactoryResolver | null;\n viewContainerRef?: ViewContainerRef | null;\n}\n\nexport const DEFAULT_WINDOW_CONFIG: WindowConfig<any, any> = {\n resizeable: true,\n draggable: true,\n injector: null,\n componentFactoryResolver: null,\n minWidth: '384px',\n minHeight: '192px',\n maxWidth: '100vw',\n maxHeight: '100vw'\n};\n","import {\n Injectable,\n Injector,\n ComponentFactoryResolver,\n Inject,\n ViewContainerRef,\n InjectFlags,\n Optional,\n} from '@angular/core';\nimport {\n WindowConfig,\n DEFAULT_WINDOW_CONFIG,\n WindowSettings,\n} from './window-config';\nimport { OverlayConfig, Overlay } from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { WindowRef } from './window-ref';\nimport {\n RXAP_WINDOW_CONTEXT,\n RXAP_WINDOW_CONTAINER_CONTEXT,\n RXAP_WINDOW_REF,\n RXAP_WINDOW_DEFAULT_SETTINGS,\n RXAP_WINDOW_DATA,\n} from './tokens';\nimport { WindowContext, WindowContainerContext } from './window-context';\nimport { tap, take, finalize } from 'rxjs/operators';\nimport { DefaultWindowComponent } from './default-window/default-window.component';\nimport { v4 as uuid } from 'uuid';\nimport { GetWindowStartPos } from './utilities';\nimport { Subject } from 'rxjs';\nimport { LoadingIndicatorService } from '@rxap/services';\n\n@Injectable({ providedIn: 'root' })\nexport class WindowService {\n public get hasActiveWindows(): boolean {\n return this.active.size !== 0;\n }\n\n public get activeWindowCount(): number {\n return this.active.size;\n }\n\n public get allActiveWindows(): Array<WindowRef<any>> {\n return Array.from(this.active.values());\n }\n\n public readonly activeCount$ = new Subject<number>();\n private readonly active = new Map<string, WindowRef<any>>();\n\n constructor(\n @Inject(Injector) private readonly injector: Injector,\n @Inject(Overlay) private readonly overlay: Overlay,\n @Inject(ComponentFactoryResolver)\n private readonly componentFactoryResolver: ComponentFactoryResolver,\n @Optional()\n @Inject(RXAP_WINDOW_DEFAULT_SETTINGS)\n private readonly defaultWindowSettings?: WindowSettings\n ) {}\n\n public get<D>(id: string): WindowRef<D> {\n if (!this.has(id)) {\n throw new Error(`Active Window with id '${id}' not found`);\n }\n // tslint:disable-next-line:no-non-null-assertion\n return this.active.get(id)!;\n }\n\n public close(id: string): void {\n const windowRef = this.get(id);\n windowRef.complete();\n }\n\n public has(id: string): boolean {\n return this.active.has(id);\n }\n\n public open<D, T>(config: WindowConfig<D, T>): WindowRef<D> {\n // Override default configuration\n const windowConfig = {\n id: uuid(),\n ...DEFAULT_WINDOW_CONFIG,\n ...(this.defaultWindowSettings ?? {}),\n ...config,\n };\n\n if (this.has(windowConfig.id)) {\n return this.get(windowConfig.id);\n }\n\n // Returns an OverlayRef which is a PortalHost\n const overlayRef = this.createOverlay(windowConfig);\n\n // Instantiate remote control\n const windowRef = new WindowRef<D>(overlayRef, this.overlay, windowConfig);\n\n const context: WindowContext<any> = {\n id: windowConfig.id,\n overlayRef,\n windowRef,\n data: windowConfig.data,\n };\n\n const containerContext: WindowContainerContext<any> = {\n template: windowConfig.template,\n component: windowConfig.component,\n };\n\n const injector = Injector.create({\n parent: windowConfig.injector ?? this.injector,\n providers: [\n {\n provide: RXAP_WINDOW_CONTAINER_CONTEXT,\n useValue: containerContext,\n },\n {\n provide: RXAP_WINDOW_CONTEXT,\n useValue: context,\n },\n {\n provide: RXAP_WINDOW_DATA,\n useValue: windowConfig.data,\n },\n {\n provide: RXAP_WINDOW_REF,\n useValue: windowRef,\n },\n {\n provide: LoadingIndicatorService,\n useClass: LoadingIndicatorService,\n },\n ],\n name: windowConfig?.injectorName ?? 'WindowService',\n });\n\n const containerPortal = new ComponentPortal(\n DefaultWindowComponent,\n injector.get(ViewContainerRef, null, InjectFlags.Optional) ??\n windowConfig.viewContainerRef ??\n null,\n injector,\n injector.get(ComponentFactoryResolver, null, InjectFlags.Optional) ??\n windowConfig.componentFactoryResolver ??\n this.componentFactoryResolver\n );\n\n overlayRef.attach(containerPortal);\n\n overlayRef\n .backdropClick()\n .pipe(\n take(1),\n tap(() => windowRef.complete())\n )\n .subscribe();\n\n windowRef.pipe(finalize(() => this.remove(windowConfig.id))).subscribe();\n\n this.add(windowRef);\n\n return windowRef;\n }\n\n public remove(id: string) {\n const result = this.active.delete(id);\n this.activeCount$.next(this.active.size);\n return result;\n }\n\n public add(windowRef: WindowRef<any>): void {\n this.active.set(windowRef.settings.id!, windowRef);\n this.activeCount$.next(this.active.size);\n }\n\n private createOverlay({\n panelClass,\n width,\n height,\n minHeight,\n minWidth,\n maxHeight,\n maxWidth,\n }: OverlayConfig) {\n const startPos = GetWindowStartPos();\n\n const positionStrategy = this.overlay\n .position()\n .global()\n .top(startPos.top)\n .left(startPos.left);\n\n const overlayConfig = new OverlayConfig({\n hasBackdrop: false,\n panelClass,\n scrollStrategy: this.overlay.scrollStrategies.block(),\n width,\n height,\n maxWidth: maxWidth ?? this.defaultWindowSettings?.maxWidth ?? '100vw',\n maxHeight: maxHeight ?? this.defaultWindowSettings?.maxHeight ?? '100vh',\n minWidth: minWidth ?? this.defaultWindowSettings?.minWidth ?? '384px',\n minHeight: minHeight ?? this.defaultWindowSettings?.minHeight ?? '192px',\n positionStrategy,\n });\n\n return this.overlay.create(overlayConfig);\n }\n}\n","import {\n Component,\n Input,\n ChangeDetectionStrategy\n} from '@angular/core';\nimport { Required } from '@rxap/utilities';\nimport { WindowRef } from '../../window-ref';\n\n@Component({\n selector: 'rxap-window-task',\n templateUrl: './window-task.component.html',\n styleUrls: [ './window-task.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class WindowTaskComponent {\n\n @Input() @Required public window!: WindowRef<any>;\n\n public close() {\n this.window.complete();\n }\n\n public reopen() {\n this.window.reopen();\n }\n\n}\n","<div (click)=\"reopen()\" [ngClass]=\"{ minimized: window.isMinimized }\" class=\"container mat-elevation-z2\" fxLayout=\"row\" fxLayoutAlign=\"start center\"\n fxLayoutGap=\".5rem\">\n <ng-template [ngIf]=\"window.settings$ | async\" let-settings>\n <mat-icon *ngIf=\"settings.icon\" [rxapIcon]=\"settings.icon\" fxFlex=\"40px\"></mat-icon>\n <h3 *ngIf=\"settings.title\" fxFlex=\"grow\">{{settings.title}}</h3>\n </ng-template>\n <button (click)=\"close()\" rxapStopPropagation mat-icon-button type=\"button\">\n <mat-icon>close</mat-icon>\n </button>\n</div>\n","import {\n Component,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n OnInit,\n OnDestroy,\n Inject\n} from '@angular/core';\nimport { WindowService } from '../window.service';\nimport { Subscription } from 'rxjs';\nimport { tap } from 'rxjs/operators';\n\n@Component({\n selector: 'rxap-window-task-bar',\n templateUrl: './window-task-bar.component.html',\n styleUrls: [ './window-task-bar.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class WindowTaskBarComponent implements OnInit, OnDestroy {\n\n public subscriptions = new Subscription();\n\n constructor(\n @Inject(WindowService) public windowService: WindowService,\n @Inject(ChangeDetectorRef) public cdr: ChangeDetectorRef\n ) { }\n\n public ngOnInit(): void {\n this.subscriptions.add(this.windowService.activeCount$.pipe(\n tap(() => this.cdr.markForCheck())\n ).subscribe());\n }\n\n public ngOnDestroy(): void {\n this.subscriptions.unsubscribe();\n }\n\n}\n","<div class=\"tasks\"\n fxFlex=\"nogrow\"\n fxLayout=\"row wrap\">\n <rxap-window-task *ngFor=\"let window of windowService.allActiveWindows\"\n [window]=\"window\"\n fxFlex=\"nogrow\">\n </rxap-window-task>\n</div>\n","import {\n Component,\n Inject,\n InjectionToken,\n Optional\n} from '@angular/core';\nimport { WindowService } from '../../window.service';\n\nexport interface WindowTaskBarContainerSettings {\n expand?: boolean;\n}\n\nexport const RXAP_WINDOW_TASK_BAR_CONTAINER_SETTINGS = new InjectionToken('rxap/window-system/task-bar-container');\n\n@Component({\n selector: 'rxap-window-task-bar-container',\n templateUrl: './window-task-bar-container.component.html',\n styleUrls: [ './window-task-bar-container.component.scss' ]\n})\nexport class WindowTaskBarContainerComponent {\n\n public expand = true;\n\n constructor(\n @Inject(WindowService)\n public windowService: WindowService,\n @Optional()\n @Inject(RXAP_WINDOW_TASK_BAR_CONTAINER_SETTINGS)\n settings: WindowTaskBarContainerSettings | null = null\n ) {\n if (settings) {\n if (settings.expand !== undefined) {\n this.expand = settings.expand\n }\n }\n }\n\n}\n","<div *ngIf=\"windowService.hasActiveWindows\" class=\"container\" fxLayout=\"column\">\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"end end\">\n <button (click)=\"expand = !expand\"\n [matBadgeHidden]=\"!windowService.hasActiveWindows\"\n [matBadge]=\"windowService.activeWindowCount.toFixed(0)\"\n class=\"pin\"\n color=\"primary\"\n mat-icon-button\n matBadgePosition=\"above before\"\n type=\"button\">\n <mat-icon *ngIf=\"!expand\">keyboard_arrow_up</mat-icon>\n <mat-icon *ngIf=\"expand\">keyboard_arrow_down</mat-icon>\n </button>\n </div>\n <mat-toolbar [fxShow]=\"expand\" class=\"tasks\">\n <rxap-window-task-bar></rxap-window-task-bar>\n </mat-toolbar>\n</div>\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { WindowTaskBarComponent } from './window-task-bar.component';\nimport { WindowTaskComponent } from './window-task/window-task.component';\nimport { FlexLayoutModule } from '@angular/flex-layout';\nimport { MatBadgeModule } from '@angular/material/badge';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatToolbarModule } from '@angular/material/toolbar';\nimport { WindowTaskBarContainerComponent } from './window-task-bar-container/window-task-bar-container.component';\nimport { StopPropagationDirectiveModule } from '@rxap/directives';\nimport { IconDirectiveModule } from '@rxap/material-directives/icon';\n\n@NgModule({\n declarations: [ WindowTaskBarComponent, WindowTaskComponent, WindowTaskBarContainerComponent ],\n imports: [\n CommonModule,\n FlexLayoutModule,\n MatIconModule,\n MatToolbarModule,\n MatBadgeModule,\n MatButtonModule,\n StopPropagationDirectiveModule,\n IconDirectiveModule\n ],\n entryComponents: [ WindowTaskBarComponent ],\n exports: [ WindowTaskBarComponent, WindowTaskBarContainerComponent ]\n})\nexport class WindowTaskBarModule {}\n","import { NgModule } from '@angular/core';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatToolbarModule } from '@angular/material/toolbar';\nimport { WindowContainerComponent } from './window-container/window-container.component';\nimport { FlexLayoutModule } from '@angular/flex-layout';\nimport { CommonModule } from '@angular/common';\nimport { DragDropModule } from '@angular/cdk/drag-drop';\nimport { WindowToolBarComponent } from './window-tool-bar/window-tool-bar.component';\nimport { WindowResizerComponent } from './window-resizer/window-resizer.component';\nimport { DefaultWindowComponent } from './default-window/default-window.component';\nimport { WindowContentComponent } from './window-content/window-content.component';\nimport { OverlayModule } from '@angular/cdk/overlay';\nimport { WindowActionBarComponent } from './window-action-bar/window-action-bar.component';\nimport { WindowTaskBarModule } from './window-task-bar/window-task-bar.module';\nimport { ButtonComponentModule } from '@rxap/components';\nimport { PortalModule } from '@angular/cdk/portal';\nimport { MatProgressBarModule } from '@angular/material/progress-bar';\nimport { IconDirectiveModule } from '@rxap/material-directives/icon';\n\n@NgModule({\n imports: [\n MatToolbarModule,\n FlexLayoutModule,\n CommonModule,\n DragDropModule,\n MatIconModule,\n MatButtonModule,\n OverlayModule,\n ButtonComponentModule,\n PortalModule,\n MatProgressBarModule,\n IconDirectiveModule\n ],\n declarations: [\n WindowContainerComponent,\n WindowToolBarComponent,\n WindowResizerComponent,\n DefaultWindowComponent,\n WindowContentComponent,\n WindowActionBarComponent,\n ],\n entryComponents: [\n DefaultWindowComponent\n ],\n exports: [\n WindowContainerComponent,\n WindowToolBarComponent,\n WindowResizerComponent,\n DefaultWindowComponent,\n WindowContentComponent,\n WindowTaskBarModule\n ]\n})\nexport class RxapWindowSystemModule { }\n","import {\n Directive,\n Inject,\n TemplateRef,\n OnInit,\n NgModule,\n ViewContainerRef\n} from '@angular/core';\nimport { WindowRef } from './window-ref';\nimport { RXAP_WINDOW_REF } from './tokens';\nimport { TemplatePortal } from '@angular/cdk/portal';\n\nexport interface WindowFooterTemplateContext {\n $implicit: WindowRef;\n}\n\n@Directive({\n selector: '[rxapWindowFooter]',\n})\nexport class WindowFooterDirective implements OnInit {\n\n /**\n * Asserts the correct type of the context for the template that `NgForOf` will render.\n *\n * The presence of this method is a signal to the Ivy template type-check compiler that the\n * `NgForOf` structural directive renders its template with a specific context type.\n */\n static ngTemplateContextGuard(dir: WindowFooterDirective, ctx: any):\n ctx is WindowFooterTemplateContext {\n return true;\n }\n\n constructor(\n @Inject(RXAP_WINDOW_REF)\n private readonly windowRef: WindowRef,\n @Inject(TemplateRef)\n private readonly template: TemplateRef<WindowFooterTemplateContext>,\n @Inject(ViewContainerRef)\n private readonly viewContainerRef: ViewContainerRef,\n ) { }\n\n public ngOnInit() {\n this.windowRef.setFooterPortal(new TemplatePortal<WindowFooterTemplateContext>(\n this.template,\n this.viewContainerRef,\n {\n $implicit: this.windowRef,\n }\n ));\n }\n\n}\n\n@NgModule({\n declarations: [WindowFooterDirective],\n exports: [WindowFooterDirective]\n})\nexport class WindowFooterDirectiveModule {}\n","import {\n Directive,\n Inject,\n TemplateRef,\n OnInit,\n NgModule,\n ViewContainerRef\n} from '@angular/core';\nimport { WindowRef } from './window-ref';\nimport { RXAP_WINDOW_REF } from './tokens';\nimport { TemplatePortal } from '@angular/cdk/portal';\n\nexport interface WindowTitleTemplateContext {\n $implicit: WindowRef;\n}\n\n@Directive({\n selector: '[rxapWindowTitle]'\n})\nexport class WindowTitleDirective implements OnInit {\n\n /**\n * Asserts the correct type of the context for the template that `NgForOf` will render.\n *\n * The presence of this method is a signal to the Ivy template type-check compiler that the\n * `NgForOf` structural directive renders its template with a specific context type.\n */\n static ngTemplateContextGuard(dir: WindowTitleDirective, ctx: any):\n ctx is WindowTitleTemplateContext {\n return true;\n }\n\n constructor(\n @Inject(RXAP_WINDOW_REF)\n private readonly windowRef: WindowRef,\n @Inject(TemplateRef)\n private readonly template: TemplateRef<WindowTitleTemplateContext>,\n @Inject(ViewContainerRef)\n private readonly viewContainerRef: ViewContainerRef\n ) { }\n\n public ngOnInit() {\n this.windowRef.setTitlePortal(new TemplatePortal<WindowTitleTemplateContext>(\n this.template,\n this.viewContainerRef,\n {\n $implicit: this.windowRef\n }\n ));\n }\n\n}\n\n@NgModule({\n declarations: [ WindowTitleDirective ],\n exports: [ WindowTitleDirective ]\n})\nexport class WindowTitleDirectiveModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["InjectionToken","EventEmitter","Subscription","fromEvent","tap","switchMap","takeUntil","map","filter","finalize","Required","ElementRef","Component","ChangeDetectionStrategy","Inject","Input","ViewChild","Output","BehaviorSubject","Subject","ReplaySubject","ComponentRef","InjectFlags","merge","LoadingIndicatorService","ContentChild","HostBinding","TemplatePortal","ComponentPortal","startWith","isDefined","take","isObservable","isDevMode","delay","timeout","catchError","TimeoutError","throwError","CdkPortalOutlet","uuid","Injector","ViewContainerRef","ComponentFactoryResolver","OverlayConfig","Overlay","Injectable","Optional","ChangeDetectorRef","CommonModule","FlexLayoutModule","MatIconModule","MatToolbarModule","MatBadgeModule","MatButtonModule","StopPropagationDirectiveModule","IconDirectiveModule","NgModule","DragDropModule","OverlayModule","ButtonComponentModule","PortalModule","MatProgressBarModule","TemplateRef","Directive"],"mappings":";;;;;;;;;;;;;;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rB,mBAAgB;oHAlBf,oBAAoB;qHAApB,oBAAoB;sBAHhCsB,YAAS;uBAAC;wBACT,QAAQ,EAAE,mBAAmB;qBAC9B;;;kCAeIlD,SAAM;mCAAC,eAAe;;kCAEtBA,SAAM;mCAACiD,cAAW;;kCAElBjD,SAAM;mCAAC4B,mBAAgB;;;;QAoB5B;;;;iJAAa,0BAA0B;kJAA1B,0BAA0B,iBAtC1B,oBAAoB,aAApB,oBAAoB;kJAsCpB,0BAA0B;qHAA1B,0BAA0B;sBAJtCe,WAAQ;uBAAC;wBACR,YAAY,EAAE,CAAE,oBAAoB,CAAE;wBACtC,OAAO,EAAO,CAAE,oBAAoB,CAAE;qBACvC;;;ICxDD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/esm2015/index.js DELETED
@@ -1,17 +0,0 @@
1
- export * from './lib/window-system.module';
2
- export * from './lib/window.service';
3
- export * from './lib/window-ref';
4
- export * from './lib/window-config';
5
- export * from './lib/window-context';
6
- export * from './lib/tokens';
7
- export * from './lib/window-task-bar/window-task-bar.module';
8
- export * from './lib/default-window/default-window.component';
9
- export * from './lib/window-tool-bar/window-tool-bar.component';
10
- export * from './lib/window-container/window-container.component';
11
- export * from './lib/window-resizer/window-resizer.component';
12
- export * from './lib/window-content/window-content.component';
13
- export * from './lib/window-task-bar/window-task-bar-container/window-task-bar-container.component';
14
- export * from './lib/window-task-bar/window-task-bar.component';
15
- export * from './lib/window-footer.directive';
16
- export * from './lib/window-title.directive';
17
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/window-system/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC;AAC7B,cAAc,8CAA8C,CAAC;AAC7D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,iDAAiD,CAAC;AAChE,cAAc,mDAAmD,CAAC;AAClE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,qFAAqF,CAAC;AACpG,cAAc,iDAAiD,CAAC;AAChE,cAAc,+BAA+B,CAAC;AAC9C,cAAc,8BAA8B,CAAC","sourcesContent":["export * from './lib/window-system.module';\nexport * from './lib/window.service';\nexport * from './lib/window-ref';\nexport * from './lib/window-config';\nexport * from './lib/window-context';\nexport * from './lib/tokens';\nexport * from './lib/window-task-bar/window-task-bar.module';\nexport * from './lib/default-window/default-window.component';\nexport * from './lib/window-tool-bar/window-tool-bar.component';\nexport * from './lib/window-container/window-container.component';\nexport * from './lib/window-resizer/window-resizer.component';\nexport * from './lib/window-content/window-content.component';\nexport * from './lib/window-task-bar/window-task-bar-container/window-task-bar-container.component';\nexport * from './lib/window-task-bar/window-task-bar.component';\nexport * from './lib/window-footer.directive';\nexport * from './lib/window-title.directive';\n"]}
@@ -1,18 +0,0 @@
1
- import { Component, ChangeDetectionStrategy } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- import * as i1 from "../window-container/window-container.component";
4
- import * as i2 from "../window-content/window-content.component";
5
- export class DefaultWindowComponent {
6
- }
7
- DefaultWindowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: DefaultWindowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
8
- DefaultWindowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.1", type: DefaultWindowComponent, selector: "rxap-default-window", ngImport: i0, template: "<rxap-window-container>\n <rxap-window-content></rxap-window-content>\n</rxap-window-container>\n", styles: [""], components: [{ type: i1.WindowContainerComponent, selector: "rxap-window-container" }, { type: i2.WindowContentComponent, selector: "rxap-window-content" }], changeDetection: i0.ChangeDetectionStrategy.Default });
9
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: DefaultWindowComponent, decorators: [{
10
- type: Component,
11
- args: [{
12
- selector: 'rxap-default-window',
13
- templateUrl: './default-window.component.html',
14
- styleUrls: ['./default-window.component.scss'],
15
- changeDetection: ChangeDetectionStrategy.Default
16
- }]
17
- }] });
18
- //# sourceMappingURL=default-window.component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"default-window.component.js","sourceRoot":"","sources":["../../../../../../libs/window-system/src/lib/default-window/default-window.component.ts","../../../../../../libs/window-system/src/lib/default-window/default-window.component.html"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,uBAAuB,EACxB,MAAM,eAAe,CAAC;;;;AAQvB,MAAM,OAAO,sBAAsB;;mHAAtB,sBAAsB;uGAAtB,sBAAsB,2DCXnC,oGAGA;2FDQa,sBAAsB;kBANlC,SAAS;mBAAC;oBACT,QAAQ,EAAS,qBAAqB;oBACtC,WAAW,EAAM,iCAAiC;oBAClD,SAAS,EAAQ,CAAE,iCAAiC,CAAE;oBACtD,eAAe,EAAE,uBAAuB,CAAC,OAAO;iBACjD","sourcesContent":["import {\n Component,\n ChangeDetectionStrategy\n} from '@angular/core';\n\n@Component({\n selector: 'rxap-default-window',\n templateUrl: './default-window.component.html',\n styleUrls: [ './default-window.component.scss' ],\n changeDetection: ChangeDetectionStrategy.Default\n})\nexport class DefaultWindowComponent {}\n","<rxap-window-container>\n <rxap-window-content></rxap-window-content>\n</rxap-window-container>\n"]}
@@ -1,8 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- export const RXAP_WINDOW_CONTEXT = new InjectionToken('rxap/core/window/WINDOW_CONTEXT');
3
- export const RXAP_WINDOW_DATA = new InjectionToken('rxap/core/window/WINDOW_DATA');
4
- export const RXAP_WINDOW_CONTAINER_CONTEXT = new InjectionToken('rxap/core/window/WINDOW_CONTAINER_CONTEXT');
5
- export const RXAP_WINDOW_REF = new InjectionToken('rxap/window-system/WINDOW_REF');
6
- export const RXAP_WINDOW_SETTINGS = new InjectionToken('rxap/window-system/window-settings');
7
- export const RXAP_WINDOW_DEFAULT_SETTINGS = new InjectionToken('rxap/window-system/default-window-settings');
8
- //# sourceMappingURL=tokens.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tokens.js","sourceRoot":"","sources":["../../../../../libs/window-system/src/lib/tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAQ/C,MAAM,CAAC,MAAM,mBAAmB,GAAa,IAAI,cAAc,CAAqB,iCAAiC,CAAC,CAAC;AACvH,MAAM,CAAC,MAAM,gBAAgB,GAAgB,IAAI,cAAc,CAAM,8BAA8B,CAAC,CAAC;AACrG,MAAM,CAAC,MAAM,6BAA6B,GAAG,IAAI,cAAc,CAA8B,2CAA2C,CAAC,CAAC;AAC1I,MAAM,CAAC,MAAM,eAAe,GAAiB,IAAI,cAAc,CAAY,+BAA+B,CAAC,CAAC;AAC5G,MAAM,CAAC,MAAM,oBAAoB,GAAY,IAAI,cAAc,CAAiB,oCAAoC,CAAC,CAAC;AACtH,MAAM,CAAC,MAAM,4BAA4B,GAAI,IAAI,cAAc,CAAiB,4CAA4C,CAAC,CAAC","sourcesContent":["import { InjectionToken } from '@angular/core';\nimport type {\n WindowContext,\n WindowContainerContext\n} from './window-context';\nimport type { WindowRef } from './window-ref';\nimport { WindowSettings } from './window-config';\n\nexport const RXAP_WINDOW_CONTEXT = new InjectionToken<WindowContext<any>>('rxap/core/window/WINDOW_CONTEXT');\nexport const RXAP_WINDOW_DATA = new InjectionToken<any>('rxap/core/window/WINDOW_DATA');\nexport const RXAP_WINDOW_CONTAINER_CONTEXT = new InjectionToken<WindowContainerContext<any>>('rxap/core/window/WINDOW_CONTAINER_CONTEXT');\nexport const RXAP_WINDOW_REF = new InjectionToken<WindowRef>('rxap/window-system/WINDOW_REF');\nexport const RXAP_WINDOW_SETTINGS = new InjectionToken<WindowSettings>('rxap/window-system/window-settings');\nexport const RXAP_WINDOW_DEFAULT_SETTINGS = new InjectionToken<WindowSettings>('rxap/window-system/default-window-settings');\n"]}
@@ -1,24 +0,0 @@
1
- export function GetWindowStartPos() {
2
- let top = '16px';
3
- let left = '16px';
4
- // TODO : remove hack to get a better window starting position
5
- const rxapLayoutHeaderElements = document.getElementsByClassName('rxap-layout-header');
6
- if (rxapLayoutHeaderElements) {
7
- const rxapLayoutHeaderElement = rxapLayoutHeaderElements.item(0);
8
- if (rxapLayoutHeaderElement && rxapLayoutHeaderElement instanceof HTMLElement) {
9
- top = (rxapLayoutHeaderElement.offsetHeight + 16) + 'px';
10
- }
11
- }
12
- const rxapLayoutSidenavs = document.getElementsByClassName('rxap-layout-sidenav');
13
- if (rxapLayoutSidenavs) {
14
- const rxapLayoutSidenav = rxapLayoutSidenavs.item(0);
15
- if (rxapLayoutSidenav && rxapLayoutSidenav instanceof HTMLElement) {
16
- const container = rxapLayoutSidenav.firstElementChild;
17
- if (container && container instanceof HTMLElement) {
18
- left = (container.offsetWidth + 16) + 'px';
19
- }
20
- }
21
- }
22
- return { top, left };
23
- }
24
- //# sourceMappingURL=utilities.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utilities.js","sourceRoot":"","sources":["../../../../../libs/window-system/src/lib/utilities.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,iBAAiB;IAC/B,IAAI,GAAG,GAAI,MAAM,CAAC;IAClB,IAAI,IAAI,GAAG,MAAM,CAAC;IAElB,8DAA8D;IAE9D,MAAM,wBAAwB,GAAG,QAAQ,CAAC,sBAAsB,CAAC,oBAAoB,CAAC,CAAC;IAEvF,IAAI,wBAAwB,EAAE;QAC5B,MAAM,uBAAuB,GAAG,wBAAwB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACjE,IAAI,uBAAuB,IAAI,uBAAuB,YAAY,WAAW,EAAE;YAC7E,GAAG,GAAG,CAAC,uBAAuB,CAAC,YAAY,GAAG,EAAE,CAAC,GAAG,IAAI,CAAC;SAC1D;KACF;IAED,MAAM,kBAAkB,GAAG,QAAQ,CAAC,sBAAsB,CAAC,qBAAqB,CAAC,CAAC;IAElF,IAAI,kBAAkB,EAAE;QACtB,MAAM,iBAAiB,GAAG,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACrD,IAAI,iBAAiB,IAAI,iBAAiB,YAAY,WAAW,EAAE;YACjE,MAAM,SAAS,GAAG,iBAAiB,CAAC,iBAAiB,CAAC;YACtD,IAAI,SAAS,IAAI,SAAS,YAAY,WAAW,EAAE;gBACjD,IAAI,GAAG,CAAC,SAAS,CAAC,WAAW,GAAG,EAAE,CAAC,GAAG,IAAI,CAAC;aAC5C;SACF;KACF;IAED,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC;AACvB,CAAC","sourcesContent":["export function GetWindowStartPos(): { top: string, left: string } {\n let top = '16px';\n let left = '16px';\n\n // TODO : remove hack to get a better window starting position\n\n const rxapLayoutHeaderElements = document.getElementsByClassName('rxap-layout-header');\n\n if (rxapLayoutHeaderElements) {\n const rxapLayoutHeaderElement = rxapLayoutHeaderElements.item(0);\n if (rxapLayoutHeaderElement && rxapLayoutHeaderElement instanceof HTMLElement) {\n top = (rxapLayoutHeaderElement.offsetHeight + 16) + 'px';\n }\n }\n\n const rxapLayoutSidenavs = document.getElementsByClassName('rxap-layout-sidenav');\n\n if (rxapLayoutSidenavs) {\n const rxapLayoutSidenav = rxapLayoutSidenavs.item(0);\n if (rxapLayoutSidenav && rxapLayoutSidenav instanceof HTMLElement) {\n const container = rxapLayoutSidenav.firstElementChild;\n if (container && container instanceof HTMLElement) {\n left = (container.offsetWidth + 16) + 'px';\n }\n }\n }\n\n return { top, left };\n}\n"]}
@@ -1,32 +0,0 @@
1
- import { Component, Inject, Injector } from '@angular/core';
2
- import { RXAP_WINDOW_CONTEXT } from '../tokens';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "@rxap/components";
5
- import * as i2 from "@angular/common";
6
- import * as i3 from "@angular/material/toolbar";
7
- import * as i4 from "@angular/flex-layout/flex";
8
- export class WindowActionBarComponent {
9
- constructor(context, injector) {
10
- this.injector = injector;
11
- this.definitions = null;
12
- this.position = 'start';
13
- if (context.windowRef.settings.actions) {
14
- this.definitions = context.windowRef.settings.actions.definitions;
15
- this.position = context.windowRef.settings.actions.position || this.position;
16
- }
17
- }
18
- }
19
- WindowActionBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: WindowActionBarComponent, deps: [{ token: RXAP_WINDOW_CONTEXT }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
20
- WindowActionBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.1", type: WindowActionBarComponent, selector: "rxap-window-action-bar", ngImport: i0, template: "<mat-toolbar-row *ngIf=\"definitions\" class=\"container\" fxLayout=\"row\" fxLayoutAlign=\"{{position}} center\" fxLayoutGap=\".8rem\">\n <button *ngFor=\"let definition of definitions\" [rxap-button]=\"definition\" fxFlex=\"nogrow\"></button>\n</mat-toolbar-row>\n", styles: [".container{padding:.8rem}"], components: [{ type: i1.ButtonComponent, selector: "button[rxap-button]", inputs: ["disabled", "disableRipple", "color", "context", "contextAll", "action", "rxap-button", "icon", "tooltip", "tooltipDisabled", "label", "show", "confirm"], outputs: ["confirmed", "unconfirmed"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.MatToolbarRow, selector: "mat-toolbar-row", exportAs: ["matToolbarRow"] }, { type: i4.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i4.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { type: i4.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }] });
21
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: WindowActionBarComponent, decorators: [{
22
- type: Component,
23
- args: [{
24
- selector: 'rxap-window-action-bar',
25
- templateUrl: './window-action-bar.component.html',
26
- styleUrls: ['./window-action-bar.component.scss']
27
- }]
28
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
29
- type: Inject,
30
- args: [RXAP_WINDOW_CONTEXT]
31
- }] }, { type: i0.Injector }]; } });
32
- //# sourceMappingURL=window-action-bar.component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"window-action-bar.component.js","sourceRoot":"","sources":["../../../../../../libs/window-system/src/lib/window-action-bar/window-action-bar.component.ts","../../../../../../libs/window-system/src/lib/window-action-bar/window-action-bar.component.html"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,MAAM,EACN,QAAQ,EACT,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;;;;;;AAQhD,MAAM,OAAO,wBAAwB;IAKnC,YAAyC,OAAY,EAAS,QAAkB;QAAlB,aAAQ,GAAR,QAAQ,CAAU;QAHzE,gBAAW,GAAmC,IAAI,CAAC;QACnD,aAAQ,GAAsC,OAAO,CAAC;QAG3D,IAAI,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE;YACtC,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,WAAW,CAAC;YAClE,IAAI,CAAC,QAAQ,GAAM,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC;SACjF;IACH,CAAC;;qHAVU,wBAAwB,kBAKf,mBAAmB;yGAL5B,wBAAwB,8DCbrC,6QAGA;2FDUa,wBAAwB;kBALpC,SAAS;mBAAC;oBACT,QAAQ,EAAK,wBAAwB;oBACrC,WAAW,EAAE,oCAAoC;oBACjD,SAAS,EAAI,CAAE,oCAAoC,CAAE;iBACtD;;0BAMc,MAAM;2BAAC,mBAAmB","sourcesContent":["import {\n Component,\n Inject,\n Injector\n} from '@angular/core';\nimport { RXAP_WINDOW_CONTEXT } from '../tokens';\nimport { ButtonDefinition } from '@rxap/utilities/rxjs';\n\n@Component({\n selector: 'rxap-window-action-bar',\n templateUrl: './window-action-bar.component.html',\n styleUrls: [ './window-action-bar.component.scss' ]\n})\nexport class WindowActionBarComponent {\n\n public definitions: ButtonDefinition<any>[] | null = null;\n public position: string = 'start';\n\n constructor(@Inject(RXAP_WINDOW_CONTEXT) context: any, public injector: Injector) {\n if (context.windowRef.settings.actions) {\n this.definitions = context.windowRef.settings.actions.definitions;\n this.position = context.windowRef.settings.actions.position || this.position;\n }\n }\n\n}\n","<mat-toolbar-row *ngIf=\"definitions\" class=\"container\" fxLayout=\"row\" fxLayoutAlign=\"{{position}} center\" fxLayoutGap=\".8rem\">\n <button *ngFor=\"let definition of definitions\" [rxap-button]=\"definition\" fxFlex=\"nogrow\"></button>\n</mat-toolbar-row>\n"]}
@@ -1,11 +0,0 @@
1
- export const DEFAULT_WINDOW_CONFIG = {
2
- resizeable: true,
3
- draggable: true,
4
- injector: null,
5
- componentFactoryResolver: null,
6
- minWidth: '384px',
7
- minHeight: '192px',
8
- maxWidth: '100vw',
9
- maxHeight: '100vw'
10
- };
11
- //# sourceMappingURL=window-config.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"window-config.js","sourceRoot":"","sources":["../../../../../libs/window-system/src/lib/window-config.ts"],"names":[],"mappings":"AAyCA,MAAM,CAAC,MAAM,qBAAqB,GAA2B;IAC3D,UAAU,EAAgB,IAAI;IAC9B,SAAS,EAAiB,IAAI;IAC9B,QAAQ,EAAkB,IAAI;IAC9B,wBAAwB,EAAE,IAAI;IAC9B,QAAQ,EAAkB,OAAO;IACjC,SAAS,EAAiB,OAAO;IACjC,QAAQ,EAAkB,OAAO;IACjC,SAAS,EAAiB,OAAO;CAClC,CAAC","sourcesContent":["import { ComponentType } from '@angular/cdk/portal';\nimport {\n Injector,\n ComponentFactoryResolver,\n TemplateRef,\n ViewContainerRef\n} from '@angular/core';\nimport { IconConfig } from '@rxap/utilities';\nimport { ButtonDefinition } from '@rxap/utilities/rxjs';\n\nexport interface WindowActions<A> {\n position?: 'start' | 'end';\n definitions: ButtonDefinition<[ A ]>[];\n}\n\nexport interface WindowSettings<D = any> {\n id?: string;\n title?: string;\n icon?: IconConfig;\n width?: string;\n height?: string;\n minWidth?: string;\n minHeight?: string;\n maxWidth?: string;\n maxHeight?: string;\n resizeable?: boolean;\n draggable?: boolean;\n panelClass?: string;\n data?: D;\n actions?: WindowActions<D>;\n}\n\nexport interface WindowConfig<D = any, T = any> extends WindowSettings<D> {\n component?: ComponentType<T>;\n template?: TemplateRef<T>;\n injector?: Injector | null;\n injectorName?: string;\n componentFactoryResolver?: ComponentFactoryResolver | null;\n viewContainerRef?: ViewContainerRef | null;\n}\n\nexport const DEFAULT_WINDOW_CONFIG: WindowConfig<any, any> = {\n resizeable: true,\n draggable: true,\n injector: null,\n componentFactoryResolver: null,\n minWidth: '384px',\n minHeight: '192px',\n maxWidth: '100vw',\n maxHeight: '100vw'\n};\n"]}
@@ -1,91 +0,0 @@
1
- import { Component, Inject, ViewChild, ElementRef, ChangeDetectionStrategy, ContentChild, HostBinding } from '@angular/core';
2
- import { RXAP_WINDOW_CONTEXT, RXAP_WINDOW_REF } from '../tokens';
3
- import { merge } from 'rxjs';
4
- import { WindowResizerComponent } from '../window-resizer/window-resizer.component';
5
- import { WindowRef } from '../window-ref';
6
- import { LoadingIndicatorService } from '@rxap/services';
7
- import * as i0 from "@angular/core";
8
- import * as i1 from "../window-tool-bar/window-tool-bar.component";
9
- import * as i2 from "@angular/material/toolbar";
10
- import * as i3 from "@angular/material/progress-bar";
11
- import * as i4 from "../window-resizer/window-resizer.component";
12
- import * as i5 from "@angular/cdk/drag-drop";
13
- import * as i6 from "@angular/flex-layout/flex";
14
- import * as i7 from "@angular/flex-layout/extended";
15
- import * as i8 from "@angular/common";
16
- import * as i9 from "@angular/cdk/portal";
17
- import * as i10 from "../window-ref";
18
- import * as i11 from "@rxap/services";
19
- export class WindowContainerComponent {
20
- constructor(context, windowRef, windowInstance) {
21
- this.context = context;
22
- this.windowRef = windowRef;
23
- this.windowInstance = windowInstance;
24
- }
25
- get id() {
26
- return this.context.id;
27
- }
28
- ngOnInit() {
29
- this.width$ = merge(this.windowContainerResizer.width$, this.windowRef.width$);
30
- this.height$ = merge(this.windowContainerResizer.height$, this.windowRef.height$);
31
- }
32
- onDragEnded($event) {
33
- const nativeElement = $event.source.element.nativeElement;
34
- const pos = nativeElement.getBoundingClientRect();
35
- $event.source.reset();
36
- this.windowRef.setPos(pos.left + 'px', pos.top + 'px');
37
- }
38
- dragConstrainPosition(point, dragRef) {
39
- const height = document.body.offsetHeight;
40
- const width = document.body.offsetWidth;
41
- if (point.y <= 0) {
42
- point.y = 0;
43
- }
44
- if (point.x <= 0) {
45
- point.x = 0;
46
- }
47
- if (point.y > height - 64) {
48
- point.y = height - 64;
49
- }
50
- if (point.x > width - 100) {
51
- point.x = width - 100;
52
- }
53
- return point;
54
- }
55
- }
56
- WindowContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: WindowContainerComponent, deps: [{ token: RXAP_WINDOW_CONTEXT }, { token: RXAP_WINDOW_REF }, { token: LoadingIndicatorService }], target: i0.ɵɵFactoryTarget.Component });
57
- WindowContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.1", type: WindowContainerComponent, selector: "rxap-window-container", host: { properties: { "attr.data-id": "this.id" }, classAttribute: "rxap-window-container" }, queries: [{ propertyName: "footerContent", first: true, predicate: ["[footer]"], descendants: true, static: true }], viewQueries: [{ propertyName: "containerRef", first: true, predicate: ["container"], descendants: true, static: true }, { propertyName: "windowContainerResizer", first: true, predicate: WindowResizerComponent, descendants: true, static: true }], ngImport: i0, template: "<div #container\n (cdkDragEnded)=\"onDragEnded($event)\"\n [cdkDragDisabled]=\"windowRef.settings.draggable === false\"\n [ngStyle]=\"{\n 'width': width$ | async,\n 'height': height$ | async,\n 'minWidth': windowRef.settings.minWidth,\n 'minHeight': windowRef.settings.minHeight,\n 'maxWidth': windowRef.settings.maxWidth,\n 'maxHeight': windowRef.settings.maxHeight\n }\"\n cdkDrag\n [cdkDragConstrainPosition]=\"dragConstrainPosition\"\n class=\"container mat-elevation-z4\"\n fxLayout=\"column\">\n\n <div cdkDragHandle class=\"tool-bar\" fxFlex=\"nogrow\">\n <rxap-window-tool-bar></rxap-window-tool-bar>\n </div>\n\n <div class=\"content\" fxFlex=\"grow\">\n <ng-content></ng-content>\n </div>\n\n <mat-toolbar *ngIf=\"windowRef.footerPortal$ | async as footerPortal\" class=\"footer mat-elevation-z1\" fxFlex=\"nogrow\">\n <ng-template [cdkPortalOutlet]=\"footerPortal\"></ng-template>\n </mat-toolbar>\n\n <mat-progress-bar mode=\"indeterminate\" *ngIf=\"windowInstance.isLoading$ | async\"></mat-progress-bar>\n\n <rxap-window-resizer [containerRef]=\"containerRef\"></rxap-window-resizer>\n\n</div>\n", styles: [".container{cursor:move;position:relative;z-index:1;max-height:100vh;max-width:100vw}.container:active{box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.container .tool-bar{width:100%}.container .content{overflow:auto;width:100%}.container .footer{width:100%;height:64px}"], components: [{ type: i1.WindowToolBarComponent, selector: "rxap-window-tool-bar" }, { type: i2.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { type: i3.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "mode", "value", "bufferValue"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { type: i4.WindowResizerComponent, selector: "rxap-window-resizer", inputs: ["containerRef"], outputs: ["width", "height", "resizing"] }], directives: [{ type: i5.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragDisabled", "cdkDragStartDelay", "cdkDragLockAxis", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragBoundary", "cdkDragRootElement", "cdkDragPreviewContainer", "cdkDragData", "cdkDragFreeDragPosition"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { type: i6.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i7.DefaultStyleDirective, selector: " [ngStyle], [ngStyle.xs], [ngStyle.sm], [ngStyle.md], [ngStyle.lg], [ngStyle.xl], [ngStyle.lt-sm], [ngStyle.lt-md], [ngStyle.lt-lg], [ngStyle.lt-xl], [ngStyle.gt-xs], [ngStyle.gt-sm], [ngStyle.gt-md], [ngStyle.gt-lg]", inputs: ["ngStyle", "ngStyle.xs", "ngStyle.sm", "ngStyle.md", "ngStyle.lg", "ngStyle.xl", "ngStyle.lt-sm", "ngStyle.lt-md", "ngStyle.lt-lg", "ngStyle.lt-xl", "ngStyle.gt-xs", "ngStyle.gt-sm", "ngStyle.gt-md", "ngStyle.gt-lg"] }, { type: i8.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i5.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { type: i6.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { type: i8.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i9.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], pipes: { "async": i8.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.Default });
58
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: WindowContainerComponent, decorators: [{
59
- type: Component,
60
- args: [{
61
- selector: 'rxap-window-container',
62
- templateUrl: './window-container.component.html',
63
- styleUrls: ['./window-container.component.scss'],
64
- changeDetection: ChangeDetectionStrategy.Default,
65
- host: {
66
- class: 'rxap-window-container'
67
- }
68
- }]
69
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
70
- type: Inject,
71
- args: [RXAP_WINDOW_CONTEXT]
72
- }] }, { type: i10.WindowRef, decorators: [{
73
- type: Inject,
74
- args: [RXAP_WINDOW_REF]
75
- }] }, { type: i11.LoadingIndicatorService, decorators: [{
76
- type: Inject,
77
- args: [LoadingIndicatorService]
78
- }] }]; }, propDecorators: { footerContent: [{
79
- type: ContentChild,
80
- args: ['[footer]', { static: true }]
81
- }], containerRef: [{
82
- type: ViewChild,
83
- args: ['container', { static: true }]
84
- }], windowContainerResizer: [{
85
- type: ViewChild,
86
- args: [WindowResizerComponent, { static: true }]
87
- }], id: [{
88
- type: HostBinding,
89
- args: ['attr.data-id']
90
- }] } });
91
- //# sourceMappingURL=window-container.component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"window-container.component.js","sourceRoot":"","sources":["../../../../../../libs/window-system/src/lib/window-container/window-container.component.ts","../../../../../../libs/window-system/src/lib/window-container/window-container.component.html"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAET,MAAM,EACN,SAAS,EACT,UAAU,EACV,uBAAuB,EACvB,YAAY,EACZ,WAAW,EACZ,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,mBAAmB,EACnB,eAAe,EAChB,MAAM,WAAW,CAAC;AACnB,OAAO,EAEL,KAAK,EACN,MAAM,MAAM,CAAC;AAKd,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AACpF,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;;;;;;;;;;;;;AAgBzD,MAAM,OAAO,wBAAwB;I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M,GAAG,EAAE,EAAE;YACzB,KAAK,CAAC,CAAC,GAAG,MAAM,GAAG,EAAE,CAAC;SACvB;QACD,IAAI,KAAK,CAAC,CAAC,GAAG,KAAK,GAAG,GAAG,EAAE;YACzB,KAAK,CAAC,CAAC,GAAG,KAAK,GAAG,GAAG,CAAC;SACvB;QACD,OAAO,KAAK,CAAC;IACf,CAAC;;qHA7DU,wBAAwB,kBAgBzB,mBAAmB,aAEnB,eAAe,aAEf,uBAAuB;yGApBtB,wBAAwB,kbAKxB,sBAAsB,8DC7CnC,gqCAiCA;2FDOa,wBAAwB;kBATpC,SAAS;mBAAC;oBACT,QAAQ,EAAS,uBAAuB;oBACxC,WAAW,EAAM,mCAAmC;oBACpD,SAAS,EAAQ,CAAE,mCAAmC,CAAE;oBACxD,eAAe,EAAE,uBAAuB,CAAC,OAAO;oBAChD,IAAI,EAAa;wBACf,KAAK,EAAE,uBAAuB;qBAC/B;iBACF;;0BAiBI,MAAM;2BAAC,mBAAmB;;0BAE1B,MAAM;2BAAC,eAAe;;0BAEtB,MAAM;2BAAC,uBAAuB;4CAlBkB,aAAa;sBAA/D,YAAY;uBAAC,UAAU,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;gBAEO,YAAY;sBAA5D,SAAS;uBAAC,WAAW,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;gBACoB,sBAAsB;sBAAjF,SAAS;uBAAC,sBAAsB,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;gBAGxC,EAAE;sBADZ,WAAW;uBAAC,cAAc","sourcesContent":["import {\n Component,\n OnInit,\n Inject,\n ViewChild,\n ElementRef,\n ChangeDetectionStrategy,\n ContentChild,\n HostBinding\n} from '@angular/core';\nimport {\n RXAP_WINDOW_CONTEXT,\n RXAP_WINDOW_REF\n} from '../tokens';\nimport {\n Observable,\n merge\n} from 'rxjs';\nimport {\n CdkDragEnd,\n DragRef\n} from '@angular/cdk/drag-drop';\nimport { WindowResizerComponent } from '../window-resizer/window-resizer.component';\nimport { WindowRef } from '../window-ref';\nimport { LoadingIndicatorService } from '@rxap/services';\n\nexport interface Point {\n x: number;\n y: number;\n}\n\n@Component({\n selector: 'rxap-window-container',\n templateUrl: './window-container.component.html',\n styleUrls: [ './window-container.component.scss' ],\n changeDetection: ChangeDetectionStrategy.Default,\n host: {\n class: 'rxap-window-container'\n }\n})\nexport class WindowContainerComponent<D> implements OnInit {\n\n @ContentChild('[footer]', { static: true }) public footerContent!: ElementRef<any>;\n\n @ViewChild('container', { static: true }) public containerRef!: ElementRef<any>;\n @ViewChild(WindowResizerComponent, { static: true }) public windowContainerResizer!: WindowResizerComponent;\n\n @HostBinding('attr.data-id')\n public get id(): string {\n return this.context.id;\n }\n\n public width$!: Observable<string>;\n public height$!: Observable<string>;\n\n constructor(\n @Inject(RXAP_WINDOW_CONTEXT)\n public readonly context: any,\n @Inject(RXAP_WINDOW_REF)\n public readonly windowRef: WindowRef<D>,\n @Inject(LoadingIndicatorService)\n public readonly windowInstance: LoadingIndicatorService\n ) {}\n\n public ngOnInit() {\n\n this.width$ = merge(\n this.windowContainerResizer.width$,\n this.windowRef.width$\n );\n\n this.height$ = merge(\n this.windowContainerResizer.height$,\n this.windowRef.height$\n );\n\n }\n\n public onDragEnded($event: CdkDragEnd<any>) {\n const nativeElement = $event.source.element.nativeElement;\n const pos = nativeElement.getBoundingClientRect();\n $event.source.reset();\n this.windowRef.setPos(pos.left + 'px', pos.top + 'px');\n }\n\n public dragConstrainPosition(point: Point, dragRef: DragRef): Point {\n const height = document.body.offsetHeight;\n const width = document.body.offsetWidth;\n if (point.y <= 0) {\n point.y = 0;\n }\n if (point.x <= 0) {\n point.x = 0;\n }\n if (point.y > height - 64) {\n point.y = height - 64;\n }\n if (point.x > width - 100) {\n point.x = width - 100;\n }\n return point;\n }\n\n}\n","<div #container\n (cdkDragEnded)=\"onDragEnded($event)\"\n [cdkDragDisabled]=\"windowRef.settings.draggable === false\"\n [ngStyle]=\"{\n 'width': width$ | async,\n 'height': height$ | async,\n 'minWidth': windowRef.settings.minWidth,\n 'minHeight': windowRef.settings.minHeight,\n 'maxWidth': windowRef.settings.maxWidth,\n 'maxHeight': windowRef.settings.maxHeight\n }\"\n cdkDrag\n [cdkDragConstrainPosition]=\"dragConstrainPosition\"\n class=\"container mat-elevation-z4\"\n fxLayout=\"column\">\n\n <div cdkDragHandle class=\"tool-bar\" fxFlex=\"nogrow\">\n <rxap-window-tool-bar></rxap-window-tool-bar>\n </div>\n\n <div class=\"content\" fxFlex=\"grow\">\n <ng-content></ng-content>\n </div>\n\n <mat-toolbar *ngIf=\"windowRef.footerPortal$ | async as footerPortal\" class=\"footer mat-elevation-z1\" fxFlex=\"nogrow\">\n <ng-template [cdkPortalOutlet]=\"footerPortal\"></ng-template>\n </mat-toolbar>\n\n <mat-progress-bar mode=\"indeterminate\" *ngIf=\"windowInstance.isLoading$ | async\"></mat-progress-bar>\n\n <rxap-window-resizer [containerRef]=\"containerRef\"></rxap-window-resizer>\n\n</div>\n"]}