@snabcentr/vue-ui-lib 4.17.4 → 4.18.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.
Files changed (35) hide show
  1. package/dist/manifest.json +2 -2
  2. package/dist/release_notes.tmp +4 -2
  3. package/dist/sc-vue-ui-lib.css +1 -1
  4. package/dist/sc-vue-ui-lib.js +8432 -7953
  5. package/dist/sc-vue-ui-lib.js.map +1 -1
  6. package/dist/sc-vue-ui-lib.umd.cjs +65 -65
  7. package/dist/sc-vue-ui-lib.umd.cjs.map +1 -1
  8. package/dist/src/components/{button-with-confirm-action.vue.d.ts → buttons/button-with-confirm-action.vue.d.ts} +4 -4
  9. package/dist/src/components/buttons/index.d.ts +1 -0
  10. package/dist/src/components/catalog/category-collapse.vue.d.ts +1 -1
  11. package/dist/src/components/catalog/dialogs/add-product-to-cart-dialog.vue.d.ts +5 -5
  12. package/dist/src/components/dates/date-range/date-range-dialog.vue.d.ts +57 -0
  13. package/dist/src/components/dates/date-range/date-range-fields.vue.d.ts +66 -0
  14. package/dist/src/components/dates/date-range/date-range-helper.d.ts +24 -0
  15. package/dist/src/components/dates/date-range/date-range-input.vue.d.ts +38 -0
  16. package/dist/src/components/dates/date-range/month-range-grid.vue.d.ts +33 -0
  17. package/dist/src/components/dates/date-range/month-year-sidebar.vue.d.ts +31 -0
  18. package/dist/src/components/dates/date-range/standard-periods.vue.d.ts +31 -0
  19. package/dist/src/components/dates/date-range.vue.d.ts +28 -61
  20. package/dist/src/components/debt/index.d.ts +1 -0
  21. package/dist/src/components/dialog/base-dialog.vue.d.ts +2 -2
  22. package/dist/src/components/{comment-editor.vue.d.ts → editors/comment-editor.vue.d.ts} +1 -1
  23. package/dist/src/components/editors/index.d.ts +1 -0
  24. package/dist/src/components/icons/index.d.ts +1 -0
  25. package/dist/src/components/index.d.ts +5 -5
  26. package/dist/src/components/inline/inline-view.vue.d.ts +1 -1
  27. package/dist/src/components/sliding-content/index.d.ts +1 -0
  28. package/dist/src/properties/interfaces/i-date-range-disabled.d.ts +18 -0
  29. package/dist/src/properties/interfaces/i-predefined-date-ranges.d.ts +10 -0
  30. package/dist/src/properties/interfaces/index.d.ts +2 -0
  31. package/dist/src/test/component-test-support.d.ts +87 -0
  32. package/package.json +15 -6
  33. /package/dist/src/components/{debt.vue.d.ts → debt/debt.vue.d.ts} +0 -0
  34. /package/dist/src/components/{warning-icon.vue.d.ts → icons/warning-icon.vue.d.ts} +0 -0
  35. /package/dist/src/components/{sliding-content-with-drawer.vue.d.ts → sliding-content/sliding-content-with-drawer.vue.d.ts} +0 -0
@@ -1,5 +1,5 @@
1
- import { IDisabled } from '../properties/interfaces/i-disabled';
2
1
  import { Size, Type } from 'naive-ui/lib/button/src/interface';
2
+ import { IDisabled } from '../../properties/interfaces/i-disabled';
3
3
  /**
4
4
  * Компонент кнопки с отображением диалога подтверждения действия.
5
5
  */
@@ -94,13 +94,13 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<ID
94
94
  disabled: boolean;
95
95
  type: Type;
96
96
  circle: boolean;
97
- ghost: boolean;
98
- loading: boolean;
99
- quaternary: boolean;
100
97
  dialogTitle: string;
101
98
  dialogContent: string;
102
99
  disableConfirm: boolean;
103
100
  popoverText: string;
101
+ quaternary: boolean;
102
+ ghost: boolean;
103
+ loading: boolean;
104
104
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>, {
105
105
  default?(_: {}): any;
106
106
  }>;
@@ -0,0 +1 @@
1
+ export { default as ScButtonWithConfirmAction } from './button-with-confirm-action.vue';
@@ -4,6 +4,7 @@ import { CategoryData, SearchResult } from '@snabcentr/common-lib';
4
4
  * Компонент списка сворачиваемых элементов каталога.
5
5
  */
6
6
  declare const _default: import('vue').DefineComponent<ICategoryCollapseProperties, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ICategoryCollapseProperties> & Readonly<{}>, {
7
+ loading: boolean;
7
8
  showSlugs: boolean;
8
9
  showProperties: boolean;
9
10
  showProductCosts: boolean | ((product: import('@snabcentr/common-lib').ProductData) => boolean);
@@ -15,7 +16,6 @@ declare const _default: import('vue').DefineComponent<ICategoryCollapsePropertie
15
16
  showProductEditButton: import('../..').ButtonStates | import('../..').ButtonStateFunction<import('@snabcentr/common-lib').ProductData>;
16
17
  productContextButtonsConfig: (product: import('@snabcentr/common-lib').ProductData) => Array<import('naive-ui').DropdownOption | import('naive-ui').DropdownGroupOption | import('naive-ui').DropdownDividerOption | import('naive-ui').DropdownRenderOption>;
17
18
  isProductItemSelected: import('../..').ButtonStateFunction<import('@snabcentr/common-lib').ProductData>;
18
- loading: boolean;
19
19
  filteredItems: SearchResult;
20
20
  isCategoryItemSelected: import('../..').ButtonStates | import('../..').ButtonStateFunction<CategoryData>;
21
21
  showCategoryEditButton: import('../..').ButtonStates | import('../..').ButtonStateFunction<CategoryData>;
@@ -43,8 +43,8 @@ declare const _default: import('vue').DefineComponent<{}, {
43
43
  readonly cancelButton?: import('../..').IDialogButtonsParams | undefined;
44
44
  readonly trapFocus?: boolean | undefined;
45
45
  readonly "onUpdate:show"?: ((isVisible: boolean) => any) | undefined;
46
- readonly onOpening?: (() => any) | undefined;
47
46
  readonly onAccept?: ((processingCallback: (processing: boolean) => void) => any) | undefined;
47
+ readonly onOpening?: (() => any) | undefined;
48
48
  readonly "onProcessing:cancel"?: ((processingCallback: (processing: boolean) => void) => any) | undefined;
49
49
  readonly onClosing?: ((target: import('../..').CloseTarget, cancel: () => void) => any) | undefined;
50
50
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
@@ -60,7 +60,7 @@ declare const _default: import('vue').DefineComponent<{}, {
60
60
  $root: import('vue').ComponentPublicInstance | null;
61
61
  $parent: import('vue').ComponentPublicInstance | null;
62
62
  $host: Element | null;
63
- $emit: ((event: "update:show", isVisible: boolean) => void) & ((event: "opening") => void) & ((event: "accept", processingCallback: (processing: boolean) => void) => void) & ((event: "processing:cancel", processingCallback: (processing: boolean) => void) => void) & ((event: "closing", target: import('../..').CloseTarget, cancel: () => void) => void);
63
+ $emit: ((event: "update:show", isVisible: boolean) => void) & ((event: "accept", processingCallback: (processing: boolean) => void) => void) & ((event: "opening") => void) & ((event: "processing:cancel", processingCallback: (processing: boolean) => void) => void) & ((event: "closing", target: import('../..').CloseTarget, cancel: () => void) => void);
64
64
  $el: any;
65
65
  $options: import('vue').ComponentOptionsBase<Readonly<{
66
66
  show: boolean;
@@ -78,8 +78,8 @@ declare const _default: import('vue').DefineComponent<{}, {
78
78
  trapFocus?: boolean;
79
79
  }> & Readonly<{
80
80
  "onUpdate:show"?: ((isVisible: boolean) => any) | undefined;
81
- onOpening?: (() => any) | undefined;
82
81
  onAccept?: ((processingCallback: (processing: boolean) => void) => any) | undefined;
82
+ onOpening?: (() => any) | undefined;
83
83
  "onProcessing:cancel"?: ((processingCallback: (processing: boolean) => void) => any) | undefined;
84
84
  onClosing?: ((target: import('../..').CloseTarget, cancel: () => void) => any) | undefined;
85
85
  }>, {
@@ -88,8 +88,8 @@ declare const _default: import('vue').DefineComponent<{}, {
88
88
  acceptHandler: () => void;
89
89
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
90
90
  "update:show": (isVisible: boolean) => any;
91
- opening: () => any;
92
91
  accept: (processingCallback: (processing: boolean) => void) => any;
92
+ opening: () => any;
93
93
  "processing:cancel": (processingCallback: (processing: boolean) => void) => any;
94
94
  closing: (target: import('../..').CloseTarget, cancel: () => void) => any;
95
95
  }, string, {
@@ -152,8 +152,8 @@ declare const _default: import('vue').DefineComponent<{}, {
152
152
  trapFocus?: boolean;
153
153
  }> & Readonly<{
154
154
  "onUpdate:show"?: ((isVisible: boolean) => any) | undefined;
155
- onOpening?: (() => any) | undefined;
156
155
  onAccept?: ((processingCallback: (processing: boolean) => void) => any) | undefined;
156
+ onOpening?: (() => any) | undefined;
157
157
  "onProcessing:cancel"?: ((processingCallback: (processing: boolean) => void) => any) | undefined;
158
158
  onClosing?: ((target: import('../..').CloseTarget, cancel: () => void) => any) | undefined;
159
159
  }>, "close" | "acceptHandler" | ("trapFocus" | "modalWidth" | "sizes" | "processing" | "valid" | "acceptButton" | "cancelButton") | "open"> & import('vue').ShallowUnwrapRef<{
@@ -0,0 +1,57 @@
1
+ import { IClearable } from '../../../properties/interfaces/i-clearable';
2
+ import { IDateRangeDisabled } from '../../../properties/interfaces/i-date-range-disabled';
3
+ import { IDatePeriod, ILabeledPeriod } from '@snabcentr/common-lib';
4
+ /**
5
+ * Диалог «Выберите период» с сеткой месяцев и стандартными периодами.
6
+ */
7
+ declare const _default: import('vue').DefineComponent<IClearable & IDateRangeDisabled & {
8
+ /**
9
+ * Признак отображения диалога.
10
+ */
11
+ show: boolean;
12
+ /**
13
+ * Текущее значение периода — начальное состояние черновика.
14
+ */
15
+ dateRange?: IDatePeriod;
16
+ /**
17
+ * Дополнительные периоды для вида «стандартные периоды».
18
+ */
19
+ customPeriods?: Record<string, ILabeledPeriod>;
20
+ /**
21
+ * Формат даты.
22
+ */
23
+ dateFormat?: string;
24
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
25
+ select: (value: IDatePeriod) => any;
26
+ "update:show": (show: boolean) => any;
27
+ }, string, import('vue').PublicProps, Readonly<IClearable & IDateRangeDisabled & {
28
+ /**
29
+ * Признак отображения диалога.
30
+ */
31
+ show: boolean;
32
+ /**
33
+ * Текущее значение периода — начальное состояние черновика.
34
+ */
35
+ dateRange?: IDatePeriod;
36
+ /**
37
+ * Дополнительные периоды для вида «стандартные периоды».
38
+ */
39
+ customPeriods?: Record<string, ILabeledPeriod>;
40
+ /**
41
+ * Формат даты.
42
+ */
43
+ dateFormat?: string;
44
+ }> & Readonly<{
45
+ onSelect?: ((value: IDatePeriod) => any) | undefined;
46
+ "onUpdate:show"?: ((show: boolean) => any) | undefined;
47
+ }>, {
48
+ disabled: {
49
+ from?: boolean;
50
+ to?: boolean;
51
+ };
52
+ clearable: boolean;
53
+ dateFormat: string;
54
+ customPeriods: Record<string, ILabeledPeriod>;
55
+ dateRange: IDatePeriod;
56
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
57
+ export default _default;
@@ -0,0 +1,66 @@
1
+ import { IClearable } from '../../../properties/interfaces/i-clearable';
2
+ import { IDateRangeDisabled } from '../../../properties/interfaces/i-date-range-disabled';
3
+ /**
4
+ * Пара полей «от»/«до» периода дат.
5
+ */
6
+ declare const _default: import('vue').DefineComponent<IClearable & IDateRangeDisabled & {
7
+ /**
8
+ * Начало периода.
9
+ */
10
+ from?: Date | null;
11
+ /**
12
+ * Окончание периода.
13
+ */
14
+ to?: Date | null;
15
+ /**
16
+ * Подсказка в пустом поле От.
17
+ */
18
+ placeholderFrom?: string;
19
+ /**
20
+ * Подсказка в пустом поле До.
21
+ */
22
+ placeholderTo?: string;
23
+ /**
24
+ * Формат даты.
25
+ */
26
+ dateFormat?: string;
27
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
28
+ "update:from": (value: Date | null) => any;
29
+ "update:to": (value: Date | null) => any;
30
+ }, string, import('vue').PublicProps, Readonly<IClearable & IDateRangeDisabled & {
31
+ /**
32
+ * Начало периода.
33
+ */
34
+ from?: Date | null;
35
+ /**
36
+ * Окончание периода.
37
+ */
38
+ to?: Date | null;
39
+ /**
40
+ * Подсказка в пустом поле От.
41
+ */
42
+ placeholderFrom?: string;
43
+ /**
44
+ * Подсказка в пустом поле До.
45
+ */
46
+ placeholderTo?: string;
47
+ /**
48
+ * Формат даты.
49
+ */
50
+ dateFormat?: string;
51
+ }> & Readonly<{
52
+ "onUpdate:from"?: ((value: Date | null) => any) | undefined;
53
+ "onUpdate:to"?: ((value: Date | null) => any) | undefined;
54
+ }>, {
55
+ disabled: {
56
+ from?: boolean;
57
+ to?: boolean;
58
+ };
59
+ clearable: boolean;
60
+ to: Date | null;
61
+ from: Date | null;
62
+ dateFormat: string;
63
+ placeholderFrom: string;
64
+ placeholderTo: string;
65
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
66
+ export default _default;
@@ -0,0 +1,24 @@
1
+ import { IDatePeriod } from '@snabcentr/common-lib';
2
+ /**
3
+ * Ключ хранилища для последнего выбранного вида диалога выбора периода.
4
+ */
5
+ export declare const DATE_RANGE_DIALOG_MODE_STORAGE_KEY = "date-range.dialog.mode";
6
+ /**
7
+ * Краткие названия месяцев для сеток выбора: заданы явно и не зависят от локали календаря.
8
+ */
9
+ export declare const MONTH_LABELS: string[];
10
+ /**
11
+ * Нормализует границы периода: «от» приводится к началу дня, «до» — к концу дня, границы могут быть
12
+ * не заданы по отдельности (полуоткрытый период). Инвертированные границы переставляются местами;
13
+ * если одна из сторон заблокирована, вместо перестановки свободная граница подтягивается к заблокированной.
14
+ *
15
+ * @param from Начало периода.
16
+ * @param to Окончание периода.
17
+ * @param locked Признаки блокировки сторон.
18
+ * @param locked.from Признак блокировки стороны От.
19
+ * @param locked.to Признак блокировки стороны До.
20
+ */
21
+ export declare const normalizePeriod: (from?: Date | null, to?: Date | null, locked?: {
22
+ from?: boolean;
23
+ to?: boolean;
24
+ }) => IDatePeriod;
@@ -0,0 +1,38 @@
1
+ import { IClearable } from '../../../properties/interfaces/i-clearable';
2
+ import { IDisabled } from '../../../properties/interfaces/i-disabled';
3
+ import { IPlaceholder } from '../../../properties/interfaces/i-placeholder';
4
+ /**
5
+ * Поле одиночной даты: слева в панели год и месяцы, справа календарь дней.
6
+ */
7
+ declare const _default: import('vue').DefineComponent<IClearable & IDisabled & IPlaceholder & {
8
+ /**
9
+ * Значение даты.
10
+ */
11
+ value?: Date | null;
12
+ /**
13
+ * Формат даты.
14
+ */
15
+ dateFormat?: string;
16
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
17
+ "update:value": (value: Date | null, ...additionalParams: any[]) => any;
18
+ }, string, import('vue').PublicProps, Readonly<IClearable & IDisabled & IPlaceholder & {
19
+ /**
20
+ * Значение даты.
21
+ */
22
+ value?: Date | null;
23
+ /**
24
+ * Формат даты.
25
+ */
26
+ dateFormat?: string;
27
+ }> & Readonly<{
28
+ "onUpdate:value"?: ((value: Date | null, ...additionalParams: any[]) => any) | undefined;
29
+ }>, {
30
+ value: Date | null;
31
+ disabled: boolean;
32
+ placeholder: string;
33
+ clearable: boolean;
34
+ dateFormat: string;
35
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
36
+ pickerReference: unknown;
37
+ }, any>;
38
+ export default _default;
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Сетка месяцев на три года с выбором диапазона двумя кликами, протяжкой или клавиатурой.
3
+ */
4
+ declare const _default: import('vue').DefineComponent<{
5
+ /**
6
+ * Начало выбранного периода.
7
+ */
8
+ from?: Date | null;
9
+ /**
10
+ * Окончание выбранного периода.
11
+ */
12
+ to?: Date | null;
13
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
14
+ select: (value: {
15
+ from: Date;
16
+ to: Date;
17
+ }) => any;
18
+ }, string, import('vue').PublicProps, Readonly<{
19
+ /**
20
+ * Начало выбранного периода.
21
+ */
22
+ from?: Date | null;
23
+ /**
24
+ * Окончание выбранного периода.
25
+ */
26
+ to?: Date | null;
27
+ }> & Readonly<{
28
+ onSelect?: ((value: {
29
+ from: Date;
30
+ to: Date;
31
+ }) => any) | undefined;
32
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
33
+ export default _default;
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Сайдбар панели выбора даты: степпер года, сетка месяцев и кнопка «Сегодня».
3
+ */
4
+ declare const _default: import('vue').DefineComponent<{
5
+ /**
6
+ * Отображаемый год.
7
+ */
8
+ year: number;
9
+ /**
10
+ * Индекс подсвечиваемого месяца (0–11) либо null, если месяц не подсвечивается.
11
+ */
12
+ month?: number | null;
13
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
14
+ "update:year": (year: number) => any;
15
+ "select-month": (month: number) => any;
16
+ today: () => any;
17
+ }, string, import('vue').PublicProps, Readonly<{
18
+ /**
19
+ * Отображаемый год.
20
+ */
21
+ year: number;
22
+ /**
23
+ * Индекс подсвечиваемого месяца (0–11) либо null, если месяц не подсвечивается.
24
+ */
25
+ month?: number | null;
26
+ }> & Readonly<{
27
+ "onUpdate:year"?: ((year: number) => any) | undefined;
28
+ "onSelect-month"?: ((month: number) => any) | undefined;
29
+ onToday?: (() => any) | undefined;
30
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
31
+ export default _default;
@@ -0,0 +1,31 @@
1
+ import { ILabeledPeriod } from '@snabcentr/common-lib';
2
+ import { SelectOption } from 'naive-ui';
3
+ /**
4
+ * Вид «стандартные периоды»: список вариантов выбранной группы и кнопки групп.
5
+ */
6
+ declare const _default: import('vue').DefineComponent<{
7
+ /**
8
+ * Ключ активного (последнего применённого) варианта периода.
9
+ */
10
+ activeKey?: string | null;
11
+ /**
12
+ * Дополнительные периоды, отображаются отдельной группой в конце списка групп.
13
+ */
14
+ customPeriods?: Record<string, ILabeledPeriod>;
15
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
16
+ apply: (option: SelectOption) => any;
17
+ preview: (option?: SelectOption | undefined) => any;
18
+ }, string, import('vue').PublicProps, Readonly<{
19
+ /**
20
+ * Ключ активного (последнего применённого) варианта периода.
21
+ */
22
+ activeKey?: string | null;
23
+ /**
24
+ * Дополнительные периоды, отображаются отдельной группой в конце списка групп.
25
+ */
26
+ customPeriods?: Record<string, ILabeledPeriod>;
27
+ }> & Readonly<{
28
+ onApply?: ((option: SelectOption) => any) | undefined;
29
+ onPreview?: ((option?: SelectOption | undefined) => any) | undefined;
30
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
31
+ export default _default;
@@ -1,102 +1,69 @@
1
1
  import { IClearable } from '../../properties/interfaces/i-clearable';
2
- import { IDatePeriod } from '@snabcentr/common-lib';
2
+ import { IDateRangeDisabled } from '../../properties/interfaces/i-date-range-disabled';
3
+ import { IPredefinedDateRanges } from '../../properties/interfaces/i-predefined-date-ranges';
4
+ import { IDatePeriod, ILabeledPeriod } from '@snabcentr/common-lib';
3
5
  /**
4
- * Компонент выбора не строгого периода дат.
6
+ * Компонент выбора периода дат: два отдельных поля даты и кнопка «…» с диалогом выбора периода.
5
7
  */
6
- declare const _default: import('vue').DefineComponent<IClearable & {
8
+ declare const _default: import('vue').DefineComponent<IClearable & IDateRangeDisabled & IPredefinedDateRanges & {
7
9
  /**
8
10
  * Период времени.
9
11
  */
10
12
  dateRange?: IDatePeriod;
11
13
  /**
12
- * Формат даты.
14
+ * Признак необходимости показать в диалоге группу предустановленных диапазонов дат по умолчанию
15
+ * (год, полугодия, кварталы, периоды нарастающим итогом) в дополнение к стандартным периодам.
13
16
  */
14
- dateFormat?: string;
17
+ useDefaultPredefinedDateRanges?: boolean;
15
18
  /**
16
- * Признак блокировки поля.
19
+ * Подсказка в пустом поле От.
17
20
  */
18
- disabled?: {
19
- /**
20
- * Признак блокировки поля От.
21
- */
22
- from?: boolean;
23
- /**
24
- * Признак блокировки поля До.
25
- */
26
- to?: boolean;
27
- };
21
+ placeholderFrom?: string;
28
22
  /**
29
- * Список предустановленных диапазонов дат, которые можно выбрать.
23
+ * Подсказка в пустом поле До.
30
24
  */
31
- predefinedDateRanges?: Record<string, IDatePeriod & {
32
- /**
33
- * Текстовое описание.
34
- */
35
- label: string;
36
- }>;
25
+ placeholderTo?: string;
37
26
  /**
38
- * Признак необходимости использовать предустановленные диапазоны дат.
27
+ * Формат даты.
39
28
  */
40
- useDefaultPredefinedDateRanges?: boolean;
29
+ dateFormat?: string;
41
30
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
42
31
  "update:date-range": (value?: IDatePeriod | undefined) => any;
43
- }, string, import('vue').PublicProps, Readonly<IClearable & {
32
+ }, string, import('vue').PublicProps, Readonly<IClearable & IDateRangeDisabled & IPredefinedDateRanges & {
44
33
  /**
45
34
  * Период времени.
46
35
  */
47
36
  dateRange?: IDatePeriod;
48
37
  /**
49
- * Формат даты.
38
+ * Признак необходимости показать в диалоге группу предустановленных диапазонов дат по умолчанию
39
+ * (год, полугодия, кварталы, периоды нарастающим итогом) в дополнение к стандартным периодам.
50
40
  */
51
- dateFormat?: string;
41
+ useDefaultPredefinedDateRanges?: boolean;
52
42
  /**
53
- * Признак блокировки поля.
43
+ * Подсказка в пустом поле От.
54
44
  */
55
- disabled?: {
56
- /**
57
- * Признак блокировки поля От.
58
- */
59
- from?: boolean;
60
- /**
61
- * Признак блокировки поля До.
62
- */
63
- to?: boolean;
64
- };
45
+ placeholderFrom?: string;
65
46
  /**
66
- * Список предустановленных диапазонов дат, которые можно выбрать.
47
+ * Подсказка в пустом поле До.
67
48
  */
68
- predefinedDateRanges?: Record<string, IDatePeriod & {
69
- /**
70
- * Текстовое описание.
71
- */
72
- label: string;
73
- }>;
49
+ placeholderTo?: string;
74
50
  /**
75
- * Признак необходимости использовать предустановленные диапазоны дат.
51
+ * Формат даты.
76
52
  */
77
- useDefaultPredefinedDateRanges?: boolean;
53
+ dateFormat?: string;
78
54
  }> & Readonly<{
79
55
  "onUpdate:date-range"?: ((value?: IDatePeriod | undefined) => any) | undefined;
80
56
  }>, {
81
57
  disabled: {
82
- /**
83
- * Признак блокировки поля От.
84
- */
85
58
  from?: boolean;
86
- /**
87
- * Признак блокировки поля До.
88
- */
89
59
  to?: boolean;
90
60
  };
91
61
  clearable: boolean;
92
- dateRange: IDatePeriod;
93
62
  dateFormat: string;
94
- predefinedDateRanges: Record<string, IDatePeriod & {
95
- /**
96
- * Текстовое описание.
97
- */
98
- label: string;
99
- }>;
63
+ placeholderFrom: string;
64
+ placeholderTo: string;
65
+ dateRange: IDatePeriod;
66
+ predefinedDateRanges: Record<string, ILabeledPeriod>;
100
67
  useDefaultPredefinedDateRanges: boolean;
101
68
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
102
69
  export default _default;
@@ -0,0 +1 @@
1
+ export { default as ScDebt } from './debt.vue';
@@ -69,8 +69,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
69
69
  acceptHandler: () => void;
70
70
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
71
71
  "update:show": (isVisible: boolean) => any;
72
- opening: () => any;
73
72
  accept: (processingCallback: (processing: boolean) => void) => any;
73
+ opening: () => any;
74
74
  "processing:cancel": (processingCallback: (processing: boolean) => void) => any;
75
75
  closing: (target: CloseTarget, cancel: () => void) => any;
76
76
  }, string, import('vue').PublicProps, Readonly<{
@@ -125,8 +125,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
125
125
  trapFocus?: boolean;
126
126
  }> & Readonly<{
127
127
  "onUpdate:show"?: ((isVisible: boolean) => any) | undefined;
128
- onOpening?: (() => any) | undefined;
129
128
  onAccept?: ((processingCallback: (processing: boolean) => void) => any) | undefined;
129
+ onOpening?: (() => any) | undefined;
130
130
  "onProcessing:cancel"?: ((processingCallback: (processing: boolean) => void) => any) | undefined;
131
131
  onClosing?: ((target: CloseTarget, cancel: () => void) => any) | undefined;
132
132
  }>, {
@@ -1,4 +1,4 @@
1
- import { IDisabled } from '../properties/interfaces/i-disabled';
1
+ import { IDisabled } from '../../properties/interfaces/i-disabled';
2
2
  /**
3
3
  * Компонент представления и редактирования комментария.
4
4
  */
@@ -0,0 +1 @@
1
+ export { default as ScCommentEditor } from './comment-editor.vue';
@@ -0,0 +1 @@
1
+ export { default as ScWarningIcon } from './warning-icon.vue';
@@ -1,11 +1,15 @@
1
+ export * from './buttons';
1
2
  export * from './catalog';
2
3
  export * from './clients';
3
4
  export * from './collapse';
4
5
  export * from './contacts';
5
6
  export * from './configurators';
6
7
  export * from './dates';
8
+ export * from './debt';
7
9
  export * from './dialog';
10
+ export * from './editors';
8
11
  export * from './files';
12
+ export * from './icons';
9
13
  export * from './images';
10
14
  export * from './inline';
11
15
  export * from './inputs';
@@ -14,10 +18,6 @@ export * from './lists';
14
18
  export * from './orders';
15
19
  export * from './page';
16
20
  export * from './selects';
21
+ export * from './sliding-content';
17
22
  export * from './suggestions';
18
23
  export * from './users';
19
- export { default as ScButtonWithConfirmAction } from './button-with-confirm-action.vue';
20
- export { default as ScCommentEditor } from './comment-editor.vue';
21
- export { default as ScDebt } from './debt.vue';
22
- export { default as ScSlidingContentWithDrawer } from './sliding-content-with-drawer.vue';
23
- export { default as ScWarningIcon } from './warning-icon.vue';
@@ -38,9 +38,9 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<ID
38
38
  onEdit?: (() => any) | undefined;
39
39
  }>, {
40
40
  disabled: boolean;
41
- showCancelButton: boolean;
42
41
  showEditButton: boolean;
43
42
  showApplyButton: boolean;
43
+ showCancelButton: boolean;
44
44
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>, {
45
45
  default?(_: {}): any;
46
46
  'extra-buttons'?(_: {}): any;
@@ -0,0 +1 @@
1
+ export { default as ScSlidingContentWithDrawer } from './sliding-content-with-drawer.vue';
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Признак блокировки сторон периода дат.
3
+ */
4
+ export interface IDateRangeDisabled {
5
+ /**
6
+ * Признак блокировки сторон периода дат.
7
+ */
8
+ disabled?: {
9
+ /**
10
+ * Признак блокировки поля От.
11
+ */
12
+ from?: boolean;
13
+ /**
14
+ * Признак блокировки поля До.
15
+ */
16
+ to?: boolean;
17
+ };
18
+ }
@@ -0,0 +1,10 @@
1
+ import { ILabeledPeriod } from '@snabcentr/common-lib';
2
+ /**
3
+ * Предустановленные диапазоны дат, доступные для выбора.
4
+ */
5
+ export interface IPredefinedDateRanges {
6
+ /**
7
+ * Список предустановленных диапазонов дат, которые можно выбрать.
8
+ */
9
+ predefinedDateRanges?: Record<string, ILabeledPeriod>;
10
+ }
@@ -1,5 +1,6 @@
1
1
  export * from './i-clearable';
2
2
  export * from './i-client-short-info-property';
3
+ export * from './i-date-range-disabled';
3
4
  export * from './i-consistent-menu-width';
4
5
  export * from './i-client-id';
5
6
  export * from './i-debounced';
@@ -11,6 +12,7 @@ export * from './i-order-property';
11
12
  export * from './i-order-short-info-property';
12
13
  export * from './i-orders-table-fields';
13
14
  export * from './i-placeholder';
15
+ export * from './i-predefined-date-ranges';
14
16
  export * from './i-product-or-category-search-type';
15
17
  export * from './i-value';
16
18
  export * from './i-clearable-value';