@webitel/ui-sdk 25.6.35 → 25.6.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.
@@ -1,7 +1,6 @@
1
1
  import { WtDatepicker, WtInput, WtSelect, WtSwitcher } from '@webitel/ui-sdk/components';
2
2
  import { WebitelProtoDataField } from 'webitel-sdk';
3
3
  import { WtTypeExtensionFieldKind as FieldType } from '../../../enums';
4
- declare const DatetimeConversionModifier = 1000;
5
4
  type __VLS_Props = {
6
5
  field: WebitelProtoDataField;
7
6
  required?: boolean;
@@ -94,7 +93,6 @@ declare var __VLS_20: "bool", __VLS_21: {
94
93
  required: boolean;
95
94
  v: object;
96
95
  };
97
- conversionModifier: 1000;
98
96
  };
99
97
  type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
100
98
  [K in NonNullable<typeof __VLS_20>]?: (props: typeof __VLS_21) => any;
@@ -111,7 +109,6 @@ declare const __VLS_self: import("vue").DefineComponent<__VLS_PublicProps, {
111
109
  WtSelect: typeof WtSelect;
112
110
  WtSwitcher: typeof WtSwitcher;
113
111
  FieldType: typeof FieldType;
114
- DatetimeConversionModifier: typeof DatetimeConversionModifier;
115
112
  value: typeof value;
116
113
  sharedChildrenProps: typeof sharedChildrenProps;
117
114
  selectProps: typeof selectProps;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "25.6.35",
3
+ "version": "25.6.37",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "npm run docs:dev",
@@ -9,7 +9,7 @@ import {
9
9
  getDefaultGetListResponse,
10
10
  getDefaultGetParams,
11
11
  } from '../../defaults/index';
12
- import { getFieldsToSendFromZodSchema } from '@webitel/api-services/gen/utils';
12
+ import {getFieldsToSendFromZodSchema, getShallowFieldsToSendFromZodSchema} from '@webitel/api-services/gen/utils';
13
13
  import applyTransform, {
14
14
  camelToSnake,
15
15
  merge,
@@ -21,7 +21,7 @@ import applyTransform, {
21
21
  const sourceService = getSources();
22
22
 
23
23
  const getSourcesList = async (params) => {
24
- const fieldsToSend = getFieldsToSendFromZodSchema(listSourcesQueryParams);
24
+ const fieldsToSend = getShallowFieldsToSendFromZodSchema(listSourcesQueryParams);
25
25
 
26
26
  const { page, size, fields, sort, id, q, type } = applyTransform(params, [
27
27
  merge(getDefaultGetParams()),
@@ -63,13 +63,12 @@
63
63
  ...sharedChildrenProps,
64
64
  value,
65
65
  }"
66
- :conversion-modifier="DatetimeConversionModifier"
67
66
  >
68
67
  <wt-datepicker
69
68
  v-bind="sharedChildrenProps"
70
- :value="value * DatetimeConversionModifier"
69
+ :value="value"
71
70
  mode="datetime"
72
- @input="setValue(+$event / DatetimeConversionModifier)"
71
+ @input="setValue"
73
72
  />
74
73
  </slot>
75
74
  </template>
@@ -83,10 +82,6 @@ import { WebitelProtoDataField } from 'webitel-sdk';
83
82
  import { getSysTypeRecordsLookup } from "../../../api/clients/wtTypes/sysTypes/sysTypes";
84
83
  import { WtTypeExtensionFieldKind as FieldType } from '../../../enums';
85
84
 
86
- // TODO: move to api file, mb? 🤔
87
- // Number for convert time from seconds to milliseconds, when send to backend and display on frontend
88
- const DatetimeConversionModifier = 1000;
89
-
90
85
  const model = defineModel<unknown>();
91
86
 
92
87
  const props = defineProps<{