@ironsource/shared-ui 2.0.0-rc.5 → 2.0.0-rc.6
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/AppTrigger.vue_vue_type_style_index_0_scoped_121aac8b_lang.css +1 -0
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_14dcdae5_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_f080f37f_lang.css +1 -0
- package/DataGridMenu.vue_vue_type_style_index_0_scoped_99f1dcca_lang.css +1 -0
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_c218ef1f_lang.css +1 -0
- package/Dialog.vue_vue_type_style_index_0_scoped_eeac406b_lang.css +1 -0
- package/DialogV4.vue_vue_type_style_index_0_scoped_c0c12287_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_571b7c2f_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/Editable.vue_vue_type_style_index_0_scoped_2561e913_lang.css +1 -0
- package/EditableV4.vue_vue_type_style_index_0_scoped_df325b51_lang.css +1 -0
- package/EmptyState.vue_vue_type_style_index_0_scoped_d3aecf34_lang.css +1 -0
- package/EmptyStateIcon.vue_vue_type_style_index_0_scoped_18855436_lang.css +1 -0
- package/EmptyStateV4.vue_vue_type_style_index_0_scoped_b8373c2d_lang.css +1 -0
- package/ExpandRowToggle.vue_vue_type_style_index_0_scoped_b053baa6_lang.css +1 -0
- package/FieldHelpText.vue_vue_type_style_index_0_scoped_c551c20f_lang.css +1 -0
- package/FieldLabel.vue_vue_type_style_index_0_scoped_526af548_lang.css +1 -0
- package/IconButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_59fb505a_lang.css +1 -0
- package/IconButtonV4.vue_vue_type_style_index_0_scoped_2ca54aa8_lang.css +1 -0
- package/IconV4.vue_vue_type_style_index_0_scoped_a78f8a3e_lang.css +1 -0
- package/IncludeExclude.vue_vue_type_style_index_0_scoped_2c9debd6_lang.css +1 -0
- package/IncludeExcludeAppTrigger.vue_vue_type_style_index_0_scoped_f738b223_lang.css +1 -0
- package/IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_ff32d111_lang.css +1 -0
- package/IncludeExcludeOption.vue_vue_type_style_index_0_scoped_4a87e4fd_lang.css +1 -0
- package/IncludeExcludeOptionDraggable.vue_vue_type_style_index_0_scoped_a91fcaa5_lang.css +1 -0
- package/Input.vue_vue_type_style_index_0_scoped_7092804b_lang.css +1 -0
- package/MultiBar.vue_vue_type_style_index_0_scoped_f5061530_lang.css +1 -0
- package/MultiBarMenu.vue_vue_type_style_index_0_scoped_ae2bbc6c_lang.css +1 -0
- package/ScrollButton.vue_vue_type_style_index_0_scoped_35ed2cfe_lang.css +1 -0
- package/SearchV4.vue_vue_type_style_index_0_scoped_215f0f29_lang.css +1 -0
- package/SortIcon.vue_vue_type_style_index_0_scoped_2bda5d4a_lang.css +1 -0
- package/SortOrderIcon.vue_vue_type_style_index_0_scoped_cb20f507_lang.css +1 -0
- package/Table.vue_vue_type_style_index_0_scoped_6b769df2_lang.css +1 -0
- package/TableHeaderSorter.vue_vue_type_style_index_0_scoped_745a44a2_lang.css +1 -0
- package/Tabs.vue_vue_type_style_index_0_scoped_06c58d5a_lang.css +1 -0
- package/TabsV4.vue_vue_type_style_index_0_scoped_bab86b0a_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_d4dc4582_lang.css +1 -0
- package/TextWithTitleContent.vue_vue_type_style_index_0_scoped_13b5aebd_lang.css +1 -0
- package/TextWithTitleContent.vue_vue_type_style_index_0_scoped_7792f772_lang.css +1 -0
- package/Toggle.vue_vue_type_style_index_0_scoped_1cf7973e_lang.css +1 -0
- package/Tooltip.vue_vue_type_style_index_0_lang.css +1 -1
- package/TooltipV4.vue_vue_type_style_index_0_lang.css +1 -0
- package/components/appTrigger/AppTrigger.vue.js +2 -2
- package/components/appTrigger/AppTrigger.vue2.js +3 -3
- package/components/button/v3/ScrollButton.vue.js +3 -3
- package/components/button/v3/ScrollButton.vue2.js +3 -3
- package/components/button/v4/IconButtonV4.vue.d.ts +66 -0
- package/components/button/v4/IconButtonV4.vue.js +7 -0
- package/components/button/v4/IconButtonV4.vue2.js +35 -0
- package/components/button/v4/index.d.ts +190 -3
- package/components/button/v4/index.js +6 -4
- package/components/dialog/common/Dialog.common.d.ts +10 -0
- package/components/dialog/common/Dialog.common.js +57 -0
- package/components/dialog/{Dialog.vue.d.ts → v3/Dialog.vue.d.ts} +1 -1
- package/components/dialog/v3/Dialog.vue.js +7 -0
- package/components/dialog/v3/Dialog.vue2.js +137 -0
- package/components/dialog/{index.d.ts → v3/index.d.ts} +8 -8
- package/components/dialog/v3/index.js +8 -0
- package/components/dialog/v4/DialogV4.vue.d.ts +109 -0
- package/components/dialog/v4/DialogV4.vue.js +7 -0
- package/components/dialog/v4/DialogV4.vue2.js +119 -0
- package/components/dialog/v4/index.d.ts +345 -0
- package/components/dialog/{index.js → v4/index.js} +1 -1
- package/components/dropdown/common/Dropdown.common.js +15 -15
- package/components/dropdown/v3/Dropdown.vue.d.ts +2 -2
- package/components/dropdown/v3/index.d.ts +40 -40
- package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +66 -0
- package/components/dropdown/v4/ChipDropdownTrigger.vue.js +7 -0
- package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +73 -0
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +36 -35
- package/components/dropdown/v4/Dropdown.types.d.ts +3 -0
- package/components/dropdown/v4/Dropdown.types.js +8 -0
- package/components/dropdown/v4/DropdownV4.vue.d.ts +8 -20
- package/components/dropdown/v4/DropdownV4.vue.js +2 -2
- package/components/dropdown/v4/DropdownV4.vue2.js +222 -186
- package/components/dropdown/v4/IconButtonDropdownTrigger.vue.d.ts +29 -0
- package/components/dropdown/v4/IconButtonDropdownTrigger.vue.js +7 -0
- package/components/dropdown/v4/IconButtonDropdownTrigger.vue2.js +19 -0
- package/components/dropdown/v4/index.d.ts +190 -115
- package/components/dropdown/v4/index.js +14 -4
- package/components/emptyState/v3/EmptyState.vue.js +7 -0
- package/components/emptyState/{EmptyState.vue2.js → v3/EmptyState.vue2.js} +7 -7
- package/components/emptyState/{EmptyStateIcon.vue.js → v3/EmptyStateIcon.vue.js} +8 -8
- package/components/emptyState/v4/EmptyStateV4.types.d.ts +2 -0
- package/components/emptyState/v4/EmptyStateV4.vue.d.ts +56 -0
- package/components/emptyState/v4/EmptyStateV4.vue.js +7 -0
- package/components/emptyState/v4/EmptyStateV4.vue2.js +66 -0
- package/components/emptyState/v4/icons/IconError.vue.js +16 -0
- package/components/emptyState/v4/icons/IconFiles.vue.d.ts +2 -0
- package/components/emptyState/v4/icons/IconFiles.vue.js +16 -0
- package/components/emptyState/v4/icons/IconNoAccess.vue.d.ts +2 -0
- package/components/emptyState/v4/icons/IconNoAccess.vue.js +16 -0
- package/components/emptyState/v4/icons/IconNoData.vue.d.ts +2 -0
- package/components/emptyState/v4/icons/IconNoData.vue.js +16 -0
- package/components/emptyState/v4/icons/IconNoResults.vue.d.ts +2 -0
- package/components/emptyState/v4/icons/IconNoResults.vue.js +16 -0
- package/components/emptyState/v4/icons/IconSettings.vue.d.ts +2 -0
- package/components/emptyState/v4/icons/IconSettings.vue.js +16 -0
- package/components/emptyState/v4/index.d.ts +145 -0
- package/components/emptyState/v4/index.js +6 -0
- package/components/icon/v4/Icon.types.d.ts +2 -0
- package/components/icon/v4/IconV4.vue.d.ts +3 -3
- package/components/icon/v4/IconV4.vue.js +4 -4
- package/components/icon/v4/IconV4.vue2.js +27 -24
- package/components/icon/v4/index.d.ts +7 -7
- package/components/includeExclude/IncludeExclude.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExclude.vue.js +2 -2
- package/components/includeExclude/IncludeExclude.vue2.js +2 -2
- package/components/includeExclude/IncludeExcludeAppTrigger.vue.js +3 -3
- package/components/includeExclude/IncludeExcludeAppTrigger.vue2.js +3 -3
- package/components/includeExclude/IncludeExcludeDragDrop.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExcludeDragDrop.vue.js +3 -3
- package/components/includeExclude/IncludeExcludeDragDrop.vue2.js +2 -2
- package/components/includeExclude/IncludeExcludeOption.vue.js +5 -5
- package/components/includeExclude/IncludeExcludeOption.vue2.js +3 -3
- package/components/includeExclude/IncludeExcludeOptionDraggable.vue.js +3 -3
- package/components/includeExclude/IncludeExcludeOptionDraggable.vue2.js +3 -3
- package/components/includeExclude/index.d.ts +40 -40
- package/components/input/common/Input.common.d.ts +1 -1
- package/components/input/common/Input.common.js +2 -2
- package/components/input/v3/Input.vue.js +2 -2
- package/components/input/v3/Input.vue2.js +3 -3
- package/components/input/v4/TextField.vue.d.ts +8 -3
- package/components/input/v4/TextField.vue.js +3 -3
- package/components/input/v4/TextField.vue2.js +81 -74
- package/components/input/v4/index.d.ts +27 -8
- package/components/menu/Menu.vue.d.ts +1 -1
- package/components/menu/index.d.ts +20 -20
- package/components/multibar/MultiBar.types.d.ts +6 -0
- package/components/multibar/MultiBar.vue.d.ts +65 -0
- package/components/multibar/MultiBar.vue.js +7 -0
- package/components/multibar/MultiBar.vue2.js +96 -0
- package/components/multibar/MultiBarMenu.vue.d.ts +34 -0
- package/components/multibar/MultiBarMenu.vue.js +7 -0
- package/components/multibar/MultiBarMenu.vue2.js +50 -0
- package/components/multibar/index.d.ts +77 -0
- package/components/multibar/index.js +6 -0
- package/components/popover/index.d.ts +16 -16
- package/components/search/v4/SearchV4.vue.js +2 -2
- package/components/search/v4/SearchV4.vue2.js +29 -32
- package/components/shared/FieldHelpText.vue.js +3 -3
- package/components/shared/FieldHelpText.vue2.js +21 -25
- package/components/shared/FieldLabel.vue.d.ts +1 -1
- package/components/shared/FieldLabel.vue.js +3 -3
- package/components/shared/FieldLabel.vue2.js +31 -35
- package/components/table/common/Table.common.d.ts +35 -0
- package/components/table/common/Table.common.js +114 -0
- package/components/table/{Table.types.d.ts → common/Table.types.d.ts} +7 -0
- package/components/table/v3/SortOrderIcon.vue.d.ts +2 -0
- package/components/table/v3/SortOrderIcon.vue.js +21 -0
- package/components/table/{Table.vue.d.ts → v3/Table.vue.d.ts} +2 -3
- package/components/table/v3/Table.vue.js +7 -0
- package/components/table/v3/Table.vue2.js +248 -0
- package/components/table/v3/TableHeaderSorter.vue.js +7 -0
- package/components/table/{TableHeaderSorter.vue2.js → v3/TableHeaderSorter.vue2.js} +1 -1
- package/components/table/{index.d.ts → v3/index.d.ts} +49 -49
- package/components/table/v3/index.js +10 -0
- package/components/table/v4/DataGrid.vue.d.ts +182 -0
- package/components/table/v4/DataGrid.vue.js +7 -0
- package/components/table/v4/DataGrid.vue2.js +296 -0
- package/components/table/v4/DataGridMenu.vue.d.ts +34 -0
- package/components/table/v4/DataGridMenu.vue.js +7 -0
- package/components/table/v4/DataGridMenu.vue2.js +50 -0
- package/components/table/v4/ExpandRowToggle.vue.d.ts +33 -0
- package/components/table/v4/ExpandRowToggle.vue.js +7 -0
- package/components/table/v4/ExpandRowToggle.vue2.js +24 -0
- package/components/table/v4/SortIcon.vue.d.ts +15 -0
- package/components/table/v4/SortIcon.vue.js +7 -0
- package/components/table/v4/SortIcon.vue2.js +24 -0
- package/components/table/v4/index.d.ts +601 -0
- package/components/table/v4/index.js +8 -0
- package/components/table/v4/storyUtils.d.ts +4 -0
- package/components/table-cells/common/Editable.common.d.ts +5 -0
- package/components/table-cells/common/Editable.common.js +39 -0
- package/components/table-cells/v3/Editable.vue.js +7 -0
- package/components/table-cells/v3/Editable.vue2.js +43 -0
- package/components/table-cells/{index.d.ts → v3/index.d.ts} +2 -2
- package/components/table-cells/{index.js → v3/index.js} +2 -2
- package/components/table-cells/v4/EditableV4.vue.d.ts +51 -0
- package/components/table-cells/v4/EditableV4.vue.js +7 -0
- package/components/table-cells/v4/EditableV4.vue2.js +45 -0
- package/components/table-cells/v4/index.d.ts +146 -0
- package/components/table-cells/v4/index.js +6 -0
- package/components/tabs/common/Tabs.types.d.ts +6 -0
- package/components/tabs/common/tabsCommon.d.ts +16 -0
- package/components/tabs/common/tabsCommon.js +43 -0
- package/components/tabs/{Tabs.vue.d.ts → v3/Tabs.vue.d.ts} +1 -6
- package/components/tabs/v3/Tabs.vue.js +7 -0
- package/components/tabs/v3/Tabs.vue2.js +85 -0
- package/components/tabs/{index.d.ts → v3/index.d.ts} +8 -48
- package/components/tabs/v4/TabsV4.vue.d.ts +56 -0
- package/components/tabs/v4/TabsV4.vue.js +7 -0
- package/components/tabs/v4/TabsV4.vue2.js +75 -0
- package/components/tabs/v4/index.d.ts +148 -0
- package/components/tabs/v4/index.js +6 -0
- package/components/toggle/v3/Toggle.vue.js +7 -0
- package/components/toggle/{Toggle.vue2.js → v3/Toggle.vue2.js} +17 -17
- package/components/toggle/v4/ToggleV4.vue.d.ts +98 -0
- package/components/tooltip/common/Tooltip.common.d.ts +3 -0
- package/components/tooltip/common/Tooltip.common.js +27 -0
- package/components/tooltip/v3/TextWithTitleContent.vue.js +7 -0
- package/components/tooltip/{TextWithTitleContent.vue2.js → v3/TextWithTitleContent.vue2.js} +4 -4
- package/components/tooltip/v3/Tooltip.vue.js +5 -0
- package/components/tooltip/v3/Tooltip.vue2.js +87 -0
- package/components/tooltip/{index.js → v3/index.js} +2 -2
- package/components/tooltip/v4/TextWithTitleContent.vue.d.ts +33 -0
- package/components/tooltip/v4/TextWithTitleContent.vue.js +7 -0
- package/components/tooltip/v4/TextWithTitleContent.vue2.js +36 -0
- package/components/tooltip/v4/TooltipV4.vue.d.ts +85 -0
- package/components/tooltip/v4/TooltipV4.vue.js +67 -0
- package/components/tooltip/v4/TooltipV4.vue2.js +0 -0
- package/components/tooltip/v4/TooltipV4.vue3.js +4 -0
- package/components/tooltip/v4/index.d.ts +249 -0
- package/components/tooltip/v4/index.js +6 -0
- package/index.d.ts +4897 -333
- package/index.js +150 -153
- package/package.json +55 -19
- package/testids/index.d.ts +11 -3
- package/testids/index.js +14 -14
- package/utils/storybook-utils.d.ts +1 -0
- package/utils/string.d.ts +2 -0
- package/utils/string.js +5 -0
- package/AppTrigger.vue_vue_type_style_index_0_scoped_512ac1ab_lang.css +0 -1
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_4cbcfcce_lang.css +0 -1
- package/Dialog.vue_vue_type_style_index_0_scoped_40b833a0_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_34bd23a1_lang.css +0 -1
- package/Editable.vue_vue_type_style_index_0_scoped_3b865286_lang.css +0 -1
- package/EmptyState.vue_vue_type_style_index_0_scoped_f082a371_lang.css +0 -1
- package/EmptyStateIcon.vue_vue_type_style_index_0_scoped_f4915249_lang.css +0 -1
- package/FieldHelpText.vue_vue_type_style_index_0_scoped_d5507827_lang.css +0 -1
- package/FieldLabel.vue_vue_type_style_index_0_scoped_90f19704_lang.css +0 -1
- package/IconV4.vue_vue_type_style_index_0_scoped_f23078a4_lang.css +0 -1
- package/IncludeExclude.vue_vue_type_style_index_0_scoped_802d4031_lang.css +0 -1
- package/IncludeExcludeAppTrigger.vue_vue_type_style_index_0_scoped_1621ad67_lang.css +0 -1
- package/IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_daccb4bb_lang.css +0 -1
- package/IncludeExcludeOption.vue_vue_type_style_index_0_scoped_18847008_lang.css +0 -1
- package/IncludeExcludeOptionDraggable.vue_vue_type_style_index_0_scoped_df79f184_lang.css +0 -1
- package/Input.vue_vue_type_style_index_0_scoped_79f436f9_lang.css +0 -1
- package/ScrollButton.vue_vue_type_style_index_0_scoped_90bacbbc_lang.css +0 -1
- package/SearchV4.vue_vue_type_style_index_0_scoped_63f11472_lang.css +0 -1
- package/SortOrderIcon.vue_vue_type_style_index_0_scoped_eaa4d6ee_lang.css +0 -1
- package/Table.vue_vue_type_style_index_0_scoped_096d493a_lang.css +0 -1
- package/TableHeaderSorter.vue_vue_type_style_index_0_scoped_350aa9f0_lang.css +0 -1
- package/Tabs.vue_vue_type_style_index_0_scoped_e92a7c21_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_7aa32734_lang.css +0 -1
- package/TextWithTitleContent.vue_vue_type_style_index_0_scoped_7da6e1ca_lang.css +0 -1
- package/Toggle.vue_vue_type_style_index_0_scoped_d97166d1_lang.css +0 -1
- package/components/dialog/Dialog.vue.js +0 -7
- package/components/dialog/Dialog.vue2.js +0 -178
- package/components/emptyState/EmptyState.vue.js +0 -7
- package/components/table/SortOrderIcon.vue.js +0 -21
- package/components/table/Table.vue.js +0 -7
- package/components/table/Table.vue2.js +0 -298
- package/components/table/TableHeaderSorter.vue.js +0 -7
- package/components/table/index.js +0 -8
- package/components/table-cells/Editable.vue.js +0 -7
- package/components/table-cells/Editable.vue2.js +0 -66
- package/components/tabs/Tabs.vue.js +0 -7
- package/components/tabs/Tabs.vue2.js +0 -96
- package/components/toggle/Toggle.vue.js +0 -7
- package/components/tooltip/TextWithTitleContent.vue.js +0 -7
- package/components/tooltip/Tooltip.vue.js +0 -84
- package/components/tooltip/Tooltip.vue2.js +0 -5
- /package/components/dialog/{Reason.d.ts → common/Reason.d.ts} +0 -0
- /package/components/dialog/{Reason.js → common/Reason.js} +0 -0
- /package/components/emptyState/{EmptyState.vue.d.ts → v3/EmptyState.vue.d.ts} +0 -0
- /package/components/emptyState/{EmptyStateIcon.vue.d.ts → v3/EmptyStateIcon.vue.d.ts} +0 -0
- /package/components/emptyState/{EmptyStateIcon.vue2.js → v3/EmptyStateIcon.vue2.js} +0 -0
- /package/components/emptyState/{index.d.ts → v3/index.d.ts} +0 -0
- /package/components/emptyState/{index.js → v3/index.js} +0 -0
- /package/components/{table/SortOrderIcon.vue.d.ts → emptyState/v4/icons/IconError.vue.d.ts} +0 -0
- /package/components/table/{TableContext.d.ts → common/TableContext.d.ts} +0 -0
- /package/components/table/{TableContext.js → common/TableContext.js} +0 -0
- /package/components/table/{SortOrderIcon.vue2.js → v3/SortOrderIcon.vue2.js} +0 -0
- /package/components/table/{TableHeaderSorter.vue.d.ts → v3/TableHeaderSorter.vue.d.ts} +0 -0
- /package/components/table/{codeTemplate.d.ts → v3/codeTemplate.d.ts} +0 -0
- /package/components/table-cells/{EditableContext.d.ts → common/EditableContext.d.ts} +0 -0
- /package/components/table-cells/{EditableContext.js → common/EditableContext.js} +0 -0
- /package/components/table-cells/{Editable.vue.d.ts → v3/Editable.vue.d.ts} +0 -0
- /package/components/tabs/{index.js → v3/index.js} +0 -0
- /package/components/toggle/{Toggle.vue.d.ts → v3/Toggle.vue.d.ts} +0 -0
- /package/components/toggle/{index.d.ts → v3/index.d.ts} +0 -0
- /package/components/toggle/{index.js → v3/index.js} +0 -0
- /package/components/tooltip/{Tooltip.types.d.ts → common/Tooltip.types.d.ts} +0 -0
- /package/components/tooltip/{TextWithTitleContent.vue.d.ts → v3/TextWithTitleContent.vue.d.ts} +0 -0
- /package/components/tooltip/{Tooltip.vue.d.ts → v3/Tooltip.vue.d.ts} +0 -0
- /package/components/tooltip/{index.d.ts → v3/index.d.ts} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "../../FieldLabel.
|
|
1
|
+
import "../../FieldLabel.vue_vue_type_style_index_0_scoped_526af548_lang.css"; import { defineComponent as c, openBlock as r, createElementBlock as u, mergeProps as o, unref as e, createVNode as n, withCtx as d, createTextVNode as s, toDisplayString as p, createBlock as i, createCommentVNode as m } from "vue";
|
|
2
2
|
import T from "../icon/v3/Icon.vue.js";
|
|
3
|
-
import "../tooltip/
|
|
4
|
-
import
|
|
3
|
+
import b from "../tooltip/v4/TooltipV4.vue.js";
|
|
4
|
+
/* empty css */import f from "../typography/v4/Typography.vue.js";
|
|
5
5
|
import { FieldLabelTestIdModifiers as a } from "../../testids/index.js";
|
|
6
|
-
import
|
|
7
|
-
const
|
|
6
|
+
import { useTestIdAttrs as x } from "../../utils/testIds.js";
|
|
7
|
+
const C = /* @__PURE__ */ c({
|
|
8
8
|
__name: "FieldLabel",
|
|
9
9
|
props: {
|
|
10
10
|
label: { default: "" },
|
|
@@ -14,52 +14,48 @@ const h = ["data-testid"], B = /* @__PURE__ */ m({
|
|
|
14
14
|
hoverHelpTextPlacement: { default: "top" },
|
|
15
15
|
testId: { default: "" }
|
|
16
16
|
},
|
|
17
|
-
setup(
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
}, [
|
|
22
|
-
|
|
17
|
+
setup(t) {
|
|
18
|
+
const l = x(t.testId, a);
|
|
19
|
+
return (y, v) => (r(), u("div", o({
|
|
20
|
+
class: ["field-label", { "field-label--disabled": t.disabled }]
|
|
21
|
+
}, e(l)[e(a).CONTAINER]), [
|
|
22
|
+
n(e(f), o({
|
|
23
23
|
class: "label",
|
|
24
|
-
variant: "inputLabel"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
o(u(e.label), 1)
|
|
24
|
+
variant: "inputLabel"
|
|
25
|
+
}, e(l)[e(a).TEXT]), {
|
|
26
|
+
default: d(() => [
|
|
27
|
+
s(p(t.label), 1)
|
|
29
28
|
]),
|
|
30
29
|
_: 1
|
|
31
|
-
},
|
|
32
|
-
|
|
30
|
+
}, 16),
|
|
31
|
+
t.mandatory ? (r(), i(e(f), o({
|
|
33
32
|
key: 0,
|
|
34
33
|
variant: "h3",
|
|
35
|
-
class: "mandatory"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
o("*")
|
|
34
|
+
class: "mandatory"
|
|
35
|
+
}, e(l)[e(a).MANDATORY]), {
|
|
36
|
+
default: d(() => [
|
|
37
|
+
s("*")
|
|
40
38
|
]),
|
|
41
39
|
_: 1
|
|
42
|
-
},
|
|
43
|
-
|
|
40
|
+
}, 16)) : m("", !0),
|
|
41
|
+
t.hoverHelpText ? (r(), i(e(b), o({
|
|
44
42
|
key: 1,
|
|
45
43
|
triggers: ["hover"],
|
|
46
|
-
text:
|
|
47
|
-
placement:
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
default: l(() => [
|
|
52
|
-
i(t(T), {
|
|
44
|
+
text: t.hoverHelpText,
|
|
45
|
+
placement: t.hoverHelpTextPlacement
|
|
46
|
+
}, e(l)[e(a).TOOLTIP], { "test-id": t.testId }), {
|
|
47
|
+
default: d(() => [
|
|
48
|
+
n(e(T), {
|
|
53
49
|
class: "info-icon",
|
|
54
50
|
name: "question",
|
|
55
51
|
"font-size": "sm"
|
|
56
52
|
})
|
|
57
53
|
]),
|
|
58
54
|
_: 1
|
|
59
|
-
},
|
|
60
|
-
],
|
|
55
|
+
}, 16, ["text", "placement", "test-id"])) : m("", !0)
|
|
56
|
+
], 16));
|
|
61
57
|
}
|
|
62
58
|
});
|
|
63
59
|
export {
|
|
64
|
-
|
|
60
|
+
C as default
|
|
65
61
|
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { CSSProperties } from 'vue';
|
|
2
|
+
import { Column, Row } from './Table.types';
|
|
3
|
+
export declare const tableCommon: (props: any, emit: any) => {
|
|
4
|
+
list: import("vue").Ref<import("@vueuse/core").UseVirtualListItem<Row>[]>;
|
|
5
|
+
containerProps: {
|
|
6
|
+
ref: import("vue").Ref<any>;
|
|
7
|
+
onScroll: () => void;
|
|
8
|
+
style: Partial<CSSStyleDeclaration>;
|
|
9
|
+
};
|
|
10
|
+
wrapperProps: import("vue").ComputedRef<{
|
|
11
|
+
style: {
|
|
12
|
+
width: string;
|
|
13
|
+
height: string;
|
|
14
|
+
marginTop: string;
|
|
15
|
+
};
|
|
16
|
+
}>;
|
|
17
|
+
activeRow: any;
|
|
18
|
+
gridColumnTemplate: import("vue").ComputedRef<any>;
|
|
19
|
+
floatingActionRef: import("vue").Ref<HTMLDivElement>;
|
|
20
|
+
scrollToTop: () => void;
|
|
21
|
+
toggleSortOrder: (column: Column) => void;
|
|
22
|
+
columnsStickyPositions: import("vue").ComputedRef<Record<string, string>>;
|
|
23
|
+
hasSearchSlot: import("vue").ComputedRef<boolean>;
|
|
24
|
+
showBackToTopButton: import("vue").ComputedRef<boolean>;
|
|
25
|
+
containerStyle: import("vue").ComputedRef<CSSProperties>;
|
|
26
|
+
onScroll: (event: any) => void;
|
|
27
|
+
savingRows: import("vue").Ref<any[]>;
|
|
28
|
+
floatingActionPosition: import("vue").Ref<number>;
|
|
29
|
+
hasExpandSlot: import("vue").ComputedRef<boolean>;
|
|
30
|
+
hasCheckboxes: import("vue").ComputedRef<boolean>;
|
|
31
|
+
toggleExpandRow: (index: number, event: any) => Promise<void>;
|
|
32
|
+
isRowExpanded: (rowIndex: number) => boolean;
|
|
33
|
+
cssRowHeight: import("vue").ComputedRef<string>;
|
|
34
|
+
cssExpandGridCol: import("vue").ComputedRef<string>;
|
|
35
|
+
};
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { ref as u, provide as z, computed as l, useSlots as G, onMounted as K, nextTick as N } from "vue";
|
|
2
|
+
import { useVirtualList as V, useInfiniteScroll as j } from "@vueuse/core";
|
|
3
|
+
import { TableContext as q } from "./TableContext.js";
|
|
4
|
+
const F = 46, J = 46, Z = (o, a) => {
|
|
5
|
+
const c = u([]);
|
|
6
|
+
z(q, {
|
|
7
|
+
onClose({ rowIndex: t, cellIndex: e, value: n } = {}) {
|
|
8
|
+
n && (c.value = [...c.value, t], a("saveRow", {
|
|
9
|
+
rowIndex: t,
|
|
10
|
+
cellIndex: e,
|
|
11
|
+
value: n,
|
|
12
|
+
confirm: () => {
|
|
13
|
+
c.value = c.value.filter(
|
|
14
|
+
(s) => s !== t
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
}));
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
const m = l(() => o.selection !== null), T = l(() => {
|
|
21
|
+
const t = (m.value ? `${J}px ` : "") + (C.value ? `${F}px ` : "");
|
|
22
|
+
return o.columns.reduce((e, n) => {
|
|
23
|
+
const s = n.width ? `${n.width}px` : `${n.colSpan || 1}fr`;
|
|
24
|
+
return `${e} ${s}`;
|
|
25
|
+
}, t);
|
|
26
|
+
}), R = u(null), y = l(() => Array(o.loadingRowCount).fill(
|
|
27
|
+
Array(o.columns.length).fill("")
|
|
28
|
+
)), $ = l(() => o.isLoading ? [...o.rows, ...y.value] : o.rows), { list: v, containerProps: i, wrapperProps: b } = V($, {
|
|
29
|
+
itemHeight: (t) => h[t] ?? o.rowHeight
|
|
30
|
+
}), H = u(null), g = u(0), x = G(), k = l(() => !!x.search), B = (t) => {
|
|
31
|
+
i.onScroll(), g.value = t.target.scrollLeft + t.target.getBoundingClientRect().width, a("onScroll", t.target.scrollTop);
|
|
32
|
+
};
|
|
33
|
+
K(() => {
|
|
34
|
+
g.value = i.ref.value?.getBoundingClientRect().width, o.defaultScrollPosition && setTimeout(() => {
|
|
35
|
+
i.ref.value?.scrollTo({
|
|
36
|
+
top: o.defaultScrollPosition,
|
|
37
|
+
behavior: "smooth"
|
|
38
|
+
});
|
|
39
|
+
}, 300);
|
|
40
|
+
});
|
|
41
|
+
const I = l(() => {
|
|
42
|
+
const [t] = v.value;
|
|
43
|
+
return t && t.index > 0;
|
|
44
|
+
}), O = l(() => i.style), P = l(() => o.columns.reduce((t, e) => (e.isSticky && (t[e.id] = A(e)), t), {}));
|
|
45
|
+
j(
|
|
46
|
+
i.ref,
|
|
47
|
+
() => {
|
|
48
|
+
o.isInfiniteScroll && a("loadMore");
|
|
49
|
+
},
|
|
50
|
+
{ distance: o.infiniteScrollThreshold }
|
|
51
|
+
);
|
|
52
|
+
function E() {
|
|
53
|
+
i.ref.value?.scrollTo({
|
|
54
|
+
top: 0,
|
|
55
|
+
behavior: "smooth"
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
function L(t) {
|
|
59
|
+
if (!o.sort)
|
|
60
|
+
return;
|
|
61
|
+
const e = o.sort.sortBy === t.id;
|
|
62
|
+
if (!(t.isSortable || t.isSortable === void 0))
|
|
63
|
+
return;
|
|
64
|
+
let s = o.sort.sortOrder, f = o.sort.sortBy;
|
|
65
|
+
e ? s = o.sort.sortOrder === "asc" ? "desc" : "asc" : f = t.id, a("update:sort", { sortBy: f, sortOrder: s });
|
|
66
|
+
}
|
|
67
|
+
function A(t) {
|
|
68
|
+
const { isSticky: e, width: n } = t;
|
|
69
|
+
if (!e || !n)
|
|
70
|
+
return null;
|
|
71
|
+
const s = o.columns.findIndex((r) => r.id === t.id), f = o.columns.reduce((r, S, w) => w < s ? r + S.width : r, 0), X = o.columns.reduce((r, S, w) => w > s ? r + S.width : r, 0);
|
|
72
|
+
return {
|
|
73
|
+
...t.isStickyRight ? { right: `${X}px` } : { left: `${f}px` },
|
|
74
|
+
zIndex: 1
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
const d = u([]), h = {}, _ = (t) => d.value.includes(t), D = async (t, e) => {
|
|
78
|
+
const n = d.value.indexOf(t);
|
|
79
|
+
if (n === -1) {
|
|
80
|
+
d.value.push(t);
|
|
81
|
+
const s = e.target.closest("tr");
|
|
82
|
+
await N(), s && (h[t] = s.offsetHeight);
|
|
83
|
+
} else
|
|
84
|
+
d.value.splice(n, 1), delete h[t];
|
|
85
|
+
}, C = l(() => !!x.expanded), M = l(() => `${o.rowHeight}px`), W = l(
|
|
86
|
+
() => `1 / span ${o.columns.length + 1}`
|
|
87
|
+
);
|
|
88
|
+
return {
|
|
89
|
+
list: v,
|
|
90
|
+
containerProps: i,
|
|
91
|
+
wrapperProps: b,
|
|
92
|
+
activeRow: R,
|
|
93
|
+
gridColumnTemplate: T,
|
|
94
|
+
floatingActionRef: H,
|
|
95
|
+
scrollToTop: E,
|
|
96
|
+
toggleSortOrder: L,
|
|
97
|
+
columnsStickyPositions: P,
|
|
98
|
+
hasSearchSlot: k,
|
|
99
|
+
showBackToTopButton: I,
|
|
100
|
+
containerStyle: O,
|
|
101
|
+
onScroll: B,
|
|
102
|
+
savingRows: c,
|
|
103
|
+
floatingActionPosition: g,
|
|
104
|
+
hasExpandSlot: C,
|
|
105
|
+
hasCheckboxes: m,
|
|
106
|
+
toggleExpandRow: D,
|
|
107
|
+
isRowExpanded: _,
|
|
108
|
+
cssRowHeight: M,
|
|
109
|
+
cssExpandGridCol: W
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
export {
|
|
113
|
+
Z as tableCommon
|
|
114
|
+
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export type Row = unknown[];
|
|
1
2
|
export type Column = {
|
|
2
3
|
id: string;
|
|
3
4
|
title: string;
|
|
@@ -7,6 +8,7 @@ export type Column = {
|
|
|
7
8
|
colSpan?: number;
|
|
8
9
|
width?: number;
|
|
9
10
|
isTextRight?: boolean;
|
|
11
|
+
isStickyRight?: boolean;
|
|
10
12
|
};
|
|
11
13
|
export type Section = {
|
|
12
14
|
id: string;
|
|
@@ -19,3 +21,8 @@ export type Sort = {
|
|
|
19
21
|
sortBy: string;
|
|
20
22
|
sortOrder: 'asc' | 'desc';
|
|
21
23
|
};
|
|
24
|
+
export type MenuItem = {
|
|
25
|
+
id: string | number;
|
|
26
|
+
text: string;
|
|
27
|
+
icon?: string;
|
|
28
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { openBlock as t, createElementBlock as e, pushScopeId as c, popScopeId as r, createElementVNode as n } from "vue";
|
|
2
|
+
/* empty css */import s from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
const _ = {}, d = (o) => (c("data-v-cb20f507"), o = o(), r(), o), p = {
|
|
4
|
+
width: "8",
|
|
5
|
+
height: "4",
|
|
6
|
+
viewBox: "0 0 8 4",
|
|
7
|
+
fill: "none",
|
|
8
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
9
|
+
}, i = /* @__PURE__ */ d(() => /* @__PURE__ */ n("path", {
|
|
10
|
+
d: "M7.94188 3.66979L4.21022 0.0771272C4.1034 -0.0257091 3.89773 -0.0257091 3.78978 0.0771272L0.0581151 3.66979C-0.0805157 3.80376 0.0444792 4 0.268334 4H7.73167C7.95552 4 8.08052 3.80376 7.94188 3.66979Z",
|
|
11
|
+
fill: "currentColor"
|
|
12
|
+
}, null, -1)), l = [
|
|
13
|
+
i
|
|
14
|
+
];
|
|
15
|
+
function a(o, f) {
|
|
16
|
+
return t(), e("svg", p, l);
|
|
17
|
+
}
|
|
18
|
+
const u = /* @__PURE__ */ s(_, [["render", a], ["__scopeId", "data-v-cb20f507"]]);
|
|
19
|
+
export {
|
|
20
|
+
u as default
|
|
21
|
+
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { Column, Section, Sort } from '
|
|
2
|
-
type Row = unknown[];
|
|
1
|
+
import type { Column, Row, Section, Sort } from '../common/Table.types';
|
|
3
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
4
3
|
title: string;
|
|
5
4
|
columns: Column[];
|
|
@@ -85,8 +84,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
85
84
|
}, {
|
|
86
85
|
testId: string;
|
|
87
86
|
isLoading: boolean;
|
|
88
|
-
sections: Section[];
|
|
89
87
|
isSticky: boolean;
|
|
88
|
+
sections: Section[];
|
|
90
89
|
isStickyHeader: boolean;
|
|
91
90
|
emptyStateTitle: string;
|
|
92
91
|
emptyStateSubtitle: string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import o from "./Table.vue2.js";
|
|
2
|
+
/* empty css *//* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../Table.vue_vue_type_style_index_0_scoped_6b769df2_lang.css"; //*');
|
|
4
|
+
const r = /* @__PURE__ */ e(o, [["__scopeId", "data-v-6b769df2"]]);
|
|
5
|
+
export {
|
|
6
|
+
r as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
import "../../../Table.vue_vue_type_style_index_0_scoped_6b769df2_lang.css"; import { defineComponent as F, useCssVars as Y, unref as t, openBlock as s, createElementBlock as a, createElementVNode as o, normalizeStyle as y, normalizeClass as n, renderSlot as r, createVNode as c, withCtx as m, createTextVNode as g, toDisplayString as k, createCommentVNode as R, Fragment as $, renderList as v, createBlock as x, mergeProps as G, withDirectives as W, vShow as j } from "vue";
|
|
2
|
+
import "../../typography/Heading.vue.js";
|
|
3
|
+
import T from "../../typography/Text.vue.js";
|
|
4
|
+
import "../../button/v3/Button.vue.js";
|
|
5
|
+
import "../../button/v3/IconButton.vue.js";
|
|
6
|
+
import q from "../../button/v3/ScrollButton.vue.js";
|
|
7
|
+
import J from "../../skeleton/Skeleton.vue.js";
|
|
8
|
+
import K from "../../emptyState/v3/EmptyState.vue.js";
|
|
9
|
+
import Q from "./TableHeaderSorter.vue.js";
|
|
10
|
+
import { TableTestIdModifiers as u } from "../../../testids/index.js";
|
|
11
|
+
import { tableCommon as U } from "../common/Table.common.js";
|
|
12
|
+
const X = ["data-testid"], Z = ["data-testid"], p = ["data-testid"], _ = ["data-testid"], tt = ["data-testid"], et = ["data-testid"], it = ["data-testid"], st = ["onClick"], at = { class: "table-head-container" }, lt = ["data-testid"], ot = ["onMouseenter"], dt = { key: 1 }, nt = { key: 1 }, vt = /* @__PURE__ */ F({
|
|
13
|
+
__name: "Table",
|
|
14
|
+
props: {
|
|
15
|
+
title: null,
|
|
16
|
+
columns: null,
|
|
17
|
+
rows: null,
|
|
18
|
+
sections: { default: null },
|
|
19
|
+
sort: null,
|
|
20
|
+
isSticky: { type: Boolean, default: !0 },
|
|
21
|
+
isStickyHeader: { type: Boolean, default: !1 },
|
|
22
|
+
isLoading: { type: Boolean, default: !1 },
|
|
23
|
+
emptyStateTitle: { default: "No results found" },
|
|
24
|
+
emptyStateSubtitle: { default: "Try again with different filters" },
|
|
25
|
+
isInfiniteScroll: { type: Boolean, default: !1 },
|
|
26
|
+
infiniteScrollThreshold: { default: 100 },
|
|
27
|
+
rowHeight: { type: [Number, Function], default: 48 },
|
|
28
|
+
loadingRowCount: { default: 3 },
|
|
29
|
+
defaultScrollPosition: { default: null },
|
|
30
|
+
testId: { default: "" }
|
|
31
|
+
},
|
|
32
|
+
emits: ["update:sort", "onScroll", "saveRow", "loadMore"],
|
|
33
|
+
setup(i, { emit: A }) {
|
|
34
|
+
const H = i;
|
|
35
|
+
Y((l) => ({
|
|
36
|
+
"1ef755a4": t(N)
|
|
37
|
+
}));
|
|
38
|
+
const {
|
|
39
|
+
list: b,
|
|
40
|
+
containerProps: I,
|
|
41
|
+
wrapperProps: L,
|
|
42
|
+
activeRow: S,
|
|
43
|
+
gridColumnTemplate: N,
|
|
44
|
+
floatingActionRef: P,
|
|
45
|
+
scrollToTop: w,
|
|
46
|
+
toggleSortOrder: z,
|
|
47
|
+
columnsStickyPositions: B,
|
|
48
|
+
hasSearchSlot: M,
|
|
49
|
+
showBackToTopButton: O,
|
|
50
|
+
containerStyle: D,
|
|
51
|
+
onScroll: E,
|
|
52
|
+
savingRows: C,
|
|
53
|
+
floatingActionPosition: V
|
|
54
|
+
} = U(H, A);
|
|
55
|
+
return (l, h) => (s(), a("div", {
|
|
56
|
+
class: "table-container",
|
|
57
|
+
"data-testid": `${i.testId}-${t(u).CONTAINER}`,
|
|
58
|
+
onMouseleave: h[1] || (h[1] = (e) => S.value = null)
|
|
59
|
+
}, [
|
|
60
|
+
o("table", {
|
|
61
|
+
ref: t(I).ref,
|
|
62
|
+
style: y(t(D)),
|
|
63
|
+
"data-testid": `${i.testId}-${t(u).TABLE}`,
|
|
64
|
+
onScrollPassive: h[0] || (h[0] = //@ts-ignore
|
|
65
|
+
(...e) => t(E) && t(E)(...e))
|
|
66
|
+
}, [
|
|
67
|
+
i.title || l.$slots.search ? (s(), a("div", {
|
|
68
|
+
key: 0,
|
|
69
|
+
class: n(["table-header", { isStickyHeader: i.isStickyHeader }]),
|
|
70
|
+
"data-testid": `${i.testId}-${t(u).HEADER}`
|
|
71
|
+
}, [
|
|
72
|
+
o("div", {
|
|
73
|
+
class: n(["table-title", t(M) ? "border-search" : ""]),
|
|
74
|
+
"data-testid": `${i.testId}-${t(u).TITLE}`
|
|
75
|
+
}, [
|
|
76
|
+
r(l.$slots, "title", {}, () => [
|
|
77
|
+
c(t(T), {
|
|
78
|
+
size: "md",
|
|
79
|
+
strong: ""
|
|
80
|
+
}, {
|
|
81
|
+
default: m(() => [
|
|
82
|
+
g(k(i.title), 1)
|
|
83
|
+
]),
|
|
84
|
+
_: 1
|
|
85
|
+
})
|
|
86
|
+
], !0)
|
|
87
|
+
], 10, _),
|
|
88
|
+
o("div", {
|
|
89
|
+
class: "table-header-right",
|
|
90
|
+
"data-testid": `${i.testId}-${t(u).HEADER_RIGHT}`
|
|
91
|
+
}, [
|
|
92
|
+
r(l.$slots, "search", {}, void 0, !0)
|
|
93
|
+
], 8, tt),
|
|
94
|
+
o("div", {
|
|
95
|
+
class: "table-header-actions",
|
|
96
|
+
"data-testid": `${i.testId}-${t(u).ACTIONS}`
|
|
97
|
+
}, [
|
|
98
|
+
r(l.$slots, "table-header-actions", {}, void 0, !0)
|
|
99
|
+
], 8, et)
|
|
100
|
+
], 10, p)) : R("", !0),
|
|
101
|
+
o("thead", {
|
|
102
|
+
class: n({ sticky: i.isSticky, isStickyHeader: i.isStickyHeader })
|
|
103
|
+
}, [
|
|
104
|
+
o("div", {
|
|
105
|
+
class: "sections",
|
|
106
|
+
"data-testid": `${i.testId}-${t(u).SECTIONS}`
|
|
107
|
+
}, [
|
|
108
|
+
(s(!0), a($, null, v(i.sections, (e) => (s(), a("div", {
|
|
109
|
+
key: e.id,
|
|
110
|
+
class: n(["section-container", { sticky: e.isSticky }])
|
|
111
|
+
}, [
|
|
112
|
+
r(l.$slots, `section-${e.id}`, {}, () => [
|
|
113
|
+
o("div", {
|
|
114
|
+
style: y({ width: e.width + "px" }),
|
|
115
|
+
class: n({ section: !0 })
|
|
116
|
+
}, [
|
|
117
|
+
c(t(T), { size: "xs" }, {
|
|
118
|
+
default: m(() => [
|
|
119
|
+
g(k(e.title), 1)
|
|
120
|
+
]),
|
|
121
|
+
_: 2
|
|
122
|
+
}, 1024)
|
|
123
|
+
], 4)
|
|
124
|
+
], !0)
|
|
125
|
+
], 2))), 128))
|
|
126
|
+
], 8, it),
|
|
127
|
+
o("tr", null, [
|
|
128
|
+
(s(!0), a($, null, v(i.columns, (e) => (s(), a("th", {
|
|
129
|
+
key: e.id,
|
|
130
|
+
class: n({
|
|
131
|
+
sticky: e.isSticky,
|
|
132
|
+
bordered: e.isBordered,
|
|
133
|
+
isTextRight: e.isTextRight,
|
|
134
|
+
isSortable: e.isSortable
|
|
135
|
+
}),
|
|
136
|
+
style: y(e.isSticky ? t(B)[e.id] : null),
|
|
137
|
+
onClick: (f) => t(z)(e)
|
|
138
|
+
}, [
|
|
139
|
+
o("div", at, [
|
|
140
|
+
r(l.$slots, `header-${e.id}`, { column: e }, () => [
|
|
141
|
+
c(t(T), {
|
|
142
|
+
size: "sm",
|
|
143
|
+
strong: "",
|
|
144
|
+
"is-truncated": !1
|
|
145
|
+
}, {
|
|
146
|
+
default: m(() => [
|
|
147
|
+
g(k(e.title), 1)
|
|
148
|
+
]),
|
|
149
|
+
_: 2
|
|
150
|
+
}, 1024)
|
|
151
|
+
], !0),
|
|
152
|
+
e.id === i.sort.sortBy ? (s(), x(Q, {
|
|
153
|
+
key: 0,
|
|
154
|
+
class: "table-head-sorter",
|
|
155
|
+
"sort-order": i.sort.sortOrder
|
|
156
|
+
}, null, 8, ["sort-order"])) : R("", !0)
|
|
157
|
+
])
|
|
158
|
+
], 14, st))), 128))
|
|
159
|
+
])
|
|
160
|
+
], 2),
|
|
161
|
+
o("tbody", null, [
|
|
162
|
+
t(b).length > 0 ? (s(), a("div", G({
|
|
163
|
+
key: 0,
|
|
164
|
+
class: "table-body-wrapper",
|
|
165
|
+
"data-testid": `${i.testId}-${t(u).BODY_WRAPPER}`
|
|
166
|
+
}, t(L)), [
|
|
167
|
+
(s(!0), a($, null, v(t(b), (e) => (s(), a("tr", {
|
|
168
|
+
key: e.index,
|
|
169
|
+
class: n(["table-row", {
|
|
170
|
+
loading: i.isLoading || i.isLoading && !e.data || t(C).includes(e.index),
|
|
171
|
+
active: t(S) === e.index
|
|
172
|
+
}]),
|
|
173
|
+
onMouseenter: (f) => S.value = e.index
|
|
174
|
+
}, [
|
|
175
|
+
W(o("div", {
|
|
176
|
+
ref_for: !0,
|
|
177
|
+
ref_key: "floatingActionRef",
|
|
178
|
+
ref: P,
|
|
179
|
+
style: y({ left: t(V) + "px" }),
|
|
180
|
+
class: "floating-actions"
|
|
181
|
+
}, [
|
|
182
|
+
r(l.$slots, "floating-actions", { row: e }, void 0, !0)
|
|
183
|
+
], 4), [
|
|
184
|
+
[
|
|
185
|
+
j,
|
|
186
|
+
l.$slots["floating-actions"] && t(S) === e.index && !i.isLoading
|
|
187
|
+
]
|
|
188
|
+
]),
|
|
189
|
+
(s(!0), a($, null, v(e.data, (f, d) => (s(), a("td", {
|
|
190
|
+
key: d,
|
|
191
|
+
class: n({
|
|
192
|
+
sticky: i.columns[d].isSticky,
|
|
193
|
+
bordered: i.columns[d].isBordered,
|
|
194
|
+
isTextRight: i.columns[d].isTextRight
|
|
195
|
+
}),
|
|
196
|
+
style: y(
|
|
197
|
+
i.columns[d].isSticky ? t(B)[i.columns[d].id] : null
|
|
198
|
+
)
|
|
199
|
+
}, [
|
|
200
|
+
!i.isLoading || i.isLoading && f ? (s(), a("div", {
|
|
201
|
+
key: 0,
|
|
202
|
+
class: n({
|
|
203
|
+
last: d === e.data.length - 1,
|
|
204
|
+
"table-cell": !0,
|
|
205
|
+
floating: l.$slots["floating-actions"]
|
|
206
|
+
})
|
|
207
|
+
}, [
|
|
208
|
+
r(l.$slots, `cell-${i.columns[d].id}`, {
|
|
209
|
+
cell: f,
|
|
210
|
+
isLoading: t(C).includes(e.index),
|
|
211
|
+
cellIndex: d,
|
|
212
|
+
row: e,
|
|
213
|
+
rowIndex: e.index
|
|
214
|
+
}, () => [
|
|
215
|
+
c(t(T), { size: "sm" }, {
|
|
216
|
+
default: m(() => [
|
|
217
|
+
g(k(f), 1)
|
|
218
|
+
]),
|
|
219
|
+
_: 2
|
|
220
|
+
}, 1024)
|
|
221
|
+
], !0)
|
|
222
|
+
], 2)) : r(l.$slots, "loader", { key: 1 }, () => [
|
|
223
|
+
c(t(J), { round: "" })
|
|
224
|
+
], !0)
|
|
225
|
+
], 6))), 128))
|
|
226
|
+
], 42, ot))), 128))
|
|
227
|
+
], 16, lt)) : (s(), a("div", dt, [
|
|
228
|
+
r(l.$slots, "empty-state", {}, () => [
|
|
229
|
+
c(t(K), {
|
|
230
|
+
title: i.emptyStateTitle,
|
|
231
|
+
subtitle: i.emptyStateSubtitle,
|
|
232
|
+
"test-id": `${i.testId}-${t(u).EMPTY_STATE}`
|
|
233
|
+
}, null, 8, ["title", "subtitle", "test-id"])
|
|
234
|
+
], !0)
|
|
235
|
+
]))
|
|
236
|
+
]),
|
|
237
|
+
t(b).length > 0 ? (s(), a("tfoot", nt)) : R("", !0)
|
|
238
|
+
], 44, Z),
|
|
239
|
+
c(t(q), {
|
|
240
|
+
show: t(O),
|
|
241
|
+
onScrolled: t(w)
|
|
242
|
+
}, null, 8, ["show", "onScrolled"])
|
|
243
|
+
], 40, X));
|
|
244
|
+
}
|
|
245
|
+
});
|
|
246
|
+
export {
|
|
247
|
+
vt as default
|
|
248
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import e from "./TableHeaderSorter.vue2.js";
|
|
2
|
+
/* empty css */import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../TableHeaderSorter.vue_vue_type_style_index_0_scoped_745a44a2_lang.css"; //*');
|
|
4
|
+
const t = /* @__PURE__ */ o(e, [["__scopeId", "data-v-745a44a2"]]);
|
|
5
|
+
export {
|
|
6
|
+
t as default
|
|
7
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "
|
|
1
|
+
import "../../../TableHeaderSorter.vue_vue_type_style_index_0_scoped_745a44a2_lang.css"; import { defineComponent as o, openBlock as a, createElementBlock as l, createVNode as r, normalizeClass as t } from "vue";
|
|
2
2
|
import s from "./SortOrderIcon.vue.js";
|
|
3
3
|
const c = { class: "table-head-sorter-container" }, u = /* @__PURE__ */ o({
|
|
4
4
|
__name: "TableHeaderSorter",
|