@guiexpert/demo-table-models 1.1.98 → 1.1.100
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/index.cjs +2 -2
- package/index.d.ts +1 -0
- package/index.js +194 -168
- package/lib/createSpreadsheetQuoteModel.d.ts +19 -0
- package/lib/createTimeTableModel.d.ts +5 -0
- package/lib/treepeople/generateTreePeopleModel.d.ts +5 -0
- package/package.json +2 -2
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SpreadsheetParamIf, SpreadsheetTableModel, TableOptionsIf } from '@guiexpert/table';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* A quote with cell formulas (A1 references): positions with quantity, unit price and discount, a net amount per row,
|
|
5
|
+
* subtotal, shipping (free from 1,000), VAT and total. Formulas are text with `=` – the sheet calculates them.
|
|
6
|
+
*
|
|
7
|
+
* @returns {unknown[][]} rows × columns A–F (inputs, not values)
|
|
8
|
+
*/
|
|
9
|
+
export declare function createSpreadsheetQuoteData(): unknown[][];
|
|
10
|
+
/**
|
|
11
|
+
* Model and options of the quote sheet ({@link createSpreadsheetQuoteData}): 100 rows × A–H, wider columns.
|
|
12
|
+
*
|
|
13
|
+
* @param {Partial<SpreadsheetParamIf>} [param] - merged over the defaults (e.g. `tableOptions: { direction: "rtl" }`)
|
|
14
|
+
* @returns {{ tableModel: SpreadsheetTableModel, tableOptions: TableOptionsIf }} for a table or a wrapper
|
|
15
|
+
*/
|
|
16
|
+
export declare function createSpreadsheetQuoteModelAndOptions(param?: Partial<SpreadsheetParamIf>): {
|
|
17
|
+
tableModel: SpreadsheetTableModel;
|
|
18
|
+
tableOptions: TableOptionsIf;
|
|
19
|
+
};
|
|
@@ -59,6 +59,11 @@ export declare const tableOptions: {
|
|
|
59
59
|
fillHandle?: boolean | Partial<import('@guiexpert/table').FillHandleOptionsIf> | undefined;
|
|
60
60
|
masterDetail?: Partial<import('@guiexpert/table').MasterDetailOptionsIf<any>> | undefined;
|
|
61
61
|
batchEdit?: boolean | Partial<import('@guiexpert/table').BatchEditOptionsIf> | undefined;
|
|
62
|
+
editing?: boolean | Partial<import('@guiexpert/table').EditingOptionsIf> | undefined;
|
|
63
|
+
clipboard?: boolean | Partial<import('@guiexpert/table').ClipboardOptionsIf> | undefined;
|
|
64
|
+
undo?: boolean | Partial<import('@guiexpert/table').UndoOptionsIf> | undefined;
|
|
65
|
+
cellFormulas?: boolean | Partial<import('@guiexpert/table').CellFormulaOptionsIf> | undefined;
|
|
66
|
+
spreadsheet?: boolean | Partial<import('@guiexpert/table').SpreadsheetOptionsIf> | undefined;
|
|
62
67
|
direction?: import('@guiexpert/table').TableDirection | undefined;
|
|
63
68
|
};
|
|
64
69
|
export declare function createTimeTableModel(): TableModelIf;
|
|
@@ -60,6 +60,11 @@ export declare function createTreePeopleTableOptions(addDemoSelection?: boolean)
|
|
|
60
60
|
fillHandle?: boolean | Partial<import('@guiexpert/table').FillHandleOptionsIf> | undefined;
|
|
61
61
|
masterDetail?: Partial<import('@guiexpert/table').MasterDetailOptionsIf<any>> | undefined;
|
|
62
62
|
batchEdit?: boolean | Partial<import('@guiexpert/table').BatchEditOptionsIf> | undefined;
|
|
63
|
+
editing?: boolean | Partial<import('@guiexpert/table').EditingOptionsIf> | undefined;
|
|
64
|
+
clipboard?: boolean | Partial<import('@guiexpert/table').ClipboardOptionsIf> | undefined;
|
|
65
|
+
undo?: boolean | Partial<import('@guiexpert/table').UndoOptionsIf> | undefined;
|
|
66
|
+
cellFormulas?: boolean | Partial<import('@guiexpert/table').CellFormulaOptionsIf> | undefined;
|
|
67
|
+
spreadsheet?: boolean | Partial<import('@guiexpert/table').SpreadsheetOptionsIf> | undefined;
|
|
63
68
|
direction?: import('@guiexpert/table').TableDirection | undefined;
|
|
64
69
|
};
|
|
65
70
|
export declare function createTreePeopleColumnDefs(): ColumnDefIf[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@guiexpert/demo-table-models",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.100",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Dr. Marc Kronberg <info@gui.expert> (https://gui.expert)",
|
|
6
6
|
"repository": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"tslib": "^2.3.0",
|
|
34
|
-
"@guiexpert/table": "^1.1.
|
|
34
|
+
"@guiexpert/table": "^1.1.100"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/node": "^20.11.17",
|