@dnb/eufemia 10.73.2 → 10.74.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -0
- package/cjs/components/autocomplete/Autocomplete.js +7 -4
- package/cjs/components/autocomplete/Autocomplete.js.map +1 -1
- package/cjs/components/autocomplete/AutocompleteDocs.d.ts +289 -3
- package/cjs/components/autocomplete/AutocompleteDocs.js +2 -2
- package/cjs/components/autocomplete/AutocompleteDocs.js.map +1 -1
- package/cjs/components/button/style/dnb-button.css +1 -0
- package/cjs/components/button/style/dnb-button.min.css +1 -1
- package/cjs/components/button/style/dnb-button.scss +1 -0
- package/cjs/components/checkbox/Checkbox.d.ts +9 -1
- package/cjs/components/checkbox/Checkbox.js +59 -34
- package/cjs/components/checkbox/Checkbox.js.map +1 -1
- package/cjs/components/checkbox/CheckboxDocs.js +6 -1
- package/cjs/components/checkbox/CheckboxDocs.js.map +1 -1
- package/cjs/components/date-picker/DatePicker.d.ts +4 -0
- package/cjs/components/date-picker/DatePicker.js +4 -3
- package/cjs/components/date-picker/DatePicker.js.map +1 -1
- package/cjs/components/date-picker/DatePickerCalendar.d.ts +2 -16
- package/cjs/components/date-picker/DatePickerCalendar.js +27 -86
- package/cjs/components/date-picker/DatePickerCalendar.js.map +1 -1
- package/cjs/components/date-picker/DatePickerCalendarNavigator.d.ts +37 -0
- package/cjs/components/date-picker/DatePickerCalendarNavigator.js +173 -0
- package/cjs/components/date-picker/DatePickerCalendarNavigator.js.map +1 -0
- package/cjs/components/date-picker/DatePickerContext.d.ts +3 -0
- package/cjs/components/date-picker/DatePickerContext.js.map +1 -1
- package/cjs/components/date-picker/DatePickerDocs.js +6 -1
- package/cjs/components/date-picker/DatePickerDocs.js.map +1 -1
- package/cjs/components/date-picker/DatePickerFooter.js +20 -17
- package/cjs/components/date-picker/DatePickerFooter.js.map +1 -1
- package/cjs/components/date-picker/DatePickerProvider.js +7 -0
- package/cjs/components/date-picker/DatePickerProvider.js.map +1 -1
- package/cjs/components/date-picker/DatePickerRange.js +2 -28
- package/cjs/components/date-picker/DatePickerRange.js.map +1 -1
- package/cjs/components/date-picker/hooks/useSubmittedDates.d.ts +7 -0
- package/cjs/components/date-picker/hooks/useSubmittedDates.js +19 -0
- package/cjs/components/date-picker/hooks/useSubmittedDates.js.map +1 -0
- package/cjs/components/date-picker/style/dnb-date-picker.css +1 -1
- package/cjs/components/date-picker/style/dnb-date-picker.min.css +1 -1
- package/cjs/components/date-picker/style/dnb-date-picker.scss +1 -1
- package/cjs/components/date-picker/style/themes/dnb-date-picker-theme-ui.css +17 -0
- package/cjs/components/date-picker/style/themes/dnb-date-picker-theme-ui.min.css +1 -1
- package/cjs/components/date-picker/style/themes/dnb-date-picker-theme-ui.scss +19 -0
- package/cjs/components/drawer/Drawer.js +1 -0
- package/cjs/components/drawer/Drawer.js.map +1 -1
- package/cjs/components/dropdown/Dropdown.js +6 -4
- package/cjs/components/dropdown/Dropdown.js.map +1 -1
- package/cjs/components/dropdown/DropdownDocs.d.ts +179 -3
- package/cjs/components/dropdown/DropdownDocs.js.map +1 -1
- package/cjs/components/heading/HeadingHelpers.js +9 -5
- package/cjs/components/heading/HeadingHelpers.js.map +1 -1
- package/cjs/components/icon/Icon.d.ts +2 -2
- package/cjs/components/input-masked/InputMaskedDocs.js +1 -1
- package/cjs/components/input-masked/InputMaskedDocs.js.map +1 -1
- package/cjs/components/input-masked/InputMaskedHooks.d.ts +1 -0
- package/cjs/components/input-masked/InputMaskedHooks.js +38 -6
- package/cjs/components/input-masked/InputMaskedHooks.js.map +1 -1
- package/cjs/components/input-masked/InputMaskedUtils.js +5 -4
- package/cjs/components/input-masked/InputMaskedUtils.js.map +1 -1
- package/cjs/components/number-format/NumberUtils.js +6 -4
- package/cjs/components/number-format/NumberUtils.js.map +1 -1
- package/cjs/components/switch/SwitchDocs.js +2 -2
- package/cjs/components/switch/SwitchDocs.js.map +1 -1
- package/cjs/extensions/forms/DataContext/Context.d.ts +1 -1
- package/cjs/extensions/forms/DataContext/Context.js.map +1 -1
- package/cjs/extensions/forms/DataContext/Provider/Provider.js +9 -0
- package/cjs/extensions/forms/DataContext/Provider/Provider.js.map +1 -1
- package/cjs/extensions/forms/Field/Boolean/Boolean.d.ts +1 -0
- package/cjs/extensions/forms/Field/Boolean/Boolean.js.map +1 -1
- package/cjs/extensions/forms/Field/Boolean/BooleanDocs.d.ts +1 -0
- package/cjs/extensions/forms/Field/Boolean/BooleanDocs.js +8 -1
- package/cjs/extensions/forms/Field/Boolean/BooleanDocs.js.map +1 -1
- package/cjs/extensions/forms/Field/Date/Date.d.ts +1 -1
- package/cjs/extensions/forms/Field/Date/Date.js +1 -1
- package/cjs/extensions/forms/Field/Date/Date.js.map +1 -1
- package/cjs/extensions/forms/Field/Expiry/Expiry.js.map +1 -1
- package/cjs/extensions/forms/Field/Number/NumberDocs.js +1 -1
- package/cjs/extensions/forms/Field/Number/NumberDocs.js.map +1 -1
- package/cjs/extensions/forms/Field/Provider/useFieldProvider.d.ts +3 -3
- package/cjs/extensions/forms/Field/SelectCountry/SelectCountryDocs.js +2 -2
- package/cjs/extensions/forms/Field/SelectCountry/SelectCountryDocs.js.map +1 -1
- package/cjs/extensions/forms/Field/SelectCurrency/SelectCurrencyDocs.js +2 -2
- package/cjs/extensions/forms/Field/SelectCurrency/SelectCurrencyDocs.js.map +1 -1
- package/cjs/extensions/forms/Field/Selection/Selection.d.ts +2 -0
- package/cjs/extensions/forms/Field/Selection/Selection.js +10 -9
- package/cjs/extensions/forms/Field/Selection/Selection.js.map +1 -1
- package/cjs/extensions/forms/Field/Toggle/Toggle.d.ts +7 -0
- package/cjs/extensions/forms/Field/Toggle/Toggle.js +24 -8
- package/cjs/extensions/forms/Field/Toggle/Toggle.js.map +1 -1
- package/cjs/extensions/forms/Field/Toggle/ToggleDocs.d.ts +1 -0
- package/cjs/extensions/forms/Field/Toggle/ToggleDocs.js +8 -1
- package/cjs/extensions/forms/Field/Toggle/ToggleDocs.js.map +1 -1
- package/cjs/extensions/forms/Form/Isolation/IsolatedContainer.d.ts +4 -0
- package/cjs/extensions/forms/Form/Isolation/IsolatedContainer.js +64 -0
- package/cjs/extensions/forms/Form/Isolation/IsolatedContainer.js.map +1 -0
- package/cjs/extensions/forms/Form/Isolation/Isolation.d.ts +16 -0
- package/cjs/extensions/forms/Form/Isolation/Isolation.js +39 -14
- package/cjs/extensions/forms/Form/Isolation/Isolation.js.map +1 -1
- package/cjs/extensions/forms/Form/Isolation/IsolationCommitButton.js +1 -1
- package/cjs/extensions/forms/Form/Isolation/IsolationCommitButton.js.map +1 -1
- package/cjs/extensions/forms/Form/Isolation/IsolationContext.d.ts +12 -0
- package/cjs/extensions/forms/Form/Isolation/IsolationContext.js +11 -0
- package/cjs/extensions/forms/Form/Isolation/IsolationContext.js.map +1 -0
- package/cjs/extensions/forms/Form/Isolation/IsolationDataReference.d.ts +9 -0
- package/cjs/extensions/forms/Form/Isolation/IsolationDataReference.js +31 -0
- package/cjs/extensions/forms/Form/Isolation/IsolationDataReference.js.map +1 -0
- package/cjs/extensions/forms/Form/Isolation/IsolationDocs.js +15 -0
- package/cjs/extensions/forms/Form/Isolation/IsolationDocs.js.map +1 -1
- package/cjs/extensions/forms/Form/Isolation/IsolationResetButton.d.ts +7 -0
- package/cjs/extensions/forms/Form/Isolation/IsolationResetButton.js +112 -0
- package/cjs/extensions/forms/Form/Isolation/IsolationResetButton.js.map +1 -0
- package/cjs/extensions/forms/Form/Isolation/useDataContextSnapshot.d.ts +7 -0
- package/cjs/extensions/forms/Form/Isolation/useDataContextSnapshot.js +58 -0
- package/cjs/extensions/forms/Form/Isolation/useDataContextSnapshot.js.map +1 -0
- package/cjs/extensions/forms/Form/Isolation/useHandleStatus.d.ts +9 -0
- package/cjs/extensions/forms/Form/Isolation/useHandleStatus.js +57 -0
- package/cjs/extensions/forms/Form/Isolation/useHandleStatus.js.map +1 -0
- package/cjs/extensions/forms/{Iterate/EditContainer → Form/Isolation}/useHasContentChanged.js +11 -9
- package/cjs/extensions/forms/Form/Isolation/useHasContentChanged.js.map +1 -0
- package/cjs/extensions/forms/Form/Snapshot/Snapshot.d.ts +2 -1
- package/cjs/extensions/forms/Form/Snapshot/Snapshot.js.map +1 -1
- package/cjs/extensions/forms/Iterate/EditContainer/ResetButton.js +1 -1
- package/cjs/extensions/forms/Iterate/EditContainer/ResetButton.js.map +1 -1
- package/cjs/extensions/forms/Iterate/EditContainer/index.d.ts +1 -1
- package/cjs/extensions/forms/Iterate/EditContainer/index.js +1 -1
- package/cjs/extensions/forms/Iterate/EditContainer/index.js.map +1 -1
- package/cjs/extensions/forms/Iterate/PushContainer/PushContainer.d.ts +7 -0
- package/cjs/extensions/forms/Iterate/PushContainer/PushContainer.js +15 -56
- package/cjs/extensions/forms/Iterate/PushContainer/PushContainer.js.map +1 -1
- package/cjs/extensions/forms/Iterate/PushContainer/PushContainerDocs.js +2 -2
- package/cjs/extensions/forms/Iterate/PushContainer/PushContainerDocs.js.map +1 -1
- package/cjs/extensions/forms/constants/locales/en-GB.d.ts +1 -1
- package/cjs/extensions/forms/constants/locales/en-GB.js +3 -3
- package/cjs/extensions/forms/constants/locales/en-GB.js.map +1 -1
- package/cjs/extensions/forms/constants/locales/en-US.d.ts +1 -1
- package/cjs/extensions/forms/constants/locales/index.d.ts +2 -2
- package/cjs/extensions/forms/constants/locales/nb-NO.d.ts +1 -1
- package/cjs/extensions/forms/constants/locales/nb-NO.js +3 -3
- package/cjs/extensions/forms/constants/locales/nb-NO.js.map +1 -1
- package/cjs/extensions/forms/constants/locales/sv-SE.d.ts +1 -1
- package/cjs/extensions/forms/constants/locales/sv-SE.js +3 -3
- package/cjs/extensions/forms/constants/locales/sv-SE.js.map +1 -1
- package/cjs/extensions/forms/hooks/useDataContext.js +5 -3
- package/cjs/extensions/forms/hooks/useDataContext.js.map +1 -1
- package/cjs/extensions/forms/hooks/useSnapshot.js +17 -14
- package/cjs/extensions/forms/hooks/useSnapshot.js.map +1 -1
- package/cjs/fragments/drawer-list/DrawerList.d.ts +176 -224
- package/cjs/fragments/drawer-list/DrawerList.js +70 -175
- package/cjs/fragments/drawer-list/DrawerList.js.map +1 -1
- package/cjs/fragments/drawer-list/DrawerListContext.d.ts +27 -2
- package/cjs/fragments/drawer-list/DrawerListContext.js.map +1 -1
- package/cjs/fragments/drawer-list/DrawerListDocs.d.ts +211 -4
- package/cjs/fragments/drawer-list/DrawerListDocs.js +2 -2
- package/cjs/fragments/drawer-list/DrawerListDocs.js.map +1 -1
- package/cjs/fragments/drawer-list/DrawerListHelpers.d.ts +85 -89
- package/cjs/fragments/drawer-list/DrawerListHelpers.js +52 -58
- package/cjs/fragments/drawer-list/DrawerListHelpers.js.map +1 -1
- package/cjs/fragments/drawer-list/DrawerListItem.d.ts +30 -0
- package/cjs/fragments/drawer-list/DrawerListItem.js +106 -0
- package/cjs/fragments/drawer-list/DrawerListItem.js.map +1 -0
- package/cjs/fragments/drawer-list/DrawerListPortal.d.ts +20 -30
- package/cjs/fragments/drawer-list/DrawerListPortal.js +93 -125
- package/cjs/fragments/drawer-list/DrawerListPortal.js.map +1 -1
- package/cjs/fragments/drawer-list/DrawerListProvider.d.ts +217 -11
- package/cjs/fragments/drawer-list/DrawerListProvider.js +11 -18
- package/cjs/fragments/drawer-list/DrawerListProvider.js.map +1 -1
- package/cjs/shared/Eufemia.d.ts +1 -1
- package/cjs/shared/Eufemia.js +2 -2
- package/cjs/shared/Eufemia.js.map +1 -1
- package/cjs/shared/component-helper.d.ts +45 -48
- package/cjs/shared/component-helper.js +72 -201
- package/cjs/shared/component-helper.js.map +1 -1
- package/cjs/shared/helpers/withCamelCaseProps.d.ts +4 -5
- package/cjs/shared/helpers/withCamelCaseProps.js +7 -2
- package/cjs/shared/helpers/withCamelCaseProps.js.map +1 -1
- package/cjs/shared/legacy/component-helper-legacy.d.ts +19 -0
- package/cjs/shared/legacy/component-helper-legacy.js +202 -0
- package/cjs/shared/legacy/component-helper-legacy.js.map +1 -0
- package/cjs/shared/locales/en-GB.d.ts +1 -0
- package/cjs/shared/locales/en-GB.js +1 -0
- package/cjs/shared/locales/en-GB.js.map +1 -1
- package/cjs/shared/locales/en-US.js.map +1 -1
- package/cjs/shared/locales/index.d.ts +2 -0
- package/cjs/shared/locales/nb-NO.d.ts +1 -0
- package/cjs/shared/locales/nb-NO.js +2 -1
- package/cjs/shared/locales/nb-NO.js.map +1 -1
- package/cjs/shared/locales/sv-SE.d.ts +1 -0
- package/cjs/shared/locales/sv-SE.js +1 -0
- package/cjs/shared/locales/sv-SE.js.map +1 -1
- package/cjs/style/core/scopes.scss +1 -1
- package/cjs/style/dnb-ui-basis.css +1 -1
- package/cjs/style/dnb-ui-basis.min.css +1 -1
- package/cjs/style/dnb-ui-body.css +1 -1
- package/cjs/style/dnb-ui-body.min.css +1 -1
- package/cjs/style/dnb-ui-components.css +2 -1
- package/cjs/style/dnb-ui-components.min.css +1 -1
- package/cjs/style/dnb-ui-core.css +1 -1
- package/cjs/style/dnb-ui-core.min.css +1 -1
- package/cjs/style/themes/theme-eiendom/eiendom-theme-components.css +19 -1
- package/cjs/style/themes/theme-eiendom/eiendom-theme-components.min.css +2 -2
- package/cjs/style/themes/theme-sbanken/sbanken-theme-components.css +19 -1
- package/cjs/style/themes/theme-sbanken/sbanken-theme-components.min.css +2 -2
- package/cjs/style/themes/theme-ui/ui-theme-components.css +19 -1
- package/cjs/style/themes/theme-ui/ui-theme-components.min.css +2 -2
- package/components/autocomplete/Autocomplete.js +6 -3
- package/components/autocomplete/Autocomplete.js.map +1 -1
- package/components/autocomplete/AutocompleteDocs.d.ts +289 -3
- package/components/autocomplete/AutocompleteDocs.js +1 -1
- package/components/autocomplete/AutocompleteDocs.js.map +1 -1
- package/components/button/style/dnb-button.css +1 -0
- package/components/button/style/dnb-button.min.css +1 -1
- package/components/button/style/dnb-button.scss +1 -0
- package/components/checkbox/Checkbox.d.ts +9 -1
- package/components/checkbox/Checkbox.js +60 -35
- package/components/checkbox/Checkbox.js.map +1 -1
- package/components/checkbox/CheckboxDocs.js +6 -1
- package/components/checkbox/CheckboxDocs.js.map +1 -1
- package/components/date-picker/DatePicker.d.ts +4 -0
- package/components/date-picker/DatePicker.js +4 -3
- package/components/date-picker/DatePicker.js.map +1 -1
- package/components/date-picker/DatePickerCalendar.d.ts +2 -16
- package/components/date-picker/DatePickerCalendar.js +27 -86
- package/components/date-picker/DatePickerCalendar.js.map +1 -1
- package/components/date-picker/DatePickerCalendarNavigator.d.ts +37 -0
- package/components/date-picker/DatePickerCalendarNavigator.js +162 -0
- package/components/date-picker/DatePickerCalendarNavigator.js.map +1 -0
- package/components/date-picker/DatePickerContext.d.ts +3 -0
- package/components/date-picker/DatePickerContext.js.map +1 -1
- package/components/date-picker/DatePickerDocs.js +6 -1
- package/components/date-picker/DatePickerDocs.js.map +1 -1
- package/components/date-picker/DatePickerFooter.js +20 -17
- package/components/date-picker/DatePickerFooter.js.map +1 -1
- package/components/date-picker/DatePickerProvider.js +7 -0
- package/components/date-picker/DatePickerProvider.js.map +1 -1
- package/components/date-picker/DatePickerRange.js +2 -28
- package/components/date-picker/DatePickerRange.js.map +1 -1
- package/components/date-picker/hooks/useSubmittedDates.d.ts +7 -0
- package/components/date-picker/hooks/useSubmittedDates.js +14 -0
- package/components/date-picker/hooks/useSubmittedDates.js.map +1 -0
- package/components/date-picker/style/dnb-date-picker.css +1 -1
- package/components/date-picker/style/dnb-date-picker.min.css +1 -1
- package/components/date-picker/style/dnb-date-picker.scss +1 -1
- package/components/date-picker/style/themes/dnb-date-picker-theme-ui.css +17 -0
- package/components/date-picker/style/themes/dnb-date-picker-theme-ui.min.css +1 -1
- package/components/date-picker/style/themes/dnb-date-picker-theme-ui.scss +19 -0
- package/components/drawer/Drawer.js +1 -0
- package/components/drawer/Drawer.js.map +1 -1
- package/components/dropdown/Dropdown.js +6 -4
- package/components/dropdown/Dropdown.js.map +1 -1
- package/components/dropdown/DropdownDocs.d.ts +179 -3
- package/components/dropdown/DropdownDocs.js.map +1 -1
- package/components/heading/HeadingHelpers.js +9 -5
- package/components/heading/HeadingHelpers.js.map +1 -1
- package/components/icon/Icon.d.ts +2 -2
- package/components/input-masked/InputMaskedDocs.js +1 -1
- package/components/input-masked/InputMaskedDocs.js.map +1 -1
- package/components/input-masked/InputMaskedHooks.d.ts +1 -0
- package/components/input-masked/InputMaskedHooks.js +39 -7
- package/components/input-masked/InputMaskedHooks.js.map +1 -1
- package/components/input-masked/InputMaskedUtils.js +6 -5
- package/components/input-masked/InputMaskedUtils.js.map +1 -1
- package/components/number-format/NumberUtils.js +5 -4
- package/components/number-format/NumberUtils.js.map +1 -1
- package/components/switch/SwitchDocs.js +2 -2
- package/components/switch/SwitchDocs.js.map +1 -1
- package/es/components/autocomplete/Autocomplete.js +6 -3
- package/es/components/autocomplete/Autocomplete.js.map +1 -1
- package/es/components/autocomplete/AutocompleteDocs.d.ts +289 -3
- package/es/components/autocomplete/AutocompleteDocs.js +1 -1
- package/es/components/autocomplete/AutocompleteDocs.js.map +1 -1
- package/es/components/button/style/dnb-button.css +1 -0
- package/es/components/button/style/dnb-button.min.css +1 -1
- package/es/components/button/style/dnb-button.scss +1 -0
- package/es/components/checkbox/Checkbox.d.ts +9 -1
- package/es/components/checkbox/Checkbox.js +60 -35
- package/es/components/checkbox/Checkbox.js.map +1 -1
- package/es/components/checkbox/CheckboxDocs.js +6 -1
- package/es/components/checkbox/CheckboxDocs.js.map +1 -1
- package/es/components/date-picker/DatePicker.d.ts +4 -0
- package/es/components/date-picker/DatePicker.js +4 -3
- package/es/components/date-picker/DatePicker.js.map +1 -1
- package/es/components/date-picker/DatePickerCalendar.d.ts +2 -16
- package/es/components/date-picker/DatePickerCalendar.js +23 -80
- package/es/components/date-picker/DatePickerCalendar.js.map +1 -1
- package/es/components/date-picker/DatePickerCalendarNavigator.d.ts +37 -0
- package/es/components/date-picker/DatePickerCalendarNavigator.js +158 -0
- package/es/components/date-picker/DatePickerCalendarNavigator.js.map +1 -0
- package/es/components/date-picker/DatePickerContext.d.ts +3 -0
- package/es/components/date-picker/DatePickerContext.js.map +1 -1
- package/es/components/date-picker/DatePickerDocs.js +6 -1
- package/es/components/date-picker/DatePickerDocs.js.map +1 -1
- package/es/components/date-picker/DatePickerFooter.js +20 -17
- package/es/components/date-picker/DatePickerFooter.js.map +1 -1
- package/es/components/date-picker/DatePickerProvider.js +7 -0
- package/es/components/date-picker/DatePickerProvider.js.map +1 -1
- package/es/components/date-picker/DatePickerRange.js +2 -27
- package/es/components/date-picker/DatePickerRange.js.map +1 -1
- package/es/components/date-picker/hooks/useSubmittedDates.d.ts +7 -0
- package/es/components/date-picker/hooks/useSubmittedDates.js +14 -0
- package/es/components/date-picker/hooks/useSubmittedDates.js.map +1 -0
- package/es/components/date-picker/style/dnb-date-picker.css +1 -1
- package/es/components/date-picker/style/dnb-date-picker.min.css +1 -1
- package/es/components/date-picker/style/dnb-date-picker.scss +1 -1
- package/es/components/date-picker/style/themes/dnb-date-picker-theme-ui.css +17 -0
- package/es/components/date-picker/style/themes/dnb-date-picker-theme-ui.min.css +1 -1
- package/es/components/date-picker/style/themes/dnb-date-picker-theme-ui.scss +19 -0
- package/es/components/drawer/Drawer.js +1 -0
- package/es/components/drawer/Drawer.js.map +1 -1
- package/es/components/dropdown/Dropdown.js +6 -4
- package/es/components/dropdown/Dropdown.js.map +1 -1
- package/es/components/dropdown/DropdownDocs.d.ts +179 -3
- package/es/components/dropdown/DropdownDocs.js.map +1 -1
- package/es/components/heading/HeadingHelpers.js +9 -5
- package/es/components/heading/HeadingHelpers.js.map +1 -1
- package/es/components/icon/Icon.d.ts +2 -2
- package/es/components/input-masked/InputMaskedDocs.js +1 -1
- package/es/components/input-masked/InputMaskedDocs.js.map +1 -1
- package/es/components/input-masked/InputMaskedHooks.d.ts +1 -0
- package/es/components/input-masked/InputMaskedHooks.js +39 -7
- package/es/components/input-masked/InputMaskedHooks.js.map +1 -1
- package/es/components/input-masked/InputMaskedUtils.js +6 -5
- package/es/components/input-masked/InputMaskedUtils.js.map +1 -1
- package/es/components/number-format/NumberUtils.js +5 -4
- package/es/components/number-format/NumberUtils.js.map +1 -1
- package/es/components/switch/SwitchDocs.js +2 -2
- package/es/components/switch/SwitchDocs.js.map +1 -1
- package/es/extensions/forms/DataContext/Context.d.ts +1 -1
- package/es/extensions/forms/DataContext/Context.js.map +1 -1
- package/es/extensions/forms/DataContext/Provider/Provider.js +9 -0
- package/es/extensions/forms/DataContext/Provider/Provider.js.map +1 -1
- package/es/extensions/forms/Field/Boolean/Boolean.d.ts +1 -0
- package/es/extensions/forms/Field/Boolean/Boolean.js.map +1 -1
- package/es/extensions/forms/Field/Boolean/BooleanDocs.d.ts +1 -0
- package/es/extensions/forms/Field/Boolean/BooleanDocs.js +7 -0
- package/es/extensions/forms/Field/Boolean/BooleanDocs.js.map +1 -1
- package/es/extensions/forms/Field/Date/Date.d.ts +1 -1
- package/es/extensions/forms/Field/Date/Date.js +1 -1
- package/es/extensions/forms/Field/Date/Date.js.map +1 -1
- package/es/extensions/forms/Field/Expiry/Expiry.js.map +1 -1
- package/es/extensions/forms/Field/Number/NumberDocs.js +1 -1
- package/es/extensions/forms/Field/Number/NumberDocs.js.map +1 -1
- package/es/extensions/forms/Field/Provider/useFieldProvider.d.ts +3 -3
- package/es/extensions/forms/Field/SelectCountry/SelectCountryDocs.js +3 -3
- package/es/extensions/forms/Field/SelectCountry/SelectCountryDocs.js.map +1 -1
- package/es/extensions/forms/Field/SelectCurrency/SelectCurrencyDocs.js +3 -3
- package/es/extensions/forms/Field/SelectCurrency/SelectCurrencyDocs.js.map +1 -1
- package/es/extensions/forms/Field/Selection/Selection.d.ts +2 -0
- package/es/extensions/forms/Field/Selection/Selection.js +9 -8
- package/es/extensions/forms/Field/Selection/Selection.js.map +1 -1
- package/es/extensions/forms/Field/Toggle/Toggle.d.ts +7 -0
- package/es/extensions/forms/Field/Toggle/Toggle.js +24 -6
- package/es/extensions/forms/Field/Toggle/Toggle.js.map +1 -1
- package/es/extensions/forms/Field/Toggle/ToggleDocs.d.ts +1 -0
- package/es/extensions/forms/Field/Toggle/ToggleDocs.js +7 -0
- package/es/extensions/forms/Field/Toggle/ToggleDocs.js.map +1 -1
- package/es/extensions/forms/Form/Isolation/IsolatedContainer.d.ts +4 -0
- package/es/extensions/forms/Form/Isolation/IsolatedContainer.js +53 -0
- package/es/extensions/forms/Form/Isolation/IsolatedContainer.js.map +1 -0
- package/es/extensions/forms/Form/Isolation/Isolation.d.ts +16 -0
- package/es/extensions/forms/Form/Isolation/Isolation.js +40 -14
- package/es/extensions/forms/Form/Isolation/Isolation.js.map +1 -1
- package/es/extensions/forms/Form/Isolation/IsolationCommitButton.js +1 -1
- package/es/extensions/forms/Form/Isolation/IsolationCommitButton.js.map +1 -1
- package/es/extensions/forms/Form/Isolation/IsolationContext.d.ts +12 -0
- package/es/extensions/forms/Form/Isolation/IsolationContext.js +6 -0
- package/es/extensions/forms/Form/Isolation/IsolationContext.js.map +1 -0
- package/es/extensions/forms/Form/Isolation/IsolationDataReference.d.ts +9 -0
- package/es/extensions/forms/Form/Isolation/IsolationDataReference.js +25 -0
- package/es/extensions/forms/Form/Isolation/IsolationDataReference.js.map +1 -0
- package/es/extensions/forms/Form/Isolation/IsolationDocs.js +15 -0
- package/es/extensions/forms/Form/Isolation/IsolationDocs.js.map +1 -1
- package/es/extensions/forms/Form/Isolation/IsolationResetButton.d.ts +7 -0
- package/es/extensions/forms/Form/Isolation/IsolationResetButton.js +99 -0
- package/es/extensions/forms/Form/Isolation/IsolationResetButton.js.map +1 -0
- package/es/extensions/forms/Form/Isolation/useDataContextSnapshot.d.ts +7 -0
- package/es/extensions/forms/Form/Isolation/useDataContextSnapshot.js +50 -0
- package/es/extensions/forms/Form/Isolation/useDataContextSnapshot.js.map +1 -0
- package/es/extensions/forms/Form/Isolation/useHandleStatus.d.ts +9 -0
- package/es/extensions/forms/Form/Isolation/useHandleStatus.js +48 -0
- package/es/extensions/forms/Form/Isolation/useHandleStatus.js.map +1 -0
- package/es/extensions/forms/{Iterate/EditContainer → Form/Isolation}/useHasContentChanged.js +12 -10
- package/es/extensions/forms/Form/Isolation/useHasContentChanged.js.map +1 -0
- package/es/extensions/forms/Form/Snapshot/Snapshot.d.ts +2 -1
- package/es/extensions/forms/Form/Snapshot/Snapshot.js.map +1 -1
- package/es/extensions/forms/Iterate/EditContainer/ResetButton.js +1 -1
- package/es/extensions/forms/Iterate/EditContainer/ResetButton.js.map +1 -1
- package/es/extensions/forms/Iterate/EditContainer/index.d.ts +1 -1
- package/es/extensions/forms/Iterate/EditContainer/index.js +1 -1
- package/es/extensions/forms/Iterate/EditContainer/index.js.map +1 -1
- package/es/extensions/forms/Iterate/PushContainer/PushContainer.d.ts +7 -0
- package/es/extensions/forms/Iterate/PushContainer/PushContainer.js +16 -55
- package/es/extensions/forms/Iterate/PushContainer/PushContainer.js.map +1 -1
- package/es/extensions/forms/Iterate/PushContainer/PushContainerDocs.js +2 -2
- package/es/extensions/forms/Iterate/PushContainer/PushContainerDocs.js.map +1 -1
- package/es/extensions/forms/constants/locales/en-GB.d.ts +1 -1
- package/es/extensions/forms/constants/locales/en-GB.js +3 -3
- package/es/extensions/forms/constants/locales/en-GB.js.map +1 -1
- package/es/extensions/forms/constants/locales/en-US.d.ts +1 -1
- package/es/extensions/forms/constants/locales/index.d.ts +2 -2
- package/es/extensions/forms/constants/locales/nb-NO.d.ts +1 -1
- package/es/extensions/forms/constants/locales/nb-NO.js +3 -3
- package/es/extensions/forms/constants/locales/nb-NO.js.map +1 -1
- package/es/extensions/forms/constants/locales/sv-SE.d.ts +1 -1
- package/es/extensions/forms/constants/locales/sv-SE.js +3 -3
- package/es/extensions/forms/constants/locales/sv-SE.js.map +1 -1
- package/es/extensions/forms/hooks/useDataContext.js +5 -3
- package/es/extensions/forms/hooks/useDataContext.js.map +1 -1
- package/es/extensions/forms/hooks/useSnapshot.js +18 -15
- package/es/extensions/forms/hooks/useSnapshot.js.map +1 -1
- package/es/fragments/drawer-list/DrawerList.d.ts +176 -224
- package/es/fragments/drawer-list/DrawerList.js +72 -173
- package/es/fragments/drawer-list/DrawerList.js.map +1 -1
- package/es/fragments/drawer-list/DrawerListContext.d.ts +27 -2
- package/es/fragments/drawer-list/DrawerListContext.js.map +1 -1
- package/es/fragments/drawer-list/DrawerListDocs.d.ts +211 -4
- package/es/fragments/drawer-list/DrawerListDocs.js +2 -2
- package/es/fragments/drawer-list/DrawerListDocs.js.map +1 -1
- package/es/fragments/drawer-list/DrawerListHelpers.d.ts +85 -89
- package/es/fragments/drawer-list/DrawerListHelpers.js +45 -54
- package/es/fragments/drawer-list/DrawerListHelpers.js.map +1 -1
- package/es/fragments/drawer-list/DrawerListItem.d.ts +30 -0
- package/es/fragments/drawer-list/DrawerListItem.js +90 -0
- package/es/fragments/drawer-list/DrawerListItem.js.map +1 -0
- package/es/fragments/drawer-list/DrawerListPortal.d.ts +20 -30
- package/es/fragments/drawer-list/DrawerListPortal.js +88 -120
- package/es/fragments/drawer-list/DrawerListPortal.js.map +1 -1
- package/es/fragments/drawer-list/DrawerListProvider.d.ts +217 -11
- package/es/fragments/drawer-list/DrawerListProvider.js +33 -19
- package/es/fragments/drawer-list/DrawerListProvider.js.map +1 -1
- package/es/shared/Eufemia.d.ts +1 -1
- package/es/shared/Eufemia.js +2 -2
- package/es/shared/Eufemia.js.map +1 -1
- package/es/shared/component-helper.d.ts +45 -48
- package/es/shared/component-helper.js +20 -183
- package/es/shared/component-helper.js.map +1 -1
- package/es/shared/helpers/withCamelCaseProps.d.ts +4 -5
- package/es/shared/helpers/withCamelCaseProps.js +7 -2
- package/es/shared/helpers/withCamelCaseProps.js.map +1 -1
- package/es/shared/legacy/component-helper-legacy.d.ts +19 -0
- package/es/shared/legacy/component-helper-legacy.js +180 -0
- package/es/shared/legacy/component-helper-legacy.js.map +1 -0
- package/es/shared/locales/en-GB.d.ts +1 -0
- package/es/shared/locales/en-GB.js +1 -0
- package/es/shared/locales/en-GB.js.map +1 -1
- package/es/shared/locales/en-US.js.map +1 -1
- package/es/shared/locales/index.d.ts +2 -0
- package/es/shared/locales/nb-NO.d.ts +1 -0
- package/es/shared/locales/nb-NO.js +2 -1
- package/es/shared/locales/nb-NO.js.map +1 -1
- package/es/shared/locales/sv-SE.d.ts +1 -0
- package/es/shared/locales/sv-SE.js +1 -0
- package/es/shared/locales/sv-SE.js.map +1 -1
- package/es/style/core/scopes.scss +1 -1
- package/es/style/dnb-ui-basis.css +1 -1
- package/es/style/dnb-ui-basis.min.css +1 -1
- package/es/style/dnb-ui-body.css +1 -1
- package/es/style/dnb-ui-body.min.css +1 -1
- package/es/style/dnb-ui-components.css +2 -1
- package/es/style/dnb-ui-components.min.css +1 -1
- package/es/style/dnb-ui-core.css +1 -1
- package/es/style/dnb-ui-core.min.css +1 -1
- package/es/style/themes/theme-eiendom/eiendom-theme-components.css +19 -1
- package/es/style/themes/theme-eiendom/eiendom-theme-components.min.css +2 -2
- package/es/style/themes/theme-sbanken/sbanken-theme-components.css +19 -1
- package/es/style/themes/theme-sbanken/sbanken-theme-components.min.css +2 -2
- package/es/style/themes/theme-ui/ui-theme-components.css +19 -1
- package/es/style/themes/theme-ui/ui-theme-components.min.css +2 -2
- package/esm/dnb-ui-basis.min.mjs +1 -1
- package/esm/dnb-ui-components.min.mjs +1 -1
- package/esm/dnb-ui-elements.min.mjs +1 -1
- package/esm/dnb-ui-extensions.min.mjs +2 -2
- package/esm/dnb-ui-lib.min.mjs +1 -1
- package/extensions/forms/DataContext/Context.d.ts +1 -1
- package/extensions/forms/DataContext/Context.js.map +1 -1
- package/extensions/forms/DataContext/Provider/Provider.js +9 -0
- package/extensions/forms/DataContext/Provider/Provider.js.map +1 -1
- package/extensions/forms/Field/Boolean/Boolean.d.ts +1 -0
- package/extensions/forms/Field/Boolean/Boolean.js.map +1 -1
- package/extensions/forms/Field/Boolean/BooleanDocs.d.ts +1 -0
- package/extensions/forms/Field/Boolean/BooleanDocs.js +7 -0
- package/extensions/forms/Field/Boolean/BooleanDocs.js.map +1 -1
- package/extensions/forms/Field/Date/Date.d.ts +1 -1
- package/extensions/forms/Field/Date/Date.js +1 -1
- package/extensions/forms/Field/Date/Date.js.map +1 -1
- package/extensions/forms/Field/Expiry/Expiry.js.map +1 -1
- package/extensions/forms/Field/Number/NumberDocs.js +1 -1
- package/extensions/forms/Field/Number/NumberDocs.js.map +1 -1
- package/extensions/forms/Field/Provider/useFieldProvider.d.ts +3 -3
- package/extensions/forms/Field/SelectCountry/SelectCountryDocs.js +3 -3
- package/extensions/forms/Field/SelectCountry/SelectCountryDocs.js.map +1 -1
- package/extensions/forms/Field/SelectCurrency/SelectCurrencyDocs.js +3 -3
- package/extensions/forms/Field/SelectCurrency/SelectCurrencyDocs.js.map +1 -1
- package/extensions/forms/Field/Selection/Selection.d.ts +2 -0
- package/extensions/forms/Field/Selection/Selection.js +10 -9
- package/extensions/forms/Field/Selection/Selection.js.map +1 -1
- package/extensions/forms/Field/Toggle/Toggle.d.ts +7 -0
- package/extensions/forms/Field/Toggle/Toggle.js +26 -9
- package/extensions/forms/Field/Toggle/Toggle.js.map +1 -1
- package/extensions/forms/Field/Toggle/ToggleDocs.d.ts +1 -0
- package/extensions/forms/Field/Toggle/ToggleDocs.js +7 -0
- package/extensions/forms/Field/Toggle/ToggleDocs.js.map +1 -1
- package/extensions/forms/Form/Isolation/IsolatedContainer.d.ts +4 -0
- package/extensions/forms/Form/Isolation/IsolatedContainer.js +54 -0
- package/extensions/forms/Form/Isolation/IsolatedContainer.js.map +1 -0
- package/extensions/forms/Form/Isolation/Isolation.d.ts +16 -0
- package/extensions/forms/Form/Isolation/Isolation.js +40 -15
- package/extensions/forms/Form/Isolation/Isolation.js.map +1 -1
- package/extensions/forms/Form/Isolation/IsolationCommitButton.js +1 -1
- package/extensions/forms/Form/Isolation/IsolationCommitButton.js.map +1 -1
- package/extensions/forms/Form/Isolation/IsolationContext.d.ts +12 -0
- package/extensions/forms/Form/Isolation/IsolationContext.js +6 -0
- package/extensions/forms/Form/Isolation/IsolationContext.js.map +1 -0
- package/extensions/forms/Form/Isolation/IsolationDataReference.d.ts +9 -0
- package/extensions/forms/Form/Isolation/IsolationDataReference.js +25 -0
- package/extensions/forms/Form/Isolation/IsolationDataReference.js.map +1 -0
- package/extensions/forms/Form/Isolation/IsolationDocs.js +15 -0
- package/extensions/forms/Form/Isolation/IsolationDocs.js.map +1 -1
- package/extensions/forms/Form/Isolation/IsolationResetButton.d.ts +7 -0
- package/extensions/forms/Form/Isolation/IsolationResetButton.js +100 -0
- package/extensions/forms/Form/Isolation/IsolationResetButton.js.map +1 -0
- package/extensions/forms/Form/Isolation/useDataContextSnapshot.d.ts +7 -0
- package/extensions/forms/Form/Isolation/useDataContextSnapshot.js +52 -0
- package/extensions/forms/Form/Isolation/useDataContextSnapshot.js.map +1 -0
- package/extensions/forms/Form/Isolation/useHandleStatus.d.ts +9 -0
- package/extensions/forms/Form/Isolation/useHandleStatus.js +51 -0
- package/extensions/forms/Form/Isolation/useHandleStatus.js.map +1 -0
- package/extensions/forms/{Iterate/EditContainer → Form/Isolation}/useHasContentChanged.js +12 -10
- package/extensions/forms/Form/Isolation/useHasContentChanged.js.map +1 -0
- package/extensions/forms/Form/Snapshot/Snapshot.d.ts +2 -1
- package/extensions/forms/Form/Snapshot/Snapshot.js.map +1 -1
- package/extensions/forms/Iterate/EditContainer/ResetButton.js +1 -1
- package/extensions/forms/Iterate/EditContainer/ResetButton.js.map +1 -1
- package/extensions/forms/Iterate/EditContainer/index.d.ts +1 -1
- package/extensions/forms/Iterate/EditContainer/index.js +1 -1
- package/extensions/forms/Iterate/EditContainer/index.js.map +1 -1
- package/extensions/forms/Iterate/PushContainer/PushContainer.d.ts +7 -0
- package/extensions/forms/Iterate/PushContainer/PushContainer.js +16 -57
- package/extensions/forms/Iterate/PushContainer/PushContainer.js.map +1 -1
- package/extensions/forms/Iterate/PushContainer/PushContainerDocs.js +2 -2
- package/extensions/forms/Iterate/PushContainer/PushContainerDocs.js.map +1 -1
- package/extensions/forms/constants/locales/en-GB.d.ts +1 -1
- package/extensions/forms/constants/locales/en-GB.js +3 -3
- package/extensions/forms/constants/locales/en-GB.js.map +1 -1
- package/extensions/forms/constants/locales/en-US.d.ts +1 -1
- package/extensions/forms/constants/locales/index.d.ts +2 -2
- package/extensions/forms/constants/locales/nb-NO.d.ts +1 -1
- package/extensions/forms/constants/locales/nb-NO.js +3 -3
- package/extensions/forms/constants/locales/nb-NO.js.map +1 -1
- package/extensions/forms/constants/locales/sv-SE.d.ts +1 -1
- package/extensions/forms/constants/locales/sv-SE.js +3 -3
- package/extensions/forms/constants/locales/sv-SE.js.map +1 -1
- package/extensions/forms/hooks/useDataContext.js +5 -3
- package/extensions/forms/hooks/useDataContext.js.map +1 -1
- package/extensions/forms/hooks/useSnapshot.js +18 -15
- package/extensions/forms/hooks/useSnapshot.js.map +1 -1
- package/fragments/drawer-list/DrawerList.d.ts +176 -224
- package/fragments/drawer-list/DrawerList.js +71 -175
- package/fragments/drawer-list/DrawerList.js.map +1 -1
- package/fragments/drawer-list/DrawerListContext.d.ts +27 -2
- package/fragments/drawer-list/DrawerListContext.js.map +1 -1
- package/fragments/drawer-list/DrawerListDocs.d.ts +211 -4
- package/fragments/drawer-list/DrawerListDocs.js +2 -2
- package/fragments/drawer-list/DrawerListDocs.js.map +1 -1
- package/fragments/drawer-list/DrawerListHelpers.d.ts +85 -89
- package/fragments/drawer-list/DrawerListHelpers.js +45 -53
- package/fragments/drawer-list/DrawerListHelpers.js.map +1 -1
- package/fragments/drawer-list/DrawerListItem.d.ts +30 -0
- package/fragments/drawer-list/DrawerListItem.js +91 -0
- package/fragments/drawer-list/DrawerListItem.js.map +1 -0
- package/fragments/drawer-list/DrawerListPortal.d.ts +20 -30
- package/fragments/drawer-list/DrawerListPortal.js +91 -121
- package/fragments/drawer-list/DrawerListPortal.js.map +1 -1
- package/fragments/drawer-list/DrawerListProvider.d.ts +217 -11
- package/fragments/drawer-list/DrawerListProvider.js +12 -19
- package/fragments/drawer-list/DrawerListProvider.js.map +1 -1
- package/package.json +1 -1
- package/shared/Eufemia.d.ts +1 -1
- package/shared/Eufemia.js +2 -2
- package/shared/Eufemia.js.map +1 -1
- package/shared/component-helper.d.ts +45 -48
- package/shared/component-helper.js +23 -189
- package/shared/component-helper.js.map +1 -1
- package/shared/helpers/withCamelCaseProps.d.ts +4 -5
- package/shared/helpers/withCamelCaseProps.js +7 -2
- package/shared/helpers/withCamelCaseProps.js.map +1 -1
- package/shared/legacy/component-helper-legacy.d.ts +19 -0
- package/shared/legacy/component-helper-legacy.js +185 -0
- package/shared/legacy/component-helper-legacy.js.map +1 -0
- package/shared/locales/en-GB.d.ts +1 -0
- package/shared/locales/en-GB.js +1 -0
- package/shared/locales/en-GB.js.map +1 -1
- package/shared/locales/en-US.js.map +1 -1
- package/shared/locales/index.d.ts +2 -0
- package/shared/locales/nb-NO.d.ts +1 -0
- package/shared/locales/nb-NO.js +2 -1
- package/shared/locales/nb-NO.js.map +1 -1
- package/shared/locales/sv-SE.d.ts +1 -0
- package/shared/locales/sv-SE.js +1 -0
- package/shared/locales/sv-SE.js.map +1 -1
- package/style/core/scopes.scss +1 -1
- package/style/dnb-ui-basis.css +1 -1
- package/style/dnb-ui-basis.min.css +1 -1
- package/style/dnb-ui-body.css +1 -1
- package/style/dnb-ui-body.min.css +1 -1
- package/style/dnb-ui-components.css +2 -1
- package/style/dnb-ui-components.min.css +1 -1
- package/style/dnb-ui-core.css +1 -1
- package/style/dnb-ui-core.min.css +1 -1
- package/style/themes/theme-eiendom/eiendom-theme-components.css +19 -1
- package/style/themes/theme-eiendom/eiendom-theme-components.min.css +2 -2
- package/style/themes/theme-sbanken/sbanken-theme-components.css +19 -1
- package/style/themes/theme-sbanken/sbanken-theme-components.min.css +2 -2
- package/style/themes/theme-ui/ui-theme-components.css +19 -1
- package/style/themes/theme-ui/ui-theme-components.min.css +2 -2
- package/umd/dnb-ui-basis.min.js +1 -1
- package/umd/dnb-ui-components.min.js +1 -1
- package/umd/dnb-ui-elements.min.js +1 -1
- package/umd/dnb-ui-extensions.min.js +1 -1
- package/umd/dnb-ui-lib.min.js +1 -1
- package/cjs/extensions/forms/Iterate/EditContainer/useHasContentChanged.js.map +0 -1
- package/es/extensions/forms/Iterate/EditContainer/useHasContentChanged.js.map +0 -1
- package/extensions/forms/Iterate/EditContainer/useHasContentChanged.js.map +0 -1
- /package/cjs/extensions/forms/{Iterate/EditContainer → Form/Isolation}/useHasContentChanged.d.ts +0 -0
- /package/es/extensions/forms/{Iterate/EditContainer → Form/Isolation}/useHasContentChanged.d.ts +0 -0
- /package/extensions/forms/{Iterate/EditContainer → Form/Isolation}/useHasContentChanged.d.ts +0 -0
|
@@ -1,4 +1,211 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
export declare const DrawerListProperties: {
|
|
2
|
+
'[data](#the-data-property)': {
|
|
3
|
+
doc: string;
|
|
4
|
+
type: string[];
|
|
5
|
+
status: "required";
|
|
6
|
+
};
|
|
7
|
+
value: {
|
|
8
|
+
doc: string;
|
|
9
|
+
type: string[];
|
|
10
|
+
status: "optional";
|
|
11
|
+
};
|
|
12
|
+
default_value: {
|
|
13
|
+
doc: string;
|
|
14
|
+
type: string;
|
|
15
|
+
status: "optional";
|
|
16
|
+
};
|
|
17
|
+
triangle_position: {
|
|
18
|
+
doc: string;
|
|
19
|
+
type: string;
|
|
20
|
+
status: "optional";
|
|
21
|
+
};
|
|
22
|
+
direction: {
|
|
23
|
+
doc: string;
|
|
24
|
+
type: string;
|
|
25
|
+
status: "optional";
|
|
26
|
+
};
|
|
27
|
+
label_direction: {
|
|
28
|
+
doc: string;
|
|
29
|
+
type: string;
|
|
30
|
+
status: "optional";
|
|
31
|
+
};
|
|
32
|
+
prevent_selection: {
|
|
33
|
+
doc: string;
|
|
34
|
+
type: string;
|
|
35
|
+
status: "optional";
|
|
36
|
+
};
|
|
37
|
+
focusable: {
|
|
38
|
+
doc: string;
|
|
39
|
+
type: string;
|
|
40
|
+
status: "optional";
|
|
41
|
+
};
|
|
42
|
+
prevent_close: {
|
|
43
|
+
doc: string;
|
|
44
|
+
type: string;
|
|
45
|
+
status: "optional";
|
|
46
|
+
};
|
|
47
|
+
keep_open: {
|
|
48
|
+
doc: string;
|
|
49
|
+
type: string;
|
|
50
|
+
status: "optional";
|
|
51
|
+
};
|
|
52
|
+
independent_width: {
|
|
53
|
+
doc: string;
|
|
54
|
+
type: string;
|
|
55
|
+
status: "optional";
|
|
56
|
+
};
|
|
57
|
+
fixed_position: {
|
|
58
|
+
doc: string;
|
|
59
|
+
type: string;
|
|
60
|
+
status: "optional";
|
|
61
|
+
};
|
|
62
|
+
enable_body_lock: {
|
|
63
|
+
doc: string;
|
|
64
|
+
type: string;
|
|
65
|
+
status: "optional";
|
|
66
|
+
};
|
|
67
|
+
skip_keysearch: {
|
|
68
|
+
doc: string;
|
|
69
|
+
type: string;
|
|
70
|
+
status: "optional";
|
|
71
|
+
};
|
|
72
|
+
ignore_events: {
|
|
73
|
+
doc: string;
|
|
74
|
+
type: string;
|
|
75
|
+
status: "optional";
|
|
76
|
+
};
|
|
77
|
+
align_drawer: {
|
|
78
|
+
doc: string;
|
|
79
|
+
type: string;
|
|
80
|
+
status: "optional";
|
|
81
|
+
};
|
|
82
|
+
list_class: {
|
|
83
|
+
doc: string;
|
|
84
|
+
type: string;
|
|
85
|
+
status: "optional";
|
|
86
|
+
};
|
|
87
|
+
portal_class: {
|
|
88
|
+
doc: string;
|
|
89
|
+
type: string;
|
|
90
|
+
status: "optional";
|
|
91
|
+
};
|
|
92
|
+
scrollable: {
|
|
93
|
+
doc: string;
|
|
94
|
+
type: string;
|
|
95
|
+
status: "optional";
|
|
96
|
+
};
|
|
97
|
+
no_scroll_animation: {
|
|
98
|
+
doc: string;
|
|
99
|
+
type: string;
|
|
100
|
+
status: "optional";
|
|
101
|
+
};
|
|
102
|
+
no_animation: {
|
|
103
|
+
doc: string;
|
|
104
|
+
type: string;
|
|
105
|
+
status: "optional";
|
|
106
|
+
};
|
|
107
|
+
skip_portal: {
|
|
108
|
+
doc: string;
|
|
109
|
+
type: string;
|
|
110
|
+
status: "optional";
|
|
111
|
+
};
|
|
112
|
+
min_height: {
|
|
113
|
+
doc: string;
|
|
114
|
+
type: string;
|
|
115
|
+
status: "optional";
|
|
116
|
+
};
|
|
117
|
+
max_height: {
|
|
118
|
+
doc: string;
|
|
119
|
+
type: string;
|
|
120
|
+
status: "optional";
|
|
121
|
+
};
|
|
122
|
+
page_offset: {
|
|
123
|
+
doc: string;
|
|
124
|
+
type: string;
|
|
125
|
+
status: "optional";
|
|
126
|
+
};
|
|
127
|
+
observer_element: {
|
|
128
|
+
doc: string;
|
|
129
|
+
type: string;
|
|
130
|
+
status: "optional";
|
|
131
|
+
};
|
|
132
|
+
cache_hash: {
|
|
133
|
+
doc: string;
|
|
134
|
+
type: string;
|
|
135
|
+
status: "optional";
|
|
136
|
+
};
|
|
137
|
+
wrapper_element: {
|
|
138
|
+
doc: string;
|
|
139
|
+
type: string[];
|
|
140
|
+
status: "optional";
|
|
141
|
+
};
|
|
142
|
+
options_render: {
|
|
143
|
+
doc: string;
|
|
144
|
+
type: string;
|
|
145
|
+
status: "optional";
|
|
146
|
+
};
|
|
147
|
+
'[Space](/uilib/layout/space/properties)': {
|
|
148
|
+
doc: string;
|
|
149
|
+
type: string[];
|
|
150
|
+
status: "optional";
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
export declare const DrawerListEvents: {
|
|
154
|
+
on_pre_change: {
|
|
155
|
+
doc: string;
|
|
156
|
+
type: string;
|
|
157
|
+
status: "optional";
|
|
158
|
+
};
|
|
159
|
+
on_change: {
|
|
160
|
+
doc: string;
|
|
161
|
+
type: string;
|
|
162
|
+
status: "optional";
|
|
163
|
+
};
|
|
164
|
+
on_select: {
|
|
165
|
+
doc: string;
|
|
166
|
+
type: string;
|
|
167
|
+
status: "optional";
|
|
168
|
+
};
|
|
169
|
+
on_show: {
|
|
170
|
+
doc: string;
|
|
171
|
+
type: string;
|
|
172
|
+
status: "optional";
|
|
173
|
+
};
|
|
174
|
+
on_hide: {
|
|
175
|
+
doc: string;
|
|
176
|
+
type: string;
|
|
177
|
+
status: "optional";
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
export declare const DrawerListItem: {
|
|
181
|
+
content: {
|
|
182
|
+
doc: string;
|
|
183
|
+
type: string[];
|
|
184
|
+
status: "optional";
|
|
185
|
+
};
|
|
186
|
+
disabled: {
|
|
187
|
+
doc: string;
|
|
188
|
+
type: string;
|
|
189
|
+
status: "optional";
|
|
190
|
+
};
|
|
191
|
+
selectedKey: {
|
|
192
|
+
doc: string;
|
|
193
|
+
type: string[];
|
|
194
|
+
status: "optional";
|
|
195
|
+
};
|
|
196
|
+
selected_value: {
|
|
197
|
+
doc: string;
|
|
198
|
+
type: string[];
|
|
199
|
+
status: "optional";
|
|
200
|
+
};
|
|
201
|
+
suffix_value: {
|
|
202
|
+
doc: string;
|
|
203
|
+
type: string[];
|
|
204
|
+
status: "optional";
|
|
205
|
+
};
|
|
206
|
+
selected_key: {
|
|
207
|
+
doc: string;
|
|
208
|
+
type: string[];
|
|
209
|
+
status: "deprecated";
|
|
210
|
+
};
|
|
211
|
+
};
|
|
@@ -135,8 +135,8 @@ export const DrawerListProperties = {
|
|
|
135
135
|
status: 'optional'
|
|
136
136
|
},
|
|
137
137
|
wrapper_element: {
|
|
138
|
-
doc: "Has to be an HTML Element, ideally a mother element, used to calculate sizes and distances. Also used for the 'click outside' detection. Clicking on the `wrapper_element` will not trigger an outside click.",
|
|
139
|
-
type: 'HTMLElement',
|
|
138
|
+
doc: "Has to be an HTML Element, or a selector for one, ideally a mother element, used to calculate sizes and distances. Also used for the 'click outside' detection. Clicking on the `wrapper_element` will not trigger an outside click.",
|
|
139
|
+
type: ['string', 'HTMLElement'],
|
|
140
140
|
status: 'optional'
|
|
141
141
|
},
|
|
142
142
|
options_render: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DrawerListDocs.js","names":["DrawerListProperties","doc","type","status","value","default_value","triangle_position","direction","label_direction","prevent_selection","focusable","prevent_close","keep_open","independent_width","fixed_position","enable_body_lock","skip_keysearch","ignore_events","align_drawer","list_class","portal_class","scrollable","no_scroll_animation","no_animation","skip_portal","min_height","max_height","page_offset","observer_element","cache_hash","wrapper_element","options_render","DrawerListEvents","on_pre_change","on_change","on_select","on_show","on_hide","DrawerListItem","content","disabled","selectedKey","selected_value","suffix_value","selected_key"],"sources":["../../../../src/fragments/drawer-list/DrawerListDocs.ts"],"sourcesContent":["import { PropertiesTableProps } from '../../shared/types'\n\nexport const DrawerListProperties: PropertiesTableProps = {\n '[data](#the-data-property)': {\n doc: `The data we want to fill the list with. [Details on the type of {DATA} can be found below](#the-data-property). The data can be provided as an array or object. Or as a function that returns the data (called when user opens the list).`,\n type: ['{DATA}', '() => {DATA}'],\n status: 'required',\n },\n value: {\n doc: 'Define a preselected `data` entry. In order of priority, `value` can be set to: object key (if `data` is an object), `selectedKey` prop (if `data` is an array), array index (if no `selectedKey`) or content (if `value` is a non-integer string).',\n type: ['string', 'number'],\n status: 'optional',\n },\n default_value: {\n doc: 'Define a startup value or handle a re-render without handling the state during the re-render by yourself. Defaults to `null`.',\n type: 'number',\n status: 'optional',\n },\n triangle_position: {\n doc: \"Position of the arrow icon/triangle inside the drawer-list. Set to 'left' or 'right'. Defaults to 'left' if not set.\",\n type: 'string',\n status: 'optional',\n },\n direction: {\n doc: \"Defines the direction of how the drawer-list shows the options list. Can be 'bottom' or 'top'. Defaults to 'auto'.\",\n type: 'string',\n status: 'optional',\n },\n label_direction: {\n doc: \"The direction of the label. If set to 'horizontal', the label will be positioned horizontally next to the input element. If set to 'vertical', the label will be positioned vertically above the input element.\",\n type: 'string',\n status: 'optional',\n },\n prevent_selection: {\n doc: 'If set to `true`, the DrawerList will then not make any permanent selection.',\n type: 'boolean',\n status: 'optional',\n },\n focusable: {\n doc: 'If set to `true`, the element is then focusable by assertive technologies.',\n type: 'boolean',\n status: 'optional',\n },\n prevent_close: {\n doc: 'If set to `true`, the DrawerList will not close on any events.',\n type: 'boolean',\n status: 'optional',\n },\n keep_open: {\n doc: 'If set to `true`, the DrawerList will close on outside clicks, but not on selection.',\n type: 'boolean',\n status: 'optional',\n },\n independent_width: {\n doc: 'If set to `true`, the DrawerList will handle its width and position independently of the parent/mother element.',\n type: 'boolean',\n status: 'optional',\n },\n fixed_position: {\n doc: 'If set to `true`, the DrawerList will be fixed in its scroll position by using CSS `position: fixed;`.',\n type: 'boolean',\n status: 'optional',\n },\n enable_body_lock: {\n doc: 'If set to `true`, the HTML body will get locked from scrolling when the Dropdown is open.',\n type: 'boolean',\n status: 'optional',\n },\n skip_keysearch: {\n doc: 'If set to `true`, search items by the first key will be ignored.',\n type: 'boolean',\n status: 'optional',\n },\n ignore_events: {\n doc: 'If set to `true`, all keyboard and mouse events will be ignored.',\n type: 'boolean',\n status: 'optional',\n },\n align_drawer: {\n doc: \"Use 'right' to change the options alignment direction. Makes only sense to use in combination with `prevent_selection` or `more_menu` - or if an independent width is used.\",\n type: 'string',\n status: 'optional',\n },\n list_class: {\n doc: 'Define an HTML class that will be set on the list, beside `dnb-drawer-list__list`.',\n type: 'string',\n status: 'optional',\n },\n portal_class: {\n doc: 'Define an HTML class that will be set on the DOM portal beside `dnb-drawer-list__portal__style`. Can be useful to handle e.g. a custom `z-index` in relation to a header.',\n type: 'string',\n status: 'optional',\n },\n scrollable: {\n doc: 'Defines if the options list should be scrollable (the `max-height` is set by default to `50vh`).',\n type: 'boolean',\n status: 'optional',\n },\n no_scroll_animation: {\n doc: 'To disable scrolling animation.',\n type: 'boolean',\n status: 'optional',\n },\n no_animation: {\n doc: 'To disable appear/disappear (show/hide) animation.',\n type: 'boolean',\n status: 'optional',\n },\n skip_portal: {\n doc: 'To disable the React Portal behavior.',\n type: 'boolean',\n status: 'optional',\n },\n min_height: {\n doc: 'Defines the minimum height (in `rem`) of the options list.',\n type: 'string',\n status: 'optional',\n },\n max_height: {\n doc: 'Defines the maximum height (in `rem`) of the options list.',\n type: 'string',\n status: 'optional',\n },\n page_offset: {\n doc: 'Defines the available scrollable height. If scrolling should not change the height of the drawer-list, then set it to `0` (useful if the DrawerList is used in fixed positions on contrast to a scrollable page content).',\n type: 'string',\n status: 'optional',\n },\n observer_element: {\n doc: 'Set a HTML element, either as a selector or a DOM element. Can be used to send in an element which will be used to make the direction calculation on.',\n type: 'string',\n status: 'optional',\n },\n cache_hash: {\n doc: 'Set a `cache_hash` as a string to enable internal memorizing of the list to enhance rerendering performance. Components like Autocomplete are using this because of the huge data changes due to search and reorder.',\n type: 'string',\n status: 'optional',\n },\n wrapper_element: {\n doc: \"Has to be an HTML Element, ideally a mother element, used to calculate sizes and distances. Also used for the 'click outside' detection. Clicking on the `wrapper_element` will not trigger an outside click.\",\n type: 'HTMLElement',\n status: 'optional',\n },\n options_render: {\n doc: 'Has to be a function, returning the items again. See [example](/uilib/components/fragments/drawer-list#example-usage-of-options_render). This can be used to add additional options above the actual rendered list.',\n type: 'function',\n status: 'optional',\n },\n '[Space](/uilib/layout/space/properties)': {\n doc: 'Spacing properties like `top` or `bottom` are supported.',\n type: ['string', 'object'],\n status: 'optional',\n },\n}\n\nexport const DrawerListEvents: PropertiesTableProps = {\n on_pre_change: {\n doc: 'Will be called before `on_change`, this way you can return false to prevent selection and to prevent `on_change` execution.',\n type: 'function',\n status: 'optional',\n },\n on_change: {\n doc: 'Will be called on state changes made by the user.',\n type: 'function',\n status: 'optional',\n },\n on_select: {\n doc: 'Will be called once the user focuses or selects an item by a click or keyboard navigation.',\n type: 'function',\n status: 'optional',\n },\n on_show: {\n doc: 'Will be called once the user presses the drawer-list.',\n type: 'function',\n status: 'optional',\n },\n on_hide: {\n doc: 'Will be called once the user presses the drawer-list again, or clicks somewhere else.',\n type: 'function',\n status: 'optional',\n },\n}\n\nexport const DrawerListItem: PropertiesTableProps = {\n content: {\n doc: 'Visual content in the list item',\n type: ['string', 'React.node', '(string | React.Node)[]'],\n status: 'optional',\n },\n disabled: {\n doc: 'Disables the list item from selection',\n type: 'boolean',\n status: 'optional',\n },\n selectedKey: {\n doc: 'If set, can be used instead of array index by the `value` prop',\n type: ['string', 'number'],\n status: 'optional',\n },\n selected_value: {\n doc: 'Replaces the standard value output for selected item. Only used in some implementations (Dropdown, Autocomplete).',\n type: ['string', 'React.Node'],\n status: 'optional',\n },\n suffix_value: {\n doc: 'Content placed to the right in the list item.',\n type: ['string', 'React.node'],\n status: 'optional',\n },\n selected_key: {\n doc: 'Use prop `selectedKey` instead',\n type: ['string', 'number'],\n status: 'deprecated',\n },\n}\n"],"mappings":"AAEA,OAAO,MAAMA,oBAA0C,GAAG;EACxD,4BAA4B,EAAE;IAC5BC,GAAG,EAAE,2OAA2O;IAChPC,IAAI,EAAE,CAAC,QAAQ,EAAE,cAAc,CAAC;IAChCC,MAAM,EAAE;EACV,CAAC;EACDC,KAAK,EAAE;IACLH,GAAG,EAAE,qPAAqP;IAC1PC,IAAI,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAC1BC,MAAM,EAAE;EACV,CAAC;EACDE,aAAa,EAAE;IACbJ,GAAG,EAAE,+HAA+H;IACpIC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDG,iBAAiB,EAAE;IACjBL,GAAG,EAAE,sHAAsH;IAC3HC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDI,SAAS,EAAE;IACTN,GAAG,EAAE,oHAAoH;IACzHC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDK,eAAe,EAAE;IACfP,GAAG,EAAE,iNAAiN;IACtNC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDM,iBAAiB,EAAE;IACjBR,GAAG,EAAE,8EAA8E;IACnFC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV,CAAC;EACDO,SAAS,EAAE;IACT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ACV;AACF,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"DrawerListDocs.js","names":["DrawerListProperties","doc","type","status","value","default_value","triangle_position","direction","label_direction","prevent_selection","focusable","prevent_close","keep_open","independent_width","fixed_position","enable_body_lock","skip_keysearch","ignore_events","align_drawer","list_class","portal_class","scrollable","no_scroll_animation","no_animation","skip_portal","min_height","max_height","page_offset","observer_element","cache_hash","wrapper_element","options_render","DrawerListEvents","on_pre_change","on_change","on_select","on_show","on_hide","DrawerListItem","content","disabled","selectedKey","selected_value","suffix_value","selected_key"],"sources":["../../../../src/fragments/drawer-list/DrawerListDocs.ts"],"sourcesContent":["import { PropertiesTableProps } from '../../shared/types'\n\nexport const DrawerListProperties = {\n '[data](#the-data-property)': {\n doc: `The data we want to fill the list with. [Details on the type of {DATA} can be found below](#the-data-property). The data can be provided as an array or object. Or as a function that returns the data (called when user opens the list).`,\n type: ['{DATA}', '() => {DATA}'],\n status: 'required',\n },\n value: {\n doc: 'Define a preselected `data` entry. In order of priority, `value` can be set to: object key (if `data` is an object), `selectedKey` prop (if `data` is an array), array index (if no `selectedKey`) or content (if `value` is a non-integer string).',\n type: ['string', 'number'],\n status: 'optional',\n },\n default_value: {\n doc: 'Define a startup value or handle a re-render without handling the state during the re-render by yourself. Defaults to `null`.',\n type: 'number',\n status: 'optional',\n },\n triangle_position: {\n doc: \"Position of the arrow icon/triangle inside the drawer-list. Set to 'left' or 'right'. Defaults to 'left' if not set.\",\n type: 'string',\n status: 'optional',\n },\n direction: {\n doc: \"Defines the direction of how the drawer-list shows the options list. Can be 'bottom' or 'top'. Defaults to 'auto'.\",\n type: 'string',\n status: 'optional',\n },\n label_direction: {\n doc: \"The direction of the label. If set to 'horizontal', the label will be positioned horizontally next to the input element. If set to 'vertical', the label will be positioned vertically above the input element.\",\n type: 'string',\n status: 'optional',\n },\n prevent_selection: {\n doc: 'If set to `true`, the DrawerList will then not make any permanent selection.',\n type: 'boolean',\n status: 'optional',\n },\n focusable: {\n doc: 'If set to `true`, the element is then focusable by assertive technologies.',\n type: 'boolean',\n status: 'optional',\n },\n prevent_close: {\n doc: 'If set to `true`, the DrawerList will not close on any events.',\n type: 'boolean',\n status: 'optional',\n },\n keep_open: {\n doc: 'If set to `true`, the DrawerList will close on outside clicks, but not on selection.',\n type: 'boolean',\n status: 'optional',\n },\n independent_width: {\n doc: 'If set to `true`, the DrawerList will handle its width and position independently of the parent/mother element.',\n type: 'boolean',\n status: 'optional',\n },\n fixed_position: {\n doc: 'If set to `true`, the DrawerList will be fixed in its scroll position by using CSS `position: fixed;`.',\n type: 'boolean',\n status: 'optional',\n },\n enable_body_lock: {\n doc: 'If set to `true`, the HTML body will get locked from scrolling when the Dropdown is open.',\n type: 'boolean',\n status: 'optional',\n },\n skip_keysearch: {\n doc: 'If set to `true`, search items by the first key will be ignored.',\n type: 'boolean',\n status: 'optional',\n },\n ignore_events: {\n doc: 'If set to `true`, all keyboard and mouse events will be ignored.',\n type: 'boolean',\n status: 'optional',\n },\n align_drawer: {\n doc: \"Use 'right' to change the options alignment direction. Makes only sense to use in combination with `prevent_selection` or `more_menu` - or if an independent width is used.\",\n type: 'string',\n status: 'optional',\n },\n list_class: {\n doc: 'Define an HTML class that will be set on the list, beside `dnb-drawer-list__list`.',\n type: 'string',\n status: 'optional',\n },\n portal_class: {\n doc: 'Define an HTML class that will be set on the DOM portal beside `dnb-drawer-list__portal__style`. Can be useful to handle e.g. a custom `z-index` in relation to a header.',\n type: 'string',\n status: 'optional',\n },\n scrollable: {\n doc: 'Defines if the options list should be scrollable (the `max-height` is set by default to `50vh`).',\n type: 'boolean',\n status: 'optional',\n },\n no_scroll_animation: {\n doc: 'To disable scrolling animation.',\n type: 'boolean',\n status: 'optional',\n },\n no_animation: {\n doc: 'To disable appear/disappear (show/hide) animation.',\n type: 'boolean',\n status: 'optional',\n },\n skip_portal: {\n doc: 'To disable the React Portal behavior.',\n type: 'boolean',\n status: 'optional',\n },\n min_height: {\n doc: 'Defines the minimum height (in `rem`) of the options list.',\n type: 'string',\n status: 'optional',\n },\n max_height: {\n doc: 'Defines the maximum height (in `rem`) of the options list.',\n type: 'string',\n status: 'optional',\n },\n page_offset: {\n doc: 'Defines the available scrollable height. If scrolling should not change the height of the drawer-list, then set it to `0` (useful if the DrawerList is used in fixed positions on contrast to a scrollable page content).',\n type: 'string',\n status: 'optional',\n },\n observer_element: {\n doc: 'Set a HTML element, either as a selector or a DOM element. Can be used to send in an element which will be used to make the direction calculation on.',\n type: 'string',\n status: 'optional',\n },\n cache_hash: {\n doc: 'Set a `cache_hash` as a string to enable internal memorizing of the list to enhance rerendering performance. Components like Autocomplete are using this because of the huge data changes due to search and reorder.',\n type: 'string',\n status: 'optional',\n },\n wrapper_element: {\n doc: \"Has to be an HTML Element, or a selector for one, ideally a mother element, used to calculate sizes and distances. Also used for the 'click outside' detection. Clicking on the `wrapper_element` will not trigger an outside click.\",\n type: ['string', 'HTMLElement'],\n status: 'optional',\n },\n options_render: {\n doc: 'Has to be a function, returning the items again. See [example](/uilib/components/fragments/drawer-list#example-usage-of-options_render). This can be used to add additional options above the actual rendered list.',\n type: 'function',\n status: 'optional',\n },\n '[Space](/uilib/layout/space/properties)': {\n doc: 'Spacing properties like `top` or `bottom` are supported.',\n type: ['string', 'object'],\n status: 'optional',\n },\n} satisfies PropertiesTableProps\n\nexport const DrawerListEvents = {\n on_pre_change: {\n doc: 'Will be called before `on_change`, this way you can return false to prevent selection and to prevent `on_change` execution.',\n type: 'function',\n status: 'optional',\n },\n on_change: {\n doc: 'Will be called on state changes made by the user.',\n type: 'function',\n status: 'optional',\n },\n on_select: {\n doc: 'Will be called once the user focuses or selects an item by a click or keyboard navigation.',\n type: 'function',\n status: 'optional',\n },\n on_show: {\n doc: 'Will be called once the user presses the drawer-list.',\n type: 'function',\n status: 'optional',\n },\n on_hide: {\n doc: 'Will be called once the user presses the drawer-list again, or clicks somewhere else.',\n type: 'function',\n status: 'optional',\n },\n} satisfies PropertiesTableProps\n\nexport const DrawerListItem = {\n content: {\n doc: 'Visual content in the list item',\n type: ['string', 'React.node', '(string | React.Node)[]'],\n status: 'optional',\n },\n disabled: {\n doc: 'Disables the list item from selection',\n type: 'boolean',\n status: 'optional',\n },\n selectedKey: {\n doc: 'If set, can be used instead of array index by the `value` prop',\n type: ['string', 'number'],\n status: 'optional',\n },\n selected_value: {\n doc: 'Replaces the standard value output for selected item. Only used in some implementations (Dropdown, Autocomplete).',\n type: ['string', 'React.Node'],\n status: 'optional',\n },\n suffix_value: {\n doc: 'Content placed to the right in the list item.',\n type: ['string', 'React.node'],\n status: 'optional',\n },\n selected_key: {\n doc: 'Use prop `selectedKey` instead',\n type: ['string', 'number'],\n status: 'deprecated',\n },\n} satisfies PropertiesTableProps\n"],"mappings":"AAEA,OAAO,MAAMA,oBAAoB,GAAG;EAClC,4BAA4B,EAAE;IAC5BC,GAAG,EAAE,2OAA2O;IAChPC,IAAI,EAAE,CAAC,QAAQ,EAAE,cAAc,CAAC;IAChCC,MAAM,EAAE;EACV,CAAC;EACDC,KAAK,EAAE;IACLH,GAAG,EAAE,qPAAqP;IAC1PC,IAAI,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAC1BC,MAAM,EAAE;EACV,CAAC;EACDE,aAAa,EAAE;IACbJ,GAAG,EAAE,+HAA+H;IACpIC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDG,iBAAiB,EAAE;IACjBL,GAAG,EAAE,sHAAsH;IAC3HC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDI,SAAS,EAAE;IACTN,GAAG,EAAE,oHAAoH;IACzHC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDK,eAAe,EAAE;IACfP,GAAG,EAAE,iNAAiN;IACtNC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDM,iBAAiB,EAAE;IACjBR,GAAG,EAAE,8EAA8E;IACnFC,IAAI,EAAE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GAAG,EAAE,gCAAgC;IACrCC,IAAI,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAC1BC,MAAM,EAAE;EACV;AACF,CAAgC","ignoreList":[]}
|
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Web DrawerList Helpers
|
|
3
|
+
*
|
|
4
|
+
* This is a legacy component.
|
|
5
|
+
* For referencing while developing new features, please use a Functional component.
|
|
6
|
+
*/
|
|
7
|
+
import PropTypes from 'prop-types';
|
|
8
|
+
import { DrawerListDataArrayItem, DrawerListDataArrayObject, DrawerListData, DrawerListDataAll } from './DrawerList';
|
|
9
|
+
import { DrawerListProviderProps } from './DrawerListProvider';
|
|
10
|
+
import { DrawerListContextState } from './DrawerListContext';
|
|
11
|
+
export declare const drawerListPropTypes: {
|
|
2
12
|
className: PropTypes.Requireable<string>;
|
|
3
13
|
children: PropTypes.Requireable<NonNullable<object | PropTypes.ReactNodeLike>>;
|
|
4
14
|
on_show: PropTypes.Requireable<(...args: any[]) => any>;
|
|
@@ -49,100 +59,86 @@ export const drawerListPropTypes: {
|
|
|
49
59
|
skip_keysearch: PropTypes.Requireable<NonNullable<string | boolean>>;
|
|
50
60
|
opened: PropTypes.Requireable<NonNullable<string | boolean>>;
|
|
51
61
|
data: PropTypes.Requireable<NonNullable<NonNullable<object | PropTypes.ReactNodeLike>>>;
|
|
52
|
-
prepared_data: PropTypes.Requireable<any[]>;
|
|
53
62
|
raw_data: PropTypes.Requireable<object>;
|
|
54
63
|
ignore_events: PropTypes.Requireable<NonNullable<string | boolean>>;
|
|
55
64
|
};
|
|
56
|
-
export
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
let data: any;
|
|
86
|
-
let prepared_data: any;
|
|
87
|
-
let raw_data: any;
|
|
88
|
-
let ignore_events: any;
|
|
89
|
-
let className: any;
|
|
90
|
-
let children: any;
|
|
91
|
-
let on_show: any;
|
|
92
|
-
let on_hide: any;
|
|
93
|
-
let handle_dismiss_focus: any;
|
|
94
|
-
let on_change: any;
|
|
95
|
-
let on_pre_change: any;
|
|
96
|
-
let on_resize: any;
|
|
97
|
-
let on_select: any;
|
|
98
|
-
let on_state_update: any;
|
|
99
|
-
let options_render: any;
|
|
100
|
-
}
|
|
101
|
-
export namespace drawerListProviderPropTypes {
|
|
102
|
-
let enable_body_lock: PropTypes.Requireable<boolean>;
|
|
103
|
-
let page_offset: PropTypes.Requireable<NonNullable<string | number>>;
|
|
104
|
-
let observer_element: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
105
|
-
let min_height: PropTypes.Requireable<NonNullable<string | number>>;
|
|
106
|
-
}
|
|
107
|
-
export namespace drawerListProviderDefaultProps {
|
|
108
|
-
let enable_body_lock_1: boolean;
|
|
109
|
-
export { enable_body_lock_1 as enable_body_lock };
|
|
110
|
-
let page_offset_1: any;
|
|
111
|
-
export { page_offset_1 as page_offset };
|
|
112
|
-
let observer_element_1: any;
|
|
113
|
-
export { observer_element_1 as observer_element };
|
|
114
|
-
let min_height_1: number;
|
|
115
|
-
export { min_height_1 as min_height };
|
|
116
|
-
}
|
|
117
|
-
export function parseContentTitle(dataItem: any, { separator, removeNumericOnlyValues, preferSelectedValue, }?: {
|
|
118
|
-
separator?: string;
|
|
119
|
-
removeNumericOnlyValues?: boolean;
|
|
120
|
-
preferSelectedValue?: boolean;
|
|
121
|
-
}): string;
|
|
122
|
-
export function hasObjectKeyAsValue(data: any): boolean;
|
|
123
|
-
export function preSelectData(data: any): any;
|
|
124
|
-
export function normalizeData(props: any): any;
|
|
125
|
-
export function getData(props: any): any;
|
|
126
|
-
export function getCurrentIndex(value: any, data: any): any;
|
|
127
|
-
export function getSelectedItemValue(value: any, state: any): any;
|
|
128
|
-
export function parseCurrentValue(current: any): any;
|
|
129
|
-
export function getEventData(item_index: any, data: any): any;
|
|
130
|
-
export function getCurrentData(item_index: any, data: any): any;
|
|
131
|
-
export function prepareStartupState(props: any): {
|
|
132
|
-
opened: boolean;
|
|
65
|
+
export declare const drawerListDefaultProps: {
|
|
66
|
+
id: any;
|
|
67
|
+
role: string;
|
|
68
|
+
cache_hash: any;
|
|
69
|
+
triangle_position: string;
|
|
70
|
+
scrollable: boolean;
|
|
71
|
+
focusable: boolean;
|
|
72
|
+
max_height: any;
|
|
73
|
+
direction: string;
|
|
74
|
+
size: string;
|
|
75
|
+
no_animation: boolean;
|
|
76
|
+
no_scroll_animation: boolean;
|
|
77
|
+
prevent_selection: boolean;
|
|
78
|
+
action_menu: boolean;
|
|
79
|
+
is_popup: boolean;
|
|
80
|
+
align_drawer: string;
|
|
81
|
+
wrapper_element: any;
|
|
82
|
+
default_value: any;
|
|
83
|
+
value: string;
|
|
84
|
+
portal_class: any;
|
|
85
|
+
list_class: any;
|
|
86
|
+
skip_portal: any;
|
|
87
|
+
prevent_close: boolean;
|
|
88
|
+
keep_open: boolean;
|
|
89
|
+
prevent_focus: boolean;
|
|
90
|
+
fixed_position: boolean;
|
|
91
|
+
independent_width: boolean;
|
|
92
|
+
skip_keysearch: boolean;
|
|
93
|
+
opened: any;
|
|
133
94
|
data: any;
|
|
134
|
-
original_data: any;
|
|
135
95
|
raw_data: any;
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
active_item: any;
|
|
140
|
-
on_hide: any;
|
|
96
|
+
ignore_events: any;
|
|
97
|
+
className: any;
|
|
98
|
+
children: any;
|
|
141
99
|
on_show: any;
|
|
100
|
+
on_hide: any;
|
|
101
|
+
handle_dismiss_focus: any;
|
|
142
102
|
on_change: any;
|
|
103
|
+
on_pre_change: any;
|
|
104
|
+
on_resize: any;
|
|
143
105
|
on_select: any;
|
|
106
|
+
on_state_update: any;
|
|
107
|
+
options_render: any;
|
|
144
108
|
};
|
|
145
|
-
export
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
109
|
+
export declare const drawerListProviderPropTypes: {
|
|
110
|
+
enable_body_lock: PropTypes.Requireable<boolean>;
|
|
111
|
+
page_offset: PropTypes.Requireable<NonNullable<string | number>>;
|
|
112
|
+
observer_element: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
113
|
+
min_height: PropTypes.Requireable<NonNullable<string | number>>;
|
|
114
|
+
};
|
|
115
|
+
export declare const drawerListProviderDefaultProps: {
|
|
116
|
+
enable_body_lock: boolean;
|
|
117
|
+
page_offset: any;
|
|
118
|
+
observer_element: any;
|
|
119
|
+
min_height: number;
|
|
120
|
+
};
|
|
121
|
+
export declare function parseContentTitle(dataItem: DrawerListDataArrayItem, { separator, removeNumericOnlyValues, preferSelectedValue, }?: {
|
|
122
|
+
separator?: string;
|
|
123
|
+
removeNumericOnlyValues?: boolean;
|
|
124
|
+
preferSelectedValue?: boolean;
|
|
125
|
+
}): string | null;
|
|
126
|
+
export declare const hasObjectKeyAsValue: (data: any) => boolean;
|
|
127
|
+
export declare function preSelectData(data: DrawerListData): DrawerListDataAll;
|
|
128
|
+
/**
|
|
129
|
+
* Takes any of the forms data can have and returns a normalized array representation of it.
|
|
130
|
+
* If the data is a single React.ReactNode, it will return an empty list.
|
|
131
|
+
* @param {*} props object containing the data in props.data or props.children, or the data itself
|
|
132
|
+
* @returns an array representation of the data
|
|
133
|
+
*/
|
|
134
|
+
export declare function normalizeData(props: any): DrawerListDataArrayObject[];
|
|
135
|
+
export declare const getData: (props: any) => DrawerListDataArrayObject[];
|
|
136
|
+
export declare const getCurrentIndex: (value: any, data: any) => any;
|
|
137
|
+
export declare const getSelectedItemValue: (value: any, state: any) => any;
|
|
138
|
+
export declare const parseCurrentValue: (current: any) => any;
|
|
139
|
+
export declare const getEventData: (item_index: any, data: any) => any;
|
|
140
|
+
export declare const getCurrentData: (item_index: any, data: any) => any;
|
|
141
|
+
export declare function prepareStartupState(props: DrawerListProviderProps): DrawerListContextState;
|
|
142
|
+
export declare const prepareDerivedState: (props: DrawerListProviderProps, state: DrawerListContextState) => DrawerListContextState;
|
|
143
|
+
export declare const getCurrentDataTitle: (selected_item: any, data: any) => string;
|
|
144
|
+
export declare const findClosest: (arr: any, val: any) => any;
|