@rxap/schematic-angular 16.0.1-dev.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/CHANGELOG.md +8 -0
- package/GETSTARTED.md +0 -0
- package/GUIDES.md +0 -0
- package/README.md +21 -0
- package/collection.json +109 -0
- package/package.json +70 -0
- package/src/index.d.ts +0 -0
- package/src/index.js +2 -0
- package/src/index.js.map +1 -0
- package/src/lib/accordion-item.d.ts +10 -0
- package/src/lib/accordion-item.js +36 -0
- package/src/lib/accordion-item.js.map +1 -0
- package/src/lib/accordion-itme-types.d.ts +7 -0
- package/src/lib/accordion-itme-types.js +15 -0
- package/src/lib/accordion-itme-types.js.map +1 -0
- package/src/lib/angular-options.d.ts +20 -0
- package/src/lib/angular-options.js +57 -0
- package/src/lib/angular-options.js.map +1 -0
- package/src/lib/assert-table-component-exists.d.ts +8 -0
- package/src/lib/assert-table-component-exists.js +18 -0
- package/src/lib/assert-table-component-exists.js.map +1 -0
- package/src/lib/backend-types.d.ts +5 -0
- package/src/lib/backend-types.js +10 -0
- package/src/lib/backend-types.js.map +1 -0
- package/src/lib/data-grid-item.d.ts +9 -0
- package/src/lib/data-grid-item.js +31 -0
- package/src/lib/data-grid-item.js.map +1 -0
- package/src/lib/data-grid-options.d.ts +18 -0
- package/src/lib/data-grid-options.js +25 -0
- package/src/lib/data-grid-options.js.map +1 -0
- package/src/lib/dialog-action.d.ts +9 -0
- package/src/lib/dialog-action.js +33 -0
- package/src/lib/dialog-action.js.map +1 -0
- package/src/lib/existing-method.d.ts +5 -0
- package/src/lib/existing-method.js +11 -0
- package/src/lib/existing-method.js.map +1 -0
- package/src/lib/form-component-control.d.ts +13 -0
- package/src/lib/form-component-control.js +46 -0
- package/src/lib/form-component-control.js.map +1 -0
- package/src/lib/form-definition-control.d.ts +15 -0
- package/src/lib/form-definition-control.js +59 -0
- package/src/lib/form-definition-control.js.map +1 -0
- package/src/lib/minimum-table-component-options.d.ts +17 -0
- package/src/lib/minimum-table-component-options.js +343 -0
- package/src/lib/minimum-table-component-options.js.map +1 -0
- package/src/lib/minimum-table-options.d.ts +18 -0
- package/src/lib/minimum-table-options.js +27 -0
- package/src/lib/minimum-table-options.js.map +1 -0
- package/src/lib/table-action.d.ts +11 -0
- package/src/lib/table-action.js +93 -0
- package/src/lib/table-action.js.map +1 -0
- package/src/lib/table-column.d.ts +18 -0
- package/src/lib/table-column.js +73 -0
- package/src/lib/table-column.js.map +1 -0
- package/src/lib/table-header-button.d.ts +9 -0
- package/src/lib/table-header-button.js +58 -0
- package/src/lib/table-header-button.js.map +1 -0
- package/src/lib/table-options.d.ts +15 -0
- package/src/lib/table-options.js +16 -0
- package/src/lib/table-options.js.map +1 -0
- package/src/lib/table-row-action.d.ts +14 -0
- package/src/lib/table-row-action.js +21 -0
- package/src/lib/table-row-action.js.map +1 -0
- package/src/lib/to-title.d.ts +1 -0
- package/src/lib/to-title.js +12 -0
- package/src/lib/to-title.js.map +1 -0
- package/src/lib/tree-table-options.d.ts +15 -0
- package/src/lib/tree-table-options.js +15 -0
- package/src/lib/tree-table-options.js.map +1 -0
- package/src/schematics/accordion/accordion-component/files/component/__componentName__.component.html.template +30 -0
- package/src/schematics/accordion/accordion-component/files/component/__componentName__.component.ts.template +54 -0
- package/src/schematics/accordion/accordion-component/files/header-component/accordion-header.component.html.template +5 -0
- package/src/schematics/accordion/accordion-component/files/header-component/accordion-header.component.ts.template +14 -0
- package/src/schematics/accordion/accordion-component/index.d.ts +8 -0
- package/src/schematics/accordion/accordion-component/index.js +350 -0
- package/src/schematics/accordion/accordion-component/index.js.map +1 -0
- package/src/schematics/accordion/accordion-component/schema.d.ts +7 -0
- package/src/schematics/accordion/accordion-component/schema.json +90 -0
- package/src/schematics/accordion/accordion-item-component/files/component/__componentName__.component.html.template +7 -0
- package/src/schematics/accordion/accordion-item-component/files/component/__componentName__.component.ts.template +32 -0
- package/src/schematics/accordion/accordion-item-component/index.d.ts +21 -0
- package/src/schematics/accordion/accordion-item-component/index.js +319 -0
- package/src/schematics/accordion/accordion-item-component/index.js.map +1 -0
- package/src/schematics/accordion/accordion-item-component/schema.d.ts +9 -0
- package/src/schematics/accordion/accordion-item-component/schema.json +73 -0
- package/src/schematics/accordion/item/accordion-item-data-grid-component/files/data-grid/__componentName__.component.html.template +1 -0
- package/src/schematics/accordion/item/accordion-item-data-grid-component/files/data-grid/__componentName__.component.ts.template +14 -0
- package/src/schematics/accordion/item/accordion-item-data-grid-component/files/data-grid-collection/__componentName__.component.html.template +10 -0
- package/src/schematics/accordion/item/accordion-item-data-grid-component/files/data-grid-collection/__componentName__.component.ts.template +32 -0
- package/src/schematics/accordion/item/accordion-item-data-grid-component/index.d.ts +10 -0
- package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js +211 -0
- package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js.map +1 -0
- package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.d.ts +7 -0
- package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.json +122 -0
- package/src/schematics/accordion/item/accordion-item-table-component/files/component/__componentName__.component.html.template +1 -0
- package/src/schematics/accordion/item/accordion-item-table-component/files/component/__componentName__.component.ts.template +35 -0
- package/src/schematics/accordion/item/accordion-item-table-component/index.d.ts +7 -0
- package/src/schematics/accordion/item/accordion-item-table-component/index.js +108 -0
- package/src/schematics/accordion/item/accordion-item-table-component/index.js.map +1 -0
- package/src/schematics/accordion/item/accordion-item-table-component/schema.d.ts +7 -0
- package/src/schematics/accordion/item/accordion-item-table-component/schema.json +248 -0
- package/src/schematics/accordion/item/accordion-item-tree-table-component/files/component/__componentName__.component.html.template +1 -0
- package/src/schematics/accordion/item/accordion-item-tree-table-component/files/component/__componentName__.component.ts.template +34 -0
- package/src/schematics/accordion/item/accordion-item-tree-table-component/index.d.ts +7 -0
- package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js +182 -0
- package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js.map +1 -0
- package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.d.ts +7 -0
- package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.json +257 -0
- package/src/schematics/data-grid-component/files/form/__componentName__.component.html.template +42 -0
- package/src/schematics/data-grid-component/files/form/__componentName__.component.ts.template +43 -0
- package/src/schematics/data-grid-component/files/plain/__componentName__.component.html.template +25 -0
- package/src/schematics/data-grid-component/files/plain/__componentName__.component.ts.template +36 -0
- package/src/schematics/data-grid-component/index.d.ts +16 -0
- package/src/schematics/data-grid-component/index.js +320 -0
- package/src/schematics/data-grid-component/index.js.map +1 -0
- package/src/schematics/data-grid-component/schema.d.ts +4 -0
- package/src/schematics/data-grid-component/schema.json +112 -0
- package/src/schematics/dialog-component/files/component/__componentName__.component.html.template +23 -0
- package/src/schematics/dialog-component/index.d.ts +2 -0
- package/src/schematics/dialog-component/index.js +43 -0
- package/src/schematics/dialog-component/index.js.map +1 -0
- package/src/schematics/dialog-component/schema.d.ts +9 -0
- package/src/schematics/dialog-component/schema.json +71 -0
- package/src/schematics/form/control/input-form-control/index.d.ts +7 -0
- package/src/schematics/form/control/input-form-control/index.js +40 -0
- package/src/schematics/form/control/input-form-control/index.js.map +1 -0
- package/src/schematics/form/control/input-form-control/schema.d.ts +5 -0
- package/src/schematics/form/control/input-form-control/schema.json +115 -0
- package/src/schematics/form/control/select-form-control/index.d.ts +6 -0
- package/src/schematics/form/control/select-form-control/index.js +124 -0
- package/src/schematics/form/control/select-form-control/index.js.map +1 -0
- package/src/schematics/form/control/select-form-control/schema.d.ts +6 -0
- package/src/schematics/form/control/select-form-control/schema.json +101 -0
- package/src/schematics/form/control/table-select-form-control/index.d.ts +12 -0
- package/src/schematics/form/control/table-select-form-control/index.js +183 -0
- package/src/schematics/form/control/table-select-form-control/index.js.map +1 -0
- package/src/schematics/form/control/table-select-form-control/schema.d.ts +7 -0
- package/src/schematics/form/control/table-select-form-control/schema.json +105 -0
- package/src/schematics/form/form-component/files/component/__componentName__.component.html.template +12 -0
- package/src/schematics/form/form-component/files/component/__componentName__.component.ts.template +52 -0
- package/src/schematics/form/form-component/files/window/open-__name__-form-window.method.ts.template +29 -0
- package/src/schematics/form/form-component/index.d.ts +16 -0
- package/src/schematics/form/form-component/index.js +149 -0
- package/src/schematics/form/form-component/index.js.map +1 -0
- package/src/schematics/form/form-component/schema.d.ts +8 -0
- package/src/schematics/form/form-component/schema.json +107 -0
- package/src/schematics/form/form-control/index.d.ts +9 -0
- package/src/schematics/form/form-control/index.js +54 -0
- package/src/schematics/form/form-control/index.js.map +1 -0
- package/src/schematics/form/form-control/schema.d.ts +6 -0
- package/src/schematics/form/form-control/schema.json +91 -0
- package/src/schematics/form/form-definition/index.d.ts +10 -0
- package/src/schematics/form/form-definition/index.js +43 -0
- package/src/schematics/form/form-definition/index.js.map +1 -0
- package/src/schematics/form/form-definition/schema.d.ts +6 -0
- package/src/schematics/form/form-definition/schema.json +97 -0
- package/src/schematics/table/action/dialog-table-action/index.d.ts +8 -0
- package/src/schematics/table/action/dialog-table-action/index.js +99 -0
- package/src/schematics/table/action/dialog-table-action/index.js.map +1 -0
- package/src/schematics/table/action/dialog-table-action/schema.d.ts +8 -0
- package/src/schematics/table/action/dialog-table-action/schema.json +133 -0
- package/src/schematics/table/action/form-table-action/index.d.ts +9 -0
- package/src/schematics/table/action/form-table-action/index.js +146 -0
- package/src/schematics/table/action/form-table-action/index.js.map +1 -0
- package/src/schematics/table/action/form-table-action/schema.d.ts +4 -0
- package/src/schematics/table/action/form-table-action/schema.json +94 -0
- package/src/schematics/table/action/navigation-table-action/index.d.ts +7 -0
- package/src/schematics/table/action/navigation-table-action/index.js +46 -0
- package/src/schematics/table/action/navigation-table-action/index.js.map +1 -0
- package/src/schematics/table/action/navigation-table-action/schema.d.ts +5 -0
- package/src/schematics/table/action/navigation-table-action/schema.json +85 -0
- package/src/schematics/table/action/operation-table-action/index.d.ts +11 -0
- package/src/schematics/table/action/operation-table-action/index.js +87 -0
- package/src/schematics/table/action/operation-table-action/index.js.map +1 -0
- package/src/schematics/table/action/operation-table-action/schema.d.ts +4 -0
- package/src/schematics/table/action/operation-table-action/schema.json +93 -0
- package/src/schematics/table/table-action/index.d.ts +7 -0
- package/src/schematics/table/table-action/index.js +46 -0
- package/src/schematics/table/table-action/index.js.map +1 -0
- package/src/schematics/table/table-action/schema.d.ts +7 -0
- package/src/schematics/table/table-action/schema.json +81 -0
- package/src/schematics/table/table-component/files/component/__componentName__.component.html.template +311 -0
- package/src/schematics/table/table-component/files/component/__componentName__.component.ts.template +100 -0
- package/src/schematics/table/table-component/index.d.ts +17 -0
- package/src/schematics/table/table-component/index.js +329 -0
- package/src/schematics/table/table-component/index.js.map +1 -0
- package/src/schematics/table/table-component/schema.d.ts +4 -0
- package/src/schematics/table/table-component/schema.json +230 -0
- package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.template +201 -0
- package/src/schematics/table/tree-table-component/files/component/__componentName__.component.ts.template +102 -0
- package/src/schematics/table/tree-table-component/index.d.ts +9 -0
- package/src/schematics/table/tree-table-component/index.js +314 -0
- package/src/schematics/table/tree-table-component/index.js.map +1 -0
- package/src/schematics/table/tree-table-component/schema.d.ts +4 -0
- package/src/schematics/table/tree-table-component/schema.json +239 -0
- package/src/schematics/tree-component/index.d.ts +10 -0
- package/src/schematics/tree-component/index.js +33 -0
- package/src/schematics/tree-component/index.js.map +1 -0
- package/src/schematics/tree-component/schema.d.ts +6 -0
- package/src/schematics/tree-component/schema.json +75 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
## 16.0.1-dev.0 (2023-08-01)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @rxap/schematic-angular
|
package/GETSTARTED.md
ADDED
|
File without changes
|
package/GUIDES.md
ADDED
|
File without changes
|
package/README.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# @rxap/schematic-angular
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@rxap/schematic-angular)
|
|
4
|
+
[](https://commitizen.github.io/cz-cli/)
|
|
5
|
+
[](https://github.com/prettier/prettier)
|
|
6
|
+

|
|
7
|
+

|
|
8
|
+

|
|
9
|
+
|
|
10
|
+
- [Installation](#installation)
|
|
11
|
+
|
|
12
|
+
# Installation
|
|
13
|
+
|
|
14
|
+
**Add the package to your workspace:**
|
|
15
|
+
```bash
|
|
16
|
+
yarn add @rxap/schematic-angular
|
|
17
|
+
```
|
|
18
|
+
**Install peer dependencies:**
|
|
19
|
+
```bash
|
|
20
|
+
yarn add
|
|
21
|
+
```
|
package/collection.json
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schematics": {
|
|
3
|
+
"table-component": {
|
|
4
|
+
"factory": "./src/schematics/table/table-component/index",
|
|
5
|
+
"schema": "./src/schematics/table/table-component/schema.json",
|
|
6
|
+
"description": "Generates a table component."
|
|
7
|
+
},
|
|
8
|
+
"tree-table-component": {
|
|
9
|
+
"factory": "./src/schematics/table/tree-table-component/index",
|
|
10
|
+
"schema": "./src/schematics/table/tree-table-component/schema.json",
|
|
11
|
+
"description": "Generates a tree table component."
|
|
12
|
+
},
|
|
13
|
+
"form-component": {
|
|
14
|
+
"factory": "./src/schematics/form/form-component/index",
|
|
15
|
+
"schema": "./src/schematics/form/form-component/schema.json",
|
|
16
|
+
"description": "Generates a form component."
|
|
17
|
+
},
|
|
18
|
+
"form-definition": {
|
|
19
|
+
"factory": "./src/schematics/form/form-definition/index",
|
|
20
|
+
"schema": "./src/schematics/form/form-definition/schema.json",
|
|
21
|
+
"description": "Generates a form definition."
|
|
22
|
+
},
|
|
23
|
+
"table-action": {
|
|
24
|
+
"factory": "./src/schematics/table/table-action/index",
|
|
25
|
+
"schema": "./src/schematics/table/table-action/schema.json",
|
|
26
|
+
"description": "Generates a table action."
|
|
27
|
+
},
|
|
28
|
+
"accordion-component": {
|
|
29
|
+
"schema": "./src/schematics/accordion/accordion-component/schema.json",
|
|
30
|
+
"factory": "./src/schematics/accordion/accordion-component/index",
|
|
31
|
+
"description": "The accordion-component schematic"
|
|
32
|
+
},
|
|
33
|
+
"accordion-item-component": {
|
|
34
|
+
"schema": "./src/schematics/accordion/accordion-item-component/schema.json",
|
|
35
|
+
"factory": "./src/schematics/accordion/accordion-item-component/index",
|
|
36
|
+
"description": "The accordion-item-component schematic"
|
|
37
|
+
},
|
|
38
|
+
"accordion-item-table-component": {
|
|
39
|
+
"schema": "./src/schematics/accordion/item/accordion-item-table-component/schema.json",
|
|
40
|
+
"factory": "./src/schematics/accordion/item/accordion-item-table-component/index",
|
|
41
|
+
"description": "The accordion-item-table-component schematic"
|
|
42
|
+
},
|
|
43
|
+
"data-grid-component": {
|
|
44
|
+
"schema": "./src/schematics/data-grid-component/schema.json",
|
|
45
|
+
"factory": "./src/schematics/data-grid-component/index",
|
|
46
|
+
"description": "The data-grid-component schematic"
|
|
47
|
+
},
|
|
48
|
+
"dialog-component": {
|
|
49
|
+
"schema": "./src/schematics/dialog-component/schema.json",
|
|
50
|
+
"factory": "./src/schematics/dialog-component/index",
|
|
51
|
+
"description": "The dialog-component schematic"
|
|
52
|
+
},
|
|
53
|
+
"input-form-control": {
|
|
54
|
+
"schema": "./src/schematics/form/control/input-form-control/schema.json",
|
|
55
|
+
"factory": "./src/schematics/form/control/input-form-control/index",
|
|
56
|
+
"description": "The input-form-control schematic"
|
|
57
|
+
},
|
|
58
|
+
"select-form-control": {
|
|
59
|
+
"schema": "./src/schematics/form/control/select-form-control/schema.json",
|
|
60
|
+
"factory": "./src/schematics/form/control/select-form-control/index",
|
|
61
|
+
"description": "The select-form-control schematic"
|
|
62
|
+
},
|
|
63
|
+
"table-select-form-control": {
|
|
64
|
+
"schema": "./src/schematics/form/control/table-select-form-control/schema.json",
|
|
65
|
+
"factory": "./src/schematics/form/control/table-select-form-control/index",
|
|
66
|
+
"description": "The table-select-form-control schematic"
|
|
67
|
+
},
|
|
68
|
+
"form-control": {
|
|
69
|
+
"schema": "./src/schematics/form/form-control/schema.json",
|
|
70
|
+
"factory": "./src/schematics/form/form-control/index",
|
|
71
|
+
"description": "The form-control schematic"
|
|
72
|
+
},
|
|
73
|
+
"dialog-table-action": {
|
|
74
|
+
"schema": "./src/schematics/table/action/dialog-table-action/schema.json",
|
|
75
|
+
"factory": "./src/schematics/table/action/dialog-table-action/index",
|
|
76
|
+
"description": "The dialog-table-action schematic"
|
|
77
|
+
},
|
|
78
|
+
"form-table-action": {
|
|
79
|
+
"schema": "./src/schematics/table/action/form-table-action/schema.json",
|
|
80
|
+
"factory": "./src/schematics/table/action/form-table-action/index",
|
|
81
|
+
"description": "The form-table-action schematic"
|
|
82
|
+
},
|
|
83
|
+
"navigation-table-action": {
|
|
84
|
+
"schema": "./src/schematics/table/action/navigation-table-action/schema.json",
|
|
85
|
+
"factory": "./src/schematics/table/action/navigation-table-action/index",
|
|
86
|
+
"description": "The navigation-table-action schematic"
|
|
87
|
+
},
|
|
88
|
+
"operation-table-action": {
|
|
89
|
+
"schema": "./src/schematics/table/action/operation-table-action/schema.json",
|
|
90
|
+
"factory": "./src/schematics/table/action/operation-table-action/index",
|
|
91
|
+
"description": "The operation-table-action schematic"
|
|
92
|
+
},
|
|
93
|
+
"tree-component": {
|
|
94
|
+
"schema": "./src/schematics/tree-component/schema.json",
|
|
95
|
+
"factory": "./src/schematics/tree-component/index",
|
|
96
|
+
"description": "The tree-component schematic"
|
|
97
|
+
},
|
|
98
|
+
"accordion-item-data-grid-component": {
|
|
99
|
+
"schema": "./src/schematics/accordion/item/accordion-item-data-grid-component/schema.json",
|
|
100
|
+
"factory": "./src/schematics/accordion/item/accordion-item-data-grid-component/index",
|
|
101
|
+
"description": "The accordion-item-data-grid-component schematic"
|
|
102
|
+
},
|
|
103
|
+
"accordion-item-tree-table-component": {
|
|
104
|
+
"schema": "./src/schematics/accordion/item/accordion-item-tree-table-component/schema.json",
|
|
105
|
+
"factory": "./src/schematics/accordion/item/accordion-item-tree-table-component/index",
|
|
106
|
+
"description": "The accordion-item-tree-table-component schematic"
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@rxap/schematic-angular",
|
|
3
|
+
"version": "16.0.1-dev.0",
|
|
4
|
+
"type": "commonjs",
|
|
5
|
+
"schematics": "./collection.json",
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"access": "public",
|
|
8
|
+
"directory": "../../../dist/packages/schematic/angular"
|
|
9
|
+
},
|
|
10
|
+
"keywords": [
|
|
11
|
+
"rxap",
|
|
12
|
+
"packages",
|
|
13
|
+
"schematic",
|
|
14
|
+
"angular"
|
|
15
|
+
],
|
|
16
|
+
"homepage": "https:/gitlab.com/rxap/packages/packages/schematic/angular",
|
|
17
|
+
"bugs": {
|
|
18
|
+
"url": "https://gitlab.com/rxap/packages/-/issues",
|
|
19
|
+
"email": "incoming+rxap-packages-14898188-issue-@incoming.gitlab.com"
|
|
20
|
+
},
|
|
21
|
+
"license": "GPL-3.0-or-later",
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "https://gitlab.com/rxap/packages.git",
|
|
25
|
+
"directory": "packages/schematic/angular"
|
|
26
|
+
},
|
|
27
|
+
"author": {
|
|
28
|
+
"name": "Merzough Münker",
|
|
29
|
+
"email": "mmuenker@digitaix.com"
|
|
30
|
+
},
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"ignore": "^5.2.4",
|
|
33
|
+
"semver": "^7.3.5",
|
|
34
|
+
"tslib": "2.6.1"
|
|
35
|
+
},
|
|
36
|
+
"peerDependencies": {
|
|
37
|
+
"@angular-devkit/core": "^16.1.4",
|
|
38
|
+
"@angular-devkit/schematics": "^16.1.4",
|
|
39
|
+
"@rxap/schematics-ts-morph": "^16.0.0-dev.5",
|
|
40
|
+
"@rxap/schematics-utilities": "^16.0.0-dev.6",
|
|
41
|
+
"@rxap/utilities": "^16.0.0-dev.4",
|
|
42
|
+
"@rxap/workspace-utilities": "^0.1.0-dev.0",
|
|
43
|
+
"ts-morph": "^18.0.0",
|
|
44
|
+
"@rxap/node-utilities": "1.0.1-dev.2",
|
|
45
|
+
"@rxap/workspace-ts-morph": "0.0.2-dev.0"
|
|
46
|
+
},
|
|
47
|
+
"nx-migrations": {
|
|
48
|
+
"packageGroup": [
|
|
49
|
+
{
|
|
50
|
+
"package": "@rxap/schematics-ts-morph",
|
|
51
|
+
"version": "16.0.0-dev.5"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"package": "@rxap/schematics-utilities",
|
|
55
|
+
"version": "16.0.0-dev.6"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"package": "@rxap/utilities",
|
|
59
|
+
"version": "16.0.0-dev.4"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"package": "@rxap/workspace-utilities",
|
|
63
|
+
"version": "0.1.0-dev.0"
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
"gitHead": "ed3a0788894aa734ec2a8e9e957cf73cabe033d6",
|
|
68
|
+
"main": "./src/index.js",
|
|
69
|
+
"types": "./src/index.d.ts"
|
|
70
|
+
}
|
package/src/index.d.ts
ADDED
|
File without changes
|
package/src/index.js
ADDED
package/src/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/schematic/angular/src/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AccordionItemTypes } from './accordion-itme-types';
|
|
2
|
+
import { NonNullableSelected, Normalized } from '@rxap/utilities';
|
|
3
|
+
export interface AccordionItem {
|
|
4
|
+
name: string;
|
|
5
|
+
type: AccordionItemTypes;
|
|
6
|
+
modifiers: string[];
|
|
7
|
+
}
|
|
8
|
+
export type NormalizedAccordionItem = Readonly<NonNullableSelected<Normalized<AccordionItem>, 'type'>>;
|
|
9
|
+
export declare function NormalizeAccordionItem(item: string | AccordionItem): NormalizedAccordionItem;
|
|
10
|
+
export declare function NormalizeAccordionItemList(itemList?: Array<string | AccordionItem>): NormalizedAccordionItem[];
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NormalizeAccordionItemList = exports.NormalizeAccordionItem = void 0;
|
|
4
|
+
const accordion_itme_types_1 = require("./accordion-itme-types");
|
|
5
|
+
const utilities_1 = require("@rxap/utilities");
|
|
6
|
+
const schematics_1 = require("@angular-devkit/schematics");
|
|
7
|
+
function NormalizeAccordionItem(item) {
|
|
8
|
+
var _a, _b, _c;
|
|
9
|
+
let name;
|
|
10
|
+
let type = 'panel';
|
|
11
|
+
let modifiers = [];
|
|
12
|
+
let additional = {};
|
|
13
|
+
if (typeof item === 'string') {
|
|
14
|
+
const fragments = item.split(':');
|
|
15
|
+
name = fragments[0];
|
|
16
|
+
type = (_a = fragments[1]) !== null && _a !== void 0 ? _a : type;
|
|
17
|
+
modifiers = fragments[2] ? fragments[2].split(/,(?![^(]*\))/g) : modifiers;
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
name = item.name;
|
|
21
|
+
type = (_b = item.type) !== null && _b !== void 0 ? _b : type;
|
|
22
|
+
modifiers = (_c = item.modifiers) !== null && _c !== void 0 ? _c : modifiers;
|
|
23
|
+
additional = item;
|
|
24
|
+
}
|
|
25
|
+
if (!(0, accordion_itme_types_1.IsAccordionItemType)(type)) {
|
|
26
|
+
throw new schematics_1.SchematicsException(`The item type '${type}' for item '${name}' is not supported`);
|
|
27
|
+
}
|
|
28
|
+
return Object.seal(Object.assign(Object.assign({}, additional), { name: (0, utilities_1.dasherize)(name), type,
|
|
29
|
+
modifiers }));
|
|
30
|
+
}
|
|
31
|
+
exports.NormalizeAccordionItem = NormalizeAccordionItem;
|
|
32
|
+
function NormalizeAccordionItemList(itemList) {
|
|
33
|
+
return Object.seal((itemList !== null && itemList !== void 0 ? itemList : []).map(NormalizeAccordionItem));
|
|
34
|
+
}
|
|
35
|
+
exports.NormalizeAccordionItemList = NormalizeAccordionItemList;
|
|
36
|
+
//# sourceMappingURL=accordion-item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion-item.js","sourceRoot":"","sources":["../../../../../../packages/schematic/angular/src/lib/accordion-item.ts"],"names":[],"mappings":";;;AAAA,iEAGgC;AAChC,+CAIyB;AACzB,2DAAiE;AAUjE,SAAgB,sBAAsB,CAAC,IAA4B;;IACjE,IAAI,IAAY,CAAC;IACjB,IAAI,IAAI,GAAG,OAAO,CAAC;IACnB,IAAI,SAAS,GAAa,EAAE,CAAC;IAC7B,IAAI,UAAU,GAAwB,EAAE,CAAC;IACzC,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;QAC5B,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAClC,IAAI,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;QACpB,IAAI,GAAG,MAAA,SAAS,CAAC,CAAC,CAAC,mCAAI,IAAI,CAAC;QAC5B,SAAS,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;KAC5E;SAAM;QACL,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACjB,IAAI,GAAG,MAAA,IAAI,CAAC,IAAI,mCAAI,IAAI,CAAC;QACzB,SAAS,GAAG,MAAA,IAAI,CAAC,SAAS,mCAAI,SAAS,CAAC;QACxC,UAAU,GAAG,IAAI,CAAC;KACnB;IACD,IAAI,CAAC,IAAA,0CAAmB,EAAC,IAAI,CAAC,EAAE;QAC9B,MAAM,IAAI,gCAAmB,CAC3B,kBAAmB,IAAK,eAAgB,IAAK,oBAAoB,CAClE,CAAC;KACH;IACD,OAAO,MAAM,CAAC,IAAI,iCACb,UAAU,KACb,IAAI,EAAE,IAAA,qBAAS,EAAC,IAAI,CAAC,EACrB,IAAI;QACJ,SAAS,IACT,CAAC;AACL,CAAC;AA3BD,wDA2BC;AAED,SAAgB,0BAA0B,CAAC,QAAwC;IACjF,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,EAAE,CAAC,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAC,CAAC;AACnE,CAAC;AAFD,gEAEC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IsAccordionItemType = exports.AccordionItemTypes = void 0;
|
|
4
|
+
var AccordionItemTypes;
|
|
5
|
+
(function (AccordionItemTypes) {
|
|
6
|
+
AccordionItemTypes["Panel"] = "panel";
|
|
7
|
+
AccordionItemTypes["Table"] = "table";
|
|
8
|
+
AccordionItemTypes["DataGrid"] = "data-grid";
|
|
9
|
+
AccordionItemTypes["TreeTable"] = "tree-table";
|
|
10
|
+
})(AccordionItemTypes || (exports.AccordionItemTypes = AccordionItemTypes = {}));
|
|
11
|
+
function IsAccordionItemType(type) {
|
|
12
|
+
return Object.values(AccordionItemTypes).includes(type);
|
|
13
|
+
}
|
|
14
|
+
exports.IsAccordionItemType = IsAccordionItemType;
|
|
15
|
+
//# sourceMappingURL=accordion-itme-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion-itme-types.js","sourceRoot":"","sources":["../../../../../../packages/schematic/angular/src/lib/accordion-itme-types.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,qCAAe,CAAA;IACf,qCAAe,CAAA;IACf,4CAAsB,CAAA;IACtB,8CAAwB,CAAA;AAC1B,CAAC,EALW,kBAAkB,kCAAlB,kBAAkB,QAK7B;AAED,SAAgB,mBAAmB,CAAC,IAAY;IAC9C,OAAQ,MAAM,CAAC,MAAM,CAAC,kBAAkB,CAAc,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AACxE,CAAC;AAFD,kDAEC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { GlobalOptions } from '@rxap/schematics-utilities';
|
|
2
|
+
import { NonNullableSelected, Normalized } from '@rxap/utilities';
|
|
3
|
+
import { BackendTypes } from './backend-types';
|
|
4
|
+
export interface AngularOptions extends GlobalOptions {
|
|
5
|
+
componentName?: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
context?: string;
|
|
8
|
+
nestModule?: string;
|
|
9
|
+
controllerName?: string;
|
|
10
|
+
backend?: BackendTypes;
|
|
11
|
+
directory?: string;
|
|
12
|
+
shared?: boolean;
|
|
13
|
+
scope?: string;
|
|
14
|
+
prefix?: string;
|
|
15
|
+
}
|
|
16
|
+
export type NormalizedAngularOptions = Readonly<NonNullableSelected<Normalized<AngularOptions>, 'backend' | 'scope'>>;
|
|
17
|
+
export declare function NormalizeAngularOptions(options: AngularOptions): NormalizedAngularOptions;
|
|
18
|
+
export type NormalizedAngularOptionsWithName = NonNullableSelected<NormalizedAngularOptions, 'name'>;
|
|
19
|
+
export declare function AssertAngularOptionsNameProperty(options: NormalizedAngularOptions): asserts options is NormalizedAngularOptionsWithName;
|
|
20
|
+
export declare function PrintAngularOptions(schematicName: string, options: NormalizedAngularOptions): void;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PrintAngularOptions = exports.AssertAngularOptionsNameProperty = exports.NormalizeAngularOptions = void 0;
|
|
4
|
+
const schematics_utilities_1 = require("@rxap/schematics-utilities");
|
|
5
|
+
const utilities_1 = require("@rxap/utilities");
|
|
6
|
+
const workspace_utilities_1 = require("@rxap/workspace-utilities");
|
|
7
|
+
const backend_types_1 = require("./backend-types");
|
|
8
|
+
function NormalizeAngularOptions(options) {
|
|
9
|
+
var _a, _b, _c, _d, _e, _f;
|
|
10
|
+
let shared = (_a = options.shared) !== null && _a !== void 0 ? _a : false;
|
|
11
|
+
const project = (0, utilities_1.dasherize)((_b = options.project) !== null && _b !== void 0 ? _b : 'shared');
|
|
12
|
+
if (project === 'shared') {
|
|
13
|
+
shared = true;
|
|
14
|
+
}
|
|
15
|
+
const normalizedOptions = (0, schematics_utilities_1.NormalizeGlobalOptions)(Object.assign(Object.assign({}, options), { project }));
|
|
16
|
+
return Object.seal(Object.assign(Object.assign({}, normalizedOptions), { componentName: options.componentName ? (0, utilities_1.dasherize)(options.componentName) : null, name: options.name ? (0, utilities_1.dasherize)(options.name) : null, context: options.context ? (0, utilities_1.dasherize)(options.context) : null, nestModule: options.nestModule ? (0, utilities_1.dasherize)(options.nestModule) : null, controllerName: options.controllerName ? (0, utilities_1.dasherize)(options.controllerName) : null, backend: (_c = options.backend) !== null && _c !== void 0 ? _c : backend_types_1.BackendTypes.NONE, directory: (_d = options.directory) !== null && _d !== void 0 ? _d : null, shared, prefix: (_e = options.prefix) !== null && _e !== void 0 ? _e : null, scope: (_f = options.scope) !== null && _f !== void 0 ? _f : (0, workspace_utilities_1.GetWorkspaceScope)() }));
|
|
17
|
+
}
|
|
18
|
+
exports.NormalizeAngularOptions = NormalizeAngularOptions;
|
|
19
|
+
function AssertAngularOptionsNameProperty(options) {
|
|
20
|
+
if (!options.name) {
|
|
21
|
+
throw new Error('The name option is required');
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.AssertAngularOptionsNameProperty = AssertAngularOptionsNameProperty;
|
|
25
|
+
function PrintAngularOptions(schematicName, options) {
|
|
26
|
+
console.log(JSON.stringify(options));
|
|
27
|
+
(0, schematics_utilities_1.PrintGeneralOptions)(schematicName, options);
|
|
28
|
+
const { name, context, nestModule, controllerName, backend, directory, componentName, } = options;
|
|
29
|
+
if (name) {
|
|
30
|
+
console.log(`\x1b[33m===== Name: ${name}\x1b[0m`);
|
|
31
|
+
}
|
|
32
|
+
if (componentName) {
|
|
33
|
+
console.log(`\x1b[33m===== Component Name: ${componentName}\x1b[0m`);
|
|
34
|
+
}
|
|
35
|
+
if (directory) {
|
|
36
|
+
console.log(`\x1b[90m===== Directory: ${directory}\x1b[0m`);
|
|
37
|
+
}
|
|
38
|
+
if (context) {
|
|
39
|
+
console.log(`\x1b[34m===== Context: ${context}\x1b[0m`);
|
|
40
|
+
}
|
|
41
|
+
switch (backend) {
|
|
42
|
+
case backend_types_1.BackendTypes.NESTJS:
|
|
43
|
+
if (nestModule) {
|
|
44
|
+
console.log(`\x1b[36m===== Nest Module: ${nestModule}\x1b[0m`);
|
|
45
|
+
}
|
|
46
|
+
if (controllerName) {
|
|
47
|
+
console.log(`\x1b[36m===== Controller Name: ${controllerName}\x1b[0m`);
|
|
48
|
+
}
|
|
49
|
+
break;
|
|
50
|
+
case backend_types_1.BackendTypes.NONE:
|
|
51
|
+
default:
|
|
52
|
+
console.log(`\x1b[31m===== Backend: NONE\x1b[0m`);
|
|
53
|
+
break;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
exports.PrintAngularOptions = PrintAngularOptions;
|
|
57
|
+
//# sourceMappingURL=angular-options.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"angular-options.js","sourceRoot":"","sources":["../../../../../../packages/schematic/angular/src/lib/angular-options.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Tree } from '@angular-devkit/schematics';
|
|
2
|
+
export interface AssertTableComponentExistsOptions {
|
|
3
|
+
project: string;
|
|
4
|
+
feature: string | null;
|
|
5
|
+
directory: string | null;
|
|
6
|
+
tableName: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function AssertTableComponentExists(host: Tree, options: AssertTableComponentExistsOptions): void;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AssertTableComponentExists = void 0;
|
|
4
|
+
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
+
const schematics_ts_morph_1 = require("@rxap/schematics-ts-morph");
|
|
6
|
+
function AssertTableComponentExists(host, options) {
|
|
7
|
+
const { tableName, project, feature, directory, } = options;
|
|
8
|
+
if (!(0, schematics_ts_morph_1.HasTableComponent)(host, {
|
|
9
|
+
project,
|
|
10
|
+
feature,
|
|
11
|
+
directory,
|
|
12
|
+
name: tableName,
|
|
13
|
+
})) {
|
|
14
|
+
throw new schematics_1.SchematicsException(`Could not find the table component '${tableName}' in the project '${project}' and feature '${feature}' and directory '${directory}'.`);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.AssertTableComponentExists = AssertTableComponentExists;
|
|
18
|
+
//# sourceMappingURL=assert-table-component-exists.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assert-table-component-exists.js","sourceRoot":"","sources":["../../../../../../packages/schematic/angular/src/lib/assert-table-component-exists.ts"],"names":[],"mappings":";;;AAAA,2DAGoC;AACpC,mEAA8D;AAS9D,SAAgB,0BAA0B,CAAC,IAAU,EAAE,OAA0C;IAC/F,MAAM,EACJ,SAAS,EACT,OAAO,EACP,OAAO,EACP,SAAS,GACV,GAAG,OAAO,CAAC;IACZ,IACE,CAAC,IAAA,uCAAiB,EAAC,IAAI,EAAE;QACvB,OAAO;QACP,OAAO;QACP,SAAS;QACT,IAAI,EAAE,SAAS;KAChB,CAAC,EACF;QACA,MAAM,IAAI,gCAAmB,CAC3B,uCAAwC,SAAU,qBAAsB,OAAQ,kBAAmB,OAAQ,oBAAqB,SAAU,IAAI,CAC/I,CAAC;KACH;AACH,CAAC;AAnBD,gEAmBC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BackendTypes = void 0;
|
|
4
|
+
var BackendTypes;
|
|
5
|
+
(function (BackendTypes) {
|
|
6
|
+
BackendTypes["NONE"] = "none";
|
|
7
|
+
BackendTypes["NESTJS"] = "nestjs";
|
|
8
|
+
BackendTypes["LOCAL"] = "local";
|
|
9
|
+
})(BackendTypes || (exports.BackendTypes = BackendTypes = {}));
|
|
10
|
+
//# sourceMappingURL=backend-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backend-types.js","sourceRoot":"","sources":["../../../../../../packages/schematic/angular/src/lib/backend-types.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,iCAAiB,CAAA;IACjB,+BAAe,CAAA;AACjB,CAAC,EAJW,YAAY,4BAAZ,YAAY,QAIvB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { NonNullableSelected, Normalized } from '@rxap/utilities';
|
|
2
|
+
export interface DataGridItem {
|
|
3
|
+
name: string;
|
|
4
|
+
type?: string;
|
|
5
|
+
header?: string;
|
|
6
|
+
}
|
|
7
|
+
export type NormalizedDataGridItem = Readonly<NonNullableSelected<Normalized<DataGridItem>, 'type'>>;
|
|
8
|
+
export declare function NormalizeDataGridItem(item: Readonly<DataGridItem> | string): NormalizedDataGridItem;
|
|
9
|
+
export declare function NormalizeDataGridItemList(itemList?: Array<Readonly<DataGridItem> | string>): Array<NormalizedDataGridItem>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NormalizeDataGridItemList = exports.NormalizeDataGridItem = void 0;
|
|
4
|
+
function NormalizeDataGridItem(item) {
|
|
5
|
+
var _a, _b;
|
|
6
|
+
let name;
|
|
7
|
+
let type;
|
|
8
|
+
let header = null;
|
|
9
|
+
if (typeof item === 'string') {
|
|
10
|
+
const fragments = item.split(':');
|
|
11
|
+
name = fragments[0];
|
|
12
|
+
type = fragments[1] || 'unknown';
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
name = item.name;
|
|
16
|
+
type = (_a = item.type) !== null && _a !== void 0 ? _a : 'unknown';
|
|
17
|
+
header = (_b = item.header) !== null && _b !== void 0 ? _b : null;
|
|
18
|
+
}
|
|
19
|
+
return Object.seal({
|
|
20
|
+
name,
|
|
21
|
+
type,
|
|
22
|
+
header,
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
exports.NormalizeDataGridItem = NormalizeDataGridItem;
|
|
26
|
+
function NormalizeDataGridItemList(itemList) {
|
|
27
|
+
var _a;
|
|
28
|
+
return Object.seal((_a = itemList === null || itemList === void 0 ? void 0 : itemList.map(NormalizeDataGridItem)) !== null && _a !== void 0 ? _a : []);
|
|
29
|
+
}
|
|
30
|
+
exports.NormalizeDataGridItemList = NormalizeDataGridItemList;
|
|
31
|
+
//# sourceMappingURL=data-grid-item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-grid-item.js","sourceRoot":"","sources":["../../../../../../packages/schematic/angular/src/lib/data-grid-item.ts"],"names":[],"mappings":";;;AAaA,SAAgB,qBAAqB,CAAC,IAAqC;;IACzE,IAAI,IAAY,CAAC;IACjB,IAAI,IAAY,CAAC;IACjB,IAAI,MAAM,GAAkB,IAAI,CAAC;IACjC,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;QAC5B,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAClC,IAAI,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;QACpB,IAAI,GAAG,SAAS,CAAC,CAAC,CAAC,IAAI,SAAS,CAAC;KAClC;SAAM;QACL,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACjB,IAAI,GAAG,MAAA,IAAI,CAAC,IAAI,mCAAI,SAAS,CAAC;QAC9B,MAAM,GAAG,MAAA,IAAI,CAAC,MAAM,mCAAI,IAAI,CAAC;KAC9B;IACD,OAAO,MAAM,CAAC,IAAI,CAAC;QACjB,IAAI;QACJ,IAAI;QACJ,MAAM;KACP,CAAC,CAAC;AACL,CAAC;AAlBD,sDAkBC;AAED,SAAgB,yBAAyB,CACvC,QAAiD;;IAEjD,OAAO,MAAM,CAAC,IAAI,CAAC,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,GAAG,CAAC,qBAAqB,CAAC,mCAAI,EAAE,CAAC,CAAC;AACjE,CAAC;AAJD,8DAIC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DataGridItem, NormalizedDataGridItem } from './data-grid-item';
|
|
2
|
+
import { Normalized } from '@rxap/utilities';
|
|
3
|
+
export declare enum DataGridMode {
|
|
4
|
+
Form = "form",
|
|
5
|
+
Plain = "plain"
|
|
6
|
+
}
|
|
7
|
+
export interface DataGridOptions {
|
|
8
|
+
itemList?: Array<string | DataGridItem>;
|
|
9
|
+
mode?: DataGridMode;
|
|
10
|
+
collection?: boolean;
|
|
11
|
+
title?: string;
|
|
12
|
+
subtitle?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface NormalizedDataGridOptions extends Omit<Readonly<Normalized<DataGridOptions>>, 'itemList'> {
|
|
15
|
+
mode: DataGridMode;
|
|
16
|
+
itemList: NormalizedDataGridItem[];
|
|
17
|
+
}
|
|
18
|
+
export declare function NormalizeDataGridOptions(options: Readonly<DataGridOptions>): NormalizedDataGridOptions;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NormalizeDataGridOptions = exports.DataGridMode = void 0;
|
|
4
|
+
const data_grid_item_1 = require("./data-grid-item");
|
|
5
|
+
var DataGridMode;
|
|
6
|
+
(function (DataGridMode) {
|
|
7
|
+
DataGridMode["Form"] = "form";
|
|
8
|
+
DataGridMode["Plain"] = "plain";
|
|
9
|
+
})(DataGridMode || (exports.DataGridMode = DataGridMode = {}));
|
|
10
|
+
function IsDataGridMode(value) {
|
|
11
|
+
return Object.values(DataGridMode).includes(value);
|
|
12
|
+
}
|
|
13
|
+
function NormalizeDataGridOptions(options) {
|
|
14
|
+
var _a, _b;
|
|
15
|
+
const { itemList, mode, collection, } = options;
|
|
16
|
+
return Object.seal({
|
|
17
|
+
itemList: (0, data_grid_item_1.NormalizeDataGridItemList)(itemList),
|
|
18
|
+
mode: IsDataGridMode(mode) ? mode : DataGridMode.Plain,
|
|
19
|
+
collection: collection !== null && collection !== void 0 ? collection : false,
|
|
20
|
+
title: (_a = options.title) !== null && _a !== void 0 ? _a : null,
|
|
21
|
+
subtitle: (_b = options.subtitle) !== null && _b !== void 0 ? _b : null,
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
exports.NormalizeDataGridOptions = NormalizeDataGridOptions;
|
|
25
|
+
//# sourceMappingURL=data-grid-options.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-grid-options.js","sourceRoot":"","sources":["../../../../../../packages/schematic/angular/src/lib/data-grid-options.ts"],"names":[],"mappings":";;;AAAA,qDAI0B;AAG1B,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,+BAAe,CAAA;AACjB,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB;AAED,SAAS,cAAc,CAAC,KAAU;IAChC,OAAO,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AACrD,CAAC;AAeD,SAAgB,wBAAwB,CAAC,OAAkC;;IACzE,MAAM,EACJ,QAAQ,EACR,IAAI,EACJ,UAAU,GACX,GAAG,OAAO,CAAC;IACZ,OAAO,MAAM,CAAC,IAAI,CAAC;QACjB,QAAQ,EAAE,IAAA,0CAAyB,EAAC,QAAQ,CAAC;QAC7C,IAAI,EAAE,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,YAAY,CAAC,KAAK;QACtD,UAAU,EAAE,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,KAAK;QAC/B,KAAK,EAAE,MAAA,OAAO,CAAC,KAAK,mCAAI,IAAI;QAC5B,QAAQ,EAAE,MAAA,OAAO,CAAC,QAAQ,mCAAI,IAAI;KACnC,CAAC,CAAC;AACL,CAAC;AAbD,4DAaC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { NonNullableSelected, Normalized } from '@rxap/utilities';
|
|
2
|
+
export interface DialogAction {
|
|
3
|
+
role: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
color?: string;
|
|
6
|
+
}
|
|
7
|
+
export type NormalizedDialogAction = Readonly<NonNullableSelected<Normalized<DialogAction>, 'label'>>;
|
|
8
|
+
export declare function NormalizeDialogAction(action: string | DialogAction): NormalizedDialogAction;
|
|
9
|
+
export declare function NormalizeDialogActionList(actionList?: Array<string | DialogAction>): Array<NormalizedDialogAction>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NormalizeDialogActionList = exports.NormalizeDialogAction = void 0;
|
|
4
|
+
const schematics_utilities_1 = require("@rxap/schematics-utilities");
|
|
5
|
+
function NormalizeDialogAction(action) {
|
|
6
|
+
var _a, _b;
|
|
7
|
+
let role;
|
|
8
|
+
let label = null;
|
|
9
|
+
let color = null;
|
|
10
|
+
if (typeof action === 'string') {
|
|
11
|
+
const fragments = action.split(':');
|
|
12
|
+
role = fragments[0];
|
|
13
|
+
label = fragments[1] || null;
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
role = action.role;
|
|
17
|
+
label = (_a = action.label) !== null && _a !== void 0 ? _a : label;
|
|
18
|
+
color = (_b = action.color) !== null && _b !== void 0 ? _b : color;
|
|
19
|
+
}
|
|
20
|
+
label !== null && label !== void 0 ? label : (label = (0, schematics_utilities_1.capitalize)(role));
|
|
21
|
+
return Object.seal({
|
|
22
|
+
role,
|
|
23
|
+
label,
|
|
24
|
+
color,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
exports.NormalizeDialogAction = NormalizeDialogAction;
|
|
28
|
+
function NormalizeDialogActionList(actionList) {
|
|
29
|
+
var _a;
|
|
30
|
+
return Object.seal((_a = actionList === null || actionList === void 0 ? void 0 : actionList.map(NormalizeDialogAction)) !== null && _a !== void 0 ? _a : []);
|
|
31
|
+
}
|
|
32
|
+
exports.NormalizeDialogActionList = NormalizeDialogActionList;
|
|
33
|
+
//# sourceMappingURL=dialog-action.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialog-action.js","sourceRoot":"","sources":["../../../../../../packages/schematic/angular/src/lib/dialog-action.ts"],"names":[],"mappings":";;;AAIA,qEAAwD;AAUxD,SAAgB,qBAAqB,CACnC,MAA6B;;IAE7B,IAAI,IAAY,CAAC;IACjB,IAAI,KAAK,GAAkB,IAAI,CAAC;IAChC,IAAI,KAAK,GAAkB,IAAI,CAAC;IAChC,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE;QAC9B,MAAM,SAAS,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACpC,IAAI,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;QACpB,KAAK,GAAG,SAAS,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC;KAC9B;SAAM;QACL,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;QACnB,KAAK,GAAG,MAAA,MAAM,CAAC,KAAK,mCAAI,KAAK,CAAC;QAC9B,KAAK,GAAG,MAAA,MAAM,CAAC,KAAK,mCAAI,KAAK,CAAC;KAC/B;IACD,KAAK,aAAL,KAAK,cAAL,KAAK,IAAL,KAAK,GAAK,IAAA,iCAAU,EAAC,IAAI,CAAC,EAAC;IAC3B,OAAO,MAAM,CAAC,IAAI,CAAC;QACjB,IAAI;QACJ,KAAK;QACL,KAAK;KACN,CAAC,CAAC;AACL,CAAC;AArBD,sDAqBC;AAED,SAAgB,yBAAyB,CACvC,UAAyC;;IAEzC,OAAO,MAAM,CAAC,IAAI,CAAC,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,GAAG,CAAC,qBAAqB,CAAC,mCAAI,EAAE,CAAC,CAAC;AACnE,CAAC;AAJD,8DAIC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NormalizeExistingMethod = void 0;
|
|
4
|
+
function NormalizeExistingMethod(existingMethod) {
|
|
5
|
+
if (!existingMethod || !existingMethod.className || !existingMethod.importPath) {
|
|
6
|
+
return null;
|
|
7
|
+
}
|
|
8
|
+
return existingMethod;
|
|
9
|
+
}
|
|
10
|
+
exports.NormalizeExistingMethod = NormalizeExistingMethod;
|
|
11
|
+
//# sourceMappingURL=existing-method.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"existing-method.js","sourceRoot":"","sources":["../../../../../../packages/schematic/angular/src/lib/existing-method.ts"],"names":[],"mappings":";;;AAKA,SAAgB,uBAAuB,CAAC,cAA+B;IACrE,IAAI,CAAC,cAAc,IAAI,CAAC,cAAc,CAAC,SAAS,IAAI,CAAC,cAAc,CAAC,UAAU,EAAE;QAC9E,OAAO,IAAI,CAAC;KACb;IACD,OAAO,cAAc,CAAC;AACxB,CAAC;AALD,0DAKC"}
|