@dialpad/dialtone-vue 2.42.0 → 2.43.1
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 +237 -166
- package/dist/dialtone-vue.umd.js +237 -166
- 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
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'];
|
|
@@ -6163,12 +6232,12 @@ var combobox_component = normalizeComponent(
|
|
|
6163
6232
|
/* harmony default export */ const combobox = (combobox_component.exports);
|
|
6164
6233
|
;// CONCATENATED MODULE: ./components/combobox/index.js
|
|
6165
6234
|
|
|
6166
|
-
;// 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/collapsible/collapsible.vue?vue&type=template&id=
|
|
6167
|
-
var
|
|
6235
|
+
;// 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/collapsible/collapsible.vue?vue&type=template&id=7f94e9c4&
|
|
6236
|
+
var collapsiblevue_type_template_id_7f94e9c4_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(_vm.elementType,_vm._g({ref:"collapsible",tag:"component"},_vm.$listeners),[_c('div',{ref:"anchor",class:[
|
|
6168
6237
|
'd-dt-collapsibe__anchor',
|
|
6169
6238
|
_vm.anchorClass ],attrs:{"id":!_vm.ariaLabelledBy && _vm.labelledBy}},[_vm._t("anchor",function(){return [_c('dt-button',{style:({
|
|
6170
6239
|
'width': _vm.maxWidth,
|
|
6171
|
-
}),attrs:{"importance":"clear","kind":"muted","aria-controls":_vm.id,"aria-expanded":("" + _vm.isOpen)
|
|
6240
|
+
}),attrs:{"importance":"clear","kind":"muted","aria-controls":_vm.id,"aria-expanded":("" + _vm.isOpen)},on:{"click":_vm.defaultToggleOpen}},[_c('dt-icon',{staticClass:"d-icon d-icon--size-300 d-mr8 d-fl-shrink0",attrs:{"name":_vm.isOpen ? 'chevron-down' : 'chevron-right'}}),_c('span',{staticClass:"d-mr-auto d-truncate",attrs:{"title":_vm.anchorText}},[_vm._v(" "+_vm._s(_vm.anchorText)+" ")])],1)]},{"attrs":{
|
|
6172
6241
|
'aria-controls': _vm.id,
|
|
6173
6242
|
'aria-expanded': _vm.isOpen.toString(),
|
|
6174
6243
|
'role': 'button',
|
|
@@ -6177,13 +6246,13 @@ var collapsiblevue_type_template_id_85d2157c_render = function () {var _vm=this;
|
|
|
6177
6246
|
_vm.contentClass ],style:({
|
|
6178
6247
|
'max-height': _vm.maxHeight,
|
|
6179
6248
|
'max-width': _vm.maxWidth,
|
|
6180
|
-
}),attrs:{"id":_vm.id,"aria-hidden":("" + (!_vm.isOpen
|
|
6181
|
-
var
|
|
6249
|
+
}),attrs:{"id":_vm.id,"aria-hidden":("" + (!_vm.isOpen)),"aria-labelledby":_vm.labelledBy,"aria-label":_vm.ariaLabel,"show":_vm.isOpen,"element-type":_vm.contentElementType,"tabindex":"-1","appear":""},on:{"after-leave":_vm.onLeaveTransitionComplete,"after-enter":_vm.onEnterTransitionComplete}},_vm.$listeners),[_vm._t("content")],2)],1)}
|
|
6250
|
+
var collapsiblevue_type_template_id_7f94e9c4_staticRenderFns = []
|
|
6182
6251
|
|
|
6183
6252
|
|
|
6184
|
-
;// 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/collapsible/collapsible_lazy_show.vue?vue&type=template&id=
|
|
6185
|
-
var
|
|
6186
|
-
var
|
|
6253
|
+
;// 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/collapsible/collapsible_lazy_show.vue?vue&type=template&id=2bfe7a0c&
|
|
6254
|
+
var collapsible_lazy_showvue_type_template_id_2bfe7a0c_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',_vm._g({attrs:{"appear":_vm.appear,"enter-active-class":"enter-active","leave-active-class":"leave-active"},on:{"before-enter":_vm.beforeEnter,"enter":_vm.enter,"after-enter":_vm.afterEnter,"before-leave":_vm.beforeLeave,"leave":_vm.leave,"after-leave":_vm.afterLeave}},_vm.$listeners),[_c(_vm.elementType,_vm._g({directives:[{name:"show",rawName:"v-show",value:(_vm.show),expression:"show"}],tag:"component"},_vm.$listeners),[(_vm.initialized)?_vm._t("default"):_vm._e()],2)],1)}
|
|
6255
|
+
var collapsible_lazy_showvue_type_template_id_2bfe7a0c_staticRenderFns = []
|
|
6187
6256
|
|
|
6188
6257
|
|
|
6189
6258
|
;// 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/collapsible/collapsible_lazy_show.vue?vue&type=script&lang=js&
|
|
@@ -6212,32 +6281,6 @@ var collapsible_lazy_showvue_type_template_id_cc3472b8_staticRenderFns = []
|
|
|
6212
6281
|
//
|
|
6213
6282
|
//
|
|
6214
6283
|
//
|
|
6215
|
-
//
|
|
6216
|
-
//
|
|
6217
|
-
//
|
|
6218
|
-
//
|
|
6219
|
-
//
|
|
6220
|
-
//
|
|
6221
|
-
//
|
|
6222
|
-
//
|
|
6223
|
-
//
|
|
6224
|
-
//
|
|
6225
|
-
//
|
|
6226
|
-
//
|
|
6227
|
-
//
|
|
6228
|
-
//
|
|
6229
|
-
//
|
|
6230
|
-
//
|
|
6231
|
-
//
|
|
6232
|
-
//
|
|
6233
|
-
//
|
|
6234
|
-
//
|
|
6235
|
-
//
|
|
6236
|
-
//
|
|
6237
|
-
//
|
|
6238
|
-
//
|
|
6239
|
-
//
|
|
6240
|
-
//
|
|
6241
6284
|
/* harmony default export */ const collapsible_lazy_showvue_type_script_lang_js_ = ({
|
|
6242
6285
|
name: 'DtCollapsibleLazyShow',
|
|
6243
6286
|
|
|
@@ -6248,7 +6291,7 @@ var collapsible_lazy_showvue_type_template_id_cc3472b8_staticRenderFns = []
|
|
|
6248
6291
|
/**
|
|
6249
6292
|
* Whether the child slot is shown.
|
|
6250
6293
|
*/
|
|
6251
|
-
|
|
6294
|
+
show: {
|
|
6252
6295
|
type: Boolean,
|
|
6253
6296
|
default: null
|
|
6254
6297
|
},
|
|
@@ -6269,7 +6312,29 @@ var collapsible_lazy_showvue_type_template_id_cc3472b8_staticRenderFns = []
|
|
|
6269
6312
|
default: 'div'
|
|
6270
6313
|
}
|
|
6271
6314
|
},
|
|
6315
|
+
|
|
6316
|
+
/******************
|
|
6317
|
+
* DATA *
|
|
6318
|
+
******************/
|
|
6319
|
+
data() {
|
|
6320
|
+
return {
|
|
6321
|
+
initialized: !!this.show
|
|
6322
|
+
};
|
|
6323
|
+
},
|
|
6324
|
+
|
|
6325
|
+
/******************
|
|
6326
|
+
* WATCH *
|
|
6327
|
+
******************/
|
|
6328
|
+
watch: {
|
|
6329
|
+
show: function (newValue) {
|
|
6330
|
+
if (!newValue || this.initialized) return;
|
|
6331
|
+
this.initialized = true;
|
|
6332
|
+
}
|
|
6333
|
+
},
|
|
6272
6334
|
methods: {
|
|
6335
|
+
/**
|
|
6336
|
+
* @param {HTMLElement} element
|
|
6337
|
+
*/
|
|
6273
6338
|
beforeEnter(element) {
|
|
6274
6339
|
requestAnimationFrame(() => {
|
|
6275
6340
|
if (!element.style.height) {
|
|
@@ -6346,8 +6411,8 @@ var collapsible_lazy_showvue_type_style_index_0_lang_css_ = __webpack_require__(
|
|
|
6346
6411
|
|
|
6347
6412
|
var collapsible_lazy_show_component = normalizeComponent(
|
|
6348
6413
|
collapsible_collapsible_lazy_showvue_type_script_lang_js_,
|
|
6349
|
-
|
|
6350
|
-
|
|
6414
|
+
collapsible_lazy_showvue_type_template_id_2bfe7a0c_render,
|
|
6415
|
+
collapsible_lazy_showvue_type_template_id_2bfe7a0c_staticRenderFns,
|
|
6351
6416
|
false,
|
|
6352
6417
|
null,
|
|
6353
6418
|
null,
|
|
@@ -6539,12 +6604,6 @@ var lazy_show_component = normalizeComponent(
|
|
|
6539
6604
|
//
|
|
6540
6605
|
//
|
|
6541
6606
|
//
|
|
6542
|
-
//
|
|
6543
|
-
//
|
|
6544
|
-
//
|
|
6545
|
-
//
|
|
6546
|
-
//
|
|
6547
|
-
//
|
|
6548
6607
|
|
|
6549
6608
|
|
|
6550
6609
|
|
|
@@ -6648,7 +6707,7 @@ var lazy_show_component = normalizeComponent(
|
|
|
6648
6707
|
},
|
|
6649
6708
|
|
|
6650
6709
|
/**
|
|
6651
|
-
* Label on the
|
|
6710
|
+
* Label on the collapsible content. Should provide this or ariaLabelledBy but not both.
|
|
6652
6711
|
*/
|
|
6653
6712
|
ariaLabel: {
|
|
6654
6713
|
type: String,
|
|
@@ -6689,10 +6748,6 @@ var lazy_show_component = normalizeComponent(
|
|
|
6689
6748
|
// aria-labelledby should be set only if aria-labelledby is passed as a prop, or if
|
|
6690
6749
|
// there is no aria-label and the labelledby should point to the anchor
|
|
6691
6750
|
return this.ariaLabelledBy || !this.ariaLabel && getUniqueString('DtCollapsible__anchor');
|
|
6692
|
-
},
|
|
6693
|
-
|
|
6694
|
-
hasContentOnCollapse() {
|
|
6695
|
-
return !!this.$slots.contentOnCollapsed;
|
|
6696
6751
|
}
|
|
6697
6752
|
|
|
6698
6753
|
},
|
|
@@ -6712,16 +6767,32 @@ var lazy_show_component = normalizeComponent(
|
|
|
6712
6767
|
},
|
|
6713
6768
|
|
|
6714
6769
|
methods: {
|
|
6715
|
-
|
|
6716
|
-
this.$emit('opened',
|
|
6770
|
+
onLeaveTransitionComplete() {
|
|
6771
|
+
this.$emit('opened', false);
|
|
6772
|
+
|
|
6773
|
+
if (this.open !== null) {
|
|
6774
|
+
this.$emit('update:open', false);
|
|
6775
|
+
}
|
|
6776
|
+
},
|
|
6777
|
+
|
|
6778
|
+
onEnterTransitionComplete() {
|
|
6779
|
+
this.$emit('opened', true, this.$refs.content);
|
|
6717
6780
|
|
|
6781
|
+
if (this.open !== null) {
|
|
6782
|
+
this.$emit('update:open', true);
|
|
6783
|
+
}
|
|
6784
|
+
},
|
|
6785
|
+
|
|
6786
|
+
defaultToggleOpen() {
|
|
6718
6787
|
if (this.open === null) {
|
|
6719
|
-
this.
|
|
6720
|
-
} else {
|
|
6721
|
-
this.$emit('update:open', !this.isOpen);
|
|
6788
|
+
this.toggleOpen();
|
|
6722
6789
|
}
|
|
6723
6790
|
},
|
|
6724
6791
|
|
|
6792
|
+
toggleOpen() {
|
|
6793
|
+
this.isOpen = !this.isOpen;
|
|
6794
|
+
},
|
|
6795
|
+
|
|
6725
6796
|
validateProperAnchor() {
|
|
6726
6797
|
if (!this.anchorText && !this.$scopedSlots.anchor) {
|
|
6727
6798
|
console.error('anchor text and anchor slot content cannot both be falsy');
|
|
@@ -6742,8 +6813,8 @@ var lazy_show_component = normalizeComponent(
|
|
|
6742
6813
|
;
|
|
6743
6814
|
var collapsible_component = normalizeComponent(
|
|
6744
6815
|
collapsible_collapsiblevue_type_script_lang_js_,
|
|
6745
|
-
|
|
6746
|
-
|
|
6816
|
+
collapsiblevue_type_template_id_7f94e9c4_render,
|
|
6817
|
+
collapsiblevue_type_template_id_7f94e9c4_staticRenderFns,
|
|
6747
6818
|
false,
|
|
6748
6819
|
null,
|
|
6749
6820
|
null,
|