@dialpad/dialtone-vue 2.38.0 → 2.40.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.
@@ -316,7 +316,7 @@ __webpack_require__.r(__webpack_exports__);
316
316
 
317
317
  var ___CSS_LOADER_EXPORT___ = _node_modules_vue_cli_service_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_vue_cli_service_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
318
318
  // Module
319
- ___CSS_LOADER_EXPORT___.push([module.id, ".dt-recipe-callbar-button:not(.dt-recipe-callbar-button--circle){letter-spacing:-.011rem;line-height:1.6rem}.dt-recipe-callbar-button--circle{border-radius:var(--br-circle)}.dt-recipe-callbar-button.d-btn[disabled]{background-color:unset}.dt-recipe-callbar-button--circle.d-btn[disabled]{border-color:unset}.dt-recipe-callbar-button--active{--button--fc:var(--muted-color-hover);--button--bgc:hsla(var(--muted-color-hsl)/15%)}.dt-recipe-callbar-button--danger.dt-recipe-callbar-button--active{--button--bgc:hsla(var(--error-color-hsl)/10%);--button--fc:var(--error-color-hover)}.dt-recipe-callbar-button--danger.dt-recipe-callbar-button--active:hover{--button--bgc:hsla(var(--error-color-hsl)/20%);--button--fc:var(--error-color-hover)}", ""]);
319
+ ___CSS_LOADER_EXPORT___.push([module.id, ".dt-recipe-callbar-button:not(.dt-recipe-callbar-button--circle){letter-spacing:-.011rem;line-height:1.6rem}.dt-recipe-callbar-button--circle{border-radius:var(--br-circle)}.dt-recipe-callbar-button.d-btn[disabled]{background-color:unset}.dt-recipe-callbar-button--circle.d-btn[disabled]{border-color:unset}.dt-recipe-callbar-button--danger.dt-recipe-callbar-button--active{--button--bgc:hsla(var(--error-color-hsl)/10%);--button--fc:var(--error-color-hover)}.dt-recipe-callbar-button--danger.dt-recipe-callbar-button--active:hover{--button--bgc:hsla(var(--error-color-hsl)/20%);--button--fc:var(--error-color-hover)}.dt-recipe-callbar-button--active .base-button__icon,.dt-recipe-callbar-button--active:hover .base-button__icon{color:var(--primary-color)}", ""]);
320
320
  // Exports
321
321
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
322
322
 
@@ -1258,60 +1258,18 @@ if (typeof window !== 'undefined') {
1258
1258
  // Indicate to webpack that this file can be concatenated
1259
1259
  /* harmony default export */ const setPublicPath = (null);
1260
1260
 
1261
- ;// 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/avatar/avatar.vue?vue&type=template&id=2820dd63&
1261
+ ;// 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/avatar/avatar.vue?vue&type=template&id=8203a6da&
1262
1262
  var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:[
1263
1263
  'd-avatar',
1264
1264
  _vm.AVATAR_KIND_MODIFIERS[_vm.kind],
1265
1265
  _vm.AVATAR_SIZE_MODIFIERS[_vm.size],
1266
1266
  _vm.AVATAR_COLOR_MODIFIERS[_vm.color],
1267
- _vm.avatarClass ],attrs:{"id":_vm.id,"data-qa":"dt-avatar"}},[_vm._t("default")],2)}
1267
+ _vm.avatarClass ],attrs:{"id":_vm.id,"data-qa":"dt-avatar"}},[_vm._t("default"),(_vm.presence)?_c('dt-presence',_vm._b({class:[
1268
+ 'd-avatar__presence',
1269
+ _vm.AVATAR_PRESENCE_SIZE_MODIFIERS[_vm.size] ],attrs:{"presence":_vm.presence,"data-qa":"dt-presence"}},'dt-presence',_vm.presenceProps,false)):_vm._e()],2)}
1268
1270
  var staticRenderFns = []
1269
1271
 
1270
1272
 
1271
- ;// CONCATENATED MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
1272
- const external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject = require("vue");
1273
- var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject);
1274
- ;// CONCATENATED MODULE: ./components/avatar/avatar_constants.js
1275
- const AVATAR_KIND_MODIFIERS = {
1276
- default: '',
1277
- icon: 'd-avatar--icon',
1278
- initials: 'd-avatar--initials'
1279
- };
1280
- const AVATAR_SIZE_MODIFIERS = {
1281
- sm: 'd-avatar--sm',
1282
- md: 'd-avatar--md',
1283
- lg: 'd-avatar--lg'
1284
- };
1285
- const AVATAR_COLOR_MODIFIERS = {
1286
- base: '',
1287
- 'orange-200': 'd-avatar--orange-200',
1288
- 'orange-300': 'd-avatar--orange-300',
1289
- 'orange-400': 'd-avatar--orange-400',
1290
- 'orange-500': 'd-avatar--orange-500',
1291
- 'magenta-100': 'd-avatar--magenta-100',
1292
- 'magenta-200': 'd-avatar--magenta-200',
1293
- 'magenta-300': 'd-avatar--magenta-300',
1294
- 'magenta-400': 'd-avatar--magenta-400',
1295
- 'purple-200': 'd-avatar--purple-200',
1296
- 'purple-300': 'd-avatar--purple-300',
1297
- 'purple-400': 'd-avatar--purple-400',
1298
- 'purple-500': 'd-avatar--purple-500',
1299
- 'gold-100': 'd-avatar--gold-100',
1300
- 'gold-200': 'd-avatar--gold-200',
1301
- 'gold-300': 'd-avatar--gold-300',
1302
- 'gold-500': 'd-avatar--gold-500'
1303
- };
1304
- const AVATAR_ICON_SIZES = {
1305
- sm: '200',
1306
- md: '400',
1307
- lg: '500'
1308
- };
1309
- /* harmony default export */ const avatar_constants = ({
1310
- AVATAR_KIND_MODIFIERS,
1311
- AVATAR_SIZE_MODIFIERS,
1312
- AVATAR_COLOR_MODIFIERS,
1313
- AVATAR_ICON_SIZES
1314
- });
1315
1273
  ;// CONCATENATED MODULE: ./common/constants.js
1316
1274
  /* TODO: Move and sort these in a constants directory
1317
1275
 
@@ -1380,6 +1338,9 @@ const DEFAULT_PREFIX = 'dt';
1380
1338
  DEFAULT_VALIDATION_MESSAGE_TYPE,
1381
1339
  DEFAULT_PREFIX
1382
1340
  });
1341
+ ;// CONCATENATED MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
1342
+ const external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject = require("vue");
1343
+ var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject);
1383
1344
  ;// CONCATENATED MODULE: ./common/utils.js
1384
1345
 
1385
1346
 
@@ -1514,6 +1475,251 @@ const pascalCaseToKebabCase = string => {
1514
1475
  flushPromises,
1515
1476
  kebabCaseToPascalCase
1516
1477
  });
1478
+ ;// 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/presence/presence.vue?vue&type=template&id=30834c22&
1479
+ var presencevue_type_template_id_30834c22_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"d-presence",attrs:{"data-qa":"dt-presence","role":"status","aria-live":_vm.$attrs.ariaLive || 'off'}},[(_vm.srText)?_c('span',{staticClass:"sr-only",attrs:{"data-qa":"dt-presence-sr-text"}},[_vm._v(_vm._s(_vm.srText)+" ")]):_vm._e(),_c('div',{staticClass:"d-presence__inner",class:{
1480
+ 'd-presence__inner--active': _vm.presence === 'active',
1481
+ 'd-presence__inner--away': _vm.presence === 'away',
1482
+ 'd-presence__inner--busy': _vm.presence === 'busy',
1483
+ 'd-presence__inner--offline': _vm.presence === 'offline',
1484
+ }})])}
1485
+ var presencevue_type_template_id_30834c22_staticRenderFns = []
1486
+
1487
+
1488
+ ;// CONCATENATED MODULE: ./components/presence/presence_constants.js
1489
+ const PRESENCE_STATES = {
1490
+ BUSY: 'busy',
1491
+ AWAY: 'away',
1492
+ OFFLINE: 'offline',
1493
+ ACTIVE: 'active'
1494
+ };
1495
+ const PRESENCE_STATES_LIST = [PRESENCE_STATES.BUSY, PRESENCE_STATES.AWAY, PRESENCE_STATES.OFFLINE, PRESENCE_STATES.ACTIVE];
1496
+ ;// 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/presence/presence.vue?vue&type=script&lang=js&
1497
+ //
1498
+ //
1499
+ //
1500
+ //
1501
+ //
1502
+ //
1503
+ //
1504
+ //
1505
+ //
1506
+ //
1507
+ //
1508
+ //
1509
+ //
1510
+ //
1511
+ //
1512
+ //
1513
+ //
1514
+ //
1515
+ //
1516
+ //
1517
+ //
1518
+ //
1519
+ //
1520
+ //
1521
+
1522
+ /**
1523
+ * Presence is a user status visual indicator element.
1524
+ * @see https://dialpad.design/components/presence.html
1525
+ */
1526
+
1527
+ /* harmony default export */ const presencevue_type_script_lang_js_ = ({
1528
+ name: 'Presence',
1529
+ props: {
1530
+ /**
1531
+ * Determines the color of the inner presence circle, indicating status.
1532
+ * Accepts one of 4 values: 'busy', 'away', 'active', 'offline'
1533
+ */
1534
+ presence: {
1535
+ type: String,
1536
+ default: PRESENCE_STATES.ACTIVE,
1537
+ validator: role => {
1538
+ return PRESENCE_STATES_LIST.includes(role);
1539
+ }
1540
+ },
1541
+
1542
+ /**
1543
+ * Since Presence is a visual element, we need SRs to read out any state changes
1544
+ * that occur.
1545
+ * Text entered here will be read by assistive technology. If null this component will be ignored by AT.
1546
+ */
1547
+ srText: {
1548
+ type: String,
1549
+ default: null
1550
+ }
1551
+ }
1552
+ });
1553
+ ;// CONCATENATED MODULE: ./components/presence/presence.vue?vue&type=script&lang=js&
1554
+ /* harmony default export */ const presence_presencevue_type_script_lang_js_ = (presencevue_type_script_lang_js_);
1555
+ ;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
1556
+ /* globals __VUE_SSR_CONTEXT__ */
1557
+
1558
+ // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
1559
+ // This module is a runtime utility for cleaner component module output and will
1560
+ // be included in the final webpack user bundle.
1561
+
1562
+ function normalizeComponent (
1563
+ scriptExports,
1564
+ render,
1565
+ staticRenderFns,
1566
+ functionalTemplate,
1567
+ injectStyles,
1568
+ scopeId,
1569
+ moduleIdentifier, /* server only */
1570
+ shadowMode /* vue-cli only */
1571
+ ) {
1572
+ // Vue.extend constructor export interop
1573
+ var options = typeof scriptExports === 'function'
1574
+ ? scriptExports.options
1575
+ : scriptExports
1576
+
1577
+ // render functions
1578
+ if (render) {
1579
+ options.render = render
1580
+ options.staticRenderFns = staticRenderFns
1581
+ options._compiled = true
1582
+ }
1583
+
1584
+ // functional template
1585
+ if (functionalTemplate) {
1586
+ options.functional = true
1587
+ }
1588
+
1589
+ // scopedId
1590
+ if (scopeId) {
1591
+ options._scopeId = 'data-v-' + scopeId
1592
+ }
1593
+
1594
+ var hook
1595
+ if (moduleIdentifier) { // server build
1596
+ hook = function (context) {
1597
+ // 2.3 injection
1598
+ context =
1599
+ context || // cached call
1600
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
1601
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
1602
+ // 2.2 with runInNewContext: true
1603
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
1604
+ context = __VUE_SSR_CONTEXT__
1605
+ }
1606
+ // inject component styles
1607
+ if (injectStyles) {
1608
+ injectStyles.call(this, context)
1609
+ }
1610
+ // register component module identifier for async chunk inferrence
1611
+ if (context && context._registeredComponents) {
1612
+ context._registeredComponents.add(moduleIdentifier)
1613
+ }
1614
+ }
1615
+ // used by ssr in case component is cached and beforeCreate
1616
+ // never gets called
1617
+ options._ssrRegister = hook
1618
+ } else if (injectStyles) {
1619
+ hook = shadowMode
1620
+ ? function () {
1621
+ injectStyles.call(
1622
+ this,
1623
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
1624
+ )
1625
+ }
1626
+ : injectStyles
1627
+ }
1628
+
1629
+ if (hook) {
1630
+ if (options.functional) {
1631
+ // for template-only hot-reload because in that case the render fn doesn't
1632
+ // go through the normalizer
1633
+ options._injectStyles = hook
1634
+ // register for functional component in vue file
1635
+ var originalRender = options.render
1636
+ options.render = function renderWithStyleInjection (h, context) {
1637
+ hook.call(context)
1638
+ return originalRender(h, context)
1639
+ }
1640
+ } else {
1641
+ // inject component registration as beforeCreate hook
1642
+ var existing = options.beforeCreate
1643
+ options.beforeCreate = existing
1644
+ ? [].concat(existing, hook)
1645
+ : [hook]
1646
+ }
1647
+ }
1648
+
1649
+ return {
1650
+ exports: scriptExports,
1651
+ options: options
1652
+ }
1653
+ }
1654
+
1655
+ ;// CONCATENATED MODULE: ./components/presence/presence.vue
1656
+
1657
+
1658
+
1659
+
1660
+
1661
+ /* normalize component */
1662
+ ;
1663
+ var component = normalizeComponent(
1664
+ presence_presencevue_type_script_lang_js_,
1665
+ presencevue_type_template_id_30834c22_render,
1666
+ presencevue_type_template_id_30834c22_staticRenderFns,
1667
+ false,
1668
+ null,
1669
+ null,
1670
+ null
1671
+
1672
+ )
1673
+
1674
+ /* harmony default export */ const presence = (component.exports);
1675
+ ;// CONCATENATED MODULE: ./components/presence/index.js
1676
+
1677
+
1678
+ ;// CONCATENATED MODULE: ./components/avatar/avatar_constants.js
1679
+ const AVATAR_KIND_MODIFIERS = {
1680
+ default: '',
1681
+ icon: 'd-avatar--icon',
1682
+ initials: 'd-avatar--initials'
1683
+ };
1684
+ const AVATAR_SIZE_MODIFIERS = {
1685
+ sm: 'd-avatar--sm',
1686
+ md: 'd-avatar--md',
1687
+ lg: 'd-avatar--lg'
1688
+ };
1689
+ const AVATAR_PRESENCE_SIZE_MODIFIERS = {
1690
+ md: 'd-avatar__presence--md',
1691
+ lg: 'd-avatar__presence--lg'
1692
+ };
1693
+ const AVATAR_COLOR_MODIFIERS = {
1694
+ base: '',
1695
+ 'orange-200': 'd-avatar--orange-200',
1696
+ 'orange-300': 'd-avatar--orange-300',
1697
+ 'orange-400': 'd-avatar--orange-400',
1698
+ 'orange-500': 'd-avatar--orange-500',
1699
+ 'magenta-100': 'd-avatar--magenta-100',
1700
+ 'magenta-200': 'd-avatar--magenta-200',
1701
+ 'magenta-300': 'd-avatar--magenta-300',
1702
+ 'magenta-400': 'd-avatar--magenta-400',
1703
+ 'purple-200': 'd-avatar--purple-200',
1704
+ 'purple-300': 'd-avatar--purple-300',
1705
+ 'purple-400': 'd-avatar--purple-400',
1706
+ 'purple-500': 'd-avatar--purple-500',
1707
+ 'gold-100': 'd-avatar--gold-100',
1708
+ 'gold-200': 'd-avatar--gold-200',
1709
+ 'gold-300': 'd-avatar--gold-300',
1710
+ 'gold-500': 'd-avatar--gold-500'
1711
+ };
1712
+ const AVATAR_ICON_SIZES = {
1713
+ sm: '200',
1714
+ md: '400',
1715
+ lg: '500'
1716
+ };
1717
+ /* harmony default export */ const avatar_constants = ({
1718
+ AVATAR_KIND_MODIFIERS,
1719
+ AVATAR_SIZE_MODIFIERS,
1720
+ AVATAR_COLOR_MODIFIERS,
1721
+ AVATAR_ICON_SIZES
1722
+ });
1517
1723
  ;// 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/avatar/avatar.vue?vue&type=script&lang=js&
1518
1724
  //
1519
1725
  //
@@ -1532,6 +1738,17 @@ const pascalCaseToKebabCase = string => {
1532
1738
  //
1533
1739
  //
1534
1740
  //
1741
+ //
1742
+ //
1743
+ //
1744
+ //
1745
+ //
1746
+ //
1747
+ //
1748
+ //
1749
+ //
1750
+ //
1751
+
1535
1752
 
1536
1753
 
1537
1754
 
@@ -1542,6 +1759,9 @@ const pascalCaseToKebabCase = string => {
1542
1759
 
1543
1760
  /* harmony default export */ const avatarvue_type_script_lang_js_ = ({
1544
1761
  name: 'DtAvatar',
1762
+ components: {
1763
+ DtPresence: presence
1764
+ },
1545
1765
  inheritAttrs: false,
1546
1766
  props: {
1547
1767
  /**
@@ -1586,6 +1806,24 @@ const pascalCaseToKebabCase = string => {
1586
1806
  avatarClass: {
1587
1807
  type: [String, Array, Object],
1588
1808
  default: ''
1809
+ },
1810
+
1811
+ /**
1812
+ * Determines whether to show the presence indicator for
1813
+ * Avatar - accepts PRESENCE_STATES values: 'busy', 'away', 'offline',
1814
+ * or 'active'. By default, it's null and nothing is shown.
1815
+ */
1816
+ presence: {
1817
+ type: String,
1818
+ default: null
1819
+ },
1820
+
1821
+ /**
1822
+ * A set of props to be passed into the presence component.
1823
+ */
1824
+ presenceProps: {
1825
+ type: Object,
1826
+ default: () => ({})
1589
1827
  }
1590
1828
  },
1591
1829
 
@@ -1595,7 +1833,8 @@ const pascalCaseToKebabCase = string => {
1595
1833
  kind: 'initials',
1596
1834
  AVATAR_SIZE_MODIFIERS: AVATAR_SIZE_MODIFIERS,
1597
1835
  AVATAR_COLOR_MODIFIERS: AVATAR_COLOR_MODIFIERS,
1598
- AVATAR_KIND_MODIFIERS: AVATAR_KIND_MODIFIERS
1836
+ AVATAR_KIND_MODIFIERS: AVATAR_KIND_MODIFIERS,
1837
+ AVATAR_PRESENCE_SIZE_MODIFIERS: AVATAR_PRESENCE_SIZE_MODIFIERS
1599
1838
  };
1600
1839
  },
1601
1840
 
@@ -1613,6 +1852,11 @@ const pascalCaseToKebabCase = string => {
1613
1852
 
1614
1853
  if (firstChild) {
1615
1854
  this.setKind(firstChild);
1855
+
1856
+ if (this.kind === 'image') {
1857
+ firstChild.classList.add('d-avatar__image');
1858
+ }
1859
+
1616
1860
  this.validateImageAttrsPresence();
1617
1861
  }
1618
1862
  },
@@ -1656,106 +1900,6 @@ const pascalCaseToKebabCase = string => {
1656
1900
  });
1657
1901
  ;// CONCATENATED MODULE: ./components/avatar/avatar.vue?vue&type=script&lang=js&
1658
1902
  /* harmony default export */ const avatar_avatarvue_type_script_lang_js_ = (avatarvue_type_script_lang_js_);
1659
- ;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
1660
- /* globals __VUE_SSR_CONTEXT__ */
1661
-
1662
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
1663
- // This module is a runtime utility for cleaner component module output and will
1664
- // be included in the final webpack user bundle.
1665
-
1666
- function normalizeComponent (
1667
- scriptExports,
1668
- render,
1669
- staticRenderFns,
1670
- functionalTemplate,
1671
- injectStyles,
1672
- scopeId,
1673
- moduleIdentifier, /* server only */
1674
- shadowMode /* vue-cli only */
1675
- ) {
1676
- // Vue.extend constructor export interop
1677
- var options = typeof scriptExports === 'function'
1678
- ? scriptExports.options
1679
- : scriptExports
1680
-
1681
- // render functions
1682
- if (render) {
1683
- options.render = render
1684
- options.staticRenderFns = staticRenderFns
1685
- options._compiled = true
1686
- }
1687
-
1688
- // functional template
1689
- if (functionalTemplate) {
1690
- options.functional = true
1691
- }
1692
-
1693
- // scopedId
1694
- if (scopeId) {
1695
- options._scopeId = 'data-v-' + scopeId
1696
- }
1697
-
1698
- var hook
1699
- if (moduleIdentifier) { // server build
1700
- hook = function (context) {
1701
- // 2.3 injection
1702
- context =
1703
- context || // cached call
1704
- (this.$vnode && this.$vnode.ssrContext) || // stateful
1705
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
1706
- // 2.2 with runInNewContext: true
1707
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
1708
- context = __VUE_SSR_CONTEXT__
1709
- }
1710
- // inject component styles
1711
- if (injectStyles) {
1712
- injectStyles.call(this, context)
1713
- }
1714
- // register component module identifier for async chunk inferrence
1715
- if (context && context._registeredComponents) {
1716
- context._registeredComponents.add(moduleIdentifier)
1717
- }
1718
- }
1719
- // used by ssr in case component is cached and beforeCreate
1720
- // never gets called
1721
- options._ssrRegister = hook
1722
- } else if (injectStyles) {
1723
- hook = shadowMode
1724
- ? function () {
1725
- injectStyles.call(
1726
- this,
1727
- (options.functional ? this.parent : this).$root.$options.shadowRoot
1728
- )
1729
- }
1730
- : injectStyles
1731
- }
1732
-
1733
- if (hook) {
1734
- if (options.functional) {
1735
- // for template-only hot-reload because in that case the render fn doesn't
1736
- // go through the normalizer
1737
- options._injectStyles = hook
1738
- // register for functional component in vue file
1739
- var originalRender = options.render
1740
- options.render = function renderWithStyleInjection (h, context) {
1741
- hook.call(context)
1742
- return originalRender(h, context)
1743
- }
1744
- } else {
1745
- // inject component registration as beforeCreate hook
1746
- var existing = options.beforeCreate
1747
- options.beforeCreate = existing
1748
- ? [].concat(existing, hook)
1749
- : [hook]
1750
- }
1751
- }
1752
-
1753
- return {
1754
- exports: scriptExports,
1755
- options: options
1756
- }
1757
- }
1758
-
1759
1903
  ;// CONCATENATED MODULE: ./components/avatar/avatar.vue
1760
1904
 
1761
1905
 
@@ -1764,7 +1908,7 @@ function normalizeComponent (
1764
1908
 
1765
1909
  /* normalize component */
1766
1910
  ;
1767
- var component = normalizeComponent(
1911
+ var avatar_component = normalizeComponent(
1768
1912
  avatar_avatarvue_type_script_lang_js_,
1769
1913
  render,
1770
1914
  staticRenderFns,
@@ -1775,7 +1919,7 @@ var component = normalizeComponent(
1775
1919
 
1776
1920
  )
1777
1921
 
1778
- /* harmony default export */ const avatar = (component.exports);
1922
+ /* harmony default export */ const avatar = (avatar_component.exports);
1779
1923
  ;// CONCATENATED MODULE: ./components/avatar/index.js
1780
1924
 
1781
1925
 
@@ -3782,9 +3926,9 @@ var card_component = normalizeComponent(
3782
3926
  /* harmony default export */ const card = (card_component.exports);
3783
3927
  ;// CONCATENATED MODULE: ./components/card/index.js
3784
3928
 
3785
- ;// 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=ff49fc2c&
3786
- var comboboxvue_type_template_id_ff49fc2c_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()])}
3787
- var comboboxvue_type_template_id_ff49fc2c_staticRenderFns = []
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 = []
3788
3932
 
3789
3933
 
3790
3934
  ;// CONCATENATED MODULE: ./common/mixins/dom.js
@@ -5730,6 +5874,16 @@ var combobox_empty_list_component = normalizeComponent(
5730
5874
  emptyStateClass: {
5731
5875
  type: [String, Object, Array],
5732
5876
  default: ''
5877
+ },
5878
+
5879
+ /**
5880
+ * Programmatically click on the active list item element when a selection
5881
+ * comes from keyboard navigation, i.e. pressing the "Enter" key.
5882
+ * @values true, false
5883
+ */
5884
+ clickOnSelect: {
5885
+ type: Boolean,
5886
+ default: false
5733
5887
  }
5734
5888
  },
5735
5889
  emits: [
@@ -5882,6 +6036,12 @@ var combobox_empty_list_component = normalizeComponent(
5882
6036
 
5883
6037
  if (this.highlightIndex >= 0) {
5884
6038
  this.$emit('select', this.highlightIndex);
6039
+
6040
+ if (this.clickOnSelect) {
6041
+ var _this$activeItemEl;
6042
+
6043
+ (_this$activeItemEl = this.activeItemEl) === null || _this$activeItemEl === void 0 ? void 0 : _this$activeItemEl.click();
6044
+ }
5885
6045
  }
5886
6046
  },
5887
6047
 
@@ -5940,8 +6100,8 @@ var combobox_empty_list_component = normalizeComponent(
5940
6100
  ;
5941
6101
  var combobox_component = normalizeComponent(
5942
6102
  combobox_comboboxvue_type_script_lang_js_,
5943
- comboboxvue_type_template_id_ff49fc2c_render,
5944
- comboboxvue_type_template_id_ff49fc2c_staticRenderFns,
6103
+ comboboxvue_type_template_id_66a9d4d5_render,
6104
+ comboboxvue_type_template_id_66a9d4d5_staticRenderFns,
5945
6105
  false,
5946
6106
  null,
5947
6107
  null,
@@ -18549,9 +18709,9 @@ var keyboard_shortcut_component = normalizeComponent(
18549
18709
  ;// CONCATENATED MODULE: ./components/keyboard_shortcut/index.js
18550
18710
 
18551
18711
 
18552
- ;// 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/root_layout/root_layout.vue?vue&type=template&id=cb5db598&
18553
- var root_layoutvue_type_template_id_cb5db598_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"root-layout"},[(_vm.$slots.header)?_c('header',{class:['root-layout__header', _vm.headerClass, { 'root-layout__header--sticky': _vm.headerSticky }],style:({ 'height': _vm.headerHeight }),attrs:{"data-qa":"root-layout-header"}},[_vm._t("header")],2):_vm._e(),_c('dt-root-layout-body',{attrs:{"body-class":_vm.bodyClass,"content-class":_vm.contentClass,"content-wrap-width-percent":_vm.contentWrapWidthPercent,"sidebar-class":_vm.sidebarClass,"sidebar-width":_vm.sidebarWidth,"sidebar-position":_vm.sidebarPosition},scopedSlots:_vm._u([{key:"sidebar",fn:function(){return [_vm._t("sidebar")]},proxy:true},{key:"content",fn:function(){return [_vm._t("default")]},proxy:true}],null,true)}),(_vm.$slots.footer)?_c('footer',{class:['root-layout__footer', _vm.footerClass],style:({ 'height': _vm.footerHeight }),attrs:{"data-qa":"root-layout-footer"}},[_vm._t("footer")],2):_vm._e()],1)}
18554
- var root_layoutvue_type_template_id_cb5db598_staticRenderFns = []
18712
+ ;// 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/root_layout/root_layout.vue?vue&type=template&id=1a7774b2&
18713
+ var root_layoutvue_type_template_id_1a7774b2_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"root-layout"},[(_vm.$slots.header)?_c('header',{class:['root-layout__header', _vm.headerClass, { 'root-layout__header--sticky': _vm.headerSticky }],style:({ 'height': _vm.headerHeight }),attrs:{"data-qa":"root-layout-header"}},[_vm._t("header")],2):_vm._e(),_c('dt-root-layout-body',{attrs:{"body-class":_vm.bodyClass,"content-class":_vm.contentClass,"content-wrap-width-percent":_vm.contentWrapWidthPercent,"sidebar-class":_vm.sidebarClass,"sidebar-width":_vm.sidebarWidth,"sidebar-position":_vm.sidebarPosition},scopedSlots:_vm._u([(_vm.$slots.sidebar)?{key:"sidebar",fn:function(){return [_vm._t("sidebar")]},proxy:true}:null,(_vm.$slots.default)?{key:"content",fn:function(){return [_vm._t("default")]},proxy:true}:null],null,true)}),(_vm.$slots.footer)?_c('footer',{class:['root-layout__footer', _vm.footerClass],style:({ 'height': _vm.footerHeight }),attrs:{"data-qa":"root-layout-footer"}},[_vm._t("footer")],2):_vm._e()],1)}
18714
+ var root_layoutvue_type_template_id_1a7774b2_staticRenderFns = []
18555
18715
 
18556
18716
 
18557
18717
  ;// 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/root_layout/root_layout_body.vue?vue&type=template&id=fa742994&
@@ -18728,6 +18888,12 @@ var root_layout_body_component = normalizeComponent(
18728
18888
  //
18729
18889
  //
18730
18890
  //
18891
+ //
18892
+ //
18893
+ //
18894
+ //
18895
+ //
18896
+ //
18731
18897
 
18732
18898
 
18733
18899
  /**
@@ -18856,8 +19022,8 @@ var root_layoutvue_type_style_index_0_lang_less_ = __webpack_require__(253);
18856
19022
 
18857
19023
  var root_layout_component = normalizeComponent(
18858
19024
  root_layout_root_layoutvue_type_script_lang_js_,
18859
- root_layoutvue_type_template_id_cb5db598_render,
18860
- root_layoutvue_type_template_id_cb5db598_staticRenderFns,
19025
+ root_layoutvue_type_template_id_1a7774b2_render,
19026
+ root_layoutvue_type_template_id_1a7774b2_staticRenderFns,
18861
19027
  false,
18862
19028
  null,
18863
19029
  null,
@@ -20016,9 +20182,9 @@ var combobox_multi_select_component = normalizeComponent(
20016
20182
  ;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_multi_select/index.js
20017
20183
 
20018
20184
 
20019
- ;// 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/buttons/callbar_button/callbar_button.vue?vue&type=template&id=7983be04&
20020
- var callbar_buttonvue_type_template_id_7983be04_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('dt-tooltip',{attrs:{"id":_vm.id,"offset":[0, -12]},scopedSlots:_vm._u([{key:"anchor",fn:function(){return [_c('dt-button',_vm._g({class:_vm.callbarButtonClass,attrs:{"importance":_vm.circle ? 'outlined' : 'clear',"kind":"muted","icon-position":"top","disabled":_vm.disabled,"aria-label":_vm.ariaLabel,"label-class":"d-fs-100","width":"8.4rem"}},_vm.$listeners),[_vm._t("default"),_vm._t("icon",null,{"slot":"icon"})],2)]},proxy:true}],null,true)},[_vm._t("tooltip")],2)}
20021
- var callbar_buttonvue_type_template_id_7983be04_staticRenderFns = []
20185
+ ;// 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/buttons/callbar_button/callbar_button.vue?vue&type=template&id=739cffb4&
20186
+ var callbar_buttonvue_type_template_id_739cffb4_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('dt-tooltip',{attrs:{"id":_vm.id,"offset":[0, -12]},scopedSlots:_vm._u([{key:"anchor",fn:function(){return [_c('dt-button',_vm._g({class:_vm.callbarButtonClass,attrs:{"importance":_vm.circle ? 'outlined' : 'clear',"kind":"muted","icon-position":"top","disabled":_vm.disabled,"aria-label":_vm.ariaLabel,"label-class":"d-fs-100","width":"8.4rem"}},_vm.$listeners),[_vm._t("default"),_vm._t("icon",null,{"slot":"icon"})],2)]},proxy:true}],null,true)},[_vm._t("tooltip")],2)}
20187
+ var callbar_buttonvue_type_template_id_739cffb4_staticRenderFns = []
20022
20188
 
20023
20189
 
20024
20190
  ;// 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/buttons/callbar_button/callbar_button.vue?vue&type=script&lang=js&
@@ -20170,8 +20336,8 @@ var callbar_buttonvue_type_style_index_0_lang_less_ = __webpack_require__(736);
20170
20336
 
20171
20337
  var callbar_button_component = normalizeComponent(
20172
20338
  callbar_button_callbar_buttonvue_type_script_lang_js_,
20173
- callbar_buttonvue_type_template_id_7983be04_render,
20174
- callbar_buttonvue_type_template_id_7983be04_staticRenderFns,
20339
+ callbar_buttonvue_type_template_id_739cffb4_render,
20340
+ callbar_buttonvue_type_template_id_739cffb4_staticRenderFns,
20175
20341
  false,
20176
20342
  null,
20177
20343
  null,