@siemens/ix-aggrid 3.0.1 → 4.0.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/READMEOSS.html +20 -20
- package/dist/index.js +800 -0
- package/dist/index.js.map +1 -0
- package/dist/types/aggrid-ix-theme-params.d.ts +124 -0
- package/dist/types/index.d.ts +9 -0
- package/package.json +30 -21
- package/dist/ix-aggrid/ix-aggrid.css +0 -1
package/dist/index.js
ADDED
|
@@ -0,0 +1,800 @@
|
|
|
1
|
+
var checkboxStyles = "/*\n * SPDX-FileCopyrightText: 2025 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n.ag-checkbox-input {\n width: 1rem;\n height: 1rem;\n margin: 0;\n appearance: none;\n border-radius: 4px;\n cursor: pointer;\n}\n\n.ag-checkbox-input-wrapper {\n width: 1.125rem;\n height: 1.125rem;\n}\n\n.ag-checkbox-input-wrapper::after {\n color: transparent;\n}\n\n.ag-checkbox-input-wrapper:not(.ag-checked):not(.ag-indeterminate) {\n border: var(--theme-checkbox--border-thickness) solid\n var(--theme-checkbox-unchecked--border-color);\n}\n\n.ag-checked {\n position: relative;\n}\n\n.ag-checkbox-input-wrapper.ag-checked::before {\n content: '';\n position: absolute;\n inset: 0;\n background-color: var(--theme-checkbox-checked--background);\n mask-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0id2hpdGUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHJlY3Qgd2lkdGg9IjE4IiBoZWlnaHQ9IjE4IiAvPjwvc3ZnPg=='),\n url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMy42NTYyNSA4LjE1NjI1TDguNDM3NSAxMi45Mzc1TDE0LjYyNSAzLjkzNzUiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS13aWR0aD0iMiIvPjwvc3ZnPg==');\n mask-composite: subtract;\n mask-repeat: no-repeat;\n mask-position: center;\n mask-size: contain;\n pointer-events: none;\n}\n\n.ag-indeterminate {\n position: relative;\n}\n\n.ag-indeterminate::before {\n content: '';\n position: absolute;\n inset: 0;\n background-color: var(--theme-color-dynamic);\n mask-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0id2hpdGUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHJlY3Qgd2lkdGg9IjE4IiBoZWlnaHQ9IjE4IiAvPjwvc3ZnPg=='),\n url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48bGluZSB4MT0iNCIgeTE9IjkiIHgyPSIxNCIgeTI9IjkiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+PC9zdmc+');\n mask-composite: subtract;\n mask-repeat: no-repeat;\n mask-position: center;\n mask-size: contain;\n pointer-events: none;\n}\n\n.ag-checkbox-input:disabled {\n cursor: not-allowed;\n opacity: 0.5;\n}\n";
|
|
2
|
+
|
|
3
|
+
var headerStyles = "/*\n * SPDX-FileCopyrightText: 2025 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n.ag-header-cell:hover .ag-header-cell-resize:after {\n background-color: var(--theme-table-header-splitter--background) !important;\n}\n\n.ag-header-cell .ag-header-cell-resize:hover:after {\n background-color: var(\n --theme-table-header-splitter--background--hover\n ) !important;\n}\n";
|
|
4
|
+
|
|
5
|
+
var tooltipStyles = "/*\n * SPDX-FileCopyrightText: 2025 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n.ag-tooltip {\n box-shadow: var(--theme-shadow-4) !important;\n}\n";
|
|
6
|
+
|
|
7
|
+
var radioStyles = "/*\n * SPDX-FileCopyrightText: 2025 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n.ag-radio-button {\n display: inline-flex;\n position: relative;\n align-items: center;\n margin: 0 0.25rem;\n}\n\n.ag-radio-button-input-wrapper {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 1.5rem;\n height: 1.5rem;\n}\n\n.ag-radio-button-input {\n appearance: none;\n width: 1.125rem;\n height: 1.125rem;\n min-width: 1.125rem;\n max-width: 1.125rem;\n min-height: 1.125rem;\n max-height: 1.125rem;\n margin: 0;\n border-radius: 100px;\n cursor: pointer;\n position: relative;\n\n background-color: var(--theme-radiobtn-unchecked--background);\n border: var(--theme-radiobtn--border-thickness, 1px) solid\n var(--theme-radiobtn-unchecked--border-color);\n}\n\n.ag-radio-button-input:hover {\n background-color: var(--theme-radiobtn-unchecked--background--hover);\n border: var(--theme-radiobtn--border-thickness) solid\n var(--theme-radiobtn-unchecked--border-color--hover);\n}\n\n.ag-radio-button-input:active {\n background-color: var(--theme-radiobtn-unchecked--background--active);\n border: var(--theme-radiobtn--border-thickness) solid\n var(--theme-radiobtn-unchecked--border-color--active);\n}\n\n.ag-radio-button-input:checked,\n.ag-radio-button-input-wrapper.ag-checked .ag-radio-button-input {\n background-color: var(--theme-radiobtn-checked--background);\n border: var(--theme-radiobtn--border-thickness) solid\n var(--theme-radiobtn-checked--border-color);\n}\n\n.ag-radio-button-input:checked:hover,\n.ag-radio-button-input-wrapper.ag-checked .ag-radio-button-input:hover {\n background-color: var(--theme-radiobtn-checked--background--hover);\n border: var(--theme-radiobtn--border-thickness) solid\n var(--theme-radiobtn-checked--border-color--hover);\n}\n\n.ag-radio-button-input:checked:active,\n.ag-radio-button-input-wrapper.ag-checked .ag-radio-button-input:active {\n background-color: var(--theme-radiobtn-checked--background--active);\n border: var(--theme-radiobtn--border-thickness) solid\n var(--theme-radiobtn-checked--border-color--active);\n}\n\n.ag-radio-button-input:checked::after,\n.ag-radio-button-input-wrapper.ag-checked .ag-radio-button-input::after {\n content: '';\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n border-radius: 100px;\n background-color: var(--theme-color-primary--contrast);\n width: 0.5rem;\n height: 0.5rem;\n}\n\n.ag-radio-button-input:disabled {\n cursor: not-allowed;\n pointer-events: none;\n background-color: var(--theme-radiobtn-unchecked--background--disabled);\n border: var(--theme-radiobtn--border-thickness) solid\n var(--theme-radiobtn-unchecked--border-color--disabled);\n}\n\n.ag-radio-button-input:checked:disabled,\n.ag-radio-button-input-wrapper.ag-checked .ag-radio-button-input:disabled {\n background-color: var(--theme-radiobtn-checked--background--disabled);\n border: var(--theme-radiobtn--border-thickness) solid\n var(--theme-radiobtn-checked--border-color--disabled);\n}\n\n.ag-radio-button-input:focus-visible {\n outline: 0.0625rem solid var(--theme-color-focus-bdr);\n outline-offset: var(--theme-radiobtn--focus--outline-offset);\n}\n\n.ag-filter-condition {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n padding: 0.5rem 0;\n}\n";
|
|
8
|
+
|
|
9
|
+
var inputStyles = "/*\n * SPDX-FileCopyrightText: 2025 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n.ag-input-field-input:focus,\n.ag-text-field-input:focus {\n box-shadow: none !important;\n}\n\n.ag-picker-field-wrapper:focus-within {\n box-shadow: none !important;\n}\n";
|
|
10
|
+
|
|
11
|
+
/*
|
|
12
|
+
* SPDX-FileCopyrightText: 2025 Siemens AG
|
|
13
|
+
*
|
|
14
|
+
* SPDX-License-Identifier: MIT
|
|
15
|
+
*
|
|
16
|
+
* This source code is licensed under the MIT license found in the
|
|
17
|
+
* LICENSE file in the root directory of this source tree.
|
|
18
|
+
*/
|
|
19
|
+
const aggridIxThemeParams = {
|
|
20
|
+
accentColor: `var(--theme-color-focus-bdr)`,
|
|
21
|
+
backgroundColor: `var(--theme-color-2)`,
|
|
22
|
+
headerColumnResizeHandleColor: `var(--theme-color-0)`,
|
|
23
|
+
foregroundColor: `var(--theme-color-std-text)`,
|
|
24
|
+
cellTextColor: `var(--theme-color-std-text)`,
|
|
25
|
+
headerCellHoverBackgroundColor: `var(--theme-color-ghost--hover)`,
|
|
26
|
+
advancedFilterBuilderJoinPillColor: `var(--theme-color-alarm-40)`,
|
|
27
|
+
advancedFilterBuilderColumnPillColor: `var(--theme-color-success-40)`,
|
|
28
|
+
advancedFilterBuilderOptionPillColor: `var(--theme-color-critical-40)`,
|
|
29
|
+
advancedFilterBuilderValuePillColor: `var(--theme-color-info-40)`,
|
|
30
|
+
selectedRowBackgroundColor: `var(--theme-color-ghost--selected)`,
|
|
31
|
+
rowHoverColor: `var(--theme-color-ghost--hover)`,
|
|
32
|
+
columnHoverColor: `var(--theme-color-ghost--hover)`,
|
|
33
|
+
rangeSelectionBackgroundColor: `var(--theme-color-ghost--selected)`,
|
|
34
|
+
rangeSelectionHighlightColor: `var(--theme-color-ghost--selected-hover)`,
|
|
35
|
+
borderColor: `var(--theme-color-x-weak-bdr)`,
|
|
36
|
+
headerBackgroundColor: `var(--theme-color-2)`,
|
|
37
|
+
tooltipBackgroundColor: `var(--theme-color-2)`,
|
|
38
|
+
oddRowBackgroundColor: `var(--theme-color-ghost-alt)`,
|
|
39
|
+
sideBarBackgroundColor: `var(--theme-color-2)`,
|
|
40
|
+
invalidColor: `var(--theme-color-alarm)`,
|
|
41
|
+
checkboxUncheckedBorderColor: `var(--theme-color-contrast-bdr)`,
|
|
42
|
+
checkboxCheckedBackgroundColor: `var(--theme-color-dynamic)`,
|
|
43
|
+
checkboxCheckedColor: `var(--theme-color-dynamic)`,
|
|
44
|
+
rangeSelectionBorderColor: `var(--theme-color-dynamic)`,
|
|
45
|
+
sideButtonSelectedBackgroundColor: `var(--theme-color-ghost--selected)`,
|
|
46
|
+
sideButtonSelectedUnderlineColor: `var(--theme-color-ghost--selected)`,
|
|
47
|
+
valueChangeDeltaUpColor: `var(--theme-color-success)`,
|
|
48
|
+
valueChangeDeltaDownColor: `var(--theme-color-alarm)`,
|
|
49
|
+
inputBackgroundColor: `var(--theme-color-component-8)`,
|
|
50
|
+
inputDisabledBackgroundColor: `var(--theme-color-ghost)`,
|
|
51
|
+
inputDisabledBorder: `var(--theme-color-weak-bdr)`,
|
|
52
|
+
inputInvalidBorderColor: `var(--theme-color-alarm)`,
|
|
53
|
+
inputTextColor: `var(--theme-color-std-text)`,
|
|
54
|
+
inputDisabledTextColor: `var(--theme-color-weak-text)`,
|
|
55
|
+
buttonBackgroundColor: `var(--theme-color-ghost)`,
|
|
56
|
+
buttonBorderColor: `var(--theme-color-component-4)`,
|
|
57
|
+
buttonTextColor: `var(--theme-color-std-text)`,
|
|
58
|
+
buttonDisabledBackgroundColor: `var(--theme-color-ghost)`,
|
|
59
|
+
buttonDisabledBorderColor: `var(--theme-color-component-4)`,
|
|
60
|
+
buttonDisabledTextColor: `var(--theme-color-weak-text)`,
|
|
61
|
+
buttonHoverBackgroundColor: `var(--theme-color-ghost--hover)`,
|
|
62
|
+
buttonHoverBorderColor: `var(--theme-color-component-4)`,
|
|
63
|
+
buttonHoverTextColor: `var(--theme-color-std-text)`,
|
|
64
|
+
buttonActiveBackgroundColor: `var(--theme-color-ghost--active)`,
|
|
65
|
+
buttonActiveBorderColor: `var(--theme-color-component-4)`,
|
|
66
|
+
buttonActiveTextColor: `var(--theme-color-std-text)`,
|
|
67
|
+
toggleButtonSwitchBackgroundColor: `var(--theme-color-1)`,
|
|
68
|
+
toggleButtonOffBackgroundColor: `var(--theme-color-component-4)`,
|
|
69
|
+
toggleButtonOnBackgroundColor: `var(--theme-color-dynamic)`,
|
|
70
|
+
iconColor: `var(--theme-color-std-text)`,
|
|
71
|
+
menuBackgroundColor: `var(--theme-color-2)`,
|
|
72
|
+
sideButtonsBackgroundColor: `var(--theme-color-0)`,
|
|
73
|
+
footerRowBorderColor: `var(--theme-color-std-bdr)`,
|
|
74
|
+
pinnedRowBackgroundColor: `var(--theme-color-ghost--selected)`,
|
|
75
|
+
inputDisabledBorderColor: `var(--theme-color-weak-bdr)`,
|
|
76
|
+
dialogBorderColor: `var(--theme-color-std-bdr)`,
|
|
77
|
+
advancedFilterBuilderButtonBarBorderColor: `var(--theme-color-soft-bdr)`,
|
|
78
|
+
columnDropCellBorderColor: `var(--theme-color-ghost)`,
|
|
79
|
+
pinnedColumnBackgroundColor: `var(--theme-color-ghost--selected)`,
|
|
80
|
+
headerRowBorderColor: `var(--theme-color-soft-bdr)`,
|
|
81
|
+
headerColumnBorderColor: `var(--theme-color-0)`,
|
|
82
|
+
cellEditingBorderColor: `var(--theme-color-dynamic)`,
|
|
83
|
+
rowBorderColor: `var(--theme-color-weak-bdr)`,
|
|
84
|
+
menuBorderColor: `var(--theme-color-std-bdr)`,
|
|
85
|
+
sidePanelBorderColor: `var(--theme-color-x-weak-bdr)`,
|
|
86
|
+
checkboxUncheckedBackgroundColor: `var(--theme-color-secondary)`,
|
|
87
|
+
checkboxIndeterminateShapeColor: `var(--theme-color-primary--contrast)`,
|
|
88
|
+
checkboxIndeterminateBackgroundColor: `var(--theme-color-dynamic)`,
|
|
89
|
+
valueChangeValueHighlightBackgroundColor: `var(--theme-color-ghost--selected)`,
|
|
90
|
+
columnDropCellDragHandleColor: `var(--theme-color-std-text)`,
|
|
91
|
+
columnDropCellBackgroundColor: `var(--theme-color-component-1)`,
|
|
92
|
+
columnDropCellTextColor: `var(--theme-color-std-text)`,
|
|
93
|
+
rowLoadingSkeletonEffectColor: `var(--theme-color-2)`,
|
|
94
|
+
statusBarLabelColor: `var(--theme-color-std-text)`,
|
|
95
|
+
statusBarValueColor: `var(--theme-color-std-text)`,
|
|
96
|
+
dragAndDropImageBackgroundColor: `var(--theme-color-2)`,
|
|
97
|
+
inputIconColor: `var(--theme-color-std-text)`,
|
|
98
|
+
dragHandleColor: `var(--theme-color-std-text)`,
|
|
99
|
+
iconButtonHoverBackgroundColor: `var(--theme-color-ghost--hover)`,
|
|
100
|
+
iconButtonHoverColor: `var(--theme-color-std-text)`,
|
|
101
|
+
iconButtonColor: `var(--theme-color-std-text)`,
|
|
102
|
+
iconButtonActiveBackgroundColor: `var(--theme-color-ghost--active)`,
|
|
103
|
+
iconButtonBackgroundColor: `var(--theme-color-ghost)`,
|
|
104
|
+
iconButtonActiveColor: `var(--theme-color-dynamic)`,
|
|
105
|
+
iconButtonActiveIndicatorColor: `var(--theme-color-dynamic)`,
|
|
106
|
+
subtleTextColor: `var(--theme-color-soft-text)`,
|
|
107
|
+
advancedFilterBuilderButtonBarBorder: `var(--theme-color-soft-bdr)`,
|
|
108
|
+
sideButtonsBarBackgroundColor: `var(--theme-color-2)`,
|
|
109
|
+
sideButtonHoverBackgroundColor: `var(--theme-color-ghost--hover)`,
|
|
110
|
+
checkboxCheckedShapeColor: `var(--theme-color-primary--contrast)`,
|
|
111
|
+
OddRowBackgroundColor: `var(--theme-color-ghost-alt)`,
|
|
112
|
+
tabBackgroundColor: `rgba(255, 255, 255, 0)`,
|
|
113
|
+
tabBorderColor: `rgba(24, 29, 31, 0.15)`,
|
|
114
|
+
tabHoverBackgroundColor: `rgba(255, 255, 255, 0)`,
|
|
115
|
+
columnBorderColor: `var(--theme-borderColor)`,
|
|
116
|
+
selectCellBorderColor: `var(--theme-borderColor)`,
|
|
117
|
+
dragAndDropImageBorderColor: `var(--theme-color-std-bdr)`,
|
|
118
|
+
tooltipBorderColor: `var(--theme-color-0)`,
|
|
119
|
+
tabBarBackgroundColor: `var(--theme-color-2)`,
|
|
120
|
+
tabSelectedUnderlineColor: `var(--theme-color-0)`,
|
|
121
|
+
tabSelectedTextColor: `var(--theme-color-dynamic)`,
|
|
122
|
+
'borderColor 2': `var(--theme-color-x-weak-bdr)`,
|
|
123
|
+
chartBackgroundColor: `var(--theme-color-1)`,
|
|
124
|
+
chartMenuLabelColor: `var(--theme-color-std-text)`,
|
|
125
|
+
menuShadow: `var(--theme-shadow-4)`,
|
|
126
|
+
headerColumnResizeHandleHeight: `100%`,
|
|
127
|
+
headerColumnResizeHandleWidth: `1px`,
|
|
128
|
+
icon: `true`,
|
|
129
|
+
tooltipBorder: `false`,
|
|
130
|
+
columnBorder: `false`,
|
|
131
|
+
selectCellBorder: `true`,
|
|
132
|
+
wrapperBorder: `false`,
|
|
133
|
+
tabBarBorder: `false`,
|
|
134
|
+
toolPanelSeparatorBorder: `false`,
|
|
135
|
+
panelTitleBarBorder: `false`,
|
|
136
|
+
sideButtonSelectedBorder: `false`,
|
|
137
|
+
dragAndDropImageBorder: `false`,
|
|
138
|
+
menuBorder: `false`,
|
|
139
|
+
headerFontWeight: `700`,
|
|
140
|
+
inputBorder: `var(--theme-border-width-default) solid var(--theme-input--border-color)`,
|
|
141
|
+
inputFocusBorder: `var(--theme-focus-border-thickness) solid var(--theme-input--border-color--focus)`,
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
// packages/ag-grid-community/src/localEventService.ts
|
|
145
|
+
|
|
146
|
+
// packages/ag-grid-community/src/context/gridBeanComparator.ts
|
|
147
|
+
var orderedCoreBeans = [
|
|
148
|
+
// Validate license first
|
|
149
|
+
"licenseManager",
|
|
150
|
+
// core beans only
|
|
151
|
+
"environment",
|
|
152
|
+
"eventSvc",
|
|
153
|
+
"gos",
|
|
154
|
+
"paginationAutoPageSizeSvc",
|
|
155
|
+
"apiFunctionSvc",
|
|
156
|
+
"gridApi",
|
|
157
|
+
"registry",
|
|
158
|
+
"agCompUtils",
|
|
159
|
+
"userCompFactory",
|
|
160
|
+
"rowContainerHeight",
|
|
161
|
+
"horizontalResizeSvc",
|
|
162
|
+
"localeSvc",
|
|
163
|
+
"pinnedRowModel",
|
|
164
|
+
"dragSvc",
|
|
165
|
+
"colGroupSvc",
|
|
166
|
+
"visibleCols",
|
|
167
|
+
"popupSvc",
|
|
168
|
+
"selectionSvc",
|
|
169
|
+
"colFilter",
|
|
170
|
+
"quickFilter",
|
|
171
|
+
"filterManager",
|
|
172
|
+
"colModel",
|
|
173
|
+
"headerNavigation",
|
|
174
|
+
"pageBounds",
|
|
175
|
+
"pagination",
|
|
176
|
+
"pageBoundsListener",
|
|
177
|
+
"rowSpanSvc",
|
|
178
|
+
"stickyRowSvc",
|
|
179
|
+
"rowRenderer",
|
|
180
|
+
"expressionSvc",
|
|
181
|
+
"alignedGridsSvc",
|
|
182
|
+
"navigation",
|
|
183
|
+
"valueCache",
|
|
184
|
+
"valueSvc",
|
|
185
|
+
"autoWidthCalc",
|
|
186
|
+
"filterMenuFactory",
|
|
187
|
+
"dragAndDrop",
|
|
188
|
+
"focusSvc",
|
|
189
|
+
"cellNavigation",
|
|
190
|
+
"cellStyles",
|
|
191
|
+
"scrollVisibleSvc",
|
|
192
|
+
"sortSvc",
|
|
193
|
+
"colHover",
|
|
194
|
+
"colAnimation",
|
|
195
|
+
"autoColSvc",
|
|
196
|
+
"selectionColSvc",
|
|
197
|
+
"changeDetectionSvc",
|
|
198
|
+
"animationFrameSvc",
|
|
199
|
+
"undoRedo",
|
|
200
|
+
"colDefFactory",
|
|
201
|
+
"rowStyleSvc",
|
|
202
|
+
"rowNodeBlockLoader",
|
|
203
|
+
"rowNodeSorter",
|
|
204
|
+
"ctrlsSvc",
|
|
205
|
+
"pinnedCols",
|
|
206
|
+
"dataTypeSvc",
|
|
207
|
+
"syncSvc",
|
|
208
|
+
"overlays",
|
|
209
|
+
"stateSvc",
|
|
210
|
+
"expansionSvc",
|
|
211
|
+
"apiEventSvc",
|
|
212
|
+
"ariaAnnounce",
|
|
213
|
+
"menuSvc",
|
|
214
|
+
"colMoves",
|
|
215
|
+
"colAutosize",
|
|
216
|
+
"colFlex",
|
|
217
|
+
"colResize",
|
|
218
|
+
"pivotColsSvc",
|
|
219
|
+
"valueColsSvc",
|
|
220
|
+
"rowGroupColsSvc",
|
|
221
|
+
"funcColsSvc",
|
|
222
|
+
"colNames",
|
|
223
|
+
"colViewport",
|
|
224
|
+
"pivotResultCols",
|
|
225
|
+
"showRowGroupCols",
|
|
226
|
+
"validation"
|
|
227
|
+
// Have validations run last
|
|
228
|
+
];
|
|
229
|
+
Object.fromEntries(
|
|
230
|
+
orderedCoreBeans.map((beanName, index) => [beanName, index])
|
|
231
|
+
);
|
|
232
|
+
|
|
233
|
+
// packages/ag-grid-community/src/api/gridApiFunctions.ts
|
|
234
|
+
var mod = (moduleName, input) => {
|
|
235
|
+
for (const key of Object.keys(input)) {
|
|
236
|
+
input[key] = moduleName;
|
|
237
|
+
}
|
|
238
|
+
return input;
|
|
239
|
+
};
|
|
240
|
+
({
|
|
241
|
+
// this is always registered
|
|
242
|
+
...mod("CommunityCore", {
|
|
243
|
+
destroy: 0,
|
|
244
|
+
getGridId: 0,
|
|
245
|
+
getGridOption: 0,
|
|
246
|
+
isDestroyed: 0,
|
|
247
|
+
setGridOption: 0,
|
|
248
|
+
updateGridOptions: 0,
|
|
249
|
+
isModuleRegistered: 0
|
|
250
|
+
}),
|
|
251
|
+
...mod("GridState", {
|
|
252
|
+
getState: 0
|
|
253
|
+
}),
|
|
254
|
+
...mod("SharedRowSelection", {
|
|
255
|
+
setNodesSelected: 0,
|
|
256
|
+
selectAll: 0,
|
|
257
|
+
deselectAll: 0,
|
|
258
|
+
selectAllFiltered: 0,
|
|
259
|
+
deselectAllFiltered: 0,
|
|
260
|
+
selectAllOnCurrentPage: 0,
|
|
261
|
+
deselectAllOnCurrentPage: 0,
|
|
262
|
+
getSelectedNodes: 0,
|
|
263
|
+
getSelectedRows: 0
|
|
264
|
+
}),
|
|
265
|
+
...mod("RowApi", {
|
|
266
|
+
redrawRows: 0,
|
|
267
|
+
setRowNodeExpanded: 0,
|
|
268
|
+
getRowNode: 0,
|
|
269
|
+
addRenderedRowListener: 0,
|
|
270
|
+
getRenderedNodes: 0,
|
|
271
|
+
forEachNode: 0,
|
|
272
|
+
getFirstDisplayedRowIndex: 0,
|
|
273
|
+
getLastDisplayedRowIndex: 0,
|
|
274
|
+
getDisplayedRowAtIndex: 0,
|
|
275
|
+
getDisplayedRowCount: 0
|
|
276
|
+
}),
|
|
277
|
+
...mod("ScrollApi", {
|
|
278
|
+
getVerticalPixelRange: 0,
|
|
279
|
+
getHorizontalPixelRange: 0,
|
|
280
|
+
ensureColumnVisible: 0,
|
|
281
|
+
ensureIndexVisible: 0,
|
|
282
|
+
ensureNodeVisible: 0
|
|
283
|
+
}),
|
|
284
|
+
...mod("KeyboardNavigation", {
|
|
285
|
+
getFocusedCell: 0,
|
|
286
|
+
clearFocusedCell: 0,
|
|
287
|
+
setFocusedCell: 0,
|
|
288
|
+
tabToNextCell: 0,
|
|
289
|
+
tabToPreviousCell: 0,
|
|
290
|
+
setFocusedHeader: 0
|
|
291
|
+
}),
|
|
292
|
+
...mod("EventApi", {
|
|
293
|
+
addEventListener: 0,
|
|
294
|
+
addGlobalListener: 0,
|
|
295
|
+
removeEventListener: 0,
|
|
296
|
+
removeGlobalListener: 0
|
|
297
|
+
}),
|
|
298
|
+
...mod("ValueCache", {
|
|
299
|
+
expireValueCache: 0
|
|
300
|
+
}),
|
|
301
|
+
...mod("CellApi", {
|
|
302
|
+
getCellValue: 0
|
|
303
|
+
}),
|
|
304
|
+
...mod("SharedMenu", {
|
|
305
|
+
showColumnMenu: 0,
|
|
306
|
+
hidePopupMenu: 0
|
|
307
|
+
}),
|
|
308
|
+
...mod("Sort", {
|
|
309
|
+
onSortChanged: 0
|
|
310
|
+
}),
|
|
311
|
+
...mod("PinnedRow", {
|
|
312
|
+
getPinnedTopRowCount: 0,
|
|
313
|
+
getPinnedBottomRowCount: 0,
|
|
314
|
+
getPinnedTopRow: 0,
|
|
315
|
+
getPinnedBottomRow: 0,
|
|
316
|
+
forEachPinnedRow: 0
|
|
317
|
+
}),
|
|
318
|
+
...mod("Overlay", {
|
|
319
|
+
showLoadingOverlay: 0,
|
|
320
|
+
showNoRowsOverlay: 0,
|
|
321
|
+
hideOverlay: 0
|
|
322
|
+
}),
|
|
323
|
+
...mod("RenderApi", {
|
|
324
|
+
setGridAriaProperty: 0,
|
|
325
|
+
refreshCells: 0,
|
|
326
|
+
refreshHeader: 0,
|
|
327
|
+
isAnimationFrameQueueEmpty: 0,
|
|
328
|
+
flushAllAnimationFrames: 0,
|
|
329
|
+
getSizesForCurrentTheme: 0,
|
|
330
|
+
getCellRendererInstances: 0
|
|
331
|
+
}),
|
|
332
|
+
...mod("HighlightChanges", {
|
|
333
|
+
flashCells: 0
|
|
334
|
+
}),
|
|
335
|
+
...mod("RowDrag", {
|
|
336
|
+
addRowDropZone: 0,
|
|
337
|
+
removeRowDropZone: 0,
|
|
338
|
+
getRowDropZoneParams: 0
|
|
339
|
+
}),
|
|
340
|
+
...mod("ColumnApi", {
|
|
341
|
+
getColumnDefs: 0,
|
|
342
|
+
getColumnDef: 0,
|
|
343
|
+
getDisplayNameForColumn: 0,
|
|
344
|
+
getColumn: 0,
|
|
345
|
+
getColumns: 0,
|
|
346
|
+
applyColumnState: 0,
|
|
347
|
+
getColumnState: 0,
|
|
348
|
+
resetColumnState: 0,
|
|
349
|
+
isPinning: 0,
|
|
350
|
+
isPinningLeft: 0,
|
|
351
|
+
isPinningRight: 0,
|
|
352
|
+
getDisplayedColAfter: 0,
|
|
353
|
+
getDisplayedColBefore: 0,
|
|
354
|
+
setColumnsVisible: 0,
|
|
355
|
+
setColumnsPinned: 0,
|
|
356
|
+
getAllGridColumns: 0,
|
|
357
|
+
getDisplayedLeftColumns: 0,
|
|
358
|
+
getDisplayedCenterColumns: 0,
|
|
359
|
+
getDisplayedRightColumns: 0,
|
|
360
|
+
getAllDisplayedColumns: 0,
|
|
361
|
+
getAllDisplayedVirtualColumns: 0
|
|
362
|
+
}),
|
|
363
|
+
...mod("ColumnAutoSize", {
|
|
364
|
+
sizeColumnsToFit: 0,
|
|
365
|
+
autoSizeColumns: 0,
|
|
366
|
+
autoSizeAllColumns: 0
|
|
367
|
+
}),
|
|
368
|
+
...mod("ColumnGroup", {
|
|
369
|
+
setColumnGroupOpened: 0,
|
|
370
|
+
getColumnGroup: 0,
|
|
371
|
+
getProvidedColumnGroup: 0,
|
|
372
|
+
getDisplayNameForColumnGroup: 0,
|
|
373
|
+
getColumnGroupState: 0,
|
|
374
|
+
setColumnGroupState: 0,
|
|
375
|
+
resetColumnGroupState: 0,
|
|
376
|
+
getLeftDisplayedColumnGroups: 0,
|
|
377
|
+
getCenterDisplayedColumnGroups: 0,
|
|
378
|
+
getRightDisplayedColumnGroups: 0,
|
|
379
|
+
getAllDisplayedColumnGroups: 0
|
|
380
|
+
}),
|
|
381
|
+
...mod("ColumnMove", {
|
|
382
|
+
moveColumnByIndex: 0,
|
|
383
|
+
moveColumns: 0
|
|
384
|
+
}),
|
|
385
|
+
...mod("ColumnResize", {
|
|
386
|
+
setColumnWidths: 0
|
|
387
|
+
}),
|
|
388
|
+
...mod("ColumnHover", {
|
|
389
|
+
isColumnHovered: 0
|
|
390
|
+
}),
|
|
391
|
+
...mod("EditCore", {
|
|
392
|
+
getCellEditorInstances: 0,
|
|
393
|
+
getEditingCells: 0,
|
|
394
|
+
stopEditing: 0,
|
|
395
|
+
startEditingCell: 0
|
|
396
|
+
}),
|
|
397
|
+
...mod("UndoRedoEdit", {
|
|
398
|
+
undoCellEditing: 0,
|
|
399
|
+
redoCellEditing: 0,
|
|
400
|
+
getCurrentUndoSize: 0,
|
|
401
|
+
getCurrentRedoSize: 0
|
|
402
|
+
}),
|
|
403
|
+
...mod("FilterCore", {
|
|
404
|
+
isAnyFilterPresent: 0,
|
|
405
|
+
onFilterChanged: 0
|
|
406
|
+
}),
|
|
407
|
+
...mod("ColumnFilter", {
|
|
408
|
+
isColumnFilterPresent: 0,
|
|
409
|
+
getColumnFilterInstance: 0,
|
|
410
|
+
destroyFilter: 0,
|
|
411
|
+
setFilterModel: 0,
|
|
412
|
+
getFilterModel: 0,
|
|
413
|
+
getColumnFilterModel: 0,
|
|
414
|
+
setColumnFilterModel: 0,
|
|
415
|
+
showColumnFilter: 0
|
|
416
|
+
}),
|
|
417
|
+
...mod("QuickFilter", {
|
|
418
|
+
isQuickFilterPresent: 0,
|
|
419
|
+
getQuickFilter: 0,
|
|
420
|
+
resetQuickFilter: 0
|
|
421
|
+
}),
|
|
422
|
+
...mod("Find", {
|
|
423
|
+
findGetActiveMatch: 0,
|
|
424
|
+
findGetTotalMatches: 0,
|
|
425
|
+
findGoTo: 0,
|
|
426
|
+
findNext: 0,
|
|
427
|
+
findPrevious: 0,
|
|
428
|
+
findGetNumMatches: 0,
|
|
429
|
+
findGetParts: 0,
|
|
430
|
+
findClearActive: 0,
|
|
431
|
+
findRefresh: 0
|
|
432
|
+
}),
|
|
433
|
+
...mod("Pagination", {
|
|
434
|
+
paginationIsLastPageFound: 0,
|
|
435
|
+
paginationGetPageSize: 0,
|
|
436
|
+
paginationGetCurrentPage: 0,
|
|
437
|
+
paginationGetTotalPages: 0,
|
|
438
|
+
paginationGetRowCount: 0,
|
|
439
|
+
paginationGoToNextPage: 0,
|
|
440
|
+
paginationGoToPreviousPage: 0,
|
|
441
|
+
paginationGoToFirstPage: 0,
|
|
442
|
+
paginationGoToLastPage: 0,
|
|
443
|
+
paginationGoToPage: 0
|
|
444
|
+
}),
|
|
445
|
+
...mod("CsrmSsrmSharedApi", {
|
|
446
|
+
expandAll: 0,
|
|
447
|
+
collapseAll: 0,
|
|
448
|
+
onRowHeightChanged: 0
|
|
449
|
+
}),
|
|
450
|
+
...mod("SsrmInfiniteSharedApi", {
|
|
451
|
+
setRowCount: 0,
|
|
452
|
+
getCacheBlockState: 0,
|
|
453
|
+
isLastRowIndexKnown: 0
|
|
454
|
+
}),
|
|
455
|
+
...mod("ClientSideRowModelApi", {
|
|
456
|
+
onGroupExpandedOrCollapsed: 0,
|
|
457
|
+
refreshClientSideRowModel: 0,
|
|
458
|
+
isRowDataEmpty: 0,
|
|
459
|
+
forEachLeafNode: 0,
|
|
460
|
+
forEachNodeAfterFilter: 0,
|
|
461
|
+
forEachNodeAfterFilterAndSort: 0,
|
|
462
|
+
resetRowHeights: 0,
|
|
463
|
+
applyTransaction: 0,
|
|
464
|
+
applyTransactionAsync: 0,
|
|
465
|
+
flushAsyncTransactions: 0,
|
|
466
|
+
getBestCostNodeSelection: 0
|
|
467
|
+
}),
|
|
468
|
+
...mod("CsvExport", {
|
|
469
|
+
getDataAsCsv: 0,
|
|
470
|
+
exportDataAsCsv: 0
|
|
471
|
+
}),
|
|
472
|
+
...mod("InfiniteRowModel", {
|
|
473
|
+
refreshInfiniteCache: 0,
|
|
474
|
+
purgeInfiniteCache: 0,
|
|
475
|
+
getInfiniteRowCount: 0
|
|
476
|
+
}),
|
|
477
|
+
...mod("AdvancedFilter", {
|
|
478
|
+
getAdvancedFilterModel: 0,
|
|
479
|
+
setAdvancedFilterModel: 0,
|
|
480
|
+
showAdvancedFilterBuilder: 0,
|
|
481
|
+
hideAdvancedFilterBuilder: 0
|
|
482
|
+
}),
|
|
483
|
+
...mod("IntegratedCharts", {
|
|
484
|
+
getChartModels: 0,
|
|
485
|
+
getChartRef: 0,
|
|
486
|
+
getChartImageDataURL: 0,
|
|
487
|
+
downloadChart: 0,
|
|
488
|
+
openChartToolPanel: 0,
|
|
489
|
+
closeChartToolPanel: 0,
|
|
490
|
+
createRangeChart: 0,
|
|
491
|
+
createPivotChart: 0,
|
|
492
|
+
createCrossFilterChart: 0,
|
|
493
|
+
updateChart: 0,
|
|
494
|
+
restoreChart: 0
|
|
495
|
+
}),
|
|
496
|
+
...mod("Clipboard", {
|
|
497
|
+
copyToClipboard: 0,
|
|
498
|
+
cutToClipboard: 0,
|
|
499
|
+
copySelectedRowsToClipboard: 0,
|
|
500
|
+
copySelectedRangeToClipboard: 0,
|
|
501
|
+
copySelectedRangeDown: 0,
|
|
502
|
+
pasteFromClipboard: 0
|
|
503
|
+
}),
|
|
504
|
+
...mod("ExcelExport", {
|
|
505
|
+
getDataAsExcel: 0,
|
|
506
|
+
exportDataAsExcel: 0,
|
|
507
|
+
getSheetDataForExcel: 0,
|
|
508
|
+
getMultipleSheetsAsExcel: 0,
|
|
509
|
+
exportMultipleSheetsAsExcel: 0
|
|
510
|
+
}),
|
|
511
|
+
...mod("SharedMasterDetail", {
|
|
512
|
+
addDetailGridInfo: 0,
|
|
513
|
+
removeDetailGridInfo: 0,
|
|
514
|
+
getDetailGridInfo: 0,
|
|
515
|
+
forEachDetailGridInfo: 0
|
|
516
|
+
}),
|
|
517
|
+
...mod("ContextMenu", {
|
|
518
|
+
showContextMenu: 0
|
|
519
|
+
}),
|
|
520
|
+
...mod("ColumnMenu", {
|
|
521
|
+
showColumnChooser: 0,
|
|
522
|
+
hideColumnChooser: 0
|
|
523
|
+
}),
|
|
524
|
+
...mod("CellSelection", {
|
|
525
|
+
getCellRanges: 0,
|
|
526
|
+
addCellRange: 0,
|
|
527
|
+
clearRangeSelection: 0,
|
|
528
|
+
clearCellSelection: 0
|
|
529
|
+
}),
|
|
530
|
+
...mod("SharedRowGrouping", {
|
|
531
|
+
setRowGroupColumns: 0,
|
|
532
|
+
removeRowGroupColumns: 0,
|
|
533
|
+
addRowGroupColumns: 0,
|
|
534
|
+
getRowGroupColumns: 0,
|
|
535
|
+
moveRowGroupColumn: 0
|
|
536
|
+
}),
|
|
537
|
+
...mod("SharedAggregation", {
|
|
538
|
+
addAggFuncs: 0,
|
|
539
|
+
clearAggFuncs: 0,
|
|
540
|
+
setColumnAggFunc: 0
|
|
541
|
+
}),
|
|
542
|
+
...mod("SharedPivot", {
|
|
543
|
+
isPivotMode: 0,
|
|
544
|
+
getPivotResultColumn: 0,
|
|
545
|
+
setValueColumns: 0,
|
|
546
|
+
getValueColumns: 0,
|
|
547
|
+
removeValueColumns: 0,
|
|
548
|
+
addValueColumns: 0,
|
|
549
|
+
setPivotColumns: 0,
|
|
550
|
+
removePivotColumns: 0,
|
|
551
|
+
addPivotColumns: 0,
|
|
552
|
+
getPivotColumns: 0,
|
|
553
|
+
setPivotResultColumns: 0,
|
|
554
|
+
getPivotResultColumns: 0
|
|
555
|
+
}),
|
|
556
|
+
...mod("ServerSideRowModelApi", {
|
|
557
|
+
getServerSideSelectionState: 0,
|
|
558
|
+
setServerSideSelectionState: 0,
|
|
559
|
+
applyServerSideTransaction: 0,
|
|
560
|
+
applyServerSideTransactionAsync: 0,
|
|
561
|
+
applyServerSideRowData: 0,
|
|
562
|
+
retryServerSideLoads: 0,
|
|
563
|
+
flushServerSideAsyncTransactions: 0,
|
|
564
|
+
refreshServerSide: 0,
|
|
565
|
+
getServerSideGroupLevelState: 0
|
|
566
|
+
}),
|
|
567
|
+
...mod("SideBar", {
|
|
568
|
+
isSideBarVisible: 0,
|
|
569
|
+
setSideBarVisible: 0,
|
|
570
|
+
setSideBarPosition: 0,
|
|
571
|
+
openToolPanel: 0,
|
|
572
|
+
closeToolPanel: 0,
|
|
573
|
+
getOpenedToolPanel: 0,
|
|
574
|
+
refreshToolPanel: 0,
|
|
575
|
+
isToolPanelShowing: 0,
|
|
576
|
+
getToolPanelInstance: 0,
|
|
577
|
+
getSideBar: 0
|
|
578
|
+
}),
|
|
579
|
+
...mod("StatusBar", {
|
|
580
|
+
getStatusPanel: 0
|
|
581
|
+
})
|
|
582
|
+
});
|
|
583
|
+
var GridApiClass = class {
|
|
584
|
+
};
|
|
585
|
+
Reflect.defineProperty(GridApiClass, "name", { value: "GridApi" });
|
|
586
|
+
|
|
587
|
+
// packages/ag-grid-community/src/theming/inject.ts
|
|
588
|
+
var IS_SSR = typeof window !== "object" || !window?.document?.fonts?.forEach;
|
|
589
|
+
var _injectGlobalCSS = (css, styleContainer, debugId, layer, priority, nonce) => {
|
|
590
|
+
if (IS_SSR)
|
|
591
|
+
return;
|
|
592
|
+
if (layer) {
|
|
593
|
+
css = `@layer ${CSS.escape(layer)} { ${css} }`;
|
|
594
|
+
}
|
|
595
|
+
let injections = injectionState.map.get(styleContainer);
|
|
596
|
+
if (!injections) {
|
|
597
|
+
injections = [];
|
|
598
|
+
injectionState.map.set(styleContainer, injections);
|
|
599
|
+
}
|
|
600
|
+
if (injections.find((i) => i.css === css))
|
|
601
|
+
return;
|
|
602
|
+
const el = document.createElement("style");
|
|
603
|
+
if (nonce) {
|
|
604
|
+
el.setAttribute("nonce", nonce);
|
|
605
|
+
}
|
|
606
|
+
el.dataset.agGlobalCss = debugId;
|
|
607
|
+
el.textContent = css;
|
|
608
|
+
const newInjection = { css, el, priority };
|
|
609
|
+
let insertAfter;
|
|
610
|
+
for (const injection of injections) {
|
|
611
|
+
if (injection.priority > priority)
|
|
612
|
+
break;
|
|
613
|
+
insertAfter = injection;
|
|
614
|
+
}
|
|
615
|
+
if (insertAfter) {
|
|
616
|
+
insertAfter.el.insertAdjacentElement("afterend", el);
|
|
617
|
+
const index = injections.indexOf(insertAfter);
|
|
618
|
+
injections.splice(index + 1, 0, newInjection);
|
|
619
|
+
} else {
|
|
620
|
+
styleContainer.insertBefore(el, styleContainer.querySelector(":not(title, meta)"));
|
|
621
|
+
injections.push(newInjection);
|
|
622
|
+
}
|
|
623
|
+
};
|
|
624
|
+
var _a;
|
|
625
|
+
var injectionState = (_a = typeof window === "object" ? window : {}).agStyleInjectionState ?? (_a.agStyleInjectionState = {
|
|
626
|
+
map: /* @__PURE__ */ new WeakMap(),
|
|
627
|
+
grids: /* @__PURE__ */ new Set()
|
|
628
|
+
});
|
|
629
|
+
|
|
630
|
+
// packages/ag-grid-community/src/theming/Part.ts
|
|
631
|
+
var createPart = (args) => {
|
|
632
|
+
return new PartImpl(args);
|
|
633
|
+
};
|
|
634
|
+
var defaultModeName = "$default";
|
|
635
|
+
var partCounter = 0;
|
|
636
|
+
var PartImpl = class {
|
|
637
|
+
constructor({ feature, params, modeParams = {}, css, cssImports }) {
|
|
638
|
+
this.feature = feature;
|
|
639
|
+
this.css = css;
|
|
640
|
+
this.cssImports = cssImports;
|
|
641
|
+
this.modeParams = {
|
|
642
|
+
// NOTE: it's important that default is defined first, putting it
|
|
643
|
+
// first in iteration order, because when merging params the default
|
|
644
|
+
// params override any prior modal params, so modal params in this
|
|
645
|
+
// part need to come after default params to prevent them from being
|
|
646
|
+
// immediately overridden.
|
|
647
|
+
[defaultModeName]: {
|
|
648
|
+
...modeParams[defaultModeName] ?? {},
|
|
649
|
+
...params ?? {}
|
|
650
|
+
},
|
|
651
|
+
...modeParams
|
|
652
|
+
};
|
|
653
|
+
}
|
|
654
|
+
use(styleContainer, layer, nonce) {
|
|
655
|
+
let inject = this._inject;
|
|
656
|
+
if (inject == null) {
|
|
657
|
+
let { css } = this;
|
|
658
|
+
if (css) {
|
|
659
|
+
const className = `ag-theme-${this.feature ?? "part"}-${++partCounter}`;
|
|
660
|
+
if (typeof css === "function")
|
|
661
|
+
css = css();
|
|
662
|
+
css = `:where(.${className}) {
|
|
663
|
+
${css}
|
|
664
|
+
}
|
|
665
|
+
`;
|
|
666
|
+
for (const cssImport of this.cssImports ?? []) {
|
|
667
|
+
css = `@import url(${JSON.stringify(cssImport)});
|
|
668
|
+
${css}`;
|
|
669
|
+
}
|
|
670
|
+
inject = { css, class: className };
|
|
671
|
+
} else {
|
|
672
|
+
inject = false;
|
|
673
|
+
}
|
|
674
|
+
this._inject = inject;
|
|
675
|
+
}
|
|
676
|
+
if (inject && styleContainer) {
|
|
677
|
+
_injectGlobalCSS(inject.css, styleContainer, inject.class, layer, 1, nonce);
|
|
678
|
+
}
|
|
679
|
+
return inject ? inject.class : false;
|
|
680
|
+
}
|
|
681
|
+
};
|
|
682
|
+
|
|
683
|
+
// packages/ag-grid-community/src/theming/theme-utils.ts
|
|
684
|
+
var kebabCase = (str) => str.replace(/[A-Z]/g, (m) => `-${m}`).toLowerCase();
|
|
685
|
+
var paramToVariableName = (paramName) => `--ag-${kebabCase(paramName)}`;
|
|
686
|
+
var paramToVariableExpression = (paramName) => `var(${paramToVariableName(paramName)})`;
|
|
687
|
+
var imageValueToCss = (value) => {
|
|
688
|
+
if (typeof value === "string")
|
|
689
|
+
return value;
|
|
690
|
+
if (value && "url" in value)
|
|
691
|
+
return `url(${JSON.stringify(value.url)})`;
|
|
692
|
+
if (value && "svg" in value)
|
|
693
|
+
return imageValueToCss({ url: `data:image/svg+xml,${encodeURIComponent(value.svg)}` });
|
|
694
|
+
if (value && "ref" in value)
|
|
695
|
+
return paramToVariableExpression(value.ref);
|
|
696
|
+
return false;
|
|
697
|
+
};
|
|
698
|
+
|
|
699
|
+
// packages/ag-grid-community/src/theming/parts/icon-set/overrides/icon-overrides.ts
|
|
700
|
+
var iconOverrides = (args) => {
|
|
701
|
+
const cssParts = [];
|
|
702
|
+
{
|
|
703
|
+
const { icons} = args;
|
|
704
|
+
for (const key of Object.keys(icons)) {
|
|
705
|
+
const imageCssValue = imageValueToCss(icons[key]);
|
|
706
|
+
{
|
|
707
|
+
cssParts.push(`.ag-icon-${key}::before { mask-image: ${imageCssValue}; }`);
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
return createPart({
|
|
712
|
+
css: cssParts.join(";\n"),
|
|
713
|
+
cssImports: args.cssImports
|
|
714
|
+
});
|
|
715
|
+
};
|
|
716
|
+
|
|
717
|
+
/* Siemens iX Icons */
|
|
718
|
+
/* autogenerated do not edit */
|
|
719
|
+
|
|
720
|
+
const iconAppMenu = "data:image/svg+xml;utf8,<svg width='512' height='512' viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' clip-rule='evenodd' d='M42.666 106.667h426.667v42.666H42.666v-42.666Zm0 128H320v42.666H42.666v-42.666Zm426.667 128H42.666v42.666h426.667v-42.666Z'/></svg>";
|
|
721
|
+
const iconDragGripper = "data:image/svg+xml;utf8,<svg width='512' height='512' viewBox='0 0 512 512' fill='none' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' clip-rule='evenodd' d='M181.333 149.333C199.006 149.333 213.333 135.006 213.333 117.333C213.333 99.6602 199.006 85.3333 181.333 85.3333C163.66 85.3333 149.333 99.6602 149.333 117.333C149.333 135.006 163.66 149.333 181.333 149.333ZM330.667 149.333C348.34 149.333 362.667 135.006 362.667 117.333C362.667 99.6602 348.34 85.3333 330.667 85.3333C312.993 85.3333 298.667 99.6602 298.667 117.333C298.667 135.006 312.993 149.333 330.667 149.333ZM213.333 245.333C213.333 263.006 199.006 277.333 181.333 277.333C163.66 277.333 149.333 263.006 149.333 245.333C149.333 227.66 163.66 213.333 181.333 213.333C199.006 213.333 213.333 227.66 213.333 245.333ZM330.667 277.333C348.34 277.333 362.667 263.006 362.667 245.333C362.667 227.66 348.34 213.333 330.667 213.333C312.993 213.333 298.667 227.66 298.667 245.333C298.667 263.006 312.993 277.333 330.667 277.333ZM213.333 373.333C213.333 391.006 199.006 405.333 181.333 405.333C163.66 405.333 149.333 391.006 149.333 373.333C149.333 355.66 163.66 341.333 181.333 341.333C199.006 341.333 213.333 355.66 213.333 373.333ZM330.667 405.333C348.34 405.333 362.667 391.006 362.667 373.333C362.667 355.66 348.34 341.333 330.667 341.333C312.993 341.333 298.667 355.66 298.667 373.333C298.667 391.006 312.993 405.333 330.667 405.333Z'/></svg>";
|
|
722
|
+
const iconFilter = "data:image/svg+xml;utf8,<?xml version='1.0' encoding='UTF-8'?><svg width='512px' height='512px' viewBox='0 0 512 512' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'><g id='Page-1' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'><g id='Shape' transform='translate(42.666667, 85.333333)'><path d='M3.55271368e-14,1.42108547e-14 L191.565013,234.666667 L192,234.666667 L192,384 L234.666667,384 L234.666667,234.666667 L426.666667,1.42108547e-14 L3.55271368e-14,1.42108547e-14 Z M214.448,192 L211.81248,192 L89.9076267,42.6666667 L336.630187,42.6666667 L214.448,192 Z'/></g></g></svg>";
|
|
723
|
+
const iconSortAscending = "data:image/svg+xml;utf8,<?xml version='1.0' encoding='UTF-8'?><svg width='512px' height='512px' viewBox='0 0 512 512' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'><g id='Page-1' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'><g id='add' transform='translate(64.000000, 106.666667)'><path d='M399.082027,100.52224 L368.915413,130.688853 L320,81.77344 L320,320 L277.333333,320 L277.333333,81.77088 L228.41536,130.688853 L198.248747,100.52224 L298.666667,-2.84217094e-14 L399.082027,100.52224 Z M106.666667,64 L-1.42108547e-14,64 L-1.42108547e-14,106.666667 L106.666667,106.666667 L106.666667,64 Z M149.333333,170.666667 L-1.42108547e-14,170.666667 L-1.42108547e-14,213.333333 L149.333333,213.333333 L149.333333,170.666667 Z M-1.42108547e-14,320 L192,320 L192,277.333333 L-1.42108547e-14,277.333333 L-1.42108547e-14,320 Z' id='Shape'/></g></g></svg>";
|
|
724
|
+
const iconSortDescending = "data:image/svg+xml;utf8,<?xml version='1.0' encoding='UTF-8'?><svg width='512px' height='512px' viewBox='0 0 512 512' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'><g id='Page-1' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'><g id='add' transform='translate(64.000000, 106.666667)'><path d='M-4.26325641e-14,213.333333 L106.666667,213.333333 L106.666667,256 L-4.26325641e-14,256 L-4.26325641e-14,213.333333 Z M-4.26325641e-14,149.333333 L149.333333,149.333333 L149.333333,106.666667 L-4.26325641e-14,106.666667 L-4.26325641e-14,149.333333 Z M-4.26325641e-14,42.6666667 L192,42.6666667 L192,-2.84217094e-14 L-4.26325641e-14,-2.84217094e-14 L-4.26325641e-14,42.6666667 Z M368.916693,189.31904 L320,238.235733 L320,-2.84217094e-14 L277.333333,-2.84217094e-14 L277.333333,238.235733 L228.41664,189.31904 L198.250027,219.485653 L298.666667,320 L399.083307,219.485653 L368.916693,189.31904 Z' id='Shape'/></g></g></svg>";
|
|
725
|
+
|
|
726
|
+
function extractSvgFromDataUri(dataUri) {
|
|
727
|
+
let svgString = dataUri.replace(/^data:image\/svg\+xml;utf8,/, '');
|
|
728
|
+
svgString = decodeURIComponent(svgString);
|
|
729
|
+
svgString = svgString.replace(/<\?xml[^?]*\?>/g, '');
|
|
730
|
+
svgString = svgString.replace(/fill='none'/g, "fill='currentColor'");
|
|
731
|
+
svgString = svgString.replace(/stroke='none'/g, "stroke='currentColor'");
|
|
732
|
+
return svgString.trim();
|
|
733
|
+
}
|
|
734
|
+
function createIxTheme(agModule) {
|
|
735
|
+
const { createPart, themeAlpine } = agModule;
|
|
736
|
+
const base = themeAlpine.withParams({
|
|
737
|
+
...aggridIxThemeParams,
|
|
738
|
+
});
|
|
739
|
+
const iconCSS = iconOverrides({
|
|
740
|
+
icons: {
|
|
741
|
+
filter: {
|
|
742
|
+
svg: extractSvgFromDataUri(iconFilter),
|
|
743
|
+
},
|
|
744
|
+
asc: {
|
|
745
|
+
svg: extractSvgFromDataUri(iconSortAscending),
|
|
746
|
+
},
|
|
747
|
+
desc: {
|
|
748
|
+
svg: extractSvgFromDataUri(iconSortDescending),
|
|
749
|
+
},
|
|
750
|
+
menu: {
|
|
751
|
+
svg: extractSvgFromDataUri(iconAppMenu),
|
|
752
|
+
},
|
|
753
|
+
grip: {
|
|
754
|
+
svg: extractSvgFromDataUri(iconDragGripper),
|
|
755
|
+
},
|
|
756
|
+
},
|
|
757
|
+
});
|
|
758
|
+
const theme = base
|
|
759
|
+
.withPart(createPart({
|
|
760
|
+
feature: 'checkboxStyle',
|
|
761
|
+
params: {},
|
|
762
|
+
css: checkboxStyles,
|
|
763
|
+
}))
|
|
764
|
+
.withPart(createPart({
|
|
765
|
+
feature: 'radioStyle',
|
|
766
|
+
params: {},
|
|
767
|
+
css: radioStyles,
|
|
768
|
+
}))
|
|
769
|
+
.withPart(createPart({
|
|
770
|
+
feature: 'headerCustomStyles',
|
|
771
|
+
params: {},
|
|
772
|
+
css: headerStyles,
|
|
773
|
+
}))
|
|
774
|
+
.withPart(createPart({
|
|
775
|
+
feature: 'tooltipCustomStyles',
|
|
776
|
+
params: {},
|
|
777
|
+
css: tooltipStyles,
|
|
778
|
+
}))
|
|
779
|
+
.withPart(createPart({
|
|
780
|
+
feature: 'inputCustomStyles',
|
|
781
|
+
params: {},
|
|
782
|
+
css: inputStyles,
|
|
783
|
+
}))
|
|
784
|
+
.withPart(createPart({
|
|
785
|
+
feature: 'iconOverrides',
|
|
786
|
+
params: {},
|
|
787
|
+
css: iconCSS.css,
|
|
788
|
+
}));
|
|
789
|
+
return theme;
|
|
790
|
+
}
|
|
791
|
+
const getIxTheme = (agModule) => {
|
|
792
|
+
return createIxTheme(agModule);
|
|
793
|
+
};
|
|
794
|
+
const getIxThemeAsync = async (importModule) => {
|
|
795
|
+
const agLib = await importModule();
|
|
796
|
+
return createIxTheme(agLib);
|
|
797
|
+
};
|
|
798
|
+
|
|
799
|
+
export { getIxTheme, getIxThemeAsync };
|
|
800
|
+
//# sourceMappingURL=index.js.map
|