@persona/design-system 0.8.1 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +62 -0
- package/dist/Accordion.d.mts +1 -1
- package/dist/AccordionItem.d.mts +1 -1
- package/dist/{Action-BwYS9qaG.d.mts → Action-DcK0fRrq.d.mts} +3 -3
- 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 +3 -3
- package/dist/{Badge-D-5tbZDw.mjs → Badge-DLuyKRCQ.mjs} +2 -2
- package/dist/{Badge-D-5tbZDw.mjs.map → Badge-DLuyKRCQ.mjs.map} +1 -1
- package/dist/BooleanValueControl.d.mts +1 -1
- package/dist/{Breadcrumb-BADja8tn.d.mts → Breadcrumb-CEHEUe8l.d.mts} +1 -1
- package/dist/Breadcrumb.d.mts +1 -1
- package/dist/{Breadcrumbs-CNpM0aXm.mjs → Breadcrumbs-B8aXFPdV.mjs} +8 -8
- package/dist/{Breadcrumbs-CNpM0aXm.mjs.map → Breadcrumbs-B8aXFPdV.mjs.map} +1 -1
- package/dist/{Breadcrumbs-CxP7ktfM.d.mts → Breadcrumbs-BQ-Gj6UV.d.mts} +2 -2
- package/dist/Breadcrumbs.d.mts +1 -1
- package/dist/{Button-CnswHEJ2.d.mts → Button-DKUomFPj.d.mts} +4 -4
- package/dist/Button.d.mts +1 -1
- package/dist/{Calendar-Cke5IlMI.d.mts → Calendar-BvsTQ3e1.d.mts} +1 -1
- package/dist/Calendar.d.mts +1 -1
- package/dist/CalendarBase.d.mts +1 -1
- package/dist/{Card-Dz6jqJuJ.mjs → Card-BXNxWX5C.mjs} +4 -4
- package/dist/{Card-Dz6jqJuJ.mjs.map → Card-BXNxWX5C.mjs.map} +1 -1
- package/dist/{Card-Bp6L08H4.d.mts → Card-DMXDx1W7.d.mts} +3 -3
- package/dist/Card.d.mts +1 -1
- package/dist/CardGrouping.d.mts +38 -0
- package/dist/{CardV2-DEW6mw_o.mjs → CardV2-JPGFAqui.mjs} +9 -9
- package/dist/{CardV2-DEW6mw_o.mjs.map → CardV2-JPGFAqui.mjs.map} +1 -1
- package/dist/{Checkbox-DUXws1Os.d.mts → Checkbox-CVa8WOf2.d.mts} +1 -1
- package/dist/{Checkbox-GibG2pg5.mjs → Checkbox-iSBIpu0l.mjs} +4 -4
- package/dist/{Checkbox-GibG2pg5.mjs.map → Checkbox-iSBIpu0l.mjs.map} +1 -1
- package/dist/Checkbox.d.mts +1 -1
- package/dist/{CheckboxGroupField-DzdOYIjo.d.mts → CheckboxGroupField-BMJwuTpJ.d.mts} +3 -3
- package/dist/CheckboxGroupField.d.mts +1 -1
- package/dist/ChoicesValueControl.d.mts +1 -1
- package/dist/{Combobox-CCDoNF9Y.mjs → Combobox-BkpRqaxB.mjs} +72 -28
- package/dist/Combobox-BkpRqaxB.mjs.map +1 -0
- package/dist/{Combobox-CnxmKUQf.d.mts → Combobox-C2R9eTPr.d.mts} +3 -3
- package/dist/Combobox.d.mts +2 -2
- package/dist/{ComboboxBase-CtNrsPO9.d.mts → ComboboxBase-BghIk4Vk.d.mts} +6 -6
- package/dist/ComboboxBase.d.mts +1 -1
- package/dist/{ComboboxMultiSelect-CMH6iVu4.d.mts → ComboboxMultiSelect-CIOHnhrv.d.mts} +2 -2
- package/dist/ComboboxMultiSelect.d.mts +1 -1
- package/dist/{ComboboxSingleSelect-BLPbLmMY.d.mts → ComboboxSingleSelect-C1JZxli3.d.mts} +5 -4
- package/dist/ComboboxSingleSelect.d.mts +1 -1
- package/dist/{CompactBar-BwKIIlWz.d.mts → CompactBar-DPJAY1NB.d.mts} +3 -3
- package/dist/CompactBar.d.mts +1 -1
- package/dist/{ConfigFormGroup-BQXN2Pgj.mjs → ConfigFormGroup-BBIJsQgy.mjs} +2 -2
- package/dist/{ConfigFormGroup-BQXN2Pgj.mjs.map → ConfigFormGroup-BBIJsQgy.mjs.map} +1 -1
- package/dist/{ControlBar-BJUY6GOX.d.mts → ControlBar-Cg36sjz3.d.mts} +17 -2
- package/dist/ControlBar.d.mts +1 -1
- package/dist/DataTable.d.mts +6 -3
- package/dist/{DateField-BojOHfrv.d.mts → DateField-BXUuqbnb.d.mts} +2 -2
- package/dist/DateField.d.mts +1 -1
- package/dist/{DatePicker-LPIJrc0n.mjs → DatePicker-CjuR6ORz.mjs} +40 -8
- package/dist/DatePicker-CjuR6ORz.mjs.map +1 -0
- package/dist/{DatePicker-BHVx_i_F.d.mts → DatePicker-Cmn1vViU.d.mts} +2 -2
- package/dist/DatePicker.d.mts +1 -1
- package/dist/{DateRangePicker-CelDK_44.d.mts → DateRangePicker-CKhp9Obv.d.mts} +3 -3
- package/dist/DateRangePicker.d.mts +1 -1
- package/dist/DateRangeValueControl.d.mts +2 -2
- package/dist/DateValueControl.d.mts +1 -1
- package/dist/{DropdownButton-i5Dmxiq1.mjs → DropdownButton-CRJDAGjJ.mjs} +3 -3
- package/dist/{DropdownButton-i5Dmxiq1.mjs.map → DropdownButton-CRJDAGjJ.mjs.map} +1 -1
- package/dist/DropdownButton.d.mts +2 -2
- package/dist/{DropdownMenu-j8NWbAvM.mjs → DropdownMenu-C2BHv8Lc.mjs} +2 -2
- package/dist/{DropdownMenu-j8NWbAvM.mjs.map → DropdownMenu-C2BHv8Lc.mjs.map} +1 -1
- package/dist/{DropdownMenu-YtLxcNWt.d.mts → DropdownMenu-CNkQDiJr.d.mts} +2 -2
- package/dist/DropdownMenu.d.mts +1 -1
- package/dist/{ErrorProps-6dRdJ4QQ.d.mts → ErrorProps-oCHtJzEB.d.mts} +1 -1
- package/dist/ErrorProps.d.mts +1 -1
- package/dist/{FieldRegistry-DqO8HiYb.d.mts → FieldRegistry-B7P4wC7y.d.mts} +2 -2
- package/dist/FieldRegistry.d.mts +1 -1
- package/dist/{FilterBar-CpAA2Ozk.d.mts → FilterBar-clWmrKkT.d.mts} +4 -4
- package/dist/FilterBar.d.mts +1 -1
- package/dist/FilterPickerMenu.d.mts +3 -3
- package/dist/FilterPill.d.mts +1 -1
- package/dist/FilterPopover.d.mts +3 -1
- package/dist/FloatValueControl.d.mts +2 -2
- package/dist/{FormControl-B-s6G9mp.d.mts → FormControl-C44o35FL.d.mts} +2 -2
- package/dist/{FormControl-bDxFF0hl.mjs → FormControl-jfjKwUfK.mjs} +4 -4
- package/dist/{FormControl-bDxFF0hl.mjs.map → FormControl-jfjKwUfK.mjs.map} +1 -1
- package/dist/FormControl.d.mts +1 -1
- package/dist/FormControlLabel.d.mts +1 -1
- package/dist/{FormField-DbcqNcx2.mjs → FormField-C3nUzhGT.mjs} +16 -16
- package/dist/{FormField-DbcqNcx2.mjs.map → FormField-C3nUzhGT.mjs.map} +1 -1
- package/dist/{FormField-D3k-f3-f.d.mts → FormField-CXznMtuS.d.mts} +2 -2
- package/dist/FormField.d.mts +1 -1
- package/dist/{Grid-CeH9E5Ai.mjs → Grid-D0mlxk8_.mjs} +1 -1
- package/dist/{Grid-CeH9E5Ai.mjs.map → Grid-D0mlxk8_.mjs.map} +1 -1
- package/dist/{Header-2K49LYkR.d.mts → Header-DvpIsOUN.d.mts} +1 -1
- package/dist/Header.d.mts +1 -1
- package/dist/{HelperTooltip-CTHUM2nC.d.mts → HelperTooltip-C4tgbLYw.d.mts} +2 -2
- package/dist/HelperTooltip.d.mts +1 -1
- package/dist/HighlightedText.d.mts +2 -2
- package/dist/{HoverCopyableField-BARZLhfO.mjs → HoverCopyableField-1_LHm80n.mjs} +6 -6
- package/dist/{HoverCopyableField-BARZLhfO.mjs.map → HoverCopyableField-1_LHm80n.mjs.map} +1 -1
- package/dist/I18nContext-DlvagRAO.d.mts +22 -0
- package/dist/I18nContext.d.mts +2 -0
- package/dist/{IconButton-D5hx405r.d.mts → IconButton-Bt3WyiGq.d.mts} +2 -2
- package/dist/{IconButton-BHFCjvzs.mjs → IconButton-Cqxfmrea.mjs} +3 -3
- package/dist/{IconButton-BHFCjvzs.mjs.map → IconButton-Cqxfmrea.mjs.map} +1 -1
- 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-BQbcIiVj.d.mts → Input-CAsOWM0S.d.mts} +3 -3
- package/dist/{Input-BQN97Hzm.mjs → Input-Cg2HxteL.mjs} +4 -4
- package/dist/{Input-BQN97Hzm.mjs.map → Input-Cg2HxteL.mjs.map} +1 -1
- package/dist/Input.d.mts +1 -1
- package/dist/{InputProps-DT1ZReZS.d.mts → InputProps-BU9iiBBz.d.mts} +2 -2
- package/dist/InputProps.d.mts +1 -1
- package/dist/IntegerValueControl.d.mts +2 -2
- package/dist/{Link-Bzm4AL5J.mjs → Link-Cf__H8gD.mjs} +2 -2
- package/dist/{Link-Bzm4AL5J.mjs.map → Link-Cf__H8gD.mjs.map} +1 -1
- package/dist/Link.d.mts +1 -1
- package/dist/{ListBox-CdqRwBvA.d.mts → ListBox--IH6uofo.d.mts} +3 -3
- package/dist/{ListBox-DOqN9DNl.mjs → ListBox-CjNokYs6.mjs} +13 -10
- package/dist/{ListBox-DOqN9DNl.mjs.map → ListBox-CjNokYs6.mjs.map} +1 -1
- package/dist/ListBox.d.mts +1 -1
- package/dist/{ListBoxField-Bl2WLplO.d.mts → ListBoxField-BUKop1Ca.d.mts} +4 -4
- package/dist/ListBoxField.d.mts +1 -1
- package/dist/{LoadingShimmer-Ds7rvIUN.mjs → LoadingShimmer-C73hJqaW.mjs} +1 -1
- package/dist/{LoadingShimmer-Ds7rvIUN.mjs.map → LoadingShimmer-C73hJqaW.mjs.map} +1 -1
- package/dist/LoadingShimmer.d.mts +1 -1
- package/dist/{LogicRow-CwMAn1sh.d.mts → LogicRow-C8Hdl8xB.d.mts} +3 -3
- package/dist/LogicRow.d.mts +1 -1
- package/dist/MaskedInput.d.mts +2 -2
- package/dist/{Menu-CUN9bmc1.d.mts → Menu-BSHJpKyL.d.mts} +3 -3
- package/dist/{Menu-DjW2b3Wk.mjs → Menu-CwKmfxKI.mjs} +2 -2
- package/dist/{Menu-DjW2b3Wk.mjs.map → Menu-CwKmfxKI.mjs.map} +1 -1
- package/dist/Menu.d.mts +1 -1
- package/dist/{Modal-DHLPK65-.mjs → Modal-BBIJVhv2.mjs} +6 -6
- package/dist/{Modal-DHLPK65-.mjs.map → Modal-BBIJVhv2.mjs.map} +1 -1
- package/dist/{Modal-CGXJGrKg.d.mts → Modal-CoUHxtgN.d.mts} +2 -2
- package/dist/Modal.d.mts +1 -1
- package/dist/{PageHeader-eI4RM_uL.mjs → PageHeader-5GyfuGLe.mjs} +3 -3
- package/dist/{PageHeader-eI4RM_uL.mjs.map → PageHeader-5GyfuGLe.mjs.map} +1 -1
- package/dist/PageHeader.d.mts +1 -1
- package/dist/PageLayout-C7ZC7GBA.mjs +132 -0
- package/dist/PageLayout-C7ZC7GBA.mjs.map +1 -0
- package/dist/PageLayout-C7hDmoy_.d.mts +16 -0
- package/dist/PageLayout.d.mts +2 -16
- package/dist/PageLayoutFrame--HlvI4Pp.d.mts +28 -0
- package/dist/PageLayoutFrame.d.mts +2 -28
- package/dist/{PageSelector-kAfYxEky.d.mts → PageSelector-CrUb586l.d.mts} +3 -3
- package/dist/PageSelector.d.mts +1 -1
- package/dist/{Pagination-Bhr7xyd2.d.mts → Pagination-C67fsrxl.d.mts} +2 -2
- package/dist/{Pagination-6BDOn9bX.mjs → Pagination-c4YBCy5d.mjs} +40 -49
- package/dist/Pagination-c4YBCy5d.mjs.map +1 -0
- package/dist/Pagination.d.mts +1 -1
- package/dist/{Pii-DhL1gblz.mjs → Pii-oW_2TUUc.mjs} +2 -2
- package/dist/{Pii-DhL1gblz.mjs.map → Pii-oW_2TUUc.mjs.map} +1 -1
- package/dist/{PillShell-CVJL1k5I.d.mts → PillShell-BkYHghx0.d.mts} +2 -2
- package/dist/PillShell.d.mts +1 -1
- package/dist/{Popover-CbYaWrAy.mjs → Popover-BcII7usF.mjs} +3 -3
- package/dist/{Popover-CbYaWrAy.mjs.map → Popover-BcII7usF.mjs.map} +1 -1
- package/dist/{ProgressIndicator-CYyM6OSx.d.mts → ProgressIndicator-CdhC2LVI.d.mts} +1 -1
- package/dist/{ProgressIndicator-BpF3XLn3.mjs → ProgressIndicator-STyTM0Hq.mjs} +1 -1
- package/dist/{ProgressIndicator-BpF3XLn3.mjs.map → ProgressIndicator-STyTM0Hq.mjs.map} +1 -1
- package/dist/ProgressIndicator.d.mts +1 -1
- package/dist/{PseudoClassProps-BOVN6Etr.d.mts → PseudoClassProps-CverE9Ni.d.mts} +1 -1
- package/dist/PseudoClassProps.d.mts +1 -1
- package/dist/{Radio-DPaX-9LH.mjs → Radio-CHme6WTz.mjs} +2 -2
- package/dist/{Radio-DPaX-9LH.mjs.map → Radio-CHme6WTz.mjs.map} +1 -1
- package/dist/{RadioGroup-C0l0pdEt.d.mts → RadioGroup-CDEfCg-b.d.mts} +1 -1
- package/dist/{RadioGroup-D7f4m2Uc.mjs → RadioGroup-DOLRqHIZ.mjs} +2 -2
- package/dist/{RadioGroup-D7f4m2Uc.mjs.map → RadioGroup-DOLRqHIZ.mjs.map} +1 -1
- package/dist/RadioGroup.d.mts +1 -1
- package/dist/{RangeCalendar-BJn9V3iN.d.mts → RangeCalendar-BOt59kTG.d.mts} +2 -2
- package/dist/RangeCalendar.d.mts +1 -1
- package/dist/RangeCalendarPresets.d.mts +1 -1
- package/dist/{RouterContext-BLrzYlJ_.d.mts → RouterContext-D7HBESqO.d.mts} +2 -2
- package/dist/{RouterContext-CsPnkNdI.mjs → RouterContext-nPSb55p9.mjs} +1 -1
- package/dist/{RouterContext-CsPnkNdI.mjs.map → RouterContext-nPSb55p9.mjs.map} +1 -1
- package/dist/RouterContext.d.mts +1 -1
- package/dist/{RouterLink-BHXjhqps.d.mts → RouterLink-dppNWLgP.d.mts} +2 -2
- package/dist/RouterLink.d.mts +1 -1
- package/dist/RuleEditorFields.d.mts +2 -2
- package/dist/RulesPill.d.mts +1 -1
- package/dist/{SearchInput-Buh8LdIL.d.mts → SearchInput-B7JYHJZI.d.mts} +2 -2
- package/dist/SearchInput.d.mts +1 -1
- package/dist/SectionHeading.d.mts +1 -1
- package/dist/{SegmentedControl-B9qLyIIW.d.mts → SegmentedControl-C_7mTcuL.d.mts} +1 -1
- package/dist/{SegmentedControl-zEvBtVj0.mjs → SegmentedControl-d9tHqWce.mjs} +2 -2
- package/dist/{SegmentedControl-zEvBtVj0.mjs.map → SegmentedControl-d9tHqWce.mjs.map} +1 -1
- package/dist/SegmentedControl.d.mts +1 -1
- package/dist/{Select-BoZuM_e9.mjs → Select-Da6UZicF.mjs} +7 -7
- package/dist/{Select-BoZuM_e9.mjs.map → Select-Da6UZicF.mjs.map} +1 -1
- package/dist/{Select-Cv_9PLOt.d.mts → Select-Ek-A2Cpo.d.mts} +3 -3
- package/dist/Select.d.mts +1 -1
- package/dist/SingleColumnLayout-ByWxiD7d.d.mts +16 -0
- package/dist/SingleColumnLayout.d.mts +2 -16
- package/dist/SmartTextInput.d.mts +9 -9
- package/dist/SmartTextInputField.d.mts +2 -2
- package/dist/SmartTextInputFunctionDialog.d.mts +4 -4
- package/dist/SmartTextInputListbox.d.mts +2 -2
- package/dist/SmartTextInputPopover.d.mts +1 -1
- package/dist/{Spacer-BFOuo0sZ.mjs → Spacer-J_HuhxX2.mjs} +1 -1
- package/dist/{Spacer-BFOuo0sZ.mjs.map → Spacer-J_HuhxX2.mjs.map} +1 -1
- package/dist/{Spinner-CarSRiBF.mjs → Spinner-C4UyK9If.mjs} +1 -1
- package/dist/{Spinner-CarSRiBF.mjs.map → Spinner-C4UyK9If.mjs.map} +1 -1
- package/dist/SplitColumnLayout-DYyJabQ3.d.mts +19 -0
- package/dist/SplitColumnLayout.d.mts +2 -19
- package/dist/{Stack-CEPzs4Pb.mjs → Stack-BkC7FCdF.mjs} +1 -1
- package/dist/{Stack-CEPzs4Pb.mjs.map → Stack-BkC7FCdF.mjs.map} +1 -1
- package/dist/{Stack-XzBzPvSV.d.mts → Stack-D0Dt776K.d.mts} +1 -1
- package/dist/Stack.d.mts +1 -1
- package/dist/{StatusIndicator-bEnMWV_S.mjs → StatusIndicator-akDwBiBW.mjs} +1 -1
- package/dist/{StatusIndicator-bEnMWV_S.mjs.map → StatusIndicator-akDwBiBW.mjs.map} +1 -1
- package/dist/{Sticker-DGfNuxUK.d.mts → Sticker-Cit5EKiU.d.mts} +4 -4
- package/dist/{Sticker-B-fU8lgu.mjs → Sticker-_vmpUMfk.mjs} +3 -3
- package/dist/{Sticker-B-fU8lgu.mjs.map → Sticker-_vmpUMfk.mjs.map} +1 -1
- package/dist/Sticker.d.mts +1 -1
- package/dist/StringValueControl.d.mts +1 -1
- package/dist/Tab.d.mts +1 -1
- package/dist/{TabBar-BSl5v5aa.mjs → TabBar-CmYqreN0.mjs} +6 -9
- package/dist/TabBar-CmYqreN0.mjs.map +1 -0
- package/dist/{Table-B2V5tlfA.d.mts → Table-BtNYI6QX.d.mts} +1 -1
- package/dist/{Table-msXj0glu.mjs → Table-CV8nogHu.mjs} +4 -4
- package/dist/{Table-msXj0glu.mjs.map → Table-CV8nogHu.mjs.map} +1 -1
- package/dist/Table.d.mts +1 -1
- package/dist/{TableBody-SlQe4Jyp.d.mts → TableBody-DQ7pivxP.d.mts} +1 -1
- package/dist/TableBody.d.mts +1 -1
- package/dist/{TableBox-CF1_Fk0j.mjs → TableBox-vCTkOPlC.mjs} +10 -10
- package/dist/{TableBox-CF1_Fk0j.mjs.map → TableBox-vCTkOPlC.mjs.map} +1 -1
- package/dist/TableBox.d.mts +2 -2
- package/dist/{TableBoxCell-BRhGeUnO.d.mts → TableBoxCell-BkJ587Lf.d.mts} +6 -6
- package/dist/TableBoxCell.d.mts +1 -1
- package/dist/{TableBoxField-Cq9M1upV.d.mts → TableBoxField-Dj9Cx9NP.d.mts} +5 -5
- package/dist/TableBoxField.d.mts +1 -1
- package/dist/{TableBoxRow-DZzRYoID.d.mts → TableBoxRow-CpR9Cti1.d.mts} +3 -3
- package/dist/TableBoxRow.d.mts +1 -1
- package/dist/{TableBoxRowActions-4-j3flJq.d.mts → TableBoxRowActions-Bj-LZaI7.d.mts} +2 -2
- package/dist/TableBoxRowActions.d.mts +1 -1
- package/dist/{TableCell-D5Sqb6iO.d.mts → TableCell-DOjW6ADs.d.mts} +2 -2
- package/dist/TableCell.d.mts +1 -1
- package/dist/{TableControls-CqW_nyBY.mjs → TableControls-BtKBTGYR.mjs} +822 -388
- package/dist/TableControls-BtKBTGYR.mjs.map +1 -0
- package/dist/{TableControls-B-LakH-8.d.mts → TableControls-Cw7LDHWj.d.mts} +6 -3
- package/dist/TableControls.d.mts +1 -1
- package/dist/{TableControlsContext-Dh1YVmBM.d.mts → TableControlsContext-DgoZhMpQ.d.mts} +2 -2
- package/dist/TableControlsContext.d.mts +1 -1
- package/dist/{TableHead-BCrVa0BY.d.mts → TableHead-BGUg_aXc.d.mts} +1 -1
- package/dist/TableHead.d.mts +1 -1
- package/dist/{TableHeaderCell-CcEkDozs.d.mts → TableHeaderCell-DcZcMQyR.d.mts} +1 -1
- package/dist/TableHeaderCell.d.mts +1 -1
- package/dist/{TableLayout-Bhj1QBBz.d.mts → TableLayout-CwYQaZlA.d.mts} +1 -1
- package/dist/TableLayout.d.mts +1 -1
- package/dist/{TableRow-Cy1y7b9S.d.mts → TableRow-Dad6_CoD.d.mts} +2 -2
- package/dist/TableRow.d.mts +1 -1
- package/dist/TableTH.d.mts +1 -1
- package/dist/{TableViewConfigurationDropdown-BzygLtGm.d.mts → TableViewConfigurationDropdown-BGuWAarQ.d.mts} +2 -2
- package/dist/TableViewConfigurationDropdown.d.mts +1 -1
- package/dist/{TechnicalSticker-B6T7cHHc.mjs → TechnicalSticker-BhUxOU-L.mjs} +3 -3
- package/dist/{TechnicalSticker-B6T7cHHc.mjs.map → TechnicalSticker-BhUxOU-L.mjs.map} +1 -1
- package/dist/{Text-BdluS7Fy.mjs → Text-CSwFifQF.mjs} +1 -1
- package/dist/{Text-BdluS7Fy.mjs.map → Text-CSwFifQF.mjs.map} +1 -1
- package/dist/{Text-BVGJ-Nlw.d.mts → Text-CUhW_agW.d.mts} +3 -3
- package/dist/Text.d.mts +1 -1
- package/dist/{TextArea-Bzj593VO.d.mts → TextArea-Djd1uT3B.d.mts} +2 -2
- package/dist/{TextArea-C1CmFRiz.mjs → TextArea-J_EscGvm.mjs} +2 -2
- package/dist/{TextArea-C1CmFRiz.mjs.map → TextArea-J_EscGvm.mjs.map} +1 -1
- package/dist/TextArea.d.mts +1 -1
- package/dist/{TextUnderlineTooltip-CgFmtqF_.d.mts → TextUnderlineTooltip-DCVONTD0.d.mts} +2 -2
- package/dist/TextUnderlineTooltip.d.mts +1 -1
- package/dist/Tile.d.mts +1 -1
- package/dist/Toast.d.mts +1 -1
- package/dist/{Toggle-CntyMUPJ.mjs → Toggle-BEOoATjS.mjs} +4 -4
- package/dist/{Toggle-CntyMUPJ.mjs.map → Toggle-BEOoATjS.mjs.map} +1 -1
- package/dist/{Toggle-bSu1xAaq.d.mts → Toggle-EYpW34LO.d.mts} +1 -1
- package/dist/Toggle.d.mts +1 -1
- package/dist/{Tooltip-C0FuZS1C.mjs → Tooltip-B-0VRuKT.mjs} +2 -2
- package/dist/{Tooltip-C0FuZS1C.mjs.map → Tooltip-B-0VRuKT.mjs.map} +1 -1
- package/dist/{Tooltip-Duw4Fz1t.d.mts → Tooltip-DLK9Q2Rg.d.mts} +2 -2
- package/dist/Tooltip.d.mts +1 -1
- package/dist/{TruncatedText-CbTpX_R1.d.mts → TruncatedText-B_u70y6w.d.mts} +1 -1
- package/dist/VersionHistory.d.mts +1 -1
- package/dist/{VersionHistoryItem-D05QYej7.d.mts → VersionHistoryItem-iUabmk_y.d.mts} +1 -1
- package/dist/VersionHistoryItem.d.mts +1 -1
- package/dist/WizardModal.d.mts +2 -2
- package/dist/{accordionTitleTypography-Leehcmb3.d.mts → accordionTitleTypography-C7VVJvlx.d.mts} +2 -2
- package/dist/accordionTitleTypography.d.mts +1 -1
- package/dist/{chainTypes-D8SGRGba.d.mts → chainTypes-DT-9j_sG.d.mts} +4 -4
- package/dist/{codec-Vsztf4fe.d.mts → codec-CGj8cwcj.d.mts} +2 -2
- package/dist/codec.d.mts +1 -1
- package/dist/{color-CrlF3pba.d.mts → color-BOm5A1Si.d.mts} +2 -2
- package/dist/components/Accordion/index.d.mts +1 -1
- package/dist/components/Accordion/index.mjs +2 -2
- package/dist/components/Attribute/index.mjs +4 -4
- package/dist/components/Badge/index.mjs +1 -1
- package/dist/components/Banner/index.mjs +1 -1
- package/dist/components/BottomPanel/index.mjs +3 -3
- package/dist/components/Breadcrumbs/index.d.mts +1 -1
- 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/Card/index.mjs +1 -1
- package/dist/components/CardV2/index.d.mts +1 -1
- package/dist/components/CardV2/index.mjs +1 -1
- package/dist/components/Checkbox/index.d.mts +1 -1
- package/dist/components/Checkbox/index.mjs +1 -1
- package/dist/components/CodeHighlight/index.mjs +2 -2
- 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 +20 -20
- package/dist/components/DataTable/TableControls/index.mjs +1 -1
- package/dist/components/DataTable/index.d.mts +2 -2
- package/dist/components/DataTable/index.mjs +83 -60
- package/dist/components/DataTable/index.mjs.map +1 -1
- package/dist/components/DataTable/types.d.mts +9 -2
- package/dist/components/DatePicker/index.d.mts +5 -5
- 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 +3 -3
- package/dist/components/FormControl/index.d.mts +2 -2
- 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/Grid/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 +3 -3
- 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.d.mts +1 -1
- package/dist/components/ProgressIndicator/index.mjs +1 -1
- package/dist/components/Radio/index.mjs +1 -1
- package/dist/components/RadioGroup/index.d.mts +1 -1
- package/dist/components/RadioGroup/index.mjs +1 -1
- package/dist/components/RightPanel/index.mjs +4 -4
- package/dist/components/SegmentedControl/index.d.mts +1 -1
- 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 +1 -1
- package/dist/components/SmartTextInput/index.d.mts +2 -2
- package/dist/components/SmartTextInput/index.mjs +8 -8
- package/dist/components/SmartTextInput/index.mjs.map +1 -1
- package/dist/components/SmartTextInput/parser/method-chain/types.d.mts +1 -1
- package/dist/components/SmartTextInput/parser/smart-text/types.d.mts +2 -2
- package/dist/components/Spacer/index.mjs +1 -1
- package/dist/components/Spinner/index.mjs +1 -1
- package/dist/components/Stack/index.d.mts +1 -1
- package/dist/components/Stack/index.mjs +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 +8 -8
- package/dist/components/Table/index.mjs +1 -1
- package/dist/components/TableBox/index.d.mts +2 -2
- 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/Text/index.mjs +1 -1
- package/dist/components/TextArea/index.d.mts +1 -1
- package/dist/components/TextArea/index.mjs +1 -1
- package/dist/components/Tile/index.mjs +4 -4
- package/dist/components/Toast/index.mjs +1 -1
- package/dist/components/Toggle/index.d.mts +1 -1
- 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.d.mts +1 -1
- package/dist/components/VersionHistory/index.mjs +8 -8
- package/dist/compound-expression.d.mts +1 -1
- package/dist/{constants-CQUCM6__.d.mts → constants-CwzbyAdc.d.mts} +1 -1
- package/dist/constants.d.mts +1 -1
- package/dist/{createPath-Bq7wYGt_.d.mts → createPath-C4jIHe68.d.mts} +2 -2
- package/dist/createPath.d.mts +1 -1
- package/dist/{date-filter-D6IfCkwp.mjs → date-filter-B8PKh5vg.mjs} +1 -1
- package/dist/{date-filter-D6IfCkwp.mjs.map → date-filter-B8PKh5vg.mjs.map} +1 -1
- package/dist/{date-range-rule-value-DVhMQP4-.d.mts → date-range-rule-value-BTlHwhVf.d.mts} +2 -2
- package/dist/date-range-rule-value.d.mts +1 -1
- package/dist/{date-rule-intent-BwQ6OTVD.d.mts → date-rule-intent-zdKP-tW_.d.mts} +3 -3
- package/dist/date-rule-intent.d.mts +1 -1
- package/dist/display.d.mts +12 -4
- package/dist/fieldPickerOptions.d.mts +5 -3
- package/dist/{filter-size-context-BjTzcZwZ.d.mts → filter-size-context-D3ZSzFKe.d.mts} +2 -2
- package/dist/filter-size-context.d.mts +1 -1
- package/dist/format-date-value.d.mts +6 -1
- package/dist/formatDateTime-zyRMjfH8.d.mts +30 -0
- package/dist/formatDateTime.d.mts +2 -0
- package/dist/helpers.d.mts +24 -10
- package/dist/i18n-DeJa-arS.mjs +209 -0
- package/dist/i18n-DeJa-arS.mjs.map +1 -0
- package/dist/{index-C-xpEL8b.d.mts → index-B13LwAGD.d.mts} +2 -2
- package/dist/{index-BFIFjR7Q.d.mts → index-B7KIL3U6.d.mts} +2 -2
- package/dist/{index-BhDvrF4l.d.mts → index-DHmZDtDG.d.mts} +3 -3
- package/dist/index-sViox9YW.d.mts +1 -0
- package/dist/index-xAZnxq0d2.d.mts +1 -0
- package/dist/index.d.mts +1 -1
- package/dist/index2.d.mts +1 -1
- package/dist/index3.d.mts +3 -3
- package/dist/index4.d.mts +1 -1
- package/dist/index5.d.mts +15 -15
- package/dist/{input-DpHBIUpP.d.mts → input-DMPo8gRT.d.mts} +3 -3
- package/dist/{inputFields-BVDurw3L.d.mts → inputFields-DHdFgzS2.d.mts} +11 -11
- package/dist/inputFields.d.mts +1 -1
- package/dist/{intersperse-bvY2gibK.mjs → intersperse-DWUGtKug.mjs} +1 -1
- package/dist/{intersperse-bvY2gibK.mjs.map → intersperse-DWUGtKug.mjs.map} +1 -1
- package/dist/{jsonSchema-Bl-qzgrr.d.mts → jsonSchema-6mcLrVG3.d.mts} +1 -1
- package/dist/lib/PDSProvider.d.mts +14 -2
- package/dist/lib/PDSProvider.mjs +15 -8
- package/dist/lib/PDSProvider.mjs.map +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/chainTypes.d.mts +1 -1
- package/dist/lib/color.d.mts +1 -1
- package/dist/lib/customFunctionSchema.d.mts +1 -1
- package/dist/lib/date-filter/index.d.mts +2 -2
- package/dist/lib/date-filter/index.mjs +1 -1
- package/dist/lib/i18n/index.d.mts +4 -0
- package/dist/lib/i18n/index.mjs +2 -0
- package/dist/lib/jsonSchema.d.mts +1 -1
- package/dist/lib/jsonSchemaType.d.mts +1 -1
- package/dist/lib/message.d.mts +1 -1
- package/dist/lib/methodChain.d.mts +2 -2
- package/dist/lib/methodChain.mjs +1 -1
- package/dist/lib/methodChainNormalize.d.mts +2 -2
- package/dist/lib/methodChainTypes.d.mts +1 -1
- package/dist/lib/objectSchemaTypes.d.mts +1 -1
- package/dist/lib/platformObject.d.mts +1 -1
- package/dist/lib/pseudoClass.d.mts +1 -1
- package/dist/lib/router/adapters/reactRouter.d.mts +1 -1
- package/dist/lib/router/adapters/reactRouter.mjs +1 -1
- package/dist/lib/router/adapters/tanstack.d.mts +1 -1
- package/dist/lib/router/adapters/tanstack.mjs +1 -1
- package/dist/lib/router/index.d.mts +5 -5
- package/dist/lib/router/index.mjs +2 -2
- package/dist/lib/schemaOptions.d.mts +1 -1
- package/dist/lib/schemaOptions.mjs +1 -1
- package/dist/lib/semanticColor.d.mts +1 -1
- package/dist/lib/useChain.d.mts +1 -1
- package/dist/lib/useChain.mjs +1 -1
- package/dist/{listbox-options-BjOkovND.d.mts → listbox-options-yLjqZp4H.d.mts} +3 -3
- package/dist/listbox-options.d.mts +1 -1
- package/dist/{message-w_1-kTDE.d.mts → message-C5n7wFiN.d.mts} +1 -1
- package/dist/{methodChain-B5vZEOff.d.mts → methodChain-BNDytoaD.d.mts} +4 -4
- package/dist/{methodChain-L_h8Z8Bx.mjs → methodChain-xZ1_vhbz.mjs} +1 -1
- package/dist/{methodChain-L_h8Z8Bx.mjs.map → methodChain-xZ1_vhbz.mjs.map} +1 -1
- package/dist/{methodChainTypes-BVkTI8MX.d.mts → methodChainTypes-BuwpPC73.d.mts} +2 -2
- package/dist/mixins/focus.d.mts +1 -1
- package/dist/mixins/hoverable.d.mts +2 -2
- package/dist/mixins/input.d.mts +1 -1
- package/dist/mixins/menuItem.d.mts +2 -2
- package/dist/mixins/scrollbar.d.mts +1 -1
- package/dist/mixins/text.d.mts +1 -1
- package/dist/{operators-BG82-g3M.d.mts → operators-B12UYEsV.d.mts} +18 -11
- package/dist/operators.d.mts +2 -2
- package/dist/{palette-C8tyI81D.d.mts → palette-BCszfY7I.d.mts} +3 -3
- package/dist/palette.d.mts +1 -1
- package/dist/patterns/CardGrouping/index.d.mts +2 -0
- package/dist/patterns/CardGrouping/index.mjs +280 -0
- package/dist/patterns/CardGrouping/index.mjs.map +1 -0
- package/dist/patterns/LayoutLoadingShimmer/index.mjs +5 -5
- package/dist/patterns/PageLayout/index.d.mts +5 -5
- package/dist/patterns/PageLayout/index.mjs +1 -131
- package/dist/patterns/WizardModal/index.mjs +4 -4
- package/dist/reactRouterFallback.d.mts +1 -1
- package/dist/relative-date-label.d.mts +1 -1
- package/dist/{router-7FYDW80v.mjs → router-COrZcVkf.mjs} +2 -2
- package/dist/{router-7FYDW80v.mjs.map → router-COrZcVkf.mjs.map} +1 -1
- package/dist/safe-parse.d.mts +1 -1
- package/dist/{schemaOptions-DGca6x7E.d.mts → schemaOptions-DBOUChxi.d.mts} +3 -3
- package/dist/{semantic-D1661f_6.d.mts → semantic-Duoh2Pxp.d.mts} +1 -1
- package/dist/{semanticColor-Bg0H3RUL.d.mts → semanticColor-BuG977_M.d.mts} +3 -3
- package/dist/strings-DQ3vxBj8.d.mts +149 -0
- package/dist/strings.d.mts +2 -0
- package/dist/{text-Iw9DKpbZ.d.mts → text-B7hx6G99.d.mts} +1 -1
- package/dist/{theme-BB1B6Wkz.d.mts → theme-BKg55Zk1.d.mts} +3 -3
- package/dist/theme.d.mts +1 -1
- package/dist/tone.d.mts +3 -3
- package/dist/tree.d.mts +1 -1
- package/dist/{types-M-rsm1Km.d.mts → types-4wnr5R9P.d.mts} +1 -1
- package/dist/{types-CI2bPi02.d.mts → types-6QeQmbFm.d.mts} +1 -1
- package/dist/{types-DZTbvdpO.d.mts → types-BjMJFNYH.d.mts} +1 -1
- package/dist/{types-Cs6CdZCO.d.mts → types-CEQWndtF.d.mts} +4 -4
- package/dist/{types-Dy3lZv9z.d.mts → types-CM8L7-ij.d.mts} +31 -9
- package/dist/{types-D1DijcJv.d.mts → types-CgKSEQyB.d.mts} +1 -1
- package/dist/{types-DdTu747j.d.mts → types-CwzwClJx.d.mts} +1 -1
- package/dist/{types-BYRTxB0a.d.mts → types-VgGkS4JB.d.mts} +2 -2
- package/dist/{types-B0ilOIfE.d.mts → types-eemD0jxb.d.mts} +2 -2
- package/dist/types.d.mts +1 -1
- package/dist/types2.d.mts +1 -1
- package/dist/types3.d.mts +1 -1
- package/dist/types4.d.mts +2 -2
- package/dist/types5.d.mts +1 -1
- package/dist/types6.d.mts +1 -1
- package/dist/types7.d.mts +1 -1
- package/dist/{url-state-DWA7UFxS.d.mts → url-state-BW1mN6WQ.d.mts} +2 -2
- package/dist/url-state.d.mts +1 -1
- package/dist/{useChain-CEsXE2Bx.d.mts → useChain-BreIP4fW.d.mts} +6 -6
- package/dist/{useChain-CKqYGdx4.mjs → useChain-Cu4KDfFk.mjs} +2 -2
- package/dist/{useChain-CKqYGdx4.mjs.map → useChain-Cu4KDfFk.mjs.map} +1 -1
- package/dist/useChainAtCursor.d.mts +6 -6
- package/dist/useCodeChainFunctionPanel.d.mts +1 -1
- package/dist/useComboboxFooterAction.d.mts +5 -2
- package/dist/{useFilterStateV2-DoJ9lyJx.d.mts → useFilterStateV2-B8VebPBe.d.mts} +5 -4
- package/dist/useFilterStateV2.d.mts +1 -1
- package/dist/{useFormField-BtnAYcHV.d.mts → useFormField-DAwApAKK.d.mts} +2 -2
- package/dist/{useFormField-BAmkdxtA.mjs → useFormField-J0LiPcpm.mjs} +2 -2
- package/dist/{useFormField-BAmkdxtA.mjs.map → useFormField-J0LiPcpm.mjs.map} +1 -1
- package/dist/useFormField.d.mts +1 -1
- package/dist/{useFormGroup-BZayb9fZ.mjs → useFormGroup-CALbrUkl.mjs} +1 -1
- package/dist/{useFormGroup-BZayb9fZ.mjs.map → useFormGroup-CALbrUkl.mjs.map} +1 -1
- package/dist/{useLocationPathname-pLyLOrAi.d.mts → useLocationPathname-BHL0pgiu.d.mts} +1 -1
- package/dist/useLocationPathname.d.mts +1 -1
- package/dist/{useTableBoxDragAndDrop-wjc_LCpC.d.mts → useTableBoxDragAndDrop-Dq30b6yY.d.mts} +1 -1
- package/dist/useTableBoxDragAndDrop.d.mts +1 -1
- package/dist/{useToggle-DUHQjohK.mjs → useToggle-DRzCDqrc.mjs} +1 -1
- package/dist/{useToggle-DUHQjohK.mjs.map → useToggle-DRzCDqrc.mjs.map} +1 -1
- package/dist/useTruncation.d.mts +1 -1
- package/dist/{utilities-DL18UdPs.d.mts → utilities-B2ry7_20.d.mts} +1 -1
- package/dist/utilities.d.mts +1 -1
- package/dist/utils/storybook.mjs +1 -1
- package/dist/utils/testing.d.mts +1 -1
- package/dist/utils.d.mts +1 -1
- package/dist/utils4.d.mts +5 -5
- package/dist/{validation-PeVTwtd-.d.mts → validation-ZHnFPRP6.d.mts} +3 -3
- package/dist/validation.d.mts +1 -1
- package/dist/validation2.d.mts +4 -4
- package/dist/{value-control-resolver-Cx_wXQFv.d.mts → value-control-resolver-D3qzy8Kk.d.mts} +2 -2
- package/dist/value-control-resolver.d.mts +1 -1
- package/dist/variables/effect.d.mts +1 -1
- package/dist/variables/semantic.d.mts +1 -1
- package/llms.txt +2 -1
- package/package.json +7 -3
- package/skills/ui-authoring/COMPONENTS.md +2 -0
- package/skills/ui-authoring/PATTERNS.md +7 -2
- package/skills/ui-authoring/SKILL.md +23 -0
- package/dist/Combobox-CCDoNF9Y.mjs.map +0 -1
- package/dist/DatePicker-LPIJrc0n.mjs.map +0 -1
- package/dist/Pagination-6BDOn9bX.mjs.map +0 -1
- package/dist/TabBar-BSl5v5aa.mjs.map +0 -1
- package/dist/TableControls-CqW_nyBY.mjs.map +0 -1
- package/dist/patterns/PageLayout/index.mjs.map +0 -1
- /package/dist/{index-BCq_fh4A2.d.mts → index-8SLBz2NH.d.mts} +0 -0
- /package/dist/{index-BINnViIh.d.mts → index-B24gUwOx.d.mts} +0 -0
- /package/dist/{index-BMBcfD_R.d.mts → index-B8M0Grl_2.d.mts} +0 -0
- /package/dist/{index-BOn0AAue.d.mts → index-BFnNtGdX.d.mts} +0 -0
- /package/dist/{index-BcsXXrHq.d.mts → index-BTviwbFV.d.mts} +0 -0
- /package/dist/{index-BwXb5CoQ.d.mts → index-BwFl_eS0.d.mts} +0 -0
- /package/dist/{index-C9achTF6.d.mts → index-C3kE54DD.d.mts} +0 -0
- /package/dist/{index-CCKHlTA4.d.mts → index-C6HcjJiY.d.mts} +0 -0
- /package/dist/{index-CFuHCx9T.d.mts → index-CSf15oCd.d.mts} +0 -0
- /package/dist/{index-CWB6exYm.d.mts → index-CX869wwk.d.mts} +0 -0
- /package/dist/{index-CryTAIZM.d.mts → index-CXaDbCtw.d.mts} +0 -0
- /package/dist/{index-CuYZJcK3.d.mts → index-D4DUvwPf.d.mts} +0 -0
- /package/dist/{index-CuheJfs-.d.mts → index-DB7t8whN.d.mts} +0 -0
- /package/dist/{index-D-9tW2r5.d.mts → index-DhiymMxa.d.mts} +0 -0
- /package/dist/{index-D9XihFV1.d.mts → index-DvwPIy8X.d.mts} +0 -0
- /package/dist/{index-Dflz2i1X.d.mts → index-Oio5ygqN.d.mts} +0 -0
- /package/dist/{index-DrK1_jKY.d.mts → index-Wc1llEvP.d.mts} +0 -0
- /package/dist/{index-Iujpc9_6.d.mts → index-bHnO4ZKt.d.mts} +0 -0
- /package/dist/{index-e6k85DKM.d.mts → index-dzI_9J-Z.d.mts} +0 -0
- /package/dist/{index-irNqT1qQ2.d.mts → index-lIMqGGJz.d.mts} +0 -0
- /package/dist/{index-xmouCHX9.d.mts → index-luywJTzJ.d.mts} +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { C as tryParseMethodChain, S as removeFunctionNode, _ as methodChainToString, a as getFunctionParams, b as pathContainsFunctionNode, c as isCustomFunctionNode, d as isIdentifierNode, f as isStringNode, g as methodChainRootName, h as methodChainNodeToJsonSchema, i as containsFunctionNode, l as isEmpty, m as methodChainCache, n as MethodChainNodeTypes, o as getSyntaxError, p as isValid, r as appendedMethodChain, s as isArrayNode, t as EMPTY_METHOD_CHAIN, u as isFunctionNode, v as parseMethodChain, x as pathIsNormative, y as parseWithPartialOption } from "../methodChain-
|
|
2
|
-
import { a as FunctionParamType, c as NumberNode, i as FunctionNode, l as StringNode, n as Chain, o as IdentifierNode, r as CustomFunctionNode, s as MethodChainNode, t as ArrayNode } from "../methodChainTypes-
|
|
1
|
+
import { C as tryParseMethodChain, S as removeFunctionNode, _ as methodChainToString, a as getFunctionParams, b as pathContainsFunctionNode, c as isCustomFunctionNode, d as isIdentifierNode, f as isStringNode, g as methodChainRootName, h as methodChainNodeToJsonSchema, i as containsFunctionNode, l as isEmpty, m as methodChainCache, n as MethodChainNodeTypes, o as getSyntaxError, p as isValid, r as appendedMethodChain, s as isArrayNode, t as EMPTY_METHOD_CHAIN, u as isFunctionNode, v as parseMethodChain, x as pathIsNormative, y as parseWithPartialOption } from "../methodChain-BNDytoaD.mjs";
|
|
2
|
+
import { a as FunctionParamType, c as NumberNode, i as FunctionNode, l as StringNode, n as Chain, o as IdentifierNode, r as CustomFunctionNode, s as MethodChainNode, t as ArrayNode } from "../methodChainTypes-BuwpPC73.mjs";
|
|
3
3
|
export { ArrayNode, Chain, CustomFunctionNode, EMPTY_METHOD_CHAIN, FunctionNode, FunctionParamType, IdentifierNode, MethodChainNode, MethodChainNodeTypes, NumberNode, StringNode, appendedMethodChain, containsFunctionNode, getFunctionParams, getSyntaxError, isArrayNode, isCustomFunctionNode, isEmpty, isFunctionNode, isIdentifierNode, isStringNode, isValid, methodChainCache, methodChainNodeToJsonSchema, methodChainRootName, methodChainToString, parseMethodChain, parseWithPartialOption, pathContainsFunctionNode, pathIsNormative, removeFunctionNode, tryParseMethodChain };
|
package/dist/lib/methodChain.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as tryParseMethodChain, S as removeFunctionNode, _ as methodChainToString, a as getFunctionParams, b as pathContainsFunctionNode, c as isCustomFunctionNode, d as isIdentifierNode, f as isStringNode, g as methodChainRootName, h as methodChainNodeToJsonSchema, i as containsFunctionNode, l as isEmpty, m as methodChainCache, n as MethodChainNodeTypes, o as getSyntaxError, p as isValid, r as appendedMethodChain, s as isArrayNode, t as EMPTY_METHOD_CHAIN, u as isFunctionNode, v as parseMethodChain, x as pathIsNormative, y as parseWithPartialOption } from "../methodChain-
|
|
1
|
+
import { C as tryParseMethodChain, S as removeFunctionNode, _ as methodChainToString, a as getFunctionParams, b as pathContainsFunctionNode, c as isCustomFunctionNode, d as isIdentifierNode, f as isStringNode, g as methodChainRootName, h as methodChainNodeToJsonSchema, i as containsFunctionNode, l as isEmpty, m as methodChainCache, n as MethodChainNodeTypes, o as getSyntaxError, p as isValid, r as appendedMethodChain, s as isArrayNode, t as EMPTY_METHOD_CHAIN, u as isFunctionNode, v as parseMethodChain, x as pathIsNormative, y as parseWithPartialOption } from "../methodChain-xZ1_vhbz.mjs";
|
|
2
2
|
export { EMPTY_METHOD_CHAIN, MethodChainNodeTypes, appendedMethodChain, containsFunctionNode, getFunctionParams, getSyntaxError, isArrayNode, isCustomFunctionNode, isEmpty, isFunctionNode, isIdentifierNode, isStringNode, isValid, methodChainCache, methodChainNodeToJsonSchema, methodChainRootName, methodChainToString, parseMethodChain, parseWithPartialOption, pathContainsFunctionNode, pathIsNormative, removeFunctionNode, tryParseMethodChain };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as ASTNumberNode, m as ASTStringNode, n as ASTChain, t as ASTArrayNode } from "../types-
|
|
2
|
-
import { a as FunctionParamType, c as NumberNode, l as StringNode, n as Chain } from "../methodChainTypes-
|
|
1
|
+
import { d as ASTNumberNode, m as ASTStringNode, n as ASTChain, t as ASTArrayNode } from "../types-4wnr5R9P.mjs";
|
|
2
|
+
import { a as FunctionParamType, c as NumberNode, l as StringNode, n as Chain } from "../methodChainTypes-BuwpPC73.mjs";
|
|
3
3
|
|
|
4
4
|
//#region lib/methodChainNormalize.d.ts
|
|
5
5
|
declare function normalizeArrayItem(item: ASTStringNode | ASTNumberNode): StringNode | NumberNode;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as FunctionParamType, c as NumberNode, i as FunctionNode, l as StringNode, n as Chain, o as IdentifierNode, r as CustomFunctionNode, s as MethodChainNode, t as ArrayNode } from "../methodChainTypes-
|
|
1
|
+
import { a as FunctionParamType, c as NumberNode, i as FunctionNode, l as StringNode, n as Chain, o as IdentifierNode, r as CustomFunctionNode, s as MethodChainNode, t as ArrayNode } from "../methodChainTypes-BuwpPC73.mjs";
|
|
2
2
|
export { ArrayNode, Chain, CustomFunctionNode, FunctionNode, FunctionParamType, IdentifierNode, MethodChainNode, NumberNode, StringNode };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { at as FunctionConvertedTypeSchema, ct as FunctionParameterJsonSchema, dt as ObjectSchemaMap, it as CollectionMetaJsonSchema, lt as FunctionReturnTypeJsonSchema, ot as FunctionGenericParameterSchema, st as FunctionJsonSchema, ut as GenericType } from "../jsonSchema-
|
|
1
|
+
import { at as FunctionConvertedTypeSchema, ct as FunctionParameterJsonSchema, dt as ObjectSchemaMap, it as CollectionMetaJsonSchema, lt as FunctionReturnTypeJsonSchema, ot as FunctionGenericParameterSchema, st as FunctionJsonSchema, ut as GenericType } from "../jsonSchema-6mcLrVG3.mjs";
|
|
2
2
|
export { CollectionMetaJsonSchema, FunctionConvertedTypeSchema, FunctionGenericParameterSchema, FunctionJsonSchema, FunctionParameterJsonSchema, FunctionReturnTypeJsonSchema, GenericType, ObjectSchemaMap };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as JsonSchemaRef, b as JsonSchemaObjectKey, d as JsonSchemaCore, dt as ObjectSchemaMap, n as JsonSchema, u as JsonSchemaConst, y as JsonSchemaObject } from "../jsonSchema-
|
|
1
|
+
import { S as JsonSchemaRef, b as JsonSchemaObjectKey, d as JsonSchemaCore, dt as ObjectSchemaMap, n as JsonSchema, u as JsonSchemaConst, y as JsonSchemaObject } from "../jsonSchema-6mcLrVG3.mjs";
|
|
2
2
|
|
|
3
3
|
//#region lib/platformObject.d.ts
|
|
4
4
|
interface PlatformObjectJsonSchema extends JsonSchemaObject {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as RouterProvider$1 } from "../../../RouterContext-
|
|
1
|
+
import { n as RouterProvider$1 } from "../../../RouterContext-nPSb55p9.mjs";
|
|
2
2
|
import { useCallback, useMemo } from "react";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { useHref, useLocation, useNavigate } from "react-router-dom";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as RouterProvider } from "../../../RouterContext-
|
|
1
|
+
import { n as RouterProvider } from "../../../RouterContext-nPSb55p9.mjs";
|
|
2
2
|
import { useCallback, useMemo } from "react";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { useLocation, useRouter, useRouterState } from "@tanstack/react-router";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as To, n as RouterAdapter, r as RouterLinkComponentProps, t as NavigateOptions } from "../../types-
|
|
2
|
-
import { n as RouterProvider, r as useRouter, t as RouterContext } from "../../RouterContext-
|
|
3
|
-
import { t as createPath } from "../../createPath-
|
|
4
|
-
import { t as RouterLink } from "../../RouterLink-
|
|
5
|
-
import { t as usePathname } from "../../useLocationPathname-
|
|
1
|
+
import { i as To, n as RouterAdapter, r as RouterLinkComponentProps, t as NavigateOptions } from "../../types-CgKSEQyB.mjs";
|
|
2
|
+
import { n as RouterProvider, r as useRouter, t as RouterContext } from "../../RouterContext-D7HBESqO.mjs";
|
|
3
|
+
import { t as createPath } from "../../createPath-C4jIHe68.mjs";
|
|
4
|
+
import { t as RouterLink } from "../../RouterLink-dppNWLgP.mjs";
|
|
5
|
+
import { t as usePathname } from "../../useLocationPathname-BHL0pgiu.mjs";
|
|
6
6
|
export { NavigateOptions, RouterAdapter, RouterContext, RouterLink, RouterLinkComponentProps, RouterProvider, To, createPath, usePathname, useRouter };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as RouterProvider, r as useRouter, t as RouterContext } from "../../RouterContext-
|
|
2
|
-
import { n as RouterLink, r as createPath, t as usePathname } from "../../router-
|
|
1
|
+
import { n as RouterProvider, r as useRouter, t as RouterContext } from "../../RouterContext-nPSb55p9.mjs";
|
|
2
|
+
import { n as RouterLink, r as createPath, t as usePathname } from "../../router-COrZcVkf.mjs";
|
|
3
3
|
export { RouterContext, RouterLink, RouterProvider, createPath, usePathname, useRouter };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as getFunctionSchemaForNode, c as getSchemaForFieldPath, d as hasRequiredPropertyShape, f as isTypeMatch, g as validatePath, h as splitAtNearestParentObject, i as formatDisplayValue, l as getSchemaForVariablePath, m as nextLinkSchema, n as OptionFilters, o as getOptionForValue, p as isValidOption, r as extractPlatformObjectKey, s as getSchemaByPath, t as Option, u as getSchemaOptions } from "../schemaOptions-
|
|
1
|
+
import { a as getFunctionSchemaForNode, c as getSchemaForFieldPath, d as hasRequiredPropertyShape, f as isTypeMatch, g as validatePath, h as splitAtNearestParentObject, i as formatDisplayValue, l as getSchemaForVariablePath, m as nextLinkSchema, n as OptionFilters, o as getOptionForValue, p as isValidOption, r as extractPlatformObjectKey, s as getSchemaByPath, t as Option, u as getSchemaOptions } from "../schemaOptions-DBOUChxi.mjs";
|
|
2
2
|
export { Option, OptionFilters, extractPlatformObjectKey, formatDisplayValue, getFunctionSchemaForNode, getOptionForValue, getSchemaByPath, getSchemaForFieldPath, getSchemaForVariablePath, getSchemaOptions, hasRequiredPropertyShape, isTypeMatch, isValidOption, nextLinkSchema, splitAtNearestParentObject, validatePath };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EMPTY_JSON_SCHEMA_OBJECT, JsonSchemaAllTypes, JsonSchemaStringifiableTypes, genericArrayItemSchema, getNonNullableRefSchema, getNonNullableType, isConvertedTypeSchema, isFileType, isFunctionSchema, isGenericParameterSchema, isJsonSchemaArray, isJsonSchemaDate, isJsonSchemaDateTime, isJsonSchemaObject, isJsonSchemaRef, isJsonSchemaString, isJsonType, isPrecedingSchema } from "./jsonSchema.mjs";
|
|
2
2
|
import { getJsonSchemaType } from "./jsonSchemaType.mjs";
|
|
3
|
-
import { _ as methodChainToString, d as isIdentifierNode, f as isStringNode, n as MethodChainNodeTypes, p as isValid, r as appendedMethodChain, t as EMPTY_METHOD_CHAIN, u as isFunctionNode, v as parseMethodChain, w as assertNever, y as parseWithPartialOption } from "../methodChain-
|
|
3
|
+
import { _ as methodChainToString, d as isIdentifierNode, f as isStringNode, n as MethodChainNodeTypes, p as isValid, r as appendedMethodChain, t as EMPTY_METHOD_CHAIN, u as isFunctionNode, v as parseMethodChain, w as assertNever, y as parseWithPartialOption } from "../methodChain-xZ1_vhbz.mjs";
|
|
4
4
|
import { MERGED_SCHEMA_ID, getPlatformObjectTypeFromJsonSchema, getSchemaId, resolveJssRef } from "./platformObject.mjs";
|
|
5
5
|
import { compact, flatten, last, sortBy, trim } from "lodash-es";
|
|
6
6
|
//#region lib/schemaOptions.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as semanticTokens, i as semanticOnly, n as SemanticFallback, r as semanticColor, t as MaybeSemanticTheme } from "../semanticColor-
|
|
1
|
+
import { a as semanticTokens, i as semanticOnly, n as SemanticFallback, r as semanticColor, t as MaybeSemanticTheme } from "../semanticColor-BuG977_M.mjs";
|
|
2
2
|
export { MaybeSemanticTheme, SemanticFallback, semanticColor, semanticOnly, semanticTokens };
|
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-BreIP4fW.mjs";
|
|
2
2
|
export { chainRootsFromSchemaProperties, useChain as default, useChainSchema };
|
package/dist/lib/useChain.mjs
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-Cu4KDfFk.mjs";
|
|
2
2
|
export { chainRootsFromSchemaProperties, useChain as default, useChainSchema };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as PossibleChainSchema } from "./chainTypes-
|
|
2
|
-
import { a as Mode, u as ValueType } from "./types-
|
|
1
|
+
import { n as PossibleChainSchema } from "./chainTypes-DT-9j_sG.mjs";
|
|
2
|
+
import { a as Mode, u as ValueType } from "./types-CEQWndtF.mjs";
|
|
3
3
|
|
|
4
4
|
//#region components/SmartTextInput/listbox-options.d.ts
|
|
5
5
|
type MethodChainOption = {
|
|
@@ -35,4 +35,4 @@ declare const getContextMenuOptions: (valueIsEmpty: boolean, allowedValueType: V
|
|
|
35
35
|
declare const getMethodChainOptions: (options: PossibleChainSchema[]) => MethodChainOption[];
|
|
36
36
|
//#endregion
|
|
37
37
|
export { SmartTextInputOption as a, isContextMenuOption as c, MethodChainOption as i, isMethodChainOption as l, ContextMenuOption as n, getContextMenuOptions as o, EXIT_METHOD_CHAIN_VALUE_TYPE_OPTION as r, getMethodChainOptions as s, ContextMenuExamples as t };
|
|
38
|
-
//# sourceMappingURL=listbox-options-
|
|
38
|
+
//# sourceMappingURL=listbox-options-yLjqZp4H.d.mts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as SmartTextInputOption, c as isContextMenuOption, i as MethodChainOption, l as isMethodChainOption, n as ContextMenuOption, o as getContextMenuOptions, r as EXIT_METHOD_CHAIN_VALUE_TYPE_OPTION, s as getMethodChainOptions, t as ContextMenuExamples } from "./listbox-options-
|
|
1
|
+
import { a as SmartTextInputOption, c as isContextMenuOption, i as MethodChainOption, l as isMethodChainOption, n as ContextMenuOption, o as getContextMenuOptions, r as EXIT_METHOD_CHAIN_VALUE_TYPE_OPTION, s as getMethodChainOptions, t as ContextMenuExamples } from "./listbox-options-yLjqZp4H.mjs";
|
|
2
2
|
export { ContextMenuExamples, ContextMenuOption, EXIT_METHOD_CHAIN_VALUE_TYPE_OPTION, MethodChainOption, SmartTextInputOption, getContextMenuOptions, getMethodChainOptions, isContextMenuOption, isMethodChainOption };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as ASTNodeType } from "./types-
|
|
2
|
-
import { n as JsonSchema } from "./jsonSchema-
|
|
3
|
-
import { a as FunctionParamType, c as NumberNode, i as FunctionNode, l as StringNode, n as Chain, o as IdentifierNode, r as CustomFunctionNode, s as MethodChainNode, t as ArrayNode } from "./methodChainTypes-
|
|
1
|
+
import { u as ASTNodeType } from "./types-4wnr5R9P.mjs";
|
|
2
|
+
import { n as JsonSchema } from "./jsonSchema-6mcLrVG3.mjs";
|
|
3
|
+
import { a as FunctionParamType, c as NumberNode, i as FunctionNode, l as StringNode, n as Chain, o as IdentifierNode, r as CustomFunctionNode, s as MethodChainNode, t as ArrayNode } from "./methodChainTypes-BuwpPC73.mjs";
|
|
4
4
|
|
|
5
5
|
//#region components/SmartTextInput/parser/method-chain/parser.d.ts
|
|
6
6
|
declare class SyntaxError extends Error {
|
|
@@ -63,4 +63,4 @@ declare const getSyntaxError: () => typeof SyntaxError;
|
|
|
63
63
|
declare const methodChainNodeToJsonSchema: (node: StringNode | NumberNode | ArrayNode) => JsonSchema | null;
|
|
64
64
|
//#endregion
|
|
65
65
|
export { tryParseMethodChain as C, removeFunctionNode as S, methodChainToString as _, getFunctionParams as a, pathContainsFunctionNode as b, isCustomFunctionNode as c, isIdentifierNode as d, isStringNode as f, methodChainRootName as g, methodChainNodeToJsonSchema as h, containsFunctionNode as i, isEmpty as l, methodChainCache as m, MethodChainNodeTypes as n, getSyntaxError as o, isValid as p, appendedMethodChain as r, isArrayNode as s, EMPTY_METHOD_CHAIN as t, isFunctionNode as u, parseMethodChain as v, pathIsNormative as x, parseWithPartialOption as y };
|
|
66
|
-
//# sourceMappingURL=methodChain-
|
|
66
|
+
//# sourceMappingURL=methodChain-BNDytoaD.d.mts.map
|
|
@@ -238,4 +238,4 @@ const methodChainNodeToJsonSchema = (node) => {
|
|
|
238
238
|
//#endregion
|
|
239
239
|
export { tryParseMethodChain as C, removeFunctionNode as S, methodChainToString as _, getFunctionParams as a, pathContainsFunctionNode as b, isCustomFunctionNode as c, isIdentifierNode as d, isStringNode as f, methodChainRootName as g, methodChainNodeToJsonSchema as h, containsFunctionNode as i, isEmpty$1 as l, methodChainCache as m, MethodChainNodeTypes as n, getSyntaxError as o, isValid as p, appendedMethodChain as r, isArrayNode as s, EMPTY_METHOD_CHAIN as t, isFunctionNode as u, parseMethodChain as v, assertNever as w, pathIsNormative as x, parseWithPartialOption as y };
|
|
240
240
|
|
|
241
|
-
//# sourceMappingURL=methodChain-
|
|
241
|
+
//# sourceMappingURL=methodChain-xZ1_vhbz.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"methodChain-L_h8Z8Bx.mjs","names":["isEmpty","updatedParse","UpdatedSyntaxError"],"sources":["../lib/assertNever.ts","../lib/methodChain.ts"],"sourcesContent":["import { reportError } from './errorReporter';\n\n// @ts-expect-error Returns never so the compiler checks exhaustiveness, but doesn't throw so a malformed\n// value degrades instead of breaking render.\nexport function assertNever(value: never): never {\n const dump = typeof value === 'object' ? JSON.stringify(value) : value;\n reportError(new TypeError(`assertNever non-exhaustive match: ${dump}`));\n}\n","import { last } from 'lodash-es';\n\nimport {\n parse as updatedParse,\n SyntaxError as UpdatedSyntaxError,\n} from '@persona/design-system/components/SmartTextInput/parser/method-chain/parser';\nimport { ASTNodeType } from '@persona/design-system/components/SmartTextInput/parser/method-chain/types';\n\nimport { assertNever } from './assertNever';\nimport { type JsonSchema, JsonSchemaTypes } from './jsonSchema';\nimport { normalizeChain } from './methodChainNormalize';\nimport type {\n Chain,\n FunctionNode,\n CustomFunctionNode,\n IdentifierNode,\n StringNode,\n NumberNode,\n ArrayNode,\n FunctionParamType,\n MethodChainNode,\n} from './methodChainTypes';\n\n// Re-export types for backward compatibility\nexport {\n Chain,\n FunctionNode,\n CustomFunctionNode,\n IdentifierNode,\n StringNode,\n NumberNode,\n ArrayNode,\n FunctionParamType,\n MethodChainNode,\n};\n\nexport const methodChainCache: { [key: string]: Chain } = {};\n\nexport const MethodChainNodeTypes = {\n Chain: ASTNodeType.Chain,\n String: ASTNodeType.String,\n Number: ASTNodeType.Number,\n Identifier: ASTNodeType.Identifier,\n Function: ASTNodeType.Function,\n CustomFunction: ASTNodeType.CustomFunction,\n Array: ASTNodeType.Array,\n} as const;\n\nexport const EMPTY_METHOD_CHAIN: Chain = {\n type: MethodChainNodeTypes.Chain,\n links: [],\n};\n\ntype MethodChainLiteral = string | number | (string | number)[];\n\nexport const isFunctionNode = (node: MethodChainNode): node is FunctionNode =>\n node.type === MethodChainNodeTypes.Function;\n\nexport const isCustomFunctionNode = (node: MethodChainNode): node is CustomFunctionNode =>\n node.type === MethodChainNodeTypes.CustomFunction;\n\nexport const isIdentifierNode = (node: MethodChainNode): node is IdentifierNode =>\n node.type === MethodChainNodeTypes.Identifier;\n\nexport const isStringNode = (node: FunctionParamType): node is StringNode =>\n node.type === MethodChainNodeTypes.String;\n\nexport const isArrayNode = (node: FunctionParamType): node is ArrayNode =>\n node.type === MethodChainNodeTypes.Array;\n\nexport const containsFunctionNode = (methodChain: Chain, ...functionNames: string[]): boolean =>\n methodChain.links.some((link) => isFunctionNode(link) && functionNames.includes(link.name));\n\n/**\n * Returns true if the string contains any function node (e.g. `.at(...)`) when parsed\n * as a method chain. Use this to detect whether a field path must be treated as an\n * opaque key rather than split on `.` for Lodash set/get operations.\n */\nexport const pathContainsFunctionNode = (path: string): boolean => {\n try {\n const chain = parseMethodChain(path);\n return chain.links.some(\n (link) =>\n link.type === MethodChainNodeTypes.Function ||\n link.type === MethodChainNodeTypes.CustomFunction,\n );\n } catch {\n return false;\n }\n};\n\nexport const isEmpty = (methodChain: Chain): boolean => methodChain.links.length === 0;\n\nexport const getFunctionParams = (\n methodChain: Chain,\n ...functionNames: string[]\n): Record<string, MethodChainLiteral[]> => {\n return Object.fromEntries(\n methodChain.links\n .filter((link) => isFunctionNode(link))\n .filter((link) => functionNames.includes(link.name))\n .map((link) => [link.name, flattenParamsToString(link.params)]),\n );\n};\n\nexport const removeFunctionNode = (methodChain: Chain, functionName: string): Chain => {\n return {\n type: MethodChainNodeTypes.Chain,\n links: methodChain.links.filter(\n (link) => link.type !== MethodChainNodeTypes.Function || link.name !== functionName,\n ),\n };\n};\n\nconst flattenParamsToString = (params: FunctionParamType[]): MethodChainLiteral[] => {\n const result: MethodChainLiteral[] = [];\n\n for (const param of params) {\n switch (param.type) {\n case MethodChainNodeTypes.Chain:\n result.push(...flattenChainToString(param));\n break;\n case MethodChainNodeTypes.String:\n case MethodChainNodeTypes.Number:\n result.push(param.value);\n break;\n case MethodChainNodeTypes.Array:\n result.push(param.items.map((item) => item.value));\n break;\n }\n }\n\n return result;\n};\n\nconst flattenChainToString = (methodChain: Chain): MethodChainLiteral[] =>\n methodChain.links\n .map((link) => {\n switch (link.type) {\n case MethodChainNodeTypes.Function:\n case MethodChainNodeTypes.CustomFunction:\n return flattenParamsToString(link.params);\n case MethodChainNodeTypes.Identifier:\n return link.name;\n }\n })\n .flat();\n\nexport const isValid = (methodChain: string): boolean => {\n try {\n parseMethodChain(methodChain);\n return true;\n } catch {\n return false;\n }\n};\n\n/**\n * The parsed chain, or undefined when it will not parse. Callers that read a chain while it is being\n * authored hold half-typed input, where a throw is noise rather than an error.\n */\nexport const tryParseMethodChain = (methodChain: string): Chain | undefined => {\n try {\n return parseMethodChain(methodChain);\n } catch {\n return undefined;\n }\n};\n\n/** The object a chain is rooted at: `current_case.inquiries` -> `current_case`. */\nexport const methodChainRootName = (methodChain: string): string | undefined => {\n const [root] = tryParseMethodChain(methodChain)?.links ?? [];\n return root && isIdentifierNode(root) ? root.name : undefined;\n};\n\nexport const parseMethodChain = (methodChain: string): Chain => {\n if (!methodChain || methodChain === '') {\n return EMPTY_METHOD_CHAIN;\n }\n\n if (!methodChainCache[methodChain]) {\n methodChainCache[methodChain] = normalizeChain(updatedParse(methodChain, { strict: true }));\n }\n return methodChainCache[methodChain];\n};\n\nconst memberToString = (value: string): string => {\n return `'${value.replace(/'/g, \"\\\\'\")}'`;\n};\n\n// Number#toString gives the shortest decimal string that round-trips back to the same\n// float64, but for magnitudes below 1e-6 (or above 1e21) it switches to exponential\n// notation (e.g. `0.0000001` -> \"1e-7\"), which the method chain grammar's plain-decimal\n// literal can't parse. Expand that exponential form back into plain decimal by shifting\n// its digits, rather than capping fraction digits (e.g. via toLocaleString), which silently\n// rounds magnitudes below the cap to \"0\" instead of reproducing them.\nconst expandExponentialNotation = (str: string): string => {\n const match = /^(-?)(\\d)(?:\\.(\\d+))?e([+-]\\d+)$/.exec(str);\n if (!match) {\n return str;\n }\n const [, sign, leadingDigit, fractionDigits = '', exponentStr] = match;\n const digits = leadingDigit + fractionDigits;\n const exponent = Number(exponentStr);\n\n if (exponent < 0) {\n return `${sign}0.${'0'.repeat(-exponent - 1)}${digits}`;\n }\n // Positive exponential notation only appears at exponent >= 21 (Number#toString's own\n // threshold), while a double's mantissa never carries more than 17 significant digits,\n // so the exponent always reaches past the end of `digits` — there's no case where the\n // decimal point lands inside them.\n return `${sign}${digits}${'0'.repeat(exponent - fractionDigits.length)}`;\n};\n\nconst numberLiteralToString = (value: number): string => {\n // The grammar has no literal for Infinity/NaN; render/label call sites have no way to\n // recover from a throw, so fall back to JS's own string form instead of crashing them.\n if (!Number.isFinite(value)) {\n return `${value}`;\n }\n\n const str = value.toString();\n return /e/i.test(str) ? expandExponentialNotation(str) : str;\n};\n\nexport const methodChainToString = (\n methodChain: Chain | StringNode | NumberNode | ArrayNode,\n): string => {\n switch (methodChain.type) {\n case MethodChainNodeTypes.String:\n return methodChain.value;\n case MethodChainNodeTypes.Number:\n return numberLiteralToString(methodChain.value);\n case MethodChainNodeTypes.Array:\n return `[${methodChain.items\n .map((item) =>\n item.type === MethodChainNodeTypes.String\n ? memberToString(item.value)\n : `#${numberLiteralToString(item.value)}`,\n )\n .join(', ')}]`;\n default: {\n const regex = new RegExp('^@?[a-zA-Z0-9_-]+$');\n return methodChain.links\n .map((link, index) => {\n switch (link.type) {\n case MethodChainNodeTypes.Identifier: {\n const fullName = `${link.prefix ?? ''}${link.name}`;\n return index === 0\n ? fullName\n : regex.test(fullName)\n ? `.${fullName}`\n : `['${fullName.replace(/'/g, \"\\\\'\")}']`;\n }\n case MethodChainNodeTypes.Function: {\n return `.${link.name}(${link.params\n .map((param) => {\n switch (param.type) {\n case MethodChainNodeTypes.String:\n return memberToString(param.value);\n case MethodChainNodeTypes.Number:\n return `#${numberLiteralToString(param.value)}`;\n case MethodChainNodeTypes.Chain:\n case MethodChainNodeTypes.Array:\n return methodChainToString(param);\n }\n })\n .join(', ')})`;\n }\n case MethodChainNodeTypes.CustomFunction: {\n const paramStr = link.params\n .map((param) => {\n switch (param.type) {\n case MethodChainNodeTypes.String:\n return memberToString(param.value);\n case MethodChainNodeTypes.Number:\n return `#${numberLiteralToString(param.value)}`;\n case MethodChainNodeTypes.Chain:\n case MethodChainNodeTypes.Array:\n return methodChainToString(param);\n }\n })\n .join(', ');\n return [\n index === 0 ? '' : '.',\n `@${link.name}`,\n link.params.length === 0 ? '' : `(${paramStr})`,\n ].join('');\n }\n default:\n assertNever(link);\n }\n })\n .join('');\n }\n }\n};\n\nexport const appendedMethodChain = (\n parentChain: Chain,\n appended: string | MethodChainNode,\n): Chain => {\n const buildNode = (name: string): MethodChainNode => {\n if (name.startsWith('@')) {\n return { type: MethodChainNodeTypes.CustomFunction, name: name.slice(1), params: [] };\n }\n return { type: MethodChainNodeTypes.Identifier, name };\n };\n\n return {\n type: MethodChainNodeTypes.Chain,\n links: [...parentChain.links, typeof appended === 'string' ? buildNode(appended) : appended],\n };\n};\n\nexport const parseWithPartialOption = (\n path: string,\n): { methodChain: Chain; partial: string; valid: boolean } => {\n if (isValid(path)) {\n const methodChain = parseMethodChain(path);\n\n return {\n methodChain: {\n type: MethodChainNodeTypes.Chain,\n links: methodChain.links.slice(0, methodChain.links.length - 1),\n },\n partial: last(methodChain.links)?.name || '',\n valid: true,\n };\n }\n\n const rawParse = (input: string): Chain => {\n return normalizeChain(updatedParse(input, { strict: true }));\n };\n\n try {\n if (path.endsWith('.')) {\n return {\n methodChain: rawParse(path.slice(0, -1)),\n partial: '',\n valid: true,\n };\n }\n\n if (path.lastIndexOf('[') > path.lastIndexOf(']')) {\n const partialString = path.slice(path.lastIndexOf('[') + 2);\n const partialValue = partialString.endsWith(\"'\") ? partialString.slice(0, -1) : partialString;\n return {\n methodChain: rawParse(path.slice(0, path.lastIndexOf('['))),\n partial: partialValue,\n valid: true,\n };\n }\n } catch {\n /* empty */\n }\n\n return {\n methodChain: EMPTY_METHOD_CHAIN,\n partial: path,\n valid: false,\n };\n};\n\n// Check if the path can be parsed as legacy method chain format.\n// Normative means all the name parts are\n// 1. delimited by only dots and\n// 2. only contain alphanumeric characters, underscores, and hyphens.\nexport const pathIsNormative = (path: string): boolean => {\n return path.split('.').every((part) => /^[a-zA-Z0-9_-]+$/.test(part));\n};\nexport const getSyntaxError = (): typeof UpdatedSyntaxError => UpdatedSyntaxError;\n\nexport const methodChainNodeToJsonSchema = (\n node: StringNode | NumberNode | ArrayNode,\n): JsonSchema | null => {\n if (node.type === MethodChainNodeTypes.String) {\n return {\n type: JsonSchemaTypes.String,\n };\n } else if (node.type === MethodChainNodeTypes.Number) {\n return {\n type: JsonSchemaTypes.Number,\n };\n } else if (node.type === MethodChainNodeTypes.Array) {\n // Determine the items schema based on the first item type\n // For simplicity, assume all items are the same type\n if (node.items.length > 0) {\n const firstItem = node.items[0];\n const itemSchema: JsonSchema =\n firstItem.type === MethodChainNodeTypes.String\n ? { type: JsonSchemaTypes.String }\n : { type: JsonSchemaTypes.Number };\n\n return {\n type: JsonSchemaTypes.Array,\n items: itemSchema,\n };\n } else {\n return {\n type: JsonSchemaTypes.Array,\n items: { type: JsonSchemaTypes.String },\n };\n }\n }\n\n return null;\n};\n"],"mappings":";;;;;;;AAIA,SAAgB,YAAY,OAAqB;CAC/C,MAAM,OAAO,OAAO,UAAU,WAAW,KAAK,UAAU,MAAM,GAAG;AACjE,6BAAY,IAAI,UAAU,qCAAqC,OAAO,CAAC;;;;AC8BzE,MAAa,mBAA6C,EAAE;AAE5D,MAAa,uBAAuB;CAClC,OAAA;CACA,QAAA;CACA,QAAA;CACA,YAAA;CACA,UAAA;CACA,gBAAA;CACA,OAAA;CACD;AAED,MAAa,qBAA4B;CACvC,MAAM,qBAAqB;CAC3B,OAAO,EAAE;CACV;AAID,MAAa,kBAAkB,SAC7B,KAAK,SAAS,qBAAqB;AAErC,MAAa,wBAAwB,SACnC,KAAK,SAAS,qBAAqB;AAErC,MAAa,oBAAoB,SAC/B,KAAK,SAAS,qBAAqB;AAErC,MAAa,gBAAgB,SAC3B,KAAK,SAAS,qBAAqB;AAErC,MAAa,eAAe,SAC1B,KAAK,SAAS,qBAAqB;AAErC,MAAa,wBAAwB,aAAoB,GAAG,kBAC1D,YAAY,MAAM,MAAM,SAAS,eAAe,KAAK,IAAI,cAAc,SAAS,KAAK,KAAK,CAAC;;;;;;AAO7F,MAAa,4BAA4B,SAA0B;AACjE,KAAI;AAEF,SADc,iBAAiB,KACnB,CAAC,MAAM,MAChB,SACC,KAAK,SAAS,qBAAqB,YACnC,KAAK,SAAS,qBAAqB,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ACQ,KAAK,SAAS,qBAAqB,OAC5C,QAAO,EACL,MAAA,UACD;UACQ,KAAK,SAAS,qBAAqB,MAG5C,KAAI,KAAK,MAAM,SAAS,EAOtB,QAAO;EACL,MAAA;EACA,OARgB,KAAK,MAAM,GAEjB,SAAS,qBAAqB,SACpC,EAAE,MAAA,UAA8B,GAChC,EAAE,MAAA,UAA8B;EAKrC;KAED,QAAO;EACL,MAAA;EACA,OAAO,EAAE,MAAA,UAA8B;EACxC;AAIL,QAAO"}
|
|
1
|
+
{"version":3,"file":"methodChain-xZ1_vhbz.mjs","names":["isEmpty","updatedParse","UpdatedSyntaxError"],"sources":["../lib/assertNever.ts","../lib/methodChain.ts"],"sourcesContent":["import { reportError } from './errorReporter';\n\n// @ts-expect-error Returns never so the compiler checks exhaustiveness, but doesn't throw so a malformed\n// value degrades instead of breaking render.\nexport function assertNever(value: never): never {\n const dump = typeof value === 'object' ? JSON.stringify(value) : value;\n reportError(new TypeError(`assertNever non-exhaustive match: ${dump}`));\n}\n","import { last } from 'lodash-es';\n\nimport {\n parse as updatedParse,\n SyntaxError as UpdatedSyntaxError,\n} from '@persona/design-system/components/SmartTextInput/parser/method-chain/parser';\nimport { ASTNodeType } from '@persona/design-system/components/SmartTextInput/parser/method-chain/types';\n\nimport { assertNever } from './assertNever';\nimport { type JsonSchema, JsonSchemaTypes } from './jsonSchema';\nimport { normalizeChain } from './methodChainNormalize';\nimport type {\n Chain,\n FunctionNode,\n CustomFunctionNode,\n IdentifierNode,\n StringNode,\n NumberNode,\n ArrayNode,\n FunctionParamType,\n MethodChainNode,\n} from './methodChainTypes';\n\n// Re-export types for backward compatibility\nexport {\n Chain,\n FunctionNode,\n CustomFunctionNode,\n IdentifierNode,\n StringNode,\n NumberNode,\n ArrayNode,\n FunctionParamType,\n MethodChainNode,\n};\n\nexport const methodChainCache: { [key: string]: Chain } = {};\n\nexport const MethodChainNodeTypes = {\n Chain: ASTNodeType.Chain,\n String: ASTNodeType.String,\n Number: ASTNodeType.Number,\n Identifier: ASTNodeType.Identifier,\n Function: ASTNodeType.Function,\n CustomFunction: ASTNodeType.CustomFunction,\n Array: ASTNodeType.Array,\n} as const;\n\nexport const EMPTY_METHOD_CHAIN: Chain = {\n type: MethodChainNodeTypes.Chain,\n links: [],\n};\n\ntype MethodChainLiteral = string | number | (string | number)[];\n\nexport const isFunctionNode = (node: MethodChainNode): node is FunctionNode =>\n node.type === MethodChainNodeTypes.Function;\n\nexport const isCustomFunctionNode = (node: MethodChainNode): node is CustomFunctionNode =>\n node.type === MethodChainNodeTypes.CustomFunction;\n\nexport const isIdentifierNode = (node: MethodChainNode): node is IdentifierNode =>\n node.type === MethodChainNodeTypes.Identifier;\n\nexport const isStringNode = (node: FunctionParamType): node is StringNode =>\n node.type === MethodChainNodeTypes.String;\n\nexport const isArrayNode = (node: FunctionParamType): node is ArrayNode =>\n node.type === MethodChainNodeTypes.Array;\n\nexport const containsFunctionNode = (methodChain: Chain, ...functionNames: string[]): boolean =>\n methodChain.links.some((link) => isFunctionNode(link) && functionNames.includes(link.name));\n\n/**\n * Returns true if the string contains any function node (e.g. `.at(...)`) when parsed\n * as a method chain. Use this to detect whether a field path must be treated as an\n * opaque key rather than split on `.` for Lodash set/get operations.\n */\nexport const pathContainsFunctionNode = (path: string): boolean => {\n try {\n const chain = parseMethodChain(path);\n return chain.links.some(\n (link) =>\n link.type === MethodChainNodeTypes.Function ||\n link.type === MethodChainNodeTypes.CustomFunction,\n );\n } catch {\n return false;\n }\n};\n\nexport const isEmpty = (methodChain: Chain): boolean => methodChain.links.length === 0;\n\nexport const getFunctionParams = (\n methodChain: Chain,\n ...functionNames: string[]\n): Record<string, MethodChainLiteral[]> => {\n return Object.fromEntries(\n methodChain.links\n .filter((link) => isFunctionNode(link))\n .filter((link) => functionNames.includes(link.name))\n .map((link) => [link.name, flattenParamsToString(link.params)]),\n );\n};\n\nexport const removeFunctionNode = (methodChain: Chain, functionName: string): Chain => {\n return {\n type: MethodChainNodeTypes.Chain,\n links: methodChain.links.filter(\n (link) => link.type !== MethodChainNodeTypes.Function || link.name !== functionName,\n ),\n };\n};\n\nconst flattenParamsToString = (params: FunctionParamType[]): MethodChainLiteral[] => {\n const result: MethodChainLiteral[] = [];\n\n for (const param of params) {\n switch (param.type) {\n case MethodChainNodeTypes.Chain:\n result.push(...flattenChainToString(param));\n break;\n case MethodChainNodeTypes.String:\n case MethodChainNodeTypes.Number:\n result.push(param.value);\n break;\n case MethodChainNodeTypes.Array:\n result.push(param.items.map((item) => item.value));\n break;\n }\n }\n\n return result;\n};\n\nconst flattenChainToString = (methodChain: Chain): MethodChainLiteral[] =>\n methodChain.links\n .map((link) => {\n switch (link.type) {\n case MethodChainNodeTypes.Function:\n case MethodChainNodeTypes.CustomFunction:\n return flattenParamsToString(link.params);\n case MethodChainNodeTypes.Identifier:\n return link.name;\n }\n })\n .flat();\n\nexport const isValid = (methodChain: string): boolean => {\n try {\n parseMethodChain(methodChain);\n return true;\n } catch {\n return false;\n }\n};\n\n/**\n * The parsed chain, or undefined when it will not parse. Callers that read a chain while it is being\n * authored hold half-typed input, where a throw is noise rather than an error.\n */\nexport const tryParseMethodChain = (methodChain: string): Chain | undefined => {\n try {\n return parseMethodChain(methodChain);\n } catch {\n return undefined;\n }\n};\n\n/** The object a chain is rooted at: `current_case.inquiries` -> `current_case`. */\nexport const methodChainRootName = (methodChain: string): string | undefined => {\n const [root] = tryParseMethodChain(methodChain)?.links ?? [];\n return root && isIdentifierNode(root) ? root.name : undefined;\n};\n\nexport const parseMethodChain = (methodChain: string): Chain => {\n if (!methodChain || methodChain === '') {\n return EMPTY_METHOD_CHAIN;\n }\n\n if (!methodChainCache[methodChain]) {\n methodChainCache[methodChain] = normalizeChain(updatedParse(methodChain, { strict: true }));\n }\n return methodChainCache[methodChain];\n};\n\nconst memberToString = (value: string): string => {\n return `'${value.replace(/'/g, \"\\\\'\")}'`;\n};\n\n// Number#toString gives the shortest decimal string that round-trips back to the same\n// float64, but for magnitudes below 1e-6 (or above 1e21) it switches to exponential\n// notation (e.g. `0.0000001` -> \"1e-7\"), which the method chain grammar's plain-decimal\n// literal can't parse. Expand that exponential form back into plain decimal by shifting\n// its digits, rather than capping fraction digits (e.g. via toLocaleString), which silently\n// rounds magnitudes below the cap to \"0\" instead of reproducing them.\nconst expandExponentialNotation = (str: string): string => {\n const match = /^(-?)(\\d)(?:\\.(\\d+))?e([+-]\\d+)$/.exec(str);\n if (!match) {\n return str;\n }\n const [, sign, leadingDigit, fractionDigits = '', exponentStr] = match;\n const digits = leadingDigit + fractionDigits;\n const exponent = Number(exponentStr);\n\n if (exponent < 0) {\n return `${sign}0.${'0'.repeat(-exponent - 1)}${digits}`;\n }\n // Positive exponential notation only appears at exponent >= 21 (Number#toString's own\n // threshold), while a double's mantissa never carries more than 17 significant digits,\n // so the exponent always reaches past the end of `digits` — there's no case where the\n // decimal point lands inside them.\n return `${sign}${digits}${'0'.repeat(exponent - fractionDigits.length)}`;\n};\n\nconst numberLiteralToString = (value: number): string => {\n // The grammar has no literal for Infinity/NaN; render/label call sites have no way to\n // recover from a throw, so fall back to JS's own string form instead of crashing them.\n if (!Number.isFinite(value)) {\n return `${value}`;\n }\n\n const str = value.toString();\n return /e/i.test(str) ? expandExponentialNotation(str) : str;\n};\n\nexport const methodChainToString = (\n methodChain: Chain | StringNode | NumberNode | ArrayNode,\n): string => {\n switch (methodChain.type) {\n case MethodChainNodeTypes.String:\n return methodChain.value;\n case MethodChainNodeTypes.Number:\n return numberLiteralToString(methodChain.value);\n case MethodChainNodeTypes.Array:\n return `[${methodChain.items\n .map((item) =>\n item.type === MethodChainNodeTypes.String\n ? memberToString(item.value)\n : `#${numberLiteralToString(item.value)}`,\n )\n .join(', ')}]`;\n default: {\n const regex = new RegExp('^@?[a-zA-Z0-9_-]+$');\n return methodChain.links\n .map((link, index) => {\n switch (link.type) {\n case MethodChainNodeTypes.Identifier: {\n const fullName = `${link.prefix ?? ''}${link.name}`;\n return index === 0\n ? fullName\n : regex.test(fullName)\n ? `.${fullName}`\n : `['${fullName.replace(/'/g, \"\\\\'\")}']`;\n }\n case MethodChainNodeTypes.Function: {\n return `.${link.name}(${link.params\n .map((param) => {\n switch (param.type) {\n case MethodChainNodeTypes.String:\n return memberToString(param.value);\n case MethodChainNodeTypes.Number:\n return `#${numberLiteralToString(param.value)}`;\n case MethodChainNodeTypes.Chain:\n case MethodChainNodeTypes.Array:\n return methodChainToString(param);\n }\n })\n .join(', ')})`;\n }\n case MethodChainNodeTypes.CustomFunction: {\n const paramStr = link.params\n .map((param) => {\n switch (param.type) {\n case MethodChainNodeTypes.String:\n return memberToString(param.value);\n case MethodChainNodeTypes.Number:\n return `#${numberLiteralToString(param.value)}`;\n case MethodChainNodeTypes.Chain:\n case MethodChainNodeTypes.Array:\n return methodChainToString(param);\n }\n })\n .join(', ');\n return [\n index === 0 ? '' : '.',\n `@${link.name}`,\n link.params.length === 0 ? '' : `(${paramStr})`,\n ].join('');\n }\n default:\n assertNever(link);\n }\n })\n .join('');\n }\n }\n};\n\nexport const appendedMethodChain = (\n parentChain: Chain,\n appended: string | MethodChainNode,\n): Chain => {\n const buildNode = (name: string): MethodChainNode => {\n if (name.startsWith('@')) {\n return { type: MethodChainNodeTypes.CustomFunction, name: name.slice(1), params: [] };\n }\n return { type: MethodChainNodeTypes.Identifier, name };\n };\n\n return {\n type: MethodChainNodeTypes.Chain,\n links: [...parentChain.links, typeof appended === 'string' ? buildNode(appended) : appended],\n };\n};\n\nexport const parseWithPartialOption = (\n path: string,\n): { methodChain: Chain; partial: string; valid: boolean } => {\n if (isValid(path)) {\n const methodChain = parseMethodChain(path);\n\n return {\n methodChain: {\n type: MethodChainNodeTypes.Chain,\n links: methodChain.links.slice(0, methodChain.links.length - 1),\n },\n partial: last(methodChain.links)?.name || '',\n valid: true,\n };\n }\n\n const rawParse = (input: string): Chain => {\n return normalizeChain(updatedParse(input, { strict: true }));\n };\n\n try {\n if (path.endsWith('.')) {\n return {\n methodChain: rawParse(path.slice(0, -1)),\n partial: '',\n valid: true,\n };\n }\n\n if (path.lastIndexOf('[') > path.lastIndexOf(']')) {\n const partialString = path.slice(path.lastIndexOf('[') + 2);\n const partialValue = partialString.endsWith(\"'\") ? partialString.slice(0, -1) : partialString;\n return {\n methodChain: rawParse(path.slice(0, path.lastIndexOf('['))),\n partial: partialValue,\n valid: true,\n };\n }\n } catch {\n /* empty */\n }\n\n return {\n methodChain: EMPTY_METHOD_CHAIN,\n partial: path,\n valid: false,\n };\n};\n\n// Check if the path can be parsed as legacy method chain format.\n// Normative means all the name parts are\n// 1. delimited by only dots and\n// 2. only contain alphanumeric characters, underscores, and hyphens.\nexport const pathIsNormative = (path: string): boolean => {\n return path.split('.').every((part) => /^[a-zA-Z0-9_-]+$/.test(part));\n};\nexport const getSyntaxError = (): typeof UpdatedSyntaxError => UpdatedSyntaxError;\n\nexport const methodChainNodeToJsonSchema = (\n node: StringNode | NumberNode | ArrayNode,\n): JsonSchema | null => {\n if (node.type === MethodChainNodeTypes.String) {\n return {\n type: JsonSchemaTypes.String,\n };\n } else if (node.type === MethodChainNodeTypes.Number) {\n return {\n type: JsonSchemaTypes.Number,\n };\n } else if (node.type === MethodChainNodeTypes.Array) {\n // Determine the items schema based on the first item type\n // For simplicity, assume all items are the same type\n if (node.items.length > 0) {\n const firstItem = node.items[0];\n const itemSchema: JsonSchema =\n firstItem.type === MethodChainNodeTypes.String\n ? { type: JsonSchemaTypes.String }\n : { type: JsonSchemaTypes.Number };\n\n return {\n type: JsonSchemaTypes.Array,\n items: itemSchema,\n };\n } else {\n return {\n type: JsonSchemaTypes.Array,\n items: { type: JsonSchemaTypes.String },\n };\n }\n }\n\n return null;\n};\n"],"mappings":";;;;;;;AAIA,SAAgB,YAAY,OAAqB;CAC/C,MAAM,OAAO,OAAO,UAAU,WAAW,KAAK,UAAU,MAAM,GAAG;AACjE,6BAAY,IAAI,UAAU,qCAAqC,OAAO,CAAC;;;;AC8BzE,MAAa,mBAA6C,EAAE;AAE5D,MAAa,uBA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,aAAa,SAAS,KAAK,MAAM,GAAG,GAAG,CAAC;GACxC,SAAS;GACT,OAAO;GACR;AAGH,MAAI,KAAK,YAAY,IAAI,GAAG,KAAK,YAAY,IAAI,EAAE;GACjD,MAAM,gBAAgB,KAAK,MAAM,KAAK,YAAY,IAAI,GAAG,EAAE;GAC3D,MAAM,eAAe,cAAc,SAAS,IAAI,GAAG,cAAc,MAAM,GAAG,GAAG,GAAG;AAChF,UAAO;IACL,aAAa,SAAS,KAAK,MAAM,GAAG,KAAK,YAAY,IAAI,CAAC,CAAC;IAC3D,SAAS;IACT,OAAO;IACR;;SAEG;AAIR,QAAO;EACL,aAAa;EACb,SAAS;EACT,OAAO;EACR;;AAOH,MAAa,mBAAmB,SAA0B;AACxD,QAAO,KAAK,MAAM,IAAI,CAAC,OAAO,SAAS,mBAAmB,KAAK,KAAK,CAAC;;AAEvE,MAAa,uBAAkDC;AAE/D,MAAa,+BACX,SACsB;AACtB,KAAI,KAAK,SAAS,qBAAqB,OACrC,QAAO,EACL,MAAA,UACD;UACQ,KAAK,SAAS,qBAAqB,OAC5C,QAAO,EACL,MAAA,UACD;UACQ,KAAK,SAAS,qBAAqB,MAG5C,KAAI,KAAK,MAAM,SAAS,EAOtB,QAAO;EACL,MAAA;EACA,OARgB,KAAK,MAAM,GAEjB,SAAS,qBAAqB,SACpC,EAAE,MAAA,UAA8B,GAChC,EAAE,MAAA,UAA8B;EAKrC;KAED,QAAO;EACL,MAAA;EACA,OAAO,EAAE,MAAA,UAA8B;EACxC;AAIL,QAAO"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as ASTIdentifierNode, d as ASTNumberNode, m as ASTStringNode, n as ASTChain, o as ASTFunctionNode, r as ASTCustomFunctionNode, t as ASTArrayNode } from "./types-
|
|
1
|
+
import { c as ASTIdentifierNode, d as ASTNumberNode, m as ASTStringNode, n as ASTChain, o as ASTFunctionNode, r as ASTCustomFunctionNode, t as ASTArrayNode } from "./types-4wnr5R9P.mjs";
|
|
2
2
|
|
|
3
3
|
//#region lib/methodChainTypes.d.ts
|
|
4
4
|
type MethodChainNode = IdentifierNode | FunctionNode | CustomFunctionNode;
|
|
@@ -20,4 +20,4 @@ type CustomFunctionNode = Omit<ASTCustomFunctionNode, 'children' | 'start' | 'en
|
|
|
20
20
|
};
|
|
21
21
|
//#endregion
|
|
22
22
|
export { FunctionParamType as a, NumberNode as c, FunctionNode as i, StringNode as l, Chain as n, IdentifierNode as o, CustomFunctionNode as r, MethodChainNode as s, ArrayNode as t };
|
|
23
|
-
//# sourceMappingURL=methodChainTypes-
|
|
23
|
+
//# sourceMappingURL=methodChainTypes-BuwpPC73.d.mts.map
|
package/dist/mixins/focus.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as Variant } from "../theme-
|
|
2
|
-
import { t as PseudoClassProps } from "../PseudoClassProps-
|
|
1
|
+
import { o as Variant } from "../theme-BKg55Zk1.mjs";
|
|
2
|
+
import { t as PseudoClassProps } from "../PseudoClassProps-CverE9Ni.mjs";
|
|
3
3
|
import * as _$styled_components0 from "styled-components";
|
|
4
4
|
|
|
5
5
|
//#region mixins/hoverable.d.ts
|
package/dist/mixins/input.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as InputSizes, r as inputMixin, t as InputMixinProps } from "../input-
|
|
1
|
+
import { n as InputSizes, r as inputMixin, t as InputMixinProps } from "../input-DMPo8gRT.mjs";
|
|
2
2
|
export { InputMixinProps, InputSizes, inputMixin as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as Variant } from "../theme-
|
|
2
|
-
import { t as PseudoClassProps } from "../PseudoClassProps-
|
|
1
|
+
import { o as Variant } from "../theme-BKg55Zk1.mjs";
|
|
2
|
+
import { t as PseudoClassProps } from "../PseudoClassProps-CverE9Ni.mjs";
|
|
3
3
|
import * as _$styled_components0 from "styled-components";
|
|
4
4
|
|
|
5
5
|
//#region mixins/menuItem.d.ts
|
package/dist/mixins/text.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as displayMixins, c as paragraphMixins, i as ParagraphSize, n as HeadingSize, o as fontFamilyMixin, r as ParagraphMixinSize, s as headingMixins, t as DisplaySize } from "../text-
|
|
1
|
+
import { a as displayMixins, c as paragraphMixins, i as ParagraphSize, n as HeadingSize, o as fontFamilyMixin, r as ParagraphMixinSize, s as headingMixins, t as DisplaySize } from "../text-B7hx6G99.mjs";
|
|
2
2
|
export { DisplaySize, HeadingSize, ParagraphMixinSize, ParagraphSize, displayMixins, fontFamilyMixin, headingMixins, paragraphMixins };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
|
|
1
|
+
import { a as FilterConditionOperator, c as FilterFieldType, d as FilterRuleValue, l as FilterOperator, o as FilterField, r as DateRangeFilterValue, u as FilterRule } from "./types-CM8L7-ij.mjs";
|
|
2
|
+
import { i as CommonStrings } from "./strings-DQ3vxBj8.mjs";
|
|
3
3
|
//#region components/DataTable/TableControls/FiltersV2/operators.d.ts
|
|
4
|
+
type OperatorLabelKey = 'operatorIs' | 'operatorIsNot' | 'operatorContains' | 'operatorDoesNotContain' | 'operatorIsEmpty' | 'operatorIsNotEmpty' | 'operatorIsTrue' | 'operatorIsFalse' | 'operatorBefore' | 'operatorAfter' | 'operatorBetween' | 'operatorIsAnyOf' | 'operatorIsNoneOf' | 'operatorGreaterThan' | 'operatorGreaterThanOrEqual' | 'operatorLessThan' | 'operatorLessThanOrEqual';
|
|
4
5
|
declare function getOperatorsForType(type: FilterFieldType): ReadonlyArray<FilterOperator>;
|
|
5
6
|
/**
|
|
6
7
|
* Effective operator vocabulary for a concrete field: its `allowedOperators`
|
|
@@ -13,9 +14,11 @@ declare function getOperatorsForType(type: FilterFieldType): ReadonlyArray<Filte
|
|
|
13
14
|
* hand — the popover's operator dropdown, `FieldRegistry`, validation — so a
|
|
14
15
|
* field can never surface an operator the host application can't serialize.
|
|
15
16
|
*/
|
|
16
|
-
declare function getOperatorsForField(field: Pick<FilterField, 'type' | 'allowedOperators'>): ReadonlyArray<FilterOperator>;
|
|
17
|
+
declare function getOperatorsForField(field: Pick<FilterField, 'type' | 'allowedOperators' | 'condition'>): ReadonlyArray<FilterOperator>;
|
|
17
18
|
declare function getDefaultOperatorForType(type: FilterFieldType): FilterOperator;
|
|
18
|
-
declare function
|
|
19
|
+
declare function getConditionOperator(field: Pick<FilterField, 'condition'> | undefined, operator: FilterOperator): FilterConditionOperator | undefined;
|
|
20
|
+
declare function isValuelessOperator(operator: FilterOperator, field?: Pick<FilterField, 'condition'>): boolean;
|
|
21
|
+
declare function hasCompleteConditionValue(rule: FilterRule, field: FilterField): boolean;
|
|
19
22
|
/**
|
|
20
23
|
* Whether a rule's value is a date range: a range operator, or a field that is
|
|
21
24
|
* one by type. Relative metadata only describes a range, so resolving or
|
|
@@ -41,8 +44,12 @@ declare function isCompleteDateRange(value: FilterRuleValue): value is DateRange
|
|
|
41
44
|
* pinned to one operator renders it as static text rather than a caret that
|
|
42
45
|
* opens a one-item menu.
|
|
43
46
|
*/
|
|
44
|
-
declare function fieldHasMultipleOperators(field: Pick<FilterField, 'type' | 'allowedOperators'>): boolean;
|
|
45
|
-
|
|
47
|
+
declare function fieldHasMultipleOperators(field: Pick<FilterField, 'type' | 'allowedOperators' | 'condition'>): boolean;
|
|
48
|
+
/**
|
|
49
|
+
* The label for `operator`, specialized for `fieldType` where the generic label is ambiguous.
|
|
50
|
+
* Pass `strings` from `usePDSStrings()` to translate it; English when omitted.
|
|
51
|
+
*/
|
|
52
|
+
declare function getOperatorLabel(operator: FilterOperator, fieldType?: FilterFieldType, strings?: Pick<CommonStrings, OperatorLabelKey>, field?: Pick<FilterField, 'condition'>): string;
|
|
46
53
|
/**
|
|
47
54
|
* Return a copy of `rule` whose `value` honors the valueless-operator
|
|
48
55
|
* invariant: any rule whose operator is in the valueless set
|
|
@@ -51,7 +58,7 @@ declare function getOperatorLabel(operator: FilterOperator, fieldType?: FilterFi
|
|
|
51
58
|
* operator-change handlers, field-swap handlers, and defensive coercions
|
|
52
59
|
* before serialization.
|
|
53
60
|
*/
|
|
54
|
-
declare function withValue(rule: FilterRule, value: FilterRuleValue): FilterRule;
|
|
61
|
+
declare function withValue(rule: FilterRule, value: FilterRuleValue, field?: Pick<FilterField, 'condition'>): FilterRule;
|
|
55
62
|
/**
|
|
56
63
|
* Empty-but-present value seeded when a rule switches from a valueless operator
|
|
57
64
|
* (`is_empty`) to one that requires a value. Non-null on purpose: a `null` value
|
|
@@ -64,14 +71,14 @@ declare function emptyValueForFieldType(type: FilterFieldType): FilterRuleValue;
|
|
|
64
71
|
* `date` field seeds an empty string for `before` and an empty range for
|
|
65
72
|
* `between`.
|
|
66
73
|
*/
|
|
67
|
-
declare function emptyValueForRule(field: Pick<FilterField, 'type'>, operator: FilterOperator): FilterRuleValue;
|
|
74
|
+
declare function emptyValueForRule(field: Pick<FilterField, 'type' | 'condition'>, operator: FilterOperator): FilterRuleValue;
|
|
68
75
|
/**
|
|
69
76
|
* Carry `value` across an operator change, replacing it with a fresh draft
|
|
70
77
|
* when the two operators disagree about value shape. Switching a date pill
|
|
71
78
|
* from `after` to `between` must not leave the old ISO day string behind —
|
|
72
79
|
* the range control can't read it and the wire format would reject it.
|
|
73
80
|
*/
|
|
74
|
-
declare function reconcileValueForOperator(field: Pick<FilterField, 'type'>, nextOperator: FilterOperator, previousOperator: FilterOperator, value: FilterRuleValue): FilterRuleValue;
|
|
81
|
+
declare function reconcileValueForOperator(field: Pick<FilterField, 'type' | 'condition'>, nextOperator: FilterOperator, previousOperator: FilterOperator, value: FilterRuleValue): FilterRuleValue;
|
|
75
82
|
//#endregion
|
|
76
|
-
export {
|
|
77
|
-
//# sourceMappingURL=operators-
|
|
83
|
+
export { getConditionOperator as a, getOperatorsForField as c, isCompleteDateRange as d, isMinutePrecisionDate as f, withValue as g, reconcileValueForOperator as h, fieldHasMultipleOperators as i, getOperatorsForType as l, isValuelessOperator as m, emptyValueForFieldType as n, getDefaultOperatorForType as o, isRangeOperator as p, emptyValueForRule as r, getOperatorLabel as s, carriesDateRange as t, hasCompleteConditionValue as u };
|
|
84
|
+
//# sourceMappingURL=operators-B12UYEsV.d.mts.map
|
package/dist/operators.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export { carriesDateRange, emptyValueForFieldType, emptyValueForRule, fieldHasMultipleOperators, getDefaultOperatorForType, getOperatorLabel, getOperatorsForField, getOperatorsForType, isCompleteDateRange, isMinutePrecisionDate, isRangeOperator, isValuelessOperator, reconcileValueForOperator, withValue };
|
|
1
|
+
import { a as getConditionOperator, c as getOperatorsForField, d as isCompleteDateRange, f as isMinutePrecisionDate, g as withValue, h as reconcileValueForOperator, i as fieldHasMultipleOperators, l as getOperatorsForType, m as isValuelessOperator, n as emptyValueForFieldType, o as getDefaultOperatorForType, p as isRangeOperator, r as emptyValueForRule, s as getOperatorLabel, t as carriesDateRange, u as hasCompleteConditionValue } from "./operators-B12UYEsV.mjs";
|
|
2
|
+
export { carriesDateRange, emptyValueForFieldType, emptyValueForRule, fieldHasMultipleOperators, getConditionOperator, getDefaultOperatorForType, getOperatorLabel, getOperatorsForField, getOperatorsForType, hasCompleteConditionValue, isCompleteDateRange, isMinutePrecisionDate, isRangeOperator, isValuelessOperator, reconcileValueForOperator, withValue };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as PdsColor } from "./color-
|
|
2
|
-
import { i as PersonaTheme } from "./theme-
|
|
1
|
+
import { n as PdsColor } from "./color-BOm5A1Si.mjs";
|
|
2
|
+
import { i as PersonaTheme } from "./theme-BKg55Zk1.mjs";
|
|
3
3
|
import { Color } from "@persona/design-tokens";
|
|
4
4
|
|
|
5
5
|
//#region components/Button/palette.d.ts
|
|
@@ -18,4 +18,4 @@ interface ButtonPalette {
|
|
|
18
18
|
declare const buttonPalette: (theme: PersonaTheme, variant: ButtonVariant) => ButtonPalette;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { ButtonVariant as n, buttonPalette as r, ButtonPalette as t };
|
|
21
|
-
//# sourceMappingURL=palette-
|
|
21
|
+
//# sourceMappingURL=palette-BCszfY7I.d.mts.map
|
package/dist/palette.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as ButtonVariant, r as buttonPalette, t as ButtonPalette } from "./palette-
|
|
1
|
+
import { n as ButtonVariant, r as buttonPalette, t as ButtonPalette } from "./palette-BCszfY7I.mjs";
|
|
2
2
|
export { ButtonPalette, ButtonVariant, buttonPalette };
|