UNPKG

dap-design-system

Version:

Official design system for the DÁP (dap.gov.hu)

104 lines (103 loc) 3.75 kB
var u = Object.defineProperty, c = Object.defineProperties; var g = Object.getOwnPropertyDescriptors; var r = Object.getOwnPropertySymbols; var d = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable; var l = (t, e, n) => e in t ? u(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, a = (t, e) => { for (var n in e || (e = {})) d.call(e, n) && l(t, n, e[n]); if (r) for (var n of r(e)) b.call(e, n) && l(t, n, e[n]); return t; }, s = (t, e) => c(t, g(e)); var i = (t, e, n) => l(t, typeof e != "symbol" ? e + "" : e, n); import { createTable as h } from "../../../table-core/build/lib/index.js"; import { ColumnFaceting as F, ColumnFiltering as p, ColumnGrouping as I, ColumnOrdering as _, ColumnPinning as x, ColumnSizing as v, ColumnVisibility as y, GlobalFaceting as G, GlobalFiltering as M, Headers as O, RowExpanding as P, RowPagination as A, RowPinning as U, RowSelection as V, RowSorting as k, _getVisibleLeafColumns as z, aggregationFns as E, buildHeaderGroups as H, createCell as N, createColumn as T, createRow as q, defaultColumnSizing as B, expandRows as D, filterFns as L, flattenBy as j, functionalUpdate as J, getCoreRowModel as K, getMemoOptions as Q, getPaginationRowModel as W, getSortedRowModel as X, isFunction as Y, isNumberArray as Z, isRowSelected as $, isSubRowSelected as ee, makeStateUpdater as te, memo as ne, orderColumns as ae, passiveEventSupported as le, reSplitAlphaNumeric as ie, selectRowsFn as oe, shouldAutoRemoveFilter as re, sortingFns as se } from "../../../table-core/build/lib/index.js"; /** * lit-table * * Copyright (c) TanStack * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */ function C(t, e) { return t ? typeof t == "function" ? t(e) : t : null; } class R { constructor(e) { i(this, "tableInstance", null); i(this, "_tableState", null); (this.host = e).addController(this); } table(e) { if (!this.tableInstance) { const n = a({ state: {}, onStateChange: () => { }, // noop renderFallbackValue: null }, e); this.tableInstance = h(n), this._tableState = a(a({}, this.tableInstance.initialState), e.state); } return this.tableInstance.setOptions((n) => s(a(a({}, n), e), { state: a(a({}, this._tableState), e.state), onStateChange: (o) => { this._tableState = o(this._tableState), this.host.requestUpdate(), e.onStateChange == null || e.onStateChange(o); } })), this.tableInstance; } hostDisconnected() { } } export { F as ColumnFaceting, p as ColumnFiltering, I as ColumnGrouping, _ as ColumnOrdering, x as ColumnPinning, v as ColumnSizing, y as ColumnVisibility, G as GlobalFaceting, M as GlobalFiltering, O as Headers, P as RowExpanding, A as RowPagination, U as RowPinning, V as RowSelection, k as RowSorting, R as TableController, z as _getVisibleLeafColumns, E as aggregationFns, H as buildHeaderGroups, N as createCell, T as createColumn, q as createRow, h as createTable, B as defaultColumnSizing, D as expandRows, L as filterFns, j as flattenBy, C as flexRender, J as functionalUpdate, K as getCoreRowModel, Q as getMemoOptions, W as getPaginationRowModel, X as getSortedRowModel, Y as isFunction, Z as isNumberArray, $ as isRowSelected, ee as isSubRowSelected, te as makeStateUpdater, ne as memo, ae as orderColumns, le as passiveEventSupported, ie as reSplitAlphaNumeric, oe as selectRowsFn, re as shouldAutoRemoveFilter, se as sortingFns }; //# sourceMappingURL=index.js.map