@@ -12,71 +12,124 @@ import { IgxTreeGridComponent } from 'igniteui-angular/grids/tree-grid';
1212import { IgxHierarchicalGridComponent , IgxRowIslandComponent } from 'igniteui-angular/grids/hierarchical-grid' ;
1313import { IgxPivotDataSelectorComponent , IgxPivotGridComponent } from 'igniteui-angular/grids/pivot-grid' ;
1414import { GridType , IgxColumnComponent , IgxColumnGroupComponent , IgxColumnLayoutComponent , IgxGridEditingActionsComponent , IgxGridPinningActionsComponent , IgxGridToolbarActionsComponent , IgxGridToolbarAdvancedFilteringComponent , IgxGridToolbarComponent , IgxGridToolbarExporterComponent , IgxGridToolbarHidingComponent , IgxGridToolbarPinningComponent , IgxGridToolbarTitleComponent } from 'igniteui-angular/grids/core' ;
15+ import { IgxQueryBuilderComponent , IgxQueryBuilderHeaderComponent } from 'igniteui-angular/query-builder' ;
1516
1617// force-create icon service, TODO: move to initializer or register/define mechanic to avoid side-effect?
1718const _iconBroadcast : IgxIconBroadcastService = injector . get ( IgxIconBroadcastService ) ;
1819
1920const grid = createIgxCustomElement ( IgxGridComponent , { injector, registerConfig } ) ;
20- const IgcGridComponent = withRegister ( grid , ( ) => { registerComponent ( IgcGridComponent ) } ) ;
21+ const IgcGridComponent = withRegister ( grid , ( ) => {
22+ registerComponent ( IgcGridComponent )
23+ } ) ;
2124
2225const treeGrid = createIgxCustomElement ( IgxTreeGridComponent , { injector, registerConfig } ) ;
23- const IgcTreeGridComponent = withRegister ( treeGrid , ( ) => { registerComponent ( IgcTreeGridComponent ) } ) ;
26+ const IgcTreeGridComponent = withRegister ( treeGrid , ( ) => {
27+ registerComponent ( IgcTreeGridComponent )
28+ } ) ;
2429
2530const hGrid = createIgxCustomElement ( IgxHierarchicalGridComponent , { injector, registerConfig } ) ;
26- const IgcHierarchicalGridComponent = withRegister ( hGrid , ( ) => { registerComponent ( IgcHierarchicalGridComponent ) } ) ;
31+ const IgcHierarchicalGridComponent = withRegister ( hGrid , ( ) => {
32+ registerComponent ( IgcHierarchicalGridComponent )
33+ } ) ;
2734
2835const pivot = createIgxCustomElement ( IgxPivotGridComponent , { injector, registerConfig } ) ;
29- const IgcPivotGridComponent = withRegister ( pivot , ( ) => { registerComponent ( IgcPivotGridComponent ) } ) ;
36+ const IgcPivotGridComponent = withRegister ( pivot , ( ) => {
37+ registerComponent ( IgcPivotGridComponent )
38+ } ) ;
3039
3140const pivotDataSelector = createIgxCustomElement ( IgxPivotDataSelectorComponent , { injector, registerConfig } ) ;
32- const IgcPivotDataSelectorComponent = withRegister ( pivotDataSelector , ( ) => { registerComponent ( IgcPivotDataSelectorComponent ) } ) ;
41+ const IgcPivotDataSelectorComponent = withRegister ( pivotDataSelector , ( ) => {
42+ registerComponent ( IgcPivotDataSelectorComponent )
43+ } ) ;
3344
3445const rowIsland = createIgxCustomElement ( IgxRowIslandComponent , { injector, registerConfig } ) ;
35- const IgcRowIslandComponent = withRegister ( rowIsland , ( ) => { registerComponent ( IgcRowIslandComponent ) } ) ;
46+ const IgcRowIslandComponent = withRegister ( rowIsland , ( ) => {
47+ registerComponent ( IgcRowIslandComponent )
48+ } ) ;
3649
3750const columnGroup = createIgxCustomElement ( IgxColumnGroupComponent , { injector, registerConfig } ) ;
38- const IgcColumnGroupComponent = withRegister ( columnGroup , ( ) => { registerComponent ( IgcColumnGroupComponent ) } ) ;
51+ const IgcColumnGroupComponent = withRegister ( columnGroup , ( ) => {
52+ registerComponent ( IgcColumnGroupComponent )
53+ } ) ;
3954
4055const columnLayout = createIgxCustomElement ( IgxColumnLayoutComponent , { injector, registerConfig } ) ;
41- const IgcColumnLayoutComponent = withRegister ( columnLayout , ( ) => { registerComponent ( IgcColumnLayoutComponent ) } ) ;
56+ const IgcColumnLayoutComponent = withRegister ( columnLayout , ( ) => {
57+ registerComponent ( IgcColumnLayoutComponent )
58+ } ) ;
4259
4360const column = createIgxCustomElement ( IgxColumnComponent , { injector, registerConfig } ) ;
44- const IgcColumnComponent = withRegister ( column , ( ) => { registerComponent ( IgcColumnComponent ) } ) ;
61+ const IgcColumnComponent = withRegister ( column , ( ) => {
62+ registerComponent ( IgcColumnComponent )
63+ } ) ;
4564
4665const paginator = createIgxCustomElement ( IgxPaginatorComponent , { injector, registerConfig } ) ;
47- const IgcPaginatorComponent = withRegister ( paginator , ( ) => { registerComponent ( IgcPaginatorComponent ) } ) ;
66+ const IgcPaginatorComponent = withRegister ( paginator , ( ) => {
67+ registerComponent ( IgcPaginatorComponent )
68+ } ) ;
4869
4970const toolbar = createIgxCustomElement ( IgxGridToolbarComponent , { injector, registerConfig } ) ;
50- const IgcGridToolbarComponent = withRegister ( toolbar , ( ) => { registerComponent ( IgcGridToolbarComponent ) } ) ;
71+ const IgcGridToolbarComponent = withRegister ( toolbar , ( ) => {
72+ registerComponent ( IgcGridToolbarComponent )
73+ } ) ;
5174
5275const actionStrip = createIgxCustomElement ( IgxActionStripComponent , { injector, registerConfig } ) ;
53- const IgcActionStripComponent = withRegister ( actionStrip , ( ) => { registerComponent ( IgcActionStripComponent ) } ) ;
76+ const IgcActionStripComponent = withRegister ( actionStrip , ( ) => {
77+ registerComponent ( IgcActionStripComponent )
78+ } ) ;
5479
5580const statePersistance = createIgxCustomElement ( IgxGridStateComponent , { injector, registerConfig } ) ;
56- const IgcGridStateComponent = withRegister ( statePersistance , ( ) => { registerComponent ( IgcGridStateComponent ) } ) ;
81+ const IgcGridStateComponent = withRegister ( statePersistance , ( ) => {
82+ registerComponent ( IgcGridStateComponent )
83+ } ) ;
5784
5885const editingActions = createIgxCustomElement ( IgxGridEditingActionsComponent , { injector, registerConfig } ) ;
59- const IgcGridEditingActionsComponent = withRegister ( editingActions , ( ) => { registerComponent ( IgcGridEditingActionsComponent ) } ) ;
86+ const IgcGridEditingActionsComponent = withRegister ( editingActions , ( ) => {
87+ registerComponent ( IgcGridEditingActionsComponent )
88+ } ) ;
6089const pinningActions = createIgxCustomElement ( IgxGridPinningActionsComponent , { injector, registerConfig } ) ;
61- const IgcGridPinningActionsComponent = withRegister ( pinningActions , ( ) => { registerComponent ( IgcGridPinningActionsComponent ) } ) ;
90+ const IgcGridPinningActionsComponent = withRegister ( pinningActions , ( ) => {
91+ registerComponent ( IgcGridPinningActionsComponent )
92+ } ) ;
6293
6394const toolbarTitle = createIgxCustomElement ( IgxGridToolbarTitleComponent , { injector, registerConfig } ) ;
64- const IgcGridToolbarTitleComponent = withRegister ( toolbarTitle , ( ) => { registerComponent ( IgcGridToolbarTitleComponent ) } ) ;
95+ const IgcGridToolbarTitleComponent = withRegister ( toolbarTitle , ( ) => {
96+ registerComponent ( IgcGridToolbarTitleComponent )
97+ } ) ;
6598
6699const toolbarActions = createIgxCustomElement ( IgxGridToolbarActionsComponent , { injector, registerConfig } ) ;
67- const IgcGridToolbarActionsComponent = withRegister ( toolbarActions , ( ) => { registerComponent ( IgcGridToolbarActionsComponent ) } ) ;
100+ const IgcGridToolbarActionsComponent = withRegister ( toolbarActions , ( ) => {
101+ registerComponent ( IgcGridToolbarActionsComponent )
102+ } ) ;
68103
69104const toolbarHiding = createIgxCustomElement ( IgxGridToolbarHidingComponent , { injector, registerConfig } ) ;
70- const IgcGridToolbarHidingComponent = withRegister ( toolbarHiding , ( ) => { registerComponent ( IgcGridToolbarHidingComponent ) } ) ;
105+ const IgcGridToolbarHidingComponent = withRegister ( toolbarHiding , ( ) => {
106+ registerComponent ( IgcGridToolbarHidingComponent )
107+ } ) ;
71108
72109const toolbarPinning = createIgxCustomElement ( IgxGridToolbarPinningComponent , { injector, registerConfig } ) ;
73- const IgcGridToolbarPinningComponent = withRegister ( toolbarPinning , ( ) => { registerComponent ( IgcGridToolbarPinningComponent ) } ) ;
110+ const IgcGridToolbarPinningComponent = withRegister ( toolbarPinning , ( ) => {
111+ registerComponent ( IgcGridToolbarPinningComponent )
112+ } ) ;
74113
75114const toolbarExport = createIgxCustomElement ( IgxGridToolbarExporterComponent , { injector, registerConfig } ) ;
76- const IgcGridToolbarExporterComponent = withRegister ( toolbarExport , ( ) => { registerComponent ( IgcGridToolbarExporterComponent ) } ) ;
115+ const IgcGridToolbarExporterComponent = withRegister ( toolbarExport , ( ) => {
116+ registerComponent ( IgcGridToolbarExporterComponent )
117+ } ) ;
77118
78119const toolbarFilter = createIgxCustomElement ( IgxGridToolbarAdvancedFilteringComponent , { injector, registerConfig } ) ;
79- const IgcGridToolbarAdvancedFilteringComponent = withRegister ( toolbarFilter , ( ) => { registerComponent ( IgcGridToolbarAdvancedFilteringComponent ) } ) ;
120+ const IgcGridToolbarAdvancedFilteringComponent = withRegister ( toolbarFilter , ( ) => {
121+ registerComponent ( IgcGridToolbarAdvancedFilteringComponent )
122+ } ) ;
123+
124+ const queryBuilder = createIgxCustomElement ( IgxQueryBuilderComponent , { injector, registerConfig } ) ;
125+ const IgcQueryBuilderComponent = withRegister ( queryBuilder , ( ) => {
126+ registerComponent ( IgcQueryBuilderComponent )
127+ } ) ;
128+
129+ const queryBuilderHeader = createIgxCustomElement ( IgxQueryBuilderHeaderComponent , { injector, registerConfig } ) ;
130+ const IgcQueryBuilderHeaderComponent = withRegister ( queryBuilderHeader , ( ) => {
131+ registerComponent ( IgcQueryBuilderHeaderComponent )
132+ } ) ;
80133
81134export {
82135 IgcGridComponent ,
@@ -100,6 +153,8 @@ export {
100153 IgcGridToolbarPinningComponent ,
101154 IgcGridToolbarExporterComponent ,
102155 IgcGridToolbarAdvancedFilteringComponent ,
156+ IgcQueryBuilderComponent ,
157+ IgcQueryBuilderHeaderComponent
103158}
104159
105160// TODO: Custom elements JSON as well
@@ -111,5 +166,6 @@ declare global {
111166 'igc-tree-grid' : NgElement & WithProperties < IgxTreeGridElement > ;
112167 'igc-paginator' : NgElement & WithProperties < IgxPaginatorComponent > ;
113168 'igc-grid-state' : NgElement & WithProperties < IgxGridStateComponent > ;
169+ 'igc-query-builder' : NgElement & WithProperties < IgxQueryBuilderComponent > ;
114170 }
115171}
0 commit comments