@genesislcap/foundation-zero 14.172.1 → 14.172.2-PA-1208.2

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.
@@ -21862,7 +21862,15 @@
21862
21862
  "type": {
21863
21863
  "text": "StoryObj"
21864
21864
  },
21865
- "default": "{\n render: ({ name, text, countries, search, autoPosition }) => html`\n <div style=\"min-height: 400px;\">\n <zero-multiselect\n name=\"${name}\"\n auto-position=\"${autoPosition}\"\n .options=\"${countries}\"\n search=\"${search}\"\n >\n ${text}\n </zero-multiselect>\n </div>\n `,\n args: {\n name: 'Countries',\n text: 'Multiselect',\n search: true,\n autoPosition: true,\n countries: [\n 'Afghanistan',\n 'Aland Islands',\n 'Albania',\n 'Algeria',\n 'American Samoa',\n 'Andorra',\n 'Angola',\n 'Anguilla',\n 'Antarctica',\n 'Antigua and Barbuda',\n 'Argentina',\n 'Armenia',\n 'Aruba',\n 'Australia',\n 'Austria',\n 'Azerbaijan',\n 'Bahamas',\n 'Bahrain',\n 'Bangladesh',\n 'Barbados',\n 'Belarus',\n 'Belgium',\n 'Belize',\n 'Benin',\n 'Bermuda',\n 'Bhutan',\n 'Bolivia',\n 'Bonaire, Sint Eustatius and Saba',\n 'Bosnia and Herzegovina',\n 'Botswana',\n 'Bouvet Island',\n 'Brazil',\n 'British Indian Ocean Territory',\n 'Brunei Darussalam',\n 'Bulgaria',\n 'Burkina Faso',\n 'Burundi',\n 'Cambodia',\n 'Cameroon',\n 'Canada',\n 'Cape Verde',\n 'Cayman Islands',\n 'Central African Republic',\n 'Chad',\n ],\n },\n}"
21865
+ "default": "{\n render: ({ name, text, countries, search, autoPosition, creatable }) => html`\n <div style=\"min-height: 400px;\">\n <zero-multiselect\n name=\"${name}\"\n auto-position=\"${autoPosition}\"\n .options=\"${countries}\"\n search=\"${search}\"\n creatable=\"${creatable}\"\n >\n <label slot=\"label\">${text}</label>\n </zero-multiselect>\n </div>\n `,\n args: {\n name: 'Countries',\n text: 'Multiselect',\n search: true,\n autoPosition: true,\n creatable: false,\n countries: countriesList,\n },\n}"
21866
+ },
21867
+ {
21868
+ "kind": "variable",
21869
+ "name": "Creatable",
21870
+ "type": {
21871
+ "text": "StoryObj"
21872
+ },
21873
+ "default": "{\n render: ({ name, text, countries, search, autoPosition, creatable }) => html`\n <div style=\"min-height: 400px;\">\n <zero-multiselect\n name=\"${name}\"\n auto-position=\"${autoPosition}\"\n .options=\"${countries}\"\n search=\"${search}\"\n creatable=\"${creatable}\"\n >\n <label slot=\"label\">${text}</label>\n </zero-multiselect>\n </div>\n `,\n args: {\n name: 'Countries',\n text: 'Creatable Multiselect',\n search: true,\n autoPosition: true,\n creatable: true,\n countries: countriesList,\n },\n}"
21866
21874
  }
21867
21875
  ],
21868
21876
  "exports": [
@@ -21881,6 +21889,14 @@
21881
21889
  "name": "Primary",
21882
21890
  "module": "src/multiselect/multiselect.stories.ts"
21883
21891
  }
21892
+ },
21893
+ {
21894
+ "kind": "js",
21895
+ "name": "Creatable",
21896
+ "declaration": {
21897
+ "name": "Creatable",
21898
+ "module": "src/multiselect/multiselect.stories.ts"
21899
+ }
21884
21900
  }
21885
21901
  ]
21886
21902
  },
@@ -22065,6 +22081,18 @@
22065
22081
  "module": "src/multiselect/multiselect.ts"
22066
22082
  }
22067
22083
  },
22084
+ {
22085
+ "kind": "field",
22086
+ "name": "creatable",
22087
+ "type": {
22088
+ "text": "boolean"
22089
+ },
22090
+ "default": "false",
22091
+ "inheritedFrom": {
22092
+ "name": "Multiselect",
22093
+ "module": "src/multiselect/multiselect.ts"
22094
+ }
22095
+ },
22068
22096
  {
22069
22097
  "kind": "field",
22070
22098
  "name": "async",
@@ -22163,6 +22191,7 @@
22163
22191
  "type": {
22164
22192
  "text": "string"
22165
22193
  },
22194
+ "default": "''",
22166
22195
  "inheritedFrom": {
22167
22196
  "name": "Multiselect",
22168
22197
  "module": "src/multiselect/multiselect.ts"
@@ -22434,6 +22463,15 @@
22434
22463
  "module": "src/multiselect/multiselect.ts"
22435
22464
  }
22436
22465
  },
22466
+ {
22467
+ "kind": "field",
22468
+ "name": "showCreatable",
22469
+ "readonly": true,
22470
+ "inheritedFrom": {
22471
+ "name": "Multiselect",
22472
+ "module": "src/multiselect/multiselect.ts"
22473
+ }
22474
+ },
22437
22475
  {
22438
22476
  "kind": "method",
22439
22477
  "name": "isOptionSelected",
@@ -22495,6 +22533,14 @@
22495
22533
  "module": "src/multiselect/multiselect.ts"
22496
22534
  }
22497
22535
  },
22536
+ {
22537
+ "kind": "method",
22538
+ "name": "findExactMatchOptions",
22539
+ "inheritedFrom": {
22540
+ "name": "Multiselect",
22541
+ "module": "src/multiselect/multiselect.ts"
22542
+ }
22543
+ },
22498
22544
  {
22499
22545
  "kind": "method",
22500
22546
  "name": "setFilter",
@@ -22503,6 +22549,14 @@
22503
22549
  "module": "src/multiselect/multiselect.ts"
22504
22550
  }
22505
22551
  },
22552
+ {
22553
+ "kind": "method",
22554
+ "name": "addOption",
22555
+ "inheritedFrom": {
22556
+ "name": "Multiselect",
22557
+ "module": "src/multiselect/multiselect.ts"
22558
+ }
22559
+ },
22506
22560
  {
22507
22561
  "kind": "method",
22508
22562
  "name": "asyncSetFilter",
@@ -22864,6 +22918,28 @@
22864
22918
  "module": "src/notification-listener/notification-listener.ts"
22865
22919
  }
22866
22920
  },
22921
+ {
22922
+ "kind": "method",
22923
+ "name": "showNotificationToast",
22924
+ "privacy": "protected",
22925
+ "return": {
22926
+ "type": {
22927
+ "text": "void"
22928
+ }
22929
+ },
22930
+ "parameters": [
22931
+ {
22932
+ "name": "row",
22933
+ "type": {
22934
+ "text": "NotificationDataRow"
22935
+ }
22936
+ }
22937
+ ],
22938
+ "inheritedFrom": {
22939
+ "name": "NotificationListener",
22940
+ "module": "src/notification-listener/notification-listener.ts"
22941
+ }
22942
+ },
22867
22943
  {
22868
22944
  "kind": "field",
22869
22945
  "name": "_presentation",
@@ -2,4 +2,5 @@ import type { Meta, StoryObj } from '@storybook/web-components';
2
2
  declare const meta: Meta;
3
3
  export default meta;
4
4
  export declare const Primary: StoryObj;
5
+ export declare const Creatable: StoryObj;
5
6
  //# sourceMappingURL=multiselect.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"multiselect.stories.d.ts","sourceRoot":"","sources":["../../../src/multiselect/multiselect.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAGhE,QAAA,MAAM,IAAI,EAAE,IAGX,CAAC;AACF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,EAAE,QAiErB,CAAC"}
1
+ {"version":3,"file":"multiselect.stories.d.ts","sourceRoot":"","sources":["../../../src/multiselect/multiselect.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAGhE,QAAA,MAAM,IAAI,EAAE,IAGX,CAAC;AACF,eAAe,IAAI,CAAC;AAgDpB,eAAO,MAAM,OAAO,EAAE,QAsBrB,CAAC;AACF,eAAO,MAAM,SAAS,EAAE,QAsBvB,CAAC"}
@@ -4,16 +4,63 @@ const meta = {
4
4
  component: 'zero-multiselect',
5
5
  };
6
6
  export default meta;
7
+ const countriesList = [
8
+ 'Afghanistan',
9
+ 'Aland Islands',
10
+ 'Albania',
11
+ 'Algeria',
12
+ 'American Samoa',
13
+ 'Andorra',
14
+ 'Angola',
15
+ 'Anguilla',
16
+ 'Antarctica',
17
+ 'Antigua and Barbuda',
18
+ 'Argentina',
19
+ 'Armenia',
20
+ 'Aruba',
21
+ 'Australia',
22
+ 'Austria',
23
+ 'Azerbaijan',
24
+ 'Bahamas',
25
+ 'Bahrain',
26
+ 'Bangladesh',
27
+ 'Barbados',
28
+ 'Belarus',
29
+ 'Belgium',
30
+ 'Belize',
31
+ 'Benin',
32
+ 'Bermuda',
33
+ 'Bhutan',
34
+ 'Bolivia',
35
+ 'Bonaire, Sint Eustatius and Saba',
36
+ 'Bosnia and Herzegovina',
37
+ 'Botswana',
38
+ 'Bouvet Island',
39
+ 'Brazil',
40
+ 'British Indian Ocean Territory',
41
+ 'Brunei Darussalam',
42
+ 'Bulgaria',
43
+ 'Burkina Faso',
44
+ 'Burundi',
45
+ 'Cambodia',
46
+ 'Cameroon',
47
+ 'Canada',
48
+ 'Cape Verde',
49
+ 'Cayman Islands',
50
+ 'Central African Republic',
51
+ 'Chad',
52
+ ];
7
53
  export const Primary = {
8
- render: ({ name, text, countries, search, autoPosition }) => html `
54
+ render: ({ name, text, countries, search, autoPosition, creatable }) => html `
9
55
  <div style="min-height: 400px;">
10
56
  <zero-multiselect
11
57
  name="${name}"
12
58
  auto-position="${autoPosition}"
13
59
  .options="${countries}"
14
60
  search="${search}"
61
+ creatable="${creatable}"
15
62
  >
16
- ${text}
63
+ <label slot="label">${text}</label>
17
64
  </zero-multiselect>
18
65
  </div>
19
66
  `,
@@ -22,51 +69,30 @@ export const Primary = {
22
69
  text: 'Multiselect',
23
70
  search: true,
24
71
  autoPosition: true,
25
- countries: [
26
- 'Afghanistan',
27
- 'Aland Islands',
28
- 'Albania',
29
- 'Algeria',
30
- 'American Samoa',
31
- 'Andorra',
32
- 'Angola',
33
- 'Anguilla',
34
- 'Antarctica',
35
- 'Antigua and Barbuda',
36
- 'Argentina',
37
- 'Armenia',
38
- 'Aruba',
39
- 'Australia',
40
- 'Austria',
41
- 'Azerbaijan',
42
- 'Bahamas',
43
- 'Bahrain',
44
- 'Bangladesh',
45
- 'Barbados',
46
- 'Belarus',
47
- 'Belgium',
48
- 'Belize',
49
- 'Benin',
50
- 'Bermuda',
51
- 'Bhutan',
52
- 'Bolivia',
53
- 'Bonaire, Sint Eustatius and Saba',
54
- 'Bosnia and Herzegovina',
55
- 'Botswana',
56
- 'Bouvet Island',
57
- 'Brazil',
58
- 'British Indian Ocean Territory',
59
- 'Brunei Darussalam',
60
- 'Bulgaria',
61
- 'Burkina Faso',
62
- 'Burundi',
63
- 'Cambodia',
64
- 'Cameroon',
65
- 'Canada',
66
- 'Cape Verde',
67
- 'Cayman Islands',
68
- 'Central African Republic',
69
- 'Chad',
70
- ],
72
+ creatable: false,
73
+ countries: countriesList,
74
+ },
75
+ };
76
+ export const Creatable = {
77
+ render: ({ name, text, countries, search, autoPosition, creatable }) => html `
78
+ <div style="min-height: 400px;">
79
+ <zero-multiselect
80
+ name="${name}"
81
+ auto-position="${autoPosition}"
82
+ .options="${countries}"
83
+ search="${search}"
84
+ creatable="${creatable}"
85
+ >
86
+ <label slot="label">${text}</label>
87
+ </zero-multiselect>
88
+ </div>
89
+ `,
90
+ args: {
91
+ name: 'Countries',
92
+ text: 'Creatable Multiselect',
93
+ search: true,
94
+ autoPosition: true,
95
+ creatable: true,
96
+ countries: countriesList,
71
97
  },
72
98
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-zero",
3
3
  "description": "Genesis Foundation Zero Design System",
4
- "version": "14.172.1",
4
+ "version": "14.172.2-PA-1208.2",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -67,12 +67,12 @@
67
67
  },
68
68
  "devDependencies": {
69
69
  "@genesiscommunitysuccess/analyzer-import-alias-plugin": "^4.0.0",
70
- "@genesislcap/genx": "14.172.1",
71
- "@genesislcap/rollup-builder": "14.172.1",
72
- "@genesislcap/ts-builder": "14.172.1",
73
- "@genesislcap/uvu-playwright-builder": "14.172.1",
74
- "@genesislcap/vite-builder": "14.172.1",
75
- "@genesislcap/webpack-builder": "14.172.1",
70
+ "@genesislcap/genx": "14.172.2-PA-1208.2",
71
+ "@genesislcap/rollup-builder": "14.172.2-PA-1208.2",
72
+ "@genesislcap/ts-builder": "14.172.2-PA-1208.2",
73
+ "@genesislcap/uvu-playwright-builder": "14.172.2-PA-1208.2",
74
+ "@genesislcap/vite-builder": "14.172.2-PA-1208.2",
75
+ "@genesislcap/webpack-builder": "14.172.2-PA-1208.2",
76
76
  "@storybook/addon-coverage": "^1.0.1",
77
77
  "@storybook/addon-essentials": "^8.0.0",
78
78
  "@storybook/addon-links": "^8.0.0",
@@ -89,10 +89,10 @@
89
89
  "storybook": "^8.0.0"
90
90
  },
91
91
  "dependencies": {
92
- "@genesislcap/foundation-comms": "14.172.1",
93
- "@genesislcap/foundation-logger": "14.172.1",
94
- "@genesislcap/foundation-ui": "14.172.1",
95
- "@genesislcap/foundation-utils": "14.172.1",
92
+ "@genesislcap/foundation-comms": "14.172.2-PA-1208.2",
93
+ "@genesislcap/foundation-logger": "14.172.2-PA-1208.2",
94
+ "@genesislcap/foundation-ui": "14.172.2-PA-1208.2",
95
+ "@genesislcap/foundation-utils": "14.172.2-PA-1208.2",
96
96
  "@microsoft/fast-colors": "^5.3.1",
97
97
  "@microsoft/fast-components": "^2.30.6",
98
98
  "@microsoft/fast-element": "^1.12.0",
@@ -109,5 +109,5 @@
109
109
  "access": "public"
110
110
  },
111
111
  "customElements": "dist/custom-elements.json",
112
- "gitHead": "66c4431f6b31fbed5f64e9e17f413c6c8c1a5c5b"
112
+ "gitHead": "e455ebce63459d464d2e46c9b6f5061903fbfa20"
113
113
  }