@grapecity-software/spread-sheets-designer 18.1.4 → 18.2.0
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/dist/gc.spread.sheets.designer.all.min.js +411 -394
- package/dist/gc.spread.sheets.designer.d.ts +248 -2
- package/package.json +1 -1
- package/styles/gc.spread.sheets.designer.dark.min.css +14 -0
- package/styles/gc.spread.sheets.designer.light.min.css +14 -0
- package/styles/gc.spread.sheets.designer.min.css +4 -2
|
@@ -269,6 +269,17 @@ declare module GC.Spread.Sheets{
|
|
|
269
269
|
* ```
|
|
270
270
|
*/
|
|
271
271
|
function getTemplate(templateName: string): GC.Spread.Sheets.Designer.IDialogTemplate | null;
|
|
272
|
+
/**
|
|
273
|
+
* This function returns the designer's current theme.
|
|
274
|
+
* @returns {GC.Spread.Sheets.Designer.ITheme} - Current theme
|
|
275
|
+
* @example
|
|
276
|
+
* ```
|
|
277
|
+
* // Get the background color of the current theme.
|
|
278
|
+
* let currentTheme = GC.Spread.Sheets.Designer.getTheme();
|
|
279
|
+
* console.log(currentTheme.colorBackground);
|
|
280
|
+
* ```
|
|
281
|
+
*/
|
|
282
|
+
function getTheme(): GC.Spread.Sheets.Designer.ITheme;
|
|
272
283
|
/**
|
|
273
284
|
* Register a template to templateMap so that designer can find the template.
|
|
274
285
|
* @param {string} templateName - Name of template, uniquely identifies one template.
|
|
@@ -392,6 +403,22 @@ declare module GC.Spread.Sheets{
|
|
|
392
403
|
* ```
|
|
393
404
|
*/
|
|
394
405
|
function setResources(resources: Object): void;
|
|
406
|
+
/**
|
|
407
|
+
* This method can set the designer's theme, pass in null to reset the custom theme.
|
|
408
|
+
* @param {Partial<GC.Spread.Sheets.Designer.ITheme> | null} theme - The designer theme to be configured allows selective customization of individual properties.
|
|
409
|
+
* @returns {void}
|
|
410
|
+
* @example
|
|
411
|
+
* ```
|
|
412
|
+
* // Set the background color of the theme to blue.
|
|
413
|
+
* GC.Spread.Sheets.Designer.setTheme({
|
|
414
|
+
* colorBackground: 'blue'
|
|
415
|
+
* });
|
|
416
|
+
*
|
|
417
|
+
* // Reset the custom theme.
|
|
418
|
+
* GC.Spread.Sheets.Designer.setTheme(null);
|
|
419
|
+
* ```
|
|
420
|
+
*/
|
|
421
|
+
function setTheme(Theme: Partial<GC.Spread.Sheets.Designer.ITheme> | null): void;
|
|
395
422
|
/**
|
|
396
423
|
* This function will show a dialog with the option, the option will be used in the dialog template got by template name.
|
|
397
424
|
* @param {string} templateName - The template name.
|
|
@@ -1347,6 +1374,32 @@ declare module GC.Spread.Sheets{
|
|
|
1347
1374
|
}
|
|
1348
1375
|
|
|
1349
1376
|
|
|
1377
|
+
export interface ITheme{
|
|
1378
|
+
colorForeground: string | undefined;
|
|
1379
|
+
colorForegroundDisabled: string | undefined;
|
|
1380
|
+
colorBackground: string | undefined;
|
|
1381
|
+
colorBackgroundHover: string | undefined;
|
|
1382
|
+
colorBackgroundSelected: string | undefined;
|
|
1383
|
+
colorBackgroundDisabled: string | undefined;
|
|
1384
|
+
colorBackground2: string | undefined;
|
|
1385
|
+
colorBackground2Hover: string | undefined;
|
|
1386
|
+
colorBackground2Selected: string | undefined;
|
|
1387
|
+
colorBrandForeground: string | undefined;
|
|
1388
|
+
colorBrandBackground: string | undefined;
|
|
1389
|
+
colorBrandBackgroundHover: string | undefined;
|
|
1390
|
+
colorBrandBackgroundSelected: string | undefined;
|
|
1391
|
+
colorStroke: string | undefined;
|
|
1392
|
+
colorStrokeHover: string | undefined;
|
|
1393
|
+
colorStrokeSelected: string | undefined;
|
|
1394
|
+
colorStrokeDisabled: string | undefined;
|
|
1395
|
+
borderRadiusM: string | undefined;
|
|
1396
|
+
borderRadiusL: string | undefined;
|
|
1397
|
+
borderRadiusXL: string | undefined;
|
|
1398
|
+
shadow4: string | undefined;
|
|
1399
|
+
shadow8: string | undefined;
|
|
1400
|
+
}
|
|
1401
|
+
|
|
1402
|
+
|
|
1350
1403
|
export type CommandMap = {
|
|
1351
1404
|
[key in string]: GC.Spread.Sheets.Designer.ICommand;
|
|
1352
1405
|
}
|
|
@@ -1444,7 +1497,7 @@ declare module GC.Spread.Sheets{
|
|
|
1444
1497
|
*/
|
|
1445
1498
|
Json = 1,
|
|
1446
1499
|
/**
|
|
1447
|
-
* Specifies the import file type is excel.
|
|
1500
|
+
* Specifies the import file type is excel (xlsx).
|
|
1448
1501
|
*/
|
|
1449
1502
|
Excel = 2,
|
|
1450
1503
|
/**
|
|
@@ -1454,7 +1507,15 @@ declare module GC.Spread.Sheets{
|
|
|
1454
1507
|
/**
|
|
1455
1508
|
* Specifies the import file type is sjs.
|
|
1456
1509
|
*/
|
|
1457
|
-
SJS = 4
|
|
1510
|
+
SJS = 4,
|
|
1511
|
+
/**
|
|
1512
|
+
* Specifies the import file type is excel (xlsm).
|
|
1513
|
+
*/
|
|
1514
|
+
XLSM = 5,
|
|
1515
|
+
/**
|
|
1516
|
+
* Specifies the import file type is excel (xltm).
|
|
1517
|
+
*/
|
|
1518
|
+
XLTM = 6
|
|
1458
1519
|
}
|
|
1459
1520
|
|
|
1460
1521
|
/**
|
|
@@ -1526,6 +1587,101 @@ declare module GC.Spread.Sheets{
|
|
|
1526
1587
|
cancel = 4
|
|
1527
1588
|
}
|
|
1528
1589
|
|
|
1590
|
+
/**
|
|
1591
|
+
* @enum {string}
|
|
1592
|
+
* This enum is used to judge the import file type
|
|
1593
|
+
*/
|
|
1594
|
+
export enum ThemeTokens{
|
|
1595
|
+
/**
|
|
1596
|
+
* Normal foreground color, used for the color of all regular text.
|
|
1597
|
+
*/
|
|
1598
|
+
colorForeground = "--sjs-color-foreground",
|
|
1599
|
+
/**
|
|
1600
|
+
* The color of regular text when the component is disabled.
|
|
1601
|
+
*/
|
|
1602
|
+
colorForegroundDisabled = "--sjs-color-foreground-disabled",
|
|
1603
|
+
/**
|
|
1604
|
+
* Normal background color, used for the background of all standard components.
|
|
1605
|
+
*/
|
|
1606
|
+
colorBackground = "--sjs-color-background",
|
|
1607
|
+
/**
|
|
1608
|
+
* Background color when a standard component is hovered.
|
|
1609
|
+
*/
|
|
1610
|
+
colorBackgroundHover = "--sjs-color-background-hover",
|
|
1611
|
+
/**
|
|
1612
|
+
* Background color when a standard component is selected.
|
|
1613
|
+
*/
|
|
1614
|
+
colorBackgroundSelected = "--sjs-color-background-selected",
|
|
1615
|
+
/**
|
|
1616
|
+
* Background color when a standard component is disabled.
|
|
1617
|
+
*/
|
|
1618
|
+
colorBackgroundDisabled = "--sjs-color-background-disabled",
|
|
1619
|
+
/**
|
|
1620
|
+
* Background color for the bottom-most container in the designer.
|
|
1621
|
+
*/
|
|
1622
|
+
colorBackground2 = "--sjs-color-background-2",
|
|
1623
|
+
/**
|
|
1624
|
+
* Background color when the bottom-most container’s component is hovered.
|
|
1625
|
+
*/
|
|
1626
|
+
colorBackground2Hover = "--sjs-color-background-2-hover",
|
|
1627
|
+
/**
|
|
1628
|
+
* Background color when the bottom-most container’s component is selected.
|
|
1629
|
+
*/
|
|
1630
|
+
colorBackground2Selected = "--sjs-color-background-2-selected",
|
|
1631
|
+
/**
|
|
1632
|
+
* Text color used on top of the brand background color.
|
|
1633
|
+
*/
|
|
1634
|
+
colorBrandForeground = "--sjs-color-brand-foreground",
|
|
1635
|
+
/**
|
|
1636
|
+
* The color representing the brand, used as the product’s color identifier. It serves as the background color for components that need to stand out or showcase the brand’s style.
|
|
1637
|
+
*/
|
|
1638
|
+
colorBrandBackground = "--sjs-color-brand-background",
|
|
1639
|
+
/**
|
|
1640
|
+
* Background color when the brand background color is hovered.
|
|
1641
|
+
*/
|
|
1642
|
+
colorBrandBackgroundHover = "--sjs-color-brand-background-hover",
|
|
1643
|
+
/**
|
|
1644
|
+
* Background color when the brand background color is selected.
|
|
1645
|
+
*/
|
|
1646
|
+
colorBrandBackgroundSelected = "--sjs-color-brand-background-selected",
|
|
1647
|
+
/**
|
|
1648
|
+
* Border color.
|
|
1649
|
+
*/
|
|
1650
|
+
colorStroke = "--sjs-color-stroke",
|
|
1651
|
+
/**
|
|
1652
|
+
* Border color when the component is hovered.
|
|
1653
|
+
*/
|
|
1654
|
+
colorStrokeHover = "--sjs-color-stroke-hover",
|
|
1655
|
+
/**
|
|
1656
|
+
* Border color when the component is selected.
|
|
1657
|
+
*/
|
|
1658
|
+
colorStrokeSelected = "--sjs-color-stroke-selected",
|
|
1659
|
+
/**
|
|
1660
|
+
* Border color when the component is disabled.
|
|
1661
|
+
*/
|
|
1662
|
+
colorStrokeDisabled = "--sjs-color-stroke-disabled",
|
|
1663
|
+
/**
|
|
1664
|
+
* Medium border radius.
|
|
1665
|
+
*/
|
|
1666
|
+
borderRadiusM = "--sjs-border-radius-m",
|
|
1667
|
+
/**
|
|
1668
|
+
* Large border radius.
|
|
1669
|
+
*/
|
|
1670
|
+
borderRadiusL = "--sjs-border-radius-l",
|
|
1671
|
+
/**
|
|
1672
|
+
* Extra-large border radius.
|
|
1673
|
+
*/
|
|
1674
|
+
borderRadiusXL = "--sjs-border-radius-xl",
|
|
1675
|
+
/**
|
|
1676
|
+
* Shadow with a blur radius of 4px.
|
|
1677
|
+
*/
|
|
1678
|
+
shadow4 = "--sjs-shadow-4",
|
|
1679
|
+
/**
|
|
1680
|
+
* Shadow with a blur radius of 8px.
|
|
1681
|
+
*/
|
|
1682
|
+
shadow8 = "--sjs-shadow-8"
|
|
1683
|
+
}
|
|
1684
|
+
|
|
1529
1685
|
|
|
1530
1686
|
export class AtomicComponentBase<ValueType, OptionsType>{
|
|
1531
1687
|
/**
|
|
@@ -3415,6 +3571,14 @@ declare module GC.Spread.Sheets{
|
|
|
3415
3571
|
* ```
|
|
3416
3572
|
*/
|
|
3417
3573
|
static ComboChartPreview: string;
|
|
3574
|
+
/**
|
|
3575
|
+
* Get the command name CommandPaletteButton.
|
|
3576
|
+
* @name GC.Spread.Sheets.Designer#CommandPaletteButton
|
|
3577
|
+
* @example
|
|
3578
|
+
* // This example get the CommandPaletteButton by the command name.
|
|
3579
|
+
* var command = GC.Spread.Sheets.Designer.getCommand(GC.Spread.Sheets.Designer.CommandNames.CommandPaletteButton);
|
|
3580
|
+
*/
|
|
3581
|
+
static CommandPaletteButton: string;
|
|
3418
3582
|
/**
|
|
3419
3583
|
* Get the command name CommandPalettePanel.
|
|
3420
3584
|
* @name GC.Spread.Sheets.Designer#CommandPalettePanel
|
|
@@ -3519,6 +3683,22 @@ declare module GC.Spread.Sheets{
|
|
|
3519
3683
|
* var command = GC.Spread.Sheets.Designer.getCommand(GC.Spread.Sheets.Designer.CommandNames.ContextMenuSlicerSetting);
|
|
3520
3684
|
*/
|
|
3521
3685
|
static ContextMenuSlicerSetting: string;
|
|
3686
|
+
/**
|
|
3687
|
+
* Get the command name ConvertFromDataTable.
|
|
3688
|
+
* @name GC.Spread.Sheets.Designer#ConvertFromDataTable
|
|
3689
|
+
* @example
|
|
3690
|
+
* // This example get the ConvertFromDataTable by the command name.
|
|
3691
|
+
* var command = GC.Spread.Sheets.Designer.getCommand(GC.Spread.Sheets.Designer.CommandNames.ConvertFromDataTable);
|
|
3692
|
+
*/
|
|
3693
|
+
static ConvertFromDataTable: string;
|
|
3694
|
+
/**
|
|
3695
|
+
* Get the command name ConvertToDataTable.
|
|
3696
|
+
* @name GC.Spread.Sheets.Designer#ConvertToDataTable
|
|
3697
|
+
* @example
|
|
3698
|
+
* // This example get the ConvertToDataTable by the command name.
|
|
3699
|
+
* var command = GC.Spread.Sheets.Designer.getCommand(GC.Spread.Sheets.Designer.CommandNames.ConvertToDataTable);
|
|
3700
|
+
*/
|
|
3701
|
+
static ConvertToDataTable: string;
|
|
3522
3702
|
/**
|
|
3523
3703
|
* Get the command name ConvertToRange.
|
|
3524
3704
|
* @name GC.Spread.Sheets.Designer#ConvertToRange
|
|
@@ -5762,6 +5942,14 @@ declare module GC.Spread.Sheets{
|
|
|
5762
5942
|
* var command = GC.Spread.Sheets.Designer.getCommand(GC.Spread.Sheets.Designer.CommandNames.InsertTable);
|
|
5763
5943
|
*/
|
|
5764
5944
|
static InsertTable: string;
|
|
5945
|
+
/**
|
|
5946
|
+
* Get the command name InsertTableFromDataTable.
|
|
5947
|
+
* @name GC.Spread.Sheets.Designer#InsertTableFromDataTable
|
|
5948
|
+
* @example
|
|
5949
|
+
* // This example get the InsertTableFromDataTable by the command name.
|
|
5950
|
+
* var command = GC.Spread.Sheets.Designer.getCommand(GC.Spread.Sheets.Designer.CommandNames.InsertTableFromDataTable);
|
|
5951
|
+
*/
|
|
5952
|
+
static InsertTableFromDataTable: string;
|
|
5765
5953
|
/**
|
|
5766
5954
|
* Get the command name InsertTableSheet.
|
|
5767
5955
|
* @name GC.Spread.Sheets.Designer#InsertTableSheet
|
|
@@ -8016,6 +8204,14 @@ declare module GC.Spread.Sheets{
|
|
|
8016
8204
|
* ```
|
|
8017
8205
|
*/
|
|
8018
8206
|
static ReportSheetExpandAll: string;
|
|
8207
|
+
/**
|
|
8208
|
+
* Get the command name ReportSheetHiddenRowColStyle.
|
|
8209
|
+
* @name GC.Spread.Sheets.Designer#ReportSheetHiddenRowColStyle
|
|
8210
|
+
* @example
|
|
8211
|
+
* // This example get the ReportSheetHiddenRowColStyle by the command name.
|
|
8212
|
+
* var command = GC.Spread.Sheets.Designer.getCommand(GC.Spread.Sheets.Designer.CommandNames.ReportSheetHiddenRowColStyle);
|
|
8213
|
+
*/
|
|
8214
|
+
static ReportSheetHiddenRowColStyle: string;
|
|
8019
8215
|
/**
|
|
8020
8216
|
* Get the command name ReportSheetImportTemplate.
|
|
8021
8217
|
* @name GC.Spread.Sheets.Designer#ReportSheetImportTemplate
|
|
@@ -8074,6 +8270,14 @@ declare module GC.Spread.Sheets{
|
|
|
8074
8270
|
* var command = GC.Spread.Sheets.Designer.getCommand(GC.Spread.Sheets.Designer.CommandNames.ReportSheetSetDirtyStyle);
|
|
8075
8271
|
*/
|
|
8076
8272
|
static ReportSheetSetDirtyStyle: string;
|
|
8273
|
+
/**
|
|
8274
|
+
* Get the command name ReportSheetShowHiddenRowCol.
|
|
8275
|
+
* @name GC.Spread.Sheets.Designer#ReportSheetShowHiddenRowCol
|
|
8276
|
+
* @example
|
|
8277
|
+
* // This example get the ReportSheetShowHiddenRowCol by the command name.
|
|
8278
|
+
* var command = GC.Spread.Sheets.Designer.getCommand(GC.Spread.Sheets.Designer.CommandNames.ReportSheetShowHiddenRowCol);
|
|
8279
|
+
*/
|
|
8280
|
+
static ReportSheetShowHiddenRowCol: string;
|
|
8077
8281
|
/**
|
|
8078
8282
|
* Get the command name ReportSheetSubmit.
|
|
8079
8283
|
* @name GC.Spread.Sheets.Designer#ReportSheetSubmit
|
|
@@ -9714,6 +9918,30 @@ declare module GC.Spread.Sheets{
|
|
|
9714
9918
|
* var command = GC.Spread.Sheets.Designer.getCommand(GC.Spread.Sheets.Designer.CommandNames.TableAllowAutoExpand);
|
|
9715
9919
|
*/
|
|
9716
9920
|
static TableAllowAutoExpand: string;
|
|
9921
|
+
/**
|
|
9922
|
+
* Get the command name TableBindingSource.
|
|
9923
|
+
* @name GC.Spread.Sheets.Designer#TableBindingSource
|
|
9924
|
+
* @example
|
|
9925
|
+
* // This example get the TableBindingSource by the command name.
|
|
9926
|
+
* var command = GC.Spread.Sheets.Designer.getCommand(GC.Spread.Sheets.Designer.CommandNames.TableBindingSource);
|
|
9927
|
+
*/
|
|
9928
|
+
static TableBindingSource: string;
|
|
9929
|
+
/**
|
|
9930
|
+
* Get the command name TableConvertFromDataTable.
|
|
9931
|
+
* @name GC.Spread.Sheets.Designer#TableConvertFromDataTable
|
|
9932
|
+
* @example
|
|
9933
|
+
* // This example get the TableConvertFromDataTable by the command name.
|
|
9934
|
+
* var command = GC.Spread.Sheets.Designer.getCommand(GC.Spread.Sheets.Designer.CommandNames.TableConvertFromDataTable);
|
|
9935
|
+
*/
|
|
9936
|
+
static TableConvertFromDataTable: string;
|
|
9937
|
+
/**
|
|
9938
|
+
* Get the command name TableConvertToDataTable.
|
|
9939
|
+
* @name GC.Spread.Sheets.Designer#TableConvertToDataTable
|
|
9940
|
+
* @example
|
|
9941
|
+
* // This example get the TableConvertToDataTable by the command name.
|
|
9942
|
+
* var command = GC.Spread.Sheets.Designer.getCommand(GC.Spread.Sheets.Designer.CommandNames.TableConvertToDataTable);
|
|
9943
|
+
*/
|
|
9944
|
+
static TableConvertToDataTable: string;
|
|
9717
9945
|
/**
|
|
9718
9946
|
* Get the command name TableDelete.
|
|
9719
9947
|
* @name GC.Spread.Sheets.Designer#TableDelete
|
|
@@ -10482,6 +10710,14 @@ declare module GC.Spread.Sheets{
|
|
|
10482
10710
|
* var command = GC.Spread.Sheets.Designer.getCommand(GC.Spread.Sheets.Designer.CommandNames.TopThickBottomBorder);
|
|
10483
10711
|
*/
|
|
10484
10712
|
static TopThickBottomBorder: string;
|
|
10713
|
+
/**
|
|
10714
|
+
* Get the command name TransformCells.
|
|
10715
|
+
* @name GC.Spread.Sheets.Designer#TransformCells
|
|
10716
|
+
* @example
|
|
10717
|
+
* // This example get the TransformCells by the command name.
|
|
10718
|
+
* var command = GC.Spread.Sheets.Designer.getCommand(GC.Spread.Sheets.Designer.CommandNames.TransformCells);
|
|
10719
|
+
*/
|
|
10720
|
+
static TransformCells: string;
|
|
10485
10721
|
/**
|
|
10486
10722
|
* Get the command name TreemapChart.
|
|
10487
10723
|
* @name GC.Spread.Sheets.Designer#TreemapChart
|
|
@@ -13265,6 +13501,16 @@ declare module GC.Spread.Sheets{
|
|
|
13265
13501
|
* var template = GC.Spread.Sheets.Designer.getTemplate(GC.Spread.Sheets.Designer.TemplateNames.Top10RuleDialogTemplate);
|
|
13266
13502
|
*/
|
|
13267
13503
|
static Top10RuleDialogTemplate: string;
|
|
13504
|
+
/**
|
|
13505
|
+
* Get the template name.
|
|
13506
|
+
* @name GC.Spread.Sheets.Designer#TransFormCellsTemplate
|
|
13507
|
+
* @example
|
|
13508
|
+
* ```
|
|
13509
|
+
* //this example get the TransFormCellsTemplate by the template name.
|
|
13510
|
+
* var template = GC.Spread.Sheets.Designer.getTemplate(GC.Spread.Sheets.Designer.TemplateNames.TransFormCellsTemplate);
|
|
13511
|
+
* ```
|
|
13512
|
+
*/
|
|
13513
|
+
static TransFormCellsTemplate: string;
|
|
13268
13514
|
/**
|
|
13269
13515
|
* Get the template name.
|
|
13270
13516
|
* @name GC.Spread.Sheets.Designer#TreeMapChartPanelTemplate
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grapecity-software/spread-sheets-designer",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.2.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"description":"SpreadJS Designer Component present as a control that could be embedded into your web application easily, and also provided flexible, customizable configuration to achieve your business logic.",
|
|
6
6
|
"scripts": {},
|