@dialpad/dialtone-vue 2.41.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.
@@ -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
- "BADGE_COLOR_MODIFIERS": () => (/* reexport */ BADGE_COLOR_MODIFIERS),
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=fea57e1e&
1927
- var badgevue_type_template_id_fea57e1e_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{class:[
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.BADGE_COLOR_MODIFIERS[_vm.color] ],attrs:{"data-qa":"dt-badge"}},[_vm._t("default",function(){return [_vm._v(" "+_vm._s(_vm.text)+" ")]})],2)}
1930
- var badgevue_type_template_id_fea57e1e_staticRenderFns = []
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 BADGE_COLOR_MODIFIERS = {
1935
- base: '',
1936
- 'black-700': 'd-badge--black-700',
1937
- 'green-400': 'd-badge--green-400',
1938
- 'orange-400': 'd-badge--orange-400',
1939
- 'magenta-100': 'd-badge--magenta-100',
1940
- 'magenta-300': 'd-badge--magenta-300',
1941
- 'magenta-400': 'd-badge--magenta-400',
1942
- 'magenta-500': 'd-badge--magenta-500',
1943
- 'purple-100': 'd-badge--purple-100',
1944
- 'purple-300': 'd-badge--purple-300',
1945
- 'purple-400': 'd-badge--purple-400',
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'];
@@ -3936,9 +4005,9 @@ var card_component = normalizeComponent(
3936
4005
  /* harmony default export */ const card = (card_component.exports);
3937
4006
  ;// CONCATENATED MODULE: ./components/card/index.js
3938
4007
 
3939
- ;// 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/combobox/combobox.vue?vue&type=template&id=66a9d4d5&
3940
- var comboboxvue_type_template_id_66a9d4d5_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{on:{"keydown":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"esc",27,$event.key,["Esc","Escape"])){ return null; }$event.stopPropagation();return _vm.onKeyValidation($event, 'onEscapeKey')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }if($event.ctrlKey||$event.shiftKey||$event.altKey||$event.metaKey){ return null; }return _vm.onKeyValidation($event, 'onEnterKey')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"up",38,$event.key,["Up","ArrowUp"])){ return null; }$event.stopPropagation();$event.preventDefault();return _vm.onKeyValidation($event, 'onUpKey')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"down",40,$event.key,["Down","ArrowDown"])){ return null; }$event.stopPropagation();$event.preventDefault();return _vm.onKeyValidation($event, 'onDownKey')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"home",undefined,$event.key,undefined)){ return null; }$event.stopPropagation();$event.preventDefault();return _vm.onKeyValidation($event, 'onHomeKey')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"end",undefined,$event.key,undefined)){ return null; }$event.stopPropagation();$event.preventDefault();return _vm.onKeyValidation($event, 'onEndKey')}]}},[_c('div',{attrs:{"data-qa":"dt-combobox-input-wrapper"}},[_vm._t("input",null,{"inputProps":_vm.inputProps})],2),(_vm.showList)?_c('div',{ref:"listWrapper",attrs:{"data-qa":"dt-combobox-list-wrapper"},on:{"mouseleave":_vm.clearHighlightIndex,"focusout":_vm.clearHighlightIndex,"!mousemove":function($event){return _vm.onMouseHighlight.apply(null, arguments)}}},[(_vm.loading && !_vm.listRenderedOutside)?_c('combobox-loading-list',_vm._b({},'combobox-loading-list',_vm.listProps,false)):(_vm.emptyList && (_vm.emptyStateMessage || _vm.$slots.emptyListItem) && !_vm.listRenderedOutside)?_c('combobox-empty-list',_vm._b({attrs:{"message":_vm.emptyStateMessage,"item-class":_vm.emptyStateClass}},'combobox-empty-list',_vm.listProps,false),[_vm._t("emptyListItem")],2):_vm._t("list",null,{"listProps":_vm.listProps,"opened":_vm.onOpen,"clearHighlightIndex":_vm.clearHighlightIndex})],2):_vm._e()])}
3941
- var comboboxvue_type_template_id_66a9d4d5_staticRenderFns = []
4008
+ ;// 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/combobox/combobox.vue?vue&type=template&id=3595da7e&
4009
+ var comboboxvue_type_template_id_3595da7e_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{on:{"keydown":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"esc",27,$event.key,["Esc","Escape"])){ return null; }$event.stopPropagation();return _vm.onKeyValidation($event, 'onEscapeKey')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }if($event.ctrlKey||$event.shiftKey||$event.altKey||$event.metaKey){ return null; }return _vm.onKeyValidation($event, 'onEnterKey')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"up",38,$event.key,["Up","ArrowUp"])){ return null; }$event.stopPropagation();$event.preventDefault();return _vm.onKeyValidation($event, 'onUpKey')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"down",40,$event.key,["Down","ArrowDown"])){ return null; }$event.stopPropagation();$event.preventDefault();return _vm.onKeyValidation($event, 'onDownKey')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"home",undefined,$event.key,undefined)){ return null; }$event.stopPropagation();$event.preventDefault();return _vm.onKeyValidation($event, 'onHomeKey')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"end",undefined,$event.key,undefined)){ return null; }$event.stopPropagation();$event.preventDefault();return _vm.onKeyValidation($event, 'onEndKey')}]}},[_c('div',{attrs:{"data-qa":"dt-combobox-input-wrapper"}},[_vm._t("input",null,{"inputProps":_vm.inputProps})],2),(_vm.showList)?_c('div',{ref:"listWrapper",attrs:{"data-qa":"dt-combobox-list-wrapper"},on:{"mouseleave":_vm.clearHighlightIndex,"focusout":_vm.clearHighlightIndex,"!mousemove":function($event){return _vm.onMouseHighlight.apply(null, arguments)}}},[(_vm.loading && !_vm.listRenderedOutside)?_c('combobox-loading-list',_vm._b({},'combobox-loading-list',_vm.listProps,false)):(_vm.emptyList && (_vm.emptyStateMessage || _vm.$slots.emptyListItem) && !_vm.listRenderedOutside)?_c('combobox-empty-list',_vm._b({attrs:{"message":_vm.emptyStateMessage,"item-class":_vm.emptyStateClass}},'combobox-empty-list',_vm.listProps,false),[_vm._t("emptyListItem")],2):_vm._t("list",null,{"listProps":_vm.listProps,"opened":_vm.onOpen,"clearHighlightIndex":_vm.clearHighlightIndex})],2):_vm._e()])}
4010
+ var comboboxvue_type_template_id_3595da7e_staticRenderFns = []
3942
4011
 
3943
4012
 
3944
4013
  ;// CONCATENATED MODULE: ./common/mixins/dom.js
@@ -5720,6 +5789,14 @@ var combobox_empty_list_component = normalizeComponent(
5720
5789
  )
5721
5790
 
5722
5791
  /* harmony default export */ const combobox_empty_list = (combobox_empty_list_component.exports);
5792
+ ;// CONCATENATED MODULE: ./components/combobox/combobox_constants.js
5793
+ const LABEL_SIZES = {
5794
+ EXTRA_SMALL: 'xs',
5795
+ SMALL: 'sm',
5796
+ DEFAULT: 'md',
5797
+ LARGE: 'lg',
5798
+ EXTRA_LARGE: 'xl'
5799
+ };
5723
5800
  ;// 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/combobox/combobox.vue?vue&type=script&lang=js&
5724
5801
  //
5725
5802
  //
@@ -5773,6 +5850,7 @@ var combobox_empty_list_component = normalizeComponent(
5773
5850
 
5774
5851
 
5775
5852
 
5853
+
5776
5854
  /**
5777
5855
  * A combobox is a semantic component that displays an input element combined with a listbox,
5778
5856
  * which enables the user to select items from the list.
@@ -5796,13 +5874,40 @@ var combobox_empty_list_component = normalizeComponent(
5796
5874
  })],
5797
5875
  props: {
5798
5876
  /**
5799
- * String to use for the list's aria-label.
5877
+ * String to use for the input label.
5800
5878
  */
5801
- listAriaLabel: {
5879
+ label: {
5802
5880
  type: String,
5803
5881
  required: true
5804
5882
  },
5805
5883
 
5884
+ /**
5885
+ * Determines visibility of input label.
5886
+ * @values true, false
5887
+ */
5888
+ labelVisible: {
5889
+ type: Boolean,
5890
+ default: true
5891
+ },
5892
+
5893
+ /**
5894
+ * Size of the input, one of `xs`, `sm`, `md`, `lg`, `xl`
5895
+ * @values null, xs, sm, md, lg, xl
5896
+ */
5897
+ size: {
5898
+ type: String,
5899
+ default: null,
5900
+ validator: t => Object.values(LABEL_SIZES).includes(t)
5901
+ },
5902
+
5903
+ /**
5904
+ * Description for the input
5905
+ */
5906
+ description: {
5907
+ type: String,
5908
+ default: ''
5909
+ },
5910
+
5806
5911
  /**
5807
5912
  * Sets an ID on the list element of the component. Used by several aria attributes
5808
5913
  * as well as when deriving the IDs for each item.
@@ -5937,7 +6042,12 @@ var combobox_empty_list_component = normalizeComponent(
5937
6042
  computed: {
5938
6043
  inputProps() {
5939
6044
  return {
6045
+ label: this.label,
6046
+ labelVisible: this.labelVisible,
6047
+ size: this.size,
6048
+ description: this.description,
5940
6049
  role: 'combobox',
6050
+ 'aria-label': this.label,
5941
6051
  'aria-expanded': this.showList.toString(),
5942
6052
  'aria-owns': this.listId,
5943
6053
  'aria-haspopup': 'listbox',
@@ -5953,7 +6063,7 @@ var combobox_empty_list_component = normalizeComponent(
5953
6063
  // The list has to be positioned relatively so that the auto-scroll can
5954
6064
  // calculate the correct offset for the list items.
5955
6065
  class: 'd-ps-relative',
5956
- 'aria-label': this.listAriaLabel
6066
+ 'aria-label': this.label
5957
6067
  };
5958
6068
  },
5959
6069
 
@@ -6110,8 +6220,8 @@ var combobox_empty_list_component = normalizeComponent(
6110
6220
  ;
6111
6221
  var combobox_component = normalizeComponent(
6112
6222
  combobox_comboboxvue_type_script_lang_js_,
6113
- comboboxvue_type_template_id_66a9d4d5_render,
6114
- comboboxvue_type_template_id_66a9d4d5_staticRenderFns,
6223
+ comboboxvue_type_template_id_3595da7e_render,
6224
+ comboboxvue_type_template_id_3595da7e_staticRenderFns,
6115
6225
  false,
6116
6226
  null,
6117
6227
  null,
@@ -6122,12 +6232,12 @@ var combobox_component = normalizeComponent(
6122
6232
  /* harmony default export */ const combobox = (combobox_component.exports);
6123
6233
  ;// CONCATENATED MODULE: ./components/combobox/index.js
6124
6234
 
6125
- ;// 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&
6126
- 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:[
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=85d2157c&
6236
+ var collapsiblevue_type_template_id_85d2157c_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:[
6127
6237
  'd-dt-collapsibe__anchor',
6128
6238
  _vm.anchorClass ],attrs:{"id":!_vm.ariaLabelledBy && _vm.labelledBy}},[_vm._t("anchor",function(){return [_c('dt-button',{style:({
6129
6239
  'width': _vm.maxWidth,
6130
- }),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":{
6240
+ }),attrs:{"importance":"clear","kind":"muted","aria-controls":_vm.id,"aria-expanded":("" + _vm.isOpen),"aria-label":_vm.ariaLabel},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":{
6131
6241
  'aria-controls': _vm.id,
6132
6242
  'aria-expanded': _vm.isOpen.toString(),
6133
6243
  'role': 'button',
@@ -6136,13 +6246,13 @@ var collapsiblevue_type_template_id_7f94e9c4_render = function () {var _vm=this;
6136
6246
  _vm.contentClass ],style:({
6137
6247
  'max-height': _vm.maxHeight,
6138
6248
  'max-width': _vm.maxWidth,
6139
- }),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)}
6140
- var collapsiblevue_type_template_id_7f94e9c4_staticRenderFns = []
6249
+ }),attrs:{"id":_vm.id,"aria-hidden":("" + (!_vm.isOpen && !_vm.hasContentOnCollapse)),"aria-labelledby":_vm.labelledBy,"is-expanded":_vm.isOpen,"element-type":_vm.contentElementType,"tabindex":"-1","appear":""},scopedSlots:_vm._u([{key:"contentOnExpanded",fn:function(){return [_vm._t("contentOnExpanded")]},proxy:true},{key:"contentOnCollapsed",fn:function(){return [_vm._t("contentOnCollapsed")]},proxy:true}],null,true)},_vm.$listeners))],1)}
6250
+ var collapsiblevue_type_template_id_85d2157c_staticRenderFns = []
6141
6251
 
6142
6252
 
6143
- ;// 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&
6144
- 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)}
6145
- var collapsible_lazy_showvue_type_template_id_2bfe7a0c_staticRenderFns = []
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=cc3472b8&
6254
+ var collapsible_lazy_showvue_type_template_id_cc3472b8_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',_vm._g({attrs:{"appear":_vm.appear,"mode":"out-in","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),[((_vm.isExpanded && _vm.$slots.contentOnExpanded))?_c(_vm.elementType,_vm._g({key:"onOpen",tag:"component"},_vm.$listeners),[_vm._t("contentOnExpanded")],2):((!_vm.isExpanded && _vm.$slots.contentOnCollapsed))?_c(_vm.elementType,_vm._g({key:"onClose",tag:"component"},_vm.$listeners),[_vm._t("contentOnCollapsed")],2):_vm._e()],1)}
6255
+ var collapsible_lazy_showvue_type_template_id_cc3472b8_staticRenderFns = []
6146
6256
 
6147
6257
 
6148
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&
@@ -6171,6 +6281,32 @@ var collapsible_lazy_showvue_type_template_id_2bfe7a0c_staticRenderFns = []
6171
6281
  //
6172
6282
  //
6173
6283
  //
6284
+ //
6285
+ //
6286
+ //
6287
+ //
6288
+ //
6289
+ //
6290
+ //
6291
+ //
6292
+ //
6293
+ //
6294
+ //
6295
+ //
6296
+ //
6297
+ //
6298
+ //
6299
+ //
6300
+ //
6301
+ //
6302
+ //
6303
+ //
6304
+ //
6305
+ //
6306
+ //
6307
+ //
6308
+ //
6309
+ //
6174
6310
  /* harmony default export */ const collapsible_lazy_showvue_type_script_lang_js_ = ({
6175
6311
  name: 'DtCollapsibleLazyShow',
6176
6312
 
@@ -6181,7 +6317,7 @@ var collapsible_lazy_showvue_type_template_id_2bfe7a0c_staticRenderFns = []
6181
6317
  /**
6182
6318
  * Whether the child slot is shown.
6183
6319
  */
6184
- show: {
6320
+ isExpanded: {
6185
6321
  type: Boolean,
6186
6322
  default: null
6187
6323
  },
@@ -6202,29 +6338,7 @@ var collapsible_lazy_showvue_type_template_id_2bfe7a0c_staticRenderFns = []
6202
6338
  default: 'div'
6203
6339
  }
6204
6340
  },
6205
-
6206
- /******************
6207
- * DATA *
6208
- ******************/
6209
- data() {
6210
- return {
6211
- initialized: !!this.show
6212
- };
6213
- },
6214
-
6215
- /******************
6216
- * WATCH *
6217
- ******************/
6218
- watch: {
6219
- show: function (newValue) {
6220
- if (!newValue || this.initialized) return;
6221
- this.initialized = true;
6222
- }
6223
- },
6224
6341
  methods: {
6225
- /**
6226
- * @param {HTMLElement} element
6227
- */
6228
6342
  beforeEnter(element) {
6229
6343
  requestAnimationFrame(() => {
6230
6344
  if (!element.style.height) {
@@ -6301,8 +6415,8 @@ var collapsible_lazy_showvue_type_style_index_0_lang_css_ = __webpack_require__(
6301
6415
 
6302
6416
  var collapsible_lazy_show_component = normalizeComponent(
6303
6417
  collapsible_collapsible_lazy_showvue_type_script_lang_js_,
6304
- collapsible_lazy_showvue_type_template_id_2bfe7a0c_render,
6305
- collapsible_lazy_showvue_type_template_id_2bfe7a0c_staticRenderFns,
6418
+ collapsible_lazy_showvue_type_template_id_cc3472b8_render,
6419
+ collapsible_lazy_showvue_type_template_id_cc3472b8_staticRenderFns,
6306
6420
  false,
6307
6421
  null,
6308
6422
  null,
@@ -6494,6 +6608,12 @@ var lazy_show_component = normalizeComponent(
6494
6608
  //
6495
6609
  //
6496
6610
  //
6611
+ //
6612
+ //
6613
+ //
6614
+ //
6615
+ //
6616
+ //
6497
6617
 
6498
6618
 
6499
6619
 
@@ -6597,7 +6717,7 @@ var lazy_show_component = normalizeComponent(
6597
6717
  },
6598
6718
 
6599
6719
  /**
6600
- * Label on the collapsible content. Should provide this or ariaLabelledBy but not both.
6720
+ * Label on the anchor. Should provide this or ariaLabelledBy but not both.
6601
6721
  */
6602
6722
  ariaLabel: {
6603
6723
  type: String,
@@ -6638,6 +6758,10 @@ var lazy_show_component = normalizeComponent(
6638
6758
  // aria-labelledby should be set only if aria-labelledby is passed as a prop, or if
6639
6759
  // there is no aria-label and the labelledby should point to the anchor
6640
6760
  return this.ariaLabelledBy || !this.ariaLabel && getUniqueString('DtCollapsible__anchor');
6761
+ },
6762
+
6763
+ hasContentOnCollapse() {
6764
+ return !!this.$slots.contentOnCollapsed;
6641
6765
  }
6642
6766
 
6643
6767
  },
@@ -6657,32 +6781,16 @@ var lazy_show_component = normalizeComponent(
6657
6781
  },
6658
6782
 
6659
6783
  methods: {
6660
- onLeaveTransitionComplete() {
6661
- this.$emit('opened', false);
6662
-
6663
- if (this.open !== null) {
6664
- this.$emit('update:open', false);
6665
- }
6666
- },
6667
-
6668
- onEnterTransitionComplete() {
6669
- this.$emit('opened', true, this.$refs.content);
6670
-
6671
- if (this.open !== null) {
6672
- this.$emit('update:open', true);
6673
- }
6674
- },
6675
-
6676
6784
  defaultToggleOpen() {
6785
+ this.$emit('opened', !this.isOpen);
6786
+
6677
6787
  if (this.open === null) {
6678
- this.toggleOpen();
6788
+ this.isOpen = !this.isOpen;
6789
+ } else {
6790
+ this.$emit('update:open', !this.isOpen);
6679
6791
  }
6680
6792
  },
6681
6793
 
6682
- toggleOpen() {
6683
- this.isOpen = !this.isOpen;
6684
- },
6685
-
6686
6794
  validateProperAnchor() {
6687
6795
  if (!this.anchorText && !this.$scopedSlots.anchor) {
6688
6796
  console.error('anchor text and anchor slot content cannot both be falsy');
@@ -6703,8 +6811,8 @@ var lazy_show_component = normalizeComponent(
6703
6811
  ;
6704
6812
  var collapsible_component = normalizeComponent(
6705
6813
  collapsible_collapsiblevue_type_script_lang_js_,
6706
- collapsiblevue_type_template_id_7f94e9c4_render,
6707
- collapsiblevue_type_template_id_7f94e9c4_staticRenderFns,
6814
+ collapsiblevue_type_template_id_85d2157c_render,
6815
+ collapsiblevue_type_template_id_85d2157c_staticRenderFns,
6708
6816
  false,
6709
6817
  null,
6710
6818
  null,
@@ -13003,8 +13111,8 @@ var dropdown_separator_component = normalizeComponent(
13003
13111
 
13004
13112
 
13005
13113
 
13006
- ;// 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/input/input.vue?vue&type=template&id=868d44b4&
13007
- var inputvue_type_template_id_868d44b4_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"container",staticClass:"base-input",attrs:{"data-qa":"dt-input"}},[_c('label',{staticClass:"base-input__label",attrs:{"aria-details":_vm.$slots.description || _vm.description ? _vm.descriptionKey : undefined,"data-qa":"dt-input-label-wrapper"}},[_vm._t("labelSlot",function(){return [(_vm.label)?_c('div',{ref:"label",class:[
13114
+ ;// 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/input/input.vue?vue&type=template&id=356ee040&
13115
+ var inputvue_type_template_id_356ee040_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"container",staticClass:"base-input",attrs:{"data-qa":"dt-input"}},[_c('label',{staticClass:"base-input__label",attrs:{"aria-details":_vm.$slots.description || _vm.description ? _vm.descriptionKey : undefined,"data-qa":"dt-input-label-wrapper"}},[_vm._t("labelSlot",function(){return [(_vm.labelVisible && _vm.label)?_c('div',{ref:"label",class:[
13008
13116
  'base-input__label-text',
13009
13117
  'd-label',
13010
13118
  _vm.labelSizeClasses[_vm.size] ],attrs:{"data-qa":"dt-input-label"}},[_vm._v(" "+_vm._s(_vm.label)+" ")]):_vm._e()]}),(_vm.$slots.description || _vm.description || _vm.shouldValidateLength)?_c('div',{ref:"description",class:[
@@ -13013,7 +13121,7 @@ var inputvue_type_template_id_868d44b4_render = function () {var _vm=this;var _h
13013
13121
  'd-fd-column',
13014
13122
  _vm.descriptionSizeClasses[_vm.size] ],attrs:{"id":_vm.descriptionKey,"data-qa":"dt-input-description"}},[(_vm.$slots.description || _vm.description)?_c('div',[_vm._t("description",function(){return [_vm._v(_vm._s(_vm.description))]})],2):_vm._e(),(_vm.shouldValidateLength)?_c('div',{class:[
13015
13123
  'd-mb2' ],attrs:{"data-qa":"dt-input-length-description"}},[_vm._v(" "+_vm._s(_vm.validationProps.length.description)+" ")]):_vm._e()]):_vm._e(),_c('div',{class:_vm.inputWrapperClasses(),attrs:{"read-only":_vm.disabled}},[(_vm.$slots.leftIcon)?_c('span',{class:_vm.inputIconClasses('left'),attrs:{"data-qa":"dt-input-left-icon-wrapper"},on:{"focusout":_vm.onBlur}},[_vm._t("leftIcon")],2):_vm._e(),(_vm.isTextarea)?_c('textarea',_vm._g(_vm._b({ref:"input",class:_vm.inputClasses(),attrs:{"name":_vm.name,"disabled":_vm.disabled,"maxlength":_vm.shouldLimitMaxLength ? _vm.validationProps.length.max : null,"data-qa":"dt-input-input"},domProps:{"value":_vm.value}},'textarea',_vm.$attrs,false),_vm.inputListeners)):_c('input',_vm._g(_vm._b({ref:"input",class:_vm.inputClasses(),attrs:{"name":_vm.name,"type":_vm.type,"disabled":_vm.disabled,"maxlength":_vm.shouldLimitMaxLength ? _vm.validationProps.length.max : null,"data-qa":"dt-input-input"},domProps:{"value":_vm.value}},'input',_vm.$attrs,false),_vm.inputListeners)),(_vm.$slots.rightIcon)?_c('span',{class:_vm.inputIconClasses('right'),attrs:{"data-qa":"dt-input-right-icon-wrapper"},on:{"focusout":_vm.onBlur}},[_vm._t("rightIcon")],2):_vm._e()])],2),_c('dt-validation-messages',_vm._b({class:_vm.messagesClass,attrs:{"validation-messages":_vm.validationMessages,"show-messages":_vm.showMessages,"data-qa":"dt-input-messages"}},'dt-validation-messages',_vm.messagesChildProps,false))],1)}
13016
- var inputvue_type_template_id_868d44b4_staticRenderFns = []
13124
+ var inputvue_type_template_id_356ee040_staticRenderFns = []
13017
13125
 
13018
13126
 
13019
13127
  ;// CONCATENATED MODULE: ./components/input/input_constants.js
@@ -13737,7 +13845,17 @@ const MessagesMixin = {
13737
13845
  */
13738
13846
  label: {
13739
13847
  type: String,
13740
- default: ''
13848
+ default: '',
13849
+ required: true
13850
+ },
13851
+
13852
+ /**
13853
+ * Determines visibility of input label.
13854
+ * @values true, false
13855
+ */
13856
+ labelVisible: {
13857
+ type: Boolean,
13858
+ default: true
13741
13859
  },
13742
13860
 
13743
13861
  /**
@@ -14157,8 +14275,8 @@ const MessagesMixin = {
14157
14275
  ;
14158
14276
  var input_component = normalizeComponent(
14159
14277
  input_inputvue_type_script_lang_js_,
14160
- inputvue_type_template_id_868d44b4_render,
14161
- inputvue_type_template_id_868d44b4_staticRenderFns,
14278
+ inputvue_type_template_id_356ee040_render,
14279
+ inputvue_type_template_id_356ee040_staticRenderFns,
14162
14280
  false,
14163
14281
  null,
14164
14282
  null,
@@ -19047,15 +19165,15 @@ var root_layout_component = normalizeComponent(
19047
19165
  ;// CONCATENATED MODULE: ./components/root_layout/index.js
19048
19166
 
19049
19167
 
19050
- ;// 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!./recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue?vue&type=template&id=96ff85ec&
19051
- var combobox_with_popovervue_type_template_id_96ff85ec_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('dt-combobox',_vm._g({ref:"combobox",attrs:{"loading":_vm.loading,"empty-list":_vm.emptyList,"empty-state-message":_vm.emptyStateMessage,"show-list":_vm.isListShown,"on-beginning-of-list":_vm.onBeginningOfList,"on-end-of-list":_vm.onEndOfList,"list-aria-label":_vm.listAriaLabel,"list-rendered-outside":true,"list-id":_vm.listId,"data-qa":"dt-combobox"},scopedSlots:_vm._u([{key:"input",fn:function(ref){
19168
+ ;// 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!./recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue?vue&type=template&id=dea81786&
19169
+ var combobox_with_popovervue_type_template_id_dea81786_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('dt-combobox',_vm._g({ref:"combobox",attrs:{"loading":_vm.loading,"label":_vm.label,"label-visible":_vm.labelVisible,"size":_vm.size,"description":_vm.description,"empty-list":_vm.emptyList,"empty-state-message":_vm.emptyStateMessage,"show-list":_vm.isListShown,"on-beginning-of-list":_vm.onBeginningOfList,"on-end-of-list":_vm.onEndOfList,"list-rendered-outside":true,"list-id":_vm.listId,"data-qa":"dt-combobox"},scopedSlots:_vm._u([{key:"input",fn:function(ref){
19052
19170
  var inputProps = ref.inputProps;
19053
19171
  return [_c('div',{ref:"input",attrs:{"id":_vm.externalAnchor},on:{"focusin":_vm.onFocusIn,"focusout":_vm.onFocusOut,"keydown":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"up",38,$event.key,["Up","ArrowUp"])){ return null; }return _vm.openOnArrowKeyPress($event)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"down",40,$event.key,["Down","ArrowDown"])){ return null; }return _vm.openOnArrowKeyPress($event)}]}},[_vm._t("input",null,{"inputProps":inputProps,"onInput":_vm.handleDisplayList})],2)]}},{key:"list",fn:function(ref){
19054
19172
  var opened = ref.opened;
19055
19173
  var listProps = ref.listProps;
19056
19174
  var clearHighlightIndex = ref.clearHighlightIndex;
19057
19175
  return [_c('dt-popover',{ref:"popover",attrs:{"open":_vm.isListShown,"hide-on-click":_vm.showList === null,"max-height":_vm.maxHeight,"max-width":_vm.maxWidth,"offset":_vm.popoverOffset,"sticky":_vm.popoverSticky,"placement":"bottom-start","initial-focus-element":"none","padding":"none","role":"listbox","external-anchor":_vm.externalAnchor,"content-width":_vm.contentWidth,"content-tabindex":null,"modal":false,"auto-focus":false,"visually-hidden-close-label":_vm.visuallyHiddenCloseLabel,"visually-hidden-close":_vm.visuallyHiddenClose},on:{"update:open":function($event){_vm.isListShown=$event},"opened":function($event){return opened($event, arguments[1]);}},scopedSlots:_vm._u([{key:"headerContent",fn:function(){return [(_vm.$slots.header)?_c('div',{ref:"header",on:{"focusout":_vm.onFocusOut}},[_vm._t("header")],2):_vm._e()]},proxy:true},{key:"content",fn:function(){return [_c('div',{ref:"listWrapper",class:[_vm.DROPDOWN_PADDING_CLASSES[_vm.padding], _vm.listClass],on:{"mouseleave":clearHighlightIndex,"focusout":function($event){clearHighlightIndex; _vm.onFocusOut;}}},[(_vm.loading)?_c('combobox-loading-list',_vm._b({},'combobox-loading-list',listProps,false)):(_vm.emptyList && _vm.emptyStateMessage)?_c('combobox-empty-list',_vm._b({attrs:{"message":_vm.emptyStateMessage}},'combobox-empty-list',listProps,false)):_vm._t("list",null,{"listProps":listProps})],2)]},proxy:true},{key:"footerContent",fn:function(){return [(_vm.$slots.footer)?_c('div',{ref:"footer",on:{"focusout":_vm.onFocusOut}},[_vm._t("footer")],2):_vm._e()]},proxy:true}],null,true)})]}}],null,true)},_vm.comboboxListeners))}
19058
- var combobox_with_popovervue_type_template_id_96ff85ec_staticRenderFns = []
19176
+ var combobox_with_popovervue_type_template_id_dea81786_staticRenderFns = []
19059
19177
 
19060
19178
 
19061
19179
  ;// 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!./recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue?vue&type=script&lang=js&
@@ -19162,6 +19280,10 @@ var combobox_with_popovervue_type_template_id_96ff85ec_staticRenderFns = []
19162
19280
  //
19163
19281
  //
19164
19282
  //
19283
+ //
19284
+ //
19285
+ //
19286
+
19165
19287
 
19166
19288
 
19167
19289
 
@@ -19180,13 +19302,40 @@ var combobox_with_popovervue_type_template_id_96ff85ec_staticRenderFns = []
19180
19302
  mixins: [sr_only_close_button],
19181
19303
  props: {
19182
19304
  /**
19183
- * String to use for the list's aria-label.
19305
+ * String to use for the input label.
19184
19306
  */
19185
- listAriaLabel: {
19307
+ label: {
19186
19308
  type: String,
19187
19309
  required: true
19188
19310
  },
19189
19311
 
19312
+ /**
19313
+ * Determines visibility of input label.
19314
+ * @values true, false
19315
+ */
19316
+ labelVisible: {
19317
+ type: Boolean,
19318
+ default: true
19319
+ },
19320
+
19321
+ /**
19322
+ * Size of the input, one of `xs`, `sm`, `md`, `lg`, `xl`
19323
+ * @values null, xs, sm, md, lg, xl
19324
+ */
19325
+ size: {
19326
+ type: String,
19327
+ default: null,
19328
+ validator: t => Object.values(LABEL_SIZES).includes(t)
19329
+ },
19330
+
19331
+ /**
19332
+ * Description for the input
19333
+ */
19334
+ description: {
19335
+ type: String,
19336
+ default: ''
19337
+ },
19338
+
19190
19339
  /**
19191
19340
  * Determines when to show the list element and also controls the aria-expanded attribute.
19192
19341
  * Leaving this null will have the combobox trigger on input focus by default.
@@ -19399,13 +19548,12 @@ var combobox_with_popovervue_type_template_id_96ff85ec_staticRenderFns = []
19399
19548
  },
19400
19549
  methods: {
19401
19550
  handleDisplayList(value) {
19402
- if (!this.hasSuggestionList) {
19403
- if (value) {
19404
- // Displays the list after the user has typed anything
19405
- this.showComboboxList();
19406
- } else {
19407
- this.closeComboboxList();
19408
- }
19551
+ if (!this.hasSuggestionList && value) {
19552
+ this.showComboboxList();
19553
+ }
19554
+
19555
+ if (!this.hasSuggestionList && !value) {
19556
+ this.closeComboboxList();
19409
19557
  }
19410
19558
  },
19411
19559
 
@@ -19471,7 +19619,7 @@ var combobox_with_popovervue_type_template_id_96ff85ec_staticRenderFns = []
19471
19619
  }
19472
19620
  },
19473
19621
 
19474
- openOnArrowKeyPress(e) {
19622
+ openOnArrowKeyPress() {
19475
19623
  if (this.showList !== null || this.isListShown || !this.openWithArrowKeys) {
19476
19624
  return;
19477
19625
  }
@@ -19493,8 +19641,8 @@ var combobox_with_popovervue_type_template_id_96ff85ec_staticRenderFns = []
19493
19641
  ;
19494
19642
  var combobox_with_popover_component = normalizeComponent(
19495
19643
  combobox_with_popover_combobox_with_popovervue_type_script_lang_js_,
19496
- combobox_with_popovervue_type_template_id_96ff85ec_render,
19497
- combobox_with_popovervue_type_template_id_96ff85ec_staticRenderFns,
19644
+ combobox_with_popovervue_type_template_id_dea81786_render,
19645
+ combobox_with_popovervue_type_template_id_dea81786_staticRenderFns,
19498
19646
  false,
19499
19647
  null,
19500
19648
  null,
@@ -19505,11 +19653,11 @@ var combobox_with_popover_component = normalizeComponent(
19505
19653
  /* harmony default export */ const combobox_with_popover = (combobox_with_popover_component.exports);
19506
19654
  ;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_with_popover/index.js
19507
19655
 
19508
- ;// 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!./recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue?vue&type=template&id=652b0440&
19509
- var combobox_multi_selectvue_type_template_id_652b0440_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('dt-recipe-combobox-with-popover',{ref:"comboboxWithPopover",attrs:{"list-aria-label":"listAriaLabel","show-list":_vm.showList,"max-height":_vm.listMaxHeight,"popover-offset":_vm.popoverOffset,"has-suggestion-list":_vm.hasSuggestionList,"visually-hidden-close-label":_vm.visuallyHiddenCloseLabel,"visually-hidden-close":_vm.visuallyHiddenClose,"content-width":"anchor"},on:{"select":_vm.onComboboxSelect},scopedSlots:_vm._u([{key:"input",fn:function(ref){
19656
+ ;// 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!./recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue?vue&type=template&id=e5d9bc3a&
19657
+ var combobox_multi_selectvue_type_template_id_e5d9bc3a_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('dt-recipe-combobox-with-popover',{ref:"comboboxWithPopover",attrs:{"label":_vm.label,"show-list":_vm.showList,"max-height":_vm.listMaxHeight,"popover-offset":_vm.popoverOffset,"has-suggestion-list":_vm.hasSuggestionList,"visually-hidden-close-label":_vm.visuallyHiddenCloseLabel,"visually-hidden-close":_vm.visuallyHiddenClose,"content-width":"anchor"},on:{"select":_vm.onComboboxSelect},scopedSlots:_vm._u([{key:"input",fn:function(ref){
19510
19658
  var onInput = ref.onInput;
19511
- return [_c('span',{ref:"inputSlotWrapper",staticClass:"d-ps-relative"},[_c('span',{ref:"chipsWrapper",staticClass:"d-ps-absolute d-mx2"},_vm._l((_vm.selectedItems),function(item){return _c('dt-chip',_vm._g({key:item.id,ref:"chips",refInFor:true,staticClass:"d-mt4 d-mx2 d-zi-base1",attrs:{"close-button-props":{ ariaLabel: 'close' },"size":_vm.size},on:{"keyup":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"backspace",undefined,$event.key,undefined)){ return null; }return _vm.onChipRemove(item)},"close":function($event){return _vm.onChipRemove(item)}}},_vm.chipListeners),[_vm._v(" "+_vm._s(item)+" ")])}),1),_c('dt-input',_vm._g({ref:"input",staticClass:"d-fl-grow1 d-mb4",attrs:{"label":_vm.label,"description":_vm.description,"placeholder":_vm.inputPlaceHolder,"show-messages":_vm.showInputMessages,"messages":_vm.inputMessages,"size":_vm.size},on:{"input":onInput},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v},expression:"value"}},_vm.inputListeners)),_c('dt-validation-messages',{attrs:{"validation-messages":_vm.maxSelectedMessage,"show-messages":_vm.showValidationMessages}})],1)]}},{key:"header",fn:function(){return [(_vm.$slots.header)?_c('div',{ref:"header"},[_vm._t("header")],2):_vm._e()]},proxy:true},{key:"list",fn:function(){return [_c('div',{ref:"list",on:{"mousedown":function($event){$event.preventDefault();}}},[(!_vm.loading)?_vm._t("list"):_c('div',{staticClass:"d-ta-center d-py16"},[_vm._v(" "+_vm._s(_vm.loadingMessage)+" ")])],2)]},proxy:true},{key:"footer",fn:function(){return [(_vm.$slots.footer)?_c('div',{ref:"footer"},[_vm._t("footer")],2):_vm._e()]},proxy:true}],null,true)})}
19512
- var combobox_multi_selectvue_type_template_id_652b0440_staticRenderFns = []
19659
+ return [_c('span',{ref:"inputSlotWrapper",staticClass:"d-ps-relative"},[_c('span',{ref:"chipsWrapper",staticClass:"d-ps-absolute d-mx2"},_vm._l((_vm.selectedItems),function(item){return _c('dt-chip',_vm._g({key:item.id,ref:"chips",refInFor:true,staticClass:"d-mt4 d-mx2 d-zi-base1",attrs:{"close-button-props":{ ariaLabel: 'close' },"size":_vm.size},on:{"keyup":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"backspace",undefined,$event.key,undefined)){ return null; }return _vm.onChipRemove(item)},"close":function($event){return _vm.onChipRemove(item)}}},_vm.chipListeners),[_vm._v(" "+_vm._s(item)+" ")])}),1),_c('dt-input',_vm._g({ref:"input",staticClass:"d-fl-grow1 d-mb4",attrs:{"aria-label":_vm.label,"label":_vm.labelVisible ? _vm.label : '',"description":_vm.description,"placeholder":_vm.inputPlaceHolder,"show-messages":_vm.showInputMessages,"messages":_vm.inputMessages,"size":_vm.size},on:{"input":onInput},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v},expression:"value"}},_vm.inputListeners)),_c('dt-validation-messages',{attrs:{"validation-messages":_vm.maxSelectedMessage,"show-messages":_vm.showValidationMessages}})],1)]}},{key:"header",fn:function(){return [(_vm.$slots.header)?_c('div',{ref:"header"},[_vm._t("header")],2):_vm._e()]},proxy:true},{key:"list",fn:function(){return [_c('div',{ref:"list",on:{"mousedown":function($event){$event.preventDefault();}}},[(!_vm.loading)?_vm._t("list"):_c('div',{staticClass:"d-ta-center d-py16"},[_vm._v(" "+_vm._s(_vm.loadingMessage)+" ")])],2)]},proxy:true},{key:"footer",fn:function(){return [(_vm.$slots.footer)?_c('div',{ref:"footer"},[_vm._t("footer")],2):_vm._e()]},proxy:true}],null,true)})}
19660
+ var combobox_multi_selectvue_type_template_id_e5d9bc3a_staticRenderFns = []
19513
19661
 
19514
19662
 
19515
19663
  ;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_multi_select/combobox_multi_select_story_constants.js
@@ -19713,6 +19861,7 @@ const MULTI_SELECT_SIZES = {
19713
19861
  //
19714
19862
  //
19715
19863
  //
19864
+ //
19716
19865
 
19717
19866
 
19718
19867
 
@@ -19731,19 +19880,28 @@ const MULTI_SELECT_SIZES = {
19731
19880
  mixins: [sr_only_close_button],
19732
19881
  props: {
19733
19882
  /**
19734
- * Label for the combobox
19883
+ * String to use for the input label.
19735
19884
  */
19736
19885
  label: {
19737
19886
  type: String,
19738
- default: null
19887
+ required: true
19888
+ },
19889
+
19890
+ /**
19891
+ * Determines visibility of input label.
19892
+ * @values true, false
19893
+ */
19894
+ labelVisible: {
19895
+ type: Boolean,
19896
+ default: true
19739
19897
  },
19740
19898
 
19741
19899
  /**
19742
- * Description for the combobox
19900
+ * Description for the input
19743
19901
  */
19744
19902
  description: {
19745
19903
  type: String,
19746
- default: null
19904
+ default: ''
19747
19905
  },
19748
19906
 
19749
19907
  /**
@@ -19854,7 +20012,7 @@ const MULTI_SELECT_SIZES = {
19854
20012
  },
19855
20013
 
19856
20014
  /**
19857
- * Size of the input and chip, one of `xs`, `sm`, `md`
20015
+ * Size of the chip, one of `xs`, `sm`, `md`
19858
20016
  */
19859
20017
  size: {
19860
20018
  type: String,
@@ -20181,8 +20339,8 @@ const MULTI_SELECT_SIZES = {
20181
20339
  ;
20182
20340
  var combobox_multi_select_component = normalizeComponent(
20183
20341
  combobox_multi_select_combobox_multi_selectvue_type_script_lang_js_,
20184
- combobox_multi_selectvue_type_template_id_652b0440_render,
20185
- combobox_multi_selectvue_type_template_id_652b0440_staticRenderFns,
20342
+ combobox_multi_selectvue_type_template_id_e5d9bc3a_render,
20343
+ combobox_multi_selectvue_type_template_id_e5d9bc3a_staticRenderFns,
20186
20344
  false,
20187
20345
  null,
20188
20346
  null,