@ironsource/shared-ui 2.2.0-rc.4 → 2.2.0-rc.41
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/Alert.vue_vue_type_style_index_0_scoped_5e66710b_lang.css +1 -0
- package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_f86477a9_lang.css +1 -0
- package/AppHeader.vue_vue_type_style_index_0_scoped_18bc6c0d_lang.css +1 -0
- package/ButtonV4.vue_vue_type_style_index_0_scoped_a59af1ad_lang.css +1 -0
- package/CalendarMonth.vue_vue_type_style_index_0_scoped_a44769fd_lang.css +1 -0
- package/CalendarMonthV4.vue_vue_type_style_index_0_scoped_6eae923a_lang.css +1 -0
- package/Chart.vue_vue_type_style_index_0_scoped_a4d7b67a_lang.css +1 -0
- package/ChartHeader.vue_vue_type_style_index_0_scoped_3a061c08_lang.css +1 -0
- package/CheckboxV4.vue_vue_type_style_index_0_scoped_88525d86_lang.css +1 -0
- package/ChipV4.vue_vue_type_style_index_0_scoped_a221c649_lang.css +1 -0
- package/ColumnPicker.vue_vue_type_style_index_0_scoped_d59af062_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_0967498f_lang.css +1 -0
- package/DateRange.vue_vue_type_style_index_0_scoped_25d03907_lang.css +1 -0
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_f8826716_lang.css +1 -0
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_a6900fa6_lang.css +1 -0
- package/DialogV4.vue_vue_type_style_index_0_scoped_a6710278_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_526bf0a1_lang.css +1 -0
- package/FormCard.vue_vue_type_style_index_0_scoped_98458a8f_lang.css +1 -0
- package/GroupOption.vue_vue_type_style_index_0_scoped_1e5170b3_lang.css +1 -0
- package/HelpText.vue_vue_type_style_index_0_scoped_641c2356_lang.css +1 -0
- package/IconV4.vue_vue_type_style_index_0_scoped_6683c5b5_lang.css +1 -0
- package/Link.vue_vue_type_style_index_0_scoped_fe0e7f6f_lang.css +1 -0
- package/MultiBar.vue_vue_type_style_index_0_scoped_c4395fb6_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_771e1980_lang.css +1 -0
- package/PopoverV4.vue_vue_type_style_index_0_scoped_9ae00876_lang.css +1 -0
- package/RadioButtonV4.vue_vue_type_style_index_0_scoped_4f3c7037_lang.css +1 -0
- package/SectionDropdown.vue_vue_type_style_index_0_scoped_65877e48_lang.css +1 -0
- package/SwitchV4.vue_vue_type_style_index_0_scoped_b71a806e_lang.css +1 -0
- package/Tag.vue_vue_type_style_index_0_scoped_3a5abbc4_lang.css +1 -0
- package/TextAreaV4.vue_vue_type_style_index_0_scoped_0feea75e_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_28fab783_lang.css +1 -0
- package/ThemeWrapper.vue_vue_type_style_index_1_lang.css +1 -1
- package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_0fc9ddf5_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_0_scoped_a8aebfee_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/components/alert/Alert.vue.d.ts +3 -8
- package/components/alert/Alert.vue.js +2 -2
- package/components/alert/Alert.vue2.js +48 -46
- package/components/alert/index.d.ts +8 -27
- package/components/appHeader/AppHeader.vue.js +2 -2
- package/components/appHeader/AppHeader.vue2.js +44 -45
- package/components/button/v4/ButtonV4.vue.js +4 -4
- package/components/button/v4/ButtonV4.vue2.js +1 -1
- package/components/button/v4/ToggleButtonGroupAB.vue.js +2 -2
- package/components/button/v4/ToggleButtonGroupAB.vue2.js +1 -1
- package/components/chart/Chart.vue.d.ts +5 -0
- package/components/chart/Chart.vue.js +3 -3
- package/components/chart/Chart.vue2.js +17 -15
- package/components/chart/ChartHeader.vue.js +2 -2
- package/components/chart/ChartHeader.vue2.js +2 -2
- package/components/chart/composables/useChartHeight.d.ts +1 -1
- package/components/chart/composables/useChartHeight.js +16 -15
- package/components/chart/index.d.ts +20 -1
- package/components/chart/types.d.ts +1 -0
- package/components/checkbox/v4/CheckboxV4.vue.js +3 -3
- package/components/checkbox/v4/CheckboxV4.vue2.js +60 -79
- package/components/checkbox/v4/icons/CheckedState.vue.js +11 -11
- package/components/checkbox/v4/icons/IndeterminateState.vue.js +7 -7
- package/components/checkbox/v4/icons/UncheckedState.vue.d.ts +28 -1
- package/components/checkbox/v4/icons/UncheckedState.vue.js +23 -21
- package/components/checkbox/v4/icons/UncheckedState.vue2.js +4 -0
- package/components/chip/v4/ChipV4.vue.js +3 -3
- package/components/chip/v4/ChipV4.vue2.js +1 -1
- package/components/columnConfigurator/SectionDropdown.vue.js +3 -3
- package/components/columnConfigurator/SectionDropdown.vue2.js +6 -7
- package/components/columnPicker/ColumnPicker.vue.d.ts +2 -0
- package/components/columnPicker/ColumnPicker.vue.js +3 -3
- package/components/columnPicker/ColumnPicker.vue2.js +173 -153
- package/components/columnPicker/index.d.ts +7 -1
- package/components/dateRange/common/CalendarMonth.common.js +46 -41
- package/components/dateRange/common/DateRange.common.d.ts +1 -0
- package/components/dateRange/common/DateRange.common.js +39 -38
- package/components/dateRange/common/consts.common.d.ts +5 -0
- package/components/dateRange/common/consts.common.js +9 -0
- package/components/dateRange/v3/CalendarMonth.vue.d.ts +5 -0
- package/components/dateRange/v3/CalendarMonth.vue.js +3 -3
- package/components/dateRange/v3/CalendarMonth.vue2.js +6 -5
- package/components/dateRange/v3/DateRange.vue.d.ts +8 -3
- package/components/dateRange/v3/DateRange.vue.js +2 -2
- package/components/dateRange/v3/DateRange.vue2.js +2 -1
- package/components/dateRange/v3/DateRangePicker.vue.d.ts +3 -3
- package/components/dateRange/v3/index.d.ts +27 -8
- package/components/dateRange/v4/CalendarMonthV4.vue.d.ts +5 -0
- package/components/dateRange/v4/CalendarMonthV4.vue.js +4 -4
- package/components/dateRange/v4/CalendarMonthV4.vue2.js +12 -11
- package/components/dateRange/v4/DateRangePickerV4.vue.d.ts +3 -3
- package/components/dateRange/v4/DateRangeV4.vue.d.ts +8 -3
- package/components/dateRange/v4/DateRangeV4.vue.js +3 -3
- package/components/dateRange/v4/DateRangeV4.vue2.js +104 -101
- package/components/dateRange/v4/index.d.ts +27 -8
- package/components/dialog/v4/DialogV4.vue.js +4 -4
- package/components/dialog/v4/DialogV4.vue2.js +1 -1
- package/components/dropdown/v4/AppDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/AppDropdownTrigger.vue2.js +1 -1
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +1 -1
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +1 -1
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +2 -2
- package/components/dropdown/v4/GroupOption.vue.js +3 -3
- package/components/dropdown/v4/GroupOption.vue2.js +1 -1
- package/components/dropdown/v4/OptionV4.vue.js +3 -3
- package/components/dropdown/v4/OptionV4.vue2.js +13 -12
- package/components/forms/FormCard.vue.js +3 -3
- package/components/forms/FormCard.vue2.js +5 -5
- package/components/helpText/HelpText.vue.d.ts +68 -0
- package/components/helpText/HelpText.vue.js +7 -0
- package/components/helpText/HelpText.vue2.js +45 -0
- package/components/helpText/index.d.ts +190 -0
- package/components/helpText/index.js +6 -0
- package/components/icon/v4/IconV4.vue.d.ts +5 -0
- package/components/icon/v4/IconV4.vue.js +2 -2
- package/components/icon/v4/IconV4.vue2.js +27 -26
- package/components/icon/v4/index.d.ts +20 -1
- package/components/input/v4/TextField.vue.js +2 -2
- package/components/input/v4/TextField.vue2.js +1 -1
- package/components/link/Link.vue.d.ts +3 -3
- package/components/link/Link.vue.js +5 -5
- package/components/link/Link.vue2.js +1 -1
- package/components/link/index.d.ts +7 -7
- package/components/multibar/MultiBar.vue.js +3 -3
- package/components/multibar/MultiBar.vue2.js +1 -1
- package/components/popover/v4/PopoverV4.vue.d.ts +14 -0
- package/components/popover/v4/PopoverV4.vue.js +2 -2
- package/components/popover/v4/PopoverV4.vue2.js +11 -9
- package/components/popover/v4/index.d.ts +41 -1
- package/components/radioButton/v4/RadioButtonV4.vue.js +3 -3
- package/components/radioButton/v4/RadioButtonV4.vue2.js +1 -1
- package/components/switch/v4/SwitchV4.vue.d.ts +5 -0
- package/components/switch/v4/SwitchV4.vue.js +4 -4
- package/components/switch/v4/SwitchV4.vue2.js +14 -13
- package/components/switch/v4/index.d.ts +9 -0
- package/components/table/v4/DataGrid.vue.d.ts +2 -0
- package/components/table/v4/DataGrid.vue.js +4 -4
- package/components/table/v4/DataGrid.vue2.js +82 -80
- package/components/table/v4/index.d.ts +7 -1
- package/components/tag/Tag.vue.d.ts +126 -0
- package/components/tag/Tag.vue.js +7 -0
- package/components/tag/Tag.vue2.js +249 -0
- package/components/tag/index.d.ts +183 -0
- package/components/tag/index.js +6 -0
- package/components/tagsField/index.d.ts +42 -3
- package/components/tagsField/index.js +6 -4
- package/components/textArea/v4/TextAreaV4.vue.js +3 -3
- package/components/textArea/v4/TextAreaV4.vue2.js +1 -1
- package/components/tooltip/v4/TooltipV4.vue.d.ts +5 -0
- package/components/tooltip/v4/TooltipV4.vue.js +2 -2
- package/components/tooltip/v4/TooltipV4.vue2.js +76 -36
- package/components/tooltip/v4/index.d.ts +20 -1
- package/design-foundation.stories/colors/ColorsData.d.ts +52 -47
- package/index.d.ts +270 -44
- package/index.js +108 -98
- package/package.json +12 -3
- package/style/v4/colors.scss +89 -84
- package/style/v4/grid.css +1 -1
- package/style/v4/grid.css.map +1 -1
- package/testids/index.d.ts +4 -0
- package/testids/index.js +38 -37
- package/Alert.vue_vue_type_style_index_0_scoped_06e0871a_lang.css +0 -1
- package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_858cefbf_lang.css +0 -1
- package/AppHeader.vue_vue_type_style_index_0_scoped_538ccdc6_lang.css +0 -1
- package/ButtonV4.vue_vue_type_style_index_0_scoped_852be7ec_lang.css +0 -1
- package/CalendarMonth.vue_vue_type_style_index_0_scoped_acd3440c_lang.css +0 -1
- package/CalendarMonthV4.vue_vue_type_style_index_0_scoped_b0d3ea50_lang.css +0 -1
- package/Chart.vue_vue_type_style_index_0_scoped_22477735_lang.css +0 -1
- package/ChartHeader.vue_vue_type_style_index_0_scoped_9a603520_lang.css +0 -1
- package/CheckboxV4.vue_vue_type_style_index_0_scoped_af4ae3c3_lang.css +0 -1
- package/ChipV4.vue_vue_type_style_index_0_scoped_a4d3a12e_lang.css +0 -1
- package/ColumnPicker.vue_vue_type_style_index_0_scoped_ea8c7024_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_cd41c5ca_lang.css +0 -1
- package/DateRange.vue_vue_type_style_index_0_scoped_70e316e9_lang.css +0 -1
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_a849128a_lang.css +0 -1
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_3bc0f416_lang.css +0 -1
- package/DialogV4.vue_vue_type_style_index_0_scoped_cc99f1e3_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_445ebb01_lang.css +0 -1
- package/FormCard.vue_vue_type_style_index_0_scoped_86feae7b_lang.css +0 -1
- package/GroupOption.vue_vue_type_style_index_0_scoped_5f372a81_lang.css +0 -1
- package/IconV4.vue_vue_type_style_index_0_scoped_dc433d48_lang.css +0 -1
- package/Link.vue_vue_type_style_index_0_scoped_1a766750_lang.css +0 -1
- package/MultiBar.vue_vue_type_style_index_0_scoped_71617643_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_752a357d_lang.css +0 -1
- package/PopoverV4.vue_vue_type_style_index_0_scoped_66694b4e_lang.css +0 -1
- package/RadioButtonV4.vue_vue_type_style_index_0_scoped_05c7bca2_lang.css +0 -1
- package/SectionDropdown.vue_vue_type_style_index_0_scoped_cfad60a8_lang.css +0 -1
- package/SwitchV4.vue_vue_type_style_index_0_scoped_cd6621a7_lang.css +0 -1
- package/TextAreaV4.vue_vue_type_style_index_0_scoped_4114ef89_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_3b7a3661_lang.css +0 -1
- package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_2076b5ab_lang.css +0 -1
- package/TooltipV4.vue_vue_type_style_index_0_scoped_8a451e54_lang.css +0 -1
- package/components/checkbox/v4/icons/CheckedDisabledState.vue.d.ts +0 -29
- package/components/checkbox/v4/icons/CheckedDisabledState.vue.js +0 -45
- package/components/checkbox/v4/icons/CheckedDisabledState.vue2.js +0 -4
- package/components/checkbox/v4/icons/IndeterminateDisabledState.vue.d.ts +0 -2
- package/components/checkbox/v4/icons/IndeterminateDisabledState.vue.js +0 -40
- package/components/checkbox/v4/icons/UncheckedDisabledState.vue.d.ts +0 -2
- package/components/checkbox/v4/icons/UncheckedDisabledState.vue.js +0 -30
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../OptionV4.
|
|
1
|
+
import "../../../OptionV4.vue_vue_type_style_index_0_scoped_771e1980_lang.css"; import { defineComponent as V, ref as I, watch as F, computed as L, openBlock as i, createBlock as g, unref as n, createSlots as N, withCtx as s, createElementVNode as u, normalizeClass as v, createCommentVNode as o, createElementBlock as l, renderSlot as r, createVNode as a, toDisplayString as m, createTextVNode as T, withModifiers as O, Fragment as j, renderList as R } from "vue";
|
|
2
2
|
import "../../typography/Heading.vue.js";
|
|
3
3
|
import D from "../../typography/Text.vue.js";
|
|
4
4
|
import q from "../../checkbox/v4/CheckboxV4.vue.js";
|
|
@@ -6,7 +6,7 @@ import y from "../../icon/v4/IconV4.vue.js";
|
|
|
6
6
|
import G from "../../icon/v4/IconFlag.vue.js";
|
|
7
7
|
import { NOOP as $ } from "@vue/shared";
|
|
8
8
|
import { optionCommon as H } from "../common/Option.common.js";
|
|
9
|
-
import
|
|
9
|
+
import x from "../../typography/v4/Typography.vue.js";
|
|
10
10
|
import h from "../../tooltip/v4/TooltipV4.vue.js";
|
|
11
11
|
import { isElementTruncated as J } from "../../../utils/text.js";
|
|
12
12
|
import { promiseTimeout as Q } from "@vueuse/core";
|
|
@@ -71,11 +71,11 @@ const U = { class: "multiline-tooltip" }, W = {
|
|
|
71
71
|
setup(e, { emit: M }) {
|
|
72
72
|
const d = e, { selected: b, id: B, onClick: S, api: K } = H(d), z = (t) => {
|
|
73
73
|
d.stopOptionClickEventPropagation && t.stopPropagation(), d.disabled ? $() : S(t);
|
|
74
|
-
},
|
|
74
|
+
}, p = I(null), w = I(!1), A = (t) => {
|
|
75
75
|
d.disabled && (t.stopPropagation(), $());
|
|
76
76
|
};
|
|
77
|
-
F([() => d.treeChildShown,
|
|
78
|
-
await Q(100), w.value =
|
|
77
|
+
F([() => d.treeChildShown, p], async () => {
|
|
78
|
+
await Q(100), w.value = p.value && J(p.value);
|
|
79
79
|
});
|
|
80
80
|
const P = (t) => t && typeof t == "object" && "optionTooltipText" in t ? (Array.isArray(t.optionTooltipText), t.optionTooltipText) : w.value ? t[d.nameKey] : "", k = L(() => {
|
|
81
81
|
const t = d.disabled && d.minMaxSelectionTooltipMessage || "", c = P(d.option);
|
|
@@ -97,7 +97,8 @@ const U = { class: "multiline-tooltip" }, W = {
|
|
|
97
97
|
"item-container--disabled": e.disabled,
|
|
98
98
|
"item-container--active": e.nameKey ? !1 : e.active,
|
|
99
99
|
"item-container--selected": n(b),
|
|
100
|
-
"item-container--multi": e.isMulti
|
|
100
|
+
"item-container--multi": e.isMulti,
|
|
101
|
+
"item-container--filtered-out": e.option?.filteredOut
|
|
101
102
|
}]),
|
|
102
103
|
onClick: A
|
|
103
104
|
}, [
|
|
@@ -145,10 +146,10 @@ const U = { class: "multiline-tooltip" }, W = {
|
|
|
145
146
|
])) : o("", !0),
|
|
146
147
|
u("div", {
|
|
147
148
|
ref_key: "textContainerRef",
|
|
148
|
-
ref:
|
|
149
|
+
ref: p,
|
|
149
150
|
class: "text-container"
|
|
150
151
|
}, [
|
|
151
|
-
a(n(
|
|
152
|
+
a(n(x), {
|
|
152
153
|
class: "option-text",
|
|
153
154
|
variant: "body2"
|
|
154
155
|
}, {
|
|
@@ -166,7 +167,7 @@ const U = { class: "multiline-tooltip" }, W = {
|
|
|
166
167
|
}, {
|
|
167
168
|
default: s(() => [
|
|
168
169
|
e.option?.conditionalOptions ? (i(), l("div", ee, [
|
|
169
|
-
a(n(
|
|
170
|
+
a(n(x), {
|
|
170
171
|
variant: "body2",
|
|
171
172
|
class: "conditional-option-label"
|
|
172
173
|
}, {
|
|
@@ -175,7 +176,7 @@ const U = { class: "multiline-tooltip" }, W = {
|
|
|
175
176
|
]),
|
|
176
177
|
_: 1
|
|
177
178
|
}),
|
|
178
|
-
a(n(
|
|
179
|
+
a(n(x), {
|
|
179
180
|
variant: "h5",
|
|
180
181
|
class: "conditional-option-value"
|
|
181
182
|
}, {
|
|
@@ -196,7 +197,7 @@ const U = { class: "multiline-tooltip" }, W = {
|
|
|
196
197
|
}, null, 8, ["name"])
|
|
197
198
|
])) : o("", !0),
|
|
198
199
|
e.optionTwoLinesKey ? (i(), l("div", ne, [
|
|
199
|
-
a(n(
|
|
200
|
+
a(n(x), { variant: "caption" }, {
|
|
200
201
|
default: s(() => [
|
|
201
202
|
T(m(e.option[e.optionTwoLinesKey]), 1)
|
|
202
203
|
]),
|
|
@@ -279,7 +280,7 @@ const U = { class: "multiline-tooltip" }, W = {
|
|
|
279
280
|
name: "tooltip",
|
|
280
281
|
fn: s(() => [
|
|
281
282
|
u("div", U, [
|
|
282
|
-
(i(!0), l(j, null, R(n(k), (f) => (i(), g(n(
|
|
283
|
+
(i(!0), l(j, null, R(n(k), (f) => (i(), g(n(x), {
|
|
283
284
|
key: f,
|
|
284
285
|
variant: "body2"
|
|
285
286
|
}, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./FormCard.vue2.js";
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../FormCard.
|
|
4
|
-
const t = /* @__PURE__ */
|
|
2
|
+
/* empty css */import _ from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../FormCard.vue_vue_type_style_index_0_scoped_98458a8f_lang.css"; //*');
|
|
4
|
+
const t = /* @__PURE__ */ _(o, [["__scopeId", "data-v-98458a8f"]]);
|
|
5
5
|
export {
|
|
6
6
|
t as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../FormCard.
|
|
1
|
+
import "../../FormCard.vue_vue_type_style_index_0_scoped_98458a8f_lang.css"; import { defineComponent as B, openBlock as d, createElementBlock as c, createElementVNode as f, mergeProps as n, unref as e, renderSlot as m, createVNode as a, withCtx as u, createTextVNode as g, toDisplayString as v, createBlock as T, createCommentVNode as C } from "vue";
|
|
2
2
|
import b from "../typography/v4/Typography.vue.js";
|
|
3
3
|
import k from "../button/v4/ButtonV4.vue.js";
|
|
4
4
|
import "../button/v4/IconButtonV4.vue.js";
|
|
@@ -7,7 +7,7 @@ import "../button/v4/ToggleButtonGroupAB.vue.js";
|
|
|
7
7
|
import { FormCardTestIdModifiers as o } from "../../testids/index.js";
|
|
8
8
|
import { useTestIdAttrs as N } from "../../utils/testIds.js";
|
|
9
9
|
import i from "../skeleton/v4/SkeletonV4.vue.js";
|
|
10
|
-
const
|
|
10
|
+
const h = { class: "form-card" }, p = {
|
|
11
11
|
key: 1,
|
|
12
12
|
class: "content-skeleton-container"
|
|
13
13
|
}, F = /* @__PURE__ */ B({
|
|
@@ -27,7 +27,7 @@ const p = { class: "form-card" }, h = {
|
|
|
27
27
|
setup(t, { emit: y }) {
|
|
28
28
|
const l = N(t.testId, o);
|
|
29
29
|
return (r, s) => (d(), c("div", null, [
|
|
30
|
-
f("div",
|
|
30
|
+
f("div", h, [
|
|
31
31
|
f("header", n({ class: "card-header" }, e(l)[e(o).TITLE]), [
|
|
32
32
|
t.isLoading ? (d(), T(e(i), {
|
|
33
33
|
key: 1,
|
|
@@ -46,7 +46,7 @@ const p = { class: "form-card" }, h = {
|
|
|
46
46
|
f("div", n({
|
|
47
47
|
class: ["card-content", { "card-content--no-padding": t.noPadding }]
|
|
48
48
|
}, e(l)[e(o).CONTENT]), [
|
|
49
|
-
t.isLoading ? (d(), c("div",
|
|
49
|
+
t.isLoading ? (d(), c("div", p, [
|
|
50
50
|
a(e(i), {
|
|
51
51
|
type: "rectangle",
|
|
52
52
|
size: 20,
|
|
@@ -85,7 +85,7 @@ const p = { class: "form-card" }, h = {
|
|
|
85
85
|
class: "form-action",
|
|
86
86
|
loading: t.saveLoading
|
|
87
87
|
}, e(l)[e(o).SAVE_BUTTON], {
|
|
88
|
-
disabled: t.saveDisabled || t.isLoading,
|
|
88
|
+
disabled: t.saveDisabled || t.isLoading || t.saveLoading,
|
|
89
89
|
onClick: s[1] || (s[1] = (L) => y("save"))
|
|
90
90
|
}), {
|
|
91
91
|
default: u(() => [
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { TooltipTriggers } from '@/components/tooltip/common/Tooltip.types';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
variant?: "caption" | "h5" | "body1" | "body2";
|
|
4
|
+
color?: "default" | "primary" | "secondary";
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
testId?: string;
|
|
7
|
+
tooltipDisabled?: boolean;
|
|
8
|
+
tooltipTriggers?: TooltipTriggers[];
|
|
9
|
+
tooltipPlacement?: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
10
|
+
}>, {
|
|
11
|
+
variant: string;
|
|
12
|
+
color: string;
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
testId: string;
|
|
15
|
+
tooltipDisabled: boolean;
|
|
16
|
+
tooltipTriggers: () => string[];
|
|
17
|
+
tooltipPlacement: string;
|
|
18
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
19
|
+
variant?: "caption" | "h5" | "body1" | "body2";
|
|
20
|
+
color?: "default" | "primary" | "secondary";
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
testId?: string;
|
|
23
|
+
tooltipDisabled?: boolean;
|
|
24
|
+
tooltipTriggers?: TooltipTriggers[];
|
|
25
|
+
tooltipPlacement?: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
26
|
+
}>, {
|
|
27
|
+
variant: string;
|
|
28
|
+
color: string;
|
|
29
|
+
disabled: boolean;
|
|
30
|
+
testId: string;
|
|
31
|
+
tooltipDisabled: boolean;
|
|
32
|
+
tooltipTriggers: () => string[];
|
|
33
|
+
tooltipPlacement: string;
|
|
34
|
+
}>>>, {
|
|
35
|
+
testId: string;
|
|
36
|
+
variant: "caption" | "h5" | "body1" | "body2";
|
|
37
|
+
tooltipPlacement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
38
|
+
disabled: boolean;
|
|
39
|
+
color: "default" | "primary" | "secondary";
|
|
40
|
+
tooltipDisabled: boolean;
|
|
41
|
+
tooltipTriggers: TooltipTriggers[];
|
|
42
|
+
}>, {
|
|
43
|
+
default?(_: {}): any;
|
|
44
|
+
tooltip?(_: {}): any;
|
|
45
|
+
}>;
|
|
46
|
+
export default _default;
|
|
47
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
48
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
49
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
50
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
51
|
+
} : {
|
|
52
|
+
type: import('vue').PropType<T[K]>;
|
|
53
|
+
required: true;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
type __VLS_WithDefaults<P, D> = {
|
|
57
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
58
|
+
default: D[K];
|
|
59
|
+
}> : P[K];
|
|
60
|
+
};
|
|
61
|
+
type __VLS_Prettify<T> = {
|
|
62
|
+
[K in keyof T]: T[K];
|
|
63
|
+
} & {};
|
|
64
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
65
|
+
new (): {
|
|
66
|
+
$slots: S;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import e from "./HelpText.vue2.js";
|
|
2
|
+
/* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../HelpText.vue_vue_type_style_index_0_scoped_641c2356_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-641c2356"]]);
|
|
5
|
+
export {
|
|
6
|
+
s as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import "../../HelpText.vue_vue_type_style_index_0_scoped_641c2356_lang.css"; import { defineComponent as s, openBlock as n, createBlock as p, unref as e, mergeProps as d, withCtx as l, renderSlot as i, createVNode as f } from "vue";
|
|
2
|
+
import u from "../typography/v4/Typography.vue.js";
|
|
3
|
+
import m from "../tooltip/v4/TooltipV4.vue.js";
|
|
4
|
+
import { useTestIdAttrs as c } from "../../utils/testIds.js";
|
|
5
|
+
import { HelpTextTestIdModifiers as a } from "../../testids/index.js";
|
|
6
|
+
const y = /* @__PURE__ */ s({
|
|
7
|
+
__name: "HelpText",
|
|
8
|
+
props: {
|
|
9
|
+
variant: { default: "body1" },
|
|
10
|
+
color: { default: "default" },
|
|
11
|
+
disabled: { type: Boolean, default: !1 },
|
|
12
|
+
testId: { default: "" },
|
|
13
|
+
tooltipDisabled: { type: Boolean, default: !1 },
|
|
14
|
+
tooltipTriggers: { default: () => ["hover"] },
|
|
15
|
+
tooltipPlacement: { default: "auto" }
|
|
16
|
+
},
|
|
17
|
+
setup(t) {
|
|
18
|
+
const r = c(t.testId, a);
|
|
19
|
+
return (o, g) => (n(), p(e(m), d({
|
|
20
|
+
class: ["help-text", [`help-text--${t.color}`, { "help-text--disabled": t.disabled }]],
|
|
21
|
+
disabled: !o.$slots.tooltip || t.tooltipDisabled,
|
|
22
|
+
triggers: t.tooltipTriggers,
|
|
23
|
+
placement: t.tooltipPlacement
|
|
24
|
+
}, e(r)[e(a).TOOLTIP]), {
|
|
25
|
+
tooltip: l(() => [
|
|
26
|
+
i(o.$slots, "tooltip", {}, void 0, !0)
|
|
27
|
+
]),
|
|
28
|
+
default: l(() => [
|
|
29
|
+
f(e(u), d(e(r)[e(a).TEXT], {
|
|
30
|
+
class: "underlined",
|
|
31
|
+
variant: t.variant
|
|
32
|
+
}), {
|
|
33
|
+
default: l(() => [
|
|
34
|
+
i(o.$slots, "default", {}, void 0, !0)
|
|
35
|
+
]),
|
|
36
|
+
_: 3
|
|
37
|
+
}, 16, ["variant"])
|
|
38
|
+
]),
|
|
39
|
+
_: 3
|
|
40
|
+
}, 16, ["class", "disabled", "triggers", "placement"]));
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
export {
|
|
44
|
+
y as default
|
|
45
|
+
};
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
declare const HelpTextTypes: () => ({
|
|
2
|
+
new (...args: any[]): {
|
|
3
|
+
$: import("vue").ComponentInternalInstance;
|
|
4
|
+
$data: {};
|
|
5
|
+
$props: Partial<{
|
|
6
|
+
testId: string;
|
|
7
|
+
variant: "caption" | "h5" | "body1" | "body2";
|
|
8
|
+
tooltipPlacement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
color: "default" | "primary" | "secondary";
|
|
11
|
+
tooltipDisabled: boolean;
|
|
12
|
+
tooltipTriggers: import("../tooltip/common/Tooltip.types").TooltipTriggers[];
|
|
13
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
14
|
+
testId: {
|
|
15
|
+
type: import("vue").PropType<string>;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
variant: {
|
|
19
|
+
type: import("vue").PropType<"caption" | "h5" | "body1" | "body2">;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
tooltipPlacement: {
|
|
23
|
+
type: import("vue").PropType<"top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end">;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
disabled: {
|
|
27
|
+
type: import("vue").PropType<boolean>;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
color: {
|
|
31
|
+
type: import("vue").PropType<"default" | "primary" | "secondary">;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
tooltipDisabled: {
|
|
35
|
+
type: import("vue").PropType<boolean>;
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
tooltipTriggers: {
|
|
39
|
+
type: import("vue").PropType<import("../tooltip/common/Tooltip.types").TooltipTriggers[]>;
|
|
40
|
+
default: () => string[];
|
|
41
|
+
};
|
|
42
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "testId" | "variant" | "tooltipPlacement" | "disabled" | "color" | "tooltipDisabled" | "tooltipTriggers">;
|
|
43
|
+
$attrs: {
|
|
44
|
+
[x: string]: unknown;
|
|
45
|
+
};
|
|
46
|
+
$refs: {
|
|
47
|
+
[x: string]: unknown;
|
|
48
|
+
};
|
|
49
|
+
$slots: Readonly<{
|
|
50
|
+
[name: string]: import("vue").Slot;
|
|
51
|
+
}>;
|
|
52
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
53
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
54
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
55
|
+
$el: any;
|
|
56
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
57
|
+
testId: {
|
|
58
|
+
type: import("vue").PropType<string>;
|
|
59
|
+
default: string;
|
|
60
|
+
};
|
|
61
|
+
variant: {
|
|
62
|
+
type: import("vue").PropType<"caption" | "h5" | "body1" | "body2">;
|
|
63
|
+
default: string;
|
|
64
|
+
};
|
|
65
|
+
tooltipPlacement: {
|
|
66
|
+
type: import("vue").PropType<"top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end">;
|
|
67
|
+
default: string;
|
|
68
|
+
};
|
|
69
|
+
disabled: {
|
|
70
|
+
type: import("vue").PropType<boolean>;
|
|
71
|
+
default: boolean;
|
|
72
|
+
};
|
|
73
|
+
color: {
|
|
74
|
+
type: import("vue").PropType<"default" | "primary" | "secondary">;
|
|
75
|
+
default: string;
|
|
76
|
+
};
|
|
77
|
+
tooltipDisabled: {
|
|
78
|
+
type: import("vue").PropType<boolean>;
|
|
79
|
+
default: boolean;
|
|
80
|
+
};
|
|
81
|
+
tooltipTriggers: {
|
|
82
|
+
type: import("vue").PropType<import("../tooltip/common/Tooltip.types").TooltipTriggers[]>;
|
|
83
|
+
default: () => string[];
|
|
84
|
+
};
|
|
85
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
86
|
+
testId: string;
|
|
87
|
+
variant: "caption" | "h5" | "body1" | "body2";
|
|
88
|
+
tooltipPlacement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
89
|
+
disabled: boolean;
|
|
90
|
+
color: "default" | "primary" | "secondary";
|
|
91
|
+
tooltipDisabled: boolean;
|
|
92
|
+
tooltipTriggers: import("../tooltip/common/Tooltip.types").TooltipTriggers[];
|
|
93
|
+
}, {}, string> & {
|
|
94
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
95
|
+
created?: (() => void) | (() => void)[];
|
|
96
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
97
|
+
mounted?: (() => void) | (() => void)[];
|
|
98
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
99
|
+
updated?: (() => void) | (() => void)[];
|
|
100
|
+
activated?: (() => void) | (() => void)[];
|
|
101
|
+
deactivated?: (() => void) | (() => void)[];
|
|
102
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
103
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
104
|
+
destroyed?: (() => void) | (() => void)[];
|
|
105
|
+
unmounted?: (() => void) | (() => void)[];
|
|
106
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
107
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
108
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void)[];
|
|
109
|
+
};
|
|
110
|
+
$forceUpdate: () => void;
|
|
111
|
+
$nextTick: typeof import("vue").nextTick;
|
|
112
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
|
113
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
|
114
|
+
testId: {
|
|
115
|
+
type: import("vue").PropType<string>;
|
|
116
|
+
default: string;
|
|
117
|
+
};
|
|
118
|
+
variant: {
|
|
119
|
+
type: import("vue").PropType<"caption" | "h5" | "body1" | "body2">;
|
|
120
|
+
default: string;
|
|
121
|
+
};
|
|
122
|
+
tooltipPlacement: {
|
|
123
|
+
type: import("vue").PropType<"top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end">;
|
|
124
|
+
default: string;
|
|
125
|
+
};
|
|
126
|
+
disabled: {
|
|
127
|
+
type: import("vue").PropType<boolean>;
|
|
128
|
+
default: boolean;
|
|
129
|
+
};
|
|
130
|
+
color: {
|
|
131
|
+
type: import("vue").PropType<"default" | "primary" | "secondary">;
|
|
132
|
+
default: string;
|
|
133
|
+
};
|
|
134
|
+
tooltipDisabled: {
|
|
135
|
+
type: import("vue").PropType<boolean>;
|
|
136
|
+
default: boolean;
|
|
137
|
+
};
|
|
138
|
+
tooltipTriggers: {
|
|
139
|
+
type: import("vue").PropType<import("../tooltip/common/Tooltip.types").TooltipTriggers[]>;
|
|
140
|
+
default: () => string[];
|
|
141
|
+
};
|
|
142
|
+
}>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
|
|
143
|
+
__isFragment?: never;
|
|
144
|
+
__isTeleport?: never;
|
|
145
|
+
__isSuspense?: never;
|
|
146
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
147
|
+
testId: {
|
|
148
|
+
type: import("vue").PropType<string>;
|
|
149
|
+
default: string;
|
|
150
|
+
};
|
|
151
|
+
variant: {
|
|
152
|
+
type: import("vue").PropType<"caption" | "h5" | "body1" | "body2">;
|
|
153
|
+
default: string;
|
|
154
|
+
};
|
|
155
|
+
tooltipPlacement: {
|
|
156
|
+
type: import("vue").PropType<"top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end">;
|
|
157
|
+
default: string;
|
|
158
|
+
};
|
|
159
|
+
disabled: {
|
|
160
|
+
type: import("vue").PropType<boolean>;
|
|
161
|
+
default: boolean;
|
|
162
|
+
};
|
|
163
|
+
color: {
|
|
164
|
+
type: import("vue").PropType<"default" | "primary" | "secondary">;
|
|
165
|
+
default: string;
|
|
166
|
+
};
|
|
167
|
+
tooltipDisabled: {
|
|
168
|
+
type: import("vue").PropType<boolean>;
|
|
169
|
+
default: boolean;
|
|
170
|
+
};
|
|
171
|
+
tooltipTriggers: {
|
|
172
|
+
type: import("vue").PropType<import("../tooltip/common/Tooltip.types").TooltipTriggers[]>;
|
|
173
|
+
default: () => string[];
|
|
174
|
+
};
|
|
175
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
176
|
+
testId: string;
|
|
177
|
+
variant: "caption" | "h5" | "body1" | "body2";
|
|
178
|
+
tooltipPlacement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
179
|
+
disabled: boolean;
|
|
180
|
+
color: "default" | "primary" | "secondary";
|
|
181
|
+
tooltipDisabled: boolean;
|
|
182
|
+
tooltipTriggers: import("../tooltip/common/Tooltip.types").TooltipTriggers[];
|
|
183
|
+
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
184
|
+
$slots: {
|
|
185
|
+
default?(_: {}): any;
|
|
186
|
+
tooltip?(_: {}): any;
|
|
187
|
+
};
|
|
188
|
+
}))[];
|
|
189
|
+
export { default as HelpText } from './HelpText.vue';
|
|
190
|
+
export { HelpTextTypes };
|
|
@@ -6,6 +6,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
6
6
|
height?: string;
|
|
7
7
|
width?: string;
|
|
8
8
|
platform?: string;
|
|
9
|
+
circled?: boolean;
|
|
9
10
|
}>, {
|
|
10
11
|
name: any;
|
|
11
12
|
size: any;
|
|
@@ -14,6 +15,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
14
15
|
height: any;
|
|
15
16
|
width: any;
|
|
16
17
|
platform: any;
|
|
18
|
+
circled: boolean;
|
|
17
19
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
18
20
|
type?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
19
21
|
name?: string;
|
|
@@ -22,6 +24,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
22
24
|
height?: string;
|
|
23
25
|
width?: string;
|
|
24
26
|
platform?: string;
|
|
27
|
+
circled?: boolean;
|
|
25
28
|
}>, {
|
|
26
29
|
name: any;
|
|
27
30
|
size: any;
|
|
@@ -30,6 +33,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
30
33
|
height: any;
|
|
31
34
|
width: any;
|
|
32
35
|
platform: any;
|
|
36
|
+
circled: boolean;
|
|
33
37
|
}>>>, {
|
|
34
38
|
name: string;
|
|
35
39
|
type: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
@@ -38,6 +42,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
38
42
|
height: string;
|
|
39
43
|
width: string;
|
|
40
44
|
platform: string;
|
|
45
|
+
circled: boolean;
|
|
41
46
|
}>, {
|
|
42
47
|
default?(_: {}): any;
|
|
43
48
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./IconV4.vue2.js";
|
|
2
2
|
/* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../IconV4.
|
|
4
|
-
const t = /* @__PURE__ */ _(o, [["__scopeId", "data-v-
|
|
3
|
+
// import "../../../IconV4.vue_vue_type_style_index_0_scoped_6683c5b5_lang.css"; //*');
|
|
4
|
+
const t = /* @__PURE__ */ _(o, [["__scopeId", "data-v-6683c5b5"]]);
|
|
5
5
|
export {
|
|
6
6
|
t as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "../../../IconV4.
|
|
2
|
-
import { useStorage as
|
|
3
|
-
import { ASSETS_BASE_URL as
|
|
4
|
-
const
|
|
1
|
+
import "../../../IconV4.vue_vue_type_style_index_0_scoped_6683c5b5_lang.css"; import { defineComponent as w, useCssVars as C, unref as l, useSlots as b, computed as o, watch as _, openBlock as u, createElementBlock as f, normalizeClass as p, createCommentVNode as z, renderSlot as B } from "vue";
|
|
2
|
+
import { useStorage as I } from "../../../composables/useStorage.js";
|
|
3
|
+
import { ASSETS_BASE_URL as T } from "./consts.js";
|
|
4
|
+
const U = ["innerHTML"], x = /* @__PURE__ */ w({
|
|
5
5
|
__name: "IconV4",
|
|
6
6
|
props: {
|
|
7
7
|
type: { default: "regular" },
|
|
@@ -10,62 +10,63 @@ const V = ["innerHTML"], B = /* @__PURE__ */ S({
|
|
|
10
10
|
size: { default: null },
|
|
11
11
|
height: { default: null },
|
|
12
12
|
width: { default: null },
|
|
13
|
-
platform: { default: null }
|
|
13
|
+
platform: { default: null },
|
|
14
|
+
circled: { type: Boolean, default: !1 }
|
|
14
15
|
},
|
|
15
16
|
setup(r) {
|
|
16
17
|
const e = r;
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
C((t) => ({
|
|
19
|
+
"9a94b0d2": l(m),
|
|
20
|
+
eb9f5d14: l(h),
|
|
21
|
+
"047031a6": r.color
|
|
21
22
|
}));
|
|
22
|
-
const a = window.sharedUIRequestCache = window.sharedUIRequestCache || {},
|
|
23
|
+
const a = window.sharedUIRequestCache = window.sharedUIRequestCache || {}, d = b(), m = o(() => e.size || e.width), h = o(() => e.size || e.height), y = o(
|
|
23
24
|
() => e.platform ? `${e.type}/${e.platform}` : e.type
|
|
24
|
-
),
|
|
25
|
+
), g = o(() => {
|
|
25
26
|
if (!e.name)
|
|
26
27
|
return "";
|
|
27
28
|
const t = e.name.split("/");
|
|
28
29
|
return [e.name ? `icon-name--${t.at(-1)}` : ""];
|
|
29
30
|
}), c = o(() => {
|
|
30
|
-
if (
|
|
31
|
+
if (d.default)
|
|
31
32
|
return "";
|
|
32
33
|
if (!e.name)
|
|
33
34
|
return console.error("Please provided icon name"), "";
|
|
34
35
|
const t = e.type === "regular" || e.type === "bold" || e.type === "fill" ? "ph/" : "v4/", n = e.type === "bold" || e.type === "fill" ? `-${e.type}` : "";
|
|
35
|
-
return `${
|
|
36
|
-
}),
|
|
37
|
-
function
|
|
36
|
+
return `${T}/icons/${t}${y.value}/${e.name}${n}.svg`;
|
|
37
|
+
}), s = I(`icon-${e.type}--${e.name}`);
|
|
38
|
+
function v(t) {
|
|
38
39
|
return a[t] || (a[t] = fetch(t).then((n) => n.text()).finally(() => {
|
|
39
40
|
delete a[t];
|
|
40
41
|
}).catch((n) => {
|
|
41
42
|
console.error(n);
|
|
42
43
|
})), a[t];
|
|
43
44
|
}
|
|
44
|
-
function
|
|
45
|
+
function $(t) {
|
|
45
46
|
return t.replace(
|
|
46
47
|
/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,
|
|
47
48
|
""
|
|
48
49
|
);
|
|
49
50
|
}
|
|
50
51
|
function i() {
|
|
51
|
-
|
|
52
|
-
typeof t == "string" && t.startsWith("<svg") && (
|
|
52
|
+
v(c.value).then((t) => {
|
|
53
|
+
typeof t == "string" && t.startsWith("<svg") && (s.value = t);
|
|
53
54
|
});
|
|
54
55
|
}
|
|
55
|
-
!
|
|
56
|
-
const
|
|
56
|
+
!s.value && c.value && i();
|
|
57
|
+
const S = o(() => $(s.value ?? ""));
|
|
57
58
|
return _(() => e.name, i), (t, n) => (u(), f("span", {
|
|
58
|
-
class:
|
|
59
|
+
class: p(["icon", l(g)])
|
|
59
60
|
}, [
|
|
60
61
|
t.$slots.default ? z("", !0) : (u(), f("span", {
|
|
61
62
|
key: 0,
|
|
62
|
-
class: "icon-wrapper",
|
|
63
|
-
innerHTML:
|
|
64
|
-
}, null,
|
|
65
|
-
|
|
63
|
+
class: p(["icon-wrapper", { "icon-wrapper--circled": r.circled }]),
|
|
64
|
+
innerHTML: l(S)
|
|
65
|
+
}, null, 10, U)),
|
|
66
|
+
B(t.$slots, "default", {}, void 0, !0)
|
|
66
67
|
], 2));
|
|
67
68
|
}
|
|
68
69
|
});
|
|
69
70
|
export {
|
|
70
|
-
|
|
71
|
+
x as default
|
|
71
72
|
};
|