@webitel/ui-sdk 24.12.152 → 24.12.153

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": "24.12.152",
3
+ "version": "24.12.153",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -482,7 +482,7 @@ export default {
482
482
  exportToJson: 'Export to JSON',
483
483
  },
484
484
  filters: {
485
- predefinedLabels: {
485
+ predefinedLabels: { /* https://webitel.atlassian.net/browse/WTEL-6308?focusedCommentId=657415 */
486
486
  createdAt: {
487
487
  startOfToday: 'From the start of today',
488
488
  },
@@ -480,7 +480,7 @@ export default {
480
480
  exportToJson: 'Экспортировать в JSON',
481
481
  },
482
482
  filters: {
483
- predefinedLabels: {
483
+ predefinedLabels: { /* https://webitel.atlassian.net/browse/WTEL-6308?focusedCommentId=657415 */
484
484
  createdAt: {
485
485
  startOfToday: 'С начала дня',
486
486
  },
@@ -480,7 +480,7 @@ export default {
480
480
  exportToJson: 'Експортувати в JSON',
481
481
  },
482
482
  filters: {
483
- predefinedLabels: {
483
+ predefinedLabels: { /* https://webitel.atlassian.net/browse/WTEL-6308?focusedCommentId=657415 */
484
484
  createdAt: {
485
485
  startOfToday: 'Від початку дня',
486
486
  },
@@ -51,7 +51,7 @@ import DynamicFilterPreviewInfo from './dynamic-filter-preview-info.vue';
51
51
 
52
52
  interface Props {
53
53
  filter: IFilter;
54
- dummy?: boolean;
54
+ dummy?: boolean; /* https://webitel.atlassian.net/browse/WTEL-6308?focusedCommentId=657415 */
55
55
  }
56
56
 
57
57
  const { t } = useI18n();
@@ -76,6 +76,8 @@ export const makeAppVisibilityMap = (
76
76
  rawVisibility: VisibilityAccess,
77
77
  ): AppVisibilityMap => {
78
78
  const map = new Map();
79
+ if (!rawVisibility) return map;
80
+
79
81
  Object.entries(rawVisibility).forEach(([app, visibility]) => {
80
82
  map.set(app, visibility._enabled);
81
83
  });
@@ -87,6 +89,8 @@ export const makeSectionVisibilityMap = (
87
89
  ): SectionVisibilityMap => {
88
90
  const map = new Map();
89
91
 
92
+ if (!rawVisibility) return map;
93
+
90
94
  Object.values(rawVisibility).forEach((appSectionsVisibility) => {
91
95
  Object.entries(appSectionsVisibility).forEach(([section, visibility]) => {
92
96
  if (section.startsWith('_')) return map; // skip private fields