@webitel/ui-sdk 26.2.88 → 26.2.90

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "26.2.88",
3
+ "version": "26.2.90",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "make-all": "npm version patch --git-tag-version false && npm run build && (npm run build:types || true) && (npm run biome:format:all || true) && npm run publish-lib",
@@ -122,6 +122,7 @@ interface Props {
122
122
  store?: any;
123
123
  entityIdKey?: string;
124
124
  entityIdValue?: string | number;
125
+ isCreatedAtFilter: boolean;
125
126
  onDeleteItem?: (item: WebitelMediaExporterExportRecord) => Promise<void>;
126
127
  }
127
128
 
@@ -129,6 +130,7 @@ const props = withDefaults(defineProps<Props>(), {
129
130
  store: undefined,
130
131
  entityIdKey: undefined,
131
132
  entityIdValue: undefined,
133
+ isCreatedAtFilter: false,
132
134
  onDeleteItem: undefined,
133
135
  });
134
136
 
@@ -167,14 +169,14 @@ const initializeDefaultFilters = () => {
167
169
  });
168
170
  }
169
171
 
170
- if (!hasFilter('createdAtFrom')) {
172
+ if (!hasFilter('createdAtFrom') && props.isCreatedAtFilter) {
171
173
  addFilter({
172
174
  name: 'createdAtFrom',
173
175
  value: getStartOfDay(),
174
176
  });
175
177
  }
176
178
 
177
- if (!hasFilter('createdAtTo')) {
179
+ if (!hasFilter('createdAtTo') && props.isCreatedAtFilter) {
178
180
  addFilter({
179
181
  name: 'createdAtTo',
180
182
  value: getEndOfDay(),
@@ -3,6 +3,7 @@ interface Props {
3
3
  store?: any;
4
4
  entityIdKey?: string;
5
5
  entityIdValue?: string | number;
6
+ isCreatedAtFilter: boolean;
6
7
  onDeleteItem?: (item: WebitelMediaExporterExportRecord) => Promise<void>;
7
8
  }
8
9
  declare var __VLS_1: {
@@ -18,8 +19,9 @@ declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, i
18
19
  store: any;
19
20
  entityIdKey: string;
20
21
  entityIdValue: string | number;
22
+ isCreatedAtFilter: boolean;
21
23
  onDeleteItem: (item: WebitelMediaExporterExportRecord) => Promise<void>;
22
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
24
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
25
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
24
26
  declare const _default: typeof __VLS_export;
25
27
  export default _default;