@nmorph/nmorph-ui-kit 2.2.59 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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/pagination.svg.js +18 -5
- package/dist/assets/icons/speaker-off.svg.js +28 -0
- 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 +20 -20
- 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 +405 -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 +21 -21
- package/dist/components/data/nmorph-media-tile/NmorphMediaTile.vue2.js +9 -8
- 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 -23
- 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 +405 -395
- package/dist/index.es.js +854 -840
- package/dist/index.umd.js +245 -75
- 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 +2 -2
- package/dist/src/components/basic/nmorph-button/types.d.ts +17 -19
- package/dist/src/components/basic/nmorph-icon/NmorphIcon.vue.d.ts +1 -1
- package/dist/src/components/basic/nmorph-icon/NmorphIcons.d.ts +5 -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 +1 -0
- package/dist/src/components/data/nmorph-media-tile/types.d.ts +1 -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 -1
- 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 -0
- 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,41 +1,41 @@
|
|
|
1
1
|
import './NmorphNumberInput.css';
|
|
2
|
-
import
|
|
3
|
-
import { openBlock as
|
|
2
|
+
import r from "./NmorphNumberInput.vue2.js";
|
|
3
|
+
import { openBlock as t, createElementBlock as c, normalizeStyle as h, normalizeClass as d, createElementVNode as e, createVNode as i, withCtx as o, createCommentVNode as m } from "vue";
|
|
4
4
|
/* empty css */
|
|
5
|
-
import
|
|
6
|
-
const
|
|
5
|
+
import s from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
+
const l = { class: "nmorph-number-input__content" }, _ = { class: "nmorph-number-input__input-content" }, p = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "nmorph-number-input__decrease"
|
|
9
|
-
},
|
|
9
|
+
}, b = ["id", "name", "autocomplete", "tabindex", "value", "min", "max"], u = {
|
|
10
10
|
key: 1,
|
|
11
11
|
class: "nmorph-number-input__increase"
|
|
12
|
-
},
|
|
12
|
+
}, f = {
|
|
13
13
|
key: 2,
|
|
14
14
|
class: "nmorph-number-input__action-btns"
|
|
15
|
-
},
|
|
16
|
-
function I(N,
|
|
17
|
-
return
|
|
15
|
+
}, k = { class: "nmorph-number-input__increase" }, B = { class: "nmorph-number-input__decrease" };
|
|
16
|
+
function I(N, g, a, n, v, x) {
|
|
17
|
+
return t(), c(
|
|
18
18
|
"div",
|
|
19
19
|
{
|
|
20
20
|
class: d(n.modifiers),
|
|
21
|
-
style:
|
|
21
|
+
style: h({ "--nmorph-private-number-input-right-action-height": n.rightActionBtnHeight })
|
|
22
22
|
},
|
|
23
23
|
[
|
|
24
|
-
e("div",
|
|
25
|
-
e("div",
|
|
26
|
-
|
|
24
|
+
e("div", l, [
|
|
25
|
+
e("div", _, [
|
|
26
|
+
a.actionBtnPositionRight ? m("v-if", !0) : (t(), c("div", p, [
|
|
27
27
|
i(n.NmorphButton, {
|
|
28
|
-
|
|
28
|
+
design: "plain",
|
|
29
29
|
disabled: n.minBtnDisabled,
|
|
30
|
-
|
|
30
|
+
thickness: n.props.thickness,
|
|
31
31
|
onClick: n.decreaseHandler
|
|
32
32
|
}, {
|
|
33
|
-
default:
|
|
33
|
+
default: o(() => [
|
|
34
34
|
i(n.NmorphIcon, {
|
|
35
35
|
width: n.actionBtnIconSize,
|
|
36
36
|
height: n.actionBtnIconSize
|
|
37
37
|
}, {
|
|
38
|
-
default:
|
|
38
|
+
default: o(() => [
|
|
39
39
|
i(n.NmorphIconMinusThin)
|
|
40
40
|
]),
|
|
41
41
|
_: 1
|
|
@@ -44,7 +44,7 @@ function I(N, y, r, n, v, x) {
|
|
|
44
44
|
]),
|
|
45
45
|
_: 1
|
|
46
46
|
/* STABLE */
|
|
47
|
-
}, 8, ["disabled", "
|
|
47
|
+
}, 8, ["disabled", "thickness"])
|
|
48
48
|
])),
|
|
49
49
|
e("input", {
|
|
50
50
|
id: n.id,
|
|
@@ -58,20 +58,22 @@ function I(N, y, r, n, v, x) {
|
|
|
58
58
|
min: n.props.min,
|
|
59
59
|
max: n.props.max,
|
|
60
60
|
onInput: n.inputHandler
|
|
61
|
-
}, null, 40,
|
|
62
|
-
|
|
63
|
-
e("div",
|
|
61
|
+
}, null, 40, b),
|
|
62
|
+
a.actionBtnPositionRight ? (t(), c("div", f, [
|
|
63
|
+
e("div", k, [
|
|
64
64
|
i(n.NmorphButton, {
|
|
65
|
-
|
|
65
|
+
design: "plain",
|
|
66
66
|
disabled: n.maxBtnDisabled,
|
|
67
|
+
thickness: n.props.thickness,
|
|
67
68
|
onClick: n.increaseHandler
|
|
68
69
|
}, {
|
|
69
|
-
default:
|
|
70
|
+
default: o(() => [
|
|
70
71
|
i(n.NmorphIcon, {
|
|
72
|
+
class: "nmorph-number-input__plus-icon",
|
|
71
73
|
width: n.actionBtnIconSize,
|
|
72
74
|
height: n.actionBtnIconSize
|
|
73
75
|
}, {
|
|
74
|
-
default:
|
|
76
|
+
default: o(() => [
|
|
75
77
|
i(n.NmorphIconPlusThin)
|
|
76
78
|
]),
|
|
77
79
|
_: 1
|
|
@@ -80,20 +82,21 @@ function I(N, y, r, n, v, x) {
|
|
|
80
82
|
]),
|
|
81
83
|
_: 1
|
|
82
84
|
/* STABLE */
|
|
83
|
-
}, 8, ["disabled"])
|
|
85
|
+
}, 8, ["disabled", "thickness"])
|
|
84
86
|
]),
|
|
85
|
-
e("div",
|
|
87
|
+
e("div", B, [
|
|
86
88
|
i(n.NmorphButton, {
|
|
87
|
-
|
|
89
|
+
design: "plain",
|
|
88
90
|
disabled: n.minBtnDisabled,
|
|
91
|
+
thickness: n.props.thickness,
|
|
89
92
|
onClick: n.decreaseHandler
|
|
90
93
|
}, {
|
|
91
|
-
default:
|
|
94
|
+
default: o(() => [
|
|
92
95
|
i(n.NmorphIcon, {
|
|
93
96
|
width: n.actionBtnIconSize,
|
|
94
97
|
height: n.actionBtnIconSize
|
|
95
98
|
}, {
|
|
96
|
-
default:
|
|
99
|
+
default: o(() => [
|
|
97
100
|
i(n.NmorphIconMinusThin)
|
|
98
101
|
]),
|
|
99
102
|
_: 1
|
|
@@ -102,21 +105,22 @@ function I(N, y, r, n, v, x) {
|
|
|
102
105
|
]),
|
|
103
106
|
_: 1
|
|
104
107
|
/* STABLE */
|
|
105
|
-
}, 8, ["disabled"])
|
|
108
|
+
}, 8, ["disabled", "thickness"])
|
|
106
109
|
])
|
|
107
|
-
])) : (
|
|
110
|
+
])) : (t(), c("div", u, [
|
|
108
111
|
i(n.NmorphButton, {
|
|
109
|
-
|
|
112
|
+
design: "plain",
|
|
110
113
|
disabled: n.maxBtnDisabled,
|
|
111
|
-
|
|
114
|
+
thickness: n.props.thickness,
|
|
112
115
|
onClick: n.increaseHandler
|
|
113
116
|
}, {
|
|
114
|
-
default:
|
|
117
|
+
default: o(() => [
|
|
115
118
|
i(n.NmorphIcon, {
|
|
119
|
+
class: "nmorph-number-input__plus-icon",
|
|
116
120
|
width: n.actionBtnIconSize,
|
|
117
121
|
height: n.actionBtnIconSize
|
|
118
122
|
}, {
|
|
119
|
-
default:
|
|
123
|
+
default: o(() => [
|
|
120
124
|
i(n.NmorphIconPlusThin)
|
|
121
125
|
]),
|
|
122
126
|
_: 1
|
|
@@ -125,7 +129,7 @@ function I(N, y, r, n, v, x) {
|
|
|
125
129
|
]),
|
|
126
130
|
_: 1
|
|
127
131
|
/* STABLE */
|
|
128
|
-
}, 8, ["disabled", "
|
|
132
|
+
}, 8, ["disabled", "thickness"])
|
|
129
133
|
]))
|
|
130
134
|
])
|
|
131
135
|
])
|
|
@@ -134,7 +138,7 @@ function I(N, y, r, n, v, x) {
|
|
|
134
138
|
/* CLASS, STYLE */
|
|
135
139
|
);
|
|
136
140
|
}
|
|
137
|
-
const C = /* @__PURE__ */
|
|
141
|
+
const C = /* @__PURE__ */ s(r, [["render", I], ["__file", "/builds/ketjo/nmorph/library/src/components/form/nmorph-number-input/NmorphNumberInput.vue"]]);
|
|
138
142
|
export {
|
|
139
143
|
C as default
|
|
140
144
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import './NmorphNumberInput.css';
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { useModifiers as
|
|
4
|
-
import { useFormItemInput as
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
2
|
+
import { defineComponent as k, computed as r, ref as m, watch as p } from "vue";
|
|
3
|
+
import { useModifiers as T } from "../../../utils/create-modifiers.js";
|
|
4
|
+
import { useFormItemInput as H, useFormItemModel as R } from "../nmorph-form/use-form-item-input.js";
|
|
5
|
+
import { NmorphComponentThickness as D } from "../../../types/common.types.js";
|
|
6
|
+
import V from "../../../assets/icons/plus-thin.svg.js";
|
|
7
7
|
import z from "../../../assets/icons/minus-thin.svg.js";
|
|
8
8
|
import C from "../../basic/nmorph-icon/NmorphIcon.vue.js";
|
|
9
9
|
import F from "../../basic/nmorph-button/NmorphButton.vue.js";
|
|
10
|
-
const L = /* @__PURE__ */
|
|
10
|
+
const L = /* @__PURE__ */ k({
|
|
11
11
|
__name: "NmorphNumberInput",
|
|
12
12
|
props: {
|
|
13
13
|
modelValue: { type: Number, required: !1, default: 0 },
|
|
@@ -18,15 +18,15 @@ const L = /* @__PURE__ */ H({
|
|
|
18
18
|
id: { type: String, required: !1 },
|
|
19
19
|
name: { type: String, required: !1 },
|
|
20
20
|
autocomplete: { type: String, required: !1 },
|
|
21
|
-
|
|
21
|
+
thickness: { type: null, required: !1, default: "basic" },
|
|
22
22
|
disabled: { type: Boolean, required: !1, default: !1 },
|
|
23
23
|
tabindex: { type: Number, required: !1 }
|
|
24
24
|
},
|
|
25
25
|
emits: ["update:model-value"],
|
|
26
|
-
setup(
|
|
27
|
-
const e =
|
|
28
|
-
() =>
|
|
29
|
-
nmorph: [
|
|
26
|
+
setup(c, { expose: d, emit: f }) {
|
|
27
|
+
const e = c, { id: h, name: b, autocomplete: g, tabindex: v } = H(e), N = r(
|
|
28
|
+
() => T({
|
|
29
|
+
nmorph: [D[e.thickness]],
|
|
30
30
|
"nmorph-number-input": [e.disabled && "disabled", e.actionBtnPositionRight && "action-btn-position-right"]
|
|
31
31
|
})
|
|
32
32
|
), a = {
|
|
@@ -42,39 +42,39 @@ const L = /* @__PURE__ */ H({
|
|
|
42
42
|
default: "8px",
|
|
43
43
|
right: "5px"
|
|
44
44
|
}
|
|
45
|
-
},
|
|
46
|
-
const
|
|
47
|
-
return a[e.
|
|
48
|
-
}), u = f, { modelValue: o, updateModelValue: l } =
|
|
45
|
+
}, x = r(() => {
|
|
46
|
+
const n = e.actionBtnPositionRight ? "right" : "default";
|
|
47
|
+
return a[e.thickness][n];
|
|
48
|
+
}), u = f, { modelValue: o, updateModelValue: l } = R(
|
|
49
49
|
e,
|
|
50
|
-
(
|
|
50
|
+
(n) => u("update:model-value", n),
|
|
51
51
|
0
|
|
52
|
-
), t =
|
|
52
|
+
), t = m(o.value), y = () => {
|
|
53
53
|
t.value += e.step;
|
|
54
54
|
}, I = () => {
|
|
55
55
|
t.value -= e.step;
|
|
56
|
-
}, q =
|
|
57
|
-
const S =
|
|
56
|
+
}, q = r(() => t.value <= e.min), B = r(() => t.value >= e.max), _ = r(() => "calc(var(--nmorph-private-control-height) / 2)"), M = (n) => {
|
|
57
|
+
const S = n.target;
|
|
58
58
|
let P = Number(S.value);
|
|
59
59
|
t.value = P;
|
|
60
60
|
};
|
|
61
|
-
p(t, (
|
|
62
|
-
|
|
63
|
-
}), p(o, (
|
|
64
|
-
t.value =
|
|
61
|
+
p(t, (n) => {
|
|
62
|
+
n > e.max && (t.value = e.max, i.value?.blur()), t.value < e.min && (t.value = e.min, i.value?.blur()), l(n);
|
|
63
|
+
}), p(o, (n) => {
|
|
64
|
+
t.value = n;
|
|
65
65
|
});
|
|
66
|
-
const
|
|
67
|
-
|
|
68
|
-
const
|
|
66
|
+
const i = m(null);
|
|
67
|
+
d({ inputDOMRef: i });
|
|
68
|
+
const s = { props: e, id: h, name: b, autocomplete: g, tabindex: v, modifiers: N, iconSizeMap: a, actionBtnIconSize: x, emit: u, modelValue: o, updateModelValue: l, initialValue: t, increaseHandler: y, decreaseHandler: I, minBtnDisabled: q, maxBtnDisabled: B, rightActionBtnHeight: _, inputHandler: M, inputDOMRef: i, get NmorphButton() {
|
|
69
69
|
return F;
|
|
70
70
|
}, get NmorphIcon() {
|
|
71
71
|
return C;
|
|
72
72
|
}, get NmorphIconMinusThin() {
|
|
73
73
|
return z;
|
|
74
74
|
}, get NmorphIconPlusThin() {
|
|
75
|
-
return
|
|
75
|
+
return V;
|
|
76
76
|
} };
|
|
77
|
-
return Object.defineProperty(
|
|
77
|
+
return Object.defineProperty(s, "__isScriptSetup", { enumerable: !1, value: !0 }), s;
|
|
78
78
|
}
|
|
79
79
|
});
|
|
80
80
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.nmorph-otp-input{display:inline-flex;flex-direction:column;align-items:flex-start}.nmorph-otp-input .nmorph-otp-input__content{display:flex;gap:var(--indentation-02)}.nmorph-otp-input .nmorph-otp-input__field{flex:0 0 auto;width:44px;min-width:44px}.nmorph-otp-input .nmorph-otp-input__field input{padding:0;text-align:center;text-indent:0;font-variant-numeric:tabular-nums}.nmorph-otp-input.nmorph--thin-component .nmorph-otp-input__field{width:32px;min-width:32px}.nmorph-otp-input.nmorph--thick-component .nmorph-otp-input__field{width:52px;min-width:52px}.nmorph-otp-input.nmorph-otp-input--disabled{cursor:not-allowed;opacity:.6}
|
|
1
|
+
.nmorph-otp-input{display:inline-flex;flex-direction:column;align-items:flex-start}.nmorph-otp-input .nmorph-otp-input__content{display:flex;gap:var(--indentation-02)}.nmorph-otp-input .nmorph-otp-input__field{flex:0 0 auto;width:44px;min-width:44px}.nmorph-otp-input .nmorph-otp-input__field input{padding:var(--nmorph-private-control-text-offset-y) 0 0;line-height:calc(var(--nmorph-private-control-height) - var(--nmorph-private-control-text-offset-y));text-align:center;text-indent:0;font-variant-numeric:tabular-nums}.nmorph-otp-input.nmorph--thin-component .nmorph-otp-input__field{width:32px;min-width:32px}.nmorph-otp-input.nmorph--thick-component .nmorph-otp-input__field{width:52px;min-width:52px}.nmorph-otp-input.nmorph-otp-input--disabled{cursor:not-allowed;opacity:.6}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import './NmorphOTPInput.css';
|
|
2
2
|
import m from "./NmorphOTPInput.vue2.js";
|
|
3
|
-
import { openBlock as l, createElementBlock as d, normalizeClass as p, createElementVNode as i, Fragment as c, renderList as s, createBlock as f, withModifiers as
|
|
3
|
+
import { openBlock as l, createElementBlock as d, normalizeClass as p, createElementVNode as i, Fragment as c, renderList as s, createBlock as f, withModifiers as t, withKeys as r } from "vue";
|
|
4
4
|
/* empty css */
|
|
5
|
-
import
|
|
6
|
-
const
|
|
7
|
-
function _(b, a,
|
|
5
|
+
import u from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
+
const h = ["name", "value", "disabled"], v = { class: "nmorph-otp-input__content" };
|
|
7
|
+
function _(b, a, k, e, H, y) {
|
|
8
8
|
return l(), d(
|
|
9
9
|
"div",
|
|
10
10
|
{
|
|
@@ -16,20 +16,20 @@ function _(b, a, g, e, H, y) {
|
|
|
16
16
|
value: e.otpValue.join(""),
|
|
17
17
|
type: "hidden",
|
|
18
18
|
disabled: e.props.disabled
|
|
19
|
-
}, null, 8,
|
|
19
|
+
}, null, 8, h),
|
|
20
20
|
i("div", v, [
|
|
21
21
|
(l(!0), d(
|
|
22
22
|
c,
|
|
23
23
|
null,
|
|
24
|
-
s(e.otpValue, (
|
|
24
|
+
s(e.otpValue, (g, o) => (l(), f(e.NmorphTextInput, {
|
|
25
25
|
id: e.fieldIds[o],
|
|
26
26
|
key: e.fieldIds[o],
|
|
27
27
|
ref_for: !0,
|
|
28
|
-
ref: (
|
|
28
|
+
ref: (n) => e.setInputRef(n, o),
|
|
29
29
|
modelValue: e.getFieldModel(o).value,
|
|
30
|
-
"onUpdate:modelValue": (
|
|
30
|
+
"onUpdate:modelValue": (n) => e.getFieldModel(o).value = n,
|
|
31
31
|
class: "nmorph-otp-input__field",
|
|
32
|
-
|
|
32
|
+
thickness: e.props.thickness,
|
|
33
33
|
disabled: e.props.disabled,
|
|
34
34
|
autocomplete: e.resolvedAutocomplete,
|
|
35
35
|
tabindex: e.getFieldTabindex(o),
|
|
@@ -45,17 +45,17 @@ function _(b, a, g, e, H, y) {
|
|
|
45
45
|
"aria-label": `OTP ${o + 1}`
|
|
46
46
|
},
|
|
47
47
|
onKeydown: [
|
|
48
|
-
a[0] || (a[0] = (
|
|
49
|
-
r(
|
|
50
|
-
r(
|
|
51
|
-
r(
|
|
52
|
-
r(
|
|
53
|
-
r(
|
|
48
|
+
a[0] || (a[0] = (n) => e.keydownHandler(n)),
|
|
49
|
+
r(t((n) => e.deleteKeyHandler(n, o), ["prevent"]), ["delete"]),
|
|
50
|
+
r(t((n) => e.arrowLeftHandler(o), ["prevent"]), ["left"]),
|
|
51
|
+
r(t((n) => e.arrowRightHandler(o), ["prevent"]), ["right"]),
|
|
52
|
+
r(t(e.homeHandler, ["prevent"]), ["home"]),
|
|
53
|
+
r(t(e.endHandler, ["prevent"]), ["end"])
|
|
54
54
|
],
|
|
55
|
-
onPaste:
|
|
56
|
-
onFocus: (
|
|
55
|
+
onPaste: t((n) => e.pasteHandler(n, o), ["prevent"]),
|
|
56
|
+
onFocus: (n) => e.focusHandler(o),
|
|
57
57
|
onBlur: e.blurHandler
|
|
58
|
-
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "
|
|
58
|
+
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "thickness", "disabled", "autocomplete", "tabindex", "input-attrs", "onKeydown", "onPaste", "onFocus"]))),
|
|
59
59
|
128
|
|
60
60
|
/* KEYED_FRAGMENT */
|
|
61
61
|
))
|
|
@@ -65,7 +65,7 @@ function _(b, a, g, e, H, y) {
|
|
|
65
65
|
/* CLASS */
|
|
66
66
|
);
|
|
67
67
|
}
|
|
68
|
-
const P = /* @__PURE__ */
|
|
68
|
+
const P = /* @__PURE__ */ u(m, [["render", _], ["__file", "/builds/ketjo/nmorph/library/src/components/form/nmorph-otp-input/NmorphOTPInput.vue"]]);
|
|
69
69
|
export {
|
|
70
70
|
P as default
|
|
71
71
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import './NmorphOTPInput.css';
|
|
2
2
|
import { defineComponent as le, ref as M, computed as c, watch as O, nextTick as R } from "vue";
|
|
3
3
|
import { useModifiers as ue } from "../../../utils/create-modifiers.js";
|
|
4
|
-
import { useFormItemInput as oe, useFormItemModel as
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
4
|
+
import { useFormItemInput as oe, useFormItemModel as ne } from "../nmorph-form/use-form-item-input.js";
|
|
5
|
+
import re from "../nmorph-text-input/NmorphTextInput.vue.js";
|
|
6
|
+
import { NmorphComponentThickness as se } from "../../../types/common.types.js";
|
|
7
7
|
const pe = /* @__PURE__ */ le({
|
|
8
8
|
__name: "NmorphOTPInput",
|
|
9
9
|
props: {
|
|
@@ -15,72 +15,72 @@ const pe = /* @__PURE__ */ le({
|
|
|
15
15
|
id: { type: String, required: !1 },
|
|
16
16
|
name: { type: String, required: !1 },
|
|
17
17
|
autocomplete: { type: String, required: !1 },
|
|
18
|
-
|
|
18
|
+
thickness: { type: null, required: !1, default: "basic" },
|
|
19
19
|
disabled: { type: Boolean, required: !1, default: !1 },
|
|
20
20
|
tabindex: { type: Number, required: !1 }
|
|
21
21
|
},
|
|
22
22
|
emits: ["update:model-value", "focus", "blur", "complete"],
|
|
23
|
-
setup(
|
|
24
|
-
const l =
|
|
23
|
+
setup(T, { expose: j, emit: w }) {
|
|
24
|
+
const l = T, f = w, { id: V, name: N, autocomplete: k, tabindex: p } = oe(l), { modelValue: v, updateModelValue: A } = ne(
|
|
25
25
|
l,
|
|
26
26
|
(e) => f("update:model-value", e),
|
|
27
27
|
""
|
|
28
|
-
), i = M([]),
|
|
28
|
+
), i = M([]), r = M([]), d = M(!1), o = M([]), u = c(() => Math.max(1, l.length)), g = (e = "") => {
|
|
29
29
|
const t = `${e ?? ""}`;
|
|
30
30
|
return l.mode === "numeric" ? Array.from(t.replace(/\D/g, "")) : l.mode === "alphanumeric" ? Array.from(t.replace(/[^a-zA-Z0-9]/g, "")) : Array.from(t);
|
|
31
|
-
},
|
|
31
|
+
}, F = (e = v.value) => {
|
|
32
32
|
const t = g(e).slice(0, u.value);
|
|
33
33
|
return Array.from({ length: u.value }, (a, s) => t[s] || "");
|
|
34
34
|
}, h = (e, t = !1) => {
|
|
35
35
|
if (o.value = Array.from({ length: u.value }, (s, b) => e[b] || ""), !t) return;
|
|
36
36
|
const a = o.value.join("");
|
|
37
|
-
|
|
37
|
+
A(a), o.value.includes("") || f("complete", a);
|
|
38
38
|
};
|
|
39
39
|
O(
|
|
40
40
|
[v, () => l.mode, u],
|
|
41
41
|
() => {
|
|
42
|
-
const e =
|
|
42
|
+
const e = F(v.value);
|
|
43
43
|
(e.join("") !== o.value.join("") || e.length !== o.value.length) && h(e);
|
|
44
44
|
},
|
|
45
45
|
{ immediate: !0 }
|
|
46
46
|
);
|
|
47
47
|
const E = c(
|
|
48
48
|
() => ue({
|
|
49
|
-
nmorph: [se[l.
|
|
49
|
+
nmorph: [se[l.thickness], d.value && "focused"],
|
|
50
50
|
"nmorph-otp-input": [l.disabled && "disabled"]
|
|
51
51
|
})
|
|
52
52
|
), B = c(
|
|
53
53
|
() => Array.from({ length: u.value }, (e, t) => t === 0 ? V.value : `${V.value}-${t + 1}`)
|
|
54
|
-
), C = c(() => l.mode === "numeric" ? "numeric" : "text"), P = c(() =>
|
|
54
|
+
), C = c(() => l.mode === "numeric" ? "numeric" : "text"), P = c(() => k.value || "one-time-code"), $ = c(() => {
|
|
55
55
|
if (l.mode === "numeric") return "[0-9]*";
|
|
56
56
|
if (l.mode === "alphanumeric") return "[A-Za-z0-9]*";
|
|
57
57
|
}), y = (e) => {
|
|
58
|
-
|
|
58
|
+
r.value[e] = i.value[e]?.inputDOMRef ?? null;
|
|
59
59
|
}, x = (e, t) => {
|
|
60
60
|
i.value[t] = e, R(() => {
|
|
61
61
|
y(t);
|
|
62
62
|
});
|
|
63
63
|
}, _ = (e) => {
|
|
64
|
-
y(e), i.value[e]?.select?.(),
|
|
65
|
-
},
|
|
64
|
+
y(e), i.value[e]?.select?.(), r.value[e]?.select();
|
|
65
|
+
}, n = (e = 0) => {
|
|
66
66
|
R(() => {
|
|
67
67
|
const t = Math.min(Math.max(e, 0), u.value - 1);
|
|
68
|
-
y(t), i.value[t]?.focus?.(),
|
|
68
|
+
y(t), i.value[t]?.focus?.(), r.value[t]?.focus(), _(t);
|
|
69
69
|
});
|
|
70
|
-
},
|
|
70
|
+
}, S = () => {
|
|
71
71
|
i.value.forEach((e, t) => {
|
|
72
|
-
e?.blur?.(),
|
|
72
|
+
e?.blur?.(), r.value[t]?.blur();
|
|
73
73
|
});
|
|
74
74
|
};
|
|
75
|
-
|
|
76
|
-
inputDOMRefs:
|
|
77
|
-
focus:
|
|
78
|
-
blur:
|
|
75
|
+
j({
|
|
76
|
+
inputDOMRefs: r,
|
|
77
|
+
focus: n,
|
|
78
|
+
blur: S
|
|
79
79
|
});
|
|
80
80
|
const m = (e, t = "") => {
|
|
81
81
|
const a = [...o.value];
|
|
82
82
|
a[e] = t, h(a, !0);
|
|
83
|
-
},
|
|
83
|
+
}, q = (e, t) => {
|
|
84
84
|
const a = g(e).slice(0, u.value - t);
|
|
85
85
|
if (!a.length) {
|
|
86
86
|
m(t, "");
|
|
@@ -91,23 +91,23 @@ const pe = /* @__PURE__ */ le({
|
|
|
91
91
|
s[t + ae] = te;
|
|
92
92
|
}), h(s, !0);
|
|
93
93
|
const b = t + a.length;
|
|
94
|
-
b < u.value ?
|
|
94
|
+
b < u.value ? n(b) : n(u.value - 1);
|
|
95
95
|
}, z = (e, t) => {
|
|
96
|
-
|
|
97
|
-
},
|
|
98
|
-
const t =
|
|
96
|
+
q(e, t);
|
|
97
|
+
}, H = /* @__PURE__ */ new Map(), L = (e) => {
|
|
98
|
+
const t = H.get(e);
|
|
99
99
|
if (t) return t;
|
|
100
100
|
const a = c({
|
|
101
101
|
get: () => o.value[e] || "",
|
|
102
102
|
set: (s) => z(s, e)
|
|
103
103
|
});
|
|
104
|
-
return
|
|
104
|
+
return H.set(e, a), a;
|
|
105
105
|
}, D = (e) => {
|
|
106
106
|
if (o.value[e]) {
|
|
107
107
|
m(e);
|
|
108
108
|
return;
|
|
109
109
|
}
|
|
110
|
-
e > 0 && (m(e - 1),
|
|
110
|
+
e > 0 && (m(e - 1), n(e - 1));
|
|
111
111
|
}, Z = (e, t) => {
|
|
112
112
|
if (e.key === "Backspace") {
|
|
113
113
|
D(t);
|
|
@@ -115,34 +115,34 @@ const pe = /* @__PURE__ */ le({
|
|
|
115
115
|
}
|
|
116
116
|
m(t);
|
|
117
117
|
}, K = (e) => {
|
|
118
|
-
|
|
118
|
+
n(e - 1);
|
|
119
119
|
}, G = (e) => {
|
|
120
|
-
|
|
120
|
+
n(e + 1);
|
|
121
121
|
}, J = () => {
|
|
122
|
-
|
|
122
|
+
n(0);
|
|
123
123
|
}, Q = () => {
|
|
124
|
-
|
|
124
|
+
n(u.value - 1);
|
|
125
125
|
}, U = (e) => {
|
|
126
126
|
e.key.length === 1 && !g(e.key).length && e.preventDefault();
|
|
127
127
|
}, W = (e, t) => {
|
|
128
128
|
const a = e.clipboardData?.getData("text") || "";
|
|
129
|
-
|
|
129
|
+
q(a, t);
|
|
130
130
|
}, X = (e) => {
|
|
131
131
|
d.value || (d.value = !0, f("focus")), _(e);
|
|
132
132
|
}, Y = () => {
|
|
133
133
|
setTimeout(() => {
|
|
134
134
|
const e = document.activeElement;
|
|
135
|
-
!
|
|
135
|
+
!r.value.some((a) => a === e) && d.value && (d.value = !1, f("blur"));
|
|
136
136
|
});
|
|
137
137
|
}, ee = (e) => p.value > 0 ? p.value + e : p.value;
|
|
138
138
|
O(
|
|
139
139
|
() => l.autofocus,
|
|
140
140
|
(e) => {
|
|
141
|
-
e && !l.disabled &&
|
|
141
|
+
e && !l.disabled && n(0);
|
|
142
142
|
},
|
|
143
143
|
{ immediate: !0 }
|
|
144
144
|
);
|
|
145
|
-
const I = { props: l, emit: f, id: V, name:
|
|
145
|
+
const I = { props: l, emit: f, id: V, name: N, autocomplete: k, tabindex: p, modelValue: v, updateModelValue: A, inputRefs: i, inputDOMRefs: r, focused: d, otpValue: o, normalizedLength: u, sanitizeValue: g, normalizeOtpValue: F, syncOtpValue: h, modifiers: E, fieldIds: B, inputMode: C, resolvedAutocomplete: P, inputPattern: $, syncInputDOMRef: y, setInputRef: x, selectField: _, focusField: n, blurFields: S, updateCharAt: m, insertValue: q, inputHandler: z, fieldModels: H, getFieldModel: L, backspaceHandler: D, deleteKeyHandler: Z, arrowLeftHandler: K, arrowRightHandler: G, homeHandler: J, endHandler: Q, keydownHandler: U, pasteHandler: W, focusHandler: X, blurHandler: Y, getFieldTabindex: ee, NmorphTextInput: re };
|
|
146
146
|
return Object.defineProperty(I, "__isScriptSetup", { enumerable: !1, value: !0 }), I;
|
|
147
147
|
}
|
|
148
148
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.nmorph-radio{--size: var(--height);--nmorph-selection-control-font-size: var(--font-size
|
|
1
|
+
.nmorph-radio{--nmorph-private-selection-control-size: var(--nmorph-private-control-height);--nmorph-private-selection-control-font-size: var(--nmorph-private-control-font-size);--nmorph-private-selection-control-line-height: var(--nmorph-private-control-line-height);--nmorph-private-selection-control-font-weight: var(--nmorph-private-control-font-weight);--nmorph-private-selection-control-inline-padding: var(--indentation-03);display:inline-flex;align-items:center;cursor:pointer}.nmorph-radio.nmorph{height:auto;min-height:var(--nmorph-private-selection-control-size)}.nmorph-radio .nmorph-radio__content{position:relative;display:flex;justify-content:center;align-items:center;min-height:var(--nmorph-private-selection-control-size)}.nmorph-radio .nmorph-radio__input-wrapper{position:relative;width:var(--nmorph-private-selection-control-size);height:var(--nmorph-private-selection-control-size)}.nmorph-radio input{position:absolute;top:0;left:0;width:100%;height:100%}.nmorph-radio input:focus-visible{background:var(--nmorph-main-color);box-shadow:var(--base-shadow-width) var(--base-shadow-width) var(--base-shadow-blur) var(--nmorph-dark-shade-color),calc(-1 * var(--base-shadow-width)) calc(-1 * var(--base-shadow-width)) var(--base-shadow-blur) var(--nmorph-light-shade-color)}.nmorph-radio .nmorph-radio__fake{position:absolute;top:0;left:0;width:100%;height:100%;background:var(--nmorph-main-color);border-radius:var(--border-radius-circular);box-shadow:inset var(--base-shadow-width) var(--base-shadow-width) var(--base-shadow-blur) var(--nmorph-dark-shade-color),inset calc(-1 * var(--base-shadow-width)) calc(-1 * var(--base-shadow-width)) var(--base-shadow-blur) var(--nmorph-light-shade-color)}.nmorph-radio .nmorph-radio__fake span,.nmorph-radio .nmorph-radio__label{display:inline-flex;align-items:center;font-weight:var(--nmorph-private-selection-control-font-weight);font-size:var(--nmorph-private-selection-control-font-size);line-height:var(--nmorph-private-selection-control-line-height);transform:translateY(var(--nmorph-private-control-text-offset-y))}.nmorph-radio .nmorph-radio__fake-checked{position:absolute;top:50%;left:50%;width:50%;height:50%;background:var(--nmorph-accent-color);border-radius:var(--border-radius-circular);transform:translate(-50%,-50%)}.nmorph-radio .nmorph-radio__label{margin-left:var(--indentation-02)}.nmorph-radio.nmorph-radio--nmorph .nmorph-radio__fake{position:relative;display:flex;justify-content:center;align-items:center;box-sizing:border-box;height:var(--nmorph-private-selection-control-size);padding:0 var(--nmorph-private-selection-control-inline-padding);white-space:nowrap;background:var(--nmorph-main-color);border-radius:var(--default-border-radius);box-shadow:var(--base-shadow-width) var(--base-shadow-width) var(--base-shadow-blur) var(--nmorph-dark-shade-color),calc(-1 * var(--base-shadow-width)) calc(-1 * var(--base-shadow-width)) var(--base-shadow-blur) var(--nmorph-light-shade-color)}.nmorph-radio.nmorph--extra-thin-component{--nmorph-private-selection-control-inline-padding: var(--indentation-02)}.nmorph-radio.nmorph-radio--checked .nmorph-radio__fake{background:var(--nmorph-main-color);box-shadow:inset var(--base-shadow-width) var(--base-shadow-width) var(--base-shadow-blur) var(--nmorph-dark-shade-color),inset calc(-1 * var(--base-shadow-width)) calc(-1 * var(--base-shadow-width)) var(--base-shadow-blur) var(--nmorph-light-shade-color)}.nmorph-radio.nmorph-radio--plain .nmorph-radio__fake{border:var(--nmorph-plain-border);box-shadow:none}.nmorph-radio.nmorph-radio--disabled{cursor:not-allowed;opacity:.6}
|
|
@@ -22,7 +22,7 @@ const m = {
|
|
|
22
22
|
key: 1,
|
|
23
23
|
class: "nmorph-radio__fake"
|
|
24
24
|
};
|
|
25
|
-
function
|
|
25
|
+
function g(n, s, N, e, R, C) {
|
|
26
26
|
return o(), a(
|
|
27
27
|
"label",
|
|
28
28
|
{
|
|
@@ -30,7 +30,7 @@ function N(n, s, R, e, C, D) {
|
|
|
30
30
|
onClick: p(e.changeHandler, ["prevent"])
|
|
31
31
|
},
|
|
32
32
|
[
|
|
33
|
-
e.props.
|
|
33
|
+
e.props.design === "plain" ? (o(), a("div", m, [
|
|
34
34
|
r("div", h, [
|
|
35
35
|
r("input", {
|
|
36
36
|
ref: "inputDOMRef",
|
|
@@ -58,7 +58,7 @@ function N(n, s, R, e, C, D) {
|
|
|
58
58
|
/* TEXT */
|
|
59
59
|
)) : l(n.$slots, "label", { key: 1 })
|
|
60
60
|
])) : i("v-if", !0),
|
|
61
|
-
e.props.
|
|
61
|
+
e.props.design === "nmorph" ? (o(), a("div", v, [
|
|
62
62
|
r("input", {
|
|
63
63
|
ref: "inputDOMRef",
|
|
64
64
|
type: "radio",
|
|
@@ -88,7 +88,7 @@ function N(n, s, R, e, C, D) {
|
|
|
88
88
|
/* CLASS */
|
|
89
89
|
);
|
|
90
90
|
}
|
|
91
|
-
const E = /* @__PURE__ */ _(t, [["render",
|
|
91
|
+
const E = /* @__PURE__ */ _(t, [["render", g], ["__file", "/builds/ketjo/nmorph/library/src/components/form/nmorph-radio/NmorphRadio.vue"]]);
|
|
92
92
|
export {
|
|
93
93
|
E as default
|
|
94
94
|
};
|