@everymatrix/stage-mm-verification-report 1.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/chunk-A3NTIEMP.js +1 -0
- package/chunk-CAY35YP7.js +7 -0
- package/chunk-H3QHLLCN.js +1 -0
- package/chunk-KE4BCZO4.js +851 -0
- package/chunk-OHPEWN32.js +1198 -0
- package/chunk-WSQOM5HU.js +1 -0
- package/component-lib.js +1 -0
- package/index.html +12 -0
- package/main.js +3264 -0
- package/modules/angular/LICENSE.md +21 -0
- package/modules/angular/README.md +67 -0
- package/modules/angular/angular-csp.css +25 -0
- package/modules/angular/angular.js +36600 -0
- package/modules/angular/angular.min.js +352 -0
- package/modules/angular/angular.min.js.gzip +0 -0
- package/modules/angular/angular.min.js.map +8 -0
- package/modules/angular/bower.json +9 -0
- package/modules/angular/index.js +2 -0
- package/modules/angular/package.json +25 -0
- package/modules/angular-ui-grid/CHANGELOG.md +1973 -0
- package/modules/angular-ui-grid/README.md +59 -0
- package/modules/angular-ui-grid/css/ui-grid.cellnav.css +25 -0
- package/modules/angular-ui-grid/css/ui-grid.cellnav.min.css +1 -0
- package/modules/angular-ui-grid/css/ui-grid.core.css +866 -0
- package/modules/angular-ui-grid/css/ui-grid.core.min.css +5 -0
- package/modules/angular-ui-grid/css/ui-grid.edit.css +23 -0
- package/modules/angular-ui-grid/css/ui-grid.edit.min.css +1 -0
- package/modules/angular-ui-grid/css/ui-grid.empty-base-layer.css +6 -0
- package/modules/angular-ui-grid/css/ui-grid.empty-base-layer.min.css +1 -0
- package/modules/angular-ui-grid/css/ui-grid.expandable.css +16 -0
- package/modules/angular-ui-grid/css/ui-grid.expandable.min.css +1 -0
- package/modules/angular-ui-grid/css/ui-grid.exporter.css +0 -0
- package/modules/angular-ui-grid/css/ui-grid.exporter.min.css +0 -0
- package/modules/angular-ui-grid/css/ui-grid.grouping.css +3 -0
- package/modules/angular-ui-grid/css/ui-grid.grouping.min.css +1 -0
- package/modules/angular-ui-grid/css/ui-grid.importer.css +0 -0
- package/modules/angular-ui-grid/css/ui-grid.importer.min.css +0 -0
- package/modules/angular-ui-grid/css/ui-grid.move-columns.css +9 -0
- package/modules/angular-ui-grid/css/ui-grid.move-columns.min.css +1 -0
- package/modules/angular-ui-grid/css/ui-grid.pagination.css +299 -0
- package/modules/angular-ui-grid/css/ui-grid.pagination.min.css +1 -0
- package/modules/angular-ui-grid/css/ui-grid.pinning.css +67 -0
- package/modules/angular-ui-grid/css/ui-grid.pinning.min.css +1 -0
- package/modules/angular-ui-grid/css/ui-grid.resize-columns.css +38 -0
- package/modules/angular-ui-grid/css/ui-grid.resize-columns.min.css +1 -0
- package/modules/angular-ui-grid/css/ui-grid.row-edit.css +9 -0
- package/modules/angular-ui-grid/css/ui-grid.row-edit.min.css +1 -0
- package/modules/angular-ui-grid/css/ui-grid.selection.css +25 -0
- package/modules/angular-ui-grid/css/ui-grid.selection.min.css +1 -0
- package/modules/angular-ui-grid/css/ui-grid.tree-base.css +4 -0
- package/modules/angular-ui-grid/css/ui-grid.tree-base.min.css +1 -0
- package/modules/angular-ui-grid/css/ui-grid.tree-view.css +6 -0
- package/modules/angular-ui-grid/css/ui-grid.tree-view.min.css +1 -0
- package/modules/angular-ui-grid/css/ui-grid.validate.css +3 -0
- package/modules/angular-ui-grid/css/ui-grid.validate.min.css +1 -0
- package/modules/angular-ui-grid/fonts/ui-grid.eot +0 -0
- package/modules/angular-ui-grid/fonts/ui-grid.svg +56 -0
- package/modules/angular-ui-grid/fonts/ui-grid.ttf +0 -0
- package/modules/angular-ui-grid/fonts/ui-grid.woff +0 -0
- package/modules/angular-ui-grid/less/animation.less +85 -0
- package/modules/angular-ui-grid/less/body.less +84 -0
- package/modules/angular-ui-grid/less/cell.less +46 -0
- package/modules/angular-ui-grid/less/cellnav.less +29 -0
- package/modules/angular-ui-grid/less/core.less +11 -0
- package/modules/angular-ui-grid/less/edit.less +27 -0
- package/modules/angular-ui-grid/less/elements.less +156 -0
- package/modules/angular-ui-grid/less/emptyBaseLayer.less +8 -0
- package/modules/angular-ui-grid/less/expandable.less +29 -0
- package/modules/angular-ui-grid/less/exporter.less +4 -0
- package/modules/angular-ui-grid/less/footer.less +76 -0
- package/modules/angular-ui-grid/less/grid.less +86 -0
- package/modules/angular-ui-grid/less/grouping.less +5 -0
- package/modules/angular-ui-grid/less/header.less +250 -0
- package/modules/angular-ui-grid/less/icons.less +151 -0
- package/modules/angular-ui-grid/less/importer.less +4 -0
- package/modules/angular-ui-grid/less/main.less +2 -0
- package/modules/angular-ui-grid/less/menu.less +91 -0
- package/modules/angular-ui-grid/less/moveColumns.less +12 -0
- package/modules/angular-ui-grid/less/pagination.less +297 -0
- package/modules/angular-ui-grid/less/pinning.less +86 -0
- package/modules/angular-ui-grid/less/resizeColumns.less +53 -0
- package/modules/angular-ui-grid/less/rowEdit.less +19 -0
- package/modules/angular-ui-grid/less/rtl.less +67 -0
- package/modules/angular-ui-grid/less/selection.less +29 -0
- package/modules/angular-ui-grid/less/sorting.less +16 -0
- package/modules/angular-ui-grid/less/treeBase.less +6 -0
- package/modules/angular-ui-grid/less/treeView.less +8 -0
- package/modules/angular-ui-grid/less/validate.less +5 -0
- package/modules/angular-ui-grid/less/variables.less +90 -0
- package/modules/angular-ui-grid/package.json +144 -0
- package/modules/angular-ui-grid/ui-grid.auto-resize.js +69 -0
- package/modules/angular-ui-grid/ui-grid.auto-resize.min.js +6 -0
- package/modules/angular-ui-grid/ui-grid.cellnav.js +1181 -0
- package/modules/angular-ui-grid/ui-grid.cellnav.min.js +6 -0
- package/modules/angular-ui-grid/ui-grid.core.js +12737 -0
- package/modules/angular-ui-grid/ui-grid.core.min.js +6 -0
- package/modules/angular-ui-grid/ui-grid.css +3208 -0
- package/modules/angular-ui-grid/ui-grid.edit.js +1325 -0
- package/modules/angular-ui-grid/ui-grid.edit.min.js +6 -0
- package/modules/angular-ui-grid/ui-grid.empty-base-layer.js +178 -0
- package/modules/angular-ui-grid/ui-grid.empty-base-layer.min.js +6 -0
- package/modules/angular-ui-grid/ui-grid.expandable.js +651 -0
- package/modules/angular-ui-grid/ui-grid.expandable.min.js +6 -0
- package/modules/angular-ui-grid/ui-grid.exporter.js +1777 -0
- package/modules/angular-ui-grid/ui-grid.exporter.min.js +6 -0
- package/modules/angular-ui-grid/ui-grid.grouping.js +1291 -0
- package/modules/angular-ui-grid/ui-grid.grouping.min.js +6 -0
- package/modules/angular-ui-grid/ui-grid.importer.js +791 -0
- package/modules/angular-ui-grid/ui-grid.importer.min.js +6 -0
- package/modules/angular-ui-grid/ui-grid.infinite-scroll.js +552 -0
- package/modules/angular-ui-grid/ui-grid.infinite-scroll.min.js +6 -0
- package/modules/angular-ui-grid/ui-grid.js +30867 -0
- package/modules/angular-ui-grid/ui-grid.language.all.js +3214 -0
- package/modules/angular-ui-grid/ui-grid.language.all.min.js +6 -0
- package/modules/angular-ui-grid/ui-grid.language.ar.js +118 -0
- package/modules/angular-ui-grid/ui-grid.language.ar.min.js +6 -0
- package/modules/angular-ui-grid/ui-grid.language.bg.js +115 -0
- package/modules/angular-ui-grid/ui-grid.language.bg.min.js +6 -0
- package/modules/angular-ui-grid/ui-grid.language.cs.js +96 -0
- package/modules/angular-ui-grid/ui-grid.language.cs.min.js +6 -0
- package/modules/angular-ui-grid/ui-grid.language.da.js +90 -0
- package/modules/angular-ui-grid/ui-grid.language.da.min.js +6 -0
- package/modules/angular-ui-grid/ui-grid.language.de.js +133 -0
- package/modules/angular-ui-grid/ui-grid.language.de.min.js +6 -0
- package/modules/angular-ui-grid/ui-grid.language.es-ct.js +133 -0
- package/modules/angular-ui-grid/ui-grid.language.es-ct.min.js +6 -0
- package/modules/angular-ui-grid/ui-grid.language.es.js +106 -0
- package/modules/angular-ui-grid/ui-grid.language.es.min.js +6 -0
- package/modules/angular-ui-grid/ui-grid.language.fa.js +93 -0
- package/modules/angular-ui-grid/ui-grid.language.fa.min.js +6 -0
- package/modules/angular-ui-grid/ui-grid.language.fi.js +76 -0
- package/modules/angular-ui-grid/ui-grid.language.fi.min.js +6 -0
- package/modules/angular-ui-grid/ui-grid.language.fr.js +128 -0
- package/modules/angular-ui-grid/ui-grid.language.fr.min.js +6 -0
- package/modules/angular-ui-grid/ui-grid.language.he.js +71 -0
- package/modules/angular-ui-grid/ui-grid.language.he.min.js +6 -0
- package/modules/angular-ui-grid/ui-grid.language.hy.js +76 -0
- package/modules/angular-ui-grid/ui-grid.language.hy.min.js +6 -0
- package/modules/angular-ui-grid/ui-grid.language.is.js +118 -0
- package/modules/angular-ui-grid/ui-grid.language.is.min.js +6 -0
- package/modules/angular-ui-grid/ui-grid.language.it.js +112 -0
- package/modules/angular-ui-grid/ui-grid.language.it.min.js +6 -0
- package/modules/angular-ui-grid/ui-grid.language.ja.js +118 -0
- package/modules/angular-ui-grid/ui-grid.language.ja.min.js +6 -0
- package/modules/angular-ui-grid/ui-grid.language.ko.js +77 -0
- package/modules/angular-ui-grid/ui-grid.language.ko.min.js +6 -0
- package/modules/angular-ui-grid/ui-grid.language.nl.js +91 -0
- package/modules/angular-ui-grid/ui-grid.language.nl.min.js +6 -0
- package/modules/angular-ui-grid/ui-grid.language.no.js +115 -0
- package/modules/angular-ui-grid/ui-grid.language.no.min.js +6 -0
- package/modules/angular-ui-grid/ui-grid.language.pl.js +126 -0
- package/modules/angular-ui-grid/ui-grid.language.pl.min.js +6 -0
- package/modules/angular-ui-grid/ui-grid.language.pt-br.js +133 -0
- package/modules/angular-ui-grid/ui-grid.language.pt-br.min.js +6 -0
- package/modules/angular-ui-grid/ui-grid.language.pt.js +133 -0
- package/modules/angular-ui-grid/ui-grid.language.pt.min.js +6 -0
- package/modules/angular-ui-grid/ui-grid.language.ro.js +112 -0
- package/modules/angular-ui-grid/ui-grid.language.ro.min.js +6 -0
- package/modules/angular-ui-grid/ui-grid.language.rs-lat.js +126 -0
- package/modules/angular-ui-grid/ui-grid.language.rs-lat.min.js +6 -0
- package/modules/angular-ui-grid/ui-grid.language.ru.js +115 -0
- package/modules/angular-ui-grid/ui-grid.language.ru.min.js +6 -0
- package/modules/angular-ui-grid/ui-grid.language.sk.js +127 -0
- package/modules/angular-ui-grid/ui-grid.language.sk.min.js +6 -0
- package/modules/angular-ui-grid/ui-grid.language.sv.js +126 -0
- package/modules/angular-ui-grid/ui-grid.language.sv.min.js +6 -0
- package/modules/angular-ui-grid/ui-grid.language.ta.js +87 -0
- package/modules/angular-ui-grid/ui-grid.language.ta.min.js +6 -0
- package/modules/angular-ui-grid/ui-grid.language.tr.js +112 -0
- package/modules/angular-ui-grid/ui-grid.language.tr.min.js +6 -0
- package/modules/angular-ui-grid/ui-grid.language.ua.js +112 -0
- package/modules/angular-ui-grid/ui-grid.language.ua.min.js +6 -0
- package/modules/angular-ui-grid/ui-grid.language.zh-cn.js +112 -0
- package/modules/angular-ui-grid/ui-grid.language.zh-cn.min.js +6 -0
- package/modules/angular-ui-grid/ui-grid.language.zh-tw.js +77 -0
- package/modules/angular-ui-grid/ui-grid.language.zh-tw.min.js +6 -0
- package/modules/angular-ui-grid/ui-grid.min.css +5 -0
- package/modules/angular-ui-grid/ui-grid.min.js +6 -0
- package/modules/angular-ui-grid/ui-grid.move-columns.js +582 -0
- package/modules/angular-ui-grid/ui-grid.move-columns.min.js +6 -0
- package/modules/angular-ui-grid/ui-grid.pagination.js +510 -0
- package/modules/angular-ui-grid/ui-grid.pagination.min.js +6 -0
- package/modules/angular-ui-grid/ui-grid.pinning.js +281 -0
- package/modules/angular-ui-grid/ui-grid.pinning.min.js +6 -0
- package/modules/angular-ui-grid/ui-grid.resize-columns.js +574 -0
- package/modules/angular-ui-grid/ui-grid.resize-columns.min.js +6 -0
- package/modules/angular-ui-grid/ui-grid.row-edit.js +717 -0
- package/modules/angular-ui-grid/ui-grid.row-edit.min.js +6 -0
- package/modules/angular-ui-grid/ui-grid.saveState.js +831 -0
- package/modules/angular-ui-grid/ui-grid.saveState.min.js +6 -0
- package/modules/angular-ui-grid/ui-grid.selection.js +1196 -0
- package/modules/angular-ui-grid/ui-grid.selection.min.js +6 -0
- package/modules/angular-ui-grid/ui-grid.tree-base.js +1743 -0
- package/modules/angular-ui-grid/ui-grid.tree-base.min.js +6 -0
- package/modules/angular-ui-grid/ui-grid.tree-view.js +218 -0
- package/modules/angular-ui-grid/ui-grid.tree-view.min.js +6 -0
- package/modules/angular-ui-grid/ui-grid.validate.js +589 -0
- package/modules/angular-ui-grid/ui-grid.validate.min.js +6 -0
- package/package.json +8 -0
- package/polyfills.js +2 -0
- package/styles.css +1 -0
|
@@ -0,0 +1,651 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* ui-grid - v4.12.7 - 2024-04-12
|
|
3
|
+
* http://ui-grid.info/
|
|
4
|
+
* Copyright (c) 2024 ; License: MIT
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
(function () {
|
|
8
|
+
'use strict';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @ngdoc overview
|
|
12
|
+
* @name ui.grid.expandable
|
|
13
|
+
* @description
|
|
14
|
+
*
|
|
15
|
+
* # ui.grid.expandable
|
|
16
|
+
*
|
|
17
|
+
* <div class="alert alert-warning" role="alert"><strong>Alpha</strong> This feature is in development. There will almost certainly be breaking api changes, or there are major outstanding bugs.</div>
|
|
18
|
+
*
|
|
19
|
+
* This module provides the ability to create subgrids with the ability to expand a row
|
|
20
|
+
* to show the subgrid.
|
|
21
|
+
*
|
|
22
|
+
* <div doc-module-components="ui.grid.expandable"></div>
|
|
23
|
+
*/
|
|
24
|
+
var module = angular.module('ui.grid.expandable', ['ui.grid']);
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @ngdoc service
|
|
28
|
+
* @name ui.grid.expandable.service:uiGridExpandableService
|
|
29
|
+
*
|
|
30
|
+
* @description Services for the expandable grid
|
|
31
|
+
*/
|
|
32
|
+
module.service('uiGridExpandableService', ['gridUtil', function (gridUtil) {
|
|
33
|
+
var service = {
|
|
34
|
+
initializeGrid: function (grid) {
|
|
35
|
+
|
|
36
|
+
grid.expandable = {};
|
|
37
|
+
grid.expandable.expandedAll = false;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* @ngdoc boolean
|
|
41
|
+
* @name enableOnDblClickExpand
|
|
42
|
+
* @propertyOf ui.grid.expandable.api:GridOptions
|
|
43
|
+
* @description Defaults to true.
|
|
44
|
+
* @example
|
|
45
|
+
* <pre>
|
|
46
|
+
* $scope.gridOptions = {
|
|
47
|
+
* onDblClickExpand: false
|
|
48
|
+
* }
|
|
49
|
+
* </pre>
|
|
50
|
+
*/
|
|
51
|
+
grid.options.enableOnDblClickExpand = grid.options.enableOnDblClickExpand !== false;
|
|
52
|
+
/**
|
|
53
|
+
* @ngdoc boolean
|
|
54
|
+
* @name enableExpandable
|
|
55
|
+
* @propertyOf ui.grid.expandable.api:GridOptions
|
|
56
|
+
* @description Whether or not to use expandable feature, allows you to turn off expandable on specific grids
|
|
57
|
+
* within your application, or in specific modes on _this_ grid. Defaults to true.
|
|
58
|
+
* @example
|
|
59
|
+
* <pre>
|
|
60
|
+
* $scope.gridOptions = {
|
|
61
|
+
* enableExpandable: false
|
|
62
|
+
* }
|
|
63
|
+
* </pre>
|
|
64
|
+
*/
|
|
65
|
+
grid.options.enableExpandable = grid.options.enableExpandable !== false;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* @ngdoc object
|
|
69
|
+
* @name showExpandAllButton
|
|
70
|
+
* @propertyOf ui.grid.expandable.api:GridOptions
|
|
71
|
+
* @description Whether or not to display the expand all button, allows you to hide expand all button on specific grids
|
|
72
|
+
* within your application, or in specific modes on _this_ grid. Defaults to true.
|
|
73
|
+
* @example
|
|
74
|
+
* <pre>
|
|
75
|
+
* $scope.gridOptions = {
|
|
76
|
+
* showExpandAllButton: false
|
|
77
|
+
* }
|
|
78
|
+
* </pre>
|
|
79
|
+
*/
|
|
80
|
+
grid.options.showExpandAllButton = grid.options.showExpandAllButton !== false;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* @ngdoc object
|
|
84
|
+
* @name expandableRowHeight
|
|
85
|
+
* @propertyOf ui.grid.expandable.api:GridOptions
|
|
86
|
+
* @description Height in pixels of the expanded subgrid. Defaults to
|
|
87
|
+
* 150
|
|
88
|
+
* @example
|
|
89
|
+
* <pre>
|
|
90
|
+
* $scope.gridOptions = {
|
|
91
|
+
* expandableRowHeight: 150
|
|
92
|
+
* }
|
|
93
|
+
* </pre>
|
|
94
|
+
*/
|
|
95
|
+
grid.options.expandableRowHeight = grid.options.expandableRowHeight || 150;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* @ngdoc object
|
|
99
|
+
* @name expandableRowHeaderWidth
|
|
100
|
+
* @propertyOf ui.grid.expandable.api:GridOptions
|
|
101
|
+
* @description Width in pixels of the expandable column. Defaults to 40
|
|
102
|
+
* @example
|
|
103
|
+
* <pre>
|
|
104
|
+
* $scope.gridOptions = {
|
|
105
|
+
* expandableRowHeaderWidth: 40
|
|
106
|
+
* }
|
|
107
|
+
* </pre>
|
|
108
|
+
*/
|
|
109
|
+
grid.options.expandableRowHeaderWidth = grid.options.expandableRowHeaderWidth || 40;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* @ngdoc object
|
|
113
|
+
* @name expandableRowTemplate
|
|
114
|
+
* @propertyOf ui.grid.expandable.api:GridOptions
|
|
115
|
+
* @description Mandatory. The template for your expanded row
|
|
116
|
+
* @example
|
|
117
|
+
* <pre>
|
|
118
|
+
* $scope.gridOptions = {
|
|
119
|
+
* expandableRowTemplate: 'expandableRowTemplate.html'
|
|
120
|
+
* }
|
|
121
|
+
* </pre>
|
|
122
|
+
*/
|
|
123
|
+
if ( grid.options.enableExpandable && !grid.options.expandableRowTemplate ) {
|
|
124
|
+
gridUtil.logError( 'You have not set the expandableRowTemplate, disabling expandable module' );
|
|
125
|
+
grid.options.enableExpandable = false;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* @ngdoc object
|
|
130
|
+
* @name ui.grid.expandable.api:PublicApi
|
|
131
|
+
*
|
|
132
|
+
* @description Public Api for expandable feature
|
|
133
|
+
*/
|
|
134
|
+
/**
|
|
135
|
+
* @ngdoc object
|
|
136
|
+
* @name ui.grid.expandable.api:GridRow
|
|
137
|
+
*
|
|
138
|
+
* @description Additional properties added to GridRow when using the expandable module
|
|
139
|
+
*/
|
|
140
|
+
/**
|
|
141
|
+
* @ngdoc object
|
|
142
|
+
* @name ui.grid.expandable.api:GridOptions
|
|
143
|
+
*
|
|
144
|
+
* @description Options for configuring the expandable feature, these are available to be
|
|
145
|
+
* set using the ui-grid {@link ui.grid.class:GridOptions gridOptions}
|
|
146
|
+
*/
|
|
147
|
+
var publicApi = {
|
|
148
|
+
events: {
|
|
149
|
+
expandable: {
|
|
150
|
+
/**
|
|
151
|
+
* @ngdoc event
|
|
152
|
+
* @name rowExpandedBeforeStateChanged
|
|
153
|
+
* @eventOf ui.grid.expandable.api:PublicApi
|
|
154
|
+
* @description raised when row is expanding or collapsing
|
|
155
|
+
* <pre>
|
|
156
|
+
* gridApi.expandable.on.rowExpandedBeforeStateChanged(scope,function(row, event) {})
|
|
157
|
+
* </pre>
|
|
158
|
+
* @param {scope} scope the application scope
|
|
159
|
+
* @param {GridRow} row the row that was expanded
|
|
160
|
+
* @param {Event} evt object if raised from an event
|
|
161
|
+
*/
|
|
162
|
+
rowExpandedBeforeStateChanged: function(scope, row, evt) {},
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* @ngdoc event
|
|
166
|
+
* @name rowExpandedStateChanged
|
|
167
|
+
* @eventOf ui.grid.expandable.api:PublicApi
|
|
168
|
+
* @description raised when row expanded or collapsed
|
|
169
|
+
* <pre>
|
|
170
|
+
* gridApi.expandable.on.rowExpandedStateChanged(scope,function(row, event) {})
|
|
171
|
+
* </pre>
|
|
172
|
+
* @param {scope} scope the application scope
|
|
173
|
+
* @param {GridRow} row the row that was expanded
|
|
174
|
+
* @param {Event} evt object if raised from an event
|
|
175
|
+
*/
|
|
176
|
+
rowExpandedStateChanged: function (scope, row, evt) {},
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* @ngdoc event
|
|
180
|
+
* @name rowExpandedRendered
|
|
181
|
+
* @eventOf ui.grid.expandable.api:PublicApi
|
|
182
|
+
* @description raised when expanded row is rendered
|
|
183
|
+
* <pre>
|
|
184
|
+
* gridApi.expandable.on.rowExpandedRendered(scope,function(row, event) {})
|
|
185
|
+
* </pre>
|
|
186
|
+
* @param {scope} scope the application scope
|
|
187
|
+
* @param {GridRow} row the row that was expanded
|
|
188
|
+
* @param {Event} evt object if raised from an event
|
|
189
|
+
*/
|
|
190
|
+
rowExpandedRendered: function (scope, row, evt) {}
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
|
|
194
|
+
methods: {
|
|
195
|
+
expandable: {
|
|
196
|
+
/**
|
|
197
|
+
* @ngdoc method
|
|
198
|
+
* @name toggleRowExpansion
|
|
199
|
+
* @methodOf ui.grid.expandable.api:PublicApi
|
|
200
|
+
* @description Toggle a specific row
|
|
201
|
+
* <pre>
|
|
202
|
+
* gridApi.expandable.toggleRowExpansion(rowEntity, event);
|
|
203
|
+
* </pre>
|
|
204
|
+
* @param {object} rowEntity the data entity for the row you want to expand
|
|
205
|
+
* @param {Event} [e] event (if exist)
|
|
206
|
+
*/
|
|
207
|
+
toggleRowExpansion: function (rowEntity, e) {
|
|
208
|
+
var row = grid.getRow(rowEntity);
|
|
209
|
+
|
|
210
|
+
if (row !== null) {
|
|
211
|
+
service.toggleRowExpansion(grid, row, e);
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* @ngdoc method
|
|
217
|
+
* @name expandAllRows
|
|
218
|
+
* @methodOf ui.grid.expandable.api:PublicApi
|
|
219
|
+
* @description Expand all subgrids.
|
|
220
|
+
* <pre>
|
|
221
|
+
* gridApi.expandable.expandAllRows();
|
|
222
|
+
* </pre>
|
|
223
|
+
*/
|
|
224
|
+
expandAllRows: function() {
|
|
225
|
+
service.expandAllRows(grid);
|
|
226
|
+
},
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* @ngdoc method
|
|
230
|
+
* @name collapseAllRows
|
|
231
|
+
* @methodOf ui.grid.expandable.api:PublicApi
|
|
232
|
+
* @description Collapse all subgrids.
|
|
233
|
+
* <pre>
|
|
234
|
+
* gridApi.expandable.collapseAllRows();
|
|
235
|
+
* </pre>
|
|
236
|
+
*/
|
|
237
|
+
collapseAllRows: function() {
|
|
238
|
+
service.collapseAllRows(grid);
|
|
239
|
+
},
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* @ngdoc method
|
|
243
|
+
* @name toggleAllRows
|
|
244
|
+
* @methodOf ui.grid.expandable.api:PublicApi
|
|
245
|
+
* @description Toggle all subgrids.
|
|
246
|
+
* <pre>
|
|
247
|
+
* gridApi.expandable.toggleAllRows();
|
|
248
|
+
* </pre>
|
|
249
|
+
*/
|
|
250
|
+
toggleAllRows: function() {
|
|
251
|
+
service.toggleAllRows(grid);
|
|
252
|
+
},
|
|
253
|
+
/**
|
|
254
|
+
* @ngdoc function
|
|
255
|
+
* @name expandRow
|
|
256
|
+
* @methodOf ui.grid.expandable.api:PublicApi
|
|
257
|
+
* @description Expand the data row
|
|
258
|
+
* @param {object} rowEntity gridOptions.data[] array instance
|
|
259
|
+
*/
|
|
260
|
+
expandRow: function (rowEntity) {
|
|
261
|
+
var row = grid.getRow(rowEntity);
|
|
262
|
+
|
|
263
|
+
if (row !== null && !row.isExpanded) {
|
|
264
|
+
service.toggleRowExpansion(grid, row);
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
/**
|
|
268
|
+
* @ngdoc function
|
|
269
|
+
* @name collapseRow
|
|
270
|
+
* @methodOf ui.grid.expandable.api:PublicApi
|
|
271
|
+
* @description Collapse the data row
|
|
272
|
+
* @param {object} rowEntity gridOptions.data[] array instance
|
|
273
|
+
*/
|
|
274
|
+
collapseRow: function (rowEntity) {
|
|
275
|
+
var row = grid.getRow(rowEntity);
|
|
276
|
+
|
|
277
|
+
if (row !== null && row.isExpanded) {
|
|
278
|
+
service.toggleRowExpansion(grid, row);
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
/**
|
|
282
|
+
* @ngdoc function
|
|
283
|
+
* @name getExpandedRows
|
|
284
|
+
* @methodOf ui.grid.expandable.api:PublicApi
|
|
285
|
+
* @description returns all expandedRow's entity references
|
|
286
|
+
*/
|
|
287
|
+
getExpandedRows: function () {
|
|
288
|
+
return service.getExpandedRows(grid).map(function (gridRow) {
|
|
289
|
+
return gridRow.entity;
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
};
|
|
295
|
+
grid.api.registerEventsFromObject(publicApi.events);
|
|
296
|
+
grid.api.registerMethodsFromObject(publicApi.methods);
|
|
297
|
+
},
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
*
|
|
301
|
+
* @param grid
|
|
302
|
+
* @param row
|
|
303
|
+
* @param {Event} [e] event (if exist)
|
|
304
|
+
*/
|
|
305
|
+
toggleRowExpansion: function (grid, row, e) {
|
|
306
|
+
// trigger the "before change" event. Can change row height dynamically this way.
|
|
307
|
+
grid.api.expandable.raise.rowExpandedBeforeStateChanged(row);
|
|
308
|
+
/**
|
|
309
|
+
* @ngdoc object
|
|
310
|
+
* @name isExpanded
|
|
311
|
+
* @propertyOf ui.grid.expandable.api:GridRow
|
|
312
|
+
* @description Whether or not the row is currently expanded.
|
|
313
|
+
* @example
|
|
314
|
+
* <pre>
|
|
315
|
+
* $scope.api.expandable.on.rowExpandedStateChanged($scope, function (row) {
|
|
316
|
+
* if (row.isExpanded) {
|
|
317
|
+
* //...
|
|
318
|
+
* }
|
|
319
|
+
* });
|
|
320
|
+
* </pre>
|
|
321
|
+
*/
|
|
322
|
+
row.isExpanded = !row.isExpanded;
|
|
323
|
+
if (angular.isUndefined(row.expandedRowHeight)) {
|
|
324
|
+
row.expandedRowHeight = grid.options.expandableRowHeight;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
if (row.isExpanded) {
|
|
328
|
+
row.height = row.grid.options.rowHeight + row.expandedRowHeight;
|
|
329
|
+
grid.expandable.expandedAll = service.getExpandedRows(grid).length === grid.rows.length;
|
|
330
|
+
}
|
|
331
|
+
else {
|
|
332
|
+
row.height = row.grid.options.rowHeight;
|
|
333
|
+
grid.expandable.expandedAll = false;
|
|
334
|
+
}
|
|
335
|
+
grid.api.expandable.raise.rowExpandedStateChanged(row, e);
|
|
336
|
+
|
|
337
|
+
// fire event on render complete
|
|
338
|
+
function _tWatcher() {
|
|
339
|
+
if (row.expandedRendered) {
|
|
340
|
+
grid.api.expandable.raise.rowExpandedRendered(row, e);
|
|
341
|
+
}
|
|
342
|
+
else {
|
|
343
|
+
window.setTimeout(_tWatcher, 1e2);
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
_tWatcher();
|
|
347
|
+
},
|
|
348
|
+
|
|
349
|
+
expandAllRows: function(grid) {
|
|
350
|
+
grid.renderContainers.body.visibleRowCache.forEach( function(row) {
|
|
351
|
+
if (!row.isExpanded && !(row.entity.subGridOptions && row.entity.subGridOptions.disableRowExpandable)) {
|
|
352
|
+
service.toggleRowExpansion(grid, row);
|
|
353
|
+
}
|
|
354
|
+
});
|
|
355
|
+
grid.expandable.expandedAll = true;
|
|
356
|
+
grid.queueGridRefresh();
|
|
357
|
+
},
|
|
358
|
+
|
|
359
|
+
collapseAllRows: function(grid) {
|
|
360
|
+
grid.renderContainers.body.visibleRowCache.forEach( function(row) {
|
|
361
|
+
if (row.isExpanded) {
|
|
362
|
+
service.toggleRowExpansion(grid, row);
|
|
363
|
+
}
|
|
364
|
+
});
|
|
365
|
+
grid.expandable.expandedAll = false;
|
|
366
|
+
grid.queueGridRefresh();
|
|
367
|
+
},
|
|
368
|
+
|
|
369
|
+
toggleAllRows: function(grid) {
|
|
370
|
+
if (grid.expandable.expandedAll) {
|
|
371
|
+
service.collapseAllRows(grid);
|
|
372
|
+
}
|
|
373
|
+
else {
|
|
374
|
+
service.expandAllRows(grid);
|
|
375
|
+
}
|
|
376
|
+
},
|
|
377
|
+
|
|
378
|
+
getExpandedRows: function (grid) {
|
|
379
|
+
return grid.rows.filter(function (row) {
|
|
380
|
+
return row.isExpanded;
|
|
381
|
+
});
|
|
382
|
+
}
|
|
383
|
+
};
|
|
384
|
+
return service;
|
|
385
|
+
}]);
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* @ngdoc object
|
|
389
|
+
* @name enableExpandableRowHeader
|
|
390
|
+
* @propertyOf ui.grid.expandable.api:GridOptions
|
|
391
|
+
* @description Show a rowHeader to provide the expandable buttons. If set to false then implies
|
|
392
|
+
* you're going to use a custom method for expanding and collapsing the subgrids. Defaults to true.
|
|
393
|
+
* @example
|
|
394
|
+
* <pre>
|
|
395
|
+
* $scope.gridOptions = {
|
|
396
|
+
* enableExpandableRowHeader: false
|
|
397
|
+
* }
|
|
398
|
+
* </pre>
|
|
399
|
+
*/
|
|
400
|
+
|
|
401
|
+
module.directive('uiGridExpandable', ['uiGridExpandableService', '$templateCache',
|
|
402
|
+
function (uiGridExpandableService, $templateCache) {
|
|
403
|
+
return {
|
|
404
|
+
replace: true,
|
|
405
|
+
priority: 0,
|
|
406
|
+
require: '^uiGrid',
|
|
407
|
+
scope: false,
|
|
408
|
+
compile: function () {
|
|
409
|
+
return {
|
|
410
|
+
pre: function ($scope, $elm, $attrs, uiGridCtrl) {
|
|
411
|
+
uiGridExpandableService.initializeGrid(uiGridCtrl.grid);
|
|
412
|
+
|
|
413
|
+
if (!uiGridCtrl.grid.options.enableExpandable) {
|
|
414
|
+
return;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
if (uiGridCtrl.grid.options.enableExpandableRowHeader !== false ) {
|
|
418
|
+
var expandableRowHeaderColDef = {
|
|
419
|
+
name: 'expandableButtons',
|
|
420
|
+
displayName: '',
|
|
421
|
+
exporterSuppressExport: true,
|
|
422
|
+
enableColumnResizing: false,
|
|
423
|
+
enableColumnMenu: false,
|
|
424
|
+
width: uiGridCtrl.grid.options.expandableRowHeaderWidth || 30
|
|
425
|
+
};
|
|
426
|
+
|
|
427
|
+
expandableRowHeaderColDef.cellTemplate = $templateCache.get('ui-grid/expandableRowHeader');
|
|
428
|
+
expandableRowHeaderColDef.headerCellTemplate = $templateCache.get('ui-grid/expandableTopRowHeader');
|
|
429
|
+
uiGridCtrl.grid.addRowHeaderColumn(expandableRowHeaderColDef, -90);
|
|
430
|
+
}
|
|
431
|
+
},
|
|
432
|
+
post: function ($scope, $elm, $attrs, uiGridCtrl) {}
|
|
433
|
+
};
|
|
434
|
+
}
|
|
435
|
+
};
|
|
436
|
+
}]);
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
* @ngdoc directive
|
|
440
|
+
* @name ui.grid.expandable.directive:uiGrid
|
|
441
|
+
* @description stacks on the uiGrid directive to register child grid with parent row when child is created
|
|
442
|
+
*/
|
|
443
|
+
module.directive('uiGrid',
|
|
444
|
+
function () {
|
|
445
|
+
return {
|
|
446
|
+
replace: true,
|
|
447
|
+
priority: 599,
|
|
448
|
+
require: '^uiGrid',
|
|
449
|
+
scope: false,
|
|
450
|
+
compile: function () {
|
|
451
|
+
return {
|
|
452
|
+
pre: function ($scope, $elm, $attrs, uiGridCtrl) {
|
|
453
|
+
|
|
454
|
+
uiGridCtrl.grid.api.core.on.renderingComplete($scope, function() {
|
|
455
|
+
// if a parent grid row is on the scope, then add the parentRow property to this childGrid
|
|
456
|
+
if ($scope.row && $scope.row.grid && $scope.row.grid.options
|
|
457
|
+
&& $scope.row.grid.options.enableExpandable) {
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* @ngdoc directive
|
|
461
|
+
* @name ui.grid.expandable.class:Grid
|
|
462
|
+
* @description Additional Grid properties added by expandable module
|
|
463
|
+
*/
|
|
464
|
+
|
|
465
|
+
/**
|
|
466
|
+
* @ngdoc object
|
|
467
|
+
* @name parentRow
|
|
468
|
+
* @propertyOf ui.grid.expandable.class:Grid
|
|
469
|
+
* @description reference to the expanded parent row that owns this grid
|
|
470
|
+
*/
|
|
471
|
+
uiGridCtrl.grid.parentRow = $scope.row;
|
|
472
|
+
|
|
473
|
+
// todo: adjust height on parent row when child grid height changes. we need some sort of gridHeightChanged event
|
|
474
|
+
// uiGridCtrl.grid.core.on.canvasHeightChanged($scope, function(oldHeight, newHeight) {
|
|
475
|
+
// uiGridCtrl.grid.parentRow = newHeight;
|
|
476
|
+
// });
|
|
477
|
+
}
|
|
478
|
+
});
|
|
479
|
+
},
|
|
480
|
+
post: function ($scope, $elm, $attrs, uiGridCtrl) {}
|
|
481
|
+
};
|
|
482
|
+
}
|
|
483
|
+
};
|
|
484
|
+
});
|
|
485
|
+
|
|
486
|
+
/**
|
|
487
|
+
* @ngdoc directive
|
|
488
|
+
* @name ui.grid.expandable.directive:uiGridExpandableRow
|
|
489
|
+
* @description directive to render the Row template on Expand
|
|
490
|
+
*/
|
|
491
|
+
module.directive('uiGridExpandableRow',
|
|
492
|
+
['uiGridExpandableService', '$compile', 'uiGridConstants','gridUtil',
|
|
493
|
+
function (uiGridExpandableService, $compile, uiGridConstants, gridUtil) {
|
|
494
|
+
|
|
495
|
+
return {
|
|
496
|
+
replace: false,
|
|
497
|
+
priority: 0,
|
|
498
|
+
scope: false,
|
|
499
|
+
compile: function () {
|
|
500
|
+
return {
|
|
501
|
+
pre: function ($scope, $elm) {
|
|
502
|
+
gridUtil.getTemplate($scope.grid.options.expandableRowTemplate).then(
|
|
503
|
+
function (template) {
|
|
504
|
+
if ($scope.grid.options.expandableRowScope) {
|
|
505
|
+
/**
|
|
506
|
+
* @ngdoc object
|
|
507
|
+
* @name expandableRowScope
|
|
508
|
+
* @propertyOf ui.grid.expandable.api:GridOptions
|
|
509
|
+
* @description Variables of object expandableScope will be available in the scope of the expanded subgrid
|
|
510
|
+
* @example
|
|
511
|
+
* <pre>
|
|
512
|
+
* $scope.gridOptions = {
|
|
513
|
+
* expandableRowScope: expandableScope
|
|
514
|
+
* }
|
|
515
|
+
* </pre>
|
|
516
|
+
*/
|
|
517
|
+
var expandableRowScope = $scope.grid.options.expandableRowScope;
|
|
518
|
+
|
|
519
|
+
for (var property in expandableRowScope) {
|
|
520
|
+
if (expandableRowScope.hasOwnProperty(property)) {
|
|
521
|
+
$scope[property] = expandableRowScope[property];
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
var expandedRowElement = angular.element(template);
|
|
526
|
+
|
|
527
|
+
expandedRowElement = $compile(expandedRowElement)($scope);
|
|
528
|
+
$elm.append(expandedRowElement);
|
|
529
|
+
$scope.row.element = $elm;
|
|
530
|
+
$scope.row.expandedRendered = true;
|
|
531
|
+
});
|
|
532
|
+
},
|
|
533
|
+
|
|
534
|
+
post: function ($scope, $elm) {
|
|
535
|
+
$scope.row.element = $elm;
|
|
536
|
+
$scope.$on('$destroy', function() {
|
|
537
|
+
$scope.row.expandedRendered = false;
|
|
538
|
+
});
|
|
539
|
+
}
|
|
540
|
+
};
|
|
541
|
+
}
|
|
542
|
+
};
|
|
543
|
+
}]);
|
|
544
|
+
|
|
545
|
+
/**
|
|
546
|
+
* @ngdoc directive
|
|
547
|
+
* @name ui.grid.expandable.directive:uiGridRow
|
|
548
|
+
* @description stacks on the uiGridRow directive to add support for expandable rows
|
|
549
|
+
*/
|
|
550
|
+
module.directive('uiGridRow',
|
|
551
|
+
function () {
|
|
552
|
+
return {
|
|
553
|
+
priority: -200,
|
|
554
|
+
scope: false,
|
|
555
|
+
compile: function () {
|
|
556
|
+
return {
|
|
557
|
+
pre: function ($scope, $elm) {
|
|
558
|
+
if (!$scope.grid.options.enableExpandable) {
|
|
559
|
+
return;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
$scope.expandableRow = {};
|
|
563
|
+
|
|
564
|
+
$scope.expandableRow.shouldRenderExpand = function () {
|
|
565
|
+
return $scope.colContainer.name === 'body'
|
|
566
|
+
&& $scope.grid.options.enableExpandable !== false
|
|
567
|
+
&& $scope.row.isExpanded
|
|
568
|
+
&& (!$scope.grid.isScrollingVertically || $scope.row.expandedRendered);
|
|
569
|
+
};
|
|
570
|
+
|
|
571
|
+
$scope.expandableRow.shouldRenderFiller = function () {
|
|
572
|
+
return $scope.row.isExpanded
|
|
573
|
+
&& (
|
|
574
|
+
$scope.colContainer.name !== 'body'
|
|
575
|
+
|| ($scope.grid.isScrollingVertically && !$scope.row.expandedRendered));
|
|
576
|
+
};
|
|
577
|
+
|
|
578
|
+
if ($scope.grid.options.enableOnDblClickExpand) {
|
|
579
|
+
$elm.on('dblclick', function (event) {
|
|
580
|
+
// if necessary, it is possible for everyone to stop the processing of a single click OR
|
|
581
|
+
// Inside the Config in the output agent to enter a line:
|
|
582
|
+
// event.stopPropagation()
|
|
583
|
+
$scope.grid.api.expandable.toggleRowExpansion($scope.row.entity, event);
|
|
584
|
+
});
|
|
585
|
+
}
|
|
586
|
+
},
|
|
587
|
+
post: function ($scope, $elm, $attrs, controllers) {}
|
|
588
|
+
};
|
|
589
|
+
}
|
|
590
|
+
};
|
|
591
|
+
});
|
|
592
|
+
|
|
593
|
+
/**
|
|
594
|
+
* @ngdoc directive
|
|
595
|
+
* @name ui.grid.expandable.directive:uiGridViewport
|
|
596
|
+
* @description stacks on the uiGridViewport directive to append the expandable row html elements to the
|
|
597
|
+
* default gridRow template
|
|
598
|
+
*/
|
|
599
|
+
module.directive('uiGridViewport',
|
|
600
|
+
['$compile', 'gridUtil', '$templateCache',
|
|
601
|
+
function ($compile, gridUtil, $templateCache) {
|
|
602
|
+
return {
|
|
603
|
+
priority: -200,
|
|
604
|
+
scope: false,
|
|
605
|
+
compile: function ($elm) {
|
|
606
|
+
|
|
607
|
+
// todo: this adds ng-if watchers to each row even if the grid is not using expandable directive
|
|
608
|
+
// or options.enableExpandable == false
|
|
609
|
+
// The alternative is to compile the template and append to each row in a uiGridRow directive
|
|
610
|
+
|
|
611
|
+
var rowRepeatDiv = angular.element($elm.children().children()[0]),
|
|
612
|
+
expandedRowFillerElement = $templateCache.get('ui-grid/expandableScrollFiller'),
|
|
613
|
+
expandedRowElement = $templateCache.get('ui-grid/expandableRow');
|
|
614
|
+
|
|
615
|
+
rowRepeatDiv.append(expandedRowElement);
|
|
616
|
+
rowRepeatDiv.append(expandedRowFillerElement);
|
|
617
|
+
return {
|
|
618
|
+
pre: function ($scope, $elm, $attrs, controllers) {
|
|
619
|
+
},
|
|
620
|
+
post: function ($scope, $elm, $attrs, controllers) {
|
|
621
|
+
}
|
|
622
|
+
};
|
|
623
|
+
}
|
|
624
|
+
};
|
|
625
|
+
}]);
|
|
626
|
+
|
|
627
|
+
})();
|
|
628
|
+
|
|
629
|
+
angular.module('ui.grid.expandable').run(['$templateCache', function($templateCache) {
|
|
630
|
+
'use strict';
|
|
631
|
+
|
|
632
|
+
$templateCache.put('ui-grid/expandableRow',
|
|
633
|
+
"<div ui-grid-expandable-row ng-if=\"expandableRow.shouldRenderExpand()\" class=\"expandableRow\" style=\"float:left; margin-top: 1px; margin-bottom: 1px\" ng-style=\"{width: (grid.renderContainers.body.getCanvasWidth()) + 'px', height: row.expandedRowHeight + 'px'}\"></div>"
|
|
634
|
+
);
|
|
635
|
+
|
|
636
|
+
|
|
637
|
+
$templateCache.put('ui-grid/expandableRowHeader',
|
|
638
|
+
"<div class=\"ui-grid-row-header-cell ui-grid-expandable-buttons-cell\"><div class=\"ui-grid-cell-contents\"><i class=\"clickable\" ng-if=\"!(row.groupHeader==true || row.entity.subGridOptions.disableRowExpandable)\" ng-class=\"{ 'ui-grid-icon-plus-squared' : !row.isExpanded, 'ui-grid-icon-minus-squared' : row.isExpanded }\" ng-click=\"grid.api.expandable.toggleRowExpansion(row.entity, $event)\" aria-expanded=\"{{!!row.isExpanded}}\"></i></div></div>"
|
|
639
|
+
);
|
|
640
|
+
|
|
641
|
+
|
|
642
|
+
$templateCache.put('ui-grid/expandableScrollFiller',
|
|
643
|
+
"<div ng-if=\"expandableRow.shouldRenderFiller()\" ng-class=\"{scrollFiller: true, scrollFillerClass:(colContainer.name === 'body')}\" ng-style=\"{ width: (grid.getViewportWidth()) + 'px', height: row.expandedRowHeight + 2 + 'px', 'margin-left': grid.options.rowHeader.rowHeaderWidth + 'px' }\"> </div>"
|
|
644
|
+
);
|
|
645
|
+
|
|
646
|
+
|
|
647
|
+
$templateCache.put('ui-grid/expandableTopRowHeader',
|
|
648
|
+
"<div class=\"ui-grid-row-header-cell ui-grid-expandable-buttons-cell\"><div class=\"ui-grid-cell-contents\"><span class=\"ui-grid-cell-empty\" ng-if=\"!grid.options.showExpandAllButton\"></span> <button type=\"button\" class=\"ui-grid-icon-button clickable\" ng-if=\"grid.options.showExpandAllButton\" ng-class=\"{ 'ui-grid-icon-plus-squared' : !grid.expandable.expandedAll, 'ui-grid-icon-minus-squared' : grid.expandable.expandedAll }\" ng-click=\"grid.api.expandable.toggleAllRows()\" aria-expanded=\"{{grid.expandable.expandedAll}}\"></button></div></div>"
|
|
649
|
+
);
|
|
650
|
+
|
|
651
|
+
}]);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* ui-grid - v4.12.7 - 2024-04-12
|
|
3
|
+
* http://ui-grid.info/
|
|
4
|
+
* Copyright (c) 2024 ; License: MIT
|
|
5
|
+
*/
|
|
6
|
+
!function(){"use strict";var e=angular.module("ui.grid.expandable",["ui.grid"]);e.service("uiGridExpandableService",["gridUtil",function(o){var a={initializeGrid:function(i){i.expandable={},i.expandable.expandedAll=!1,i.options.enableOnDblClickExpand=!1!==i.options.enableOnDblClickExpand,i.options.enableExpandable=!1!==i.options.enableExpandable,i.options.showExpandAllButton=!1!==i.options.showExpandAllButton,i.options.expandableRowHeight=i.options.expandableRowHeight||150,i.options.expandableRowHeaderWidth=i.options.expandableRowHeaderWidth||40,i.options.enableExpandable&&!i.options.expandableRowTemplate&&(o.logError("You have not set the expandableRowTemplate, disabling expandable module"),i.options.enableExpandable=!1);var e={expandable:{rowExpandedBeforeStateChanged:function(e,n,i){},rowExpandedStateChanged:function(e,n,i){},rowExpandedRendered:function(e,n,i){}}},n={expandable:{toggleRowExpansion:function(e,n){e=i.getRow(e);null!==e&&a.toggleRowExpansion(i,e,n)},expandAllRows:function(){a.expandAllRows(i)},collapseAllRows:function(){a.collapseAllRows(i)},toggleAllRows:function(){a.toggleAllRows(i)},expandRow:function(e){e=i.getRow(e);null===e||e.isExpanded||a.toggleRowExpansion(i,e)},collapseRow:function(e){e=i.getRow(e);null!==e&&e.isExpanded&&a.toggleRowExpansion(i,e)},getExpandedRows:function(){return a.getExpandedRows(i).map(function(e){return e.entity})}}};i.api.registerEventsFromObject(e),i.api.registerMethodsFromObject(n)},toggleRowExpansion:function(n,i,o){n.api.expandable.raise.rowExpandedBeforeStateChanged(i),i.isExpanded=!i.isExpanded,angular.isUndefined(i.expandedRowHeight)&&(i.expandedRowHeight=n.options.expandableRowHeight),i.isExpanded?(i.height=i.grid.options.rowHeight+i.expandedRowHeight,n.expandable.expandedAll=a.getExpandedRows(n).length===n.rows.length):(i.height=i.grid.options.rowHeight,n.expandable.expandedAll=!1),n.api.expandable.raise.rowExpandedStateChanged(i,o),function e(){i.expandedRendered?n.api.expandable.raise.rowExpandedRendered(i,o):window.setTimeout(e,100)}()},expandAllRows:function(n){n.renderContainers.body.visibleRowCache.forEach(function(e){e.isExpanded||e.entity.subGridOptions&&e.entity.subGridOptions.disableRowExpandable||a.toggleRowExpansion(n,e)}),n.expandable.expandedAll=!0,n.queueGridRefresh()},collapseAllRows:function(n){n.renderContainers.body.visibleRowCache.forEach(function(e){e.isExpanded&&a.toggleRowExpansion(n,e)}),n.expandable.expandedAll=!1,n.queueGridRefresh()},toggleAllRows:function(e){e.expandable.expandedAll?a.collapseAllRows(e):a.expandAllRows(e)},getExpandedRows:function(e){return e.rows.filter(function(e){return e.isExpanded})}};return a}]),e.directive("uiGridExpandable",["uiGridExpandableService","$templateCache",function(d,l){return{replace:!0,priority:0,require:"^uiGrid",scope:!1,compile:function(){return{pre:function(e,n,i,o){var a;d.initializeGrid(o.grid),o.grid.options.enableExpandable&&!1!==o.grid.options.enableExpandableRowHeader&&((a={name:"expandableButtons",displayName:"",exporterSuppressExport:!0,enableColumnResizing:!1,enableColumnMenu:!1,width:o.grid.options.expandableRowHeaderWidth||30}).cellTemplate=l.get("ui-grid/expandableRowHeader"),a.headerCellTemplate=l.get("ui-grid/expandableTopRowHeader"),o.grid.addRowHeaderColumn(a,-90))},post:function(e,n,i,o){}}}}}]),e.directive("uiGrid",function(){return{replace:!0,priority:599,require:"^uiGrid",scope:!1,compile:function(){return{pre:function(e,n,i,o){o.grid.api.core.on.renderingComplete(e,function(){e.row&&e.row.grid&&e.row.grid.options&&e.row.grid.options.enableExpandable&&(o.grid.parentRow=e.row)})},post:function(e,n,i,o){}}}}}),e.directive("uiGridExpandableRow",["uiGridExpandableService","$compile","uiGridConstants","gridUtil",function(e,d,n,i){return{replace:!1,priority:0,scope:!1,compile:function(){return{pre:function(o,a){i.getTemplate(o.grid.options.expandableRowTemplate).then(function(e){if(o.grid.options.expandableRowScope){var n,i=o.grid.options.expandableRowScope;for(n in i)i.hasOwnProperty(n)&&(o[n]=i[n])}e=angular.element(e),e=d(e)(o);a.append(e),o.row.element=a,o.row.expandedRendered=!0})},post:function(e,n){e.row.element=n,e.$on("$destroy",function(){e.row.expandedRendered=!1})}}}}}]),e.directive("uiGridRow",function(){return{priority:-200,scope:!1,compile:function(){return{pre:function(n,e){n.grid.options.enableExpandable&&(n.expandableRow={},n.expandableRow.shouldRenderExpand=function(){return"body"===n.colContainer.name&&!1!==n.grid.options.enableExpandable&&n.row.isExpanded&&(!n.grid.isScrollingVertically||n.row.expandedRendered)},n.expandableRow.shouldRenderFiller=function(){return n.row.isExpanded&&("body"!==n.colContainer.name||n.grid.isScrollingVertically&&!n.row.expandedRendered)},n.grid.options.enableOnDblClickExpand)&&e.on("dblclick",function(e){n.grid.api.expandable.toggleRowExpansion(n.row.entity,e)})},post:function(e,n,i,o){}}}}}),e.directive("uiGridViewport",["$compile","gridUtil","$templateCache",function(e,n,o){return{priority:-200,scope:!1,compile:function(e){var e=angular.element(e.children().children()[0]),n=o.get("ui-grid/expandableScrollFiller"),i=o.get("ui-grid/expandableRow");return e.append(i),e.append(n),{pre:function(e,n,i,o){},post:function(e,n,i,o){}}}}}])}(),angular.module("ui.grid.expandable").run(["$templateCache",function(e){"use strict";e.put("ui-grid/expandableRow",'<div ui-grid-expandable-row ng-if="expandableRow.shouldRenderExpand()" class="expandableRow" style="float:left; margin-top: 1px; margin-bottom: 1px" ng-style="{width: (grid.renderContainers.body.getCanvasWidth()) + \'px\', height: row.expandedRowHeight + \'px\'}"></div>'),e.put("ui-grid/expandableRowHeader",'<div class="ui-grid-row-header-cell ui-grid-expandable-buttons-cell"><div class="ui-grid-cell-contents"><i class="clickable" ng-if="!(row.groupHeader==true || row.entity.subGridOptions.disableRowExpandable)" ng-class="{ \'ui-grid-icon-plus-squared\' : !row.isExpanded, \'ui-grid-icon-minus-squared\' : row.isExpanded }" ng-click="grid.api.expandable.toggleRowExpansion(row.entity, $event)" aria-expanded="{{!!row.isExpanded}}"></i></div></div>'),e.put("ui-grid/expandableScrollFiller","<div ng-if=\"expandableRow.shouldRenderFiller()\" ng-class=\"{scrollFiller: true, scrollFillerClass:(colContainer.name === 'body')}\" ng-style=\"{ width: (grid.getViewportWidth()) + 'px', height: row.expandedRowHeight + 2 + 'px', 'margin-left': grid.options.rowHeader.rowHeaderWidth + 'px' }\"> </div>"),e.put("ui-grid/expandableTopRowHeader",'<div class="ui-grid-row-header-cell ui-grid-expandable-buttons-cell"><div class="ui-grid-cell-contents"><span class="ui-grid-cell-empty" ng-if="!grid.options.showExpandAllButton"></span> <button type="button" class="ui-grid-icon-button clickable" ng-if="grid.options.showExpandAllButton" ng-class="{ \'ui-grid-icon-plus-squared\' : !grid.expandable.expandedAll, \'ui-grid-icon-minus-squared\' : grid.expandable.expandedAll }" ng-click="grid.api.expandable.toggleAllRows()" aria-expanded="{{grid.expandable.expandedAll}}"></button></div></div>')}]);
|