intergalactic 15.107.0 → 15.108.0-prerelease.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +53 -0
- package/accordion/lib/cjs/Accordion.js +9 -9
- package/accordion/lib/es6/Accordion.js +9 -9
- package/accordion/package.json +1 -1
- package/animation/lib/cjs/Animation.js +11 -11
- package/animation/lib/cjs/Collapse.js +28 -28
- package/animation/lib/cjs/FadeInOut.js +28 -28
- package/animation/lib/cjs/Scale.js +28 -28
- package/animation/lib/cjs/Slide.js +28 -28
- package/animation/lib/cjs/Transform.js +28 -28
- package/animation/lib/es6/Animation.js +11 -11
- package/animation/lib/es6/Collapse.js +28 -28
- package/animation/lib/es6/FadeInOut.js +28 -28
- package/animation/lib/es6/Scale.js +28 -28
- package/animation/lib/es6/Slide.js +28 -28
- package/animation/lib/es6/Transform.js +28 -28
- package/animation/package.json +1 -1
- package/badge/lib/cjs/Badge.js +6 -6
- package/badge/lib/es6/Badge.js +6 -6
- package/badge/package.json +1 -1
- package/base-trigger/lib/cjs/BaseTrigger.js +18 -18
- package/base-trigger/lib/cjs/ButtonTrigger.js +3 -3
- package/base-trigger/lib/cjs/FilterTrigger.js +7 -7
- package/base-trigger/lib/cjs/LinkTrigger.js +12 -12
- package/base-trigger/lib/es6/BaseTrigger.js +18 -18
- package/base-trigger/lib/es6/ButtonTrigger.js +3 -3
- package/base-trigger/lib/es6/FilterTrigger.js +7 -7
- package/base-trigger/lib/es6/LinkTrigger.js +12 -12
- package/base-trigger/package.json +1 -1
- package/breadcrumbs/lib/cjs/Breadcrumbs.js +8 -8
- package/breadcrumbs/lib/es6/Breadcrumbs.js +8 -8
- package/breadcrumbs/package.json +1 -1
- package/breakpoints/package.json +1 -1
- package/button/component/AbstractButton/AbstractButton.d.ts +24 -0
- package/button/component/AbstractButton/AbstractButton.type.d.ts +39 -0
- package/button/component/AbstractButton/SpinButton.d.ts +3 -0
- package/button/component/Button/Button.d.ts +3 -0
- package/button/component/Button/Button.type.d.ts +39 -0
- package/button/component/ButtonLink/ButtonLink.d.ts +2 -0
- package/button/component/ButtonLink/ButtonLink.type.d.ts +25 -0
- package/button/index.d.ts +5 -68
- package/button/lib/cjs/component/AbstractButton/AbstractButton.js +182 -0
- package/button/lib/cjs/component/AbstractButton/AbstractButton.js.map +1 -0
- package/button/lib/cjs/component/AbstractButton/AbstractButton.type.js +2 -0
- package/button/lib/cjs/component/AbstractButton/AbstractButton.type.js.map +1 -0
- package/button/lib/cjs/component/AbstractButton/SpinButton.js.map +1 -0
- package/button/lib/cjs/component/Button/Button.js +94 -0
- package/button/lib/cjs/component/Button/Button.js.map +1 -0
- package/button/lib/cjs/component/Button/Button.type.js +2 -0
- package/button/lib/cjs/component/Button/Button.type.js.map +1 -0
- package/button/lib/cjs/{style → component/Button}/button.shadow.css +1 -1
- package/button/lib/cjs/component/ButtonLink/ButtonLink.js +92 -0
- package/button/lib/cjs/component/ButtonLink/ButtonLink.js.map +1 -0
- package/button/lib/cjs/component/ButtonLink/ButtonLink.type.js +2 -0
- package/button/lib/cjs/component/ButtonLink/ButtonLink.type.js.map +1 -0
- package/button/lib/cjs/component/ButtonLink/buttonLink.shadow.css +160 -0
- package/button/lib/cjs/index.js +40 -6
- package/button/lib/cjs/index.js.map +1 -1
- package/button/lib/es6/component/AbstractButton/AbstractButton.js +175 -0
- package/button/lib/es6/component/AbstractButton/AbstractButton.js.map +1 -0
- package/button/lib/es6/component/AbstractButton/AbstractButton.type.js +2 -0
- package/button/lib/es6/component/AbstractButton/AbstractButton.type.js.map +1 -0
- package/button/lib/es6/component/AbstractButton/SpinButton.js.map +1 -0
- package/button/lib/es6/component/Button/Button.js +87 -0
- package/button/lib/es6/component/Button/Button.js.map +1 -0
- package/button/lib/es6/component/Button/Button.type.js +2 -0
- package/button/lib/es6/component/Button/Button.type.js.map +1 -0
- package/button/lib/es6/{style → component/Button}/button.shadow.css +1 -1
- package/button/lib/es6/component/ButtonLink/ButtonLink.js +85 -0
- package/button/lib/es6/component/ButtonLink/ButtonLink.js.map +1 -0
- package/button/lib/es6/component/ButtonLink/ButtonLink.type.js +2 -0
- package/button/lib/es6/component/ButtonLink/ButtonLink.type.js.map +1 -0
- package/button/lib/es6/component/ButtonLink/buttonLink.shadow.css +160 -0
- package/button/lib/es6/index.js +5 -2
- package/button/lib/es6/index.js.map +1 -1
- package/button/lib/types/component/AbstractButton/AbstractButton.d.ts +24 -0
- package/button/lib/types/component/AbstractButton/AbstractButton.type.d.ts +39 -0
- package/button/lib/types/component/AbstractButton/SpinButton.d.ts +3 -0
- package/button/lib/types/component/Button/Button.d.ts +3 -0
- package/button/lib/types/component/Button/Button.type.d.ts +39 -0
- package/button/lib/types/component/ButtonLink/ButtonLink.d.ts +2 -0
- package/button/lib/types/component/ButtonLink/ButtonLink.type.d.ts +25 -0
- package/button/lib/types/index.d.ts +5 -68
- package/button/package.json +1 -1
- package/card/lib/cjs/Card.js +19 -22
- package/card/lib/cjs/Card.js.map +1 -1
- package/card/lib/cjs/style/card.shadow.css +13 -15
- package/card/lib/es6/Card.js +19 -22
- package/card/lib/es6/Card.js.map +1 -1
- package/card/lib/es6/style/card.shadow.css +13 -15
- package/card/package.json +1 -1
- package/carousel/lib/cjs/Carousel.js +79 -57
- package/carousel/lib/cjs/Carousel.js.map +1 -1
- package/carousel/lib/cjs/style/carousel.shadow.css +48 -4
- package/carousel/lib/cjs/translations/de.json +4 -2
- package/carousel/lib/cjs/translations/en.json +4 -2
- package/carousel/lib/cjs/translations/es.json +4 -2
- package/carousel/lib/cjs/translations/fr.json +4 -2
- package/carousel/lib/cjs/translations/it.json +4 -2
- package/carousel/lib/cjs/translations/ja.json +4 -2
- package/carousel/lib/cjs/translations/ko.json +4 -2
- package/carousel/lib/cjs/translations/nl.json +4 -2
- package/carousel/lib/cjs/translations/pl.json +4 -2
- package/carousel/lib/cjs/translations/pt.json +4 -2
- package/carousel/lib/cjs/translations/sv.json +4 -2
- package/carousel/lib/cjs/translations/tr.json +4 -2
- package/carousel/lib/cjs/translations/vi.json +4 -2
- package/carousel/lib/cjs/translations/zh.json +4 -2
- package/carousel/lib/es6/Carousel.js +79 -57
- package/carousel/lib/es6/Carousel.js.map +1 -1
- package/carousel/lib/es6/style/carousel.shadow.css +48 -4
- package/carousel/lib/es6/translations/de.json +4 -2
- package/carousel/lib/es6/translations/en.json +4 -2
- package/carousel/lib/es6/translations/es.json +4 -2
- package/carousel/lib/es6/translations/fr.json +4 -2
- package/carousel/lib/es6/translations/it.json +4 -2
- package/carousel/lib/es6/translations/ja.json +4 -2
- package/carousel/lib/es6/translations/ko.json +4 -2
- package/carousel/lib/es6/translations/nl.json +4 -2
- package/carousel/lib/es6/translations/pl.json +4 -2
- package/carousel/lib/es6/translations/pt.json +4 -2
- package/carousel/lib/es6/translations/sv.json +4 -2
- package/carousel/lib/es6/translations/tr.json +4 -2
- package/carousel/lib/es6/translations/vi.json +4 -2
- package/carousel/lib/es6/translations/zh.json +4 -2
- package/carousel/lib/types/translations/__intergalactic-dynamic-locales.d.ts +28 -0
- package/carousel/package.json +1 -1
- package/carousel/translations/__intergalactic-dynamic-locales.d.ts +28 -0
- package/checkbox/lib/cjs/Checkbox.js +18 -18
- package/checkbox/lib/es6/Checkbox.js +18 -18
- package/checkbox/package.json +1 -1
- package/color-picker/lib/cjs/ColorPicker.js +24 -24
- package/color-picker/lib/cjs/PaletteManager.js +24 -24
- package/color-picker/lib/cjs/components/InputColor.js +24 -24
- package/color-picker/lib/es6/ColorPicker.js +24 -24
- package/color-picker/lib/es6/PaletteManager.js +24 -24
- package/color-picker/lib/es6/components/InputColor.js +24 -24
- package/color-picker/package.json +1 -1
- package/components.json +73 -73
- package/core/package.json +1 -1
- package/counter/lib/cjs/Counter.js +11 -11
- package/counter/lib/es6/Counter.js +11 -11
- package/counter/package.json +1 -1
- package/d3-chart/lib/cjs/Area.js +11 -11
- package/d3-chart/lib/cjs/Axis.js +14 -14
- package/d3-chart/lib/cjs/Bar.js +16 -16
- package/d3-chart/lib/cjs/Bubble.js +12 -12
- package/d3-chart/lib/cjs/CompactHorizontalBar.js +16 -16
- package/d3-chart/lib/cjs/Donut.js +9 -9
- package/d3-chart/lib/cjs/Dots.js +8 -8
- package/d3-chart/lib/cjs/HorizontalBar.js +16 -16
- package/d3-chart/lib/cjs/Hover.js +3 -3
- package/d3-chart/lib/cjs/Line.js +9 -9
- package/d3-chart/lib/cjs/Plot.js +3 -3
- package/d3-chart/lib/cjs/Radar.js +19 -19
- package/d3-chart/lib/cjs/RadialTree.js +12 -12
- package/d3-chart/lib/cjs/Reference.js +12 -12
- package/d3-chart/lib/cjs/ScatterPlot.js +9 -9
- package/d3-chart/lib/cjs/Tooltip.js +9 -9
- package/d3-chart/lib/cjs/Venn.js +9 -9
- package/d3-chart/lib/cjs/a11y/PlotA11yModule.js +2 -2
- package/d3-chart/lib/cjs/a11y/PlotA11yView.js +2 -2
- package/d3-chart/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
- package/d3-chart/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js +17 -17
- package/d3-chart/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +6 -6
- package/d3-chart/lib/es6/Area.js +11 -11
- package/d3-chart/lib/es6/Axis.js +14 -14
- package/d3-chart/lib/es6/Bar.js +16 -16
- package/d3-chart/lib/es6/Bubble.js +12 -12
- package/d3-chart/lib/es6/CompactHorizontalBar.js +16 -16
- package/d3-chart/lib/es6/Donut.js +9 -9
- package/d3-chart/lib/es6/Dots.js +8 -8
- package/d3-chart/lib/es6/HorizontalBar.js +16 -16
- package/d3-chart/lib/es6/Hover.js +3 -3
- package/d3-chart/lib/es6/Line.js +9 -9
- package/d3-chart/lib/es6/Plot.js +3 -3
- package/d3-chart/lib/es6/Radar.js +19 -19
- package/d3-chart/lib/es6/RadialTree.js +12 -12
- package/d3-chart/lib/es6/Reference.js +12 -12
- package/d3-chart/lib/es6/ScatterPlot.js +9 -9
- package/d3-chart/lib/es6/Tooltip.js +9 -9
- package/d3-chart/lib/es6/Venn.js +9 -9
- package/d3-chart/lib/es6/a11y/PlotA11yModule.js +2 -2
- package/d3-chart/lib/es6/a11y/PlotA11yView.js +2 -2
- package/d3-chart/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
- package/d3-chart/lib/es6/component/ChartLegend/LegendItem/LegendItem.js +17 -17
- package/d3-chart/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +6 -6
- package/d3-chart/package.json +1 -1
- package/data-table/Body.d.ts +4 -1
- package/data-table/DataTable.d.ts +15 -58
- package/data-table/Head.d.ts +8 -2
- package/data-table/lib/cjs/Body.js +62 -12
- package/data-table/lib/cjs/Body.js.map +1 -1
- package/data-table/lib/cjs/DataTable.js +206 -45
- package/data-table/lib/cjs/DataTable.js.map +1 -1
- package/data-table/lib/cjs/Head.js +87 -16
- package/data-table/lib/cjs/Head.js.map +1 -1
- package/data-table/lib/cjs/style/data-table.shadow.css +14 -0
- package/data-table/lib/cjs/translations/__intergalactic-dynamic-locales.js +39 -0
- package/data-table/lib/cjs/translations/__intergalactic-dynamic-locales.js.map +1 -0
- package/data-table/lib/cjs/translations/de.json +3 -0
- package/data-table/lib/cjs/translations/en.json +3 -0
- package/data-table/lib/cjs/translations/es.json +3 -0
- package/data-table/lib/cjs/translations/fr.json +3 -0
- package/data-table/lib/cjs/translations/it.json +3 -0
- package/data-table/lib/cjs/translations/ja.json +3 -0
- package/data-table/lib/cjs/translations/ko.json +3 -0
- package/data-table/lib/cjs/translations/nl.json +3 -0
- package/data-table/lib/cjs/translations/pl.json +3 -0
- package/data-table/lib/cjs/translations/pt.json +3 -0
- package/data-table/lib/cjs/translations/sv.json +3 -0
- package/data-table/lib/cjs/translations/tr.json +3 -0
- package/data-table/lib/cjs/translations/vi.json +3 -0
- package/data-table/lib/cjs/translations/zh.json +3 -0
- package/data-table/lib/cjs/types.js.map +1 -1
- package/data-table/lib/es6/Body.js +62 -12
- package/data-table/lib/es6/Body.js.map +1 -1
- package/data-table/lib/es6/DataTable.js +207 -45
- package/data-table/lib/es6/DataTable.js.map +1 -1
- package/data-table/lib/es6/Head.js +87 -16
- package/data-table/lib/es6/Head.js.map +1 -1
- package/data-table/lib/es6/style/data-table.shadow.css +14 -0
- package/data-table/lib/es6/translations/__intergalactic-dynamic-locales.js +31 -0
- package/data-table/lib/es6/translations/__intergalactic-dynamic-locales.js.map +1 -0
- package/data-table/lib/es6/translations/de.json +3 -0
- package/data-table/lib/es6/translations/en.json +3 -0
- package/data-table/lib/es6/translations/es.json +3 -0
- package/data-table/lib/es6/translations/fr.json +3 -0
- package/data-table/lib/es6/translations/it.json +3 -0
- package/data-table/lib/es6/translations/ja.json +3 -0
- package/data-table/lib/es6/translations/ko.json +3 -0
- package/data-table/lib/es6/translations/nl.json +3 -0
- package/data-table/lib/es6/translations/pl.json +3 -0
- package/data-table/lib/es6/translations/pt.json +3 -0
- package/data-table/lib/es6/translations/sv.json +3 -0
- package/data-table/lib/es6/translations/tr.json +3 -0
- package/data-table/lib/es6/translations/vi.json +3 -0
- package/data-table/lib/es6/translations/zh.json +3 -0
- package/data-table/lib/es6/types.js.map +1 -1
- package/data-table/lib/types/Body.d.ts +4 -1
- package/data-table/lib/types/DataTable.d.ts +15 -58
- package/data-table/lib/types/Head.d.ts +8 -2
- package/data-table/lib/types/translations/__intergalactic-dynamic-locales.d.ts +44 -0
- package/data-table/lib/types/types.d.ts +2 -0
- package/data-table/package.json +1 -1
- package/data-table/translations/__intergalactic-dynamic-locales.d.ts +44 -0
- package/data-table/types.d.ts +2 -0
- package/date-picker/lib/cjs/components/Calendar.js +21 -21
- package/date-picker/lib/cjs/components/DateRangeComparatorAbstract.js +29 -29
- package/date-picker/lib/cjs/components/InputTrigger.js +29 -29
- package/date-picker/lib/cjs/components/PickerAbstract.js +29 -29
- package/date-picker/lib/cjs/components/RangePickerAbstract.js +29 -29
- package/date-picker/lib/es6/components/Calendar.js +21 -21
- package/date-picker/lib/es6/components/DateRangeComparatorAbstract.js +29 -29
- package/date-picker/lib/es6/components/InputTrigger.js +29 -29
- package/date-picker/lib/es6/components/PickerAbstract.js +29 -29
- package/date-picker/lib/es6/components/RangePickerAbstract.js +29 -29
- package/date-picker/package.json +1 -1
- package/divider/lib/cjs/Divider.js +10 -10
- package/divider/lib/es6/Divider.js +10 -10
- package/divider/package.json +1 -1
- package/dot/lib/cjs/Dot.js +10 -10
- package/dot/lib/es6/Dot.js +10 -10
- package/dot/package.json +1 -1
- package/drag-and-drop/lib/cjs/DragAndDrop.js +16 -16
- package/drag-and-drop/lib/es6/DragAndDrop.js +16 -16
- package/drag-and-drop/package.json +1 -1
- package/dropdown/lib/cjs/Dropdown.js +2 -2
- package/dropdown/lib/es6/Dropdown.js +2 -2
- package/dropdown/package.json +1 -1
- package/dropdown-menu/lib/cjs/DropdownMenu.js +25 -25
- package/dropdown-menu/lib/cjs/DropdownMenuOld.js +21 -21
- package/dropdown-menu/lib/es6/DropdownMenu.js +25 -25
- package/dropdown-menu/lib/es6/DropdownMenuOld.js +21 -21
- package/dropdown-menu/package.json +1 -1
- package/ellipsis/lib/cjs/Ellipsis.js +10 -10
- package/ellipsis/lib/es6/Ellipsis.js +10 -10
- package/ellipsis/package.json +1 -1
- package/errors/lib/cjs/Error.js +9 -9
- package/errors/lib/es6/Error.js +9 -9
- package/errors/package.json +1 -1
- package/feature-popover/lib/cjs/FeaturePopover.js +11 -11
- package/feature-popover/lib/es6/FeaturePopover.js +11 -11
- package/feature-popover/package.json +1 -1
- package/feedback-form/lib/cjs/FeedbackForm.js +7 -7
- package/feedback-form/lib/cjs/component/checkbox-button/CheckboxButton.js +3 -3
- package/feedback-form/lib/cjs/component/feedback-rating/FeedbackRating.js +2 -2
- package/feedback-form/lib/cjs/component/slider-rating/SliderRating.js +6 -6
- package/feedback-form/lib/es6/FeedbackForm.js +7 -7
- package/feedback-form/lib/es6/component/checkbox-button/CheckboxButton.js +3 -3
- package/feedback-form/lib/es6/component/feedback-rating/FeedbackRating.js +2 -2
- package/feedback-form/lib/es6/component/slider-rating/SliderRating.js +6 -6
- package/feedback-form/package.json +1 -1
- package/flags/lib/cjs/Flags.js +3 -3
- package/flags/lib/es6/Flags.js +3 -3
- package/flags/lib/sprites/sprite@1x.css +256 -256
- package/flags/lib/sprites/sprite@2x.css +257 -257
- package/flags/package.json +1 -1
- package/flex-box/lib/cjs/Box/useBox.js +3 -3
- package/flex-box/lib/cjs/Flex/useFlex.js +3 -3
- package/flex-box/lib/cjs/invalid-state-box/InvalidStateBox.js +2 -2
- package/flex-box/lib/es6/Box/useBox.js +3 -3
- package/flex-box/lib/es6/Flex/useFlex.js +3 -3
- package/flex-box/lib/es6/invalid-state-box/InvalidStateBox.js +2 -2
- package/flex-box/package.json +1 -1
- package/format-text/lib/cjs/FormatText.js +5 -5
- package/format-text/lib/es6/FormatText.js +5 -5
- package/format-text/package.json +1 -1
- package/fullscreen-modal/lib/cjs/FullscreenModal.js +13 -13
- package/fullscreen-modal/lib/es6/FullscreenModal.js +13 -13
- package/fullscreen-modal/package.json +1 -1
- package/grid/lib/cjs/Grid.js +114 -114
- package/grid/lib/es6/Grid.js +114 -114
- package/grid/package.json +1 -1
- package/i18n-unplugin/package.json +1 -1
- package/icon/color/Confluence/l/index.js +4 -4
- package/icon/color/Confluence/l/index.mjs +4 -4
- package/icon/color/Confluence/m/index.js +4 -4
- package/icon/color/Confluence/m/index.mjs +4 -4
- package/icon/color/MicrosoftOffice/l/index.js +10 -10
- package/icon/color/MicrosoftOffice/l/index.mjs +10 -10
- package/icon/color/MicrosoftOffice/m/index.js +10 -10
- package/icon/color/MicrosoftOffice/m/index.mjs +10 -10
- package/icon/lib/cjs/Icon.js +6 -6
- package/icon/lib/es6/Icon.js +6 -6
- package/icon/package.json +1 -1
- package/icon/pay/Discover/l/index.js +1 -1
- package/icon/pay/Discover/l/index.mjs +1 -1
- package/icon/pay/Discover/m/index.js +1 -1
- package/icon/pay/Discover/m/index.mjs +1 -1
- package/icon/pay/JCB/l/index.js +10 -10
- package/icon/pay/JCB/l/index.mjs +10 -10
- package/icon/pay/JCB/m/index.js +10 -10
- package/icon/pay/JCB/m/index.mjs +10 -10
- package/icon/pay/Visa/l/index.js +2 -2
- package/icon/pay/Visa/l/index.mjs +2 -2
- package/icon/pay/Visa/m/index.js +2 -2
- package/icon/pay/Visa/m/index.mjs +2 -2
- package/illustration/lib/cjs/index.js +1 -1
- package/illustration/lib/es6/index.js +1 -1
- package/illustration/package.json +1 -1
- package/inline-edit/lib/cjs/InlineEdit.js +4 -4
- package/inline-edit/lib/es6/InlineEdit.js +4 -4
- package/inline-edit/package.json +1 -1
- package/inline-input/index.d.ts +11 -2
- package/inline-input/lib/cjs/InlineInput.js +31 -35
- package/inline-input/lib/cjs/InlineInput.js.map +1 -1
- package/inline-input/lib/cjs/index.d.js.map +1 -1
- package/inline-input/lib/cjs/style/inline-input.shadow.css +1 -1
- package/inline-input/lib/es6/InlineInput.js +31 -35
- package/inline-input/lib/es6/InlineInput.js.map +1 -1
- package/inline-input/lib/es6/index.d.js.map +1 -1
- package/inline-input/lib/es6/style/inline-input.shadow.css +1 -1
- package/inline-input/lib/types/index.d.ts +11 -2
- package/inline-input/package.json +1 -1
- package/input/lib/cjs/Input.js +17 -17
- package/input/lib/es6/Input.js +17 -17
- package/input/package.json +1 -1
- package/input-mask/lib/cjs/InputMask.js +6 -6
- package/input-mask/lib/es6/InputMask.js +6 -6
- package/input-mask/package.json +1 -1
- package/input-number/lib/cjs/InputNumber.js +9 -9
- package/input-number/lib/es6/InputNumber.js +9 -9
- package/input-number/package.json +1 -1
- package/input-tags/InputTags.d.ts +1 -0
- package/input-tags/lib/cjs/InputTags.js +67 -36
- package/input-tags/lib/cjs/InputTags.js.map +1 -1
- package/input-tags/lib/cjs/style/input-tag.shadow.css +2 -2
- package/input-tags/lib/cjs/translations/__intergalactic-dynamic-locales.js +39 -0
- package/input-tags/lib/cjs/translations/__intergalactic-dynamic-locales.js.map +1 -0
- package/input-tags/lib/cjs/translations/de.json +3 -0
- package/input-tags/lib/cjs/translations/en.json +3 -0
- package/input-tags/lib/cjs/translations/es.json +3 -0
- package/input-tags/lib/cjs/translations/fr.json +3 -0
- package/input-tags/lib/cjs/translations/it.json +3 -0
- package/input-tags/lib/cjs/translations/ja.json +3 -0
- package/input-tags/lib/cjs/translations/ko.json +3 -0
- package/input-tags/lib/cjs/translations/nl.json +3 -0
- package/input-tags/lib/cjs/translations/pl.json +3 -0
- package/input-tags/lib/cjs/translations/pt.json +3 -0
- package/input-tags/lib/cjs/translations/sv.json +3 -0
- package/input-tags/lib/cjs/translations/tr.json +3 -0
- package/input-tags/lib/cjs/translations/vi.json +3 -0
- package/input-tags/lib/cjs/translations/zh.json +3 -0
- package/input-tags/lib/es6/InputTags.js +68 -36
- package/input-tags/lib/es6/InputTags.js.map +1 -1
- package/input-tags/lib/es6/style/input-tag.shadow.css +2 -2
- package/input-tags/lib/es6/translations/__intergalactic-dynamic-locales.js +31 -0
- package/input-tags/lib/es6/translations/__intergalactic-dynamic-locales.js.map +1 -0
- package/input-tags/lib/es6/translations/de.json +3 -0
- package/input-tags/lib/es6/translations/en.json +3 -0
- package/input-tags/lib/es6/translations/es.json +3 -0
- package/input-tags/lib/es6/translations/fr.json +3 -0
- package/input-tags/lib/es6/translations/it.json +3 -0
- package/input-tags/lib/es6/translations/ja.json +3 -0
- package/input-tags/lib/es6/translations/ko.json +3 -0
- package/input-tags/lib/es6/translations/nl.json +3 -0
- package/input-tags/lib/es6/translations/pl.json +3 -0
- package/input-tags/lib/es6/translations/pt.json +3 -0
- package/input-tags/lib/es6/translations/sv.json +3 -0
- package/input-tags/lib/es6/translations/tr.json +3 -0
- package/input-tags/lib/es6/translations/vi.json +3 -0
- package/input-tags/lib/es6/translations/zh.json +3 -0
- package/input-tags/lib/types/InputTags.d.ts +1 -0
- package/input-tags/lib/types/translations/__intergalactic-dynamic-locales.d.ts +44 -0
- package/input-tags/package.json +1 -1
- package/input-tags/translations/__intergalactic-dynamic-locales.d.ts +44 -0
- package/link/lib/cjs/Link.js +12 -12
- package/link/lib/es6/Link.js +12 -12
- package/link/package.json +1 -1
- package/mini-chart/lib/cjs/component/score/Donut.js +9 -9
- package/mini-chart/lib/cjs/component/score/Line.js +17 -17
- package/mini-chart/lib/cjs/component/trend/Bar.js +7 -7
- package/mini-chart/lib/cjs/component/trend/Line.js +7 -7
- package/mini-chart/lib/es6/component/score/Donut.js +9 -9
- package/mini-chart/lib/es6/component/score/Line.js +17 -17
- package/mini-chart/lib/es6/component/trend/Bar.js +7 -7
- package/mini-chart/lib/es6/component/trend/Line.js +7 -7
- package/mini-chart/package.json +1 -1
- package/modal/lib/cjs/Modal.js +8 -8
- package/modal/lib/es6/Modal.js +8 -8
- package/modal/package.json +1 -1
- package/neighbor-location/package.json +1 -1
- package/notice/lib/cjs/Notice.js +14 -14
- package/notice/lib/es6/Notice.js +14 -14
- package/notice/package.json +1 -1
- package/notice-bubble/lib/cjs/NoticeBubble.js +15 -15
- package/notice-bubble/lib/es6/NoticeBubble.js +15 -15
- package/notice-bubble/package.json +1 -1
- package/notice-global/lib/cjs/NoticeGlobal.js +11 -11
- package/notice-global/lib/es6/NoticeGlobal.js +11 -11
- package/notice-global/package.json +1 -1
- package/outside-click/package.json +1 -1
- package/package.json +1 -1
- package/pagination/lib/cjs/Pagination.js +12 -16
- package/pagination/lib/cjs/Pagination.js.map +1 -1
- package/pagination/lib/es6/Pagination.js +12 -16
- package/pagination/lib/es6/Pagination.js.map +1 -1
- package/pagination/package.json +1 -1
- package/pills/lib/cjs/Pills.js +13 -13
- package/pills/lib/es6/Pills.js +13 -13
- package/pills/package.json +1 -1
- package/popper/lib/cjs/Popper.js +6 -6
- package/popper/lib/es6/Popper.js +6 -6
- package/popper/package.json +1 -1
- package/portal/package.json +1 -1
- package/product-head/lib/cjs/Info.js +4 -4
- package/product-head/lib/cjs/ProductHead.js +5 -5
- package/product-head/lib/cjs/Title.js +4 -4
- package/product-head/lib/es6/Info.js +4 -4
- package/product-head/lib/es6/ProductHead.js +5 -5
- package/product-head/lib/es6/Title.js +4 -4
- package/product-head/package.json +1 -1
- package/progress-bar/lib/cjs/ProgressBar.js +15 -15
- package/progress-bar/lib/es6/ProgressBar.js +15 -15
- package/progress-bar/package.json +1 -1
- package/radio/lib/cjs/Radio.js +16 -16
- package/radio/lib/es6/Radio.js +16 -16
- package/radio/package.json +1 -1
- package/scroll-area/lib/cjs/ScrollArea.js +21 -21
- package/scroll-area/lib/cjs/ScrollBar.js +6 -6
- package/scroll-area/lib/es6/ScrollArea.js +21 -21
- package/scroll-area/lib/es6/ScrollBar.js +6 -6
- package/scroll-area/package.json +1 -1
- package/select/lib/cjs/InputSearch.js +6 -6
- package/select/lib/cjs/Select.js +8 -8
- package/select/lib/es6/InputSearch.js +6 -6
- package/select/lib/es6/Select.js +8 -8
- package/select/package.json +1 -1
- package/side-panel/lib/cjs/SidePanel.js +23 -28
- package/side-panel/lib/cjs/SidePanel.js.map +1 -1
- package/side-panel/lib/cjs/style/side-panel.shadow.css +8 -30
- package/side-panel/lib/es6/SidePanel.js +23 -28
- package/side-panel/lib/es6/SidePanel.js.map +1 -1
- package/side-panel/lib/es6/style/side-panel.shadow.css +8 -30
- package/side-panel/package.json +1 -1
- package/skeleton/lib/cjs/Charts/Area.js +9 -9
- package/skeleton/lib/cjs/Charts/Bar.js +9 -9
- package/skeleton/lib/cjs/Charts/Bubble.js +9 -9
- package/skeleton/lib/cjs/Charts/CompactHorizontalBar.js +9 -9
- package/skeleton/lib/cjs/Charts/Donut.js +9 -9
- package/skeleton/lib/cjs/Charts/Histogram.js +9 -9
- package/skeleton/lib/cjs/Charts/Line.js +9 -9
- package/skeleton/lib/cjs/Charts/RadialTree.js +9 -9
- package/skeleton/lib/cjs/Charts/ScatterPlot.js +9 -9
- package/skeleton/lib/cjs/Charts/Venn.js +9 -9
- package/skeleton/lib/cjs/Skeleton.js +8 -8
- package/skeleton/lib/es6/Charts/Area.js +9 -9
- package/skeleton/lib/es6/Charts/Bar.js +9 -9
- package/skeleton/lib/es6/Charts/Bubble.js +9 -9
- package/skeleton/lib/es6/Charts/CompactHorizontalBar.js +9 -9
- package/skeleton/lib/es6/Charts/Donut.js +9 -9
- package/skeleton/lib/es6/Charts/Histogram.js +9 -9
- package/skeleton/lib/es6/Charts/Line.js +9 -9
- package/skeleton/lib/es6/Charts/RadialTree.js +9 -9
- package/skeleton/lib/es6/Charts/ScatterPlot.js +9 -9
- package/skeleton/lib/es6/Charts/Venn.js +9 -9
- package/skeleton/lib/es6/Skeleton.js +8 -8
- package/skeleton/package.json +1 -1
- package/slider/lib/cjs/Slider.js +8 -8
- package/slider/lib/es6/Slider.js +8 -8
- package/slider/package.json +1 -1
- package/spin/lib/cjs/Spin.js +13 -13
- package/spin/lib/es6/Spin.js +13 -13
- package/spin/package.json +1 -1
- package/spin-container/lib/cjs/SpinContainer.js +8 -8
- package/spin-container/lib/es6/SpinContainer.js +8 -8
- package/spin-container/package.json +1 -1
- package/sticky/lib/cjs/Sticky.js +2 -2
- package/sticky/lib/es6/Sticky.js +2 -2
- package/sticky/package.json +1 -1
- package/switch/lib/cjs/Switch.js +21 -21
- package/switch/lib/es6/Switch.js +21 -21
- package/switch/package.json +1 -1
- package/tab-line/lib/cjs/TabLine.js +13 -13
- package/tab-line/lib/es6/TabLine.js +13 -13
- package/tab-line/package.json +1 -1
- package/tab-panel/lib/cjs/TabPanel.js +8 -8
- package/tab-panel/lib/es6/TabPanel.js +8 -8
- package/tab-panel/package.json +1 -1
- package/tag/index.d.ts +2 -0
- package/tag/lib/cjs/Tag.js +167 -95
- package/tag/lib/cjs/Tag.js.map +1 -1
- package/tag/lib/cjs/index.d.js.map +1 -1
- package/tag/lib/cjs/style/tag.shadow.css +125 -90
- package/tag/lib/cjs/translations/de.json +1 -1
- package/tag/lib/cjs/translations/en.json +1 -1
- package/tag/lib/cjs/translations/es.json +1 -1
- package/tag/lib/cjs/translations/fr.json +1 -1
- package/tag/lib/cjs/translations/it.json +1 -1
- package/tag/lib/cjs/translations/ja.json +1 -1
- package/tag/lib/cjs/translations/ko.json +1 -1
- package/tag/lib/cjs/translations/nl.json +1 -1
- package/tag/lib/cjs/translations/pl.json +1 -1
- package/tag/lib/cjs/translations/pt.json +1 -1
- package/tag/lib/cjs/translations/sv.json +1 -1
- package/tag/lib/cjs/translations/tr.json +1 -1
- package/tag/lib/cjs/translations/vi.json +1 -1
- package/tag/lib/cjs/translations/zh.json +1 -1
- package/tag/lib/es6/Tag.js +168 -95
- package/tag/lib/es6/Tag.js.map +1 -1
- package/tag/lib/es6/index.d.js.map +1 -1
- package/tag/lib/es6/style/tag.shadow.css +125 -90
- package/tag/lib/es6/translations/de.json +1 -1
- package/tag/lib/es6/translations/en.json +1 -1
- package/tag/lib/es6/translations/es.json +1 -1
- package/tag/lib/es6/translations/fr.json +1 -1
- package/tag/lib/es6/translations/it.json +1 -1
- package/tag/lib/es6/translations/ja.json +1 -1
- package/tag/lib/es6/translations/ko.json +1 -1
- package/tag/lib/es6/translations/nl.json +1 -1
- package/tag/lib/es6/translations/pl.json +1 -1
- package/tag/lib/es6/translations/pt.json +1 -1
- package/tag/lib/es6/translations/sv.json +1 -1
- package/tag/lib/es6/translations/tr.json +1 -1
- package/tag/lib/es6/translations/vi.json +1 -1
- package/tag/lib/es6/translations/zh.json +1 -1
- package/tag/lib/types/index.d.ts +2 -0
- package/tag/package.json +1 -1
- package/textarea/lib/cjs/Textarea.js +8 -8
- package/textarea/lib/es6/Textarea.js +8 -8
- package/textarea/package.json +1 -1
- package/time-picker/lib/cjs/TimePicker.js +12 -12
- package/time-picker/lib/es6/TimePicker.js +12 -12
- package/time-picker/package.json +1 -1
- package/tooltip/lib/cjs/Tooltip.js +9 -9
- package/tooltip/lib/es6/Tooltip.js +9 -9
- package/tooltip/package.json +1 -1
- package/typography/lib/cjs/Blockquote.js +4 -4
- package/typography/lib/cjs/Hint.js +7 -7
- package/typography/lib/cjs/List.js +5 -5
- package/typography/lib/cjs/Text.js +34 -34
- package/typography/lib/es6/Blockquote.js +4 -4
- package/typography/lib/es6/Hint.js +7 -7
- package/typography/lib/es6/List.js +5 -5
- package/typography/lib/es6/Text.js +34 -34
- package/typography/package.json +1 -1
- package/utils/lib/components/invalid-state-pattern/InvalidStatePattern.js +2 -2
- package/utils/lib/components/invalid-state-pattern/InvalidStatePattern.mjs +2 -2
- package/utils/lib/focus-lock/isFocusable.js +6 -1
- package/utils/lib/focus-lock/isFocusable.js.map +1 -1
- package/utils/lib/focus-lock/isFocusable.mjs +6 -1
- package/utils/lib/focus-lock/isFocusable.mjs.map +1 -1
- package/utils/lib/injectStyle.js +1 -1
- package/utils/lib/injectStyle.mjs +1 -1
- package/widget-empty/lib/cjs/WidgetEmpty.js +5 -5
- package/widget-empty/lib/es6/WidgetEmpty.js +5 -5
- package/widget-empty/package.json +1 -1
- package/wizard/index.d.ts +17 -0
- package/wizard/lib/cjs/Wizard.js +201 -47
- package/wizard/lib/cjs/Wizard.js.map +1 -1
- package/wizard/lib/cjs/index.d.js.map +1 -1
- package/wizard/lib/cjs/style/wizard.shadow.css +4 -0
- package/wizard/lib/cjs/translations/de.json +3 -1
- package/wizard/lib/cjs/translations/en.json +3 -1
- package/wizard/lib/cjs/translations/es.json +3 -1
- package/wizard/lib/cjs/translations/fr.json +3 -1
- package/wizard/lib/cjs/translations/it.json +3 -1
- package/wizard/lib/cjs/translations/ja.json +3 -1
- package/wizard/lib/cjs/translations/ko.json +3 -1
- package/wizard/lib/cjs/translations/nl.json +3 -1
- package/wizard/lib/cjs/translations/pl.json +3 -1
- package/wizard/lib/cjs/translations/pt.json +3 -1
- package/wizard/lib/cjs/translations/sv.json +3 -1
- package/wizard/lib/cjs/translations/tr.json +3 -1
- package/wizard/lib/cjs/translations/vi.json +3 -1
- package/wizard/lib/cjs/translations/zh.json +3 -1
- package/wizard/lib/es6/Wizard.js +203 -47
- package/wizard/lib/es6/Wizard.js.map +1 -1
- package/wizard/lib/es6/index.d.js.map +1 -1
- package/wizard/lib/es6/style/wizard.shadow.css +4 -0
- package/wizard/lib/es6/translations/de.json +3 -1
- package/wizard/lib/es6/translations/en.json +3 -1
- package/wizard/lib/es6/translations/es.json +3 -1
- package/wizard/lib/es6/translations/fr.json +3 -1
- package/wizard/lib/es6/translations/it.json +3 -1
- package/wizard/lib/es6/translations/ja.json +3 -1
- package/wizard/lib/es6/translations/ko.json +3 -1
- package/wizard/lib/es6/translations/nl.json +3 -1
- package/wizard/lib/es6/translations/pl.json +3 -1
- package/wizard/lib/es6/translations/pt.json +3 -1
- package/wizard/lib/es6/translations/sv.json +3 -1
- package/wizard/lib/es6/translations/tr.json +3 -1
- package/wizard/lib/es6/translations/vi.json +3 -1
- package/wizard/lib/es6/translations/zh.json +3 -1
- package/wizard/lib/types/index.d.ts +17 -0
- package/wizard/package.json +1 -1
- package/button/lib/cjs/Button.js +0 -237
- package/button/lib/cjs/Button.js.map +0 -1
- package/button/lib/cjs/SpinButton.js.map +0 -1
- package/button/lib/cjs/index.d.js +0 -2
- package/button/lib/cjs/index.d.js.map +0 -1
- package/button/lib/es6/Button.js +0 -231
- package/button/lib/es6/Button.js.map +0 -1
- package/button/lib/es6/SpinButton.js.map +0 -1
- package/button/lib/es6/index.d.js +0 -2
- package/button/lib/es6/index.d.js.map +0 -1
- /package/button/lib/cjs/{SpinButton.js → component/AbstractButton/SpinButton.js} +0 -0
- /package/button/lib/es6/{SpinButton.js → component/AbstractButton/SpinButton.js} +0 -0
@@ -23,6 +23,8 @@ var _assignProps2 = require("intergalactic/utils/lib/assignProps");
|
|
23
23
|
var _utils = require("./utils");
|
24
24
|
var _logger = _interopRequireDefault(require("intergalactic/utils/lib/logger"));
|
25
25
|
var _ref4 = require("intergalactic/utils/lib/ref");
|
26
|
+
var _getFocusableIn = require("intergalactic/utils/lib/focus-lock/getFocusableIn");
|
27
|
+
var _ScreenReaderOnly = require("intergalactic/utils/lib/ScreenReaderOnly");
|
26
28
|
var SORT_ICON_WIDTH = 20;
|
27
29
|
exports.SORT_ICON_WIDTH = SORT_ICON_WIDTH;
|
28
30
|
var SORTING_ICON = {
|
@@ -55,8 +57,57 @@ var Head = /*#__PURE__*/function (_Component) {
|
|
55
57
|
}
|
56
58
|
_this = _super.call.apply(_super, [this].concat(args));
|
57
59
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "columns", []);
|
60
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "headCellMap", new Map());
|
61
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "lockedCell", [null, false]);
|
58
62
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "sortWrapperRefs", new Map());
|
59
63
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "defaultWidths", new Map());
|
64
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "handleKeyDown", function (e) {
|
65
|
+
if (e.currentTarget === _this.lockedCell[0]) {
|
66
|
+
var focusableChildren = Array.from(_this.lockedCell[0].children).flatMap(function (node) {
|
67
|
+
return (0, _getFocusableIn.getFocusableIn)(node);
|
68
|
+
});
|
69
|
+
if (_this.lockedCell[1]) {
|
70
|
+
if (e.key === 'Escape') {
|
71
|
+
var _this$lockedCell$;
|
72
|
+
(_this$lockedCell$ = _this.lockedCell[0]) === null || _this$lockedCell$ === void 0 ? void 0 : _this$lockedCell$.focus();
|
73
|
+
_this.lockedCell[1] = false;
|
74
|
+
}
|
75
|
+
if (e.key.startsWith('Arrow')) {
|
76
|
+
e.stopPropagation();
|
77
|
+
}
|
78
|
+
if (e.key === 'Tab') {
|
79
|
+
if (e.target === focusableChildren[0] && e.shiftKey) {
|
80
|
+
var _focusableChildren;
|
81
|
+
(_focusableChildren = focusableChildren[focusableChildren.length - 1]) === null || _focusableChildren === void 0 ? void 0 : _focusableChildren.focus();
|
82
|
+
e.preventDefault();
|
83
|
+
} else if (e.target === focusableChildren[focusableChildren.length - 1] && !e.shiftKey) {
|
84
|
+
var _focusableChildren$;
|
85
|
+
(_focusableChildren$ = focusableChildren[0]) === null || _focusableChildren$ === void 0 ? void 0 : _focusableChildren$.focus();
|
86
|
+
e.preventDefault();
|
87
|
+
}
|
88
|
+
}
|
89
|
+
} else if (e.key === 'Enter') {
|
90
|
+
var _focusableChildren$2;
|
91
|
+
_this.lockedCell[1] = true;
|
92
|
+
(_focusableChildren$2 = focusableChildren[0]) === null || _focusableChildren$2 === void 0 ? void 0 : _focusableChildren$2.focus();
|
93
|
+
} else if (e.key === 'Tab') {
|
94
|
+
var _this$lockedCell$2;
|
95
|
+
(_this$lockedCell$2 = _this.lockedCell[0]) === null || _this$lockedCell$2 === void 0 ? void 0 : _this$lockedCell$2.setAttribute('inert', '');
|
96
|
+
}
|
97
|
+
}
|
98
|
+
});
|
99
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onFocusCell", function (e) {
|
100
|
+
if (e.target === e.currentTarget) {
|
101
|
+
var focusableChildren = Array.from(e.currentTarget.children).flatMap(function (node) {
|
102
|
+
return (0, _getFocusableIn.getFocusableIn)(node);
|
103
|
+
});
|
104
|
+
if (focusableChildren.length === 1) {
|
105
|
+
focusableChildren[0].focus();
|
106
|
+
} else if (focusableChildren.length > 1) {
|
107
|
+
_this.lockedCell = [e.currentTarget, false];
|
108
|
+
}
|
109
|
+
}
|
110
|
+
});
|
60
111
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "bindHandlerSortClick", function (name) {
|
61
112
|
return function (event) {
|
62
113
|
_this.asProps.$onSortClick(name, event);
|
@@ -77,9 +128,10 @@ var Head = /*#__PURE__*/function (_Component) {
|
|
77
128
|
}
|
78
129
|
};
|
79
130
|
});
|
80
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "makeColumnRefHandler", function (column) {
|
131
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "makeColumnRefHandler", function (column, index) {
|
81
132
|
return function (ref) {
|
82
133
|
(0, _ref4.setRef)(column.props.ref, ref);
|
134
|
+
_this.headCellMap.set(index, ref);
|
83
135
|
if (column.props.forwardRef) {
|
84
136
|
(0, _ref4.setRef)(column.props.forwardRef, ref);
|
85
137
|
}
|
@@ -174,6 +226,12 @@ var Head = /*#__PURE__*/function (_Component) {
|
|
174
226
|
return _this;
|
175
227
|
}
|
176
228
|
(0, _createClass2["default"])(Head, [{
|
229
|
+
key: "sortableColumnDescribeId",
|
230
|
+
value: function sortableColumnDescribeId() {
|
231
|
+
var uid = this.asProps.uid;
|
232
|
+
return "".concat(uid, "-column-sortable-describer");
|
233
|
+
}
|
234
|
+
}, {
|
177
235
|
key: "componentDidUpdate",
|
178
236
|
value: function componentDidUpdate() {
|
179
237
|
var _this2 = this;
|
@@ -221,7 +279,6 @@ var Head = /*#__PURE__*/function (_Component) {
|
|
221
279
|
_getFixedStyle2 = (0, _slicedToArray2["default"])(_getFixedStyle, 2),
|
222
280
|
name = _getFixedStyle2[0],
|
223
281
|
value = _getFixedStyle2[1];
|
224
|
-
_logger["default"].warn(column.props.wMax && column.props.sortSizeRecalculation, "You can't use 'sortSizeRecalculation' property with 'wMax' property", "".concat(this.asProps['data-ui-name'] || Head.displayName, "_column_").concat(column.name));
|
225
282
|
var style = (0, _objectSpread2["default"])({
|
226
283
|
flexBasis: column.props.flex === undefined && "".concat(width * cSize, "%")
|
227
284
|
}, column.props.style);
|
@@ -231,6 +288,17 @@ var Head = /*#__PURE__*/function (_Component) {
|
|
231
288
|
if (!column.setVar) {
|
232
289
|
style['flexBasis'] = "var(".concat(column.varWidth, ")");
|
233
290
|
}
|
291
|
+
var ariaDescribedBy = [];
|
292
|
+
if (column.sortable && !column.active) {
|
293
|
+
ariaDescribedBy.push(this.sortableColumnDescribeId());
|
294
|
+
}
|
295
|
+
if (column.parentColumns.length > 0) {
|
296
|
+
var parentName = column.parentColumns[0].name;
|
297
|
+
ariaDescribedBy.push("igc-table-".concat(uid, "-").concat(parentName, "-group"));
|
298
|
+
}
|
299
|
+
var index = this.columns.findIndex(function (flattenCol) {
|
300
|
+
return flattenCol.name === column.name;
|
301
|
+
});
|
234
302
|
return _ref2 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SColumn, _ref2.cn("SColumn", (0, _objectSpread2["default"])((0, _objectSpread2["default"])({
|
235
303
|
"role": isGroup ? undefined : 'columnheader',
|
236
304
|
"scope": isGroup ? 'colgroup' : 'col',
|
@@ -244,17 +312,20 @@ var Head = /*#__PURE__*/function (_Component) {
|
|
244
312
|
"borderRight": isGroup ? false : column.borderRight,
|
245
313
|
"active": isGroup ? false : column.active,
|
246
314
|
"group": isGroup,
|
247
|
-
"tabIndex":
|
315
|
+
"tabIndex": -1,
|
248
316
|
"__excludeProps": ['hidden']
|
249
317
|
}, column.props), {}, {
|
250
|
-
"ref": this.makeColumnRefHandler(column),
|
318
|
+
"ref": this.makeColumnRefHandler(column, index),
|
251
319
|
"onClick": (0, _assignProps2.callAllEventHandlers)(column.props.onClick, column.sortable ? this.bindHandlerSortClick(column.name) : undefined),
|
252
|
-
"onKeyDown": (0, _assignProps2.callAllEventHandlers)(column.props.onKeyDown, column.sortable ? this.bindHandlerKeyDown(column.name) : undefined),
|
320
|
+
"onKeyDown": (0, _assignProps2.callAllEventHandlers)(column.props.onKeyDown, column.sortable ? this.bindHandlerKeyDown(column.name) : undefined, this.handleKeyDown),
|
253
321
|
"style": style,
|
254
322
|
"hidden": hidden,
|
255
|
-
"aria-sort": ariaSortValue
|
323
|
+
"aria-sort": ariaSortValue,
|
324
|
+
"aria-colindex": index + 1,
|
325
|
+
"onFocus": this.onFocusCell,
|
326
|
+
"aria-describedby": ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined
|
256
327
|
})), isGroup ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(SColumn, _ref2.cn("SColumn", {
|
257
|
-
"
|
328
|
+
"id": "igc-table-".concat(uid, "-").concat(column.name, "-group"),
|
258
329
|
"groupHead": true,
|
259
330
|
"use": use,
|
260
331
|
"active": column.active,
|
@@ -279,7 +350,8 @@ var Head = /*#__PURE__*/function (_Component) {
|
|
279
350
|
$scrollRef = _this$asProps2.$scrollRef,
|
280
351
|
sticky = _this$asProps2.sticky,
|
281
352
|
withScrollBar = _this$asProps2.withScrollBar,
|
282
|
-
animationsDisabled = _this$asProps2.animationsDisabled
|
353
|
+
animationsDisabled = _this$asProps2.animationsDisabled,
|
354
|
+
getI18nText = _this$asProps2.getI18nText;
|
283
355
|
this.columns = (0, _utils.flattenColumns)(columnsChildren);
|
284
356
|
var _getScrollOffsetValue = (0, _utils.getScrollOffsetValue)(this.columns),
|
285
357
|
_getScrollOffsetValue2 = (0, _slicedToArray2["default"])(_getScrollOffsetValue, 2),
|
@@ -301,20 +373,19 @@ var Head = /*#__PURE__*/function (_Component) {
|
|
301
373
|
zIndex: 2
|
302
374
|
}, /*#__PURE__*/_react["default"].createElement(SHead, _ref3.cn("SHead", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({
|
303
375
|
"role": 'row',
|
304
|
-
"aria-rowindex": '1',
|
305
376
|
"__excludeProps": ['hidden']
|
306
377
|
}, _ref))), this.renderColumns(columnsChildren, 100 / this.columns.length))), Boolean(withScrollBar) && /*#__PURE__*/_react["default"].createElement("div", _ref3.cn("div", {
|
307
|
-
"style": displayContents
|
308
|
-
"role": 'rowgroup'
|
378
|
+
"style": displayContents
|
309
379
|
}), /*#__PURE__*/_react["default"].createElement("div", _ref3.cn("div", {
|
310
|
-
"style": displayContents
|
311
|
-
"role": 'row'
|
380
|
+
"style": displayContents
|
312
381
|
}), /*#__PURE__*/_react["default"].createElement("div", _ref3.cn("div", {
|
313
|
-
"style": displayContents
|
314
|
-
"role": 'cell'
|
382
|
+
"style": displayContents
|
315
383
|
}), /*#__PURE__*/_react["default"].createElement(_scrollArea["default"].Bar, {
|
316
384
|
orientation: "horizontal"
|
317
|
-
}))))), Children.origin
|
385
|
+
}))))), Children.origin, /*#__PURE__*/_react["default"].createElement(_ScreenReaderOnly.ScreenReaderOnly, _ref3.cn("ScreenReaderOnly", {
|
386
|
+
"aria-hidden": true,
|
387
|
+
"id": this.sortableColumnDescribeId()
|
388
|
+
}), getI18nText === null || getI18nText === void 0 ? void 0 : getI18nText('sortableColumn')));
|
318
389
|
}
|
319
390
|
}]);
|
320
391
|
return Head;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Head.js","names":["_core","require","_react","_interopRequireDefault","_flexBox","_scrollArea","_m","_m2","_assignProps2","_utils","_logger","_ref4","SORT_ICON_WIDTH","exports","SORTING_ICON","desc","SortDesc","asc","SortAsc","ariaSort","displayContents","display","cssToIntDefault","value","defaultValue","arguments","length","undefined","result","parseFloat","Number","isNaN","Math","round","Head","_Component","_inherits2","_super","_createSuper2","_this","_classCallCheck2","_len","args","Array","_key","call","apply","concat","_defineProperty2","_assertThisInitialized2","Map","name","event","asProps","$onSortClick","key","preventDefault","active","ref","sortWrapperRefs","set","column","setRef","props","forwardRef","getAttribute","defaultWidths","has","computedStyle","window","getComputedStyle","minWidth","getPropertyValue","computedWidth","maxWidth","useForRecalculation","Boolean","sortSizeRecalculation","diff","exceptNode","lastMaxWidth","node","recalculatedNodes","forEach","push","setNodeMinWidth","_this$defaultWidths$g","_this$defaultWidths$g2","defaultNodeWidth","get","defaultNodeMinWidth","style","setProperty","diffPart","_this$defaultWidths$g3","_this$defaultWidths$g4","defaultNodeMaxWidth","removeProperty","_this$defaultWidths$g5","_this$defaultWidths$g6","clonedColumn","document","createElement","childNodes","append","cloneNode","styles","getPropertyPriority","body","appendChild","ceil","getBoundingClientRect","width","removeChild","changeMaxNodeWidth","freeSpace","_createClass2","componentDidUpdate","_this2","activeColumn","columns","_column$props","changeSortSize","current","backToColumnDefaults","calculateActiveColumnMinWidth","renderColumns","_this3","map","renderColumn","_ref2","_column$columns","_this$asProps","use","hidden","uid","SColumn","Flex","SHead","Box","SSortWrapper","SSortIcon","sortDirection","ariaSortValue","sortable","isGroup","cSize","flattenColumns","_getFixedStyle","getFixedStyle","_getFixedStyle2","_slicedToArray2","logger","warn","wMax","displayName","_objectSpread2","flexBasis","flex","setVar","varWidth","sstyled","cn","fixed","resizable","borderLeft","borderRight","makeColumnRefHandler","callAllEventHandlers","onClick","bindHandlerSortClick","onKeyDown","bindHandlerKeyDown","Fragment","children","makeSortRefHandler","render","_ref","_ref3","SHeadWrapper","_this$asProps2","Children","columnsChildren","onResize","$scrollRef","sticky","withScrollBar","animationsDisabled","_getScrollOffsetValue","getScrollOffsetValue","_getScrollOffsetValue2","offsetLeftSum","offsetRightSum","Container","role","tabIndex","zIndex","assignProps","Bar","orientation","origin","Component","_default"],"sources":["../../src/Head.tsx"],"sourcesContent":["import React from 'react';\nimport { Component, sstyled, Root } from '@semcore/core';\nimport { Box, Flex } from '@semcore/flex-box';\nimport ScrollArea from '@semcore/scroll-area';\nimport SortDesc from '@semcore/icon/SortDesc/m';\nimport SortAsc from '@semcore/icon/SortAsc/m';\nimport { callAllEventHandlers } from '@semcore/utils/lib/assignProps';\nimport { flattenColumns, getFixedStyle, getScrollOffsetValue } from './utils';\nimport type { Column } from './types';\nimport logger from '@semcore/utils/lib/logger';\nimport { setRef } from '@semcore/utils/lib/ref';\n\nexport const SORT_ICON_WIDTH = 20;\n\nconst SORTING_ICON = {\n desc: SortDesc,\n asc: SortAsc,\n} as const;\nconst ariaSort = {\n desc: 'descending',\n asc: 'ascending',\n} as const;\nconst displayContents = { display: 'contents' };\n\nfunction cssToIntDefault(value: string, defaultValue = 0) {\n let result = parseFloat(value);\n if (Number.isNaN(result)) {\n result = defaultValue;\n }\n\n return Math.round(result);\n}\n\ntype AsProps = {\n $onSortClick: (name: string, event: React.MouseEvent | React.KeyboardEvent) => void;\n $scrollRef: (instance: unknown) => void;\n use: 'primary' | 'secondary';\n columnsChildren: Column[];\n onResize: ResizeObserverCallback;\n sticky: boolean;\n ['data-ui-name']: string;\n uid?: string;\n withScrollBar?: boolean;\n animationsDisabled?: boolean;\n};\n\nclass Head extends Component<AsProps> {\n columns: Column[] = [];\n\n static displayName: string;\n\n sortWrapperRefs = new Map<Node, boolean>();\n defaultWidths = new Map<\n HTMLElement,\n {\n minWidth: number;\n maxWidth: number | null;\n computedWidth: number;\n useForRecalculation: boolean;\n }\n >();\n\n bindHandlerSortClick = (name: string) => (event: React.MouseEvent) => {\n this.asProps.$onSortClick(name, event);\n };\n\n bindHandlerKeyDown = (name: string) => (event: React.KeyboardEvent) => {\n if (event.key === 'Enter' || event.key === ' ') {\n event.preventDefault();\n this.asProps.$onSortClick(name, event);\n }\n };\n\n makeSortRefHandler = (active: boolean) => (ref: HTMLElement | null) => {\n if (ref) {\n this.sortWrapperRefs.set(ref, active);\n }\n };\n\n makeColumnRefHandler = (column: Column) => (ref: HTMLElement | null) => {\n setRef(column.props.ref, ref);\n if (column.props.forwardRef) {\n setRef(column.props.forwardRef, ref);\n }\n\n if (ref && ref.getAttribute('scope') === 'col') {\n if (!this.defaultWidths.has(ref)) {\n const computedStyle = window.getComputedStyle(ref);\n\n this.defaultWidths.set(ref, {\n minWidth: cssToIntDefault(computedStyle.getPropertyValue('min-width')),\n computedWidth: cssToIntDefault(computedStyle.getPropertyValue('width')),\n maxWidth: cssToIntDefault(computedStyle.getPropertyValue('max-width')) || null,\n useForRecalculation: Boolean(column.props.sortSizeRecalculation),\n });\n }\n }\n };\n\n componentDidUpdate() {\n let activeColumn: HTMLElement | null = null;\n\n this.columns.forEach((column) => {\n const { changeSortSize, ref } = column.props;\n\n if (column.active && changeSortSize && ref.current) {\n activeColumn = ref.current;\n }\n\n if (ref.current) {\n this.backToColumnDefaults(ref.current);\n }\n });\n\n if (activeColumn) {\n this.calculateActiveColumnMinWidth(activeColumn);\n }\n }\n\n changeMaxNodeWidth = (diff: number, exceptNode: HTMLElement) => {\n let lastMaxWidth = 0;\n let node: HTMLElement | null = null;\n const recalculatedNodes: HTMLElement[] = [];\n\n this.defaultWidths.forEach((value, key) => {\n if (value.computedWidth > lastMaxWidth && key !== exceptNode) {\n node = key;\n lastMaxWidth = value.computedWidth;\n }\n if (value.useForRecalculation) {\n recalculatedNodes.push(key);\n }\n });\n\n const setNodeMinWidth = (node: HTMLElement, diff: number) => {\n const defaultNodeWidth = this.defaultWidths.get(node)?.computedWidth;\n const defaultNodeMinWidth = this.defaultWidths.get(node)?.minWidth;\n\n if (defaultNodeWidth) {\n const maxWidth = defaultNodeWidth - diff;\n node.style.setProperty('max-width', `${maxWidth}px`);\n\n if (defaultNodeMinWidth) {\n node.style.setProperty('min-width', `min(${maxWidth}px, ${defaultNodeMinWidth}px)`);\n }\n }\n };\n\n if (recalculatedNodes.length > 0) {\n const diffPart = diff / recalculatedNodes.length;\n\n recalculatedNodes.forEach((node) => {\n setNodeMinWidth(node, diffPart);\n });\n } else if (node !== null) {\n setNodeMinWidth(node, diff);\n }\n };\n\n backToColumnDefaults = (node: HTMLElement) => {\n const defaultNodeMinWidth = this.defaultWidths.get(node)?.minWidth;\n const defaultNodeMaxWidth = this.defaultWidths.get(node)?.maxWidth;\n\n node.style.setProperty('min-width', defaultNodeMinWidth + 'px');\n\n if (defaultNodeMaxWidth) {\n node.style.setProperty('max-width', defaultNodeMaxWidth + 'px');\n } else {\n node.style.removeProperty('max-width');\n }\n };\n\n calculateActiveColumnMinWidth = (node: HTMLElement) => {\n const clonedColumn = document.createElement('div');\n const computedStyle = window.getComputedStyle(node);\n\n node.childNodes.forEach((node) => {\n if (!this.sortWrapperRefs.get(node)) {\n clonedColumn.append(node.cloneNode(true));\n }\n });\n\n clonedColumn.style.setProperty('visibility', 'hidden', 'important');\n\n const styles = [\n 'display',\n 'flex',\n 'margin',\n 'padding',\n 'background',\n 'font-style',\n 'font-width',\n 'font-size',\n 'font-weight',\n ];\n\n styles.forEach((key) => {\n clonedColumn.style.setProperty(\n key,\n computedStyle.getPropertyValue(key),\n computedStyle.getPropertyPriority(key),\n );\n });\n\n clonedColumn.style.setProperty('width', 'fit-content', 'important');\n\n document.body.appendChild(clonedColumn);\n\n const computedWidth = Math.ceil(clonedColumn.getBoundingClientRect().width);\n\n document.body.removeChild(clonedColumn);\n\n const defaultNodeWidth = this.defaultWidths.get(node)?.computedWidth ?? 0;\n\n if (computedWidth >= defaultNodeWidth) {\n node.style.setProperty('min-width', defaultNodeWidth + SORT_ICON_WIDTH + 'px');\n this.changeMaxNodeWidth(SORT_ICON_WIDTH, node);\n } else {\n const freeSpace = defaultNodeWidth - computedWidth;\n\n if (freeSpace < SORT_ICON_WIDTH) {\n node.style.setProperty('min-width', computedWidth + SORT_ICON_WIDTH + 'px');\n this.changeMaxNodeWidth(freeSpace, node);\n }\n }\n };\n\n renderColumns(columns: Column[], width: number) {\n return columns.map((column) => this.renderColumn(column, width));\n }\n\n renderColumn(column: Column, width: number) {\n const { styles, use, hidden, uid } = this.asProps;\n const SColumn = Flex as any;\n const SHead = Box;\n const SSortWrapper = 'div';\n const SSortIcon = SORTING_ICON[column.sortDirection];\n const ariaSortValue =\n column.sortable && column.active ? ariaSort[column.sortDirection] : undefined;\n const isGroup = column.columns?.length > 0;\n const cSize = isGroup ? flattenColumns(column.columns).length : 1;\n const [name, value] = getFixedStyle(column, this.columns);\n\n logger.warn(\n column.props.wMax && column.props.sortSizeRecalculation,\n \"You can't use 'sortSizeRecalculation' property with 'wMax' property\",\n `${this.asProps['data-ui-name'] || Head.displayName}_column_${column.name}`,\n );\n\n const style = {\n flexBasis: column.props.flex === undefined && `${width * cSize}%`,\n ...column.props.style,\n };\n\n if (name !== undefined && value !== undefined) {\n style[name] = value;\n }\n\n if (!column.setVar) {\n style['flexBasis'] = `var(${column.varWidth})`;\n }\n\n return sstyled(styles)(\n <SColumn\n role={isGroup ? undefined : 'columnheader'}\n scope={isGroup ? 'colgroup' : 'col'}\n key={column.name}\n id={`igc-table-${uid}-${column.name}`}\n use={use}\n fixed={column.fixed}\n resizable={column.resizable}\n sortable={column.sortable}\n borderLeft={isGroup ? false : column.borderLeft}\n borderRight={isGroup ? false : column.borderRight}\n active={isGroup ? false : column.active}\n group={isGroup}\n tabIndex={column.sortable ? 0 : undefined}\n __excludeProps={['hidden']}\n {...column.props}\n ref={this.makeColumnRefHandler(column)}\n onClick={callAllEventHandlers(\n column.props.onClick,\n column.sortable ? this.bindHandlerSortClick(column.name) : undefined,\n )}\n onKeyDown={callAllEventHandlers(\n column.props.onKeyDown,\n column.sortable ? this.bindHandlerKeyDown(column.name) : undefined,\n )}\n style={style}\n hidden={hidden}\n aria-sort={ariaSortValue}\n >\n {isGroup ? (\n <>\n <SColumn\n role='columnheader'\n groupHead\n use={use}\n active={column.active}\n borderLeft={column.borderLeft}\n borderRight={column.borderRight}\n >\n <div>{column.props.children}</div>\n </SColumn>\n <SHead>{this.renderColumns(column.columns, 100 / cSize)}</SHead>\n </>\n ) : (\n <>\n {column.props.children}\n {column.sortable ? (\n <SSortWrapper ref={this.makeSortRefHandler(column.active)}>\n <SSortIcon />\n </SSortWrapper>\n ) : null}\n </>\n )}\n </SColumn>,\n );\n }\n\n render() {\n const SHead = Root;\n const SHeadWrapper = Box as any;\n const {\n Children,\n styles,\n columnsChildren,\n onResize,\n $scrollRef,\n sticky,\n withScrollBar,\n animationsDisabled,\n } = this.asProps;\n\n this.columns = flattenColumns(columnsChildren);\n\n const [offsetLeftSum, offsetRightSum] = getScrollOffsetValue(this.columns);\n\n logger.warn(\n sticky,\n \"'sticky' property is deprecated, use '<Sticky/>' wrapper\",\n this.asProps['data-ui-name'] || Head.displayName,\n );\n\n return sstyled(styles)(\n <SHeadWrapper sticky={sticky} animationsDisabled={animationsDisabled}>\n <ScrollArea\n leftOffset={offsetLeftSum}\n rightOffset={offsetRightSum}\n shadow\n onResize={onResize}\n >\n <ScrollArea.Container ref={$scrollRef} role='rowgroup' tabIndex={-1} zIndex={2}>\n <SHead render={Box} role='row' aria-rowindex='1' __excludeProps={['hidden']}>\n {this.renderColumns(columnsChildren, 100 / this.columns.length)}\n </SHead>\n </ScrollArea.Container>\n {Boolean(withScrollBar) && (\n <div style={displayContents} role='rowgroup'>\n <div style={displayContents} role='row'>\n <div style={displayContents} role='cell'>\n <ScrollArea.Bar orientation='horizontal' />\n </div>\n </div>\n </div>\n )}\n </ScrollArea>\n {Children.origin}\n </SHeadWrapper>,\n );\n }\n}\n\nexport default Head;\n"],"mappings":";;;;;;;;;;;;;;;AACA,IAAAA,KAAA,GAAAC,OAAA;AADA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,WAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,EAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,GAAA,GAAAJ,sBAAA,CAAAF,OAAA;AACA,IAAAO,aAAA,GAAAP,OAAA;AACA,IAAAQ,MAAA,GAAAR,OAAA;AAEA,IAAAS,OAAA,GAAAP,sBAAA,CAAAF,OAAA;AACA,IAAAU,KAAA,GAAAV,OAAA;AAEO,IAAMW,eAAe,GAAG,EAAE;AAACC,OAAA,CAAAD,eAAA,GAAAA,eAAA;AAElC,IAAME,YAAY,GAAG;EACnBC,IAAI,EAAEC,aAAQ;EACdC,GAAG,EAAEC;AACP,CAAU;AACV,IAAMC,QAAQ,GAAG;EACfJ,IAAI,EAAE,YAAY;EAClBE,GAAG,EAAE;AACP,CAAU;AACV,IAAMG,eAAe,GAAG;EAAEC,OAAO,EAAE;AAAW,CAAC;AAE/C,SAASC,eAAeA,CAACC,KAAa,EAAoB;EAAA,IAAlBC,YAAY,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC;EACtD,IAAIG,MAAM,GAAGC,UAAU,CAACN,KAAK,CAAC;EAC9B,IAAIO,MAAM,CAACC,KAAK,CAACH,MAAM,CAAC,EAAE;IACxBA,MAAM,GAAGJ,YAAY;EACvB;EAEA,OAAOQ,IAAI,CAACC,KAAK,CAACL,MAAM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AA,YAAAoG,aAAA,QAAA4E,KAAA,CAAAhB,EAAA;QAAA,SAAY9I,eAAe;QAAA,QAAO;MAAM,iBACtClB,MAAA,YAAAoG,aAAA,CAACjG,WAAA,WAAU,CAACiM,GAAG;QAACC,WAAW,EAAC;MAAY,EAAG,CACvC,CACF,CAET,CACU,EACZlB,QAAQ,CAACmB,MAAM,CACH;IAEnB;EAAC;EAAA,OAAAtK,IAAA;AAAA,EApUgBuK,eAAS;AAAA,IAAAzJ,gBAAA,aAAtBd,IAAI;AAAA,IAAAwK,QAAA,GAuUKxK,IAAI;AAAArB,OAAA,cAAA6L,QAAA"}
|
1
|
+
{"version":3,"file":"Head.js","names":["_core","require","_react","_interopRequireDefault","_flexBox","_scrollArea","_m","_m2","_assignProps2","_utils","_logger","_ref4","_getFocusableIn","_ScreenReaderOnly","SORT_ICON_WIDTH","exports","SORTING_ICON","desc","SortDesc","asc","SortAsc","ariaSort","displayContents","display","cssToIntDefault","value","defaultValue","arguments","length","undefined","result","parseFloat","Number","isNaN","Math","round","Head","_Component","_inherits2","_super","_createSuper2","_this","_classCallCheck2","_len","args","Array","_key","call","apply","concat","_defineProperty2","_assertThisInitialized2","Map","e","currentTarget","lockedCell","focusableChildren","from","children","flatMap","node","getFocusableIn","key","_this$lockedCell$","focus","startsWith","stopPropagation","target","shiftKey","_focusableChildren","preventDefault","_focusableChildren$","_focusableChildren$2","_this$lockedCell$2","setAttribute","name","event","asProps","$onSortClick","active","ref","sortWrapperRefs","set","column","index","setRef","props","headCellMap","forwardRef","getAttribute","defaultWidths","has","computedStyle","window","getComputedStyle","minWidth","getPropertyValue","computedWidth","maxWidth","useForRecalculation","Boolean","sortSizeRecalculation","diff","exceptNode","lastMaxWidth","recalculatedNodes","forEach","push","setNodeMinWidth","_this$defaultWidths$g","_this$defaultWidths$g2","defaultNodeWidth","get","defaultNodeMinWidth","style","setProperty","diffPart","_this$defaultWidths$g3","_this$defaultWidths$g4","defaultNodeMaxWidth","removeProperty","_this$defaultWidths$g5","_this$defaultWidths$g6","clonedColumn","document","createElement","childNodes","append","cloneNode","styles","getPropertyPriority","body","appendChild","ceil","getBoundingClientRect","width","removeChild","changeMaxNodeWidth","freeSpace","_createClass2","sortableColumnDescribeId","uid","componentDidUpdate","_this2","activeColumn","columns","_column$props","changeSortSize","current","backToColumnDefaults","calculateActiveColumnMinWidth","renderColumns","_this3","map","renderColumn","_ref2","_column$columns","_this$asProps","use","hidden","SColumn","Flex","SHead","Box","SSortWrapper","SSortIcon","sortDirection","ariaSortValue","sortable","isGroup","cSize","flattenColumns","_getFixedStyle","getFixedStyle","_getFixedStyle2","_slicedToArray2","_objectSpread2","flexBasis","flex","setVar","varWidth","ariaDescribedBy","parentColumns","parentName","findIndex","flattenCol","sstyled","cn","fixed","resizable","borderLeft","borderRight","makeColumnRefHandler","callAllEventHandlers","onClick","bindHandlerSortClick","onKeyDown","bindHandlerKeyDown","handleKeyDown","onFocusCell","join","Fragment","makeSortRefHandler","render","_ref","_ref3","SHeadWrapper","_this$asProps2","Children","columnsChildren","onResize","$scrollRef","sticky","withScrollBar","animationsDisabled","getI18nText","_getScrollOffsetValue","getScrollOffsetValue","_getScrollOffsetValue2","offsetLeftSum","offsetRightSum","logger","warn","displayName","Container","role","tabIndex","zIndex","assignProps","Bar","orientation","origin","ScreenReaderOnly","Component","_default"],"sources":["../../src/Head.tsx"],"sourcesContent":["import React from 'react';\nimport { Component, sstyled, Root } from '@semcore/core';\nimport { Box, Flex } from '@semcore/flex-box';\nimport ScrollArea from '@semcore/scroll-area';\nimport SortDesc from '@semcore/icon/SortDesc/m';\nimport SortAsc from '@semcore/icon/SortAsc/m';\nimport { callAllEventHandlers } from '@semcore/utils/lib/assignProps';\nimport { flattenColumns, getFixedStyle, getScrollOffsetValue } from './utils';\nimport { ColIndex, Column } from './types';\nimport logger from '@semcore/utils/lib/logger';\nimport { setRef } from '@semcore/utils/lib/ref';\nimport { getFocusableIn } from '@semcore/utils/lib/focus-lock/getFocusableIn';\nimport { ScreenReaderOnly } from '@semcore/utils/lib/ScreenReaderOnly';\n\nexport const SORT_ICON_WIDTH = 20;\n\nconst SORTING_ICON = {\n desc: SortDesc,\n asc: SortAsc,\n} as const;\nconst ariaSort = {\n desc: 'descending',\n asc: 'ascending',\n} as const;\nconst displayContents = { display: 'contents' };\n\nfunction cssToIntDefault(value: string, defaultValue = 0) {\n let result = parseFloat(value);\n if (Number.isNaN(result)) {\n result = defaultValue;\n }\n\n return Math.round(result);\n}\n\ntype AsProps = {\n $onSortClick: (name: string, event: React.MouseEvent | React.KeyboardEvent) => void;\n $scrollRef: (instance: unknown) => void;\n use: 'primary' | 'secondary';\n columnsChildren: Column[];\n onResize: ResizeObserverCallback;\n sticky: boolean;\n ['data-ui-name']: string;\n uid?: string;\n withScrollBar?: boolean;\n animationsDisabled?: boolean;\n getI18nText?: (str: string) => string;\n};\n\nclass Head extends Component<AsProps> {\n columns: Column[] = [];\n\n static displayName: string;\n\n headCellMap = new Map<ColIndex, HTMLElement | null>();\n lockedCell: [HTMLElement | null, boolean] = [null, false];\n\n sortWrapperRefs = new Map<Node, boolean>();\n defaultWidths = new Map<\n HTMLElement,\n {\n minWidth: number;\n maxWidth: number | null;\n computedWidth: number;\n useForRecalculation: boolean;\n }\n >();\n\n sortableColumnDescribeId() {\n const { uid } = this.asProps;\n return `${uid}-column-sortable-describer`;\n }\n\n handleKeyDown = (e: React.KeyboardEvent) => {\n if (e.currentTarget === this.lockedCell[0]) {\n const focusableChildren = Array.from(this.lockedCell[0].children).flatMap((node) =>\n getFocusableIn(node as HTMLElement),\n );\n\n if (this.lockedCell[1]) {\n if (e.key === 'Escape') {\n this.lockedCell[0]?.focus();\n this.lockedCell[1] = false;\n }\n if (e.key.startsWith('Arrow')) {\n e.stopPropagation();\n }\n if (e.key === 'Tab') {\n if (e.target === focusableChildren[0] && e.shiftKey) {\n focusableChildren[focusableChildren.length - 1]?.focus();\n e.preventDefault();\n } else if (e.target === focusableChildren[focusableChildren.length - 1] && !e.shiftKey) {\n focusableChildren[0]?.focus();\n e.preventDefault();\n }\n }\n } else if (e.key === 'Enter') {\n this.lockedCell[1] = true;\n focusableChildren[0]?.focus();\n } else if (e.key === 'Tab') {\n this.lockedCell[0]?.setAttribute('inert', '');\n }\n }\n };\n\n onFocusCell = (e: React.FocusEvent<HTMLElement, HTMLElement>) => {\n if (e.target === e.currentTarget) {\n const focusableChildren = Array.from(e.currentTarget.children).flatMap((node) =>\n getFocusableIn(node as HTMLElement),\n );\n\n if (focusableChildren.length === 1) {\n focusableChildren[0].focus();\n } else if (focusableChildren.length > 1) {\n this.lockedCell = [e.currentTarget, false];\n }\n }\n };\n\n bindHandlerSortClick = (name: string) => (event: React.MouseEvent) => {\n this.asProps.$onSortClick(name, event);\n };\n\n bindHandlerKeyDown = (name: string) => (event: React.KeyboardEvent) => {\n if (event.key === 'Enter' || event.key === ' ') {\n event.preventDefault();\n this.asProps.$onSortClick(name, event);\n }\n };\n\n makeSortRefHandler = (active: boolean) => (ref: HTMLElement | null) => {\n if (ref) {\n this.sortWrapperRefs.set(ref, active);\n }\n };\n\n makeColumnRefHandler = (column: Column, index: number) => (ref: HTMLElement | null) => {\n setRef(column.props.ref, ref);\n this.headCellMap.set(index, ref);\n if (column.props.forwardRef) {\n setRef(column.props.forwardRef, ref);\n }\n\n if (ref && ref.getAttribute('scope') === 'col') {\n if (!this.defaultWidths.has(ref)) {\n const computedStyle = window.getComputedStyle(ref);\n\n this.defaultWidths.set(ref, {\n minWidth: cssToIntDefault(computedStyle.getPropertyValue('min-width')),\n computedWidth: cssToIntDefault(computedStyle.getPropertyValue('width')),\n maxWidth: cssToIntDefault(computedStyle.getPropertyValue('max-width')) || null,\n useForRecalculation: Boolean(column.props.sortSizeRecalculation),\n });\n }\n }\n };\n\n componentDidUpdate() {\n let activeColumn: HTMLElement | null = null;\n\n this.columns.forEach((column) => {\n const { changeSortSize, ref } = column.props;\n\n if (column.active && changeSortSize && ref.current) {\n activeColumn = ref.current;\n }\n\n if (ref.current) {\n this.backToColumnDefaults(ref.current);\n }\n });\n\n if (activeColumn) {\n this.calculateActiveColumnMinWidth(activeColumn);\n }\n }\n\n changeMaxNodeWidth = (diff: number, exceptNode: HTMLElement) => {\n let lastMaxWidth = 0;\n let node: HTMLElement | null = null;\n const recalculatedNodes: HTMLElement[] = [];\n\n this.defaultWidths.forEach((value, key) => {\n if (value.computedWidth > lastMaxWidth && key !== exceptNode) {\n node = key;\n lastMaxWidth = value.computedWidth;\n }\n if (value.useForRecalculation) {\n recalculatedNodes.push(key);\n }\n });\n\n const setNodeMinWidth = (node: HTMLElement, diff: number) => {\n const defaultNodeWidth = this.defaultWidths.get(node)?.computedWidth;\n const defaultNodeMinWidth = this.defaultWidths.get(node)?.minWidth;\n\n if (defaultNodeWidth) {\n const maxWidth = defaultNodeWidth - diff;\n node.style.setProperty('max-width', `${maxWidth}px`);\n\n if (defaultNodeMinWidth) {\n node.style.setProperty('min-width', `min(${maxWidth}px, ${defaultNodeMinWidth}px)`);\n }\n }\n };\n\n if (recalculatedNodes.length > 0) {\n const diffPart = diff / recalculatedNodes.length;\n\n recalculatedNodes.forEach((node) => {\n setNodeMinWidth(node, diffPart);\n });\n } else if (node !== null) {\n setNodeMinWidth(node, diff);\n }\n };\n\n backToColumnDefaults = (node: HTMLElement) => {\n const defaultNodeMinWidth = this.defaultWidths.get(node)?.minWidth;\n const defaultNodeMaxWidth = this.defaultWidths.get(node)?.maxWidth;\n\n node.style.setProperty('min-width', defaultNodeMinWidth + 'px');\n\n if (defaultNodeMaxWidth) {\n node.style.setProperty('max-width', defaultNodeMaxWidth + 'px');\n } else {\n node.style.removeProperty('max-width');\n }\n };\n\n calculateActiveColumnMinWidth = (node: HTMLElement) => {\n const clonedColumn = document.createElement('div');\n const computedStyle = window.getComputedStyle(node);\n\n node.childNodes.forEach((node) => {\n if (!this.sortWrapperRefs.get(node)) {\n clonedColumn.append(node.cloneNode(true));\n }\n });\n\n clonedColumn.style.setProperty('visibility', 'hidden', 'important');\n\n const styles = [\n 'display',\n 'flex',\n 'margin',\n 'padding',\n 'background',\n 'font-style',\n 'font-width',\n 'font-size',\n 'font-weight',\n ];\n\n styles.forEach((key) => {\n clonedColumn.style.setProperty(\n key,\n computedStyle.getPropertyValue(key),\n computedStyle.getPropertyPriority(key),\n );\n });\n\n clonedColumn.style.setProperty('width', 'fit-content', 'important');\n\n document.body.appendChild(clonedColumn);\n\n const computedWidth = Math.ceil(clonedColumn.getBoundingClientRect().width);\n\n document.body.removeChild(clonedColumn);\n\n const defaultNodeWidth = this.defaultWidths.get(node)?.computedWidth ?? 0;\n\n if (computedWidth >= defaultNodeWidth) {\n node.style.setProperty('min-width', defaultNodeWidth + SORT_ICON_WIDTH + 'px');\n this.changeMaxNodeWidth(SORT_ICON_WIDTH, node);\n } else {\n const freeSpace = defaultNodeWidth - computedWidth;\n\n if (freeSpace < SORT_ICON_WIDTH) {\n node.style.setProperty('min-width', computedWidth + SORT_ICON_WIDTH + 'px');\n this.changeMaxNodeWidth(freeSpace, node);\n }\n }\n };\n\n renderColumns(columns: Column[], width: number) {\n return columns.map((column) => this.renderColumn(column, width));\n }\n\n renderColumn(column: Column, width: number) {\n const { styles, use, hidden, uid } = this.asProps;\n const SColumn = Flex as any;\n const SHead = Box;\n const SSortWrapper = 'div';\n const SSortIcon = SORTING_ICON[column.sortDirection];\n const ariaSortValue =\n column.sortable && column.active ? ariaSort[column.sortDirection] : undefined;\n const isGroup = column.columns?.length > 0;\n const cSize = isGroup ? flattenColumns(column.columns).length : 1;\n const [name, value] = getFixedStyle(column, this.columns);\n\n const style = {\n flexBasis: column.props.flex === undefined && `${width * cSize}%`,\n ...column.props.style,\n };\n\n if (name !== undefined && value !== undefined) {\n style[name] = value;\n }\n\n if (!column.setVar) {\n style['flexBasis'] = `var(${column.varWidth})`;\n }\n\n const ariaDescribedBy = [];\n if (column.sortable && !column.active) {\n ariaDescribedBy.push(this.sortableColumnDescribeId());\n }\n if (column.parentColumns.length > 0) {\n const parentName = column.parentColumns[0].name;\n ariaDescribedBy.push(`igc-table-${uid}-${parentName}-group`);\n }\n\n const index = this.columns.findIndex((flattenCol) => flattenCol.name === column.name);\n\n return sstyled(styles)(\n <SColumn\n role={isGroup ? undefined : 'columnheader'}\n scope={isGroup ? 'colgroup' : 'col'}\n key={column.name}\n id={`igc-table-${uid}-${column.name}`}\n use={use}\n fixed={column.fixed}\n resizable={column.resizable}\n sortable={column.sortable}\n borderLeft={isGroup ? false : column.borderLeft}\n borderRight={isGroup ? false : column.borderRight}\n active={isGroup ? false : column.active}\n group={isGroup}\n tabIndex={-1}\n __excludeProps={['hidden']}\n {...column.props}\n ref={this.makeColumnRefHandler(column, index)}\n onClick={callAllEventHandlers(\n column.props.onClick,\n column.sortable ? this.bindHandlerSortClick(column.name) : undefined,\n )}\n onKeyDown={callAllEventHandlers(\n column.props.onKeyDown,\n column.sortable ? this.bindHandlerKeyDown(column.name) : undefined,\n this.handleKeyDown,\n )}\n style={style}\n hidden={hidden}\n aria-sort={ariaSortValue}\n aria-colindex={index + 1}\n onFocus={this.onFocusCell}\n aria-describedby={ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined}\n >\n {isGroup ? (\n <>\n <SColumn\n id={`igc-table-${uid}-${column.name}-group`}\n groupHead\n use={use}\n active={column.active}\n borderLeft={column.borderLeft}\n borderRight={column.borderRight}\n >\n <div>{column.props.children}</div>\n </SColumn>\n <SHead>{this.renderColumns(column.columns, 100 / cSize)}</SHead>\n </>\n ) : (\n <>\n {column.props.children}\n {column.sortable ? (\n <SSortWrapper ref={this.makeSortRefHandler(column.active)}>\n <SSortIcon />\n </SSortWrapper>\n ) : null}\n </>\n )}\n </SColumn>,\n );\n }\n\n render() {\n const SHead = Root;\n const SHeadWrapper = Box as any;\n const {\n Children,\n styles,\n columnsChildren,\n onResize,\n $scrollRef,\n sticky,\n withScrollBar,\n animationsDisabled,\n getI18nText,\n } = this.asProps;\n\n this.columns = flattenColumns(columnsChildren);\n\n const [offsetLeftSum, offsetRightSum] = getScrollOffsetValue(this.columns);\n\n logger.warn(\n sticky,\n \"'sticky' property is deprecated, use '<Sticky/>' wrapper\",\n this.asProps['data-ui-name'] || Head.displayName,\n );\n\n return sstyled(styles)(\n <SHeadWrapper sticky={sticky} animationsDisabled={animationsDisabled}>\n <ScrollArea\n leftOffset={offsetLeftSum}\n rightOffset={offsetRightSum}\n shadow\n onResize={onResize}\n >\n <ScrollArea.Container ref={$scrollRef} role='rowgroup' tabIndex={-1} zIndex={2}>\n <SHead render={Box} role='row' __excludeProps={['hidden']}>\n {this.renderColumns(columnsChildren, 100 / this.columns.length)}\n </SHead>\n </ScrollArea.Container>\n {Boolean(withScrollBar) && (\n <div style={displayContents}>\n <div style={displayContents}>\n <div style={displayContents}>\n <ScrollArea.Bar orientation='horizontal' />\n </div>\n </div>\n </div>\n )}\n </ScrollArea>\n {Children.origin}\n <ScreenReaderOnly aria-hidden={true} id={this.sortableColumnDescribeId()}>\n {getI18nText?.('sortableColumn')}\n </ScreenReaderOnly>\n </SHeadWrapper>,\n );\n }\n}\n\nexport default Head;\n"],"mappings":";;;;;;;;;;;;;;;AACA,IAAAA,KAAA,GAAAC,OAAA;AADA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,WAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,EAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,GAAA,GAAAJ,sBAAA,CAAAF,OAAA;AACA,IAAAO,aAAA,GAAAP,OAAA;AACA,IAAAQ,MAAA,GAAAR,OAAA;AAEA,IAAAS,OAAA,GAAAP,sBAAA,CAAAF,OAAA;AACA,IAAAU,KAAA,GAAAV,OAAA;AACA,IAAAW,eAAA,GAAAX,OAAA;AACA,IAAAY,iBAAA,GAAAZ,OAAA;AAEO,IAAMa,eAAe,GAAG,EAAE;AAACC,OAAA,CAAAD,eAAA,GAAAA,eAAA;AAElC,I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,KAAK;QAAA,kBAAiB,CAAC,QAAQ;MAAC,GAAAxB,IAAA,KACtD,IAAI,CAACrD,aAAa,CAAC0D,eAAe,EAAE,GAAG,GAAG,IAAI,CAAChE,OAAO,CAACrH,MAAM,CAAC,CACzD,CACa,EACtBwE,OAAO,CAACiH,aAAa,CAAC,iBACrBnN,MAAA,YAAA2H,aAAA,QAAAgF,KAAA,CAAAlB,EAAA;QAAA,SAAYrK;MAAe,iBACzBpB,MAAA,YAAA2H,aAAA,QAAAgF,KAAA,CAAAlB,EAAA;QAAA,SAAYrK;MAAe,iBACzBpB,MAAA,YAAA2H,aAAA,QAAAgF,KAAA,CAAAlB,EAAA;QAAA,SAAYrK;MAAe,iBACzBpB,MAAA,YAAA2H,aAAA,CAACxH,WAAA,WAAU,CAACgO,GAAG;QAACC,WAAW,EAAC;MAAY,EAAG,CACvC,CACF,CAET,CACU,EACZtB,QAAQ,CAACuB,MAAM,eAChBrO,MAAA,YAAA2H,aAAA,CAAChH,iBAAA,CAAA2N,gBAAgB,EAAA3B,KAAA,CAAAlB,EAAA;QAAA,eAAc,IAAI;QAAA,MAAM,IAAI,CAAC/C,wBAAwB;MAAE,IACrE2E,WAAW,aAAXA,WAAW,uBAAXA,WAAW,CAAG,gBAAgB,CAAC,CACf,CACN;IAEnB;EAAC;EAAA,OAAAnL,IAAA;AAAA,EAxYgBqM,eAAS;AAAA,IAAAvL,gBAAA,aAAtBd,IAAI;AAAA,IAAAsM,QAAA,GA2YKtM,IAAI;AAAArB,OAAA,cAAA2N,QAAA"}
|
@@ -350,6 +350,7 @@ SCell {
|
|
350
350
|
white-space: nowrap;
|
351
351
|
font-variant-numeric: tabular-nums;
|
352
352
|
transition: width calc(var(--intergalactic-duration-extra-fast, 100) * 1ms) ease-in-out;
|
353
|
+
outline: none;
|
353
354
|
}
|
354
355
|
|
355
356
|
SCell[use='primary'] {
|
@@ -389,6 +390,19 @@ SCell[theme='danger'] {
|
|
389
390
|
background-color: var(--intergalactic-table-td-cell-critical, #fff0f7);
|
390
391
|
}
|
391
392
|
|
393
|
+
SCell:focus-visible {
|
394
|
+
position: relative;
|
395
|
+
|
396
|
+
&:after {
|
397
|
+
position: absolute;
|
398
|
+
display: block;
|
399
|
+
content: '';
|
400
|
+
inset: 3px;
|
401
|
+
box-shadow: var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5));
|
402
|
+
pointer-events: none;
|
403
|
+
}
|
404
|
+
}
|
405
|
+
|
392
406
|
SHeightHold {
|
393
407
|
position: absolute;
|
394
408
|
top: 0;
|
@@ -0,0 +1,39 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
5
|
+
value: true
|
6
|
+
});
|
7
|
+
exports.localizedMessages = void 0;
|
8
|
+
var _de = _interopRequireDefault(require("./de.json"));
|
9
|
+
var _en = _interopRequireDefault(require("./en.json"));
|
10
|
+
var _es = _interopRequireDefault(require("./es.json"));
|
11
|
+
var _fr = _interopRequireDefault(require("./fr.json"));
|
12
|
+
var _it = _interopRequireDefault(require("./it.json"));
|
13
|
+
var _ja = _interopRequireDefault(require("./ja.json"));
|
14
|
+
var _ko = _interopRequireDefault(require("./ko.json"));
|
15
|
+
var _nl = _interopRequireDefault(require("./nl.json"));
|
16
|
+
var _pt = _interopRequireDefault(require("./pt.json"));
|
17
|
+
var _tr = _interopRequireDefault(require("./tr.json"));
|
18
|
+
var _vi = _interopRequireDefault(require("./vi.json"));
|
19
|
+
var _zh = _interopRequireDefault(require("./zh.json"));
|
20
|
+
var _pl = _interopRequireDefault(require("./pl.json"));
|
21
|
+
var _sv = _interopRequireDefault(require("./sv.json"));
|
22
|
+
var localizedMessages = {
|
23
|
+
de: _de["default"],
|
24
|
+
en: _en["default"],
|
25
|
+
es: _es["default"],
|
26
|
+
fr: _fr["default"],
|
27
|
+
it: _it["default"],
|
28
|
+
ja: _ja["default"],
|
29
|
+
ko: _ko["default"],
|
30
|
+
nl: _nl["default"],
|
31
|
+
pt: _pt["default"],
|
32
|
+
tr: _tr["default"],
|
33
|
+
vi: _vi["default"],
|
34
|
+
zh: _zh["default"],
|
35
|
+
pl: _pl["default"],
|
36
|
+
sv: _sv["default"]
|
37
|
+
};
|
38
|
+
exports.localizedMessages = localizedMessages;
|
39
|
+
//# sourceMappingURL=__intergalactic-dynamic-locales.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"__intergalactic-dynamic-locales.js","names":["_de","_interopRequireDefault","require","_en","_es","_fr","_it","_ja","_ko","_nl","_pt","_tr","_vi","_zh","_pl","_sv","localizedMessages","de","en","es","fr","it","ja","ko","nl","pt","tr","vi","zh","pl","sv","exports"],"sources":["../../../src/translations/__intergalactic-dynamic-locales.ts"],"sourcesContent":["import de from './de.json';\nimport en from './en.json';\nimport es from './es.json';\nimport fr from './fr.json';\nimport it from './it.json';\nimport ja from './ja.json';\nimport ko from './ko.json';\nimport nl from './nl.json';\nimport pt from './pt.json';\nimport tr from './tr.json';\nimport vi from './vi.json';\nimport zh from './zh.json';\nimport pl from './pl.json';\nimport sv from './sv.json';\n\nexport const localizedMessages = {\n de,\n en,\n es,\n fr,\n it,\n ja,\n ko,\n nl,\n pt,\n tr,\n vi,\n zh,\n pl,\n sv,\n};\n"],"mappings":";;;;;;;AAAA,IAAAA,GAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,GAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,GAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,GAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,GAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,GAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,GAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,GAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,GAAA,GAAAT,sBAAA,CAAAC,OAAA;AACA,IAAAS,GAAA,GAAAV,sBAAA,CAAAC,OAAA;AACA,IAAAU,GAAA,GAAAX,sBAAA,CAAAC,OAAA;AACA,IAAAW,GAAA,GAAAZ,sBAAA,CAAAC,OAAA;AACA,IAAAY,GAAA,GAAAb,sBAAA,CAAAC,OAAA;AACA,IAAAa,GAAA,GAAAd,sBAAA,CAAAC,OAAA;AAEO,IAAMc,iBAAiB,GAAG;EAC/BC,EAAE,EAAFA,cAAE;EACFC,EAAE,EAAFA,cAAE;EACFC,EAAE,EAAFA,cAAE;EACFC,EAAE,EAAFA,cAAE;EACFC,EAAE,EAAFA,cAAE;EACFC,EAAE,EAAFA,cAAE;EACFC,EAAE,EAAFA,cAAE;EACFC,EAAE,EAAFA,cAAE;EACFC,EAAE,EAAFA,cAAE;EACFC,EAAE,EAAFA,cAAE;EACFC,EAAE,EAAFA,cAAE;EACFC,EAAE,EAAFA,cAAE;EACFC,EAAE,EAAFA,cAAE;EACFC,EAAE,EAAFA;AACF,CAAC;AAACC,OAAA,CAAAf,iBAAA,GAAAA,iBAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.js","names":["_DataTable","require"],"sources":["../../src/types.ts"],"sourcesContent":["import React from 'react';\nimport { ROW_GROUP } from './DataTable';\nimport { Property } from 'csstype';\nimport { FlexProps } from '@semcore/flex-box';\n\nexport type PseudoChildPropsGetter = (\n props: { [propName: string]: unknown },\n rowData: { [columnName: string]: unknown },\n index: number,\n) => { [propName: string]: unknown };\nexport type PropsLayer = {\n childrenPropsGetter?: PseudoChildPropsGetter;\n [propName: string]: unknown;\n};\n\nexport type SortDirection = 'asc' | 'desc';\nexport type Column<\n Props extends { [propName: string]: unknown } = { [propName: string]: unknown },\n> = {\n name: string;\n active: boolean;\n width: number;\n fixed?: 'left' | 'right';\n resizable?: boolean;\n sortable?: boolean | SortDirection;\n sortDirection: SortDirection;\n varWidth: string;\n setVar: boolean;\n data?: unknown;\n vBorders?: boolean;\n borderLeft?: boolean;\n borderRight?: boolean;\n props: {\n name: string;\n ref: React.RefObject<HTMLElement>;\n } & FlexProps &\n Partial<{\n flex: Property.Flex;\n onClick: (event: React.MouseEvent) => void;\n onKeyDown: (event: React.KeyboardEvent) => void;\n forwardRef: React.Ref<HTMLElement>;\n style: React.CSSProperties;\n fixed: 'left' | 'right';\n resizable: boolean;\n sortable: boolean | SortDirection;\n sortDirection: SortDirection;\n vBorders: boolean;\n borderLeft: Property.BorderLeft;\n borderRight: Property.BorderLeft;\n changeSortSize?: boolean;\n sortSizeRecalculation?: boolean;\n }> &\n Props;\n columns: Column[];\n parentColumns: Column[];\n};\nexport type Cell = Pick<Column, 'name' | 'fixed' | 'data'> & {\n cssVar: string | string[];\n cellPropsLayers: PropsLayer[];\n};\nexport type RowData<\n Data extends { [columnName: string]: unknown } = { [columnName: string]: unknown },\n> = Data &\n Partial<{\n name: string;\n [ROW_GROUP]: RowData[];\n }>;\nexport type NestedCells = (Cell | NestedCells)[] & { flatRowData?: RowData };\n"],"mappings":";;AACA,IAAAA,UAAA,GAAAC,OAAA"}
|
1
|
+
{"version":3,"file":"types.js","names":["_DataTable","require"],"sources":["../../src/types.ts"],"sourcesContent":["import React from 'react';\nimport { ROW_GROUP } from './DataTable';\nimport { Property } from 'csstype';\nimport { FlexProps } from '@semcore/flex-box';\n\nexport type PseudoChildPropsGetter = (\n props: { [propName: string]: unknown },\n rowData: { [columnName: string]: unknown },\n index: number,\n) => { [propName: string]: unknown };\nexport type PropsLayer = {\n childrenPropsGetter?: PseudoChildPropsGetter;\n [propName: string]: unknown;\n};\n\nexport type SortDirection = 'asc' | 'desc';\nexport type Column<\n Props extends { [propName: string]: unknown } = { [propName: string]: unknown },\n> = {\n name: string;\n active: boolean;\n width: number;\n fixed?: 'left' | 'right';\n resizable?: boolean;\n sortable?: boolean | SortDirection;\n sortDirection: SortDirection;\n varWidth: string;\n setVar: boolean;\n data?: unknown;\n vBorders?: boolean;\n borderLeft?: boolean;\n borderRight?: boolean;\n props: {\n name: string;\n ref: React.RefObject<HTMLElement>;\n } & FlexProps &\n Partial<{\n flex: Property.Flex;\n onClick: (event: React.MouseEvent) => void;\n onKeyDown: (event: React.KeyboardEvent) => void;\n forwardRef: React.Ref<HTMLElement>;\n style: React.CSSProperties;\n fixed: 'left' | 'right';\n resizable: boolean;\n sortable: boolean | SortDirection;\n sortDirection: SortDirection;\n vBorders: boolean;\n borderLeft: Property.BorderLeft;\n borderRight: Property.BorderLeft;\n changeSortSize?: boolean;\n sortSizeRecalculation?: boolean;\n }> &\n Props;\n columns: Column[];\n parentColumns: Column[];\n};\nexport type Cell = Pick<Column, 'name' | 'fixed' | 'data'> & {\n cssVar: string | string[];\n cellPropsLayers: PropsLayer[];\n};\nexport type RowData<\n Data extends { [columnName: string]: unknown } = { [columnName: string]: unknown },\n> = Data &\n Partial<{\n name: string;\n [ROW_GROUP]: RowData[];\n }>;\nexport type NestedCells = (Cell | NestedCells)[] & { flatRowData?: RowData };\n\nexport type RowIndex = number;\nexport type ColIndex = number;\n"],"mappings":";;AACA,IAAAA,UAAA,GAAAC,OAAA"}
|
@@ -25,10 +25,11 @@ import { forkRef } from 'intergalactic/utils/lib/ref';
|
|
25
25
|
import canUseDOM from 'intergalactic/utils/lib/canUseDOM';
|
26
26
|
import { SORT_ICON_WIDTH } from './Head';
|
27
27
|
/*__reshadow-styles__:"./style/scroll-shadows.shadow.css"*/
|
28
|
-
var scrollStyles = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
29
|
-
"__SShadowHorizontal": "
|
30
|
-
"__SShadowVertical": "
|
28
|
+
var scrollStyles = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SShadowHorizontal_1m7h6_gg_:after,.___SShadowHorizontal_1m7h6_gg_:before,.___SShadowVertical_1m7h6_gg_:after,.___SShadowVertical_1m7h6_gg_:before{z-index:1}" /*__inner_css_end__*/, "1m7h6_gg_") /*__reshadow_css_end__*/, {
|
29
|
+
"__SShadowHorizontal": "___SShadowHorizontal_1m7h6_gg_",
|
30
|
+
"__SShadowVertical": "___SShadowVertical_1m7h6_gg_"
|
31
31
|
});
|
32
|
+
import { getFocusableIn } from 'intergalactic/utils/lib/focus-lock/getFocusableIn';
|
32
33
|
var testEnv = process.env.NODE_ENV === 'test';
|
33
34
|
var getCellsByColumn = function getCellsByColumn(cells) {
|
34
35
|
var flattenCells = cells.flat(20);
|
@@ -57,11 +58,58 @@ var Body = /*#__PURE__*/function (_Component) {
|
|
57
58
|
_defineProperty(_assertThisInitialized(_this), "scrollContainerRef", /*#__PURE__*/React.createRef());
|
58
59
|
_defineProperty(_assertThisInitialized(_this), "firstRowRef", /*#__PURE__*/React.createRef());
|
59
60
|
_defineProperty(_assertThisInitialized(_this), "firstRowResizeObserver", null);
|
61
|
+
_defineProperty(_assertThisInitialized(_this), "lockedCell", [null, false]);
|
60
62
|
_defineProperty(_assertThisInitialized(_this), "getRowHeight", function () {
|
61
63
|
var virtualScroll = _this.asProps.virtualScroll;
|
62
64
|
var rowHeightFromProps = _typeof(virtualScroll) === 'object' && (virtualScroll === null || virtualScroll === void 0 ? void 0 : virtualScroll.rowHeight);
|
63
65
|
return rowHeightFromProps || _this.state.rowHeight;
|
64
66
|
});
|
67
|
+
_defineProperty(_assertThisInitialized(_this), "handleKeyDown", function (e) {
|
68
|
+
if (e.currentTarget === _this.lockedCell[0]) {
|
69
|
+
var focusableChildren = Array.from(_this.lockedCell[0].children).flatMap(function (node) {
|
70
|
+
return getFocusableIn(node);
|
71
|
+
});
|
72
|
+
if (_this.lockedCell[1]) {
|
73
|
+
if (e.key === 'Escape') {
|
74
|
+
var _this$lockedCell$;
|
75
|
+
(_this$lockedCell$ = _this.lockedCell[0]) === null || _this$lockedCell$ === void 0 ? void 0 : _this$lockedCell$.focus();
|
76
|
+
_this.lockedCell[1] = false;
|
77
|
+
}
|
78
|
+
if (e.key.startsWith('Arrow')) {
|
79
|
+
e.stopPropagation();
|
80
|
+
e.preventDefault();
|
81
|
+
}
|
82
|
+
if (e.key === 'Tab') {
|
83
|
+
if (e.target === focusableChildren[0] && e.shiftKey) {
|
84
|
+
var _focusableChildren;
|
85
|
+
(_focusableChildren = focusableChildren[focusableChildren.length - 1]) === null || _focusableChildren === void 0 ? void 0 : _focusableChildren.focus();
|
86
|
+
e.preventDefault();
|
87
|
+
} else if (e.target === focusableChildren[focusableChildren.length - 1] && !e.shiftKey) {
|
88
|
+
var _focusableChildren$;
|
89
|
+
(_focusableChildren$ = focusableChildren[0]) === null || _focusableChildren$ === void 0 ? void 0 : _focusableChildren$.focus();
|
90
|
+
e.preventDefault();
|
91
|
+
}
|
92
|
+
e.stopPropagation();
|
93
|
+
}
|
94
|
+
} else if (e.key === 'Enter') {
|
95
|
+
var _focusableChildren$2;
|
96
|
+
_this.lockedCell[1] = true;
|
97
|
+
(_focusableChildren$2 = focusableChildren[0]) === null || _focusableChildren$2 === void 0 ? void 0 : _focusableChildren$2.focus();
|
98
|
+
}
|
99
|
+
}
|
100
|
+
});
|
101
|
+
_defineProperty(_assertThisInitialized(_this), "onFocusCell", function (e) {
|
102
|
+
if (e.target === e.currentTarget) {
|
103
|
+
var focusableChildren = Array.from(e.currentTarget.children).flatMap(function (node) {
|
104
|
+
return getFocusableIn(node);
|
105
|
+
});
|
106
|
+
if (focusableChildren.length === 1) {
|
107
|
+
focusableChildren[0].focus();
|
108
|
+
} else if (focusableChildren.length > 1) {
|
109
|
+
_this.lockedCell = [e.currentTarget, false];
|
110
|
+
}
|
111
|
+
}
|
112
|
+
});
|
65
113
|
_defineProperty(_assertThisInitialized(_this), "handleFirstRowResize", trottle(function (entries) {
|
66
114
|
var contentRect = entries[0].contentRect;
|
67
115
|
var height = contentRect.height;
|
@@ -196,7 +244,7 @@ var Body = /*#__PURE__*/function (_Component) {
|
|
196
244
|
});
|
197
245
|
return _ref3 = sstyled(styles), /*#__PURE__*/React.createElement(SCell, _ref3.cn("SCell", _objectSpread(_objectSpread({
|
198
246
|
"key": cell.name,
|
199
|
-
"role": '
|
247
|
+
"role": 'gridcell',
|
200
248
|
"headers": headerIds.join(' '),
|
201
249
|
"__excludeProps": ['data']
|
202
250
|
}, _props), {}, {
|
@@ -204,7 +252,11 @@ var Body = /*#__PURE__*/function (_Component) {
|
|
204
252
|
"theme": _props.theme,
|
205
253
|
"use": use,
|
206
254
|
"borderLeft": _props.borderLeft,
|
207
|
-
"borderRight": _props.borderRight
|
255
|
+
"borderRight": _props.borderRight,
|
256
|
+
"tabIndex": -1,
|
257
|
+
"onKeyDown": _this2.handleKeyDown,
|
258
|
+
"onFocus": _this2.onFocusCell,
|
259
|
+
"aria-colindex": cellIndex + 1
|
208
260
|
})));
|
209
261
|
}
|
210
262
|
}, []);
|
@@ -384,16 +436,14 @@ var Body = /*#__PURE__*/function (_Component) {
|
|
384
436
|
}), /*#__PURE__*/React.createElement(ScrollArea.Container, {
|
385
437
|
ref: forkRef.apply(void 0, scrollContainerRefs),
|
386
438
|
role: "rowgroup",
|
387
|
-
focusRingTopOffset: '3px'
|
439
|
+
focusRingTopOffset: '3px',
|
440
|
+
tabIndex: -1
|
388
441
|
}, body), /*#__PURE__*/React.createElement("div", _ref5.cn("div", {
|
389
|
-
"style": displayContents
|
390
|
-
"role": 'rowgroup'
|
442
|
+
"style": displayContents
|
391
443
|
}), /*#__PURE__*/React.createElement("div", _ref5.cn("div", {
|
392
|
-
"style": displayContents
|
393
|
-
"role": 'row'
|
444
|
+
"style": displayContents
|
394
445
|
}), /*#__PURE__*/React.createElement("div", _ref5.cn("div", {
|
395
|
-
"style": displayContents
|
396
|
-
"role": 'cell'
|
446
|
+
"style": displayContents
|
397
447
|
}), /*#__PURE__*/React.createElement(ScrollArea.Bar, {
|
398
448
|
orientation: "horizontal",
|
399
449
|
bottom: 0,
|