@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,81 +1,83 @@
|
|
|
1
1
|
import './NmorphCalendar.css';
|
|
2
2
|
import f from "./NmorphCalendar.vue2.js";
|
|
3
|
-
import { openBlock as o, createElementBlock as
|
|
3
|
+
import { openBlock as o, createElementBlock as n, normalizeStyle as k, normalizeClass as h, renderSlot as r, createVNode as s, withCtx as l, Fragment as c, renderList as y, createBlock as D, createElementVNode as C, createTextVNode as _, toDisplayString as m } from "vue";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import v from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
-
const
|
|
7
|
-
function
|
|
8
|
-
return o(),
|
|
6
|
+
const g = ["data-date", "onClick"];
|
|
7
|
+
function T(d, p, B, a, M, w) {
|
|
8
|
+
return o(), n(
|
|
9
9
|
"div",
|
|
10
10
|
{
|
|
11
|
-
class:
|
|
11
|
+
class: h(a.modifiers),
|
|
12
12
|
style: k(a.styles)
|
|
13
13
|
},
|
|
14
14
|
[
|
|
15
|
-
|
|
15
|
+
r(d.$slots, "header", {}, () => [
|
|
16
16
|
s(a.NmorphCalendarHeader, {
|
|
17
17
|
year: a.initialDate.getFullYear(),
|
|
18
18
|
month: a.initialDate.getMonth(),
|
|
19
|
+
design: a.props.design,
|
|
19
20
|
"show-previous-month-button": a.showHeaderButtons.showPreviousMonthButton,
|
|
20
21
|
"show-today-button": a.showHeaderButtons.showTodayButton,
|
|
21
22
|
"show-next-month-button": a.showHeaderButtons.showNextMonthButton,
|
|
22
23
|
onClickNextMonth: a.setNextMonth,
|
|
23
24
|
onClickPreviousMonth: a.setPreviousMonth,
|
|
24
25
|
onClickToday: a.setTodayMonth
|
|
25
|
-
}, null, 8, ["year", "month", "show-previous-month-button", "show-today-button", "show-next-month-button"])
|
|
26
|
+
}, null, 8, ["year", "month", "design", "show-previous-month-button", "show-today-button", "show-next-month-button"])
|
|
26
27
|
]),
|
|
27
|
-
|
|
28
|
+
r(d.$slots, "content", {}, () => [
|
|
28
29
|
s(a.NmorphTable, {
|
|
29
30
|
data: a.calendar,
|
|
30
31
|
bordered: "",
|
|
31
|
-
"row-hover": !1
|
|
32
|
+
"row-hover": !1,
|
|
33
|
+
design: a.props.design
|
|
32
34
|
}, {
|
|
33
35
|
default: l(() => [
|
|
34
|
-
(o(!0),
|
|
36
|
+
(o(!0), n(
|
|
35
37
|
c,
|
|
36
38
|
null,
|
|
37
|
-
y(a.days, (
|
|
38
|
-
key: `${
|
|
39
|
-
prop:
|
|
40
|
-
label:
|
|
39
|
+
y(a.days, (e) => (o(), D(a.NmorphTableColumn, {
|
|
40
|
+
key: `${e}`,
|
|
41
|
+
prop: e,
|
|
42
|
+
label: e.toUpperCase()
|
|
41
43
|
}, {
|
|
42
44
|
default: l(({ scope: b }) => [
|
|
43
|
-
(o(!0),
|
|
45
|
+
(o(!0), n(
|
|
44
46
|
c,
|
|
45
47
|
null,
|
|
46
|
-
y(b.rows, (
|
|
47
|
-
key:
|
|
48
|
-
row:
|
|
48
|
+
y(b.rows, (t, i) => (o(), D(a.NmorphTableCell, {
|
|
49
|
+
key: i,
|
|
50
|
+
row: i
|
|
49
51
|
}, {
|
|
50
52
|
default: l(() => [
|
|
51
53
|
C("div", {
|
|
52
|
-
"data-date": `${a.dateData(e
|
|
53
|
-
class:
|
|
54
|
+
"data-date": `${a.dateData(t[e]).date}`,
|
|
55
|
+
class: h([
|
|
54
56
|
"nmorph-calendar-date",
|
|
55
|
-
`nmorph-calendar-date--${a.dateData(e
|
|
57
|
+
`nmorph-calendar-date--${a.dateData(t[e]).monthType}`,
|
|
56
58
|
{
|
|
57
|
-
"nmorph-calendar-date--today": a.dateData(e
|
|
59
|
+
"nmorph-calendar-date--today": a.dateData(t[e]).isToday && !a.dateData(t[e]).hidden && a.props.markToday
|
|
58
60
|
},
|
|
59
|
-
{ "nmorph-calendar-date--hidden": a.dateData(e
|
|
61
|
+
{ "nmorph-calendar-date--hidden": a.dateData(t[e]).hidden },
|
|
60
62
|
{
|
|
61
|
-
"nmorph-calendar-date--selected": a.isValueSelected(a.dateData(e
|
|
63
|
+
"nmorph-calendar-date--selected": a.isValueSelected(a.dateData(t[e]).date)
|
|
62
64
|
}
|
|
63
65
|
]),
|
|
64
|
-
onClick: (
|
|
66
|
+
onClick: (x) => a.clickDate(a.dateData(t[e]))
|
|
65
67
|
}, [
|
|
66
|
-
|
|
68
|
+
r(d.$slots, "date-cell", {
|
|
67
69
|
scope: {
|
|
68
|
-
...a.dateData(e
|
|
69
|
-
selected: a.isValueSelected(a.dateData(e
|
|
70
|
+
...a.dateData(t[e]),
|
|
71
|
+
selected: a.isValueSelected(a.dateData(t[e]).date)
|
|
70
72
|
}
|
|
71
73
|
}, () => [
|
|
72
74
|
_(
|
|
73
|
-
m(a.dateData(e
|
|
75
|
+
m(a.dateData(t[e]).hidden ? "-" : a.dateData(t[e]).value),
|
|
74
76
|
1
|
|
75
77
|
/* TEXT */
|
|
76
78
|
)
|
|
77
79
|
])
|
|
78
|
-
], 10,
|
|
80
|
+
], 10, g)
|
|
79
81
|
]),
|
|
80
82
|
_: 2
|
|
81
83
|
/* DYNAMIC */
|
|
@@ -93,14 +95,14 @@ function B(d, M, p, a, w, x) {
|
|
|
93
95
|
]),
|
|
94
96
|
_: 3
|
|
95
97
|
/* FORWARDED */
|
|
96
|
-
}, 8, ["data"])
|
|
98
|
+
}, 8, ["data", "design"])
|
|
97
99
|
])
|
|
98
100
|
],
|
|
99
101
|
6
|
|
100
102
|
/* CLASS, STYLE */
|
|
101
103
|
);
|
|
102
104
|
}
|
|
103
|
-
const z = /* @__PURE__ */ v(f, [["render",
|
|
105
|
+
const z = /* @__PURE__ */ v(f, [["render", T], ["__file", "/builds/ketjo/nmorph/library/src/components/data/nmorph-calendar/NmorphCalendar.vue"]]);
|
|
104
106
|
export {
|
|
105
107
|
z as default
|
|
106
108
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './NmorphCalendar.css';
|
|
2
|
-
import { defineComponent as R, ref as x, onMounted as O, reactive as k, watch as v, computed as
|
|
2
|
+
import { defineComponent as R, ref as x, onMounted as O, reactive as k, watch as v, computed as s } from "vue";
|
|
3
3
|
import { useModifiers as j } from "../../../utils/create-modifiers.js";
|
|
4
4
|
import { createCssSizeVariables as z } from "../../../utils/common.js";
|
|
5
5
|
import W from "./inner-components/nmorph-calendar-header/NmorphCalendarHeader.vue.js";
|
|
@@ -16,17 +16,18 @@ const ue = /* @__PURE__ */ R({
|
|
|
16
16
|
range: { type: null, required: !1, default: void 0 },
|
|
17
17
|
type: { type: null, required: !1, default: "date" },
|
|
18
18
|
modelValue: { type: [Date, Array, null], required: !1, default: () => /* @__PURE__ */ new Date() },
|
|
19
|
-
cellHeight: { type: [Number, String], required: !1, default: void 0 }
|
|
19
|
+
cellHeight: { type: [Number, String], required: !1, default: void 0 },
|
|
20
|
+
design: { type: null, required: !1, default: "nmorph" }
|
|
20
21
|
},
|
|
21
22
|
emits: ["update:model-value", "update-initial-date"],
|
|
22
23
|
setup(N, { expose: b, emit: _ }) {
|
|
23
24
|
b();
|
|
24
|
-
const r = N,
|
|
25
|
-
|
|
25
|
+
const r = N, i = _, { days: h } = Z(), y = () => {
|
|
26
|
+
l.value = M.value;
|
|
26
27
|
}, C = () => {
|
|
27
|
-
|
|
28
|
+
l.value = /* @__PURE__ */ new Date();
|
|
28
29
|
}, g = () => {
|
|
29
|
-
|
|
30
|
+
l.value = A.value;
|
|
30
31
|
}, u = () => {
|
|
31
32
|
throw new Error("model value and type prop not matched");
|
|
32
33
|
}, c = (e) => {
|
|
@@ -36,36 +37,36 @@ const ue = /* @__PURE__ */ R({
|
|
|
36
37
|
return d(e);
|
|
37
38
|
u();
|
|
38
39
|
}
|
|
39
|
-
const
|
|
40
|
+
const o = Array.isArray(e) && e.every((a) => a instanceof Date);
|
|
40
41
|
if (r.type === "dates") {
|
|
41
|
-
if (
|
|
42
|
+
if (o)
|
|
42
43
|
return e.map((a) => d(a));
|
|
43
44
|
u();
|
|
44
45
|
}
|
|
45
46
|
if (r.type === "daterange") {
|
|
46
|
-
if (
|
|
47
|
+
if (o)
|
|
47
48
|
return e.map((a) => d(a)).slice(0, 2);
|
|
48
49
|
u();
|
|
49
50
|
}
|
|
50
|
-
},
|
|
51
|
+
}, q = (e) => {
|
|
51
52
|
if (t.value === null) return;
|
|
52
|
-
const { monthType:
|
|
53
|
+
const { monthType: o, hidden: a } = e;
|
|
53
54
|
if (a) return;
|
|
54
|
-
|
|
55
|
+
o === "next" && g(), o === "previous" && y();
|
|
55
56
|
const { date: n } = e;
|
|
56
|
-
if (r.type === "date" && (t.value = n,
|
|
57
|
+
if (r.type === "date" && (t.value = n, i("update:model-value", t.value)), r.type === "dates") {
|
|
57
58
|
if (!Array.isArray(t.value)) return u();
|
|
58
59
|
const m = n.toDateString(), w = t.value.map((P) => P.toDateString()).indexOf(m);
|
|
59
|
-
w !== -1 ? t.value.splice(w, 1) : t.value.push(n),
|
|
60
|
+
w !== -1 ? t.value.splice(w, 1) : t.value.push(n), i("update:model-value", t.value);
|
|
60
61
|
}
|
|
61
62
|
if (r.type === "daterange") {
|
|
62
63
|
if (!Array.isArray(t.value)) return u();
|
|
63
|
-
t.value.length === 0 ? t.value.push(n) : t.value.length === 1 ? n < t.value[0] ? t.value = [n, t.value[0]] : t.value.push(n) : t.value = [n],
|
|
64
|
+
t.value.length === 0 ? t.value.push(n) : t.value.length === 1 ? n < t.value[0] ? t.value = [n, t.value[0]] : t.value.push(n) : t.value = [n], i("update:model-value", t.value.slice(0, 2));
|
|
64
65
|
}
|
|
65
|
-
}, D = (e,
|
|
66
|
-
const [a, n] =
|
|
67
|
-
return
|
|
68
|
-
},
|
|
66
|
+
}, D = (e, o) => {
|
|
67
|
+
const [a, n] = o;
|
|
68
|
+
return o.length === 1 ? e.toDateString() === a.toDateString() : a && n ? e >= d(a) && e <= d(n) : !1;
|
|
69
|
+
}, B = (e) => {
|
|
69
70
|
if (t.value === null) return !1;
|
|
70
71
|
if (r.type === "date")
|
|
71
72
|
return Array.isArray(t.value) ? u() : t.value.toDateString() === e.toDateString();
|
|
@@ -73,15 +74,15 @@ const ue = /* @__PURE__ */ R({
|
|
|
73
74
|
return Array.isArray(t.value) ? !!t.value.find((a) => a.toDateString() === e.toDateString()) : u();
|
|
74
75
|
if (r.type === "daterange")
|
|
75
76
|
return Array.isArray(t.value) ? D(e, t.value) : u();
|
|
76
|
-
},
|
|
77
|
+
}, l = x(r.initialDate), t = x(c(r.modelValue));
|
|
77
78
|
O(() => {
|
|
78
|
-
|
|
79
|
+
i("update:model-value", t.value);
|
|
79
80
|
});
|
|
80
81
|
let p = k([]);
|
|
81
82
|
const f = () => {
|
|
82
|
-
p = [], K(
|
|
83
|
+
p = [], K(l, r.range).forEach((o) => {
|
|
83
84
|
const a = {};
|
|
84
|
-
|
|
85
|
+
o.forEach((n, m) => {
|
|
85
86
|
const T = h[m];
|
|
86
87
|
a[T] = n;
|
|
87
88
|
}), p.push(a);
|
|
@@ -90,41 +91,41 @@ const ue = /* @__PURE__ */ R({
|
|
|
90
91
|
v(
|
|
91
92
|
() => r.initialDate,
|
|
92
93
|
(e) => {
|
|
93
|
-
|
|
94
|
+
l.value = e;
|
|
94
95
|
},
|
|
95
96
|
{
|
|
96
97
|
deep: !0
|
|
97
98
|
}
|
|
98
|
-
), v(
|
|
99
|
-
f(),
|
|
99
|
+
), v(l, () => {
|
|
100
|
+
f(), i("update-initial-date", l.value);
|
|
100
101
|
}), v(
|
|
101
102
|
() => r.modelValue,
|
|
102
103
|
(e) => {
|
|
103
104
|
t.value = c(e);
|
|
104
105
|
}
|
|
105
106
|
);
|
|
106
|
-
const M =
|
|
107
|
-
const { range: e } = r,
|
|
107
|
+
const M = s(() => new Date(l.value.setMonth(l.value.getMonth() - 1))), A = s(() => new Date(l.value.setMonth(l.value.getMonth() + 1))), V = s(() => {
|
|
108
|
+
const { range: e } = r, o = e ? F(l.value, e[0]) : !0, a = e ? G(l.value, e[1]) : !0, n = J(e);
|
|
108
109
|
return {
|
|
109
|
-
showPreviousMonthButton:
|
|
110
|
+
showPreviousMonthButton: o,
|
|
110
111
|
showNextMonthButton: a,
|
|
111
112
|
showTodayButton: n
|
|
112
113
|
};
|
|
113
|
-
}), E =
|
|
114
|
+
}), E = s(
|
|
114
115
|
() => j({
|
|
115
116
|
"nmorph-calendar": []
|
|
116
117
|
})
|
|
117
|
-
), H =
|
|
118
|
+
), H = s(
|
|
118
119
|
() => z({
|
|
119
|
-
"--
|
|
120
|
+
"--nmorph-private-calendar-cell-height": r.cellHeight
|
|
120
121
|
})
|
|
121
122
|
), I = (e) => e;
|
|
122
123
|
f();
|
|
123
|
-
const S = { props: r, emit:
|
|
124
|
+
const S = { props: r, emit: i, days: h, setPreviousMonth: y, setTodayMonth: C, setNextMonth: g, wrongType: u, convertValue: c, clickDate: q, isDateInRange: D, isValueSelected: B, initialDate: l, selectedValue: t, get calendar() {
|
|
124
125
|
return p;
|
|
125
126
|
}, set calendar(e) {
|
|
126
127
|
p = e;
|
|
127
|
-
}, updateCalendar: f, prevMonth: M, nextMonth: A, showHeaderButtons:
|
|
128
|
+
}, updateCalendar: f, prevMonth: M, nextMonth: A, showHeaderButtons: V, modifiers: E, styles: H, dateData: I, get NmorphTable() {
|
|
128
129
|
return U;
|
|
129
130
|
}, get NmorphTableColumn() {
|
|
130
131
|
return Q;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.nmorph-calendar-header{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;margin-bottom:8px}.nmorph-calendar-header .nmorph-calendar-header__actions{display:flex}.nmorph-calendar-header .nmorph-calendar-header__action:nth-child(2){margin:0 var(--indentation-03)}.nmorph-calendar-header .nmorph-calendar-header__text{width:160px;margin-right:8px;font-weight:
|
|
1
|
+
.nmorph-calendar-header{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;margin-bottom:8px}.nmorph-calendar-header .nmorph-calendar-header__actions{display:flex}.nmorph-calendar-header .nmorph-calendar-header__action:nth-child(2){margin:0 var(--indentation-03)}.nmorph-calendar-header .nmorph-calendar-header__text{width:160px;margin-right:8px;font-weight:var(--font-weight-extrabold);font-size:var(--nmorph-typography-title-large-font-size);line-height:var(--nmorph-typography-title-large-line-height)}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import './NmorphCalendarHeader.css';
|
|
2
|
-
import
|
|
3
|
-
import { openBlock as
|
|
2
|
+
import h from "./NmorphCalendarHeader.vue2.js";
|
|
3
|
+
import { openBlock as n, createElementBlock as _, normalizeClass as f, renderSlot as p, createElementVNode as m, toDisplayString as c, createBlock as d, withCtx as r, createVNode as t, createCommentVNode as i } from "vue";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import N from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
-
const k = { class: "nmorph-calendar-header__text" },
|
|
7
|
-
function
|
|
8
|
-
return
|
|
6
|
+
const k = { class: "nmorph-calendar-header__text" }, g = { class: "nmorph-calendar-header__actions" };
|
|
7
|
+
function v(s, e, a, o, y, B) {
|
|
8
|
+
return n(), _(
|
|
9
9
|
"div",
|
|
10
10
|
{
|
|
11
11
|
class: f(o.modifiers)
|
|
12
12
|
},
|
|
13
13
|
[
|
|
14
|
-
p(
|
|
14
|
+
p(s.$slots, "default", {}, () => [
|
|
15
15
|
m(
|
|
16
16
|
"div",
|
|
17
17
|
k,
|
|
@@ -19,15 +19,16 @@ function u(h, e, a, o, y, B) {
|
|
|
19
19
|
1
|
|
20
20
|
/* TEXT */
|
|
21
21
|
),
|
|
22
|
-
m("div",
|
|
23
|
-
a.showPreviousMonthButton ? (
|
|
22
|
+
m("div", g, [
|
|
23
|
+
a.showPreviousMonthButton ? (n(), d(o.NmorphButton, {
|
|
24
24
|
key: 0,
|
|
25
25
|
class: "nmorph-calendar-header__action",
|
|
26
|
-
|
|
26
|
+
design: o.props.design,
|
|
27
|
+
onClick: e[0] || (e[0] = (l) => o.emit("click-previous-month"))
|
|
27
28
|
}, {
|
|
28
|
-
default:
|
|
29
|
+
default: r(() => [
|
|
29
30
|
t(o.NmorphIcon, null, {
|
|
30
|
-
default:
|
|
31
|
+
default: r(() => [
|
|
31
32
|
t(o.NmorphIconArrowLeft)
|
|
32
33
|
]),
|
|
33
34
|
_: 1
|
|
@@ -36,21 +37,23 @@ function u(h, e, a, o, y, B) {
|
|
|
36
37
|
]),
|
|
37
38
|
_: 1
|
|
38
39
|
/* STABLE */
|
|
39
|
-
})) :
|
|
40
|
-
a.showTodayButton ? (
|
|
40
|
+
}, 8, ["design"])) : i("v-if", !0),
|
|
41
|
+
a.showTodayButton ? (n(), d(o.NmorphButton, {
|
|
41
42
|
key: 1,
|
|
42
43
|
class: "nmorph-calendar-header__action",
|
|
43
44
|
text: "Today",
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
design: o.props.design,
|
|
46
|
+
onClick: e[1] || (e[1] = (l) => o.emit("click-today"))
|
|
47
|
+
}, null, 8, ["design"])) : i("v-if", !0),
|
|
48
|
+
a.showNextMonthButton ? (n(), d(o.NmorphButton, {
|
|
47
49
|
key: 2,
|
|
48
50
|
class: "nmorph-calendar-header__action",
|
|
49
|
-
|
|
51
|
+
design: o.props.design,
|
|
52
|
+
onClick: e[2] || (e[2] = (l) => o.emit("click-next-month"))
|
|
50
53
|
}, {
|
|
51
|
-
default:
|
|
54
|
+
default: r(() => [
|
|
52
55
|
t(o.NmorphIcon, null, {
|
|
53
|
-
default:
|
|
56
|
+
default: r(() => [
|
|
54
57
|
t(o.NmorphIconArrowRight)
|
|
55
58
|
]),
|
|
56
59
|
_: 1
|
|
@@ -59,7 +62,7 @@ function u(h, e, a, o, y, B) {
|
|
|
59
62
|
]),
|
|
60
63
|
_: 1
|
|
61
64
|
/* STABLE */
|
|
62
|
-
})) :
|
|
65
|
+
}, 8, ["design"])) : i("v-if", !0)
|
|
63
66
|
])
|
|
64
67
|
])
|
|
65
68
|
],
|
|
@@ -67,7 +70,7 @@ function u(h, e, a, o, y, B) {
|
|
|
67
70
|
/* CLASS */
|
|
68
71
|
);
|
|
69
72
|
}
|
|
70
|
-
const
|
|
73
|
+
const I = /* @__PURE__ */ N(h, [["render", v], ["__file", "/builds/ketjo/nmorph/library/src/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/NmorphCalendarHeader.vue"]]);
|
|
71
74
|
export {
|
|
72
|
-
|
|
75
|
+
I as default
|
|
73
76
|
};
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import './NmorphCalendarHeader.css';
|
|
2
2
|
import { defineComponent as u, computed as i } from "vue";
|
|
3
3
|
import { useModifiers as h } from "../../../../../utils/create-modifiers.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
4
|
+
import s from "../../../../../assets/icons/arrow-right.svg.js";
|
|
5
|
+
import a from "../../../../../assets/icons/arrow-left.svg.js";
|
|
6
|
+
import c from "../../../../basic/nmorph-icon/NmorphIcon.vue.js";
|
|
7
7
|
import { getMonthName as d } from "../../utils.js";
|
|
8
8
|
import f from "../../../../basic/nmorph-button/NmorphButton.vue.js";
|
|
9
|
-
const
|
|
9
|
+
const q = /* @__PURE__ */ u({
|
|
10
10
|
__name: "NmorphCalendarHeader",
|
|
11
11
|
props: {
|
|
12
12
|
year: { type: Number, required: !0 },
|
|
13
13
|
month: { type: Number, required: !0 },
|
|
14
14
|
showPreviousMonthButton: { type: Boolean, required: !0 },
|
|
15
15
|
showNextMonthButton: { type: Boolean, required: !0 },
|
|
16
|
-
showTodayButton: { type: Boolean, required: !0 }
|
|
16
|
+
showTodayButton: { type: Boolean, required: !0 },
|
|
17
|
+
design: { type: null, required: !1, default: "nmorph" }
|
|
17
18
|
},
|
|
18
19
|
emits: ["click-previous-month", "click-today", "click-next-month"],
|
|
19
20
|
setup(r, { expose: o, emit: t }) {
|
|
@@ -27,15 +28,15 @@ const I = /* @__PURE__ */ u({
|
|
|
27
28
|
}, get getMonthName() {
|
|
28
29
|
return d;
|
|
29
30
|
}, get NmorphIcon() {
|
|
30
|
-
return
|
|
31
|
+
return c;
|
|
31
32
|
}, get NmorphIconArrowLeft() {
|
|
32
|
-
return
|
|
33
|
+
return a;
|
|
33
34
|
}, get NmorphIconArrowRight() {
|
|
34
|
-
return
|
|
35
|
+
return s;
|
|
35
36
|
} };
|
|
36
37
|
return Object.defineProperty(e, "__isScriptSetup", { enumerable: !1, value: !0 }), e;
|
|
37
38
|
}
|
|
38
39
|
});
|
|
39
40
|
export {
|
|
40
|
-
|
|
41
|
+
q as default
|
|
41
42
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.nmorph-card{--card-padding: var(--indentation-04);display:flex;flex-direction:column;width:fit-content;max-width:100%;padding:var(--card-padding);border-radius:var(--nmorph-card-radius, var(--default-border-radius))}.nmorph-card.nmorph-card--fill{width:100%}.nmorph-card .nmorph-card__content{height:100%;padding:var(--nmorph-card-content-padding, 0)}.nmorph-card .nmorph-card__header{font-weight:
|
|
1
|
+
.nmorph-card{--nmorph-private-card-padding: var(--indentation-04);--nmorph-private-card-background: var(--nmorph-main-color);--nmorph-private-card-border: none;--nmorph-private-card-shadow: none;position:relative;display:flex;flex-direction:column;box-sizing:border-box;width:fit-content;max-width:100%;padding:var(--nmorph-private-card-padding);background:var(--nmorph-private-card-background);border:var(--nmorph-private-card-border);border-radius:var(--nmorph-private-card-radius, var(--default-border-radius));box-shadow:var(--nmorph-private-card-shadow)}.nmorph-card.nmorph-card--fill{width:100%}.nmorph-card .nmorph-card__content{height:100%;padding:var(--nmorph-private-card-content-padding, 0)}.nmorph-card .nmorph-card__header{font-weight:var(--nmorph-typography-title-font-weight);font-size:var(--nmorph-typography-title-font-size);line-height:var(--nmorph-typography-title-line-height)}.nmorph-card .nmorph-card__footer{height:fit-content;margin-top:4px;font-weight:var(--nmorph-typography-body-small-font-weight);font-size:var(--nmorph-typography-body-small-font-size);line-height:var(--nmorph-typography-body-small-line-height)}.nmorph-card.nmorph-card--nmorph{--nmorph-private-card-background: var(--nmorph-main-color)}.nmorph-card:not(.nmorph-card--plain).nmorph-card--outset{--nmorph-private-card-shadow: var(--nmorph-shadow-outset)}.nmorph-card:not(.nmorph-card--plain).nmorph-card--inset{--nmorph-private-card-shadow: var(--nmorph-shadow-inset)}.nmorph-card:not(.nmorph-card--plain).nmorph-card--combined{--nmorph-private-card-border: var(--nmorph-private-card-combined-border-width) solid var(--nmorph-main-color);--nmorph-private-card-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), 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(-.5 * var(--base-shadow-width)) var(--base-shadow-blur) var(--nmorph-light-shade-color)}.nmorph-card.nmorph-card--plain{--nmorph-private-card-background: var(--nmorph-main-color);--nmorph-private-card-border: var(--nmorph-plain-border);--nmorph-private-card-shadow: none}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import './NmorphCard.css';
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { useModifiers as
|
|
2
|
+
import { defineComponent as m, useSlots as c, computed as o } from "vue";
|
|
3
|
+
import { useModifiers as g } from "../../../utils/create-modifiers.js";
|
|
4
4
|
import { toCssSize as d } from "../../../utils/common.js";
|
|
5
|
-
import { NmorphShadowType as
|
|
6
|
-
const
|
|
5
|
+
import { NmorphShadowType as h } from "../../../types/common.types.js";
|
|
6
|
+
const q = /* @__PURE__ */ m({
|
|
7
7
|
__name: "NmorphCard",
|
|
8
8
|
props: {
|
|
9
|
+
design: { type: null, required: !1, default: "nmorph" },
|
|
9
10
|
shadowType: { type: null, required: !1, default: "outset" },
|
|
10
11
|
combinedShadowBorderWidth: { type: Number, required: !1, default: 0 },
|
|
11
12
|
cardPadding: { type: [Number, String], required: !1, default: void 0 },
|
|
@@ -16,27 +17,27 @@ const v = /* @__PURE__ */ f({
|
|
|
16
17
|
fill: { type: Boolean, required: !1, default: !0 },
|
|
17
18
|
tag: { type: String, required: !1, default: "div" }
|
|
18
19
|
},
|
|
19
|
-
setup(
|
|
20
|
-
|
|
21
|
-
const e =
|
|
22
|
-
() =>
|
|
23
|
-
nmorph: [
|
|
24
|
-
"nmorph-card": [e.shadowType, e.fill ? "fill" : "fit-content"]
|
|
20
|
+
setup(s, { expose: p }) {
|
|
21
|
+
p();
|
|
22
|
+
const e = s, u = c(), r = o(() => e.design || "nmorph"), l = o(
|
|
23
|
+
() => g({
|
|
24
|
+
nmorph: [r.value === "nmorph" ? h[e.shadowType] : ""],
|
|
25
|
+
"nmorph-card": [r.value, e.shadowType, e.fill ? "fill" : "fit-content"]
|
|
25
26
|
})
|
|
26
|
-
),
|
|
27
|
-
const
|
|
27
|
+
), f = o(() => {
|
|
28
|
+
const t = e.padding !== void 0 ? d(e.padding) : d(e.cardPadding), a = d(e.radius), n = d(e.contentPadding);
|
|
28
29
|
return {
|
|
29
30
|
...e.shadowType === "combined" && {
|
|
30
|
-
"--nmorph-card-combined-border-width": `${e.combinedShadowBorderWidth}px`
|
|
31
|
+
"--nmorph-private-card-combined-border-width": `${e.combinedShadowBorderWidth}px`
|
|
31
32
|
},
|
|
32
|
-
...
|
|
33
|
-
...
|
|
34
|
-
...
|
|
33
|
+
...t !== void 0 && { "--nmorph-private-card-padding": t, padding: t },
|
|
34
|
+
...a !== void 0 && { "--nmorph-private-card-radius": a },
|
|
35
|
+
...n !== void 0 && { "--nmorph-private-card-content-padding": n }
|
|
35
36
|
};
|
|
36
|
-
}),
|
|
37
|
-
return Object.defineProperty(
|
|
37
|
+
}), i = { props: e, slots: u, resolvedDesign: r, modifiers: l, styles: f };
|
|
38
|
+
return Object.defineProperty(i, "__isScriptSetup", { enumerable: !1, value: !0 }), i;
|
|
38
39
|
}
|
|
39
40
|
});
|
|
40
41
|
export {
|
|
41
|
-
|
|
42
|
+
q as default
|
|
42
43
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.nmorph-carousel{--nmorph-private-carousel-height: 500px;--nmorph-private-carousel-frame-border: 10px;position:relative;box-sizing:border-box;height:var(--nmorph-private-carousel-height);overflow:hidden;border-radius:var(--default-border-radius)}.nmorph-carousel .nmorph-carousel__wrapper{display:flex;height:100%}.nmorph-carousel .transition-enabled{transition:transform .4s ease}.nmorph-carousel .nmorph-carousel__element-indicator-wrapper{padding:4px;cursor:pointer}.nmorph-carousel .nmorph-carousel__elements-indicator{position:absolute;bottom:16px;display:flex;justify-content:center;width:100%}.nmorph-carousel .nmorph-carousel__element-indicator{width:30px;height:2px;margin-right:var(--indentation-02);background:var(--nmorph-gray-color)}.nmorph-carousel .nmorph-carousel__element-indicator--active{background:var(--nmorph-white-color)}.nmorph-carousel .nmorph-carousel__action-btn{position:absolute;top:50%;padding:var(--indentation-03);background:var(--nmorph-info-color);border-radius:var(--default-border-radius);transform:translateY(-50%);cursor:pointer}.nmorph-carousel .nmorph-carousel__action-btn:hover{background:var(--nmorph-info-color)}.nmorph-carousel .nmorph-carousel__action-btn .nmorph-icon{--nmorph-private-icon-color: var(--nmorph-white-color)}.nmorph-carousel .nmorph-carousel__prev{right:var(--indentation-02);rotate:-90deg}.nmorph-carousel .nmorph-carousel__next{left:var(--indentation-02);rotate:90deg}.nmorph-carousel .nmorph-carousel__item{flex-shrink:0;width:100%;height:100%}.nmorph-carousel--nmorph{background:var(--nmorph-main-color);border:var(--nmorph-private-carousel-frame-border) solid var(--nmorph-main-color)}.nmorph-carousel--plain{background:var(--nmorph-main-color);border:var(--nmorph-plain-border);box-shadow:none}.nmorph-carousel--plain .nmorph-carousel__action-btn{color:var(--nmorph-text-color);background:var(--nmorph-main-color);border:var(--nmorph-plain-border);box-shadow:none}.nmorph-carousel--plain .nmorph-carousel__action-btn .nmorph-icon{--nmorph-private-icon-color: currentColor}.nmorph-carousel--plain .nmorph-carousel__action-btn:hover{color:var(--nmorph-accent-color);background:var(--nmorph-main-color);border-color:var(--nmorph-accent-color)}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
+
import './NmorphCarousel.css';
|
|
1
2
|
import d from "./NmorphCarousel.vue2.js";
|
|
2
|
-
import { openBlock as o, createElementBlock as e, normalizeClass as
|
|
3
|
-
|
|
3
|
+
import { openBlock as o, createElementBlock as e, normalizeClass as c, createElementVNode as n, normalizeStyle as h, Fragment as i, renderList as s, createVNode as l, withCtx as m, renderSlot as p } from "vue";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import u from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
6
|
const v = ["id"], f = { class: "nmorph-carousel__elements-indicator" }, C = ["onClick"];
|
|
5
7
|
function k(_, N, I, r, b, w) {
|
|
6
8
|
return o(), e(
|
|
7
9
|
"div",
|
|
8
10
|
{
|
|
9
|
-
class:
|
|
11
|
+
class: c(r.modifiers)
|
|
10
12
|
},
|
|
11
13
|
[
|
|
12
14
|
n(
|
|
@@ -35,15 +37,15 @@ function k(_, N, I, r, b, w) {
|
|
|
35
37
|
(o(!0), e(
|
|
36
38
|
i,
|
|
37
39
|
null,
|
|
38
|
-
s(r.carouselData, (a,
|
|
39
|
-
key:
|
|
40
|
+
s(r.carouselData, (a, t) => (o(), e("div", {
|
|
41
|
+
key: t,
|
|
40
42
|
class: "nmorph-carousel__element-indicator-wrapper",
|
|
41
|
-
onClick: (y) => r.elementIndicator(
|
|
43
|
+
onClick: (y) => r.elementIndicator(t)
|
|
42
44
|
}, [
|
|
43
45
|
n(
|
|
44
46
|
"div",
|
|
45
47
|
{
|
|
46
|
-
class:
|
|
48
|
+
class: c(["nmorph-carousel__element-indicator", { "nmorph-carousel__element-indicator--active": r.isCurrentElementActive(t) }])
|
|
47
49
|
},
|
|
48
50
|
null,
|
|
49
51
|
2
|
|
@@ -78,13 +80,13 @@ function k(_, N, I, r, b, w) {
|
|
|
78
80
|
/* STABLE */
|
|
79
81
|
})
|
|
80
82
|
]),
|
|
81
|
-
|
|
83
|
+
p(_.$slots, "default")
|
|
82
84
|
],
|
|
83
85
|
2
|
|
84
86
|
/* CLASS */
|
|
85
87
|
);
|
|
86
88
|
}
|
|
87
|
-
const
|
|
89
|
+
const z = /* @__PURE__ */ u(d, [["render", k], ["__file", "/builds/ketjo/nmorph/library/src/components/data/nmorph-carousel/NmorphCarousel.vue"]]);
|
|
88
90
|
export {
|
|
89
|
-
|
|
91
|
+
z as default
|
|
90
92
|
};
|
|
@@ -1,39 +1,42 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import y from "
|
|
1
|
+
import './NmorphCarousel.css';
|
|
2
|
+
import { defineComponent as N, ref as p, computed as u, provide as w, watch as d } from "vue";
|
|
3
|
+
import { useModifiers as D } from "../../../utils/create-modifiers.js";
|
|
4
|
+
import { generateUUID as M } from "../../../utils/common.js";
|
|
5
|
+
import y from "../../basic/nmorph-icon/NmorphIcon.vue.js";
|
|
6
|
+
import b from "../../../assets/icons/chevron-down.svg.js";
|
|
6
7
|
const A = /* @__PURE__ */ N({
|
|
7
8
|
__name: "NmorphCarousel",
|
|
8
9
|
props: {
|
|
10
|
+
design: { type: null, required: !1, default: "nmorph" },
|
|
9
11
|
loop: { type: Boolean, required: !1, default: !0 }
|
|
10
12
|
},
|
|
11
13
|
emits: ["change"],
|
|
12
|
-
setup(
|
|
13
|
-
|
|
14
|
-
const e = p(0),
|
|
15
|
-
() =>
|
|
16
|
-
"nmorph-
|
|
14
|
+
setup(f, { expose: v, emit: h }) {
|
|
15
|
+
v();
|
|
16
|
+
const e = p(0), o = f, l = h, g = u(
|
|
17
|
+
() => D({
|
|
18
|
+
nmorph: [o.design === "nmorph" ? "shadow-outset" : ""],
|
|
19
|
+
"nmorph-carousel": [o.design]
|
|
17
20
|
})
|
|
18
|
-
),
|
|
19
|
-
|
|
20
|
-
const r =
|
|
21
|
-
const m =
|
|
21
|
+
), a = p([]), s = M();
|
|
22
|
+
w("carousel-data", { data: a, carouselId: s });
|
|
23
|
+
const r = u(() => a.value.length), i = (t) => r.value ? o.loop ? (t + r.value) % r.value : Math.min(Math.max(t, 0), r.value - 1) : 0, n = (t) => {
|
|
24
|
+
const m = i(t);
|
|
22
25
|
m !== e.value && (e.value = m);
|
|
23
|
-
},
|
|
24
|
-
|
|
26
|
+
}, _ = () => n(e.value - 1), I = () => n(e.value + 1), S = u(() => `translateX(-${e.value * 100}%)`), x = (t) => t === e.value, C = (t) => {
|
|
27
|
+
n(t);
|
|
25
28
|
};
|
|
26
29
|
d(r, (t) => {
|
|
27
30
|
e.value > t - 1 && (e.value = Math.max(t - 1, 0));
|
|
28
31
|
}), d(e, () => {
|
|
29
32
|
l("change", e.value);
|
|
30
33
|
});
|
|
31
|
-
const
|
|
32
|
-
return b;
|
|
33
|
-
}, get NmorphIconChevronDown() {
|
|
34
|
+
const c = { currentSlide: e, props: o, emit: l, modifiers: g, carouselData: a, carouselId: s, slideCount: r, normalizeSlideIndex: i, goToSlide: n, prevSlide: _, nextSlide: I, translateX: S, isCurrentElementActive: x, elementIndicator: C, get NmorphIcon() {
|
|
34
35
|
return y;
|
|
36
|
+
}, get NmorphIconChevronDown() {
|
|
37
|
+
return b;
|
|
35
38
|
} };
|
|
36
|
-
return Object.defineProperty(
|
|
39
|
+
return Object.defineProperty(c, "__isScriptSetup", { enumerable: !1, value: !0 }), c;
|
|
37
40
|
}
|
|
38
41
|
});
|
|
39
42
|
export {
|