@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,42 +1,42 @@
|
|
|
1
1
|
import './NmorphAutocomplete.css';
|
|
2
2
|
import v from "./NmorphAutocomplete.vue2.js";
|
|
3
|
-
import { openBlock as l, createElementBlock as t, normalizeStyle as
|
|
3
|
+
import { openBlock as l, createElementBlock as t, normalizeStyle as i, normalizeClass as a, createElementVNode as d, createVNode as m, createBlock as y, withCtx as p, renderSlot as s, Fragment as _, renderList as h, createTextVNode as f, toDisplayString as u, createCommentVNode as k } from "vue";
|
|
4
4
|
/* empty css */
|
|
5
|
-
import
|
|
6
|
-
const
|
|
5
|
+
import x from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
+
const b = { class: "nmorph-autocomplete__input-content" }, H = {
|
|
7
7
|
ref: "nmorphAutocompleteDOMRef",
|
|
8
8
|
class: "nmorph-autocomplete__input"
|
|
9
|
-
},
|
|
9
|
+
}, g = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "nmorph-autocomplete__loading"
|
|
12
12
|
}, N = ["id"], V = ["id", "aria-selected", "onClick"], C = ["id"], I = ["id", "aria-selected", "onClick"];
|
|
13
|
-
function O(c,
|
|
13
|
+
function O(c, n, w, e, D, S) {
|
|
14
14
|
return l(), t(
|
|
15
15
|
"div",
|
|
16
16
|
{
|
|
17
17
|
class: a(e.modifiers),
|
|
18
|
-
style:
|
|
18
|
+
style: i(e.styles)
|
|
19
19
|
},
|
|
20
20
|
[
|
|
21
|
-
d("div",
|
|
21
|
+
d("div", b, [
|
|
22
22
|
d(
|
|
23
23
|
"div",
|
|
24
|
-
|
|
24
|
+
H,
|
|
25
25
|
[
|
|
26
26
|
m(e.NmorphTextInput, {
|
|
27
27
|
id: e.props.id,
|
|
28
28
|
modelValue: e.inputValue,
|
|
29
|
-
"onUpdate:modelValue":
|
|
29
|
+
"onUpdate:modelValue": n[0] || (n[0] = (o) => e.inputValue = o),
|
|
30
30
|
name: e.props.name,
|
|
31
31
|
autocomplete: e.props.autocomplete,
|
|
32
|
-
|
|
32
|
+
thickness: e.props.thickness,
|
|
33
33
|
disabled: e.props.disabled,
|
|
34
34
|
placeholder: e.props.placeholder,
|
|
35
35
|
clearable: e.props.clearable,
|
|
36
36
|
"input-attrs": e.inputAttrs,
|
|
37
37
|
onFocus: e.focusHandler,
|
|
38
38
|
onKeydown: e.keydownHandler
|
|
39
|
-
}, null, 8, ["id", "modelValue", "name", "autocomplete", "
|
|
39
|
+
}, null, 8, ["id", "modelValue", "name", "autocomplete", "thickness", "disabled", "placeholder", "clearable", "input-attrs"])
|
|
40
40
|
],
|
|
41
41
|
512
|
|
42
42
|
/* NEED_PATCH */
|
|
@@ -55,7 +55,7 @@ function O(c, i, w, e, D, S) {
|
|
|
55
55
|
onOnEscapeKeydown: e.closeHandler
|
|
56
56
|
}, {
|
|
57
57
|
default: p(() => [
|
|
58
|
-
e.loader ? (l(), t("div",
|
|
58
|
+
e.loader ? (l(), t("div", g, [
|
|
59
59
|
s(c.$slots, "loader", {}, () => [
|
|
60
60
|
m(e.NmorphIcon, { size: "large" }, {
|
|
61
61
|
default: p(() => [
|
|
@@ -70,22 +70,25 @@ function O(c, i, w, e, D, S) {
|
|
|
70
70
|
id: e.listboxId,
|
|
71
71
|
ref: e.virtualList.containerRef,
|
|
72
72
|
class: a(["nmorph-autocomplete__list nmorph-autocomplete__list--virtual", { "nmorph-autocomplete__list--dynamic": e.virtualDynamicHeight }]),
|
|
73
|
-
style:
|
|
73
|
+
style: i({
|
|
74
|
+
"--nmorph-private-autocomplete-virtual-item-height": `${e.virtualItemHeight}px`,
|
|
75
|
+
maxHeight: e.virtualMaxHeight
|
|
76
|
+
}),
|
|
74
77
|
role: "listbox",
|
|
75
|
-
onScroll:
|
|
78
|
+
onScroll: n[1] || (n[1] = (...o) => e.virtualList.scrollHandler && e.virtualList.scrollHandler(...o))
|
|
76
79
|
}, [
|
|
77
80
|
d(
|
|
78
81
|
"div",
|
|
79
82
|
{
|
|
80
83
|
class: "nmorph-autocomplete__virtual-spacer",
|
|
81
|
-
style:
|
|
84
|
+
style: i(e.virtualSpacerStyle)
|
|
82
85
|
},
|
|
83
86
|
[
|
|
84
87
|
d(
|
|
85
88
|
"div",
|
|
86
89
|
{
|
|
87
90
|
class: "nmorph-autocomplete__virtual-content",
|
|
88
|
-
style:
|
|
91
|
+
style: i(e.virtualContentStyle)
|
|
89
92
|
},
|
|
90
93
|
[
|
|
91
94
|
(l(!0), t(
|
|
@@ -157,13 +160,13 @@ function O(c, i, w, e, D, S) {
|
|
|
157
160
|
]),
|
|
158
161
|
_: 3
|
|
159
162
|
/* FORWARDED */
|
|
160
|
-
}, 8, ["open", "relative-element", "z-index", "aria-label"])) :
|
|
163
|
+
}, 8, ["open", "relative-element", "z-index", "aria-label"])) : k("v-if", !0)
|
|
161
164
|
],
|
|
162
165
|
6
|
|
163
166
|
/* CLASS, STYLE */
|
|
164
167
|
);
|
|
165
168
|
}
|
|
166
|
-
const R = /* @__PURE__ */
|
|
169
|
+
const R = /* @__PURE__ */ x(v, [["render", O], ["__file", "/builds/ketjo/nmorph/library/src/components/form/nmorph-autocomplete/NmorphAutocomplete.vue"]]);
|
|
167
170
|
export {
|
|
168
171
|
R as default
|
|
169
172
|
};
|
|
@@ -5,7 +5,7 @@ import { getNmorphOptionHeight as W, toCssSize as X, resolveDomElement as Y } fr
|
|
|
5
5
|
import { useZIndex as ee } from "../../../hooks/use-z-index.js";
|
|
6
6
|
import { useVirtualList as te } from "../../../hooks/use-virtual-list.js";
|
|
7
7
|
import { useFormItemModel as ae } from "../nmorph-form/use-form-item-input.js";
|
|
8
|
-
import {
|
|
8
|
+
import { NmorphComponentThickness as le } from "../../../types/common.types.js";
|
|
9
9
|
import re from "../nmorph-text-input/NmorphTextInput.vue.js";
|
|
10
10
|
import oe from "../../navigation/nmorph-dropdown/NmorphDropdown.vue.js";
|
|
11
11
|
import ue from "../../basic/nmorph-icon/NmorphIcon.vue.js";
|
|
@@ -27,45 +27,45 @@ const Ie = /* @__PURE__ */ K({
|
|
|
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", "select"],
|
|
35
|
-
setup(O, { expose: L, emit:
|
|
35
|
+
setup(O, { expose: L, emit: T }) {
|
|
36
36
|
L();
|
|
37
|
-
const t = O, p =
|
|
37
|
+
const t = O, p = T, { modelValue: m, updateModelValue: v } = ae(
|
|
38
38
|
t,
|
|
39
39
|
(e) => p("update:model-value", e),
|
|
40
40
|
""
|
|
41
|
-
), o = s(m.value),
|
|
41
|
+
), o = s(m.value), V = l(
|
|
42
42
|
() => M({
|
|
43
43
|
"nmorph-autocomplete": [a.value && "open"]
|
|
44
44
|
})
|
|
45
45
|
), i = s(!1), b = (e) => {
|
|
46
46
|
i.value = e === "", o.value = e, a.value = !i.value && r.value.length > 0, u.value = 0, v(o.value);
|
|
47
|
-
},
|
|
47
|
+
}, A = l({
|
|
48
48
|
get: () => o.value,
|
|
49
49
|
set: b
|
|
50
50
|
}), a = s(!1), z = s(null), x = () => {
|
|
51
51
|
i.value = !0, a.value = !1;
|
|
52
|
-
}, r = l(() => t.list.filter((e) => Object.keys(e).some((I) => String(e[I]).toLowerCase().includes(o.value.toLowerCase())))), f = l(() => t.virtual && r.value.length > 0), H = l(() => t.virtualItemHeight || W(t.
|
|
52
|
+
}, r = l(() => t.list.filter((e) => Object.keys(e).some((I) => String(e[I]).toLowerCase().includes(o.value.toLowerCase())))), f = l(() => t.virtual && r.value.length > 0), H = l(() => t.virtualItemHeight || W(t.thickness)), q = l(() => t.virtualOverscan), N = l(() => t.virtualDynamicHeight), n = te(r, {
|
|
53
53
|
enabled: f,
|
|
54
54
|
itemHeight: H,
|
|
55
55
|
overscan: q,
|
|
56
56
|
dynamic: N
|
|
57
|
-
}), B = l(() => n.virtualItems.value), E = n.spacerStyle, $ = n.contentStyle, j = l(() => X(t.virtualMaxHeight)), u = s(0), h = l(() => r.value[u.value]),
|
|
57
|
+
}), B = l(() => n.virtualItems.value), E = n.spacerStyle, $ = n.contentStyle, j = l(() => X(t.virtualMaxHeight)), u = s(0), h = l(() => r.value[u.value]), y = l(() => `${t.id || t.name || "nmorph-autocomplete"}-listbox`), k = (e) => `${y.value}-option-${e}`;
|
|
58
58
|
c(m, (e) => {
|
|
59
59
|
e !== o.value && (o.value = e);
|
|
60
60
|
}), c(r, async (e) => {
|
|
61
61
|
a.value = !i.value && o.value !== "" && e.length > 0, u.value = 0, await Q(), n.scrollToIndex(0), n.refresh();
|
|
62
62
|
});
|
|
63
|
-
const
|
|
63
|
+
const g = (e) => {
|
|
64
64
|
p("select", e), o.value = e.value, v(o.value), setTimeout(() => {
|
|
65
65
|
i.value = !0, a.value = !1;
|
|
66
66
|
});
|
|
67
67
|
}, F = (e) => {
|
|
68
|
-
|
|
68
|
+
g(e);
|
|
69
69
|
}, R = () => {
|
|
70
70
|
i.value = !1, a.value = r.value.length > 0;
|
|
71
71
|
}, d = s(!1);
|
|
@@ -76,29 +76,29 @@ const Ie = /* @__PURE__ */ K({
|
|
|
76
76
|
}), c(u, (e) => {
|
|
77
77
|
f.value && n.scrollToIndex(e);
|
|
78
78
|
});
|
|
79
|
-
const
|
|
79
|
+
const D = () => {
|
|
80
80
|
r.value.length && (a.value = !0, u.value = (u.value + 1) % r.value.length);
|
|
81
|
-
},
|
|
81
|
+
}, S = () => {
|
|
82
82
|
r.value.length && (a.value = !0, u.value = (u.value - 1 + r.value.length) % r.value.length);
|
|
83
|
-
},
|
|
84
|
-
!a.value || !h.value ||
|
|
83
|
+
}, w = () => {
|
|
84
|
+
!a.value || !h.value || g(h.value);
|
|
85
85
|
}, U = (e) => {
|
|
86
|
-
e.key === "ArrowDown" ? (e.preventDefault(),
|
|
86
|
+
e.key === "ArrowDown" ? (e.preventDefault(), D()) : e.key === "ArrowUp" ? (e.preventDefault(), S()) : e.key === "Enter" ? (e.preventDefault(), w()) : e.key === "Escape" && (e.preventDefault(), x());
|
|
87
87
|
}, Z = l(() => ({
|
|
88
88
|
role: "combobox",
|
|
89
89
|
"aria-autocomplete": "list",
|
|
90
90
|
"aria-expanded": a.value,
|
|
91
|
-
"aria-controls":
|
|
92
|
-
"aria-activedescendant": a.value ?
|
|
91
|
+
"aria-controls": y.value,
|
|
92
|
+
"aria-activedescendant": a.value ? k(u.value) : void 0
|
|
93
93
|
})), P = (e, I) => {
|
|
94
94
|
n.measureElement(I, Y(e));
|
|
95
95
|
}, C = ee(a, () => t.zIndex), G = l(() => ({
|
|
96
|
-
"--nmorph-autocomplete-input-z-index": C.value + 1
|
|
96
|
+
"--nmorph-private-autocomplete-input-z-index": C.value + 1
|
|
97
97
|
})), J = l(
|
|
98
98
|
() => M({
|
|
99
|
-
nmorph: [le[t.
|
|
99
|
+
nmorph: [le[t.thickness]]
|
|
100
100
|
})
|
|
101
|
-
), _ = { props: t, emit: p, modelValue: m, updateModelValue: v, initialValue: o, modifiers:
|
|
101
|
+
), _ = { props: t, emit: p, modelValue: m, updateModelValue: v, initialValue: o, modifiers: V, userClosed: i, updateValueHandler: b, inputValue: A, open: a, nmorphAutocompleteDOMRef: z, closeHandler: x, filteredList: r, virtualEnabled: f, virtualItemHeight: H, virtualOverscan: q, virtualDynamicHeight: N, virtualList: n, virtualItems: B, virtualSpacerStyle: E, virtualContentStyle: $, virtualMaxHeight: j, currentIndex: u, activeItem: h, listboxId: y, getOptionId: k, selectItem: g, clickHandler: F, focusHandler: R, loader: d, arrowDownHandler: D, arrowUpHandler: S, enterHandler: w, keydownHandler: U, inputAttrs: Z, setVirtualItemRef: P, dropdownZIndex: C, styles: G, optionHeightModifiers: J, get NmorphIcon() {
|
|
102
102
|
return ue;
|
|
103
103
|
}, get NmorphDropdown() {
|
|
104
104
|
return oe;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.nmorph-checkbox{--size: var(--height);--nmorph-selection-control-font-size: var(--font-size
|
|
1
|
+
.nmorph-checkbox{--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;vertical-align:middle;cursor:pointer}.nmorph-checkbox.nmorph{height:auto;min-height:var(--nmorph-private-selection-control-size)}.nmorph-checkbox .nmorph-checkbox__content{position:relative;display:flex;justify-content:center;align-items:center;min-height:var(--nmorph-private-selection-control-size)}.nmorph-checkbox .nmorph-checkbox__input-wrapper{position:relative;width:var(--nmorph-private-selection-control-size);height:var(--nmorph-private-selection-control-size)}.nmorph-checkbox input{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0}.nmorph-checkbox input:focus-visible{outline:2px solid var(--nmorph-accent-color);opacity:1;scale:.95}.nmorph-checkbox .nmorph-checkbox__fake{position:absolute;top:0;left:0;width:100%;height:100%;background:var(--nmorph-main-color);border-radius:var(--default-border-radius);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-checkbox .nmorph-checkbox__label,.nmorph-checkbox .nmorph-checkbox__fake span{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-checkbox .nmorph-checkbox__fake-checked{position:absolute;top:50%;left:50%;width:50%;height:50%;background:var(--nmorph-accent-color);border-radius:var(--border-radius-20);transform:translate(-50%,-50%)}.nmorph-checkbox .nmorph-checkbox__label{margin-left:var(--indentation-02);line-height:1}.nmorph-checkbox .nmorph-checkbox__fake span{white-space:nowrap}.nmorph-checkbox.nmorph-checkbox--nmorph .nmorph-checkbox__fake{position:relative;display:flex;justify-content:center;align-items:center;box-sizing:border-box;width:auto;min-width:var(--nmorph-private-selection-control-size);height:var(--nmorph-private-selection-control-size);padding:0 var(--nmorph-private-selection-control-inline-padding);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-checkbox.nmorph--extra-thin-component{--nmorph-private-selection-control-inline-padding: var(--indentation-02)}.nmorph-checkbox.nmorph-checkbox--checked .nmorph-checkbox__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-checkbox.nmorph-checkbox--plain .nmorph-checkbox__fake{border:var(--nmorph-plain-border);box-shadow:none}.nmorph-checkbox.nmorph-checkbox--disabled{cursor:not-allowed;opacity:.6}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import './NmorphCheckbox.css';
|
|
2
|
-
import
|
|
3
|
-
import { openBlock as o, createElementBlock as c, normalizeClass as
|
|
2
|
+
import i from "./NmorphCheckbox.vue2.js";
|
|
3
|
+
import { openBlock as o, createElementBlock as c, normalizeClass as h, createElementVNode as n, createCommentVNode as l, toDisplayString as a, renderSlot as r } from "vue";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
-
const
|
|
6
|
+
const p = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "nmorph-checkbox__content"
|
|
9
|
-
},
|
|
9
|
+
}, _ = { class: "nmorph-checkbox__input-wrapper" }, k = ["disabled", "checked"], m = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "nmorph-checkbox__fake-checked"
|
|
12
|
-
},
|
|
12
|
+
}, b = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "nmorph-checkbox__label"
|
|
15
15
|
}, f = {
|
|
16
16
|
key: 1,
|
|
17
17
|
class: "nmorph-checkbox__label"
|
|
18
|
-
},
|
|
18
|
+
}, v = {
|
|
19
19
|
key: 1,
|
|
20
20
|
class: "nmorph-checkbox__content"
|
|
21
|
-
},
|
|
21
|
+
}, x = ["disabled", "checked"], y = {
|
|
22
22
|
key: 0,
|
|
23
23
|
class: "nmorph-checkbox__fake"
|
|
24
24
|
}, u = {
|
|
@@ -29,11 +29,11 @@ function C(s, d, g, e, N, D) {
|
|
|
29
29
|
return o(), c(
|
|
30
30
|
"label",
|
|
31
31
|
{
|
|
32
|
-
class:
|
|
32
|
+
class: h(e.modifiers)
|
|
33
33
|
},
|
|
34
34
|
[
|
|
35
|
-
e.props.design === "
|
|
36
|
-
n("div",
|
|
35
|
+
e.props.design === "plain" ? (o(), c("div", p, [
|
|
36
|
+
n("div", _, [
|
|
37
37
|
n("input", {
|
|
38
38
|
ref: "inputDOMRef",
|
|
39
39
|
type: "checkbox",
|
|
@@ -49,9 +49,9 @@ function C(s, d, g, e, N, D) {
|
|
|
49
49
|
-1
|
|
50
50
|
/* CACHED */
|
|
51
51
|
)),
|
|
52
|
-
e.checked ? (o(), c("div",
|
|
52
|
+
e.checked ? (o(), c("div", m)) : l("v-if", !0)
|
|
53
53
|
]),
|
|
54
|
-
e.props.label ? (o(), c("div",
|
|
54
|
+
e.props.label ? (o(), c("div", b, [
|
|
55
55
|
n(
|
|
56
56
|
"span",
|
|
57
57
|
null,
|
|
@@ -63,14 +63,14 @@ function C(s, d, g, e, N, D) {
|
|
|
63
63
|
r(s.$slots, "default")
|
|
64
64
|
]))
|
|
65
65
|
])) : l("v-if", !0),
|
|
66
|
-
e.props.design === "
|
|
66
|
+
e.props.design === "nmorph" ? (o(), c("div", v, [
|
|
67
67
|
n("input", {
|
|
68
68
|
ref: "inputDOMRef",
|
|
69
69
|
type: "checkbox",
|
|
70
70
|
disabled: e.props.disabled,
|
|
71
71
|
checked: e.checked,
|
|
72
72
|
onChange: e.handleChange
|
|
73
|
-
}, null, 40,
|
|
73
|
+
}, null, 40, x),
|
|
74
74
|
e.props.label ? (o(), c("div", y, [
|
|
75
75
|
n(
|
|
76
76
|
"span",
|
|
@@ -90,7 +90,7 @@ function C(s, d, g, e, N, D) {
|
|
|
90
90
|
/* CLASS */
|
|
91
91
|
);
|
|
92
92
|
}
|
|
93
|
-
const R = /* @__PURE__ */ t(
|
|
93
|
+
const R = /* @__PURE__ */ t(i, [["render", C], ["__file", "/builds/ketjo/nmorph/library/src/components/form/nmorph-checkbox/NmorphCheckbox.vue"]]);
|
|
94
94
|
export {
|
|
95
95
|
R as default
|
|
96
96
|
};
|
|
@@ -1,57 +1,56 @@
|
|
|
1
1
|
import './NmorphCheckbox.css';
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { useModifiers as
|
|
4
|
-
import { useFormItemModel as
|
|
5
|
-
import {
|
|
6
|
-
const
|
|
2
|
+
import { defineComponent as S, inject as d, watch as V, ref as c, computed as l } from "vue";
|
|
3
|
+
import { useModifiers as C } from "../../../utils/create-modifiers.js";
|
|
4
|
+
import { useFormItemModel as M } from "../nmorph-form/use-form-item-input.js";
|
|
5
|
+
import { NmorphSelectionControlThickness as T } from "../../../types/common.types.js";
|
|
6
|
+
const O = /* @__PURE__ */ S({
|
|
7
7
|
__name: "NmorphCheckbox",
|
|
8
8
|
props: {
|
|
9
9
|
id: { type: String, required: !1, default: "" },
|
|
10
10
|
disabled: { type: Boolean, required: !1, default: !1 },
|
|
11
11
|
modelValue: { type: Boolean, required: !1, default: !1 },
|
|
12
12
|
label: { type: String, required: !1, default: "" },
|
|
13
|
-
design: { type: String, required: !1, default: "
|
|
14
|
-
|
|
13
|
+
design: { type: String, required: !1, default: "nmorph" },
|
|
14
|
+
thickness: { type: null, required: !1 }
|
|
15
15
|
},
|
|
16
16
|
emits: ["update:model-value"],
|
|
17
|
-
setup(g, { expose:
|
|
18
|
-
const o =
|
|
17
|
+
setup(g, { expose: _, emit: x }) {
|
|
18
|
+
const o = d(
|
|
19
19
|
"checkbox-group-selected-value",
|
|
20
20
|
void 0
|
|
21
|
-
),
|
|
21
|
+
), n = d(
|
|
22
22
|
"change-checkbox-value-handler",
|
|
23
23
|
void 0
|
|
24
|
-
),
|
|
24
|
+
), p = d(
|
|
25
|
+
"checkbox-group-thickness",
|
|
26
|
+
void 0
|
|
27
|
+
), e = g, f = x, { modelValue: a, updateModelValue: m } = M(
|
|
25
28
|
e,
|
|
26
|
-
(
|
|
29
|
+
(i) => f("update:model-value", i),
|
|
27
30
|
!1
|
|
28
31
|
);
|
|
29
|
-
|
|
30
|
-
t.value =
|
|
32
|
+
V(a, (i) => {
|
|
33
|
+
t.value = i;
|
|
31
34
|
});
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
const
|
|
35
|
+
const h = c(null);
|
|
36
|
+
_({ inputDOMRef: h });
|
|
37
|
+
const s = o !== void 0, t = s ? c(o.value) : c(a.value), v = l(() => s ? o.value.includes(e.id) : a.value), u = l(() => e.design || "nmorph"), r = l(() => e.thickness || p?.value || "basic"), b = l(() => u.value !== "plain" && r.value === "extra-thin" ? "basic" : r.value), q = () => {
|
|
35
38
|
if (!e.disabled) {
|
|
36
|
-
if (!
|
|
37
|
-
t.value = !t.value,
|
|
39
|
+
if (!s) {
|
|
40
|
+
t.value = !t.value, m(t.value);
|
|
38
41
|
return;
|
|
39
42
|
}
|
|
40
|
-
|
|
43
|
+
n && n(e.id);
|
|
41
44
|
}
|
|
42
|
-
},
|
|
43
|
-
() =>
|
|
44
|
-
nmorph: [
|
|
45
|
-
"nmorph-checkbox": [
|
|
46
|
-
h.value && "checked",
|
|
47
|
-
e.disabled && "disabled",
|
|
48
|
-
e.design === "button" && "button"
|
|
49
|
-
]
|
|
45
|
+
}, y = l(
|
|
46
|
+
() => C({
|
|
47
|
+
nmorph: [T[b.value]],
|
|
48
|
+
"nmorph-checkbox": [v.value && "checked", e.disabled && "disabled", u.value]
|
|
50
49
|
})
|
|
51
|
-
),
|
|
52
|
-
return Object.defineProperty(
|
|
50
|
+
), k = { groupSelectedValue: o, changeValue: n, groupThickness: p, props: e, emit: f, modelValue: a, updateModelValue: m, inputDOMRef: h, hasGroup: s, initialValue: t, checked: v, resolvedDesign: u, requestedThickness: r, thickness: b, handleChange: q, modifiers: y };
|
|
51
|
+
return Object.defineProperty(k, "__isScriptSetup", { enumerable: !1, value: !0 }), k;
|
|
53
52
|
}
|
|
54
53
|
});
|
|
55
54
|
export {
|
|
56
|
-
|
|
55
|
+
O as default
|
|
57
56
|
};
|
|
@@ -1,34 +1,33 @@
|
|
|
1
1
|
import './NmorphCheckboxGroup.css';
|
|
2
|
-
import
|
|
3
|
-
import { openBlock as
|
|
2
|
+
import d from "./NmorphCheckboxGroup.vue2.js";
|
|
3
|
+
import { openBlock as o, createElementBlock as s, normalizeClass as t, createElementVNode as c, Fragment as a, renderList as m, createBlock as h, renderSlot as p } from "vue";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
-
const b = { class: "nmorph-checkbox-group__wrapper" },
|
|
7
|
-
function f(
|
|
8
|
-
return
|
|
6
|
+
const b = { class: "nmorph-checkbox-group__wrapper" }, k = { class: "nmorph-checkbox-group__content" };
|
|
7
|
+
function f(n, u, i, e, g, x) {
|
|
8
|
+
return o(), s(
|
|
9
9
|
"div",
|
|
10
10
|
{
|
|
11
|
-
class:
|
|
11
|
+
class: t(e.modifiers)
|
|
12
12
|
},
|
|
13
13
|
[
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
(
|
|
17
|
-
|
|
14
|
+
c("div", b, [
|
|
15
|
+
c("div", k, [
|
|
16
|
+
(o(!0), s(
|
|
17
|
+
a,
|
|
18
18
|
null,
|
|
19
|
-
m(
|
|
20
|
-
id:
|
|
21
|
-
key:
|
|
22
|
-
label:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}, null, 8, ["id", "label", "model-value", "disabled", "design", "height"]))),
|
|
19
|
+
m(i.options, (r, l) => (o(), h(e.NmorphCheckbox, {
|
|
20
|
+
id: r.id,
|
|
21
|
+
key: l,
|
|
22
|
+
label: r.label,
|
|
23
|
+
disabled: r.disabled || e.props.disabled,
|
|
24
|
+
design: r.design || e.props.design,
|
|
25
|
+
thickness: r.thickness || e.thickness
|
|
26
|
+
}, null, 8, ["id", "label", "disabled", "design", "thickness"]))),
|
|
28
27
|
128
|
|
29
28
|
/* KEYED_FRAGMENT */
|
|
30
29
|
)),
|
|
31
|
-
p(
|
|
30
|
+
p(n.$slots, "default")
|
|
32
31
|
])
|
|
33
32
|
])
|
|
34
33
|
],
|
|
@@ -36,7 +35,7 @@ function f(s, g, c, e, k, x) {
|
|
|
36
35
|
/* CLASS */
|
|
37
36
|
);
|
|
38
37
|
}
|
|
39
|
-
const y = /* @__PURE__ */ _(
|
|
38
|
+
const y = /* @__PURE__ */ _(d, [["render", f], ["__file", "/builds/ketjo/nmorph/library/src/components/form/nmorph-checkbox-group/NmorphCheckboxGroup.vue"]]);
|
|
40
39
|
export {
|
|
41
40
|
y as default
|
|
42
41
|
};
|
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
import './NmorphCheckboxGroup.css';
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { useModifiers as
|
|
4
|
-
import { useFormItemModel as
|
|
5
|
-
import
|
|
6
|
-
const N = /* @__PURE__ */
|
|
2
|
+
import { defineComponent as b, ref as v, watch as y, computed as d, provide as a } from "vue";
|
|
3
|
+
import { useModifiers as g } from "../../../utils/create-modifiers.js";
|
|
4
|
+
import { useFormItemModel as k } from "../nmorph-form/use-form-item-input.js";
|
|
5
|
+
import q from "../nmorph-checkbox/NmorphCheckbox.vue.js";
|
|
6
|
+
const N = /* @__PURE__ */ b({
|
|
7
7
|
__name: "NmorphCheckboxGroup",
|
|
8
8
|
props: {
|
|
9
|
-
modelValue: { type: Array, required: !1, default: () => [] },
|
|
10
|
-
options: { type: Array, required: !1, default: () => [] },
|
|
11
|
-
design: { type: String, required: !1, default: "button" },
|
|
12
|
-
direction: { type: null, required: !1, default: "row" },
|
|
13
|
-
height: { type: null, required: !1, default: "thin" },
|
|
14
9
|
id: { type: String, required: !1 },
|
|
15
10
|
name: { type: String, required: !1 },
|
|
16
11
|
autocomplete: { type: String, required: !1 },
|
|
17
12
|
disabled: { type: Boolean, required: !1, default: !1 },
|
|
18
|
-
tabindex: { type: Number, required: !1 }
|
|
13
|
+
tabindex: { type: Number, required: !1 },
|
|
14
|
+
modelValue: { type: Array, required: !1, default: () => [] },
|
|
15
|
+
options: { type: Array, required: !1, default: () => [] },
|
|
16
|
+
direction: { type: null, required: !1, default: "row" },
|
|
17
|
+
design: { type: String, required: !1, default: "nmorph" },
|
|
18
|
+
thickness: { type: null, required: !1, default: "basic" }
|
|
19
19
|
},
|
|
20
20
|
emits: ["update:model-value"],
|
|
21
|
-
setup(
|
|
21
|
+
setup(p, { expose: c, emit: m }) {
|
|
22
22
|
c();
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
(
|
|
23
|
+
const t = p, u = m, { modelValue: o, updateModelValue: l } = k(
|
|
24
|
+
t,
|
|
25
|
+
(r) => u("update:model-value", r),
|
|
26
26
|
[]
|
|
27
|
-
), e =
|
|
28
|
-
|
|
27
|
+
), e = v([...o.value]);
|
|
28
|
+
y(
|
|
29
29
|
o,
|
|
30
|
-
(
|
|
31
|
-
e.value = [...
|
|
30
|
+
(r) => {
|
|
31
|
+
e.value = [...r];
|
|
32
32
|
},
|
|
33
33
|
{ deep: !0 }
|
|
34
34
|
);
|
|
35
|
-
const i = (
|
|
36
|
-
e.value = e.value.includes(
|
|
37
|
-
},
|
|
38
|
-
() =>
|
|
39
|
-
"nmorph-checkbox-group": [
|
|
35
|
+
const i = (r) => {
|
|
36
|
+
e.value = e.value.includes(r) ? e.value.filter((h) => h !== r) : [...e.value, r], l(e.value);
|
|
37
|
+
}, f = d(
|
|
38
|
+
() => g({
|
|
39
|
+
"nmorph-checkbox-group": [t.design, t.direction]
|
|
40
40
|
})
|
|
41
|
-
),
|
|
42
|
-
|
|
43
|
-
const n = { props:
|
|
44
|
-
return
|
|
41
|
+
), s = d(() => t.thickness);
|
|
42
|
+
a("checkbox-group-selected-value", e), a("change-checkbox-value-handler", i), a("checkbox-group-thickness", s);
|
|
43
|
+
const n = { props: t, emit: u, modelValue: o, updateModelValue: l, initialValue: e, changeHandler: i, modifiers: f, thickness: s, get NmorphCheckbox() {
|
|
44
|
+
return q;
|
|
45
45
|
} };
|
|
46
46
|
return Object.defineProperty(n, "__isScriptSetup", { enumerable: !1, value: !0 }), n;
|
|
47
47
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.nmorph-color-picker{display:inline-flex;flex:0 0 auto;flex-direction:column;align-items:flex-start;width:fit-content;max-width:100%}.nmorph-color-picker .nmorph-color-picker__content{position:relative;display:inline-flex;gap:var(--indentation-03);align-items:center;width:fit-content;max-width:100%;height:var(--height);padding:0 var(--default-indentation-input);background:var(--nmorph-main-color);border-radius:var(--default-border-radius);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-color-picker .nmorph-color-picker__native{position:absolute;width:100%;height:100%;cursor:pointer;opacity:0;inset:0}.nmorph-color-picker .nmorph-color-picker__swatch{flex:0 0 auto;width:calc(var(--height) - var(--indentation-03));height:calc(var(--height) - var(--indentation-03));border-radius:var(--default-border-radius);box-shadow:inset 0 0 0 1px #ffffff40,0 0 0 1px #0000001f}.nmorph-color-picker .nmorph-color-picker__value{flex:0 0 7ch;width:7ch;min-width:7ch;overflow:hidden;font-weight:
|
|
1
|
+
.nmorph-color-picker{display:inline-flex;flex:0 0 auto;flex-direction:column;align-items:flex-start;width:fit-content;max-width:100%}.nmorph-color-picker .nmorph-color-picker__content{position:relative;display:inline-flex;gap:var(--indentation-03);align-items:center;width:fit-content;max-width:100%;height:var(--nmorph-private-control-height);padding:0 var(--default-indentation-input);background:var(--nmorph-main-color);border-radius:var(--default-border-radius);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-color-picker .nmorph-color-picker__native{position:absolute;width:100%;height:100%;cursor:pointer;opacity:0;inset:0}.nmorph-color-picker .nmorph-color-picker__swatch{flex:0 0 auto;width:calc(var(--nmorph-private-control-height) - var(--indentation-03));height:calc(var(--nmorph-private-control-height) - var(--indentation-03));border-radius:var(--default-border-radius);box-shadow:inset 0 0 0 1px #ffffff40,0 0 0 1px #0000001f}.nmorph-color-picker .nmorph-color-picker__value{flex:0 0 7ch;width:7ch;min-width:7ch;overflow:hidden;font-weight:var(--nmorph-private-control-font-weight);font-size:var(--nmorph-private-control-font-size);font-family:var(--font-family-mono);line-height:var(--nmorph-private-control-line-height);white-space:nowrap;text-overflow:ellipsis;transform:translateY(var(--nmorph-private-control-text-offset-y));user-select:none;font-variant-numeric:tabular-nums;font-feature-settings:"tnum"}.nmorph-color-picker.nmorph-color-picker--rgb .nmorph-color-picker__value{flex-basis:18ch;width:18ch;min-width:18ch}.nmorph-color-picker.nmorph-color-picker--hsl .nmorph-color-picker__value{flex-basis:20ch;width:20ch;min-width:20ch}.nmorph-color-picker.nmorph--focused .nmorph-color-picker__content{background:var(--nmorph-accent-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-color-picker.nmorph--focused .nmorph-color-picker__value{color:var(--nmorph-focus-text-color)}.nmorph-color-picker.nmorph-color-picker--disabled{cursor:not-allowed;opacity:.6}.nmorph-color-picker.nmorph-color-picker--disabled .nmorph-color-picker__content{pointer-events:none}
|