@trebco/treb 25.0.1 → 25.4.2

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 (76) hide show
  1. package/{.eslintrc.js → .eslintrc.cjs} +4 -0
  2. package/api-config.json +1 -1
  3. package/api-generator/api-generator.ts +25 -55
  4. package/dist/treb-spreadsheet.mjs +14 -0
  5. package/{build → dist}/treb.d.ts +1 -1
  6. package/esbuild-custom-element.mjs +17 -265
  7. package/esbuild-utils.mjs +273 -0
  8. package/package.json +5 -4
  9. package/treb-base-types/src/cell.ts +23 -22
  10. package/treb-base-types/src/cells.ts +55 -2
  11. package/treb-base-types/src/union.ts +2 -1
  12. package/treb-calculator/src/calculator.ts +8 -5
  13. package/treb-calculator/src/dag/array-vertex.ts +22 -22
  14. package/treb-calculator/src/dag/graph.ts +25 -23
  15. package/treb-calculator/src/dag/leaf_vertex.ts +23 -22
  16. package/treb-calculator/src/dag/spreadsheet_vertex.ts +25 -23
  17. package/treb-calculator/src/expression-calculator.ts +23 -22
  18. package/treb-calculator/src/function-error.ts +23 -22
  19. package/treb-calculator/src/functions/base-functions.ts +3 -2
  20. package/treb-calculator/src/functions/checkbox.ts +23 -22
  21. package/treb-calculator/src/functions/complex-functions.ts +2 -1
  22. package/treb-calculator/src/functions/finance-functions.ts +22 -22
  23. package/treb-calculator/src/functions/information-functions.ts +22 -22
  24. package/treb-calculator/src/functions/matrix-functions.ts +2 -1
  25. package/treb-calculator/src/functions/statistics-functions.ts +22 -22
  26. package/treb-calculator/src/functions/text-functions.ts +23 -22
  27. package/treb-calculator/src/primitives.ts +23 -22
  28. package/treb-calculator/src/utilities.ts +23 -24
  29. package/treb-charts/src/chart-functions.ts +22 -22
  30. package/treb-charts/src/chart.ts +6 -3
  31. package/treb-charts/src/renderer.ts +25 -23
  32. package/treb-charts/src/util.ts +23 -22
  33. package/treb-embed/markup/toolbar.html +2 -2
  34. package/treb-embed/modern.tsconfig.json +3 -2
  35. package/treb-embed/src/custom-element/spreadsheet-constructor.ts +17 -14
  36. package/treb-embed/src/embedded-spreadsheet.ts +100 -69
  37. package/treb-embed/src/progress-dialog.ts +0 -3
  38. package/treb-embed/src/types.ts +13 -3
  39. package/treb-embed/style/dialog.scss +2 -0
  40. package/treb-embed/style/layout.scss +43 -40
  41. package/treb-embed/style/toolbar.scss +38 -38
  42. package/treb-embed/style/treb-icons.scss +53 -43
  43. package/treb-export/src/drawing2/chart2.ts +2 -2
  44. package/treb-export/src/drawing2/drawing2.ts +6 -4
  45. package/treb-export/src/export-worker/export-worker.ts +22 -24
  46. package/treb-export/src/export-worker/index-modern.ts +2 -1
  47. package/treb-export/src/export2.ts +15 -8
  48. package/treb-export/src/import2.ts +10 -5
  49. package/treb-export/src/workbook-sheet2.ts +2 -1
  50. package/treb-format/src/format.ts +23 -22
  51. package/treb-format/src/format_parser.ts +23 -22
  52. package/treb-format/src/value_parser.ts +23 -22
  53. package/treb-grid/src/editors/formula_bar.ts +2 -1
  54. package/treb-grid/src/editors/formula_editor_base.ts +4 -2
  55. package/treb-grid/src/editors/overlay_editor.ts +2 -1
  56. package/treb-grid/src/index.ts +12 -9
  57. package/treb-grid/src/layout/base_layout.ts +4 -2
  58. package/treb-grid/src/render/selection-renderer.ts +25 -23
  59. package/treb-grid/src/render/tile_renderer.ts +6 -4
  60. package/treb-grid/src/types/annotation.ts +33 -37
  61. package/treb-grid/src/types/data_model.ts +30 -22
  62. package/treb-grid/src/types/grid.ts +55 -584
  63. package/treb-grid/src/types/grid_base.ts +401 -7
  64. package/treb-grid/src/types/grid_events.ts +3 -0
  65. package/treb-grid/src/types/grid_selection.ts +22 -22
  66. package/treb-grid/src/types/named_range.ts +22 -22
  67. package/treb-grid/src/types/sheet.ts +8 -7
  68. package/treb-grid/src/types/sheet_types.ts +11 -7
  69. package/treb-grid/src/types/tab_bar.ts +1 -1
  70. package/treb-parser/src/parser.ts +5 -4
  71. package/tsproject.json +4 -5
  72. package/util/list-css-vars.sh +8 -11
  73. package/build/treb-spreadsheet.mjs +0 -14
  74. package/esbuild.js +0 -305
  75. package/tsconfig.json +0 -10
  76. /package/treb-embed/src/{custom-element/content-types.d.ts → content-types.d.ts} +0 -0
@@ -22,24 +22,21 @@ unique=($(
22
22
  fi
23
23
  done | sort -u))
24
24
 
25
- ## dump uniques
26
- #for i in ${unique[@]}; do
27
- # echo $i
28
- #done;
25
+ # remove icons (--treb-icon-, --treb-sidebar-icon)
26
+ unique=(${unique[@]//*icon*})
29
27
 
30
28
  # update: dump as JSON. this is beyond my bashing skills,
31
29
  # have to have an empty string
32
30
 
33
31
  # update2: OK I can do it, but it's ugly
34
32
 
35
- FIRST=1
36
- printf "[\n"
33
+ # update3: a little cleaner, but we still set that
34
+ # variable on every pass of the loop
35
+
36
+ PREFIX="[\n"
37
37
  for i in ${unique[@]}; do
38
- if [[ $FIRST -ne 1 ]]; then
39
- printf ",\n";
40
- fi;
41
- printf '\t"%s"' $i
42
- FIRST=0
38
+ printf "${PREFIX}\t\"%s\"" $i
39
+ PREFIX=",\n";
43
40
  done;
44
41
  printf "\n]\n"
45
42