@smilodon/core 1.21.0 → 1.23.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.
@@ -28,6 +28,7 @@ export declare class EnhancedSelect extends HTMLElement implements EnhancedSelec
28
28
  private _inputContent;
29
29
  private _input;
30
30
  private _selectedLabelTooltip;
31
+ private _selectedLabelTooltipTextMeasure;
31
32
  private _selectedLabelTooltipTrigger;
32
33
  private _selectedLabelTooltipPointerTrigger;
33
34
  private _selectedLabelTooltipFocusTrigger;
@@ -38,10 +39,12 @@ export declare class EnhancedSelect extends HTMLElement implements EnhancedSelec
38
39
  private _selectedLabelTooltipMeasureFrame;
39
40
  private _selectedLabelKeys;
40
41
  private _dropdown;
42
+ private _dropdownConfigInlineStyles;
41
43
  private _optionsContainer;
42
44
  private _loadMoreTrigger?;
43
45
  private _acknowledgedSentinel?;
44
46
  private _busyBucket?;
47
+ private _managedLoaderClasses;
45
48
  private _busyBucketContentObserver?;
46
49
  private _busyPresentationVisible;
47
50
  private _busyPresentationStartedAt;
@@ -239,6 +242,7 @@ export declare class EnhancedSelect extends HTMLElement implements EnhancedSelec
239
242
  private _registerShadowItems;
240
243
  private _syncLegacyActiveAria;
241
244
  private _syncStyleConfigVariables;
245
+ private _syncLoaderClassNames;
242
246
  private _resolveDropdownPlacement;
243
247
  private _syncDropdownPlacement;
244
248
  private _syncDirectionConfig;
@@ -253,7 +257,9 @@ export declare class EnhancedSelect extends HTMLElement implements EnhancedSelec
253
257
  private _endMultiScrollDrag;
254
258
  private _createInput;
255
259
  private _createSelectedLabelTooltip;
260
+ private _createSelectedLabelTooltipTextMeasure;
256
261
  private _createDropdown;
262
+ private _syncDropdownConfigInlineStyles;
257
263
  private _createOptionsContainer;
258
264
  private _createLiveRegion;
259
265
  private _createErrorDescription;
@@ -271,6 +277,8 @@ export declare class EnhancedSelect extends HTMLElement implements EnhancedSelec
271
277
  private _selectedLabelTriggerFromTarget;
272
278
  private _getSelectedLabelForTrigger;
273
279
  private _isSelectedLabelTruncated;
280
+ private _getSelectedLabelTooltipContent;
281
+ private _isSelectedLabelTooltipContentTruncated;
274
282
  private _handleSelectedLabelPointerOver;
275
283
  private _handleSelectedLabelPointerOut;
276
284
  private _handleSelectedLabelFocusIn;
@@ -359,6 +367,7 @@ export declare class EnhancedSelect extends HTMLElement implements EnhancedSelec
359
367
  private _createChip;
360
368
  private _updateChip;
361
369
  private _renderSelectedChips;
370
+ private _syncMultiSelectPlaceholderVisibility;
362
371
  private _updateInputDisplay;
363
372
  private _cancelLatestChipScroll;
364
373
  private _scheduleLatestChipScroll;
@@ -522,6 +531,7 @@ export declare class EnhancedSelect extends HTMLElement implements EnhancedSelec
522
531
  private _syncBusyBucketContent;
523
532
  private _createBusyBucket;
524
533
  private _appendBusyBucket;
534
+ private _createSearchingState;
525
535
  private _renderOptions;
526
536
  private _waitForRenderCycle;
527
537
  private _resolveRenderCycle;
@@ -35,6 +35,8 @@ export interface LoadMoreConfig {
35
35
  threshold?: number;
36
36
  /** Show loading indicator */
37
37
  showLoader?: boolean;
38
+ /** Visible label for the manual load-more action; defaults to `Load N more`. */
39
+ label?: string;
38
40
  }
39
41
  export interface BusyBucketConfig {
40
42
  /** Enable busy/loading state bucket */
@@ -108,6 +110,8 @@ export interface DisabledOptionBehaviorConfig {
108
110
  hoverable?: boolean;
109
111
  /** Allow visually disabled options to receive keyboard active/focus styling */
110
112
  focusable?: boolean;
113
+ /** Close the dropdown when a disabled option is clicked while selection is blocked; defaults to false. */
114
+ closeOnClick?: boolean;
111
115
  }
112
116
  export interface MultiSelectDisplayConfig {
113
117
  /** Layout mode for selected chips in multi-select mode */
@@ -167,7 +171,7 @@ export interface StyleConfig {
167
171
  badgeRemoveActive?: StyleObject;
168
172
  /** Group header styles */
169
173
  groupHeader?: StyleObject;
170
- /** Loading indicator styles */
174
+ /** Shared visual styles for busy and searching state containers */
171
175
  loader?: StyleObject;
172
176
  /** Custom CSS class names */
173
177
  classNames?: {
@@ -303,6 +307,8 @@ export interface GlobalSelectConfig {
303
307
  searchable?: boolean;
304
308
  /** Placeholder text */
305
309
  placeholder?: string;
310
+ /** Message announced and shown while a search request is pending. */
311
+ searchingMessage?: string;
306
312
  /** Legacy chunked rendering toggle for large flat EnhancedSelect lists; not viewport windowing. */
307
313
  virtualize?: boolean;
308
314
  /** Estimated row height used by the guarded EnhancedSelect viewport-windowing test path. */
@@ -1,4 +1,4 @@
1
1
  export type SelectKey = string | number;
2
- export type CloseReason = 'escape' | 'outside-pointer' | 'selection' | 'blur' | 'programmatic' | 'disabled' | 'disconnect';
2
+ export type CloseReason = 'escape' | 'outside-pointer' | 'selection' | 'blur' | 'programmatic' | 'disabled' | 'disabled-option-click' | 'disconnect';
3
3
  export type { ItemAdapter } from './item-adapter.js';
4
4
  export type SelectionMode = 'single' | 'multi';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smilodon/core",
3
- "version": "1.21.0",
3
+ "version": "1.23.0",
4
4
  "description": "High-performance native select component with extreme-scale virtualization - React, Vue, Svelte, Vanilla JS",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",