@owp/core 2.5.16 → 2.5.18
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/dist/components/OwpPicker/OwpTimePicker.js +186 -208
- package/dist/components/OwpPicker/OwpTimePicker.js.map +1 -1
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js +298 -227
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridDatePickerEditor.js +487 -0
- package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridDatePickerEditor.js.map +1 -0
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +369 -248
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridTheme.js +201 -117
- package/dist/components/OwpTreeGrid/internal/treeGridTheme.js.map +1 -1
- package/dist/constants/gridTheme.js +7 -6
- package/dist/constants/gridTheme.js.map +1 -1
- package/dist/constants/treeGrid.js +27 -26
- package/dist/constants/treeGrid.js.map +1 -1
- package/dist/constants.js +23 -22
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/constants.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE93/constants.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/constants.js +1 -1
- package/dist/owp-app.css +1 -1
- package/dist/types/components/OwpPicker/OwpTimePicker.d.ts +3 -1
- package/dist/types/components/OwpTreeGrid/OwpTreeGrid.d.ts +14 -6
- package/dist/types/components/OwpTreeGrid/internal/hooks/useOwpTreeGridDatePickerEditor.d.ts +17 -0
- package/dist/types/components/OwpTreeGrid/internal/treeGridRuntime.d.ts +41 -7
- package/dist/types/components/OwpTreeGrid/internal/treeGridTheme.d.ts +1 -1
- package/dist/types/constants/gridTheme.d.ts +2 -0
- package/dist/types/constants/treeGrid.d.ts +2 -1
- package/dist/types/types/OwpGridThemeTypes.d.ts +1 -0
- package/dist/types/utils/index.d.ts +0 -1
- package/dist/types/utils/treeGridUtil.d.ts +27 -0
- package/dist/utils/treeGridUtil.js +172 -112
- package/dist/utils/treeGridUtil.js.map +1 -1
- package/dist/utils.js +85 -83
- package/dist/utils.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridColumnEditRules.js +0 -84
- package/dist/components/OwpTreeGrid/internal/treeGridColumnEditRules.js.map +0 -1
- package/dist/types/components/OwpTreeGrid/internal/treeGridColumnEditRules.d.ts +0 -60
- package/dist/types/utils/normalizeTimeToHourMinute.d.ts +0 -11
- package/dist/utils/normalizeTimeToHourMinute.js +0 -34
- package/dist/utils/normalizeTimeToHourMinute.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
var
|
|
2
|
-
var t = (e, r) =>
|
|
3
|
-
import { TREEGRID_FONT_FAMILY_STACK as
|
|
4
|
-
const l = "owp-tree-grid-theme", w = "owp-tree-grid-table-radius",
|
|
1
|
+
var H = Object.defineProperty;
|
|
2
|
+
var t = (e, r) => H(e, "name", { value: r, configurable: !0 });
|
|
3
|
+
import { TREEGRID_FONT_FAMILY_STACK as f, TREEGRID_CELL_CHANGED_CLASS as d } from "../../../constants/treeGrid.js";
|
|
4
|
+
const l = "owp-tree-grid-theme", w = "owp-tree-grid-table-radius", c = [
|
|
5
5
|
"TS",
|
|
6
6
|
"TW",
|
|
7
7
|
"TB",
|
|
@@ -18,7 +18,7 @@ const l = "owp-tree-grid-theme", w = "owp-tree-grid-table-radius", s = [
|
|
|
18
18
|
"CR",
|
|
19
19
|
"CP",
|
|
20
20
|
"CC"
|
|
21
|
-
],
|
|
21
|
+
], k = "#CDD8E4", F = "1px", $ = [
|
|
22
22
|
{
|
|
23
23
|
cssVariableName: "--owp-tree-grid-body-background-color",
|
|
24
24
|
getValue: /* @__PURE__ */ t((e) => {
|
|
@@ -144,8 +144,15 @@ const l = "owp-tree-grid-theme", w = "owp-tree-grid-table-radius", s = [
|
|
|
144
144
|
var r;
|
|
145
145
|
return (r = e == null ? void 0 : e.changed) == null ? void 0 : r.backgroundColor;
|
|
146
146
|
}, "getValue")
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
cssVariableName: "--owp-tree-grid-changed-text-color",
|
|
150
|
+
getValue: /* @__PURE__ */ t((e) => {
|
|
151
|
+
var r;
|
|
152
|
+
return (r = e == null ? void 0 : e.changed) == null ? void 0 : r.color;
|
|
153
|
+
}, "getValue")
|
|
147
154
|
}
|
|
148
|
-
],
|
|
155
|
+
], B = [
|
|
149
156
|
{
|
|
150
157
|
cssVariableName: "--owp-tree-grid-header-background-color",
|
|
151
158
|
getValue: /* @__PURE__ */ t((e) => e.header.backgroundColor, "getValue")
|
|
@@ -156,7 +163,7 @@ const l = "owp-tree-grid-theme", w = "owp-tree-grid-table-radius", s = [
|
|
|
156
163
|
},
|
|
157
164
|
{
|
|
158
165
|
cssVariableName: "--owp-tree-grid-header-font-size",
|
|
159
|
-
getValue: /* @__PURE__ */ t((e) =>
|
|
166
|
+
getValue: /* @__PURE__ */ t((e) => g(e.header.fontSize), "getValue")
|
|
160
167
|
},
|
|
161
168
|
{
|
|
162
169
|
cssVariableName: "--owp-tree-grid-header-font-weight",
|
|
@@ -164,47 +171,47 @@ const l = "owp-tree-grid-theme", w = "owp-tree-grid-table-radius", s = [
|
|
|
164
171
|
},
|
|
165
172
|
{
|
|
166
173
|
cssVariableName: "--owp-tree-grid-cell-font-size",
|
|
167
|
-
getValue: /* @__PURE__ */ t((e) =>
|
|
174
|
+
getValue: /* @__PURE__ */ t((e) => g(e.cell.fontSize), "getValue")
|
|
168
175
|
}
|
|
169
176
|
], a = /* @__PURE__ */ t((e, r) => ({
|
|
170
177
|
backgroundColor: `var(${e}, ${r}) !important`
|
|
171
|
-
}), "createTreeGridBackgroundColorStyle"),
|
|
178
|
+
}), "createTreeGridBackgroundColorStyle"), C = /* @__PURE__ */ t((e) => ({
|
|
172
179
|
backgroundColor: `var(${e}) !important`
|
|
173
180
|
}), "createTreeGridOptionalBackgroundColorStyle"), o = /* @__PURE__ */ t(({
|
|
174
181
|
rowSuffix: e,
|
|
175
182
|
suffixes: r,
|
|
176
|
-
descendant:
|
|
183
|
+
descendant: s = "",
|
|
177
184
|
withChildren: i = !1
|
|
178
|
-
}) =>
|
|
179
|
-
const
|
|
180
|
-
return i ? [
|
|
181
|
-
})).join(", "), "createTreeGridSelectors"),
|
|
185
|
+
}) => c.flatMap((u) => r.flatMap((p) => {
|
|
186
|
+
const b = `.${l}`, S = e ? ` .${u}${e}` : "", n = `${b}${S} .${u}${p}${s}`;
|
|
187
|
+
return i ? [n, `${n} *`] : [n];
|
|
188
|
+
})).join(", "), "createTreeGridSelectors"), G = /* @__PURE__ */ t(({
|
|
182
189
|
ancestorSuffixes: e,
|
|
183
190
|
suffixes: r,
|
|
184
|
-
descendant:
|
|
185
|
-
}) =>
|
|
191
|
+
descendant: s = ""
|
|
192
|
+
}) => c.flatMap((i) => e.flatMap((u) => r.map((p) => `.${l} .${i}${u} .${i}${p}${s}`))).join(", "), "createTreeGridNestedSelectors"), m = o({
|
|
186
193
|
suffixes: ["Main"],
|
|
187
194
|
withChildren: !0
|
|
188
|
-
}),
|
|
195
|
+
}), D = o({
|
|
189
196
|
suffixes: ["Main"]
|
|
190
|
-
}),
|
|
197
|
+
}), x = o({
|
|
191
198
|
suffixes: ["ClassReadOnly"],
|
|
192
199
|
withChildren: !0
|
|
193
|
-
}),
|
|
200
|
+
}), M = o({
|
|
194
201
|
suffixes: ["MainTable"]
|
|
195
|
-
}),
|
|
202
|
+
}), E = `.${l}.${w}`, V = c.map((e) => `.${l}.${w} .${e}MainTable`).join(", "), I = `${E}::before`, h = c.map((e) => `.${l}.${w} .${e}RowSpace4.${e}RowSpaceFirst .${e}SolidRow`).join(", "), _ = c.map((e) => `.${l}.${w} .${e}RowSpace4.${e}RowSpaceFirst .${e}SolidRow::before`).join(", "), y = c.map((e) => `.${l}.${w} .${e}RowSpace4.${e}RowSpaceFirst .${e}SolidRow::after`).join(", "), A = o({
|
|
196
203
|
suffixes: ["FillRow"]
|
|
197
|
-
}),
|
|
204
|
+
}), T = o({
|
|
198
205
|
suffixes: ["SolidRow"]
|
|
199
|
-
}),
|
|
206
|
+
}), L = c.map((e) => `.${l} .${e}ToolbarRow.${e}SolidRow`).join(", "), z = o({
|
|
200
207
|
suffixes: ["ColorDefault"]
|
|
201
|
-
}),
|
|
208
|
+
}), N = o({
|
|
202
209
|
suffixes: ["ColorDefaultRow"]
|
|
203
|
-
}),
|
|
210
|
+
}), O = o({
|
|
204
211
|
rowSuffix: "HeaderRow",
|
|
205
212
|
suffixes: ["CellHeader", "CellIndex", "GanttHeaderBase", "LevelButton"],
|
|
206
213
|
withChildren: !0
|
|
207
|
-
}),
|
|
214
|
+
}), P = o({
|
|
208
215
|
rowSuffix: "HeaderRow",
|
|
209
216
|
suffixes: [
|
|
210
217
|
"CellHeader",
|
|
@@ -217,38 +224,38 @@ const l = "owp-tree-grid-theme", w = "owp-tree-grid-table-radius", s = [
|
|
|
217
224
|
"HeaderFocus",
|
|
218
225
|
"HeaderDrag"
|
|
219
226
|
]
|
|
220
|
-
}),
|
|
227
|
+
}), j = o({
|
|
221
228
|
suffixes: ["ColorHovered"]
|
|
222
|
-
}),
|
|
229
|
+
}), W = o({
|
|
223
230
|
suffixes: ["ColorHoveredRow"]
|
|
224
|
-
}),
|
|
231
|
+
}), Y = o({
|
|
225
232
|
suffixes: ["HoverRowBorder"]
|
|
226
|
-
}),
|
|
233
|
+
}), U = o({
|
|
227
234
|
suffixes: ["ColorSelected", "ColorSelectedCell"]
|
|
228
|
-
}),
|
|
235
|
+
}), X = o({
|
|
229
236
|
suffixes: ["ColorSelected", "ColorSelectedCell"],
|
|
230
237
|
descendant: " *"
|
|
231
|
-
}),
|
|
238
|
+
}), K = o({
|
|
232
239
|
suffixes: ["ColorSelectedRow"]
|
|
233
|
-
}),
|
|
240
|
+
}), Q = o({
|
|
234
241
|
suffixes: ["ColorFocused"]
|
|
235
|
-
}),
|
|
242
|
+
}), q = o({
|
|
236
243
|
suffixes: ["ColorFocusedRow"]
|
|
237
|
-
}),
|
|
244
|
+
}), J = o({
|
|
238
245
|
suffixes: ["FocusRowBorder"]
|
|
239
|
-
}),
|
|
246
|
+
}), Z = o({
|
|
240
247
|
suffixes: ["ColorHoveredCell", "ColorHoveredCellIndex"]
|
|
241
|
-
}),
|
|
248
|
+
}), ee = o({
|
|
242
249
|
suffixes: ["HoverCellBorder"]
|
|
243
|
-
}),
|
|
250
|
+
}), re = o({
|
|
244
251
|
suffixes: ["ColorHoveredCellReadOnly", "ColorHoveredCellNoFocus"]
|
|
245
|
-
}),
|
|
252
|
+
}), oe = o({
|
|
246
253
|
suffixes: ["ColorHoveredCellReadOnly", "ColorHoveredCellNoFocus"],
|
|
247
254
|
descendant: " *"
|
|
248
|
-
}),
|
|
255
|
+
}), te = G({
|
|
249
256
|
ancestorSuffixes: ["HoverCellBorder"],
|
|
250
257
|
suffixes: ["ColorPreview", "ColorPreviewDynamic", "ColorViewedCell"]
|
|
251
|
-
}),
|
|
258
|
+
}), le = o({
|
|
252
259
|
suffixes: [
|
|
253
260
|
"ColorHoveredCellSpace",
|
|
254
261
|
"ColorHoveredCellSpaceEdit",
|
|
@@ -262,18 +269,18 @@ const l = "owp-tree-grid-theme", w = "owp-tree-grid-table-radius", s = [
|
|
|
262
269
|
"ColorHoveredCellTab",
|
|
263
270
|
"ColorHoveredCellTab1"
|
|
264
271
|
]
|
|
265
|
-
}),
|
|
272
|
+
}), ae = o({
|
|
266
273
|
suffixes: ["ColorFocusedCell", "ColorFocusedCellRelative"]
|
|
267
|
-
}),
|
|
274
|
+
}), ce = o({
|
|
268
275
|
suffixes: ["ColorFocusedCellRect"]
|
|
269
|
-
}),
|
|
276
|
+
}), de = o({
|
|
270
277
|
suffixes: ["FocusCellBorder"]
|
|
271
|
-
}),
|
|
278
|
+
}), se = o({
|
|
272
279
|
suffixes: ["FocusCellCorner"]
|
|
273
|
-
}),
|
|
280
|
+
}), ne = o({
|
|
274
281
|
suffixes: ["ClassFocusedCellSpaceEdit", "ClassFocusedCellSpaceDefaults"],
|
|
275
282
|
descendant: " > div"
|
|
276
|
-
}),
|
|
283
|
+
}), ie = o({
|
|
277
284
|
suffixes: [
|
|
278
285
|
"ColorFocusedCellSafari",
|
|
279
286
|
"ColorFocusedCellSpace",
|
|
@@ -282,21 +289,21 @@ const l = "owp-tree-grid-theme", w = "owp-tree-grid-table-radius", s = [
|
|
|
282
289
|
"ColorFocusedCellSpaceBool",
|
|
283
290
|
"ColorFocusedCellButton"
|
|
284
291
|
]
|
|
285
|
-
}),
|
|
292
|
+
}), ue = o({
|
|
286
293
|
suffixes: ["ClassHoveredCellSpaceEdit", "ClassHoveredCellSpaceDefaults"],
|
|
287
294
|
descendant: " > div"
|
|
288
|
-
}),
|
|
295
|
+
}), pe = o({
|
|
289
296
|
suffixes: ["ClassHoveredCellButtonButton", "ClassHoveredCellButtonButton1"],
|
|
290
297
|
descendant: " u"
|
|
291
|
-
}),
|
|
298
|
+
}), be = o({
|
|
292
299
|
suffixes: ["ClassHoveredCellTab", "ClassHoveredCellTab1"]
|
|
293
|
-
}), ne = o({
|
|
294
|
-
suffixes: ["ColorChangedCell"]
|
|
295
300
|
}), Ce = o({
|
|
301
|
+
suffixes: ["ColorChangedCell"]
|
|
302
|
+
}), Se = o({
|
|
296
303
|
suffixes: ["EditCellBorder"]
|
|
297
|
-
}),
|
|
304
|
+
}), we = o({
|
|
298
305
|
suffixes: ["EditCellCorner"]
|
|
299
|
-
}),
|
|
306
|
+
}), ve = [
|
|
300
307
|
`.${l} .TSMain .TSDateLeft`,
|
|
301
308
|
`.${l} .TSMain .TSDatesLeft`,
|
|
302
309
|
`.${l} .TSMain .TSDateRight`,
|
|
@@ -305,37 +312,114 @@ const l = "owp-tree-grid-theme", w = "owp-tree-grid-table-radius", s = [
|
|
|
305
312
|
`.${l} .TSMain .TSDatesTop`,
|
|
306
313
|
`.${l} .TSMain .TSDateBottom`,
|
|
307
314
|
`.${l} .TSMain .TSDatesBottom`
|
|
308
|
-
].join(", "),
|
|
309
|
-
|
|
310
|
-
|
|
315
|
+
].join(", "), ge = [
|
|
316
|
+
`.${l} .TSMain .${d}.TSDateLeft`,
|
|
317
|
+
`.${l} .TSMain .${d}.TSDatesLeft`,
|
|
318
|
+
`.${l} .TSMain .${d}.TSDateRight`,
|
|
319
|
+
`.${l} .TSMain .${d}.TSDatesRight`,
|
|
320
|
+
`.${l} .TSMain .${d}.TSDateTop`,
|
|
321
|
+
`.${l} .TSMain .${d}.TSDatesTop`,
|
|
322
|
+
`.${l} .TSMain .${d}.TSDateBottom`,
|
|
323
|
+
`.${l} .TSMain .${d}.TSDatesBottom`
|
|
324
|
+
].join(", "), R = 'url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20preserveAspectRatio%3D%22none%22%20viewBox%3D%22-1%200%2018%2018%22%3E%0D%0A%3Cpath%20fill%3D%22%23757575%22%20d%3D%22M15.427%2C14.857c0%2C0.625-0.517%2C1.143-1.142%2C1.143H1.715c-0.625%2C0-1.142-0.518-1.142-1.143V3.429%0D%0A%09c0-0.625%2C0.517-1.142%2C1.142-1.142H2.86V1.429C2.86%2C0.642%2C3.502%2C0%2C4.289%2C0H4.86c0.783%2C0%2C1.429%2C0.642%2C1.429%2C1.429v0.858h3.43V1.429%0D%0A%09C9.719%2C0.642%2C10.359%2C0%2C11.145%2C0h0.574c0.783%2C0%2C1.426%2C0.642%2C1.426%2C1.429v0.858h1.142c0.625%2C0%2C1.142%2C0.517%2C1.142%2C1.142L15.427%2C14.857%0D%0A%09L15.427%2C14.857z%20M4.289%2C8.287V5.713H1.715v2.574H4.289z%20M4.289%2C11.717V8.857H1.715v2.858L4.289%2C11.717L4.289%2C11.717z%20M4.289%2C14.857%0D%0A%09v-2.574H1.715v2.574H4.289z%20M5.144%2C1.429c0-0.154-0.134-0.288-0.283-0.288H4.289c-0.154%2C0-0.287%2C0.133-0.287%2C0.288V4%0D%0A%09c0%2C0.15%2C0.133%2C0.288%2C0.287%2C0.288H4.86C5.01%2C4.288%2C5.144%2C4.15%2C5.144%2C4V1.429z%20M7.715%2C8.287V5.713H4.86v2.574H7.715z%20M7.715%2C11.717%0D%0A%09V8.857H4.86v2.858L7.715%2C11.717L7.715%2C11.717z%20M7.715%2C14.857v-2.574H4.86v2.574H7.715z%20M11.145%2C8.287V5.713H8.289v2.574H11.145z%0D%0A%09M11.145%2C11.717V8.857H8.289v2.858L11.145%2C11.717L11.145%2C11.717z%20M11.145%2C14.857v-2.574H8.289v2.574H11.145z%20M12.002%2C1.429%0D%0A%09c0-0.154-0.139-0.288-0.283-0.288h-0.574c-0.154%2C0-0.283%2C0.133-0.283%2C0.288V4c0%2C0.15%2C0.129%2C0.288%2C0.283%2C0.288h0.574%0D%0A%09c0.146%2C0%2C0.283-0.138%2C0.283-0.288V1.429z%20M14.285%2C8.287V5.713h-2.566v2.574H14.285z%20M14.285%2C11.717V8.857h-2.566v2.858%0D%0A%09L14.285%2C11.717L14.285%2C11.717z%20M14.285%2C14.857v-2.574h-2.566v2.574H14.285z%22%2F%3E%0D%0A%3C%2Fsvg%3E%0D%0A")', fe = R.replace(
|
|
325
|
+
"%23757575",
|
|
326
|
+
"white"
|
|
327
|
+
), v = 'url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22%23757575%22%20d%3D%22M11.99%202C6.47%202%202%206.48%202%2012s4.47%2010%209.99%2010C17.52%2022%2022%2017.52%2022%2012S17.52%202%2011.99%202M12%2020c-4.42%200-8-3.58-8-8s3.58-8%208-8%208%203.58%208%208-3.58%208-8%208%22%2F%3E%3Cpath%20fill%3D%22%23757575%22%20d%3D%22M12.5%207H11v6l5.25%203.15.75-1.23-4.5-2.67z%22%2F%3E%3C%2Fsvg%3E")', ke = `.${l} .OwpTreeGridTimePickerEditorIcon`, Fe = [
|
|
328
|
+
`.${l} .${d} .OwpTreeGridTimePickerEditorIcon`,
|
|
329
|
+
`.${l} .${d}.OwpTreeGridTimePickerEditorIcon`
|
|
330
|
+
].join(", "), Ee = c.map(
|
|
331
|
+
(e) => `.${e}EnumMenuMain, .${e}EnumMenuMain *`
|
|
332
|
+
).join(", "), Re = c.map(
|
|
333
|
+
(e) => `.${e}EnumMenuMain *::-webkit-scrollbar`
|
|
334
|
+
).join(", "), He = c.map(
|
|
335
|
+
(e) => `.${e}EnumMenuMain *::-webkit-scrollbar-thumb`
|
|
336
|
+
).join(", "), $e = c.map(
|
|
337
|
+
(e) => `.${e}EnumMenuMain *::-webkit-scrollbar-thumb:hover`
|
|
338
|
+
).join(", "), Be = c.map(
|
|
339
|
+
(e) => `.${e}EnumMenuMain *::-webkit-scrollbar-track`
|
|
340
|
+
).join(", "), Ge = c.map(
|
|
341
|
+
(e) => `.${e}EnumMenuMain *::-webkit-scrollbar-corner`
|
|
342
|
+
).join(", "), Me = {
|
|
343
|
+
[m]: {
|
|
344
|
+
fontFamily: `${f} !important`,
|
|
311
345
|
fontSize: "var(--owp-tree-grid-cell-font-size, 13px)",
|
|
312
346
|
fontWeight: "normal",
|
|
313
347
|
lineHeight: "16px"
|
|
314
348
|
},
|
|
315
|
-
[
|
|
349
|
+
[D]: {
|
|
316
350
|
color: "var(--owp-tree-grid-body-color, #111112) !important"
|
|
317
351
|
},
|
|
318
|
-
[
|
|
352
|
+
[x]: {
|
|
319
353
|
color: "var(--owp-tree-grid-body-color, #111112) !important"
|
|
320
354
|
},
|
|
321
|
-
[
|
|
355
|
+
[M]: a(
|
|
322
356
|
"--owp-tree-grid-body-background-color",
|
|
323
357
|
"#FFFFFF"
|
|
324
358
|
),
|
|
325
|
-
[
|
|
326
|
-
backgroundImage: `${
|
|
359
|
+
[ve]: {
|
|
360
|
+
backgroundImage: `${R} !important`
|
|
361
|
+
},
|
|
362
|
+
[ge]: {
|
|
363
|
+
backgroundImage: `${fe} !important`
|
|
327
364
|
},
|
|
328
|
-
[
|
|
365
|
+
[ke]: {
|
|
366
|
+
backgroundImage: v,
|
|
367
|
+
backgroundPosition: "center calc(50% - 1px)",
|
|
368
|
+
backgroundRepeat: "no-repeat",
|
|
369
|
+
backgroundSize: "16px 16px",
|
|
370
|
+
display: "inline-block",
|
|
371
|
+
height: "16px",
|
|
372
|
+
lineHeight: 0,
|
|
373
|
+
marginRight: "4px",
|
|
374
|
+
verticalAlign: "middle",
|
|
375
|
+
width: "16px"
|
|
376
|
+
},
|
|
377
|
+
[Fe]: {
|
|
378
|
+
WebkitMaskImage: v,
|
|
379
|
+
WebkitMaskPosition: "center calc(50% - 1px)",
|
|
380
|
+
WebkitMaskRepeat: "no-repeat",
|
|
381
|
+
WebkitMaskSize: "16px 16px",
|
|
382
|
+
backgroundColor: "var(--owp-tree-grid-changed-text-color, #ffffff) !important",
|
|
383
|
+
backgroundImage: "none !important",
|
|
384
|
+
maskImage: v,
|
|
385
|
+
maskPosition: "center calc(50% - 1px)",
|
|
386
|
+
maskRepeat: "no-repeat",
|
|
387
|
+
maskSize: "16px 16px"
|
|
388
|
+
},
|
|
389
|
+
[Ee]: {
|
|
390
|
+
scrollbarColor: "rgba(0, 0, 0, 0.32) transparent",
|
|
391
|
+
scrollbarWidth: "thin"
|
|
392
|
+
},
|
|
393
|
+
[Re]: {
|
|
394
|
+
height: "8px",
|
|
395
|
+
width: "8px"
|
|
396
|
+
},
|
|
397
|
+
[He]: {
|
|
398
|
+
backgroundClip: "padding-box",
|
|
399
|
+
backgroundColor: "rgba(0, 0, 0, 0.32)",
|
|
400
|
+
border: "2px solid transparent",
|
|
401
|
+
borderRadius: "8px"
|
|
402
|
+
},
|
|
403
|
+
[$e]: {
|
|
404
|
+
backgroundColor: "rgba(0, 0, 0, 0.44)"
|
|
405
|
+
},
|
|
406
|
+
[Be]: {
|
|
407
|
+
backgroundColor: "transparent"
|
|
408
|
+
},
|
|
409
|
+
[Ge]: {
|
|
410
|
+
backgroundColor: "transparent"
|
|
411
|
+
},
|
|
412
|
+
[E]: {
|
|
329
413
|
position: "relative"
|
|
330
414
|
},
|
|
331
|
-
[
|
|
415
|
+
[V]: {
|
|
332
416
|
borderBottom: "0 !important",
|
|
333
417
|
borderRadius: "var(--owp-tree-grid-table-border-radius, .8rem) var(--owp-tree-grid-table-border-radius, .8rem) 0 0",
|
|
334
418
|
clipPath: "inset(0 round var(--owp-tree-grid-table-border-radius, .8rem) var(--owp-tree-grid-table-border-radius, .8rem) 0 0)",
|
|
335
419
|
overflow: "hidden"
|
|
336
420
|
},
|
|
337
|
-
[
|
|
338
|
-
border: `${F} solid ${
|
|
421
|
+
[I]: {
|
|
422
|
+
border: `${F} solid ${k}`,
|
|
339
423
|
borderBottom: 0,
|
|
340
424
|
borderRadius: "var(--owp-tree-grid-table-border-radius, .8rem) var(--owp-tree-grid-table-border-radius, .8rem) 0 0",
|
|
341
425
|
boxSizing: "border-box",
|
|
@@ -349,13 +433,13 @@ const l = "owp-tree-grid-theme", w = "owp-tree-grid-table-radius", s = [
|
|
|
349
433
|
top: 0,
|
|
350
434
|
zIndex: 2
|
|
351
435
|
},
|
|
352
|
-
[
|
|
436
|
+
[h]: {
|
|
353
437
|
borderTopColor: "transparent !important",
|
|
354
438
|
overflow: "visible",
|
|
355
439
|
position: "relative"
|
|
356
440
|
},
|
|
357
|
-
[
|
|
358
|
-
border: `${F} solid ${
|
|
441
|
+
[_]: {
|
|
442
|
+
border: `${F} solid ${k}`,
|
|
359
443
|
borderBottomLeftRadius: "var(--owp-tree-grid-table-border-radius, .8rem)",
|
|
360
444
|
borderBottomRightRadius: "var(--owp-tree-grid-table-border-radius, .8rem)",
|
|
361
445
|
borderTop: 0,
|
|
@@ -371,7 +455,7 @@ const l = "owp-tree-grid-theme", w = "owp-tree-grid-table-radius", s = [
|
|
|
371
455
|
transform: "translateY(-100%)",
|
|
372
456
|
zIndex: 2
|
|
373
457
|
},
|
|
374
|
-
[
|
|
458
|
+
[y]: {
|
|
375
459
|
backgroundImage: "radial-gradient(circle at right top, transparent calc(var(--owp-tree-grid-table-border-radius, .8rem) - 1px), var(--owp-tree-grid-toolbar-row-background-color, #FFFFFF) var(--owp-tree-grid-table-border-radius, .8rem)), radial-gradient(circle at left top, transparent calc(var(--owp-tree-grid-table-border-radius, .8rem) - 1px), var(--owp-tree-grid-toolbar-row-background-color, #FFFFFF) var(--owp-tree-grid-table-border-radius, .8rem))",
|
|
376
460
|
backgroundPosition: "left top, right top",
|
|
377
461
|
backgroundRepeat: "no-repeat",
|
|
@@ -387,158 +471,158 @@ const l = "owp-tree-grid-theme", w = "owp-tree-grid-table-radius", s = [
|
|
|
387
471
|
transform: "translateY(-100%)",
|
|
388
472
|
zIndex: 1
|
|
389
473
|
},
|
|
390
|
-
[
|
|
474
|
+
[A]: C(
|
|
391
475
|
"--owp-tree-grid-body-fill-background-color"
|
|
392
476
|
),
|
|
393
|
-
[
|
|
477
|
+
[T]: C(
|
|
394
478
|
"--owp-tree-grid-row-solid-background-color"
|
|
395
479
|
),
|
|
396
|
-
[
|
|
480
|
+
[L]: C(
|
|
397
481
|
"--owp-tree-grid-toolbar-row-background-color"
|
|
398
482
|
),
|
|
399
483
|
[z]: a(
|
|
400
484
|
"--owp-tree-grid-row-background-color",
|
|
401
485
|
"#FFFFFF"
|
|
402
486
|
),
|
|
403
|
-
[
|
|
487
|
+
[N]: a(
|
|
404
488
|
"--owp-tree-grid-row-background-color",
|
|
405
489
|
"#FFFFFE"
|
|
406
490
|
),
|
|
407
|
-
[
|
|
491
|
+
[O]: {
|
|
408
492
|
color: "var(--owp-tree-grid-header-color, #ffffff) !important",
|
|
409
|
-
fontFamily: `${
|
|
493
|
+
fontFamily: `${f} !important`,
|
|
410
494
|
fontSize: "var(--owp-tree-grid-header-font-size, 14px) !important",
|
|
411
495
|
fontWeight: "var(--owp-tree-grid-header-font-weight, normal) !important",
|
|
412
496
|
lineHeight: "16px"
|
|
413
497
|
},
|
|
414
|
-
[
|
|
498
|
+
[P]: {
|
|
415
499
|
backgroundColor: "var(--owp-tree-grid-header-background-color, #586980) !important",
|
|
416
500
|
color: "var(--owp-tree-grid-header-color, #ffffff) !important"
|
|
417
501
|
},
|
|
418
|
-
[
|
|
502
|
+
[j]: a(
|
|
419
503
|
"--owp-tree-grid-hover-row-background-color",
|
|
420
504
|
"#F0F0FF"
|
|
421
505
|
),
|
|
422
|
-
[
|
|
506
|
+
[W]: a(
|
|
423
507
|
"--owp-tree-grid-hover-row-background-color",
|
|
424
508
|
"#EEE"
|
|
425
509
|
),
|
|
426
|
-
[
|
|
510
|
+
[Y]: {
|
|
427
511
|
borderTopColor: "var(--owp-tree-grid-hover-row-border-color) !important",
|
|
428
512
|
borderBottomColor: "var(--owp-tree-grid-hover-row-border-color) !important"
|
|
429
513
|
},
|
|
430
|
-
[
|
|
514
|
+
[U]: a(
|
|
431
515
|
"--owp-tree-grid-selected-cell-background-color",
|
|
432
516
|
"#FFFFA6"
|
|
433
517
|
),
|
|
434
|
-
[
|
|
518
|
+
[X]: a(
|
|
435
519
|
"--owp-tree-grid-selected-cell-background-color",
|
|
436
520
|
"#FFFFA6"
|
|
437
521
|
),
|
|
438
|
-
[
|
|
522
|
+
[K]: a(
|
|
439
523
|
"--owp-tree-grid-selected-row-background-color",
|
|
440
524
|
"#EEE"
|
|
441
525
|
),
|
|
442
|
-
[
|
|
526
|
+
[Q]: a(
|
|
443
527
|
"--owp-tree-grid-focused-row-background-color",
|
|
444
528
|
"#E6E6E6"
|
|
445
529
|
),
|
|
446
|
-
[
|
|
530
|
+
[q]: a(
|
|
447
531
|
"--owp-tree-grid-focused-row-background-color",
|
|
448
532
|
"#EEE"
|
|
449
533
|
),
|
|
450
|
-
[
|
|
534
|
+
[J]: {
|
|
451
535
|
borderColor: "var(--owp-tree-grid-focused-row-border-color) !important"
|
|
452
536
|
},
|
|
453
|
-
[
|
|
537
|
+
[Z]: a(
|
|
454
538
|
"--owp-tree-grid-hover-cell-background-color",
|
|
455
539
|
"#BFDDF2"
|
|
456
540
|
),
|
|
457
|
-
[
|
|
541
|
+
[ee]: {
|
|
458
542
|
backgroundColor: "var(--owp-tree-grid-hover-cell-background-color) !important",
|
|
459
543
|
borderColor: "var(--owp-tree-grid-hover-cell-border-color) !important"
|
|
460
544
|
},
|
|
461
|
-
[
|
|
545
|
+
[re]: a(
|
|
462
546
|
"--owp-tree-grid-hover-cell-background-color",
|
|
463
547
|
"#F0F0F0"
|
|
464
548
|
),
|
|
465
|
-
[
|
|
549
|
+
[oe]: a(
|
|
466
550
|
"--owp-tree-grid-hover-cell-background-color",
|
|
467
551
|
"#F0F0F0"
|
|
468
552
|
),
|
|
469
|
-
[
|
|
553
|
+
[te]: C(
|
|
470
554
|
"--owp-tree-grid-hover-cell-background-color"
|
|
471
555
|
),
|
|
472
|
-
[
|
|
556
|
+
[le]: C(
|
|
473
557
|
"--owp-tree-grid-hover-cell-background-color"
|
|
474
558
|
),
|
|
475
|
-
[
|
|
559
|
+
[ue]: {
|
|
476
560
|
borderColor: "var(--owp-tree-grid-hover-cell-border-color) !important"
|
|
477
561
|
},
|
|
478
|
-
[
|
|
562
|
+
[pe]: {
|
|
479
563
|
borderColor: "var(--owp-tree-grid-hover-cell-border-color) !important"
|
|
480
564
|
},
|
|
481
|
-
[
|
|
565
|
+
[be]: {
|
|
482
566
|
borderTopColor: "var(--owp-tree-grid-hover-cell-border-color) !important",
|
|
483
567
|
borderBottomColor: "var(--owp-tree-grid-hover-cell-border-color) !important",
|
|
484
568
|
outlineColor: "var(--owp-tree-grid-hover-cell-border-color) !important"
|
|
485
569
|
},
|
|
486
|
-
[
|
|
570
|
+
[ae]: a(
|
|
487
571
|
"--owp-tree-grid-focused-cell-background-color",
|
|
488
572
|
"#FFFFFE"
|
|
489
573
|
),
|
|
490
|
-
[
|
|
574
|
+
[ce]: {
|
|
491
575
|
backgroundColor: "var(--owp-tree-grid-focused-cell-rect-background-color) !important"
|
|
492
576
|
},
|
|
493
|
-
[
|
|
577
|
+
[de]: {
|
|
494
578
|
borderColor: "var(--owp-tree-grid-focused-cell-border-color) !important"
|
|
495
579
|
},
|
|
496
|
-
[
|
|
580
|
+
[se]: {
|
|
497
581
|
backgroundColor: "var(--owp-tree-grid-focused-cell-border-color) !important"
|
|
498
582
|
},
|
|
499
|
-
[
|
|
583
|
+
[ne]: {
|
|
500
584
|
borderColor: "var(--owp-tree-grid-focused-cell-border-color) !important"
|
|
501
585
|
},
|
|
502
|
-
[
|
|
586
|
+
[ie]: C(
|
|
503
587
|
"--owp-tree-grid-focused-cell-background-color"
|
|
504
588
|
),
|
|
505
|
-
[
|
|
589
|
+
[Ce]: a(
|
|
506
590
|
"--owp-tree-grid-changed-background-color",
|
|
507
591
|
"#EEE"
|
|
508
592
|
),
|
|
509
|
-
[
|
|
593
|
+
[Se]: {
|
|
510
594
|
borderColor: "var(--owp-tree-grid-editing-cell-border-color) !important"
|
|
511
595
|
},
|
|
512
|
-
[
|
|
596
|
+
[we]: {
|
|
513
597
|
backgroundColor: "var(--owp-tree-grid-editing-cell-border-color) !important"
|
|
514
598
|
}
|
|
515
|
-
},
|
|
516
|
-
|
|
517
|
-
}, "setOptionalTreeGridCssVariable"),
|
|
599
|
+
}, g = /* @__PURE__ */ t((e) => typeof e == "number" ? `${e}px` : e, "toTreeGridCssValue"), me = /* @__PURE__ */ t((e, r, s) => {
|
|
600
|
+
s && (e[r] = s);
|
|
601
|
+
}, "setOptionalTreeGridCssVariable"), Ve = /* @__PURE__ */ t(({
|
|
518
602
|
width: e,
|
|
519
603
|
height: r,
|
|
520
|
-
treeGridTheme:
|
|
604
|
+
treeGridTheme: s,
|
|
521
605
|
gridThemeConfig: i,
|
|
522
606
|
containerStyle: u,
|
|
523
|
-
tableBorderRadius:
|
|
607
|
+
tableBorderRadius: p
|
|
524
608
|
}) => {
|
|
525
|
-
const
|
|
609
|
+
const b = {
|
|
526
610
|
height: r,
|
|
527
611
|
width: e
|
|
528
612
|
};
|
|
529
|
-
for (const { cssVariableName:
|
|
530
|
-
|
|
531
|
-
for (const { cssVariableName:
|
|
532
|
-
|
|
533
|
-
return
|
|
534
|
-
...
|
|
613
|
+
for (const { cssVariableName: S, getValue: n } of $)
|
|
614
|
+
me(b, S, n(i));
|
|
615
|
+
for (const { cssVariableName: S, getValue: n } of B)
|
|
616
|
+
b[S] = n(s);
|
|
617
|
+
return p !== void 0 && (b["--owp-tree-grid-table-border-radius"] = g(p)), {
|
|
618
|
+
...b,
|
|
535
619
|
...u
|
|
536
620
|
};
|
|
537
621
|
}, "createTreeGridThemeContainerStyle");
|
|
538
622
|
export {
|
|
539
623
|
w as TREE_GRID_THEME_TABLE_RADIUS_CLASS,
|
|
540
624
|
l as TREE_GRID_THEME_WRAPPER_CLASS,
|
|
541
|
-
|
|
542
|
-
|
|
625
|
+
Ve as createTreeGridThemeContainerStyle,
|
|
626
|
+
Me as treeGridThemeStyles
|
|
543
627
|
};
|
|
544
628
|
//# sourceMappingURL=treeGridTheme.js.map
|