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
package/dist/bundle.js
ADDED
|
@@ -0,0 +1,2069 @@
|
|
|
1
|
+
import { html as n, nothing as g, LitElement as S, css as y } from "lit";
|
|
2
|
+
import { createContext as je, contextProvided as he, ContextProvider as Ve } from "@lit-labs/context";
|
|
3
|
+
import { customElement as _, property as o, queryAll as ce, query as A, state as Ze, eventOptions as Qe } from "lit/decorators.js";
|
|
4
|
+
import { styleMap as R } from "lit/directives/style-map.js";
|
|
5
|
+
import { registerIconFromText as Ke, IgcInputComponent as fe, IgcDropdownComponent as we, defineComponents as Xe, IgcButtonComponent as Ye, IgcChipComponent as Je, IgcIconComponent as et, IgcDropdownItemComponent as tt } from "igniteui-webcomponents";
|
|
6
|
+
import { LitVirtualizer as it } from "@lit-labs/virtualizer";
|
|
7
|
+
import { map as ze } from "lit/directives/map.js";
|
|
8
|
+
import { ifDefined as ke } from "lit/directives/if-defined.js";
|
|
9
|
+
import { themes as rt } from "igniteui-webcomponents/theming/theming-decorator.js";
|
|
10
|
+
const Ce = "apex-grid", _e = "apex-grid-body", Ee = "apex-grid-header-row", $e = "apex-grid-header", Oe = "apex-grid-row", Se = "apex-grid-cell", Ae = "apex-filter-row", at = Symbol(), z = "pipeline", ye = "arrow-upward", st = "arrow-downward", qe = 80, O = Object.freeze({ column: "", row: -1 }), Z = Object.freeze({
|
|
11
|
+
key: at,
|
|
12
|
+
type: "string",
|
|
13
|
+
resizable: !1,
|
|
14
|
+
hidden: !1,
|
|
15
|
+
sort: !1,
|
|
16
|
+
filter: !1
|
|
17
|
+
}), xe = /* @__PURE__ */ new Map([
|
|
18
|
+
["previous", O],
|
|
19
|
+
["current", O]
|
|
20
|
+
]);
|
|
21
|
+
class ge {
|
|
22
|
+
get(e) {
|
|
23
|
+
return this[e];
|
|
24
|
+
}
|
|
25
|
+
conditions() {
|
|
26
|
+
return Object.keys(this).filter((e) => e !== "get" && e !== "default");
|
|
27
|
+
}
|
|
28
|
+
*[Symbol.iterator]() {
|
|
29
|
+
const e = this.conditions();
|
|
30
|
+
for (const t of e)
|
|
31
|
+
yield t;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
function f(i) {
|
|
35
|
+
return i != null;
|
|
36
|
+
}
|
|
37
|
+
class lt extends ge {
|
|
38
|
+
constructor() {
|
|
39
|
+
super(...arguments), this.all = {
|
|
40
|
+
name: "all",
|
|
41
|
+
unary: !0,
|
|
42
|
+
logic: (e) => !0
|
|
43
|
+
}, this.true = {
|
|
44
|
+
name: "true",
|
|
45
|
+
unary: !0,
|
|
46
|
+
logic: (e) => e === !0
|
|
47
|
+
}, this.false = {
|
|
48
|
+
name: "false",
|
|
49
|
+
unary: !0,
|
|
50
|
+
logic: (e) => e === !1
|
|
51
|
+
}, this.empty = {
|
|
52
|
+
name: "empty",
|
|
53
|
+
unary: !0,
|
|
54
|
+
logic: (e) => !f(e)
|
|
55
|
+
}, this.notEmpty = {
|
|
56
|
+
name: "nonEmpty",
|
|
57
|
+
unary: !0,
|
|
58
|
+
logic: (e) => f(e)
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
get default() {
|
|
62
|
+
return this.all;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
class nt extends ge {
|
|
66
|
+
constructor() {
|
|
67
|
+
super(...arguments), this.equals = {
|
|
68
|
+
name: "equals",
|
|
69
|
+
unary: !1,
|
|
70
|
+
logic: (e, t) => e === t
|
|
71
|
+
}, this.doesNotEqual = {
|
|
72
|
+
name: "doesNotEqual",
|
|
73
|
+
unary: !1,
|
|
74
|
+
logic: (e, t) => e !== t
|
|
75
|
+
}, this.greaterThan = {
|
|
76
|
+
name: "greaterThan",
|
|
77
|
+
unary: !1,
|
|
78
|
+
logic: (e, t) => e > t
|
|
79
|
+
}, this.lessThan = {
|
|
80
|
+
name: "lessThan",
|
|
81
|
+
unary: !1,
|
|
82
|
+
logic: (e, t) => e < t
|
|
83
|
+
}, this.greaterThanOrEqual = {
|
|
84
|
+
name: "greaterThanOrEqual",
|
|
85
|
+
unary: !1,
|
|
86
|
+
logic: (e, t) => e >= t
|
|
87
|
+
}, this.lessThanOrEqual = {
|
|
88
|
+
name: "lessThanOrEqual",
|
|
89
|
+
unary: !1,
|
|
90
|
+
logic: (e, t) => e <= t
|
|
91
|
+
}, this.empty = {
|
|
92
|
+
name: "empty",
|
|
93
|
+
unary: !0,
|
|
94
|
+
logic: (e) => !f(e) || isNaN(e)
|
|
95
|
+
}, this.notEmpty = {
|
|
96
|
+
name: "notEmpty",
|
|
97
|
+
unary: !0,
|
|
98
|
+
logic: (e) => f(e) && !isNaN(e)
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
get default() {
|
|
102
|
+
return this.equals;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
function m(i, e) {
|
|
106
|
+
return e ? i : i.toLowerCase();
|
|
107
|
+
}
|
|
108
|
+
class ot extends ge {
|
|
109
|
+
constructor() {
|
|
110
|
+
super(...arguments), this.contains = {
|
|
111
|
+
name: "contains",
|
|
112
|
+
unary: !1,
|
|
113
|
+
logic: (e, t, r) => m(e, r).includes(m(t, r))
|
|
114
|
+
}, this.doesNotContain = {
|
|
115
|
+
name: "doesNotContain",
|
|
116
|
+
unary: !1,
|
|
117
|
+
logic: (e, t, r) => !m(e, r).includes(m(t, r))
|
|
118
|
+
}, this.startsWith = {
|
|
119
|
+
name: "startsWith",
|
|
120
|
+
unary: !1,
|
|
121
|
+
logic: (e, t, r) => m(e, r).startsWith(m(t, r))
|
|
122
|
+
}, this.endsWith = {
|
|
123
|
+
name: "endsWith",
|
|
124
|
+
unary: !1,
|
|
125
|
+
logic: (e, t, r) => m(e, r).endsWith(m(t, r))
|
|
126
|
+
}, this.equals = {
|
|
127
|
+
name: "equals",
|
|
128
|
+
unary: !1,
|
|
129
|
+
logic: (e, t, r) => m(e, r) === m(t, r)
|
|
130
|
+
}, this.doesNotEqual = {
|
|
131
|
+
name: "doesNotEqual",
|
|
132
|
+
unary: !1,
|
|
133
|
+
logic: (e, t, r) => m(e, r) !== m(t, r)
|
|
134
|
+
}, this.empty = {
|
|
135
|
+
name: "empty",
|
|
136
|
+
unary: !0,
|
|
137
|
+
logic: (e) => !f(e) || e.length < 1
|
|
138
|
+
}, this.notEmpty = {
|
|
139
|
+
name: "notEmpty",
|
|
140
|
+
unary: !0,
|
|
141
|
+
logic: (e) => f(e) && e.length > 0
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
get default() {
|
|
145
|
+
return this.contains;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
function dt(i) {
|
|
149
|
+
return {
|
|
150
|
+
"grid-template-columns": i.filter((e) => !e.hidden).map(({ width: e }) => e ?? "minmax(136px, 1fr)").join(" ")
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
function ht(i) {
|
|
154
|
+
if (i.autoGenerate && i.columns.length < 1) {
|
|
155
|
+
const e = i.data[0] ?? {};
|
|
156
|
+
i.columns = Object.entries(e).map(([t, r]) => ({ key: t, type: typeof r == "boolean" ? "boolean" : typeof r == "number" ? "number" : "string" }));
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
function M(i) {
|
|
160
|
+
return Array.isArray(i) ? i : [i];
|
|
161
|
+
}
|
|
162
|
+
function U(i) {
|
|
163
|
+
switch (i.type) {
|
|
164
|
+
case "boolean":
|
|
165
|
+
return new lt();
|
|
166
|
+
case "number":
|
|
167
|
+
return new nt();
|
|
168
|
+
default:
|
|
169
|
+
return new ot();
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
class ct {
|
|
173
|
+
constructor(e) {
|
|
174
|
+
this.key = e, this.operands = [];
|
|
175
|
+
}
|
|
176
|
+
get empty() {
|
|
177
|
+
return this.operands.length < 1;
|
|
178
|
+
}
|
|
179
|
+
get length() {
|
|
180
|
+
return this.operands.length;
|
|
181
|
+
}
|
|
182
|
+
get all() {
|
|
183
|
+
return Array.from(this.iterator());
|
|
184
|
+
}
|
|
185
|
+
get ands() {
|
|
186
|
+
return this.operands.filter((e) => e.criteria === "and");
|
|
187
|
+
}
|
|
188
|
+
get ors() {
|
|
189
|
+
return this.operands.filter((e) => e.criteria === "or");
|
|
190
|
+
}
|
|
191
|
+
add(e) {
|
|
192
|
+
return e.criteria || (e.criteria = "and"), this.operands.includes(e) ? this : (this.operands.push(e), this);
|
|
193
|
+
}
|
|
194
|
+
remove(e) {
|
|
195
|
+
return this.operands = this.operands.filter((t) => t !== e), this;
|
|
196
|
+
}
|
|
197
|
+
*iterator() {
|
|
198
|
+
for (const e of this.operands)
|
|
199
|
+
yield e;
|
|
200
|
+
}
|
|
201
|
+
[Symbol.iterator]() {
|
|
202
|
+
return this.iterator();
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
class gt {
|
|
206
|
+
constructor() {
|
|
207
|
+
this.state = /* @__PURE__ */ new Map();
|
|
208
|
+
}
|
|
209
|
+
get empty() {
|
|
210
|
+
return this.state.size < 1;
|
|
211
|
+
}
|
|
212
|
+
get keys() {
|
|
213
|
+
return Array.from(this.state.keys());
|
|
214
|
+
}
|
|
215
|
+
get values() {
|
|
216
|
+
return Array.from(this.state.values());
|
|
217
|
+
}
|
|
218
|
+
get ands() {
|
|
219
|
+
return this.values.map((e) => e.ands).flat();
|
|
220
|
+
}
|
|
221
|
+
get ors() {
|
|
222
|
+
return this.values.map((e) => e.ors).flat();
|
|
223
|
+
}
|
|
224
|
+
has(e) {
|
|
225
|
+
return this.state.has(e);
|
|
226
|
+
}
|
|
227
|
+
get(e) {
|
|
228
|
+
return this.state.get(e);
|
|
229
|
+
}
|
|
230
|
+
delete(e) {
|
|
231
|
+
return this.state.delete(e);
|
|
232
|
+
}
|
|
233
|
+
clear() {
|
|
234
|
+
this.state.clear();
|
|
235
|
+
}
|
|
236
|
+
set(e) {
|
|
237
|
+
if (this.has(e.key)) {
|
|
238
|
+
this.get(e.key)?.add(e);
|
|
239
|
+
return;
|
|
240
|
+
}
|
|
241
|
+
this.state.set(e.key, new ct(e.key).add(e));
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
class mt {
|
|
245
|
+
constructor(e) {
|
|
246
|
+
this.host = e, this.state = new gt(), this.host.addController(this);
|
|
247
|
+
}
|
|
248
|
+
get filterRow() {
|
|
249
|
+
return this.host.filterRow;
|
|
250
|
+
}
|
|
251
|
+
#e(e) {
|
|
252
|
+
return this.host.emitEvent("filtering", {
|
|
253
|
+
detail: {
|
|
254
|
+
expression: e,
|
|
255
|
+
state: this.get(e.key)
|
|
256
|
+
},
|
|
257
|
+
cancelable: !0
|
|
258
|
+
});
|
|
259
|
+
}
|
|
260
|
+
#t(e) {
|
|
261
|
+
return this.host.emitEvent("filtered", { detail: e });
|
|
262
|
+
}
|
|
263
|
+
_filter(e) {
|
|
264
|
+
M(e).forEach((t) => this.state.set(t)), this.host.requestUpdate(z);
|
|
265
|
+
}
|
|
266
|
+
hostConnected() {
|
|
267
|
+
}
|
|
268
|
+
get(e) {
|
|
269
|
+
return this.state.get(e);
|
|
270
|
+
}
|
|
271
|
+
reset(e) {
|
|
272
|
+
e ? this.state.delete(e) : this.state.clear();
|
|
273
|
+
}
|
|
274
|
+
setActiveColumn(e) {
|
|
275
|
+
e?.filter && this.filterRow?.active && (this.filterRow.column = e, this.filterRow.expression = this.getDefaultExpression(e), this.host.requestUpdate());
|
|
276
|
+
}
|
|
277
|
+
getDefaultExpression(e) {
|
|
278
|
+
const t = typeof e.filter == "boolean" ? !1 : Boolean(e.filter?.caseSensitive);
|
|
279
|
+
return {
|
|
280
|
+
key: e.key,
|
|
281
|
+
condition: U(e).default,
|
|
282
|
+
caseSensitive: t
|
|
283
|
+
};
|
|
284
|
+
}
|
|
285
|
+
removeExpression(e) {
|
|
286
|
+
const t = this.get(e.key);
|
|
287
|
+
t?.remove(e), t?.empty && this.reset(t.key);
|
|
288
|
+
}
|
|
289
|
+
async filterWithEvent(e) {
|
|
290
|
+
!this.#e(e) || (this._filter(e), await this.host.updateComplete, this.#t(this.get(e.key)));
|
|
291
|
+
}
|
|
292
|
+
filter(e) {
|
|
293
|
+
this._filter(
|
|
294
|
+
M(e).map(
|
|
295
|
+
(t) => Object.assign(this.getDefaultExpression(this.host.getColumn(t.key)), t)
|
|
296
|
+
)
|
|
297
|
+
);
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
class pt {
|
|
301
|
+
constructor(e) {
|
|
302
|
+
this.host = e, this.handlers = new Map(
|
|
303
|
+
Object.entries({
|
|
304
|
+
ArrowDown: this.arrowDown,
|
|
305
|
+
ArrowUp: this.arrowUp,
|
|
306
|
+
ArrowLeft: this.arrowLeft,
|
|
307
|
+
ArrowRight: this.arrowRight,
|
|
308
|
+
Home: this.home,
|
|
309
|
+
End: this.end
|
|
310
|
+
})
|
|
311
|
+
), this.state = xe, this._active = O, this.host.addController(this);
|
|
312
|
+
}
|
|
313
|
+
get nextNode() {
|
|
314
|
+
const e = this.state.get("current");
|
|
315
|
+
return e === O ? { column: this.firstColumn, row: 0 } : { ...e };
|
|
316
|
+
}
|
|
317
|
+
get columns() {
|
|
318
|
+
return this.host.columns;
|
|
319
|
+
}
|
|
320
|
+
get firstColumn() {
|
|
321
|
+
return this.host.getColumn(0).key ?? "";
|
|
322
|
+
}
|
|
323
|
+
getPreviousColumn(e) {
|
|
324
|
+
return this.columns[Math.max(this.columns.indexOf(this.host.getColumn(e)) - 1, 0)].key;
|
|
325
|
+
}
|
|
326
|
+
getNextColumn(e) {
|
|
327
|
+
return this.columns[Math.min(this.columns.indexOf(this.host.getColumn(e)) + 1, this.columns.length - 1)].key;
|
|
328
|
+
}
|
|
329
|
+
get active() {
|
|
330
|
+
return this._active;
|
|
331
|
+
}
|
|
332
|
+
set active(e) {
|
|
333
|
+
this._active = e, this.state.set("previous", this._active), this.state.set("current", e), this.host.requestUpdate();
|
|
334
|
+
}
|
|
335
|
+
isNotSentinel(e) {
|
|
336
|
+
return e !== O;
|
|
337
|
+
}
|
|
338
|
+
home(e) {
|
|
339
|
+
this.active = Object.assign(this.nextNode, { row: 0 }), e.scrollToIndex(this.active.row, "center");
|
|
340
|
+
}
|
|
341
|
+
end(e) {
|
|
342
|
+
this.active = Object.assign(this.nextNode, { row: this.host.totalItems - 1 }), e.scrollToIndex(this.active.row, "center");
|
|
343
|
+
}
|
|
344
|
+
arrowDown(e) {
|
|
345
|
+
const t = this.nextNode;
|
|
346
|
+
this.active = Object.assign(this.nextNode, {
|
|
347
|
+
row: Math.min(t.row + 1, this.host.totalItems - 1)
|
|
348
|
+
}), e.scrollToIndex(t.row, "center");
|
|
349
|
+
}
|
|
350
|
+
arrowUp(e) {
|
|
351
|
+
const t = this.nextNode;
|
|
352
|
+
this.active = Object.assign(t, { row: Math.max(0, t.row - 1) }), e.scrollToIndex(t.row, "center");
|
|
353
|
+
}
|
|
354
|
+
arrowLeft() {
|
|
355
|
+
const e = this.nextNode;
|
|
356
|
+
this.active = Object.assign(e, { column: this.getPreviousColumn(e.column) });
|
|
357
|
+
}
|
|
358
|
+
arrowRight() {
|
|
359
|
+
const e = this.nextNode;
|
|
360
|
+
this.active = Object.assign(e, { column: this.getNextColumn(e.column) });
|
|
361
|
+
}
|
|
362
|
+
hostConnected() {
|
|
363
|
+
}
|
|
364
|
+
hostDisconnected() {
|
|
365
|
+
this.active = O, this.state = xe;
|
|
366
|
+
}
|
|
367
|
+
navigate(e, t) {
|
|
368
|
+
this.handlers.has(e.key) && (e.preventDefault(), this.handlers.get(e.key).call(this, t));
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
class vt {
|
|
372
|
+
constructor(e) {
|
|
373
|
+
this.host = e, this.state = /* @__PURE__ */ new Map(), this.host.addController(this);
|
|
374
|
+
}
|
|
375
|
+
get #e() {
|
|
376
|
+
return this.host.sortConfiguration.multiple;
|
|
377
|
+
}
|
|
378
|
+
get #t() {
|
|
379
|
+
return this.host.sortConfiguration.triState;
|
|
380
|
+
}
|
|
381
|
+
#i(e) {
|
|
382
|
+
const t = (r) => r !== void 0 && typeof r != "boolean";
|
|
383
|
+
return {
|
|
384
|
+
caseSensitive: t(e) ? e.caseSensitive : !1,
|
|
385
|
+
comparer: t(e) ? e.comparer : void 0
|
|
386
|
+
};
|
|
387
|
+
}
|
|
388
|
+
#r(e) {
|
|
389
|
+
const t = this.host.getColumn(e)?.sort;
|
|
390
|
+
return {
|
|
391
|
+
key: e,
|
|
392
|
+
direction: "ascending",
|
|
393
|
+
...this.#i(t)
|
|
394
|
+
};
|
|
395
|
+
}
|
|
396
|
+
#a(e) {
|
|
397
|
+
return this.#t ? e === "ascending" ? "descending" : e === "descending" ? "none" : "ascending" : e === "ascending" ? "descending" : "ascending";
|
|
398
|
+
}
|
|
399
|
+
#s(e) {
|
|
400
|
+
return this.host.emitEvent("sorting", { detail: e, cancelable: !0 });
|
|
401
|
+
}
|
|
402
|
+
#l(e) {
|
|
403
|
+
return this.host.emitEvent("sorted", { detail: e });
|
|
404
|
+
}
|
|
405
|
+
async sortFromHeaderClick(e) {
|
|
406
|
+
const t = this.prepareExpression(e);
|
|
407
|
+
!this.#s(t) || (this.#e || this.reset(), t.direction == "none" ? (this.reset(t.key), this.host.requestUpdate(z)) : this._sort(t), await this.host.updateComplete, this.#l(t));
|
|
408
|
+
}
|
|
409
|
+
prepareExpression({ key: e, sort: t }) {
|
|
410
|
+
if (this.state.has(e)) {
|
|
411
|
+
const r = this.state.get(e);
|
|
412
|
+
return Object.assign(r, {
|
|
413
|
+
direction: this.#a(r.direction),
|
|
414
|
+
...this.#i(t)
|
|
415
|
+
});
|
|
416
|
+
}
|
|
417
|
+
return this.#r(e);
|
|
418
|
+
}
|
|
419
|
+
reset(e) {
|
|
420
|
+
e ? this.state.delete(e) : this.state.clear();
|
|
421
|
+
}
|
|
422
|
+
_sort(e) {
|
|
423
|
+
M(e).forEach((t) => this.state.set(t.key, { ...t })), this.host.requestUpdate(z);
|
|
424
|
+
}
|
|
425
|
+
sort(e) {
|
|
426
|
+
this._sort(
|
|
427
|
+
M(e).map(
|
|
428
|
+
(t) => Object.assign(this.state.get(t.key) ?? this.#r(t.key), t)
|
|
429
|
+
)
|
|
430
|
+
);
|
|
431
|
+
}
|
|
432
|
+
hostConnected() {
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
class ut {
|
|
436
|
+
constructor(e) {
|
|
437
|
+
this.host = e, this.indicatorActive = !1, this.indicatorOffset = 0, this.host.addController(this);
|
|
438
|
+
}
|
|
439
|
+
#e(e, t) {
|
|
440
|
+
const r = this.host.rows.map((a) => a.cells.find((s) => s.column.key === e)).reduce((a, s) => s.offsetWidth > a ? s.offsetWidth : a, 0);
|
|
441
|
+
return Math.max(qe, r, t);
|
|
442
|
+
}
|
|
443
|
+
start(e) {
|
|
444
|
+
this.indicatorActive = !0, this.indicatorOffset = e.offsetLeft + e.offsetWidth, this.host.requestUpdate();
|
|
445
|
+
}
|
|
446
|
+
stop() {
|
|
447
|
+
this.indicatorActive = !1, this.host.requestUpdate();
|
|
448
|
+
}
|
|
449
|
+
resize(e, t, r) {
|
|
450
|
+
r && (this.indicatorOffset = r), e.width = `${t}px`, this.host.requestUpdate();
|
|
451
|
+
}
|
|
452
|
+
async autosize(e, t) {
|
|
453
|
+
e.width = "max-content", this.host.requestUpdate(), await this.host.updateComplete, e.width = `${this.#e(e.key, t.offsetWidth)}px`, this.host.requestUpdate();
|
|
454
|
+
}
|
|
455
|
+
hostConnected() {
|
|
456
|
+
}
|
|
457
|
+
renderIndicator() {
|
|
458
|
+
return this.indicatorActive ? n`<div
|
|
459
|
+
part="resize-indicator"
|
|
460
|
+
style=${R({
|
|
461
|
+
transform: `translateX(${this.indicatorOffset}px)`
|
|
462
|
+
})}
|
|
463
|
+
></div>` : g;
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
class bt {
|
|
467
|
+
constructor(e) {
|
|
468
|
+
this.host = e, this.host.addController(this), this.init();
|
|
469
|
+
}
|
|
470
|
+
get active() {
|
|
471
|
+
return this.navigation.active;
|
|
472
|
+
}
|
|
473
|
+
set active(e) {
|
|
474
|
+
this.navigation.active = e;
|
|
475
|
+
}
|
|
476
|
+
init() {
|
|
477
|
+
this.sorting = new vt(this.host), this.filtering = new mt(this.host), this.navigation = new pt(this.host), this.resizing = new ut(this.host);
|
|
478
|
+
}
|
|
479
|
+
hostConnected() {
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
const F = je("gridStateController");
|
|
483
|
+
class Ie {
|
|
484
|
+
resolveValue(e, t) {
|
|
485
|
+
return e[t];
|
|
486
|
+
}
|
|
487
|
+
resolveCase(e, t) {
|
|
488
|
+
return typeof e == "string" && !t ? e.toLowerCase() : e;
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
class yt extends Ie {
|
|
492
|
+
constructor() {
|
|
493
|
+
super(...arguments), this.orderBy = new Map(
|
|
494
|
+
Object.entries({
|
|
495
|
+
ascending: 1,
|
|
496
|
+
descending: -1
|
|
497
|
+
})
|
|
498
|
+
);
|
|
499
|
+
}
|
|
500
|
+
compareValues(e, t) {
|
|
501
|
+
return typeof e == "string" && typeof t == "string" ? e.localeCompare(t) : e > t ? 1 : e < t ? -1 : 0;
|
|
502
|
+
}
|
|
503
|
+
compareObjects(e, t, r) {
|
|
504
|
+
const { direction: a, key: s, caseSensitive: l, comparer: u } = r, [E, be] = [
|
|
505
|
+
this.resolveCase(this.resolveValue(e, s), l),
|
|
506
|
+
this.resolveCase(this.resolveValue(t, s), l)
|
|
507
|
+
];
|
|
508
|
+
return this.orderBy.get(a) * (u ? u(E, be) : this.compareValues(E, be));
|
|
509
|
+
}
|
|
510
|
+
apply(e, t) {
|
|
511
|
+
const r = Array.from(t.values()), a = r.length;
|
|
512
|
+
return e.sort((s, l) => {
|
|
513
|
+
let u = 0, E = 0;
|
|
514
|
+
for (; u < a && !E; )
|
|
515
|
+
E = this.compareObjects(s, l, r[u]), u++;
|
|
516
|
+
return E;
|
|
517
|
+
}), e;
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
class xt extends Ie {
|
|
521
|
+
resolveFilter(e, t) {
|
|
522
|
+
return t.condition.logic(
|
|
523
|
+
this.resolveValue(e, t.key),
|
|
524
|
+
t.searchTerm,
|
|
525
|
+
t.caseSensitive
|
|
526
|
+
);
|
|
527
|
+
}
|
|
528
|
+
match(e, t, r) {
|
|
529
|
+
for (const a of r)
|
|
530
|
+
if (this.resolveFilter(e, a))
|
|
531
|
+
return this.match(
|
|
532
|
+
e,
|
|
533
|
+
t.filter((s) => s.key !== a.key),
|
|
534
|
+
[]
|
|
535
|
+
);
|
|
536
|
+
return t.every((a) => this.resolveFilter(e, a));
|
|
537
|
+
}
|
|
538
|
+
apply(e, t) {
|
|
539
|
+
if (t.empty)
|
|
540
|
+
return e;
|
|
541
|
+
const { ands: r, ors: a } = t;
|
|
542
|
+
return e.filter((s) => this.match(s, r, a));
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
class ft {
|
|
546
|
+
constructor(e) {
|
|
547
|
+
this.host = e, this.sorting = new yt(), this.filtering = new xt(), this.host.addController(this);
|
|
548
|
+
}
|
|
549
|
+
hostConnected() {
|
|
550
|
+
}
|
|
551
|
+
get hasRemoteSort() {
|
|
552
|
+
return f(this.host.remoteConfiguration?.sort);
|
|
553
|
+
}
|
|
554
|
+
get hasRemoteFilter() {
|
|
555
|
+
return f(this.host.remoteConfiguration?.filter);
|
|
556
|
+
}
|
|
557
|
+
get remoteFilter() {
|
|
558
|
+
return this.host.remoteConfiguration.filter;
|
|
559
|
+
}
|
|
560
|
+
get remoteSort() {
|
|
561
|
+
return this.host.remoteConfiguration.sort;
|
|
562
|
+
}
|
|
563
|
+
async apply(e, t) {
|
|
564
|
+
const { filtering: r, sorting: a } = t;
|
|
565
|
+
return e = this.hasRemoteFilter ? await this.remoteFilter(e, r.state) : this.filtering.apply(e, r.state), e = this.hasRemoteSort ? await this.remoteSort(e, a.state) : this.sorting.apply(e, a.state), e;
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
class wt {
|
|
569
|
+
constructor(e, t) {
|
|
570
|
+
this.host = e, this.state = t, this.columnSizes = {}, this.host.addController(this);
|
|
571
|
+
}
|
|
572
|
+
get virtualBody() {
|
|
573
|
+
return this.host.bodyElement;
|
|
574
|
+
}
|
|
575
|
+
hostConnected() {
|
|
576
|
+
this.setGridColumnSizes();
|
|
577
|
+
}
|
|
578
|
+
hostUpdate() {
|
|
579
|
+
this.setScrollOffset(), this.setGridColumnSizes();
|
|
580
|
+
}
|
|
581
|
+
setScrollOffset() {
|
|
582
|
+
const e = this.virtualBody ? this.virtualBody.offsetWidth - this.virtualBody.clientWidth : 0;
|
|
583
|
+
this.host.style.setProperty("--scrollbar-offset", `${e}px`);
|
|
584
|
+
}
|
|
585
|
+
setGridColumnSizes() {
|
|
586
|
+
this.columnSizes = dt(this.host.columns);
|
|
587
|
+
}
|
|
588
|
+
getActiveRowStyles(e) {
|
|
589
|
+
return this.state.active.row === e ? { "z-index": "3" } : {};
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
class zt extends S {
|
|
593
|
+
addEventListener(e, t, r) {
|
|
594
|
+
super.addEventListener(e, t, r);
|
|
595
|
+
}
|
|
596
|
+
removeEventListener(e, t, r) {
|
|
597
|
+
super.removeEventListener(e, t, r);
|
|
598
|
+
}
|
|
599
|
+
emitEvent(e, t) {
|
|
600
|
+
return this.dispatchEvent(
|
|
601
|
+
new CustomEvent(
|
|
602
|
+
e,
|
|
603
|
+
Object.assign(
|
|
604
|
+
{
|
|
605
|
+
bubbles: !0,
|
|
606
|
+
cancelable: !1,
|
|
607
|
+
composed: !0,
|
|
608
|
+
detail: {}
|
|
609
|
+
},
|
|
610
|
+
t
|
|
611
|
+
)
|
|
612
|
+
)
|
|
613
|
+
);
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
function q(i, e) {
|
|
617
|
+
return (t, r) => {
|
|
618
|
+
const { willUpdate: a } = t;
|
|
619
|
+
e = Object.assign({ waitUntilFirstUpdate: !1 }, e), t.willUpdate = function(s) {
|
|
620
|
+
if (a.call(this, s), s.has(i)) {
|
|
621
|
+
const l = s.get(i), u = this[i];
|
|
622
|
+
l !== u && (!e?.waitUntilFirstUpdate || this.hasUpdated) && this[r].call(this, l, u);
|
|
623
|
+
}
|
|
624
|
+
};
|
|
625
|
+
};
|
|
626
|
+
}
|
|
627
|
+
const kt = {
|
|
628
|
+
"arrow-upward": '<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="arrow-downward" role="img" viewBox="0 0 45 45"><path d="M22.5 40V13.7L10.1 26.1 8 24 24 8l16 16-2.1 2.1-12.4-12.4V40Z"/></svg>',
|
|
629
|
+
"arrow-downward": '<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="arrow-downward" role="img" viewBox="0 0 45 45"><path fill="currentColor" d="M24 40 8 24l2.1-2.1 12.4 12.4V8h3v26.3l12.4-12.4L40 24Z"/></svg>',
|
|
630
|
+
all: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-labelledby="agall-desc agall-title"><title id="agall-title">Select All Icon</title><desc id="agall-desc">A picture showing tree lines and a check mark.</desc><path d="M2 14h8v2H2zm0-8h12v2H2zm14 11l-3-3-1.5 1.5L16 20l7-7-1.5-1.5L16 17zM2 10h12v2H2z"/></svg>',
|
|
631
|
+
contains: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-labelledby="czcontains-desc czcontains-title"><title id="czcontains-title">Contains Icon</title><desc id="czcontains-desc">A picture showing the lowercase letter A in a square box.</desc><path d="M3 3v18h18V3zm16 16H5V5h14z"/><path d="M12 11.3a4.39 4.39 0 00-2.54.63 2.07 2.07 0 00-.9 1.78 2.29 2.29 0 00.66 1.74 2.63 2.63 0 001.89.63 2.39 2.39 0 001.32-.37 3.05 3.05 0 001-.93 3.72 3.72 0 00.08.57c0 .19.1.38.16.58h1.79a4.51 4.51 0 01-.21-.88 5.57 5.57 0 01-.07-.93v-3.5a2.44 2.44 0 00-.84-2 3.34 3.34 0 00-2.22-.7 3.54 3.54 0 00-2.3.72A1.93 1.93 0 009 10.29h1.71a.93.93 0 01.29-.71 1.5 1.5 0 011-.29 1.45 1.45 0 011 .35 1.3 1.3 0 01.37 1v.69zm1.4 1.08v1.17a1.61 1.61 0 01-.71.77 2.27 2.27 0 01-1.21.34 1.18 1.18 0 01-.84-.27.92.92 0 01-.3-.72 1.16 1.16 0 01.44-.9 1.76 1.76 0 011.22-.39z"/></svg>',
|
|
632
|
+
doesNotContain: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-labelledby="eadoes-not-contain-desc eadoes-not-contain-title"><title id="eadoes-not-contain-title">Does-Not-Contain Icon</title><desc id="eadoes-not-contain-desc">A picture showing the lowercase letter A in a crossed-out square box.</desc><path d="M21 19.74V3H4.26L2.89 1.63 1.63 2.92 3 4.29V21h16.73l1.37 1.37 1.27-1.26zM5 19V6.28l5.28 5.27a3.19 3.19 0 00-.81.38 2.07 2.07 0 00-.9 1.78 2.29 2.29 0 00.66 1.74 2.63 2.63 0 001.89.63 2.39 2.39 0 001.32-.37 3.05 3.05 0 001-.93 3.72 3.72 0 00.08.57c0 .19.1.38.16.58h1L17.73 19zm5.79-6.23a1.31 1.31 0 01.45-.25l1.37 1.36.28.29a1.57 1.57 0 01-.19.15 2.27 2.27 0 01-1.21.34 1.18 1.18 0 01-.84-.27.92.92 0 01-.3-.72 1.16 1.16 0 01.44-.9zm2.6-1.47h-.83l-1.62-1.62.08-.1a1.5 1.5 0 011-.29 1.45 1.45 0 011 .35 1.3 1.3 0 01.37 1zM19 17.74l-3.85-3.85v-3.27a2.44 2.44 0 00-.84-2 3.34 3.34 0 00-2.22-.7 3.64 3.64 0 00-2.24.67L6.26 5H19z"/></svg>',
|
|
633
|
+
greaterThan: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-labelledby="fygreater-than-desc fygreater-than-title"><title id="fygreater-than-title">Greater Than Icon</title><desc id="fygreater-than-desc">A picture showing the greater-than symbol.</desc><path d="M6 7.11L15.09 12 6 16.89V19l12-6.46v-1.08L6 5v2.11z"/></svg>',
|
|
634
|
+
greaterThanOrEqual: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-labelledby="fzgreater-than-or-equal-desc fzgreater-than-or-equal-title"><title id="fzgreater-than-or-equal-title">Greater Than or Equal Icon</title><desc id="fzgreater-than-or-equal-desc">A picture showing the grater-than or equal symbol.</desc><path d="M5.99 19h12.02v2H5.99zM18 9.47L6 3v2.11L15.09 10 6 14.9v2.11l12-6.47V9.47z"/></svg>',
|
|
635
|
+
empty: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-labelledby="gsis-empty-desc gsis-empty-title"><title id="gsis-empty-title">Is Empty Icon</title><desc id="gsis-empty-desc">A picture showing a dotted square.</desc><path d="M5 17h2v2H5zm8 0h2v2h-2zm-8-4h2v2H5zm12 4h2v2h-2zM13 5h2v2h-2zM9 17h2v2H9zm8-8h2v2h-2zm0 4h2v2h-2zm0-8h2v2h-2zM5 9h2v2H5zm0-4h2v2H5zm4 0h2v2H9z"/></svg>',
|
|
636
|
+
endsWith: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-labelledby="enends-with-desc enends-with-title"><title id="enends-with-title">Ends With Icon</title><desc id="enends-with-desc">A picture showing three dots followed by lowercase a.</desc><path d="M3 14.5h2v2H3zm8 0h2v2h-2zm-4 0h2v2H7zm13.8.3v-3A2.1 2.1 0 0020 10a3 3 0 00-2-.6 3 3 0 00-2 .6 1.7 1.7 0 00-.7 1.5h1.5a.8.8 0 01.3-.7 1.3 1.3 0 01.9-.3 1.3 1.3 0 01.9.4 1.1 1.1 0 01.3.8v.6H18a3.8 3.8 0 00-2.2.6 1.8 1.8 0 00-.8 1.5 2 2 0 00.6 1.6 2.3 2.3 0 001.6.6 2.1 2.1 0 001.2-.4 2.8 2.8 0 00.8-.8 4.3 4.3 0 00.1.5l.1.5H21a4.1 4.1 0 01-.2-.7 5.4 5.4 0 010-1zm-1.6-.5a1.5 1.5 0 01-.6.7 2 2 0 01-1 .2 1.1 1.1 0 01-.8-.2.8.8 0 01-.2-.6 1 1 0 01.3-.8 1.5 1.5 0 011.1-.3h1.2z"/></svg>',
|
|
637
|
+
equals: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-labelledby="eoequals-desc eoequals-title"><title id="eoequals-title">Equals Icon</title><desc id="eoequals-desc">A picture showing the equals sign.</desc><path d="M5 13.5h14v2H5zm0-5h14v2H5z"/></svg>',
|
|
638
|
+
false: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-labelledby="gtis-false-desc gtis-false-title"><title id="gtis-false-title">Is False Icon</title><desc id="gtis-false-desc">A picture showing an encircled X symbol.</desc><path d="M8 5a7 7 0 107 7 7 7 0 00-7-7zm4.31 9.79l-1.52 1.52L8 13.52l-2.79 2.79-1.52-1.52L6.48 12 3.69 9.21l1.52-1.52L8 10.48l2.79-2.79 1.52 1.52L9.52 12zM18 7a5 5 0 00-3 1.06 7.48 7.48 0 01.49 1 3.89 3.89 0 110 5.82 8.08 8.08 0 01-.49 1A5 5 0 1018 7z"/><path d="M17.52 13.85l2.91-2.92-.78-.78-2.13 2.12-1.17-1.15-.38.37-.41.41.42.42L17 13.34l.52.51z"/></svg>',
|
|
639
|
+
lessThan: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-labelledby="hhless-than-desc hhless-than-title"><title id="hhless-than-title">Less Than Icon</title><desc id="hhless-than-desc">A picture showing the less-than symbol.</desc><path d="M6 12.54L18 19v-2.11L8.91 12 18 7.11V5L6 11.46v1.08z"/></svg>',
|
|
640
|
+
lessThanOrEqual: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-labelledby="hiless-than-or-equal-desc hiless-than-or-equal-title"><title id="hiless-than-or-equal-title">Less Than or Equal Icon</title><desc id="hiless-than-or-equal-desc">A picture showing the lass-than or equal symbol.</desc><path d="M5.99 19h12.02v2H5.99zM18 14.9L8.91 10 18 5.11V3L6 9.47v1.07l12 6.47V14.9z"/></svg>',
|
|
641
|
+
notEmpty: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-labelledby="ionot-empty-desc ionot-empty-title"><title id="ionot-empty-title">Not Empty Icon</title><desc id="ionot-empty-desc">A picture showing a crossed-out dotted square.</desc><path d="M5 9h2v2H5zm4 8h2v2H9zm4 0h2v2h-2zm4-8h2v2h-2zm0-4h2v2h-2zM5 17h2v2H5zm8-12h2v2h-2zm-8 8h2v2H5zm14 2v-2h-2v.47L18.53 15H19zm-8-8V5H9v.46L10.54 7H11zM2.76 1.76L1.5 3.06 20.97 22.5l1.26-1.26-8.89-8.89L2.76 1.76z"/></svg>',
|
|
642
|
+
doesNotEqual: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-labelledby="ipnot-equal-desc ipnot-equal-title"><title id="ipnot-equal-title">Not Equal Icon</title><desc id="ipnot-equal-desc">A picture showing a crossed-out equals symbol.</desc><path d="M17.37 4.71l-1.74-1-2.76 4.79H5v2h6.71l-1.73 3H5v2h3.82l-2.19 3.79 1.74 1 2.76-4.79H19v-2h-6.71l1.73-3H19v-2h-3.82l2.19-3.79z"/></svg>',
|
|
643
|
+
startsWith: '<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" width="512" height="512" aria-labelledby="lqstarts-with-desc lqstarts-with-title"><title id="lqstarts-with-title">Starts With Icon</title><desc id="lqstarts-with-desc">A picture showing the uppercase letter A followed by three dots.</desc><path d="M5.9 7.5l-3.9 9h1.7l.7-1.8h4.1l.7 1.8H11l-3.9-9H5.9zM5 13.2l1.5-4.1L8 13.2H5zm7 1.3h2v2h-2v-2zm8 0h2v2h-2v-2zm-4 0h2v2h-2v-2z"/></svg>',
|
|
644
|
+
true: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="512" height="512" aria-labelledby="gwis-true-desc gwis-true-title"><title id="gwis-true-title">is True Icon</title><desc id="gwis-true-desc">A picture showing an encircled check mark symbol.</desc><path d="M19.44 14.22zm-2.88 0zm0 0L18 12.79l1.44 1.43.78-.78L18.79 12l1.43-1.44-.78-.78L18 11.21l-1.44-1.43-.78.78L17.21 12l-1.43 1.44.78.78z"/><path d="M18 7a5 5 0 00-3 1.06 7.48 7.48 0 01.49 1 3.89 3.89 0 110 5.82 8.08 8.08 0 01-.49 1A5 5 0 1018 7zM8 5a7 7 0 107 7 7 7 0 00-7-7zm-.93 10.18l-3.38-3.37 1.13-1.12 2.25 2.25 4.11-4.12 1.13 1.12z"/></svg>',
|
|
645
|
+
filter: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 45 45"><path d="M20 36v-3h8v3Zm-8-10.5v-3h24v3ZM6 15v-3h36v3Z"/></svg>',
|
|
646
|
+
close: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path d="m12.45 37.65-2.1-2.1L21.9 24 10.35 12.45l2.1-2.1L24 21.9l11.55-11.55 2.1 2.1L26.1 24l11.55 11.55-2.1 2.1L24 26.1Z"/></svg>',
|
|
647
|
+
refresh: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path d="M24 40q-6.65 0-11.325-4.675Q8 30.65 8 24q0-6.65 4.675-11.325Q17.35 8 24 8q4.25 0 7.45 1.725T37 14.45V8h3v12.7H27.3v-3h8.4q-1.9-3-4.85-4.85Q27.9 11 24 11q-5.45 0-9.225 3.775Q11 18.55 11 24q0 5.45 3.775 9.225Q18.55 37 24 37q4.15 0 7.6-2.375 3.45-2.375 4.8-6.275h3.1q-1.45 5.25-5.75 8.45Q29.45 40 24 40Z"/></svg>'
|
|
648
|
+
};
|
|
649
|
+
function Ct() {
|
|
650
|
+
for (const [i, e] of Object.entries(kt))
|
|
651
|
+
Ke(i, e, "internal");
|
|
652
|
+
}
|
|
653
|
+
const Le = y`/* 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 */
|
|
654
|
+
:host {
|
|
655
|
+
--is-large: clamp(0, (var(--component-size, 1) + 1) - var(--ig-size-large, 3), 1);
|
|
656
|
+
--is-medium:
|
|
657
|
+
min(
|
|
658
|
+
clamp(0, (var(--component-size, 1) + 1) - var(--ig-size-medium, 2), 1),
|
|
659
|
+
clamp(0, var(--ig-size-large, 3) - var(--component-size, 1), 1)
|
|
660
|
+
);
|
|
661
|
+
--is-small: clamp(0, var(--ig-size-medium) - var(--component-size, 1), 1);
|
|
662
|
+
--component-size: 3;
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
:host {
|
|
666
|
+
display: grid;
|
|
667
|
+
height: 100%;
|
|
668
|
+
position: relative;
|
|
669
|
+
font-family: var(--ig-font-family);
|
|
670
|
+
-webkit-box-shadow: var(--ig-elevation-2);
|
|
671
|
+
box-shadow: var(--ig-elevation-2);
|
|
672
|
+
overflow: auto hidden;
|
|
673
|
+
grid-template-rows: [header-row] -webkit-max-content [filter-row] -webkit-max-content [virtualized-container] auto;
|
|
674
|
+
grid-template-rows: [header-row] max-content [filter-row] max-content [virtualized-container] auto;
|
|
675
|
+
--scrollbar-offset: 0;
|
|
676
|
+
--z-index-base: 1;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
apex-grid-body {
|
|
680
|
+
grid-row: virtualized-container;
|
|
681
|
+
display: -webkit-box;
|
|
682
|
+
display: -ms-flexbox;
|
|
683
|
+
display: flex;
|
|
684
|
+
-webkit-box-orient: vertical;
|
|
685
|
+
-webkit-box-direction: normal;
|
|
686
|
+
-ms-flex-flow: column;
|
|
687
|
+
flex-flow: column;
|
|
688
|
+
-webkit-box-flex: 1;
|
|
689
|
+
-ms-flex: 1;
|
|
690
|
+
flex: 1;
|
|
691
|
+
background: var(--igx-content-background, var(--content-background));
|
|
692
|
+
color: var(--igx-content-text-color, var(--content-text-color));
|
|
693
|
+
}
|
|
694
|
+
apex-grid-body:focus {
|
|
695
|
+
outline: none;
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
[part~=resize-indicator] {
|
|
699
|
+
position: absolute;
|
|
700
|
+
height: 100%;
|
|
701
|
+
background-color: var(--igx-grid-resize-line-color, var(--grid-resize-line-color));
|
|
702
|
+
width: 0.125rem;
|
|
703
|
+
inset-inline-start: 0;
|
|
704
|
+
top: 0;
|
|
705
|
+
z-index: calc(var(--z-index-base) + 1);
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
:host {
|
|
709
|
+
--content-background: hsla(var(--ig-gray-50), var(--ig-gray-a));
|
|
710
|
+
--content-text-color: var(--ig-gray-50-contrast);
|
|
711
|
+
--header-background: hsla(var(--ig-surface-500), var(--ig-surface-a));
|
|
712
|
+
--header-text-color: var(--ig-surface-500-contrast);
|
|
713
|
+
--header-border-width: 0.0625rem;
|
|
714
|
+
--header-border-style: solid;
|
|
715
|
+
--header-border-color: hsla(var(--ig-gray-400), 0.38);
|
|
716
|
+
--filtering-header-background: hsla(var(--ig-gray-50), var(--ig-gray-a));
|
|
717
|
+
--filtering-row-background: hsla(var(--ig-gray-50), var(--ig-gray-a));
|
|
718
|
+
--filtering-row-text-color: var(--ig-gray-50-contrast);
|
|
719
|
+
--sorted-header-icon-color: hsla(var(--ig-primary-500), var(--ig-primary-a));
|
|
720
|
+
--icon-color: "currentColor";
|
|
721
|
+
--row-hover-background: hsla(var(--ig-gray-200), var(--ig-gray-a));
|
|
722
|
+
--row-hover-text-color: var(--ig-gray-200-contrast);
|
|
723
|
+
--row-even-background: hsla(var(--ig-gray-50), var(--ig-gray-a));
|
|
724
|
+
--row-even-text-color: var(--ig-gray-50-contrast);
|
|
725
|
+
--row-odd-background: hsla(var(--ig-gray-50), var(--ig-gray-a));
|
|
726
|
+
--row-odd-text-color: var(--ig-gray-50-contrast);
|
|
727
|
+
--row-border-color: hsla(var(--ig-gray-300), 0.38);
|
|
728
|
+
--row-border-style: solid;
|
|
729
|
+
--row-border-width: 0.0625rem;
|
|
730
|
+
--cell-active-border-color: hsla(var(--ig-primary-500), var(--ig-primary-a));
|
|
731
|
+
--grid-resize-line-color: hsla(var(--ig-primary-500), var(--ig-primary-a));
|
|
732
|
+
}`, _t = y`/* 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 */
|
|
733
|
+
:host {
|
|
734
|
+
--is-large: clamp(0, (var(--component-size, 1) + 1) - var(--ig-size-large, 3), 1);
|
|
735
|
+
--is-medium:
|
|
736
|
+
min(
|
|
737
|
+
clamp(0, (var(--component-size, 1) + 1) - var(--ig-size-medium, 2), 1),
|
|
738
|
+
clamp(0, var(--ig-size-large, 3) - var(--component-size, 1), 1)
|
|
739
|
+
);
|
|
740
|
+
--is-small: clamp(0, var(--ig-size-medium) - var(--component-size, 1), 1);
|
|
741
|
+
--component-size: 3;
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
:host {
|
|
745
|
+
display: grid;
|
|
746
|
+
height: 100%;
|
|
747
|
+
position: relative;
|
|
748
|
+
font-family: var(--ig-font-family);
|
|
749
|
+
-webkit-box-shadow: var(--ig-elevation-2);
|
|
750
|
+
box-shadow: var(--ig-elevation-2);
|
|
751
|
+
overflow: auto hidden;
|
|
752
|
+
grid-template-rows: [header-row] -webkit-max-content [filter-row] -webkit-max-content [virtualized-container] auto;
|
|
753
|
+
grid-template-rows: [header-row] max-content [filter-row] max-content [virtualized-container] auto;
|
|
754
|
+
--scrollbar-offset: 0;
|
|
755
|
+
--z-index-base: 1;
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
apex-grid-body {
|
|
759
|
+
grid-row: virtualized-container;
|
|
760
|
+
display: -webkit-box;
|
|
761
|
+
display: -ms-flexbox;
|
|
762
|
+
display: flex;
|
|
763
|
+
-webkit-box-orient: vertical;
|
|
764
|
+
-webkit-box-direction: normal;
|
|
765
|
+
-ms-flex-flow: column;
|
|
766
|
+
flex-flow: column;
|
|
767
|
+
-webkit-box-flex: 1;
|
|
768
|
+
-ms-flex: 1;
|
|
769
|
+
flex: 1;
|
|
770
|
+
background: var(--igx-content-background, var(--content-background));
|
|
771
|
+
color: var(--igx-content-text-color, var(--content-text-color));
|
|
772
|
+
}
|
|
773
|
+
apex-grid-body:focus {
|
|
774
|
+
outline: none;
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
[part~=resize-indicator] {
|
|
778
|
+
position: absolute;
|
|
779
|
+
height: 100%;
|
|
780
|
+
background-color: var(--igx-grid-resize-line-color, var(--grid-resize-line-color));
|
|
781
|
+
width: 0.125rem;
|
|
782
|
+
inset-inline-start: 0;
|
|
783
|
+
top: 0;
|
|
784
|
+
z-index: calc(var(--z-index-base) + 1);
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
:host {
|
|
788
|
+
--content-background: var(hsla(var(--ig-gray-50), var(--ig-gray-a)));
|
|
789
|
+
--content-text-color: var(var(--ig-gray-50-contrast));
|
|
790
|
+
--header-background: hsla(var(--ig-surface-500), var(--ig-surface-a));
|
|
791
|
+
--header-text-color: var(--ig-surface-500-contrast);
|
|
792
|
+
--header-border-width: 0.0625rem;
|
|
793
|
+
--header-border-style: solid;
|
|
794
|
+
--header-border-color: hsla(var(--ig-gray-100), var(--ig-gray-a));
|
|
795
|
+
--filtering-header-background: hsla(var(--ig-gray-50), var(--ig-gray-a));
|
|
796
|
+
--filtering-row-background: hsla(var(--ig-gray-50), var(--ig-gray-a));
|
|
797
|
+
--filtering-row-text-color: var(--ig-gray-50-contrast);
|
|
798
|
+
--sorted-header-icon-color: hsla(var(--ig-secondary-500), var(--ig-secondary-a));
|
|
799
|
+
--icon-color: "currentColor";
|
|
800
|
+
--row-hover-background: hsla(var(--ig-gray-200), var(--ig-gray-a));
|
|
801
|
+
--row-hover-text-color: var(--ig-gray-200-contrast);
|
|
802
|
+
--row-even-background: hsla(var(--ig-gray-50), var(--ig-gray-a));
|
|
803
|
+
--row-even-text-color: var(--ig-gray-50-contrast);
|
|
804
|
+
--row-odd-background: hsla(var(--ig-gray-50), var(--ig-gray-a));
|
|
805
|
+
--row-odd-text-color: var(--ig-gray-50-contrast);
|
|
806
|
+
--row-border-color: hsla(var(--ig-gray-100), var(--ig-gray-a));
|
|
807
|
+
--row-border-style: var(--header-border-style);
|
|
808
|
+
--row-border-width: var(--header-border-width);
|
|
809
|
+
--cell-active-border-color: hsla(var(--ig-primary-500), var(--ig-primary-a));
|
|
810
|
+
--grid-resize-line-color: hsla(var(--ig-primary-500), var(--ig-primary-a));
|
|
811
|
+
}`, Et = y`/* 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 */
|
|
812
|
+
:host {
|
|
813
|
+
--is-large: clamp(0, (var(--component-size, 1) + 1) - var(--ig-size-large, 3), 1);
|
|
814
|
+
--is-medium:
|
|
815
|
+
min(
|
|
816
|
+
clamp(0, (var(--component-size, 1) + 1) - var(--ig-size-medium, 2), 1),
|
|
817
|
+
clamp(0, var(--ig-size-large, 3) - var(--component-size, 1), 1)
|
|
818
|
+
);
|
|
819
|
+
--is-small: clamp(0, var(--ig-size-medium) - var(--component-size, 1), 1);
|
|
820
|
+
--component-size: 3;
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
:host {
|
|
824
|
+
display: grid;
|
|
825
|
+
height: 100%;
|
|
826
|
+
position: relative;
|
|
827
|
+
font-family: var(--ig-font-family);
|
|
828
|
+
-webkit-box-shadow: var(--ig-elevation-2);
|
|
829
|
+
box-shadow: var(--ig-elevation-2);
|
|
830
|
+
overflow: auto hidden;
|
|
831
|
+
grid-template-rows: [header-row] -webkit-max-content [filter-row] -webkit-max-content [virtualized-container] auto;
|
|
832
|
+
grid-template-rows: [header-row] max-content [filter-row] max-content [virtualized-container] auto;
|
|
833
|
+
--scrollbar-offset: 0;
|
|
834
|
+
--z-index-base: 1;
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
apex-grid-body {
|
|
838
|
+
grid-row: virtualized-container;
|
|
839
|
+
display: -webkit-box;
|
|
840
|
+
display: -ms-flexbox;
|
|
841
|
+
display: flex;
|
|
842
|
+
-webkit-box-orient: vertical;
|
|
843
|
+
-webkit-box-direction: normal;
|
|
844
|
+
-ms-flex-flow: column;
|
|
845
|
+
flex-flow: column;
|
|
846
|
+
-webkit-box-flex: 1;
|
|
847
|
+
-ms-flex: 1;
|
|
848
|
+
flex: 1;
|
|
849
|
+
background: var(--igx-content-background, var(--content-background));
|
|
850
|
+
color: var(--igx-content-text-color, var(--content-text-color));
|
|
851
|
+
}
|
|
852
|
+
apex-grid-body:focus {
|
|
853
|
+
outline: none;
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
[part~=resize-indicator] {
|
|
857
|
+
position: absolute;
|
|
858
|
+
height: 100%;
|
|
859
|
+
background-color: var(--igx-grid-resize-line-color, var(--grid-resize-line-color));
|
|
860
|
+
width: 0.125rem;
|
|
861
|
+
inset-inline-start: 0;
|
|
862
|
+
top: 0;
|
|
863
|
+
z-index: calc(var(--z-index-base) + 1);
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
:host {
|
|
867
|
+
--content-background: var(hsla(var(--ig-gray-50), var(--ig-gray-a)));
|
|
868
|
+
--content-text-color: var(var(--ig-gray-50-contrast));
|
|
869
|
+
--header-background: hsla(var(--ig-gray-100), var(--ig-gray-a));
|
|
870
|
+
--header-text-color: hsla(var(--ig-primary-500), var(--ig-primary-a));
|
|
871
|
+
--header-border-width: 0.0625rem;
|
|
872
|
+
--header-border-style: solid;
|
|
873
|
+
--header-border-color: hsla(var(--ig-primary-500), 0.24);
|
|
874
|
+
--filtering-header-background: hsla(var(--ig-gray-50), var(--ig-gray-a));
|
|
875
|
+
--filtering-row-background: hsla(var(--ig-gray-50), var(--ig-gray-a));
|
|
876
|
+
--filtering-row-text-color: var(--ig-gray-50-contrast);
|
|
877
|
+
--sorted-header-icon-color: hsla(var(--ig-primary-500), var(--ig-primary-a));
|
|
878
|
+
--icon-color: "currentColor";
|
|
879
|
+
--row-hover-background: hsla(var(--ig-primary-50), var(--ig-primary-a));
|
|
880
|
+
--row-hover-text-color: var(--ig-gray-200-contrast);
|
|
881
|
+
--row-even-background: hsla(var(--ig-gray-50), var(--ig-gray-a));
|
|
882
|
+
--row-even-text-color: var(--ig-gray-50-contrast);
|
|
883
|
+
--row-odd-background: hsla(var(--ig-gray-50), var(--ig-gray-a));
|
|
884
|
+
--row-odd-text-color: var(--ig-gray-50-contrast);
|
|
885
|
+
--row-border-color: hsla(var(--ig-primary-50), var(--ig-primary-a));
|
|
886
|
+
--row-border-style: var(--header-border-style);
|
|
887
|
+
--row-border-width: var(--header-border-width);
|
|
888
|
+
--cell-active-border-color: hsla(var(--ig-primary-500), var(--ig-primary-a));
|
|
889
|
+
--grid-resize-line-color: hsla(var(--ig-primary-500), var(--ig-primary-a));
|
|
890
|
+
}`, $t = y`/* 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 */
|
|
891
|
+
:host {
|
|
892
|
+
--is-large: clamp(0, (var(--component-size, 1) + 1) - var(--ig-size-large, 3), 1);
|
|
893
|
+
--is-medium:
|
|
894
|
+
min(
|
|
895
|
+
clamp(0, (var(--component-size, 1) + 1) - var(--ig-size-medium, 2), 1),
|
|
896
|
+
clamp(0, var(--ig-size-large, 3) - var(--component-size, 1), 1)
|
|
897
|
+
);
|
|
898
|
+
--is-small: clamp(0, var(--ig-size-medium) - var(--component-size, 1), 1);
|
|
899
|
+
--component-size: 3;
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
:host {
|
|
903
|
+
display: grid;
|
|
904
|
+
height: 100%;
|
|
905
|
+
position: relative;
|
|
906
|
+
font-family: var(--ig-font-family);
|
|
907
|
+
-webkit-box-shadow: var(--ig-elevation-2);
|
|
908
|
+
box-shadow: var(--ig-elevation-2);
|
|
909
|
+
overflow: auto hidden;
|
|
910
|
+
grid-template-rows: [header-row] -webkit-max-content [filter-row] -webkit-max-content [virtualized-container] auto;
|
|
911
|
+
grid-template-rows: [header-row] max-content [filter-row] max-content [virtualized-container] auto;
|
|
912
|
+
--scrollbar-offset: 0;
|
|
913
|
+
--z-index-base: 1;
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
apex-grid-body {
|
|
917
|
+
grid-row: virtualized-container;
|
|
918
|
+
display: -webkit-box;
|
|
919
|
+
display: -ms-flexbox;
|
|
920
|
+
display: flex;
|
|
921
|
+
-webkit-box-orient: vertical;
|
|
922
|
+
-webkit-box-direction: normal;
|
|
923
|
+
-ms-flex-flow: column;
|
|
924
|
+
flex-flow: column;
|
|
925
|
+
-webkit-box-flex: 1;
|
|
926
|
+
-ms-flex: 1;
|
|
927
|
+
flex: 1;
|
|
928
|
+
background: var(--igx-content-background, var(--content-background));
|
|
929
|
+
color: var(--igx-content-text-color, var(--content-text-color));
|
|
930
|
+
}
|
|
931
|
+
apex-grid-body:focus {
|
|
932
|
+
outline: none;
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
[part~=resize-indicator] {
|
|
936
|
+
position: absolute;
|
|
937
|
+
height: 100%;
|
|
938
|
+
background-color: var(--igx-grid-resize-line-color, var(--grid-resize-line-color));
|
|
939
|
+
width: 0.125rem;
|
|
940
|
+
inset-inline-start: 0;
|
|
941
|
+
top: 0;
|
|
942
|
+
z-index: calc(var(--z-index-base) + 1);
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
:host {
|
|
946
|
+
--content-background: var(hsla(var(--ig-gray-50), var(--ig-gray-a)));
|
|
947
|
+
--content-text-color: var(var(--ig-gray-50-contrast));
|
|
948
|
+
--header-background: hsla(var(--ig-gray-100), var(--ig-gray-a));
|
|
949
|
+
--header-text-color: hsla(var(--ig-gray-800), 0.7);
|
|
950
|
+
--header-border-width: 0.0625rem;
|
|
951
|
+
--header-border-style: solid;
|
|
952
|
+
--header-border-color: hsla(var(--ig-gray-400), 0.38);
|
|
953
|
+
--filtering-header-background: hsla(var(--ig-gray-50), var(--ig-gray-a));
|
|
954
|
+
--filtering-row-background: hsla(var(--ig-gray-50), var(--ig-gray-a));
|
|
955
|
+
--filtering-row-text-color: var(--ig-gray-50-contrast);
|
|
956
|
+
--sorted-header-icon-color: hsla(var(--ig-secondary-500), var(--ig-secondary-a));
|
|
957
|
+
--icon-color: "currentColor";
|
|
958
|
+
--row-hover-background: hsla(var(--ig-gray-200), var(--ig-gray-a));
|
|
959
|
+
--row-hover-text-color: var(--ig-gray-200-contrast);
|
|
960
|
+
--row-even-background: hsla(var(--ig-gray-50), var(--ig-gray-a));
|
|
961
|
+
--row-even-text-color: hsla(var(--ig-gray-800), var(--ig-gray-a));
|
|
962
|
+
--row-odd-background: hsla(var(--ig-gray-50), var(--ig-gray-a));
|
|
963
|
+
--row-odd-text-color: hsla(var(--ig-gray-800), var(--ig-gray-a));
|
|
964
|
+
--row-border-color: hsla(var(--ig-gray-300), 0.38);
|
|
965
|
+
--row-border-style: var(--header-border-style);
|
|
966
|
+
--row-border-width: var(--header-border-width);
|
|
967
|
+
--cell-active-border-color: hsla(var(--ig-secondary-500), var(--ig-secondary-a));
|
|
968
|
+
--grid-resize-line-color: hsla(var(--ig-secondary-500), var(--ig-secondary-a));
|
|
969
|
+
}`;
|
|
970
|
+
var Ot = Object.defineProperty, St = Object.getOwnPropertyDescriptor, At = (i, e, t, r) => {
|
|
971
|
+
for (var a = r > 1 ? void 0 : r ? St(e, t) : e, s = i.length - 1, l; s >= 0; s--)
|
|
972
|
+
(l = i[s]) && (a = (r ? l(e, t, a) : l(a)) || a);
|
|
973
|
+
return r && a && Ot(e, t, a), a;
|
|
974
|
+
};
|
|
975
|
+
let Q = class extends it {
|
|
976
|
+
constructor() {
|
|
977
|
+
super(...arguments), this.scroller = !0;
|
|
978
|
+
}
|
|
979
|
+
static get is() {
|
|
980
|
+
return _e;
|
|
981
|
+
}
|
|
982
|
+
connectedCallback() {
|
|
983
|
+
super.connectedCallback(), this.setAttribute("tabindex", "0");
|
|
984
|
+
}
|
|
985
|
+
};
|
|
986
|
+
Q = At([
|
|
987
|
+
_(_e)
|
|
988
|
+
], Q);
|
|
989
|
+
function T(i) {
|
|
990
|
+
return Object.keys(i).filter((e) => i[e]).join(" ");
|
|
991
|
+
}
|
|
992
|
+
const qt = y`/* 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 */
|
|
993
|
+
:host {
|
|
994
|
+
--is-large: clamp(0, (var(--component-size, 1) + 1) - var(--ig-size-large, 3), 1);
|
|
995
|
+
--is-medium:
|
|
996
|
+
min(
|
|
997
|
+
clamp(0, (var(--component-size, 1) + 1) - var(--ig-size-medium, 2), 1),
|
|
998
|
+
clamp(0, var(--ig-size-large, 3) - var(--component-size, 1), 1)
|
|
999
|
+
);
|
|
1000
|
+
--is-small: clamp(0, var(--ig-size-medium) - var(--component-size, 1), 1);
|
|
1001
|
+
--component-size: 3;
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
:host {
|
|
1005
|
+
display: -webkit-box;
|
|
1006
|
+
display: -ms-flexbox;
|
|
1007
|
+
display: flex;
|
|
1008
|
+
-webkit-box-align: center;
|
|
1009
|
+
-ms-flex-align: center;
|
|
1010
|
+
align-items: center;
|
|
1011
|
+
position: relative;
|
|
1012
|
+
-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));
|
|
1013
|
+
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));
|
|
1014
|
+
font-weight: 600;
|
|
1015
|
+
font-size: 0.75rem;
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
:host(:last-of-type) {
|
|
1019
|
+
-webkit-border-end: none;
|
|
1020
|
+
border-inline-end: none;
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
[part~=content] {
|
|
1024
|
+
display: -webkit-box;
|
|
1025
|
+
display: -ms-flexbox;
|
|
1026
|
+
display: flex;
|
|
1027
|
+
-webkit-box-align: center;
|
|
1028
|
+
-ms-flex-align: center;
|
|
1029
|
+
align-items: center;
|
|
1030
|
+
-webkit-box-pack: justify;
|
|
1031
|
+
-ms-flex-pack: justify;
|
|
1032
|
+
justify-content: space-between;
|
|
1033
|
+
width: 100%;
|
|
1034
|
+
height: 100%;
|
|
1035
|
+
padding: 0 max(var(--is-large, 1) * 1.5rem, var(--is-medium, 1) * 1rem, var(--is-small, 1) * 0.5rem);
|
|
1036
|
+
font-weight: 500;
|
|
1037
|
+
overflow: hidden;
|
|
1038
|
+
-webkit-user-select: none;
|
|
1039
|
+
-moz-user-select: none;
|
|
1040
|
+
-ms-user-select: none;
|
|
1041
|
+
user-select: none;
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
[part~=title] {
|
|
1045
|
+
display: block;
|
|
1046
|
+
position: relative;
|
|
1047
|
+
cursor: initial;
|
|
1048
|
+
white-space: nowrap;
|
|
1049
|
+
-o-text-overflow: ellipsis;
|
|
1050
|
+
text-overflow: ellipsis;
|
|
1051
|
+
overflow: hidden;
|
|
1052
|
+
min-width: 3ch;
|
|
1053
|
+
}
|
|
1054
|
+
|
|
1055
|
+
[part~=actions] {
|
|
1056
|
+
display: -webkit-box;
|
|
1057
|
+
display: -ms-flexbox;
|
|
1058
|
+
display: flex;
|
|
1059
|
+
gap: 0.25rem;
|
|
1060
|
+
-webkit-box-align: center;
|
|
1061
|
+
-ms-flex-align: center;
|
|
1062
|
+
align-items: center;
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
[part~=action] {
|
|
1066
|
+
cursor: pointer;
|
|
1067
|
+
opacity: 0.7;
|
|
1068
|
+
-webkit-transition: opacity 0.25s ease-in-out;
|
|
1069
|
+
-o-transition: opacity 0.25s ease-in-out;
|
|
1070
|
+
transition: opacity 0.25s ease-in-out;
|
|
1071
|
+
}
|
|
1072
|
+
[part~=action]:hover, [part~=action]:focus {
|
|
1073
|
+
opacity: 1;
|
|
1074
|
+
}
|
|
1075
|
+
[part~=action] igc-icon {
|
|
1076
|
+
--size: 0.9375rem;
|
|
1077
|
+
color: var(--igx-icon-color, var(--icon-color));
|
|
1078
|
+
}
|
|
1079
|
+
[part~=action] igc-icon::after {
|
|
1080
|
+
content: attr(data-sortIndex);
|
|
1081
|
+
position: absolute;
|
|
1082
|
+
top: -5px;
|
|
1083
|
+
inset-inline-end: -1px;
|
|
1084
|
+
font-size: 0.625rem;
|
|
1085
|
+
text-align: end;
|
|
1086
|
+
font-family: sans-serif;
|
|
1087
|
+
line-height: 0.625rem;
|
|
1088
|
+
color: var(--igx-sorted-header-icon-color, var(--sorted-header-icon-color));
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
[part~=sorted],
|
|
1092
|
+
[part~=filtered] {
|
|
1093
|
+
color: var(--igx-sorted-header-icon-color, var(--sorted-header-icon-color));
|
|
1094
|
+
}
|
|
1095
|
+
[part~=sorted] igc-icon,
|
|
1096
|
+
[part~=filtered] igc-icon {
|
|
1097
|
+
color: var(--igx-sorted-header-icon-color, var(--sorted-header-icon-color));
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
[part~=filtered] {
|
|
1101
|
+
background: var(--igx-filtering-header-background, var(--filtering-header-background));
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
[part~=action]:empty {
|
|
1105
|
+
display: none;
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
[part~=resizable] {
|
|
1109
|
+
width: 0.25rem;
|
|
1110
|
+
height: 100%;
|
|
1111
|
+
position: absolute;
|
|
1112
|
+
inset-inline-end: -0.125rem;
|
|
1113
|
+
z-index: var(--z-index-base);
|
|
1114
|
+
cursor: col-resize;
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1117
|
+
[part~=filter] {
|
|
1118
|
+
position: relative;
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1121
|
+
[part~=filter-count] {
|
|
1122
|
+
position: absolute;
|
|
1123
|
+
top: -5px;
|
|
1124
|
+
inset-inline-end: -1px;
|
|
1125
|
+
font-size: 0.625rem;
|
|
1126
|
+
text-align: end;
|
|
1127
|
+
font-family: sans-serif;
|
|
1128
|
+
line-height: 0.625rem;
|
|
1129
|
+
color: currentcolor;
|
|
1130
|
+
}`;
|
|
1131
|
+
var It = Object.defineProperty, Lt = Object.getOwnPropertyDescriptor, me = (i, e, t, r) => {
|
|
1132
|
+
for (var a = r > 1 ? void 0 : r ? Lt(e, t) : e, s = i.length - 1, l; s >= 0; s--)
|
|
1133
|
+
(l = i[s]) && (a = (r ? l(e, t, a) : l(a)) || a);
|
|
1134
|
+
return r && a && It(e, t, a), a;
|
|
1135
|
+
}, Me = (i, e, t) => {
|
|
1136
|
+
if (!e.has(i))
|
|
1137
|
+
throw TypeError("Cannot " + t);
|
|
1138
|
+
}, H = (i, e, t) => (Me(i, e, "read from private field"), t ? t.call(i) : e.get(i)), $ = (i, e, t) => {
|
|
1139
|
+
if (e.has(i))
|
|
1140
|
+
throw TypeError("Cannot add the same private member more than once");
|
|
1141
|
+
e instanceof WeakSet ? e.add(i) : e.set(i, t);
|
|
1142
|
+
}, K = (i, e, t) => (Me(i, e, "access private method"), t), pe, De, X, Re, W, Y, Te, ve, J;
|
|
1143
|
+
let k = class extends S {
|
|
1144
|
+
constructor() {
|
|
1145
|
+
super(...arguments), $(this, pe), $(this, X), $(this, Y), $(this, W, ({ clientX: i }) => {
|
|
1146
|
+
const { left: e } = this.getBoundingClientRect(), t = Math.max(i - e, qe), r = this.offsetLeft + t;
|
|
1147
|
+
this.resizeController.resize(this.column, t, r);
|
|
1148
|
+
}), $(this, ve, () => {
|
|
1149
|
+
this.resizeController.indicatorActive = !1, this.removeEventListener("pointermove", H(this, W)), this.resizeController.stop();
|
|
1150
|
+
}), $(this, J, () => this.resizeController.autosize(this.column, this));
|
|
1151
|
+
}
|
|
1152
|
+
static get is() {
|
|
1153
|
+
return $e;
|
|
1154
|
+
}
|
|
1155
|
+
get context() {
|
|
1156
|
+
return {
|
|
1157
|
+
parent: this,
|
|
1158
|
+
column: this.column
|
|
1159
|
+
};
|
|
1160
|
+
}
|
|
1161
|
+
get isSortable() {
|
|
1162
|
+
return Boolean(this.column.sort);
|
|
1163
|
+
}
|
|
1164
|
+
get resizeController() {
|
|
1165
|
+
return this.state.resizing;
|
|
1166
|
+
}
|
|
1167
|
+
renderSortPart() {
|
|
1168
|
+
const i = this.state.sorting.state.get(this.column.key), e = Array.from(this.state.sorting.state.values()).indexOf(i), t = this.state.host.sortConfiguration.multiple ? e > -1 ? e + 1 : g : g, r = i ? i.direction === "ascending" ? ye : st : ye;
|
|
1169
|
+
return i || this.isSortable ? n`<span
|
|
1170
|
+
part=${T({ action: !0, sorted: !!i?.direction })}
|
|
1171
|
+
@click=${this.isSortable ? K(this, X, Re) : g}
|
|
1172
|
+
>
|
|
1173
|
+
<igc-icon
|
|
1174
|
+
part=${T({ "sorting-action": !!i })}
|
|
1175
|
+
data-sortIndex=${t}
|
|
1176
|
+
name=${r}
|
|
1177
|
+
collection="internal"
|
|
1178
|
+
></igc-icon>
|
|
1179
|
+
</span>` : g;
|
|
1180
|
+
}
|
|
1181
|
+
renderContentPart() {
|
|
1182
|
+
const i = this.column.headerText ?? this.column.key, e = this.column.headerTemplate;
|
|
1183
|
+
return n`
|
|
1184
|
+
<span part="title">
|
|
1185
|
+
<span>${e ? e(this.context) : n`${i}`}</span>
|
|
1186
|
+
</span>
|
|
1187
|
+
`;
|
|
1188
|
+
}
|
|
1189
|
+
renderResizePart() {
|
|
1190
|
+
return this.column.resizable ? n`<span
|
|
1191
|
+
part="resizable"
|
|
1192
|
+
@dblclick=${H(this, J)}
|
|
1193
|
+
@pointerdown=${K(this, Y, Te)}
|
|
1194
|
+
></span>` : g;
|
|
1195
|
+
}
|
|
1196
|
+
render() {
|
|
1197
|
+
return n`
|
|
1198
|
+
<div
|
|
1199
|
+
part=${T({
|
|
1200
|
+
content: !0,
|
|
1201
|
+
sortable: this.isSortable,
|
|
1202
|
+
resizing: this.resizeController.indicatorActive
|
|
1203
|
+
})}
|
|
1204
|
+
>
|
|
1205
|
+
${this.renderContentPart()}
|
|
1206
|
+
<div part="actions">${this.renderSortPart()}</div>
|
|
1207
|
+
</div>
|
|
1208
|
+
${this.renderResizePart()}
|
|
1209
|
+
`;
|
|
1210
|
+
}
|
|
1211
|
+
};
|
|
1212
|
+
pe = /* @__PURE__ */ new WeakSet();
|
|
1213
|
+
De = function() {
|
|
1214
|
+
const i = { once: !0 };
|
|
1215
|
+
this.addEventListener(
|
|
1216
|
+
"gotpointercapture",
|
|
1217
|
+
() => this.resizeController.indicatorActive = !0,
|
|
1218
|
+
i
|
|
1219
|
+
), this.addEventListener("lostpointercapture", H(this, ve), i), this.addEventListener("pointerup", (e) => this.releasePointerCapture(e.pointerId), i), this.addEventListener("pointermove", H(this, W));
|
|
1220
|
+
};
|
|
1221
|
+
X = /* @__PURE__ */ new WeakSet();
|
|
1222
|
+
Re = function(i) {
|
|
1223
|
+
i.stopPropagation(), this.state.sorting.sortFromHeaderClick(this.column);
|
|
1224
|
+
};
|
|
1225
|
+
W = /* @__PURE__ */ new WeakMap();
|
|
1226
|
+
Y = /* @__PURE__ */ new WeakSet();
|
|
1227
|
+
Te = function(i) {
|
|
1228
|
+
const { target: e, pointerId: t } = i;
|
|
1229
|
+
i.preventDefault(), K(this, pe, De).call(this), this.resizeController.start(this), e.setPointerCapture(t);
|
|
1230
|
+
};
|
|
1231
|
+
ve = /* @__PURE__ */ new WeakMap();
|
|
1232
|
+
J = /* @__PURE__ */ new WeakMap();
|
|
1233
|
+
k.styles = qt;
|
|
1234
|
+
me([
|
|
1235
|
+
he({ context: F, subscribe: !0 }),
|
|
1236
|
+
o({ attribute: !1 })
|
|
1237
|
+
], k.prototype, "state", 2);
|
|
1238
|
+
me([
|
|
1239
|
+
o({ attribute: !1 })
|
|
1240
|
+
], k.prototype, "column", 2);
|
|
1241
|
+
k = me([
|
|
1242
|
+
_($e)
|
|
1243
|
+
], k);
|
|
1244
|
+
const Mt = y`/* 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 */
|
|
1245
|
+
:host {
|
|
1246
|
+
--is-large: clamp(0, (var(--component-size, 1) + 1) - var(--ig-size-large, 3), 1);
|
|
1247
|
+
--is-medium:
|
|
1248
|
+
min(
|
|
1249
|
+
clamp(0, (var(--component-size, 1) + 1) - var(--ig-size-medium, 2), 1),
|
|
1250
|
+
clamp(0, var(--ig-size-large, 3) - var(--component-size, 1), 1)
|
|
1251
|
+
);
|
|
1252
|
+
--is-small: clamp(0, var(--ig-size-medium) - var(--component-size, 1), 1);
|
|
1253
|
+
--component-size: 3;
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
:host {
|
|
1257
|
+
display: grid;
|
|
1258
|
+
grid-row: header-row;
|
|
1259
|
+
min-height: max(var(--is-large, 1) * 3.125rem, var(--is-medium, 1) * 2.125rem, var(--is-small, 1) * 1.5rem);
|
|
1260
|
+
background: var(--igx-header-background, var(--header-background));
|
|
1261
|
+
color: var(--igx-header-text-color, var(--header-text-color));
|
|
1262
|
+
contain: content;
|
|
1263
|
+
-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));
|
|
1264
|
+
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));
|
|
1265
|
+
z-index: var(--z-index-base);
|
|
1266
|
+
-webkit-padding-end: var(--scrollbar-offset);
|
|
1267
|
+
padding-inline-end: var(--scrollbar-offset);
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
:host(:focus) {
|
|
1271
|
+
outline: none;
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1274
|
+
[part=filtered] {
|
|
1275
|
+
background: var(--igx-filtering-header-background, var(--filtering-header-background));
|
|
1276
|
+
}`;
|
|
1277
|
+
var Dt = Object.defineProperty, Rt = Object.getOwnPropertyDescriptor, B = (i, e, t, r) => {
|
|
1278
|
+
for (var a = r > 1 ? void 0 : r ? Rt(e, t) : e, s = i.length - 1, l; s >= 0; s--)
|
|
1279
|
+
(l = i[s]) && (a = (r ? l(e, t, a) : l(a)) || a);
|
|
1280
|
+
return r && a && Dt(e, t, a), a;
|
|
1281
|
+
}, Tt = (i, e, t) => {
|
|
1282
|
+
if (!e.has(i))
|
|
1283
|
+
throw TypeError("Cannot " + t);
|
|
1284
|
+
}, Nt = (i, e, t) => {
|
|
1285
|
+
if (e.has(i))
|
|
1286
|
+
throw TypeError("Cannot add the same private member more than once");
|
|
1287
|
+
e instanceof WeakSet ? e.add(i) : e.set(i, t);
|
|
1288
|
+
}, Pt = (i, e, t) => (Tt(i, e, "access private method"), t), ee, Ne;
|
|
1289
|
+
let C = class extends S {
|
|
1290
|
+
constructor() {
|
|
1291
|
+
super(), Nt(this, ee), this.columns = [], this.addEventListener("click", Pt(this, ee, Ne));
|
|
1292
|
+
}
|
|
1293
|
+
static get is() {
|
|
1294
|
+
return Ee;
|
|
1295
|
+
}
|
|
1296
|
+
get headers() {
|
|
1297
|
+
return Array.from(this._headers);
|
|
1298
|
+
}
|
|
1299
|
+
connectedCallback() {
|
|
1300
|
+
super.connectedCallback(), this.setAttribute("tabindex", "0");
|
|
1301
|
+
}
|
|
1302
|
+
shouldUpdate(i) {
|
|
1303
|
+
return this.headers.forEach((e) => e.requestUpdate()), super.shouldUpdate(i);
|
|
1304
|
+
}
|
|
1305
|
+
render() {
|
|
1306
|
+
const i = this.state.filtering.filterRow;
|
|
1307
|
+
return n`${ze(
|
|
1308
|
+
this.columns,
|
|
1309
|
+
(e) => e.hidden ? g : n`<apex-grid-header
|
|
1310
|
+
part=${T({
|
|
1311
|
+
filtered: e === i?.column
|
|
1312
|
+
})}
|
|
1313
|
+
.column=${e}
|
|
1314
|
+
></apex-grid-header>`
|
|
1315
|
+
)}`;
|
|
1316
|
+
}
|
|
1317
|
+
};
|
|
1318
|
+
ee = /* @__PURE__ */ new WeakSet();
|
|
1319
|
+
Ne = function(i) {
|
|
1320
|
+
const e = i.composedPath().filter((t) => t instanceof k).at(0);
|
|
1321
|
+
this.state.filtering.setActiveColumn(e?.column);
|
|
1322
|
+
};
|
|
1323
|
+
C.styles = Mt;
|
|
1324
|
+
B([
|
|
1325
|
+
ce(k.is)
|
|
1326
|
+
], C.prototype, "_headers", 2);
|
|
1327
|
+
B([
|
|
1328
|
+
he({ context: F, subscribe: !0 }),
|
|
1329
|
+
o({ attribute: !1 })
|
|
1330
|
+
], C.prototype, "state", 2);
|
|
1331
|
+
B([
|
|
1332
|
+
o({ attribute: !1 })
|
|
1333
|
+
], C.prototype, "columns", 2);
|
|
1334
|
+
C = B([
|
|
1335
|
+
_(Ee)
|
|
1336
|
+
], C);
|
|
1337
|
+
const Ht = y`/* 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 */
|
|
1338
|
+
:host {
|
|
1339
|
+
--is-large: clamp(0, (var(--component-size, 1) + 1) - var(--ig-size-large, 3), 1);
|
|
1340
|
+
--is-medium:
|
|
1341
|
+
min(
|
|
1342
|
+
clamp(0, (var(--component-size, 1) + 1) - var(--ig-size-medium, 2), 1),
|
|
1343
|
+
clamp(0, var(--ig-size-large, 3) - var(--component-size, 1), 1)
|
|
1344
|
+
);
|
|
1345
|
+
--is-small: clamp(0, var(--ig-size-medium) - var(--component-size, 1), 1);
|
|
1346
|
+
--component-size: 3;
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1349
|
+
:host {
|
|
1350
|
+
position: relative;
|
|
1351
|
+
display: -webkit-inline-box;
|
|
1352
|
+
display: -ms-inline-flexbox;
|
|
1353
|
+
display: inline-flex;
|
|
1354
|
+
-webkit-box-flex: 1;
|
|
1355
|
+
-ms-flex: 1 0 0px;
|
|
1356
|
+
flex: 1 0 0;
|
|
1357
|
+
-webkit-box-align: center;
|
|
1358
|
+
-ms-flex-align: center;
|
|
1359
|
+
align-items: center;
|
|
1360
|
+
padding: 0 max(var(--is-large, 1) * 1.5rem, var(--is-medium, 1) * 1rem, var(--is-small, 1) * 0.5rem);
|
|
1361
|
+
color: inherit;
|
|
1362
|
+
border-right: var(--igx-row-border-width, var(--row-border-width)) solid transparent;
|
|
1363
|
+
font-size: 0.8125rem;
|
|
1364
|
+
}
|
|
1365
|
+
:host:last-of-type {
|
|
1366
|
+
border-right: 0;
|
|
1367
|
+
}
|
|
1368
|
+
|
|
1369
|
+
:host([active]) {
|
|
1370
|
+
outline: none;
|
|
1371
|
+
-webkit-box-shadow: inset 0 0 0 0.0625rem var(--igx-cell-active-border-color, var(--cell-active-border-color));
|
|
1372
|
+
box-shadow: inset 0 0 0 0.0625rem var(--igx-cell-active-border-color, var(--cell-active-border-color));
|
|
1373
|
+
}
|
|
1374
|
+
|
|
1375
|
+
:host(:last-child) {
|
|
1376
|
+
-webkit-border-end: none;
|
|
1377
|
+
border-inline-end: none;
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1380
|
+
igc-input {
|
|
1381
|
+
position: absolute;
|
|
1382
|
+
left: 0;
|
|
1383
|
+
height: calc(100% - 0.0625rem * 2);
|
|
1384
|
+
width: 100%;
|
|
1385
|
+
}
|
|
1386
|
+
igc-input::part(container), igc-input::part(input) {
|
|
1387
|
+
border-color: transparent;
|
|
1388
|
+
-webkit-box-shadow: none;
|
|
1389
|
+
box-shadow: none;
|
|
1390
|
+
height: 100%;
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
igc-input::part(container), igc-input::part(input),
|
|
1394
|
+
igc-select::part(container),
|
|
1395
|
+
igc-select::part(input) {
|
|
1396
|
+
background: inherit;
|
|
1397
|
+
color: inherit;
|
|
1398
|
+
font-size: 0.8125rem;
|
|
1399
|
+
}
|
|
1400
|
+
igc-input::part(helper-text)::after, igc-input::part(container)::after,
|
|
1401
|
+
igc-select::part(helper-text)::after,
|
|
1402
|
+
igc-select::part(container)::after {
|
|
1403
|
+
display: none;
|
|
1404
|
+
}`;
|
|
1405
|
+
var Wt = Object.defineProperty, Ut = Object.getOwnPropertyDescriptor, G = (i, e, t, r) => {
|
|
1406
|
+
for (var a = r > 1 ? void 0 : r ? Ut(e, t) : e, s = i.length - 1, l; s >= 0; s--)
|
|
1407
|
+
(l = i[s]) && (a = (r ? l(e, t, a) : l(a)) || a);
|
|
1408
|
+
return r && a && Wt(e, t, a), a;
|
|
1409
|
+
};
|
|
1410
|
+
let w = class extends S {
|
|
1411
|
+
constructor() {
|
|
1412
|
+
super(...arguments), this.active = !1;
|
|
1413
|
+
}
|
|
1414
|
+
static get is() {
|
|
1415
|
+
return Se;
|
|
1416
|
+
}
|
|
1417
|
+
get context() {
|
|
1418
|
+
return {
|
|
1419
|
+
parent: this,
|
|
1420
|
+
row: this.row,
|
|
1421
|
+
column: this.column,
|
|
1422
|
+
value: this.value
|
|
1423
|
+
};
|
|
1424
|
+
}
|
|
1425
|
+
render() {
|
|
1426
|
+
return this.column.cellTemplate ? this.column.cellTemplate(this.context) : n`${this.value}`;
|
|
1427
|
+
}
|
|
1428
|
+
};
|
|
1429
|
+
w.styles = Ht;
|
|
1430
|
+
G([
|
|
1431
|
+
o({ attribute: !1 })
|
|
1432
|
+
], w.prototype, "value", 2);
|
|
1433
|
+
G([
|
|
1434
|
+
o({ attribute: !1 })
|
|
1435
|
+
], w.prototype, "column", 2);
|
|
1436
|
+
G([
|
|
1437
|
+
o({ type: Boolean, reflect: !0 })
|
|
1438
|
+
], w.prototype, "active", 2);
|
|
1439
|
+
w = G([
|
|
1440
|
+
_(Se)
|
|
1441
|
+
], w);
|
|
1442
|
+
const Ft = y`/* 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 */
|
|
1443
|
+
:host {
|
|
1444
|
+
--is-large: clamp(0, (var(--component-size, 1) + 1) - var(--ig-size-large, 3), 1);
|
|
1445
|
+
--is-medium:
|
|
1446
|
+
min(
|
|
1447
|
+
clamp(0, (var(--component-size, 1) + 1) - var(--ig-size-medium, 2), 1),
|
|
1448
|
+
clamp(0, var(--ig-size-large, 3) - var(--component-size, 1), 1)
|
|
1449
|
+
);
|
|
1450
|
+
--is-small: clamp(0, var(--ig-size-medium) - var(--component-size, 1), 1);
|
|
1451
|
+
--component-size: 3;
|
|
1452
|
+
}
|
|
1453
|
+
|
|
1454
|
+
:host {
|
|
1455
|
+
display: grid;
|
|
1456
|
+
width: 100%;
|
|
1457
|
+
min-height: max(var(--is-large, 1) * 3.125rem, var(--is-medium, 1) * 2.125rem, var(--is-small, 1) * 1.5rem);
|
|
1458
|
+
-webkit-border-after: var(--igx-row-border-width, var(--header-border-width)) var(--igx-row-border-style, var(--header-border-style)) var(--igx-row-border-color, var(--header-border-color));
|
|
1459
|
+
border-block-end: var(--igx-row-border-width, var(--header-border-width)) var(--igx-row-border-style, var(--header-border-style)) var(--igx-row-border-color, var(--header-border-color));
|
|
1460
|
+
background: var(--igx-row-odd-background, var(--row-odd-background));
|
|
1461
|
+
color: var(--igx-row-odd-text-color, var(--row-odd-text-color));
|
|
1462
|
+
z-index: var(--z-index-base);
|
|
1463
|
+
}
|
|
1464
|
+
|
|
1465
|
+
:host(:last-of-type) {
|
|
1466
|
+
border-bottom: 0;
|
|
1467
|
+
}
|
|
1468
|
+
|
|
1469
|
+
:host(:nth-of-type(even)) {
|
|
1470
|
+
background: var(--igx-row-even-background, var(--row-even-background));
|
|
1471
|
+
color: var(--igx-row-even-text-color, var(--row-even-text-color));
|
|
1472
|
+
}
|
|
1473
|
+
|
|
1474
|
+
:host(:hover) {
|
|
1475
|
+
background: var(--igx-row-hover-background, var(--row-hover-background));
|
|
1476
|
+
color: var(--igx-row-hover-text-color, var(--row-hover-text-color));
|
|
1477
|
+
}`;
|
|
1478
|
+
var Bt = Object.defineProperty, Gt = Object.getOwnPropertyDescriptor, I = (i, e, t, r) => {
|
|
1479
|
+
for (var a = r > 1 ? void 0 : r ? Gt(e, t) : e, s = i.length - 1, l; s >= 0; s--)
|
|
1480
|
+
(l = i[s]) && (a = (r ? l(e, t, a) : l(a)) || a);
|
|
1481
|
+
return r && a && Bt(e, t, a), a;
|
|
1482
|
+
};
|
|
1483
|
+
let b = class extends S {
|
|
1484
|
+
constructor() {
|
|
1485
|
+
super(...arguments), this.columns = [], this.index = -1;
|
|
1486
|
+
}
|
|
1487
|
+
static get is() {
|
|
1488
|
+
return Oe;
|
|
1489
|
+
}
|
|
1490
|
+
get cells() {
|
|
1491
|
+
return Array.from(this._cells);
|
|
1492
|
+
}
|
|
1493
|
+
connectedCallback() {
|
|
1494
|
+
super.connectedCallback(), this.setAttribute("exportparts", "cell");
|
|
1495
|
+
}
|
|
1496
|
+
render() {
|
|
1497
|
+
const { column: i, row: e } = this.activeNode;
|
|
1498
|
+
return n`
|
|
1499
|
+
${ze(
|
|
1500
|
+
this.columns,
|
|
1501
|
+
(t) => t.hidden ? g : n`<apex-grid-cell
|
|
1502
|
+
part="cell"
|
|
1503
|
+
.active=${i === t.key && e === this.index}
|
|
1504
|
+
.column=${t}
|
|
1505
|
+
.row=${this}
|
|
1506
|
+
.value=${this.data[t.key]}
|
|
1507
|
+
></apex-grid-cell>`
|
|
1508
|
+
)}
|
|
1509
|
+
`;
|
|
1510
|
+
}
|
|
1511
|
+
};
|
|
1512
|
+
b.styles = Ft;
|
|
1513
|
+
I([
|
|
1514
|
+
ce(w.is)
|
|
1515
|
+
], b.prototype, "_cells", 2);
|
|
1516
|
+
I([
|
|
1517
|
+
o({ attribute: !1 })
|
|
1518
|
+
], b.prototype, "data", 2);
|
|
1519
|
+
I([
|
|
1520
|
+
o({ attribute: !1 })
|
|
1521
|
+
], b.prototype, "columns", 2);
|
|
1522
|
+
I([
|
|
1523
|
+
o({ attribute: !1 })
|
|
1524
|
+
], b.prototype, "activeNode", 2);
|
|
1525
|
+
I([
|
|
1526
|
+
o({ attribute: !1, type: Number })
|
|
1527
|
+
], b.prototype, "index", 2);
|
|
1528
|
+
b = I([
|
|
1529
|
+
_(Oe)
|
|
1530
|
+
], b);
|
|
1531
|
+
const jt = y`/* 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 */
|
|
1532
|
+
:host {
|
|
1533
|
+
--is-large: clamp(0, (var(--component-size, 1) + 1) - var(--ig-size-large, 3), 1);
|
|
1534
|
+
--is-medium:
|
|
1535
|
+
min(
|
|
1536
|
+
clamp(0, (var(--component-size, 1) + 1) - var(--ig-size-medium, 2), 1),
|
|
1537
|
+
clamp(0, var(--ig-size-large, 3) - var(--component-size, 1), 1)
|
|
1538
|
+
);
|
|
1539
|
+
--is-small: clamp(0, var(--ig-size-medium) - var(--component-size, 1), 1);
|
|
1540
|
+
--component-size: 3;
|
|
1541
|
+
}
|
|
1542
|
+
|
|
1543
|
+
:host {
|
|
1544
|
+
--ig-size: 1;
|
|
1545
|
+
display: grid;
|
|
1546
|
+
grid-row: filter-row;
|
|
1547
|
+
min-height: max(var(--is-large, 1) * 3.125rem, var(--is-medium, 1) * 2.125rem, var(--is-small, 1) * 1.5rem);
|
|
1548
|
+
background: var(--igx-header-background, var(--header-background));
|
|
1549
|
+
color: var(--igx-header-text-color, var(--header-text-color));
|
|
1550
|
+
-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));
|
|
1551
|
+
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));
|
|
1552
|
+
z-index: var(--z-index-base);
|
|
1553
|
+
-webkit-padding-end: var(--scrollbar-offset);
|
|
1554
|
+
padding-inline-end: var(--scrollbar-offset);
|
|
1555
|
+
}
|
|
1556
|
+
|
|
1557
|
+
[part=filter-row-preview] {
|
|
1558
|
+
display: -webkit-box;
|
|
1559
|
+
display: -ms-flexbox;
|
|
1560
|
+
display: flex;
|
|
1561
|
+
-webkit-box-align: center;
|
|
1562
|
+
-ms-flex-align: center;
|
|
1563
|
+
align-items: center;
|
|
1564
|
+
overflow: hidden;
|
|
1565
|
+
padding: 0 max(var(--is-large, 1) * 1.5rem, var(--is-medium, 1) * 1rem, var(--is-small, 1) * 0.5rem);
|
|
1566
|
+
background: var(--igx-filtering-row-background, var(--filtering-row-background));
|
|
1567
|
+
color: var(--igx-filtering-row-text-color, var(--filtering-row-text-color));
|
|
1568
|
+
-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));
|
|
1569
|
+
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));
|
|
1570
|
+
}
|
|
1571
|
+
|
|
1572
|
+
[part~=active-state] {
|
|
1573
|
+
background: var(--igx-filtering-row-background, var(--filtering-row-background));
|
|
1574
|
+
color: var(--igx-filtering-row-text-color, var(--filtering-row-text-color));
|
|
1575
|
+
min-height: max(var(--is-large, 1) * 3.125rem, var(--is-medium, 1) * 2.125rem, var(--is-small, 1) * 1.5rem);
|
|
1576
|
+
min-width: 100%;
|
|
1577
|
+
display: -webkit-box;
|
|
1578
|
+
display: -ms-flexbox;
|
|
1579
|
+
display: flex;
|
|
1580
|
+
-webkit-box-align: center;
|
|
1581
|
+
-ms-flex-align: center;
|
|
1582
|
+
align-items: center;
|
|
1583
|
+
gap: 0.5rem;
|
|
1584
|
+
position: relative;
|
|
1585
|
+
inset-block-start: -0.0625rem;
|
|
1586
|
+
}
|
|
1587
|
+
|
|
1588
|
+
[part=filter-row-preview]:last-of-type {
|
|
1589
|
+
-webkit-border-end: none;
|
|
1590
|
+
border-inline-end: none;
|
|
1591
|
+
}
|
|
1592
|
+
|
|
1593
|
+
[part~=filter-row-input] {
|
|
1594
|
+
-webkit-padding-start: max(var(--is-large, 1) * 1.5rem, var(--is-medium, 1) * 1rem, var(--is-small, 1) * 0.5rem);
|
|
1595
|
+
padding-inline-start: max(var(--is-large, 1) * 1.5rem, var(--is-medium, 1) * 1rem, var(--is-small, 1) * 0.5rem);
|
|
1596
|
+
}
|
|
1597
|
+
|
|
1598
|
+
[part~=filter-row-actions] {
|
|
1599
|
+
-webkit-padding-end: max(var(--is-large, 1) * 1.5rem, var(--is-medium, 1) * 1rem, var(--is-small, 1) * 0.5rem);
|
|
1600
|
+
padding-inline-end: max(var(--is-large, 1) * 1.5rem, var(--is-medium, 1) * 1rem, var(--is-small, 1) * 0.5rem);
|
|
1601
|
+
}
|
|
1602
|
+
|
|
1603
|
+
[part~=filter-row-input],
|
|
1604
|
+
[part~=filter-row-filters],
|
|
1605
|
+
[part~=filter-row-actions] {
|
|
1606
|
+
display: -webkit-box;
|
|
1607
|
+
display: -ms-flexbox;
|
|
1608
|
+
display: flex;
|
|
1609
|
+
-webkit-box-align: center;
|
|
1610
|
+
-ms-flex-align: center;
|
|
1611
|
+
align-items: center;
|
|
1612
|
+
}
|
|
1613
|
+
|
|
1614
|
+
[part~=filter-row-filters] {
|
|
1615
|
+
-webkit-box-flex: 1;
|
|
1616
|
+
-ms-flex: 1;
|
|
1617
|
+
flex: 1;
|
|
1618
|
+
overflow: hidden;
|
|
1619
|
+
}
|
|
1620
|
+
|
|
1621
|
+
igc-input::part(container), igc-input::part(input) {
|
|
1622
|
+
background: inherit;
|
|
1623
|
+
color: inherit;
|
|
1624
|
+
}`;
|
|
1625
|
+
var Vt = Object.defineProperty, Zt = Object.getOwnPropertyDescriptor, x = (i, e, t, r) => {
|
|
1626
|
+
for (var a = r > 1 ? void 0 : r ? Zt(e, t) : e, s = i.length - 1, l; s >= 0; s--)
|
|
1627
|
+
(l = i[s]) && (a = (r ? l(e, t, a) : l(a)) || a);
|
|
1628
|
+
return r && a && Vt(e, t, a), a;
|
|
1629
|
+
}, Qt = (i, e, t) => {
|
|
1630
|
+
if (!e.has(i))
|
|
1631
|
+
throw TypeError("Cannot " + t);
|
|
1632
|
+
}, v = (i, e, t) => {
|
|
1633
|
+
if (e.has(i))
|
|
1634
|
+
throw TypeError("Cannot add the same private member more than once");
|
|
1635
|
+
e instanceof WeakSet ? e.add(i) : e.set(i, t);
|
|
1636
|
+
}, c = (i, e, t) => (Qt(i, e, "access private method"), t), D, j, V, ue, N, te, ie, Pe, re, He, ae, We, se, Ue, le, Fe, ne, Be, oe, Ge, P, de;
|
|
1637
|
+
function L(i) {
|
|
1638
|
+
return n`<igc-icon
|
|
1639
|
+
slot="prefix"
|
|
1640
|
+
name=${ke(i)}
|
|
1641
|
+
collection="internal"
|
|
1642
|
+
></igc-icon>`;
|
|
1643
|
+
}
|
|
1644
|
+
let p = class extends S {
|
|
1645
|
+
constructor() {
|
|
1646
|
+
super(...arguments), v(this, D), v(this, V), v(this, N), v(this, ie), v(this, re), v(this, ae), v(this, se), v(this, le), v(this, ne), v(this, oe), v(this, P), this.active = !1, this.column = Z;
|
|
1647
|
+
}
|
|
1648
|
+
static get is() {
|
|
1649
|
+
return Ae;
|
|
1650
|
+
}
|
|
1651
|
+
get isNumeric() {
|
|
1652
|
+
return this.column.type === "number";
|
|
1653
|
+
}
|
|
1654
|
+
get filterController() {
|
|
1655
|
+
return this.state.filtering;
|
|
1656
|
+
}
|
|
1657
|
+
get condition() {
|
|
1658
|
+
return this.expression.condition;
|
|
1659
|
+
}
|
|
1660
|
+
activeChanged() {
|
|
1661
|
+
this.style.display = this.active ? "flex" : "", this.active || (this.column = Z), this.state.host.requestUpdate();
|
|
1662
|
+
}
|
|
1663
|
+
renderCriteriaButton(i, e) {
|
|
1664
|
+
return e ? n`<igc-button
|
|
1665
|
+
variant="flat"
|
|
1666
|
+
@click=${c(this, ne, Be).call(this, i)}
|
|
1667
|
+
>
|
|
1668
|
+
${i.criteria}
|
|
1669
|
+
</igc-button>` : g;
|
|
1670
|
+
}
|
|
1671
|
+
renderExpressionChip(i) {
|
|
1672
|
+
const { name: e, unary: t } = i.expression.condition, { searchTerm: r } = i.expression, a = n`<span slot="select"></span>${L(e)}`;
|
|
1673
|
+
return n`<igc-chip
|
|
1674
|
+
selectable
|
|
1675
|
+
removable
|
|
1676
|
+
?selected=${i.selected}
|
|
1677
|
+
@igcRemove=${i.onRemove}
|
|
1678
|
+
@igcSelect=${i.onSelect}
|
|
1679
|
+
>
|
|
1680
|
+
${a}${t ? e : r}
|
|
1681
|
+
</igc-chip>`;
|
|
1682
|
+
}
|
|
1683
|
+
renderActiveChips() {
|
|
1684
|
+
const i = this.filterController.get(this.column.key);
|
|
1685
|
+
return i ? Array.from(i).map((e, t) => {
|
|
1686
|
+
const r = {
|
|
1687
|
+
expression: e,
|
|
1688
|
+
selected: this.expression === e,
|
|
1689
|
+
onRemove: c(this, P, de).call(this, e),
|
|
1690
|
+
onSelect: c(this, oe, Ge).call(this, e)
|
|
1691
|
+
};
|
|
1692
|
+
return n`${this.renderCriteriaButton(e, t)}${this.renderExpressionChip(
|
|
1693
|
+
r
|
|
1694
|
+
)}`;
|
|
1695
|
+
}) : g;
|
|
1696
|
+
}
|
|
1697
|
+
renderFilterActions() {
|
|
1698
|
+
return n`
|
|
1699
|
+
<igc-button
|
|
1700
|
+
id="reset"
|
|
1701
|
+
variant="flat"
|
|
1702
|
+
@click=${c(this, se, Ue)}
|
|
1703
|
+
>
|
|
1704
|
+
${L("refresh")} Reset
|
|
1705
|
+
</igc-button>
|
|
1706
|
+
<igc-button
|
|
1707
|
+
id="close"
|
|
1708
|
+
variant="flat"
|
|
1709
|
+
@click=${() => this.active = !1}
|
|
1710
|
+
>
|
|
1711
|
+
${L("close")} Close
|
|
1712
|
+
</igc-button>
|
|
1713
|
+
`;
|
|
1714
|
+
}
|
|
1715
|
+
renderDropdown() {
|
|
1716
|
+
return n`<igc-dropdown
|
|
1717
|
+
flip
|
|
1718
|
+
same-width
|
|
1719
|
+
@igcChange=${c(this, ie, Pe)}
|
|
1720
|
+
>${Array.from(U(this.column)).map(
|
|
1721
|
+
(i) => n`<igc-dropdown-item
|
|
1722
|
+
.value=${i}
|
|
1723
|
+
?selected=${this.condition?.name === i}
|
|
1724
|
+
>
|
|
1725
|
+
${L(i)}${i}
|
|
1726
|
+
</igc-dropdown-item>`
|
|
1727
|
+
)}
|
|
1728
|
+
</igc-dropdown>`;
|
|
1729
|
+
}
|
|
1730
|
+
renderDropdownTarget() {
|
|
1731
|
+
return n`<igc-icon
|
|
1732
|
+
id="condition"
|
|
1733
|
+
slot="prefix"
|
|
1734
|
+
collection="internal"
|
|
1735
|
+
.name=${this.condition.name}
|
|
1736
|
+
@click=${c(this, le, Fe)}
|
|
1737
|
+
>
|
|
1738
|
+
</igc-icon>`;
|
|
1739
|
+
}
|
|
1740
|
+
renderInputArea() {
|
|
1741
|
+
return n`<igc-input
|
|
1742
|
+
outlined
|
|
1743
|
+
value=${ke(this.expression.searchTerm)}
|
|
1744
|
+
placeholder="Add filter value"
|
|
1745
|
+
?readonly=${this.condition.unary}
|
|
1746
|
+
@igcInput=${c(this, re, He)}
|
|
1747
|
+
@keydown=${c(this, ae, We)}
|
|
1748
|
+
>
|
|
1749
|
+
${this.renderDropdownTarget()}
|
|
1750
|
+
</igc-input>
|
|
1751
|
+
${this.renderDropdown()}`;
|
|
1752
|
+
}
|
|
1753
|
+
renderActiveState() {
|
|
1754
|
+
return n`<div part="active-state">
|
|
1755
|
+
<div part="filter-row-input">${this.renderInputArea()}</div>
|
|
1756
|
+
<div part="filter-row-filters">${this.renderActiveChips()}</div>
|
|
1757
|
+
<div part="filter-row-actions">${this.renderFilterActions()}</div>
|
|
1758
|
+
</div> `;
|
|
1759
|
+
}
|
|
1760
|
+
renderInactiveChips(i, e) {
|
|
1761
|
+
return Array.from(e).map((t, r) => {
|
|
1762
|
+
const a = {
|
|
1763
|
+
expression: t,
|
|
1764
|
+
selected: !1,
|
|
1765
|
+
onRemove: c(this, P, de).call(this, t),
|
|
1766
|
+
onSelect: (s) => {
|
|
1767
|
+
s.stopPropagation(), this.column = i, this.expression = t, c(this, N, te).call(this);
|
|
1768
|
+
}
|
|
1769
|
+
};
|
|
1770
|
+
return n`${this.renderCriteriaButton(t, r)}${this.renderExpressionChip(a)}`;
|
|
1771
|
+
});
|
|
1772
|
+
}
|
|
1773
|
+
renderFilterState(i) {
|
|
1774
|
+
const e = this.filterController.get(i.key), t = e && e.length < 3, r = e && e.length >= 3, a = () => {
|
|
1775
|
+
this.column = i, c(this, D, j).call(this), c(this, N, te).call(this);
|
|
1776
|
+
}, s = r ? n`<span slot="suffix">${e.length}</span>` : g, l = n`<igc-chip
|
|
1777
|
+
data-column=${i.key}
|
|
1778
|
+
@click=${a}
|
|
1779
|
+
>${L("filter")}Filter${s}</igc-chip
|
|
1780
|
+
>`;
|
|
1781
|
+
return t ? this.renderInactiveChips(i, e) : l;
|
|
1782
|
+
}
|
|
1783
|
+
renderInactiveState() {
|
|
1784
|
+
return this.state.host.columns.map(
|
|
1785
|
+
(i) => i.hidden ? g : n`<div part="filter-row-preview">
|
|
1786
|
+
${i.filter ? this.renderFilterState(i) : g}
|
|
1787
|
+
</div>`
|
|
1788
|
+
);
|
|
1789
|
+
}
|
|
1790
|
+
render() {
|
|
1791
|
+
return n`${this.active ? this.renderActiveState() : this.renderInactiveState()}`;
|
|
1792
|
+
}
|
|
1793
|
+
};
|
|
1794
|
+
D = /* @__PURE__ */ new WeakSet();
|
|
1795
|
+
j = function() {
|
|
1796
|
+
this.expression = this.filterController.getDefaultExpression(this.column);
|
|
1797
|
+
};
|
|
1798
|
+
V = /* @__PURE__ */ new WeakSet();
|
|
1799
|
+
ue = function(i) {
|
|
1800
|
+
this.filterController.removeExpression(i);
|
|
1801
|
+
};
|
|
1802
|
+
N = /* @__PURE__ */ new WeakSet();
|
|
1803
|
+
te = async function() {
|
|
1804
|
+
this.active = !0, await this.updateComplete, this.input.select();
|
|
1805
|
+
};
|
|
1806
|
+
ie = /* @__PURE__ */ new WeakSet();
|
|
1807
|
+
Pe = function(i) {
|
|
1808
|
+
i.stopPropagation(), this.expression.condition = U(this.column).get(i.detail.value), (this.input.value || this.expression.condition.unary) && this.filterController.filterWithEvent(this.expression), this.requestUpdate();
|
|
1809
|
+
};
|
|
1810
|
+
re = /* @__PURE__ */ new WeakSet();
|
|
1811
|
+
He = function(i) {
|
|
1812
|
+
i.stopPropagation();
|
|
1813
|
+
const e = this.isNumeric ? parseFloat(i.detail) : i.detail;
|
|
1814
|
+
(this.isNumeric ? !isNaN(e) : !!e) ? (this.expression.searchTerm = e, this.filterController.filterWithEvent(this.expression)) : (c(this, V, ue).call(this, this.expression), this.state.host.requestUpdate(z)), this.requestUpdate();
|
|
1815
|
+
};
|
|
1816
|
+
ae = /* @__PURE__ */ new WeakSet();
|
|
1817
|
+
We = function(i) {
|
|
1818
|
+
switch (i.stopPropagation(), i.key) {
|
|
1819
|
+
case "Enter":
|
|
1820
|
+
this.input.value = "", c(this, D, j).call(this);
|
|
1821
|
+
return;
|
|
1822
|
+
case "Escape":
|
|
1823
|
+
this.active = !1;
|
|
1824
|
+
return;
|
|
1825
|
+
default:
|
|
1826
|
+
return;
|
|
1827
|
+
}
|
|
1828
|
+
};
|
|
1829
|
+
se = /* @__PURE__ */ new WeakSet();
|
|
1830
|
+
Ue = function() {
|
|
1831
|
+
this.filterController.reset(this.column.key), this.state.host.requestUpdate(z), this.requestUpdate();
|
|
1832
|
+
};
|
|
1833
|
+
le = /* @__PURE__ */ new WeakSet();
|
|
1834
|
+
Fe = function() {
|
|
1835
|
+
this.dropdown.toggle(this.input);
|
|
1836
|
+
};
|
|
1837
|
+
ne = /* @__PURE__ */ new WeakSet();
|
|
1838
|
+
Be = function(i) {
|
|
1839
|
+
return async (e) => {
|
|
1840
|
+
e.stopPropagation(), i.criteria = i.criteria === "and" ? "or" : "and", this.filterController.filterWithEvent(i), this.requestUpdate();
|
|
1841
|
+
};
|
|
1842
|
+
};
|
|
1843
|
+
oe = /* @__PURE__ */ new WeakSet();
|
|
1844
|
+
Ge = function(i) {
|
|
1845
|
+
return async (e) => {
|
|
1846
|
+
e.stopPropagation(), this.expression = i, await this.updateComplete, this.input.select();
|
|
1847
|
+
};
|
|
1848
|
+
};
|
|
1849
|
+
P = /* @__PURE__ */ new WeakSet();
|
|
1850
|
+
de = function(i) {
|
|
1851
|
+
return async (e) => {
|
|
1852
|
+
e.stopPropagation(), c(this, V, ue).call(this, i), this.active && this.expression === i && (c(this, D, j).call(this), await this.updateComplete, this.input.focus()), this.state.host.requestUpdate(z), this.requestUpdate();
|
|
1853
|
+
};
|
|
1854
|
+
};
|
|
1855
|
+
p.styles = jt;
|
|
1856
|
+
x([
|
|
1857
|
+
he({ context: F, subscribe: !0 }),
|
|
1858
|
+
o({ attribute: !1 })
|
|
1859
|
+
], p.prototype, "state", 2);
|
|
1860
|
+
x([
|
|
1861
|
+
o({ attribute: !1 })
|
|
1862
|
+
], p.prototype, "active", 2);
|
|
1863
|
+
x([
|
|
1864
|
+
A(fe.tagName)
|
|
1865
|
+
], p.prototype, "input", 2);
|
|
1866
|
+
x([
|
|
1867
|
+
A("#condition")
|
|
1868
|
+
], p.prototype, "conditionElement", 2);
|
|
1869
|
+
x([
|
|
1870
|
+
A(we.tagName)
|
|
1871
|
+
], p.prototype, "dropdown", 2);
|
|
1872
|
+
x([
|
|
1873
|
+
o({ attribute: !1 })
|
|
1874
|
+
], p.prototype, "column", 2);
|
|
1875
|
+
x([
|
|
1876
|
+
o({ attribute: !1 })
|
|
1877
|
+
], p.prototype, "expression", 2);
|
|
1878
|
+
x([
|
|
1879
|
+
q("active", { waitUntilFirstUpdate: !0 })
|
|
1880
|
+
], p.prototype, "activeChanged", 1);
|
|
1881
|
+
p = x([
|
|
1882
|
+
_(Ae)
|
|
1883
|
+
], p);
|
|
1884
|
+
var Kt = Object.defineProperty, Xt = Object.getOwnPropertyDescriptor, h = (i, e, t, r) => {
|
|
1885
|
+
for (var a = r > 1 ? void 0 : r ? Xt(e, t) : e, s = i.length - 1, l; s >= 0; s--)
|
|
1886
|
+
(l = i[s]) && (a = (r ? l(e, t, a) : l(a)) || a);
|
|
1887
|
+
return r && a && Kt(e, t, a), a;
|
|
1888
|
+
};
|
|
1889
|
+
Xe(
|
|
1890
|
+
Ye,
|
|
1891
|
+
Je,
|
|
1892
|
+
fe,
|
|
1893
|
+
we,
|
|
1894
|
+
et,
|
|
1895
|
+
tt
|
|
1896
|
+
);
|
|
1897
|
+
let d = class extends zt {
|
|
1898
|
+
constructor() {
|
|
1899
|
+
super(), this.stateController = new bt(this), this.DOM = new wt(this, this.stateController), this.dataController = new ft(this), this.rowRenderer = (i, e) => n`<apex-grid-row
|
|
1900
|
+
part="row"
|
|
1901
|
+
style=${R({ ...this.DOM.columnSizes, ...this.DOM.getActiveRowStyles(e) })}
|
|
1902
|
+
.index=${e}
|
|
1903
|
+
.activeNode=${this.stateController.active}
|
|
1904
|
+
.data=${i}
|
|
1905
|
+
.columns=${this.columns}
|
|
1906
|
+
></apex-grid-row>`, this.stateProvider = new Ve(this, F, this.stateController), this.dataState = [], this.columns = [], this.data = [], this.autoGenerate = !1, this.sortConfiguration = {
|
|
1907
|
+
multiple: !0,
|
|
1908
|
+
triState: !0
|
|
1909
|
+
}, this.sortExpressions = [], this.filterExpressions = [], Ct();
|
|
1910
|
+
}
|
|
1911
|
+
static get is() {
|
|
1912
|
+
return Ce;
|
|
1913
|
+
}
|
|
1914
|
+
get rows() {
|
|
1915
|
+
return Array.from(this._rows);
|
|
1916
|
+
}
|
|
1917
|
+
get dataView() {
|
|
1918
|
+
return this.dataState;
|
|
1919
|
+
}
|
|
1920
|
+
get totalItems() {
|
|
1921
|
+
return this.dataState.length;
|
|
1922
|
+
}
|
|
1923
|
+
connectedCallback() {
|
|
1924
|
+
super.connectedCallback(), ht(this);
|
|
1925
|
+
}
|
|
1926
|
+
requestUpdate(i, e, t) {
|
|
1927
|
+
this.headerRow?.requestUpdate(), this.filterRow?.requestUpdate(), super.requestUpdate(i, e, t);
|
|
1928
|
+
}
|
|
1929
|
+
watchSortExpressions() {
|
|
1930
|
+
this.sortExpressions.length && this.sort(this.sortExpressions);
|
|
1931
|
+
}
|
|
1932
|
+
watchFilterExpressions() {
|
|
1933
|
+
this.filterExpressions.length && this.filter(this.filterExpressions);
|
|
1934
|
+
}
|
|
1935
|
+
watchColumns(i, e = []) {
|
|
1936
|
+
this.columns = e.map((t) => ({ ...Z, ...t }));
|
|
1937
|
+
}
|
|
1938
|
+
dataChanged() {
|
|
1939
|
+
this.dataState = structuredClone(this.data), this.hasUpdated && this.pipeline();
|
|
1940
|
+
}
|
|
1941
|
+
async pipeline() {
|
|
1942
|
+
this.dataState = await this.dataController.apply(
|
|
1943
|
+
structuredClone(this.data),
|
|
1944
|
+
this.stateController
|
|
1945
|
+
);
|
|
1946
|
+
}
|
|
1947
|
+
filter(i) {
|
|
1948
|
+
this.stateController.filtering.filter(
|
|
1949
|
+
M(i).map(
|
|
1950
|
+
(e) => typeof e.condition == "string" ? Object.assign(e, {
|
|
1951
|
+
condition: U(this.getColumn(e.key)).get(e.condition)
|
|
1952
|
+
}) : e
|
|
1953
|
+
)
|
|
1954
|
+
);
|
|
1955
|
+
}
|
|
1956
|
+
sort(i) {
|
|
1957
|
+
this.stateController.sorting.sort(i);
|
|
1958
|
+
}
|
|
1959
|
+
getColumn(i) {
|
|
1960
|
+
return typeof i == "number" ? this.columns.at(i) : this.columns.find(({ key: e }) => e === i);
|
|
1961
|
+
}
|
|
1962
|
+
updateColumn(i, e) {
|
|
1963
|
+
e.sort || this.stateController.sorting.reset(i), e.filter || this.stateController.filtering.reset(i), this.columns = this.columns.map((t) => (i === t.key && (t = { ...t, ...e }), t)), this.requestUpdate();
|
|
1964
|
+
}
|
|
1965
|
+
bodyClickHandler(i) {
|
|
1966
|
+
const e = i.composedPath().find((t) => t instanceof w);
|
|
1967
|
+
e && (this.stateController.active = {
|
|
1968
|
+
column: e.column.key,
|
|
1969
|
+
row: e.row.index
|
|
1970
|
+
});
|
|
1971
|
+
}
|
|
1972
|
+
bodyKeydownHandler(i) {
|
|
1973
|
+
const e = i.target;
|
|
1974
|
+
this.bodyElement.isSameNode(e) && this.stateController.navigation.navigate(i, this.bodyElement);
|
|
1975
|
+
}
|
|
1976
|
+
renderHeaderRow() {
|
|
1977
|
+
return n`<apex-grid-header-row
|
|
1978
|
+
style=${R(this.DOM.columnSizes)}
|
|
1979
|
+
.columns=${this.columns}
|
|
1980
|
+
></apex-grid-header-row>`;
|
|
1981
|
+
}
|
|
1982
|
+
renderBody() {
|
|
1983
|
+
return n`<apex-grid-body
|
|
1984
|
+
@keydown=${this.bodyKeydownHandler}
|
|
1985
|
+
@click=${this.bodyClickHandler}
|
|
1986
|
+
.items=${this.dataState}
|
|
1987
|
+
.renderItem=${this.rowRenderer}
|
|
1988
|
+
></apex-grid-body>`;
|
|
1989
|
+
}
|
|
1990
|
+
renderFilterRow() {
|
|
1991
|
+
return this.columns.some((i) => i.filter) ? n`<apex-filter-row style=${R(this.DOM.columnSizes)}></apex-filter-row>` : g;
|
|
1992
|
+
}
|
|
1993
|
+
render() {
|
|
1994
|
+
return n`${this.stateController.resizing.renderIndicator()}${this.renderHeaderRow()}${this.renderFilterRow()}${this.renderBody()}`;
|
|
1995
|
+
}
|
|
1996
|
+
};
|
|
1997
|
+
d.styles = Le;
|
|
1998
|
+
h([
|
|
1999
|
+
A(Q.is)
|
|
2000
|
+
], d.prototype, "bodyElement", 2);
|
|
2001
|
+
h([
|
|
2002
|
+
A(C.is)
|
|
2003
|
+
], d.prototype, "headerRow", 2);
|
|
2004
|
+
h([
|
|
2005
|
+
A(p.is)
|
|
2006
|
+
], d.prototype, "filterRow", 2);
|
|
2007
|
+
h([
|
|
2008
|
+
Ze()
|
|
2009
|
+
], d.prototype, "dataState", 2);
|
|
2010
|
+
h([
|
|
2011
|
+
ce(b.is)
|
|
2012
|
+
], d.prototype, "_rows", 2);
|
|
2013
|
+
h([
|
|
2014
|
+
o({ attribute: !1 })
|
|
2015
|
+
], d.prototype, "columns", 2);
|
|
2016
|
+
h([
|
|
2017
|
+
o({ attribute: !1 })
|
|
2018
|
+
], d.prototype, "data", 2);
|
|
2019
|
+
h([
|
|
2020
|
+
o({ type: Boolean, attribute: "auto-generate" })
|
|
2021
|
+
], d.prototype, "autoGenerate", 2);
|
|
2022
|
+
h([
|
|
2023
|
+
o({ attribute: !1 })
|
|
2024
|
+
], d.prototype, "sortConfiguration", 2);
|
|
2025
|
+
h([
|
|
2026
|
+
o({ attribute: !1 })
|
|
2027
|
+
], d.prototype, "remoteConfiguration", 2);
|
|
2028
|
+
h([
|
|
2029
|
+
o({ attribute: !1 })
|
|
2030
|
+
], d.prototype, "sortExpressions", 2);
|
|
2031
|
+
h([
|
|
2032
|
+
o({ attribute: !1 })
|
|
2033
|
+
], d.prototype, "filterExpressions", 2);
|
|
2034
|
+
h([
|
|
2035
|
+
q("sortExpressions")
|
|
2036
|
+
], d.prototype, "watchSortExpressions", 1);
|
|
2037
|
+
h([
|
|
2038
|
+
q("filterExpressions")
|
|
2039
|
+
], d.prototype, "watchFilterExpressions", 1);
|
|
2040
|
+
h([
|
|
2041
|
+
q("columns")
|
|
2042
|
+
], d.prototype, "watchColumns", 1);
|
|
2043
|
+
h([
|
|
2044
|
+
q("data")
|
|
2045
|
+
], d.prototype, "dataChanged", 1);
|
|
2046
|
+
h([
|
|
2047
|
+
q(z)
|
|
2048
|
+
], d.prototype, "pipeline", 1);
|
|
2049
|
+
h([
|
|
2050
|
+
Qe({ capture: !0 })
|
|
2051
|
+
], d.prototype, "bodyClickHandler", 1);
|
|
2052
|
+
d = h([
|
|
2053
|
+
rt({
|
|
2054
|
+
bootstrap: Le,
|
|
2055
|
+
fluent: _t,
|
|
2056
|
+
indigo: Et,
|
|
2057
|
+
material: $t
|
|
2058
|
+
}),
|
|
2059
|
+
_(Ce)
|
|
2060
|
+
], d);
|
|
2061
|
+
export {
|
|
2062
|
+
d as ApexGrid,
|
|
2063
|
+
ge as BaseOperands,
|
|
2064
|
+
lt as BooleanOperands,
|
|
2065
|
+
ct as FilterExpressionTree,
|
|
2066
|
+
gt as FilterState,
|
|
2067
|
+
nt as NumberOperands,
|
|
2068
|
+
ot as StringOperands
|
|
2069
|
+
};
|