apex-grid 1.0.0-rc.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/LICENSE +0 -0
- package/README.md +16 -0
- package/dist/bundle.js +2069 -0
- package/dist/docs/.nojekyll +1 -0
- package/dist/docs/assets/highlight.css +22 -0
- package/dist/docs/assets/main.js +54 -0
- package/dist/docs/assets/search.js +1 -0
- package/dist/docs/assets/style.css +1257 -0
- package/dist/docs/classes/ApexGrid.html +240 -0
- package/dist/docs/index.html +79 -0
- package/dist/docs/interfaces/ApexCellContext.html +92 -0
- package/dist/docs/interfaces/ApexFilteringEvent.html +78 -0
- package/dist/docs/interfaces/ApexGridEventMap.html +101 -0
- package/dist/docs/interfaces/ApexHeaderContext.html +78 -0
- package/dist/docs/interfaces/ColumnConfiguration.html +168 -0
- package/dist/docs/interfaces/ColumnFilterConfiguration.html +76 -0
- package/dist/docs/interfaces/ColumnSortConfiguration.html +93 -0
- package/dist/docs/interfaces/FilterExpression.html +97 -0
- package/dist/docs/interfaces/GridRemoteConfig.html +78 -0
- package/dist/docs/interfaces/GridSortConfiguration.html +73 -0
- package/dist/docs/interfaces/SortExpression.html +111 -0
- package/dist/docs/modules.html +89 -0
- package/dist/docs/types/DataType.html +63 -0
- package/dist/docs/types/FilterCriteria.html +63 -0
- package/dist/docs/types/Keys.html +68 -0
- package/dist/docs/types/RemoteFilterHook.html +84 -0
- package/dist/docs/types/RemoteSortHook.html +84 -0
- package/dist/docs/types/SortState.html +68 -0
- package/dist/docs/types/SortingDirection.html +65 -0
- package/dist/docs/types/Values.html +68 -0
- package/dist/src/components/cell.d.ts +19 -0
- package/dist/src/components/cell.d.ts.map +1 -0
- package/dist/src/components/cell.js +45 -0
- package/dist/src/components/cell.js.map +1 -0
- package/dist/src/components/filter-row.d.ts +47 -0
- package/dist/src/components/filter-row.d.ts.map +1 -0
- package/dist/src/components/filter-row.js +307 -0
- package/dist/src/components/filter-row.js.map +1 -0
- package/dist/src/components/grid-body.d.ts +12 -0
- package/dist/src/components/grid-body.d.ts.map +1 -0
- package/dist/src/components/grid-body.js +27 -0
- package/dist/src/components/grid-body.js.map +1 -0
- package/dist/src/components/grid.d.ts +183 -0
- package/dist/src/components/grid.d.ts.map +1 -0
- package/dist/src/components/grid.js +303 -0
- package/dist/src/components/grid.js.map +1 -0
- package/dist/src/components/header-row.d.ts +23 -0
- package/dist/src/components/header-row.d.ts.map +1 -0
- package/dist/src/components/header-row.js +77 -0
- package/dist/src/components/header-row.js.map +1 -0
- package/dist/src/components/header.d.ts +23 -0
- package/dist/src/components/header.d.ts.map +1 -0
- package/dist/src/components/header.js +143 -0
- package/dist/src/components/header.js.map +1 -0
- package/dist/src/components/row.d.ts +21 -0
- package/dist/src/components/row.d.ts.map +1 -0
- package/dist/src/components/row.js +64 -0
- package/dist/src/components/row.js.map +1 -0
- package/dist/src/controllers/data-operation.d.ts +18 -0
- package/dist/src/controllers/data-operation.d.ts.map +1 -0
- package/dist/src/controllers/data-operation.js +37 -0
- package/dist/src/controllers/data-operation.js.map +1 -0
- package/dist/src/controllers/dom.d.ts +17 -0
- package/dist/src/controllers/dom.d.ts.map +1 -0
- package/dist/src/controllers/dom.js +31 -0
- package/dist/src/controllers/dom.js.map +1 -0
- package/dist/src/controllers/filter.d.ts +22 -0
- package/dist/src/controllers/filter.d.ts.map +1 -0
- package/dist/src/controllers/filter.js +79 -0
- package/dist/src/controllers/filter.js.map +1 -0
- package/dist/src/controllers/navigation.d.ts +31 -0
- package/dist/src/controllers/navigation.d.ts.map +1 -0
- package/dist/src/controllers/navigation.js +88 -0
- package/dist/src/controllers/navigation.js.map +1 -0
- package/dist/src/controllers/resize.d.ts +28 -0
- package/dist/src/controllers/resize.d.ts.map +1 -0
- package/dist/src/controllers/resize.js +70 -0
- package/dist/src/controllers/resize.js.map +1 -0
- package/dist/src/controllers/sort.d.ts +16 -0
- package/dist/src/controllers/sort.d.ts.map +1 -0
- package/dist/src/controllers/sort.js +90 -0
- package/dist/src/controllers/sort.js.map +1 -0
- package/dist/src/controllers/state.d.ts +22 -0
- package/dist/src/controllers/state.d.ts.map +1 -0
- package/dist/src/controllers/state.js +27 -0
- package/dist/src/controllers/state.js.map +1 -0
- package/dist/src/index.d.ts +12 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +8 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/internal/constants.d.ts +9 -0
- package/dist/src/internal/constants.d.ts.map +1 -0
- package/dist/src/internal/constants.js +19 -0
- package/dist/src/internal/constants.js.map +1 -0
- package/dist/src/internal/icon-registry.d.ts +2 -0
- package/dist/src/internal/icon-registry.d.ts.map +1 -0
- package/dist/src/internal/icon-registry.js +29 -0
- package/dist/src/internal/icon-registry.js.map +1 -0
- package/dist/src/internal/is-defined.d.ts +2 -0
- package/dist/src/internal/is-defined.d.ts.map +1 -0
- package/dist/src/internal/is-defined.js +4 -0
- package/dist/src/internal/is-defined.js.map +1 -0
- package/dist/src/internal/mixins/event-emitter.d.ts +8 -0
- package/dist/src/internal/mixins/event-emitter.d.ts.map +1 -0
- package/dist/src/internal/mixins/event-emitter.js +18 -0
- package/dist/src/internal/mixins/event-emitter.js.map +1 -0
- package/dist/src/internal/normalize-case.d.ts +2 -0
- package/dist/src/internal/normalize-case.d.ts.map +1 -0
- package/dist/src/internal/normalize-case.js +4 -0
- package/dist/src/internal/normalize-case.js.map +1 -0
- package/dist/src/internal/part-map.d.ts +5 -0
- package/dist/src/internal/part-map.d.ts.map +1 -0
- package/dist/src/internal/part-map.js +6 -0
- package/dist/src/internal/part-map.js.map +1 -0
- package/dist/src/internal/tags.d.ts +8 -0
- package/dist/src/internal/tags.d.ts.map +1 -0
- package/dist/src/internal/tags.js +8 -0
- package/dist/src/internal/tags.js.map +1 -0
- package/dist/src/internal/types.d.ts +181 -0
- package/dist/src/internal/types.d.ts.map +1 -0
- package/dist/src/internal/types.js +2 -0
- package/dist/src/internal/types.js.map +1 -0
- package/dist/src/internal/utils.d.ts +10 -0
- package/dist/src/internal/utils.d.ts.map +1 -0
- package/dist/src/internal/utils.js +37 -0
- package/dist/src/internal/utils.js.map +1 -0
- package/dist/src/internal/watch.d.ts +6 -0
- package/dist/src/internal/watch.d.ts.map +1 -0
- package/dist/src/internal/watch.js +19 -0
- package/dist/src/internal/watch.js.map +1 -0
- package/dist/src/operations/base.d.ts +7 -0
- package/dist/src/operations/base.d.ts.map +1 -0
- package/dist/src/operations/base.js +11 -0
- package/dist/src/operations/base.js.map +1 -0
- package/dist/src/operations/filter/operands/base.d.ts +8 -0
- package/dist/src/operations/filter/operands/base.d.ts.map +1 -0
- package/dist/src/operations/filter/operands/base.js +15 -0
- package/dist/src/operations/filter/operands/base.js.map +1 -0
- package/dist/src/operations/filter/operands/boolean.d.ts +11 -0
- package/dist/src/operations/filter/operands/boolean.d.ts.map +1 -0
- package/dist/src/operations/filter/operands/boolean.js +36 -0
- package/dist/src/operations/filter/operands/boolean.js.map +1 -0
- package/dist/src/operations/filter/operands/number.d.ts +14 -0
- package/dist/src/operations/filter/operands/number.d.ts.map +1 -0
- package/dist/src/operations/filter/operands/number.js +51 -0
- package/dist/src/operations/filter/operands/number.js.map +1 -0
- package/dist/src/operations/filter/operands/string.d.ts +14 -0
- package/dist/src/operations/filter/operands/string.d.ts.map +1 -0
- package/dist/src/operations/filter/operands/string.js +52 -0
- package/dist/src/operations/filter/operands/string.js.map +1 -0
- package/dist/src/operations/filter/state.d.ts +17 -0
- package/dist/src/operations/filter/state.d.ts.map +1 -0
- package/dist/src/operations/filter/state.js +42 -0
- package/dist/src/operations/filter/state.js.map +1 -0
- package/dist/src/operations/filter/tree.d.ts +17 -0
- package/dist/src/operations/filter/tree.d.ts.map +1 -0
- package/dist/src/operations/filter/tree.js +44 -0
- package/dist/src/operations/filter/tree.js.map +1 -0
- package/dist/src/operations/filter/types.d.ts +44 -0
- package/dist/src/operations/filter/types.d.ts.map +1 -0
- package/dist/src/operations/filter/types.js +2 -0
- package/dist/src/operations/filter/types.js.map +1 -0
- package/dist/src/operations/filter.d.ts +9 -0
- package/dist/src/operations/filter.d.ts.map +1 -0
- package/dist/src/operations/filter.js +22 -0
- package/dist/src/operations/filter.js.map +1 -0
- package/dist/src/operations/sort/types.d.ts +38 -0
- package/dist/src/operations/sort/types.d.ts.map +1 -0
- package/dist/src/operations/sort/types.js +2 -0
- package/dist/src/operations/sort/types.js.map +1 -0
- package/dist/src/operations/sort.d.ts +10 -0
- package/dist/src/operations/sort.d.ts.map +1 -0
- package/dist/src/operations/sort.js +37 -0
- package/dist/src/operations/sort.js.map +1 -0
- package/dist/src/styles/body-cell/body-cell-styles.d.ts +3 -0
- package/dist/src/styles/body-cell/body-cell-styles.d.ts.map +1 -0
- package/dist/src/styles/body-cell/body-cell-styles.js +70 -0
- package/dist/src/styles/body-cell/body-cell-styles.js.map +1 -0
- package/dist/src/styles/body-row/body-row-styles.d.ts +3 -0
- package/dist/src/styles/body-row/body-row-styles.d.ts.map +1 -0
- package/dist/src/styles/body-row/body-row-styles.js +38 -0
- package/dist/src/styles/body-row/body-row-styles.js.map +1 -0
- package/dist/src/styles/filter-row/filter-row-styles.d.ts +3 -0
- package/dist/src/styles/filter-row/filter-row-styles.d.ts.map +1 -0
- package/dist/src/styles/filter-row/filter-row-styles.js +96 -0
- package/dist/src/styles/filter-row/filter-row-styles.js.map +1 -0
- package/dist/src/styles/grid/themes/light/grid.bootstrap-styles.d.ts +3 -0
- package/dist/src/styles/grid/themes/light/grid.bootstrap-styles.d.ts.map +1 -0
- package/dist/src/styles/grid/themes/light/grid.bootstrap-styles.js +82 -0
- package/dist/src/styles/grid/themes/light/grid.bootstrap-styles.js.map +1 -0
- package/dist/src/styles/grid/themes/light/grid.fluent-styles.d.ts +3 -0
- package/dist/src/styles/grid/themes/light/grid.fluent-styles.d.ts.map +1 -0
- package/dist/src/styles/grid/themes/light/grid.fluent-styles.js +82 -0
- package/dist/src/styles/grid/themes/light/grid.fluent-styles.js.map +1 -0
- package/dist/src/styles/grid/themes/light/grid.indigo-styles.d.ts +3 -0
- package/dist/src/styles/grid/themes/light/grid.indigo-styles.d.ts.map +1 -0
- package/dist/src/styles/grid/themes/light/grid.indigo-styles.js +82 -0
- package/dist/src/styles/grid/themes/light/grid.indigo-styles.js.map +1 -0
- package/dist/src/styles/grid/themes/light/grid.material-styles.d.ts +3 -0
- package/dist/src/styles/grid/themes/light/grid.material-styles.d.ts.map +1 -0
- package/dist/src/styles/grid/themes/light/grid.material-styles.js +82 -0
- package/dist/src/styles/grid/themes/light/grid.material-styles.js.map +1 -0
- package/dist/src/styles/header-cell/header-cell-styles.d.ts +3 -0
- package/dist/src/styles/header-cell/header-cell-styles.d.ts.map +1 -0
- package/dist/src/styles/header-cell/header-cell-styles.js +141 -0
- package/dist/src/styles/header-cell/header-cell-styles.js.map +1 -0
- package/dist/src/styles/header-row/header-row.base-styles.d.ts +3 -0
- package/dist/src/styles/header-row/header-row.base-styles.d.ts.map +1 -0
- package/dist/src/styles/header-row/header-row.base-styles.js +35 -0
- package/dist/src/styles/header-row/header-row.base-styles.js.map +1 -0
- package/package.json +93 -0
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
export default css `/* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */
|
|
3
|
+
:host {
|
|
4
|
+
--is-large: clamp(0, (var(--component-size, 1) + 1) - var(--ig-size-large, 3), 1);
|
|
5
|
+
--is-medium:
|
|
6
|
+
min(
|
|
7
|
+
clamp(0, (var(--component-size, 1) + 1) - var(--ig-size-medium, 2), 1),
|
|
8
|
+
clamp(0, var(--ig-size-large, 3) - var(--component-size, 1), 1)
|
|
9
|
+
);
|
|
10
|
+
--is-small: clamp(0, var(--ig-size-medium) - var(--component-size, 1), 1);
|
|
11
|
+
--component-size: 3;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:host {
|
|
15
|
+
display: -webkit-box;
|
|
16
|
+
display: -ms-flexbox;
|
|
17
|
+
display: flex;
|
|
18
|
+
-webkit-box-align: center;
|
|
19
|
+
-ms-flex-align: center;
|
|
20
|
+
align-items: center;
|
|
21
|
+
position: relative;
|
|
22
|
+
-webkit-border-end: var(--igx-header-border-width, var(--header-border-width)) var(--igx-header-border-style, var(--header-border-style)) var(--igx-header-border-color, var(--header-border-color));
|
|
23
|
+
border-inline-end: var(--igx-header-border-width, var(--header-border-width)) var(--igx-header-border-style, var(--header-border-style)) var(--igx-header-border-color, var(--header-border-color));
|
|
24
|
+
font-weight: 600;
|
|
25
|
+
font-size: 0.75rem;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
:host(:last-of-type) {
|
|
29
|
+
-webkit-border-end: none;
|
|
30
|
+
border-inline-end: none;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
[part~=content] {
|
|
34
|
+
display: -webkit-box;
|
|
35
|
+
display: -ms-flexbox;
|
|
36
|
+
display: flex;
|
|
37
|
+
-webkit-box-align: center;
|
|
38
|
+
-ms-flex-align: center;
|
|
39
|
+
align-items: center;
|
|
40
|
+
-webkit-box-pack: justify;
|
|
41
|
+
-ms-flex-pack: justify;
|
|
42
|
+
justify-content: space-between;
|
|
43
|
+
width: 100%;
|
|
44
|
+
height: 100%;
|
|
45
|
+
padding: 0 max(var(--is-large, 1) * 1.5rem, var(--is-medium, 1) * 1rem, var(--is-small, 1) * 0.5rem);
|
|
46
|
+
font-weight: 500;
|
|
47
|
+
overflow: hidden;
|
|
48
|
+
-webkit-user-select: none;
|
|
49
|
+
-moz-user-select: none;
|
|
50
|
+
-ms-user-select: none;
|
|
51
|
+
user-select: none;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
[part~=title] {
|
|
55
|
+
display: block;
|
|
56
|
+
position: relative;
|
|
57
|
+
cursor: initial;
|
|
58
|
+
white-space: nowrap;
|
|
59
|
+
-o-text-overflow: ellipsis;
|
|
60
|
+
text-overflow: ellipsis;
|
|
61
|
+
overflow: hidden;
|
|
62
|
+
min-width: 3ch;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
[part~=actions] {
|
|
66
|
+
display: -webkit-box;
|
|
67
|
+
display: -ms-flexbox;
|
|
68
|
+
display: flex;
|
|
69
|
+
gap: 0.25rem;
|
|
70
|
+
-webkit-box-align: center;
|
|
71
|
+
-ms-flex-align: center;
|
|
72
|
+
align-items: center;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
[part~=action] {
|
|
76
|
+
cursor: pointer;
|
|
77
|
+
opacity: 0.7;
|
|
78
|
+
-webkit-transition: opacity 0.25s ease-in-out;
|
|
79
|
+
-o-transition: opacity 0.25s ease-in-out;
|
|
80
|
+
transition: opacity 0.25s ease-in-out;
|
|
81
|
+
}
|
|
82
|
+
[part~=action]:hover, [part~=action]:focus {
|
|
83
|
+
opacity: 1;
|
|
84
|
+
}
|
|
85
|
+
[part~=action] igc-icon {
|
|
86
|
+
--size: 0.9375rem;
|
|
87
|
+
color: var(--igx-icon-color, var(--icon-color));
|
|
88
|
+
}
|
|
89
|
+
[part~=action] igc-icon::after {
|
|
90
|
+
content: attr(data-sortIndex);
|
|
91
|
+
position: absolute;
|
|
92
|
+
top: -5px;
|
|
93
|
+
inset-inline-end: -1px;
|
|
94
|
+
font-size: 0.625rem;
|
|
95
|
+
text-align: end;
|
|
96
|
+
font-family: sans-serif;
|
|
97
|
+
line-height: 0.625rem;
|
|
98
|
+
color: var(--igx-sorted-header-icon-color, var(--sorted-header-icon-color));
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
[part~=sorted],
|
|
102
|
+
[part~=filtered] {
|
|
103
|
+
color: var(--igx-sorted-header-icon-color, var(--sorted-header-icon-color));
|
|
104
|
+
}
|
|
105
|
+
[part~=sorted] igc-icon,
|
|
106
|
+
[part~=filtered] igc-icon {
|
|
107
|
+
color: var(--igx-sorted-header-icon-color, var(--sorted-header-icon-color));
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
[part~=filtered] {
|
|
111
|
+
background: var(--igx-filtering-header-background, var(--filtering-header-background));
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
[part~=action]:empty {
|
|
115
|
+
display: none;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
[part~=resizable] {
|
|
119
|
+
width: 0.25rem;
|
|
120
|
+
height: 100%;
|
|
121
|
+
position: absolute;
|
|
122
|
+
inset-inline-end: -0.125rem;
|
|
123
|
+
z-index: var(--z-index-base);
|
|
124
|
+
cursor: col-resize;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
[part~=filter] {
|
|
128
|
+
position: relative;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
[part~=filter-count] {
|
|
132
|
+
position: absolute;
|
|
133
|
+
top: -5px;
|
|
134
|
+
inset-inline-end: -1px;
|
|
135
|
+
font-size: 0.625rem;
|
|
136
|
+
text-align: end;
|
|
137
|
+
font-family: sans-serif;
|
|
138
|
+
line-height: 0.625rem;
|
|
139
|
+
color: currentcolor;
|
|
140
|
+
}`;
|
|
141
|
+
//# sourceMappingURL=header-cell-styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"header-cell-styles.js","sourceRoot":"","sources":["../../../../src/styles/header-cell/header-cell-styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAC;AAExB,eAAe,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0IhB,CAAC","sourcesContent":["import {css} from 'lit';\n\nexport default css`/* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */\n:host {\n --is-large: clamp(0, (var(--component-size, 1) + 1) - var(--ig-size-large, 3), 1);\n --is-medium:\n min(\n clamp(0, (var(--component-size, 1) + 1) - var(--ig-size-medium, 2), 1),\n clamp(0, var(--ig-size-large, 3) - var(--component-size, 1), 1)\n );\n --is-small: clamp(0, var(--ig-size-medium) - var(--component-size, 1), 1);\n --component-size: 3;\n}\n\n:host {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n position: relative;\n -webkit-border-end: var(--igx-header-border-width, var(--header-border-width)) var(--igx-header-border-style, var(--header-border-style)) var(--igx-header-border-color, var(--header-border-color));\n border-inline-end: var(--igx-header-border-width, var(--header-border-width)) var(--igx-header-border-style, var(--header-border-style)) var(--igx-header-border-color, var(--header-border-color));\n font-weight: 600;\n font-size: 0.75rem;\n}\n\n:host(:last-of-type) {\n -webkit-border-end: none;\n border-inline-end: none;\n}\n\n[part~=content] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n width: 100%;\n height: 100%;\n padding: 0 max(var(--is-large, 1) * 1.5rem, var(--is-medium, 1) * 1rem, var(--is-small, 1) * 0.5rem);\n font-weight: 500;\n overflow: hidden;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n[part~=title] {\n display: block;\n position: relative;\n cursor: initial;\n white-space: nowrap;\n -o-text-overflow: ellipsis;\n text-overflow: ellipsis;\n overflow: hidden;\n min-width: 3ch;\n}\n\n[part~=actions] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n gap: 0.25rem;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n\n[part~=action] {\n cursor: pointer;\n opacity: 0.7;\n -webkit-transition: opacity 0.25s ease-in-out;\n -o-transition: opacity 0.25s ease-in-out;\n transition: opacity 0.25s ease-in-out;\n}\n[part~=action]:hover, [part~=action]:focus {\n opacity: 1;\n}\n[part~=action] igc-icon {\n --size: 0.9375rem;\n color: var(--igx-icon-color, var(--icon-color));\n}\n[part~=action] igc-icon::after {\n content: attr(data-sortIndex);\n position: absolute;\n top: -5px;\n inset-inline-end: -1px;\n font-size: 0.625rem;\n text-align: end;\n font-family: sans-serif;\n line-height: 0.625rem;\n color: var(--igx-sorted-header-icon-color, var(--sorted-header-icon-color));\n}\n\n[part~=sorted],\n[part~=filtered] {\n color: var(--igx-sorted-header-icon-color, var(--sorted-header-icon-color));\n}\n[part~=sorted] igc-icon,\n[part~=filtered] igc-icon {\n color: var(--igx-sorted-header-icon-color, var(--sorted-header-icon-color));\n}\n\n[part~=filtered] {\n background: var(--igx-filtering-header-background, var(--filtering-header-background));\n}\n\n[part~=action]:empty {\n display: none;\n}\n\n[part~=resizable] {\n width: 0.25rem;\n height: 100%;\n position: absolute;\n inset-inline-end: -0.125rem;\n z-index: var(--z-index-base);\n cursor: col-resize;\n}\n\n[part~=filter] {\n position: relative;\n}\n\n[part~=filter-count] {\n position: absolute;\n top: -5px;\n inset-inline-end: -1px;\n font-size: 0.625rem;\n text-align: end;\n font-family: sans-serif;\n line-height: 0.625rem;\n color: currentcolor;\n}`;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"header-row.base-styles.d.ts","sourceRoot":"","sources":["../../../../src/styles/header-row/header-row.base-styles.ts"],"names":[],"mappings":";AAEA,wBAgCG"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
export default css `/* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */
|
|
3
|
+
:host {
|
|
4
|
+
--is-large: clamp(0, (var(--component-size, 1) + 1) - var(--ig-size-large, 3), 1);
|
|
5
|
+
--is-medium:
|
|
6
|
+
min(
|
|
7
|
+
clamp(0, (var(--component-size, 1) + 1) - var(--ig-size-medium, 2), 1),
|
|
8
|
+
clamp(0, var(--ig-size-large, 3) - var(--component-size, 1), 1)
|
|
9
|
+
);
|
|
10
|
+
--is-small: clamp(0, var(--ig-size-medium) - var(--component-size, 1), 1);
|
|
11
|
+
--component-size: 3;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:host {
|
|
15
|
+
display: grid;
|
|
16
|
+
grid-row: header-row;
|
|
17
|
+
min-height: max(var(--is-large, 1) * 3.125rem, var(--is-medium, 1) * 2.125rem, var(--is-small, 1) * 1.5rem);
|
|
18
|
+
background: var(--igx-header-background, var(--header-background));
|
|
19
|
+
color: var(--igx-header-text-color, var(--header-text-color));
|
|
20
|
+
contain: content;
|
|
21
|
+
-webkit-border-after: var(--igx-header-border-width, var(--header-border-width)) var(--igx-header-border-style, var(--header-border-style)) var(--igx-header-border-color, var(--header-border-color));
|
|
22
|
+
border-block-end: var(--igx-header-border-width, var(--header-border-width)) var(--igx-header-border-style, var(--header-border-style)) var(--igx-header-border-color, var(--header-border-color));
|
|
23
|
+
z-index: var(--z-index-base);
|
|
24
|
+
-webkit-padding-end: var(--scrollbar-offset);
|
|
25
|
+
padding-inline-end: var(--scrollbar-offset);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
:host(:focus) {
|
|
29
|
+
outline: none;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
[part=filtered] {
|
|
33
|
+
background: var(--igx-filtering-header-background, var(--filtering-header-background));
|
|
34
|
+
}`;
|
|
35
|
+
//# sourceMappingURL=header-row.base-styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"header-row.base-styles.js","sourceRoot":"","sources":["../../../../src/styles/header-row/header-row.base-styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAC;AAExB,eAAe,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgChB,CAAC","sourcesContent":["import {css} from 'lit';\n\nexport default css`/* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */\n:host {\n --is-large: clamp(0, (var(--component-size, 1) + 1) - var(--ig-size-large, 3), 1);\n --is-medium:\n min(\n clamp(0, (var(--component-size, 1) + 1) - var(--ig-size-medium, 2), 1),\n clamp(0, var(--ig-size-large, 3) - var(--component-size, 1), 1)\n );\n --is-small: clamp(0, var(--ig-size-medium) - var(--component-size, 1), 1);\n --component-size: 3;\n}\n\n:host {\n display: grid;\n grid-row: header-row;\n min-height: max(var(--is-large, 1) * 3.125rem, var(--is-medium, 1) * 2.125rem, var(--is-small, 1) * 1.5rem);\n background: var(--igx-header-background, var(--header-background));\n color: var(--igx-header-text-color, var(--header-text-color));\n contain: content;\n -webkit-border-after: var(--igx-header-border-width, var(--header-border-width)) var(--igx-header-border-style, var(--header-border-style)) var(--igx-header-border-color, var(--header-border-color));\n border-block-end: var(--igx-header-border-width, var(--header-border-width)) var(--igx-header-border-style, var(--header-border-style)) var(--igx-header-border-color, var(--header-border-color));\n z-index: var(--z-index-base);\n -webkit-padding-end: var(--scrollbar-offset);\n padding-inline-end: var(--scrollbar-offset);\n}\n\n:host(:focus) {\n outline: none;\n}\n\n[part=filtered] {\n background: var(--igx-filtering-header-background, var(--filtering-header-background));\n}`;\n"]}
|
package/package.json
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "apex-grid",
|
|
3
|
+
"version": "1.0.0-rc.0",
|
|
4
|
+
"description": "Web component data grid following open-wc recommendations",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"lit",
|
|
7
|
+
"web-component",
|
|
8
|
+
"lit-element"
|
|
9
|
+
],
|
|
10
|
+
"license": "SEE LICENSE IN LICENSE.mds",
|
|
11
|
+
"author": "apex-grid",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": "./dist/src/index.js"
|
|
14
|
+
},
|
|
15
|
+
"type": "module",
|
|
16
|
+
"main": "dist/src/index.js",
|
|
17
|
+
"module": "dist/src/index.js",
|
|
18
|
+
"files": [
|
|
19
|
+
"/dist/",
|
|
20
|
+
"/dist/bundle.*",
|
|
21
|
+
"!/dist/test/"
|
|
22
|
+
],
|
|
23
|
+
"scripts": {
|
|
24
|
+
"analyze": "cem analyze --litelement --globs \"src/**/*.{js,ts}\"",
|
|
25
|
+
"build": "npm run build:tsc && npm run dev:vite && npm run typedoc",
|
|
26
|
+
"build:tsc": "tsc",
|
|
27
|
+
"dev:vite": "vite build",
|
|
28
|
+
"format": "npm run format:eslint && npm run format:prettier && npm run format:stylelint",
|
|
29
|
+
"format:eslint": "eslint \"**/*.{js,ts,html}\" --fix --ignore-path .eslintignore",
|
|
30
|
+
"format:prettier": "prettier \"**/*.{js,ts,json,html,md}\" --write --ignore-path .eslintignore",
|
|
31
|
+
"format:stylelint": "stylelint \"**/*.{scss,css}\" --fix --allow-empty-input --ignore-path .eslintignore",
|
|
32
|
+
"lint": "npm run lint:eslint && npm run lint:prettier && npm run lint:stylelint",
|
|
33
|
+
"lint:eslint": "eslint \"**/*.{js,ts,html}\" --ignore-path .eslintignore",
|
|
34
|
+
"lint:prettier": "prettier \"**/*.{js,ts,json,html,md}\" --check --ignore-path .eslintignore",
|
|
35
|
+
"lint:stylelint": "stylelint \"**/*.{scss,css}\" --allow-empty-input --ignore-path .eslintignore",
|
|
36
|
+
"preview:vite": "vite preview",
|
|
37
|
+
"sass:watch": "sass-style-template -j ts",
|
|
38
|
+
"start": "concurrently -k -r \"npm:sass:watch\" \"npm:vite\"",
|
|
39
|
+
"start:wds": "tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"npm:sass:watch\" \"npm:wds\"",
|
|
40
|
+
"test": "tsc && wtr --coverage",
|
|
41
|
+
"test:watch": "tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wtr --watch\"",
|
|
42
|
+
"typedoc": "typedoc",
|
|
43
|
+
"vite": "vite",
|
|
44
|
+
"wds": "web-dev-server",
|
|
45
|
+
"prepare": "husky install"
|
|
46
|
+
},
|
|
47
|
+
"lint-staged": {
|
|
48
|
+
"**/*.{js,ts,html}": [
|
|
49
|
+
"npm run format:eslint"
|
|
50
|
+
],
|
|
51
|
+
"**/*.{js,ts,json,html,md}": [
|
|
52
|
+
"npm run format:prettier"
|
|
53
|
+
],
|
|
54
|
+
"**/*.{scss,css}": [
|
|
55
|
+
"npm run format:stylelint"
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
"dependencies": {
|
|
59
|
+
"@lit-labs/context": "^0.1.3",
|
|
60
|
+
"@lit-labs/virtualizer": "^0.7.2",
|
|
61
|
+
"igniteui-theming": "^1.1.4",
|
|
62
|
+
"igniteui-webcomponents": "^4.0.0",
|
|
63
|
+
"lit": "^2.4.1"
|
|
64
|
+
},
|
|
65
|
+
"devDependencies": {
|
|
66
|
+
"@blockquote/rollup-plugin-total-bundlesize": "^1.0.0",
|
|
67
|
+
"@blockquote/sass-style-template": "^2.1.2",
|
|
68
|
+
"@blockquote/test-runner-mocha-style-reporter": "^1.4.1",
|
|
69
|
+
"@custom-elements-manifest/analyzer": "^0.6.6",
|
|
70
|
+
"@open-wc/eslint-config": "^9.0.0",
|
|
71
|
+
"@open-wc/testing": "^3.1.7",
|
|
72
|
+
"@typescript-eslint/eslint-plugin": "^5.44.0",
|
|
73
|
+
"@typescript-eslint/parser": "^5.44.0",
|
|
74
|
+
"@web/dev-server": "^0.1.35",
|
|
75
|
+
"@web/test-runner": "^0.15.0",
|
|
76
|
+
"@web/test-runner-playwright": "^0.9.0",
|
|
77
|
+
"concurrently": "^7.6.0",
|
|
78
|
+
"eslint": "^8.28.0",
|
|
79
|
+
"eslint-config-prettier": "^8.5.0",
|
|
80
|
+
"eslint-plugin-log-filenames": "^1.0.6",
|
|
81
|
+
"husky": "^8.0.2",
|
|
82
|
+
"lint-staged": "^13.0.3",
|
|
83
|
+
"prettier": "^2.8.0",
|
|
84
|
+
"sinon": "^14.0.2",
|
|
85
|
+
"stylelint": "^14.15.0",
|
|
86
|
+
"stylelint-config-standard-scss": "^6.1.0",
|
|
87
|
+
"tslib": "^2.4.1",
|
|
88
|
+
"typedoc": "^0.23.21",
|
|
89
|
+
"typescript": "^4.9.3",
|
|
90
|
+
"vite": "^3.2.4"
|
|
91
|
+
},
|
|
92
|
+
"customElements": "custom-elements.json"
|
|
93
|
+
}
|