@dialpad/dialtone-vue 2.8.0 → 2.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dialtone-vue.common.js +227 -0
- package/dist/dialtone-vue.umd.js +227 -0
- package/dist/dialtone-vue.umd.min.js +1 -1
- package/package.json +1 -1
|
@@ -1001,6 +1001,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1001
1001
|
"BREADCRUMBS_INVERTED_MODIFIER": () => (/* reexport */ BREADCRUMBS_INVERTED_MODIFIER),
|
|
1002
1002
|
"BREADCRUMB_ITEM_SELECTED_MODIFIER": () => (/* reexport */ BREADCRUMB_ITEM_SELECTED_MODIFIER),
|
|
1003
1003
|
"BUTTON_GROUP_ALIGNMENT": () => (/* reexport */ BUTTON_GROUP_ALIGNMENT),
|
|
1004
|
+
"CHIP_SIZE_MODIFIERS": () => (/* reexport */ CHIP_SIZE_MODIFIERS),
|
|
1004
1005
|
"COLOR_CODES": () => (/* reexport */ COLOR_CODES),
|
|
1005
1006
|
"DEFAULT_VALIDATION_MESSAGE_TYPE": () => (/* reexport */ DEFAULT_VALIDATION_MESSAGE_TYPE),
|
|
1006
1007
|
"DESCRIPTION_SIZE_TYPES": () => (/* reexport */ DESCRIPTION_SIZE_TYPES),
|
|
@@ -1014,6 +1015,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1014
1015
|
"DtCheckableInputMixin": () => (/* reexport */ CheckableMixin),
|
|
1015
1016
|
"DtCheckbox": () => (/* reexport */ checkbox_checkbox),
|
|
1016
1017
|
"DtCheckboxGroup": () => (/* reexport */ checkbox_group),
|
|
1018
|
+
"DtChip": () => (/* reexport */ chip),
|
|
1017
1019
|
"DtCombobox": () => (/* reexport */ combobox),
|
|
1018
1020
|
"DtDropdown": () => (/* reexport */ dropdown),
|
|
1019
1021
|
"DtEmoji": () => (/* reexport */ emoji),
|
|
@@ -14260,6 +14262,230 @@ var checkbox_group_component = normalizeComponent(
|
|
|
14260
14262
|
/* harmony default export */ const checkbox_group = (checkbox_group_component.exports);
|
|
14261
14263
|
;// CONCATENATED MODULE: ./components/checkbox_group/index.js
|
|
14262
14264
|
|
|
14265
|
+
;// 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/chip/chip.vue?vue&type=template&id=4d7bb584&
|
|
14266
|
+
var chipvue_type_template_id_4d7bb584_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{class:_vm.chipClasses(),attrs:{"id":_vm.id,"data-qa":"dt-chip","tabindex":_vm.tabIndex,"aria-labelledby":_vm.ariaLabel ? undefined : (_vm.id + "-content"),"aria-label":_vm.ariaLabel},on:{"mousedown":_vm.onClick,"mouseup":_vm.onClick,"mouseleave":function($event){_vm.isActive = false},"focusout":function($event){_vm.isActive = false},"keydown":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.onClick.apply(null, arguments)},"keyup":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.onClick.apply(null, arguments)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"delete",[8,46],$event.key,["Backspace","Delete","Del"])){ return null; }return _vm.onClose.apply(null, arguments)}]}},[(_vm.$slots.icon)?_c('span',{staticClass:"d-chip__icon",attrs:{"data-qa":"dt-chip-icon"}},[_vm._t("icon")],2):(_vm.$slots.avatar)?_c('span',{attrs:{"data-qa":"dt-chip-avatar"}},[_vm._t("avatar")],2):_vm._e(),(_vm.$slots.default)?_c('span',{class:['d-truncate', _vm.contentClass],attrs:{"id":(_vm.id + "-content"),"data-qa":"dt-chip-label"}},[_vm._t("default")],2):_vm._e(),(!_vm.hideClose)?_c('span',{staticClass:"d-chip-btn-holder"}):_vm._e(),_c('span',{ref:"closeBtnContainer",staticClass:"d-chip-btn-container"},[(!_vm.hideClose)?_c('dt-button',_vm._b({attrs:{"data-qa":"dt-chip-close","circle":"","importance":"clear","aria-label":_vm.closeButtonProps.ariaLabel},on:{"click":function($event){return _vm.$emit('close')}}},'dt-button',_vm.closeButtonProps,false),[_c('icon-close')],1):_vm._e()],1)])}
|
|
14267
|
+
var chipvue_type_template_id_4d7bb584_staticRenderFns = []
|
|
14268
|
+
|
|
14269
|
+
|
|
14270
|
+
;// CONCATENATED MODULE: ./components/chip/chip_constants.js
|
|
14271
|
+
const CHIP_SIZE_MODIFIERS = {
|
|
14272
|
+
xs: 'd-chip--xs',
|
|
14273
|
+
sm: 'd-chip--sm',
|
|
14274
|
+
md: ''
|
|
14275
|
+
};
|
|
14276
|
+
/* harmony default export */ const chip_constants = ({
|
|
14277
|
+
CHIP_SIZE_MODIFIERS
|
|
14278
|
+
});
|
|
14279
|
+
;// 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/chip/chip.vue?vue&type=script&lang=js&
|
|
14280
|
+
//
|
|
14281
|
+
//
|
|
14282
|
+
//
|
|
14283
|
+
//
|
|
14284
|
+
//
|
|
14285
|
+
//
|
|
14286
|
+
//
|
|
14287
|
+
//
|
|
14288
|
+
//
|
|
14289
|
+
//
|
|
14290
|
+
//
|
|
14291
|
+
//
|
|
14292
|
+
//
|
|
14293
|
+
//
|
|
14294
|
+
//
|
|
14295
|
+
//
|
|
14296
|
+
//
|
|
14297
|
+
//
|
|
14298
|
+
//
|
|
14299
|
+
//
|
|
14300
|
+
//
|
|
14301
|
+
//
|
|
14302
|
+
//
|
|
14303
|
+
//
|
|
14304
|
+
//
|
|
14305
|
+
//
|
|
14306
|
+
//
|
|
14307
|
+
//
|
|
14308
|
+
//
|
|
14309
|
+
//
|
|
14310
|
+
//
|
|
14311
|
+
//
|
|
14312
|
+
//
|
|
14313
|
+
//
|
|
14314
|
+
//
|
|
14315
|
+
//
|
|
14316
|
+
//
|
|
14317
|
+
//
|
|
14318
|
+
//
|
|
14319
|
+
//
|
|
14320
|
+
//
|
|
14321
|
+
//
|
|
14322
|
+
//
|
|
14323
|
+
//
|
|
14324
|
+
//
|
|
14325
|
+
//
|
|
14326
|
+
//
|
|
14327
|
+
//
|
|
14328
|
+
//
|
|
14329
|
+
//
|
|
14330
|
+
//
|
|
14331
|
+
//
|
|
14332
|
+
//
|
|
14333
|
+
//
|
|
14334
|
+
//
|
|
14335
|
+
//
|
|
14336
|
+
//
|
|
14337
|
+
//
|
|
14338
|
+
//
|
|
14339
|
+
//
|
|
14340
|
+
//
|
|
14341
|
+
//
|
|
14342
|
+
//
|
|
14343
|
+
|
|
14344
|
+
|
|
14345
|
+
|
|
14346
|
+
|
|
14347
|
+
/* harmony default export */ const chipvue_type_script_lang_js_ = ({
|
|
14348
|
+
name: 'DtChip',
|
|
14349
|
+
components: {
|
|
14350
|
+
IconClose: IconClose,
|
|
14351
|
+
DtButton: button_button
|
|
14352
|
+
},
|
|
14353
|
+
props: {
|
|
14354
|
+
/**
|
|
14355
|
+
* A set of props to be passed into the modal's close button. Requires an 'ariaLabel' property.
|
|
14356
|
+
*/
|
|
14357
|
+
closeButtonProps: {
|
|
14358
|
+
type: Object,
|
|
14359
|
+
validator: props => {
|
|
14360
|
+
return !!props.ariaLabel;
|
|
14361
|
+
}
|
|
14362
|
+
},
|
|
14363
|
+
|
|
14364
|
+
/**
|
|
14365
|
+
* Hides the close button on the chip
|
|
14366
|
+
*/
|
|
14367
|
+
hideClose: {
|
|
14368
|
+
type: Boolean,
|
|
14369
|
+
default: false
|
|
14370
|
+
},
|
|
14371
|
+
|
|
14372
|
+
/**
|
|
14373
|
+
* The size of the chip.
|
|
14374
|
+
* @values xs, sm, md
|
|
14375
|
+
* @see https://dialpad.design/components/chip
|
|
14376
|
+
*/
|
|
14377
|
+
size: {
|
|
14378
|
+
type: String,
|
|
14379
|
+
default: 'md',
|
|
14380
|
+
validator: s => Object.keys(CHIP_SIZE_MODIFIERS).includes(s)
|
|
14381
|
+
},
|
|
14382
|
+
|
|
14383
|
+
/**
|
|
14384
|
+
* The interactivity of the chip.
|
|
14385
|
+
* Makes chip clickable, apply hover/focus/active style, emit keyboard events etc.
|
|
14386
|
+
* @see https://dialpad.design/components/chip
|
|
14387
|
+
*/
|
|
14388
|
+
interactive: {
|
|
14389
|
+
type: Boolean,
|
|
14390
|
+
default: true
|
|
14391
|
+
},
|
|
14392
|
+
|
|
14393
|
+
/**
|
|
14394
|
+
* Id to use for the dialog's aria-labelledby.
|
|
14395
|
+
*/
|
|
14396
|
+
id: {
|
|
14397
|
+
type: String,
|
|
14398
|
+
default: function () {
|
|
14399
|
+
return getUniqueString();
|
|
14400
|
+
}
|
|
14401
|
+
},
|
|
14402
|
+
|
|
14403
|
+
/**
|
|
14404
|
+
* Descriptive label for the chip content.
|
|
14405
|
+
* If this prop is unset the content in the default slot will be used as an aria-label.
|
|
14406
|
+
*/
|
|
14407
|
+
ariaLabel: {
|
|
14408
|
+
type: String,
|
|
14409
|
+
default: ''
|
|
14410
|
+
},
|
|
14411
|
+
|
|
14412
|
+
/**
|
|
14413
|
+
* Additional class name for the chip element.
|
|
14414
|
+
*/
|
|
14415
|
+
contentClass: {
|
|
14416
|
+
type: [String, Array, Object],
|
|
14417
|
+
default: ''
|
|
14418
|
+
}
|
|
14419
|
+
},
|
|
14420
|
+
emits: ['click', 'close'],
|
|
14421
|
+
|
|
14422
|
+
data() {
|
|
14423
|
+
return {
|
|
14424
|
+
isActive: false
|
|
14425
|
+
};
|
|
14426
|
+
},
|
|
14427
|
+
|
|
14428
|
+
computed: {
|
|
14429
|
+
tabIndex() {
|
|
14430
|
+
return this.interactive ? 0 : -1;
|
|
14431
|
+
}
|
|
14432
|
+
|
|
14433
|
+
},
|
|
14434
|
+
methods: {
|
|
14435
|
+
chipClasses() {
|
|
14436
|
+
return ['d-chip', CHIP_SIZE_MODIFIERS[this.size], {
|
|
14437
|
+
'd-chip--interactive': this.interactive,
|
|
14438
|
+
'd-chip--active': this.isActive
|
|
14439
|
+
}];
|
|
14440
|
+
},
|
|
14441
|
+
|
|
14442
|
+
onClose() {
|
|
14443
|
+
if (!this.hideClose) {
|
|
14444
|
+
this.$emit('close');
|
|
14445
|
+
}
|
|
14446
|
+
},
|
|
14447
|
+
|
|
14448
|
+
onClick(event) {
|
|
14449
|
+
// Clicking on the button should not update value of isActive.
|
|
14450
|
+
if (!this.interactive || this.$refs.closeBtnContainer.contains(event.target)) {
|
|
14451
|
+
return;
|
|
14452
|
+
}
|
|
14453
|
+
|
|
14454
|
+
if (event.type === 'mousedown' || event.type === 'keydown') {
|
|
14455
|
+
this.isActive = true;
|
|
14456
|
+
} else {
|
|
14457
|
+
this.isActive = false;
|
|
14458
|
+
this.$emit('click');
|
|
14459
|
+
}
|
|
14460
|
+
}
|
|
14461
|
+
|
|
14462
|
+
}
|
|
14463
|
+
});
|
|
14464
|
+
;// CONCATENATED MODULE: ./components/chip/chip.vue?vue&type=script&lang=js&
|
|
14465
|
+
/* harmony default export */ const chip_chipvue_type_script_lang_js_ = (chipvue_type_script_lang_js_);
|
|
14466
|
+
;// CONCATENATED MODULE: ./components/chip/chip.vue
|
|
14467
|
+
|
|
14468
|
+
|
|
14469
|
+
|
|
14470
|
+
|
|
14471
|
+
|
|
14472
|
+
/* normalize component */
|
|
14473
|
+
;
|
|
14474
|
+
var chip_component = normalizeComponent(
|
|
14475
|
+
chip_chipvue_type_script_lang_js_,
|
|
14476
|
+
chipvue_type_template_id_4d7bb584_render,
|
|
14477
|
+
chipvue_type_template_id_4d7bb584_staticRenderFns,
|
|
14478
|
+
false,
|
|
14479
|
+
null,
|
|
14480
|
+
null,
|
|
14481
|
+
null
|
|
14482
|
+
|
|
14483
|
+
)
|
|
14484
|
+
|
|
14485
|
+
/* harmony default export */ const chip = (chip_component.exports);
|
|
14486
|
+
;// CONCATENATED MODULE: ./components/chip/index.js
|
|
14487
|
+
|
|
14488
|
+
|
|
14263
14489
|
;// 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/select_menu/select_menu.vue?vue&type=template&id=ea91f650&
|
|
14264
14490
|
var select_menuvue_type_template_id_ea91f650_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('label',[(_vm.$slots.label || _vm.label)?_c('div',_vm._b({class:[
|
|
14265
14491
|
'd-label',
|
|
@@ -16391,6 +16617,7 @@ var top_banner_info_component = normalizeComponent(
|
|
|
16391
16617
|
|
|
16392
16618
|
|
|
16393
16619
|
|
|
16620
|
+
|
|
16394
16621
|
|
|
16395
16622
|
|
|
16396
16623
|
/// Recipes
|
package/dist/dialtone-vue.umd.js
CHANGED
|
@@ -1019,6 +1019,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1019
1019
|
"BREADCRUMBS_INVERTED_MODIFIER": () => (/* reexport */ BREADCRUMBS_INVERTED_MODIFIER),
|
|
1020
1020
|
"BREADCRUMB_ITEM_SELECTED_MODIFIER": () => (/* reexport */ BREADCRUMB_ITEM_SELECTED_MODIFIER),
|
|
1021
1021
|
"BUTTON_GROUP_ALIGNMENT": () => (/* reexport */ BUTTON_GROUP_ALIGNMENT),
|
|
1022
|
+
"CHIP_SIZE_MODIFIERS": () => (/* reexport */ CHIP_SIZE_MODIFIERS),
|
|
1022
1023
|
"COLOR_CODES": () => (/* reexport */ COLOR_CODES),
|
|
1023
1024
|
"DEFAULT_VALIDATION_MESSAGE_TYPE": () => (/* reexport */ DEFAULT_VALIDATION_MESSAGE_TYPE),
|
|
1024
1025
|
"DESCRIPTION_SIZE_TYPES": () => (/* reexport */ DESCRIPTION_SIZE_TYPES),
|
|
@@ -1032,6 +1033,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1032
1033
|
"DtCheckableInputMixin": () => (/* reexport */ CheckableMixin),
|
|
1033
1034
|
"DtCheckbox": () => (/* reexport */ checkbox_checkbox),
|
|
1034
1035
|
"DtCheckboxGroup": () => (/* reexport */ checkbox_group),
|
|
1036
|
+
"DtChip": () => (/* reexport */ chip),
|
|
1035
1037
|
"DtCombobox": () => (/* reexport */ combobox),
|
|
1036
1038
|
"DtDropdown": () => (/* reexport */ dropdown),
|
|
1037
1039
|
"DtEmoji": () => (/* reexport */ emoji),
|
|
@@ -14278,6 +14280,230 @@ var checkbox_group_component = normalizeComponent(
|
|
|
14278
14280
|
/* harmony default export */ const checkbox_group = (checkbox_group_component.exports);
|
|
14279
14281
|
;// CONCATENATED MODULE: ./components/checkbox_group/index.js
|
|
14280
14282
|
|
|
14283
|
+
;// 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/chip/chip.vue?vue&type=template&id=4d7bb584&
|
|
14284
|
+
var chipvue_type_template_id_4d7bb584_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{class:_vm.chipClasses(),attrs:{"id":_vm.id,"data-qa":"dt-chip","tabindex":_vm.tabIndex,"aria-labelledby":_vm.ariaLabel ? undefined : (_vm.id + "-content"),"aria-label":_vm.ariaLabel},on:{"mousedown":_vm.onClick,"mouseup":_vm.onClick,"mouseleave":function($event){_vm.isActive = false},"focusout":function($event){_vm.isActive = false},"keydown":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.onClick.apply(null, arguments)},"keyup":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.onClick.apply(null, arguments)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"delete",[8,46],$event.key,["Backspace","Delete","Del"])){ return null; }return _vm.onClose.apply(null, arguments)}]}},[(_vm.$slots.icon)?_c('span',{staticClass:"d-chip__icon",attrs:{"data-qa":"dt-chip-icon"}},[_vm._t("icon")],2):(_vm.$slots.avatar)?_c('span',{attrs:{"data-qa":"dt-chip-avatar"}},[_vm._t("avatar")],2):_vm._e(),(_vm.$slots.default)?_c('span',{class:['d-truncate', _vm.contentClass],attrs:{"id":(_vm.id + "-content"),"data-qa":"dt-chip-label"}},[_vm._t("default")],2):_vm._e(),(!_vm.hideClose)?_c('span',{staticClass:"d-chip-btn-holder"}):_vm._e(),_c('span',{ref:"closeBtnContainer",staticClass:"d-chip-btn-container"},[(!_vm.hideClose)?_c('dt-button',_vm._b({attrs:{"data-qa":"dt-chip-close","circle":"","importance":"clear","aria-label":_vm.closeButtonProps.ariaLabel},on:{"click":function($event){return _vm.$emit('close')}}},'dt-button',_vm.closeButtonProps,false),[_c('icon-close')],1):_vm._e()],1)])}
|
|
14285
|
+
var chipvue_type_template_id_4d7bb584_staticRenderFns = []
|
|
14286
|
+
|
|
14287
|
+
|
|
14288
|
+
;// CONCATENATED MODULE: ./components/chip/chip_constants.js
|
|
14289
|
+
const CHIP_SIZE_MODIFIERS = {
|
|
14290
|
+
xs: 'd-chip--xs',
|
|
14291
|
+
sm: 'd-chip--sm',
|
|
14292
|
+
md: ''
|
|
14293
|
+
};
|
|
14294
|
+
/* harmony default export */ const chip_constants = ({
|
|
14295
|
+
CHIP_SIZE_MODIFIERS
|
|
14296
|
+
});
|
|
14297
|
+
;// 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/chip/chip.vue?vue&type=script&lang=js&
|
|
14298
|
+
//
|
|
14299
|
+
//
|
|
14300
|
+
//
|
|
14301
|
+
//
|
|
14302
|
+
//
|
|
14303
|
+
//
|
|
14304
|
+
//
|
|
14305
|
+
//
|
|
14306
|
+
//
|
|
14307
|
+
//
|
|
14308
|
+
//
|
|
14309
|
+
//
|
|
14310
|
+
//
|
|
14311
|
+
//
|
|
14312
|
+
//
|
|
14313
|
+
//
|
|
14314
|
+
//
|
|
14315
|
+
//
|
|
14316
|
+
//
|
|
14317
|
+
//
|
|
14318
|
+
//
|
|
14319
|
+
//
|
|
14320
|
+
//
|
|
14321
|
+
//
|
|
14322
|
+
//
|
|
14323
|
+
//
|
|
14324
|
+
//
|
|
14325
|
+
//
|
|
14326
|
+
//
|
|
14327
|
+
//
|
|
14328
|
+
//
|
|
14329
|
+
//
|
|
14330
|
+
//
|
|
14331
|
+
//
|
|
14332
|
+
//
|
|
14333
|
+
//
|
|
14334
|
+
//
|
|
14335
|
+
//
|
|
14336
|
+
//
|
|
14337
|
+
//
|
|
14338
|
+
//
|
|
14339
|
+
//
|
|
14340
|
+
//
|
|
14341
|
+
//
|
|
14342
|
+
//
|
|
14343
|
+
//
|
|
14344
|
+
//
|
|
14345
|
+
//
|
|
14346
|
+
//
|
|
14347
|
+
//
|
|
14348
|
+
//
|
|
14349
|
+
//
|
|
14350
|
+
//
|
|
14351
|
+
//
|
|
14352
|
+
//
|
|
14353
|
+
//
|
|
14354
|
+
//
|
|
14355
|
+
//
|
|
14356
|
+
//
|
|
14357
|
+
//
|
|
14358
|
+
//
|
|
14359
|
+
//
|
|
14360
|
+
//
|
|
14361
|
+
|
|
14362
|
+
|
|
14363
|
+
|
|
14364
|
+
|
|
14365
|
+
/* harmony default export */ const chipvue_type_script_lang_js_ = ({
|
|
14366
|
+
name: 'DtChip',
|
|
14367
|
+
components: {
|
|
14368
|
+
IconClose: IconClose,
|
|
14369
|
+
DtButton: button_button
|
|
14370
|
+
},
|
|
14371
|
+
props: {
|
|
14372
|
+
/**
|
|
14373
|
+
* A set of props to be passed into the modal's close button. Requires an 'ariaLabel' property.
|
|
14374
|
+
*/
|
|
14375
|
+
closeButtonProps: {
|
|
14376
|
+
type: Object,
|
|
14377
|
+
validator: props => {
|
|
14378
|
+
return !!props.ariaLabel;
|
|
14379
|
+
}
|
|
14380
|
+
},
|
|
14381
|
+
|
|
14382
|
+
/**
|
|
14383
|
+
* Hides the close button on the chip
|
|
14384
|
+
*/
|
|
14385
|
+
hideClose: {
|
|
14386
|
+
type: Boolean,
|
|
14387
|
+
default: false
|
|
14388
|
+
},
|
|
14389
|
+
|
|
14390
|
+
/**
|
|
14391
|
+
* The size of the chip.
|
|
14392
|
+
* @values xs, sm, md
|
|
14393
|
+
* @see https://dialpad.design/components/chip
|
|
14394
|
+
*/
|
|
14395
|
+
size: {
|
|
14396
|
+
type: String,
|
|
14397
|
+
default: 'md',
|
|
14398
|
+
validator: s => Object.keys(CHIP_SIZE_MODIFIERS).includes(s)
|
|
14399
|
+
},
|
|
14400
|
+
|
|
14401
|
+
/**
|
|
14402
|
+
* The interactivity of the chip.
|
|
14403
|
+
* Makes chip clickable, apply hover/focus/active style, emit keyboard events etc.
|
|
14404
|
+
* @see https://dialpad.design/components/chip
|
|
14405
|
+
*/
|
|
14406
|
+
interactive: {
|
|
14407
|
+
type: Boolean,
|
|
14408
|
+
default: true
|
|
14409
|
+
},
|
|
14410
|
+
|
|
14411
|
+
/**
|
|
14412
|
+
* Id to use for the dialog's aria-labelledby.
|
|
14413
|
+
*/
|
|
14414
|
+
id: {
|
|
14415
|
+
type: String,
|
|
14416
|
+
default: function () {
|
|
14417
|
+
return getUniqueString();
|
|
14418
|
+
}
|
|
14419
|
+
},
|
|
14420
|
+
|
|
14421
|
+
/**
|
|
14422
|
+
* Descriptive label for the chip content.
|
|
14423
|
+
* If this prop is unset the content in the default slot will be used as an aria-label.
|
|
14424
|
+
*/
|
|
14425
|
+
ariaLabel: {
|
|
14426
|
+
type: String,
|
|
14427
|
+
default: ''
|
|
14428
|
+
},
|
|
14429
|
+
|
|
14430
|
+
/**
|
|
14431
|
+
* Additional class name for the chip element.
|
|
14432
|
+
*/
|
|
14433
|
+
contentClass: {
|
|
14434
|
+
type: [String, Array, Object],
|
|
14435
|
+
default: ''
|
|
14436
|
+
}
|
|
14437
|
+
},
|
|
14438
|
+
emits: ['click', 'close'],
|
|
14439
|
+
|
|
14440
|
+
data() {
|
|
14441
|
+
return {
|
|
14442
|
+
isActive: false
|
|
14443
|
+
};
|
|
14444
|
+
},
|
|
14445
|
+
|
|
14446
|
+
computed: {
|
|
14447
|
+
tabIndex() {
|
|
14448
|
+
return this.interactive ? 0 : -1;
|
|
14449
|
+
}
|
|
14450
|
+
|
|
14451
|
+
},
|
|
14452
|
+
methods: {
|
|
14453
|
+
chipClasses() {
|
|
14454
|
+
return ['d-chip', CHIP_SIZE_MODIFIERS[this.size], {
|
|
14455
|
+
'd-chip--interactive': this.interactive,
|
|
14456
|
+
'd-chip--active': this.isActive
|
|
14457
|
+
}];
|
|
14458
|
+
},
|
|
14459
|
+
|
|
14460
|
+
onClose() {
|
|
14461
|
+
if (!this.hideClose) {
|
|
14462
|
+
this.$emit('close');
|
|
14463
|
+
}
|
|
14464
|
+
},
|
|
14465
|
+
|
|
14466
|
+
onClick(event) {
|
|
14467
|
+
// Clicking on the button should not update value of isActive.
|
|
14468
|
+
if (!this.interactive || this.$refs.closeBtnContainer.contains(event.target)) {
|
|
14469
|
+
return;
|
|
14470
|
+
}
|
|
14471
|
+
|
|
14472
|
+
if (event.type === 'mousedown' || event.type === 'keydown') {
|
|
14473
|
+
this.isActive = true;
|
|
14474
|
+
} else {
|
|
14475
|
+
this.isActive = false;
|
|
14476
|
+
this.$emit('click');
|
|
14477
|
+
}
|
|
14478
|
+
}
|
|
14479
|
+
|
|
14480
|
+
}
|
|
14481
|
+
});
|
|
14482
|
+
;// CONCATENATED MODULE: ./components/chip/chip.vue?vue&type=script&lang=js&
|
|
14483
|
+
/* harmony default export */ const chip_chipvue_type_script_lang_js_ = (chipvue_type_script_lang_js_);
|
|
14484
|
+
;// CONCATENATED MODULE: ./components/chip/chip.vue
|
|
14485
|
+
|
|
14486
|
+
|
|
14487
|
+
|
|
14488
|
+
|
|
14489
|
+
|
|
14490
|
+
/* normalize component */
|
|
14491
|
+
;
|
|
14492
|
+
var chip_component = normalizeComponent(
|
|
14493
|
+
chip_chipvue_type_script_lang_js_,
|
|
14494
|
+
chipvue_type_template_id_4d7bb584_render,
|
|
14495
|
+
chipvue_type_template_id_4d7bb584_staticRenderFns,
|
|
14496
|
+
false,
|
|
14497
|
+
null,
|
|
14498
|
+
null,
|
|
14499
|
+
null
|
|
14500
|
+
|
|
14501
|
+
)
|
|
14502
|
+
|
|
14503
|
+
/* harmony default export */ const chip = (chip_component.exports);
|
|
14504
|
+
;// CONCATENATED MODULE: ./components/chip/index.js
|
|
14505
|
+
|
|
14506
|
+
|
|
14281
14507
|
;// 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/select_menu/select_menu.vue?vue&type=template&id=ea91f650&
|
|
14282
14508
|
var select_menuvue_type_template_id_ea91f650_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('label',[(_vm.$slots.label || _vm.label)?_c('div',_vm._b({class:[
|
|
14283
14509
|
'd-label',
|
|
@@ -16409,6 +16635,7 @@ var top_banner_info_component = normalizeComponent(
|
|
|
16409
16635
|
|
|
16410
16636
|
|
|
16411
16637
|
|
|
16638
|
+
|
|
16412
16639
|
|
|
16413
16640
|
|
|
16414
16641
|
/// Recipes
|