@rxap/schematic-angular 16.2.0-dev.6 → 16.2.0-dev.61
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 +417 -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 +40 -6
- package/src/lib/minimum-table-options.js.map +1 -1
- package/src/lib/pipe-option.d.ts +11 -0
- package/src/lib/pipe-option.js +75 -0
- package/src/lib/pipe-option.js.map +1 -0
- package/src/lib/route-component.d.ts +16 -0
- package/src/lib/route-component.js +15 -0
- package/src/lib/route-component.js.map +1 -0
- package/src/lib/table/column/base-table-column.d.ts +61 -0
- package/src/lib/table/column/base-table-column.js +309 -0
- package/src/lib/table/column/base-table-column.js.map +1 -0
- package/src/lib/table/column/boolean-table-column.d.ts +8 -0
- package/src/lib/table/column/boolean-table-column.js +10 -0
- package/src/lib/table/column/boolean-table-column.js.map +1 -0
- package/src/lib/table/column/custom-table-column.d.ts +11 -0
- package/src/lib/table/column/custom-table-column.js +11 -0
- package/src/lib/table/column/custom-table-column.js.map +1 -0
- package/src/lib/table/column/date-table-column.d.ts +11 -0
- package/src/lib/table/column/date-table-column.js +11 -0
- package/src/lib/table/column/date-table-column.js.map +1 -0
- package/src/lib/table/sortable.d.ts +16 -0
- package/src/lib/table/sortable.js +27 -0
- package/src/lib/table/sortable.js.map +1 -0
- package/src/lib/table/table-column-kind.d.ts +13 -0
- package/src/lib/table/table-column-kind.js +21 -0
- package/src/lib/table/table-column-kind.js.map +1 -0
- package/src/lib/table/table-column-modifier.d.ts +12 -0
- package/src/lib/table/table-column-modifier.js +20 -0
- package/src/lib/table/table-column-modifier.js.map +1 -0
- package/src/lib/table/table-column-pipe.d.ts +4 -0
- package/src/lib/table/table-column-pipe.js +3 -0
- package/src/lib/table/table-column-pipe.js.map +1 -0
- package/src/lib/table/table-column-sticky.d.ts +5 -0
- package/src/lib/table/table-column-sticky.js +13 -0
- package/src/lib/table/table-column-sticky.js.map +1 -0
- package/src/lib/table/table-column.d.ts +6 -0
- package/src/lib/table/table-column.js +36 -0
- package/src/lib/table/table-column.js.map +1 -0
- package/src/lib/table/table-filter-column-rule.js +5 -4
- package/src/lib/table/table-filter-column-rule.js.map +1 -1
- package/src/lib/table-action.js.map +1 -1
- package/src/lib/table-options.d.ts +4 -3
- package/src/lib/table-options.js +23 -3
- package/src/lib/table-options.js.map +1 -1
- package/src/lib/table-row-action.d.ts +4 -2
- package/src/lib/table-row-action.js +8 -7
- package/src/lib/table-row-action.js.map +1 -1
- package/src/lib/tree-table-options.d.ts +4 -3
- package/src/lib/tree-table-options.js +40 -3
- package/src/lib/tree-table-options.js.map +1 -1
- package/src/lib/use-pick-from-table-interface-as-form-type.d.ts +1 -1
- package/src/lib/value-option.d.ts +12 -0
- package/src/lib/value-option.js +66 -0
- package/src/lib/value-option.js.map +1 -0
- package/src/schema.json +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,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "form-group-schematic",
|
|
4
|
+
"allOf": [
|
|
5
|
+
{
|
|
6
|
+
"$ref": "#/definitions/angular"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"$ref": "#/definitions/formGroup"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"formName": {
|
|
15
|
+
"alias": "form",
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "The name of the form where the form control should be added"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"required": [
|
|
21
|
+
"formName"
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"definitions": {
|
|
26
|
+
"angular": {
|
|
27
|
+
"$ref": "../../angular.schema.json"
|
|
28
|
+
},
|
|
29
|
+
"formGroup": {
|
|
30
|
+
"$ref": "../../form-group.schema.json"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{{#> matFormField control=control}}
|
|
2
|
+
<input [matAutocomplete]="auto{{classify control.name}}"
|
|
3
|
+
formControlName="{{control.name}}"
|
|
4
|
+
matInput
|
|
5
|
+
type="text"
|
|
6
|
+
{{#if control.isRequired}}
|
|
7
|
+
rxapRequired
|
|
8
|
+
{{/if}}
|
|
9
|
+
{{#if parentControlContainer}}
|
|
10
|
+
parentControlContainer
|
|
11
|
+
{{/if}}
|
|
12
|
+
{{#if control.placeholder}}
|
|
13
|
+
i18n-placeholder placeholder="{{control.placeholder}}"
|
|
14
|
+
{{/if}}
|
|
15
|
+
/>
|
|
16
|
+
<mat-autocomplete #auto{{classify control.name}}="matAutocomplete">
|
|
17
|
+
<mat-option *rxapAutocompleteOptionsFromMethod="let option; matAutocomplete: auto{{classify control.name}}"
|
|
18
|
+
[value]="option.value">
|
|
19
|
+
\{{ option.display }}
|
|
20
|
+
</mat-option>
|
|
21
|
+
</mat-autocomplete>
|
|
22
|
+
<button
|
|
23
|
+
rxapOpenTableSelectWindow
|
|
24
|
+
mat-icon-button
|
|
25
|
+
matPrefix
|
|
26
|
+
tabindex="-1"
|
|
27
|
+
type="button"
|
|
28
|
+
{{#if control.title}}
|
|
29
|
+
i18n-label label="{{control.title}}"
|
|
30
|
+
{{/if}}
|
|
31
|
+
>
|
|
32
|
+
<mat-icon svgIcon="table-eye"></mat-icon>
|
|
33
|
+
</button>
|
|
34
|
+
{{/matFormField}}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
|
|
2
|
+
<mat-checkbox
|
|
3
|
+
[indeterminate]="true"
|
|
4
|
+
formControlName="{{control.name}}"
|
|
5
|
+
labelPosition="{{control.labelPosition}}"
|
|
6
|
+
{{#if parentControlContainer}}
|
|
7
|
+
parentControlContainer
|
|
8
|
+
{{/if}}
|
|
9
|
+
>
|
|
10
|
+
<ng-container i18n>{{control.label}}</ng-container>
|
|
11
|
+
</mat-checkbox>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
|
|
2
|
+
<fieldset
|
|
3
|
+
formArrayName="{{control.name}}"
|
|
4
|
+
class="flex flex-col gap-3 border border-solid border-gray-300 p-3"
|
|
5
|
+
{{#if parentControlContainer}}
|
|
6
|
+
parentControlContainer
|
|
7
|
+
{{/if}}
|
|
8
|
+
>
|
|
9
|
+
{{#if control.legend}}
|
|
10
|
+
<legend class="text-sm" i18n>{{control.legend}}</legend>
|
|
11
|
+
{{/if}}
|
|
12
|
+
<button i18n mat-stroked-button rxapFormArrayItemAddButton>Add new entry</button>
|
|
13
|
+
<ng-container *rxapForFormArrayItem="let group">
|
|
14
|
+
<fieldset [formGroup]="group" class="flex flex-row gap-4 items-center border border-solid border-gray-300 p-3" rxapFormArrayRemovable>
|
|
15
|
+
{{#if control.groupLegend}}
|
|
16
|
+
<legend class="text-sm" i18n>{{control.groupLegend}}</legend>
|
|
17
|
+
{{/if}}
|
|
18
|
+
{{#each control.controlList}}
|
|
19
|
+
{{indent (compile this.handlebars control=this prefix=../prefix) 6}}
|
|
20
|
+
{{/each}}
|
|
21
|
+
<button color="warn" mat-icon-button rxapFormArrayItemRemoveButton>
|
|
22
|
+
<mat-icon>do_not_disturb_on</mat-icon>
|
|
23
|
+
</button>
|
|
24
|
+
<button color="accent" mat-icon-button rxapFormArrayItemRestoreButton>
|
|
25
|
+
<mat-icon>settings_backup_restore</mat-icon>
|
|
26
|
+
</button>
|
|
27
|
+
</fieldset>
|
|
28
|
+
</ng-container>
|
|
29
|
+
</fieldset>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
|
|
2
|
+
<fieldset
|
|
3
|
+
formGroupName="{{control.name}}"
|
|
4
|
+
class="flex flex-col gap-3 border border-solid border-gray-300 p-3"
|
|
5
|
+
{{#if parentControlContainer}}
|
|
6
|
+
parentControlContainer
|
|
7
|
+
{{/if}}
|
|
8
|
+
>
|
|
9
|
+
{{#if control.legend}}
|
|
10
|
+
<legend class="text-sm" i18n>{{control.legend}}</legend>
|
|
11
|
+
{{/if}}
|
|
12
|
+
{{#each control.controlList}}
|
|
13
|
+
{{indent (compile this.handlebars control=this prefix=../prefix) 2}}
|
|
14
|
+
{{/each}}
|
|
15
|
+
</fieldset>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{{#> matFormField control=control}}
|
|
2
|
+
<input
|
|
3
|
+
matInput
|
|
4
|
+
formControlName="{{control.name}}"
|
|
5
|
+
type="{{control.inputType}}"
|
|
6
|
+
{{#if control.isRequired}}
|
|
7
|
+
rxapRequired
|
|
8
|
+
{{/if}}
|
|
9
|
+
{{#if parentControlContainer}}
|
|
10
|
+
parentControlContainer
|
|
11
|
+
{{/if}}
|
|
12
|
+
{{#if control.placeholder}}
|
|
13
|
+
i18n-placeholder placeholder="{{control.placeholder}}"
|
|
14
|
+
{{/if}}
|
|
15
|
+
/>
|
|
16
|
+
{{/matFormField}}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
|
|
2
|
+
<mat-form-field{{#each control.formField.directiveList}} {{this.name}}{{/each}}{{#if control.formField.cssClass}} {{> cssClass cssClass=control.formField.cssClass}}{{/if}}>
|
|
3
|
+
{{#if control.formField.label}}
|
|
4
|
+
<mat-label i18n>{{control.formField.label}}</mat-label>
|
|
5
|
+
{{/if}}
|
|
6
|
+
{{#if control.formField.prefixButton}}
|
|
7
|
+
{{#if control.formField.prefixButton.icon}}
|
|
8
|
+
<button tabindex="-1" type="button" matPrefix mat-icon-button{{#each control.formField.prefixButton.directiveList}} {{this.name}}{{/each}}>
|
|
9
|
+
<mat-icon>{{control.formField.prefixButton.icon}}</mat-icon>
|
|
10
|
+
</button>
|
|
11
|
+
{{/if}}
|
|
12
|
+
{{#if control.formField.prefixButton.svgIcon}}
|
|
13
|
+
<button tabindex="-1" type="button" matPrefix mat-icon-button{{#each control.formField.prefixButton.directiveList}} {{this.name}}{{/each}}>
|
|
14
|
+
<mat-icon>{{control.formField.prefixButton.svgIcon}}</mat-icon>
|
|
15
|
+
</button>
|
|
16
|
+
{{/if}}
|
|
17
|
+
{{/if}}
|
|
18
|
+
{{#if control.formField.suffixButton}}
|
|
19
|
+
{{#if control.formField.suffixButton.icon}}
|
|
20
|
+
<button tabindex="-1" type="button" matSuffix mat-icon-button{{#each control.formField.suffixButton.directiveList}} {{this.name}}{{/each}}>
|
|
21
|
+
<mat-icon>{{control.formField.suffixButton.icon}}</mat-icon>
|
|
22
|
+
</button>
|
|
23
|
+
{{/if}}
|
|
24
|
+
{{#if control.formField.suffixButton.svgIcon}}
|
|
25
|
+
<button tabindex="-1" type="button" matSuffix mat-icon-button{{#each control.formField.suffixButton.directiveList}} {{this.name}}{{/each}}>
|
|
26
|
+
<mat-icon>{{control.formField.suffixButton.svgIcon}}</mat-icon>
|
|
27
|
+
</button>
|
|
28
|
+
{{/if}}
|
|
29
|
+
{{/if}}
|
|
30
|
+
{{> @partial-block }}
|
|
31
|
+
</mat-form-field>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{{#> matFormField control=control}}
|
|
2
|
+
<mat-select
|
|
3
|
+
formControlName="{{control.name}}"
|
|
4
|
+
{{#if parentControlContainer}}
|
|
5
|
+
parentControlContainer
|
|
6
|
+
{{/if}}
|
|
7
|
+
{{#if control.isRequired}}
|
|
8
|
+
rxapRequired
|
|
9
|
+
{{/if}}
|
|
10
|
+
>
|
|
11
|
+
{{#if control.optionList}}
|
|
12
|
+
<mat-option *rxapInputSelectOptions="let option" [value]="option.value">\{{option.display}}</mat-option>
|
|
13
|
+
{{/if}}
|
|
14
|
+
{{#unless control.optionList}}
|
|
15
|
+
<mat-option *rxapOptionsFromMethod="let option" [value]="option.value">\{{option.display}}</mat-option>
|
|
16
|
+
{{/unless}}
|
|
17
|
+
</mat-select>
|
|
18
|
+
{{/matFormField}}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{{#> matFormField control=control}}
|
|
2
|
+
<rxap-table-select-input
|
|
3
|
+
rxapOpenTableSelectWindow
|
|
4
|
+
formControlName="{{control.name}}"
|
|
5
|
+
{{#if control.title}}
|
|
6
|
+
i18n-label label="{{control.title}}"
|
|
7
|
+
{{/if}}
|
|
8
|
+
{{#if parentControlContainer}}
|
|
9
|
+
parentControlContainer
|
|
10
|
+
{{/if}}
|
|
11
|
+
>
|
|
12
|
+
</rxap-table-select-input>
|
|
13
|
+
<button
|
|
14
|
+
rxapOpenTableSelectWindow
|
|
15
|
+
mat-icon-button
|
|
16
|
+
matPrefix
|
|
17
|
+
tabindex="-1"
|
|
18
|
+
type="button"
|
|
19
|
+
{{#if control.title}}
|
|
20
|
+
i18n-label label="{{control.title}}"
|
|
21
|
+
{{/if}}
|
|
22
|
+
>
|
|
23
|
+
<mat-icon svgIcon="table-eye"></mat-icon>
|
|
24
|
+
</button>
|
|
25
|
+
{{/matFormField}}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{{#> matFormField control=control}}
|
|
2
|
+
<textarea
|
|
3
|
+
formControlName="{{control.name}}"
|
|
4
|
+
matInput
|
|
5
|
+
{{#if control.autosize}}
|
|
6
|
+
cdkTextareaAutosize
|
|
7
|
+
{{/if}}
|
|
8
|
+
{{#if control.autosize.maxRows}}
|
|
9
|
+
[cdkAutosizeMaxRows]="{{control.autosize.maxRows}}"
|
|
10
|
+
{{/if}}
|
|
11
|
+
{{#if control.autosize.minRows}}
|
|
12
|
+
[cdkAutosizeMinRows]="{{control.autosize.minRows}}"
|
|
13
|
+
{{/if}}
|
|
14
|
+
{{#if control.isRequired}}
|
|
15
|
+
rxapRequired
|
|
16
|
+
{{/if}}
|
|
17
|
+
{{#if parentControlContainer}}
|
|
18
|
+
parentControlContainer
|
|
19
|
+
{{/if}}
|
|
20
|
+
{{#if control.placeholder}}
|
|
21
|
+
i18n-placeholder placeholder="{{control.placeholder}}"
|
|
22
|
+
{{/if}}
|
|
23
|
+
>
|
|
24
|
+
</textarea>
|
|
25
|
+
{{/matFormField}}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "form-array",
|
|
4
|
+
"allOf": [
|
|
5
|
+
{
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"role": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"const": "array"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"required": [ "role" ]
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"oneOf": [
|
|
17
|
+
{
|
|
18
|
+
"allOf": [
|
|
19
|
+
{
|
|
20
|
+
"$ref": "#/definitions/baseFormArray"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"type": "object",
|
|
24
|
+
"properties": {
|
|
25
|
+
"kind": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"const": "default",
|
|
28
|
+
"default": "default"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"definitions": {
|
|
38
|
+
"baseFormArray": {
|
|
39
|
+
"$ref": "./base-form-array.schema.json"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "form-component",
|
|
4
|
+
"allOf": [
|
|
5
|
+
{
|
|
6
|
+
"$ref": "#/definitions/formDefinition"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"window": {
|
|
12
|
+
"type": "boolean",
|
|
13
|
+
"description": "Whether the form can be opened in a window"
|
|
14
|
+
},
|
|
15
|
+
"role": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "Define the role of the form"
|
|
18
|
+
},
|
|
19
|
+
"matFormFieldDefaultOptions": {
|
|
20
|
+
"appearance": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"description": "The appearance of the mat form field",
|
|
23
|
+
"enum": [
|
|
24
|
+
"legacy",
|
|
25
|
+
"standard",
|
|
26
|
+
"fill",
|
|
27
|
+
"outline"
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"identifier": {
|
|
32
|
+
"$ref": "#/definitions/accordionIdentifier"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"definitions": {
|
|
38
|
+
"formDefinition": {
|
|
39
|
+
"$ref": "./form-definition.schema.json"
|
|
40
|
+
},
|
|
41
|
+
"accordionIdentifier": {
|
|
42
|
+
"$ref": "./accordion-identifier.schema.json"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "form-control",
|
|
4
|
+
"allOf": [
|
|
5
|
+
{
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"role": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"const": "control",
|
|
11
|
+
"default": "control"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"oneOf": [
|
|
17
|
+
{
|
|
18
|
+
"allOf": [
|
|
19
|
+
{
|
|
20
|
+
"$ref": "#/definitions/baseFormControl"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"type": "object",
|
|
24
|
+
"properties": {
|
|
25
|
+
"kind": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"const": "default",
|
|
28
|
+
"default": "default"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"$ref": "#/definitions/inputFormControl"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"$ref": "#/definitions/selectFormControl"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"$ref": "#/definitions/checkboxFormControl"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"$ref": "#/definitions/textareaFormControl"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"$ref": "#/definitions/tableSelectFormControl"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"$ref": "#/definitions/slideToggleFormControl"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"$ref": "#/definitions/autocompleteTableSelectFormControl"
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
"definitions": {
|
|
59
|
+
"baseFormControl": {
|
|
60
|
+
"$ref": "./base-form-control.schema.json"
|
|
61
|
+
},
|
|
62
|
+
"inputFormControl": {
|
|
63
|
+
"$ref": "./input-form-control.schema.json"
|
|
64
|
+
},
|
|
65
|
+
"selectFormControl": {
|
|
66
|
+
"$ref": "./select-form-control.schema.json"
|
|
67
|
+
},
|
|
68
|
+
"checkboxFormControl": {
|
|
69
|
+
"$ref": "./checkbox-form-control.schema.json"
|
|
70
|
+
},
|
|
71
|
+
"textareaFormControl": {
|
|
72
|
+
"$ref": "./textarea-form-control.schema.json"
|
|
73
|
+
},
|
|
74
|
+
"tableSelectFormControl": {
|
|
75
|
+
"$ref": "./table-select-form-control.schema.json"
|
|
76
|
+
},
|
|
77
|
+
"autocompleteTableSelectFormControl": {
|
|
78
|
+
"$ref": "./autocomplete-table-select-form-control.schema.json"
|
|
79
|
+
},
|
|
80
|
+
"slideToggleFormControl": {
|
|
81
|
+
"$ref": "./slide-toggle-form-control.schema.json"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "form-definition",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"controlList": {
|
|
7
|
+
"alias": "control",
|
|
8
|
+
"type": "array",
|
|
9
|
+
"items": {
|
|
10
|
+
"$ref": "#/definitions/control"
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"required": [
|
|
15
|
+
"controlList"
|
|
16
|
+
],
|
|
17
|
+
"definitions": {
|
|
18
|
+
"control": {
|
|
19
|
+
"$ref": "./control.schema.json"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "form-field",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"label": {
|
|
7
|
+
"type": "string"
|
|
8
|
+
},
|
|
9
|
+
"prefixButton": {
|
|
10
|
+
"$ref": "#/definitions/button"
|
|
11
|
+
},
|
|
12
|
+
"suffixButton": {
|
|
13
|
+
"$ref": "#/definitions/button"
|
|
14
|
+
},
|
|
15
|
+
"hasClearButton": {
|
|
16
|
+
"type": "boolean"
|
|
17
|
+
},
|
|
18
|
+
"cssClass": {
|
|
19
|
+
"$ref": "#/definitions/cssClass"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"definitions": {
|
|
23
|
+
"button": {
|
|
24
|
+
"$ref": "./button.schema.json"
|
|
25
|
+
},
|
|
26
|
+
"cssClass": {
|
|
27
|
+
"$ref": "./css-class.schema.json"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "form-group",
|
|
4
|
+
"allOf": [
|
|
5
|
+
{
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"role": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"const": "group"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"required": [ "role" ]
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"oneOf": [
|
|
17
|
+
{
|
|
18
|
+
"allOf": [
|
|
19
|
+
{
|
|
20
|
+
"$ref": "#/definitions/baseFormGroup"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"type": "object",
|
|
24
|
+
"properties": {
|
|
25
|
+
"kind": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"const": "default",
|
|
28
|
+
"default": "default"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"definitions": {
|
|
38
|
+
"baseFormGroup": {
|
|
39
|
+
"$ref": "./base-form-group.schema.json"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "header-button",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"permission": {
|
|
7
|
+
"type": "string"
|
|
8
|
+
},
|
|
9
|
+
"icon": {
|
|
10
|
+
"type": "string"
|
|
11
|
+
},
|
|
12
|
+
"svgIcon": {
|
|
13
|
+
"type": "string"
|
|
14
|
+
},
|
|
15
|
+
"refresh": {
|
|
16
|
+
"type": "boolean",
|
|
17
|
+
"description": "Whether the table action should refresh the table after execution",
|
|
18
|
+
"default": false
|
|
19
|
+
},
|
|
20
|
+
"confirm": {
|
|
21
|
+
"type": "boolean",
|
|
22
|
+
"description": "Whether the table action should confirm before execution",
|
|
23
|
+
"default": false
|
|
24
|
+
},
|
|
25
|
+
"tooltip": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"description": "The tooltip for the table action"
|
|
28
|
+
},
|
|
29
|
+
"errorMessage": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"description": "The error message for the table action"
|
|
32
|
+
},
|
|
33
|
+
"successMessage": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"description": "The success message for the table action"
|
|
36
|
+
},
|
|
37
|
+
"options": {
|
|
38
|
+
"type": "object",
|
|
39
|
+
"additionalProperties": true
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "icon-table-column",
|
|
4
|
+
"allOf": [
|
|
5
|
+
{
|
|
6
|
+
"$ref": "#/definitions/baseTableColumn"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"kind": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"const": "icon"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"required": ["kind"]
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"definitions": {
|
|
20
|
+
"baseTableColumn": {
|
|
21
|
+
"$ref": "./base-table-column.schema.json"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "input-form-control",
|
|
4
|
+
"allOf": [
|
|
5
|
+
{
|
|
6
|
+
"$ref": "#/definitions/baseFormControl"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"kind": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"const": "input"
|
|
14
|
+
},
|
|
15
|
+
"formField": {
|
|
16
|
+
"$ref": "#/definitions/formField"
|
|
17
|
+
},
|
|
18
|
+
"inputType": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"enum": [
|
|
21
|
+
"text",
|
|
22
|
+
"password",
|
|
23
|
+
"email",
|
|
24
|
+
"number",
|
|
25
|
+
"tel",
|
|
26
|
+
"url",
|
|
27
|
+
"checkbox",
|
|
28
|
+
"color",
|
|
29
|
+
"date",
|
|
30
|
+
"time",
|
|
31
|
+
"datetime-local",
|
|
32
|
+
"file",
|
|
33
|
+
"hidden",
|
|
34
|
+
"image",
|
|
35
|
+
"month",
|
|
36
|
+
"radio",
|
|
37
|
+
"reset",
|
|
38
|
+
"button",
|
|
39
|
+
"search",
|
|
40
|
+
"submit",
|
|
41
|
+
"week",
|
|
42
|
+
"range"
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
"placeholder": {
|
|
46
|
+
"type": "string"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"required": ["kind"]
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"definitions": {
|
|
53
|
+
"formField": {
|
|
54
|
+
"$ref": "./form-field.schema.json"
|
|
55
|
+
},
|
|
56
|
+
"baseFormControl": {
|
|
57
|
+
"$ref": "./base-form-control.schema.json"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|