@dialpad/dialtone-vue 2.35.0 → 2.36.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.
|
@@ -1139,6 +1139,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1139
1139
|
"DtDropdownList": () => (/* reexport */ dropdown_list),
|
|
1140
1140
|
"DtDropdownSeparator": () => (/* reexport */ dropdown_separator),
|
|
1141
1141
|
"DtGroupableInputMixin": () => (/* reexport */ GroupableMixin),
|
|
1142
|
+
"DtIcon": () => (/* reexport */ icon),
|
|
1142
1143
|
"DtInput": () => (/* reexport */ input_input),
|
|
1143
1144
|
"DtInputGroup": () => (/* reexport */ input_group_input_group),
|
|
1144
1145
|
"DtInputGroupMixin": () => (/* reexport */ InputGroupMixin),
|
|
@@ -1470,6 +1471,15 @@ const flushPromises = () => {
|
|
|
1470
1471
|
scheduler(resolve);
|
|
1471
1472
|
});
|
|
1472
1473
|
};
|
|
1474
|
+
/**
|
|
1475
|
+
* Transform a string from kebab-case to pascalCase
|
|
1476
|
+
* @param string
|
|
1477
|
+
* @returns {string}
|
|
1478
|
+
*/
|
|
1479
|
+
|
|
1480
|
+
const kebabCaseToPascalCase = string => {
|
|
1481
|
+
return string.toLowerCase().split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join('');
|
|
1482
|
+
};
|
|
1473
1483
|
/* harmony default export */ const utils = ({
|
|
1474
1484
|
getUniqueString,
|
|
1475
1485
|
formatMessages,
|
|
@@ -1477,7 +1487,8 @@ const flushPromises = () => {
|
|
|
1477
1487
|
hasFormattedMessageOfType,
|
|
1478
1488
|
getValidationState,
|
|
1479
1489
|
htmlFragment,
|
|
1480
|
-
flushPromises
|
|
1490
|
+
flushPromises,
|
|
1491
|
+
kebabCaseToPascalCase
|
|
1481
1492
|
});
|
|
1482
1493
|
;// 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/avatar/avatar.vue?vue&type=script&lang=js&
|
|
1483
1494
|
//
|
|
@@ -19079,6 +19090,111 @@ var root_layout_component = normalizeComponent(
|
|
|
19079
19090
|
;// CONCATENATED MODULE: ./components/root_layout/index.js
|
|
19080
19091
|
|
|
19081
19092
|
|
|
19093
|
+
;// 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=1ca37c55&
|
|
19094
|
+
var iconvue_type_template_id_1ca37c55_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"}})}
|
|
19095
|
+
var iconvue_type_template_id_1ca37c55_staticRenderFns = []
|
|
19096
|
+
|
|
19097
|
+
|
|
19098
|
+
;// CONCATENATED MODULE: ./components/icon/icon_constants.js
|
|
19099
|
+
const ICON_SIZE_MODIFIERS = {
|
|
19100
|
+
100: 'd-icon--size-100',
|
|
19101
|
+
200: 'd-icon--size-200',
|
|
19102
|
+
300: 'd-icon--size-300',
|
|
19103
|
+
400: 'd-icon--size-400',
|
|
19104
|
+
500: 'd-icon--size-500',
|
|
19105
|
+
600: 'd-icon--size-600',
|
|
19106
|
+
700: 'd-icon--size-700',
|
|
19107
|
+
800: 'd-icon--size-800'
|
|
19108
|
+
};
|
|
19109
|
+
/* harmony default export */ const icon_constants = ({
|
|
19110
|
+
ICON_SIZE_MODIFIERS
|
|
19111
|
+
});
|
|
19112
|
+
;// CONCATENATED MODULE: external "@dialpad/dialtone-icons"
|
|
19113
|
+
const dialtone_icons_namespaceObject = require("@dialpad/dialtone-icons");
|
|
19114
|
+
;// 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/icon/icon.vue?vue&type=script&lang=js&
|
|
19115
|
+
//
|
|
19116
|
+
//
|
|
19117
|
+
//
|
|
19118
|
+
//
|
|
19119
|
+
//
|
|
19120
|
+
//
|
|
19121
|
+
//
|
|
19122
|
+
//
|
|
19123
|
+
|
|
19124
|
+
|
|
19125
|
+
|
|
19126
|
+
/**
|
|
19127
|
+
* The Icon component provides a set of glyphs and sizes to provide context your application.
|
|
19128
|
+
* @see https://dialpad.design/components/icon.html
|
|
19129
|
+
*/
|
|
19130
|
+
|
|
19131
|
+
/* harmony default export */ const iconvue_type_script_lang_js_ = ({
|
|
19132
|
+
name: 'DtIcon',
|
|
19133
|
+
props: {
|
|
19134
|
+
/**
|
|
19135
|
+
* The size of the icon.
|
|
19136
|
+
* @values 100, 200, 300, 400, 500, 600, 700, 800
|
|
19137
|
+
*/
|
|
19138
|
+
size: {
|
|
19139
|
+
type: String,
|
|
19140
|
+
default: '500',
|
|
19141
|
+
validator: s => Object.keys(ICON_SIZE_MODIFIERS).includes(s)
|
|
19142
|
+
},
|
|
19143
|
+
|
|
19144
|
+
/**
|
|
19145
|
+
* The icon name in kebab-case
|
|
19146
|
+
*/
|
|
19147
|
+
name: {
|
|
19148
|
+
type: String,
|
|
19149
|
+
required: true
|
|
19150
|
+
}
|
|
19151
|
+
},
|
|
19152
|
+
|
|
19153
|
+
data() {
|
|
19154
|
+
return {
|
|
19155
|
+
dialtoneIcons: dialtone_icons_namespaceObject
|
|
19156
|
+
};
|
|
19157
|
+
},
|
|
19158
|
+
|
|
19159
|
+
computed: {
|
|
19160
|
+
iconSize() {
|
|
19161
|
+
return ICON_SIZE_MODIFIERS[this.size];
|
|
19162
|
+
},
|
|
19163
|
+
|
|
19164
|
+
iconName() {
|
|
19165
|
+
return kebabCaseToPascalCase(this.name);
|
|
19166
|
+
},
|
|
19167
|
+
|
|
19168
|
+
currentIcon() {
|
|
19169
|
+
return this.dialtoneIcons[this.iconName];
|
|
19170
|
+
}
|
|
19171
|
+
|
|
19172
|
+
}
|
|
19173
|
+
});
|
|
19174
|
+
;// CONCATENATED MODULE: ./components/icon/icon.vue?vue&type=script&lang=js&
|
|
19175
|
+
/* harmony default export */ const icon_iconvue_type_script_lang_js_ = (iconvue_type_script_lang_js_);
|
|
19176
|
+
;// CONCATENATED MODULE: ./components/icon/icon.vue
|
|
19177
|
+
|
|
19178
|
+
|
|
19179
|
+
|
|
19180
|
+
|
|
19181
|
+
|
|
19182
|
+
/* normalize component */
|
|
19183
|
+
;
|
|
19184
|
+
var icon_component = normalizeComponent(
|
|
19185
|
+
icon_iconvue_type_script_lang_js_,
|
|
19186
|
+
iconvue_type_template_id_1ca37c55_render,
|
|
19187
|
+
iconvue_type_template_id_1ca37c55_staticRenderFns,
|
|
19188
|
+
false,
|
|
19189
|
+
null,
|
|
19190
|
+
null,
|
|
19191
|
+
null
|
|
19192
|
+
|
|
19193
|
+
)
|
|
19194
|
+
|
|
19195
|
+
/* harmony default export */ const icon = (icon_component.exports);
|
|
19196
|
+
;// CONCATENATED MODULE: ./components/icon/index.js
|
|
19197
|
+
|
|
19082
19198
|
;// 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&
|
|
19083
19199
|
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){
|
|
19084
19200
|
var inputProps = ref.inputProps;
|
|
@@ -21669,6 +21785,7 @@ var grouped_chip_component = normalizeComponent(
|
|
|
21669
21785
|
|
|
21670
21786
|
|
|
21671
21787
|
|
|
21788
|
+
|
|
21672
21789
|
|
|
21673
21790
|
|
|
21674
21791
|
/// Recipes
|
package/dist/dialtone-vue.umd.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
2
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
-
module.exports = factory(
|
|
3
|
+
module.exports = factory();
|
|
4
4
|
else if(typeof define === 'function' && define.amd)
|
|
5
5
|
define([], factory);
|
|
6
6
|
else if(typeof exports === 'object')
|
|
7
|
-
exports["dialtone-vue"] = factory(
|
|
7
|
+
exports["dialtone-vue"] = factory();
|
|
8
8
|
else
|
|
9
|
-
root["dialtone-vue"] = factory(
|
|
10
|
-
})((typeof self !== 'undefined' ? self : this), (
|
|
9
|
+
root["dialtone-vue"] = factory();
|
|
10
|
+
})((typeof self !== 'undefined' ? self : this), () => {
|
|
11
11
|
return /******/ (() => { // webpackBootstrap
|
|
12
12
|
/******/ var __webpack_modules__ = ({
|
|
13
13
|
|
|
@@ -1036,14 +1036,6 @@ function applyToTag (styleElement, obj) {
|
|
|
1036
1036
|
}
|
|
1037
1037
|
|
|
1038
1038
|
|
|
1039
|
-
/***/ }),
|
|
1040
|
-
|
|
1041
|
-
/***/ 203:
|
|
1042
|
-
/***/ ((module) => {
|
|
1043
|
-
|
|
1044
|
-
"use strict";
|
|
1045
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__203__;
|
|
1046
|
-
|
|
1047
1039
|
/***/ })
|
|
1048
1040
|
|
|
1049
1041
|
/******/ });
|
|
@@ -1157,6 +1149,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1157
1149
|
"DtDropdownList": () => (/* reexport */ dropdown_list),
|
|
1158
1150
|
"DtDropdownSeparator": () => (/* reexport */ dropdown_separator),
|
|
1159
1151
|
"DtGroupableInputMixin": () => (/* reexport */ GroupableMixin),
|
|
1152
|
+
"DtIcon": () => (/* reexport */ icon),
|
|
1160
1153
|
"DtInput": () => (/* reexport */ input_input),
|
|
1161
1154
|
"DtInputGroup": () => (/* reexport */ input_group_input_group),
|
|
1162
1155
|
"DtInputGroupMixin": () => (/* reexport */ InputGroupMixin),
|
|
@@ -1276,9 +1269,9 @@ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._sel
|
|
|
1276
1269
|
var staticRenderFns = []
|
|
1277
1270
|
|
|
1278
1271
|
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(
|
|
1272
|
+
;// CONCATENATED MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
1273
|
+
const external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject = require("vue");
|
|
1274
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject);
|
|
1282
1275
|
;// CONCATENATED MODULE: ./components/avatar/avatar_constants.js
|
|
1283
1276
|
const AVATAR_KIND_MODIFIERS = {
|
|
1284
1277
|
default: '',
|
|
@@ -1488,6 +1481,15 @@ const flushPromises = () => {
|
|
|
1488
1481
|
scheduler(resolve);
|
|
1489
1482
|
});
|
|
1490
1483
|
};
|
|
1484
|
+
/**
|
|
1485
|
+
* Transform a string from kebab-case to pascalCase
|
|
1486
|
+
* @param string
|
|
1487
|
+
* @returns {string}
|
|
1488
|
+
*/
|
|
1489
|
+
|
|
1490
|
+
const kebabCaseToPascalCase = string => {
|
|
1491
|
+
return string.toLowerCase().split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join('');
|
|
1492
|
+
};
|
|
1491
1493
|
/* harmony default export */ const utils = ({
|
|
1492
1494
|
getUniqueString,
|
|
1493
1495
|
formatMessages,
|
|
@@ -1495,7 +1497,8 @@ const flushPromises = () => {
|
|
|
1495
1497
|
hasFormattedMessageOfType,
|
|
1496
1498
|
getValidationState,
|
|
1497
1499
|
htmlFragment,
|
|
1498
|
-
flushPromises
|
|
1500
|
+
flushPromises,
|
|
1501
|
+
kebabCaseToPascalCase
|
|
1499
1502
|
});
|
|
1500
1503
|
;// 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&
|
|
1501
1504
|
//
|
|
@@ -19097,6 +19100,111 @@ var root_layout_component = normalizeComponent(
|
|
|
19097
19100
|
;// CONCATENATED MODULE: ./components/root_layout/index.js
|
|
19098
19101
|
|
|
19099
19102
|
|
|
19103
|
+
;// 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=1ca37c55&
|
|
19104
|
+
var iconvue_type_template_id_1ca37c55_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"}})}
|
|
19105
|
+
var iconvue_type_template_id_1ca37c55_staticRenderFns = []
|
|
19106
|
+
|
|
19107
|
+
|
|
19108
|
+
;// CONCATENATED MODULE: ./components/icon/icon_constants.js
|
|
19109
|
+
const ICON_SIZE_MODIFIERS = {
|
|
19110
|
+
100: 'd-icon--size-100',
|
|
19111
|
+
200: 'd-icon--size-200',
|
|
19112
|
+
300: 'd-icon--size-300',
|
|
19113
|
+
400: 'd-icon--size-400',
|
|
19114
|
+
500: 'd-icon--size-500',
|
|
19115
|
+
600: 'd-icon--size-600',
|
|
19116
|
+
700: 'd-icon--size-700',
|
|
19117
|
+
800: 'd-icon--size-800'
|
|
19118
|
+
};
|
|
19119
|
+
/* harmony default export */ const icon_constants = ({
|
|
19120
|
+
ICON_SIZE_MODIFIERS
|
|
19121
|
+
});
|
|
19122
|
+
;// CONCATENATED MODULE: external "@dialpad/dialtone-icons"
|
|
19123
|
+
const dialtone_icons_namespaceObject = require("@dialpad/dialtone-icons");
|
|
19124
|
+
;// 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/icon/icon.vue?vue&type=script&lang=js&
|
|
19125
|
+
//
|
|
19126
|
+
//
|
|
19127
|
+
//
|
|
19128
|
+
//
|
|
19129
|
+
//
|
|
19130
|
+
//
|
|
19131
|
+
//
|
|
19132
|
+
//
|
|
19133
|
+
|
|
19134
|
+
|
|
19135
|
+
|
|
19136
|
+
/**
|
|
19137
|
+
* The Icon component provides a set of glyphs and sizes to provide context your application.
|
|
19138
|
+
* @see https://dialpad.design/components/icon.html
|
|
19139
|
+
*/
|
|
19140
|
+
|
|
19141
|
+
/* harmony default export */ const iconvue_type_script_lang_js_ = ({
|
|
19142
|
+
name: 'DtIcon',
|
|
19143
|
+
props: {
|
|
19144
|
+
/**
|
|
19145
|
+
* The size of the icon.
|
|
19146
|
+
* @values 100, 200, 300, 400, 500, 600, 700, 800
|
|
19147
|
+
*/
|
|
19148
|
+
size: {
|
|
19149
|
+
type: String,
|
|
19150
|
+
default: '500',
|
|
19151
|
+
validator: s => Object.keys(ICON_SIZE_MODIFIERS).includes(s)
|
|
19152
|
+
},
|
|
19153
|
+
|
|
19154
|
+
/**
|
|
19155
|
+
* The icon name in kebab-case
|
|
19156
|
+
*/
|
|
19157
|
+
name: {
|
|
19158
|
+
type: String,
|
|
19159
|
+
required: true
|
|
19160
|
+
}
|
|
19161
|
+
},
|
|
19162
|
+
|
|
19163
|
+
data() {
|
|
19164
|
+
return {
|
|
19165
|
+
dialtoneIcons: dialtone_icons_namespaceObject
|
|
19166
|
+
};
|
|
19167
|
+
},
|
|
19168
|
+
|
|
19169
|
+
computed: {
|
|
19170
|
+
iconSize() {
|
|
19171
|
+
return ICON_SIZE_MODIFIERS[this.size];
|
|
19172
|
+
},
|
|
19173
|
+
|
|
19174
|
+
iconName() {
|
|
19175
|
+
return kebabCaseToPascalCase(this.name);
|
|
19176
|
+
},
|
|
19177
|
+
|
|
19178
|
+
currentIcon() {
|
|
19179
|
+
return this.dialtoneIcons[this.iconName];
|
|
19180
|
+
}
|
|
19181
|
+
|
|
19182
|
+
}
|
|
19183
|
+
});
|
|
19184
|
+
;// CONCATENATED MODULE: ./components/icon/icon.vue?vue&type=script&lang=js&
|
|
19185
|
+
/* harmony default export */ const icon_iconvue_type_script_lang_js_ = (iconvue_type_script_lang_js_);
|
|
19186
|
+
;// CONCATENATED MODULE: ./components/icon/icon.vue
|
|
19187
|
+
|
|
19188
|
+
|
|
19189
|
+
|
|
19190
|
+
|
|
19191
|
+
|
|
19192
|
+
/* normalize component */
|
|
19193
|
+
;
|
|
19194
|
+
var icon_component = normalizeComponent(
|
|
19195
|
+
icon_iconvue_type_script_lang_js_,
|
|
19196
|
+
iconvue_type_template_id_1ca37c55_render,
|
|
19197
|
+
iconvue_type_template_id_1ca37c55_staticRenderFns,
|
|
19198
|
+
false,
|
|
19199
|
+
null,
|
|
19200
|
+
null,
|
|
19201
|
+
null
|
|
19202
|
+
|
|
19203
|
+
)
|
|
19204
|
+
|
|
19205
|
+
/* harmony default export */ const icon = (icon_component.exports);
|
|
19206
|
+
;// CONCATENATED MODULE: ./components/icon/index.js
|
|
19207
|
+
|
|
19100
19208
|
;// 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&
|
|
19101
19209
|
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){
|
|
19102
19210
|
var inputProps = ref.inputProps;
|
|
@@ -21687,6 +21795,7 @@ var grouped_chip_component = normalizeComponent(
|
|
|
21687
21795
|
|
|
21688
21796
|
|
|
21689
21797
|
|
|
21798
|
+
|
|
21690
21799
|
|
|
21691
21800
|
|
|
21692
21801
|
/// Recipes
|