@genesislcap/foundation-zero 14.437.4 → 14.437.5-canary.gs-updates

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.
@@ -11833,6 +11833,20 @@
11833
11833
  "module": "src/date-picker/date-picker.ts"
11834
11834
  }
11835
11835
  },
11836
+ {
11837
+ "name": "use-locale-format",
11838
+ "type": {
11839
+ "text": "boolean"
11840
+ },
11841
+ "default": "false",
11842
+ "attribute": "use-locale-format",
11843
+ "fieldName": "useLocaleFormat",
11844
+ "description": "when true, `format` is set from dayjs locale `L`. Uses the browser locale (`navigator.language`) unless `lang` is set on the element.",
11845
+ "inheritedFrom": {
11846
+ "name": "DatePicker",
11847
+ "module": "src/date-picker/date-picker.ts"
11848
+ }
11849
+ },
11836
11850
  {
11837
11851
  "name": "inline-calendar",
11838
11852
  "type": {
@@ -11888,6 +11902,33 @@
11888
11902
  "module": "src/date-picker/date-picker.ts"
11889
11903
  }
11890
11904
  },
11905
+ {
11906
+ "name": "allow-empty",
11907
+ "type": {
11908
+ "text": "boolean"
11909
+ },
11910
+ "default": "false",
11911
+ "attribute": "allow-empty",
11912
+ "fieldName": "allowEmpty",
11913
+ "description": "when true, no initial date is selected; the input shows a placeholder until the user picks a date.",
11914
+ "inheritedFrom": {
11915
+ "name": "DatePicker",
11916
+ "module": "src/date-picker/date-picker.ts"
11917
+ }
11918
+ },
11919
+ {
11920
+ "name": "placeholder",
11921
+ "type": {
11922
+ "text": "string"
11923
+ },
11924
+ "attribute": "placeholder",
11925
+ "fieldName": "placeholder",
11926
+ "description": "hint shown when allow-empty is set and no date is selected. Defaults from `format` (e.g. DD/MM/YYYY → dd/mm/yyyy).",
11927
+ "inheritedFrom": {
11928
+ "name": "DatePicker",
11929
+ "module": "src/date-picker/date-picker.ts"
11930
+ }
11931
+ },
11891
11932
  {
11892
11933
  "name": "value",
11893
11934
  "type": {
@@ -11974,6 +12015,35 @@
11974
12015
  "module": "src/date-picker/date-picker.ts"
11975
12016
  }
11976
12017
  },
12018
+ {
12019
+ "kind": "method",
12020
+ "name": "langChanged",
12021
+ "inheritedFrom": {
12022
+ "name": "DatePicker",
12023
+ "module": "src/date-picker/date-picker.ts"
12024
+ }
12025
+ },
12026
+ {
12027
+ "kind": "field",
12028
+ "name": "useLocaleFormat",
12029
+ "type": {
12030
+ "text": "boolean"
12031
+ },
12032
+ "default": "false",
12033
+ "attribute": "use-locale-format",
12034
+ "inheritedFrom": {
12035
+ "name": "DatePicker",
12036
+ "module": "src/date-picker/date-picker.ts"
12037
+ }
12038
+ },
12039
+ {
12040
+ "kind": "method",
12041
+ "name": "useLocaleFormatChanged",
12042
+ "inheritedFrom": {
12043
+ "name": "DatePicker",
12044
+ "module": "src/date-picker/date-picker.ts"
12045
+ }
12046
+ },
11977
12047
  {
11978
12048
  "kind": "field",
11979
12049
  "name": "visible",
@@ -12053,6 +12123,31 @@
12053
12123
  "module": "src/date-picker/date-picker.ts"
12054
12124
  }
12055
12125
  },
12126
+ {
12127
+ "kind": "field",
12128
+ "name": "allowEmpty",
12129
+ "type": {
12130
+ "text": "boolean"
12131
+ },
12132
+ "default": "false",
12133
+ "attribute": "allow-empty",
12134
+ "inheritedFrom": {
12135
+ "name": "DatePicker",
12136
+ "module": "src/date-picker/date-picker.ts"
12137
+ }
12138
+ },
12139
+ {
12140
+ "kind": "field",
12141
+ "name": "placeholder",
12142
+ "type": {
12143
+ "text": "string"
12144
+ },
12145
+ "attribute": "placeholder",
12146
+ "inheritedFrom": {
12147
+ "name": "DatePicker",
12148
+ "module": "src/date-picker/date-picker.ts"
12149
+ }
12150
+ },
12056
12151
  {
12057
12152
  "kind": "field",
12058
12153
  "name": "value",
@@ -12122,6 +12217,129 @@
12122
12217
  "module": "src/date-picker/date-picker.ts"
12123
12218
  }
12124
12219
  },
12220
+ {
12221
+ "kind": "method",
12222
+ "name": "clear",
12223
+ "privacy": "public",
12224
+ "return": {
12225
+ "type": {
12226
+ "text": "void"
12227
+ }
12228
+ },
12229
+ "description": "Clears the selected date (only when `allow-empty` is enabled).",
12230
+ "inheritedFrom": {
12231
+ "name": "DatePicker",
12232
+ "module": "src/date-picker/date-picker.ts"
12233
+ }
12234
+ },
12235
+ {
12236
+ "kind": "method",
12237
+ "name": "applyLocaleFormat",
12238
+ "privacy": "private",
12239
+ "return": {
12240
+ "type": {
12241
+ "text": "void"
12242
+ }
12243
+ },
12244
+ "inheritedFrom": {
12245
+ "name": "DatePicker",
12246
+ "module": "src/date-picker/date-picker.ts"
12247
+ }
12248
+ },
12249
+ {
12250
+ "kind": "method",
12251
+ "name": "initializeEmpty",
12252
+ "privacy": "private",
12253
+ "return": {
12254
+ "type": {
12255
+ "text": "void"
12256
+ }
12257
+ },
12258
+ "inheritedFrom": {
12259
+ "name": "DatePicker",
12260
+ "module": "src/date-picker/date-picker.ts"
12261
+ }
12262
+ },
12263
+ {
12264
+ "kind": "method",
12265
+ "name": "initializeWithValue",
12266
+ "privacy": "private",
12267
+ "return": {
12268
+ "type": {
12269
+ "text": "void"
12270
+ }
12271
+ },
12272
+ "parameters": [
12273
+ {
12274
+ "name": "dateString",
12275
+ "type": {
12276
+ "text": "string"
12277
+ }
12278
+ }
12279
+ ],
12280
+ "inheritedFrom": {
12281
+ "name": "DatePicker",
12282
+ "module": "src/date-picker/date-picker.ts"
12283
+ }
12284
+ },
12285
+ {
12286
+ "kind": "method",
12287
+ "name": "initializeWithDefaultDate",
12288
+ "privacy": "private",
12289
+ "return": {
12290
+ "type": {
12291
+ "text": "void"
12292
+ }
12293
+ },
12294
+ "inheritedFrom": {
12295
+ "name": "DatePicker",
12296
+ "module": "src/date-picker/date-picker.ts"
12297
+ }
12298
+ },
12299
+ {
12300
+ "kind": "method",
12301
+ "name": "applyValue",
12302
+ "privacy": "private",
12303
+ "return": {
12304
+ "type": {
12305
+ "text": "void"
12306
+ }
12307
+ },
12308
+ "parameters": [
12309
+ {
12310
+ "name": "dateString",
12311
+ "type": {
12312
+ "text": "string"
12313
+ }
12314
+ }
12315
+ ],
12316
+ "inheritedFrom": {
12317
+ "name": "DatePicker",
12318
+ "module": "src/date-picker/date-picker.ts"
12319
+ }
12320
+ },
12321
+ {
12322
+ "kind": "method",
12323
+ "name": "clearToEmpty",
12324
+ "privacy": "private",
12325
+ "return": {
12326
+ "type": {
12327
+ "text": "void"
12328
+ }
12329
+ },
12330
+ "parameters": [
12331
+ {
12332
+ "name": "emitEvent",
12333
+ "type": {
12334
+ "text": "boolean"
12335
+ }
12336
+ }
12337
+ ],
12338
+ "inheritedFrom": {
12339
+ "name": "DatePicker",
12340
+ "module": "src/date-picker/date-picker.ts"
12341
+ }
12342
+ },
12125
12343
  {
12126
12344
  "kind": "method",
12127
12345
  "name": "updateHeaderText",
@@ -31811,19 +32029,11 @@
31811
32029
  "type": {
31812
32030
  "text": "Event"
31813
32031
  },
31814
- "description": "Fired when the combobox value changes",
32032
+ "description": "Fires a custom 'change' event when the value updates",
31815
32033
  "inheritedFrom": {
31816
32034
  "name": "Combobox",
31817
32035
  "module": "src/combobox/combobox.ts"
31818
32036
  }
31819
- },
31820
- {
31821
- "description": "Fired when the input is cleared by the user",
31822
- "name": "inputdeleted",
31823
- "inheritedFrom": {
31824
- "name": "SearchBarCombobox",
31825
- "module": "src/search-bar/search-bar-combobox.ts"
31826
- }
31827
32037
  }
31828
32038
  ]
31829
32039
  },
@@ -32005,6 +32215,19 @@
32005
32215
  "module": "src/search-bar/search-bar.ts"
32006
32216
  }
32007
32217
  },
32218
+ {
32219
+ "kind": "field",
32220
+ "name": "clearButton",
32221
+ "type": {
32222
+ "text": "boolean"
32223
+ },
32224
+ "default": "true",
32225
+ "attribute": "clear-button",
32226
+ "inheritedFrom": {
32227
+ "name": "SearchBar",
32228
+ "module": "src/search-bar/search-bar.ts"
32229
+ }
32230
+ },
32008
32231
  {
32009
32232
  "kind": "field",
32010
32233
  "name": "loading",
@@ -32055,6 +32278,7 @@
32055
32278
  "kind": "method",
32056
32279
  "name": "clear",
32057
32280
  "privacy": "public",
32281
+ "description": "Clears all search chips and the current input, and emits `selectionChange` with an empty array.",
32058
32282
  "inheritedFrom": {
32059
32283
  "name": "SearchBar",
32060
32284
  "module": "src/search-bar/search-bar.ts"
@@ -32069,6 +32293,32 @@
32069
32293
  "text": "void"
32070
32294
  }
32071
32295
  },
32296
+ "description": "Alias for SearchBar.clear.",
32297
+ "inheritedFrom": {
32298
+ "name": "SearchBar",
32299
+ "module": "src/search-bar/search-bar.ts"
32300
+ }
32301
+ },
32302
+ {
32303
+ "kind": "method",
32304
+ "name": "selectedOptionsChanged",
32305
+ "inheritedFrom": {
32306
+ "name": "SearchBar",
32307
+ "module": "src/search-bar/search-bar.ts"
32308
+ }
32309
+ },
32310
+ {
32311
+ "kind": "method",
32312
+ "name": "optionsChanged",
32313
+ "inheritedFrom": {
32314
+ "name": "SearchBar",
32315
+ "module": "src/search-bar/search-bar.ts"
32316
+ }
32317
+ },
32318
+ {
32319
+ "kind": "method",
32320
+ "name": "applySearchInputLock",
32321
+ "privacy": "private",
32072
32322
  "inheritedFrom": {
32073
32323
  "name": "SearchBar",
32074
32324
  "module": "src/search-bar/search-bar.ts"
@@ -32312,6 +32562,20 @@
32312
32562
  "tagName": "%%prefix%%-search-bar",
32313
32563
  "customElement": true,
32314
32564
  "attributes": [
32565
+ {
32566
+ "name": "clear-button",
32567
+ "type": {
32568
+ "text": "boolean"
32569
+ },
32570
+ "default": "true",
32571
+ "attribute": "clear-button",
32572
+ "fieldName": "clearButton",
32573
+ "description": "when true, shows the end clear control when there are chips or typed text. When false, use {@link SearchBar.clear} or {@link SearchBar.clearSearch} to reset programmatically.",
32574
+ "inheritedFrom": {
32575
+ "name": "SearchBar",
32576
+ "module": "src/search-bar/search-bar.ts"
32577
+ }
32578
+ },
32315
32579
  {
32316
32580
  "name": "appearance",
32317
32581
  "type": {
@@ -665,7 +665,6 @@ export declare const SearchBarCombobox: React.ForwardRefExoticComponent<
665
665
  React.PropsWithChildren<
666
666
  Omit<PublicOf<SearchBarComboboxWC>, 'children' | 'style'> &
667
667
  HTMLWCProps & {
668
- onInputdeleted?: (event: CustomEvent<unknown>) => void;
669
668
  }
670
669
  > & React.RefAttributes<SearchBarComboboxWC>
671
670
  >;
package/dist/react.cjs CHANGED
@@ -591,20 +591,8 @@ const SchedulerTimezone = React.forwardRef(function SchedulerTimezone(props, ref
591
591
  });
592
592
 
593
593
  const SearchBarCombobox = React.forwardRef(function SearchBarCombobox(props, ref) {
594
- const { onInputdeleted, children, ...rest } = props;
595
- const _innerRef = React.useRef(null);
596
- const _onInputdeletedRef = React.useRef(onInputdeleted);
597
- _onInputdeletedRef.current = onInputdeleted;
598
- React.useLayoutEffect(() => {
599
- const el = _innerRef.current;
600
- if (!el) return;
601
- const _onInputdeletedFn = (e) => _onInputdeletedRef.current?.(e);
602
- el.addEventListener('inputdeleted', _onInputdeletedFn);
603
- return () => {
604
- el.removeEventListener('inputdeleted', _onInputdeletedFn);
605
- };
606
- }, []);
607
- return React.createElement(customElements.getName(SearchBarComboboxWC) ?? '%%prefix%%-search-bar-combobox', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
594
+ const { children, ...rest } = props;
595
+ return React.createElement(customElements.getName(SearchBarComboboxWC) ?? '%%prefix%%-search-bar-combobox', { ...rest, ref }, children);
608
596
  });
609
597
 
610
598
  const SearchBar = React.forwardRef(function SearchBar(props, ref) {
package/dist/react.mjs CHANGED
@@ -589,20 +589,8 @@ export const SchedulerTimezone = React.forwardRef(function SchedulerTimezone(pro
589
589
  });
590
590
 
591
591
  export const SearchBarCombobox = React.forwardRef(function SearchBarCombobox(props, ref) {
592
- const { onInputdeleted, children, ...rest } = props;
593
- const _innerRef = React.useRef(null);
594
- const _onInputdeletedRef = React.useRef(onInputdeleted);
595
- _onInputdeletedRef.current = onInputdeleted;
596
- React.useLayoutEffect(() => {
597
- const el = _innerRef.current;
598
- if (!el) return;
599
- const _onInputdeletedFn = (e) => _onInputdeletedRef.current?.(e);
600
- el.addEventListener('inputdeleted', _onInputdeletedFn);
601
- return () => {
602
- el.removeEventListener('inputdeleted', _onInputdeletedFn);
603
- };
604
- }, []);
605
- return React.createElement(customElements.getName(SearchBarComboboxWC) ?? '%%prefix%%-search-bar-combobox', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
592
+ const { children, ...rest } = props;
593
+ return React.createElement(customElements.getName(SearchBarComboboxWC) ?? '%%prefix%%-search-bar-combobox', { ...rest, ref }, children);
606
594
  });
607
595
 
608
596
  export const SearchBar = React.forwardRef(function SearchBar(props, ref) {
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.437.4",
4
+ "version": "14.437.5-canary.gs-updates",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -73,18 +73,18 @@
73
73
  },
74
74
  "devDependencies": {
75
75
  "@genesiscommunitysuccess/analyzer-import-alias-plugin": "^5.0.3",
76
- "@genesislcap/genx": "14.437.4",
77
- "@genesislcap/rollup-builder": "14.437.4",
78
- "@genesislcap/ts-builder": "14.437.4",
79
- "@genesislcap/uvu-playwright-builder": "14.437.4",
80
- "@genesislcap/vite-builder": "14.437.4",
81
- "@genesislcap/webpack-builder": "14.437.4"
76
+ "@genesislcap/genx": "14.437.5-canary.gs-updates",
77
+ "@genesislcap/rollup-builder": "14.437.5-canary.gs-updates",
78
+ "@genesislcap/ts-builder": "14.437.5-canary.gs-updates",
79
+ "@genesislcap/uvu-playwright-builder": "14.437.5-canary.gs-updates",
80
+ "@genesislcap/vite-builder": "14.437.5-canary.gs-updates",
81
+ "@genesislcap/webpack-builder": "14.437.5-canary.gs-updates"
82
82
  },
83
83
  "dependencies": {
84
- "@genesislcap/foundation-comms": "14.437.4",
85
- "@genesislcap/foundation-logger": "14.437.4",
86
- "@genesislcap/foundation-ui": "14.437.4",
87
- "@genesislcap/foundation-utils": "14.437.4",
84
+ "@genesislcap/foundation-comms": "14.437.5-canary.gs-updates",
85
+ "@genesislcap/foundation-logger": "14.437.5-canary.gs-updates",
86
+ "@genesislcap/foundation-ui": "14.437.5-canary.gs-updates",
87
+ "@genesislcap/foundation-utils": "14.437.5-canary.gs-updates",
88
88
  "@microsoft/fast-colors": "5.3.1",
89
89
  "@microsoft/fast-components": "2.30.6",
90
90
  "@microsoft/fast-element": "1.14.0",
@@ -111,5 +111,5 @@
111
111
  "require": "./dist/react.cjs"
112
112
  }
113
113
  },
114
- "gitHead": "5f6ec4ccb68ca89f8e9b7c4bb36edb954ff9c664"
114
+ "gitHead": "d15cd7f49b7f5d1ddcbd9e71cf94598091fe5c1a"
115
115
  }