-
Notifications
You must be signed in to change notification settings - Fork 11
PickList and ValueList: share render methods between lists 461 #488
PickList and ValueList: share render methods between lists 461 #488
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -12,8 +11,7 @@ import { | |||
} from "@stencil/core"; | |||
import { ICON_TYPES, TEXT } from "./resources"; | |||
import sharedListMethods from "./shared-list-logic"; | |||
import { VNode } from "@stencil/core/dist/declarations"; | |||
import CalciteScrim from "../utils/CalciteScrim"; | |||
import List from "./shared-list-render"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick: Is there a more discoverable location for the common list modules?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could put them in utils maybe? Though I think it'd be about time to start adding sub-folders to utils, which might introduce some file reference refactors in other files.
Maybe src/components/utils/functional-components
Very open to other suggestions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Thanks Franco 😄 |
…rops (#461) * 3 new tests for filter. metadata wip * change filter data from to selected properties. Prior was using all attributes. * add event for modified properties filter depends on * split filter setup so it can called on prop change * fix bug in tests * remove .only from test * filter: add a warning when there is no data. * fix getTag to work with no attributes * add tests for filter * fix accessibility * PickList and ValueList: share more code between lists 461 (#484) * remove .only from test * fix lint errors * add temporary backup files to gitignore * abstract common methods to a shared location * share selection/deselection tests * fix shiftClick behavior for valueList * abstract shared tests between lists * improve method return type * normalize render functions * add this typing to shared logic file https://stackoverflow.com/questions/54710927/typescript-types-and-bind * moving compact prop to alpha order * added typing to items * add compact property to value list * fix type error on textHeading * fix typings * update lists to use common MO callback MO: Mutation Observer * comment touchup * fix backwards compat and event typing * add missing typings * space the tests out * code review follow up * abstracted some types * move comment up * PickList and ValueList: share render methods between lists 461 (#488) * fix lint errors * add temporary backup files to gitignore * abstract common methods to a shared location * share selection/deselection tests * fix shiftClick behavior for valueList * abstract shared tests between lists * improve method return type * normalize render functions * abstract the render methods to functional comp * switch value list over to use shared render * fix calcite-block accessible test. * update calciteListItemPropsUpdated event docs * calciteListItemPropsUpdated is internal only
…st-render (#400) * add a console warn and simpler demo file * 3 new tests for filter. metadata wip * change filter data from to selected properties. Prior was using all attributes. * add event for modified properties filter depends on * split filter setup so it can called on prop change * fix bug in tests * remove .only from test * filter: add a warning when there is no data. * fix getTag to work with no attributes * add tests for filter * fix accessibility * change existing demo to advanced demo * change simple demo to default * wip demos * PickList and ValueList: share more code between lists 461 (#484) * remove .only from test * fix lint errors * add temporary backup files to gitignore * abstract common methods to a shared location * share selection/deselection tests * fix shiftClick behavior for valueList * abstract shared tests between lists * improve method return type * normalize render functions * add this typing to shared logic file https://stackoverflow.com/questions/54710927/typescript-types-and-bind * moving compact prop to alpha order * added typing to items * add compact property to value list * fix type error on textHeading * fix typings * update lists to use common MO callback MO: Mutation Observer * comment touchup * fix backwards compat and event typing * add missing typings * space the tests out * code review follow up * abstracted some types * move comment up * PickList and ValueList: share render methods between lists 461 (#488) * fix lint errors * add temporary backup files to gitignore * abstract common methods to a shared location * share selection/deselection tests * fix shiftClick behavior for valueList * abstract shared tests between lists * improve method return type * normalize render functions * abstract the render methods to functional comp * switch value list over to use shared render * fix calcite-block accessible test. * update calciteListItemPropsUpdated event docs * replace attribute logic with properties * minor demo changes * clean up demo * removing redundant warn message * remove maquette
Related Issue: #461
Summary
Abstract render functions too.