@snabcentr/vue-ui-lib 4.10.0 → 4.12.0
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/manifest.json +2 -2
- package/dist/release_notes.tmp +4 -2
- package/dist/sc-vue-ui-lib.css +1 -1
- package/dist/sc-vue-ui-lib.js +5103 -5085
- package/dist/sc-vue-ui-lib.js.map +1 -1
- package/dist/sc-vue-ui-lib.umd.cjs +33 -33
- package/dist/sc-vue-ui-lib.umd.cjs.map +1 -1
- package/dist/src/components/configurators/strip/strip-configurator-form.vue.d.ts +4 -0
- package/dist/src/components/configurators/strip/strip-configurator-line-item.vue.d.ts +11 -0
- package/dist/src/components/configurators/strip/strip-configurator.vue.d.ts +4 -0
- package/dist/src/directives/focus-next.d.ts +9 -3
- package/package.json +1 -1
|
@@ -643,6 +643,7 @@ declare const _default: import('vue').DefineComponent<IValue<OrderItemBase<IConf
|
|
|
643
643
|
removeLineButtonDisabled?: boolean;
|
|
644
644
|
suggestionOption?: import('naive-ui/es/dropdown/src/interface').DropdownMixedOption[];
|
|
645
645
|
autoFocus?: boolean;
|
|
646
|
+
isLastLine?: boolean;
|
|
646
647
|
validation: import('@snabcentr/common-lib').IFormValidationResult;
|
|
647
648
|
}> & Readonly<{
|
|
648
649
|
"onUpdate:value"?: ((value: number | null, ...additionalParams: any[]) => any) | undefined;
|
|
@@ -1044,6 +1045,7 @@ declare const _default: import('vue').DefineComponent<IValue<OrderItemBase<IConf
|
|
|
1044
1045
|
addLineButtonDisabled: boolean;
|
|
1045
1046
|
removeLineButtonDisabled: boolean;
|
|
1046
1047
|
suggestionOption: import('naive-ui/es/dropdown/src/interface').DropdownMixedOption[];
|
|
1048
|
+
isLastLine: boolean;
|
|
1047
1049
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
1048
1050
|
'form-item-reference': import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
1049
1051
|
readonly label: StringConstructor;
|
|
@@ -4107,6 +4109,7 @@ declare const _default: import('vue').DefineComponent<IValue<OrderItemBase<IConf
|
|
|
4107
4109
|
removeLineButtonDisabled?: boolean;
|
|
4108
4110
|
suggestionOption?: import('naive-ui/es/dropdown/src/interface').DropdownMixedOption[];
|
|
4109
4111
|
autoFocus?: boolean;
|
|
4112
|
+
isLastLine?: boolean;
|
|
4110
4113
|
validation: import('@snabcentr/common-lib').IFormValidationResult;
|
|
4111
4114
|
}> & Readonly<{
|
|
4112
4115
|
"onUpdate:value"?: ((value: number | null, ...additionalParams: any[]) => any) | undefined;
|
|
@@ -4504,6 +4507,7 @@ declare const _default: import('vue').DefineComponent<IValue<OrderItemBase<IConf
|
|
|
4504
4507
|
addLineButtonDisabled: boolean;
|
|
4505
4508
|
removeLineButtonDisabled: boolean;
|
|
4506
4509
|
suggestionOption: import('naive-ui/es/dropdown/src/interface').DropdownMixedOption[];
|
|
4510
|
+
isLastLine: boolean;
|
|
4507
4511
|
}> | null)[];
|
|
4508
4512
|
}, any>;
|
|
4509
4513
|
export default _default;
|
|
@@ -39,6 +39,11 @@ declare const _default: import('vue').DefineComponent<IValue<number | null> & {
|
|
|
39
39
|
* Признак, что нужно установить фокус на поле ввода.
|
|
40
40
|
*/
|
|
41
41
|
autoFocus?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Признак, что это последняя полоса в списке. На промежуточных полосах Enter
|
|
44
|
+
* не переводит фокус на следующее поле и не отправляет форму.
|
|
45
|
+
*/
|
|
46
|
+
isLastLine?: boolean;
|
|
42
47
|
/**
|
|
43
48
|
* Результат валидации поля при выполнении запросов.
|
|
44
49
|
*/
|
|
@@ -472,6 +477,11 @@ declare const _default: import('vue').DefineComponent<IValue<number | null> & {
|
|
|
472
477
|
* Признак, что нужно установить фокус на поле ввода.
|
|
473
478
|
*/
|
|
474
479
|
autoFocus?: boolean;
|
|
480
|
+
/**
|
|
481
|
+
* Признак, что это последняя полоса в списке. На промежуточных полосах Enter
|
|
482
|
+
* не переводит фокус на следующее поле и не отправляет форму.
|
|
483
|
+
*/
|
|
484
|
+
isLastLine?: boolean;
|
|
475
485
|
/**
|
|
476
486
|
* Результат валидации поля при выполнении запросов.
|
|
477
487
|
*/
|
|
@@ -486,6 +496,7 @@ declare const _default: import('vue').DefineComponent<IValue<number | null> & {
|
|
|
486
496
|
addLineButtonDisabled: boolean;
|
|
487
497
|
removeLineButtonDisabled: boolean;
|
|
488
498
|
suggestionOption: DropdownMixedOption[];
|
|
499
|
+
isLastLine: boolean;
|
|
489
500
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
490
501
|
'form-item-reference': import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
491
502
|
readonly label: StringConstructor;
|
|
@@ -637,6 +637,7 @@ declare const _default: import('vue').DefineComponent<ICatalogableItemProperties
|
|
|
637
637
|
removeLineButtonDisabled?: boolean;
|
|
638
638
|
suggestionOption?: import('naive-ui/es/dropdown/src/interface').DropdownMixedOption[];
|
|
639
639
|
autoFocus?: boolean;
|
|
640
|
+
isLastLine?: boolean;
|
|
640
641
|
validation: import('@snabcentr/common-lib').IFormValidationResult;
|
|
641
642
|
}> & Readonly<{
|
|
642
643
|
"onUpdate:value"?: ((value: number | null, ...additionalParams: any[]) => any) | undefined;
|
|
@@ -1038,6 +1039,7 @@ declare const _default: import('vue').DefineComponent<ICatalogableItemProperties
|
|
|
1038
1039
|
addLineButtonDisabled: boolean;
|
|
1039
1040
|
removeLineButtonDisabled: boolean;
|
|
1040
1041
|
suggestionOption: import('naive-ui/es/dropdown/src/interface').DropdownMixedOption[];
|
|
1042
|
+
isLastLine: boolean;
|
|
1041
1043
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
1042
1044
|
'form-item-reference': import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
1043
1045
|
readonly label: StringConstructor;
|
|
@@ -4101,6 +4103,7 @@ declare const _default: import('vue').DefineComponent<ICatalogableItemProperties
|
|
|
4101
4103
|
removeLineButtonDisabled?: boolean;
|
|
4102
4104
|
suggestionOption?: import('naive-ui/es/dropdown/src/interface').DropdownMixedOption[];
|
|
4103
4105
|
autoFocus?: boolean;
|
|
4106
|
+
isLastLine?: boolean;
|
|
4104
4107
|
validation: import('@snabcentr/common-lib').IFormValidationResult;
|
|
4105
4108
|
}> & Readonly<{
|
|
4106
4109
|
"onUpdate:value"?: ((value: number | null, ...additionalParams: any[]) => any) | undefined;
|
|
@@ -4498,6 +4501,7 @@ declare const _default: import('vue').DefineComponent<ICatalogableItemProperties
|
|
|
4498
4501
|
addLineButtonDisabled: boolean;
|
|
4499
4502
|
removeLineButtonDisabled: boolean;
|
|
4500
4503
|
suggestionOption: import('naive-ui/es/dropdown/src/interface').DropdownMixedOption[];
|
|
4504
|
+
isLastLine: boolean;
|
|
4501
4505
|
}> | null)[];
|
|
4502
4506
|
}, any, import('vue').ComponentProvideOptions, {
|
|
4503
4507
|
P: {};
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import { Directive } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* Колбэк отправки формы. Вызывается, когда Enter нажат на последнем поле ввода.
|
|
4
|
+
*/
|
|
5
|
+
type FocusNextSubmit = (() => void) | undefined;
|
|
2
6
|
/**
|
|
3
7
|
* Директива `v-focus-next` — вешается на форму или любой контейнер с полями ввода.
|
|
4
|
-
* По Enter переводит фокус на следующий редактируемый `<input>` внутри
|
|
8
|
+
* По Enter переводит фокус на следующий редактируемый `<input>` внутри элемента,
|
|
9
|
+
* а на последнем поле вызывает переданный колбэк отправки формы.
|
|
5
10
|
*
|
|
6
11
|
* @example
|
|
7
12
|
* ```vue
|
|
8
|
-
* <n-form v-focus-next ...>
|
|
13
|
+
* <n-form v-focus-next="() => emit('submit', formModel)" ...>
|
|
9
14
|
* ```
|
|
10
15
|
*/
|
|
11
|
-
export declare const vFocusNext: Directive<HTMLElement>;
|
|
16
|
+
export declare const vFocusNext: Directive<HTMLElement, FocusNextSubmit>;
|
|
17
|
+
export {};
|