@noldova/browser.window 0.0.0-stage → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +6 -2
- package/package.json +62 -4
- package/src/api/index.d.ts +1922 -0
- package/src/api/index.js +33 -0
- package/src/api/index.js.map +1 -0
- package/src/app/components/agent-bar/agent-bar.component.js +42 -0
- package/src/app/components/agent-bar/agent-bar.component.js.map +1 -0
- package/src/app/components/agent-mark/agent-mark.component.js +58 -0
- package/src/app/components/agent-mark/agent-mark.component.js.map +1 -0
- package/src/app/components/clear-data-dialog/clear-data-dialog.component.js +23 -0
- package/src/app/components/clear-data-dialog/clear-data-dialog.component.js.map +1 -0
- package/src/app/components/page/page.component.js +264 -0
- package/src/app/components/page/page.component.js.map +1 -0
- package/src/app/components/page-state/page-state.component.js +100 -0
- package/src/app/components/page-state/page-state.component.js.map +1 -0
- package/src/app/components/pane-toolbar/pane-toolbar.component.js +295 -0
- package/src/app/components/pane-toolbar/pane-toolbar.component.js.map +1 -0
- package/src/app/components/request-notice/request-notice.component.js +73 -0
- package/src/app/components/request-notice/request-notice.component.js.map +1 -0
- package/src/app/enums/address-refusal.js +18 -0
- package/src/app/enums/address-refusal.js.map +1 -0
- package/src/app/enums/page-state-action.js +17 -0
- package/src/app/enums/page-state-action.js.map +1 -0
- package/src/app/enums/pane-state.js +17 -0
- package/src/app/enums/pane-state.js.map +1 -0
- package/src/app/enums/refused-request.js +17 -0
- package/src/app/enums/refused-request.js.map +1 -0
- package/src/app/enums/view-event-kind.js +20 -0
- package/src/app/enums/view-event-kind.js.map +1 -0
- package/src/app/enums/zoom-step.js +13 -0
- package/src/app/enums/zoom-step.js.map +1 -0
- package/src/app/exceptions/app-name-answer-malformed.exception.js +16 -0
- package/src/app/exceptions/app-name-answer-malformed.exception.js.map +1 -0
- package/src/app/exceptions/browser-window.exception.js +14 -0
- package/src/app/exceptions/browser-window.exception.js.map +1 -0
- package/src/app/exceptions/held-pages-answer-malformed.exception.js +16 -0
- package/src/app/exceptions/held-pages-answer-malformed.exception.js.map +1 -0
- package/src/app/exceptions/link-refused.exception.js +18 -0
- package/src/app/exceptions/link-refused.exception.js.map +1 -0
- package/src/app/exceptions/open-page-arguments-invalid.exception.js +16 -0
- package/src/app/exceptions/open-page-arguments-invalid.exception.js.map +1 -0
- package/src/app/exceptions/page-activities-answer-malformed.exception.js +16 -0
- package/src/app/exceptions/page-activities-answer-malformed.exception.js.map +1 -0
- package/src/app/exceptions/page-activity-event-malformed.exception.js +16 -0
- package/src/app/exceptions/page-activity-event-malformed.exception.js.map +1 -0
- package/src/app/exceptions/page-claim-answer-malformed.exception.js +16 -0
- package/src/app/exceptions/page-claim-answer-malformed.exception.js.map +1 -0
- package/src/app/exceptions/page-in-another-window.exception.js +18 -0
- package/src/app/exceptions/page-in-another-window.exception.js.map +1 -0
- package/src/app/exceptions/page-on-other-workspace.exception.js +20 -0
- package/src/app/exceptions/page-on-other-workspace.exception.js.map +1 -0
- package/src/app/exceptions/page-record-answer-malformed.exception.js +16 -0
- package/src/app/exceptions/page-record-answer-malformed.exception.js.map +1 -0
- package/src/app/exceptions/pages-inactive.exception.js +16 -0
- package/src/app/exceptions/pages-inactive.exception.js.map +1 -0
- package/src/app/exceptions/pane-unavailable.exception.js +16 -0
- package/src/app/exceptions/pane-unavailable.exception.js.map +1 -0
- package/src/app/exceptions/runtime-answer-malformed.exception.js +16 -0
- package/src/app/exceptions/runtime-answer-malformed.exception.js.map +1 -0
- package/src/app/exceptions/typed-address-answer-malformed.exception.js +16 -0
- package/src/app/exceptions/typed-address-answer-malformed.exception.js.map +1 -0
- package/src/app/models/page-opening.js +18 -0
- package/src/app/models/page-opening.js.map +1 -0
- package/src/app/models/page-state-text.js +18 -0
- package/src/app/models/page-state-text.js.map +1 -0
- package/src/app/models/pane-states.js +15 -0
- package/src/app/models/pane-states.js.map +1 -0
- package/src/app/models/pane-status.js +99 -0
- package/src/app/models/pane-status.js.map +1 -0
- package/src/app/models/pane-tab.js +29 -0
- package/src/app/models/pane-tab.js.map +1 -0
- package/src/app/models/popup-offer.js +18 -0
- package/src/app/models/popup-offer.js.map +1 -0
- package/src/app/models/read-address.js +17 -0
- package/src/app/models/read-address.js.map +1 -0
- package/src/app/models/refused-page.js +18 -0
- package/src/app/models/refused-page.js.map +1 -0
- package/src/app/models/request-notice.js +18 -0
- package/src/app/models/request-notice.js.map +1 -0
- package/src/app/models/site-list.js +54 -0
- package/src/app/models/site-list.js.map +1 -0
- package/src/app/models/typed-load.js +29 -0
- package/src/app/models/typed-load.js.map +1 -0
- package/src/app/models/view-close-event.js +24 -0
- package/src/app/models/view-close-event.js.map +1 -0
- package/src/app/models/view-crash-event.js +23 -0
- package/src/app/models/view-crash-event.js.map +1 -0
- package/src/app/models/view-event.js +10 -0
- package/src/app/models/view-event.js.map +1 -0
- package/src/app/models/view-key-event.js +25 -0
- package/src/app/models/view-key-event.js.map +1 -0
- package/src/app/models/view-load-failure-event.js +29 -0
- package/src/app/models/view-load-failure-event.js.map +1 -0
- package/src/app/models/view-new-window-event.js +29 -0
- package/src/app/models/view-new-window-event.js.map +1 -0
- package/src/app/models/view-profile-cleared-event.js +25 -0
- package/src/app/models/view-profile-cleared-event.js.map +1 -0
- package/src/app/models/view-refusal-event.js +31 -0
- package/src/app/models/view-refusal-event.js.map +1 -0
- package/src/app/models/view-request-refusal-event.js +27 -0
- package/src/app/models/view-request-refusal-event.js.map +1 -0
- package/src/app/models/view-state-event.js +33 -0
- package/src/app/models/view-state-event.js.map +1 -0
- package/src/app/models/view-zoom-event.js +25 -0
- package/src/app/models/view-zoom-event.js.map +1 -0
- package/src/app/services/address-reader.js +35 -0
- package/src/app/services/address-reader.js.map +1 -0
- package/src/app/services/agent-pages.js +50 -0
- package/src/app/services/agent-pages.js.map +1 -0
- package/src/app/services/browser-window-part.js +46 -0
- package/src/app/services/browser-window-part.js.map +1 -0
- package/src/app/services/link-places.js +49 -0
- package/src/app/services/link-places.js.map +1 -0
- package/src/app/services/local-site-check.js +16 -0
- package/src/app/services/local-site-check.js.map +1 -0
- package/src/app/services/mark-layer.js +51 -0
- package/src/app/services/mark-layer.js.map +1 -0
- package/src/app/services/open-page-arguments.js +35 -0
- package/src/app/services/open-page-arguments.js.map +1 -0
- package/src/app/services/page-answers.js +59 -0
- package/src/app/services/page-answers.js.map +1 -0
- package/src/app/services/page-keys.js +31 -0
- package/src/app/services/page-keys.js.map +1 -0
- package/src/app/services/pages.js +552 -0
- package/src/app/services/pages.js.map +1 -0
- package/src/app/services/pane-controller.js +138 -0
- package/src/app/services/pane-controller.js.map +1 -0
- package/src/app/services/pane-hearing.js +80 -0
- package/src/app/services/pane-hearing.js.map +1 -0
- package/src/app/services/placeholder-tracker.js +33 -0
- package/src/app/services/placeholder-tracker.js.map +1 -0
- package/src/app/services/web-view-event-reader.js +76 -0
- package/src/app/services/web-view-event-reader.js.map +1 -0
- package/src/app/types/address-reading.js +8 -0
- package/src/app/types/address-reading.js.map +1 -0
- package/src/app/types/page-place.js +8 -0
- package/src/app/types/page-place.js.map +1 -0
- package/src/resources.js +372 -0
- package/src/resources.js.map +1 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { Resources } from "../../resources.js";
|
|
9
|
+
import { PaneState } from "../enums/pane-state.js";
|
|
10
|
+
import { PaneController } from "../services/pane-controller.js";
|
|
11
|
+
export class PaneTab {
|
|
12
|
+
id;
|
|
13
|
+
view;
|
|
14
|
+
controller;
|
|
15
|
+
constructor(id, view) {
|
|
16
|
+
this.id = id;
|
|
17
|
+
this.view = view;
|
|
18
|
+
this.controller = new PaneController(view);
|
|
19
|
+
}
|
|
20
|
+
get title() {
|
|
21
|
+
const status = this.controller.status;
|
|
22
|
+
return status.title !== "" ? status.title : status.url !== "" ? status.url : Resources.newTab;
|
|
23
|
+
}
|
|
24
|
+
get showsPage() {
|
|
25
|
+
const state = this.controller.status.state;
|
|
26
|
+
return state === PaneState.Loading || state === PaneState.Loaded;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=pane-tab.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pane-tab.js","sourceRoot":"","sources":["../../../../../../src/noldova.browser.window/src/app/models/pane-tab.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAEhE,MAAM,OAAO,OAAO;IACF,EAAE,CAAS;IACX,IAAI,CAAwB;IAC5B,UAAU,CAAiB;IAE3C,YAAmB,EAAU,EAAE,IAA2B;QACxD,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,UAAU,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;IAC7C,CAAC;IAED,IAAW,KAAK;QACd,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC;QACtC,OAAO,MAAM,CAAC,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC;IAChG,CAAC;IAED,IAAW,SAAS;QAClB,MAAM,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,KAAK,CAAC;QAC3C,OAAO,KAAK,KAAK,SAAS,CAAC,OAAO,IAAI,KAAK,KAAK,SAAS,CAAC,MAAM,CAAC;IACnE,CAAC;CACF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
export class PopupOffer {
|
|
9
|
+
address;
|
|
10
|
+
origin;
|
|
11
|
+
hadRecentInput;
|
|
12
|
+
constructor(address, origin, hadRecentInput) {
|
|
13
|
+
this.address = address;
|
|
14
|
+
this.origin = origin;
|
|
15
|
+
this.hadRecentInput = hadRecentInput;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=popup-offer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popup-offer.js","sourceRoot":"","sources":["../../../../../../src/noldova.browser.window/src/app/models/popup-offer.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,OAAO,UAAU;IACL,OAAO,CAAS;IAChB,MAAM,CAAgB;IACtB,cAAc,CAAU;IAExC,YAAmB,OAAe,EAAE,MAAqB,EAAE,cAAuB;QAChF,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;IACvC,CAAC;CACF"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { TypedAddressAnswerKind } from "@noldova/browser.protocol";
|
|
9
|
+
export class ReadAddress {
|
|
10
|
+
kind;
|
|
11
|
+
url;
|
|
12
|
+
constructor(url) {
|
|
13
|
+
this.kind = TypedAddressAnswerKind.Allowed;
|
|
14
|
+
this.url = url;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=read-address.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read-address.js","sourceRoot":"","sources":["../../../../../../src/noldova.browser.window/src/app/models/read-address.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAEnE,MAAM,OAAO,WAAW;IACN,IAAI,CAAwC;IAC5C,GAAG,CAAS;IAE5B,YAAmB,GAAW;QAC5B,IAAI,CAAC,IAAI,GAAG,sBAAsB,CAAC,OAAO,CAAC;QAC3C,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACjB,CAAC;CACF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
export class RefusedPage {
|
|
9
|
+
agentName;
|
|
10
|
+
url;
|
|
11
|
+
origin;
|
|
12
|
+
constructor(agentName, url, origin) {
|
|
13
|
+
this.agentName = agentName;
|
|
14
|
+
this.url = url;
|
|
15
|
+
this.origin = origin;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=refused-page.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refused-page.js","sourceRoot":"","sources":["../../../../../../src/noldova.browser.window/src/app/models/refused-page.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,OAAO,WAAW;IACN,SAAS,CAAS;IAClB,GAAG,CAAS;IACZ,MAAM,CAAS;IAE/B,YAAmB,SAAiB,EAAE,GAAW,EAAE,MAAc;QAC/D,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CACF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
export class RequestNotice {
|
|
9
|
+
glyph;
|
|
10
|
+
message;
|
|
11
|
+
action;
|
|
12
|
+
constructor(glyph, message, action) {
|
|
13
|
+
this.glyph = glyph;
|
|
14
|
+
this.message = message;
|
|
15
|
+
this.action = action;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=request-notice.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request-notice.js","sourceRoot":"","sources":["../../../../../../src/noldova.browser.window/src/app/models/request-notice.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,OAAO,aAAa;IACR,KAAK,CAAS;IACd,OAAO,CAAS;IAChB,MAAM,CAAgB;IAEtC,YAAmB,KAAa,EAAE,OAAe,EAAE,MAAqB;QACtE,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CACF"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { Resources } from "../../resources.js";
|
|
9
|
+
export class SiteList {
|
|
10
|
+
hosts;
|
|
11
|
+
ignored;
|
|
12
|
+
ignoredEntries;
|
|
13
|
+
constructor(hosts, ignored, ignoredEntries) {
|
|
14
|
+
this.hosts = hosts;
|
|
15
|
+
this.ignored = ignored;
|
|
16
|
+
this.ignoredEntries = ignoredEntries;
|
|
17
|
+
}
|
|
18
|
+
static read(text) {
|
|
19
|
+
const hosts = [];
|
|
20
|
+
const ignored = [];
|
|
21
|
+
const ignoredEntries = [];
|
|
22
|
+
const entries = text.split(Resources.siteSeparator).map(t => t.trim()).filter(t => t !== "");
|
|
23
|
+
for (const [index, entry] of entries.entries()) {
|
|
24
|
+
const host = SiteList.hostOf(entry);
|
|
25
|
+
if (host === null) {
|
|
26
|
+
ignored.push(index + 1);
|
|
27
|
+
ignoredEntries.push(entry);
|
|
28
|
+
}
|
|
29
|
+
else if (!hosts.includes(host))
|
|
30
|
+
hosts.push(host);
|
|
31
|
+
}
|
|
32
|
+
return new SiteList(hosts, ignored, ignoredEntries);
|
|
33
|
+
}
|
|
34
|
+
matches(url) {
|
|
35
|
+
const parsed = URL.parse(url);
|
|
36
|
+
if (parsed === null)
|
|
37
|
+
return false;
|
|
38
|
+
const host = parsed.hostname.replace(Resources.trailingDotPattern, "");
|
|
39
|
+
return this.hosts.some(t => host === t || host.endsWith(Resources.formatSubdomainSuffix(t)));
|
|
40
|
+
}
|
|
41
|
+
static hostOf(entry) {
|
|
42
|
+
const unstarred = entry.replace(Resources.wildcardPattern, Resources.wildcardReplacement);
|
|
43
|
+
const address = URL.parse(unstarred.includes(Resources.schemeSeparator) ? unstarred : Resources.formatDefaultSchemeAddress(unstarred));
|
|
44
|
+
const text = address === null ? "" : address.hostname;
|
|
45
|
+
if (!Resources.hostTextPattern.test(text))
|
|
46
|
+
return null;
|
|
47
|
+
const parsed = URL.parse(Resources.formatHostAddress(text));
|
|
48
|
+
if (parsed === null)
|
|
49
|
+
return null;
|
|
50
|
+
const host = parsed.hostname.replace(Resources.trailingDotPattern, "");
|
|
51
|
+
return host === "" || host.startsWith(Resources.hostLabelSeparator) || host.includes(Resources.emptyLabel) ? null : host;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=site-list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"site-list.js","sourceRoot":"","sources":["../../../../../../src/noldova.browser.window/src/app/models/site-list.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
export class TypedLoad {
|
|
9
|
+
redirects = 0;
|
|
10
|
+
waiting = 1;
|
|
11
|
+
entry;
|
|
12
|
+
constructor(entry) {
|
|
13
|
+
this.entry = entry;
|
|
14
|
+
}
|
|
15
|
+
get hops() {
|
|
16
|
+
return this.redirects;
|
|
17
|
+
}
|
|
18
|
+
get isAnswered() {
|
|
19
|
+
return this.waiting === 0;
|
|
20
|
+
}
|
|
21
|
+
follow() {
|
|
22
|
+
this.redirects++;
|
|
23
|
+
this.waiting++;
|
|
24
|
+
}
|
|
25
|
+
answer() {
|
|
26
|
+
this.waiting--;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=typed-load.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typed-load.js","sourceRoot":"","sources":["../../../../../../src/noldova.browser.window/src/app/models/typed-load.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,OAAO,SAAS;IACZ,SAAS,GAAW,CAAC,CAAC;IACtB,OAAO,GAAW,CAAC,CAAC;IAEZ,KAAK,CAAS;IAE9B,YAAmB,KAAa;QAC9B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAED,IAAW,IAAI;QACb,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAED,IAAW,UAAU;QACnB,OAAO,IAAI,CAAC,OAAO,KAAK,CAAC,CAAC;IAC5B,CAAC;IAEM,MAAM;QACX,IAAI,CAAC,SAAS,EAAE,CAAC;QACjB,IAAI,CAAC,OAAO,EAAE,CAAC;IACjB,CAAC;IAEM,MAAM;QACX,IAAI,CAAC,OAAO,EAAE,CAAC;IACjB,CAAC;CACF"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { ViewEventKind } from "../enums/view-event-kind.js";
|
|
9
|
+
import { PaneStatus } from "./pane-status.js";
|
|
10
|
+
import { ViewEvent } from "./view-event.js";
|
|
11
|
+
export class ViewCloseEvent extends ViewEvent {
|
|
12
|
+
kind;
|
|
13
|
+
constructor() {
|
|
14
|
+
super();
|
|
15
|
+
this.kind = ViewEventKind.Closed;
|
|
16
|
+
}
|
|
17
|
+
applyTo() {
|
|
18
|
+
return PaneStatus.unavailable;
|
|
19
|
+
}
|
|
20
|
+
followIn(hearing) {
|
|
21
|
+
hearing.change(this);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=view-close-event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view-close-event.js","sourceRoot":"","sources":["../../../../../../src/noldova.browser.window/src/app/models/view-close-event.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,OAAO,cAAe,SAAQ,SAAS;IAC3B,IAAI,CAA8B;IAElD;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC,MAAM,CAAC;IACnC,CAAC;IAEM,OAAO;QACZ,OAAO,UAAU,CAAC,WAAW,CAAC;IAChC,CAAC;IAEM,QAAQ,CAAC,OAAoB;QAClC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACvB,CAAC;CACF"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { ViewEventKind } from "../enums/view-event-kind.js";
|
|
9
|
+
import { ViewEvent } from "./view-event.js";
|
|
10
|
+
export class ViewCrashEvent extends ViewEvent {
|
|
11
|
+
kind;
|
|
12
|
+
constructor() {
|
|
13
|
+
super();
|
|
14
|
+
this.kind = ViewEventKind.Crashed;
|
|
15
|
+
}
|
|
16
|
+
applyTo(status) {
|
|
17
|
+
return status.crash();
|
|
18
|
+
}
|
|
19
|
+
followIn(hearing) {
|
|
20
|
+
hearing.change(this);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=view-crash-event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view-crash-event.js","sourceRoot":"","sources":["../../../../../../src/noldova.browser.window/src/app/models/view-crash-event.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAG5D,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,OAAO,cAAe,SAAQ,SAAS;IAC3B,IAAI,CAA+B;IAEnD;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC,OAAO,CAAC;IACpC,CAAC;IAEM,OAAO,CAAC,MAAkB;QAC/B,OAAO,MAAM,CAAC,KAAK,EAAE,CAAC;IACxB,CAAC;IAEM,QAAQ,CAAC,OAAoB;QAClC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACvB,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view-event.js","sourceRoot":"","sources":["../../../../../../src/noldova.browser.window/src/app/models/view-event.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAgB,SAAS;CAM9B"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { ViewEventKind } from "../enums/view-event-kind.js";
|
|
9
|
+
import { ViewEvent } from "./view-event.js";
|
|
10
|
+
export class ViewKeyEvent extends ViewEvent {
|
|
11
|
+
kind;
|
|
12
|
+
name;
|
|
13
|
+
constructor(name) {
|
|
14
|
+
super();
|
|
15
|
+
this.kind = ViewEventKind.Key;
|
|
16
|
+
this.name = name;
|
|
17
|
+
}
|
|
18
|
+
applyTo(status) {
|
|
19
|
+
return status;
|
|
20
|
+
}
|
|
21
|
+
followIn(hearing) {
|
|
22
|
+
hearing.pressKey(this);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=view-key-event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view-key-event.js","sourceRoot":"","sources":["../../../../../../src/noldova.browser.window/src/app/models/view-key-event.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAG5D,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,OAAO,YAAa,SAAQ,SAAS;IACzB,IAAI,CAA2B;IAC/B,IAAI,CAAS;IAE7B,YAAmB,IAAY;QAC7B,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC,GAAG,CAAC;QAC9B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAEM,OAAO,CAAC,MAAkB;QAC/B,OAAO,MAAM,CAAC;IAChB,CAAC;IAEM,QAAQ,CAAC,OAAoB;QAClC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IACzB,CAAC;CACF"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { ViewEventKind } from "../enums/view-event-kind.js";
|
|
9
|
+
import { ViewEvent } from "./view-event.js";
|
|
10
|
+
export class ViewLoadFailureEvent extends ViewEvent {
|
|
11
|
+
kind;
|
|
12
|
+
address;
|
|
13
|
+
code;
|
|
14
|
+
description;
|
|
15
|
+
constructor(address, code, description) {
|
|
16
|
+
super();
|
|
17
|
+
this.kind = ViewEventKind.LoadFailed;
|
|
18
|
+
this.address = address;
|
|
19
|
+
this.code = code;
|
|
20
|
+
this.description = description;
|
|
21
|
+
}
|
|
22
|
+
applyTo(status) {
|
|
23
|
+
return status.fail(this);
|
|
24
|
+
}
|
|
25
|
+
followIn(hearing) {
|
|
26
|
+
hearing.fail(this);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=view-load-failure-event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view-load-failure-event.js","sourceRoot":"","sources":["../../../../../../src/noldova.browser.window/src/app/models/view-load-failure-event.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAG5D,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,OAAO,oBAAqB,SAAQ,SAAS;IACjC,IAAI,CAAkC;IACtC,OAAO,CAAS;IAChB,IAAI,CAAS;IACb,WAAW,CAAS;IAEpC,YAAmB,OAAe,EAAE,IAAY,EAAE,WAAmB;QACnE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC,UAAU,CAAC;QACrC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;IAEM,OAAO,CAAC,MAAkB;QAC/B,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC;IAEM,QAAQ,CAAC,OAAoB;QAClC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACrB,CAAC;CACF"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { ViewEventKind } from "../enums/view-event-kind.js";
|
|
9
|
+
import { ViewEvent } from "./view-event.js";
|
|
10
|
+
export class ViewNewWindowEvent extends ViewEvent {
|
|
11
|
+
kind;
|
|
12
|
+
address;
|
|
13
|
+
hadRecentInput;
|
|
14
|
+
origin;
|
|
15
|
+
constructor(address, hadRecentInput, origin) {
|
|
16
|
+
super();
|
|
17
|
+
this.kind = ViewEventKind.NewWindowRequested;
|
|
18
|
+
this.address = address;
|
|
19
|
+
this.hadRecentInput = hadRecentInput;
|
|
20
|
+
this.origin = origin;
|
|
21
|
+
}
|
|
22
|
+
applyTo(status) {
|
|
23
|
+
return status;
|
|
24
|
+
}
|
|
25
|
+
followIn(hearing) {
|
|
26
|
+
hearing.openWindow(this);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=view-new-window-event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view-new-window-event.js","sourceRoot":"","sources":["../../../../../../src/noldova.browser.window/src/app/models/view-new-window-event.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAG5D,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,OAAO,kBAAmB,SAAQ,SAAS;IAC/B,IAAI,CAA0C;IAC9C,OAAO,CAAS;IAChB,cAAc,CAAU;IACxB,MAAM,CAAgB;IAEtC,YAAmB,OAAe,EAAE,cAAuB,EAAE,MAAqB;QAChF,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC,kBAAkB,CAAC;QAC7C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAEM,OAAO,CAAC,MAAkB;QAC/B,OAAO,MAAM,CAAC;IAChB,CAAC;IAEM,QAAQ,CAAC,OAAoB;QAClC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC;CACF"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { ViewEventKind } from "../enums/view-event-kind.js";
|
|
9
|
+
import { ViewEvent } from "./view-event.js";
|
|
10
|
+
export class ViewProfileClearedEvent extends ViewEvent {
|
|
11
|
+
kind;
|
|
12
|
+
profileKey;
|
|
13
|
+
constructor(profileKey) {
|
|
14
|
+
super();
|
|
15
|
+
this.kind = ViewEventKind.ProfileCleared;
|
|
16
|
+
this.profileKey = profileKey;
|
|
17
|
+
}
|
|
18
|
+
applyTo(status) {
|
|
19
|
+
return status;
|
|
20
|
+
}
|
|
21
|
+
followIn(hearing) {
|
|
22
|
+
hearing.change(this);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=view-profile-cleared-event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view-profile-cleared-event.js","sourceRoot":"","sources":["../../../../../../src/noldova.browser.window/src/app/models/view-profile-cleared-event.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAG5D,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,OAAO,uBAAwB,SAAQ,SAAS;IACpC,IAAI,CAAsC;IAC1C,UAAU,CAAS;IAEnC,YAAmB,UAAkB;QACnC,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC,cAAc,CAAC;QACzC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;IAEM,OAAO,CAAC,MAAkB;QAC/B,OAAO,MAAM,CAAC;IAChB,CAAC;IAEM,QAAQ,CAAC,OAAoB;QAClC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACvB,CAAC;CACF"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { PaneState } from "../enums/pane-state.js";
|
|
9
|
+
import { ViewEventKind } from "../enums/view-event-kind.js";
|
|
10
|
+
import { ViewEvent } from "./view-event.js";
|
|
11
|
+
export class ViewRefusalEvent extends ViewEvent {
|
|
12
|
+
kind;
|
|
13
|
+
address;
|
|
14
|
+
origin;
|
|
15
|
+
isRedirect;
|
|
16
|
+
constructor(address, origin, isRedirect) {
|
|
17
|
+
super();
|
|
18
|
+
this.kind = ViewEventKind.NavigationRefused;
|
|
19
|
+
this.address = address;
|
|
20
|
+
this.origin = origin;
|
|
21
|
+
this.isRedirect = isRedirect;
|
|
22
|
+
}
|
|
23
|
+
applyTo(status) {
|
|
24
|
+
const isBeforeItsLoad = status.state !== PaneState.Loading;
|
|
25
|
+
return status.refuse(this.origin, isBeforeItsLoad);
|
|
26
|
+
}
|
|
27
|
+
followIn(hearing) {
|
|
28
|
+
hearing.refuse(this);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=view-refusal-event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view-refusal-event.js","sourceRoot":"","sources":["../../../../../../src/noldova.browser.window/src/app/models/view-refusal-event.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAG5D,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,OAAO,gBAAiB,SAAQ,SAAS;IAC7B,IAAI,CAAyC;IAC7C,OAAO,CAAS;IAChB,MAAM,CAAS;IACf,UAAU,CAAU;IAEpC,YAAmB,OAAe,EAAE,MAAc,EAAE,UAAmB;QACrE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC,iBAAiB,CAAC;QAC5C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;IAEM,OAAO,CAAC,MAAkB;QAC/B,MAAM,eAAe,GAAY,MAAM,CAAC,KAAK,KAAK,SAAS,CAAC,OAAO,CAAC;QACpE,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IACrD,CAAC;IAEM,QAAQ,CAAC,OAAoB;QAClC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACvB,CAAC;CACF"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { ViewEventKind } from "../enums/view-event-kind.js";
|
|
9
|
+
import { ViewEvent } from "./view-event.js";
|
|
10
|
+
export class ViewRequestRefusalEvent extends ViewEvent {
|
|
11
|
+
kind;
|
|
12
|
+
request;
|
|
13
|
+
origin;
|
|
14
|
+
constructor(request, origin) {
|
|
15
|
+
super();
|
|
16
|
+
this.kind = ViewEventKind.RequestRefused;
|
|
17
|
+
this.request = request;
|
|
18
|
+
this.origin = origin;
|
|
19
|
+
}
|
|
20
|
+
applyTo(status) {
|
|
21
|
+
return status.refuseRequest(this.request);
|
|
22
|
+
}
|
|
23
|
+
followIn(hearing) {
|
|
24
|
+
hearing.change(this);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=view-request-refusal-event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view-request-refusal-event.js","sourceRoot":"","sources":["../../../../../../src/noldova.browser.window/src/app/models/view-request-refusal-event.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAG5D,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,OAAO,uBAAwB,SAAQ,SAAS;IACpC,IAAI,CAAsC;IAC1C,OAAO,CAAiB;IACxB,MAAM,CAAS;IAE/B,YAAmB,OAAuB,EAAE,MAAc;QACxD,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC,cAAc,CAAC;QACzC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAEM,OAAO,CAAC,MAAkB;QAC/B,OAAO,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC5C,CAAC;IAEM,QAAQ,CAAC,OAAoB;QAClC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACvB,CAAC;CACF"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { ViewEventKind } from "../enums/view-event-kind.js";
|
|
9
|
+
import { ViewEvent } from "./view-event.js";
|
|
10
|
+
export class ViewStateEvent extends ViewEvent {
|
|
11
|
+
kind;
|
|
12
|
+
address;
|
|
13
|
+
title;
|
|
14
|
+
isLoading;
|
|
15
|
+
canGoBack;
|
|
16
|
+
canGoForward;
|
|
17
|
+
constructor(address, title, isLoading, canGoBack, canGoForward) {
|
|
18
|
+
super();
|
|
19
|
+
this.kind = ViewEventKind.State;
|
|
20
|
+
this.address = address;
|
|
21
|
+
this.title = title;
|
|
22
|
+
this.isLoading = isLoading;
|
|
23
|
+
this.canGoBack = canGoBack;
|
|
24
|
+
this.canGoForward = canGoForward;
|
|
25
|
+
}
|
|
26
|
+
applyTo(status) {
|
|
27
|
+
return status.show(this);
|
|
28
|
+
}
|
|
29
|
+
followIn(hearing) {
|
|
30
|
+
hearing.show(this);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=view-state-event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view-state-event.js","sourceRoot":"","sources":["../../../../../../src/noldova.browser.window/src/app/models/view-state-event.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAG5D,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,OAAO,cAAe,SAAQ,SAAS;IAC3B,IAAI,CAA6B;IACjC,OAAO,CAAS;IAChB,KAAK,CAAS;IACd,SAAS,CAAU;IACnB,SAAS,CAAU;IACnB,YAAY,CAAU;IAEtC,YAAmB,OAAe,EAAE,KAAa,EAAE,SAAkB,EAAE,SAAkB,EAAE,YAAqB;QAC9G,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC,KAAK,CAAC;QAChC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IACnC,CAAC;IAEM,OAAO,CAAC,MAAkB;QAC/B,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC;IAEM,QAAQ,CAAC,OAAoB;QAClC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACrB,CAAC;CACF"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { ViewEventKind } from "../enums/view-event-kind.js";
|
|
9
|
+
import { ViewEvent } from "./view-event.js";
|
|
10
|
+
export class ViewZoomEvent extends ViewEvent {
|
|
11
|
+
kind;
|
|
12
|
+
factor;
|
|
13
|
+
constructor(factor) {
|
|
14
|
+
super();
|
|
15
|
+
this.kind = ViewEventKind.Zoom;
|
|
16
|
+
this.factor = factor;
|
|
17
|
+
}
|
|
18
|
+
applyTo(status) {
|
|
19
|
+
return status;
|
|
20
|
+
}
|
|
21
|
+
followIn(hearing) {
|
|
22
|
+
hearing.zoomTo(this.factor);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=view-zoom-event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view-zoom-event.js","sourceRoot":"","sources":["../../../../../../src/noldova.browser.window/src/app/models/view-zoom-event.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAG5D,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,OAAO,aAAc,SAAQ,SAAS;IAC1B,IAAI,CAA4B;IAChC,MAAM,CAAS;IAE/B,YAAmB,MAAc;QAC/B,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC,IAAI,CAAC;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAEM,OAAO,CAAC,MAAkB;QAC/B,OAAO,MAAM,CAAC;IAChB,CAAC;IAEM,QAAQ,CAAC,OAAoB;QAClC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC9B,CAAC;CACF"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { AddressKind, AddressKinds, TypedAddressRefusal, TypedAddressRefused } from "@noldova/browser.protocol";
|
|
9
|
+
import { Resources } from "../../resources.js";
|
|
10
|
+
import { ReadAddress } from "../models/read-address.js";
|
|
11
|
+
export class AddressReader {
|
|
12
|
+
static read(text) {
|
|
13
|
+
const typed = text.trim();
|
|
14
|
+
if (typed === "" || Resources.spacePattern.test(typed))
|
|
15
|
+
return new TypedAddressRefused(TypedAddressRefusal.NotAnAddress);
|
|
16
|
+
const colon = typed.indexOf(Resources.schemeEnd);
|
|
17
|
+
const before = colon < 0 ? "" : typed.slice(0, colon);
|
|
18
|
+
const name = Resources.schemePattern.test(before) && !Resources.portPattern.test(typed.slice(colon + 1)) ? before.toLowerCase() : null;
|
|
19
|
+
if (name !== null && !Resources.webSchemeNames.includes(name))
|
|
20
|
+
return new TypedAddressRefused(TypedAddressRefusal.NotWeb);
|
|
21
|
+
const url = URL.parse(name === null ? Resources.formatDefaultSchemeAddress(typed) : typed);
|
|
22
|
+
if (url === null || (name === null && !AddressReader.isHost(url.hostname)))
|
|
23
|
+
return new TypedAddressRefused(TypedAddressRefusal.NotAnAddress);
|
|
24
|
+
if (name === null && AddressReader.isThisComputer(url.hostname))
|
|
25
|
+
return new ReadAddress(new URL(Resources.formatLocalAddress(typed)).href);
|
|
26
|
+
return new ReadAddress(url.href);
|
|
27
|
+
}
|
|
28
|
+
static isHost(hostname) {
|
|
29
|
+
return hostname.includes(Resources.hostLabelSeparator) || hostname === Resources.localName || hostname.startsWith(Resources.ipv6Opening);
|
|
30
|
+
}
|
|
31
|
+
static isThisComputer(hostname) {
|
|
32
|
+
return AddressKinds.ofHost(hostname) === AddressKind.Loopback;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=address-reader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"address-reader.js","sourceRoot":"","sources":["../../../../../../src/noldova.browser.window/src/app/services/address-reader.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhH,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAGxD,MAAM,OAAO,aAAa;IACjB,MAAM,CAAC,IAAI,CAAC,IAAY;QAC7B,MAAM,KAAK,GAAW,IAAI,CAAC,IAAI,EAAE,CAAC;QAClC,IAAI,KAAK,KAAK,EAAE,IAAI,SAAS,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC;YACpD,OAAO,IAAI,mBAAmB,CAAC,mBAAmB,CAAC,YAAY,CAAC,CAAC;QACnE,MAAM,KAAK,GAAW,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;QACzD,MAAM,MAAM,GAAW,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;QAC9D,MAAM,IAAI,GAAkB,SAAS,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;QACtJ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,QAAQ,CAAC,IAAI,CAAC;YAC3D,OAAO,IAAI,mBAAmB,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC;QAC7D,MAAM,GAAG,GAAe,GAAG,CAAC,KAAK,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,0BAA0B,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;QACvG,IAAI,GAAG,KAAK,IAAI,IAAI,CAAC,IAAI,KAAK,IAAI,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;YACxE,OAAO,IAAI,mBAAmB,CAAC,mBAAmB,CAAC,YAAY,CAAC,CAAC;QACnE,IAAI,IAAI,KAAK,IAAI,IAAI,aAAa,CAAC,cAAc,CAAC,GAAG,CAAC,QAAQ,CAAC;YAC7D,OAAO,IAAI,WAAW,CAAC,IAAI,GAAG,CAAC,SAAS,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;QAC5E,OAAO,IAAI,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACnC,CAAC;IAEO,MAAM,CAAC,MAAM,CAAC,QAAgB;QACpC,OAAO,QAAQ,CAAC,QAAQ,CAAC,SAAS,CAAC,kBAAkB,CAAC,IAAI,QAAQ,KAAK,SAAS,CAAC,SAAS,IAAI,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAC3I,CAAC;IAEO,MAAM,CAAC,cAAc,CAAC,QAAgB;QAC5C,OAAO,YAAY,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,WAAW,CAAC,QAAQ,CAAC;IAChE,CAAC;CACF"}
|