open-grid 1.4.0 → 1.5.1
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/CHANGELOG.md +59 -0
- package/README.md +18 -1
- package/dist/{OpenGrid-BOtTt5aI.cjs → OpenGrid-CT9bV6On.cjs} +7 -7
- package/dist/OpenGrid-CT9bV6On.cjs.map +1 -0
- package/dist/{OpenGrid-sI_vdHQw.js → OpenGrid-DACnZdEy.js} +7 -7
- package/dist/OpenGrid-DACnZdEy.js.map +1 -0
- package/dist/Registry-CPJYOqCn.js.map +1 -0
- package/dist/Registry-D74ZmdDz.cjs.map +1 -0
- package/dist/{index-D1l3XFCM.cjs → index-Brfso4Ry.cjs} +2 -2
- package/dist/index-Brfso4Ry.cjs.map +1 -0
- package/dist/index-CeJ-0-80.cjs.map +1 -0
- package/dist/index-DnarQ4eR.js.map +1 -0
- package/dist/{index-B3fKi43v.js → index-al9Mbv3E.js} +2 -2
- package/dist/index-al9Mbv3E.js.map +1 -0
- package/dist/open-grid-base.css +98 -35
- package/dist/open-grid-header.cjs +188 -0
- package/dist/open-grid-header.cjs.map +1 -0
- package/dist/open-grid-header.css +386 -0
- package/dist/open-grid-header.js +197 -0
- package/dist/open-grid-header.js.map +1 -0
- package/dist/open-grid-react.cjs +1 -1
- package/dist/open-grid-react.cjs.map +1 -0
- package/dist/open-grid-react.js +1 -1
- package/dist/open-grid-react.js.map +1 -0
- package/dist/open-grid-themes.css +774 -1
- package/dist/open-grid-typography.cjs +97 -0
- package/dist/open-grid-typography.cjs.map +1 -0
- package/dist/open-grid-typography.css +181 -0
- package/dist/open-grid-typography.js +105 -0
- package/dist/open-grid-typography.js.map +1 -0
- package/dist/open-grid-vue.cjs +1 -1
- package/dist/open-grid-vue.cjs.map +1 -0
- package/dist/open-grid-vue.js +1 -1
- package/dist/open-grid-vue.js.map +1 -0
- package/dist/open-grid.cjs +1 -1
- package/dist/open-grid.cjs.map +1 -0
- package/dist/open-grid.js +2 -2
- package/dist/open-grid.js.map +1 -0
- package/dist/types/core/DetailManager.d.ts +2 -2
- package/dist/types/core/FormulaController.d.ts +2 -2
- package/dist/types/core/MutationService.d.ts +2 -2
- package/dist/types/core/OpenGrid.d.ts +4 -4
- package/dist/types/core/appearance/AppearanceAxis.d.ts +1 -1
- package/dist/types/core/appearance/HeaderRegistry.d.ts +236 -0
- package/dist/types/core/appearance/ThemeMetaRegistry.d.ts +1 -1
- package/dist/types/core/appearance/TypographyRegistry.d.ts +122 -0
- package/dist/types/core/appearance/index.d.ts +1 -0
- package/dist/types/core/detail/DetailState.d.ts +1 -1
- package/dist/types/core/detail/SubgridCache.d.ts +2 -2
- package/dist/types/header/index.d.ts +144 -0
- package/dist/types/typography/index.d.ts +128 -0
- package/dist/xlsx.min-BQ1o3sB6.cjs.map +1 -0
- package/dist/xlsx.min-Bbz2ZypC.js.map +1 -0
- package/package.json +126 -114
|
@@ -302,7 +302,7 @@ class Hs {
|
|
|
302
302
|
this._field = "", this._outsideHandler = null, this._onApply = t, this._onClear = s, this._t = i ?? B, this._el = document.createElement("div"), this._el.className = "og-filter-panel", this._el.style.cssText = `
|
|
303
303
|
position:absolute;z-index:1000;min-width:200px;max-width:280px;
|
|
304
304
|
background:var(--og-row-bg,#fff);border:1px solid var(--og-border-color,#e0e0e0);
|
|
305
|
-
border-radius:4px;box-shadow:0 4px 16px rgba(0,0,0,0.15);
|
|
305
|
+
border-radius:var(--og-radius-md,4px);box-shadow:0 4px 16px rgba(0,0,0,0.15);
|
|
306
306
|
padding:10px;box-sizing:border-box;display:none;font-size:13px;
|
|
307
307
|
`, e.appendChild(this._el);
|
|
308
308
|
}
|
|
@@ -314,7 +314,7 @@ class Hs {
|
|
|
314
314
|
const o = document.createElement("div");
|
|
315
315
|
o.style.cssText = "display:flex;gap:4px;margin-bottom:6px;";
|
|
316
316
|
const n = document.createElement("select");
|
|
317
|
-
n.style.cssText = "flex:1;padding:3px 4px;border:1px solid var(--og-border-color,#e0e0e0);border-radius:3px;font-size:12px;";
|
|
317
|
+
n.style.cssText = "flex:1;padding:3px 4px;border:1px solid var(--og-border-color,#e0e0e0);border-radius:var(--og-radius-md,3px);font-size:12px;";
|
|
318
318
|
const a = [{ label: this._t("filter.opContains"), value: "contains" }, { label: this._t("filter.opEq"), value: "=" }, { label: this._t("filter.opNe"), value: "!=" }, { label: this._t("filter.opStartsWith"), value: "startsWith" }, { label: this._t("filter.opEndsWith"), value: "endsWith" }, { label: this._t("filter.opGt"), value: ">" }, { label: this._t("filter.opLt"), value: "<" }, { label: this._t("filter.opGte"), value: ">=" }, { label: this._t("filter.opLte"), value: "<=" }];
|
|
319
319
|
for (const p of a) {
|
|
320
320
|
const f = document.createElement("option");
|
|
@@ -324,7 +324,7 @@ class Hs {
|
|
|
324
324
|
const l = document.createElement("input");
|
|
325
325
|
l.type = "text", l.placeholder = this._t("filter.valuePlaceholder"), l.value = ((_a = s[0]) == null ? void 0 : _a.value) ?? "", l.style.cssText = `
|
|
326
326
|
width:100%;padding:4px 6px;border:1px solid var(--og-border-color,#e0e0e0);
|
|
327
|
-
border-radius:3px;font-size:12px;box-sizing:border-box;margin-bottom:8px;
|
|
327
|
+
border-radius:var(--og-radius-md,3px);font-size:12px;box-sizing:border-box;margin-bottom:8px;
|
|
328
328
|
outline:none;
|
|
329
329
|
`, l.addEventListener("keydown", (p) => {
|
|
330
330
|
p.key === "Enter" ? h.click() : p.key === "Escape" && this.close();
|
|
@@ -334,14 +334,14 @@ class Hs {
|
|
|
334
334
|
const c = document.createElement("button");
|
|
335
335
|
c.textContent = this._t("filter.clear"), c.style.cssText = `
|
|
336
336
|
padding:3px 10px;border:1px solid var(--og-border-color,#e0e0e0);
|
|
337
|
-
border-radius:3px;background:#fff;cursor:pointer;font-size:12px;color:#666;
|
|
337
|
+
border-radius:var(--og-radius-md,3px);background:#fff;cursor:pointer;font-size:12px;color:#666;
|
|
338
338
|
`, c.addEventListener("click", () => {
|
|
339
339
|
this._onClear(this._field), this.close();
|
|
340
340
|
});
|
|
341
341
|
const h = document.createElement("button");
|
|
342
342
|
h.textContent = this._t("filter.apply"), h.style.cssText = `
|
|
343
343
|
padding:3px 10px;border:1px solid var(--og-primary,#1976d2);
|
|
344
|
-
border-radius:3px;background:var(--og-primary,#1976d2);
|
|
344
|
+
border-radius:var(--og-radius-md,3px);background:var(--og-primary,#1976d2);
|
|
345
345
|
color:#fff;cursor:pointer;font-size:12px;
|
|
346
346
|
`, h.addEventListener("click", () => {
|
|
347
347
|
const p = l.value.trim();
|
|
@@ -6904,7 +6904,7 @@ const _J = class _J extends Is {
|
|
|
6904
6904
|
this._cf = null, this._cfStats.clear(), this._doRender(...this._visRange());
|
|
6905
6905
|
return;
|
|
6906
6906
|
}
|
|
6907
|
-
const t = await import("./index-
|
|
6907
|
+
const t = await import("./index-al9Mbv3E.js");
|
|
6908
6908
|
this._cf = new t.CFEngine(new t.CFRuleStore(e)), this._cfAppearance = t.staticAppearanceView(), this._cfComputeStats = t.computeColumnStats, this._recomputeCFStats(), this._doRender(...this._visRange());
|
|
6909
6909
|
}
|
|
6910
6910
|
_recomputeCFStats() {
|
|
@@ -7395,4 +7395,4 @@ export {
|
|
|
7395
7395
|
Ze as s,
|
|
7396
7396
|
B as t
|
|
7397
7397
|
};
|
|
7398
|
-
//# sourceMappingURL=OpenGrid-
|
|
7398
|
+
//# sourceMappingURL=OpenGrid-DACnZdEy.js.map
|