@rxap/icon 22.0.0-dev.1 → 22.0.0-dev.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.
Files changed (42) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +5 -3
  3. package/compodoc/changelog.html +16 -0
  4. package/compodoc/dependencies.html +1 -5
  5. package/compodoc/index.html +4 -3
  6. package/compodoc/js/search/search_index.js +2 -2
  7. package/compodoc/llms.txt +3 -1
  8. package/compodoc/miscellaneous/functions.html +81 -0
  9. package/compodoc/properties.html +1 -1
  10. package/docs/documentation.json +39 -15
  11. package/docs/html/classes/IconLoaderService.html +5 -5
  12. package/docs/html/functions/DefaultIconSvgFilePath.html +4 -4
  13. package/docs/html/functions/LoadIconSetsFactory.html +4 -4
  14. package/docs/html/functions/ProvideIconAssetPath.html +4 -4
  15. package/docs/html/hierarchy.html +4 -4
  16. package/docs/html/index.html +8 -7
  17. package/docs/html/modules.html +4 -4
  18. package/docs/html/variables/RXAP_ICON_ASSET_PATH.html +4 -4
  19. package/docs/markdown/README.md +6 -4
  20. package/docs/markdown/classes/IconLoaderService.md +3 -3
  21. package/docs/markdown/functions/DefaultIconSvgFilePath.md +2 -2
  22. package/docs/markdown/functions/LoadIconSetsFactory.md +2 -2
  23. package/docs/markdown/functions/ProvideIconAssetPath.md +2 -2
  24. package/docs/markdown/globals.md +2 -2
  25. package/docs/markdown/variables/RXAP_ICON_ASSET_PATH.md +2 -2
  26. package/docs/wiki/Class.IconLoaderService.md +2 -2
  27. package/docs/wiki/Function.DefaultIconSvgFilePath.md +1 -1
  28. package/docs/wiki/Function.LoadIconSetsFactory.md +1 -1
  29. package/docs/wiki/Function.ProvideIconAssetPath.md +1 -1
  30. package/docs/wiki/Home.md +5 -3
  31. package/docs/wiki/Variable.RXAP_ICON_ASSET_PATH.md +1 -1
  32. package/docs/wiki/globals.md +1 -1
  33. package/generators.json +16 -0
  34. package/package.json +10 -9
  35. package/src/generators/init/generator.js +120 -0
  36. package/src/generators/init/index.js +6 -0
  37. package/src/generators/init/schema.json +8 -0
  38. package/src/generators/package.json +3 -0
  39. package/compodoc/js/libs/vis.min.js +0 -47
  40. package/compodoc/js/menu-wc_es5.js +0 -40
  41. package/compodoc/modules/IconModule.html +0 -348
  42. package/theme.css +0 -1
@@ -1,4 +1,4 @@
1
- **@rxap/icon v22.0.0-dev.1**
1
+ **@rxap/icon v22.0.0-dev.2**
2
2
 
3
3
  ***
4
4
 
@@ -19,15 +19,17 @@ This package provides an Angular module to load SVG icons from specified asset p
19
19
 
20
20
  **Add the package to your workspace:**
21
21
  ```bash
22
- yarn add @rxap/icon
22
+ npm install @rxap/icon
23
23
  ```
24
+ With pnpm or yarn use `pnpm add` or `yarn add` instead of `npm install`.
25
+
24
26
  **Install peer dependencies:**
25
27
  ```bash
26
- yarn add @angular/common @angular/core @angular/material @angular/platform-browser @rxap/utilities
28
+ npm install @angular/core @angular/material @angular/platform-browser @rxap/utilities
27
29
  ```
28
30
  **Execute the init generator:**
29
31
  ```bash
30
- yarn nx g @rxap/icon:init
32
+ nx g @rxap/icon:init
31
33
  ```
32
34
  # Generators
33
35
 
@@ -1,4 +1,4 @@
1
- [**@rxap/icon v22.0.0-dev.1**](../README.md)
1
+ [**@rxap/icon v22.0.0-dev.2**](../README.md)
2
2
 
3
3
  ***
4
4
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  # ~~Class: IconLoaderService~~
8
8
 
9
- Defined in: [icon-loader.service.ts:15](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/icon/src/lib/icon-loader.service.ts#L15)
9
+ Defined in: [icon-loader.service.ts:15](https://gitlab.com/rxap/packages/-/blob/73459044d95e79d1cc84f9d21f658812d63c3185/packages/angular/icon/src/lib/icon-loader.service.ts#L15)
10
10
 
11
11
  ## Deprecated
12
12
 
@@ -28,7 +28,7 @@ use the ProvideIconAssetPath function in the app.config.ts file
28
28
 
29
29
  > **load**(): `void`
30
30
 
31
- Defined in: [icon-loader.service.ts:21](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/icon/src/lib/icon-loader.service.ts#L21)
31
+ Defined in: [icon-loader.service.ts:21](https://gitlab.com/rxap/packages/-/blob/73459044d95e79d1cc84f9d21f658812d63c3185/packages/angular/icon/src/lib/icon-loader.service.ts#L21)
32
32
 
33
33
  #### Returns
34
34
 
@@ -1,4 +1,4 @@
1
- [**@rxap/icon v22.0.0-dev.1**](../README.md)
1
+ [**@rxap/icon v22.0.0-dev.2**](../README.md)
2
2
 
3
3
  ***
4
4
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **DefaultIconSvgFilePath**(): `string`
10
10
 
11
- Defined in: [tokens.ts:3](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/icon/src/lib/tokens.ts#L3)
11
+ Defined in: [tokens.ts:3](https://gitlab.com/rxap/packages/-/blob/73459044d95e79d1cc84f9d21f658812d63c3185/packages/angular/icon/src/lib/tokens.ts#L3)
12
12
 
13
13
  ## Returns
14
14
 
@@ -1,4 +1,4 @@
1
- [**@rxap/icon v22.0.0-dev.1**](../README.md)
1
+ [**@rxap/icon v22.0.0-dev.2**](../README.md)
2
2
 
3
3
  ***
4
4
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **LoadIconSetsFactory**(`matIconRegistry`, `domSanitizer`, `pathList`): () => `void`
10
10
 
11
- Defined in: [provide-icon-asset-path.ts:7](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/icon/src/lib/provide-icon-asset-path.ts#L7)
11
+ Defined in: [provide-icon-asset-path.ts:7](https://gitlab.com/rxap/packages/-/blob/73459044d95e79d1cc84f9d21f658812d63c3185/packages/angular/icon/src/lib/provide-icon-asset-path.ts#L7)
12
12
 
13
13
  ## Parameters
14
14
 
@@ -1,4 +1,4 @@
1
- [**@rxap/icon v22.0.0-dev.1**](../README.md)
1
+ [**@rxap/icon v22.0.0-dev.2**](../README.md)
2
2
 
3
3
  ***
4
4
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **ProvideIconAssetPath**(`pathList?`): `StaticProvider`
10
10
 
11
- Defined in: [provide-icon-asset-path.ts:26](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/icon/src/lib/provide-icon-asset-path.ts#L26)
11
+ Defined in: [provide-icon-asset-path.ts:26](https://gitlab.com/rxap/packages/-/blob/73459044d95e79d1cc84f9d21f658812d63c3185/packages/angular/icon/src/lib/provide-icon-asset-path.ts#L26)
12
12
 
13
13
  ## Parameters
14
14
 
@@ -1,8 +1,8 @@
1
- [**@rxap/icon v22.0.0-dev.1**](README.md)
1
+ [**@rxap/icon v22.0.0-dev.2**](README.md)
2
2
 
3
3
  ***
4
4
 
5
- # @rxap/icon v22.0.0-dev.1
5
+ # @rxap/icon v22.0.0-dev.2
6
6
 
7
7
  ## Classes
8
8
 
@@ -1,4 +1,4 @@
1
- [**@rxap/icon v22.0.0-dev.1**](../README.md)
1
+ [**@rxap/icon v22.0.0-dev.2**](../README.md)
2
2
 
3
3
  ***
4
4
 
@@ -8,4 +8,4 @@
8
8
 
9
9
  > `const` **RXAP\_ICON\_ASSET\_PATH**: `InjectionToken`\<`string`\>
10
10
 
11
- Defined in: [tokens.ts:7](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/icon/src/lib/tokens.ts#L7)
11
+ Defined in: [tokens.ts:7](https://gitlab.com/rxap/packages/-/blob/73459044d95e79d1cc84f9d21f658812d63c3185/packages/angular/icon/src/lib/tokens.ts#L7)
@@ -2,7 +2,7 @@
2
2
 
3
3
  # ~~Class: IconLoaderService~~
4
4
 
5
- Defined in: [icon-loader.service.ts:15](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/icon/src/lib/icon-loader.service.ts#L15)
5
+ Defined in: [icon-loader.service.ts:15](https://gitlab.com/rxap/packages/-/blob/73459044d95e79d1cc84f9d21f658812d63c3185/packages/angular/icon/src/lib/icon-loader.service.ts#L15)
6
6
 
7
7
  ## Deprecated
8
8
 
@@ -24,7 +24,7 @@ use the ProvideIconAssetPath function in the app.config.ts file
24
24
 
25
25
  > **load**(): `void`
26
26
 
27
- Defined in: [icon-loader.service.ts:21](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/icon/src/lib/icon-loader.service.ts#L21)
27
+ Defined in: [icon-loader.service.ts:21](https://gitlab.com/rxap/packages/-/blob/73459044d95e79d1cc84f9d21f658812d63c3185/packages/angular/icon/src/lib/icon-loader.service.ts#L21)
28
28
 
29
29
  #### Returns
30
30
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **DefaultIconSvgFilePath**(): `string`
6
6
 
7
- Defined in: [tokens.ts:3](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/icon/src/lib/tokens.ts#L3)
7
+ Defined in: [tokens.ts:3](https://gitlab.com/rxap/packages/-/blob/73459044d95e79d1cc84f9d21f658812d63c3185/packages/angular/icon/src/lib/tokens.ts#L3)
8
8
 
9
9
  ## Returns
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **LoadIconSetsFactory**(`matIconRegistry`, `domSanitizer`, `pathList`): () => `void`
6
6
 
7
- Defined in: [provide-icon-asset-path.ts:7](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/icon/src/lib/provide-icon-asset-path.ts#L7)
7
+ Defined in: [provide-icon-asset-path.ts:7](https://gitlab.com/rxap/packages/-/blob/73459044d95e79d1cc84f9d21f658812d63c3185/packages/angular/icon/src/lib/provide-icon-asset-path.ts#L7)
8
8
 
9
9
  ## Parameters
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **ProvideIconAssetPath**(`pathList?`): `StaticProvider`
6
6
 
7
- Defined in: [provide-icon-asset-path.ts:26](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/icon/src/lib/provide-icon-asset-path.ts#L26)
7
+ Defined in: [provide-icon-asset-path.ts:26](https://gitlab.com/rxap/packages/-/blob/73459044d95e79d1cc84f9d21f658812d63c3185/packages/angular/icon/src/lib/provide-icon-asset-path.ts#L26)
8
8
 
9
9
  ## Parameters
10
10
 
package/docs/wiki/Home.md CHANGED
@@ -15,15 +15,17 @@ This package provides an Angular module to load SVG icons from specified asset p
15
15
 
16
16
  **Add the package to your workspace:**
17
17
  ```bash
18
- yarn add @rxap/icon
18
+ npm install @rxap/icon
19
19
  ```
20
+ With pnpm or yarn use `pnpm add` or `yarn add` instead of `npm install`.
21
+
20
22
  **Install peer dependencies:**
21
23
  ```bash
22
- yarn add @angular/common @angular/core @angular/material @angular/platform-browser @rxap/utilities
24
+ npm install @angular/core @angular/material @angular/platform-browser @rxap/utilities
23
25
  ```
24
26
  **Execute the init generator:**
25
27
  ```bash
26
- yarn nx g @rxap/icon:init
28
+ nx g @rxap/icon:init
27
29
  ```
28
30
  # Generators
29
31
 
@@ -4,4 +4,4 @@
4
4
 
5
5
  > `const` **RXAP\_ICON\_ASSET\_PATH**: `InjectionToken`\<`string`\>
6
6
 
7
- Defined in: [tokens.ts:7](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/icon/src/lib/tokens.ts#L7)
7
+ Defined in: [tokens.ts:7](https://gitlab.com/rxap/packages/-/blob/73459044d95e79d1cc84f9d21f658812d63c3185/packages/angular/icon/src/lib/tokens.ts#L7)
@@ -1,4 +1,4 @@
1
- # @rxap/icon v22.0.0-dev.1
1
+ # @rxap/icon v22.0.0-dev.2
2
2
 
3
3
  ## Classes
4
4
 
@@ -0,0 +1,16 @@
1
+ {
2
+ "generators": {
3
+ "init": {
4
+ "factory": "./src/generators/init/generator",
5
+ "schema": "./src/generators/init/schema.json",
6
+ "description": "Initialize the package in the workspace"
7
+ }
8
+ },
9
+ "schematics": {
10
+ "init": {
11
+ "factory": "./src/generators/init/index",
12
+ "schema": "./src/generators/init/schema.json",
13
+ "description": "Initialize the package in the workspace"
14
+ }
15
+ }
16
+ }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "22.0.0-dev.1",
2
+ "version": "22.0.0-dev.2",
3
3
  "name": "@rxap/icon",
4
4
  "description": "This package provides an Angular module to load SVG icons from specified asset paths using the Angular Material Icon Registry. It simplifies the process of registering and using custom icons in Angular applications. The module allows configuring the icon asset paths and automatically loads the icon sets during initialization.\n",
5
5
  "license": "GPL-3.0-or-later",
@@ -8,11 +8,10 @@
8
8
  "tslib": "2.9.1"
9
9
  },
10
10
  "peerDependencies": {
11
- "@angular/common": "^22.0.0",
12
11
  "@angular/core": "^22.0.0",
13
12
  "@angular/material": "^22.0.0",
14
13
  "@angular/platform-browser": "^22.0.0",
15
- "@rxap/utilities": "^16.5.3-dev.0"
14
+ "@rxap/utilities": "^16.5.3-dev.1"
16
15
  },
17
16
  "author": {
18
17
  "name": "Merzough Münker",
@@ -43,6 +42,10 @@
43
42
  "package": "@angular/common",
44
43
  "version": "22.3.0"
45
44
  },
45
+ {
46
+ "package": "@angular/compiler",
47
+ "version": "22.3.0"
48
+ },
46
49
  {
47
50
  "package": "@angular/core",
48
51
  "version": "22.3.0"
@@ -61,13 +64,12 @@
61
64
  },
62
65
  {
63
66
  "package": "@rxap/utilities",
64
- "version": "16.5.3-dev.0"
67
+ "version": "16.5.3-dev.1"
65
68
  }
66
69
  ]
67
70
  },
68
71
  "publishConfig": {
69
- "access": "public",
70
- "directory": "../../../dist/packages/angular/icon"
72
+ "access": "public"
71
73
  },
72
74
  "repository": {
73
75
  "type": "git",
@@ -85,8 +87,7 @@
85
87
  ".": {
86
88
  "types": "./types/rxap-icon.d.ts",
87
89
  "default": "./fesm2022/rxap-icon.mjs"
88
- },
89
- "./theme": "./theme.css"
90
+ }
90
91
  },
91
92
  "type": "module"
92
- }
93
+ }
@@ -0,0 +1,120 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.initGenerator = initGenerator;
4
+ const devkit_1 = require("@nx/devkit");
5
+ const fs_1 = require("fs");
6
+ const path_1 = require("path");
7
+ /**
8
+ * Resolves the directory of a package installed in the workspace. The lookup starts at the
9
+ * workspace root, not at this package: with an isolated node_modules layout (pnpm) or Yarn PnP
10
+ * the peer is not resolvable from here. The plain node_modules path is the fallback for packages
11
+ * whose `exports` map hides their package.json.
12
+ */
13
+ function resolvePackageDir(root, packageName) {
14
+ try {
15
+ return (0, path_1.dirname)(require.resolve(`${packageName}/package.json`, { paths: [root] }));
16
+ }
17
+ catch {
18
+ return (0, path_1.join)(root, 'node_modules', ...packageName.split('/'));
19
+ }
20
+ }
21
+ async function initGenerator(tree, options) {
22
+ // The package's own package.json lives on disk next to the compiled generator
23
+ // (inside node_modules when installed), which the virtual Tree does not track.
24
+ // Read it directly from the physical filesystem.
25
+ const packageJsonFilePath = (0, path_1.join)(__dirname, '..', '..', '..', 'package.json');
26
+ if (!(0, fs_1.existsSync)(packageJsonFilePath)) {
27
+ console.error('package.json not found in: ' + packageJsonFilePath);
28
+ return;
29
+ }
30
+ const { peerDependencies, name: packageName } = JSON.parse((0, fs_1.readFileSync)(packageJsonFilePath, 'utf-8'));
31
+ console.log(`Coerce peer dependencies for package: ${packageName}`);
32
+ if (!peerDependencies || !Object.keys(peerDependencies).length) {
33
+ console.log('No peer dependencies found');
34
+ return;
35
+ }
36
+ console.log(`Peer dependencies: ${Object.keys(peerDependencies).join(', ')}`);
37
+ const rootPackageJson = JSON.parse(tree.read('package.json', 'utf-8'));
38
+ let isDevDependency = !!rootPackageJson.devDependencies?.[packageName];
39
+ if (isDevDependency &&
40
+ [/^@rxap\/ngx/, /^@rxap\/nest/].some((rx) => rx.test(packageName))) {
41
+ rootPackageJson.dependencies ??= {};
42
+ rootPackageJson.dependencies[packageName] =
43
+ rootPackageJson.devDependencies[packageName];
44
+ delete rootPackageJson.devDependencies[packageName];
45
+ isDevDependency = false;
46
+ tree.write('package.json', JSON.stringify(rootPackageJson, null, 2));
47
+ }
48
+ if (!isDevDependency &&
49
+ [
50
+ /^@rxap\/plugin/,
51
+ /^@rxap\/workspace/,
52
+ /@rxap\/schematic/,
53
+ ].some((rx) => rx.test(packageName))) {
54
+ rootPackageJson.devDependencies ??= {};
55
+ rootPackageJson.devDependencies[packageName] =
56
+ rootPackageJson.dependencies[packageName];
57
+ delete rootPackageJson.dependencies[packageName];
58
+ isDevDependency = true;
59
+ tree.write('package.json', JSON.stringify(rootPackageJson, null, 2));
60
+ }
61
+ const missingPeerDependencies = Object.entries(peerDependencies)
62
+ .filter(([dep]) => !rootPackageJson.dependencies?.[dep] &&
63
+ !rootPackageJson.devDependencies?.[dep])
64
+ .reduce((acc, [dep, version]) => ({ ...acc, [dep]: version }), {});
65
+ if (!Object.keys(missingPeerDependencies).length) {
66
+ console.log('No missing peer dependencies');
67
+ return;
68
+ }
69
+ if (isDevDependency) {
70
+ (0, devkit_1.addDependenciesToPackageJson)(tree, {}, missingPeerDependencies);
71
+ }
72
+ else {
73
+ (0, devkit_1.addDependenciesToPackageJson)(tree, missingPeerDependencies, {});
74
+ }
75
+ await (0, devkit_1.formatFiles)(tree);
76
+ (0, devkit_1.installPackagesTask)(tree);
77
+ for (const peer of Object.keys(missingPeerDependencies)) {
78
+ console.log(`Peer dependency ${peer} added to package.json`);
79
+ // node_modules is physical and excluded from the virtual Tree, so read the
80
+ // peer files from disk.
81
+ const peerPackageDir = resolvePackageDir(tree.root, peer);
82
+ const peerPackageJsonFilePath = (0, path_1.join)(peerPackageDir, 'package.json');
83
+ if (!(0, fs_1.existsSync)(peerPackageJsonFilePath)) {
84
+ console.log(`Peer dependency ${peer} has no package.json`);
85
+ continue;
86
+ }
87
+ const { generators, schematics } = JSON.parse((0, fs_1.readFileSync)(peerPackageJsonFilePath, 'utf-8'));
88
+ if (!generators && !schematics) {
89
+ console.log(`Peer dependency ${peer} has no generators or schematics`);
90
+ continue;
91
+ }
92
+ const configFile = generators || schematics;
93
+ const configFilePath = (0, path_1.join)(peerPackageDir, configFile);
94
+ if (!(0, fs_1.existsSync)(configFilePath)) {
95
+ console.log(`Peer dependency ${peer} has no generators or schematics file`);
96
+ continue;
97
+ }
98
+ const config = JSON.parse((0, fs_1.readFileSync)(configFilePath, 'utf-8'));
99
+ if (!config.generators?.init) {
100
+ console.log(`Peer dependency ${peer} has no init generator`);
101
+ continue;
102
+ }
103
+ const initGeneratorFilePath = config.generators.init.factory;
104
+ const fullInitGeneratorFilePath = (0, path_1.join)(peerPackageDir, initGeneratorFilePath) + '.js';
105
+ if (!(0, fs_1.existsSync)(fullInitGeneratorFilePath)) {
106
+ console.log(`Peer dependency ${peer} has no init generator file: ` +
107
+ fullInitGeneratorFilePath);
108
+ continue;
109
+ }
110
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
111
+ const initGenerator = require((0, path_1.join)(peerPackageDir, initGeneratorFilePath))?.default;
112
+ if (typeof initGenerator !== 'function') {
113
+ console.log(`Peer dependency ${peer} has no init generator function`);
114
+ continue;
115
+ }
116
+ console.log(`Run init generator for peer dependency ${peer}`);
117
+ await initGenerator(tree, options);
118
+ }
119
+ }
120
+ exports.default = initGenerator;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const devkit_1 = require("@nx/devkit");
4
+ const generator_1 = require("./generator");
5
+ const schematic = (0, devkit_1.convertNxGenerator)(generator_1.default);
6
+ exports.default = schematic;
@@ -0,0 +1,8 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "Init",
4
+ "title": "",
5
+ "type": "object",
6
+ "properties": {},
7
+ "required": []
8
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "commonjs"
3
+ }