@equinor/fusion-framework-module-navigation 0.0.0-next-20230915185612

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 (49) hide show
  1. package/CHANGELOG.md +200 -0
  2. package/LICENSE +21 -0
  3. package/dist/esm/configurator.js +3 -0
  4. package/dist/esm/configurator.js.map +1 -0
  5. package/dist/esm/createHistory.js +15 -0
  6. package/dist/esm/createHistory.js.map +1 -0
  7. package/dist/esm/index.js +6 -0
  8. package/dist/esm/index.js.map +1 -0
  9. package/dist/esm/lib/index.js +2 -0
  10. package/dist/esm/lib/index.js.map +1 -0
  11. package/dist/esm/lib/provider/INavigationProvider.js +2 -0
  12. package/dist/esm/lib/provider/INavigationProvider.js.map +1 -0
  13. package/dist/esm/lib/provider/NavigationProvider.js +93 -0
  14. package/dist/esm/lib/provider/NavigationProvider.js.map +1 -0
  15. package/dist/esm/lib/provider/index.js +2 -0
  16. package/dist/esm/lib/provider/index.js.map +1 -0
  17. package/dist/esm/module.js +37 -0
  18. package/dist/esm/module.js.map +1 -0
  19. package/dist/esm/navigator.js +93 -0
  20. package/dist/esm/navigator.js.map +1 -0
  21. package/dist/esm/types.js +2 -0
  22. package/dist/esm/types.js.map +1 -0
  23. package/dist/esm/version.js +2 -0
  24. package/dist/esm/version.js.map +1 -0
  25. package/dist/tsconfig.tsbuildinfo +1 -0
  26. package/dist/types/configurator.d.ts +9 -0
  27. package/dist/types/createHistory.d.ts +4 -0
  28. package/dist/types/index.d.ts +6 -0
  29. package/dist/types/lib/index.d.ts +1 -0
  30. package/dist/types/lib/provider/INavigationProvider.d.ts +17 -0
  31. package/dist/types/lib/provider/NavigationProvider.d.ts +22 -0
  32. package/dist/types/lib/provider/index.d.ts +2 -0
  33. package/dist/types/module.d.ts +13 -0
  34. package/dist/types/navigator.d.ts +32 -0
  35. package/dist/types/types.d.ts +3 -0
  36. package/dist/types/version.d.ts +1 -0
  37. package/package.json +45 -0
  38. package/src/configurator.ts +11 -0
  39. package/src/createHistory.ts +18 -0
  40. package/src/index.ts +10 -0
  41. package/src/lib/index.ts +1 -0
  42. package/src/lib/provider/INavigationProvider.ts +46 -0
  43. package/src/lib/provider/NavigationProvider.ts +119 -0
  44. package/src/lib/provider/index.ts +2 -0
  45. package/src/module.ts +64 -0
  46. package/src/navigator.ts +123 -0
  47. package/src/types.ts +4 -0
  48. package/src/version.ts +2 -0
  49. package/tsconfig.json +20 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,200 @@
1
+ # Change Log
2
+
3
+ ## 0.0.0-next-20230915185612
4
+
5
+ ### Patch Changes
6
+
7
+ - [`b5dfe5d2`](https://github.com/equinor/fusion-framework/commit/b5dfe5d29a249e0cca6c9589322931dfedd06acc) Thanks [@odinr](https://github.com/odinr)! - force patch bump, realign missing snapshot
8
+
9
+ - Updated dependencies [[`b5dfe5d2`](https://github.com/equinor/fusion-framework/commit/b5dfe5d29a249e0cca6c9589322931dfedd06acc)]:
10
+ - @equinor/fusion-framework-module@0.0.0-next-20230915185612
11
+
12
+ ## 3.0.5
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies [[`9076a498`](https://github.com/equinor/fusion-framework/commit/9076a49876e7a414a27557b7fb9095a67fe3a57f)]:
17
+ - @equinor/fusion-framework-module@4.2.4
18
+
19
+ ## 3.0.4
20
+
21
+ ### Patch Changes
22
+
23
+ - [#1109](https://github.com/equinor/fusion-framework/pull/1109) [`7ec195d4`](https://github.com/equinor/fusion-framework/commit/7ec195d42098fec8794db13e83b71ef7753ff862) Thanks [@odinr](https://github.com/odinr)! - Change packaged manager from yarn to pnpm
24
+
25
+ conflicts of `@types/react` made random outcomes when using `yarn`
26
+
27
+ this change should not affect consumer of the packages, but might conflict dependent on local package manager.
28
+
29
+ - [#1145](https://github.com/equinor/fusion-framework/pull/1145) [`d276fc5d`](https://github.com/equinor/fusion-framework/commit/d276fc5d514566d05c64705076a1cb91c6a44272) Thanks [@dependabot](https://github.com/apps/dependabot)! - build(deps): bump rxjs from 7.5.7 to [7.8.1](https://github.com/ReactiveX/rxjs/blob/7.8.1/CHANGELOG.md)
30
+
31
+ - Updated dependencies [[`7ec195d4`](https://github.com/equinor/fusion-framework/commit/7ec195d42098fec8794db13e83b71ef7753ff862), [`d276fc5d`](https://github.com/equinor/fusion-framework/commit/d276fc5d514566d05c64705076a1cb91c6a44272)]:
32
+ - @equinor/fusion-framework-module@4.2.3
33
+
34
+ ## 3.0.3
35
+
36
+ ### Patch Changes
37
+
38
+ - [#1058](https://github.com/equinor/fusion-framework/pull/1058) [`4eadd69f`](https://github.com/equinor/fusion-framework/commit/4eadd69f24dc69623086d40aa367a5c8e67b6518) Thanks [@odinr](https://github.com/odinr)! - Update dependency: @remix-run/router@^1.7.2
39
+
40
+ ## 3.0.2
41
+
42
+ ### Patch Changes
43
+
44
+ - [#950](https://github.com/equinor/fusion-framework/pull/950) [`24123cf7`](https://github.com/equinor/fusion-framework/commit/24123cf717c9b2b8987f9a349d7507e7057ea669) Thanks [@odinr](https://github.com/odinr)! - update generate version for packages
45
+
46
+ ## 3.0.1
47
+
48
+ ### Patch Changes
49
+
50
+ - [#946](https://github.com/equinor/fusion-framework/pull/946) [`5a160d88`](https://github.com/equinor/fusion-framework/commit/5a160d88981ddfe861d391cfefe10f54dda3d352) Thanks [@odinr](https://github.com/odinr)! - Build/update typescript to 5
51
+
52
+ ## 3.0.0
53
+
54
+ ### Major Changes
55
+
56
+ - [#907](https://github.com/equinor/fusion-framework/pull/907) [`7500ec2c`](https://github.com/equinor/fusion-framework/commit/7500ec2c9ca9b926a19539fc97c61c67f76fc8d9) Thanks [@odinr](https://github.com/odinr)! - extend base module provider
57
+
58
+ - make `NavigationProvider` extend `BaseModuleProvider`
59
+ - internal function `_localizeLocation` is renamed to `_localizePath`. _should not cause breaking changes_
60
+ - expose localized state from `Navigator` _(history)_
61
+
62
+ BREAKING CHANGE: `NavigationProvider` no longer extends `Observable<{ action: Action; path: Path }>`, use `INavigationProvider.state# Change Log _(this is now a localized path)_
63
+
64
+ ### Minor Changes
65
+
66
+ - [#907](https://github.com/equinor/fusion-framework/pull/907) [`7500ec2c`](https://github.com/equinor/fusion-framework/commit/7500ec2c9ca9b926a19539fc97c61c67f76fc8d9) Thanks [@odinr](https://github.com/odinr)! - add version to module
67
+
68
+ - add `prebuild` step to generate version
69
+ - update `.gitignore` to skip `version.ts` since this file is generated during building
70
+
71
+ ### Patch Changes
72
+
73
+ - [#913](https://github.com/equinor/fusion-framework/pull/913) [`83ee5abf`](https://github.com/equinor/fusion-framework/commit/83ee5abf7bcab193c85980e5ae44895cd7f6f08d) Thanks [@odinr](https://github.com/odinr)! - **Change init of NavigationProvider**
74
+
75
+ moved the init to constructor
76
+
77
+ - [#905](https://github.com/equinor/fusion-framework/pull/905) [`a7858a1c`](https://github.com/equinor/fusion-framework/commit/a7858a1c01542e2dc94370709f122b4b99c3219c) Thanks [@odinr](https://github.com/odinr)! - **🚧 Chore: dedupe packages**
78
+
79
+ - align all versions of typescript
80
+ - update types to build
81
+ - a couple of typecasts did not [satisfies](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-0.html#satisfies-support-in-jsdoc) and was recasted as `unknwon`, marked with `TODO`, should be fixed in future
82
+
83
+ All notable changes to this project will be documented in this file.
84
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
85
+
86
+ ## 2.1.2 (2023-05-23)
87
+
88
+ **Note:** Version bump only for package @equinor/fusion-framework-module-navigation
89
+
90
+ ## [2.1.1](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-navigation@2.1.0...@equinor/fusion-framework-module-navigation@2.1.1) (2023-05-08)
91
+
92
+ ### Bug Fixes
93
+
94
+ - **module-navigation:** prepend basename ([5d7c844](https://github.com/equinor/fusion-framework/commit/5d7c84454562a4c1a2ebad05923a716fbaf10660)), closes [/github.com/remix-run/react-router/blame/852e05ae4132132cf5dd82ffff4c7e5be76672ae/packages/router/router.ts#L716](https://github.com/equinor//github.com/remix-run/react-router/blame/852e05ae4132132cf5dd82ffff4c7e5be76672ae/packages/router/router.ts/issues/L716)
95
+
96
+ ## 2.1.0 (2023-05-05)
97
+
98
+ ### Features
99
+
100
+ - **module-navigation:** allow no argument when creating link ([4a7b56b](https://github.com/equinor/fusion-framework/commit/4a7b56bc67fe89bb79a707e8ecf2dca6757867d5))
101
+ - **module-navigation:** expose util method from provider. ([cbb1aaf](https://github.com/equinor/fusion-framework/commit/cbb1aafb700abfa0eefeac0184f92618687c3be1))
102
+
103
+ ### Bug Fixes
104
+
105
+ - **module-navigation:** normalize navigation path ([08decd5](https://github.com/equinor/fusion-framework/commit/08decd59d264596a714e4346cd1853995b58b869))
106
+ - **module-navigation:** skip initial value when listening for change ([4d1a44d](https://github.com/equinor/fusion-framework/commit/4d1a44deb3a873983975112032652e3545e3548a))
107
+
108
+ ## 2.0.1 (2023-04-18)
109
+
110
+ **Note:** Version bump only for package @equinor/fusion-framework-module-navigation
111
+
112
+ ## 2.0.0 (2023-04-16)
113
+
114
+ **Note:** Version bump only for package @equinor/fusion-framework-module-navigation
115
+
116
+ ## [1.0.8](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-navigation@1.0.7...@equinor/fusion-framework-module-navigation@1.0.8) (2023-03-22)
117
+
118
+ **Note:** Version bump only for package @equinor/fusion-framework-module-navigation
119
+
120
+ ## 1.0.7 (2023-03-22)
121
+
122
+ ### Bug Fixes
123
+
124
+ - **navigation:** allow inherent of parent history ([2c31592](https://github.com/equinor/fusion-framework/commit/2c31592b659608e9da6dcf88466660cd274174d2))
125
+
126
+ ## [1.0.6](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-navigation@1.0.5...@equinor/fusion-framework-module-navigation@1.0.6) (2023-03-20)
127
+
128
+ **Note:** Version bump only for package @equinor/fusion-framework-module-navigation
129
+
130
+ ## [1.0.5](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-navigation@1.0.4...@equinor/fusion-framework-module-navigation@1.0.5) (2023-03-09)
131
+
132
+ **Note:** Version bump only for package @equinor/fusion-framework-module-navigation
133
+
134
+ ## 1.0.4 (2023-03-09)
135
+
136
+ **Note:** Version bump only for package @equinor/fusion-framework-module-navigation
137
+
138
+ ## 1.0.3 (2023-02-20)
139
+
140
+ ### Bug Fixes
141
+
142
+ - **modules/navigation:** initialize router on creation ([04ca77f](https://github.com/equinor/fusion-framework/commit/04ca77fd8d33d25e6e7e9580f1b9495a817aff92))
143
+
144
+ ## 1.0.2 (2023-02-06)
145
+
146
+ ### Bug Fixes
147
+
148
+ - **navigation:** fix subscription of listener ([f76eee1](https://github.com/equinor/fusion-framework/commit/f76eee19327c9ef805232ca7a3271a4a06e94b6f))
149
+
150
+ ## 1.0.1 (2023-01-30)
151
+
152
+ **Note:** Version bump only for package @equinor/fusion-framework-module-navigation
153
+
154
+ ## [1.0.0](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-navigation@0.1.7...@equinor/fusion-framework-module-navigation@1.0.0) (2023-01-27)
155
+
156
+ **Note:** Version bump only for package @equinor/fusion-framework-module-navigation
157
+
158
+ ## [1.0.0-alpha.0](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-navigation@0.1.7...@equinor/fusion-framework-module-navigation@1.0.0-alpha.0) (2023-01-26)
159
+
160
+ **Note:** Version bump only for package @equinor/fusion-framework-module-navigation
161
+
162
+ ## [0.1.7](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-navigation@0.1.6...@equinor/fusion-framework-module-navigation@0.1.7) (2023-01-26)
163
+
164
+ **Note:** Version bump only for package @equinor/fusion-framework-module-navigation
165
+
166
+ ## 0.1.6 (2023-01-19)
167
+
168
+ ### Bug Fixes
169
+
170
+ - update interface for enabling modules ([1e5730e](https://github.com/equinor/fusion-framework/commit/1e5730e91992c1d0177790c851be993a0532a3d1))
171
+
172
+ ## 0.1.5 (2023-01-09)
173
+
174
+ ### Bug Fixes
175
+
176
+ - **module-navigation:** expose navigator ([8385afd](https://github.com/equinor/fusion-framework/commit/8385afd32a15ff3fe5e7c0a245266b3d33a3e8a0))
177
+
178
+ ## 0.1.4 (2022-12-06)
179
+
180
+ **Note:** Version bump only for package @equinor/fusion-framework-module-navigation
181
+
182
+ ## [0.1.3](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-navigation@0.1.2...@equinor/fusion-framework-module-navigation@0.1.3) (2022-12-01)
183
+
184
+ **Note:** Version bump only for package @equinor/fusion-framework-module-navigation
185
+
186
+ ## 0.1.2 (2022-12-01)
187
+
188
+ **Note:** Version bump only for package @equinor/fusion-framework-module-navigation
189
+
190
+ ## 0.1.1 (2022-11-18)
191
+
192
+ ### Bug Fixes
193
+
194
+ - basename in app render ([ae75815](https://github.com/equinor/fusion-framework/commit/ae75815877701c364f853413b29ad4f053d9c2c2))
195
+
196
+ ## 0.1.0 (2022-11-17)
197
+
198
+ ### Features
199
+
200
+ - **module-navigation:** initial ([891e69d](https://github.com/equinor/fusion-framework/commit/891e69d9a98ba02ee1f9dd1c5b0cb31ff1b5fd0f))
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 Equinor
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,3 @@
1
+ export class NavigationConfigurator {
2
+ }
3
+ //# sourceMappingURL=configurator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configurator.js","sourceRoot":"","sources":["../../src/configurator.ts"],"names":[],"mappings":"AAOA,MAAM,OAAO,sBAAsB;CAGlC"}
@@ -0,0 +1,15 @@
1
+ import { createBrowserHistory, createHashHistory, createMemoryHistory } from '@remix-run/router';
2
+ export const createHistory = (type) => {
3
+ switch (type) {
4
+ case 'hash':
5
+ return createHashHistory({ v5Compat: true });
6
+ case 'memory':
7
+ return createMemoryHistory({ v5Compat: true });
8
+ case 'browser':
9
+ default:
10
+ return createBrowserHistory({
11
+ v5Compat: true,
12
+ });
13
+ }
14
+ };
15
+ //# sourceMappingURL=createHistory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createHistory.js","sourceRoot":"","sources":["../../src/createHistory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAKjG,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,IAAkB,EAAW,EAAE;IACzD,QAAQ,IAAI,EAAE;QACV,KAAK,MAAM;YACP,OAAO,iBAAiB,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;QACjD,KAAK,QAAQ;YACT,OAAO,mBAAmB,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;QACnD,KAAK,SAAS,CAAC;QACf;YACI,OAAO,oBAAoB,CAAC;gBACxB,QAAQ,EAAE,IAAI;aACjB,CAAC,CAAC;KACV;AACL,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ export { NavigationConfigurator } from './configurator';
2
+ export { enableNavigation, module, moduleKey } from './module';
3
+ export { createHistory } from './createHistory';
4
+ export * from './lib';
5
+ export * from './types';
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAA2B,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAEjF,OAAO,EAAoB,gBAAgB,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAEjF,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './provider';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=INavigationProvider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"INavigationProvider.js","sourceRoot":"","sources":["../../../../src/lib/provider/INavigationProvider.ts"],"names":[],"mappings":""}
@@ -0,0 +1,93 @@
1
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
2
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
3
+ 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");
4
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5
+ };
6
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
7
+ if (kind === "m") throw new TypeError("Private method is not writable");
8
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
9
+ 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");
10
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
11
+ };
12
+ var _NavigationProvider_navigator, _NavigationProvider_basePathname;
13
+ import { createRouter } from '@remix-run/router';
14
+ import { filter, map } from 'rxjs/operators';
15
+ import { BaseModuleProvider, } from '@equinor/fusion-framework-module/provider';
16
+ import { Navigator } from '../../navigator';
17
+ const normalizePathname = (path) => path.replace(/\/+/g, '/');
18
+ export class NavigationProvider extends BaseModuleProvider {
19
+ get state$() {
20
+ return __classPrivateFieldGet(this, _NavigationProvider_navigator, "f").pipe(filter((event) => __classPrivateFieldGet(this, _NavigationProvider_basePathname, "f") ? event.location.pathname.startsWith(__classPrivateFieldGet(this, _NavigationProvider_basePathname, "f")) : true), map(({ action, location }) => ({
21
+ action,
22
+ location: this._localizePath(location),
23
+ })));
24
+ }
25
+ get navigator() {
26
+ return __classPrivateFieldGet(this, _NavigationProvider_navigator, "f");
27
+ }
28
+ get path() {
29
+ return this._localizePath(this.navigator.location);
30
+ }
31
+ constructor(args) {
32
+ super(args);
33
+ _NavigationProvider_navigator.set(this, void 0);
34
+ _NavigationProvider_basePathname.set(this, void 0);
35
+ const { basename, history } = args.config;
36
+ __classPrivateFieldSet(this, _NavigationProvider_basePathname, basename, "f");
37
+ if (!history) {
38
+ throw Error('no history provided!');
39
+ }
40
+ __classPrivateFieldSet(this, _NavigationProvider_navigator, new Navigator({
41
+ basename,
42
+ history,
43
+ }), "f");
44
+ this._addTeardown(() => __classPrivateFieldGet(this, _NavigationProvider_navigator, "f").dispose());
45
+ }
46
+ createRouter(routes) {
47
+ const history = __classPrivateFieldGet(this, _NavigationProvider_navigator, "f");
48
+ console.debug('NavigationProvider::createRouter', routes);
49
+ const router = createRouter({
50
+ basename: history.basename,
51
+ history,
52
+ routes,
53
+ future: {
54
+ v7_prependBasename: true,
55
+ },
56
+ });
57
+ router.initialize();
58
+ return router;
59
+ }
60
+ createHref(to) {
61
+ return __classPrivateFieldGet(this, _NavigationProvider_navigator, "f").createHref(this._createToPath(to !== null && to !== void 0 ? to : this.path));
62
+ }
63
+ createURL(to) {
64
+ return __classPrivateFieldGet(this, _NavigationProvider_navigator, "f").createURL(this._createToPath(to !== null && to !== void 0 ? to : this.path));
65
+ }
66
+ push(to, state) {
67
+ return __classPrivateFieldGet(this, _NavigationProvider_navigator, "f").push(this._createToPath(to), state);
68
+ }
69
+ replace(to, state) {
70
+ return __classPrivateFieldGet(this, _NavigationProvider_navigator, "f").replace(this._createToPath(to), state);
71
+ }
72
+ _localizePath(location) {
73
+ var _a;
74
+ const { pathname, search, hash } = location;
75
+ return {
76
+ pathname: normalizePathname(pathname.replace((_a = __classPrivateFieldGet(this, _NavigationProvider_basePathname, "f")) !== null && _a !== void 0 ? _a : '', '')),
77
+ search,
78
+ hash,
79
+ };
80
+ }
81
+ _createToPath(to) {
82
+ const { pathname, search, hash } = typeof to === 'string' ? { pathname: to, search: undefined, hash: undefined } : to;
83
+ return {
84
+ pathname: normalizePathname([__classPrivateFieldGet(this, _NavigationProvider_basePathname, "f"), pathname === '/' ? undefined : pathname]
85
+ .filter((x) => !!x)
86
+ .join('/')),
87
+ search,
88
+ hash,
89
+ };
90
+ }
91
+ }
92
+ _NavigationProvider_navigator = new WeakMap(), _NavigationProvider_basePathname = new WeakMap();
93
+ //# sourceMappingURL=NavigationProvider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NavigationProvider.js","sourceRoot":"","sources":["../../../../src/lib/provider/NavigationProvider.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAuB,YAAY,EAAY,MAAM,mBAAmB,CAAC;AAEhF,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EACH,kBAAkB,GAErB,MAAM,2CAA2C,CAAC;AAKnD,OAAO,EAAE,SAAS,EAAmB,MAAM,iBAAiB,CAAC;AAE7D,MAAM,iBAAiB,GAAG,CAAC,I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AC,MAAA,uBAAA,IAAI,wCAAc,mCAAI,EAAE,EAAE,EAAE,CAAC,CAAC;YAC3E,MAAM;YACN,IAAI;SACP,CAAC;IACN,CAAC;IAES,aAAa,CAAC,EAAM;QAC1B,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,GAC5B,OAAO,EAAE,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACvF,OAAO;YACH,QAAQ,EAAE,iBAAiB,CACvB,CAAC,uBAAA,IAAI,wCAAc,EAAE,QAAQ,KAAK,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC;iBACxD,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;iBAClB,IAAI,CAAC,GAAG,CAAC,CACjB;YACD,MAAM;YACN,IAAI;SACP,CAAC;IACN,CAAC;CACJ"}
@@ -0,0 +1,2 @@
1
+ export { NavigationProvider } from './NavigationProvider';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/provider/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC"}
@@ -0,0 +1,37 @@
1
+ import { SemanticVersion, } from '@equinor/fusion-framework-module';
2
+ import { NavigationConfigurator } from './configurator';
3
+ import { createHistory } from './createHistory';
4
+ import { NavigationProvider } from './lib';
5
+ import { version } from './version';
6
+ export const moduleKey = 'navigation';
7
+ export const module = {
8
+ version: new SemanticVersion(version),
9
+ name: moduleKey,
10
+ configure: (ref) => {
11
+ const configurator = new NavigationConfigurator();
12
+ if (ref) {
13
+ configurator.history = ref.navigation.navigator;
14
+ }
15
+ return configurator;
16
+ },
17
+ initialize: ({ config }) => {
18
+ var _a;
19
+ (_a = config.history) !== null && _a !== void 0 ? _a : (config.history = createHistory());
20
+ return new NavigationProvider({ version, config });
21
+ },
22
+ dispose({ instance }) {
23
+ instance.dispose();
24
+ },
25
+ };
26
+ export const enableNavigation = (configurator, basenameOrOptions) => {
27
+ const options = typeof basenameOrOptions === 'string'
28
+ ? {
29
+ configure: (config) => {
30
+ config.basename = basenameOrOptions;
31
+ },
32
+ }
33
+ : basenameOrOptions;
34
+ configurator.addConfig(Object.assign({ module }, options));
35
+ };
36
+ export default module;
37
+ //# sourceMappingURL=module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module.js","sourceRoot":"","sources":["../../src/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAMH,eAAe,GAClB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAgC,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AACtF,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAA4B,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAErE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,MAAM,CAAC,MAAM,SAAS,GAAG,YAAY,CAAC;AAQtC,MAAM,CAAC,MAAM,MAAM,GAAqB;IACpC,OAAO,EAAE,IAAI,eAAe,CAAC,OAAO,CAAC;IACrC,IAAI,EAAE,SAAS;IACf,SAAS,EAAE,CAAC,GAAa,EAAE,EAAE;QACzB,MAAM,YAAY,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAClD,IAAI,GAAG,EAAE;YACL,YAAY,CAAC,OAAO,GAAI,GAAsB,CAAC,UAAU,CAAC,SAAS,CAAC;SACvE;QACD,OAAO,YAAY,CAAC;IACxB,CAAC;IACD,UAAU,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE;;QACvB,MAAA,MAAM,CAAC,OAAO,oCAAd,MAAM,CAAC,OAAO,GAAK,aAAa,EAAE,EAAC;QACnC,OAAO,IAAI,kBAAkB,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,CAAC;IACvD,CAAC;IACD,OAAO,CAAC,EAAE,QAAQ,EAAE;QAChB,QAAQ,CAAC,OAAO,EAAE,CAAC;IACvB,CAAC;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAE5B,YAA4C,EAC5C,iBAAwF,EACpF,EAAE;IACN,MAAM,OAAO,GACT,OAAO,iBAAiB,KAAK,QAAQ;QACjC,CAAC,CAAC;YACI,SAAS,EAAE,CAAC,MAA0C,EAAE,EAAE;gBACtD,MAAM,CAAC,QAAQ,GAAG,iBAAiB,CAAC;YACxC,CAAC;SACJ;QACH,CAAC,CAAC,iBAAiB,CAAC;IAC5B,YAAY,CAAC,SAAS,iBAAG,MAAM,IAAK,OAAO,EAAG,CAAC;AACnD,CAAC,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -0,0 +1,93 @@
1
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
2
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
3
+ 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");
4
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5
+ };
6
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
7
+ if (kind === "m") throw new TypeError("Private method is not writable");
8
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
9
+ 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");
10
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
11
+ };
12
+ var _Navigator_history, _Navigator_baseName, _Navigator_origin, _Navigator_subscriptions, _Navigator_state, _Navigator_logger;
13
+ import { BehaviorSubject, Observable, skip, Subscription } from 'rxjs';
14
+ export class Navigator extends Observable {
15
+ get basename() {
16
+ return __classPrivateFieldGet(this, _Navigator_baseName, "f");
17
+ }
18
+ get origin() {
19
+ return __classPrivateFieldGet(this, _Navigator_origin, "f");
20
+ }
21
+ get state() {
22
+ return __classPrivateFieldGet(this, _Navigator_state, "f").asObservable();
23
+ }
24
+ get value() {
25
+ return __classPrivateFieldGet(this, _Navigator_state, "f").value;
26
+ }
27
+ get location() {
28
+ return this.value.location;
29
+ }
30
+ get action() {
31
+ return this.value.action;
32
+ }
33
+ constructor(args) {
34
+ super((subscriber) => __classPrivateFieldGet(this, _Navigator_state, "f").subscribe(subscriber));
35
+ _Navigator_history.set(this, void 0);
36
+ _Navigator_baseName.set(this, void 0);
37
+ _Navigator_origin.set(this, window.location.origin);
38
+ _Navigator_subscriptions.set(this, new Subscription());
39
+ _Navigator_state.set(this, void 0);
40
+ _Navigator_logger.set(this, void 0);
41
+ const { basename, history } = args;
42
+ __classPrivateFieldSet(this, _Navigator_logger, args.logger || console, "f");
43
+ __classPrivateFieldSet(this, _Navigator_baseName, basename, "f");
44
+ __classPrivateFieldSet(this, _Navigator_history, history, "f");
45
+ __classPrivateFieldSet(this, _Navigator_state, new BehaviorSubject({
46
+ action: __classPrivateFieldGet(this, _Navigator_history, "f").action,
47
+ location: __classPrivateFieldGet(this, _Navigator_history, "f").location,
48
+ delta: null,
49
+ }), "f");
50
+ __classPrivateFieldGet(this, _Navigator_subscriptions, "f").add(__classPrivateFieldGet(this, _Navigator_history, "f").listen((update) => {
51
+ if (update.location.key !== __classPrivateFieldGet(this, _Navigator_state, "f").value.location.key) {
52
+ __classPrivateFieldGet(this, _Navigator_logger, "f").debug('Navigator::constructor', 'history changed', update, __classPrivateFieldGet(this, _Navigator_state, "f").value);
53
+ __classPrivateFieldGet(this, _Navigator_state, "f").next(update);
54
+ }
55
+ }));
56
+ }
57
+ encodeLocation(to) {
58
+ return __classPrivateFieldGet(this, _Navigator_history, "f").encodeLocation(to);
59
+ }
60
+ listen(listener) {
61
+ __classPrivateFieldGet(this, _Navigator_logger, "f").debug('Navigator::listen', listener);
62
+ const subscription = __classPrivateFieldGet(this, _Navigator_state, "f")
63
+ .pipe(skip(1))
64
+ .subscribe((x) => {
65
+ __classPrivateFieldGet(this, _Navigator_logger, "f").debug('Navigator::listen[onchange]');
66
+ listener(x);
67
+ });
68
+ return () => {
69
+ __classPrivateFieldGet(this, _Navigator_logger, "f").debug('Navigator::listen[unsubscribe]');
70
+ return subscription.unsubscribe();
71
+ };
72
+ }
73
+ createHref(to) {
74
+ return __classPrivateFieldGet(this, _Navigator_history, "f").createHref(to);
75
+ }
76
+ go(delta) {
77
+ __classPrivateFieldGet(this, _Navigator_history, "f").go(delta);
78
+ }
79
+ push(to, state) {
80
+ return __classPrivateFieldGet(this, _Navigator_history, "f").push(to, state);
81
+ }
82
+ replace(to, state) {
83
+ return __classPrivateFieldGet(this, _Navigator_history, "f").replace(to, state);
84
+ }
85
+ createURL(to) {
86
+ return __classPrivateFieldGet(this, _Navigator_history, "f").createURL(to);
87
+ }
88
+ dispose() {
89
+ __classPrivateFieldGet(this, _Navigator_subscriptions, "f").unsubscribe();
90
+ }
91
+ }
92
+ _Navigator_history = new WeakMap(), _Navigator_baseName = new WeakMap(), _Navigator_origin = new WeakMap(), _Navigator_subscriptions = new WeakMap(), _Navigator_state = new WeakMap(), _Navigator_logger = new WeakMap();
93
+ //# sourceMappingURL=navigator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"navigator.js","sourceRoot":"","sources":["../../src/navigator.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAcvE,MAAM,OAAO,SACT,SAAQ,UAAa;IAWrB,IAAI,QAAQ;QACR,OAAO,uBAAA,IAAI,2BAAU,CAAC;IAC1B,CAAC;IACD,IAAI,MAAM;QACN,OAAO,uBAAA,IAAI,yBAAQ,CAAC;IACxB,CAAC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AAM,EAAE,KAAe;QAClC,OAAO,uBAAA,IAAI,0BAAS,CAAC,OAAO,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;IAC5C,CAAC;IAEM,SAAS,CAAC,EAAM;QACnB,OAAO,uBAAA,IAAI,0BAAS,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;IACvC,CAAC;IAED,OAAO;QACH,uBAAA,IAAI,gCAAe,CAAC,WAAW,EAAE,CAAC;IACtC,CAAC;CACJ"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export const version = '3.0.5';
2
+ //# sourceMappingURL=version.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC"}