@activecollab/components 2.0.598 → 2.0.600
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/dist/cjs/components/Chip/Chip.js.map +1 -1
- package/dist/cjs/components/Chip/Styles.js +3 -1
- package/dist/cjs/components/Chip/Styles.js.map +1 -1
- package/dist/cjs/components/PillButton/PillButton.js.map +1 -1
- package/dist/cjs/components/PillButton/Styles.js +2 -1
- package/dist/cjs/components/PillButton/Styles.js.map +1 -1
- package/dist/cjs/components/PillGroup/PillGroup.js.map +1 -1
- package/dist/cjs/components/PillGroup/Styles.js +5 -2
- package/dist/cjs/components/PillGroup/Styles.js.map +1 -1
- package/dist/cjs/components/PropertyList/BulletStyles.js +1 -1
- package/dist/cjs/components/PropertyList/BulletStyles.js.map +1 -1
- package/dist/cjs/components/PropertyList/PropertyList.js +12 -1
- package/dist/cjs/components/PropertyList/PropertyList.js.map +1 -1
- package/dist/cjs/components/PropertyList/PropertyListPopover.js +22 -1
- package/dist/cjs/components/PropertyList/PropertyListPopover.js.map +1 -1
- package/dist/cjs/components/PropertyList/Styles.js +30 -27
- package/dist/cjs/components/PropertyList/Styles.js.map +1 -1
- package/dist/cjs/components/PropertyList/TimeStyles.js +1 -1
- package/dist/cjs/components/PropertyList/TimeStyles.js.map +1 -1
- package/dist/cjs/components/Typography/Variants/Body1.js.map +1 -1
- package/dist/esm/components/Chip/Chip.d.ts +1 -1
- package/dist/esm/components/Chip/Chip.d.ts.map +1 -1
- package/dist/esm/components/Chip/Chip.js.map +1 -1
- package/dist/esm/components/Chip/Styles.d.ts.map +1 -1
- package/dist/esm/components/Chip/Styles.js +2 -2
- package/dist/esm/components/Chip/Styles.js.map +1 -1
- package/dist/esm/components/PillButton/PillButton.d.ts +2 -2
- package/dist/esm/components/PillButton/PillButton.d.ts.map +1 -1
- package/dist/esm/components/PillButton/PillButton.js.map +1 -1
- package/dist/esm/components/PillButton/Styles.d.ts.map +1 -1
- package/dist/esm/components/PillButton/Styles.js +2 -1
- package/dist/esm/components/PillButton/Styles.js.map +1 -1
- package/dist/esm/components/PillGroup/PillGroup.d.ts +2 -2
- package/dist/esm/components/PillGroup/PillGroup.d.ts.map +1 -1
- package/dist/esm/components/PillGroup/PillGroup.js.map +1 -1
- package/dist/esm/components/PillGroup/Styles.d.ts.map +1 -1
- package/dist/esm/components/PillGroup/Styles.js +2 -1
- package/dist/esm/components/PillGroup/Styles.js.map +1 -1
- package/dist/esm/components/PropertyList/BulletStyles.js +1 -1
- package/dist/esm/components/PropertyList/BulletStyles.js.map +1 -1
- package/dist/esm/components/PropertyList/PropertyList.d.ts.map +1 -1
- package/dist/esm/components/PropertyList/PropertyList.js +12 -1
- package/dist/esm/components/PropertyList/PropertyList.js.map +1 -1
- package/dist/esm/components/PropertyList/PropertyListPopover.d.ts +3 -1
- package/dist/esm/components/PropertyList/PropertyListPopover.d.ts.map +1 -1
- package/dist/esm/components/PropertyList/PropertyListPopover.js +20 -0
- package/dist/esm/components/PropertyList/PropertyListPopover.js.map +1 -1
- package/dist/esm/components/PropertyList/Styles.d.ts +1 -0
- package/dist/esm/components/PropertyList/Styles.d.ts.map +1 -1
- package/dist/esm/components/PropertyList/Styles.js +30 -27
- package/dist/esm/components/PropertyList/Styles.js.map +1 -1
- package/dist/esm/components/PropertyList/TimeStyles.js +1 -1
- package/dist/esm/components/PropertyList/TimeStyles.js.map +1 -1
- package/dist/esm/components/Typography/Variants/Body1.d.ts +1 -1
- package/dist/esm/components/Typography/Variants/Body1.d.ts.map +1 -1
- package/dist/esm/components/Typography/Variants/Body1.js.map +1 -1
- package/dist/index.js +75 -35
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PropertyList.js","names":["_react","_interopRequireWildcard","require","_classnames","_interopRequireDefault","_Styles","_useContainerCss","_Icons","_TicketPerforation","_excluded","_excluded2","_excluded3","_excluded4","_excluded5","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_extends","assign","bind","arguments","length","apply","_objectWithoutProperties","_objectWithoutPropertiesLoose","getOwnPropertySymbols","indexOf","propertyIsEnumerable","DensityContext","createContext","LayoutContext","DisabledContext","usePropertyListDensity","exports","useContext","usePropertyListLayout","usePropertyListDisabled","PropertyListLayout","_ref","_ref$value","value","children","createElement","Provider","PropertyListDivider","StyledPropertyListDivider","$layout","$density","className","PropertyListCell","_ref2","Fragment","displayName","keyOf","part","index","_key","key","renderCell","isValidElement","type","StyledPropertyListCell","_ref3","props","aside","asideProps","cellProps","hasAside","undefined","classnames","StyledPropertyListCellSplit","StyledPropertyListCellMain","StyledPropertyListCellAside","PropertyList","forwardRef","_ref4","ref","_ref4$density","density","_ref4$disabled","disabled","layout","_ref4$cells","cells","header","footer","cellsProps","footerProps","tearProps","perforationProps","_ref4$solid","solid","_ref4$roomy","roomy","_ref4$notches","notches","rest","contextLayout","current","isTicket","parts","Children","toArray","filter","Boolean","useContainerCss","CONTAINER_CSS","ticket","TicketPerforation","line","StyledPropertyListCells","$cells","concat","map","StyledPropertyListTear","StyledPropertyListFooterTear","StyledPropertyListFooter","StyledPropertyList","variant","radius","shadow","$disabled","$ticket","$solid","$roomy","PropertyListValue","_ref5","_ref5$placeholder","placeholder","StyledPropertyListTicketValue","$placeholder","StyledPropertyListValue","forwardedAs","color","PropertyListAdd","_ref6","StyledPropertyListTicketAddIcon","StyledPropertyListAddIcon","AddCrossTinyIcon","PropertyListLabel","_ref7","icon","label","StyledPropertyListTableLabel","StyledPropertyListIcon","$size","$scale","StyledPropertyListLabelText","weight","PropertyListRow","_ref8","action","_ref8$tone","tone","_ref8$readOnly","readOnly","_ref8$chevron","chevron","_ref8$disabled","_ref8$parts","_ref8$wrap","wrap","labelProps","caretProps","isDisabled","cell","StyledPropertyListRow","as","$tone","$clickable","StyledPropertyListTicketLabel","StyledPropertyListTicketLine","$parts","StyledPropertyListTicketText","$wrap","StyledPropertyListTicketCaret","caret","StyledPropertyListChevron","ArrowDownSmallIcon","StyledPropertyListTableValue","StyledPropertyListTableAction","PropertyListToggle","_ref9","_ref9$expanded","expanded","StyledPropertyListToggle","PropertyListBranch","_ref0","_ref0$position","position","StyledPropertyListBranch","StyledPropertyListBranchLine"],"sources":["../../../../src/components/PropertyList/PropertyList.tsx"],"sourcesContent":["import React, {\n ButtonHTMLAttributes,\n Children,\n Fragment,\n HTMLAttributes,\n ReactElement,\n ReactNode,\n Ref,\n createContext,\n forwardRef,\n isValidElement,\n useContext,\n} from \"react\";\n\nimport classnames from \"classnames\";\n\nimport {\n CONTAINER_CSS,\n PropertyListCells,\n PropertyListDensity,\n PropertyListLayoutName,\n PropertyListTone,\n StyledPropertyList,\n StyledPropertyListAddIcon,\n StyledPropertyListBranch,\n StyledPropertyListBranchLine,\n StyledPropertyListCell,\n StyledPropertyListCellAside,\n StyledPropertyListCellMain,\n StyledPropertyListCells,\n StyledPropertyListCellSplit,\n StyledPropertyListChevron,\n StyledPropertyListDivider,\n StyledPropertyListIcon,\n StyledPropertyListLabelText,\n StyledPropertyListRow,\n StyledPropertyListTableAction,\n StyledPropertyListTableLabel,\n StyledPropertyListTableValue,\n StyledPropertyListFooter,\n StyledPropertyListFooterTear,\n StyledPropertyListTear,\n StyledPropertyListTicketAddIcon,\n StyledPropertyListTicketCaret,\n StyledPropertyListTicketLabel,\n StyledPropertyListTicketLine,\n StyledPropertyListTicketText,\n StyledPropertyListTicketValue,\n StyledPropertyListToggle,\n StyledPropertyListValue,\n} from \"./Styles\";\nimport { useContainerCss } from \"../../utils/useContainerCss\";\nimport { AddCrossTinyIcon, ArrowDownSmallIcon } from \"../Icons\";\nimport { TicketPerforation } from \"../TicketPerforation\";\n\nconst DensityContext = createContext<PropertyListDensity>(\"form\");\nconst LayoutContext = createContext<PropertyListLayoutName>(\"stacked\");\nconst DisabledContext = createContext(false);\n\nexport const usePropertyListDensity = () => useContext(DensityContext);\nexport const usePropertyListLayout = () => useContext(LayoutContext);\nexport const usePropertyListDisabled = () => useContext(DisabledContext);\n\n/** Sets the layout of the rows below it: one line each, the three columns of a table, or the cells of a ticket. */\nexport const PropertyListLayout = ({\n value = \"stacked\",\n children,\n}: {\n value?: PropertyListLayoutName;\n children?: ReactNode;\n}) => <LayoutContext.Provider value={value}>{children}</LayoutContext.Provider>;\n\n/** The line between two rows. In a stacked list it starts where the label text starts. */\nexport const PropertyListDivider = () => (\n <StyledPropertyListDivider\n aria-hidden=\"true\"\n $layout={usePropertyListLayout()}\n $density={usePropertyListDensity()}\n className=\"c-property-list__divider\"\n />\n);\n\nexport interface IPropertyListProps extends HTMLAttributes<HTMLDivElement> {\n /** \"form\" for a compact list in a form, \"page\" for a list on a page, with a shadow. */\n density?: PropertyListDensity;\n /** Every row of the list is dimmed and takes no click and no focus. */\n disabled?: boolean;\n /** The layout of the rows. Without it the list takes the layout of the PropertyListLayout around it. \"ticket\" makes each row a cell: a small label over its value. */\n layout?: PropertyListLayoutName;\n /** Ticket only: \"grid\" puts the cells in two, three or four columns by the card width, \"row\" in one row that wraps. */\n cells?: PropertyListCells;\n /** Ticket only: a part over the cells, with a tear line under it. */\n header?: ReactNode;\n /** Ticket only: rows of the page density under the cells, after a tear line, to the edges of the card. */\n footer?: ReactNode;\n /** Ticket only: attributes of the box of the cells, such as a test id. */\n cellsProps?: TicketPartProps;\n /** Ticket only: attributes of the box of the footer, such as a test id. */\n footerProps?: TicketPartProps;\n /** Ticket grid only: attributes of each tear line between the cells. */\n tearProps?: TicketPartProps;\n /** Ticket only: attributes of every perforation of the ticket. */\n perforationProps?: TicketPartProps;\n /** In a flat ObjectLayout the card keeps the raised color of the theme. */\n solid?: boolean;\n /** Each row is 8px taller. */\n roomy?: boolean;\n /** Ticket only: false leaves the tear lines with no notches. */\n notches?: boolean;\n}\n\ntype TicketDataProps = {\n className?: string;\n \"data-testid\"?: string;\n [attribute: `data-${string}`]: string | boolean | undefined;\n};\n\ntype TicketPartProps = HTMLAttributes<HTMLDivElement> & TicketDataProps;\n\nexport interface IPropertyListCellProps extends TicketPartProps {\n /** An icon button at the right edge of the cell, after a line. */\n aside?: ReactNode;\n /** Attributes of the box of the aside, such as a test id. */\n asideProps?: TicketPartProps;\n children?: ReactNode;\n}\n\n/** A cell of a ticket grid with its own attributes and an aside. Put it as a direct child of a ticket PropertyList. */\nexport const PropertyListCell = ({ children }: IPropertyListCellProps) => (\n <>{children}</>\n);\n\nPropertyListCell.displayName = \"PropertyListCell\";\n\nconst keyOf = (part: ReactNode, index: number) =>\n (part as ReactElement).key ?? index;\n\nconst renderCell = (part: ReactNode) => {\n if (!isValidElement(part) || part.type !== PropertyListCell) {\n return (\n <StyledPropertyListCell className=\"c-property-list__cell\">\n {part}\n </StyledPropertyListCell>\n );\n }\n\n const { aside, asideProps, className, children, ...cellProps } =\n part.props as IPropertyListCellProps;\n const hasAside = aside !== undefined && aside !== null;\n\n return (\n <StyledPropertyListCell\n {...cellProps}\n className={classnames(\"c-property-list__cell\", className)}\n >\n {hasAside ? (\n <StyledPropertyListCellSplit>\n <StyledPropertyListCellMain>{children}</StyledPropertyListCellMain>\n <StyledPropertyListCellAside\n {...asideProps}\n className={classnames(\n \"c-property-list__aside\",\n asideProps?.className\n )}\n >\n {aside}\n </StyledPropertyListCellAside>\n </StyledPropertyListCellSplit>\n ) : (\n children\n )}\n </StyledPropertyListCell>\n );\n};\n\nexport const PropertyList = forwardRef<HTMLDivElement, IPropertyListProps>(\n (\n {\n density = \"form\",\n disabled = false,\n layout,\n cells = \"grid\",\n header,\n footer,\n cellsProps,\n footerProps,\n tearProps,\n perforationProps,\n solid = false,\n roomy = false,\n notches = true,\n className,\n children,\n ...rest\n },\n ref\n ) => {\n const contextLayout = usePropertyListLayout();\n const current = layout ?? contextLayout;\n const isTicket = current === \"ticket\";\n const parts = Children.toArray(children).filter(Boolean);\n\n useContainerCss(\"c-property-list-container\", CONTAINER_CSS);\n\n const ticket = (\n <>\n {header ? (\n <>\n {header}\n <TicketPerforation\n {...perforationProps}\n notches={notches}\n line={cells === \"row\" ? \"primary\" : \"raised\"}\n />\n </>\n ) : null}\n <StyledPropertyListCells\n {...cellsProps}\n $cells={cells}\n className={classnames(\n \"c-property-list__cells\",\n `c-property-list__cells--${cells}`,\n cellsProps?.className\n )}\n >\n {cells === \"grid\"\n ? parts.map((part, index) => (\n <Fragment key={keyOf(part, index)}>\n {renderCell(part)}\n {index < parts.length - 1 ? (\n <StyledPropertyListTear\n {...tearProps}\n className={classnames(\n \"c-property-list__tear\",\n tearProps?.className\n )}\n >\n <TicketPerforation\n {...perforationProps}\n notches={notches}\n line=\"raised\"\n />\n </StyledPropertyListTear>\n ) : null}\n </Fragment>\n ))\n : parts}\n </StyledPropertyListCells>\n {footer ? (\n <>\n <StyledPropertyListFooterTear aria-hidden=\"true\">\n <TicketPerforation\n {...perforationProps}\n notches={notches}\n line=\"raised\"\n />\n </StyledPropertyListFooterTear>\n <StyledPropertyListFooter\n {...footerProps}\n className={classnames(\n \"c-property-list__footer\",\n footerProps?.className\n )}\n >\n <PropertyList layout=\"stacked\" density=\"page\" disabled={disabled}>\n {footer}\n </PropertyList>\n </StyledPropertyListFooter>\n </>\n ) : null}\n </>\n );\n\n return (\n <LayoutContext.Provider value={current}>\n <DensityContext.Provider value={density}>\n <DisabledContext.Provider value={disabled}>\n <StyledPropertyList\n {...rest}\n ref={ref}\n variant=\"raised\"\n radius={isTicket ? (cells === \"row\" ? 24 : 12) : 20}\n shadow={isTicket || density === \"page\"}\n $disabled={disabled}\n $ticket={isTicket ? cells : undefined}\n $solid={solid}\n $roomy={roomy}\n aria-disabled={disabled || undefined}\n className={classnames(\n \"c-property-list\",\n { \"c-property-list--ticket\": isTicket },\n className\n )}\n >\n {isTicket\n ? ticket\n : parts.map((part, index) => (\n <Fragment key={keyOf(part, index)}>\n {index > 0 ? <PropertyListDivider /> : null}\n {part}\n </Fragment>\n ))}\n </StyledPropertyList>\n </DisabledContext.Provider>\n </DensityContext.Provider>\n </LayoutContext.Provider>\n );\n }\n);\n\nPropertyList.displayName = \"PropertyList\";\n\nexport interface IPropertyListValueProps {\n /** A row with no value shows its text in the placeholder color. */\n placeholder?: boolean;\n className?: string;\n children?: ReactNode;\n}\n\nexport const PropertyListValue = ({\n placeholder = false,\n className,\n children,\n}: IPropertyListValueProps) => {\n const density = usePropertyListDensity();\n\n if (usePropertyListLayout() === \"ticket\") {\n return (\n <StyledPropertyListTicketValue\n $placeholder={placeholder}\n className={classnames(\"c-property-list__value\", className)}\n data-placeholder={placeholder || undefined}\n >\n {children}\n </StyledPropertyListTicketValue>\n );\n }\n\n return (\n <StyledPropertyListValue\n forwardedAs=\"span\"\n color={placeholder ? \"quaternary\" : undefined}\n $density={density}\n $placeholder={placeholder}\n className={classnames(\"c-property-list__value\", className)}\n data-placeholder={placeholder || undefined}\n >\n {children}\n </StyledPropertyListValue>\n );\n};\n\n/** The \"Add\" of a row: a placeholder with a plus where another row has its chevron. */\nexport const PropertyListAdd = ({ children }: { children?: ReactNode }) => (\n <>\n <PropertyListValue placeholder>{children}</PropertyListValue>\n {usePropertyListLayout() === \"ticket\" ? (\n <StyledPropertyListTicketAddIcon />\n ) : (\n <StyledPropertyListAddIcon>\n <AddCrossTinyIcon />\n </StyledPropertyListAddIcon>\n )}\n </>\n);\n\nexport interface IPropertyListLabelProps {\n icon?: ReactNode;\n label?: ReactNode;\n}\n\nexport const PropertyListLabel = ({ icon, label }: IPropertyListLabelProps) => {\n const density = usePropertyListDensity();\n const layout = usePropertyListLayout();\n\n if (layout === \"table\") {\n return (\n <StyledPropertyListTableLabel className=\"c-property-list__label\">\n <StyledPropertyListIcon $size={16} $scale>\n {icon}\n </StyledPropertyListIcon>\n <StyledPropertyListLabelText\n forwardedAs=\"span\"\n weight=\"medium\"\n $layout={layout}\n $density={density}\n >\n {label}\n </StyledPropertyListLabelText>\n </StyledPropertyListTableLabel>\n );\n }\n\n return (\n <>\n <StyledPropertyListIcon\n $size={density === \"page\" ? 28 : 24}\n $scale={false}\n >\n {icon}\n </StyledPropertyListIcon>\n <StyledPropertyListLabelText\n forwardedAs=\"span\"\n weight=\"medium\"\n $layout={layout}\n $density={density}\n className=\"c-property-list__label\"\n >\n {label}\n </StyledPropertyListLabelText>\n </>\n );\n};\n\nexport interface IPropertyListRowProps\n extends Omit<HTMLAttributes<HTMLElement>, \"children\"> {\n icon?: ReactNode;\n label?: ReactNode;\n value?: ReactNode;\n /** A control before the chevron. */\n action?: ReactNode;\n tone?: PropertyListTone;\n /** A read only row is plain text. A row that can change is one button. */\n readOnly?: boolean;\n chevron?: boolean;\n /** Dimmed, with no click and no focus. A disabled list disables its rows. */\n disabled?: boolean;\n /** Ticket only: the value is a row of parts, such as avatars and a text, with the 24px height of an avatar. Set to false for one line of text. */\n parts?: boolean;\n /** Ticket grid only: an icon button at the right edge of the cell, after a line. */\n aside?: ReactNode;\n /** Ticket only: the parts of the value may wrap to more lines. */\n wrap?: boolean;\n /** Ticket only: a third line under the value. */\n footer?: ReactNode;\n /** Ticket only: attributes of the label, such as a data attribute. */\n labelProps?: TicketDataProps;\n /** Ticket only: attributes of the caret, such as a test id. */\n caretProps?: TicketDataProps;\n /** Replaces the label, the value and the action. In a ticket it replaces only the value and the action. */\n children?: ReactNode;\n}\n\nexport const PropertyListRow = forwardRef<HTMLElement, IPropertyListRowProps>(\n (\n {\n icon,\n label,\n value,\n action,\n tone = \"regular\",\n readOnly = false,\n chevron = true,\n disabled = false,\n parts = true,\n aside,\n wrap = false,\n footer,\n labelProps,\n caretProps,\n className,\n children,\n ...rest\n },\n ref\n ) => {\n const isDisabled = usePropertyListDisabled() || disabled;\n const density = usePropertyListDensity();\n const layout = usePropertyListLayout();\n\n if (layout === \"ticket\") {\n const cell = (\n <StyledPropertyListRow\n {...rest}\n as={readOnly ? \"div\" : \"button\"}\n ref={ref as Ref<HTMLDivElement>}\n {...(readOnly\n ? { \"aria-disabled\": isDisabled || undefined }\n : { type: \"button\", disabled: isDisabled })}\n $disabled={isDisabled}\n $layout={layout}\n $density={density}\n $tone={tone}\n $clickable={!readOnly}\n className={classnames(\"c-property-list__row\", className)}\n >\n <StyledPropertyListTicketLabel\n {...labelProps}\n forwardedAs=\"span\"\n $tone={tone}\n className={classnames(\n \"c-property-list__label\",\n labelProps?.className\n )}\n >\n {label}\n </StyledPropertyListTicketLabel>\n <StyledPropertyListTicketLine $parts={parts}>\n <StyledPropertyListTicketText\n forwardedAs=\"span\"\n weight=\"medium\"\n $parts={parts}\n $wrap={wrap}\n $tone={tone}\n >\n {children ?? (\n <>\n {value}\n {action}\n </>\n )}\n </StyledPropertyListTicketText>\n {!readOnly && chevron ? (\n <StyledPropertyListTicketCaret\n {...caretProps}\n aria-hidden=\"true\"\n />\n ) : null}\n </StyledPropertyListTicketLine>\n {footer}\n </StyledPropertyListRow>\n );\n\n if (aside === undefined || aside === null) {\n return cell;\n }\n\n return (\n <StyledPropertyListCellSplit>\n <StyledPropertyListCellMain>{cell}</StyledPropertyListCellMain>\n <StyledPropertyListCellAside className=\"c-property-list__aside\">\n {aside}\n </StyledPropertyListCellAside>\n </StyledPropertyListCellSplit>\n );\n }\n\n const caret =\n !readOnly && chevron ? (\n <StyledPropertyListChevron>\n <ArrowDownSmallIcon />\n </StyledPropertyListChevron>\n ) : null;\n\n return (\n <StyledPropertyListRow\n {...rest}\n as={readOnly ? \"div\" : \"button\"}\n ref={ref as Ref<HTMLDivElement>}\n {...(readOnly\n ? { \"aria-disabled\": isDisabled || undefined }\n : { type: \"button\", disabled: isDisabled })}\n $disabled={isDisabled}\n $layout={layout}\n $density={density}\n $tone={tone}\n $clickable={!readOnly}\n className={classnames(\"c-property-list__row\", className)}\n >\n {children ??\n (layout === \"table\" ? (\n <>\n <PropertyListLabel icon={icon} label={label} />\n <StyledPropertyListTableValue>\n {value}\n </StyledPropertyListTableValue>\n <StyledPropertyListTableAction>\n {action}\n {caret}\n </StyledPropertyListTableAction>\n </>\n ) : (\n <>\n <PropertyListLabel icon={icon} label={label} />\n {value}\n {action}\n {caret}\n </>\n ))}\n </StyledPropertyListRow>\n );\n }\n);\n\nPropertyListRow.displayName = \"PropertyListRow\";\n\nexport interface IPropertyListToggleProps\n extends ButtonHTMLAttributes<HTMLButtonElement> {\n /** The rows that the toggle opens are on the screen. */\n expanded?: boolean;\n}\n\n/** The last row of a list: it opens and closes the rows with no value. */\nexport const PropertyListToggle = forwardRef<\n HTMLButtonElement,\n IPropertyListToggleProps\n>(({ expanded = false, disabled, className, children, ...rest }, ref) => {\n const isDisabled = usePropertyListDisabled() || disabled;\n\n return (\n <StyledPropertyListToggle\n type=\"button\"\n {...rest}\n disabled={isDisabled}\n ref={ref}\n aria-expanded={expanded}\n className={classnames(\"c-property-list__toggle\", className)}\n >\n {children}\n </StyledPropertyListToggle>\n );\n});\n\nPropertyListToggle.displayName = \"PropertyListToggle\";\n\nexport interface IPropertyListBranchProps\n extends HTMLAttributes<HTMLSpanElement> {\n /** \"middle\" continues the line to the next row of the branch. */\n position?: \"middle\" | \"last\";\n}\n\n/** The tree line before a row that belongs to the row above it. Its parent must be positioned. */\nexport const PropertyListBranch = ({\n position = \"last\",\n ...rest\n}: IPropertyListBranchProps) => (\n <>\n <StyledPropertyListBranch aria-hidden=\"true\" {...rest} />\n {position === \"middle\" ? (\n <StyledPropertyListBranchLine aria-hidden=\"true\" />\n ) : null}\n </>\n);\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAcA,IAAAC,WAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,OAAA,GAAAH,OAAA;AAmCA,IAAAI,gBAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,kBAAA,GAAAN,OAAA;AAAyD,IAAAO,SAAA;EAAAC,UAAA;EAAAC,UAAA;EAAAC,UAAA;EAAAC,UAAA;AAAA,SAAAT,uBAAAU,CAA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QAAQ;EAExD,oBACEjG,MAAA,CAAAgB,OAAA,CAAA2C,aAAA,CAACtD,OAAA,CAAAqM,wBAAwB,EAAAxK,QAAA;IACvB2C,IAAI,EAAC;EAAQ,GACToC,IAAI;IACRhB,QAAQ,EAAEoF,UAAW;IACrBxF,GAAG,EAAEA,GAAI;IACT,iBAAe4G,QAAS;IACxBxI,SAAS,EAAE,IAAAqB,mBAAU,EAAC,yBAAyB,EAAErB,SAAS;EAAE,IAE3DP,QACuB,CAAC;AAE/B,CAAC,CAAC;AAEF4I,kBAAkB,CAACjI,WAAW,GAAG,oBAAoB;AAQrD;AACO,IAAMsI,kBAAkB,GAAAzJ,OAAA,CAAAyJ,kBAAA,GAAG,SAArBA,kBAAkBA,CAAAC,KAAA;EAAA,IAAAC,cAAA,GAAAD,KAAA,CAC7BE,QAAQ;IAARA,QAAQ,GAAAD,cAAA,cAAG,MAAM,GAAAA,cAAA;IACd5F,IAAI,GAAAzE,wBAAA,CAAAoK,KAAA,EAAA/L,UAAA;EAAA,oBAEPb,MAAA,CAAAgB,OAAA,CAAA2C,aAAA,CAAA3D,MAAA,CAAAgB,OAAA,CAAAoD,QAAA,qBACEpE,MAAA,CAAAgB,OAAA,CAAA2C,aAAA,CAACtD,OAAA,CAAA0M,wBAAwB,EAAA7K,QAAA;IAAC,eAAY;EAAM,GAAK+E,IAAI,CAAG,CAAC,EACxD6F,QAAQ,KAAK,QAAQ,gBACpB9M,MAAA,CAAAgB,OAAA,CAAA2C,aAAA,CAACtD,OAAA,CAAA2M,4BAA4B;IAAC,eAAY;EAAM,CAAE,CAAC,GACjD,IACJ,CAAC;AAAA,CACJ","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"PropertyList.js","names":["_react","_interopRequireWildcard","require","_classnames","_interopRequireDefault","_Styles","_useContainerCss","_Icons","_TicketPerforation","_excluded","_excluded2","_excluded3","_excluded4","_excluded5","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_extends","assign","bind","arguments","length","apply","_objectWithoutProperties","_objectWithoutPropertiesLoose","getOwnPropertySymbols","indexOf","propertyIsEnumerable","DensityContext","createContext","LayoutContext","DisabledContext","usePropertyListDensity","exports","useContext","usePropertyListLayout","usePropertyListDisabled","PropertyListLayout","_ref","_ref$value","value","children","createElement","Provider","PropertyListDivider","StyledPropertyListDivider","$layout","$density","className","PropertyListCell","_ref2","Fragment","displayName","keyOf","part","index","_key","key","renderCell","isValidElement","type","StyledPropertyListCell","_ref3","props","aside","asideProps","cellProps","hasAside","undefined","classnames","StyledPropertyListCellSplit","StyledPropertyListCellMain","StyledPropertyListCellAside","PropertyList","forwardRef","_ref4","ref","_ref4$density","density","_ref4$disabled","disabled","layout","_ref4$cells","cells","header","footer","cellsProps","footerProps","tearProps","perforationProps","_ref4$solid","solid","_ref4$roomy","roomy","_ref4$notches","notches","rest","contextLayout","current","isTicket","parts","Children","toArray","filter","Boolean","useContainerCss","CONTAINER_CSS","ticket","TicketPerforation","line","StyledPropertyListCells","$cells","concat","map","StyledPropertyListTear","StyledPropertyListFooterTear","StyledPropertyListFooter","StyledPropertyList","variant","radius","shadow","$disabled","$ticket","$solid","$roomy","PropertyListValue","_ref5","_ref5$placeholder","placeholder","StyledPropertyListTicketValue","$placeholder","StyledPropertyListValue","forwardedAs","color","PropertyListAdd","_ref6","StyledPropertyListTicketAddIcon","StyledPropertyListAddIcon","AddCrossTinyIcon","PropertyListLabel","_ref7","icon","label","StyledPropertyListIcon","$size","$scale","$muted","StyledPropertyListTicketLabel","$tone","StyledPropertyListTableLabel","StyledPropertyListLabelText","weight","PropertyListRow","_ref8","action","_ref8$tone","tone","_ref8$readOnly","readOnly","_ref8$chevron","chevron","_ref8$disabled","_ref8$parts","_ref8$wrap","wrap","labelProps","caretProps","isDisabled","cell","StyledPropertyListRow","as","$clickable","StyledPropertyListTicketLine","$parts","StyledPropertyListTicketText","$wrap","StyledPropertyListTicketCaret","caret","StyledPropertyListChevron","ArrowDownSmallIcon","StyledPropertyListTableValue","StyledPropertyListTableAction","PropertyListToggle","_ref9","_ref9$expanded","expanded","StyledPropertyListToggle","PropertyListBranch","_ref0","_ref0$position","position","StyledPropertyListBranch","StyledPropertyListBranchLine"],"sources":["../../../../src/components/PropertyList/PropertyList.tsx"],"sourcesContent":["import React, {\n ButtonHTMLAttributes,\n Children,\n Fragment,\n HTMLAttributes,\n ReactElement,\n ReactNode,\n Ref,\n createContext,\n forwardRef,\n isValidElement,\n useContext,\n} from \"react\";\n\nimport classnames from \"classnames\";\n\nimport {\n CONTAINER_CSS,\n PropertyListCells,\n PropertyListDensity,\n PropertyListLayoutName,\n PropertyListTone,\n StyledPropertyList,\n StyledPropertyListAddIcon,\n StyledPropertyListBranch,\n StyledPropertyListBranchLine,\n StyledPropertyListCell,\n StyledPropertyListCellAside,\n StyledPropertyListCellMain,\n StyledPropertyListCells,\n StyledPropertyListCellSplit,\n StyledPropertyListChevron,\n StyledPropertyListDivider,\n StyledPropertyListIcon,\n StyledPropertyListLabelText,\n StyledPropertyListRow,\n StyledPropertyListTableAction,\n StyledPropertyListTableLabel,\n StyledPropertyListTableValue,\n StyledPropertyListFooter,\n StyledPropertyListFooterTear,\n StyledPropertyListTear,\n StyledPropertyListTicketAddIcon,\n StyledPropertyListTicketCaret,\n StyledPropertyListTicketLabel,\n StyledPropertyListTicketLine,\n StyledPropertyListTicketText,\n StyledPropertyListTicketValue,\n StyledPropertyListToggle,\n StyledPropertyListValue,\n} from \"./Styles\";\nimport { useContainerCss } from \"../../utils/useContainerCss\";\nimport { AddCrossTinyIcon, ArrowDownSmallIcon } from \"../Icons\";\nimport { TicketPerforation } from \"../TicketPerforation\";\n\nconst DensityContext = createContext<PropertyListDensity>(\"form\");\nconst LayoutContext = createContext<PropertyListLayoutName>(\"stacked\");\nconst DisabledContext = createContext(false);\n\nexport const usePropertyListDensity = () => useContext(DensityContext);\nexport const usePropertyListLayout = () => useContext(LayoutContext);\nexport const usePropertyListDisabled = () => useContext(DisabledContext);\n\n/** Sets the layout of the rows below it: one line each, the three columns of a table, or the cells of a ticket. */\nexport const PropertyListLayout = ({\n value = \"stacked\",\n children,\n}: {\n value?: PropertyListLayoutName;\n children?: ReactNode;\n}) => <LayoutContext.Provider value={value}>{children}</LayoutContext.Provider>;\n\n/** The line between two rows. In a stacked list it starts where the label text starts. */\nexport const PropertyListDivider = () => (\n <StyledPropertyListDivider\n aria-hidden=\"true\"\n $layout={usePropertyListLayout()}\n $density={usePropertyListDensity()}\n className=\"c-property-list__divider\"\n />\n);\n\nexport interface IPropertyListProps extends HTMLAttributes<HTMLDivElement> {\n /** \"form\" for a compact list in a form, \"page\" for a list on a page, with a shadow. */\n density?: PropertyListDensity;\n /** Every row of the list is dimmed and takes no click and no focus. */\n disabled?: boolean;\n /** The layout of the rows. Without it the list takes the layout of the PropertyListLayout around it. \"ticket\" makes each row a cell: a small label over its value. */\n layout?: PropertyListLayoutName;\n /** Ticket only: \"grid\" puts the cells in two, three or four columns by the card width, \"row\" in one row that wraps. */\n cells?: PropertyListCells;\n /** Ticket only: a part over the cells, with a tear line under it. */\n header?: ReactNode;\n /** Ticket only: rows of the page density under the cells, after a tear line, to the edges of the card. */\n footer?: ReactNode;\n /** Ticket only: attributes of the box of the cells, such as a test id. */\n cellsProps?: TicketPartProps;\n /** Ticket only: attributes of the box of the footer, such as a test id. */\n footerProps?: TicketPartProps;\n /** Ticket grid only: attributes of each tear line between the cells. */\n tearProps?: TicketPartProps;\n /** Ticket only: attributes of every perforation of the ticket. */\n perforationProps?: TicketPartProps;\n /** In a flat ObjectLayout the card keeps the raised color of the theme. */\n solid?: boolean;\n /** Each row is 8px taller. */\n roomy?: boolean;\n /** Ticket only: false leaves the tear lines with no notches. */\n notches?: boolean;\n}\n\ntype TicketDataProps = {\n className?: string;\n \"data-testid\"?: string;\n [attribute: `data-${string}`]: string | boolean | undefined;\n};\n\ntype TicketPartProps = HTMLAttributes<HTMLDivElement> & TicketDataProps;\n\nexport interface IPropertyListCellProps extends TicketPartProps {\n /** An icon button at the right edge of the cell, after a line. */\n aside?: ReactNode;\n /** Attributes of the box of the aside, such as a test id. */\n asideProps?: TicketPartProps;\n children?: ReactNode;\n}\n\n/** A cell of a ticket grid with its own attributes and an aside. Put it as a direct child of a ticket PropertyList. */\nexport const PropertyListCell = ({ children }: IPropertyListCellProps) => (\n <>{children}</>\n);\n\nPropertyListCell.displayName = \"PropertyListCell\";\n\nconst keyOf = (part: ReactNode, index: number) =>\n (part as ReactElement).key ?? index;\n\nconst renderCell = (part: ReactNode) => {\n if (!isValidElement(part) || part.type !== PropertyListCell) {\n return (\n <StyledPropertyListCell className=\"c-property-list__cell\">\n {part}\n </StyledPropertyListCell>\n );\n }\n\n const { aside, asideProps, className, children, ...cellProps } =\n part.props as IPropertyListCellProps;\n const hasAside = aside !== undefined && aside !== null;\n\n return (\n <StyledPropertyListCell\n {...cellProps}\n className={classnames(\"c-property-list__cell\", className)}\n >\n {hasAside ? (\n <StyledPropertyListCellSplit>\n <StyledPropertyListCellMain>{children}</StyledPropertyListCellMain>\n <StyledPropertyListCellAside\n {...asideProps}\n className={classnames(\n \"c-property-list__aside\",\n asideProps?.className\n )}\n >\n {aside}\n </StyledPropertyListCellAside>\n </StyledPropertyListCellSplit>\n ) : (\n children\n )}\n </StyledPropertyListCell>\n );\n};\n\nexport const PropertyList = forwardRef<HTMLDivElement, IPropertyListProps>(\n (\n {\n density = \"form\",\n disabled = false,\n layout,\n cells = \"grid\",\n header,\n footer,\n cellsProps,\n footerProps,\n tearProps,\n perforationProps,\n solid = false,\n roomy = false,\n notches = true,\n className,\n children,\n ...rest\n },\n ref\n ) => {\n const contextLayout = usePropertyListLayout();\n const current = layout ?? contextLayout;\n const isTicket = current === \"ticket\";\n const parts = Children.toArray(children).filter(Boolean);\n\n useContainerCss(\"c-property-list-container\", CONTAINER_CSS);\n\n const ticket = (\n <>\n {header ? (\n <>\n {header}\n <TicketPerforation\n {...perforationProps}\n notches={notches}\n line={cells === \"row\" ? \"primary\" : \"raised\"}\n />\n </>\n ) : null}\n <StyledPropertyListCells\n {...cellsProps}\n $cells={cells}\n className={classnames(\n \"c-property-list__cells\",\n `c-property-list__cells--${cells}`,\n cellsProps?.className\n )}\n >\n {cells === \"grid\"\n ? parts.map((part, index) => (\n <Fragment key={keyOf(part, index)}>\n {renderCell(part)}\n {index < parts.length - 1 ? (\n <StyledPropertyListTear\n {...tearProps}\n className={classnames(\n \"c-property-list__tear\",\n tearProps?.className\n )}\n >\n <TicketPerforation\n {...perforationProps}\n notches={notches}\n line=\"raised\"\n />\n </StyledPropertyListTear>\n ) : null}\n </Fragment>\n ))\n : parts}\n </StyledPropertyListCells>\n {footer ? (\n <>\n <StyledPropertyListFooterTear aria-hidden=\"true\">\n <TicketPerforation\n {...perforationProps}\n notches={notches}\n line=\"raised\"\n />\n </StyledPropertyListFooterTear>\n <StyledPropertyListFooter\n {...footerProps}\n className={classnames(\n \"c-property-list__footer\",\n footerProps?.className\n )}\n >\n <PropertyList layout=\"stacked\" density=\"page\" disabled={disabled}>\n {footer}\n </PropertyList>\n </StyledPropertyListFooter>\n </>\n ) : null}\n </>\n );\n\n return (\n <LayoutContext.Provider value={current}>\n <DensityContext.Provider value={density}>\n <DisabledContext.Provider value={disabled}>\n <StyledPropertyList\n {...rest}\n ref={ref}\n variant=\"raised\"\n radius={isTicket ? (cells === \"row\" ? 24 : 12) : 20}\n shadow={isTicket || density === \"page\"}\n $disabled={disabled}\n $ticket={isTicket ? cells : undefined}\n $solid={solid}\n $roomy={roomy}\n aria-disabled={disabled || undefined}\n className={classnames(\n \"c-property-list\",\n { \"c-property-list--ticket\": isTicket },\n className\n )}\n >\n {isTicket\n ? ticket\n : parts.map((part, index) => (\n <Fragment key={keyOf(part, index)}>\n {index > 0 ? <PropertyListDivider /> : null}\n {part}\n </Fragment>\n ))}\n </StyledPropertyList>\n </DisabledContext.Provider>\n </DensityContext.Provider>\n </LayoutContext.Provider>\n );\n }\n);\n\nPropertyList.displayName = \"PropertyList\";\n\nexport interface IPropertyListValueProps {\n /** A row with no value shows its text in the placeholder color. */\n placeholder?: boolean;\n className?: string;\n children?: ReactNode;\n}\n\nexport const PropertyListValue = ({\n placeholder = false,\n className,\n children,\n}: IPropertyListValueProps) => {\n const density = usePropertyListDensity();\n\n if (usePropertyListLayout() === \"ticket\") {\n return (\n <StyledPropertyListTicketValue\n $placeholder={placeholder}\n className={classnames(\"c-property-list__value\", className)}\n data-placeholder={placeholder || undefined}\n >\n {children}\n </StyledPropertyListTicketValue>\n );\n }\n\n return (\n <StyledPropertyListValue\n forwardedAs=\"span\"\n color={placeholder ? \"quaternary\" : undefined}\n $density={density}\n $placeholder={placeholder}\n className={classnames(\"c-property-list__value\", className)}\n data-placeholder={placeholder || undefined}\n >\n {children}\n </StyledPropertyListValue>\n );\n};\n\n/** The \"Add\" of a row: a placeholder with a plus where another row has its chevron. */\nexport const PropertyListAdd = ({ children }: { children?: ReactNode }) => (\n <>\n <PropertyListValue placeholder>{children}</PropertyListValue>\n {usePropertyListLayout() === \"ticket\" ? (\n <StyledPropertyListTicketAddIcon />\n ) : (\n <StyledPropertyListAddIcon>\n <AddCrossTinyIcon />\n </StyledPropertyListAddIcon>\n )}\n </>\n);\n\nexport interface IPropertyListLabelProps {\n icon?: ReactNode;\n label?: ReactNode;\n}\n\nexport const PropertyListLabel = ({ icon, label }: IPropertyListLabelProps) => {\n const density = usePropertyListDensity();\n const layout = usePropertyListLayout();\n\n if (layout === \"ticket\") {\n return (\n <>\n {icon ? (\n <StyledPropertyListIcon $size={20} $scale $muted>\n {icon}\n </StyledPropertyListIcon>\n ) : null}\n <StyledPropertyListTicketLabel\n forwardedAs=\"span\"\n $tone=\"regular\"\n className=\"c-property-list__label\"\n >\n {label}\n </StyledPropertyListTicketLabel>\n </>\n );\n }\n\n if (layout === \"table\") {\n return (\n <StyledPropertyListTableLabel className=\"c-property-list__label\">\n <StyledPropertyListIcon $size={16} $scale>\n {icon}\n </StyledPropertyListIcon>\n <StyledPropertyListLabelText\n forwardedAs=\"span\"\n weight=\"medium\"\n $layout={layout}\n $density={density}\n >\n {label}\n </StyledPropertyListLabelText>\n </StyledPropertyListTableLabel>\n );\n }\n\n return (\n <>\n <StyledPropertyListIcon\n $size={density === \"page\" ? 28 : 24}\n $scale={false}\n >\n {icon}\n </StyledPropertyListIcon>\n <StyledPropertyListLabelText\n forwardedAs=\"span\"\n weight=\"medium\"\n $layout={layout}\n $density={density}\n className=\"c-property-list__label\"\n >\n {label}\n </StyledPropertyListLabelText>\n </>\n );\n};\n\nexport interface IPropertyListRowProps\n extends Omit<HTMLAttributes<HTMLElement>, \"children\"> {\n icon?: ReactNode;\n label?: ReactNode;\n value?: ReactNode;\n /** A control before the chevron. */\n action?: ReactNode;\n tone?: PropertyListTone;\n /** A read only row is plain text. A row that can change is one button. */\n readOnly?: boolean;\n chevron?: boolean;\n /** Dimmed, with no click and no focus. A disabled list disables its rows. */\n disabled?: boolean;\n /** Ticket only: the value is a row of parts, such as avatars and a text, with the 24px height of an avatar. Set to false for one line of text. */\n parts?: boolean;\n /** Ticket grid only: an icon button at the right edge of the cell, after a line. */\n aside?: ReactNode;\n /** Ticket only: the parts of the value may wrap to more lines. */\n wrap?: boolean;\n /** Ticket only: a third line under the value. */\n footer?: ReactNode;\n /** Ticket only: attributes of the label, such as a data attribute. */\n labelProps?: TicketDataProps;\n /** Ticket only: attributes of the caret, such as a test id. */\n caretProps?: TicketDataProps;\n /** Replaces the label, the value and the action. In a ticket it replaces only the value and the action. */\n children?: ReactNode;\n}\n\nexport const PropertyListRow = forwardRef<HTMLElement, IPropertyListRowProps>(\n (\n {\n icon,\n label,\n value,\n action,\n tone = \"regular\",\n readOnly = false,\n chevron = true,\n disabled = false,\n parts = true,\n aside,\n wrap = false,\n footer,\n labelProps,\n caretProps,\n className,\n children,\n ...rest\n },\n ref\n ) => {\n const isDisabled = usePropertyListDisabled() || disabled;\n const density = usePropertyListDensity();\n const layout = usePropertyListLayout();\n\n if (layout === \"ticket\") {\n const cell = (\n <StyledPropertyListRow\n {...rest}\n as={readOnly ? \"div\" : \"button\"}\n ref={ref as Ref<HTMLDivElement>}\n {...(readOnly\n ? { \"aria-disabled\": isDisabled || undefined }\n : { type: \"button\", disabled: isDisabled })}\n $disabled={isDisabled}\n $layout={layout}\n $density={density}\n $tone={tone}\n $clickable={!readOnly}\n className={classnames(\"c-property-list__row\", className)}\n >\n <StyledPropertyListTicketLabel\n {...labelProps}\n forwardedAs=\"span\"\n $tone={tone}\n className={classnames(\n \"c-property-list__label\",\n labelProps?.className\n )}\n >\n {label}\n </StyledPropertyListTicketLabel>\n <StyledPropertyListTicketLine $parts={parts}>\n <StyledPropertyListTicketText\n forwardedAs=\"span\"\n weight=\"semibold\"\n $parts={parts}\n $wrap={wrap}\n $tone={tone}\n >\n {children ?? (\n <>\n {value}\n {action}\n </>\n )}\n </StyledPropertyListTicketText>\n {!readOnly && chevron ? (\n <StyledPropertyListTicketCaret\n {...caretProps}\n aria-hidden=\"true\"\n />\n ) : null}\n </StyledPropertyListTicketLine>\n {footer}\n </StyledPropertyListRow>\n );\n\n if (aside === undefined || aside === null) {\n return cell;\n }\n\n return (\n <StyledPropertyListCellSplit>\n <StyledPropertyListCellMain>{cell}</StyledPropertyListCellMain>\n <StyledPropertyListCellAside className=\"c-property-list__aside\">\n {aside}\n </StyledPropertyListCellAside>\n </StyledPropertyListCellSplit>\n );\n }\n\n const caret =\n !readOnly && chevron ? (\n <StyledPropertyListChevron>\n <ArrowDownSmallIcon />\n </StyledPropertyListChevron>\n ) : null;\n\n return (\n <StyledPropertyListRow\n {...rest}\n as={readOnly ? \"div\" : \"button\"}\n ref={ref as Ref<HTMLDivElement>}\n {...(readOnly\n ? { \"aria-disabled\": isDisabled || undefined }\n : { type: \"button\", disabled: isDisabled })}\n $disabled={isDisabled}\n $layout={layout}\n $density={density}\n $tone={tone}\n $clickable={!readOnly}\n className={classnames(\"c-property-list__row\", className)}\n >\n {children ??\n (layout === \"table\" ? (\n <>\n <PropertyListLabel icon={icon} label={label} />\n <StyledPropertyListTableValue>\n {value}\n </StyledPropertyListTableValue>\n <StyledPropertyListTableAction>\n {action}\n {caret}\n </StyledPropertyListTableAction>\n </>\n ) : (\n <>\n <PropertyListLabel icon={icon} label={label} />\n {value}\n {action}\n {caret}\n </>\n ))}\n </StyledPropertyListRow>\n );\n }\n);\n\nPropertyListRow.displayName = \"PropertyListRow\";\n\nexport interface IPropertyListToggleProps\n extends ButtonHTMLAttributes<HTMLButtonElement> {\n /** The rows that the toggle opens are on the screen. */\n expanded?: boolean;\n}\n\n/** The last row of a list: it opens and closes the rows with no value. */\nexport const PropertyListToggle = forwardRef<\n HTMLButtonElement,\n IPropertyListToggleProps\n>(({ expanded = false, disabled, className, children, ...rest }, ref) => {\n const isDisabled = usePropertyListDisabled() || disabled;\n\n return (\n <StyledPropertyListToggle\n type=\"button\"\n {...rest}\n disabled={isDisabled}\n ref={ref}\n aria-expanded={expanded}\n className={classnames(\"c-property-list__toggle\", className)}\n >\n {children}\n </StyledPropertyListToggle>\n );\n});\n\nPropertyListToggle.displayName = \"PropertyListToggle\";\n\nexport interface IPropertyListBranchProps\n extends HTMLAttributes<HTMLSpanElement> {\n /** \"middle\" continues the line to the next row of the branch. */\n position?: \"middle\" | \"last\";\n}\n\n/** The tree line before a row that belongs to the row above it. Its parent must be positioned. */\nexport const PropertyListBranch = ({\n position = \"last\",\n ...rest\n}: IPropertyListBranchProps) => (\n <>\n <StyledPropertyListBranch aria-hidden=\"true\" {...rest} />\n {position === \"middle\" ? (\n <StyledPropertyListBranchLine aria-hidden=\"true\" />\n ) : null}\n </>\n);\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAcA,IAAAC,WAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,OAAA,GAAAH,OAAA;AAmCA,IAAAI,gBAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAA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CAAAqK,KAAA,EAAAhM,UAAA;EAAA,oBAEPb,MAAA,CAAAgB,OAAA,CAAA2C,aAAA,CAAA3D,MAAA,CAAAgB,OAAA,CAAAoD,QAAA,qBACEpE,MAAA,CAAAgB,OAAA,CAAA2C,aAAA,CAACtD,OAAA,CAAA2M,wBAAwB,EAAA9K,QAAA;IAAC,eAAY;EAAM,GAAK+E,IAAI,CAAG,CAAC,EACxD8F,QAAQ,KAAK,QAAQ,gBACpB/M,MAAA,CAAAgB,OAAA,CAAA2C,aAAA,CAACtD,OAAA,CAAA4M,4BAA4B;IAAC,eAAY;EAAM,CAAE,CAAC,GACjD,IACJ,CAAC;AAAA,CACJ","ignoreList":[]}
|
|
@@ -56,6 +56,8 @@ var PropertyListPopover = exports.PropertyListPopover = function PropertyListPop
|
|
|
56
56
|
fixedWidth = _ref.width,
|
|
57
57
|
_ref$followRow = _ref.followRow,
|
|
58
58
|
followRow = _ref$followRow === void 0 ? false : _ref$followRow,
|
|
59
|
+
_ref$openAtClick = _ref.openAtClick,
|
|
60
|
+
openAtClick = _ref$openAtClick === void 0 ? false : _ref$openAtClick,
|
|
59
61
|
className = _ref.className,
|
|
60
62
|
testId = _ref["data-testid"],
|
|
61
63
|
_ref$typeToFilter = _ref.typeToFilter,
|
|
@@ -72,6 +74,11 @@ var PropertyListPopover = exports.PropertyListPopover = function PropertyListPop
|
|
|
72
74
|
_useState2 = _slicedToArray(_useState, 2),
|
|
73
75
|
width = _useState2[0],
|
|
74
76
|
setWidth = _useState2[1];
|
|
77
|
+
var clickPoint = (0, _react.useRef)(null);
|
|
78
|
+
var _useState3 = (0, _react.useState)(null),
|
|
79
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
80
|
+
anchorPoint = _useState4[0],
|
|
81
|
+
setAnchorPoint = _useState4[1];
|
|
75
82
|
var handleRowRef = (0, _useForkRef.default)(row.ref, rowRef);
|
|
76
83
|
(0, _useContainerCss.useContainerCss)("".concat(POPOVER_CLASS, "-css"), POPOVER_CSS);
|
|
77
84
|
var measure = (0, _react.useCallback)(function () {
|
|
@@ -88,6 +95,8 @@ var PropertyListPopover = exports.PropertyListPopover = function PropertyListPop
|
|
|
88
95
|
var handleOpen = (0, _react.useCallback)(function () {
|
|
89
96
|
measure();
|
|
90
97
|
closedByEscape.current = false;
|
|
98
|
+
setAnchorPoint(clickPoint.current);
|
|
99
|
+
clickPoint.current = null;
|
|
91
100
|
onOpen();
|
|
92
101
|
}, [measure, onOpen]);
|
|
93
102
|
|
|
@@ -117,6 +126,15 @@ var PropertyListPopover = exports.PropertyListPopover = function PropertyListPop
|
|
|
117
126
|
return !onClickAway || closedByEscape.current || onClickAway() !== false;
|
|
118
127
|
}, [onClickAway]);
|
|
119
128
|
var rowProps = row.props;
|
|
129
|
+
var handleRowMouseDown = (0, _react.useCallback)(function (event) {
|
|
130
|
+
var _rowProps$onMouseDown, _rowRef$current;
|
|
131
|
+
(_rowProps$onMouseDown = rowProps.onMouseDown) === null || _rowProps$onMouseDown === void 0 || _rowProps$onMouseDown.call(rowProps, event);
|
|
132
|
+
var bottom = (_rowRef$current = rowRef.current) === null || _rowRef$current === void 0 ? void 0 : _rowRef$current.getBoundingClientRect().bottom;
|
|
133
|
+
clickPoint.current = bottom === undefined ? null : {
|
|
134
|
+
x: event.clientX,
|
|
135
|
+
y: bottom
|
|
136
|
+
};
|
|
137
|
+
}, [rowProps]);
|
|
120
138
|
var handleRowKeyDown = (0, _react.useCallback)(function (event) {
|
|
121
139
|
var _rowProps$onKeyDown, _contentNode$current;
|
|
122
140
|
(_rowProps$onKeyDown = rowProps.onKeyDown) === null || _rowProps$onKeyDown === void 0 || _rowProps$onKeyDown.call(rowProps, event);
|
|
@@ -160,12 +178,15 @@ var PropertyListPopover = exports.PropertyListPopover = function PropertyListPop
|
|
|
160
178
|
onClose: onClose,
|
|
161
179
|
position: isTable ? "bottom" : "bottom-start",
|
|
162
180
|
followTarget: followRow,
|
|
181
|
+
anchorPoint: openAtClick && open ? anchorPoint : null,
|
|
163
182
|
width: fixedWidth !== null && fixedWidth !== void 0 ? fixedWidth : width,
|
|
164
183
|
menuClassName: POPOVER_CLASS,
|
|
165
|
-
target: /*#__PURE__*/(0, _react.cloneElement)(row, _objectSpread({
|
|
184
|
+
target: /*#__PURE__*/(0, _react.cloneElement)(row, _objectSpread(_objectSpread({
|
|
166
185
|
ref: handleRowRef
|
|
167
186
|
}, typeToFilter ? {
|
|
168
187
|
onKeyDown: handleRowKeyDown
|
|
188
|
+
} : null), openAtClick ? {
|
|
189
|
+
onMouseDown: handleRowMouseDown
|
|
169
190
|
} : null))
|
|
170
191
|
}, open ? /*#__PURE__*/_react.default.createElement(_PopoverStyles.StyledPropertyListPopoverContent, {
|
|
171
192
|
ref: takeTypedText,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PropertyListPopover.js","names":["_react","_interopRequireWildcard","require","_classnames","_interopRequireDefault","_PopoverStyles","_PropertyList","_useContainerCss","_useForkRef","_Menu","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ownKeys","keys","getOwnPropertySymbols","filter","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","_toPropertyKey","value","configurable","writable","_toPrimitive","Symbol","toPrimitive","TypeError","String","Number","_slicedToArray","_arrayWithHoles","_iterableToArrayLimit","_unsupportedIterableToArray","_nonIterableRest","a","_arrayLikeToArray","toString","slice","constructor","name","Array","from","test","l","iterator","u","next","done","return","isArray","POPOVER_CLASS","POPOVER_CSS","concat","PROPERTY_LIST_POPOVER_WIDTH","exports","PROPERTY_LIST_POPOVER_TABLE_MIN_WIDTH","SEARCH_INPUT","typeInto","input","text","_Object$getOwnPropert","window","HTMLInputElement","prototype","dispatchEvent","Event","bubbles","focus","isCharacterKey","event","key","ctrlKey","metaKey","altKey","PropertyListPopover","_ref","row","open","onOpen","onClose","onClickAway","fixedWidth","width","_ref$followRow","followRow","className","testId","_ref$typeToFilter","typeToFilter","children","typedText","useRef","contentNode","layout","usePropertyListLayout","isTable","isTicket","rowRef","closedByEscape","_useState","useState","_useState2","setWidth","handleRowRef","useForkRef","ref","useContainerCss","measure","useCallback","node","current","card","closest","Math","max","offsetWidth","min","undefined","handleOpen","useEffect","markEscape","document","addEventListener","removeEventListener","handleBeforeClose","rowProps","props","handleRowKeyDown","_rowProps$onKeyDown","_contentNode$current","onKeyDown","defaultPrevented","preventDefault","querySelector","takeTypedText","handleKeyDown","createElement","Menu","onBeforeClose","position","followTarget","menuClassName","target","cloneElement","StyledPropertyListPopoverContent","role","classnames","FOOTER_LABELS","cancel","remove","PropertyListPopoverFooter","_ref2","onSet","onCancel","onRemove","_ref2$setDisabled","setDisabled","testIdPrefix","labels","testIdOf","MenuFooter","primary","label","onClick","disabled","secondary","tertiary"],"sources":["../../../../src/components/PropertyList/PropertyListPopover.tsx"],"sourcesContent":["import React, {\n cloneElement,\n KeyboardEvent,\n ReactElement,\n ReactNode,\n useCallback,\n useEffect,\n useRef,\n useState,\n} from \"react\";\n\nimport classnames from \"classnames\";\n\nimport { StyledPropertyListPopoverContent } from \"./PopoverStyles\";\nimport { usePropertyListLayout } from \"./PropertyList\";\nimport { useContainerCss } from \"../../utils/useContainerCss\";\nimport useForkRef from \"../../utils/useForkRef\";\nimport { Menu, MenuFooter } from \"../Menu\";\n\nconst POPOVER_CLASS = \"c-property-list-popover\";\nconst POPOVER_CSS = `.c-simple-menu__paper.${POPOVER_CLASS} { background-color: var(--surface-raised); }`;\n\n/** The width of a picker in the column of the task form. */\nexport const PROPERTY_LIST_POPOVER_WIDTH = 299;\n/** The least width of a picker in the table layout. */\nexport const PROPERTY_LIST_POPOVER_TABLE_MIN_WIDTH = 280;\n\nexport interface IPropertyListPopoverProps {\n /** The row that opens the popover, for example a PropertyListRow. */\n row: ReactElement;\n /** The popover is open. */\n open: boolean;\n /** A click on the row. */\n onOpen: () => void;\n /** Esc, a click outside or a click on the row while open. */\n onClose: () => void;\n /** A click outside, before the popover closes. Return false to keep it open, for a value that cannot be saved. Esc always closes. */\n onClickAway?: () => boolean | void;\n /** A fixed width in pixels. By default the popover is as wide as the row up to 299px, 299px in a ticket, and half the list (at least 280px) in a table. */\n width?: number;\n /** The popover follows its row when the row changes size while it is open, for a row that grows under itself. Off by default. */\n followRow?: boolean;\n /** A class on the content of the popover. */\n className?: string;\n /** The test id of the content. */\n \"data-testid\"?: string;\n /** A character typed on the focused row opens the popover and goes into the filter of its select. */\n typeToFilter?: boolean;\n /** The picker, and a PropertyListPopoverFooter under it. */\n children?: ReactNode;\n}\n\nconst SEARCH_INPUT = \"[class~=c-select] input\";\n\n// React reads the value of an input through its own setter, so a typed text goes in through the native one.\nconst typeInto = (input: HTMLInputElement, text: string) => {\n Object.getOwnPropertyDescriptor(\n window.HTMLInputElement.prototype,\n \"value\"\n )?.set?.call(input, text);\n input.dispatchEvent(new Event(\"input\", { bubbles: true }));\n input.focus();\n};\n\nconst isCharacterKey = (event: KeyboardEvent) =>\n event.key.length === 1 &&\n event.key !== \" \" &&\n !event.ctrlKey &&\n !event.metaKey &&\n !event.altKey;\n\n/** The popover of a rail picker: opens under the start of its row, on the raised surface. */\nexport const PropertyListPopover = ({\n row,\n open,\n onOpen,\n onClose,\n onClickAway,\n width: fixedWidth,\n followRow = false,\n className,\n \"data-testid\": testId,\n typeToFilter = false,\n children,\n}: IPropertyListPopoverProps) => {\n const typedText = useRef(\"\");\n const contentNode = useRef<HTMLDivElement | null>(null);\n const layout = usePropertyListLayout();\n const isTable = layout === \"table\";\n const isTicket = layout === \"ticket\";\n const rowRef = useRef<HTMLElement>(null);\n const closedByEscape = useRef(false);\n const [width, setWidth] = useState<number>();\n const handleRowRef = useForkRef(\n (row as ReactElement & { ref?: React.Ref<HTMLElement> }).ref,\n rowRef\n );\n\n useContainerCss(`${POPOVER_CLASS}-css`, POPOVER_CSS);\n\n const measure = useCallback(() => {\n const node = rowRef.current;\n const card = isTable\n ? node?.closest<HTMLElement>(\".c-property-list\")\n : null;\n\n if (card) {\n setWidth(\n Math.max(PROPERTY_LIST_POPOVER_TABLE_MIN_WIDTH, card.offsetWidth / 2)\n );\n } else if (isTicket) {\n setWidth(PROPERTY_LIST_POPOVER_WIDTH);\n } else {\n setWidth(\n node?.offsetWidth\n ? Math.min(node.offsetWidth, PROPERTY_LIST_POPOVER_WIDTH)\n : undefined\n );\n }\n }, [isTable, isTicket]);\n\n const handleOpen = useCallback(() => {\n measure();\n closedByEscape.current = false;\n onOpen();\n }, [measure, onOpen]);\n\n // A popover that a story or a parent opens has no click on the row, so it measures here.\n useEffect(() => {\n if (open && width === undefined) {\n measure();\n }\n }, [measure, open, width]);\n\n // The menu reports Esc and a click outside in the same way, so the key is seen here first.\n useEffect(() => {\n if (!open) {\n return undefined;\n }\n\n const markEscape = (event: globalThis.KeyboardEvent) => {\n if (event.key === \"Escape\") {\n closedByEscape.current = true;\n }\n };\n\n document.addEventListener(\"keydown\", markEscape, true);\n\n return () => document.removeEventListener(\"keydown\", markEscape, true);\n }, [open]);\n\n const handleBeforeClose = useCallback(\n () => !onClickAway || closedByEscape.current || onClickAway() !== false,\n [onClickAway]\n );\n\n const rowProps = row.props as {\n onKeyDown?: (event: KeyboardEvent<HTMLElement>) => void;\n };\n\n const handleRowKeyDown = useCallback(\n (event: KeyboardEvent<HTMLElement>) => {\n rowProps.onKeyDown?.(event);\n\n if (!typeToFilter || event.defaultPrevented || !isCharacterKey(event)) {\n return;\n }\n\n event.preventDefault();\n\n // A fast typist sends the next character before the focus leaves the row.\n const input =\n contentNode.current?.querySelector<HTMLInputElement>(SEARCH_INPUT);\n\n if (input) {\n typeInto(input, `${input.value}${event.key}`);\n\n return;\n }\n\n typedText.current += event.key;\n\n if (!open) {\n handleOpen();\n }\n },\n [handleOpen, open, rowProps, typeToFilter]\n );\n\n // The list is in the page when its wrapper gets its node, so the typed text can go into the filter there.\n const takeTypedText = useCallback((node: HTMLDivElement | null) => {\n contentNode.current = node;\n\n const input = typedText.current\n ? node?.querySelector<HTMLInputElement>(SEARCH_INPUT)\n : null;\n\n if (input) {\n typeInto(input, typedText.current);\n }\n\n if (node) {\n typedText.current = \"\";\n }\n }, []);\n\n const handleKeyDown = useCallback(\n (event: KeyboardEvent<HTMLDivElement>) => {\n if (event.key === \"Escape\") {\n onClose();\n }\n },\n [onClose]\n );\n\n return (\n <Menu\n open={open}\n onOpen={handleOpen}\n onBeforeClose={handleBeforeClose}\n onClose={onClose}\n position={isTable ? \"bottom\" : \"bottom-start\"}\n followTarget={followRow}\n width={fixedWidth ?? width}\n menuClassName={POPOVER_CLASS}\n target={cloneElement(row, {\n ref: handleRowRef,\n ...(typeToFilter ? { onKeyDown: handleRowKeyDown } : null),\n })}\n >\n {open ? (\n <StyledPropertyListPopoverContent\n ref={takeTypedText}\n role=\"presentation\"\n className={classnames(`${POPOVER_CLASS}__content`, className)}\n onKeyDown={handleKeyDown}\n data-testid={testId}\n >\n {children}\n </StyledPropertyListPopoverContent>\n ) : null}\n </Menu>\n );\n};\n\nexport interface IPropertyListPopoverFooterLabels {\n set: string;\n cancel: string;\n remove: string;\n}\n\nconst FOOTER_LABELS: IPropertyListPopoverFooterLabels = {\n set: \"Set\",\n cancel: \"Cancel\",\n remove: \"Remove\",\n};\n\nexport interface IPropertyListPopoverFooterProps {\n /** Saves the picked value. */\n onSet: () => void;\n /** Closes the popover without a change. */\n onCancel: () => void;\n /** Clears the value. Leave it out to hide the Remove button. */\n onRemove?: () => void;\n /** Disables the Set button. */\n setDisabled?: boolean;\n /** A prefix for the test ids of the buttons: \"<prefix>-set\", \"<prefix>-cancel\" and \"<prefix>-remove\". */\n testIdPrefix?: string;\n /** Texts of the buttons. */\n labels?: Partial<IPropertyListPopoverFooterLabels>;\n}\n\n/** The Set, Cancel and Remove buttons under a rail picker. */\nexport const PropertyListPopoverFooter = ({\n onSet,\n onCancel,\n onRemove,\n setDisabled = false,\n testIdPrefix,\n labels,\n}: IPropertyListPopoverFooterProps) => {\n const text = { ...FOOTER_LABELS, ...labels };\n const testIdOf = (name: string) =>\n testIdPrefix ? `${testIdPrefix}-${name}` : undefined;\n\n return (\n <MenuFooter\n className=\"c-property-list-popover__footer\"\n primary={{\n label: text.set,\n onClick: onSet,\n disabled: setDisabled,\n \"data-testid\": testIdOf(\"set\"),\n }}\n secondary={{\n label: text.cancel,\n onClick: onCancel,\n \"data-testid\": testIdOf(\"cancel\"),\n }}\n tertiary={\n onRemove\n ? {\n label: text.remove,\n onClick: onRemove,\n \"data-testid\": testIdOf(\"remove\"),\n }\n : undefined\n }\n />\n );\n};\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAWA,IAAAC,WAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,cAAA,GAAAH,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;AACA,IAAAK,gBAAA,GAAAL,OAAA;AACA,IAAAM,WAAA,GAAAJ,sBAAA,CAAAF,OAAA;AACA,IAAAO,KAAA,GAAAP,OAAA;AAA2C,SAAAE,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAT,wBAAAS,CAAA,EAAAG,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAb,uBAAA,YAAAA,wBAAAS,CAAA,EAAAG,CAAA,SAAAA,CAAA,IAAAH,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,MAAAO,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAR,OAAA,EAAAF,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAS,CAAA,MAAAF,CAAA,GAAAJ,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAE,CAAA,CAAAI,GAAA,CAAAX,CAAA,UA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N,IAAMnG,IAAI,GAAA/C,aAAA,CAAAA,aAAA,KAAQuI,aAAa,GAAKW,MAAM,CAAE;EAC5C,IAAMC,QAAQ,GAAG,SAAXA,QAAQA,CAAIxH,IAAY;IAAA,OAC5BsH,YAAY,MAAAzG,MAAA,CAAMyG,YAAY,OAAAzG,MAAA,CAAIb,IAAI,IAAK8E,SAAS;EAAA;EAEtD,oBACE9I,MAAA,CAAAY,OAAA,CAAAqJ,aAAA,CAACxJ,KAAA,CAAAgL,UAAU;IACT3E,SAAS,EAAC,iCAAiC;IAC3C4E,OAAO,EAAE;MACPC,KAAK,EAAEvG,IAAI,CAAC7D,GAAG;MACfqK,OAAO,EAAEX,KAAK;MACdY,QAAQ,EAAER,WAAW;MACrB,aAAa,EAAEG,QAAQ,CAAC,KAAK;IAC/B,CAAE;IACFM,SAAS,EAAE;MACTH,KAAK,EAAEvG,IAAI,CAACyF,MAAM;MAClBe,OAAO,EAAEV,QAAQ;MACjB,aAAa,EAAEM,QAAQ,CAAC,QAAQ;IAClC,CAAE;IACFO,QAAQ,EACNZ,QAAQ,GACJ;MACEQ,KAAK,EAAEvG,IAAI,CAAC0F,MAAM;MAClBc,OAAO,EAAET,QAAQ;MACjB,aAAa,EAAEK,QAAQ,CAAC,QAAQ;IAClC,CAAC,GACD1C;EACL,CACF,CAAC;AAEN,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"PropertyListPopover.js","names":["_react","_interopRequireWildcard","require","_classnames","_interopRequireDefault","_PopoverStyles","_PropertyList","_useContainerCss","_useForkRef","_Menu","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ownKeys","keys","getOwnPropertySymbols","filter","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","_toPropertyKey","value","configurable","writable","_toPrimitive","Symbol","toPrimitive","TypeError","String","Number","_slicedToArray","_arrayWithHoles","_iterableToArrayLimit","_unsupportedIterableToArray","_nonIterableRest","a","_arrayLikeToArray","toString","slice","constructor","name","Array","from","test","l","iterator","u","next","done","return","isArray","POPOVER_CLASS","POPOVER_CSS","concat","PROPERTY_LIST_POPOVER_WIDTH","exports","PROPERTY_LIST_POPOVER_TABLE_MIN_WIDTH","SEARCH_INPUT","typeInto","input","text","_Object$getOwnPropert","window","HTMLInputElement","prototype","dispatchEvent","Event","bubbles","focus","isCharacterKey","event","key","ctrlKey","metaKey","altKey","PropertyListPopover","_ref","row","open","onOpen","onClose","onClickAway","fixedWidth","width","_ref$followRow","followRow","_ref$openAtClick","openAtClick","className","testId","_ref$typeToFilter","typeToFilter","children","typedText","useRef","contentNode","layout","usePropertyListLayout","isTable","isTicket","rowRef","closedByEscape","_useState","useState","_useState2","setWidth","clickPoint","_useState3","_useState4","anchorPoint","setAnchorPoint","handleRowRef","useForkRef","ref","useContainerCss","measure","useCallback","node","current","card","closest","Math","max","offsetWidth","min","undefined","handleOpen","useEffect","markEscape","document","addEventListener","removeEventListener","handleBeforeClose","rowProps","props","handleRowMouseDown","_rowProps$onMouseDown","_rowRef$current","onMouseDown","bottom","getBoundingClientRect","x","clientX","y","handleRowKeyDown","_rowProps$onKeyDown","_contentNode$current","onKeyDown","defaultPrevented","preventDefault","querySelector","takeTypedText","handleKeyDown","createElement","Menu","onBeforeClose","position","followTarget","menuClassName","target","cloneElement","StyledPropertyListPopoverContent","role","classnames","FOOTER_LABELS","cancel","remove","PropertyListPopoverFooter","_ref2","onSet","onCancel","onRemove","_ref2$setDisabled","setDisabled","testIdPrefix","labels","testIdOf","MenuFooter","primary","label","onClick","disabled","secondary","tertiary"],"sources":["../../../../src/components/PropertyList/PropertyListPopover.tsx"],"sourcesContent":["import React, {\n cloneElement,\n KeyboardEvent,\n MouseEvent,\n ReactElement,\n ReactNode,\n useCallback,\n useEffect,\n useRef,\n useState,\n} from \"react\";\n\nimport classnames from \"classnames\";\n\nimport { StyledPropertyListPopoverContent } from \"./PopoverStyles\";\nimport { usePropertyListLayout } from \"./PropertyList\";\nimport { useContainerCss } from \"../../utils/useContainerCss\";\nimport useForkRef from \"../../utils/useForkRef\";\nimport { Menu, MenuAnchorPoint, MenuFooter } from \"../Menu\";\n\nconst POPOVER_CLASS = \"c-property-list-popover\";\nconst POPOVER_CSS = `.c-simple-menu__paper.${POPOVER_CLASS} { background-color: var(--surface-raised); }`;\n\n/** The width of a picker in the column of the task form. */\nexport const PROPERTY_LIST_POPOVER_WIDTH = 299;\n/** The least width of a picker in the table layout. */\nexport const PROPERTY_LIST_POPOVER_TABLE_MIN_WIDTH = 280;\n\nexport interface IPropertyListPopoverProps {\n /** The row that opens the popover, for example a PropertyListRow. */\n row: ReactElement;\n /** The popover is open. */\n open: boolean;\n /** A click on the row. */\n onOpen: () => void;\n /** Esc, a click outside or a click on the row while open. */\n onClose: () => void;\n /** A click outside, before the popover closes. Return false to keep it open, for a value that cannot be saved. Esc always closes. */\n onClickAway?: () => boolean | void;\n /** A fixed width in pixels. By default the popover is as wide as the row up to 299px, 299px in a ticket, and half the list (at least 280px) in a table. */\n width?: number;\n /** The popover follows its row when the row changes size while it is open, for a row that grows under itself. Off by default. */\n followRow?: boolean;\n /** A click opens the popover under the row at the place of the click, for a wide row. A key opens it at the start of the row. */\n openAtClick?: boolean;\n /** A class on the content of the popover. */\n className?: string;\n /** The test id of the content. */\n \"data-testid\"?: string;\n /** A character typed on the focused row opens the popover and goes into the filter of its select. */\n typeToFilter?: boolean;\n /** The picker, and a PropertyListPopoverFooter under it. */\n children?: ReactNode;\n}\n\nconst SEARCH_INPUT = \"[class~=c-select] input\";\n\n// React reads the value of an input through its own setter, so a typed text goes in through the native one.\nconst typeInto = (input: HTMLInputElement, text: string) => {\n Object.getOwnPropertyDescriptor(\n window.HTMLInputElement.prototype,\n \"value\"\n )?.set?.call(input, text);\n input.dispatchEvent(new Event(\"input\", { bubbles: true }));\n input.focus();\n};\n\nconst isCharacterKey = (event: KeyboardEvent) =>\n event.key.length === 1 &&\n event.key !== \" \" &&\n !event.ctrlKey &&\n !event.metaKey &&\n !event.altKey;\n\n/** The popover of a rail picker: opens under the start of its row, on the raised surface. */\nexport const PropertyListPopover = ({\n row,\n open,\n onOpen,\n onClose,\n onClickAway,\n width: fixedWidth,\n followRow = false,\n openAtClick = false,\n className,\n \"data-testid\": testId,\n typeToFilter = false,\n children,\n}: IPropertyListPopoverProps) => {\n const typedText = useRef(\"\");\n const contentNode = useRef<HTMLDivElement | null>(null);\n const layout = usePropertyListLayout();\n const isTable = layout === \"table\";\n const isTicket = layout === \"ticket\";\n const rowRef = useRef<HTMLElement>(null);\n const closedByEscape = useRef(false);\n const [width, setWidth] = useState<number>();\n const clickPoint = useRef<MenuAnchorPoint | null>(null);\n const [anchorPoint, setAnchorPoint] = useState<MenuAnchorPoint | null>(null);\n const handleRowRef = useForkRef(\n (row as ReactElement & { ref?: React.Ref<HTMLElement> }).ref,\n rowRef\n );\n\n useContainerCss(`${POPOVER_CLASS}-css`, POPOVER_CSS);\n\n const measure = useCallback(() => {\n const node = rowRef.current;\n const card = isTable\n ? node?.closest<HTMLElement>(\".c-property-list\")\n : null;\n\n if (card) {\n setWidth(\n Math.max(PROPERTY_LIST_POPOVER_TABLE_MIN_WIDTH, card.offsetWidth / 2)\n );\n } else if (isTicket) {\n setWidth(PROPERTY_LIST_POPOVER_WIDTH);\n } else {\n setWidth(\n node?.offsetWidth\n ? Math.min(node.offsetWidth, PROPERTY_LIST_POPOVER_WIDTH)\n : undefined\n );\n }\n }, [isTable, isTicket]);\n\n const handleOpen = useCallback(() => {\n measure();\n closedByEscape.current = false;\n setAnchorPoint(clickPoint.current);\n clickPoint.current = null;\n onOpen();\n }, [measure, onOpen]);\n\n // A popover that a story or a parent opens has no click on the row, so it measures here.\n useEffect(() => {\n if (open && width === undefined) {\n measure();\n }\n }, [measure, open, width]);\n\n // The menu reports Esc and a click outside in the same way, so the key is seen here first.\n useEffect(() => {\n if (!open) {\n return undefined;\n }\n\n const markEscape = (event: globalThis.KeyboardEvent) => {\n if (event.key === \"Escape\") {\n closedByEscape.current = true;\n }\n };\n\n document.addEventListener(\"keydown\", markEscape, true);\n\n return () => document.removeEventListener(\"keydown\", markEscape, true);\n }, [open]);\n\n const handleBeforeClose = useCallback(\n () => !onClickAway || closedByEscape.current || onClickAway() !== false,\n [onClickAway]\n );\n\n const rowProps = row.props as {\n onKeyDown?: (event: KeyboardEvent<HTMLElement>) => void;\n onMouseDown?: (event: MouseEvent<HTMLElement>) => void;\n };\n\n const handleRowMouseDown = useCallback(\n (event: MouseEvent<HTMLElement>) => {\n rowProps.onMouseDown?.(event);\n\n const bottom = rowRef.current?.getBoundingClientRect().bottom;\n\n clickPoint.current =\n bottom === undefined ? null : { x: event.clientX, y: bottom };\n },\n [rowProps]\n );\n\n const handleRowKeyDown = useCallback(\n (event: KeyboardEvent<HTMLElement>) => {\n rowProps.onKeyDown?.(event);\n\n if (!typeToFilter || event.defaultPrevented || !isCharacterKey(event)) {\n return;\n }\n\n event.preventDefault();\n\n // A fast typist sends the next character before the focus leaves the row.\n const input =\n contentNode.current?.querySelector<HTMLInputElement>(SEARCH_INPUT);\n\n if (input) {\n typeInto(input, `${input.value}${event.key}`);\n\n return;\n }\n\n typedText.current += event.key;\n\n if (!open) {\n handleOpen();\n }\n },\n [handleOpen, open, rowProps, typeToFilter]\n );\n\n // The list is in the page when its wrapper gets its node, so the typed text can go into the filter there.\n const takeTypedText = useCallback((node: HTMLDivElement | null) => {\n contentNode.current = node;\n\n const input = typedText.current\n ? node?.querySelector<HTMLInputElement>(SEARCH_INPUT)\n : null;\n\n if (input) {\n typeInto(input, typedText.current);\n }\n\n if (node) {\n typedText.current = \"\";\n }\n }, []);\n\n const handleKeyDown = useCallback(\n (event: KeyboardEvent<HTMLDivElement>) => {\n if (event.key === \"Escape\") {\n onClose();\n }\n },\n [onClose]\n );\n\n return (\n <Menu\n open={open}\n onOpen={handleOpen}\n onBeforeClose={handleBeforeClose}\n onClose={onClose}\n position={isTable ? \"bottom\" : \"bottom-start\"}\n followTarget={followRow}\n anchorPoint={openAtClick && open ? anchorPoint : null}\n width={fixedWidth ?? width}\n menuClassName={POPOVER_CLASS}\n target={cloneElement(row, {\n ref: handleRowRef,\n ...(typeToFilter ? { onKeyDown: handleRowKeyDown } : null),\n ...(openAtClick ? { onMouseDown: handleRowMouseDown } : null),\n })}\n >\n {open ? (\n <StyledPropertyListPopoverContent\n ref={takeTypedText}\n role=\"presentation\"\n className={classnames(`${POPOVER_CLASS}__content`, className)}\n onKeyDown={handleKeyDown}\n data-testid={testId}\n >\n {children}\n </StyledPropertyListPopoverContent>\n ) : null}\n </Menu>\n );\n};\n\nexport interface IPropertyListPopoverFooterLabels {\n set: string;\n cancel: string;\n remove: string;\n}\n\nconst FOOTER_LABELS: IPropertyListPopoverFooterLabels = {\n set: \"Set\",\n cancel: \"Cancel\",\n remove: \"Remove\",\n};\n\nexport interface IPropertyListPopoverFooterProps {\n /** Saves the picked value. */\n onSet: () => void;\n /** Closes the popover without a change. */\n onCancel: () => void;\n /** Clears the value. Leave it out to hide the Remove button. */\n onRemove?: () => void;\n /** Disables the Set button. */\n setDisabled?: boolean;\n /** A prefix for the test ids of the buttons: \"<prefix>-set\", \"<prefix>-cancel\" and \"<prefix>-remove\". */\n testIdPrefix?: string;\n /** Texts of the buttons. */\n labels?: Partial<IPropertyListPopoverFooterLabels>;\n}\n\n/** The Set, Cancel and Remove buttons under a rail picker. */\nexport const PropertyListPopoverFooter = ({\n onSet,\n onCancel,\n onRemove,\n setDisabled = false,\n testIdPrefix,\n labels,\n}: IPropertyListPopoverFooterProps) => {\n const text = { ...FOOTER_LABELS, ...labels };\n const testIdOf = (name: string) =>\n testIdPrefix ? `${testIdPrefix}-${name}` : undefined;\n\n return (\n <MenuFooter\n className=\"c-property-list-popover__footer\"\n primary={{\n label: text.set,\n onClick: onSet,\n disabled: setDisabled,\n \"data-testid\": testIdOf(\"set\"),\n }}\n secondary={{\n label: text.cancel,\n onCl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C,KAAK,EAAEvH,IAAI,CAAC7D,GAAG;MACfqL,OAAO,EAAEX,KAAK;MACdY,QAAQ,EAAER,WAAW;MACrB,aAAa,EAAEG,QAAQ,CAAC,KAAK;IAC/B,CAAE;IACFM,SAAS,EAAE;MACTH,KAAK,EAAEvH,IAAI,CAACyG,MAAM;MAClBe,OAAO,EAAEV,QAAQ;MACjB,aAAa,EAAEM,QAAQ,CAAC,QAAQ;IAClC,CAAE;IACFO,QAAQ,EACNZ,QAAQ,GACJ;MACEQ,KAAK,EAAEvH,IAAI,CAAC0G,MAAM;MAClBc,OAAO,EAAET,QAAQ;MACjB,aAAa,EAAEK,QAAQ,CAAC,QAAQ;IAClC,CAAC,GACDnD;EACL,CACF,CAAC;AAEN,CAAC","ignoreList":[]}
|
|
@@ -19,7 +19,7 @@ var StyledPropertyList = exports.StyledPropertyList = (0, _styledComponents.defa
|
|
|
19
19
|
return $ticket && (0, _styledComponents.css)(["", " gap:4px;min-width:0;overflow:visible;padding:", ";"], $ticket === "grid" && "container-type: inline-size;", $ticket === "grid" ? "4px 16px 16px" : "16px");
|
|
20
20
|
}, function (_ref2) {
|
|
21
21
|
var $solid = _ref2.$solid;
|
|
22
|
-
return $solid && (0, _styledComponents.css)(["
|
|
22
|
+
return $solid && (0, _styledComponents.css)(["&&,&&:hover{background-color:", ";}"], SOLID_SURFACE);
|
|
23
23
|
}, function (_ref3) {
|
|
24
24
|
var $roomy = _ref3.$roomy;
|
|
25
25
|
return $roomy && (0, _styledComponents.css)(["& .c-property-list__row{padding-top:10px;padding-bottom:10px;}"]);
|
|
@@ -70,34 +70,37 @@ var StyledPropertyListTableLabel = exports.StyledPropertyListTableLabel = _style
|
|
|
70
70
|
var StyledPropertyListIcon = exports.StyledPropertyListIcon = _styledComponents.default.span.withConfig({
|
|
71
71
|
displayName: "Styles__StyledPropertyListIcon",
|
|
72
72
|
componentId: "sc-ssdfzo-4"
|
|
73
|
-
})(["display:flex;flex-shrink:0;align-items:center;justify-content:center;width:", "px;height:", "px;& svg{fill:var(--color-theme-
|
|
73
|
+
})(["display:flex;flex-shrink:0;align-items:center;justify-content:center;width:", "px;height:", "px;& svg{fill:var(--color-theme-", ");", "}"], function (_ref1) {
|
|
74
74
|
var $size = _ref1.$size;
|
|
75
75
|
return $size;
|
|
76
76
|
}, function (_ref10) {
|
|
77
77
|
var $size = _ref10.$size;
|
|
78
78
|
return $size;
|
|
79
79
|
}, function (_ref11) {
|
|
80
|
-
var $
|
|
81
|
-
|
|
80
|
+
var $muted = _ref11.$muted;
|
|
81
|
+
return $muted ? 600 : 700;
|
|
82
|
+
}, function (_ref12) {
|
|
83
|
+
var $scale = _ref12.$scale,
|
|
84
|
+
$size = _ref12.$size;
|
|
82
85
|
return $scale && "width: ".concat($size, "px; height: ").concat($size, "px;");
|
|
83
86
|
});
|
|
84
87
|
var StyledPropertyListLabelText = exports.StyledPropertyListLabelText = (0, _styledComponents.default)(_Typography.Body2).withConfig({
|
|
85
88
|
displayName: "Styles__StyledPropertyListLabelText",
|
|
86
89
|
componentId: "sc-ssdfzo-5"
|
|
87
|
-
})(["&&{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--color-theme-700);", "}"], function (
|
|
88
|
-
var $layout =
|
|
89
|
-
$density =
|
|
90
|
+
})(["&&{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--color-theme-700);", "}"], function (_ref13) {
|
|
91
|
+
var $layout = _ref13.$layout,
|
|
92
|
+
$density = _ref13.$density;
|
|
90
93
|
return $layout === "stacked" && (0, _styledComponents.css)(["flex:1 1 0%;", ""], $density === "page" ? "margin-left: -4px;" : "padding-left: 6px;");
|
|
91
94
|
});
|
|
92
95
|
var StyledPropertyListValue = exports.StyledPropertyListValue = (0, _styledComponents.default)(_Typography.Body2).withConfig({
|
|
93
96
|
displayName: "Styles__StyledPropertyListValue",
|
|
94
97
|
componentId: "sc-ssdfzo-6"
|
|
95
|
-
})(["&&{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:", ";", "}"], function (
|
|
96
|
-
var $density =
|
|
98
|
+
})(["&&{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:", ";", "}"], function (_ref14) {
|
|
99
|
+
var $density = _ref14.$density;
|
|
97
100
|
return $density === "page" ? "calc(15px * var(--text-scale, 1))" : "calc(1em + 1px)";
|
|
98
|
-
}, function (
|
|
99
|
-
var $placeholder =
|
|
100
|
-
$density =
|
|
101
|
+
}, function (_ref15) {
|
|
102
|
+
var $placeholder = _ref15.$placeholder,
|
|
103
|
+
$density = _ref15.$density;
|
|
101
104
|
return !$placeholder && "color: ".concat($density === "page" ? "var(--muted-text)" : "var(--color-theme-800)", ";");
|
|
102
105
|
});
|
|
103
106
|
var StyledPropertyListAddIcon = exports.StyledPropertyListAddIcon = _styledComponents.default.span.withConfig({
|
|
@@ -131,26 +134,26 @@ var StyledPropertyListBranchLine = exports.StyledPropertyListBranchLine = _style
|
|
|
131
134
|
var StyledPropertyListTicketLabel = exports.StyledPropertyListTicketLabel = (0, _styledComponents.default)(_Typography.Caption2).withConfig({
|
|
132
135
|
displayName: "Styles__StyledPropertyListTicketLabel",
|
|
133
136
|
componentId: "sc-ssdfzo-14"
|
|
134
|
-
})(["&&{text-transform:uppercase;letter-spacing:0.
|
|
135
|
-
var $tone =
|
|
137
|
+
})(["&&{text-transform:uppercase;letter-spacing:0.05em;color:", ";}"], function (_ref16) {
|
|
138
|
+
var $tone = _ref16.$tone;
|
|
136
139
|
return $tone === "alert" ? "var(--red-alert)" : "var(--color-theme-600)";
|
|
137
140
|
});
|
|
138
141
|
var StyledPropertyListTicketLine = exports.StyledPropertyListTicketLine = _styledComponents.default.span.withConfig({
|
|
139
142
|
displayName: "Styles__StyledPropertyListTicketLine",
|
|
140
143
|
componentId: "sc-ssdfzo-15"
|
|
141
|
-
})(["display:flex;align-items:center;gap:4px;min-width:0;", ""], function (
|
|
142
|
-
var $parts =
|
|
144
|
+
})(["display:flex;align-items:center;gap:4px;min-width:0;", ""], function (_ref17) {
|
|
145
|
+
var $parts = _ref17.$parts;
|
|
143
146
|
return $parts && "min-height: 24px;";
|
|
144
147
|
});
|
|
145
148
|
var StyledPropertyListTicketText = exports.StyledPropertyListTicketText = (0, _styledComponents.default)(_Typography.Body1).withConfig({
|
|
146
149
|
displayName: "Styles__StyledPropertyListTicketText",
|
|
147
150
|
componentId: "sc-ssdfzo-16"
|
|
148
|
-
})(["&&{min-width:0;", " ", "}"], function (
|
|
149
|
-
var $parts =
|
|
150
|
-
$wrap =
|
|
151
|
+
})(["&&{min-width:0;", " ", "}"], function (_ref18) {
|
|
152
|
+
var $parts = _ref18.$parts,
|
|
153
|
+
$wrap = _ref18.$wrap;
|
|
151
154
|
return $parts ? (0, _styledComponents.css)(["display:flex;align-items:center;gap:6px;", ""], $wrap ? "flex-wrap: wrap; row-gap: 4px;" : "white-space: nowrap;") : (0, _styledComponents.css)(["overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"]);
|
|
152
|
-
}, function (
|
|
153
|
-
var $tone =
|
|
155
|
+
}, function (_ref19) {
|
|
156
|
+
var $tone = _ref19.$tone;
|
|
154
157
|
return $tone === "alert" && "color: var(--red-alert);";
|
|
155
158
|
});
|
|
156
159
|
var StyledPropertyListTicketCaret = exports.StyledPropertyListTicketCaret = (0, _styledComponents.default)(_Icons.ArrowDownSmallIcon).withConfig({
|
|
@@ -160,20 +163,20 @@ var StyledPropertyListTicketCaret = exports.StyledPropertyListTicketCaret = (0,
|
|
|
160
163
|
var StyledPropertyListTicketValue = exports.StyledPropertyListTicketValue = _styledComponents.default.span.withConfig({
|
|
161
164
|
displayName: "Styles__StyledPropertyListTicketValue",
|
|
162
165
|
componentId: "sc-ssdfzo-18"
|
|
163
|
-
})(["min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;", ""], function (
|
|
164
|
-
var $placeholder =
|
|
165
|
-
return $placeholder && "color: var(--color-theme-
|
|
166
|
+
})(["min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;", ""], function (_ref20) {
|
|
167
|
+
var $placeholder = _ref20.$placeholder;
|
|
168
|
+
return $placeholder && "color: var(--color-theme-500);";
|
|
166
169
|
});
|
|
167
170
|
var StyledPropertyListTicketAddIcon = exports.StyledPropertyListTicketAddIcon = (0, _styledComponents.default)(_Icons.AddCrossTinyIcon).withConfig({
|
|
168
171
|
displayName: "Styles__StyledPropertyListTicketAddIcon",
|
|
169
172
|
componentId: "sc-ssdfzo-19"
|
|
170
|
-
})(["flex-shrink:0;width:12px;height:12px;fill:var(--color-theme-
|
|
173
|
+
})(["flex-shrink:0;width:12px;height:12px;fill:var(--color-theme-500);"]);
|
|
171
174
|
var fillCell = (0, _styledComponents.css)(["display:flex;min-width:0;> *{flex:1 1 0%;min-width:0;}& .c-property-list__row{width:100%;}"]);
|
|
172
175
|
var StyledPropertyListCells = exports.StyledPropertyListCells = _styledComponents.default.div.withConfig({
|
|
173
176
|
displayName: "Styles__StyledPropertyListCells",
|
|
174
177
|
componentId: "sc-ssdfzo-20"
|
|
175
|
-
})(["min-width:0;", ""], function (
|
|
176
|
-
var $cells =
|
|
178
|
+
})(["min-width:0;", ""], function (_ref21) {
|
|
179
|
+
var $cells = _ref21.$cells;
|
|
177
180
|
return $cells === "grid" ? (0, _styledComponents.css)(["display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;column-gap:16px;"]) : (0, _styledComponents.css)(["display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px 24px;"]);
|
|
178
181
|
});
|
|
179
182
|
var StyledPropertyListCell = exports.StyledPropertyListCell = _styledComponents.default.div.withConfig({
|