@adins/ucviewgeneric 1.0.2 → 2.0.0

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/README.md CHANGED
@@ -4,22 +4,56 @@ This library was generated with [Angular CLI](https://github.com/angular/angular
4
4
 
5
5
  ## Version
6
6
 
7
+ Version 2.0.0
8
+ 1. Update ReadMe
9
+
10
+ Version 1.0.3
11
+ 1. Update ReadMe
12
+
7
13
  Version 1.0.2
8
14
  1. fix subsection not working
9
15
 
10
16
  Version 1.0.1
11
17
  1. Added ReadMe
12
18
 
19
+ ## Dependency Module
20
+ import this module :
21
+ - RouterModule
22
+ - UcSubsectionModule ` npm i @adins/uc-subsection `
23
+
13
24
  ## Input
14
- 1. title : string : mandatory
15
- used to set subsection title
16
- 2. panel : string : mandatory
17
- used to set panel hide or unhide
18
- 3. id : string : mandatory
19
- used to set id hide or unhide
25
+ 1. viewInput : view.json
20
26
 
21
27
  ## Output
22
28
 
29
+ ## JSON property
30
+ view.json :
31
+ ``` javascript
32
+ {
33
+ "title": "title", // title view paging
34
+ "subSectionId": "id", // uniqueId
35
+ "subSectionTitle": "Main Information", // sub-section title
36
+ "mainInfoUrl": "", // full path API get data
37
+ "mainInfo": [ // view information list
38
+ {
39
+ "type": "link", // text with link button
40
+ "label": "View Name", // label information name
41
+ "property": "viewName", // property to view
42
+ "path": "/test/paging", // router path
43
+ "param": [ // passing optional parameters
44
+ {
45
+ "property": "vendorId", // property to pass
46
+ }
47
+ ]
48
+ },
49
+ {
50
+ "type": "text", // text only
51
+ "label": "View Code",
52
+ "property": "viewCode"
53
+ }
54
+ ]
55
+ }
56
+ ```
23
57
 
24
58
  ## Code scaffolding
25
59
 
@@ -1,5 +1,5 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
- import { Injectable, Component, Input, NgModule, defineInjectable } from '@angular/core';
2
+ import { Injectable, NgModule, Component, Input, defineInjectable } from '@angular/core';
3
3
  import { CommonModule } from '@angular/common';
4
4
  import { ActivatedRoute, RouterModule } from '@angular/router';
5
5
  import { UcSubsectionModule } from '@adins/uc-subsection';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adins/ucviewgeneric",
3
- "version": "1.0.2",
3
+ "version": "2.0.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^7.2.0",
6
6
  "@angular/core": "^7.2.0"