@dialpad/dialtone-vue 2.133.0 → 2.134.0
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/chunks/link_constants-AfTWrr-n.js +35 -0
- package/dist/chunks/link_constants-AfTWrr-n.js.map +1 -0
- package/dist/chunks/link_constants-x8NwdqmA.js +34 -0
- package/dist/chunks/link_constants-x8NwdqmA.js.map +1 -0
- package/dist/component-documentation.json +1 -1
- package/dist/dialtone-vue.cjs +8 -1
- package/dist/dialtone-vue.cjs.map +1 -1
- package/dist/dialtone-vue.js +8 -1
- package/dist/dialtone-vue.js.map +1 -1
- package/dist/lib/attachment-carousel.cjs +1 -1
- package/dist/lib/attachment-carousel.js +1 -1
- package/dist/lib/avatar.cjs.map +1 -1
- package/dist/lib/avatar.js.map +1 -1
- package/dist/lib/banner.cjs +1 -1
- package/dist/lib/banner.js +1 -1
- package/dist/lib/breadcrumbs.cjs +6 -3
- package/dist/lib/breadcrumbs.cjs.map +1 -1
- package/dist/lib/breadcrumbs.js +6 -3
- package/dist/lib/breadcrumbs.js.map +1 -1
- package/dist/lib/button.cjs +1 -1
- package/dist/lib/button.js +1 -1
- package/dist/lib/callbar-button-with-popover.cjs +1 -1
- package/dist/lib/callbar-button-with-popover.js +1 -1
- package/dist/lib/callbar-button.cjs +2 -2
- package/dist/lib/callbar-button.cjs.map +1 -1
- package/dist/lib/callbar-button.js +2 -2
- package/dist/lib/callbar-button.js.map +1 -1
- package/dist/lib/chip.cjs +1 -1
- package/dist/lib/chip.js +1 -1
- package/dist/lib/collapsible.cjs +1 -1
- package/dist/lib/collapsible.js +1 -1
- package/dist/lib/combobox-multi-select.cjs +1 -1
- package/dist/lib/combobox-multi-select.js +1 -1
- package/dist/lib/combobox-with-popover.cjs +1 -1
- package/dist/lib/combobox-with-popover.js +1 -1
- package/dist/lib/contact-centers-row.cjs +1 -1
- package/dist/lib/contact-centers-row.js +1 -1
- package/dist/lib/contact-row.cjs +1 -1
- package/dist/lib/contact-row.js +1 -1
- package/dist/lib/datepicker.cjs +1 -1
- package/dist/lib/datepicker.js +1 -1
- package/dist/lib/dropdown.cjs +1 -1
- package/dist/lib/dropdown.js +1 -1
- package/dist/lib/editor.cjs +2 -2
- package/dist/lib/editor.cjs.map +1 -1
- package/dist/lib/editor.js +2 -2
- package/dist/lib/editor.js.map +1 -1
- package/dist/lib/emoji-picker.cjs +1 -1
- package/dist/lib/emoji-picker.js +1 -1
- package/dist/lib/emoji-row.cjs +1 -1
- package/dist/lib/emoji-row.js +1 -1
- package/dist/lib/empty-state.cjs +142 -0
- package/dist/lib/empty-state.cjs.map +1 -0
- package/dist/lib/empty-state.js +142 -0
- package/dist/lib/empty-state.js.map +1 -0
- package/dist/lib/feed-pill.cjs +1 -1
- package/dist/lib/feed-pill.js +1 -1
- package/dist/lib/general-row.cjs +1 -1
- package/dist/lib/general-row.js +1 -1
- package/dist/lib/group-row.cjs +1 -1
- package/dist/lib/group-row.js +1 -1
- package/dist/lib/grouped-chip.cjs +1 -1
- package/dist/lib/grouped-chip.js +1 -1
- package/dist/lib/hovercard.cjs +1 -1
- package/dist/lib/hovercard.js +1 -1
- package/dist/lib/illustration.cjs +43 -0
- package/dist/lib/illustration.cjs.map +1 -0
- package/dist/lib/illustration.js +43 -0
- package/dist/lib/illustration.js.map +1 -0
- package/dist/lib/image-viewer.cjs +1 -1
- package/dist/lib/image-viewer.js +1 -1
- package/dist/lib/ivr-node.cjs +1 -1
- package/dist/lib/ivr-node.js +1 -1
- package/dist/lib/link.cjs +20 -6
- package/dist/lib/link.cjs.map +1 -1
- package/dist/lib/link.js +20 -6
- package/dist/lib/link.js.map +1 -1
- package/dist/lib/message-input.cjs +13 -6
- package/dist/lib/message-input.cjs.map +1 -1
- package/dist/lib/message-input.js +13 -6
- package/dist/lib/message-input.js.map +1 -1
- package/dist/lib/modal.cjs +1 -1
- package/dist/lib/modal.js +1 -1
- package/dist/lib/notice.cjs +1 -1
- package/dist/lib/notice.js +1 -1
- package/dist/lib/pagination.cjs +1 -1
- package/dist/lib/pagination.js +1 -1
- package/dist/lib/popover.cjs +1 -1
- package/dist/lib/popover.js +1 -1
- package/dist/lib/rich-text-editor.cjs +53 -20
- package/dist/lib/rich-text-editor.cjs.map +1 -1
- package/dist/lib/rich-text-editor.js +53 -20
- package/dist/lib/rich-text-editor.js.map +1 -1
- package/dist/lib/settings-menu-button.cjs +1 -1
- package/dist/lib/settings-menu-button.js +1 -1
- package/dist/lib/tabs.cjs +1 -1
- package/dist/lib/tabs.js +1 -1
- package/dist/lib/toast.cjs +1 -1
- package/dist/lib/toast.js +1 -1
- package/dist/lib/tooltip.cjs +1 -1
- package/dist/lib/tooltip.cjs.map +1 -1
- package/dist/lib/tooltip.js +1 -1
- package/dist/lib/tooltip.js.map +1 -1
- package/dist/style.css +15 -11
- package/dist/types/common/storybook_utils.d.ts +6 -0
- package/dist/types/common/storybook_utils.d.ts.map +1 -1
- package/dist/types/components/breadcrumbs/breadcrumb_item.vue.d.ts +2 -1
- package/dist/types/components/breadcrumbs/breadcrumb_item.vue.d.ts.map +1 -1
- package/dist/types/components/empty_state/empty_state.vue.d.ts +3 -0
- package/dist/types/components/empty_state/empty_state.vue.d.ts.map +1 -0
- package/dist/types/components/empty_state/empty_state_constants.d.ts +10 -0
- package/dist/types/components/empty_state/empty_state_constants.d.ts.map +1 -0
- package/dist/types/components/empty_state/index.d.ts +3 -0
- package/dist/types/components/empty_state/index.d.ts.map +1 -0
- package/dist/types/components/illustration/illustration.vue.d.ts +23 -0
- package/dist/types/components/illustration/illustration.vue.d.ts.map +1 -0
- package/dist/types/components/illustration/illustration_constants.d.ts +6 -0
- package/dist/types/components/illustration/illustration_constants.d.ts.map +1 -0
- package/dist/types/components/illustration/index.d.ts +3 -0
- package/dist/types/components/illustration/index.d.ts.map +1 -0
- package/dist/types/components/link/link.vue.d.ts +24 -4
- package/dist/types/components/link/link.vue.d.ts.map +1 -1
- package/dist/types/components/link/link_constants.d.ts +2 -2
- package/dist/types/components/link/link_constants.d.ts.map +1 -1
- package/dist/types/components/rich_text_editor/extensions/custom_link/autolink.d.ts.map +1 -0
- package/dist/types/components/rich_text_editor/extensions/custom_link/custom_link.d.ts +3 -0
- package/dist/types/components/rich_text_editor/extensions/custom_link/custom_link.d.ts.map +1 -0
- package/dist/types/components/rich_text_editor/extensions/custom_link/index.d.ts +3 -0
- package/dist/types/components/rich_text_editor/extensions/custom_link/index.d.ts.map +1 -0
- package/dist/types/components/rich_text_editor/extensions/custom_link/utils.d.ts.map +1 -0
- package/dist/types/components/rich_text_editor/rich_text_editor.vue.d.ts +52 -2
- package/dist/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
- package/dist/types/components/toggle/toggle.vue.d.ts +1 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/recipes/conversation_view/message_input/message_input.vue.d.ts +15 -0
- package/dist/types/recipes/conversation_view/message_input/message_input.vue.d.ts.map +1 -1
- package/package.json +4 -4
- package/dist/chunks/link_constants-Huj7D_hm.js +0 -22
- package/dist/chunks/link_constants-Huj7D_hm.js.map +0 -1
- package/dist/chunks/link_constants-nWVlXQBs.js +0 -23
- package/dist/chunks/link_constants-nWVlXQBs.js.map +0 -1
- package/dist/types/components/rich_text_editor/extensions/link/autolink.d.ts.map +0 -1
- package/dist/types/components/rich_text_editor/extensions/link/index.d.ts +0 -4
- package/dist/types/components/rich_text_editor/extensions/link/index.d.ts.map +0 -1
- package/dist/types/components/rich_text_editor/extensions/link/link.d.ts +0 -3
- package/dist/types/components/rich_text_editor/extensions/link/link.d.ts.map +0 -1
- package/dist/types/components/rich_text_editor/extensions/link/utils.d.ts.map +0 -1
- /package/dist/types/components/rich_text_editor/extensions/{link → custom_link}/autolink.d.ts +0 -0
- /package/dist/types/components/rich_text_editor/extensions/{link → custom_link}/utils.d.ts +0 -0
package/dist/lib/emoji-picker.js
CHANGED
|
@@ -6,7 +6,7 @@ import { emojisGrouped } from "@dialpad/dialtone-emojis";
|
|
|
6
6
|
import { DtTooltip } from "./tooltip.js";
|
|
7
7
|
import "./button.js";
|
|
8
8
|
import "vue";
|
|
9
|
-
import "../chunks/link_constants-
|
|
9
|
+
import "../chunks/link_constants-AfTWrr-n.js";
|
|
10
10
|
import "@dialpad/dialtone-icons/vue2";
|
|
11
11
|
import "../chunks/icon_constants-Dy4MEUJL.js";
|
|
12
12
|
import "@dialpad/dialtone-icons/icons.json";
|
package/dist/lib/emoji-row.cjs
CHANGED
|
@@ -10,7 +10,7 @@ require("tippy.js");
|
|
|
10
10
|
require("../common/utils.cjs");
|
|
11
11
|
require("../common/constants.cjs");
|
|
12
12
|
require("vue");
|
|
13
|
-
require("../chunks/link_constants-
|
|
13
|
+
require("../chunks/link_constants-x8NwdqmA.js");
|
|
14
14
|
require("../common/emoji.cjs");
|
|
15
15
|
require("emoji-regex");
|
|
16
16
|
require("emoji-toolkit/emoji_strategy.json");
|
package/dist/lib/emoji-row.js
CHANGED
|
@@ -8,7 +8,7 @@ import "tippy.js";
|
|
|
8
8
|
import "../common/utils.js";
|
|
9
9
|
import "../common/constants.js";
|
|
10
10
|
import "vue";
|
|
11
|
-
import "../chunks/link_constants-
|
|
11
|
+
import "../chunks/link_constants-AfTWrr-n.js";
|
|
12
12
|
import "../common/emoji.js";
|
|
13
13
|
import "emoji-regex";
|
|
14
14
|
import "emoji-toolkit/emoji_strategy.json";
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const _pluginVue2_normalizer = require("../chunks/_plugin-vue2_normalizer-1aBeR4AK.js");
|
|
4
|
+
const lib_illustration = require("./illustration.cjs");
|
|
5
|
+
const lib_icon = require("./icon.cjs");
|
|
6
|
+
const icon_constants = require("../chunks/icon_constants-QYpmdE0R.js");
|
|
7
|
+
require("@dialpad/dialtone-icons/vue2");
|
|
8
|
+
require("@dialpad/dialtone-icons/illustrations.json");
|
|
9
|
+
require("@dialpad/dialtone-icons/icons.json");
|
|
10
|
+
const EMPTY_STATE_SIZE_MODIFIERS = {
|
|
11
|
+
sm: "d-empty-state--size-sm",
|
|
12
|
+
md: "d-empty-state--size-md",
|
|
13
|
+
lg: "d-empty-state--size-lg"
|
|
14
|
+
};
|
|
15
|
+
const _sfc_main = {
|
|
16
|
+
name: "DtEmptyState",
|
|
17
|
+
components: {
|
|
18
|
+
DtIllustration: lib_illustration.DtIllustration,
|
|
19
|
+
DtIcon: lib_icon.DtIcon
|
|
20
|
+
},
|
|
21
|
+
props: {
|
|
22
|
+
/**
|
|
23
|
+
* The empty state size.
|
|
24
|
+
* @values 'sm', 'md', 'lg'
|
|
25
|
+
*/
|
|
26
|
+
size: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: "lg",
|
|
29
|
+
validator: (s) => Object.keys(EMPTY_STATE_SIZE_MODIFIERS).includes(s)
|
|
30
|
+
},
|
|
31
|
+
/**
|
|
32
|
+
* The illustration name in kebab-case
|
|
33
|
+
* This only displays when size is 'lg' or 'md'
|
|
34
|
+
* This has priority over icon.
|
|
35
|
+
* @type {String}
|
|
36
|
+
*/
|
|
37
|
+
illustrationName: {
|
|
38
|
+
type: String,
|
|
39
|
+
default: null,
|
|
40
|
+
validator: (name) => lib_illustration.ILLUSTRATION_NAMES.includes(name)
|
|
41
|
+
},
|
|
42
|
+
/**
|
|
43
|
+
* The icon name in kebab-case
|
|
44
|
+
* This will be shown in 'lg' and 'md' size only if illustrationName prop is not provided and
|
|
45
|
+
* Will always be shown in 'sm' size.
|
|
46
|
+
* @type {String}
|
|
47
|
+
*/
|
|
48
|
+
iconName: {
|
|
49
|
+
type: String,
|
|
50
|
+
default: null,
|
|
51
|
+
validator: (name) => icon_constants.ICON_NAMES.includes(name)
|
|
52
|
+
},
|
|
53
|
+
/**
|
|
54
|
+
* Header text
|
|
55
|
+
* @type {String}
|
|
56
|
+
*/
|
|
57
|
+
headerText: {
|
|
58
|
+
type: String,
|
|
59
|
+
required: true
|
|
60
|
+
},
|
|
61
|
+
/**
|
|
62
|
+
* Body text
|
|
63
|
+
* @type {String}
|
|
64
|
+
*/
|
|
65
|
+
bodyText: {
|
|
66
|
+
type: String,
|
|
67
|
+
default: null
|
|
68
|
+
},
|
|
69
|
+
/**
|
|
70
|
+
* Whether to show the illustration
|
|
71
|
+
* @type {Boolean}
|
|
72
|
+
*/
|
|
73
|
+
showIllustration: {
|
|
74
|
+
type: Boolean,
|
|
75
|
+
default: true
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
computed: {
|
|
79
|
+
/**
|
|
80
|
+
* Illustration will always be shown in lg and md size
|
|
81
|
+
* Illustration will not be shown in sm size
|
|
82
|
+
*/
|
|
83
|
+
showIllustrationComponent() {
|
|
84
|
+
return this.illustrationName && this.notSmSize;
|
|
85
|
+
},
|
|
86
|
+
/**
|
|
87
|
+
* Icon will be shown in lg and md size only if illustration is not provided
|
|
88
|
+
* Icon will always be shown in sm size
|
|
89
|
+
*/
|
|
90
|
+
showIcon() {
|
|
91
|
+
if (!this.iconName) {
|
|
92
|
+
return false;
|
|
93
|
+
}
|
|
94
|
+
return !(this.illustrationName && this.notSmSize);
|
|
95
|
+
},
|
|
96
|
+
notSmSize() {
|
|
97
|
+
return this.size !== "sm";
|
|
98
|
+
},
|
|
99
|
+
sizeClass() {
|
|
100
|
+
return EMPTY_STATE_SIZE_MODIFIERS[this.size];
|
|
101
|
+
},
|
|
102
|
+
emptyStateClasses() {
|
|
103
|
+
return ["d-empty-state", this.sizeClass];
|
|
104
|
+
},
|
|
105
|
+
emptyStateContentSpacing() {
|
|
106
|
+
switch (this.size) {
|
|
107
|
+
case "sm":
|
|
108
|
+
return "d-p16";
|
|
109
|
+
case "md":
|
|
110
|
+
return "d-p32";
|
|
111
|
+
case "lg":
|
|
112
|
+
return "d-p32";
|
|
113
|
+
default:
|
|
114
|
+
return "d-p32";
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
mounted() {
|
|
119
|
+
if (!this.bodyText && !this.$slots.body) {
|
|
120
|
+
console.warn("Dialtone Empty State component: You should provide either bodyText or content on body slot.");
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
var _sfc_render = function render() {
|
|
125
|
+
var _vm = this, _c = _vm._self._c;
|
|
126
|
+
return _c("div", { class: _vm.emptyStateClasses }, [_vm.showIllustration ? [_vm.showIcon ? _c("dt-icon", { attrs: { "name": _vm.iconName, "size": "800" } }) : _vm._e(), _vm.showIllustrationComponent ? _c("dt-illustration", { attrs: { "name": _vm.illustrationName } }) : _vm._e()] : _vm._e(), _c("div", { class: _vm.emptyStateContentSpacing }, [_c("h1", [_vm._v(" " + _vm._s(_vm.headerText) + " ")]), _vm.bodyText ? _c("p", [_vm._v(" " + _vm._s(_vm.bodyText) + " ")]) : _vm._e()]), _vm._t("body")], 2);
|
|
127
|
+
};
|
|
128
|
+
var _sfc_staticRenderFns = [];
|
|
129
|
+
var __component__ = /* @__PURE__ */ _pluginVue2_normalizer.normalizeComponent(
|
|
130
|
+
_sfc_main,
|
|
131
|
+
_sfc_render,
|
|
132
|
+
_sfc_staticRenderFns,
|
|
133
|
+
false,
|
|
134
|
+
null,
|
|
135
|
+
null,
|
|
136
|
+
null,
|
|
137
|
+
null
|
|
138
|
+
);
|
|
139
|
+
const empty_state = __component__.exports;
|
|
140
|
+
exports.DtEmptyState = empty_state;
|
|
141
|
+
exports.EMPTY_STATE_SIZE_MODIFIERS = EMPTY_STATE_SIZE_MODIFIERS;
|
|
142
|
+
//# sourceMappingURL=empty-state.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"empty-state.cjs","sources":["../../components/empty_state/empty_state_constants.js","../../components/empty_state/empty_state.vue"],"sourcesContent":["export const EMPTY_STATE_SIZE_MODIFIERS = {\n sm: 'd-empty-state--size-sm',\n md: 'd-empty-state--size-md',\n lg: 'd-empty-state--size-lg',\n};\n\nexport default {\n EMPTY_STATE_SIZE_MODIFIERS,\n};\n","<template>\n <div :class=\"emptyStateClasses\">\n <template v-if=\"showIllustration\">\n <dt-icon\n v-if=\"showIcon\"\n :name=\"iconName\"\n size=\"800\"\n />\n\n <dt-illustration\n v-if=\"showIllustrationComponent\"\n :name=\"illustrationName\"\n />\n </template>\n\n <div :class=\"emptyStateContentSpacing\">\n <h1>\n {{ headerText }}\n </h1>\n\n <p v-if=\"bodyText\">\n {{ bodyText }}\n </p>\n </div>\n\n <slot name=\"body\" />\n </div>\n</template>\n\n<script>\nimport { EMPTY_STATE_SIZE_MODIFIERS } from './empty_state_constants.js';\nimport { DtIllustration, ILLUSTRATION_NAMES } from '@/components/illustration';\nimport { DtIcon, ICON_NAMES } from '@/components/icon';\n\nexport default {\n name: 'DtEmptyState',\n\n components: {\n DtIllustration,\n DtIcon,\n },\n\n props: {\n /**\n * The empty state size.\n * @values 'sm', 'md', 'lg'\n */\n size: {\n type: String,\n default: 'lg',\n validator: (s) => Object.keys(EMPTY_STATE_SIZE_MODIFIERS).includes(s),\n },\n\n /**\n * The illustration name in kebab-case\n * This only displays when size is 'lg' or 'md'\n * This has priority over icon.\n * @type {String}\n */\n illustrationName: {\n type: String,\n default: null,\n validator: (name) => ILLUSTRATION_NAMES.includes(name),\n },\n\n /**\n * The icon name in kebab-case\n * This will be shown in 'lg' and 'md' size only if illustrationName prop is not provided and\n * Will always be shown in 'sm' size.\n * @type {String}\n */\n iconName: {\n type: String,\n default: null,\n validator: (name) => ICON_NAMES.includes(name),\n },\n\n /**\n * Header text\n * @type {String}\n */\n headerText: {\n type: String,\n required: true,\n },\n\n /**\n * Body text\n * @type {String}\n */\n bodyText: {\n type: String,\n default: null,\n },\n\n /**\n * Whether to show the illustration\n * @type {Boolean}\n */\n showIllustration: {\n type: Boolean,\n default: true,\n },\n },\n\n computed: {\n /**\n * Illustration will always be shown in lg and md size\n * Illustration will not be shown in sm size\n */\n showIllustrationComponent () {\n return this.illustrationName && this.notSmSize;\n },\n\n /**\n * Icon will be shown in lg and md size only if illustration is not provided\n * Icon will always be shown in sm size\n */\n showIcon () {\n if (!this.iconName) {\n return false;\n }\n\n return !(this.illustrationName && this.notSmSize);\n },\n\n notSmSize () {\n return this.size !== 'sm';\n },\n\n sizeClass () {\n return EMPTY_STATE_SIZE_MODIFIERS[this.size];\n },\n\n emptyStateClasses () {\n return ['d-empty-state', this.sizeClass];\n },\n\n emptyStateContentSpacing () {\n switch (this.size) {\n case 'sm':\n return 'd-p16';\n case 'md':\n return 'd-p32';\n case 'lg':\n return 'd-p32';\n default:\n return 'd-p32';\n }\n },\n },\n\n mounted () {\n if (!this.bodyText && !this.$slots.body) {\n console.warn('Dialtone Empty State component: You should provide either bodyText or content on body slot.');\n }\n },\n};\n</script>\n"],"names":["DtIllustration","DtIcon","ILLUSTRATION_NAMES","ICON_NAMES"],"mappings":";;;;;;;;;AAAY,MAAC,6BAA6B;AAAA,EACxC,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;AC8BA,MAAA,YAAA;AAAA,EACA,MAAA;AAAA,EAEA,YAAA;AAAA,IACA,gBAAAA,iBAAA;AAAA,IACA,QAAAC,SAAA;AAAA,EACA;AAAA,EAEA,OAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAKA,MAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,MACA,WAAA,CAAA,MAAA,OAAA,KAAA,0BAAA,EAAA,SAAA,CAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAQA,kBAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,MACA,WAAA,CAAA,SAAAC,oCAAA,SAAA,IAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAQA,UAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,MACA,WAAA,CAAA,SAAAC,0BAAA,SAAA,IAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA,YAAA;AAAA,MACA,MAAA;AAAA,MACA,UAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA,UAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA,kBAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA,EACA;AAAA,EAEA,UAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAKA,4BAAA;AACA,aAAA,KAAA,oBAAA,KAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA,WAAA;AACA,UAAA,CAAA,KAAA,UAAA;AACA,eAAA;AAAA,MACA;AAEA,aAAA,EAAA,KAAA,oBAAA,KAAA;AAAA,IACA;AAAA,IAEA,YAAA;AACA,aAAA,KAAA,SAAA;AAAA,IACA;AAAA,IAEA,YAAA;AACA,aAAA,2BAAA,KAAA,IAAA;AAAA,IACA;AAAA,IAEA,oBAAA;AACA,aAAA,CAAA,iBAAA,KAAA,SAAA;AAAA,IACA;AAAA,IAEA,2BAAA;AACA,cAAA,KAAA,MAAA;AAAA,QACA,KAAA;AACA,iBAAA;AAAA,QACA,KAAA;AACA,iBAAA;AAAA,QACA,KAAA;AACA,iBAAA;AAAA,QACA;AACA,iBAAA;AAAA,MACA;AAAA,IACA;AAAA,EACA;AAAA,EAEA,UAAA;AACA,QAAA,CAAA,KAAA,YAAA,CAAA,KAAA,OAAA,MAAA;AACA,cAAA,KAAA,6FAAA;AAAA,IACA;AAAA,EACA;AACA;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { normalizeComponent } from "../chunks/_plugin-vue2_normalizer-sOSkiPF3.js";
|
|
2
|
+
import { DtIllustration, ILLUSTRATION_NAMES } from "./illustration.js";
|
|
3
|
+
import { DtIcon } from "./icon.js";
|
|
4
|
+
import { ICON_NAMES } from "../chunks/icon_constants-Dy4MEUJL.js";
|
|
5
|
+
import "@dialpad/dialtone-icons/vue2";
|
|
6
|
+
import "@dialpad/dialtone-icons/illustrations.json";
|
|
7
|
+
import "@dialpad/dialtone-icons/icons.json";
|
|
8
|
+
const EMPTY_STATE_SIZE_MODIFIERS = {
|
|
9
|
+
sm: "d-empty-state--size-sm",
|
|
10
|
+
md: "d-empty-state--size-md",
|
|
11
|
+
lg: "d-empty-state--size-lg"
|
|
12
|
+
};
|
|
13
|
+
const _sfc_main = {
|
|
14
|
+
name: "DtEmptyState",
|
|
15
|
+
components: {
|
|
16
|
+
DtIllustration,
|
|
17
|
+
DtIcon
|
|
18
|
+
},
|
|
19
|
+
props: {
|
|
20
|
+
/**
|
|
21
|
+
* The empty state size.
|
|
22
|
+
* @values 'sm', 'md', 'lg'
|
|
23
|
+
*/
|
|
24
|
+
size: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: "lg",
|
|
27
|
+
validator: (s) => Object.keys(EMPTY_STATE_SIZE_MODIFIERS).includes(s)
|
|
28
|
+
},
|
|
29
|
+
/**
|
|
30
|
+
* The illustration name in kebab-case
|
|
31
|
+
* This only displays when size is 'lg' or 'md'
|
|
32
|
+
* This has priority over icon.
|
|
33
|
+
* @type {String}
|
|
34
|
+
*/
|
|
35
|
+
illustrationName: {
|
|
36
|
+
type: String,
|
|
37
|
+
default: null,
|
|
38
|
+
validator: (name) => ILLUSTRATION_NAMES.includes(name)
|
|
39
|
+
},
|
|
40
|
+
/**
|
|
41
|
+
* The icon name in kebab-case
|
|
42
|
+
* This will be shown in 'lg' and 'md' size only if illustrationName prop is not provided and
|
|
43
|
+
* Will always be shown in 'sm' size.
|
|
44
|
+
* @type {String}
|
|
45
|
+
*/
|
|
46
|
+
iconName: {
|
|
47
|
+
type: String,
|
|
48
|
+
default: null,
|
|
49
|
+
validator: (name) => ICON_NAMES.includes(name)
|
|
50
|
+
},
|
|
51
|
+
/**
|
|
52
|
+
* Header text
|
|
53
|
+
* @type {String}
|
|
54
|
+
*/
|
|
55
|
+
headerText: {
|
|
56
|
+
type: String,
|
|
57
|
+
required: true
|
|
58
|
+
},
|
|
59
|
+
/**
|
|
60
|
+
* Body text
|
|
61
|
+
* @type {String}
|
|
62
|
+
*/
|
|
63
|
+
bodyText: {
|
|
64
|
+
type: String,
|
|
65
|
+
default: null
|
|
66
|
+
},
|
|
67
|
+
/**
|
|
68
|
+
* Whether to show the illustration
|
|
69
|
+
* @type {Boolean}
|
|
70
|
+
*/
|
|
71
|
+
showIllustration: {
|
|
72
|
+
type: Boolean,
|
|
73
|
+
default: true
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
computed: {
|
|
77
|
+
/**
|
|
78
|
+
* Illustration will always be shown in lg and md size
|
|
79
|
+
* Illustration will not be shown in sm size
|
|
80
|
+
*/
|
|
81
|
+
showIllustrationComponent() {
|
|
82
|
+
return this.illustrationName && this.notSmSize;
|
|
83
|
+
},
|
|
84
|
+
/**
|
|
85
|
+
* Icon will be shown in lg and md size only if illustration is not provided
|
|
86
|
+
* Icon will always be shown in sm size
|
|
87
|
+
*/
|
|
88
|
+
showIcon() {
|
|
89
|
+
if (!this.iconName) {
|
|
90
|
+
return false;
|
|
91
|
+
}
|
|
92
|
+
return !(this.illustrationName && this.notSmSize);
|
|
93
|
+
},
|
|
94
|
+
notSmSize() {
|
|
95
|
+
return this.size !== "sm";
|
|
96
|
+
},
|
|
97
|
+
sizeClass() {
|
|
98
|
+
return EMPTY_STATE_SIZE_MODIFIERS[this.size];
|
|
99
|
+
},
|
|
100
|
+
emptyStateClasses() {
|
|
101
|
+
return ["d-empty-state", this.sizeClass];
|
|
102
|
+
},
|
|
103
|
+
emptyStateContentSpacing() {
|
|
104
|
+
switch (this.size) {
|
|
105
|
+
case "sm":
|
|
106
|
+
return "d-p16";
|
|
107
|
+
case "md":
|
|
108
|
+
return "d-p32";
|
|
109
|
+
case "lg":
|
|
110
|
+
return "d-p32";
|
|
111
|
+
default:
|
|
112
|
+
return "d-p32";
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
mounted() {
|
|
117
|
+
if (!this.bodyText && !this.$slots.body) {
|
|
118
|
+
console.warn("Dialtone Empty State component: You should provide either bodyText or content on body slot.");
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
var _sfc_render = function render() {
|
|
123
|
+
var _vm = this, _c = _vm._self._c;
|
|
124
|
+
return _c("div", { class: _vm.emptyStateClasses }, [_vm.showIllustration ? [_vm.showIcon ? _c("dt-icon", { attrs: { "name": _vm.iconName, "size": "800" } }) : _vm._e(), _vm.showIllustrationComponent ? _c("dt-illustration", { attrs: { "name": _vm.illustrationName } }) : _vm._e()] : _vm._e(), _c("div", { class: _vm.emptyStateContentSpacing }, [_c("h1", [_vm._v(" " + _vm._s(_vm.headerText) + " ")]), _vm.bodyText ? _c("p", [_vm._v(" " + _vm._s(_vm.bodyText) + " ")]) : _vm._e()]), _vm._t("body")], 2);
|
|
125
|
+
};
|
|
126
|
+
var _sfc_staticRenderFns = [];
|
|
127
|
+
var __component__ = /* @__PURE__ */ normalizeComponent(
|
|
128
|
+
_sfc_main,
|
|
129
|
+
_sfc_render,
|
|
130
|
+
_sfc_staticRenderFns,
|
|
131
|
+
false,
|
|
132
|
+
null,
|
|
133
|
+
null,
|
|
134
|
+
null,
|
|
135
|
+
null
|
|
136
|
+
);
|
|
137
|
+
const empty_state = __component__.exports;
|
|
138
|
+
export {
|
|
139
|
+
empty_state as DtEmptyState,
|
|
140
|
+
EMPTY_STATE_SIZE_MODIFIERS
|
|
141
|
+
};
|
|
142
|
+
//# sourceMappingURL=empty-state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"empty-state.js","sources":["../../components/empty_state/empty_state_constants.js","../../components/empty_state/empty_state.vue"],"sourcesContent":["export const EMPTY_STATE_SIZE_MODIFIERS = {\n sm: 'd-empty-state--size-sm',\n md: 'd-empty-state--size-md',\n lg: 'd-empty-state--size-lg',\n};\n\nexport default {\n EMPTY_STATE_SIZE_MODIFIERS,\n};\n","<template>\n <div :class=\"emptyStateClasses\">\n <template v-if=\"showIllustration\">\n <dt-icon\n v-if=\"showIcon\"\n :name=\"iconName\"\n size=\"800\"\n />\n\n <dt-illustration\n v-if=\"showIllustrationComponent\"\n :name=\"illustrationName\"\n />\n </template>\n\n <div :class=\"emptyStateContentSpacing\">\n <h1>\n {{ headerText }}\n </h1>\n\n <p v-if=\"bodyText\">\n {{ bodyText }}\n </p>\n </div>\n\n <slot name=\"body\" />\n </div>\n</template>\n\n<script>\nimport { EMPTY_STATE_SIZE_MODIFIERS } from './empty_state_constants.js';\nimport { DtIllustration, ILLUSTRATION_NAMES } from '@/components/illustration';\nimport { DtIcon, ICON_NAMES } from '@/components/icon';\n\nexport default {\n name: 'DtEmptyState',\n\n components: {\n DtIllustration,\n DtIcon,\n },\n\n props: {\n /**\n * The empty state size.\n * @values 'sm', 'md', 'lg'\n */\n size: {\n type: String,\n default: 'lg',\n validator: (s) => Object.keys(EMPTY_STATE_SIZE_MODIFIERS).includes(s),\n },\n\n /**\n * The illustration name in kebab-case\n * This only displays when size is 'lg' or 'md'\n * This has priority over icon.\n * @type {String}\n */\n illustrationName: {\n type: String,\n default: null,\n validator: (name) => ILLUSTRATION_NAMES.includes(name),\n },\n\n /**\n * The icon name in kebab-case\n * This will be shown in 'lg' and 'md' size only if illustrationName prop is not provided and\n * Will always be shown in 'sm' size.\n * @type {String}\n */\n iconName: {\n type: String,\n default: null,\n validator: (name) => ICON_NAMES.includes(name),\n },\n\n /**\n * Header text\n * @type {String}\n */\n headerText: {\n type: String,\n required: true,\n },\n\n /**\n * Body text\n * @type {String}\n */\n bodyText: {\n type: String,\n default: null,\n },\n\n /**\n * Whether to show the illustration\n * @type {Boolean}\n */\n showIllustration: {\n type: Boolean,\n default: true,\n },\n },\n\n computed: {\n /**\n * Illustration will always be shown in lg and md size\n * Illustration will not be shown in sm size\n */\n showIllustrationComponent () {\n return this.illustrationName && this.notSmSize;\n },\n\n /**\n * Icon will be shown in lg and md size only if illustration is not provided\n * Icon will always be shown in sm size\n */\n showIcon () {\n if (!this.iconName) {\n return false;\n }\n\n return !(this.illustrationName && this.notSmSize);\n },\n\n notSmSize () {\n return this.size !== 'sm';\n },\n\n sizeClass () {\n return EMPTY_STATE_SIZE_MODIFIERS[this.size];\n },\n\n emptyStateClasses () {\n return ['d-empty-state', this.sizeClass];\n },\n\n emptyStateContentSpacing () {\n switch (this.size) {\n case 'sm':\n return 'd-p16';\n case 'md':\n return 'd-p32';\n case 'lg':\n return 'd-p32';\n default:\n return 'd-p32';\n }\n },\n },\n\n mounted () {\n if (!this.bodyText && !this.$slots.body) {\n console.warn('Dialtone Empty State component: You should provide either bodyText or content on body slot.');\n }\n },\n};\n</script>\n"],"names":[],"mappings":";;;;;;;AAAY,MAAC,6BAA6B;AAAA,EACxC,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;AC8BA,MAAA,YAAA;AAAA,EACA,MAAA;AAAA,EAEA,YAAA;AAAA,IACA;AAAA,IACA;AAAA,EACA;AAAA,EAEA,OAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAKA,MAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,MACA,WAAA,CAAA,MAAA,OAAA,KAAA,0BAAA,EAAA,SAAA,CAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAQA,kBAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,MACA,WAAA,CAAA,SAAA,mBAAA,SAAA,IAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAQA,UAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,MACA,WAAA,CAAA,SAAA,WAAA,SAAA,IAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA,YAAA;AAAA,MACA,MAAA;AAAA,MACA,UAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA,UAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA,kBAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA,EACA;AAAA,EAEA,UAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAKA,4BAAA;AACA,aAAA,KAAA,oBAAA,KAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA,WAAA;AACA,UAAA,CAAA,KAAA,UAAA;AACA,eAAA;AAAA,MACA;AAEA,aAAA,EAAA,KAAA,oBAAA,KAAA;AAAA,IACA;AAAA,IAEA,YAAA;AACA,aAAA,KAAA,SAAA;AAAA,IACA;AAAA,IAEA,YAAA;AACA,aAAA,2BAAA,KAAA,IAAA;AAAA,IACA;AAAA,IAEA,oBAAA;AACA,aAAA,CAAA,iBAAA,KAAA,SAAA;AAAA,IACA;AAAA,IAEA,2BAAA;AACA,cAAA,KAAA,MAAA;AAAA,QACA,KAAA;AACA,iBAAA;AAAA,QACA,KAAA;AACA,iBAAA;AAAA,QACA,KAAA;AACA,iBAAA;AAAA,QACA;AACA,iBAAA;AAAA,MACA;AAAA,IACA;AAAA,EACA;AAAA,EAEA,UAAA;AACA,QAAA,CAAA,KAAA,YAAA,CAAA,KAAA,OAAA,MAAA;AACA,cAAA,KAAA,6FAAA;AAAA,IACA;AAAA,EACA;AACA;;;;;;;;;;;;;;;;;"}
|
package/dist/lib/feed-pill.cjs
CHANGED
|
@@ -11,7 +11,7 @@ require("../common/utils.cjs");
|
|
|
11
11
|
require("../common/constants.cjs");
|
|
12
12
|
require("vue");
|
|
13
13
|
require("./button.cjs");
|
|
14
|
-
require("../chunks/link_constants-
|
|
14
|
+
require("../chunks/link_constants-x8NwdqmA.js");
|
|
15
15
|
require("./lazy-show.cjs");
|
|
16
16
|
const FEED_ITEM_PILL_BORDER_COLORS = {
|
|
17
17
|
default: "dt-recipe-feed-item-pill__border-default",
|
package/dist/lib/feed-pill.js
CHANGED
|
@@ -9,7 +9,7 @@ import "../common/utils.js";
|
|
|
9
9
|
import "../common/constants.js";
|
|
10
10
|
import "vue";
|
|
11
11
|
import "./button.js";
|
|
12
|
-
import "../chunks/link_constants-
|
|
12
|
+
import "../chunks/link_constants-AfTWrr-n.js";
|
|
13
13
|
import "./lazy-show.js";
|
|
14
14
|
const FEED_ITEM_PILL_BORDER_COLORS = {
|
|
15
15
|
default: "dt-recipe-feed-item-pill__border-default",
|
package/dist/lib/general-row.cjs
CHANGED
|
@@ -17,7 +17,7 @@ require("./skeleton.cjs");
|
|
|
17
17
|
require("@dialpad/dialtone-icons/vue2");
|
|
18
18
|
require("../common/constants.cjs");
|
|
19
19
|
require("vue");
|
|
20
|
-
require("../chunks/link_constants-
|
|
20
|
+
require("../chunks/link_constants-x8NwdqmA.js");
|
|
21
21
|
require("../chunks/popover_constants-qUYTzsS3.js");
|
|
22
22
|
require("tippy.js");
|
|
23
23
|
const LEFTBAR_GENERAL_ROW_TYPES = {
|
package/dist/lib/general-row.js
CHANGED
|
@@ -15,7 +15,7 @@ import "./skeleton.js";
|
|
|
15
15
|
import "@dialpad/dialtone-icons/vue2";
|
|
16
16
|
import "../common/constants.js";
|
|
17
17
|
import "vue";
|
|
18
|
-
import "../chunks/link_constants-
|
|
18
|
+
import "../chunks/link_constants-AfTWrr-n.js";
|
|
19
19
|
import "../chunks/popover_constants-kQaX7G4a.js";
|
|
20
20
|
import "tippy.js";
|
|
21
21
|
const LEFTBAR_GENERAL_ROW_TYPES = {
|
package/dist/lib/group-row.cjs
CHANGED
|
@@ -17,7 +17,7 @@ require("./emoji.cjs");
|
|
|
17
17
|
require("./skeleton.cjs");
|
|
18
18
|
require("./badge.cjs");
|
|
19
19
|
require("./button.cjs");
|
|
20
|
-
require("../chunks/link_constants-
|
|
20
|
+
require("../chunks/link_constants-x8NwdqmA.js");
|
|
21
21
|
require("./tooltip.cjs");
|
|
22
22
|
require("../chunks/popover_constants-qUYTzsS3.js");
|
|
23
23
|
require("tippy.js");
|
package/dist/lib/group-row.js
CHANGED
|
@@ -15,7 +15,7 @@ import "./emoji.js";
|
|
|
15
15
|
import "./skeleton.js";
|
|
16
16
|
import "./badge.js";
|
|
17
17
|
import "./button.js";
|
|
18
|
-
import "../chunks/link_constants-
|
|
18
|
+
import "../chunks/link_constants-AfTWrr-n.js";
|
|
19
19
|
import "./tooltip.js";
|
|
20
20
|
import "../chunks/popover_constants-kQaX7G4a.js";
|
|
21
21
|
import "tippy.js";
|
|
@@ -6,7 +6,7 @@ require("../common/utils.cjs");
|
|
|
6
6
|
require("../common/constants.cjs");
|
|
7
7
|
require("vue");
|
|
8
8
|
require("./button.cjs");
|
|
9
|
-
require("../chunks/link_constants-
|
|
9
|
+
require("../chunks/link_constants-x8NwdqmA.js");
|
|
10
10
|
require("./icon.cjs");
|
|
11
11
|
require("@dialpad/dialtone-icons/vue2");
|
|
12
12
|
require("../chunks/icon_constants-QYpmdE0R.js");
|
package/dist/lib/grouped-chip.js
CHANGED
|
@@ -4,7 +4,7 @@ import "../common/utils.js";
|
|
|
4
4
|
import "../common/constants.js";
|
|
5
5
|
import "vue";
|
|
6
6
|
import "./button.js";
|
|
7
|
-
import "../chunks/link_constants-
|
|
7
|
+
import "../chunks/link_constants-AfTWrr-n.js";
|
|
8
8
|
import "./icon.js";
|
|
9
9
|
import "@dialpad/dialtone-icons/vue2";
|
|
10
10
|
import "../chunks/icon_constants-Dy4MEUJL.js";
|
package/dist/lib/hovercard.cjs
CHANGED
|
@@ -10,7 +10,7 @@ require("tippy.js");
|
|
|
10
10
|
require("@linusborg/vue-simple-portal");
|
|
11
11
|
require("../chunks/modal-VgxXAQFP.js");
|
|
12
12
|
require("./button.cjs");
|
|
13
|
-
require("../chunks/link_constants-
|
|
13
|
+
require("../chunks/link_constants-x8NwdqmA.js");
|
|
14
14
|
require("./icon.cjs");
|
|
15
15
|
require("@dialpad/dialtone-icons/vue2");
|
|
16
16
|
require("../chunks/icon_constants-QYpmdE0R.js");
|
package/dist/lib/hovercard.js
CHANGED
|
@@ -8,7 +8,7 @@ import "tippy.js";
|
|
|
8
8
|
import "@linusborg/vue-simple-portal";
|
|
9
9
|
import "../chunks/modal-XOr4kiNZ.js";
|
|
10
10
|
import "./button.js";
|
|
11
|
-
import "../chunks/link_constants-
|
|
11
|
+
import "../chunks/link_constants-AfTWrr-n.js";
|
|
12
12
|
import "./icon.js";
|
|
13
13
|
import "@dialpad/dialtone-icons/vue2";
|
|
14
14
|
import "../chunks/icon_constants-Dy4MEUJL.js";
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const vue2 = require("@dialpad/dialtone-icons/vue2");
|
|
4
|
+
const illustrationNames = require("@dialpad/dialtone-icons/illustrations.json");
|
|
5
|
+
const _pluginVue2_normalizer = require("../chunks/_plugin-vue2_normalizer-1aBeR4AK.js");
|
|
6
|
+
const ILLUSTRATION_NAMES = illustrationNames;
|
|
7
|
+
const _sfc_main = {
|
|
8
|
+
name: "DtIllustration",
|
|
9
|
+
props: {
|
|
10
|
+
/**
|
|
11
|
+
* The illustration name in kebab-case
|
|
12
|
+
*/
|
|
13
|
+
name: {
|
|
14
|
+
type: String,
|
|
15
|
+
required: true,
|
|
16
|
+
validator: (name) => ILLUSTRATION_NAMES.includes(name)
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
computed: {
|
|
20
|
+
illustration() {
|
|
21
|
+
return vue2.illustrations[`./src/illustrations/${this.name}.vue`];
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
var _sfc_render = function render() {
|
|
26
|
+
var _vm = this, _c = _vm._self._c;
|
|
27
|
+
return _vm.illustration ? _c(_vm.illustration, { tag: "component", attrs: { "data-qa": _vm.$attrs["data-qa"] ?? "dt-illustration" } }) : _vm._e();
|
|
28
|
+
};
|
|
29
|
+
var _sfc_staticRenderFns = [];
|
|
30
|
+
var __component__ = /* @__PURE__ */ _pluginVue2_normalizer.normalizeComponent(
|
|
31
|
+
_sfc_main,
|
|
32
|
+
_sfc_render,
|
|
33
|
+
_sfc_staticRenderFns,
|
|
34
|
+
false,
|
|
35
|
+
null,
|
|
36
|
+
null,
|
|
37
|
+
null,
|
|
38
|
+
null
|
|
39
|
+
);
|
|
40
|
+
const DtIllustration = __component__.exports;
|
|
41
|
+
exports.DtIllustration = DtIllustration;
|
|
42
|
+
exports.ILLUSTRATION_NAMES = ILLUSTRATION_NAMES;
|
|
43
|
+
//# sourceMappingURL=illustration.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"illustration.cjs","sources":["../../components/illustration/illustration_constants.js","../../components/illustration/illustration.vue"],"sourcesContent":["import illustrationNames from '@dialpad/dialtone-icons/illustrations.json';\n\nexport const ILLUSTRATION_NAMES = illustrationNames;\n\nexport default {\n ILLUSTRATION_NAMES,\n};\n","<template>\n <component\n :is=\"illustration\"\n v-if=\"illustration\"\n :data-qa=\"$attrs['data-qa'] ?? 'dt-illustration'\"\n />\n</template>\n\n<script>\nimport { illustrations } from '@dialpad/dialtone-icons/vue2';\nimport { ILLUSTRATION_NAMES } from './illustration_constants';\n\nexport default {\n name: 'DtIllustration',\n\n props: {\n /**\n * The illustration name in kebab-case\n */\n name: {\n type: String,\n required: true,\n validator: (name) => ILLUSTRATION_NAMES.includes(name),\n },\n },\n\n computed: {\n illustration () {\n return illustrations[`./src/illustrations/${this.name}.vue`];\n },\n },\n};\n</script>\n"],"names":["illustrations"],"mappings":";;;;;AAEY,MAAC,qBAAqB;ACUlC,MAAA,YAAA;AAAA,EACA,MAAA;AAAA,EAEA,OAAA;AAAA;AAAA;AAAA;AAAA,IAIA,MAAA;AAAA,MACA,MAAA;AAAA,MACA,UAAA;AAAA,MACA,WAAA,CAAA,SAAA,mBAAA,SAAA,IAAA;AAAA,IACA;AAAA,EACA;AAAA,EAEA,UAAA;AAAA,IACA,eAAA;AACA,aAAAA,KAAAA,cAAA,uBAAA,KAAA,IAAA,MAAA;AAAA,IACA;AAAA,EACA;AACA;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { illustrations } from "@dialpad/dialtone-icons/vue2";
|
|
2
|
+
import illustrationNames from "@dialpad/dialtone-icons/illustrations.json";
|
|
3
|
+
import { normalizeComponent } from "../chunks/_plugin-vue2_normalizer-sOSkiPF3.js";
|
|
4
|
+
const ILLUSTRATION_NAMES = illustrationNames;
|
|
5
|
+
const _sfc_main = {
|
|
6
|
+
name: "DtIllustration",
|
|
7
|
+
props: {
|
|
8
|
+
/**
|
|
9
|
+
* The illustration name in kebab-case
|
|
10
|
+
*/
|
|
11
|
+
name: {
|
|
12
|
+
type: String,
|
|
13
|
+
required: true,
|
|
14
|
+
validator: (name) => ILLUSTRATION_NAMES.includes(name)
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
computed: {
|
|
18
|
+
illustration() {
|
|
19
|
+
return illustrations[`./src/illustrations/${this.name}.vue`];
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
var _sfc_render = function render() {
|
|
24
|
+
var _vm = this, _c = _vm._self._c;
|
|
25
|
+
return _vm.illustration ? _c(_vm.illustration, { tag: "component", attrs: { "data-qa": _vm.$attrs["data-qa"] ?? "dt-illustration" } }) : _vm._e();
|
|
26
|
+
};
|
|
27
|
+
var _sfc_staticRenderFns = [];
|
|
28
|
+
var __component__ = /* @__PURE__ */ normalizeComponent(
|
|
29
|
+
_sfc_main,
|
|
30
|
+
_sfc_render,
|
|
31
|
+
_sfc_staticRenderFns,
|
|
32
|
+
false,
|
|
33
|
+
null,
|
|
34
|
+
null,
|
|
35
|
+
null,
|
|
36
|
+
null
|
|
37
|
+
);
|
|
38
|
+
const DtIllustration = __component__.exports;
|
|
39
|
+
export {
|
|
40
|
+
DtIllustration,
|
|
41
|
+
ILLUSTRATION_NAMES
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=illustration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"illustration.js","sources":["../../components/illustration/illustration_constants.js","../../components/illustration/illustration.vue"],"sourcesContent":["import illustrationNames from '@dialpad/dialtone-icons/illustrations.json';\n\nexport const ILLUSTRATION_NAMES = illustrationNames;\n\nexport default {\n ILLUSTRATION_NAMES,\n};\n","<template>\n <component\n :is=\"illustration\"\n v-if=\"illustration\"\n :data-qa=\"$attrs['data-qa'] ?? 'dt-illustration'\"\n />\n</template>\n\n<script>\nimport { illustrations } from '@dialpad/dialtone-icons/vue2';\nimport { ILLUSTRATION_NAMES } from './illustration_constants';\n\nexport default {\n name: 'DtIllustration',\n\n props: {\n /**\n * The illustration name in kebab-case\n */\n name: {\n type: String,\n required: true,\n validator: (name) => ILLUSTRATION_NAMES.includes(name),\n },\n },\n\n computed: {\n illustration () {\n return illustrations[`./src/illustrations/${this.name}.vue`];\n },\n },\n};\n</script>\n"],"names":[],"mappings":";;;AAEY,MAAC,qBAAqB;ACUlC,MAAA,YAAA;AAAA,EACA,MAAA;AAAA,EAEA,OAAA;AAAA;AAAA;AAAA;AAAA,IAIA,MAAA;AAAA,MACA,MAAA;AAAA,MACA,UAAA;AAAA,MACA,WAAA,CAAA,SAAA,mBAAA,SAAA,IAAA;AAAA,IACA;AAAA,EACA;AAAA,EAEA,UAAA;AAAA,IACA,eAAA;AACA,aAAA,cAAA,uBAAA,KAAA,IAAA,MAAA;AAAA,IACA;AAAA,EACA;AACA;;;;;;;;;;;;;;;;;"}
|
|
@@ -7,7 +7,7 @@ const _pluginVue2_normalizer = require("../chunks/_plugin-vue2_normalizer-1aBeR4
|
|
|
7
7
|
const lib_button = require("./button.cjs");
|
|
8
8
|
const lib_icon = require("./icon.cjs");
|
|
9
9
|
require("vue");
|
|
10
|
-
require("../chunks/link_constants-
|
|
10
|
+
require("../chunks/link_constants-x8NwdqmA.js");
|
|
11
11
|
require("@dialpad/dialtone-icons/vue2");
|
|
12
12
|
require("../chunks/icon_constants-QYpmdE0R.js");
|
|
13
13
|
require("@dialpad/dialtone-icons/icons.json");
|
package/dist/lib/image-viewer.js
CHANGED
|
@@ -5,7 +5,7 @@ import { normalizeComponent } from "../chunks/_plugin-vue2_normalizer-sOSkiPF3.j
|
|
|
5
5
|
import { DtButton } from "./button.js";
|
|
6
6
|
import { DtIcon } from "./icon.js";
|
|
7
7
|
import "vue";
|
|
8
|
-
import "../chunks/link_constants-
|
|
8
|
+
import "../chunks/link_constants-AfTWrr-n.js";
|
|
9
9
|
import "@dialpad/dialtone-icons/vue2";
|
|
10
10
|
import "../chunks/icon_constants-Dy4MEUJL.js";
|
|
11
11
|
import "@dialpad/dialtone-icons/icons.json";
|
package/dist/lib/ivr-node.cjs
CHANGED
|
@@ -6,7 +6,7 @@ const lib_button = require("./button.cjs");
|
|
|
6
6
|
const dropdown = require("../chunks/dropdown-2D4i6Qkg.js");
|
|
7
7
|
const lib_icon = require("./icon.cjs");
|
|
8
8
|
require("vue");
|
|
9
|
-
require("../chunks/link_constants-
|
|
9
|
+
require("../chunks/link_constants-x8NwdqmA.js");
|
|
10
10
|
require("../chunks/keyboard_list_navigation-fJnl_Iox.js");
|
|
11
11
|
require("../chunks/dropdown_constants-2pGCXy7m.js");
|
|
12
12
|
require("../common/utils.cjs");
|
package/dist/lib/ivr-node.js
CHANGED
|
@@ -4,7 +4,7 @@ import { DtButton } from "./button.js";
|
|
|
4
4
|
import { DtDropdown } from "../chunks/dropdown-8L_PePwv.js";
|
|
5
5
|
import { DtIcon } from "./icon.js";
|
|
6
6
|
import "vue";
|
|
7
|
-
import "../chunks/link_constants-
|
|
7
|
+
import "../chunks/link_constants-AfTWrr-n.js";
|
|
8
8
|
import "../chunks/keyboard_list_navigation-ScXhrxya.js";
|
|
9
9
|
import "../chunks/dropdown_constants-w1MXGC3Z.js";
|
|
10
10
|
import "../common/utils.js";
|
package/dist/lib/link.cjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const link_constants = require("../chunks/link_constants-
|
|
3
|
+
const link_constants = require("../chunks/link_constants-x8NwdqmA.js");
|
|
4
4
|
const _pluginVue2_normalizer = require("../chunks/_plugin-vue2_normalizer-1aBeR4AK.js");
|
|
5
5
|
const _sfc_main = {
|
|
6
6
|
name: "DtLink",
|
|
7
7
|
props: {
|
|
8
8
|
/**
|
|
9
9
|
* Applies the link variant styles
|
|
10
|
-
* @values null, danger, warning, success, muted,
|
|
10
|
+
* @values null, danger, warning, success, muted, mention
|
|
11
11
|
*/
|
|
12
12
|
kind: {
|
|
13
13
|
type: String,
|
|
@@ -15,6 +15,15 @@ const _sfc_main = {
|
|
|
15
15
|
validator(kind) {
|
|
16
16
|
return link_constants.LINK_VARIANTS.includes(kind);
|
|
17
17
|
}
|
|
18
|
+
},
|
|
19
|
+
/**
|
|
20
|
+
* Determines whether the link should have inverted styling
|
|
21
|
+
* default is false.
|
|
22
|
+
* @values true, false
|
|
23
|
+
*/
|
|
24
|
+
inverted: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: false
|
|
18
27
|
}
|
|
19
28
|
},
|
|
20
29
|
emits: [
|
|
@@ -44,14 +53,19 @@ const _sfc_main = {
|
|
|
44
53
|
return {
|
|
45
54
|
LINK_KIND_MODIFIERS: link_constants.LINK_KIND_MODIFIERS
|
|
46
55
|
};
|
|
56
|
+
},
|
|
57
|
+
methods: {
|
|
58
|
+
getLinkClasses() {
|
|
59
|
+
return [
|
|
60
|
+
"d-link",
|
|
61
|
+
link_constants.getLinkKindModifier(this.kind, this.inverted)
|
|
62
|
+
];
|
|
63
|
+
}
|
|
47
64
|
}
|
|
48
65
|
};
|
|
49
66
|
var _sfc_render = function render() {
|
|
50
67
|
var _vm = this, _c = _vm._self._c;
|
|
51
|
-
return _c("a", _vm._g({ class: [
|
|
52
|
-
"d-link",
|
|
53
|
-
_vm.LINK_KIND_MODIFIERS[_vm.kind]
|
|
54
|
-
], attrs: { "data-qa": "dt-link", "href": "href" in _vm.$attrs ? _vm.$attrs.href : "javascript:void(0)" } }, _vm.$listeners), [_vm._t("default")], 2);
|
|
68
|
+
return _c("a", _vm._g({ class: _vm.getLinkClasses(), attrs: { "data-qa": "dt-link", "href": "href" in _vm.$attrs ? _vm.$attrs.href : "javascript:void(0)" } }, _vm.$listeners), [_vm._t("default")], 2);
|
|
55
69
|
};
|
|
56
70
|
var _sfc_staticRenderFns = [];
|
|
57
71
|
var __component__ = /* @__PURE__ */ _pluginVue2_normalizer.normalizeComponent(
|