@rxap/schematic-angular 16.2.0-dev.0 → 16.2.0-dev.10
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 +111 -0
- package/README.md +1 -1
- package/package.json +15 -12
- package/src/lib/accordion-header.d.ts +32 -0
- package/src/lib/accordion-header.js +54 -0
- package/src/lib/accordion-header.js.map +1 -0
- package/src/lib/accordion-identifier.d.ts +10 -0
- package/src/lib/accordion-identifier.js +15 -0
- package/src/lib/accordion-identifier.js.map +1 -0
- package/src/lib/accordion-item.d.ts +80 -6
- package/src/lib/accordion-item.js +164 -21
- package/src/lib/accordion-item.js.map +1 -1
- package/src/lib/accordion-itme-kinds.d.ts +8 -0
- package/src/lib/accordion-itme-kinds.js +16 -0
- package/src/lib/accordion-itme-kinds.js.map +1 -0
- package/src/lib/adapter-options.d.ts +1 -1
- package/src/lib/adapter-options.js +2 -2
- package/src/lib/adapter-options.js.map +1 -1
- package/src/lib/coerce-accordion-component.d.ts +6 -0
- package/src/lib/coerce-accordion-component.js +67 -0
- package/src/lib/coerce-accordion-component.js.map +1 -0
- package/src/lib/coerce-accordion-item-table-component.d.ts +7 -0
- package/src/lib/coerce-accordion-item-table-component.js +41 -0
- package/src/lib/coerce-accordion-item-table-component.js.map +1 -0
- package/src/lib/coerce-form-component.d.ts +6 -0
- package/src/lib/coerce-form-component.js +71 -0
- package/src/lib/coerce-form-component.js.map +1 -0
- package/src/lib/coerce-minimum-table-component.d.ts +6 -0
- package/src/lib/coerce-minimum-table-component.js +101 -0
- package/src/lib/coerce-minimum-table-component.js.map +1 -0
- package/src/lib/coerce-tree-table-component.d.ts +6 -0
- package/src/lib/coerce-tree-table-component.js +28 -0
- package/src/lib/coerce-tree-table-component.js.map +1 -0
- package/src/lib/data-grid-item.d.ts +9 -6
- package/src/lib/data-grid-item.js +4 -18
- package/src/lib/data-grid-item.js.map +1 -1
- package/src/lib/data-grid-options.d.ts +3 -1
- package/src/lib/data-grid-options.js +7 -3
- package/src/lib/data-grid-options.js.map +1 -1
- package/src/lib/existing-method.d.ts +1 -1
- package/src/lib/existing-method.js +2 -2
- package/src/lib/existing-method.js.map +1 -1
- package/src/lib/form/generate-form-template.d.ts +5 -0
- package/src/lib/form/generate-form-template.js +12 -0
- package/src/lib/form/generate-form-template.js.map +1 -0
- package/src/lib/form-component-control.d.ts +5 -10
- package/src/lib/form-component-control.js +3 -34
- package/src/lib/form-component-control.js.map +1 -1
- package/src/lib/form-control.d.ts +125 -0
- package/src/lib/form-control.js +304 -0
- package/src/lib/form-control.js.map +1 -0
- package/src/lib/form-definition-control.d.ts +5 -15
- package/src/lib/form-definition-control.js +18 -49
- package/src/lib/form-definition-control.js.map +1 -1
- package/src/lib/load-handlebars-template.d.ts +3 -0
- package/src/lib/load-handlebars-template.js +24 -0
- package/src/lib/load-handlebars-template.js.map +1 -0
- package/src/lib/mat-form-field-default-options.d.ts +7 -0
- package/src/lib/mat-form-field-default-options.js +10 -0
- package/src/lib/mat-form-field-default-options.js.map +1 -0
- package/src/lib/merge-with-column-list.d.ts +3 -0
- package/src/lib/merge-with-column-list.js +18 -0
- package/src/lib/merge-with-column-list.js.map +1 -0
- package/src/lib/minimum-table-component-options.d.ts +14 -4
- package/src/lib/minimum-table-component-options.js +18 -20
- package/src/lib/minimum-table-component-options.js.map +1 -1
- package/src/lib/minimum-table-options.d.ts +11 -6
- package/src/lib/minimum-table-options.js +17 -5
- package/src/lib/minimum-table-options.js.map +1 -1
- package/src/lib/persistent.d.ts +30 -0
- package/src/lib/persistent.js +39 -0
- package/src/lib/persistent.js.map +1 -0
- package/src/lib/table/table-filter-column-rule.d.ts +13 -0
- package/src/lib/table/table-filter-column-rule.js +88 -0
- package/src/lib/table/table-filter-column-rule.js.map +1 -0
- package/src/lib/table-action.d.ts +3 -1
- package/src/lib/table-action.js.map +1 -1
- package/src/lib/table-column.d.ts +38 -6
- package/src/lib/table-column.js +220 -67
- package/src/lib/table-column.js.map +1 -1
- package/src/lib/table-options.d.ts +10 -3
- package/src/lib/table-options.js +13 -2
- package/src/lib/table-options.js.map +1 -1
- package/src/lib/tree-table-options.d.ts +9 -3
- package/src/lib/tree-table-options.js +12 -2
- package/src/lib/tree-table-options.js.map +1 -1
- package/src/lib/use-pick-from-table-interface-as-form-type.d.ts +10 -0
- package/src/lib/use-pick-from-table-interface-as-form-type.js +32 -0
- package/src/lib/use-pick-from-table-interface-as-form-type.js.map +1 -0
- package/src/schematics/accordion/accordion-component/files/component/__componentName__.component.html.hbs +25 -0
- package/src/schematics/accordion/accordion-component/index.d.ts +10 -3
- package/src/schematics/accordion/accordion-component/index.js +106 -127
- package/src/schematics/accordion/accordion-component/index.js.map +1 -1
- package/src/schematics/accordion/accordion-component/schema.d.ts +8 -2
- package/src/schematics/accordion/accordion-component/schema.json +354 -84
- package/src/schematics/accordion/accordion-component/template.schema.json +102 -0
- package/src/schematics/accordion/accordion-item-component/index.d.ts +4 -3
- package/src/schematics/accordion/accordion-item-component/index.js +91 -108
- package/src/schematics/accordion/accordion-item-component/index.js.map +1 -1
- package/src/schematics/accordion/accordion-item-component/schema.d.ts +3 -5
- package/src/schematics/accordion/accordion-item-component/schema.json +281 -72
- package/src/schematics/accordion/accordion-item-component/template.schema.json +33 -0
- package/src/schematics/accordion/item/accordion-item-data-grid-component/index.d.ts +2 -3
- package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js +44 -52
- package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js.map +1 -1
- package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.d.ts +2 -5
- package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.json +366 -103
- package/src/schematics/accordion/item/accordion-item-data-grid-component/template.schema.json +31 -0
- package/src/schematics/accordion/item/accordion-item-switch-component/index.d.ts +2 -15
- package/src/schematics/accordion/item/accordion-item-switch-component/index.js +4 -27
- package/src/schematics/accordion/item/accordion-item-switch-component/index.js.map +1 -1
- package/src/schematics/accordion/item/accordion-item-switch-component/schema.d.ts +2 -17
- package/src/schematics/accordion/item/accordion-item-switch-component/schema.json +317 -179
- package/src/schematics/accordion/item/accordion-item-switch-component/template.schema.json +84 -0
- package/src/schematics/accordion/item/accordion-item-table-component/index.d.ts +2 -3
- package/src/schematics/accordion/item/accordion-item-table-component/index.js +13 -10
- package/src/schematics/accordion/item/accordion-item-table-component/index.js.map +1 -1
- package/src/schematics/accordion/item/accordion-item-table-component/schema.d.ts +2 -5
- package/src/schematics/accordion/item/accordion-item-table-component/schema.json +598 -242
- package/src/schematics/accordion/item/accordion-item-table-component/template.schema.json +46 -0
- package/src/schematics/accordion/item/accordion-item-tree-table-component/index.d.ts +2 -3
- package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js +17 -12
- package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js.map +1 -1
- package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.d.ts +2 -5
- package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.json +573 -247
- package/src/schematics/accordion/item/accordion-item-tree-table-component/template.schema.json +46 -0
- package/src/schematics/accordion/templates/accordion-header.hbs +6 -0
- package/src/schematics/accordion/templates/data-grid-accordion-item.hbs +15 -0
- package/src/schematics/accordion/templates/default-accordion-item.hbs +15 -0
- package/src/schematics/accordion/templates/switch-accordion-item.hbs +21 -0
- package/src/schematics/accordion/templates/table-accordion-item.hbs +15 -0
- package/src/schematics/accordion/templates/tree-table-accordion-item.hbs +15 -0
- package/src/schematics/accordion-item.schema.json +35 -0
- package/src/schematics/angular.schema.json +2 -10
- package/src/schematics/backend.schema.json +13 -0
- package/src/schematics/button.schema.json +30 -0
- package/src/schematics/data-grid-component/files/component/__componentName__.component.html.hbs +34 -0
- package/src/schematics/data-grid-component/index.d.ts +0 -1
- package/src/schematics/data-grid-component/index.js +83 -47
- package/src/schematics/data-grid-component/index.js.map +1 -1
- package/src/schematics/data-grid-component/schema.json +336 -101
- package/src/schematics/data-grid-component/template.schema.json +23 -0
- package/src/schematics/data-grid-item.schema.json +23 -0
- package/src/schematics/data-grid.schema.json +44 -0
- package/src/schematics/dialog-component/schema.json +225 -66
- package/src/schematics/dialog-component/template.schema.json +65 -0
- package/src/schematics/form/control/input-form-control/index.d.ts +2 -2
- package/src/schematics/form/control/input-form-control/index.js +4 -22
- package/src/schematics/form/control/input-form-control/index.js.map +1 -1
- package/src/schematics/form/control/input-form-control/schema.d.ts +2 -3
- package/src/schematics/form/control/input-form-control/schema.json +380 -108
- package/src/schematics/form/control/input-form-control/template.schema.json +23 -0
- package/src/schematics/form/control/select-form-control/index.d.ts +4 -2
- package/src/schematics/form/control/select-form-control/index.js +132 -96
- package/src/schematics/form/control/select-form-control/index.js.map +1 -1
- package/src/schematics/form/control/select-form-control/schema.d.ts +2 -3
- package/src/schematics/form/control/select-form-control/schema.json +386 -94
- package/src/schematics/form/control/select-form-control/template.schema.json +23 -0
- package/src/schematics/form/control/table-select-form-control/index.d.ts +4 -6
- package/src/schematics/form/control/table-select-form-control/index.js +80 -69
- package/src/schematics/form/control/table-select-form-control/index.js.map +1 -1
- package/src/schematics/form/control/table-select-form-control/schema.d.ts +2 -4
- package/src/schematics/form/control/table-select-form-control/schema.json +434 -97
- package/src/schematics/form/control/table-select-form-control/template.schema.json +78 -0
- package/src/schematics/form/form-component/files/component/{__componentName__.component.html.template → __componentName__.component.html.hbs} +3 -3
- package/src/schematics/form/form-component/index.d.ts +4 -2
- package/src/schematics/form/form-component/index.js +14 -5
- package/src/schematics/form/form-component/index.js.map +1 -1
- package/src/schematics/form/form-component/schema.d.ts +3 -1
- package/src/schematics/form/form-component/schema.json +342 -95
- package/src/schematics/form/form-component/template.schema.json +23 -0
- package/src/schematics/form/form-control/index.d.ts +3 -1
- package/src/schematics/form/form-control/index.js +19 -8
- package/src/schematics/form/form-control/index.js.map +1 -1
- package/src/schematics/form/form-control/schema.json +316 -83
- package/src/schematics/form/form-control/template.schema.json +37 -0
- package/src/schematics/form/form-definition/index.js +14 -1
- package/src/schematics/form/form-definition/index.js.map +1 -1
- package/src/schematics/form/form-definition/schema.d.ts +1 -1
- package/src/schematics/form/form-definition/schema.json +289 -59
- package/src/schematics/form/form-definition/template.schema.json +33 -0
- package/src/schematics/form/templates/checkbox-form-control.hbs +9 -0
- package/src/schematics/form/templates/default-form-control.hbs +2 -0
- package/src/schematics/form/templates/input-form-control.hbs +9 -0
- package/src/schematics/form/templates/mat-form-field.hbs +31 -0
- package/src/schematics/form/templates/slide-toggle-form-control.hbs +8 -0
- package/src/schematics/form/templates/table-select-form-control.hbs +18 -0
- package/src/schematics/form-component.schema.json +39 -0
- package/src/schematics/form-control.schema.json +68 -0
- package/src/schematics/form-definition.schema.json +22 -0
- package/src/schematics/form-field.schema.json +24 -0
- package/src/schematics/header-button.schema.json +42 -0
- package/src/schematics/input-form-control.schema.json +47 -0
- package/src/schematics/minimum-table.schema.json +54 -0
- package/src/schematics/property.schema.json +28 -0
- package/src/schematics/select-form-control.schema.json +53 -0
- package/src/schematics/table/action/dialog-table-action/schema.json +294 -133
- package/src/schematics/table/action/dialog-table-action/template.schema.json +61 -0
- package/src/schematics/table/action/form-table-action/schema.json +392 -172
- package/src/schematics/table/action/form-table-action/template.schema.json +75 -0
- package/src/schematics/table/action/navigation-table-action/schema.json +272 -88
- package/src/schematics/table/action/navigation-table-action/template.schema.json +31 -0
- package/src/schematics/table/action/open-api-table-action/schema.json +288 -102
- package/src/schematics/table/action/open-api-table-action/template.schema.json +59 -0
- package/src/schematics/table/action/operation-table-action/schema.json +259 -92
- package/src/schematics/table/action/operation-table-action/template.schema.json +17 -0
- package/src/schematics/table/header-button/form-table-header-button/schema.json +325 -126
- package/src/schematics/table/header-button/form-table-header-button/template.schema.json +51 -0
- package/src/schematics/table/header-button/navigation-table-header-button/schema.json +254 -81
- package/src/schematics/table/header-button/navigation-table-header-button/template.schema.json +31 -0
- package/src/schematics/table/table-action/schema.json +254 -87
- package/src/schematics/table/table-action/template.schema.json +30 -0
- package/src/schematics/table/table-component/files/component/__componentName__.component.html.hbs +241 -0
- package/src/schematics/table/table-component/index.d.ts +2 -2
- package/src/schematics/table/table-component/index.js +15 -105
- package/src/schematics/table/table-component/index.js.map +1 -1
- package/src/schematics/table/table-component/schema.json +461 -197
- package/src/schematics/table/table-component/template.schema.json +26 -0
- package/src/schematics/table/table-header-button/schema.json +235 -73
- package/src/schematics/table/table-header-button/template.schema.json +30 -0
- package/src/schematics/table/templates/boolean-table-column.hbs +10 -0
- package/src/schematics/table/templates/component-table-column.hbs +12 -0
- package/src/schematics/table/templates/copy-to-clipboard-table-column.hbs +10 -0
- package/src/schematics/table/templates/date-table-column.hbs +11 -0
- package/src/schematics/table/templates/default-table-column.hbs +8 -0
- package/src/schematics/table/templates/icon-table-column.hbs +10 -0
- package/src/schematics/table/templates/link-table-column.hbs +10 -0
- package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.hbs +249 -0
- package/src/schematics/table/tree-table-component/index.js +16 -7
- package/src/schematics/table/tree-table-component/index.js.map +1 -1
- package/src/schematics/table/tree-table-component/schema.json +524 -260
- package/src/schematics/table/tree-table-component/template.schema.json +26 -0
- package/src/schematics/table-action.schema.json +61 -0
- package/src/schematics/table-column.schema.json +69 -0
- package/src/schematics/table.schema.json +54 -0
- package/src/schematics/tree-component/schema.json +113 -76
- package/src/schematics/tree-component/template.schema.json +31 -0
- package/src/schematics/tree-table.schema.json +40 -0
- package/src/schematics/type.schema.json +35 -0
- package/src/schematics/upstream.schema.json +56 -0
- package/src/lib/accordion-itme-types.d.ts +0 -8
- package/src/lib/accordion-itme-types.js +0 -16
- package/src/lib/accordion-itme-types.js.map +0 -1
- package/src/lib/table-property.d.ts +0 -14
- package/src/lib/table-property.js +0 -46
- package/src/lib/table-property.js.map +0 -1
- package/src/lib/type-import.d.ts +0 -4
- package/src/lib/type-import.js +0 -38
- package/src/lib/type-import.js.map +0 -1
- package/src/schematics/accordion/accordion-component/files/component/__componentName__.component.html.template +0 -79
- package/src/schematics/accordion/accordion-component/files/component/__componentName__.component.ts.template +0 -54
- package/src/schematics/accordion/accordion-component/files/header-component/accordion-header.component.html.template +0 -5
- package/src/schematics/accordion/accordion-component/files/header-component/accordion-header.component.ts.template +0 -14
- package/src/schematics/accordion/accordion-item-component/files/component/__componentName__.component.ts.template +0 -30
- package/src/schematics/accordion/item/accordion-item-data-grid-component/files/data-grid/__componentName__.component.ts.template +0 -14
- package/src/schematics/accordion/item/accordion-item-data-grid-component/files/data-grid-collection/__componentName__.component.ts.template +0 -32
- package/src/schematics/accordion/item/accordion-item-table-component/files/component/__componentName__.component.ts.template +0 -35
- package/src/schematics/accordion/item/accordion-item-tree-table-component/files/component/__componentName__.component.ts.template +0 -34
- package/src/schematics/data-grid-component/files/form/__componentName__.component.html.template +0 -42
- package/src/schematics/data-grid-component/files/form/__componentName__.component.ts.template +0 -43
- package/src/schematics/data-grid-component/files/plain/__componentName__.component.html.template +0 -25
- package/src/schematics/data-grid-component/files/plain/__componentName__.component.ts.template +0 -36
- package/src/schematics/form/form-component/files/component/__componentName__.component.ts.template +0 -50
- package/src/schematics/table/table-component/files/component/__componentName__.component.html.template +0 -299
- package/src/schematics/table/table-component/files/component/__componentName__.component.ts.template +0 -112
- package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.template +0 -213
- package/src/schematics/table/tree-table-component/files/component/__componentName__.component.ts.template +0 -113
package/src/lib/type-import.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NormalizeTypeImport = void 0;
|
|
4
|
-
function NormalizeTypeImport(typeImport) {
|
|
5
|
-
var _a, _b, _c, _d, _e;
|
|
6
|
-
let name;
|
|
7
|
-
let moduleSpecifier = null;
|
|
8
|
-
let namedImport = null;
|
|
9
|
-
let namespaceImport = null;
|
|
10
|
-
let isTypeOnly = false;
|
|
11
|
-
let defaultImport = null;
|
|
12
|
-
if (typeof typeImport === 'string') {
|
|
13
|
-
// name:moduleSpecifier:namedImport
|
|
14
|
-
// IconConfig:@rxap/utilities
|
|
15
|
-
const fragments = typeImport.split(':');
|
|
16
|
-
name = fragments[0];
|
|
17
|
-
moduleSpecifier = fragments[1] || null; // use || instead of ?? because the moduleSpecifier can be an empty string
|
|
18
|
-
namedImport = fragments[2] || null; // use || instead of ?? because the namedImport can be an empty string
|
|
19
|
-
}
|
|
20
|
-
else {
|
|
21
|
-
name = typeImport.name;
|
|
22
|
-
moduleSpecifier = (_a = typeImport.moduleSpecifier) !== null && _a !== void 0 ? _a : moduleSpecifier;
|
|
23
|
-
namedImport = (_b = typeImport.namedImport) !== null && _b !== void 0 ? _b : namedImport;
|
|
24
|
-
namespaceImport = (_c = typeImport.namespaceImport) !== null && _c !== void 0 ? _c : namespaceImport;
|
|
25
|
-
isTypeOnly = (_d = typeImport.isTypeOnly) !== null && _d !== void 0 ? _d : isTypeOnly;
|
|
26
|
-
defaultImport = (_e = typeImport.defaultImport) !== null && _e !== void 0 ? _e : defaultImport;
|
|
27
|
-
}
|
|
28
|
-
return Object.freeze({
|
|
29
|
-
name,
|
|
30
|
-
moduleSpecifier,
|
|
31
|
-
namedImport,
|
|
32
|
-
namespaceImport,
|
|
33
|
-
isTypeOnly,
|
|
34
|
-
defaultImport,
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
exports.NormalizeTypeImport = NormalizeTypeImport;
|
|
38
|
-
//# sourceMappingURL=type-import.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type-import.js","sourceRoot":"","sources":["../../../../../../packages/schematic/angular/src/lib/type-import.ts"],"names":[],"mappings":";;;AAKA,SAAgB,mBAAmB,CAAC,UAAyC;;IAC3E,IAAI,IAAY,CAAC;IACjB,IAAI,eAAe,GAAkB,IAAI,CAAC;IAC1C,IAAI,WAAW,GAAkB,IAAI,CAAC;IACtC,IAAI,eAAe,GAAkB,IAAI,CAAC;IAC1C,IAAI,UAAU,GAAG,KAAK,CAAC;IACvB,IAAI,aAAa,GAAkB,IAAI,CAAC;IACxC,IAAI,OAAO,UAAU,KAAK,QAAQ,EAAE;QAClC,mCAAmC;QACnC,6BAA6B;QAC7B,MAAM,SAAS,GAAG,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACxC,IAAI,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;QACpB,eAAe,GAAG,SAAS,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,0EAA0E;QAClH,WAAW,GAAG,SAAS,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,sEAAsE;KAC3G;SAAM;QACL,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC;QACvB,eAAe,GAAG,MAAA,UAAU,CAAC,eAAe,mCAAI,eAAe,CAAC;QAChE,WAAW,GAAG,MAAA,UAAU,CAAC,WAAW,mCAAI,WAAW,CAAC;QACpD,eAAe,GAAG,MAAA,UAAU,CAAC,eAAe,mCAAI,eAAe,CAAC;QAChE,UAAU,GAAG,MAAA,UAAU,CAAC,UAAU,mCAAI,UAAU,CAAC;QACjD,aAAa,GAAG,MAAA,UAAU,CAAC,aAAa,mCAAI,aAAa,CAAC;KAC3D;IACD,OAAO,MAAM,CAAC,MAAM,CAAC;QACnB,IAAI;QACJ,eAAe;QACf,WAAW;QACX,eAAe;QACf,UAAU;QACV,aAAa;KACd,CAAC,CAAC;AACL,CAAC;AA9BD,kDA8BC"}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
<ng-template #errorTemplate let-error let-refresh="refresh">
|
|
2
|
-
<rxap-data-source-error [error]="error" [refresh]="refresh"></rxap-data-source-error>
|
|
3
|
-
</ng-template>
|
|
4
|
-
<div *rxapDataSource="let accordion from accordionDataSource; errorTemplate: errorTemplate" class="flex flex-col gap-y-6">
|
|
5
|
-
<<%= prefix %>-accordion-header [data]="accordion"></<%= prefix %>-accordion-header>
|
|
6
|
-
<ng-template #divider>
|
|
7
|
-
<mat-divider></mat-divider>
|
|
8
|
-
</ng-template>
|
|
9
|
-
<mat-progress-bar *ngIf="accordionDataSource.loading$ | async; else divider" mode="indeterminate"></mat-progress-bar>
|
|
10
|
-
<mat-accordion [rxapPersistentAccordion]="accordionDataSource.lastUuid" <% if (multiple) { %>multi<% } %>>
|
|
11
|
-
<% for (let index = 0; index < itemList.length; index++) { %>
|
|
12
|
-
<% item = itemList[index] %>
|
|
13
|
-
<% if (item.type === 'switch') { %>
|
|
14
|
-
<ng-container [ngSwitch]="accordion.<%= item.switch.property.path %>">
|
|
15
|
-
<% for (const caseItem of item.switch.case) { %>
|
|
16
|
-
<% if (item.switch.property.type === 'string') { %>
|
|
17
|
-
<ng-template [ngSwitchCase]="'<%= caseItem.test %>'">
|
|
18
|
-
<% } else { %>
|
|
19
|
-
<ng-template [ngSwitchCase]="<%= caseItem.test %>">
|
|
20
|
-
<% } %>
|
|
21
|
-
<% for (const innerItem of caseItem.itemList) { %>
|
|
22
|
-
<mat-expansion-panel>
|
|
23
|
-
|
|
24
|
-
<mat-expansion-panel-header>
|
|
25
|
-
<mat-panel-title i18n><%= classify(item.name) %> <%= classify(innerItem.name) %></mat-panel-title>
|
|
26
|
-
<% if (innerItem.description) { %>
|
|
27
|
-
<mat-panel-description i18n><%= innerItem.description %></mat-panel-description>
|
|
28
|
-
<% } %>
|
|
29
|
-
</mat-expansion-panel-header>
|
|
30
|
-
|
|
31
|
-
<ng-template matExpansionPanelContent>
|
|
32
|
-
<<%= prefix %>-<%= item.name %>-<%= innerItem.name %>-panel></<%= prefix %>-<%= item.name %>-<%= innerItem.name %>-panel>
|
|
33
|
-
</ng-template>
|
|
34
|
-
|
|
35
|
-
</mat-expansion-panel>
|
|
36
|
-
<% } %>
|
|
37
|
-
</ng-template>
|
|
38
|
-
<% } %>
|
|
39
|
-
<% if (item.switch.defaultCase) { %>
|
|
40
|
-
<% for (const innerItem of item.switch.defaultCase.itemList) { %>
|
|
41
|
-
<ng-template ngSwitchDefault>
|
|
42
|
-
<mat-expansion-panel>
|
|
43
|
-
|
|
44
|
-
<mat-expansion-panel-header>
|
|
45
|
-
<mat-panel-title i18n><%= classify(item.name) %> <%= classify(innerItem.name) %></mat-panel-title>
|
|
46
|
-
<% if (innerItem.description) { %>
|
|
47
|
-
<mat-panel-description i18n><%= innerItem.description %></mat-panel-description>
|
|
48
|
-
<% } %>
|
|
49
|
-
</mat-expansion-panel-header>
|
|
50
|
-
|
|
51
|
-
<ng-template matExpansionPanelContent>
|
|
52
|
-
<<%= prefix %>-<%= item.name %>-<%= innerItem.name %>-panel></<%= prefix %>-<%= item.name %>-<%= innerItem.name %>-panel>
|
|
53
|
-
</ng-template>
|
|
54
|
-
|
|
55
|
-
</mat-expansion-panel>
|
|
56
|
-
</ng-template>
|
|
57
|
-
<% } %>
|
|
58
|
-
<% } %>
|
|
59
|
-
</ng-container>
|
|
60
|
-
<% } else { %>
|
|
61
|
-
<mat-expansion-panel>
|
|
62
|
-
|
|
63
|
-
<mat-expansion-panel-header>
|
|
64
|
-
<mat-panel-title i18n><%= classify(item.name) %></mat-panel-title>
|
|
65
|
-
<% if (item.description) { %>
|
|
66
|
-
<mat-panel-description i18n><%= item.description %></mat-panel-description>
|
|
67
|
-
<% } %>
|
|
68
|
-
</mat-expansion-panel-header>
|
|
69
|
-
|
|
70
|
-
<ng-template matExpansionPanelContent>
|
|
71
|
-
<<%= prefix %>-<%= item.name %>-panel></<%= prefix %>-<%= item.name %>-panel>
|
|
72
|
-
</ng-template>
|
|
73
|
-
|
|
74
|
-
</mat-expansion-panel>
|
|
75
|
-
<% } %>
|
|
76
|
-
<% } %>
|
|
77
|
-
<!-- NEXT_INDEX[<%= itemList.length %>] -->
|
|
78
|
-
</mat-accordion>
|
|
79
|
-
</div>
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
2
|
-
import { <%= classify(componentName) %>DataSource } from './<%= componentName %>.data-source';
|
|
3
|
-
import { ACCORDION_DATA_SOURCE } from '@rxap/data-source/accordion';
|
|
4
|
-
import { CommonModule } from '@angular/common';
|
|
5
|
-
<% for (const item of itemList) { %>
|
|
6
|
-
import { <%= classify(item.name) %>PanelComponent } from './<%= item.name %>-panel/<%= item.name %>-panel.component';
|
|
7
|
-
<% } %>
|
|
8
|
-
import { DataSourceDirective } from '@rxap/data-source/directive';
|
|
9
|
-
import { NavigateBackButtonComponent } from '@rxap/components';
|
|
10
|
-
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
11
|
-
import { MatDividerModule } from '@angular/material/divider';
|
|
12
|
-
import { MatExpansionModule } from '@angular/material/expansion';
|
|
13
|
-
import { PersistentAccordionDirective } from '@rxap/material-directives/expansion';
|
|
14
|
-
import { DataSourceErrorComponent } from '@rxap/data-source';
|
|
15
|
-
import { AccordionHeaderComponent } from './accordion-header/accordion-header.component';
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
@Component({
|
|
19
|
-
selector: '<%= prefix %>-<%= componentName %>',
|
|
20
|
-
templateUrl: './<%= componentName %>.component.html',
|
|
21
|
-
styleUrls: [ './<%= componentName %>.component.scss' ],
|
|
22
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
23
|
-
standalone: true,
|
|
24
|
-
imports: [
|
|
25
|
-
<% for (const item of itemList) { %>
|
|
26
|
-
<%= classify(item.name) %>PanelComponent,
|
|
27
|
-
<% } %>
|
|
28
|
-
DataSourceErrorComponent,
|
|
29
|
-
DataSourceDirective,
|
|
30
|
-
NavigateBackButtonComponent,
|
|
31
|
-
MatProgressBarModule,
|
|
32
|
-
MatDividerModule,
|
|
33
|
-
MatExpansionModule,
|
|
34
|
-
PersistentAccordionDirective,
|
|
35
|
-
CommonModule,
|
|
36
|
-
AccordionHeaderComponent,
|
|
37
|
-
],
|
|
38
|
-
providers: [
|
|
39
|
-
<%= classify(componentName) %>DataSource,
|
|
40
|
-
{
|
|
41
|
-
provide: ACCORDION_DATA_SOURCE,
|
|
42
|
-
useExisting: <%= classify(componentName) %>DataSource
|
|
43
|
-
},
|
|
44
|
-
],
|
|
45
|
-
})
|
|
46
|
-
export class <%= classify(componentName) %>Component {
|
|
47
|
-
|
|
48
|
-
constructor(
|
|
49
|
-
public readonly accordionDataSource: <%= classify(componentName) %>DataSource,
|
|
50
|
-
) {}
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
<% if (exportDefault) { %>export default <%= classify(componentName) %>Component<% } %>
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
|
2
|
-
import { NavigateBackButtonComponent } from '@rxap/components';
|
|
3
|
-
|
|
4
|
-
@Component({
|
|
5
|
-
selector: '<%= prefix %>-accordion-header',
|
|
6
|
-
templateUrl: './accordion-header.component.html',
|
|
7
|
-
styleUrls: [ './accordion-header.component.scss' ],
|
|
8
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
9
|
-
standalone: true,
|
|
10
|
-
imports: [
|
|
11
|
-
NavigateBackButtonComponent,
|
|
12
|
-
],
|
|
13
|
-
})
|
|
14
|
-
export class AccordionHeaderComponent {}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
2
|
-
import { <%= classify(name) %>PanelDataSource } from './<%= name %>-panel.data-source';
|
|
3
|
-
import { DataSourceDirective } from '@rxap/data-source/directive';
|
|
4
|
-
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
5
|
-
import { DataSourceErrorComponent } from '@rxap/data-source';
|
|
6
|
-
import { CommonModule } from '@angular/common';
|
|
7
|
-
|
|
8
|
-
@Component({
|
|
9
|
-
selector: '<%= prefix %>-<%= componentName %>',
|
|
10
|
-
templateUrl: './<%= componentName %>.component.html',
|
|
11
|
-
styleUrls: [ './<%= componentName %>.component.scss' ],
|
|
12
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
13
|
-
imports: [
|
|
14
|
-
DataSourceDirective,
|
|
15
|
-
MatProgressBarModule,
|
|
16
|
-
CommonModule,
|
|
17
|
-
DataSourceErrorComponent,
|
|
18
|
-
],
|
|
19
|
-
standalone: true,
|
|
20
|
-
providers: [
|
|
21
|
-
<%= classify(name) %>PanelDataSource,
|
|
22
|
-
],
|
|
23
|
-
})
|
|
24
|
-
export class <%= classify(componentName) %>Component {
|
|
25
|
-
|
|
26
|
-
constructor(
|
|
27
|
-
public readonly panelDataSource: <%= classify(name) %>PanelDataSource,
|
|
28
|
-
) {}
|
|
29
|
-
|
|
30
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
2
|
-
import { <%= classify(name) %>DataGridComponent } from './<%= name %>-data-grid/<%= name %>-data-grid.component';
|
|
3
|
-
|
|
4
|
-
@Component({
|
|
5
|
-
selector: '<%= prefix %>-<%= componentName %>',
|
|
6
|
-
templateUrl: './<%= componentName %>.component.html',
|
|
7
|
-
styleUrls: [ './<%= componentName %>.component.scss' ],
|
|
8
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
9
|
-
standalone: true,
|
|
10
|
-
imports: [
|
|
11
|
-
<%= classify(name) %>DataGridComponent,
|
|
12
|
-
],
|
|
13
|
-
})
|
|
14
|
-
export class <%= classify(componentName) %>Component { }
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
2
|
-
import { <%= classify(name) %>DataGridDataSource } from './<%= name %>-data-grid/<%= name %>-data-grid.data-source';
|
|
3
|
-
import { CommonModule } from '@angular/common';
|
|
4
|
-
import { <%= classify(name) %>DataGridComponent } from './<%= name %>-data-grid/<%= name %>-data-grid.component';
|
|
5
|
-
import { DataSourceDirective } from '@rxap/data-source/directive';
|
|
6
|
-
import { DataSourceErrorComponent } from '@rxap/data-source';
|
|
7
|
-
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
8
|
-
|
|
9
|
-
@Component({
|
|
10
|
-
selector: '<%= prefix %>-<%= componentName %>',
|
|
11
|
-
templateUrl: './<%= componentName %>.component.html',
|
|
12
|
-
styleUrls: [ './<%= componentName %>.component.scss' ],
|
|
13
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
14
|
-
standalone: true,
|
|
15
|
-
imports: [
|
|
16
|
-
<%= classify(name) %>DataGridComponent,
|
|
17
|
-
DataSourceDirective,
|
|
18
|
-
CommonModule,
|
|
19
|
-
DataSourceErrorComponent,
|
|
20
|
-
MatProgressBarModule,
|
|
21
|
-
],
|
|
22
|
-
providers: [
|
|
23
|
-
<%= classify(name) %>DataGridDataSource,
|
|
24
|
-
],
|
|
25
|
-
})
|
|
26
|
-
export class <%= classify(componentName) %>Component {
|
|
27
|
-
|
|
28
|
-
constructor(
|
|
29
|
-
public readonly dataGridDataSource: <%= classify(name) %>DataGridDataSource,
|
|
30
|
-
) {}
|
|
31
|
-
|
|
32
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
2
|
-
import { ActivatedRoute } from '@angular/router';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { map } from 'rxjs/operators';
|
|
5
|
-
import { throwIfEmpty } from '@rxap/rxjs';
|
|
6
|
-
<% if (hasSharedModifier) { %>
|
|
7
|
-
import { <%= classify(name) %>TableComponent } from '<%= scope %>/shared/feature/<%= feature %>/<%= name %>-table/<%= name %>-table.component';
|
|
8
|
-
<% } else { %>
|
|
9
|
-
import { <%= classify(name) %>TableComponent } from './<%= name %>-table/<%= name %>-table.component';
|
|
10
|
-
<% } %>
|
|
11
|
-
|
|
12
|
-
@Component({
|
|
13
|
-
selector: '<%= prefix %>-<%= componentName %>',
|
|
14
|
-
templateUrl: './<%= componentName %>.component.html',
|
|
15
|
-
styleUrls: [ './<%= componentName %>.component.scss' ],
|
|
16
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
17
|
-
standalone: true,
|
|
18
|
-
imports: [
|
|
19
|
-
<%= classify(name) %>TableComponent,
|
|
20
|
-
],
|
|
21
|
-
})
|
|
22
|
-
export class <%= classify(componentName) %>Component {
|
|
23
|
-
|
|
24
|
-
public readonly parameters$: Observable<{ uuid: string }>;
|
|
25
|
-
|
|
26
|
-
constructor(private readonly route: ActivatedRoute) {
|
|
27
|
-
this.parameters$ = this.route.params.pipe(
|
|
28
|
-
map(({ uuid }) => uuid),
|
|
29
|
-
throwIfEmpty('Could not extract the uuid from route'),
|
|
30
|
-
map((uuid) => ({ uuid })),
|
|
31
|
-
);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
2
|
-
import { ActivatedRoute } from '@angular/router';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { map } from 'rxjs/operators';
|
|
5
|
-
import { throwIfEmpty } from '@rxap/rxjs';
|
|
6
|
-
<% if (hasSharedModifier) { %>
|
|
7
|
-
import { <%= classify(name) %>TreeTableComponent } from '<%= scope %>/shared/feature/<%= feature %>/<%= name %>-tree-table/<%= name %>-tree-table.component';
|
|
8
|
-
<% } else { %>
|
|
9
|
-
import { <%= classify(name) %>TreeTableComponent } from './<%= name %>-tree-table/<%= name %>-tree-table.component';
|
|
10
|
-
<% } %>
|
|
11
|
-
|
|
12
|
-
@Component({
|
|
13
|
-
selector: '<%= prefix %>-<%= componentName %>',
|
|
14
|
-
templateUrl: './<%= componentName %>.component.html',
|
|
15
|
-
styleUrls: [ './<%= componentName %>.component.scss' ],
|
|
16
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
17
|
-
standalone: true,
|
|
18
|
-
imports: [
|
|
19
|
-
<%= classify(name) %>TreeTableComponent,
|
|
20
|
-
],
|
|
21
|
-
})
|
|
22
|
-
export class <%= classify(componentName) %>Component {
|
|
23
|
-
|
|
24
|
-
public readonly parameters$: Observable<{ uuid: string }>;
|
|
25
|
-
|
|
26
|
-
constructor(private readonly route: ActivatedRoute) {
|
|
27
|
-
this.parameters$ = this.route.params.pipe(
|
|
28
|
-
map(({ uuid }) => uuid),
|
|
29
|
-
throwIfEmpty('Could not extract the uuid from route'),
|
|
30
|
-
map((uuid) => ({ uuid })),
|
|
31
|
-
);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
}
|
package/src/schematics/data-grid-component/files/form/__componentName__.component.html.template
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
<mat-card>
|
|
2
|
-
<% if (title) { %>
|
|
3
|
-
<mat-card-header>
|
|
4
|
-
<mat-card-title></mat-card-title>
|
|
5
|
-
<% if (subtitle) { %><mat-card-subtitle></mat-card-subtitle><% } %>
|
|
6
|
-
</mat-card-header>
|
|
7
|
-
<% } %>
|
|
8
|
-
<mat-card-content>
|
|
9
|
-
<div class="p-4">
|
|
10
|
-
<form #form="rxapForm" rxapForm>
|
|
11
|
-
<% if (collection) { %>
|
|
12
|
-
<rxap-data-grid [data]="data" mode="form">
|
|
13
|
-
<% } else { %>
|
|
14
|
-
<rxap-data-grid [dataSource]="dataGridDataSource" mode="form">
|
|
15
|
-
<% } %>
|
|
16
|
-
<% for (const item of itemList) { %>
|
|
17
|
-
<ng-container rxapDataGridRowDef="<%= item.name %>">
|
|
18
|
-
<% if (item.header) { %>
|
|
19
|
-
<th *rxapDataGridHeaderCellDef i18n><%= item.header %></th>
|
|
20
|
-
<% } %>
|
|
21
|
-
<ng-template rxapDataGridEditCellDef>
|
|
22
|
-
<% if (item.type === 'string') { %>
|
|
23
|
-
<mat-form-field class="w-full">
|
|
24
|
-
<input matInput formControlName="<%= item.name %>">
|
|
25
|
-
</mat-form-field>
|
|
26
|
-
<% } else if (item.type === 'number') { %>
|
|
27
|
-
<mat-form-field class="w-full">
|
|
28
|
-
<input matInput formControlName="<%= item.name %>" type="number">
|
|
29
|
-
</mat-form-field>
|
|
30
|
-
<% } else if (item.type === 'boolean') { %>
|
|
31
|
-
<mat-slide-toggle formControlName="<%= item.name %>"></mat-slide-toggle>
|
|
32
|
-
<% } else {%>
|
|
33
|
-
<!-- TODO: <%= item.name %> -->
|
|
34
|
-
<% } %>
|
|
35
|
-
</ng-template>
|
|
36
|
-
</ng-container>
|
|
37
|
-
<% } %>
|
|
38
|
-
</rxap-data-grid>
|
|
39
|
-
</form>
|
|
40
|
-
</div>
|
|
41
|
-
</mat-card-content>
|
|
42
|
-
</mat-card>
|
package/src/schematics/data-grid-component/files/form/__componentName__.component.ts.template
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
2
|
-
import { FormProviders, FormComponentProviders } from './form.providers';
|
|
3
|
-
<% if (collection) { %>
|
|
4
|
-
import { Input } from '@angular/core';
|
|
5
|
-
<% } else { %>
|
|
6
|
-
import { <%= classify(name) %>DataGridDataSource } from './<%= name %>-data-grid.data-source';
|
|
7
|
-
<% } %>
|
|
8
|
-
import { DataGridModule } from '@rxap/data-grid';
|
|
9
|
-
import { RxapFormsModule } from '@rxap/forms';
|
|
10
|
-
import { ReactiveFormsModule } from '@angular/forms';
|
|
11
|
-
import { MatCardModule } from '@angular/material/card';
|
|
12
|
-
|
|
13
|
-
@Component({
|
|
14
|
-
selector: '<%= prefix %>-<%= componentName %>',
|
|
15
|
-
templateUrl: './<%= componentName %>.component.html',
|
|
16
|
-
styleUrls: [ './<%= componentName %>.component.scss' ],
|
|
17
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
18
|
-
standalone: true,
|
|
19
|
-
imports: [
|
|
20
|
-
DataGridModule,
|
|
21
|
-
RxapFormsModule,
|
|
22
|
-
ReactiveFormsModule,
|
|
23
|
-
MatCardModule,
|
|
24
|
-
],
|
|
25
|
-
providers: [
|
|
26
|
-
<% if (!collection) { %>
|
|
27
|
-
<%= classify(name) %>DataGridDataSource,
|
|
28
|
-
<% } %>
|
|
29
|
-
FormProviders,
|
|
30
|
-
FormComponentProviders,
|
|
31
|
-
],
|
|
32
|
-
})
|
|
33
|
-
export class <%= classify(componentName) %>Component {
|
|
34
|
-
|
|
35
|
-
<% if (collection) { %>
|
|
36
|
-
@Input() data!: any;
|
|
37
|
-
<% } else { %>
|
|
38
|
-
constructor(
|
|
39
|
-
public readonly dataGridDataSource: <%= classify(name) %>DataGridDataSource,
|
|
40
|
-
) {}
|
|
41
|
-
<% } %>
|
|
42
|
-
|
|
43
|
-
}
|
package/src/schematics/data-grid-component/files/plain/__componentName__.component.html.template
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
<mat-card>
|
|
2
|
-
<% if (title) { %>
|
|
3
|
-
<mat-card-header>
|
|
4
|
-
<mat-card-title></mat-card-title>
|
|
5
|
-
<% if (subtitle) { %><mat-card-subtitle></mat-card-subtitle><% } %>
|
|
6
|
-
</mat-card-header>
|
|
7
|
-
<% } %>
|
|
8
|
-
<mat-card-content>
|
|
9
|
-
<div class="p-4">
|
|
10
|
-
<% if (collection) { %>
|
|
11
|
-
<rxap-data-grid [data]="data">
|
|
12
|
-
<% } else { %>
|
|
13
|
-
<rxap-data-grid [dataSource]="dataGridDataSource">
|
|
14
|
-
<% } %>
|
|
15
|
-
<% for (const item of itemList) { %>
|
|
16
|
-
<ng-container rxapDataGridRowDef="<%= item.name %>">
|
|
17
|
-
<% if (item.header) { %>
|
|
18
|
-
<th *rxapDataGridHeaderCellDef i18n><%= item.header %></th>
|
|
19
|
-
<% } %>
|
|
20
|
-
</ng-container>
|
|
21
|
-
<% } %>
|
|
22
|
-
</rxap-data-grid>
|
|
23
|
-
</div>
|
|
24
|
-
</mat-card-content>
|
|
25
|
-
</mat-card>
|
package/src/schematics/data-grid-component/files/plain/__componentName__.component.ts.template
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
2
|
-
<% if (collection) { %>
|
|
3
|
-
import { Input } from '@angular/core';
|
|
4
|
-
<% } else { %>
|
|
5
|
-
import { <%= classify(name) %>DataGridDataSource } from './<%= name %>-data-grid.data-source';
|
|
6
|
-
<% } %>
|
|
7
|
-
import { DataGridModule } from '@rxap/data-grid';
|
|
8
|
-
import { MatCardModule } from '@angular/material/card';
|
|
9
|
-
|
|
10
|
-
@Component({
|
|
11
|
-
selector: '<%= prefix %>-<%= componentName %>',
|
|
12
|
-
templateUrl: './<%= componentName %>.component.html',
|
|
13
|
-
styleUrls: [ './<%= componentName %>.component.scss' ],
|
|
14
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
15
|
-
standalone: true,
|
|
16
|
-
imports: [
|
|
17
|
-
DataGridModule,
|
|
18
|
-
MatCardModule,
|
|
19
|
-
],
|
|
20
|
-
providers: [
|
|
21
|
-
<% if (!collection) { %>
|
|
22
|
-
<%= classify(name) %>DataGridDataSource,
|
|
23
|
-
<% } %>
|
|
24
|
-
],
|
|
25
|
-
})
|
|
26
|
-
export class <%= classify(componentName) %>Component {
|
|
27
|
-
|
|
28
|
-
<% if (collection) { %>
|
|
29
|
-
@Input() data!: any;
|
|
30
|
-
<% } else { %>
|
|
31
|
-
constructor(
|
|
32
|
-
public readonly dataGridDataSource: <%= classify(name) %>DataGridDataSource,
|
|
33
|
-
) {}
|
|
34
|
-
<% } %>
|
|
35
|
-
|
|
36
|
-
}
|
package/src/schematics/form/form-component/files/component/__componentName__.component.ts.template
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
2
|
-
import { MAT_FORM_FIELD_DEFAULT_OPTIONS } from '@angular/material/form-field';
|
|
3
|
-
<% if (window) { %>
|
|
4
|
-
import { RXAP_WINDOW_SETTINGS } from '@rxap/window-system';
|
|
5
|
-
<% } %>
|
|
6
|
-
import { FormComponentProviders, FormProviders } from './form.providers';
|
|
7
|
-
import { FormControlsComponent, MaterialFormSystemModule } from '@rxap/material-form-system';
|
|
8
|
-
import { ReactiveFormsModule } from '@angular/forms';
|
|
9
|
-
import { RxapFormsModule } from '@rxap/forms';
|
|
10
|
-
import { CommonModule } from '@angular/common';
|
|
11
|
-
<% if (window) { %>
|
|
12
|
-
import { FormWindowFooterDirective } from '@rxap/form-window-system';
|
|
13
|
-
<% } %>
|
|
14
|
-
|
|
15
|
-
@Component({
|
|
16
|
-
selector: '<%= prefix%>-<%= name %>-form',
|
|
17
|
-
templateUrl: './<%= componentName %>.component.html',
|
|
18
|
-
styleUrls: [ './<%= componentName %>.component.scss' ],
|
|
19
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
20
|
-
standalone: true,
|
|
21
|
-
imports: [
|
|
22
|
-
CommonModule,
|
|
23
|
-
ReactiveFormsModule,
|
|
24
|
-
MaterialFormSystemModule,
|
|
25
|
-
FormControlsComponent,
|
|
26
|
-
RxapFormsModule,
|
|
27
|
-
<% if (window) { %>
|
|
28
|
-
FormWindowFooterDirective,
|
|
29
|
-
<% } %>
|
|
30
|
-
],
|
|
31
|
-
providers: [
|
|
32
|
-
FormProviders,
|
|
33
|
-
FormComponentProviders,
|
|
34
|
-
{
|
|
35
|
-
provide: MAT_FORM_FIELD_DEFAULT_OPTIONS,
|
|
36
|
-
useValue: {
|
|
37
|
-
appearance: 'fill',
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
<% if (window) { %>
|
|
41
|
-
{
|
|
42
|
-
provide: RXAP_WINDOW_SETTINGS,
|
|
43
|
-
useValue: {
|
|
44
|
-
title: $localize`<%= classify(name) %>`,
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
<% } %>
|
|
48
|
-
],
|
|
49
|
-
})
|
|
50
|
-
export class <%= classify(componentName) %>Component {}
|