@nanahoshi/mona-ui 0.32.1 → 0.32.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/docs/api/calendar.md +1 -1
- package/docs/api/i18n.md +3 -3
- package/docs/api/list-box.md +1 -1
- package/docs/api/tabs.md +1 -1
- package/docs/breadcrumb.md +6 -1
- package/docs/chart-line-area.md +6 -1
- package/docs/chart-treemap.md +1 -1
- package/docs/checkbox.md +1 -3
- package/docs/circular-progress-bar.md +26 -5
- package/docs/collapsible.md +28 -6
- package/docs/color-palette.md +24 -3
- package/docs/date-range-picker.md +1 -5
- package/docs/dropdown-button.md +6 -1
- package/docs/editor.md +8 -2
- package/docs/expansion-panel.md +6 -1
- package/docs/otp-input.md +12 -4
- package/docs/popup.md +2 -6
- package/docs/progress-bar.md +12 -3
- package/docs/scroll-view.md +6 -3
- package/docs/sheet.md +6 -2
- package/docs/sidebar.md +5 -1
- package/docs/skeleton.md +9 -2
- package/docs/stepper.md +3 -1
- package/docs/textarea.md +7 -1
- package/docs/textbox.md +7 -1
- package/docs/window.md +1 -1
- package/fesm2022/nanahoshi-mona-ui-card.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-chart.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-date-range-picker.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-datetime-picker.mjs +6 -3
- package/fesm2022/nanahoshi-mona-ui-dropdowns.mjs +8 -3
- package/fesm2022/nanahoshi-mona-ui-editor.mjs +8 -8
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-list.component-WbXAzGCa.mjs → nanahoshi-mona-ui-grid-grid-list.component-C1qjq2s7.mjs} +2 -2
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-row.component-DkWTD3pN.mjs → nanahoshi-mona-ui-grid-grid-row.component-CgOt2A6O.mjs} +3 -3
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-virtual-list.component-DAHqTwBJ.mjs → nanahoshi-mona-ui-grid-grid-virtual-list.component-tguG2LpN.mjs} +2 -2
- package/fesm2022/nanahoshi-mona-ui-grid.mjs +8 -8
- package/fesm2022/nanahoshi-mona-ui-pager.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-segmented.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-spinner.mjs +4 -4
- package/fesm2022/nanahoshi-mona-ui-tabs.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-time-selector.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-window.mjs +15 -67
- package/package.json +1 -1
- package/types/nanahoshi-mona-ui-datetime-picker.d.ts +2 -0
- package/types/nanahoshi-mona-ui-i18n.d.ts +13 -13
|
@@ -3042,7 +3042,7 @@ var GridColumnChooserComponent = class GridColumnChooserComponent {
|
|
|
3042
3042
|
cancel: "cancel"
|
|
3043
3043
|
},
|
|
3044
3044
|
ngImport: i0,
|
|
3045
|
-
template: "<mona-list-view\n [items]=\"columnListSource()\"\n [textField]=\"'title'\"\n [height]=\"'auto'\"\n [maxHeight]=\"300\"\n [monaListViewSelectable]=\"{ enabled: true, mode: 'multiple', checkboxes: true }\"\n [selectBy]=\"'field'\"\n [selectedKeys]=\"selectedColumnFields()\"\n (selectedKeysChange)=\"onSelectedKeysChange($event)\"\n [rounded]=\"'none'\"\n [size]=\"'small'\"\n class=\"shadow-lg\">\n <ng-template monaListViewHeaderTemplate>\n <div class=\"flex p-1 bg-header-background border-b border-b-border\">\n <mona-filter-input\n [filter]=\"filterText()\"\n (filterChange)=\"filterText.set($event.filter)\"></mona-filter-input>\n </div>\n </ng-template>\n <ng-template monaListViewFooterTemplate>\n <div class=\"flex px-3 py-1 font-medium bg-header-background border-t border-t-border\">\n {{ messages().columnsSelected(selectedColumnFields().length) }}\n </div>\n <div class=\"flex gap-2 px-2 py-2 bg-header-background border-t border-t-border\">\n <button class=\"flex-1\" monaButton [size]=\"'small'\" look=\"primary\" (click)=\"onApplyClick()\"
|
|
3045
|
+
template: "<mona-list-view\n [items]=\"columnListSource()\"\n [textField]=\"'title'\"\n [height]=\"'auto'\"\n [maxHeight]=\"300\"\n [monaListViewSelectable]=\"{ enabled: true, mode: 'multiple', checkboxes: true }\"\n [selectBy]=\"'field'\"\n [selectedKeys]=\"selectedColumnFields()\"\n (selectedKeysChange)=\"onSelectedKeysChange($event)\"\n [rounded]=\"'none'\"\n [size]=\"'small'\"\n class=\"shadow-lg\">\n <ng-template monaListViewHeaderTemplate>\n <div class=\"flex p-1 bg-header-background border-b border-b-border\">\n <mona-filter-input\n [filter]=\"filterText()\"\n (filterChange)=\"filterText.set($event.filter)\"></mona-filter-input>\n </div>\n </ng-template>\n <ng-template monaListViewFooterTemplate>\n <div class=\"flex px-3 py-1 font-medium bg-header-background border-t border-t-border\">\n {{ messages().columnsSelected(selectedColumnFields().length) }}\n </div>\n <div class=\"flex gap-2 px-2 py-2 bg-header-background border-t border-t-border\">\n <button class=\"flex-1\" monaButton [size]=\"'small'\" look=\"primary\" (click)=\"onApplyClick()\">\n {{ messages().apply }}\n </button>\n <button class=\"flex-1\" monaButton [size]=\"'small'\" (click)=\"onCancelClick()\">\n {{ messages().cancel }}\n </button>\n </div>\n </ng-template>\n</mona-list-view>\n",
|
|
3046
3046
|
dependencies: [
|
|
3047
3047
|
{
|
|
3048
3048
|
kind: "component",
|
|
@@ -3154,7 +3154,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
3154
3154
|
ListViewSelectableDirective,
|
|
3155
3155
|
ListViewFooterTemplateDirective
|
|
3156
3156
|
],
|
|
3157
|
-
template: "<mona-list-view\n [items]=\"columnListSource()\"\n [textField]=\"'title'\"\n [height]=\"'auto'\"\n [maxHeight]=\"300\"\n [monaListViewSelectable]=\"{ enabled: true, mode: 'multiple', checkboxes: true }\"\n [selectBy]=\"'field'\"\n [selectedKeys]=\"selectedColumnFields()\"\n (selectedKeysChange)=\"onSelectedKeysChange($event)\"\n [rounded]=\"'none'\"\n [size]=\"'small'\"\n class=\"shadow-lg\">\n <ng-template monaListViewHeaderTemplate>\n <div class=\"flex p-1 bg-header-background border-b border-b-border\">\n <mona-filter-input\n [filter]=\"filterText()\"\n (filterChange)=\"filterText.set($event.filter)\"></mona-filter-input>\n </div>\n </ng-template>\n <ng-template monaListViewFooterTemplate>\n <div class=\"flex px-3 py-1 font-medium bg-header-background border-t border-t-border\">\n {{ messages().columnsSelected(selectedColumnFields().length) }}\n </div>\n <div class=\"flex gap-2 px-2 py-2 bg-header-background border-t border-t-border\">\n <button class=\"flex-1\" monaButton [size]=\"'small'\" look=\"primary\" (click)=\"onApplyClick()\"
|
|
3157
|
+
template: "<mona-list-view\n [items]=\"columnListSource()\"\n [textField]=\"'title'\"\n [height]=\"'auto'\"\n [maxHeight]=\"300\"\n [monaListViewSelectable]=\"{ enabled: true, mode: 'multiple', checkboxes: true }\"\n [selectBy]=\"'field'\"\n [selectedKeys]=\"selectedColumnFields()\"\n (selectedKeysChange)=\"onSelectedKeysChange($event)\"\n [rounded]=\"'none'\"\n [size]=\"'small'\"\n class=\"shadow-lg\">\n <ng-template monaListViewHeaderTemplate>\n <div class=\"flex p-1 bg-header-background border-b border-b-border\">\n <mona-filter-input\n [filter]=\"filterText()\"\n (filterChange)=\"filterText.set($event.filter)\"></mona-filter-input>\n </div>\n </ng-template>\n <ng-template monaListViewFooterTemplate>\n <div class=\"flex px-3 py-1 font-medium bg-header-background border-t border-t-border\">\n {{ messages().columnsSelected(selectedColumnFields().length) }}\n </div>\n <div class=\"flex gap-2 px-2 py-2 bg-header-background border-t border-t-border\">\n <button class=\"flex-1\" monaButton [size]=\"'small'\" look=\"primary\" (click)=\"onApplyClick()\">\n {{ messages().apply }}\n </button>\n <button class=\"flex-1\" monaButton [size]=\"'small'\" (click)=\"onCancelClick()\">\n {{ messages().cancel }}\n </button>\n </div>\n </ng-template>\n</mona-list-view>\n"
|
|
3158
3158
|
}]
|
|
3159
3159
|
}],
|
|
3160
3160
|
ctorParameters: () => [],
|
|
@@ -3905,7 +3905,7 @@ var GridSelectAllCheckboxComponent = class GridSelectAllCheckboxComponent {
|
|
|
3905
3905
|
properties: { "class": "hostClass" }
|
|
3906
3906
|
},
|
|
3907
3907
|
ngImport: i0,
|
|
3908
|
-
template: "<mona-check-box
|
|
3908
|
+
template: "<mona-check-box [checked]=\"checked()\" [indeterminate]=\"indeterminate()\" (checkedChange)=\"onCheckedChange($event)\">\n <span class=\"sr-only\">{{ messages().selectAllRows }}</span>\n</mona-check-box>\n",
|
|
3909
3909
|
dependencies: [{
|
|
3910
3910
|
kind: "component",
|
|
3911
3911
|
type: CheckBoxComponent,
|
|
@@ -3956,7 +3956,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
3956
3956
|
"[class]": "hostClass",
|
|
3957
3957
|
"(click)": "$event.stopPropagation()"
|
|
3958
3958
|
},
|
|
3959
|
-
template: "<mona-check-box
|
|
3959
|
+
template: "<mona-check-box [checked]=\"checked()\" [indeterminate]=\"indeterminate()\" (checkedChange)=\"onCheckedChange($event)\">\n <span class=\"sr-only\">{{ messages().selectAllRows }}</span>\n</mona-check-box>\n"
|
|
3960
3960
|
}]
|
|
3961
3961
|
}]
|
|
3962
3962
|
});
|
|
@@ -5172,8 +5172,8 @@ var GridComponent = class GridComponent {
|
|
|
5172
5172
|
NgTemplateOutlet,
|
|
5173
5173
|
GridColgroupComponent,
|
|
5174
5174
|
import("./nanahoshi-mona-ui-grid-grid-footer-row.component-Djv8ZnT5.mjs").then((m) => m.GridFooterRowComponent),
|
|
5175
|
-
import("./nanahoshi-mona-ui-grid-grid-list.component-
|
|
5176
|
-
import("./nanahoshi-mona-ui-grid-grid-virtual-list.component-
|
|
5175
|
+
import("./nanahoshi-mona-ui-grid-grid-list.component-C1qjq2s7.mjs").then((m) => m.GridListComponent),
|
|
5176
|
+
import("./nanahoshi-mona-ui-grid-grid-virtual-list.component-tguG2LpN.mjs").then((m) => m.GridVirtualListComponent),
|
|
5177
5177
|
import("@nanahoshi/mona-ui/spinner").then((m) => m.SpinnerComponent)
|
|
5178
5178
|
]]
|
|
5179
5179
|
});
|
|
@@ -5186,8 +5186,8 @@ i0.ɵɵngDeclareClassMetadataAsync({
|
|
|
5186
5186
|
type: GridComponent,
|
|
5187
5187
|
resolveDeferredDeps: () => [
|
|
5188
5188
|
import("./nanahoshi-mona-ui-grid-grid-footer-row.component-Djv8ZnT5.mjs").then((m) => m.GridFooterRowComponent),
|
|
5189
|
-
import("./nanahoshi-mona-ui-grid-grid-list.component-
|
|
5190
|
-
import("./nanahoshi-mona-ui-grid-grid-virtual-list.component-
|
|
5189
|
+
import("./nanahoshi-mona-ui-grid-grid-list.component-C1qjq2s7.mjs").then((m) => m.GridListComponent),
|
|
5190
|
+
import("./nanahoshi-mona-ui-grid-grid-virtual-list.component-tguG2LpN.mjs").then((m) => m.GridVirtualListComponent),
|
|
5191
5191
|
import("@nanahoshi/mona-ui/spinner").then((m) => m.SpinnerComponent)
|
|
5192
5192
|
],
|
|
5193
5193
|
resolveMetadata: (GridFooterRowComponent, GridListComponent, GridVirtualListComponent, SpinnerComponent) => ({
|
|
@@ -805,7 +805,7 @@ var PagerComponent = class PagerComponent {
|
|
|
805
805
|
isSignal: true
|
|
806
806
|
}],
|
|
807
807
|
ngImport: i0,
|
|
808
|
-
template: "@let numericButtonsTemplateRef = numericButtonsTemplate()?.templateRef;\n@let pageSizeTemplateRef = pageSizeTemplate();\n@let pagerInfoTemplateRef = pagerInfoTemplate()?.templateRef;\n\n@if (compact()) {\n <ol [class]=\"listClasses\">\n @if (firstLast()) {\n <ng-container [ngTemplateOutlet]=\"firstPageButton\"></ng-container>\n }\n @if (previousNext()) {\n <ng-container [ngTemplateOutlet]=\"previousPageButton\"></ng-container>\n }\n @if (hasPages()) {\n <li>\n <mona-dropdown-list\n class=\"w-20\"\n [data]=\"pageList()\"\n [value]=\"page()\"\n [aria-label]=\"messages().pageSelectLabel\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n monaDropDownVirtualScroll\n (valueChange)=\"goToPage($event)\">\n <ng-template monaDropDownListValueTemplate let-item>\n <span>{{ formatPageNumber(item) }}</span>\n </ng-template>\n <ng-template monaDropDownItemTemplate let-item>\n <span>{{ formatPageNumber(item) }}</span>\n </ng-template>\n </mona-dropdown-list>\n </li>\n }\n @if (previousNext()) {\n <ng-container [ngTemplateOutlet]=\"nextPageButton\"></ng-container>\n }\n @if (firstLast()) {\n <ng-container [ngTemplateOutlet]=\"lastPageButton\"></ng-container>\n }\n <ng-container [ngTemplateOutlet]=\"pageSizeSelector\"></ng-container>\n </ol>\n} @else if (type() === \"numeric\") {\n <ol [class]=\"listClasses\">\n @if (firstLast()) {\n <ng-container [ngTemplateOutlet]=\"firstPageButton\"></ng-container>\n }\n @if (previousNext()) {\n <ng-container [ngTemplateOutlet]=\"previousPageButton\"></ng-container>\n }\n\n @if (numericButtonsTemplateRef) {\n <ng-container\n [ngTemplateOutlet]=\"numericButtonsTemplateRef\"\n [ngTemplateOutletContext]=\"numericButtonsContext()\"></ng-container>\n } @else {\n @for (item of pageItems(); track item.key) {\n @if (item.kind === \"page\") {\n <li [attr.data-page]=\"item.page\" [class]=\"pageItemClasses(page() === item.page)\">\n <button\n monaButton\n look=\"ghost\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [selected]=\"page() === item.page\"\n [attr.aria-label]=\"messages().pageLabel(item.page)\"\n [attr.aria-current]=\"page() === item.page ? 'page' : null\"\n (click)=\"goToPage(item.page)\">\n {{ formatPageNumber(item.page) }}\n </button>\n </li>\n } @else {\n <li>\n <button\n monaButton\n look=\"ghost\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [attr.aria-label]=\"item.direction === 'backward' ? jumpPreviousLabel() : jumpNextLabel()\"\n (click)=\"goToPage(item.page)\">\n <svg lucideEllipsis [size]=\"iconSize()\"></svg>\n </button>\n </li>\n }\n }\n }\n\n @if (previousNext()) {\n <ng-container [ngTemplateOutlet]=\"nextPageButton\"></ng-container>\n }\n @if (firstLast()) {\n <ng-container [ngTemplateOutlet]=\"lastPageButton\"></ng-container>\n }\n\n @if (hasPages() && pageInput()) {\n <li>\n <mona-numeric-text-box\n [inputId]=\"pageInputId\"\n [spinners]=\"false\"\n [minValue]=\"1\"\n [maxValue]=\"pageCount()\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [aria-label]=\"messages().pageSelectLabel\"\n [value]=\"inputValue()\"\n (valueChange)=\"inputValue.set($event)\"\n (keydown.enter)=\"onPageInputEnter($event)\"\n (inputBlur)=\"commitPageInput()\"></mona-numeric-text-box>\n </li>\n }\n <ng-container [ngTemplateOutlet]=\"pageSizeSelector\"></ng-container>\n </ol>\n} @else {\n <div [class]=\"inputClasses\">\n <ol [class]=\"listClasses\">\n @if (firstLast()) {\n <ng-container [ngTemplateOutlet]=\"firstPageButton\"></ng-container>\n }\n @if (previousNext()) {\n <ng-container [ngTemplateOutlet]=\"previousPageButton\"></ng-container>\n }\n @if (hasPages()) {\n <li class=\"flex items-center gap-2 mx-2\">\n <span [id]=\"pageInputPrefixId\">{{ messages().pageInputPrefix(pageCount()) }}</span>\n <mona-numeric-text-box\n [inputId]=\"pageInputId\"\n [spinners]=\"false\"\n [minValue]=\"1\"\n [maxValue]=\"pageCount()\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [aria-labelledby]=\"pageInputLabelledBy\"\n [value]=\"inputValue()\"\n (valueChange)=\"inputValue.set($event)\"\n (keydown.enter)=\"onPageInputEnter($event)\"\n (inputBlur)=\"commitPageInput()\"></mona-numeric-text-box>\n <span [id]=\"pageInputSuffixId\">{{ messages().pageInputSuffix(pageCount()) }}</span>\n </li>\n }\n @if (previousNext()) {\n <ng-container [ngTemplateOutlet]=\"nextPageButton\"></ng-container>\n }\n @if (firstLast()) {\n <ng-container [ngTemplateOutlet]=\"lastPageButton\"></ng-container>\n }\n </ol>\n </div>\n}\n\n@if (showInfo()) {\n @if (pagerInfoTemplateRef) {\n <ng-container [ngTemplateOutlet]=\"pagerInfoTemplateRef\" [ngTemplateOutletContext]=\"infoContext()\"></ng-container>\n } @else {\n <span [class]=\"infoClasses\">{{ pagerInfo() }}</span>\n }\n}\n<span class=\"sr-only\" role=\"status\" aria-live=\"polite\" aria-atomic=\"true\">{{ liveStatus() }}</span>\n\n<ng-template #pageSizeSelector>\n @if (pageSizeOptions().length > 0) {\n <li>\n @if (pageSizeTemplateRef) {\n <ng-container\n [ngTemplateOutlet]=\"pageSizeTemplateRef\"\n [ngTemplateOutletContext]=\"pageSizeContext()\"></ng-container>\n } @else {\n <mona-dropdown-list\n [data]=\"pageSizeOptions()\"\n [aria-label]=\"messages().itemsPerPageLabel\"\n [value]=\"pageSizeValue()\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n (valueChange)=\"changePageSize($event)\"\n #pageSizeDropdownList>\n <ng-template monaDropDownListValueTemplate let-item>\n <span>{{ messages().pageSizeLabel(item) }}</span>\n </ng-template>\n <ng-template monaDropDownItemTemplate let-item>\n <span>{{ formatPageNumber(item) }}</span>\n </ng-template>\n </mona-dropdown-list>\n }\n </li>\n }\n</ng-template>\n\n<ng-template #firstPageButton>\n <li>\n @let firstPageTemplate = firstPageNavigationTemplate();\n @if (firstPageTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"firstPageTemplate.templateRef\"\n [ngTemplateOutletContext]=\"firstNavigationContext()\"></ng-container>\n } @else {\n <button\n monaButton\n look=\"ghost\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [attr.aria-label]=\"messages().firstPageLabel\"\n [disabled]=\"firstNavigationContext().disabled\"\n (click)=\"goToPage(1)\">\n <svg lucideChevronsLeft class=\"rtl:rotate-180\" [size]=\"iconSize()\"></svg>\n </button>\n }\n </li>\n</ng-template>\n\n<ng-template #previousPageButton>\n <li>\n @let previousPageTemplate = previousPageNavigationTemplate();\n @if (previousPageTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"previousPageTemplate.templateRef\"\n [ngTemplateOutletContext]=\"previousNavigationContext()\"></ng-container>\n } @else {\n <button\n monaButton\n look=\"ghost\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [disabled]=\"previousNavigationContext().disabled\"\n [attr.aria-label]=\"messages().previousPageLabel\"\n (click)=\"goToPage(page() - 1)\">\n <svg lucideChevronLeft class=\"rtl:rotate-180\" [size]=\"iconSize()\"></svg>\n </button>\n }\n </li>\n</ng-template>\n\n<ng-template #nextPageButton>\n <li>\n @let nextPageTemplate = nextPageNavigationTemplate();\n @if (nextPageTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"nextPageTemplate.templateRef\"\n [ngTemplateOutletContext]=\"nextNavigationContext()\"></ng-container>\n } @else {\n <button\n monaButton\n look=\"ghost\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [disabled]=\"nextNavigationContext().disabled\"\n [attr.aria-label]=\"messages().nextPageLabel\"\n (click)=\"goToPage(page() + 1)\">\n <svg lucideChevronRight class=\"rtl:rotate-180\" [size]=\"iconSize()\"></svg>\n </button>\n }\n </li>\n</ng-template>\n\n<ng-template #lastPageButton>\n <li>\n @let lastPageTemplate = lastPageNavigationTemplate();\n @if (lastPageTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"lastPageTemplate.templateRef\"\n [ngTemplateOutletContext]=\"lastNavigationContext()\"></ng-container>\n } @else {\n <button\n monaButton\n look=\"ghost\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [attr.aria-label]=\"messages().lastPageLabel\"\n [disabled]=\"lastNavigationContext().disabled\"\n (click)=\"goToPage(pageCount())\">\n <svg lucideChevronsRight class=\"rtl:rotate-180\" [size]=\"iconSize()\"></svg>\n </button>\n }\n </li>\n</ng-template>\n",
|
|
808
|
+
template: "@let numericButtonsTemplateRef = numericButtonsTemplate()?.templateRef;\n@let pageSizeTemplateRef = pageSizeTemplate();\n@let pagerInfoTemplateRef = pagerInfoTemplate()?.templateRef;\n\n@if (compact()) {\n <ol [class]=\"listClasses\">\n @if (firstLast()) {\n <ng-container [ngTemplateOutlet]=\"firstPageButton\"></ng-container>\n }\n @if (previousNext()) {\n <ng-container [ngTemplateOutlet]=\"previousPageButton\"></ng-container>\n }\n @if (hasPages()) {\n <li>\n <mona-dropdown-list\n class=\"w-20\"\n [data]=\"pageList()\"\n [value]=\"page()\"\n [aria-label]=\"messages().pageSelectLabel\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n monaDropDownVirtualScroll\n (valueChange)=\"goToPage($event)\">\n <ng-template monaDropDownListValueTemplate let-item>\n <span>{{ formatPageNumber(item) }}</span>\n </ng-template>\n <ng-template monaDropDownItemTemplate let-item>\n <span>{{ formatPageNumber(item) }}</span>\n </ng-template>\n </mona-dropdown-list>\n </li>\n }\n @if (previousNext()) {\n <ng-container [ngTemplateOutlet]=\"nextPageButton\"></ng-container>\n }\n @if (firstLast()) {\n <ng-container [ngTemplateOutlet]=\"lastPageButton\"></ng-container>\n }\n <ng-container [ngTemplateOutlet]=\"pageSizeSelector\"></ng-container>\n </ol>\n} @else if (type() === \"numeric\") {\n <ol [class]=\"listClasses\">\n @if (firstLast()) {\n <ng-container [ngTemplateOutlet]=\"firstPageButton\"></ng-container>\n }\n @if (previousNext()) {\n <ng-container [ngTemplateOutlet]=\"previousPageButton\"></ng-container>\n }\n\n @if (numericButtonsTemplateRef) {\n <ng-container\n [ngTemplateOutlet]=\"numericButtonsTemplateRef\"\n [ngTemplateOutletContext]=\"numericButtonsContext()\"></ng-container>\n } @else {\n @for (item of pageItems(); track item.key) {\n @if (item.kind === \"page\") {\n <li [attr.data-page]=\"item.page\" [class]=\"pageItemClasses(page() === item.page)\">\n <button\n monaButton\n look=\"ghost\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [selected]=\"page() === item.page\"\n [attr.aria-label]=\"messages().pageLabel(item.page)\"\n [attr.aria-current]=\"page() === item.page ? 'page' : null\"\n (click)=\"goToPage(item.page)\">\n {{ formatPageNumber(item.page) }}\n </button>\n </li>\n } @else {\n <li>\n <button\n monaButton\n look=\"ghost\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [attr.aria-label]=\"item.direction === 'backward' ? jumpPreviousLabel() : jumpNextLabel()\"\n (click)=\"goToPage(item.page)\">\n <svg lucideEllipsis [size]=\"iconSize()\"></svg>\n </button>\n </li>\n }\n }\n }\n\n @if (previousNext()) {\n <ng-container [ngTemplateOutlet]=\"nextPageButton\"></ng-container>\n }\n @if (firstLast()) {\n <ng-container [ngTemplateOutlet]=\"lastPageButton\"></ng-container>\n }\n\n @if (hasPages() && pageInput()) {\n <li>\n <mona-numeric-text-box\n [inputId]=\"pageInputId\"\n [spinners]=\"false\"\n [minValue]=\"1\"\n [maxValue]=\"pageCount()\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [aria-label]=\"messages().pageSelectLabel\"\n [value]=\"inputValue()\"\n (valueChange)=\"inputValue.set($event)\"\n (keydown.enter)=\"onPageInputEnter($event)\"\n (inputBlur)=\"commitPageInput()\"></mona-numeric-text-box>\n </li>\n }\n <ng-container [ngTemplateOutlet]=\"pageSizeSelector\"></ng-container>\n </ol>\n} @else {\n <div [class]=\"inputClasses\">\n <ol [class]=\"listClasses\">\n @if (firstLast()) {\n <ng-container [ngTemplateOutlet]=\"firstPageButton\"></ng-container>\n }\n @if (previousNext()) {\n <ng-container [ngTemplateOutlet]=\"previousPageButton\"></ng-container>\n }\n @if (hasPages()) {\n <li class=\"flex items-center gap-2 mx-2\">\n <span [id]=\"pageInputPrefixId\">{{ messages().pageInputPrefix(pageCount()) }}</span>\n <mona-numeric-text-box\n [inputId]=\"pageInputId\"\n [spinners]=\"false\"\n [minValue]=\"1\"\n [maxValue]=\"pageCount()\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [aria-labelledby]=\"pageInputLabelledBy\"\n [value]=\"inputValue()\"\n (valueChange)=\"inputValue.set($event)\"\n (keydown.enter)=\"onPageInputEnter($event)\"\n (inputBlur)=\"commitPageInput()\"></mona-numeric-text-box>\n <span [id]=\"pageInputSuffixId\">{{ messages().pageInputSuffix(pageCount()) }}</span>\n </li>\n }\n @if (previousNext()) {\n <ng-container [ngTemplateOutlet]=\"nextPageButton\"></ng-container>\n }\n @if (firstLast()) {\n <ng-container [ngTemplateOutlet]=\"lastPageButton\"></ng-container>\n }\n </ol>\n </div>\n}\n\n@if (showInfo()) {\n @if (pagerInfoTemplateRef) {\n <ng-container\n [ngTemplateOutlet]=\"pagerInfoTemplateRef\"\n [ngTemplateOutletContext]=\"infoContext()\"></ng-container>\n } @else {\n <span [class]=\"infoClasses\">{{ pagerInfo() }}</span>\n }\n}\n<span class=\"sr-only\" role=\"status\" aria-live=\"polite\" aria-atomic=\"true\">{{ liveStatus() }}</span>\n\n<ng-template #pageSizeSelector>\n @if (pageSizeOptions().length > 0) {\n <li>\n @if (pageSizeTemplateRef) {\n <ng-container\n [ngTemplateOutlet]=\"pageSizeTemplateRef\"\n [ngTemplateOutletContext]=\"pageSizeContext()\"></ng-container>\n } @else {\n <mona-dropdown-list\n [data]=\"pageSizeOptions()\"\n [aria-label]=\"messages().itemsPerPageLabel\"\n [value]=\"pageSizeValue()\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n (valueChange)=\"changePageSize($event)\"\n #pageSizeDropdownList>\n <ng-template monaDropDownListValueTemplate let-item>\n <span>{{ messages().pageSizeLabel(item) }}</span>\n </ng-template>\n <ng-template monaDropDownItemTemplate let-item>\n <span>{{ formatPageNumber(item) }}</span>\n </ng-template>\n </mona-dropdown-list>\n }\n </li>\n }\n</ng-template>\n\n<ng-template #firstPageButton>\n <li>\n @let firstPageTemplate = firstPageNavigationTemplate();\n @if (firstPageTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"firstPageTemplate.templateRef\"\n [ngTemplateOutletContext]=\"firstNavigationContext()\"></ng-container>\n } @else {\n <button\n monaButton\n look=\"ghost\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [attr.aria-label]=\"messages().firstPageLabel\"\n [disabled]=\"firstNavigationContext().disabled\"\n (click)=\"goToPage(1)\">\n <svg lucideChevronsLeft class=\"rtl:rotate-180\" [size]=\"iconSize()\"></svg>\n </button>\n }\n </li>\n</ng-template>\n\n<ng-template #previousPageButton>\n <li>\n @let previousPageTemplate = previousPageNavigationTemplate();\n @if (previousPageTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"previousPageTemplate.templateRef\"\n [ngTemplateOutletContext]=\"previousNavigationContext()\"></ng-container>\n } @else {\n <button\n monaButton\n look=\"ghost\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [disabled]=\"previousNavigationContext().disabled\"\n [attr.aria-label]=\"messages().previousPageLabel\"\n (click)=\"goToPage(page() - 1)\">\n <svg lucideChevronLeft class=\"rtl:rotate-180\" [size]=\"iconSize()\"></svg>\n </button>\n }\n </li>\n</ng-template>\n\n<ng-template #nextPageButton>\n <li>\n @let nextPageTemplate = nextPageNavigationTemplate();\n @if (nextPageTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"nextPageTemplate.templateRef\"\n [ngTemplateOutletContext]=\"nextNavigationContext()\"></ng-container>\n } @else {\n <button\n monaButton\n look=\"ghost\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [disabled]=\"nextNavigationContext().disabled\"\n [attr.aria-label]=\"messages().nextPageLabel\"\n (click)=\"goToPage(page() + 1)\">\n <svg lucideChevronRight class=\"rtl:rotate-180\" [size]=\"iconSize()\"></svg>\n </button>\n }\n </li>\n</ng-template>\n\n<ng-template #lastPageButton>\n <li>\n @let lastPageTemplate = lastPageNavigationTemplate();\n @if (lastPageTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"lastPageTemplate.templateRef\"\n [ngTemplateOutletContext]=\"lastNavigationContext()\"></ng-container>\n } @else {\n <button\n monaButton\n look=\"ghost\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [attr.aria-label]=\"messages().lastPageLabel\"\n [disabled]=\"lastNavigationContext().disabled\"\n (click)=\"goToPage(pageCount())\">\n <svg lucideChevronsRight class=\"rtl:rotate-180\" [size]=\"iconSize()\"></svg>\n </button>\n }\n </li>\n</ng-template>\n",
|
|
809
809
|
dependencies: [
|
|
810
810
|
{
|
|
811
811
|
kind: "directive",
|
|
@@ -964,7 +964,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
964
964
|
"(keydown)": "onKeydown($event)",
|
|
965
965
|
role: "navigation"
|
|
966
966
|
},
|
|
967
|
-
template: "@let numericButtonsTemplateRef = numericButtonsTemplate()?.templateRef;\n@let pageSizeTemplateRef = pageSizeTemplate();\n@let pagerInfoTemplateRef = pagerInfoTemplate()?.templateRef;\n\n@if (compact()) {\n <ol [class]=\"listClasses\">\n @if (firstLast()) {\n <ng-container [ngTemplateOutlet]=\"firstPageButton\"></ng-container>\n }\n @if (previousNext()) {\n <ng-container [ngTemplateOutlet]=\"previousPageButton\"></ng-container>\n }\n @if (hasPages()) {\n <li>\n <mona-dropdown-list\n class=\"w-20\"\n [data]=\"pageList()\"\n [value]=\"page()\"\n [aria-label]=\"messages().pageSelectLabel\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n monaDropDownVirtualScroll\n (valueChange)=\"goToPage($event)\">\n <ng-template monaDropDownListValueTemplate let-item>\n <span>{{ formatPageNumber(item) }}</span>\n </ng-template>\n <ng-template monaDropDownItemTemplate let-item>\n <span>{{ formatPageNumber(item) }}</span>\n </ng-template>\n </mona-dropdown-list>\n </li>\n }\n @if (previousNext()) {\n <ng-container [ngTemplateOutlet]=\"nextPageButton\"></ng-container>\n }\n @if (firstLast()) {\n <ng-container [ngTemplateOutlet]=\"lastPageButton\"></ng-container>\n }\n <ng-container [ngTemplateOutlet]=\"pageSizeSelector\"></ng-container>\n </ol>\n} @else if (type() === \"numeric\") {\n <ol [class]=\"listClasses\">\n @if (firstLast()) {\n <ng-container [ngTemplateOutlet]=\"firstPageButton\"></ng-container>\n }\n @if (previousNext()) {\n <ng-container [ngTemplateOutlet]=\"previousPageButton\"></ng-container>\n }\n\n @if (numericButtonsTemplateRef) {\n <ng-container\n [ngTemplateOutlet]=\"numericButtonsTemplateRef\"\n [ngTemplateOutletContext]=\"numericButtonsContext()\"></ng-container>\n } @else {\n @for (item of pageItems(); track item.key) {\n @if (item.kind === \"page\") {\n <li [attr.data-page]=\"item.page\" [class]=\"pageItemClasses(page() === item.page)\">\n <button\n monaButton\n look=\"ghost\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [selected]=\"page() === item.page\"\n [attr.aria-label]=\"messages().pageLabel(item.page)\"\n [attr.aria-current]=\"page() === item.page ? 'page' : null\"\n (click)=\"goToPage(item.page)\">\n {{ formatPageNumber(item.page) }}\n </button>\n </li>\n } @else {\n <li>\n <button\n monaButton\n look=\"ghost\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [attr.aria-label]=\"item.direction === 'backward' ? jumpPreviousLabel() : jumpNextLabel()\"\n (click)=\"goToPage(item.page)\">\n <svg lucideEllipsis [size]=\"iconSize()\"></svg>\n </button>\n </li>\n }\n }\n }\n\n @if (previousNext()) {\n <ng-container [ngTemplateOutlet]=\"nextPageButton\"></ng-container>\n }\n @if (firstLast()) {\n <ng-container [ngTemplateOutlet]=\"lastPageButton\"></ng-container>\n }\n\n @if (hasPages() && pageInput()) {\n <li>\n <mona-numeric-text-box\n [inputId]=\"pageInputId\"\n [spinners]=\"false\"\n [minValue]=\"1\"\n [maxValue]=\"pageCount()\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [aria-label]=\"messages().pageSelectLabel\"\n [value]=\"inputValue()\"\n (valueChange)=\"inputValue.set($event)\"\n (keydown.enter)=\"onPageInputEnter($event)\"\n (inputBlur)=\"commitPageInput()\"></mona-numeric-text-box>\n </li>\n }\n <ng-container [ngTemplateOutlet]=\"pageSizeSelector\"></ng-container>\n </ol>\n} @else {\n <div [class]=\"inputClasses\">\n <ol [class]=\"listClasses\">\n @if (firstLast()) {\n <ng-container [ngTemplateOutlet]=\"firstPageButton\"></ng-container>\n }\n @if (previousNext()) {\n <ng-container [ngTemplateOutlet]=\"previousPageButton\"></ng-container>\n }\n @if (hasPages()) {\n <li class=\"flex items-center gap-2 mx-2\">\n <span [id]=\"pageInputPrefixId\">{{ messages().pageInputPrefix(pageCount()) }}</span>\n <mona-numeric-text-box\n [inputId]=\"pageInputId\"\n [spinners]=\"false\"\n [minValue]=\"1\"\n [maxValue]=\"pageCount()\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [aria-labelledby]=\"pageInputLabelledBy\"\n [value]=\"inputValue()\"\n (valueChange)=\"inputValue.set($event)\"\n (keydown.enter)=\"onPageInputEnter($event)\"\n (inputBlur)=\"commitPageInput()\"></mona-numeric-text-box>\n <span [id]=\"pageInputSuffixId\">{{ messages().pageInputSuffix(pageCount()) }}</span>\n </li>\n }\n @if (previousNext()) {\n <ng-container [ngTemplateOutlet]=\"nextPageButton\"></ng-container>\n }\n @if (firstLast()) {\n <ng-container [ngTemplateOutlet]=\"lastPageButton\"></ng-container>\n }\n </ol>\n </div>\n}\n\n@if (showInfo()) {\n @if (pagerInfoTemplateRef) {\n <ng-container [ngTemplateOutlet]=\"pagerInfoTemplateRef\" [ngTemplateOutletContext]=\"infoContext()\"></ng-container>\n } @else {\n <span [class]=\"infoClasses\">{{ pagerInfo() }}</span>\n }\n}\n<span class=\"sr-only\" role=\"status\" aria-live=\"polite\" aria-atomic=\"true\">{{ liveStatus() }}</span>\n\n<ng-template #pageSizeSelector>\n @if (pageSizeOptions().length > 0) {\n <li>\n @if (pageSizeTemplateRef) {\n <ng-container\n [ngTemplateOutlet]=\"pageSizeTemplateRef\"\n [ngTemplateOutletContext]=\"pageSizeContext()\"></ng-container>\n } @else {\n <mona-dropdown-list\n [data]=\"pageSizeOptions()\"\n [aria-label]=\"messages().itemsPerPageLabel\"\n [value]=\"pageSizeValue()\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n (valueChange)=\"changePageSize($event)\"\n #pageSizeDropdownList>\n <ng-template monaDropDownListValueTemplate let-item>\n <span>{{ messages().pageSizeLabel(item) }}</span>\n </ng-template>\n <ng-template monaDropDownItemTemplate let-item>\n <span>{{ formatPageNumber(item) }}</span>\n </ng-template>\n </mona-dropdown-list>\n }\n </li>\n }\n</ng-template>\n\n<ng-template #firstPageButton>\n <li>\n @let firstPageTemplate = firstPageNavigationTemplate();\n @if (firstPageTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"firstPageTemplate.templateRef\"\n [ngTemplateOutletContext]=\"firstNavigationContext()\"></ng-container>\n } @else {\n <button\n monaButton\n look=\"ghost\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [attr.aria-label]=\"messages().firstPageLabel\"\n [disabled]=\"firstNavigationContext().disabled\"\n (click)=\"goToPage(1)\">\n <svg lucideChevronsLeft class=\"rtl:rotate-180\" [size]=\"iconSize()\"></svg>\n </button>\n }\n </li>\n</ng-template>\n\n<ng-template #previousPageButton>\n <li>\n @let previousPageTemplate = previousPageNavigationTemplate();\n @if (previousPageTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"previousPageTemplate.templateRef\"\n [ngTemplateOutletContext]=\"previousNavigationContext()\"></ng-container>\n } @else {\n <button\n monaButton\n look=\"ghost\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [disabled]=\"previousNavigationContext().disabled\"\n [attr.aria-label]=\"messages().previousPageLabel\"\n (click)=\"goToPage(page() - 1)\">\n <svg lucideChevronLeft class=\"rtl:rotate-180\" [size]=\"iconSize()\"></svg>\n </button>\n }\n </li>\n</ng-template>\n\n<ng-template #nextPageButton>\n <li>\n @let nextPageTemplate = nextPageNavigationTemplate();\n @if (nextPageTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"nextPageTemplate.templateRef\"\n [ngTemplateOutletContext]=\"nextNavigationContext()\"></ng-container>\n } @else {\n <button\n monaButton\n look=\"ghost\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [disabled]=\"nextNavigationContext().disabled\"\n [attr.aria-label]=\"messages().nextPageLabel\"\n (click)=\"goToPage(page() + 1)\">\n <svg lucideChevronRight class=\"rtl:rotate-180\" [size]=\"iconSize()\"></svg>\n </button>\n }\n </li>\n</ng-template>\n\n<ng-template #lastPageButton>\n <li>\n @let lastPageTemplate = lastPageNavigationTemplate();\n @if (lastPageTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"lastPageTemplate.templateRef\"\n [ngTemplateOutletContext]=\"lastNavigationContext()\"></ng-container>\n } @else {\n <button\n monaButton\n look=\"ghost\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [attr.aria-label]=\"messages().lastPageLabel\"\n [disabled]=\"lastNavigationContext().disabled\"\n (click)=\"goToPage(pageCount())\">\n <svg lucideChevronsRight class=\"rtl:rotate-180\" [size]=\"iconSize()\"></svg>\n </button>\n }\n </li>\n</ng-template>\n"
|
|
967
|
+
template: "@let numericButtonsTemplateRef = numericButtonsTemplate()?.templateRef;\n@let pageSizeTemplateRef = pageSizeTemplate();\n@let pagerInfoTemplateRef = pagerInfoTemplate()?.templateRef;\n\n@if (compact()) {\n <ol [class]=\"listClasses\">\n @if (firstLast()) {\n <ng-container [ngTemplateOutlet]=\"firstPageButton\"></ng-container>\n }\n @if (previousNext()) {\n <ng-container [ngTemplateOutlet]=\"previousPageButton\"></ng-container>\n }\n @if (hasPages()) {\n <li>\n <mona-dropdown-list\n class=\"w-20\"\n [data]=\"pageList()\"\n [value]=\"page()\"\n [aria-label]=\"messages().pageSelectLabel\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n monaDropDownVirtualScroll\n (valueChange)=\"goToPage($event)\">\n <ng-template monaDropDownListValueTemplate let-item>\n <span>{{ formatPageNumber(item) }}</span>\n </ng-template>\n <ng-template monaDropDownItemTemplate let-item>\n <span>{{ formatPageNumber(item) }}</span>\n </ng-template>\n </mona-dropdown-list>\n </li>\n }\n @if (previousNext()) {\n <ng-container [ngTemplateOutlet]=\"nextPageButton\"></ng-container>\n }\n @if (firstLast()) {\n <ng-container [ngTemplateOutlet]=\"lastPageButton\"></ng-container>\n }\n <ng-container [ngTemplateOutlet]=\"pageSizeSelector\"></ng-container>\n </ol>\n} @else if (type() === \"numeric\") {\n <ol [class]=\"listClasses\">\n @if (firstLast()) {\n <ng-container [ngTemplateOutlet]=\"firstPageButton\"></ng-container>\n }\n @if (previousNext()) {\n <ng-container [ngTemplateOutlet]=\"previousPageButton\"></ng-container>\n }\n\n @if (numericButtonsTemplateRef) {\n <ng-container\n [ngTemplateOutlet]=\"numericButtonsTemplateRef\"\n [ngTemplateOutletContext]=\"numericButtonsContext()\"></ng-container>\n } @else {\n @for (item of pageItems(); track item.key) {\n @if (item.kind === \"page\") {\n <li [attr.data-page]=\"item.page\" [class]=\"pageItemClasses(page() === item.page)\">\n <button\n monaButton\n look=\"ghost\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [selected]=\"page() === item.page\"\n [attr.aria-label]=\"messages().pageLabel(item.page)\"\n [attr.aria-current]=\"page() === item.page ? 'page' : null\"\n (click)=\"goToPage(item.page)\">\n {{ formatPageNumber(item.page) }}\n </button>\n </li>\n } @else {\n <li>\n <button\n monaButton\n look=\"ghost\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [attr.aria-label]=\"item.direction === 'backward' ? jumpPreviousLabel() : jumpNextLabel()\"\n (click)=\"goToPage(item.page)\">\n <svg lucideEllipsis [size]=\"iconSize()\"></svg>\n </button>\n </li>\n }\n }\n }\n\n @if (previousNext()) {\n <ng-container [ngTemplateOutlet]=\"nextPageButton\"></ng-container>\n }\n @if (firstLast()) {\n <ng-container [ngTemplateOutlet]=\"lastPageButton\"></ng-container>\n }\n\n @if (hasPages() && pageInput()) {\n <li>\n <mona-numeric-text-box\n [inputId]=\"pageInputId\"\n [spinners]=\"false\"\n [minValue]=\"1\"\n [maxValue]=\"pageCount()\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [aria-label]=\"messages().pageSelectLabel\"\n [value]=\"inputValue()\"\n (valueChange)=\"inputValue.set($event)\"\n (keydown.enter)=\"onPageInputEnter($event)\"\n (inputBlur)=\"commitPageInput()\"></mona-numeric-text-box>\n </li>\n }\n <ng-container [ngTemplateOutlet]=\"pageSizeSelector\"></ng-container>\n </ol>\n} @else {\n <div [class]=\"inputClasses\">\n <ol [class]=\"listClasses\">\n @if (firstLast()) {\n <ng-container [ngTemplateOutlet]=\"firstPageButton\"></ng-container>\n }\n @if (previousNext()) {\n <ng-container [ngTemplateOutlet]=\"previousPageButton\"></ng-container>\n }\n @if (hasPages()) {\n <li class=\"flex items-center gap-2 mx-2\">\n <span [id]=\"pageInputPrefixId\">{{ messages().pageInputPrefix(pageCount()) }}</span>\n <mona-numeric-text-box\n [inputId]=\"pageInputId\"\n [spinners]=\"false\"\n [minValue]=\"1\"\n [maxValue]=\"pageCount()\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [aria-labelledby]=\"pageInputLabelledBy\"\n [value]=\"inputValue()\"\n (valueChange)=\"inputValue.set($event)\"\n (keydown.enter)=\"onPageInputEnter($event)\"\n (inputBlur)=\"commitPageInput()\"></mona-numeric-text-box>\n <span [id]=\"pageInputSuffixId\">{{ messages().pageInputSuffix(pageCount()) }}</span>\n </li>\n }\n @if (previousNext()) {\n <ng-container [ngTemplateOutlet]=\"nextPageButton\"></ng-container>\n }\n @if (firstLast()) {\n <ng-container [ngTemplateOutlet]=\"lastPageButton\"></ng-container>\n }\n </ol>\n </div>\n}\n\n@if (showInfo()) {\n @if (pagerInfoTemplateRef) {\n <ng-container\n [ngTemplateOutlet]=\"pagerInfoTemplateRef\"\n [ngTemplateOutletContext]=\"infoContext()\"></ng-container>\n } @else {\n <span [class]=\"infoClasses\">{{ pagerInfo() }}</span>\n }\n}\n<span class=\"sr-only\" role=\"status\" aria-live=\"polite\" aria-atomic=\"true\">{{ liveStatus() }}</span>\n\n<ng-template #pageSizeSelector>\n @if (pageSizeOptions().length > 0) {\n <li>\n @if (pageSizeTemplateRef) {\n <ng-container\n [ngTemplateOutlet]=\"pageSizeTemplateRef\"\n [ngTemplateOutletContext]=\"pageSizeContext()\"></ng-container>\n } @else {\n <mona-dropdown-list\n [data]=\"pageSizeOptions()\"\n [aria-label]=\"messages().itemsPerPageLabel\"\n [value]=\"pageSizeValue()\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n (valueChange)=\"changePageSize($event)\"\n #pageSizeDropdownList>\n <ng-template monaDropDownListValueTemplate let-item>\n <span>{{ messages().pageSizeLabel(item) }}</span>\n </ng-template>\n <ng-template monaDropDownItemTemplate let-item>\n <span>{{ formatPageNumber(item) }}</span>\n </ng-template>\n </mona-dropdown-list>\n }\n </li>\n }\n</ng-template>\n\n<ng-template #firstPageButton>\n <li>\n @let firstPageTemplate = firstPageNavigationTemplate();\n @if (firstPageTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"firstPageTemplate.templateRef\"\n [ngTemplateOutletContext]=\"firstNavigationContext()\"></ng-container>\n } @else {\n <button\n monaButton\n look=\"ghost\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [attr.aria-label]=\"messages().firstPageLabel\"\n [disabled]=\"firstNavigationContext().disabled\"\n (click)=\"goToPage(1)\">\n <svg lucideChevronsLeft class=\"rtl:rotate-180\" [size]=\"iconSize()\"></svg>\n </button>\n }\n </li>\n</ng-template>\n\n<ng-template #previousPageButton>\n <li>\n @let previousPageTemplate = previousPageNavigationTemplate();\n @if (previousPageTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"previousPageTemplate.templateRef\"\n [ngTemplateOutletContext]=\"previousNavigationContext()\"></ng-container>\n } @else {\n <button\n monaButton\n look=\"ghost\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [disabled]=\"previousNavigationContext().disabled\"\n [attr.aria-label]=\"messages().previousPageLabel\"\n (click)=\"goToPage(page() - 1)\">\n <svg lucideChevronLeft class=\"rtl:rotate-180\" [size]=\"iconSize()\"></svg>\n </button>\n }\n </li>\n</ng-template>\n\n<ng-template #nextPageButton>\n <li>\n @let nextPageTemplate = nextPageNavigationTemplate();\n @if (nextPageTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"nextPageTemplate.templateRef\"\n [ngTemplateOutletContext]=\"nextNavigationContext()\"></ng-container>\n } @else {\n <button\n monaButton\n look=\"ghost\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [disabled]=\"nextNavigationContext().disabled\"\n [attr.aria-label]=\"messages().nextPageLabel\"\n (click)=\"goToPage(page() + 1)\">\n <svg lucideChevronRight class=\"rtl:rotate-180\" [size]=\"iconSize()\"></svg>\n </button>\n }\n </li>\n</ng-template>\n\n<ng-template #lastPageButton>\n <li>\n @let lastPageTemplate = lastPageNavigationTemplate();\n @if (lastPageTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"lastPageTemplate.templateRef\"\n [ngTemplateOutletContext]=\"lastNavigationContext()\"></ng-container>\n } @else {\n <button\n monaButton\n look=\"ghost\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [attr.aria-label]=\"messages().lastPageLabel\"\n [disabled]=\"lastNavigationContext().disabled\"\n (click)=\"goToPage(pageCount())\">\n <svg lucideChevronsRight class=\"rtl:rotate-180\" [size]=\"iconSize()\"></svg>\n </button>\n }\n </li>\n</ng-template>\n"
|
|
968
968
|
}]
|
|
969
969
|
}],
|
|
970
970
|
ctorParameters: () => [],
|
|
@@ -574,7 +574,7 @@ var SegmentedComponent = class SegmentedComponent {
|
|
|
574
574
|
isSignal: true
|
|
575
575
|
}],
|
|
576
576
|
ngImport: i0,
|
|
577
|
-
template: "@if (indicatorGeometry(); as geometry) {\n <div\n aria-hidden=\"true\"\n [class]=\"indicatorClasses()\"\n [attr.data-disabled]=\"selectedOptionDisabled() ? 'true' : null\"\n [style.transform]=\"geometry.transform\"\n [style.width.px]=\"geometry.width\"\n [style.height.px]=\"geometry.height\"></div>\n}\n\n@for (option of options(); track option.value) {\n @let selected = option.value === value();\n @let optionDisabled = effectiveDisabled() || option.disabled;\n\n <label\n #optionElement\n [class]=\"optionClasses()\"\n [attr.data-selected]=\"selected\"\n [attr.data-indicator]=\"geometryReady() || null\"\n [attr.data-disabled]=\"optionDisabled\">\n <input\n #radioInput\n type=\"radio\"\n [name]=\"name() || groupName\"\n [value]=\"option.value\"\n [checked]=\"selected\"\n [disabled]=\"optionDisabled\"\n [class]=\"inputClasses()\"\n [attr.aria-label]=\"itemTemplate() ? option.label : null\"\n (change)=\"onOptionChange(option)\"\n (click)=\"onOptionClick($event)\" />\n\n <span
|
|
577
|
+
template: "@if (indicatorGeometry(); as geometry) {\n <div\n aria-hidden=\"true\"\n [class]=\"indicatorClasses()\"\n [attr.data-disabled]=\"selectedOptionDisabled() ? 'true' : null\"\n [style.transform]=\"geometry.transform\"\n [style.width.px]=\"geometry.width\"\n [style.height.px]=\"geometry.height\"></div>\n}\n\n@for (option of options(); track option.value) {\n @let selected = option.value === value();\n @let optionDisabled = effectiveDisabled() || option.disabled;\n\n <label\n #optionElement\n [class]=\"optionClasses()\"\n [attr.data-selected]=\"selected\"\n [attr.data-indicator]=\"geometryReady() || null\"\n [attr.data-disabled]=\"optionDisabled\">\n <input\n #radioInput\n type=\"radio\"\n [name]=\"name() || groupName\"\n [value]=\"option.value\"\n [checked]=\"selected\"\n [disabled]=\"optionDisabled\"\n [class]=\"inputClasses()\"\n [attr.aria-label]=\"itemTemplate() ? option.label : null\"\n (change)=\"onOptionChange(option)\"\n (click)=\"onOptionClick($event)\" />\n\n <span class=\"pointer-events-none flex flex-1 items-center justify-center gap-1 [border-radius:inherit]\">\n @if (itemTemplate(); as template) {\n <ng-container\n [ngTemplateOutlet]=\"template\"\n [ngTemplateOutletContext]=\"optionContexts()[$index]\"></ng-container>\n } @else {\n {{ option.label }}\n }\n </span>\n </label>\n}\n",
|
|
578
578
|
dependencies: [{
|
|
579
579
|
kind: "directive",
|
|
580
580
|
type: NgTemplateOutlet,
|
|
@@ -613,7 +613,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
613
613
|
"[attr.role]": "'radiogroup'",
|
|
614
614
|
"[class]": "containerClasses()"
|
|
615
615
|
},
|
|
616
|
-
template: "@if (indicatorGeometry(); as geometry) {\n <div\n aria-hidden=\"true\"\n [class]=\"indicatorClasses()\"\n [attr.data-disabled]=\"selectedOptionDisabled() ? 'true' : null\"\n [style.transform]=\"geometry.transform\"\n [style.width.px]=\"geometry.width\"\n [style.height.px]=\"geometry.height\"></div>\n}\n\n@for (option of options(); track option.value) {\n @let selected = option.value === value();\n @let optionDisabled = effectiveDisabled() || option.disabled;\n\n <label\n #optionElement\n [class]=\"optionClasses()\"\n [attr.data-selected]=\"selected\"\n [attr.data-indicator]=\"geometryReady() || null\"\n [attr.data-disabled]=\"optionDisabled\">\n <input\n #radioInput\n type=\"radio\"\n [name]=\"name() || groupName\"\n [value]=\"option.value\"\n [checked]=\"selected\"\n [disabled]=\"optionDisabled\"\n [class]=\"inputClasses()\"\n [attr.aria-label]=\"itemTemplate() ? option.label : null\"\n (change)=\"onOptionChange(option)\"\n (click)=\"onOptionClick($event)\" />\n\n <span
|
|
616
|
+
template: "@if (indicatorGeometry(); as geometry) {\n <div\n aria-hidden=\"true\"\n [class]=\"indicatorClasses()\"\n [attr.data-disabled]=\"selectedOptionDisabled() ? 'true' : null\"\n [style.transform]=\"geometry.transform\"\n [style.width.px]=\"geometry.width\"\n [style.height.px]=\"geometry.height\"></div>\n}\n\n@for (option of options(); track option.value) {\n @let selected = option.value === value();\n @let optionDisabled = effectiveDisabled() || option.disabled;\n\n <label\n #optionElement\n [class]=\"optionClasses()\"\n [attr.data-selected]=\"selected\"\n [attr.data-indicator]=\"geometryReady() || null\"\n [attr.data-disabled]=\"optionDisabled\">\n <input\n #radioInput\n type=\"radio\"\n [name]=\"name() || groupName\"\n [value]=\"option.value\"\n [checked]=\"selected\"\n [disabled]=\"optionDisabled\"\n [class]=\"inputClasses()\"\n [attr.aria-label]=\"itemTemplate() ? option.label : null\"\n (change)=\"onOptionChange(option)\"\n (click)=\"onOptionClick($event)\" />\n\n <span class=\"pointer-events-none flex flex-1 items-center justify-center gap-1 [border-radius:inherit]\">\n @if (itemTemplate(); as template) {\n <ng-container\n [ngTemplateOutlet]=\"template\"\n [ngTemplateOutletContext]=\"optionContexts()[$index]\"></ng-container>\n } @else {\n {{ option.label }}\n }\n </span>\n </label>\n}\n"
|
|
617
617
|
}]
|
|
618
618
|
}],
|
|
619
619
|
ctorParameters: () => [],
|
|
@@ -114,7 +114,7 @@ var SpinnerComponent = class SpinnerComponent {
|
|
|
114
114
|
"class": "baseClass()"
|
|
115
115
|
} },
|
|
116
116
|
ngImport: i0,
|
|
117
|
-
template: "@switch (appearance()) {\n @case (\"default\") {\n <svg
|
|
117
|
+
template: "@switch (appearance()) {\n @case (\"default\") {\n <svg\n [lucideIcon]=\"loaderIcon\"\n [size]=\"pixelSize()\"\n class=\"size-full animate-[spin_1.5s_linear_infinite] motion-reduce:animate-none\"></svg>\n }\n @case (\"pulsing\") {\n <span class=\"mona-spinner-pulsing-container\">\n <span data-segment class=\"mona-spinner-pulsing-segment mona-spinner-pulsing-1\"></span>\n <span data-segment class=\"mona-spinner-pulsing-segment mona-spinner-pulsing-2\"></span>\n </span>\n }\n @case (\"pulsing-triad\") {\n <span class=\"mona-spinner-pulsing-triad-container\">\n <span data-segment class=\"mona-spinner-pulsing-triad-segment mona-spinner-pulsing-triad-1\"></span>\n <span data-segment class=\"mona-spinner-pulsing-triad-segment mona-spinner-pulsing-triad-2\"></span>\n <span data-segment class=\"mona-spinner-pulsing-triad-segment mona-spinner-pulsing-triad-3\"></span>\n </span>\n }\n @case (\"pulsing-ring\") {\n <span class=\"mona-spinner-pulsing-ring-container\">\n <span data-segment class=\"mona-spinner-pulsing-ring-segment mona-spinner-pulsing-ring-1\"></span>\n <span data-segment class=\"mona-spinner-pulsing-ring-segment mona-spinner-pulsing-ring-2\"></span>\n <span data-segment class=\"mona-spinner-pulsing-ring-segment mona-spinner-pulsing-ring-3\"></span>\n <span data-segment class=\"mona-spinner-pulsing-ring-segment mona-spinner-pulsing-ring-4\"></span>\n <span data-segment class=\"mona-spinner-pulsing-ring-segment mona-spinner-pulsing-ring-5\"></span>\n <span data-segment class=\"mona-spinner-pulsing-ring-segment mona-spinner-pulsing-ring-6\"></span>\n <span data-segment class=\"mona-spinner-pulsing-ring-segment mona-spinner-pulsing-ring-7\"></span>\n <span data-segment class=\"mona-spinner-pulsing-ring-segment mona-spinner-pulsing-ring-8\"></span>\n </span>\n }\n @case (\"converging-spinner\") {\n <span class=\"mona-spinner-converge-container\">\n <span data-segment class=\"mona-spinner-converge-segment mona-spinner-converge-1\"></span>\n <span data-segment class=\"mona-spinner-converge-segment mona-spinner-converge-2\"></span>\n <span data-segment class=\"mona-spinner-converge-segment mona-spinner-converge-3\"></span>\n <span data-segment class=\"mona-spinner-converge-segment mona-spinner-converge-4\"></span>\n </span>\n }\n}\n",
|
|
118
118
|
styles: [":host{display:inline-flex;vertical-align:middle}.mona-spinner-pulsing-container{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.mona-spinner-pulsing-segment{position:absolute;inset:0;border-radius:9999px;background-color:currentColor;opacity:.6;animation:mona-spinner-pulse 1.2s cubic-bezier(0,.2,.8,1) infinite}.mona-spinner-pulsing-2{animation-delay:-.6s}@keyframes mona-spinner-pulse{0%{transform:scale(.1);opacity:.9}50%{transform:scale(.6);opacity:.5}to{transform:scale(1);opacity:0}}.mona-spinner-pulsing-triad-container{position:relative;width:100%;height:100%}.mona-spinner-pulsing-triad-segment{position:absolute;width:32%;height:32%;border-radius:9999px;background-color:currentColor;animation:mona-spinner-dot-pulse 1.4s ease-in-out infinite}.mona-spinner-pulsing-triad-1{top:0;left:34%;animation-delay:-.933s}.mona-spinner-pulsing-triad-2{bottom:0;left:0;animation-delay:-.467s}.mona-spinner-pulsing-triad-3{bottom:0;right:0;animation-delay:0s}@keyframes mona-spinner-dot-pulse{0%,to{transform:scale(.4);opacity:.4}50%{transform:scale(1);opacity:1}}.mona-spinner-pulsing-ring-container{position:relative;width:100%;height:100%}.mona-spinner-pulsing-ring-segment{position:absolute;width:22%;height:22%;border-radius:9999px;background-color:currentColor;animation:mona-spinner-dot-pulse 1.6s ease-in-out infinite}.mona-spinner-pulsing-ring-1{top:5%;left:39%;animation-delay:0s}.mona-spinner-pulsing-ring-2{top:14.96%;left:63.04%;animation-delay:-.2s}.mona-spinner-pulsing-ring-3{top:39%;left:73%;animation-delay:-.4s}.mona-spinner-pulsing-ring-4{top:63.04%;left:63.04%;animation-delay:-.6s}.mona-spinner-pulsing-ring-5{top:73%;left:39%;animation-delay:-.8s}.mona-spinner-pulsing-ring-6{top:63.04%;left:14.96%;animation-delay:-1s}.mona-spinner-pulsing-ring-7{top:39%;left:5%;animation-delay:-1.2s}.mona-spinner-pulsing-ring-8{top:14.96%;left:14.96%;animation-delay:-1.4s}.mona-spinner-converge-container{position:relative;width:100%;height:100%;animation:mona-spinner-rotate 1.5s linear infinite}.mona-spinner-converge-segment{position:absolute;width:32%;height:32%;border-radius:9999px;background-color:currentColor;animation:mona-spinner-converge 1.5s ease-in-out infinite}.mona-spinner-converge-1{top:0;left:0}.mona-spinner-converge-2{top:0;right:0}.mona-spinner-converge-3{bottom:0;right:0}.mona-spinner-converge-4{bottom:0;left:0}@keyframes mona-spinner-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes mona-spinner-converge{0%,to{transform:scale(1)}50%{transform:scale(.4)}}@media(prefers-reduced-motion:reduce){.mona-spinner-pulsing-segment,.mona-spinner-pulsing-triad-segment,.mona-spinner-pulsing-ring-segment,.mona-spinner-converge-container,.mona-spinner-converge-segment{animation:none!important}.mona-spinner-pulsing-segment{opacity:.6;transform:scale(.85)}.mona-spinner-pulsing-2{opacity:.3;transform:scale(.5)}.mona-spinner-pulsing-triad-segment,.mona-spinner-pulsing-ring-segment{opacity:.7;transform:scale(.8)}}@media(forced-colors:active){[data-segment]{background-color:CanvasText}}\n"],
|
|
119
119
|
dependencies: [{
|
|
120
120
|
kind: "component",
|
|
@@ -141,7 +141,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
141
141
|
"[attr.role]": "decorative() ? null : 'img'",
|
|
142
142
|
"[class]": "baseClass()"
|
|
143
143
|
},
|
|
144
|
-
template: "@switch (appearance()) {\n @case (\"default\") {\n <svg
|
|
144
|
+
template: "@switch (appearance()) {\n @case (\"default\") {\n <svg\n [lucideIcon]=\"loaderIcon\"\n [size]=\"pixelSize()\"\n class=\"size-full animate-[spin_1.5s_linear_infinite] motion-reduce:animate-none\"></svg>\n }\n @case (\"pulsing\") {\n <span class=\"mona-spinner-pulsing-container\">\n <span data-segment class=\"mona-spinner-pulsing-segment mona-spinner-pulsing-1\"></span>\n <span data-segment class=\"mona-spinner-pulsing-segment mona-spinner-pulsing-2\"></span>\n </span>\n }\n @case (\"pulsing-triad\") {\n <span class=\"mona-spinner-pulsing-triad-container\">\n <span data-segment class=\"mona-spinner-pulsing-triad-segment mona-spinner-pulsing-triad-1\"></span>\n <span data-segment class=\"mona-spinner-pulsing-triad-segment mona-spinner-pulsing-triad-2\"></span>\n <span data-segment class=\"mona-spinner-pulsing-triad-segment mona-spinner-pulsing-triad-3\"></span>\n </span>\n }\n @case (\"pulsing-ring\") {\n <span class=\"mona-spinner-pulsing-ring-container\">\n <span data-segment class=\"mona-spinner-pulsing-ring-segment mona-spinner-pulsing-ring-1\"></span>\n <span data-segment class=\"mona-spinner-pulsing-ring-segment mona-spinner-pulsing-ring-2\"></span>\n <span data-segment class=\"mona-spinner-pulsing-ring-segment mona-spinner-pulsing-ring-3\"></span>\n <span data-segment class=\"mona-spinner-pulsing-ring-segment mona-spinner-pulsing-ring-4\"></span>\n <span data-segment class=\"mona-spinner-pulsing-ring-segment mona-spinner-pulsing-ring-5\"></span>\n <span data-segment class=\"mona-spinner-pulsing-ring-segment mona-spinner-pulsing-ring-6\"></span>\n <span data-segment class=\"mona-spinner-pulsing-ring-segment mona-spinner-pulsing-ring-7\"></span>\n <span data-segment class=\"mona-spinner-pulsing-ring-segment mona-spinner-pulsing-ring-8\"></span>\n </span>\n }\n @case (\"converging-spinner\") {\n <span class=\"mona-spinner-converge-container\">\n <span data-segment class=\"mona-spinner-converge-segment mona-spinner-converge-1\"></span>\n <span data-segment class=\"mona-spinner-converge-segment mona-spinner-converge-2\"></span>\n <span data-segment class=\"mona-spinner-converge-segment mona-spinner-converge-3\"></span>\n <span data-segment class=\"mona-spinner-converge-segment mona-spinner-converge-4\"></span>\n </span>\n }\n}\n",
|
|
145
145
|
styles: [":host{display:inline-flex;vertical-align:middle}.mona-spinner-pulsing-container{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.mona-spinner-pulsing-segment{position:absolute;inset:0;border-radius:9999px;background-color:currentColor;opacity:.6;animation:mona-spinner-pulse 1.2s cubic-bezier(0,.2,.8,1) infinite}.mona-spinner-pulsing-2{animation-delay:-.6s}@keyframes mona-spinner-pulse{0%{transform:scale(.1);opacity:.9}50%{transform:scale(.6);opacity:.5}to{transform:scale(1);opacity:0}}.mona-spinner-pulsing-triad-container{position:relative;width:100%;height:100%}.mona-spinner-pulsing-triad-segment{position:absolute;width:32%;height:32%;border-radius:9999px;background-color:currentColor;animation:mona-spinner-dot-pulse 1.4s ease-in-out infinite}.mona-spinner-pulsing-triad-1{top:0;left:34%;animation-delay:-.933s}.mona-spinner-pulsing-triad-2{bottom:0;left:0;animation-delay:-.467s}.mona-spinner-pulsing-triad-3{bottom:0;right:0;animation-delay:0s}@keyframes mona-spinner-dot-pulse{0%,to{transform:scale(.4);opacity:.4}50%{transform:scale(1);opacity:1}}.mona-spinner-pulsing-ring-container{position:relative;width:100%;height:100%}.mona-spinner-pulsing-ring-segment{position:absolute;width:22%;height:22%;border-radius:9999px;background-color:currentColor;animation:mona-spinner-dot-pulse 1.6s ease-in-out infinite}.mona-spinner-pulsing-ring-1{top:5%;left:39%;animation-delay:0s}.mona-spinner-pulsing-ring-2{top:14.96%;left:63.04%;animation-delay:-.2s}.mona-spinner-pulsing-ring-3{top:39%;left:73%;animation-delay:-.4s}.mona-spinner-pulsing-ring-4{top:63.04%;left:63.04%;animation-delay:-.6s}.mona-spinner-pulsing-ring-5{top:73%;left:39%;animation-delay:-.8s}.mona-spinner-pulsing-ring-6{top:63.04%;left:14.96%;animation-delay:-1s}.mona-spinner-pulsing-ring-7{top:39%;left:5%;animation-delay:-1.2s}.mona-spinner-pulsing-ring-8{top:14.96%;left:14.96%;animation-delay:-1.4s}.mona-spinner-converge-container{position:relative;width:100%;height:100%;animation:mona-spinner-rotate 1.5s linear infinite}.mona-spinner-converge-segment{position:absolute;width:32%;height:32%;border-radius:9999px;background-color:currentColor;animation:mona-spinner-converge 1.5s ease-in-out infinite}.mona-spinner-converge-1{top:0;left:0}.mona-spinner-converge-2{top:0;right:0}.mona-spinner-converge-3{bottom:0;right:0}.mona-spinner-converge-4{bottom:0;left:0}@keyframes mona-spinner-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes mona-spinner-converge{0%,to{transform:scale(1)}50%{transform:scale(.4)}}@media(prefers-reduced-motion:reduce){.mona-spinner-pulsing-segment,.mona-spinner-pulsing-triad-segment,.mona-spinner-pulsing-ring-segment,.mona-spinner-converge-container,.mona-spinner-converge-segment{animation:none!important}.mona-spinner-pulsing-segment{opacity:.6;transform:scale(.85)}.mona-spinner-pulsing-2{opacity:.3;transform:scale(.5)}.mona-spinner-pulsing-triad-segment,.mona-spinner-pulsing-ring-segment{opacity:.7;transform:scale(.8)}}@media(forced-colors:active){[data-segment]{background-color:CanvasText}}\n"]
|
|
146
146
|
}]
|
|
147
147
|
}],
|
|
@@ -318,7 +318,7 @@ var SpinnerOverlayComponent = class SpinnerOverlayComponent {
|
|
|
318
318
|
}
|
|
319
319
|
},
|
|
320
320
|
ngImport: i0,
|
|
321
|
-
template: "<div class=\"flex flex-col items-center justify-center gap-2.5 p-4 text-sm font-medium text-foreground text-center\">\n <mona-spinner [appearance]=\"appearance()\" [size]=\"size()\" [decorative]=\"true\"></mona-spinner>\n\n @if (text()) {\n <span class=\"max-w-xs wrap-anywhere\">{{ text() }}</span>\n } @else {\n <span class=\"sr-only\">{{ messages().loading }}</span>\n }\n\n @if (cancellable()) {\n <button\n type=\"button\"\n (click)=\"onCancel()\"\n class=\"mt-1 inline-flex items-center justify-center rounded-md border border-border bg-background px-2.5 py-1 text-xs font-medium text-foreground shadow-xs hover:bg-accent hover:text-accent-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus-indicator cursor-pointer transition-colors\"
|
|
321
|
+
template: "<div class=\"flex flex-col items-center justify-center gap-2.5 p-4 text-sm font-medium text-foreground text-center\">\n <mona-spinner [appearance]=\"appearance()\" [size]=\"size()\" [decorative]=\"true\"></mona-spinner>\n\n @if (text()) {\n <span class=\"max-w-xs wrap-anywhere\">{{ text() }}</span>\n } @else {\n <span class=\"sr-only\">{{ messages().loading }}</span>\n }\n\n @if (cancellable()) {\n <button\n type=\"button\"\n (click)=\"onCancel()\"\n class=\"mt-1 inline-flex items-center justify-center rounded-md border border-border bg-background px-2.5 py-1 text-xs font-medium text-foreground shadow-xs hover:bg-accent hover:text-accent-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus-indicator cursor-pointer transition-colors\">\n {{ effectiveCancelText() }}\n </button>\n }\n</div>\n",
|
|
322
322
|
dependencies: [{
|
|
323
323
|
kind: "component",
|
|
324
324
|
type: SpinnerComponent,
|
|
@@ -349,7 +349,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
349
349
|
"[style.z-index]": "effectiveZIndex()",
|
|
350
350
|
"(focusin)": "onFocusIn($event)"
|
|
351
351
|
},
|
|
352
|
-
template: "<div class=\"flex flex-col items-center justify-center gap-2.5 p-4 text-sm font-medium text-foreground text-center\">\n <mona-spinner [appearance]=\"appearance()\" [size]=\"size()\" [decorative]=\"true\"></mona-spinner>\n\n @if (text()) {\n <span class=\"max-w-xs wrap-anywhere\">{{ text() }}</span>\n } @else {\n <span class=\"sr-only\">{{ messages().loading }}</span>\n }\n\n @if (cancellable()) {\n <button\n type=\"button\"\n (click)=\"onCancel()\"\n class=\"mt-1 inline-flex items-center justify-center rounded-md border border-border bg-background px-2.5 py-1 text-xs font-medium text-foreground shadow-xs hover:bg-accent hover:text-accent-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus-indicator cursor-pointer transition-colors\"
|
|
352
|
+
template: "<div class=\"flex flex-col items-center justify-center gap-2.5 p-4 text-sm font-medium text-foreground text-center\">\n <mona-spinner [appearance]=\"appearance()\" [size]=\"size()\" [decorative]=\"true\"></mona-spinner>\n\n @if (text()) {\n <span class=\"max-w-xs wrap-anywhere\">{{ text() }}</span>\n } @else {\n <span class=\"sr-only\">{{ messages().loading }}</span>\n }\n\n @if (cancellable()) {\n <button\n type=\"button\"\n (click)=\"onCancel()\"\n class=\"mt-1 inline-flex items-center justify-center rounded-md border border-border bg-background px-2.5 py-1 text-xs font-medium text-foreground shadow-xs hover:bg-accent hover:text-accent-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus-indicator cursor-pointer transition-colors\">\n {{ effectiveCancelText() }}\n </button>\n }\n</div>\n"
|
|
353
353
|
}]
|
|
354
354
|
}],
|
|
355
355
|
propDecorators: {
|
|
@@ -708,7 +708,7 @@ var TabListComponent = class TabListComponent {
|
|
|
708
708
|
isSignal: true
|
|
709
709
|
}],
|
|
710
710
|
ngImport: i0,
|
|
711
|
-
template: "@if (overflowControlsVisible()) {\n <button\n monaButton\n type=\"button\"\n look=\"link\"\n size=\"small\"\n [class]=\"scrollButtonClass()\"\n [attr.aria-label]=\"messages().scrollPrevious\"\n (click)=\"startScrolling(tabListElement, 'previous', 'single')\"\n (pointerdown)=\"startContinuousScroll($event, tabListElement, 'previous')\"\n (pointerup)=\"stopScrolling()\"\n (pointercancel)=\"stopScrolling()\"\n [attr.aria-hidden]=\"true\"\n tabindex=\"-1\">\n @if (orientation() ===
|
|
711
|
+
template: "@if (overflowControlsVisible()) {\n <button\n monaButton\n type=\"button\"\n look=\"link\"\n size=\"small\"\n [class]=\"scrollButtonClass()\"\n [attr.aria-label]=\"messages().scrollPrevious\"\n (click)=\"startScrolling(tabListElement, 'previous', 'single')\"\n (pointerdown)=\"startContinuousScroll($event, tabListElement, 'previous')\"\n (pointerup)=\"stopScrolling()\"\n (pointercancel)=\"stopScrolling()\"\n [attr.aria-hidden]=\"true\"\n tabindex=\"-1\">\n @if (orientation() === \"vertical\") {\n <svg lucideChevronUp [size]=\"16\"></svg>\n } @else {\n <svg lucideChevronLeft [size]=\"16\" class=\"rtl:rotate-180\"></svg>\n }\n </button>\n}\n<div [class]=\"listWrapperClass()\">\n <ul\n [class]=\"listClass()\"\n #tabListElement\n role=\"tablist\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-orientation]=\"orientation()\">\n @for (tab of tabList(); track tab.id) {\n @let selected = tab.id === selectedTabId();\n @let itemDisabled = tab.disabled || disabled();\n @let tabClosable = tab.closable || closable();\n <li\n monaTabListItem\n [active]=\"selected\"\n [disabled]=\"itemDisabled\"\n [position]=\"position()\"\n [size]=\"size()\"\n role=\"presentation\"\n [attr.data-selected]=\"selected\"\n [attr.data-tab-id]=\"tab.id\">\n <div\n #tabElement\n [class]=\"tabClass()\"\n [id]=\"tab.id + '-tab'\"\n role=\"tab\"\n [tabindex]=\"selected ? 0 : -1\"\n [attr.aria-selected]=\"selected\"\n [attr.aria-disabled]=\"itemDisabled\"\n [attr.aria-controls]=\"tab.id + '-panel'\"\n [attr.aria-keyshortcuts]=\"tabClosable && !itemDisabled ? 'Delete Backspace' : null\"\n (click)=\"onTabClick(tab, $event)\">\n <div>\n @if (tab.titleTemplate) {\n <ng-container [ngTemplateOutlet]=\"tab.titleTemplate\"></ng-container>\n } @else {\n <span>{{ tab.title }}</span>\n }\n </div>\n </div>\n @if (tabClosable) {\n <!-- For the pointer. A button assistive technology can see isn't allowed inside a tablist. -->\n <button\n monaButton\n type=\"button\"\n look=\"link\"\n data-tab-close\n [disabled]=\"itemDisabled\"\n [attr.aria-hidden]=\"true\"\n [attr.aria-label]=\"messages().closeTab\"\n (click)=\"onTabClose(tab, $event)\"\n [class]=\"closeButtonClass()\"\n tabindex=\"-1\">\n <svg lucideX [size]=\"16\"></svg>\n </button>\n }\n </li>\n }\n </ul>\n</div>\n@if (hasClosableTabs()) {\n <!-- The same action for assistive technology, outside the tablist. The keyboard's route is Delete. -->\n <div class=\"sr-only\">\n @for (tab of tabList(); track tab.id) {\n @if (tab.closable || closable()) {\n <button\n type=\"button\"\n tabindex=\"-1\"\n [id]=\"tab.id + '-close'\"\n [disabled]=\"tab.disabled || disabled()\"\n [attr.aria-label]=\"messages().closeTab\"\n [attr.aria-labelledby]=\"tab.id + '-close ' + tab.id + '-tab'\"\n [attr.data-tab-id]=\"tab.id\"\n (click)=\"onTabClose(tab, $event)\"></button>\n }\n }\n </div>\n}\n@if (overflowControlsVisible()) {\n <button\n monaButton\n type=\"button\"\n look=\"link\"\n size=\"small\"\n [class]=\"scrollButtonClass()\"\n [attr.aria-label]=\"messages().scrollNext\"\n (click)=\"startScrolling(tabListElement, 'next', 'single')\"\n (pointerdown)=\"startContinuousScroll($event, tabListElement, 'next')\"\n (pointerup)=\"stopScrolling()\"\n (pointercancel)=\"stopScrolling()\"\n [attr.aria-hidden]=\"true\"\n tabindex=\"-1\">\n @if (orientation() === \"vertical\") {\n <svg lucideChevronDown [size]=\"16\"></svg>\n } @else {\n <svg lucideChevronRight [size]=\"16\" class=\"rtl:rotate-180\"></svg>\n }\n </button>\n}\n",
|
|
712
712
|
dependencies: [
|
|
713
713
|
{
|
|
714
714
|
kind: "directive",
|
|
@@ -808,7 +808,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
808
808
|
"(focusout)": "onFocusOut($event)",
|
|
809
809
|
"(keydown)": "onKeydown($event)"
|
|
810
810
|
},
|
|
811
|
-
template: "@if (overflowControlsVisible()) {\n <button\n monaButton\n type=\"button\"\n look=\"link\"\n size=\"small\"\n [class]=\"scrollButtonClass()\"\n [attr.aria-label]=\"messages().scrollPrevious\"\n (click)=\"startScrolling(tabListElement, 'previous', 'single')\"\n (pointerdown)=\"startContinuousScroll($event, tabListElement, 'previous')\"\n (pointerup)=\"stopScrolling()\"\n (pointercancel)=\"stopScrolling()\"\n [attr.aria-hidden]=\"true\"\n tabindex=\"-1\">\n @if (orientation() ===
|
|
811
|
+
template: "@if (overflowControlsVisible()) {\n <button\n monaButton\n type=\"button\"\n look=\"link\"\n size=\"small\"\n [class]=\"scrollButtonClass()\"\n [attr.aria-label]=\"messages().scrollPrevious\"\n (click)=\"startScrolling(tabListElement, 'previous', 'single')\"\n (pointerdown)=\"startContinuousScroll($event, tabListElement, 'previous')\"\n (pointerup)=\"stopScrolling()\"\n (pointercancel)=\"stopScrolling()\"\n [attr.aria-hidden]=\"true\"\n tabindex=\"-1\">\n @if (orientation() === \"vertical\") {\n <svg lucideChevronUp [size]=\"16\"></svg>\n } @else {\n <svg lucideChevronLeft [size]=\"16\" class=\"rtl:rotate-180\"></svg>\n }\n </button>\n}\n<div [class]=\"listWrapperClass()\">\n <ul\n [class]=\"listClass()\"\n #tabListElement\n role=\"tablist\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-orientation]=\"orientation()\">\n @for (tab of tabList(); track tab.id) {\n @let selected = tab.id === selectedTabId();\n @let itemDisabled = tab.disabled || disabled();\n @let tabClosable = tab.closable || closable();\n <li\n monaTabListItem\n [active]=\"selected\"\n [disabled]=\"itemDisabled\"\n [position]=\"position()\"\n [size]=\"size()\"\n role=\"presentation\"\n [attr.data-selected]=\"selected\"\n [attr.data-tab-id]=\"tab.id\">\n <div\n #tabElement\n [class]=\"tabClass()\"\n [id]=\"tab.id + '-tab'\"\n role=\"tab\"\n [tabindex]=\"selected ? 0 : -1\"\n [attr.aria-selected]=\"selected\"\n [attr.aria-disabled]=\"itemDisabled\"\n [attr.aria-controls]=\"tab.id + '-panel'\"\n [attr.aria-keyshortcuts]=\"tabClosable && !itemDisabled ? 'Delete Backspace' : null\"\n (click)=\"onTabClick(tab, $event)\">\n <div>\n @if (tab.titleTemplate) {\n <ng-container [ngTemplateOutlet]=\"tab.titleTemplate\"></ng-container>\n } @else {\n <span>{{ tab.title }}</span>\n }\n </div>\n </div>\n @if (tabClosable) {\n <!-- For the pointer. A button assistive technology can see isn't allowed inside a tablist. -->\n <button\n monaButton\n type=\"button\"\n look=\"link\"\n data-tab-close\n [disabled]=\"itemDisabled\"\n [attr.aria-hidden]=\"true\"\n [attr.aria-label]=\"messages().closeTab\"\n (click)=\"onTabClose(tab, $event)\"\n [class]=\"closeButtonClass()\"\n tabindex=\"-1\">\n <svg lucideX [size]=\"16\"></svg>\n </button>\n }\n </li>\n }\n </ul>\n</div>\n@if (hasClosableTabs()) {\n <!-- The same action for assistive technology, outside the tablist. The keyboard's route is Delete. -->\n <div class=\"sr-only\">\n @for (tab of tabList(); track tab.id) {\n @if (tab.closable || closable()) {\n <button\n type=\"button\"\n tabindex=\"-1\"\n [id]=\"tab.id + '-close'\"\n [disabled]=\"tab.disabled || disabled()\"\n [attr.aria-label]=\"messages().closeTab\"\n [attr.aria-labelledby]=\"tab.id + '-close ' + tab.id + '-tab'\"\n [attr.data-tab-id]=\"tab.id\"\n (click)=\"onTabClose(tab, $event)\"></button>\n }\n }\n </div>\n}\n@if (overflowControlsVisible()) {\n <button\n monaButton\n type=\"button\"\n look=\"link\"\n size=\"small\"\n [class]=\"scrollButtonClass()\"\n [attr.aria-label]=\"messages().scrollNext\"\n (click)=\"startScrolling(tabListElement, 'next', 'single')\"\n (pointerdown)=\"startContinuousScroll($event, tabListElement, 'next')\"\n (pointerup)=\"stopScrolling()\"\n (pointercancel)=\"stopScrolling()\"\n [attr.aria-hidden]=\"true\"\n tabindex=\"-1\">\n @if (orientation() === \"vertical\") {\n <svg lucideChevronDown [size]=\"16\"></svg>\n } @else {\n <svg lucideChevronRight [size]=\"16\" class=\"rtl:rotate-180\"></svg>\n }\n </button>\n}\n"
|
|
812
812
|
}]
|
|
813
813
|
}],
|
|
814
814
|
ctorParameters: () => [],
|
|
@@ -894,7 +894,7 @@ var TimeSelectorComponent = class TimeSelectorComponent {
|
|
|
894
894
|
}
|
|
895
895
|
],
|
|
896
896
|
ngImport: i0,
|
|
897
|
-
template: "<div [class]=\"headerClass()\">\n <div>{{ messages().headerHours }}</div>\n <div>{{ messages().headerMinutes }}</div>\n @if (showSeconds()) {\n <div>{{ messages().headerSeconds }}</div>\n }\n</div>\n\n<div [class]=\"infoContainerClass()\">\n <span>{{ navigatedDateText() }}</span>\n <button
|
|
897
|
+
template: "<div [class]=\"headerClass()\">\n <div>{{ messages().headerHours }}</div>\n <div>{{ messages().headerMinutes }}</div>\n @if (showSeconds()) {\n <div>{{ messages().headerSeconds }}</div>\n }\n</div>\n\n<div [class]=\"infoContainerClass()\">\n <span>{{ navigatedDateText() }}</span>\n <button monaButton look=\"ghost\" [rounded]=\"rounded()\" [size]=\"'small'\" (click)=\"onNowClick()\">\n {{ messages().now }}\n </button>\n</div>\n\n<div [class]=\"listContainerClass()\">\n <ol\n #hourList\n monaTimeSelectorList\n [attr.aria-label]=\"messages().hours\"\n [attr.aria-activedescendant]=\"activeOptionId(hourListId, hourOptions(), navigatedDate().hour)\"\n [attr.aria-readonly]=\"readonly() || null\"\n [attr.aria-required]=\"required() || null\"\n [active]=\"focusedList() === 'hours'\"\n [id]=\"hourListId\"\n [popupHeight]=\"computedPopupHeight()\"\n [size]=\"size()\">\n @for (h of hourOptions(); track h.value) {\n <li\n monaTimeSelectorItem\n [size]=\"size()\"\n [selected]=\"h.viewValue === hour()\"\n [value]=\"h.value\"\n [id]=\"`${hourListId}${h.value}`\"\n (click)=\"onHourChange(h.value)\">\n {{ formatTwoDigit(h.viewValue) }}\n </li>\n }\n </ol>\n <ol\n #minuteList\n monaTimeSelectorList\n [attr.aria-label]=\"messages().minutes\"\n [attr.aria-activedescendant]=\"activeOptionId(minuteListId, minuteOptions(), minute())\"\n [attr.aria-readonly]=\"readonly() || null\"\n [attr.aria-required]=\"required() || null\"\n [active]=\"focusedList() === 'minutes'\"\n [id]=\"minuteListId\"\n [popupHeight]=\"computedPopupHeight()\"\n [size]=\"size()\">\n @for (m of minuteOptions(); track m.value) {\n <li\n monaTimeSelectorItem\n [size]=\"size()\"\n [selected]=\"m.value === minute()\"\n [value]=\"m.value\"\n [id]=\"`${minuteListId}${m.value}`\"\n (click)=\"onMinuteChange(m.value)\">\n {{ formatTwoDigit(m.viewValue) }}\n </li>\n }\n </ol>\n @if (showSeconds()) {\n <ol\n #secondList\n monaTimeSelectorList\n [attr.aria-label]=\"messages().seconds\"\n [attr.aria-activedescendant]=\"activeOptionId(secondListId, secondOptions(), second())\"\n [attr.aria-readonly]=\"readonly() || null\"\n [attr.aria-required]=\"required() || null\"\n [active]=\"focusedList() === 'seconds'\"\n [id]=\"secondListId\"\n [popupHeight]=\"computedPopupHeight()\"\n [size]=\"size()\">\n @for (s of secondOptions(); track s.value) {\n <li\n monaTimeSelectorItem\n [size]=\"size()\"\n [selected]=\"s.value === second()\"\n [value]=\"s.value\"\n [id]=\"`${secondListId}${s.value}`\"\n (click)=\"onSecondChange(s.value)\">\n {{ formatTwoDigit(s.value) }}\n </li>\n }\n </ol>\n }\n @if (effectiveHourFormat() === \"12\") {\n <ol\n #meridiemList\n monaTimeSelectorList\n [attr.aria-label]=\"messages().amPm\"\n [attr.aria-activedescendant]=\"`${meridiemListId}${meridiem()}`\"\n [attr.aria-readonly]=\"readonly() || null\"\n [attr.aria-required]=\"required() || null\"\n [active]=\"focusedList() === 'meridiem'\"\n [id]=\"meridiemListId\"\n [popupHeight]=\"computedPopupHeight()\"\n [size]=\"size()\">\n @if (amMeridiemVisible()) {\n <li\n monaTimeSelectorItem\n [size]=\"size()\"\n [selected]=\"meridiem() === 'AM'\"\n [value]=\"'AM'\"\n (click)=\"onMeridiemClick('AM')\"\n [id]=\"`${meridiemListId}AM`\">\n {{ messages().am }}\n </li>\n }\n @if (pmMeridiemVisible()) {\n <li\n monaTimeSelectorItem\n [size]=\"size()\"\n [selected]=\"meridiem() === 'PM'\"\n [value]=\"'PM'\"\n (click)=\"onMeridiemClick('PM')\"\n [id]=\"`${meridiemListId}PM`\">\n {{ messages().pm }}\n </li>\n }\n </ol>\n }\n</div>\n\n@if (footer()) {\n <div [class]=\"footerClass()\">\n <button monaButton look=\"primary\" [rounded]=\"rounded()\" [size]=\"size()\" (click)=\"onSetTimeClick()\">\n {{ messages().set }}\n </button>\n </div>\n}\n",
|
|
898
898
|
dependencies: [
|
|
899
899
|
{
|
|
900
900
|
kind: "directive",
|
|
@@ -966,7 +966,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
966
966
|
"[class]": "baseClass()",
|
|
967
967
|
"(focusout)": "onFocusOut($event)"
|
|
968
968
|
},
|
|
969
|
-
template: "<div [class]=\"headerClass()\">\n <div>{{ messages().headerHours }}</div>\n <div>{{ messages().headerMinutes }}</div>\n @if (showSeconds()) {\n <div>{{ messages().headerSeconds }}</div>\n }\n</div>\n\n<div [class]=\"infoContainerClass()\">\n <span>{{ navigatedDateText() }}</span>\n <button
|
|
969
|
+
template: "<div [class]=\"headerClass()\">\n <div>{{ messages().headerHours }}</div>\n <div>{{ messages().headerMinutes }}</div>\n @if (showSeconds()) {\n <div>{{ messages().headerSeconds }}</div>\n }\n</div>\n\n<div [class]=\"infoContainerClass()\">\n <span>{{ navigatedDateText() }}</span>\n <button monaButton look=\"ghost\" [rounded]=\"rounded()\" [size]=\"'small'\" (click)=\"onNowClick()\">\n {{ messages().now }}\n </button>\n</div>\n\n<div [class]=\"listContainerClass()\">\n <ol\n #hourList\n monaTimeSelectorList\n [attr.aria-label]=\"messages().hours\"\n [attr.aria-activedescendant]=\"activeOptionId(hourListId, hourOptions(), navigatedDate().hour)\"\n [attr.aria-readonly]=\"readonly() || null\"\n [attr.aria-required]=\"required() || null\"\n [active]=\"focusedList() === 'hours'\"\n [id]=\"hourListId\"\n [popupHeight]=\"computedPopupHeight()\"\n [size]=\"size()\">\n @for (h of hourOptions(); track h.value) {\n <li\n monaTimeSelectorItem\n [size]=\"size()\"\n [selected]=\"h.viewValue === hour()\"\n [value]=\"h.value\"\n [id]=\"`${hourListId}${h.value}`\"\n (click)=\"onHourChange(h.value)\">\n {{ formatTwoDigit(h.viewValue) }}\n </li>\n }\n </ol>\n <ol\n #minuteList\n monaTimeSelectorList\n [attr.aria-label]=\"messages().minutes\"\n [attr.aria-activedescendant]=\"activeOptionId(minuteListId, minuteOptions(), minute())\"\n [attr.aria-readonly]=\"readonly() || null\"\n [attr.aria-required]=\"required() || null\"\n [active]=\"focusedList() === 'minutes'\"\n [id]=\"minuteListId\"\n [popupHeight]=\"computedPopupHeight()\"\n [size]=\"size()\">\n @for (m of minuteOptions(); track m.value) {\n <li\n monaTimeSelectorItem\n [size]=\"size()\"\n [selected]=\"m.value === minute()\"\n [value]=\"m.value\"\n [id]=\"`${minuteListId}${m.value}`\"\n (click)=\"onMinuteChange(m.value)\">\n {{ formatTwoDigit(m.viewValue) }}\n </li>\n }\n </ol>\n @if (showSeconds()) {\n <ol\n #secondList\n monaTimeSelectorList\n [attr.aria-label]=\"messages().seconds\"\n [attr.aria-activedescendant]=\"activeOptionId(secondListId, secondOptions(), second())\"\n [attr.aria-readonly]=\"readonly() || null\"\n [attr.aria-required]=\"required() || null\"\n [active]=\"focusedList() === 'seconds'\"\n [id]=\"secondListId\"\n [popupHeight]=\"computedPopupHeight()\"\n [size]=\"size()\">\n @for (s of secondOptions(); track s.value) {\n <li\n monaTimeSelectorItem\n [size]=\"size()\"\n [selected]=\"s.value === second()\"\n [value]=\"s.value\"\n [id]=\"`${secondListId}${s.value}`\"\n (click)=\"onSecondChange(s.value)\">\n {{ formatTwoDigit(s.value) }}\n </li>\n }\n </ol>\n }\n @if (effectiveHourFormat() === \"12\") {\n <ol\n #meridiemList\n monaTimeSelectorList\n [attr.aria-label]=\"messages().amPm\"\n [attr.aria-activedescendant]=\"`${meridiemListId}${meridiem()}`\"\n [attr.aria-readonly]=\"readonly() || null\"\n [attr.aria-required]=\"required() || null\"\n [active]=\"focusedList() === 'meridiem'\"\n [id]=\"meridiemListId\"\n [popupHeight]=\"computedPopupHeight()\"\n [size]=\"size()\">\n @if (amMeridiemVisible()) {\n <li\n monaTimeSelectorItem\n [size]=\"size()\"\n [selected]=\"meridiem() === 'AM'\"\n [value]=\"'AM'\"\n (click)=\"onMeridiemClick('AM')\"\n [id]=\"`${meridiemListId}AM`\">\n {{ messages().am }}\n </li>\n }\n @if (pmMeridiemVisible()) {\n <li\n monaTimeSelectorItem\n [size]=\"size()\"\n [selected]=\"meridiem() === 'PM'\"\n [value]=\"'PM'\"\n (click)=\"onMeridiemClick('PM')\"\n [id]=\"`${meridiemListId}PM`\">\n {{ messages().pm }}\n </li>\n }\n </ol>\n }\n</div>\n\n@if (footer()) {\n <div [class]=\"footerClass()\">\n <button monaButton look=\"primary\" [rounded]=\"rounded()\" [size]=\"size()\" (click)=\"onSetTimeClick()\">\n {{ messages().set }}\n </button>\n </div>\n}\n"
|
|
970
970
|
}]
|
|
971
971
|
}],
|
|
972
972
|
ctorParameters: () => [],
|
|
@@ -491,71 +491,21 @@ var WindowResizeHandlerDirective = class WindowResizeHandlerDirective {
|
|
|
491
491
|
}
|
|
492
492
|
#computeResize(direction, deltaX, deltaY, initial, bounds) {
|
|
493
493
|
const { minWidth, minHeight, maxWidth, maxHeight, innerWidth, innerHeight } = bounds;
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
if (initial.height - deltaY > maxHeight || initial.width - deltaX > maxWidth) return null;
|
|
502
|
-
height = initial.height - deltaY;
|
|
503
|
-
top = initial.top + deltaY;
|
|
504
|
-
if (initial.left + deltaX < 0 || initial.width - deltaX < minWidth) return null;
|
|
505
|
-
width = initial.width - deltaX;
|
|
506
|
-
left = initial.left + deltaX;
|
|
507
|
-
break;
|
|
508
|
-
case "north":
|
|
509
|
-
if (initial.top + deltaY <= 0 || initial.height - deltaY < minHeight) return null;
|
|
510
|
-
if (initial.height - deltaY > maxHeight) return null;
|
|
511
|
-
height = initial.height - deltaY;
|
|
512
|
-
top = initial.top + deltaY;
|
|
513
|
-
break;
|
|
514
|
-
case "northeast":
|
|
515
|
-
if (initial.top + deltaY <= 0 || initial.height - deltaY < minHeight) return null;
|
|
516
|
-
if (initial.height - deltaY > maxHeight || initial.width + deltaX > maxWidth) return null;
|
|
517
|
-
height = initial.height - deltaY;
|
|
518
|
-
top = initial.top + deltaY;
|
|
519
|
-
if (initial.width + deltaX < minWidth || initial.left + initial.width + deltaX > innerWidth) return null;
|
|
520
|
-
width = initial.width + deltaX;
|
|
521
|
-
break;
|
|
522
|
-
case "east":
|
|
523
|
-
if (initial.width + deltaX < minWidth || initial.left + initial.width + deltaX > innerWidth) return null;
|
|
524
|
-
if (initial.width + deltaX > maxWidth) return null;
|
|
525
|
-
width = initial.width + deltaX;
|
|
526
|
-
break;
|
|
527
|
-
case "southeast":
|
|
528
|
-
if (initial.height + deltaY < minHeight || initial.top + initial.height + deltaY > innerHeight) return null;
|
|
529
|
-
if (initial.height + deltaY > maxHeight || initial.width + deltaX > maxWidth) return null;
|
|
530
|
-
height = initial.height + deltaY;
|
|
531
|
-
if (initial.width + deltaX < minWidth || initial.left + initial.width + deltaX > innerWidth) return null;
|
|
532
|
-
width = initial.width + deltaX;
|
|
533
|
-
break;
|
|
534
|
-
case "south":
|
|
535
|
-
if (initial.height + deltaY < minHeight || initial.top + initial.height + deltaY > innerHeight) return null;
|
|
536
|
-
if (initial.height + deltaY > maxHeight) return null;
|
|
537
|
-
height = initial.height + deltaY;
|
|
538
|
-
break;
|
|
539
|
-
case "southwest":
|
|
540
|
-
if (initial.height + deltaY < minHeight || initial.top + initial.height + deltaY > innerHeight) return null;
|
|
541
|
-
if (initial.height + deltaY > maxHeight || initial.width - deltaX > maxWidth) return null;
|
|
542
|
-
height = initial.height + deltaY;
|
|
543
|
-
if (initial.left + deltaX < 0 || initial.width - deltaX < minWidth) return null;
|
|
544
|
-
width = initial.width - deltaX;
|
|
545
|
-
left = initial.left + deltaX;
|
|
546
|
-
break;
|
|
547
|
-
case "west":
|
|
548
|
-
if (initial.left + deltaX < 0 || initial.width - deltaX < minWidth) return null;
|
|
549
|
-
if (initial.width - deltaX > maxWidth) return null;
|
|
550
|
-
width = initial.width - deltaX;
|
|
551
|
-
left = initial.left + deltaX;
|
|
494
|
+
const clamp = (value, min, max) => Math.max(min, Math.min(value, max));
|
|
495
|
+
const result = {};
|
|
496
|
+
if (direction.includes("east")) result.width = clamp(initial.width + deltaX, minWidth, Math.min(maxWidth, innerWidth - initial.left));
|
|
497
|
+
else if (direction.includes("west")) {
|
|
498
|
+
const right = initial.left + initial.width;
|
|
499
|
+
result.width = clamp(initial.width - deltaX, minWidth, Math.min(maxWidth, right));
|
|
500
|
+
result.left = right - result.width;
|
|
552
501
|
}
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
height
|
|
556
|
-
|
|
557
|
-
top
|
|
558
|
-
}
|
|
502
|
+
if (direction.includes("south")) result.height = clamp(initial.height + deltaY, minHeight, Math.min(maxHeight, innerHeight - initial.top));
|
|
503
|
+
else if (direction.includes("north")) {
|
|
504
|
+
const bottom = initial.top + initial.height;
|
|
505
|
+
result.height = clamp(initial.height - deltaY, minHeight, Math.min(maxHeight, bottom));
|
|
506
|
+
result.top = bottom - result.height;
|
|
507
|
+
}
|
|
508
|
+
return result;
|
|
559
509
|
}
|
|
560
510
|
#onPointerDown(event) {
|
|
561
511
|
if (event.button !== 0 || !event.isPrimary) return;
|
|
@@ -580,9 +530,7 @@ var WindowResizeHandlerDirective = class WindowResizeHandlerDirective {
|
|
|
580
530
|
if (moveEvent.pointerId !== pointerId) return;
|
|
581
531
|
const deltaX = moveEvent.clientX - initialX;
|
|
582
532
|
const deltaY = moveEvent.clientY - initialY;
|
|
583
|
-
|
|
584
|
-
if (!result) return;
|
|
585
|
-
this.#applyResize(result, initial);
|
|
533
|
+
this.#applyResize(this.#computeResize(this.direction(), deltaX, deltaY, initial, bounds), initial);
|
|
586
534
|
};
|
|
587
535
|
const cleanup = () => {
|
|
588
536
|
this.#document.removeEventListener("pointermove", onPointerMove);
|
package/package.json
CHANGED
|
@@ -241,6 +241,8 @@ export declare class DateTimePickerComponent implements FormValueControl<Date |
|
|
|
241
241
|
private openPopup;
|
|
242
242
|
private setPopupCloseSubscription;
|
|
243
243
|
private setPopupKeyboardSubscription;
|
|
244
|
+
/** Where the popup starts without a value: now, moved into the min and max range so Set can't leave it. */
|
|
245
|
+
private startDate;
|
|
244
246
|
private updateDateIfNotInRange;
|
|
245
247
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateTimePickerComponent, never>;
|
|
246
248
|
static ɵcmp: i0.ɵɵComponentDeclaration<DateTimePickerComponent, "mona-datetime-picker", never, {
|