@ironsource/shared-ui 2.0.0-rc.5 → 2.0.0-rc.7
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/ButtonV4.vue_vue_type_style_index_0_scoped_3fd2281b_lang.css +1 -0
- package/Checkbox.vue_vue_type_style_index_0_scoped_58dedb90_lang.css +1 -0
- package/CheckboxV4.vue_vue_type_style_index_0_scoped_ee3e6d82_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_7a670808_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/Dropdown.vue_vue_type_style_index_0_scoped_e8324d12_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/FilterDropdown.vue_vue_type_style_index_0_scoped_1320b13b_lang.css +1 -0
- package/FilterSearchInput.vue_vue_type_style_index_0_scoped_51006ea0_lang.css +1 -0
- package/FiltersPanel.vue_vue_type_style_index_0_scoped_9d2f3413_lang.css +1 -0
- package/FiltersPanelV4.vue_vue_type_style_index_0_scoped_39061862_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_2a01a791_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_85bff8f4_lang.css +1 -0
- package/IncludeExcludeOption.vue_vue_type_style_index_0_scoped_91bc7787_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/Label.vue_vue_type_style_index_0_scoped_48e00c04_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/Option.vue_vue_type_style_index_0_scoped_3d6ce2fc_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_92add735_lang.css +1 -0
- package/RadioButton.vue_vue_type_style_index_0_scoped_3c6b715c_lang.css +1 -0
- package/RadioButtonV4.vue_vue_type_style_index_0_scoped_14be812e_lang.css +1 -0
- package/RadioGroup.vue_vue_type_style_index_0_scoped_3071ef24_lang.css +1 -0
- package/RadioGroupV4.vue_vue_type_style_index_0_scoped_f8e8cbab_lang.css +1 -0
- package/ScrollButton.vue_vue_type_style_index_0_scoped_35ed2cfe_lang.css +1 -0
- package/SearchInput.vue_vue_type_style_index_0_scoped_b256f8ef_lang.css +1 -0
- package/SearchV4.vue_vue_type_style_index_0_scoped_215f0f29_lang.css +1 -0
- package/Snackbar.vue_vue_type_style_index_0_scoped_cec4f8e5_lang.css +1 -0
- package/SnackbarV4.vue_vue_type_style_index_0_scoped_48311746_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/autocompleteDropdown/AutocompleteDropdown.vue2.js +3 -3
- package/components/button/common/ButtonSuper.vue.d.ts +6 -6
- package/components/button/v3/Button.vue.d.ts +6 -6
- package/components/button/v3/ScrollButton.vue.js +3 -3
- package/components/button/v3/ScrollButton.vue2.js +3 -3
- package/components/button/v4/ButtonV4.vue.d.ts +11 -6
- package/components/button/v4/ButtonV4.vue.js +3 -3
- package/components/button/v4/ButtonV4.vue2.js +13 -10
- 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 +224 -18
- package/components/button/v4/index.js +6 -4
- package/components/checkbox/common/Checkbox.common.d.ts +11 -0
- package/components/checkbox/common/Checkbox.common.js +32 -0
- package/components/checkbox/v3/Checkbox.vue.js +7 -0
- package/components/checkbox/v3/Checkbox.vue2.js +99 -0
- package/components/checkbox/{icons → v3/icons}/checked.vue.js +1 -1
- package/components/checkbox/{icons → v3/icons}/indeterminate.vue.js +1 -1
- package/components/checkbox/{icons → v3/icons}/unchecked.vue.js +1 -1
- package/components/checkbox/v4/CheckboxV4.vue.d.ts +53 -0
- package/components/checkbox/v4/CheckboxV4.vue.js +7 -0
- package/components/checkbox/v4/CheckboxV4.vue2.js +107 -0
- package/components/checkbox/v4/icons/CheckedDisabledState.vue.js +38 -0
- package/components/checkbox/v4/icons/CheckedState.vue.js +38 -0
- package/components/checkbox/v4/icons/IndeterminateDisabledState.vue.js +40 -0
- package/components/checkbox/v4/icons/IndeterminateState.vue.d.ts +2 -0
- package/components/checkbox/v4/icons/IndeterminateState.vue.js +40 -0
- package/components/checkbox/v4/icons/UncheckedDisabledState.vue.d.ts +2 -0
- package/components/checkbox/v4/icons/UncheckedDisabledState.vue.js +31 -0
- package/components/checkbox/v4/icons/UncheckedState.vue.d.ts +2 -0
- package/components/checkbox/v4/icons/UncheckedState.vue.js +31 -0
- package/components/checkbox/v4/index.d.ts +152 -0
- package/components/checkbox/v4/index.js +6 -0
- 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/Dropdown.vue.js +2 -2
- package/components/dropdown/v3/Dropdown.vue2.js +3 -3
- package/components/dropdown/v3/Label.vue.js +7 -0
- package/components/dropdown/{common → v3}/Label.vue2.js +2 -2
- package/components/dropdown/v3/Option.vue.js +7 -0
- package/components/dropdown/{common → v3}/Option.vue2.js +3 -3
- package/components/dropdown/{common → v3}/SearchInput.vue.js +2 -2
- package/components/dropdown/{common → v3}/SearchInput.vue2.js +2 -2
- package/components/dropdown/v3/index.d.ts +43 -43
- package/components/dropdown/v3/index.js +3 -3
- 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/OptionV4.vue.js +3 -3
- package/components/dropdown/v4/OptionV4.vue2.js +2 -2
- package/components/dropdown/v4/index.d.ts +190 -115
- package/components/dropdown/v4/index.js +14 -4
- package/components/emptyState/v3/EmptyState.vue.d.ts +93 -0
- package/components/emptyState/v3/EmptyState.vue.js +7 -0
- package/components/emptyState/{EmptyState.vue2.js → v3/EmptyState.vue2.js} +7 -7
- package/components/emptyState/v3/EmptyStateIcon.vue.d.ts +2 -0
- package/components/emptyState/{EmptyStateIcon.vue.js → v3/EmptyStateIcon.vue.js} +8 -8
- package/components/emptyState/v3/index.d.ts +288 -0
- 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.d.ts +2 -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/filterDropdown/FilterDropdown.vue.d.ts +1 -1
- package/components/filterDropdown/FilterDropdown.vue.js +2 -2
- package/components/filterDropdown/FilterDropdown.vue2.js +4 -4
- package/components/filterDropdown/index.d.ts +2 -2
- package/components/filtersPanel/v3/FilterSearchInput.vue.d.ts +2 -0
- package/components/filtersPanel/v3/FilterSearchInput.vue.js +7 -0
- package/components/filtersPanel/{FilterSearchInput.vue2.js → v3/FilterSearchInput.vue2.js} +6 -6
- package/components/filtersPanel/v3/FiltersPanel.vue.js +7 -0
- package/components/filtersPanel/{FiltersPanel.vue2.js → v3/FiltersPanel.vue2.js} +1 -1
- package/components/filtersPanel/v4/FiltersPanelV4.vue.d.ts +44 -0
- package/components/filtersPanel/v4/FiltersPanelV4.vue.js +7 -0
- package/components/filtersPanel/v4/FiltersPanelV4.vue2.js +23 -0
- package/components/filtersPanel/v4/index.d.ts +101 -0
- package/components/filtersPanel/v4/index.js +6 -0
- package/components/filtersPanel/v4/storyConsts.d.ts +20 -0
- package/components/icon/icons/FiltersSearch.vue.d.ts +2 -0
- package/components/icon/v3/icons/index.d.ts +3 -0
- package/components/icon/v3/icons/index.js +3 -0
- package/components/icon/v3/index.d.ts +3 -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 +3 -3
- package/components/includeExclude/IncludeExclude.vue2.js +3 -3
- 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 +4 -4
- package/components/includeExclude/IncludeExcludeDragDrop.vue2.js +3 -3
- package/components/includeExclude/IncludeExcludeOption.vue.js +2 -2
- package/components/includeExclude/IncludeExcludeOption.vue2.js +4 -4
- 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/radioButton/common/radioGroup.common.d.ts +3 -0
- package/components/radioButton/common/radioGroup.common.js +26 -0
- package/components/radioButton/v3/RadioButton.vue.js +7 -0
- package/components/radioButton/v3/RadioButton.vue2.js +79 -0
- package/components/radioButton/v3/RadioGroup.vue.js +7 -0
- package/components/radioButton/v3/RadioGroup.vue2.js +29 -0
- package/components/radioButton/v4/RadioButtonV4.vue.d.ts +59 -0
- package/components/radioButton/v4/RadioButtonV4.vue.js +7 -0
- package/components/radioButton/v4/RadioButtonV4.vue2.js +67 -0
- package/components/radioButton/v4/RadioGroupV4.vue.d.ts +61 -0
- package/components/radioButton/v4/RadioGroupV4.vue.js +7 -0
- package/components/radioButton/v4/RadioGroupV4.vue2.js +29 -0
- package/components/radioButton/v4/index.d.ts +334 -0
- package/components/radioButton/v4/index.js +8 -0
- 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/snackbar/common/notify.d.ts +3 -0
- package/components/snackbar/common/notify.js +82 -0
- package/components/snackbar/common/snackbar.common.d.ts +11 -0
- package/components/snackbar/common/snackbar.common.js +51 -0
- package/components/snackbar/v3/Snackbar.vue.js +7 -0
- package/components/snackbar/v3/Snackbar.vue2.js +129 -0
- package/components/snackbar/v3/index.d.ts +3 -0
- package/components/snackbar/v3/index.js +10 -0
- package/components/snackbar/v4/SnackbarV4.vue.d.ts +186 -0
- package/components/snackbar/v4/SnackbarV4.vue.js +7 -0
- package/components/snackbar/v4/SnackbarV4.vue2.js +137 -0
- package/components/snackbar/v4/index.d.ts +4 -0
- package/components/snackbar/v4/index.js +11 -0
- 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 +295 -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 +6197 -412
- package/index.js +155 -165
- package/package.json +94 -33
- package/testids/index.d.ts +19 -3
- package/testids/index.js +21 -20
- 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/ButtonV4.vue_vue_type_style_index_0_scoped_43578f8c_lang.css +0 -1
- package/Checkbox.vue_vue_type_style_index_0_scoped_518c02d0_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/Dropdown.vue_vue_type_style_index_0_scoped_0114904e_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/FilterDropdown.vue_vue_type_style_index_0_scoped_b25c5605_lang.css +0 -1
- package/FilterSearchInput.vue_vue_type_style_index_0_scoped_9198bf4e_lang.css +0 -1
- package/FiltersPanel.vue_vue_type_style_index_0_scoped_2996b384_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/Label.vue_vue_type_style_index_0_scoped_5faaafce_lang.css +0 -1
- package/Option.vue_vue_type_style_index_0_scoped_2432f13f_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_b879fe79_lang.css +0 -1
- package/RadioButton.vue_vue_type_style_index_0_scoped_f5d3359c_lang.css +0 -1
- package/RadioGroup.vue_vue_type_style_index_0_scoped_50bc6963_lang.css +0 -1
- package/ScrollButton.vue_vue_type_style_index_0_scoped_90bacbbc_lang.css +0 -1
- package/SearchInput.vue_vue_type_style_index_0_scoped_0b1ea2f6_lang.css +0 -1
- package/SearchV4.vue_vue_type_style_index_0_scoped_63f11472_lang.css +0 -1
- package/Snackbar.vue_vue_type_style_index_0_scoped_d14230ca_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/checkbox/Checkbox.vue.js +0 -7
- package/components/checkbox/Checkbox.vue2.js +0 -97
- package/components/dialog/Dialog.vue.js +0 -7
- package/components/dialog/Dialog.vue2.js +0 -178
- package/components/dropdown/common/Label.vue.js +0 -7
- package/components/dropdown/common/Option.vue.js +0 -7
- package/components/emptyState/EmptyState.vue.d.ts +0 -93
- package/components/emptyState/EmptyState.vue.js +0 -7
- package/components/emptyState/index.d.ts +0 -288
- package/components/filtersPanel/FilterSearchInput.vue.js +0 -7
- package/components/filtersPanel/FiltersPanel.vue.js +0 -7
- package/components/radioButton/RadioButton.vue.js +0 -7
- package/components/radioButton/RadioButton.vue2.js +0 -82
- package/components/radioButton/RadioGroup.vue.js +0 -7
- package/components/radioButton/RadioGroup.vue2.js +0 -44
- package/components/snackbar/Snackbar.vue.js +0 -7
- package/components/snackbar/Snackbar.vue2.js +0 -150
- package/components/snackbar/index.d.ts +0 -3
- package/components/snackbar/index.js +0 -6
- package/components/snackbar/notify.js +0 -84
- 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/checkbox/{Checkbox.vue.d.ts → v3/Checkbox.vue.d.ts} +0 -0
- /package/components/checkbox/{icons → v3/icons}/checked.vue.d.ts +0 -0
- /package/components/checkbox/{icons → v3/icons}/indeterminate.vue.d.ts +0 -0
- /package/components/checkbox/{icons → v3/icons}/unchecked.vue.d.ts +0 -0
- /package/components/checkbox/{index.d.ts → v3/index.d.ts} +0 -0
- /package/components/checkbox/{index.js → v3/index.js} +0 -0
- /package/components/{emptyState/EmptyStateIcon.vue.d.ts → checkbox/v4/icons/CheckedDisabledState.vue.d.ts} +0 -0
- /package/components/{filtersPanel/FilterSearchInput.vue.d.ts → checkbox/v4/icons/CheckedState.vue.d.ts} +0 -0
- /package/components/{table/SortOrderIcon.vue.d.ts → checkbox/v4/icons/IndeterminateDisabledState.vue.d.ts} +0 -0
- /package/components/dialog/{Reason.d.ts → common/Reason.d.ts} +0 -0
- /package/components/dialog/{Reason.js → common/Reason.js} +0 -0
- /package/components/dropdown/{common → v3}/Label.vue.d.ts +0 -0
- /package/components/dropdown/{common → v3}/Option.vue.d.ts +0 -0
- /package/components/dropdown/{common → v3}/SearchInput.vue.d.ts +0 -0
- /package/components/emptyState/{EmptyStateIcon.vue2.js → v3/EmptyStateIcon.vue2.js} +0 -0
- /package/components/emptyState/{index.js → v3/index.js} +0 -0
- /package/components/filtersPanel/{Filter.d.ts → v3/Filter.d.ts} +0 -0
- /package/components/filtersPanel/{index.d.ts → v3/index.d.ts} +0 -0
- /package/components/filtersPanel/{index.js → v3/index.js} +0 -0
- /package/components/filtersPanel/{useHiddenFilter.d.ts → v3/useHiddenFilter.d.ts} +0 -0
- /package/components/filtersPanel/{useHiddenFilter.js → v3/useHiddenFilter.js} +0 -0
- /package/components/radioButton/{useRadio.d.ts → common/useRadio.d.ts} +0 -0
- /package/components/radioButton/{useRadio.js → common/useRadio.js} +0 -0
- /package/components/radioButton/{RadioButton.vue.d.ts → v3/RadioButton.vue.d.ts} +0 -0
- /package/components/radioButton/{RadioGroup.vue.d.ts → v3/RadioGroup.vue.d.ts} +0 -0
- /package/components/radioButton/{index.d.ts → v3/index.d.ts} +0 -0
- /package/components/radioButton/{index.js → v3/index.js} +0 -0
- /package/components/snackbar/{notify.d.ts → common/notify_old.d.ts} +0 -0
- /package/components/snackbar/{snackbar.types.d.ts → common/snackbar.types.d.ts} +0 -0
- /package/components/snackbar/{snackbar.types.js → common/snackbar.types.js} +0 -0
- /package/components/snackbar/{Snackbar.vue.d.ts → v3/Snackbar.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,82 @@
|
|
|
1
|
+
import { isVNode as x, createVNode as N, render as v } from "vue";
|
|
2
|
+
import { snackbarTypes as C } from "./snackbar.types.js";
|
|
3
|
+
const p = {
|
|
4
|
+
"top-left": [],
|
|
5
|
+
"top-right": [],
|
|
6
|
+
"bottom-left": [],
|
|
7
|
+
"bottom-right": []
|
|
8
|
+
}, g = 16;
|
|
9
|
+
let A = 1;
|
|
10
|
+
const E = 2e3, H = (h) => {
|
|
11
|
+
const i = function(e = {}, t = null) {
|
|
12
|
+
(typeof e == "string" || x(e)) && (e = { message: e });
|
|
13
|
+
const o = e.position || "top-right";
|
|
14
|
+
let n = e.zIndex || E, s = p[o].reduce(
|
|
15
|
+
(m, { vm: b }) => m + (b.el?.offsetHeight || 0) + g,
|
|
16
|
+
e.offset || 0
|
|
17
|
+
);
|
|
18
|
+
s += g;
|
|
19
|
+
const l = () => n++, d = `notification_${A++}`, u = e.onClose, f = {
|
|
20
|
+
...e,
|
|
21
|
+
zIndex: l(),
|
|
22
|
+
offset: s,
|
|
23
|
+
id: d,
|
|
24
|
+
onClose: () => {
|
|
25
|
+
y(d, o, u);
|
|
26
|
+
}
|
|
27
|
+
}, c = document.body, a = document.createElement("div"), r = N(
|
|
28
|
+
h,
|
|
29
|
+
f,
|
|
30
|
+
x(f.message) ? {
|
|
31
|
+
default: () => f.message
|
|
32
|
+
} : null
|
|
33
|
+
);
|
|
34
|
+
return r.appContext = t ?? i._context, r.props.onDestroy = () => {
|
|
35
|
+
v(null, a);
|
|
36
|
+
}, v(r, a), p[o].push({ vm: r }), c.appendChild(a?.firstElementChild), {
|
|
37
|
+
// instead of calling the onClose function directly, setting this value so that we can have the full lifecycle
|
|
38
|
+
// for out component, so that all closing steps will not be skipped.
|
|
39
|
+
close: () => {
|
|
40
|
+
const m = r.component?.proxy;
|
|
41
|
+
m && (m.visible = !1);
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
function y(e, t, o) {
|
|
46
|
+
const n = p[t], s = n.findIndex(
|
|
47
|
+
({ vm: c }) => c.component?.props.id === e
|
|
48
|
+
);
|
|
49
|
+
if (s === -1)
|
|
50
|
+
return;
|
|
51
|
+
const { vm: l } = n[s];
|
|
52
|
+
if (!l)
|
|
53
|
+
return;
|
|
54
|
+
o?.(l);
|
|
55
|
+
const d = l.el?.offsetHeight, u = t.split("-")[0];
|
|
56
|
+
n.splice(s, 1);
|
|
57
|
+
const f = n.length;
|
|
58
|
+
for (let c = s; c < f; c++) {
|
|
59
|
+
const { el: a, component: r } = n[c].vm;
|
|
60
|
+
r.props.offset = Number.parseInt(a.style[u], 10) - d - g;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
C.forEach((e) => {
|
|
64
|
+
i[e] = (t = {}) => ((typeof t == "string" || x(t)) && (t = {
|
|
65
|
+
message: t
|
|
66
|
+
}), i({
|
|
67
|
+
...t,
|
|
68
|
+
type: e
|
|
69
|
+
}));
|
|
70
|
+
});
|
|
71
|
+
function I() {
|
|
72
|
+
for (const e of Object.values(p))
|
|
73
|
+
e.forEach(({ vm: t }) => {
|
|
74
|
+
const o = t.component?.proxy;
|
|
75
|
+
o && (o.visible = !1);
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
return i.closeAll = I, i._context = null, i;
|
|
79
|
+
};
|
|
80
|
+
export {
|
|
81
|
+
H as default
|
|
82
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { CSSProperties } from 'vue';
|
|
2
|
+
export declare const snackbarCommon: (props: any) => {
|
|
3
|
+
visible: import("vue").Ref<boolean>;
|
|
4
|
+
horizontalClass: import("vue").ComputedRef<"right" | "left">;
|
|
5
|
+
positionStyle: import("vue").ComputedRef<CSSProperties>;
|
|
6
|
+
clearTimer: () => void;
|
|
7
|
+
startTimer: () => void;
|
|
8
|
+
iconComponent: import("vue").ComputedRef<any>;
|
|
9
|
+
typeClass: import("vue").ComputedRef<any>;
|
|
10
|
+
close: () => void;
|
|
11
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { ref as v, computed as n, onMounted as p } from "vue";
|
|
2
|
+
import { useEventListener as C, useTimeoutFn as h } from "@vueuse/core";
|
|
3
|
+
import k from "../../icon/v3/icons/Close.vue.js";
|
|
4
|
+
import x from "../../icon/v3/icons/Check.vue.js";
|
|
5
|
+
const w = (t) => {
|
|
6
|
+
const r = {
|
|
7
|
+
success: x,
|
|
8
|
+
error: k
|
|
9
|
+
}, o = v(!1);
|
|
10
|
+
let c;
|
|
11
|
+
const a = n(() => {
|
|
12
|
+
const e = t.type;
|
|
13
|
+
return e && r[t.type] ? e : "";
|
|
14
|
+
}), l = n(() => r[t.type] || t.icon || ""), f = n(
|
|
15
|
+
() => t.position.endsWith("right") ? "right" : "left"
|
|
16
|
+
), m = n(
|
|
17
|
+
() => t.position.startsWith("top") ? "top" : "bottom"
|
|
18
|
+
), y = n(() => ({
|
|
19
|
+
[m.value]: `${t.offset}px`,
|
|
20
|
+
zIndex: t.zIndex
|
|
21
|
+
}));
|
|
22
|
+
function i() {
|
|
23
|
+
t.duration > 0 && ({ stop: c } = h(() => {
|
|
24
|
+
o.value && s();
|
|
25
|
+
}, t.duration));
|
|
26
|
+
}
|
|
27
|
+
function u() {
|
|
28
|
+
c?.();
|
|
29
|
+
}
|
|
30
|
+
function s() {
|
|
31
|
+
o.value = !1;
|
|
32
|
+
}
|
|
33
|
+
function d({ code: e }) {
|
|
34
|
+
e === "Delete" || e === "Backspace" ? u() : e === "Escape" ? o.value && s() : i();
|
|
35
|
+
}
|
|
36
|
+
return p(() => {
|
|
37
|
+
i(), o.value = !0;
|
|
38
|
+
}), C(document, "keydown", d), {
|
|
39
|
+
visible: o,
|
|
40
|
+
horizontalClass: f,
|
|
41
|
+
positionStyle: y,
|
|
42
|
+
clearTimer: u,
|
|
43
|
+
startTimer: i,
|
|
44
|
+
iconComponent: l,
|
|
45
|
+
typeClass: a,
|
|
46
|
+
close: s
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
export {
|
|
50
|
+
w as snackbarCommon
|
|
51
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import o from "./Snackbar.vue2.js";
|
|
2
|
+
/* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../Snackbar.vue_vue_type_style_index_0_scoped_cec4f8e5_lang.css"; //*');
|
|
4
|
+
const r = /* @__PURE__ */ e(o, [["__scopeId", "data-v-cec4f8e5"]]);
|
|
5
|
+
export {
|
|
6
|
+
r as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import "../../../Snackbar.vue_vue_type_style_index_0_scoped_cec4f8e5_lang.css"; import { defineComponent as w, openBlock as n, createBlock as s, Transition as x, withCtx as i, withDirectives as k, createElementVNode as a, normalizeClass as y, unref as e, normalizeStyle as v, createElementBlock as g, createVNode as r, resolveDynamicComponent as H, createCommentVNode as m, renderSlot as N, createTextVNode as V, toDisplayString as p, vShow as z, withModifiers as D } from "vue";
|
|
2
|
+
import T from "../../icon/v3/Icon.vue.js";
|
|
3
|
+
import I from "../../icon/v3/icons/Close.vue.js";
|
|
4
|
+
import "../../button/v3/Button.vue.js";
|
|
5
|
+
import $ from "../../button/v3/IconButton.vue.js";
|
|
6
|
+
import "../../button/v3/ScrollButton.vue.js";
|
|
7
|
+
import B from "../../typography/Text.vue.js";
|
|
8
|
+
import { snackbarCommon as E } from "../common/snackbar.common.js";
|
|
9
|
+
const U = ["id"], A = { class: "container" }, j = { class: "texts" }, q = ["innerHTML"], W = /* @__PURE__ */ w({
|
|
10
|
+
__name: "Snackbar",
|
|
11
|
+
props: {
|
|
12
|
+
customClass: null,
|
|
13
|
+
dangerouslyUseHTMLString: { type: Boolean },
|
|
14
|
+
duration: { default: 3e3 },
|
|
15
|
+
icon: null,
|
|
16
|
+
id: null,
|
|
17
|
+
message: null,
|
|
18
|
+
offset: null,
|
|
19
|
+
onClick: null,
|
|
20
|
+
onClose: null,
|
|
21
|
+
type: { default: null },
|
|
22
|
+
position: { default: "top-right" },
|
|
23
|
+
showClose: { type: Boolean, default: !0 },
|
|
24
|
+
title: { default: "" },
|
|
25
|
+
zIndex: { default: 0 }
|
|
26
|
+
},
|
|
27
|
+
emits: ["destroy"],
|
|
28
|
+
setup(t) {
|
|
29
|
+
const S = t, {
|
|
30
|
+
visible: b,
|
|
31
|
+
horizontalClass: h,
|
|
32
|
+
positionStyle: L,
|
|
33
|
+
clearTimer: d,
|
|
34
|
+
startTimer: u,
|
|
35
|
+
iconComponent: c,
|
|
36
|
+
typeClass: f,
|
|
37
|
+
close: M
|
|
38
|
+
} = E(S);
|
|
39
|
+
return (C, o) => (n(), s(x, {
|
|
40
|
+
name: "snackbar",
|
|
41
|
+
onBeforeLeave: t.onClose,
|
|
42
|
+
onAfterLeave: o[3] || (o[3] = (l) => C.$emit("destroy"))
|
|
43
|
+
}, {
|
|
44
|
+
default: i(() => [
|
|
45
|
+
k(a("div", {
|
|
46
|
+
id: t.id,
|
|
47
|
+
class: y(["snackbar", [t.customClass, e(h)]]),
|
|
48
|
+
style: v(e(L)),
|
|
49
|
+
role: "alert",
|
|
50
|
+
onMouseenter: o[0] || (o[0] = //@ts-ignore
|
|
51
|
+
(...l) => e(d) && e(d)(...l)),
|
|
52
|
+
onMouseleave: o[1] || (o[1] = //@ts-ignore
|
|
53
|
+
(...l) => e(u) && e(u)(...l)),
|
|
54
|
+
onClick: o[2] || (o[2] = //@ts-ignore
|
|
55
|
+
(...l) => t.onClick && t.onClick(...l))
|
|
56
|
+
}, [
|
|
57
|
+
e(c) ? (n(), g("div", {
|
|
58
|
+
key: 0,
|
|
59
|
+
class: y(["start-icon-container", [e(f)]])
|
|
60
|
+
}, [
|
|
61
|
+
r(e(T), {
|
|
62
|
+
"font-size": e(f) ? "sm" : "lg"
|
|
63
|
+
}, {
|
|
64
|
+
default: i(() => [
|
|
65
|
+
(n(), s(H(e(c))))
|
|
66
|
+
]),
|
|
67
|
+
_: 1
|
|
68
|
+
}, 8, ["font-size"])
|
|
69
|
+
], 2)) : m("", !0),
|
|
70
|
+
a("div", A, [
|
|
71
|
+
a("div", j, [
|
|
72
|
+
t.title ? (n(), s(B, {
|
|
73
|
+
key: 0,
|
|
74
|
+
size: "md",
|
|
75
|
+
strong: "",
|
|
76
|
+
class: "title"
|
|
77
|
+
})) : m("", !0),
|
|
78
|
+
k(a("div", {
|
|
79
|
+
class: "message",
|
|
80
|
+
style: v(t.title ? void 0 : { margin: 0 })
|
|
81
|
+
}, [
|
|
82
|
+
N(C.$slots, "default", {}, () => [
|
|
83
|
+
t.dangerouslyUseHTMLString ? (n(), g("div", {
|
|
84
|
+
key: 1,
|
|
85
|
+
innerHTML: t.message
|
|
86
|
+
}, null, 8, q)) : (n(), s(B, {
|
|
87
|
+
key: 0,
|
|
88
|
+
size: "sm"
|
|
89
|
+
}, {
|
|
90
|
+
default: i(() => [
|
|
91
|
+
V(p(t.message), 1)
|
|
92
|
+
]),
|
|
93
|
+
_: 1
|
|
94
|
+
}))
|
|
95
|
+
], !0)
|
|
96
|
+
], 4), [
|
|
97
|
+
[z, t.message]
|
|
98
|
+
])
|
|
99
|
+
]),
|
|
100
|
+
t.showClose ? (n(), s(e($), {
|
|
101
|
+
key: 0,
|
|
102
|
+
theme: "third",
|
|
103
|
+
size: "sm",
|
|
104
|
+
class: "snackbar-close-button",
|
|
105
|
+
variant: "colorized",
|
|
106
|
+
onClick: D(e(M), ["stop"])
|
|
107
|
+
}, {
|
|
108
|
+
default: i(() => [
|
|
109
|
+
r(e(T), null, {
|
|
110
|
+
default: i(() => [
|
|
111
|
+
r(I)
|
|
112
|
+
]),
|
|
113
|
+
_: 1
|
|
114
|
+
})
|
|
115
|
+
]),
|
|
116
|
+
_: 1
|
|
117
|
+
}, 8, ["onClick"])) : m("", !0)
|
|
118
|
+
])
|
|
119
|
+
], 46, U), [
|
|
120
|
+
[z, e(b)]
|
|
121
|
+
])
|
|
122
|
+
]),
|
|
123
|
+
_: 3
|
|
124
|
+
}, 8, ["onBeforeLeave"]));
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
export {
|
|
128
|
+
W as default
|
|
129
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import r from "./Snackbar.vue.js";
|
|
2
|
+
import a from "../common/notify.js";
|
|
3
|
+
import { snackbarEmits as m, snackbarTypes as n } from "../common/snackbar.types.js";
|
|
4
|
+
const c = a(r);
|
|
5
|
+
export {
|
|
6
|
+
c as Snackbar,
|
|
7
|
+
c as default,
|
|
8
|
+
m as snackbarEmits,
|
|
9
|
+
n as snackbarTypes
|
|
10
|
+
};
|