@g9tm/lynxcontrols-datagrid 0.0.0-stage → 2.1.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/README.md +4 -2
- package/dist/.tsbuildinfo +1 -0
- package/dist/data-grid.css +89 -0
- package/dist/data-grid.css.map +1 -0
- package/dist/data-grid.d.ts +29 -0
- package/dist/data-grid.d.ts.map +1 -0
- package/dist/data-grid.jsx +146 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.jsx +2 -0
- package/dist/model.d.ts +67 -0
- package/dist/model.d.ts.map +1 -0
- package/dist/model.jsx +150 -0
- package/package.json +34 -4
package/README.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @g9tm/lynxcontrols-datagrid
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A data grid: `gridModel` (sort, Persian-aware search, grouping with totals, collapsed groups), `nextSort`, `gridCsv`
|
|
4
|
+
(with a BOM for Excel) in `./model` (pure), and `G9DataGrid` (virtualised on Lynx `<list>`, sticky group headers, sortable
|
|
5
|
+
headers, totals row, `mode="plain"` for a short table inside a page).
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/@types/react/global.d.ts","../../../node_modules/@types/react/node_modules/csstype/index.d.ts","../../../node_modules/@types/prop-types/index.d.ts","../../../node_modules/@types/react/index.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/animation.d.ts","../../../node_modules/csstype/index.d.ts","../../../node_modules/@lynx-js/types/types/common/csstype.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/animation.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/element.d.ts","../../../node_modules/@lynx-js/types/types/common/events.d.ts","../../../node_modules/@lynx-js/types/types/common/system-info.d.ts","../../../node_modules/@lynx-js/types/types/common/performance.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/lynx.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/events.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/index.d.ts","../../../node_modules/@lynx-js/types/types/common/lynx.d.ts","../../../node_modules/@lynx-js/types/types/common/global.d.ts","../../../node_modules/@lynx-js/types/types/common/props.d.ts","../../../node_modules/@lynx-js/types/types/common/element/component.d.ts","../../../node_modules/@lynx-js/types/types/common/element/filter-image.d.ts","../../../node_modules/@lynx-js/types/types/common/element/image.d.ts","../../../node_modules/@lynx-js/types/types/common/element/common.d.ts","../../../node_modules/@lynx-js/types/types/common/element/inline-image.d.ts","../../../node_modules/@lynx-js/types/types/common/element/list.d.ts","../../../node_modules/@lynx-js/types/types/common/element/list-item.d.ts","../../../node_modules/@lynx-js/types/types/common/element/page.d.ts","../../../node_modules/@lynx-js/types/types/common/element/scroll-view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/text.d.ts","../../../node_modules/@lynx-js/types/types/common/element/view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/input.d.ts","../../../node_modules/@lynx-js/types/types/common/element/textarea.d.ts","../../../node_modules/@lynx-js/types/types/common/element/title-bar-view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/svg.d.ts","../../../node_modules/@lynx-js/types/types/common/element/refresh.d.ts","../../../node_modules/@lynx-js/types/types/common/element/scroll-coordinator.d.ts","../../../node_modules/@lynx-js/types/types/common/element/viewpager.d.ts","../../../node_modules/@lynx-js/types/types/common/element/blur-view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/webview.d.ts","../../../node_modules/@lynx-js/types/types/common/element/markdown.d.ts","../../../node_modules/@lynx-js/types/types/common/element/video.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/lynx-performance-entry.d.ts","../../../node_modules/@lynx-js/types/types/common/element/frame.d.ts","../../../node_modules/@lynx-js/types/types/common/element/overlay.d.ts","../../../node_modules/@lynx-js/types/types/common/element/element.d.ts","../../../node_modules/@lynx-js/types/types/common/element/methods.d.ts","../../../node_modules/@lynx-js/types/types/common/element/attributes.d.ts","../../../node_modules/@lynx-js/types/types/common/element/index.d.ts","../../../node_modules/@lynx-js/types/types/common/console.d.ts","../../../node_modules/@lynx-js/types/types/common/index.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/event.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/nodes-ref.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/app.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/performance.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/fetch.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/lynx.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/native-modules.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/text-encoder-decoder.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/index.d.ts","../../../node_modules/@lynx-js/types/types/index.d.ts","../../../node_modules/@types/react/jsx-runtime.d.ts","../../../node_modules/@lynx-js/react/runtime/jsx-runtime/index.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/runtime-marker.d.ts","../../../node_modules/preact/src/jsx.d.ts","../../../node_modules/preact/src/dom.d.ts","../../../node_modules/preact/src/index.d.ts","../../../node_modules/preact/hooks/src/index.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/hooks/react.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/snapshot/lynx/runwithforce.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/lynx.d.ts","../../../node_modules/preact/compat/src/suspense.d.ts","../../../node_modules/preact/compat/src/index.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/snapshot/lynx/children.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/snapshot/lynx/element.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/snapshot/lynx/portalspending.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/snapshot/lynx/portals.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/snapshot/lynx/suspense.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/hooks/uselynxglobaleventlistener.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/globalprops.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/initdata.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/lynx-data-processors.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/background-function/run-on-background.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/snapshot/worklet/call/runonmainthread.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/worklet-runtime/api/animation/effect.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/worklet-runtime/api/animation/animation.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/worklet-runtime/api/element.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/worklet-runtime/bindings/types.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/main-thread-ref.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/main-thread-object.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/lynx-api.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/index.d.ts","../../../node_modules/@lynx-js/react/types/react.docs.d.ts","../../../node_modules/@lynx-js/react/types/react.d.ts","../../foundation/dist/collections.d.ts","../../foundation/dist/culture/bidi.d.ts","../../foundation/dist/culture/digits.d.ts","../../foundation/dist/culture/culture.d.ts","../../foundation/dist/culture/calendar.d.ts","../../foundation/dist/culture/coordinates.d.ts","../../foundation/dist/culture/date-format.d.ts","../../foundation/dist/culture/duration.d.ts","../../foundation/dist/culture/natural-date.d.ts","../../foundation/dist/culture/numbers.d.ts","../../foundation/dist/culture/strings.d.ts","../../foundation/dist/culture/relative-time.d.ts","../../foundation/dist/culture/text.d.ts","../../foundation/dist/culture/index.d.ts","../../foundation/dist/enums/index.d.ts","../../foundation/dist/errors.d.ts","../../foundation/dist/exec/diagnostics.d.ts","../../foundation/dist/services/abort.d.ts","../../foundation/dist/exec/options.d.ts","../../foundation/dist/services/clock.d.ts","../../foundation/dist/exec/trace.d.ts","../../foundation/dist/exec/safe-executor.d.ts","../../foundation/dist/exec/index.d.ts","../../foundation/dist/icons/generated/glyph-svg.d.ts","../../foundation/dist/icons/glyph.d.ts","../../foundation/dist/icons/icon.d.ts","../../foundation/dist/icons/glyph-slots.d.ts","../../foundation/dist/icons/icon-fonts.d.ts","../../foundation/dist/icons/packs.d.ts","../../foundation/dist/icons/svg.d.ts","../../foundation/dist/icons/index.d.ts","../../foundation/dist/layout/index.d.ts","../../foundation/dist/route/address.d.ts","../../foundation/dist/route/catalogue.d.ts","../../foundation/dist/route/journey.d.ts","../../foundation/dist/route/sink.d.ts","../../foundation/dist/route/resolve.d.ts","../../foundation/dist/route/view.d.ts","../../foundation/dist/route/index.d.ts","../../foundation/dist/services/feedback.d.ts","../../foundation/dist/services/preferences.d.ts","../../foundation/dist/services/contracts.d.ts","../../foundation/dist/services/keys.d.ts","../../foundation/dist/services/motion.d.ts","../../foundation/dist/services/index.d.ts","../../foundation/dist/tokens/generated/palettes.d.ts","../../foundation/dist/theme/aliases.d.ts","../../foundation/dist/tokens/shape.d.ts","../../foundation/dist/theme/color.d.ts","../../foundation/dist/theme/theme.d.ts","../../foundation/dist/theme/brand.d.ts","../../foundation/dist/theme/appearance.d.ts","../../foundation/dist/theme/contrast.d.ts","../../foundation/dist/theme/control-colors.d.ts","../../foundation/dist/theme/css-color.d.ts","../../foundation/dist/theme/design.d.ts","../../foundation/dist/theme/oklch.d.ts","../../foundation/dist/theme/recipe.d.ts","../../foundation/dist/tokens/generated/metrics.d.ts","../../foundation/dist/tokens/layout-metrics.d.ts","../../foundation/dist/tokens/css-vars.d.ts","../../foundation/dist/tokens/derived.d.ts","../../foundation/dist/theme/variants.d.ts","../../foundation/dist/theme/index.d.ts","../../foundation/dist/tokens/index.d.ts","../../foundation/dist/index.d.ts","../../controls/dist/anchor/registry.d.ts","../../controls/dist/anchor/hooks.d.ts","../../controls/dist/base/control.d.ts","../../controls/dist/base/corner-badge.d.ts","../../controls/dist/base/disposer.d.ts","../../controls/dist/base/press.d.ts","../../controls/dist/base/pressable.d.ts","../../controls/dist/display/shimmer.d.ts","../../controls/dist/sheet/options.d.ts","../../controls/dist/guide/settings.d.ts","../../controls/dist/popup/types.d.ts","../../controls/dist/provider/settings.d.ts","../../controls/dist/icon/icon.d.ts","../../controls/dist/base/selection-item.d.ts","../../controls/dist/base/timers.d.ts","../../controls/dist/base/tone.d.ts","../../controls/dist/base/use-controllable-state.d.ts","../../controls/dist/base/use-stable-callback.d.ts","../../controls/dist/base/index.d.ts","../../controls/dist/list/gestures.d.ts","../../controls/dist/list/rows.d.ts","../../controls/dist/list/virtual-list.d.ts","../../controls/dist/list/index.d.ts","../../controls/dist/provider/contexts.d.ts","../../controls/dist/provider/activity.d.ts","../../controls/dist/provider/hooks.d.ts","../../controls/dist/provider/keep-alive.d.ts","../../controls/dist/provider/provider.d.ts","../../controls/dist/provider/index.d.ts","../src/model.ts","../src/data-grid.tsx","../src/index.ts"],"fileIdsList":[[41,96,97,129],[102,103,108,114],[41,103],[41,102,103,108,114],[41,123],[99,102,104,106,108,109,110,112,113,126],[41,114,115,116,117,118,119,124,125],[104,105],[102,108],[41,96,129],[41,96,102,111,129],[102],[120],[122],[121],[41,96,98,128,129],[41,104,126,127],[42,86,87,88],[53],[42,78,87,88,89,90,92,93,94],[42,86,87,88,90,91],[86,88],[42,86],[49,78],[43],[44],[51,55],[47],[41,51,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,79,80],[47,51,55,78],[47,51,55],[56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,79,80,81,82,83],[58,59],[47,51,55,59],[47,61,64],[46],[48,52,53,95],[44,47,48,49,51,53,54,55,84,85],[44,47],[52,86,95],[45,86],[46,47,55],[45,46,50,51],[49,86],[38,39,40],[41],[100,102,103,107],[100,101],[96,129,196],[96,129,195],[96,129,196,197],[129],[198,199,200,201,202,209,210,211,212,213],[129,198,201],[195,208],[195,204],[41,129,195,207],[215,216,217],[41,129,198,208,211],[129,198],[129,195,208],[129,219],[41,195,196,207],[195,207,219],[207,219,220,221,222,223],[129,195,207],[129,195,204,205,206],[129,195,203,208],[98,129,195,214,218,224,225],[98,225,226],[98,195],[133],[132],[132,133,134],[131,132,133,134,135,136,137,138,139,140,141,142],[134],[140],[146,148,150,151],[147],[140,146,147,148,149,150],[146,149],[155],[154],[153,154,155,156,157,158,159],[130,143,144,145,152,160,161,168,174,193,194],[145],[145,162],[162,163,164,165,166,167],[163],[162,163,165],[162],[145,147,149,165,169,170],[147,149,169,170,171,172,173],[175],[175,177,179,180],[175,178,179],[178,179],[178],[177,179],[176,178,179,180,181,182,183,184,185,186,187,192],[175,178],[144,175,178,191],[175,188,189],[175,190],[175,177,188,189,190,191]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb5b19b86227ace1d29ea4cf81387279d04bb34051e944bc53df69f58914b788","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6fdd3074ba01fc8aff89a11055a33516aff7a42a3599fc0e7dce64047a5e3fd","impliedFormat":1},{"version":"87d9d29dbc745f182683f63187bf3d53fd8673e5fca38ad5eaab69798ed29fbc","impliedFormat":1},{"version":"035312d4945d13efa134ae482f6dc56a1a9346f7ac3be7ccbad5741058ce87f3","affectsGlobalScope":true,"impliedFormat":1},{"version":"07b03f752ae52a7130e06c5a8399d3a0dde07a1a634f8430b80cd6236c56b5c8","impliedFormat":1},{"version":"8a8eb4ebffd85e589a1cc7c178e291626c359543403d58c9cd22b81fab5b1fb9","impliedFormat":1},{"version":"acbac4ca6cd4b2b459debc4a274535775cb6278a8315be383fafa623ab78f18e","impliedFormat":1},{"version":"e421d0b097c78304a2597c1f33da586630e1dc665ae381c0c36e5ebc4aaf4566","impliedFormat":1},{"version":"adf624c89a0d509a789f3c0bf522969d2c47033dbeb50920b37cd89be475a65e","impliedFormat":1},{"version":"f4664d05efc95a0fb8ee228d391e5271a1c8fc9bc3452c7bd760f9ca18b5a837","impliedFormat":1},{"version":"b32b532dcbe0a91d71fd94cb780e94bdfdce10be21608d914c29fb4b8939b24a","impliedFormat":1},{"version":"eb2b64881998b562a4fe9330e55aa2466cd3a41a1a57e93feac6555218cec06f","impliedFormat":1},{"version":"6db1694d205177322d792d924335b046b80607445a45c0d2de1fcffd190b48c0","impliedFormat":1},{"version":"d5465281e0aaffe267f46382c5f014740dc16e7fd8e1c57a0b0ddf8a2eab9be4","impliedFormat":1},{"version":"f7e5c3960dd9df65d83408b9be446f7119fa1db1dd8266dd343349d90c3bf2ce","impliedFormat":1},{"version":"09c6491ed74af89a4155feafedecaf77780f5751c66d4b65b18d30fc0e053a75","impliedFormat":1},{"version":"188b01044640e5ef65f6edf0dd6e6454f02dd19f4ead66b9e03ebe26cc7298ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d34d6de13412a24e8d9252040d972edce68b4db8d8a64a3f7fd63ca1fda3a67f","impliedFormat":1},{"version":"5bf51107315834a209b08395b141e262b7d143d14f6b4e4d403d8e020cef7e32","impliedFormat":1},{"version":"db0dcbe48d5cb38315083b412c8ab6995b0d42dc73b286833e296827feb0e5b4","impliedFormat":1},{"version":"b3e4a49a3ba19463662e7b821544948b953d2f6708370d42406bda558084000c","impliedFormat":1},{"version":"7c5e49b3d96da389b07d4ae3705c9f33a03dadcd04e6c0e76edece6d636f4ce7","impliedFormat":1},{"version":"24e9add3c802e7c9431b2c99edbbda02c1899901fd955dfb2e9ee3e9cdc93c4c","impliedFormat":1},{"version":"cd6611fd8cd9d40de1bdec02a3c5027c968c4aaf7639ee88ee48b2c41edeaddc","impliedFormat":1},{"version":"32d1e153cac16ca3a3f5f6b68fae76cddcda509950fa00d038c465776359db0c","impliedFormat":1},{"version":"0d85d0fa55dd433acf924675d7e976c025c8521c91a76079844cd15e52855ccf","impliedFormat":1},{"version":"89da6ea3ee9735e712691227b0e5ee74381779f9ad8b0f4fb7ced0247b16735a","impliedFormat":1},{"version":"77fbe475cb649a3598aa8f932ab5f6fe011444d94b52d329078c1f6d63c5d3bd","impliedFormat":1},{"version":"7618f7fdf0abf7f712cefe766ac1ab7fcd1f8e753c513e57d3ada9ada3a57257","impliedFormat":1},{"version":"db0441149b37984c225e945a112713d07616b34552d64f814c5cbf8e8c95f165","impliedFormat":1},{"version":"51f5a8fa3de5f13b21ba2604b4de8f0aae3d97acadab981d536a282ea26257af","impliedFormat":1},{"version":"0e323630cbfda771430e2720f6a2f02f257becd8fb9722aa975ae773fb572210","impliedFormat":1},{"version":"56dbc770513baae28f7cfbadeba5078bb13a37a13132a5292e98a8b103312b98","impliedFormat":1},{"version":"84ff906032fe12e816bfb7441cee6726243e5a7316c4f2d6b0a6c149f1a91a16","impliedFormat":1},{"version":"446e9432c63958893f65b4f7eea86fb5b506c2e0e7dd971a1f75e361b333a3db","impliedFormat":1},{"version":"dcbbe1fb0f2c0efc12e29db8bbccb5b82513384d01d7a55342065cb0611da272","impliedFormat":1},{"version":"af209189a194cf5ad1f7b22dd680b52843fec2e30f1283be20b2977872fd4424","impliedFormat":1},{"version":"18e37ffc10db360e66b0af639e55bcc66496830994734f64a97c6751458f7f3a","impliedFormat":1},{"version":"14137199a98201c616a7ee925bfaa9809b659dfbec733f86fa5dc5348a897de6","impliedFormat":1},{"version":"f64cd565aca17df45f4666473da75e4ce51a2610e2ed1c31198e9f9325747a24","impliedFormat":1},{"version":"e415a17ab6a413d6be640457231e045541405eab1f0f370c7dd1e5567aa25999","impliedFormat":1},{"version":"8c03a41d6dc701b6648db83d71a92dc27147d7677ab5d70f32675e7e37b3795a","impliedFormat":1},{"version":"e27b62f2410bb10697800d1c09ae2c48db46cd1eca18ffdd35022b1802bfd6d5","impliedFormat":1},{"version":"2ec0bfa713f313f8b2dc2bf64c5962433722ea7b413f69428106a65584656dc9","impliedFormat":1},{"version":"b2d74af681f440a07e714ae9a33e3ea49c79870b9674058114c0404d2aa2f190","impliedFormat":1},{"version":"24f31e43eb3505e5d2946315e7b8ee8b426dfbe92c3031e435a4eb2d9dd8d69f","affectsGlobalScope":true,"impliedFormat":1},{"version":"5b6a59d1e98f908badf07f243deb42ebd926b4e3d33ec00a5f50cbb8d0464488","impliedFormat":1},{"version":"c669ee7ba01fa6a60b17c3535f96b65fa82dfd2a475a8760364f2f3952f9bcbd","impliedFormat":1},{"version":"a8b121f6a75d603075e62793ff0c109112e882dd6ca2b70bdccbd8d8f753429b","impliedFormat":1},{"version":"f378d7ed5e3ecbe382ade55127a9c98e826c76f786e06effad6fde91a7023d55","impliedFormat":1},{"version":"4e3e9539df72b3bfcc56fa13140070020dac72f1eff39237b11253482cb99847","impliedFormat":1},{"version":"5a47b3a2bbe2c9b015fe356462afe0abe391c592fffbe277126e2415e0811967","impliedFormat":1},{"version":"b1248e5931d2a49c697203e69449c58dacd3d19f12d76bf11d816600a0cf423b","impliedFormat":1},{"version":"0b02aebd8c41453aefd3b1f33b9b9862a57770f8b21e916ecc5b35c0bedcc52b","impliedFormat":1},{"version":"e52840670587e82e129c9bfc6a2f42d9c2f2e1fd6ce176fea998383a8c941ea5","impliedFormat":1},{"version":"31ca1ee726f5d7c7709913b98be76fc40fdfaaca6ad7fafc222108981e11227c","impliedFormat":1},{"version":"556db73da59f5162cdf5c7ea1bc3b063b6ccb758078ef6517ad6f6e4ae7b199a","impliedFormat":1},{"version":"0a2c8ef08611f5a5f711c7b10ba70d10dc1c6af0c9dba8168cbbf34911b74188","impliedFormat":1},{"version":"1d6ef45145a9939a43062fe18188d4f7bdfdf4547978e1f6b7c9089fe53e81e5","impliedFormat":1},{"version":"42c169fb8c2d42f4f668c624a9a11e719d5d07dacbebb63cbcf7ef365b0a75b3","impliedFormat":1},{"version":"509a86836776d5c821901abc16a2d21de674d2c8943ceb8d018049bf324bc56c","impliedFormat":99},{"version":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881","impliedFormat":99},{"version":"8a2ef120c4da7aab664148ed8d283aa0b98df4d5f15c570d830c8998ef05718b","impliedFormat":1},{"version":"4433d18f82991634feae5150a68f9b30f5b05b55416af8ff9f7251fb29431ed5","impliedFormat":1},{"version":"cc5d0b221824b7d8597e8a2bbdad2383af877eb564eaca392992049839e88c9e","impliedFormat":1},{"version":"21898d939444825cee1232af435330610b09171bea22a2f892cf2058d764b63d","impliedFormat":1},{"version":"2baebea93983e898000858daeeeb2ac29938891b6b8db72ebce294837fc9499f","impliedFormat":99},{"version":"d9d320cf31f6d63659484f6c9ca4db4ae673daefa65118dd8589838925ff1397","impliedFormat":99},{"version":"027cf2216d065a97bf5a8ea126b3ea2734fab6cfe32adaff81ab4e94a1b51bbe","impliedFormat":99},{"version":"f6e6313fad233c5141220f7d25eae120cdd6e5079fbe0aba56821a1e99d05df8","impliedFormat":1},{"version":"9534c35b4577c193e499178deb47419fdadddd5e53af5ec8cb88218848013f65","impliedFormat":1},{"version":"97f43a6558157a3abae4e32256cc74ba34f69ab30473008ffa13011bf0932986","impliedFormat":99},{"version":"45b8adde5735e97329752dd5598b7ecd85202f221a1d0e8aa90137ce5810f21c","impliedFormat":99},{"version":"dfe6945467765f8e7843442a9dfbcf6b5526b6465b07b4c75a54a750329b5f17","impliedFormat":99},{"version":"7f9f6c9fe0e48c401d855d849e28112ffe2425569eca01b08b8c6112b8200695","impliedFormat":99},{"version":"68fcdc663627d12d336b420b19b3e54258844d0cbca0879f711c22aafd853352","impliedFormat":99},{"version":"d3dd47deefa1cc5dd6f1b866132506ec8dfd678ae0ddaa44de188505df14fcc4","impliedFormat":99},{"version":"a5946bc88dac85da2afacdfa3471ff3bc2bbda7c0e34efde184cf17e6bceb6bc","impliedFormat":99},{"version":"75b68165b9bcc07579562f182d327e83583b89b91d62e76b86f4001feee699ba","impliedFormat":99},{"version":"a9d1030f6773d29b383f49e2c647a7e6e464906e1de97a6bc33d2528d957c4d7","impliedFormat":99},{"version":"37b997d60987b68ce8117da783442b4602c8a85d47680823d469fdc90d29e3b8","impliedFormat":99},{"version":"600850ecc310012e3b1a562629d97a1d78662ae8c477357513dd2e6aa704079b","impliedFormat":99},{"version":"335226d599a9382c9bea07d37e23bf998c1022c0f67e4d6d2b69633de6ac118f","impliedFormat":99},{"version":"ae430fd9bac320e71c3fe9299d90dcf67555d9a4f97ecaa35947b430ba8648ea","impliedFormat":99},{"version":"9061ff14146280f47d740b344ddd641c16df526ecaa868c348852277a9fb8686","impliedFormat":99},{"version":"49ee4555c2fafa01119cccc62436baad88ed937ff55d6a655e764ada6b0721e3","impliedFormat":99},{"version":"e059fb9064bc023bc06945ddda6b00e711c18e8657c82514b51c1c1b828642e9","impliedFormat":99},{"version":"f01b3b376946defc432893dcbbbc79472076b6a55a316b0a461a1b38d09e961c","impliedFormat":99},{"version":"da74d8af20172cfee988a2daf92c560f3fdc816fb9c0537f2cc37ef27b1552a8","impliedFormat":99},{"version":"feed66ae8815d1981ad575482766fb9a82385e75cce35ae2f13be58e50c4349f","impliedFormat":99},{"version":"21305b3c41b1e29c0f0d8f43fe227bca82493f6e4c6407a3363c6f729f1c04ba","affectsGlobalScope":true,"impliedFormat":99},{"version":"20c1041fbd4f1537686af4b707872b87c90a22201f8979e5def4554d28b46a5b","impliedFormat":99},"d533d1fe3018752aa47ee74ae5dbdca34377441b891176ad99bd33366a64372f","577287aa28cdd2976297531706a5baea4ba5171512f500731d3feba37057d851","44b82e4f46178400732ea809a906f7ffb9dd38efab331ca23e7ca4586bf903ef","d3dcff003bac57338c3e60be409d0ff167ec1ff513539a5534c7679332dbc992","16d64c89cec74fa23e8cee7c72acc7549f117dcf7845051870c40366c7522d09","706c787ed201e67534e550d765eecfb18a8c39f46e04fcec600d0bb9d1bb6231","11f9f682c02d51de68eed569f8de1e91c56df296a78f3a6c520b93d52aac2308","28b43630d8d29a300e1e5b0f5efb04c8f994d372fff1b653ce8bb70d4e011e1a","08521f5befe6ec3f1c3a881651321f875ca6fc79db15a6130283d409f5d47d1b","b06c48902c3d127098839c1a6500f41d3e21b2f07f277ba7de23ec730df7275d","946d8fa2088c22a4cbc85875ec7c700c93cf53d7b52057fe4e6730fd613c7925","a7a0e658ca429cfb5268d4bf2e2e6e9fe871ffd06b6588d65424ba4eba35338f","2dbadaab8fa70d9d874b29e23e808b0978fd2dbaf34e3caf8303508e2b88c603","54b8f865e3bea736798e54bc95b49435f472599aea762bd17bb02a18b198c7d1","5e621ae454f5ff6bfea91a558b93eb3dee64eac6f66ad8d6739a4a7c396a42f7","ccd708c3fff99b4ec315e14315dce6b9e85f4c96d10131e9fd219edb6efbdb26","abc924fce33b86b9f8588de3a5be04c609fafa6cb1dc42629b3e9e3e18f7d018","f919e3a8b2d274b631ee4fee0c50eba1d3f39ceaccba04dff915e9f61e9f153c","3ae17ae844491c7326d070c3e70a94a9239394e7a1e84eb203eb1d57470e752e","d1b2970d348eb9f89ef0f0c6730d27e9331067a28f21c8bd667ba1138d5d3e93","b2c4833e6308888c3947953770b3343deaf4276c803bb36148991a3fb90b4f6a","41b7c8204ea79a93e380a228f5c744e9c9a80183133ac62633a4c76e3fdbd7db","d0a441df587b0632c16a813117f110574d903ddd0bc4d28599cc82ff8af7c094","b24ac81f4fcff56ed9827736abcf2f92ea5f86e16d66eb2ee3ccfa0bb8143bc9","068309ff581d08c276c4a772ddf3ab9c8090e591fc9917fdc6cdffc12c95a5bf","5c1d368a451520260ebb6c06121201f18abf86d80540290df6e424d372c5d0ed","bb3ccaacf5c19a7170939b7f735c6a94537fd95ad16b4247a6ad572b23183e74","2c8b86d9d29c4ea62762c3815ffe4fdb0c5dbc0dd096b9703236010f4a17c255","7ec540fd5fb0761576c417b27ea61ec08123412487b020942c893510dce970db","f858a10d167e011155bfe5a3532f599e677bced6727c07366f380c02010650d4","465f5d53f09ac1978002bc264b8a4c0aea749c79dd2bd1917dffe57fddcb9543","cf4ef9c41637cb6995fee096890a0e6113141bcce82cc7d5754c281f03ad889e","40f34f36aba872decb7540030db33dc84f1a53d4778fd8c8ad840d68f2023f3a","10347593c1b262343845f577673e5956217a8a571c859d83e2de50a54729541f","e0a192de84052b553230c5f649307dfb49df6dce54fdc538de15078d895f5f66","228e7d711e429183ddf7fc8c331d00540557ade296fb8132d5bfc48d5c933f89","e8906c76ded4f87db27adfe3e8f9e1a729be51a6a0c2c458f31662c6278b1925","49bca6d49d9c5a525146bba60a48e448e1eabe79be789a7b5238ac10a2f620b3","08fe86bcae8e02f769d215958438d6858dc19aeed2a61c7d7327f052b0db25fc","cd3a9799c8e0996b4d31d5235a8ae105b79a7fa31ba8f660ca35b043048ef757","ee4e73f46ce2f6517e82434bd9fc63c8b6b2179d37d74525899f124a76d06669","773c827d0235c76288ab0092202c357730c5b21314241831b7dd88ef6017818e","ced97526e899f0222df6d805e008cd5bc63fee326838a9002919453f9a2a8c9b","216aa3f63d62f13b158445ff6a3bea8ccfd110f2bf219d607175518c9cc5b29d","be77edbe4d276441584b1c7b297bd8596c78913c22c590dc136d987b82a3976c","faa64d270fa523f80fd31bc7340ee7f6a21632c2ea0cea6535bf5a34bcc6adf7","931d70c96033881193232b90c39210c6cd14865f28b339843c56b5688e7fd10d","0a995ec8876b2bdf48ad2a95dbd7c38d37d2b77940cd39d6f68947e1c383d940","29e6e980f179ac2981d68954462dfd4a4545f73c021f6a4c8a5f442c0e16e56c","67fe56b931e013e9980dec2a605908d44484c7bbd81d2ee9912872c11bc76515","d4924e2b191fee9b43aaeef651c87a7084281d425a30a9a8cf50de8f92b64f6d","8fc678b640b298b07d4f52a5a4f0b3a57e07e45da7a0ad25f1ffde53a152d3be","a59554ba3751ea9ad27f6948f1c71ef57f1e28bb526a53eacb0dfa76bc1df452","ea5a5d5873c239b97d846fb8c78437e08ffd731924764f746c0ebcb7731d7648","da401323d4c96e3f5b8fa8b7ecd200d47a9e340b09cefbea553d2b2b5a345e60","ead4a7fd25e5e2b756a5e71546bd8eae855c7b0ecbffd891f7fb0b6f7d80c0c1","eaea9f8e5b90d87160a885c2afc4afcd2434e149ae5a5368d4b61eed66a6a597","cc44cf86b3ddb7d61f7de3fd32116089decb662a8b6421013bd4a8ee9a079881","ab7ed47f18899e74299db14911a028a0aaf1acae17f870a64ead7d91953d40b3","298f8d2584216932ea238927177ef343d0b8da735eb40a5ba96b1f92e3675e33","c8082c78975419ed5a9f7daa655643425cdd98fee91bb82fd92d25f908c78465","24a588d942a36d853d18dfe63711e9b180ea0448b956dadce7833f4d6455f0c8","c263cc53a55cc822c360481e94d0fe999acebf92f01f2ca84225a168a182657f","11aba4fbd2d4539d8440169f219974378731ad1e65d4656bd9d8a579b79241e6","b2792748a96701780faae92a11922b38e9e37d54b31df3df70acd32fd586c508","56cac1d8d4be53381e236d675f43c1b2342161ca45d31dfaaf340b0612d14bc5","121adbf7463954a594a796c4914376017a201d6c7bb40cb33b6b6e2f7f3c1bb8","1dd2073db39016abc797e46c711630cd39c497c28063e3a75993940c72eb9792","ad4f365726b33c965a6cf7e20ee8a7984866e08632a6c37b13bbe4d08c6e0a03","1492a06643311a66d01dc0c15259c0dbe7c4d336e7a85cb7ece67085afd2e84f","47ace7a5fa09cb19907ed7cb83a867b05ecff3e10bb229888e24f82b2c03b869","65f72380cb90b44b22370dfb07890bdd557d2e211ffb023363d8c87621c2535a","42278f72f154d26b400dcce641e8ed2227fb0102bff628f831bae44018ec4313","c1e64c51dadfcea7b7995040c64b5ac7e8f954f2a4adf4eb92e7a462ba5275e8","0cf0840523da6e63c4d0d096f3a1220da866a39314acc8d624551d4580d5567e","15e170fc85990c9cbdc7d3799b9490183b2d15202f1ccd0794abe5afb6f351eb","2f166c686866f475aee63ff5f7cf42413169d34e60c03fc5c761b2281ea49df0","40eef65c285d2b03f5c07d8455c675ecac1b90330cffd6d97f7008811ff8dd22","4f257d6caa2adab87c7532a456be55604cbd3861d81f38458812eedd84555e04","a270eff1cca84fc69223b8f4ce8db3cb4b4abf0dad0d054f7b3bcfb99ba9a343","665236eec0c0da8d3f7cdba8f01f98233425d8c065058e513b33385e417a56d2","1e771191631caaa4b5d3429c51e23c23c2f609ea1e99f4183e913c5e7fd2311b","50e8918146f4e8a9240bf867a07cf8aa0deb21fee8d4507e74ff62c8c6af42e9","666640b08e3ce76b6a8c76ce1f9f5b986923d3c76663b7fa4bc36e3af734ec46","6454e0780201a5e155d56f4fd4609a3a626d49e2c0300a2a74bf3f65e8c7fb92","691d1d817000afad746f7e077c2eef602bebde4bee156b7792175ca49d334c3f","12afe6cfbcece2a06267f37f3bbb6f123b9d1f3a6012522a7cec91a6a7b7daf7","4819ed1f2e82a0dbb5661db46f7330a4f1aae71fc8cbbe912c0ec86d97870a3a","c42fdaadfd7fd8a6ba48946075698a299acf6721052cd577796a540f6a3394a0","1298eb4957af19f5d5c283d38f872953085ee4464decb1cfef669411af42c9be","bba3388b8d3c079e0f4dde365643b0a1108ecc91d4d66aca2ebbfc5beffc649e","dc3b234cbc8f5e9d6c7bdcdbef9ef0a0b83a867075751f04471c5ae9fb4e8167","b822c4e98f5d014a3e64e6c4f50cf2d09491e7eb21621114a62ee5eb9e3ec44b","039290b509ce3199d69cff5591430f2e218da1d80ddaff23c58fd193a23c7c89","2ea0ad0652a48d8f881bddef97866b2f6df74e8b628bcf22bc8cb2c8ebf46fa2",{"version":"fcb4459d614f649cd3a95ea0711f33346a96011ee58260c53fc7bf05866a07d5","signature":"6e3db1e055900b92f5eec43b8d161bf981f15e3c497ad77bb22261e50bbe6c75"},{"version":"c9c4bd2e7de2e24ad4ed1f397b43340df0240b97793431299f64afac5286f77d","signature":"bad7abf022562c883d9c3e2f6468fa18bc5fedd2de2aa12ddf8ac57af9d7af46"},{"version":"087fe6a64ab8bb4ff4be1e5cdfc9c9676caaf0d1ed80f2a60de5870b4626669a","signature":"9dac67dfe1c38715851569f2dbdf22439c24e3051fd959757fc335bf430ee849"}],"root":[[225,227]],"options":{"composite":true,"declaration":true,"declarationDir":"./","declarationMap":true,"emitDeclarationOnly":true,"exactOptionalPropertyTypes":true,"jsx":4,"jsxImportSource":"@lynx-js/react","module":99,"noFallthroughCasesInSwitch":true,"noImplicitOverride":true,"noUncheckedIndexedAccess":true,"outDir":"./","rootDir":"../src","skipLibCheck":true,"strict":true,"target":6,"tsBuildInfoFile":"./.tsbuildinfo","verbatimModuleSyntax":true},"referencedMap":[[98,1],[115,2],[104,3],[116,4],[124,5],[127,6],[126,7],[106,8],[109,9],[110,10],[112,11],[113,12],[121,13],[120,14],[122,15],[123,14],[129,16],[128,17],[89,18],[91,19],[95,20],[92,21],[93,22],[88,23],[90,24],[44,25],[83,26],[74,27],[59,28],[56,27],[81,29],[57,27],[79,30],[58,31],[84,32],[60,33],[67,31],[62,27],[61,34],[76,31],[82,35],[80,31],[63,27],[71,31],[72,31],[64,34],[70,31],[65,34],[68,31],[69,27],[77,31],[66,27],[73,31],[75,31],[47,36],[54,37],[86,38],[55,39],[96,40],[45,36],[46,41],[51,42],[52,43],[50,44],[41,45],[97,46],[108,47],[107,12],[103,12],[101,12],[102,48],[100,12],[197,49],[196,50],[198,51],[199,52],[214,53],[202,54],[209,55],[203,52],[205,56],[208,57],[215,52],[218,58],[216,59],[217,60],[206,61],[220,62],[219,63],[221,64],[224,65],[222,52],[223,66],[207,67],[204,68],[226,69],[227,70],[225,71],[134,72],[135,73],[133,73],[136,74],[143,75],[138,76],[139,73],[141,77],[140,72],[142,73],[152,78],[148,79],[151,80],[150,81],[156,82],[157,82],[155,83],[160,84],[159,83],[195,85],[162,86],[163,87],[168,88],[164,89],[166,90],[165,91],[171,92],[174,93],[176,94],[181,95],[180,96],[178,86],[182,94],[183,97],[184,98],[185,99],[193,100],[186,98],[187,95],[179,101],[192,102],[190,103],[191,104],[194,105]],"latestChangedDtsFile":"./index.d.ts","version":"5.9.3"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
.g9-grid {
|
|
2
|
+
border-radius: var(--g9-radius-card);
|
|
3
|
+
border-style: solid;
|
|
4
|
+
border-width: 1px;
|
|
5
|
+
border-color: var(--g9-card-border);
|
|
6
|
+
background-color: var(--g9-surface);
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
display: flex;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.g9-grid--virtual {
|
|
13
|
+
flex: 1;
|
|
14
|
+
min-height: 0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.g9-grid__head {
|
|
18
|
+
background-color: var(--g9-surface-container);
|
|
19
|
+
border-bottom-style: solid;
|
|
20
|
+
border-bottom-width: 1px;
|
|
21
|
+
border-bottom-color: var(--g9-divider);
|
|
22
|
+
align-items: center;
|
|
23
|
+
height: 40px;
|
|
24
|
+
display: flex;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.g9-grid__cell {
|
|
28
|
+
flex: 1;
|
|
29
|
+
align-items: center;
|
|
30
|
+
min-width: 0;
|
|
31
|
+
padding: 0 12px;
|
|
32
|
+
display: flex;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.g9-grid__cell--num {
|
|
36
|
+
justify-content: flex-end;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.g9-grid__th-text {
|
|
40
|
+
color: var(--g9-text-secondary);
|
|
41
|
+
font-size: 12px;
|
|
42
|
+
font-weight: 700;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.g9-grid__row {
|
|
46
|
+
border-bottom-style: solid;
|
|
47
|
+
border-bottom-width: 1px;
|
|
48
|
+
border-bottom-color: var(--g9-divider);
|
|
49
|
+
align-items: center;
|
|
50
|
+
display: flex;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.g9-grid__text {
|
|
54
|
+
color: var(--g9-text-primary);
|
|
55
|
+
font-size: 13px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.g9-grid__group {
|
|
59
|
+
background-color: var(--g9-surface-container-low);
|
|
60
|
+
align-items: center;
|
|
61
|
+
height: 40px;
|
|
62
|
+
padding: 0 12px;
|
|
63
|
+
display: flex;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.g9-grid__group-text {
|
|
67
|
+
color: var(--g9-text-secondary);
|
|
68
|
+
font-size: 12px;
|
|
69
|
+
font-weight: 700;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.g9-grid__totals {
|
|
73
|
+
background-color: var(--g9-surface-container);
|
|
74
|
+
border-top-style: solid;
|
|
75
|
+
border-top-width: 1px;
|
|
76
|
+
border-top-color: var(--g9-outline-variant);
|
|
77
|
+
flex-shrink: 0;
|
|
78
|
+
align-items: center;
|
|
79
|
+
display: flex;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.g9-grid__total-text {
|
|
83
|
+
color: var(--g9-text-primary);
|
|
84
|
+
font-size: 13px;
|
|
85
|
+
font-weight: 800;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
/*# sourceMappingURL=data-grid.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["webpack://./src/data-grid.css"],"names":[],"mappings":"AACA;EAAE,oCAAoC;EACpC,mBAAmB;EACnB,iBAAiB;EACjB,mCAAmC;EACnC,mCAAmC;EACnC,sBAAsB;EACtB,aAAa;EACb,gBAAgB;AAClB;;AAGA;EAAE,OAAO;EACP,aAAa;AACf;;AAGA;EAAE,6CAA6C;EAC7C,0BAA0B;EAC1B,wBAAwB;EACxB,sCAAsC;EACtC,mBAAmB;EACnB,YAAY;EACZ,aAAa;AACf;;AAGA;EAAE,OAAO;EACP,mBAAmB;EACnB,YAAY;EACZ,eAAe;EACf,aAAa;AACf;;AAGA;EAAE,yBAAyB;AAC3B;;AAGA;EAAE,+BAA+B;EAC/B,eAAe;EACf,gBAAgB;AAClB;;AAGA;EAAE,0BAA0B;EAC1B,wBAAwB;EACxB,sCAAsC;EACtC,mBAAmB;EACnB,aAAa;AACf;;AAGA;EAAE,6BAA6B;EAC7B,eAAe;AACjB;;AAGA;EAAE,iDAAiD;EACjD,mBAAmB;EACnB,YAAY;EACZ,eAAe;EACf,aAAa;AACf;;AAGA;EAAE,+BAA+B;EAC/B,eAAe;EACf,gBAAgB;AAClB;;AAGA;EAAE,6CAA6C;EAC7C,uBAAuB;EACvB,qBAAqB;EACrB,2CAA2C;EAC3C,cAAc;EACd,mBAAmB;EACnB,aAAa;AACf;;AAGA;EAAE,6BAA6B;EAC7B,eAAe;EACf,gBAAgB;AAClB","sourcesContent":["/* G9DataGrid. */\n.g9-grid {\n display: flex;\n flex-direction: column;\n border-radius: var(--g9-radius-card);\n border-width: 1px;\n border-style: solid;\n border-color: var(--g9-card-border);\n background-color: var(--g9-surface);\n overflow: hidden;\n}\n\n.g9-grid--virtual {\n flex: 1;\n min-height: 0px;\n}\n\n.g9-grid__head {\n display: flex;\n height: 40px;\n align-items: center;\n background-color: var(--g9-surface-container);\n border-bottom-width: 1px;\n border-bottom-style: solid;\n border-bottom-color: var(--g9-divider);\n}\n\n.g9-grid__cell {\n display: flex;\n flex: 1;\n min-width: 0px;\n align-items: center;\n padding: 0px 12px;\n}\n\n.g9-grid__cell--num {\n justify-content: flex-end;\n}\n\n.g9-grid__th-text {\n font-size: 12px;\n font-weight: 700;\n color: var(--g9-text-secondary);\n}\n\n.g9-grid__row {\n display: flex;\n align-items: center;\n border-bottom-width: 1px;\n border-bottom-style: solid;\n border-bottom-color: var(--g9-divider);\n}\n\n.g9-grid__text {\n font-size: 13px;\n color: var(--g9-text-primary);\n}\n\n.g9-grid__group {\n display: flex;\n align-items: center;\n height: 40px;\n padding: 0px 12px;\n background-color: var(--g9-surface-container-low);\n}\n\n.g9-grid__group-text {\n font-size: 12px;\n font-weight: 700;\n color: var(--g9-text-secondary);\n}\n\n.g9-grid__totals {\n display: flex;\n align-items: center;\n flex-shrink: 0;\n background-color: var(--g9-surface-container);\n border-top-width: 1px;\n border-top-style: solid;\n border-top-color: var(--g9-outline-variant);\n}\n\n.g9-grid__total-text {\n font-size: 13px;\n font-weight: 800;\n color: var(--g9-text-primary);\n}\n"],"sourceRoot":""}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import './data-grid.css';
|
|
2
|
+
import { type ReactNode } from '@lynx-js/react';
|
|
3
|
+
import { type G9GridColumn, type G9GridState } from './model.js';
|
|
4
|
+
/** Props of {@link G9DataGrid}. */
|
|
5
|
+
export interface G9DataGridProps<T> {
|
|
6
|
+
readonly id?: string;
|
|
7
|
+
readonly className?: string;
|
|
8
|
+
readonly data: readonly T[];
|
|
9
|
+
readonly columns: readonly G9GridColumn<T>[];
|
|
10
|
+
readonly getId: (row: T) => string | number;
|
|
11
|
+
readonly state?: G9GridState;
|
|
12
|
+
readonly onStateChange?: (state: G9GridState) => void;
|
|
13
|
+
readonly onRowPress?: (row: T) => void;
|
|
14
|
+
/** A totals row at the end. Default true when any column totals. */
|
|
15
|
+
readonly showTotals?: boolean;
|
|
16
|
+
readonly totalsLabel?: string;
|
|
17
|
+
/** `'virtual'` (default, any size) or `'plain'` (a short table inside a scrolling page, no own scroller). */
|
|
18
|
+
readonly mode?: 'virtual' | 'plain';
|
|
19
|
+
/** Shown when there are no rows. */
|
|
20
|
+
readonly empty?: ReactNode;
|
|
21
|
+
readonly onEndReached?: () => void;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* A data grid (SAC kit DataGrid, Riskara admin Table): sortable headers (tap cycles), search and grouping from the
|
|
25
|
+
* state, sticky group headers, a totals row; numbers end-aligned in the culture's digits, the identity column first
|
|
26
|
+
* (start side). Rows are 48 dp (44 on phones) on Lynx's recycled `<list>`.
|
|
27
|
+
*/
|
|
28
|
+
export declare function G9DataGrid<T>(props: G9DataGridProps<T>): ReactNode;
|
|
29
|
+
//# sourceMappingURL=data-grid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-grid.d.ts","sourceRoot":"","sources":["../src/data-grid.tsx"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,CAAC;AAKzB,OAAO,EAAQ,KAAK,SAAS,EAAW,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EACL,KAAK,YAAY,EAGjB,KAAK,WAAW,EAIjB,MAAM,SAAS,CAAC;AAEjB,mCAAmC;AACnC,MAAM,WAAW,eAAe,CAAC,CAAC;IAChC,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC,EAAE,CAAC;IAC5B,QAAQ,CAAC,OAAO,EAAE,SAAS,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC;IAC7C,QAAQ,CAAC,KAAK,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,MAAM,GAAG,MAAM,CAAC;IAC5C,QAAQ,CAAC,KAAK,CAAC,EAAE,WAAW,CAAC;IAC7B,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;IACtD,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,IAAI,CAAC;IACvC,oEAAoE;IACpE,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,6GAA6G;IAC7G,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IACpC,oCAAoC;IACpC,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC;IAC3B,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CACpC;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,KAAK,EAAE,eAAe,CAAC,CAAC,CAAC,GAAG,SAAS,CAkIlE"}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import "./data-grid.css";
|
|
2
|
+
import { g9IdProps } from "@g9tm/lynxcontrols/base";
|
|
3
|
+
import { G9VirtualList } from "@g9tm/lynxcontrols/list";
|
|
4
|
+
import { useG9Culture, useG9Direction, useG9Layout } from "@g9tm/lynxcontrols/provider";
|
|
5
|
+
import { formatNumber, g9Haptic } from "@g9tm/lynxcontrols-foundation";
|
|
6
|
+
import { memo, useMemo } from "@lynx-js/react";
|
|
7
|
+
import { gridModel, nextSort } from "./model.jsx";
|
|
8
|
+
function G9DataGrid(props) {
|
|
9
|
+
var _props_state, _props_showTotals;
|
|
10
|
+
const culture = useG9Culture();
|
|
11
|
+
const dir = useG9Direction();
|
|
12
|
+
const { layout } = useG9Layout();
|
|
13
|
+
const state = null != (_props_state = props.state) ? _props_state : {};
|
|
14
|
+
const model = useMemo(()=>gridModel(props.data, props.columns, props.getId, state), [
|
|
15
|
+
props.data,
|
|
16
|
+
props.columns,
|
|
17
|
+
state.sort,
|
|
18
|
+
state.query,
|
|
19
|
+
state.group,
|
|
20
|
+
state.collapsed
|
|
21
|
+
]);
|
|
22
|
+
const rowH = 'phone' === layout ? 44 : 48;
|
|
23
|
+
const showTotals = null != (_props_showTotals = props.showTotals) ? _props_showTotals : props.columns.some((c)=>{
|
|
24
|
+
var _c_total;
|
|
25
|
+
return null != (_c_total = c.total) ? _c_total : 'number' === c.kind || 'money' === c.kind;
|
|
26
|
+
});
|
|
27
|
+
const fmt = (c, v, row)=>{
|
|
28
|
+
if (c.format && void 0 !== row) return c.format(v, row);
|
|
29
|
+
if (null === v) return '—';
|
|
30
|
+
if ('number' == typeof v) return formatNumber(v, {
|
|
31
|
+
numberingSystem: culture.numberingSystem,
|
|
32
|
+
maximumFractionDigits: 'percent' === c.kind ? 1 : 0,
|
|
33
|
+
useGrouping: true
|
|
34
|
+
}) + ('percent' === c.kind ? '%' : '');
|
|
35
|
+
return String(v);
|
|
36
|
+
};
|
|
37
|
+
const rowDir = {
|
|
38
|
+
flexDirection: 'rtl' === dir ? 'row-reverse' : 'row',
|
|
39
|
+
direction: 'ltr'
|
|
40
|
+
};
|
|
41
|
+
const header = <view className="g9-grid__head" style={rowDir}>
|
|
42
|
+
{props.columns.map((c)=>{
|
|
43
|
+
var _state_sort;
|
|
44
|
+
const sorted = (null == (_state_sort = state.sort) ? void 0 : _state_sort.id) === c.id ? state.sort : null;
|
|
45
|
+
return <view key={c.id} className={`g9-grid__cell g9-grid__th${c.kind && 'text' !== c.kind ? ' g9-grid__cell--num' : ''}`} style={c.width ? {
|
|
46
|
+
width: `${c.width}px`,
|
|
47
|
+
flex: 'none'
|
|
48
|
+
} : {}} {...false !== c.sortable && props.onStateChange ? {
|
|
49
|
+
bindtap: ()=>{
|
|
50
|
+
var _props_onStateChange;
|
|
51
|
+
g9Haptic('tick');
|
|
52
|
+
null == (_props_onStateChange = props.onStateChange) || _props_onStateChange.call(props, {
|
|
53
|
+
...state,
|
|
54
|
+
sort: nextSort(state.sort, c)
|
|
55
|
+
});
|
|
56
|
+
},
|
|
57
|
+
'accessibility-element': true,
|
|
58
|
+
'accessibility-traits': 'button',
|
|
59
|
+
'accessibility-label': c.title
|
|
60
|
+
} : {}}>
|
|
61
|
+
<text className="g9-grid__th-text" text-maxline="1">
|
|
62
|
+
{c.title}
|
|
63
|
+
{sorted ? sorted.desc ? ' ▼' : ' ▲' : ''}
|
|
64
|
+
</text>
|
|
65
|
+
</view>;
|
|
66
|
+
})}
|
|
67
|
+
</view>;
|
|
68
|
+
const totals = showTotals ? <view className="g9-grid__totals" style={{
|
|
69
|
+
...rowDir,
|
|
70
|
+
height: '52px'
|
|
71
|
+
}}>
|
|
72
|
+
{props.columns.map((c, i)=>{
|
|
73
|
+
var _props_totalsLabel, _model_totals_c_id;
|
|
74
|
+
return <view key={c.id} className={`g9-grid__cell${c.kind && 'text' !== c.kind ? ' g9-grid__cell--num' : ''}`} style={c.width ? {
|
|
75
|
+
width: `${c.width}px`,
|
|
76
|
+
flex: 'none'
|
|
77
|
+
} : {}}>
|
|
78
|
+
<text className="g9-grid__total-text" text-maxline="1">
|
|
79
|
+
{0 === i ? null != (_props_totalsLabel = props.totalsLabel) ? _props_totalsLabel : 'Σ' : c.id in model.totals ? fmt(c, null != (_model_totals_c_id = model.totals[c.id]) ? _model_totals_c_id : null) : ''}
|
|
80
|
+
</text>
|
|
81
|
+
</view>;
|
|
82
|
+
})}
|
|
83
|
+
</view> : null;
|
|
84
|
+
const renderRow = (r)=>'group' === r.type ? <GroupRow label={r.label} count={formatNumber(r.count, {
|
|
85
|
+
numberingSystem: culture.numberingSystem,
|
|
86
|
+
useGrouping: true
|
|
87
|
+
})} collapsed={r.collapsed} style={rowDir} onTap={()=>{
|
|
88
|
+
var _state_collapsed;
|
|
89
|
+
if (!props.onStateChange) return;
|
|
90
|
+
const key = r.key.slice(2);
|
|
91
|
+
const set = new Set(null != (_state_collapsed = state.collapsed) ? _state_collapsed : []);
|
|
92
|
+
if (set.has(key)) set.delete(key);
|
|
93
|
+
else set.add(key);
|
|
94
|
+
props.onStateChange({
|
|
95
|
+
...state,
|
|
96
|
+
collapsed: [
|
|
97
|
+
...set
|
|
98
|
+
]
|
|
99
|
+
});
|
|
100
|
+
}}/> : <DataRow row={r.row} columns={props.columns} height={rowH} style={rowDir} fmt={fmt} {...props.onRowPress ? {
|
|
101
|
+
onPress: props.onRowPress
|
|
102
|
+
} : {}}/>;
|
|
103
|
+
if ('plain' === props.mode) return <view className={`g9-grid${props.className ? ` ${props.className}` : ''}`} {...g9IdProps(props.id)}>
|
|
104
|
+
{header}
|
|
105
|
+
{0 === model.rows.length && props.empty ? props.empty : model.rows.map((r)=><view key={r.key}>{renderRow(r)}</view>)}
|
|
106
|
+
{totals}
|
|
107
|
+
</view>;
|
|
108
|
+
return <view className={`g9-grid g9-grid--virtual${props.className ? ` ${props.className}` : ''}`} {...g9IdProps(props.id)}>
|
|
109
|
+
{header}
|
|
110
|
+
<G9VirtualList reuseKey={(r)=>r.type} items={model.rows} getKey={(r)=>r.key} renderItem={renderRow} estimatedSize={(r)=>'group' === r.type ? 40 : rowH} isSticky={(r)=>'group' === r.type} {...props.empty ? {
|
|
111
|
+
empty: props.empty
|
|
112
|
+
} : {}} {...props.onEndReached ? {
|
|
113
|
+
onEndReached: props.onEndReached
|
|
114
|
+
} : {}}/>
|
|
115
|
+
{totals}
|
|
116
|
+
</view>;
|
|
117
|
+
}
|
|
118
|
+
const GroupRow = memo(function(p) {
|
|
119
|
+
return <view className="g9-grid__group" style={p.style} bindtap={p.onTap} accessibility-element={true} accessibility-traits="button" accessibility-label={`${p.label} (${p.count})`}>
|
|
120
|
+
<text className="g9-grid__group-text">{`${p.collapsed ? '▸' : '▾'} ${p.label} · ${p.count}`}</text>
|
|
121
|
+
</view>;
|
|
122
|
+
});
|
|
123
|
+
function DataRowImpl(p) {
|
|
124
|
+
return <view className="g9-grid__row" style={{
|
|
125
|
+
...p.style,
|
|
126
|
+
height: `${p.height}px`
|
|
127
|
+
}} {...p.onPress ? {
|
|
128
|
+
bindtap: ()=>{
|
|
129
|
+
var _p_onPress;
|
|
130
|
+
return null == (_p_onPress = p.onPress) ? void 0 : _p_onPress.call(p, p.row);
|
|
131
|
+
},
|
|
132
|
+
'accessibility-element': true,
|
|
133
|
+
'accessibility-traits': 'button'
|
|
134
|
+
} : {}}>
|
|
135
|
+
{p.columns.map((c)=><view key={c.id} className={`g9-grid__cell${c.kind && 'text' !== c.kind ? ' g9-grid__cell--num' : ''}`} style={c.width ? {
|
|
136
|
+
width: `${c.width}px`,
|
|
137
|
+
flex: 'none'
|
|
138
|
+
} : {}}>
|
|
139
|
+
<text className="g9-grid__text" text-maxline="1">
|
|
140
|
+
{p.fmt(c, c.value(p.row), p.row)}
|
|
141
|
+
</text>
|
|
142
|
+
</view>)}
|
|
143
|
+
</view>;
|
|
144
|
+
}
|
|
145
|
+
const DataRow = memo(DataRowImpl);
|
|
146
|
+
export { G9DataGrid };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { G9DataGrid, type G9DataGridProps } from './data-grid.js';
|
|
2
|
+
export { type G9GridColumn, type G9GridKind, type G9GridModel, type G9GridRow, type G9GridSort, type G9GridState, type G9GridValue, gridCsv, gridModel, nextSort, } from './model.js';
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,OAAO,EACP,SAAS,EACT,QAAQ,GACT,MAAM,SAAS,CAAC"}
|
package/dist/index.jsx
ADDED
package/dist/model.d.ts
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/** How a column's values read, sort and total: text, number, money, percent or date. */
|
|
2
|
+
export type G9GridKind = 'text' | 'number' | 'money' | 'percent' | 'date';
|
|
3
|
+
/** A cell value as a column reads it: text, a number, or nothing. */
|
|
4
|
+
export type G9GridValue = string | number | null;
|
|
5
|
+
/** A column. */
|
|
6
|
+
export interface G9GridColumn<T> {
|
|
7
|
+
readonly id: string;
|
|
8
|
+
readonly title: string;
|
|
9
|
+
readonly kind?: G9GridKind;
|
|
10
|
+
readonly value: (row: T) => G9GridValue;
|
|
11
|
+
/** Shown text (default: the value as text). */
|
|
12
|
+
readonly format?: (value: G9GridValue, row: T) => string;
|
|
13
|
+
/** Sum in group and total rows (numbers). Default true for number/money. */
|
|
14
|
+
readonly total?: boolean;
|
|
15
|
+
/** Searched by the query. Default true for text columns. */
|
|
16
|
+
readonly searchable?: boolean;
|
|
17
|
+
/** Width in dp (default flexible). */
|
|
18
|
+
readonly width?: number;
|
|
19
|
+
readonly sortable?: boolean;
|
|
20
|
+
}
|
|
21
|
+
/** The sort of a grid: the column id and whether it is descending. */
|
|
22
|
+
export interface G9GridSort {
|
|
23
|
+
readonly id: string;
|
|
24
|
+
readonly desc: boolean;
|
|
25
|
+
}
|
|
26
|
+
/** What a grid shows: the sort, the search query and the column it groups by. */
|
|
27
|
+
export interface G9GridState {
|
|
28
|
+
readonly sort?: G9GridSort | null;
|
|
29
|
+
readonly query?: string;
|
|
30
|
+
/** Column id to group by. */
|
|
31
|
+
readonly group?: string | null;
|
|
32
|
+
/** Collapsed group keys. */
|
|
33
|
+
readonly collapsed?: readonly string[];
|
|
34
|
+
}
|
|
35
|
+
/** One row of the grid model: a group header (key, label, count, totals) or a data row. */
|
|
36
|
+
export type G9GridRow<T> = {
|
|
37
|
+
readonly type: 'group';
|
|
38
|
+
readonly key: string;
|
|
39
|
+
readonly label: string;
|
|
40
|
+
readonly count: number;
|
|
41
|
+
readonly totals: Readonly<Record<string, number | null>>;
|
|
42
|
+
readonly collapsed: boolean;
|
|
43
|
+
} | {
|
|
44
|
+
readonly type: 'row';
|
|
45
|
+
readonly key: string;
|
|
46
|
+
readonly row: T;
|
|
47
|
+
readonly group: string | null;
|
|
48
|
+
};
|
|
49
|
+
/** A grid laid out for display ({@link gridModel}): its rows, the column totals and the rows the search kept. */
|
|
50
|
+
export interface G9GridModel<T> {
|
|
51
|
+
readonly rows: readonly G9GridRow<T>[];
|
|
52
|
+
readonly totals: Readonly<Record<string, number | null>>;
|
|
53
|
+
/** Rows after the search. */
|
|
54
|
+
readonly count: number;
|
|
55
|
+
/** Rows before the search. */
|
|
56
|
+
readonly total: number;
|
|
57
|
+
}
|
|
58
|
+
/** Builds the visible rows for `state`. */
|
|
59
|
+
export declare function gridModel<T>(data: readonly T[], cols: readonly G9GridColumn<T>[], getId: (row: T) => string | number, state?: G9GridState): G9GridModel<T>;
|
|
60
|
+
/** The next sort when a header is tapped: ascending → descending → none (numbers start descending: biggest first). */
|
|
61
|
+
export declare function nextSort(current: G9GridSort | null | undefined, col: {
|
|
62
|
+
readonly id: string;
|
|
63
|
+
readonly kind?: G9GridKind;
|
|
64
|
+
}): G9GridSort | null;
|
|
65
|
+
/** CSV of the visible data rows (group rows skipped), with a header; numbers raw so a spreadsheet can sum them. */
|
|
66
|
+
export declare function gridCsv<T>(model: G9GridModel<T>, cols: readonly G9GridColumn<T>[]): string;
|
|
67
|
+
//# sourceMappingURL=model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../src/model.ts"],"names":[],"mappings":"AAIA,wFAAwF;AACxF,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;AAC1E,qEAAqE;AACrE,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;AAEjD,gBAAgB;AAChB,MAAM,WAAW,YAAY,CAAC,CAAC;IAC7B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,CAAC,EAAE,UAAU,CAAC;IAC3B,QAAQ,CAAC,KAAK,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,WAAW,CAAC;IACxC,+CAA+C;IAC/C,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,EAAE,GAAG,EAAE,CAAC,KAAK,MAAM,CAAC;IACzD,4EAA4E;IAC5E,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IACzB,4DAA4D;IAC5D,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;IAC9B,sCAAsC;IACtC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,sEAAsE;AACtE,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;CACxB;AAED,iFAAiF;AACjF,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,IAAI,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;IAClC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,6BAA6B;IAC7B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,4BAA4B;IAC5B,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CACxC;AAED,2FAA2F;AAC3F,MAAM,MAAM,SAAS,CAAC,CAAC,IACnB;IACE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC;IACzD,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;CAC7B,GACD;IAAE,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC;IAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,GAAG,EAAE,CAAC,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAAC;AAEnG,iHAAiH;AACjH,MAAM,WAAW,WAAW,CAAC,CAAC;IAC5B,QAAQ,CAAC,IAAI,EAAE,SAAS,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;IACvC,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC;IACzD,6BAA6B;IAC7B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,8BAA8B;IAC9B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAkDD,2CAA2C;AAC3C,wBAAgB,SAAS,CAAC,CAAC,EACzB,IAAI,EAAE,SAAS,CAAC,EAAE,EAClB,IAAI,EAAE,SAAS,YAAY,CAAC,CAAC,CAAC,EAAE,EAChC,KAAK,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,MAAM,GAAG,MAAM,EAClC,KAAK,GAAE,WAAgB,GACtB,WAAW,CAAC,CAAC,CAAC,CA2DhB;AAED,sHAAsH;AACtH,wBAAgB,QAAQ,CACtB,OAAO,EAAE,UAAU,GAAG,IAAI,GAAG,SAAS,EACtC,GAAG,EAAE;IAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,UAAU,CAAA;CAAE,GACvD,UAAU,GAAG,IAAI,CAKnB;AAID,mHAAmH;AACnH,wBAAgB,OAAO,CAAC,CAAC,EAAE,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,SAAS,YAAY,CAAC,CAAC,CAAC,EAAE,GAAG,MAAM,CAgB1F"}
|
package/dist/model.jsx
ADDED
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { searchKey } from "@g9tm/lynxcontrols-foundation";
|
|
2
|
+
const numeric = (k)=>'number' === k || 'money' === k || 'percent' === k;
|
|
3
|
+
const FA_ORDER = 'آابپتثجچحخدذرزژسشصضطظعغفقکگلمنوهی';
|
|
4
|
+
const rank = (ch)=>{
|
|
5
|
+
const i = FA_ORDER.indexOf(ch);
|
|
6
|
+
return i >= 0 ? 0x110000 + i : ch.codePointAt(0);
|
|
7
|
+
};
|
|
8
|
+
function compareText(a, b) {
|
|
9
|
+
const x = Array.from(searchKey(a));
|
|
10
|
+
const y = Array.from(searchKey(b));
|
|
11
|
+
for(let i = 0; i < Math.min(x.length, y.length); i++){
|
|
12
|
+
const d = rank(x[i]) - rank(y[i]);
|
|
13
|
+
if (0 !== d) return d;
|
|
14
|
+
}
|
|
15
|
+
return x.length - y.length || (a < b ? -1 : a > b ? 1 : 0);
|
|
16
|
+
}
|
|
17
|
+
function compare(a, b) {
|
|
18
|
+
if (a === b) return 0;
|
|
19
|
+
if (null === a) return 1;
|
|
20
|
+
if (null === b) return -1;
|
|
21
|
+
if ('number' == typeof a && 'number' == typeof b) return a - b;
|
|
22
|
+
return compareText(String(a), String(b));
|
|
23
|
+
}
|
|
24
|
+
function sums(rows, cols) {
|
|
25
|
+
const out = {};
|
|
26
|
+
for (const c of cols){
|
|
27
|
+
var _c_total;
|
|
28
|
+
if (!(null != (_c_total = c.total) ? _c_total : 'number' === c.kind || 'money' === c.kind)) continue;
|
|
29
|
+
let s = 0;
|
|
30
|
+
let any = false;
|
|
31
|
+
for (const r of rows){
|
|
32
|
+
const v = c.value(r);
|
|
33
|
+
if ('number' == typeof v && Number.isFinite(v)) {
|
|
34
|
+
s += v;
|
|
35
|
+
any = true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
out[c.id] = any ? s : null;
|
|
39
|
+
}
|
|
40
|
+
return out;
|
|
41
|
+
}
|
|
42
|
+
function gridModel(data, cols, getId, state = {}) {
|
|
43
|
+
var _state_query, _state_collapsed;
|
|
44
|
+
const q = searchKey(null != (_state_query = state.query) ? _state_query : '');
|
|
45
|
+
const searchCols = cols.filter((c)=>{
|
|
46
|
+
var _c_searchable;
|
|
47
|
+
return null != (_c_searchable = c.searchable) ? _c_searchable : !numeric(c.kind);
|
|
48
|
+
});
|
|
49
|
+
const words = q.split(' ').filter(Boolean);
|
|
50
|
+
let rows = words.length ? data.filter((r)=>{
|
|
51
|
+
const hay = searchCols.map((c)=>{
|
|
52
|
+
var _c_value;
|
|
53
|
+
return searchKey(String(c.format ? c.format(c.value(r), r) : null != (_c_value = c.value(r)) ? _c_value : ''));
|
|
54
|
+
}).join(' ');
|
|
55
|
+
return words.every((w)=>hay.includes(w));
|
|
56
|
+
}) : [
|
|
57
|
+
...data
|
|
58
|
+
];
|
|
59
|
+
const sortCol = state.sort ? cols.find((c)=>{
|
|
60
|
+
var _state_sort;
|
|
61
|
+
return c.id === (null == (_state_sort = state.sort) ? void 0 : _state_sort.id);
|
|
62
|
+
}) : void 0;
|
|
63
|
+
if (sortCol) {
|
|
64
|
+
var _state_sort;
|
|
65
|
+
const dir = (null == (_state_sort = state.sort) ? void 0 : _state_sort.desc) ? -1 : 1;
|
|
66
|
+
rows = rows.map((r, i)=>({
|
|
67
|
+
r,
|
|
68
|
+
i,
|
|
69
|
+
v: sortCol.value(r)
|
|
70
|
+
})).sort((a, b)=>{
|
|
71
|
+
const c = compare(a.v, b.v);
|
|
72
|
+
if (null === a.v || null === b.v) return c || a.i - b.i;
|
|
73
|
+
return c * dir || a.i - b.i;
|
|
74
|
+
}).map((x)=>x.r);
|
|
75
|
+
}
|
|
76
|
+
const totals = sums(rows, cols);
|
|
77
|
+
const groupCol = state.group ? cols.find((c)=>c.id === state.group) : void 0;
|
|
78
|
+
if (!groupCol) return {
|
|
79
|
+
rows: rows.map((r)=>({
|
|
80
|
+
type: 'row',
|
|
81
|
+
key: String(getId(r)),
|
|
82
|
+
row: r,
|
|
83
|
+
group: null
|
|
84
|
+
})),
|
|
85
|
+
totals,
|
|
86
|
+
count: rows.length,
|
|
87
|
+
total: data.length
|
|
88
|
+
};
|
|
89
|
+
const groups = new Map();
|
|
90
|
+
for (const r of rows){
|
|
91
|
+
const v = groupCol.value(r);
|
|
92
|
+
const key = null === v ? '—' : String(v);
|
|
93
|
+
const list = groups.get(key);
|
|
94
|
+
if (list) list.push(r);
|
|
95
|
+
else groups.set(key, [
|
|
96
|
+
r
|
|
97
|
+
]);
|
|
98
|
+
}
|
|
99
|
+
const collapsed = new Set(null != (_state_collapsed = state.collapsed) ? _state_collapsed : []);
|
|
100
|
+
const out = [];
|
|
101
|
+
for (const [key, list] of groups){
|
|
102
|
+
const sample = list[0];
|
|
103
|
+
const label = groupCol.format ? groupCol.format(groupCol.value(sample), sample) : key;
|
|
104
|
+
out.push({
|
|
105
|
+
type: 'group',
|
|
106
|
+
key: `g:${key}`,
|
|
107
|
+
label,
|
|
108
|
+
count: list.length,
|
|
109
|
+
totals: sums(list, cols),
|
|
110
|
+
collapsed: collapsed.has(key)
|
|
111
|
+
});
|
|
112
|
+
if (!collapsed.has(key)) for (const r of list)out.push({
|
|
113
|
+
type: 'row',
|
|
114
|
+
key: String(getId(r)),
|
|
115
|
+
row: r,
|
|
116
|
+
group: key
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
return {
|
|
120
|
+
rows: out,
|
|
121
|
+
totals,
|
|
122
|
+
count: rows.length,
|
|
123
|
+
total: data.length
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
function nextSort(current, col) {
|
|
127
|
+
const firstDesc = numeric(col.kind) || 'date' === col.kind;
|
|
128
|
+
if (!current || current.id !== col.id) return {
|
|
129
|
+
id: col.id,
|
|
130
|
+
desc: firstDesc
|
|
131
|
+
};
|
|
132
|
+
if (current.desc === firstDesc) return {
|
|
133
|
+
id: col.id,
|
|
134
|
+
desc: !firstDesc
|
|
135
|
+
};
|
|
136
|
+
return null;
|
|
137
|
+
}
|
|
138
|
+
const csvCell = (s)=>/[",\n\r]/.test(s) ? `"${s.replace(/"/g, '""')}"` : s;
|
|
139
|
+
function gridCsv(model, cols) {
|
|
140
|
+
const lines = [
|
|
141
|
+
cols.map((c)=>csvCell(c.title)).join(',')
|
|
142
|
+
];
|
|
143
|
+
for (const r of model.rows)if ('row' === r.type) lines.push(cols.map((c)=>{
|
|
144
|
+
const v = c.value(r.row);
|
|
145
|
+
if (null === v) return '';
|
|
146
|
+
return 'number' == typeof v ? String(v) : csvCell(c.format ? c.format(v, r.row) : v);
|
|
147
|
+
}).join(','));
|
|
148
|
+
return `${lines.join('\r\n')}`;
|
|
149
|
+
}
|
|
150
|
+
export { gridCsv, gridModel, nextSort };
|
package/package.json
CHANGED
|
@@ -1,6 +1,36 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@g9tm/lynxcontrols-datagrid",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "2.1.0",
|
|
4
|
+
"description": "Data grid for G9LynxControls: a pure model (sort, Persian-aware search, grouping with totals, CSV) and a virtualised G9DataGrid with sticky group headers, sortable columns and a totals row.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"sideEffects": [
|
|
8
|
+
"**/*.css"
|
|
9
|
+
],
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"source": "./src/index.ts",
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"default": "./dist/index.jsx"
|
|
15
|
+
},
|
|
16
|
+
"./model": {
|
|
17
|
+
"source": "./src/model.ts",
|
|
18
|
+
"types": "./dist/model.d.ts",
|
|
19
|
+
"default": "./dist/model.jsx"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"dist",
|
|
24
|
+
"README.md"
|
|
25
|
+
],
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "rslib build"
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"@g9tm/lynxcontrols-foundation": "2.1.0"
|
|
31
|
+
},
|
|
32
|
+
"peerDependencies": {
|
|
33
|
+
"@g9tm/lynxcontrols": "2.1.0",
|
|
34
|
+
"@lynx-js/react": ">=0.129.3 <0.130.0"
|
|
35
|
+
}
|
|
36
|
+
}
|