@ironsource/shared-ui 1.4.2-test.14 → 1.4.2-test.15
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/DollarInput.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/FloatingToolbar.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/PasswordInput.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/PercentageInput.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Table.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/components/appIcon/AppIcon.vue.d.ts +1 -1
- package/components/appIcon/AppIcon.vue.js +3 -3
- package/components/appIcon/index.d.ts +1 -1
- package/components/appTrigger/AppTrigger.vue.d.ts +1 -1
- package/components/appTrigger/AppTrigger.vue.js +22 -25
- package/components/appTrigger/index.d.ts +1 -1
- package/components/autocompleteDropdown/AutocompleteDropdown.vue.d.ts +1 -1
- package/components/autocompleteDropdown/AutocompleteDropdown.vue.js +14 -16
- package/components/autocompleteDropdown/AutocompleteInput.vue.d.ts +1 -1
- package/components/autocompleteDropdown/AutocompleteInput.vue.js +7 -7
- package/components/autocompleteDropdown/GroupOption.vue.d.ts +1 -1
- package/components/autocompleteDropdown/GroupOption.vue.js +3 -4
- package/components/autocompleteDropdown/index.d.ts +1 -1
- package/components/banner/Banner.vue.d.ts +1 -1
- package/components/banner/Banner.vue.js +4 -4
- package/components/banner/index.d.ts +1 -1
- package/components/button/Button.vue.d.ts +1 -1
- package/components/button/Button.vue.js +12 -12
- package/components/button/ButtonBase.vue.d.ts +1 -1
- package/components/button/ButtonBase.vue.js +11 -12
- package/components/button/IconButton.vue.d.ts +1 -1
- package/components/button/IconButton.vue.js +5 -5
- package/components/button/ScrollButton.vue.d.ts +1 -1
- package/components/button/ScrollButton.vue.js +8 -9
- package/components/button/index.d.ts +3 -3
- package/components/checkbox/Checkbox.vue.d.ts +1 -1
- package/components/checkbox/Checkbox.vue.js +15 -16
- package/components/checkbox/index.d.ts +1 -1
- package/components/chip/Chip.vue.d.ts +1 -1
- package/components/chip/Chip.vue.js +5 -5
- package/components/chip/index.d.ts +1 -1
- package/components/datePicker/DatePicker.vue.d.ts +1 -1
- package/components/datePicker/DatePicker.vue.js +11 -11
- package/components/datePicker/DatePickerMonth.vue.d.ts +1 -1
- package/components/datePicker/DatePickerMonth.vue.js +4 -4
- package/components/datePicker/index.d.ts +1 -1
- package/components/dateRange/CalendarMonth.vue.d.ts +1 -1
- package/components/dateRange/CalendarMonth.vue.js +19 -20
- package/components/dateRange/DateRange.vue.d.ts +1 -1
- package/components/dateRange/DateRange.vue.js +26 -28
- package/components/dateRange/DateRangePicker.vue.d.ts +1 -1
- package/components/dateRange/index.d.ts +1 -1
- package/components/dialog/Dialog.vue.d.ts +1 -1
- package/components/dialog/Dialog.vue.js +16 -16
- package/components/dialog/index.d.ts +1 -1
- package/components/dropdown/Dropdown.vue.d.ts +1 -1
- package/components/dropdown/Dropdown.vue.js +57 -60
- package/components/dropdown/Label.vue.d.ts +1 -1
- package/components/dropdown/Label.vue.js +3 -4
- package/components/dropdown/Option.vue.d.ts +1 -1
- package/components/dropdown/Option.vue.js +16 -17
- package/components/dropdown/SearchInput.vue.d.ts +1 -1
- package/components/dropdown/SearchInput.vue.js +6 -6
- package/components/dropdown/index.d.ts +398 -1
- package/components/emptyState/EmptyState.vue.d.ts +1 -1
- package/components/emptyState/EmptyState.vue.js +19 -21
- package/components/emptyState/index.d.ts +1 -1
- package/components/filterDropdown/AddFilterButton.vue.d.ts +1 -1
- package/components/filterDropdown/AddFilterButton.vue.js +7 -7
- package/components/filterDropdown/FilterDropdown.vue.d.ts +1 -1
- package/components/filterDropdown/FilterDropdown.vue.js +15 -17
- package/components/filterDropdown/index.d.ts +2 -2
- package/components/filtersPanel/FilterSearchInput.vue.d.ts +1 -1
- package/components/filtersPanel/FilterSearchInput.vue.js +7 -7
- package/components/filtersPanel/FiltersPanel.vue.d.ts +1 -1
- package/components/filtersPanel/FiltersPanel.vue.js +8 -8
- package/components/filtersPanel/index.d.ts +1 -1
- package/components/floatingToolbar/FloatingToolbar.vue.d.ts +1 -1
- package/components/floatingToolbar/FloatingToolbar.vue.js +3 -3
- package/components/floatingToolbar/index.d.ts +1 -1
- package/components/icon/Icon.vue.d.ts +1 -1
- package/components/icon/Icon.vue.js +4 -4
- package/components/icon/index.d.ts +1 -1
- package/components/icon/storyComponents/Code.vue.d.ts +1 -1
- package/components/icon/storyComponents/IconWrapper.vue.d.ts +1 -1
- package/components/icon/storyComponents/Page.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExclude.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExclude.vue.js +50 -52
- package/components/includeExclude/IncludeExcludeAppHeader.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExcludeAppHeader.vue.js +25 -26
- package/components/includeExclude/IncludeExcludeAppTrigger.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExcludeAppTrigger.vue.js +19 -22
- package/components/includeExclude/IncludeExcludeChipFilter.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExcludeChipFilter.vue.js +40 -42
- package/components/includeExclude/IncludeExcludeOption.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExcludeOption.vue.js +21 -22
- package/components/includeExclude/IncludeExcludeOptionDraggable.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExcludeOptionDraggable.vue.js +17 -18
- package/components/includeExclude/index.d.ts +5 -5
- package/components/input/DollarInput.vue.d.ts +2 -2
- package/components/input/DollarInput.vue.js +3 -4
- package/components/input/Input.vue.d.ts +1 -1
- package/components/input/Input.vue.js +30 -33
- package/components/input/PasswordInput.vue.d.ts +2 -2
- package/components/input/PasswordInput.vue.js +3 -4
- package/components/input/PercentageInput.vue.d.ts +2 -2
- package/components/input/PercentageInput.vue.js +3 -4
- package/components/input/index.d.ts +2 -2
- package/components/menu/Menu.vue.d.ts +1 -1
- package/components/menu/Menu.vue.js +4 -4
- package/components/menu/index.d.ts +1 -1
- package/components/menuItem/MenuItem.vue.d.ts +1 -1
- package/components/menuItem/MenuItem.vue.js +3 -4
- package/components/menuItem/index.d.ts +1 -1
- package/components/popover/Popover.vue.d.ts +1 -1
- package/components/popover/Popover.vue.js +7 -7
- package/components/popover/index.d.ts +1 -1
- package/components/radioButton/RadioButton.vue.d.ts +1 -1
- package/components/radioButton/RadioButton.vue.js +9 -9
- package/components/radioButton/RadioGroup.vue.d.ts +1 -1
- package/components/radioButton/RadioGroup.vue.js +3 -3
- package/components/radioButton/index.d.ts +2 -2
- package/components/radioButton/useRadio.d.ts +1 -1
- package/components/search/Search.vue.d.ts +1 -1
- package/components/search/Search.vue.js +15 -15
- package/components/search/index.d.ts +1 -1
- package/components/skeleton/Skeleton.vue.d.ts +1 -1
- package/components/skeleton/Skeleton.vue.js +2 -2
- package/components/skeleton/index.d.ts +1 -1
- package/components/snackbar/Snackbar.vue.d.ts +1 -1
- package/components/snackbar/Snackbar.vue.js +26 -26
- package/components/switch/Switch.vue.d.ts +1 -1
- package/components/switch/Switch.vue.js +9 -9
- package/components/switch/index.d.ts +1 -1
- package/components/table/Pagination.vue.d.ts +1 -1
- package/components/table/Table.vue.d.ts +1 -1
- package/components/table/Table.vue.js +37 -42
- package/components/table/TableHeaderSorter.vue.d.ts +1 -1
- package/components/table/TableHeaderSorter.vue.js +4 -4
- package/components/table/index.d.ts +1 -1
- package/components/table-cells/Editable.vue.d.ts +1 -1
- package/components/table-cells/Editable.vue.js +4 -4
- package/components/table-cells/index.d.ts +1 -1
- package/components/tabs/Tabs.vue.d.ts +1 -1
- package/components/tabs/Tabs.vue.js +15 -16
- package/components/tabs/index.d.ts +1 -1
- package/components/textArea/TextArea.vue.d.ts +1 -1
- package/components/textArea/TextArea.vue.js +12 -13
- package/components/textArea/index.d.ts +1 -1
- package/components/toggle/Toggle.vue.d.ts +1 -1
- package/components/toggle/Toggle.vue.js +16 -17
- package/components/toggle/index.d.ts +1 -1
- package/components/tooltip/TextWithTitleContent.vue.d.ts +1 -1
- package/components/tooltip/TextWithTitleContent.vue.js +7 -8
- package/components/tooltip/Tooltip.vue.d.ts +1 -1
- package/components/tooltip/Tooltip.vue.js +10 -11
- package/components/tooltip/index.d.ts +1 -1
- package/components/tooltip/storybookComponents/CustomTooltip.vue.d.ts +1 -1
- package/components/typography/Heading.vue.d.ts +1 -1
- package/components/typography/Heading.vue.js +4 -4
- package/components/typography/Text.vue.d.ts +1 -1
- package/components/typography/Text.vue.js +3 -3
- package/components/typography/index.d.ts +2 -2
- package/index.vue.js +3 -3
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
.label[data-v-
|
|
1
|
+
.label[data-v-b96666f4]{color:#41454d}.dollar-sign[data-v-b96666f4]{color:#53575b;margin-right:-4px}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.label[data-v-bffb04ba]{color:#41454d}.floating-toolbar[data-v-bffb04ba]{position:fixed;display:flex;align-items:center;transform:translate(-50%);min-width:17.25rem;height:3.5rem;border-radius:12px;bottom:2.5rem;left:50%;background:#41454d;box-shadow:0 8px 24px -6px #00000029,0 0 1px #0006;transition:opacity .25s,transform .25s;overflow:hidden;z-index:9999}.floating-toolbar-enter-from[data-v-bffb04ba],.floating-toolbar-leave-to[data-v-bffb04ba]{transform:translate(-50%,200%)}.labels[data-v-bffb04ba],.actions[data-v-bffb04ba]{width:100%}.labels[data-v-bffb04ba]{color:#fff;white-space:nowrap}.actions[data-v-bffb04ba]{border-right:1px solid hsla(
|
|
1
|
+
.label[data-v-bffb04ba]{color:#41454d}.floating-toolbar[data-v-bffb04ba]{position:fixed;display:flex;align-items:center;transform:translate(-50%);min-width:17.25rem;height:3.5rem;border-radius:12px;bottom:2.5rem;left:50%;background:#41454d;box-shadow:0 8px 24px -6px #00000029,0 0 1px #0006;transition:opacity .25s,transform .25s;overflow:hidden;z-index:9999}.floating-toolbar-enter-from[data-v-bffb04ba],.floating-toolbar-leave-to[data-v-bffb04ba]{transform:translate(-50%,200%)}.labels[data-v-bffb04ba],.actions[data-v-bffb04ba]{width:100%}.labels[data-v-bffb04ba]{color:#fff;white-space:nowrap}.actions[data-v-bffb04ba]{border-right:1px solid hsla(0deg,0%,100%,.2);width:100%;height:100%;display:flex;gap:.5rem;padding-right:1.5rem;padding-left:1rem;align-items:center}.close-icon[data-v-bffb04ba]{border-left:1px solid hsla(0deg,0%,0%,.2);padding:0 1.25rem;display:flex;align-items:center}.close-icon[data-v-bffb04ba]:hover{color:#f1f3f4}.counter[data-v-bffb04ba]{background:#53575b;justify-content:center;margin-right:.5rem;margin-left:.75rem;color:#fff;align-items:center;min-height:2rem;min-width:2rem;border-radius:50%;display:flex}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.label[data-v-
|
|
1
|
+
.label[data-v-da9d5486]{color:#41454d}.password-visibility[data-v-da9d5486]{color:#53575b;text-decoration:underline;margin-left:-4px;cursor:pointer}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.label[data-v-
|
|
1
|
+
.label[data-v-7247a0d5]{color:#41454d}.percentage-sign[data-v-7247a0d5]{color:#53575b;margin-left:-4px}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.label[data-v-
|
|
1
|
+
.label[data-v-b2c67e5a]{color:#41454d}.sticky[data-v-b2c67e5a]{position:sticky}.table-container[data-v-b2c67e5a]{width:100%;position:relative}.last.floating[data-v-b2c67e5a]{max-width:100%}.table-header[data-v-b2c67e5a]{display:flex;align-items:center;height:55px;border-bottom:1px solid #DDDFE1;background-color:#fff;position:sticky;left:0}.table-header .table-title[data-v-b2c67e5a]{display:flex;align-items:center;justify-content:center;height:100%;padding:1.25rem 1.5rem}.table-header .table-header-right[data-v-b2c67e5a]{display:flex;align-items:center;height:100%}.table-header .table-header-right.border-search[data-v-b2c67e5a]{border-left:1px solid #DDDFE1}.table-header.isStickyHeader[data-v-b2c67e5a]{z-index:199;top:0}.table-head-container[data-v-b2c67e5a]{display:flex;align-items:center;white-space:nowrap}.table-body-wrapper[data-v-b2c67e5a]{display:inline-table}.table-header-actions[data-v-b2c67e5a]{margin-left:auto;margin-right:1rem;display:flex;align-items:center}.table-row[data-v-b2c67e5a]{position:relative}.table-row.loading[data-v-b2c67e5a]{opacity:.7}.floating-actions[data-v-b2c67e5a]{position:absolute;z-index:10;max-width:max-content;transform:translateY(-50%) translate(calc(-100% - 12px));top:50%;left:0}table[data-v-b2c67e5a]{position:relative;display:block;overflow:auto;background:#FFFFFF;border:1px solid #DDDFE1;color:#53575b;text-align:left;table-layout:fixed;width:100%;max-height:100%;border-radius:1rem}table td[data-v-b2c67e5a],table th[data-v-b2c67e5a]{padding:0 1.5rem;line-height:normal}table thead[data-v-b2c67e5a]{border-bottom:none;z-index:101;display:inline-table;min-width:100%}table thead tr[data-v-b2c67e5a]{color:#626970;border-bottom:2px solid #DDDFE1;height:2.5rem;display:grid;grid-template-columns:var(--34f02729)}table thead tr th[data-v-b2c67e5a]{background:#FFFFFF;width:100%;display:flex;align-items:center;cursor:default}table thead tr th.bordered[data-v-b2c67e5a]{border-right:1px solid #DDDFE1}table thead tr th.isTextRight[data-v-b2c67e5a]{justify-content:flex-end}table thead tr th.isSortable[data-v-b2c67e5a]{cursor:pointer}table thead.sticky[data-v-b2c67e5a]{position:sticky;top:0;background:white}table thead.isStickyHeader[data-v-b2c67e5a]{z-index:198px;top:55px}table tbody[data-v-b2c67e5a]{height:100%;display:block}table tbody tr[data-v-b2c67e5a]{background-color:#fff;min-height:3rem;height:auto;display:grid;align-items:center;grid-template-columns:var(--34f02729)}table tbody tr:nth-of-type(even) td[data-v-b2c67e5a]{background-color:#fff}table tbody tr:hover:not(.loading) td[data-v-b2c67e5a]{background-color:#f7f8f9}table tbody td[data-v-b2c67e5a]{background-color:#fff;border:none;min-width:0;display:flex;height:100%;width:100%;place-items:center;border-bottom:1px solid #DDDFE1;justify-content:start}table tbody td.bordered[data-v-b2c67e5a]{border-right:1px solid #DDDFE1}table tbody td.isTextRight[data-v-b2c67e5a]{justify-content:flex-end}table tfoot[data-v-b2c67e5a]{display:block;height:4.5rem;background-color:#fff;border:none}.section-container[data-v-b2c67e5a]{left:0}.sections[data-v-b2c67e5a]{display:flex}.section[data-v-b2c67e5a]{padding:0 1.5rem;background:#FFFFFF;left:0;height:32px;display:flex;align-items:flex-end;border-right:1px solid #DDDFE1}
|
|
@@ -13,7 +13,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
13
13
|
}>>>, {
|
|
14
14
|
size: 'sm' | 'md' | 'lg' | 'xl';
|
|
15
15
|
src: string;
|
|
16
|
-
}
|
|
16
|
+
}>;
|
|
17
17
|
export default _default;
|
|
18
18
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
19
19
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -18,7 +18,7 @@ const _hoisted_2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElem
|
|
|
18
18
|
fillRule: "evenodd"
|
|
19
19
|
})
|
|
20
20
|
], -1));
|
|
21
|
-
const _sfc_main = defineComponent({
|
|
21
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
22
22
|
__name: "AppIcon",
|
|
23
23
|
props: {
|
|
24
24
|
size: { default: "md" },
|
|
@@ -27,10 +27,10 @@ const _sfc_main = defineComponent({
|
|
|
27
27
|
setup(__props) {
|
|
28
28
|
return (_ctx, _cache) => {
|
|
29
29
|
return openBlock(), createElementBlock("span", {
|
|
30
|
-
class: normalizeClass(["application-icon", `icon-${
|
|
30
|
+
class: normalizeClass(["application-icon", `icon-${__props.size}`])
|
|
31
31
|
}, [
|
|
32
32
|
createElementVNode("img", {
|
|
33
|
-
src:
|
|
33
|
+
src: __props.src,
|
|
34
34
|
alt: ""
|
|
35
35
|
}, null, 8, _hoisted_1),
|
|
36
36
|
_hoisted_2
|
|
@@ -24,7 +24,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
24
24
|
selected: Application[];
|
|
25
25
|
options: Application[];
|
|
26
26
|
singleAppSelection: boolean;
|
|
27
|
-
}
|
|
27
|
+
}>;
|
|
28
28
|
export default _default;
|
|
29
29
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
30
30
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,21 +1,14 @@
|
|
|
1
|
-
import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, renderSlot, createElementVNode, createBlock,
|
|
1
|
+
import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, unref, renderSlot, createElementVNode, createBlock, createCommentVNode, createVNode, withCtx, createTextVNode, toDisplayString } from 'vue';
|
|
2
2
|
import AppIcon from '../appIcon/AppIcon.vue.js';
|
|
3
|
-
import '../button/Button.vue.js';
|
|
4
|
-
import IconButton from '../button/IconButton.vue.js';
|
|
5
|
-
import '../button/ScrollButton.vue.js';
|
|
6
3
|
import Icon from '../icon/Icon.vue.js';
|
|
7
|
-
import
|
|
8
|
-
import '../typography/Heading.vue.js';
|
|
4
|
+
/* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
|
|
9
5
|
import Text from '../typography/Text.vue.js';
|
|
10
|
-
/* empty css
|
|
11
|
-
|
|
6
|
+
/* empty css *//* empty css */import IconButton from '../button/IconButton.vue.js';
|
|
7
|
+
import _sfc_main$1 from '../tooltip/Tooltip.vue.js';
|
|
8
|
+
/* empty css *//* empty css */
|
|
12
9
|
import "../../AppTrigger.vue_vue_type_style_index_0_scoped_true_lang.css";
|
|
13
10
|
const _hoisted_1 = { class: "app-trigger__left-image" };
|
|
14
|
-
const
|
|
15
|
-
const NoAppsTitle = "No apps to select";
|
|
16
|
-
const allAppsIcon = "widgetsz";
|
|
17
|
-
const noAppsIcon = "cube-background";
|
|
18
|
-
const _sfc_main = defineComponent({
|
|
11
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
19
12
|
__name: "AppTrigger",
|
|
20
13
|
props: {
|
|
21
14
|
selected: { default: null },
|
|
@@ -25,6 +18,8 @@ const _sfc_main = defineComponent({
|
|
|
25
18
|
},
|
|
26
19
|
setup(__props) {
|
|
27
20
|
const props = __props;
|
|
21
|
+
const allTitle = "All apps selected";
|
|
22
|
+
const NoAppsTitle = "No apps to select";
|
|
28
23
|
const title = computed(() => {
|
|
29
24
|
if (props.singleAppSelection && noApp.value) {
|
|
30
25
|
return NoAppsTitle;
|
|
@@ -40,6 +35,8 @@ const _sfc_main = defineComponent({
|
|
|
40
35
|
}
|
|
41
36
|
return `${selectedSize.value} apps selected`;
|
|
42
37
|
});
|
|
38
|
+
const allAppsIcon = "widgetsz";
|
|
39
|
+
const noAppsIcon = "cube-background";
|
|
43
40
|
const appIcon = computed(
|
|
44
41
|
() => props.singleAppSelection && noApp.value ? noAppsIcon : allAppsIcon
|
|
45
42
|
);
|
|
@@ -96,39 +93,39 @@ const _sfc_main = defineComponent({
|
|
|
96
93
|
return (_ctx, _cache) => {
|
|
97
94
|
return openBlock(), createElementBlock("div", {
|
|
98
95
|
class: normalizeClass(["app-trigger", {
|
|
99
|
-
"app-trigger--with-icons": selectedSize
|
|
96
|
+
"app-trigger--with-icons": unref(selectedSize) > 0 || unref(allMode)
|
|
100
97
|
}])
|
|
101
98
|
}, [
|
|
102
99
|
renderSlot(_ctx.$slots, "left-image", {}, () => [
|
|
103
100
|
createElementVNode("div", _hoisted_1, [
|
|
104
|
-
appImage
|
|
101
|
+
unref(appImage) ? (openBlock(), createBlock(unref(AppIcon), {
|
|
105
102
|
key: 0,
|
|
106
103
|
size: "xl",
|
|
107
|
-
src: appImage
|
|
104
|
+
src: unref(appImage)
|
|
108
105
|
}, null, 8, ["src"])) : (openBlock(), createBlock(unref(Icon), {
|
|
109
106
|
key: 1,
|
|
110
107
|
class: "trigger-icon",
|
|
111
108
|
"font-size": "2rem",
|
|
112
|
-
name: appIcon
|
|
109
|
+
name: unref(appIcon)
|
|
113
110
|
}, null, 8, ["name"]))
|
|
114
111
|
])
|
|
115
112
|
], true),
|
|
116
113
|
renderSlot(_ctx.$slots, "left-icon", {}, () => [
|
|
117
|
-
osIcon
|
|
114
|
+
unref(osIcon) ? (openBlock(), createBlock(unref(Icon), {
|
|
118
115
|
key: 0,
|
|
119
116
|
class: "app-trigger__left-icon",
|
|
120
|
-
name: osIcon
|
|
117
|
+
name: unref(osIcon),
|
|
121
118
|
"font-size": "md"
|
|
122
119
|
}, null, 8, ["name"])) : createCommentVNode("", true)
|
|
123
120
|
], true),
|
|
124
121
|
createElementVNode("div", {
|
|
125
122
|
class: normalizeClass(["app-trigger__middle-section", {
|
|
126
|
-
"app-trigger__middle-section--single": singleApp
|
|
127
|
-
"app-trigger__middle-section--loading":
|
|
123
|
+
"app-trigger__middle-section--single": unref(singleApp),
|
|
124
|
+
"app-trigger__middle-section--loading": __props.loading || !__props.options?.length
|
|
128
125
|
}])
|
|
129
126
|
}, [
|
|
130
127
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
131
|
-
createVNode(unref(_sfc_main$1), { text: title
|
|
128
|
+
createVNode(unref(_sfc_main$1), { text: unref(title) }, {
|
|
132
129
|
default: withCtx(() => [
|
|
133
130
|
createVNode(unref(Text), {
|
|
134
131
|
strong: "",
|
|
@@ -137,7 +134,7 @@ const _sfc_main = defineComponent({
|
|
|
137
134
|
size: "sm"
|
|
138
135
|
}, {
|
|
139
136
|
default: withCtx(() => [
|
|
140
|
-
createTextVNode(toDisplayString(title
|
|
137
|
+
createTextVNode(toDisplayString(unref(title)), 1)
|
|
141
138
|
]),
|
|
142
139
|
_: 1
|
|
143
140
|
})
|
|
@@ -147,7 +144,7 @@ const _sfc_main = defineComponent({
|
|
|
147
144
|
], true),
|
|
148
145
|
renderSlot(_ctx.$slots, "description", {}, () => [
|
|
149
146
|
createElementVNode("div", null, [
|
|
150
|
-
createVNode(unref(_sfc_main$1), { text: description
|
|
147
|
+
createVNode(unref(_sfc_main$1), { text: unref(description) }, {
|
|
151
148
|
default: withCtx(() => [
|
|
152
149
|
createVNode(unref(Text), {
|
|
153
150
|
class: "app-trigger__description",
|
|
@@ -155,7 +152,7 @@ const _sfc_main = defineComponent({
|
|
|
155
152
|
"is-truncated": ""
|
|
156
153
|
}, {
|
|
157
154
|
default: withCtx(() => [
|
|
158
|
-
createTextVNode(toDisplayString(description
|
|
155
|
+
createTextVNode(toDisplayString(unref(description)), 1)
|
|
159
156
|
]),
|
|
160
157
|
_: 1
|
|
161
158
|
})
|
|
@@ -45,6 +45,6 @@ declare const AppTriggerTypes: () => import("vue").DefineComponent<{
|
|
|
45
45
|
selected: import("./AppTrigger.vue.__VLS_script").__VLS_types_Application[];
|
|
46
46
|
options: import("./AppTrigger.vue.__VLS_script").__VLS_types_Application[];
|
|
47
47
|
singleAppSelection: boolean;
|
|
48
|
-
}
|
|
48
|
+
}>[];
|
|
49
49
|
export { default as AppTrigger } from './AppTrigger.vue';
|
|
50
50
|
export { AppTriggerTypes };
|
|
@@ -37,7 +37,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
37
37
|
displayValue: (option: unknown) => string;
|
|
38
38
|
handleSearch: (option: any, term: string) => boolean;
|
|
39
39
|
grouped: boolean;
|
|
40
|
-
}
|
|
40
|
+
}>;
|
|
41
41
|
export default _default;
|
|
42
42
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
43
43
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, watch, nextTick, openBlock, createBlock, unref, mergeProps, withModifiers, withCtx, createVNode, renderSlot, createTextVNode, toDisplayString } from 'vue';
|
|
2
2
|
import Dropdown from '../dropdown/Dropdown.vue.js';
|
|
3
|
-
import '
|
|
4
|
-
import '
|
|
5
|
-
import '
|
|
6
|
-
import GroupOption from './GroupOption.vue.js';
|
|
3
|
+
/* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
|
|
4
|
+
/* empty css *//* empty css *//* empty css */import '@vue/shared';
|
|
5
|
+
/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import GroupOption from './GroupOption.vue.js';
|
|
7
6
|
import AutocompleteInput from './AutocompleteInput.vue.js';
|
|
8
7
|
import { DEFAULT_PLACEHOLDER, GROUP_OPTION_FLAG } from './consts.vue.js';
|
|
9
8
|
import { useKeyboardNavigation } from './useKeyboardNavigation.vue.js';
|
|
10
|
-
/* empty css */
|
|
11
|
-
|
|
9
|
+
/* empty css */
|
|
12
10
|
import "../../AutocompleteDropdown.vue_vue_type_style_index_0_scoped_true_lang.css";
|
|
13
|
-
const _sfc_main = defineComponent({
|
|
11
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
14
12
|
__name: "AutocompleteDropdown",
|
|
15
13
|
props: {
|
|
16
14
|
options: { default: () => [] },
|
|
@@ -95,10 +93,10 @@ const _sfc_main = defineComponent({
|
|
|
95
93
|
ref: dropdownRef,
|
|
96
94
|
class: "autocomplete-dropdown"
|
|
97
95
|
}, _ctx.$attrs, {
|
|
98
|
-
selected: selection
|
|
99
|
-
options: filteredOptions
|
|
96
|
+
selected: unref(selection),
|
|
97
|
+
options: unref(filteredOptions),
|
|
100
98
|
"on-search": () => true,
|
|
101
|
-
"display-value":
|
|
99
|
+
"display-value": __props.displayValue,
|
|
102
100
|
"keep-open": "",
|
|
103
101
|
"is-on-top": false,
|
|
104
102
|
multi: false,
|
|
@@ -114,9 +112,9 @@ const _sfc_main = defineComponent({
|
|
|
114
112
|
createVNode(AutocompleteInput, {
|
|
115
113
|
ref_key: "inputRef",
|
|
116
114
|
ref: inputRef,
|
|
117
|
-
value: selection
|
|
118
|
-
placeholder:
|
|
119
|
-
"display-value":
|
|
115
|
+
value: unref(selection),
|
|
116
|
+
placeholder: __props.placeholder,
|
|
117
|
+
"display-value": __props.displayValue,
|
|
120
118
|
onRemove: deselectOption,
|
|
121
119
|
onSearch: _cache[0] || (_cache[0] = ($event) => searchQuery.value = $event)
|
|
122
120
|
}, {
|
|
@@ -127,9 +125,9 @@ const _sfc_main = defineComponent({
|
|
|
127
125
|
}, 8, ["value", "placeholder", "display-value"])
|
|
128
126
|
]),
|
|
129
127
|
default: withCtx(({ option }) => [
|
|
130
|
-
|
|
128
|
+
__props.grouped && isGroup(option) ? (openBlock(), createBlock(GroupOption, { key: 0 }, {
|
|
131
129
|
default: withCtx(() => [
|
|
132
|
-
createTextVNode(toDisplayString(
|
|
130
|
+
createTextVNode(toDisplayString(__props.displayValue(option)), 1)
|
|
133
131
|
]),
|
|
134
132
|
_: 2
|
|
135
133
|
}, 1024)) : renderSlot(_ctx.$slots, "default", {
|
|
@@ -139,7 +137,7 @@ const _sfc_main = defineComponent({
|
|
|
139
137
|
}, void 0, true)
|
|
140
138
|
]),
|
|
141
139
|
_: 3
|
|
142
|
-
}, 16, ["selected", "options", "display-value", "distance", "onKeydown"]);
|
|
140
|
+
}, 16, ["selected", "options", "on-search", "display-value", "distance", "onKeydown"]);
|
|
143
141
|
};
|
|
144
142
|
}
|
|
145
143
|
});
|
|
@@ -27,7 +27,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
27
27
|
value: unknown[];
|
|
28
28
|
placeholder: string;
|
|
29
29
|
displayValue: (option: unknown) => string;
|
|
30
|
-
}
|
|
30
|
+
}>;
|
|
31
31
|
export default _default;
|
|
32
32
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
33
33
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, watch, openBlock, createElementBlock, normalizeClass, withModifiers, Fragment, renderList, renderSlot, createVNode, withCtx, createTextVNode, toDisplayString,
|
|
1
|
+
import { defineComponent, ref, computed, watch, openBlock, createElementBlock, normalizeClass, unref, withModifiers, Fragment, renderList, renderSlot, createVNode, withCtx, createTextVNode, toDisplayString, createElementVNode } from 'vue';
|
|
2
2
|
import Icon from '../icon/Icon.vue.js';
|
|
3
3
|
import Text from '../typography/Text.vue.js';
|
|
4
4
|
import { useDropdownContext } from '../dropdown/DropdownContext.vue.js';
|
|
@@ -8,7 +8,7 @@ import { DEFAULT_PLACEHOLDER } from './consts.vue.js';
|
|
|
8
8
|
import "../../AutocompleteInput.vue_vue_type_style_index_0_scoped_true_lang.css";
|
|
9
9
|
const _hoisted_1 = ["onClick"];
|
|
10
10
|
const _hoisted_2 = ["value", "placeholder"];
|
|
11
|
-
const _sfc_main = defineComponent({
|
|
11
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
12
|
__name: "AutocompleteInput",
|
|
13
13
|
props: {
|
|
14
14
|
value: { default: () => [] },
|
|
@@ -16,7 +16,7 @@ const _sfc_main = defineComponent({
|
|
|
16
16
|
placeholder: { default: DEFAULT_PLACEHOLDER }
|
|
17
17
|
},
|
|
18
18
|
emits: ["remove", "search"],
|
|
19
|
-
setup(__props, { expose
|
|
19
|
+
setup(__props, { expose, emit }) {
|
|
20
20
|
const props = __props;
|
|
21
21
|
const api = useDropdownContext("autocompleteInput");
|
|
22
22
|
const inputEl = ref(null);
|
|
@@ -43,15 +43,15 @@ const _sfc_main = defineComponent({
|
|
|
43
43
|
function focusInput() {
|
|
44
44
|
inputEl.value?.focus();
|
|
45
45
|
}
|
|
46
|
-
|
|
46
|
+
expose({
|
|
47
47
|
focusInput
|
|
48
48
|
});
|
|
49
49
|
return (_ctx, _cache) => {
|
|
50
50
|
return openBlock(), createElementBlock("div", {
|
|
51
|
-
class: normalizeClass(["autocomplete-input", { "autocomplete-input--focused": isOpen
|
|
51
|
+
class: normalizeClass(["autocomplete-input", { "autocomplete-input--focused": unref(isOpen) }]),
|
|
52
52
|
onClick: withModifiers(onContainerClick, ["stop"])
|
|
53
53
|
}, [
|
|
54
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
54
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.value, (option, index) => {
|
|
55
55
|
return openBlock(), createElementBlock("div", {
|
|
56
56
|
key: index,
|
|
57
57
|
class: "autocomplete-input__option"
|
|
@@ -81,7 +81,7 @@ const _sfc_main = defineComponent({
|
|
|
81
81
|
class: "autocomplete-input__search-field",
|
|
82
82
|
type: "text",
|
|
83
83
|
value: unref(api).query.value,
|
|
84
|
-
placeholder:
|
|
84
|
+
placeholder: __props.placeholder,
|
|
85
85
|
onInput: onSearch
|
|
86
86
|
}, null, 40, _hoisted_2)
|
|
87
87
|
], 10, _hoisted_1);
|
|
@@ -1,2 +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<{}>>, {}
|
|
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
2
|
export default _default;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { defineComponent, ref, onMounted, onUnmounted, openBlock, createElementBlock, withModifiers, unref, createVNode, withCtx, renderSlot } from 'vue';
|
|
2
2
|
import { NOOP } from '@vue/shared';
|
|
3
|
-
import '
|
|
3
|
+
/* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
|
|
4
4
|
import Text from '../typography/Text.vue.js';
|
|
5
5
|
import { useDropdownContext } from '../dropdown/DropdownContext.vue.js';
|
|
6
6
|
import { useId } from '../../composables/useId.vue.js';
|
|
7
|
-
/* empty css */
|
|
8
|
-
|
|
7
|
+
/* empty css */
|
|
9
8
|
import "../../GroupOption.vue_vue_type_style_index_0_scoped_true_lang.css";
|
|
10
|
-
const _sfc_main = defineComponent({
|
|
9
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
11
10
|
__name: "GroupOption",
|
|
12
11
|
setup(__props) {
|
|
13
12
|
const api = useDropdownContext("GroupOption");
|
|
@@ -77,6 +77,6 @@ declare const AutocompleteDropdownTypes: () => import("vue").DefineComponent<{
|
|
|
77
77
|
displayValue: (option: unknown) => string;
|
|
78
78
|
handleSearch: (option: any, term: string) => boolean;
|
|
79
79
|
grouped: boolean;
|
|
80
|
-
}
|
|
80
|
+
}>[];
|
|
81
81
|
export { default as AutocompleteDropdown } from './AutocompleteDropdown.vue';
|
|
82
82
|
export { AutocompleteDropdownTypes };
|
|
@@ -8,7 +8,7 @@ const _hoisted_1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElem
|
|
|
8
8
|
const _hoisted_2 = { class: "content-wrapper" };
|
|
9
9
|
const _hoisted_3 = { class: "icon-container" };
|
|
10
10
|
const _hoisted_4 = { class: "content" };
|
|
11
|
-
const _sfc_main = defineComponent({
|
|
11
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
12
|
__name: "Banner",
|
|
13
13
|
props: {
|
|
14
14
|
type: {
|
|
@@ -32,7 +32,7 @@ const _sfc_main = defineComponent({
|
|
|
32
32
|
createElementVNode("div", _hoisted_3, [
|
|
33
33
|
_ctx.$slots.icon ? (openBlock(), createBlock(unref(Icon), {
|
|
34
34
|
key: 0,
|
|
35
|
-
class: normalizeClass(iconClass
|
|
35
|
+
class: normalizeClass(unref(iconClass))
|
|
36
36
|
}, {
|
|
37
37
|
default: withCtx(() => [
|
|
38
38
|
renderSlot(_ctx.$slots, "icon", {}, void 0, true)
|
|
@@ -40,8 +40,8 @@ const _sfc_main = defineComponent({
|
|
|
40
40
|
_: 3
|
|
41
41
|
}, 8, ["class"])) : (openBlock(), createBlock(unref(Icon), {
|
|
42
42
|
key: 1,
|
|
43
|
-
name: iconClass
|
|
44
|
-
class: normalizeClass(iconClass
|
|
43
|
+
name: unref(iconClass),
|
|
44
|
+
class: normalizeClass(unref(iconClass)),
|
|
45
45
|
"font-size": __props.iconSize
|
|
46
46
|
}, null, 8, ["name", "class", "font-size"]))
|
|
47
47
|
]),
|
|
@@ -19,7 +19,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
19
19
|
size: 'sm' | 'md' | 'lg';
|
|
20
20
|
leftIconName: IconName;
|
|
21
21
|
rightIconName: IconName;
|
|
22
|
-
}
|
|
22
|
+
}>;
|
|
23
23
|
export default _default;
|
|
24
24
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
25
25
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -5,7 +5,7 @@ import { iconSizeMap } from './consts.vue.js';
|
|
|
5
5
|
/* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
|
|
6
6
|
|
|
7
7
|
import "../../Button.vue_vue_type_style_index_0_scoped_true_lang.css";
|
|
8
|
-
const _sfc_main = defineComponent({
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
9
|
__name: "Button",
|
|
10
10
|
props: {
|
|
11
11
|
leftIconName: { default: null },
|
|
@@ -18,30 +18,30 @@ const _sfc_main = defineComponent({
|
|
|
18
18
|
return (_ctx, _cache) => {
|
|
19
19
|
return openBlock(), createBlock(ButtonBase, mergeProps({
|
|
20
20
|
class: [
|
|
21
|
-
|
|
21
|
+
__props.size,
|
|
22
22
|
{
|
|
23
|
-
"with-left-icon": !!
|
|
24
|
-
"with-right-icon": !!
|
|
23
|
+
"with-left-icon": !!__props.leftIconName,
|
|
24
|
+
"with-right-icon": !!__props.rightIconName
|
|
25
25
|
}
|
|
26
26
|
],
|
|
27
|
-
size:
|
|
27
|
+
size: __props.size
|
|
28
28
|
}, _ctx.$attrs), createSlots({
|
|
29
29
|
default: withCtx(() => [
|
|
30
30
|
createElementVNode("div", {
|
|
31
31
|
class: normalizeClass({
|
|
32
|
-
flex:
|
|
32
|
+
flex: __props.leftIconName || __props.rightIconName
|
|
33
33
|
})
|
|
34
34
|
}, [
|
|
35
|
-
|
|
35
|
+
__props.leftIconName ? (openBlock(), createBlock(unref(Icon), {
|
|
36
36
|
key: 0,
|
|
37
|
-
name:
|
|
38
|
-
"font-size": computedIconWidth
|
|
37
|
+
name: __props.leftIconName,
|
|
38
|
+
"font-size": unref(computedIconWidth)
|
|
39
39
|
}, null, 8, ["name", "font-size"])) : createCommentVNode("", true),
|
|
40
40
|
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
41
|
-
|
|
41
|
+
__props.rightIconName ? (openBlock(), createBlock(unref(Icon), {
|
|
42
42
|
key: 1,
|
|
43
|
-
name:
|
|
44
|
-
"font-size": computedIconWidth
|
|
43
|
+
name: __props.rightIconName,
|
|
44
|
+
"font-size": unref(computedIconWidth)
|
|
45
45
|
}, null, 8, ["name", "font-size"])) : createCommentVNode("", true)
|
|
46
46
|
], 2)
|
|
47
47
|
]),
|
|
@@ -30,7 +30,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
30
30
|
variant: 'solid' | 'border' | 'borderless' | 'ghost' | 'link' | 'colorized';
|
|
31
31
|
theme: 'primary' | 'secondary' | 'third' | 'danger';
|
|
32
32
|
loading: boolean;
|
|
33
|
-
}
|
|
33
|
+
}>;
|
|
34
34
|
export default _default;
|
|
35
35
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
36
36
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
import { defineComponent, computed, openBlock, createElementBlock, mergeProps, renderSlot, createVNode, unref, withCtx, createCommentVNode } from 'vue';
|
|
2
|
-
import '
|
|
2
|
+
/* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
|
|
3
3
|
import Text from '../typography/Text.vue.js';
|
|
4
4
|
import Icon from '../icon/Icon.vue.js';
|
|
5
5
|
import { sizeToFont } from './consts.vue.js';
|
|
6
6
|
import LoaderDotsIcon from './icon/LoaderDotsIcon.vue.js';
|
|
7
|
-
/* empty css */
|
|
8
|
-
|
|
7
|
+
/* empty css */
|
|
9
8
|
import "../../ButtonBase.vue_vue_type_style_index_0_scoped_true_lang.css";
|
|
10
9
|
const _hoisted_1 = { key: 0 };
|
|
11
|
-
const
|
|
12
|
-
const loaderWidthMedSmallInPixel = 24;
|
|
13
|
-
const _sfc_main = defineComponent({
|
|
10
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
14
11
|
__name: "ButtonBase",
|
|
15
12
|
props: {
|
|
16
13
|
size: { default: "md" },
|
|
@@ -22,19 +19,21 @@ const _sfc_main = defineComponent({
|
|
|
22
19
|
},
|
|
23
20
|
setup(__props) {
|
|
24
21
|
const props = __props;
|
|
22
|
+
const loaderWidthLargeInPixel = 32;
|
|
23
|
+
const loaderWidthMedSmallInPixel = 24;
|
|
25
24
|
const loaderWidth = computed(
|
|
26
25
|
() => props.size === "lg" ? loaderWidthLargeInPixel + "px" : loaderWidthMedSmallInPixel + "px"
|
|
27
26
|
);
|
|
28
27
|
const textSize = computed(() => sizeToFont[props.size]);
|
|
29
28
|
return (_ctx, _cache) => {
|
|
30
29
|
return openBlock(), createElementBlock("button", mergeProps({
|
|
31
|
-
class: [[
|
|
30
|
+
class: [[__props.size, __props.theme, __props.variant, { loading: __props.loading }], "button-wrap"]
|
|
32
31
|
}, _ctx.$attrs), [
|
|
33
|
-
!
|
|
32
|
+
!__props.loading ? (openBlock(), createElementBlock("span", _hoisted_1, [
|
|
34
33
|
renderSlot(_ctx.$slots, "content", {}, () => [
|
|
35
34
|
createVNode(unref(Text), {
|
|
36
|
-
size: textSize
|
|
37
|
-
strong:
|
|
35
|
+
size: unref(textSize),
|
|
36
|
+
strong: __props.strong,
|
|
38
37
|
class: "content"
|
|
39
38
|
}, {
|
|
40
39
|
default: withCtx(() => [
|
|
@@ -44,9 +43,9 @@ const _sfc_main = defineComponent({
|
|
|
44
43
|
}, 8, ["size", "strong"])
|
|
45
44
|
], true)
|
|
46
45
|
])) : createCommentVNode("", true),
|
|
47
|
-
|
|
46
|
+
__props.loading ? renderSlot(_ctx.$slots, "loader", { key: 1 }, () => [
|
|
48
47
|
createVNode(unref(Icon), {
|
|
49
|
-
"font-size": loaderWidth
|
|
48
|
+
"font-size": unref(loaderWidth),
|
|
50
49
|
class: "loading"
|
|
51
50
|
}, {
|
|
52
51
|
default: withCtx(() => [
|
|
@@ -13,7 +13,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
13
13
|
}>>>, {
|
|
14
14
|
size: 'sm' | 'md' | 'lg';
|
|
15
15
|
variant: 'solid' | 'border' | 'borderless' | 'ghost' | 'link' | 'colorized';
|
|
16
|
-
}
|
|
16
|
+
}>;
|
|
17
17
|
export default _default;
|
|
18
18
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
19
19
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -6,7 +6,7 @@ import LoaderCircleIcon from './icon/LoaderCircleIcon.vue.js';
|
|
|
6
6
|
/* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
|
|
7
7
|
|
|
8
8
|
import "../../IconButton.vue_vue_type_style_index_0_scoped_true_lang.css";
|
|
9
|
-
const _sfc_main = defineComponent({
|
|
9
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
10
|
__name: "IconButton",
|
|
11
11
|
props: {
|
|
12
12
|
size: { default: "md" },
|
|
@@ -17,22 +17,22 @@ const _sfc_main = defineComponent({
|
|
|
17
17
|
const loaderSize = computed(() => loaderSizeMap[props.size] + "px");
|
|
18
18
|
return (_ctx, _cache) => {
|
|
19
19
|
return openBlock(), createBlock(ButtonBase, mergeProps({
|
|
20
|
-
size:
|
|
20
|
+
size: __props.size,
|
|
21
21
|
"is-truncated": false
|
|
22
22
|
}, _ctx.$attrs, {
|
|
23
|
-
variant:
|
|
23
|
+
variant: __props.variant,
|
|
24
24
|
class: "icon-base"
|
|
25
25
|
}), {
|
|
26
26
|
content: withCtx(() => [
|
|
27
27
|
createElementVNode("div", {
|
|
28
|
-
class: normalizeClass(["icon", { [
|
|
28
|
+
class: normalizeClass(["icon", { [__props.size]: true, [__props.variant]: true }])
|
|
29
29
|
}, [
|
|
30
30
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
31
31
|
], 2)
|
|
32
32
|
]),
|
|
33
33
|
loader: withCtx(() => [
|
|
34
34
|
createVNode(unref(Icon), {
|
|
35
|
-
"font-size": loaderSize
|
|
35
|
+
"font-size": unref(loaderSize),
|
|
36
36
|
class: "loading"
|
|
37
37
|
}, {
|
|
38
38
|
default: withCtx(() => [
|