prizm-ui-vue 2.2.8 → 2.2.10

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.
@@ -409,31 +409,9 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps,
409
409
  };
410
410
  }) | null>>;
411
411
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
412
- clear: () => any;
413
- blur: () => any;
414
- change: () => any;
415
- compositionend: () => any;
416
- compositionstart: () => any;
417
- compositionupdate: () => any;
418
- focus: () => any;
419
- input: () => any;
420
- keydown: () => any;
421
- mouseenter: () => any;
422
- mouseleave: () => any;
423
- "update:modelValue": (...args: unknown[]) => any;
412
+ "update:modelValue": (value: string | number | undefined) => any;
424
413
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
425
- onClear?: (() => any) | undefined;
426
- onBlur?: (() => any) | undefined;
427
- onChange?: (() => any) | undefined;
428
- onCompositionend?: (() => any) | undefined;
429
- onCompositionstart?: (() => any) | undefined;
430
- onCompositionupdate?: (() => any) | undefined;
431
- onFocus?: (() => any) | undefined;
432
- onInput?: (() => any) | undefined;
433
- onKeydown?: (() => any) | undefined;
434
- onMouseenter?: (() => any) | undefined;
435
- onMouseleave?: (() => any) | undefined;
436
- "onUpdate:modelValue"?: ((...args: unknown[]) => any) | undefined;
414
+ "onUpdate:modelValue"?: ((value: string | number | undefined) => any) | undefined;
437
415
  }>, {
438
416
  size: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>;
439
417
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -0,0 +1,17 @@
1
+ import { type ElMessageBoxOptions, type MessageBoxData, type MessageBoxType } from 'element-plus';
2
+ import 'element-plus/es/components/message-box/style/css';
3
+ export type Props = Pick<ElMessageBoxOptions, 'title' | 'message' | 'showCancelButton' | 'showConfirmButton' | 'center' | 'customClass' | 'confirmButtonClass' | 'cancelButtonClass' | 'buttonSize' | 'customStyle'> & {
4
+ /** 'primary' refers to the confirm styles from Figma. 'danger' refers to the delete styles from Figma. @default 'primary' */
5
+ variant?: 'primary' | 'danger';
6
+ /** @default 'confirm' */
7
+ boxType?: Extract<MessageBoxType, 'confirm'>;
8
+ cancelButtonText?: string;
9
+ confirmButtonText?: string;
10
+ classLocalComponent?: string;
11
+ vertical?: boolean;
12
+ width?: `${string}px` | `${string}%` | string | number;
13
+ };
14
+ export declare const PrizmMessageBox: {
15
+ ({ showCancelButton, showConfirmButton, center, variant, boxType, vertical, ...props }: Props): Promise<MessageBoxData>;
16
+ inheritAttrs: boolean;
17
+ };
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @author Garaev.VM@gazprom-neft.ru
3
+ * @components ElNotification
4
+ * https://element-plus.org/en-US/component/notification.html
5
+ */
6
+ import { type NotificationInstance } from 'element-plus';
7
+ import 'element-plus/es/components/notification/style/css';
8
+ type ElNotificationProps = NotificationInstance;
9
+ export type BaseNotificationProps = {
10
+ title?: string;
11
+ message?: string;
12
+ type: Extract<ElNotificationProps['type'], 'success' | 'warning' | 'error' | 'info'>;
13
+ position?: Extract<ElNotificationProps['position'], 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left'>;
14
+ duration?: ElNotificationProps['duration'];
15
+ };
16
+ export declare const PrizmNotification: {
17
+ ({ type, position, duration, message, title, }: BaseNotificationProps): import("element-plus").NotificationHandle;
18
+ inheritAttrs: boolean;
19
+ };
20
+ export {};
@@ -0,0 +1,35 @@
1
+ import { ElRadio } from 'element-plus';
2
+ import 'element-plus/es/components/radio/style/css';
3
+ type ElRadioProps = InstanceType<typeof ElRadio>['$props'];
4
+ type PickedProps = Pick<ElRadioProps, 'border' | 'label' | 'name' | 'disabled' | 'onChange' | 'size' | 'value'>;
5
+ type Props = {
6
+ border?: PickedProps['border'];
7
+ label?: PickedProps['label'];
8
+ name?: PickedProps['name'];
9
+ disabled?: PickedProps['disabled'];
10
+ size?: PickedProps['size'];
11
+ onChange?: PickedProps['onChange'];
12
+ };
13
+ type Slots = {
14
+ default?: unknown;
15
+ };
16
+ type __VLS_Props = Props;
17
+ declare const modelValue: import("vue").ModelRef<string | number | boolean, string, string | number | boolean, string | number | boolean>;
18
+ type __VLS_Slots = Slots;
19
+ type __VLS_PublicProps = __VLS_Props & {
20
+ modelValue?: typeof modelValue['value'];
21
+ };
22
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
23
+ "update:modelValue": (value: string | number | boolean) => any;
24
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
25
+ "onUpdate:modelValue"?: ((value: string | number | boolean) => any) | undefined;
26
+ }>, {
27
+ size: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>;
28
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
29
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
30
+ export default _default;
31
+ type __VLS_WithSlots<T, S> = T & {
32
+ new (): {
33
+ $slots: S;
34
+ };
35
+ };
@@ -0,0 +1,31 @@
1
+ import { ElRadioButton } from 'element-plus';
2
+ import 'element-plus/es/components/radio-button/style/css';
3
+ type ElRadioProps = InstanceType<typeof ElRadioButton>['$props'];
4
+ type PickedProps = Pick<ElRadioProps, 'disabled' | 'label' | 'name' | 'value'>;
5
+ type Props = {
6
+ disabled?: PickedProps['disabled'];
7
+ label?: PickedProps['label'];
8
+ name?: PickedProps['name'];
9
+ value?: PickedProps['value'];
10
+ };
11
+ type Slots = {
12
+ default?: unknown;
13
+ };
14
+ type __VLS_Props = Props;
15
+ declare const modelValue: import("vue").ModelRef<string | number | boolean, string, string | number | boolean, string | number | boolean>;
16
+ type __VLS_Slots = Slots;
17
+ type __VLS_PublicProps = __VLS_Props & {
18
+ modelValue?: typeof modelValue['value'];
19
+ };
20
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
+ "update:modelValue": (value: string | number | boolean) => any;
22
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
23
+ "onUpdate:modelValue"?: ((value: string | number | boolean) => any) | undefined;
24
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
25
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
26
+ export default _default;
27
+ type __VLS_WithSlots<T, S> = T & {
28
+ new (): {
29
+ $slots: S;
30
+ };
31
+ };
@@ -0,0 +1,31 @@
1
+ import { ElRadioGroup } from 'element-plus';
2
+ import 'element-plus/es/components/radio-group/style/css';
3
+ type ElRadioProps = InstanceType<typeof ElRadioGroup>['$props'];
4
+ type PickedProps = Pick<ElRadioProps, 'fill' | 'disabled' | 'name' | 'onChange'>;
5
+ type Props = {
6
+ fill?: PickedProps['fill'];
7
+ disabled?: PickedProps['disabled'];
8
+ name?: PickedProps['name'];
9
+ onChange?: PickedProps['onChange'];
10
+ };
11
+ type Slots = {
12
+ default?: unknown;
13
+ };
14
+ type __VLS_Props = Props;
15
+ declare const modelValue: import("vue").ModelRef<string | number | boolean, string, string | number | boolean, string | number | boolean>;
16
+ type __VLS_Slots = Slots;
17
+ type __VLS_PublicProps = __VLS_Props & {
18
+ modelValue: typeof modelValue['value'];
19
+ };
20
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
+ "update:modelValue": (value: string | number | boolean) => any;
22
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
23
+ "onUpdate:modelValue"?: ((value: string | number | boolean) => any) | undefined;
24
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
25
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
26
+ export default _default;
27
+ type __VLS_WithSlots<T, S> = T & {
28
+ new (): {
29
+ $slots: S;
30
+ };
31
+ };
@@ -0,0 +1,23 @@
1
+ import { ElTabPane } from 'element-plus';
2
+ import 'element-plus/es/components/tab-pane/style/css';
3
+ type ElTabPaneProps = InstanceType<typeof ElTabPane>['$props'];
4
+ type PickedProps = Pick<ElTabPaneProps, 'label' | 'disabled' | 'name' | 'closable'>;
5
+ type Props = {
6
+ label?: PickedProps['label'];
7
+ disabled?: PickedProps['disabled'];
8
+ name?: PickedProps['name'];
9
+ closable?: PickedProps['closable'];
10
+ };
11
+ type Slots = {
12
+ default?: unknown;
13
+ label?: unknown;
14
+ };
15
+ type __VLS_Slots = Slots;
16
+ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
18
+ export default _default;
19
+ type __VLS_WithSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -0,0 +1,38 @@
1
+ import { ElTabs } from 'element-plus';
2
+ import 'element-plus/es/components/tabs/style/css';
3
+ type ElTabsProps = InstanceType<typeof ElTabs>['$props'];
4
+ type PickedProps = Pick<ElTabsProps, 'type' | 'onEdit' | 'onTabAdd' | 'onTabChange' | 'onTabClick' | 'onTabRemove' | 'addable' | 'beforeLeave' | 'editable' | 'closable'>;
5
+ type TabsProps = {
6
+ type?: PickedProps['type'];
7
+ onEdit?: PickedProps['onEdit'];
8
+ onTabAdd?: PickedProps['onTabAdd'];
9
+ onTabChange?: PickedProps['onTabChange'];
10
+ onTabClick?: PickedProps['onTabClick'];
11
+ onTabRemove?: PickedProps['onTabRemove'];
12
+ addable?: PickedProps['addable'];
13
+ beforeLeave?: PickedProps['beforeLeave'];
14
+ editable?: PickedProps['editable'];
15
+ };
16
+ type Slots = {
17
+ default?: unknown;
18
+ };
19
+ type __VLS_Props = TabsProps;
20
+ type __VLS_Slots = Slots;
21
+ declare const modelValue: import("vue").ModelRef<string | number, string, string | number, string | number>;
22
+ type __VLS_PublicProps = __VLS_Props & {
23
+ modelValue: typeof modelValue['value'];
24
+ };
25
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
26
+ "update:modelValue": (value: string | number) => any;
27
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
28
+ "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
29
+ }>, {
30
+ type: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "card" | "border-card", unknown>;
31
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
32
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
33
+ export default _default;
34
+ type __VLS_WithSlots<T, S> = T & {
35
+ new (): {
36
+ $slots: S;
37
+ };
38
+ };
@@ -8,3 +8,10 @@ export { default as PrizmDatePicker } from './PrizmDatePicker.vue';
8
8
  export { default as PrizmForm } from './PrizmForm/PrizmForm.vue';
9
9
  export { default as PrizmFormItem } from './PrizmForm/PrizmFormItem.vue';
10
10
  export { default as PrizmDrawer } from './PrizmDrawer.vue';
11
+ export { default as PrizmTabs } from './PrizmTabs/PrizmTabs.vue';
12
+ export { default as PrizmTabPane } from './PrizmTabs/PrizmTabPane.vue';
13
+ export { default as PrizmRadio } from './PrizmRadio/PrizmRadio.vue';
14
+ export { default as PrizmRadioButton } from './PrizmRadio/PrizmRadioButton.vue';
15
+ export { default as PrizmRadioGroup } from './PrizmRadio/PrizmRadioGroup.vue';
16
+ export { PrizmMessageBox } from './PrizmMessageBox/PrizmMessageBox';
17
+ export { PrizmNotification } from './PrizmNotification/PrizmNotification';