@rxap/schematic-angular 16.2.0-dev.9 → 16.3.0-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +400 -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 +2 -1
- package/src/lib/angular-options.js.map +1 -1
- package/src/lib/backend-types.d.ts +2 -1
- package/src/lib/backend-types.js +1 -0
- package/src/lib/backend-types.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.d.ts +4 -1
- package/src/lib/coerce-minimum-table-component.js +21 -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/column/options-table-column.d.ts +11 -0
- package/src/lib/table/column/options-table-column.js +23 -0
- package/src/lib/table/column/options-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 +14 -0
- package/src/lib/table/table-column-kind.js +22 -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 +39 -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 +3352 -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 +1953 -217
- 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 +1893 -149
- 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 +1107 -247
- 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 +1863 -188
- 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 +1412 -494
- 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 +1403 -480
- 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 +13 -5
- 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/backend.schema.json +2 -1
- 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 +1045 -215
- 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 +73 -155
- 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 +543 -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 +273 -250
- 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 +389 -259
- 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 +405 -285
- 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 +1060 -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 +944 -199
- 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 +757 -176
- 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 +939 -200
- 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 +1060 -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/option.schema.json +27 -0
- package/src/schematics/options-table-column.schema.json +33 -0
- 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 +155 -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 +32 -29
- 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 +173 -218
- 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 +1098 -290
- package/src/schematics/table/action/form-table-action/template.schema.json +6 -6
- package/src/schematics/table/action/navigation-table-action/schema.json +172 -217
- package/src/schematics/table/action/navigation-table-action/template.schema.json +3 -6
- package/src/schematics/table/action/open-api-table-action/schema.json +173 -218
- 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 +163 -208
- 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 +1045 -213
- 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 +131 -207
- package/src/schematics/table/header-button/navigation-table-header-button/template.schema.json +3 -6
- package/src/schematics/table/table-action/schema.json +102 -150
- package/src/schematics/table/table-action/template.schema.json +6 -6
- package/src/schematics/table/table-component/files/component/__componentName__.component.html.hbs +87 -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 +1314 -421
- package/src/schematics/table/table-component/template.schema.json +6 -12
- package/src/schematics/table/table-header-button/schema.json +69 -148
- 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/options-table-column.hbs +26 -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 +96 -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 +1306 -408
- 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 +67 -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 +71 -62
- 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 +281 -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,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "tree-table-column",
|
|
4
|
+
"allOf": [
|
|
5
|
+
{
|
|
6
|
+
"$ref": "#/definitions/baseTableColumn"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"kind": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"const": "tree"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"required": ["kind"]
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"definitions": {
|
|
20
|
+
"baseTableColumn": {
|
|
21
|
+
"$ref": "./base-table-column.schema.json"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"$id": "tree-table",
|
|
4
4
|
"allOf": [
|
|
5
5
|
{
|
|
6
|
-
"$ref": "
|
|
6
|
+
"$ref": "#/definitions/minimumTable"
|
|
7
7
|
},
|
|
8
8
|
{
|
|
9
9
|
"type": "object",
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
"type": "string",
|
|
16
16
|
"enum": [
|
|
17
17
|
"navigation-back-header",
|
|
18
|
-
"without-title"
|
|
18
|
+
"without-title",
|
|
19
|
+
"with-header"
|
|
19
20
|
]
|
|
20
21
|
},
|
|
21
22
|
"description": "The table modifiers"
|
|
@@ -33,8 +34,8 @@
|
|
|
33
34
|
"type": {
|
|
34
35
|
"$ref": "./type.schema.json"
|
|
35
36
|
},
|
|
36
|
-
"
|
|
37
|
-
"
|
|
37
|
+
"minimumTable": {
|
|
38
|
+
"ref": "./minimum-table.schema.json"
|
|
38
39
|
}
|
|
39
40
|
}
|
|
40
41
|
}
|
|
@@ -16,38 +16,77 @@
|
|
|
16
16
|
"type": "string"
|
|
17
17
|
},
|
|
18
18
|
"mapper": {
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
19
|
+
"oneOf": [
|
|
20
|
+
{
|
|
21
|
+
"type": "object",
|
|
22
|
+
"properties": {
|
|
23
|
+
"kind": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"const": "paged"
|
|
26
|
+
},
|
|
27
|
+
"pageIndex": {
|
|
28
|
+
"type": "string"
|
|
29
|
+
},
|
|
30
|
+
"pageSize": {
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
"sortBy": {
|
|
34
|
+
"type": "string"
|
|
35
|
+
},
|
|
36
|
+
"sortDirection": {
|
|
37
|
+
"type": "string"
|
|
38
|
+
},
|
|
39
|
+
"list": {
|
|
40
|
+
"type": "string"
|
|
41
|
+
},
|
|
42
|
+
"total": {
|
|
43
|
+
"type": "string"
|
|
44
|
+
},
|
|
45
|
+
"filter": {
|
|
46
|
+
"type": "object",
|
|
47
|
+
"properties": {
|
|
48
|
+
"eq": {
|
|
49
|
+
"type": "string"
|
|
50
|
+
},
|
|
51
|
+
"join": {
|
|
52
|
+
"type": "string"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
38
57
|
},
|
|
39
|
-
|
|
58
|
+
{
|
|
40
59
|
"type": "object",
|
|
41
60
|
"properties": {
|
|
42
|
-
"
|
|
61
|
+
"kind": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"const": "options"
|
|
64
|
+
},
|
|
65
|
+
"toFunction": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"enum": ["ToOptions", "ToOptionsFromObject"]
|
|
68
|
+
},
|
|
69
|
+
"toValue": {
|
|
43
70
|
"type": "string"
|
|
44
71
|
},
|
|
45
|
-
"
|
|
72
|
+
"toDisplay": {
|
|
73
|
+
"type": "string"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"type": "object",
|
|
79
|
+
"properties": {
|
|
80
|
+
"kind": {
|
|
81
|
+
"type": "string",
|
|
82
|
+
"const": "resolve"
|
|
83
|
+
},
|
|
84
|
+
"value": {
|
|
46
85
|
"type": "string"
|
|
47
86
|
}
|
|
48
87
|
}
|
|
49
88
|
}
|
|
50
|
-
|
|
89
|
+
]
|
|
51
90
|
}
|
|
52
91
|
},
|
|
53
92
|
"required": ["kind", "operationId"]
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "value",
|
|
4
|
+
"oneOf": [
|
|
5
|
+
{
|
|
6
|
+
"type": "string"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"type": {
|
|
12
|
+
"$ref": "#/definitions/type"
|
|
13
|
+
},
|
|
14
|
+
"value": {
|
|
15
|
+
"type": "string"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"required": ["value"]
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"definitions": {
|
|
22
|
+
"type": {
|
|
23
|
+
"$ref": "./type.schema.json"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "schematic-angular",
|
|
4
|
+
"oneOf": [
|
|
5
|
+
{
|
|
6
|
+
"type": "array",
|
|
7
|
+
"items": {
|
|
8
|
+
"$ref": "#/definitions/schematicInput"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"$ref": "#/definitions/schematicInput"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"definitions": {
|
|
16
|
+
"tableComponentSchematic": {
|
|
17
|
+
"$ref": "schematics/table/table-component/template.schema.json"
|
|
18
|
+
},
|
|
19
|
+
"treeTableComponentSchematic": {
|
|
20
|
+
"$ref": "schematics/table/tree-table-component/template.schema.json"
|
|
21
|
+
},
|
|
22
|
+
"formComponentSchematic": {
|
|
23
|
+
"$ref": "schematics/form/form-component/template.schema.json"
|
|
24
|
+
},
|
|
25
|
+
"routeComponentSchematic": {
|
|
26
|
+
"$ref": "schematics/route-component/template.schema.json"
|
|
27
|
+
},
|
|
28
|
+
"formDefinitionSchematic": {
|
|
29
|
+
"$ref": "schematics/form/form-definition/template.schema.json"
|
|
30
|
+
},
|
|
31
|
+
"tableActionSchematic": {
|
|
32
|
+
"$ref": "schematics/table/table-action/template.schema.json"
|
|
33
|
+
},
|
|
34
|
+
"tableHeaderButtonSchematic": {
|
|
35
|
+
"$ref": "schematics/table/table-header-button/template.schema.json"
|
|
36
|
+
},
|
|
37
|
+
"formTableHeaderButtonSchematic": {
|
|
38
|
+
"$ref": "schematics/table/header-button/form-table-header-button/template.schema.json"
|
|
39
|
+
},
|
|
40
|
+
"navigationTableHeaderButtonSchematic": {
|
|
41
|
+
"$ref": "schematics/table/header-button/navigation-table-header-button/template.schema.json"
|
|
42
|
+
},
|
|
43
|
+
"accordionComponentSchematic": {
|
|
44
|
+
"$ref": "schematics/accordion/accordion-component/template.schema.json"
|
|
45
|
+
},
|
|
46
|
+
"accordionItemComponentSchematic": {
|
|
47
|
+
"$ref": "schematics/accordion/accordion-item-component/template.schema.json"
|
|
48
|
+
},
|
|
49
|
+
"accordionItemTableComponentSchematic": {
|
|
50
|
+
"$ref": "schematics/accordion/item/accordion-item-table-component/template.schema.json"
|
|
51
|
+
},
|
|
52
|
+
"accordionItemSwitchComponentSchematic": {
|
|
53
|
+
"$ref": "schematics/accordion/item/accordion-item-switch-component/template.schema.json"
|
|
54
|
+
},
|
|
55
|
+
"dataGridComponentSchematic": {
|
|
56
|
+
"$ref": "schematics/data-grid-component/template.schema.json"
|
|
57
|
+
},
|
|
58
|
+
"dialogComponentSchematic": {
|
|
59
|
+
"$ref": "schematics/dialog-component/template.schema.json"
|
|
60
|
+
},
|
|
61
|
+
"inputFormControlSchematic": {
|
|
62
|
+
"$ref": "schematics/form/control/input-form-control/template.schema.json"
|
|
63
|
+
},
|
|
64
|
+
"selectFormControlSchematic": {
|
|
65
|
+
"$ref": "schematics/form/control/select-form-control/template.schema.json"
|
|
66
|
+
},
|
|
67
|
+
"tableSelectFormControlSchematic": {
|
|
68
|
+
"$ref": "schematics/form/control/table-select-form-control/template.schema.json"
|
|
69
|
+
},
|
|
70
|
+
"autocompleteTableSelectFormControlSchematic": {
|
|
71
|
+
"$ref": "schematics/form/control/autocomplete-table-select-form-control/template.schema.json"
|
|
72
|
+
},
|
|
73
|
+
"formControlSchematic": {
|
|
74
|
+
"$ref": "schematics/form/form-control/template.schema.json"
|
|
75
|
+
},
|
|
76
|
+
"formGroupSchematic": {
|
|
77
|
+
"$ref": "schematics/form/form-group/template.schema.json"
|
|
78
|
+
},
|
|
79
|
+
"formArraySchematic": {
|
|
80
|
+
"$ref": "schematics/form/form-array/template.schema.json"
|
|
81
|
+
},
|
|
82
|
+
"dialogTableActionSchematic": {
|
|
83
|
+
"$ref": "schematics/table/action/dialog-table-action/template.schema.json"
|
|
84
|
+
},
|
|
85
|
+
"formTableActionSchematic": {
|
|
86
|
+
"$ref": "schematics/table/action/form-table-action/template.schema.json"
|
|
87
|
+
},
|
|
88
|
+
"navigationTableActionSchematic": {
|
|
89
|
+
"$ref": "schematics/table/action/navigation-table-action/template.schema.json"
|
|
90
|
+
},
|
|
91
|
+
"operationTableActionSchematic": {
|
|
92
|
+
"$ref": "schematics/table/action/operation-table-action/template.schema.json"
|
|
93
|
+
},
|
|
94
|
+
"openApiTableActionSchematic": {
|
|
95
|
+
"$ref": "schematics/table/action/open-api-table-action/template.schema.json"
|
|
96
|
+
},
|
|
97
|
+
"treeComponentSchematic": {
|
|
98
|
+
"$ref": "schematics/tree-component/template.schema.json"
|
|
99
|
+
},
|
|
100
|
+
"accordionItemDataGridComponentSchematic": {
|
|
101
|
+
"$ref": "schematics/accordion/item/accordion-item-data-grid-component/template.schema.json"
|
|
102
|
+
},
|
|
103
|
+
"accordionItemTreeTableComponentSchematic": {
|
|
104
|
+
"$ref": "schematics/accordion/item/accordion-item-tree-table-component/template.schema.json"
|
|
105
|
+
},
|
|
106
|
+
"abstractControl": {
|
|
107
|
+
"$ref": "schematics/abstract-control.schema.json"
|
|
108
|
+
},
|
|
109
|
+
"accordionIdentifier": {
|
|
110
|
+
"$ref": "schematics/accordion-identifier.schema.json"
|
|
111
|
+
},
|
|
112
|
+
"accordionItem": {
|
|
113
|
+
"$ref": "schematics/accordion-item.schema.json"
|
|
114
|
+
},
|
|
115
|
+
"angular": {
|
|
116
|
+
"$ref": "schematics/angular.schema.json"
|
|
117
|
+
},
|
|
118
|
+
"autocompleteTableSelectFormControl": {
|
|
119
|
+
"$ref": "schematics/autocomplete-table-select-form-control.schema.json"
|
|
120
|
+
},
|
|
121
|
+
"backend": {
|
|
122
|
+
"$ref": "schematics/backend.schema.json"
|
|
123
|
+
},
|
|
124
|
+
"baseAccordionItem": {
|
|
125
|
+
"$ref": "schematics/base-accordion-item.schema.json"
|
|
126
|
+
},
|
|
127
|
+
"baseFormArray": {
|
|
128
|
+
"$ref": "schematics/base-form-array.schema.json"
|
|
129
|
+
},
|
|
130
|
+
"baseFormControl": {
|
|
131
|
+
"$ref": "schematics/base-form-control.schema.json"
|
|
132
|
+
},
|
|
133
|
+
"baseFormGroup": {
|
|
134
|
+
"$ref": "schematics/base-form-group.schema.json"
|
|
135
|
+
},
|
|
136
|
+
"baseTableColumn": {
|
|
137
|
+
"$ref": "schematics/base-table-column.schema.json"
|
|
138
|
+
},
|
|
139
|
+
"booleanTableColumn": {
|
|
140
|
+
"$ref": "schematics/boolean-table-column.schema.json"
|
|
141
|
+
},
|
|
142
|
+
"button": {
|
|
143
|
+
"$ref": "schematics/button.schema.json"
|
|
144
|
+
},
|
|
145
|
+
"checkboxFormControl": {
|
|
146
|
+
"$ref": "schematics/checkbox-form-control.schema.json"
|
|
147
|
+
},
|
|
148
|
+
"componentTableColumn": {
|
|
149
|
+
"$ref": "schematics/component-table-column.schema.json"
|
|
150
|
+
},
|
|
151
|
+
"component": {
|
|
152
|
+
"$ref": "schematics/component.schema.json"
|
|
153
|
+
},
|
|
154
|
+
"control": {
|
|
155
|
+
"$ref": "schematics/control.schema.json"
|
|
156
|
+
},
|
|
157
|
+
"copyToClipboardTableColumn": {
|
|
158
|
+
"$ref": "schematics/copy-to-clipboard-table-column.schema.json"
|
|
159
|
+
},
|
|
160
|
+
"cssClass": {
|
|
161
|
+
"$ref": "schematics/css-class.schema.json"
|
|
162
|
+
},
|
|
163
|
+
"customTableColumn": {
|
|
164
|
+
"$ref": "schematics/custom-table-column.schema.json"
|
|
165
|
+
},
|
|
166
|
+
"dataGridAccordionItem": {
|
|
167
|
+
"$ref": "schematics/data-grid-accordion-item.schema.json"
|
|
168
|
+
},
|
|
169
|
+
"dataGridItem": {
|
|
170
|
+
"$ref": "schematics/data-grid-item.schema.json"
|
|
171
|
+
},
|
|
172
|
+
"dataGrid": {
|
|
173
|
+
"$ref": "schematics/data-grid.schema.json"
|
|
174
|
+
},
|
|
175
|
+
"dateTableColumn": {
|
|
176
|
+
"$ref": "schematics/date-table-column.schema.json"
|
|
177
|
+
},
|
|
178
|
+
"formArray": {
|
|
179
|
+
"$ref": "schematics/form-array.schema.json"
|
|
180
|
+
},
|
|
181
|
+
"formComponent": {
|
|
182
|
+
"$ref": "schematics/form-component.schema.json"
|
|
183
|
+
},
|
|
184
|
+
"formControl": {
|
|
185
|
+
"$ref": "schematics/form-control.schema.json"
|
|
186
|
+
},
|
|
187
|
+
"formDefinition": {
|
|
188
|
+
"$ref": "schematics/form-definition.schema.json"
|
|
189
|
+
},
|
|
190
|
+
"formField": {
|
|
191
|
+
"$ref": "schematics/form-field.schema.json"
|
|
192
|
+
},
|
|
193
|
+
"formGroup": {
|
|
194
|
+
"$ref": "schematics/form-group.schema.json"
|
|
195
|
+
},
|
|
196
|
+
"general": {
|
|
197
|
+
"$ref": "schematics/general.schema.json"
|
|
198
|
+
},
|
|
199
|
+
"headerButton": {
|
|
200
|
+
"$ref": "schematics/header-button.schema.json"
|
|
201
|
+
},
|
|
202
|
+
"iconTableColumn": {
|
|
203
|
+
"$ref": "schematics/icon-table-column.schema.json"
|
|
204
|
+
},
|
|
205
|
+
"inputFormControl": {
|
|
206
|
+
"$ref": "schematics/input-form-control.schema.json"
|
|
207
|
+
},
|
|
208
|
+
"linkTableColumn": {
|
|
209
|
+
"$ref": "schematics/link-table-column.schema.json"
|
|
210
|
+
},
|
|
211
|
+
"minimumTable": {
|
|
212
|
+
"$ref": "schematics/minimum-table.schema.json"
|
|
213
|
+
},
|
|
214
|
+
"option": {
|
|
215
|
+
"$ref": "schematics/option.schema.json"
|
|
216
|
+
},
|
|
217
|
+
"optionsTableColumn": {
|
|
218
|
+
"$ref": "schematics/options-table-column.schema.json"
|
|
219
|
+
},
|
|
220
|
+
"pipe": {
|
|
221
|
+
"$ref": "schematics/pipe.schema.json"
|
|
222
|
+
},
|
|
223
|
+
"property": {
|
|
224
|
+
"$ref": "schematics/property.schema.json"
|
|
225
|
+
},
|
|
226
|
+
"routeComponent": {
|
|
227
|
+
"$ref": "schematics/route-component.schema.json"
|
|
228
|
+
},
|
|
229
|
+
"selectFormControl": {
|
|
230
|
+
"$ref": "schematics/select-form-control.schema.json"
|
|
231
|
+
},
|
|
232
|
+
"slideToggleFormControl": {
|
|
233
|
+
"$ref": "schematics/slide-toggle-form-control.schema.json"
|
|
234
|
+
},
|
|
235
|
+
"spinnerTableColumn": {
|
|
236
|
+
"$ref": "schematics/spinner-table-column.schema.json"
|
|
237
|
+
},
|
|
238
|
+
"switchAccordionItem": {
|
|
239
|
+
"$ref": "schematics/switch-accordion-item.schema.json"
|
|
240
|
+
},
|
|
241
|
+
"tableAccordionItem": {
|
|
242
|
+
"$ref": "schematics/table-accordion-item.schema.json"
|
|
243
|
+
},
|
|
244
|
+
"tableAction": {
|
|
245
|
+
"$ref": "schematics/table-action.schema.json"
|
|
246
|
+
},
|
|
247
|
+
"tableColumn": {
|
|
248
|
+
"$ref": "schematics/table-column.schema.json"
|
|
249
|
+
},
|
|
250
|
+
"tableSelectFormControl": {
|
|
251
|
+
"$ref": "schematics/table-select-form-control.schema.json"
|
|
252
|
+
},
|
|
253
|
+
"table": {
|
|
254
|
+
"$ref": "schematics/table.schema.json"
|
|
255
|
+
},
|
|
256
|
+
"textareaFormControl": {
|
|
257
|
+
"$ref": "schematics/textarea-form-control.schema.json"
|
|
258
|
+
},
|
|
259
|
+
"treeTableAccordionItem": {
|
|
260
|
+
"$ref": "schematics/tree-table-accordion-item.schema.json"
|
|
261
|
+
},
|
|
262
|
+
"treeTableColumn": {
|
|
263
|
+
"$ref": "schematics/tree-table-column.schema.json"
|
|
264
|
+
},
|
|
265
|
+
"treeTable": {
|
|
266
|
+
"$ref": "schematics/tree-table.schema.json"
|
|
267
|
+
},
|
|
268
|
+
"type": {
|
|
269
|
+
"$ref": "schematics/type.schema.json"
|
|
270
|
+
},
|
|
271
|
+
"upstream": {
|
|
272
|
+
"$ref": "schematics/upstream.schema.json"
|
|
273
|
+
},
|
|
274
|
+
"value": {
|
|
275
|
+
"$ref": "schematics/value.schema.json"
|
|
276
|
+
},
|
|
277
|
+
"schematicInput": {
|
|
278
|
+
"$ref": "./schematic-input.schema.json"
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Normalized } from '@rxap/utilities';
|
|
2
|
-
import { FormDefinitionControl, NormalizedFormDefinitionControl } from './form-definition-control';
|
|
3
|
-
export interface FormComponentControl extends FormDefinitionControl {
|
|
4
|
-
}
|
|
5
|
-
export interface NormalizedFormComponentControl extends Omit<Readonly<Normalized<FormComponentControl>>, 'type' | 'importList'>, NormalizedFormDefinitionControl {
|
|
6
|
-
}
|
|
7
|
-
export declare function NormalizeFormComponentControl(control: FormComponentControl): NormalizedFormComponentControl;
|
|
8
|
-
export declare function NormalizeFormComponentControlList(controlList?: Array<FormComponentControl>): ReadonlyArray<NormalizedFormComponentControl>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NormalizeFormComponentControlList = exports.NormalizeFormComponentControl = void 0;
|
|
4
|
-
const form_definition_control_1 = require("./form-definition-control");
|
|
5
|
-
function NormalizeFormComponentControl(control) {
|
|
6
|
-
const normalizedControl = (0, form_definition_control_1.NormalizeFormDefinitionControl)(control);
|
|
7
|
-
return Object.freeze(Object.assign({}, normalizedControl));
|
|
8
|
-
}
|
|
9
|
-
exports.NormalizeFormComponentControl = NormalizeFormComponentControl;
|
|
10
|
-
function NormalizeFormComponentControlList(controlList) {
|
|
11
|
-
var _a;
|
|
12
|
-
return Object.freeze((_a = controlList === null || controlList === void 0 ? void 0 : controlList.map(NormalizeFormComponentControl)) !== null && _a !== void 0 ? _a : []);
|
|
13
|
-
}
|
|
14
|
-
exports.NormalizeFormComponentControlList = NormalizeFormComponentControlList;
|
|
15
|
-
//# sourceMappingURL=form-component-control.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"form-component-control.js","sourceRoot":"","sources":["../../../../../../packages/schematic/angular/src/lib/form-component-control.ts"],"names":[],"mappings":";;;AAEA,uEAImC;AAanC,SAAgB,6BAA6B,CAC3C,OAA6B;IAE7B,MAAM,iBAAiB,GAAG,IAAA,wDAA8B,EAAC,OAAO,CAAC,CAAC;IAClE,OAAO,MAAM,CAAC,MAAM,mBACf,iBAAiB,EACpB,CAAC;AACL,CAAC;AAPD,sEAOC;AAED,SAAgB,iCAAiC,CAC/C,WAAyC;;IAEzC,OAAO,MAAM,CAAC,MAAM,CAAC,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,GAAG,CAAC,6BAA6B,CAAC,mCAAI,EAAE,CAAC,CAAC;AAC9E,CAAC;AAJD,8EAIC"}
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import { DataProperty, NormalizedDataProperty, NormalizedTypeImport, NormalizedUpstreamOptions, TypeImport, UpstreamOptions } from '@rxap/ts-morph';
|
|
2
|
-
import { ControlOption, Normalized } from '@rxap/utilities';
|
|
3
|
-
import Handlebars from 'handlebars';
|
|
4
|
-
import { BackendTypes } from './backend-types';
|
|
5
|
-
import { NormalizedTableColumn, TableColumn } from './table-column';
|
|
6
|
-
export declare enum FormControlKinds {
|
|
7
|
-
DEFAULT = "default",
|
|
8
|
-
INPUT = "input",
|
|
9
|
-
SELECT = "select",
|
|
10
|
-
CHECKBOX = "checkbox",
|
|
11
|
-
SLIDE_TOGGLE = "slide-toggle",
|
|
12
|
-
TABLE_SELECT = "table-select"
|
|
13
|
-
}
|
|
14
|
-
export interface BaseFormControl {
|
|
15
|
-
name: string;
|
|
16
|
-
type?: string | TypeImport;
|
|
17
|
-
isArray?: boolean;
|
|
18
|
-
state?: string;
|
|
19
|
-
isRequired?: boolean;
|
|
20
|
-
isReadonly?: boolean;
|
|
21
|
-
isDisabled?: boolean;
|
|
22
|
-
validatorList?: string[];
|
|
23
|
-
importList?: TypeImport[];
|
|
24
|
-
kind: FormControlKinds;
|
|
25
|
-
template?: string;
|
|
26
|
-
label?: string;
|
|
27
|
-
}
|
|
28
|
-
export interface NormalizedBaseFormControl extends Readonly<Normalized<BaseFormControl>> {
|
|
29
|
-
type: NormalizedTypeImport;
|
|
30
|
-
importList: NormalizedTypeImport[];
|
|
31
|
-
handlebars: Handlebars.TemplateDelegate<{
|
|
32
|
-
control: NormalizedBaseFormControl;
|
|
33
|
-
}>;
|
|
34
|
-
}
|
|
35
|
-
export declare function NormalizeBaseFormControl(control: BaseFormControl): NormalizedBaseFormControl;
|
|
36
|
-
export interface FormFieldButton {
|
|
37
|
-
svgIcon?: string;
|
|
38
|
-
icon?: string;
|
|
39
|
-
directiveList?: TypeImport[];
|
|
40
|
-
importList?: TypeImport[];
|
|
41
|
-
}
|
|
42
|
-
export interface FormField {
|
|
43
|
-
label?: string;
|
|
44
|
-
prefixButton?: FormFieldButton;
|
|
45
|
-
suffixButton?: FormFieldButton;
|
|
46
|
-
directiveList?: TypeImport[];
|
|
47
|
-
hasClearButton?: boolean;
|
|
48
|
-
}
|
|
49
|
-
export type NormalizedFormField = Readonly<Normalized<FormField>>;
|
|
50
|
-
export interface NormalizedFormFieldButton extends Readonly<Normalized<FormFieldButton>> {
|
|
51
|
-
directiveList: NormalizedTypeImport[];
|
|
52
|
-
importList: NormalizedTypeImport[];
|
|
53
|
-
}
|
|
54
|
-
export declare function NormalizeFormFieldButton(button?: FormFieldButton | null): NormalizedFormFieldButton | null;
|
|
55
|
-
export declare function NormalizeFormField(formField: FormField, importList?: TypeImport[], defaultFormField?: Partial<FormField>): NormalizedFormField;
|
|
56
|
-
export interface InputFormControl extends BaseFormControl {
|
|
57
|
-
inputType?: string;
|
|
58
|
-
placeholder?: string;
|
|
59
|
-
formField?: FormField;
|
|
60
|
-
}
|
|
61
|
-
export interface NormalizedInputFormControl extends Omit<Readonly<Normalized<InputFormControl>>, 'type' | 'importList'>, NormalizedBaseFormControl {
|
|
62
|
-
kind: FormControlKinds.INPUT;
|
|
63
|
-
}
|
|
64
|
-
export declare function IsNormalizedInputFormControlOptions(template: NormalizedBaseFormControl): template is NormalizedInputFormControl;
|
|
65
|
-
export declare function NormalizeInputFormControl(control: InputFormControl): NormalizedInputFormControl;
|
|
66
|
-
export interface SelectFormControl extends BaseFormControl {
|
|
67
|
-
options?: ControlOption[];
|
|
68
|
-
backend?: BackendTypes;
|
|
69
|
-
multiple?: boolean;
|
|
70
|
-
formField?: FormField;
|
|
71
|
-
}
|
|
72
|
-
export interface NormalizedSelectFormControl extends Readonly<Normalized<Omit<SelectFormControl, 'options' | 'type' | 'importList'>>>, NormalizedBaseFormControl {
|
|
73
|
-
kind: FormControlKinds.SELECT;
|
|
74
|
-
options: ReadonlyArray<ControlOption> | null;
|
|
75
|
-
backend: BackendTypes;
|
|
76
|
-
}
|
|
77
|
-
export declare function IsNormalizedSelectFormControl(template: NormalizedBaseFormControl): template is NormalizedSelectFormControl;
|
|
78
|
-
export declare function NormalizeSelectFormControl(control: SelectFormControl): NormalizedSelectFormControl;
|
|
79
|
-
export interface CheckboxFormControl extends BaseFormControl {
|
|
80
|
-
labelPosition?: 'before' | 'after';
|
|
81
|
-
}
|
|
82
|
-
export interface NormalizedCheckboxFormControl extends Readonly<Normalized<Omit<CheckboxFormControl, 'type' | 'importList'>>>, NormalizedBaseFormControl {
|
|
83
|
-
kind: FormControlKinds.CHECKBOX;
|
|
84
|
-
}
|
|
85
|
-
export declare function IsNormalizedCheckboxFormControl(template: NormalizedBaseFormControl): template is NormalizedCheckboxFormControl;
|
|
86
|
-
export declare function NormalizeCheckboxFormControl(control: CheckboxFormControl): NormalizedCheckboxFormControl;
|
|
87
|
-
export interface SlideToggleFormControl extends BaseFormControl {
|
|
88
|
-
labelPosition?: 'before' | 'after';
|
|
89
|
-
}
|
|
90
|
-
export interface NormalizedSlideToggleFormControl extends Readonly<Normalized<Omit<SlideToggleFormControl, 'type' | 'importList'>>>, NormalizedBaseFormControl {
|
|
91
|
-
kind: FormControlKinds.CHECKBOX;
|
|
92
|
-
}
|
|
93
|
-
export declare function IsNormalizedSlideToggleFormControl(template: NormalizedBaseFormControl): template is NormalizedSlideToggleFormControl;
|
|
94
|
-
export declare function NormalizeSlideToggleFormControl(control: SlideToggleFormControl): NormalizedSlideToggleFormControl;
|
|
95
|
-
export type TableSelectColumn = Pick<TableColumn, 'name' | 'title' | 'hasFilter' | 'kind' | 'propertyPath' | 'type'>;
|
|
96
|
-
export type NormalizedTableSelectColumn = Pick<NormalizedTableColumn, 'name' | 'title' | 'hasFilter' | 'kind' | 'propertyPath' | 'type'>;
|
|
97
|
-
export declare function NormalizeTableSelectColumn(column: TableSelectColumn): NormalizedTableSelectColumn;
|
|
98
|
-
export interface TableSelectToFunction {
|
|
99
|
-
property: DataProperty;
|
|
100
|
-
}
|
|
101
|
-
export interface NormalizedTableSelectToFunction extends Readonly<Normalized<TableSelectToFunction>> {
|
|
102
|
-
property: NormalizedDataProperty;
|
|
103
|
-
}
|
|
104
|
-
export declare function NormalizeTableSelectToFunction(toFunction: TableSelectToFunction | null | undefined, columnList: TableSelectColumn[]): NormalizedTableSelectToFunction;
|
|
105
|
-
export interface TableSelectFormControl extends BaseFormControl {
|
|
106
|
-
backend?: BackendTypes;
|
|
107
|
-
formField?: FormField;
|
|
108
|
-
title?: string;
|
|
109
|
-
propertyList?: DataProperty[];
|
|
110
|
-
columnList?: TableSelectColumn[];
|
|
111
|
-
toDisplay?: TableSelectToFunction;
|
|
112
|
-
toValue?: TableSelectToFunction;
|
|
113
|
-
upstream?: UpstreamOptions;
|
|
114
|
-
}
|
|
115
|
-
export interface NormalizedTableSelectFormControl extends Readonly<Normalized<Omit<TableSelectFormControl, 'type' | 'importList' | 'columnList' | 'propertyList'>>>, NormalizedBaseFormControl {
|
|
116
|
-
kind: FormControlKinds.TABLE_SELECT;
|
|
117
|
-
backend: BackendTypes;
|
|
118
|
-
columnList: NormalizedTableSelectColumn[];
|
|
119
|
-
propertyList: ReadonlyArray<NormalizedDataProperty>;
|
|
120
|
-
toDisplay: NormalizedTableSelectToFunction;
|
|
121
|
-
toValue: NormalizedTableSelectToFunction;
|
|
122
|
-
upstream: NormalizedUpstreamOptions | null;
|
|
123
|
-
}
|
|
124
|
-
export declare function IsNormalizedTableSelectFormControl(template: NormalizedBaseFormControl): template is NormalizedTableSelectFormControl;
|
|
125
|
-
export declare function NormalizeTableSelectFormControl(control: TableSelectFormControl): NormalizedTableSelectFormControl;
|