@genesislcap/rapid-design-system 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.
@@ -18401,40 +18401,42 @@
18401
18401
  "name": "Primary",
18402
18402
  "type": {
18403
18403
  "text": "StoryObj"
18404
- },
18405
- "default": "{\n render: ({ name, text, countries, search, disabled, creatable }) => html`\n <div style=\"min-height: 400px;\">\n <rapid-multiselect\n name=\"${name}\"\n .options=\"${countries}\"\n search=\"${search}\"\n disabled=\"${disabled}\"\n creatable=\"${creatable}\"\n >\n <label slot=\"label\">${text}</label>\n </rapid-multiselect>\n </div>\n `,\n args: {\n name: 'Countries',\n text: 'Multiselect',\n search: true,\n disabled: false,\n countries: countriesList,\n autoPosition: true,\n creatable: false,\n },\n}"
18404
+ }
18406
18405
  },
18407
18406
  {
18408
18407
  "kind": "variable",
18409
18408
  "name": "Disabled",
18410
18409
  "type": {
18411
18410
  "text": "StoryObj"
18412
- },
18413
- "default": "{\n render: ({ name, text, countries, search, disabled, creatable }) => html`\n <div style=\"min-height: 400px;\">\n <rapid-multiselect\n name=\"${name}\"\n .options=\"${countries}\"\n search=\"${search}\"\n disabled=\"${disabled}\"\n creatable=\"${creatable}\"\n >\n <label slot=\"label\">${text}</label>\n </rapid-multiselect>\n </div>\n `,\n args: {\n name: 'Countries',\n text: 'Disabled',\n search: true,\n countries: countriesList,\n disabled: true,\n autoPosition: true,\n creatable: false,\n },\n}"
18411
+ }
18414
18412
  },
18415
18413
  {
18416
18414
  "kind": "variable",
18417
18415
  "name": "DisabledOptions",
18418
18416
  "type": {
18419
18417
  "text": "StoryObj"
18420
- },
18421
- "default": "{\n render: ({ name, text, countries, search, creatable }) => html`\n <div style=\"min-height: 400px;\">\n <rapid-multiselect\n name=\"${name}\"\n .options=\"${countries}\"\n search=\"${search}\"\n creatable=\"${creatable}\"\n >\n <label slot=\"label\">${text}</label>\n </rapid-multiselect>\n </div>\n `,\n args: {\n name: 'Countries',\n text: 'Disabled Options',\n search: true,\n countries: disabledCountriesExample,\n creatable: false,\n },\n}"
18418
+ }
18422
18419
  },
18423
18420
  {
18424
18421
  "kind": "variable",
18425
18422
  "name": "AutoPosition",
18426
18423
  "type": {
18427
18424
  "text": "StoryObj"
18428
- },
18429
- "default": "{\n render: ({ name, text, countries, search, autoPosition, creatable }) => html`\n <div style=\"min-height: 400px;\">\n <rapid-multiselect\n name=\"${name}\"\n .options=\"${countries}\"\n auto-position=\"${autoPosition}\"\n search=\"${search}\"\n creatable=\"${creatable}\"\n >\n <label slot=\"label\">${text}</label>\n </rapid-multiselect>\n </div>\n `,\n args: {\n name: 'Countries',\n text: 'Disabled Auto Position',\n search: true,\n countries: disabledCountriesExample,\n autoPosition: false,\n creatable: false,\n },\n}"
18425
+ }
18430
18426
  },
18431
18427
  {
18432
18428
  "kind": "variable",
18433
18429
  "name": "Creatable",
18434
18430
  "type": {
18435
18431
  "text": "StoryObj"
18436
- },
18437
- "default": "{\n render: ({ name, text, countries, search, autoPosition, creatable }) => html`\n <div style=\"min-height: 400px;\">\n <rapid-multiselect\n name=\"${name}\"\n .options=\"${countries}\"\n auto-position=\"${autoPosition}\"\n search=\"${search}\"\n creatable=\"${creatable}\"\n >\n <label slot=\"label\">${text}</label>\n </rapid-multiselect>\n </div>\n `,\n args: {\n name: 'Countries',\n text: 'Creatable',\n search: true,\n countries: disabledCountriesExample,\n autoPosition: false,\n creatable: true,\n },\n}"
18432
+ }
18433
+ },
18434
+ {
18435
+ "kind": "variable",
18436
+ "name": "ContainsSearch",
18437
+ "type": {
18438
+ "text": "StoryObj"
18439
+ }
18438
18440
  }
18439
18441
  ],
18440
18442
  "exports": [
@@ -18485,6 +18487,14 @@
18485
18487
  "name": "Creatable",
18486
18488
  "module": "src/multiselect/multiselect.stories.ts"
18487
18489
  }
18490
+ },
18491
+ {
18492
+ "kind": "js",
18493
+ "name": "ContainsSearch",
18494
+ "declaration": {
18495
+ "name": "ContainsSearch",
18496
+ "module": "src/multiselect/multiselect.stories.ts"
18497
+ }
18488
18498
  }
18489
18499
  ]
18490
18500
  },
@@ -18594,6 +18604,19 @@
18594
18604
  "name": "Multiselect",
18595
18605
  "module": "src/multiselect/multiselect.ts"
18596
18606
  }
18607
+ },
18608
+ {
18609
+ "name": "filter-by-contains",
18610
+ "type": {
18611
+ "text": "boolean"
18612
+ },
18613
+ "default": "false",
18614
+ "description": "Tells if the filter uses a contains; if FALSE, will filter using a starts-with check",
18615
+ "fieldName": "filterByContains",
18616
+ "inheritedFrom": {
18617
+ "name": "Multiselect",
18618
+ "module": "src/multiselect/multiselect.ts"
18619
+ }
18597
18620
  }
18598
18621
  ],
18599
18622
  "members": [
@@ -18705,6 +18728,19 @@
18705
18728
  "module": "src/multiselect/multiselect.ts"
18706
18729
  }
18707
18730
  },
18731
+ {
18732
+ "kind": "field",
18733
+ "name": "filterByContains",
18734
+ "type": {
18735
+ "text": "boolean"
18736
+ },
18737
+ "default": "false",
18738
+ "description": "Tells if the filter uses a contains; if FALSE, will filter using a starts-with check",
18739
+ "inheritedFrom": {
18740
+ "name": "Multiselect",
18741
+ "module": "src/multiselect/multiselect.ts"
18742
+ }
18743
+ },
18708
18744
  {
18709
18745
  "kind": "method",
18710
18746
  "name": "debounceChanged",
@@ -6,4 +6,5 @@ export declare const Disabled: StoryObj;
6
6
  export declare const DisabledOptions: StoryObj;
7
7
  export declare const AutoPosition: StoryObj;
8
8
  export declare const Creatable: StoryObj;
9
+ export declare const ContainsSearch: StoryObj;
9
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;AAqGpB,eAAO,MAAM,OAAO,EAAE,QAuBrB,CAAC;AACF,eAAO,MAAM,QAAQ,EAAE,QAuBtB,CAAC;AACF,eAAO,MAAM,eAAe,EAAE,QAoB7B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,QAsB1B,CAAC;AAEF,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"}
@@ -101,118 +101,42 @@ const disabledCountriesExample = [
101
101
  disabled: false,
102
102
  },
103
103
  ];
104
- export const Primary = {
105
- render: ({ name, text, countries, search, disabled, creatable }) => html `
106
- <div style="min-height: 400px;">
107
- <rapid-multiselect
108
- name="${name}"
109
- .options="${countries}"
110
- search="${search}"
111
- disabled="${disabled}"
112
- creatable="${creatable}"
113
- >
114
- <label slot="label">${text}</label>
115
- </rapid-multiselect>
116
- </div>
117
- `,
118
- args: {
119
- name: 'Countries',
120
- text: 'Multiselect',
121
- search: true,
122
- disabled: false,
123
- countries: countriesList,
124
- autoPosition: true,
125
- creatable: false,
126
- },
127
- };
128
- export const Disabled = {
129
- render: ({ name, text, countries, search, disabled, creatable }) => html `
130
- <div style="min-height: 400px;">
131
- <rapid-multiselect
132
- name="${name}"
133
- .options="${countries}"
134
- search="${search}"
135
- disabled="${disabled}"
136
- creatable="${creatable}"
137
- >
138
- <label slot="label">${text}</label>
139
- </rapid-multiselect>
140
- </div>
141
- `,
142
- args: {
143
- name: 'Countries',
144
- text: 'Disabled',
145
- search: true,
146
- countries: countriesList,
147
- disabled: true,
148
- autoPosition: true,
149
- creatable: false,
150
- },
151
- };
152
- export const DisabledOptions = {
153
- render: ({ name, text, countries, search, creatable }) => html `
154
- <div style="min-height: 400px;">
155
- <rapid-multiselect
156
- name="${name}"
157
- .options="${countries}"
158
- search="${search}"
159
- creatable="${creatable}"
160
- >
161
- <label slot="label">${text}</label>
162
- </rapid-multiselect>
163
- </div>
164
- `,
165
- args: {
166
- name: 'Countries',
167
- text: 'Disabled Options',
168
- search: true,
169
- countries: disabledCountriesExample,
170
- creatable: false,
171
- },
172
- };
173
- export const AutoPosition = {
174
- render: ({ name, text, countries, search, autoPosition, creatable }) => html `
175
- <div style="min-height: 400px;">
176
- <rapid-multiselect
177
- name="${name}"
178
- .options="${countries}"
179
- auto-position="${autoPosition}"
180
- search="${search}"
181
- creatable="${creatable}"
182
- >
183
- <label slot="label">${text}</label>
184
- </rapid-multiselect>
185
- </div>
186
- `,
187
- args: {
188
- name: 'Countries',
189
- text: 'Disabled Auto Position',
190
- search: true,
191
- countries: disabledCountriesExample,
192
- autoPosition: false,
193
- creatable: false,
194
- },
195
- };
196
- export const Creatable = {
197
- render: ({ name, text, countries, search, autoPosition, creatable }) => html `
104
+ const makeStory = (args) => ({
105
+ render: ({ name, text, countries, search, disabled, creatable, autoPosition, filterByContains, }) => html `
198
106
  <div style="min-height: 400px;">
199
107
  <rapid-multiselect
200
108
  name="${name}"
201
109
  .options="${countries}"
202
110
  auto-position="${autoPosition}"
203
111
  search="${search}"
112
+ disabled="${disabled}"
204
113
  creatable="${creatable}"
114
+ filter-by-contains="${filterByContains}"
205
115
  >
206
116
  <label slot="label">${text}</label>
207
117
  </rapid-multiselect>
208
118
  </div>
209
119
  `,
210
- args: {
211
- name: 'Countries',
212
- text: 'Creatable',
213
- search: true,
214
- countries: disabledCountriesExample,
215
- autoPosition: false,
216
- creatable: true,
217
- },
218
- };
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/rapid-design-system",
3
3
  "description": "Rapid 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",
@@ -29,12 +29,12 @@
29
29
  },
30
30
  "devDependencies": {
31
31
  "@genesiscommunitysuccess/analyzer-import-alias-plugin": "^4.0.0",
32
- "@genesislcap/genx": "14.176.1-alpha-6ef4895.0",
33
- "@genesislcap/rollup-builder": "14.176.1-alpha-6ef4895.0",
34
- "@genesislcap/ts-builder": "14.176.1-alpha-6ef4895.0",
35
- "@genesislcap/uvu-playwright-builder": "14.176.1-alpha-6ef4895.0",
36
- "@genesislcap/vite-builder": "14.176.1-alpha-6ef4895.0",
37
- "@genesislcap/webpack-builder": "14.176.1-alpha-6ef4895.0",
32
+ "@genesislcap/genx": "14.177.0",
33
+ "@genesislcap/rollup-builder": "14.177.0",
34
+ "@genesislcap/ts-builder": "14.177.0",
35
+ "@genesislcap/uvu-playwright-builder": "14.177.0",
36
+ "@genesislcap/vite-builder": "14.177.0",
37
+ "@genesislcap/webpack-builder": "14.177.0",
38
38
  "@storybook/addon-coverage": "^1.0.1",
39
39
  "@storybook/addon-essentials": "^8.0.0",
40
40
  "@storybook/addon-links": "^8.0.0",
@@ -51,8 +51,8 @@
51
51
  "storybook": "^8.0.0"
52
52
  },
53
53
  "dependencies": {
54
- "@genesislcap/foundation-logger": "14.176.1-alpha-6ef4895.0",
55
- "@genesislcap/foundation-ui": "14.176.1-alpha-6ef4895.0",
54
+ "@genesislcap/foundation-logger": "14.177.0",
55
+ "@genesislcap/foundation-ui": "14.177.0",
56
56
  "@microsoft/fast-colors": "^5.3.1",
57
57
  "@microsoft/fast-components": "^2.30.6",
58
58
  "@microsoft/fast-element": "^1.12.0",
@@ -70,5 +70,5 @@
70
70
  "access": "public"
71
71
  },
72
72
  "customElements": "dist/custom-elements.json",
73
- "gitHead": "7576777c410789f2699b2522129c8a206f3ccacf"
73
+ "gitHead": "b3c0ce3e0fa58bae562c2c9bec96beee6a4a2ed4"
74
74
  }