@rxap/schematic-angular 16.2.0-dev.6 → 16.2.0-dev.60
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 +411 -0
- package/README.md +1 -1
- package/collection.json +20 -0
- package/package.json +19 -18
- 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 +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 +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/angular-options.d.ts +2 -2
- package/src/lib/angular-options.js.map +1 -1
- package/src/lib/coerce-accordion-component.js +6 -4
- 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 +21 -7
- package/src/lib/coerce-minimum-table-component.js.map +1 -1
- package/src/lib/coerce-tree-table-component.js +1 -3
- 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 +46 -11
- 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 +12 -5
- package/src/lib/data-grid-options.js +44 -13
- 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 +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 +2 -2
- 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 +37 -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 +3320 -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 +34 -0
- package/src/schematics/accordion/accordion-component/index.d.ts +6 -2
- package/src/schematics/accordion/accordion-component/index.js +77 -139
- 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 +2007 -122
- 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 +115 -87
- 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 +1976 -61
- 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 +32 -62
- 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 +1190 -71
- 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 +1947 -178
- 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 +9 -56
- 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 +1497 -291
- 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 +25 -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 +1450 -256
- package/src/schematics/accordion/item/accordion-item-tree-table-component/template.schema.json +20 -0
- package/src/schematics/accordion/templates/accordion-header.hbs +10 -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 +29 -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 +97 -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/base-table-column.schema.json +81 -0
- package/src/schematics/boolean-table-column.schema.json +24 -0
- package/src/schematics/button.schema.json +30 -0
- 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 +41 -0
- package/src/schematics/data-grid-component/index.d.ts +2 -4
- package/src/schematics/data-grid-component/index.js +105 -68
- package/src/schematics/data-grid-component/index.js.map +1 -1
- package/src/schematics/data-grid-component/schema.json +1135 -127
- 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/date-table-column.schema.json +27 -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 +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 +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 +387 -93
- 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 +141 -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 +497 -79
- 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 +210 -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 +539 -83
- 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 +1056 -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 +23 -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 +1054 -134
- 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 +877 -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 +1035 -115
- 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 +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 +11 -0
- package/src/schematics/form/templates/default-form-array.hbs +29 -0
- package/src/schematics/form/templates/default-form-control.hbs +2 -0
- package/src/schematics/form/templates/default-form-group.hbs +15 -0
- package/src/schematics/form/templates/input-form-control.hbs +16 -0
- package/src/schematics/form/templates/mat-form-field.hbs +31 -0
- package/src/schematics/form/templates/select-form-control.hbs +18 -0
- package/src/schematics/form/templates/slide-toggle-form-control.hbs +10 -0
- package/src/schematics/form/templates/table-select-form-control.hbs +25 -0
- 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 +45 -0
- package/src/schematics/form-control.schema.json +84 -0
- package/src/schematics/form-definition.schema.json +22 -0
- package/src/schematics/form-field.schema.json +30 -0
- package/src/schematics/form-group.schema.json +42 -0
- package/src/schematics/general.schema.json +1 -4
- package/src/schematics/header-button.schema.json +42 -0
- package/src/schematics/icon-table-column.schema.json +24 -0
- package/src/schematics/input-form-control.schema.json +60 -0
- package/src/schematics/link-table-column.schema.json +24 -0
- package/src/schematics/minimum-table.schema.json +109 -0
- package/src/schematics/pipe.schema.json +38 -0
- package/src/schematics/property.schema.json +38 -0
- 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 +75 -0
- 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 +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 +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 +1162 -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/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 +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 +1126 -99
- 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 +292 -0
- 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 +1416 -291
- 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 +23 -0
- package/src/schematics/table/templates/component-table-column.hbs +25 -0
- package/src/schematics/table/templates/copy-to-clipboard-table-column.hbs +23 -0
- package/src/schematics/table/templates/custom-table-column.hbs +23 -0
- package/src/schematics/table/templates/date-table-column.hbs +24 -0
- package/src/schematics/table/templates/default-table-column.hbs +23 -0
- package/src/schematics/table/templates/icon-table-column.hbs +23 -0
- package/src/schematics/table/templates/link-table-column.hbs +23 -0
- 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 +292 -0
- 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 +1399 -262
- package/src/schematics/table/tree-table-component/template.schema.json +20 -0
- package/src/schematics/table-accordion-item.schema.json +42 -0
- package/src/schematics/table-action.schema.json +65 -0
- package/src/schematics/table-column.schema.json +83 -0
- package/src/schematics/table-select-form-control.schema.json +103 -0
- package/src/schematics/table.schema.json +58 -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 +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 +115 -70
- package/src/schematics/tree-component/template.schema.json +36 -0
- 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 +41 -0
- package/src/schematics/type.schema.json +35 -0
- package/src/schematics/upstream.schema.json +95 -0
- package/src/schematics/value.schema.json +26 -0
- package/src/template.schema.json +275 -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/lib/table-column.d.ts +0 -56
- package/src/lib/table-column.js +0 -294
- package/src/lib/table-column.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
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "link-table-column",
|
|
4
|
+
"allOf": [
|
|
5
|
+
{
|
|
6
|
+
"$ref": "#/definitions/baseTableColumn"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"kind": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"const": "link"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"required": ["kind"]
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"definitions": {
|
|
20
|
+
"baseTableColumn": {
|
|
21
|
+
"$ref": "./base-table-column.schema.json"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "minimum-table",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"propertyList": {
|
|
7
|
+
"alias": "property",
|
|
8
|
+
"type": "array",
|
|
9
|
+
"items": {
|
|
10
|
+
"$ref": "#/definitions/property"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"upstream": {
|
|
14
|
+
"$ref": "#/definitions/upstream"
|
|
15
|
+
},
|
|
16
|
+
"rowId": {
|
|
17
|
+
"$ref": "#/definitions/property"
|
|
18
|
+
},
|
|
19
|
+
"columnList": {
|
|
20
|
+
"alias": "column",
|
|
21
|
+
"type": "array",
|
|
22
|
+
"items": {
|
|
23
|
+
"$ref": "#/definitions/tableColumn"
|
|
24
|
+
},
|
|
25
|
+
"description": "List of table column names"
|
|
26
|
+
},
|
|
27
|
+
"actionList": {
|
|
28
|
+
"alias": "action",
|
|
29
|
+
"type": "array",
|
|
30
|
+
"items": {
|
|
31
|
+
"$ref": "#/definitions/tableAction"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"headerButton": {
|
|
35
|
+
"$ref": "#/definitions/headerButton"
|
|
36
|
+
},
|
|
37
|
+
"modifiers": {
|
|
38
|
+
"alias": "modifier",
|
|
39
|
+
"type": "array",
|
|
40
|
+
"items": {
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
"description": "The table modifiers"
|
|
44
|
+
},
|
|
45
|
+
"cssClass": {
|
|
46
|
+
"$ref": "#/definitions/cssClass"
|
|
47
|
+
},
|
|
48
|
+
"identifier": {
|
|
49
|
+
"$ref": "#/definitions/accordionIdentifier"
|
|
50
|
+
},
|
|
51
|
+
"sortable": {
|
|
52
|
+
"type": "boolean",
|
|
53
|
+
"description": "Whether the table is sortable",
|
|
54
|
+
"oneOf": [
|
|
55
|
+
{
|
|
56
|
+
"type": "boolean"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"type": "object",
|
|
60
|
+
"properties": {
|
|
61
|
+
"enabled": {
|
|
62
|
+
"type": "boolean",
|
|
63
|
+
"description": "Whether the table is sortable",
|
|
64
|
+
"default": true
|
|
65
|
+
},
|
|
66
|
+
"default": {
|
|
67
|
+
"type": "object",
|
|
68
|
+
"properties": {
|
|
69
|
+
"active": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"description": "The default active column"
|
|
72
|
+
},
|
|
73
|
+
"direction": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"description": "The default sort direction",
|
|
76
|
+
"enum": ["asc", "desc"]
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"required": ["enabled"]
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"definitions": {
|
|
87
|
+
"headerButton": {
|
|
88
|
+
"$ref": "./header-button.schema.json"
|
|
89
|
+
},
|
|
90
|
+
"tableAction": {
|
|
91
|
+
"$ref": "./table-action.schema.json"
|
|
92
|
+
},
|
|
93
|
+
"tableColumn": {
|
|
94
|
+
"$ref": "./table-column.schema.json"
|
|
95
|
+
},
|
|
96
|
+
"property": {
|
|
97
|
+
"$ref": "./property.schema.json"
|
|
98
|
+
},
|
|
99
|
+
"upstream": {
|
|
100
|
+
"$ref": "./upstream.schema.json"
|
|
101
|
+
},
|
|
102
|
+
"cssClass": {
|
|
103
|
+
"$ref": "./css-class.schema.json"
|
|
104
|
+
},
|
|
105
|
+
"accordionIdentifier": {
|
|
106
|
+
"$ref": "./accordion-identifier.schema.json"
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "pipe",
|
|
4
|
+
"oneOf": [
|
|
5
|
+
{
|
|
6
|
+
"type": "string"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "#/definitions/type"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"type": "object",
|
|
15
|
+
"properties": {
|
|
16
|
+
"argumentList": {
|
|
17
|
+
"type": "array",
|
|
18
|
+
"items": {
|
|
19
|
+
"$ref": "#/definitions/value"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"required": [
|
|
24
|
+
"name"
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"definitions": {
|
|
31
|
+
"type": {
|
|
32
|
+
"$ref": "./type.schema.json"
|
|
33
|
+
},
|
|
34
|
+
"value": {
|
|
35
|
+
"$ref": "./value.schema.json"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "property",
|
|
4
|
+
"oneOf": [
|
|
5
|
+
{
|
|
6
|
+
"type": "string"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"name": {
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
"type": {
|
|
15
|
+
"$ref": "#/definitions/type"
|
|
16
|
+
},
|
|
17
|
+
"isArray": {
|
|
18
|
+
"type": "boolean"
|
|
19
|
+
},
|
|
20
|
+
"isRequired": {
|
|
21
|
+
"type": "boolean"
|
|
22
|
+
},
|
|
23
|
+
"source": {
|
|
24
|
+
"type": "string"
|
|
25
|
+
},
|
|
26
|
+
"memberList": {
|
|
27
|
+
"type": "array",
|
|
28
|
+
"items": { "additionalProperties": true }
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
"definitions": {
|
|
34
|
+
"type": {
|
|
35
|
+
"$ref": "./type.schema.json"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<pre>{{ name }}</pre>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Rule } from '@angular-devkit/schematics';
|
|
2
|
+
import { Normalized } from '@rxap/utilities';
|
|
3
|
+
import { NormalizedAngularOptions } from '../../lib/angular-options';
|
|
4
|
+
import { NormalizedRouteComponent, RouteComponent } from '../../lib/route-component';
|
|
5
|
+
import { RouteComponentOptions } from './schema';
|
|
6
|
+
export type NormalizedRouteComponentOptions = Readonly<Normalized<Omit<RouteComponentOptions, keyof RouteComponent>> & NormalizedAngularOptions & NormalizedRouteComponent>;
|
|
7
|
+
export declare function NormalizeRouteComponentOptions(options: RouteComponentOptions): NormalizedRouteComponentOptions;
|
|
8
|
+
export default function (options: RouteComponentOptions): () => Rule;
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NormalizeRouteComponentOptions = void 0;
|
|
4
|
+
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
+
const schematics_ts_morph_1 = require("@rxap/schematics-ts-morph");
|
|
6
|
+
const ts_morph_1 = require("@rxap/ts-morph");
|
|
7
|
+
const utilities_1 = require("@rxap/utilities");
|
|
8
|
+
const angular_options_1 = require("../../lib/angular-options");
|
|
9
|
+
const route_component_1 = require("../../lib/route-component");
|
|
10
|
+
function NormalizeRouteComponentOptions(options) {
|
|
11
|
+
return Object.assign(Object.assign({}, (0, angular_options_1.NormalizeAngularOptions)(options)), (0, route_component_1.NormalizeRouteComponent)(options));
|
|
12
|
+
}
|
|
13
|
+
exports.NormalizeRouteComponentOptions = NormalizeRouteComponentOptions;
|
|
14
|
+
function printOptions(options) {
|
|
15
|
+
(0, angular_options_1.PrintAngularOptions)('route-component', options);
|
|
16
|
+
if (options.children) {
|
|
17
|
+
console.log(`=== children: \x1b[34m${options.children.map((item) => item.name).join(', ')}\x1b[0m`);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
console.log('=== children: \x1b[31mempty\x1b[0m');
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
function routeRule(normalizedOptions, parentRoute) {
|
|
24
|
+
var _a;
|
|
25
|
+
const { namedImport, name, project, feature, shared, directory, moduleSpecifier, path, outlet, data } = normalizedOptions;
|
|
26
|
+
const isFeatureRoute = !!feature;
|
|
27
|
+
return (0, schematics_1.chain)([
|
|
28
|
+
() => console.log('Coerce the component to route configuration'),
|
|
29
|
+
(0, schematics_ts_morph_1.TsMorphAngularProjectTransformRule)({
|
|
30
|
+
project,
|
|
31
|
+
shared,
|
|
32
|
+
feature,
|
|
33
|
+
directory,
|
|
34
|
+
}, (project, [sourceFile]) => {
|
|
35
|
+
let route;
|
|
36
|
+
if (moduleSpecifier) {
|
|
37
|
+
(0, ts_morph_1.CoerceImports)(sourceFile, {
|
|
38
|
+
namedImports: [namedImport],
|
|
39
|
+
moduleSpecifier,
|
|
40
|
+
});
|
|
41
|
+
route = {
|
|
42
|
+
component: namedImport,
|
|
43
|
+
path,
|
|
44
|
+
outlet,
|
|
45
|
+
data
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
route = {
|
|
50
|
+
path,
|
|
51
|
+
loadChildren: `./${name}/${name}.component`,
|
|
52
|
+
outlet,
|
|
53
|
+
data
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
(0, ts_morph_1.AddRoute)(sourceFile, {
|
|
57
|
+
route,
|
|
58
|
+
path: parentRoute,
|
|
59
|
+
name: isFeatureRoute ? 'ROUTES' : 'appRoutes',
|
|
60
|
+
});
|
|
61
|
+
}, [isFeatureRoute ? 'routes.ts' : 'app.routes.ts']),
|
|
62
|
+
() => console.log('Coerce the children components to route configuration'),
|
|
63
|
+
(0, schematics_1.chain)(((_a = normalizedOptions.children) !== null && _a !== void 0 ? _a : []).map(child => routeRule(Object.assign(Object.assign({}, normalizedOptions), child), [...parentRoute !== null && parentRoute !== void 0 ? parentRoute : [], path])))
|
|
64
|
+
]);
|
|
65
|
+
}
|
|
66
|
+
function componentRule(normalizedOptions) {
|
|
67
|
+
const { namedImport, name, selector, project, feature, shared, directory, overwrite, moduleSpecifier, } = normalizedOptions;
|
|
68
|
+
if (moduleSpecifier) {
|
|
69
|
+
console.log('Detecting external component. skip coercing the component');
|
|
70
|
+
return (0, schematics_1.noop)();
|
|
71
|
+
}
|
|
72
|
+
const templateOptions = Object.assign({}, normalizedOptions);
|
|
73
|
+
return (0, schematics_1.chain)([
|
|
74
|
+
() => console.log(`Coerce the route component ${namedImport}`),
|
|
75
|
+
(0, schematics_ts_morph_1.CoerceComponentRule)({
|
|
76
|
+
project,
|
|
77
|
+
feature,
|
|
78
|
+
shared,
|
|
79
|
+
directory,
|
|
80
|
+
overwrite,
|
|
81
|
+
name,
|
|
82
|
+
template: { options: templateOptions },
|
|
83
|
+
componentOptions: {
|
|
84
|
+
selector,
|
|
85
|
+
},
|
|
86
|
+
tsMorphTransform: (project, [sourceFile], [classDeclaration]) => {
|
|
87
|
+
(0, ts_morph_1.CoerceDefaultClassExport)(classDeclaration);
|
|
88
|
+
}
|
|
89
|
+
}),
|
|
90
|
+
]);
|
|
91
|
+
}
|
|
92
|
+
function default_1(options) {
|
|
93
|
+
const normalizedOptions = NormalizeRouteComponentOptions(options);
|
|
94
|
+
printOptions(normalizedOptions);
|
|
95
|
+
return () => {
|
|
96
|
+
var _a;
|
|
97
|
+
return (0, schematics_1.chain)([
|
|
98
|
+
() => console.group('\x1b[32m[@rxap/schematics-angular:route-component]\x1b[0m'),
|
|
99
|
+
componentRule(normalizedOptions),
|
|
100
|
+
() => console.log('Coerce children components'),
|
|
101
|
+
(0, schematics_1.chain)((0, utilities_1.flatten)((_a = normalizedOptions.children) !== null && _a !== void 0 ? _a : []).map(child => componentRule(Object.assign(Object.assign({}, normalizedOptions), child)))),
|
|
102
|
+
() => console.log('Coerce the route configuration'),
|
|
103
|
+
routeRule(normalizedOptions),
|
|
104
|
+
() => console.groupEnd(),
|
|
105
|
+
]);
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
exports.default = default_1;
|
|
109
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/angular/src/schematics/route-component/index.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "route-component-schematic",
|
|
4
|
+
"allOf": [
|
|
5
|
+
{
|
|
6
|
+
"$ref": "#/definitions/angular"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"$ref": "#/definitions/routeComponent"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"definitions": {
|
|
13
|
+
"angular": {
|
|
14
|
+
"allOf": [
|
|
15
|
+
{
|
|
16
|
+
"$ref": "#/definitions/general"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"type": "object",
|
|
20
|
+
"properties": {
|
|
21
|
+
"componentName": {
|
|
22
|
+
"type": "string"
|
|
23
|
+
},
|
|
24
|
+
"name": {
|
|
25
|
+
"type": "string"
|
|
26
|
+
},
|
|
27
|
+
"context": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"description": "The context use to generate proper names for class, files, etc"
|
|
30
|
+
},
|
|
31
|
+
"nestModule": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"description": "The module name for the table nest operations"
|
|
34
|
+
},
|
|
35
|
+
"controllerName": {
|
|
36
|
+
"type": "string"
|
|
37
|
+
},
|
|
38
|
+
"backend": {
|
|
39
|
+
"$ref": "#/definitions/backend"
|
|
40
|
+
},
|
|
41
|
+
"directory": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"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"
|
|
44
|
+
},
|
|
45
|
+
"shared": {
|
|
46
|
+
"type": "boolean",
|
|
47
|
+
"description": "Whether the generated code is used across the project",
|
|
48
|
+
"default": false
|
|
49
|
+
},
|
|
50
|
+
"scope": {
|
|
51
|
+
"type": "string"
|
|
52
|
+
},
|
|
53
|
+
"prefix": {
|
|
54
|
+
"type": "string"
|
|
55
|
+
},
|
|
56
|
+
"openApi": {
|
|
57
|
+
"type": "object",
|
|
58
|
+
"additionalProperties": true
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
"backend": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"description": "The backend that should be used to handel data",
|
|
67
|
+
"enum": [
|
|
68
|
+
"none",
|
|
69
|
+
"nestjs",
|
|
70
|
+
"open-api",
|
|
71
|
+
"local"
|
|
72
|
+
],
|
|
73
|
+
"default": "none"
|
|
74
|
+
},
|
|
75
|
+
"component": {
|
|
76
|
+
"type": "object",
|
|
77
|
+
"properties": {
|
|
78
|
+
"name": {
|
|
79
|
+
"type": "string"
|
|
80
|
+
},
|
|
81
|
+
"moduleSpecifier": {
|
|
82
|
+
"type": "string"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"required": [
|
|
86
|
+
"name"
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
"general": {
|
|
90
|
+
"type": "object",
|
|
91
|
+
"properties": {
|
|
92
|
+
"project": {
|
|
93
|
+
"type": "string",
|
|
94
|
+
"description": "Project name where the files should be generated"
|
|
95
|
+
},
|
|
96
|
+
"feature": {
|
|
97
|
+
"type": "string",
|
|
98
|
+
"description": "Feature name where the files should be generated"
|
|
99
|
+
},
|
|
100
|
+
"overwrite": {
|
|
101
|
+
"anyOf": [
|
|
102
|
+
{
|
|
103
|
+
"type": "boolean"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"type": "array",
|
|
107
|
+
"items": {
|
|
108
|
+
"type": "string"
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
],
|
|
112
|
+
"description": "Overwrite existing files",
|
|
113
|
+
"default": false
|
|
114
|
+
},
|
|
115
|
+
"overwriteHtml": {
|
|
116
|
+
"type": "boolean",
|
|
117
|
+
"default": false
|
|
118
|
+
},
|
|
119
|
+
"replace": {
|
|
120
|
+
"type": "boolean",
|
|
121
|
+
"default": false
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"routeComponent": {
|
|
126
|
+
"allOf": [
|
|
127
|
+
{
|
|
128
|
+
"$ref": "#/definitions/component"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"type": "object",
|
|
132
|
+
"properties": {
|
|
133
|
+
"path": {
|
|
134
|
+
"type": "string"
|
|
135
|
+
},
|
|
136
|
+
"outlet": {
|
|
137
|
+
"type": "string"
|
|
138
|
+
},
|
|
139
|
+
"data": {
|
|
140
|
+
"type": "object",
|
|
141
|
+
"additionalProperties": true
|
|
142
|
+
},
|
|
143
|
+
"children": {
|
|
144
|
+
"type": "array",
|
|
145
|
+
"items": {
|
|
146
|
+
"additionalProperties": true
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
]
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "route-component-schematic",
|
|
4
|
+
"allOf": [
|
|
5
|
+
{
|
|
6
|
+
"$ref": "#/definitions/angular"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"$ref": "#/definitions/routeComponent"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"definitions": {
|
|
13
|
+
"angular": {
|
|
14
|
+
"$ref": "../angular.schema.json"
|
|
15
|
+
},
|
|
16
|
+
"routeComponent": {
|
|
17
|
+
"$ref": "../route-component.schema.json"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "route-component",
|
|
4
|
+
"allOf": [
|
|
5
|
+
{
|
|
6
|
+
"$ref": "#/definitions/component"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"path": {
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
"outlet": {
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
"data": {
|
|
18
|
+
"type": "object",
|
|
19
|
+
"additionalProperties": true
|
|
20
|
+
},
|
|
21
|
+
"children": {
|
|
22
|
+
"type": "array",
|
|
23
|
+
"items": {
|
|
24
|
+
"additionalProperties": true
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"definitions": {
|
|
31
|
+
"component": {
|
|
32
|
+
"$ref": "./component.schema.json"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "select-form-control",
|
|
4
|
+
"allOf": [
|
|
5
|
+
{
|
|
6
|
+
"$ref": "#/definitions/baseFormControl"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"formField": {
|
|
12
|
+
"$ref": "#/definitions/formField"
|
|
13
|
+
},
|
|
14
|
+
"kind": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"const": "select"
|
|
17
|
+
},
|
|
18
|
+
"upstream": {
|
|
19
|
+
"$ref": "#/definitions/upstream"
|
|
20
|
+
},
|
|
21
|
+
"optionList": {
|
|
22
|
+
"type": "array",
|
|
23
|
+
"items": {
|
|
24
|
+
"type": "object",
|
|
25
|
+
"properties": {
|
|
26
|
+
"display": {
|
|
27
|
+
"type": "string"
|
|
28
|
+
},
|
|
29
|
+
"value": {
|
|
30
|
+
"oneOf": [
|
|
31
|
+
{
|
|
32
|
+
"type": "string"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"type": "number"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"type": "boolean"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"type": "object",
|
|
42
|
+
"additionalProperties": true
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"backend": {
|
|
50
|
+
"$ref": "#/definitions/backend"
|
|
51
|
+
},
|
|
52
|
+
"multiple": {
|
|
53
|
+
"alias": "multi",
|
|
54
|
+
"type": "boolean",
|
|
55
|
+
"description": "Whether the select form control is multiple mode"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"required": ["kind"]
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
"definitions": {
|
|
62
|
+
"backend": {
|
|
63
|
+
"$ref": "./backend.schema.json"
|
|
64
|
+
},
|
|
65
|
+
"formField": {
|
|
66
|
+
"$ref": "./form-field.schema.json"
|
|
67
|
+
},
|
|
68
|
+
"baseFormControl": {
|
|
69
|
+
"$ref": "./base-form-control.schema.json"
|
|
70
|
+
},
|
|
71
|
+
"upstream": {
|
|
72
|
+
"$ref": "./upstream.schema.json"
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "slide-toggle-form-control",
|
|
4
|
+
"allOf": [
|
|
5
|
+
{
|
|
6
|
+
"$ref": "#/definitions/baseFormControl"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"kind": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"const": "slide-toggle"
|
|
14
|
+
},
|
|
15
|
+
"labelPosition": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"enum": [
|
|
18
|
+
"before",
|
|
19
|
+
"after"
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"required": ["kind"]
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"definitions": {
|
|
27
|
+
"baseFormControl": {
|
|
28
|
+
"$ref": "./base-form-control.schema.json"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|