@nmorph/nmorph-ui-kit 2.2.36 → 2.2.37
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 +8 -8
- package/dist/components/basic/nmorph-icon/NmorphIcon.vue2.js +3 -3
- package/dist/components/basic/nmorph-layout/NmorphLayout.vue2.js +14 -13
- package/dist/components/basic/nmorph-link/NmorphLink.vue2.js +1 -1
- package/dist/components/basic/nmorph-scroll/NmorphScroll.css +1 -0
- package/dist/components/basic/nmorph-scroll/NmorphScroll.vue.js +6 -4
- package/dist/components/basic/nmorph-scroll/NmorphScroll.vue2.js +1 -0
- package/dist/components/basic/nmorph-space/NmorphSpace.vue2.js +15 -19
- package/dist/components/data/nmorph-avatar/NmorphAvatar.css +1 -1
- package/dist/components/data/nmorph-avatar/NmorphAvatar.vue2.js +5 -5
- package/dist/components/data/nmorph-badge/NmorphBadge.vue2.js +37 -36
- package/dist/components/data/nmorph-calendar/NmorphCalendar.vue2.js +41 -40
- package/dist/components/data/nmorph-card/NmorphCard.vue2.js +15 -14
- package/dist/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue2.js +5 -9
- package/dist/components/data/nmorph-empty/NmorphEmpty.vue.js +3 -3
- package/dist/components/data/nmorph-empty/NmorphEmpty.vue2.js +17 -14
- package/dist/components/data/nmorph-image/NmorphImage.css +1 -0
- package/dist/components/data/nmorph-image/NmorphImage.vue.js +14 -12
- package/dist/components/data/nmorph-image/NmorphImage.vue2.js +3 -2
- package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue2.js +36 -35
- package/dist/components/data/nmorph-pagination/NmorphPagination.vue2.js +1 -1
- package/dist/components/data/nmorph-progress/NmorphProgress.vue2.js +19 -18
- package/dist/components/data/nmorph-qr-code/NmorphQRCode.vue2.js +20 -19
- package/dist/components/data/nmorph-skeleton/NmorphSkeleton.vue2.js +1 -1
- package/dist/components/data/nmorph-table/NmorphTable.vue2.js +39 -43
- package/dist/components/data/nmorph-virtual-list/NmorphVirtualList.vue2.js +34 -33
- package/dist/components/feedback/nmorph-alert/NmorphAlert.vue2.js +1 -1
- package/dist/components/feedback/nmorph-callout/NmorphCallout.vue2.js +7 -6
- package/dist/components/feedback/nmorph-dialog/NmorphDialog.css +1 -1
- package/dist/components/feedback/nmorph-dialog/NmorphDialog.vue.js +25 -20
- package/dist/components/feedback/nmorph-dialog/NmorphDialog.vue2.js +37 -37
- package/dist/components/feedback/nmorph-drawer/NmorphDrawer.vue2.js +22 -21
- package/dist/components/feedback/nmorph-tooltip/NmorphTooltip.vue2.js +26 -25
- package/dist/components/form/nmorph-autocomplete/NmorphAutocomplete.vue2.js +54 -62
- package/dist/components/form/nmorph-checkbox/NmorphCheckbox.vue2.js +5 -5
- package/dist/components/form/nmorph-color-picker/NmorphColorPicker.vue2.js +5 -5
- package/dist/components/form/nmorph-date-picker/NmorphDatePicker.vue2.js +20 -19
- package/dist/components/form/nmorph-file-upload/NmorphFileUpload.vue2.js +7 -7
- package/dist/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.vue2.js +2 -2
- package/dist/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-error-box/NmorphErrorBox.vue2.js +1 -1
- package/dist/components/form/nmorph-number-input/NmorphNumberInput.vue2.js +3 -6
- package/dist/components/form/nmorph-otp-input/NmorphOTPInput.vue2.js +6 -6
- package/dist/components/form/nmorph-radio/NmorphRadio.vue2.js +1 -1
- package/dist/components/form/nmorph-select/NmorphSelect.vue2.js +65 -73
- package/dist/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.vue2.js +4 -4
- package/dist/components/form/nmorph-select-button/NmorphSelectButton.vue2.js +18 -17
- package/dist/components/form/nmorph-select-button/components/nmorph-select-button-item/NmorphSelectButtonItem.vue2.js +1 -1
- package/dist/components/form/nmorph-slider/NmorphSlider.vue2.js +25 -24
- package/dist/components/form/nmorph-switch/NmorphSwitch.vue2.js +23 -22
- package/dist/components/form/nmorph-text-input/NmorphTextInput.css +1 -0
- package/dist/components/form/nmorph-text-input/NmorphTextInput.vue.js +4 -2
- package/dist/components/form/nmorph-text-input/NmorphTextInput.vue2.js +17 -19
- package/dist/components/form/nmorph-textarea/NmorphTextarea.vue2.js +9 -9
- package/dist/components/form/nmorph-time-picker/NmorphTimePicker.vue2.js +43 -42
- package/dist/components/navigation/nmorph-backtop/NmorphBacktop.vue2.js +1 -1
- package/dist/components/navigation/nmorph-dropdown/NmorphDropdown.vue2.js +32 -31
- package/dist/components/navigation/nmorph-tabs/NmorphTabs.vue2.js +1 -1
- package/dist/components/others/nmorph-overlay/NmorphOverlay.vue2.js +1 -1
- package/dist/hooks/use-common-styles.js +18 -278
- package/dist/hooks/use-virtual-list.js +38 -32
- package/dist/index.umd.js +21 -281
- package/dist/package.json.js +1 -1
- package/dist/src/components/basic/nmorph-button/NmorphButton.vue.d.ts +1 -1
- package/dist/src/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue.d.ts +1 -1
- package/dist/src/components/data/nmorph-pagination/NmorphPagination.vue.d.ts +1 -1
- package/dist/src/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.vue.d.ts +1 -1
- package/dist/src/components/feedback/nmorph-dialog/NmorphDialog.vue.d.ts +4 -4
- package/dist/src/components/form/nmorph-autocomplete/NmorphAutocomplete.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-checkbox-group/NmorphCheckboxGroup.vue.d.ts +1 -1
- 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 +1 -1
- 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-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-group/NmorphRadioGroup.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-select/NmorphSelect.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-select-button/NmorphSelectButton.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-text-input/NmorphTextInput.vue.d.ts +1 -1
- 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/hooks/use-virtual-list.d.ts +6 -0
- package/dist/src/types/index.d.ts +2 -1
- package/dist/src/utils/common.d.ts +5 -0
- package/dist/src/utils/create-modifiers.d.ts +4 -2
- package/dist/style.css +1 -1
- package/dist/utils/common.js +9 -2
- package/dist/utils/create-modifiers.js +6 -6
- package/package.json +1 -1
package/dist/package.json.js
CHANGED
|
@@ -26,7 +26,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
|
|
|
26
26
|
accentBgOnHover: boolean;
|
|
27
27
|
shape: "default" | "square" | "round" | "circle";
|
|
28
28
|
tabindex: number;
|
|
29
|
-
height: "
|
|
29
|
+
height: "basic" | "thick" | "thin";
|
|
30
30
|
disabled: boolean;
|
|
31
31
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
32
32
|
buttonDOMElement: HTMLButtonElement;
|
|
@@ -18,7 +18,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
|
|
|
18
18
|
}) => any;
|
|
19
19
|
}>, {
|
|
20
20
|
block: boolean;
|
|
21
|
-
height: "
|
|
21
|
+
height: "basic" | "thick" | "thin";
|
|
22
22
|
disabled: boolean;
|
|
23
23
|
title: string;
|
|
24
24
|
transitionSpeed: string | number;
|
|
@@ -15,7 +15,7 @@ declare const _default: DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentO
|
|
|
15
15
|
}, string, PublicProps, Readonly<INmorphProps> & Readonly<{
|
|
16
16
|
"onUpdate:model-value"?: (currentPage: number) => any;
|
|
17
17
|
}>, {
|
|
18
|
-
height: "
|
|
18
|
+
height: "basic" | "thick" | "thin";
|
|
19
19
|
disabled: boolean;
|
|
20
20
|
modelValue: number;
|
|
21
21
|
elementsQuantityOnPage: number;
|
package/dist/src/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.vue.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ declare const _default: DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentO
|
|
|
8
8
|
}, string, PublicProps, Readonly<INmorphProps> & Readonly<{
|
|
9
9
|
onClose?: (val: string) => any;
|
|
10
10
|
}>, {
|
|
11
|
-
height: "
|
|
11
|
+
height: "basic" | "thick" | "thin";
|
|
12
12
|
design: NmorphElementDesignType;
|
|
13
13
|
removable: boolean;
|
|
14
14
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
@@ -6,6 +6,9 @@ interface INmorphProps {
|
|
|
6
6
|
maxHeight?: string;
|
|
7
7
|
openDelay?: number;
|
|
8
8
|
closeDelay?: number;
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated Use `closeOnOverlay` instead.
|
|
11
|
+
*/
|
|
9
12
|
closeOnClickModal?: boolean;
|
|
10
13
|
showClose?: boolean;
|
|
11
14
|
zIndex?: number;
|
|
@@ -30,10 +33,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
|
|
|
30
33
|
closeOnClickModal: boolean;
|
|
31
34
|
showClose: boolean;
|
|
32
35
|
closeOnOverlay: boolean;
|
|
33
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>,
|
|
34
|
-
header?(_: {}): any;
|
|
35
|
-
default?(_: {}): any;
|
|
36
|
-
}>;
|
|
36
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, any>;
|
|
37
37
|
export default _default;
|
|
38
38
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
39
39
|
new (): {
|
|
@@ -21,7 +21,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
|
|
|
21
21
|
onSelect?: (value: unknown) => any;
|
|
22
22
|
"onUpdate:model-value"?: (value: string) => any;
|
|
23
23
|
}>, {
|
|
24
|
-
height: "
|
|
24
|
+
height: "basic" | "thick" | "thin";
|
|
25
25
|
disabled: boolean;
|
|
26
26
|
placeholder: string;
|
|
27
27
|
modelValue: string;
|
|
@@ -12,7 +12,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
|
|
|
12
12
|
}, string, PublicProps, Readonly<INmorphProps> & Readonly<{
|
|
13
13
|
"onUpdate:model-value"?: (val: string[]) => any;
|
|
14
14
|
}>, {
|
|
15
|
-
height: "
|
|
15
|
+
height: "basic" | "thick" | "thin" | "extra-thin";
|
|
16
16
|
disabled: boolean;
|
|
17
17
|
modelValue: string[];
|
|
18
18
|
direction: "row" | "column";
|
|
@@ -16,7 +16,7 @@ declare const _default: DefineComponent<INmorphProps, {
|
|
|
16
16
|
onFocus?: () => any;
|
|
17
17
|
"onUpdate:model-value"?: (val: string) => any;
|
|
18
18
|
}>, {
|
|
19
|
-
height: "
|
|
19
|
+
height: "basic" | "thick" | "thin";
|
|
20
20
|
disabled: boolean;
|
|
21
21
|
modelValue: string;
|
|
22
22
|
showValue: boolean;
|
|
@@ -23,7 +23,7 @@ declare const _default: DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentO
|
|
|
23
23
|
"onUpdate:model-value"?: (modelValue: NmorphSelectedDateModelType) => any;
|
|
24
24
|
}>, {
|
|
25
25
|
type: "date" | "dates" | "daterange";
|
|
26
|
-
height: "
|
|
26
|
+
height: "basic" | "thick" | "thin";
|
|
27
27
|
disabled: boolean;
|
|
28
28
|
width: string | number;
|
|
29
29
|
placeholder: string;
|
package/dist/src/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.vue.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ interface INmorphProps {
|
|
|
12
12
|
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<INmorphProps> & Readonly<{}>, {
|
|
13
13
|
name: string;
|
|
14
14
|
autocomplete: string;
|
|
15
|
-
height: "
|
|
15
|
+
height: "basic" | "thick" | "thin";
|
|
16
16
|
label: string;
|
|
17
17
|
showValidationIcon: boolean;
|
|
18
18
|
staticErrorBoxSpace: boolean;
|
|
@@ -6,7 +6,7 @@ interface INmorphProps {
|
|
|
6
6
|
staticHeight?: boolean;
|
|
7
7
|
}
|
|
8
8
|
declare const _default: DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<INmorphProps> & Readonly<{}>, {
|
|
9
|
-
height: "
|
|
9
|
+
height: "basic" | "thick" | "thin";
|
|
10
10
|
errors: string[] | Ref<string[], string[]>;
|
|
11
11
|
staticHeight: boolean;
|
|
12
12
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
@@ -14,7 +14,7 @@ declare const _default: DefineComponent<INmorphProps, {
|
|
|
14
14
|
}, string, PublicProps, Readonly<INmorphProps> & Readonly<{
|
|
15
15
|
"onUpdate:model-value"?: (val: number) => any;
|
|
16
16
|
}>, {
|
|
17
|
-
height: "
|
|
17
|
+
height: "basic" | "thick" | "thin";
|
|
18
18
|
disabled: boolean;
|
|
19
19
|
modelValue: number;
|
|
20
20
|
max: number;
|
|
@@ -24,7 +24,7 @@ declare const _default: DefineComponent<INmorphProps, {
|
|
|
24
24
|
onComplete?: (val: string) => any;
|
|
25
25
|
}>, {
|
|
26
26
|
length: number;
|
|
27
|
-
height: "
|
|
27
|
+
height: "basic" | "thick" | "thin";
|
|
28
28
|
disabled: boolean;
|
|
29
29
|
modelValue: string;
|
|
30
30
|
mode: NmorphOtpInputMode;
|
|
@@ -14,7 +14,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
|
|
|
14
14
|
"onUpdate:model-value"?: (val: string) => any;
|
|
15
15
|
}>, {
|
|
16
16
|
styleType: "button" | "radio-style";
|
|
17
|
-
height: "
|
|
17
|
+
height: "basic" | "thick" | "thin" | "extra-thin";
|
|
18
18
|
disabled: boolean;
|
|
19
19
|
modelValue: string;
|
|
20
20
|
direction: "row" | "column";
|
|
@@ -26,7 +26,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
|
|
|
26
26
|
}>, {
|
|
27
27
|
fill: boolean;
|
|
28
28
|
loading: boolean;
|
|
29
|
-
height: "
|
|
29
|
+
height: "basic" | "thick" | "thin";
|
|
30
30
|
disabled: boolean;
|
|
31
31
|
width: string | number;
|
|
32
32
|
modelValue: NmorphSelectModelValueType;
|
|
@@ -15,7 +15,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
|
|
|
15
15
|
"onUpdate:model-value"?: (val: string) => any;
|
|
16
16
|
}>, {
|
|
17
17
|
fill: boolean;
|
|
18
|
-
height: "
|
|
18
|
+
height: "basic" | "thick" | "thin";
|
|
19
19
|
disabled: boolean;
|
|
20
20
|
modelValue: string;
|
|
21
21
|
options: INmorphSelectButtonOption[];
|
|
@@ -26,7 +26,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
|
|
|
26
26
|
"onUpdate:model-value"?: (val: string) => any;
|
|
27
27
|
"onOn-enter"?: () => any;
|
|
28
28
|
}>, {
|
|
29
|
-
height: "
|
|
29
|
+
height: "basic" | "thick" | "thin";
|
|
30
30
|
disabled: boolean;
|
|
31
31
|
placeholder: string;
|
|
32
32
|
modelValue: string;
|
|
@@ -31,7 +31,7 @@ declare const _default: DefineComponent<INmorphProps, {
|
|
|
31
31
|
"onUpdate:model-value"?: (val: string) => any;
|
|
32
32
|
"onOn-enter"?: () => any;
|
|
33
33
|
}>, {
|
|
34
|
-
height: "
|
|
34
|
+
height: "basic" | "thick" | "thin";
|
|
35
35
|
disabled: boolean;
|
|
36
36
|
resize: NmorphTextareaResizeType;
|
|
37
37
|
placeholder: string;
|
|
@@ -25,7 +25,7 @@ declare const _default: DefineComponent<INmorphProps, {
|
|
|
25
25
|
onFocus?: () => any;
|
|
26
26
|
"onUpdate:model-value"?: (val: string) => any;
|
|
27
27
|
}>, {
|
|
28
|
-
height: "
|
|
28
|
+
height: "basic" | "thick" | "thin";
|
|
29
29
|
disabled: boolean;
|
|
30
30
|
width: string | number;
|
|
31
31
|
placeholder: string;
|
|
@@ -7,12 +7,18 @@ interface INmorphVirtualListOptions {
|
|
|
7
7
|
}
|
|
8
8
|
export declare const useVirtualList: <T>(items: Readonly<Ref<T[], T[]>>, options: INmorphVirtualListOptions) => {
|
|
9
9
|
containerRef: Ref<HTMLElement, HTMLElement>;
|
|
10
|
+
contentStyle: ComputedRef<{
|
|
11
|
+
transform: string;
|
|
12
|
+
}>;
|
|
10
13
|
endIndex: ComputedRef<number>;
|
|
11
14
|
offsetTop: ComputedRef<number>;
|
|
12
15
|
refresh: () => void;
|
|
13
16
|
measureElement: (index: number, element?: Element | null) => void;
|
|
14
17
|
scrollHandler: () => void;
|
|
15
18
|
scrollToIndex: (index: number) => void;
|
|
19
|
+
spacerStyle: ComputedRef<{
|
|
20
|
+
height: string;
|
|
21
|
+
}>;
|
|
16
22
|
startIndex: ComputedRef<number>;
|
|
17
23
|
totalHeight: ComputedRef<number>;
|
|
18
24
|
viewportHeight: Ref<number, number>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
1
|
+
import { CSSProperties, Ref } from 'vue';
|
|
2
2
|
import { I18n } from 'vue-i18n';
|
|
3
3
|
import { NmorphFormValidationDataType } from '../components';
|
|
4
4
|
import { useNmorphBrowser, useNmorphTheme, useNmorphZIndex } from '../outside-hooks';
|
|
@@ -166,6 +166,7 @@ export interface INmorphDimensions {
|
|
|
166
166
|
width: number;
|
|
167
167
|
height: number;
|
|
168
168
|
}
|
|
169
|
+
export type NmorphCSSProperties = CSSProperties & Record<`--${string}`, string | number | undefined>;
|
|
169
170
|
export interface INmorphImage {
|
|
170
171
|
src?: string;
|
|
171
172
|
srcSet?: string;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
export declare const capitalizeFirstChar: (str: string) => string;
|
|
2
2
|
export declare const deepClone: <T>(obj: T) => T;
|
|
3
|
+
export declare const toCssSize: (value?: number | string) => string;
|
|
4
|
+
type NmorphOptionHeightType = 'basic' | 'thick' | 'thin';
|
|
5
|
+
export declare const getNmorphOptionHeight: (height?: NmorphOptionHeightType) => number;
|
|
6
|
+
export declare const resolveDomElement: (element: unknown) => Element | null;
|
|
3
7
|
export declare const generateUUID: () => string;
|
|
8
|
+
export {};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type NmorphModifierValue = string | number | false | null | undefined;
|
|
2
|
+
export type NmorphModifierInput = NmorphModifierValue[] | Record<string, boolean | null | undefined>;
|
|
3
|
+
export declare const createBlockModifiers: (block: string, modifiers: NmorphModifierInput) => string;
|
|
2
4
|
export declare const useModifiers: (data: {
|
|
3
|
-
[key: string]:
|
|
5
|
+
[key: string]: NmorphModifierInput;
|
|
4
6
|
}) => string;
|