@holistics/cli-core 2.2.8 → 2.2.10

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.
Files changed (2) hide show
  1. package/dist/commands.js +16 -17
  2. package/package.json +1 -1
package/dist/commands.js CHANGED
@@ -27370,7 +27370,7 @@ var require_dist2 = __commonJS((exports2) => {
27370
27370
  exports2.default = deferred;
27371
27371
  });
27372
27372
  // package.json
27373
- var version = "2.2.8";
27373
+ var version = "2.2.10";
27374
27374
 
27375
27375
  // ../../node_modules/.pnpm/@commander-js+extra-typings@13.1.0_commander@13.1.0/node_modules/@commander-js/extra-typings/esm.mjs
27376
27376
  var import__ = __toESM(require_extra_typings(), 1);
@@ -75912,16 +75912,16 @@ var jE2 = (e, t, n) => {
75912
75912
  if (!i || !i?.length)
75913
75913
  throw new Error(`${e.__type__}: ${o}: Please select at least one location field`);
75914
75914
  return r3 = i.map((l, c2) => {
75915
- const u = import_lodash.get(l, "location_type", "none"), d = `!location[${c2}]`;
75916
- if (l.primary_field && (s2 += 1, a = d), s2 > 2)
75915
+ const u = import_lodash.get(l, "location_type", "none"), d = W(l.field, t, {
75916
+ allowDimension: true,
75917
+ allowMeasure: true,
75918
+ fallbackUname: `!location[${c2}]`,
75919
+ unameValidator: n
75920
+ });
75921
+ if (l.primary_field && (s2 += 1, a = d.uuid), s2 > 1)
75917
75922
  throw new Error(`${o}: Please select only one primary field`);
75918
75923
  return {
75919
- ...W(l.field, t, {
75920
- allowDimension: true,
75921
- allowMeasure: true,
75922
- fallbackUname: d,
75923
- unameValidator: n
75924
- }),
75924
+ ...d,
75925
75925
  location_type: GE2(u)
75926
75926
  };
75927
75927
  }), s2 === 0 && (a = r3[0].uuid), {
@@ -79738,7 +79738,7 @@ function vP(e, t) {
79738
79738
  }` : "";
79739
79739
  }
79740
79740
  function kP(e, t) {
79741
- const n = Pc2(e), { rows: o = [], columns: i = [], values: r3 = [] } = import_lodash.get(n, "fields.pivot_data", {}), a = import_lodash.get(n, "settings.misc.pagination_size", Ft3), s2 = !!import_lodash.get(n, "settings.misc.convert_null_to_zero"), l = !!import_lodash.get(n, "settings.others.include_empty_children_rows"), c2 = !!import_lodash.get(n, "settings.others.row_total"), u = !!import_lodash.get(n, "settings.others.column_total"), d = !!import_lodash.get(n, "settings.others.sub_total"), h = import_lodash.get(n, "settings.sort"), m2 = import_lodash.get(n, "settings.conditional_formatting", []), f2 = import_lodash.get(n, "settings.pop_settings"), g2 = !!import_lodash.get(n, "settings.misc.freeze_rows", true), k2 = import_lodash.get(n, "settings.misc.column_width.manual_widths", {}), x = import_lodash.get(n, "settings.misc.column_freeze"), b2 = import_lodash.get(n, "settings.misc.column_alignment"), w2 = import_lodash.get(n, "settings.misc.column_font_color"), A = import_lodash.get(n, "settings.misc.column_bg_color"), C = o.length ? `rows: [${o.map((T2) => Y2(T2, t))}]` : "", B2 = i.length ? `columns: [${i.map((T2) => Y2(T2, t))}]` : "", D2 = r3.length ? `values: [${r3.map((T2) => Y2(T2, t))}]` : "", y = TA2(n.settings), v2 = a !== undefined && a !== Ft3 ? `pagination_size: ${a}` : "", P2 = s2 ? `empty_cell_as_zero: ${s2}` : "", E = l ? `show_row_with_no_data: ${l}` : "", j3 = c2 ? `show_row_total: ${c2}` : "", G3 = u ? `show_column_total: ${u}` : "", K2 = d ? `show_sub_total: ${d}` : "", H2 = $g2(m2, t), ne2 = H2 ? `conditional_formats: ${H2}` : "", oe3 = To3(h) ? `sorts: ${To3(h)}` : "", qe3 = f2 ? ki2(f2, t) : undefined, le2 = qe3 ? `pop ${qe3}` : "", ve3 = Ot3(n.settings), ce3 = ve3 ? `row_limit: ${ve3}` : "", tt3 = g2 ? "" : `freeze_rows: ${g2}`, me3 = At3(n.settings.aggregate_awareness), Le2 = import_lodash.isNil(x) ? "" : `frozen_columns: ${x}`, Ye3 = gP(n?.settings?.misc?.value_labels_position), V2 = vg2(b2, A, w2, k2), S3 = kg2(V2), ke3 = n.settings.analysis_interactions ? eo2(n.settings.analysis_interactions) : "", Oe = _t3([
79741
+ const n = Pc2(e), { rows: o = [], columns: i = [], values: r3 = [] } = import_lodash.get(n, "fields.pivot_data", {}), a = import_lodash.get(n, "settings.misc.pagination_size", Ft3), s2 = !!import_lodash.get(n, "settings.misc.convert_null_to_zero"), l = !!import_lodash.get(n, "settings.others.include_empty_children_rows"), c2 = !!import_lodash.get(n, "settings.others.row_total"), u = !!import_lodash.get(n, "settings.others.column_total"), d = !!import_lodash.get(n, "settings.others.sub_total"), h = import_lodash.get(n, "settings.sort"), m2 = import_lodash.get(n, "settings.conditional_formatting", []), f2 = import_lodash.get(n, "settings.pop_settings"), g2 = !!import_lodash.get(n, "settings.misc.freeze_rows", true), k2 = import_lodash.get(n, "settings.misc.column_width.manual_widths", {}), x = import_lodash.get(n, "settings.misc.column_freeze"), b2 = import_lodash.get(n, "settings.misc.column_alignment"), w2 = import_lodash.get(n, "settings.misc.column_font_color"), A = import_lodash.get(n, "settings.misc.column_bg_color"), C = o.length ? `rows: [${o.map((T2) => Y2(T2, t))}]` : "", B2 = i.length ? `columns: [${i.map((T2) => Y2(T2, t))}]` : "", D2 = r3.length ? `values: [${r3.map((T2) => Y2(T2, t))}]` : "", y = TA2(n.settings), v2 = a !== undefined && a !== Ft3 ? `pagination_size: ${a}` : "", P2 = s2 ? `empty_cell_as_zero: ${s2}` : "", E = l ? `show_row_with_no_data: ${l}` : "", j3 = c2 ? `show_row_total: ${c2}` : "", G3 = u ? `show_column_total: ${u}` : "", K2 = d ? `show_sub_total: ${d}` : "", H2 = $g2(m2, t), ne2 = H2 ? `conditional_formats: ${H2}` : "", oe3 = To3(h) ? `sorts: ${To3(h)}` : "", qe3 = f2 ? ki2(f2, t) : undefined, le2 = qe3 ? `pop ${qe3}` : "", ve3 = Ot3(n.settings), ce3 = ve3 ? `row_limit: ${ve3}` : "", tt3 = g2 ? "" : `freeze_rows: ${g2}`, me3 = At3(n.settings.aggregate_awareness), Ne3 = import_lodash.isNil(x) ? "" : `frozen_columns: ${x}`, Ye3 = gP(n?.settings?.misc?.value_labels_position), V2 = vg2(b2, A, w2, k2), S3 = kg2(V2), ke3 = n.settings.analysis_interactions ? eo2(n.settings.analysis_interactions) : "", Oe = _t3([
79742
79742
  y,
79743
79743
  v2,
79744
79744
  P2,
@@ -79752,7 +79752,7 @@ function kP(e, t) {
79752
79752
  ce3,
79753
79753
  tt3,
79754
79754
  me3,
79755
- Le2,
79755
+ Ne3,
79756
79756
  Ye3,
79757
79757
  S3,
79758
79758
  ke3
@@ -79860,7 +79860,7 @@ function BP(e, t) {
79860
79860
  const ce3 = r3[ve3] || {}, tt3 = le2.columns || [];
79861
79861
  if (tt3.length === 0)
79862
79862
  return "";
79863
- const me3 = !!ce3.show_stack_total, Le2 = !!ce3.reversed_stack, Ye3 = !!ce3.show_group_total, V2 = !!ce3.group_long_tail, S3 = Number(ce3.maximum_groups), ke3 = !!ce3.show_data_label, Oe = !!ce3.show_series_percentage, He3 = !!ce3.stack_series, T2 = ce3.stack_type, I2 = Pn3(ce3.min), xt3 = Pn3(ce3.max), Ee3 = !!ce3.hidden, Je3 = ce3.align !== undefined && ce3.align !== Xl2 ? `alignment: ${_(ce3.align)}` : "", Me2 = ce3.scale_type !== undefined && ce3.scale_type !== ec2 ? `scale: ${_(ce3.scale_type)}` : "", Bt3 = I2 !== undefined ? `axis_min: ${I2}` : "", un = xt3 !== undefined ? `axis_max: ${xt3}` : "", Nn3 = me3 ? `show_stack_total: ${me3}` : "", oo2 = Le2 ? `reverse_stack: ${Le2}` : "", Zt2 = Ye3 ? `show_total_in_tooltip: ${Ye3}` : "", ae3 = V2 && S3 ? `group_values_into: ${S3}` : "", io2 = ke3 ? `show_data_label_by: ${_(Oe ? "percentage" : "value")}` : "", ta3 = He3 ? `stack_series_by: ${_(T2 === "percent" ? "percentage" : "value")}` : "", M2 = Ee3 ? `hidden: ${Ee3}` : "", De2 = [
79863
+ const me3 = !!ce3.show_stack_total, Ne3 = !!ce3.reversed_stack, Ye3 = !!ce3.show_group_total, V2 = !!ce3.group_long_tail, S3 = Number(ce3.maximum_groups), ke3 = !!ce3.show_data_label, Oe = !!ce3.show_series_percentage, He3 = !!ce3.stack_series, T2 = ce3.stack_type, I2 = Pn3(ce3.min), xt3 = Pn3(ce3.max), Ee3 = !!ce3.hidden, Je3 = ce3.align !== undefined && ce3.align !== Xl2 ? `alignment: ${_(ce3.align)}` : "", Me2 = ce3.scale_type !== undefined && ce3.scale_type !== ec2 ? `scale: ${_(ce3.scale_type)}` : "", Bt3 = I2 !== undefined ? `axis_min: ${I2}` : "", un = xt3 !== undefined ? `axis_max: ${xt3}` : "", Nn3 = me3 ? `show_stack_total: ${me3}` : "", oo2 = Ne3 ? `reverse_stack: ${Ne3}` : "", Zt2 = Ye3 ? `show_total_in_tooltip: ${Ye3}` : "", ae3 = V2 && S3 ? `group_values_into: ${S3}` : "", io2 = ke3 ? `show_data_label_by: ${_(Oe ? "percentage" : "value")}` : "", ta3 = He3 ? `stack_series_by: ${_(T2 === "percent" ? "percentage" : "value")}` : "", M2 = Ee3 ? `hidden: ${Ee3}` : "", De2 = [
79864
79864
  Je3,
79865
79865
  Me2,
79866
79866
  Bt3,
@@ -79971,13 +79971,13 @@ function IP(e, t) {
79971
79971
  ].filter(Boolean).join(`
79972
79972
  `), me3 = tt3 ? ` settings {
79973
79973
  ${tt3}
79974
- }` : "", Le2 = [
79974
+ }` : "", Ne3 = [
79975
79975
  re3(q) ? `field: ${Y2(q, t)}` : "",
79976
79976
  me3
79977
79977
  ].filter(Boolean).join(`
79978
79978
  `);
79979
- return Le2 ? ` series {
79980
- ${Le2}
79979
+ return Ne3 ? ` series {
79980
+ ${Ne3}
79981
79981
  }` : "";
79982
79982
  }).filter(Boolean).join(`
79983
79983
  `);
@@ -80641,8 +80641,7 @@ var Em2 = (e) => {
80641
80641
  if (e._id)
80642
80642
  return e._id;
80643
80643
  const t = Object.entries(e).filter(([n, o]) => o).map(([n, o]) => `${n}: true`);
80644
- if (t.length !== 0)
80645
- return `{
80644
+ return t.length === 0 ? "{}" : `{
80646
80645
  ${t.join(`
80647
80646
  `)}
80648
80647
  }`;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@holistics/cli-core",
3
3
  "type": "module",
4
- "version": "2.2.8",
4
+ "version": "2.2.10",
5
5
  "bin": {
6
6
  "holistics": "./bin/holistics.js"
7
7
  },