@genesislcap/foundation-ui 14.301.0 → 14.302.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.
@@ -1649,37 +1649,6 @@
1649
1649
  }
1650
1650
  ]
1651
1651
  },
1652
- {
1653
- "kind": "javascript-module",
1654
- "path": "src/_config/index.ts",
1655
- "declarations": [],
1656
- "exports": [
1657
- {
1658
- "kind": "js",
1659
- "name": "*",
1660
- "declaration": {
1661
- "name": "*",
1662
- "package": "./styles"
1663
- }
1664
- },
1665
- {
1666
- "kind": "js",
1667
- "name": "*",
1668
- "declaration": {
1669
- "name": "*",
1670
- "package": "./tokens"
1671
- }
1672
- },
1673
- {
1674
- "kind": "js",
1675
- "name": "*",
1676
- "declaration": {
1677
- "name": "*",
1678
- "package": "./values"
1679
- }
1680
- }
1681
- ]
1682
- },
1683
1652
  {
1684
1653
  "kind": "javascript-module",
1685
1654
  "path": "src/actions-menu/actions-menu.styles.ts",
@@ -2241,158 +2210,7 @@
2241
2210
  },
2242
2211
  {
2243
2212
  "kind": "javascript-module",
2244
- "path": "src/accordion/accordion.styles.ts",
2245
- "declarations": [
2246
- {
2247
- "kind": "function",
2248
- "name": "foundationAccordionStyles",
2249
- "return": {
2250
- "type": {
2251
- "text": "ElementStyles"
2252
- }
2253
- },
2254
- "parameters": [
2255
- {
2256
- "name": "context",
2257
- "type": {
2258
- "text": "ElementDefinitionContext"
2259
- }
2260
- },
2261
- {
2262
- "name": "definition",
2263
- "type": {
2264
- "text": "FoundationElementDefinition"
2265
- }
2266
- }
2267
- ]
2268
- }
2269
- ],
2270
- "exports": [
2271
- {
2272
- "kind": "js",
2273
- "name": "foundationAccordionStyles",
2274
- "declaration": {
2275
- "name": "foundationAccordionStyles",
2276
- "module": "src/accordion/accordion.styles.ts"
2277
- }
2278
- }
2279
- ]
2280
- },
2281
- {
2282
- "kind": "javascript-module",
2283
- "path": "src/accordion/accordion.template.ts",
2284
- "declarations": [
2285
- {
2286
- "kind": "function",
2287
- "name": "foundationAccordionTemplate",
2288
- "return": {
2289
- "type": {
2290
- "text": "ViewTemplate<Accordion>"
2291
- }
2292
- },
2293
- "parameters": [
2294
- {
2295
- "name": "context",
2296
- "type": {
2297
- "text": "ElementDefinitionContext"
2298
- }
2299
- },
2300
- {
2301
- "name": "definition",
2302
- "type": {
2303
- "text": "FoundationElementDefinition"
2304
- }
2305
- }
2306
- ]
2307
- }
2308
- ],
2309
- "exports": [
2310
- {
2311
- "kind": "js",
2312
- "name": "foundationAccordionTemplate",
2313
- "declaration": {
2314
- "name": "foundationAccordionTemplate",
2315
- "module": "src/accordion/accordion.template.ts"
2316
- }
2317
- }
2318
- ]
2319
- },
2320
- {
2321
- "kind": "javascript-module",
2322
- "path": "src/accordion/accordion.ts",
2323
- "declarations": [
2324
- {
2325
- "kind": "class",
2326
- "description": "",
2327
- "name": "Accordion",
2328
- "superclass": {
2329
- "name": "FASTAccordion",
2330
- "package": "@microsoft/fast-foundation"
2331
- },
2332
- "tagName": "%%prefix%%-accordion",
2333
- "customElement": true
2334
- },
2335
- {
2336
- "kind": "variable",
2337
- "name": "foundationAccordionShadowOptions",
2338
- "type": {
2339
- "text": "ShadowRootInit"
2340
- },
2341
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
2342
- },
2343
- {
2344
- "kind": "variable",
2345
- "name": "defaultAccordionConfig",
2346
- "type": {
2347
- "text": "object"
2348
- },
2349
- "default": "{}"
2350
- },
2351
- {
2352
- "kind": "variable",
2353
- "name": "foundationAccordion",
2354
- "description": "The Foundation Accordion",
2355
- "privacy": "public"
2356
- }
2357
- ],
2358
- "exports": [
2359
- {
2360
- "kind": "js",
2361
- "name": "Accordion",
2362
- "declaration": {
2363
- "name": "Accordion",
2364
- "module": "src/accordion/accordion.ts"
2365
- }
2366
- },
2367
- {
2368
- "kind": "js",
2369
- "name": "foundationAccordionShadowOptions",
2370
- "declaration": {
2371
- "name": "foundationAccordionShadowOptions",
2372
- "module": "src/accordion/accordion.ts"
2373
- }
2374
- },
2375
- {
2376
- "kind": "js",
2377
- "name": "defaultAccordionConfig",
2378
- "declaration": {
2379
- "name": "defaultAccordionConfig",
2380
- "module": "src/accordion/accordion.ts"
2381
- }
2382
- },
2383
- {
2384
- "kind": "js",
2385
- "name": "foundationAccordion",
2386
- "declaration": {
2387
- "name": "foundationAccordion",
2388
- "module": "src/accordion/accordion.ts"
2389
- }
2390
- }
2391
- ]
2392
- },
2393
- {
2394
- "kind": "javascript-module",
2395
- "path": "src/accordion/index.ts",
2213
+ "path": "src/_config/index.ts",
2396
2214
  "declarations": [],
2397
2215
  "exports": [
2398
2216
  {
@@ -2400,7 +2218,7 @@
2400
2218
  "name": "*",
2401
2219
  "declaration": {
2402
2220
  "name": "*",
2403
- "package": "./accordion.template"
2221
+ "package": "./styles"
2404
2222
  }
2405
2223
  },
2406
2224
  {
@@ -2408,7 +2226,7 @@
2408
2226
  "name": "*",
2409
2227
  "declaration": {
2410
2228
  "name": "*",
2411
- "package": "./accordion.styles"
2229
+ "package": "./tokens"
2412
2230
  }
2413
2231
  },
2414
2232
  {
@@ -2416,7 +2234,7 @@
2416
2234
  "name": "*",
2417
2235
  "declaration": {
2418
2236
  "name": "*",
2419
- "package": "./accordion"
2237
+ "package": "./values"
2420
2238
  }
2421
2239
  }
2422
2240
  ]
@@ -2941,6 +2759,188 @@
2941
2759
  }
2942
2760
  ]
2943
2761
  },
2762
+ {
2763
+ "kind": "javascript-module",
2764
+ "path": "src/accordion/accordion.styles.ts",
2765
+ "declarations": [
2766
+ {
2767
+ "kind": "function",
2768
+ "name": "foundationAccordionStyles",
2769
+ "return": {
2770
+ "type": {
2771
+ "text": "ElementStyles"
2772
+ }
2773
+ },
2774
+ "parameters": [
2775
+ {
2776
+ "name": "context",
2777
+ "type": {
2778
+ "text": "ElementDefinitionContext"
2779
+ }
2780
+ },
2781
+ {
2782
+ "name": "definition",
2783
+ "type": {
2784
+ "text": "FoundationElementDefinition"
2785
+ }
2786
+ }
2787
+ ]
2788
+ }
2789
+ ],
2790
+ "exports": [
2791
+ {
2792
+ "kind": "js",
2793
+ "name": "foundationAccordionStyles",
2794
+ "declaration": {
2795
+ "name": "foundationAccordionStyles",
2796
+ "module": "src/accordion/accordion.styles.ts"
2797
+ }
2798
+ }
2799
+ ]
2800
+ },
2801
+ {
2802
+ "kind": "javascript-module",
2803
+ "path": "src/accordion/accordion.template.ts",
2804
+ "declarations": [
2805
+ {
2806
+ "kind": "function",
2807
+ "name": "foundationAccordionTemplate",
2808
+ "return": {
2809
+ "type": {
2810
+ "text": "ViewTemplate<Accordion>"
2811
+ }
2812
+ },
2813
+ "parameters": [
2814
+ {
2815
+ "name": "context",
2816
+ "type": {
2817
+ "text": "ElementDefinitionContext"
2818
+ }
2819
+ },
2820
+ {
2821
+ "name": "definition",
2822
+ "type": {
2823
+ "text": "FoundationElementDefinition"
2824
+ }
2825
+ }
2826
+ ]
2827
+ }
2828
+ ],
2829
+ "exports": [
2830
+ {
2831
+ "kind": "js",
2832
+ "name": "foundationAccordionTemplate",
2833
+ "declaration": {
2834
+ "name": "foundationAccordionTemplate",
2835
+ "module": "src/accordion/accordion.template.ts"
2836
+ }
2837
+ }
2838
+ ]
2839
+ },
2840
+ {
2841
+ "kind": "javascript-module",
2842
+ "path": "src/accordion/accordion.ts",
2843
+ "declarations": [
2844
+ {
2845
+ "kind": "class",
2846
+ "description": "",
2847
+ "name": "Accordion",
2848
+ "superclass": {
2849
+ "name": "FASTAccordion",
2850
+ "package": "@microsoft/fast-foundation"
2851
+ },
2852
+ "tagName": "%%prefix%%-accordion",
2853
+ "customElement": true
2854
+ },
2855
+ {
2856
+ "kind": "variable",
2857
+ "name": "foundationAccordionShadowOptions",
2858
+ "type": {
2859
+ "text": "ShadowRootInit"
2860
+ },
2861
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
2862
+ },
2863
+ {
2864
+ "kind": "variable",
2865
+ "name": "defaultAccordionConfig",
2866
+ "type": {
2867
+ "text": "object"
2868
+ },
2869
+ "default": "{}"
2870
+ },
2871
+ {
2872
+ "kind": "variable",
2873
+ "name": "foundationAccordion",
2874
+ "description": "The Foundation Accordion",
2875
+ "privacy": "public"
2876
+ }
2877
+ ],
2878
+ "exports": [
2879
+ {
2880
+ "kind": "js",
2881
+ "name": "Accordion",
2882
+ "declaration": {
2883
+ "name": "Accordion",
2884
+ "module": "src/accordion/accordion.ts"
2885
+ }
2886
+ },
2887
+ {
2888
+ "kind": "js",
2889
+ "name": "foundationAccordionShadowOptions",
2890
+ "declaration": {
2891
+ "name": "foundationAccordionShadowOptions",
2892
+ "module": "src/accordion/accordion.ts"
2893
+ }
2894
+ },
2895
+ {
2896
+ "kind": "js",
2897
+ "name": "defaultAccordionConfig",
2898
+ "declaration": {
2899
+ "name": "defaultAccordionConfig",
2900
+ "module": "src/accordion/accordion.ts"
2901
+ }
2902
+ },
2903
+ {
2904
+ "kind": "js",
2905
+ "name": "foundationAccordion",
2906
+ "declaration": {
2907
+ "name": "foundationAccordion",
2908
+ "module": "src/accordion/accordion.ts"
2909
+ }
2910
+ }
2911
+ ]
2912
+ },
2913
+ {
2914
+ "kind": "javascript-module",
2915
+ "path": "src/accordion/index.ts",
2916
+ "declarations": [],
2917
+ "exports": [
2918
+ {
2919
+ "kind": "js",
2920
+ "name": "*",
2921
+ "declaration": {
2922
+ "name": "*",
2923
+ "package": "./accordion.template"
2924
+ }
2925
+ },
2926
+ {
2927
+ "kind": "js",
2928
+ "name": "*",
2929
+ "declaration": {
2930
+ "name": "*",
2931
+ "package": "./accordion.styles"
2932
+ }
2933
+ },
2934
+ {
2935
+ "kind": "js",
2936
+ "name": "*",
2937
+ "declaration": {
2938
+ "name": "*",
2939
+ "package": "./accordion"
2940
+ }
2941
+ }
2942
+ ]
2943
+ },
2944
2944
  {
2945
2945
  "kind": "javascript-module",
2946
2946
  "path": "src/anchored-region/anchor-region.template.ts",
@@ -27825,6 +27825,13 @@
27825
27825
  "text": "HTMLElement"
27826
27826
  }
27827
27827
  },
27828
+ {
27829
+ "kind": "field",
27830
+ "name": "filterSearchInput",
27831
+ "type": {
27832
+ "text": "HTMLInputElement"
27833
+ }
27834
+ },
27828
27835
  {
27829
27836
  "kind": "method",
27830
27837
  "name": "defaultItemRenderer",
@@ -28058,6 +28065,27 @@
28058
28065
  "text": "Node[]"
28059
28066
  }
28060
28067
  },
28068
+ {
28069
+ "kind": "method",
28070
+ "name": "clear",
28071
+ "privacy": "public",
28072
+ "return": {
28073
+ "type": {
28074
+ "text": "void"
28075
+ }
28076
+ },
28077
+ "parameters": [
28078
+ {
28079
+ "name": "options",
28080
+ "default": "{}",
28081
+ "type": {
28082
+ "text": "ClearOptions"
28083
+ },
28084
+ "description": "Options for clearing the multiselect"
28085
+ }
28086
+ ],
28087
+ "description": "Clears the selected values and/or filter text"
28088
+ },
28061
28089
  {
28062
28090
  "kind": "field",
28063
28091
  "name": "_presentation",
@@ -4,6 +4,15 @@ import { MultiselectDatasource } from '../options-datasource';
4
4
  import { MultiselectOption, Position } from './multiselect-consts';
5
5
  export declare const foundationMultiselectShadowOptions: ShadowRootInit;
6
6
  export declare const defaultMultiselectConfig: {};
7
+ /**
8
+ * Options for clearing the multiselect component
9
+ */
10
+ export interface ClearOptions {
11
+ /** Whether to clear selected values (default: true) */
12
+ clearSelectedValues?: boolean;
13
+ /** Whether to clear filter text (default: true) */
14
+ clearFilterText?: boolean;
15
+ }
7
16
  /**
8
17
  * @tagname %%prefix%%-multiselect
9
18
  */
@@ -44,6 +53,7 @@ export declare class Multiselect extends FoundationElement {
44
53
  private initialisedOptions;
45
54
  arrowIcon: SVGElement;
46
55
  multiselectDropdown: HTMLElement;
56
+ filterSearchInput: HTMLInputElement;
47
57
  connectedCallback(): void;
48
58
  disconnectedCallback(): void;
49
59
  defaultItemRenderer(option: MultiselectOption, parent: Multiselect): ViewTemplate;
@@ -81,6 +91,11 @@ export declare class Multiselect extends FoundationElement {
81
91
  private handleClickOutside;
82
92
  keydownHandler(e: Event & KeyboardEvent): boolean | void;
83
93
  optionsHeaderSlottedNodes: Node[];
94
+ /**
95
+ * Clears the selected values and/or filter text
96
+ * @param options - Options for clearing the multiselect
97
+ */
98
+ clear(options?: ClearOptions): void;
84
99
  }
85
100
  export declare const foundationMultiselect: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
86
101
  baseName: string;
@@ -1 +1 @@
1
- {"version":3,"file":"multiselect.d.ts","sourceRoot":"","sources":["../../../src/multiselect/multiselect.ts"],"names":[],"mappings":"AACA,OAAO,EAA0B,YAAY,EAAY,MAAM,yBAAyB,CAAC;AACzF,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAO9D,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAMnE,eAAO,MAAM,kCAAkC,EAAE,cAA0B,CAAC;AAE5E,eAAO,MAAM,wBAAwB,IAAK,CAAC;AAE3C;;GAEG;AACH,qBAAa,WAAY,SAAQ,iBAAiB;IAC1C,IAAI,SAAM;IACuC,YAAY,EAAE,OAAO,CAAQ;IACzD,GAAG,UAAQ;IACX,WAAW,UAAS;IACpB,MAAM,UAAQ;IACd,QAAQ,UAAS;IACjB,SAAS,UAAS;IAClB,KAAK,UAAS;IACnC,QAAQ,EAAE,MAAM,CAAiB;IAEvC,2FAA2F;IAC/B,gBAAgB,UAAS;IAErF,eAAe,CAAC,QAAQ,KAAA,EAAE,QAAQ,EAAE,MAAM;IAG1C,qBAAqB,MAAC;IACV,mBAAmB,EAAE,IAAI,EAAE,CAAC;IAC5B,iBAAiB,EAAE,qBAAqB,EAAE,CAAC;IAC3C,cAAc,MAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,iBAAiB,EAAE,MAAM,CAAM;IAC3C,OAAO,CAAC,YAAY,CAAiD;IACzD,IAAI,UAAS;IACzB,WAAW,CAAC,QAAQ,EAAE,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BAAiB;IAYrD,eAAe,CAAC,gBAAgB,EAAE,iBAAiB,EAAE,KAAK,EAAE,aAAa;IAQzE,sBAAsB;IAItB,iBAAiB;IAajB,YAAY;IAcZ,qBAAqB;IAWrB,SAAS;IAyBT,SAAS;IAST,cAAc;IAkBd,aAAa,CAAC,KAAK,EAAE,KAAK;IAK1B,OAAO,CAAC,kBAAkB;IAM1B,cAAc,CAAC,CAAC,EAAE,KAAK,GAAG,aAAa,GAAG,OAAO,GAAG,IAAI;IAiC5C,yBAAyB,EAAE,IAAI,EAAE,CAAC;IAE9C;;;OAGG;IACI,KAAK,CAAC,OAAO,GAAE,YAAiB,GAAG,IAAI;CAoB/C;AAED,eAAO,MAAM,qBAAqB;;;;;;;;;;sBAMhC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"multiselect.template.d.ts","sourceRoot":"","sources":["../../../src/multiselect/multiselect.template.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAMjD,eAAO,MAAM,sBAAsB,uFA4HlC,CAAC;AAEF,eAAO,MAAM,mBAAmB,kEAE/B,CAAC"}
1
+ {"version":3,"file":"multiselect.template.d.ts","sourceRoot":"","sources":["../../../src/multiselect/multiselect.template.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAMjD,eAAO,MAAM,sBAAsB,uFA6HlC,CAAC;AAEF,eAAO,MAAM,mBAAmB,kEAE/B,CAAC"}
@@ -339,6 +339,27 @@ export class Multiselect extends FoundationElement {
339
339
  }
340
340
  }
341
341
  }
342
+ /**
343
+ * Clears the selected values and/or filter text
344
+ * @param options - Options for clearing the multiselect
345
+ */
346
+ clear(options = {}) {
347
+ const { clearSelectedValues = true, clearFilterText = true } = options;
348
+ if (clearSelectedValues) {
349
+ this.selectedOptions = [];
350
+ this.$emit('selectionChange', this.selectedOptions);
351
+ }
352
+ if (clearFilterText) {
353
+ this.filterSearchValue = '';
354
+ this.setFilter();
355
+ // Directly set input value to force template update
356
+ if (this.filterSearchInput) {
357
+ this.filterSearchInput.value = '';
358
+ }
359
+ }
360
+ // Emit clear event with the options that were used
361
+ this.$emit('clear', { clearSelectedValues, clearFilterText });
362
+ }
342
363
  }
343
364
  __decorate([
344
365
  attr
@@ -30,6 +30,7 @@ export const getPrefixedMultiselect = (prefix = 'foundation') => html `
30
30
  ?readonly=${(x) => !x.search}
31
31
  @click=${(x) => x.toggle()}
32
32
  ?disabled="${(x) => x.disabled}"
33
+ ${ref('filterSearchInput')}
33
34
  value=${sync((x) => x.filterSearchValue, 'string', 'input')}
34
35
  placeholder="${(x) => x.getDisplayValue}"
35
36
  @input=${(x, c) => x.inputHandler()}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-ui",
3
3
  "description": "Genesis Foundation UI",
4
- "version": "14.301.0",
4
+ "version": "14.302.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -83,13 +83,13 @@
83
83
  }
84
84
  },
85
85
  "devDependencies": {
86
- "@genesislcap/foundation-testing": "14.301.0",
87
- "@genesislcap/genx": "14.301.0",
88
- "@genesislcap/rollup-builder": "14.301.0",
89
- "@genesislcap/ts-builder": "14.301.0",
90
- "@genesislcap/uvu-playwright-builder": "14.301.0",
91
- "@genesislcap/vite-builder": "14.301.0",
92
- "@genesislcap/webpack-builder": "14.301.0",
86
+ "@genesislcap/foundation-testing": "14.302.0",
87
+ "@genesislcap/genx": "14.302.0",
88
+ "@genesislcap/rollup-builder": "14.302.0",
89
+ "@genesislcap/ts-builder": "14.302.0",
90
+ "@genesislcap/uvu-playwright-builder": "14.302.0",
91
+ "@genesislcap/vite-builder": "14.302.0",
92
+ "@genesislcap/webpack-builder": "14.302.0",
93
93
  "copyfiles": "^2.4.1",
94
94
  "rimraf": "^5.0.0",
95
95
  "rxjs": "^7.5.4"
@@ -100,15 +100,15 @@
100
100
  "@fortawesome/free-regular-svg-icons": "^6.2.1",
101
101
  "@fortawesome/free-solid-svg-icons": "^6.2.1",
102
102
  "@genesiscommunitysuccess/analyzer-import-alias-plugin": "^5.0.3",
103
- "@genesislcap/expression-builder": "14.301.0",
104
- "@genesislcap/foundation-comms": "14.301.0",
105
- "@genesislcap/foundation-criteria": "14.301.0",
106
- "@genesislcap/foundation-errors": "14.301.0",
107
- "@genesislcap/foundation-events": "14.301.0",
108
- "@genesislcap/foundation-logger": "14.301.0",
109
- "@genesislcap/foundation-notifications": "14.301.0",
110
- "@genesislcap/foundation-user": "14.301.0",
111
- "@genesislcap/foundation-utils": "14.301.0",
103
+ "@genesislcap/expression-builder": "14.302.0",
104
+ "@genesislcap/foundation-comms": "14.302.0",
105
+ "@genesislcap/foundation-criteria": "14.302.0",
106
+ "@genesislcap/foundation-errors": "14.302.0",
107
+ "@genesislcap/foundation-events": "14.302.0",
108
+ "@genesislcap/foundation-logger": "14.302.0",
109
+ "@genesislcap/foundation-notifications": "14.302.0",
110
+ "@genesislcap/foundation-user": "14.302.0",
111
+ "@genesislcap/foundation-utils": "14.302.0",
112
112
  "@microsoft/fast-colors": "5.3.1",
113
113
  "@microsoft/fast-components": "2.30.6",
114
114
  "@microsoft/fast-element": "1.14.0",
@@ -130,5 +130,5 @@
130
130
  "access": "public"
131
131
  },
132
132
  "customElements": "dist/custom-elements.json",
133
- "gitHead": "f4ee6d1554e5c85fa0247cb47bde1048ae108e81"
133
+ "gitHead": "f52f52aa356a14a591ce6a1551f0c0391781d3f9"
134
134
  }