@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,298 +0,0 @@
|
|
|
1
|
-
import "../../Table.vue_vue_type_style_index_0_scoped_096d493a_lang.css"; import { defineComponent as Q, useCssVars as U, unref as i, ref as w, provide as X, computed as S, useSlots as Z, onMounted as p, openBlock as a, createElementBlock as r, createElementVNode as u, normalizeStyle as v, normalizeClass as c, renderSlot as f, createVNode as g, withCtx as C, createTextVNode as R, toDisplayString as B, createCommentVNode as A, Fragment as E, renderList as I, createBlock as _, mergeProps as tt, withDirectives as et, vShow as st } from "vue";
|
|
2
|
-
import "../typography/Heading.vue.js";
|
|
3
|
-
import L from "../typography/Text.vue.js";
|
|
4
|
-
import "../button/v3/Button.vue.js";
|
|
5
|
-
import "../button/v3/IconButton.vue.js";
|
|
6
|
-
import it from "../button/v3/ScrollButton.vue.js";
|
|
7
|
-
import ot from "../skeleton/Skeleton.vue.js";
|
|
8
|
-
import lt from "../emptyState/EmptyState.vue.js";
|
|
9
|
-
import at from "./TableHeaderSorter.vue.js";
|
|
10
|
-
import { useVirtualList as rt, useInfiniteScroll as nt } from "@vueuse/core";
|
|
11
|
-
import { TableContext as dt } from "./TableContext.js";
|
|
12
|
-
import { TableTestIdModifiers as h } from "../../testids/index.js";
|
|
13
|
-
const ut = ["data-testid"], ct = ["data-testid"], ft = ["data-testid"], ht = ["data-testid"], yt = ["data-testid"], St = ["data-testid"], gt = ["data-testid"], mt = ["onClick"], vt = { class: "table-head-container" }, $t = ["data-testid"], kt = ["onMouseenter"], Tt = { key: 1 }, bt = { key: 1 }, xt = /* @__PURE__ */ Q({
|
|
14
|
-
__name: "Table",
|
|
15
|
-
props: {
|
|
16
|
-
title: null,
|
|
17
|
-
columns: null,
|
|
18
|
-
rows: null,
|
|
19
|
-
sections: { default: null },
|
|
20
|
-
sort: null,
|
|
21
|
-
isSticky: { type: Boolean, default: !0 },
|
|
22
|
-
isStickyHeader: { type: Boolean, default: !1 },
|
|
23
|
-
isLoading: { type: Boolean, default: !1 },
|
|
24
|
-
emptyStateTitle: { default: "No results found" },
|
|
25
|
-
emptyStateSubtitle: { default: "Try again with different filters" },
|
|
26
|
-
isInfiniteScroll: { type: Boolean, default: !1 },
|
|
27
|
-
infiniteScrollThreshold: { default: 100 },
|
|
28
|
-
rowHeight: { type: [Number, Function], default: 48 },
|
|
29
|
-
loadingRowCount: { default: 3 },
|
|
30
|
-
defaultScrollPosition: { default: null },
|
|
31
|
-
testId: { default: "" }
|
|
32
|
-
},
|
|
33
|
-
emits: ["update:sort", "onScroll", "saveRow", "loadMore"],
|
|
34
|
-
setup(s, { emit: $ }) {
|
|
35
|
-
const o = s;
|
|
36
|
-
U((e) => ({
|
|
37
|
-
"1d573854": i(N)
|
|
38
|
-
}));
|
|
39
|
-
const m = w([]);
|
|
40
|
-
X(dt, {
|
|
41
|
-
onClose({ rowIndex: e, cellIndex: l, value: t } = {}) {
|
|
42
|
-
t && (m.value = [...m.value, e], $("saveRow", {
|
|
43
|
-
rowIndex: e,
|
|
44
|
-
cellIndex: l,
|
|
45
|
-
value: t,
|
|
46
|
-
confirm: () => {
|
|
47
|
-
m.value = m.value.filter((d) => d !== e);
|
|
48
|
-
}
|
|
49
|
-
}));
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
const N = S(() => o.columns.reduce((e, l) => {
|
|
53
|
-
if (l === o.columns[o.columns.length - 1] && l.width)
|
|
54
|
-
return `${e} minmax(${l.width}px, 1fr)`;
|
|
55
|
-
const t = l.width ? `${l.width}px` : `${l.colSpan || 1}fr`;
|
|
56
|
-
return `${e} ${t}`;
|
|
57
|
-
}, "")), k = w(null), O = S(() => Array(o.loadingRowCount).fill(
|
|
58
|
-
Array(o.columns.length).fill("")
|
|
59
|
-
)), x = S(() => o.isLoading ? [...o.rows, ...O.value] : o.rows), { list: T, containerProps: y, wrapperProps: M } = rt(x, {
|
|
60
|
-
itemHeight: o.rowHeight
|
|
61
|
-
}), z = w(null), P = w(0), V = Z(), D = S(() => !!V.search), F = (e) => {
|
|
62
|
-
y.onScroll(), P.value = e.target.scrollLeft + e.target.getBoundingClientRect().width, $("onScroll", e.target.scrollTop);
|
|
63
|
-
};
|
|
64
|
-
p(() => {
|
|
65
|
-
P.value = y.ref.value?.getBoundingClientRect().width, o.defaultScrollPosition && setTimeout(() => {
|
|
66
|
-
y.ref?.value?.scrollTo({
|
|
67
|
-
top: o.defaultScrollPosition,
|
|
68
|
-
behavior: "smooth"
|
|
69
|
-
});
|
|
70
|
-
}, 300);
|
|
71
|
-
});
|
|
72
|
-
const Y = S(() => {
|
|
73
|
-
const [e] = T.value;
|
|
74
|
-
return e && e.index > 0;
|
|
75
|
-
}), G = S(() => y.style), H = S(() => o.columns.reduce((e, l) => (l.isSticky && (e[l.id] = q(l)), e), {}));
|
|
76
|
-
nt(
|
|
77
|
-
y.ref,
|
|
78
|
-
() => {
|
|
79
|
-
o.isInfiniteScroll && $("loadMore");
|
|
80
|
-
},
|
|
81
|
-
{ distance: o.infiniteScrollThreshold }
|
|
82
|
-
);
|
|
83
|
-
function W() {
|
|
84
|
-
y.ref.value?.scrollTo({
|
|
85
|
-
top: 0,
|
|
86
|
-
behavior: "smooth"
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
function j(e) {
|
|
90
|
-
const l = o.sort.sortBy === e.id;
|
|
91
|
-
if (!(e.isSortable || e.isSortable === void 0))
|
|
92
|
-
return;
|
|
93
|
-
let d = o.sort.sortOrder, n = o.sort.sortBy;
|
|
94
|
-
l ? d = o.sort.sortOrder === "asc" ? "desc" : "asc" : n = e.id, $("update:sort", { sortBy: n, sortOrder: d });
|
|
95
|
-
}
|
|
96
|
-
function q(e) {
|
|
97
|
-
const { isSticky: l, width: t } = e;
|
|
98
|
-
if (!l || !t)
|
|
99
|
-
return null;
|
|
100
|
-
const d = o.columns.findIndex((b) => b.id === e.id);
|
|
101
|
-
return {
|
|
102
|
-
left: `${o.columns.reduce((b, J, K) => K < d ? b + J.width : b, 0)}px`,
|
|
103
|
-
zIndex: 1
|
|
104
|
-
};
|
|
105
|
-
}
|
|
106
|
-
return (e, l) => (a(), r("div", {
|
|
107
|
-
class: "table-container",
|
|
108
|
-
"data-testid": `${s.testId}-${i(h).CONTAINER}`,
|
|
109
|
-
onMouseleave: l[0] || (l[0] = (t) => k.value = null)
|
|
110
|
-
}, [
|
|
111
|
-
u("table", {
|
|
112
|
-
ref: i(y).ref,
|
|
113
|
-
style: v(i(G)),
|
|
114
|
-
"data-testid": `${s.testId}-${i(h).TABLE}`,
|
|
115
|
-
onScrollPassive: F
|
|
116
|
-
}, [
|
|
117
|
-
s.title || e.$slots.search ? (a(), r("div", {
|
|
118
|
-
key: 0,
|
|
119
|
-
class: c(["table-header", { isStickyHeader: s.isStickyHeader }]),
|
|
120
|
-
"data-testid": `${s.testId}-${i(h).HEADER}`
|
|
121
|
-
}, [
|
|
122
|
-
u("div", {
|
|
123
|
-
class: c(["table-title", i(D) ? "border-search" : ""]),
|
|
124
|
-
"data-testid": `${s.testId}-${i(h).TITLE}`
|
|
125
|
-
}, [
|
|
126
|
-
f(e.$slots, "title", {}, () => [
|
|
127
|
-
g(i(L), {
|
|
128
|
-
size: "md",
|
|
129
|
-
strong: ""
|
|
130
|
-
}, {
|
|
131
|
-
default: C(() => [
|
|
132
|
-
R(B(s.title), 1)
|
|
133
|
-
]),
|
|
134
|
-
_: 1
|
|
135
|
-
})
|
|
136
|
-
], !0)
|
|
137
|
-
], 10, ht),
|
|
138
|
-
u("div", {
|
|
139
|
-
class: "table-header-right",
|
|
140
|
-
"data-testid": `${s.testId}-${i(h).HEADER_RIGHT}`
|
|
141
|
-
}, [
|
|
142
|
-
f(e.$slots, "search", {}, void 0, !0)
|
|
143
|
-
], 8, yt),
|
|
144
|
-
u("div", {
|
|
145
|
-
class: "table-header-actions",
|
|
146
|
-
"data-testid": `${s.testId}-${i(h).ACTIONS}`
|
|
147
|
-
}, [
|
|
148
|
-
f(e.$slots, "table-header-actions", {}, void 0, !0)
|
|
149
|
-
], 8, St)
|
|
150
|
-
], 10, ft)) : A("", !0),
|
|
151
|
-
u("thead", {
|
|
152
|
-
class: c({ sticky: s.isSticky, isStickyHeader: s.isStickyHeader })
|
|
153
|
-
}, [
|
|
154
|
-
u("div", {
|
|
155
|
-
class: "sections",
|
|
156
|
-
"data-testid": `${s.testId}-${i(h).SECTIONS}`
|
|
157
|
-
}, [
|
|
158
|
-
(a(!0), r(E, null, I(s.sections, (t) => (a(), r("div", {
|
|
159
|
-
key: t.id,
|
|
160
|
-
class: c(["section-container", { sticky: t.isSticky }])
|
|
161
|
-
}, [
|
|
162
|
-
f(e.$slots, `section-${t.id}`, {}, () => [
|
|
163
|
-
u("div", {
|
|
164
|
-
style: v({ width: t.width + "px" }),
|
|
165
|
-
class: c({ section: !0 })
|
|
166
|
-
}, [
|
|
167
|
-
g(i(L), { size: "xs" }, {
|
|
168
|
-
default: C(() => [
|
|
169
|
-
R(B(t.title), 1)
|
|
170
|
-
]),
|
|
171
|
-
_: 2
|
|
172
|
-
}, 1024)
|
|
173
|
-
], 4)
|
|
174
|
-
], !0)
|
|
175
|
-
], 2))), 128))
|
|
176
|
-
], 8, gt),
|
|
177
|
-
u("tr", null, [
|
|
178
|
-
(a(!0), r(E, null, I(s.columns, (t) => (a(), r("th", {
|
|
179
|
-
key: t.id,
|
|
180
|
-
class: c({
|
|
181
|
-
sticky: t.isSticky,
|
|
182
|
-
bordered: t.isBordered,
|
|
183
|
-
isTextRight: t.isTextRight,
|
|
184
|
-
isSortable: t.isSortable
|
|
185
|
-
}),
|
|
186
|
-
style: v(t.isSticky ? i(H)[t.id] : null),
|
|
187
|
-
onClick: (d) => j(t)
|
|
188
|
-
}, [
|
|
189
|
-
u("div", vt, [
|
|
190
|
-
f(e.$slots, `header-${t.id}`, { column: t }, () => [
|
|
191
|
-
g(i(L), {
|
|
192
|
-
size: "sm",
|
|
193
|
-
strong: "",
|
|
194
|
-
"is-truncated": !1
|
|
195
|
-
}, {
|
|
196
|
-
default: C(() => [
|
|
197
|
-
R(B(t.title), 1)
|
|
198
|
-
]),
|
|
199
|
-
_: 2
|
|
200
|
-
}, 1024)
|
|
201
|
-
], !0),
|
|
202
|
-
t.id === s.sort.sortBy ? (a(), _(at, {
|
|
203
|
-
key: 0,
|
|
204
|
-
class: "table-head-sorter",
|
|
205
|
-
"sort-order": s.sort.sortOrder
|
|
206
|
-
}, null, 8, ["sort-order"])) : A("", !0)
|
|
207
|
-
])
|
|
208
|
-
], 14, mt))), 128))
|
|
209
|
-
])
|
|
210
|
-
], 2),
|
|
211
|
-
u("tbody", null, [
|
|
212
|
-
i(T).length > 0 ? (a(), r("div", tt({
|
|
213
|
-
key: 0,
|
|
214
|
-
class: "table-body-wrapper",
|
|
215
|
-
"data-testid": `${s.testId}-${i(h).BODY_WRAPPER}`
|
|
216
|
-
}, i(M)), [
|
|
217
|
-
(a(!0), r(E, null, I(i(T), (t) => (a(), r("tr", {
|
|
218
|
-
key: t.index,
|
|
219
|
-
class: c(["table-row", {
|
|
220
|
-
loading: s.isLoading || s.isLoading && !t.data || m.value.includes(t.index),
|
|
221
|
-
active: k.value === t.index
|
|
222
|
-
}]),
|
|
223
|
-
onMouseenter: (d) => k.value = t.index
|
|
224
|
-
}, [
|
|
225
|
-
et(u("div", {
|
|
226
|
-
ref_for: !0,
|
|
227
|
-
ref_key: "floatingActionRef",
|
|
228
|
-
ref: z,
|
|
229
|
-
style: v({ left: P.value + "px" }),
|
|
230
|
-
class: "floating-actions"
|
|
231
|
-
}, [
|
|
232
|
-
f(e.$slots, "floating-actions", { row: t }, void 0, !0)
|
|
233
|
-
], 4), [
|
|
234
|
-
[
|
|
235
|
-
st,
|
|
236
|
-
e.$slots["floating-actions"] && k.value === t.index && !s.isLoading
|
|
237
|
-
]
|
|
238
|
-
]),
|
|
239
|
-
(a(!0), r(E, null, I(t.data, (d, n) => (a(), r("td", {
|
|
240
|
-
key: n,
|
|
241
|
-
class: c({
|
|
242
|
-
sticky: s.columns[n].isSticky,
|
|
243
|
-
bordered: s.columns[n].isBordered,
|
|
244
|
-
isTextRight: s.columns[n].isTextRight
|
|
245
|
-
}),
|
|
246
|
-
style: v(
|
|
247
|
-
s.columns[n].isSticky ? i(H)[s.columns[n].id] : null
|
|
248
|
-
)
|
|
249
|
-
}, [
|
|
250
|
-
!s.isLoading || s.isLoading && d ? (a(), r("div", {
|
|
251
|
-
key: 0,
|
|
252
|
-
class: c({
|
|
253
|
-
last: n === t.data.length - 1,
|
|
254
|
-
"table-cell": !0,
|
|
255
|
-
floating: e.$slots["floating-actions"]
|
|
256
|
-
})
|
|
257
|
-
}, [
|
|
258
|
-
f(e.$slots, `cell-${s.columns[n].id}`, {
|
|
259
|
-
cell: d,
|
|
260
|
-
isLoading: m.value.includes(t.index),
|
|
261
|
-
cellIndex: n,
|
|
262
|
-
row: t,
|
|
263
|
-
rowIndex: t.index
|
|
264
|
-
}, () => [
|
|
265
|
-
g(i(L), { size: "sm" }, {
|
|
266
|
-
default: C(() => [
|
|
267
|
-
R(B(d), 1)
|
|
268
|
-
]),
|
|
269
|
-
_: 2
|
|
270
|
-
}, 1024)
|
|
271
|
-
], !0)
|
|
272
|
-
], 2)) : f(e.$slots, "loader", { key: 1 }, () => [
|
|
273
|
-
g(i(ot), { round: "" })
|
|
274
|
-
], !0)
|
|
275
|
-
], 6))), 128))
|
|
276
|
-
], 42, kt))), 128))
|
|
277
|
-
], 16, $t)) : (a(), r("div", Tt, [
|
|
278
|
-
f(e.$slots, "empty-state", {}, () => [
|
|
279
|
-
g(i(lt), {
|
|
280
|
-
title: s.emptyStateTitle,
|
|
281
|
-
subtitle: s.emptyStateSubtitle,
|
|
282
|
-
"test-id": `${s.testId}-${i(h).EMPTY_STATE}`
|
|
283
|
-
}, null, 8, ["title", "subtitle", "test-id"])
|
|
284
|
-
], !0)
|
|
285
|
-
]))
|
|
286
|
-
]),
|
|
287
|
-
i(T).length > 0 ? (a(), r("tfoot", bt)) : A("", !0)
|
|
288
|
-
], 44, ct),
|
|
289
|
-
g(i(it), {
|
|
290
|
-
show: i(Y),
|
|
291
|
-
onScrolled: W
|
|
292
|
-
}, null, 8, ["show"])
|
|
293
|
-
], 40, ut));
|
|
294
|
-
}
|
|
295
|
-
});
|
|
296
|
-
export {
|
|
297
|
-
xt as default
|
|
298
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
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_350aa9f0_lang.css"; //*');
|
|
4
|
-
const t = /* @__PURE__ */ o(e, [["__scopeId", "data-v-350aa9f0"]]);
|
|
5
|
-
export {
|
|
6
|
-
t as default
|
|
7
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import o from "./Editable.vue2.js";
|
|
2
|
-
/* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../Editable.vue_vue_type_style_index_0_scoped_3b865286_lang.css"; //*');
|
|
4
|
-
const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-3b865286"]]);
|
|
5
|
-
export {
|
|
6
|
-
p as default
|
|
7
|
-
};
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import "../../Editable.vue_vue_type_style_index_0_scoped_3b865286_lang.css"; import { defineComponent as v, ref as n, provide as p, openBlock as u, createElementBlock as c, createElementVNode as m, renderSlot as d, createVNode as x, withCtx as C, createTextVNode as b, toDisplayString as E } from "vue";
|
|
2
|
-
import _ from "../typography/Text.vue.js";
|
|
3
|
-
import { EditableContext as g } from "./EditableContext.js";
|
|
4
|
-
import { onClickOutside as k } from "@vueuse/core";
|
|
5
|
-
import { useTableContext as y } from "../table/TableContext.js";
|
|
6
|
-
const I = { class: "editable-container" }, h = {
|
|
7
|
-
key: 1,
|
|
8
|
-
class: "editable-content"
|
|
9
|
-
}, S = /* @__PURE__ */ v({
|
|
10
|
-
__name: "Editable",
|
|
11
|
-
props: {
|
|
12
|
-
cell: { default: "" },
|
|
13
|
-
isEditing: { type: Boolean, default: !1 },
|
|
14
|
-
validateFunction: { type: Function, default: () => !1 },
|
|
15
|
-
isLoading: { type: Boolean, default: !1 },
|
|
16
|
-
rowIndex: null,
|
|
17
|
-
cellIndex: null
|
|
18
|
-
},
|
|
19
|
-
setup(r) {
|
|
20
|
-
const l = r, t = n(!1), o = n(l.cell), i = n(null), s = y("Editable"), a = n(null);
|
|
21
|
-
p(g, {
|
|
22
|
-
focusable: !0,
|
|
23
|
-
value: o,
|
|
24
|
-
error: a,
|
|
25
|
-
confirmable: !0,
|
|
26
|
-
onChange(e) {
|
|
27
|
-
o.value = e, a.value = l.validateFunction?.(o.value);
|
|
28
|
-
},
|
|
29
|
-
onClose: () => {
|
|
30
|
-
const e = l.validateFunction?.(o.value);
|
|
31
|
-
a.value = e, !e && (s.onClose({
|
|
32
|
-
rowIndex: l.rowIndex,
|
|
33
|
-
cellIndex: l.cellIndex,
|
|
34
|
-
value: o.value
|
|
35
|
-
}), t.value = !1);
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
const f = () => {
|
|
39
|
-
t.value || (t.value = !t.value);
|
|
40
|
-
};
|
|
41
|
-
return k(i, () => {
|
|
42
|
-
t.value = !1, s.onClose();
|
|
43
|
-
}), (e, w) => (u(), c("div", {
|
|
44
|
-
ref_key: "target",
|
|
45
|
-
ref: i,
|
|
46
|
-
class: "container",
|
|
47
|
-
onClick: f
|
|
48
|
-
}, [
|
|
49
|
-
m("div", I, [
|
|
50
|
-
t.value ? d(e.$slots, "input", { key: 0 }, void 0, !0) : (u(), c("div", h, [
|
|
51
|
-
d(e.$slots, "content", {}, () => [
|
|
52
|
-
x(_, { size: "sm" }, {
|
|
53
|
-
default: C(() => [
|
|
54
|
-
b(E(r.cell), 1)
|
|
55
|
-
]),
|
|
56
|
-
_: 1
|
|
57
|
-
})
|
|
58
|
-
], !0)
|
|
59
|
-
]))
|
|
60
|
-
])
|
|
61
|
-
], 512));
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
export {
|
|
65
|
-
S as default
|
|
66
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import o from "./Tabs.vue2.js";
|
|
2
|
-
/* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../Tabs.vue_vue_type_style_index_0_scoped_e92a7c21_lang.css"; //*');
|
|
4
|
-
const a = /* @__PURE__ */ e(o, [["__scopeId", "data-v-e92a7c21"]]);
|
|
5
|
-
export {
|
|
6
|
-
a as default
|
|
7
|
-
};
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import "../../Tabs.vue_vue_type_style_index_0_scoped_e92a7c21_lang.css"; import { defineComponent as W, useCssVars as y, unref as n, ref as T, computed as c, openBlock as o, createElementBlock as l, normalizeClass as u, Fragment as H, renderList as M, renderSlot as V, createBlock as p, createCommentVNode as m, withCtx as E, createTextVNode as F, toDisplayString as P, pushScopeId as _, popScopeId as A, createElementVNode as R } from "vue";
|
|
2
|
-
import "../typography/Heading.vue.js";
|
|
3
|
-
import U from "../typography/Text.vue.js";
|
|
4
|
-
import D from "../icon/v3/Icon.vue.js";
|
|
5
|
-
import { TabsTestIdModifiers as h } from "../../testids/index.js";
|
|
6
|
-
const j = (s) => (_("data-v-e92a7c21"), s = s(), A(), s), q = ["data-testid"], G = ["data-testid", "onClick", "onMouseover"], J = /* @__PURE__ */ j(() => /* @__PURE__ */ R("div", { class: "tabs-border-line" }, null, -1)), K = {
|
|
7
|
-
key: 0,
|
|
8
|
-
class: "tabs-border-line-hover"
|
|
9
|
-
}, ee = /* @__PURE__ */ W({
|
|
10
|
-
__name: "Tabs",
|
|
11
|
-
props: {
|
|
12
|
-
tabsList: { default: () => [] },
|
|
13
|
-
selectedTab: null,
|
|
14
|
-
variant: { default: "fill" },
|
|
15
|
-
size: { default: "sm" },
|
|
16
|
-
testId: { default: "" }
|
|
17
|
-
},
|
|
18
|
-
emits: ["update:selectedTab"],
|
|
19
|
-
setup(s, { emit: x }) {
|
|
20
|
-
const r = s;
|
|
21
|
-
y((e) => ({
|
|
22
|
-
"995c11c2": n(L),
|
|
23
|
-
"8202f8e0": n($),
|
|
24
|
-
"0305a06a": n(g),
|
|
25
|
-
"2b9ee853": n(N)
|
|
26
|
-
}));
|
|
27
|
-
const a = T([]), d = T(null), I = 12, k = { tabsNewList: a }, C = c(
|
|
28
|
-
() => d.value && d.value !== r.selectedTab
|
|
29
|
-
), L = c(() => {
|
|
30
|
-
const e = i();
|
|
31
|
-
return a.value[e]?.offsetLeft + "px";
|
|
32
|
-
}), i = () => r.tabsList.findIndex((e) => e.id === r.selectedTab), $ = c(() => {
|
|
33
|
-
const e = i();
|
|
34
|
-
return a.value[e]?.clientWidth + "px";
|
|
35
|
-
}), f = (e) => {
|
|
36
|
-
const v = a.value[e]?.offsetLeft, t = a.value[e]?.clientWidth;
|
|
37
|
-
return (parseFloat(v) + parseFloat(t) / 2 - I).toString() + "px";
|
|
38
|
-
}, g = c(() => {
|
|
39
|
-
const e = i();
|
|
40
|
-
return f(e);
|
|
41
|
-
}), w = () => r.tabsList.findIndex((e) => e.id === d.value), N = c(() => {
|
|
42
|
-
const e = w();
|
|
43
|
-
return f(e);
|
|
44
|
-
}), S = (e) => {
|
|
45
|
-
x("update:selectedTab", e.id);
|
|
46
|
-
}, z = (e) => {
|
|
47
|
-
e !== null && (d.value = e.id);
|
|
48
|
-
}, B = () => {
|
|
49
|
-
d.value = null;
|
|
50
|
-
};
|
|
51
|
-
return (e, v) => (o(), l("ul", {
|
|
52
|
-
class: u(["tabs-wrap", [s.size, s.variant]]),
|
|
53
|
-
"data-testid": `${s.testId}-${n(h).WRAPPER}`
|
|
54
|
-
}, [
|
|
55
|
-
(o(!0), l(H, null, M(s.tabsList, (t) => (o(), l("li", {
|
|
56
|
-
ref_for: !0,
|
|
57
|
-
ref: k.tabsNewList,
|
|
58
|
-
key: t.id,
|
|
59
|
-
class: u(["tab-item", {
|
|
60
|
-
"disabled-tab": t.disabled,
|
|
61
|
-
"selected-tab": t.id === s.selectedTab
|
|
62
|
-
}]),
|
|
63
|
-
"data-testid": `${s.testId}-${n(h).TAB}-${t.id}`,
|
|
64
|
-
onClick: (b) => S(t),
|
|
65
|
-
onMouseover: (b) => z(t),
|
|
66
|
-
onMouseleave: B
|
|
67
|
-
}, [
|
|
68
|
-
V(e.$slots, "default", { tab: t }, () => [
|
|
69
|
-
t.iconName ? (o(), p(n(D), {
|
|
70
|
-
key: 0,
|
|
71
|
-
name: t.iconName,
|
|
72
|
-
class: u(["tab-icon", {
|
|
73
|
-
size: s.size,
|
|
74
|
-
"lone-icon": !t.name
|
|
75
|
-
}])
|
|
76
|
-
}, null, 8, ["name", "class"])) : m("", !0),
|
|
77
|
-
t.name ? (o(), p(n(U), {
|
|
78
|
-
key: 1,
|
|
79
|
-
size: "sm",
|
|
80
|
-
strong: ""
|
|
81
|
-
}, {
|
|
82
|
-
default: E(() => [
|
|
83
|
-
F(P(t.name), 1)
|
|
84
|
-
]),
|
|
85
|
-
_: 2
|
|
86
|
-
}, 1024)) : m("", !0)
|
|
87
|
-
], !0)
|
|
88
|
-
], 42, G))), 128)),
|
|
89
|
-
J,
|
|
90
|
-
n(C) ? (o(), l("div", K)) : m("", !0)
|
|
91
|
-
], 10, q));
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
|
-
export {
|
|
95
|
-
ee as default
|
|
96
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import o from "./Toggle.vue2.js";
|
|
2
|
-
/* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../Toggle.vue_vue_type_style_index_0_scoped_d97166d1_lang.css"; //*');
|
|
4
|
-
const d = /* @__PURE__ */ e(o, [["__scopeId", "data-v-d97166d1"]]);
|
|
5
|
-
export {
|
|
6
|
-
d as default
|
|
7
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import t from "./TextWithTitleContent.vue2.js";
|
|
2
|
-
/* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../TextWithTitleContent.vue_vue_type_style_index_0_scoped_7da6e1ca_lang.css"; //*');
|
|
4
|
-
const a = /* @__PURE__ */ e(t, [["__scopeId", "data-v-7da6e1ca"]]);
|
|
5
|
-
export {
|
|
6
|
-
a as default
|
|
7
|
-
};
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { defineComponent as y, ref as r, useSlots as v, watch as m, openBlock as n, createBlock as s, unref as a, mergeProps as w, withCtx as u, renderSlot as h, createTextVNode as g, toDisplayString as S, createElementVNode as k, nextTick as $ } from "vue";
|
|
2
|
-
import I from "./TextWithTitleContent.vue.js";
|
|
3
|
-
import "../typography/Heading.vue.js";
|
|
4
|
-
import W from "../typography/Text.vue.js";
|
|
5
|
-
import { Tooltip as b } from "floating-vue";
|
|
6
|
-
import { TooltipTestIdModifiers as x } from "../../testids/index.js";
|
|
7
|
-
const N = /* @__PURE__ */ y({
|
|
8
|
-
__name: "Tooltip",
|
|
9
|
-
props: {
|
|
10
|
-
text: { default: null },
|
|
11
|
-
header: { default: null },
|
|
12
|
-
delay: { default: 0 },
|
|
13
|
-
triggers: { default: () => ["hover"] },
|
|
14
|
-
forceShowWithTruncate: { type: Boolean, default: !1 },
|
|
15
|
-
placement: { default: "top" },
|
|
16
|
-
theme: { default: "default" },
|
|
17
|
-
disabled: { type: Boolean, default: !1 },
|
|
18
|
-
testId: { default: "" }
|
|
19
|
-
},
|
|
20
|
-
setup(e) {
|
|
21
|
-
const o = e, i = r(!1), l = r(null), d = r(null), T = v(), f = () => i.value ? o.text : null, c = async () => {
|
|
22
|
-
if (i.value = !0, await $(), !o.forceShowWithTruncate) {
|
|
23
|
-
const t = d.value?.children && d.value.children[0];
|
|
24
|
-
(t && window.getComputedStyle(t, null).getPropertyValue("text-overflow")) === "ellipsis" && (i.value = t.offsetWidth < t.scrollWidth);
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
return m(
|
|
28
|
-
() => o.text,
|
|
29
|
-
async () => {
|
|
30
|
-
await c(), l.value = f();
|
|
31
|
-
},
|
|
32
|
-
{ immediate: !0 }
|
|
33
|
-
), m(
|
|
34
|
-
() => T.default,
|
|
35
|
-
async () => {
|
|
36
|
-
await c(), l.value = f();
|
|
37
|
-
},
|
|
38
|
-
{ immediate: !0 }
|
|
39
|
-
), (t, p) => (n(), s(a(b), w(t.$props, {
|
|
40
|
-
theme: e.theme,
|
|
41
|
-
"no-auto-focus": "",
|
|
42
|
-
triggers: e.triggers,
|
|
43
|
-
delay: { show: e.delay, hide: 0 },
|
|
44
|
-
placement: e.placement,
|
|
45
|
-
disabled: e.disabled || e.text && !l.value,
|
|
46
|
-
"data-testid": `${e.testId}-${a(x).TRIGGER}`,
|
|
47
|
-
"auto-hide": ""
|
|
48
|
-
}), {
|
|
49
|
-
popper: u(() => [
|
|
50
|
-
h(t.$slots, "tooltip", { text: l.value }, () => [
|
|
51
|
-
e.header ? (n(), s(I, {
|
|
52
|
-
key: 1,
|
|
53
|
-
text: e.text,
|
|
54
|
-
header: e.header
|
|
55
|
-
}, null, 8, ["text", "header"])) : (n(), s(a(W), {
|
|
56
|
-
key: 0,
|
|
57
|
-
size: "sm",
|
|
58
|
-
"is-truncated": !1,
|
|
59
|
-
strong: "",
|
|
60
|
-
"test-id": `${e.testId}-${a(x).TEXT}`
|
|
61
|
-
}, {
|
|
62
|
-
default: u(() => [
|
|
63
|
-
g(S(l.value), 1)
|
|
64
|
-
]),
|
|
65
|
-
_: 1
|
|
66
|
-
}, 8, ["test-id"]))
|
|
67
|
-
])
|
|
68
|
-
]),
|
|
69
|
-
default: u(() => [
|
|
70
|
-
k("div", {
|
|
71
|
-
ref_key: "container",
|
|
72
|
-
ref: d,
|
|
73
|
-
class: "container"
|
|
74
|
-
}, [
|
|
75
|
-
h(t.$slots, "default")
|
|
76
|
-
], 512)
|
|
77
|
-
]),
|
|
78
|
-
_: 3
|
|
79
|
-
}, 16, ["theme", "triggers", "delay", "placement", "disabled", "data-testid"]));
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
export {
|
|
83
|
-
N as default
|
|
84
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/components/tooltip/{TextWithTitleContent.vue.d.ts → v3/TextWithTitleContent.vue.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|