@okf/ootils 1.32.8 → 1.33.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.
@@ -1203,9 +1203,20 @@ declare const FILTER_IDS: {
1203
1203
  * Replaces separate Themes, SubThemes, Tags filters with one consolidated hierarchy UI.
1204
1204
  *
1205
1205
  * Themes -> SubThemes -> Tags
1206
+ *
1207
+ * A hierarchy level may carry a `tabs` array, in which case AnnoHierarchyFilter
1208
+ * renders that level as multiple meta entries (one per tab), each scoping its
1209
+ * options by the tab's findQuery. Selected values still flow through the level's
1210
+ * single filterId. Currently used to split sub-themes into Thematics + Attributes
1211
+ * when EXPERIMENTAL_newTopicModelling is on.
1206
1212
  */
1207
- declare const _self_managed_buildAnnoHierarchyConfig: ({ annotationTagsCount, }: {
1213
+ declare const _self_managed_buildAnnoHierarchyConfig: ({ annotationTagsCount, attributeThematicTabs, }: {
1208
1214
  annotationTagsCount: any;
1215
+ attributeThematicTabs?: Array<{
1216
+ key: string;
1217
+ display: string;
1218
+ findQuery: any;
1219
+ }>;
1209
1220
  }) => {
1210
1221
  target: {
1211
1222
  filterType: string;
@@ -1227,6 +1238,11 @@ declare const _self_managed_buildAnnoHierarchyConfig: ({ annotationTagsCount, }:
1227
1238
  };
1228
1239
  folderSelectionMode: string;
1229
1240
  hierarchyLevels: (false | {
1241
+ tabs?: {
1242
+ key: string;
1243
+ display: string;
1244
+ findQuery: any;
1245
+ }[] | undefined;
1230
1246
  level: string;
1231
1247
  filterId: string;
1232
1248
  tagType: string;
package/dist/browser.d.ts CHANGED
@@ -1203,9 +1203,20 @@ declare const FILTER_IDS: {
1203
1203
  * Replaces separate Themes, SubThemes, Tags filters with one consolidated hierarchy UI.
1204
1204
  *
1205
1205
  * Themes -> SubThemes -> Tags
1206
+ *
1207
+ * A hierarchy level may carry a `tabs` array, in which case AnnoHierarchyFilter
1208
+ * renders that level as multiple meta entries (one per tab), each scoping its
1209
+ * options by the tab's findQuery. Selected values still flow through the level's
1210
+ * single filterId. Currently used to split sub-themes into Thematics + Attributes
1211
+ * when EXPERIMENTAL_newTopicModelling is on.
1206
1212
  */
1207
- declare const _self_managed_buildAnnoHierarchyConfig: ({ annotationTagsCount, }: {
1213
+ declare const _self_managed_buildAnnoHierarchyConfig: ({ annotationTagsCount, attributeThematicTabs, }: {
1208
1214
  annotationTagsCount: any;
1215
+ attributeThematicTabs?: Array<{
1216
+ key: string;
1217
+ display: string;
1218
+ findQuery: any;
1219
+ }>;
1209
1220
  }) => {
1210
1221
  target: {
1211
1222
  filterType: string;
@@ -1227,6 +1238,11 @@ declare const _self_managed_buildAnnoHierarchyConfig: ({ annotationTagsCount, }:
1227
1238
  };
1228
1239
  folderSelectionMode: string;
1229
1240
  hierarchyLevels: (false | {
1241
+ tabs?: {
1242
+ key: string;
1243
+ display: string;
1244
+ findQuery: any;
1245
+ }[] | undefined;
1230
1246
  level: string;
1231
1247
  filterId: string;
1232
1248
  tagType: string;
package/dist/browser.js CHANGED
@@ -2170,7 +2170,8 @@ var FILTER_IDS = {
2170
2170
  tags: "anno_tags"
2171
2171
  };
2172
2172
  var _self_managed_buildAnnoHierarchyConfig = ({
2173
- annotationTagsCount
2173
+ annotationTagsCount,
2174
+ attributeThematicTabs
2174
2175
  }) => {
2175
2176
  const hasThemes = annotationTagsCount?.themes > 0;
2176
2177
  const hasSubThemes = annotationTagsCount?.subThemes > 0;
@@ -2180,7 +2181,12 @@ var _self_managed_buildAnnoHierarchyConfig = ({
2180
2181
  }
2181
2182
  const hierarchyLevels = [
2182
2183
  hasThemes && { level: "themes", filterId: FILTER_IDS.themes, tagType: "themes" },
2183
- hasSubThemes && { level: "subThemes", filterId: FILTER_IDS.subThemes, tagType: "subThemes" },
2184
+ hasSubThemes && {
2185
+ level: "subThemes",
2186
+ filterId: FILTER_IDS.subThemes,
2187
+ tagType: "subThemes",
2188
+ ...attributeThematicTabs ? { tabs: attributeThematicTabs } : {}
2189
+ },
2184
2190
  hasTags && { level: "tags", filterId: FILTER_IDS.tags, tagType: "tags" }
2185
2191
  ].filter(Boolean);
2186
2192
  return {
package/dist/browser.mjs CHANGED
@@ -2101,7 +2101,8 @@ var FILTER_IDS = {
2101
2101
  tags: "anno_tags"
2102
2102
  };
2103
2103
  var _self_managed_buildAnnoHierarchyConfig = ({
2104
- annotationTagsCount
2104
+ annotationTagsCount,
2105
+ attributeThematicTabs
2105
2106
  }) => {
2106
2107
  const hasThemes = annotationTagsCount?.themes > 0;
2107
2108
  const hasSubThemes = annotationTagsCount?.subThemes > 0;
@@ -2111,7 +2112,12 @@ var _self_managed_buildAnnoHierarchyConfig = ({
2111
2112
  }
2112
2113
  const hierarchyLevels = [
2113
2114
  hasThemes && { level: "themes", filterId: FILTER_IDS.themes, tagType: "themes" },
2114
- hasSubThemes && { level: "subThemes", filterId: FILTER_IDS.subThemes, tagType: "subThemes" },
2115
+ hasSubThemes && {
2116
+ level: "subThemes",
2117
+ filterId: FILTER_IDS.subThemes,
2118
+ tagType: "subThemes",
2119
+ ...attributeThematicTabs ? { tabs: attributeThematicTabs } : {}
2120
+ },
2115
2121
  hasTags && { level: "tags", filterId: FILTER_IDS.tags, tagType: "tags" }
2116
2122
  ].filter(Boolean);
2117
2123
  return {
package/dist/node.d.mts CHANGED
@@ -1210,9 +1210,20 @@ declare const FILTER_IDS: {
1210
1210
  * Replaces separate Themes, SubThemes, Tags filters with one consolidated hierarchy UI.
1211
1211
  *
1212
1212
  * Themes -> SubThemes -> Tags
1213
+ *
1214
+ * A hierarchy level may carry a `tabs` array, in which case AnnoHierarchyFilter
1215
+ * renders that level as multiple meta entries (one per tab), each scoping its
1216
+ * options by the tab's findQuery. Selected values still flow through the level's
1217
+ * single filterId. Currently used to split sub-themes into Thematics + Attributes
1218
+ * when EXPERIMENTAL_newTopicModelling is on.
1213
1219
  */
1214
- declare const _self_managed_buildAnnoHierarchyConfig: ({ annotationTagsCount, }: {
1220
+ declare const _self_managed_buildAnnoHierarchyConfig: ({ annotationTagsCount, attributeThematicTabs, }: {
1215
1221
  annotationTagsCount: any;
1222
+ attributeThematicTabs?: Array<{
1223
+ key: string;
1224
+ display: string;
1225
+ findQuery: any;
1226
+ }>;
1216
1227
  }) => {
1217
1228
  target: {
1218
1229
  filterType: string;
@@ -1234,6 +1245,11 @@ declare const _self_managed_buildAnnoHierarchyConfig: ({ annotationTagsCount, }:
1234
1245
  };
1235
1246
  folderSelectionMode: string;
1236
1247
  hierarchyLevels: (false | {
1248
+ tabs?: {
1249
+ key: string;
1250
+ display: string;
1251
+ findQuery: any;
1252
+ }[] | undefined;
1237
1253
  level: string;
1238
1254
  filterId: string;
1239
1255
  tagType: string;
package/dist/node.d.ts CHANGED
@@ -1210,9 +1210,20 @@ declare const FILTER_IDS: {
1210
1210
  * Replaces separate Themes, SubThemes, Tags filters with one consolidated hierarchy UI.
1211
1211
  *
1212
1212
  * Themes -> SubThemes -> Tags
1213
+ *
1214
+ * A hierarchy level may carry a `tabs` array, in which case AnnoHierarchyFilter
1215
+ * renders that level as multiple meta entries (one per tab), each scoping its
1216
+ * options by the tab's findQuery. Selected values still flow through the level's
1217
+ * single filterId. Currently used to split sub-themes into Thematics + Attributes
1218
+ * when EXPERIMENTAL_newTopicModelling is on.
1213
1219
  */
1214
- declare const _self_managed_buildAnnoHierarchyConfig: ({ annotationTagsCount, }: {
1220
+ declare const _self_managed_buildAnnoHierarchyConfig: ({ annotationTagsCount, attributeThematicTabs, }: {
1215
1221
  annotationTagsCount: any;
1222
+ attributeThematicTabs?: Array<{
1223
+ key: string;
1224
+ display: string;
1225
+ findQuery: any;
1226
+ }>;
1216
1227
  }) => {
1217
1228
  target: {
1218
1229
  filterType: string;
@@ -1234,6 +1245,11 @@ declare const _self_managed_buildAnnoHierarchyConfig: ({ annotationTagsCount, }:
1234
1245
  };
1235
1246
  folderSelectionMode: string;
1236
1247
  hierarchyLevels: (false | {
1248
+ tabs?: {
1249
+ key: string;
1250
+ display: string;
1251
+ findQuery: any;
1252
+ }[] | undefined;
1237
1253
  level: string;
1238
1254
  filterId: string;
1239
1255
  tagType: string;
package/dist/node.js CHANGED
@@ -3768,7 +3768,8 @@ var FILTER_IDS = {
3768
3768
  tags: "anno_tags"
3769
3769
  };
3770
3770
  var _self_managed_buildAnnoHierarchyConfig = ({
3771
- annotationTagsCount
3771
+ annotationTagsCount,
3772
+ attributeThematicTabs
3772
3773
  }) => {
3773
3774
  const hasThemes = annotationTagsCount?.themes > 0;
3774
3775
  const hasSubThemes = annotationTagsCount?.subThemes > 0;
@@ -3778,7 +3779,12 @@ var _self_managed_buildAnnoHierarchyConfig = ({
3778
3779
  }
3779
3780
  const hierarchyLevels = [
3780
3781
  hasThemes && { level: "themes", filterId: FILTER_IDS.themes, tagType: "themes" },
3781
- hasSubThemes && { level: "subThemes", filterId: FILTER_IDS.subThemes, tagType: "subThemes" },
3782
+ hasSubThemes && {
3783
+ level: "subThemes",
3784
+ filterId: FILTER_IDS.subThemes,
3785
+ tagType: "subThemes",
3786
+ ...attributeThematicTabs ? { tabs: attributeThematicTabs } : {}
3787
+ },
3782
3788
  hasTags && { level: "tags", filterId: FILTER_IDS.tags, tagType: "tags" }
3783
3789
  ].filter(Boolean);
3784
3790
  return {
package/dist/node.mjs CHANGED
@@ -3698,7 +3698,8 @@ var FILTER_IDS = {
3698
3698
  tags: "anno_tags"
3699
3699
  };
3700
3700
  var _self_managed_buildAnnoHierarchyConfig = ({
3701
- annotationTagsCount
3701
+ annotationTagsCount,
3702
+ attributeThematicTabs
3702
3703
  }) => {
3703
3704
  const hasThemes = annotationTagsCount?.themes > 0;
3704
3705
  const hasSubThemes = annotationTagsCount?.subThemes > 0;
@@ -3708,7 +3709,12 @@ var _self_managed_buildAnnoHierarchyConfig = ({
3708
3709
  }
3709
3710
  const hierarchyLevels = [
3710
3711
  hasThemes && { level: "themes", filterId: FILTER_IDS.themes, tagType: "themes" },
3711
- hasSubThemes && { level: "subThemes", filterId: FILTER_IDS.subThemes, tagType: "subThemes" },
3712
+ hasSubThemes && {
3713
+ level: "subThemes",
3714
+ filterId: FILTER_IDS.subThemes,
3715
+ tagType: "subThemes",
3716
+ ...attributeThematicTabs ? { tabs: attributeThematicTabs } : {}
3717
+ },
3712
3718
  hasTags && { level: "tags", filterId: FILTER_IDS.tags, tagType: "tags" }
3713
3719
  ].filter(Boolean);
3714
3720
  return {
@@ -1203,9 +1203,20 @@ declare const FILTER_IDS: {
1203
1203
  * Replaces separate Themes, SubThemes, Tags filters with one consolidated hierarchy UI.
1204
1204
  *
1205
1205
  * Themes -> SubThemes -> Tags
1206
+ *
1207
+ * A hierarchy level may carry a `tabs` array, in which case AnnoHierarchyFilter
1208
+ * renders that level as multiple meta entries (one per tab), each scoping its
1209
+ * options by the tab's findQuery. Selected values still flow through the level's
1210
+ * single filterId. Currently used to split sub-themes into Thematics + Attributes
1211
+ * when EXPERIMENTAL_newTopicModelling is on.
1206
1212
  */
1207
- declare const _self_managed_buildAnnoHierarchyConfig: ({ annotationTagsCount, }: {
1213
+ declare const _self_managed_buildAnnoHierarchyConfig: ({ annotationTagsCount, attributeThematicTabs, }: {
1208
1214
  annotationTagsCount: any;
1215
+ attributeThematicTabs?: Array<{
1216
+ key: string;
1217
+ display: string;
1218
+ findQuery: any;
1219
+ }>;
1209
1220
  }) => {
1210
1221
  target: {
1211
1222
  filterType: string;
@@ -1227,6 +1238,11 @@ declare const _self_managed_buildAnnoHierarchyConfig: ({ annotationTagsCount, }:
1227
1238
  };
1228
1239
  folderSelectionMode: string;
1229
1240
  hierarchyLevels: (false | {
1241
+ tabs?: {
1242
+ key: string;
1243
+ display: string;
1244
+ findQuery: any;
1245
+ }[] | undefined;
1230
1246
  level: string;
1231
1247
  filterId: string;
1232
1248
  tagType: string;
@@ -1203,9 +1203,20 @@ declare const FILTER_IDS: {
1203
1203
  * Replaces separate Themes, SubThemes, Tags filters with one consolidated hierarchy UI.
1204
1204
  *
1205
1205
  * Themes -> SubThemes -> Tags
1206
+ *
1207
+ * A hierarchy level may carry a `tabs` array, in which case AnnoHierarchyFilter
1208
+ * renders that level as multiple meta entries (one per tab), each scoping its
1209
+ * options by the tab's findQuery. Selected values still flow through the level's
1210
+ * single filterId. Currently used to split sub-themes into Thematics + Attributes
1211
+ * when EXPERIMENTAL_newTopicModelling is on.
1206
1212
  */
1207
- declare const _self_managed_buildAnnoHierarchyConfig: ({ annotationTagsCount, }: {
1213
+ declare const _self_managed_buildAnnoHierarchyConfig: ({ annotationTagsCount, attributeThematicTabs, }: {
1208
1214
  annotationTagsCount: any;
1215
+ attributeThematicTabs?: Array<{
1216
+ key: string;
1217
+ display: string;
1218
+ findQuery: any;
1219
+ }>;
1209
1220
  }) => {
1210
1221
  target: {
1211
1222
  filterType: string;
@@ -1227,6 +1238,11 @@ declare const _self_managed_buildAnnoHierarchyConfig: ({ annotationTagsCount, }:
1227
1238
  };
1228
1239
  folderSelectionMode: string;
1229
1240
  hierarchyLevels: (false | {
1241
+ tabs?: {
1242
+ key: string;
1243
+ display: string;
1244
+ findQuery: any;
1245
+ }[] | undefined;
1230
1246
  level: string;
1231
1247
  filterId: string;
1232
1248
  tagType: string;
package/dist/universal.js CHANGED
@@ -2170,7 +2170,8 @@ var FILTER_IDS = {
2170
2170
  tags: "anno_tags"
2171
2171
  };
2172
2172
  var _self_managed_buildAnnoHierarchyConfig = ({
2173
- annotationTagsCount
2173
+ annotationTagsCount,
2174
+ attributeThematicTabs
2174
2175
  }) => {
2175
2176
  const hasThemes = annotationTagsCount?.themes > 0;
2176
2177
  const hasSubThemes = annotationTagsCount?.subThemes > 0;
@@ -2180,7 +2181,12 @@ var _self_managed_buildAnnoHierarchyConfig = ({
2180
2181
  }
2181
2182
  const hierarchyLevels = [
2182
2183
  hasThemes && { level: "themes", filterId: FILTER_IDS.themes, tagType: "themes" },
2183
- hasSubThemes && { level: "subThemes", filterId: FILTER_IDS.subThemes, tagType: "subThemes" },
2184
+ hasSubThemes && {
2185
+ level: "subThemes",
2186
+ filterId: FILTER_IDS.subThemes,
2187
+ tagType: "subThemes",
2188
+ ...attributeThematicTabs ? { tabs: attributeThematicTabs } : {}
2189
+ },
2184
2190
  hasTags && { level: "tags", filterId: FILTER_IDS.tags, tagType: "tags" }
2185
2191
  ].filter(Boolean);
2186
2192
  return {
@@ -2101,7 +2101,8 @@ var FILTER_IDS = {
2101
2101
  tags: "anno_tags"
2102
2102
  };
2103
2103
  var _self_managed_buildAnnoHierarchyConfig = ({
2104
- annotationTagsCount
2104
+ annotationTagsCount,
2105
+ attributeThematicTabs
2105
2106
  }) => {
2106
2107
  const hasThemes = annotationTagsCount?.themes > 0;
2107
2108
  const hasSubThemes = annotationTagsCount?.subThemes > 0;
@@ -2111,7 +2112,12 @@ var _self_managed_buildAnnoHierarchyConfig = ({
2111
2112
  }
2112
2113
  const hierarchyLevels = [
2113
2114
  hasThemes && { level: "themes", filterId: FILTER_IDS.themes, tagType: "themes" },
2114
- hasSubThemes && { level: "subThemes", filterId: FILTER_IDS.subThemes, tagType: "subThemes" },
2115
+ hasSubThemes && {
2116
+ level: "subThemes",
2117
+ filterId: FILTER_IDS.subThemes,
2118
+ tagType: "subThemes",
2119
+ ...attributeThematicTabs ? { tabs: attributeThematicTabs } : {}
2120
+ },
2115
2121
  hasTags && { level: "tags", filterId: FILTER_IDS.tags, tagType: "tags" }
2116
2122
  ].filter(Boolean);
2117
2123
  return {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.32.8",
6
+ "version": "1.33.0",
7
7
  "description": "Utility functions for both browser and Node.js",
8
8
  "main": "dist/index.js",
9
9
  "module": "dist/index.mjs",