@webitel/ui-sdk 26.8.75 → 26.8.77
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/dist/{clients-BmeOR90W.js → clients-B8-WDK4d.js} +66 -79
- package/dist/{components-C-ri6OSQ.js → components-fKLMXHe_.js} +11 -11
- package/dist/{enums-BvonmHq2.js → enums-B_9ZBu01.js} +2 -2
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +3 -3
- package/dist/ui-sdk.umd.cjs +610 -612
- package/dist/{useValidation-0JwQGpLM.js → useValidation-CEed9cxY.js} +1 -1
- package/dist/{utils-CzBdLnFt.js → utils-BZHq8qMH.js} +1 -1
- package/dist/wt-action-bar-D74sgDCk.js +94 -0
- package/dist/{wt-button-D-nFhi1f.js → wt-button-BwPz__rU.js} +2 -2
- package/dist/{wt-chat-emoji-CLhgb02d.js → wt-chat-emoji-DcVCe4jW.js} +4 -4
- package/dist/{wt-datepicker-DCa23hYx.js → wt-datepicker-BgjjbOMX.js} +2 -2
- package/dist/{wt-display-chip-items-B7QLz9QM.js → wt-display-chip-items-D-v25BUi.js} +2 -2
- package/dist/{wt-dual-panel-D-LChluY.js → wt-dual-panel-Cs_Yzfxt.js} +1 -1
- package/dist/{wt-expansion-card-CToBA1fy.js → wt-expansion-card-BT586Mul.js} +1 -1
- package/dist/{wt-expansion-panel-af2t3VrM.js → wt-expansion-panel-kZmHSvPU.js} +1 -1
- package/dist/{wt-icon-action-DYBTs3Mf.js → wt-icon-action-DJzm0kEk.js} +1 -1
- package/dist/{wt-icon-btn-BfhuUt8-.js → wt-icon-btn-BzraLc-w.js} +1 -1
- package/dist/{wt-icon-WyFAGc4t.js → wt-icon-iRDqWkjp.js} +19 -19
- package/dist/{wt-notifications-bar-CvKwuTEg.js → wt-notifications-bar-ZIMKBDqL.js} +2 -2
- package/dist/{wt-player-B2etfN5v.js → wt-player-CFrKSilF.js} +3 -3
- package/dist/{wt-screen-recordings-action-CepB2pqh.js → wt-screen-recordings-action-CVHZAWjl.js} +1 -1
- package/dist/{wt-search-bar-B4YkhgIB.js → wt-search-bar-DosqJLXT.js} +1 -1
- package/dist/{wt-send-message-popup-BhZ7K_Vs.js → wt-send-message-popup-BpgjqxvU.js} +2 -2
- package/dist/{wt-status-select-ELI7j73g.js → wt-status-select-Dnv9tj7o.js} +1 -1
- package/dist/{wt-timepicker-C3v9Cp2e.js → wt-timepicker-B4MOaSEZ.js} +2 -2
- package/dist/{wt-toast-DxQBRGm2.js → wt-toast-BcgNZFCD.js} +2 -2
- package/dist/{wt-tree-table-C5sxm-Eb.js → wt-tree-table-xXbBeLUc.js} +1 -1
- package/dist/{wt-type-extension-value-input-gQGgxMcJ.js → wt-type-extension-value-input-D86gV8RI.js} +3 -3
- package/dist/{wt-vidstack-player-B37Mdf0u.js → wt-vidstack-player-BzyyVEji.js} +4 -4
- package/package.json +1 -1
- package/src/assets/icons/sprite/call--filled.svg +1 -1
- package/src/assets/icons/sprite/call-add-to--filled.svg +2 -2
- package/src/assets/icons/sprite/call-add-to.svg +2 -3
- package/src/assets/icons/sprite/call-disconnect--filled.svg +2 -2
- package/src/assets/icons/sprite/call-disconnect.svg +2 -2
- package/src/assets/icons/sprite/call-end--filled.svg +2 -1
- package/src/assets/icons/sprite/call-end.svg +2 -2
- package/src/assets/icons/sprite/call-inbound--filled.svg +2 -3
- package/src/assets/icons/sprite/call-inbound.svg +2 -2
- package/src/assets/icons/sprite/call-missed--filled.svg +2 -2
- package/src/assets/icons/sprite/call-missed.svg +2 -2
- package/src/assets/icons/sprite/call-outbound--filled.svg +2 -2
- package/src/assets/icons/sprite/call-outbound.svg +2 -2
- package/src/assets/icons/sprite/call-ringing--filled.svg +3 -4
- package/src/assets/icons/sprite/call-ringing.svg +3 -2
- package/src/assets/icons/sprite/call-transfer--filled.svg +2 -2
- package/src/assets/icons/sprite/call-transfer.svg +2 -2
- package/src/assets/icons/sprite/call.svg +1 -2
- package/src/components/transitions/__tests__/ExpandTransition.spec.js +15 -0
- package/src/components/transitions/__tests__/WtReplaceTransition.spec.js +66 -0
- package/src/components/transitions/__tests__/WtTransition.spec.js +35 -0
- package/src/components/wt-action-bar/WtActionBarActionsOrder.js +1 -1
- package/src/components/wt-action-bar/__tests__/WtActionBar.spec.js +121 -0
- package/src/components/wt-action-bar/wt-action-bar.vue +57 -33
- package/src/components/wt-app-header/__tests__/WtAppNavigator.spec.js +65 -4
- package/src/components/wt-app-header/__tests__/WtHeaderActions.spec.js +81 -2
- package/src/components/wt-avatar/__tests__/WtAvatar.spec.js +111 -0
- package/src/components/wt-badge/__tests__/WtBadge.spec.js +80 -0
- package/src/components/wt-badge-new/__tests__/WtBadge.spec.js +61 -0
- package/src/components/wt-breadcrumb/__tests__/WtBreadcrumb.spec.js +117 -0
- package/src/components/wt-button-select/__tests__/WtButtonSelect.spec.js +37 -5
- package/src/components/wt-call-media-metric/__tests__/WtCallMediaMetric.spec.js +84 -0
- package/src/components/wt-card/__tests__/WtCard.spec.js +20 -0
- package/src/components/wt-checkbox/__tests__/WtCheckbox.spec.js +63 -0
- package/src/components/wt-chip/__tests__/WtChip.spec.js +32 -0
- package/src/components/wt-confirm-dialog/__tests__/WtConfirmDialog.spec.js +92 -0
- package/src/components/wt-context-menu/__tests__/WtContextMenu.spec.js +146 -1
- package/src/components/wt-copy-action/__tests__/WtCopyAction.spec.js +57 -0
- package/src/components/wt-datepicker/__tests__/WtDatepicker.spec.js +53 -0
- package/src/components/wt-datetime-text/__tests__/WtDatetimeText.spec.js +49 -0
- package/src/components/wt-divider/__tests__/WtDivider.spec.js +30 -0
- package/src/components/wt-dual-panel/__tests__/WtDualPanel.spec.js +120 -0
- package/src/components/wt-dummy/__tests__/WtDummy.spec.js +63 -1
- package/src/components/wt-empty/__tests__/WtEmpty.spec.js +84 -0
- package/src/components/wt-error-page/__tests__/WtErrorPage.spec.js +60 -0
- package/src/components/wt-expansion-card/__tests__/WtExpansionCard.spec.js +63 -0
- package/src/components/wt-expansion-panel/__tests__/WtExpansionPanel.spec.js +48 -9
- package/src/components/wt-filters-panel-wrapper/__tests__/WtFiltersPanelWrapper.spec.js +81 -10
- package/src/components/wt-hint/__tests__/WtHint.spec.js +44 -1
- package/src/components/wt-icon/__tests__/WtIcon.spec.js +29 -0
- package/src/components/wt-icon-action/__tests__/WtIconAction.spec.js +79 -0
- package/src/components/wt-icon-action/wt-icon-action.vue +1 -1
- package/src/components/wt-icon-btn/__tests__/WtIconBtn.spec.js +46 -0
- package/src/components/wt-image/__tests__/WtImage.spec.js +83 -0
- package/src/components/wt-indicator/__tests__/WtIndicator.spec.js +23 -0
- package/src/components/wt-input-number/__tests__/WtInputNumber.spec.js +77 -0
- package/src/components/wt-input-text/__tests__/WtInputText.spec.js +85 -0
- package/src/components/wt-intersection-observer/__tests__/WtIntersectionObserver.spec.js +24 -3
- package/src/components/wt-item-link/__tests__/WtItemLink.spec.js +93 -1
- package/src/components/wt-label/__tests__/WtLabel.spec.js +49 -1
- package/src/components/wt-load-bar/__tests__/WtLoadBar.spec.js +49 -0
- package/src/components/wt-loader/__tests__/WtLoader.spec.js +26 -1
- package/src/components/wt-logo/__tests__/WtLogo.spec.js +55 -0
- package/src/components/wt-menubar/__tests__/WtMenubar.spec.js +30 -0
- package/src/components/wt-message/__tests__/WtMessage.spec.js +46 -0
- package/src/components/wt-multi-select/__tests__/WtMultiSelect.spec.js +106 -0
- package/src/components/wt-page-header/__tests__/WtPageHeader.spec.js +111 -0
- package/src/components/wt-password/__tests__/WtPassword.spec.js +107 -0
- package/src/components/wt-popover/__tests__/WtPopover.spec.js +73 -0
- package/src/components/wt-progress-bar/__tests__/WtProgressBar.spec.js +34 -0
- package/src/components/wt-radio/__tests__/WtRadio.spec.js +45 -0
- package/src/components/wt-rounded-action/__tests__/WtRoundedAction.spec.js +48 -0
- package/src/components/wt-search-bar/__tests__/WtSearchBar.spec.js +74 -13
- package/src/components/wt-single-select/__tests__/WtSingleSelect.spec.js +117 -0
- package/src/components/wt-slider/__tests__/WtSlider.spec.js +100 -0
- package/src/components/wt-stepper/__tests__/WtStepper.spec.js +105 -0
- package/src/components/wt-switcher/__tests__/WtSwitcher.spec.js +47 -0
- package/src/components/wt-table/__tests__/WtTable.spec.js +237 -0
- package/src/components/wt-table-actions/__tests__/WtTableActions.spec.js +153 -1
- package/src/components/wt-table-column-select/__tests__/WtTableColumnSelect.spec.js +147 -0
- package/src/components/wt-tabs/__tests__/WtTabs.spec.js +55 -0
- package/src/components/wt-textarea/__tests__/WtTextarea.spec.js +49 -0
- package/src/components/wt-time-input/__tests__/WtTimeInput.spec.js +29 -0
- package/src/components/wt-tree/__tests__/WtTree.spec.js +126 -2
- package/src/components/wt-tree-line/__tests__/WtTreeLine.spec.js +205 -0
- package/src/components/wt-tree-table/__tests__/WtTreeTable.spec.js +155 -0
- package/src/components/wt-tree-table-row/__tests__/WtTreeTableRow.spec.js +176 -0
- package/src/components/wt-vidstack-player/__tests__/WtVidstackPlayer.spec.js +82 -0
- package/src/enums/IconAction/{IconAction.enum.js → IconAction.ts} +4 -2
- package/src/enums/index.ts +1 -1
- package/src/modules/ObjectPermissions/components/_internal/permissions-tab-content.vue +1 -1
- package/types/.tsbuildinfo +1 -1
- package/types/components/wt-action-bar/wt-action-bar.vue.d.ts +349 -105
- package/types/components/wt-datetime-text/__tests__/WtDatetimeText.spec.d.ts +1 -0
- package/types/components/wt-divider/__tests__/WtDivider.spec.d.ts +1 -0
- package/types/components/wt-dual-panel/__tests__/WtDualPanel.spec.d.ts +1 -0
- package/types/components/wt-empty/__tests__/WtEmpty.spec.d.ts +1 -0
- package/types/components/wt-error-page/__tests__/WtErrorPage.spec.d.ts +1 -0
- package/types/components/wt-expansion-card/__tests__/WtExpansionCard.spec.d.ts +1 -0
- package/types/components/wt-image/__tests__/WtImage.spec.d.ts +1 -0
- package/types/components/wt-input-number/__tests__/WtInputNumber.spec.d.ts +1 -0
- package/types/components/wt-input-text/__tests__/WtInputText.spec.d.ts +1 -0
- package/types/components/wt-logo/__tests__/WtLogo.spec.d.ts +1 -0
- package/types/components/wt-menubar/__tests__/WtMenubar.spec.d.ts +1 -0
- package/types/components/wt-message/__tests__/WtMessage.spec.d.ts +1 -0
- package/types/components/wt-multi-select/__tests__/WtMultiSelect.spec.d.ts +1 -0
- package/types/components/wt-page-header/__tests__/WtPageHeader.spec.d.ts +1 -0
- package/types/components/wt-password/__tests__/WtPassword.spec.d.ts +1 -0
- package/types/components/wt-popover/__tests__/WtPopover.spec.d.ts +1 -0
- package/types/components/wt-single-select/__tests__/WtSingleSelect.spec.d.ts +1 -0
- package/types/components/wt-slider/__tests__/WtSlider.spec.d.ts +1 -0
- package/types/components/wt-stepper/__tests__/WtStepper.spec.d.ts +1 -0
- package/types/components/wt-table/__tests__/WtTable.spec.d.ts +1 -0
- package/types/components/wt-tree-line/__tests__/WtTreeLine.spec.d.ts +1 -0
- package/types/components/wt-tree-table/__tests__/WtTreeTable.spec.d.ts +1 -0
- package/types/components/wt-tree-table-row/__tests__/WtTreeTableRow.spec.d.ts +1 -0
- package/types/components/wt-vidstack-player/__tests__/WtVidstackPlayer.spec.d.ts +1 -0
- package/types/enums/IconAction/IconAction.d.ts +31 -0
- package/types/enums/index.d.ts +1 -1
- package/dist/wt-action-bar-D4wDtBqb.js +0 -87
- package/src/components/wt-action-bar/__tests__/wt-action-bar.spec.js +0 -10
- package/src/components/wt-avatar/__tests__/wt-avatar.spec.js +0 -10
- package/src/components/wt-badge/__tests__/wt-badge.spec.js +0 -10
- package/src/components/wt-breadcrumb/__tests__/wt-breadcrumb.spec.js +0 -14
- package/src/components/wt-dual-panel/__tests__/WtDualPanel.js +0 -62
- package/src/components/wt-empty/__tests__/wt-empty.spec.js +0 -10
- package/src/components/wt-error-page/__tests__/wt-error-page.spec.js +0 -30
- package/src/components/wt-image/__tests__/wt-image.spec.js +0 -10
- package/src/components/wt-logo/__tests__/wt-logo.spec.js +0 -10
- package/src/components/wt-page-header/__tests__/wt-page-header.spec.js +0 -10
- package/src/components/wt-stepper/__tests__/WtStepper.spec.vue.js +0 -19
- package/types/enums/IconAction/IconAction.enum.d.ts +0 -30
- /package/types/components/{wt-action-bar/__tests__/wt-action-bar.spec.d.ts → transitions/__tests__/WtReplaceTransition.spec.d.ts} +0 -0
- /package/types/components/{wt-avatar/__tests__/wt-avatar.spec.d.ts → transitions/__tests__/WtTransition.spec.d.ts} +0 -0
- /package/types/components/{wt-badge/__tests__/wt-badge.spec.d.ts → wt-action-bar/__tests__/WtActionBar.spec.d.ts} +0 -0
- /package/types/components/{wt-breadcrumb/__tests__/wt-breadcrumb.spec.d.ts → wt-avatar/__tests__/WtAvatar.spec.d.ts} +0 -0
- /package/types/components/{wt-empty/__tests__/wt-empty.spec.d.ts → wt-badge/__tests__/WtBadge.spec.d.ts} +0 -0
- /package/types/components/{wt-dual-panel/__tests__/WtDualPanel.d.ts → wt-badge-new/__tests__/WtBadge.spec.d.ts} +0 -0
- /package/types/components/{wt-error-page/__tests__/wt-error-page.spec.d.ts → wt-breadcrumb/__tests__/WtBreadcrumb.spec.d.ts} +0 -0
- /package/types/components/{wt-image/__tests__/wt-image.spec.d.ts → wt-call-media-metric/__tests__/WtCallMediaMetric.spec.d.ts} +0 -0
- /package/types/components/{wt-logo/__tests__/wt-logo.spec.d.ts → wt-card/__tests__/WtCard.spec.d.ts} +0 -0
- /package/types/components/{wt-page-header/__tests__/wt-page-header.spec.d.ts → wt-confirm-dialog/__tests__/WtConfirmDialog.spec.d.ts} +0 -0
- /package/types/components/{wt-stepper/__tests__/WtStepper.spec.vue.d.ts → wt-copy-action/__tests__/WtCopyAction.spec.d.ts} +0 -0
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./caseConverters-6cy_SaV5.js";
|
|
2
|
-
import { t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
3
|
-
import { o as n } from "./enums-BvonmHq2.js";
|
|
4
|
-
import { t as r } from "./sortQueryAdapters-CyYXvnDN.js";
|
|
5
|
-
import { t as i } from "./wt-icon-action-DYBTs3Mf.js";
|
|
6
|
-
import { Fragment as a, computed as o, createElementBlock as s, createVNode as c, guardReactiveProps as l, mergeProps as u, normalizeProps as d, openBlock as f, renderList as p, renderSlot as m, unref as h } from "vue";
|
|
7
|
-
//#region src/components/wt-action-bar/WtActionBarActionsOrder.js
|
|
8
|
-
var g = [
|
|
9
|
-
n.ADD,
|
|
10
|
-
n.ADD_CONTACT,
|
|
11
|
-
n.COPY,
|
|
12
|
-
n.DOWNLOAD_PDF,
|
|
13
|
-
n.DOWNLOAD,
|
|
14
|
-
n.LOGOUT,
|
|
15
|
-
n.UPLOAD,
|
|
16
|
-
n.COLUMNS,
|
|
17
|
-
n.VARIABLES,
|
|
18
|
-
n.FILTERS,
|
|
19
|
-
n.REFRESH,
|
|
20
|
-
n.RESET_MEMBERS,
|
|
21
|
-
n.DELETE,
|
|
22
|
-
n.SORT
|
|
23
|
-
], _ = g, v = { class: "wt-action-bar" }, y = /*#__PURE__*/ t({
|
|
24
|
-
__name: "wt-action-bar",
|
|
25
|
-
props: {
|
|
26
|
-
mode: {
|
|
27
|
-
type: String,
|
|
28
|
-
default: "table",
|
|
29
|
-
validator: (e) => ["table", "section"].includes(e)
|
|
30
|
-
},
|
|
31
|
-
size: { type: String },
|
|
32
|
-
include: {
|
|
33
|
-
type: Array,
|
|
34
|
-
default: () => []
|
|
35
|
-
},
|
|
36
|
-
exclude: {
|
|
37
|
-
type: Array,
|
|
38
|
-
default: () => []
|
|
39
|
-
},
|
|
40
|
-
"sort:order": {
|
|
41
|
-
type: String,
|
|
42
|
-
default: null,
|
|
43
|
-
required: !1,
|
|
44
|
-
validator: (e) => Object.values(r).includes(e)
|
|
45
|
-
},
|
|
46
|
-
disabled: {
|
|
47
|
-
type: Boolean,
|
|
48
|
-
default: !1
|
|
49
|
-
},
|
|
50
|
-
...Object.values(n).reduce((e, t) => (e[`disabled:${t}`] = {
|
|
51
|
-
type: Boolean,
|
|
52
|
-
default: !1
|
|
53
|
-
}, e), {})
|
|
54
|
-
},
|
|
55
|
-
emits: [...Object.values(n).map((e) => `click:${e}`)],
|
|
56
|
-
setup(t, { emit: r }) {
|
|
57
|
-
let y = t, b = r, x = o(() => {
|
|
58
|
-
let e = y.mode === "section" ? _ : g;
|
|
59
|
-
return y.include.length ? e.filter((e) => y.include.includes(e)) : y.exclude.length ? e.filter((e) => !y.exclude.includes(e)) : e;
|
|
60
|
-
}), S = (e) => {
|
|
61
|
-
b(`click:${e}`);
|
|
62
|
-
}, C = (e) => {
|
|
63
|
-
switch (e) {
|
|
64
|
-
case n.SORT: return { "sort:order": y["sort:order"] };
|
|
65
|
-
default: return {};
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
return (n, r) => (f(), s("div", v, [
|
|
69
|
-
m(n.$slots, "search-bar", d(l({ size: t.size })), void 0, !0),
|
|
70
|
-
m(n.$slots, "default", d(l({ size: t.size })), void 0, !0),
|
|
71
|
-
(f(!0), s(a, null, p(x.value, (r) => m(n.$slots, r, d(l({
|
|
72
|
-
action: r,
|
|
73
|
-
size: t.size,
|
|
74
|
-
onClick: () => S(r)
|
|
75
|
-
})), () => [c(i, u(C(r), {
|
|
76
|
-
action: r,
|
|
77
|
-
disabled: y[`disabled:${h(e)(r)}`]
|
|
78
|
-
}, { onClick: (e) => S(r) }), null, 16, [
|
|
79
|
-
"action",
|
|
80
|
-
"disabled",
|
|
81
|
-
"onClick"
|
|
82
|
-
])], !0)), 256))
|
|
83
|
-
]));
|
|
84
|
-
}
|
|
85
|
-
}, [["__scopeId", "data-v-affcbbbe"]]);
|
|
86
|
-
//#endregion
|
|
87
|
-
export { y as default };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { shallowMount } from '@vue/test-utils';
|
|
2
|
-
|
|
3
|
-
import WtBreadcrumb from '../wt-breadcrumb.vue';
|
|
4
|
-
|
|
5
|
-
describe('WtBreadcrumb', () => {
|
|
6
|
-
it('renders a component', () => {
|
|
7
|
-
const wrapper = shallowMount(WtBreadcrumb, {
|
|
8
|
-
props: {
|
|
9
|
-
path: [],
|
|
10
|
-
},
|
|
11
|
-
});
|
|
12
|
-
expect(wrapper.isVisible()).toBe(true);
|
|
13
|
-
});
|
|
14
|
-
});
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { shallowMount } from '@vue/test-utils';
|
|
2
|
-
|
|
3
|
-
import WtDualPanel from '../wt-dual-panel.vue';
|
|
4
|
-
|
|
5
|
-
describe('WtDualPanel', () => {
|
|
6
|
-
it('renders a component', () => {
|
|
7
|
-
const wrapper = shallowMount(WtDualPanel);
|
|
8
|
-
expect(wrapper.classes('wt-dual-panel')).toBe(true);
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
it('renders dual panel header via header slot', () => {
|
|
12
|
-
const content = 'Dual Panel header';
|
|
13
|
-
const wrapper = shallowMount(WtDualPanel, {
|
|
14
|
-
slots: {
|
|
15
|
-
header: content,
|
|
16
|
-
},
|
|
17
|
-
});
|
|
18
|
-
expect(wrapper.find('.wt-dual-panel__header').text()).toBe(content);
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
it('renders dual panel actions panel via actions panel slot when actionsPanel prop is true', () => {
|
|
22
|
-
const content = 'Dual Panel actions panel content';
|
|
23
|
-
const wrapper = shallowMount(WtDualPanel, {
|
|
24
|
-
props: {
|
|
25
|
-
actionsPanel: true,
|
|
26
|
-
},
|
|
27
|
-
slots: {
|
|
28
|
-
'actions-panel': content,
|
|
29
|
-
},
|
|
30
|
-
});
|
|
31
|
-
expect(wrapper.find('.wt-dual-panel__actions-panel').text()).toBe(content);
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
it('does not render actions panel when actionsPanel prop is false', () => {
|
|
35
|
-
const wrapper = shallowMount(WtDualPanel, {
|
|
36
|
-
props: {
|
|
37
|
-
actionsPanel: false,
|
|
38
|
-
},
|
|
39
|
-
});
|
|
40
|
-
expect(wrapper.find('.wt-dual-panel__actions-panel').exists()).toBe(false);
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
it('renders dual panel side panel via side panel slot', () => {
|
|
44
|
-
const content = 'Dual Panel side panel';
|
|
45
|
-
const wrapper = shallowMount(WtDualPanel, {
|
|
46
|
-
slots: {
|
|
47
|
-
side: content,
|
|
48
|
-
},
|
|
49
|
-
});
|
|
50
|
-
expect(wrapper.find('.wt-dual-panel__side-panel').text()).toBe(content);
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
it('renders dual panel main panel via main panel slot', () => {
|
|
54
|
-
const content = 'Dual Panel main panel';
|
|
55
|
-
const wrapper = shallowMount(WtDualPanel, {
|
|
56
|
-
slots: {
|
|
57
|
-
main: content,
|
|
58
|
-
},
|
|
59
|
-
});
|
|
60
|
-
expect(wrapper.find('.wt-dual-panel__main-panel').text()).toBe(content);
|
|
61
|
-
});
|
|
62
|
-
});
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { shallowMount } from '@vue/test-utils';
|
|
2
|
-
|
|
3
|
-
import ErrorPage from '../wt-error-page.vue';
|
|
4
|
-
|
|
5
|
-
describe('Error Page', () => {
|
|
6
|
-
it('renders a component', () => {
|
|
7
|
-
const wrapper = shallowMount(ErrorPage, {
|
|
8
|
-
props: {
|
|
9
|
-
type: '',
|
|
10
|
-
},
|
|
11
|
-
});
|
|
12
|
-
expect(wrapper.exists()).toBe(true);
|
|
13
|
-
});
|
|
14
|
-
it('renders a component with 404 type', () => {
|
|
15
|
-
const wrapper = shallowMount(ErrorPage, {
|
|
16
|
-
props: {
|
|
17
|
-
type: '404',
|
|
18
|
-
},
|
|
19
|
-
});
|
|
20
|
-
expect(wrapper.exists()).toBe(true);
|
|
21
|
-
});
|
|
22
|
-
it('renders a component with 403 type', () => {
|
|
23
|
-
const wrapper = shallowMount(ErrorPage, {
|
|
24
|
-
props: {
|
|
25
|
-
type: '403',
|
|
26
|
-
},
|
|
27
|
-
});
|
|
28
|
-
expect(wrapper.exists()).toBe(true);
|
|
29
|
-
});
|
|
30
|
-
});
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { shallowMount } from '@vue/test-utils';
|
|
2
|
-
|
|
3
|
-
import WtPageHeader from '../wt-page-header.vue';
|
|
4
|
-
|
|
5
|
-
describe('WtPageHeader', () => {
|
|
6
|
-
it('renders a component', () => {
|
|
7
|
-
const wrapper = shallowMount(WtPageHeader);
|
|
8
|
-
expect(wrapper.isVisible()).toBe(true);
|
|
9
|
-
});
|
|
10
|
-
});
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { shallowMount } from '@vue/test-utils';
|
|
2
|
-
|
|
3
|
-
import WtStepper from '../wt-stepper.vue';
|
|
4
|
-
|
|
5
|
-
describe('WtStepper', () => {
|
|
6
|
-
it('renders a component', () => {
|
|
7
|
-
const wrapper = shallowMount(WtStepper, {
|
|
8
|
-
props: {
|
|
9
|
-
steps: [
|
|
10
|
-
{
|
|
11
|
-
name: 'step 1',
|
|
12
|
-
description: 'description',
|
|
13
|
-
},
|
|
14
|
-
],
|
|
15
|
-
},
|
|
16
|
-
});
|
|
17
|
-
expect(wrapper.isVisible()).toBe(true);
|
|
18
|
-
});
|
|
19
|
-
});
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export default IconAction;
|
|
2
|
-
declare const IconAction: Readonly<{
|
|
3
|
-
REFRESH: "refresh";
|
|
4
|
-
ADD: "add";
|
|
5
|
-
RESET_MEMBERS: "reset-members";
|
|
6
|
-
DELETE: "delete";
|
|
7
|
-
FILTERS: "filters";
|
|
8
|
-
UPLOAD: "upload";
|
|
9
|
-
DOWNLOAD: "download";
|
|
10
|
-
EXPORT: "export";
|
|
11
|
-
COPY: "copy";
|
|
12
|
-
COLUMNS: "columns";
|
|
13
|
-
HISTORY: "history";
|
|
14
|
-
EDIT: "edit";
|
|
15
|
-
COLLAPSE: "collapse";
|
|
16
|
-
EXPAND: "expand";
|
|
17
|
-
CLOSE: "close";
|
|
18
|
-
CANCEL: "cancel";
|
|
19
|
-
VARIABLES: "variables";
|
|
20
|
-
CLEAR: "clear";
|
|
21
|
-
ADD_FILTER: "add-filter";
|
|
22
|
-
SAVE: "save";
|
|
23
|
-
SAVE_PRESET: "save-preset";
|
|
24
|
-
APPLY_PRESET: "apply-preset";
|
|
25
|
-
ADD_CONTACT: "add-contact";
|
|
26
|
-
DOWNLOAD_PDF: "download-pdf";
|
|
27
|
-
CHAT: "chat";
|
|
28
|
-
SORT: "sort";
|
|
29
|
-
LOGOUT: "logout";
|
|
30
|
-
}>;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/types/components/{wt-logo/__tests__/wt-logo.spec.d.ts → wt-card/__tests__/WtCard.spec.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|