@nova-ui/bits 21.0.1 → 21.0.5

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.
Files changed (60) hide show
  1. package/README.md +44 -40
  2. package/bundles/css/styles-css-variables.css +1 -1
  3. package/bundles/css/styles.css +1 -1
  4. package/fesm2022/nova-ui-bits.mjs +1903 -1273
  5. package/fesm2022/nova-ui-bits.mjs.map +1 -1
  6. package/package.json +1 -1
  7. package/sdk/atoms-playwright/components/checkbox/checkbox.atom.js +1 -1
  8. package/sdk/atoms-playwright/components/checkbox/checkbox.atom.js.map +1 -1
  9. package/sdk/atoms-playwright/components/overlay/overlay.atom.js +10 -1
  10. package/sdk/atoms-playwright/components/overlay/overlay.atom.js.map +1 -1
  11. package/sdk/atoms-playwright/components/paginator/paginator.atom.d.ts +2 -0
  12. package/sdk/atoms-playwright/components/paginator/paginator.atom.js +9 -5
  13. package/sdk/atoms-playwright/components/paginator/paginator.atom.js.map +1 -1
  14. package/sdk/atoms-playwright/components/popup/popup.atom.d.ts +1 -0
  15. package/sdk/atoms-playwright/components/popup/popup.atom.js +4 -2
  16. package/sdk/atoms-playwright/components/popup/popup.atom.js.map +1 -1
  17. package/sdk/atoms-playwright/components/progress/progress.atom.js +1 -1
  18. package/sdk/atoms-playwright/components/progress/progress.atom.js.map +1 -1
  19. package/sdk/atoms-playwright/components/select-v2/base-select-v2.atom.d.ts +17 -0
  20. package/sdk/atoms-playwright/components/select-v2/base-select-v2.atom.js +69 -14
  21. package/sdk/atoms-playwright/components/select-v2/base-select-v2.atom.js.map +1 -1
  22. package/sdk/atoms-playwright/components/switch/switch.atom.js +1 -1
  23. package/sdk/atoms-playwright/components/switch/switch.atom.js.map +1 -1
  24. package/sdk/atoms-playwright/components/table/table.atom.js +6 -10
  25. package/sdk/atoms-playwright/components/table/table.atom.js.map +1 -1
  26. package/sdk/atoms-playwright/components/timepicker/timepicker.atom.js +1 -1
  27. package/sdk/atoms-playwright/components/timepicker/timepicker.atom.js.map +1 -1
  28. package/sdk/atoms-playwright/setup.js +2 -2
  29. package/sdk/atoms-playwright/setup.js.map +1 -1
  30. package/sdk/less/mixins/focus.less +0 -2
  31. package/sdk/less/nui-framework-colors-dark.less +1 -1
  32. package/sdk/less/nui-framework-colors.less +1 -1
  33. package/sdk/less/nui-framework-palette.less +1 -0
  34. package/sdk/schematics/collection.json +17 -17
  35. package/sdk/schematics/filter-group/index.spec.js +2 -4
  36. package/sdk/schematics/filter-group/index.spec.js.map +1 -1
  37. package/sdk/schematics/filter-group/schema.json +42 -42
  38. package/sdk/schematics/filtered-view/index.spec.js +2 -4
  39. package/sdk/schematics/filtered-view/index.spec.js.map +1 -1
  40. package/sdk/schematics/filtered-view/schema.json +128 -128
  41. package/sdk/schematics/layout/index.spec.js +3 -6
  42. package/sdk/schematics/layout/index.spec.js.map +1 -1
  43. package/sdk/schematics/layout/schema.json +62 -62
  44. package/sdk/schematics/list/schema.json +114 -114
  45. package/sdk/schematics/migration.json +2 -2
  46. package/sdk/schematics/ng-add/index.js +6 -5
  47. package/sdk/schematics/ng-add/index.js.map +1 -1
  48. package/sdk/schematics/ng-add/index.spec.js +11 -21
  49. package/sdk/schematics/ng-add/index.spec.js.map +1 -1
  50. package/sdk/schematics/ng-add/schema.json +21 -21
  51. package/sdk/schematics/ng-update/index.spec.js +5 -10
  52. package/sdk/schematics/ng-update/index.spec.js.map +1 -1
  53. package/sdk/schematics/ng-update/schema.json +12 -12
  54. package/sdk/schematics/table/schema.json +106 -106
  55. package/sdk/schematics/utility/schematics-helper.d.ts +1 -1
  56. package/sdk/schematics/utility/schematics-helper.js +1 -1
  57. package/sdk/schematics/utility/schematics-helper.js.map +1 -1
  58. package/sdk/schematics/utility/workspace.js +1 -1
  59. package/sdk/schematics/utility/workspace.js.map +1 -1
  60. package/types/nova-ui-bits.d.ts +243 -46
@@ -1,35 +1,35 @@
1
1
  {
2
2
  "$schema": "/node_modules/@angular-devkit/schematics/collection-schema.json",
3
3
  "schematics": {
4
- "ng-add": {
5
- "description": "Installs and configures the bits library.",
6
- "factory": "./ng-add/index",
7
- "schema": "./ng-add/schema.json"
4
+ "filter-group": {
5
+ "description": "Create a Filter Group",
6
+ "factory": "./filter-group/index",
7
+ "schema": "./filter-group/schema.json"
8
8
  },
9
- "table": {
10
- "description": "Create a table",
11
- "factory": "./table/index",
12
- "schema": "./table/schema.json"
9
+ "filtered-view": {
10
+ "description": "Create a Filtered View",
11
+ "factory": "./filtered-view/index",
12
+ "schema": "./filtered-view/schema.json"
13
13
  },
14
14
  "layout": {
15
15
  "description": "Create a layout",
16
16
  "factory": "./layout/index",
17
17
  "schema": "./layout/schema.json"
18
18
  },
19
- "filtered-view": {
20
- "description": "Create a Filtered View",
21
- "factory": "./filtered-view/index",
22
- "schema": "./filtered-view/schema.json"
23
- },
24
19
  "list": {
25
20
  "description": "Create a list",
26
21
  "factory": "./list/index",
27
22
  "schema": "./list/schema.json"
28
23
  },
29
- "filter-group": {
30
- "description": "Create a Filter Group",
31
- "factory": "./filter-group/index",
32
- "schema": "./filter-group/schema.json"
24
+ "ng-add": {
25
+ "description": "Installs and configures the bits library.",
26
+ "factory": "./ng-add/index",
27
+ "schema": "./ng-add/schema.json"
28
+ },
29
+ "table": {
30
+ "description": "Create a table",
31
+ "factory": "./table/index",
32
+ "schema": "./table/schema.json"
33
33
  }
34
34
  }
35
35
  }
@@ -32,8 +32,7 @@ xdescribe("ng-generate filtered-view 2", () => {
32
32
  newProjectRoot: "projects",
33
33
  version: "17.0.0",
34
34
  };
35
- beforeTree = await runner
36
- .runExternalSchematic("@schematics/angular", "workspace", workspaceOptions);
35
+ beforeTree = await runner.runExternalSchematic("@schematics/angular", "workspace", workspaceOptions);
37
36
  beforeTree.create("package.json", JSON.stringify({
38
37
  dependencies: {},
39
38
  devDependencies: {},
@@ -54,8 +53,7 @@ xdescribe("ng-generate filtered-view 2", () => {
54
53
  newProjectRoot: "",
55
54
  defaultProject: "lib",
56
55
  }));
57
- const afterTree = await runner
58
- .runSchematic("filtered-view", { name: "foo", project: "lib" }, beforeTree);
56
+ const afterTree = await runner.runSchematic("filtered-view", { name: "foo", project: "lib" }, beforeTree);
59
57
  const fileContents = afterTree
60
58
  .read("foo/foo.component.ts")
61
59
  ?.toString("utf-8");
@@ -1 +1 @@
1
- {"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../../src/filter-group/index.spec.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,EAAE;AACF,+EAA+E;AAC/E,4EAA4E;AAC5E,8EAA8E;AAC9E,+EAA+E;AAC/E,8EAA8E;AAC9E,4DAA4D;AAC5D,EAAE;AACF,6EAA6E;AAC7E,uDAAuD;AACvD,EAAE;AACF,6EAA6E;AAC7E,4EAA4E;AAC5E,+EAA+E;AAC/E,0EAA0E;AAC1E,iFAAiF;AACjF,6EAA6E;AAC7E,iBAAiB;;;AAEjB,gEAG4C;AAC5C,mDAA6B;AAE7B,MAAM,cAAc,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,oBAAoB,CAAC,CAAC;AAElE,SAAS,CAAC,6BAA6B,EAAE,GAAG,EAAE;IAC1C,MAAM,MAAM,GAAG,IAAI,6BAAmB,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC;IAErE,IAAI,UAAwB,CAAC,CAAC,sBAAsB;IAEpD,UAAU,CAAC,KAAK,IAAI,EAAE;QAClB,MAAM,gBAAgB,GAAG;YACrB,IAAI,EAAE,WAAW;YACjB,cAAc,EAAE,UAAU;YAC1B,OAAO,EAAE,QAAQ;SACpB,CAAC;QACF,UAAU,GAAG,MAAM,MAAM;aACpB,oBAAoB,CACjB,qBAAqB,EACrB,WAAW,EACX,gBAAgB,CACnB,CAAA;QAEL,UAAU,CAAC,MAAM,CACb,cAAc,EACd,IAAI,CAAC,SAAS,CAAC;YACX,YAAY,EAAE,EAAE;YAChB,eAAe,EAAE,EAAE;SACtB,CAAC,CACL,CAAC;QACF,UAAU,CAAC,MAAM,CAAC,eAAe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OAAO,CAAC,CAAC;QACxB,MAAM,CAAC,YAAY,CAAC,CAAC,SAAS,CAAC,2BAA2B,CAAC,CAAC;QAC5D,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,QAAQ,CAAC,yBAAyB,CAAC,CAAC,CAAC,OAAO,CAC/D,IAAI,CACP,CAAC;IACN,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -3,71 +3,71 @@
3
3
  "$schema": "http://json-schema.org/schema",
4
4
  "additionalProperties": true,
5
5
  "properties": {
6
- "path": {
7
- "type": "string",
8
- "format": "path",
9
- "description": "The path at which to create the component file, relative to the current workspace. Default is a folder with the same name as the component in the project root.",
10
- "visible": false
6
+ "export": {
7
+ "default": false,
8
+ "description": "When true, the declaring NgModule exports this component",
9
+ "type": "boolean"
11
10
  },
12
- "project": {
13
- "type": "string",
14
- "description": "The name of the project",
15
- "$default": {
16
- "$source": "projectName"
17
- }
11
+ "flat": {
12
+ "default": false,
13
+ "description": "When true, creates the new files at the top level of the current project",
14
+ "type": "boolean"
15
+ },
16
+ "lintFix": {
17
+ "default": false,
18
+ "description": "When true, applies lint fixes after generating the component",
19
+ "type": "boolean"
20
+ },
21
+ "module": {
22
+ "alias": "m",
23
+ "description": "The declaring NgModule",
24
+ "type": "string"
18
25
  },
19
26
  "name": {
20
- "type": "string",
21
- "description": "The name of the component",
22
27
  "$default": {
23
28
  "$source": "argv",
24
29
  "index": 0
25
30
  },
31
+ "description": "The name of the component",
32
+ "type": "string",
26
33
  "x-prompt": "What name would you like to use for the component?"
27
34
  },
28
- "prefix": {
35
+ "path": {
36
+ "description": "The path at which to create the component file, relative to the current workspace. Default is a folder with the same name as the component in the project root.",
37
+ "format": "path",
29
38
  "type": "string",
30
- "description": "The prefix to apply to the generated component selector",
39
+ "visible": false
40
+ },
41
+ "prefix": {
31
42
  "alias": "p",
43
+ "description": "The prefix to apply to the generated component selector",
32
44
  "oneOf": [
33
45
  {
34
46
  "maxLength": 0
35
47
  },
36
48
  {
37
- "minLength": 1,
38
- "format": "html-selector"
49
+ "format": "html-selector",
50
+ "minLength": 1
39
51
  }
40
- ]
41
- },
42
- "flat": {
43
- "type": "boolean",
44
- "description": "When true, creates the new files at the top level of the current project",
45
- "default": false
52
+ ],
53
+ "type": "string"
46
54
  },
47
- "skipImport": {
48
- "type": "boolean",
49
- "description": "When true, does not import this component into the owning NgModule",
50
- "default": false
55
+ "project": {
56
+ "$default": {
57
+ "$source": "projectName"
58
+ },
59
+ "description": "The name of the project",
60
+ "type": "string"
51
61
  },
52
62
  "selector": {
53
- "type": "string",
63
+ "description": "The HTML selector to use for this component",
54
64
  "format": "html-selector",
55
- "description": "The HTML selector to use for this component"
56
- },
57
- "module": {
58
- "type": "string",
59
- "description": "The declaring NgModule",
60
- "alias": "m"
65
+ "type": "string"
61
66
  },
62
- "export": {
63
- "type": "boolean",
64
- "default": false,
65
- "description": "When true, the declaring NgModule exports this component"
66
- },
67
- "lintFix": {
68
- "type": "boolean",
67
+ "skipImport": {
69
68
  "default": false,
70
- "description": "When true, applies lint fixes after generating the component"
69
+ "description": "When true, does not import this component into the owning NgModule",
70
+ "type": "boolean"
71
71
  }
72
72
  },
73
73
  "required": ["name"],
@@ -32,8 +32,7 @@ xdescribe("ng-generate filtered-view", () => {
32
32
  newProjectRoot: "projects",
33
33
  version: "17.0.0",
34
34
  };
35
- beforeTree = await runner
36
- .runExternalSchematic("@schematics/angular", "workspace", workspaceOptions);
35
+ beforeTree = await runner.runExternalSchematic("@schematics/angular", "workspace", workspaceOptions);
37
36
  beforeTree.create("package.json", JSON.stringify({
38
37
  dependencies: {},
39
38
  devDependencies: {},
@@ -54,8 +53,7 @@ xdescribe("ng-generate filtered-view", () => {
54
53
  newProjectRoot: "",
55
54
  defaultProject: "lib",
56
55
  }));
57
- const afterTree = await runner
58
- .runSchematic("filtered-view", { name: "foo", project: "lib" }, beforeTree);
56
+ const afterTree = await runner.runSchematic("filtered-view", { name: "foo", project: "lib" }, beforeTree);
59
57
  const fileContents = afterTree
60
58
  .read("foo/foo.component.ts")
61
59
  ?.toString("utf-8");
@@ -1 +1 @@
1
- {"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../../src/filtered-view/index.spec.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,EAAE;AACF,+EAA+E;AAC/E,4EAA4E;AAC5E,8EAA8E;AAC9E,+EAA+E;AAC/E,8EAA8E;AAC9E,4DAA4D;AAC5D,EAAE;AACF,6EAA6E;AAC7E,uDAAuD;AACvD,EAAE;AACF,6EAA6E;AAC7E,4EAA4E;AAC5E,+EAA+E;AAC/E,0EAA0E;AAC1E,iFAAiF;AACjF,6EAA6E;AAC7E,iBAAiB;;;AAEjB,gEAG4C;AAC5C,mDAA6B;AAE7B,MAAM,cAAc,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,oBAAoB,CAAC,CAAC;AAElE,SAAS,CAAC,2BAA2B,EAAE,GAAG,EAAE;IACxC,MAAM,MAAM,GAAG,IAAI,6BAAmB,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC;IAErE,IAAI,UAAwB,CAAC,CAAC,sBAAsB;IAEpD,UAAU,CAAC,KAAK,IAAI,EAAE;QAClB,MAAM,gBAAgB,GAAG;YACrB,IAAI,EAAE,WAAW;YACjB,cAAc,EAAE,UAAU;YAC1B,OAAO,EAAE,QAAQ;SACpB,CAAC;QAEF,UAAU,GAAG,MAAM,MAAM;aACpB,oBAAoB,CACjB,qBAAqB,EACrB,WAAW,EACX,gBAAgB,CACnB,CAAA;QAEL,UAAU,CAAC,MAAM,CACb,cAAc,EACd,IAAI,CAAC,SAAS,CAAC;YACX,YAAY,EAAE,EAAE;YAChB,eAAe,EAAE,EAAE;SACtB,CAAC,CACL,CAAC;QACF,UAAU,CAAC,MAAM,CAAC,eAAe,EAAE,IAAI,CAAC,CAAC;IAC7C,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,YAAY,EAAE,KAAK,IAAI,EAAE;QACxB,UAAU,CAAC,M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,KAAK,CAAC,QAAQ,CAAC,yBAAyB,CAAC,CAAC,CAAC,OAAO,CAC/D,IAAI,CACP,CAAC;IACN,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -3,153 +3,136 @@
3
3
  "$schema": "http://json-schema.org/schema",
4
4
  "additionalProperties": false,
5
5
  "properties": {
6
- "path": {
7
- "type": "string",
8
- "format": "path",
9
- "description": "The path at which to create the component file, relative to the current workspace. Default is a folder with the same name as the component in the project root.",
10
- "visible": false
6
+ "chips": {
7
+ "default": true,
8
+ "description": "When true, incorporates chips for filter groups",
9
+ "type": "boolean"
11
10
  },
12
- "project": {
11
+ "dataSource": {
12
+ "default": "serverSide",
13
+ "enum": ["clientSide", "serverSide", "custom", "none"],
13
14
  "type": "string",
14
- "description": "The name of the project",
15
- "$default": {
16
- "$source": "projectName"
15
+ "x-prompt": {
16
+ "items": [
17
+ {
18
+ "label": "The generated data source will retrieve data locally from a client side source.",
19
+ "value": "clientSide"
20
+ },
21
+ {
22
+ "label": "The generated data source will retrieve data remotely from a server side API.",
23
+ "value": "serverSide"
24
+ },
25
+ {
26
+ "label": "No data source will be generated, allowing you to create one from scratch.",
27
+ "value": "custom"
28
+ },
29
+ {
30
+ "label": "No data source will be generated and no accommodations for a data source, e.g. sorting or search, will be added to the generated code.",
31
+ "value": "none"
32
+ }
33
+ ],
34
+ "message": "What is the source of your data?",
35
+ "type": "list"
17
36
  }
18
37
  },
38
+ "enableSearch": {
39
+ "default": true,
40
+ "description": "When true, enables the search functionality to the list",
41
+ "type": "boolean"
42
+ },
43
+ "enableSort": {
44
+ "default": true,
45
+ "description": "When true, enables the search functionality to the list",
46
+ "type": "boolean"
47
+ },
48
+ "export": {
49
+ "default": false,
50
+ "description": "When true, the declaring NgModule exports this component",
51
+ "type": "boolean"
52
+ },
53
+ "flat": {
54
+ "default": false,
55
+ "description": "When true, creates the new files at the top level of the current project",
56
+ "type": "boolean"
57
+ },
58
+ "lintFix": {
59
+ "default": false,
60
+ "description": "When true, applies lint fixes after generating the component",
61
+ "type": "boolean"
62
+ },
63
+ "module": {
64
+ "alias": "m",
65
+ "description": "The declaring NgModule",
66
+ "type": "string"
67
+ },
19
68
  "name": {
20
- "type": "string",
21
- "description": "The name of the component",
22
69
  "$default": {
23
70
  "$source": "argv",
24
71
  "index": 0
25
72
  },
73
+ "description": "The name of the component",
74
+ "type": "string",
26
75
  "x-prompt": "What name would you like to use for the component?"
27
76
  },
28
- "prefix": {
77
+ "pagingMode": {
78
+ "default": "virtualScroll",
79
+ "description": "Paging mode to be used",
80
+ "enum": ["none", "pagination", "virtualScroll"],
29
81
  "type": "string",
30
- "description": "The prefix to apply to the generated component selector",
82
+ "x-prompt": {
83
+ "items": [
84
+ { "label": "Pagination", "value": "pagination" },
85
+ { "label": "Virtual Scroll", "value": "virtualScroll" },
86
+ { "label": "None", "value": "none" }
87
+ ],
88
+ "message": "What paging mode would you like the filtered result to use?",
89
+ "type": "list"
90
+ }
91
+ },
92
+ "path": {
93
+ "description": "The path at which to create the component file, relative to the current workspace. Default is a folder with the same name as the component in the project root.",
94
+ "format": "path",
95
+ "type": "string",
96
+ "visible": false
97
+ },
98
+ "prefix": {
31
99
  "alias": "p",
100
+ "description": "The prefix to apply to the generated component selector",
32
101
  "oneOf": [
33
102
  {
34
103
  "maxLength": 0
35
104
  },
36
105
  {
37
- "minLength": 1,
38
- "format": "html-selector"
106
+ "format": "html-selector",
107
+ "minLength": 1
39
108
  }
40
- ]
41
- },
42
- "flat": {
43
- "type": "boolean",
44
- "description": "When true, creates the new files at the top level of the current project",
45
- "default": false
46
- },
47
- "skipImport": {
48
- "type": "boolean",
49
- "description": "When true, does not import this component into the owning NgModule",
50
- "default": false
51
- },
52
- "selector": {
53
- "type": "string",
54
- "format": "html-selector",
55
- "description": "The HTML selector to use for this component"
56
- },
57
- "module": {
58
- "type": "string",
59
- "description": "The declaring NgModule",
60
- "alias": "m"
61
- },
62
- "export": {
63
- "type": "boolean",
64
- "default": false,
65
- "description": "When true, the declaring NgModule exports this component"
66
- },
67
- "lintFix": {
68
- "type": "boolean",
69
- "default": false,
70
- "description": "When true, applies lint fixes after generating the component"
71
- },
72
- "chips": {
73
- "type": "boolean",
74
- "default": true,
75
- "description": "When true, incorporates chips for filter groups"
109
+ ],
110
+ "type": "string"
76
111
  },
77
112
  "presentationType": {
78
- "description": "Presentation type to be used for the filter results",
79
- "type": "string",
80
113
  "default": "list",
114
+ "description": "Presentation type to be used for the filter results",
81
115
  "enum": ["list", "table"],
82
- "x-prompt": {
83
- "message": "Which presentation type would you like to use for the filter results?",
84
- "type": "list",
85
- "items": [
86
- { "value": "list", "label": "List" },
87
- { "value": "table", "label": "Table" }
88
- ]
89
- }
90
- },
91
- "pagingMode": {
92
- "description": "Paging mode to be used",
93
116
  "type": "string",
94
- "default": "virtualScroll",
95
- "enum": ["none", "pagination", "virtualScroll"],
96
117
  "x-prompt": {
97
- "message": "What paging mode would you like the filtered result to use?",
98
- "type": "list",
99
118
  "items": [
100
- { "value": "pagination", "label": "Pagination" },
101
- { "value": "virtualScroll", "label": "Virtual Scroll" },
102
- { "value": "none", "label": "None" }
103
- ]
104
- }
105
- },
106
- "dataSource": {
107
- "type": "string",
108
- "default": "serverSide",
109
- "enum": ["clientSide", "serverSide", "custom", "none"],
110
- "x-prompt": {
111
- "message": "What is the source of your data?",
112
- "type": "list",
113
- "items": [
114
- {
115
- "value": "clientSide",
116
- "label": "The generated data source will retrieve data locally from a client side source."
117
- },
118
- {
119
- "value": "serverSide",
120
- "label": "The generated data source will retrieve data remotely from a server side API."
121
- },
122
- {
123
- "value": "custom",
124
- "label": "No data source will be generated, allowing you to create one from scratch."
125
- },
126
- {
127
- "value": "none",
128
- "label": "No data source will be generated and no accommodations for a data source, e.g. sorting or search, will be added to the generated code."
129
- }
130
- ]
119
+ { "label": "List", "value": "list" },
120
+ { "label": "Table", "value": "table" }
121
+ ],
122
+ "message": "Which presentation type would you like to use for the filter results?",
123
+ "type": "list"
131
124
  }
132
125
  },
133
- "enableSearch": {
134
- "type": "boolean",
135
- "description": "When true, enables the search functionality to the list",
136
- "default": true
137
- },
138
- "enableSort": {
139
- "type": "boolean",
140
- "description": "When true, enables the search functionality to the list",
141
- "default": true
142
- },
143
- "virtualScrollStrategy": {
144
- "type": "string",
145
- "default": "standard",
146
- "description": "Strategy used for the virtual scroll",
147
- "enum": ["standard", "custom"]
126
+ "project": {
127
+ "$default": {
128
+ "$source": "projectName"
129
+ },
130
+ "description": "The name of the project",
131
+ "type": "string"
148
132
  },
149
133
  "selectionMode": {
150
- "description": "Selection mode to be used for the list",
151
- "type": "string",
152
134
  "default": "none",
135
+ "description": "Selection mode to be used for the list",
153
136
  "enum": [
154
137
  "none",
155
138
  "multi",
@@ -158,27 +141,44 @@
158
141
  "radio",
159
142
  "radioWithNonRequiredSelection"
160
143
  ],
144
+ "type": "string",
161
145
  "x-prompt": {
162
- "message": "What selection mode would you like to use?",
163
- "type": "list",
164
146
  "items": [
165
- { "value": "none", "label": "None (Selection Disabled)" },
166
- { "value": "multi", "label": "Multi-Select (Checkboxes)" },
167
- { "value": "radio", "label": "Radio Buttons" },
147
+ { "label": "None (Selection Disabled)", "value": "none" },
148
+ { "label": "Multi-Select (Checkboxes)", "value": "multi" },
149
+ { "label": "Radio Buttons", "value": "radio" },
168
150
  {
169
- "value": "radioWithNonRequiredSelection",
170
- "label": "Radio Buttons with Deselection Allowed"
151
+ "label": "Radio Buttons with Deselection Allowed",
152
+ "value": "radioWithNonRequiredSelection"
171
153
  },
172
154
  {
173
- "value": "singleWithRequiredSelection",
174
- "label": "Single-Select with No Radio Buttons"
155
+ "label": "Single-Select with No Radio Buttons",
156
+ "value": "singleWithRequiredSelection"
175
157
  },
176
158
  {
177
- "value": "single",
178
- "label": "Single-Select with No Radio Buttons and Deselection Allowed"
159
+ "label": "Single-Select with No Radio Buttons and Deselection Allowed",
160
+ "value": "single"
179
161
  }
180
- ]
162
+ ],
163
+ "message": "What selection mode would you like to use?",
164
+ "type": "list"
181
165
  }
166
+ },
167
+ "selector": {
168
+ "description": "The HTML selector to use for this component",
169
+ "format": "html-selector",
170
+ "type": "string"
171
+ },
172
+ "skipImport": {
173
+ "default": false,
174
+ "description": "When true, does not import this component into the owning NgModule",
175
+ "type": "boolean"
176
+ },
177
+ "virtualScrollStrategy": {
178
+ "default": "standard",
179
+ "description": "Strategy used for the virtual scroll",
180
+ "enum": ["standard", "custom"],
181
+ "type": "string"
182
182
  }
183
183
  },
184
184
  "required": ["name", "prefix", "presentationType"],
@@ -41,14 +41,11 @@ describe("layout", () => {
41
41
  standalone: false,
42
42
  skipPackageJson: false,
43
43
  };
44
- appTree = await runner
45
- .runExternalSchematic("@schematics/angular", "workspace", workspaceOptions);
46
- appTree = await runner
47
- .runExternalSchematic("@schematics/angular", "application", appOptions, appTree);
44
+ appTree = await runner.runExternalSchematic("@schematics/angular", "workspace", workspaceOptions);
45
+ appTree = await runner.runExternalSchematic("@schematics/angular", "application", appOptions, appTree);
48
46
  });
49
47
  it("adds basic component", async () => {
50
- const afterTree = await runner
51
- .runSchematic("layout", { project: "bar", name: "comp" }, appTree);
48
+ const afterTree = await runner.runSchematic("layout", { project: "bar", name: "comp" }, appTree);
52
49
  const htmlFile = afterTree.readContent("/projects/bar/src/app/comp/comp.component.html");
53
50
  const specFile = afterTree.readContent("/projects/bar/src/app/comp/comp.component.spec.ts");
54
51
  const tsFile = afterTree.readContent("/projects/bar/src/app/comp/comp.component.ts");
@@ -1 +1 @@
1
- {"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../../src/layout/index.spec.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,EAAE;AACF,+EAA+E;AAC/E,4EAA4E;AAC5E,8EAA8E;AAC9E,+EAA+E;AAC/E,8EAA8E;AAC9E,4DAA4D;AAC5D,EAAE;AACF,6EAA6E;AAC7E,uDAAuD;AACvD,EAAE;AACF,6EAA6E;AAC7E,4EAA4E;AAC5E,+EAA+E;AAC/E,0EAA0E;AAC1E,iFAAi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