@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.
- package/{.eslintrc.js → .eslintrc.cjs} +4 -0
- package/api-config.json +1 -1
- package/api-generator/api-generator.ts +25 -55
- package/dist/treb-spreadsheet.mjs +14 -0
- package/{build → dist}/treb.d.ts +1 -1
- package/esbuild-custom-element.mjs +17 -265
- package/esbuild-utils.mjs +273 -0
- package/package.json +5 -4
- package/treb-base-types/src/cell.ts +23 -22
- package/treb-base-types/src/cells.ts +55 -2
- package/treb-base-types/src/union.ts +2 -1
- package/treb-calculator/src/calculator.ts +8 -5
- package/treb-calculator/src/dag/array-vertex.ts +22 -22
- package/treb-calculator/src/dag/graph.ts +25 -23
- package/treb-calculator/src/dag/leaf_vertex.ts +23 -22
- package/treb-calculator/src/dag/spreadsheet_vertex.ts +25 -23
- package/treb-calculator/src/expression-calculator.ts +23 -22
- package/treb-calculator/src/function-error.ts +23 -22
- package/treb-calculator/src/functions/base-functions.ts +3 -2
- package/treb-calculator/src/functions/checkbox.ts +23 -22
- package/treb-calculator/src/functions/complex-functions.ts +2 -1
- package/treb-calculator/src/functions/finance-functions.ts +22 -22
- package/treb-calculator/src/functions/information-functions.ts +22 -22
- package/treb-calculator/src/functions/matrix-functions.ts +2 -1
- package/treb-calculator/src/functions/statistics-functions.ts +22 -22
- package/treb-calculator/src/functions/text-functions.ts +23 -22
- package/treb-calculator/src/primitives.ts +23 -22
- package/treb-calculator/src/utilities.ts +23 -24
- package/treb-charts/src/chart-functions.ts +22 -22
- package/treb-charts/src/chart.ts +6 -3
- package/treb-charts/src/renderer.ts +25 -23
- package/treb-charts/src/util.ts +23 -22
- package/treb-embed/markup/toolbar.html +2 -2
- package/treb-embed/modern.tsconfig.json +3 -2
- package/treb-embed/src/custom-element/spreadsheet-constructor.ts +17 -14
- package/treb-embed/src/embedded-spreadsheet.ts +100 -69
- package/treb-embed/src/progress-dialog.ts +0 -3
- package/treb-embed/src/types.ts +13 -3
- package/treb-embed/style/dialog.scss +2 -0
- package/treb-embed/style/layout.scss +43 -40
- package/treb-embed/style/toolbar.scss +38 -38
- package/treb-embed/style/treb-icons.scss +53 -43
- package/treb-export/src/drawing2/chart2.ts +2 -2
- package/treb-export/src/drawing2/drawing2.ts +6 -4
- package/treb-export/src/export-worker/export-worker.ts +22 -24
- package/treb-export/src/export-worker/index-modern.ts +2 -1
- package/treb-export/src/export2.ts +15 -8
- package/treb-export/src/import2.ts +10 -5
- package/treb-export/src/workbook-sheet2.ts +2 -1
- package/treb-format/src/format.ts +23 -22
- package/treb-format/src/format_parser.ts +23 -22
- package/treb-format/src/value_parser.ts +23 -22
- package/treb-grid/src/editors/formula_bar.ts +2 -1
- package/treb-grid/src/editors/formula_editor_base.ts +4 -2
- package/treb-grid/src/editors/overlay_editor.ts +2 -1
- package/treb-grid/src/index.ts +12 -9
- package/treb-grid/src/layout/base_layout.ts +4 -2
- package/treb-grid/src/render/selection-renderer.ts +25 -23
- package/treb-grid/src/render/tile_renderer.ts +6 -4
- package/treb-grid/src/types/annotation.ts +33 -37
- package/treb-grid/src/types/data_model.ts +30 -22
- package/treb-grid/src/types/grid.ts +55 -584
- package/treb-grid/src/types/grid_base.ts +401 -7
- package/treb-grid/src/types/grid_events.ts +3 -0
- package/treb-grid/src/types/grid_selection.ts +22 -22
- package/treb-grid/src/types/named_range.ts +22 -22
- package/treb-grid/src/types/sheet.ts +8 -7
- package/treb-grid/src/types/sheet_types.ts +11 -7
- package/treb-grid/src/types/tab_bar.ts +1 -1
- package/treb-parser/src/parser.ts +5 -4
- package/tsproject.json +4 -5
- package/util/list-css-vars.sh +8 -11
- package/build/treb-spreadsheet.mjs +0 -14
- package/esbuild.js +0 -305
- package/tsconfig.json +0 -10
- /package/treb-embed/src/{custom-element/content-types.d.ts → content-types.d.ts} +0 -0
package/util/list-css-vars.sh
CHANGED
|
@@ -22,24 +22,21 @@ unique=($(
|
|
|
22
22
|
fi
|
|
23
23
|
done | sort -u))
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
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
|
-
|
|
36
|
-
|
|
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
|
-
|
|
39
|
-
|
|
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
|
|