@nmorph/nmorph-ui-kit 2.2.59 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/icons/expand.svg.js +13 -6
- package/dist/assets/icons/hand.svg.js +21 -0
- package/dist/assets/icons/list-simple.svg.js +21 -0
- package/dist/assets/icons/mute-speaker.svg.js +28 -0
- package/dist/assets/icons/pagination.svg.js +18 -5
- package/dist/assets/icons/speaker.svg.js +21 -0
- package/dist/assets/icons/triangle-down.svg.js +6 -6
- package/dist/assets/icons/video-camera-off.svg.js +28 -0
- package/dist/components/basic/nmorph-button/NmorphButton.css +1 -1
- package/dist/components/basic/nmorph-button/NmorphButton.vue2.js +21 -19
- package/dist/components/basic/nmorph-button/types.js +12 -4
- package/dist/components/basic/nmorph-icon/NmorphIcon.css +1 -1
- package/dist/components/basic/nmorph-icon/NmorphIcon.vue2.js +10 -10
- package/dist/components/basic/nmorph-icon/NmorphIcons.js +406 -395
- package/dist/components/basic/nmorph-icon/types.js +6 -2
- package/dist/components/basic/nmorph-layout/NmorphLayout.css +1 -1
- package/dist/components/basic/nmorph-layout/NmorphLayout.vue2.js +7 -7
- package/dist/components/basic/nmorph-link/NmorphLink.css +1 -1
- package/dist/components/basic/nmorph-link/NmorphLink.vue2.js +7 -7
- package/dist/components/basic/nmorph-link/types.js +7 -2
- package/dist/components/basic/nmorph-scroll/NmorphScroll.css +1 -1
- package/dist/components/basic/nmorph-scroll/NmorphScroll.vue.js +4 -3
- package/dist/components/basic/nmorph-scroll/NmorphScroll.vue2.js +123 -112
- package/dist/components/basic/nmorph-scroll/types.js +13 -3
- package/dist/components/basic/nmorph-space/NmorphSpace.css +1 -1
- package/dist/components/basic/nmorph-space/NmorphSpace.vue2.js +9 -9
- package/dist/components/basic/nmorph-text/NmorphText.vue.js +19 -0
- package/dist/components/basic/nmorph-text/NmorphText.vue2.js +50 -0
- package/dist/components/data/nmorph-audio-meter/NmorphAudioMeter.css +1 -1
- package/dist/components/data/nmorph-audio-meter/NmorphAudioMeter.vue2.js +22 -12
- package/dist/components/data/nmorph-audio-preview/NmorphAudioPreview.css +1 -1
- package/dist/components/data/nmorph-audio-preview/NmorphAudioPreview.vue2.js +8 -6
- package/dist/components/data/nmorph-avatar/NmorphAvatar.css +1 -1
- package/dist/components/data/nmorph-avatar/NmorphAvatar.vue.js +54 -51
- package/dist/components/data/nmorph-avatar/NmorphAvatar.vue2.js +41 -36
- package/dist/components/data/nmorph-badge/NmorphBadge.css +1 -1
- package/dist/components/data/nmorph-badge/NmorphBadge.vue2.js +47 -51
- package/dist/components/data/nmorph-calendar/NmorphCalendar.css +1 -1
- package/dist/components/data/nmorph-calendar/NmorphCalendar.vue.js +34 -32
- package/dist/components/data/nmorph-calendar/NmorphCalendar.vue2.js +35 -34
- package/dist/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/NmorphCalendarHeader.css +1 -1
- package/dist/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/NmorphCalendarHeader.vue.js +25 -22
- package/dist/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/NmorphCalendarHeader.vue2.js +10 -9
- package/dist/components/data/nmorph-card/NmorphCard.css +1 -1
- package/dist/components/data/nmorph-card/NmorphCard.vue2.js +20 -19
- package/dist/components/data/nmorph-carousel/NmorphCarousel.css +1 -0
- package/dist/components/data/nmorph-carousel/NmorphCarousel.vue.js +12 -10
- package/dist/components/data/nmorph-carousel/NmorphCarousel.vue2.js +23 -20
- package/dist/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.css +1 -1
- package/dist/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue.js +29 -17
- package/dist/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue2.js +35 -29
- package/dist/components/data/nmorph-emoji-picker/NmorphEmojiPicker.css +1 -1
- package/dist/components/data/nmorph-emoji-picker/NmorphEmojiPicker.vue.js +12 -12
- package/dist/components/data/nmorph-emoji-picker/NmorphEmojiPicker.vue2.js +103 -89
- package/dist/components/data/nmorph-empty/NmorphEmpty.css +1 -1
- package/dist/components/data/nmorph-empty/NmorphEmpty.vue2.js +12 -12
- package/dist/components/data/nmorph-file-card/NmorphFileCard.css +1 -1
- package/dist/components/data/nmorph-file-card/NmorphFileCard.vue2.js +2 -2
- package/dist/components/data/nmorph-image/NmorphImage.css +1 -1
- package/dist/components/data/nmorph-image/NmorphImage.vue2.js +32 -20
- package/dist/components/data/nmorph-image-preview/NmorphImagePreview.css +1 -1
- package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue.js +66 -62
- package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue2.js +53 -51
- package/dist/components/data/nmorph-media-gallery/NmorphMediaGallery.css +1 -1
- package/dist/components/data/nmorph-media-gallery/NmorphMediaGallery.vue.js +17 -15
- package/dist/components/data/nmorph-media-gallery/NmorphMediaGallery.vue2.js +56 -54
- package/dist/components/data/nmorph-media-tile/NmorphMediaTile.css +1 -1
- package/dist/components/data/nmorph-media-tile/NmorphMediaTile.vue.js +20 -16
- package/dist/components/data/nmorph-media-tile/NmorphMediaTile.vue2.js +16 -14
- package/dist/components/data/nmorph-pagination/NmorphPagination.css +1 -1
- package/dist/components/data/nmorph-pagination/NmorphPagination.vue.js +50 -50
- package/dist/components/data/nmorph-pagination/NmorphPagination.vue2.js +23 -23
- package/dist/components/data/nmorph-preview-portal/NmorphPreviewPortal.css +1 -1
- package/dist/components/data/nmorph-preview-portal/NmorphPreviewPortal.vue.js +14 -12
- package/dist/components/data/nmorph-preview-portal/NmorphPreviewPortal.vue2.js +22 -18
- package/dist/components/data/nmorph-progress/NmorphProgress.css +1 -1
- package/dist/components/data/nmorph-progress/NmorphProgress.vue2.js +22 -22
- package/dist/components/data/nmorph-qr-code/NmorphQRCode.css +1 -1
- package/dist/components/data/nmorph-qr-code/NmorphQRCode.vue2.js +18 -19
- package/dist/components/data/nmorph-skeleton/NmorphSkeleton.css +1 -1
- package/dist/components/data/nmorph-skeleton/NmorphSkeleton.vue2.js +5 -5
- package/dist/components/data/nmorph-skeleton/components/NmorphSkeletonItem.css +1 -1
- package/dist/components/data/nmorph-skeleton/components/NmorphSkeletonItem.vue.js +7 -7
- package/dist/components/data/nmorph-skeleton/components/NmorphSkeletonItem.vue2.js +4 -4
- package/dist/components/data/nmorph-skeleton/types.js +6 -2
- package/dist/components/data/nmorph-table/NmorphTable.css +1 -1
- package/dist/components/data/nmorph-table/NmorphTable.vue2.js +13 -13
- package/dist/components/data/nmorph-table/inner-components/nmorph-sort-button/NmorphSortButton.css +1 -1
- package/dist/components/data/nmorph-table/inner-components/nmorph-sort-button/NmorphSortButton.vue.js +36 -40
- package/dist/components/data/nmorph-table/inner-components/nmorph-sort-button/NmorphSortButton.vue2.js +14 -23
- package/dist/components/data/nmorph-tag-list/NmorphTagList.css +1 -1
- package/dist/components/data/nmorph-tag-list/NmorphTagList.vue.js +38 -44
- package/dist/components/data/nmorph-tag-list/NmorphTagList.vue2.js +14 -29
- package/dist/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.css +1 -1
- package/dist/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.vue2.js +34 -34
- package/dist/components/data/nmorph-video-preview/NmorphVideoPreview.css +1 -1
- package/dist/components/data/nmorph-video-preview/NmorphVideoPreview.vue2.js +26 -22
- package/dist/components/data/nmorph-virtual-list/NmorphVirtualList.css +1 -1
- package/dist/components/data/nmorph-virtual-list/NmorphVirtualList.vue2.js +6 -6
- package/dist/components/feedback/nmorph-alert/NmorphAlert.css +1 -1
- package/dist/components/feedback/nmorph-alert/NmorphAlert.vue2.js +10 -10
- package/dist/components/feedback/nmorph-alert/types.js +6 -1
- package/dist/components/feedback/nmorph-callout/NmorphCallout.css +1 -1
- package/dist/components/feedback/nmorph-callout/NmorphCallout.vue2.js +16 -16
- package/dist/components/feedback/nmorph-dialog/NmorphDialog.css +1 -1
- package/dist/components/feedback/nmorph-dialog/NmorphDialog.vue2.js +36 -35
- package/dist/components/feedback/nmorph-drawer/NmorphDrawer.css +1 -1
- package/dist/components/feedback/nmorph-drawer/NmorphDrawer.vue2.js +9 -9
- package/dist/components/feedback/nmorph-guide/NmorphGuideStep.css +1 -1
- package/dist/components/feedback/nmorph-guide/NmorphGuideStep.vue.js +33 -33
- package/dist/components/feedback/nmorph-tooltip/NmorphTooltip.css +1 -1
- package/dist/components/feedback/nmorph-tooltip/NmorphTooltip.vue2.js +21 -21
- package/dist/components/form/nmorph-autocomplete/NmorphAutocomplete.css +1 -1
- package/dist/components/form/nmorph-autocomplete/NmorphAutocomplete.vue.js +21 -18
- package/dist/components/form/nmorph-autocomplete/NmorphAutocomplete.vue2.js +20 -20
- package/dist/components/form/nmorph-checkbox/NmorphCheckbox.css +1 -1
- package/dist/components/form/nmorph-checkbox/NmorphCheckbox.vue.js +15 -15
- package/dist/components/form/nmorph-checkbox/NmorphCheckbox.vue2.js +30 -31
- package/dist/components/form/nmorph-checkbox-group/NmorphCheckboxGroup.vue.js +20 -21
- package/dist/components/form/nmorph-checkbox-group/NmorphCheckboxGroup.vue2.js +28 -28
- package/dist/components/form/nmorph-color-picker/NmorphColorPicker.css +1 -1
- package/dist/components/form/nmorph-color-picker/NmorphColorPicker.vue2.js +27 -27
- package/dist/components/form/nmorph-date-picker/NmorphDatePicker.css +1 -1
- package/dist/components/form/nmorph-date-picker/NmorphDatePicker.vue2.js +40 -38
- package/dist/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-header/NmorphDatePickerHeader.vue.js +94 -108
- package/dist/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-header/NmorphDatePickerHeader.vue2.js +14 -19
- package/dist/components/form/nmorph-date-picker/inner-components/nmorph-year-month-picker/NmorphYearMonthPicker.vue.js +55 -64
- package/dist/components/form/nmorph-date-picker/inner-components/nmorph-year-month-picker/NmorphYearMonthPicker.vue2.js +32 -37
- package/dist/components/form/nmorph-file-upload/NmorphFileUpload.css +1 -1
- package/dist/components/form/nmorph-file-upload/NmorphFileUpload.vue.js +10 -10
- package/dist/components/form/nmorph-file-upload/NmorphFileUpload.vue2.js +1 -1
- package/dist/components/form/nmorph-file-upload/types.js +34 -16
- package/dist/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.css +1 -1
- package/dist/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.vue.js +12 -12
- package/dist/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.vue2.js +7 -7
- package/dist/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-error-box/NmorphErrorBox.vue2.js +6 -6
- package/dist/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-validation-icon/NmorphValidationIcon.css +1 -1
- package/dist/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-validation-icon/NmorphValidationIcon.vue.js +12 -13
- package/dist/components/form/nmorph-number-input/NmorphNumberInput.css +1 -1
- package/dist/components/form/nmorph-number-input/NmorphNumberInput.vue.js +41 -37
- package/dist/components/form/nmorph-number-input/NmorphNumberInput.vue2.js +28 -28
- package/dist/components/form/nmorph-otp-input/NmorphOTPInput.css +1 -1
- package/dist/components/form/nmorph-otp-input/NmorphOTPInput.vue.js +19 -19
- package/dist/components/form/nmorph-otp-input/NmorphOTPInput.vue2.js +37 -37
- package/dist/components/form/nmorph-radio/NmorphRadio.css +1 -1
- package/dist/components/form/nmorph-radio/NmorphRadio.vue.js +4 -4
- package/dist/components/form/nmorph-radio/NmorphRadio.vue2.js +21 -21
- package/dist/components/form/nmorph-radio-group/NmorphRadioGroup.vue.js +18 -18
- package/dist/components/form/nmorph-radio-group/NmorphRadioGroup.vue2.js +21 -21
- package/dist/components/form/nmorph-select/NmorphSelect.css +1 -1
- package/dist/components/form/nmorph-select/NmorphSelect.vue.js +86 -77
- package/dist/components/form/nmorph-select/NmorphSelect.vue2.js +52 -52
- package/dist/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.css +1 -1
- package/dist/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.vue2.js +21 -21
- package/dist/components/form/nmorph-select-button/NmorphSelectButton.css +1 -1
- package/dist/components/form/nmorph-select-button/NmorphSelectButton.vue2.js +27 -31
- package/dist/components/form/nmorph-select-button/components/nmorph-select-button-item/NmorphSelectButtonItem.css +1 -1
- package/dist/components/form/nmorph-select-button/components/nmorph-select-button-item/NmorphSelectButtonItem.vue.js +13 -11
- package/dist/components/form/nmorph-slider/NmorphSlider.css +1 -1
- package/dist/components/form/nmorph-slider/NmorphSlider.vue2.js +52 -47
- package/dist/components/form/nmorph-switch/NmorphSwitch.css +1 -1
- package/dist/components/form/nmorph-switch/NmorphSwitch.vue2.js +26 -26
- package/dist/components/form/nmorph-text-input/NmorphTextInput.css +1 -1
- package/dist/components/form/nmorph-text-input/NmorphTextInput.vue.js +35 -36
- package/dist/components/form/nmorph-text-input/NmorphTextInput.vue2.js +49 -36
- package/dist/components/form/nmorph-textarea/NmorphTextarea.css +1 -1
- package/dist/components/form/nmorph-textarea/NmorphTextarea.vue2.js +18 -18
- package/dist/components/form/nmorph-time-picker/NmorphTimePicker.css +1 -1
- package/dist/components/form/nmorph-time-picker/NmorphTimePicker.vue.js +1 -1
- package/dist/components/form/nmorph-time-picker/NmorphTimePicker.vue2.js +44 -44
- package/dist/components/navigation/nmorph-backtop/NmorphBacktop.css +1 -1
- package/dist/components/navigation/nmorph-backtop/NmorphBacktop.vue.js +11 -11
- package/dist/components/navigation/nmorph-backtop/NmorphBacktop.vue2.js +15 -15
- package/dist/components/navigation/nmorph-context-menu/NmorphContextMenu.css +1 -1
- package/dist/components/navigation/nmorph-context-menu/NmorphContextMenu.vue2.js +9 -9
- package/dist/components/navigation/nmorph-dropdown/NmorphDropdown.css +1 -1
- package/dist/components/navigation/nmorph-dropdown/NmorphDropdown.vue2.js +6 -5
- package/dist/components/navigation/nmorph-stepper/NmorphStepper.vue2.js +20 -20
- package/dist/components/others/nmorph-divider/NmorphDivider.css +1 -1
- package/dist/components/others/nmorph-divider/NmorphDivider.vue2.js +9 -8
- package/dist/components/others/nmorph-overlay/NmorphOverlay.css +1 -1
- package/dist/components/others/nmorph-overlay/NmorphOverlay.vue.js +13 -13
- package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.css +1 -1
- package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue.js +35 -25
- package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue2.js +22 -25
- package/dist/components/providers/nmorph-notification-provider/types.js +9 -2
- package/dist/emoji/base.js +571 -20
- package/dist/hooks/use-common-styles.js +228 -49
- package/dist/hooks/use-field-validation.js +42 -45
- package/dist/hooks/use-virtual-list.js +65 -57
- package/dist/icons.js +406 -395
- package/dist/index.es.js +853 -838
- package/dist/index.umd.js +241 -71
- package/dist/package.json.js +1 -1
- package/dist/plugin.js +37 -34
- package/dist/src/components/basic/index.d.ts +2 -0
- package/dist/src/components/basic/nmorph-button/NmorphButton.vue.d.ts +3 -2
- package/dist/src/components/basic/nmorph-button/types.d.ts +18 -19
- package/dist/src/components/basic/nmorph-icon/NmorphIcon.vue.d.ts +1 -1
- package/dist/src/components/basic/nmorph-icon/NmorphIcons.d.ts +6 -0
- package/dist/src/components/basic/nmorph-icon/types.d.ts +7 -6
- package/dist/src/components/basic/nmorph-link/types.d.ts +9 -8
- package/dist/src/components/basic/nmorph-scroll/types.d.ts +16 -14
- package/dist/src/components/basic/nmorph-text/NmorphText.vue.d.ts +20 -0
- package/dist/src/components/basic/nmorph-text/types.d.ts +12 -0
- package/dist/src/components/data/nmorph-audio-meter/NmorphAudioMeter.vue.d.ts +5 -1
- package/dist/src/components/data/nmorph-audio-meter/types.d.ts +4 -0
- package/dist/src/components/data/nmorph-avatar/NmorphAvatar.vue.d.ts +1 -0
- package/dist/src/components/data/nmorph-avatar/types.d.ts +3 -2
- package/dist/src/components/data/nmorph-badge/NmorphBadge.vue.d.ts +3 -2
- package/dist/src/components/data/nmorph-badge/types.d.ts +3 -8
- package/dist/src/components/data/nmorph-calendar/NmorphCalendar.vue.d.ts +1 -0
- package/dist/src/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/NmorphCalendarHeader.vue.d.ts +3 -1
- package/dist/src/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/types.d.ts +2 -0
- package/dist/src/components/data/nmorph-calendar/types.d.ts +2 -1
- package/dist/src/components/data/nmorph-card/NmorphCard.vue.d.ts +1 -0
- package/dist/src/components/data/nmorph-card/types.d.ts +2 -1
- package/dist/src/components/data/nmorph-carousel/NmorphCarousel.vue.d.ts +1 -0
- package/dist/src/components/data/nmorph-carousel/types.d.ts +2 -0
- package/dist/src/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue.d.ts +1 -1
- package/dist/src/components/data/nmorph-collapse/components/nmorph-collapse-item/types.d.ts +2 -2
- package/dist/src/components/data/nmorph-emoji-picker/NmorphEmojiPicker.vue.d.ts +7 -1
- package/dist/src/components/data/nmorph-emoji-picker/types.d.ts +6 -0
- package/dist/src/components/data/nmorph-empty/NmorphEmpty.vue.d.ts +1 -2
- package/dist/src/components/data/nmorph-file-card/NmorphFileCard.vue.d.ts +1 -1
- package/dist/src/components/data/nmorph-image/NmorphImage.vue.d.ts +3 -0
- package/dist/src/components/data/nmorph-image/types.d.ts +2 -1
- package/dist/src/components/data/nmorph-image-preview/NmorphImagePreview.vue.d.ts +3 -1
- package/dist/src/components/data/nmorph-image-preview/types.d.ts +2 -0
- package/dist/src/components/data/nmorph-media-gallery/NmorphMediaGallery.vue.d.ts +2 -0
- package/dist/src/components/data/nmorph-media-gallery/types.d.ts +2 -0
- package/dist/src/components/data/nmorph-media-tile/NmorphMediaTile.vue.d.ts +2 -0
- package/dist/src/components/data/nmorph-media-tile/types.d.ts +2 -0
- package/dist/src/components/data/nmorph-pagination/NmorphPagination.vue.d.ts +1 -1
- package/dist/src/components/data/nmorph-pagination/types.d.ts +2 -2
- package/dist/src/components/data/nmorph-preview-portal/NmorphPreviewPortal.vue.d.ts +4 -0
- package/dist/src/components/data/nmorph-skeleton/components/NmorphSkeletonItem.vue.d.ts +2 -3
- package/dist/src/components/data/nmorph-skeleton/types.d.ts +6 -5
- package/dist/src/components/data/nmorph-table/NmorphTable.vue.d.ts +1 -1
- package/dist/src/components/data/nmorph-table/types.d.ts +2 -2
- package/dist/src/components/data/nmorph-tag-list/NmorphTagList.vue.d.ts +3 -4
- package/dist/src/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.vue.d.ts +2 -3
- package/dist/src/components/data/nmorph-tag-list/types.d.ts +2 -2
- package/dist/src/components/data/nmorph-video-preview/NmorphVideoPreview.vue.d.ts +3 -1
- package/dist/src/components/data/nmorph-video-preview/types.d.ts +2 -0
- package/dist/src/components/data/nmorph-virtual-list/NmorphVirtualList.vue.d.ts +1 -1
- package/dist/src/components/feedback/nmorph-alert/NmorphAlert.vue.d.ts +1 -1
- package/dist/src/components/feedback/nmorph-alert/types.d.ts +8 -7
- package/dist/src/components/feedback/nmorph-callout/NmorphCallout.vue.d.ts +1 -1
- package/dist/src/components/feedback/nmorph-dialog/NmorphDialog.vue.d.ts +1 -1
- package/dist/src/components/feedback/nmorph-dialog/types.d.ts +1 -4
- package/dist/src/components/feedback/nmorph-guide/NmorphGuide.vue.d.ts +1 -1
- package/dist/src/components/feedback/nmorph-tooltip/NmorphTooltip.vue.d.ts +2 -2
- package/dist/src/components/form/nmorph-autocomplete/NmorphAutocomplete.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-checkbox/NmorphCheckbox.vue.d.ts +2 -17
- package/dist/src/components/form/nmorph-checkbox-group/NmorphCheckboxGroup.vue.d.ts +2 -15
- package/dist/src/components/form/nmorph-checkbox-group/types.d.ts +4 -6
- package/dist/src/components/form/nmorph-color-picker/NmorphColorPicker.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-date-picker/NmorphDatePicker.vue.d.ts +2 -1
- package/dist/src/components/form/nmorph-date-picker/types.d.ts +1 -0
- package/dist/src/components/form/nmorph-file-upload/types.d.ts +55 -55
- package/dist/src/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-error-box/NmorphErrorBox.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-error-box/types.d.ts +2 -2
- package/dist/src/components/form/nmorph-form/components/nmorph-form-item/types.d.ts +2 -2
- package/dist/src/components/form/nmorph-number-input/NmorphNumberInput.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-otp-input/NmorphOTPInput.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-radio/NmorphRadio.vue.d.ts +2 -14
- package/dist/src/components/form/nmorph-radio/types.d.ts +6 -4
- package/dist/src/components/form/nmorph-radio-group/NmorphRadioGroup.vue.d.ts +2 -14
- package/dist/src/components/form/nmorph-radio-group/types.d.ts +4 -6
- package/dist/src/components/form/nmorph-select/NmorphSelect.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-select-button/NmorphSelectButton.vue.d.ts +2 -4
- package/dist/src/components/form/nmorph-select-button/components/nmorph-select-button-item/types.d.ts +1 -1
- package/dist/src/components/form/nmorph-select-button/types.d.ts +1 -3
- package/dist/src/components/form/nmorph-slider/NmorphSlider.vue.d.ts +10 -10
- package/dist/src/components/form/nmorph-slider/types.d.ts +1 -1
- package/dist/src/components/form/nmorph-switch/NmorphSwitch.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-switch/types.d.ts +1 -1
- package/dist/src/components/form/nmorph-text-input/NmorphTextInput.vue.d.ts +4 -1
- package/dist/src/components/form/nmorph-text-input/types.d.ts +3 -0
- package/dist/src/components/form/nmorph-textarea/NmorphTextarea.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-time-picker/NmorphTimePicker.vue.d.ts +1 -1
- package/dist/src/components/navigation/nmorph-backtop/NmorphBacktop.vue.d.ts +1 -2
- package/dist/src/components/navigation/nmorph-context-menu/NmorphContextMenu.vue.d.ts +1 -1
- package/dist/src/components/navigation/nmorph-dropdown/NmorphDropdown.vue.d.ts +2 -1
- package/dist/src/components/navigation/nmorph-dropdown/types.d.ts +2 -1
- package/dist/src/components/others/nmorph-divider/NmorphDivider.vue.d.ts +1 -0
- package/dist/src/components/others/nmorph-divider/types.d.ts +2 -0
- package/dist/src/components/others/nmorph-overlay/NmorphOverlay.vue.d.ts +1 -1
- package/dist/src/components/providers/nmorph-notification-provider/types.d.ts +8 -8
- package/dist/src/hooks/use-field-validation.d.ts +21 -24
- package/dist/src/hooks/use-nmorph-translation.d.ts +2 -2
- package/dist/src/types/app.types.d.ts +0 -5
- package/dist/src/types/common.types.d.ts +91 -35
- package/dist/src/types/date.types.d.ts +6 -5
- package/dist/src/types/image.types.d.ts +16 -12
- package/dist/src/types/selection.types.d.ts +19 -14
- package/dist/src/types/table.types.d.ts +6 -5
- package/dist/src/types/translation.types.d.ts +7 -6
- package/dist/src/utils/common.d.ts +2 -2
- package/dist/src/utils/file-types.d.ts +1 -1
- package/dist/src/utils/theme-style.d.ts +2 -0
- package/dist/style.css +1 -1
- package/dist/types/common.types.js +73 -8
- package/dist/types/date.types.js +6 -2
- package/dist/types/image.types.js +12 -3
- package/dist/types/table.types.js +5 -2
- package/dist/types/translation.types.js +6 -2
- package/dist/utils/common.js +3 -3
- package/dist/utils/file-types.js +6 -7
- package/dist/utils/theme-style.js +42 -48
- package/package.json +1 -1
- package/dist/types/selection.types.js +0 -4
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import './NmorphSwitch.css';
|
|
2
|
-
import { defineComponent as N, ref as
|
|
3
|
-
import { useModifiers as
|
|
4
|
-
import { createCssSizeVariables as
|
|
5
|
-
import { useFormItemInput as
|
|
2
|
+
import { defineComponent as N, ref as o, computed as d, watch as V } from "vue";
|
|
3
|
+
import { useModifiers as w } from "../../../utils/create-modifiers.js";
|
|
4
|
+
import { createCssSizeVariables as _ } from "../../../utils/common.js";
|
|
5
|
+
import { useFormItemInput as I, useFormItemModel as B } from "../nmorph-form/use-form-item-input.js";
|
|
6
6
|
import H from "../../basic/nmorph-icon/NmorphIcon.vue.js";
|
|
7
7
|
import x from "../../../assets/icons/loader.svg.js";
|
|
8
8
|
const j = /* @__PURE__ */ N({
|
|
@@ -24,47 +24,47 @@ const j = /* @__PURE__ */ N({
|
|
|
24
24
|
},
|
|
25
25
|
emits: ["update:model-value"],
|
|
26
26
|
setup(f, { expose: m, emit: p }) {
|
|
27
|
-
const e = f, { id: c, name: h, tabindex: v } =
|
|
27
|
+
const e = f, { id: c, name: h, tabindex: v } = I(e), l = p, { modelValue: i, updateModelValue: u } = B(
|
|
28
28
|
e,
|
|
29
|
-
(
|
|
29
|
+
(r) => l("update:model-value", r),
|
|
30
30
|
!1
|
|
31
|
-
),
|
|
32
|
-
|
|
31
|
+
), a = o(!1), g = () => {
|
|
32
|
+
a.value = !0;
|
|
33
33
|
}, b = () => {
|
|
34
|
-
|
|
35
|
-
}, y =
|
|
36
|
-
() =>
|
|
34
|
+
a.value = !1;
|
|
35
|
+
}, y = d(
|
|
36
|
+
() => w({
|
|
37
37
|
"nmorph-switch": [
|
|
38
38
|
e.disabled && "disabled",
|
|
39
39
|
t.value ? "on" : "off",
|
|
40
40
|
e.loading && "loading",
|
|
41
|
-
|
|
41
|
+
a.value && "focus"
|
|
42
42
|
]
|
|
43
43
|
})
|
|
44
|
-
), t =
|
|
44
|
+
), t = o(i.value === e.activeValue), S = () => {
|
|
45
45
|
if (e.disabled) return;
|
|
46
46
|
t.value = !t.value;
|
|
47
|
-
const
|
|
48
|
-
|
|
49
|
-
}, s =
|
|
47
|
+
const r = t.value ? e.activeValue : e.inactiveValue;
|
|
48
|
+
u(r);
|
|
49
|
+
}, s = o(null);
|
|
50
50
|
m({ inputDOMRef: s });
|
|
51
|
-
const q =
|
|
52
|
-
() =>
|
|
53
|
-
"--width": e.width,
|
|
54
|
-
"--height": e.height,
|
|
55
|
-
"--offset": e.offset,
|
|
56
|
-
"--thumb-height": e.thumbHeight
|
|
51
|
+
const q = d(
|
|
52
|
+
() => _({
|
|
53
|
+
"--nmorph-private-switch-width": e.width,
|
|
54
|
+
"--nmorph-private-switch-height": e.height,
|
|
55
|
+
"--nmorph-private-switch-offset": e.offset,
|
|
56
|
+
"--nmorph-private-switch-thumb-height": e.thumbHeight
|
|
57
57
|
})
|
|
58
58
|
);
|
|
59
|
-
V(
|
|
60
|
-
t.value =
|
|
59
|
+
V(i, (r) => {
|
|
60
|
+
t.value = r === e.activeValue;
|
|
61
61
|
});
|
|
62
|
-
const
|
|
62
|
+
const n = { props: e, id: c, name: h, tabindex: v, emit: l, modelValue: i, updateModelValue: u, focus: a, focusHandler: g, blurHandler: b, modifiers: y, initialValue: t, changeHandler: S, inputDOMRef: s, styles: q, get NmorphIcon() {
|
|
63
63
|
return H;
|
|
64
64
|
}, get NmorphIconLoaderDots() {
|
|
65
65
|
return x;
|
|
66
66
|
} };
|
|
67
|
-
return Object.defineProperty(
|
|
67
|
+
return Object.defineProperty(n, "__isScriptSetup", { enumerable: !1, value: !0 }), n;
|
|
68
68
|
}
|
|
69
69
|
});
|
|
70
70
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.nmorph-text-input{--prepend-icon-indent: 8px;--prepend-icon-size: 14px;--nmorph-text-input-prepend-icon-color: var(--nmorph-placeholder-text-color);display:flex;flex:1 1 auto;flex-direction:column;align-items:flex-start;min-width:0}.nmorph-text-input__input-side{position:relative;display:flex;justify-content:flex-end;align-items:center;width:100%}.nmorph-text-input__prepend-icon{position:absolute;left:0;z-index:1;display:flex;justify-content:center;align-items:center;width:var(--prepend-icon-size);min-width:var(--prepend-icon-size);height:var(--prepend-icon-size);min-height:var(--prepend-icon-size);margin-left:var(--prepend-icon-indent);color:var(--nmorph-text-input-prepend-icon-color);pointer-events:none}.nmorph-text-input__prepend-icon .nmorph-icon{--color: var(--nmorph-text-input-prepend-icon-color)}.nmorph-text-input__prepend-icon svg,.nmorph-text-input__prepend-icon .nmorph-icon,.nmorph-text-input__prepend-icon .nmorph-icon__content{width:100%;min-width:100%;height:100%;min-height:100%}.nmorph-text-input__prepend-icon svg{fill:var(--nmorph-text-input-prepend-icon-color);stroke-width:0}.nmorph-text-input__prepend-icon path{stroke:var(--nmorph-text-input-prepend-icon-color)}.nmorph-text-input input{width:100%;height:var(--height);text-indent:var(--nmorph-text-input-indentation);background:var(--nmorph-main-color);border:none;border-radius:var(--default-border-radius);box-shadow:var(--nmorph-shadow-inset)}.nmorph-text-input--with-action input{padding-right:calc(var(--height) + var(--indentation-03))}.nmorph-text-input input:focus{background:var(--nmorph-accent-color);outline:none;box-shadow:var(--nmorph-shadow-outset)}.nmorph-text-input.nmorph--focused{--nmorph-text-input-prepend-icon-color: var(--nmorph-focus-text-color)}.nmorph-text-input input:-webkit-autofill,.nmorph-text-input input:-webkit-autofill:hover,.nmorph-text-input input:-webkit-autofill:active{caret-color:var(--nmorph-text-color);box-shadow:var(--nmorph-shadow-inset),inset 0 0 0 1000px var(--nmorph-main-color);-webkit-text-fill-color:var(--nmorph-text-color)}.nmorph-text-input input:-webkit-autofill:focus{caret-color:var(--nmorph-focus-text-color);outline:none;box-shadow:var(--nmorph-shadow-outset),inset 0 0 0 1000px var(--nmorph-accent-color);-webkit-text-fill-color:var(--nmorph-focus-text-color)}.nmorph-text-input input:disabled{cursor:not-allowed;opacity:.6}.nmorph-text-input__password-btn{position:absolute;right:0;height:100%}.nmorph-text-input__password-btn .nmorph-button__content{padding:var(--indentation-03)}.nmorph-text-
|
|
1
|
+
.nmorph-text-input{--nmorph-private-text-input-prepend-icon-indent: 8px;--nmorph-private-text-input-prepend-icon-size: 14px;--nmorph-private-text-input-prepend-icon-color: var(--nmorph-placeholder-text-color);display:flex;flex:1 1 auto;flex-direction:column;align-items:flex-start;min-width:0}.nmorph-text-input__input-side{position:relative;display:flex;justify-content:flex-end;align-items:center;width:100%}.nmorph-text-input__prepend-icon{position:absolute;left:0;z-index:1;display:flex;justify-content:center;align-items:center;width:var(--nmorph-private-text-input-prepend-icon-size);min-width:var(--nmorph-private-text-input-prepend-icon-size);height:var(--nmorph-private-text-input-prepend-icon-size);min-height:var(--nmorph-private-text-input-prepend-icon-size);margin-left:var(--nmorph-private-text-input-prepend-icon-indent);color:var(--nmorph-private-text-input-prepend-icon-color);pointer-events:none}.nmorph-text-input__prepend-icon .nmorph-icon{--nmorph-private-icon-color: var(--nmorph-private-text-input-prepend-icon-color)}.nmorph-text-input__prepend-icon svg,.nmorph-text-input__prepend-icon .nmorph-icon,.nmorph-text-input__prepend-icon .nmorph-icon__content{width:100%;min-width:100%;height:100%;min-height:100%}.nmorph-text-input__prepend-icon svg{fill:var(--nmorph-private-text-input-prepend-icon-color);stroke-width:0}.nmorph-text-input__prepend-icon path{stroke:var(--nmorph-private-text-input-prepend-icon-color)}.nmorph-text-input input{width:100%;height:var(--nmorph-private-control-height);padding-top:var(--nmorph-private-control-text-offset-y);padding-bottom:0;line-height:calc(var(--nmorph-private-control-height) - var(--nmorph-private-control-text-offset-y));text-indent:var(--nmorph-private-text-input-indentation);background:var(--nmorph-main-color);border:none;border-radius:var(--default-border-radius);box-shadow:var(--nmorph-shadow-inset)}.nmorph-text-input--with-action input{padding-right:calc(var(--nmorph-private-control-height) + var(--indentation-03))}.nmorph-text-input input:focus{background:var(--nmorph-accent-color);outline:none;box-shadow:var(--nmorph-shadow-outset)}.nmorph-text-input.nmorph--focused{--nmorph-private-text-input-prepend-icon-color: var(--nmorph-focus-text-color)}.nmorph-text-input input:-webkit-autofill,.nmorph-text-input input:-webkit-autofill:hover,.nmorph-text-input input:-webkit-autofill:active{caret-color:var(--nmorph-text-color);box-shadow:var(--nmorph-shadow-inset),inset 0 0 0 1000px var(--nmorph-main-color);-webkit-text-fill-color:var(--nmorph-text-color)}.nmorph-text-input input:-webkit-autofill:focus{caret-color:var(--nmorph-focus-text-color);outline:none;box-shadow:var(--nmorph-shadow-outset),inset 0 0 0 1000px var(--nmorph-accent-color);-webkit-text-fill-color:var(--nmorph-focus-text-color)}.nmorph-text-input input:disabled{cursor:not-allowed;opacity:.6}.nmorph-text-input__password-btn{position:absolute;right:0;height:100%}.nmorph-text-input__password-btn.nmorph-button.nmorph-button--plain .nmorph-button__content{padding:var(--indentation-03);background:transparent;border:none;box-shadow:none}.nmorph-text-input__password-btn.nmorph-button.nmorph-button--plain .nmorph-button__content:not(:disabled,[loading=true]):hover{background:transparent;border:none;box-shadow:none}.nmorph-text-input.nmorph--thin-component .nmorph-text-input__password-btn{margin-top:var(--indentation-00)}.nmorph-text-input.nmorph--thin-component .nmorph-text-input__password-btn .nmorph-button{--nmorph-private-control-height: var(--thin-component)}.nmorph-text-input.nmorph--focused .nmorph-text-input__password-btn .nmorph-icon{--nmorph-private-icon-color: var(--nmorph-white-color)}.nmorph-text-input.nmorph--focused .nmorph-text-input__password-btn .nmorph-button:not(:disabled,[loading=true]):hover .nmorph-icon{--nmorph-private-icon-color: var(--nmorph-white-color)}
|
|
@@ -1,57 +1,56 @@
|
|
|
1
1
|
import './NmorphTextInput.css';
|
|
2
|
-
import
|
|
3
|
-
import { openBlock as t, createElementBlock as r, normalizeStyle as
|
|
2
|
+
import s from "./NmorphTextInput.vue2.js";
|
|
3
|
+
import { openBlock as t, createElementBlock as r, normalizeStyle as m, normalizeClass as c, createElementVNode as i, renderSlot as f, createCommentVNode as l, mergeProps as h, withKeys as y, createBlock as d, withModifiers as u, withCtx as a, createVNode as b, resolveDynamicComponent as _ } from "vue";
|
|
4
4
|
/* empty css */
|
|
5
|
-
import
|
|
6
|
-
const v = { class: "nmorph-text-input__input-side" },
|
|
5
|
+
import k from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
+
const v = { class: "nmorph-text-input__input-side" }, x = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "nmorph-text-input__prepend-icon"
|
|
9
9
|
}, w = ["id", "name", "autocomplete", "tabindex", "type", "placeholder", "disabled", "value"];
|
|
10
|
-
function B(p,
|
|
10
|
+
function B(p, e, N, o, C, I) {
|
|
11
11
|
return t(), r(
|
|
12
12
|
"div",
|
|
13
13
|
{
|
|
14
|
-
class: c(
|
|
15
|
-
style:
|
|
14
|
+
class: c(o.modifiers),
|
|
15
|
+
style: m(o.styles)
|
|
16
16
|
},
|
|
17
17
|
[
|
|
18
18
|
i("div", v, [
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
o.slots["prepend-icon"] ? (t(), r("div", x, [
|
|
20
|
+
f(p.$slots, "prepend-icon")
|
|
21
21
|
])) : l("v-if", !0),
|
|
22
|
-
i("input",
|
|
23
|
-
id:
|
|
22
|
+
i("input", h({
|
|
23
|
+
id: o.id,
|
|
24
24
|
ref: "inputDOMRef",
|
|
25
|
-
name:
|
|
26
|
-
autocomplete:
|
|
27
|
-
tabindex:
|
|
25
|
+
name: o.name,
|
|
26
|
+
autocomplete: o.autocomplete,
|
|
27
|
+
tabindex: o.tabindex,
|
|
28
28
|
class: "nmorph-native-input",
|
|
29
|
-
type:
|
|
30
|
-
placeholder:
|
|
31
|
-
disabled:
|
|
32
|
-
value:
|
|
33
|
-
},
|
|
34
|
-
onInput:
|
|
35
|
-
onFocus:
|
|
36
|
-
onBlur:
|
|
37
|
-
onKeydown:
|
|
38
|
-
onKeyup:
|
|
29
|
+
type: o.type,
|
|
30
|
+
placeholder: o.props.placeholder,
|
|
31
|
+
disabled: o.props.disabled,
|
|
32
|
+
value: o.modelValue
|
|
33
|
+
}, o.props.inputAttrs, {
|
|
34
|
+
onInput: o.handleInput,
|
|
35
|
+
onFocus: e[0] || (e[0] = (...n) => o.handleFocus && o.handleFocus(...n)),
|
|
36
|
+
onBlur: e[1] || (e[1] = (...n) => o.handleBlur && o.handleBlur(...n)),
|
|
37
|
+
onKeydown: e[2] || (e[2] = (n) => o.emit("keydown", n)),
|
|
38
|
+
onKeyup: e[3] || (e[3] = y((n) => o.emit("on-enter"), ["enter"]))
|
|
39
39
|
}), null, 16, w),
|
|
40
|
-
|
|
40
|
+
o.props.typePassword || o.props.clearable ? (t(), d(o.NmorphButton, {
|
|
41
41
|
key: 1,
|
|
42
|
-
disabled:
|
|
42
|
+
disabled: o.props.disabled,
|
|
43
43
|
class: "nmorph-text-input__password-btn",
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
onMousedown: o[4] || (o[4] = u(() => {
|
|
44
|
+
design: "plain",
|
|
45
|
+
thickness: o.props.thickness,
|
|
46
|
+
onMousedown: e[4] || (e[4] = u(() => {
|
|
48
47
|
}, ["prevent"])),
|
|
49
|
-
onClick:
|
|
48
|
+
onClick: o.actionButtonClickHandler
|
|
50
49
|
}, {
|
|
51
50
|
default: a(() => [
|
|
52
|
-
b(
|
|
51
|
+
b(o.NmorphIcon, null, {
|
|
53
52
|
default: a(() => [
|
|
54
|
-
(t(), d(
|
|
53
|
+
(t(), d(_(o.actionIcon)))
|
|
55
54
|
]),
|
|
56
55
|
_: 1
|
|
57
56
|
/* STABLE */
|
|
@@ -59,14 +58,14 @@ function B(p, o, N, e, C, I) {
|
|
|
59
58
|
]),
|
|
60
59
|
_: 1
|
|
61
60
|
/* STABLE */
|
|
62
|
-
}, 8, ["disabled", "
|
|
61
|
+
}, 8, ["disabled", "thickness"])) : l("v-if", !0)
|
|
63
62
|
])
|
|
64
63
|
],
|
|
65
64
|
6
|
|
66
65
|
/* CLASS, STYLE */
|
|
67
66
|
);
|
|
68
67
|
}
|
|
69
|
-
const
|
|
68
|
+
const g = /* @__PURE__ */ k(s, [["render", B], ["__file", "/builds/ketjo/nmorph/library/src/components/form/nmorph-text-input/NmorphTextInput.vue"]]);
|
|
70
69
|
export {
|
|
71
|
-
|
|
70
|
+
g as default
|
|
72
71
|
};
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import './NmorphTextInput.css';
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { useModifiers as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import A from "../../../
|
|
8
|
-
import D from "
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
|
|
2
|
+
import { defineComponent as F, useSlots as V, computed as r, ref as z } from "vue";
|
|
3
|
+
import { useModifiers as M } from "../../../utils/create-modifiers.js";
|
|
4
|
+
import { createCssVariables as E, createCssSizeVariables as O } from "../../../utils/common.js";
|
|
5
|
+
import { useFocusableInput as j } from "../../../hooks/use-focusable-input.js";
|
|
6
|
+
import { useFormItemInput as R, useFormItemModel as T } from "../nmorph-form/use-form-item-input.js";
|
|
7
|
+
import { NmorphComponentThickness as A } from "../../../types/common.types.js";
|
|
8
|
+
import D from "../../../assets/icons/eye-blocked.svg.js";
|
|
9
|
+
import H from "../../basic/nmorph-button/NmorphButton.vue.js";
|
|
10
|
+
import G from "../../basic/nmorph-icon/NmorphIcon.vue.js";
|
|
11
|
+
import J from "../../../assets/icons/error.svg.js";
|
|
12
|
+
import K from "../../../assets/icons/eye.svg.js";
|
|
13
|
+
const oe = /* @__PURE__ */ F({
|
|
13
14
|
__name: "NmorphTextInput",
|
|
14
15
|
props: {
|
|
15
16
|
placeholder: { type: String, required: !1, default: "" },
|
|
@@ -17,51 +18,63 @@ const ee = /* @__PURE__ */ k({
|
|
|
17
18
|
modelValue: { type: String, required: !1, default: "" },
|
|
18
19
|
clearable: { type: Boolean, required: !1, default: !1 },
|
|
19
20
|
indentation: { type: String, required: !1, default: "" },
|
|
21
|
+
prependIconIndent: { type: [Number, String], required: !1, default: void 0 },
|
|
22
|
+
prependIconSize: { type: [Number, String], required: !1, default: void 0 },
|
|
23
|
+
prependIconColor: { type: String, required: !1, default: void 0 },
|
|
20
24
|
inputAttrs: { type: Object, required: !1, default: () => ({}) },
|
|
21
25
|
id: { type: String, required: !1 },
|
|
22
26
|
name: { type: String, required: !1 },
|
|
23
27
|
autocomplete: { type: String, required: !1 },
|
|
24
|
-
|
|
28
|
+
thickness: { type: null, required: !1, default: "basic" },
|
|
25
29
|
disabled: { type: Boolean, required: !1, default: !1 },
|
|
26
30
|
tabindex: { type: Number, required: !1 }
|
|
27
31
|
},
|
|
28
32
|
emits: ["update:model-value", "focus", "blur", "on-enter", "keydown"],
|
|
29
|
-
setup(f, { expose:
|
|
30
|
-
const
|
|
33
|
+
setup(f, { expose: y, emit: h }) {
|
|
34
|
+
const p = V(), e = f, o = h, { id: b, name: I, autocomplete: v, tabindex: q } = R(e), { modelValue: S, updateModelValue: n } = T(
|
|
31
35
|
e,
|
|
32
|
-
(a) =>
|
|
36
|
+
(a) => o("update:model-value", a),
|
|
33
37
|
""
|
|
34
|
-
),
|
|
35
|
-
() =>
|
|
36
|
-
nmorph: [
|
|
38
|
+
), g = r(
|
|
39
|
+
() => M({
|
|
40
|
+
nmorph: [A[e.thickness], i.value && "focused"],
|
|
37
41
|
"nmorph-text-input": [e.typePassword && "password", (e.typePassword || e.clearable) && "with-action"]
|
|
38
42
|
})
|
|
39
43
|
), x = (a) => {
|
|
40
|
-
const
|
|
41
|
-
n(
|
|
42
|
-
}, t =
|
|
44
|
+
const P = a.target;
|
|
45
|
+
n(P.value);
|
|
46
|
+
}, t = z(!1), N = () => {
|
|
43
47
|
e.clearable ? n("") : t.value = !t.value;
|
|
44
|
-
},
|
|
48
|
+
}, w = r(() => e.typePassword && !t.value && !e.clearable ? "password" : "text"), {
|
|
45
49
|
elementRef: s,
|
|
46
|
-
focused:
|
|
47
|
-
handleFocus:
|
|
48
|
-
handleBlur:
|
|
49
|
-
focus:
|
|
50
|
-
blur:
|
|
50
|
+
focused: i,
|
|
51
|
+
handleFocus: _,
|
|
52
|
+
handleBlur: B,
|
|
53
|
+
focus: l,
|
|
54
|
+
blur: u,
|
|
51
55
|
select: d
|
|
52
|
-
} =
|
|
53
|
-
onFocus: () =>
|
|
54
|
-
onBlur: () =>
|
|
56
|
+
} = j({
|
|
57
|
+
onFocus: () => o("focus"),
|
|
58
|
+
onBlur: () => o("blur")
|
|
55
59
|
});
|
|
56
|
-
|
|
57
|
-
const
|
|
58
|
-
|
|
60
|
+
y({ inputDOMRef: s, focus: l, blur: u, select: d });
|
|
61
|
+
const C = r(() => e.clearable ? J : t.value ? D : K), c = r(() => e.indentation || (p["prepend-icon"] ? "28px" : "8px")), k = r(() => ({
|
|
62
|
+
"--nmorph-private-text-input-indentation": c.value,
|
|
63
|
+
...O({
|
|
64
|
+
"--nmorph-private-text-input-prepend-icon-indent": e.prependIconIndent,
|
|
65
|
+
"--nmorph-private-text-input-prepend-icon-size": e.prependIconSize
|
|
66
|
+
}),
|
|
67
|
+
...E({
|
|
68
|
+
"--nmorph-private-text-input-prepend-icon-color": e.prependIconColor
|
|
69
|
+
})
|
|
70
|
+
})), m = { slots: p, props: e, emit: o, id: b, name: I, autocomplete: v, tabindex: q, modelValue: S, updateModelValue: n, modifiers: g, handleInput: x, showPassword: t, actionButtonClickHandler: N, type: w, inputDOMRef: s, focused: i, handleFocus: _, handleBlur: B, focus: l, blur: u, select: d, actionIcon: C, indentation: c, styles: k, get NmorphIcon() {
|
|
71
|
+
return G;
|
|
59
72
|
}, get NmorphButton() {
|
|
60
|
-
return
|
|
73
|
+
return H;
|
|
61
74
|
} };
|
|
62
|
-
return Object.defineProperty(
|
|
75
|
+
return Object.defineProperty(m, "__isScriptSetup", { enumerable: !1, value: !0 }), m;
|
|
63
76
|
}
|
|
64
77
|
});
|
|
65
78
|
export {
|
|
66
|
-
|
|
79
|
+
oe as default
|
|
67
80
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.nmorph-textarea{height:auto}.nmorph-textarea textarea{display:block;box-sizing:border-box;width:100%;min-width:0;padding:var(--indentation-03) var(--indentation-03) var(--indentation-03) var(--nmorph-textarea-indentation);color:var(--nmorph-text-color);font:inherit;line-height:var(--line-height-regular);background:var(--nmorph-main-color);border:none;border-radius:var(--default-border-radius);box-shadow:var(--nmorph-shadow-inset);transition:background var(--transition-02) ease,box-shadow var(--transition-02) ease,color var(--transition-02) ease;resize:var(--nmorph-textarea-resize)}.nmorph-textarea textarea:focus{color:var(--nmorph-focus-text-color);background:var(--nmorph-accent-color);outline:none;box-shadow:var(--nmorph-shadow-outset)}.nmorph-textarea textarea:disabled{cursor:not-allowed;opacity:.6;resize:none}.nmorph-textarea.nmorph-textarea--auto-size textarea{overflow-y:hidden}
|
|
1
|
+
.nmorph-textarea{height:auto}.nmorph-textarea textarea{display:block;box-sizing:border-box;width:100%;min-width:0;padding:var(--indentation-03) var(--indentation-03) var(--indentation-03) var(--nmorph-private-textarea-indentation);color:var(--nmorph-text-color);font:inherit;line-height:var(--line-height-regular);background:var(--nmorph-main-color);border:none;border-radius:var(--default-border-radius);box-shadow:var(--nmorph-shadow-inset);transition:background var(--transition-02) ease,box-shadow var(--transition-02) ease,color var(--transition-02) ease;resize:var(--nmorph-private-textarea-resize)}.nmorph-textarea textarea:focus{color:var(--nmorph-focus-text-color);background:var(--nmorph-accent-color);outline:none;box-shadow:var(--nmorph-shadow-outset)}.nmorph-textarea textarea:disabled{cursor:not-allowed;opacity:.6;resize:none}.nmorph-textarea.nmorph-textarea--auto-size textarea{overflow-y:hidden}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import './NmorphTextarea.css';
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { useModifiers as
|
|
4
|
-
import { useFocusableInput as
|
|
5
|
-
import { useFormItemInput as
|
|
6
|
-
import {
|
|
7
|
-
const J = /* @__PURE__ */
|
|
2
|
+
import { defineComponent as k, computed as n, watch as B, onMounted as C, nextTick as T } from "vue";
|
|
3
|
+
import { useModifiers as V } from "../../../utils/create-modifiers.js";
|
|
4
|
+
import { useFocusableInput as O } from "../../../hooks/use-focusable-input.js";
|
|
5
|
+
import { useFormItemInput as j, useFormItemModel as P } from "../nmorph-form/use-form-item-input.js";
|
|
6
|
+
import { NmorphComponentThickness as A } from "../../../types/common.types.js";
|
|
7
|
+
const J = /* @__PURE__ */ k({
|
|
8
8
|
__name: "NmorphTextarea",
|
|
9
9
|
props: {
|
|
10
10
|
placeholder: { type: String, required: !1, default: "" },
|
|
@@ -19,30 +19,30 @@ const J = /* @__PURE__ */ B({
|
|
|
19
19
|
id: { type: String, required: !1 },
|
|
20
20
|
name: { type: String, required: !1 },
|
|
21
21
|
autocomplete: { type: String, required: !1 },
|
|
22
|
-
|
|
22
|
+
thickness: { type: null, required: !1, default: "basic" },
|
|
23
23
|
disabled: { type: Boolean, required: !1, default: !1 },
|
|
24
24
|
tabindex: { type: Number, required: !1 }
|
|
25
25
|
},
|
|
26
26
|
emits: ["update:model-value", "focus", "blur", "on-enter", "keydown"],
|
|
27
27
|
setup(g, { expose: x, emit: b }) {
|
|
28
|
-
const e = g, r = b, { id: w, name: q, autocomplete: S, tabindex: v } =
|
|
28
|
+
const e = g, r = b, { id: w, name: q, autocomplete: S, tabindex: v } = j(e), { modelValue: i, updateModelValue: l } = P(
|
|
29
29
|
e,
|
|
30
30
|
(t) => r("update:model-value", t),
|
|
31
31
|
""
|
|
32
32
|
), {
|
|
33
|
-
elementRef:
|
|
33
|
+
elementRef: s,
|
|
34
34
|
focused: u,
|
|
35
35
|
handleFocus: _,
|
|
36
36
|
handleBlur: z,
|
|
37
37
|
focus: d,
|
|
38
38
|
blur: p,
|
|
39
39
|
select: m
|
|
40
|
-
} =
|
|
40
|
+
} = O({
|
|
41
41
|
onFocus: () => r("focus"),
|
|
42
42
|
onBlur: () => r("blur")
|
|
43
43
|
}), F = n(
|
|
44
|
-
() =>
|
|
45
|
-
nmorph: [A[e.
|
|
44
|
+
() => V({
|
|
45
|
+
nmorph: [A[e.thickness], u.value && "focused"],
|
|
46
46
|
"nmorph-textarea": [e.disabled && "disabled", e.autoSize && "auto-size"]
|
|
47
47
|
})
|
|
48
48
|
), f = (t) => {
|
|
@@ -50,8 +50,8 @@ const J = /* @__PURE__ */ B({
|
|
|
50
50
|
return parseFloat(o.paddingTop) + parseFloat(o.paddingBottom);
|
|
51
51
|
}, a = async () => {
|
|
52
52
|
if (!e.autoSize) return;
|
|
53
|
-
await
|
|
54
|
-
const t =
|
|
53
|
+
await T();
|
|
54
|
+
const t = s.value;
|
|
55
55
|
if (!t) return;
|
|
56
56
|
t.style.height = "auto";
|
|
57
57
|
const o = window.getComputedStyle(t), I = parseFloat(o.lineHeight) || 20, y = e.maxRows ? e.maxRows * I + f(t) : 1 / 0, N = Math.min(t.scrollHeight, y);
|
|
@@ -60,11 +60,11 @@ const J = /* @__PURE__ */ B({
|
|
|
60
60
|
const o = t.target;
|
|
61
61
|
l(o.value), a();
|
|
62
62
|
};
|
|
63
|
-
|
|
63
|
+
B(i, a), C(a), x({ textareaDOMRef: s, focus: d, blur: p, select: m, resizeToContent: a });
|
|
64
64
|
const c = n(() => Math.max(e.minRows, 1)), R = n(() => Math.max(e.rows, c.value)), H = n(() => ({
|
|
65
|
-
"--nmorph-textarea-resize": e.autoSize ? "none" : e.resize,
|
|
66
|
-
"--nmorph-textarea-indentation": e.indentation
|
|
67
|
-
})), h = { props: e, emit: r, id: w, name: q, autocomplete: S, tabindex: v, modelValue:
|
|
65
|
+
"--nmorph-private-textarea-resize": e.autoSize ? "none" : e.resize,
|
|
66
|
+
"--nmorph-private-textarea-indentation": e.indentation
|
|
67
|
+
})), h = { props: e, emit: r, id: w, name: q, autocomplete: S, tabindex: v, modelValue: i, updateModelValue: l, textareaDOMRef: s, focused: u, handleFocus: _, handleBlur: z, focus: d, blur: p, select: m, modifiers: F, getVerticalPadding: f, resizeToContent: a, handleInput: M, minRows: c, rows: R, styles: H };
|
|
68
68
|
return Object.defineProperty(h, "__isScriptSetup", { enumerable: !1, value: !0 }), h;
|
|
69
69
|
}
|
|
70
70
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.nmorph-time-picker{--width: 160px;position:relative;width:var(--width);height:var(--height)}.nmorph-time-picker .nmorph-time-picker__input{display:flex;align-items:center;height:100%;padding:0 var(--default-indentation-input);overflow:hidden;background:var(--nmorph-main-color);border-radius:var(--default-border-radius);box-shadow:var(--nmorph-shadow-outset);cursor:pointer}.nmorph-time-picker .nmorph-time-picker__native{position:absolute;width:0;height:0;padding:0;border:0;opacity:0;pointer-events:none}.nmorph-time-picker .nmorph-time-picker__clock-icon{flex:0 0 auto;margin-right:6px}.nmorph-time-picker .nmorph-time-picker__selected-value{flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.nmorph-time-picker .nmorph-time-picker__clear{display:inline-flex;flex:0 0 auto;justify-content:center;align-items:center;width:18px;height:18px;padding:0;color:var(--nmorph-text-color);background:transparent;border:0;cursor:pointer}.nmorph-time-picker .nmorph-time-picker__panel{display:grid;grid-template-columns:minmax(
|
|
1
|
+
.nmorph-time-picker{--nmorph-private-time-picker-width: 160px;position:relative;width:var(--nmorph-private-time-picker-width);height:var(--nmorph-private-control-height)}.nmorph-time-picker .nmorph-time-picker__input{display:flex;align-items:center;height:100%;padding:0 var(--default-indentation-input);overflow:hidden;background:var(--nmorph-main-color);border-radius:var(--default-border-radius);box-shadow:var(--nmorph-shadow-outset);cursor:pointer}.nmorph-time-picker .nmorph-time-picker__native{position:absolute;width:0;height:0;padding:0;border:0;opacity:0;pointer-events:none}.nmorph-time-picker .nmorph-time-picker__clock-icon{flex:0 0 auto;margin-right:6px}.nmorph-time-picker .nmorph-time-picker__selected-value{flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transform:translateY(var(--nmorph-private-control-text-offset-y))}.nmorph-time-picker .nmorph-time-picker__clear{display:inline-flex;flex:0 0 auto;justify-content:center;align-items:center;width:18px;height:18px;padding:0;color:var(--nmorph-text-color);background:transparent;border:0;cursor:pointer}.nmorph-time-picker .nmorph-time-picker__panel{display:grid;grid-template-columns:minmax(64px,1fr) 8px minmax(64px,1fr);gap:8px;align-items:start;box-sizing:border-box;width:100%;padding:10px;color:var(--nmorph-text-color)}.nmorph-time-picker .nmorph-time-picker__panel--with-seconds{grid-template-columns:minmax(64px,1fr) 8px minmax(64px,1fr) 8px minmax(64px,1fr)}.nmorph-time-picker .nmorph-time-picker__column{display:grid;grid-auto-flow:row;grid-auto-rows:var(--nmorph-private-control-height);grid-template-columns:minmax(0,1fr);gap:6px;align-content:start;max-height:210px;padding:4px;overflow:hidden auto;background:color-mix(in srgb,var(--nmorph-text-color) 4%,transparent);border-radius:var(--default-border-radius);scrollbar-gutter:stable}.nmorph-time-picker .nmorph-time-picker__separator{display:flex;justify-content:center;align-items:flex-start;min-width:8px;padding-top:calc((var(--nmorph-private-control-height) - 1em) / 2 + 2px);color:var(--nmorph-semi-contrast-text-color);font-weight:var(--font-weight-bold);line-height:1}.nmorph-time-picker .nmorph-time-picker__option{display:flex;justify-content:center;align-items:center;box-sizing:border-box;width:100%;min-width:0;min-height:var(--nmorph-private-control-height);margin:0;padding:0 8px;color:var(--nmorph-text-color);font:inherit;line-height:1;background:var(--nmorph-main-color);border:0;border-radius:4px;box-shadow:var(--nmorph-shadow-outset);cursor:pointer;appearance:none}.nmorph-time-picker .nmorph-time-picker__option:hover:not(:disabled),.nmorph-time-picker .nmorph-time-picker__option--active{color:var(--nmorph-focus-text-color);background:var(--nmorph-accent-color);box-shadow:var(--nmorph-shadow-inset)}.nmorph-time-picker .nmorph-time-picker__option:focus-visible{outline:2px solid var(--nmorph-accent-color);outline-offset:1px}.nmorph-time-picker .nmorph-time-picker__option:disabled{cursor:not-allowed;opacity:.35}.nmorph-time-picker.nmorph-time-picker--open .nmorph-time-picker__input{box-shadow:var(--nmorph-shadow-inset)}.nmorph-time-picker.nmorph-time-picker--focus{outline:2px solid var(--nmorph-accent-color)}.nmorph-time-picker.nmorph-time-picker--placeholder .nmorph-time-picker__selected-value{color:var(--nmorph-placeholder-text-color)}.nmorph-time-picker.nmorph-time-picker--disabled{cursor:not-allowed;opacity:.6}.nmorph-time-picker.nmorph-time-picker--disabled .nmorph-time-picker__input{pointer-events:none}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import './NmorphTimePicker.css';
|
|
2
|
-
import { defineComponent as te, ref as
|
|
3
|
-
import { useI18n as
|
|
4
|
-
import { useModifiers as
|
|
2
|
+
import { defineComponent as te, ref as V, computed as n, watch as re } from "vue";
|
|
3
|
+
import { useI18n as oe } from "vue-i18n";
|
|
4
|
+
import { useModifiers as _ } from "../../../utils/create-modifiers.js";
|
|
5
5
|
import { createCssSizeVariables as ne } from "../../../utils/common.js";
|
|
6
6
|
import { useFocusableInput as ue } from "../../../hooks/use-focusable-input.js";
|
|
7
7
|
import { useFormItemInput as le, useFormItemModel as se } from "../nmorph-form/use-form-item-input.js";
|
|
8
|
-
import {
|
|
8
|
+
import { NmorphComponentThickness as O } from "../../../types/common.types.js";
|
|
9
9
|
import ae from "../../../assets/icons/clock.svg.js";
|
|
10
10
|
import ie from "../../../assets/icons/circle-close.svg.js";
|
|
11
11
|
import de from "../../basic/nmorph-icon/NmorphIcon.vue.js";
|
|
12
12
|
import ce from "../../navigation/nmorph-dropdown/NmorphDropdown.vue.js";
|
|
13
|
-
const
|
|
13
|
+
const Te = /* @__PURE__ */ te({
|
|
14
14
|
__name: "NmorphTimePicker",
|
|
15
15
|
props: {
|
|
16
16
|
modelValue: { type: [String, null], required: !1, default: null },
|
|
@@ -27,19 +27,19 @@ const Ie = /* @__PURE__ */ te({
|
|
|
27
27
|
id: { type: String, required: !1 },
|
|
28
28
|
name: { type: String, required: !1 },
|
|
29
29
|
autocomplete: { type: String, required: !1 },
|
|
30
|
-
|
|
30
|
+
thickness: { type: null, required: !1, default: "basic" },
|
|
31
31
|
disabled: { type: Boolean, required: !1, default: !1 },
|
|
32
32
|
tabindex: { type: Number, required: !1 }
|
|
33
33
|
},
|
|
34
34
|
emits: ["update:model-value", "focus", "blur"],
|
|
35
|
-
setup(
|
|
36
|
-
const t =
|
|
35
|
+
setup(B, { expose: M, emit: F }) {
|
|
36
|
+
const t = B, m = F, { t: T } = oe(), { id: H, name: P, autocomplete: $, tabindex: z } = le(t), { modelValue: s, updateModelValue: p } = se(
|
|
37
37
|
t,
|
|
38
38
|
(e) => m("update:model-value", e),
|
|
39
39
|
null
|
|
40
|
-
), a =
|
|
41
|
-
elementRef:
|
|
42
|
-
focused:
|
|
40
|
+
), a = V(!1), {
|
|
41
|
+
elementRef: I,
|
|
42
|
+
focused: k,
|
|
43
43
|
handleFocus: D,
|
|
44
44
|
handleBlur: R
|
|
45
45
|
} = ue({
|
|
@@ -47,25 +47,25 @@ const Ie = /* @__PURE__ */ te({
|
|
|
47
47
|
onBlur: () => m("blur")
|
|
48
48
|
}), c = (e) => String(e).padStart(2, "0"), f = (e) => Math.max(1, Math.floor(Number.isFinite(e) ? e : 1)), i = (e) => {
|
|
49
49
|
if (!e) return null;
|
|
50
|
-
const
|
|
51
|
-
if (!
|
|
52
|
-
const
|
|
53
|
-
return
|
|
54
|
-
},
|
|
55
|
-
const
|
|
56
|
-
return t.showSeconds ? `${
|
|
57
|
-
}, h = (e) => e.hour * 3600 + e.minute * 60 + e.second,
|
|
58
|
-
|
|
59
|
-
const
|
|
60
|
-
|
|
50
|
+
const r = e.match(/^(\d{1,2}):(\d{2})(?::(\d{2}))?$/);
|
|
51
|
+
if (!r) return null;
|
|
52
|
+
const o = Number(r[1]), v = Number(r[2]), d = Number(r[3] || 0);
|
|
53
|
+
return o > 23 || v > 59 || d > 59 ? null : { hour: o, minute: v, second: d };
|
|
54
|
+
}, y = (e) => {
|
|
55
|
+
const r = `${c(e.hour)}:${c(e.minute)}`;
|
|
56
|
+
return t.showSeconds ? `${r}:${c(e.second)}` : r;
|
|
57
|
+
}, h = (e) => e.hour * 3600 + e.minute * 60 + e.second, g = n(() => i(t.minTime)), N = n(() => i(t.maxTime)), w = n(() => i(s.value)), l = V(w.value || { hour: 0, minute: 0, second: 0 }), x = n(() => t.placeholder || T("pickATime"));
|
|
58
|
+
re(s, (e) => {
|
|
59
|
+
const r = i(e);
|
|
60
|
+
r && (l.value = r);
|
|
61
61
|
});
|
|
62
62
|
const b = (e) => {
|
|
63
|
-
const
|
|
64
|
-
return !!(
|
|
65
|
-
}, S = (e,
|
|
66
|
-
const v = f(
|
|
67
|
-
for (let u = 0; u <=
|
|
68
|
-
return d.add(l.value[e]), Array.from(d).filter((u) => u >= 0 && u <=
|
|
63
|
+
const r = h(e);
|
|
64
|
+
return !!(g.value && r < h(g.value) || N.value && r > h(N.value));
|
|
65
|
+
}, S = (e, r, o) => {
|
|
66
|
+
const v = f(o), d = /* @__PURE__ */ new Set();
|
|
67
|
+
for (let u = 0; u <= r; u += v) d.add(u);
|
|
68
|
+
return d.add(l.value[e]), Array.from(d).filter((u) => u >= 0 && u <= r).sort((u, q) => u - q).map((u) => {
|
|
69
69
|
const q = { ...l.value, [e]: u };
|
|
70
70
|
return {
|
|
71
71
|
label: c(u),
|
|
@@ -73,9 +73,9 @@ const Ie = /* @__PURE__ */ te({
|
|
|
73
73
|
disabled: b(q)
|
|
74
74
|
};
|
|
75
75
|
});
|
|
76
|
-
}, A = n(() => S("hour", 23, t.hourStep)), U = n(() => S("minute", 59, t.minuteStep)), j = n(() => S("second", 59, t.secondStep)), E = (e,
|
|
77
|
-
const
|
|
78
|
-
b(
|
|
76
|
+
}, A = n(() => S("hour", 23, t.hourStep)), U = n(() => S("minute", 59, t.minuteStep)), j = n(() => S("second", 59, t.secondStep)), E = (e, r) => {
|
|
77
|
+
const o = { ...l.value, [e]: r };
|
|
78
|
+
b(o) || (l.value = o, p(y(o)));
|
|
79
79
|
}, G = () => {
|
|
80
80
|
p(null), a.value = !1;
|
|
81
81
|
}, J = () => {
|
|
@@ -83,31 +83,31 @@ const Ie = /* @__PURE__ */ te({
|
|
|
83
83
|
}, K = () => {
|
|
84
84
|
t.disabled || (a.value = !a.value);
|
|
85
85
|
}, L = (e) => {
|
|
86
|
-
const
|
|
87
|
-
!
|
|
88
|
-
}, Q = n(() => s.value ||
|
|
86
|
+
const r = e.target, o = i(r.value);
|
|
87
|
+
!o || b(o) || (l.value = o, p(y(o)));
|
|
88
|
+
}, Q = n(() => s.value || x.value), W = n(
|
|
89
89
|
() => t.showSeconds ? f(t.secondStep) : f(t.minuteStep) * 60
|
|
90
90
|
), X = n(() => t.clearable && !!s.value && !t.disabled), Y = n(
|
|
91
|
-
() =>
|
|
92
|
-
nmorph: [
|
|
91
|
+
() => _({
|
|
92
|
+
nmorph: [O[t.thickness]],
|
|
93
93
|
"nmorph-time-picker": [
|
|
94
94
|
t.disabled && "disabled",
|
|
95
95
|
a.value && "open",
|
|
96
|
-
|
|
96
|
+
k.value && "focus",
|
|
97
97
|
!s.value && "placeholder"
|
|
98
98
|
]
|
|
99
99
|
})
|
|
100
100
|
), Z = n(
|
|
101
|
-
() =>
|
|
102
|
-
nmorph: [
|
|
101
|
+
() => _({
|
|
102
|
+
nmorph: [O[t.thickness]]
|
|
103
103
|
})
|
|
104
104
|
), ee = n(
|
|
105
105
|
() => ne({
|
|
106
|
-
"--width": t.width
|
|
106
|
+
"--nmorph-private-time-picker-width": t.width
|
|
107
107
|
})
|
|
108
108
|
);
|
|
109
|
-
M({ inputDOMRef:
|
|
110
|
-
const
|
|
109
|
+
M({ inputDOMRef: I });
|
|
110
|
+
const C = { props: t, emit: m, t: T, id: H, name: P, autocomplete: $, tabindex: z, modelValue: s, updateModelValue: p, open: a, inputDOMRef: I, focused: k, focusHandler: D, blurHandler: R, pad: c, normalizeStep: f, parseTime: i, formatTime: y, timeToSeconds: h, minTimeParts: g, maxTimeParts: N, modelTimeParts: w, pickerValue: l, placeholderText: x, isOutsideRange: b, getUnitOptions: S, hourOptions: A, minuteOptions: U, secondOptions: j, selectUnit: E, clearHandler: G, closeHandler: J, toggleOpen: K, nativeInputHandler: L, displayValue: Q, inputStep: W, showClearButton: X, modifiers: Y, optionHeightModifiers: Z, styles: ee, get NmorphDropdown() {
|
|
111
111
|
return ce;
|
|
112
112
|
}, get NmorphIcon() {
|
|
113
113
|
return de;
|
|
@@ -116,9 +116,9 @@ const Ie = /* @__PURE__ */ te({
|
|
|
116
116
|
}, get NmorphIconClock() {
|
|
117
117
|
return ae;
|
|
118
118
|
} };
|
|
119
|
-
return Object.defineProperty(
|
|
119
|
+
return Object.defineProperty(C, "__isScriptSetup", { enumerable: !1, value: !0 }), C;
|
|
120
120
|
}
|
|
121
121
|
});
|
|
122
122
|
export {
|
|
123
|
-
|
|
123
|
+
Te as default
|
|
124
124
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.nmorph-backtop{position:fixed;right:var(--nmorph-backtop-right);bottom:calc(var(--nmorph-backtop-bottom) + env(safe-area-inset-bottom,0px));z-index:var(--nmorph-backtop-z-index);opacity:0;transition:opacity .2s ease-in-out;pointer-events:none}.nmorph-backtop .nmorph-backtop__up-icon{transform:rotate(180deg)}.nmorph-backtop.nmorph-backtop--show{opacity:1;pointer-events:auto}.nmorph-backtop.nmorph-backtop--
|
|
1
|
+
.nmorph-backtop{position:fixed;right:var(--nmorph-private-backtop-right);bottom:calc(var(--nmorph-private-backtop-bottom) + env(safe-area-inset-bottom,0px));z-index:var(--nmorph-private-backtop-z-index);opacity:0;transition:opacity .2s ease-in-out;pointer-events:none}.nmorph-backtop .nmorph-backtop__up-icon{transform:rotate(180deg)}.nmorph-backtop.nmorph-backtop--show{opacity:1;pointer-events:auto}.nmorph-backtop.nmorph-backtop--plain .nmorph-button{background:var(--nmorph-overlay-color);border-radius:4px}.nmorph-backtop.nmorph-backtop--plain .nmorph-button.nmorph-button--plain .nmorph-button__content,.nmorph-backtop.nmorph-backtop--plain .nmorph-button.nmorph-button--plain .nmorph-button__content:not(:disabled,[loading=true]):hover{border:0}
|