@neural-ui/native 0.0.0-stage → 0.1.0-beta.10
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/LICENSE +21 -0
- package/README.md +186 -2
- package/dist/accordion/accordion.d.ts +11 -0
- package/dist/accordion/accordion.js +75 -0
- package/dist/accordion/accordion.js.map +1 -0
- package/dist/accordion/index.d.ts +1 -0
- package/dist/accordion/index.js +2 -0
- package/dist/accordion/index.js.map +1 -0
- package/dist/alert/alert.d.ts +27 -0
- package/dist/alert/alert.js +69 -0
- package/dist/alert/alert.js.map +1 -0
- package/dist/alert/index.d.ts +1 -0
- package/dist/alert/index.js +2 -0
- package/dist/alert/index.js.map +1 -0
- package/dist/autocomplete/autocomplete.d.ts +15 -0
- package/dist/autocomplete/autocomplete.js +117 -0
- package/dist/autocomplete/autocomplete.js.map +1 -0
- package/dist/autocomplete/index.d.ts +1 -0
- package/dist/autocomplete/index.js +2 -0
- package/dist/autocomplete/index.js.map +1 -0
- package/dist/avatar/avatar.d.ts +22 -0
- package/dist/avatar/avatar.js +89 -0
- package/dist/avatar/avatar.js.map +1 -0
- package/dist/avatar/index.d.ts +1 -0
- package/dist/avatar/index.js +2 -0
- package/dist/avatar/index.js.map +1 -0
- package/dist/avatar-group/avatar-group.d.ts +29 -0
- package/dist/avatar-group/avatar-group.js +83 -0
- package/dist/avatar-group/avatar-group.js.map +1 -0
- package/dist/avatar-group/index.d.ts +1 -0
- package/dist/avatar-group/index.js +2 -0
- package/dist/avatar-group/index.js.map +1 -0
- package/dist/badge/badge.d.ts +15 -0
- package/dist/badge/badge.js +27 -0
- package/dist/badge/badge.js.map +1 -0
- package/dist/badge/index.d.ts +1 -0
- package/dist/badge/index.js +2 -0
- package/dist/badge/index.js.map +1 -0
- package/dist/bottom-sheet/bottom-sheet.d.ts +34 -0
- package/dist/bottom-sheet/bottom-sheet.js +160 -0
- package/dist/bottom-sheet/bottom-sheet.js.map +1 -0
- package/dist/bottom-sheet/index.d.ts +1 -0
- package/dist/bottom-sheet/index.js +2 -0
- package/dist/bottom-sheet/index.js.map +1 -0
- package/dist/button/button.d.ts +32 -0
- package/dist/button/button.js +114 -0
- package/dist/button/button.js.map +1 -0
- package/dist/button/index.d.ts +1 -0
- package/dist/button/index.js +2 -0
- package/dist/button/index.js.map +1 -0
- package/dist/button-group/button-group.d.ts +25 -0
- package/dist/button-group/button-group.js +121 -0
- package/dist/button-group/button-group.js.map +1 -0
- package/dist/button-group/index.d.ts +1 -0
- package/dist/button-group/index.js +2 -0
- package/dist/button-group/index.js.map +1 -0
- package/dist/calendar/calendar.d.ts +76 -0
- package/dist/calendar/calendar.js +612 -0
- package/dist/calendar/calendar.js.map +1 -0
- package/dist/calendar/index.d.ts +1 -0
- package/dist/calendar/index.js +2 -0
- package/dist/calendar/index.js.map +1 -0
- package/dist/card/card-slots.d.ts +11 -0
- package/dist/card/card-slots.js +21 -0
- package/dist/card/card-slots.js.map +1 -0
- package/dist/card/card.d.ts +10 -0
- package/dist/card/card.js +47 -0
- package/dist/card/card.js.map +1 -0
- package/dist/card/index.d.ts +2 -0
- package/dist/card/index.js +3 -0
- package/dist/card/index.js.map +1 -0
- package/dist/carousel/carousel.d.ts +54 -0
- package/dist/carousel/carousel.js +238 -0
- package/dist/carousel/carousel.js.map +1 -0
- package/dist/carousel/index.d.ts +1 -0
- package/dist/carousel/index.js +2 -0
- package/dist/carousel/index.js.map +1 -0
- package/dist/cascade-select/cascade-select.d.ts +25 -0
- package/dist/cascade-select/cascade-select.js +151 -0
- package/dist/cascade-select/cascade-select.js.map +1 -0
- package/dist/cascade-select/index.d.ts +1 -0
- package/dist/cascade-select/index.js +2 -0
- package/dist/cascade-select/index.js.map +1 -0
- package/dist/checkbox/checkbox.d.ts +23 -0
- package/dist/checkbox/checkbox.js +107 -0
- package/dist/checkbox/checkbox.js.map +1 -0
- package/dist/checkbox/index.d.ts +1 -0
- package/dist/checkbox/index.js +2 -0
- package/dist/checkbox/index.js.map +1 -0
- package/dist/chip/chip.d.ts +24 -0
- package/dist/chip/chip.js +86 -0
- package/dist/chip/chip.js.map +1 -0
- package/dist/chip/index.d.ts +1 -0
- package/dist/chip/index.js +2 -0
- package/dist/chip/index.js.map +1 -0
- package/dist/confirm-dialog/confirm-dialog.d.ts +21 -0
- package/dist/confirm-dialog/confirm-dialog.js +93 -0
- package/dist/confirm-dialog/confirm-dialog.js.map +1 -0
- package/dist/confirm-dialog/index.d.ts +1 -0
- package/dist/confirm-dialog/index.js +2 -0
- package/dist/confirm-dialog/index.js.map +1 -0
- package/dist/context-menu/context-menu.d.ts +21 -0
- package/dist/context-menu/context-menu.js +105 -0
- package/dist/context-menu/context-menu.js.map +1 -0
- package/dist/context-menu/index.d.ts +1 -0
- package/dist/context-menu/index.js +2 -0
- package/dist/context-menu/index.js.map +1 -0
- package/dist/data-view/data-view-row.d.ts +31 -0
- package/dist/data-view/data-view-row.js +108 -0
- package/dist/data-view/data-view-row.js.map +1 -0
- package/dist/data-view/data-view-templates.d.ts +15 -0
- package/dist/data-view/data-view-templates.js +14 -0
- package/dist/data-view/data-view-templates.js.map +1 -0
- package/dist/data-view/data-view.d.ts +33 -0
- package/dist/data-view/data-view.js +178 -0
- package/dist/data-view/data-view.js.map +1 -0
- package/dist/data-view/index.d.ts +2 -0
- package/dist/data-view/index.js +3 -0
- package/dist/data-view/index.js.map +1 -0
- package/dist/date-input/date-input.d.ts +21 -0
- package/dist/date-input/date-input.js +150 -0
- package/dist/date-input/date-input.js.map +1 -0
- package/dist/date-input/index.d.ts +1 -0
- package/dist/date-input/index.js +2 -0
- package/dist/date-input/index.js.map +1 -0
- package/dist/divider/divider.d.ts +6 -0
- package/dist/divider/divider.js +14 -0
- package/dist/divider/divider.js.map +1 -0
- package/dist/divider/index.d.ts +1 -0
- package/dist/divider/index.js +2 -0
- package/dist/divider/index.js.map +1 -0
- package/dist/empty-state/empty-state.d.ts +9 -0
- package/dist/empty-state/empty-state.js +34 -0
- package/dist/empty-state/empty-state.js.map +1 -0
- package/dist/empty-state/index.d.ts +1 -0
- package/dist/empty-state/index.js +2 -0
- package/dist/empty-state/index.js.map +1 -0
- package/dist/filter-bar/filter-bar.d.ts +21 -0
- package/dist/filter-bar/filter-bar.js +121 -0
- package/dist/filter-bar/filter-bar.js.map +1 -0
- package/dist/filter-bar/index.d.ts +1 -0
- package/dist/filter-bar/index.js +2 -0
- package/dist/filter-bar/index.js.map +1 -0
- package/dist/form-field/form-field.d.ts +12 -0
- package/dist/form-field/form-field.js +39 -0
- package/dist/form-field/form-field.js.map +1 -0
- package/dist/form-field/index.d.ts +1 -0
- package/dist/form-field/index.js +2 -0
- package/dist/form-field/index.js.map +1 -0
- package/dist/foundation/accordion-indicator.d.ts +16 -0
- package/dist/foundation/accordion-indicator.js +36 -0
- package/dist/foundation/accordion-indicator.js.map +1 -0
- package/dist/foundation/anchored-layout.d.ts +23 -0
- package/dist/foundation/anchored-layout.js +23 -0
- package/dist/foundation/anchored-layout.js.map +1 -0
- package/dist/foundation/anchored-overlay.d.ts +41 -0
- package/dist/foundation/anchored-overlay.js +134 -0
- package/dist/foundation/anchored-overlay.js.map +1 -0
- package/dist/foundation/calendar.d.ts +8 -0
- package/dist/foundation/calendar.js +34 -0
- package/dist/foundation/calendar.js.map +1 -0
- package/dist/foundation/collapse.d.ts +22 -0
- package/dist/foundation/collapse.js +70 -0
- package/dist/foundation/collapse.js.map +1 -0
- package/dist/foundation/control-label.d.ts +2 -0
- package/dist/foundation/control-label.js +6 -0
- package/dist/foundation/control-label.js.map +1 -0
- package/dist/foundation/file-picker.d.ts +22 -0
- package/dist/foundation/file-picker.js +23 -0
- package/dist/foundation/file-picker.js.map +1 -0
- package/dist/foundation/haptics.d.ts +30 -0
- package/dist/foundation/haptics.js +53 -0
- package/dist/foundation/haptics.js.map +1 -0
- package/dist/foundation/icons.d.ts +14 -0
- package/dist/foundation/icons.js +16 -0
- package/dist/foundation/icons.js.map +1 -0
- package/dist/foundation/index.d.ts +44 -0
- package/dist/foundation/index.js +52 -0
- package/dist/foundation/index.js.map +1 -0
- package/dist/foundation/mobile.d.ts +37 -0
- package/dist/foundation/mobile.js +59 -0
- package/dist/foundation/mobile.js.map +1 -0
- package/dist/foundation/motion.d.ts +22 -0
- package/dist/foundation/motion.js +119 -0
- package/dist/foundation/motion.js.map +1 -0
- package/dist/foundation/native-pressable.d.ts +14 -0
- package/dist/foundation/native-pressable.js +44 -0
- package/dist/foundation/native-pressable.js.map +1 -0
- package/dist/foundation/native-text-input.d.ts +20 -0
- package/dist/foundation/native-text-input.js +96 -0
- package/dist/foundation/native-text-input.js.map +1 -0
- package/dist/foundation/native-text-snapshot.d.ts +3 -0
- package/dist/foundation/native-text-snapshot.js +19 -0
- package/dist/foundation/native-text-snapshot.js.map +1 -0
- package/dist/foundation/native-text-sync.d.ts +8 -0
- package/dist/foundation/native-text-sync.js +41 -0
- package/dist/foundation/native-text-sync.js.map +1 -0
- package/dist/foundation/text-control.d.ts +20 -0
- package/dist/foundation/text-control.js +41 -0
- package/dist/foundation/text-control.js.map +1 -0
- package/dist/foundation/tone.d.ts +10 -0
- package/dist/foundation/tone.js +52 -0
- package/dist/foundation/tone.js.map +1 -0
- package/dist/foundation/tree.d.ts +12 -0
- package/dist/foundation/tree.js +39 -0
- package/dist/foundation/tree.js.map +1 -0
- package/dist/gallery/gallery-templates.d.ts +24 -0
- package/dist/gallery/gallery-templates.js +25 -0
- package/dist/gallery/gallery-templates.js.map +1 -0
- package/dist/gallery/gallery.d.ts +74 -0
- package/dist/gallery/gallery.js +208 -0
- package/dist/gallery/gallery.js.map +1 -0
- package/dist/gallery/index.d.ts +2 -0
- package/dist/gallery/index.js +3 -0
- package/dist/gallery/index.js.map +1 -0
- package/dist/haptics/index.d.ts +12 -0
- package/dist/haptics/index.js +36 -0
- package/dist/haptics/index.js.map +1 -0
- package/dist/icon-button/icon-button.d.ts +27 -0
- package/dist/icon-button/icon-button.js +88 -0
- package/dist/icon-button/icon-button.js.map +1 -0
- package/dist/icon-button/index.d.ts +1 -0
- package/dist/icon-button/index.js +2 -0
- package/dist/icon-button/index.js.map +1 -0
- package/dist/image-viewer/image-viewer.d.ts +134 -0
- package/dist/image-viewer/image-viewer.js +380 -0
- package/dist/image-viewer/image-viewer.js.map +1 -0
- package/dist/image-viewer/index.d.ts +1 -0
- package/dist/image-viewer/index.js +2 -0
- package/dist/image-viewer/index.js.map +1 -0
- package/dist/index.d.ts +67 -0
- package/dist/index.js +67 -0
- package/dist/index.js.map +1 -0
- package/dist/inline-editor/index.d.ts +1 -0
- package/dist/inline-editor/index.js +2 -0
- package/dist/inline-editor/index.js.map +1 -0
- package/dist/inline-editor/inline-editor.d.ts +17 -0
- package/dist/inline-editor/inline-editor.js +144 -0
- package/dist/inline-editor/inline-editor.js.map +1 -0
- package/dist/input/index.d.ts +1 -0
- package/dist/input/index.js +2 -0
- package/dist/input/index.js.map +1 -0
- package/dist/input/input.d.ts +9 -0
- package/dist/input/input.js +87 -0
- package/dist/input/input.js.map +1 -0
- package/dist/input-mask/index.d.ts +1 -0
- package/dist/input-mask/index.js +2 -0
- package/dist/input-mask/index.js.map +1 -0
- package/dist/input-mask/input-mask.d.ts +17 -0
- package/dist/input-mask/input-mask.js +112 -0
- package/dist/input-mask/input-mask.js.map +1 -0
- package/dist/input-otp/index.d.ts +1 -0
- package/dist/input-otp/index.js +2 -0
- package/dist/input-otp/index.js.map +1 -0
- package/dist/input-otp/input-otp.d.ts +18 -0
- package/dist/input-otp/input-otp.js +169 -0
- package/dist/input-otp/input-otp.js.map +1 -0
- package/dist/input-tags/index.d.ts +1 -0
- package/dist/input-tags/index.js +2 -0
- package/dist/input-tags/index.js.map +1 -0
- package/dist/input-tags/input-tags.d.ts +21 -0
- package/dist/input-tags/input-tags.js +150 -0
- package/dist/input-tags/input-tags.js.map +1 -0
- package/dist/listbox/index.d.ts +2 -0
- package/dist/listbox/index.js +3 -0
- package/dist/listbox/index.js.map +1 -0
- package/dist/listbox/listbox-templates.d.ts +17 -0
- package/dist/listbox/listbox-templates.js +14 -0
- package/dist/listbox/listbox-templates.js.map +1 -0
- package/dist/listbox/listbox.d.ts +24 -0
- package/dist/listbox/listbox.js +136 -0
- package/dist/listbox/listbox.js.map +1 -0
- package/dist/menu/index.d.ts +1 -0
- package/dist/menu/index.js +2 -0
- package/dist/menu/index.js.map +1 -0
- package/dist/menu/menu.d.ts +19 -0
- package/dist/menu/menu.js +95 -0
- package/dist/menu/menu.js.map +1 -0
- package/dist/meter-group/index.d.ts +1 -0
- package/dist/meter-group/index.js +2 -0
- package/dist/meter-group/index.js.map +1 -0
- package/dist/meter-group/meter-group.d.ts +23 -0
- package/dist/meter-group/meter-group.js +68 -0
- package/dist/meter-group/meter-group.js.map +1 -0
- package/dist/modal/index.d.ts +2 -0
- package/dist/modal/index.js +3 -0
- package/dist/modal/index.js.map +1 -0
- package/dist/modal/modal-templates.d.ts +14 -0
- package/dist/modal/modal-templates.js +23 -0
- package/dist/modal/modal-templates.js.map +1 -0
- package/dist/modal/modal.d.ts +38 -0
- package/dist/modal/modal.js +169 -0
- package/dist/modal/modal.js.map +1 -0
- package/dist/nav/index.d.ts +1 -0
- package/dist/nav/index.js +2 -0
- package/dist/nav/index.js.map +1 -0
- package/dist/nav/nav.d.ts +15 -0
- package/dist/nav/nav.js +84 -0
- package/dist/nav/nav.js.map +1 -0
- package/dist/notification-center/index.d.ts +1 -0
- package/dist/notification-center/index.js +2 -0
- package/dist/notification-center/index.js.map +1 -0
- package/dist/notification-center/notification-center.d.ts +18 -0
- package/dist/notification-center/notification-center.js +104 -0
- package/dist/notification-center/notification-center.js.map +1 -0
- package/dist/number-input/index.d.ts +1 -0
- package/dist/number-input/index.js +2 -0
- package/dist/number-input/index.js.map +1 -0
- package/dist/number-input/number-input.d.ts +23 -0
- package/dist/number-input/number-input.js +143 -0
- package/dist/number-input/number-input.js.map +1 -0
- package/dist/panel/index.d.ts +2 -0
- package/dist/panel/index.js +3 -0
- package/dist/panel/index.js.map +1 -0
- package/dist/panel/panel-slots.d.ts +11 -0
- package/dist/panel/panel-slots.js +21 -0
- package/dist/panel/panel-slots.js.map +1 -0
- package/dist/panel/panel.d.ts +11 -0
- package/dist/panel/panel.js +60 -0
- package/dist/panel/panel.js.map +1 -0
- package/dist/password/index.d.ts +1 -0
- package/dist/password/index.js +2 -0
- package/dist/password/index.js.map +1 -0
- package/dist/password/password.d.ts +12 -0
- package/dist/password/password.js +111 -0
- package/dist/password/password.js.map +1 -0
- package/dist/pick-list/index.d.ts +1 -0
- package/dist/pick-list/index.js +2 -0
- package/dist/pick-list/index.js.map +1 -0
- package/dist/pick-list/pick-list.d.ts +32 -0
- package/dist/pick-list/pick-list.js +215 -0
- package/dist/pick-list/pick-list.js.map +1 -0
- package/dist/popover/index.d.ts +1 -0
- package/dist/popover/index.js +2 -0
- package/dist/popover/index.js.map +1 -0
- package/dist/popover/popover.d.ts +15 -0
- package/dist/popover/popover.js +55 -0
- package/dist/popover/popover.js.map +1 -0
- package/dist/progress-bar/index.d.ts +1 -0
- package/dist/progress-bar/index.js +2 -0
- package/dist/progress-bar/index.js.map +1 -0
- package/dist/progress-bar/progress-bar.d.ts +13 -0
- package/dist/progress-bar/progress-bar.js +50 -0
- package/dist/progress-bar/progress-bar.js.map +1 -0
- package/dist/radio/index.d.ts +1 -0
- package/dist/radio/index.js +2 -0
- package/dist/radio/index.js.map +1 -0
- package/dist/radio/radio.d.ts +19 -0
- package/dist/radio/radio.js +109 -0
- package/dist/radio/radio.js.map +1 -0
- package/dist/rating/index.d.ts +1 -0
- package/dist/rating/index.js +2 -0
- package/dist/rating/index.js.map +1 -0
- package/dist/rating/rating.d.ts +17 -0
- package/dist/rating/rating.js +121 -0
- package/dist/rating/rating.js.map +1 -0
- package/dist/select/index.d.ts +2 -0
- package/dist/select/index.js +3 -0
- package/dist/select/index.js.map +1 -0
- package/dist/select/select-templates.d.ts +24 -0
- package/dist/select/select-templates.js +23 -0
- package/dist/select/select-templates.js.map +1 -0
- package/dist/select/select.d.ts +33 -0
- package/dist/select/select.js +193 -0
- package/dist/select/select.js.map +1 -0
- package/dist/sidebar/index.d.ts +1 -0
- package/dist/sidebar/index.js +2 -0
- package/dist/sidebar/index.js.map +1 -0
- package/dist/sidebar/sidebar.d.ts +34 -0
- package/dist/sidebar/sidebar.js +127 -0
- package/dist/sidebar/sidebar.js.map +1 -0
- package/dist/skeleton/index.d.ts +1 -0
- package/dist/skeleton/index.js +2 -0
- package/dist/skeleton/index.js.map +1 -0
- package/dist/skeleton/skeleton.d.ts +32 -0
- package/dist/skeleton/skeleton.js +121 -0
- package/dist/skeleton/skeleton.js.map +1 -0
- package/dist/slider/index.d.ts +1 -0
- package/dist/slider/index.js +2 -0
- package/dist/slider/index.js.map +1 -0
- package/dist/slider/slider.d.ts +37 -0
- package/dist/slider/slider.js +186 -0
- package/dist/slider/slider.js.map +1 -0
- package/dist/speed-dial/index.d.ts +1 -0
- package/dist/speed-dial/index.js +2 -0
- package/dist/speed-dial/index.js.map +1 -0
- package/dist/speed-dial/speed-dial.d.ts +31 -0
- package/dist/speed-dial/speed-dial.js +138 -0
- package/dist/speed-dial/speed-dial.js.map +1 -0
- package/dist/spinner/index.d.ts +1 -0
- package/dist/spinner/index.js +2 -0
- package/dist/spinner/index.js.map +1 -0
- package/dist/spinner/spinner.d.ts +13 -0
- package/dist/spinner/spinner.js +57 -0
- package/dist/spinner/spinner.js.map +1 -0
- package/dist/stats-card/index.d.ts +1 -0
- package/dist/stats-card/index.js +2 -0
- package/dist/stats-card/index.js.map +1 -0
- package/dist/stats-card/stats-card.d.ts +19 -0
- package/dist/stats-card/stats-card.js +70 -0
- package/dist/stats-card/stats-card.js.map +1 -0
- package/dist/stepper/index.d.ts +1 -0
- package/dist/stepper/index.js +2 -0
- package/dist/stepper/index.js.map +1 -0
- package/dist/stepper/stepper.d.ts +21 -0
- package/dist/stepper/stepper.js +134 -0
- package/dist/stepper/stepper.js.map +1 -0
- package/dist/switch/index.d.ts +1 -0
- package/dist/switch/index.js +2 -0
- package/dist/switch/index.js.map +1 -0
- package/dist/switch/switch.d.ts +27 -0
- package/dist/switch/switch.js +106 -0
- package/dist/switch/switch.js.map +1 -0
- package/dist/tabs/index.d.ts +1 -0
- package/dist/tabs/index.js +2 -0
- package/dist/tabs/index.js.map +1 -0
- package/dist/tabs/tabs.d.ts +25 -0
- package/dist/tabs/tabs.js +112 -0
- package/dist/tabs/tabs.js.map +1 -0
- package/dist/textarea/index.d.ts +1 -0
- package/dist/textarea/index.js +2 -0
- package/dist/textarea/index.js.map +1 -0
- package/dist/textarea/textarea.d.ts +8 -0
- package/dist/textarea/textarea.js +87 -0
- package/dist/textarea/textarea.js.map +1 -0
- package/dist/theme/index.d.ts +1 -0
- package/dist/theme/index.js +2 -0
- package/dist/theme/index.js.map +1 -0
- package/dist/theme/theme.d.ts +16 -0
- package/dist/theme/theme.js +146 -0
- package/dist/theme/theme.js.map +1 -0
- package/dist/timeline/index.d.ts +1 -0
- package/dist/timeline/index.js +2 -0
- package/dist/timeline/index.js.map +1 -0
- package/dist/timeline/timeline.d.ts +16 -0
- package/dist/timeline/timeline.js +66 -0
- package/dist/timeline/timeline.js.map +1 -0
- package/dist/toast/index.d.ts +1 -0
- package/dist/toast/index.js +2 -0
- package/dist/toast/index.js.map +1 -0
- package/dist/toast/toast.d.ts +35 -0
- package/dist/toast/toast.js +146 -0
- package/dist/toast/toast.js.map +1 -0
- package/dist/toggle-button-group/index.d.ts +1 -0
- package/dist/toggle-button-group/index.js +2 -0
- package/dist/toggle-button-group/index.js.map +1 -0
- package/dist/toggle-button-group/toggle-button-group.d.ts +27 -0
- package/dist/toggle-button-group/toggle-button-group.js +145 -0
- package/dist/toggle-button-group/toggle-button-group.js.map +1 -0
- package/dist/toolbar/index.d.ts +1 -0
- package/dist/toolbar/index.js +2 -0
- package/dist/toolbar/index.js.map +1 -0
- package/dist/toolbar/toolbar.d.ts +18 -0
- package/dist/toolbar/toolbar.js +84 -0
- package/dist/toolbar/toolbar.js.map +1 -0
- package/dist/tree/index.d.ts +1 -0
- package/dist/tree/index.js +2 -0
- package/dist/tree/index.js.map +1 -0
- package/dist/tree/tree.d.ts +26 -0
- package/dist/tree/tree.js +167 -0
- package/dist/tree/tree.js.map +1 -0
- package/dist/tree-select/index.d.ts +1 -0
- package/dist/tree-select/index.js +2 -0
- package/dist/tree-select/index.js.map +1 -0
- package/dist/tree-select/tree-select.d.ts +20 -0
- package/dist/tree-select/tree-select.js +112 -0
- package/dist/tree-select/tree-select.js.map +1 -0
- package/dist/uploader/index.d.ts +2 -0
- package/dist/uploader/index.js +3 -0
- package/dist/uploader/index.js.map +1 -0
- package/dist/uploader/uploader.d.ts +37 -0
- package/dist/uploader/uploader.js +280 -0
- package/dist/uploader/uploader.js.map +1 -0
- package/dist/virtual-list/index.d.ts +2 -0
- package/dist/virtual-list/index.js +3 -0
- package/dist/virtual-list/index.js.map +1 -0
- package/dist/virtual-list/virtual-list-templates.d.ts +16 -0
- package/dist/virtual-list/virtual-list-templates.js +14 -0
- package/dist/virtual-list/virtual-list-templates.js.map +1 -0
- package/dist/virtual-list/virtual-list.d.ts +20 -0
- package/dist/virtual-list/virtual-list.js +110 -0
- package/dist/virtual-list/virtual-list.js.map +1 -0
- package/package.json +344 -4
|
@@ -0,0 +1,612 @@
|
|
|
1
|
+
import { booleanAttribute, Component, input, model, output, computed, effect, signal, } from '@angular/core';
|
|
2
|
+
import { View, Text } from '@ng-native/components';
|
|
3
|
+
import { NeuNativePressable as Pressable } from '../foundation/native-pressable.js';
|
|
4
|
+
import { clamp } from '../foundation/mobile.js';
|
|
5
|
+
import { NeuButtonComponent } from '../button/button.js';
|
|
6
|
+
import { NeuIconButtonComponent } from '../icon-button/icon-button.js';
|
|
7
|
+
import { NEU_EDIT, NEU_CLOSE } from '../foundation/icons.js';
|
|
8
|
+
import { isoDate, todayISO, monthCells, shiftMonth, } from '../foundation/calendar.js';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export class NeuCalendarComponent {
|
|
11
|
+
editIcon = NEU_EDIT;
|
|
12
|
+
deleteIcon = NEU_CLOSE;
|
|
13
|
+
label = input('Calendar', /* @ts-ignore */
|
|
14
|
+
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
15
|
+
value = model('', /* @ts-ignore */
|
|
16
|
+
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
17
|
+
month = model(todayISO().slice(0, 7), /* @ts-ignore */
|
|
18
|
+
...(ngDevMode ? [{ debugName: "month" }] : /* istanbul ignore next */ []));
|
|
19
|
+
locale = input('en', /* @ts-ignore */
|
|
20
|
+
...(ngDevMode ? [{ debugName: "locale" }] : /* istanbul ignore next */ []));
|
|
21
|
+
firstDay = input(1, /* @ts-ignore */
|
|
22
|
+
...(ngDevMode ? [{ debugName: "firstDay" }] : /* istanbul ignore next */ []));
|
|
23
|
+
min = input('', /* @ts-ignore */
|
|
24
|
+
...(ngDevMode ? [{ debugName: "min" }] : /* istanbul ignore next */ []));
|
|
25
|
+
max = input('', /* @ts-ignore */
|
|
26
|
+
...(ngDevMode ? [{ debugName: "max" }] : /* istanbul ignore next */ []));
|
|
27
|
+
disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
28
|
+
readonly = input(false, { ...(ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
29
|
+
previousLabel = input('Previous month', /* @ts-ignore */
|
|
30
|
+
...(ngDevMode ? [{ debugName: "previousLabel" }] : /* istanbul ignore next */ []));
|
|
31
|
+
nextLabel = input('Next month', /* @ts-ignore */
|
|
32
|
+
...(ngDevMode ? [{ debugName: "nextLabel" }] : /* istanbul ignore next */ []));
|
|
33
|
+
previousYearLabel = input('Previous year', /* @ts-ignore */
|
|
34
|
+
...(ngDevMode ? [{ debugName: "previousYearLabel" }] : /* istanbul ignore next */ []));
|
|
35
|
+
nextYearLabel = input('Next year', /* @ts-ignore */
|
|
36
|
+
...(ngDevMode ? [{ debugName: "nextYearLabel" }] : /* istanbul ignore next */ []));
|
|
37
|
+
previousYearsLabel = input('Previous 12 years', /* @ts-ignore */
|
|
38
|
+
...(ngDevMode ? [{ debugName: "previousYearsLabel" }] : /* istanbul ignore next */ []));
|
|
39
|
+
nextYearsLabel = input('Next 12 years', /* @ts-ignore */
|
|
40
|
+
...(ngDevMode ? [{ debugName: "nextYearsLabel" }] : /* istanbul ignore next */ []));
|
|
41
|
+
events = input([], /* @ts-ignore */
|
|
42
|
+
...(ngDevMode ? [{ debugName: "events" }] : /* istanbul ignore next */ []));
|
|
43
|
+
showAgenda = input(true, { ...(ngDevMode ? { debugName: "showAgenda" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
44
|
+
editable = input(false, { ...(ngDevMode ? { debugName: "editable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
45
|
+
agendaLabel = input('Agenda', /* @ts-ignore */
|
|
46
|
+
...(ngDevMode ? [{ debugName: "agendaLabel" }] : /* istanbul ignore next */ []));
|
|
47
|
+
emptyAgendaLabel = input('No events on this day', /* @ts-ignore */
|
|
48
|
+
...(ngDevMode ? [{ debugName: "emptyAgendaLabel" }] : /* istanbul ignore next */ []));
|
|
49
|
+
hasEventsLabel = input('Day with events', /* @ts-ignore */
|
|
50
|
+
...(ngDevMode ? [{ debugName: "hasEventsLabel" }] : /* istanbul ignore next */ []));
|
|
51
|
+
addEventLabel = input('Add event', /* @ts-ignore */
|
|
52
|
+
...(ngDevMode ? [{ debugName: "addEventLabel" }] : /* istanbul ignore next */ []));
|
|
53
|
+
editEventLabel = input('Edit', /* @ts-ignore */
|
|
54
|
+
...(ngDevMode ? [{ debugName: "editEventLabel" }] : /* istanbul ignore next */ []));
|
|
55
|
+
deleteEventLabel = input('Delete', /* @ts-ignore */
|
|
56
|
+
...(ngDevMode ? [{ debugName: "deleteEventLabel" }] : /* istanbul ignore next */ []));
|
|
57
|
+
eventCreateRequested = output();
|
|
58
|
+
eventEditRequested = output();
|
|
59
|
+
eventDeleteRequested = output();
|
|
60
|
+
touch = output();
|
|
61
|
+
view = signal('days', /* @ts-ignore */
|
|
62
|
+
...(ngDevMode ? [{ debugName: "view" }] : /* istanbul ignore next */ []));
|
|
63
|
+
yearStart = signal(0, /* @ts-ignore */
|
|
64
|
+
...(ngDevMode ? [{ debugName: "yearStart" }] : /* istanbul ignore next */ []));
|
|
65
|
+
year = computed(() => (isoDate(this.month() + '-01') ?? isoDate(todayISO())).getUTCFullYear(), /* @ts-ignore */
|
|
66
|
+
...(ngDevMode ? [{ debugName: "year" }] : /* istanbul ignore next */ []));
|
|
67
|
+
years = computed(() => Array.from({ length: Math.min(12, 10000 - this.yearStart()) }, (_, i) => this.yearStart() + i), /* @ts-ignore */
|
|
68
|
+
...(ngDevMode ? [{ debugName: "years" }] : /* istanbul ignore next */ []));
|
|
69
|
+
months = computed(() => Array.from({ length: 12 }, (_, i) => {
|
|
70
|
+
const value = `${String(this.year()).padStart(4, '0')}-${String(i + 1).padStart(2, '0')}`;
|
|
71
|
+
return { value, label: this.formatMonth(value) };
|
|
72
|
+
}), /* @ts-ignore */
|
|
73
|
+
...(ngDevMode ? [{ debugName: "months" }] : /* istanbul ignore next */ []));
|
|
74
|
+
monthLabel = computed(() => this.formatMonth(this.month()), /* @ts-ignore */
|
|
75
|
+
...(ngDevMode ? [{ debugName: "monthLabel" }] : /* istanbul ignore next */ []));
|
|
76
|
+
backLabel = computed(() => this.view() === 'days'
|
|
77
|
+
? this.previousLabel()
|
|
78
|
+
: this.view() === 'months'
|
|
79
|
+
? this.previousYearLabel()
|
|
80
|
+
: this.previousYearsLabel(), /* @ts-ignore */
|
|
81
|
+
...(ngDevMode ? [{ debugName: "backLabel" }] : /* istanbul ignore next */ []));
|
|
82
|
+
forwardLabel = computed(() => this.view() === 'days'
|
|
83
|
+
? this.nextLabel()
|
|
84
|
+
: this.view() === 'months'
|
|
85
|
+
? this.nextYearLabel()
|
|
86
|
+
: this.nextYearsLabel(), /* @ts-ignore */
|
|
87
|
+
...(ngDevMode ? [{ debugName: "forwardLabel" }] : /* istanbul ignore next */ []));
|
|
88
|
+
cells = computed(() => monthCells(this.month(), Math.floor(clamp(this.firstDay(), 0, 6))), /* @ts-ignore */
|
|
89
|
+
...(ngDevMode ? [{ debugName: "cells" }] : /* istanbul ignore next */ []));
|
|
90
|
+
weekdays = computed(() => {
|
|
91
|
+
const first = Math.floor(clamp(this.firstDay(), 0, 6));
|
|
92
|
+
return Array.from({ length: 7 }, (_, i) => {
|
|
93
|
+
const date = new Date(Date.UTC(2020, 5, 7 + ((first + i) % 7)));
|
|
94
|
+
try {
|
|
95
|
+
return new Intl.DateTimeFormat(this.locale(), {
|
|
96
|
+
weekday: 'short',
|
|
97
|
+
timeZone: 'UTC',
|
|
98
|
+
}).format(date);
|
|
99
|
+
}
|
|
100
|
+
catch {
|
|
101
|
+
return ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'][(first + i) % 7];
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
}, /* @ts-ignore */
|
|
105
|
+
...(ngDevMode ? [{ debugName: "weekdays" }] : /* istanbul ignore next */ []));
|
|
106
|
+
formatMonth(month) {
|
|
107
|
+
const d = isoDate(month + '-01');
|
|
108
|
+
if (!d)
|
|
109
|
+
return month;
|
|
110
|
+
try {
|
|
111
|
+
return new Intl.DateTimeFormat(this.locale(), {
|
|
112
|
+
month: 'long',
|
|
113
|
+
timeZone: 'UTC',
|
|
114
|
+
}).format(d);
|
|
115
|
+
}
|
|
116
|
+
catch {
|
|
117
|
+
return month;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
eventsByDate = computed(() => {
|
|
121
|
+
const index = new Map();
|
|
122
|
+
for (const event of this.events()) {
|
|
123
|
+
if (!isoDate(event.date))
|
|
124
|
+
continue;
|
|
125
|
+
const entries = index.get(event.date) ?? [];
|
|
126
|
+
entries.push(event);
|
|
127
|
+
index.set(event.date, entries);
|
|
128
|
+
}
|
|
129
|
+
return index;
|
|
130
|
+
}, /* @ts-ignore */
|
|
131
|
+
...(ngDevMode ? [{ debugName: "eventsByDate" }] : /* istanbul ignore next */ []));
|
|
132
|
+
selectedEvents = computed(() => this.eventsByDate().get(this.value()) ?? [], /* @ts-ignore */
|
|
133
|
+
...(ngDevMode ? [{ debugName: "selectedEvents" }] : /* istanbul ignore next */ []));
|
|
134
|
+
agendaDate = computed(() => {
|
|
135
|
+
const date = isoDate(this.value());
|
|
136
|
+
if (!date)
|
|
137
|
+
return '';
|
|
138
|
+
try {
|
|
139
|
+
return new Intl.DateTimeFormat(this.locale(), {
|
|
140
|
+
dateStyle: 'full',
|
|
141
|
+
timeZone: 'UTC',
|
|
142
|
+
}).format(date);
|
|
143
|
+
}
|
|
144
|
+
catch {
|
|
145
|
+
return this.value();
|
|
146
|
+
}
|
|
147
|
+
}, /* @ts-ignore */
|
|
148
|
+
...(ngDevMode ? [{ debugName: "agendaDate" }] : /* istanbul ignore next */ []));
|
|
149
|
+
requestCreate() {
|
|
150
|
+
if (this.editable() && !this.unavailable(this.value()))
|
|
151
|
+
this.eventCreateRequested.emit(this.value());
|
|
152
|
+
}
|
|
153
|
+
requestEdit(event) {
|
|
154
|
+
if (this.canManage(event))
|
|
155
|
+
this.eventEditRequested.emit(event);
|
|
156
|
+
}
|
|
157
|
+
requestDelete(event) {
|
|
158
|
+
if (this.canManage(event))
|
|
159
|
+
this.eventDeleteRequested.emit(event);
|
|
160
|
+
}
|
|
161
|
+
canManage(event) {
|
|
162
|
+
return (this.editable() &&
|
|
163
|
+
!event.disabled &&
|
|
164
|
+
!this.unavailable(this.value()) &&
|
|
165
|
+
this.selectedEvents().includes(event));
|
|
166
|
+
}
|
|
167
|
+
constructor() {
|
|
168
|
+
effect(() => {
|
|
169
|
+
const value = this.value();
|
|
170
|
+
if (isoDate(value))
|
|
171
|
+
this.month.set(value.slice(0, 7));
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
unavailable(date) {
|
|
175
|
+
return (this.disabled() ||
|
|
176
|
+
this.readonly() ||
|
|
177
|
+
!isoDate(date) ||
|
|
178
|
+
(!!isoDate(this.min()) && date < this.min()) ||
|
|
179
|
+
(!!isoDate(this.max()) && date > this.max()));
|
|
180
|
+
}
|
|
181
|
+
canShift(delta) {
|
|
182
|
+
if (this.view() === 'years') {
|
|
183
|
+
const start = this.yearStart() + delta * 12;
|
|
184
|
+
return (start >= 1 &&
|
|
185
|
+
start <= 9999 &&
|
|
186
|
+
(!isoDate(this.min()) ||
|
|
187
|
+
start + 11 >= Number(this.min().slice(0, 4))) &&
|
|
188
|
+
(!isoDate(this.max()) || start <= Number(this.max().slice(0, 4))));
|
|
189
|
+
}
|
|
190
|
+
if (this.view() === 'months')
|
|
191
|
+
return this.yearAvailable(this.year() + delta);
|
|
192
|
+
const month = shiftMonth(this.month(), delta);
|
|
193
|
+
return (!!isoDate(month + '-01') &&
|
|
194
|
+
!(isoDate(this.min()) && month < this.min().slice(0, 7)) &&
|
|
195
|
+
!(isoDate(this.max()) && month > this.max().slice(0, 7)));
|
|
196
|
+
}
|
|
197
|
+
shift(delta) {
|
|
198
|
+
if (this.disabled() || !this.canShift(delta))
|
|
199
|
+
return;
|
|
200
|
+
if (this.view() === 'years')
|
|
201
|
+
this.yearStart.update((year) => year + delta * 12);
|
|
202
|
+
else if (this.view() === 'months')
|
|
203
|
+
this.chooseYear(this.year() + delta);
|
|
204
|
+
else
|
|
205
|
+
this.month.update((x) => shiftMonth(x, delta));
|
|
206
|
+
}
|
|
207
|
+
showMonths() {
|
|
208
|
+
if (!this.disabled())
|
|
209
|
+
this.view.update((view) => (view === 'months' ? 'days' : 'months'));
|
|
210
|
+
}
|
|
211
|
+
showYears() {
|
|
212
|
+
if (this.disabled())
|
|
213
|
+
return;
|
|
214
|
+
this.yearStart.set(Math.max(1, Math.floor(this.year() / 12) * 12));
|
|
215
|
+
this.view.update((view) => (view === 'years' ? 'days' : 'years'));
|
|
216
|
+
}
|
|
217
|
+
monthAvailable(month) {
|
|
218
|
+
return (!this.disabled() &&
|
|
219
|
+
!!isoDate(month + '-01') &&
|
|
220
|
+
(!isoDate(this.min()) || month >= this.min().slice(0, 7)) &&
|
|
221
|
+
(!isoDate(this.max()) || month <= this.max().slice(0, 7)));
|
|
222
|
+
}
|
|
223
|
+
yearAvailable(year) {
|
|
224
|
+
return (!this.disabled() &&
|
|
225
|
+
year >= 1 &&
|
|
226
|
+
year <= 9999 &&
|
|
227
|
+
(!isoDate(this.min()) || year >= Number(this.min().slice(0, 4))) &&
|
|
228
|
+
(!isoDate(this.max()) || year <= Number(this.max().slice(0, 4))));
|
|
229
|
+
}
|
|
230
|
+
chooseMonth(month) {
|
|
231
|
+
if (!this.monthAvailable(month))
|
|
232
|
+
return;
|
|
233
|
+
this.month.set(month);
|
|
234
|
+
this.view.set('days');
|
|
235
|
+
}
|
|
236
|
+
chooseYear(year) {
|
|
237
|
+
if (!this.yearAvailable(year))
|
|
238
|
+
return;
|
|
239
|
+
let month = `${String(year).padStart(4, '0')}-${this.month().slice(5, 7)}`;
|
|
240
|
+
if (isoDate(this.min()) && month < this.min().slice(0, 7))
|
|
241
|
+
month = this.min().slice(0, 7);
|
|
242
|
+
if (isoDate(this.max()) && month > this.max().slice(0, 7))
|
|
243
|
+
month = this.max().slice(0, 7);
|
|
244
|
+
this.month.set(month);
|
|
245
|
+
this.view.set('months');
|
|
246
|
+
}
|
|
247
|
+
choose(date) {
|
|
248
|
+
if (this.unavailable(date))
|
|
249
|
+
return;
|
|
250
|
+
this.value.set(date);
|
|
251
|
+
this.touch.emit();
|
|
252
|
+
}
|
|
253
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: NeuCalendarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
254
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.2", type: NeuCalendarComponent, isStandalone: true, selector: "neu-calendar", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, month: { classPropertyName: "month", publicName: "month", isSignal: true, isRequired: false, transformFunction: null }, locale: { classPropertyName: "locale", publicName: "locale", isSignal: true, isRequired: false, transformFunction: null }, firstDay: { classPropertyName: "firstDay", publicName: "firstDay", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, previousLabel: { classPropertyName: "previousLabel", publicName: "previousLabel", isSignal: true, isRequired: false, transformFunction: null }, nextLabel: { classPropertyName: "nextLabel", publicName: "nextLabel", isSignal: true, isRequired: false, transformFunction: null }, previousYearLabel: { classPropertyName: "previousYearLabel", publicName: "previousYearLabel", isSignal: true, isRequired: false, transformFunction: null }, nextYearLabel: { classPropertyName: "nextYearLabel", publicName: "nextYearLabel", isSignal: true, isRequired: false, transformFunction: null }, previousYearsLabel: { classPropertyName: "previousYearsLabel", publicName: "previousYearsLabel", isSignal: true, isRequired: false, transformFunction: null }, nextYearsLabel: { classPropertyName: "nextYearsLabel", publicName: "nextYearsLabel", isSignal: true, isRequired: false, transformFunction: null }, events: { classPropertyName: "events", publicName: "events", isSignal: true, isRequired: false, transformFunction: null }, showAgenda: { classPropertyName: "showAgenda", publicName: "showAgenda", isSignal: true, isRequired: false, transformFunction: null }, editable: { classPropertyName: "editable", publicName: "editable", isSignal: true, isRequired: false, transformFunction: null }, agendaLabel: { classPropertyName: "agendaLabel", publicName: "agendaLabel", isSignal: true, isRequired: false, transformFunction: null }, emptyAgendaLabel: { classPropertyName: "emptyAgendaLabel", publicName: "emptyAgendaLabel", isSignal: true, isRequired: false, transformFunction: null }, hasEventsLabel: { classPropertyName: "hasEventsLabel", publicName: "hasEventsLabel", isSignal: true, isRequired: false, transformFunction: null }, addEventLabel: { classPropertyName: "addEventLabel", publicName: "addEventLabel", isSignal: true, isRequired: false, transformFunction: null }, editEventLabel: { classPropertyName: "editEventLabel", publicName: "editEventLabel", isSignal: true, isRequired: false, transformFunction: null }, deleteEventLabel: { classPropertyName: "deleteEventLabel", publicName: "deleteEventLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", month: "monthChange", eventCreateRequested: "eventCreateRequested", eventEditRequested: "eventEditRequested", eventDeleteRequested: "eventDeleteRequested", touch: "touch" }, ngImport: i0, template: `<view class="stack"
|
|
255
|
+
><view class="row"
|
|
256
|
+
><pressable
|
|
257
|
+
class="calendar-navigation"
|
|
258
|
+
accessibilityRole="button"
|
|
259
|
+
[accessibilityLabel]="backLabel()"
|
|
260
|
+
[disabled]="disabled() || !canShift(-1)"
|
|
261
|
+
(press)="shift(-1)"
|
|
262
|
+
><text class="title">‹</text></pressable
|
|
263
|
+
>
|
|
264
|
+
<view class="row grow calendar-heading">
|
|
265
|
+
<pressable
|
|
266
|
+
accessibilityRole="button"
|
|
267
|
+
[disabled]="disabled()"
|
|
268
|
+
[accessibilityState]="{ expanded: view() === 'months' }"
|
|
269
|
+
(press)="showMonths()"
|
|
270
|
+
class="calendar-heading-action"
|
|
271
|
+
>
|
|
272
|
+
<text class="title">{{ monthLabel() }}</text>
|
|
273
|
+
</pressable>
|
|
274
|
+
<pressable
|
|
275
|
+
accessibilityRole="button"
|
|
276
|
+
[disabled]="disabled()"
|
|
277
|
+
[accessibilityState]="{ expanded: view() === 'years' }"
|
|
278
|
+
(press)="showYears()"
|
|
279
|
+
class="calendar-heading-action"
|
|
280
|
+
>
|
|
281
|
+
<text class="title">{{ year() }}</text>
|
|
282
|
+
</pressable>
|
|
283
|
+
</view>
|
|
284
|
+
<pressable
|
|
285
|
+
class="calendar-navigation"
|
|
286
|
+
accessibilityRole="button"
|
|
287
|
+
[accessibilityLabel]="forwardLabel()"
|
|
288
|
+
[disabled]="disabled() || !canShift(1)"
|
|
289
|
+
(press)="shift(1)"
|
|
290
|
+
><text class="title">›</text></pressable
|
|
291
|
+
></view
|
|
292
|
+
>
|
|
293
|
+
@if (view() === 'years') {
|
|
294
|
+
<text class="muted"
|
|
295
|
+
>{{ years()[0] }} – {{ years()[years().length - 1] }}</text
|
|
296
|
+
>
|
|
297
|
+
<view class="calendar-grid" [accessibilityLabel]="label()">
|
|
298
|
+
@for (option of years(); track $index) {
|
|
299
|
+
<pressable
|
|
300
|
+
class="calendar-period"
|
|
301
|
+
[class.selected]="option === year()"
|
|
302
|
+
accessibilityRole="button"
|
|
303
|
+
[accessibilityLabel]="'' + option"
|
|
304
|
+
[accessibilityState]="{
|
|
305
|
+
selected: option === year(),
|
|
306
|
+
disabled: !yearAvailable(option),
|
|
307
|
+
}"
|
|
308
|
+
[disabled]="!yearAvailable(option)"
|
|
309
|
+
(press)="chooseYear(option)"
|
|
310
|
+
>
|
|
311
|
+
<text [class]="option === year() ? 'selected-text' : 'label'">{{
|
|
312
|
+
option
|
|
313
|
+
}}</text>
|
|
314
|
+
</pressable>
|
|
315
|
+
}
|
|
316
|
+
</view>
|
|
317
|
+
} @else if (view() === 'months') {
|
|
318
|
+
<view class="calendar-grid" [accessibilityLabel]="label()">
|
|
319
|
+
@for (option of months(); track $index) {
|
|
320
|
+
<pressable
|
|
321
|
+
class="calendar-period"
|
|
322
|
+
[class.selected]="option.value === month()"
|
|
323
|
+
accessibilityRole="button"
|
|
324
|
+
[accessibilityLabel]="option.label"
|
|
325
|
+
[accessibilityState]="{
|
|
326
|
+
selected: option.value === month(),
|
|
327
|
+
disabled: !monthAvailable(option.value),
|
|
328
|
+
}"
|
|
329
|
+
[disabled]="!monthAvailable(option.value)"
|
|
330
|
+
(press)="chooseMonth(option.value)"
|
|
331
|
+
>
|
|
332
|
+
<text
|
|
333
|
+
[class]="option.value === month() ? 'selected-text' : 'label'"
|
|
334
|
+
>{{ option.label }}</text
|
|
335
|
+
>
|
|
336
|
+
</pressable>
|
|
337
|
+
}
|
|
338
|
+
</view>
|
|
339
|
+
} @else {
|
|
340
|
+
<view class="calendar-grid" [accessibilityLabel]="label()">
|
|
341
|
+
@for (day of weekdays(); track $index) {
|
|
342
|
+
<view class="calendar-day"
|
|
343
|
+
><text class="muted">{{ day }}</text></view
|
|
344
|
+
>
|
|
345
|
+
}
|
|
346
|
+
@for (cell of cells(); track cell.date) {
|
|
347
|
+
<pressable
|
|
348
|
+
class="calendar-day"
|
|
349
|
+
|
|
350
|
+
accessibilityRole="button"
|
|
351
|
+
[accessibilityLabel]="cell.date"
|
|
352
|
+
[accessibilityHint]="
|
|
353
|
+
eventsByDate().has(cell.date) ? hasEventsLabel() : undefined
|
|
354
|
+
"
|
|
355
|
+
[accessibilityState]="{
|
|
356
|
+
selected: value() === cell.date,
|
|
357
|
+
disabled: unavailable(cell.date),
|
|
358
|
+
}"
|
|
359
|
+
[disabled]="unavailable(cell.date)"
|
|
360
|
+
(press)="choose(cell.date)"
|
|
361
|
+
><view class="calendar-date-value" [class.selected]="value() === cell.date"><text
|
|
362
|
+
[class]="
|
|
363
|
+
value() === cell.date
|
|
364
|
+
? 'selected-text'
|
|
365
|
+
: cell.current
|
|
366
|
+
? 'label'
|
|
367
|
+
: 'muted'
|
|
368
|
+
"
|
|
369
|
+
>{{ cell.day }}</text></view>
|
|
370
|
+
@if (eventsByDate().has(cell.date)) {
|
|
371
|
+
<view
|
|
372
|
+
class="calendar-event-dot"
|
|
373
|
+
|
|
374
|
+
[accessible]="false"
|
|
375
|
+
pointerEvents="none"
|
|
376
|
+
/>
|
|
377
|
+
}
|
|
378
|
+
</pressable>
|
|
379
|
+
}
|
|
380
|
+
</view>
|
|
381
|
+
}
|
|
382
|
+
@if (showAgenda() && agendaDate()) {
|
|
383
|
+
<view class="stack calendar-agenda">
|
|
384
|
+
<text class="label" accessibilityRole="header">{{
|
|
385
|
+
agendaLabel()
|
|
386
|
+
}}</text>
|
|
387
|
+
<text class="muted">{{ agendaDate() }}</text>
|
|
388
|
+
@if (editable()) {
|
|
389
|
+
<neu-button
|
|
390
|
+
[label]="addEventLabel()"
|
|
391
|
+
size="sm"
|
|
392
|
+
variant="outline"
|
|
393
|
+
[disabled]="unavailable(value())"
|
|
394
|
+
(pressed)="requestCreate()"
|
|
395
|
+
/>
|
|
396
|
+
}
|
|
397
|
+
@for (event of selectedEvents(); track event.id) {
|
|
398
|
+
<view class="stack calendar-event">
|
|
399
|
+
<view class="row calendar-event-heading">
|
|
400
|
+
<text class="label grow calendar-event-title">{{ event.label }}</text>
|
|
401
|
+
@if (editable()) {
|
|
402
|
+
<view class="row calendar-event-actions">
|
|
403
|
+
<neu-icon-button
|
|
404
|
+
[label]="editEventLabel() + ' ' + event.label"
|
|
405
|
+
[svg]="editIcon"
|
|
406
|
+
variant="text"
|
|
407
|
+
[disabled]="unavailable(value()) || !!event.disabled"
|
|
408
|
+
(pressed)="requestEdit(event)"
|
|
409
|
+
/>
|
|
410
|
+
<neu-icon-button
|
|
411
|
+
[label]="deleteEventLabel() + ' ' + event.label"
|
|
412
|
+
[svg]="deleteIcon"
|
|
413
|
+
variant="text"
|
|
414
|
+
tone="danger"
|
|
415
|
+
[disabled]="unavailable(value()) || !!event.disabled"
|
|
416
|
+
(pressed)="requestDelete(event)"
|
|
417
|
+
/>
|
|
418
|
+
</view>
|
|
419
|
+
}
|
|
420
|
+
</view>
|
|
421
|
+
@if (event.description) {
|
|
422
|
+
<text class="muted">{{ event.description }}</text>
|
|
423
|
+
}
|
|
424
|
+
</view>
|
|
425
|
+
} @empty {
|
|
426
|
+
<text class="muted">{{ emptyAgendaLabel() }}</text>
|
|
427
|
+
}
|
|
428
|
+
</view>
|
|
429
|
+
}
|
|
430
|
+
</view>`, isInline: true, styles: [".neu-unavailable > * {\n /* Fade presentation children without changing the accessible action's own alpha. */\n opacity: 0.45;\n}\n.stack {\n gap: 12px;\n}\n.row {\n flex-direction: row;\n align-items: center;\n gap: 10px;\n}\n.wrap {\n flex-wrap: wrap;\n}\n.grow {\n flex: 1;\n}\n.surface {\n padding: 16px;\n background-color: var(--neu-surface, #ffffff);\n border-radius: var(--neu-surface-radius, 16px);\n gap: 12px;\n}\n.outline {\n border-width: 1px;\n border-color: var(--neu-surface-border, #e1e6ed);\n}\n.title {\n color: var(--neu-text, #172033);\n font-size: var(--neu-heading-size, 18px);\n line-height: 24px;\n font-weight: 600;\n flex-shrink: 1;\n}\n.label {\n color: var(--neu-text, #172033);\n font-size: 16px;\n flex-shrink: 1;\n}\n.muted {\n color: var(--neu-muted, #596477);\n font-size: var(--neu-label-size, 14px);\n line-height: 20px;\n flex-shrink: 1;\n}\n.error {\n color: var(--neu-danger-ink, #b3261e);\n font-size: 14px;\n}\n.action {\n min-height: 48px;\n min-width: 48px;\n padding: 12px;\n justify-content: center;\n align-items: center;\n border-radius: 12px;\n background-color: var(--neu-tonal, #e9edfc);\n}\n.selected {\n background-color: var(--neu-accent, #3155d9);\n}\n.selected-text {\n color: var(--neu-on-accent, #ffffff);\n font-size: 16px;\n}\n.control {\n min-height: 48px;\n padding: 12px;\n font-size: 16px;\n color: var(--neu-text, #172033);\n border-width: 1px;\n border-color: var(--neu-border, #a5afbf);\n border-radius: var(--neu-control-radius, 10px);\n background-color: var(--neu-surface, #ffffff);\n}\n.track {\n height: 8px;\n border-radius: 4px;\n overflow: hidden;\n background-color: var(--neu-tonal, #e9edfc);\n}\n.fill {\n height: 8px;\n background-color: var(--neu-accent, #3155d9);\n}\n.dot {\n width: 20px;\n height: 20px;\n border-width: 2px;\n border-color: var(--neu-accent, #3155d9);\n border-radius: 10px;\n}\n.dot-selected {\n background-color: var(--neu-accent, #3155d9);\n}\n.avatar {\n width: 48px;\n height: 48px;\n border-radius: 24px;\n align-items: center;\n justify-content: center;\n background-color: var(--neu-tonal, #e9edfc);\n overflow: hidden;\n}\n.avatar-image {\n width: 48px;\n height: 48px;\n}\n.backdrop {\n flex: 1;\n background-color: rgba(0, 0, 0, 0.4);\n justify-content: center;\n padding: 16px;\n}\n.bottom {\n justify-content: flex-end;\n}\n.modal-layout {\n flex: 1;\n justify-content: center;\n}\n.modal-scroll {\n flex-grow: 0;\n flex-shrink: 1;\n}\n.scroll-content {\n padding-right: 12px;\n}\n.sheet {\n padding: 20px;\n background-color: var(--neu-surface, #ffffff);\n border-radius: var(--neu-dialog-radius, 24px);\n gap: 16px;\n max-height: 90%;\n}\n.full {\n flex: 1;\n}\n.sheet-background {\n background-color: var(--neu-surface, #ffffff);\n}\n.page-sheet {\n max-height: 100%;\n border-radius: 0;\n}\n.thumb {\n width: 72px;\n height: 72px;\n border-radius: 12px;\n}\n.hero {\n height: 240px;\n width: 100%;\n}\n.divider {\n height: 1px;\n background-color: var(--neu-divider, #e7ebf0);\n}\n.skeleton {\n background-color: var(--neu-border, #a5afbf);\n border-radius: 8px;\n}\n.pill {\n padding: 4px 10px;\n border-radius: 16px;\n background-color: var(--neu-tonal, #e9edfc);\n}\n.calendar-grid {\n flex-direction: row;\n flex-wrap: wrap;\n gap: 0;\n}\n.calendar-day {\n width: 14.2857%;\n min-width: 0;\n min-height: 48px;\n padding: 4px;\n align-items: center;\n justify-content: center;\n border-radius: 8px;\n}\n.speed-dial {\n align-items: flex-end;\n}\n.fab {\n width: 56px;\n height: 56px;\n border-radius: 28px;\n align-items: center;\n justify-content: center;\n background-color: var(--neu-accent, #3155d9);\n}\n.fab-label {\n color: var(--neu-on-accent, #ffffff);\n font-size: 28px;\n}\n.slider-track {\n width: 100%;\n height: 24px;\n position: relative;\n}\n.slider-rail {\n position: absolute;\n top: 8px;\n}\n.slider-thumb {\n width: 24px;\n height: 24px;\n border-radius: 12px;\n border-width: 2px;\n border-color: var(--neu-accent, #3155d9);\n background-color: var(--neu-on-accent, #ffffff);\n position: absolute;\n top: 0;\n}\n", ".calendar-heading {\n justify-content: center;\n gap: 4px;\n}\n.calendar-heading-action {\n min-height: 48px;\n padding-left: 8px;\n padding-right: 8px;\n align-items: center;\n justify-content: center;\n}\n.calendar-period {\n width: 33.3333%;\n min-width: 0;\n min-height: 52px;\n padding: 6px;\n border-radius: 8px;\n align-items: center;\n justify-content: center;\n}\n.calendar-navigation {\n width: 40px;\n min-height: 48px;\n align-items: center;\n justify-content: center;\n}\n.calendar-event-dot {\n width: 4px;\n height: 4px;\n border-radius: 2px;\n background-color: var(--neu-accent, #006ee6);\n position: absolute;\n bottom: 4px;\n align-self: center;\n}\n.calendar-event-dot-selected {\n background-color: var(--neu-on-accent, #ffffff);\n}\n.calendar-agenda {\n margin-top: 12px;\n padding-top: 16px;\n border-top-width: 1px;\n border-color: var(--neu-surface-border, #e1e6ed);\n}\n.calendar-event {\n padding: 12px 0;\n}\n\n.calendar-event-heading {\n align-items: center;\n gap: 8px;\n}\n.calendar-event-title {\n min-width: 0;\n}\n.calendar-event-actions {\n flex-shrink: 0;\n gap: 0;\n}\n\n.calendar-date-value { min-width: 32px; min-height: 32px; padding: 4px; border-radius: 16px; align-items: center; justify-content: center; }\n.calendar-date-value .label, .calendar-date-value .selected-text { font-size: var(--neu-row-size, 15px); line-height: var(--neu-row-line, 21px); }\n"], dependencies: [{ kind: "directive", type: View, selector: "view" }, { kind: "directive", type: Text, selector: "text", inputs: ["numberOfLines", "ellipsizeMode", "selectable", "selectionColor", "allowFontScaling", "maxFontSizeMultiplier", "dynamicTypeRamp", "adjustsFontSizeToFit", "minimumFontScale", "lineBreakStrategyIOS", "textBreakStrategy", "dataDetectorType", "android_hyphenationFrequency", "pressable", "suppressHighlighting"], exportAs: ["text"] }, { kind: "directive", type: Pressable, selector: "pressable", inputs: ["haptic"], exportAs: ["pressable"] }, { kind: "component", type: NeuButtonComponent, selector: "neu-button", inputs: ["haptic", "label", "accessibilityLabel", "variant", "tone", "size", "fullWidth", "disabled", "loading"], outputs: ["pressed"] }, { kind: "component", type: NeuIconButtonComponent, selector: "neu-icon-button", inputs: ["haptic", "label", "svg", "variant", "tone", "disabled", "loading"], outputs: ["pressed"] }] });
|
|
431
|
+
}
|
|
432
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: NeuCalendarComponent, decorators: [{
|
|
433
|
+
type: Component,
|
|
434
|
+
args: [{ selector: 'neu-calendar', imports: [View, Text, Pressable, NeuButtonComponent, NeuIconButtonComponent], template: `<view class="stack"
|
|
435
|
+
><view class="row"
|
|
436
|
+
><pressable
|
|
437
|
+
class="calendar-navigation"
|
|
438
|
+
accessibilityRole="button"
|
|
439
|
+
[accessibilityLabel]="backLabel()"
|
|
440
|
+
[disabled]="disabled() || !canShift(-1)"
|
|
441
|
+
(press)="shift(-1)"
|
|
442
|
+
><text class="title">‹</text></pressable
|
|
443
|
+
>
|
|
444
|
+
<view class="row grow calendar-heading">
|
|
445
|
+
<pressable
|
|
446
|
+
accessibilityRole="button"
|
|
447
|
+
[disabled]="disabled()"
|
|
448
|
+
[accessibilityState]="{ expanded: view() === 'months' }"
|
|
449
|
+
(press)="showMonths()"
|
|
450
|
+
class="calendar-heading-action"
|
|
451
|
+
>
|
|
452
|
+
<text class="title">{{ monthLabel() }}</text>
|
|
453
|
+
</pressable>
|
|
454
|
+
<pressable
|
|
455
|
+
accessibilityRole="button"
|
|
456
|
+
[disabled]="disabled()"
|
|
457
|
+
[accessibilityState]="{ expanded: view() === 'years' }"
|
|
458
|
+
(press)="showYears()"
|
|
459
|
+
class="calendar-heading-action"
|
|
460
|
+
>
|
|
461
|
+
<text class="title">{{ year() }}</text>
|
|
462
|
+
</pressable>
|
|
463
|
+
</view>
|
|
464
|
+
<pressable
|
|
465
|
+
class="calendar-navigation"
|
|
466
|
+
accessibilityRole="button"
|
|
467
|
+
[accessibilityLabel]="forwardLabel()"
|
|
468
|
+
[disabled]="disabled() || !canShift(1)"
|
|
469
|
+
(press)="shift(1)"
|
|
470
|
+
><text class="title">›</text></pressable
|
|
471
|
+
></view
|
|
472
|
+
>
|
|
473
|
+
@if (view() === 'years') {
|
|
474
|
+
<text class="muted"
|
|
475
|
+
>{{ years()[0] }} – {{ years()[years().length - 1] }}</text
|
|
476
|
+
>
|
|
477
|
+
<view class="calendar-grid" [accessibilityLabel]="label()">
|
|
478
|
+
@for (option of years(); track $index) {
|
|
479
|
+
<pressable
|
|
480
|
+
class="calendar-period"
|
|
481
|
+
[class.selected]="option === year()"
|
|
482
|
+
accessibilityRole="button"
|
|
483
|
+
[accessibilityLabel]="'' + option"
|
|
484
|
+
[accessibilityState]="{
|
|
485
|
+
selected: option === year(),
|
|
486
|
+
disabled: !yearAvailable(option),
|
|
487
|
+
}"
|
|
488
|
+
[disabled]="!yearAvailable(option)"
|
|
489
|
+
(press)="chooseYear(option)"
|
|
490
|
+
>
|
|
491
|
+
<text [class]="option === year() ? 'selected-text' : 'label'">{{
|
|
492
|
+
option
|
|
493
|
+
}}</text>
|
|
494
|
+
</pressable>
|
|
495
|
+
}
|
|
496
|
+
</view>
|
|
497
|
+
} @else if (view() === 'months') {
|
|
498
|
+
<view class="calendar-grid" [accessibilityLabel]="label()">
|
|
499
|
+
@for (option of months(); track $index) {
|
|
500
|
+
<pressable
|
|
501
|
+
class="calendar-period"
|
|
502
|
+
[class.selected]="option.value === month()"
|
|
503
|
+
accessibilityRole="button"
|
|
504
|
+
[accessibilityLabel]="option.label"
|
|
505
|
+
[accessibilityState]="{
|
|
506
|
+
selected: option.value === month(),
|
|
507
|
+
disabled: !monthAvailable(option.value),
|
|
508
|
+
}"
|
|
509
|
+
[disabled]="!monthAvailable(option.value)"
|
|
510
|
+
(press)="chooseMonth(option.value)"
|
|
511
|
+
>
|
|
512
|
+
<text
|
|
513
|
+
[class]="option.value === month() ? 'selected-text' : 'label'"
|
|
514
|
+
>{{ option.label }}</text
|
|
515
|
+
>
|
|
516
|
+
</pressable>
|
|
517
|
+
}
|
|
518
|
+
</view>
|
|
519
|
+
} @else {
|
|
520
|
+
<view class="calendar-grid" [accessibilityLabel]="label()">
|
|
521
|
+
@for (day of weekdays(); track $index) {
|
|
522
|
+
<view class="calendar-day"
|
|
523
|
+
><text class="muted">{{ day }}</text></view
|
|
524
|
+
>
|
|
525
|
+
}
|
|
526
|
+
@for (cell of cells(); track cell.date) {
|
|
527
|
+
<pressable
|
|
528
|
+
class="calendar-day"
|
|
529
|
+
|
|
530
|
+
accessibilityRole="button"
|
|
531
|
+
[accessibilityLabel]="cell.date"
|
|
532
|
+
[accessibilityHint]="
|
|
533
|
+
eventsByDate().has(cell.date) ? hasEventsLabel() : undefined
|
|
534
|
+
"
|
|
535
|
+
[accessibilityState]="{
|
|
536
|
+
selected: value() === cell.date,
|
|
537
|
+
disabled: unavailable(cell.date),
|
|
538
|
+
}"
|
|
539
|
+
[disabled]="unavailable(cell.date)"
|
|
540
|
+
(press)="choose(cell.date)"
|
|
541
|
+
><view class="calendar-date-value" [class.selected]="value() === cell.date"><text
|
|
542
|
+
[class]="
|
|
543
|
+
value() === cell.date
|
|
544
|
+
? 'selected-text'
|
|
545
|
+
: cell.current
|
|
546
|
+
? 'label'
|
|
547
|
+
: 'muted'
|
|
548
|
+
"
|
|
549
|
+
>{{ cell.day }}</text></view>
|
|
550
|
+
@if (eventsByDate().has(cell.date)) {
|
|
551
|
+
<view
|
|
552
|
+
class="calendar-event-dot"
|
|
553
|
+
|
|
554
|
+
[accessible]="false"
|
|
555
|
+
pointerEvents="none"
|
|
556
|
+
/>
|
|
557
|
+
}
|
|
558
|
+
</pressable>
|
|
559
|
+
}
|
|
560
|
+
</view>
|
|
561
|
+
}
|
|
562
|
+
@if (showAgenda() && agendaDate()) {
|
|
563
|
+
<view class="stack calendar-agenda">
|
|
564
|
+
<text class="label" accessibilityRole="header">{{
|
|
565
|
+
agendaLabel()
|
|
566
|
+
}}</text>
|
|
567
|
+
<text class="muted">{{ agendaDate() }}</text>
|
|
568
|
+
@if (editable()) {
|
|
569
|
+
<neu-button
|
|
570
|
+
[label]="addEventLabel()"
|
|
571
|
+
size="sm"
|
|
572
|
+
variant="outline"
|
|
573
|
+
[disabled]="unavailable(value())"
|
|
574
|
+
(pressed)="requestCreate()"
|
|
575
|
+
/>
|
|
576
|
+
}
|
|
577
|
+
@for (event of selectedEvents(); track event.id) {
|
|
578
|
+
<view class="stack calendar-event">
|
|
579
|
+
<view class="row calendar-event-heading">
|
|
580
|
+
<text class="label grow calendar-event-title">{{ event.label }}</text>
|
|
581
|
+
@if (editable()) {
|
|
582
|
+
<view class="row calendar-event-actions">
|
|
583
|
+
<neu-icon-button
|
|
584
|
+
[label]="editEventLabel() + ' ' + event.label"
|
|
585
|
+
[svg]="editIcon"
|
|
586
|
+
variant="text"
|
|
587
|
+
[disabled]="unavailable(value()) || !!event.disabled"
|
|
588
|
+
(pressed)="requestEdit(event)"
|
|
589
|
+
/>
|
|
590
|
+
<neu-icon-button
|
|
591
|
+
[label]="deleteEventLabel() + ' ' + event.label"
|
|
592
|
+
[svg]="deleteIcon"
|
|
593
|
+
variant="text"
|
|
594
|
+
tone="danger"
|
|
595
|
+
[disabled]="unavailable(value()) || !!event.disabled"
|
|
596
|
+
(pressed)="requestDelete(event)"
|
|
597
|
+
/>
|
|
598
|
+
</view>
|
|
599
|
+
}
|
|
600
|
+
</view>
|
|
601
|
+
@if (event.description) {
|
|
602
|
+
<text class="muted">{{ event.description }}</text>
|
|
603
|
+
}
|
|
604
|
+
</view>
|
|
605
|
+
} @empty {
|
|
606
|
+
<text class="muted">{{ emptyAgendaLabel() }}</text>
|
|
607
|
+
}
|
|
608
|
+
</view>
|
|
609
|
+
}
|
|
610
|
+
</view>`, styles: [".neu-unavailable > * {\n /* Fade presentation children without changing the accessible action's own alpha. */\n opacity: 0.45;\n}\n.stack {\n gap: 12px;\n}\n.row {\n flex-direction: row;\n align-items: center;\n gap: 10px;\n}\n.wrap {\n flex-wrap: wrap;\n}\n.grow {\n flex: 1;\n}\n.surface {\n padding: 16px;\n background-color: var(--neu-surface, #ffffff);\n border-radius: var(--neu-surface-radius, 16px);\n gap: 12px;\n}\n.outline {\n border-width: 1px;\n border-color: var(--neu-surface-border, #e1e6ed);\n}\n.title {\n color: var(--neu-text, #172033);\n font-size: var(--neu-heading-size, 18px);\n line-height: 24px;\n font-weight: 600;\n flex-shrink: 1;\n}\n.label {\n color: var(--neu-text, #172033);\n font-size: 16px;\n flex-shrink: 1;\n}\n.muted {\n color: var(--neu-muted, #596477);\n font-size: var(--neu-label-size, 14px);\n line-height: 20px;\n flex-shrink: 1;\n}\n.error {\n color: var(--neu-danger-ink, #b3261e);\n font-size: 14px;\n}\n.action {\n min-height: 48px;\n min-width: 48px;\n padding: 12px;\n justify-content: center;\n align-items: center;\n border-radius: 12px;\n background-color: var(--neu-tonal, #e9edfc);\n}\n.selected {\n background-color: var(--neu-accent, #3155d9);\n}\n.selected-text {\n color: var(--neu-on-accent, #ffffff);\n font-size: 16px;\n}\n.control {\n min-height: 48px;\n padding: 12px;\n font-size: 16px;\n color: var(--neu-text, #172033);\n border-width: 1px;\n border-color: var(--neu-border, #a5afbf);\n border-radius: var(--neu-control-radius, 10px);\n background-color: var(--neu-surface, #ffffff);\n}\n.track {\n height: 8px;\n border-radius: 4px;\n overflow: hidden;\n background-color: var(--neu-tonal, #e9edfc);\n}\n.fill {\n height: 8px;\n background-color: var(--neu-accent, #3155d9);\n}\n.dot {\n width: 20px;\n height: 20px;\n border-width: 2px;\n border-color: var(--neu-accent, #3155d9);\n border-radius: 10px;\n}\n.dot-selected {\n background-color: var(--neu-accent, #3155d9);\n}\n.avatar {\n width: 48px;\n height: 48px;\n border-radius: 24px;\n align-items: center;\n justify-content: center;\n background-color: var(--neu-tonal, #e9edfc);\n overflow: hidden;\n}\n.avatar-image {\n width: 48px;\n height: 48px;\n}\n.backdrop {\n flex: 1;\n background-color: rgba(0, 0, 0, 0.4);\n justify-content: center;\n padding: 16px;\n}\n.bottom {\n justify-content: flex-end;\n}\n.modal-layout {\n flex: 1;\n justify-content: center;\n}\n.modal-scroll {\n flex-grow: 0;\n flex-shrink: 1;\n}\n.scroll-content {\n padding-right: 12px;\n}\n.sheet {\n padding: 20px;\n background-color: var(--neu-surface, #ffffff);\n border-radius: var(--neu-dialog-radius, 24px);\n gap: 16px;\n max-height: 90%;\n}\n.full {\n flex: 1;\n}\n.sheet-background {\n background-color: var(--neu-surface, #ffffff);\n}\n.page-sheet {\n max-height: 100%;\n border-radius: 0;\n}\n.thumb {\n width: 72px;\n height: 72px;\n border-radius: 12px;\n}\n.hero {\n height: 240px;\n width: 100%;\n}\n.divider {\n height: 1px;\n background-color: var(--neu-divider, #e7ebf0);\n}\n.skeleton {\n background-color: var(--neu-border, #a5afbf);\n border-radius: 8px;\n}\n.pill {\n padding: 4px 10px;\n border-radius: 16px;\n background-color: var(--neu-tonal, #e9edfc);\n}\n.calendar-grid {\n flex-direction: row;\n flex-wrap: wrap;\n gap: 0;\n}\n.calendar-day {\n width: 14.2857%;\n min-width: 0;\n min-height: 48px;\n padding: 4px;\n align-items: center;\n justify-content: center;\n border-radius: 8px;\n}\n.speed-dial {\n align-items: flex-end;\n}\n.fab {\n width: 56px;\n height: 56px;\n border-radius: 28px;\n align-items: center;\n justify-content: center;\n background-color: var(--neu-accent, #3155d9);\n}\n.fab-label {\n color: var(--neu-on-accent, #ffffff);\n font-size: 28px;\n}\n.slider-track {\n width: 100%;\n height: 24px;\n position: relative;\n}\n.slider-rail {\n position: absolute;\n top: 8px;\n}\n.slider-thumb {\n width: 24px;\n height: 24px;\n border-radius: 12px;\n border-width: 2px;\n border-color: var(--neu-accent, #3155d9);\n background-color: var(--neu-on-accent, #ffffff);\n position: absolute;\n top: 0;\n}\n", ".calendar-heading {\n justify-content: center;\n gap: 4px;\n}\n.calendar-heading-action {\n min-height: 48px;\n padding-left: 8px;\n padding-right: 8px;\n align-items: center;\n justify-content: center;\n}\n.calendar-period {\n width: 33.3333%;\n min-width: 0;\n min-height: 52px;\n padding: 6px;\n border-radius: 8px;\n align-items: center;\n justify-content: center;\n}\n.calendar-navigation {\n width: 40px;\n min-height: 48px;\n align-items: center;\n justify-content: center;\n}\n.calendar-event-dot {\n width: 4px;\n height: 4px;\n border-radius: 2px;\n background-color: var(--neu-accent, #006ee6);\n position: absolute;\n bottom: 4px;\n align-self: center;\n}\n.calendar-event-dot-selected {\n background-color: var(--neu-on-accent, #ffffff);\n}\n.calendar-agenda {\n margin-top: 12px;\n padding-top: 16px;\n border-top-width: 1px;\n border-color: var(--neu-surface-border, #e1e6ed);\n}\n.calendar-event {\n padding: 12px 0;\n}\n\n.calendar-event-heading {\n align-items: center;\n gap: 8px;\n}\n.calendar-event-title {\n min-width: 0;\n}\n.calendar-event-actions {\n flex-shrink: 0;\n gap: 0;\n}\n\n.calendar-date-value { min-width: 32px; min-height: 32px; padding: 4px; border-radius: 16px; align-items: center; justify-content: center; }\n.calendar-date-value .label, .calendar-date-value .selected-text { font-size: var(--neu-row-size, 15px); line-height: var(--neu-row-line, 21px); }\n"] }]
|
|
611
|
+
}], ctorParameters: () => [], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], month: [{ type: i0.Input, args: [{ isSignal: true, alias: "month", required: false }] }, { type: i0.Output, args: ["monthChange"] }], locale: [{ type: i0.Input, args: [{ isSignal: true, alias: "locale", required: false }] }], firstDay: [{ type: i0.Input, args: [{ isSignal: true, alias: "firstDay", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], previousLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "previousLabel", required: false }] }], nextLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "nextLabel", required: false }] }], previousYearLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "previousYearLabel", required: false }] }], nextYearLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "nextYearLabel", required: false }] }], previousYearsLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "previousYearsLabel", required: false }] }], nextYearsLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "nextYearsLabel", required: false }] }], events: [{ type: i0.Input, args: [{ isSignal: true, alias: "events", required: false }] }], showAgenda: [{ type: i0.Input, args: [{ isSignal: true, alias: "showAgenda", required: false }] }], editable: [{ type: i0.Input, args: [{ isSignal: true, alias: "editable", required: false }] }], agendaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "agendaLabel", required: false }] }], emptyAgendaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyAgendaLabel", required: false }] }], hasEventsLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasEventsLabel", required: false }] }], addEventLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "addEventLabel", required: false }] }], editEventLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "editEventLabel", required: false }] }], deleteEventLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "deleteEventLabel", required: false }] }], eventCreateRequested: [{ type: i0.Output, args: ["eventCreateRequested"] }], eventEditRequested: [{ type: i0.Output, args: ["eventEditRequested"] }], eventDeleteRequested: [{ type: i0.Output, args: ["eventDeleteRequested"] }], touch: [{ type: i0.Output, args: ["touch"] }] } });
|
|
612
|
+
//# sourceMappingURL=calendar.js.map
|