@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.
@@ -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
- "BADGE_COLOR_MODIFIERS": () => (/* reexport */ BADGE_COLOR_MODIFIERS),
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=fea57e1e&
1917
- 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:[
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.BADGE_COLOR_MODIFIERS[_vm.color] ],attrs:{"data-qa":"dt-badge"}},[_vm._t("default",function(){return [_vm._v(" "+_vm._s(_vm.text)+" ")]})],2)}
1920
- var badgevue_type_template_id_fea57e1e_staticRenderFns = []
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 BADGE_COLOR_MODIFIERS = {
1925
- base: '',
1926
- 'black-700': 'd-badge--black-700',
1927
- 'green-400': 'd-badge--green-400',
1928
- 'orange-400': 'd-badge--orange-400',
1929
- 'magenta-100': 'd-badge--magenta-100',
1930
- 'magenta-300': 'd-badge--magenta-300',
1931
- 'magenta-400': 'd-badge--magenta-400',
1932
- 'magenta-500': 'd-badge--magenta-500',
1933
- 'purple-100': 'd-badge--purple-100',
1934
- 'purple-300': 'd-badge--purple-300',
1935
- 'purple-400': 'd-badge--purple-400',
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'];
@@ -3926,9 +3995,9 @@ var card_component = normalizeComponent(
3926
3995
  /* harmony default export */ const card = (card_component.exports);
3927
3996
  ;// CONCATENATED MODULE: ./components/card/index.js
3928
3997
 
3929
- ;// 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&
3930
- 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()])}
3931
- var comboboxvue_type_template_id_66a9d4d5_staticRenderFns = []
3998
+ ;// 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&
3999
+ 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()])}
4000
+ var comboboxvue_type_template_id_3595da7e_staticRenderFns = []
3932
4001
 
3933
4002
 
3934
4003
  ;// CONCATENATED MODULE: ./common/mixins/dom.js
@@ -5710,6 +5779,14 @@ var combobox_empty_list_component = normalizeComponent(
5710
5779
  )
5711
5780
 
5712
5781
  /* harmony default export */ const combobox_empty_list = (combobox_empty_list_component.exports);
5782
+ ;// CONCATENATED MODULE: ./components/combobox/combobox_constants.js
5783
+ const LABEL_SIZES = {
5784
+ EXTRA_SMALL: 'xs',
5785
+ SMALL: 'sm',
5786
+ DEFAULT: 'md',
5787
+ LARGE: 'lg',
5788
+ EXTRA_LARGE: 'xl'
5789
+ };
5713
5790
  ;// 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/combobox/combobox.vue?vue&type=script&lang=js&
5714
5791
  //
5715
5792
  //
@@ -5763,6 +5840,7 @@ var combobox_empty_list_component = normalizeComponent(
5763
5840
 
5764
5841
 
5765
5842
 
5843
+
5766
5844
  /**
5767
5845
  * A combobox is a semantic component that displays an input element combined with a listbox,
5768
5846
  * which enables the user to select items from the list.
@@ -5786,13 +5864,40 @@ var combobox_empty_list_component = normalizeComponent(
5786
5864
  })],
5787
5865
  props: {
5788
5866
  /**
5789
- * String to use for the list's aria-label.
5867
+ * String to use for the input label.
5790
5868
  */
5791
- listAriaLabel: {
5869
+ label: {
5792
5870
  type: String,
5793
5871
  required: true
5794
5872
  },
5795
5873
 
5874
+ /**
5875
+ * Determines visibility of input label.
5876
+ * @values true, false
5877
+ */
5878
+ labelVisible: {
5879
+ type: Boolean,
5880
+ default: true
5881
+ },
5882
+
5883
+ /**
5884
+ * Size of the input, one of `xs`, `sm`, `md`, `lg`, `xl`
5885
+ * @values null, xs, sm, md, lg, xl
5886
+ */
5887
+ size: {
5888
+ type: String,
5889
+ default: null,
5890
+ validator: t => Object.values(LABEL_SIZES).includes(t)
5891
+ },
5892
+
5893
+ /**
5894
+ * Description for the input
5895
+ */
5896
+ description: {
5897
+ type: String,
5898
+ default: ''
5899
+ },
5900
+
5796
5901
  /**
5797
5902
  * Sets an ID on the list element of the component. Used by several aria attributes
5798
5903
  * as well as when deriving the IDs for each item.
@@ -5927,7 +6032,12 @@ var combobox_empty_list_component = normalizeComponent(
5927
6032
  computed: {
5928
6033
  inputProps() {
5929
6034
  return {
6035
+ label: this.label,
6036
+ labelVisible: this.labelVisible,
6037
+ size: this.size,
6038
+ description: this.description,
5930
6039
  role: 'combobox',
6040
+ 'aria-label': this.label,
5931
6041
  'aria-expanded': this.showList.toString(),
5932
6042
  'aria-owns': this.listId,
5933
6043
  'aria-haspopup': 'listbox',
@@ -5943,7 +6053,7 @@ var combobox_empty_list_component = normalizeComponent(
5943
6053
  // The list has to be positioned relatively so that the auto-scroll can
5944
6054
  // calculate the correct offset for the list items.
5945
6055
  class: 'd-ps-relative',
5946
- 'aria-label': this.listAriaLabel
6056
+ 'aria-label': this.label
5947
6057
  };
5948
6058
  },
5949
6059
 
@@ -6100,8 +6210,8 @@ var combobox_empty_list_component = normalizeComponent(
6100
6210
  ;
6101
6211
  var combobox_component = normalizeComponent(
6102
6212
  combobox_comboboxvue_type_script_lang_js_,
6103
- comboboxvue_type_template_id_66a9d4d5_render,
6104
- comboboxvue_type_template_id_66a9d4d5_staticRenderFns,
6213
+ comboboxvue_type_template_id_3595da7e_render,
6214
+ comboboxvue_type_template_id_3595da7e_staticRenderFns,
6105
6215
  false,
6106
6216
  null,
6107
6217
  null,
@@ -6112,12 +6222,12 @@ var combobox_component = normalizeComponent(
6112
6222
  /* harmony default export */ const combobox = (combobox_component.exports);
6113
6223
  ;// CONCATENATED MODULE: ./components/combobox/index.js
6114
6224
 
6115
- ;// 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&
6116
- 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:[
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=85d2157c&
6226
+ 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:[
6117
6227
  'd-dt-collapsibe__anchor',
6118
6228
  _vm.anchorClass ],attrs:{"id":!_vm.ariaLabelledBy && _vm.labelledBy}},[_vm._t("anchor",function(){return [_c('dt-button',{style:({
6119
6229
  'width': _vm.maxWidth,
6120
- }),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":{
6230
+ }),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":{
6121
6231
  'aria-controls': _vm.id,
6122
6232
  'aria-expanded': _vm.isOpen.toString(),
6123
6233
  'role': 'button',
@@ -6126,13 +6236,13 @@ var collapsiblevue_type_template_id_7f94e9c4_render = function () {var _vm=this;
6126
6236
  _vm.contentClass ],style:({
6127
6237
  'max-height': _vm.maxHeight,
6128
6238
  'max-width': _vm.maxWidth,
6129
- }),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)}
6130
- var collapsiblevue_type_template_id_7f94e9c4_staticRenderFns = []
6239
+ }),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)}
6240
+ var collapsiblevue_type_template_id_85d2157c_staticRenderFns = []
6131
6241
 
6132
6242
 
6133
- ;// 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&
6134
- 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)}
6135
- var collapsible_lazy_showvue_type_template_id_2bfe7a0c_staticRenderFns = []
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=cc3472b8&
6244
+ 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)}
6245
+ var collapsible_lazy_showvue_type_template_id_cc3472b8_staticRenderFns = []
6136
6246
 
6137
6247
 
6138
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&
@@ -6161,6 +6271,32 @@ var collapsible_lazy_showvue_type_template_id_2bfe7a0c_staticRenderFns = []
6161
6271
  //
6162
6272
  //
6163
6273
  //
6274
+ //
6275
+ //
6276
+ //
6277
+ //
6278
+ //
6279
+ //
6280
+ //
6281
+ //
6282
+ //
6283
+ //
6284
+ //
6285
+ //
6286
+ //
6287
+ //
6288
+ //
6289
+ //
6290
+ //
6291
+ //
6292
+ //
6293
+ //
6294
+ //
6295
+ //
6296
+ //
6297
+ //
6298
+ //
6299
+ //
6164
6300
  /* harmony default export */ const collapsible_lazy_showvue_type_script_lang_js_ = ({
6165
6301
  name: 'DtCollapsibleLazyShow',
6166
6302
 
@@ -6171,7 +6307,7 @@ var collapsible_lazy_showvue_type_template_id_2bfe7a0c_staticRenderFns = []
6171
6307
  /**
6172
6308
  * Whether the child slot is shown.
6173
6309
  */
6174
- show: {
6310
+ isExpanded: {
6175
6311
  type: Boolean,
6176
6312
  default: null
6177
6313
  },
@@ -6192,29 +6328,7 @@ var collapsible_lazy_showvue_type_template_id_2bfe7a0c_staticRenderFns = []
6192
6328
  default: 'div'
6193
6329
  }
6194
6330
  },
6195
-
6196
- /******************
6197
- * DATA *
6198
- ******************/
6199
- data() {
6200
- return {
6201
- initialized: !!this.show
6202
- };
6203
- },
6204
-
6205
- /******************
6206
- * WATCH *
6207
- ******************/
6208
- watch: {
6209
- show: function (newValue) {
6210
- if (!newValue || this.initialized) return;
6211
- this.initialized = true;
6212
- }
6213
- },
6214
6331
  methods: {
6215
- /**
6216
- * @param {HTMLElement} element
6217
- */
6218
6332
  beforeEnter(element) {
6219
6333
  requestAnimationFrame(() => {
6220
6334
  if (!element.style.height) {
@@ -6291,8 +6405,8 @@ var collapsible_lazy_showvue_type_style_index_0_lang_css_ = __webpack_require__(
6291
6405
 
6292
6406
  var collapsible_lazy_show_component = normalizeComponent(
6293
6407
  collapsible_collapsible_lazy_showvue_type_script_lang_js_,
6294
- collapsible_lazy_showvue_type_template_id_2bfe7a0c_render,
6295
- collapsible_lazy_showvue_type_template_id_2bfe7a0c_staticRenderFns,
6408
+ collapsible_lazy_showvue_type_template_id_cc3472b8_render,
6409
+ collapsible_lazy_showvue_type_template_id_cc3472b8_staticRenderFns,
6296
6410
  false,
6297
6411
  null,
6298
6412
  null,
@@ -6484,6 +6598,12 @@ var lazy_show_component = normalizeComponent(
6484
6598
  //
6485
6599
  //
6486
6600
  //
6601
+ //
6602
+ //
6603
+ //
6604
+ //
6605
+ //
6606
+ //
6487
6607
 
6488
6608
 
6489
6609
 
@@ -6587,7 +6707,7 @@ var lazy_show_component = normalizeComponent(
6587
6707
  },
6588
6708
 
6589
6709
  /**
6590
- * Label on the collapsible content. Should provide this or ariaLabelledBy but not both.
6710
+ * Label on the anchor. Should provide this or ariaLabelledBy but not both.
6591
6711
  */
6592
6712
  ariaLabel: {
6593
6713
  type: String,
@@ -6628,6 +6748,10 @@ var lazy_show_component = normalizeComponent(
6628
6748
  // aria-labelledby should be set only if aria-labelledby is passed as a prop, or if
6629
6749
  // there is no aria-label and the labelledby should point to the anchor
6630
6750
  return this.ariaLabelledBy || !this.ariaLabel && getUniqueString('DtCollapsible__anchor');
6751
+ },
6752
+
6753
+ hasContentOnCollapse() {
6754
+ return !!this.$slots.contentOnCollapsed;
6631
6755
  }
6632
6756
 
6633
6757
  },
@@ -6647,32 +6771,16 @@ var lazy_show_component = normalizeComponent(
6647
6771
  },
6648
6772
 
6649
6773
  methods: {
6650
- onLeaveTransitionComplete() {
6651
- this.$emit('opened', false);
6652
-
6653
- if (this.open !== null) {
6654
- this.$emit('update:open', false);
6655
- }
6656
- },
6657
-
6658
- onEnterTransitionComplete() {
6659
- this.$emit('opened', true, this.$refs.content);
6660
-
6661
- if (this.open !== null) {
6662
- this.$emit('update:open', true);
6663
- }
6664
- },
6665
-
6666
6774
  defaultToggleOpen() {
6775
+ this.$emit('opened', !this.isOpen);
6776
+
6667
6777
  if (this.open === null) {
6668
- this.toggleOpen();
6778
+ this.isOpen = !this.isOpen;
6779
+ } else {
6780
+ this.$emit('update:open', !this.isOpen);
6669
6781
  }
6670
6782
  },
6671
6783
 
6672
- toggleOpen() {
6673
- this.isOpen = !this.isOpen;
6674
- },
6675
-
6676
6784
  validateProperAnchor() {
6677
6785
  if (!this.anchorText && !this.$scopedSlots.anchor) {
6678
6786
  console.error('anchor text and anchor slot content cannot both be falsy');
@@ -6693,8 +6801,8 @@ var lazy_show_component = normalizeComponent(
6693
6801
  ;
6694
6802
  var collapsible_component = normalizeComponent(
6695
6803
  collapsible_collapsiblevue_type_script_lang_js_,
6696
- collapsiblevue_type_template_id_7f94e9c4_render,
6697
- collapsiblevue_type_template_id_7f94e9c4_staticRenderFns,
6804
+ collapsiblevue_type_template_id_85d2157c_render,
6805
+ collapsiblevue_type_template_id_85d2157c_staticRenderFns,
6698
6806
  false,
6699
6807
  null,
6700
6808
  null,
@@ -12993,8 +13101,8 @@ var dropdown_separator_component = normalizeComponent(
12993
13101
 
12994
13102
 
12995
13103
 
12996
- ;// 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&
12997
- 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:[
13104
+ ;// 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&
13105
+ 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:[
12998
13106
  'base-input__label-text',
12999
13107
  'd-label',
13000
13108
  _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:[
@@ -13003,7 +13111,7 @@ var inputvue_type_template_id_868d44b4_render = function () {var _vm=this;var _h
13003
13111
  'd-fd-column',
13004
13112
  _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:[
13005
13113
  '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)}
13006
- var inputvue_type_template_id_868d44b4_staticRenderFns = []
13114
+ var inputvue_type_template_id_356ee040_staticRenderFns = []
13007
13115
 
13008
13116
 
13009
13117
  ;// CONCATENATED MODULE: ./components/input/input_constants.js
@@ -13727,7 +13835,17 @@ const MessagesMixin = {
13727
13835
  */
13728
13836
  label: {
13729
13837
  type: String,
13730
- default: ''
13838
+ default: '',
13839
+ required: true
13840
+ },
13841
+
13842
+ /**
13843
+ * Determines visibility of input label.
13844
+ * @values true, false
13845
+ */
13846
+ labelVisible: {
13847
+ type: Boolean,
13848
+ default: true
13731
13849
  },
13732
13850
 
13733
13851
  /**
@@ -14147,8 +14265,8 @@ const MessagesMixin = {
14147
14265
  ;
14148
14266
  var input_component = normalizeComponent(
14149
14267
  input_inputvue_type_script_lang_js_,
14150
- inputvue_type_template_id_868d44b4_render,
14151
- inputvue_type_template_id_868d44b4_staticRenderFns,
14268
+ inputvue_type_template_id_356ee040_render,
14269
+ inputvue_type_template_id_356ee040_staticRenderFns,
14152
14270
  false,
14153
14271
  null,
14154
14272
  null,
@@ -19037,15 +19155,15 @@ var root_layout_component = normalizeComponent(
19037
19155
  ;// CONCATENATED MODULE: ./components/root_layout/index.js
19038
19156
 
19039
19157
 
19040
- ;// 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&
19041
- 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){
19158
+ ;// 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&
19159
+ 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){
19042
19160
  var inputProps = ref.inputProps;
19043
19161
  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){
19044
19162
  var opened = ref.opened;
19045
19163
  var listProps = ref.listProps;
19046
19164
  var clearHighlightIndex = ref.clearHighlightIndex;
19047
19165
  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))}
19048
- var combobox_with_popovervue_type_template_id_96ff85ec_staticRenderFns = []
19166
+ var combobox_with_popovervue_type_template_id_dea81786_staticRenderFns = []
19049
19167
 
19050
19168
 
19051
19169
  ;// 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!./recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue?vue&type=script&lang=js&
@@ -19152,6 +19270,10 @@ var combobox_with_popovervue_type_template_id_96ff85ec_staticRenderFns = []
19152
19270
  //
19153
19271
  //
19154
19272
  //
19273
+ //
19274
+ //
19275
+ //
19276
+
19155
19277
 
19156
19278
 
19157
19279
 
@@ -19170,13 +19292,40 @@ var combobox_with_popovervue_type_template_id_96ff85ec_staticRenderFns = []
19170
19292
  mixins: [sr_only_close_button],
19171
19293
  props: {
19172
19294
  /**
19173
- * String to use for the list's aria-label.
19295
+ * String to use for the input label.
19174
19296
  */
19175
- listAriaLabel: {
19297
+ label: {
19176
19298
  type: String,
19177
19299
  required: true
19178
19300
  },
19179
19301
 
19302
+ /**
19303
+ * Determines visibility of input label.
19304
+ * @values true, false
19305
+ */
19306
+ labelVisible: {
19307
+ type: Boolean,
19308
+ default: true
19309
+ },
19310
+
19311
+ /**
19312
+ * Size of the input, one of `xs`, `sm`, `md`, `lg`, `xl`
19313
+ * @values null, xs, sm, md, lg, xl
19314
+ */
19315
+ size: {
19316
+ type: String,
19317
+ default: null,
19318
+ validator: t => Object.values(LABEL_SIZES).includes(t)
19319
+ },
19320
+
19321
+ /**
19322
+ * Description for the input
19323
+ */
19324
+ description: {
19325
+ type: String,
19326
+ default: ''
19327
+ },
19328
+
19180
19329
  /**
19181
19330
  * Determines when to show the list element and also controls the aria-expanded attribute.
19182
19331
  * Leaving this null will have the combobox trigger on input focus by default.
@@ -19389,13 +19538,12 @@ var combobox_with_popovervue_type_template_id_96ff85ec_staticRenderFns = []
19389
19538
  },
19390
19539
  methods: {
19391
19540
  handleDisplayList(value) {
19392
- if (!this.hasSuggestionList) {
19393
- if (value) {
19394
- // Displays the list after the user has typed anything
19395
- this.showComboboxList();
19396
- } else {
19397
- this.closeComboboxList();
19398
- }
19541
+ if (!this.hasSuggestionList && value) {
19542
+ this.showComboboxList();
19543
+ }
19544
+
19545
+ if (!this.hasSuggestionList && !value) {
19546
+ this.closeComboboxList();
19399
19547
  }
19400
19548
  },
19401
19549
 
@@ -19461,7 +19609,7 @@ var combobox_with_popovervue_type_template_id_96ff85ec_staticRenderFns = []
19461
19609
  }
19462
19610
  },
19463
19611
 
19464
- openOnArrowKeyPress(e) {
19612
+ openOnArrowKeyPress() {
19465
19613
  if (this.showList !== null || this.isListShown || !this.openWithArrowKeys) {
19466
19614
  return;
19467
19615
  }
@@ -19483,8 +19631,8 @@ var combobox_with_popovervue_type_template_id_96ff85ec_staticRenderFns = []
19483
19631
  ;
19484
19632
  var combobox_with_popover_component = normalizeComponent(
19485
19633
  combobox_with_popover_combobox_with_popovervue_type_script_lang_js_,
19486
- combobox_with_popovervue_type_template_id_96ff85ec_render,
19487
- combobox_with_popovervue_type_template_id_96ff85ec_staticRenderFns,
19634
+ combobox_with_popovervue_type_template_id_dea81786_render,
19635
+ combobox_with_popovervue_type_template_id_dea81786_staticRenderFns,
19488
19636
  false,
19489
19637
  null,
19490
19638
  null,
@@ -19495,11 +19643,11 @@ var combobox_with_popover_component = normalizeComponent(
19495
19643
  /* harmony default export */ const combobox_with_popover = (combobox_with_popover_component.exports);
19496
19644
  ;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_with_popover/index.js
19497
19645
 
19498
- ;// 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&
19499
- 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){
19646
+ ;// 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&
19647
+ 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){
19500
19648
  var onInput = ref.onInput;
19501
- 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)})}
19502
- var combobox_multi_selectvue_type_template_id_652b0440_staticRenderFns = []
19649
+ 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)})}
19650
+ var combobox_multi_selectvue_type_template_id_e5d9bc3a_staticRenderFns = []
19503
19651
 
19504
19652
 
19505
19653
  ;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_multi_select/combobox_multi_select_story_constants.js
@@ -19703,6 +19851,7 @@ const MULTI_SELECT_SIZES = {
19703
19851
  //
19704
19852
  //
19705
19853
  //
19854
+ //
19706
19855
 
19707
19856
 
19708
19857
 
@@ -19721,19 +19870,28 @@ const MULTI_SELECT_SIZES = {
19721
19870
  mixins: [sr_only_close_button],
19722
19871
  props: {
19723
19872
  /**
19724
- * Label for the combobox
19873
+ * String to use for the input label.
19725
19874
  */
19726
19875
  label: {
19727
19876
  type: String,
19728
- default: null
19877
+ required: true
19878
+ },
19879
+
19880
+ /**
19881
+ * Determines visibility of input label.
19882
+ * @values true, false
19883
+ */
19884
+ labelVisible: {
19885
+ type: Boolean,
19886
+ default: true
19729
19887
  },
19730
19888
 
19731
19889
  /**
19732
- * Description for the combobox
19890
+ * Description for the input
19733
19891
  */
19734
19892
  description: {
19735
19893
  type: String,
19736
- default: null
19894
+ default: ''
19737
19895
  },
19738
19896
 
19739
19897
  /**
@@ -19844,7 +20002,7 @@ const MULTI_SELECT_SIZES = {
19844
20002
  },
19845
20003
 
19846
20004
  /**
19847
- * Size of the input and chip, one of `xs`, `sm`, `md`
20005
+ * Size of the chip, one of `xs`, `sm`, `md`
19848
20006
  */
19849
20007
  size: {
19850
20008
  type: String,
@@ -20171,8 +20329,8 @@ const MULTI_SELECT_SIZES = {
20171
20329
  ;
20172
20330
  var combobox_multi_select_component = normalizeComponent(
20173
20331
  combobox_multi_select_combobox_multi_selectvue_type_script_lang_js_,
20174
- combobox_multi_selectvue_type_template_id_652b0440_render,
20175
- combobox_multi_selectvue_type_template_id_652b0440_staticRenderFns,
20332
+ combobox_multi_selectvue_type_template_id_e5d9bc3a_render,
20333
+ combobox_multi_selectvue_type_template_id_e5d9bc3a_staticRenderFns,
20176
20334
  false,
20177
20335
  null,
20178
20336
  null,