@magicx-eng/ai-autocomplete-angular 0.16.2 → 0.16.3
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.
- package/esm2020/lib/ai-autocomplete-dropdown/ai-autocomplete-dropdown.component.mjs +9 -2
- package/fesm2015/magicx-eng-ai-autocomplete-angular.mjs +8 -1
- package/fesm2015/magicx-eng-ai-autocomplete-angular.mjs.map +1 -1
- package/fesm2020/magicx-eng-ai-autocomplete-angular.mjs +8 -1
- package/fesm2020/magicx-eng-ai-autocomplete-angular.mjs.map +1 -1
- package/lib/ai-autocomplete-dropdown/ai-autocomplete-dropdown.component.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -850,9 +850,16 @@ class AIAutocompleteDropdownComponent {
|
|
|
850
850
|
// derive layer — so the two are the same list drawn two different
|
|
851
851
|
// ways, and never both at once (two elements answering to the same
|
|
852
852
|
// option id would break keyboard commit).
|
|
853
|
+
//
|
|
854
|
+
// A calendar is withheld while a request is in flight. The options
|
|
855
|
+
// grid draws its cached options as skeleton rows for that window, but
|
|
856
|
+
// a month of day cells has no skeleton form worth drawing — and a live
|
|
857
|
+
// calendar over a loading pill bar invites an answer against
|
|
858
|
+
// suggestions the response is about to replace. The fallback bars
|
|
859
|
+
// stand in until it lands.
|
|
853
860
|
const isDate = isCalendarFormat(dd.formatType ?? "options") && dd.dateView != null;
|
|
854
861
|
const showsOptions = options.length > 0 && !isDate;
|
|
855
|
-
const showsDateGrid = options.length > 0 && isDate;
|
|
862
|
+
const showsDateGrid = options.length > 0 && isDate && !dd.isLoading;
|
|
856
863
|
const showsFallbackSkeleton = dd.isLoading && !showsOptions && !showsDateGrid;
|
|
857
864
|
// Either half is enough to keep the panel up: products render with no
|
|
858
865
|
// suggestions, suggestions render with no products.
|