@dialpad/dialtone-vue 1.0.0-beta.4 → 1.0.0-beta.7
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/README.md +1 -1
- package/dist/dialtone-vue.common.js +2256 -767
- package/dist/dialtone-vue.umd.js +2256 -767
- package/dist/dialtone-vue.umd.min.js +1 -1
- package/package.json +3 -3
package/dist/dialtone-vue.umd.js
CHANGED
|
@@ -218,7 +218,7 @@ module.exports = exports;
|
|
|
218
218
|
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
219
219
|
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
220
220
|
// Module
|
|
221
|
-
exports.push([module.i, ".dt-list-item[tabindex=\"-1\"]:focus{outline:none}.dt-list-item-clickable:focus,.dt-list-item-clickable:hover{background-color:hsla(var(--primary-color
|
|
221
|
+
exports.push([module.i, ".dt-list-item[tabindex=\"-1\"]:focus{outline:none}.dt-list-item-clickable:focus,.dt-list-item-clickable:hover{background-color:hsla(var(--primary-color-h),var(--primary-color-s),var(--primary-color-l),.1);cursor:pointer}", ""]);
|
|
222
222
|
// Exports
|
|
223
223
|
module.exports = exports;
|
|
224
224
|
|
|
@@ -599,9 +599,17 @@ var update = add("572d8ba2", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
599
599
|
__webpack_require__.r(__webpack_exports__);
|
|
600
600
|
|
|
601
601
|
// EXPORTS
|
|
602
|
+
__webpack_require__.d(__webpack_exports__, "DtAvatar", function() { return /* reexport */ avatar; });
|
|
603
|
+
__webpack_require__.d(__webpack_exports__, "AVATAR_SIZE_MODIFIERS", function() { return /* reexport */ AVATAR_SIZE_MODIFIERS; });
|
|
604
|
+
__webpack_require__.d(__webpack_exports__, "AVATAR_KIND_MODIFIERS", function() { return /* reexport */ AVATAR_KIND_MODIFIERS; });
|
|
605
|
+
__webpack_require__.d(__webpack_exports__, "AVATAR_COLOR_MODIFIERS", function() { return /* reexport */ AVATAR_COLOR_MODIFIERS; });
|
|
602
606
|
__webpack_require__.d(__webpack_exports__, "DtBadge", function() { return /* reexport */ badge; });
|
|
603
607
|
__webpack_require__.d(__webpack_exports__, "BADGE_COLOR_MODIFIERS", function() { return /* reexport */ BADGE_COLOR_MODIFIERS; });
|
|
604
608
|
__webpack_require__.d(__webpack_exports__, "DtBanner", function() { return /* reexport */ banner; });
|
|
609
|
+
__webpack_require__.d(__webpack_exports__, "DtBreadcrumbs", function() { return /* reexport */ breadcrumbs; });
|
|
610
|
+
__webpack_require__.d(__webpack_exports__, "DtBreadcrumbItem", function() { return /* reexport */ breadcrumb_item; });
|
|
611
|
+
__webpack_require__.d(__webpack_exports__, "BREADCRUMB_ITEM_SELECTED_MODIFIER", function() { return /* reexport */ BREADCRUMB_ITEM_SELECTED_MODIFIER; });
|
|
612
|
+
__webpack_require__.d(__webpack_exports__, "BREADCRUMBS_INVERTED_MODIFIER", function() { return /* reexport */ BREADCRUMBS_INVERTED_MODIFIER; });
|
|
605
613
|
__webpack_require__.d(__webpack_exports__, "DtButton", function() { return /* reexport */ button_button; });
|
|
606
614
|
__webpack_require__.d(__webpack_exports__, "DtInput", function() { return /* reexport */ input_input; });
|
|
607
615
|
__webpack_require__.d(__webpack_exports__, "INPUT_TYPES", function() { return /* reexport */ INPUT_TYPES; });
|
|
@@ -625,12 +633,24 @@ __webpack_require__.d(__webpack_exports__, "POPOVER_VERTICAL_ALIGNMENT", functio
|
|
|
625
633
|
__webpack_require__.d(__webpack_exports__, "POPOVER_ROLES", function() { return /* reexport */ POPOVER_ROLES; });
|
|
626
634
|
__webpack_require__.d(__webpack_exports__, "DtRadio", function() { return /* reexport */ radio_radio; });
|
|
627
635
|
__webpack_require__.d(__webpack_exports__, "DtRadioGroup", function() { return /* reexport */ radio_group; });
|
|
636
|
+
__webpack_require__.d(__webpack_exports__, "DtTabGroup", function() { return /* reexport */ tab_group; });
|
|
637
|
+
__webpack_require__.d(__webpack_exports__, "DtTab", function() { return /* reexport */ tab; });
|
|
638
|
+
__webpack_require__.d(__webpack_exports__, "DtTabPanel", function() { return /* reexport */ tab_panel; });
|
|
639
|
+
__webpack_require__.d(__webpack_exports__, "TAB_LIST_KIND_MODIFIERS", function() { return /* reexport */ TAB_LIST_KIND_MODIFIERS; });
|
|
640
|
+
__webpack_require__.d(__webpack_exports__, "TAB_LIST_SIZES", function() { return /* reexport */ TAB_LIST_SIZES; });
|
|
641
|
+
__webpack_require__.d(__webpack_exports__, "TAB_LIST_IMPORTANCE_MODIFIERS", function() { return /* reexport */ TAB_LIST_IMPORTANCE_MODIFIERS; });
|
|
642
|
+
__webpack_require__.d(__webpack_exports__, "TAB_IMPORTANCE_MODIFIERS", function() { return /* reexport */ TAB_IMPORTANCE_MODIFIERS; });
|
|
628
643
|
__webpack_require__.d(__webpack_exports__, "DtValidationMessages", function() { return /* reexport */ validation_messages; });
|
|
629
644
|
__webpack_require__.d(__webpack_exports__, "DtCheckbox", function() { return /* reexport */ checkbox_checkbox; });
|
|
630
645
|
__webpack_require__.d(__webpack_exports__, "DtCheckboxGroup", function() { return /* reexport */ checkbox_group; });
|
|
631
646
|
__webpack_require__.d(__webpack_exports__, "DtSelectMenu", function() { return /* reexport */ select_menu; });
|
|
632
647
|
__webpack_require__.d(__webpack_exports__, "SELECT_SIZE_MODIFIERS", function() { return /* reexport */ SELECT_SIZE_MODIFIERS; });
|
|
633
648
|
__webpack_require__.d(__webpack_exports__, "SELECT_STATE_MODIFIERS", function() { return /* reexport */ SELECT_STATE_MODIFIERS; });
|
|
649
|
+
__webpack_require__.d(__webpack_exports__, "DtToast", function() { return /* reexport */ toast; });
|
|
650
|
+
__webpack_require__.d(__webpack_exports__, "TOAST_ROLES", function() { return /* reexport */ TOAST_ROLES; });
|
|
651
|
+
__webpack_require__.d(__webpack_exports__, "DtTooltip", function() { return /* reexport */ tooltip; });
|
|
652
|
+
__webpack_require__.d(__webpack_exports__, "TOOLTIP_DIRECTION_MODIFIERS", function() { return /* reexport */ TOOLTIP_DIRECTION_MODIFIERS; });
|
|
653
|
+
__webpack_require__.d(__webpack_exports__, "TOOLTIP_KIND_MODIFIERS", function() { return /* reexport */ TOOLTIP_KIND_MODIFIERS; });
|
|
634
654
|
__webpack_require__.d(__webpack_exports__, "DtInputMixin", function() { return /* reexport */ InputMixin; });
|
|
635
655
|
__webpack_require__.d(__webpack_exports__, "DtCheckableInputMixin", function() { return /* reexport */ CheckableMixin; });
|
|
636
656
|
__webpack_require__.d(__webpack_exports__, "DtGroupableInputMixin", function() { return /* reexport */ GroupableMixin; });
|
|
@@ -660,34 +680,197 @@ if (typeof window !== 'undefined') {
|
|
|
660
680
|
// Indicate to webpack that this file can be concatenated
|
|
661
681
|
/* harmony default export */ var setPublicPath = (null);
|
|
662
682
|
|
|
663
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
664
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('
|
|
665
|
-
'd-
|
|
666
|
-
_vm.
|
|
683
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5b8bbebb-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/avatar/avatar.vue?vue&type=template&id=3c007948&
|
|
684
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:[
|
|
685
|
+
'd-avatar',
|
|
686
|
+
_vm.AVATAR_KIND_MODIFIERS[_vm.kind],
|
|
687
|
+
_vm.AVATAR_SIZE_MODIFIERS[_vm.size],
|
|
688
|
+
_vm.AVATAR_COLOR_MODIFIERS[_vm.color],
|
|
689
|
+
_vm.avatarClass ],attrs:{"id":_vm.id,"data-qa":"dt-avatar"}},[_vm._t("default",[_c('img',_vm._b({attrs:{"data-qa":"dt-avatar-image","alt":_vm.$attrs.alt}},'img',_vm.$attrs,false))])],2)}
|
|
667
690
|
var staticRenderFns = []
|
|
668
691
|
|
|
669
692
|
|
|
670
|
-
// CONCATENATED MODULE: ./components/
|
|
693
|
+
// CONCATENATED MODULE: ./components/avatar/avatar.vue?vue&type=template&id=3c007948&
|
|
671
694
|
|
|
672
|
-
//
|
|
673
|
-
|
|
695
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
696
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__("8bbf");
|
|
697
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
|
698
|
+
|
|
699
|
+
// CONCATENATED MODULE: ./components/avatar/avatar_constants.js
|
|
700
|
+
const AVATAR_KIND_MODIFIERS = {
|
|
701
|
+
default: '',
|
|
702
|
+
icon: 'd-avatar--icon',
|
|
703
|
+
initials: 'd-avatar--initials'
|
|
704
|
+
};
|
|
705
|
+
const AVATAR_SIZE_MODIFIERS = {
|
|
706
|
+
sm: 'd-avatar--sm',
|
|
707
|
+
md: 'd-avatar--md',
|
|
708
|
+
lg: 'd-avatar--lg'
|
|
709
|
+
};
|
|
710
|
+
const AVATAR_COLOR_MODIFIERS = {
|
|
674
711
|
base: '',
|
|
675
|
-
'
|
|
676
|
-
'
|
|
677
|
-
'orange-400': 'd-
|
|
678
|
-
'
|
|
679
|
-
'pink-
|
|
680
|
-
'pink-
|
|
681
|
-
'pink-
|
|
682
|
-
'
|
|
683
|
-
'purple-
|
|
684
|
-
'purple-
|
|
685
|
-
'purple-
|
|
686
|
-
'
|
|
687
|
-
|
|
688
|
-
'yellow-300': 'd-
|
|
712
|
+
'orange-200': 'd-avatar--orange-200',
|
|
713
|
+
'orange-300': 'd-avatar--orange-300',
|
|
714
|
+
'orange-400': 'd-avatar--orange-400',
|
|
715
|
+
'orange-500': 'd-avatar--orange-500',
|
|
716
|
+
'pink-300': 'd-avatar--pink-300',
|
|
717
|
+
'pink-400': 'd-avatar--pink-400',
|
|
718
|
+
'pink-500': 'd-avatar--pink-500',
|
|
719
|
+
'pink-600': 'd-avatar--pink-600',
|
|
720
|
+
'purple-200': 'd-avatar--purple-200',
|
|
721
|
+
'purple-300': 'd-avatar--purple-300',
|
|
722
|
+
'purple-500': 'd-avatar--purple-500',
|
|
723
|
+
'purple-600': 'd-avatar--purple-600',
|
|
724
|
+
'yellow-200': 'd-avatar--yellow-200',
|
|
725
|
+
'yellow-300': 'd-avatar--yellow-300',
|
|
726
|
+
'yellow-400': 'd-avatar--yellow-400',
|
|
727
|
+
'yellow-500': 'd-avatar--yellow-500'
|
|
689
728
|
};
|
|
690
|
-
|
|
729
|
+
/* harmony default export */ var avatar_constants = ({
|
|
730
|
+
AVATAR_KIND_MODIFIERS,
|
|
731
|
+
AVATAR_SIZE_MODIFIERS,
|
|
732
|
+
AVATAR_COLOR_MODIFIERS
|
|
733
|
+
});
|
|
734
|
+
// CONCATENATED MODULE: ./components/constants.js
|
|
735
|
+
/* TODO: Move and sort these in a constants directory
|
|
736
|
+
|
|
737
|
+
Example:
|
|
738
|
+
constants/
|
|
739
|
+
forms.js
|
|
740
|
+
defaults.js
|
|
741
|
+
...
|
|
742
|
+
*/
|
|
743
|
+
// Types of messages, also dictates what is the current state of the input.
|
|
744
|
+
const VALIDATION_MESSAGE_TYPES = {
|
|
745
|
+
ERROR: 'error',
|
|
746
|
+
WARNING: 'warning',
|
|
747
|
+
SUCCESS: 'success'
|
|
748
|
+
}; // Description size variants
|
|
749
|
+
|
|
750
|
+
const DESCRIPTION_SIZE_TYPES = {
|
|
751
|
+
LARGE: 'lg',
|
|
752
|
+
EXTRA_LARGE: 'xl'
|
|
753
|
+
}; // Description size variants
|
|
754
|
+
|
|
755
|
+
const DESCRIPTION_SIZE_MODIFIERS = {
|
|
756
|
+
xs: '',
|
|
757
|
+
sm: '',
|
|
758
|
+
md: '',
|
|
759
|
+
lg: 'd-description--lg',
|
|
760
|
+
xl: 'd-description--xl'
|
|
761
|
+
}; // Label size variants
|
|
762
|
+
|
|
763
|
+
const LABEL_SIZE_MODIFIERS = {
|
|
764
|
+
xs: 'd-label--xs',
|
|
765
|
+
sm: 'd-label--sm',
|
|
766
|
+
md: '',
|
|
767
|
+
lg: 'd-label--lg',
|
|
768
|
+
xl: 'd-label--xl'
|
|
769
|
+
};
|
|
770
|
+
/*
|
|
771
|
+
* Any string message or message object in the messages prop that do not specify
|
|
772
|
+
* a 'type' attributes will default to 'DEFAULT_MESSAGE_TYPE'.
|
|
773
|
+
*/
|
|
774
|
+
|
|
775
|
+
const DEFAULT_VALIDATION_MESSAGE_TYPE = VALIDATION_MESSAGE_TYPES.ERROR; // Default prefix used for ids
|
|
776
|
+
|
|
777
|
+
const DEFAULT_PREFIX = 'hs';
|
|
778
|
+
/* harmony default export */ var constants = ({
|
|
779
|
+
VALIDATION_MESSAGE_TYPES,
|
|
780
|
+
DESCRIPTION_SIZE_TYPES,
|
|
781
|
+
DEFAULT_VALIDATION_MESSAGE_TYPE,
|
|
782
|
+
DEFAULT_PREFIX
|
|
783
|
+
});
|
|
784
|
+
// CONCATENATED MODULE: ./components/utils.js
|
|
785
|
+
|
|
786
|
+
let UNIQUE_ID_COUNTER = 0; // selector to find focusable not hidden inputs
|
|
787
|
+
|
|
788
|
+
const FOCUSABLE_SELECTOR_NOT_HIDDEN = 'input:not([type=hidden]):not(:disabled)'; // selector to find focusable not disables elements
|
|
789
|
+
|
|
790
|
+
const FOCUSABLE_SELECTOR_NOT_DISABLED = 'select:not(:disabled),textarea:not(:disabled),button:not(:disabled)'; // // selector to find focusable not hidden and disabled elements
|
|
791
|
+
|
|
792
|
+
const FOCUSABLE_SELECTOR_NOT_HIDDEN_DISABLED = `${FOCUSABLE_SELECTOR_NOT_HIDDEN},${FOCUSABLE_SELECTOR_NOT_DISABLED}`; // selector to find focusable elements
|
|
793
|
+
|
|
794
|
+
const FOCUSABLE_SELECTOR = `a,frame,iframe,${FOCUSABLE_SELECTOR_NOT_HIDDEN_DISABLED},*[tabindex]`;
|
|
795
|
+
function getUniqueString(prefix = DEFAULT_PREFIX) {
|
|
796
|
+
return `${prefix}${UNIQUE_ID_COUNTER++}`;
|
|
797
|
+
}
|
|
798
|
+
function formatMessages(messages) {
|
|
799
|
+
if (!messages) {
|
|
800
|
+
return [];
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
return messages.map(message => {
|
|
804
|
+
if (typeof message === 'string') {
|
|
805
|
+
return {
|
|
806
|
+
message,
|
|
807
|
+
type: DEFAULT_VALIDATION_MESSAGE_TYPE
|
|
808
|
+
};
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
return message;
|
|
812
|
+
});
|
|
813
|
+
}
|
|
814
|
+
function filterFormattedMessages(formattedMessages) {
|
|
815
|
+
const validationState = getValidationState(formattedMessages);
|
|
816
|
+
|
|
817
|
+
if (!formattedMessages || !validationState) {
|
|
818
|
+
return [];
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
return formattedMessages.filter(message => message.type === validationState);
|
|
822
|
+
}
|
|
823
|
+
/*
|
|
824
|
+
* The priority order of message types is as flows: 'error' > 'warning' > 'success'.
|
|
825
|
+
* If any message of type 'error' is present in messages, the input state is considered
|
|
826
|
+
* to be 'error', then 'warning' and lastly 'success'.
|
|
827
|
+
*/
|
|
828
|
+
|
|
829
|
+
function getValidationState(formattedMessages) {
|
|
830
|
+
if (!formattedMessages) {
|
|
831
|
+
return null;
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
if (hasFormattedMessageOfType(formattedMessages, VALIDATION_MESSAGE_TYPES.ERROR)) {
|
|
835
|
+
return VALIDATION_MESSAGE_TYPES.ERROR;
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
if (hasFormattedMessageOfType(formattedMessages, VALIDATION_MESSAGE_TYPES.WARNING)) {
|
|
839
|
+
return VALIDATION_MESSAGE_TYPES.WARNING;
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
if (hasFormattedMessageOfType(formattedMessages, VALIDATION_MESSAGE_TYPES.SUCCESS)) {
|
|
843
|
+
return VALIDATION_MESSAGE_TYPES.SUCCESS;
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
return null;
|
|
847
|
+
}
|
|
848
|
+
function hasFormattedMessageOfType(formattedMessages, messageType) {
|
|
849
|
+
if (!formattedMessages || !messageType) {
|
|
850
|
+
return false;
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
return formattedMessages.some(message => (message === null || message === void 0 ? void 0 : message.type) === messageType);
|
|
854
|
+
}
|
|
855
|
+
function findFirstFocusableNode(element) {
|
|
856
|
+
return element === null || element === void 0 ? void 0 : element.querySelector(FOCUSABLE_SELECTOR);
|
|
857
|
+
}
|
|
858
|
+
/* harmony default export */ var utils = ({
|
|
859
|
+
getUniqueString,
|
|
860
|
+
formatMessages,
|
|
861
|
+
filterFormattedMessages,
|
|
862
|
+
hasFormattedMessageOfType,
|
|
863
|
+
getValidationState
|
|
864
|
+
});
|
|
865
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/avatar/avatar.vue?vue&type=script&lang=js&
|
|
866
|
+
//
|
|
867
|
+
//
|
|
868
|
+
//
|
|
869
|
+
//
|
|
870
|
+
//
|
|
871
|
+
//
|
|
872
|
+
//
|
|
873
|
+
//
|
|
691
874
|
//
|
|
692
875
|
//
|
|
693
876
|
//
|
|
@@ -704,36 +887,90 @@ const BADGE_COLOR_MODIFIERS = {
|
|
|
704
887
|
//
|
|
705
888
|
//
|
|
706
889
|
|
|
707
|
-
|
|
708
|
-
|
|
890
|
+
|
|
891
|
+
|
|
892
|
+
/* harmony default export */ var avatarvue_type_script_lang_js_ = ({
|
|
893
|
+
name: 'DtAvatar',
|
|
894
|
+
inheritAttrs: false,
|
|
709
895
|
props: {
|
|
710
896
|
/**
|
|
711
|
-
*
|
|
897
|
+
* Id of the avatar content wrapper element
|
|
712
898
|
*/
|
|
713
|
-
|
|
899
|
+
id: {
|
|
714
900
|
type: String,
|
|
715
|
-
|
|
901
|
+
|
|
902
|
+
default() {
|
|
903
|
+
return getUniqueString();
|
|
904
|
+
}
|
|
905
|
+
|
|
716
906
|
},
|
|
717
907
|
|
|
718
908
|
/**
|
|
719
|
-
*
|
|
909
|
+
* Applies variant class to the avatar
|
|
910
|
+
*/
|
|
911
|
+
kind: {
|
|
912
|
+
type: String,
|
|
913
|
+
default: 'default',
|
|
914
|
+
validator: kind => Object.keys(AVATAR_KIND_MODIFIERS).includes(kind)
|
|
915
|
+
},
|
|
916
|
+
|
|
917
|
+
/**
|
|
918
|
+
* The size of the avatar
|
|
919
|
+
*/
|
|
920
|
+
size: {
|
|
921
|
+
type: String,
|
|
922
|
+
default: 'md',
|
|
923
|
+
validator: size => Object.keys(AVATAR_SIZE_MODIFIERS).includes(size)
|
|
924
|
+
},
|
|
925
|
+
|
|
926
|
+
/**
|
|
927
|
+
* The color of the avatar
|
|
720
928
|
*/
|
|
721
929
|
color: {
|
|
722
930
|
type: String,
|
|
723
931
|
default: 'base',
|
|
724
|
-
validator: color => Object.keys(
|
|
932
|
+
validator: color => Object.keys(AVATAR_COLOR_MODIFIERS).includes(color)
|
|
933
|
+
},
|
|
934
|
+
|
|
935
|
+
/**
|
|
936
|
+
* Used to customize the avatar container
|
|
937
|
+
*/
|
|
938
|
+
avatarClass: {
|
|
939
|
+
type: [String, Array, Object],
|
|
940
|
+
default: ''
|
|
725
941
|
}
|
|
726
942
|
},
|
|
727
943
|
|
|
728
944
|
data() {
|
|
729
945
|
return {
|
|
730
|
-
|
|
946
|
+
AVATAR_SIZE_MODIFIERS: AVATAR_SIZE_MODIFIERS,
|
|
947
|
+
AVATAR_COLOR_MODIFIERS: AVATAR_COLOR_MODIFIERS,
|
|
948
|
+
AVATAR_KIND_MODIFIERS: AVATAR_KIND_MODIFIERS
|
|
731
949
|
};
|
|
732
|
-
}
|
|
950
|
+
},
|
|
951
|
+
|
|
952
|
+
mounted() {
|
|
953
|
+
this.validateImageAttrsPresence();
|
|
954
|
+
},
|
|
955
|
+
|
|
956
|
+
beforeUpdate() {
|
|
957
|
+
this.validateImageAttrsPresence();
|
|
958
|
+
},
|
|
959
|
+
|
|
960
|
+
methods: {
|
|
961
|
+
validateImageAttrsPresence() {
|
|
962
|
+
if (this.kind === 'default' && !this.$slots.default) {
|
|
963
|
+
// Check that default slot image required attributes are provided
|
|
964
|
+
if (!this.$attrs.src || !this.$attrs.alt) {
|
|
965
|
+
external_commonjs_vue_commonjs2_vue_root_Vue_default.a.util.warn('src and alt attributes are required for image avatars', this);
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
}
|
|
733
969
|
|
|
970
|
+
}
|
|
734
971
|
});
|
|
735
|
-
// CONCATENATED MODULE: ./components/
|
|
736
|
-
/* harmony default export */ var
|
|
972
|
+
// CONCATENATED MODULE: ./components/avatar/avatar.vue?vue&type=script&lang=js&
|
|
973
|
+
/* harmony default export */ var avatar_avatarvue_type_script_lang_js_ = (avatarvue_type_script_lang_js_);
|
|
737
974
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
738
975
|
/* globals __VUE_SSR_CONTEXT__ */
|
|
739
976
|
|
|
@@ -834,7 +1071,7 @@ function normalizeComponent (
|
|
|
834
1071
|
}
|
|
835
1072
|
}
|
|
836
1073
|
|
|
837
|
-
// CONCATENATED MODULE: ./components/
|
|
1074
|
+
// CONCATENATED MODULE: ./components/avatar/avatar.vue
|
|
838
1075
|
|
|
839
1076
|
|
|
840
1077
|
|
|
@@ -843,7 +1080,7 @@ function normalizeComponent (
|
|
|
843
1080
|
/* normalize component */
|
|
844
1081
|
|
|
845
1082
|
var component = normalizeComponent(
|
|
846
|
-
|
|
1083
|
+
avatar_avatarvue_type_script_lang_js_,
|
|
847
1084
|
render,
|
|
848
1085
|
staticRenderFns,
|
|
849
1086
|
false,
|
|
@@ -853,53 +1090,150 @@ var component = normalizeComponent(
|
|
|
853
1090
|
|
|
854
1091
|
)
|
|
855
1092
|
|
|
856
|
-
/* harmony default export */ var
|
|
857
|
-
// CONCATENATED MODULE: ./components/
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"31b17c73-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/banner/banner.vue?vue&type=template&id=928dbcb4&
|
|
861
|
-
var bannervue_type_template_id_928dbcb4_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('aside',{class:_vm.bannerClass,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($event)}}},[_c('div',{staticClass:"d-banner__dialog",attrs:{"aria-labelledby":_vm.titleId,"aria-describedby":_vm.contentId}},[_c('dt-notice-icon',_vm._g({attrs:{"kind":_vm.kind}},_vm.$listeners),[_vm._t("icon")],2),_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}},_vm.$listeners),[_vm._t("action")],2)],1)])}
|
|
862
|
-
var bannervue_type_template_id_928dbcb4_staticRenderFns = []
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
// CONCATENATED MODULE: ./components/banner/banner.vue?vue&type=template&id=928dbcb4&
|
|
866
|
-
|
|
867
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"31b17c73-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/notice/notice_icon.vue?vue&type=template&id=58ae40bb&
|
|
868
|
-
var notice_iconvue_type_template_id_58ae40bb_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",[_c(_vm.defaultIcon,{tag:"component"})])],2):_vm._e()}
|
|
869
|
-
var notice_iconvue_type_template_id_58ae40bb_staticRenderFns = []
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
// CONCATENATED MODULE: ./components/notice/notice_icon.vue?vue&type=template&id=58ae40bb&
|
|
873
|
-
|
|
874
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"31b17c73-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/@dialpad/dialtone/lib/dist/vue/icons/IconLightbulb.vue?vue&type=template&id=07d1b1af&
|
|
875
|
-
var IconLightbulbvue_type_template_id_07d1b1af_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('svg',{staticClass:"d-svg d-svg--system d-svg__lightbulb",attrs:{"aria-hidden":"true","aria-label":"Lightbulb","viewBox":"0 0 24 24"}},[_c('path',{attrs:{"d":"M9 21c0 .5.4 1 1 1h4c.6 0 1-.5 1-1v-1H9v1zm3-19C8.1 2 5 5.1 5 9c0 2.4 1.2 4.5 3 5.7V17c0 .5.4 1 1 1h6c.6 0 1-.5 1-1v-2.3c1.8-1.3 3-3.4 3-5.7 0-3.9-3.1-7-7-7z"}})])}
|
|
876
|
-
var IconLightbulbvue_type_template_id_07d1b1af_staticRenderFns = []
|
|
1093
|
+
/* harmony default export */ var avatar = (component.exports);
|
|
1094
|
+
// CONCATENATED MODULE: ./components/avatar/index.js
|
|
877
1095
|
|
|
878
1096
|
|
|
879
|
-
// CONCATENATED MODULE: ./node_modules
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
var
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
/* normalize component */
|
|
1097
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5b8bbebb-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/badge/badge.vue?vue&type=template&id=8281dbe6&
|
|
1098
|
+
var badgevue_type_template_id_8281dbe6_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{class:[
|
|
1099
|
+
'd-badge',
|
|
1100
|
+
_vm.BADGE_COLOR_MODIFIERS[_vm.color] ],attrs:{"data-qa":"dt-badge"}},[_vm._t("default",[_vm._v(" "+_vm._s(_vm.text)+" ")])],2)}
|
|
1101
|
+
var badgevue_type_template_id_8281dbe6_staticRenderFns = []
|
|
887
1102
|
|
|
888
|
-
var IconLightbulb_component = normalizeComponent(
|
|
889
|
-
script,
|
|
890
|
-
IconLightbulbvue_type_template_id_07d1b1af_render,
|
|
891
|
-
IconLightbulbvue_type_template_id_07d1b1af_staticRenderFns,
|
|
892
|
-
false,
|
|
893
|
-
null,
|
|
894
|
-
null,
|
|
895
|
-
null
|
|
896
|
-
|
|
897
|
-
)
|
|
898
1103
|
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
1104
|
+
// CONCATENATED MODULE: ./components/badge/badge.vue?vue&type=template&id=8281dbe6&
|
|
1105
|
+
|
|
1106
|
+
// CONCATENATED MODULE: ./components/badge/badge_constants.js
|
|
1107
|
+
const BADGE_COLOR_MODIFIERS = {
|
|
1108
|
+
base: '',
|
|
1109
|
+
'black-700': 'd-badge--black-700',
|
|
1110
|
+
'green-400': 'd-badge--green-400',
|
|
1111
|
+
'orange-400': 'd-badge--orange-400',
|
|
1112
|
+
'pink-300': 'd-badge--pink-300',
|
|
1113
|
+
'pink-500': 'd-badge--pink-500',
|
|
1114
|
+
'pink-600': 'd-badge--pink-600',
|
|
1115
|
+
'pink-700': 'd-badge--pink-700',
|
|
1116
|
+
'purple-100': 'd-badge--purple-100',
|
|
1117
|
+
'purple-300': 'd-badge--purple-300',
|
|
1118
|
+
'purple-500': 'd-badge--purple-500',
|
|
1119
|
+
'purple-700': 'd-badge--purple-700',
|
|
1120
|
+
'red-500': 'd-badge--red-500',
|
|
1121
|
+
white: 'd-badge--white',
|
|
1122
|
+
'yellow-300': 'd-badge--yellow-300'
|
|
1123
|
+
};
|
|
1124
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/badge/badge.vue?vue&type=script&lang=js&
|
|
1125
|
+
//
|
|
1126
|
+
//
|
|
1127
|
+
//
|
|
1128
|
+
//
|
|
1129
|
+
//
|
|
1130
|
+
//
|
|
1131
|
+
//
|
|
1132
|
+
//
|
|
1133
|
+
//
|
|
1134
|
+
//
|
|
1135
|
+
//
|
|
1136
|
+
//
|
|
1137
|
+
//
|
|
1138
|
+
//
|
|
1139
|
+
//
|
|
1140
|
+
|
|
1141
|
+
/* harmony default export */ var badgevue_type_script_lang_js_ = ({
|
|
1142
|
+
name: 'DtBadge',
|
|
1143
|
+
props: {
|
|
1144
|
+
/**
|
|
1145
|
+
* Text for the badge content
|
|
1146
|
+
*/
|
|
1147
|
+
text: {
|
|
1148
|
+
type: String,
|
|
1149
|
+
default: ''
|
|
1150
|
+
},
|
|
1151
|
+
|
|
1152
|
+
/**
|
|
1153
|
+
* Color for the badge background
|
|
1154
|
+
*/
|
|
1155
|
+
color: {
|
|
1156
|
+
type: String,
|
|
1157
|
+
default: 'base',
|
|
1158
|
+
validator: color => Object.keys(BADGE_COLOR_MODIFIERS).includes(color)
|
|
1159
|
+
}
|
|
1160
|
+
},
|
|
1161
|
+
|
|
1162
|
+
data() {
|
|
1163
|
+
return {
|
|
1164
|
+
BADGE_COLOR_MODIFIERS: BADGE_COLOR_MODIFIERS
|
|
1165
|
+
};
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
});
|
|
1169
|
+
// CONCATENATED MODULE: ./components/badge/badge.vue?vue&type=script&lang=js&
|
|
1170
|
+
/* harmony default export */ var badge_badgevue_type_script_lang_js_ = (badgevue_type_script_lang_js_);
|
|
1171
|
+
// CONCATENATED MODULE: ./components/badge/badge.vue
|
|
1172
|
+
|
|
1173
|
+
|
|
1174
|
+
|
|
1175
|
+
|
|
1176
|
+
|
|
1177
|
+
/* normalize component */
|
|
1178
|
+
|
|
1179
|
+
var badge_component = normalizeComponent(
|
|
1180
|
+
badge_badgevue_type_script_lang_js_,
|
|
1181
|
+
badgevue_type_template_id_8281dbe6_render,
|
|
1182
|
+
badgevue_type_template_id_8281dbe6_staticRenderFns,
|
|
1183
|
+
false,
|
|
1184
|
+
null,
|
|
1185
|
+
null,
|
|
1186
|
+
null
|
|
1187
|
+
|
|
1188
|
+
)
|
|
1189
|
+
|
|
1190
|
+
/* harmony default export */ var badge = (badge_component.exports);
|
|
1191
|
+
// CONCATENATED MODULE: ./components/badge/index.js
|
|
1192
|
+
|
|
1193
|
+
|
|
1194
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5b8bbebb-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/banner/banner.vue?vue&type=template&id=928dbcb4&
|
|
1195
|
+
var bannervue_type_template_id_928dbcb4_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('aside',{class:_vm.bannerClass,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($event)}}},[_c('div',{staticClass:"d-banner__dialog",attrs:{"aria-labelledby":_vm.titleId,"aria-describedby":_vm.contentId}},[_c('dt-notice-icon',_vm._g({attrs:{"kind":_vm.kind}},_vm.$listeners),[_vm._t("icon")],2),_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}},_vm.$listeners),[_vm._t("action")],2)],1)])}
|
|
1196
|
+
var bannervue_type_template_id_928dbcb4_staticRenderFns = []
|
|
1197
|
+
|
|
1198
|
+
|
|
1199
|
+
// CONCATENATED MODULE: ./components/banner/banner.vue?vue&type=template&id=928dbcb4&
|
|
1200
|
+
|
|
1201
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5b8bbebb-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/notice/notice_icon.vue?vue&type=template&id=58ae40bb&
|
|
1202
|
+
var notice_iconvue_type_template_id_58ae40bb_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",[_c(_vm.defaultIcon,{tag:"component"})])],2):_vm._e()}
|
|
1203
|
+
var notice_iconvue_type_template_id_58ae40bb_staticRenderFns = []
|
|
1204
|
+
|
|
1205
|
+
|
|
1206
|
+
// CONCATENATED MODULE: ./components/notice/notice_icon.vue?vue&type=template&id=58ae40bb&
|
|
1207
|
+
|
|
1208
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5b8bbebb-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/@dialpad/dialtone/lib/dist/vue/icons/IconLightbulb.vue?vue&type=template&id=07d1b1af&
|
|
1209
|
+
var IconLightbulbvue_type_template_id_07d1b1af_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('svg',{staticClass:"d-svg d-svg--system d-svg__lightbulb",attrs:{"aria-hidden":"true","aria-label":"Lightbulb","viewBox":"0 0 24 24"}},[_c('path',{attrs:{"d":"M9 21c0 .5.4 1 1 1h4c.6 0 1-.5 1-1v-1H9v1zm3-19C8.1 2 5 5.1 5 9c0 2.4 1.2 4.5 3 5.7V17c0 .5.4 1 1 1h6c.6 0 1-.5 1-1v-2.3c1.8-1.3 3-3.4 3-5.7 0-3.9-3.1-7-7-7z"}})])}
|
|
1210
|
+
var IconLightbulbvue_type_template_id_07d1b1af_staticRenderFns = []
|
|
1211
|
+
|
|
1212
|
+
|
|
1213
|
+
// CONCATENATED MODULE: ./node_modules/@dialpad/dialtone/lib/dist/vue/icons/IconLightbulb.vue?vue&type=template&id=07d1b1af&
|
|
1214
|
+
|
|
1215
|
+
// CONCATENATED MODULE: ./node_modules/@dialpad/dialtone/lib/dist/vue/icons/IconLightbulb.vue
|
|
1216
|
+
|
|
1217
|
+
var script = {}
|
|
1218
|
+
|
|
1219
|
+
|
|
1220
|
+
/* normalize component */
|
|
1221
|
+
|
|
1222
|
+
var IconLightbulb_component = normalizeComponent(
|
|
1223
|
+
script,
|
|
1224
|
+
IconLightbulbvue_type_template_id_07d1b1af_render,
|
|
1225
|
+
IconLightbulbvue_type_template_id_07d1b1af_staticRenderFns,
|
|
1226
|
+
false,
|
|
1227
|
+
null,
|
|
1228
|
+
null,
|
|
1229
|
+
null
|
|
1230
|
+
|
|
1231
|
+
)
|
|
1232
|
+
|
|
1233
|
+
/* harmony default export */ var IconLightbulb = (IconLightbulb_component.exports);
|
|
1234
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5b8bbebb-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/@dialpad/dialtone/lib/dist/vue/icons/IconInfo.vue?vue&type=template&id=d1105ee6&
|
|
1235
|
+
var IconInfovue_type_template_id_d1105ee6_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('svg',{staticClass:"d-svg d-svg--system d-svg__info",attrs:{"aria-hidden":"true","aria-label":"Info","viewBox":"0 0 24 24"}},[_c('path',{attrs:{"d":"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}})])}
|
|
1236
|
+
var IconInfovue_type_template_id_d1105ee6_staticRenderFns = []
|
|
903
1237
|
|
|
904
1238
|
|
|
905
1239
|
// CONCATENATED MODULE: ./node_modules/@dialpad/dialtone/lib/dist/vue/icons/IconInfo.vue?vue&type=template&id=d1105ee6&
|
|
@@ -923,7 +1257,7 @@ var IconInfo_component = normalizeComponent(
|
|
|
923
1257
|
)
|
|
924
1258
|
|
|
925
1259
|
/* harmony default export */ var IconInfo = (IconInfo_component.exports);
|
|
926
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
1260
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5b8bbebb-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/@dialpad/dialtone/lib/dist/vue/icons/IconWarning.vue?vue&type=template&id=0a24defa&
|
|
927
1261
|
var IconWarningvue_type_template_id_0a24defa_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('svg',{staticClass:"d-svg d-svg--system d-svg__warning",attrs:{"aria-hidden":"true","aria-label":"Warning","viewBox":"0 0 24 24"}},[_c('path',{attrs:{"d":"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}})])}
|
|
928
1262
|
var IconWarningvue_type_template_id_0a24defa_staticRenderFns = []
|
|
929
1263
|
|
|
@@ -949,7 +1283,7 @@ var IconWarning_component = normalizeComponent(
|
|
|
949
1283
|
)
|
|
950
1284
|
|
|
951
1285
|
/* harmony default export */ var IconWarning = (IconWarning_component.exports);
|
|
952
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
1286
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5b8bbebb-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/@dialpad/dialtone/lib/dist/vue/icons/IconError.vue?vue&type=template&id=4d9e3e9d&
|
|
953
1287
|
var IconErrorvue_type_template_id_4d9e3e9d_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('svg',{staticClass:"d-svg d-svg--system d-svg__error",attrs:{"aria-hidden":"true","aria-label":"Error","viewBox":"0 0 24 24"}},[_c('path',{attrs:{"d":"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"}})])}
|
|
954
1288
|
var IconErrorvue_type_template_id_4d9e3e9d_staticRenderFns = []
|
|
955
1289
|
|
|
@@ -975,7 +1309,7 @@ var IconError_component = normalizeComponent(
|
|
|
975
1309
|
)
|
|
976
1310
|
|
|
977
1311
|
/* harmony default export */ var IconError = (IconError_component.exports);
|
|
978
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
1312
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5b8bbebb-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/@dialpad/dialtone/lib/dist/vue/icons/IconCheckCircle.vue?vue&type=template&id=016c7d48&
|
|
979
1313
|
var IconCheckCirclevue_type_template_id_016c7d48_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('svg',{staticClass:"d-svg d-svg--system d-svg__checkCircle",attrs:{"aria-hidden":"true","aria-label":"Check Circle","viewBox":"0 0 24 24"}},[_c('path',{attrs:{"d":"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}})])}
|
|
980
1314
|
var IconCheckCirclevue_type_template_id_016c7d48_staticRenderFns = []
|
|
981
1315
|
|
|
@@ -1079,12 +1413,12 @@ var notice_icon_component = normalizeComponent(
|
|
|
1079
1413
|
)
|
|
1080
1414
|
|
|
1081
1415
|
/* harmony default export */ var notice_icon = (notice_icon_component.exports);
|
|
1082
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
1083
|
-
var
|
|
1084
|
-
var
|
|
1416
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5b8bbebb-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/notice/notice_content.vue?vue&type=template&id=24cf95e4&
|
|
1417
|
+
var notice_contentvue_type_template_id_24cf95e4_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"d-notice__content",attrs:{"data-qa":"notice-content"}},[(_vm.title || this.$slots.titleOverride)?_c('p',{staticClass:"d-notice__title",attrs:{"id":_vm.titleId,"data-qa":"notice-content-title"}},[_vm._t("titleOverride",[_vm._v(" "+_vm._s(_vm.title)+" ")])],2):_vm._e(),_c('p',{staticClass:"d-notice__message",attrs:{"id":_vm.contentId,"data-qa":"notice-content-message"}},[_vm._t("default")],2)])}
|
|
1418
|
+
var notice_contentvue_type_template_id_24cf95e4_staticRenderFns = []
|
|
1085
1419
|
|
|
1086
1420
|
|
|
1087
|
-
// CONCATENATED MODULE: ./components/notice/notice_content.vue?vue&type=template&id=
|
|
1421
|
+
// CONCATENATED MODULE: ./components/notice/notice_content.vue?vue&type=template&id=24cf95e4&
|
|
1088
1422
|
|
|
1089
1423
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/notice/notice_content.vue?vue&type=script&lang=js&
|
|
1090
1424
|
//
|
|
@@ -1141,8 +1475,8 @@ var notice_contentvue_type_template_id_4ce704f6_staticRenderFns = []
|
|
|
1141
1475
|
|
|
1142
1476
|
var notice_content_component = normalizeComponent(
|
|
1143
1477
|
notice_notice_contentvue_type_script_lang_js_,
|
|
1144
|
-
|
|
1145
|
-
|
|
1478
|
+
notice_contentvue_type_template_id_24cf95e4_render,
|
|
1479
|
+
notice_contentvue_type_template_id_24cf95e4_staticRenderFns,
|
|
1146
1480
|
false,
|
|
1147
1481
|
null,
|
|
1148
1482
|
null,
|
|
@@ -1151,14 +1485,14 @@ var notice_content_component = normalizeComponent(
|
|
|
1151
1485
|
)
|
|
1152
1486
|
|
|
1153
1487
|
/* harmony default export */ var notice_content = (notice_content_component.exports);
|
|
1154
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
1488
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5b8bbebb-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/notice/notice_action.vue?vue&type=template&id=279e5f84&
|
|
1155
1489
|
var notice_actionvue_type_template_id_279e5f84_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"d-notice__actions",attrs:{"data-qa":"notice-content-actions"}},[_vm._t("default"),(!_vm.hideClose)?_c('dt-button',_vm._b({ref:"closeButton",attrs:{"size":"sm","importance":"clear","circle":"","aria-label":_vm.closeButtonProps.ariaLabel ? _vm.closeButtonProps.ariaLabel : 'Close'},on:{"click":_vm.close},scopedSlots:_vm._u([{key:"icon",fn:function(){return [_c('icon-close')]},proxy:true}],null,false,4267981299)},'dt-button',_vm.closeButtonProps,false)):_vm._e()],2)}
|
|
1156
1490
|
var notice_actionvue_type_template_id_279e5f84_staticRenderFns = []
|
|
1157
1491
|
|
|
1158
1492
|
|
|
1159
1493
|
// CONCATENATED MODULE: ./components/notice/notice_action.vue?vue&type=template&id=279e5f84&
|
|
1160
1494
|
|
|
1161
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
1495
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5b8bbebb-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/@dialpad/dialtone/lib/dist/vue/icons/IconClose.vue?vue&type=template&id=18642c39&
|
|
1162
1496
|
var IconClosevue_type_template_id_18642c39_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('svg',{staticClass:"d-svg d-svg--system d-svg__close",attrs:{"aria-hidden":"true","aria-label":"Close","viewBox":"0 0 24 24"}},[_c('path',{attrs:{"d":"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"}})])}
|
|
1163
1497
|
var IconClosevue_type_template_id_18642c39_staticRenderFns = []
|
|
1164
1498
|
|
|
@@ -1184,16 +1518,17 @@ var IconClose_component = normalizeComponent(
|
|
|
1184
1518
|
)
|
|
1185
1519
|
|
|
1186
1520
|
/* harmony default export */ var IconClose = (IconClose_component.exports);
|
|
1187
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
1188
|
-
var
|
|
1189
|
-
|
|
1521
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5b8bbebb-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/button/button.vue?vue&type=template&id=50f25d54&
|
|
1522
|
+
var buttonvue_type_template_id_50f25d54_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('button',_vm._g({class:[
|
|
1523
|
+
'base-button__button',
|
|
1524
|
+
_vm.buttonClasses ],attrs:{"data-qa":"dt-button","type":_vm.type,"aria-live":_vm.computedAriaLive,"aria-label":_vm.loading ? 'loading' : _vm.$attrs['aria-label']}},_vm.buttonListeners),[(_vm.$slots.icon && !_vm.link)?_c('span',{class:[
|
|
1525
|
+
'base-button__icon',
|
|
1526
|
+
'd-btn__icon',
|
|
1527
|
+
_vm.ICON_POSITION_MODIFIERS[_vm.iconPosition] ],attrs:{"data-qa":"dt-button-icon"}},[_vm._t("icon")],2):_vm._e(),_c('span',{class:['base-button__label', 'd-btn__label'],attrs:{"data-qa":"dt-button-label"}},[_vm._t("default")],2)])}
|
|
1528
|
+
var buttonvue_type_template_id_50f25d54_staticRenderFns = []
|
|
1190
1529
|
|
|
1191
1530
|
|
|
1192
|
-
// CONCATENATED MODULE: ./components/button/button.vue?vue&type=template&id=
|
|
1193
|
-
|
|
1194
|
-
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
1195
|
-
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__("8bbf");
|
|
1196
|
-
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
|
1531
|
+
// CONCATENATED MODULE: ./components/button/button.vue?vue&type=template&id=50f25d54&
|
|
1197
1532
|
|
|
1198
1533
|
// CONCATENATED MODULE: ./components/button/button_constants.js
|
|
1199
1534
|
const BUTTON_SIZE_MODIFIERS = {
|
|
@@ -1292,6 +1627,13 @@ const LINK_KIND_MODIFIERS = {
|
|
|
1292
1627
|
//
|
|
1293
1628
|
//
|
|
1294
1629
|
//
|
|
1630
|
+
//
|
|
1631
|
+
//
|
|
1632
|
+
//
|
|
1633
|
+
//
|
|
1634
|
+
//
|
|
1635
|
+
//
|
|
1636
|
+
//
|
|
1295
1637
|
|
|
1296
1638
|
|
|
1297
1639
|
|
|
@@ -1414,6 +1756,7 @@ const LINK_KIND_MODIFIERS = {
|
|
|
1414
1756
|
|
|
1415
1757
|
data() {
|
|
1416
1758
|
return {
|
|
1759
|
+
ICON_POSITION_MODIFIERS: ICON_POSITION_MODIFIERS,
|
|
1417
1760
|
// whether the button is currently in focus
|
|
1418
1761
|
isInFocus: false
|
|
1419
1762
|
};
|
|
@@ -1448,10 +1791,6 @@ const LINK_KIND_MODIFIERS = {
|
|
|
1448
1791
|
'd-btn--circle': this.circle,
|
|
1449
1792
|
'd-btn--loading': this.loading
|
|
1450
1793
|
}];
|
|
1451
|
-
},
|
|
1452
|
-
|
|
1453
|
-
iconClasses() {
|
|
1454
|
-
return ['d-btn__icon', ICON_POSITION_MODIFIERS[this.iconPosition]];
|
|
1455
1794
|
}
|
|
1456
1795
|
|
|
1457
1796
|
},
|
|
@@ -1497,8 +1836,8 @@ const LINK_KIND_MODIFIERS = {
|
|
|
1497
1836
|
|
|
1498
1837
|
var button_component = normalizeComponent(
|
|
1499
1838
|
button_buttonvue_type_script_lang_js_,
|
|
1500
|
-
|
|
1501
|
-
|
|
1839
|
+
buttonvue_type_template_id_50f25d54_render,
|
|
1840
|
+
buttonvue_type_template_id_50f25d54_staticRenderFns,
|
|
1502
1841
|
false,
|
|
1503
1842
|
null,
|
|
1504
1843
|
null,
|
|
@@ -1705,126 +2044,6 @@ const focusableElementsList = `button:${nonFocusableAttrs},
|
|
|
1705
2044
|
|
|
1706
2045
|
}
|
|
1707
2046
|
});
|
|
1708
|
-
// CONCATENATED MODULE: ./components/constants.js
|
|
1709
|
-
/* TODO: Move and sort these in a constants directory
|
|
1710
|
-
|
|
1711
|
-
Example:
|
|
1712
|
-
constants/
|
|
1713
|
-
forms.js
|
|
1714
|
-
defaults.js
|
|
1715
|
-
...
|
|
1716
|
-
*/
|
|
1717
|
-
// Types of messages, also dictates what is the current state of the input.
|
|
1718
|
-
const VALIDATION_MESSAGE_TYPES = {
|
|
1719
|
-
ERROR: 'error',
|
|
1720
|
-
WARNING: 'warning',
|
|
1721
|
-
SUCCESS: 'success'
|
|
1722
|
-
}; // Description size variants
|
|
1723
|
-
|
|
1724
|
-
const DESCRIPTION_SIZE_TYPES = {
|
|
1725
|
-
LARGE: 'lg',
|
|
1726
|
-
EXTRA_LARGE: 'xl'
|
|
1727
|
-
}; // Description size variants
|
|
1728
|
-
|
|
1729
|
-
const DESCRIPTION_SIZE_MODIFIERS = {
|
|
1730
|
-
xs: '',
|
|
1731
|
-
sm: '',
|
|
1732
|
-
md: '',
|
|
1733
|
-
lg: 'd-description--lg',
|
|
1734
|
-
xl: 'd-description--xl'
|
|
1735
|
-
}; // Label size variants
|
|
1736
|
-
|
|
1737
|
-
const LABEL_SIZE_MODIFIERS = {
|
|
1738
|
-
xs: 'd-label--xs',
|
|
1739
|
-
sm: 'd-label--sm',
|
|
1740
|
-
md: '',
|
|
1741
|
-
lg: 'd-label--lg',
|
|
1742
|
-
xl: 'd-label--xl'
|
|
1743
|
-
};
|
|
1744
|
-
/*
|
|
1745
|
-
* Any string message or message object in the messages prop that do not specify
|
|
1746
|
-
* a 'type' attributes will default to 'DEFAULT_MESSAGE_TYPE'.
|
|
1747
|
-
*/
|
|
1748
|
-
|
|
1749
|
-
const DEFAULT_VALIDATION_MESSAGE_TYPE = VALIDATION_MESSAGE_TYPES.ERROR; // Default prefix used for ids
|
|
1750
|
-
|
|
1751
|
-
const DEFAULT_PREFIX = 'hs';
|
|
1752
|
-
/* harmony default export */ var constants = ({
|
|
1753
|
-
VALIDATION_MESSAGE_TYPES,
|
|
1754
|
-
DESCRIPTION_SIZE_TYPES,
|
|
1755
|
-
DEFAULT_VALIDATION_MESSAGE_TYPE,
|
|
1756
|
-
DEFAULT_PREFIX
|
|
1757
|
-
});
|
|
1758
|
-
// CONCATENATED MODULE: ./components/utils.js
|
|
1759
|
-
|
|
1760
|
-
let UNIQUE_ID_COUNTER = 0;
|
|
1761
|
-
function getUniqueString(prefix = DEFAULT_PREFIX) {
|
|
1762
|
-
return `${prefix}${UNIQUE_ID_COUNTER++}`;
|
|
1763
|
-
}
|
|
1764
|
-
function formatMessages(messages) {
|
|
1765
|
-
if (!messages) {
|
|
1766
|
-
return [];
|
|
1767
|
-
}
|
|
1768
|
-
|
|
1769
|
-
return messages.map(message => {
|
|
1770
|
-
if (typeof message === 'string') {
|
|
1771
|
-
return {
|
|
1772
|
-
message,
|
|
1773
|
-
type: DEFAULT_VALIDATION_MESSAGE_TYPE
|
|
1774
|
-
};
|
|
1775
|
-
}
|
|
1776
|
-
|
|
1777
|
-
return message;
|
|
1778
|
-
});
|
|
1779
|
-
}
|
|
1780
|
-
function filterFormattedMessages(formattedMessages) {
|
|
1781
|
-
const validationState = getValidationState(formattedMessages);
|
|
1782
|
-
|
|
1783
|
-
if (!formattedMessages || !validationState) {
|
|
1784
|
-
return [];
|
|
1785
|
-
}
|
|
1786
|
-
|
|
1787
|
-
return formattedMessages.filter(message => message.type === validationState);
|
|
1788
|
-
}
|
|
1789
|
-
/*
|
|
1790
|
-
* The priority order of message types is as flows: 'error' > 'warning' > 'success'.
|
|
1791
|
-
* If any message of type 'error' is present in messages, the input state is considered
|
|
1792
|
-
* to be 'error', then 'warning' and lastly 'success'.
|
|
1793
|
-
*/
|
|
1794
|
-
|
|
1795
|
-
function getValidationState(formattedMessages) {
|
|
1796
|
-
if (!formattedMessages) {
|
|
1797
|
-
return null;
|
|
1798
|
-
}
|
|
1799
|
-
|
|
1800
|
-
if (hasFormattedMessageOfType(formattedMessages, VALIDATION_MESSAGE_TYPES.ERROR)) {
|
|
1801
|
-
return VALIDATION_MESSAGE_TYPES.ERROR;
|
|
1802
|
-
}
|
|
1803
|
-
|
|
1804
|
-
if (hasFormattedMessageOfType(formattedMessages, VALIDATION_MESSAGE_TYPES.WARNING)) {
|
|
1805
|
-
return VALIDATION_MESSAGE_TYPES.WARNING;
|
|
1806
|
-
}
|
|
1807
|
-
|
|
1808
|
-
if (hasFormattedMessageOfType(formattedMessages, VALIDATION_MESSAGE_TYPES.SUCCESS)) {
|
|
1809
|
-
return VALIDATION_MESSAGE_TYPES.SUCCESS;
|
|
1810
|
-
}
|
|
1811
|
-
|
|
1812
|
-
return null;
|
|
1813
|
-
}
|
|
1814
|
-
function hasFormattedMessageOfType(formattedMessages, messageType) {
|
|
1815
|
-
if (!formattedMessages || !messageType) {
|
|
1816
|
-
return false;
|
|
1817
|
-
}
|
|
1818
|
-
|
|
1819
|
-
return formattedMessages.some(message => (message === null || message === void 0 ? void 0 : message.type) === messageType);
|
|
1820
|
-
}
|
|
1821
|
-
/* harmony default export */ var utils = ({
|
|
1822
|
-
getUniqueString,
|
|
1823
|
-
formatMessages,
|
|
1824
|
-
filterFormattedMessages,
|
|
1825
|
-
hasFormattedMessageOfType,
|
|
1826
|
-
getValidationState
|
|
1827
|
-
});
|
|
1828
2047
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/banner/banner.vue?vue&type=script&lang=js&
|
|
1829
2048
|
//
|
|
1830
2049
|
//
|
|
@@ -2020,9 +2239,310 @@ var banner_component = normalizeComponent(
|
|
|
2020
2239
|
/* harmony default export */ var banner = (banner_component.exports);
|
|
2021
2240
|
// CONCATENATED MODULE: ./components/banner/index.js
|
|
2022
2241
|
|
|
2242
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5b8bbebb-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/breadcrumbs/breadcrumbs.vue?vue&type=template&id=b762e354&
|
|
2243
|
+
var breadcrumbsvue_type_template_id_b762e354_render = function () {
|
|
2244
|
+
var _obj;
|
|
2245
|
+
var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('nav',{class:[
|
|
2246
|
+
'd-breadcrumbs',
|
|
2247
|
+
( _obj = {}, _obj[_vm.BREADCRUMBS_INVERTED_MODIFIER] = _vm.inverted, _obj ) ],attrs:{"aria-label":_vm.ariaLabel,"data-qa":"dt-breadcrumbs"}},[_c('ol',[_vm._t("default",_vm._l((_vm.breadcrumbs),function(item,index){return _c('dt-breadcrumb-item',_vm._b({key:_vm.getBreadcrumbItemKey(index),attrs:{"inverted":_vm.inverted}},'dt-breadcrumb-item',item,false))}))],2)])}
|
|
2248
|
+
var breadcrumbsvue_type_template_id_b762e354_staticRenderFns = []
|
|
2249
|
+
|
|
2250
|
+
|
|
2251
|
+
// CONCATENATED MODULE: ./components/breadcrumbs/breadcrumbs.vue?vue&type=template&id=b762e354&
|
|
2252
|
+
|
|
2253
|
+
// CONCATENATED MODULE: ./components/breadcrumbs/breadcrumbs_constants.js
|
|
2254
|
+
const BREADCRUMB_ITEM_SELECTED_MODIFIER = 'd-breadcrumbs__item--selected';
|
|
2255
|
+
const BREADCRUMBS_INVERTED_MODIFIER = 'd-breadcrumbs--inverted';
|
|
2256
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5b8bbebb-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/breadcrumbs/breadcrumb_item.vue?vue&type=template&id=6f97ec8a&
|
|
2257
|
+
var breadcrumb_itemvue_type_template_id_6f97ec8a_render = function () {
|
|
2258
|
+
var _obj;
|
|
2259
|
+
var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{class:[
|
|
2260
|
+
'd-breadcrumbs__item',
|
|
2261
|
+
( _obj = {}, _obj[_vm.BREADCRUMB_ITEM_SELECTED_MODIFIER] = _vm.selected, _obj ) ],attrs:{"data-qa":"dt-breadcrumb-item"}},[_c('dt-link',_vm._b({attrs:{"kind":_vm.linkKind,"aria-current":_vm.ariaCurrent,"data-qa":"breadcrumb-item"}},'dt-link',_vm.$attrs,false),[_vm._t("default",[_vm._v(" "+_vm._s(_vm.label)+" ")])],2)],1)}
|
|
2262
|
+
var breadcrumb_itemvue_type_template_id_6f97ec8a_staticRenderFns = []
|
|
2263
|
+
|
|
2264
|
+
|
|
2265
|
+
// CONCATENATED MODULE: ./components/breadcrumbs/breadcrumb_item.vue?vue&type=template&id=6f97ec8a&
|
|
2266
|
+
|
|
2267
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5b8bbebb-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/link/link.vue?vue&type=template&id=6af78110&
|
|
2268
|
+
var linkvue_type_template_id_6af78110_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('a',{class:[
|
|
2269
|
+
'd-link',
|
|
2270
|
+
_vm.LINK_KIND_MODIFIERS[_vm.kind] ],attrs:{"data-qa":"dt-link"}},[_vm._t("default")],2)}
|
|
2271
|
+
var linkvue_type_template_id_6af78110_staticRenderFns = []
|
|
2272
|
+
|
|
2273
|
+
|
|
2274
|
+
// CONCATENATED MODULE: ./components/link/link.vue?vue&type=template&id=6af78110&
|
|
2275
|
+
|
|
2276
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/link/link.vue?vue&type=script&lang=js&
|
|
2277
|
+
//
|
|
2278
|
+
//
|
|
2279
|
+
//
|
|
2280
|
+
//
|
|
2281
|
+
//
|
|
2282
|
+
//
|
|
2283
|
+
//
|
|
2284
|
+
//
|
|
2285
|
+
//
|
|
2286
|
+
//
|
|
2287
|
+
//
|
|
2288
|
+
//
|
|
2289
|
+
|
|
2290
|
+
/* harmony default export */ var linkvue_type_script_lang_js_ = ({
|
|
2291
|
+
name: 'DtLink',
|
|
2292
|
+
props: {
|
|
2293
|
+
/**
|
|
2294
|
+
* Applies the link variant styles
|
|
2295
|
+
*/
|
|
2296
|
+
kind: {
|
|
2297
|
+
type: String,
|
|
2298
|
+
default: '',
|
|
2299
|
+
|
|
2300
|
+
validator(kind) {
|
|
2301
|
+
return LINK_VARIANTS.includes(kind);
|
|
2302
|
+
}
|
|
2303
|
+
|
|
2304
|
+
}
|
|
2305
|
+
},
|
|
2306
|
+
|
|
2307
|
+
data() {
|
|
2308
|
+
return {
|
|
2309
|
+
LINK_KIND_MODIFIERS: LINK_KIND_MODIFIERS
|
|
2310
|
+
};
|
|
2311
|
+
}
|
|
2312
|
+
|
|
2313
|
+
});
|
|
2314
|
+
// CONCATENATED MODULE: ./components/link/link.vue?vue&type=script&lang=js&
|
|
2315
|
+
/* harmony default export */ var link_linkvue_type_script_lang_js_ = (linkvue_type_script_lang_js_);
|
|
2316
|
+
// CONCATENATED MODULE: ./components/link/link.vue
|
|
2317
|
+
|
|
2318
|
+
|
|
2319
|
+
|
|
2320
|
+
|
|
2321
|
+
|
|
2322
|
+
/* normalize component */
|
|
2323
|
+
|
|
2324
|
+
var link_component = normalizeComponent(
|
|
2325
|
+
link_linkvue_type_script_lang_js_,
|
|
2326
|
+
linkvue_type_template_id_6af78110_render,
|
|
2327
|
+
linkvue_type_template_id_6af78110_staticRenderFns,
|
|
2328
|
+
false,
|
|
2329
|
+
null,
|
|
2330
|
+
null,
|
|
2331
|
+
null
|
|
2332
|
+
|
|
2333
|
+
)
|
|
2334
|
+
|
|
2335
|
+
/* harmony default export */ var link_link = (link_component.exports);
|
|
2336
|
+
// CONCATENATED MODULE: ./components/link/index.js
|
|
2337
|
+
|
|
2338
|
+
|
|
2339
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/breadcrumbs/breadcrumb_item.vue?vue&type=script&lang=js&
|
|
2340
|
+
//
|
|
2341
|
+
//
|
|
2342
|
+
//
|
|
2343
|
+
//
|
|
2344
|
+
//
|
|
2345
|
+
//
|
|
2346
|
+
//
|
|
2347
|
+
//
|
|
2348
|
+
//
|
|
2349
|
+
//
|
|
2350
|
+
//
|
|
2351
|
+
//
|
|
2352
|
+
//
|
|
2353
|
+
//
|
|
2354
|
+
//
|
|
2355
|
+
//
|
|
2356
|
+
//
|
|
2357
|
+
//
|
|
2358
|
+
//
|
|
2359
|
+
//
|
|
2360
|
+
//
|
|
2361
|
+
//
|
|
2362
|
+
|
|
2363
|
+
|
|
2364
|
+
|
|
2365
|
+
/* harmony default export */ var breadcrumb_itemvue_type_script_lang_js_ = ({
|
|
2366
|
+
name: 'DtBreadcrumbItem',
|
|
2367
|
+
components: {
|
|
2368
|
+
DtLink: link_link
|
|
2369
|
+
},
|
|
2370
|
+
inheritAttrs: false,
|
|
2371
|
+
props: {
|
|
2372
|
+
/**
|
|
2373
|
+
* Applies the inverted styles to the link
|
|
2374
|
+
*/
|
|
2375
|
+
inverted: {
|
|
2376
|
+
type: Boolean,
|
|
2377
|
+
default: false
|
|
2378
|
+
},
|
|
2379
|
+
|
|
2380
|
+
/**
|
|
2381
|
+
* Applies selected styles to the breadcrumb
|
|
2382
|
+
*/
|
|
2383
|
+
selected: {
|
|
2384
|
+
type: Boolean,
|
|
2385
|
+
default: false
|
|
2386
|
+
},
|
|
2387
|
+
|
|
2388
|
+
/**
|
|
2389
|
+
* Describes the breadcrumb. Overridden by default slot
|
|
2390
|
+
* */
|
|
2391
|
+
label: {
|
|
2392
|
+
type: String,
|
|
2393
|
+
default: ''
|
|
2394
|
+
}
|
|
2395
|
+
},
|
|
2396
|
+
|
|
2397
|
+
data() {
|
|
2398
|
+
return {
|
|
2399
|
+
BREADCRUMB_ITEM_SELECTED_MODIFIER: BREADCRUMB_ITEM_SELECTED_MODIFIER
|
|
2400
|
+
};
|
|
2401
|
+
},
|
|
2402
|
+
|
|
2403
|
+
computed: {
|
|
2404
|
+
linkKind() {
|
|
2405
|
+
return this.inverted ? INVERTED : MUTED;
|
|
2406
|
+
},
|
|
2407
|
+
|
|
2408
|
+
ariaCurrent() {
|
|
2409
|
+
return this.selected ? 'location' : undefined;
|
|
2410
|
+
}
|
|
2411
|
+
|
|
2412
|
+
}
|
|
2413
|
+
});
|
|
2414
|
+
// CONCATENATED MODULE: ./components/breadcrumbs/breadcrumb_item.vue?vue&type=script&lang=js&
|
|
2415
|
+
/* harmony default export */ var breadcrumbs_breadcrumb_itemvue_type_script_lang_js_ = (breadcrumb_itemvue_type_script_lang_js_);
|
|
2416
|
+
// CONCATENATED MODULE: ./components/breadcrumbs/breadcrumb_item.vue
|
|
2417
|
+
|
|
2418
|
+
|
|
2419
|
+
|
|
2420
|
+
|
|
2421
|
+
|
|
2422
|
+
/* normalize component */
|
|
2423
|
+
|
|
2424
|
+
var breadcrumb_item_component = normalizeComponent(
|
|
2425
|
+
breadcrumbs_breadcrumb_itemvue_type_script_lang_js_,
|
|
2426
|
+
breadcrumb_itemvue_type_template_id_6f97ec8a_render,
|
|
2427
|
+
breadcrumb_itemvue_type_template_id_6f97ec8a_staticRenderFns,
|
|
2428
|
+
false,
|
|
2429
|
+
null,
|
|
2430
|
+
null,
|
|
2431
|
+
null
|
|
2432
|
+
|
|
2433
|
+
)
|
|
2434
|
+
|
|
2435
|
+
/* harmony default export */ var breadcrumb_item = (breadcrumb_item_component.exports);
|
|
2436
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/breadcrumbs/breadcrumbs.vue?vue&type=script&lang=js&
|
|
2437
|
+
//
|
|
2438
|
+
//
|
|
2439
|
+
//
|
|
2440
|
+
//
|
|
2441
|
+
//
|
|
2442
|
+
//
|
|
2443
|
+
//
|
|
2444
|
+
//
|
|
2445
|
+
//
|
|
2446
|
+
//
|
|
2447
|
+
//
|
|
2448
|
+
//
|
|
2449
|
+
//
|
|
2450
|
+
//
|
|
2451
|
+
//
|
|
2452
|
+
//
|
|
2453
|
+
//
|
|
2454
|
+
//
|
|
2455
|
+
//
|
|
2456
|
+
//
|
|
2457
|
+
//
|
|
2458
|
+
//
|
|
2459
|
+
//
|
|
2460
|
+
|
|
2461
|
+
|
|
2462
|
+
|
|
2463
|
+
/* harmony default export */ var breadcrumbsvue_type_script_lang_js_ = ({
|
|
2464
|
+
name: 'DtBreadcrumbs',
|
|
2465
|
+
components: {
|
|
2466
|
+
DtBreadcrumbItem: breadcrumb_item
|
|
2467
|
+
},
|
|
2468
|
+
props: {
|
|
2469
|
+
/**
|
|
2470
|
+
* A provided list of breadcrumbs. Overridden by default slot
|
|
2471
|
+
*/
|
|
2472
|
+
breadcrumbs: {
|
|
2473
|
+
type: Array,
|
|
2474
|
+
default: () => [],
|
|
2475
|
+
|
|
2476
|
+
validate(breadcrumbs) {
|
|
2477
|
+
return breadcrumbs.every(({
|
|
2478
|
+
href,
|
|
2479
|
+
label
|
|
2480
|
+
}) => {
|
|
2481
|
+
return href !== undefined && label !== undefined;
|
|
2482
|
+
});
|
|
2483
|
+
}
|
|
2484
|
+
|
|
2485
|
+
},
|
|
2486
|
+
|
|
2487
|
+
/**
|
|
2488
|
+
* Passed through to link. If true, applies inverted styles to the link.
|
|
2489
|
+
*/
|
|
2490
|
+
inverted: {
|
|
2491
|
+
type: Boolean,
|
|
2492
|
+
default: false
|
|
2493
|
+
},
|
|
2494
|
+
|
|
2495
|
+
/**
|
|
2496
|
+
* Descriptive label for the navigation content.
|
|
2497
|
+
*/
|
|
2498
|
+
ariaLabel: {
|
|
2499
|
+
type: String,
|
|
2500
|
+
default: 'breadcrumb'
|
|
2501
|
+
}
|
|
2502
|
+
},
|
|
2503
|
+
|
|
2504
|
+
data() {
|
|
2505
|
+
return {
|
|
2506
|
+
BREADCRUMBS_INVERTED_MODIFIER: BREADCRUMBS_INVERTED_MODIFIER
|
|
2507
|
+
};
|
|
2508
|
+
},
|
|
2509
|
+
|
|
2510
|
+
methods: {
|
|
2511
|
+
getBreadcrumbItemKey(index) {
|
|
2512
|
+
return `breadcrumbs-item-${index}-${utils.getUniqueString()}`;
|
|
2513
|
+
}
|
|
2514
|
+
|
|
2515
|
+
}
|
|
2516
|
+
});
|
|
2517
|
+
// CONCATENATED MODULE: ./components/breadcrumbs/breadcrumbs.vue?vue&type=script&lang=js&
|
|
2518
|
+
/* harmony default export */ var breadcrumbs_breadcrumbsvue_type_script_lang_js_ = (breadcrumbsvue_type_script_lang_js_);
|
|
2519
|
+
// CONCATENATED MODULE: ./components/breadcrumbs/breadcrumbs.vue
|
|
2520
|
+
|
|
2521
|
+
|
|
2522
|
+
|
|
2523
|
+
|
|
2524
|
+
|
|
2525
|
+
/* normalize component */
|
|
2526
|
+
|
|
2527
|
+
var breadcrumbs_component = normalizeComponent(
|
|
2528
|
+
breadcrumbs_breadcrumbsvue_type_script_lang_js_,
|
|
2529
|
+
breadcrumbsvue_type_template_id_b762e354_render,
|
|
2530
|
+
breadcrumbsvue_type_template_id_b762e354_staticRenderFns,
|
|
2531
|
+
false,
|
|
2532
|
+
null,
|
|
2533
|
+
null,
|
|
2534
|
+
null
|
|
2535
|
+
|
|
2536
|
+
)
|
|
2537
|
+
|
|
2538
|
+
/* harmony default export */ var breadcrumbs = (breadcrumbs_component.exports);
|
|
2539
|
+
// CONCATENATED MODULE: ./components/breadcrumbs/index.js
|
|
2540
|
+
|
|
2541
|
+
|
|
2542
|
+
|
|
2023
2543
|
// CONCATENATED MODULE: ./components/button/index.js
|
|
2024
2544
|
|
|
2025
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
2545
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5b8bbebb-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/input/input.vue?vue&type=template&id=4e7e7271&
|
|
2026
2546
|
var inputvue_type_template_id_4e7e7271_render = function () {
|
|
2027
2547
|
var _obj, _obj$1;
|
|
2028
2548
|
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",[_c('div',{class:[
|
|
@@ -2058,19 +2578,19 @@ const INPUT_SIZES = {
|
|
|
2058
2578
|
INPUT_TYPES,
|
|
2059
2579
|
INPUT_SIZES
|
|
2060
2580
|
});
|
|
2061
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
2062
|
-
var
|
|
2581
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5b8bbebb-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/validation_messages/validation_messages.vue?vue&type=template&id=7d26d3bb&
|
|
2582
|
+
var validation_messagesvue_type_template_id_7d26d3bb_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.showMessages && !_vm.isFilteredValidationMessagesEmpty)?_c('div',{staticClass:"base-input__messages d-d-flex d-fd-column",attrs:{"data-qa":"validation-messages-container"}},_vm._l((_vm.filteredValidationMessages),function(ref,index){
|
|
2063
2583
|
var message = ref.message;
|
|
2064
2584
|
var type = ref.type;
|
|
2065
2585
|
return _c('div',{key:_vm.getMessageKey(type, index),class:[
|
|
2066
2586
|
'base-input__message',
|
|
2067
2587
|
'd-validation-message',
|
|
2068
2588
|
("base-input__message--" + type),
|
|
2069
|
-
("d-validation-message--" + type) ],attrs:{"role":"status","aria-live":"polite","data-qa":"validation-message"}},[
|
|
2070
|
-
var
|
|
2589
|
+
("d-validation-message--" + type) ],attrs:{"role":"status","aria-live":"polite","data-qa":"validation-message"}},[_c('p',{domProps:{"innerHTML":_vm._s(message)}})])}),0):_vm._e()}
|
|
2590
|
+
var validation_messagesvue_type_template_id_7d26d3bb_staticRenderFns = []
|
|
2071
2591
|
|
|
2072
2592
|
|
|
2073
|
-
// CONCATENATED MODULE: ./components/validation_messages/validation_messages.vue?vue&type=template&id=
|
|
2593
|
+
// CONCATENATED MODULE: ./components/validation_messages/validation_messages.vue?vue&type=template&id=7d26d3bb&
|
|
2074
2594
|
|
|
2075
2595
|
// CONCATENATED MODULE: ./components/validators.js
|
|
2076
2596
|
|
|
@@ -2187,8 +2707,8 @@ function validationMessageValidator(rawMessages) {
|
|
|
2187
2707
|
|
|
2188
2708
|
var validation_messages_component = normalizeComponent(
|
|
2189
2709
|
validation_messages_validation_messagesvue_type_script_lang_js_,
|
|
2190
|
-
|
|
2191
|
-
|
|
2710
|
+
validation_messagesvue_type_template_id_7d26d3bb_render,
|
|
2711
|
+
validation_messagesvue_type_template_id_7d26d3bb_staticRenderFns,
|
|
2192
2712
|
false,
|
|
2193
2713
|
null,
|
|
2194
2714
|
null,
|
|
@@ -2828,7 +3348,7 @@ var input_component = normalizeComponent(
|
|
|
2828
3348
|
// CONCATENATED MODULE: ./components/input/index.js
|
|
2829
3349
|
|
|
2830
3350
|
|
|
2831
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
3351
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5b8bbebb-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/input_group/input_group.vue?vue&type=template&id=34acc7c9&
|
|
2832
3352
|
var input_groupvue_type_template_id_34acc7c9_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('fieldset',{attrs:{"data-qa":_vm.dataQaGroup}},[(_vm.$slots.legend || _vm.legend)?_c('legend',_vm._b({class:['d-label', _vm.legendClass],attrs:{"data-qa":_vm.dataQaGroupLegend}},'legend',_vm.legendChildProps,false),[_vm._t("legend",[_vm._v(" "+_vm._s(_vm.legend)+" ")])],2):_vm._e(),_vm._t("default"),_c('dt-validation-messages',_vm._b({class:_vm.messagesClass,attrs:{"validation-messages":_vm.formattedMessages,"show-messages":_vm.showMessages,"data-qa":_vm.dataQaGroupMessages}},'dt-validation-messages',_vm.messagesChildProps,false))],2)}
|
|
2833
3353
|
var input_groupvue_type_template_id_34acc7c9_staticRenderFns = []
|
|
2834
3354
|
|
|
@@ -3123,23 +3643,27 @@ var input_group_component = normalizeComponent(
|
|
|
3123
3643
|
/* harmony default export */ var input_group_input_group = (input_group_component.exports);
|
|
3124
3644
|
// CONCATENATED MODULE: ./components/input_group/index.js
|
|
3125
3645
|
|
|
3126
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
3127
|
-
var
|
|
3128
|
-
|
|
3646
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5b8bbebb-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/modal/modal.vue?vue&type=template&id=055b70f4&
|
|
3647
|
+
var modalvue_type_template_id_055b70f4_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:[
|
|
3648
|
+
'd-modal',
|
|
3649
|
+
_vm.MODAL_KIND_MODIFIERS[_vm.kind],
|
|
3650
|
+
_vm.MODAL_SIZE_MODIFIERS[_vm.size],
|
|
3651
|
+
_vm.modalClass ],attrs:{"data-qa":"dt-modal","aria-hidden":_vm.open},on:{"click":function($event){if($event.target !== $event.currentTarget){ return null; }return _vm.close($event)},"keydown":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"esc",27,$event.key,["Esc","Escape"])){ return null; }return _vm.close($event)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"tab",9,$event.key,"Tab")){ return null; }return _vm.trapFocus($event)}],"transitionend":function($event){if($event.target !== $event.currentTarget){ return null; }return _vm.setFocusAfterTransition($event)}}},[_c('div',{staticClass:"d-modal__dialog",attrs:{"role":"dialog","aria-modal":"true","aria-describedby":_vm.describedById,"aria-labelledby":_vm.labelledById}},[(_vm.$slots.header)?_c('div',{staticClass:"d-modal__header",attrs:{"id":_vm.labelledById,"data-qa":"dt-modal-title"}},[_vm._t("header")],2):_c('h2',{staticClass:"d-modal__header",attrs:{"id":_vm.labelledById,"data-qa":"dt-modal-title"}},[_vm._v(" "+_vm._s(_vm.title)+" ")]),_c('dt-button',_vm._b({staticClass:"d-modal__close",attrs:{"circle":"","size":"lg","importance":"clear","aria-label":_vm.closeButtonProps.ariaLabel,"kind":_vm.kind},on:{"click":_vm.close},scopedSlots:_vm._u([{key:"icon",fn:function(){return [_c('icon-close')]},proxy:true}])},'dt-button',_vm.closeButtonProps,false)),(_vm.$slots.default)?_c('div',{staticClass:"d-modal__content",attrs:{"data-qa":"dt-modal-copy"}},[_vm._t("default")],2):_c('p',{staticClass:"d-modal__content",attrs:{"data-qa":"dt-modal-copy"}},[_vm._v(" "+_vm._s(_vm.copy)+" ")]),(_vm.hasFooterSlot)?_c('footer',{staticClass:"d-modal__footer"},[_vm._t("footer")],2):_vm._e()],1)])}
|
|
3652
|
+
var modalvue_type_template_id_055b70f4_staticRenderFns = []
|
|
3129
3653
|
|
|
3130
3654
|
|
|
3131
|
-
// CONCATENATED MODULE: ./components/modal/modal.vue?vue&type=template&id=
|
|
3655
|
+
// CONCATENATED MODULE: ./components/modal/modal.vue?vue&type=template&id=055b70f4&
|
|
3132
3656
|
|
|
3133
3657
|
// CONCATENATED MODULE: ./components/modal/modal_constants.js
|
|
3134
3658
|
// Modal style modifiers
|
|
3135
3659
|
const MODAL_KIND_MODIFIERS = {
|
|
3136
3660
|
default: '',
|
|
3137
|
-
danger: 'danger'
|
|
3661
|
+
danger: 'd-modal--danger'
|
|
3138
3662
|
}; // Modal size modifiers
|
|
3139
3663
|
|
|
3140
3664
|
const MODAL_SIZE_MODIFIERS = {
|
|
3141
3665
|
default: '',
|
|
3142
|
-
full: 'full'
|
|
3666
|
+
full: 'd-modal--full'
|
|
3143
3667
|
};
|
|
3144
3668
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/modal/modal.vue?vue&type=script&lang=js&
|
|
3145
3669
|
//
|
|
@@ -3216,6 +3740,11 @@ const MODAL_SIZE_MODIFIERS = {
|
|
|
3216
3740
|
//
|
|
3217
3741
|
//
|
|
3218
3742
|
//
|
|
3743
|
+
//
|
|
3744
|
+
//
|
|
3745
|
+
//
|
|
3746
|
+
//
|
|
3747
|
+
//
|
|
3219
3748
|
|
|
3220
3749
|
|
|
3221
3750
|
|
|
@@ -3295,8 +3824,8 @@ const MODAL_SIZE_MODIFIERS = {
|
|
|
3295
3824
|
*/
|
|
3296
3825
|
kind: {
|
|
3297
3826
|
type: String,
|
|
3298
|
-
default: '',
|
|
3299
|
-
validator: k => Object.
|
|
3827
|
+
default: 'default',
|
|
3828
|
+
validator: k => Object.keys(MODAL_KIND_MODIFIERS).includes(k)
|
|
3300
3829
|
},
|
|
3301
3830
|
|
|
3302
3831
|
/**
|
|
@@ -3306,8 +3835,8 @@ const MODAL_SIZE_MODIFIERS = {
|
|
|
3306
3835
|
*/
|
|
3307
3836
|
size: {
|
|
3308
3837
|
type: String,
|
|
3309
|
-
default: '',
|
|
3310
|
-
validator: s => Object.
|
|
3838
|
+
default: 'default',
|
|
3839
|
+
validator: s => Object.keys(MODAL_SIZE_MODIFIERS).includes(s)
|
|
3311
3840
|
},
|
|
3312
3841
|
|
|
3313
3842
|
/**
|
|
@@ -3320,6 +3849,14 @@ const MODAL_SIZE_MODIFIERS = {
|
|
|
3320
3849
|
default: ''
|
|
3321
3850
|
}
|
|
3322
3851
|
},
|
|
3852
|
+
|
|
3853
|
+
data() {
|
|
3854
|
+
return {
|
|
3855
|
+
MODAL_KIND_MODIFIERS: MODAL_KIND_MODIFIERS,
|
|
3856
|
+
MODAL_SIZE_MODIFIERS: MODAL_SIZE_MODIFIERS
|
|
3857
|
+
};
|
|
3858
|
+
},
|
|
3859
|
+
|
|
3323
3860
|
computed: {
|
|
3324
3861
|
open() {
|
|
3325
3862
|
return `${!this.show}`;
|
|
@@ -3327,14 +3864,6 @@ const MODAL_SIZE_MODIFIERS = {
|
|
|
3327
3864
|
|
|
3328
3865
|
hasFooterSlot() {
|
|
3329
3866
|
return !!this.$slots.footer;
|
|
3330
|
-
},
|
|
3331
|
-
|
|
3332
|
-
modalClasses() {
|
|
3333
|
-
return [{
|
|
3334
|
-
'd-modal': true,
|
|
3335
|
-
[`d-modal--${this.kind}`]: this.kind,
|
|
3336
|
-
[`d-modal--${this.size}`]: this.size
|
|
3337
|
-
}, this.modalClass];
|
|
3338
3867
|
}
|
|
3339
3868
|
|
|
3340
3869
|
},
|
|
@@ -3395,8 +3924,8 @@ const MODAL_SIZE_MODIFIERS = {
|
|
|
3395
3924
|
|
|
3396
3925
|
var modal_component = normalizeComponent(
|
|
3397
3926
|
modal_modalvue_type_script_lang_js_,
|
|
3398
|
-
|
|
3399
|
-
|
|
3927
|
+
modalvue_type_template_id_055b70f4_render,
|
|
3928
|
+
modalvue_type_template_id_055b70f4_staticRenderFns,
|
|
3400
3929
|
false,
|
|
3401
3930
|
null,
|
|
3402
3931
|
null,
|
|
@@ -3408,7 +3937,7 @@ var modal_component = normalizeComponent(
|
|
|
3408
3937
|
// CONCATENATED MODULE: ./components/modal/index.js
|
|
3409
3938
|
|
|
3410
3939
|
|
|
3411
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
3940
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5b8bbebb-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/lazy_show/lazy_show.vue?vue&type=template&id=25b42290&
|
|
3412
3941
|
var lazy_showvue_type_template_id_25b42290_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{"name":_vm.transition}},[_c('div',_vm._g({directives:[{name:"show",rawName:"v-show",value:(_vm.show),expression:"show"}]},_vm.$listeners),[(_vm.initialized)?_vm._t("default"):_vm._e()],2)])}
|
|
3413
3942
|
var lazy_showvue_type_template_id_25b42290_staticRenderFns = []
|
|
3414
3943
|
|
|
@@ -3491,13 +4020,13 @@ var lazy_show_component = normalizeComponent(
|
|
|
3491
4020
|
/* harmony default export */ var lazy_show = (lazy_show_component.exports);
|
|
3492
4021
|
// CONCATENATED MODULE: ./components/lazy_show/index.js
|
|
3493
4022
|
|
|
3494
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
3495
|
-
var
|
|
3496
|
-
{ 'd-
|
|
3497
|
-
var
|
|
4023
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5b8bbebb-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/list_section/list_section.vue?vue&type=template&id=2493c7b1&
|
|
4024
|
+
var list_sectionvue_type_template_id_2493c7b1_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:['dt-list-section', 'd-fs14', 'd-lh6', 'd-py6', 'd-bc-black-200',
|
|
4025
|
+
{ 'd-bb': _vm.separator }],attrs:{"id":_vm.id,"role":"group","aria-labelledby":(_vm.id + "-list-section-header"),"tabindex":"-1"}},[(_vm.header)?_c('h3',{staticClass:"d-pl16 d-mt6",attrs:{"id":(_vm.id + "-list-section-header")}},[_vm._v(" "+_vm._s(_vm.header)+" ")]):_vm._e(),(!_vm.isCollapsible || _vm.showAll)?_c('ol',{attrs:{"id":(_vm.id + "-list-section-content")}},[_vm._t("default")],2):_c('ol',{attrs:{"id":(_vm.id + "-list-section-content")}},[_c('vnodes',{attrs:{"vnodes":_vm.displayedItems}})],1),(_vm.isCollapsible)?_c('dt-button',{staticClass:"d-ml16 d-py6",attrs:{"id":(_vm.id + "-list-section-show-more-less"),"link":""},on:{"click":_vm.showMoreLessClicked}},[_vm._v(" "+_vm._s(_vm.showMoreLessText)+" ")]):_vm._e()],1)}
|
|
4026
|
+
var list_sectionvue_type_template_id_2493c7b1_staticRenderFns = []
|
|
3498
4027
|
|
|
3499
4028
|
|
|
3500
|
-
// CONCATENATED MODULE: ./components/list_section/list_section.vue?vue&type=template&id=
|
|
4029
|
+
// CONCATENATED MODULE: ./components/list_section/list_section.vue?vue&type=template&id=2493c7b1&
|
|
3501
4030
|
|
|
3502
4031
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/list_section/list_section.vue?vue&type=script&lang=js&
|
|
3503
4032
|
//
|
|
@@ -3658,8 +4187,8 @@ var list_sectionvue_type_style_index_0_lang_less_ = __webpack_require__("fc89");
|
|
|
3658
4187
|
|
|
3659
4188
|
var list_section_component = normalizeComponent(
|
|
3660
4189
|
list_section_list_sectionvue_type_script_lang_js_,
|
|
3661
|
-
|
|
3662
|
-
|
|
4190
|
+
list_sectionvue_type_template_id_2493c7b1_render,
|
|
4191
|
+
list_sectionvue_type_template_id_2493c7b1_staticRenderFns,
|
|
3663
4192
|
false,
|
|
3664
4193
|
null,
|
|
3665
4194
|
null,
|
|
@@ -3670,13 +4199,13 @@ var list_section_component = normalizeComponent(
|
|
|
3670
4199
|
/* harmony default export */ var list_section = (list_section_component.exports);
|
|
3671
4200
|
// CONCATENATED MODULE: ./components/list_section/index.js
|
|
3672
4201
|
|
|
3673
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
3674
|
-
var
|
|
4202
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5b8bbebb-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/list_item/list_item.vue?vue&type=template&id=4ae41e30&
|
|
4203
|
+
var list_itemvue_type_template_id_4ae41e30_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{class:['dt-list-item', 'd-fs14', 'd-lh6', 'd-py6', 'd-px16', 'd-d-flex', 'd-ai-center',
|
|
3675
4204
|
{ 'dt-list-item-clickable': _vm.clickable, 'd-jc-space-between': this.$slots.iconRight }],attrs:{"id":_vm.id,"tabindex":_vm.clickable ? 0 : -1},on:{"keydown":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.clicked($event)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"space",32,$event.key,[" ","Spacebar"])){ return null; }return _vm.clicked($event)}],"click":_vm.clicked}},[_vm._t("iconLeft"),_vm._t("default"),_vm._t("iconRight")],2)}
|
|
3676
|
-
var
|
|
4205
|
+
var list_itemvue_type_template_id_4ae41e30_staticRenderFns = []
|
|
3677
4206
|
|
|
3678
4207
|
|
|
3679
|
-
// CONCATENATED MODULE: ./components/list_item/list_item.vue?vue&type=template&id=
|
|
4208
|
+
// CONCATENATED MODULE: ./components/list_item/list_item.vue?vue&type=template&id=4ae41e30&
|
|
3680
4209
|
|
|
3681
4210
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/list_item/list_item.vue?vue&type=script&lang=js&
|
|
3682
4211
|
//
|
|
@@ -3744,8 +4273,8 @@ var list_itemvue_type_style_index_0_lang_less_ = __webpack_require__("51f5");
|
|
|
3744
4273
|
|
|
3745
4274
|
var list_item_component = normalizeComponent(
|
|
3746
4275
|
list_item_list_itemvue_type_script_lang_js_,
|
|
3747
|
-
|
|
3748
|
-
|
|
4276
|
+
list_itemvue_type_template_id_4ae41e30_render,
|
|
4277
|
+
list_itemvue_type_template_id_4ae41e30_staticRenderFns,
|
|
3749
4278
|
false,
|
|
3750
4279
|
null,
|
|
3751
4280
|
null,
|
|
@@ -3756,86 +4285,14 @@ var list_item_component = normalizeComponent(
|
|
|
3756
4285
|
/* harmony default export */ var list_item = (list_item_component.exports);
|
|
3757
4286
|
// CONCATENATED MODULE: ./components/list_item/index.js
|
|
3758
4287
|
|
|
3759
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
3760
|
-
var
|
|
3761
|
-
|
|
3762
|
-
_vm.LINK_KIND_MODIFIERS[_vm.kind] ],attrs:{"data-qa":"dt-link"}},[_vm._t("default")],2)}
|
|
3763
|
-
var linkvue_type_template_id_6af78110_staticRenderFns = []
|
|
4288
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5b8bbebb-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/notice/notice.vue?vue&type=template&id=f94c040c&
|
|
4289
|
+
var noticevue_type_template_id_f94c040c_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('aside',_vm._g({class:_vm.noticeClass,attrs:{"data-qa":"notice"}},_vm.$listeners),[_c('dt-notice-icon',_vm._g({attrs:{"kind":_vm.kind}},_vm.$listeners),[_vm._t("icon")],2),_c('dt-notice-content',_vm._g({attrs:{"title-id":_vm.titleId,"content-id":_vm.contentId,"title":_vm.title,"role":_vm.role},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}},_vm.$listeners),[_vm._t("action")],2)],1)}
|
|
4290
|
+
var noticevue_type_template_id_f94c040c_staticRenderFns = []
|
|
3764
4291
|
|
|
3765
4292
|
|
|
3766
|
-
// CONCATENATED MODULE: ./components/
|
|
4293
|
+
// CONCATENATED MODULE: ./components/notice/notice.vue?vue&type=template&id=f94c040c&
|
|
3767
4294
|
|
|
3768
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/
|
|
3769
|
-
//
|
|
3770
|
-
//
|
|
3771
|
-
//
|
|
3772
|
-
//
|
|
3773
|
-
//
|
|
3774
|
-
//
|
|
3775
|
-
//
|
|
3776
|
-
//
|
|
3777
|
-
//
|
|
3778
|
-
//
|
|
3779
|
-
//
|
|
3780
|
-
//
|
|
3781
|
-
|
|
3782
|
-
/* harmony default export */ var linkvue_type_script_lang_js_ = ({
|
|
3783
|
-
name: 'DtLink',
|
|
3784
|
-
props: {
|
|
3785
|
-
/**
|
|
3786
|
-
* Applies the link variant styles
|
|
3787
|
-
*/
|
|
3788
|
-
kind: {
|
|
3789
|
-
type: String,
|
|
3790
|
-
default: '',
|
|
3791
|
-
|
|
3792
|
-
validator(kind) {
|
|
3793
|
-
return LINK_VARIANTS.includes(kind);
|
|
3794
|
-
}
|
|
3795
|
-
|
|
3796
|
-
}
|
|
3797
|
-
},
|
|
3798
|
-
|
|
3799
|
-
data() {
|
|
3800
|
-
return {
|
|
3801
|
-
LINK_KIND_MODIFIERS: LINK_KIND_MODIFIERS
|
|
3802
|
-
};
|
|
3803
|
-
}
|
|
3804
|
-
|
|
3805
|
-
});
|
|
3806
|
-
// CONCATENATED MODULE: ./components/link/link.vue?vue&type=script&lang=js&
|
|
3807
|
-
/* harmony default export */ var link_linkvue_type_script_lang_js_ = (linkvue_type_script_lang_js_);
|
|
3808
|
-
// CONCATENATED MODULE: ./components/link/link.vue
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
/* normalize component */
|
|
3815
|
-
|
|
3816
|
-
var link_component = normalizeComponent(
|
|
3817
|
-
link_linkvue_type_script_lang_js_,
|
|
3818
|
-
linkvue_type_template_id_6af78110_render,
|
|
3819
|
-
linkvue_type_template_id_6af78110_staticRenderFns,
|
|
3820
|
-
false,
|
|
3821
|
-
null,
|
|
3822
|
-
null,
|
|
3823
|
-
null
|
|
3824
|
-
|
|
3825
|
-
)
|
|
3826
|
-
|
|
3827
|
-
/* harmony default export */ var link_link = (link_component.exports);
|
|
3828
|
-
// CONCATENATED MODULE: ./components/link/index.js
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"31b17c73-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/notice/notice.vue?vue&type=template&id=40200ccc&
|
|
3832
|
-
var noticevue_type_template_id_40200ccc_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('aside',_vm._g({class:_vm.noticeClass,attrs:{"data-qa":"notice"}},_vm.$listeners),[_c('dt-notice-icon',_vm._g({attrs:{"kind":_vm.kind}},_vm.$listeners),[_vm._t("icon")],2),_c('dt-notice-content',_vm._g({attrs:{"title-id":_vm.titleId,"content-id":_vm.contentId,"title":_vm.title,"role":_vm.role},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}},_vm.$listeners),[_vm._t("action")],2)],1)}
|
|
3833
|
-
var noticevue_type_template_id_40200ccc_staticRenderFns = []
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
// CONCATENATED MODULE: ./components/notice/notice.vue?vue&type=template&id=40200ccc&
|
|
3837
|
-
|
|
3838
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/notice/notice.vue?vue&type=script&lang=js&
|
|
4295
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/notice/notice.vue?vue&type=script&lang=js&
|
|
3839
4296
|
//
|
|
3840
4297
|
//
|
|
3841
4298
|
//
|
|
@@ -3986,8 +4443,8 @@ var noticevue_type_template_id_40200ccc_staticRenderFns = []
|
|
|
3986
4443
|
|
|
3987
4444
|
var notice_component = normalizeComponent(
|
|
3988
4445
|
notice_noticevue_type_script_lang_js_,
|
|
3989
|
-
|
|
3990
|
-
|
|
4446
|
+
noticevue_type_template_id_f94c040c_render,
|
|
4447
|
+
noticevue_type_template_id_f94c040c_staticRenderFns,
|
|
3991
4448
|
false,
|
|
3992
4449
|
null,
|
|
3993
4450
|
null,
|
|
@@ -3999,28 +4456,29 @@ var notice_component = normalizeComponent(
|
|
|
3999
4456
|
// CONCATENATED MODULE: ./components/notice/index.js
|
|
4000
4457
|
|
|
4001
4458
|
|
|
4002
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
4003
|
-
var
|
|
4459
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5b8bbebb-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/popover/popover.vue?vue&type=template&id=34e0d8ea&
|
|
4460
|
+
var popovervue_type_template_id_34e0d8ea_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(_vm.elementType,{directives:[{name:"click-outside",rawName:"v-click-outside",value:(function () { return _vm.close('click-outside'); }),expression:"() => close('click-outside')"}],tag:"component",staticClass:"d-ps-relative dt-popover"},[_c('div',{ref:"anchor",attrs:{"id":!_vm.ariaLabelledby && _vm.labelledBy}},[_vm._t("anchor",null,{"attrs":{
|
|
4004
4461
|
'aria-expanded': _vm.open.toString(),
|
|
4005
4462
|
'aria-controls': _vm.id,
|
|
4006
4463
|
'aria-haspopup': _vm.role,
|
|
4007
4464
|
}})],2),_c('dt-lazy-show',_vm._g({ref:"container",class:[
|
|
4008
|
-
'd-
|
|
4009
|
-
'd-
|
|
4010
|
-
'd-
|
|
4011
|
-
'd-bgc-white
|
|
4465
|
+
'd-ba',
|
|
4466
|
+
'd-bc-black-075',
|
|
4467
|
+
'd-bar4',
|
|
4468
|
+
'd-bgc-white',
|
|
4469
|
+
'd-bs-md',
|
|
4012
4470
|
'd-mt4',
|
|
4013
4471
|
'd-ps-absolute',
|
|
4014
|
-
'd-
|
|
4472
|
+
'd-zi-popover',
|
|
4015
4473
|
'dt-popover__content',
|
|
4016
4474
|
("dt-popover__content--align-" + _vm.alignment),
|
|
4017
4475
|
("dt-popover__content--valign-" + _vm.verticalAlignment),
|
|
4018
4476
|
("dt-popover__content--pad-" + _vm.padding),
|
|
4019
|
-
_vm.contentClass ],attrs:{"id":_vm.id,"role":_vm.role,"aria-hidden":!_vm.open,"aria-labelledby":_vm.labelledBy,"aria-label":_vm.ariaLabel,"aria-modal":_vm.isDialog,"transition":_vm.transition,"show":_vm.open,"tabindex":"-1"}},_vm.dialogListeners),[_vm._t("content"),(_vm.hasCaret)?_c('div',{staticClass:"d-bgc-white d-mtn4 d-
|
|
4020
|
-
var
|
|
4477
|
+
_vm.contentClass ],attrs:{"id":_vm.id,"role":_vm.role,"aria-hidden":!_vm.open,"aria-labelledby":_vm.labelledBy,"aria-label":_vm.ariaLabel,"aria-modal":_vm.isDialog,"transition":_vm.transition,"show":_vm.open,"tabindex":"-1"}},_vm.dialogListeners),[_vm._t("content"),(_vm.hasCaret)?_c('div',{staticClass:"d-bgc-white d-mtn4 d-bt d-bl d-bc-black-075 dt-popover__caret"}):_vm._e()],2)],1)}
|
|
4478
|
+
var popovervue_type_template_id_34e0d8ea_staticRenderFns = []
|
|
4021
4479
|
|
|
4022
4480
|
|
|
4023
|
-
// CONCATENATED MODULE: ./components/popover/popover.vue?vue&type=template&id=
|
|
4481
|
+
// CONCATENATED MODULE: ./components/popover/popover.vue?vue&type=template&id=34e0d8ea&
|
|
4024
4482
|
|
|
4025
4483
|
// CONCATENATED MODULE: ./components/popover/popover_constants.js
|
|
4026
4484
|
const POPOVER_PADDING_CLASSES = ['none', 'small', 'medium', 'large'];
|
|
@@ -4090,6 +4548,7 @@ var v_click_outside_umd_default = /*#__PURE__*/__webpack_require__.n(v_click_out
|
|
|
4090
4548
|
//
|
|
4091
4549
|
//
|
|
4092
4550
|
//
|
|
4551
|
+
//
|
|
4093
4552
|
|
|
4094
4553
|
|
|
4095
4554
|
|
|
@@ -4390,8 +4849,8 @@ var popovervue_type_style_index_0_lang_less_ = __webpack_require__("e0bf");
|
|
|
4390
4849
|
|
|
4391
4850
|
var popover_component = normalizeComponent(
|
|
4392
4851
|
popover_popovervue_type_script_lang_js_,
|
|
4393
|
-
|
|
4394
|
-
|
|
4852
|
+
popovervue_type_template_id_34e0d8ea_render,
|
|
4853
|
+
popovervue_type_template_id_34e0d8ea_staticRenderFns,
|
|
4395
4854
|
false,
|
|
4396
4855
|
null,
|
|
4397
4856
|
null,
|
|
@@ -4403,12 +4862,12 @@ var popover_component = normalizeComponent(
|
|
|
4403
4862
|
// CONCATENATED MODULE: ./components/popover/index.js
|
|
4404
4863
|
|
|
4405
4864
|
|
|
4406
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
4407
|
-
var
|
|
4408
|
-
var
|
|
4865
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5b8bbebb-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/radio/radio.vue?vue&type=template&id=6ab0a459&
|
|
4866
|
+
var radiovue_type_template_id_6ab0a459_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('label',[_c('div',{class:['d-radio-group', { 'd-radio-group--disabled': _vm.internalDisabled }]},[_c('div',{staticClass:"d-radio__input"},[_c('input',_vm._g(_vm._b({class:['d-radio', _vm.inputValidationClass, _vm.inputClass],attrs:{"name":_vm.internalName,"disabled":_vm.internalDisabled,"type":"radio"},domProps:{"checked":_vm.internalChecked,"value":_vm.value}},'input',_vm.$attrs,false),_vm.inputListeners))]),_c('div',{staticClass:"d-radio__copy d-radio__label",attrs:{"data-qa":"radio-label-description-container"}},[_c('div',_vm._b({class:_vm.labelClass,attrs:{"data-qa":"radio-label"}},'div',_vm.labelChildProps,false),[_vm._t("default",[_vm._v(_vm._s(_vm.label))])],2),(_vm.$slots.description || _vm.description)?_c('div',_vm._b({class:['d-description', _vm.descriptionClass],attrs:{"data-qa":"radio-description"}},'div',_vm.descriptionChildProps,false),[_vm._t("description",[_vm._v(_vm._s(_vm.description))])],2):_vm._e(),_c('dt-validation-messages',_vm._b({class:_vm.messagesClass,attrs:{"validation-messages":_vm.formattedMessages,"show-messages":_vm.showMessages,"data-qa":"dt-radio-validation-messages"}},'dt-validation-messages',_vm.messagesChildProps,false))],1)])])}
|
|
4867
|
+
var radiovue_type_template_id_6ab0a459_staticRenderFns = []
|
|
4409
4868
|
|
|
4410
4869
|
|
|
4411
|
-
// CONCATENATED MODULE: ./components/radio/radio.vue?vue&type=template&id=
|
|
4870
|
+
// CONCATENATED MODULE: ./components/radio/radio.vue?vue&type=template&id=6ab0a459&
|
|
4412
4871
|
|
|
4413
4872
|
// CONCATENATED MODULE: ./components/radio/radio_constants.js
|
|
4414
4873
|
const RADIO_INPUT_VALIDATION_CLASSES = {
|
|
@@ -4416,14 +4875,8 @@ const RADIO_INPUT_VALIDATION_CLASSES = {
|
|
|
4416
4875
|
error: 'd-radio--error',
|
|
4417
4876
|
success: 'd-radio--success'
|
|
4418
4877
|
};
|
|
4419
|
-
const RADIO_DESCRIPTION_VALIDATION_CLASSES = {
|
|
4420
|
-
warning: 'd-radio__description--warning',
|
|
4421
|
-
error: 'd-radio__description--error',
|
|
4422
|
-
success: 'd-radio__description--success'
|
|
4423
|
-
};
|
|
4424
4878
|
/* harmony default export */ var radio_constants = ({
|
|
4425
|
-
RADIO_INPUT_VALIDATION_CLASSES
|
|
4426
|
-
RADIO_DESCRIPTION_VALIDATION_CLASSES
|
|
4879
|
+
RADIO_INPUT_VALIDATION_CLASSES
|
|
4427
4880
|
});
|
|
4428
4881
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/radio/radio.vue?vue&type=script&lang=js&
|
|
4429
4882
|
//
|
|
@@ -4498,10 +4951,6 @@ const RADIO_DESCRIPTION_VALIDATION_CLASSES = {
|
|
|
4498
4951
|
return RADIO_INPUT_VALIDATION_CLASSES[this.internalValidationState];
|
|
4499
4952
|
},
|
|
4500
4953
|
|
|
4501
|
-
descriptionValidationClass() {
|
|
4502
|
-
return RADIO_DESCRIPTION_VALIDATION_CLASSES[this.internalValidationState];
|
|
4503
|
-
},
|
|
4504
|
-
|
|
4505
4954
|
radioGroupValue() {
|
|
4506
4955
|
var _this$groupContext;
|
|
4507
4956
|
|
|
@@ -4563,8 +5012,8 @@ const RADIO_DESCRIPTION_VALIDATION_CLASSES = {
|
|
|
4563
5012
|
|
|
4564
5013
|
var radio_component = normalizeComponent(
|
|
4565
5014
|
radio_radiovue_type_script_lang_js_,
|
|
4566
|
-
|
|
4567
|
-
|
|
5015
|
+
radiovue_type_template_id_6ab0a459_render,
|
|
5016
|
+
radiovue_type_template_id_6ab0a459_staticRenderFns,
|
|
4568
5017
|
false,
|
|
4569
5018
|
null,
|
|
4570
5019
|
null,
|
|
@@ -4673,47 +5122,33 @@ var radio_group_component = normalizeComponent(
|
|
|
4673
5122
|
/* harmony default export */ var radio_group = (radio_group_component.exports);
|
|
4674
5123
|
// CONCATENATED MODULE: ./components/radio_group/index.js
|
|
4675
5124
|
|
|
4676
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
4677
|
-
var
|
|
4678
|
-
var
|
|
5125
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5b8bbebb-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/tabs/tab_group.vue?vue&type=template&id=27640e10&
|
|
5126
|
+
var tab_groupvue_type_template_id_27640e10_render = function () {
|
|
5127
|
+
var _obj;
|
|
5128
|
+
var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{"data-qa":"dt-tab-group"}},[_c('div',{class:[
|
|
5129
|
+
'd-tablist',
|
|
5130
|
+
_vm.TAB_LIST_SIZE_MODIFIERS[_vm.size],
|
|
5131
|
+
( _obj = {}, _obj[_vm.TAB_LIST_KIND_MODIFIERS.inverted] = _vm.inverted, _obj[_vm.TAB_LIST_IMPORTANCE_MODIFIERS.borderless] = _vm.borderless, _obj ) ],attrs:{"role":"tablist","aria-label":_vm.label},on:{"keyup":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"left",37,$event.key,["Left","ArrowLeft"])){ return null; }if('button' in $event && $event.button !== 0){ return null; }return _vm.tabLeft($event)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"right",39,$event.key,["Right","ArrowRight"])){ return null; }if('button' in $event && $event.button !== 2){ return null; }return _vm.tabRight($event)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.selectTab($event)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"space",32,$event.key,[" ","Spacebar"])){ return null; }return _vm.selectTab($event)}],"keydown":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"home",undefined,$event.key,undefined)){ return null; }return _vm.onHomeButton($event)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"end",undefined,$event.key,undefined)){ return null; }return _vm.onEndButton($event)}]}},[_vm._t("tabs")],2),_vm._t("default")],2)}
|
|
5132
|
+
var tab_groupvue_type_template_id_27640e10_staticRenderFns = []
|
|
4679
5133
|
|
|
4680
5134
|
|
|
4681
|
-
// CONCATENATED MODULE: ./components/
|
|
5135
|
+
// CONCATENATED MODULE: ./components/tabs/tab_group.vue?vue&type=template&id=27640e10&
|
|
4682
5136
|
|
|
4683
|
-
// CONCATENATED MODULE: ./components/
|
|
4684
|
-
const
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
success: 'd-checkbox--success'
|
|
5137
|
+
// CONCATENATED MODULE: ./components/tabs/tabs_constants.js
|
|
5138
|
+
const TAB_LIST_SIZES = ['', 'sm'];
|
|
5139
|
+
const TAB_LIST_SIZE_MODIFIERS = {
|
|
5140
|
+
sm: 'd-tablist--sm'
|
|
4688
5141
|
};
|
|
4689
|
-
const
|
|
4690
|
-
|
|
4691
|
-
warning: 'd-checkbox__description--warning',
|
|
4692
|
-
success: 'd-checkbox__description--success'
|
|
5142
|
+
const TAB_LIST_KIND_MODIFIERS = {
|
|
5143
|
+
inverted: 'd-tablist--inverted'
|
|
4693
5144
|
};
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
//
|
|
4701
|
-
//
|
|
4702
|
-
//
|
|
4703
|
-
//
|
|
4704
|
-
//
|
|
4705
|
-
//
|
|
4706
|
-
//
|
|
4707
|
-
//
|
|
4708
|
-
//
|
|
4709
|
-
//
|
|
4710
|
-
//
|
|
4711
|
-
//
|
|
4712
|
-
//
|
|
4713
|
-
//
|
|
4714
|
-
//
|
|
4715
|
-
//
|
|
4716
|
-
//
|
|
5145
|
+
const TAB_LIST_IMPORTANCE_MODIFIERS = {
|
|
5146
|
+
borderless: 'd-tablist--no-border'
|
|
5147
|
+
};
|
|
5148
|
+
const TAB_IMPORTANCE_MODIFIERS = {
|
|
5149
|
+
selected: 'd-tab--selected'
|
|
5150
|
+
};
|
|
5151
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/tabs/tab_group.vue?vue&type=script&lang=js&
|
|
4717
5152
|
//
|
|
4718
5153
|
//
|
|
4719
5154
|
//
|
|
@@ -4744,78 +5179,228 @@ const CHECKBOX_DESCRIPTION_VALIDATION_CLASSES = {
|
|
|
4744
5179
|
//
|
|
4745
5180
|
//
|
|
4746
5181
|
//
|
|
4747
|
-
// Imports
|
|
4748
5182
|
|
|
5183
|
+
/* harmony default export */ var tab_groupvue_type_script_lang_js_ = ({
|
|
5184
|
+
name: 'DtTabGroup',
|
|
4749
5185
|
|
|
4750
|
-
|
|
4751
|
-
|
|
4752
|
-
|
|
4753
|
-
|
|
4754
|
-
|
|
5186
|
+
provide() {
|
|
5187
|
+
return {
|
|
5188
|
+
groupContext: this.provideObj,
|
|
5189
|
+
changeContentPanel: this.changeContentPanel,
|
|
5190
|
+
setFocus: this.setFocus
|
|
5191
|
+
};
|
|
4755
5192
|
},
|
|
4756
|
-
|
|
4757
|
-
|
|
4758
|
-
|
|
4759
|
-
|
|
4760
|
-
|
|
5193
|
+
|
|
5194
|
+
props: {
|
|
5195
|
+
/**
|
|
5196
|
+
* Identifies the tab group
|
|
5197
|
+
*/
|
|
5198
|
+
label: {
|
|
5199
|
+
type: String,
|
|
5200
|
+
default: ''
|
|
4761
5201
|
},
|
|
4762
5202
|
|
|
4763
|
-
|
|
4764
|
-
|
|
5203
|
+
/**
|
|
5204
|
+
* The id of the selected tab panel which should be displayed
|
|
5205
|
+
*/
|
|
5206
|
+
selected: {
|
|
5207
|
+
type: String,
|
|
5208
|
+
default: ''
|
|
4765
5209
|
},
|
|
4766
5210
|
|
|
4767
|
-
|
|
4768
|
-
|
|
5211
|
+
/**
|
|
5212
|
+
* If true, disables the tab group
|
|
5213
|
+
*/
|
|
5214
|
+
disabled: {
|
|
5215
|
+
type: Boolean,
|
|
5216
|
+
default: false
|
|
5217
|
+
},
|
|
4769
5218
|
|
|
4770
|
-
|
|
5219
|
+
/**
|
|
5220
|
+
* If true, applies inverted styles to the tab group
|
|
5221
|
+
*/
|
|
5222
|
+
inverted: {
|
|
5223
|
+
type: Boolean,
|
|
5224
|
+
default: false
|
|
4771
5225
|
},
|
|
4772
5226
|
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4777
|
-
|
|
4778
|
-
|
|
4779
|
-
|
|
4780
|
-
|
|
5227
|
+
/**
|
|
5228
|
+
* If true, applies borderless styles to the tab group
|
|
5229
|
+
*/
|
|
5230
|
+
borderless: {
|
|
5231
|
+
type: Boolean,
|
|
5232
|
+
default: false
|
|
5233
|
+
},
|
|
5234
|
+
|
|
5235
|
+
/**
|
|
5236
|
+
* If provided, applies size styles to the tab group
|
|
5237
|
+
*/
|
|
5238
|
+
size: {
|
|
5239
|
+
type: String,
|
|
5240
|
+
default: '',
|
|
5241
|
+
|
|
5242
|
+
validate(size) {
|
|
5243
|
+
return TAB_LIST_SIZES.includes(size);
|
|
5244
|
+
}
|
|
4781
5245
|
|
|
4782
|
-
/*
|
|
4783
|
-
* Override input listener to as no-op. Prevents parent input listeners from being passed through onto the input
|
|
4784
|
-
* element which will result in the hander being called twice (once on the input element and once by the emitted
|
|
4785
|
-
* input event by the change listener).
|
|
4786
|
-
*/
|
|
4787
|
-
input: () => {},
|
|
4788
|
-
change: event => this.emitValue(event.target.value, event.target.checked)
|
|
4789
|
-
};
|
|
4790
5246
|
}
|
|
5247
|
+
},
|
|
4791
5248
|
|
|
5249
|
+
data() {
|
|
5250
|
+
return {
|
|
5251
|
+
provideObj: {
|
|
5252
|
+
selected: '',
|
|
5253
|
+
// the currently displayed tab id
|
|
5254
|
+
disabled: false // disable group
|
|
5255
|
+
|
|
5256
|
+
},
|
|
5257
|
+
focusId: null,
|
|
5258
|
+
tabs: [],
|
|
5259
|
+
TAB_LIST_SIZE_MODIFIERS: TAB_LIST_SIZE_MODIFIERS,
|
|
5260
|
+
TAB_LIST_KIND_MODIFIERS: TAB_LIST_KIND_MODIFIERS,
|
|
5261
|
+
TAB_LIST_IMPORTANCE_MODIFIERS: TAB_LIST_IMPORTANCE_MODIFIERS
|
|
5262
|
+
};
|
|
4792
5263
|
},
|
|
5264
|
+
|
|
4793
5265
|
watch: {
|
|
4794
|
-
|
|
5266
|
+
disabled: {
|
|
4795
5267
|
immediate: true,
|
|
4796
5268
|
|
|
4797
|
-
handler(
|
|
4798
|
-
|
|
4799
|
-
// update internal value when the checkbox group value changes
|
|
4800
|
-
this.internalChecked = newCheckboxGroupValueChecked;
|
|
4801
|
-
}
|
|
5269
|
+
handler() {
|
|
5270
|
+
this.provideObj.disabled = this.disabled;
|
|
4802
5271
|
}
|
|
4803
5272
|
|
|
4804
5273
|
}
|
|
4805
5274
|
},
|
|
5275
|
+
|
|
5276
|
+
mounted() {
|
|
5277
|
+
this.updateSelected();
|
|
5278
|
+
},
|
|
5279
|
+
|
|
5280
|
+
beforeUpdate() {
|
|
5281
|
+
this.updateSelected();
|
|
5282
|
+
},
|
|
5283
|
+
|
|
4806
5284
|
methods: {
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
5285
|
+
updateSelected() {
|
|
5286
|
+
/**
|
|
5287
|
+
* Prevent override tab selected by default
|
|
5288
|
+
*/
|
|
5289
|
+
if (!this.provideObj.selected) {
|
|
5290
|
+
this.provideObj.selected = this.selected;
|
|
5291
|
+
}
|
|
4810
5292
|
|
|
4811
|
-
this
|
|
5293
|
+
this.tabs = this.getTabChildren();
|
|
5294
|
+
},
|
|
5295
|
+
|
|
5296
|
+
setFocus(focusId) {
|
|
5297
|
+
this.focusId = focusId;
|
|
5298
|
+
},
|
|
5299
|
+
|
|
5300
|
+
getTabChildren() {
|
|
5301
|
+
return this.$children.map(({
|
|
5302
|
+
$el
|
|
5303
|
+
}) => $el).filter(({
|
|
5304
|
+
className
|
|
5305
|
+
}) => className.includes('d-tab')).map(el => {
|
|
5306
|
+
var _el$getAttribute, _el$getAttribute2;
|
|
5307
|
+
|
|
5308
|
+
return {
|
|
5309
|
+
context: el,
|
|
5310
|
+
panelId: (_el$getAttribute = el.getAttribute('aria-controls')) === null || _el$getAttribute === void 0 ? void 0 : _el$getAttribute.replace('dt-panel-', ''),
|
|
5311
|
+
id: (_el$getAttribute2 = el.getAttribute('id')) === null || _el$getAttribute2 === void 0 ? void 0 : _el$getAttribute2.replace('dt-tab-', ''),
|
|
5312
|
+
isSelected: el.getAttribute('aria-selected') === 'true'
|
|
5313
|
+
};
|
|
5314
|
+
});
|
|
5315
|
+
},
|
|
5316
|
+
|
|
5317
|
+
onChange() {
|
|
5318
|
+
this.$emit('change', { ...this.provideObj
|
|
5319
|
+
});
|
|
5320
|
+
},
|
|
5321
|
+
|
|
5322
|
+
changeContentPanel({
|
|
5323
|
+
selected,
|
|
5324
|
+
selectOverride
|
|
5325
|
+
}) {
|
|
5326
|
+
this.provideObj.selected = selected;
|
|
5327
|
+
|
|
5328
|
+
if (!selectOverride) {
|
|
5329
|
+
this.onChange();
|
|
5330
|
+
}
|
|
5331
|
+
},
|
|
5332
|
+
|
|
5333
|
+
tabLeft() {
|
|
5334
|
+
const {
|
|
5335
|
+
index,
|
|
5336
|
+
tabs
|
|
5337
|
+
} = this.getIndexAndTabs();
|
|
5338
|
+
if (index === -1) return;
|
|
5339
|
+
const indexElement = index - 1 < 0 ? tabs.length - 1 : index - 1;
|
|
5340
|
+
this.selectFocusOnTab(indexElement, tabs);
|
|
5341
|
+
},
|
|
5342
|
+
|
|
5343
|
+
tabRight() {
|
|
5344
|
+
const {
|
|
5345
|
+
index,
|
|
5346
|
+
tabs
|
|
5347
|
+
} = this.getIndexAndTabs();
|
|
5348
|
+
if (index === -1) return;
|
|
5349
|
+
const indexElement = index + 1 > tabs.length - 1 ? 0 : index + 1;
|
|
5350
|
+
this.selectFocusOnTab(indexElement, tabs);
|
|
5351
|
+
},
|
|
5352
|
+
|
|
5353
|
+
selectFocusOnTab(index, tabs) {
|
|
5354
|
+
const {
|
|
5355
|
+
context
|
|
5356
|
+
} = tabs[index];
|
|
5357
|
+
context.focus();
|
|
5358
|
+
},
|
|
5359
|
+
|
|
5360
|
+
selectTab() {
|
|
5361
|
+
const {
|
|
5362
|
+
tabs,
|
|
5363
|
+
index
|
|
5364
|
+
} = this.getIndexAndTabs();
|
|
5365
|
+
this.selectTabByIndex(index, tabs);
|
|
5366
|
+
},
|
|
5367
|
+
|
|
5368
|
+
selectTabByIndex(index, tabs) {
|
|
5369
|
+
const {
|
|
5370
|
+
context,
|
|
5371
|
+
panelId
|
|
5372
|
+
} = tabs[index];
|
|
5373
|
+
this.provideObj.selected = panelId;
|
|
5374
|
+
context.focus();
|
|
5375
|
+
},
|
|
5376
|
+
|
|
5377
|
+
getIndexAndTabs() {
|
|
5378
|
+
const index = this.tabs.findIndex(context => this.focusId ? context.id === `${this.focusId}` : context.isSelected);
|
|
5379
|
+
return {
|
|
5380
|
+
tabs: this.tabs,
|
|
5381
|
+
index
|
|
5382
|
+
};
|
|
5383
|
+
},
|
|
5384
|
+
|
|
5385
|
+
onHomeButton() {
|
|
5386
|
+
var _this$tabs$, _this$tabs$$context;
|
|
5387
|
+
|
|
5388
|
+
if (this.tabs.length === 0) return;
|
|
5389
|
+
(_this$tabs$ = this.tabs[0]) === null || _this$tabs$ === void 0 ? void 0 : (_this$tabs$$context = _this$tabs$.context) === null || _this$tabs$$context === void 0 ? void 0 : _this$tabs$$context.focus();
|
|
5390
|
+
},
|
|
5391
|
+
|
|
5392
|
+
onEndButton() {
|
|
5393
|
+
var _this$tabs, _this$tabs$context;
|
|
5394
|
+
|
|
5395
|
+
if (this.tabs.length === 0) return;
|
|
5396
|
+
(_this$tabs = this.tabs[this.tabs.length - 1]) === null || _this$tabs === void 0 ? void 0 : (_this$tabs$context = _this$tabs.context) === null || _this$tabs$context === void 0 ? void 0 : _this$tabs$context.focus();
|
|
4812
5397
|
}
|
|
4813
5398
|
|
|
4814
5399
|
}
|
|
4815
5400
|
});
|
|
4816
|
-
// CONCATENATED MODULE: ./components/
|
|
4817
|
-
/* harmony default export */ var
|
|
4818
|
-
// CONCATENATED MODULE: ./components/
|
|
5401
|
+
// CONCATENATED MODULE: ./components/tabs/tab_group.vue?vue&type=script&lang=js&
|
|
5402
|
+
/* harmony default export */ var tabs_tab_groupvue_type_script_lang_js_ = (tab_groupvue_type_script_lang_js_);
|
|
5403
|
+
// CONCATENATED MODULE: ./components/tabs/tab_group.vue
|
|
4819
5404
|
|
|
4820
5405
|
|
|
4821
5406
|
|
|
@@ -4823,10 +5408,10 @@ const CHECKBOX_DESCRIPTION_VALIDATION_CLASSES = {
|
|
|
4823
5408
|
|
|
4824
5409
|
/* normalize component */
|
|
4825
5410
|
|
|
4826
|
-
var
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
5411
|
+
var tab_group_component = normalizeComponent(
|
|
5412
|
+
tabs_tab_groupvue_type_script_lang_js_,
|
|
5413
|
+
tab_groupvue_type_template_id_27640e10_render,
|
|
5414
|
+
tab_groupvue_type_template_id_27640e10_staticRenderFns,
|
|
4830
5415
|
false,
|
|
4831
5416
|
null,
|
|
4832
5417
|
null,
|
|
@@ -4834,132 +5419,249 @@ var checkbox_component = normalizeComponent(
|
|
|
4834
5419
|
|
|
4835
5420
|
)
|
|
4836
5421
|
|
|
4837
|
-
/* harmony default export */ var
|
|
4838
|
-
// CONCATENATED MODULE: ./components/
|
|
4839
|
-
|
|
4840
|
-
|
|
5422
|
+
/* harmony default export */ var tab_group = (tab_group_component.exports);
|
|
5423
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5b8bbebb-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/tabs/tab.vue?vue&type=template&id=0bc212ec&
|
|
5424
|
+
var tabvue_type_template_id_0bc212ec_render = function () {
|
|
5425
|
+
var _obj;
|
|
5426
|
+
var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('dt-button',_vm._b({class:[
|
|
5427
|
+
'd-tab',
|
|
5428
|
+
( _obj = {}, _obj[_vm.TAB_IMPORTANCE_MODIFIERS.selected] = _vm.isSelected, _obj ),
|
|
5429
|
+
_vm.tabClass ],attrs:{"id":("dt-tab-" + _vm.id),"role":"tab","aria-selected":("" + _vm.isSelected),"aria-controls":("dt-panel-" + _vm.panelId),"aria-label":_vm.label,"data-qa":"dt-tab","tabindex":_vm.isSelected ? '0' : '-1',"disabled":_vm.groupContext.disabled || _vm.disabled},on:{"click":function($event){return _vm.selectPanel()},"focus":function($event){return _vm.setFocus(_vm.id)}}},'dt-button',_vm.$attrs,false),[_vm._t("default")],2)}
|
|
5430
|
+
var tabvue_type_template_id_0bc212ec_staticRenderFns = []
|
|
4841
5431
|
|
|
4842
5432
|
|
|
4843
|
-
|
|
4844
|
-
|
|
4845
|
-
|
|
4846
|
-
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
4853
|
-
|
|
4854
|
-
|
|
4855
|
-
|
|
4856
|
-
|
|
4857
|
-
|
|
4858
|
-
|
|
4859
|
-
|
|
5433
|
+
// CONCATENATED MODULE: ./components/tabs/tab.vue?vue&type=template&id=0bc212ec&
|
|
5434
|
+
|
|
5435
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/tabs/tab.vue?vue&type=script&lang=js&
|
|
5436
|
+
//
|
|
5437
|
+
//
|
|
5438
|
+
//
|
|
5439
|
+
//
|
|
5440
|
+
//
|
|
5441
|
+
//
|
|
5442
|
+
//
|
|
5443
|
+
//
|
|
5444
|
+
//
|
|
5445
|
+
//
|
|
5446
|
+
//
|
|
5447
|
+
//
|
|
5448
|
+
//
|
|
5449
|
+
//
|
|
5450
|
+
//
|
|
5451
|
+
//
|
|
5452
|
+
//
|
|
5453
|
+
//
|
|
5454
|
+
//
|
|
5455
|
+
//
|
|
5456
|
+
//
|
|
5457
|
+
//
|
|
5458
|
+
//
|
|
5459
|
+
//
|
|
5460
|
+
//
|
|
5461
|
+
//
|
|
4860
5462
|
|
|
4861
|
-
external_commonjs_vue_commonjs2_vue_root_Vue_default.a.util.warn('Component uses selectedValues to initialize the model, value is not supported by this component', undefined);
|
|
4862
|
-
return false;
|
|
4863
|
-
}
|
|
4864
|
-
},
|
|
4865
5463
|
|
|
5464
|
+
/* harmony default export */ var tabvue_type_script_lang_js_ = ({
|
|
5465
|
+
name: 'DtTab',
|
|
5466
|
+
components: {
|
|
5467
|
+
DtButton: button_button
|
|
5468
|
+
},
|
|
5469
|
+
inject: ['changeContentPanel', 'groupContext', 'setFocus'],
|
|
5470
|
+
inheritAttrs: false,
|
|
5471
|
+
props: {
|
|
4866
5472
|
/**
|
|
4867
|
-
*
|
|
5473
|
+
* Id of the tab
|
|
4868
5474
|
*/
|
|
4869
|
-
|
|
4870
|
-
type:
|
|
4871
|
-
|
|
4872
|
-
default() {
|
|
4873
|
-
return [];
|
|
4874
|
-
}
|
|
4875
|
-
|
|
5475
|
+
id: {
|
|
5476
|
+
type: String,
|
|
5477
|
+
required: true
|
|
4876
5478
|
},
|
|
4877
5479
|
|
|
4878
5480
|
/**
|
|
4879
|
-
*
|
|
5481
|
+
* Id of the associated content panel
|
|
4880
5482
|
*/
|
|
4881
|
-
|
|
5483
|
+
panelId: {
|
|
4882
5484
|
type: String,
|
|
4883
|
-
|
|
5485
|
+
required: true
|
|
4884
5486
|
},
|
|
4885
5487
|
|
|
4886
5488
|
/**
|
|
4887
|
-
*
|
|
5489
|
+
* Describes the tab
|
|
4888
5490
|
*/
|
|
4889
|
-
|
|
5491
|
+
label: {
|
|
4890
5492
|
type: String,
|
|
4891
|
-
default: '
|
|
5493
|
+
default: ''
|
|
4892
5494
|
},
|
|
4893
5495
|
|
|
4894
5496
|
/**
|
|
4895
|
-
*
|
|
5497
|
+
* Controls the state of the tab
|
|
4896
5498
|
*/
|
|
4897
|
-
|
|
4898
|
-
type:
|
|
4899
|
-
default:
|
|
5499
|
+
selected: {
|
|
5500
|
+
type: Boolean,
|
|
5501
|
+
default: false
|
|
5502
|
+
},
|
|
5503
|
+
|
|
5504
|
+
/**
|
|
5505
|
+
* If true, disables the tab
|
|
5506
|
+
*/
|
|
5507
|
+
disabled: {
|
|
5508
|
+
type: Boolean,
|
|
5509
|
+
default: false
|
|
5510
|
+
},
|
|
5511
|
+
|
|
5512
|
+
/**
|
|
5513
|
+
* Used to customize the tab element
|
|
5514
|
+
*/
|
|
5515
|
+
tabClass: {
|
|
5516
|
+
type: [String, Array, Object],
|
|
5517
|
+
default: ''
|
|
4900
5518
|
}
|
|
4901
5519
|
},
|
|
4902
5520
|
|
|
4903
5521
|
data() {
|
|
4904
5522
|
return {
|
|
4905
|
-
|
|
4906
|
-
// wrap values in object to make reactive
|
|
4907
|
-
provideObj: {
|
|
4908
|
-
selectedValues: this.selectedValues
|
|
4909
|
-
}
|
|
5523
|
+
TAB_IMPORTANCE_MODIFIERS: TAB_IMPORTANCE_MODIFIERS
|
|
4910
5524
|
};
|
|
4911
5525
|
},
|
|
4912
5526
|
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
this.
|
|
4916
|
-
},
|
|
4917
|
-
|
|
4918
|
-
/*
|
|
4919
|
-
* watching value to support 2 way binding for slotted checkboxes.
|
|
4920
|
-
* need this to pass value to slotted checkboxes if modified outside
|
|
4921
|
-
* checkbox group.
|
|
4922
|
-
*/
|
|
4923
|
-
internalValue(newInternalValue) {
|
|
4924
|
-
this.provideObj.selectedValues = newInternalValue;
|
|
5527
|
+
computed: {
|
|
5528
|
+
isSelected() {
|
|
5529
|
+
return this.groupContext.selected === this.panelId;
|
|
4925
5530
|
}
|
|
4926
5531
|
|
|
4927
5532
|
},
|
|
5533
|
+
|
|
5534
|
+
mounted() {
|
|
5535
|
+
this.setSelectedPanelByDefault();
|
|
5536
|
+
},
|
|
5537
|
+
|
|
4928
5538
|
methods: {
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
*/
|
|
4933
|
-
setGroupValue(value, checked) {
|
|
4934
|
-
if (!checked) {
|
|
4935
|
-
this.internalValue = this.internalValue.filter(checkedValue => checkedValue !== value);
|
|
4936
|
-
} else if (!this.internalValue.includes(value)) {
|
|
4937
|
-
this.internalValue.push(value);
|
|
5539
|
+
setSelectedPanelByDefault() {
|
|
5540
|
+
if (this.selected) {
|
|
5541
|
+
this.selectPanel(true);
|
|
4938
5542
|
}
|
|
5543
|
+
},
|
|
4939
5544
|
|
|
4940
|
-
|
|
5545
|
+
selectPanel(selectOverride = false) {
|
|
5546
|
+
this.changeContentPanel({
|
|
5547
|
+
selected: this.panelId,
|
|
5548
|
+
selectOverride
|
|
5549
|
+
});
|
|
5550
|
+
}
|
|
5551
|
+
|
|
5552
|
+
}
|
|
5553
|
+
});
|
|
5554
|
+
// CONCATENATED MODULE: ./components/tabs/tab.vue?vue&type=script&lang=js&
|
|
5555
|
+
/* harmony default export */ var tabs_tabvue_type_script_lang_js_ = (tabvue_type_script_lang_js_);
|
|
5556
|
+
// CONCATENATED MODULE: ./components/tabs/tab.vue
|
|
5557
|
+
|
|
5558
|
+
|
|
5559
|
+
|
|
5560
|
+
|
|
5561
|
+
|
|
5562
|
+
/* normalize component */
|
|
5563
|
+
|
|
5564
|
+
var tab_component = normalizeComponent(
|
|
5565
|
+
tabs_tabvue_type_script_lang_js_,
|
|
5566
|
+
tabvue_type_template_id_0bc212ec_render,
|
|
5567
|
+
tabvue_type_template_id_0bc212ec_staticRenderFns,
|
|
5568
|
+
false,
|
|
5569
|
+
null,
|
|
5570
|
+
null,
|
|
5571
|
+
null
|
|
5572
|
+
|
|
5573
|
+
)
|
|
5574
|
+
|
|
5575
|
+
/* harmony default export */ var tab = (tab_component.exports);
|
|
5576
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5b8bbebb-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/tabs/tab_panel.vue?vue&type=template&id=4d6d0107&
|
|
5577
|
+
var tab_panelvue_type_template_id_4d6d0107_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:[
|
|
5578
|
+
{
|
|
5579
|
+
'd-d-none': _vm.hidePanel,
|
|
4941
5580
|
},
|
|
5581
|
+
_vm.tabPanelClass ],attrs:{"id":("dt-panel-" + _vm.id),"role":"tabpanel","tabindex":"0","aria-labelledby":("dt-tab-" + _vm.tabId),"aria-hidden":("" + _vm.hidePanel),"data-qa":"dt-tab-panel"}},[_vm._t("default")],2)}
|
|
5582
|
+
var tab_panelvue_type_template_id_4d6d0107_staticRenderFns = []
|
|
4942
5583
|
|
|
4943
|
-
|
|
4944
|
-
|
|
5584
|
+
|
|
5585
|
+
// CONCATENATED MODULE: ./components/tabs/tab_panel.vue?vue&type=template&id=4d6d0107&
|
|
5586
|
+
|
|
5587
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/tabs/tab_panel.vue?vue&type=script&lang=js&
|
|
5588
|
+
//
|
|
5589
|
+
//
|
|
5590
|
+
//
|
|
5591
|
+
//
|
|
5592
|
+
//
|
|
5593
|
+
//
|
|
5594
|
+
//
|
|
5595
|
+
//
|
|
5596
|
+
//
|
|
5597
|
+
//
|
|
5598
|
+
//
|
|
5599
|
+
//
|
|
5600
|
+
//
|
|
5601
|
+
//
|
|
5602
|
+
//
|
|
5603
|
+
//
|
|
5604
|
+
//
|
|
5605
|
+
//
|
|
5606
|
+
//
|
|
5607
|
+
//
|
|
5608
|
+
/* harmony default export */ var tab_panelvue_type_script_lang_js_ = ({
|
|
5609
|
+
name: 'DtTabPanel',
|
|
5610
|
+
inject: ['groupContext'],
|
|
5611
|
+
props: {
|
|
5612
|
+
/**
|
|
5613
|
+
* Id of the panel
|
|
5614
|
+
*/
|
|
5615
|
+
id: {
|
|
5616
|
+
type: String,
|
|
5617
|
+
required: true
|
|
5618
|
+
},
|
|
5619
|
+
|
|
5620
|
+
/**
|
|
5621
|
+
* Id of the associated tab
|
|
5622
|
+
*/
|
|
5623
|
+
tabId: {
|
|
5624
|
+
type: String,
|
|
5625
|
+
required: true
|
|
5626
|
+
},
|
|
5627
|
+
|
|
5628
|
+
/**
|
|
5629
|
+
* If true, hides the tab content
|
|
5630
|
+
*/
|
|
5631
|
+
hidden: {
|
|
5632
|
+
type: Boolean,
|
|
5633
|
+
default: false
|
|
5634
|
+
},
|
|
5635
|
+
|
|
5636
|
+
/**
|
|
5637
|
+
* Used to customize the tab element
|
|
5638
|
+
*/
|
|
5639
|
+
tabPanelClass: {
|
|
5640
|
+
type: [String, Array, Object],
|
|
5641
|
+
default: ''
|
|
5642
|
+
}
|
|
5643
|
+
},
|
|
5644
|
+
computed: {
|
|
5645
|
+
hidePanel() {
|
|
5646
|
+
return this.groupContext.selected !== this.id || this.hidden;
|
|
4945
5647
|
}
|
|
4946
5648
|
|
|
4947
5649
|
}
|
|
4948
5650
|
});
|
|
4949
|
-
// CONCATENATED MODULE: ./components/
|
|
4950
|
-
/* harmony default export */ var
|
|
4951
|
-
// CONCATENATED MODULE: ./components/
|
|
4952
|
-
|
|
5651
|
+
// CONCATENATED MODULE: ./components/tabs/tab_panel.vue?vue&type=script&lang=js&
|
|
5652
|
+
/* harmony default export */ var tabs_tab_panelvue_type_script_lang_js_ = (tab_panelvue_type_script_lang_js_);
|
|
5653
|
+
// CONCATENATED MODULE: ./components/tabs/tab_panel.vue
|
|
5654
|
+
|
|
4953
5655
|
|
|
4954
5656
|
|
|
4955
5657
|
|
|
4956
5658
|
|
|
4957
5659
|
/* normalize component */
|
|
4958
5660
|
|
|
4959
|
-
var
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
5661
|
+
var tab_panel_component = normalizeComponent(
|
|
5662
|
+
tabs_tab_panelvue_type_script_lang_js_,
|
|
5663
|
+
tab_panelvue_type_template_id_4d6d0107_render,
|
|
5664
|
+
tab_panelvue_type_template_id_4d6d0107_staticRenderFns,
|
|
4963
5665
|
false,
|
|
4964
5666
|
null,
|
|
4965
5667
|
null,
|
|
@@ -4967,115 +5669,923 @@ var checkbox_group_component = normalizeComponent(
|
|
|
4967
5669
|
|
|
4968
5670
|
)
|
|
4969
5671
|
|
|
4970
|
-
/* harmony default export */ var
|
|
4971
|
-
// CONCATENATED MODULE: ./components/
|
|
5672
|
+
/* harmony default export */ var tab_panel = (tab_panel_component.exports);
|
|
5673
|
+
// CONCATENATED MODULE: ./components/tabs/index.js
|
|
4972
5674
|
|
|
4973
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"31b17c73-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/select_menu/select_menu.vue?vue&type=template&id=7efee0c6&
|
|
4974
|
-
var select_menuvue_type_template_id_7efee0c6_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('label',[_c('div',_vm._b({class:[
|
|
4975
|
-
'd-label',
|
|
4976
|
-
_vm.LABEL_SIZE_MODIFIERS[_vm.size],
|
|
4977
|
-
_vm.labelClass ],attrs:{"aria-details":_vm.labelAriaDetails,"data-qa":"dt-select-label"}},'div',_vm.labelChildProps,false),[_vm._t("label",[_vm._v(_vm._s(_vm.label))])],2),(_vm.$slots.description || _vm.description)?_c('div',_vm._b({class:[
|
|
4978
|
-
'd-description',
|
|
4979
|
-
_vm.DESCRIPTION_SIZE_MODIFIERS[_vm.size],
|
|
4980
|
-
_vm.descriptionClass ],attrs:{"id":_vm.descriptionKey,"data-qa":"dt-select-description"}},'div',_vm.descriptionChildProps,false),[_vm._t("description",[_vm._v(_vm._s(_vm.description))])],2):_vm._e(),_c('div',{class:[
|
|
4981
|
-
'd-select',
|
|
4982
|
-
_vm.SELECT_SIZE_MODIFIERS[_vm.size],
|
|
4983
|
-
_vm.selectClass ],attrs:{"data-qa":"dt-select-wrapper"}},[_c('select',_vm._g(_vm._b({class:[
|
|
4984
|
-
'd-select__input',
|
|
4985
|
-
_vm.SELECT_STATE_MODIFIERS[_vm.state] ],attrs:{"data-qa":"dt-select"}},'select',_vm.$attrs,false),_vm.selectListeners),[_vm._t("default",_vm._l((_vm.options),function(option){return _c('option',_vm._b({key:_vm.getOptionKey(option.value),class:_vm.optionClass,domProps:{"value":option.value}},'option',_vm.optionChildProps,false),[_vm._v(" "+_vm._s(option.label)+" ")])}))],2)])]),_c('dt-validation-messages',_vm._b({class:_vm.messagesClass,attrs:{"validation-messages":_vm.formattedMessages,"show-messages":_vm.showMessages,"data-qa":"dt-select-messages"}},'dt-validation-messages',_vm.messagesChildProps,false))],1)}
|
|
4986
|
-
var select_menuvue_type_template_id_7efee0c6_staticRenderFns = []
|
|
4987
5675
|
|
|
4988
5676
|
|
|
4989
|
-
// CONCATENATED MODULE: ./components/select_menu/select_menu.vue?vue&type=template&id=7efee0c6&
|
|
4990
5677
|
|
|
4991
|
-
// CONCATENATED MODULE: ./components/
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
const
|
|
5000
|
-
error: 'd-
|
|
5001
|
-
warning: 'd-
|
|
5002
|
-
success: 'd-
|
|
5003
|
-
};
|
|
5004
|
-
/* harmony default export */ var
|
|
5005
|
-
|
|
5006
|
-
|
|
5678
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5b8bbebb-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/checkbox/checkbox.vue?vue&type=template&id=60ec612e&
|
|
5679
|
+
var checkboxvue_type_template_id_60ec612e_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('label',[_c('div',{class:['d-checkbox-group', { 'd-checkbox-group--disabled': _vm.internalDisabled }]},[_c('div',{staticClass:"d-checkbox__input"},[_c('input',_vm._g(_vm._b({class:['d-checkbox', _vm.inputValidationClass, _vm.inputClass],attrs:{"type":"checkbox","name":_vm.internalName,"disabled":_vm.internalDisabled},domProps:{"checked":_vm.internalChecked,"value":_vm.value}},'input',_vm.$attrs,false),_vm.inputListeners))]),_c('div',{staticClass:"d-checkbox__copy d-checkbox__label",attrs:{"data-qa":"checkbox-label-description-container"}},[_c('div',_vm._b({class:_vm.labelClass,attrs:{"data-qa":"checkbox-label"}},'div',_vm.labelChildProps,false),[_vm._t("default",[_vm._v(_vm._s(_vm.label))])],2),(_vm.$slots.description || _vm.description)?_c('div',_vm._b({class:['d-description', _vm.descriptionClass],attrs:{"data-qa":"checkbox-description"}},'div',_vm.descriptionChildProps,false),[_vm._t("description",[_vm._v(_vm._s(_vm.description))])],2):_vm._e(),_c('dt-validation-messages',_vm._b({class:_vm.messagesClass,attrs:{"validation-messages":_vm.formattedMessages,"show-messages":_vm.showMessages,"data-qa":"dt-checkbox-validation-messages"}},'dt-validation-messages',_vm.messagesChildProps,false))],1)])])}
|
|
5680
|
+
var checkboxvue_type_template_id_60ec612e_staticRenderFns = []
|
|
5681
|
+
|
|
5682
|
+
|
|
5683
|
+
// CONCATENATED MODULE: ./components/checkbox/checkbox.vue?vue&type=template&id=60ec612e&
|
|
5684
|
+
|
|
5685
|
+
// CONCATENATED MODULE: ./components/checkbox/checkbox_constants.js
|
|
5686
|
+
const CHECKBOX_INPUT_VALIDATION_CLASSES = {
|
|
5687
|
+
error: 'd-checkbox--error',
|
|
5688
|
+
warning: 'd-checkbox--warning',
|
|
5689
|
+
success: 'd-checkbox--success'
|
|
5690
|
+
};
|
|
5691
|
+
/* harmony default export */ var checkbox_constants = ({
|
|
5692
|
+
CHECKBOX_INPUT_VALIDATION_CLASSES
|
|
5693
|
+
});
|
|
5694
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/checkbox/checkbox.vue?vue&type=script&lang=js&
|
|
5695
|
+
//
|
|
5696
|
+
//
|
|
5697
|
+
//
|
|
5698
|
+
//
|
|
5699
|
+
//
|
|
5700
|
+
//
|
|
5701
|
+
//
|
|
5702
|
+
//
|
|
5703
|
+
//
|
|
5704
|
+
//
|
|
5705
|
+
//
|
|
5706
|
+
//
|
|
5707
|
+
//
|
|
5708
|
+
//
|
|
5709
|
+
//
|
|
5710
|
+
//
|
|
5711
|
+
//
|
|
5712
|
+
//
|
|
5713
|
+
//
|
|
5714
|
+
//
|
|
5715
|
+
//
|
|
5716
|
+
//
|
|
5717
|
+
//
|
|
5718
|
+
//
|
|
5719
|
+
//
|
|
5720
|
+
//
|
|
5721
|
+
//
|
|
5722
|
+
//
|
|
5723
|
+
//
|
|
5724
|
+
//
|
|
5725
|
+
//
|
|
5726
|
+
//
|
|
5727
|
+
//
|
|
5728
|
+
//
|
|
5729
|
+
//
|
|
5730
|
+
//
|
|
5731
|
+
//
|
|
5732
|
+
//
|
|
5733
|
+
//
|
|
5734
|
+
//
|
|
5735
|
+
//
|
|
5736
|
+
//
|
|
5737
|
+
//
|
|
5738
|
+
//
|
|
5739
|
+
//
|
|
5740
|
+
//
|
|
5741
|
+
//
|
|
5742
|
+
//
|
|
5743
|
+
// Imports
|
|
5744
|
+
|
|
5745
|
+
|
|
5746
|
+
|
|
5747
|
+
/* harmony default export */ var checkboxvue_type_script_lang_js_ = ({
|
|
5748
|
+
name: 'DtCheckbox',
|
|
5749
|
+
components: {
|
|
5750
|
+
DtValidationMessages: validation_messages
|
|
5751
|
+
},
|
|
5752
|
+
mixins: [InputMixin, CheckableMixin, GroupableMixin, MessagesMixin],
|
|
5753
|
+
inheritAttrs: false,
|
|
5754
|
+
computed: {
|
|
5755
|
+
inputValidationClass() {
|
|
5756
|
+
return CHECKBOX_INPUT_VALIDATION_CLASSES[this.internalValidationState];
|
|
5757
|
+
},
|
|
5758
|
+
|
|
5759
|
+
checkboxGroupValueChecked() {
|
|
5760
|
+
var _this$groupContext$se, _this$groupContext, _this$groupContext$se2;
|
|
5761
|
+
|
|
5762
|
+
return (_this$groupContext$se = (_this$groupContext = this.groupContext) === null || _this$groupContext === void 0 ? void 0 : (_this$groupContext$se2 = _this$groupContext.selectedValues) === null || _this$groupContext$se2 === void 0 ? void 0 : _this$groupContext$se2.includes(this.value)) !== null && _this$groupContext$se !== void 0 ? _this$groupContext$se : false;
|
|
5763
|
+
},
|
|
5764
|
+
|
|
5765
|
+
inputListeners() {
|
|
5766
|
+
return {
|
|
5767
|
+
/* TODO
|
|
5768
|
+
Check if any usages of this component leverage $listeners and either remove if unused or scope the removal
|
|
5769
|
+
and migration prior to upgrading to Vue 3.x
|
|
5770
|
+
*/
|
|
5771
|
+
// eslint-disable-next-line vue/no-deprecated-dollar-listeners-api
|
|
5772
|
+
...this.$listeners,
|
|
5773
|
+
|
|
5774
|
+
/*
|
|
5775
|
+
* Override input listener to as no-op. Prevents parent input listeners from being passed through onto the input
|
|
5776
|
+
* element which will result in the hander being called twice (once on the input element and once by the emitted
|
|
5777
|
+
* input event by the change listener).
|
|
5778
|
+
*/
|
|
5779
|
+
input: () => {},
|
|
5780
|
+
change: event => this.emitValue(event.target.value, event.target.checked)
|
|
5781
|
+
};
|
|
5782
|
+
}
|
|
5783
|
+
|
|
5784
|
+
},
|
|
5785
|
+
watch: {
|
|
5786
|
+
checkboxGroupValueChecked: {
|
|
5787
|
+
immediate: true,
|
|
5788
|
+
|
|
5789
|
+
handler(newCheckboxGroupValueChecked) {
|
|
5790
|
+
if (this.hasGroup) {
|
|
5791
|
+
// update internal value when the checkbox group value changes
|
|
5792
|
+
this.internalChecked = newCheckboxGroupValueChecked;
|
|
5793
|
+
}
|
|
5794
|
+
}
|
|
5795
|
+
|
|
5796
|
+
}
|
|
5797
|
+
},
|
|
5798
|
+
methods: {
|
|
5799
|
+
emitValue(value, checked) {
|
|
5800
|
+
// update provided value if injected
|
|
5801
|
+
this.setGroupValue(value, checked); // emit the state of the checkbox
|
|
5802
|
+
|
|
5803
|
+
this.$emit('input', checked);
|
|
5804
|
+
}
|
|
5805
|
+
|
|
5806
|
+
}
|
|
5807
|
+
});
|
|
5808
|
+
// CONCATENATED MODULE: ./components/checkbox/checkbox.vue?vue&type=script&lang=js&
|
|
5809
|
+
/* harmony default export */ var checkbox_checkboxvue_type_script_lang_js_ = (checkboxvue_type_script_lang_js_);
|
|
5810
|
+
// CONCATENATED MODULE: ./components/checkbox/checkbox.vue
|
|
5811
|
+
|
|
5812
|
+
|
|
5813
|
+
|
|
5814
|
+
|
|
5815
|
+
|
|
5816
|
+
/* normalize component */
|
|
5817
|
+
|
|
5818
|
+
var checkbox_component = normalizeComponent(
|
|
5819
|
+
checkbox_checkboxvue_type_script_lang_js_,
|
|
5820
|
+
checkboxvue_type_template_id_60ec612e_render,
|
|
5821
|
+
checkboxvue_type_template_id_60ec612e_staticRenderFns,
|
|
5822
|
+
false,
|
|
5823
|
+
null,
|
|
5824
|
+
null,
|
|
5825
|
+
null
|
|
5826
|
+
|
|
5827
|
+
)
|
|
5828
|
+
|
|
5829
|
+
/* harmony default export */ var checkbox_checkbox = (checkbox_component.exports);
|
|
5830
|
+
// CONCATENATED MODULE: ./components/checkbox/index.js
|
|
5831
|
+
|
|
5832
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/checkbox_group/checkbox_group.vue?vue&type=script&lang=js&
|
|
5833
|
+
|
|
5834
|
+
|
|
5835
|
+
/* harmony default export */ var checkbox_groupvue_type_script_lang_js_ = ({
|
|
5836
|
+
name: 'DtCheckboxGroup',
|
|
5837
|
+
extends: input_group_input_group,
|
|
5838
|
+
model: {
|
|
5839
|
+
prop: 'selectedValues'
|
|
5840
|
+
},
|
|
5841
|
+
props: {
|
|
5842
|
+
/**
|
|
5843
|
+
* Not supported by this component, please use selectedValues
|
|
5844
|
+
*/
|
|
5845
|
+
value: {
|
|
5846
|
+
type: [],
|
|
5847
|
+
default: null,
|
|
5848
|
+
validator: value => {
|
|
5849
|
+
if (!value) {
|
|
5850
|
+
return true;
|
|
5851
|
+
}
|
|
5852
|
+
|
|
5853
|
+
external_commonjs_vue_commonjs2_vue_root_Vue_default.a.util.warn('Component uses selectedValues to initialize the model, value is not supported by this component', undefined);
|
|
5854
|
+
return false;
|
|
5855
|
+
}
|
|
5856
|
+
},
|
|
5857
|
+
|
|
5858
|
+
/**
|
|
5859
|
+
* A provided list of selected values(s) for the checkbox group
|
|
5860
|
+
*/
|
|
5861
|
+
selectedValues: {
|
|
5862
|
+
type: Array,
|
|
5863
|
+
|
|
5864
|
+
default() {
|
|
5865
|
+
return [];
|
|
5866
|
+
}
|
|
5867
|
+
|
|
5868
|
+
},
|
|
5869
|
+
|
|
5870
|
+
/**
|
|
5871
|
+
* A data qa tag for the radio group
|
|
5872
|
+
*/
|
|
5873
|
+
dataQaGroup: {
|
|
5874
|
+
type: String,
|
|
5875
|
+
default: 'checkbox-group'
|
|
5876
|
+
},
|
|
5877
|
+
|
|
5878
|
+
/**
|
|
5879
|
+
* A data qa tag for the radio group legend
|
|
5880
|
+
*/
|
|
5881
|
+
dataQaGroupLegend: {
|
|
5882
|
+
type: String,
|
|
5883
|
+
default: 'checkbox-group-legend'
|
|
5884
|
+
},
|
|
5885
|
+
|
|
5886
|
+
/**
|
|
5887
|
+
* A data qa tag for the radio group messages
|
|
5888
|
+
*/
|
|
5889
|
+
dataQaGroupMessages: {
|
|
5890
|
+
type: String,
|
|
5891
|
+
default: 'checkbox-group-messages'
|
|
5892
|
+
}
|
|
5893
|
+
},
|
|
5894
|
+
|
|
5895
|
+
data() {
|
|
5896
|
+
return {
|
|
5897
|
+
internalValue: this.selectedValues,
|
|
5898
|
+
// wrap values in object to make reactive
|
|
5899
|
+
provideObj: {
|
|
5900
|
+
selectedValues: this.selectedValues
|
|
5901
|
+
}
|
|
5902
|
+
};
|
|
5903
|
+
},
|
|
5904
|
+
|
|
5905
|
+
watch: {
|
|
5906
|
+
selectedValues(newSelectedValues) {
|
|
5907
|
+
this.internalValue = newSelectedValues;
|
|
5908
|
+
},
|
|
5909
|
+
|
|
5910
|
+
/*
|
|
5911
|
+
* watching value to support 2 way binding for slotted checkboxes.
|
|
5912
|
+
* need this to pass value to slotted checkboxes if modified outside
|
|
5913
|
+
* checkbox group.
|
|
5914
|
+
*/
|
|
5915
|
+
internalValue(newInternalValue) {
|
|
5916
|
+
this.provideObj.selectedValues = newInternalValue;
|
|
5917
|
+
}
|
|
5918
|
+
|
|
5919
|
+
},
|
|
5920
|
+
methods: {
|
|
5921
|
+
/*
|
|
5922
|
+
* provided value to support 2 way binding for slotted checkboxes.
|
|
5923
|
+
* slotted checkbox will change this value and need to emit new value up.
|
|
5924
|
+
*/
|
|
5925
|
+
setGroupValue(value, checked) {
|
|
5926
|
+
if (!checked) {
|
|
5927
|
+
this.internalValue = this.internalValue.filter(checkedValue => checkedValue !== value);
|
|
5928
|
+
} else if (!this.internalValue.includes(value)) {
|
|
5929
|
+
this.internalValue.push(value);
|
|
5930
|
+
}
|
|
5931
|
+
|
|
5932
|
+
this.$emit('input', this.internalValue);
|
|
5933
|
+
},
|
|
5934
|
+
|
|
5935
|
+
getMessageKey(type, index) {
|
|
5936
|
+
return `checkbox-group-message-${type}-${index}-${this.id}`;
|
|
5937
|
+
}
|
|
5938
|
+
|
|
5939
|
+
}
|
|
5940
|
+
});
|
|
5941
|
+
// CONCATENATED MODULE: ./components/checkbox_group/checkbox_group.vue?vue&type=script&lang=js&
|
|
5942
|
+
/* harmony default export */ var checkbox_group_checkbox_groupvue_type_script_lang_js_ = (checkbox_groupvue_type_script_lang_js_);
|
|
5943
|
+
// CONCATENATED MODULE: ./components/checkbox_group/checkbox_group.vue
|
|
5944
|
+
var checkbox_group_render, checkbox_group_staticRenderFns
|
|
5945
|
+
|
|
5946
|
+
|
|
5947
|
+
|
|
5948
|
+
|
|
5949
|
+
/* normalize component */
|
|
5950
|
+
|
|
5951
|
+
var checkbox_group_component = normalizeComponent(
|
|
5952
|
+
checkbox_group_checkbox_groupvue_type_script_lang_js_,
|
|
5953
|
+
checkbox_group_render,
|
|
5954
|
+
checkbox_group_staticRenderFns,
|
|
5955
|
+
false,
|
|
5956
|
+
null,
|
|
5957
|
+
null,
|
|
5958
|
+
null
|
|
5959
|
+
|
|
5960
|
+
)
|
|
5961
|
+
|
|
5962
|
+
/* harmony default export */ var checkbox_group = (checkbox_group_component.exports);
|
|
5963
|
+
// CONCATENATED MODULE: ./components/checkbox_group/index.js
|
|
5964
|
+
|
|
5965
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5b8bbebb-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/select_menu/select_menu.vue?vue&type=template&id=7efee0c6&
|
|
5966
|
+
var select_menuvue_type_template_id_7efee0c6_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('label',[_c('div',_vm._b({class:[
|
|
5967
|
+
'd-label',
|
|
5968
|
+
_vm.LABEL_SIZE_MODIFIERS[_vm.size],
|
|
5969
|
+
_vm.labelClass ],attrs:{"aria-details":_vm.labelAriaDetails,"data-qa":"dt-select-label"}},'div',_vm.labelChildProps,false),[_vm._t("label",[_vm._v(_vm._s(_vm.label))])],2),(_vm.$slots.description || _vm.description)?_c('div',_vm._b({class:[
|
|
5970
|
+
'd-description',
|
|
5971
|
+
_vm.DESCRIPTION_SIZE_MODIFIERS[_vm.size],
|
|
5972
|
+
_vm.descriptionClass ],attrs:{"id":_vm.descriptionKey,"data-qa":"dt-select-description"}},'div',_vm.descriptionChildProps,false),[_vm._t("description",[_vm._v(_vm._s(_vm.description))])],2):_vm._e(),_c('div',{class:[
|
|
5973
|
+
'd-select',
|
|
5974
|
+
_vm.SELECT_SIZE_MODIFIERS[_vm.size],
|
|
5975
|
+
_vm.selectClass ],attrs:{"data-qa":"dt-select-wrapper"}},[_c('select',_vm._g(_vm._b({class:[
|
|
5976
|
+
'd-select__input',
|
|
5977
|
+
_vm.SELECT_STATE_MODIFIERS[_vm.state] ],attrs:{"data-qa":"dt-select"}},'select',_vm.$attrs,false),_vm.selectListeners),[_vm._t("default",_vm._l((_vm.options),function(option){return _c('option',_vm._b({key:_vm.getOptionKey(option.value),class:_vm.optionClass,domProps:{"value":option.value}},'option',_vm.optionChildProps,false),[_vm._v(" "+_vm._s(option.label)+" ")])}))],2)])]),_c('dt-validation-messages',_vm._b({class:_vm.messagesClass,attrs:{"validation-messages":_vm.formattedMessages,"show-messages":_vm.showMessages,"data-qa":"dt-select-messages"}},'dt-validation-messages',_vm.messagesChildProps,false))],1)}
|
|
5978
|
+
var select_menuvue_type_template_id_7efee0c6_staticRenderFns = []
|
|
5979
|
+
|
|
5980
|
+
|
|
5981
|
+
// CONCATENATED MODULE: ./components/select_menu/select_menu.vue?vue&type=template&id=7efee0c6&
|
|
5982
|
+
|
|
5983
|
+
// CONCATENATED MODULE: ./components/select_menu/select_menu_constants.js
|
|
5984
|
+
const SELECT_SIZE_MODIFIERS = {
|
|
5985
|
+
xs: 'd-select--xs',
|
|
5986
|
+
sm: 'd-select--sm',
|
|
5987
|
+
md: '',
|
|
5988
|
+
lg: 'd-select--lg',
|
|
5989
|
+
xl: 'd-select--xl'
|
|
5990
|
+
};
|
|
5991
|
+
const SELECT_STATE_MODIFIERS = {
|
|
5992
|
+
error: 'd-select__input--error',
|
|
5993
|
+
warning: 'd-select__input--warning',
|
|
5994
|
+
success: 'd-select__input--success'
|
|
5995
|
+
};
|
|
5996
|
+
/* harmony default export */ var select_menu_constants = ({
|
|
5997
|
+
SELECT_SIZE_MODIFIERS,
|
|
5998
|
+
SELECT_STATE_MODIFIERS
|
|
5999
|
+
});
|
|
6000
|
+
// CONCATENATED MODULE: ./components/select_menu/select_menu_validators.js
|
|
6001
|
+
const hasValidOptionIndex = option => !option.index || typeof option.index === 'number';
|
|
6002
|
+
|
|
6003
|
+
const hasValidOptionValue = option => {
|
|
6004
|
+
if (!option.value) {
|
|
6005
|
+
return false;
|
|
6006
|
+
}
|
|
6007
|
+
|
|
6008
|
+
return typeof option.value === 'string' || typeof option.value === 'number';
|
|
6009
|
+
};
|
|
6010
|
+
|
|
6011
|
+
const hasValidOptionLabel = option => {
|
|
6012
|
+
if (!option.label) {
|
|
6013
|
+
return false;
|
|
6014
|
+
}
|
|
6015
|
+
|
|
6016
|
+
return typeof option.label === 'string';
|
|
6017
|
+
};
|
|
6018
|
+
|
|
6019
|
+
const optionsValidator = options => {
|
|
6020
|
+
if (!options) {
|
|
6021
|
+
return true;
|
|
6022
|
+
}
|
|
6023
|
+
|
|
6024
|
+
return options.every(option => {
|
|
6025
|
+
if (!hasValidOptionIndex(option)) {
|
|
6026
|
+
return false;
|
|
6027
|
+
}
|
|
6028
|
+
|
|
6029
|
+
if (!hasValidOptionValue(option)) {
|
|
6030
|
+
return false;
|
|
6031
|
+
}
|
|
6032
|
+
|
|
6033
|
+
if (!hasValidOptionLabel(option)) {
|
|
6034
|
+
return false;
|
|
6035
|
+
}
|
|
6036
|
+
|
|
6037
|
+
return true;
|
|
6038
|
+
});
|
|
6039
|
+
};
|
|
6040
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/select_menu/select_menu.vue?vue&type=script&lang=js&
|
|
6041
|
+
//
|
|
6042
|
+
//
|
|
6043
|
+
//
|
|
6044
|
+
//
|
|
6045
|
+
//
|
|
6046
|
+
//
|
|
6047
|
+
//
|
|
6048
|
+
//
|
|
6049
|
+
//
|
|
6050
|
+
//
|
|
6051
|
+
//
|
|
6052
|
+
//
|
|
6053
|
+
//
|
|
6054
|
+
//
|
|
6055
|
+
//
|
|
6056
|
+
//
|
|
6057
|
+
//
|
|
6058
|
+
//
|
|
6059
|
+
//
|
|
6060
|
+
//
|
|
6061
|
+
//
|
|
6062
|
+
//
|
|
6063
|
+
//
|
|
6064
|
+
//
|
|
6065
|
+
//
|
|
6066
|
+
//
|
|
6067
|
+
//
|
|
6068
|
+
//
|
|
6069
|
+
//
|
|
6070
|
+
//
|
|
6071
|
+
//
|
|
6072
|
+
//
|
|
6073
|
+
//
|
|
6074
|
+
//
|
|
6075
|
+
//
|
|
6076
|
+
//
|
|
6077
|
+
//
|
|
6078
|
+
//
|
|
6079
|
+
//
|
|
6080
|
+
//
|
|
6081
|
+
//
|
|
6082
|
+
//
|
|
6083
|
+
//
|
|
6084
|
+
//
|
|
6085
|
+
//
|
|
6086
|
+
//
|
|
6087
|
+
//
|
|
6088
|
+
//
|
|
6089
|
+
//
|
|
6090
|
+
//
|
|
6091
|
+
//
|
|
6092
|
+
//
|
|
6093
|
+
//
|
|
6094
|
+
//
|
|
6095
|
+
//
|
|
6096
|
+
//
|
|
6097
|
+
//
|
|
6098
|
+
//
|
|
6099
|
+
//
|
|
6100
|
+
//
|
|
6101
|
+
//
|
|
6102
|
+
//
|
|
6103
|
+
//
|
|
6104
|
+
//
|
|
6105
|
+
//
|
|
6106
|
+
//
|
|
6107
|
+
//
|
|
6108
|
+
//
|
|
6109
|
+
//
|
|
6110
|
+
//
|
|
6111
|
+
//
|
|
6112
|
+
//
|
|
6113
|
+
|
|
6114
|
+
|
|
6115
|
+
|
|
6116
|
+
|
|
6117
|
+
|
|
6118
|
+
|
|
6119
|
+
|
|
6120
|
+
/* harmony default export */ var select_menuvue_type_script_lang_js_ = ({
|
|
6121
|
+
name: 'DtSelectMenu',
|
|
6122
|
+
components: {
|
|
6123
|
+
DtValidationMessages: validation_messages
|
|
6124
|
+
},
|
|
6125
|
+
mixins: [MessagesMixin],
|
|
6126
|
+
inheritAttrs: false,
|
|
6127
|
+
props: {
|
|
6128
|
+
/**
|
|
6129
|
+
* Label for the select
|
|
6130
|
+
*/
|
|
6131
|
+
label: {
|
|
6132
|
+
type: String,
|
|
6133
|
+
default: ''
|
|
6134
|
+
},
|
|
6135
|
+
|
|
6136
|
+
/**
|
|
6137
|
+
* Description for the select
|
|
6138
|
+
*/
|
|
6139
|
+
description: {
|
|
6140
|
+
type: String,
|
|
6141
|
+
default: ''
|
|
6142
|
+
},
|
|
6143
|
+
|
|
6144
|
+
/**
|
|
6145
|
+
* Select Menu Options, overridden by default slot. Each option has the following structure:
|
|
6146
|
+
* `{ index: number (optional), value: number || string (required), label: string (required) }`
|
|
6147
|
+
* @param {Object[]} options - Optional - A list that can be used to create a list of select menu options
|
|
6148
|
+
* @param {number} options[].index - Optional - The index of the option
|
|
6149
|
+
* @param {number|string} options[].value - Required - The option value
|
|
6150
|
+
* @param {string} options[].label - Required - The option Label
|
|
6151
|
+
*/
|
|
6152
|
+
options: {
|
|
6153
|
+
type: Array,
|
|
6154
|
+
default: () => [],
|
|
6155
|
+
validator: options => optionsValidator(options)
|
|
6156
|
+
},
|
|
6157
|
+
|
|
6158
|
+
/**
|
|
6159
|
+
* Controls the size of the select
|
|
6160
|
+
* @values xs, s, md, lg, xl
|
|
6161
|
+
* @see https://dialpad.design/components/select
|
|
6162
|
+
*/
|
|
6163
|
+
size: {
|
|
6164
|
+
type: String,
|
|
6165
|
+
default: 'md',
|
|
6166
|
+
validator: s => Object.keys(SELECT_SIZE_MODIFIERS).includes(s)
|
|
6167
|
+
},
|
|
6168
|
+
|
|
6169
|
+
/**
|
|
6170
|
+
* Used to customize the label container
|
|
6171
|
+
*/
|
|
6172
|
+
labelClass: {
|
|
6173
|
+
type: [String, Array, Object],
|
|
6174
|
+
default: ''
|
|
6175
|
+
},
|
|
6176
|
+
|
|
6177
|
+
/**
|
|
6178
|
+
* Used to customize the description container
|
|
6179
|
+
*/
|
|
6180
|
+
descriptionClass: {
|
|
6181
|
+
type: [String, Array, Object],
|
|
6182
|
+
default: ''
|
|
6183
|
+
},
|
|
6184
|
+
|
|
6185
|
+
/**
|
|
6186
|
+
* Used to customize the select
|
|
6187
|
+
*/
|
|
6188
|
+
selectClass: {
|
|
6189
|
+
type: [String, Array, Object],
|
|
6190
|
+
default: ''
|
|
6191
|
+
},
|
|
6192
|
+
|
|
6193
|
+
/**
|
|
6194
|
+
* Used to customize each option, should options be provided via prop
|
|
6195
|
+
*/
|
|
6196
|
+
optionClass: {
|
|
6197
|
+
type: [String, Array, Object],
|
|
6198
|
+
default: ''
|
|
6199
|
+
},
|
|
6200
|
+
|
|
6201
|
+
/**
|
|
6202
|
+
* A set of props that are passed into the label container
|
|
6203
|
+
*/
|
|
6204
|
+
labelChildProps: {
|
|
6205
|
+
type: Object,
|
|
6206
|
+
default: () => ({})
|
|
6207
|
+
},
|
|
6208
|
+
|
|
6209
|
+
/**
|
|
6210
|
+
* A set of props that are passed into the description container
|
|
6211
|
+
*/
|
|
6212
|
+
descriptionChildProps: {
|
|
6213
|
+
type: Object,
|
|
6214
|
+
default: () => ({})
|
|
6215
|
+
},
|
|
6216
|
+
|
|
6217
|
+
/**
|
|
6218
|
+
* A set of props that are passed into each option, should options be provided via prop
|
|
6219
|
+
*/
|
|
6220
|
+
optionChildProps: {
|
|
6221
|
+
type: Object,
|
|
6222
|
+
default: () => ({})
|
|
6223
|
+
}
|
|
6224
|
+
},
|
|
6225
|
+
|
|
6226
|
+
data() {
|
|
6227
|
+
return {
|
|
6228
|
+
LABEL_SIZE_MODIFIERS: LABEL_SIZE_MODIFIERS,
|
|
6229
|
+
DESCRIPTION_SIZE_MODIFIERS: DESCRIPTION_SIZE_MODIFIERS,
|
|
6230
|
+
SELECT_SIZE_MODIFIERS: SELECT_SIZE_MODIFIERS,
|
|
6231
|
+
SELECT_STATE_MODIFIERS: SELECT_STATE_MODIFIERS
|
|
6232
|
+
};
|
|
6233
|
+
},
|
|
6234
|
+
|
|
6235
|
+
computed: {
|
|
6236
|
+
selectListeners() {
|
|
6237
|
+
return {
|
|
6238
|
+
/* TODO
|
|
6239
|
+
Check if any usages of this component leverage $listeners and either remove if unused or scope the removal
|
|
6240
|
+
and migration prior to upgrading to Vue 3.x
|
|
6241
|
+
*/
|
|
6242
|
+
// eslint-disable-next-line vue/no-deprecated-dollar-listeners-api
|
|
6243
|
+
...this.$listeners,
|
|
6244
|
+
|
|
6245
|
+
/*
|
|
6246
|
+
* Override input listener to as no-op. Prevents parent input listeners from being passed through onto the input
|
|
6247
|
+
* element which will result in the hander being called twice (once on the select element and once by the
|
|
6248
|
+
* emitted input event by the change listener).
|
|
6249
|
+
*/
|
|
6250
|
+
input: () => {},
|
|
6251
|
+
change: event => this.emitValue(event.target.value)
|
|
6252
|
+
};
|
|
6253
|
+
},
|
|
6254
|
+
|
|
6255
|
+
state() {
|
|
6256
|
+
return getValidationState(this.formattedMessages);
|
|
6257
|
+
},
|
|
6258
|
+
|
|
6259
|
+
selectKey() {
|
|
6260
|
+
return getUniqueString();
|
|
6261
|
+
},
|
|
6262
|
+
|
|
6263
|
+
descriptionKey() {
|
|
6264
|
+
return `select-${this.selectKey}-description`;
|
|
6265
|
+
},
|
|
6266
|
+
|
|
6267
|
+
labelAriaDetails() {
|
|
6268
|
+
if (this.$slots.description || this.description) {
|
|
6269
|
+
return this.descriptionKey;
|
|
6270
|
+
}
|
|
6271
|
+
|
|
6272
|
+
return this.$attrs['aria-details'];
|
|
6273
|
+
}
|
|
6274
|
+
|
|
6275
|
+
},
|
|
6276
|
+
methods: {
|
|
6277
|
+
emitValue(value) {
|
|
6278
|
+
this.$emit('input', value);
|
|
6279
|
+
this.$emit('change', value);
|
|
6280
|
+
},
|
|
6281
|
+
|
|
6282
|
+
getOptionKey(value) {
|
|
6283
|
+
return `select-${this.selectKey}-option-${value}`;
|
|
6284
|
+
},
|
|
6285
|
+
|
|
6286
|
+
validateOptionsPresence() {
|
|
6287
|
+
var _this$options;
|
|
6288
|
+
|
|
6289
|
+
if (((_this$options = this.options) === null || _this$options === void 0 ? void 0 : _this$options.length) < 1 && !this.$slots.default) {
|
|
6290
|
+
external_commonjs_vue_commonjs2_vue_root_Vue_default.a.util.warn('Options are expected to be provided via prop or slot', this);
|
|
6291
|
+
}
|
|
6292
|
+
}
|
|
6293
|
+
|
|
6294
|
+
},
|
|
6295
|
+
|
|
6296
|
+
mounted() {
|
|
6297
|
+
this.validateOptionsPresence();
|
|
6298
|
+
},
|
|
6299
|
+
|
|
6300
|
+
beforeUpdate() {
|
|
6301
|
+
this.validateOptionsPresence();
|
|
6302
|
+
}
|
|
6303
|
+
|
|
6304
|
+
});
|
|
6305
|
+
// CONCATENATED MODULE: ./components/select_menu/select_menu.vue?vue&type=script&lang=js&
|
|
6306
|
+
/* harmony default export */ var select_menu_select_menuvue_type_script_lang_js_ = (select_menuvue_type_script_lang_js_);
|
|
6307
|
+
// CONCATENATED MODULE: ./components/select_menu/select_menu.vue
|
|
6308
|
+
|
|
6309
|
+
|
|
6310
|
+
|
|
6311
|
+
|
|
6312
|
+
|
|
6313
|
+
/* normalize component */
|
|
6314
|
+
|
|
6315
|
+
var select_menu_component = normalizeComponent(
|
|
6316
|
+
select_menu_select_menuvue_type_script_lang_js_,
|
|
6317
|
+
select_menuvue_type_template_id_7efee0c6_render,
|
|
6318
|
+
select_menuvue_type_template_id_7efee0c6_staticRenderFns,
|
|
6319
|
+
false,
|
|
6320
|
+
null,
|
|
6321
|
+
null,
|
|
6322
|
+
null
|
|
6323
|
+
|
|
6324
|
+
)
|
|
6325
|
+
|
|
6326
|
+
/* harmony default export */ var select_menu = (select_menu_component.exports);
|
|
6327
|
+
// CONCATENATED MODULE: ./components/select_menu/index.js
|
|
6328
|
+
|
|
6329
|
+
|
|
6330
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5b8bbebb-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/toast/toast.vue?vue&type=template&id=5f5458cb&
|
|
6331
|
+
var toastvue_type_template_id_5f5458cb_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('aside',{staticClass:"d-toast-wrapper"},[(!_vm.hidden)?_c('div',{class:[
|
|
6332
|
+
'd-toast',
|
|
6333
|
+
("d-toast--" + _vm.kind),
|
|
6334
|
+
{ 'd-toast--important': _vm.important } ],attrs:{"data-qa":"dt-toast","aria-hidden":_vm.hidden.toString()}},[_c('div',{staticClass:"d-toast__dialog"},[_c('dt-notice-icon',_vm._g({attrs:{"kind":_vm.kind}},_vm.$listeners),[_vm._t("icon")],2),_c('dt-notice-content',_vm._g({attrs:{"title-id":_vm.titleId,"content-id":_vm.contentId,"title":_vm.title,"role":_vm.role},scopedSlots:_vm._u([{key:"titleOverride",fn:function(){return [_vm._t("titleOverride")]},proxy:true}],null,true)},_vm.$listeners),[_vm._t("default",[_vm._v(" "+_vm._s(_vm.message)+" ")])],2),_c('dt-notice-action',_vm._g({attrs:{"hide-close":_vm.hideClose,"close-button-props":_vm.closeButtonProps}},_vm.$listeners),[_vm._t("action")],2)],1)]):_vm._e()])}
|
|
6335
|
+
var toastvue_type_template_id_5f5458cb_staticRenderFns = []
|
|
6336
|
+
|
|
6337
|
+
|
|
6338
|
+
// CONCATENATED MODULE: ./components/toast/toast.vue?vue&type=template&id=5f5458cb&
|
|
6339
|
+
|
|
6340
|
+
// CONCATENATED MODULE: ./components/toast/toast_constants.js
|
|
6341
|
+
const TOAST_ROLES = ['status', 'alert'];
|
|
6342
|
+
/* harmony default export */ var toast_constants = ({
|
|
6343
|
+
TOAST_ROLES
|
|
6344
|
+
});
|
|
6345
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/toast/toast.vue?vue&type=script&lang=js&
|
|
6346
|
+
//
|
|
6347
|
+
//
|
|
6348
|
+
//
|
|
6349
|
+
//
|
|
6350
|
+
//
|
|
6351
|
+
//
|
|
6352
|
+
//
|
|
6353
|
+
//
|
|
6354
|
+
//
|
|
6355
|
+
//
|
|
6356
|
+
//
|
|
6357
|
+
//
|
|
6358
|
+
//
|
|
6359
|
+
//
|
|
6360
|
+
//
|
|
6361
|
+
//
|
|
6362
|
+
//
|
|
6363
|
+
//
|
|
6364
|
+
//
|
|
6365
|
+
//
|
|
6366
|
+
//
|
|
6367
|
+
//
|
|
6368
|
+
//
|
|
6369
|
+
//
|
|
6370
|
+
//
|
|
6371
|
+
//
|
|
6372
|
+
//
|
|
6373
|
+
//
|
|
6374
|
+
//
|
|
6375
|
+
//
|
|
6376
|
+
//
|
|
6377
|
+
//
|
|
6378
|
+
//
|
|
6379
|
+
//
|
|
6380
|
+
//
|
|
6381
|
+
//
|
|
6382
|
+
//
|
|
6383
|
+
//
|
|
6384
|
+
//
|
|
6385
|
+
//
|
|
6386
|
+
//
|
|
6387
|
+
//
|
|
6388
|
+
//
|
|
6389
|
+
//
|
|
6390
|
+
//
|
|
6391
|
+
//
|
|
6392
|
+
//
|
|
6393
|
+
//
|
|
6394
|
+
//
|
|
6395
|
+
//
|
|
6396
|
+
|
|
6397
|
+
|
|
6398
|
+
|
|
6399
|
+
|
|
6400
|
+
|
|
6401
|
+
|
|
6402
|
+
/* harmony default export */ var toastvue_type_script_lang_js_ = ({
|
|
6403
|
+
name: 'DtToast',
|
|
6404
|
+
components: {
|
|
6405
|
+
DtNoticeIcon: notice_icon,
|
|
6406
|
+
DtNoticeContent: notice_content,
|
|
6407
|
+
DtNoticeAction: notice_action
|
|
6408
|
+
},
|
|
6409
|
+
props: {
|
|
6410
|
+
/**
|
|
6411
|
+
* Sets an ID on the title element of the component. Useful for aria-describedby
|
|
6412
|
+
* or aria-labelledby or any other reason you may need an id to refer to the title.
|
|
6413
|
+
*/
|
|
6414
|
+
titleId: {
|
|
6415
|
+
type: String,
|
|
6416
|
+
|
|
6417
|
+
default() {
|
|
6418
|
+
return utils.getUniqueString();
|
|
6419
|
+
}
|
|
6420
|
+
|
|
6421
|
+
},
|
|
6422
|
+
|
|
6423
|
+
/**
|
|
6424
|
+
* Sets an ID on the content element of the component. Useful for aria-describedby
|
|
6425
|
+
* or aria-labelledby or any other reason you may need an id to refer to the content.
|
|
6426
|
+
*/
|
|
6427
|
+
contentId: {
|
|
6428
|
+
type: String,
|
|
6429
|
+
|
|
6430
|
+
default() {
|
|
6431
|
+
return utils.getUniqueString();
|
|
6432
|
+
}
|
|
6433
|
+
|
|
6434
|
+
},
|
|
6435
|
+
|
|
6436
|
+
/**
|
|
6437
|
+
* Title header of the toast. This can be left blank to remove the title from the toast entirely.
|
|
6438
|
+
*/
|
|
6439
|
+
title: {
|
|
6440
|
+
type: String,
|
|
6441
|
+
default: ''
|
|
6442
|
+
},
|
|
6443
|
+
|
|
6444
|
+
/**
|
|
6445
|
+
* Message of the toast. Overridden by default slot.
|
|
6446
|
+
*/
|
|
6447
|
+
message: {
|
|
6448
|
+
type: String,
|
|
6449
|
+
default: ''
|
|
6450
|
+
},
|
|
6451
|
+
|
|
6452
|
+
/**
|
|
6453
|
+
* Provides a role for the toast. 'status' is used by default to communicate a message. 'alert' is used to
|
|
6454
|
+
* communicate an important message like an error that does not contain any interactive elements.
|
|
6455
|
+
*/
|
|
6456
|
+
role: {
|
|
6457
|
+
type: String,
|
|
6458
|
+
default: 'status',
|
|
6459
|
+
validator: role => {
|
|
6460
|
+
return TOAST_ROLES.includes(role);
|
|
6461
|
+
}
|
|
6462
|
+
},
|
|
6463
|
+
|
|
6464
|
+
/**
|
|
6465
|
+
* Severity level of the toast, sets the icon and background
|
|
6466
|
+
*/
|
|
6467
|
+
kind: {
|
|
6468
|
+
type: String,
|
|
6469
|
+
default: 'base',
|
|
6470
|
+
validator: kind => {
|
|
6471
|
+
return NOTICE_KINDS.includes(kind);
|
|
6472
|
+
}
|
|
6473
|
+
},
|
|
6474
|
+
|
|
6475
|
+
/**
|
|
6476
|
+
* Used in scenarios where the message needs to visually dominate the screen.
|
|
6477
|
+
*/
|
|
6478
|
+
important: {
|
|
6479
|
+
type: Boolean,
|
|
6480
|
+
default: false
|
|
6481
|
+
},
|
|
6482
|
+
|
|
6483
|
+
/**
|
|
6484
|
+
* Props for the toast close button.
|
|
6485
|
+
*/
|
|
6486
|
+
closeButtonProps: {
|
|
6487
|
+
type: Object,
|
|
6488
|
+
default: () => ({})
|
|
6489
|
+
},
|
|
6490
|
+
|
|
6491
|
+
/**
|
|
6492
|
+
* Hides the close button from the toast
|
|
6493
|
+
*/
|
|
6494
|
+
hideClose: {
|
|
6495
|
+
type: Boolean,
|
|
6496
|
+
default: false
|
|
6497
|
+
},
|
|
6498
|
+
|
|
6499
|
+
/**
|
|
6500
|
+
* The duration in ms the toast will display before disappearing.
|
|
6501
|
+
* Defaults to 6000 ms and the prop validation is that provided duration is equal to or greater than 6000.
|
|
6502
|
+
*/
|
|
6503
|
+
duration: {
|
|
6504
|
+
type: Number,
|
|
6505
|
+
default: 6000,
|
|
6506
|
+
validator: duration => {
|
|
6507
|
+
return duration >= 6000;
|
|
6508
|
+
}
|
|
6509
|
+
}
|
|
6510
|
+
},
|
|
6511
|
+
|
|
6512
|
+
data() {
|
|
6513
|
+
return {
|
|
6514
|
+
hidden: true
|
|
6515
|
+
};
|
|
6516
|
+
},
|
|
6517
|
+
|
|
6518
|
+
/* TODO Vue 3 Migration
|
|
6519
|
+
* destroyed() should be updated to unmounted() when migrating to Vue 3.
|
|
6520
|
+
*/
|
|
6521
|
+
// eslint-disable-next-line vue/no-deprecated-destroyed-lifecycle
|
|
6522
|
+
destroyed() {
|
|
6523
|
+
clearTimeout(this.displayTimer);
|
|
6524
|
+
},
|
|
6525
|
+
|
|
6526
|
+
methods: {
|
|
6527
|
+
show() {
|
|
6528
|
+
this.hidden = false;
|
|
6529
|
+
this.displayTimer = setTimeout(() => {
|
|
6530
|
+
this.hidden = true;
|
|
6531
|
+
}, this.duration);
|
|
6532
|
+
},
|
|
6533
|
+
|
|
6534
|
+
close() {
|
|
6535
|
+
this.hidden = true;
|
|
6536
|
+
clearTimeout(this.displayTimer);
|
|
6537
|
+
}
|
|
6538
|
+
|
|
6539
|
+
}
|
|
5007
6540
|
});
|
|
5008
|
-
// CONCATENATED MODULE: ./components/
|
|
5009
|
-
|
|
6541
|
+
// CONCATENATED MODULE: ./components/toast/toast.vue?vue&type=script&lang=js&
|
|
6542
|
+
/* harmony default export */ var toast_toastvue_type_script_lang_js_ = (toastvue_type_script_lang_js_);
|
|
6543
|
+
// CONCATENATED MODULE: ./components/toast/toast.vue
|
|
5010
6544
|
|
|
5011
|
-
const hasValidOptionValue = option => {
|
|
5012
|
-
if (!option.value) {
|
|
5013
|
-
return false;
|
|
5014
|
-
}
|
|
5015
6545
|
|
|
5016
|
-
return typeof option.value === 'string' || typeof option.value === 'number';
|
|
5017
|
-
};
|
|
5018
6546
|
|
|
5019
|
-
const hasValidOptionLabel = option => {
|
|
5020
|
-
if (!option.label) {
|
|
5021
|
-
return false;
|
|
5022
|
-
}
|
|
5023
6547
|
|
|
5024
|
-
return typeof option.label === 'string';
|
|
5025
|
-
};
|
|
5026
6548
|
|
|
5027
|
-
|
|
5028
|
-
if (!options) {
|
|
5029
|
-
return true;
|
|
5030
|
-
}
|
|
6549
|
+
/* normalize component */
|
|
5031
6550
|
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
-
|
|
5035
|
-
|
|
6551
|
+
var toast_component = normalizeComponent(
|
|
6552
|
+
toast_toastvue_type_script_lang_js_,
|
|
6553
|
+
toastvue_type_template_id_5f5458cb_render,
|
|
6554
|
+
toastvue_type_template_id_5f5458cb_staticRenderFns,
|
|
6555
|
+
false,
|
|
6556
|
+
null,
|
|
6557
|
+
null,
|
|
6558
|
+
null
|
|
6559
|
+
|
|
6560
|
+
)
|
|
5036
6561
|
|
|
5037
|
-
|
|
5038
|
-
|
|
5039
|
-
}
|
|
6562
|
+
/* harmony default export */ var toast = (toast_component.exports);
|
|
6563
|
+
// CONCATENATED MODULE: ./components/toast/index.js
|
|
5040
6564
|
|
|
5041
|
-
if (!hasValidOptionLabel(option)) {
|
|
5042
|
-
return false;
|
|
5043
|
-
}
|
|
5044
6565
|
|
|
5045
|
-
|
|
5046
|
-
|
|
6566
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5b8bbebb-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/tooltip/tooltip.vue?vue&type=template&id=32b3102c&
|
|
6567
|
+
var tooltipvue_type_template_id_32b3102c_render = function () {
|
|
6568
|
+
var _obj;
|
|
6569
|
+
var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"d-tooltip-container",attrs:{"data-qa":"dt-tooltip-container"},on:{"!focus":function($event){return _vm.onFocus($event)},"!blur":function($event){return _vm.onBlur($event)},"keyup":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"esc",27,$event.key,["Esc","Escape"])){ return null; }return _vm.onEsc($event)},"mouseover":_vm.onHover,"mouseleave":_vm.onBlur}},[_c('div',_vm._b({class:[
|
|
6570
|
+
'd-ps-absolute',
|
|
6571
|
+
'd-tooltip',
|
|
6572
|
+
("d-tooltip__arrow--" + _vm.arrowDirection),
|
|
6573
|
+
_vm.TOOLTIP_KIND_MODIFIERS[_vm.shouldShowTooltip ? 'show' : 'hide'],
|
|
6574
|
+
( _obj = {}, _obj[ _vm.TOOLTIP_KIND_MODIFIERS.hover ] = _vm.shouldHasHoverModifier, _obj[ _vm.TOOLTIP_KIND_MODIFIERS.inverted ] = _vm.inverted, _obj ) ],attrs:{"id":_vm.id,"data-qa":"dt-tooltip","role":"tooltip","aria-hidden":_vm.ariaHidden}},'div',_vm.$attrs,false),[_vm._t("default",[_vm._v(" "+_vm._s(_vm.message)+" ")])],2),_c('div',{ref:"anchor",attrs:{"data-qa":"dt-tooltip-anchor"}},[_vm._t("anchor")],2)])}
|
|
6575
|
+
var tooltipvue_type_template_id_32b3102c_staticRenderFns = []
|
|
6576
|
+
|
|
6577
|
+
|
|
6578
|
+
// CONCATENATED MODULE: ./components/tooltip/tooltip.vue?vue&type=template&id=32b3102c&
|
|
6579
|
+
|
|
6580
|
+
// CONCATENATED MODULE: ./components/tooltip/tooltip_constants.js
|
|
6581
|
+
const TOOLTIP_DIRECTION_MODIFIERS = ['top-left', 'top-center', 'top-right', 'right-top', 'right-center', 'right-bottom', 'bottom-left', 'bottom-center', 'bottom-right', 'left-top', 'left-center', 'left-bottom'];
|
|
6582
|
+
const TOOLTIP_KIND_MODIFIERS = {
|
|
6583
|
+
hover: `d-tooltip--hover`,
|
|
6584
|
+
show: `d-tooltip--show`,
|
|
6585
|
+
inverted: `d-tooltip--inverted`,
|
|
6586
|
+
hide: `d-tooltip--hide`
|
|
5047
6587
|
};
|
|
5048
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/
|
|
5049
|
-
//
|
|
5050
|
-
//
|
|
5051
|
-
//
|
|
5052
|
-
//
|
|
5053
|
-
//
|
|
5054
|
-
//
|
|
5055
|
-
//
|
|
5056
|
-
//
|
|
5057
|
-
//
|
|
5058
|
-
//
|
|
5059
|
-
//
|
|
5060
|
-
//
|
|
5061
|
-
//
|
|
5062
|
-
//
|
|
5063
|
-
//
|
|
5064
|
-
//
|
|
5065
|
-
//
|
|
5066
|
-
//
|
|
5067
|
-
//
|
|
5068
|
-
//
|
|
5069
|
-
//
|
|
5070
|
-
//
|
|
5071
|
-
//
|
|
5072
|
-
//
|
|
5073
|
-
//
|
|
5074
|
-
//
|
|
5075
|
-
//
|
|
5076
|
-
//
|
|
5077
|
-
//
|
|
5078
|
-
//
|
|
6588
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/tooltip/tooltip.vue?vue&type=script&lang=js&
|
|
5079
6589
|
//
|
|
5080
6590
|
//
|
|
5081
6591
|
//
|
|
@@ -5120,199 +6630,173 @@ const optionsValidator = options => {
|
|
|
5120
6630
|
//
|
|
5121
6631
|
|
|
5122
6632
|
|
|
5123
|
-
|
|
5124
|
-
|
|
5125
|
-
|
|
5126
|
-
|
|
5127
|
-
|
|
5128
|
-
/* harmony default export */ var select_menuvue_type_script_lang_js_ = ({
|
|
5129
|
-
name: 'DtSelectMenu',
|
|
5130
|
-
components: {
|
|
5131
|
-
DtValidationMessages: validation_messages
|
|
5132
|
-
},
|
|
5133
|
-
mixins: [MessagesMixin],
|
|
6633
|
+
/* harmony default export */ var tooltipvue_type_script_lang_js_ = ({
|
|
6634
|
+
name: 'DtTooltip',
|
|
5134
6635
|
inheritAttrs: false,
|
|
5135
6636
|
props: {
|
|
5136
6637
|
/**
|
|
5137
|
-
*
|
|
6638
|
+
* The id of the tooltip
|
|
5138
6639
|
*/
|
|
5139
|
-
|
|
6640
|
+
id: {
|
|
5140
6641
|
type: String,
|
|
5141
|
-
default: ''
|
|
5142
|
-
},
|
|
5143
6642
|
|
|
5144
|
-
|
|
5145
|
-
|
|
5146
|
-
|
|
5147
|
-
description: {
|
|
5148
|
-
type: String,
|
|
5149
|
-
default: ''
|
|
5150
|
-
},
|
|
6643
|
+
default() {
|
|
6644
|
+
return getUniqueString();
|
|
6645
|
+
}
|
|
5151
6646
|
|
|
5152
|
-
/**
|
|
5153
|
-
* Select Menu Options, overridden by default slot. Each option has the following structure:
|
|
5154
|
-
* `{ index: number (optional), value: number || string (required), label: string (required) }`
|
|
5155
|
-
* @param {Object[]} options - Optional - A list that can be used to create a list of select menu options
|
|
5156
|
-
* @param {number} options[].index - Optional - The index of the option
|
|
5157
|
-
* @param {number|string} options[].value - Required - The option value
|
|
5158
|
-
* @param {string} options[].label - Required - The option Label
|
|
5159
|
-
*/
|
|
5160
|
-
options: {
|
|
5161
|
-
type: Array,
|
|
5162
|
-
default: () => [],
|
|
5163
|
-
validator: options => optionsValidator(options)
|
|
5164
6647
|
},
|
|
5165
6648
|
|
|
5166
6649
|
/**
|
|
5167
|
-
*
|
|
5168
|
-
* @values xs, s, md, lg, xl
|
|
5169
|
-
* @see https://dialpad.design/components/select
|
|
6650
|
+
* A provided message for the tooltip content
|
|
5170
6651
|
*/
|
|
5171
|
-
|
|
6652
|
+
message: {
|
|
5172
6653
|
type: String,
|
|
5173
|
-
default: 'md',
|
|
5174
|
-
validator: s => Object.keys(SELECT_SIZE_MODIFIERS).includes(s)
|
|
5175
|
-
},
|
|
5176
|
-
|
|
5177
|
-
/**
|
|
5178
|
-
* Used to customize the label container
|
|
5179
|
-
*/
|
|
5180
|
-
labelClass: {
|
|
5181
|
-
type: [String, Array, Object],
|
|
5182
6654
|
default: ''
|
|
5183
6655
|
},
|
|
5184
6656
|
|
|
5185
6657
|
/**
|
|
5186
|
-
*
|
|
6658
|
+
* Describes the preferred placement of the tooltip
|
|
5187
6659
|
*/
|
|
5188
|
-
|
|
5189
|
-
type:
|
|
5190
|
-
default: ''
|
|
5191
|
-
|
|
6660
|
+
arrowDirection: {
|
|
6661
|
+
type: String,
|
|
6662
|
+
default: 'bottom-center',
|
|
6663
|
+
|
|
6664
|
+
validator(direction) {
|
|
6665
|
+
return TOOLTIP_DIRECTION_MODIFIERS.includes(direction);
|
|
6666
|
+
}
|
|
5192
6667
|
|
|
5193
|
-
/**
|
|
5194
|
-
* Used to customize the select
|
|
5195
|
-
*/
|
|
5196
|
-
selectClass: {
|
|
5197
|
-
type: [String, Array, Object],
|
|
5198
|
-
default: ''
|
|
5199
6668
|
},
|
|
5200
6669
|
|
|
5201
6670
|
/**
|
|
5202
|
-
*
|
|
6671
|
+
* Whether the tooltip should be shown. Anchor can sync on this value
|
|
6672
|
+
* by tooltip wrapper to control the tooltip's visibility.
|
|
5203
6673
|
*/
|
|
5204
|
-
|
|
5205
|
-
type:
|
|
5206
|
-
default:
|
|
6674
|
+
show: {
|
|
6675
|
+
type: Boolean,
|
|
6676
|
+
default: false
|
|
5207
6677
|
},
|
|
5208
6678
|
|
|
5209
6679
|
/**
|
|
5210
|
-
*
|
|
6680
|
+
* Mode of tooltip to control the tooltip's visibility.
|
|
5211
6681
|
*/
|
|
5212
|
-
|
|
5213
|
-
type:
|
|
5214
|
-
default:
|
|
6682
|
+
hover: {
|
|
6683
|
+
type: Boolean,
|
|
6684
|
+
default: true
|
|
5215
6685
|
},
|
|
5216
6686
|
|
|
5217
6687
|
/**
|
|
5218
|
-
*
|
|
6688
|
+
* Add inverted class
|
|
5219
6689
|
*/
|
|
5220
|
-
|
|
5221
|
-
type:
|
|
5222
|
-
default:
|
|
6690
|
+
inverted: {
|
|
6691
|
+
type: Boolean,
|
|
6692
|
+
default: false
|
|
5223
6693
|
},
|
|
5224
6694
|
|
|
5225
6695
|
/**
|
|
5226
|
-
*
|
|
6696
|
+
* This property is needed for focus event
|
|
5227
6697
|
*/
|
|
5228
|
-
|
|
5229
|
-
type:
|
|
5230
|
-
default:
|
|
6698
|
+
tabIndex: {
|
|
6699
|
+
type: String,
|
|
6700
|
+
default: '0'
|
|
5231
6701
|
}
|
|
5232
6702
|
},
|
|
5233
6703
|
|
|
5234
6704
|
data() {
|
|
5235
6705
|
return {
|
|
5236
|
-
|
|
5237
|
-
|
|
5238
|
-
|
|
5239
|
-
|
|
6706
|
+
isHover: false,
|
|
6707
|
+
// is hovered local state
|
|
6708
|
+
isDismissed: false,
|
|
6709
|
+
// is dismissed (for ex. escape key pressed) local state
|
|
6710
|
+
isChildFocused: false,
|
|
6711
|
+
// is child element focused local state
|
|
6712
|
+
anchorTabIndex: '-1',
|
|
6713
|
+
// anchor is not tabbable by default
|
|
6714
|
+
TOOLTIP_KIND_MODIFIERS: TOOLTIP_KIND_MODIFIERS
|
|
5240
6715
|
};
|
|
5241
6716
|
},
|
|
5242
6717
|
|
|
5243
6718
|
computed: {
|
|
5244
|
-
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
and migration prior to upgrading to Vue 3.x
|
|
5249
|
-
*/
|
|
5250
|
-
// eslint-disable-next-line vue/no-deprecated-dollar-listeners-api
|
|
5251
|
-
...this.$listeners,
|
|
6719
|
+
isTooltipVisible() {
|
|
6720
|
+
if (this.isDismissed) {
|
|
6721
|
+
return false;
|
|
6722
|
+
}
|
|
5252
6723
|
|
|
5253
|
-
|
|
5254
|
-
* Override input listener to as no-op. Prevents parent input listeners from being passed through onto the input
|
|
5255
|
-
* element which will result in the hander being called twice (once on the select element and once by the
|
|
5256
|
-
* emitted input event by the change listener).
|
|
5257
|
-
*/
|
|
5258
|
-
input: () => {},
|
|
5259
|
-
change: event => this.emitValue(event.target.value)
|
|
5260
|
-
};
|
|
6724
|
+
return this.hover ? this.isHover : this.show;
|
|
5261
6725
|
},
|
|
5262
6726
|
|
|
5263
|
-
|
|
5264
|
-
return
|
|
6727
|
+
shouldShowTooltip() {
|
|
6728
|
+
return this.isTooltipVisible || this.isChildFocused;
|
|
5265
6729
|
},
|
|
5266
6730
|
|
|
5267
|
-
|
|
5268
|
-
return
|
|
6731
|
+
shouldHasHoverModifier() {
|
|
6732
|
+
return this.hover && !this.isDismissed && !this.isChildFocused;
|
|
5269
6733
|
},
|
|
5270
6734
|
|
|
5271
|
-
|
|
5272
|
-
return
|
|
6735
|
+
shouldHasShowModifier() {
|
|
6736
|
+
return this.isChildFocused;
|
|
5273
6737
|
},
|
|
5274
6738
|
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
return this.descriptionKey;
|
|
5278
|
-
}
|
|
5279
|
-
|
|
5280
|
-
return this.$attrs['aria-details'];
|
|
6739
|
+
ariaHidden() {
|
|
6740
|
+
return `${!this.isTooltipVisible}`;
|
|
5281
6741
|
}
|
|
5282
6742
|
|
|
5283
6743
|
},
|
|
6744
|
+
|
|
6745
|
+
mounted() {
|
|
6746
|
+
this.initAttributes();
|
|
6747
|
+
},
|
|
6748
|
+
|
|
6749
|
+
beforeUpdate() {
|
|
6750
|
+
this.initAttributes();
|
|
6751
|
+
},
|
|
6752
|
+
|
|
5284
6753
|
methods: {
|
|
5285
|
-
|
|
5286
|
-
this
|
|
5287
|
-
|
|
6754
|
+
initAttributes() {
|
|
6755
|
+
if (this.hasFocusableAnchorNode()) {
|
|
6756
|
+
var _this$$refs$anchor, _this$$refs$anchor$ch;
|
|
6757
|
+
|
|
6758
|
+
/* TODO: In the future we might want to refine this to apply the appropriate aria attrs given the child element
|
|
6759
|
+
* type.
|
|
6760
|
+
*/
|
|
6761
|
+
// Add aria description to each anchored child
|
|
6762
|
+
(_this$$refs$anchor = this.$refs.anchor) === null || _this$$refs$anchor === void 0 ? void 0 : (_this$$refs$anchor$ch = _this$$refs$anchor.children) === null || _this$$refs$anchor$ch === void 0 ? void 0 : _this$$refs$anchor$ch.forEach(child => {
|
|
6763
|
+
child.setAttribute('aria-describedby', this.id);
|
|
6764
|
+
});
|
|
6765
|
+
} else {
|
|
6766
|
+
this.$refs.anchor.setAttribute('tabIndex', this.tabIndex);
|
|
6767
|
+
this.$refs.anchor.setAttribute('aria-describedby', this.id);
|
|
6768
|
+
}
|
|
5288
6769
|
},
|
|
5289
6770
|
|
|
5290
|
-
|
|
5291
|
-
return
|
|
6771
|
+
hasFocusableAnchorNode() {
|
|
6772
|
+
return !!findFirstFocusableNode(this.$refs.anchor);
|
|
5292
6773
|
},
|
|
5293
6774
|
|
|
5294
|
-
|
|
5295
|
-
|
|
6775
|
+
onFocus() {
|
|
6776
|
+
this.onHover();
|
|
6777
|
+
this.isChildFocused = true;
|
|
6778
|
+
},
|
|
5296
6779
|
|
|
5297
|
-
|
|
5298
|
-
|
|
5299
|
-
|
|
5300
|
-
}
|
|
6780
|
+
onHover() {
|
|
6781
|
+
this.isHover = true;
|
|
6782
|
+
},
|
|
5301
6783
|
|
|
5302
|
-
|
|
6784
|
+
onBlur() {
|
|
6785
|
+
this.isHover = false;
|
|
6786
|
+
this.isDismissed = false;
|
|
6787
|
+
this.isChildFocused = false;
|
|
6788
|
+
},
|
|
5303
6789
|
|
|
5304
|
-
|
|
5305
|
-
|
|
5306
|
-
|
|
6790
|
+
onEsc() {
|
|
6791
|
+
this.isDismissed = this.hover && this.isHover || !this.show;
|
|
6792
|
+
this.isChildFocused = false;
|
|
6793
|
+
}
|
|
5307
6794
|
|
|
5308
|
-
beforeUpdate() {
|
|
5309
|
-
this.validateOptionsPresence();
|
|
5310
6795
|
}
|
|
5311
|
-
|
|
5312
6796
|
});
|
|
5313
|
-
// CONCATENATED MODULE: ./components/
|
|
5314
|
-
/* harmony default export */ var
|
|
5315
|
-
// CONCATENATED MODULE: ./components/
|
|
6797
|
+
// CONCATENATED MODULE: ./components/tooltip/tooltip.vue?vue&type=script&lang=js&
|
|
6798
|
+
/* harmony default export */ var tooltip_tooltipvue_type_script_lang_js_ = (tooltipvue_type_script_lang_js_);
|
|
6799
|
+
// CONCATENATED MODULE: ./components/tooltip/tooltip.vue
|
|
5316
6800
|
|
|
5317
6801
|
|
|
5318
6802
|
|
|
@@ -5320,10 +6804,10 @@ const optionsValidator = options => {
|
|
|
5320
6804
|
|
|
5321
6805
|
/* normalize component */
|
|
5322
6806
|
|
|
5323
|
-
var
|
|
5324
|
-
|
|
5325
|
-
|
|
5326
|
-
|
|
6807
|
+
var tooltip_component = normalizeComponent(
|
|
6808
|
+
tooltip_tooltipvue_type_script_lang_js_,
|
|
6809
|
+
tooltipvue_type_template_id_32b3102c_render,
|
|
6810
|
+
tooltipvue_type_template_id_32b3102c_staticRenderFns,
|
|
5327
6811
|
false,
|
|
5328
6812
|
null,
|
|
5329
6813
|
null,
|
|
@@ -5331,8 +6815,8 @@ var select_menu_component = normalizeComponent(
|
|
|
5331
6815
|
|
|
5332
6816
|
)
|
|
5333
6817
|
|
|
5334
|
-
/* harmony default export */ var
|
|
5335
|
-
// CONCATENATED MODULE: ./components/
|
|
6818
|
+
/* harmony default export */ var tooltip = (tooltip_component.exports);
|
|
6819
|
+
// CONCATENATED MODULE: ./components/tooltip/index.js
|
|
5336
6820
|
|
|
5337
6821
|
|
|
5338
6822
|
// CONCATENATED MODULE: ./components/mixins/index.js
|
|
@@ -5355,6 +6839,11 @@ var select_menu_component = normalizeComponent(
|
|
|
5355
6839
|
|
|
5356
6840
|
|
|
5357
6841
|
|
|
6842
|
+
|
|
6843
|
+
|
|
6844
|
+
|
|
6845
|
+
|
|
6846
|
+
|
|
5358
6847
|
|
|
5359
6848
|
|
|
5360
6849
|
// Mixins
|