@rxap/schematic-angular 16.2.0-dev.8 → 16.2.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 +398 -0
- package/README.md +1 -1
- package/collection.json +20 -0
- package/package.json +19 -20
- package/src/lib/accordion-header.js +8 -5
- package/src/lib/accordion-header.js.map +1 -1
- package/src/lib/accordion-identifier.d.ts +8 -4
- package/src/lib/accordion-identifier.js +4 -3
- package/src/lib/accordion-identifier.js.map +1 -1
- package/src/lib/accordion-item.d.ts +13 -6
- package/src/lib/accordion-item.js +42 -15
- package/src/lib/accordion-item.js.map +1 -1
- package/src/lib/angular-options.d.ts +2 -2
- package/src/lib/angular-options.js.map +1 -1
- package/src/lib/coerce-accordion-component.js +4 -2
- 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 +16 -3
- package/src/lib/coerce-form-component.js.map +1 -1
- package/src/lib/coerce-minimum-table-component.js +16 -5
- package/src/lib/coerce-minimum-table-component.js.map +1 -1
- package/src/lib/coerce-tree-table-component.js +1 -5
- package/src/lib/coerce-tree-table-component.js.map +1 -1
- package/src/lib/component-options.d.ts +10 -0
- package/src/lib/component-options.js +14 -0
- package/src/lib/component-options.js.map +1 -0
- 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 +45 -7
- package/src/lib/data-grid-item.js +102 -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 +10 -5
- package/src/lib/data-grid-options.js +42 -15
- package/src/lib/data-grid-options.js.map +1 -1
- package/src/lib/form/abstract-control.d.ts +31 -0
- package/src/lib/form/abstract-control.js +48 -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 +41 -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 +10 -0
- package/src/lib/form/control/form-control-kind.js +15 -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 +46 -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 +87 -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 +22 -0
- package/src/lib/form/control/select-form-control.js +47 -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 +82 -0
- package/src/lib/form/control/table-select-form-control.js.map +1 -0
- package/src/lib/form/control/textarea-form-control.d.ts +22 -0
- package/src/lib/form/control/textarea-form-control.js +52 -0
- package/src/lib/form/control/textarea-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 +2 -2
- 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 +3 -0
- package/src/lib/load-handlebars-template.js +13 -1
- package/src/lib/load-handlebars-template.js.map +1 -1
- package/src/lib/minimum-table-component-options.d.ts +1 -1
- package/src/lib/minimum-table-component-options.js +22 -15
- package/src/lib/minimum-table-component-options.js.map +1 -1
- package/src/lib/minimum-table-options.d.ts +22 -4
- package/src/lib/minimum-table-options.js +40 -6
- 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/route-component.d.ts +16 -0
- package/src/lib/route-component.js +15 -0
- package/src/lib/route-component.js.map +1 -0
- package/src/lib/table/column/base-table-column.d.ts +61 -0
- package/src/lib/table/column/base-table-column.js +309 -0
- package/src/lib/table/column/base-table-column.js.map +1 -0
- package/src/lib/table/column/boolean-table-column.d.ts +8 -0
- package/src/lib/table/column/boolean-table-column.js +10 -0
- package/src/lib/table/column/boolean-table-column.js.map +1 -0
- package/src/lib/table/column/custom-table-column.d.ts +11 -0
- package/src/lib/table/column/custom-table-column.js +11 -0
- package/src/lib/table/column/custom-table-column.js.map +1 -0
- package/src/lib/table/column/date-table-column.d.ts +11 -0
- package/src/lib/table/column/date-table-column.js +11 -0
- package/src/lib/table/column/date-table-column.js.map +1 -0
- package/src/lib/table/sortable.d.ts +16 -0
- package/src/lib/table/sortable.js +27 -0
- package/src/lib/table/sortable.js.map +1 -0
- package/src/lib/table/table-column-kind.d.ts +13 -0
- package/src/lib/table/table-column-kind.js +21 -0
- package/src/lib/table/table-column-kind.js.map +1 -0
- package/src/lib/table/table-column-modifier.d.ts +12 -0
- package/src/lib/table/table-column-modifier.js +20 -0
- package/src/lib/table/table-column-modifier.js.map +1 -0
- package/src/lib/table/table-column-pipe.d.ts +4 -0
- package/src/lib/table/table-column-pipe.js +3 -0
- package/src/lib/table/table-column-pipe.js.map +1 -0
- package/src/lib/table/table-column-sticky.d.ts +5 -0
- package/src/lib/table/table-column-sticky.js +13 -0
- package/src/lib/table/table-column-sticky.js.map +1 -0
- package/src/lib/table/table-column.d.ts +6 -0
- package/src/lib/table/table-column.js +36 -0
- package/src/lib/table/table-column.js.map +1 -0
- package/src/lib/table/table-filter-column-rule.js +5 -4
- package/src/lib/table/table-filter-column-rule.js.map +1 -1
- package/src/lib/table-action.js.map +1 -1
- package/src/lib/table-options.d.ts +4 -3
- package/src/lib/table-options.js +23 -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 +4 -3
- package/src/lib/tree-table-options.js +40 -3
- package/src/lib/tree-table-options.js.map +1 -1
- package/src/lib/use-pick-from-table-interface-as-form-type.d.ts +1 -1
- 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 +3319 -0
- package/src/schematic-input.schema.json +579 -0
- package/src/schematics/abstract-control.schema.json +78 -0
- package/src/schematics/accordion/accordion-component/files/component/__componentName__.component.html.hbs +16 -7
- package/src/schematics/accordion/accordion-component/index.d.ts +6 -2
- package/src/schematics/accordion/accordion-component/index.js +72 -42
- 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 +2075 -0
- package/src/schematics/accordion/accordion-component/template.schema.json +23 -20
- package/src/schematics/accordion/accordion-item-component/index.d.ts +7 -2
- package/src/schematics/accordion/accordion-item-component/index.js +79 -51
- package/src/schematics/accordion/accordion-item-component/index.js.map +1 -1
- package/src/schematics/accordion/accordion-item-component/schema.json +2006 -0
- package/src/schematics/accordion/accordion-item-component/template.schema.json +8 -9
- 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 +20 -38
- 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.json +1252 -0
- package/src/schematics/accordion/item/accordion-item-data-grid-component/template.schema.json +6 -17
- 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 +14 -6
- package/src/schematics/accordion/item/accordion-item-switch-component/index.js.map +1 -1
- package/src/schematics/accordion/item/accordion-item-switch-component/schema.json +1994 -0
- package/src/schematics/accordion/item/accordion-item-switch-component/template.schema.json +7 -71
- 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 +5 -52
- package/src/schematics/accordion/item/accordion-item-table-component/index.js.map +1 -1
- package/src/schematics/accordion/item/accordion-item-table-component/schema.json +1539 -0
- package/src/schematics/accordion/item/accordion-item-table-component/template.schema.json +6 -32
- 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 +21 -80
- 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.json +1527 -0
- package/src/schematics/accordion/item/accordion-item-tree-table-component/template.schema.json +7 -33
- package/src/schematics/accordion/templates/accordion-header.hbs +7 -3
- package/src/schematics/accordion/templates/switch-accordion-item.hbs +12 -4
- package/src/schematics/accordion-identifier.schema.json +24 -0
- package/src/schematics/accordion-item.schema.json +47 -30
- package/src/schematics/angular.schema.json +11 -3
- package/src/schematics/autocomplete-table-select-form-control.schema.json +97 -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/base-table-column.schema.json +81 -0
- package/src/schematics/boolean-table-column.schema.json +24 -0
- package/src/schematics/button.schema.json +1 -1
- package/src/schematics/checkbox-form-control.schema.json +31 -0
- package/src/schematics/component-table-column.schema.json +24 -0
- package/src/schematics/component.schema.json +16 -0
- package/src/schematics/control.schema.json +26 -0
- package/src/schematics/copy-to-clipboard-table-column.schema.json +24 -0
- package/src/schematics/css-class.schema.json +34 -0
- package/src/schematics/custom-table-column.schema.json +27 -0
- package/src/schematics/data-grid-accordion-item.schema.json +35 -0
- package/src/schematics/data-grid-component/files/component/__componentName__.component.html.hbs +15 -8
- package/src/schematics/data-grid-component/index.d.ts +2 -3
- package/src/schematics/data-grid-component/index.js +87 -64
- package/src/schematics/data-grid-component/index.js.map +1 -1
- package/src/schematics/data-grid-component/schema.json +1184 -0
- package/src/schematics/data-grid-component/template.schema.json +6 -9
- 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 +39 -12
- package/src/schematics/data-grid.schema.json +26 -4
- package/src/schematics/date-table-column.schema.json +27 -0
- package/src/schematics/dialog-component/schema.json +157 -0
- package/src/schematics/dialog-component/template.schema.json +3 -6
- 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 +286 -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 +542 -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 +1 -1
- package/src/schematics/form/control/input-form-control/index.js +4 -4
- 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 -2
- package/src/schematics/form/control/input-form-control/schema.json +410 -0
- package/src/schematics/form/control/input-form-control/template.schema.json +19 -9
- package/src/schematics/form/control/select-form-control/index.d.ts +2 -2
- package/src/schematics/form/control/select-form-control/index.js +23 -16
- 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 +520 -0
- package/src/schematics/form/control/select-form-control/template.schema.json +19 -9
- package/src/schematics/form/control/table-select-form-control/index.d.ts +3 -3
- package/src/schematics/form/control/table-select-form-control/index.js +210 -155
- 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 -3
- package/src/schematics/form/control/table-select-form-control/schema.json +562 -0
- package/src/schematics/form/control/table-select-form-control/template.schema.json +16 -55
- 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 +1056 -0
- package/src/schematics/form/form-array/template.schema.json +33 -0
- package/src/schematics/form/form-component/files/component/__componentName__.component.html.hbs +4 -1
- package/src/schematics/form/form-component/index.d.ts +4 -4
- package/src/schematics/form/form-component/index.js +19 -22
- 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 +1093 -0
- package/src/schematics/form/form-component/template.schema.json +6 -9
- package/src/schematics/form/form-control/index.d.ts +3 -5
- package/src/schematics/form/form-control/index.js +10 -20
- 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 +902 -0
- package/src/schematics/form/form-control/template.schema.json +7 -11
- package/src/schematics/form/form-definition/index.d.ts +2 -2
- package/src/schematics/form/form-definition/index.js +28 -15
- 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 +1068 -0
- package/src/schematics/form/form-definition/template.schema.json +6 -9
- 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 +1056 -0
- package/src/schematics/form/form-group/template.schema.json +33 -0
- package/src/schematics/form/templates/autocomplete-table-select-form-control.hbs +34 -0
- package/src/schematics/form/templates/checkbox-form-control.hbs +4 -2
- package/src/schematics/form/templates/default-form-array.hbs +29 -0
- package/src/schematics/form/templates/default-form-group.hbs +15 -0
- package/src/schematics/form/templates/input-form-control.hbs +14 -7
- package/src/schematics/form/templates/mat-form-field.hbs +6 -6
- package/src/schematics/form/templates/select-form-control.hbs +18 -0
- package/src/schematics/form/templates/slide-toggle-form-control.hbs +3 -1
- package/src/schematics/form/templates/table-select-form-control.hbs +23 -16
- package/src/schematics/form/templates/textarea-form-control.hbs +25 -0
- package/src/schematics/form-array.schema.json +42 -0
- package/src/schematics/form-component.schema.json +9 -3
- package/src/schematics/form-control.schema.json +70 -54
- package/src/schematics/form-definition.schema.json +3 -3
- package/src/schematics/form-field.schema.json +6 -0
- package/src/schematics/form-group.schema.json +42 -0
- package/src/schematics/general.schema.json +1 -4
- package/src/schematics/icon-table-column.schema.json +24 -0
- package/src/schematics/input-form-control.schema.json +19 -6
- package/src/schematics/link-table-column.schema.json +24 -0
- package/src/schematics/minimum-table.schema.json +59 -5
- package/src/schematics/pipe.schema.json +38 -0
- package/src/schematics/property.schema.json +14 -4
- package/src/schematics/route-component/files/component/__componentName__.component.html.hbs +1 -0
- package/src/schematics/route-component/index.d.ts +8 -0
- package/src/schematics/route-component/index.js +109 -0
- package/src/schematics/route-component/index.js.map +1 -0
- package/src/schematics/route-component/schema.d.ts +5 -0
- package/src/schematics/route-component/schema.json +154 -0
- package/src/schematics/route-component/template.schema.json +20 -0
- package/src/schematics/route-component.schema.json +35 -0
- package/src/schematics/select-form-control.schema.json +28 -6
- package/src/schematics/slide-toggle-form-control.schema.json +31 -0
- package/src/schematics/spinner-table-column.schema.json +24 -0
- package/src/schematics/switch-accordion-item.schema.json +83 -0
- package/src/schematics/table/action/dialog-table-action/index.js +1 -0
- package/src/schematics/table/action/dialog-table-action/index.js.map +1 -1
- package/src/schematics/table/action/dialog-table-action/schema.json +263 -0
- package/src/schematics/table/action/dialog-table-action/template.schema.json +3 -6
- package/src/schematics/table/action/form-table-action/index.d.ts +2 -2
- package/src/schematics/table/action/form-table-action/index.js +6 -5
- 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 +1226 -0
- package/src/schematics/table/action/form-table-action/template.schema.json +6 -6
- package/src/schematics/table/action/navigation-table-action/schema.json +233 -0
- package/src/schematics/table/action/navigation-table-action/template.schema.json +3 -6
- package/src/schematics/table/action/open-api-table-action/schema.json +261 -0
- package/src/schematics/table/action/open-api-table-action/template.schema.json +3 -6
- package/src/schematics/table/action/operation-table-action/index.js +2 -1
- package/src/schematics/table/action/operation-table-action/index.js.map +1 -1
- package/src/schematics/table/action/operation-table-action/schema.json +219 -0
- package/src/schematics/table/action/operation-table-action/template.schema.json +3 -6
- 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 +1166 -0
- package/src/schematics/table/header-button/form-table-header-button/template.schema.json +6 -24
- package/src/schematics/table/header-button/navigation-table-header-button/schema.json +183 -0
- package/src/schematics/table/header-button/navigation-table-header-button/template.schema.json +3 -6
- package/src/schematics/table/table-action/schema.json +212 -0
- package/src/schematics/table/table-action/template.schema.json +6 -6
- package/src/schematics/table/table-component/files/component/__componentName__.component.html.hbs +84 -33
- package/src/schematics/table/table-component/index.d.ts +0 -5
- package/src/schematics/table/table-component/index.js +21 -33
- package/src/schematics/table/table-component/index.js.map +1 -1
- package/src/schematics/table/table-component/schema.json +1464 -0
- package/src/schematics/table/table-component/template.schema.json +6 -12
- package/src/schematics/table/table-header-button/schema.json +162 -0
- package/src/schematics/table/table-header-button/template.schema.json +6 -6
- package/src/schematics/table/templates/boolean-table-column.hbs +18 -5
- package/src/schematics/table/templates/component-table-column.hbs +19 -6
- package/src/schematics/table/templates/copy-to-clipboard-table-column.hbs +18 -5
- package/src/schematics/table/templates/custom-table-column.hbs +23 -0
- package/src/schematics/table/templates/date-table-column.hbs +18 -5
- package/src/schematics/table/templates/default-table-column.hbs +20 -5
- package/src/schematics/table/templates/icon-table-column.hbs +18 -5
- package/src/schematics/table/templates/link-table-column.hbs +18 -5
- package/src/schematics/table/templates/mat-column-def.hbs +3 -0
- package/src/schematics/table/templates/spinner-table-column.hbs +27 -0
- package/src/schematics/table/templates/tree-table-column.hbs +21 -0
- package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.hbs +93 -50
- package/src/schematics/table/tree-table-component/index.d.ts +3 -0
- package/src/schematics/table/tree-table-component/index.js +30 -9
- package/src/schematics/table/tree-table-component/index.js.map +1 -1
- package/src/schematics/table/tree-table-component/schema.json +1452 -0
- package/src/schematics/table/tree-table-component/template.schema.json +6 -12
- package/src/schematics/table-accordion-item.schema.json +42 -0
- package/src/schematics/table-action.schema.json +7 -3
- package/src/schematics/table-column.schema.json +61 -47
- package/src/schematics/table-select-form-control.schema.json +103 -0
- package/src/schematics/table.schema.json +6 -2
- 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 +44 -0
- package/src/schematics/tree-component/index.js +2 -1
- package/src/schematics/tree-component/index.js.map +1 -1
- package/src/schematics/tree-component/schema.json +131 -0
- package/src/schematics/tree-component/template.schema.json +7 -2
- package/src/schematics/tree-table-accordion-item.schema.json +42 -0
- package/src/schematics/tree-table-column.schema.json +24 -0
- package/src/schematics/tree-table.schema.json +5 -4
- package/src/schematics/upstream.schema.json +62 -23
- package/src/schematics/value.schema.json +26 -0
- package/src/template.schema.json +275 -0
- package/src/lib/form-component-control.d.ts +0 -8
- package/src/lib/form-component-control.js +0 -15
- package/src/lib/form-component-control.js.map +0 -1
- package/src/lib/form-control.d.ts +0 -125
- package/src/lib/form-control.js +0 -303
- package/src/lib/form-control.js.map +0 -1
- package/src/lib/form-definition-control.d.ts +0 -5
- package/src/lib/form-definition-control.js +0 -30
- 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/lib/table-column.d.ts +0 -62
- package/src/lib/table-column.js +0 -313
- package/src/lib/table-column.js.map +0 -1
|
@@ -0,0 +1,410 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "input-form-control-schematic",
|
|
4
|
+
"allOf": [
|
|
5
|
+
{
|
|
6
|
+
"$ref": "#/definitions/angular"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"$ref": "#/definitions/inputFormControl"
|
|
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
|
+
"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
|
+
"angular": {
|
|
99
|
+
"allOf": [
|
|
100
|
+
{
|
|
101
|
+
"$ref": "#/definitions/general"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"type": "object",
|
|
105
|
+
"properties": {
|
|
106
|
+
"componentName": {
|
|
107
|
+
"type": "string"
|
|
108
|
+
},
|
|
109
|
+
"name": {
|
|
110
|
+
"type": "string"
|
|
111
|
+
},
|
|
112
|
+
"context": {
|
|
113
|
+
"type": "string",
|
|
114
|
+
"description": "The context use to generate proper names for class, files, etc"
|
|
115
|
+
},
|
|
116
|
+
"nestModule": {
|
|
117
|
+
"type": "string",
|
|
118
|
+
"description": "The module name for the table nest operations"
|
|
119
|
+
},
|
|
120
|
+
"controllerName": {
|
|
121
|
+
"type": "string"
|
|
122
|
+
},
|
|
123
|
+
"backend": {
|
|
124
|
+
"$ref": "#/definitions/backend"
|
|
125
|
+
},
|
|
126
|
+
"directory": {
|
|
127
|
+
"type": "string",
|
|
128
|
+
"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"
|
|
129
|
+
},
|
|
130
|
+
"shared": {
|
|
131
|
+
"type": "boolean",
|
|
132
|
+
"description": "Whether the generated code is used across the project",
|
|
133
|
+
"default": false
|
|
134
|
+
},
|
|
135
|
+
"scope": {
|
|
136
|
+
"type": "string"
|
|
137
|
+
},
|
|
138
|
+
"prefix": {
|
|
139
|
+
"type": "string"
|
|
140
|
+
},
|
|
141
|
+
"openApi": {
|
|
142
|
+
"type": "object",
|
|
143
|
+
"additionalProperties": true
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
]
|
|
148
|
+
},
|
|
149
|
+
"backend": {
|
|
150
|
+
"type": "string",
|
|
151
|
+
"description": "The backend that should be used to handel data",
|
|
152
|
+
"enum": [
|
|
153
|
+
"none",
|
|
154
|
+
"nestjs",
|
|
155
|
+
"open-api",
|
|
156
|
+
"local"
|
|
157
|
+
],
|
|
158
|
+
"default": "none"
|
|
159
|
+
},
|
|
160
|
+
"baseFormControl": {
|
|
161
|
+
"allOf": [
|
|
162
|
+
{
|
|
163
|
+
"$ref": "#/definitions/abstractControl"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"type": "object",
|
|
167
|
+
"properties": {
|
|
168
|
+
"label": {
|
|
169
|
+
"type": "string",
|
|
170
|
+
"description": "The label of the control"
|
|
171
|
+
},
|
|
172
|
+
"role": {
|
|
173
|
+
"type": "string",
|
|
174
|
+
"const": "control"
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
]
|
|
179
|
+
},
|
|
180
|
+
"button": {
|
|
181
|
+
"type": "object",
|
|
182
|
+
"properties": {
|
|
183
|
+
"svgIcon": {
|
|
184
|
+
"type": "string"
|
|
185
|
+
},
|
|
186
|
+
"icon": {
|
|
187
|
+
"type": "string"
|
|
188
|
+
},
|
|
189
|
+
"directiveList": {
|
|
190
|
+
"type": "array",
|
|
191
|
+
"items": {
|
|
192
|
+
"$ref": "#/definitions/type"
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
"importList": {
|
|
196
|
+
"type": "array",
|
|
197
|
+
"items": {
|
|
198
|
+
"$ref": "#/definitions/type"
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
"cssClass": {
|
|
204
|
+
"oneOf": [
|
|
205
|
+
{
|
|
206
|
+
"type": "string"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"type": "array",
|
|
210
|
+
"items": {
|
|
211
|
+
"type": "string"
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"type": "object",
|
|
216
|
+
"properties": {
|
|
217
|
+
"name": {
|
|
218
|
+
"type": "string"
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"type": "array",
|
|
224
|
+
"items": {
|
|
225
|
+
"type": "object",
|
|
226
|
+
"properties": {
|
|
227
|
+
"name": {
|
|
228
|
+
"type": "string"
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
]
|
|
234
|
+
},
|
|
235
|
+
"formField": {
|
|
236
|
+
"type": "object",
|
|
237
|
+
"properties": {
|
|
238
|
+
"label": {
|
|
239
|
+
"type": "string"
|
|
240
|
+
},
|
|
241
|
+
"prefixButton": {
|
|
242
|
+
"$ref": "#/definitions/button"
|
|
243
|
+
},
|
|
244
|
+
"suffixButton": {
|
|
245
|
+
"$ref": "#/definitions/button"
|
|
246
|
+
},
|
|
247
|
+
"hasClearButton": {
|
|
248
|
+
"type": "boolean"
|
|
249
|
+
},
|
|
250
|
+
"cssClass": {
|
|
251
|
+
"$ref": "#/definitions/cssClass"
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
"general": {
|
|
256
|
+
"type": "object",
|
|
257
|
+
"properties": {
|
|
258
|
+
"project": {
|
|
259
|
+
"type": "string",
|
|
260
|
+
"description": "Project name where the files should be generated"
|
|
261
|
+
},
|
|
262
|
+
"feature": {
|
|
263
|
+
"type": "string",
|
|
264
|
+
"description": "Feature name where the files should be generated"
|
|
265
|
+
},
|
|
266
|
+
"overwrite": {
|
|
267
|
+
"anyOf": [
|
|
268
|
+
{
|
|
269
|
+
"type": "boolean"
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"type": "array",
|
|
273
|
+
"items": {
|
|
274
|
+
"type": "string"
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
],
|
|
278
|
+
"description": "Overwrite existing files",
|
|
279
|
+
"default": false
|
|
280
|
+
},
|
|
281
|
+
"overwriteHtml": {
|
|
282
|
+
"type": "boolean",
|
|
283
|
+
"default": false
|
|
284
|
+
},
|
|
285
|
+
"replace": {
|
|
286
|
+
"type": "boolean",
|
|
287
|
+
"default": false
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
"inputFormControl": {
|
|
292
|
+
"allOf": [
|
|
293
|
+
{
|
|
294
|
+
"$ref": "#/definitions/baseFormControl"
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"type": "object",
|
|
298
|
+
"properties": {
|
|
299
|
+
"kind": {
|
|
300
|
+
"type": "string",
|
|
301
|
+
"const": "input"
|
|
302
|
+
},
|
|
303
|
+
"formField": {
|
|
304
|
+
"$ref": "#/definitions/formField"
|
|
305
|
+
},
|
|
306
|
+
"inputType": {
|
|
307
|
+
"type": "string",
|
|
308
|
+
"enum": [
|
|
309
|
+
"text",
|
|
310
|
+
"password",
|
|
311
|
+
"email",
|
|
312
|
+
"number",
|
|
313
|
+
"tel",
|
|
314
|
+
"url",
|
|
315
|
+
"checkbox",
|
|
316
|
+
"color",
|
|
317
|
+
"date",
|
|
318
|
+
"time",
|
|
319
|
+
"datetime-local",
|
|
320
|
+
"file",
|
|
321
|
+
"hidden",
|
|
322
|
+
"image",
|
|
323
|
+
"month",
|
|
324
|
+
"radio",
|
|
325
|
+
"reset",
|
|
326
|
+
"button",
|
|
327
|
+
"search",
|
|
328
|
+
"submit",
|
|
329
|
+
"week",
|
|
330
|
+
"range"
|
|
331
|
+
]
|
|
332
|
+
},
|
|
333
|
+
"placeholder": {
|
|
334
|
+
"type": "string"
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
"required": [
|
|
338
|
+
"kind"
|
|
339
|
+
]
|
|
340
|
+
}
|
|
341
|
+
]
|
|
342
|
+
},
|
|
343
|
+
"property": {
|
|
344
|
+
"oneOf": [
|
|
345
|
+
{
|
|
346
|
+
"type": "string"
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
"type": "object",
|
|
350
|
+
"properties": {
|
|
351
|
+
"name": {
|
|
352
|
+
"type": "string"
|
|
353
|
+
},
|
|
354
|
+
"type": {
|
|
355
|
+
"$ref": "#/definitions/type"
|
|
356
|
+
},
|
|
357
|
+
"isArray": {
|
|
358
|
+
"type": "boolean"
|
|
359
|
+
},
|
|
360
|
+
"isRequired": {
|
|
361
|
+
"type": "boolean"
|
|
362
|
+
},
|
|
363
|
+
"source": {
|
|
364
|
+
"type": "string"
|
|
365
|
+
},
|
|
366
|
+
"memberList": {
|
|
367
|
+
"type": "array",
|
|
368
|
+
"items": {
|
|
369
|
+
"additionalProperties": true
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
]
|
|
375
|
+
},
|
|
376
|
+
"type": {
|
|
377
|
+
"oneOf": [
|
|
378
|
+
{
|
|
379
|
+
"type": "string"
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
"type": "object",
|
|
383
|
+
"properties": {
|
|
384
|
+
"name": {
|
|
385
|
+
"type": "string"
|
|
386
|
+
},
|
|
387
|
+
"isTypeOnly": {
|
|
388
|
+
"type": "boolean"
|
|
389
|
+
},
|
|
390
|
+
"moduleSpecifier": {
|
|
391
|
+
"type": "string"
|
|
392
|
+
},
|
|
393
|
+
"namedImport": {
|
|
394
|
+
"type": "string"
|
|
395
|
+
},
|
|
396
|
+
"namespaceImport": {
|
|
397
|
+
"type": "string"
|
|
398
|
+
},
|
|
399
|
+
"defaultImport": {
|
|
400
|
+
"type": "string"
|
|
401
|
+
}
|
|
402
|
+
},
|
|
403
|
+
"required": [
|
|
404
|
+
"name"
|
|
405
|
+
]
|
|
406
|
+
}
|
|
407
|
+
]
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
}
|
|
@@ -3,21 +3,31 @@
|
|
|
3
3
|
"$id": "input-form-control-schematic",
|
|
4
4
|
"allOf": [
|
|
5
5
|
{
|
|
6
|
-
"$ref": "
|
|
6
|
+
"$ref": "#/definitions/angular"
|
|
7
7
|
},
|
|
8
8
|
{
|
|
9
|
-
"$ref": "
|
|
9
|
+
"$ref": "#/definitions/inputFormControl"
|
|
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
|
+
]
|
|
10
23
|
}
|
|
11
24
|
],
|
|
12
25
|
"definitions": {
|
|
13
|
-
"
|
|
14
|
-
"$ref": "../../../
|
|
26
|
+
"angular": {
|
|
27
|
+
"$ref": "../../../angular.schema.json"
|
|
15
28
|
},
|
|
16
|
-
"
|
|
17
|
-
"$ref": "../../../
|
|
18
|
-
},
|
|
19
|
-
"button": {
|
|
20
|
-
"$ref": "../../../button.schema.json"
|
|
29
|
+
"inputFormControl": {
|
|
30
|
+
"$ref": "../../../input-form-control.schema.json"
|
|
21
31
|
}
|
|
22
32
|
}
|
|
23
33
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Rule } from '@angular-devkit/schematics';
|
|
2
2
|
import { Normalized } from '@rxap/utilities';
|
|
3
|
-
import { NormalizedSelectFormControl } from '../../../../lib/form-control';
|
|
3
|
+
import { NormalizedSelectFormControl } from '../../../../lib/form/control/select-form-control';
|
|
4
4
|
import { NormalizedFormControlOptions } from '../../form-control';
|
|
5
5
|
import { SelectFormControlOptions } from './schema';
|
|
6
|
-
export type NormalizedSelectFormControlOptions = Readonly<Normalized<Omit<SelectFormControlOptions, '
|
|
6
|
+
export type NormalizedSelectFormControlOptions = Readonly<Normalized<Omit<SelectFormControlOptions, 'optionList'>>> & NormalizedFormControlOptions & NormalizedSelectFormControl;
|
|
7
7
|
export declare function NormalizeSelectFormControlOptions(options: SelectFormControlOptions): NormalizedSelectFormControlOptions;
|
|
8
8
|
export default function (options: SelectFormControlOptions): () => Rule;
|
|
@@ -5,29 +5,29 @@ const schematics_1 = require("@angular-devkit/schematics");
|
|
|
5
5
|
const schematics_ts_morph_1 = require("@rxap/schematics-ts-morph");
|
|
6
6
|
const schematics_utilities_1 = require("@rxap/schematics-utilities");
|
|
7
7
|
const path_1 = require("path");
|
|
8
|
-
const ts_morph_1 = require("ts-morph");
|
|
9
8
|
const angular_options_1 = require("../../../../lib/angular-options");
|
|
10
9
|
const backend_types_1 = require("../../../../lib/backend-types");
|
|
11
|
-
const
|
|
12
|
-
const
|
|
10
|
+
const select_form_control_1 = require("../../../../lib/form/control/select-form-control");
|
|
11
|
+
const form_control_1 = require("../../form-control");
|
|
13
12
|
function NormalizeSelectFormControlOptions(options) {
|
|
14
|
-
return Object.freeze(Object.assign(Object.assign({}, (0,
|
|
13
|
+
return Object.freeze(Object.assign(Object.assign({}, (0, form_control_1.NormalizeFormControlOptions)(options)), (0, select_form_control_1.NormalizeSelectFormControl)(options)));
|
|
15
14
|
}
|
|
16
15
|
exports.NormalizeSelectFormControlOptions = NormalizeSelectFormControlOptions;
|
|
17
16
|
function printOptions(options) {
|
|
18
17
|
(0, angular_options_1.PrintAngularOptions)('select-form-control', options);
|
|
19
18
|
}
|
|
20
19
|
function noneBackendOptionsRule(normalizedOptions) {
|
|
21
|
-
const { name, project, feature, directory, formName, type, isArray, state, isRequired, validatorList, } = normalizedOptions;
|
|
20
|
+
const { name, project, feature, directory, formName, type, isArray, state, isRequired, validatorList, role, isOptional, source, optionList, } = normalizedOptions;
|
|
22
21
|
const optionsDataSourceDirectory = (0, path_1.join)(directory !== null && directory !== void 0 ? directory : '', 'data-sources');
|
|
23
|
-
const optionsDataSourceName = (0, schematics_utilities_1.classify)([name, 'options', 'data-source'].join('-'));
|
|
22
|
+
const optionsDataSourceName = (0, schematics_utilities_1.classify)([(0, schematics_utilities_1.dasherize)(name), 'options', 'data-source'].join('-'));
|
|
24
23
|
const optionsDataSourceImportPath = `./data-sources/${(0, schematics_utilities_1.dasherize)(name)}-options.data-source`;
|
|
25
24
|
return (0, schematics_1.chain)([
|
|
26
25
|
(0, schematics_ts_morph_1.CoerceOptionsDataSourceRule)({
|
|
27
26
|
project,
|
|
28
27
|
feature,
|
|
28
|
+
optionList: optionList !== null && optionList !== void 0 ? optionList : [],
|
|
29
29
|
directory: optionsDataSourceDirectory,
|
|
30
|
-
name: [name, 'options'].join('-'),
|
|
30
|
+
name: [(0, schematics_utilities_1.dasherize)(name), 'options'].join('-'),
|
|
31
31
|
}),
|
|
32
32
|
(0, schematics_ts_morph_1.CoerceFormProviderRule)({
|
|
33
33
|
project,
|
|
@@ -42,6 +42,9 @@ function noneBackendOptionsRule(normalizedOptions) {
|
|
|
42
42
|
],
|
|
43
43
|
}),
|
|
44
44
|
(0, schematics_ts_morph_1.CoerceFormDefinitionControl)({
|
|
45
|
+
role,
|
|
46
|
+
isOptional,
|
|
47
|
+
source,
|
|
45
48
|
project,
|
|
46
49
|
feature,
|
|
47
50
|
directory,
|
|
@@ -52,8 +55,8 @@ function noneBackendOptionsRule(normalizedOptions) {
|
|
|
52
55
|
state,
|
|
53
56
|
isRequired,
|
|
54
57
|
validatorList,
|
|
55
|
-
coerceFormControl: (sourceFile, classDeclaration, control) => {
|
|
56
|
-
const { propertyDeclaration, decoratorDeclaration, } = (0, schematics_ts_morph_1.CoerceFormControl)(sourceFile, classDeclaration, control);
|
|
58
|
+
coerceFormControl: (sourceFile, classDeclaration, formTypeName, control) => {
|
|
59
|
+
const { propertyDeclaration, decoratorDeclaration, } = (0, schematics_ts_morph_1.CoerceFormControl)(sourceFile, classDeclaration, formTypeName, control);
|
|
57
60
|
(0, schematics_ts_morph_1.CoerceDecorator)(propertyDeclaration, 'UseOptionsDataSource').set({
|
|
58
61
|
arguments: [optionsDataSourceName],
|
|
59
62
|
});
|
|
@@ -74,9 +77,9 @@ function noneBackendOptionsRule(normalizedOptions) {
|
|
|
74
77
|
]);
|
|
75
78
|
}
|
|
76
79
|
function nestJsBackendOptionsRule(normalizedOptions) {
|
|
77
|
-
const { name, project, feature, directory, formName, type, isArray, state, isRequired, validatorList, nestModule, controllerName, context, scope, } = normalizedOptions;
|
|
78
|
-
const optionsOperationPath = ['
|
|
79
|
-
const optionsOperationName = ['get', name, 'options'].join('-');
|
|
80
|
+
const { name, project, feature, directory, formName, type, isArray, state, isRequired, validatorList, nestModule, controllerName, context, scope, overwrite, role, isOptional, source, upstream, } = normalizedOptions;
|
|
81
|
+
const optionsOperationPath = ['control', (0, schematics_utilities_1.dasherize)(name), 'options'].join('/');
|
|
82
|
+
const optionsOperationName = ['get', (0, schematics_utilities_1.dasherize)(name), 'control', 'options'].join('-');
|
|
80
83
|
const optionsOperationId = (0, schematics_ts_morph_1.buildOperationId)(normalizedOptions, optionsOperationName, (0, schematics_ts_morph_1.BuildNestControllerName)({
|
|
81
84
|
controllerName,
|
|
82
85
|
nestModule,
|
|
@@ -87,12 +90,17 @@ function nestJsBackendOptionsRule(normalizedOptions) {
|
|
|
87
90
|
feature,
|
|
88
91
|
nestModule,
|
|
89
92
|
controllerName,
|
|
93
|
+
overwrite,
|
|
90
94
|
operationName: optionsOperationName,
|
|
91
95
|
path: optionsOperationPath,
|
|
92
96
|
control: normalizedOptions,
|
|
93
97
|
context,
|
|
98
|
+
upstream,
|
|
94
99
|
}),
|
|
95
100
|
(0, schematics_ts_morph_1.CoerceFormDefinitionControl)({
|
|
101
|
+
role,
|
|
102
|
+
isOptional,
|
|
103
|
+
source,
|
|
96
104
|
project,
|
|
97
105
|
feature,
|
|
98
106
|
directory,
|
|
@@ -103,12 +111,11 @@ function nestJsBackendOptionsRule(normalizedOptions) {
|
|
|
103
111
|
state,
|
|
104
112
|
isRequired,
|
|
105
113
|
validatorList,
|
|
106
|
-
coerceFormControl: (sourceFile, classDeclaration, control) => {
|
|
107
|
-
const { propertyDeclaration, decoratorDeclaration, } = (0, schematics_ts_morph_1.CoerceFormControl)(sourceFile, classDeclaration, control);
|
|
114
|
+
coerceFormControl: (sourceFile, classDeclaration, formTypeName, control) => {
|
|
115
|
+
const { propertyDeclaration, decoratorDeclaration, } = (0, schematics_ts_morph_1.CoerceFormControl)(sourceFile, classDeclaration, formTypeName, control);
|
|
108
116
|
(0, schematics_ts_morph_1.CoerceDecorator)(propertyDeclaration, 'UseOptionsMethod').set({
|
|
109
117
|
arguments: [
|
|
110
118
|
(0, schematics_ts_morph_1.OperationIdToClassName)(optionsOperationId),
|
|
111
|
-
ts_morph_1.Writers.object({ withoutParameters: 'true' }),
|
|
112
119
|
],
|
|
113
120
|
});
|
|
114
121
|
(0, schematics_ts_morph_1.CoerceImports)(sourceFile, {
|
|
@@ -151,7 +158,7 @@ function default_1(options) {
|
|
|
151
158
|
printOptions(normalizedOptions);
|
|
152
159
|
return () => {
|
|
153
160
|
return (0, schematics_1.chain)([
|
|
154
|
-
() => console.group('
|
|
161
|
+
() => console.group('[@rxap/schematics-angular:select-form-control]'.green),
|
|
155
162
|
optionsRule(normalizedOptions),
|
|
156
163
|
(0, schematics_ts_morph_1.EnforceUseFormControlOrderRule)(normalizedOptions),
|
|
157
164
|
() => console.groupEnd(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../packages/schematic/angular/src/schematics/form/control/select-form-control/index.ts"],"names":[],"mappings":";;;AAAA,2DAIoC;AACpC,mEAcmC;AACnC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../packages/schematic/angular/src/schematics/form/control/select-form-control/index.ts"],"names":[],"mappings":";;;AAAA,2DAIoC;AACpC,mEAcmC;AACnC,qEAGoC;AAEpC,+BAA4B;AAK5B,qEAAsE;AACtE,iEAA6D;AAC7D,0FAG0D;AAC1D,qDAG4B;AAM5B,SAAgB,iCAAiC,CAC/C,OAAiC;IAEjC,OAAO,MAAM,CAAC,MAAM,iCACf,IAAA,0CAA2B,EAAC,OAAO,CAAC,GACpC,IAAA,gDAA0B,EAAC,OAAO,CAAC,EACtC,CAAC;AACL,CAAC;AAPD,8EAOC;AAED,SAAS,YAAY,CAAC,OAA2C;IAC/D,IAAA,qCAAmB,EAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;AACtD,CAAC;AAED,SAAS,sBAAsB,CAAC,iBAAqD;IACnF,MAAM,EACJ,IAAI,EACJ,OAAO,EACP,OAAO,EACP,SAAS,EACT,QAAQ,EACR,IAAI,EACJ,OAAO,EACP,KAAK,EACL,UAAU,EACV,aAAa,EACb,IAAI,EACJ,UAAU,EACV,MAAM,EACN,UAAU,GACX,GAAG,iBAAiB,CAAC;IACtB,MAAM,0BAA0B,GAAG,IAAA,WAAI,EAAC,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,EAAE,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,qBAAqB,GAAG,IAAA,+BAAQ,EACpC,CAAE,IAAA,gCAAS,EAAC,IAAI,CAAC,EAAE,SAAS,EAAE,aAAa,CAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CACxD,CAAC;IACF,MAAM,2BAA2B,G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4BAAY,CAAC,MAAM;YACtB,OAAO,wBAAwB,CAAC,iBAAiB,CAAC,CAAC;QACrD,KAAK,4BAAY,CAAC,QAAQ;YACxB,OAAO,yBAAyB,CAAC,iBAAiB,CAAC,CAAC;QACtD;YACE,MAAM,IAAI,gCAAmB,CAAC,qBAAsB,OAAQ,qBAAqB,CAAC,CAAC;KACtF;AACH,CAAC;AAED,mBAAyB,OAAiC;IACxD,MAAM,iBAAiB,GAAG,iCAAiC,CAAC,OAAO,CAAC,CAAC;IACrE,YAAY,CAAC,iBAAiB,CAAC,CAAC;IAChC,OAAO,GAAG,EAAE;QACV,OAAO,IAAA,kBAAK,EAAC;YACX,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,gDAAgD,CAAC,KAAK,CAAC;YAC3E,WAAW,CAAC,iBAAiB,CAAC;YAC9B,IAAA,oDAA8B,EAAC,iBAAiB,CAAC;YACjD,GAAG,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE;SACzB,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAXD,4BAWC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { SelectFormControl } from '../../../../lib/form-control';
|
|
1
|
+
import { SelectFormControl } from '../../../../lib/form/control/select-form-control';
|
|
2
2
|
import { FormControlOptions } from '../../form-control/schema';
|
|
3
3
|
|
|
4
|
-
export
|
|
5
|
-
}
|
|
4
|
+
export type SelectFormControlOptions = FormControlOptions & SelectFormControl;
|