@persona/design-system 0.9.0 → 0.9.1
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/CHANGELOG.md +16 -0
- package/dist/{Action-DcK0fRrq.d.mts → Action-BleGvmsy.d.mts} +2 -2
- package/dist/Action.d.mts +1 -1
- package/dist/AdvancedFilterRuleRow.d.mts +2 -2
- package/dist/AdvancedFilterRulesPopover.d.mts +2 -2
- package/dist/ArrayValueControl.d.mts +1 -1
- package/dist/Attribute.d.mts +2 -2
- package/dist/{Badge-DLuyKRCQ.mjs → Badge-BYa-iqNE.mjs} +2 -2
- package/dist/{Badge-DLuyKRCQ.mjs.map → Badge-BYa-iqNE.mjs.map} +1 -1
- package/dist/BooleanValueControl.d.mts +1 -1
- package/dist/{Breadcrumbs-B8aXFPdV.mjs → Breadcrumbs-BmlndU4V.mjs} +8 -8
- package/dist/{Breadcrumbs-B8aXFPdV.mjs.map → Breadcrumbs-BmlndU4V.mjs.map} +1 -1
- package/dist/{Button-DKUomFPj.d.mts → Button-Dx7mHjWC.d.mts} +2 -2
- package/dist/Button.d.mts +1 -1
- package/dist/CalendarBase.d.mts +1 -1
- package/dist/{Card-DMXDx1W7.d.mts → Card-BPY0OU7e.d.mts} +4 -4
- package/dist/Card.d.mts +1 -1
- package/dist/Card2.d.mts +1 -1
- package/dist/CardGrouping.d.mts +1 -1
- package/dist/{CardV2-JPGFAqui.mjs → CardV2-Cq4QODeE.mjs} +12 -12
- package/dist/{CardV2-JPGFAqui.mjs.map → CardV2-Cq4QODeE.mjs.map} +1 -1
- package/dist/{Checkbox-iSBIpu0l.mjs → Checkbox-Cttn1t8T.mjs} +10 -6
- package/dist/{Checkbox-iSBIpu0l.mjs.map → Checkbox-Cttn1t8T.mjs.map} +1 -1
- package/dist/{CheckboxGroupField-BMJwuTpJ.d.mts → CheckboxGroupField-BpHN_2QP.d.mts} +2 -2
- package/dist/CheckboxGroupField.d.mts +1 -1
- package/dist/ChoicesValueControl.d.mts +1 -1
- package/dist/{Combobox-C2R9eTPr.d.mts → Combobox-C4C2P8lF.d.mts} +3 -3
- package/dist/{Combobox-BkpRqaxB.mjs → Combobox-CsXnJKvB.mjs} +11 -11
- package/dist/{Combobox-BkpRqaxB.mjs.map → Combobox-CsXnJKvB.mjs.map} +1 -1
- package/dist/Combobox.d.mts +2 -2
- package/dist/{ComboboxBase-BghIk4Vk.d.mts → ComboboxBase-2nVpt8oj.d.mts} +5 -5
- package/dist/ComboboxBase.d.mts +1 -1
- package/dist/{ComboboxMultiSelect-CIOHnhrv.d.mts → ComboboxMultiSelect-BvJ--m6z.d.mts} +2 -2
- package/dist/ComboboxMultiSelect.d.mts +1 -1
- package/dist/{ComboboxSingleSelect-C1JZxli3.d.mts → ComboboxSingleSelect-BWrnRA2x.d.mts} +3 -3
- package/dist/ComboboxSingleSelect.d.mts +1 -1
- package/dist/{CompactBar-DPJAY1NB.d.mts → CompactBar-CmTT9iuT.d.mts} +2 -2
- package/dist/CompactBar.d.mts +1 -1
- package/dist/{ConfigFormGroup-BBIJsQgy.mjs → ConfigFormGroup-C0orlWwb.mjs} +2 -2
- package/dist/{ConfigFormGroup-BBIJsQgy.mjs.map → ConfigFormGroup-C0orlWwb.mjs.map} +1 -1
- package/dist/DataTable.d.mts +1 -1
- package/dist/{DatePicker-CjuR6ORz.mjs → DatePicker-DQHVCGnP.mjs} +10 -10
- package/dist/{DatePicker-CjuR6ORz.mjs.map → DatePicker-DQHVCGnP.mjs.map} +1 -1
- package/dist/DateRangeValueControl.d.mts +1 -1
- package/dist/DateValueControl.d.mts +1 -1
- package/dist/{DropdownButton-CRJDAGjJ.mjs → DropdownButton-C9wWnB5w.mjs} +3 -3
- package/dist/{DropdownButton-CRJDAGjJ.mjs.map → DropdownButton-C9wWnB5w.mjs.map} +1 -1
- package/dist/DropdownButton.d.mts +2 -2
- package/dist/{DropdownMenu-CNkQDiJr.d.mts → DropdownMenu-BZ62b8Cv.d.mts} +3 -3
- package/dist/{DropdownMenu-C2BHv8Lc.mjs → DropdownMenu-CPE8Q56k.mjs} +2 -2
- package/dist/{DropdownMenu-C2BHv8Lc.mjs.map → DropdownMenu-CPE8Q56k.mjs.map} +1 -1
- package/dist/DropdownMenu.d.mts +1 -1
- package/dist/{FieldRegistry-B7P4wC7y.d.mts → FieldRegistry-DAk_3PhH.d.mts} +2 -2
- package/dist/FieldRegistry.d.mts +1 -1
- package/dist/{FilterBar-clWmrKkT.d.mts → FilterBar-C7ch6kYM.d.mts} +4 -4
- package/dist/FilterBar.d.mts +1 -1
- package/dist/FilterPickerMenu.d.mts +2 -2
- package/dist/FilterPill.d.mts +1 -1
- package/dist/FilterPopover.d.mts +1 -1
- package/dist/FloatValueControl.d.mts +5 -4
- package/dist/{FormControl-jfjKwUfK.mjs → FormControl-CD_FdAXA.mjs} +4 -4
- package/dist/{FormControl-jfjKwUfK.mjs.map → FormControl-CD_FdAXA.mjs.map} +1 -1
- package/dist/{FormControl-C44o35FL.d.mts → FormControl-DX4vtUp6.d.mts} +2 -2
- package/dist/FormControl.d.mts +1 -1
- package/dist/FormControlLabel.d.mts +2 -2
- package/dist/{FormField-CXznMtuS.d.mts → FormField-C80kGAIV.d.mts} +2 -2
- package/dist/{FormField-C3nUzhGT.mjs → FormField-DjysBTKn.mjs} +15 -15
- package/dist/{FormField-C3nUzhGT.mjs.map → FormField-DjysBTKn.mjs.map} +1 -1
- package/dist/FormField.d.mts +1 -1
- package/dist/{Header-DvpIsOUN.d.mts → Header-C-a5fL3k.d.mts} +2 -2
- package/dist/Header.d.mts +1 -1
- package/dist/{HelperTooltip-C4tgbLYw.d.mts → HelperTooltip-hhMFkKmn.d.mts} +2 -2
- package/dist/HelperTooltip.d.mts +1 -1
- package/dist/HighlightedText.d.mts +1 -1
- package/dist/{HoverCopyableField-1_LHm80n.mjs → HoverCopyableField-Cgu3W31s.mjs} +4 -4
- package/dist/{HoverCopyableField-1_LHm80n.mjs.map → HoverCopyableField-Cgu3W31s.mjs.map} +1 -1
- package/dist/{I18nContext-DlvagRAO.d.mts → I18nContext-ioYM_vqG.d.mts} +2 -2
- package/dist/I18nContext.d.mts +1 -1
- package/dist/{IconButton-Cqxfmrea.mjs → IconButton-D4awF770.mjs} +7 -7
- package/dist/{IconButton-Cqxfmrea.mjs.map → IconButton-D4awF770.mjs.map} +1 -1
- package/dist/{IconButton-Bt3WyiGq.d.mts → IconButton-DJ3L_ZqN.d.mts} +2 -2
- package/dist/IconButton.d.mts +1 -1
- package/dist/ImageTile.d.mts +1 -1
- package/dist/InlineCombobox.d.mts +1 -1
- package/dist/InlineInput.d.mts +1 -1
- package/dist/{Input-CAsOWM0S.d.mts → Input-D3lXfJHq.d.mts} +3 -3
- package/dist/{Input-Cg2HxteL.mjs → Input-DD4jzJhK.mjs} +5 -5
- package/dist/{Input-Cg2HxteL.mjs.map → Input-DD4jzJhK.mjs.map} +1 -1
- package/dist/Input.d.mts +1 -1
- package/dist/IntegerValueControl.d.mts +5 -4
- package/dist/{Link-Cf__H8gD.mjs → Link-DGZu4J0x.mjs} +4 -4
- package/dist/{Link-Cf__H8gD.mjs.map → Link-DGZu4J0x.mjs.map} +1 -1
- package/dist/{ListBox-CjNokYs6.mjs → ListBox-BhWLad_L.mjs} +12 -12
- package/dist/{ListBox-CjNokYs6.mjs.map → ListBox-BhWLad_L.mjs.map} +1 -1
- package/dist/{ListBox--IH6uofo.d.mts → ListBox-CjGb0mMY.d.mts} +3 -3
- package/dist/ListBox.d.mts +1 -1
- package/dist/{ListBoxField-BUKop1Ca.d.mts → ListBoxField-BUkPeLiB.d.mts} +4 -4
- package/dist/ListBoxField.d.mts +1 -1
- package/dist/{LoadingShimmer-C73hJqaW.mjs → LoadingShimmer-Bqjdut7i.mjs} +1 -1
- package/dist/{LoadingShimmer-C73hJqaW.mjs.map → LoadingShimmer-Bqjdut7i.mjs.map} +1 -1
- package/dist/LoadingShimmer.d.mts +1 -1
- package/dist/{LogicRow-C8Hdl8xB.d.mts → LogicRow-Bt6NPLOd.d.mts} +2 -2
- package/dist/LogicRow.d.mts +1 -1
- package/dist/MaskedInput.d.mts +2 -2
- package/dist/MatchHighlight.d.mts +1 -1
- package/dist/{Menu-BSHJpKyL.d.mts → Menu-BMrsN-Jz.d.mts} +4 -4
- package/dist/{Menu-CwKmfxKI.mjs → Menu-DlN0A5Nb.mjs} +4 -4
- package/dist/{Menu-CwKmfxKI.mjs.map → Menu-DlN0A5Nb.mjs.map} +1 -1
- package/dist/Menu.d.mts +1 -1
- package/dist/{Modal-CoUHxtgN.d.mts → Modal-BoeGuR-h.d.mts} +3 -3
- package/dist/{Modal-BBIJVhv2.mjs → Modal-Cs5cZpEr.mjs} +4 -4
- package/dist/{Modal-BBIJVhv2.mjs.map → Modal-Cs5cZpEr.mjs.map} +1 -1
- package/dist/Modal.d.mts +1 -1
- package/dist/{PageHeader-5GyfuGLe.mjs → PageHeader-CCoAJUwJ.mjs} +2 -2
- package/dist/{PageHeader-5GyfuGLe.mjs.map → PageHeader-CCoAJUwJ.mjs.map} +1 -1
- package/dist/PageHeader.d.mts +1 -1
- package/dist/{PageLayout-C7hDmoy_.d.mts → PageLayout-BlCo4hN4.d.mts} +2 -2
- package/dist/PageLayout.d.mts +1 -1
- package/dist/{PageSelector-CrUb586l.d.mts → PageSelector-BmevrorJ.d.mts} +2 -2
- package/dist/PageSelector.d.mts +1 -1
- package/dist/{Pagination-c4YBCy5d.mjs → Pagination-Du2CPW2l.mjs} +5 -5
- package/dist/{Pagination-c4YBCy5d.mjs.map → Pagination-Du2CPW2l.mjs.map} +1 -1
- package/dist/{Pii-oW_2TUUc.mjs → Pii-CFVWZ_Yx.mjs} +2 -2
- package/dist/{Pii-oW_2TUUc.mjs.map → Pii-CFVWZ_Yx.mjs.map} +1 -1
- package/dist/{PillShell-BkYHghx0.d.mts → PillShell-jr6OyAd3.d.mts} +2 -2
- package/dist/PillShell.d.mts +1 -1
- package/dist/{Popover-BcII7usF.mjs → Popover-DewrGOJB.mjs} +2 -2
- package/dist/{Popover-BcII7usF.mjs.map → Popover-DewrGOJB.mjs.map} +1 -1
- package/dist/{ProgressIndicator-STyTM0Hq.mjs → ProgressIndicator-xV5Cl2Bw.mjs} +3 -3
- package/dist/{ProgressIndicator-STyTM0Hq.mjs.map → ProgressIndicator-xV5Cl2Bw.mjs.map} +1 -1
- package/dist/{Radio-CHme6WTz.mjs → Radio-i7AEQZHb.mjs} +4 -4
- package/dist/{Radio-CHme6WTz.mjs.map → Radio-i7AEQZHb.mjs.map} +1 -1
- package/dist/{RadioGroup-DOLRqHIZ.mjs → RadioGroup-B0KcQpS7.mjs} +2 -2
- package/dist/{RadioGroup-DOLRqHIZ.mjs.map → RadioGroup-B0KcQpS7.mjs.map} +1 -1
- package/dist/RuleEditorFields.d.mts +2 -2
- package/dist/RulesPill.d.mts +1 -1
- package/dist/SectionHeading.d.mts +1 -1
- package/dist/{SegmentedControl-d9tHqWce.mjs → SegmentedControl-B2_bS806.mjs} +2 -2
- package/dist/{SegmentedControl-d9tHqWce.mjs.map → SegmentedControl-B2_bS806.mjs.map} +1 -1
- package/dist/{Select-Ek-A2Cpo.d.mts → Select-BpAA5ETS.d.mts} +2 -2
- package/dist/{Select-Da6UZicF.mjs → Select-oVJ0uLa7.mjs} +8 -8
- package/dist/{Select-Da6UZicF.mjs.map → Select-oVJ0uLa7.mjs.map} +1 -1
- package/dist/Select.d.mts +1 -1
- package/dist/SmartTextInput.d.mts +1 -1
- package/dist/SmartTextInputField.d.mts +2 -2
- package/dist/SmartTextInputFunctionDialog.d.mts +1 -1
- package/dist/SmartTextInputPopover.d.mts +1 -1
- package/dist/{Spinner-C4UyK9If.mjs → Spinner-0Vqw_68r.mjs} +2 -2
- package/dist/{Spinner-C4UyK9If.mjs.map → Spinner-0Vqw_68r.mjs.map} +1 -1
- package/dist/{Stack-D0Dt776K.d.mts → Stack-DpWl6orU.d.mts} +2 -2
- package/dist/Stack.d.mts +1 -1
- package/dist/{StatusIndicator-akDwBiBW.mjs → StatusIndicator-QsVgjRrt.mjs} +3 -3
- package/dist/{StatusIndicator-akDwBiBW.mjs.map → StatusIndicator-QsVgjRrt.mjs.map} +1 -1
- package/dist/{Sticker-Cit5EKiU.d.mts → Sticker-C260e6kl.d.mts} +4 -4
- package/dist/{Sticker-_vmpUMfk.mjs → Sticker-CUqHa9Mo.mjs} +5 -5
- package/dist/{Sticker-_vmpUMfk.mjs.map → Sticker-CUqHa9Mo.mjs.map} +1 -1
- package/dist/Sticker.d.mts +1 -1
- package/dist/StringValueControl.d.mts +1 -1
- package/dist/Tab.d.mts +2 -2
- package/dist/{TabBar-CmYqreN0.mjs → TabBar-w_gxXSwA.mjs} +5 -5
- package/dist/{TabBar-CmYqreN0.mjs.map → TabBar-w_gxXSwA.mjs.map} +1 -1
- package/dist/{Table-CV8nogHu.mjs → Table-PbYGf3PG.mjs} +8 -8
- package/dist/{Table-CV8nogHu.mjs.map → Table-PbYGf3PG.mjs.map} +1 -1
- package/dist/{TableBox-vCTkOPlC.mjs → TableBox-DMYLTIpr.mjs} +13 -13
- package/dist/{TableBox-vCTkOPlC.mjs.map → TableBox-DMYLTIpr.mjs.map} +1 -1
- package/dist/TableBox.d.mts +1 -1
- package/dist/{TableBoxCell-BkJ587Lf.d.mts → TableBoxCell-DwAOA-oO.d.mts} +6 -6
- package/dist/TableBoxCell.d.mts +1 -1
- package/dist/{TableBoxField-Dj9Cx9NP.d.mts → TableBoxField-Bdj_nY7j.d.mts} +5 -5
- package/dist/TableBoxField.d.mts +1 -1
- package/dist/{TableBoxRow-CpR9Cti1.d.mts → TableBoxRow-5WBwyAyn.d.mts} +2 -2
- package/dist/TableBoxRow.d.mts +1 -1
- package/dist/{TableBoxRowActions-Bj-LZaI7.d.mts → TableBoxRowActions-Dq_Z2ted.d.mts} +2 -2
- package/dist/TableBoxRowActions.d.mts +1 -1
- package/dist/{TableCell-DOjW6ADs.d.mts → TableCell-DXBHZ52E.d.mts} +2 -2
- package/dist/TableCell.d.mts +1 -1
- package/dist/{TableControls-BtKBTGYR.mjs → TableControls-C1MF2JvY.mjs} +101 -33
- package/dist/TableControls-C1MF2JvY.mjs.map +1 -0
- package/dist/{TechnicalSticker-BhUxOU-L.mjs → TechnicalSticker-RQ-4_Tdr.mjs} +5 -5
- package/dist/{TechnicalSticker-BhUxOU-L.mjs.map → TechnicalSticker-RQ-4_Tdr.mjs.map} +1 -1
- package/dist/{Text-CUhW_agW.d.mts → Text-BBMau410.d.mts} +2 -2
- package/dist/Text.d.mts +1 -1
- package/dist/{TextArea-J_EscGvm.mjs → TextArea-BaA8H7s7.mjs} +2 -2
- package/dist/{TextArea-J_EscGvm.mjs.map → TextArea-BaA8H7s7.mjs.map} +1 -1
- package/dist/{TextUnderlineTooltip-DCVONTD0.d.mts → TextUnderlineTooltip-C4N0bqbh.d.mts} +3 -3
- package/dist/TextUnderlineTooltip.d.mts +1 -1
- package/dist/Tile.d.mts +1 -1
- package/dist/{Toggle-BEOoATjS.mjs → Toggle-C9cZnajR.mjs} +6 -6
- package/dist/{Toggle-BEOoATjS.mjs.map → Toggle-C9cZnajR.mjs.map} +1 -1
- package/dist/{Tooltip-DLK9Q2Rg.d.mts → Tooltip-Dj-DtGKz.d.mts} +3 -3
- package/dist/{Tooltip-B-0VRuKT.mjs → Tooltip-DogEteGl.mjs} +2 -2
- package/dist/{Tooltip-B-0VRuKT.mjs.map → Tooltip-DogEteGl.mjs.map} +1 -1
- package/dist/Tooltip.d.mts +1 -1
- package/dist/{TruncatedText-B_u70y6w.d.mts → TruncatedText-BDNFUuhG.d.mts} +2 -2
- package/dist/WizardModal.d.mts +1 -1
- package/dist/components/Accordion/index.mjs +4 -4
- package/dist/components/Attribute/index.mjs +4 -4
- package/dist/components/Badge/index.mjs +1 -1
- package/dist/components/Banner/index.mjs +3 -3
- package/dist/components/BottomPanel/index.mjs +4 -4
- package/dist/components/Breadcrumbs/index.mjs +1 -1
- package/dist/components/Button/index.d.mts +2 -2
- package/dist/components/Button/index.mjs +1 -1
- package/dist/components/ButtonGroup/index.mjs +2 -2
- package/dist/components/Card/index.d.mts +2 -2
- package/dist/components/CardV2/index.d.mts +1 -1
- package/dist/components/CardV2/index.mjs +1 -1
- package/dist/components/Checkbox/index.mjs +1 -1
- package/dist/components/CodeHighlight/index.mjs +3 -3
- package/dist/components/Combobox/index.d.mts +2 -2
- package/dist/components/Combobox/index.mjs +1 -1
- package/dist/components/ConfigFormGroup/index.mjs +2 -2
- package/dist/components/DataTable/TableControls/index.d.mts +15 -15
- package/dist/components/DataTable/TableControls/index.mjs +2 -2
- package/dist/components/DataTable/index.mjs +18 -18
- package/dist/components/DataTable/index.mjs.map +1 -1
- package/dist/components/DataTable/types.d.mts +2 -2
- package/dist/components/DatePicker/index.mjs +1 -1
- package/dist/components/DropdownButton/index.mjs +1 -1
- package/dist/components/DropdownMenu/index.d.mts +1 -1
- package/dist/components/DropdownMenu/index.mjs +1 -1
- package/dist/components/FloatingPanel/index.mjs +5 -5
- package/dist/components/FormControl/index.d.mts +1 -1
- package/dist/components/FormControl/index.mjs +2 -2
- package/dist/components/FormField/index.d.mts +5 -5
- package/dist/components/FormField/index.mjs +1 -1
- package/dist/components/HoverCopyableField/index.mjs +1 -1
- package/dist/components/ImageTile/index.mjs +7 -7
- package/dist/components/Input/index.d.mts +1 -1
- package/dist/components/Input/index.mjs +1 -1
- package/dist/components/Link/index.mjs +1 -1
- package/dist/components/ListBox/index.d.mts +3 -3
- package/dist/components/ListBox/index.mjs +1 -1
- package/dist/components/LoadingShimmer/index.mjs +1 -1
- package/dist/components/MaskedInput/index.mjs +1 -1
- package/dist/components/Menu/index.d.mts +1 -1
- package/dist/components/Menu/index.mjs +1 -1
- package/dist/components/Modal/index.d.mts +1 -1
- package/dist/components/Modal/index.mjs +1 -1
- package/dist/components/PageHeader/index.mjs +1 -1
- package/dist/components/Pagination/index.d.mts +1 -1
- package/dist/components/Pagination/index.mjs +1 -1
- package/dist/components/Pii/index.mjs +1 -1
- package/dist/components/Popover/index.mjs +1 -1
- package/dist/components/ProgressBar/index.mjs +1 -1
- package/dist/components/ProgressIndicator/index.mjs +1 -1
- package/dist/components/Radio/index.mjs +1 -1
- package/dist/components/RadioGroup/index.mjs +1 -1
- package/dist/components/RightPanel/index.mjs +3 -3
- package/dist/components/SegmentedControl/index.mjs +1 -1
- package/dist/components/Select/index.d.mts +1 -1
- package/dist/components/Select/index.mjs +1 -1
- package/dist/components/Slider/index.mjs +2 -2
- package/dist/components/SmartTextInput/index.mjs +9 -8
- package/dist/components/SmartTextInput/index.mjs.map +1 -1
- package/dist/components/Spinner/index.mjs +1 -1
- package/dist/components/Stack/index.d.mts +1 -1
- package/dist/components/StatusIndicator/index.mjs +1 -1
- package/dist/components/Sticker/index.d.mts +1 -1
- package/dist/components/Sticker/index.mjs +1 -1
- package/dist/components/TabBar/index.mjs +1 -1
- package/dist/components/Table/index.d.mts +1 -1
- package/dist/components/Table/index.mjs +1 -1
- package/dist/components/TableBox/index.d.mts +1 -1
- package/dist/components/TableBox/index.mjs +1 -1
- package/dist/components/TechnicalSticker/index.mjs +1 -1
- package/dist/components/Text/index.d.mts +1 -1
- package/dist/components/TextArea/index.mjs +1 -1
- package/dist/components/Tile/index.mjs +2 -2
- package/dist/components/Toast/index.mjs +4 -4
- package/dist/components/Toggle/index.mjs +1 -1
- package/dist/components/Tooltip/index.d.mts +3 -3
- package/dist/components/Tooltip/index.mjs +1 -1
- package/dist/components/VersionHistory/index.mjs +7 -7
- package/dist/compound-expression.d.mts +1 -1
- package/dist/{date-filter-B8PKh5vg.mjs → date-filter-CWgCXz85.mjs} +1 -1
- package/dist/{date-filter-B8PKh5vg.mjs.map → date-filter-CWgCXz85.mjs.map} +1 -1
- package/dist/{date-range-rule-value-BTlHwhVf.d.mts → date-range-rule-value-BkbGpLNH.d.mts} +2 -2
- package/dist/date-range-rule-value.d.mts +1 -1
- package/dist/display.d.mts +2 -2
- package/dist/fieldPickerOptions.d.mts +2 -2
- package/dist/{filter-size-context-D3ZSzFKe.d.mts → filter-size-context-CW1guBfI.d.mts} +2 -2
- package/dist/filter-size-context.d.mts +1 -1
- package/dist/helpers.d.mts +1 -1
- package/dist/{i18n-DeJa-arS.mjs → i18n-CeRarJIa.mjs} +5 -2
- package/dist/i18n-CeRarJIa.mjs.map +1 -0
- package/dist/{index-B13LwAGD.d.mts → index-C7hEdRqK.d.mts} +2 -2
- package/dist/{index-DHmZDtDG.d.mts → index-DxFh2ArY.d.mts} +3 -3
- package/dist/index.d.mts +1 -1
- package/dist/index3.d.mts +3 -3
- package/dist/index4.d.mts +1 -1
- package/dist/index5.d.mts +14 -14
- package/dist/{inputFields-DHdFgzS2.d.mts → inputFields-BCNC1FWx.d.mts} +6 -6
- package/dist/inputFields.d.mts +1 -1
- package/dist/{intersperse-DWUGtKug.mjs → intersperse-B8s6clcc.mjs} +1 -1
- package/dist/{intersperse-DWUGtKug.mjs.map → intersperse-B8s6clcc.mjs.map} +1 -1
- package/dist/lib/PDSProvider.d.mts +1 -1
- package/dist/lib/PDSProvider.mjs +1 -1
- package/dist/lib/TruncatedText.d.mts +1 -1
- package/dist/lib/TruncatedTextWithTooltip.d.mts +1 -1
- package/dist/lib/TruncatedTextWithTooltip.mjs +1 -1
- package/dist/lib/date-filter/index.mjs +1 -1
- package/dist/lib/i18n/index.d.mts +2 -2
- package/dist/lib/i18n/index.mjs +1 -1
- package/dist/lib/useChain.d.mts +1 -1
- package/dist/mixins/focus.mjs +1 -1
- package/dist/mixins/hoverable.mjs +1 -1
- package/dist/mixins/input.mjs +2 -2
- package/dist/{operators-B12UYEsV.d.mts → operators-C34nhBuK.d.mts} +33 -5
- package/dist/operators.d.mts +2 -2
- package/dist/patterns/CardGrouping/index.mjs +7 -7
- package/dist/patterns/LayoutLoadingShimmer/index.mjs +4 -4
- package/dist/patterns/PageLayout/index.d.mts +1 -1
- package/dist/patterns/WizardModal/index.mjs +3 -3
- package/dist/relative-date-label.d.mts +1 -1
- package/dist/{strings-DQ3vxBj8.d.mts → strings-CUZrwL-Q.d.mts} +5 -1
- package/dist/strings.d.mts +1 -1
- package/dist/tone.d.mts +1 -1
- package/dist/{types-eemD0jxb.d.mts → types-C_ZEgHNa.d.mts} +2 -2
- package/dist/{types-CM8L7-ij.d.mts → types-DEzlAdZW.d.mts} +5 -1
- package/dist/types4.d.mts +1 -1
- package/dist/types5.d.mts +1 -1
- package/dist/{url-state-BW1mN6WQ.d.mts → url-state-B_gTQ9uu.d.mts} +2 -2
- package/dist/url-state.d.mts +1 -1
- package/dist/{useChain-BreIP4fW.d.mts → useChain-DPRVMwX8.d.mts} +2 -2
- package/dist/useChainAtCursor.d.mts +1 -1
- package/dist/useComboboxFooterAction.d.mts +1 -1
- package/dist/{useFilterStateV2-B8VebPBe.d.mts → useFilterStateV2-BQZppUR0.d.mts} +3 -3
- package/dist/useFilterStateV2.d.mts +1 -1
- package/dist/{useFormField-J0LiPcpm.mjs → useFormField-BAmkdxtA.mjs} +2 -2
- package/dist/{useFormField-J0LiPcpm.mjs.map → useFormField-BAmkdxtA.mjs.map} +1 -1
- package/dist/{useFormGroup-CALbrUkl.mjs → useFormGroup-BZayb9fZ.mjs} +1 -1
- package/dist/{useFormGroup-CALbrUkl.mjs.map → useFormGroup-BZayb9fZ.mjs.map} +1 -1
- package/dist/useTruncation.d.mts +1 -1
- package/dist/utils.d.mts +1 -1
- package/dist/{validation-ZHnFPRP6.d.mts → validation-BODkbEvr.d.mts} +3 -3
- package/dist/validation.d.mts +1 -1
- package/dist/{value-control-resolver-D3qzy8Kk.d.mts → value-control-resolver-BcZiReQ7.d.mts} +2 -2
- package/dist/value-control-resolver.d.mts +1 -1
- package/package.json +3 -3
- package/dist/TableControls-BtKBTGYR.mjs.map +0 -1
- package/dist/i18n-DeJa-arS.mjs.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Spinner } from "../../Spinner-
|
|
1
|
+
import { t as Spinner } from "../../Spinner-0Vqw_68r.mjs";
|
|
2
2
|
export { Spinner, Spinner as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as StackProps, n as HStackProps, r as Stack, t as HStack } from "../../Stack-
|
|
1
|
+
import { i as StackProps, n as HStackProps, r as Stack, t as HStack } from "../../Stack-DpWl6orU.mjs";
|
|
2
2
|
export { HStack, HStackProps, Stack, Stack as default, StackProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as StatusIndicator, t as STATUSES } from "../../StatusIndicator-
|
|
1
|
+
import { n as StatusIndicator, t as STATUSES } from "../../StatusIndicator-QsVgjRrt.mjs";
|
|
2
2
|
export { STATUSES, StatusIndicator, StatusIndicator as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as StickerContentContainer, i as StickerContainer, n as STICKER_COLOR_CONFIG, o as StickerProps, r as Sticker, s as StyledTruncatedText, t as LabelBackgrounds } from "../../Sticker-
|
|
1
|
+
import { a as StickerContentContainer, i as StickerContainer, n as STICKER_COLOR_CONFIG, o as StickerProps, r as Sticker, s as StyledTruncatedText, t as LabelBackgrounds } from "../../Sticker-C260e6kl.mjs";
|
|
2
2
|
export { LabelBackgrounds, STICKER_COLOR_CONFIG, Sticker, Sticker as default, StickerContainer, StickerContentContainer, StickerProps, StyledTruncatedText };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as StyledTruncatedText, i as StickerContentContainer, n as Sticker, r as StickerContainer, t as STICKER_COLOR_CONFIG } from "../../Sticker-
|
|
1
|
+
import { a as StyledTruncatedText, i as StickerContentContainer, n as Sticker, r as StickerContainer, t as STICKER_COLOR_CONFIG } from "../../Sticker-CUqHa9Mo.mjs";
|
|
2
2
|
export { STICKER_COLOR_CONFIG, Sticker, Sticker as default, StickerContainer, StickerContentContainer, StyledTruncatedText };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TabContainer, i as TabBar, n as StyledTab, r as Tab, t as TabBarIconButton_default } from "../../TabBar-
|
|
1
|
+
import { a as TabContainer, i as TabBar, n as StyledTab, r as Tab, t as TabBarIconButton_default } from "../../TabBar-w_gxXSwA.mjs";
|
|
2
2
|
export { StyledTab, Tab, TabBar, TabBar as default, TabBarIconButton_default as TabBarIconButton, TabContainer };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as Table } from "../../Table-BtNYI6QX.mjs";
|
|
2
2
|
import { t as TableHeaderCell } from "../../TableHeaderCell-DcZcMQyR.mjs";
|
|
3
3
|
import { t as TableRow } from "../../TableRow-Dad6_CoD.mjs";
|
|
4
|
-
import { a as TableCellProps, c as TableTD, i as TableCell, l as TableTR, n as StickyTH, o as TableCellTitle, r as TableActionTD, s as TableIconTD, t as StickyTD } from "../../TableCell-
|
|
4
|
+
import { a as TableCellProps, c as TableTD, i as TableCell, l as TableTR, n as StickyTH, o as TableCellTitle, r as TableActionTD, s as TableIconTD, t as StickyTD } from "../../TableCell-DXBHZ52E.mjs";
|
|
5
5
|
import { t as TableHead } from "../../TableHead-BGUg_aXc.mjs";
|
|
6
6
|
import { t as TableBody } from "../../TableBody-DQ7pivxP.mjs";
|
|
7
7
|
import { t as TableTH } from "../../index-B7KIL3U6.mjs";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as StickyTH, c as TableCellTitle, d as TableTR, f as TableTH, h as Table, i as StickyTD, l as TableIconTD, m as TableHeaderCell, n as TableBody, o as TableActionTD, p as TableRow, r as TableHead, s as TableCell, t as TableLayout, u as TableTD } from "../../Table-
|
|
1
|
+
import { a as StickyTH, c as TableCellTitle, d as TableTR, f as TableTH, h as Table, i as StickyTD, l as TableIconTD, m as TableHeaderCell, n as TableBody, o as TableActionTD, p as TableRow, r as TableHead, s as TableCell, t as TableLayout, u as TableTD } from "../../Table-PbYGf3PG.mjs";
|
|
2
2
|
export { StickyTD, StickyTH, Table, Table as default, TableActionTD, TableBody, TableCell, TableCellTitle, TableHead, TableHeaderCell, TableIconTD, TableLayout, TableRow, TableTD, TableTH, TableTR };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { t as DragDirection } from "../../useTableBoxDragAndDrop-Dq30b6yY.mjs";
|
|
2
|
-
import { a as TableBox, o as TableBoxContext, r as InlineEditConfig, s as TableBoxProps } from "../../TableBoxCell-
|
|
2
|
+
import { a as TableBox, o as TableBoxContext, r as InlineEditConfig, s as TableBoxProps } from "../../TableBoxCell-DwAOA-oO.mjs";
|
|
3
3
|
export { DragDirection, InlineEditConfig, TableBoxContext, TableBoxProps, TableBox as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as TableBoxContext, t as TableBox } from "../../TableBox-
|
|
1
|
+
import { n as TableBoxContext, t as TableBox } from "../../TableBox-DMYLTIpr.mjs";
|
|
2
2
|
export { TableBoxContext, TableBox as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as TechnicalSticker } from "../../TechnicalSticker-
|
|
1
|
+
import { t as TechnicalSticker } from "../../TechnicalSticker-RQ-4_Tdr.mjs";
|
|
2
2
|
export { TechnicalSticker, TechnicalSticker as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as Label, c as ParagraphProps, d as TabularNumber, i as HeadingProps, l as Span, n as DisplayProps, o as LabelProps, r as Heading, s as Paragraph, t as Display, u as SpanProps } from "../../Text-
|
|
1
|
+
import { a as Label, c as ParagraphProps, d as TabularNumber, i as HeadingProps, l as Span, n as DisplayProps, o as LabelProps, r as Heading, s as Paragraph, t as Display, u as SpanProps } from "../../Text-BBMau410.mjs";
|
|
2
2
|
export { Display, DisplayProps, Heading, HeadingProps, Label, LabelProps, Paragraph, ParagraphProps, Span, SpanProps, TabularNumber };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as TextAreaWithStyle } from "../../TextArea-
|
|
1
|
+
import { t as TextAreaWithStyle } from "../../TextArea-BaA8H7s7.mjs";
|
|
2
2
|
export { TextAreaWithStyle as TextArea, TextAreaWithStyle as default };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a as styled } from "../../styledComponentsInterop-NxwFjeA4.mjs";
|
|
2
2
|
import { semanticColor } from "../../lib/semanticColor.mjs";
|
|
3
3
|
import { i as Paragraph, n as Heading } from "../../Text-CSwFifQF.mjs";
|
|
4
|
-
import { t as TextUnderlineTooltip } from "../../Tooltip-
|
|
4
|
+
import { t as TextUnderlineTooltip } from "../../Tooltip-DogEteGl.mjs";
|
|
5
5
|
import { n as Stack, t as HStack } from "../../Stack-BkC7FCdF.mjs";
|
|
6
|
-
import { n as Sticker } from "../../Sticker-
|
|
6
|
+
import { n as Sticker } from "../../Sticker-CUqHa9Mo.mjs";
|
|
7
7
|
import { Color, Spacing } from "@persona/design-tokens";
|
|
8
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import { ArrowRightIcon } from "@persona/icons/12px";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { a as styled, r as css } from "../../styledComponentsInterop-NxwFjeA4.mjs";
|
|
2
|
+
import { isActive, isFocused, isHovered, isNotDisabled } from "../../lib/pseudoClass.mjs";
|
|
2
3
|
import { semanticColor, semanticOnly, semanticTokens } from "../../lib/semanticColor.mjs";
|
|
3
|
-
import
|
|
4
|
+
import "../../variables/effect.mjs";
|
|
4
5
|
import "../../variables/transitions.mjs";
|
|
5
6
|
import { withAlpha } from "../../lib/color.mjs";
|
|
7
|
+
import { paragraphMixins } from "../../mixins/text.mjs";
|
|
6
8
|
import "../../lib/message.mjs";
|
|
7
|
-
import {
|
|
8
|
-
import "../../variables/effect.mjs";
|
|
9
|
-
import { t as IconButton } from "../../IconButton-Cqxfmrea.mjs";
|
|
9
|
+
import { t as IconButton } from "../../IconButton-D4awF770.mjs";
|
|
10
10
|
import { BorderRadius, Color, Spacing } from "@persona/design-tokens";
|
|
11
11
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
12
|
import { CircleAlertIcon, CircleCheckIcon, CircleInfoIcon } from "@persona/icons";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Toggle } from "../../Toggle-
|
|
1
|
+
import { t as Toggle } from "../../Toggle-C9cZnajR.mjs";
|
|
2
2
|
export { Toggle, Toggle as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as TooltipWithIconProps, n as Tooltip, r as TooltipStandardProps, t as FloatingTooltip } from "../../Tooltip-
|
|
2
|
-
import { t as HelperTooltip } from "../../HelperTooltip-
|
|
3
|
-
import { n as TextWithDashedUnderline, t as TextUnderlineTooltip } from "../../TextUnderlineTooltip-
|
|
1
|
+
import { i as TooltipWithIconProps, n as Tooltip, r as TooltipStandardProps, t as FloatingTooltip } from "../../Tooltip-Dj-DtGKz.mjs";
|
|
2
|
+
import { t as HelperTooltip } from "../../HelperTooltip-hhMFkKmn.mjs";
|
|
3
|
+
import { n as TextWithDashedUnderline, t as TextUnderlineTooltip } from "../../TextUnderlineTooltip-C4N0bqbh.mjs";
|
|
4
4
|
export { FloatingTooltip, HelperTooltip, TextUnderlineTooltip, TextWithDashedUnderline, Tooltip, Tooltip as default, TooltipStandardProps, TooltipWithIconProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as Tooltip, i as FloatingTooltip, n as TextWithDashedUnderline, r as HelperTooltip, t as TextUnderlineTooltip } from "../../Tooltip-
|
|
1
|
+
import { a as Tooltip, i as FloatingTooltip, n as TextWithDashedUnderline, r as HelperTooltip, t as TextUnderlineTooltip } from "../../Tooltip-DogEteGl.mjs";
|
|
2
2
|
export { FloatingTooltip, HelperTooltip, TextUnderlineTooltip, TextWithDashedUnderline, Tooltip, Tooltip as default };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { a as styled } from "../../styledComponentsInterop-NxwFjeA4.mjs";
|
|
2
2
|
import { semanticColor } from "../../lib/semanticColor.mjs";
|
|
3
|
-
import { i as Paragraph } from "../../Text-CSwFifQF.mjs";
|
|
4
3
|
import { focusOutline } from "../../mixins/focus.mjs";
|
|
5
4
|
import { semanticScrollbar } from "../../mixins/scrollbar.mjs";
|
|
5
|
+
import { i as Paragraph } from "../../Text-CSwFifQF.mjs";
|
|
6
6
|
import { n as Stack, t as HStack } from "../../Stack-BkC7FCdF.mjs";
|
|
7
|
-
import { n as Button, t as IconButton } from "../../IconButton-
|
|
8
|
-
import { n as DropdownMenu_default } from "../../DropdownMenu-
|
|
9
|
-
import { t as Spinner } from "../../Spinner-
|
|
10
|
-
import { i as Modal_default } from "../../Modal-
|
|
11
|
-
import { t as TextAreaWithStyle } from "../../TextArea-
|
|
12
|
-
import { n as StatusIndicator } from "../../StatusIndicator-
|
|
7
|
+
import { n as Button, t as IconButton } from "../../IconButton-D4awF770.mjs";
|
|
8
|
+
import { n as DropdownMenu_default } from "../../DropdownMenu-CPE8Q56k.mjs";
|
|
9
|
+
import { t as Spinner } from "../../Spinner-0Vqw_68r.mjs";
|
|
10
|
+
import { i as Modal_default } from "../../Modal-Cs5cZpEr.mjs";
|
|
11
|
+
import { t as TextAreaWithStyle } from "../../TextArea-BaA8H7s7.mjs";
|
|
12
|
+
import { n as StatusIndicator } from "../../StatusIndicator-QsVgjRrt.mjs";
|
|
13
13
|
import { Color, Spacing } from "@persona/design-tokens";
|
|
14
14
|
import { useCallback, useMemo, useState } from "react";
|
|
15
15
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as CompoundExpression, u as FilterRule } from "./types-
|
|
1
|
+
import { n as CompoundExpression, u as FilterRule } from "./types-DEzlAdZW.mjs";
|
|
2
2
|
|
|
3
3
|
//#region components/DataTable/TableControls/FiltersV2/AdvancedFilterRulesPopover/compound-expression.d.ts
|
|
4
4
|
declare function addRuleToGroup(compound: CompoundExpression, groupIndex: number, rule: FilterRule): CompoundExpression;
|
|
@@ -173,4 +173,4 @@ function formatDateFilterValue(value) {
|
|
|
173
173
|
//#endregion
|
|
174
174
|
export { selectedPresetFor as i, parseDateFilterValue as n, resolveDateFilterValue as r, formatDateFilterValue as t };
|
|
175
175
|
|
|
176
|
-
//# sourceMappingURL=date-filter-
|
|
176
|
+
//# sourceMappingURL=date-filter-CWgCXz85.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-filter-B8PKh5vg.mjs","names":[],"sources":["../lib/date-filter/types.ts","../lib/date-filter/codec.ts"],"sourcesContent":["/** Ordered preset list shared by date-filter consumers. */\nexport const DATE_FILTER_PRESETS = [\n 'last_7_days',\n 'last_14_days',\n 'last_30_days',\n 'this_month',\n 'last_month',\n 'this_year',\n 'last_year',\n] as const;\n\n/** Closed vocabulary of named presets the picker offers. */\nexport type DateFilterPreset = (typeof DATE_FILTER_PRESETS)[number];\n\nexport const DATE_FILTER_PRESET_LABELS: Record<DateFilterPreset, string> = {\n last_7_days: 'Last 7 days',\n last_14_days: 'Last 14 days',\n last_30_days: 'Last 30 days',\n this_month: 'This month',\n last_month: 'Last month',\n this_year: 'This year',\n last_year: 'Last year',\n};\n\nexport interface AbsoluteDateFilterValue {\n kind: 'absolute';\n startDate?: string;\n endDate?: string;\n}\n\nexport interface PresetRelativeDateFilterValue {\n kind: 'relative';\n preset: DateFilterPreset;\n}\n\nexport type RelativeDateFilterValue = PresetRelativeDateFilterValue;\n\nexport type DateFilterValue = AbsoluteDateFilterValue | RelativeDateFilterValue;\n\nexport interface AbsoluteDateRange {\n startDate?: string;\n endDate?: string;\n}\n","import { DateTime, Settings } from 'luxon';\n\nimport { DATE_FILTER_PRESET_LABELS, DATE_FILTER_PRESETS } from './types';\nimport type {\n AbsoluteDateFilterValue,\n AbsoluteDateRange,\n DateFilterPreset,\n DateFilterValue,\n PresetRelativeDateFilterValue,\n RelativeDateFilterValue,\n} from './types';\n\ntype InternalWindow =\n | { mode: 'rolling-days'; days: number }\n | { mode: 'calendar'; unit: 'month' | 'year'; offset: 0 | 1 };\n\nconst PRESET_WINDOWS = {\n last_7_days: { mode: 'rolling-days', days: 7 },\n last_14_days: { mode: 'rolling-days', days: 14 },\n last_30_days: { mode: 'rolling-days', days: 30 },\n this_month: { mode: 'calendar', unit: 'month', offset: 0 },\n last_month: { mode: 'calendar', unit: 'month', offset: 1 },\n this_year: { mode: 'calendar', unit: 'year', offset: 0 },\n last_year: { mode: 'calendar', unit: 'year', offset: 1 },\n} satisfies Record<DateFilterPreset, InternalWindow>;\n\nconst DATE_FILTER_PRESET_SET = new Set<DateFilterPreset>(DATE_FILTER_PRESETS);\n\nfunction isOptionalString(value: unknown): value is string | undefined {\n return typeof value === 'undefined' || typeof value === 'string';\n}\n\nfunction normalizeOptionalString(value: unknown): unknown {\n return value == null ? undefined : value;\n}\n\nfunction isAbsoluteDateFilterValue(value: unknown): value is AbsoluteDateFilterValue {\n if (typeof value !== 'object' || value == null || Array.isArray(value)) {\n return false;\n }\n const record = value as Record<string, unknown>;\n return (\n record.kind === 'absolute' &&\n isOptionalString(normalizeOptionalString(record.startDate)) &&\n isOptionalString(normalizeOptionalString(record.endDate))\n );\n}\n\nfunction isPresetRelativeDateFilterValue(value: unknown): value is PresetRelativeDateFilterValue {\n if (typeof value !== 'object' || value == null || Array.isArray(value)) {\n return false;\n }\n const record = value as Record<string, unknown>;\n return (\n record.kind === 'relative' &&\n typeof record.preset === 'string' &&\n DATE_FILTER_PRESET_SET.has(record.preset as DateFilterPreset)\n );\n}\n\nfunction normalizedAbsoluteDateRange(value: Record<string, unknown>): AbsoluteDateRange {\n return {\n startDate: normalizeOptionalString(value.startDate) as string | undefined,\n endDate: normalizeOptionalString(value.endDate) as string | undefined,\n };\n}\n\nexport function parseDateFilterValue(raw: unknown): DateFilterValue | null {\n if (typeof raw !== 'object' || raw == null || Array.isArray(raw)) {\n return null;\n }\n const value = raw as Record<string, unknown>;\n if (!('kind' in value)) {\n if (\n ('startDate' in value || 'endDate' in value) &&\n isOptionalString(normalizeOptionalString(value.startDate)) &&\n isOptionalString(normalizeOptionalString(value.endDate))\n ) {\n return {\n kind: 'absolute',\n ...normalizedAbsoluteDateRange(value),\n };\n }\n return null;\n }\n if (isAbsoluteDateFilterValue(value)) {\n return {\n kind: 'absolute',\n ...normalizedAbsoluteDateRange(value),\n };\n }\n if (isPresetRelativeDateFilterValue(value)) {\n return {\n kind: 'relative',\n preset: value.preset,\n };\n }\n return 'startDate' in value || 'endDate' in value\n ? parseDateFilterValue({ startDate: value.startDate, endDate: value.endDate })\n : null;\n}\n\nfunction relativeWindowFor(value: RelativeDateFilterValue): InternalWindow {\n return PRESET_WINDOWS[value.preset];\n}\n\nfunction dateTimeToISO(value: DateTime): string {\n const iso = value.toISO();\n if (iso == null) {\n throw new Error(\n `Unable to evaluate invalid date: ${value.invalidExplanation ?? 'unknown error'}`,\n );\n }\n return iso;\n}\n\nfunction isValidZone(zone: string): boolean {\n return DateTime.utc().setZone(zone).isValid;\n}\n\nfunction resolvedZone(zone?: string): string {\n if (zone && isValidZone(zone)) {\n return zone;\n }\n\n const defaultZone = Settings.defaultZone.name;\n return isValidZone(defaultZone) ? defaultZone : 'UTC';\n}\n\nfunction evaluationNow(context: { zone?: string; now?: DateTime }): DateTime {\n // Constructing `DateTime.now()` uses Settings.defaultZone and is itself invalid\n // when an application has configured an unsupported default zone. UTC gives us\n // the same instant without depending on that ambient setting.\n const now = context.now ?? DateTime.utc();\n if (!now.isValid) {\n throw new Error(\n `Unable to evaluate invalid date: ${now.invalidExplanation ?? 'unknown error'}`,\n );\n }\n\n const zonedNow = now.setZone(resolvedZone(context.zone));\n if (!zonedNow.isValid) {\n throw new Error(\n `Unable to evaluate invalid date: ${zonedNow.invalidExplanation ?? 'unknown error'}`,\n );\n }\n return zonedNow;\n}\n\nfunction evaluateRelative(\n value: RelativeDateFilterValue,\n context: { zone?: string; now?: DateTime },\n): Required<AbsoluteDateRange> {\n const window = relativeWindowFor(value);\n const zonedNow = evaluationNow(context);\n let start: DateTime;\n let end: DateTime;\n\n if (window.mode === 'rolling-days') {\n end = zonedNow.endOf('day');\n // Preserve the established picker and legacy-filter contract: `days` is a\n // lookback offset, so the start date and today are both included.\n start = zonedNow.minus({ days: window.days }).startOf('day');\n } else {\n const referencedPeriod = zonedNow.minus({ [window.unit]: window.offset });\n start = referencedPeriod.startOf(window.unit);\n end = window.offset === 0 ? zonedNow.endOf('day') : referencedPeriod.endOf(window.unit);\n }\n\n return { startDate: dateTimeToISO(start), endDate: dateTimeToISO(end) };\n}\n\nexport function resolveDateFilterValue(\n value: RelativeDateFilterValue,\n context?: { zone?: string; now?: DateTime },\n): Required<AbsoluteDateRange>;\nexport function resolveDateFilterValue(\n value: DateFilterValue,\n context?: { zone?: string; now?: DateTime },\n): AbsoluteDateRange;\nexport function resolveDateFilterValue(\n value: DateFilterValue,\n context: { zone?: string; now?: DateTime } = {},\n): AbsoluteDateRange {\n if (!isRelative(value)) {\n return {\n startDate: value.startDate,\n endDate: value.endDate,\n };\n }\n return evaluateRelative(value, context);\n}\n\n/**\n * Which preset a control should render as selected.\n *\n * Only stored metadata makes a value semantic. Once writes are enabled an absolute\n * value means the user picked dates, so inferring a preset from them would relabel\n * their choice; with writes disabled no metadata is ever stored, so inference is\n * the only thing that can highlight a preset at all.\n *\n * `undefined` asks the picker to infer from the dates, `null` selects nothing.\n */\nexport function selectedPresetFor(\n value: DateFilterValue | null,\n writesEnabled: boolean,\n): DateFilterPreset | null | undefined {\n if (value != null && isRelative(value)) {\n return value.preset;\n }\n return writesEnabled ? null : undefined;\n}\n\nexport function isRelative(value: DateFilterValue): value is RelativeDateFilterValue {\n return value.kind === 'relative';\n}\n\nexport function formatDateFilterValue(value: DateFilterValue): string | null {\n if (!isRelative(value)) {\n return null;\n }\n return DATE_FILTER_PRESET_LABELS[value.preset];\n}\n"],"mappings":";;;AACA,MAAa,sBAAsB;CACjC;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AAKD,MAAa,4BAA8D;CACzE,aAAa;CACb,cAAc;CACd,cAAc;CACd,YAAY;CACZ,YAAY;CACZ,WAAW;CACX,WAAW;CACZ;;;ACND,MAAM,iBAAiB;CACrB,aAAa;EAAE,MAAM;EAAgB,MAAM;EAAG;CAC9C,cAAc;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,gBAAgB;AAClC,QAAM,SAAS,MAAM,MAAM;AAG3B,UAAQ,SAAS,MAAM,EAAE,MAAM,OAAO,MAAM,CAAC,CAAC,QAAQ,MAAM;QACvD;EACL,MAAM,mBAAmB,SAAS,MAAM,GAAG,OAAO,OAAO,OAAO,QAAQ,CAAC;AACzE,UAAQ,iBAAiB,QAAQ,OAAO,KAAK;AAC7C,QAAM,OAAO,WAAW,IAAI,SAAS,MAAM,MAAM,GAAG,iBAAiB,MAAM,OAAO,KAAK;;AAGzF,QAAO;EAAE,WAAW,cAAc,MAAM;EAAE,SAAS,cAAc,IAAI;EAAE;;AAWzE,SAAgB,uBACd,OACA,UAA6C,EAAE,EAC5B;AACnB,KAAI,CAAC,WAAW,MAAM,CACpB,QAAO;EACL,WAAW,MAAM;EACjB,SAAS,MAAM;EAChB;AAEH,QAAO,iBAAiB,OAAO,QAAQ;;;;;;;;;;;;AAazC,SAAgB,kBACd,OACA,eACqC;AACrC,KAAI,SAAS,QAAQ,WAAW,MAAM,CACpC,QAAO,MAAM;AAEf,QAAO,gBAAgB,OAAO,KAAA;;AAGhC,SAAgB,WAAW,OAA0D;AACnF,QAAO,MAAM,SAAS;;AAGxB,SAAgB,sBAAsB,OAAuC;AAC3E,KAAI,CAAC,WAAW,MAAM,CACpB,QAAO;AAET,QAAO,0BAA0B,MAAM"}
|
|
1
|
+
{"version":3,"file":"date-filter-CWgCXz85.mjs","names":[],"sources":["../lib/date-filter/types.ts","../lib/date-filter/codec.ts"],"sourcesContent":["/** Ordered preset list shared by date-filter consumers. */\nexport const DATE_FILTER_PRESETS = [\n 'last_7_days',\n 'last_14_days',\n 'last_30_days',\n 'this_month',\n 'last_month',\n 'this_year',\n 'last_year',\n] as const;\n\n/** Closed vocabulary of named presets the picker offers. */\nexport type DateFilterPreset = (typeof DATE_FILTER_PRESETS)[number];\n\nexport const DATE_FILTER_PRESET_LABELS: Record<DateFilterPreset, string> = {\n last_7_days: 'Last 7 days',\n last_14_days: 'Last 14 days',\n last_30_days: 'Last 30 days',\n this_month: 'This month',\n last_month: 'Last month',\n this_year: 'This year',\n last_year: 'Last year',\n};\n\nexport interface AbsoluteDateFilterValue {\n kind: 'absolute';\n startDate?: string;\n endDate?: string;\n}\n\nexport interface PresetRelativeDateFilterValue {\n kind: 'relative';\n preset: DateFilterPreset;\n}\n\nexport type RelativeDateFilterValue = PresetRelativeDateFilterValue;\n\nexport type DateFilterValue = AbsoluteDateFilterValue | RelativeDateFilterValue;\n\nexport interface AbsoluteDateRange {\n startDate?: string;\n endDate?: string;\n}\n","import { DateTime, Settings } from 'luxon';\n\nimport { DATE_FILTER_PRESET_LABELS, DATE_FILTER_PRESETS } from './types';\nimport type {\n AbsoluteDateFilterValue,\n AbsoluteDateRange,\n DateFilterPreset,\n DateFilterValue,\n PresetRelativeDateFilterValue,\n RelativeDateFilterValue,\n} from './types';\n\ntype InternalWindow =\n | { mode: 'rolling-days'; days: number }\n | { mode: 'calendar'; unit: 'month' | 'year'; offset: 0 | 1 };\n\nconst PRESET_WINDOWS = {\n last_7_days: { mode: 'rolling-days', days: 7 },\n last_14_days: { mode: 'rolling-days', days: 14 },\n last_30_days: { mode: 'rolling-days', days: 30 },\n this_month: { mode: 'calendar', unit: 'month', offset: 0 },\n last_month: { mode: 'calendar', unit: 'month', offset: 1 },\n this_year: { mode: 'calendar', unit: 'year', offset: 0 },\n last_year: { mode: 'calendar', unit: 'year', offset: 1 },\n} satisfies Record<DateFilterPreset, InternalWindow>;\n\nconst DATE_FILTER_PRESET_SET = new Set<DateFilterPreset>(DATE_FILTER_PRESETS);\n\nfunction isOptionalString(value: unknown): value is string | undefined {\n return typeof value === 'undefined' || typeof value === 'string';\n}\n\nfunction normalizeOptionalString(value: unknown): unknown {\n return value == null ? undefined : value;\n}\n\nfunction isAbsoluteDateFilterValue(value: unknown): value is AbsoluteDateFilterValue {\n if (typeof value !== 'object' || value == null || Array.isArray(value)) {\n return false;\n }\n const record = value as Record<string, unknown>;\n return (\n record.kind === 'absolute' &&\n isOptionalString(normalizeOptionalString(record.startDate)) &&\n isOptionalString(normalizeOptionalString(record.endDate))\n );\n}\n\nfunction isPresetRelativeDateFilterValue(value: unknown): value is PresetRelativeDateFilterValue {\n if (typeof value !== 'object' || value == null || Array.isArray(value)) {\n return false;\n }\n const record = value as Record<string, unknown>;\n return (\n record.kind === 'relative' &&\n typeof record.preset === 'string' &&\n DATE_FILTER_PRESET_SET.has(record.preset as DateFilterPreset)\n );\n}\n\nfunction normalizedAbsoluteDateRange(value: Record<string, unknown>): AbsoluteDateRange {\n return {\n startDate: normalizeOptionalString(value.startDate) as string | undefined,\n endDate: normalizeOptionalString(value.endDate) as string | undefined,\n };\n}\n\nexport function parseDateFilterValue(raw: unknown): DateFilterValue | null {\n if (typeof raw !== 'object' || raw == null || Array.isArray(raw)) {\n return null;\n }\n const value = raw as Record<string, unknown>;\n if (!('kind' in value)) {\n if (\n ('startDate' in value || 'endDate' in value) &&\n isOptionalString(normalizeOptionalString(value.startDate)) &&\n isOptionalString(normalizeOptionalString(value.endDate))\n ) {\n return {\n kind: 'absolute',\n ...normalizedAbsoluteDateRange(value),\n };\n }\n return null;\n }\n if (isAbsoluteDateFilterValue(value)) {\n return {\n kind: 'absolute',\n ...normalizedAbsoluteDateRange(value),\n };\n }\n if (isPresetRelativeDateFilterValue(value)) {\n return {\n kind: 'relative',\n preset: value.preset,\n };\n }\n return 'startDate' in value || 'endDate' in value\n ? parseDateFilterValue({ startDate: value.startDate, endDate: value.endDate })\n : null;\n}\n\nfunction relativeWindowFor(value: RelativeDateFilterValue): InternalWindow {\n return PRESET_WINDOWS[value.preset];\n}\n\nfunction dateTimeToISO(value: DateTime): string {\n const iso = value.toISO();\n if (iso == null) {\n throw new Error(\n `Unable to evaluate invalid date: ${value.invalidExplanation ?? 'unknown error'}`,\n );\n }\n return iso;\n}\n\nfunction isValidZone(zone: string): boolean {\n return DateTime.utc().setZone(zone).isValid;\n}\n\nfunction resolvedZone(zone?: string): string {\n if (zone && isValidZone(zone)) {\n return zone;\n }\n\n const defaultZone = Settings.defaultZone.name;\n return isValidZone(defaultZone) ? defaultZone : 'UTC';\n}\n\nfunction evaluationNow(context: { zone?: string; now?: DateTime }): DateTime {\n // Constructing `DateTime.now()` uses Settings.defaultZone and is itself invalid\n // when an application has configured an unsupported default zone. UTC gives us\n // the same instant without depending on that ambient setting.\n const now = context.now ?? DateTime.utc();\n if (!now.isValid) {\n throw new Error(\n `Unable to evaluate invalid date: ${now.invalidExplanation ?? 'unknown error'}`,\n );\n }\n\n const zonedNow = now.setZone(resolvedZone(context.zone));\n if (!zonedNow.isValid) {\n throw new Error(\n `Unable to evaluate invalid date: ${zonedNow.invalidExplanation ?? 'unknown error'}`,\n );\n }\n return zonedNow;\n}\n\nfunction evaluateRelative(\n value: RelativeDateFilterValue,\n context: { zone?: string; now?: DateTime },\n): Required<AbsoluteDateRange> {\n const window = relativeWindowFor(value);\n const zonedNow = evaluationNow(context);\n let start: DateTime;\n let end: DateTime;\n\n if (window.mode === 'rolling-days') {\n end = zonedNow.endOf('day');\n // Preserve the established picker and legacy-filter contract: `days` is a\n // lookback offset, so the start date and today are both included.\n start = zonedNow.minus({ days: window.days }).startOf('day');\n } else {\n const referencedPeriod = zonedNow.minus({ [window.unit]: window.offset });\n start = referencedPeriod.startOf(window.unit);\n end = window.offset === 0 ? zonedNow.endOf('day') : referencedPeriod.endOf(window.unit);\n }\n\n return { startDate: dateTimeToISO(start), endDate: dateTimeToISO(end) };\n}\n\nexport function resolveDateFilterValue(\n value: RelativeDateFilterValue,\n context?: { zone?: string; now?: DateTime },\n): Required<AbsoluteDateRange>;\nexport function resolveDateFilterValue(\n value: DateFilterValue,\n context?: { zone?: string; now?: DateTime },\n): AbsoluteDateRange;\nexport function resolveDateFilterValue(\n value: DateFilterValue,\n context: { zone?: string; now?: DateTime } = {},\n): AbsoluteDateRange {\n if (!isRelative(value)) {\n return {\n startDate: value.startDate,\n endDate: value.endDate,\n };\n }\n return evaluateRelative(value, context);\n}\n\n/**\n * Which preset a control should render as selected.\n *\n * Only stored metadata makes a value semantic. Once writes are enabled an absolute\n * value means the user picked dates, so inferring a preset from them would relabel\n * their choice; with writes disabled no metadata is ever stored, so inference is\n * the only thing that can highlight a preset at all.\n *\n * `undefined` asks the picker to infer from the dates, `null` selects nothing.\n */\nexport function selectedPresetFor(\n value: DateFilterValue | null,\n writesEnabled: boolean,\n): DateFilterPreset | null | undefined {\n if (value != null && isRelative(value)) {\n return value.preset;\n }\n return writesEnabled ? null : undefined;\n}\n\nexport function isRelative(value: DateFilterValue): value is RelativeDateFilterValue {\n return value.kind === 'relative';\n}\n\nexport function formatDateFilterValue(value: DateFilterValue): string | null {\n if (!isRelative(value)) {\n return null;\n }\n return DATE_FILTER_PRESET_LABELS[value.preset];\n}\n"],"mappings":";;;AACA,MAAa,sBAAsB;CACjC;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AAKD,MAAa,4BAA8D;CACzE,aAAa;CACb,cAAc;CACd,cAAc;CACd,YAAY;CACZ,YAAY;CACZ,WAAW;CACX,WAAW;CACZ;;;ACND,MAAM,iBAAiB;CACrB,aAAa;EAAE,MAAM;EAAgB,MAAM;EAAG;CAC9C,cAAc;EAAE,MAAM;EAAgB,MAAM;EAAI;CAChD,cAAc;EAAE,MAAM;EAAgB,MAAM;EAAI;CAChD,YAAY;EAAE,MAAM;EAAY,MAAM;EAAS,QAAQ;EAAG;CAC1D,YAAY;EAAE,MAAM;EAAY,MAAM;EAAS,QAAQ;EAAG;CAC1D,WAAW;EAAE,MAAM;EAAY,MAAM;EAAQ,QAAQ;EAAG;CACxD,WAAW;EAAE,MAAM;EAAY,MAAM;EAAQ,QAAQ;EAAG;CACzD;AAED,MAAM,yBAAyB,IAAI,IAAsB,oBAAoB;AAE7E,SAAS,iBAAiB,OAA6C;AACrE,QAAO,OAAO,UAAU,eAAe,OAAO,UAAU;;AAG1D,SAAS,wBAAwB,OAAyB;AACxD,QAAO,SAAS,OAAO,KAAA,IAAY;;AAG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jB,SAAS,MAAM;EAChB;AAEH,QAAO,iBAAiB,OAAO,QAAQ;;;;;;;;;;;;AAazC,SAAgB,kBACd,OACA,eACqC;AACrC,KAAI,SAAS,QAAQ,WAAW,MAAM,CACpC,QAAO,MAAM;AAEf,QAAO,gBAAgB,OAAO,KAAA;;AAGhC,SAAgB,WAAW,OAA0D;AACnF,QAAO,MAAM,SAAS;;AAGxB,SAAgB,sBAAsB,OAAuC;AAC3E,KAAI,CAAC,WAAW,MAAM,CACpB,QAAO;AAET,QAAO,0BAA0B,MAAM"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as FilterFieldType, r as DateRangeFilterValue, u as FilterRule } from "./types-
|
|
1
|
+
import { c as FilterFieldType, r as DateRangeFilterValue, u as FilterRule } from "./types-DEzlAdZW.mjs";
|
|
2
2
|
|
|
3
3
|
//#region components/DataTable/TableControls/FiltersV2/date-range-rule-value.d.ts
|
|
4
4
|
/**
|
|
@@ -14,4 +14,4 @@ import { c as FilterFieldType, r as DateRangeFilterValue, u as FilterRule } from
|
|
|
14
14
|
declare function resolveDateRangeRuleValue(rule: Pick<FilterRule, 'operator' | 'relativeDate' | 'value'>, fieldType?: FilterFieldType): DateRangeFilterValue | null;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { resolveDateRangeRuleValue as t };
|
|
17
|
-
//# sourceMappingURL=date-range-rule-value-
|
|
17
|
+
//# sourceMappingURL=date-range-rule-value-BkbGpLNH.d.mts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as resolveDateRangeRuleValue } from "./date-range-rule-value-
|
|
1
|
+
import { t as resolveDateRangeRuleValue } from "./date-range-rule-value-BkbGpLNH.mjs";
|
|
2
2
|
export { resolveDateRangeRuleValue };
|
package/dist/display.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as FilterFieldType, d as FilterRuleValue, l as FilterOperator, o as FilterField, u as FilterRule } from "./types-
|
|
2
|
-
import { i as CommonStrings } from "./strings-
|
|
1
|
+
import { c as FilterFieldType, d as FilterRuleValue, l as FilterOperator, o as FilterField, u as FilterRule } from "./types-DEzlAdZW.mjs";
|
|
2
|
+
import { i as CommonStrings } from "./strings-CUZrwL-Q.mjs";
|
|
3
3
|
//#region components/DataTable/TableControls/FiltersV2/AdvancedFilterRulesPopover/display.d.ts
|
|
4
4
|
interface ValueDisplayOptions {
|
|
5
5
|
/** `PDSProvider` locale for date values; English format when omitted. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as ComboboxOptionsOrGroups } from "./ComboboxBase-
|
|
2
|
-
import { t as FieldRegistry } from "./FieldRegistry-
|
|
1
|
+
import { o as ComboboxOptionsOrGroups } from "./ComboboxBase-2nVpt8oj.mjs";
|
|
2
|
+
import { t as FieldRegistry } from "./FieldRegistry-DAk_3PhH.mjs";
|
|
3
3
|
|
|
4
4
|
//#region components/DataTable/TableControls/FiltersV2/fieldPickerOptions.d.ts
|
|
5
5
|
declare const FIELDS_SUBMENU_LABEL = "Fields";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as FilterSize } from "./types-
|
|
1
|
+
import { p as FilterSize } from "./types-DEzlAdZW.mjs";
|
|
2
2
|
import * as _$react from "react";
|
|
3
3
|
|
|
4
4
|
//#region components/DataTable/TableControls/FiltersV2/filter-size-context.d.ts
|
|
@@ -49,4 +49,4 @@ declare const FILTER_SIZE_TOKENS: Record<FilterSize, FilterSizeTokens>;
|
|
|
49
49
|
declare function useFilterSizeTokens(override?: FilterSize): FilterSizeTokens;
|
|
50
50
|
//#endregion
|
|
51
51
|
export { useFilterBarSize as a, FilterSizeTokens as i, FilterBarContext as n, useFilterSizeTokens as o, FilterBarContextValue as r, FILTER_SIZE_TOKENS as t };
|
|
52
|
-
//# sourceMappingURL=filter-size-context-
|
|
52
|
+
//# sourceMappingURL=filter-size-context-CW1guBfI.d.mts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as useFilterBarSize, i as FilterSizeTokens, n as FilterBarContext, o as useFilterSizeTokens, r as FilterBarContextValue, t as FILTER_SIZE_TOKENS } from "./filter-size-context-
|
|
1
|
+
import { a as useFilterBarSize, i as FilterSizeTokens, n as FilterBarContext, o as useFilterSizeTokens, r as FilterBarContextValue, t as FILTER_SIZE_TOKENS } from "./filter-size-context-CW1guBfI.mjs";
|
|
2
2
|
export { FILTER_SIZE_TOKENS, FilterBarContext, FilterBarContextValue, FilterSizeTokens, useFilterBarSize, useFilterSizeTokens };
|
package/dist/helpers.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as CheckboxProps } from "./Checkbox-CVa8WOf2.mjs";
|
|
2
|
-
import { i as CommonStrings } from "./strings-
|
|
2
|
+
import { i as CommonStrings } from "./strings-CUZrwL-Q.mjs";
|
|
3
3
|
import { DataTableColumnFormat, DataTableColumnImageFormat, DataTableColumnPiiFormat, DataTableColumnStringFormat, DateConfig, DatetimeConfig, RenderValueStickerFormatConfig } from "./components/DataTable/types.mjs";
|
|
4
4
|
import { ReactNode } from "react";
|
|
5
5
|
|
|
@@ -111,7 +111,10 @@ const DEFAULT_COMMON_STRINGS = {
|
|
|
111
111
|
operatorGreaterThan: ">",
|
|
112
112
|
operatorGreaterThanOrEqual: "≥",
|
|
113
113
|
operatorLessThan: "<",
|
|
114
|
-
operatorLessThanOrEqual: "≤"
|
|
114
|
+
operatorLessThanOrEqual: "≤",
|
|
115
|
+
operatorIsEqualTo: "is equal to",
|
|
116
|
+
operatorIsGreaterThan: "is greater than",
|
|
117
|
+
operatorIsLessThan: "is less than"
|
|
115
118
|
};
|
|
116
119
|
/**
|
|
117
120
|
* Layer `overrides` on top of `base`. A value only replaces the base entry when it has the same
|
|
@@ -206,4 +209,4 @@ function formatTimeZoneName(dateTime, locale) {
|
|
|
206
209
|
//#endregion
|
|
207
210
|
export { formatTimeZoneName as a, usePDSLocale as c, resolveCommonStrings as d, formatDateTime as i, usePDSStrings as l, LEGACY_DATE_FORMAT as n, usesLegacyDateFormat as o, formatDate as r, PDSI18nProvider as s, LEGACY_DATETIME_FORMAT as t, DEFAULT_COMMON_STRINGS as u };
|
|
208
211
|
|
|
209
|
-
//# sourceMappingURL=i18n-
|
|
212
|
+
//# sourceMappingURL=i18n-CeRarJIa.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i18n-CeRarJIa.mjs","names":[],"sources":["../lib/i18n/strings.ts","../lib/i18n/I18nContext.tsx","../lib/i18n/formatDateTime.ts"],"sourcesContent":["/**\n * Built-in, user-visible copy rendered by PDS components.\n *\n * Every key has an English default in `DEFAULT_COMMON_STRINGS`. Hosts translate by passing\n * overrides to `PDSProvider`'s `strings` prop; any key they omit keeps its English default.\n * Function-valued keys take the interpolated values (counts, names, labels) as arguments.\n *\n * Key names line up with the `CommonStringOverrides` tables that\n * `@persona-id/persona-dashboard-app` ships (`useCommonStrings()`), so a dashboard can pass\n * those tables straight through.\n */\ntype Arg = string | number;\n\nexport interface CommonStrings {\n // --- DataTable --------------------------------------------------------------------------\n noResults: string;\n noResultsTryFilters: string;\n noColumnsConfigured: string;\n selectAll: string;\n selectAllOf: (header: Arg) => string;\n selectRow: (rowId: Arg) => string;\n selectRowForColumn: (columnHeader: Arg, rowId: Arg) => string;\n clearSelection: string;\n selectedItems: (count: Arg) => string;\n noImage: string;\n viewRowActions: (rowNumber: Arg) => string;\n\n // --- Pagination -------------------------------------------------------------------------\n pagination: string;\n itemsPerPage: string;\n showingItems: (firstItem: Arg, lastItem: Arg, totalItems: Arg) => string;\n /**\n * Totals phrase rendered right after the current page (the go-to-page input, or the page number\n * as text), e.g. `of 3 pages` in `[1] of 3 pages`. Return only that phrase: the current page is\n * already on screen, so do not interpolate `currentPage` into the result. It is passed only for\n * languages whose wording depends on it. `totalPages` is `many` when the total is unknown.\n */\n pageCount: (currentPage: Arg, totalPages: Arg) => string;\n /** Stands in for an unknown total (\"of many pages\") when the server only knows a lower bound. */\n many: string;\n goToPageNumber: string;\n previousPage: string;\n nextPage: string;\n previousShort: string;\n next: string;\n\n // --- Column configuration (table properties gear) --------------------------------------\n tableProperties: string;\n configureViewPermissionDenied: string;\n configureColumns: string;\n searchColumns: string;\n shownColumns: string;\n hiddenColumns: string;\n noMatchingColumns: string;\n showColumn: (label: Arg) => string;\n hideColumn: (label: Arg) => string;\n\n // --- Saved views (control bar tabs) -----------------------------------------------------\n defaultView: string;\n saveView: string;\n saveCurrentView: string;\n addNewView: string;\n searchViews: string;\n moreViews: (count: Arg) => string;\n duplicateView: string;\n resetView: string;\n saveViewMenuItem: string;\n setAsDefaultView: string;\n alreadyDefaultView: string;\n showView: string;\n hideView: string;\n hideViewTitle: string;\n hideViewNamed: (viewName: Arg) => string;\n delete: string;\n cancel: string;\n deleteViewTitle: string;\n deleteViewConfirmation: (viewName: Arg) => string;\n showFilters: string;\n hideFilters: string;\n showSearchBar: string;\n\n // --- Filters V2: bar, pills and field picker -------------------------------------------\n filterBar: string;\n filter: string;\n filterFieldPicker: string;\n fields: string;\n editFilter: (description: Arg) => string;\n removeFilter: (description: Arg) => string;\n editFilterFor: (fieldLabel: Arg) => string;\n additionalValues: string;\n operator: string;\n groupCount: (count: Arg) => string;\n booleanTrue: string;\n booleanFalse: string;\n booleanValue: string;\n fieldValue: (fieldLabel: Arg) => string;\n applyFilter: string;\n selectAnOptionPlaceholder: string;\n enterAValue: string;\n enterANumber: string;\n searchPlaceholder: string;\n noMatches: string;\n\n // --- Filters V2: advanced rules builder -------------------------------------------------\n rules: string;\n rulesWithCount: (count: Arg) => string;\n advancedFilterRules: string;\n conditionIf: string;\n conditionAnd: string;\n conditionOr: string;\n editStatement: (condition: Arg) => string;\n clearAll: string;\n deleteGroup: string;\n filterGroup: (groupNumber: Arg) => string;\n moreActionsForFilterGroup: (groupNumber: Arg) => string;\n addRuleToFilterGroup: (groupNumber: Arg) => string;\n noRulesYet: string;\n rulesInGroup: (groupNumber: Arg) => string;\n orGroup: string;\n field: string;\n value: string;\n selectField: string;\n fieldForRule: (ruleNumber: Arg, groupNumber: Arg) => string;\n operatorForRule: (ruleNumber: Arg, groupNumber: Arg) => string;\n\n // --- Filters V2: operator labels --------------------------------------------------------\n operatorIs: string;\n operatorIsNot: string;\n operatorContains: string;\n operatorDoesNotContain: string;\n operatorIsEmpty: string;\n operatorIsNotEmpty: string;\n operatorIsTrue: string;\n operatorIsFalse: string;\n operatorBefore: string;\n operatorAfter: string;\n operatorBetween: string;\n operatorIsAnyOf: string;\n operatorIsNoneOf: string;\n operatorGreaterThan: string;\n operatorGreaterThanOrEqual: string;\n operatorLessThan: string;\n operatorLessThanOrEqual: string;\n /** Numeric (`integer` / `float`) field operators, e.g. \"Members is equal to 5\". */\n operatorIsEqualTo: string;\n operatorIsGreaterThan: string;\n operatorIsLessThan: string;\n}\n\nexport type CommonStringKey = keyof CommonStrings;\n\n/** A single override value: plain copy, or a formatter for keys that interpolate. */\nexport type CommonStringValue = string | ((...args: Arg[]) => string);\n\n/**\n * What `PDSProvider` accepts. Deliberately loose (any string key, string or formatter value) so a\n * host's translation table can be passed through untyped; values whose kind does not match the\n * default (a string where a formatter is expected, or vice versa) are ignored.\n */\nexport type CommonStringOverrides = Readonly<Record<string, CommonStringValue | undefined>>;\n\nexport const DEFAULT_COMMON_STRINGS: Readonly<CommonStrings> = {\n noResults: 'No results found.',\n noResultsTryFilters: 'No results found. Try changing your filters.',\n noColumnsConfigured: 'No columns configured',\n selectAll: 'Select all',\n selectAllOf: (header) => `Select all ${header}`,\n selectRow: (rowId) => `Select row ${rowId}`,\n selectRowForColumn: (columnHeader, rowId) => `${columnHeader} for row ${rowId}`,\n clearSelection: 'Clear selection',\n selectedItems: (count) => `${count} selected`,\n noImage: 'No image',\n viewRowActions: (rowNumber) => `View actions for row ${rowNumber}`,\n\n pagination: 'pagination',\n itemsPerPage: 'Items per page:',\n showingItems: (firstItem, lastItem, totalItems) =>\n `Showing ${firstItem}-${lastItem} of ${totalItems} items`,\n pageCount: (_currentPage, totalPages) => `of ${totalPages} pages`,\n many: 'many',\n goToPageNumber: 'Go to page number',\n previousPage: 'Previous page',\n nextPage: 'Next page',\n previousShort: 'Prev',\n next: 'Next',\n\n tableProperties: 'Table Properties',\n configureViewPermissionDenied: 'Your role does not have permission to configure the view.',\n configureColumns: 'Configure columns',\n searchColumns: 'Search by item...',\n shownColumns: 'Shown attributes',\n hiddenColumns: 'Hidden attributes',\n noMatchingColumns: 'No matching attributes',\n showColumn: (label) => `Show ${label}`,\n hideColumn: (label) => `Hide ${label}`,\n\n defaultView: 'Default view',\n saveView: 'Save view',\n saveCurrentView: 'Save current view',\n addNewView: 'Add new view',\n searchViews: 'Search for a view...',\n moreViews: (count) => `${count} more\\u2026`,\n duplicateView: 'Duplicate',\n resetView: 'Reset',\n saveViewMenuItem: 'Save',\n setAsDefaultView: 'Set as default',\n alreadyDefaultView: 'Already the default',\n showView: 'Show',\n hideView: 'Hide',\n hideViewTitle: 'Hide view',\n hideViewNamed: (viewName) => `Hide ${viewName}`,\n delete: 'Delete',\n cancel: 'Cancel',\n deleteViewTitle: 'Delete view?',\n deleteViewConfirmation: (viewName) =>\n `This will permanently delete \\u201c${viewName}\\u201d. This action cannot be undone.`,\n showFilters: 'Show filters',\n hideFilters: 'Hide filters',\n showSearchBar: 'Show search bar',\n\n filterBar: 'Filter bar',\n filter: 'Filter',\n filterFieldPicker: 'Filter field picker',\n fields: 'Fields',\n editFilter: (description) => `Edit filter: ${description}`,\n removeFilter: (description) => `Remove filter: ${description}`,\n editFilterFor: (fieldLabel) => `Edit filter for ${fieldLabel}`,\n additionalValues: 'Additional values',\n operator: 'Operator',\n groupCount: (count) => `${count} group${Number(count) === 1 ? '' : 's'}`,\n booleanTrue: 'True',\n booleanFalse: 'False',\n booleanValue: 'Boolean value',\n fieldValue: (fieldLabel) => `${fieldLabel} value`,\n applyFilter: 'Apply filter',\n selectAnOptionPlaceholder: 'Select an option',\n enterAValue: 'Enter a value',\n enterANumber: 'Enter a number',\n searchPlaceholder: 'Search',\n noMatches: 'No matches',\n\n rules: 'Rules',\n rulesWithCount: (count) => `Rules ${count}`,\n advancedFilterRules: 'Advanced filter rules',\n conditionIf: 'If',\n conditionAnd: 'And',\n conditionOr: 'Or',\n editStatement: (condition) => `Edit \\u2018${condition}\\u2019 statement`,\n clearAll: 'Clear all',\n deleteGroup: 'Delete group',\n filterGroup: (groupNumber) => `Filter group ${groupNumber}`,\n moreActionsForFilterGroup: (groupNumber) => `More actions for filter group ${groupNumber}`,\n addRuleToFilterGroup: (groupNumber) => `Add rule to filter group ${groupNumber}`,\n noRulesYet: 'No rules yet',\n rulesInGroup: (groupNumber) => `Rules in group ${groupNumber}`,\n orGroup: 'Or group',\n field: 'Field',\n value: 'Value',\n selectField: 'Select field',\n fieldForRule: (ruleNumber, groupNumber) => `Field for rule ${ruleNumber} in group ${groupNumber}`,\n operatorForRule: (ruleNumber, groupNumber) =>\n `Operator for rule ${ruleNumber} in group ${groupNumber}`,\n\n operatorIs: 'is',\n operatorIsNot: 'is not',\n operatorContains: 'contains',\n operatorDoesNotContain: 'does not contain',\n operatorIsEmpty: 'is empty',\n operatorIsNotEmpty: 'is not empty',\n operatorIsTrue: 'is true',\n operatorIsFalse: 'is false',\n operatorBefore: 'before',\n operatorAfter: 'after',\n operatorBetween: 'is between',\n operatorIsAnyOf: 'is any of',\n operatorIsNoneOf: 'is none of',\n operatorGreaterThan: '>',\n operatorGreaterThanOrEqual: '≥',\n operatorLessThan: '<',\n operatorLessThanOrEqual: '≤',\n operatorIsEqualTo: 'is equal to',\n operatorIsGreaterThan: 'is greater than',\n operatorIsLessThan: 'is less than',\n};\n\n/**\n * Layer `overrides` on top of `base`. A value only replaces the base entry when it has the same\n * kind (string vs. formatter), so a mistyped override can never crash a render.\n */\nexport function resolveCommonStrings(\n overrides: CommonStringOverrides | undefined,\n base: Readonly<CommonStrings> = DEFAULT_COMMON_STRINGS,\n): CommonStrings {\n const resolved = { ...base } as Record<CommonStringKey, CommonStringValue>;\n if (!overrides) {\n return resolved as unknown as CommonStrings;\n }\n (Object.keys(base) as CommonStringKey[]).forEach((key) => {\n const override = Object.prototype.hasOwnProperty.call(overrides, key)\n ? overrides[key]\n : undefined;\n if (override != null && typeof override === typeof base[key]) {\n resolved[key] = override;\n }\n });\n return resolved as unknown as CommonStrings;\n}\n","import { createContext, useContext, useMemo, type FC, type PropsWithChildren } from 'react';\n\nimport {\n DEFAULT_COMMON_STRINGS,\n resolveCommonStrings,\n type CommonStringOverrides,\n type CommonStrings,\n} from './strings';\n\ninterface PDSI18nContextValue {\n strings: CommonStrings;\n locale: string | undefined;\n}\n\nconst PDSI18nContext = createContext<PDSI18nContextValue>({\n strings: DEFAULT_COMMON_STRINGS,\n locale: undefined,\n});\n\nexport interface PDSI18nProviderProps {\n /** Overrides for built-in copy; omitted keys inherit from an outer provider, then English. */\n strings?: CommonStringOverrides;\n /** BCP 47 locale for date/time formatting; inherits from an outer provider when omitted. */\n locale?: string;\n}\n\n/**\n * Supplies translated built-in copy and the active locale to PDS components. `PDSProvider`\n * always renders this; use it directly only to override a subtree.\n */\nexport const PDSI18nProvider: FC<PropsWithChildren<PDSI18nProviderProps>> = ({\n strings,\n locale,\n children,\n}) => {\n const parent = useContext(PDSI18nContext);\n const value = useMemo(\n () => ({\n strings: strings ? resolveCommonStrings(strings, parent.strings) : parent.strings,\n locale: locale ?? parent.locale,\n }),\n [parent, strings, locale],\n );\n return <PDSI18nContext.Provider value={value}>{children}</PDSI18nContext.Provider>;\n};\n\n/** Built-in copy for the current locale (English unless a provider supplied overrides). */\nexport function usePDSStrings(): CommonStrings {\n return useContext(PDSI18nContext).strings;\n}\n\n/** The locale supplied to `PDSProvider`, or `undefined` when the host has not set one. */\nexport function usePDSLocale(): string | undefined {\n return useContext(PDSI18nContext).locale;\n}\n","import { DateTime, type DateTimeFormatOptions } from 'luxon';\n\n/** Luxon medium date, e.g. \"Oct 5, 2011\". */\nexport const LEGACY_DATE_FORMAT = 'DD';\n/** e.g. \"Oct 5, 2011 2:48 PM\". */\nexport const LEGACY_DATETIME_FORMAT = 'MMM d, yyyy h:mm a';\n/** Short time zone name, e.g. \"EDT\" (en-US) or \"HAE\" (fr-CA). */\nconst TIME_ZONE_TOKEN = 'ZZZZ';\n\n/**\n * Whether `locale` keeps PDS's historical English token formats. No locale (a host that has not\n * opted in) and US English render exactly as before; every other locale gets `Intl` presets so\n * the day/month order, month names, 24-hour clock and separators follow the locale.\n */\nexport function usesLegacyDateFormat(locale: string | undefined): boolean {\n if (!locale) {\n return true;\n }\n const normalized = locale.toLowerCase().replace('_', '-');\n return normalized === 'en' || normalized === 'en-us';\n}\n\nexport interface FormatDateTimeOptions {\n /** BCP 47 locale, usually from `usePDSLocale()`. */\n locale?: string;\n /** Explicit Luxon `toFormat` tokens; month/day names still localize when a locale is set. */\n format?: string;\n /** Append the short time zone name, localized (\"EDT\" in en-US, \"HAE\" in fr-CA). */\n showTimeZone?: boolean;\n}\n\nfunction withLocale(dateTime: DateTime, locale: string | undefined): DateTime {\n return locale ? dateTime.setLocale(locale) : dateTime;\n}\n\nfunction format(\n dateTime: DateTime,\n legacyFormat: string,\n preset: DateTimeFormatOptions,\n { locale, format: explicitFormat, showTimeZone }: FormatDateTimeOptions,\n): string {\n const localized = withLocale(dateTime, locale);\n if (explicitFormat || usesLegacyDateFormat(locale)) {\n const formatted = localized.toFormat(explicitFormat ?? legacyFormat);\n return showTimeZone ? `${formatted} ${localized.toFormat(TIME_ZONE_TOKEN)}` : formatted;\n }\n return localized.toLocaleString(showTimeZone ? { ...preset, timeZoneName: 'short' } : preset);\n}\n\n/** Format a calendar date for display (\"Oct 5, 2011\" / \"5 oct. 2011\"). */\nexport function formatDate(dateTime: DateTime, options: FormatDateTimeOptions = {}): string {\n return format(dateTime, LEGACY_DATE_FORMAT, DateTime.DATE_MED, options);\n}\n\n/** Format a date and time for display (\"Oct 5, 2011 2:48 PM\" / \"5 oct. 2011, 14 h 48\"). */\nexport function formatDateTime(dateTime: DateTime, options: FormatDateTimeOptions = {}): string {\n return format(dateTime, LEGACY_DATETIME_FORMAT, DateTime.DATETIME_MED, options);\n}\n\n/** The short time zone name for `dateTime`'s zone in `locale` (\"EDT\" / \"HAE\"). */\nexport function formatTimeZoneName(dateTime: DateTime, locale?: string): string {\n return withLocale(dateTime, locale).toFormat(TIME_ZONE_TOKEN);\n}\n"],"mappings":";;;;AAiKA,MAAa,yBAAkD;CAC7D,WAAW;CACX,qBAAqB;CACrB,qBAAqB;CACrB,WAAW;CACX,cAAc,WAAW,cAAc;CACvC,YAAY,UAAU,cAAc;CACpC,qBAAqB,cAAc,UAAU,GAAG,aAAa,WAAW;CACxE,gBAAgB;CAChB,gBAAgB,UAAU,GAAG,MAAM;CACnC,SAAS;CACT,iBAAiB,cAAc,wBAAwB;CAEvD,YAAY;CACZ,cAAc;CACd,eAAe,WAAW,UAAU,eAClC,WAAW,UAAU,GAAG,SAAS,MAAM,WAAW;CACpD,YAAY,cAAc,eAAe,MAAM,WAAW;CAC1D,MAAM;CACN,gBAAgB;CAChB,cAAc;CACd,UAAU;CACV,eAAe;CACf,MAAM;CAEN,iBAAiB;CACjB,+BAA+B;CAC/B,kBAAkB;CAClB,eAAe;CACf,cAAc;CACd,eAAe;CACf,mBAAmB;CACnB,aAAa,UAAU,QAAQ;CAC/B,aAAa,UAAU,QAAQ;CAE/B,aAAa;CACb,UAAU;CACV,iBAAiB;CACjB,YAAY;CACZ,aAAa;CACb,YAAY,UAAU,GAAG,MAAM;CAC/B,eAAe;CACf,WAAW;CACX,kBAAkB;CAClB,kBAAkB;CAClB,oBAAoB;CACpB,UAAU;CACV,UAAU;CACV,eAAe;CACf,gBAAgB,aAAa,QAAQ;CACrC,QAAQ;CACR,QAAQ;CACR,iBAAiB;CACjB,yBAAyB,aACvB,sCAAsC,SAAS;CACjD,aAAa;CACb,aAAa;CACb,eAAe;CAEf,WAAW;CACX,QAAQ;CACR,mBAAmB;CACnB,QAAQ;CACR,aAAa,gBAAgB,gBAAgB;CAC7C,eAAe,g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MAA8B,SAAS,UAAU,QAAQ;;;AAIzE,SAAgB,eAAe,UAAoB,UAAiC,EAAE,EAAU;AAC9F,QAAO,OAAO,UAAU,wBAAwB,SAAS,cAAc,QAAQ;;;AAIjF,SAAgB,mBAAmB,UAAoB,QAAyB;AAC9E,QAAO,WAAW,UAAU,OAAO,CAAC,SAAS,gBAAgB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as FilterBarProps$1 } from "./FilterBar-
|
|
1
|
+
import { n as FilterBarProps$1 } from "./FilterBar-C7ch6kYM.mjs";
|
|
2
2
|
|
|
3
3
|
//#region components/DataTable/TableControls/FiltersV2/FilterBar/index.d.ts
|
|
4
4
|
type FilterBarProps = FilterBarProps$1;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { FilterBarProps as t };
|
|
7
|
-
//# sourceMappingURL=index-
|
|
7
|
+
//# sourceMappingURL=index-C7hEdRqK.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as ListBoxItemProps, r as ListBoxProps$1 } from "./ListBox
|
|
2
|
-
import { n as LogicRowProps } from "./LogicRow-
|
|
1
|
+
import { n as ListBoxItemProps, r as ListBoxProps$1 } from "./ListBox-CjGb0mMY.mjs";
|
|
2
|
+
import { n as LogicRowProps } from "./LogicRow-Bt6NPLOd.mjs";
|
|
3
3
|
import * as _$react from "react";
|
|
4
4
|
import * as _$react_aria_components0 from "react-aria-components";
|
|
5
5
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
@@ -52,4 +52,4 @@ declare const ListBox: {
|
|
|
52
52
|
};
|
|
53
53
|
//#endregion
|
|
54
54
|
export { ListBox as t };
|
|
55
|
-
//# sourceMappingURL=index-
|
|
55
|
+
//# sourceMappingURL=index-DxFh2ArY.d.mts.map
|
package/dist/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as Root, i as HeaderProps, n as Header, o as Title, r as HeaderContainer, s as TitleContainer, t as ActionsContainer } from "./Header-
|
|
1
|
+
import { a as Root, i as HeaderProps, n as Header, o as Title, r as HeaderContainer, s as TitleContainer, t as ActionsContainer } from "./Header-C-a5fL3k.mjs";
|
|
2
2
|
export { ActionsContainer, HeaderContainer, HeaderProps, Root, Title, TitleContainer, Header as default };
|
package/dist/index3.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as resolveValueControl } from "./value-control-resolver-
|
|
2
|
-
import { t as FilterBar } from "./FilterBar-
|
|
3
|
-
import { t as FilterBarProps } from "./index-
|
|
1
|
+
import { r as resolveValueControl } from "./value-control-resolver-BcZiReQ7.mjs";
|
|
2
|
+
import { t as FilterBar } from "./FilterBar-C7ch6kYM.mjs";
|
|
3
|
+
import { t as FilterBarProps } from "./index-C7hEdRqK.mjs";
|
|
4
4
|
export { FilterBarProps, FilterBar as default, resolveValueControl };
|
package/dist/index4.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as PillShellProps, t as PillShell } from "./PillShell-
|
|
1
|
+
import { n as PillShellProps, t as PillShell } from "./PillShell-jr6OyAd3.mjs";
|
|
2
2
|
export { PillShellProps, PillShell as default };
|
package/dist/index5.d.mts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { t as dateRuleIntent } from "./date-rule-intent-zdKP-tW_.mjs";
|
|
2
|
-
import { a as FilterConditionOperator, c as FilterFieldType, d as FilterRuleValue, f as FilterRuleValueChange, g as isEmptyState, h as TopLevelFilterRule, i as EMPTY_FILTER_STATE, l as FilterOperator, m as FilterStateV2, n as CompoundExpression, o as FilterField, p as FilterSize, r as DateRangeFilterValue, s as FilterFieldSource, t as AndGroup, u as FilterRule } from "./types-
|
|
3
|
-
import { t as resolveDateRangeRuleValue } from "./date-range-rule-value-
|
|
4
|
-
import { n as RawFieldInfo, r as buildFieldRegistry, t as FieldRegistry } from "./FieldRegistry-
|
|
5
|
-
import { n as ValueControlResolver, r as resolveValueControl, t as ResolveValueControlOptions } from "./value-control-resolver-
|
|
6
|
-
import { t as FilterBar } from "./FilterBar-
|
|
7
|
-
import { t as FilterBarProps } from "./index-
|
|
8
|
-
import { a as useFilterBarSize, i as FilterSizeTokens, t as FILTER_SIZE_TOKENS } from "./filter-size-context-
|
|
9
|
-
import { n as PillShellProps, t as PillShell } from "./PillShell-
|
|
10
|
-
import {
|
|
11
|
-
import { a as decodeFilterStateFromUrl, i as decodeFilterStateFromString, n as UrlStateCodecResult, o as encodeFilterStateToUrlParam, r as applyFilterStateToSearchParams, t as FILTER_STATE_URL_PARAM } from "./url-state-
|
|
12
|
-
import { n as UseFilterStateV2Result, r as useFilterStateV2, t as UseFilterStateV2Options } from "./useFilterStateV2-
|
|
13
|
-
import { n as isFilterStateV2, r as pruneToRegistry, t as hasCompleteValue } from "./validation-
|
|
14
|
-
import { t as ValueControlProps } from "./types-
|
|
15
|
-
export { AndGroup, CompoundExpression, DateRangeFilterValue, EMPTY_FILTER_STATE, FILTER_SIZE_TOKENS, FILTER_STATE_URL_PARAM, FieldRegistry, FilterBar, FilterBarProps, FilterConditionOperator, FilterField, FilterFieldSource, FilterFieldType, FilterOperator, FilterRule, FilterRuleValue, FilterRuleValueChange, FilterSize, FilterSizeTokens, FilterStateV2, PillShell, PillShellProps, RawFieldInfo, ResolveValueControlOptions, TopLevelFilterRule, UrlStateCodecResult, UseFilterStateV2Options, UseFilterStateV2Result, ValueControlProps, ValueControlResolver, applyFilterStateToSearchParams, buildFieldRegistry, dateRuleIntent, decodeFilterStateFromString, decodeFilterStateFromUrl, emptyValueForRule, encodeFilterStateToUrlParam, getDefaultOperatorForType, getOperatorsForField, getOperatorsForType, hasCompleteValue, isCompleteDateRange, isEmptyState, isFilterStateV2, isRangeOperator, isValuelessOperator, pruneToRegistry, reconcileValueForOperator, resolveDateRangeRuleValue, resolveValueControl, useFilterBarSize, useFilterStateV2 };
|
|
2
|
+
import { a as FilterConditionOperator, c as FilterFieldType, d as FilterRuleValue, f as FilterRuleValueChange, g as isEmptyState, h as TopLevelFilterRule, i as EMPTY_FILTER_STATE, l as FilterOperator, m as FilterStateV2, n as CompoundExpression, o as FilterField, p as FilterSize, r as DateRangeFilterValue, s as FilterFieldSource, t as AndGroup, u as FilterRule } from "./types-DEzlAdZW.mjs";
|
|
3
|
+
import { t as resolveDateRangeRuleValue } from "./date-range-rule-value-BkbGpLNH.mjs";
|
|
4
|
+
import { n as RawFieldInfo, r as buildFieldRegistry, t as FieldRegistry } from "./FieldRegistry-DAk_3PhH.mjs";
|
|
5
|
+
import { n as ValueControlResolver, r as resolveValueControl, t as ResolveValueControlOptions } from "./value-control-resolver-BcZiReQ7.mjs";
|
|
6
|
+
import { t as FilterBar } from "./FilterBar-C7ch6kYM.mjs";
|
|
7
|
+
import { t as FilterBarProps } from "./index-C7hEdRqK.mjs";
|
|
8
|
+
import { a as useFilterBarSize, i as FilterSizeTokens, t as FILTER_SIZE_TOKENS } from "./filter-size-context-CW1guBfI.mjs";
|
|
9
|
+
import { n as PillShellProps, t as PillShell } from "./PillShell-jr6OyAd3.mjs";
|
|
10
|
+
import { _ as isNumericComparisonOperator, a as emptyValueForRule, b as reconcileValueForOperator, c as getDefaultOperatorForType, d as getOperatorsForType, n as NumericComparisonOperator, p as isCompleteDateRange, t as NUMERIC_COMPARISON_OPERATORS, u as getOperatorsForField, v as isRangeOperator, y as isValuelessOperator } from "./operators-C34nhBuK.mjs";
|
|
11
|
+
import { a as decodeFilterStateFromUrl, i as decodeFilterStateFromString, n as UrlStateCodecResult, o as encodeFilterStateToUrlParam, r as applyFilterStateToSearchParams, t as FILTER_STATE_URL_PARAM } from "./url-state-B_gTQ9uu.mjs";
|
|
12
|
+
import { n as UseFilterStateV2Result, r as useFilterStateV2, t as UseFilterStateV2Options } from "./useFilterStateV2-BQZppUR0.mjs";
|
|
13
|
+
import { n as isFilterStateV2, r as pruneToRegistry, t as hasCompleteValue } from "./validation-BODkbEvr.mjs";
|
|
14
|
+
import { t as ValueControlProps } from "./types-C_ZEgHNa.mjs";
|
|
15
|
+
export { AndGroup, CompoundExpression, DateRangeFilterValue, EMPTY_FILTER_STATE, FILTER_SIZE_TOKENS, FILTER_STATE_URL_PARAM, FieldRegistry, FilterBar, FilterBarProps, FilterConditionOperator, FilterField, FilterFieldSource, FilterFieldType, FilterOperator, FilterRule, FilterRuleValue, FilterRuleValueChange, FilterSize, FilterSizeTokens, FilterStateV2, NUMERIC_COMPARISON_OPERATORS, NumericComparisonOperator, PillShell, PillShellProps, RawFieldInfo, ResolveValueControlOptions, TopLevelFilterRule, UrlStateCodecResult, UseFilterStateV2Options, UseFilterStateV2Result, ValueControlProps, ValueControlResolver, applyFilterStateToSearchParams, buildFieldRegistry, dateRuleIntent, decodeFilterStateFromString, decodeFilterStateFromUrl, emptyValueForRule, encodeFilterStateToUrlParam, getDefaultOperatorForType, getOperatorsForField, getOperatorsForType, hasCompleteValue, isCompleteDateRange, isEmptyState, isFilterStateV2, isNumericComparisonOperator, isRangeOperator, isValuelessOperator, pruneToRegistry, reconcileValueForOperator, resolveDateRangeRuleValue, resolveValueControl, useFilterBarSize, useFilterStateV2 };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { n as CheckboxProps } from "./Checkbox-CVa8WOf2.mjs";
|
|
2
|
-
import { n as ComboboxMultiSelectProps } from "./ComboboxMultiSelect-
|
|
3
|
-
import { n as ComboboxSingleSelectProps } from "./ComboboxSingleSelect-
|
|
4
|
-
import { n as FormFieldBaseProps } from "./FormField-
|
|
5
|
-
import { a as InputProps } from "./Input-
|
|
2
|
+
import { n as ComboboxMultiSelectProps } from "./ComboboxMultiSelect-BvJ--m6z.mjs";
|
|
3
|
+
import { n as ComboboxSingleSelectProps } from "./ComboboxSingleSelect-BWrnRA2x.mjs";
|
|
4
|
+
import { n as FormFieldBaseProps } from "./FormField-C80kGAIV.mjs";
|
|
5
|
+
import { a as InputProps } from "./Input-D3lXfJHq.mjs";
|
|
6
6
|
import { n as RadioGroupProps } from "./RadioGroup-CDEfCg-b.mjs";
|
|
7
7
|
import { i as SegmentedControlProps } from "./SegmentedControl-C_7mTcuL.mjs";
|
|
8
|
-
import { i as SelectProps } from "./Select-
|
|
8
|
+
import { i as SelectProps } from "./Select-BpAA5ETS.mjs";
|
|
9
9
|
import { t as TextAreaProps } from "./TextArea-Djd1uT3B.mjs";
|
|
10
10
|
import { n as ToggleProps } from "./Toggle-EYpW34LO.mjs";
|
|
11
11
|
import * as _$react from "react";
|
|
@@ -68,4 +68,4 @@ type ComboboxMultiSelectFieldProps<T = string> = ImplementsFormField & ComboboxM
|
|
|
68
68
|
declare const ComboboxField: (props: ComboboxSingleSelectFieldProps | ComboboxMultiSelectFieldProps) => _$react_jsx_runtime0.JSX.Element;
|
|
69
69
|
//#endregion
|
|
70
70
|
export { ToggleField as _, ComboboxSingleSelectFieldProps as a, RadioGroupFieldProps as c, SelectField as d, SelectFieldProps as f, TextFieldProps as g, TextField as h, ComboboxMultiSelectFieldProps as i, SegmentedControlField as l, TextAreaFieldProps as m, CheckboxFieldProps as n, ImplementsFormField as o, TextAreaField as p, ComboboxField as r, RadioGroupField as s, CheckboxField as t, SegmentedControlFieldProps as u, ToggleFieldProps as v, splitOutFormFieldProps as y };
|
|
71
|
-
//# sourceMappingURL=inputFields-
|
|
71
|
+
//# sourceMappingURL=inputFields-BCNC1FWx.d.mts.map
|
package/dist/inputFields.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as ToggleField, a as ComboboxSingleSelectFieldProps, c as RadioGroupFieldProps, d as SelectField, f as SelectFieldProps, g as TextFieldProps, h as TextField, i as ComboboxMultiSelectFieldProps, l as SegmentedControlField, m as TextAreaFieldProps, n as CheckboxFieldProps, o as ImplementsFormField, p as TextAreaField, r as ComboboxField, s as RadioGroupField, t as CheckboxField, u as SegmentedControlFieldProps, v as ToggleFieldProps, y as splitOutFormFieldProps } from "./inputFields-
|
|
1
|
+
import { _ as ToggleField, a as ComboboxSingleSelectFieldProps, c as RadioGroupFieldProps, d as SelectField, f as SelectFieldProps, g as TextFieldProps, h as TextField, i as ComboboxMultiSelectFieldProps, l as SegmentedControlField, m as TextAreaFieldProps, n as CheckboxFieldProps, o as ImplementsFormField, p as TextAreaField, r as ComboboxField, s as RadioGroupField, t as CheckboxField, u as SegmentedControlFieldProps, v as ToggleFieldProps, y as splitOutFormFieldProps } from "./inputFields-BCNC1FWx.mjs";
|
|
2
2
|
export { CheckboxField, CheckboxFieldProps, ComboboxField, ComboboxMultiSelectFieldProps, ComboboxSingleSelectFieldProps, ImplementsFormField, RadioGroupField, RadioGroupFieldProps, SegmentedControlField, SegmentedControlFieldProps, SelectField, SelectFieldProps, TextAreaField, TextAreaFieldProps, TextField, TextFieldProps, ToggleField, ToggleFieldProps, splitOutFormFieldProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intersperse-
|
|
1
|
+
{"version":3,"file":"intersperse-B8s6clcc.mjs","names":[],"sources":["../lib/intersperse.ts"],"sourcesContent":["/**\n * @name intersperse\n *\n * Inserts an element between array items using a separator function. The\n * separator function is passed the previous index, the previous element, and\n * the next element.\n *\n * ```typescript\n * const nodeList: React.ReactNode[] = [...]\n * const commaSeparatedList = intersperse(nodeList, () => ', ')\n * const advancedSeparatedList = intersperse(nodeList, i => <Separator key={i}/>)\n * ```\n */\nexport function intersperse<T>(arr: T[], separator: (n: number, prev: T, curr: T) => T): T[] {\n return arr.flatMap((a, i) => (i > 0 ? [separator(i - 1, arr[i - 1], a), a] : [a]));\n}\n"],"mappings":";;;;;;;;;;;;;;AAaA,SAAgB,YAAe,KAAU,WAAoD;AAC3F,QAAO,IAAI,SAAS,GAAG,MAAO,IAAI,IAAI,CAAC,UAAU,IAAI,GAAG,IAAI,IAAI,IAAI,EAAE,EAAE,EAAE,GAAG,CAAC,EAAE,CAAE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as PersonaTheme } from "../theme-BKg55Zk1.mjs";
|
|
2
2
|
import { n as RouterAdapter } from "../types-CgKSEQyB.mjs";
|
|
3
|
-
import { n as CommonStringOverrides } from "../strings-
|
|
3
|
+
import { n as CommonStringOverrides } from "../strings-CUZrwL-Q.mjs";
|
|
4
4
|
import { FC, PropsWithChildren } from "react";
|
|
5
5
|
|
|
6
6
|
//#region lib/PDSProvider.d.ts
|
package/dist/lib/PDSProvider.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import defaultTheme from "../theme.mjs";
|
|
2
2
|
import { t as ThemeProvider } from "../styledComponentsInterop-NxwFjeA4.mjs";
|
|
3
|
-
import { s as PDSI18nProvider } from "../i18n-
|
|
3
|
+
import { s as PDSI18nProvider } from "../i18n-CeRarJIa.mjs";
|
|
4
4
|
import { n as RouterProvider } from "../RouterContext-nPSb55p9.mjs";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
//#region lib/PDSProvider.tsx
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as TruncatedText, r as TruncatedTextProps, t as OverflowEllipsisSpan } from "../TruncatedText-
|
|
1
|
+
import { n as TruncatedText, r as TruncatedTextProps, t as OverflowEllipsisSpan } from "../TruncatedText-BDNFUuhG.mjs";
|
|
2
2
|
export { OverflowEllipsisSpan, TruncatedText, TruncatedText as default, TruncatedTextProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useIsOverflow } from "./useIsOverflow.mjs";
|
|
2
2
|
import { OverflowEllipsisSpan } from "./TruncatedText.mjs";
|
|
3
|
-
import { a as Tooltip } from "../Tooltip-
|
|
3
|
+
import { a as Tooltip } from "../Tooltip-DogEteGl.mjs";
|
|
4
4
|
import { useRef } from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
//#region lib/TruncatedTextWithTooltip.tsx
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as selectedPresetFor, n as parseDateFilterValue, r as resolveDateFilterValue } from "../../date-filter-
|
|
1
|
+
import { i as selectedPresetFor, n as parseDateFilterValue, r as resolveDateFilterValue } from "../../date-filter-CWgCXz85.mjs";
|
|
2
2
|
export { parseDateFilterValue, resolveDateFilterValue, selectedPresetFor };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as DEFAULT_COMMON_STRINGS, i as CommonStrings, n as CommonStringOverrides, o as resolveCommonStrings, r as CommonStringValue, t as CommonStringKey } from "../../strings-
|
|
2
|
-
import { i as usePDSStrings, n as PDSI18nProviderProps, r as usePDSLocale, t as PDSI18nProvider } from "../../I18nContext-
|
|
1
|
+
import { a as DEFAULT_COMMON_STRINGS, i as CommonStrings, n as CommonStringOverrides, o as resolveCommonStrings, r as CommonStringValue, t as CommonStringKey } from "../../strings-CUZrwL-Q.mjs";
|
|
2
|
+
import { i as usePDSStrings, n as PDSI18nProviderProps, r as usePDSLocale, t as PDSI18nProvider } from "../../I18nContext-ioYM_vqG.mjs";
|
|
3
3
|
import { a as formatDateTime, i as formatDate, n as LEGACY_DATETIME_FORMAT, o as formatTimeZoneName, r as LEGACY_DATE_FORMAT, s as usesLegacyDateFormat, t as FormatDateTimeOptions } from "../../formatDateTime-zyRMjfH8.mjs";
|
|
4
4
|
export { CommonStringKey, CommonStringOverrides, CommonStringValue, CommonStrings, DEFAULT_COMMON_STRINGS, FormatDateTimeOptions, LEGACY_DATETIME_FORMAT, LEGACY_DATE_FORMAT, PDSI18nProvider, PDSI18nProviderProps, formatDate, formatDateTime, formatTimeZoneName, resolveCommonStrings, usePDSLocale, usePDSStrings, usesLegacyDateFormat };
|
package/dist/lib/i18n/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as formatTimeZoneName, c as usePDSLocale, d as resolveCommonStrings, i as formatDateTime, l as usePDSStrings, n as LEGACY_DATE_FORMAT, o as usesLegacyDateFormat, r as formatDate, s as PDSI18nProvider, t as LEGACY_DATETIME_FORMAT, u as DEFAULT_COMMON_STRINGS } from "../../i18n-
|
|
1
|
+
import { a as formatTimeZoneName, c as usePDSLocale, d as resolveCommonStrings, i as formatDateTime, l as usePDSStrings, n as LEGACY_DATE_FORMAT, o as usesLegacyDateFormat, r as formatDate, s as PDSI18nProvider, t as LEGACY_DATETIME_FORMAT, u as DEFAULT_COMMON_STRINGS } from "../../i18n-CeRarJIa.mjs";
|
|
2
2
|
export { DEFAULT_COMMON_STRINGS, LEGACY_DATETIME_FORMAT, LEGACY_DATE_FORMAT, PDSI18nProvider, formatDate, formatDateTime, formatTimeZoneName, resolveCommonStrings, usePDSLocale, usePDSStrings, usesLegacyDateFormat };
|
package/dist/lib/useChain.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as useChain, r as useChainSchema, t as chainRootsFromSchemaProperties } from "../useChain-
|
|
1
|
+
import { n as useChain, r as useChainSchema, t as chainRootsFromSchemaProperties } from "../useChain-DPRVMwX8.mjs";
|
|
2
2
|
export { chainRootsFromSchemaProperties, useChain as default, useChainSchema };
|
package/dist/mixins/focus.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as css } from "../styledComponentsInterop-NxwFjeA4.mjs";
|
|
2
|
-
import { semanticColor } from "../lib/semanticColor.mjs";
|
|
3
2
|
import { isFocusedVisible, isNotDisabled } from "../lib/pseudoClass.mjs";
|
|
3
|
+
import { semanticColor } from "../lib/semanticColor.mjs";
|
|
4
4
|
import { Color } from "@persona/design-tokens";
|
|
5
5
|
//#region mixins/focus.ts
|
|
6
6
|
const focusColor = (theme) => semanticColor(theme, "BorderFocus", Color.BorderFocus);
|