igniteui-cli 14.10.0-alpha.4 → 15.0.0-rc.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/lib/PromptSession.js +1 -1
- package/lib/commands/types.d.ts +1 -1
- package/migrations/{update-13_1_0 → legacy-type}/index.js +4 -6
- package/migrations/{update-13_1_0 → legacy-type}/index.spec.js +4 -4
- package/migrations/migration-collection.json +8 -39
- package/package.json +4 -4
- package/templates/react/igr-ts/accordion/default/files/src/app/__path__/__filePrefix__.test.tsx +13 -0
- package/templates/react/igr-ts/accordion/default/files/src/app/__path__/__filePrefix__.tsx +27 -0
- package/templates/react/igr-ts/accordion/default/files/src/app/__path__/style.module.css +9 -0
- package/templates/react/igr-ts/accordion/default/index.js +17 -0
- package/templates/react/igr-ts/accordion/index.js +12 -0
- package/templates/react/igr-ts/avatar/default/files/src/app/__path__/__filePrefix__.test.tsx +13 -0
- package/templates/react/igr-ts/avatar/default/files/src/app/__path__/__filePrefix__.tsx +16 -0
- package/templates/react/igr-ts/avatar/default/files/src/app/__path__/style.module.css +9 -0
- package/templates/react/igr-ts/avatar/default/index.js +17 -0
- package/templates/react/igr-ts/avatar/index.js +12 -0
- package/templates/react/igr-ts/badge/default/files/src/app/__path__/__filePrefix__.test.tsx +13 -0
- package/templates/react/igr-ts/badge/default/files/src/app/__path__/__filePrefix__.tsx +16 -0
- package/templates/react/igr-ts/badge/default/files/src/app/__path__/style.module.css +9 -0
- package/templates/react/igr-ts/badge/default/index.js +17 -0
- package/templates/react/igr-ts/badge/index.js +12 -0
- package/templates/react/igr-ts/banner/default/files/src/app/__path__/__filePrefix__.test.tsx +13 -0
- package/templates/react/igr-ts/banner/default/files/src/app/__path__/__filePrefix__.tsx +16 -0
- package/templates/react/igr-ts/banner/default/files/src/app/__path__/style.module.css +9 -0
- package/templates/react/igr-ts/banner/default/index.d.ts +1 -0
- package/templates/react/igr-ts/banner/default/index.js +17 -0
- package/templates/react/igr-ts/banner/index.d.ts +1 -0
- package/templates/react/igr-ts/banner/index.js +12 -0
- package/templates/react/igr-ts/bullet-graph/default/index.js +1 -1
- package/templates/react/igr-ts/button/default/files/src/app/__path__/__filePrefix__.test.tsx +13 -0
- package/templates/react/igr-ts/button/default/files/src/app/__path__/__filePrefix__.tsx +14 -0
- package/templates/react/igr-ts/button/default/files/src/app/__path__/style.module.css +9 -0
- package/templates/react/igr-ts/button/default/index.d.ts +1 -0
- package/templates/react/igr-ts/button/default/index.js +17 -0
- package/templates/react/igr-ts/button/index.d.ts +1 -0
- package/templates/react/igr-ts/button/index.js +12 -0
- package/templates/react/igr-ts/button-group/default/files/src/app/__path__/__filePrefix__.test.tsx +13 -0
- package/templates/react/igr-ts/button-group/default/files/src/app/__path__/__filePrefix__.tsx +18 -0
- package/templates/react/igr-ts/button-group/default/files/src/app/__path__/style.module.css +9 -0
- package/templates/react/igr-ts/button-group/default/index.d.ts +1 -0
- package/templates/react/igr-ts/button-group/default/index.js +17 -0
- package/templates/react/igr-ts/button-group/index.d.ts +1 -0
- package/templates/react/igr-ts/button-group/index.js +12 -0
- package/templates/react/igr-ts/calendar/default/files/src/app/__path__/__filePrefix__.test.tsx +13 -0
- package/templates/react/igr-ts/calendar/default/files/src/app/__path__/__filePrefix__.tsx +14 -0
- package/templates/react/igr-ts/calendar/default/files/src/app/__path__/style.module.css +9 -0
- package/templates/react/igr-ts/calendar/default/index.d.ts +1 -0
- package/templates/react/igr-ts/calendar/default/index.js +17 -0
- package/templates/react/igr-ts/calendar/index.d.ts +1 -0
- package/templates/react/igr-ts/calendar/index.js +12 -0
- package/templates/react/igr-ts/card/default/files/src/app/__path__/__filePrefix__.test.tsx +13 -0
- package/templates/react/igr-ts/card/default/files/src/app/__path__/__filePrefix__.tsx +26 -0
- package/templates/react/igr-ts/card/default/files/src/app/__path__/style.module.css +9 -0
- package/templates/react/igr-ts/card/default/index.d.ts +1 -0
- package/templates/react/igr-ts/card/default/index.js +17 -0
- package/templates/react/igr-ts/card/index.d.ts +1 -0
- package/templates/react/igr-ts/card/index.js +12 -0
- package/templates/react/igr-ts/category-chart/default/files/src/app/__path__/__filePrefix__.tsx +2 -6
- package/templates/react/igr-ts/category-chart/default/index.js +1 -1
- package/templates/react/igr-ts/checkbox/default/files/src/app/__path__/__filePrefix__.test.tsx +13 -0
- package/templates/react/igr-ts/checkbox/default/files/src/app/__path__/__filePrefix__.tsx +14 -0
- package/templates/react/igr-ts/checkbox/default/files/src/app/__path__/style.module.css +9 -0
- package/templates/react/igr-ts/checkbox/default/index.d.ts +1 -0
- package/templates/react/igr-ts/checkbox/default/index.js +17 -0
- package/templates/react/igr-ts/checkbox/index.d.ts +1 -0
- package/templates/react/igr-ts/checkbox/index.js +12 -0
- package/templates/react/igr-ts/chip/default/files/src/app/__path__/__filePrefix__.test.tsx +13 -0
- package/templates/react/igr-ts/chip/default/files/src/app/__path__/__filePrefix__.tsx +14 -0
- package/templates/react/igr-ts/chip/default/files/src/app/__path__/style.module.css +9 -0
- package/templates/react/igr-ts/chip/default/index.d.ts +1 -0
- package/templates/react/igr-ts/chip/default/index.js +17 -0
- package/templates/react/igr-ts/chip/index.d.ts +1 -0
- package/templates/react/igr-ts/chip/index.js +12 -0
- package/templates/react/igr-ts/circular-progress/default/files/src/app/__path__/__filePrefix__.test.tsx +13 -0
- package/templates/react/igr-ts/circular-progress/default/files/src/app/__path__/__filePrefix__.tsx +14 -0
- package/templates/react/igr-ts/circular-progress/default/files/src/app/__path__/style.module.css +9 -0
- package/templates/react/igr-ts/circular-progress/default/index.d.ts +1 -0
- package/templates/react/igr-ts/circular-progress/default/index.js +17 -0
- package/templates/react/igr-ts/circular-progress/index.d.ts +1 -0
- package/templates/react/igr-ts/circular-progress/index.js +12 -0
- package/templates/react/igr-ts/custom-templates/subscription-form/files/src/app/__path__/__filePrefix__.test.tsx +13 -0
- package/templates/react/igr-ts/custom-templates/subscription-form/files/src/app/__path__/__filePrefix__.tsx +33 -0
- package/templates/react/igr-ts/custom-templates/subscription-form/files/src/app/__path__/style.module.css +9 -0
- package/templates/react/igr-ts/custom-templates/subscription-form/index.d.ts +1 -0
- package/templates/react/igr-ts/custom-templates/subscription-form/index.js +16 -0
- package/templates/react/igr-ts/date-picker/default/files/src/app/__path__/__filePrefix__.test.tsx +13 -0
- package/templates/react/igr-ts/date-picker/default/files/src/app/__path__/__filePrefix__.tsx +14 -0
- package/templates/react/igr-ts/date-picker/default/files/src/app/__path__/style.module.css +9 -0
- package/templates/react/igr-ts/date-picker/default/index.d.ts +1 -0
- package/templates/react/igr-ts/date-picker/default/index.js +17 -0
- package/templates/react/igr-ts/date-picker/index.d.ts +1 -0
- package/templates/react/igr-ts/date-picker/index.js +12 -0
- package/templates/react/igr-ts/divider/default/files/src/app/__path__/__filePrefix__.test.tsx +13 -0
- package/templates/react/igr-ts/divider/default/files/src/app/__path__/__filePrefix__.tsx +18 -0
- package/templates/react/igr-ts/divider/default/files/src/app/__path__/style.module.css +9 -0
- package/templates/react/igr-ts/divider/default/index.d.ts +1 -0
- package/templates/react/igr-ts/divider/default/index.js +17 -0
- package/templates/react/igr-ts/divider/index.d.ts +1 -0
- package/templates/react/igr-ts/divider/index.js +12 -0
- package/templates/react/igr-ts/doughnut-chart/default/files/src/app/__path__/__filePrefix__.tsx +6 -11
- package/templates/react/igr-ts/doughnut-chart/default/index.js +1 -1
- package/templates/react/igr-ts/dropdown/default/files/src/app/__path__/__filePrefix__.test.tsx +13 -0
- package/templates/react/igr-ts/dropdown/default/files/src/app/__path__/__filePrefix__.tsx +19 -0
- package/templates/react/igr-ts/dropdown/default/files/src/app/__path__/style.module.css +9 -0
- package/templates/react/igr-ts/dropdown/default/index.d.ts +1 -0
- package/templates/react/igr-ts/dropdown/default/index.js +17 -0
- package/templates/react/igr-ts/dropdown/index.d.ts +1 -0
- package/templates/react/igr-ts/dropdown/index.js +12 -0
- package/templates/react/igr-ts/expansion-panel/default/files/src/app/__path__/__filePrefix__.test.tsx +13 -0
- package/templates/react/igr-ts/expansion-panel/default/files/src/app/__path__/__filePrefix__.tsx +17 -0
- package/templates/react/igr-ts/expansion-panel/default/files/src/app/__path__/style.module.css +9 -0
- package/templates/react/igr-ts/expansion-panel/default/index.d.ts +1 -0
- package/templates/react/igr-ts/expansion-panel/default/index.js +17 -0
- package/templates/react/igr-ts/expansion-panel/index.d.ts +1 -0
- package/templates/react/igr-ts/expansion-panel/index.js +12 -0
- package/templates/react/igr-ts/financial-chart/default/files/src/app/__path__/__filePrefix__.tsx +2 -6
- package/templates/react/igr-ts/financial-chart/default/index.js +1 -1
- package/templates/react/igr-ts/form/default/files/src/app/__path__/__filePrefix__.test.tsx +13 -0
- package/templates/react/igr-ts/form/default/files/src/app/__path__/__filePrefix__.tsx +24 -0
- package/templates/react/igr-ts/form/default/files/src/app/__path__/style.module.css +9 -0
- package/templates/react/igr-ts/form/default/index.d.ts +1 -0
- package/templates/react/igr-ts/form/default/index.js +17 -0
- package/templates/react/igr-ts/form/index.d.ts +1 -0
- package/templates/react/igr-ts/form/index.js +12 -0
- package/templates/react/igr-ts/grid/basic/files/src/app/__path__/__filePrefix__.tsx +2 -3
- package/templates/react/igr-ts/grid/basic/index.js +1 -2
- package/templates/react/igr-ts/groups.json +9 -2
- package/templates/react/igr-ts/icon/default/files/src/app/__path__/__filePrefix__.test.tsx +13 -0
- package/templates/react/igr-ts/icon/default/files/src/app/__path__/__filePrefix__.tsx +21 -0
- package/templates/react/igr-ts/icon/default/files/src/app/__path__/style.module.css +9 -0
- package/templates/react/igr-ts/icon/default/index.d.ts +1 -0
- package/templates/react/igr-ts/icon/default/index.js +17 -0
- package/templates/react/igr-ts/icon/index.d.ts +1 -0
- package/templates/react/igr-ts/icon/index.js +12 -0
- package/templates/react/igr-ts/icon-button/default/files/src/app/__path__/__filePrefix__.test.tsx +13 -0
- package/templates/react/igr-ts/icon-button/default/files/src/app/__path__/__filePrefix__.tsx +14 -0
- package/templates/react/igr-ts/icon-button/default/files/src/app/__path__/style.module.css +9 -0
- package/templates/react/igr-ts/icon-button/default/index.d.ts +1 -0
- package/templates/react/igr-ts/icon-button/default/index.js +17 -0
- package/templates/react/igr-ts/icon-button/index.d.ts +1 -0
- package/templates/react/igr-ts/icon-button/index.js +12 -0
- package/templates/react/igr-ts/input/default/files/src/app/__path__/__filePrefix__.test.tsx +13 -0
- package/templates/react/igr-ts/input/default/files/src/app/__path__/__filePrefix__.tsx +16 -0
- package/templates/react/igr-ts/input/default/files/src/app/__path__/style.module.css +9 -0
- package/templates/react/igr-ts/input/default/index.d.ts +1 -0
- package/templates/react/igr-ts/input/default/index.js +17 -0
- package/templates/react/igr-ts/input/index.d.ts +1 -0
- package/templates/react/igr-ts/input/index.js +12 -0
- package/templates/react/igr-ts/linear-gauge/default/index.js +1 -1
- package/templates/react/igr-ts/linear-progress/default/files/src/app/__path__/__filePrefix__.test.tsx +13 -0
- package/templates/react/igr-ts/linear-progress/default/files/src/app/__path__/__filePrefix__.tsx +16 -0
- package/templates/react/igr-ts/linear-progress/default/files/src/app/__path__/style.module.css +9 -0
- package/templates/react/igr-ts/linear-progress/default/index.d.ts +1 -0
- package/templates/react/igr-ts/linear-progress/default/index.js +17 -0
- package/templates/react/igr-ts/linear-progress/index.d.ts +1 -0
- package/templates/react/igr-ts/linear-progress/index.js +12 -0
- package/templates/react/igr-ts/list/default/files/src/app/__path__/__filePrefix__.test.tsx +13 -0
- package/templates/react/igr-ts/list/default/files/src/app/__path__/__filePrefix__.tsx +31 -0
- package/templates/react/igr-ts/list/default/files/src/app/__path__/style.module.css +9 -0
- package/templates/react/igr-ts/list/default/index.d.ts +1 -0
- package/templates/react/igr-ts/list/default/index.js +17 -0
- package/templates/react/igr-ts/list/index.d.ts +1 -0
- package/templates/react/igr-ts/list/index.js +12 -0
- package/templates/react/igr-ts/navbar/default/files/src/app/__path__/__filePrefix__.test.tsx +13 -0
- package/templates/react/igr-ts/navbar/default/files/src/app/__path__/__filePrefix__.tsx +16 -0
- package/templates/react/igr-ts/navbar/default/files/src/app/__path__/style.module.css +9 -0
- package/templates/react/igr-ts/navbar/default/index.d.ts +1 -0
- package/templates/react/igr-ts/navbar/default/index.js +17 -0
- package/templates/react/igr-ts/navbar/index.d.ts +1 -0
- package/templates/react/igr-ts/navbar/index.js +12 -0
- package/templates/react/igr-ts/pie-chart/default/files/src/app/__path__/__filePrefix__.tsx +5 -11
- package/templates/react/igr-ts/pie-chart/default/index.js +1 -1
- package/templates/react/igr-ts/projects/_base/files/__dot__gitignore +22 -4
- package/templates/react/igr-ts/projects/_base/files/__dot__vscode/mcp.json +2 -2
- package/templates/react/igr-ts/projects/_base/files/eslint.config.js +42 -0
- package/templates/react/igr-ts/projects/_base/files/index.html +3 -7
- package/templates/react/igr-ts/projects/_base/files/package.json +25 -23
- package/templates/react/igr-ts/projects/_base/files/public/favicon.svg +1 -0
- package/templates/react/igr-ts/projects/_base/files/public/icons.svg +24 -0
- package/templates/react/igr-ts/projects/_base/files/src/main.tsx +5 -5
- package/templates/react/igr-ts/projects/_base/files/tsconfig.app.json +28 -0
- package/templates/react/igr-ts/projects/_base/files/tsconfig.json +5 -23
- package/templates/react/igr-ts/projects/_base/files/tsconfig.node.json +26 -0
- package/templates/react/igr-ts/projects/_base/files/vite.config.ts +5 -8
- package/templates/react/igr-ts/projects/_base_with_home/files/index.html +3 -7
- package/templates/react/igr-ts/projects/top-nav/files/src/components/navigation-header/index.tsx +7 -17
- package/templates/react/igr-ts/radial-gauge/default/index.js +1 -1
- package/templates/react/igr-ts/radio-group/default/files/src/app/__path__/__filePrefix__.test.tsx +13 -0
- package/templates/react/igr-ts/radio-group/default/files/src/app/__path__/__filePrefix__.tsx +18 -0
- package/templates/react/igr-ts/radio-group/default/files/src/app/__path__/style.module.css +9 -0
- package/templates/react/igr-ts/radio-group/default/index.d.ts +1 -0
- package/templates/react/igr-ts/radio-group/default/index.js +17 -0
- package/templates/react/igr-ts/radio-group/index.d.ts +1 -0
- package/templates/react/igr-ts/radio-group/index.js +12 -0
- package/templates/react/igr-ts/rating/default/files/src/app/__path__/__filePrefix__.test.tsx +13 -0
- package/templates/react/igr-ts/rating/default/files/src/app/__path__/__filePrefix__.tsx +14 -0
- package/templates/react/igr-ts/rating/default/files/src/app/__path__/style.module.css +9 -0
- package/templates/react/igr-ts/rating/default/index.d.ts +1 -0
- package/templates/react/igr-ts/rating/default/index.js +17 -0
- package/templates/react/igr-ts/rating/index.d.ts +1 -0
- package/templates/react/igr-ts/rating/index.js +12 -0
- package/templates/react/igr-ts/ripple/default/files/src/app/__path__/__filePrefix__.test.tsx +13 -0
- package/templates/react/igr-ts/ripple/default/files/src/app/__path__/__filePrefix__.tsx +17 -0
- package/templates/react/igr-ts/ripple/default/files/src/app/__path__/style.module.css +9 -0
- package/templates/react/igr-ts/ripple/default/index.d.ts +1 -0
- package/templates/react/igr-ts/ripple/default/index.js +17 -0
- package/templates/react/igr-ts/ripple/index.d.ts +1 -0
- package/templates/react/igr-ts/ripple/index.js +12 -0
- package/templates/react/igr-ts/slider/default/files/src/app/__path__/__filePrefix__.test.tsx +13 -0
- package/templates/react/igr-ts/slider/default/files/src/app/__path__/__filePrefix__.tsx +14 -0
- package/templates/react/igr-ts/slider/default/files/src/app/__path__/style.module.css +9 -0
- package/templates/react/igr-ts/slider/default/index.d.ts +1 -0
- package/templates/react/igr-ts/slider/default/index.js +17 -0
- package/templates/react/igr-ts/slider/index.d.ts +1 -0
- package/templates/react/igr-ts/slider/index.js +12 -0
- package/templates/react/igr-ts/switch/default/files/src/app/__path__/__filePrefix__.test.tsx +13 -0
- package/templates/react/igr-ts/switch/default/files/src/app/__path__/__filePrefix__.tsx +14 -0
- package/templates/react/igr-ts/switch/default/files/src/app/__path__/style.module.css +9 -0
- package/templates/react/igr-ts/switch/default/index.d.ts +1 -0
- package/templates/react/igr-ts/switch/default/index.js +17 -0
- package/templates/react/igr-ts/switch/index.d.ts +1 -0
- package/templates/react/igr-ts/switch/index.js +12 -0
- package/templates/react/igr-ts/tabs/default/files/src/app/__path__/__filePrefix__.test.tsx +13 -0
- package/templates/react/igr-ts/tabs/default/files/src/app/__path__/__filePrefix__.tsx +27 -0
- package/templates/react/igr-ts/tabs/default/files/src/app/__path__/style.module.css +9 -0
- package/templates/react/igr-ts/tabs/default/index.d.ts +1 -0
- package/templates/react/igr-ts/tabs/default/index.js +17 -0
- package/templates/react/igr-ts/tabs/index.d.ts +1 -0
- package/templates/react/igr-ts/tabs/index.js +12 -0
- package/templates/react/igr-ts/text-area/default/files/src/app/__path__/__filePrefix__.test.tsx +13 -0
- package/templates/react/igr-ts/text-area/default/files/src/app/__path__/__filePrefix__.tsx +14 -0
- package/templates/react/igr-ts/text-area/default/files/src/app/__path__/style.module.css +9 -0
- package/templates/react/igr-ts/text-area/default/index.d.ts +1 -0
- package/templates/react/igr-ts/text-area/default/index.js +17 -0
- package/templates/react/igr-ts/text-area/index.d.ts +1 -0
- package/templates/react/igr-ts/text-area/index.js +12 -0
- package/templates/react/igr-ts/tree/default/files/src/app/__path__/__filePrefix__.test.tsx +13 -0
- package/templates/react/igr-ts/tree/default/files/src/app/__path__/__filePrefix__.tsx +29 -0
- package/templates/react/igr-ts/tree/default/files/src/app/__path__/style.module.css +9 -0
- package/templates/react/igr-ts/tree/default/index.d.ts +1 -0
- package/templates/react/igr-ts/tree/default/index.js +17 -0
- package/templates/react/igr-ts/tree/index.d.ts +1 -0
- package/templates/react/igr-ts/tree/index.js +12 -0
- package/templates/webcomponents/igc-ts/dock-manager/default/files/src/app/__path__/__filePrefix__.ts +129 -164
- package/templates/webcomponents/igc-ts/dock-manager/default/index.js +1 -1
- package/templates/webcomponents/igc-ts/financial-chart/default/index.js +2 -2
- package/templates/webcomponents/igc-ts/grid/default/files/src/app/__path__/__filePrefix__.test.ts +1 -1
- package/templates/webcomponents/igc-ts/grid/default/files/src/app/__path__/__filePrefix__.ts +56 -63
- package/templates/webcomponents/igc-ts/grid/default/index.js +1 -6
- package/templates/webcomponents/igc-ts/grid/grid-editing/files/src/app/__path__/__filePrefix__.ts +86 -185
- package/templates/webcomponents/igc-ts/grid/grid-editing/index.js +1 -0
- package/templates/webcomponents/igc-ts/grid/grid-summaries/files/src/app/__path__/__filePrefix__.ts +11 -25
- package/templates/webcomponents/igc-ts/grid/grid-summaries/index.js +1 -0
- package/templates/webcomponents/igc-ts/linear-gauge/default/index.js +2 -2
- package/templates/webcomponents/igc-ts/linear-progress/default/index.js +1 -4
- package/templates/webcomponents/igc-ts/pie-chart/default/index.js +2 -2
- package/templates/webcomponents/igc-ts/projects/_base/files/__dot__vscode/mcp.json +2 -2
- package/templates/webcomponents/igc-ts/projects/_base/files/package.json +1 -1
- package/templates/webcomponents/igc-ts/projects/_base_with_home/files/package.json +8 -8
- package/templates/webcomponents/igc-ts/radial-gauge/default/index.js +2 -2
- package/templates/webcomponents/igc-ts/tree/default/index.js +4 -4
- package/migrations/schema.json +0 -14
- package/migrations/update-2/index.d.ts +0 -2
- package/migrations/update-2/index.js +0 -17
- package/migrations/update-2/index.spec.js +0 -104
- package/migrations/update-3/index.d.ts +0 -2
- package/migrations/update-3/index.js +0 -65
- package/migrations/update-3/index.spec.js +0 -129
- package/migrations/update-3_2/index.d.ts +0 -2
- package/migrations/update-3_2/index.js +0 -43
- package/migrations/update-3_2/index.spec.js +0 -98
- package/migrations/update-4_2_3/index.d.ts +0 -2
- package/migrations/update-4_2_3/index.js +0 -43
- package/migrations/update-4_2_3/index.spec.js +0 -97
- package/migrations/update-5_0_0/index.d.ts +0 -13
- package/migrations/update-5_0_0/index.js +0 -62
- package/migrations/update-5_0_0/index.spec.js +0 -87
- package/migrations/update-5_0_3/index.d.ts +0 -2
- package/migrations/update-5_0_3/index.js +0 -29
- package/migrations/update-5_0_3/index.spec.js +0 -83
- package/templates/react/igr-ts/projects/_base/files/eslint.config.mjs +0 -48
- package/templates/react/igr-ts/projects/_base/files/public/favicon.ico +0 -0
- /package/migrations/{update-13_1_0 → legacy-type}/index.d.ts +0 -0
- /package/migrations/{update-13_1_0 → legacy-type}/index.spec.d.ts +0 -0
- /package/{migrations/update-2/index.spec.d.ts → templates/react/igr-ts/accordion/default/index.d.ts} +0 -0
- /package/{migrations/update-3/index.spec.d.ts → templates/react/igr-ts/accordion/index.d.ts} +0 -0
- /package/{migrations/update-3_2/index.spec.d.ts → templates/react/igr-ts/avatar/default/index.d.ts} +0 -0
- /package/{migrations/update-4_2_3/index.spec.d.ts → templates/react/igr-ts/avatar/index.d.ts} +0 -0
- /package/{migrations/update-5_0_0/index.spec.d.ts → templates/react/igr-ts/badge/default/index.d.ts} +0 -0
- /package/{migrations/update-5_0_3/index.spec.d.ts → templates/react/igr-ts/badge/index.d.ts} +0 -0
package/lib/PromptSession.js
CHANGED
|
@@ -93,7 +93,7 @@ class PromptSession extends cli_core_1.BasePromptSession {
|
|
|
93
93
|
name: "framework",
|
|
94
94
|
message: "Choose framework:",
|
|
95
95
|
choices: this.getFrameworkNames(),
|
|
96
|
-
default: "
|
|
96
|
+
default: "Angular"
|
|
97
97
|
});
|
|
98
98
|
const framework = this.templateManager.getFrameworkByName(frameRes);
|
|
99
99
|
// app name validation???
|
package/lib/commands/types.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export interface PositionalArgs {
|
|
|
18
18
|
framework?: string;
|
|
19
19
|
/** The name of the project */
|
|
20
20
|
name?: string;
|
|
21
|
-
/** The type of the project. (eg. igx-ts
|
|
21
|
+
/** The type of the project. (eg. igx-ts) */
|
|
22
22
|
type?: string;
|
|
23
23
|
/** Which theme to use when creating a new project. */
|
|
24
24
|
theme?: string;
|
|
@@ -4,15 +4,13 @@ exports.default = default_1;
|
|
|
4
4
|
function default_1(options) {
|
|
5
5
|
return (host, context) => {
|
|
6
6
|
var _a;
|
|
7
|
-
if (!options.applyMigrations) {
|
|
8
|
-
return;
|
|
9
|
-
}
|
|
10
|
-
context.logger.info("We've updated your project type to `igx-ts-legacy` to continue using `NgModule`-s. You can always change back to `igx-ts` should you want to start using Standalone Components.");
|
|
11
7
|
const igConfig = "./ignite-ui-cli.json";
|
|
12
8
|
if (host.exists(igConfig)) {
|
|
13
9
|
const content = JSON.parse(host.read(igConfig).toString());
|
|
14
|
-
if (((_a = content === null || content === void 0 ? void 0 : content.project) === null || _a === void 0 ? void 0 : _a.projectType) === "igx-ts") {
|
|
15
|
-
content.project.projectType = "igx-ts
|
|
10
|
+
if (((_a = content === null || content === void 0 ? void 0 : content.project) === null || _a === void 0 ? void 0 : _a.projectType) === "igx-ts-legacy") {
|
|
11
|
+
content.project.projectType = "igx-ts";
|
|
12
|
+
context.logger.info("We've updated your project type to `igx-ts` to continue using Ignite UI CLI. The `igx-ts-legacy` NgModule-based project type is no longer supported. Adding new components might not register correctly.");
|
|
13
|
+
context.logger.info("We recommend using Angular's standalone migration: https://angular.dev/reference/migrations/standalone");
|
|
16
14
|
host.overwrite(igConfig, JSON.stringify(content, null, 2));
|
|
17
15
|
}
|
|
18
16
|
}
|
|
@@ -35,7 +35,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
35
35
|
const path = __importStar(require("path"));
|
|
36
36
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
37
37
|
const testing_1 = require("@angular-devkit/schematics/testing");
|
|
38
|
-
describe("
|
|
38
|
+
describe("Legacy type", () => {
|
|
39
39
|
let appTree;
|
|
40
40
|
const schematicRunner = new testing_1.SchematicTestRunner("ig-migrate", path.join(__dirname, "../migration-collection.json"));
|
|
41
41
|
beforeEach(() => {
|
|
@@ -51,7 +51,7 @@ describe("Update 13.1.0", () => {
|
|
|
51
51
|
"project": {
|
|
52
52
|
"defaultPort": 4200,
|
|
53
53
|
"framework": "angular",
|
|
54
|
-
"projectType": "igx-ts",
|
|
54
|
+
"projectType": "igx-ts-legacy",
|
|
55
55
|
"projectTemplate": "side-nav",
|
|
56
56
|
"theme": "Default",
|
|
57
57
|
"themePath": "node_modules/igniteui-angular/styles/igniteui-angular.css",
|
|
@@ -65,7 +65,7 @@ describe("Update 13.1.0", () => {
|
|
|
65
65
|
},
|
|
66
66
|
"build": {}
|
|
67
67
|
}`);
|
|
68
|
-
const tree = yield schematicRunner.runSchematic("
|
|
68
|
+
const tree = yield schematicRunner.runSchematic("legacy-type", {}, appTree);
|
|
69
69
|
expect(tree.readContent("./ignite-ui-cli.json"))
|
|
70
70
|
.toEqual(`{
|
|
71
71
|
"igPackageRegistry": "https://packages.infragistics.com/npm/js-licensed/",
|
|
@@ -76,7 +76,7 @@ describe("Update 13.1.0", () => {
|
|
|
76
76
|
"project": {
|
|
77
77
|
"defaultPort": 4200,
|
|
78
78
|
"framework": "angular",
|
|
79
|
-
"projectType": "igx-ts
|
|
79
|
+
"projectType": "igx-ts",
|
|
80
80
|
"projectTemplate": "side-nav",
|
|
81
81
|
"theme": "Default",
|
|
82
82
|
"themePath": "node_modules/igniteui-angular/styles/igniteui-angular.css",
|
|
@@ -1,42 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
},
|
|
10
|
-
"migration-02": {
|
|
11
|
-
"version": "3.0.0",
|
|
12
|
-
"description": "Updates Ignite UI for Angular project from 2.1.x",
|
|
13
|
-
"factory": "./update-3"
|
|
14
|
-
},
|
|
15
|
-
"migration-03": {
|
|
16
|
-
"version": "3.2.0",
|
|
17
|
-
"description": "Updates Ignite UI for Angular project from 3.1.x",
|
|
18
|
-
"factory": "./update-3_2"
|
|
19
|
-
},
|
|
20
|
-
"migration-04": {
|
|
21
|
-
"version": "4.2.3",
|
|
22
|
-
"description": "Updates Ignite UI for Angular project from 4.2.x",
|
|
23
|
-
"factory": "./update-4_2_3"
|
|
24
|
-
},
|
|
25
|
-
"migration-05": {
|
|
26
|
-
"version": "5.0.0",
|
|
27
|
-
"description": "Updates Ignite UI for Angular project from CLI 4.4.x to 5.0.0",
|
|
28
|
-
"factory": "./update-5_0_0"
|
|
29
|
-
},
|
|
30
|
-
"migration-06": {
|
|
31
|
-
"version": "5.0.3",
|
|
32
|
-
"description": "Updates Ignite UI for Angular project from CLI 5.0.x to 5.0.3",
|
|
33
|
-
"factory": "./update-5_0_3"
|
|
34
|
-
},
|
|
35
|
-
"migration-07": {
|
|
36
|
-
"version": "13.1.0",
|
|
37
|
-
"description": "Updates Ignite UI for Angular Schematics project from 13.0.x to 13.1.x",
|
|
38
|
-
"factory": "./update-13_1_0",
|
|
39
|
-
"schema": "./schema.json"
|
|
40
|
-
}
|
|
2
|
+
"$schema": "../node_modules/@angular-devkit/schematics/collection-schema.json",
|
|
3
|
+
"encapsulation": "true",
|
|
4
|
+
"schematics": {
|
|
5
|
+
"legacy-type": {
|
|
6
|
+
"version": "15.0.0",
|
|
7
|
+
"description": "Updates Ignite UI for Angular Schematics legacy project type to igx-ts",
|
|
8
|
+
"factory": "./legacy-type"
|
|
41
9
|
}
|
|
10
|
+
}
|
|
42
11
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "igniteui-cli",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "15.0.0-rc.0",
|
|
4
4
|
"description": "CLI tool for creating Ignite UI projects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"CLI",
|
|
@@ -66,9 +66,9 @@
|
|
|
66
66
|
"all": true
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@igniteui/angular-templates": "
|
|
70
|
-
"@igniteui/cli-core": "
|
|
71
|
-
"@igniteui/mcp-server": "
|
|
69
|
+
"@igniteui/angular-templates": "~21.1.1500-rc.0",
|
|
70
|
+
"@igniteui/cli-core": "~15.0.0-rc.0",
|
|
71
|
+
"@igniteui/mcp-server": "~15.0.0-rc.0",
|
|
72
72
|
"@inquirer/prompts": "^7.9.0",
|
|
73
73
|
"@types/yargs": "^17.0.33",
|
|
74
74
|
"chalk": "^5.3.0",
|
package/templates/react/igr-ts/accordion/default/files/src/app/__path__/__filePrefix__.test.tsx
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { beforeAll, expect, test } from 'vitest';
|
|
2
|
+
import { render } from '@testing-library/react';
|
|
3
|
+
import $(ClassName) from './$(path)';
|
|
4
|
+
import { setupTestMocks } from '../../setupTests';
|
|
5
|
+
|
|
6
|
+
beforeAll(() => {
|
|
7
|
+
setupTestMocks();
|
|
8
|
+
})
|
|
9
|
+
|
|
10
|
+
test('renders $(ClassName) component', () => {
|
|
11
|
+
const wrapper = render(<$(ClassName) />);
|
|
12
|
+
expect(wrapper).toBeTruthy();
|
|
13
|
+
});
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import style from './style.module.css';
|
|
2
|
+
import { IgrAccordion, IgrExpansionPanel } from 'igniteui-react';
|
|
3
|
+
import 'igniteui-webcomponents/themes/light/bootstrap.css';
|
|
4
|
+
|
|
5
|
+
export default function $(ClassName)() {
|
|
6
|
+
return (
|
|
7
|
+
<div>
|
|
8
|
+
<h1 className={style.title}>Accordion</h1>
|
|
9
|
+
<div className={style.container}>
|
|
10
|
+
<IgrAccordion singleExpand={false}>
|
|
11
|
+
<IgrExpansionPanel>
|
|
12
|
+
<div slot="title">Ignite UI for React</div>
|
|
13
|
+
<p>Ignite UI for React is a complete library of UI components, giving you the ability to build modern web applications using encapsulation and the concept of reusable components in a dependency-free approach.</p>
|
|
14
|
+
</IgrExpansionPanel>
|
|
15
|
+
<IgrExpansionPanel>
|
|
16
|
+
<div slot="title">Ignite UI for Angular</div>
|
|
17
|
+
<p>Ignite UI for Angular is a complete set of Material-based UI Widgets, Components and Sketch UI kits by Infragistics.</p>
|
|
18
|
+
</IgrExpansionPanel>
|
|
19
|
+
<IgrExpansionPanel>
|
|
20
|
+
<div slot="title">Ignite UI for Web Components</div>
|
|
21
|
+
<p>Ignite UI for Web Components is a complete library of UI components, giving you the ability to build modern web applications.</p>
|
|
22
|
+
</IgrExpansionPanel>
|
|
23
|
+
</IgrAccordion>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
);
|
|
27
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const IgniteUIForReactTemplate_1 = require("../../../../../lib/templates/IgniteUIForReactTemplate");
|
|
4
|
+
class IgrAccordionTemplate extends IgniteUIForReactTemplate_1.IgniteUIForReactTemplate {
|
|
5
|
+
constructor() {
|
|
6
|
+
super(__dirname);
|
|
7
|
+
this.components = ["Accordion"];
|
|
8
|
+
this.controlGroup = "Layouts";
|
|
9
|
+
this.listInComponentTemplates = true;
|
|
10
|
+
this.id = "accordion";
|
|
11
|
+
this.projectType = "igr-ts";
|
|
12
|
+
this.name = "Accordion";
|
|
13
|
+
this.description = "basic IgrAccordion";
|
|
14
|
+
this.packages = ["igniteui-react@~19.5.2"];
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
module.exports = new IgrAccordionTemplate();
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const cli_core_1 = require("@igniteui/cli-core");
|
|
4
|
+
class IgrAccordionComponent extends cli_core_1.BaseComponent {
|
|
5
|
+
constructor() {
|
|
6
|
+
super(__dirname);
|
|
7
|
+
this.name = "Accordion";
|
|
8
|
+
this.group = "Layouts";
|
|
9
|
+
this.description = `enables displaying of content in a vertically collapsible fashion.`;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
module.exports = new IgrAccordionComponent();
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { beforeAll, expect, test } from 'vitest';
|
|
2
|
+
import { render } from '@testing-library/react';
|
|
3
|
+
import $(ClassName) from './$(path)';
|
|
4
|
+
import { setupTestMocks } from '../../setupTests';
|
|
5
|
+
|
|
6
|
+
beforeAll(() => {
|
|
7
|
+
setupTestMocks();
|
|
8
|
+
})
|
|
9
|
+
|
|
10
|
+
test('renders $(ClassName) component', () => {
|
|
11
|
+
const wrapper = render(<$(ClassName) />);
|
|
12
|
+
expect(wrapper).toBeTruthy();
|
|
13
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import style from './style.module.css';
|
|
2
|
+
import { IgrAvatar } from 'igniteui-react';
|
|
3
|
+
import 'igniteui-webcomponents/themes/light/bootstrap.css';
|
|
4
|
+
|
|
5
|
+
export default function $(ClassName)() {
|
|
6
|
+
return (
|
|
7
|
+
<div>
|
|
8
|
+
<h1 className={style.title}>Avatar</h1>
|
|
9
|
+
<div className={style.container}>
|
|
10
|
+
<IgrAvatar shape="circle" size="large" initials="JD" />
|
|
11
|
+
<IgrAvatar shape="rounded" size="medium" initials="AB" />
|
|
12
|
+
<IgrAvatar shape="circle" size="small" initials="CD" />
|
|
13
|
+
</div>
|
|
14
|
+
</div>
|
|
15
|
+
);
|
|
16
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const IgniteUIForReactTemplate_1 = require("../../../../../lib/templates/IgniteUIForReactTemplate");
|
|
4
|
+
class IgrAvatarTemplate extends IgniteUIForReactTemplate_1.IgniteUIForReactTemplate {
|
|
5
|
+
constructor() {
|
|
6
|
+
super(__dirname);
|
|
7
|
+
this.components = ["Avatar"];
|
|
8
|
+
this.controlGroup = "Layouts";
|
|
9
|
+
this.listInComponentTemplates = true;
|
|
10
|
+
this.id = "avatar";
|
|
11
|
+
this.projectType = "igr-ts";
|
|
12
|
+
this.name = "Avatar";
|
|
13
|
+
this.description = "displays an avatar with customizable shape, size, and initials.";
|
|
14
|
+
this.packages = ["igniteui-react@~19.5.2"];
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
module.exports = new IgrAvatarTemplate();
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const cli_core_1 = require("@igniteui/cli-core");
|
|
4
|
+
class IgrAvatarComponent extends cli_core_1.BaseComponent {
|
|
5
|
+
constructor() {
|
|
6
|
+
super(__dirname);
|
|
7
|
+
this.name = "Avatar";
|
|
8
|
+
this.group = "Layouts";
|
|
9
|
+
this.description = `displays an avatar with customizable shape, size, and initials.`;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
module.exports = new IgrAvatarComponent();
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { beforeAll, expect, test } from 'vitest';
|
|
2
|
+
import { render } from '@testing-library/react';
|
|
3
|
+
import $(ClassName) from './$(path)';
|
|
4
|
+
import { setupTestMocks } from '../../setupTests';
|
|
5
|
+
|
|
6
|
+
beforeAll(() => {
|
|
7
|
+
setupTestMocks();
|
|
8
|
+
})
|
|
9
|
+
|
|
10
|
+
test('renders $(ClassName) component', () => {
|
|
11
|
+
const wrapper = render(<$(ClassName) />);
|
|
12
|
+
expect(wrapper).toBeTruthy();
|
|
13
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import style from './style.module.css';
|
|
2
|
+
import { IgrBadge } from 'igniteui-react';
|
|
3
|
+
import 'igniteui-webcomponents/themes/light/bootstrap.css';
|
|
4
|
+
|
|
5
|
+
export default function $(ClassName)() {
|
|
6
|
+
return (
|
|
7
|
+
<div>
|
|
8
|
+
<h1 className={style.title}>Badge</h1>
|
|
9
|
+
<div className={style.container}>
|
|
10
|
+
<IgrBadge outlined={true}>Awaiting test</IgrBadge>
|
|
11
|
+
<IgrBadge outlined={true} variant="danger">Critical issue</IgrBadge>
|
|
12
|
+
<IgrBadge outlined={true} variant="success">Verified</IgrBadge>
|
|
13
|
+
</div>
|
|
14
|
+
</div>
|
|
15
|
+
);
|
|
16
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const IgniteUIForReactTemplate_1 = require("../../../../../lib/templates/IgniteUIForReactTemplate");
|
|
4
|
+
class IgrBadgeTemplate extends IgniteUIForReactTemplate_1.IgniteUIForReactTemplate {
|
|
5
|
+
constructor() {
|
|
6
|
+
super(__dirname);
|
|
7
|
+
this.components = ["Badge"];
|
|
8
|
+
this.controlGroup = "Data Entry & Display";
|
|
9
|
+
this.listInComponentTemplates = true;
|
|
10
|
+
this.id = "badge";
|
|
11
|
+
this.projectType = "igr-ts";
|
|
12
|
+
this.name = "Badge";
|
|
13
|
+
this.description = "displays a badge with customizable variants and styles.";
|
|
14
|
+
this.packages = ["igniteui-react@~19.5.2"];
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
module.exports = new IgrBadgeTemplate();
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const cli_core_1 = require("@igniteui/cli-core");
|
|
4
|
+
class IgrBadgeComponent extends cli_core_1.BaseComponent {
|
|
5
|
+
constructor() {
|
|
6
|
+
super(__dirname);
|
|
7
|
+
this.name = "Badge";
|
|
8
|
+
this.group = "Data Entry & Display";
|
|
9
|
+
this.description = `displays a badge with customizable variants and styles.`;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
module.exports = new IgrBadgeComponent();
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { beforeAll, expect, test } from 'vitest';
|
|
2
|
+
import { render } from '@testing-library/react';
|
|
3
|
+
import $(ClassName) from './$(path)';
|
|
4
|
+
import { setupTestMocks } from '../../setupTests';
|
|
5
|
+
|
|
6
|
+
beforeAll(() => {
|
|
7
|
+
setupTestMocks();
|
|
8
|
+
})
|
|
9
|
+
|
|
10
|
+
test('renders $(ClassName) component', () => {
|
|
11
|
+
const wrapper = render(<$(ClassName) />);
|
|
12
|
+
expect(wrapper).toBeTruthy();
|
|
13
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import style from './style.module.css';
|
|
2
|
+
import { IgrBanner } from 'igniteui-react';
|
|
3
|
+
import 'igniteui-webcomponents/themes/light/bootstrap.css';
|
|
4
|
+
|
|
5
|
+
export default function $(ClassName)() {
|
|
6
|
+
return (
|
|
7
|
+
<div>
|
|
8
|
+
<h1 className={style.title}>Banner</h1>
|
|
9
|
+
<div className={style.container}>
|
|
10
|
+
<IgrBanner open={true}>
|
|
11
|
+
You are currently not logged in! Please, log into your account first.
|
|
12
|
+
</IgrBanner>
|
|
13
|
+
</div>
|
|
14
|
+
</div>
|
|
15
|
+
);
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const IgniteUIForReactTemplate_1 = require("../../../../../lib/templates/IgniteUIForReactTemplate");
|
|
4
|
+
class IgrBannerTemplate extends IgniteUIForReactTemplate_1.IgniteUIForReactTemplate {
|
|
5
|
+
constructor() {
|
|
6
|
+
super(__dirname);
|
|
7
|
+
this.components = ["Banner"];
|
|
8
|
+
this.controlGroup = "Notifications";
|
|
9
|
+
this.listInComponentTemplates = true;
|
|
10
|
+
this.id = "banner";
|
|
11
|
+
this.projectType = "igr-ts";
|
|
12
|
+
this.name = "Banner";
|
|
13
|
+
this.description = "basic IgrBanner";
|
|
14
|
+
this.packages = ["igniteui-react@~19.5.2"];
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
module.exports = new IgrBannerTemplate();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const cli_core_1 = require("@igniteui/cli-core");
|
|
4
|
+
class IgrBannerComponent extends cli_core_1.BaseComponent {
|
|
5
|
+
constructor() {
|
|
6
|
+
super(__dirname);
|
|
7
|
+
this.name = "Banner";
|
|
8
|
+
this.group = "Notifications";
|
|
9
|
+
this.description = `displays banner component`;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
module.exports = new IgrBannerComponent();
|
|
@@ -11,7 +11,7 @@ class IgrTsBulletGraphTemplate extends IgniteUIForReactTemplate_1.IgniteUIForRea
|
|
|
11
11
|
this.projectType = "igr-ts";
|
|
12
12
|
this.name = "Bullet Graph";
|
|
13
13
|
this.description = `allows for a linear and concise view of measures compared against a scale.`;
|
|
14
|
-
this.packages = ["igniteui-react-gauges@~19.2
|
|
14
|
+
this.packages = ["igniteui-react-gauges@~19.5.2"];
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
module.exports = new IgrTsBulletGraphTemplate();
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { beforeAll, expect, test } from 'vitest';
|
|
2
|
+
import { render } from '@testing-library/react';
|
|
3
|
+
import $(ClassName) from './$(path)';
|
|
4
|
+
import { setupTestMocks } from '../../setupTests';
|
|
5
|
+
|
|
6
|
+
beforeAll(() => {
|
|
7
|
+
setupTestMocks();
|
|
8
|
+
})
|
|
9
|
+
|
|
10
|
+
test('renders $(ClassName) component', () => {
|
|
11
|
+
const wrapper = render(<$(ClassName) />);
|
|
12
|
+
expect(wrapper).toBeTruthy();
|
|
13
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import style from './style.module.css';
|
|
2
|
+
import { IgrButton } from 'igniteui-react';
|
|
3
|
+
import 'igniteui-webcomponents/themes/light/bootstrap.css';
|
|
4
|
+
|
|
5
|
+
export default function $(ClassName)() {
|
|
6
|
+
return (
|
|
7
|
+
<div>
|
|
8
|
+
<h1 className={style.title}>Button</h1>
|
|
9
|
+
<div className={style.container}>
|
|
10
|
+
<IgrButton size="large"><span>Large button</span></IgrButton>
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
13
|
+
);
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const IgniteUIForReactTemplate_1 = require("../../../../../lib/templates/IgniteUIForReactTemplate");
|
|
4
|
+
class IgrButtonTemplate extends IgniteUIForReactTemplate_1.IgniteUIForReactTemplate {
|
|
5
|
+
constructor() {
|
|
6
|
+
super(__dirname);
|
|
7
|
+
this.components = ["Button"];
|
|
8
|
+
this.controlGroup = "Data Entry & Display";
|
|
9
|
+
this.listInComponentTemplates = true;
|
|
10
|
+
this.id = "button";
|
|
11
|
+
this.projectType = "igr-ts";
|
|
12
|
+
this.name = "Button";
|
|
13
|
+
this.description = "displays a button with customizable size and content.";
|
|
14
|
+
this.packages = ["igniteui-react@~19.5.2"];
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
module.exports = new IgrButtonTemplate();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const cli_core_1 = require("@igniteui/cli-core");
|
|
4
|
+
class IgrButtonComponent extends cli_core_1.BaseComponent {
|
|
5
|
+
constructor() {
|
|
6
|
+
super(__dirname);
|
|
7
|
+
this.name = "Button";
|
|
8
|
+
this.group = "Data Entry & Display";
|
|
9
|
+
this.description = `displays a button with customizable size and content.`;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
module.exports = new IgrButtonComponent();
|
package/templates/react/igr-ts/button-group/default/files/src/app/__path__/__filePrefix__.test.tsx
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { beforeAll, expect, test } from 'vitest';
|
|
2
|
+
import { render } from '@testing-library/react';
|
|
3
|
+
import $(ClassName) from './$(path)';
|
|
4
|
+
import { setupTestMocks } from '../../setupTests';
|
|
5
|
+
|
|
6
|
+
beforeAll(() => {
|
|
7
|
+
setupTestMocks();
|
|
8
|
+
})
|
|
9
|
+
|
|
10
|
+
test('renders $(ClassName) component', () => {
|
|
11
|
+
const wrapper = render(<$(ClassName) />);
|
|
12
|
+
expect(wrapper).toBeTruthy();
|
|
13
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import style from './style.module.css';
|
|
2
|
+
import { IgrButtonGroup, IgrToggleButton } from 'igniteui-react';
|
|
3
|
+
import 'igniteui-webcomponents/themes/light/bootstrap.css';
|
|
4
|
+
|
|
5
|
+
export default function $(ClassName)() {
|
|
6
|
+
return (
|
|
7
|
+
<div>
|
|
8
|
+
<h1 className={style.title}>Button Group</h1>
|
|
9
|
+
<div className={style.container}>
|
|
10
|
+
<IgrButtonGroup>
|
|
11
|
+
<IgrToggleButton value="left"><span>Left</span></IgrToggleButton>
|
|
12
|
+
<IgrToggleButton value="center"><span>Center</span></IgrToggleButton>
|
|
13
|
+
<IgrToggleButton value="right"><span>Right</span></IgrToggleButton>
|
|
14
|
+
</IgrButtonGroup>
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
);
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const IgniteUIForReactTemplate_1 = require("../../../../../lib/templates/IgniteUIForReactTemplate");
|
|
4
|
+
class IgrButtonGroupTemplate extends IgniteUIForReactTemplate_1.IgniteUIForReactTemplate {
|
|
5
|
+
constructor() {
|
|
6
|
+
super(__dirname);
|
|
7
|
+
this.components = ["Button group"];
|
|
8
|
+
this.controlGroup = "Data Entry & Display";
|
|
9
|
+
this.listInComponentTemplates = true;
|
|
10
|
+
this.id = "button-group";
|
|
11
|
+
this.projectType = "igr-ts";
|
|
12
|
+
this.name = "Button group";
|
|
13
|
+
this.description = "basic IgrButtonGroup";
|
|
14
|
+
this.packages = ["igniteui-react@~19.5.2"];
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
module.exports = new IgrButtonGroupTemplate();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|