@arsedizioni/ars-utils 18.4.6 → 18.4.8
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/clipper.ui/ui/clipper.scss +5 -5
- package/core/system.d.ts +6 -0
- package/esm2022/clipper.ui/ui/browser-dialog/browser-dialog.component.mjs +3 -3
- package/esm2022/clipper.ui/ui/document/document.component.mjs +3 -3
- package/esm2022/clipper.ui/ui/references/references.component.mjs +3 -3
- package/esm2022/clipper.ui/ui/search-facets/search-facets.component.mjs +3 -3
- package/esm2022/clipper.ui/ui/search-result-item/search-result-item.component.mjs +3 -3
- package/esm2022/core/system.mjs +21 -1
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +10 -10
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-core.mjs +20 -0
- package/fesm2022/arsedizioni-ars-utils-core.mjs.map +1 -1
- package/package.json +7 -7
|
@@ -784,6 +784,26 @@ class SystemUtils {
|
|
|
784
784
|
});
|
|
785
785
|
return nodes;
|
|
786
786
|
}
|
|
787
|
+
/**
|
|
788
|
+
* Return the flags array to be used in selections
|
|
789
|
+
* @param value : the new value
|
|
790
|
+
* @param max: the max number of flags
|
|
791
|
+
*/
|
|
792
|
+
static getFlags(value, max = 30) {
|
|
793
|
+
if (value) {
|
|
794
|
+
let items = [];
|
|
795
|
+
let v = 1;
|
|
796
|
+
let m = 1 << max;
|
|
797
|
+
while (v < m) {
|
|
798
|
+
if ((value & v) === v)
|
|
799
|
+
items.push(v);
|
|
800
|
+
v = v << 1;
|
|
801
|
+
}
|
|
802
|
+
return items;
|
|
803
|
+
}
|
|
804
|
+
else
|
|
805
|
+
return [];
|
|
806
|
+
}
|
|
787
807
|
}
|
|
788
808
|
|
|
789
809
|
class FormatPipe {
|