@dialpad/dialtone-vue 2.42.0 → 2.43.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/component-documentation.json +1 -1
- package/dist/dialtone-vue.common.js +180 -111
- package/dist/dialtone-vue.umd.js +180 -111
- package/dist/dialtone-vue.umd.min.js +1 -1
- package/dist/emoji.common.js +0 -8
- package/dist/emoji.umd.js +0 -8
- package/dist/emoji.umd.min.js +1 -1
- package/package.json +3 -3
|
@@ -1113,7 +1113,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1113
1113
|
"AVATAR_COLOR_MODIFIERS": () => (/* reexport */ AVATAR_COLOR_MODIFIERS),
|
|
1114
1114
|
"AVATAR_KIND_MODIFIERS": () => (/* reexport */ AVATAR_KIND_MODIFIERS),
|
|
1115
1115
|
"AVATAR_SIZE_MODIFIERS": () => (/* reexport */ AVATAR_SIZE_MODIFIERS),
|
|
1116
|
-
"
|
|
1116
|
+
"BADGE_KIND_MODIFIERS": () => (/* reexport */ BADGE_KIND_MODIFIERS),
|
|
1117
|
+
"BADGE_TYPE_MODIFIERS": () => (/* reexport */ BADGE_TYPE_MODIFIERS),
|
|
1117
1118
|
"BREADCRUMBS_INVERTED_MODIFIER": () => (/* reexport */ BREADCRUMBS_INVERTED_MODIFIER),
|
|
1118
1119
|
"BREADCRUMB_ITEM_SELECTED_MODIFIER": () => (/* reexport */ BREADCRUMB_ITEM_SELECTED_MODIFIER),
|
|
1119
1120
|
"BUTTON_GROUP_ALIGNMENT": () => (/* reexport */ BUTTON_GROUP_ALIGNMENT),
|
|
@@ -1913,121 +1914,28 @@ var avatar_component = normalizeComponent(
|
|
|
1913
1914
|
;// CONCATENATED MODULE: ./components/avatar/index.js
|
|
1914
1915
|
|
|
1915
1916
|
|
|
1916
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/badge/badge.vue?vue&type=template&id=
|
|
1917
|
-
var
|
|
1917
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/badge/badge.vue?vue&type=template&id=741d001d&
|
|
1918
|
+
var badgevue_type_template_id_741d001d_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{class:[
|
|
1918
1919
|
'd-badge',
|
|
1919
|
-
_vm.
|
|
1920
|
-
|
|
1920
|
+
_vm.BADGE_TYPE_MODIFIERS[_vm.type],
|
|
1921
|
+
_vm.BADGE_KIND_MODIFIERS[_vm.kind] ],attrs:{"data-qa":"dt-badge"}},[(_vm.iconLeft || _vm.type === 'ai')?_c('span',{staticClass:"d-badge__icon-left"},[_c('dt-icon',{attrs:{"name":_vm.iconLeft || 'dialpad-ai',"size":"200"}})],1):_vm._e(),_c('span',{staticClass:"d-badge__label"},[_vm._t("default",function(){return [_vm._v(" "+_vm._s(_vm.text)+" ")]})],2),(_vm.iconRight)?_c('span',{staticClass:"d-badge__icon-right"},[_c('dt-icon',{attrs:{"name":_vm.iconRight,"size":"200"}})],1):_vm._e()])}
|
|
1922
|
+
var badgevue_type_template_id_741d001d_staticRenderFns = []
|
|
1921
1923
|
|
|
1922
1924
|
|
|
1923
1925
|
;// CONCATENATED MODULE: ./components/badge/badge_constants.js
|
|
1924
|
-
const
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
'purple-500': 'd-badge--purple-500',
|
|
1937
|
-
'red-300': 'd-badge--red-300',
|
|
1938
|
-
white: 'd-badge--white',
|
|
1939
|
-
'gold-200': 'd-badge--gold-200'
|
|
1926
|
+
const BADGE_TYPE_MODIFIERS = {
|
|
1927
|
+
default: '',
|
|
1928
|
+
info: 'd-badge--info',
|
|
1929
|
+
success: 'd-badge--success',
|
|
1930
|
+
warning: 'd-badge--warning',
|
|
1931
|
+
critical: 'd-badge--critical',
|
|
1932
|
+
bulletin: 'd-badge--bulletin',
|
|
1933
|
+
ai: 'd-badge--ai'
|
|
1934
|
+
};
|
|
1935
|
+
const BADGE_KIND_MODIFIERS = {
|
|
1936
|
+
label: '',
|
|
1937
|
+
count: 'd-badge--count'
|
|
1940
1938
|
};
|
|
1941
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/badge/badge.vue?vue&type=script&lang=js&
|
|
1942
|
-
//
|
|
1943
|
-
//
|
|
1944
|
-
//
|
|
1945
|
-
//
|
|
1946
|
-
//
|
|
1947
|
-
//
|
|
1948
|
-
//
|
|
1949
|
-
//
|
|
1950
|
-
//
|
|
1951
|
-
//
|
|
1952
|
-
//
|
|
1953
|
-
//
|
|
1954
|
-
//
|
|
1955
|
-
//
|
|
1956
|
-
//
|
|
1957
|
-
|
|
1958
|
-
/**
|
|
1959
|
-
* A badge is a compact UI element that provides brief, descriptive information about an element.
|
|
1960
|
-
* It is terse, ideally one word.
|
|
1961
|
-
* @see https://dialpad.design/components/badge.html
|
|
1962
|
-
*/
|
|
1963
|
-
|
|
1964
|
-
/* harmony default export */ const badgevue_type_script_lang_js_ = ({
|
|
1965
|
-
name: 'DtBadge',
|
|
1966
|
-
props: {
|
|
1967
|
-
/**
|
|
1968
|
-
* Text for the badge content
|
|
1969
|
-
*/
|
|
1970
|
-
text: {
|
|
1971
|
-
type: String,
|
|
1972
|
-
default: ''
|
|
1973
|
-
},
|
|
1974
|
-
|
|
1975
|
-
/**
|
|
1976
|
-
* Color for the badge background
|
|
1977
|
-
* @values base, black-700, green-400, orange-400,
|
|
1978
|
-
* pink-300, pink-500, pink-600, pink-700,
|
|
1979
|
-
* purple-100, purple-300, purple-500, purple-700,
|
|
1980
|
-
* red-500, white, yellow-300
|
|
1981
|
-
*/
|
|
1982
|
-
color: {
|
|
1983
|
-
type: String,
|
|
1984
|
-
default: 'base',
|
|
1985
|
-
validator: color => Object.keys(BADGE_COLOR_MODIFIERS).includes(color)
|
|
1986
|
-
}
|
|
1987
|
-
},
|
|
1988
|
-
|
|
1989
|
-
data() {
|
|
1990
|
-
return {
|
|
1991
|
-
BADGE_COLOR_MODIFIERS: BADGE_COLOR_MODIFIERS
|
|
1992
|
-
};
|
|
1993
|
-
}
|
|
1994
|
-
|
|
1995
|
-
});
|
|
1996
|
-
;// CONCATENATED MODULE: ./components/badge/badge.vue?vue&type=script&lang=js&
|
|
1997
|
-
/* harmony default export */ const badge_badgevue_type_script_lang_js_ = (badgevue_type_script_lang_js_);
|
|
1998
|
-
;// CONCATENATED MODULE: ./components/badge/badge.vue
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
/* normalize component */
|
|
2005
|
-
;
|
|
2006
|
-
var badge_component = normalizeComponent(
|
|
2007
|
-
badge_badgevue_type_script_lang_js_,
|
|
2008
|
-
badgevue_type_template_id_fea57e1e_render,
|
|
2009
|
-
badgevue_type_template_id_fea57e1e_staticRenderFns,
|
|
2010
|
-
false,
|
|
2011
|
-
null,
|
|
2012
|
-
null,
|
|
2013
|
-
null
|
|
2014
|
-
|
|
2015
|
-
)
|
|
2016
|
-
|
|
2017
|
-
/* harmony default export */ const badge = (badge_component.exports);
|
|
2018
|
-
;// CONCATENATED MODULE: ./components/badge/index.js
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/banner/banner.vue?vue&type=template&id=756779c1&
|
|
2022
|
-
var bannervue_type_template_id_756779c1_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('aside',{class:_vm.bannerClass,style:(_vm.bannerBackgroundImage),attrs:{"role":_vm.role},on:{"keydown":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"tab",9,$event.key,"Tab")){ return null; }return _vm.trapFocus.apply(null, arguments)}}},[_c('div',{staticClass:"d-banner__dialog",class:_vm.dialogClass,attrs:{"aria-labelledby":_vm.titleId,"aria-describedby":_vm.contentId}},[(!_vm.hideIcon)?_c('dt-notice-icon',_vm._g({attrs:{"kind":_vm.kind}},_vm.$listeners),[_vm._t("icon")],2):_vm._e(),_c('dt-notice-content',_vm._g({attrs:{"title-id":_vm.titleId,"content-id":_vm.contentId,"title":_vm.title},scopedSlots:_vm._u([{key:"titleOverride",fn:function(){return [_vm._t("titleOverride")]},proxy:true}],null,true)},_vm.$listeners),[_vm._t("default")],2),_c('dt-notice-action',_vm._g({attrs:{"hide-close":_vm.hideClose,"close-button-props":_vm.closeButtonProps,"visually-hidden-close":_vm.visuallyHiddenClose,"visually-hidden-close-label":_vm.visuallyHiddenCloseLabel}},_vm.$listeners),[_vm._t("action")],2)],1)])}
|
|
2023
|
-
var bannervue_type_template_id_756779c1_staticRenderFns = []
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/notice/notice_icon.vue?vue&type=template&id=dbeeebfa&
|
|
2027
|
-
var notice_iconvue_type_template_id_dbeeebfa_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.defaultIcon || _vm.$slots.default)?_c('div',{staticClass:"d-notice__icon",attrs:{"aria-hidden":"true"}},[_vm._t("default",function(){return [_c('dt-icon',{attrs:{"name":_vm.defaultIcon,"size":"400"}})]})],2):_vm._e()}
|
|
2028
|
-
var notice_iconvue_type_template_id_dbeeebfa_staticRenderFns = []
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
1939
|
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/icon/icon.vue?vue&type=template&id=0c7462d0&
|
|
2032
1940
|
var iconvue_type_template_id_0c7462d0_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(_vm.currentIcon,{tag:"component",class:_vm.iconSize,attrs:{"data-qa":"dt-icon","aria-hidden":_vm.ariaLabel ? 'false' : 'true',"aria-label":_vm.ariaLabel}})}
|
|
2033
1941
|
var iconvue_type_template_id_0c7462d0_staticRenderFns = []
|
|
@@ -2143,6 +2051,167 @@ var icon_component = normalizeComponent(
|
|
|
2143
2051
|
/* harmony default export */ const icon = (icon_component.exports);
|
|
2144
2052
|
;// CONCATENATED MODULE: ./components/icon/index.js
|
|
2145
2053
|
|
|
2054
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/badge/badge.vue?vue&type=script&lang=js&
|
|
2055
|
+
//
|
|
2056
|
+
//
|
|
2057
|
+
//
|
|
2058
|
+
//
|
|
2059
|
+
//
|
|
2060
|
+
//
|
|
2061
|
+
//
|
|
2062
|
+
//
|
|
2063
|
+
//
|
|
2064
|
+
//
|
|
2065
|
+
//
|
|
2066
|
+
//
|
|
2067
|
+
//
|
|
2068
|
+
//
|
|
2069
|
+
//
|
|
2070
|
+
//
|
|
2071
|
+
//
|
|
2072
|
+
//
|
|
2073
|
+
//
|
|
2074
|
+
//
|
|
2075
|
+
//
|
|
2076
|
+
//
|
|
2077
|
+
//
|
|
2078
|
+
//
|
|
2079
|
+
//
|
|
2080
|
+
//
|
|
2081
|
+
//
|
|
2082
|
+
//
|
|
2083
|
+
//
|
|
2084
|
+
//
|
|
2085
|
+
//
|
|
2086
|
+
//
|
|
2087
|
+
//
|
|
2088
|
+
//
|
|
2089
|
+
//
|
|
2090
|
+
//
|
|
2091
|
+
|
|
2092
|
+
|
|
2093
|
+
/**
|
|
2094
|
+
* A badge is a compact UI element that provides brief, descriptive information about an element.
|
|
2095
|
+
* It is terse, ideally one word.
|
|
2096
|
+
* @see https://dialpad.design/components/badge.html
|
|
2097
|
+
*/
|
|
2098
|
+
|
|
2099
|
+
/* harmony default export */ const badgevue_type_script_lang_js_ = ({
|
|
2100
|
+
name: 'DtBadge',
|
|
2101
|
+
components: {
|
|
2102
|
+
DtIcon: icon
|
|
2103
|
+
},
|
|
2104
|
+
props: {
|
|
2105
|
+
/**
|
|
2106
|
+
* Icon on the left side of the badge. Supports any valid icon name from the icon catalog at
|
|
2107
|
+
* https://dialpad.design/components/icon.html#icon-catalog. If type:'ai' is set, the ai icon
|
|
2108
|
+
* will automatically be shown here, but this can be overridden by setting this prop.
|
|
2109
|
+
*/
|
|
2110
|
+
iconLeft: {
|
|
2111
|
+
type: String,
|
|
2112
|
+
default: ''
|
|
2113
|
+
},
|
|
2114
|
+
|
|
2115
|
+
/**
|
|
2116
|
+
* Icon on the right side of the badge. Supports any valid icon name from the icon catalog at
|
|
2117
|
+
* https://dialpad.design/components/icon.html#icon-catalog
|
|
2118
|
+
*/
|
|
2119
|
+
iconRight: {
|
|
2120
|
+
type: String,
|
|
2121
|
+
default: ''
|
|
2122
|
+
},
|
|
2123
|
+
|
|
2124
|
+
/**
|
|
2125
|
+
* Text for the badge content
|
|
2126
|
+
*/
|
|
2127
|
+
text: {
|
|
2128
|
+
type: String,
|
|
2129
|
+
default: ''
|
|
2130
|
+
},
|
|
2131
|
+
|
|
2132
|
+
/**
|
|
2133
|
+
* The kind of badge which determines the styling
|
|
2134
|
+
* @values label, count
|
|
2135
|
+
*/
|
|
2136
|
+
kind: {
|
|
2137
|
+
type: String,
|
|
2138
|
+
default: 'label',
|
|
2139
|
+
validator: kind => Object.keys(BADGE_KIND_MODIFIERS).includes(kind)
|
|
2140
|
+
},
|
|
2141
|
+
|
|
2142
|
+
/**
|
|
2143
|
+
* Color for the badge background
|
|
2144
|
+
* @values default, info, success, warning, critical, bulletin, ai
|
|
2145
|
+
*/
|
|
2146
|
+
type: {
|
|
2147
|
+
type: String,
|
|
2148
|
+
default: 'default',
|
|
2149
|
+
validator: type => Object.keys(BADGE_TYPE_MODIFIERS).includes(type)
|
|
2150
|
+
}
|
|
2151
|
+
},
|
|
2152
|
+
|
|
2153
|
+
data() {
|
|
2154
|
+
return {
|
|
2155
|
+
BADGE_TYPE_MODIFIERS: BADGE_TYPE_MODIFIERS,
|
|
2156
|
+
BADGE_KIND_MODIFIERS: BADGE_KIND_MODIFIERS
|
|
2157
|
+
};
|
|
2158
|
+
},
|
|
2159
|
+
|
|
2160
|
+
watch: {
|
|
2161
|
+
$props: {
|
|
2162
|
+
immediate: true,
|
|
2163
|
+
deep: true,
|
|
2164
|
+
|
|
2165
|
+
handler() {
|
|
2166
|
+
this.validateProps();
|
|
2167
|
+
}
|
|
2168
|
+
|
|
2169
|
+
}
|
|
2170
|
+
},
|
|
2171
|
+
methods: {
|
|
2172
|
+
validateProps() {
|
|
2173
|
+
if (this.type === 'ai' && this.kind === 'count') {
|
|
2174
|
+
console.error('DtBadge error: type: \'ai\' with kind: \'count\' is an invalid combination.');
|
|
2175
|
+
}
|
|
2176
|
+
}
|
|
2177
|
+
|
|
2178
|
+
}
|
|
2179
|
+
});
|
|
2180
|
+
;// CONCATENATED MODULE: ./components/badge/badge.vue?vue&type=script&lang=js&
|
|
2181
|
+
/* harmony default export */ const badge_badgevue_type_script_lang_js_ = (badgevue_type_script_lang_js_);
|
|
2182
|
+
;// CONCATENATED MODULE: ./components/badge/badge.vue
|
|
2183
|
+
|
|
2184
|
+
|
|
2185
|
+
|
|
2186
|
+
|
|
2187
|
+
|
|
2188
|
+
/* normalize component */
|
|
2189
|
+
;
|
|
2190
|
+
var badge_component = normalizeComponent(
|
|
2191
|
+
badge_badgevue_type_script_lang_js_,
|
|
2192
|
+
badgevue_type_template_id_741d001d_render,
|
|
2193
|
+
badgevue_type_template_id_741d001d_staticRenderFns,
|
|
2194
|
+
false,
|
|
2195
|
+
null,
|
|
2196
|
+
null,
|
|
2197
|
+
null
|
|
2198
|
+
|
|
2199
|
+
)
|
|
2200
|
+
|
|
2201
|
+
/* harmony default export */ const badge = (badge_component.exports);
|
|
2202
|
+
;// CONCATENATED MODULE: ./components/badge/index.js
|
|
2203
|
+
|
|
2204
|
+
|
|
2205
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/banner/banner.vue?vue&type=template&id=756779c1&
|
|
2206
|
+
var bannervue_type_template_id_756779c1_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('aside',{class:_vm.bannerClass,style:(_vm.bannerBackgroundImage),attrs:{"role":_vm.role},on:{"keydown":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"tab",9,$event.key,"Tab")){ return null; }return _vm.trapFocus.apply(null, arguments)}}},[_c('div',{staticClass:"d-banner__dialog",class:_vm.dialogClass,attrs:{"aria-labelledby":_vm.titleId,"aria-describedby":_vm.contentId}},[(!_vm.hideIcon)?_c('dt-notice-icon',_vm._g({attrs:{"kind":_vm.kind}},_vm.$listeners),[_vm._t("icon")],2):_vm._e(),_c('dt-notice-content',_vm._g({attrs:{"title-id":_vm.titleId,"content-id":_vm.contentId,"title":_vm.title},scopedSlots:_vm._u([{key:"titleOverride",fn:function(){return [_vm._t("titleOverride")]},proxy:true}],null,true)},_vm.$listeners),[_vm._t("default")],2),_c('dt-notice-action',_vm._g({attrs:{"hide-close":_vm.hideClose,"close-button-props":_vm.closeButtonProps,"visually-hidden-close":_vm.visuallyHiddenClose,"visually-hidden-close-label":_vm.visuallyHiddenCloseLabel}},_vm.$listeners),[_vm._t("action")],2)],1)])}
|
|
2207
|
+
var bannervue_type_template_id_756779c1_staticRenderFns = []
|
|
2208
|
+
|
|
2209
|
+
|
|
2210
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/notice/notice_icon.vue?vue&type=template&id=dbeeebfa&
|
|
2211
|
+
var notice_iconvue_type_template_id_dbeeebfa_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.defaultIcon || _vm.$slots.default)?_c('div',{staticClass:"d-notice__icon",attrs:{"aria-hidden":"true"}},[_vm._t("default",function(){return [_c('dt-icon',{attrs:{"name":_vm.defaultIcon,"size":"400"}})]})],2):_vm._e()}
|
|
2212
|
+
var notice_iconvue_type_template_id_dbeeebfa_staticRenderFns = []
|
|
2213
|
+
|
|
2214
|
+
|
|
2146
2215
|
;// CONCATENATED MODULE: ./components/notice/notice_constants.js
|
|
2147
2216
|
const NOTICE_KINDS = ['base', 'error', 'info', 'success', 'warning'];
|
|
2148
2217
|
const NOTICE_ROLES = ['alert', 'alertdialog', 'status'];
|
package/dist/dialtone-vue.umd.js
CHANGED
|
@@ -1123,7 +1123,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1123
1123
|
"AVATAR_COLOR_MODIFIERS": () => (/* reexport */ AVATAR_COLOR_MODIFIERS),
|
|
1124
1124
|
"AVATAR_KIND_MODIFIERS": () => (/* reexport */ AVATAR_KIND_MODIFIERS),
|
|
1125
1125
|
"AVATAR_SIZE_MODIFIERS": () => (/* reexport */ AVATAR_SIZE_MODIFIERS),
|
|
1126
|
-
"
|
|
1126
|
+
"BADGE_KIND_MODIFIERS": () => (/* reexport */ BADGE_KIND_MODIFIERS),
|
|
1127
|
+
"BADGE_TYPE_MODIFIERS": () => (/* reexport */ BADGE_TYPE_MODIFIERS),
|
|
1127
1128
|
"BREADCRUMBS_INVERTED_MODIFIER": () => (/* reexport */ BREADCRUMBS_INVERTED_MODIFIER),
|
|
1128
1129
|
"BREADCRUMB_ITEM_SELECTED_MODIFIER": () => (/* reexport */ BREADCRUMB_ITEM_SELECTED_MODIFIER),
|
|
1129
1130
|
"BUTTON_GROUP_ALIGNMENT": () => (/* reexport */ BUTTON_GROUP_ALIGNMENT),
|
|
@@ -1923,121 +1924,28 @@ var avatar_component = normalizeComponent(
|
|
|
1923
1924
|
;// CONCATENATED MODULE: ./components/avatar/index.js
|
|
1924
1925
|
|
|
1925
1926
|
|
|
1926
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/badge/badge.vue?vue&type=template&id=
|
|
1927
|
-
var
|
|
1927
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/badge/badge.vue?vue&type=template&id=741d001d&
|
|
1928
|
+
var badgevue_type_template_id_741d001d_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{class:[
|
|
1928
1929
|
'd-badge',
|
|
1929
|
-
_vm.
|
|
1930
|
-
|
|
1930
|
+
_vm.BADGE_TYPE_MODIFIERS[_vm.type],
|
|
1931
|
+
_vm.BADGE_KIND_MODIFIERS[_vm.kind] ],attrs:{"data-qa":"dt-badge"}},[(_vm.iconLeft || _vm.type === 'ai')?_c('span',{staticClass:"d-badge__icon-left"},[_c('dt-icon',{attrs:{"name":_vm.iconLeft || 'dialpad-ai',"size":"200"}})],1):_vm._e(),_c('span',{staticClass:"d-badge__label"},[_vm._t("default",function(){return [_vm._v(" "+_vm._s(_vm.text)+" ")]})],2),(_vm.iconRight)?_c('span',{staticClass:"d-badge__icon-right"},[_c('dt-icon',{attrs:{"name":_vm.iconRight,"size":"200"}})],1):_vm._e()])}
|
|
1932
|
+
var badgevue_type_template_id_741d001d_staticRenderFns = []
|
|
1931
1933
|
|
|
1932
1934
|
|
|
1933
1935
|
;// CONCATENATED MODULE: ./components/badge/badge_constants.js
|
|
1934
|
-
const
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
'purple-500': 'd-badge--purple-500',
|
|
1947
|
-
'red-300': 'd-badge--red-300',
|
|
1948
|
-
white: 'd-badge--white',
|
|
1949
|
-
'gold-200': 'd-badge--gold-200'
|
|
1936
|
+
const BADGE_TYPE_MODIFIERS = {
|
|
1937
|
+
default: '',
|
|
1938
|
+
info: 'd-badge--info',
|
|
1939
|
+
success: 'd-badge--success',
|
|
1940
|
+
warning: 'd-badge--warning',
|
|
1941
|
+
critical: 'd-badge--critical',
|
|
1942
|
+
bulletin: 'd-badge--bulletin',
|
|
1943
|
+
ai: 'd-badge--ai'
|
|
1944
|
+
};
|
|
1945
|
+
const BADGE_KIND_MODIFIERS = {
|
|
1946
|
+
label: '',
|
|
1947
|
+
count: 'd-badge--count'
|
|
1950
1948
|
};
|
|
1951
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-80[0].rules[0].use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/badge/badge.vue?vue&type=script&lang=js&
|
|
1952
|
-
//
|
|
1953
|
-
//
|
|
1954
|
-
//
|
|
1955
|
-
//
|
|
1956
|
-
//
|
|
1957
|
-
//
|
|
1958
|
-
//
|
|
1959
|
-
//
|
|
1960
|
-
//
|
|
1961
|
-
//
|
|
1962
|
-
//
|
|
1963
|
-
//
|
|
1964
|
-
//
|
|
1965
|
-
//
|
|
1966
|
-
//
|
|
1967
|
-
|
|
1968
|
-
/**
|
|
1969
|
-
* A badge is a compact UI element that provides brief, descriptive information about an element.
|
|
1970
|
-
* It is terse, ideally one word.
|
|
1971
|
-
* @see https://dialpad.design/components/badge.html
|
|
1972
|
-
*/
|
|
1973
|
-
|
|
1974
|
-
/* harmony default export */ const badgevue_type_script_lang_js_ = ({
|
|
1975
|
-
name: 'DtBadge',
|
|
1976
|
-
props: {
|
|
1977
|
-
/**
|
|
1978
|
-
* Text for the badge content
|
|
1979
|
-
*/
|
|
1980
|
-
text: {
|
|
1981
|
-
type: String,
|
|
1982
|
-
default: ''
|
|
1983
|
-
},
|
|
1984
|
-
|
|
1985
|
-
/**
|
|
1986
|
-
* Color for the badge background
|
|
1987
|
-
* @values base, black-700, green-400, orange-400,
|
|
1988
|
-
* pink-300, pink-500, pink-600, pink-700,
|
|
1989
|
-
* purple-100, purple-300, purple-500, purple-700,
|
|
1990
|
-
* red-500, white, yellow-300
|
|
1991
|
-
*/
|
|
1992
|
-
color: {
|
|
1993
|
-
type: String,
|
|
1994
|
-
default: 'base',
|
|
1995
|
-
validator: color => Object.keys(BADGE_COLOR_MODIFIERS).includes(color)
|
|
1996
|
-
}
|
|
1997
|
-
},
|
|
1998
|
-
|
|
1999
|
-
data() {
|
|
2000
|
-
return {
|
|
2001
|
-
BADGE_COLOR_MODIFIERS: BADGE_COLOR_MODIFIERS
|
|
2002
|
-
};
|
|
2003
|
-
}
|
|
2004
|
-
|
|
2005
|
-
});
|
|
2006
|
-
;// CONCATENATED MODULE: ./components/badge/badge.vue?vue&type=script&lang=js&
|
|
2007
|
-
/* harmony default export */ const badge_badgevue_type_script_lang_js_ = (badgevue_type_script_lang_js_);
|
|
2008
|
-
;// CONCATENATED MODULE: ./components/badge/badge.vue
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
/* normalize component */
|
|
2015
|
-
;
|
|
2016
|
-
var badge_component = normalizeComponent(
|
|
2017
|
-
badge_badgevue_type_script_lang_js_,
|
|
2018
|
-
badgevue_type_template_id_fea57e1e_render,
|
|
2019
|
-
badgevue_type_template_id_fea57e1e_staticRenderFns,
|
|
2020
|
-
false,
|
|
2021
|
-
null,
|
|
2022
|
-
null,
|
|
2023
|
-
null
|
|
2024
|
-
|
|
2025
|
-
)
|
|
2026
|
-
|
|
2027
|
-
/* harmony default export */ const badge = (badge_component.exports);
|
|
2028
|
-
;// CONCATENATED MODULE: ./components/badge/index.js
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/banner/banner.vue?vue&type=template&id=756779c1&
|
|
2032
|
-
var bannervue_type_template_id_756779c1_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('aside',{class:_vm.bannerClass,style:(_vm.bannerBackgroundImage),attrs:{"role":_vm.role},on:{"keydown":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"tab",9,$event.key,"Tab")){ return null; }return _vm.trapFocus.apply(null, arguments)}}},[_c('div',{staticClass:"d-banner__dialog",class:_vm.dialogClass,attrs:{"aria-labelledby":_vm.titleId,"aria-describedby":_vm.contentId}},[(!_vm.hideIcon)?_c('dt-notice-icon',_vm._g({attrs:{"kind":_vm.kind}},_vm.$listeners),[_vm._t("icon")],2):_vm._e(),_c('dt-notice-content',_vm._g({attrs:{"title-id":_vm.titleId,"content-id":_vm.contentId,"title":_vm.title},scopedSlots:_vm._u([{key:"titleOverride",fn:function(){return [_vm._t("titleOverride")]},proxy:true}],null,true)},_vm.$listeners),[_vm._t("default")],2),_c('dt-notice-action',_vm._g({attrs:{"hide-close":_vm.hideClose,"close-button-props":_vm.closeButtonProps,"visually-hidden-close":_vm.visuallyHiddenClose,"visually-hidden-close-label":_vm.visuallyHiddenCloseLabel}},_vm.$listeners),[_vm._t("action")],2)],1)])}
|
|
2033
|
-
var bannervue_type_template_id_756779c1_staticRenderFns = []
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/notice/notice_icon.vue?vue&type=template&id=dbeeebfa&
|
|
2037
|
-
var notice_iconvue_type_template_id_dbeeebfa_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.defaultIcon || _vm.$slots.default)?_c('div',{staticClass:"d-notice__icon",attrs:{"aria-hidden":"true"}},[_vm._t("default",function(){return [_c('dt-icon',{attrs:{"name":_vm.defaultIcon,"size":"400"}})]})],2):_vm._e()}
|
|
2038
|
-
var notice_iconvue_type_template_id_dbeeebfa_staticRenderFns = []
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
1949
|
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/icon/icon.vue?vue&type=template&id=0c7462d0&
|
|
2042
1950
|
var iconvue_type_template_id_0c7462d0_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(_vm.currentIcon,{tag:"component",class:_vm.iconSize,attrs:{"data-qa":"dt-icon","aria-hidden":_vm.ariaLabel ? 'false' : 'true',"aria-label":_vm.ariaLabel}})}
|
|
2043
1951
|
var iconvue_type_template_id_0c7462d0_staticRenderFns = []
|
|
@@ -2153,6 +2061,167 @@ var icon_component = normalizeComponent(
|
|
|
2153
2061
|
/* harmony default export */ const icon = (icon_component.exports);
|
|
2154
2062
|
;// CONCATENATED MODULE: ./components/icon/index.js
|
|
2155
2063
|
|
|
2064
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-80[0].rules[0].use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/badge/badge.vue?vue&type=script&lang=js&
|
|
2065
|
+
//
|
|
2066
|
+
//
|
|
2067
|
+
//
|
|
2068
|
+
//
|
|
2069
|
+
//
|
|
2070
|
+
//
|
|
2071
|
+
//
|
|
2072
|
+
//
|
|
2073
|
+
//
|
|
2074
|
+
//
|
|
2075
|
+
//
|
|
2076
|
+
//
|
|
2077
|
+
//
|
|
2078
|
+
//
|
|
2079
|
+
//
|
|
2080
|
+
//
|
|
2081
|
+
//
|
|
2082
|
+
//
|
|
2083
|
+
//
|
|
2084
|
+
//
|
|
2085
|
+
//
|
|
2086
|
+
//
|
|
2087
|
+
//
|
|
2088
|
+
//
|
|
2089
|
+
//
|
|
2090
|
+
//
|
|
2091
|
+
//
|
|
2092
|
+
//
|
|
2093
|
+
//
|
|
2094
|
+
//
|
|
2095
|
+
//
|
|
2096
|
+
//
|
|
2097
|
+
//
|
|
2098
|
+
//
|
|
2099
|
+
//
|
|
2100
|
+
//
|
|
2101
|
+
|
|
2102
|
+
|
|
2103
|
+
/**
|
|
2104
|
+
* A badge is a compact UI element that provides brief, descriptive information about an element.
|
|
2105
|
+
* It is terse, ideally one word.
|
|
2106
|
+
* @see https://dialpad.design/components/badge.html
|
|
2107
|
+
*/
|
|
2108
|
+
|
|
2109
|
+
/* harmony default export */ const badgevue_type_script_lang_js_ = ({
|
|
2110
|
+
name: 'DtBadge',
|
|
2111
|
+
components: {
|
|
2112
|
+
DtIcon: icon
|
|
2113
|
+
},
|
|
2114
|
+
props: {
|
|
2115
|
+
/**
|
|
2116
|
+
* Icon on the left side of the badge. Supports any valid icon name from the icon catalog at
|
|
2117
|
+
* https://dialpad.design/components/icon.html#icon-catalog. If type:'ai' is set, the ai icon
|
|
2118
|
+
* will automatically be shown here, but this can be overridden by setting this prop.
|
|
2119
|
+
*/
|
|
2120
|
+
iconLeft: {
|
|
2121
|
+
type: String,
|
|
2122
|
+
default: ''
|
|
2123
|
+
},
|
|
2124
|
+
|
|
2125
|
+
/**
|
|
2126
|
+
* Icon on the right side of the badge. Supports any valid icon name from the icon catalog at
|
|
2127
|
+
* https://dialpad.design/components/icon.html#icon-catalog
|
|
2128
|
+
*/
|
|
2129
|
+
iconRight: {
|
|
2130
|
+
type: String,
|
|
2131
|
+
default: ''
|
|
2132
|
+
},
|
|
2133
|
+
|
|
2134
|
+
/**
|
|
2135
|
+
* Text for the badge content
|
|
2136
|
+
*/
|
|
2137
|
+
text: {
|
|
2138
|
+
type: String,
|
|
2139
|
+
default: ''
|
|
2140
|
+
},
|
|
2141
|
+
|
|
2142
|
+
/**
|
|
2143
|
+
* The kind of badge which determines the styling
|
|
2144
|
+
* @values label, count
|
|
2145
|
+
*/
|
|
2146
|
+
kind: {
|
|
2147
|
+
type: String,
|
|
2148
|
+
default: 'label',
|
|
2149
|
+
validator: kind => Object.keys(BADGE_KIND_MODIFIERS).includes(kind)
|
|
2150
|
+
},
|
|
2151
|
+
|
|
2152
|
+
/**
|
|
2153
|
+
* Color for the badge background
|
|
2154
|
+
* @values default, info, success, warning, critical, bulletin, ai
|
|
2155
|
+
*/
|
|
2156
|
+
type: {
|
|
2157
|
+
type: String,
|
|
2158
|
+
default: 'default',
|
|
2159
|
+
validator: type => Object.keys(BADGE_TYPE_MODIFIERS).includes(type)
|
|
2160
|
+
}
|
|
2161
|
+
},
|
|
2162
|
+
|
|
2163
|
+
data() {
|
|
2164
|
+
return {
|
|
2165
|
+
BADGE_TYPE_MODIFIERS: BADGE_TYPE_MODIFIERS,
|
|
2166
|
+
BADGE_KIND_MODIFIERS: BADGE_KIND_MODIFIERS
|
|
2167
|
+
};
|
|
2168
|
+
},
|
|
2169
|
+
|
|
2170
|
+
watch: {
|
|
2171
|
+
$props: {
|
|
2172
|
+
immediate: true,
|
|
2173
|
+
deep: true,
|
|
2174
|
+
|
|
2175
|
+
handler() {
|
|
2176
|
+
this.validateProps();
|
|
2177
|
+
}
|
|
2178
|
+
|
|
2179
|
+
}
|
|
2180
|
+
},
|
|
2181
|
+
methods: {
|
|
2182
|
+
validateProps() {
|
|
2183
|
+
if (this.type === 'ai' && this.kind === 'count') {
|
|
2184
|
+
console.error('DtBadge error: type: \'ai\' with kind: \'count\' is an invalid combination.');
|
|
2185
|
+
}
|
|
2186
|
+
}
|
|
2187
|
+
|
|
2188
|
+
}
|
|
2189
|
+
});
|
|
2190
|
+
;// CONCATENATED MODULE: ./components/badge/badge.vue?vue&type=script&lang=js&
|
|
2191
|
+
/* harmony default export */ const badge_badgevue_type_script_lang_js_ = (badgevue_type_script_lang_js_);
|
|
2192
|
+
;// CONCATENATED MODULE: ./components/badge/badge.vue
|
|
2193
|
+
|
|
2194
|
+
|
|
2195
|
+
|
|
2196
|
+
|
|
2197
|
+
|
|
2198
|
+
/* normalize component */
|
|
2199
|
+
;
|
|
2200
|
+
var badge_component = normalizeComponent(
|
|
2201
|
+
badge_badgevue_type_script_lang_js_,
|
|
2202
|
+
badgevue_type_template_id_741d001d_render,
|
|
2203
|
+
badgevue_type_template_id_741d001d_staticRenderFns,
|
|
2204
|
+
false,
|
|
2205
|
+
null,
|
|
2206
|
+
null,
|
|
2207
|
+
null
|
|
2208
|
+
|
|
2209
|
+
)
|
|
2210
|
+
|
|
2211
|
+
/* harmony default export */ const badge = (badge_component.exports);
|
|
2212
|
+
;// CONCATENATED MODULE: ./components/badge/index.js
|
|
2213
|
+
|
|
2214
|
+
|
|
2215
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/banner/banner.vue?vue&type=template&id=756779c1&
|
|
2216
|
+
var bannervue_type_template_id_756779c1_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('aside',{class:_vm.bannerClass,style:(_vm.bannerBackgroundImage),attrs:{"role":_vm.role},on:{"keydown":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"tab",9,$event.key,"Tab")){ return null; }return _vm.trapFocus.apply(null, arguments)}}},[_c('div',{staticClass:"d-banner__dialog",class:_vm.dialogClass,attrs:{"aria-labelledby":_vm.titleId,"aria-describedby":_vm.contentId}},[(!_vm.hideIcon)?_c('dt-notice-icon',_vm._g({attrs:{"kind":_vm.kind}},_vm.$listeners),[_vm._t("icon")],2):_vm._e(),_c('dt-notice-content',_vm._g({attrs:{"title-id":_vm.titleId,"content-id":_vm.contentId,"title":_vm.title},scopedSlots:_vm._u([{key:"titleOverride",fn:function(){return [_vm._t("titleOverride")]},proxy:true}],null,true)},_vm.$listeners),[_vm._t("default")],2),_c('dt-notice-action',_vm._g({attrs:{"hide-close":_vm.hideClose,"close-button-props":_vm.closeButtonProps,"visually-hidden-close":_vm.visuallyHiddenClose,"visually-hidden-close-label":_vm.visuallyHiddenCloseLabel}},_vm.$listeners),[_vm._t("action")],2)],1)])}
|
|
2217
|
+
var bannervue_type_template_id_756779c1_staticRenderFns = []
|
|
2218
|
+
|
|
2219
|
+
|
|
2220
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/notice/notice_icon.vue?vue&type=template&id=dbeeebfa&
|
|
2221
|
+
var notice_iconvue_type_template_id_dbeeebfa_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.defaultIcon || _vm.$slots.default)?_c('div',{staticClass:"d-notice__icon",attrs:{"aria-hidden":"true"}},[_vm._t("default",function(){return [_c('dt-icon',{attrs:{"name":_vm.defaultIcon,"size":"400"}})]})],2):_vm._e()}
|
|
2222
|
+
var notice_iconvue_type_template_id_dbeeebfa_staticRenderFns = []
|
|
2223
|
+
|
|
2224
|
+
|
|
2156
2225
|
;// CONCATENATED MODULE: ./components/notice/notice_constants.js
|
|
2157
2226
|
const NOTICE_KINDS = ['base', 'error', 'info', 'success', 'warning'];
|
|
2158
2227
|
const NOTICE_ROLES = ['alert', 'alertdialog', 'status'];
|