@genesislcap/foundation-zero 14.176.1-alpha-6ef4895.0 → 14.177.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.
@@ -21861,16 +21861,42 @@
21861
21861
  "name": "Primary",
21862
21862
  "type": {
21863
21863
  "text": "StoryObj"
21864
- },
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}"
21864
+ }
21865
+ },
21866
+ {
21867
+ "kind": "variable",
21868
+ "name": "Disabled",
21869
+ "type": {
21870
+ "text": "StoryObj"
21871
+ }
21872
+ },
21873
+ {
21874
+ "kind": "variable",
21875
+ "name": "DisabledOptions",
21876
+ "type": {
21877
+ "text": "StoryObj"
21878
+ }
21879
+ },
21880
+ {
21881
+ "kind": "variable",
21882
+ "name": "AutoPosition",
21883
+ "type": {
21884
+ "text": "StoryObj"
21885
+ }
21866
21886
  },
21867
21887
  {
21868
21888
  "kind": "variable",
21869
21889
  "name": "Creatable",
21870
21890
  "type": {
21871
21891
  "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}"
21892
+ }
21893
+ },
21894
+ {
21895
+ "kind": "variable",
21896
+ "name": "ContainsSearch",
21897
+ "type": {
21898
+ "text": "StoryObj"
21899
+ }
21874
21900
  }
21875
21901
  ],
21876
21902
  "exports": [
@@ -21890,6 +21916,30 @@
21890
21916
  "module": "src/multiselect/multiselect.stories.ts"
21891
21917
  }
21892
21918
  },
21919
+ {
21920
+ "kind": "js",
21921
+ "name": "Disabled",
21922
+ "declaration": {
21923
+ "name": "Disabled",
21924
+ "module": "src/multiselect/multiselect.stories.ts"
21925
+ }
21926
+ },
21927
+ {
21928
+ "kind": "js",
21929
+ "name": "DisabledOptions",
21930
+ "declaration": {
21931
+ "name": "DisabledOptions",
21932
+ "module": "src/multiselect/multiselect.stories.ts"
21933
+ }
21934
+ },
21935
+ {
21936
+ "kind": "js",
21937
+ "name": "AutoPosition",
21938
+ "declaration": {
21939
+ "name": "AutoPosition",
21940
+ "module": "src/multiselect/multiselect.stories.ts"
21941
+ }
21942
+ },
21893
21943
  {
21894
21944
  "kind": "js",
21895
21945
  "name": "Creatable",
@@ -21897,6 +21947,14 @@
21897
21947
  "name": "Creatable",
21898
21948
  "module": "src/multiselect/multiselect.stories.ts"
21899
21949
  }
21950
+ },
21951
+ {
21952
+ "kind": "js",
21953
+ "name": "ContainsSearch",
21954
+ "declaration": {
21955
+ "name": "ContainsSearch",
21956
+ "module": "src/multiselect/multiselect.stories.ts"
21957
+ }
21900
21958
  }
21901
21959
  ]
21902
21960
  },
@@ -22006,6 +22064,19 @@
22006
22064
  "name": "Multiselect",
22007
22065
  "module": "src/multiselect/multiselect.ts"
22008
22066
  }
22067
+ },
22068
+ {
22069
+ "name": "filter-by-contains",
22070
+ "type": {
22071
+ "text": "boolean"
22072
+ },
22073
+ "default": "false",
22074
+ "description": "Tells if the filter uses a contains; if FALSE, will filter using a starts-with check",
22075
+ "fieldName": "filterByContains",
22076
+ "inheritedFrom": {
22077
+ "name": "Multiselect",
22078
+ "module": "src/multiselect/multiselect.ts"
22079
+ }
22009
22080
  }
22010
22081
  ],
22011
22082
  "members": [
@@ -22117,6 +22188,19 @@
22117
22188
  "module": "src/multiselect/multiselect.ts"
22118
22189
  }
22119
22190
  },
22191
+ {
22192
+ "kind": "field",
22193
+ "name": "filterByContains",
22194
+ "type": {
22195
+ "text": "boolean"
22196
+ },
22197
+ "default": "false",
22198
+ "description": "Tells if the filter uses a contains; if FALSE, will filter using a starts-with check",
22199
+ "inheritedFrom": {
22200
+ "name": "Multiselect",
22201
+ "module": "src/multiselect/multiselect.ts"
22202
+ }
22203
+ },
22120
22204
  {
22121
22205
  "kind": "method",
22122
22206
  "name": "debounceChanged",
@@ -39449,7 +39533,7 @@
39449
39533
  {
39450
39534
  "name": "log-level",
39451
39535
  "type": {
39452
- "text": "number"
39536
+ "text": "LogLevel"
39453
39537
  },
39454
39538
  "description": "Allows users to control the logging level of the network monitor via the component.",
39455
39539
  "fieldName": "logLevel",
@@ -39635,7 +39719,7 @@
39635
39719
  "kind": "field",
39636
39720
  "name": "logLevel",
39637
39721
  "type": {
39638
- "text": "number"
39722
+ "text": "LogLevel"
39639
39723
  },
39640
39724
  "description": "Allows users to control the logging level of the network monitor via the component.",
39641
39725
  "inheritedFrom": {
@@ -39658,7 +39742,7 @@
39658
39742
  "type": {
39659
39743
  "text": "SystemHealthStatus"
39660
39744
  },
39661
- "default": "{\n isOnline: true,\n isHealthy: true,\n socket: {},\n resources: {},\n }",
39745
+ "default": "{\n isOnline: true,\n isHealthy: true,\n browserInformation: {},\n socket: {},\n resources: {},\n }",
39662
39746
  "description": "Last known system health status.",
39663
39747
  "inheritedFrom": {
39664
39748
  "name": "SystemHealthOverlay",
@@ -2,5 +2,9 @@ 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 Disabled: StoryObj;
6
+ export declare const DisabledOptions: StoryObj;
7
+ export declare const AutoPosition: StoryObj;
5
8
  export declare const Creatable: StoryObj;
9
+ export declare const ContainsSearch: StoryObj;
6
10
  //# 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;AAgDpB,eAAO,MAAM,OAAO,EAAE,QAsBrB,CAAC;AACF,eAAO,MAAM,SAAS,EAAE,QAsBvB,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;AA0IpB,eAAO,MAAM,OAAO,EAAE,QAA6C,CAAC;AACpE,eAAO,MAAM,QAAQ,EAAE,QAA0D,CAAC;AAElF,eAAO,MAAM,eAAe,EAAE,QAG5B,CAAC;AAEH,eAAO,MAAM,YAAY,EAAE,QAIzB,CAAC;AAEH,eAAO,MAAM,SAAS,EAAE,QAKtB,CAAC;AAEH,eAAO,MAAM,cAAc,EAAE,QAG3B,CAAC"}
@@ -50,49 +50,93 @@ const countriesList = [
50
50
  'Central African Republic',
51
51
  'Chad',
52
52
  ];
53
- export const Primary = {
54
- render: ({ name, text, countries, search, autoPosition, creatable }) => html `
55
- <div style="min-height: 400px;">
56
- <zero-multiselect
57
- name="${name}"
58
- auto-position="${autoPosition}"
59
- .options="${countries}"
60
- search="${search}"
61
- creatable="${creatable}"
62
- >
63
- <label slot="label">${text}</label>
64
- </zero-multiselect>
65
- </div>
66
- `,
67
- args: {
68
- name: 'Countries',
69
- text: 'Multiselect',
70
- search: true,
71
- autoPosition: true,
72
- creatable: false,
73
- countries: countriesList,
53
+ const disabledCountriesExample = [
54
+ {
55
+ value: 'AFG',
56
+ label: 'Afghanistan',
57
+ disabled: false,
74
58
  },
75
- };
76
- export const Creatable = {
77
- render: ({ name, text, countries, search, autoPosition, creatable }) => html `
59
+ {
60
+ value: 'ALA',
61
+ label: 'Aland Islands',
62
+ },
63
+ {
64
+ value: 'ALB',
65
+ label: 'Albania',
66
+ disabled: false,
67
+ },
68
+ {
69
+ value: 'ALG',
70
+ label: 'Algeria',
71
+ disabled: false,
72
+ },
73
+ {
74
+ value: 'AND',
75
+ label: 'Andorra',
76
+ disabled: true,
77
+ },
78
+ {
79
+ value: 'ARG',
80
+ label: 'Argentina',
81
+ disabled: true,
82
+ },
83
+ {
84
+ value: 'ARM',
85
+ label: 'Armenia',
86
+ disabled: false,
87
+ },
88
+ {
89
+ value: 'AUS',
90
+ label: 'Australia',
91
+ disabled: false,
92
+ },
93
+ {
94
+ value: 'AUT',
95
+ label: 'Austria',
96
+ disabled: true,
97
+ },
98
+ {
99
+ value: 'AZE',
100
+ label: 'Azerbaijan',
101
+ disabled: false,
102
+ },
103
+ ];
104
+ const makeStory = (args) => ({
105
+ render: ({ name, text, countries, search, disabled, creatable, autoPosition, filterByContains, }) => html `
78
106
  <div style="min-height: 400px;">
79
107
  <zero-multiselect
80
108
  name="${name}"
81
- auto-position="${autoPosition}"
82
109
  .options="${countries}"
110
+ auto-position="${autoPosition}"
83
111
  search="${search}"
112
+ disabled="${disabled}"
84
113
  creatable="${creatable}"
114
+ filter-by-contains="${filterByContains}"
85
115
  >
86
116
  <label slot="label">${text}</label>
87
117
  </zero-multiselect>
88
118
  </div>
89
119
  `,
90
- args: {
91
- name: 'Countries',
92
- text: 'Creatable Multiselect',
93
- search: true,
94
- autoPosition: true,
95
- creatable: true,
96
- countries: countriesList,
97
- },
98
- };
120
+ args: Object.assign({ name: 'Countries', search: true, disabled: false, countries: countriesList, autoPosition: true, creatable: false, filterByContains: false }, args),
121
+ });
122
+ export const Primary = makeStory({ text: 'MultiSelect' });
123
+ export const Disabled = makeStory({ text: 'Disabled', disabled: true });
124
+ export const DisabledOptions = makeStory({
125
+ text: 'Disabled Options',
126
+ countries: disabledCountriesExample,
127
+ });
128
+ export const AutoPosition = makeStory({
129
+ text: 'Disabled Auto Position',
130
+ countries: disabledCountriesExample,
131
+ autoPosition: false,
132
+ });
133
+ export const Creatable = makeStory({
134
+ text: 'Creatable',
135
+ countries: disabledCountriesExample,
136
+ autoPosition: false,
137
+ creatable: true,
138
+ });
139
+ export const ContainsSearch = makeStory({
140
+ text: 'Search By Contains',
141
+ filterByContains: true,
142
+ });
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.176.1-alpha-6ef4895.0",
4
+ "version": "14.177.0",
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.176.1-alpha-6ef4895.0",
71
- "@genesislcap/rollup-builder": "14.176.1-alpha-6ef4895.0",
72
- "@genesislcap/ts-builder": "14.176.1-alpha-6ef4895.0",
73
- "@genesislcap/uvu-playwright-builder": "14.176.1-alpha-6ef4895.0",
74
- "@genesislcap/vite-builder": "14.176.1-alpha-6ef4895.0",
75
- "@genesislcap/webpack-builder": "14.176.1-alpha-6ef4895.0",
70
+ "@genesislcap/genx": "14.177.0",
71
+ "@genesislcap/rollup-builder": "14.177.0",
72
+ "@genesislcap/ts-builder": "14.177.0",
73
+ "@genesislcap/uvu-playwright-builder": "14.177.0",
74
+ "@genesislcap/vite-builder": "14.177.0",
75
+ "@genesislcap/webpack-builder": "14.177.0",
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.176.1-alpha-6ef4895.0",
93
- "@genesislcap/foundation-logger": "14.176.1-alpha-6ef4895.0",
94
- "@genesislcap/foundation-ui": "14.176.1-alpha-6ef4895.0",
95
- "@genesislcap/foundation-utils": "14.176.1-alpha-6ef4895.0",
92
+ "@genesislcap/foundation-comms": "14.177.0",
93
+ "@genesislcap/foundation-logger": "14.177.0",
94
+ "@genesislcap/foundation-ui": "14.177.0",
95
+ "@genesislcap/foundation-utils": "14.177.0",
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": "7576777c410789f2699b2522129c8a206f3ccacf"
112
+ "gitHead": "b3c0ce3e0fa58bae562c2c9bec96beee6a4a2ed4"
113
113
  }