@nmorph/nmorph-ui-kit 2.2.37 → 2.2.39
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/components/basic/nmorph-button/NmorphButton.vue2.js +4 -4
- package/dist/components/basic/nmorph-layout/NmorphLayout.vue2.js +12 -10
- package/dist/components/basic/nmorph-link/NmorphLink.vue2.js +19 -16
- package/dist/components/data/nmorph-badge/NmorphBadge.css +1 -1
- package/dist/components/data/nmorph-badge/NmorphBadge.vue2.js +30 -26
- package/dist/components/data/nmorph-calendar/NmorphCalendar.vue2.js +42 -40
- package/dist/components/data/nmorph-card/NmorphCard.vue2.js +16 -13
- package/dist/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue2.js +24 -21
- package/dist/components/data/nmorph-empty/NmorphEmpty.vue2.js +23 -21
- package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue.js +43 -42
- package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue2.js +47 -45
- package/dist/components/data/nmorph-progress/NmorphProgress.vue2.js +18 -14
- package/dist/components/data/nmorph-qr-code/NmorphQRCode.vue2.js +15 -11
- package/dist/components/data/nmorph-skeleton/NmorphSkeleton.vue2.js +15 -12
- package/dist/components/data/nmorph-table/NmorphTable.vue2.js +44 -40
- package/dist/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.vue2.js +1 -1
- package/dist/components/data/nmorph-virtual-list/NmorphVirtualList.vue2.js +21 -19
- package/dist/components/feedback/nmorph-alert/NmorphAlert.vue2.js +27 -24
- package/dist/components/feedback/nmorph-callout/NmorphCallout.vue2.js +19 -15
- package/dist/components/feedback/nmorph-drawer/NmorphDrawer.vue2.js +10 -8
- package/dist/components/feedback/nmorph-tooltip/NmorphTooltip.vue2.js +25 -23
- package/dist/components/form/nmorph-autocomplete/NmorphAutocomplete.vue2.js +66 -64
- package/dist/components/form/nmorph-checkbox/NmorphCheckbox.css +1 -1
- package/dist/components/form/nmorph-checkbox/NmorphCheckbox.vue2.js +28 -26
- package/dist/components/form/nmorph-checkbox-group/NmorphCheckboxGroup.vue2.js +25 -20
- package/dist/components/form/nmorph-color-picker/NmorphColorPicker.vue.js +18 -22
- package/dist/components/form/nmorph-color-picker/NmorphColorPicker.vue2.js +52 -42
- package/dist/components/form/nmorph-date-picker/NmorphDatePicker.vue2.js +52 -40
- package/dist/components/form/nmorph-file-upload/NmorphFileUpload.css +1 -1
- package/dist/components/form/nmorph-file-upload/NmorphFileUpload.vue.js +20 -16
- package/dist/components/form/nmorph-file-upload/NmorphFileUpload.vue2.js +96 -98
- package/dist/components/form/nmorph-form/NmorphForm.vue2.js +9 -9
- 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.vue2.js +33 -24
- package/dist/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-error-box/NmorphErrorBox.vue2.js +4 -4
- package/dist/components/form/nmorph-form/use-form-item-input.js +29 -8
- package/dist/components/form/nmorph-number-input/NmorphNumberInput.vue2.js +41 -35
- package/dist/components/form/nmorph-otp-input/NmorphOTPInput.vue2.js +65 -61
- package/dist/components/form/nmorph-radio/NmorphRadio.css +1 -1
- package/dist/components/form/nmorph-radio/NmorphRadio.vue2.js +1 -1
- package/dist/components/form/nmorph-radio-group/NmorphRadioGroup.vue2.js +24 -22
- package/dist/components/form/nmorph-select/NmorphSelect.css +1 -1
- package/dist/components/form/nmorph-select/NmorphSelect.vue2.js +90 -78
- package/dist/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.vue2.js +21 -18
- package/dist/components/form/nmorph-select-button/NmorphSelectButton.vue2.js +31 -25
- package/dist/components/form/nmorph-slider/NmorphSlider.vue2.js +50 -49
- package/dist/components/form/nmorph-switch/NmorphSwitch.vue2.js +35 -32
- package/dist/components/form/nmorph-text-input/NmorphTextInput.css +1 -1
- package/dist/components/form/nmorph-text-input/NmorphTextInput.vue.js +17 -17
- package/dist/components/form/nmorph-text-input/NmorphTextInput.vue2.js +41 -35
- package/dist/components/form/nmorph-textarea/NmorphTextarea.vue.js +13 -13
- package/dist/components/form/nmorph-textarea/NmorphTextarea.vue2.js +38 -32
- package/dist/components/form/nmorph-time-picker/NmorphTimePicker.vue.js +17 -17
- package/dist/components/form/nmorph-time-picker/NmorphTimePicker.vue2.js +79 -71
- package/dist/components/navigation/nmorph-dropdown/NmorphDropdown.vue2.js +25 -23
- package/dist/hooks/use-field-validation.js +56 -43
- package/dist/hooks/use-focusable-input.js +27 -0
- package/dist/hooks/use-form-validation.js +62 -24
- package/dist/hooks/use-nmorph-translation.js +4 -4
- package/dist/index.es.js +842 -837
- package/dist/index.umd.js +36 -36
- package/dist/package.json.js +1 -1
- package/dist/plugin.js +47 -42
- package/dist/src/components/basic/nmorph-button/NmorphButton.vue.d.ts +4 -17
- package/dist/src/components/basic/nmorph-button/types.d.ts +13 -0
- package/dist/src/components/basic/nmorph-icon/NmorphIcon.vue.d.ts +3 -9
- package/dist/src/components/basic/nmorph-icon/types.d.ts +6 -0
- package/dist/src/components/basic/nmorph-layout/NmorphLayout.vue.d.ts +2 -9
- package/dist/src/components/basic/nmorph-layout/types.d.ts +8 -0
- package/dist/src/components/basic/nmorph-link/NmorphLink.vue.d.ts +2 -13
- package/dist/src/components/basic/nmorph-link/types.d.ts +11 -0
- package/dist/src/components/basic/nmorph-scroll/NmorphScroll.vue.d.ts +2 -2
- package/dist/src/components/basic/nmorph-scroll/types.d.ts +5 -0
- package/dist/src/components/basic/nmorph-space/NmorphSpace.vue.d.ts +2 -15
- package/dist/src/components/basic/nmorph-space/types.d.ts +14 -0
- package/dist/src/components/data/nmorph-avatar/NmorphAvatar.vue.d.ts +6 -21
- package/dist/src/components/data/nmorph-avatar/types.d.ts +21 -0
- package/dist/src/components/data/nmorph-badge/NmorphBadge.vue.d.ts +4 -39
- package/dist/src/components/data/nmorph-badge/types.d.ts +34 -0
- package/dist/src/components/data/nmorph-calendar/NmorphCalendar.vue.d.ts +4 -12
- package/dist/src/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/NmorphCalendarHeader.vue.d.ts +3 -9
- package/dist/src/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/types.d.ts +12 -0
- package/dist/src/components/data/nmorph-calendar/types.d.ts +13 -0
- package/dist/src/components/data/nmorph-card/NmorphCard.vue.d.ts +2 -10
- package/dist/src/components/data/nmorph-card/types.d.ts +9 -0
- package/dist/src/components/data/nmorph-carousel/NmorphCarousel.vue.d.ts +3 -5
- package/dist/src/components/data/nmorph-carousel/components/nmorph-carousel-item/NmorphCarouselItem.vue.d.ts +2 -4
- package/dist/src/components/data/nmorph-carousel/components/nmorph-carousel-item/types.d.ts +3 -0
- package/dist/src/components/data/nmorph-carousel/types.d.ts +6 -0
- package/dist/src/components/data/nmorph-collapse/NmorphCollapse.vue.d.ts +3 -7
- package/dist/src/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue.d.ts +4 -10
- package/dist/src/components/data/nmorph-collapse/components/nmorph-collapse-item/types.d.ts +13 -0
- package/dist/src/components/data/nmorph-collapse/types.d.ts +7 -0
- package/dist/src/components/data/nmorph-empty/NmorphEmpty.vue.d.ts +4 -13
- package/dist/src/components/data/nmorph-empty/types.d.ts +11 -0
- package/dist/src/components/data/nmorph-image/NmorphImage.vue.d.ts +3 -8
- package/dist/src/components/data/nmorph-image/types.d.ts +10 -0
- package/dist/src/components/data/nmorph-image-preview/NmorphImagePreview.vue.d.ts +3 -18
- package/dist/src/components/data/nmorph-image-preview/types.d.ts +19 -0
- package/dist/src/components/data/nmorph-pagination/NmorphPagination.vue.d.ts +3 -13
- package/dist/src/components/data/nmorph-pagination/types.d.ts +14 -0
- package/dist/src/components/data/nmorph-progress/NmorphProgress.vue.d.ts +2 -14
- package/dist/src/components/data/nmorph-progress/types.d.ts +12 -0
- package/dist/src/components/data/nmorph-qr-code/NmorphQRCode.vue.d.ts +5 -15
- package/dist/src/components/data/nmorph-qr-code/types.d.ts +12 -0
- package/dist/src/components/data/nmorph-skeleton/NmorphSkeleton.vue.d.ts +2 -7
- package/dist/src/components/data/nmorph-skeleton/components/NmorphSkeletonItem.vue.d.ts +3 -9
- package/dist/src/components/data/nmorph-skeleton/components/types.d.ts +8 -0
- package/dist/src/components/data/nmorph-skeleton/types.d.ts +6 -0
- package/dist/src/components/data/nmorph-table/NmorphTable.vue.d.ts +3 -17
- package/dist/src/components/data/nmorph-table/components/nmorph-table-cell/NmorphTableCell.vue.d.ts +2 -4
- package/dist/src/components/data/nmorph-table/components/nmorph-table-cell/types.d.ts +3 -0
- package/dist/src/components/data/nmorph-table/components/nmorph-table-column/NmorphTableColumn.vue.d.ts +4 -5
- package/dist/src/components/data/nmorph-table/components/nmorph-table-column/types.d.ts +3 -0
- package/dist/src/components/data/nmorph-table/inner-components/nmorph-sort-button/NmorphSortButton.vue.d.ts +4 -6
- package/dist/src/components/data/nmorph-table/inner-components/nmorph-sort-button/types.d.ts +7 -0
- package/dist/src/components/data/nmorph-table/types.d.ts +15 -0
- package/dist/src/components/data/nmorph-tag-list/NmorphTagList.vue.d.ts +5 -8
- package/dist/src/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.vue.d.ts +3 -5
- package/dist/src/components/data/nmorph-tag-list/components/nmorph-tag-item/types.d.ts +6 -0
- package/dist/src/components/data/nmorph-tag-list/types.d.ts +7 -0
- package/dist/src/components/data/nmorph-virtual-list/NmorphVirtualList.vue.d.ts +3 -14
- package/dist/src/components/data/nmorph-virtual-list/types.d.ts +15 -0
- package/dist/src/components/feedback/nmorph-alert/NmorphAlert.vue.d.ts +5 -7
- package/dist/src/components/feedback/nmorph-alert/types.d.ts +5 -0
- package/dist/src/components/feedback/nmorph-callout/NmorphCallout.vue.d.ts +3 -15
- package/dist/src/components/feedback/nmorph-callout/types.d.ts +12 -0
- package/dist/src/components/feedback/nmorph-dialog/NmorphDialog.vue.d.ts +4 -19
- package/dist/src/components/feedback/nmorph-dialog/types.d.ts +20 -0
- package/dist/src/components/feedback/nmorph-drawer/NmorphDrawer.vue.d.ts +4 -17
- package/dist/src/components/feedback/nmorph-drawer/types.d.ts +18 -0
- package/dist/src/components/feedback/nmorph-tooltip/NmorphTooltip.vue.d.ts +5 -14
- package/dist/src/components/feedback/nmorph-tooltip/types.d.ts +11 -0
- package/dist/src/components/form/nmorph-autocomplete/NmorphAutocomplete.vue.d.ts +6 -19
- package/dist/src/components/form/nmorph-autocomplete/types.d.ts +18 -0
- package/dist/src/components/form/nmorph-checkbox/NmorphCheckbox.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-checkbox/types.d.ts +3 -0
- package/dist/src/components/form/nmorph-checkbox-group/NmorphCheckboxGroup.vue.d.ts +5 -11
- package/dist/src/components/form/nmorph-checkbox-group/types.d.ts +11 -0
- package/dist/src/components/form/nmorph-color-picker/NmorphColorPicker.vue.d.ts +6 -11
- package/dist/src/components/form/nmorph-color-picker/types.d.ts +11 -0
- package/dist/src/components/form/nmorph-date-picker/NmorphDatePicker.vue.d.ts +5 -21
- package/dist/src/components/form/nmorph-date-picker/inner-components/nmorph-clear-button/types.d.ts +3 -0
- package/dist/src/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-content/NmorphDatePickerContent.vue.d.ts +3 -8
- package/dist/src/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-content/types.d.ts +10 -0
- package/dist/src/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-header/NmorphDatePickerHeader.vue.d.ts +3 -6
- package/dist/src/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-header/types.d.ts +12 -0
- package/dist/src/components/form/nmorph-date-picker/inner-components/nmorph-year-month-picker/NmorphYearMonthPicker.vue.d.ts +3 -6
- package/dist/src/components/form/nmorph-date-picker/inner-components/nmorph-year-month-picker/types.d.ts +9 -0
- package/dist/src/components/form/nmorph-date-picker/types.d.ts +21 -0
- package/dist/src/components/form/nmorph-file-upload/NmorphFileUpload.vue.d.ts +7 -12
- package/dist/src/components/form/nmorph-file-upload/types.d.ts +21 -0
- package/dist/src/components/form/nmorph-form/NmorphForm.vue.d.ts +4 -8
- package/dist/src/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.vue.d.ts +3 -12
- package/dist/src/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-error-box/NmorphErrorBox.vue.d.ts +3 -8
- package/dist/src/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-error-box/types.d.ts +7 -0
- package/dist/src/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-validation-icon/NmorphValidationIcon.vue.d.ts +3 -6
- package/dist/src/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-validation-icon/types.d.ts +5 -0
- package/dist/src/components/form/nmorph-form/components/nmorph-form-item/types.d.ts +10 -0
- package/dist/src/components/form/nmorph-form/types.d.ts +21 -6
- package/dist/src/components/form/nmorph-form/use-form-item-input.d.ts +10 -0
- package/dist/src/components/form/nmorph-number-input/NmorphNumberInput.vue.d.ts +3 -10
- package/dist/src/components/form/nmorph-number-input/types.d.ts +11 -0
- package/dist/src/components/form/nmorph-otp-input/NmorphOTPInput.vue.d.ts +5 -13
- package/dist/src/components/form/nmorph-otp-input/types.d.ts +21 -0
- package/dist/src/components/form/nmorph-radio/NmorphRadio.vue.d.ts +4 -9
- package/dist/src/components/form/nmorph-radio/types.d.ts +6 -0
- package/dist/src/components/form/nmorph-radio-group/NmorphRadioGroup.vue.d.ts +4 -12
- package/dist/src/components/form/nmorph-radio-group/types.d.ts +12 -0
- package/dist/src/components/form/nmorph-select/NmorphSelect.vue.d.ts +3 -21
- package/dist/src/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-select/components/nmorph-select-option/types.d.ts +3 -0
- package/dist/src/components/form/nmorph-select/types.d.ts +21 -0
- package/dist/src/components/form/nmorph-select-button/NmorphSelectButton.vue.d.ts +4 -12
- package/dist/src/components/form/nmorph-select-button/components/nmorph-select-button-item/NmorphSelectButtonItem.vue.d.ts +3 -6
- package/dist/src/components/form/nmorph-select-button/components/nmorph-select-button-item/types.d.ts +4 -0
- package/dist/src/components/form/nmorph-select-button/types.d.ts +12 -0
- package/dist/src/components/form/nmorph-slider/NmorphSlider.vue.d.ts +111 -0
- package/dist/src/components/form/nmorph-slider/types.d.ts +3 -0
- package/dist/src/components/form/nmorph-switch/NmorphSwitch.vue.d.ts +3 -14
- package/dist/src/components/form/nmorph-switch/types.d.ts +15 -0
- package/dist/src/components/form/nmorph-text-input/NmorphTextInput.vue.d.ts +6 -14
- package/dist/src/components/form/nmorph-text-input/types.d.ts +16 -0
- package/dist/src/components/form/nmorph-textarea/NmorphTextarea.vue.d.ts +6 -18
- package/dist/src/components/form/nmorph-textarea/types.d.ts +20 -0
- package/dist/src/components/form/nmorph-time-picker/NmorphTimePicker.vue.d.ts +6 -20
- package/dist/src/components/form/nmorph-time-picker/types.d.ts +24 -0
- package/dist/src/components/navigation/index.d.ts +1 -1
- package/dist/src/components/navigation/nmorph-backtop/NmorphBacktop.vue.d.ts +4 -12
- package/dist/src/components/navigation/nmorph-backtop/types.d.ts +14 -0
- package/dist/src/components/navigation/nmorph-breadcrumb/NmorphBreadcrumb.vue.d.ts +2 -4
- package/dist/src/components/navigation/nmorph-breadcrumb/components/nmorph-breadcrumb-item/NmorphBreadcrumbItem.vue.d.ts +2 -4
- package/dist/src/components/navigation/nmorph-breadcrumb/components/nmorph-breadcrumb-item/types.d.ts +3 -0
- package/dist/src/components/navigation/nmorph-breadcrumb/types.d.ts +3 -0
- package/dist/src/components/navigation/nmorph-context-menu/NmorphContextMenu.vue.d.ts +10 -31
- package/dist/src/components/navigation/nmorph-context-menu/types.d.ts +42 -0
- package/dist/src/components/navigation/nmorph-dropdown/NmorphDropdown.vue.d.ts +6 -24
- package/dist/src/components/navigation/nmorph-dropdown/types.d.ts +24 -0
- package/dist/src/components/navigation/nmorph-tabs/NmorphTabs.vue.d.ts +4 -8
- package/dist/src/components/navigation/nmorph-tabs/components/nmorph-tab-pane/NmorphTabPane.vue.d.ts +4 -5
- package/dist/src/components/navigation/nmorph-tabs/components/nmorph-tab-pane/types.d.ts +3 -0
- package/dist/src/components/navigation/nmorph-tabs/{type.d.ts → types.d.ts} +9 -0
- package/dist/src/components/navigation/nmorph-tabs/utils.d.ts +1 -1
- package/dist/src/components/others/nmorph-divider/NmorphDivider.vue.d.ts +2 -5
- package/dist/src/components/others/nmorph-divider/types.d.ts +3 -0
- package/dist/src/components/others/nmorph-overlay/NmorphOverlay.vue.d.ts +3 -12
- package/dist/src/components/others/nmorph-overlay/types.d.ts +14 -0
- package/dist/src/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue.d.ts +2 -8
- package/dist/src/components/providers/nmorph-notification-provider/types.d.ts +9 -0
- package/dist/src/hooks/use-field-validation.d.ts +15 -0
- package/dist/src/hooks/use-focusable-input.d.ts +16 -0
- package/dist/src/hooks/use-form-validation.d.ts +4 -0
- package/dist/src/plugin.d.ts +4 -1
- package/dist/src/types/app.types.d.ts +21 -0
- package/dist/src/types/common.types.d.ts +62 -0
- package/dist/src/types/date.types.d.ts +7 -0
- package/dist/src/types/image.types.d.ts +17 -0
- package/dist/src/types/index.d.ts +8 -206
- package/dist/src/types/selection.types.d.ts +26 -0
- package/dist/src/types/table.types.d.ts +5 -0
- package/dist/src/types/theme.types.d.ts +55 -0
- package/dist/src/types/translation.types.d.ts +20 -0
- package/dist/src/utils/common.d.ts +3 -0
- package/dist/src/utils/file-types.d.ts +8 -0
- package/dist/src/utils/index.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/types/common.types.js +14 -0
- package/dist/types/date.types.js +4 -0
- package/dist/types/image.types.js +5 -0
- package/dist/types/selection.types.js +4 -0
- package/dist/types/table.types.js +4 -0
- package/dist/types/translation.types.js +4 -0
- package/dist/utils/common.js +16 -7
- package/dist/utils/file-types.js +41 -0
- package/package.json +1 -1
- package/dist/src/components/data/nmorph-calendar/hooks/index.d.ts +0 -2
- package/dist/src/hooks/index.d.ts +0 -9
- package/dist/src/outside-hooks/index.d.ts +0 -5
- package/dist/types/index.js +0 -20
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import './NmorphCheckboxGroup.css';
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { useModifiers as
|
|
4
|
-
import
|
|
5
|
-
|
|
2
|
+
import { defineComponent as g, ref as b, watch as v, computed as p, provide as u } from "vue";
|
|
3
|
+
import { useModifiers as y } from "../../../utils/create-modifiers.js";
|
|
4
|
+
import { useFormItemModel as q } from "../nmorph-form/use-form-item-input.js";
|
|
5
|
+
import x from "../nmorph-checkbox/NmorphCheckbox.vue.js";
|
|
6
|
+
const N = /* @__PURE__ */ g({
|
|
6
7
|
__name: "NmorphCheckboxGroup",
|
|
7
8
|
props: {
|
|
8
|
-
modelValue: { type: Array, required: !
|
|
9
|
+
modelValue: { type: Array, required: !1, default: () => [] },
|
|
9
10
|
options: { type: Array, required: !1, default: () => [] },
|
|
10
11
|
design: { type: String, required: !1, default: "button" },
|
|
11
12
|
direction: { type: null, required: !1, default: "row" },
|
|
@@ -17,30 +18,34 @@ const _ = /* @__PURE__ */ m({
|
|
|
17
18
|
tabindex: { type: Number, required: !1 }
|
|
18
19
|
},
|
|
19
20
|
emits: ["update:model-value"],
|
|
20
|
-
setup(
|
|
21
|
-
|
|
22
|
-
const r =
|
|
23
|
-
|
|
24
|
-
() =>
|
|
21
|
+
setup(s, { expose: c, emit: f }) {
|
|
22
|
+
c();
|
|
23
|
+
const r = s, a = f, { modelValue: o, updateModelValue: l } = q(
|
|
24
|
+
r,
|
|
25
|
+
(t) => a("update:model-value", t),
|
|
26
|
+
[]
|
|
27
|
+
), e = b([...o.value]);
|
|
28
|
+
v(
|
|
29
|
+
o,
|
|
25
30
|
(t) => {
|
|
26
31
|
e.value = [...t];
|
|
27
32
|
},
|
|
28
33
|
{ deep: !0 }
|
|
29
34
|
);
|
|
30
|
-
const
|
|
31
|
-
e.value = e.value.includes(t) ? e.value.filter((
|
|
32
|
-
},
|
|
33
|
-
() =>
|
|
35
|
+
const i = (t) => {
|
|
36
|
+
e.value = e.value.includes(t) ? e.value.filter((h) => h !== t) : [...e.value, t], l(e.value);
|
|
37
|
+
}, m = p(
|
|
38
|
+
() => y({
|
|
34
39
|
"nmorph-checkbox-group": [r.design, r.direction]
|
|
35
40
|
})
|
|
36
|
-
),
|
|
37
|
-
|
|
38
|
-
const
|
|
39
|
-
return
|
|
41
|
+
), d = p(() => r.height);
|
|
42
|
+
u("checkbox-group-selected-value", e), u("change-checkbox-value-handler", i), u("checkbox-group-height", d);
|
|
43
|
+
const n = { props: r, emit: a, modelValue: o, updateModelValue: l, initialValue: e, changeHandler: i, modifiers: m, height: d, get NmorphCheckbox() {
|
|
44
|
+
return x;
|
|
40
45
|
} };
|
|
41
|
-
return Object.defineProperty(
|
|
46
|
+
return Object.defineProperty(n, "__isScriptSetup", { enumerable: !1, value: !0 }), n;
|
|
42
47
|
}
|
|
43
48
|
});
|
|
44
49
|
export {
|
|
45
|
-
|
|
50
|
+
N as default
|
|
46
51
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import './NmorphColorPicker.css';
|
|
2
|
-
import
|
|
3
|
-
import { openBlock as
|
|
2
|
+
import a from "./NmorphColorPicker.vue2.js";
|
|
3
|
+
import { openBlock as l, createElementBlock as i, normalizeClass as c, createElementVNode as n, normalizeStyle as t, toDisplayString as d, createCommentVNode as s } from "vue";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import m from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
-
const p = { class: "nmorph-color-picker__content" }, _ = ["id", "name", "tabindex", "value", "disabled"],
|
|
6
|
+
const p = { class: "nmorph-color-picker__content" }, _ = ["id", "name", "tabindex", "value", "disabled"], h = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "nmorph-color-picker__value"
|
|
9
9
|
};
|
|
10
|
-
function u(
|
|
11
|
-
return
|
|
10
|
+
function u(f, r, k, o, v, b) {
|
|
11
|
+
return l(), i(
|
|
12
12
|
"div",
|
|
13
13
|
{
|
|
14
|
-
class:
|
|
14
|
+
class: c(o.modifiers)
|
|
15
15
|
},
|
|
16
16
|
[
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
n("div", p, [
|
|
18
|
+
n("input", {
|
|
19
19
|
id: o.id,
|
|
20
20
|
ref: "inputDOMRef",
|
|
21
21
|
name: o.name,
|
|
@@ -25,37 +25,33 @@ function u(h, r, k, o, v, b) {
|
|
|
25
25
|
value: o.currentValue,
|
|
26
26
|
disabled: o.props.disabled,
|
|
27
27
|
onInput: o.handleInput,
|
|
28
|
-
onFocus: r[0] || (r[0] = (
|
|
29
|
-
|
|
30
|
-
}),
|
|
31
|
-
onBlur: r[1] || (r[1] = (l) => {
|
|
32
|
-
o.focused = !1, o.emit("blur");
|
|
33
|
-
})
|
|
28
|
+
onFocus: r[0] || (r[0] = (...e) => o.handleFocus && o.handleFocus(...e)),
|
|
29
|
+
onBlur: r[1] || (r[1] = (...e) => o.handleBlur && o.handleBlur(...e))
|
|
34
30
|
}, null, 40, _),
|
|
35
|
-
|
|
31
|
+
n(
|
|
36
32
|
"div",
|
|
37
33
|
{
|
|
38
34
|
class: "nmorph-color-picker__swatch",
|
|
39
|
-
style:
|
|
35
|
+
style: t({ background: o.currentValue })
|
|
40
36
|
},
|
|
41
37
|
null,
|
|
42
38
|
4
|
|
43
39
|
/* STYLE */
|
|
44
40
|
),
|
|
45
|
-
o.props.showValue ? (
|
|
41
|
+
o.props.showValue ? (l(), i(
|
|
46
42
|
"span",
|
|
47
|
-
|
|
48
|
-
|
|
43
|
+
h,
|
|
44
|
+
d(o.displayValue),
|
|
49
45
|
1
|
|
50
46
|
/* TEXT */
|
|
51
|
-
)) :
|
|
47
|
+
)) : s("v-if", !0)
|
|
52
48
|
])
|
|
53
49
|
],
|
|
54
50
|
2
|
|
55
51
|
/* CLASS */
|
|
56
52
|
);
|
|
57
53
|
}
|
|
58
|
-
const
|
|
54
|
+
const C = /* @__PURE__ */ m(a, [["render", u], ["__file", "/builds/ketjo/nmorph/library/src/components/form/nmorph-color-picker/NmorphColorPicker.vue"]]);
|
|
59
55
|
export {
|
|
60
|
-
|
|
56
|
+
C as default
|
|
61
57
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import './NmorphColorPicker.css';
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { useFormItemInput as
|
|
6
|
-
|
|
2
|
+
import { defineComponent as k, ref as H, watch as L, onMounted as O, computed as C } from "vue";
|
|
3
|
+
import { useModifiers as z } from "../../../utils/create-modifiers.js";
|
|
4
|
+
import { useFocusableInput as A } from "../../../hooks/use-focusable-input.js";
|
|
5
|
+
import { useFormItemInput as D, useFormItemModel as E } from "../nmorph-form/use-form-item-input.js";
|
|
6
|
+
import { NmorphComponentHeight as T } from "../../../types/common.types.js";
|
|
7
|
+
const W = /* @__PURE__ */ k({
|
|
7
8
|
__name: "NmorphColorPicker",
|
|
8
9
|
props: {
|
|
9
10
|
modelValue: { type: String, required: !1, default: "" },
|
|
@@ -17,51 +18,60 @@ const E = /* @__PURE__ */ R({
|
|
|
17
18
|
tabindex: { type: Number, required: !1 }
|
|
18
19
|
},
|
|
19
20
|
emits: ["update:model-value", "focus", "blur"],
|
|
20
|
-
setup(_, { expose: q, emit:
|
|
21
|
-
const
|
|
21
|
+
setup(_, { expose: q, emit: F }) {
|
|
22
|
+
const n = _, d = F, { id: I, name: S, tabindex: V } = D(n), { modelValue: c, updateModelValue: g } = E(
|
|
23
|
+
n,
|
|
24
|
+
(e) => d("update:model-value", e),
|
|
25
|
+
""
|
|
26
|
+
), l = (e, r = "#000000") => {
|
|
22
27
|
const t = e?.trim() || "";
|
|
23
|
-
return /^#[\da-f]{6}$/i.test(t) ? t.toLowerCase() : /^#[\da-f]{3}$/i.test(t) ? `#${t.slice(1).split("").map((
|
|
24
|
-
},
|
|
28
|
+
return /^#[\da-f]{6}$/i.test(t) ? t.toLowerCase() : /^#[\da-f]{3}$/i.test(t) ? `#${t.slice(1).split("").map((o) => `${o}${o}`).join("").toLowerCase()}` : r;
|
|
29
|
+
}, {
|
|
30
|
+
elementRef: p,
|
|
31
|
+
focused: y,
|
|
32
|
+
handleFocus: x,
|
|
33
|
+
handleBlur: B
|
|
34
|
+
} = A({
|
|
35
|
+
onFocus: () => d("focus"),
|
|
36
|
+
onBlur: () => d("blur")
|
|
37
|
+
}), f = () => {
|
|
25
38
|
if (typeof document > "u") return "#006cb6";
|
|
26
|
-
const e =
|
|
27
|
-
return
|
|
28
|
-
}, a =
|
|
29
|
-
|
|
30
|
-
()
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
const r = e.target, t = s(r.value);
|
|
37
|
-
a.value = t, g("update:model-value", t);
|
|
38
|
-
}, p = (e) => [
|
|
39
|
+
const e = p.value || document.documentElement, r = getComputedStyle(e).getPropertyValue("--nmorph-accent-color").trim();
|
|
40
|
+
return l(r, "#006cb6");
|
|
41
|
+
}, a = H(l(c.value));
|
|
42
|
+
L(c, (e) => {
|
|
43
|
+
a.value = e ? l(e) : f();
|
|
44
|
+
});
|
|
45
|
+
const R = (e) => {
|
|
46
|
+
const r = e.target, t = l(r.value);
|
|
47
|
+
a.value = t, g(t);
|
|
48
|
+
}, h = (e) => [
|
|
39
49
|
parseInt(e.slice(1, 3), 16),
|
|
40
50
|
parseInt(e.slice(3, 5), 16),
|
|
41
51
|
parseInt(e.slice(5, 7), 16)
|
|
42
|
-
],
|
|
43
|
-
const [r, t,
|
|
44
|
-
return `rgb(${r}, ${t}, ${
|
|
45
|
-
},
|
|
46
|
-
const [r, t,
|
|
47
|
-
if (
|
|
48
|
-
return `hsl(0, 0%, ${Math.round(
|
|
49
|
-
const i =
|
|
50
|
-
let
|
|
51
|
-
return
|
|
52
|
+
], v = (e) => {
|
|
53
|
+
const [r, t, o] = h(e);
|
|
54
|
+
return `rgb(${r}, ${t}, ${o})`;
|
|
55
|
+
}, $ = (e) => {
|
|
56
|
+
const [r, t, o] = h(e).map((j) => j / 255), u = Math.max(r, t, o), s = Math.min(r, t, o), b = (u + s) / 2;
|
|
57
|
+
if (u === s)
|
|
58
|
+
return `hsl(0, 0%, ${Math.round(b * 100)}%)`;
|
|
59
|
+
const i = u - s, P = b > 0.5 ? i / (2 - u - s) : i / (u + s);
|
|
60
|
+
let m = 0;
|
|
61
|
+
return u === r ? m = (t - o) / i + (t < o ? 6 : 0) : u === t ? m = (o - r) / i + 2 : m = (r - t) / i + 4, `hsl(${Math.round(m * 60)}, ${Math.round(P * 100)}%, ${Math.round(b * 100)}%)`;
|
|
52
62
|
};
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}), q({ inputDOMRef:
|
|
56
|
-
const
|
|
57
|
-
() =>
|
|
58
|
-
nmorph: [
|
|
59
|
-
"nmorph-color-picker": [
|
|
63
|
+
O(() => {
|
|
64
|
+
c.value || (a.value = f());
|
|
65
|
+
}), q({ inputDOMRef: p });
|
|
66
|
+
const w = C(
|
|
67
|
+
() => z({
|
|
68
|
+
nmorph: [T[n.height], y.value && "focused"],
|
|
69
|
+
"nmorph-color-picker": [n.disabled && "disabled", n.displayFormat]
|
|
60
70
|
})
|
|
61
|
-
),
|
|
62
|
-
return Object.defineProperty(
|
|
71
|
+
), N = C(() => n.displayFormat === "rgb" ? v(a.value) : n.displayFormat === "hsl" ? $(a.value) : a.value.toUpperCase()), M = { props: n, emit: d, id: I, name: S, tabindex: V, modelValue: c, updateModelValue: g, normalizeColor: l, inputDOMRef: p, focused: y, handleFocus: x, handleBlur: B, resolveAccentColor: f, currentValue: a, handleInput: R, hexToRgb: h, formatRgb: v, formatHsl: $, modifiers: w, displayValue: N };
|
|
72
|
+
return Object.defineProperty(M, "__isScriptSetup", { enumerable: !1, value: !0 }), M;
|
|
63
73
|
}
|
|
64
74
|
});
|
|
65
75
|
export {
|
|
66
|
-
|
|
76
|
+
W as default
|
|
67
77
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import './NmorphDatePicker.css';
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { useModifiers as
|
|
4
|
-
import {
|
|
5
|
-
import { NmorphComponentHeight as B } from "../../../types/index.js";
|
|
2
|
+
import { defineComponent as k, computed as a, ref as u, watch as V } from "vue";
|
|
3
|
+
import { useModifiers as B } from "../../../utils/create-modifiers.js";
|
|
4
|
+
import { createCssSizeVariables as M } from "../../../utils/common.js";
|
|
6
5
|
import P from "./inner-components/nmorph-clear-button/NmorphClearButton.vue.js";
|
|
7
|
-
import
|
|
8
|
-
import { useI18n as
|
|
9
|
-
import { useFormItemInput as
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
|
|
6
|
+
import j from "./inner-components/nmorph-date-picker-content/NmorphDatePickerContent.vue.js";
|
|
7
|
+
import { useI18n as z } from "vue-i18n";
|
|
8
|
+
import { useFormItemInput as L, useFormItemModel as R } from "../nmorph-form/use-form-item-input.js";
|
|
9
|
+
import { NmorphComponentHeight as T } from "../../../types/common.types.js";
|
|
10
|
+
import { formatDate as m } from "../../data/nmorph-calendar/utils.js";
|
|
11
|
+
import E from "../../../assets/icons/calendar.svg.js";
|
|
12
|
+
import G from "../../basic/nmorph-icon/NmorphIcon.vue.js";
|
|
13
|
+
import J from "../../navigation/nmorph-dropdown/NmorphDropdown.vue.js";
|
|
14
|
+
const le = /* @__PURE__ */ k({
|
|
15
15
|
__name: "NmorphDatePicker",
|
|
16
16
|
props: {
|
|
17
17
|
placeholder: { type: String, required: !1, default: "" },
|
|
18
|
-
modelValue: { type: [Date, Array, null], required: !
|
|
18
|
+
modelValue: { type: [Date, Array, null], required: !1, default: null },
|
|
19
19
|
type: { type: null, required: !1, default: "date" },
|
|
20
20
|
textSeparator: { type: String, required: !1, default: "-" },
|
|
21
21
|
initialDate: { type: Date, required: !1, default: () => /* @__PURE__ */ new Date() },
|
|
@@ -36,23 +36,27 @@ const ee = /* @__PURE__ */ O({
|
|
|
36
36
|
tabindex: { type: Number, required: !1 }
|
|
37
37
|
},
|
|
38
38
|
emits: ["update:model-value"],
|
|
39
|
-
setup(
|
|
40
|
-
|
|
41
|
-
const { t:
|
|
39
|
+
setup(c, { expose: y, emit: v }) {
|
|
40
|
+
y();
|
|
41
|
+
const { t: s } = z(), e = c, { id: h, name: g, autocomplete: q } = L(e), n = a(() => e.placeholder ? e.placeholder : s("pickADate")), p = v, { modelValue: d, updateModelValue: i } = R(
|
|
42
|
+
e,
|
|
43
|
+
(r) => p("update:model-value", r),
|
|
44
|
+
null
|
|
45
|
+
), t = u(d.value), l = u(!1), S = () => {
|
|
42
46
|
l.value = !0;
|
|
43
|
-
},
|
|
47
|
+
}, N = () => {
|
|
44
48
|
l.value = !1;
|
|
45
|
-
},
|
|
46
|
-
() =>
|
|
47
|
-
nmorph: [
|
|
49
|
+
}, b = a(
|
|
50
|
+
() => B({
|
|
51
|
+
nmorph: [T[e.height]],
|
|
48
52
|
"nmorph-date-picker": [e.disabled && "disabled", e.type, l.value && "focus"]
|
|
49
53
|
})
|
|
50
|
-
), D = a(
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
"--date-picker-calendar-cell-height":
|
|
54
|
-
}
|
|
55
|
-
|
|
54
|
+
), D = a(
|
|
55
|
+
() => M({
|
|
56
|
+
"--width": e.width,
|
|
57
|
+
"--date-picker-calendar-cell-height": e.calendarCellHeight
|
|
58
|
+
})
|
|
59
|
+
), o = u(!1), C = u(null), I = () => {
|
|
56
60
|
o.value = !1;
|
|
57
61
|
}, _ = () => {
|
|
58
62
|
o.value = !o.value;
|
|
@@ -66,25 +70,33 @@ const ee = /* @__PURE__ */ O({
|
|
|
66
70
|
};
|
|
67
71
|
if (Array.isArray(t.value)) {
|
|
68
72
|
if (t.value.length === 0) return n.value;
|
|
69
|
-
const
|
|
70
|
-
return
|
|
73
|
+
const x = m(t.value, r), O = e.type === "daterange" ? e.rangeSeparator : e.valueSeparator;
|
|
74
|
+
return x.join(O);
|
|
71
75
|
} else
|
|
72
|
-
return
|
|
73
|
-
}),
|
|
76
|
+
return m(t.value, r);
|
|
77
|
+
}), F = () => {
|
|
74
78
|
const r = Array.isArray(t.value) ? [] : null;
|
|
75
|
-
t.value = r,
|
|
76
|
-
},
|
|
77
|
-
t.value = r,
|
|
78
|
-
}
|
|
79
|
-
|
|
79
|
+
t.value = r, i(t.value);
|
|
80
|
+
}, w = (r) => {
|
|
81
|
+
t.value = r, i(t.value);
|
|
82
|
+
};
|
|
83
|
+
V(
|
|
84
|
+
d,
|
|
85
|
+
(r) => {
|
|
86
|
+
t.value = r;
|
|
87
|
+
},
|
|
88
|
+
{ deep: !0 }
|
|
89
|
+
);
|
|
90
|
+
const H = a(() => Array.isArray(t.value) ? t.value.length > 0 : !!t.value), f = { t: s, props: e, id: h, name: g, autocomplete: q, placeholderText: n, emit: p, modelValue: d, updateModelValue: i, selectedDate: t, focus: l, focusHandler: S, blurHandler: N, modifiers: b, styles: D, open: o, nmorphInputDOMRef: C, closeHandler: I, toggleOpen: _, displayValue: A, clearHandler: F, updateSelectedDateHandler: w, showClearButton: H, get NmorphDropdown() {
|
|
91
|
+
return J;
|
|
80
92
|
}, get NmorphIcon() {
|
|
81
|
-
return
|
|
93
|
+
return G;
|
|
82
94
|
}, get NmorphIconCalendar() {
|
|
83
|
-
return
|
|
84
|
-
}, NmorphClearButton: P, NmorphDatePickerContent:
|
|
85
|
-
return Object.defineProperty(
|
|
95
|
+
return E;
|
|
96
|
+
}, NmorphClearButton: P, NmorphDatePickerContent: j };
|
|
97
|
+
return Object.defineProperty(f, "__isScriptSetup", { enumerable: !1, value: !0 }), f;
|
|
86
98
|
}
|
|
87
99
|
});
|
|
88
100
|
export {
|
|
89
|
-
|
|
101
|
+
le as default
|
|
90
102
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.nmorph-file-upload{box-sizing:border-box;width:100%;min-width:0}.nmorph-file-upload .nmorph-file-upload__trigger{position:relative}.nmorph-file-upload input{display:none}.nmorph-file-upload .nmorph-file-upload__list{width:100%;min-width:0;margin-top:var(--indentation-03)}.nmorph-file-upload .nmorph-file-upload__list>div{box-sizing:border-box;width:100%;min-width:0}.nmorph-file-upload .nmorph-file-upload__file{display:flex;gap:var(--indentation-02);align-items:center;box-sizing:border-box;width:100%;min-width:0;max-width:100%;margin-bottom:var(--indentation-02);padding:var(--indentation-02) var(--indentation-03);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-file-upload .nmorph-file-upload__file>.nmorph-image-preview{flex:0 0 auto}.nmorph-file-upload .nmorph-file-upload__file-info{display:flex;flex:1 1
|
|
1
|
+
.nmorph-file-upload{box-sizing:border-box;width:100%;min-width:0}.nmorph-file-upload .nmorph-file-upload__trigger{position:relative;width:100%;min-width:0}.nmorph-file-upload input{display:none}.nmorph-file-upload .nmorph-file-upload__list{width:100%;min-width:0;margin-top:var(--indentation-03)}.nmorph-file-upload .nmorph-file-upload__list>div{box-sizing:border-box;width:100%;min-width:0}.nmorph-file-upload .nmorph-file-upload__file{display:flex;gap:var(--indentation-02);align-items:center;box-sizing:border-box;width:100%;min-width:0;max-width:100%;margin-bottom:var(--indentation-02);padding:var(--indentation-02) var(--indentation-03);overflow:hidden;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-file-upload .nmorph-file-upload__file>.nmorph-image-preview{flex:0 0 auto}.nmorph-file-upload .nmorph-file-upload__file-info{display:flex;flex:1 1 0;gap:var(--indentation-02);align-items:center;min-width:0;max-width:100%;overflow:hidden}.nmorph-file-upload .nmorph-file-upload__file-info>.nmorph-icon{flex:0 0 auto}.nmorph-file-upload .nmorph-file-upload__file-name{display:block;flex:1 1 0;min-width:0;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.nmorph-file-upload .nmorph-file-upload__remove-file{flex:0 0 auto}
|
|
@@ -1,30 +1,34 @@
|
|
|
1
1
|
import './NmorphFileUpload.css';
|
|
2
|
-
import
|
|
3
|
-
import { openBlock as o, createElementBlock as r, normalizeClass as
|
|
2
|
+
import p from "./NmorphFileUpload.vue2.js";
|
|
3
|
+
import { openBlock as o, createElementBlock as r, normalizeClass as s, createElementVNode as l, renderSlot as _, createVNode as n, TransitionGroup as h, withCtx as t, Fragment as f, renderList as v, createBlock as a, createCommentVNode as m, resolveDynamicComponent as u, toDisplayString as g } from "vue";
|
|
4
4
|
/* empty css */
|
|
5
|
-
import
|
|
6
|
-
const
|
|
5
|
+
import b from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
+
const x = { class: "nmorph-file-upload__trigger" }, y = ["id", "name", "autocomplete", "tabindex", "multiple", "disabled", "accept"], k = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "nmorph-file-upload__list"
|
|
9
|
-
},
|
|
10
|
-
function B(
|
|
9
|
+
}, N = { class: "nmorph-file-upload__file-info" }, C = { class: "nmorph-file-upload__file-name" }, F = { class: "nmorph-file-upload__remove-file" };
|
|
10
|
+
function B(d, I, w, e, D, S) {
|
|
11
11
|
return o(), r(
|
|
12
12
|
"div",
|
|
13
13
|
{
|
|
14
|
-
class:
|
|
14
|
+
class: s(e.modifiers)
|
|
15
15
|
},
|
|
16
16
|
[
|
|
17
|
-
l("div",
|
|
17
|
+
l("div", x, [
|
|
18
18
|
l("input", {
|
|
19
|
+
id: e.id,
|
|
19
20
|
ref: "inputDOMRef",
|
|
21
|
+
name: e.name,
|
|
22
|
+
autocomplete: e.autocomplete,
|
|
23
|
+
tabindex: e.tabindex,
|
|
20
24
|
type: "file",
|
|
21
25
|
multiple: e.props.multiple,
|
|
22
26
|
disabled: e.props.disabled,
|
|
23
27
|
accept: e.inputAccept,
|
|
24
28
|
class: "nmorph-native-input",
|
|
25
29
|
onChange: e.handleFileUpload
|
|
26
|
-
}, null, 40,
|
|
27
|
-
_(
|
|
30
|
+
}, null, 40, y),
|
|
31
|
+
_(d.$slots, "trigger", {}, () => [
|
|
28
32
|
n(e.NmorphButton, {
|
|
29
33
|
text: e.computedButtonText,
|
|
30
34
|
fill: "",
|
|
@@ -33,7 +37,7 @@ function B(s, I, w, e, D, S) {
|
|
|
33
37
|
}, null, 8, ["text", "disabled"])
|
|
34
38
|
])
|
|
35
39
|
]),
|
|
36
|
-
e.files.length > 0 ? (o(), r("div",
|
|
40
|
+
e.files.length > 0 ? (o(), r("div", k, [
|
|
37
41
|
n(h, {
|
|
38
42
|
name: "list",
|
|
39
43
|
tag: "div"
|
|
@@ -49,8 +53,8 @@ function B(s, I, w, e, D, S) {
|
|
|
49
53
|
e.props.photoWithPreview && e.isImageFile(i) ? (o(), a(e.NmorphImagePreview, {
|
|
50
54
|
key: 0,
|
|
51
55
|
src: c
|
|
52
|
-
}, null, 8, ["src"])) :
|
|
53
|
-
l("div",
|
|
56
|
+
}, null, 8, ["src"])) : m("v-if", !0),
|
|
57
|
+
l("div", N, [
|
|
54
58
|
n(
|
|
55
59
|
e.NmorphIcon,
|
|
56
60
|
{
|
|
@@ -69,7 +73,7 @@ function B(s, I, w, e, D, S) {
|
|
|
69
73
|
),
|
|
70
74
|
l(
|
|
71
75
|
"span",
|
|
72
|
-
|
|
76
|
+
C,
|
|
73
77
|
g(i.name),
|
|
74
78
|
1
|
|
75
79
|
/* TEXT */
|
|
@@ -96,13 +100,13 @@ function B(s, I, w, e, D, S) {
|
|
|
96
100
|
_: 1
|
|
97
101
|
/* STABLE */
|
|
98
102
|
})
|
|
99
|
-
])) :
|
|
103
|
+
])) : m("v-if", !0)
|
|
100
104
|
],
|
|
101
105
|
2
|
|
102
106
|
/* CLASS */
|
|
103
107
|
);
|
|
104
108
|
}
|
|
105
|
-
const T = /* @__PURE__ */
|
|
109
|
+
const T = /* @__PURE__ */ b(p, [["render", B], ["__file", "/builds/ketjo/nmorph/library/src/components/form/nmorph-file-upload/NmorphFileUpload.vue"]]);
|
|
106
110
|
export {
|
|
107
111
|
T as default
|
|
108
112
|
};
|