@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
|
@@ -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'];
|
|
@@ -6153,12 +6222,12 @@ var combobox_component = normalizeComponent(
|
|
|
6153
6222
|
/* harmony default export */ const combobox = (combobox_component.exports);
|
|
6154
6223
|
;// CONCATENATED MODULE: ./components/combobox/index.js
|
|
6155
6224
|
|
|
6156
|
-
;// 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=
|
|
6157
|
-
var
|
|
6225
|
+
;// 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&
|
|
6226
|
+
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:[
|
|
6158
6227
|
'd-dt-collapsibe__anchor',
|
|
6159
6228
|
_vm.anchorClass ],attrs:{"id":!_vm.ariaLabelledBy && _vm.labelledBy}},[_vm._t("anchor",function(){return [_c('dt-button',{style:({
|
|
6160
6229
|
'width': _vm.maxWidth,
|
|
6161
|
-
}),attrs:{"importance":"clear","kind":"muted","aria-controls":_vm.id,"aria-expanded":("" + _vm.isOpen)
|
|
6230
|
+
}),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":{
|
|
6162
6231
|
'aria-controls': _vm.id,
|
|
6163
6232
|
'aria-expanded': _vm.isOpen.toString(),
|
|
6164
6233
|
'role': 'button',
|
|
@@ -6167,13 +6236,13 @@ var collapsiblevue_type_template_id_85d2157c_render = function () {var _vm=this;
|
|
|
6167
6236
|
_vm.contentClass ],style:({
|
|
6168
6237
|
'max-height': _vm.maxHeight,
|
|
6169
6238
|
'max-width': _vm.maxWidth,
|
|
6170
|
-
}),attrs:{"id":_vm.id,"aria-hidden":("" + (!_vm.isOpen
|
|
6171
|
-
var
|
|
6239
|
+
}),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)}
|
|
6240
|
+
var collapsiblevue_type_template_id_7f94e9c4_staticRenderFns = []
|
|
6172
6241
|
|
|
6173
6242
|
|
|
6174
|
-
;// 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=
|
|
6175
|
-
var
|
|
6176
|
-
var
|
|
6243
|
+
;// 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&
|
|
6244
|
+
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)}
|
|
6245
|
+
var collapsible_lazy_showvue_type_template_id_2bfe7a0c_staticRenderFns = []
|
|
6177
6246
|
|
|
6178
6247
|
|
|
6179
6248
|
;// 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/collapsible/collapsible_lazy_show.vue?vue&type=script&lang=js&
|
|
@@ -6202,32 +6271,6 @@ var collapsible_lazy_showvue_type_template_id_cc3472b8_staticRenderFns = []
|
|
|
6202
6271
|
//
|
|
6203
6272
|
//
|
|
6204
6273
|
//
|
|
6205
|
-
//
|
|
6206
|
-
//
|
|
6207
|
-
//
|
|
6208
|
-
//
|
|
6209
|
-
//
|
|
6210
|
-
//
|
|
6211
|
-
//
|
|
6212
|
-
//
|
|
6213
|
-
//
|
|
6214
|
-
//
|
|
6215
|
-
//
|
|
6216
|
-
//
|
|
6217
|
-
//
|
|
6218
|
-
//
|
|
6219
|
-
//
|
|
6220
|
-
//
|
|
6221
|
-
//
|
|
6222
|
-
//
|
|
6223
|
-
//
|
|
6224
|
-
//
|
|
6225
|
-
//
|
|
6226
|
-
//
|
|
6227
|
-
//
|
|
6228
|
-
//
|
|
6229
|
-
//
|
|
6230
|
-
//
|
|
6231
6274
|
/* harmony default export */ const collapsible_lazy_showvue_type_script_lang_js_ = ({
|
|
6232
6275
|
name: 'DtCollapsibleLazyShow',
|
|
6233
6276
|
|
|
@@ -6238,7 +6281,7 @@ var collapsible_lazy_showvue_type_template_id_cc3472b8_staticRenderFns = []
|
|
|
6238
6281
|
/**
|
|
6239
6282
|
* Whether the child slot is shown.
|
|
6240
6283
|
*/
|
|
6241
|
-
|
|
6284
|
+
show: {
|
|
6242
6285
|
type: Boolean,
|
|
6243
6286
|
default: null
|
|
6244
6287
|
},
|
|
@@ -6259,7 +6302,29 @@ var collapsible_lazy_showvue_type_template_id_cc3472b8_staticRenderFns = []
|
|
|
6259
6302
|
default: 'div'
|
|
6260
6303
|
}
|
|
6261
6304
|
},
|
|
6305
|
+
|
|
6306
|
+
/******************
|
|
6307
|
+
* DATA *
|
|
6308
|
+
******************/
|
|
6309
|
+
data() {
|
|
6310
|
+
return {
|
|
6311
|
+
initialized: !!this.show
|
|
6312
|
+
};
|
|
6313
|
+
},
|
|
6314
|
+
|
|
6315
|
+
/******************
|
|
6316
|
+
* WATCH *
|
|
6317
|
+
******************/
|
|
6318
|
+
watch: {
|
|
6319
|
+
show: function (newValue) {
|
|
6320
|
+
if (!newValue || this.initialized) return;
|
|
6321
|
+
this.initialized = true;
|
|
6322
|
+
}
|
|
6323
|
+
},
|
|
6262
6324
|
methods: {
|
|
6325
|
+
/**
|
|
6326
|
+
* @param {HTMLElement} element
|
|
6327
|
+
*/
|
|
6263
6328
|
beforeEnter(element) {
|
|
6264
6329
|
requestAnimationFrame(() => {
|
|
6265
6330
|
if (!element.style.height) {
|
|
@@ -6336,8 +6401,8 @@ var collapsible_lazy_showvue_type_style_index_0_lang_css_ = __webpack_require__(
|
|
|
6336
6401
|
|
|
6337
6402
|
var collapsible_lazy_show_component = normalizeComponent(
|
|
6338
6403
|
collapsible_collapsible_lazy_showvue_type_script_lang_js_,
|
|
6339
|
-
|
|
6340
|
-
|
|
6404
|
+
collapsible_lazy_showvue_type_template_id_2bfe7a0c_render,
|
|
6405
|
+
collapsible_lazy_showvue_type_template_id_2bfe7a0c_staticRenderFns,
|
|
6341
6406
|
false,
|
|
6342
6407
|
null,
|
|
6343
6408
|
null,
|
|
@@ -6529,12 +6594,6 @@ var lazy_show_component = normalizeComponent(
|
|
|
6529
6594
|
//
|
|
6530
6595
|
//
|
|
6531
6596
|
//
|
|
6532
|
-
//
|
|
6533
|
-
//
|
|
6534
|
-
//
|
|
6535
|
-
//
|
|
6536
|
-
//
|
|
6537
|
-
//
|
|
6538
6597
|
|
|
6539
6598
|
|
|
6540
6599
|
|
|
@@ -6638,7 +6697,7 @@ var lazy_show_component = normalizeComponent(
|
|
|
6638
6697
|
},
|
|
6639
6698
|
|
|
6640
6699
|
/**
|
|
6641
|
-
* Label on the
|
|
6700
|
+
* Label on the collapsible content. Should provide this or ariaLabelledBy but not both.
|
|
6642
6701
|
*/
|
|
6643
6702
|
ariaLabel: {
|
|
6644
6703
|
type: String,
|
|
@@ -6679,10 +6738,6 @@ var lazy_show_component = normalizeComponent(
|
|
|
6679
6738
|
// aria-labelledby should be set only if aria-labelledby is passed as a prop, or if
|
|
6680
6739
|
// there is no aria-label and the labelledby should point to the anchor
|
|
6681
6740
|
return this.ariaLabelledBy || !this.ariaLabel && getUniqueString('DtCollapsible__anchor');
|
|
6682
|
-
},
|
|
6683
|
-
|
|
6684
|
-
hasContentOnCollapse() {
|
|
6685
|
-
return !!this.$slots.contentOnCollapsed;
|
|
6686
6741
|
}
|
|
6687
6742
|
|
|
6688
6743
|
},
|
|
@@ -6702,16 +6757,32 @@ var lazy_show_component = normalizeComponent(
|
|
|
6702
6757
|
},
|
|
6703
6758
|
|
|
6704
6759
|
methods: {
|
|
6705
|
-
|
|
6706
|
-
this.$emit('opened',
|
|
6760
|
+
onLeaveTransitionComplete() {
|
|
6761
|
+
this.$emit('opened', false);
|
|
6762
|
+
|
|
6763
|
+
if (this.open !== null) {
|
|
6764
|
+
this.$emit('update:open', false);
|
|
6765
|
+
}
|
|
6766
|
+
},
|
|
6767
|
+
|
|
6768
|
+
onEnterTransitionComplete() {
|
|
6769
|
+
this.$emit('opened', true, this.$refs.content);
|
|
6707
6770
|
|
|
6771
|
+
if (this.open !== null) {
|
|
6772
|
+
this.$emit('update:open', true);
|
|
6773
|
+
}
|
|
6774
|
+
},
|
|
6775
|
+
|
|
6776
|
+
defaultToggleOpen() {
|
|
6708
6777
|
if (this.open === null) {
|
|
6709
|
-
this.
|
|
6710
|
-
} else {
|
|
6711
|
-
this.$emit('update:open', !this.isOpen);
|
|
6778
|
+
this.toggleOpen();
|
|
6712
6779
|
}
|
|
6713
6780
|
},
|
|
6714
6781
|
|
|
6782
|
+
toggleOpen() {
|
|
6783
|
+
this.isOpen = !this.isOpen;
|
|
6784
|
+
},
|
|
6785
|
+
|
|
6715
6786
|
validateProperAnchor() {
|
|
6716
6787
|
if (!this.anchorText && !this.$scopedSlots.anchor) {
|
|
6717
6788
|
console.error('anchor text and anchor slot content cannot both be falsy');
|
|
@@ -6732,8 +6803,8 @@ var lazy_show_component = normalizeComponent(
|
|
|
6732
6803
|
;
|
|
6733
6804
|
var collapsible_component = normalizeComponent(
|
|
6734
6805
|
collapsible_collapsiblevue_type_script_lang_js_,
|
|
6735
|
-
|
|
6736
|
-
|
|
6806
|
+
collapsiblevue_type_template_id_7f94e9c4_render,
|
|
6807
|
+
collapsiblevue_type_template_id_7f94e9c4_staticRenderFns,
|
|
6737
6808
|
false,
|
|
6738
6809
|
null,
|
|
6739
6810
|
null,
|