@geotab/zenith 3.1.1-beta.0 → 3.1.1-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/advancedGroupsFilter/advancedGroupsFilter.d.ts +1 -1
- package/dist/advancedGroupsFilter/advancedGroupsFilterForm.js +2 -2
- package/dist/advancedGroupsFilter/advancedGroupsFilterFormHelper.d.ts +1 -1
- package/dist/advancedGroupsFilter/advancedGroupsFilterFormHelper.js +2 -2
- package/dist/advancedGroupsFilter/advancedGroupsFilterFormSection.d.ts +1 -1
- package/dist/advancedGroupsFilter/advancedGroupsFilterFormSection.js +2 -2
- package/dist/advancedGroupsFilter/advancedGroupsFilterHelper.d.ts +2 -2
- package/dist/advancedGroupsFilter/advancedGroupsFilterHelper.js +1 -1
- package/dist/banner/banner.d.ts +2 -1
- package/dist/banner/banner.js +5 -3
- package/dist/banner/bannerMultipLine.d.ts +2 -1
- package/dist/banner/bannerMultipLine.js +2 -2
- package/dist/banner/bannerSingleLine.d.ts +2 -1
- package/dist/banner/bannerSingleLine.js +2 -2
- package/dist/button/button.d.ts +5 -3
- package/dist/button/button.js +4 -3
- package/dist/card/card.d.ts +2 -2
- package/dist/card/card.js +3 -1
- package/dist/card/components/cardButton/cardButton.d.ts +4 -3
- package/dist/card/components/cardButton/cardButton.js +2 -2
- package/dist/checkboxListWithAction/checkboxListWithAction.d.ts +1 -1
- package/dist/comboboxSelected/comboboxSelected.js +1 -1
- package/dist/commonHelpers/getAriaAttributes.d.ts +1 -0
- package/dist/commonHelpers/getAriaAttributes.js +16 -0
- package/dist/commonHelpers/hooks/useFormField.d.ts +8 -0
- package/dist/commonHelpers/hooks/useFormField.js +19 -0
- package/dist/commonHelpers/hooks/useFormFieldValues/getRuleValue.d.ts +2 -0
- package/dist/commonHelpers/hooks/useFormFieldValues/getRuleValue.js +13 -0
- package/dist/commonHelpers/hooks/useFormFieldValues/useFormFieldValues.d.ts +13 -0
- package/dist/commonHelpers/hooks/useFormFieldValues/useFormFieldValues.js +52 -0
- package/dist/commonHelpers/isFormItem.d.ts +2 -0
- package/dist/commonHelpers/isFormItem.js +5 -0
- package/dist/commonHelpers/loading.d.ts +6 -0
- package/dist/commonHelpers/loading.js +5 -0
- package/dist/commonHelpers/types/exclusive.d.ts +3 -0
- package/dist/commonHelpers/types/without.d.ts +3 -0
- package/dist/commonHelpers/zenComponent.d.ts +17 -0
- package/dist/dateInput/dateInput.d.ts +8 -22
- package/dist/dateInput/dateInput.js +20 -113
- package/dist/dateInputInner/dateInputInnerControlBlock.js +4 -1
- package/dist/dateInputRaw/dateInputRaw.d.ts +9 -0
- package/dist/dateInputRaw/dateInputRaw.js +134 -0
- package/dist/dateInputRaw/types.d.ts +32 -0
- package/dist/{dateInput → dateInputRaw/utils}/getLabel.js +1 -1
- package/dist/dateRange/dateRange.d.ts +10 -41
- package/dist/dateRange/dateRange.js +19 -259
- package/dist/dateRange/dateRangeUtils.d.ts +1 -38
- package/dist/dateRange/dateRangeUtils.js +15 -293
- package/dist/dateRangeRaw/dateRangeRaw.d.ts +45 -0
- package/dist/dateRangeRaw/dateRangeRaw.js +276 -0
- package/dist/dateRangeRaw/types.d.ts +48 -0
- package/dist/dateRangeRaw/types.js +2 -0
- package/dist/{dateRange → dateRangeRaw}/utils/areMapsEqual.d.ts +1 -1
- package/dist/dateRangeRaw/utils/dateRangeUtils.d.ts +38 -0
- package/dist/dateRangeRaw/utils/dateRangeUtils.js +295 -0
- package/dist/dateRangeRaw/utils/parseLabel.d.ts +2 -0
- package/dist/dateRangeRaw/utils/parseLabel.js +15 -0
- package/dist/divider/divider.d.ts +7 -0
- package/dist/divider/divider.js +7 -0
- package/dist/dropdown/dropdown.d.ts +21 -108
- package/dist/dropdown/dropdown.js +27 -494
- package/dist/dropdown/dropdownPopup.d.ts +4 -34
- package/dist/dropdown/dropdownPopup.js +2 -32
- package/dist/dropdown/dropdownTrigger.d.ts +2 -25
- package/dist/dropdown/dropdownTrigger.js +3 -30
- package/dist/{dropdown → dropdownRaw}/dropdownHelper.d.ts +15 -14
- package/dist/{dropdown → dropdownRaw}/dropdownHelper.js +1 -1
- package/dist/dropdownRaw/dropdownPopup.d.ts +34 -0
- package/dist/dropdownRaw/dropdownPopup.js +35 -0
- package/dist/dropdownRaw/dropdownRaw.d.ts +6 -0
- package/dist/dropdownRaw/dropdownRaw.js +541 -0
- package/{esm/dropdown → dist/dropdownRaw}/dropdownSearchableTrigger.d.ts +3 -1
- package/dist/{dropdown → dropdownRaw}/dropdownSearchableTrigger.js +5 -2
- package/dist/dropdownRaw/dropdownTestData.d.ts +65 -0
- package/dist/dropdownRaw/dropdownTestData.js +1093 -0
- package/dist/dropdownRaw/dropdownTrigger.d.ts +27 -0
- package/dist/dropdownRaw/dropdownTrigger.js +31 -0
- package/{esm/dropdown → dist/dropdownRaw}/stateReducer/stateAction.d.ts +4 -4
- package/dist/dropdownRaw/stateReducer/stateAction.js +2 -0
- package/dist/{dropdown → dropdownRaw}/stateReducer/stateReducer.d.ts +5 -5
- package/dist/{dropdown → dropdownRaw}/stateReducer/stateReducer.js +2 -2
- package/dist/{dropdown → dropdownRaw}/stateReducer/stateReducerHelper.d.ts +2 -2
- package/dist/dropdownRaw/types.d.ts +133 -0
- package/dist/dropdownRaw/types.js +2 -0
- package/dist/dropdownRaw/utils/getSelectedValues.d.ts +2 -0
- package/dist/dropdownRaw/utils/getSelectedValues.js +5 -0
- package/dist/filterButton/filterButton.d.ts +3 -1
- package/dist/filterButton/filterButton.js +2 -2
- package/dist/filters/components/filtersDropdown.d.ts +4 -2
- package/dist/filters/components/filtersGroups.d.ts +1 -1
- package/dist/filters/components/filtersItem.d.ts +1 -1
- package/dist/filters/components/filtersSidePanelDropdown.js +2 -2
- package/dist/filters/components/filtersSidePanelRange.js +1 -1
- package/dist/filters/filtersHelper.js +3 -3
- package/dist/filtersBar/components/filtersBarDropdown/filtersBarDropdown.js +2 -2
- package/dist/filtersBar/components/filtersBarGroupsFilter/filtersBarGroupsFilter.d.ts +1 -1
- package/dist/filtersBar/components/filtersBarRange/filtersBarRange.js +1 -1
- package/dist/filtersBar/filtersBarSidePanel/components/filtersBarSidePanelDropdownWithCheckbox/filtersBarSidePanelDropdownWithCheckbox.js +1 -1
- package/dist/filtersBar/filtersBarSidePanel/components/filtersBarSidePanelRange/filtersBarSidePanelRange.js +2 -2
- package/dist/formField/components/formFieldBanner.d.ts +6 -0
- package/dist/formField/components/formFieldBanner.js +9 -0
- package/dist/formField/components/formFieldSkeleton.d.ts +6 -0
- package/dist/formField/components/formFieldSkeleton.js +5 -0
- package/dist/formField/components/formFieldWithLabel.d.ts +10 -0
- package/dist/formField/components/formFieldWithLabel.js +12 -0
- package/dist/formField/components/formFieldWithoutLabel.d.ts +8 -0
- package/dist/formField/components/formFieldWithoutLabel.js +12 -0
- package/dist/formField/formField.d.ts +34 -6
- package/dist/formField/formField.js +60 -7
- package/dist/formField/hooks/useAssistive.d.ts +12 -0
- package/dist/formField/hooks/useAssistive.js +18 -0
- package/dist/formField/hooks/useBanner.d.ts +8 -0
- package/dist/formField/hooks/useBanner.js +27 -0
- package/dist/formField/hooks/useDisabled.d.ts +15 -0
- package/dist/formField/hooks/useDisabled.js +22 -0
- package/dist/formField/hooks/useError.d.ts +18 -0
- package/dist/formField/hooks/useError.js +49 -0
- package/dist/formField/hooks/useLoading.d.ts +2 -0
- package/dist/formField/hooks/useLoading.js +19 -0
- package/dist/formField/hooks/useReadonly.d.ts +1 -0
- package/dist/formField/hooks/useReadonly.js +10 -0
- package/dist/formField/hooks/useSkeleton.d.ts +3 -0
- package/dist/formField/hooks/useSkeleton.js +13 -0
- package/dist/formField/hooks/useTrailing.d.ts +12 -0
- package/dist/formField/hooks/useTrailing.js +18 -0
- package/dist/formField/hooks/useWidth.d.ts +8 -0
- package/dist/formField/hooks/useWidth.js +11 -0
- package/dist/formField/utils/getFormFieldBanner.d.ts +2 -0
- package/dist/formField/utils/getFormFieldBanner.js +20 -0
- package/dist/formField/utils/rangeRawLabelCheck.d.ts +1 -0
- package/dist/formField/utils/rangeRawLabelCheck.js +14 -0
- package/dist/formGroup/components/customRow/customRow.d.ts +7 -0
- package/dist/formGroup/components/customRow/customRow.js +7 -0
- package/dist/formGroup/components/formGroupList.d.ts +5 -0
- package/dist/formGroup/components/formGroupList.js +6 -0
- package/dist/formGroup/components/formGroupToggle.d.ts +15 -0
- package/dist/formGroup/components/formGroupToggle.js +6 -0
- package/dist/formGroup/components/list.d.ts +6 -0
- package/dist/formGroup/components/list.js +19 -0
- package/dist/formGroup/components/listToggle/listToggle.d.ts +1 -0
- package/dist/formGroup/components/listToggle/listToggle.js +29 -0
- package/dist/formGroup/components/oneRow.d.ts +6 -0
- package/dist/formGroup/components/oneRow.js +15 -0
- package/dist/formGroup/components/reviewListToggle/reviewListToggle.d.ts +8 -0
- package/dist/formGroup/components/reviewListToggle/reviewListToggle.js +16 -0
- package/dist/formGroup/components/reviewTextControl.d.ts +9 -0
- package/dist/formGroup/components/reviewTextControl.js +7 -0
- package/dist/formGroup/components/row.d.ts +5 -0
- package/dist/formGroup/components/row.js +38 -0
- package/dist/formGroup/components/twoRows.d.ts +6 -0
- package/dist/formGroup/components/twoRows.js +15 -0
- package/dist/formGroup/formGroup.d.ts +13 -0
- package/dist/formGroup/formGroup.js +72 -0
- package/dist/formGroup/hooks/listHooks/useControlClasses.d.ts +2 -0
- package/dist/formGroup/hooks/listHooks/useControlClasses.js +54 -0
- package/dist/formGroup/hooks/listHooks/useControls.d.ts +2 -0
- package/dist/formGroup/hooks/listHooks/useControls.js +17 -0
- package/dist/formGroup/hooks/listHooks/useElementsState.d.ts +3 -0
- package/dist/formGroup/hooks/listHooks/useElementsState.js +38 -0
- package/dist/formGroup/hooks/listHooks/useLabelClasses.d.ts +2 -0
- package/dist/formGroup/hooks/listHooks/useLabelClasses.js +38 -0
- package/dist/formGroup/hooks/listHooks/useStateToElements.d.ts +3 -0
- package/dist/formGroup/hooks/listHooks/useStateToElements.js +27 -0
- package/dist/formGroup/hooks/rowHooks/useControlClasses.d.ts +2 -0
- package/dist/formGroup/hooks/rowHooks/useControlClasses.js +31 -0
- package/dist/formGroup/hooks/rowHooks/useControls.d.ts +2 -0
- package/dist/formGroup/hooks/rowHooks/useControls.js +15 -0
- package/dist/formGroup/hooks/rowHooks/useInitializeState.d.ts +3 -0
- package/dist/formGroup/hooks/rowHooks/useInitializeState.js +15 -0
- package/dist/formGroup/hooks/rowHooks/useLabelClasses.d.ts +2 -0
- package/dist/formGroup/hooks/rowHooks/useLabelClasses.js +28 -0
- package/dist/formGroup/hooks/useCustomRow.d.ts +4 -0
- package/dist/formGroup/hooks/useCustomRow.js +92 -0
- package/dist/formGroup/hooks/useElements.d.ts +4 -0
- package/dist/formGroup/hooks/useElements.js +24 -0
- package/dist/formGroup/hooks/useLabelAlign.d.ts +2 -0
- package/dist/formGroup/hooks/useLabelAlign.js +14 -0
- package/dist/formGroup/hooks/useMode.d.ts +2 -0
- package/dist/formGroup/hooks/useMode.js +12 -0
- package/dist/formGroup/hooks/useRowElements.d.ts +14 -0
- package/dist/formGroup/hooks/useRowElements.js +24 -0
- package/dist/formGroup/hooks/useSectionType.d.ts +2 -0
- package/dist/formGroup/hooks/useSectionType.js +12 -0
- package/dist/formGroup/hooks/useToggle.d.ts +1 -0
- package/dist/formGroup/hooks/useToggle.js +25 -0
- package/dist/formGroup/hooks/useToggleList.d.ts +9 -0
- package/dist/formGroup/hooks/useToggleList.js +24 -0
- package/dist/formGroup/types.d.ts +53 -0
- package/dist/formGroup/types.js +2 -0
- package/dist/formGroup/utils/applyControlClasses.d.ts +2 -0
- package/dist/formGroup/utils/applyControlClasses.js +51 -0
- package/dist/formGroup/utils/applyCustomControlClasses.d.ts +12 -0
- package/dist/formGroup/utils/applyCustomControlClasses.js +31 -0
- package/dist/formGroup/utils/applyCustomLabelClasses.d.ts +12 -0
- package/dist/formGroup/utils/applyCustomLabelClasses.js +20 -0
- package/dist/formGroup/utils/formGroupProvider.d.ts +9 -0
- package/dist/formGroup/utils/formGroupProvider.js +8 -0
- package/dist/formGroup/utils/getControlClasses/getControlClasses.d.ts +6 -0
- package/dist/formGroup/utils/getControlClasses/getControlClasses.js +79 -0
- package/dist/formGroup/utils/getControlClasses/getModalSectionClasses.d.ts +2 -0
- package/dist/formGroup/utils/getControlClasses/getModalSectionClasses.js +8 -0
- package/dist/formGroup/utils/getControlClasses/getOneLabelOneControlClasses.d.ts +6 -0
- package/dist/formGroup/utils/getControlClasses/getOneLabelOneControlClasses.js +25 -0
- package/dist/formGroup/utils/getControlClasses/getOneLabelTwoControlsClasses.d.ts +7 -0
- package/dist/formGroup/utils/getControlClasses/getOneLabelTwoControlsClasses.js +53 -0
- package/dist/formGroup/utils/getControlClasses/getTwoLabelsOneControlClasses.d.ts +6 -0
- package/dist/formGroup/utils/getControlClasses/getTwoLabelsOneControlClasses.js +25 -0
- package/dist/formGroup/utils/getControlClasses/getTwoLabelsTwoControlsClasses.d.ts +6 -0
- package/dist/formGroup/utils/getControlClasses/getTwoLabelsTwoControlsClasses.js +28 -0
- package/dist/formGroup/utils/getControlClasses/getZeroLabelOneControlClasses.d.ts +3 -0
- package/dist/formGroup/utils/getControlClasses/getZeroLabelOneControlClasses.js +16 -0
- package/dist/formGroup/utils/getControlClasses/types.d.ts +4 -0
- package/dist/formGroup/utils/getControlClasses/types.js +2 -0
- package/dist/formGroup/utils/getControlListClasses/getControlListClasses.d.ts +4 -0
- package/dist/formGroup/utils/getControlListClasses/getControlListClasses.js +46 -0
- package/dist/formGroup/utils/getControlListClasses/getOneLabelOneControlClasses.d.ts +7 -0
- package/dist/formGroup/utils/getControlListClasses/getOneLabelOneControlClasses.js +64 -0
- package/dist/formGroup/utils/getControlListClasses/getOneLabelTwoControlsClasses.d.ts +7 -0
- package/dist/formGroup/utils/getControlListClasses/getOneLabelTwoControlsClasses.js +44 -0
- package/dist/formGroup/utils/getControlListClasses/getTwoLabelsTwoControlsClasses.d.ts +6 -0
- package/dist/formGroup/utils/getControlListClasses/getTwoLabelsTwoControlsClasses.js +39 -0
- package/dist/formGroup/utils/getControlListClasses/getZeroLabelOneControlClasses.d.ts +5 -0
- package/dist/formGroup/utils/getControlListClasses/getZeroLabelOneControlClasses.js +18 -0
- package/dist/formGroup/utils/getControlListClasses/getZeroLabelsTwoControls.d.ts +2 -0
- package/dist/formGroup/utils/getControlListClasses/getZeroLabelsTwoControls.js +17 -0
- package/dist/formGroup/utils/getControlNode.d.ts +1 -0
- package/dist/formGroup/utils/getControlNode.js +6 -0
- package/dist/formGroup/utils/getControls.d.ts +5 -0
- package/dist/formGroup/utils/getControls.js +26 -0
- package/dist/formGroup/utils/getElementsControl.d.ts +5 -0
- package/dist/formGroup/utils/getElementsControl.js +37 -0
- package/dist/formGroup/utils/getLabelClasses/getLabelClasses.d.ts +6 -0
- package/dist/formGroup/utils/getLabelClasses/getLabelClasses.js +65 -0
- package/dist/formGroup/utils/getLabelClasses/getModalSectionClasses.d.ts +2 -0
- package/dist/formGroup/utils/getLabelClasses/getModalSectionClasses.js +8 -0
- package/dist/formGroup/utils/getLabelClasses/getOneLabelOneControlClasses.d.ts +4 -0
- package/dist/formGroup/utils/getLabelClasses/getOneLabelOneControlClasses.js +24 -0
- package/dist/formGroup/utils/getLabelClasses/getOneLabelTwoControlsClasses.d.ts +4 -0
- package/dist/formGroup/utils/getLabelClasses/getOneLabelTwoControlsClasses.js +50 -0
- package/dist/formGroup/utils/getLabelClasses/getReviewOrInlineEditClasses.d.ts +2 -0
- package/dist/formGroup/utils/getLabelClasses/getReviewOrInlineEditClasses.js +31 -0
- package/dist/formGroup/utils/getLabelClasses/getTwoLabelsOneControlClasses.d.ts +4 -0
- package/dist/formGroup/utils/getLabelClasses/getTwoLabelsOneControlClasses.js +28 -0
- package/dist/formGroup/utils/getLabelClasses/getTwoLabelsTwoControlsClasses.d.ts +4 -0
- package/dist/formGroup/utils/getLabelClasses/getTwoLabelsTwoControlsClasses.js +28 -0
- package/dist/formGroup/utils/getLabelClasses/getZeroLabelClasses.d.ts +2 -0
- package/dist/formGroup/utils/getLabelClasses/getZeroLabelClasses.js +8 -0
- package/dist/formGroup/utils/getLabelClasses/types.d.ts +4 -0
- package/dist/formGroup/utils/getLabelClasses/types.js +2 -0
- package/dist/formGroup/utils/getLabelListClasses/getLabelListClasses.d.ts +7 -0
- package/dist/formGroup/utils/getLabelListClasses/getLabelListClasses.js +34 -0
- package/dist/formGroup/utils/getLabelListClasses/getOneLabelOneControlClasses.d.ts +6 -0
- package/dist/formGroup/utils/getLabelListClasses/getOneLabelOneControlClasses.js +48 -0
- package/dist/formGroup/utils/getLabelListClasses/getOneLabelTwoControlsClasses.d.ts +7 -0
- package/dist/formGroup/utils/getLabelListClasses/getOneLabelTwoControlsClasses.js +29 -0
- package/dist/formGroup/utils/getLabelListClasses/getOneLabelZeroControlsClasses.d.ts +4 -0
- package/dist/formGroup/utils/getLabelListClasses/getOneLabelZeroControlsClasses.js +17 -0
- package/dist/formGroup/utils/getLabelListClasses/getTwoLabelsTwoControlsClasses.d.ts +5 -0
- package/dist/formGroup/utils/getLabelListClasses/getTwoLabelsTwoControlsClasses.js +35 -0
- package/dist/formGroup/utils/getLabelNode.d.ts +1 -0
- package/dist/formGroup/utils/getLabelNode.js +6 -0
- package/dist/formGroup/utils/getListClasses.d.ts +3 -0
- package/dist/formGroup/utils/getListClasses.js +31 -0
- package/dist/formGroup/utils/getToggleClasses.d.ts +3 -0
- package/dist/formGroup/utils/getToggleClasses.js +17 -0
- package/dist/formGroup/utils/getTotalState.d.ts +2 -0
- package/dist/formGroup/utils/getTotalState.js +23 -0
- package/dist/formGroup/utils/hasCustomWidthControl.d.ts +2 -0
- package/dist/formGroup/utils/hasCustomWidthControl.js +11 -0
- package/dist/formGroup/utils/hasWidthProp.d.ts +2 -0
- package/dist/formGroup/utils/hasWidthProp.js +14 -0
- package/dist/formGroup/utils/initializeState.d.ts +12 -0
- package/dist/formGroup/utils/initializeState.js +43 -0
- package/dist/formGroup/utils/isFormLabel.d.ts +3 -0
- package/dist/formGroup/utils/isFormLabel.js +6 -0
- package/dist/formGroup/utils/isTopAlign.d.ts +3 -0
- package/dist/formGroup/utils/isTopAlign.js +9 -0
- package/dist/formGroup/utils/isTwoRowsStructure.d.ts +3 -0
- package/dist/formGroup/utils/isTwoRowsStructure.js +29 -0
- package/dist/formGroupItem/formGroupItem.d.ts +8 -0
- package/dist/formGroupItem/formGroupItem.js +13 -0
- package/dist/formLayout/components/column/column.d.ts +7 -0
- package/dist/formLayout/components/column/column.js +7 -0
- package/dist/formLayout/components/columnTitle/formLayoutColumnTitle.d.ts +9 -0
- package/dist/formLayout/components/columnTitle/formLayoutColumnTitle.js +7 -0
- package/dist/formLayout/components/customColumns.d.ts +9 -0
- package/dist/formLayout/components/customColumns.js +37 -0
- package/dist/formLayout/components/formLayoutSecondary.d.ts +7 -0
- package/dist/formLayout/components/formLayoutSecondary.js +7 -0
- package/dist/formLayout/components/formLayoutTitle.d.ts +7 -0
- package/dist/formLayout/components/formLayoutTitle.js +7 -0
- package/dist/formLayout/components/getLayoutColumns.d.ts +1 -0
- package/dist/formLayout/components/getLayoutColumns.js +39 -0
- package/dist/formLayout/components/layoutColumn/layoutColum.d.ts +6 -0
- package/dist/formLayout/components/layoutColumn/layoutColum.js +6 -0
- package/dist/formLayout/components/oneColumnGrid.d.ts +2 -0
- package/dist/formLayout/components/oneColumnGrid.js +28 -0
- package/dist/formLayout/components/twoColumnsGrid.d.ts +2 -0
- package/dist/formLayout/components/twoColumnsGrid.js +28 -0
- package/dist/formLayout/components/useCustomColumns.d.ts +11 -0
- package/dist/formLayout/components/useCustomColumns.js +60 -0
- package/dist/formLayout/formLayout.d.ts +7 -0
- package/dist/formLayout/formLayout.js +43 -0
- package/dist/formLayout/hooks/getStepperLayout.d.ts +2 -0
- package/dist/formLayout/hooks/getStepperLayout.js +23 -0
- package/dist/formLayout/hooks/useColumns.d.ts +1 -0
- package/dist/formLayout/hooks/useColumns.js +10 -0
- package/dist/formLayout/hooks/useComponents.d.ts +8 -0
- package/dist/formLayout/hooks/useComponents.js +43 -0
- package/dist/formLayout/hooks/useError.d.ts +6 -0
- package/dist/formLayout/hooks/useError.js +24 -0
- package/dist/formLayout/hooks/useFormButtons.d.ts +11 -0
- package/dist/formLayout/hooks/useFormButtons.js +39 -0
- package/dist/formLayout/hooks/useLayoutColumns.d.ts +1 -0
- package/dist/formLayout/hooks/useLayoutColumns.js +10 -0
- package/dist/formLayout/hooks/useLoading.d.ts +5 -0
- package/dist/formLayout/hooks/useLoading.js +16 -0
- package/dist/formLayout/types.d.ts +32 -0
- package/dist/formLayout/types.js +2 -0
- package/dist/formLayout/utils/applyGridPropsOneColumn.d.ts +1 -0
- package/dist/formLayout/utils/applyGridPropsOneColumn.js +18 -0
- package/dist/formLayout/utils/applyGridPropsStatic.d.ts +1 -0
- package/dist/formLayout/utils/applyGridPropsStatic.js +46 -0
- package/dist/formLayout/utils/applyGridPropsTwoColumns/applyFirstColumn.d.ts +2 -0
- package/dist/formLayout/utils/applyGridPropsTwoColumns/applyFirstColumn.js +18 -0
- package/dist/formLayout/utils/applyGridPropsTwoColumns/applyGridPropsTwoColumns.d.ts +2 -0
- package/dist/formLayout/utils/applyGridPropsTwoColumns/applyGridPropsTwoColumns.js +24 -0
- package/dist/formLayout/utils/applyGridPropsTwoColumns/applySecondColumn.d.ts +2 -0
- package/dist/formLayout/utils/applyGridPropsTwoColumns/applySecondColumn.js +20 -0
- package/dist/formLayout/utils/applyLayoutPosition/applyLayoutPosition.d.ts +1 -0
- package/dist/formLayout/utils/applyLayoutPosition/applyLayoutPosition.js +118 -0
- package/dist/formLayout/utils/attachHeadings.d.ts +1 -0
- package/dist/formLayout/utils/attachHeadings.js +31 -0
- package/dist/formLayout/utils/attachSeparators.d.ts +4 -0
- package/dist/formLayout/utils/attachSeparators.js +32 -0
- package/dist/formLayout/utils/attachStepper.d.ts +3 -0
- package/dist/formLayout/utils/attachStepper.js +23 -0
- package/dist/formLayout/utils/formLayoutProvider.d.ts +7 -0
- package/dist/formLayout/utils/formLayoutProvider.js +14 -0
- package/dist/formLayout/utils/getAllowedComponents.d.ts +6 -0
- package/dist/formLayout/utils/getAllowedComponents.js +22 -0
- package/dist/formLayout/utils/getChildrenWithCustomColumns.d.ts +2 -0
- package/dist/formLayout/utils/getChildrenWithCustomColumns.js +74 -0
- package/dist/formLayout/utils/getComponentsWithClasses.d.ts +3 -0
- package/dist/formLayout/utils/getComponentsWithClasses.js +27 -0
- package/dist/formLayout/utils/getFilteredComponents.d.ts +4 -0
- package/dist/formLayout/utils/getFilteredComponents.js +25 -0
- package/dist/formLayout/utils/getFormSection.d.ts +2 -0
- package/dist/formLayout/utils/getFormSection.js +25 -0
- package/dist/formLayout/utils/hasStepper.d.ts +2 -0
- package/dist/formLayout/utils/hasStepper.js +5 -0
- package/dist/formLayout/utils/isCustomFormSection.d.ts +3 -0
- package/dist/formLayout/utils/isCustomFormSection.js +6 -0
- package/dist/formLayout/utils/isStaticElement.d.ts +1 -0
- package/dist/formLayout/utils/isStaticElement.js +19 -0
- package/dist/formSection/components/actions.d.ts +5 -0
- package/dist/formSection/components/actions.js +5 -0
- package/dist/formSection/components/additional.d.ts +5 -0
- package/dist/formSection/components/additional.js +5 -0
- package/dist/formSection/components/additionalSection.d.ts +9 -0
- package/dist/formSection/components/additionalSection.js +32 -0
- package/dist/formSection/components/formSectionButton.d.ts +5 -0
- package/dist/formSection/components/formSectionButton.js +21 -0
- package/dist/formSection/components/formSectionCard.d.ts +4 -0
- package/dist/formSection/components/formSectionCard.js +53 -0
- package/dist/formSection/components/formSectionDefault.d.ts +3 -0
- package/dist/formSection/components/formSectionDefault.js +20 -0
- package/dist/formSection/components/formSectionDefaultTitle.d.ts +7 -0
- package/dist/formSection/components/formSectionDefaultTitle.js +7 -0
- package/dist/formSection/components/formSectionInner.d.ts +7 -0
- package/dist/formSection/components/formSectionInner.js +59 -0
- package/dist/formSection/components/formSectionModal.d.ts +3 -0
- package/dist/formSection/components/formSectionModal.js +9 -0
- package/dist/formSection/formSection.d.ts +12 -0
- package/dist/formSection/formSection.js +48 -0
- package/dist/formSection/hooks/useError.d.ts +7 -0
- package/dist/formSection/hooks/useError.js +32 -0
- package/dist/formSection/hooks/useLoading.d.ts +5 -0
- package/dist/formSection/hooks/useLoading.js +22 -0
- package/dist/formSection/types.d.ts +35 -0
- package/dist/formSection/types.js +4 -0
- package/dist/formSection/utils/formSectionProvider.d.ts +11 -0
- package/dist/formSection/utils/formSectionProvider.js +13 -0
- package/dist/formSection/utils/getClassName.d.ts +4 -0
- package/dist/formSection/utils/getClassName.js +12 -0
- package/dist/formSection/utils/isFormSection.d.ts +4 -0
- package/dist/formSection/utils/isFormSection.js +5 -0
- package/dist/formSection/utils/isModalSection.d.ts +2 -0
- package/dist/formSection/utils/isModalSection.js +8 -0
- package/dist/formStepper/formStepper.js +1 -1
- package/dist/formStepper/hooks/useFormStepper.d.ts +6 -0
- package/dist/formStepper/hooks/useFormStepper.js +24 -0
- package/dist/formStepperButtons/formStepperButtons.js +3 -1
- package/dist/gridLayout/gridLayout.js +2 -1
- package/dist/gridLayout/hooks/useGridClasses.d.ts +10 -1
- package/dist/gridLayout/hooks/useGridClasses.js +28 -9
- package/dist/gridLayout/utils/adaptGridState.d.ts +2 -2
- package/dist/gridLayout/utils/adaptGridState.js +7 -8
- package/dist/gridLayout/utils/adjustGridState.d.ts +2 -2
- package/dist/gridLayout/utils/adjustGridState.js +13 -14
- package/dist/gridLayout/utils/constants.d.ts +1 -0
- package/dist/gridLayout/utils/constants.js +2 -1
- package/dist/gridLayout/utils/convertClassesToState.d.ts +2 -0
- package/dist/gridLayout/utils/convertClassesToState.js +48 -0
- package/dist/gridLayout/utils/convertStateToClasses.d.ts +2 -1
- package/dist/gridLayout/utils/convertStateToClasses.js +3 -3
- package/dist/gridLayout/utils/fillGridState.d.ts +2 -2
- package/dist/gridLayout/utils/fillGridState.js +6 -7
- package/dist/gridLayout/utils/filterGridProps.d.ts +2 -0
- package/dist/gridLayout/utils/filterGridProps.js +19 -0
- package/dist/gridLayout/utils/getAllowedComponent.js +15 -1
- package/dist/gridLayout/utils/getGridPositionClasses.d.ts +1 -0
- package/dist/gridLayout/utils/getGridPositionClasses.js +12 -0
- package/dist/gridLayout/utils/getGridWidthClasses.d.ts +1 -0
- package/dist/gridLayout/utils/getGridWidthClasses.js +19 -0
- package/dist/gridLayout/utils/gridLayoutProvider.d.ts +9 -0
- package/dist/gridLayout/utils/gridLayoutProvider.js +16 -0
- package/dist/gridLayout/utils/hasGridClasses.d.ts +2 -0
- package/dist/gridLayout/utils/hasGridClasses.js +12 -0
- package/dist/gridLayout/utils/isGridItem.d.ts +1 -1
- package/dist/gridLayout/utils/isGridItem.js +3 -0
- package/dist/gridLayout/utils/removeSameTypeClasses.d.ts +1 -0
- package/dist/gridLayout/utils/removeSameTypeClasses.js +42 -0
- package/dist/gridLayout/utils/updateGridStateFromClassNames.d.ts +2 -2
- package/dist/gridLayout/utils/updateGridStateFromClassNames.js +13 -13
- package/dist/gridLayout/utils/updateGridStateFromProps.d.ts +2 -2
- package/dist/gridLayout/utils/updateGridStateFromProps.js +7 -8
- package/dist/gridLayout/utils/updateGridStateWithDefaultValues.js +4 -0
- package/dist/groupButton/groupButton.d.ts +8 -14
- package/dist/groupButton/groupButton.js +17 -36
- package/dist/groupButtonRaw/components/groupButtonOption.d.ts +11 -0
- package/dist/groupButtonRaw/components/groupButtonOption.js +12 -0
- package/dist/groupButtonRaw/groupButtonRaw.d.ts +7 -0
- package/dist/groupButtonRaw/groupButtonRaw.js +27 -0
- package/dist/groupButtonRaw/types.d.ts +26 -0
- package/dist/groupButtonRaw/types.js +2 -0
- package/dist/groupsFilter/groupsFilter.d.ts +7 -21
- package/dist/groupsFilter/groupsFilter.js +20 -327
- package/dist/groupsFilter/groupsFilterInterfaces.d.ts +16 -78
- package/dist/groupsFilter/groupsFilterInterfaces.js +3 -19
- package/{esm/groupsFilter → dist/groupsFilterRaw}/groupsFilterCommon.d.ts +1 -1
- package/{esm/groupsFilter → dist/groupsFilterRaw}/groupsFilterCounter.d.ts +1 -1
- package/dist/groupsFilterRaw/groupsFilterInterfaces.d.ts +91 -0
- package/dist/groupsFilterRaw/groupsFilterInterfaces.js +22 -0
- package/dist/groupsFilterRaw/groupsFilterRaw.d.ts +37 -0
- package/dist/groupsFilterRaw/groupsFilterRaw.js +356 -0
- package/dist/groupsFilterRaw/groupsFilterTestData.d.ts +37 -0
- package/dist/groupsFilterRaw/groupsFilterTestData.js +76 -0
- package/dist/{groupsFilter → groupsFilterRaw}/groupsFilterTrigger.d.ts +3 -2
- package/dist/{groupsFilter → groupsFilterRaw}/groupsFilterTrigger.js +2 -2
- package/dist/groupsFilterRaw/stateReducer/stateAction.js +2 -0
- package/dist/groupsFilterRaw/testData.d.ts +26 -0
- package/dist/groupsFilterRaw/testData.js +32995 -0
- package/dist/groupsFilterRaw/types.d.ts +37 -0
- package/dist/groupsFilterRaw/types.js +5 -0
- package/dist/groupsFilterRaw/uiStateReducer/uiStateAction.js +2 -0
- package/dist/index.css +6956 -6629
- package/dist/index.d.ts +77 -20
- package/dist/index.js +136 -22
- package/dist/inputAdornments/inputAdornments.d.ts +2 -1
- package/dist/inputAdornments/inputAdornments.js +2 -2
- package/dist/radioGroup/radioGroup.d.ts +8 -19
- package/dist/radioGroup/radioGroup.js +16 -73
- package/dist/radioGroupRaw/radioGroupRaw.d.ts +7 -0
- package/dist/radioGroupRaw/radioGroupRaw.js +91 -0
- package/dist/radioGroupRaw/types.d.ts +25 -0
- package/dist/radioGroupRaw/types.js +2 -0
- package/dist/range/range.d.ts +11 -27
- package/dist/range/range.js +19 -146
- package/{esm/range → dist/rangeRaw/components}/rangeField.d.ts +1 -1
- package/dist/{range → rangeRaw/components}/rangeField.js +3 -3
- package/dist/rangeRaw/rangeRaw.d.ts +10 -0
- package/dist/rangeRaw/rangeRaw.js +173 -0
- package/dist/rangeRaw/types.d.ts +35 -0
- package/dist/rangeRaw/types.js +2 -0
- package/dist/{range → rangeRaw/utils}/rangeHelper.d.ts +1 -1
- package/dist/searchInput/searchInput.d.ts +5 -4
- package/dist/searchInput/searchInput.js +5 -15
- package/dist/searchInputRaw/searchInputRaw.d.ts +3 -20
- package/dist/searchInputRaw/searchInputRaw.js +9 -2
- package/dist/searchInputRaw/types.d.ts +33 -0
- package/dist/searchInputRaw/types.js +2 -0
- package/dist/select/select.d.ts +9 -4
- package/dist/select/select.js +18 -2
- package/dist/selectField/selectField.d.ts +4 -4
- package/dist/selectRaw/selectRaw.d.ts +3 -16
- package/dist/selectRaw/selectRaw.js +18 -11
- package/dist/selectRaw/types.d.ts +30 -0
- package/dist/selectRaw/types.js +2 -0
- package/dist/stepper/stepper.d.ts +5 -4
- package/dist/stepperRaw/stepperRaw.d.ts +3 -17
- package/dist/stepperRaw/stepperRaw.js +17 -9
- package/dist/stepperRaw/types.d.ts +26 -0
- package/dist/stepperRaw/types.js +2 -0
- package/dist/textInput/textInput.d.ts +5 -4
- package/dist/textInput/textInput.js +5 -15
- package/dist/textInputRaw/textInputRaw.d.ts +3 -23
- package/dist/textInputRaw/textInputRaw.js +9 -1
- package/dist/textInputRaw/types.d.ts +36 -0
- package/dist/textInputRaw/types.js +2 -0
- package/dist/textarea/textarea.d.ts +5 -4
- package/dist/textarea/textarea.js +5 -3
- package/dist/textareaRaw/textareaRaw.d.ts +3 -22
- package/dist/textareaRaw/textareaRaw.js +10 -3
- package/dist/textareaRaw/types.d.ts +31 -0
- package/dist/textareaRaw/types.js +2 -0
- package/dist/timePicker/timePicker.d.ts +9 -13
- package/dist/timePicker/timePicker.js +20 -60
- package/dist/timePickerRaw/timePickerRaw.d.ts +10 -0
- package/dist/timePickerRaw/timePickerRaw.js +79 -0
- package/dist/timePickerRaw/types.d.ts +26 -0
- package/dist/timePickerRaw/types.js +2 -0
- package/dist/toggleButton/toggleButton.d.ts +8 -10
- package/dist/toggleButton/toggleButton.js +17 -11
- package/dist/toggleButtonRaw/toggleButtonRaw.d.ts +3 -0
- package/dist/toggleButtonRaw/toggleButtonRaw.js +54 -0
- package/dist/toggleButtonRaw/types.d.ts +26 -0
- package/dist/toggleButtonRaw/types.js +2 -0
- package/dist/tooltipInfo/tooltipInfo.d.ts +7 -0
- package/dist/tooltipInfo/tooltipInfo.js +15 -0
- package/dist/utils/formatDate.d.ts +1 -1
- package/dist/utils/localization/translations/cs-json.d.ts +3 -0
- package/dist/utils/localization/translations/cs-json.js +4 -1
- package/dist/utils/localization/translations/de-json.d.ts +3 -0
- package/dist/utils/localization/translations/de-json.js +4 -1
- package/dist/utils/localization/translations/en-json.d.ts +12 -0
- package/dist/utils/localization/translations/en-json.js +13 -1
- package/dist/utils/localization/translations/es-json.d.ts +3 -0
- package/dist/utils/localization/translations/es-json.js +4 -1
- package/dist/utils/localization/translations/fr-FR-json.d.ts +3 -0
- package/dist/utils/localization/translations/fr-FR-json.js +4 -1
- package/dist/utils/localization/translations/fr-json.d.ts +3 -0
- package/dist/utils/localization/translations/fr-json.js +4 -1
- package/dist/utils/localization/translations/id-json.d.ts +3 -0
- package/dist/utils/localization/translations/id-json.js +4 -1
- package/dist/utils/localization/translations/it-json.d.ts +3 -0
- package/dist/utils/localization/translations/it-json.js +4 -1
- package/dist/utils/localization/translations/ja-json.d.ts +3 -0
- package/dist/utils/localization/translations/ja-json.js +4 -1
- package/dist/utils/localization/translations/ko-KR-json.d.ts +3 -0
- package/dist/utils/localization/translations/ko-KR-json.js +4 -1
- package/dist/utils/localization/translations/ms-json.d.ts +3 -0
- package/dist/utils/localization/translations/ms-json.js +4 -1
- package/dist/utils/localization/translations/nl-json.d.ts +3 -0
- package/dist/utils/localization/translations/nl-json.js +4 -1
- package/dist/utils/localization/translations/pl-json.d.ts +3 -0
- package/dist/utils/localization/translations/pl-json.js +4 -1
- package/dist/utils/localization/translations/pt-BR-json.d.ts +3 -0
- package/dist/utils/localization/translations/pt-BR-json.js +4 -1
- package/dist/utils/localization/translations/sv-json.d.ts +3 -0
- package/dist/utils/localization/translations/sv-json.js +4 -1
- package/dist/utils/localization/translations/th-json.d.ts +3 -0
- package/dist/utils/localization/translations/th-json.js +4 -1
- package/dist/utils/localization/translations/tr-json.d.ts +3 -0
- package/dist/utils/localization/translations/tr-json.js +4 -1
- package/dist/utils/localization/translations/zh-Hans-json.d.ts +3 -0
- package/dist/utils/localization/translations/zh-Hans-json.js +4 -1
- package/dist/utils/localization/translations/zh-TW-json.d.ts +3 -0
- package/dist/utils/localization/translations/zh-TW-json.js +4 -1
- package/esm/advancedGroupsFilter/advancedGroupsFilter.d.ts +1 -1
- package/esm/advancedGroupsFilter/advancedGroupsFilterForm.js +2 -2
- package/esm/advancedGroupsFilter/advancedGroupsFilterFormHelper.d.ts +1 -1
- package/esm/advancedGroupsFilter/advancedGroupsFilterFormHelper.js +2 -2
- package/esm/advancedGroupsFilter/advancedGroupsFilterFormSection.d.ts +1 -1
- package/esm/advancedGroupsFilter/advancedGroupsFilterFormSection.js +2 -2
- package/esm/advancedGroupsFilter/advancedGroupsFilterHelper.d.ts +2 -2
- package/esm/advancedGroupsFilter/advancedGroupsFilterHelper.js +1 -1
- package/esm/banner/banner.d.ts +2 -1
- package/esm/banner/banner.js +5 -3
- package/esm/banner/bannerMultipLine.d.ts +2 -1
- package/esm/banner/bannerMultipLine.js +2 -2
- package/esm/banner/bannerSingleLine.d.ts +2 -1
- package/esm/banner/bannerSingleLine.js +2 -2
- package/esm/button/button.d.ts +5 -3
- package/esm/button/button.js +4 -3
- package/esm/card/card.d.ts +2 -2
- package/esm/card/card.js +3 -1
- package/esm/card/components/cardButton/cardButton.d.ts +4 -3
- package/esm/card/components/cardButton/cardButton.js +2 -2
- package/esm/checkboxListWithAction/checkboxListWithAction.d.ts +1 -1
- package/esm/comboboxSelected/comboboxSelected.js +1 -1
- package/esm/commonHelpers/getAriaAttributes.d.ts +1 -0
- package/esm/commonHelpers/getAriaAttributes.js +12 -0
- package/esm/commonHelpers/hooks/useFormField.d.ts +8 -0
- package/esm/commonHelpers/hooks/useFormField.js +15 -0
- package/esm/commonHelpers/hooks/useFormFieldValues/getRuleValue.d.ts +2 -0
- package/esm/commonHelpers/hooks/useFormFieldValues/getRuleValue.js +9 -0
- package/esm/commonHelpers/hooks/useFormFieldValues/useFormFieldValues.d.ts +13 -0
- package/esm/commonHelpers/hooks/useFormFieldValues/useFormFieldValues.js +48 -0
- package/esm/commonHelpers/isFormItem.d.ts +2 -0
- package/esm/commonHelpers/isFormItem.js +1 -0
- package/esm/commonHelpers/loading.d.ts +6 -0
- package/esm/commonHelpers/loading.js +1 -0
- package/esm/commonHelpers/types/exclusive.d.ts +3 -0
- package/esm/commonHelpers/types/without.d.ts +3 -0
- package/esm/commonHelpers/zenComponent.d.ts +17 -0
- package/esm/dateInput/dateInput.d.ts +8 -22
- package/esm/dateInput/dateInput.js +20 -113
- package/esm/dateInputInner/dateInputInnerControlBlock.js +4 -1
- package/esm/dateInputRaw/dateInputRaw.d.ts +9 -0
- package/esm/dateInputRaw/dateInputRaw.js +130 -0
- package/esm/dateInputRaw/types.d.ts +32 -0
- package/esm/{dateInput → dateInputRaw/utils}/getLabel.js +1 -1
- package/esm/dateRange/dateRange.d.ts +10 -41
- package/esm/dateRange/dateRange.js +18 -258
- package/esm/dateRange/dateRangeUtils.d.ts +1 -38
- package/esm/dateRange/dateRangeUtils.js +1 -275
- package/esm/dateRangeRaw/dateRangeRaw.d.ts +45 -0
- package/esm/dateRangeRaw/dateRangeRaw.js +272 -0
- package/esm/dateRangeRaw/types.d.ts +48 -0
- package/esm/dateRangeRaw/types.js +1 -0
- package/esm/{dateRange → dateRangeRaw}/utils/areMapsEqual.d.ts +1 -1
- package/esm/dateRangeRaw/utils/dateRangeUtils.d.ts +38 -0
- package/esm/dateRangeRaw/utils/dateRangeUtils.js +275 -0
- package/esm/dateRangeRaw/utils/parseLabel.d.ts +2 -0
- package/esm/dateRangeRaw/utils/parseLabel.js +11 -0
- package/esm/divider/divider.d.ts +7 -0
- package/esm/divider/divider.js +3 -0
- package/esm/dropdown/dropdown.d.ts +21 -108
- package/esm/dropdown/dropdown.js +28 -495
- package/esm/dropdown/dropdownPopup.d.ts +4 -34
- package/esm/dropdown/dropdownPopup.js +2 -31
- package/esm/dropdown/dropdownTrigger.d.ts +2 -25
- package/esm/dropdown/dropdownTrigger.js +2 -28
- package/esm/{dropdown → dropdownRaw}/dropdownHelper.d.ts +15 -14
- package/esm/{dropdown → dropdownRaw}/dropdownHelper.js +1 -1
- package/esm/dropdownRaw/dropdownPopup.d.ts +34 -0
- package/esm/dropdownRaw/dropdownPopup.js +31 -0
- package/esm/dropdownRaw/dropdownRaw.d.ts +6 -0
- package/esm/dropdownRaw/dropdownRaw.js +537 -0
- package/{dist/dropdown → esm/dropdownRaw}/dropdownSearchableTrigger.d.ts +3 -1
- package/esm/dropdownRaw/dropdownSearchableTrigger.js +59 -0
- package/esm/dropdownRaw/dropdownTestData.d.ts +65 -0
- package/esm/dropdownRaw/dropdownTestData.js +1090 -0
- package/esm/dropdownRaw/dropdownTrigger.d.ts +27 -0
- package/esm/dropdownRaw/dropdownTrigger.js +27 -0
- package/{dist/dropdown → esm/dropdownRaw}/stateReducer/stateAction.d.ts +4 -4
- package/esm/dropdownRaw/stateReducer/stateAction.js +1 -0
- package/esm/{dropdown → dropdownRaw}/stateReducer/stateReducer.d.ts +5 -5
- package/esm/{dropdown → dropdownRaw}/stateReducer/stateReducer.js +2 -2
- package/esm/{dropdown → dropdownRaw}/stateReducer/stateReducerHelper.d.ts +2 -2
- package/esm/dropdownRaw/types.d.ts +133 -0
- package/esm/dropdownRaw/types.js +1 -0
- package/esm/dropdownRaw/utils/getSelectedValues.d.ts +2 -0
- package/esm/dropdownRaw/utils/getSelectedValues.js +1 -0
- package/esm/filterButton/filterButton.d.ts +3 -1
- package/esm/filterButton/filterButton.js +2 -2
- package/esm/filters/components/filtersDropdown.d.ts +4 -2
- package/esm/filters/components/filtersGroups.d.ts +1 -1
- package/esm/filters/components/filtersItem.d.ts +1 -1
- package/esm/filters/components/filtersSidePanelDropdown.js +2 -2
- package/esm/filters/components/filtersSidePanelRange.js +1 -1
- package/esm/filters/filtersHelper.js +1 -1
- package/esm/filtersBar/components/filtersBarDropdown/filtersBarDropdown.js +2 -2
- package/esm/filtersBar/components/filtersBarGroupsFilter/filtersBarGroupsFilter.d.ts +1 -1
- package/esm/filtersBar/components/filtersBarRange/filtersBarRange.js +1 -1
- package/esm/filtersBar/filtersBarSidePanel/components/filtersBarSidePanelDropdownWithCheckbox/filtersBarSidePanelDropdownWithCheckbox.js +1 -1
- package/esm/filtersBar/filtersBarSidePanel/components/filtersBarSidePanelRange/filtersBarSidePanelRange.js +2 -2
- package/esm/formField/components/formFieldBanner.d.ts +6 -0
- package/esm/formField/components/formFieldBanner.js +5 -0
- package/esm/formField/components/formFieldSkeleton.d.ts +6 -0
- package/esm/formField/components/formFieldSkeleton.js +1 -0
- package/esm/formField/components/formFieldWithLabel.d.ts +10 -0
- package/esm/formField/components/formFieldWithLabel.js +8 -0
- package/esm/formField/components/formFieldWithoutLabel.d.ts +8 -0
- package/esm/formField/components/formFieldWithoutLabel.js +8 -0
- package/esm/formField/formField.d.ts +34 -6
- package/esm/formField/formField.js +61 -8
- package/esm/formField/hooks/useAssistive.d.ts +12 -0
- package/esm/formField/hooks/useAssistive.js +14 -0
- package/esm/formField/hooks/useBanner.d.ts +8 -0
- package/esm/formField/hooks/useBanner.js +23 -0
- package/esm/formField/hooks/useDisabled.d.ts +15 -0
- package/esm/formField/hooks/useDisabled.js +18 -0
- package/esm/formField/hooks/useError.d.ts +18 -0
- package/esm/formField/hooks/useError.js +45 -0
- package/esm/formField/hooks/useLoading.d.ts +2 -0
- package/esm/formField/hooks/useLoading.js +15 -0
- package/esm/formField/hooks/useReadonly.d.ts +1 -0
- package/esm/formField/hooks/useReadonly.js +6 -0
- package/esm/formField/hooks/useSkeleton.d.ts +3 -0
- package/esm/formField/hooks/useSkeleton.js +9 -0
- package/esm/formField/hooks/useTrailing.d.ts +12 -0
- package/esm/formField/hooks/useTrailing.js +14 -0
- package/esm/formField/hooks/useWidth.d.ts +8 -0
- package/esm/formField/hooks/useWidth.js +7 -0
- package/esm/formField/utils/getFormFieldBanner.d.ts +2 -0
- package/esm/formField/utils/getFormFieldBanner.js +13 -0
- package/esm/formField/utils/rangeRawLabelCheck.d.ts +1 -0
- package/esm/formField/utils/rangeRawLabelCheck.js +10 -0
- package/esm/formGroup/components/customRow/customRow.d.ts +7 -0
- package/esm/formGroup/components/customRow/customRow.js +3 -0
- package/esm/formGroup/components/formGroupList.d.ts +5 -0
- package/esm/formGroup/components/formGroupList.js +2 -0
- package/esm/formGroup/components/formGroupToggle.d.ts +15 -0
- package/esm/formGroup/components/formGroupToggle.js +2 -0
- package/esm/formGroup/components/list.d.ts +6 -0
- package/esm/formGroup/components/list.js +15 -0
- package/esm/formGroup/components/listToggle/listToggle.d.ts +1 -0
- package/esm/formGroup/components/listToggle/listToggle.js +25 -0
- package/esm/formGroup/components/oneRow.d.ts +6 -0
- package/esm/formGroup/components/oneRow.js +11 -0
- package/esm/formGroup/components/reviewListToggle/reviewListToggle.d.ts +8 -0
- package/esm/formGroup/components/reviewListToggle/reviewListToggle.js +12 -0
- package/esm/formGroup/components/reviewTextControl.d.ts +9 -0
- package/esm/formGroup/components/reviewTextControl.js +3 -0
- package/esm/formGroup/components/row.d.ts +5 -0
- package/esm/formGroup/components/row.js +34 -0
- package/esm/formGroup/components/twoRows.d.ts +6 -0
- package/esm/formGroup/components/twoRows.js +11 -0
- package/esm/formGroup/formGroup.d.ts +13 -0
- package/esm/formGroup/formGroup.js +45 -0
- package/esm/formGroup/hooks/listHooks/useControlClasses.d.ts +2 -0
- package/esm/formGroup/hooks/listHooks/useControlClasses.js +50 -0
- package/esm/formGroup/hooks/listHooks/useControls.d.ts +2 -0
- package/esm/formGroup/hooks/listHooks/useControls.js +13 -0
- package/esm/formGroup/hooks/listHooks/useElementsState.d.ts +3 -0
- package/esm/formGroup/hooks/listHooks/useElementsState.js +31 -0
- package/esm/formGroup/hooks/listHooks/useLabelClasses.d.ts +2 -0
- package/esm/formGroup/hooks/listHooks/useLabelClasses.js +34 -0
- package/esm/formGroup/hooks/listHooks/useStateToElements.d.ts +3 -0
- package/esm/formGroup/hooks/listHooks/useStateToElements.js +23 -0
- package/esm/formGroup/hooks/rowHooks/useControlClasses.d.ts +2 -0
- package/esm/formGroup/hooks/rowHooks/useControlClasses.js +27 -0
- package/esm/formGroup/hooks/rowHooks/useControls.d.ts +2 -0
- package/esm/formGroup/hooks/rowHooks/useControls.js +11 -0
- package/esm/formGroup/hooks/rowHooks/useInitializeState.d.ts +3 -0
- package/esm/formGroup/hooks/rowHooks/useInitializeState.js +11 -0
- package/esm/formGroup/hooks/rowHooks/useLabelClasses.d.ts +2 -0
- package/esm/formGroup/hooks/rowHooks/useLabelClasses.js +24 -0
- package/esm/formGroup/hooks/useCustomRow.d.ts +4 -0
- package/esm/formGroup/hooks/useCustomRow.js +88 -0
- package/esm/formGroup/hooks/useElements.d.ts +4 -0
- package/esm/formGroup/hooks/useElements.js +19 -0
- package/esm/formGroup/hooks/useLabelAlign.d.ts +2 -0
- package/esm/formGroup/hooks/useLabelAlign.js +10 -0
- package/esm/formGroup/hooks/useMode.d.ts +2 -0
- package/esm/formGroup/hooks/useMode.js +8 -0
- package/esm/formGroup/hooks/useRowElements.d.ts +14 -0
- package/esm/formGroup/hooks/useRowElements.js +20 -0
- package/esm/formGroup/hooks/useSectionType.d.ts +2 -0
- package/esm/formGroup/hooks/useSectionType.js +8 -0
- package/esm/formGroup/hooks/useToggle.d.ts +1 -0
- package/esm/formGroup/hooks/useToggle.js +21 -0
- package/esm/formGroup/hooks/useToggleList.d.ts +9 -0
- package/esm/formGroup/hooks/useToggleList.js +20 -0
- package/esm/formGroup/types.d.ts +53 -0
- package/esm/formGroup/types.js +1 -0
- package/esm/formGroup/utils/applyControlClasses.d.ts +2 -0
- package/esm/formGroup/utils/applyControlClasses.js +47 -0
- package/esm/formGroup/utils/applyCustomControlClasses.d.ts +12 -0
- package/esm/formGroup/utils/applyCustomControlClasses.js +27 -0
- package/esm/formGroup/utils/applyCustomLabelClasses.d.ts +12 -0
- package/esm/formGroup/utils/applyCustomLabelClasses.js +16 -0
- package/esm/formGroup/utils/formGroupProvider.d.ts +9 -0
- package/esm/formGroup/utils/formGroupProvider.js +4 -0
- package/esm/formGroup/utils/getControlClasses/getControlClasses.d.ts +6 -0
- package/esm/formGroup/utils/getControlClasses/getControlClasses.js +75 -0
- package/esm/formGroup/utils/getControlClasses/getModalSectionClasses.d.ts +2 -0
- package/esm/formGroup/utils/getControlClasses/getModalSectionClasses.js +4 -0
- package/esm/formGroup/utils/getControlClasses/getOneLabelOneControlClasses.d.ts +6 -0
- package/esm/formGroup/utils/getControlClasses/getOneLabelOneControlClasses.js +21 -0
- package/esm/formGroup/utils/getControlClasses/getOneLabelTwoControlsClasses.d.ts +7 -0
- package/esm/formGroup/utils/getControlClasses/getOneLabelTwoControlsClasses.js +49 -0
- package/esm/formGroup/utils/getControlClasses/getTwoLabelsOneControlClasses.d.ts +6 -0
- package/esm/formGroup/utils/getControlClasses/getTwoLabelsOneControlClasses.js +21 -0
- package/esm/formGroup/utils/getControlClasses/getTwoLabelsTwoControlsClasses.d.ts +6 -0
- package/esm/formGroup/utils/getControlClasses/getTwoLabelsTwoControlsClasses.js +24 -0
- package/esm/formGroup/utils/getControlClasses/getZeroLabelOneControlClasses.d.ts +3 -0
- package/esm/formGroup/utils/getControlClasses/getZeroLabelOneControlClasses.js +12 -0
- package/esm/formGroup/utils/getControlClasses/types.d.ts +4 -0
- package/esm/formGroup/utils/getControlClasses/types.js +1 -0
- package/esm/formGroup/utils/getControlListClasses/getControlListClasses.d.ts +4 -0
- package/esm/formGroup/utils/getControlListClasses/getControlListClasses.js +42 -0
- package/esm/formGroup/utils/getControlListClasses/getOneLabelOneControlClasses.d.ts +7 -0
- package/esm/formGroup/utils/getControlListClasses/getOneLabelOneControlClasses.js +60 -0
- package/esm/formGroup/utils/getControlListClasses/getOneLabelTwoControlsClasses.d.ts +7 -0
- package/esm/formGroup/utils/getControlListClasses/getOneLabelTwoControlsClasses.js +40 -0
- package/esm/formGroup/utils/getControlListClasses/getTwoLabelsTwoControlsClasses.d.ts +6 -0
- package/esm/formGroup/utils/getControlListClasses/getTwoLabelsTwoControlsClasses.js +35 -0
- package/esm/formGroup/utils/getControlListClasses/getZeroLabelOneControlClasses.d.ts +5 -0
- package/esm/formGroup/utils/getControlListClasses/getZeroLabelOneControlClasses.js +14 -0
- package/esm/formGroup/utils/getControlListClasses/getZeroLabelsTwoControls.d.ts +2 -0
- package/esm/formGroup/utils/getControlListClasses/getZeroLabelsTwoControls.js +13 -0
- package/esm/formGroup/utils/getControlNode.d.ts +1 -0
- package/esm/formGroup/utils/getControlNode.js +2 -0
- package/esm/formGroup/utils/getControls.d.ts +5 -0
- package/esm/formGroup/utils/getControls.js +22 -0
- package/esm/formGroup/utils/getElementsControl.d.ts +5 -0
- package/esm/formGroup/utils/getElementsControl.js +33 -0
- package/esm/formGroup/utils/getLabelClasses/getLabelClasses.d.ts +6 -0
- package/esm/formGroup/utils/getLabelClasses/getLabelClasses.js +61 -0
- package/esm/formGroup/utils/getLabelClasses/getModalSectionClasses.d.ts +2 -0
- package/esm/formGroup/utils/getLabelClasses/getModalSectionClasses.js +4 -0
- package/esm/formGroup/utils/getLabelClasses/getOneLabelOneControlClasses.d.ts +4 -0
- package/esm/formGroup/utils/getLabelClasses/getOneLabelOneControlClasses.js +20 -0
- package/esm/formGroup/utils/getLabelClasses/getOneLabelTwoControlsClasses.d.ts +4 -0
- package/esm/formGroup/utils/getLabelClasses/getOneLabelTwoControlsClasses.js +46 -0
- package/esm/formGroup/utils/getLabelClasses/getReviewOrInlineEditClasses.d.ts +2 -0
- package/esm/formGroup/utils/getLabelClasses/getReviewOrInlineEditClasses.js +27 -0
- package/esm/formGroup/utils/getLabelClasses/getTwoLabelsOneControlClasses.d.ts +4 -0
- package/esm/formGroup/utils/getLabelClasses/getTwoLabelsOneControlClasses.js +24 -0
- package/esm/formGroup/utils/getLabelClasses/getTwoLabelsTwoControlsClasses.d.ts +4 -0
- package/esm/formGroup/utils/getLabelClasses/getTwoLabelsTwoControlsClasses.js +24 -0
- package/esm/formGroup/utils/getLabelClasses/getZeroLabelClasses.d.ts +2 -0
- package/esm/formGroup/utils/getLabelClasses/getZeroLabelClasses.js +4 -0
- package/esm/formGroup/utils/getLabelClasses/types.d.ts +4 -0
- package/esm/formGroup/utils/getLabelClasses/types.js +1 -0
- package/esm/formGroup/utils/getLabelListClasses/getLabelListClasses.d.ts +7 -0
- package/esm/formGroup/utils/getLabelListClasses/getLabelListClasses.js +30 -0
- package/esm/formGroup/utils/getLabelListClasses/getOneLabelOneControlClasses.d.ts +6 -0
- package/esm/formGroup/utils/getLabelListClasses/getOneLabelOneControlClasses.js +44 -0
- package/esm/formGroup/utils/getLabelListClasses/getOneLabelTwoControlsClasses.d.ts +7 -0
- package/esm/formGroup/utils/getLabelListClasses/getOneLabelTwoControlsClasses.js +25 -0
- package/esm/formGroup/utils/getLabelListClasses/getOneLabelZeroControlsClasses.d.ts +4 -0
- package/esm/formGroup/utils/getLabelListClasses/getOneLabelZeroControlsClasses.js +13 -0
- package/esm/formGroup/utils/getLabelListClasses/getTwoLabelsTwoControlsClasses.d.ts +5 -0
- package/esm/formGroup/utils/getLabelListClasses/getTwoLabelsTwoControlsClasses.js +31 -0
- package/esm/formGroup/utils/getLabelNode.d.ts +1 -0
- package/esm/formGroup/utils/getLabelNode.js +2 -0
- package/esm/formGroup/utils/getListClasses.d.ts +3 -0
- package/esm/formGroup/utils/getListClasses.js +27 -0
- package/esm/formGroup/utils/getToggleClasses.d.ts +3 -0
- package/esm/formGroup/utils/getToggleClasses.js +13 -0
- package/esm/formGroup/utils/getTotalState.d.ts +2 -0
- package/esm/formGroup/utils/getTotalState.js +19 -0
- package/esm/formGroup/utils/hasCustomWidthControl.d.ts +2 -0
- package/esm/formGroup/utils/hasCustomWidthControl.js +7 -0
- package/esm/formGroup/utils/hasWidthProp.d.ts +2 -0
- package/esm/formGroup/utils/hasWidthProp.js +7 -0
- package/esm/formGroup/utils/initializeState.d.ts +12 -0
- package/esm/formGroup/utils/initializeState.js +36 -0
- package/esm/formGroup/utils/isFormLabel.d.ts +3 -0
- package/esm/formGroup/utils/isFormLabel.js +2 -0
- package/esm/formGroup/utils/isTopAlign.d.ts +3 -0
- package/esm/formGroup/utils/isTopAlign.js +5 -0
- package/esm/formGroup/utils/isTwoRowsStructure.d.ts +3 -0
- package/esm/formGroup/utils/isTwoRowsStructure.js +25 -0
- package/esm/formGroupItem/formGroupItem.d.ts +8 -0
- package/esm/formGroupItem/formGroupItem.js +9 -0
- package/esm/formLayout/components/column/column.d.ts +7 -0
- package/esm/formLayout/components/column/column.js +3 -0
- package/esm/formLayout/components/columnTitle/formLayoutColumnTitle.d.ts +9 -0
- package/esm/formLayout/components/columnTitle/formLayoutColumnTitle.js +3 -0
- package/esm/formLayout/components/customColumns.d.ts +9 -0
- package/esm/formLayout/components/customColumns.js +33 -0
- package/esm/formLayout/components/formLayoutSecondary.d.ts +7 -0
- package/esm/formLayout/components/formLayoutSecondary.js +3 -0
- package/esm/formLayout/components/formLayoutTitle.d.ts +7 -0
- package/esm/formLayout/components/formLayoutTitle.js +3 -0
- package/esm/formLayout/components/getLayoutColumns.d.ts +1 -0
- package/esm/formLayout/components/getLayoutColumns.js +35 -0
- package/esm/formLayout/components/layoutColumn/layoutColum.d.ts +6 -0
- package/esm/formLayout/components/layoutColumn/layoutColum.js +2 -0
- package/esm/formLayout/components/oneColumnGrid.d.ts +2 -0
- package/esm/formLayout/components/oneColumnGrid.js +24 -0
- package/esm/formLayout/components/twoColumnsGrid.d.ts +2 -0
- package/esm/formLayout/components/twoColumnsGrid.js +24 -0
- package/esm/formLayout/components/useCustomColumns.d.ts +11 -0
- package/esm/formLayout/components/useCustomColumns.js +53 -0
- package/esm/formLayout/formLayout.d.ts +7 -0
- package/esm/formLayout/formLayout.js +39 -0
- package/esm/formLayout/hooks/getStepperLayout.d.ts +2 -0
- package/esm/formLayout/hooks/getStepperLayout.js +19 -0
- package/esm/formLayout/hooks/useColumns.d.ts +1 -0
- package/esm/formLayout/hooks/useColumns.js +6 -0
- package/esm/formLayout/hooks/useComponents.d.ts +8 -0
- package/esm/formLayout/hooks/useComponents.js +36 -0
- package/esm/formLayout/hooks/useError.d.ts +6 -0
- package/esm/formLayout/hooks/useError.js +20 -0
- package/esm/formLayout/hooks/useFormButtons.d.ts +11 -0
- package/esm/formLayout/hooks/useFormButtons.js +35 -0
- package/esm/formLayout/hooks/useLayoutColumns.d.ts +1 -0
- package/esm/formLayout/hooks/useLayoutColumns.js +6 -0
- package/esm/formLayout/hooks/useLoading.d.ts +5 -0
- package/esm/formLayout/hooks/useLoading.js +12 -0
- package/esm/formLayout/types.d.ts +32 -0
- package/esm/formLayout/types.js +1 -0
- package/esm/formLayout/utils/applyGridPropsOneColumn.d.ts +1 -0
- package/esm/formLayout/utils/applyGridPropsOneColumn.js +14 -0
- package/esm/formLayout/utils/applyGridPropsStatic.d.ts +1 -0
- package/esm/formLayout/utils/applyGridPropsStatic.js +42 -0
- package/esm/formLayout/utils/applyGridPropsTwoColumns/applyFirstColumn.d.ts +2 -0
- package/esm/formLayout/utils/applyGridPropsTwoColumns/applyFirstColumn.js +14 -0
- package/esm/formLayout/utils/applyGridPropsTwoColumns/applyGridPropsTwoColumns.d.ts +2 -0
- package/esm/formLayout/utils/applyGridPropsTwoColumns/applyGridPropsTwoColumns.js +20 -0
- package/esm/formLayout/utils/applyGridPropsTwoColumns/applySecondColumn.d.ts +2 -0
- package/esm/formLayout/utils/applyGridPropsTwoColumns/applySecondColumn.js +16 -0
- package/esm/formLayout/utils/applyLayoutPosition/applyLayoutPosition.d.ts +1 -0
- package/esm/formLayout/utils/applyLayoutPosition/applyLayoutPosition.js +114 -0
- package/esm/formLayout/utils/attachHeadings.d.ts +1 -0
- package/esm/formLayout/utils/attachHeadings.js +27 -0
- package/esm/formLayout/utils/attachSeparators.d.ts +4 -0
- package/esm/formLayout/utils/attachSeparators.js +28 -0
- package/esm/formLayout/utils/attachStepper.d.ts +3 -0
- package/esm/formLayout/utils/attachStepper.js +19 -0
- package/esm/formLayout/utils/formLayoutProvider.d.ts +7 -0
- package/esm/formLayout/utils/formLayoutProvider.js +10 -0
- package/esm/formLayout/utils/getAllowedComponents.d.ts +6 -0
- package/esm/formLayout/utils/getAllowedComponents.js +15 -0
- package/esm/formLayout/utils/getChildrenWithCustomColumns.d.ts +2 -0
- package/esm/formLayout/utils/getChildrenWithCustomColumns.js +70 -0
- package/esm/formLayout/utils/getComponentsWithClasses.d.ts +3 -0
- package/esm/formLayout/utils/getComponentsWithClasses.js +23 -0
- package/esm/formLayout/utils/getFilteredComponents.d.ts +4 -0
- package/esm/formLayout/utils/getFilteredComponents.js +21 -0
- package/esm/formLayout/utils/getFormSection.d.ts +2 -0
- package/esm/formLayout/utils/getFormSection.js +18 -0
- package/esm/formLayout/utils/hasStepper.d.ts +2 -0
- package/esm/formLayout/utils/hasStepper.js +1 -0
- package/esm/formLayout/utils/isCustomFormSection.d.ts +3 -0
- package/esm/formLayout/utils/isCustomFormSection.js +2 -0
- package/esm/formLayout/utils/isStaticElement.d.ts +1 -0
- package/esm/formLayout/utils/isStaticElement.js +15 -0
- package/esm/formSection/components/actions.d.ts +5 -0
- package/esm/formSection/components/actions.js +1 -0
- package/esm/formSection/components/additional.d.ts +5 -0
- package/esm/formSection/components/additional.js +1 -0
- package/esm/formSection/components/additionalSection.d.ts +9 -0
- package/esm/formSection/components/additionalSection.js +28 -0
- package/esm/formSection/components/formSectionButton.d.ts +5 -0
- package/esm/formSection/components/formSectionButton.js +17 -0
- package/esm/formSection/components/formSectionCard.d.ts +4 -0
- package/esm/formSection/components/formSectionCard.js +46 -0
- package/esm/formSection/components/formSectionDefault.d.ts +3 -0
- package/esm/formSection/components/formSectionDefault.js +13 -0
- package/esm/formSection/components/formSectionDefaultTitle.d.ts +7 -0
- package/esm/formSection/components/formSectionDefaultTitle.js +3 -0
- package/esm/formSection/components/formSectionInner.d.ts +7 -0
- package/esm/formSection/components/formSectionInner.js +55 -0
- package/esm/formSection/components/formSectionModal.d.ts +3 -0
- package/esm/formSection/components/formSectionModal.js +5 -0
- package/esm/formSection/formSection.d.ts +12 -0
- package/esm/formSection/formSection.js +44 -0
- package/esm/formSection/hooks/useError.d.ts +7 -0
- package/esm/formSection/hooks/useError.js +28 -0
- package/esm/formSection/hooks/useLoading.d.ts +5 -0
- package/esm/formSection/hooks/useLoading.js +18 -0
- package/esm/formSection/types.d.ts +35 -0
- package/esm/formSection/types.js +1 -0
- package/esm/formSection/utils/formSectionProvider.d.ts +11 -0
- package/esm/formSection/utils/formSectionProvider.js +9 -0
- package/esm/formSection/utils/getClassName.d.ts +4 -0
- package/esm/formSection/utils/getClassName.js +8 -0
- package/esm/formSection/utils/isFormSection.d.ts +4 -0
- package/esm/formSection/utils/isFormSection.js +1 -0
- package/esm/formSection/utils/isModalSection.d.ts +2 -0
- package/esm/formSection/utils/isModalSection.js +4 -0
- package/esm/formStepper/formStepper.js +1 -1
- package/esm/formStepper/hooks/useFormStepper.d.ts +6 -0
- package/esm/formStepper/hooks/useFormStepper.js +20 -0
- package/esm/formStepperButtons/formStepperButtons.js +3 -1
- package/esm/gridLayout/gridLayout.js +2 -1
- package/esm/gridLayout/hooks/useGridClasses.d.ts +10 -1
- package/esm/gridLayout/hooks/useGridClasses.js +28 -9
- package/esm/gridLayout/utils/adaptGridState.d.ts +2 -2
- package/esm/gridLayout/utils/adaptGridState.js +7 -8
- package/esm/gridLayout/utils/adjustGridState.d.ts +2 -2
- package/esm/gridLayout/utils/adjustGridState.js +13 -14
- package/esm/gridLayout/utils/constants.d.ts +1 -0
- package/esm/gridLayout/utils/constants.js +1 -0
- package/esm/gridLayout/utils/convertClassesToState.d.ts +2 -0
- package/esm/gridLayout/utils/convertClassesToState.js +44 -0
- package/esm/gridLayout/utils/convertStateToClasses.d.ts +2 -1
- package/esm/gridLayout/utils/convertStateToClasses.js +3 -3
- package/esm/gridLayout/utils/fillGridState.d.ts +2 -2
- package/esm/gridLayout/utils/fillGridState.js +6 -7
- package/esm/gridLayout/utils/filterGridProps.d.ts +2 -0
- package/esm/gridLayout/utils/filterGridProps.js +15 -0
- package/esm/gridLayout/utils/getAllowedComponent.js +15 -1
- package/esm/gridLayout/utils/getGridPositionClasses.d.ts +1 -0
- package/esm/gridLayout/utils/getGridPositionClasses.js +8 -0
- package/esm/gridLayout/utils/getGridWidthClasses.d.ts +1 -0
- package/esm/gridLayout/utils/getGridWidthClasses.js +15 -0
- package/esm/gridLayout/utils/gridLayoutProvider.d.ts +9 -0
- package/esm/gridLayout/utils/gridLayoutProvider.js +12 -0
- package/esm/gridLayout/utils/hasGridClasses.d.ts +2 -0
- package/esm/gridLayout/utils/hasGridClasses.js +8 -0
- package/esm/gridLayout/utils/isGridItem.d.ts +1 -1
- package/esm/gridLayout/utils/isGridItem.js +3 -0
- package/esm/gridLayout/utils/removeSameTypeClasses.d.ts +1 -0
- package/esm/gridLayout/utils/removeSameTypeClasses.js +38 -0
- package/esm/gridLayout/utils/updateGridStateFromClassNames.d.ts +2 -2
- package/esm/gridLayout/utils/updateGridStateFromClassNames.js +14 -14
- package/esm/gridLayout/utils/updateGridStateFromProps.d.ts +2 -2
- package/esm/gridLayout/utils/updateGridStateFromProps.js +7 -8
- package/esm/gridLayout/utils/updateGridStateWithDefaultValues.js +4 -0
- package/esm/groupButton/groupButton.d.ts +8 -14
- package/esm/groupButton/groupButton.js +18 -14
- package/esm/groupButtonRaw/components/groupButtonOption.d.ts +11 -0
- package/esm/groupButtonRaw/components/groupButtonOption.js +8 -0
- package/esm/groupButtonRaw/groupButtonRaw.d.ts +7 -0
- package/esm/groupButtonRaw/groupButtonRaw.js +23 -0
- package/esm/groupButtonRaw/types.d.ts +26 -0
- package/esm/groupButtonRaw/types.js +1 -0
- package/esm/groupsFilter/groupsFilter.d.ts +7 -21
- package/esm/groupsFilter/groupsFilter.js +20 -327
- package/esm/groupsFilter/groupsFilterInterfaces.d.ts +16 -78
- package/esm/groupsFilter/groupsFilterInterfaces.js +2 -20
- package/{dist/groupsFilter → esm/groupsFilterRaw}/groupsFilterCommon.d.ts +1 -1
- package/{dist/groupsFilter → esm/groupsFilterRaw}/groupsFilterCounter.d.ts +1 -1
- package/esm/groupsFilterRaw/groupsFilterInterfaces.d.ts +91 -0
- package/esm/groupsFilterRaw/groupsFilterInterfaces.js +20 -0
- package/esm/groupsFilterRaw/groupsFilterRaw.d.ts +37 -0
- package/esm/groupsFilterRaw/groupsFilterRaw.js +352 -0
- package/esm/groupsFilterRaw/groupsFilterTestData.d.ts +37 -0
- package/esm/groupsFilterRaw/groupsFilterTestData.js +73 -0
- package/esm/{groupsFilter → groupsFilterRaw}/groupsFilterTrigger.d.ts +3 -2
- package/esm/{groupsFilter → groupsFilterRaw}/groupsFilterTrigger.js +2 -2
- package/esm/groupsFilterRaw/stateReducer/stateAction.js +1 -0
- package/esm/groupsFilterRaw/testData.d.ts +26 -0
- package/esm/groupsFilterRaw/testData.js +32990 -0
- package/esm/groupsFilterRaw/types.d.ts +37 -0
- package/esm/groupsFilterRaw/types.js +2 -0
- package/esm/groupsFilterRaw/uiStateReducer/uiStateAction.js +1 -0
- package/esm/index.d.ts +77 -20
- package/esm/index.js +61 -7
- package/esm/inputAdornments/inputAdornments.d.ts +2 -1
- package/esm/inputAdornments/inputAdornments.js +2 -2
- package/esm/radioGroup/radioGroup.d.ts +8 -19
- package/esm/radioGroup/radioGroup.js +17 -51
- package/esm/radioGroupRaw/radioGroupRaw.d.ts +7 -0
- package/esm/radioGroupRaw/radioGroupRaw.js +64 -0
- package/esm/radioGroupRaw/types.d.ts +25 -0
- package/esm/radioGroupRaw/types.js +1 -0
- package/esm/range/range.d.ts +11 -27
- package/esm/range/range.js +19 -146
- package/{dist/range → esm/rangeRaw/components}/rangeField.d.ts +1 -1
- package/esm/{range → rangeRaw/components}/rangeField.js +3 -3
- package/esm/rangeRaw/rangeRaw.d.ts +10 -0
- package/esm/rangeRaw/rangeRaw.js +169 -0
- package/esm/rangeRaw/types.d.ts +35 -0
- package/esm/rangeRaw/types.js +1 -0
- package/esm/{range → rangeRaw/utils}/rangeHelper.d.ts +1 -1
- package/esm/searchInput/searchInput.d.ts +5 -4
- package/esm/searchInput/searchInput.js +5 -15
- package/esm/searchInputRaw/searchInputRaw.d.ts +3 -20
- package/esm/searchInputRaw/searchInputRaw.js +9 -2
- package/esm/searchInputRaw/types.d.ts +33 -0
- package/esm/searchInputRaw/types.js +1 -0
- package/esm/select/select.d.ts +9 -4
- package/esm/select/select.js +17 -2
- package/esm/selectField/selectField.d.ts +4 -4
- package/esm/selectRaw/selectRaw.d.ts +3 -16
- package/esm/selectRaw/selectRaw.js +18 -11
- package/esm/selectRaw/types.d.ts +30 -0
- package/esm/selectRaw/types.js +1 -0
- package/esm/stepper/stepper.d.ts +5 -4
- package/esm/stepperRaw/stepperRaw.d.ts +3 -17
- package/esm/stepperRaw/stepperRaw.js +17 -9
- package/esm/stepperRaw/types.d.ts +26 -0
- package/esm/stepperRaw/types.js +1 -0
- package/esm/textInput/textInput.d.ts +5 -4
- package/esm/textInput/textInput.js +5 -15
- package/esm/textInputRaw/textInputRaw.d.ts +3 -23
- package/esm/textInputRaw/textInputRaw.js +9 -1
- package/esm/textInputRaw/types.d.ts +36 -0
- package/esm/textInputRaw/types.js +1 -0
- package/esm/textarea/textarea.d.ts +5 -4
- package/esm/textarea/textarea.js +5 -3
- package/esm/textareaRaw/textareaRaw.d.ts +3 -22
- package/esm/textareaRaw/textareaRaw.js +10 -3
- package/esm/textareaRaw/types.d.ts +31 -0
- package/esm/textareaRaw/types.js +1 -0
- package/esm/timePicker/timePicker.d.ts +9 -13
- package/esm/timePicker/timePicker.js +20 -60
- package/esm/timePickerRaw/timePickerRaw.d.ts +10 -0
- package/esm/timePickerRaw/timePickerRaw.js +75 -0
- package/esm/timePickerRaw/types.d.ts +26 -0
- package/esm/timePickerRaw/types.js +1 -0
- package/esm/toggleButton/toggleButton.d.ts +8 -10
- package/esm/toggleButton/toggleButton.js +18 -12
- package/esm/toggleButtonRaw/toggleButtonRaw.d.ts +3 -0
- package/esm/toggleButtonRaw/toggleButtonRaw.js +27 -0
- package/esm/toggleButtonRaw/types.d.ts +26 -0
- package/esm/toggleButtonRaw/types.js +1 -0
- package/esm/tooltipInfo/tooltipInfo.d.ts +7 -0
- package/esm/tooltipInfo/tooltipInfo.js +11 -0
- package/esm/utils/formatDate.d.ts +1 -1
- package/esm/utils/localization/translations/cs-json.d.ts +3 -0
- package/esm/utils/localization/translations/cs-json.js +4 -1
- package/esm/utils/localization/translations/de-json.d.ts +3 -0
- package/esm/utils/localization/translations/de-json.js +4 -1
- package/esm/utils/localization/translations/en-json.d.ts +12 -0
- package/esm/utils/localization/translations/en-json.js +13 -1
- package/esm/utils/localization/translations/es-json.d.ts +3 -0
- package/esm/utils/localization/translations/es-json.js +4 -1
- package/esm/utils/localization/translations/fr-FR-json.d.ts +3 -0
- package/esm/utils/localization/translations/fr-FR-json.js +4 -1
- package/esm/utils/localization/translations/fr-json.d.ts +3 -0
- package/esm/utils/localization/translations/fr-json.js +4 -1
- package/esm/utils/localization/translations/id-json.d.ts +3 -0
- package/esm/utils/localization/translations/id-json.js +4 -1
- package/esm/utils/localization/translations/it-json.d.ts +3 -0
- package/esm/utils/localization/translations/it-json.js +4 -1
- package/esm/utils/localization/translations/ja-json.d.ts +3 -0
- package/esm/utils/localization/translations/ja-json.js +4 -1
- package/esm/utils/localization/translations/ko-KR-json.d.ts +3 -0
- package/esm/utils/localization/translations/ko-KR-json.js +4 -1
- package/esm/utils/localization/translations/ms-json.d.ts +3 -0
- package/esm/utils/localization/translations/ms-json.js +4 -1
- package/esm/utils/localization/translations/nl-json.d.ts +3 -0
- package/esm/utils/localization/translations/nl-json.js +4 -1
- package/esm/utils/localization/translations/pl-json.d.ts +3 -0
- package/esm/utils/localization/translations/pl-json.js +4 -1
- package/esm/utils/localization/translations/pt-BR-json.d.ts +3 -0
- package/esm/utils/localization/translations/pt-BR-json.js +4 -1
- package/esm/utils/localization/translations/sv-json.d.ts +3 -0
- package/esm/utils/localization/translations/sv-json.js +4 -1
- package/esm/utils/localization/translations/th-json.d.ts +3 -0
- package/esm/utils/localization/translations/th-json.js +4 -1
- package/esm/utils/localization/translations/tr-json.d.ts +3 -0
- package/esm/utils/localization/translations/tr-json.js +4 -1
- package/esm/utils/localization/translations/zh-Hans-json.d.ts +3 -0
- package/esm/utils/localization/translations/zh-Hans-json.js +4 -1
- package/esm/utils/localization/translations/zh-TW-json.d.ts +3 -0
- package/esm/utils/localization/translations/zh-TW-json.js +4 -1
- package/package.json +5 -4
- package/esm/dropdown/dropdownSearchableTrigger.js +0 -56
- /package/dist/{dropdown/stateReducer/stateAction.js → commonHelpers/types/exclusive.js} +0 -0
- /package/dist/{groupsFilter/stateReducer/stateAction.js → commonHelpers/types/without.js} +0 -0
- /package/dist/{groupsFilter/uiStateReducer/uiStateAction.js → dateInputRaw/types.js} +0 -0
- /package/dist/{dateInput → dateInputRaw/utils}/cutSeconds.d.ts +0 -0
- /package/dist/{dateInput → dateInputRaw/utils}/cutSeconds.js +0 -0
- /package/dist/{dateInput → dateInputRaw/utils}/getLabel.d.ts +0 -0
- /package/dist/{dateRange → dateRangeRaw}/utils/areMapsEqual.js +0 -0
- /package/dist/{dropdown → dropdownRaw}/dropdownList.d.ts +0 -0
- /package/dist/{dropdown → dropdownRaw}/dropdownList.js +0 -0
- /package/dist/{dropdown → dropdownRaw}/stateReducer/stateActionType.d.ts +0 -0
- /package/dist/{dropdown → dropdownRaw}/stateReducer/stateActionType.js +0 -0
- /package/dist/{dropdown → dropdownRaw}/stateReducer/stateReducerHelper.js +0 -0
- /package/dist/{groupsFilter → groupsFilterRaw}/groupsFilterAdjustmentState.d.ts +0 -0
- /package/dist/{groupsFilter → groupsFilterRaw}/groupsFilterAdjustmentState.js +0 -0
- /package/dist/{groupsFilter → groupsFilterRaw}/groupsFilterAdvancedValue.d.ts +0 -0
- /package/dist/{groupsFilter → groupsFilterRaw}/groupsFilterAdvancedValue.js +0 -0
- /package/dist/{groupsFilter → groupsFilterRaw}/groupsFilterBox.d.ts +0 -0
- /package/dist/{groupsFilter → groupsFilterRaw}/groupsFilterBox.js +0 -0
- /package/dist/{groupsFilter → groupsFilterRaw}/groupsFilterCommon.js +0 -0
- /package/dist/{groupsFilter → groupsFilterRaw}/groupsFilterCounter.js +0 -0
- /package/dist/{groupsFilter → groupsFilterRaw}/groupsFilterCurrentlySelectedState.d.ts +0 -0
- /package/dist/{groupsFilter → groupsFilterRaw}/groupsFilterCurrentlySelectedState.js +0 -0
- /package/dist/{groupsFilter → groupsFilterRaw}/groupsFilterHelper.d.ts +0 -0
- /package/dist/{groupsFilter → groupsFilterRaw}/groupsFilterHelper.js +0 -0
- /package/dist/{groupsFilter → groupsFilterRaw}/groupsFilterInitialState.d.ts +0 -0
- /package/dist/{groupsFilter → groupsFilterRaw}/groupsFilterInitialState.js +0 -0
- /package/dist/{groupsFilter → groupsFilterRaw}/groupsFilterLabelBox.d.ts +0 -0
- /package/dist/{groupsFilter → groupsFilterRaw}/groupsFilterLabelBox.js +0 -0
- /package/dist/{groupsFilter → groupsFilterRaw}/groupsFilterMenu.d.ts +0 -0
- /package/dist/{groupsFilter → groupsFilterRaw}/groupsFilterMenu.js +0 -0
- /package/dist/{groupsFilter → groupsFilterRaw}/groupsFilterStatesHelper.d.ts +0 -0
- /package/dist/{groupsFilter → groupsFilterRaw}/groupsFilterStatesHelper.js +0 -0
- /package/dist/{groupsFilter → groupsFilterRaw}/groupsHelper.d.ts +0 -0
- /package/dist/{groupsFilter → groupsFilterRaw}/groupsHelper.js +0 -0
- /package/dist/{groupsFilter → groupsFilterRaw}/stateReducer/stateAction.d.ts +0 -0
- /package/dist/{groupsFilter → groupsFilterRaw}/stateReducer/stateActionType.d.ts +0 -0
- /package/dist/{groupsFilter → groupsFilterRaw}/stateReducer/stateActionType.js +0 -0
- /package/dist/{groupsFilter → groupsFilterRaw}/stateReducer/stateReducer.d.ts +0 -0
- /package/dist/{groupsFilter → groupsFilterRaw}/stateReducer/stateReducer.js +0 -0
- /package/dist/{groupsFilter → groupsFilterRaw}/stateReducer/stateReducerHelper.d.ts +0 -0
- /package/dist/{groupsFilter → groupsFilterRaw}/stateReducer/stateReducerHelper.js +0 -0
- /package/dist/{groupsFilter → groupsFilterRaw}/uiStateReducer/uiStateAction.d.ts +0 -0
- /package/dist/{groupsFilter → groupsFilterRaw}/uiStateReducer/uiStateActionType.d.ts +0 -0
- /package/dist/{groupsFilter → groupsFilterRaw}/uiStateReducer/uiStateActionType.js +0 -0
- /package/dist/{groupsFilter → groupsFilterRaw}/uiStateReducer/uiStateReducer.d.ts +0 -0
- /package/dist/{groupsFilter → groupsFilterRaw}/uiStateReducer/uiStateReducer.js +0 -0
- /package/dist/{range → rangeRaw/utils}/rangeHelper.js +0 -0
- /package/dist/{timePicker → timePickerRaw}/components/timeSelect/timeSelect.d.ts +0 -0
- /package/dist/{timePicker → timePickerRaw}/components/timeSelect/timeSelect.js +0 -0
- /package/dist/{timePicker → timePickerRaw}/timePickerUtils.d.ts +0 -0
- /package/dist/{timePicker → timePickerRaw}/timePickerUtils.js +0 -0
- /package/esm/{dropdown/stateReducer/stateAction.js → commonHelpers/types/exclusive.js} +0 -0
- /package/esm/{groupsFilter/stateReducer/stateAction.js → commonHelpers/types/without.js} +0 -0
- /package/esm/{groupsFilter/uiStateReducer/uiStateAction.js → dateInputRaw/types.js} +0 -0
- /package/esm/{dateInput → dateInputRaw/utils}/cutSeconds.d.ts +0 -0
- /package/esm/{dateInput → dateInputRaw/utils}/cutSeconds.js +0 -0
- /package/esm/{dateInput → dateInputRaw/utils}/getLabel.d.ts +0 -0
- /package/esm/{dateRange → dateRangeRaw}/utils/areMapsEqual.js +0 -0
- /package/esm/{dropdown → dropdownRaw}/dropdownList.d.ts +0 -0
- /package/esm/{dropdown → dropdownRaw}/dropdownList.js +0 -0
- /package/esm/{dropdown → dropdownRaw}/stateReducer/stateActionType.d.ts +0 -0
- /package/esm/{dropdown → dropdownRaw}/stateReducer/stateActionType.js +0 -0
- /package/esm/{dropdown → dropdownRaw}/stateReducer/stateReducerHelper.js +0 -0
- /package/esm/{groupsFilter → groupsFilterRaw}/groupsFilterAdjustmentState.d.ts +0 -0
- /package/esm/{groupsFilter → groupsFilterRaw}/groupsFilterAdjustmentState.js +0 -0
- /package/esm/{groupsFilter → groupsFilterRaw}/groupsFilterAdvancedValue.d.ts +0 -0
- /package/esm/{groupsFilter → groupsFilterRaw}/groupsFilterAdvancedValue.js +0 -0
- /package/esm/{groupsFilter → groupsFilterRaw}/groupsFilterBox.d.ts +0 -0
- /package/esm/{groupsFilter → groupsFilterRaw}/groupsFilterBox.js +0 -0
- /package/esm/{groupsFilter → groupsFilterRaw}/groupsFilterCommon.js +0 -0
- /package/esm/{groupsFilter → groupsFilterRaw}/groupsFilterCounter.js +0 -0
- /package/esm/{groupsFilter → groupsFilterRaw}/groupsFilterCurrentlySelectedState.d.ts +0 -0
- /package/esm/{groupsFilter → groupsFilterRaw}/groupsFilterCurrentlySelectedState.js +0 -0
- /package/esm/{groupsFilter → groupsFilterRaw}/groupsFilterHelper.d.ts +0 -0
- /package/esm/{groupsFilter → groupsFilterRaw}/groupsFilterHelper.js +0 -0
- /package/esm/{groupsFilter → groupsFilterRaw}/groupsFilterInitialState.d.ts +0 -0
- /package/esm/{groupsFilter → groupsFilterRaw}/groupsFilterInitialState.js +0 -0
- /package/esm/{groupsFilter → groupsFilterRaw}/groupsFilterLabelBox.d.ts +0 -0
- /package/esm/{groupsFilter → groupsFilterRaw}/groupsFilterLabelBox.js +0 -0
- /package/esm/{groupsFilter → groupsFilterRaw}/groupsFilterMenu.d.ts +0 -0
- /package/esm/{groupsFilter → groupsFilterRaw}/groupsFilterMenu.js +0 -0
- /package/esm/{groupsFilter → groupsFilterRaw}/groupsFilterStatesHelper.d.ts +0 -0
- /package/esm/{groupsFilter → groupsFilterRaw}/groupsFilterStatesHelper.js +0 -0
- /package/esm/{groupsFilter → groupsFilterRaw}/groupsHelper.d.ts +0 -0
- /package/esm/{groupsFilter → groupsFilterRaw}/groupsHelper.js +0 -0
- /package/esm/{groupsFilter → groupsFilterRaw}/stateReducer/stateAction.d.ts +0 -0
- /package/esm/{groupsFilter → groupsFilterRaw}/stateReducer/stateActionType.d.ts +0 -0
- /package/esm/{groupsFilter → groupsFilterRaw}/stateReducer/stateActionType.js +0 -0
- /package/esm/{groupsFilter → groupsFilterRaw}/stateReducer/stateReducer.d.ts +0 -0
- /package/esm/{groupsFilter → groupsFilterRaw}/stateReducer/stateReducer.js +0 -0
- /package/esm/{groupsFilter → groupsFilterRaw}/stateReducer/stateReducerHelper.d.ts +0 -0
- /package/esm/{groupsFilter → groupsFilterRaw}/stateReducer/stateReducerHelper.js +0 -0
- /package/esm/{groupsFilter → groupsFilterRaw}/uiStateReducer/uiStateAction.d.ts +0 -0
- /package/esm/{groupsFilter → groupsFilterRaw}/uiStateReducer/uiStateActionType.d.ts +0 -0
- /package/esm/{groupsFilter → groupsFilterRaw}/uiStateReducer/uiStateActionType.js +0 -0
- /package/esm/{groupsFilter → groupsFilterRaw}/uiStateReducer/uiStateReducer.d.ts +0 -0
- /package/esm/{groupsFilter → groupsFilterRaw}/uiStateReducer/uiStateReducer.js +0 -0
- /package/esm/{range → rangeRaw/utils}/rangeHelper.js +0 -0
- /package/esm/{timePicker → timePickerRaw}/components/timeSelect/timeSelect.d.ts +0 -0
- /package/esm/{timePicker → timePickerRaw}/components/timeSelect/timeSelect.js +0 -0
- /package/esm/{timePicker → timePickerRaw}/timePickerUtils.d.ts +0 -0
- /package/esm/{timePicker → timePickerRaw}/timePickerUtils.js +0 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { isStaticElement } from "./isStaticElement";
|
|
2
|
+
import { applyGridPropsOneColumn } from "./applyGridPropsOneColumn";
|
|
3
|
+
import { applyGridPropsTwoColumns } from "./applyGridPropsTwoColumns/applyGridPropsTwoColumns";
|
|
4
|
+
import { applyGridPropsStatic } from "./applyGridPropsStatic";
|
|
5
|
+
export const getComponentsWithClasses = (components, columns) => {
|
|
6
|
+
let nonStaticIndex = 0;
|
|
7
|
+
const result = [];
|
|
8
|
+
components.forEach((child, indx) => {
|
|
9
|
+
if (isStaticElement(child)) {
|
|
10
|
+
applyGridPropsStatic(child, indx, columns, result);
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
if (columns === 1) {
|
|
14
|
+
applyGridPropsOneColumn(child, indx, result);
|
|
15
|
+
nonStaticIndex++;
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
applyGridPropsTwoColumns(child, indx, result, nonStaticIndex);
|
|
19
|
+
nonStaticIndex++;
|
|
20
|
+
return;
|
|
21
|
+
});
|
|
22
|
+
return result;
|
|
23
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { JSXElementConstructor, ReactElement } from "react";
|
|
2
|
+
import { IZenFormLayoutItem, IZenGridItem } from "../../commonHelpers/zenComponent";
|
|
3
|
+
export declare const DEFAULT_SUPPORTED_COMPONENTS: JSXElementConstructor<unknown>[];
|
|
4
|
+
export declare const getFilteredComponents: (child: ReactElement) => ReactElement<IZenGridItem & IZenFormLayoutItem> | null;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Banner } from "../../banner/banner";
|
|
2
|
+
import { isCustomFormSection } from "./isCustomFormSection";
|
|
3
|
+
import { FormSection } from "../../formSection/formSection";
|
|
4
|
+
import { LayoutColumn } from "../components/layoutColumn/layoutColum";
|
|
5
|
+
import { FormLayoutColumnTitle } from "../components/columnTitle/formLayoutColumnTitle";
|
|
6
|
+
export const DEFAULT_SUPPORTED_COMPONENTS = [
|
|
7
|
+
Banner,
|
|
8
|
+
FormSection,
|
|
9
|
+
LayoutColumn,
|
|
10
|
+
FormLayoutColumnTitle
|
|
11
|
+
];
|
|
12
|
+
export const getFilteredComponents = (child) => {
|
|
13
|
+
// for React common components ("div", "span", etc.)
|
|
14
|
+
if (typeof child.type === "string") {
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
17
|
+
if (DEFAULT_SUPPORTED_COMPONENTS.includes(child.type) || isCustomFormSection(child)) {
|
|
18
|
+
return child;
|
|
19
|
+
}
|
|
20
|
+
return null;
|
|
21
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { FormSection } from "../../formSection/formSection";
|
|
3
|
+
import { FormSectionInner } from "../../formSection/components/formSectionInner";
|
|
4
|
+
export const getFormSection = (child) => {
|
|
5
|
+
if (child.type === FormSectionInner || child.type === FormSection) {
|
|
6
|
+
// TODO: support only one column. Do we need to support two columns?
|
|
7
|
+
const clone = React.cloneElement(child, {
|
|
8
|
+
gridLgStart: 3,
|
|
9
|
+
gridLg: 8,
|
|
10
|
+
gridMdStart: 2,
|
|
11
|
+
gridMd: 6,
|
|
12
|
+
gridSmStart: 1,
|
|
13
|
+
gridSm: 4
|
|
14
|
+
});
|
|
15
|
+
return clone;
|
|
16
|
+
}
|
|
17
|
+
return null;
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const hasStepper = (props) => props.steps !== undefined && props.current !== undefined && !!props.setCurrent && !!props.onCancel && !!props.onSubmit;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isStaticElement: (element: React.ReactElement) => boolean;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Banner } from "../../banner/banner";
|
|
2
|
+
import { FormSection } from "../../formSection/formSection";
|
|
3
|
+
import { FormStepper } from "../../formStepper/formStepper";
|
|
4
|
+
import { FormStepperButtons } from "../../formStepperButtons/formStepperButtons";
|
|
5
|
+
import { FormLayoutSecondary } from "../components/formLayoutSecondary";
|
|
6
|
+
import { FormLayoutTitle } from "../components/formLayoutTitle";
|
|
7
|
+
export const isStaticElement = (element) => {
|
|
8
|
+
if (element.type === FormSection && element.props.type === "modal") {
|
|
9
|
+
return true;
|
|
10
|
+
}
|
|
11
|
+
if (element.type === FormStepper || element.type === FormStepperButtons || element.type === Banner || element.type === FormLayoutTitle || element.type === FormLayoutSecondary) {
|
|
12
|
+
return true;
|
|
13
|
+
}
|
|
14
|
+
return false;
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const FormSectionActions = ({ children }) => children;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const FormSectionAdditional = ({ children }) => children;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { IZenComponentProps } from "../../commonHelpers/zenComponent";
|
|
3
|
+
import "./additionalSection.less";
|
|
4
|
+
export interface IAdditionalSectionProps extends IZenComponentProps {
|
|
5
|
+
title: string;
|
|
6
|
+
titleOn?: string;
|
|
7
|
+
secondary?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const AdditionalSection: FC<IAdditionalSectionProps>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback, useId, useMemo, useState } from "react";
|
|
3
|
+
import { Accordion } from "../../accordion/accordion";
|
|
4
|
+
import { FormSectionInner } from "./formSectionInner";
|
|
5
|
+
import { useLabelAlign } from "../../formGroup/hooks/useLabelAlign";
|
|
6
|
+
import { useMode } from "../../formGroup/hooks/useMode";
|
|
7
|
+
export const AdditionalSection = ({ children, className, title, titleOn, secondary }) => {
|
|
8
|
+
const [opened, setOpened] = useState([]);
|
|
9
|
+
const labelAlign = useLabelAlign();
|
|
10
|
+
const id = useId();
|
|
11
|
+
const currentTitle = opened.includes(id) ? (titleOn || title) : title;
|
|
12
|
+
const mode = useMode();
|
|
13
|
+
const accordionItems = useMemo(() => [
|
|
14
|
+
{
|
|
15
|
+
id,
|
|
16
|
+
title: currentTitle,
|
|
17
|
+
content: _jsxs(_Fragment, { children: [secondary && _jsx("div", { className: "zen-additional-sub-section__secondary", children: secondary }), _jsx(FormSectionInner, { className: "zen-additional-sub-section__content", mode: mode, labelAlign: labelAlign, children: children })] })
|
|
18
|
+
}
|
|
19
|
+
], [id, currentTitle, secondary, labelAlign, children, mode]);
|
|
20
|
+
const switchAccordion = useCallback((itemId) => {
|
|
21
|
+
if (itemId === opened[0]) {
|
|
22
|
+
setOpened([]);
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
setOpened([itemId]);
|
|
26
|
+
}, [opened, setOpened]);
|
|
27
|
+
return (_jsx(Accordion, { className: `zen-additional-sub-section ${className || ""}`, activeIds: opened, onItemClick: switchAccordion, data: accordionItems }));
|
|
28
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { CardButton } from "../../card/components/cardButton/cardButton";
|
|
14
|
+
export const FormSectionButton = (_a) => {
|
|
15
|
+
var props = __rest(_a, []);
|
|
16
|
+
return _jsx(CardButton, Object.assign({}, props));
|
|
17
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
13
|
+
import { Children } from "react";
|
|
14
|
+
import { Card } from "../../card/card";
|
|
15
|
+
import React from "react";
|
|
16
|
+
import { CardButton } from "../../card/components/cardButton/cardButton";
|
|
17
|
+
import { FormSection } from "../formSection";
|
|
18
|
+
import { FormSectionInner } from "./formSectionInner";
|
|
19
|
+
import { useLoading } from "../hooks/useLoading";
|
|
20
|
+
import { classNames } from "../../commonHelpers/classNames/classNames";
|
|
21
|
+
import { useError } from "../hooks/useError";
|
|
22
|
+
import { FormLayoutTitle } from "../../formLayout/components/formLayoutTitle";
|
|
23
|
+
export const FormSectionCard = (_a) => {
|
|
24
|
+
var { labelAlign, header, children, className, title, mode, isError, isLoading, retry } = _a, cardProps = __rest(_a, ["labelAlign", "header", "children", "className", "title", "mode", "isError", "isLoading", "retry"]);
|
|
25
|
+
const actions = React.Children.toArray(children).filter((child) => child.type === FormSection.Actions);
|
|
26
|
+
const additional = React.Children.toArray(children).filter((child) => child.type === FormSection.Additional);
|
|
27
|
+
const content = React.Children.toArray(children).filter((child) => child.type !== FormSection.Actions && child.type !== FormSection.Additional);
|
|
28
|
+
const cardButtons = actions.length > 0 ? Children.toArray(actions[0].props.children)
|
|
29
|
+
.map((child, indx) => {
|
|
30
|
+
if (React.isValidElement(child) && child.type === FormSection.Button) {
|
|
31
|
+
const element = child;
|
|
32
|
+
return _jsx(CardButton, Object.assign({}, element.props), element.props.id || indx);
|
|
33
|
+
}
|
|
34
|
+
return child;
|
|
35
|
+
}) : [];
|
|
36
|
+
// TODO: tests
|
|
37
|
+
// 1. if both loading and error is true
|
|
38
|
+
// 2. loading only
|
|
39
|
+
// 3. error only
|
|
40
|
+
// 4. none
|
|
41
|
+
const { loadingContent } = useLoading({ isLoading, type: "card" });
|
|
42
|
+
const { error } = useError({ isError, isLoading, retry, type: "card" });
|
|
43
|
+
const contentClasses = classNames(["zen-form-section-card-content", loadingContent ? "zen-form-section-card-content--loading" : ""]);
|
|
44
|
+
// TODO: tests for header
|
|
45
|
+
return _jsxs(_Fragment, { children: [header && _jsx(FormLayoutTitle, { className: className, value: header || "" }), _jsxs(Card, Object.assign({ size: "L", autoHeight: true, title: title, className: className, cardContentClasses: contentClasses }, cardProps, { children: [actions.length > 0 && _jsx(Card.Actions, { children: cardButtons }), loadingContent || error || _jsxs(FormSectionInner, { mode: mode, labelAlign: labelAlign, children: [content, additional.length > 0 && _jsx(FormSectionInner.Additional, Object.assign({}, additional[0].props, { children: additional[0].props.children }))] })] }))] });
|
|
46
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { FormSection } from "../formSection";
|
|
4
|
+
import { FormSectionDefaultTitle } from "./formSectionDefaultTitle";
|
|
5
|
+
import { FormSectionInner } from "./formSectionInner";
|
|
6
|
+
export const FormSectionDefault = ({ labelAlign, children, className, mode, type, title }) => {
|
|
7
|
+
const content = React.Children.toArray(children).filter((child) => child.type !== FormSection.Actions && child.type !== FormSection.Additional);
|
|
8
|
+
const additional = React.Children.toArray(children).filter((child) => child.type === FormSection.Additional);
|
|
9
|
+
return _jsxs(FormSectionInner, { type: type, labelAlign: labelAlign, className: className, mode: mode, children: [title && _jsx(FormSectionDefaultTitle, { grid: 1284, children: title }), content, additional.length > 0 && (() => {
|
|
10
|
+
const additionalProps = additional[0].props;
|
|
11
|
+
return _jsx(FormSectionInner.Additional, Object.assign({}, additionalProps, { children: additionalProps.children }));
|
|
12
|
+
})()] });
|
|
13
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { IZenGridItem, IZenComponentProps } from "../../commonHelpers/zenComponent";
|
|
3
|
+
import "./formSectionDefaultTitle.less";
|
|
4
|
+
interface IFormSectionDefaultTitle extends IZenGridItem, IZenComponentProps {
|
|
5
|
+
}
|
|
6
|
+
export declare const FormSectionDefaultTitle: FC<IFormSectionDefaultTitle>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { classNames } from "../../commonHelpers/classNames/classNames";
|
|
3
|
+
export const FormSectionDefaultTitle = ({ children, className }) => _jsx("div", { className: classNames(["zen-form-section-default-title", className || ""]), children: children });
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import "./formSectionInner.less";
|
|
3
|
+
import { IAdditionalSectionProps } from "./additionalSection";
|
|
4
|
+
import { IFormContentProps } from "../types";
|
|
5
|
+
export declare const FormSectionInner: FC<IFormContentProps> & {
|
|
6
|
+
Additional: FC<IAdditionalSectionProps>;
|
|
7
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { useMemo, useContext, Children, cloneElement } from "react";
|
|
14
|
+
import { useGridClasses } from "../../gridLayout/hooks/useGridClasses";
|
|
15
|
+
import { GridLayoutContext } from "../../gridLayout/utils/gridLayoutProvider";
|
|
16
|
+
import { FormSectionProvider } from "../utils/formSectionProvider";
|
|
17
|
+
import { getClassNames } from "../utils/getClassName";
|
|
18
|
+
import { AdditionalSection } from "./additionalSection";
|
|
19
|
+
import { FORM_SECTION } from "../types";
|
|
20
|
+
import { useColumns } from "../../formLayout/hooks/useColumns";
|
|
21
|
+
import { FormGroup } from "../../formGroup/formGroup";
|
|
22
|
+
// TODO: on/off labels?
|
|
23
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention, react/prop-types
|
|
24
|
+
export const FormSectionInner = (_a) => {
|
|
25
|
+
var { children, type, className, labelAlign = "left", mode = "edit" } = _a, rest = __rest(_a, ["children", "type", "className", "labelAlign", "mode"]);
|
|
26
|
+
const childrenArr = useMemo(() => [], []);
|
|
27
|
+
const { screen } = useContext(GridLayoutContext);
|
|
28
|
+
const columns = useColumns();
|
|
29
|
+
const componentClassNames = useMemo(() => getClassNames(columns, screen, type, className), [columns, screen, type, className]);
|
|
30
|
+
const childrenInitial = Children.map(children, (child) => {
|
|
31
|
+
if (!child) {
|
|
32
|
+
return null;
|
|
33
|
+
}
|
|
34
|
+
if (child.type === AdditionalSection) {
|
|
35
|
+
// TODO: should only be rendered at the end of the form section?
|
|
36
|
+
const additionalSection = cloneElement(child, Object.assign(Object.assign({}, rest), { gridLgStart: 1, gridMdStart: 1, gridSmStart: 1,
|
|
37
|
+
// TODO: is this reliable?
|
|
38
|
+
gridLg: 12 }));
|
|
39
|
+
return additionalSection;
|
|
40
|
+
}
|
|
41
|
+
if (child.type === FormGroup) {
|
|
42
|
+
return child;
|
|
43
|
+
}
|
|
44
|
+
const component = _jsx(FormGroup, { children: child });
|
|
45
|
+
return component;
|
|
46
|
+
});
|
|
47
|
+
useGridClasses(childrenInitial, childrenArr, {
|
|
48
|
+
desktop: columns === 1 ? 8 : 6,
|
|
49
|
+
tablet: columns === 1 ? 6 : 4,
|
|
50
|
+
mobile: 4
|
|
51
|
+
});
|
|
52
|
+
return _jsx(FormSectionProvider, { labelAlign: labelAlign, mode: mode, type: type, children: _jsx("div", { className: componentClassNames, children: childrenArr }) });
|
|
53
|
+
};
|
|
54
|
+
FormSectionInner.Additional = AdditionalSection;
|
|
55
|
+
FormSectionInner.displayName = FORM_SECTION;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Modal } from "../../modal/modal";
|
|
3
|
+
import { FormSectionDefault } from "./formSectionDefault";
|
|
4
|
+
// TODO: readonly mode?
|
|
5
|
+
export const FormSectionModal = (props) => _jsxs(Modal, { className: "zen-form-section-modal", isOpen: props.isOpen, onClose: props.onClose, title: props.title, children: [_jsx(FormSectionDefault, { type: "modal", labelAlign: props.labelAlign, className: props.className, children: props.children }), _jsx(Modal.SecondaryButton, { onClick: props.onCancel, children: "Cancel" }), _jsx(Modal.PrimaryButton, { onClick: props.onConfirm, children: "Confirm" })] });
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { IFormSectionActions } from "./components/actions";
|
|
3
|
+
import { IFormSectionAdditional } from "./components/additional";
|
|
4
|
+
import { IFormSectionButton } from "./components/formSectionButton";
|
|
5
|
+
import { TFormSection } from "./types";
|
|
6
|
+
export declare const FormSection: FC<TFormSection> & {
|
|
7
|
+
Actions: FC<IFormSectionActions>;
|
|
8
|
+
} & {
|
|
9
|
+
Additional: FC<IFormSectionAdditional>;
|
|
10
|
+
} & {
|
|
11
|
+
Button: FC<IFormSectionButton>;
|
|
12
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { FormSectionActions } from "./components/actions";
|
|
14
|
+
import { FormSectionAdditional } from "./components/additional";
|
|
15
|
+
import { FormSectionButton } from "./components/formSectionButton";
|
|
16
|
+
import { FormSectionDefault } from "./components/formSectionDefault";
|
|
17
|
+
import { FormSectionCard } from "./components/formSectionCard";
|
|
18
|
+
import { FormSectionModal } from "./components/formSectionModal";
|
|
19
|
+
import { isModalSection } from "./utils/isModalSection";
|
|
20
|
+
import { useMode } from "../formGroup/hooks/useMode";
|
|
21
|
+
import { useSectionType } from "../formGroup/hooks/useSectionType";
|
|
22
|
+
import { useLabelAlign } from "../formGroup/hooks/useLabelAlign";
|
|
23
|
+
// TODO: modal interface
|
|
24
|
+
// isOpen, onClose, title, actions?
|
|
25
|
+
// TODO: separate component?
|
|
26
|
+
// TODO: add exclusive interface
|
|
27
|
+
// TODO: better types for 3 elements?
|
|
28
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
29
|
+
export const FormSection = (props) => {
|
|
30
|
+
const mode = useMode(props.mode);
|
|
31
|
+
const type = useSectionType(props.type);
|
|
32
|
+
const labelAlign = useLabelAlign(props.labelAlign);
|
|
33
|
+
if (type === "card") {
|
|
34
|
+
const _a = props, { className } = _a, cardProps = __rest(_a, ["className"]);
|
|
35
|
+
return _jsx(FormSectionCard, Object.assign({ mode: mode, labelAlign: labelAlign, className: className }, cardProps, { children: props.children }));
|
|
36
|
+
}
|
|
37
|
+
if (isModalSection(props)) {
|
|
38
|
+
return _jsx(FormSectionModal, { type: "modal", isOpen: props.isOpen, onClose: props.onClose, title: props.title, labelAlign: labelAlign, className: props.className, onConfirm: props.onConfirm, onCancel: props.onCancel, children: props.children });
|
|
39
|
+
}
|
|
40
|
+
return _jsx(FormSectionDefault, { mode: mode, title: props.title, labelAlign: labelAlign, className: props.className, children: props.children });
|
|
41
|
+
};
|
|
42
|
+
FormSection.Actions = FormSectionActions;
|
|
43
|
+
FormSection.Additional = FormSectionAdditional;
|
|
44
|
+
FormSection.Button = FormSectionButton;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ILoadingBase } from "../../commonHelpers/loading";
|
|
2
|
+
import { TFormSection } from "../types";
|
|
3
|
+
export declare const useError: (props: Partial<TFormSection> & Partial<ILoadingBase>) => {
|
|
4
|
+
error: null;
|
|
5
|
+
} | {
|
|
6
|
+
error: import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Banner } from "../../banner/banner";
|
|
3
|
+
import { Card } from "../../card/card";
|
|
4
|
+
import { hasErrorProps } from "../../commonHelpers/loading";
|
|
5
|
+
import { useLanguage } from "../../utils/localization/useLanguage";
|
|
6
|
+
export const useError = (props) => {
|
|
7
|
+
const { translate } = useLanguage();
|
|
8
|
+
if (!hasErrorProps(props)) {
|
|
9
|
+
return {
|
|
10
|
+
error: null
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
const action = props.retry ? {
|
|
14
|
+
text: translate("Reload"),
|
|
15
|
+
onClick: props.retry
|
|
16
|
+
} : undefined;
|
|
17
|
+
if (props.type === "card") {
|
|
18
|
+
return {
|
|
19
|
+
// TODO: add translations
|
|
20
|
+
error: _jsx(Card.Content, { children: _jsx(Banner, { className: "zen-form-section-error-banner", action: action, multiline: true, header: translate("Failed to load section"), type: "error", children: translate("Please reload this section to try again. If the issue persists, contact Support.") }) })
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
return {
|
|
24
|
+
// TODO: add translations
|
|
25
|
+
// TODO: should be support it for non-card?
|
|
26
|
+
error: _jsx(Banner, { multiline: true, header: translate("Failed to load section"), type: "error", children: translate("Please reload this section to try again. If the issue persists, contact Support.") })
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { Card } from "../../card/card";
|
|
3
|
+
import { Skeleton } from "../../skeleton/skeleton";
|
|
4
|
+
export const useLoading = (props) => {
|
|
5
|
+
if (!props.isLoading) {
|
|
6
|
+
return {
|
|
7
|
+
loadingContent: null
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
if (props.type === "card") {
|
|
11
|
+
return {
|
|
12
|
+
loadingContent: _jsxs(Card.Content, { children: [_jsx(Skeleton, { height: 32 }), _jsx(Skeleton, { height: 32 }), _jsx(Skeleton, { height: 32 })] })
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
loadingContent: _jsxs(_Fragment, { children: [_jsx(Skeleton, { height: 32 }), _jsx(Skeleton, { height: 32 }), _jsx(Skeleton, { height: 32 })] })
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ICard } from "../card/card";
|
|
2
|
+
import { ILoadingBase } from "../commonHelpers/loading";
|
|
3
|
+
import { Exclusive } from "../commonHelpers/types/exclusive";
|
|
4
|
+
import { IZenComponentProps, IZenFormLayoutItem } from "../commonHelpers/zenComponent";
|
|
5
|
+
import { TLabelAlign } from "../formField/formField";
|
|
6
|
+
import { TFormLayoutMode } from "../formLayout/types";
|
|
7
|
+
export declare const FORM_SECTION = "FORM_SECTION";
|
|
8
|
+
export type TFormSectionMode = TFormLayoutMode;
|
|
9
|
+
export interface IFormContentProps extends IZenComponentProps {
|
|
10
|
+
labelAlign?: TLabelAlign;
|
|
11
|
+
mode?: TFormSectionMode;
|
|
12
|
+
type?: TFormSectionType;
|
|
13
|
+
}
|
|
14
|
+
export type TFormSectionType = "inline" | "card" | "modal" | undefined;
|
|
15
|
+
export interface IFormSectionBase extends IZenComponentProps, IZenFormLayoutItem, ILoadingBase {
|
|
16
|
+
labelAlign?: TLabelAlign;
|
|
17
|
+
type?: TFormSectionType;
|
|
18
|
+
mode?: TFormSectionMode;
|
|
19
|
+
title?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface IFormSectionDefault extends IFormSectionBase {
|
|
22
|
+
type?: "inline" | undefined;
|
|
23
|
+
}
|
|
24
|
+
export interface IFormSectionCard extends IFormSectionBase, Pick<ICard, "icon" | "secondary" | "tooltip" | "link"> {
|
|
25
|
+
type?: "card" | undefined;
|
|
26
|
+
header?: string;
|
|
27
|
+
}
|
|
28
|
+
export interface IFormSectionModal extends IFormSectionBase {
|
|
29
|
+
type?: "modal" | undefined;
|
|
30
|
+
isOpen: boolean;
|
|
31
|
+
onClose: () => void;
|
|
32
|
+
onConfirm: () => void;
|
|
33
|
+
onCancel: () => void;
|
|
34
|
+
}
|
|
35
|
+
export type TFormSection = Exclusive<IFormSectionCard, IFormSectionBase> & Exclusive<IFormSectionModal, IFormSectionBase> & Exclusive<IFormSectionDefault, IFormSectionBase>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const FORM_SECTION = "FORM_SECTION";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FC, PropsWithChildren } from "react";
|
|
2
|
+
import { TFormSectionMode, TFormSectionType } from "../types";
|
|
3
|
+
import { TLabelAlign } from "../../formField/formField";
|
|
4
|
+
export interface IFormSectionProviderProps extends PropsWithChildren {
|
|
5
|
+
isFormSection?: boolean;
|
|
6
|
+
labelAlign?: TLabelAlign;
|
|
7
|
+
mode?: TFormSectionMode;
|
|
8
|
+
type: TFormSectionType;
|
|
9
|
+
}
|
|
10
|
+
export declare const FormSectionContext: import("react").Context<IFormSectionProviderProps>;
|
|
11
|
+
export declare const FormSectionProvider: FC<IFormSectionProviderProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { createContext } from "react";
|
|
3
|
+
export const FormSectionContext = createContext({
|
|
4
|
+
labelAlign: undefined,
|
|
5
|
+
mode: undefined,
|
|
6
|
+
type: undefined,
|
|
7
|
+
isFormSection: false
|
|
8
|
+
});
|
|
9
|
+
export const FormSectionProvider = ({ children, labelAlign = "left", mode = undefined, type = "card" }) => _jsx(FormSectionContext.Provider, { value: { labelAlign, mode, type, isFormSection: true }, children: children });
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { TFormLayoutColumns } from "../../formLayout/types";
|
|
2
|
+
import { TGridScreen } from "../../gridLayout/utils/gridLayoutProvider";
|
|
3
|
+
import { TFormSectionType } from "../types";
|
|
4
|
+
export declare const getClassNames: (columns: TFormLayoutColumns, screen: TGridScreen, type: TFormSectionType, className?: string) => string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { classNames } from "../../commonHelpers/classNames/classNames";
|
|
2
|
+
export const getClassNames = (columns, screen, type, className = "") => classNames([
|
|
3
|
+
"zen-form-section",
|
|
4
|
+
`zen-form-section--${screen}`,
|
|
5
|
+
className,
|
|
6
|
+
columns === 1 ? "zen-form-section--one-column" : "zen-form-section--two-column",
|
|
7
|
+
type === "modal" ? "zen-form-section--modal" : ""
|
|
8
|
+
]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const isFormSection = (element) => !!(element && typeof element === "object" && "type" in element && element.type.displayName === "FORM_SECTION");
|
|
@@ -35,5 +35,5 @@ export const FormStepper = ({ steps, onStepClicked, className = "", current, err
|
|
|
35
35
|
const isOptionalStep = isCompactMode && ((_a = adjustedSteps[activeStepIndex]) === null || _a === void 0 ? void 0 : _a.optional);
|
|
36
36
|
const stepNumber = current === STEPPER_LAST_STEP ? adjustedSteps.length : activeStepIndex + 1;
|
|
37
37
|
const stepLabel = current === STEPPER_LAST_STEP ? (_b = adjustedSteps[activeStepIndex - 1]) === null || _b === void 0 ? void 0 : _b.label : (_c = adjustedSteps[activeStepIndex]) === null || _c === void 0 ? void 0 : _c.label;
|
|
38
|
-
return _jsxs("div", { className: `zen-form-stepper ${className}`, role: "tablist", children: [_jsx("div", { className: "zen-form-stepper__steps", children: adjustedSteps.map((step, indx) => (_jsx(FormStep, { id: step.id, label: step.label, isFirst: step.id === steps[0].id, value: indx + 1, onClick: isStepperNonClickable ? false : () => onStepClickedHandler(step.id), isError: errors === null || errors === void 0 ? void 0 : errors.includes(step.id), isCurrent: current === step.id, isComplete: indx < activeStepIndex, optional: step.optional, compact: isCompactMode }, step.id))) }), isCompactMode && _jsxs("label", { className: "zen-form-stepper__mobile-labels", children: [_jsx("span", { className: "zen-form-stepper__mobile-counter", children: translate("Step {0} of {1}").replace("{0}", String(stepNumber)).replace("{1}", String(adjustedSteps.length)) }), _jsx("span", { title: stepLabel, className: "zen-form-stepper__mobile-label", children: stepLabel }), _jsx("span", { title: translate("Optional"), className: `zen-form-stepper__mobile-secondary-label ${isOptionalStep ? "zen-form-stepper__mobile-secondary-label--visible" : ""}`, children: translate("Optional") })] })] });
|
|
38
|
+
return _jsxs("div", { className: `zen-form-stepper ${isMobile ? "zen-form-stepper--mobile" : ""} ${className}`, role: "tablist", children: [_jsx("div", { className: "zen-form-stepper__steps", children: adjustedSteps.map((step, indx) => (_jsx(FormStep, { id: step.id, label: step.label, isFirst: step.id === steps[0].id, value: indx + 1, onClick: isStepperNonClickable ? false : () => onStepClickedHandler(step.id), isError: errors === null || errors === void 0 ? void 0 : errors.includes(step.id), isCurrent: current === step.id, isComplete: indx < activeStepIndex, optional: step.optional, compact: isCompactMode }, step.id))) }), isCompactMode && _jsxs("label", { className: "zen-form-stepper__mobile-labels", children: [_jsx("span", { className: "zen-form-stepper__mobile-counter", children: translate("Step {0} of {1}").replace("{0}", String(stepNumber)).replace("{1}", String(adjustedSteps.length)) }), _jsx("span", { title: stepLabel, className: "zen-form-stepper__mobile-label", children: stepLabel }), _jsx("span", { title: translate("Optional"), className: `zen-form-stepper__mobile-secondary-label ${isOptionalStep ? "zen-form-stepper__mobile-secondary-label--visible" : ""}`, children: translate("Optional") })] })] });
|
|
39
39
|
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IFormStepper } from "../formStepper";
|
|
2
|
+
import { IFormStepperButtons } from "../../formStepperButtons/formStepperButtons";
|
|
3
|
+
export interface IUseFormStepperProps extends Omit<IFormStepper, "current" | "setCurrent">, Omit<IFormStepperButtons, "current" | "setCurrent"> {
|
|
4
|
+
initialStep?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const useFormStepper: ({ initialStep, steps, ...rest }: IUseFormStepperProps) => IFormStepper & IFormStepperButtons;
|