@nanahoshi/mona-ui 0.45.0 → 0.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD_PARTY_NOTICES.md +34 -0
- package/alert/package.json +3 -2
- package/auto-complete/package.json +3 -2
- package/avatar/package.json +3 -2
- package/badge/package.json +3 -2
- package/breadcrumb/package.json +3 -2
- package/button/package.json +3 -2
- package/button-group/package.json +3 -2
- package/calendar/package.json +3 -2
- package/card/package.json +3 -2
- package/chart/package.json +3 -2
- package/chat/package.json +3 -2
- package/check-box/package.json +3 -2
- package/chip/package.json +3 -2
- package/circular-progress-bar/package.json +3 -2
- package/collapsible/package.json +3 -2
- package/color-gradient/package.json +3 -2
- package/color-palette/package.json +3 -2
- package/color-picker/package.json +3 -2
- package/combo-box/package.json +3 -2
- package/command/package.json +3 -2
- package/common/package.json +3 -2
- package/contextmenu/package.json +3 -2
- package/date-input/package.json +3 -2
- package/date-picker/package.json +3 -2
- package/date-range-picker/package.json +3 -2
- package/datetime-picker/package.json +3 -2
- package/dialog/package.json +3 -2
- package/docs/api/index.json +1 -1
- package/docs/api/theme.json +1 -1
- package/docs/api/theme.md +14 -6
- package/docs/installation.md +1 -1
- package/docs/manifest.json +1 -1
- package/docs/theming-built-in-themes.md +25 -12
- package/docs/theming-custom-themes.md +19 -0
- package/docs/theming.md +2 -1
- package/dropdown-button/package.json +3 -2
- package/dropdown-list/package.json +3 -2
- package/dropdown-tree/package.json +3 -2
- package/dropdowns/package.json +3 -2
- package/editor/package.json +3 -2
- package/expansion-panel/package.json +3 -2
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-colgroup.component-DpszxgFY.mjs → grid-colgroup.component-B4jx10Yi.mjs} +5 -5
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-footer-row.component-CpvzAcX8.mjs → grid-footer-row.component-CVUltI39.mjs} +12 -12
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-list.component-tRmEWiQR.mjs → grid-list.component-Cv1KB5VQ.mjs} +14 -14
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-row.component-eET6dh2Q.mjs → grid-row.component-BauMmps5.mjs} +42 -42
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-virtual-list.component-8h2EMexB.mjs → grid-virtual-list.component-DNjoZfHq.mjs} +10 -10
- package/fesm2022/{nanahoshi-mona-ui-grid-grid.styles-wAf6jsT9.mjs → grid.styles-BJHVTT_v.mjs} +27 -27
- package/fesm2022/nanahoshi-mona-ui-alert.mjs +9 -9
- package/fesm2022/nanahoshi-mona-ui-auto-complete.mjs +15 -15
- package/fesm2022/nanahoshi-mona-ui-avatar.mjs +7 -7
- package/fesm2022/nanahoshi-mona-ui-badge.mjs +3 -3
- package/fesm2022/nanahoshi-mona-ui-breadcrumb.mjs +15 -15
- package/fesm2022/nanahoshi-mona-ui-button-group.mjs +7 -7
- package/fesm2022/nanahoshi-mona-ui-button.mjs +9 -9
- package/fesm2022/nanahoshi-mona-ui-calendar.mjs +32 -32
- package/fesm2022/nanahoshi-mona-ui-card.mjs +25 -25
- package/fesm2022/nanahoshi-mona-ui-chart.mjs +170 -170
- package/fesm2022/nanahoshi-mona-ui-chat.mjs +19 -19
- package/fesm2022/nanahoshi-mona-ui-check-box.mjs +12 -12
- package/fesm2022/nanahoshi-mona-ui-chip.mjs +9 -9
- package/fesm2022/nanahoshi-mona-ui-circular-progress-bar.mjs +7 -7
- package/fesm2022/nanahoshi-mona-ui-collapsible.mjs +9 -9
- package/fesm2022/nanahoshi-mona-ui-color-gradient.mjs +13 -13
- package/fesm2022/nanahoshi-mona-ui-color-palette.mjs +5 -5
- package/fesm2022/nanahoshi-mona-ui-color-picker.mjs +20 -20
- package/fesm2022/nanahoshi-mona-ui-combo-box.mjs +15 -15
- package/fesm2022/nanahoshi-mona-ui-command.mjs +48 -48
- package/fesm2022/nanahoshi-mona-ui-common.mjs +12 -12
- package/fesm2022/nanahoshi-mona-ui-contextmenu.mjs +37 -37
- package/fesm2022/nanahoshi-mona-ui-date-input.mjs +14 -14
- package/fesm2022/nanahoshi-mona-ui-date-picker.mjs +16 -16
- package/fesm2022/nanahoshi-mona-ui-date-range-picker.mjs +16 -16
- package/fesm2022/nanahoshi-mona-ui-datetime-picker.mjs +20 -20
- package/fesm2022/nanahoshi-mona-ui-dialog.mjs +33 -33
- package/fesm2022/nanahoshi-mona-ui-dropdown-button.mjs +38 -38
- package/fesm2022/nanahoshi-mona-ui-dropdown-list.mjs +16 -16
- package/fesm2022/nanahoshi-mona-ui-dropdown-tree.mjs +12 -12
- package/fesm2022/nanahoshi-mona-ui-dropdowns.mjs +68 -68
- package/fesm2022/nanahoshi-mona-ui-editor.mjs +100 -100
- package/fesm2022/nanahoshi-mona-ui-expansion-panel.mjs +18 -18
- package/fesm2022/nanahoshi-mona-ui-fieldset.mjs +8 -8
- package/fesm2022/nanahoshi-mona-ui-file-upload.mjs +6 -6
- package/fesm2022/nanahoshi-mona-ui-filter.mjs +19 -19
- package/fesm2022/nanahoshi-mona-ui-form-field.mjs +14 -14
- package/fesm2022/nanahoshi-mona-ui-grid.mjs +154 -154
- package/fesm2022/nanahoshi-mona-ui-i18n.mjs +7 -7
- package/fesm2022/nanahoshi-mona-ui-internal-filter-input.mjs +6 -6
- package/fesm2022/nanahoshi-mona-ui-internal-indicator-icon.mjs +4 -4
- package/fesm2022/nanahoshi-mona-ui-internal-list.mjs +35 -35
- package/fesm2022/nanahoshi-mona-ui-internal-live-announcer.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-internal-popup-menu.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-internal-tree.mjs +39 -39
- package/fesm2022/nanahoshi-mona-ui-internal.mjs +4 -4
- package/fesm2022/nanahoshi-mona-ui-kanban.mjs +17 -17
- package/fesm2022/nanahoshi-mona-ui-label.mjs +8 -8
- package/fesm2022/nanahoshi-mona-ui-list-box.mjs +20 -20
- package/fesm2022/nanahoshi-mona-ui-list-view.mjs +38 -38
- package/fesm2022/nanahoshi-mona-ui-locales.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-masked-text-box.mjs +13 -13
- package/fesm2022/nanahoshi-mona-ui-menubar.mjs +51 -51
- package/fesm2022/nanahoshi-mona-ui-multi-select-tree.mjs +9 -9
- package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +26 -26
- package/fesm2022/nanahoshi-mona-ui-notification.mjs +18 -18
- package/fesm2022/nanahoshi-mona-ui-numeric-text-box.mjs +20 -20
- package/fesm2022/nanahoshi-mona-ui-otp-input.mjs +11 -11
- package/fesm2022/nanahoshi-mona-ui-pager.mjs +22 -22
- package/fesm2022/nanahoshi-mona-ui-placeholder.mjs +3 -3
- package/fesm2022/nanahoshi-mona-ui-popover.mjs +14 -14
- package/fesm2022/nanahoshi-mona-ui-popup-menu.mjs +145 -64
- package/fesm2022/nanahoshi-mona-ui-popup.mjs +19 -19
- package/fesm2022/nanahoshi-mona-ui-progress-bar.mjs +6 -6
- package/fesm2022/nanahoshi-mona-ui-qr-code.mjs +4 -4
- package/fesm2022/nanahoshi-mona-ui-query.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-radio-button.mjs +16 -16
- package/fesm2022/nanahoshi-mona-ui-rating.mjs +14 -14
- package/fesm2022/nanahoshi-mona-ui-scroll-view.mjs +15 -15
- package/fesm2022/nanahoshi-mona-ui-segmented.mjs +8 -8
- package/fesm2022/nanahoshi-mona-ui-separator.mjs +3 -3
- package/fesm2022/nanahoshi-mona-ui-sheet.mjs +9 -9
- package/fesm2022/nanahoshi-mona-ui-sidebar.mjs +85 -85
- package/fesm2022/nanahoshi-mona-ui-skeleton.mjs +3 -3
- package/fesm2022/nanahoshi-mona-ui-slider.mjs +31 -31
- package/fesm2022/nanahoshi-mona-ui-sortable.mjs +16 -16
- package/fesm2022/nanahoshi-mona-ui-sparkline.mjs +4 -4
- package/fesm2022/nanahoshi-mona-ui-spinner.mjs +10 -10
- package/fesm2022/nanahoshi-mona-ui-split-button.mjs +44 -44
- package/fesm2022/nanahoshi-mona-ui-splitter.mjs +21 -21
- package/fesm2022/nanahoshi-mona-ui-stepper.mjs +19 -19
- package/fesm2022/nanahoshi-mona-ui-switch.mjs +17 -17
- package/fesm2022/nanahoshi-mona-ui-tabs.mjs +26 -26
- package/fesm2022/nanahoshi-mona-ui-text-area.mjs +6 -6
- package/fesm2022/nanahoshi-mona-ui-text-box.mjs +19 -19
- package/fesm2022/nanahoshi-mona-ui-theme.mjs +302 -58
- package/fesm2022/nanahoshi-mona-ui-time-picker.mjs +15 -15
- package/fesm2022/nanahoshi-mona-ui-time-selector.mjs +14 -14
- package/fesm2022/nanahoshi-mona-ui-timeline.mjs +17 -17
- package/fesm2022/nanahoshi-mona-ui-toolbar.mjs +8 -8
- package/fesm2022/nanahoshi-mona-ui-tooltip.mjs +13 -13
- package/fesm2022/nanahoshi-mona-ui-tree-view.mjs +27 -27
- package/fesm2022/nanahoshi-mona-ui-window.mjs +40 -40
- package/fesm2022/nanahoshi-mona-ui.mjs +2 -0
- package/fieldset/package.json +3 -2
- package/file-upload/package.json +3 -2
- package/filter/package.json +3 -2
- package/form-field/package.json +3 -2
- package/grid/package.json +3 -2
- package/i18n/icu/package.json +3 -2
- package/i18n/package.json +3 -2
- package/internal/filter-input/package.json +3 -2
- package/internal/indicator-icon/package.json +3 -2
- package/internal/list/package.json +3 -2
- package/internal/live-announcer/package.json +3 -2
- package/internal/package.json +3 -2
- package/internal/popup-menu/package.json +3 -2
- package/internal/tree/package.json +3 -2
- package/kanban/package.json +3 -2
- package/label/package.json +3 -2
- package/list/package.json +3 -2
- package/list-box/package.json +3 -2
- package/list-view/package.json +3 -2
- package/llms.txt +2 -2
- package/locales/ar-sa/package.json +3 -2
- package/locales/de-de/package.json +3 -2
- package/locales/es-es/package.json +3 -2
- package/locales/fr-fr/package.json +3 -2
- package/locales/id-id/package.json +3 -2
- package/locales/it-it/package.json +3 -2
- package/locales/ja-jp/package.json +3 -2
- package/locales/ko-kr/package.json +3 -2
- package/locales/package.json +3 -2
- package/locales/pl-pl/package.json +3 -2
- package/locales/pt-br/package.json +3 -2
- package/locales/ru-ru/package.json +3 -2
- package/locales/tr-tr/package.json +3 -2
- package/locales/zh-cn/package.json +3 -2
- package/locales/zh-tw/package.json +3 -2
- package/masked-text-box/package.json +3 -2
- package/menubar/package.json +3 -2
- package/multi-select/package.json +3 -2
- package/multi-select-tree/package.json +3 -2
- package/notification/package.json +3 -2
- package/numeric-text-box/package.json +3 -2
- package/otp-input/package.json +3 -2
- package/package.json +170 -169
- package/pager/package.json +3 -2
- package/placeholder/package.json +3 -2
- package/popover/package.json +3 -2
- package/popup/package.json +3 -2
- package/popup-menu/package.json +3 -2
- package/progress-bar/package.json +3 -2
- package/qr-code/package.json +3 -2
- package/query/package.json +3 -2
- package/radio-button/package.json +3 -2
- package/rating/package.json +3 -2
- package/scroll-view/package.json +3 -2
- package/segmented/package.json +3 -2
- package/separator/package.json +3 -2
- package/sheet/package.json +3 -2
- package/sidebar/package.json +3 -2
- package/skeleton/package.json +3 -2
- package/slider/package.json +3 -2
- package/sortable/package.json +3 -2
- package/sparkline/package.json +3 -2
- package/spinner/package.json +3 -2
- package/split-button/package.json +3 -2
- package/splitter/package.json +3 -2
- package/stepper/package.json +3 -2
- package/switch/package.json +3 -2
- package/tabs/package.json +3 -2
- package/text-area/package.json +3 -2
- package/text-box/package.json +3 -2
- package/theme/package.json +3 -2
- package/time-picker/package.json +3 -2
- package/time-selector/package.json +3 -2
- package/timeline/package.json +3 -2
- package/toolbar/package.json +3 -2
- package/tooltip/package.json +3 -2
- package/tree-view/package.json +3 -2
- package/types/nanahoshi-mona-ui-alert.d.ts +2 -2
- package/types/nanahoshi-mona-ui-auto-complete.d.ts +9 -9
- package/types/nanahoshi-mona-ui-badge.d.ts +7 -7
- package/types/nanahoshi-mona-ui-breadcrumb.d.ts +2 -2
- package/types/nanahoshi-mona-ui-button-group.d.ts +9 -9
- package/types/nanahoshi-mona-ui-button.d.ts +15 -15
- package/types/nanahoshi-mona-ui-calendar.d.ts +9 -9
- package/types/nanahoshi-mona-ui-card.d.ts +5 -5
- package/types/nanahoshi-mona-ui-chart.d.ts +7 -7
- package/types/nanahoshi-mona-ui-chat.d.ts +2 -2
- package/types/nanahoshi-mona-ui-check-box.d.ts +7 -7
- package/types/nanahoshi-mona-ui-chip.d.ts +9 -9
- package/types/nanahoshi-mona-ui-circular-progress-bar.d.ts +1 -1
- package/types/nanahoshi-mona-ui-collapsible.d.ts +2 -2
- package/types/nanahoshi-mona-ui-color-gradient.d.ts +7 -7
- package/types/nanahoshi-mona-ui-color-palette.d.ts +6 -6
- package/types/nanahoshi-mona-ui-color-picker.d.ts +9 -9
- package/types/nanahoshi-mona-ui-combo-box.d.ts +10 -10
- package/types/nanahoshi-mona-ui-command.d.ts +2 -2
- package/types/nanahoshi-mona-ui-contextmenu.d.ts +2 -2
- package/types/nanahoshi-mona-ui-date-input.d.ts +7 -7
- package/types/nanahoshi-mona-ui-date-picker.d.ts +12 -12
- package/types/nanahoshi-mona-ui-date-range-picker.d.ts +12 -12
- package/types/nanahoshi-mona-ui-datetime-picker.d.ts +13 -13
- package/types/nanahoshi-mona-ui-dialog.d.ts +8 -8
- package/types/nanahoshi-mona-ui-dropdown-button.d.ts +4 -4
- package/types/nanahoshi-mona-ui-dropdown-list.d.ts +9 -9
- package/types/nanahoshi-mona-ui-dropdown-tree.d.ts +9 -9
- package/types/nanahoshi-mona-ui-dropdowns.d.ts +9 -9
- package/types/nanahoshi-mona-ui-editor.d.ts +3 -3
- package/types/nanahoshi-mona-ui-expansion-panel.d.ts +4 -4
- package/types/nanahoshi-mona-ui-fieldset.d.ts +4 -4
- package/types/nanahoshi-mona-ui-file-upload.d.ts +1 -1
- package/types/nanahoshi-mona-ui-filter.d.ts +8 -8
- package/types/nanahoshi-mona-ui-grid.d.ts +50 -49
- package/types/nanahoshi-mona-ui-i18n.d.ts +2 -2
- package/types/nanahoshi-mona-ui-internal-filter-input.d.ts +1 -1
- package/types/nanahoshi-mona-ui-internal-list.d.ts +5 -5
- package/types/nanahoshi-mona-ui-internal-popup-menu.d.ts +1 -1
- package/types/nanahoshi-mona-ui-internal-tree.d.ts +2 -2
- package/types/nanahoshi-mona-ui-internal.d.ts +2 -2
- package/types/nanahoshi-mona-ui-kanban.d.ts +2 -2
- package/types/nanahoshi-mona-ui-list-box.d.ts +7 -7
- package/types/nanahoshi-mona-ui-list-view.d.ts +9 -9
- package/types/nanahoshi-mona-ui-locales.d.ts +1 -1
- package/types/nanahoshi-mona-ui-masked-text-box.d.ts +6 -6
- package/types/nanahoshi-mona-ui-menubar.d.ts +8 -8
- package/types/nanahoshi-mona-ui-multi-select-tree.d.ts +8 -8
- package/types/nanahoshi-mona-ui-multi-select.d.ts +11 -11
- package/types/nanahoshi-mona-ui-numeric-text-box.d.ts +9 -9
- package/types/nanahoshi-mona-ui-otp-input.d.ts +7 -7
- package/types/nanahoshi-mona-ui-pager.d.ts +7 -7
- package/types/nanahoshi-mona-ui-placeholder.d.ts +2 -2
- package/types/nanahoshi-mona-ui-popover.d.ts +5 -5
- package/types/nanahoshi-mona-ui-popup-menu.d.ts +9 -9
- package/types/nanahoshi-mona-ui-popup.d.ts +4 -4
- package/types/nanahoshi-mona-ui-progress-bar.d.ts +5 -5
- package/types/nanahoshi-mona-ui-qr-code.d.ts +1 -1
- package/types/nanahoshi-mona-ui-radio-button.d.ts +8 -8
- package/types/nanahoshi-mona-ui-rating.d.ts +10 -10
- package/types/nanahoshi-mona-ui-scroll-view.d.ts +6 -6
- package/types/nanahoshi-mona-ui-segmented.d.ts +9 -9
- package/types/nanahoshi-mona-ui-separator.d.ts +1 -1
- package/types/nanahoshi-mona-ui-sheet.d.ts +4 -4
- package/types/nanahoshi-mona-ui-sidebar.d.ts +5 -5
- package/types/nanahoshi-mona-ui-skeleton.d.ts +3 -3
- package/types/nanahoshi-mona-ui-slider.d.ts +8 -8
- package/types/nanahoshi-mona-ui-sortable.d.ts +2 -2
- package/types/nanahoshi-mona-ui-sparkline.d.ts +1 -1
- package/types/nanahoshi-mona-ui-spinner.d.ts +6 -6
- package/types/nanahoshi-mona-ui-split-button.d.ts +10 -10
- package/types/nanahoshi-mona-ui-splitter.d.ts +3 -3
- package/types/nanahoshi-mona-ui-stepper.d.ts +6 -6
- package/types/nanahoshi-mona-ui-switch.d.ts +7 -7
- package/types/nanahoshi-mona-ui-tabs.d.ts +13 -13
- package/types/nanahoshi-mona-ui-text-area.d.ts +4 -4
- package/types/nanahoshi-mona-ui-text-box.d.ts +9 -9
- package/types/nanahoshi-mona-ui-theme.d.ts +107 -37
- package/types/nanahoshi-mona-ui-time-picker.d.ts +12 -12
- package/types/nanahoshi-mona-ui-time-selector.d.ts +8 -8
- package/types/nanahoshi-mona-ui-toolbar.d.ts +3 -3
- package/types/nanahoshi-mona-ui-tooltip.d.ts +6 -6
- package/types/nanahoshi-mona-ui-tree-view.d.ts +2 -2
- package/types/nanahoshi-mona-ui-window.d.ts +7 -7
- package/types/nanahoshi-mona-ui.d.ts +2 -1
- package/window/package.json +3 -2
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { NgTemplateOutlet } from "@angular/common";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
import { Component, DOCUMENT, DestroyRef, ElementRef, Injector, TemplateRef, afterNextRender, booleanAttribute, computed, contentChild, effect, forwardRef, inject, input, linkedSignal, model, output, untracked, viewChild } from "@angular/core";
|
|
3
|
+
import { Component, DOCUMENT as DOCUMENT$1, DestroyRef, ElementRef, Injector, TemplateRef, afterNextRender, booleanAttribute, computed, contentChild, effect, forwardRef, inject, input, linkedSignal, model, output, untracked, viewChild } from "@angular/core";
|
|
4
|
+
import { FilterChangeEvent } from "@nanahoshi/mona-ui/common";
|
|
5
|
+
import { MonaI18nService } from "@nanahoshi/mona-ui/i18n";
|
|
6
|
+
import { twMerge } from "tailwind-merge";
|
|
7
|
+
import { cva } from "class-variance-authority";
|
|
4
8
|
import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
|
|
5
9
|
import { FIELD_ASSOCIATION_BOUNDARY, createElementControlId, injectEffectiveDisabled, injectLabelAssociation, rxTimeout, themeControlSurfaceClasses } from "@nanahoshi/mona-ui/internal";
|
|
6
|
-
import { FilterChangeEvent } from "@nanahoshi/mona-ui/common";
|
|
7
10
|
import { IndicatorIconComponent } from "@nanahoshi/mona-ui/internal/indicator-icon";
|
|
8
11
|
import { ListComponent, ListFooterTemplateDirective, ListGroupHeaderTemplateDirective, ListHeaderTemplateDirective, ListItemTemplateDirective, ListNoDataTemplateDirective, ListService } from "@nanahoshi/mona-ui/internal/list";
|
|
9
12
|
import * as i1 from "@nanahoshi/mona-ui/dropdowns";
|
|
10
13
|
import { DROPDOWN_DATA_INPUT_TOKEN, DROPDOWN_POPUP_INPUT_TOKEN, DropdownDataHandlerDirective, DropdownFooterTemplateDirective, DropdownGroupHeaderTemplateDirective, DropdownHeaderTemplateDirective, DropdownItemTemplateDirective, DropdownListPopupHandlerDirective, DropdownLiveRegionDirective, DropdownNoDataTemplateDirective, DropdownPrefixTemplateDirective, DropdownService, DropdownSuffixTemplateDirective, dropdownPopupThemeVariants, dropdownSheetInputClasses, dropdownSheetInputContainerClasses, dropdownSheetSurfaceClasses, injectSmallScreen, matchesSmallScreen } from "@nanahoshi/mona-ui/dropdowns";
|
|
11
14
|
import { TextBoxDirective } from "@nanahoshi/mona-ui/text-box";
|
|
12
|
-
import { MonaI18nService } from "@nanahoshi/mona-ui/i18n";
|
|
13
15
|
import { Subject, debounceTime, filter, identity, take, tap } from "rxjs";
|
|
14
|
-
import { twMerge } from "tailwind-merge";
|
|
15
|
-
import { cva } from "class-variance-authority";
|
|
16
16
|
const AUTO_COMPLETE_DEFAULT_MESSAGES = { clear: "Clear" };
|
|
17
17
|
const autoCompleteBaseThemeVariants = cva(`
|
|
18
18
|
flex
|
|
@@ -20,7 +20,7 @@ const autoCompleteBaseThemeVariants = cva(`
|
|
|
20
20
|
border border-input-border shadow-(--shadow-control) outline-none focus-visible:outline-hidden
|
|
21
21
|
transition-[color,box-shadow,border] duration-(--mona-motion-standard) ease-in-out
|
|
22
22
|
data-[readonly='true']:cursor-default
|
|
23
|
-
focus-within:border-focus-indicator focus-within:ring-
|
|
23
|
+
focus-within:border-focus-indicator focus-within:ring-(length:--mona-focus-ring-width,2px) focus-within:ring-focus-indicator/(--mona-focus-ring-opacity,35%)
|
|
24
24
|
`, {
|
|
25
25
|
variants: {
|
|
26
26
|
disabled: { true: `
|
|
@@ -28,10 +28,10 @@ const autoCompleteBaseThemeVariants = cva(`
|
|
|
28
28
|
bg-disabled-background text-disabled-foreground
|
|
29
29
|
border-disabled-border shadow-none
|
|
30
30
|
` },
|
|
31
|
-
expanded: { true: "border-focus-indicator ring-
|
|
32
|
-
focused: { true: "border-focus-indicator ring-
|
|
31
|
+
expanded: { true: "border-focus-indicator ring-(length:--mona-focus-ring-width,2px) ring-focus-indicator/(--mona-focus-ring-opacity,35%)" },
|
|
32
|
+
focused: { true: "border-focus-indicator ring-(length:--mona-focus-ring-width,2px) ring-focus-indicator/(--mona-focus-ring-opacity,35%)" },
|
|
33
33
|
invalid: {
|
|
34
|
-
true: "border-error ring-
|
|
34
|
+
true: "border-error ring-(length:--mona-focus-ring-width,2px) ring-error/(--mona-focus-ring-opacity,35%) focus-within:border-error focus-within:ring-error/(--mona-focus-ring-opacity,35%)",
|
|
35
35
|
false: ""
|
|
36
36
|
},
|
|
37
37
|
rounded: {
|
|
@@ -50,11 +50,11 @@ const autoCompleteBaseThemeVariants = cva(`
|
|
|
50
50
|
compoundVariants: [{
|
|
51
51
|
expanded: true,
|
|
52
52
|
invalid: true,
|
|
53
|
-
class: "border-error ring-error/35"
|
|
53
|
+
class: "border-error ring-error/(--mona-focus-ring-opacity,35%)"
|
|
54
54
|
}, {
|
|
55
55
|
focused: true,
|
|
56
56
|
invalid: true,
|
|
57
|
-
class: "border-error ring-error/35"
|
|
57
|
+
class: "border-error ring-error/(--mona-focus-ring-opacity,35%)"
|
|
58
58
|
}],
|
|
59
59
|
defaultVariants: {
|
|
60
60
|
disabled: false,
|
|
@@ -90,7 +90,7 @@ var AutoCompleteComponent = class AutoCompleteComponent {
|
|
|
90
90
|
#closingSheet;
|
|
91
91
|
constructor() {
|
|
92
92
|
this.#destroyRef = inject(DestroyRef);
|
|
93
|
-
this.#document = inject(DOCUMENT);
|
|
93
|
+
this.#document = inject(DOCUMENT$1);
|
|
94
94
|
this.#dropdownService = inject(DropdownService);
|
|
95
95
|
this.#hostElementRef = inject(ElementRef);
|
|
96
96
|
this.#i18n = inject(MonaI18nService);
|
|
@@ -439,7 +439,7 @@ var AutoCompleteComponent = class AutoCompleteComponent {
|
|
|
439
439
|
static {
|
|
440
440
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
441
441
|
minVersion: "12.0.0",
|
|
442
|
-
version: "22.
|
|
442
|
+
version: "22.3.0",
|
|
443
443
|
ngImport: i0,
|
|
444
444
|
type: AutoCompleteComponent,
|
|
445
445
|
deps: [],
|
|
@@ -449,7 +449,7 @@ var AutoCompleteComponent = class AutoCompleteComponent {
|
|
|
449
449
|
static {
|
|
450
450
|
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
451
451
|
minVersion: "17.0.0",
|
|
452
|
-
version: "22.
|
|
452
|
+
version: "22.3.0",
|
|
453
453
|
type: AutoCompleteComponent,
|
|
454
454
|
isStandalone: true,
|
|
455
455
|
selector: "mona-auto-complete",
|
|
@@ -838,7 +838,7 @@ var AutoCompleteComponent = class AutoCompleteComponent {
|
|
|
838
838
|
};
|
|
839
839
|
i0.ɵɵngDeclareClassMetadata({
|
|
840
840
|
minVersion: "12.0.0",
|
|
841
|
-
version: "22.
|
|
841
|
+
version: "22.3.0",
|
|
842
842
|
ngImport: i0,
|
|
843
843
|
type: AutoCompleteComponent,
|
|
844
844
|
decorators: [{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { MonaI18nService, formatNumber } from "@nanahoshi/mona-ui/i18n";
|
|
2
1
|
import * as i0 from "@angular/core";
|
|
3
2
|
import { Component, InjectionToken, computed, contentChildren, inject, input, linkedSignal, numberAttribute } from "@angular/core";
|
|
4
3
|
import { classInputToClass } from "@nanahoshi/mona-ui/common";
|
|
4
|
+
import { MonaI18nService, formatNumber } from "@nanahoshi/mona-ui/i18n";
|
|
5
5
|
import { twMerge } from "tailwind-merge";
|
|
6
6
|
import { cva } from "class-variance-authority";
|
|
7
7
|
function localizeNumber(value, options) {
|
|
@@ -103,7 +103,7 @@ var AvatarComponent = class AvatarComponent {
|
|
|
103
103
|
static {
|
|
104
104
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
105
105
|
minVersion: "12.0.0",
|
|
106
|
-
version: "22.
|
|
106
|
+
version: "22.3.0",
|
|
107
107
|
ngImport: i0,
|
|
108
108
|
type: AvatarComponent,
|
|
109
109
|
deps: [],
|
|
@@ -113,7 +113,7 @@ var AvatarComponent = class AvatarComponent {
|
|
|
113
113
|
static {
|
|
114
114
|
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
115
115
|
minVersion: "17.0.0",
|
|
116
|
-
version: "22.
|
|
116
|
+
version: "22.3.0",
|
|
117
117
|
type: AvatarComponent,
|
|
118
118
|
isStandalone: true,
|
|
119
119
|
selector: "mona-avatar",
|
|
@@ -237,7 +237,7 @@ var AvatarComponent = class AvatarComponent {
|
|
|
237
237
|
};
|
|
238
238
|
i0.ɵɵngDeclareClassMetadata({
|
|
239
239
|
minVersion: "12.0.0",
|
|
240
|
-
version: "22.
|
|
240
|
+
version: "22.3.0",
|
|
241
241
|
ngImport: i0,
|
|
242
242
|
type: AvatarComponent,
|
|
243
243
|
decorators: [{
|
|
@@ -434,7 +434,7 @@ var AvatarGroupComponent = class AvatarGroupComponent {
|
|
|
434
434
|
static {
|
|
435
435
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
436
436
|
minVersion: "12.0.0",
|
|
437
|
-
version: "22.
|
|
437
|
+
version: "22.3.0",
|
|
438
438
|
ngImport: i0,
|
|
439
439
|
type: AvatarGroupComponent,
|
|
440
440
|
deps: [],
|
|
@@ -444,7 +444,7 @@ var AvatarGroupComponent = class AvatarGroupComponent {
|
|
|
444
444
|
static {
|
|
445
445
|
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
446
446
|
minVersion: "17.0.0",
|
|
447
|
-
version: "22.
|
|
447
|
+
version: "22.3.0",
|
|
448
448
|
type: AvatarGroupComponent,
|
|
449
449
|
isStandalone: true,
|
|
450
450
|
selector: "mona-avatar-group",
|
|
@@ -493,7 +493,7 @@ var AvatarGroupComponent = class AvatarGroupComponent {
|
|
|
493
493
|
};
|
|
494
494
|
i0.ɵɵngDeclareClassMetadata({
|
|
495
495
|
minVersion: "12.0.0",
|
|
496
|
-
version: "22.
|
|
496
|
+
version: "22.3.0",
|
|
497
497
|
ngImport: i0,
|
|
498
498
|
type: AvatarGroupComponent,
|
|
499
499
|
decorators: [{
|
|
@@ -157,7 +157,7 @@ var BadgeDirective = class BadgeDirective {
|
|
|
157
157
|
static {
|
|
158
158
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
159
159
|
minVersion: "12.0.0",
|
|
160
|
-
version: "22.
|
|
160
|
+
version: "22.3.0",
|
|
161
161
|
ngImport: i0,
|
|
162
162
|
type: BadgeDirective,
|
|
163
163
|
deps: [],
|
|
@@ -167,7 +167,7 @@ var BadgeDirective = class BadgeDirective {
|
|
|
167
167
|
static {
|
|
168
168
|
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
169
169
|
minVersion: "17.1.0",
|
|
170
|
-
version: "22.
|
|
170
|
+
version: "22.3.0",
|
|
171
171
|
type: BadgeDirective,
|
|
172
172
|
isStandalone: true,
|
|
173
173
|
selector: "[monaBadge]",
|
|
@@ -215,7 +215,7 @@ var BadgeDirective = class BadgeDirective {
|
|
|
215
215
|
};
|
|
216
216
|
i0.ɵɵngDeclareClassMetadata({
|
|
217
217
|
minVersion: "12.0.0",
|
|
218
|
-
version: "22.
|
|
218
|
+
version: "22.3.0",
|
|
219
219
|
ngImport: i0,
|
|
220
220
|
type: BadgeDirective,
|
|
221
221
|
decorators: [{
|
|
@@ -73,7 +73,7 @@ var BreadcrumbItemDirective = class BreadcrumbItemDirective {
|
|
|
73
73
|
static {
|
|
74
74
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
75
75
|
minVersion: "12.0.0",
|
|
76
|
-
version: "22.
|
|
76
|
+
version: "22.3.0",
|
|
77
77
|
ngImport: i0,
|
|
78
78
|
type: BreadcrumbItemDirective,
|
|
79
79
|
deps: [],
|
|
@@ -83,7 +83,7 @@ var BreadcrumbItemDirective = class BreadcrumbItemDirective {
|
|
|
83
83
|
static {
|
|
84
84
|
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
85
85
|
minVersion: "17.1.0",
|
|
86
|
-
version: "22.
|
|
86
|
+
version: "22.3.0",
|
|
87
87
|
type: BreadcrumbItemDirective,
|
|
88
88
|
isStandalone: true,
|
|
89
89
|
selector: "button[monaBreadcrumbItem]",
|
|
@@ -113,7 +113,7 @@ var BreadcrumbItemDirective = class BreadcrumbItemDirective {
|
|
|
113
113
|
};
|
|
114
114
|
i0.ɵɵngDeclareClassMetadata({
|
|
115
115
|
minVersion: "12.0.0",
|
|
116
|
-
version: "22.
|
|
116
|
+
version: "22.3.0",
|
|
117
117
|
ngImport: i0,
|
|
118
118
|
type: BreadcrumbItemDirective,
|
|
119
119
|
decorators: [{
|
|
@@ -149,7 +149,7 @@ var BreadcrumbSeparatorTemplateDirective = class BreadcrumbSeparatorTemplateDire
|
|
|
149
149
|
static {
|
|
150
150
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
151
151
|
minVersion: "12.0.0",
|
|
152
|
-
version: "22.
|
|
152
|
+
version: "22.3.0",
|
|
153
153
|
ngImport: i0,
|
|
154
154
|
type: BreadcrumbSeparatorTemplateDirective,
|
|
155
155
|
deps: [],
|
|
@@ -159,7 +159,7 @@ var BreadcrumbSeparatorTemplateDirective = class BreadcrumbSeparatorTemplateDire
|
|
|
159
159
|
static {
|
|
160
160
|
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
161
161
|
minVersion: "14.0.0",
|
|
162
|
-
version: "22.
|
|
162
|
+
version: "22.3.0",
|
|
163
163
|
type: BreadcrumbSeparatorTemplateDirective,
|
|
164
164
|
isStandalone: true,
|
|
165
165
|
selector: "ng-template[monaBreadcrumbSeparatorTemplate]",
|
|
@@ -169,7 +169,7 @@ var BreadcrumbSeparatorTemplateDirective = class BreadcrumbSeparatorTemplateDire
|
|
|
169
169
|
};
|
|
170
170
|
i0.ɵɵngDeclareClassMetadata({
|
|
171
171
|
minVersion: "12.0.0",
|
|
172
|
-
version: "22.
|
|
172
|
+
version: "22.3.0",
|
|
173
173
|
ngImport: i0,
|
|
174
174
|
type: BreadcrumbSeparatorTemplateDirective,
|
|
175
175
|
decorators: [{
|
|
@@ -211,7 +211,7 @@ var BreadcrumbLinkDirective = class BreadcrumbLinkDirective {
|
|
|
211
211
|
static {
|
|
212
212
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
213
213
|
minVersion: "12.0.0",
|
|
214
|
-
version: "22.
|
|
214
|
+
version: "22.3.0",
|
|
215
215
|
ngImport: i0,
|
|
216
216
|
type: BreadcrumbLinkDirective,
|
|
217
217
|
deps: [],
|
|
@@ -221,7 +221,7 @@ var BreadcrumbLinkDirective = class BreadcrumbLinkDirective {
|
|
|
221
221
|
static {
|
|
222
222
|
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
223
223
|
minVersion: "17.1.0",
|
|
224
|
-
version: "22.
|
|
224
|
+
version: "22.3.0",
|
|
225
225
|
type: BreadcrumbLinkDirective,
|
|
226
226
|
isStandalone: true,
|
|
227
227
|
selector: "a[monaBreadcrumbLink]",
|
|
@@ -244,7 +244,7 @@ var BreadcrumbLinkDirective = class BreadcrumbLinkDirective {
|
|
|
244
244
|
};
|
|
245
245
|
i0.ɵɵngDeclareClassMetadata({
|
|
246
246
|
minVersion: "12.0.0",
|
|
247
|
-
version: "22.
|
|
247
|
+
version: "22.3.0",
|
|
248
248
|
ngImport: i0,
|
|
249
249
|
type: BreadcrumbLinkDirective,
|
|
250
250
|
decorators: [{
|
|
@@ -286,7 +286,7 @@ var BreadcrumbItemComponent = class BreadcrumbItemComponent {
|
|
|
286
286
|
static {
|
|
287
287
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
288
288
|
minVersion: "12.0.0",
|
|
289
|
-
version: "22.
|
|
289
|
+
version: "22.3.0",
|
|
290
290
|
ngImport: i0,
|
|
291
291
|
type: BreadcrumbItemComponent,
|
|
292
292
|
deps: [],
|
|
@@ -296,7 +296,7 @@ var BreadcrumbItemComponent = class BreadcrumbItemComponent {
|
|
|
296
296
|
static {
|
|
297
297
|
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
298
298
|
minVersion: "17.2.0",
|
|
299
|
-
version: "22.
|
|
299
|
+
version: "22.3.0",
|
|
300
300
|
type: BreadcrumbItemComponent,
|
|
301
301
|
isStandalone: true,
|
|
302
302
|
selector: "mona-breadcrumb-item",
|
|
@@ -333,7 +333,7 @@ var BreadcrumbItemComponent = class BreadcrumbItemComponent {
|
|
|
333
333
|
};
|
|
334
334
|
i0.ɵɵngDeclareClassMetadata({
|
|
335
335
|
minVersion: "12.0.0",
|
|
336
|
-
version: "22.
|
|
336
|
+
version: "22.3.0",
|
|
337
337
|
ngImport: i0,
|
|
338
338
|
type: BreadcrumbItemComponent,
|
|
339
339
|
decorators: [{
|
|
@@ -479,7 +479,7 @@ var BreadcrumbComponent = class BreadcrumbComponent {
|
|
|
479
479
|
static {
|
|
480
480
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
481
481
|
minVersion: "12.0.0",
|
|
482
|
-
version: "22.
|
|
482
|
+
version: "22.3.0",
|
|
483
483
|
ngImport: i0,
|
|
484
484
|
type: BreadcrumbComponent,
|
|
485
485
|
deps: [],
|
|
@@ -489,7 +489,7 @@ var BreadcrumbComponent = class BreadcrumbComponent {
|
|
|
489
489
|
static {
|
|
490
490
|
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
491
491
|
minVersion: "17.0.0",
|
|
492
|
-
version: "22.
|
|
492
|
+
version: "22.3.0",
|
|
493
493
|
type: BreadcrumbComponent,
|
|
494
494
|
isStandalone: true,
|
|
495
495
|
selector: "mona-breadcrumb",
|
|
@@ -595,7 +595,7 @@ var BreadcrumbComponent = class BreadcrumbComponent {
|
|
|
595
595
|
};
|
|
596
596
|
i0.ɵɵngDeclareClassMetadata({
|
|
597
597
|
minVersion: "12.0.0",
|
|
598
|
-
version: "22.
|
|
598
|
+
version: "22.3.0",
|
|
599
599
|
ngImport: i0,
|
|
600
600
|
type: BreadcrumbComponent,
|
|
601
601
|
decorators: [{
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import { Component, DestroyRef, ElementRef, afterNextRender, booleanAttribute, computed, contentChildren, effect, inject, input, model, output, untracked } from "@angular/core";
|
|
3
|
-
import { outputFromObservable, takeUntilDestroyed } from "@angular/core/rxjs-interop";
|
|
4
3
|
import { BUTTON_GROUP_MEMBER, ButtonDirective, ButtonService } from "@nanahoshi/mona-ui/button";
|
|
5
4
|
import { MonaI18nService } from "@nanahoshi/mona-ui/i18n";
|
|
6
|
-
import { injectEffectiveDisabled, injectLabelAssociation } from "@nanahoshi/mona-ui/internal";
|
|
7
|
-
import { filter, map } from "rxjs";
|
|
8
5
|
import { twMerge } from "tailwind-merge";
|
|
9
6
|
import { cva } from "class-variance-authority";
|
|
7
|
+
import { outputFromObservable, takeUntilDestroyed } from "@angular/core/rxjs-interop";
|
|
8
|
+
import { injectEffectiveDisabled, injectLabelAssociation } from "@nanahoshi/mona-ui/internal";
|
|
9
|
+
import { filter, map } from "rxjs";
|
|
10
10
|
const BUTTON_GROUP_DEFAULT_MESSAGES = { buttonGroup: "Button group" };
|
|
11
11
|
const buttonGroupThemeVariants = cva(`
|
|
12
12
|
inline-flex items-center justify-center
|
|
13
13
|
border border-input-border
|
|
14
14
|
data-[invalid='true']:border-error
|
|
15
|
-
data-[invalid='true']:ring-
|
|
15
|
+
data-[invalid='true']:ring-(length:--mona-focus-ring-width,2px) data-[invalid='true']:ring-error/(--mona-focus-ring-opacity,35%)
|
|
16
16
|
data-[readonly='true']:[&_button[aria-pressed]]:cursor-default
|
|
17
17
|
[&>button]:border-0
|
|
18
18
|
[&>button]:shadow-none
|
|
@@ -273,7 +273,7 @@ var ButtonGroupComponent = class ButtonGroupComponent {
|
|
|
273
273
|
static {
|
|
274
274
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
275
275
|
minVersion: "12.0.0",
|
|
276
|
-
version: "22.
|
|
276
|
+
version: "22.3.0",
|
|
277
277
|
ngImport: i0,
|
|
278
278
|
type: ButtonGroupComponent,
|
|
279
279
|
deps: [],
|
|
@@ -283,7 +283,7 @@ var ButtonGroupComponent = class ButtonGroupComponent {
|
|
|
283
283
|
static {
|
|
284
284
|
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
285
285
|
minVersion: "17.2.0",
|
|
286
|
-
version: "22.
|
|
286
|
+
version: "22.3.0",
|
|
287
287
|
type: ButtonGroupComponent,
|
|
288
288
|
isStandalone: true,
|
|
289
289
|
selector: "mona-button-group",
|
|
@@ -422,7 +422,7 @@ var ButtonGroupComponent = class ButtonGroupComponent {
|
|
|
422
422
|
};
|
|
423
423
|
i0.ɵɵngDeclareClassMetadata({
|
|
424
424
|
minVersion: "12.0.0",
|
|
425
|
-
version: "22.
|
|
425
|
+
version: "22.3.0",
|
|
426
426
|
ngImport: i0,
|
|
427
427
|
type: ButtonGroupComponent,
|
|
428
428
|
decorators: [{
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import { ApplicationRef, DestroyRef, Directive, ElementRef, Injectable, InjectionToken, Injector, Renderer2, afterNextRender, afterRenderEffect, booleanAttribute, computed, createComponent, effect, inject, input, isDevMode, model, numberAttribute, signal, untracked } from "@angular/core";
|
|
3
|
-
import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
|
|
4
|
-
import { IndicatorIconComponent } from "@nanahoshi/mona-ui/internal/indicator-icon";
|
|
5
|
-
import { Subject, fromEvent, takeWhile } from "rxjs";
|
|
6
3
|
import { twMerge } from "tailwind-merge";
|
|
7
4
|
import { cva } from "class-variance-authority";
|
|
5
|
+
import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
|
|
8
6
|
import { themeControlSurfaceClasses, themeSelectionBorderClasses } from "@nanahoshi/mona-ui/internal";
|
|
7
|
+
import { IndicatorIconComponent } from "@nanahoshi/mona-ui/internal/indicator-icon";
|
|
8
|
+
import { Subject, fromEvent, takeWhile } from "rxjs";
|
|
9
9
|
var ButtonService = class ButtonService {
|
|
10
10
|
constructor() {
|
|
11
11
|
this.#members = signal(null, ...ngDevMode ? [{ debugName: "#members" }] : /* istanbul ignore next */ []);
|
|
@@ -26,7 +26,7 @@ var ButtonService = class ButtonService {
|
|
|
26
26
|
static {
|
|
27
27
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
28
28
|
minVersion: "12.0.0",
|
|
29
|
-
version: "22.
|
|
29
|
+
version: "22.3.0",
|
|
30
30
|
ngImport: i0,
|
|
31
31
|
type: ButtonService,
|
|
32
32
|
deps: [],
|
|
@@ -36,7 +36,7 @@ var ButtonService = class ButtonService {
|
|
|
36
36
|
static {
|
|
37
37
|
this.ɵprov = i0.ɵɵngDeclareInjectable({
|
|
38
38
|
minVersion: "12.0.0",
|
|
39
|
-
version: "22.
|
|
39
|
+
version: "22.3.0",
|
|
40
40
|
ngImport: i0,
|
|
41
41
|
type: ButtonService
|
|
42
42
|
});
|
|
@@ -44,7 +44,7 @@ var ButtonService = class ButtonService {
|
|
|
44
44
|
};
|
|
45
45
|
i0.ɵɵngDeclareClassMetadata({
|
|
46
46
|
minVersion: "12.0.0",
|
|
47
|
-
version: "22.
|
|
47
|
+
version: "22.3.0",
|
|
48
48
|
ngImport: i0,
|
|
49
49
|
type: ButtonService,
|
|
50
50
|
decorators: [{ type: Injectable }]
|
|
@@ -457,7 +457,7 @@ var ButtonDirective = class ButtonDirective {
|
|
|
457
457
|
static {
|
|
458
458
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
459
459
|
minVersion: "12.0.0",
|
|
460
|
-
version: "22.
|
|
460
|
+
version: "22.3.0",
|
|
461
461
|
ngImport: i0,
|
|
462
462
|
type: ButtonDirective,
|
|
463
463
|
deps: [],
|
|
@@ -467,7 +467,7 @@ var ButtonDirective = class ButtonDirective {
|
|
|
467
467
|
static {
|
|
468
468
|
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
469
469
|
minVersion: "17.1.0",
|
|
470
|
-
version: "22.
|
|
470
|
+
version: "22.3.0",
|
|
471
471
|
type: ButtonDirective,
|
|
472
472
|
isStandalone: true,
|
|
473
473
|
selector: "button[monaButton]",
|
|
@@ -586,7 +586,7 @@ var ButtonDirective = class ButtonDirective {
|
|
|
586
586
|
};
|
|
587
587
|
i0.ɵɵngDeclareClassMetadata({
|
|
588
588
|
minVersion: "12.0.0",
|
|
589
|
-
version: "22.
|
|
589
|
+
version: "22.3.0",
|
|
590
590
|
ngImport: i0,
|
|
591
591
|
type: ButtonDirective,
|
|
592
592
|
decorators: [{
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { NgTemplateOutlet } from "@angular/common";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
import { Component, DestroyRef, Directive, ElementRef, TemplateRef, afterNextRender, booleanAttribute, computed, contentChild, effect, inject, input, linkedSignal, model, numberAttribute, output, signal, untracked } from "@angular/core";
|
|
4
|
-
import { takeUntilDestroyed, toObservable } from "@angular/core/rxjs-interop";
|
|
5
4
|
import { LucideChevronLeft, LucideChevronRight } from "@lucide/angular";
|
|
6
|
-
import { firstOrDefault, index, lastOrDefault, range, select } from "@mirei/ts-collections";
|
|
7
5
|
import { ButtonDirective } from "@nanahoshi/mona-ui/button";
|
|
8
6
|
import { PreventableEvent } from "@nanahoshi/mona-ui/common";
|
|
9
|
-
import { CalendarService } from "@nanahoshi/mona-ui/date-input";
|
|
10
|
-
import { createElementControlId, injectEffectiveDisabled, rxTimeout, themeRaisedBackdropClasses } from "@nanahoshi/mona-ui/internal";
|
|
11
|
-
import { DateTime } from "luxon";
|
|
12
|
-
import { fromEvent, skip } from "rxjs";
|
|
13
|
-
import { twMerge } from "tailwind-merge";
|
|
14
7
|
import { MonaI18nService, formatGregorianDateRangeToLocaleString, formatGregorianDateToLocaleString, formatNumber, getLocaleFirstDayOfWeek, gregorianDateTime, gregorianDateTimeFromObject, injectComponentDirection } from "@nanahoshi/mona-ui/i18n";
|
|
8
|
+
import { twMerge } from "tailwind-merge";
|
|
15
9
|
import { cva } from "class-variance-authority";
|
|
10
|
+
import { takeUntilDestroyed, toObservable } from "@angular/core/rxjs-interop";
|
|
11
|
+
import { createElementControlId, injectEffectiveDisabled, rxTimeout, themeRaisedBackdropClasses } from "@nanahoshi/mona-ui/internal";
|
|
12
|
+
import { fromEvent, skip } from "rxjs";
|
|
13
|
+
import { firstOrDefault, index, lastOrDefault, range, select } from "@mirei/ts-collections";
|
|
14
|
+
import { CalendarService } from "@nanahoshi/mona-ui/date-input";
|
|
15
|
+
import { DateTime } from "luxon";
|
|
16
16
|
function localizeNumber(value, options) {
|
|
17
17
|
return formatNumber(value, "en-US", options);
|
|
18
18
|
}
|
|
@@ -40,7 +40,7 @@ var CalendarDecadeCellTemplateDirective = class CalendarDecadeCellTemplateDirect
|
|
|
40
40
|
static {
|
|
41
41
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
42
42
|
minVersion: "12.0.0",
|
|
43
|
-
version: "22.
|
|
43
|
+
version: "22.3.0",
|
|
44
44
|
ngImport: i0,
|
|
45
45
|
type: CalendarDecadeCellTemplateDirective,
|
|
46
46
|
deps: [],
|
|
@@ -50,7 +50,7 @@ var CalendarDecadeCellTemplateDirective = class CalendarDecadeCellTemplateDirect
|
|
|
50
50
|
static {
|
|
51
51
|
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
52
52
|
minVersion: "14.0.0",
|
|
53
|
-
version: "22.
|
|
53
|
+
version: "22.3.0",
|
|
54
54
|
type: CalendarDecadeCellTemplateDirective,
|
|
55
55
|
isStandalone: true,
|
|
56
56
|
selector: "ng-template[monaCalendarDecadeCellTemplate]",
|
|
@@ -60,7 +60,7 @@ var CalendarDecadeCellTemplateDirective = class CalendarDecadeCellTemplateDirect
|
|
|
60
60
|
};
|
|
61
61
|
i0.ɵɵngDeclareClassMetadata({
|
|
62
62
|
minVersion: "12.0.0",
|
|
63
|
-
version: "22.
|
|
63
|
+
version: "22.3.0",
|
|
64
64
|
ngImport: i0,
|
|
65
65
|
type: CalendarDecadeCellTemplateDirective,
|
|
66
66
|
decorators: [{
|
|
@@ -75,7 +75,7 @@ var CalendarMonthCellTemplateDirective = class CalendarMonthCellTemplateDirectiv
|
|
|
75
75
|
static {
|
|
76
76
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
77
77
|
minVersion: "12.0.0",
|
|
78
|
-
version: "22.
|
|
78
|
+
version: "22.3.0",
|
|
79
79
|
ngImport: i0,
|
|
80
80
|
type: CalendarMonthCellTemplateDirective,
|
|
81
81
|
deps: [],
|
|
@@ -85,7 +85,7 @@ var CalendarMonthCellTemplateDirective = class CalendarMonthCellTemplateDirectiv
|
|
|
85
85
|
static {
|
|
86
86
|
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
87
87
|
minVersion: "14.0.0",
|
|
88
|
-
version: "22.
|
|
88
|
+
version: "22.3.0",
|
|
89
89
|
type: CalendarMonthCellTemplateDirective,
|
|
90
90
|
isStandalone: true,
|
|
91
91
|
selector: "ng-template[monaCalendarMonthCellTemplate]",
|
|
@@ -95,7 +95,7 @@ var CalendarMonthCellTemplateDirective = class CalendarMonthCellTemplateDirectiv
|
|
|
95
95
|
};
|
|
96
96
|
i0.ɵɵngDeclareClassMetadata({
|
|
97
97
|
minVersion: "12.0.0",
|
|
98
|
-
version: "22.
|
|
98
|
+
version: "22.3.0",
|
|
99
99
|
ngImport: i0,
|
|
100
100
|
type: CalendarMonthCellTemplateDirective,
|
|
101
101
|
decorators: [{
|
|
@@ -110,7 +110,7 @@ var CalendarYearCellTemplateDirective = class CalendarYearCellTemplateDirective
|
|
|
110
110
|
static {
|
|
111
111
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
112
112
|
minVersion: "12.0.0",
|
|
113
|
-
version: "22.
|
|
113
|
+
version: "22.3.0",
|
|
114
114
|
ngImport: i0,
|
|
115
115
|
type: CalendarYearCellTemplateDirective,
|
|
116
116
|
deps: [],
|
|
@@ -120,7 +120,7 @@ var CalendarYearCellTemplateDirective = class CalendarYearCellTemplateDirective
|
|
|
120
120
|
static {
|
|
121
121
|
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
122
122
|
minVersion: "14.0.0",
|
|
123
|
-
version: "22.
|
|
123
|
+
version: "22.3.0",
|
|
124
124
|
type: CalendarYearCellTemplateDirective,
|
|
125
125
|
isStandalone: true,
|
|
126
126
|
selector: "ng-template[monaCalendarYearCellTemplate]",
|
|
@@ -130,7 +130,7 @@ var CalendarYearCellTemplateDirective = class CalendarYearCellTemplateDirective
|
|
|
130
130
|
};
|
|
131
131
|
i0.ɵɵngDeclareClassMetadata({
|
|
132
132
|
minVersion: "12.0.0",
|
|
133
|
-
version: "22.
|
|
133
|
+
version: "22.3.0",
|
|
134
134
|
ngImport: i0,
|
|
135
135
|
type: CalendarYearCellTemplateDirective,
|
|
136
136
|
decorators: [{
|
|
@@ -144,7 +144,7 @@ const calendarBaseThemeVariants = cva(`
|
|
|
144
144
|
bg-(--mona-calendar-background) ${themeRaisedBackdropClasses} text-foreground
|
|
145
145
|
border border-border shadow-(--mona-calendar-shadow)
|
|
146
146
|
data-[invalid='true']:border-error
|
|
147
|
-
data-[invalid='true']:ring-
|
|
147
|
+
data-[invalid='true']:ring-(length:--mona-focus-ring-width,2px) data-[invalid='true']:ring-error/(--mona-focus-ring-opacity,35%)
|
|
148
148
|
`, { variants: {
|
|
149
149
|
disabled: { true: "pointer-events-none cursor-not-allowed opacity-50" },
|
|
150
150
|
readonly: { true: "pointer-events-none" },
|
|
@@ -171,7 +171,7 @@ const calendarMonthViewDayThemeVariants = cva(`
|
|
|
171
171
|
`, {
|
|
172
172
|
variants: {
|
|
173
173
|
disabled: { true: "pointer-events-none cursor-not-allowed text-disabled-foreground" },
|
|
174
|
-
focused: { true: "bg-hover outline-none focus-visible:outline-hidden ring-
|
|
174
|
+
focused: { true: "bg-hover outline-none focus-visible:outline-hidden ring-(length:--mona-focus-ring-width,2px) ring-inset ring-focus-indicator/(--mona-focus-ring-opacity,35%)" },
|
|
175
175
|
outside: { true: "text-muted-foreground" },
|
|
176
176
|
rangeMiddle: { true: `
|
|
177
177
|
bg-(--color-selected) text-(--color-selected-foreground)
|
|
@@ -220,7 +220,7 @@ const calendarYearViewCellThemeVariants = cva(`
|
|
|
220
220
|
cursor-pointer py-2
|
|
221
221
|
hover:bg-hover active:bg-active
|
|
222
222
|
`, { variants: {
|
|
223
|
-
focused: { true: "bg-hover outline-none focus-visible:outline-hidden ring-
|
|
223
|
+
focused: { true: "bg-hover outline-none focus-visible:outline-hidden ring-(length:--mona-focus-ring-width,2px) ring-inset ring-focus-indicator/(--mona-focus-ring-opacity,35%)" },
|
|
224
224
|
rounded: {
|
|
225
225
|
none: "rounded-none",
|
|
226
226
|
small: "rounded-sm",
|
|
@@ -238,7 +238,7 @@ const calendarDecadeViewCellThemeVariants = cva(`
|
|
|
238
238
|
cursor-pointer py-2
|
|
239
239
|
hover:bg-hover active:bg-active
|
|
240
240
|
`, { variants: {
|
|
241
|
-
focused: { true: "bg-hover outline-none focus-visible:outline-hidden ring-
|
|
241
|
+
focused: { true: "bg-hover outline-none focus-visible:outline-hidden ring-(length:--mona-focus-ring-width,2px) ring-inset ring-focus-indicator/(--mona-focus-ring-opacity,35%)" },
|
|
242
242
|
rounded: {
|
|
243
243
|
none: "rounded-none",
|
|
244
244
|
small: "rounded-sm",
|
|
@@ -282,7 +282,7 @@ var DecadeYearDirective = class DecadeYearDirective {
|
|
|
282
282
|
static {
|
|
283
283
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
284
284
|
minVersion: "12.0.0",
|
|
285
|
-
version: "22.
|
|
285
|
+
version: "22.3.0",
|
|
286
286
|
ngImport: i0,
|
|
287
287
|
type: DecadeYearDirective,
|
|
288
288
|
deps: [],
|
|
@@ -292,7 +292,7 @@ var DecadeYearDirective = class DecadeYearDirective {
|
|
|
292
292
|
static {
|
|
293
293
|
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
294
294
|
minVersion: "17.1.0",
|
|
295
|
-
version: "22.
|
|
295
|
+
version: "22.3.0",
|
|
296
296
|
type: DecadeYearDirective,
|
|
297
297
|
isStandalone: true,
|
|
298
298
|
selector: "[monaDecadeYear]",
|
|
@@ -350,7 +350,7 @@ var DecadeYearDirective = class DecadeYearDirective {
|
|
|
350
350
|
};
|
|
351
351
|
i0.ɵɵngDeclareClassMetadata({
|
|
352
352
|
minVersion: "12.0.0",
|
|
353
|
-
version: "22.
|
|
353
|
+
version: "22.3.0",
|
|
354
354
|
ngImport: i0,
|
|
355
355
|
type: DecadeYearDirective,
|
|
356
356
|
decorators: [{
|
|
@@ -525,7 +525,7 @@ var MonthDayDirective = class MonthDayDirective {
|
|
|
525
525
|
static {
|
|
526
526
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
527
527
|
minVersion: "12.0.0",
|
|
528
|
-
version: "22.
|
|
528
|
+
version: "22.3.0",
|
|
529
529
|
ngImport: i0,
|
|
530
530
|
type: MonthDayDirective,
|
|
531
531
|
deps: [],
|
|
@@ -535,7 +535,7 @@ var MonthDayDirective = class MonthDayDirective {
|
|
|
535
535
|
static {
|
|
536
536
|
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
537
537
|
minVersion: "17.1.0",
|
|
538
|
-
version: "22.
|
|
538
|
+
version: "22.3.0",
|
|
539
539
|
type: MonthDayDirective,
|
|
540
540
|
isStandalone: true,
|
|
541
541
|
selector: "[monaMonthDay]",
|
|
@@ -638,7 +638,7 @@ var MonthDayDirective = class MonthDayDirective {
|
|
|
638
638
|
};
|
|
639
639
|
i0.ɵɵngDeclareClassMetadata({
|
|
640
640
|
minVersion: "12.0.0",
|
|
641
|
-
version: "22.
|
|
641
|
+
version: "22.3.0",
|
|
642
642
|
ngImport: i0,
|
|
643
643
|
type: MonthDayDirective,
|
|
644
644
|
decorators: [{
|
|
@@ -795,7 +795,7 @@ var YearMonthDirective = class YearMonthDirective {
|
|
|
795
795
|
static {
|
|
796
796
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
797
797
|
minVersion: "12.0.0",
|
|
798
|
-
version: "22.
|
|
798
|
+
version: "22.3.0",
|
|
799
799
|
ngImport: i0,
|
|
800
800
|
type: YearMonthDirective,
|
|
801
801
|
deps: [],
|
|
@@ -805,7 +805,7 @@ var YearMonthDirective = class YearMonthDirective {
|
|
|
805
805
|
static {
|
|
806
806
|
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
807
807
|
minVersion: "17.1.0",
|
|
808
|
-
version: "22.
|
|
808
|
+
version: "22.3.0",
|
|
809
809
|
type: YearMonthDirective,
|
|
810
810
|
isStandalone: true,
|
|
811
811
|
selector: "[monaYearMonth]",
|
|
@@ -863,7 +863,7 @@ var YearMonthDirective = class YearMonthDirective {
|
|
|
863
863
|
};
|
|
864
864
|
i0.ɵɵngDeclareClassMetadata({
|
|
865
865
|
minVersion: "12.0.0",
|
|
866
|
-
version: "22.
|
|
866
|
+
version: "22.3.0",
|
|
867
867
|
ngImport: i0,
|
|
868
868
|
type: YearMonthDirective,
|
|
869
869
|
decorators: [{
|
|
@@ -1804,7 +1804,7 @@ var CalendarComponent = class CalendarComponent {
|
|
|
1804
1804
|
static {
|
|
1805
1805
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
1806
1806
|
minVersion: "12.0.0",
|
|
1807
|
-
version: "22.
|
|
1807
|
+
version: "22.3.0",
|
|
1808
1808
|
ngImport: i0,
|
|
1809
1809
|
type: CalendarComponent,
|
|
1810
1810
|
deps: [],
|
|
@@ -1814,7 +1814,7 @@ var CalendarComponent = class CalendarComponent {
|
|
|
1814
1814
|
static {
|
|
1815
1815
|
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
1816
1816
|
minVersion: "17.0.0",
|
|
1817
|
-
version: "22.
|
|
1817
|
+
version: "22.3.0",
|
|
1818
1818
|
type: CalendarComponent,
|
|
1819
1819
|
isStandalone: true,
|
|
1820
1820
|
selector: "mona-calendar",
|
|
@@ -2064,7 +2064,7 @@ var CalendarComponent = class CalendarComponent {
|
|
|
2064
2064
|
};
|
|
2065
2065
|
i0.ɵɵngDeclareClassMetadata({
|
|
2066
2066
|
minVersion: "12.0.0",
|
|
2067
|
-
version: "22.
|
|
2067
|
+
version: "22.3.0",
|
|
2068
2068
|
ngImport: i0,
|
|
2069
2069
|
type: CalendarComponent,
|
|
2070
2070
|
decorators: [{
|