@okf/ootils 1.15.4 → 1.16.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.
- package/dist/browser.js +16 -1
- package/dist/browser.mjs +16 -1
- package/dist/node.js +16 -1
- package/dist/node.mjs +16 -1
- package/dist/universal.js +16 -1
- package/dist/universal.mjs +16 -1
- package/package.json +1 -1
package/dist/browser.js
CHANGED
|
@@ -370,7 +370,8 @@ function getRollupPossibilities({
|
|
|
370
370
|
if (visited.includes(startTagType) || visited.length >= maxDepth) {
|
|
371
371
|
return [];
|
|
372
372
|
}
|
|
373
|
-
const
|
|
373
|
+
const allBlocksInTemplate = getCachedTemplateBlocks(startTagType);
|
|
374
|
+
const tagBlocks = allBlocksInTemplate.filter(
|
|
374
375
|
(block) => block.valuePath?.startsWith("tags.")
|
|
375
376
|
);
|
|
376
377
|
const chains = [];
|
|
@@ -392,6 +393,20 @@ function getRollupPossibilities({
|
|
|
392
393
|
}
|
|
393
394
|
}
|
|
394
395
|
}
|
|
396
|
+
const valuePathBlocks = allBlocksInTemplate.filter(
|
|
397
|
+
(block) => block.props?.options?.length > 0 && !block.valuePath?.startsWith("tags.")
|
|
398
|
+
);
|
|
399
|
+
for (const block of valuePathBlocks) {
|
|
400
|
+
const terminalValuePath = block.props?.saveValueAsString ? block.valuePath : `${block.valuePath}.value`;
|
|
401
|
+
chains.push({
|
|
402
|
+
rollupType: "tagType",
|
|
403
|
+
tagTypeCollectionToRollup: tagType,
|
|
404
|
+
rollupPath: [...visited, startTagType, terminalValuePath],
|
|
405
|
+
// Additional metadata for filter display
|
|
406
|
+
filterDisplay: block.props?.shortLabel || block.props?.label || block.valuePath,
|
|
407
|
+
isTerminalValuePath: true
|
|
408
|
+
});
|
|
409
|
+
}
|
|
395
410
|
return chains;
|
|
396
411
|
};
|
|
397
412
|
const singleLevelValuePathRollups = allBlocks.map((block) => {
|
package/dist/browser.mjs
CHANGED
|
@@ -334,7 +334,8 @@ function getRollupPossibilities({
|
|
|
334
334
|
if (visited.includes(startTagType) || visited.length >= maxDepth) {
|
|
335
335
|
return [];
|
|
336
336
|
}
|
|
337
|
-
const
|
|
337
|
+
const allBlocksInTemplate = getCachedTemplateBlocks(startTagType);
|
|
338
|
+
const tagBlocks = allBlocksInTemplate.filter(
|
|
338
339
|
(block) => block.valuePath?.startsWith("tags.")
|
|
339
340
|
);
|
|
340
341
|
const chains = [];
|
|
@@ -356,6 +357,20 @@ function getRollupPossibilities({
|
|
|
356
357
|
}
|
|
357
358
|
}
|
|
358
359
|
}
|
|
360
|
+
const valuePathBlocks = allBlocksInTemplate.filter(
|
|
361
|
+
(block) => block.props?.options?.length > 0 && !block.valuePath?.startsWith("tags.")
|
|
362
|
+
);
|
|
363
|
+
for (const block of valuePathBlocks) {
|
|
364
|
+
const terminalValuePath = block.props?.saveValueAsString ? block.valuePath : `${block.valuePath}.value`;
|
|
365
|
+
chains.push({
|
|
366
|
+
rollupType: "tagType",
|
|
367
|
+
tagTypeCollectionToRollup: tagType,
|
|
368
|
+
rollupPath: [...visited, startTagType, terminalValuePath],
|
|
369
|
+
// Additional metadata for filter display
|
|
370
|
+
filterDisplay: block.props?.shortLabel || block.props?.label || block.valuePath,
|
|
371
|
+
isTerminalValuePath: true
|
|
372
|
+
});
|
|
373
|
+
}
|
|
359
374
|
return chains;
|
|
360
375
|
};
|
|
361
376
|
const singleLevelValuePathRollups = allBlocks.map((block) => {
|
package/dist/node.js
CHANGED
|
@@ -1854,7 +1854,8 @@ function getRollupPossibilities({
|
|
|
1854
1854
|
if (visited.includes(startTagType) || visited.length >= maxDepth) {
|
|
1855
1855
|
return [];
|
|
1856
1856
|
}
|
|
1857
|
-
const
|
|
1857
|
+
const allBlocksInTemplate = getCachedTemplateBlocks(startTagType);
|
|
1858
|
+
const tagBlocks = allBlocksInTemplate.filter(
|
|
1858
1859
|
(block) => block.valuePath?.startsWith("tags.")
|
|
1859
1860
|
);
|
|
1860
1861
|
const chains = [];
|
|
@@ -1876,6 +1877,20 @@ function getRollupPossibilities({
|
|
|
1876
1877
|
}
|
|
1877
1878
|
}
|
|
1878
1879
|
}
|
|
1880
|
+
const valuePathBlocks = allBlocksInTemplate.filter(
|
|
1881
|
+
(block) => block.props?.options?.length > 0 && !block.valuePath?.startsWith("tags.")
|
|
1882
|
+
);
|
|
1883
|
+
for (const block of valuePathBlocks) {
|
|
1884
|
+
const terminalValuePath = block.props?.saveValueAsString ? block.valuePath : `${block.valuePath}.value`;
|
|
1885
|
+
chains.push({
|
|
1886
|
+
rollupType: "tagType",
|
|
1887
|
+
tagTypeCollectionToRollup: tagType,
|
|
1888
|
+
rollupPath: [...visited, startTagType, terminalValuePath],
|
|
1889
|
+
// Additional metadata for filter display
|
|
1890
|
+
filterDisplay: block.props?.shortLabel || block.props?.label || block.valuePath,
|
|
1891
|
+
isTerminalValuePath: true
|
|
1892
|
+
});
|
|
1893
|
+
}
|
|
1879
1894
|
return chains;
|
|
1880
1895
|
};
|
|
1881
1896
|
const singleLevelValuePathRollups = allBlocks.map((block) => {
|
package/dist/node.mjs
CHANGED
|
@@ -1822,7 +1822,8 @@ function getRollupPossibilities({
|
|
|
1822
1822
|
if (visited.includes(startTagType) || visited.length >= maxDepth) {
|
|
1823
1823
|
return [];
|
|
1824
1824
|
}
|
|
1825
|
-
const
|
|
1825
|
+
const allBlocksInTemplate = getCachedTemplateBlocks(startTagType);
|
|
1826
|
+
const tagBlocks = allBlocksInTemplate.filter(
|
|
1826
1827
|
(block) => block.valuePath?.startsWith("tags.")
|
|
1827
1828
|
);
|
|
1828
1829
|
const chains = [];
|
|
@@ -1844,6 +1845,20 @@ function getRollupPossibilities({
|
|
|
1844
1845
|
}
|
|
1845
1846
|
}
|
|
1846
1847
|
}
|
|
1848
|
+
const valuePathBlocks = allBlocksInTemplate.filter(
|
|
1849
|
+
(block) => block.props?.options?.length > 0 && !block.valuePath?.startsWith("tags.")
|
|
1850
|
+
);
|
|
1851
|
+
for (const block of valuePathBlocks) {
|
|
1852
|
+
const terminalValuePath = block.props?.saveValueAsString ? block.valuePath : `${block.valuePath}.value`;
|
|
1853
|
+
chains.push({
|
|
1854
|
+
rollupType: "tagType",
|
|
1855
|
+
tagTypeCollectionToRollup: tagType,
|
|
1856
|
+
rollupPath: [...visited, startTagType, terminalValuePath],
|
|
1857
|
+
// Additional metadata for filter display
|
|
1858
|
+
filterDisplay: block.props?.shortLabel || block.props?.label || block.valuePath,
|
|
1859
|
+
isTerminalValuePath: true
|
|
1860
|
+
});
|
|
1861
|
+
}
|
|
1847
1862
|
return chains;
|
|
1848
1863
|
};
|
|
1849
1864
|
const singleLevelValuePathRollups = allBlocks.map((block) => {
|
package/dist/universal.js
CHANGED
|
@@ -370,7 +370,8 @@ function getRollupPossibilities({
|
|
|
370
370
|
if (visited.includes(startTagType) || visited.length >= maxDepth) {
|
|
371
371
|
return [];
|
|
372
372
|
}
|
|
373
|
-
const
|
|
373
|
+
const allBlocksInTemplate = getCachedTemplateBlocks(startTagType);
|
|
374
|
+
const tagBlocks = allBlocksInTemplate.filter(
|
|
374
375
|
(block) => block.valuePath?.startsWith("tags.")
|
|
375
376
|
);
|
|
376
377
|
const chains = [];
|
|
@@ -392,6 +393,20 @@ function getRollupPossibilities({
|
|
|
392
393
|
}
|
|
393
394
|
}
|
|
394
395
|
}
|
|
396
|
+
const valuePathBlocks = allBlocksInTemplate.filter(
|
|
397
|
+
(block) => block.props?.options?.length > 0 && !block.valuePath?.startsWith("tags.")
|
|
398
|
+
);
|
|
399
|
+
for (const block of valuePathBlocks) {
|
|
400
|
+
const terminalValuePath = block.props?.saveValueAsString ? block.valuePath : `${block.valuePath}.value`;
|
|
401
|
+
chains.push({
|
|
402
|
+
rollupType: "tagType",
|
|
403
|
+
tagTypeCollectionToRollup: tagType,
|
|
404
|
+
rollupPath: [...visited, startTagType, terminalValuePath],
|
|
405
|
+
// Additional metadata for filter display
|
|
406
|
+
filterDisplay: block.props?.shortLabel || block.props?.label || block.valuePath,
|
|
407
|
+
isTerminalValuePath: true
|
|
408
|
+
});
|
|
409
|
+
}
|
|
395
410
|
return chains;
|
|
396
411
|
};
|
|
397
412
|
const singleLevelValuePathRollups = allBlocks.map((block) => {
|
package/dist/universal.mjs
CHANGED
|
@@ -334,7 +334,8 @@ function getRollupPossibilities({
|
|
|
334
334
|
if (visited.includes(startTagType) || visited.length >= maxDepth) {
|
|
335
335
|
return [];
|
|
336
336
|
}
|
|
337
|
-
const
|
|
337
|
+
const allBlocksInTemplate = getCachedTemplateBlocks(startTagType);
|
|
338
|
+
const tagBlocks = allBlocksInTemplate.filter(
|
|
338
339
|
(block) => block.valuePath?.startsWith("tags.")
|
|
339
340
|
);
|
|
340
341
|
const chains = [];
|
|
@@ -356,6 +357,20 @@ function getRollupPossibilities({
|
|
|
356
357
|
}
|
|
357
358
|
}
|
|
358
359
|
}
|
|
360
|
+
const valuePathBlocks = allBlocksInTemplate.filter(
|
|
361
|
+
(block) => block.props?.options?.length > 0 && !block.valuePath?.startsWith("tags.")
|
|
362
|
+
);
|
|
363
|
+
for (const block of valuePathBlocks) {
|
|
364
|
+
const terminalValuePath = block.props?.saveValueAsString ? block.valuePath : `${block.valuePath}.value`;
|
|
365
|
+
chains.push({
|
|
366
|
+
rollupType: "tagType",
|
|
367
|
+
tagTypeCollectionToRollup: tagType,
|
|
368
|
+
rollupPath: [...visited, startTagType, terminalValuePath],
|
|
369
|
+
// Additional metadata for filter display
|
|
370
|
+
filterDisplay: block.props?.shortLabel || block.props?.label || block.valuePath,
|
|
371
|
+
isTerminalValuePath: true
|
|
372
|
+
});
|
|
373
|
+
}
|
|
359
374
|
return chains;
|
|
360
375
|
};
|
|
361
376
|
const singleLevelValuePathRollups = allBlocks.map((block) => {
|