@rxap/schematic-angular 16.2.0-dev.3 → 16.2.0-dev.31
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 +225 -0
- package/README.md +1 -1
- package/collection.json +15 -0
- package/package.json +15 -13
- package/src/lib/accordion-header.d.ts +5 -0
- package/src/lib/accordion-header.js +14 -5
- package/src/lib/accordion-header.js.map +1 -1
- package/src/lib/accordion-identifier.d.ts +6 -2
- package/src/lib/accordion-identifier.js +2 -1
- package/src/lib/accordion-identifier.js.map +1 -1
- package/src/lib/accordion-item.d.ts +25 -17
- package/src/lib/accordion-item.js +81 -42
- package/src/lib/accordion-item.js.map +1 -1
- package/src/lib/accordion-itme-kinds.d.ts +8 -0
- package/src/lib/accordion-itme-kinds.js +16 -0
- package/src/lib/accordion-itme-kinds.js.map +1 -0
- package/src/lib/coerce-accordion-component.js +5 -3
- package/src/lib/coerce-accordion-component.js.map +1 -1
- package/src/lib/coerce-accordion-item-table-component.js +1 -1
- package/src/lib/coerce-accordion-item-table-component.js.map +1 -1
- package/src/lib/coerce-form-component.js +18 -2
- package/src/lib/coerce-form-component.js.map +1 -1
- package/src/lib/coerce-minimum-table-component.js +8 -4
- package/src/lib/coerce-minimum-table-component.js.map +1 -1
- package/src/lib/coerce-tree-table-component.js +15 -3
- package/src/lib/coerce-tree-table-component.js.map +1 -1
- package/src/lib/css-class.d.ts +8 -0
- package/src/lib/css-class.js +28 -0
- package/src/lib/css-class.js.map +1 -0
- package/src/lib/data-grid-item.d.ts +46 -11
- package/src/lib/data-grid-item.js +86 -6
- package/src/lib/data-grid-item.js.map +1 -1
- package/src/lib/data-grid-mode.d.ts +4 -0
- package/src/lib/data-grid-mode.js +9 -0
- package/src/lib/data-grid-mode.js.map +1 -0
- package/src/lib/data-grid-options.d.ts +12 -5
- package/src/lib/data-grid-options.js +43 -13
- package/src/lib/data-grid-options.js.map +1 -1
- package/src/lib/form/abstract-control.d.ts +29 -0
- package/src/lib/form/abstract-control.js +37 -0
- package/src/lib/form/abstract-control.js.map +1 -0
- package/src/lib/form/array/base-form-array.d.ts +18 -0
- package/src/lib/form/array/base-form-array.js +40 -0
- package/src/lib/form/array/base-form-array.js.map +1 -0
- package/src/lib/form/array/form-array-kind.d.ts +3 -0
- package/src/lib/form/array/form-array-kind.js +8 -0
- package/src/lib/form/array/form-array-kind.js.map +1 -0
- package/src/lib/form/array/form-array.d.ts +12 -0
- package/src/lib/form/array/form-array.js +18 -0
- package/src/lib/form/array/form-array.js.map +1 -0
- package/src/lib/form/coerce-control-component-imports.d.ts +3 -0
- package/src/lib/form/coerce-control-component-imports.js +18 -0
- package/src/lib/form/coerce-control-component-imports.js.map +1 -0
- package/src/lib/form/control/autocomplete-table-select-form-control.d.ts +6 -0
- package/src/lib/form/control/autocomplete-table-select-form-control.js +44 -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 +14 -0
- package/src/lib/form/control/base-form-control.js +19 -0
- package/src/lib/form/control/base-form-control.js.map +1 -0
- package/src/lib/form/control/checkbox-form-control.d.ts +11 -0
- package/src/lib/form/control/checkbox-form-control.js +23 -0
- package/src/lib/form/control/checkbox-form-control.js.map +1 -0
- package/src/lib/form/control/form-control-kind.d.ts +9 -0
- package/src/lib/form/control/form-control-kind.js +14 -0
- package/src/lib/form/control/form-control-kind.js.map +1 -0
- package/src/lib/form/control/form-control.d.ts +18 -0
- package/src/lib/form/control/form-control.js +43 -0
- package/src/lib/form/control/form-control.js.map +1 -0
- package/src/lib/form/control/form-field-form-control.d.ts +33 -0
- package/src/lib/form/control/form-field-form-control.js +76 -0
- package/src/lib/form/control/form-field-form-control.js.map +1 -0
- package/src/lib/form/control/input-form-control.d.ts +14 -0
- package/src/lib/form/control/input-form-control.js +71 -0
- package/src/lib/form/control/input-form-control.js.map +1 -0
- package/src/lib/form/control/select-form-control.d.ts +18 -0
- package/src/lib/form/control/select-form-control.js +29 -0
- package/src/lib/form/control/select-form-control.js.map +1 -0
- package/src/lib/form/control/slide-toggle-form-control.d.ts +11 -0
- package/src/lib/form/control/slide-toggle-form-control.js +23 -0
- package/src/lib/form/control/slide-toggle-form-control.js.map +1 -0
- package/src/lib/form/control/table-select-form-control.d.ts +46 -0
- package/src/lib/form/control/table-select-form-control.js +81 -0
- package/src/lib/form/control/table-select-form-control.js.map +1 -0
- package/src/lib/form/control.d.ts +8 -0
- package/src/lib/form/control.js +38 -0
- package/src/lib/form/control.js.map +1 -0
- package/src/lib/form/generate-form-template.d.ts +5 -0
- package/src/lib/form/generate-form-template.js +12 -0
- package/src/lib/form/generate-form-template.js.map +1 -0
- package/src/lib/form/group/base-form-group.d.ts +17 -0
- package/src/lib/form/group/base-form-group.js +20 -0
- package/src/lib/form/group/base-form-group.js.map +1 -0
- package/src/lib/form/group/form-group-kind.d.ts +3 -0
- package/src/lib/form/group/form-group-kind.js +8 -0
- package/src/lib/form/group/form-group-kind.js.map +1 -0
- package/src/lib/form/group/form-group.d.ts +12 -0
- package/src/lib/form/group/form-group.js +18 -0
- package/src/lib/form/group/form-group.js.map +1 -0
- package/src/lib/load-handlebars-template.d.ts +6 -0
- package/src/lib/load-handlebars-template.js +36 -0
- package/src/lib/load-handlebars-template.js.map +1 -0
- package/src/lib/minimum-table-component-options.d.ts +12 -2
- package/src/lib/minimum-table-component-options.js +26 -19
- package/src/lib/minimum-table-component-options.js.map +1 -1
- package/src/lib/minimum-table-options.d.ts +7 -1
- package/src/lib/minimum-table-options.js +11 -2
- package/src/lib/minimum-table-options.js.map +1 -1
- package/src/lib/pipe-option.d.ts +11 -0
- package/src/lib/pipe-option.js +75 -0
- package/src/lib/pipe-option.js.map +1 -0
- package/src/lib/table/table-filter-column-rule.d.ts +13 -0
- package/src/lib/table/table-filter-column-rule.js +89 -0
- package/src/lib/table/table-filter-column-rule.js.map +1 -0
- package/src/lib/table-action.js.map +1 -1
- package/src/lib/table-column.d.ts +41 -13
- package/src/lib/table-column.js +170 -114
- package/src/lib/table-column.js.map +1 -1
- package/src/lib/table-options.d.ts +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 +1 -1
- package/src/lib/tree-table-options.js +35 -3
- package/src/lib/tree-table-options.js.map +1 -1
- package/src/lib/use-pick-from-table-interface-as-form-type.d.ts +10 -0
- package/src/lib/use-pick-from-table-interface-as-form-type.js +32 -0
- package/src/lib/use-pick-from-table-interface-as-form-type.js.map +1 -0
- package/src/lib/value-option.d.ts +12 -0
- package/src/lib/value-option.js +66 -0
- package/src/lib/value-option.js.map +1 -0
- package/src/schema.json +2860 -0
- package/src/schematic-input.schema.json +560 -0
- package/src/schematics/abstract-control.schema.json +78 -0
- package/src/schematics/accordion/accordion-component/files/component/__componentName__.component.html.hbs +25 -0
- package/src/schematics/accordion/accordion-component/index.d.ts +5 -2
- package/src/schematics/accordion/accordion-component/index.js +56 -122
- package/src/schematics/accordion/accordion-component/index.js.map +1 -1
- package/src/schematics/accordion/accordion-component/schema.d.ts +6 -0
- package/src/schematics/accordion/accordion-component/schema.json +1625 -132
- package/src/schematics/accordion/accordion-component/template.schema.json +105 -0
- package/src/schematics/accordion/accordion-item-component/index.d.ts +9 -4
- package/src/schematics/accordion/accordion-item-component/index.js +112 -86
- package/src/schematics/accordion/accordion-item-component/index.js.map +1 -1
- package/src/schematics/accordion/accordion-item-component/schema.d.ts +2 -2
- package/src/schematics/accordion/accordion-item-component/schema.json +1586 -63
- package/src/schematics/accordion/accordion-item-component/template.schema.json +32 -0
- package/src/schematics/accordion/item/accordion-item-data-grid-component/index.d.ts +1 -1
- package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js +35 -51
- 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 +1056 -73
- package/src/schematics/accordion/item/accordion-item-data-grid-component/template.schema.json +20 -0
- package/src/schematics/accordion/item/accordion-item-switch-component/index.d.ts +1 -1
- package/src/schematics/accordion/item/accordion-item-switch-component/index.js +16 -8
- package/src/schematics/accordion/item/accordion-item-switch-component/index.js.map +1 -1
- package/src/schematics/accordion/item/accordion-item-switch-component/schema.d.ts +1 -1
- package/src/schematics/accordion/item/accordion-item-switch-component/schema.json +1564 -187
- package/src/schematics/accordion/item/accordion-item-switch-component/template.schema.json +20 -0
- package/src/schematics/accordion/item/accordion-item-table-component/index.d.ts +1 -1
- package/src/schematics/accordion/item/accordion-item-table-component/index.js +19 -33
- package/src/schematics/accordion/item/accordion-item-table-component/index.js.map +1 -1
- package/src/schematics/accordion/item/accordion-item-table-component/schema.d.ts +1 -1
- package/src/schematics/accordion/item/accordion-item-table-component/schema.json +1129 -292
- package/src/schematics/accordion/item/accordion-item-table-component/template.schema.json +20 -0
- package/src/schematics/accordion/item/accordion-item-tree-table-component/index.d.ts +1 -1
- package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js +23 -84
- package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js.map +1 -1
- package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.d.ts +1 -1
- package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.json +1080 -260
- package/src/schematics/accordion/item/accordion-item-tree-table-component/template.schema.json +20 -0
- package/src/schematics/accordion/templates/accordion-header.hbs +6 -0
- package/src/schematics/accordion/templates/data-grid-accordion-item.hbs +15 -0
- package/src/schematics/accordion/templates/default-accordion-item.hbs +15 -0
- package/src/schematics/accordion/templates/switch-accordion-item.hbs +21 -0
- package/src/schematics/accordion/templates/table-accordion-item.hbs +15 -0
- package/src/schematics/accordion/templates/tree-table-accordion-item.hbs +15 -0
- package/src/schematics/accordion-identifier.schema.json +24 -0
- package/src/schematics/accordion-item.schema.json +52 -0
- package/src/schematics/angular.schema.json +11 -11
- package/src/schematics/autocomplete-table-select-form-control.schema.json +96 -0
- package/src/schematics/backend.schema.json +13 -0
- package/src/schematics/base-accordion-item.schema.json +52 -0
- package/src/schematics/base-form-array.schema.json +45 -0
- package/src/schematics/base-form-control.schema.json +27 -0
- package/src/schematics/base-form-group.schema.json +42 -0
- package/src/schematics/button.schema.json +30 -0
- package/src/schematics/checkbox-form-control.schema.json +30 -0
- package/src/schematics/control.schema.json +26 -0
- package/src/schematics/css-class.schema.json +34 -0
- package/src/schematics/data-grid-accordion-item.schema.json +34 -0
- package/src/schematics/data-grid-component/files/component/__componentName__.component.html.hbs +35 -0
- package/src/schematics/data-grid-component/index.d.ts +2 -4
- package/src/schematics/data-grid-component/index.js +92 -52
- package/src/schematics/data-grid-component/index.js.map +1 -1
- package/src/schematics/data-grid-component/schema.json +1006 -131
- package/src/schematics/data-grid-component/template.schema.json +20 -0
- package/src/schematics/data-grid-component/templates/default-data-grid-item.hbs +3 -0
- package/src/schematics/data-grid-component/templates/link-data-grid-item.hbs +8 -0
- package/src/schematics/data-grid-item.schema.json +50 -0
- package/src/schematics/data-grid.schema.json +66 -0
- package/src/schematics/dialog-component/schema.json +141 -65
- package/src/schematics/dialog-component/template.schema.json +62 -0
- package/src/schematics/form/control/autocomplete-table-select-form-control/index.d.ts +10 -0
- package/src/schematics/form/control/autocomplete-table-select-form-control/index.js +249 -0
- package/src/schematics/form/control/autocomplete-table-select-form-control/index.js.map +1 -0
- package/src/schematics/form/control/autocomplete-table-select-form-control/schema.d.ts +4 -0
- package/src/schematics/form/control/autocomplete-table-select-form-control/schema.json +450 -0
- package/src/schematics/form/control/autocomplete-table-select-form-control/template.schema.json +39 -0
- package/src/schematics/form/control/input-form-control/index.d.ts +2 -2
- package/src/schematics/form/control/input-form-control/index.js +4 -27
- package/src/schematics/form/control/input-form-control/index.js.map +1 -1
- package/src/schematics/form/control/input-form-control/schema.d.ts +2 -3
- package/src/schematics/form/control/input-form-control/schema.json +338 -94
- package/src/schematics/form/control/input-form-control/template.schema.json +33 -0
- package/src/schematics/form/control/select-form-control/index.d.ts +4 -2
- package/src/schematics/form/control/select-form-control/index.js +139 -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 +345 -81
- package/src/schematics/form/control/select-form-control/template.schema.json +33 -0
- package/src/schematics/form/control/table-select-form-control/index.d.ts +5 -7
- package/src/schematics/form/control/table-select-form-control/index.js +207 -143
- package/src/schematics/form/control/table-select-form-control/index.js.map +1 -1
- package/src/schematics/form/control/table-select-form-control/schema.d.ts +2 -5
- package/src/schematics/form/control/table-select-form-control/schema.json +448 -84
- package/src/schematics/form/control/table-select-form-control/template.schema.json +39 -0
- package/src/schematics/form/form-array/index.d.ts +9 -0
- package/src/schematics/form/form-array/index.js +54 -0
- package/src/schematics/form/form-array/index.js.map +1 -0
- package/src/schematics/form/form-array/schema.d.ts +4 -0
- package/src/schematics/form/form-array/schema.json +923 -0
- package/src/schematics/form/form-array/template.schema.json +33 -0
- package/src/schematics/form/form-component/files/component/{__componentName__.component.html.template → __componentName__.component.html.hbs} +7 -4
- package/src/schematics/form/form-component/index.d.ts +4 -4
- package/src/schematics/form/form-component/index.js +22 -23
- package/src/schematics/form/form-component/index.js.map +1 -1
- package/src/schematics/form/form-component/schema.d.ts +4 -2
- package/src/schematics/form/form-component/schema.json +923 -136
- package/src/schematics/form/form-component/template.schema.json +20 -0
- package/src/schematics/form/form-control/index.d.ts +6 -6
- package/src/schematics/form/form-control/index.js +23 -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 +752 -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 +905 -118
- package/src/schematics/form/form-definition/template.schema.json +30 -0
- package/src/schematics/form/form-group/index.d.ts +9 -0
- package/src/schematics/form/form-group/index.js +54 -0
- package/src/schematics/form/form-group/index.js.map +1 -0
- package/src/schematics/form/form-group/schema.d.ts +4 -0
- package/src/schematics/form/form-group/schema.json +923 -0
- package/src/schematics/form/form-group/template.schema.json +33 -0
- package/src/schematics/form/templates/checkbox-form-control.hbs +9 -0
- package/src/schematics/form/templates/default-form-array.hbs +27 -0
- package/src/schematics/form/templates/default-form-control.hbs +2 -0
- package/src/schematics/form/templates/default-form-group.hbs +13 -0
- package/src/schematics/form/templates/input-form-control.hbs +9 -0
- package/src/schematics/form/templates/mat-form-field.hbs +31 -0
- package/src/schematics/form/templates/select-form-control.hbs +5 -0
- package/src/schematics/form/templates/slide-toggle-form-control.hbs +8 -0
- package/src/schematics/form/templates/table-select-form-control.hbs +18 -0
- package/src/schematics/form-array.schema.json +40 -0
- package/src/schematics/form-component.schema.json +45 -0
- package/src/schematics/form-control.schema.json +83 -0
- package/src/schematics/form-definition.schema.json +22 -0
- package/src/schematics/form-field.schema.json +24 -0
- package/src/schematics/form-group.schema.json +40 -0
- package/src/schematics/general.schema.json +1 -4
- package/src/schematics/header-button.schema.json +42 -0
- package/src/schematics/input-form-control.schema.json +59 -0
- package/src/schematics/minimum-table.schema.json +72 -0
- package/src/schematics/pipe.schema.json +38 -0
- package/src/schematics/property.schema.json +28 -0
- package/src/schematics/select-form-control.schema.json +68 -0
- package/src/schematics/slide-toggle-form-control.schema.json +30 -0
- package/src/schematics/switch-accordion-item.schema.json +82 -0
- package/src/schematics/table/action/dialog-table-action/schema.json +234 -119
- package/src/schematics/table/action/dialog-table-action/template.schema.json +58 -0
- package/src/schematics/table/action/form-table-action/index.d.ts +2 -2
- package/src/schematics/table/action/form-table-action/index.js +3 -4
- package/src/schematics/table/action/form-table-action/index.js.map +1 -1
- package/src/schematics/table/action/form-table-action/schema.d.ts +2 -2
- package/src/schematics/table/action/form-table-action/schema.json +1061 -138
- package/src/schematics/table/action/form-table-action/template.schema.json +75 -0
- package/src/schematics/table/action/navigation-table-action/schema.json +218 -80
- package/src/schematics/table/action/navigation-table-action/template.schema.json +28 -0
- package/src/schematics/table/action/open-api-table-action/schema.json +232 -92
- package/src/schematics/table/action/open-api-table-action/template.schema.json +56 -0
- package/src/schematics/table/action/operation-table-action/schema.json +205 -84
- package/src/schematics/table/action/operation-table-action/template.schema.json +14 -0
- package/src/schematics/table/header-button/form-table-header-button/index.d.ts +2 -2
- package/src/schematics/table/header-button/form-table-header-button/index.js +2 -2
- package/src/schematics/table/header-button/form-table-header-button/index.js.map +1 -1
- package/src/schematics/table/header-button/form-table-header-button/schema.d.ts +2 -2
- package/src/schematics/table/header-button/form-table-header-button/schema.json +992 -98
- package/src/schematics/table/header-button/form-table-header-button/template.schema.json +33 -0
- package/src/schematics/table/header-button/navigation-table-header-button/schema.json +167 -71
- package/src/schematics/table/header-button/navigation-table-header-button/template.schema.json +28 -0
- package/src/schematics/table/table-action/schema.json +195 -77
- package/src/schematics/table/table-action/template.schema.json +30 -0
- package/src/schematics/table/table-component/files/component/__componentName__.component.html.hbs +243 -0
- package/src/schematics/table/table-component/index.d.ts +0 -5
- package/src/schematics/table/table-component/index.js +16 -128
- package/src/schematics/table/table-component/index.js.map +1 -1
- package/src/schematics/table/table-component/schema.json +1054 -295
- package/src/schematics/table/table-component/template.schema.json +20 -0
- package/src/schematics/table/table-header-button/schema.json +145 -63
- package/src/schematics/table/table-header-button/template.schema.json +30 -0
- package/src/schematics/table/templates/boolean-table-column.hbs +11 -0
- package/src/schematics/table/templates/component-table-column.hbs +13 -0
- package/src/schematics/table/templates/copy-to-clipboard-table-column.hbs +11 -0
- package/src/schematics/table/templates/date-table-column.hbs +12 -0
- package/src/schematics/table/templates/default-table-column.hbs +11 -0
- package/src/schematics/table/templates/icon-table-column.hbs +11 -0
- package/src/schematics/table/templates/link-table-column.hbs +11 -0
- package/src/schematics/table/templates/mat-column-def.hbs +3 -0
- package/src/schematics/table/templates/spinner-table-column.hbs +12 -0
- package/src/schematics/table/templates/tree-table-column.hbs +9 -0
- package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.hbs +232 -0
- package/src/schematics/table/tree-table-component/index.d.ts +3 -0
- package/src/schematics/table/tree-table-component/index.js +31 -7
- package/src/schematics/table/tree-table-component/index.js.map +1 -1
- package/src/schematics/table/tree-table-component/schema.json +1030 -264
- package/src/schematics/table/tree-table-component/template.schema.json +20 -0
- package/src/schematics/table-accordion-item.schema.json +41 -0
- package/src/schematics/table-action.schema.json +65 -0
- package/src/schematics/table-column.schema.json +78 -0
- package/src/schematics/table-select-form-control.schema.json +102 -0
- package/src/schematics/table.schema.json +57 -0
- package/src/schematics/templates/css-class.hbs +1 -0
- package/src/schematics/templates/pipe.hbs +4 -0
- package/src/schematics/textarea-form-control.schema.json +32 -0
- package/src/schematics/tree-component/schema.json +115 -70
- package/src/schematics/tree-component/template.schema.json +36 -0
- package/src/schematics/tree-table-accordion-item.schema.json +41 -0
- package/src/schematics/tree-table.schema.json +40 -0
- package/src/schematics/type.schema.json +35 -0
- package/src/schematics/upstream.schema.json +56 -0
- package/src/schematics/value.schema.json +26 -0
- package/src/template.schema.json +236 -0
- package/src/lib/accordion-itme-types.d.ts +0 -8
- package/src/lib/accordion-itme-types.js +0 -16
- package/src/lib/accordion-itme-types.js.map +0 -1
- package/src/lib/form-component-control.d.ts +0 -12
- package/src/lib/form-component-control.js +0 -15
- package/src/lib/form-component-control.js.map +0 -1
- package/src/lib/form-definition-control.d.ts +0 -59
- package/src/lib/form-definition-control.js +0 -156
- package/src/lib/form-definition-control.js.map +0 -1
- package/src/lib/merge-with-column-list.d.ts +0 -3
- package/src/lib/merge-with-column-list.js +0 -18
- package/src/lib/merge-with-column-list.js.map +0 -1
- package/src/schematics/accordion/accordion-component/files/component/__componentName__.component.html.template +0 -94
- package/src/schematics/accordion/accordion-component/files/header-component/accordion-header.component.html.template +0 -10
- package/src/schematics/data-grid-component/files/form/__componentName__.component.html.template +0 -42
- package/src/schematics/data-grid-component/files/plain/__componentName__.component.html.template +0 -25
- package/src/schematics/table/table-component/files/component/__componentName__.component.html.template +0 -299
- package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.template +0 -259
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.NormalizeTableRowAction = void 0;
|
|
4
4
|
const schematics_utilities_1 = require("@rxap/schematics-utilities");
|
|
5
|
+
const css_class_1 = require("./css-class");
|
|
5
6
|
const to_title_1 = require("./to-title");
|
|
6
7
|
function NormalizeTableRowAction(tableAction) {
|
|
7
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
8
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
8
9
|
return Object.freeze({
|
|
9
10
|
type: (0, schematics_utilities_1.dasherize)(tableAction.type),
|
|
10
11
|
tooltip: (_a = tableAction.tooltip) !== null && _a !== void 0 ? _a : (0, to_title_1.ToTitle)(tableAction.type),
|
|
@@ -12,12 +13,12 @@ function NormalizeTableRowAction(tableAction) {
|
|
|
12
13
|
successMessage: (_c = tableAction.successMessage) !== null && _c !== void 0 ? _c : null,
|
|
13
14
|
checkFunction: (_d = tableAction.checkFunction) !== null && _d !== void 0 ? _d : null,
|
|
14
15
|
color: (_e = tableAction.color) !== null && _e !== void 0 ? _e : null,
|
|
15
|
-
cssClass: (
|
|
16
|
-
refresh: (
|
|
17
|
-
confirm: (
|
|
18
|
-
priority: (
|
|
19
|
-
inHeader: (
|
|
20
|
-
options: (
|
|
16
|
+
cssClass: (0, css_class_1.NormalizeCssClass)(tableAction.cssClass),
|
|
17
|
+
refresh: (_f = tableAction.refresh) !== null && _f !== void 0 ? _f : false,
|
|
18
|
+
confirm: (_g = tableAction.confirm) !== null && _g !== void 0 ? _g : false,
|
|
19
|
+
priority: (_h = tableAction.priority) !== null && _h !== void 0 ? _h : 0,
|
|
20
|
+
inHeader: (_j = tableAction.inHeader) !== null && _j !== void 0 ? _j : false,
|
|
21
|
+
options: (_k = tableAction.options) !== null && _k !== void 0 ? _k : {},
|
|
21
22
|
});
|
|
22
23
|
}
|
|
23
24
|
exports.NormalizeTableRowAction = NormalizeTableRowAction;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-row-action.js","sourceRoot":"","sources":["../../../../../../packages/schematic/angular/src/lib/table-row-action.ts"],"names":[],"mappings":";;;AAAA,qEAAuD;AAEvD,yCAAqC;
|
|
1
|
+
{"version":3,"file":"table-row-action.js","sourceRoot":"","sources":["../../../../../../packages/schematic/angular/src/lib/table-row-action.ts"],"names":[],"mappings":";;;AAAA,qEAAuD;AAEvD,2CAIqB;AACrB,yCAAqC;AAsBrC,SAAgB,uBAAuB,CACrC,WAAqC;;IAErC,OAAO,MAAM,CAAC,MAAM,CAAC;QACnB,IAAI,EAAE,IAAA,gCAAS,EAAC,WAAW,CAAC,IAAI,CAAC;QACjC,OAAO,EAAE,MAAA,WAAW,CAAC,OAAO,mCAAI,IAAA,kBAAO,EAAC,WAAW,CAAC,IAAI,CAAC;QACzD,YAAY,EAAE,MAAA,WAAW,CAAC,YAAY,mCAAI,IAAI;QAC9C,cAAc,EAAE,MAAA,WAAW,CAAC,cAAc,mCAAI,IAAI;QAClD,aAAa,EAAE,MAAA,WAAW,CAAC,aAAa,mCAAI,IAAI;QAChD,KAAK,EAAE,MAAA,WAAW,CAAC,KAAK,mCAAI,IAAI;QAChC,QAAQ,EAAE,IAAA,6BAAiB,EAAC,WAAW,CAAC,QAAQ,CAAC;QACjD,OAAO,EAAE,MAAA,WAAW,CAAC,OAAO,mCAAI,KAAK;QACrC,OAAO,EAAE,MAAA,WAAW,CAAC,OAAO,mCAAI,KAAK;QACrC,QAAQ,EAAE,MAAA,WAAW,CAAC,QAAQ,mCAAI,CAAC;QACnC,QAAQ,EAAE,MAAA,WAAW,CAAC,QAAQ,mCAAI,KAAK;QACvC,OAAO,EAAE,MAAA,WAAW,CAAC,OAAO,mCAAI,EAAE;KACnC,CAAC,CAAC;AACL,CAAC;AAjBD,0DAiBC"}
|
|
@@ -18,7 +18,7 @@ export interface NormalizedTreeTableOptions extends Omit<Readonly<Normalized<Tre
|
|
|
18
18
|
componentName: string;
|
|
19
19
|
columnList: ReadonlyArray<NormalizedTableColumn>;
|
|
20
20
|
actionList: ReadonlyArray<NormalizedTableAction>;
|
|
21
|
-
propertyList:
|
|
21
|
+
propertyList: Array<NormalizedDataProperty>;
|
|
22
22
|
tableRootMethod: NormalizedExistingMethod | null;
|
|
23
23
|
tableChildMethod: NormalizedExistingMethod | null;
|
|
24
24
|
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.NormalizeTreeTableOptions = exports.IsTreeTableModifiers = exports.TreeTableModifiers = void 0;
|
|
4
|
+
const ts_morph_1 = require("@rxap/ts-morph");
|
|
5
|
+
const utilities_1 = require("@rxap/utilities");
|
|
4
6
|
const existing_method_1 = require("./existing-method");
|
|
5
7
|
const minimum_table_options_1 = require("./minimum-table-options");
|
|
8
|
+
const table_column_1 = require("./table-column");
|
|
6
9
|
var TreeTableModifiers;
|
|
7
10
|
(function (TreeTableModifiers) {
|
|
8
11
|
TreeTableModifiers["OVERWRITE"] = "overwrite";
|
|
@@ -14,10 +17,39 @@ function IsTreeTableModifiers(value) {
|
|
|
14
17
|
}
|
|
15
18
|
exports.IsTreeTableModifiers = IsTreeTableModifiers;
|
|
16
19
|
function NormalizeTreeTableOptions(options, name) {
|
|
17
|
-
var _a;
|
|
18
|
-
const
|
|
20
|
+
var _a, _b, _c;
|
|
21
|
+
const columnList = (_a = options.columnList) !== null && _a !== void 0 ? _a : [];
|
|
22
|
+
const propertyList = (0, ts_morph_1.NormalizeDataPropertyList)((_b = options.propertyList) !== null && _b !== void 0 ? _b : []);
|
|
23
|
+
(0, utilities_1.CoerceArrayItems)(columnList, [{
|
|
24
|
+
name: 'tree',
|
|
25
|
+
hidden: true,
|
|
26
|
+
kind: table_column_1.TableColumnKind.TREE,
|
|
27
|
+
sticky: table_column_1.TableColumnSticky.START,
|
|
28
|
+
synthetic: true,
|
|
29
|
+
importList: [
|
|
30
|
+
{ name: 'TreeControlCellComponent', moduleSpecifier: '@rxap/material-table-system' }
|
|
31
|
+
],
|
|
32
|
+
}], { compareTo: (a, b) => a.name === b.name, unshift: true, merge: true });
|
|
33
|
+
(0, utilities_1.CoerceArrayItems)(columnList, [{
|
|
34
|
+
name: 'spinner',
|
|
35
|
+
hidden: true,
|
|
36
|
+
kind: table_column_1.TableColumnKind.SPINNER,
|
|
37
|
+
sticky: table_column_1.TableColumnSticky.END,
|
|
38
|
+
synthetic: true,
|
|
39
|
+
importList: [
|
|
40
|
+
{ name: 'MatProgressSpinnerModule', moduleSpecifier: '@angular/material/progress-spinner' },
|
|
41
|
+
{ name: 'NgIf', moduleSpecifier: '@angular/common' },
|
|
42
|
+
{ name: 'AsyncPipe', moduleSpecifier: '@angular/common' }
|
|
43
|
+
],
|
|
44
|
+
}], { compareTo: (a, b) => a.name === b.name, merge: true });
|
|
45
|
+
(0, utilities_1.CoerceArrayItems)(propertyList, [(0, ts_morph_1.NormalizeDataProperty)({
|
|
46
|
+
name: 'icon',
|
|
47
|
+
isOptional: true,
|
|
48
|
+
})], (a, b) => a.name === b.name);
|
|
49
|
+
const normalizedOptions = (0, minimum_table_options_1.NormalizeMinimumTableOptions)(Object.assign(Object.assign({}, options), { columnList,
|
|
50
|
+
propertyList }), name, IsTreeTableModifiers, '-tree-table');
|
|
19
51
|
const tableRootMethod = (0, existing_method_1.NormalizeExistingMethod)(options.tableRootMethod);
|
|
20
|
-
const tableChildMethod = (
|
|
52
|
+
const tableChildMethod = (_c = (0, existing_method_1.NormalizeExistingMethod)(options.tableRootMethod)) !== null && _c !== void 0 ? _c : tableRootMethod;
|
|
21
53
|
return Object.freeze(Object.assign(Object.assign({}, normalizedOptions), { tableRootMethod,
|
|
22
54
|
tableChildMethod }));
|
|
23
55
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tree-table-options.js","sourceRoot":"","sources":["../../../../../../packages/schematic/angular/src/lib/tree-table-options.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"tree-table-options.js","sourceRoot":"","sources":["../../../../../../packages/schematic/angular/src/lib/tree-table-options.ts"],"names":[],"mappings":";;;AAAA,6CAIwB;AACxB,+CAGyB;AACzB,uDAI2B;AAC3B,mEAIiC;AAEjC,iDAIwB;AAExB,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC5B,6CAAuB,CAAA;IACvB,uEAAiD,CAAA;IACjD,qDAA+B,CAAA;AACjC,CAAC,EAJW,kBAAkB,kCAAlB,kBAAkB,QAI7B;AAED,SAAgB,oBAAoB,CAAC,KAAa;IAChD,OAAO,MAAM,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC,QAAQ,CAAC,KAA2B,CAAC,CAAC;AACjF,CAAC;AAFD,oDAEC;AAiBD,SAAgB,yBAAyB,CACvC,OAAmC,EACnC,IAAY;;IAEZ,MAAM,UAAU,GAAG,MAAA,OAAO,CAAC,UAAU,mCAAI,EAAE,CAAC;IAC5C,MAAM,YAAY,GAAG,IAAA,oCAAyB,EAAC,MAAA,OAAO,CAAC,YAAY,mCAAI,EAAE,CAAC,CAAC;IAC3E,IAAA,4BAAgB,EAAC,UAAU,EAAE,CAAC;YAC5B,IAAI,EAAE,MAAM;YACZ,MAAM,EAAE,IAAI;YACZ,IAAI,EAAE,8BAAe,CAAC,IAAI;YAC1B,MAAM,EAAE,gCAAiB,CAAC,KAAK;YAC/B,SAAS,EAAE,IAAI;YACf,UAAU,EAAE;gBACV,EAAE,IAAI,EAAE,0BAA0B,EAAE,eAAe,EAAE,6BAA6B,EAAE;aACrF;SACF,CAAC,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;IAC5E,IAAA,4BAAgB,EAAC,UAAU,EAAE,CAAC;YAC5B,IAAI,EAAE,SAAS;YACf,MAAM,EAAE,IAAI;YACZ,IAAI,EAAE,8BAAe,CAAC,OAAO;YAC7B,MAAM,EAAE,gCAAiB,CAAC,GAAG;YAC7B,SAAS,EAAE,IAAI;YACf,UAAU,EAAE;gBACV,EAAE,IAAI,EAAE,0BAA0B,EAAE,eAAe,EAAE,oCAAoC,EAAE;gBAC3F,EAAE,IAAI,EAAE,MAAM,EAAE,eAAe,EAAE,iBAAiB,EAAE;gBACpD,EAAE,IAAI,EAAE,WAAW,EAAE,eAAe,EAAE,iBAAiB,EAAE;aAC1D;SACF,CAAC,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;IAC7D,IAAA,4BAAgB,EAAC,YAAY,EAAE,CAAC,IAAA,gCAAqB,EAAC;YACpD,IAAI,EAAE,MAAM;YACZ,UAAU,EAAE,IAAI;SACjB,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC;IAClC,MAAM,iBAAiB,GAAG,IAAA,oDAA4B,kCACjD,OAAO,KACV,UAAU;QACV,YAAY,KACX,IAAI,EAAE,oBAAoB,EAAE,aAAa,CAAC,CAAC;IAC9C,MAAM,eAAe,GAAG,IAAA,yCAAuB,EAAC,OAAO,CAAC,eAAe,CAAC,CAAC;IACzE,MAAM,gBAAgB,GAAG,MAAA,IAAA,yCAAuB,EAAC,OAAO,CAAC,eAAe,CAAC,mCAAI,eAAe,CAAC;IAC7F,OAAO,MAAM,CAAC,MAAM,iCACf,iBAAiB,KACpB,eAAe;QACf,gBAAgB,IAChB,CAAC;AACL,CAAC;AA5CD,8DA4CC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Rule } from '@angular-devkit/schematics';
|
|
2
|
+
import { TsMorphAngularProjectTransformOptions } from '@rxap/schematics-ts-morph';
|
|
3
|
+
import { NormalizedTableColumn } from './table-column';
|
|
4
|
+
export interface UsePickFromTableInterfaceAsFormTypeRuleOptions extends TsMorphAngularProjectTransformOptions {
|
|
5
|
+
name: string;
|
|
6
|
+
formName: string;
|
|
7
|
+
columnList: ReadonlyArray<NormalizedTableColumn>;
|
|
8
|
+
suffix?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function UsePickFromTableInterfaceAsFormTypeRule(options: UsePickFromTableInterfaceAsFormTypeRuleOptions): Rule;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UsePickFromTableInterfaceAsFormTypeRule = void 0;
|
|
4
|
+
const schematics_ts_morph_1 = require("@rxap/schematics-ts-morph");
|
|
5
|
+
const schematics_utilities_1 = require("@rxap/schematics-utilities");
|
|
6
|
+
const utilities_1 = require("@rxap/utilities");
|
|
7
|
+
const form_table_action_1 = require("../schematics/table/action/form-table-action");
|
|
8
|
+
function UsePickFromTableInterfaceAsFormTypeRule(options) {
|
|
9
|
+
const { name, columnList, formName, suffix = 'table', } = options;
|
|
10
|
+
const className = (0, schematics_utilities_1.CoerceSuffix)((0, utilities_1.classify)(formName), 'Form');
|
|
11
|
+
const interfaceName = `I${className}`;
|
|
12
|
+
const tableInterfaceName = `I${(0, utilities_1.classify)(name)}${(0, utilities_1.classify)(suffix)}`;
|
|
13
|
+
return (0, schematics_ts_morph_1.TsMorphAngularProjectTransformRule)(options, (project, [sourceFile]) => {
|
|
14
|
+
const interfaceDeclaration = sourceFile.getInterface(interfaceName);
|
|
15
|
+
if (interfaceDeclaration) {
|
|
16
|
+
interfaceDeclaration.remove();
|
|
17
|
+
}
|
|
18
|
+
const type = `Pick<${tableInterfaceName}, ${columnList.filter(c => c.hasFilter)
|
|
19
|
+
.map(c => `'${(0, utilities_1.camelize)(c.name)}'`)
|
|
20
|
+
.join(' | ')}>`;
|
|
21
|
+
(0, form_table_action_1.CoerceTypeAlias)(sourceFile, interfaceName, {
|
|
22
|
+
type,
|
|
23
|
+
isExported: true,
|
|
24
|
+
}).set({ type });
|
|
25
|
+
(0, schematics_ts_morph_1.CoerceImports)(sourceFile, {
|
|
26
|
+
namedImports: [tableInterfaceName],
|
|
27
|
+
moduleSpecifier: `./${name}-${(0, utilities_1.dasherize)(suffix)}`,
|
|
28
|
+
});
|
|
29
|
+
}, ['/' + (0, schematics_utilities_1.CoerceSuffix)(formName, '.form.ts')]);
|
|
30
|
+
}
|
|
31
|
+
exports.UsePickFromTableInterfaceAsFormTypeRule = UsePickFromTableInterfaceAsFormTypeRule;
|
|
32
|
+
//# sourceMappingURL=use-pick-from-table-interface-as-form-type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-pick-from-table-interface-as-form-type.js","sourceRoot":"","sources":["../../../../../../packages/schematic/angular/src/lib/use-pick-from-table-interface-as-form-type.ts"],"names":[],"mappings":";;;AACA,mEAImC;AACnC,qEAA0D;AAC1D,+CAIyB;AACzB,oFAA+E;AAW/E,SAAgB,uCAAuC,CACrD,OAAuD;IAEvD,MAAM,EACJ,IAAI,EACJ,UAAU,EACV,QAAQ,EACR,MAAM,GAAG,OAAO,GACjB,GAAG,OAAO,CAAC;IAEZ,MAAM,SAAS,GAAG,IAAA,mCAAY,EAAC,IAAA,oBAAQ,EAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,CAAC;IAC3D,MAAM,aAAa,GAAG,IAAK,SAAU,EAAE,CAAC;IACxC,MAAM,kBAAkB,GAAG,IAAK,IAAA,oBAAQ,EAAC,IAAI,CAAE,GAAG,IAAA,oBAAQ,EAAC,MAAM,CAAC,EAAE,CAAC;IAErE,OAAO,IAAA,wDAAkC,EAAC,OAAO,EAAE,CAAC,OAAO,EAAE,CAAE,UAAU,CAAE,EAAE,EAAE;QAE7E,MAAM,oBAAoB,GAAG,UAAU,CAAC,YAAY,CAAC,aAAa,CAAC,CAAC;QACpE,IAAI,oBAAoB,EAAE;YACxB,oBAAoB,CAAC,MAAM,EAAE,CAAC;SAC/B;QAED,MAAM,IAAI,GAAG,QAAS,kBAAmB,KAAM,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;aAC/E,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,IAAK,IAAA,oBAAQ,EAAC,CAAC,CAAC,IAAI,CAAE,GAAG,CAAC;aACnC,IAAI,CAAC,KAAK,CAAE,GAAG,CAAC;QAEnB,IAAA,mCAAe,EAAC,UAAU,EAAE,aAAa,EAAE;YACzC,IAAI;YACJ,UAAU,EAAE,IAAI;SACjB,CAAC,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;QAEjB,IAAA,mCAAa,EAAC,UAAU,EAAE;YACxB,YAAY,EAAE,CAAE,kBAAkB,CAAE;YACpC,eAAe,EAAE,KAAM,IAAK,IAAI,IAAA,qBAAS,EAAC,MAAM,CAAC,EAAE;SACpD,CAAC,CAAC;IACL,CAAC,EAAE,CAAE,GAAG,GAAG,IAAA,mCAAY,EAAC,QAAQ,EAAE,UAAU,CAAC,CAAE,CAAC,CAAC;AACnD,CAAC;AAnCD,0FAmCC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { NormalizedTypeImport, TypeImport } from '@rxap/ts-morph';
|
|
2
|
+
export interface ValueOption {
|
|
3
|
+
value: string;
|
|
4
|
+
type?: string | TypeImport;
|
|
5
|
+
}
|
|
6
|
+
export interface NormalizedValueOption {
|
|
7
|
+
value: string;
|
|
8
|
+
templateValue: string;
|
|
9
|
+
type: NormalizedTypeImport;
|
|
10
|
+
}
|
|
11
|
+
export declare function NormalizeValueOption(option: Readonly<ValueOption> | string): Readonly<NormalizedValueOption>;
|
|
12
|
+
export declare function NormalizeValueOptionList(optionList?: Array<Readonly<ValueOption> | string>): ReadonlyArray<NormalizedValueOption>;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NormalizeValueOptionList = exports.NormalizeValueOption = void 0;
|
|
4
|
+
const ts_morph_1 = require("@rxap/ts-morph");
|
|
5
|
+
function guessType(value) {
|
|
6
|
+
if (typeof value === 'string') {
|
|
7
|
+
return {
|
|
8
|
+
name: 'string',
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
if (typeof value === 'number') {
|
|
12
|
+
return {
|
|
13
|
+
name: 'number',
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
if (typeof value === 'boolean') {
|
|
17
|
+
return {
|
|
18
|
+
name: 'boolean',
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
if (!isNaN(Number(value))) {
|
|
22
|
+
return {
|
|
23
|
+
name: 'number',
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
if (['true', 'false'].includes(value)) {
|
|
27
|
+
return {
|
|
28
|
+
name: 'boolean',
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
name: 'unknown',
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
function NormalizeValueOption(option) {
|
|
36
|
+
let type;
|
|
37
|
+
let value;
|
|
38
|
+
if (typeof option === 'string') {
|
|
39
|
+
if ((option.startsWith('\'') && option.endsWith('\'')) || (option.startsWith('`') && option.endsWith('`')) || (option.startsWith('"') && option.endsWith('"'))) {
|
|
40
|
+
type = (0, ts_morph_1.NormalizeTypeImport)({
|
|
41
|
+
name: 'string',
|
|
42
|
+
});
|
|
43
|
+
value = option.replace(/^['"`]/, '').replace(/['"`]$/, '');
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
type = (0, ts_morph_1.NormalizeTypeImport)(guessType(option));
|
|
47
|
+
value = option;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
type = (0, ts_morph_1.NormalizeTypeImport)(option.type);
|
|
52
|
+
value = option.value;
|
|
53
|
+
}
|
|
54
|
+
return Object.freeze({
|
|
55
|
+
value,
|
|
56
|
+
type,
|
|
57
|
+
templateValue: type.name === 'string' ? `'${value}'` : value,
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
exports.NormalizeValueOption = NormalizeValueOption;
|
|
61
|
+
function NormalizeValueOptionList(optionList) {
|
|
62
|
+
var _a;
|
|
63
|
+
return Object.freeze((_a = optionList === null || optionList === void 0 ? void 0 : optionList.map(NormalizeValueOption)) !== null && _a !== void 0 ? _a : []);
|
|
64
|
+
}
|
|
65
|
+
exports.NormalizeValueOptionList = NormalizeValueOptionList;
|
|
66
|
+
//# sourceMappingURL=value-option.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"value-option.js","sourceRoot":"","sources":["../../../../../../packages/schematic/angular/src/lib/value-option.ts"],"names":[],"mappings":";;;AAAA,6CAIwB;AAaxB,SAAS,SAAS,CAAC,KAAU;IAC3B,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;QAC7B,OAAO;YACL,IAAI,EAAE,QAAQ;SACf,CAAC;KACH;IACD,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;QAC7B,OAAO;YACL,IAAI,EAAE,QAAQ;SACf,CAAC;KACH;IACD,IAAI,OAAO,KAAK,KAAK,SAAS,EAAE;QAC9B,OAAO;YACL,IAAI,EAAE,SAAS;SAChB,CAAC;KACH;IACD,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE;QACzB,OAAO;YACL,IAAI,EAAE,QAAQ;SACf,CAAC;KACH;IACD,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;QACrC,OAAO;YACL,IAAI,EAAE,SAAS;SAChB,CAAC;KACH;IACD,OAAO;QACL,IAAI,EAAE,SAAS;KAChB,CAAC;AACJ,CAAC;AAED,SAAgB,oBAAoB,CAAC,MAAsC;IACzE,IAAI,IAA0B,CAAC;IAC/B,IAAI,KAAa,CAAC;IAClB,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE;QAC9B,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,EAAE;YAC9J,IAAI,GAAG,IAAA,8BAAmB,EAAC;gBACzB,IAAI,EAAE,QAAQ;aACf,CAAC,CAAC;YACH,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;SAC5D;aAAM;YACL,IAAI,GAAG,IAAA,8BAAmB,EAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;YAC9C,KAAK,GAAG,MAAM,CAAC;SAChB;KACF;SAAM;QACL,IAAI,GAAG,IAAA,8BAAmB,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACxC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;KACtB;IACD,OAAO,MAAM,CAAC,MAAM,CAAC;QACnB,KAAK;QACL,IAAI;QACJ,aAAa,EAAE,IAAI,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAK,KAAM,GAAG,CAAC,CAAC,CAAC,KAAK;KAC/D,CAAC,CAAC;AACL,CAAC;AAtBD,oDAsBC;AAED,SAAgB,wBAAwB,CACtC,UAAkD;;IAElD,OAAO,MAAM,CAAC,MAAM,CAAC,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,GAAG,CAAC,oBAAoB,CAAC,mCAAI,EAAE,CAAC,CAAC;AACpE,CAAC;AAJD,4DAIC"}
|