@cocoar/ui 0.2.0 → 0.2.1
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.
|
@@ -2121,7 +2121,7 @@ class CoarSingleSelectComponent extends CoarSelectBase {
|
|
|
2121
2121
|
.position({ placement, offset: 4, flip: false, shift: false })
|
|
2122
2122
|
.scroll({ strategy: 'reposition' })
|
|
2123
2123
|
.dismiss({ outsideClick: true, escapeKey: true })
|
|
2124
|
-
.size({
|
|
2124
|
+
.size({ minWidth: 'anchor' })
|
|
2125
2125
|
.panelClass(sizeClass)
|
|
2126
2126
|
.fromTemplate(template)
|
|
2127
2127
|
.open({});
|
|
@@ -2370,7 +2370,7 @@ class CoarMultiSelectComponent extends CoarSelectBase {
|
|
|
2370
2370
|
.position({ placement, offset: 4, flip: false, shift: false })
|
|
2371
2371
|
.scroll({ strategy: 'reposition' })
|
|
2372
2372
|
.dismiss({ outsideClick: true, escapeKey: true })
|
|
2373
|
-
.size({
|
|
2373
|
+
.size({ minWidth: 'anchor' })
|
|
2374
2374
|
.panelClass(sizeClass)
|
|
2375
2375
|
.fromTemplate(template)
|
|
2376
2376
|
.open({});
|
|
@@ -2752,7 +2752,7 @@ class CoarTagSelectComponent extends CoarSelectBase {
|
|
|
2752
2752
|
.position({ placement, offset: 4, flip: false, shift: false })
|
|
2753
2753
|
.scroll({ strategy: 'reposition' })
|
|
2754
2754
|
.dismiss({ outsideClick: true, escapeKey: true })
|
|
2755
|
-
.size({
|
|
2755
|
+
.size({ minWidth: 'anchor' })
|
|
2756
2756
|
.panelClass(sizeClass)
|
|
2757
2757
|
.fromTemplate(template)
|
|
2758
2758
|
.open({});
|
|
@@ -4364,11 +4364,12 @@ class CoarDatePickerBase extends CoarControlValueAccessor {
|
|
|
4364
4364
|
const locale = this.effectiveLocale();
|
|
4365
4365
|
const localeData = locale ? this.localizationDataStore?.getLocaleData(locale) : undefined;
|
|
4366
4366
|
const cachedMonthNames = localeData?.date?.monthNamesShort;
|
|
4367
|
-
const formatter = cachedMonthNames
|
|
4367
|
+
const formatter = cachedMonthNames
|
|
4368
|
+
? undefined
|
|
4369
|
+
: new Intl.DateTimeFormat(locale, { month: 'short' });
|
|
4368
4370
|
const items = [];
|
|
4369
4371
|
for (let m = 1; m <= 12; m++) {
|
|
4370
|
-
const name = cachedMonthNames?.[m - 1]
|
|
4371
|
-
?? formatter.format(new Date(year, m - 1, 1));
|
|
4372
|
+
const name = cachedMonthNames?.[m - 1] ?? formatter.format(new Date(year, m - 1, 1));
|
|
4372
4373
|
const yearMonth = Temporal.PlainYearMonth.from({ year, month: m });
|
|
4373
4374
|
items.push({
|
|
4374
4375
|
month: m,
|
|
@@ -4487,7 +4488,6 @@ class CoarDatePickerBase extends CoarControlValueAccessor {
|
|
|
4487
4488
|
})
|
|
4488
4489
|
.scroll({ strategy: 'reposition' })
|
|
4489
4490
|
.dismiss({ outsideClick: true, escapeKey: true })
|
|
4490
|
-
.size({ mode: 'content' })
|
|
4491
4491
|
.fromTemplate(template)
|
|
4492
4492
|
.open({});
|
|
4493
4493
|
this.overlayRef = ref;
|
|
@@ -6901,7 +6901,6 @@ class CoarPopoverComponent {
|
|
|
6901
6901
|
})
|
|
6902
6902
|
.scroll({ strategy: 'reposition' })
|
|
6903
6903
|
.dismiss({ outsideClick: false, escapeKey: true })
|
|
6904
|
-
.size({ mode: 'content' })
|
|
6905
6904
|
.a11y({ role: 'tooltip' })
|
|
6906
6905
|
.fromTemplate(template)
|
|
6907
6906
|
.open({});
|
|
@@ -8828,7 +8827,6 @@ class CoarTooltipDirective {
|
|
|
8828
8827
|
.position(position)
|
|
8829
8828
|
.scroll({ strategy: 'reposition' })
|
|
8830
8829
|
.dismiss({ outsideClick: false, escapeKey: true })
|
|
8831
|
-
.size({ mode: 'content' })
|
|
8832
8830
|
.a11y({ role: 'tooltip' })
|
|
8833
8831
|
.fromComponent(CoarTooltipOverlayComponent)
|
|
8834
8832
|
.open({
|