@rxap/schematic-angular 16.2.0-dev.4 → 16.2.0-dev.41
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 +291 -0
- package/README.md +1 -1
- package/collection.json +15 -0
- package/package.json +15 -13
- package/src/lib/accordion-header.d.ts +5 -0
- package/src/lib/accordion-header.js +14 -5
- package/src/lib/accordion-header.js.map +1 -1
- package/src/lib/accordion-identifier.d.ts +6 -2
- package/src/lib/accordion-identifier.js +2 -1
- package/src/lib/accordion-identifier.js.map +1 -1
- package/src/lib/accordion-item.d.ts +25 -17
- package/src/lib/accordion-item.js +81 -42
- 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/coerce-accordion-component.js +5 -3
- package/src/lib/coerce-accordion-component.js.map +1 -1
- package/src/lib/coerce-accordion-item-table-component.js +1 -1
- package/src/lib/coerce-accordion-item-table-component.js.map +1 -1
- package/src/lib/coerce-form-component.js +18 -2
- package/src/lib/coerce-form-component.js.map +1 -1
- package/src/lib/coerce-minimum-table-component.js +8 -4
- package/src/lib/coerce-minimum-table-component.js.map +1 -1
- package/src/lib/coerce-tree-table-component.js +15 -3
- package/src/lib/coerce-tree-table-component.js.map +1 -1
- package/src/lib/css-class.d.ts +9 -0
- package/src/lib/css-class.js +52 -0
- package/src/lib/css-class.js.map +1 -0
- package/src/lib/data-grid-item.d.ts +46 -11
- package/src/lib/data-grid-item.js +86 -6
- package/src/lib/data-grid-item.js.map +1 -1
- package/src/lib/data-grid-mode.d.ts +4 -0
- package/src/lib/data-grid-mode.js +9 -0
- package/src/lib/data-grid-mode.js.map +1 -0
- package/src/lib/data-grid-options.d.ts +12 -5
- package/src/lib/data-grid-options.js +43 -13
- package/src/lib/data-grid-options.js.map +1 -1
- package/src/lib/form/abstract-control.d.ts +29 -0
- package/src/lib/form/abstract-control.js +37 -0
- package/src/lib/form/abstract-control.js.map +1 -0
- package/src/lib/form/array/base-form-array.d.ts +18 -0
- package/src/lib/form/array/base-form-array.js +40 -0
- package/src/lib/form/array/base-form-array.js.map +1 -0
- package/src/lib/form/array/form-array-kind.d.ts +3 -0
- package/src/lib/form/array/form-array-kind.js +8 -0
- package/src/lib/form/array/form-array-kind.js.map +1 -0
- package/src/lib/form/array/form-array.d.ts +12 -0
- package/src/lib/form/array/form-array.js +18 -0
- package/src/lib/form/array/form-array.js.map +1 -0
- package/src/lib/form/coerce-control-component-imports.d.ts +3 -0
- package/src/lib/form/coerce-control-component-imports.js +18 -0
- package/src/lib/form/coerce-control-component-imports.js.map +1 -0
- package/src/lib/form/control/autocomplete-table-select-form-control.d.ts +9 -0
- package/src/lib/form/control/autocomplete-table-select-form-control.js +58 -0
- package/src/lib/form/control/autocomplete-table-select-form-control.js.map +1 -0
- package/src/lib/form/control/base-form-control.d.ts +15 -0
- package/src/lib/form/control/base-form-control.js +19 -0
- package/src/lib/form/control/base-form-control.js.map +1 -0
- package/src/lib/form/control/checkbox-form-control.d.ts +11 -0
- package/src/lib/form/control/checkbox-form-control.js +23 -0
- package/src/lib/form/control/checkbox-form-control.js.map +1 -0
- package/src/lib/form/control/form-control-kind.d.ts +9 -0
- package/src/lib/form/control/form-control-kind.js +14 -0
- package/src/lib/form/control/form-control-kind.js.map +1 -0
- package/src/lib/form/control/form-control.d.ts +20 -0
- package/src/lib/form/control/form-control.js +43 -0
- package/src/lib/form/control/form-control.js.map +1 -0
- package/src/lib/form/control/form-field-form-control.d.ts +39 -0
- package/src/lib/form/control/form-field-form-control.js +81 -0
- package/src/lib/form/control/form-field-form-control.js.map +1 -0
- package/src/lib/form/control/input-form-control.d.ts +15 -0
- package/src/lib/form/control/input-form-control.js +75 -0
- package/src/lib/form/control/input-form-control.js.map +1 -0
- package/src/lib/form/control/select-form-control.d.ts +21 -0
- package/src/lib/form/control/select-form-control.js +30 -0
- package/src/lib/form/control/select-form-control.js.map +1 -0
- package/src/lib/form/control/slide-toggle-form-control.d.ts +11 -0
- package/src/lib/form/control/slide-toggle-form-control.js +23 -0
- package/src/lib/form/control/slide-toggle-form-control.js.map +1 -0
- package/src/lib/form/control/table-select-form-control.d.ts +46 -0
- package/src/lib/form/control/table-select-form-control.js +81 -0
- package/src/lib/form/control/table-select-form-control.js.map +1 -0
- package/src/lib/form/control.d.ts +8 -0
- package/src/lib/form/control.js +38 -0
- package/src/lib/form/control.js.map +1 -0
- 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/group/base-form-group.d.ts +17 -0
- package/src/lib/form/group/base-form-group.js +20 -0
- package/src/lib/form/group/base-form-group.js.map +1 -0
- package/src/lib/form/group/form-group-kind.d.ts +3 -0
- package/src/lib/form/group/form-group-kind.js +8 -0
- package/src/lib/form/group/form-group-kind.js.map +1 -0
- package/src/lib/form/group/form-group.d.ts +12 -0
- package/src/lib/form/group/form-group.js +18 -0
- package/src/lib/form/group/form-group.js.map +1 -0
- package/src/lib/load-handlebars-template.d.ts +6 -0
- package/src/lib/load-handlebars-template.js +36 -0
- package/src/lib/load-handlebars-template.js.map +1 -0
- package/src/lib/minimum-table-component-options.d.ts +12 -2
- package/src/lib/minimum-table-component-options.js +26 -19
- package/src/lib/minimum-table-component-options.js.map +1 -1
- package/src/lib/minimum-table-options.d.ts +17 -3
- package/src/lib/minimum-table-options.js +29 -5
- package/src/lib/minimum-table-options.js.map +1 -1
- package/src/lib/pipe-option.d.ts +11 -0
- package/src/lib/pipe-option.js +75 -0
- package/src/lib/pipe-option.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 +89 -0
- package/src/lib/table/table-filter-column-rule.js.map +1 -0
- package/src/lib/table-action.js.map +1 -1
- package/src/lib/table-column.d.ts +46 -13
- package/src/lib/table-column.js +147 -120
- package/src/lib/table-column.js.map +1 -1
- package/src/lib/table-options.d.ts +3 -2
- package/src/lib/table-options.js +22 -3
- package/src/lib/table-options.js.map +1 -1
- package/src/lib/table-row-action.d.ts +4 -2
- package/src/lib/table-row-action.js +8 -7
- package/src/lib/table-row-action.js.map +1 -1
- package/src/lib/tree-table-options.d.ts +3 -2
- package/src/lib/tree-table-options.js +39 -3
- 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/lib/value-option.d.ts +12 -0
- package/src/lib/value-option.js +66 -0
- package/src/lib/value-option.js.map +1 -0
- package/src/schema.json +2871 -0
- package/src/schematic-input.schema.json +560 -0
- package/src/schematics/abstract-control.schema.json +78 -0
- package/src/schematics/accordion/accordion-component/files/component/__componentName__.component.html.hbs +25 -0
- package/src/schematics/accordion/accordion-component/index.d.ts +5 -2
- package/src/schematics/accordion/accordion-component/index.js +56 -122
- package/src/schematics/accordion/accordion-component/index.js.map +1 -1
- package/src/schematics/accordion/accordion-component/schema.d.ts +6 -0
- package/src/schematics/accordion/accordion-component/schema.json +1636 -132
- package/src/schematics/accordion/accordion-component/template.schema.json +105 -0
- package/src/schematics/accordion/accordion-item-component/index.d.ts +9 -4
- package/src/schematics/accordion/accordion-item-component/index.js +112 -86
- package/src/schematics/accordion/accordion-item-component/index.js.map +1 -1
- package/src/schematics/accordion/accordion-item-component/schema.d.ts +2 -2
- package/src/schematics/accordion/accordion-item-component/schema.json +1597 -63
- package/src/schematics/accordion/accordion-item-component/template.schema.json +32 -0
- package/src/schematics/accordion/item/accordion-item-data-grid-component/index.d.ts +1 -1
- package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js +36 -54
- 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 +1 -1
- package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.json +1059 -73
- package/src/schematics/accordion/item/accordion-item-data-grid-component/template.schema.json +20 -0
- package/src/schematics/accordion/item/accordion-item-switch-component/index.d.ts +1 -1
- package/src/schematics/accordion/item/accordion-item-switch-component/index.js +16 -8
- 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 +1 -1
- package/src/schematics/accordion/item/accordion-item-switch-component/schema.json +1575 -187
- package/src/schematics/accordion/item/accordion-item-switch-component/template.schema.json +20 -0
- package/src/schematics/accordion/item/accordion-item-table-component/index.d.ts +1 -1
- package/src/schematics/accordion/item/accordion-item-table-component/index.js +19 -33
- 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 +1 -1
- package/src/schematics/accordion/item/accordion-item-table-component/schema.json +1139 -292
- package/src/schematics/accordion/item/accordion-item-table-component/template.schema.json +20 -0
- package/src/schematics/accordion/item/accordion-item-tree-table-component/index.d.ts +1 -1
- package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js +23 -84
- 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 +1 -1
- package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.json +1091 -260
- package/src/schematics/accordion/item/accordion-item-tree-table-component/template.schema.json +20 -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-identifier.schema.json +24 -0
- package/src/schematics/accordion-item.schema.json +52 -0
- package/src/schematics/angular.schema.json +11 -11
- package/src/schematics/autocomplete-table-select-form-control.schema.json +96 -0
- package/src/schematics/backend.schema.json +13 -0
- package/src/schematics/base-accordion-item.schema.json +52 -0
- package/src/schematics/base-form-array.schema.json +45 -0
- package/src/schematics/base-form-control.schema.json +27 -0
- package/src/schematics/base-form-group.schema.json +42 -0
- package/src/schematics/button.schema.json +30 -0
- package/src/schematics/checkbox-form-control.schema.json +30 -0
- package/src/schematics/control.schema.json +26 -0
- package/src/schematics/css-class.schema.json +34 -0
- package/src/schematics/data-grid-accordion-item.schema.json +34 -0
- package/src/schematics/data-grid-component/files/component/__componentName__.component.html.hbs +35 -0
- package/src/schematics/data-grid-component/index.d.ts +2 -4
- package/src/schematics/data-grid-component/index.js +101 -68
- package/src/schematics/data-grid-component/index.js.map +1 -1
- package/src/schematics/data-grid-component/schema.json +1009 -131
- package/src/schematics/data-grid-component/template.schema.json +20 -0
- package/src/schematics/data-grid-component/templates/default-data-grid-item.hbs +3 -0
- package/src/schematics/data-grid-component/templates/link-data-grid-item.hbs +8 -0
- package/src/schematics/data-grid-item.schema.json +50 -0
- package/src/schematics/data-grid.schema.json +66 -0
- package/src/schematics/dialog-component/schema.json +141 -65
- package/src/schematics/dialog-component/template.schema.json +62 -0
- package/src/schematics/form/control/autocomplete-table-select-form-control/index.d.ts +10 -0
- package/src/schematics/form/control/autocomplete-table-select-form-control/index.js +283 -0
- package/src/schematics/form/control/autocomplete-table-select-form-control/index.js.map +1 -0
- package/src/schematics/form/control/autocomplete-table-select-form-control/schema.d.ts +4 -0
- package/src/schematics/form/control/autocomplete-table-select-form-control/schema.json +450 -0
- package/src/schematics/form/control/autocomplete-table-select-form-control/template.schema.json +39 -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 -27
- 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 +338 -94
- package/src/schematics/form/control/input-form-control/template.schema.json +33 -0
- package/src/schematics/form/control/select-form-control/index.d.ts +4 -2
- package/src/schematics/form/control/select-form-control/index.js +140 -98
- 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 -4
- package/src/schematics/form/control/select-form-control/schema.json +406 -80
- package/src/schematics/form/control/select-form-control/template.schema.json +33 -0
- package/src/schematics/form/control/table-select-form-control/index.d.ts +5 -7
- package/src/schematics/form/control/table-select-form-control/index.js +207 -143
- 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 -5
- package/src/schematics/form/control/table-select-form-control/schema.json +448 -84
- package/src/schematics/form/control/table-select-form-control/template.schema.json +39 -0
- package/src/schematics/form/form-array/index.d.ts +9 -0
- package/src/schematics/form/form-array/index.js +54 -0
- package/src/schematics/form/form-array/index.js.map +1 -0
- package/src/schematics/form/form-array/schema.d.ts +4 -0
- package/src/schematics/form/form-array/schema.json +926 -0
- package/src/schematics/form/form-array/template.schema.json +33 -0
- package/src/schematics/form/form-component/files/component/{__componentName__.component.html.template → __componentName__.component.html.hbs} +7 -4
- package/src/schematics/form/form-component/index.d.ts +4 -4
- package/src/schematics/form/form-component/index.js +22 -23
- package/src/schematics/form/form-component/index.js.map +1 -1
- package/src/schematics/form/form-component/schema.d.ts +4 -2
- package/src/schematics/form/form-component/schema.json +926 -136
- package/src/schematics/form/form-component/template.schema.json +20 -0
- package/src/schematics/form/form-control/index.d.ts +6 -6
- package/src/schematics/form/form-control/index.js +25 -24
- package/src/schematics/form/form-control/index.js.map +1 -1
- package/src/schematics/form/form-control/schema.d.ts +2 -4
- package/src/schematics/form/form-control/schema.json +755 -67
- package/src/schematics/form/form-control/template.schema.json +33 -0
- package/src/schematics/form/form-definition/index.d.ts +2 -2
- package/src/schematics/form/form-definition/index.js +30 -4
- package/src/schematics/form/form-definition/index.js.map +1 -1
- package/src/schematics/form/form-definition/schema.d.ts +2 -2
- package/src/schematics/form/form-definition/schema.json +908 -118
- package/src/schematics/form/form-definition/template.schema.json +30 -0
- package/src/schematics/form/form-group/index.d.ts +9 -0
- package/src/schematics/form/form-group/index.js +54 -0
- package/src/schematics/form/form-group/index.js.map +1 -0
- package/src/schematics/form/form-group/schema.d.ts +4 -0
- package/src/schematics/form/form-group/schema.json +926 -0
- package/src/schematics/form/form-group/template.schema.json +33 -0
- package/src/schematics/form/templates/autocomplete-table-select-form-control.hbs +25 -0
- package/src/schematics/form/templates/checkbox-form-control.hbs +9 -0
- package/src/schematics/form/templates/default-form-array.hbs +27 -0
- package/src/schematics/form/templates/default-form-control.hbs +2 -0
- package/src/schematics/form/templates/default-form-group.hbs +13 -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/select-form-control.hbs +5 -0
- package/src/schematics/form/templates/slide-toggle-form-control.hbs +8 -0
- package/src/schematics/form/templates/table-select-form-control.hbs +19 -0
- package/src/schematics/form-array.schema.json +40 -0
- package/src/schematics/form-component.schema.json +45 -0
- package/src/schematics/form-control.schema.json +83 -0
- package/src/schematics/form-definition.schema.json +22 -0
- package/src/schematics/form-field.schema.json +24 -0
- package/src/schematics/form-group.schema.json +40 -0
- package/src/schematics/general.schema.json +1 -4
- package/src/schematics/header-button.schema.json +42 -0
- package/src/schematics/input-form-control.schema.json +59 -0
- package/src/schematics/minimum-table.schema.json +76 -0
- package/src/schematics/pipe.schema.json +38 -0
- package/src/schematics/property.schema.json +28 -0
- package/src/schematics/select-form-control.schema.json +74 -0
- package/src/schematics/slide-toggle-form-control.schema.json +30 -0
- package/src/schematics/switch-accordion-item.schema.json +82 -0
- package/src/schematics/table/action/dialog-table-action/schema.json +234 -119
- package/src/schematics/table/action/dialog-table-action/template.schema.json +58 -0
- package/src/schematics/table/action/form-table-action/index.d.ts +2 -2
- package/src/schematics/table/action/form-table-action/index.js +3 -4
- package/src/schematics/table/action/form-table-action/index.js.map +1 -1
- package/src/schematics/table/action/form-table-action/schema.d.ts +2 -2
- package/src/schematics/table/action/form-table-action/schema.json +1064 -138
- package/src/schematics/table/action/form-table-action/template.schema.json +75 -0
- package/src/schematics/table/action/navigation-table-action/schema.json +218 -80
- package/src/schematics/table/action/navigation-table-action/template.schema.json +28 -0
- package/src/schematics/table/action/open-api-table-action/schema.json +232 -92
- package/src/schematics/table/action/open-api-table-action/template.schema.json +56 -0
- package/src/schematics/table/action/operation-table-action/schema.json +205 -84
- package/src/schematics/table/action/operation-table-action/template.schema.json +14 -0
- package/src/schematics/table/header-button/form-table-header-button/index.d.ts +2 -2
- package/src/schematics/table/header-button/form-table-header-button/index.js +2 -2
- package/src/schematics/table/header-button/form-table-header-button/index.js.map +1 -1
- package/src/schematics/table/header-button/form-table-header-button/schema.d.ts +2 -2
- package/src/schematics/table/header-button/form-table-header-button/schema.json +995 -98
- package/src/schematics/table/header-button/form-table-header-button/template.schema.json +33 -0
- package/src/schematics/table/header-button/navigation-table-header-button/schema.json +167 -71
- package/src/schematics/table/header-button/navigation-table-header-button/template.schema.json +28 -0
- package/src/schematics/table/table-action/schema.json +195 -77
- package/src/schematics/table/table-action/template.schema.json +30 -0
- package/src/schematics/table/table-component/files/component/__componentName__.component.html.hbs +248 -0
- package/src/schematics/table/table-component/index.d.ts +0 -5
- package/src/schematics/table/table-component/index.js +16 -128
- package/src/schematics/table/table-component/index.js.map +1 -1
- package/src/schematics/table/table-component/schema.json +1064 -295
- package/src/schematics/table/table-component/template.schema.json +20 -0
- package/src/schematics/table/table-header-button/schema.json +145 -63
- package/src/schematics/table/table-header-button/template.schema.json +30 -0
- package/src/schematics/table/templates/boolean-table-column.hbs +17 -0
- package/src/schematics/table/templates/component-table-column.hbs +19 -0
- package/src/schematics/table/templates/copy-to-clipboard-table-column.hbs +17 -0
- package/src/schematics/table/templates/date-table-column.hbs +18 -0
- package/src/schematics/table/templates/default-table-column.hbs +17 -0
- package/src/schematics/table/templates/icon-table-column.hbs +17 -0
- package/src/schematics/table/templates/link-table-column.hbs +17 -0
- package/src/schematics/table/templates/mat-column-def.hbs +3 -0
- package/src/schematics/table/templates/spinner-table-column.hbs +21 -0
- package/src/schematics/table/templates/tree-table-column.hbs +15 -0
- package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.hbs +253 -0
- package/src/schematics/table/tree-table-component/index.d.ts +3 -0
- package/src/schematics/table/tree-table-component/index.js +33 -7
- package/src/schematics/table/tree-table-component/index.js.map +1 -1
- package/src/schematics/table/tree-table-component/schema.json +1041 -264
- package/src/schematics/table/tree-table-component/template.schema.json +20 -0
- package/src/schematics/table-accordion-item.schema.json +41 -0
- package/src/schematics/table-action.schema.json +65 -0
- package/src/schematics/table-column.schema.json +81 -0
- package/src/schematics/table-select-form-control.schema.json +102 -0
- package/src/schematics/table.schema.json +57 -0
- package/src/schematics/templates/css-class.hbs +1 -0
- package/src/schematics/templates/pipe.hbs +4 -0
- package/src/schematics/textarea-form-control.schema.json +32 -0
- package/src/schematics/tree-component/schema.json +115 -70
- package/src/schematics/tree-component/template.schema.json +36 -0
- package/src/schematics/tree-table-accordion-item.schema.json +41 -0
- package/src/schematics/tree-table.schema.json +41 -0
- package/src/schematics/type.schema.json +35 -0
- package/src/schematics/upstream.schema.json +56 -0
- package/src/schematics/value.schema.json +26 -0
- package/src/template.schema.json +236 -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/form-component-control.d.ts +0 -12
- package/src/lib/form-component-control.js +0 -15
- package/src/lib/form-component-control.js.map +0 -1
- package/src/lib/form-definition-control.d.ts +0 -59
- package/src/lib/form-definition-control.js +0 -156
- package/src/lib/form-definition-control.js.map +0 -1
- package/src/lib/merge-with-column-list.d.ts +0 -3
- package/src/lib/merge-with-column-list.js +0 -18
- package/src/lib/merge-with-column-list.js.map +0 -1
- package/src/schematics/accordion/accordion-component/files/component/__componentName__.component.html.template +0 -94
- package/src/schematics/accordion/accordion-component/files/header-component/accordion-header.component.html.template +0 -10
- package/src/schematics/data-grid-component/files/form/__componentName__.component.html.template +0 -42
- package/src/schematics/data-grid-component/files/plain/__componentName__.component.html.template +0 -25
- package/src/schematics/table/table-component/files/component/__componentName__.component.html.template +0 -299
- package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.template +0 -259
|
@@ -1,106 +1,470 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json-schema.org/schema",
|
|
3
|
-
"$id": "table-select-form-control",
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
"type": "string",
|
|
8
|
-
"description": "The name of form control",
|
|
9
|
-
"x-prompt": "Enter the name of the form control?"
|
|
3
|
+
"$id": "table-select-form-control-schematic",
|
|
4
|
+
"allOf": [
|
|
5
|
+
{
|
|
6
|
+
"$ref": "#/definitions/angular"
|
|
10
7
|
},
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
"type": "string",
|
|
14
|
-
"description": "The name of the form where the form control should be added",
|
|
15
|
-
"x-prompt": "Enter the name of the form where the form control should be added"
|
|
8
|
+
{
|
|
9
|
+
"$ref": "#/definitions/tableSelectFormControl"
|
|
16
10
|
},
|
|
17
|
-
|
|
18
|
-
"type": "
|
|
19
|
-
"
|
|
20
|
-
|
|
11
|
+
{
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"formName": {
|
|
15
|
+
"alias": "form",
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "The name of the form where the form control should be added"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"required": [
|
|
21
|
+
"formName"
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"definitions": {
|
|
26
|
+
"abstractControl": {
|
|
27
|
+
"allOf": [
|
|
28
|
+
{
|
|
29
|
+
"$ref": "#/definitions/property"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"type": "object",
|
|
33
|
+
"properties": {
|
|
34
|
+
"name": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"description": "The name of the control"
|
|
37
|
+
},
|
|
38
|
+
"isArray": {
|
|
39
|
+
"type": "boolean",
|
|
40
|
+
"description": "Whether the control value is an array",
|
|
41
|
+
"default": false
|
|
42
|
+
},
|
|
43
|
+
"state": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"description": "The initial state of the control"
|
|
46
|
+
},
|
|
47
|
+
"isRequired": {
|
|
48
|
+
"type": "boolean",
|
|
49
|
+
"description": "Whether the control value is required",
|
|
50
|
+
"default": false
|
|
51
|
+
},
|
|
52
|
+
"isReadonly": {
|
|
53
|
+
"type": "boolean",
|
|
54
|
+
"description": "Whether the control value is readonly",
|
|
55
|
+
"default": false
|
|
56
|
+
},
|
|
57
|
+
"isDisabled": {
|
|
58
|
+
"type": "boolean",
|
|
59
|
+
"description": "Whether the control value is disabled",
|
|
60
|
+
"default": false
|
|
61
|
+
},
|
|
62
|
+
"validatorList": {
|
|
63
|
+
"type": "array",
|
|
64
|
+
"items": {
|
|
65
|
+
"type": "string"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"kind": {
|
|
69
|
+
"type": "string",
|
|
70
|
+
"description": "The kind of the control",
|
|
71
|
+
"default": "default"
|
|
72
|
+
},
|
|
73
|
+
"importList": {
|
|
74
|
+
"type": "array",
|
|
75
|
+
"items": {
|
|
76
|
+
"$ref": "#/definitions/type"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"template": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"description": "The template of the control"
|
|
82
|
+
},
|
|
83
|
+
"role": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"description": "The role of the control",
|
|
86
|
+
"enum": [
|
|
87
|
+
"control",
|
|
88
|
+
"group",
|
|
89
|
+
"array"
|
|
90
|
+
],
|
|
91
|
+
"default": "control"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"additionalProperties": true
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
"accordionIdentifier": {
|
|
99
|
+
"type": "object",
|
|
100
|
+
"properties": {
|
|
101
|
+
"property": {
|
|
102
|
+
"$ref": "#/definitions/property"
|
|
103
|
+
},
|
|
104
|
+
"source": {
|
|
105
|
+
"type": "string",
|
|
106
|
+
"enum": [
|
|
107
|
+
"route"
|
|
108
|
+
]
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"required": [
|
|
112
|
+
"property"
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
"angular": {
|
|
116
|
+
"allOf": [
|
|
117
|
+
{
|
|
118
|
+
"$ref": "#/definitions/general"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"type": "object",
|
|
122
|
+
"properties": {
|
|
123
|
+
"componentName": {
|
|
124
|
+
"type": "string"
|
|
125
|
+
},
|
|
126
|
+
"name": {
|
|
127
|
+
"type": "string"
|
|
128
|
+
},
|
|
129
|
+
"context": {
|
|
130
|
+
"type": "string",
|
|
131
|
+
"description": "The context use to generate proper names for class, files, etc"
|
|
132
|
+
},
|
|
133
|
+
"nestModule": {
|
|
134
|
+
"type": "string",
|
|
135
|
+
"description": "The module name for the table nest operations"
|
|
136
|
+
},
|
|
137
|
+
"controllerName": {
|
|
138
|
+
"type": "string"
|
|
139
|
+
},
|
|
140
|
+
"backend": {
|
|
141
|
+
"$ref": "#/definitions/backend"
|
|
142
|
+
},
|
|
143
|
+
"directory": {
|
|
144
|
+
"type": "string",
|
|
145
|
+
"description": "A directory name or absolute path where the files should be generated. Relative to the project and feature base path if a feature is defined"
|
|
146
|
+
},
|
|
147
|
+
"shared": {
|
|
148
|
+
"type": "boolean",
|
|
149
|
+
"description": "Whether the generated code is used across the project",
|
|
150
|
+
"default": false
|
|
151
|
+
},
|
|
152
|
+
"scope": {
|
|
153
|
+
"type": "string"
|
|
154
|
+
},
|
|
155
|
+
"prefix": {
|
|
156
|
+
"type": "string"
|
|
157
|
+
},
|
|
158
|
+
"openApi": {
|
|
159
|
+
"type": "object",
|
|
160
|
+
"additionalProperties": true
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
]
|
|
21
165
|
},
|
|
22
166
|
"backend": {
|
|
23
167
|
"type": "string",
|
|
24
168
|
"description": "The backend that should be used to handel data",
|
|
25
169
|
"enum": [
|
|
26
170
|
"none",
|
|
27
|
-
"local",
|
|
28
171
|
"nestjs",
|
|
29
|
-
"open-api"
|
|
172
|
+
"open-api",
|
|
173
|
+
"local"
|
|
30
174
|
],
|
|
31
175
|
"default": "none"
|
|
32
176
|
},
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
"type": "string",
|
|
53
|
-
"description": "Name of the nest controller"
|
|
54
|
-
},
|
|
55
|
-
"type": {
|
|
56
|
-
"type": "string",
|
|
57
|
-
"description": "The data type of the form control"
|
|
177
|
+
"baseFormControl": {
|
|
178
|
+
"allOf": [
|
|
179
|
+
{
|
|
180
|
+
"$ref": "#/definitions/abstractControl"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"type": "object",
|
|
184
|
+
"properties": {
|
|
185
|
+
"label": {
|
|
186
|
+
"type": "string",
|
|
187
|
+
"description": "The label of the control"
|
|
188
|
+
},
|
|
189
|
+
"role": {
|
|
190
|
+
"type": "string",
|
|
191
|
+
"const": "control"
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
]
|
|
58
196
|
},
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
197
|
+
"button": {
|
|
198
|
+
"type": "object",
|
|
199
|
+
"properties": {
|
|
200
|
+
"svgIcon": {
|
|
201
|
+
"type": "string"
|
|
202
|
+
},
|
|
203
|
+
"icon": {
|
|
204
|
+
"type": "string"
|
|
205
|
+
},
|
|
206
|
+
"directiveList": {
|
|
207
|
+
"type": "array",
|
|
208
|
+
"items": {
|
|
209
|
+
"$ref": "#/definitions/type"
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
"importList": {
|
|
213
|
+
"type": "array",
|
|
214
|
+
"items": {
|
|
215
|
+
"$ref": "#/definitions/type"
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
66
219
|
},
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
|
|
220
|
+
"formField": {
|
|
221
|
+
"type": "object",
|
|
222
|
+
"properties": {
|
|
223
|
+
"label": {
|
|
224
|
+
"type": "string"
|
|
225
|
+
},
|
|
226
|
+
"prefixButton": {
|
|
227
|
+
"$ref": "#/definitions/button"
|
|
228
|
+
},
|
|
229
|
+
"suffixButton": {
|
|
230
|
+
"$ref": "#/definitions/button"
|
|
231
|
+
},
|
|
232
|
+
"hasClearButton": {
|
|
233
|
+
"type": "boolean"
|
|
234
|
+
}
|
|
235
|
+
}
|
|
71
236
|
},
|
|
72
|
-
"
|
|
73
|
-
"type": "
|
|
74
|
-
"
|
|
237
|
+
"general": {
|
|
238
|
+
"type": "object",
|
|
239
|
+
"properties": {
|
|
240
|
+
"project": {
|
|
241
|
+
"type": "string",
|
|
242
|
+
"description": "Project name where the files should be generated"
|
|
243
|
+
},
|
|
244
|
+
"feature": {
|
|
245
|
+
"type": "string",
|
|
246
|
+
"description": "Feature name where the files should be generated"
|
|
247
|
+
},
|
|
248
|
+
"overwrite": {
|
|
249
|
+
"anyOf": [
|
|
250
|
+
{
|
|
251
|
+
"type": "boolean"
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"type": "array",
|
|
255
|
+
"items": {
|
|
256
|
+
"type": "string"
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
],
|
|
260
|
+
"description": "Overwrite existing files",
|
|
261
|
+
"default": false
|
|
262
|
+
},
|
|
263
|
+
"overwriteHtml": {
|
|
264
|
+
"type": "boolean",
|
|
265
|
+
"default": false
|
|
266
|
+
},
|
|
267
|
+
"replace": {
|
|
268
|
+
"type": "boolean",
|
|
269
|
+
"default": false
|
|
270
|
+
}
|
|
271
|
+
}
|
|
75
272
|
},
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
|
|
79
|
-
|
|
273
|
+
"property": {
|
|
274
|
+
"oneOf": [
|
|
275
|
+
{
|
|
276
|
+
"type": "string"
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"type": "object",
|
|
280
|
+
"properties": {
|
|
281
|
+
"name": {
|
|
282
|
+
"type": "string"
|
|
283
|
+
},
|
|
284
|
+
"type": {
|
|
285
|
+
"$ref": "#/definitions/type"
|
|
286
|
+
},
|
|
287
|
+
"isArray": {
|
|
288
|
+
"type": "boolean"
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
]
|
|
80
293
|
},
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
|
|
84
|
-
|
|
294
|
+
"tableSelectFormControl": {
|
|
295
|
+
"allOf": [
|
|
296
|
+
{
|
|
297
|
+
"$ref": "#/definitions/baseFormControl"
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"type": "object",
|
|
301
|
+
"properties": {
|
|
302
|
+
"formField": {
|
|
303
|
+
"$ref": "#/definitions/formField"
|
|
304
|
+
},
|
|
305
|
+
"kind": {
|
|
306
|
+
"type": "string",
|
|
307
|
+
"const": "table-select"
|
|
308
|
+
},
|
|
309
|
+
"placeholder": {
|
|
310
|
+
"type": "string"
|
|
311
|
+
},
|
|
312
|
+
"columnList": {
|
|
313
|
+
"alias": "column",
|
|
314
|
+
"type": "array",
|
|
315
|
+
"items": {
|
|
316
|
+
"description": "table column name",
|
|
317
|
+
"type": "object",
|
|
318
|
+
"properties": {
|
|
319
|
+
"name": {
|
|
320
|
+
"type": "string",
|
|
321
|
+
"description": "table column name"
|
|
322
|
+
},
|
|
323
|
+
"title": {
|
|
324
|
+
"type": "string",
|
|
325
|
+
"description": "table column label"
|
|
326
|
+
},
|
|
327
|
+
"hasFilter": {
|
|
328
|
+
"type": "boolean",
|
|
329
|
+
"description": "Whether the column has a filter"
|
|
330
|
+
},
|
|
331
|
+
"kind": {
|
|
332
|
+
"type": "string",
|
|
333
|
+
"description": "The kind of data in the column"
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
"description": "List of table column names"
|
|
338
|
+
},
|
|
339
|
+
"title": {
|
|
340
|
+
"type": "string",
|
|
341
|
+
"description": "The title of the table select window"
|
|
342
|
+
},
|
|
343
|
+
"toDisplay": {
|
|
344
|
+
"type": "object",
|
|
345
|
+
"properties": {
|
|
346
|
+
"property": {
|
|
347
|
+
"$ref": "#/definitions/property"
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
"toValue": {
|
|
352
|
+
"type": "object",
|
|
353
|
+
"properties": {
|
|
354
|
+
"property": {
|
|
355
|
+
"$ref": "#/definitions/property"
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
"upstream": {
|
|
360
|
+
"$ref": "#/definitions/upstream"
|
|
361
|
+
},
|
|
362
|
+
"resolver": {
|
|
363
|
+
"type": "object",
|
|
364
|
+
"properties": {
|
|
365
|
+
"upstream": {
|
|
366
|
+
"$ref": "#/definitions/upstream"
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
},
|
|
370
|
+
"identifier": {
|
|
371
|
+
"$ref": "#/definitions/accordionIdentifier"
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
]
|
|
85
376
|
},
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
377
|
+
"type": {
|
|
378
|
+
"oneOf": [
|
|
379
|
+
{
|
|
380
|
+
"type": "string"
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
"type": "object",
|
|
384
|
+
"properties": {
|
|
385
|
+
"name": {
|
|
386
|
+
"type": "string"
|
|
387
|
+
},
|
|
388
|
+
"isTypeOnly": {
|
|
389
|
+
"type": "boolean"
|
|
390
|
+
},
|
|
391
|
+
"moduleSpecifier": {
|
|
392
|
+
"type": "string"
|
|
393
|
+
},
|
|
394
|
+
"namedImport": {
|
|
395
|
+
"type": "string"
|
|
396
|
+
},
|
|
397
|
+
"namespaceImport": {
|
|
398
|
+
"type": "string"
|
|
399
|
+
},
|
|
400
|
+
"defaultImport": {
|
|
401
|
+
"type": "string"
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
"required": [
|
|
405
|
+
"name"
|
|
406
|
+
]
|
|
407
|
+
}
|
|
408
|
+
]
|
|
94
409
|
},
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
|
|
410
|
+
"upstream": {
|
|
411
|
+
"oneOf": [
|
|
412
|
+
{
|
|
413
|
+
"type": "object",
|
|
414
|
+
"properties": {
|
|
415
|
+
"kind": {
|
|
416
|
+
"type": "string",
|
|
417
|
+
"enum": [
|
|
418
|
+
"open-api"
|
|
419
|
+
]
|
|
420
|
+
},
|
|
421
|
+
"operationId": {
|
|
422
|
+
"type": "string"
|
|
423
|
+
},
|
|
424
|
+
"scope": {
|
|
425
|
+
"type": "string"
|
|
426
|
+
},
|
|
427
|
+
"mapper": {
|
|
428
|
+
"type": "object",
|
|
429
|
+
"properties": {
|
|
430
|
+
"pageIndex": {
|
|
431
|
+
"type": "string"
|
|
432
|
+
},
|
|
433
|
+
"pageSize": {
|
|
434
|
+
"type": "string"
|
|
435
|
+
},
|
|
436
|
+
"sortBy": {
|
|
437
|
+
"type": "string"
|
|
438
|
+
},
|
|
439
|
+
"sortDirection": {
|
|
440
|
+
"type": "string"
|
|
441
|
+
},
|
|
442
|
+
"list": {
|
|
443
|
+
"type": "string"
|
|
444
|
+
},
|
|
445
|
+
"total": {
|
|
446
|
+
"type": "string"
|
|
447
|
+
},
|
|
448
|
+
"filter": {
|
|
449
|
+
"type": "object",
|
|
450
|
+
"properties": {
|
|
451
|
+
"eq": {
|
|
452
|
+
"type": "string"
|
|
453
|
+
},
|
|
454
|
+
"join": {
|
|
455
|
+
"type": "string"
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
},
|
|
462
|
+
"required": [
|
|
463
|
+
"kind",
|
|
464
|
+
"operationId"
|
|
465
|
+
]
|
|
466
|
+
}
|
|
467
|
+
]
|
|
98
468
|
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
"name",
|
|
102
|
-
"formName",
|
|
103
|
-
"project",
|
|
104
|
-
"feature"
|
|
105
|
-
]
|
|
106
|
-
}
|
|
469
|
+
}
|
|
470
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "table-select-form-control-schematic",
|
|
4
|
+
"allOf": [
|
|
5
|
+
{
|
|
6
|
+
"$ref": "#/definitions/angular"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"$ref": "#/definitions/tableSelectFormControl"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"formName": {
|
|
15
|
+
"alias": "form",
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "The name of the form where the form control should be added"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"required": [
|
|
21
|
+
"formName"
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"definitions": {
|
|
26
|
+
"angular": {
|
|
27
|
+
"$ref": "../../../angular.schema.json"
|
|
28
|
+
},
|
|
29
|
+
"property": {
|
|
30
|
+
"$ref": "../../../property.schema.json"
|
|
31
|
+
},
|
|
32
|
+
"upstream": {
|
|
33
|
+
"$ref": "../../../upstream.schema.json"
|
|
34
|
+
},
|
|
35
|
+
"tableSelectFormControl": {
|
|
36
|
+
"$ref": "../../../table-select-form-control.schema.json"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Rule } from '@angular-devkit/schematics';
|
|
2
|
+
import { NonNullableSelected, Normalized } from '@rxap/utilities';
|
|
3
|
+
import { NormalizedAngularOptions } from '../../../lib/angular-options';
|
|
4
|
+
import { NormalizedFormArray } from '../../../lib/form/array/form-array';
|
|
5
|
+
import { FormArrayOptions } from './schema';
|
|
6
|
+
import 'colors';
|
|
7
|
+
export type NormalizedFormArrayOptions = Readonly<Normalized<Pick<FormArrayOptions, 'formName'>>> & NonNullableSelected<NormalizedAngularOptions, 'controllerName'> & NormalizedFormArray;
|
|
8
|
+
export declare function NormalizeFormArrayOptions(options: Readonly<FormArrayOptions>): NormalizedFormArrayOptions;
|
|
9
|
+
export default function (options: FormArrayOptions): () => Rule;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NormalizeFormArrayOptions = void 0;
|
|
4
|
+
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
+
const schematics_ts_morph_1 = require("@rxap/schematics-ts-morph");
|
|
6
|
+
const schematics_utilities_1 = require("@rxap/schematics-utilities");
|
|
7
|
+
const utilities_1 = require("@rxap/utilities");
|
|
8
|
+
const angular_options_1 = require("../../../lib/angular-options");
|
|
9
|
+
const form_array_1 = require("../../../lib/form/array/form-array");
|
|
10
|
+
const form_array_kind_1 = require("../../../lib/form/array/form-array-kind");
|
|
11
|
+
require("colors");
|
|
12
|
+
function NormalizeFormArrayOptions(options) {
|
|
13
|
+
var _a;
|
|
14
|
+
const normalizedAngularOptions = (0, angular_options_1.NormalizeAngularOptions)(options);
|
|
15
|
+
const normalizedFormDefinitionControl = (0, form_array_1.NormalizeFormArray)(options);
|
|
16
|
+
const formName = (0, utilities_1.dasherize)(options.formName);
|
|
17
|
+
const controllerName = (_a = options.controllerName) !== null && _a !== void 0 ? _a : formName;
|
|
18
|
+
return Object.freeze(Object.assign(Object.assign(Object.assign({}, normalizedAngularOptions), normalizedFormDefinitionControl), { formName,
|
|
19
|
+
controllerName, context: options.context ? (0, utilities_1.dasherize)(options.context) : null }));
|
|
20
|
+
}
|
|
21
|
+
exports.NormalizeFormArrayOptions = NormalizeFormArrayOptions;
|
|
22
|
+
function printOptions(options) {
|
|
23
|
+
(0, angular_options_1.PrintAngularOptions)('form-control', options);
|
|
24
|
+
console.log(`=== form: ${options.formName}`.blue);
|
|
25
|
+
}
|
|
26
|
+
function formControlKind(normalizedOptions) {
|
|
27
|
+
switch (normalizedOptions.kind) {
|
|
28
|
+
case form_array_kind_1.FormArrayKind.DEFAULT:
|
|
29
|
+
default:
|
|
30
|
+
return () => console.log(`No schematic for form array kind: ${normalizedOptions.kind}`.yellow);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
function formDefinitionRule(normalizedOptions) {
|
|
34
|
+
const { formName, name } = normalizedOptions;
|
|
35
|
+
return (0, schematics_1.chain)([
|
|
36
|
+
(0, schematics_utilities_1.ExecuteSchematic)('form-definition', Object.assign(Object.assign({}, normalizedOptions), { name: [formName, name].join('-'), standalone: false })),
|
|
37
|
+
]);
|
|
38
|
+
}
|
|
39
|
+
function default_1(options) {
|
|
40
|
+
const normalizedOptions = NormalizeFormArrayOptions(options);
|
|
41
|
+
printOptions(normalizedOptions);
|
|
42
|
+
return () => {
|
|
43
|
+
return (0, schematics_1.chain)([
|
|
44
|
+
() => console.group('[@rxap/schematics-angular:form-array]'.green),
|
|
45
|
+
() => console.log('Coerce form array in form definition class ...'),
|
|
46
|
+
(0, schematics_ts_morph_1.CoerceFormDefinitionFormArray)(normalizedOptions),
|
|
47
|
+
formControlKind(normalizedOptions),
|
|
48
|
+
formDefinitionRule(normalizedOptions),
|
|
49
|
+
() => console.groupEnd(),
|
|
50
|
+
]);
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
exports.default = default_1;
|
|
54
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/schematic/angular/src/schematics/form/form-array/index.ts"],"names":[],"mappings":";;;AAAA,2DAGoC;AACpC,mEAA0E;AAC1E,qEAA8D;AAC9D,+CAIyB;AACzB,kEAIsC;AACtC,mEAG4C;AAC5C,6EAAwE;AAExE,kBAAgB;AAIhB,SAAgB,yBAAyB,CACvC,OAAmC;;IAEnC,MAAM,wBAAwB,GAAG,IAAA,yCAAuB,EAAC,OAAO,CAAC,CAAC;IAClE,MAAM,+BAA+B,GAAG,IAAA,+BAAkB,EAAC,OAAO,CAAC,CAAC;IACpE,MAAM,QAAQ,GAAG,IAAA,qBAAS,EAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC7C,MAAM,cAAc,GAAG,MAAA,OAAO,CAAC,cAAc,mCAAI,QAAQ,CAAC;IAC1D,OAAO,MAAM,CAAC,MAAM,+CACf,wBAAwB,GACxB,+BAA+B,KAClC,QAAQ;QACR,cAAc,EACd,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,IAAA,qBAAS,EAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,IAC5D,CAAC;AACL,CAAC;AAdD,8DAcC;AAED,SAAS,YAAY,CAAC,OAAmC;IACvD,IAAA,qCAAmB,EAAC,cAAc,EAAE,OAAO,CAAC,CAAC;IAC7C,OAAO,CAAC,GAAG,CAAC,aAAa,OAAO,CAAC,QAAQ,EAAE,CAAC,IAAI,CAAC,CAAC;AACpD,CAAC;AAED,SAAS,eAAe,CAAC,iBAA6C;IACpE,QAAQ,iBAAiB,CAAC,IAAI,EAAE;QAE9B,KAAK,+BAAa,CAAC,OAAO,CAAC;QAC3B;YACE,OAAO,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,qCAAqC,iBAAiB,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC,CAAC;KAElG;AACH,CAAC;AAED,SAAS,kBAAkB,CAAC,iBAA6C;IACvE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,iBAAiB,CAAC;IAC7C,OAAO,IAAA,kBAAK,EAAC;QACX,IAAA,uCAAgB,EAAC,iBAAiB,kCAC7B,iBAAiB,KACpB,IAAI,EAAE,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAChC,UAAU,EAAE,KAAK,IACjB;KACH,CAAC,CAAC;AACL,CAAC;AAED,mBAAyB,OAAyB;IAChD,MAAM,iBAAiB,GAAG,yBAAyB,CAAC,OAAO,CAAC,CAAC;IAC7D,YAAY,CAAC,iBAAiB,CAAC,CAAC;IAEhC,OAAO,GAAG,EAAE;QACV,OAAO,IAAA,kBAAK,EAAC;YACX,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,uCAAuC,CAAC,KAAK,CAAC;YAClE,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,gDAAgD,CAAC;YACnE,IAAA,mDAA6B,EAAC,iBAAiB,CAAC;YAChD,eAAe,CAAC,iBAAiB,CAAC;YAClC,kBAAkB,CAAC,iBAAiB,CAAC;YACrC,GAAG,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE;SACzB,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAdD,4BAcC"}
|