Giter VIP home page Giter VIP logo

table-web-component's Issues

Unable to import package easily via PNPM or TypeScript compiler

I guess first question is whether or not this is already published to NPM- couldn't find it. If so, please point me in the right direction and disregard.

Have logged this as PNPM-specific, but it may not be. Regardless I don't think that the syntax in package.json's exports is being recognised as the modules given by those names (eg. @adaburrows/table-web-component/field-definitions fails to import).
Currently removing exports entirely and loading with

//@ts-ignore
import { FieldDefinitions, FieldDefinition } from '@adaburrows/table-web-component/dist/field-definitions'

serves as a workaround. I should be able to simply import as @adaburrows/table-web-component/field-definitions or at least @adaburrows/table-web-component/dist/field-definitions and have the compiled source and typedefs automatically imported though.

Note that I am referencing the module via git with "@adaburrows/table-web-component": "git://github.com/adaburrows/table-web-component#b2e4f4a" in case this is specific to git refs and may go away with NPM publication.

Readme is indicating to import Table but the package is not exporting that

After following the instructions (npm add ... ) and the second set of imports

import { ScopedRegistryHost } from '@lit-labs/scoped-registry-mixin';
import { FieldDefinitions, FieldDefinition, TableStore, Table } from '@adaburrows/table-web-component';

I cannot import Table.

Rendering as described in the instructions (<adaburrows-table .tableStore=${this.tableStore}></adaburrows-table>) did not work, there was no content, so I switched to headless mode.

Styling of per-field cell backgrounds

I ran into this issue which has stopped me from setting distinct background colors for field columns (which I want to do for the first two columns in the screenshot below).

Expected behaviour:

  • Setting the --table-${tableId}-${fieldName}-cell-background-color variable to my color of choice should override the background colour of the field's column. It works for the heading variables, as can be seen in the screenshot., but not for body.

Problem:

  • The most specific two variables (as seen by the red graffiti) are --table-assessmentsForResource-average_heat-row-odd-background-color --table-assessmentsForResource-average_heat-cell-background-color , which actually refer to the last field (on the far right). I would expect these to be --table-assessmentsForResource-resource-row-odd-background-color and --table-assessmentsForResource-resource-cell-background-color which would pick up on my defined variable.

Cheers :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.