@dialpad/dialtone-vue 1.0.0-beta.3 → 1.0.0-beta.6

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.
@@ -599,7 +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; });
606
+ __webpack_require__.d(__webpack_exports__, "DtBadge", function() { return /* reexport */ badge; });
607
+ __webpack_require__.d(__webpack_exports__, "BADGE_COLOR_MODIFIERS", function() { return /* reexport */ BADGE_COLOR_MODIFIERS; });
602
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; });
603
613
  __webpack_require__.d(__webpack_exports__, "DtButton", function() { return /* reexport */ button_button; });
604
614
  __webpack_require__.d(__webpack_exports__, "DtInput", function() { return /* reexport */ input_input; });
605
615
  __webpack_require__.d(__webpack_exports__, "INPUT_TYPES", function() { return /* reexport */ INPUT_TYPES; });
@@ -611,6 +621,9 @@ __webpack_require__.d(__webpack_exports__, "MODAL_SIZE_MODIFIERS", function() {
611
621
  __webpack_require__.d(__webpack_exports__, "DtLazyShow", function() { return /* reexport */ lazy_show; });
612
622
  __webpack_require__.d(__webpack_exports__, "DtListSection", function() { return /* reexport */ list_section; });
613
623
  __webpack_require__.d(__webpack_exports__, "DtListItem", function() { return /* reexport */ list_item; });
624
+ __webpack_require__.d(__webpack_exports__, "DtLink", function() { return /* reexport */ link_link; });
625
+ __webpack_require__.d(__webpack_exports__, "LINK_VARIANTS", function() { return /* reexport */ LINK_VARIANTS; });
626
+ __webpack_require__.d(__webpack_exports__, "LINK_KIND_MODIFIERS", function() { return /* reexport */ LINK_KIND_MODIFIERS; });
614
627
  __webpack_require__.d(__webpack_exports__, "DtNotice", function() { return /* reexport */ notice; });
615
628
  __webpack_require__.d(__webpack_exports__, "NOTICE_KINDS", function() { return /* reexport */ NOTICE_KINDS; });
616
629
  __webpack_require__.d(__webpack_exports__, "DtPopover", function() { return /* reexport */ popover; });
@@ -620,9 +633,24 @@ __webpack_require__.d(__webpack_exports__, "POPOVER_VERTICAL_ALIGNMENT", functio
620
633
  __webpack_require__.d(__webpack_exports__, "POPOVER_ROLES", function() { return /* reexport */ POPOVER_ROLES; });
621
634
  __webpack_require__.d(__webpack_exports__, "DtRadio", function() { return /* reexport */ radio_radio; });
622
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; });
623
643
  __webpack_require__.d(__webpack_exports__, "DtValidationMessages", function() { return /* reexport */ validation_messages; });
624
644
  __webpack_require__.d(__webpack_exports__, "DtCheckbox", function() { return /* reexport */ checkbox_checkbox; });
625
645
  __webpack_require__.d(__webpack_exports__, "DtCheckboxGroup", function() { return /* reexport */ checkbox_group; });
646
+ __webpack_require__.d(__webpack_exports__, "DtSelectMenu", function() { return /* reexport */ select_menu; });
647
+ __webpack_require__.d(__webpack_exports__, "SELECT_SIZE_MODIFIERS", function() { return /* reexport */ SELECT_SIZE_MODIFIERS; });
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; });
626
654
  __webpack_require__.d(__webpack_exports__, "DtInputMixin", function() { return /* reexport */ InputMixin; });
627
655
  __webpack_require__.d(__webpack_exports__, "DtCheckableInputMixin", function() { return /* reexport */ CheckableMixin; });
628
656
  __webpack_require__.d(__webpack_exports__, "DtGroupableInputMixin", function() { return /* reexport */ GroupableMixin; });
@@ -652,27 +680,297 @@ if (typeof window !== 'undefined') {
652
680
  // Indicate to webpack that this file can be concatenated
653
681
  /* harmony default export */ var setPublicPath = (null);
654
682
 
655
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"59098857-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&
656
- var 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)])}
683
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1b85754c-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)}
657
690
  var staticRenderFns = []
658
691
 
659
692
 
660
- // CONCATENATED MODULE: ./components/banner/banner.vue?vue&type=template&id=928dbcb4&
693
+ // CONCATENATED MODULE: ./components/avatar/avatar.vue?vue&type=template&id=3c007948&
661
694
 
662
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"59098857-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=21baafec&
663
- var notice_iconvue_type_template_id_21baafec_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 d-as-center"},[_vm._t("default",[_c(_vm.defaultIcon,{tag:"component"})])],2):_vm._e()}
664
- var notice_iconvue_type_template_id_21baafec_staticRenderFns = []
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_);
665
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 = {
711
+ base: '',
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'
728
+ };
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
666
736
 
667
- // CONCATENATED MODULE: ./components/notice/notice_icon.vue?vue&type=template&id=21baafec&
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
668
749
 
669
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"59098857-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&
670
- 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"}})])}
671
- var IconInfovue_type_template_id_d1105ee6_staticRenderFns = []
750
+ const DESCRIPTION_SIZE_TYPES = {
751
+ LARGE: 'lg',
752
+ EXTRA_LARGE: 'xl'
753
+ }; // Description size variants
672
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
673
762
 
674
- // CONCATENATED MODULE: ./node_modules/@dialpad/dialtone/lib/dist/vue/icons/IconInfo.vue?vue&type=template&id=d1105ee6&
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
+ //
874
+ //
875
+ //
876
+ //
877
+ //
878
+ //
879
+ //
880
+ //
881
+ //
882
+ //
883
+ //
884
+ //
885
+ //
886
+ //
887
+ //
888
+ //
889
+
890
+
891
+
892
+ /* harmony default export */ var avatarvue_type_script_lang_js_ = ({
893
+ name: 'DtAvatar',
894
+ inheritAttrs: false,
895
+ props: {
896
+ /**
897
+ * Id of the avatar content wrapper element
898
+ */
899
+ id: {
900
+ type: String,
901
+
902
+ default() {
903
+ return getUniqueString();
904
+ }
905
+
906
+ },
907
+
908
+ /**
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
928
+ */
929
+ color: {
930
+ type: String,
931
+ default: 'base',
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: ''
941
+ }
942
+ },
943
+
944
+ data() {
945
+ return {
946
+ AVATAR_SIZE_MODIFIERS: AVATAR_SIZE_MODIFIERS,
947
+ AVATAR_COLOR_MODIFIERS: AVATAR_COLOR_MODIFIERS,
948
+ AVATAR_KIND_MODIFIERS: AVATAR_KIND_MODIFIERS
949
+ };
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
+ }
675
969
 
970
+ }
971
+ });
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_);
676
974
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
677
975
  /* globals __VUE_SSR_CONTEXT__ */
678
976
 
@@ -773,17 +1071,18 @@ function normalizeComponent (
773
1071
  }
774
1072
  }
775
1073
 
776
- // CONCATENATED MODULE: ./node_modules/@dialpad/dialtone/lib/dist/vue/icons/IconInfo.vue
1074
+ // CONCATENATED MODULE: ./components/avatar/avatar.vue
1075
+
1076
+
777
1077
 
778
- var script = {}
779
1078
 
780
1079
 
781
1080
  /* normalize component */
782
1081
 
783
1082
  var component = normalizeComponent(
784
- script,
785
- IconInfovue_type_template_id_d1105ee6_render,
786
- IconInfovue_type_template_id_d1105ee6_staticRenderFns,
1083
+ avatar_avatarvue_type_script_lang_js_,
1084
+ render,
1085
+ staticRenderFns,
787
1086
  false,
788
1087
  null,
789
1088
  null,
@@ -791,24 +1090,190 @@ var component = normalizeComponent(
791
1090
 
792
1091
  )
793
1092
 
794
- /* harmony default export */ var IconInfo = (component.exports);
795
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"59098857-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&
796
- 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"}})])}
797
- var IconWarningvue_type_template_id_0a24defa_staticRenderFns = []
1093
+ /* harmony default export */ var avatar = (component.exports);
1094
+ // CONCATENATED MODULE: ./components/avatar/index.js
1095
+
1096
+
1097
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1b85754c-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 = []
1102
+
1103
+
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
+ //
798
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
799
1172
 
800
- // CONCATENATED MODULE: ./node_modules/@dialpad/dialtone/lib/dist/vue/icons/IconWarning.vue?vue&type=template&id=0a24defa&
801
1173
 
802
- // CONCATENATED MODULE: ./node_modules/@dialpad/dialtone/lib/dist/vue/icons/IconWarning.vue
803
1174
 
804
- var IconWarning_script = {}
805
1175
 
806
1176
 
807
1177
  /* normalize component */
808
1178
 
809
- var IconWarning_component = normalizeComponent(
810
- IconWarning_script,
811
- IconWarningvue_type_template_id_0a24defa_render,
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":"1b85754c-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":"1b85754c-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":"1b85754c-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":"1b85754c-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 = []
1237
+
1238
+
1239
+ // CONCATENATED MODULE: ./node_modules/@dialpad/dialtone/lib/dist/vue/icons/IconInfo.vue?vue&type=template&id=d1105ee6&
1240
+
1241
+ // CONCATENATED MODULE: ./node_modules/@dialpad/dialtone/lib/dist/vue/icons/IconInfo.vue
1242
+
1243
+ var IconInfo_script = {}
1244
+
1245
+
1246
+ /* normalize component */
1247
+
1248
+ var IconInfo_component = normalizeComponent(
1249
+ IconInfo_script,
1250
+ IconInfovue_type_template_id_d1105ee6_render,
1251
+ IconInfovue_type_template_id_d1105ee6_staticRenderFns,
1252
+ false,
1253
+ null,
1254
+ null,
1255
+ null
1256
+
1257
+ )
1258
+
1259
+ /* harmony default export */ var IconInfo = (IconInfo_component.exports);
1260
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1b85754c-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&
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"}})])}
1262
+ var IconWarningvue_type_template_id_0a24defa_staticRenderFns = []
1263
+
1264
+
1265
+ // CONCATENATED MODULE: ./node_modules/@dialpad/dialtone/lib/dist/vue/icons/IconWarning.vue?vue&type=template&id=0a24defa&
1266
+
1267
+ // CONCATENATED MODULE: ./node_modules/@dialpad/dialtone/lib/dist/vue/icons/IconWarning.vue
1268
+
1269
+ var IconWarning_script = {}
1270
+
1271
+
1272
+ /* normalize component */
1273
+
1274
+ var IconWarning_component = normalizeComponent(
1275
+ IconWarning_script,
1276
+ IconWarningvue_type_template_id_0a24defa_render,
812
1277
  IconWarningvue_type_template_id_0a24defa_staticRenderFns,
813
1278
  false,
814
1279
  null,
@@ -818,7 +1283,7 @@ var IconWarning_component = normalizeComponent(
818
1283
  )
819
1284
 
820
1285
  /* harmony default export */ var IconWarning = (IconWarning_component.exports);
821
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"59098857-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&
1286
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1b85754c-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&
822
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"}})])}
823
1288
  var IconErrorvue_type_template_id_4d9e3e9d_staticRenderFns = []
824
1289
 
@@ -844,24 +1309,24 @@ var IconError_component = normalizeComponent(
844
1309
  )
845
1310
 
846
1311
  /* harmony default export */ var IconError = (IconError_component.exports);
847
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"59098857-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/IconCheckmark.vue?vue&type=template&id=00878f9c&
848
- var IconCheckmarkvue_type_template_id_00878f9c_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__checkmark",attrs:{"aria-hidden":"true","aria-label":"Checkmark","viewBox":"0 0 24 24"}},[_c('path',{attrs:{"d":"M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"}})])}
849
- var IconCheckmarkvue_type_template_id_00878f9c_staticRenderFns = []
1312
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1b85754c-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&
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"}})])}
1314
+ var IconCheckCirclevue_type_template_id_016c7d48_staticRenderFns = []
850
1315
 
851
1316
 
852
- // CONCATENATED MODULE: ./node_modules/@dialpad/dialtone/lib/dist/vue/icons/IconCheckmark.vue?vue&type=template&id=00878f9c&
1317
+ // CONCATENATED MODULE: ./node_modules/@dialpad/dialtone/lib/dist/vue/icons/IconCheckCircle.vue?vue&type=template&id=016c7d48&
853
1318
 
854
- // CONCATENATED MODULE: ./node_modules/@dialpad/dialtone/lib/dist/vue/icons/IconCheckmark.vue
1319
+ // CONCATENATED MODULE: ./node_modules/@dialpad/dialtone/lib/dist/vue/icons/IconCheckCircle.vue
855
1320
 
856
- var IconCheckmark_script = {}
1321
+ var IconCheckCircle_script = {}
857
1322
 
858
1323
 
859
1324
  /* normalize component */
860
1325
 
861
- var IconCheckmark_component = normalizeComponent(
862
- IconCheckmark_script,
863
- IconCheckmarkvue_type_template_id_00878f9c_render,
864
- IconCheckmarkvue_type_template_id_00878f9c_staticRenderFns,
1326
+ var IconCheckCircle_component = normalizeComponent(
1327
+ IconCheckCircle_script,
1328
+ IconCheckCirclevue_type_template_id_016c7d48_render,
1329
+ IconCheckCirclevue_type_template_id_016c7d48_staticRenderFns,
865
1330
  false,
866
1331
  null,
867
1332
  null,
@@ -869,11 +1334,13 @@ var IconCheckmark_component = normalizeComponent(
869
1334
 
870
1335
  )
871
1336
 
872
- /* harmony default export */ var IconCheckmark = (IconCheckmark_component.exports);
1337
+ /* harmony default export */ var IconCheckCircle = (IconCheckCircle_component.exports);
873
1338
  // CONCATENATED MODULE: ./components/notice/notice_constants.js
874
- const NOTICE_KINDS = ['', 'info', 'warning', 'error', 'success'];
1339
+ const NOTICE_KINDS = ['base', 'error', 'info', 'success', 'warning'];
1340
+ const NOTICE_ROLES = ['alert', 'alertdialog', 'status'];
875
1341
  /* harmony default export */ var notice_constants = ({
876
- NOTICE_KINDS
1342
+ NOTICE_KINDS,
1343
+ NOTICE_ROLES
877
1344
  });
878
1345
  // 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_icon.vue?vue&type=script&lang=js&
879
1346
  //
@@ -888,19 +1355,23 @@ const NOTICE_KINDS = ['', 'info', 'warning', 'error', 'success'];
888
1355
  //
889
1356
  //
890
1357
  //
1358
+ //
1359
+ //
891
1360
 
892
1361
 
893
1362
 
894
1363
 
895
1364
 
896
- const kindToIcon = new Map([['info', 'IconInfo'], ['success', 'IconCheckmark'], ['warning', 'IconWarning'], ['error', 'IconError'], ['base', null]]);
1365
+
1366
+ const kindToIcon = new Map([['info', 'IconInfo'], ['success', 'IconCheckCircle'], ['warning', 'IconWarning'], ['error', 'IconError'], ['base', 'IconLightbulb']]);
897
1367
  /* harmony default export */ var notice_iconvue_type_script_lang_js_ = ({
898
1368
  name: 'DtNoticeIcon',
899
1369
  components: {
1370
+ IconLightbulb: IconLightbulb,
900
1371
  IconInfo: IconInfo,
901
1372
  IconWarning: IconWarning,
902
1373
  IconError: IconError,
903
- IconCheckmark: IconCheckmark
1374
+ IconCheckCircle: IconCheckCircle
904
1375
  },
905
1376
  props: {
906
1377
  kind: {
@@ -932,8 +1403,8 @@ const kindToIcon = new Map([['info', 'IconInfo'], ['success', 'IconCheckmark'],
932
1403
 
933
1404
  var notice_icon_component = normalizeComponent(
934
1405
  notice_notice_iconvue_type_script_lang_js_,
935
- notice_iconvue_type_template_id_21baafec_render,
936
- notice_iconvue_type_template_id_21baafec_staticRenderFns,
1406
+ notice_iconvue_type_template_id_58ae40bb_render,
1407
+ notice_iconvue_type_template_id_58ae40bb_staticRenderFns,
937
1408
  false,
938
1409
  null,
939
1410
  null,
@@ -942,12 +1413,12 @@ var notice_icon_component = normalizeComponent(
942
1413
  )
943
1414
 
944
1415
  /* harmony default export */ var notice_icon = (notice_icon_component.exports);
945
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"59098857-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=153d0212&
946
- var notice_contentvue_type_template_id_153d0212_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"d-notice__content d-fw-wrap"},[(_vm.title || this.$slots.titleOverride)?_c('h1',{staticClass:"d-notice__title",attrs:{"id":_vm.titleId}},[_vm._t("titleOverride",[_vm._v(" "+_vm._s(_vm.title)+" ")])],2):_vm._e(),_c('p',{staticClass:"d-notice__message",attrs:{"id":_vm.contentId}},[_vm._t("default")],2)])}
947
- var notice_contentvue_type_template_id_153d0212_staticRenderFns = []
1416
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1b85754c-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 = []
948
1419
 
949
1420
 
950
- // CONCATENATED MODULE: ./components/notice/notice_content.vue?vue&type=template&id=153d0212&
1421
+ // CONCATENATED MODULE: ./components/notice/notice_content.vue?vue&type=template&id=24cf95e4&
951
1422
 
952
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&
953
1424
  //
@@ -972,6 +1443,9 @@ var notice_contentvue_type_template_id_153d0212_staticRenderFns = []
972
1443
  //
973
1444
  //
974
1445
  //
1446
+ //
1447
+ //
1448
+ //
975
1449
  /* harmony default export */ var notice_contentvue_type_script_lang_js_ = ({
976
1450
  name: 'DtNoticeContent',
977
1451
  props: {
@@ -1001,8 +1475,8 @@ var notice_contentvue_type_template_id_153d0212_staticRenderFns = []
1001
1475
 
1002
1476
  var notice_content_component = normalizeComponent(
1003
1477
  notice_notice_contentvue_type_script_lang_js_,
1004
- notice_contentvue_type_template_id_153d0212_render,
1005
- notice_contentvue_type_template_id_153d0212_staticRenderFns,
1478
+ notice_contentvue_type_template_id_24cf95e4_render,
1479
+ notice_contentvue_type_template_id_24cf95e4_staticRenderFns,
1006
1480
  false,
1007
1481
  null,
1008
1482
  null,
@@ -1011,14 +1485,14 @@ var notice_content_component = normalizeComponent(
1011
1485
  )
1012
1486
 
1013
1487
  /* harmony default export */ var notice_content = (notice_content_component.exports);
1014
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"59098857-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=5a25139e&
1015
- var notice_actionvue_type_template_id_5a25139e_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"d-notice__actions"},[_vm._t("default"),(!_vm.hideClose)?_c('dt-button',_vm._b({ref:"closeButton",staticClass:"d-notice__btn d-notice__close",attrs:{"importance":"clear","circle":"","aria-label":_vm.closeButtonProps.ariaLabel ? _vm.closeButtonProps.ariaLabel : null},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)}
1016
- var notice_actionvue_type_template_id_5a25139e_staticRenderFns = []
1488
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1b85754c-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&
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)}
1490
+ var notice_actionvue_type_template_id_279e5f84_staticRenderFns = []
1017
1491
 
1018
1492
 
1019
- // CONCATENATED MODULE: ./components/notice/notice_action.vue?vue&type=template&id=5a25139e&
1493
+ // CONCATENATED MODULE: ./components/notice/notice_action.vue?vue&type=template&id=279e5f84&
1020
1494
 
1021
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"59098857-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&
1495
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1b85754c-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&
1022
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"}})])}
1023
1497
  var IconClosevue_type_template_id_18642c39_staticRenderFns = []
1024
1498
 
@@ -1044,16 +1518,17 @@ var IconClose_component = normalizeComponent(
1044
1518
  )
1045
1519
 
1046
1520
  /* harmony default export */ var IconClose = (IconClose_component.exports);
1047
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"59098857-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=3fe946f4&
1048
- var buttonvue_type_template_id_3fe946f4_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('button',_vm._g({class:['base-button__button', _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:['base-button__icon', _vm.iconClasses],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)])}
1049
- var buttonvue_type_template_id_3fe946f4_staticRenderFns = []
1521
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1b85754c-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 = []
1050
1529
 
1051
1530
 
1052
- // CONCATENATED MODULE: ./components/button/button.vue?vue&type=template&id=3fe946f4&
1053
-
1054
- // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
1055
- var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__("8bbf");
1056
- 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&
1057
1532
 
1058
1533
  // CONCATENATED MODULE: ./components/button/button_constants.js
1059
1534
  const BUTTON_SIZE_MODIFIERS = {
@@ -1065,6 +1540,7 @@ const BUTTON_SIZE_MODIFIERS = {
1065
1540
  };
1066
1541
  const BUTTON_KIND_MODIFIERS = {
1067
1542
  default: '',
1543
+ muted: 'd-btn--muted',
1068
1544
  danger: 'd-btn--danger',
1069
1545
  inverted: 'd-btn--inverted'
1070
1546
  };
@@ -1077,16 +1553,6 @@ const BUTTON_TYPES = ['submit', 'reset', 'button'];
1077
1553
  const ICON_POSITION_MODIFIERS = {
1078
1554
  left: 'd-btn__icon--left',
1079
1555
  right: 'd-btn__icon--right'
1080
- }; // TODO: Use LINK_KIND_MODIFIERS from the link component
1081
- // rather than this one once it gets merged in.
1082
-
1083
- const LINK_KIND_MODIFIERS = {
1084
- default: 'd-link',
1085
- warning: 'd-link--warning',
1086
- danger: 'd-link--danger',
1087
- success: 'd-link--success',
1088
- muted: 'd-link--muted',
1089
- inverted: 'd-link--inverted'
1090
1556
  };
1091
1557
  const INVALID_COMBINATION = [{
1092
1558
  circle: true,
@@ -1114,9 +1580,23 @@ list of available button styles`;
1114
1580
  BUTTON_IMPORTANCE_MODIFIERS,
1115
1581
  BUTTON_TYPES,
1116
1582
  ICON_POSITION_MODIFIERS,
1117
- LINK_KIND_MODIFIERS,
1118
1583
  INVALID_COMBINATION
1119
1584
  });
1585
+ // CONCATENATED MODULE: ./components/link/link_constants.js
1586
+ const DANGER = 'danger';
1587
+ const WARNING = 'warning';
1588
+ const SUCCESS = 'success';
1589
+ const MUTED = 'muted';
1590
+ const INVERTED = 'inverted';
1591
+ const LINK_VARIANTS = ['', DANGER, WARNING, SUCCESS, MUTED, INVERTED];
1592
+ const LINK_KIND_MODIFIERS = {
1593
+ default: '',
1594
+ warning: 'd-link--warning',
1595
+ danger: 'd-link--danger',
1596
+ success: 'd-link--success',
1597
+ muted: 'd-link--muted',
1598
+ inverted: 'd-link--inverted'
1599
+ };
1120
1600
  // 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/button/button.vue?vue&type=script&lang=js&
1121
1601
  //
1122
1602
  //
@@ -1147,6 +1627,14 @@ list of available button styles`;
1147
1627
  //
1148
1628
  //
1149
1629
  //
1630
+ //
1631
+ //
1632
+ //
1633
+ //
1634
+ //
1635
+ //
1636
+ //
1637
+
1150
1638
 
1151
1639
 
1152
1640
  /**
@@ -1268,6 +1756,7 @@ list of available button styles`;
1268
1756
 
1269
1757
  data() {
1270
1758
  return {
1759
+ ICON_POSITION_MODIFIERS: ICON_POSITION_MODIFIERS,
1271
1760
  // whether the button is currently in focus
1272
1761
  isInFocus: false
1273
1762
  };
@@ -1302,10 +1791,6 @@ list of available button styles`;
1302
1791
  'd-btn--circle': this.circle,
1303
1792
  'd-btn--loading': this.loading
1304
1793
  }];
1305
- },
1306
-
1307
- iconClasses() {
1308
- return ['d-btn__icon', ICON_POSITION_MODIFIERS[this.iconPosition]];
1309
1794
  }
1310
1795
 
1311
1796
  },
@@ -1351,8 +1836,8 @@ list of available button styles`;
1351
1836
 
1352
1837
  var button_component = normalizeComponent(
1353
1838
  button_buttonvue_type_script_lang_js_,
1354
- buttonvue_type_template_id_3fe946f4_render,
1355
- buttonvue_type_template_id_3fe946f4_staticRenderFns,
1839
+ buttonvue_type_template_id_50f25d54_render,
1840
+ buttonvue_type_template_id_50f25d54_staticRenderFns,
1356
1841
  false,
1357
1842
  null,
1358
1843
  null,
@@ -1381,6 +1866,9 @@ var button_component = normalizeComponent(
1381
1866
  //
1382
1867
  //
1383
1868
  //
1869
+ //
1870
+ //
1871
+ //
1384
1872
 
1385
1873
 
1386
1874
  /* harmony default export */ var notice_actionvue_type_script_lang_js_ = ({
@@ -1437,8 +1925,8 @@ var button_component = normalizeComponent(
1437
1925
 
1438
1926
  var notice_action_component = normalizeComponent(
1439
1927
  notice_notice_actionvue_type_script_lang_js_,
1440
- notice_actionvue_type_template_id_5a25139e_render,
1441
- notice_actionvue_type_template_id_5a25139e_staticRenderFns,
1928
+ notice_actionvue_type_template_id_279e5f84_render,
1929
+ notice_actionvue_type_template_id_279e5f84_staticRenderFns,
1442
1930
  false,
1443
1931
  null,
1444
1932
  null,
@@ -1478,11 +1966,30 @@ const focusableElementsList = `button:${nonFocusableAttrs},
1478
1966
 
1479
1967
  const focusableElements = this._getFocusableElements(el);
1480
1968
 
1969
+ const elToFocus = this._getFirstFocusElement(focusableElements);
1970
+
1971
+ elToFocus === null || elToFocus === void 0 ? void 0 : elToFocus.focus();
1972
+ },
1973
+
1974
+ /**
1975
+ * internal use only.
1976
+ *
1977
+ * @param focusableElements - list of focusable elements
1978
+ * @returns {*} - first DOM element that is focusable.
1979
+ * @private
1980
+ */
1981
+ _getFirstFocusElement(focusableElements) {
1481
1982
  if (!focusableElements.length) {
1482
1983
  return;
1483
1984
  }
1484
1985
 
1485
- focusableElements[0].focus();
1986
+ let firstFocusEl = focusableElements[0]; // If first element is a checkbox, put focus on the selected checkbox or the first checkbox if none are selected.
1987
+
1988
+ if (firstFocusEl.matches('[type="radio"]:not(:checked)')) {
1989
+ firstFocusEl = focusableElements.find(el => el.checked && el.name === firstFocusEl.name) || firstFocusEl;
1990
+ }
1991
+
1992
+ return firstFocusEl;
1486
1993
  },
1487
1994
 
1488
1995
  /**
@@ -1518,7 +2025,8 @@ const focusableElementsList = `button:${nonFocusableAttrs},
1518
2025
  return;
1519
2026
  }
1520
2027
 
1521
- const firstFocusableElement = focusableElements[0];
2028
+ const firstFocusableElement = this._getFirstFocusElement(focusableElements);
2029
+
1522
2030
  const lastFocusableElement = focusableElements[focusableElements.length - 1];
1523
2031
 
1524
2032
  if (e.shiftKey) {
@@ -1536,110 +2044,6 @@ const focusableElementsList = `button:${nonFocusableAttrs},
1536
2044
 
1537
2045
  }
1538
2046
  });
1539
- // CONCATENATED MODULE: ./components/constants.js
1540
- /* TODO: Move and sort these in a constants directory
1541
-
1542
- Example:
1543
- constants/
1544
- forms.js
1545
- defaults.js
1546
- ...
1547
- */
1548
- // Types of messages, also dictates what is the current state of the input.
1549
- const VALIDATION_MESSAGE_TYPES = {
1550
- ERROR: 'error',
1551
- WARNING: 'warning',
1552
- SUCCESS: 'success'
1553
- }; // Description size variants
1554
-
1555
- const DESCRIPTION_SIZE_TYPES = {
1556
- LARGE: 'lg',
1557
- EXTRA_LARGE: 'xl'
1558
- };
1559
- /*
1560
- * Any string message or message object in the messages prop that do not specify
1561
- * a 'type' attributes will default to 'DEFAULT_MESSAGE_TYPE'.
1562
- */
1563
-
1564
- const DEFAULT_VALIDATION_MESSAGE_TYPE = VALIDATION_MESSAGE_TYPES.ERROR; // Default prefix used for ids
1565
-
1566
- const DEFAULT_PREFIX = 'hs';
1567
- /* harmony default export */ var constants = ({
1568
- VALIDATION_MESSAGE_TYPES,
1569
- DESCRIPTION_SIZE_TYPES,
1570
- DEFAULT_VALIDATION_MESSAGE_TYPE,
1571
- DEFAULT_PREFIX
1572
- });
1573
- // CONCATENATED MODULE: ./components/utils.js
1574
-
1575
- let UNIQUE_ID_COUNTER = 0;
1576
- function getUniqueString(prefix = DEFAULT_PREFIX) {
1577
- return `${prefix}${UNIQUE_ID_COUNTER++}`;
1578
- }
1579
- function formatMessages(messages) {
1580
- if (!messages) {
1581
- return [];
1582
- }
1583
-
1584
- return messages.map(message => {
1585
- if (typeof message === 'string') {
1586
- return {
1587
- message,
1588
- type: DEFAULT_VALIDATION_MESSAGE_TYPE
1589
- };
1590
- }
1591
-
1592
- return message;
1593
- });
1594
- }
1595
- function filterFormattedMessages(formattedMessages) {
1596
- const validationState = getValidationState(formattedMessages);
1597
-
1598
- if (!formattedMessages || !validationState) {
1599
- return [];
1600
- }
1601
-
1602
- return formattedMessages.filter(message => message.type === validationState);
1603
- }
1604
- /*
1605
- * The priority order of message types is as flows: 'error' > 'warning' > 'success'.
1606
- * If any message of type 'error' is present in messages, the input state is considered
1607
- * to be 'error', then 'warning' and lastly 'success'.
1608
- */
1609
-
1610
- function getValidationState(formattedMessages) {
1611
- if (!formattedMessages) {
1612
- return null;
1613
- }
1614
-
1615
- if (hasFormattedMessageOfType(formattedMessages, VALIDATION_MESSAGE_TYPES.ERROR)) {
1616
- return VALIDATION_MESSAGE_TYPES.ERROR;
1617
- }
1618
-
1619
- if (hasFormattedMessageOfType(formattedMessages, VALIDATION_MESSAGE_TYPES.WARNING)) {
1620
- return VALIDATION_MESSAGE_TYPES.WARNING;
1621
- }
1622
-
1623
- if (hasFormattedMessageOfType(formattedMessages, VALIDATION_MESSAGE_TYPES.SUCCESS)) {
1624
- return VALIDATION_MESSAGE_TYPES.SUCCESS;
1625
- }
1626
-
1627
- return null;
1628
- }
1629
- function hasFormattedMessageOfType(formattedMessages, messageType) {
1630
- if (!formattedMessages || !messageType) {
1631
- return false;
1632
- }
1633
-
1634
- return formattedMessages.some(message => (message === null || message === void 0 ? void 0 : message.type) === messageType);
1635
- }
1636
- /* harmony default export */ var utils = ({
1637
- getUniqueString,
1638
- formatMessages,
1639
- filterFormattedMessages,
1640
- hasFormattedMessageOfType,
1641
- getValidationState
1642
- });
1643
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&
1644
2048
  //
1645
2049
  //
@@ -1823,8 +2227,8 @@ function hasFormattedMessageOfType(formattedMessages, messageType) {
1823
2227
 
1824
2228
  var banner_component = normalizeComponent(
1825
2229
  banner_bannervue_type_script_lang_js_,
1826
- render,
1827
- staticRenderFns,
2230
+ bannervue_type_template_id_928dbcb4_render,
2231
+ bannervue_type_template_id_928dbcb4_staticRenderFns,
1828
2232
  false,
1829
2233
  null,
1830
2234
  null,
@@ -1835,55 +2239,364 @@ var banner_component = normalizeComponent(
1835
2239
  /* harmony default export */ var banner = (banner_component.exports);
1836
2240
  // CONCATENATED MODULE: ./components/banner/index.js
1837
2241
 
1838
- // CONCATENATED MODULE: ./components/button/index.js
2242
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1b85754c-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 = []
1839
2249
 
1840
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"59098857-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=4ecb5bb6&
1841
- var inputvue_type_template_id_4ecb5bb6_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"container",staticClass:"base-input",attrs:{"data-qa":"dt-input"}},[_c('label',{staticClass:"base-input__label",attrs:{"aria-details":_vm.$slots.description || _vm.description ? _vm.descriptionKey : undefined,"data-qa":"dt-input-label-wrapper"}},[_vm._t("labelSlot",[_c('div',{class:['base-input__label-text', 'd-label', _vm.labelSizeModifierClass],attrs:{"data-qa":"dt-input-label"}},[_vm._v(" "+_vm._s(_vm.label)+" ")])]),(_vm.$slots.description || _vm.description)?_c('div',{class:['base-input__description', 'd-description', _vm.descriptionSizeModifierClass],attrs:{"id":_vm.descriptionKey,"data-qa":"dt-input-description"}},[_vm._t("description",[_vm._v(_vm._s(_vm.description))])],2):_vm._e(),_c('div',{staticClass:"d-ps-relative"},[(_vm.$slots.leftIcon)?_c('span',{class:_vm.inputIconClasses('left'),attrs:{"data-qa":"dt-input-left-icon-wrapper"},on:{"focusout":_vm.onBlur}},[_vm._t("leftIcon")],2):_vm._e(),(_vm.$slots.rightIcon)?_c('span',{class:_vm.inputIconClasses('right'),attrs:{"data-qa":"dt-input-right-icon-wrapper"},on:{"focusout":_vm.onBlur}},[_vm._t("rightIcon")],2):_vm._e(),(_vm.isTextarea)?_c('textarea',_vm._g(_vm._b({ref:"input",class:_vm.inputClasses(),attrs:{"name":_vm.name,"disabled":_vm.disabled,"data-qa":"dt-input-input"},domProps:{"value":_vm.value}},'textarea',_vm.$attrs,false),_vm.inputListeners)):_c('input',_vm._g(_vm._b({ref:"input",class:_vm.inputClasses(),attrs:{"name":_vm.name,"type":_vm.type,"disabled":_vm.disabled,"data-qa":"dt-input-input"},domProps:{"value":_vm.value}},'input',_vm.$attrs,false),_vm.inputListeners))])],2),_c('dt-validation-messages',_vm._b({class:_vm.messagesClass,attrs:{"validation-messages":_vm.formattedMessages,"show-messages":_vm.showMessages,"data-qa":"dt-input-messages"}},'dt-validation-messages',_vm.messagesChildProps,false))],1)}
1842
- var inputvue_type_template_id_4ecb5bb6_staticRenderFns = []
1843
2250
 
2251
+ // CONCATENATED MODULE: ./components/breadcrumbs/breadcrumbs.vue?vue&type=template&id=b762e354&
1844
2252
 
1845
- // CONCATENATED MODULE: ./components/input/input.vue?vue&type=template&id=4ecb5bb6&
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":"1b85754c-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 = []
1846
2263
 
1847
- // CONCATENATED MODULE: ./components/input/input_constants.js
1848
- // Valid input types, any other input types (for example: 'radio' or 'checkbox') should
1849
- // use the respective base vue components (radio.vue and checkout.vue).
1850
- const INPUT_TYPES = {
1851
- TEXT: 'text',
1852
- TEXTAREA: 'textarea',
1853
- PASSWORD: 'password',
1854
- EMAIL: 'email',
1855
- NUMBER: 'number'
1856
- };
1857
- const INPUT_SIZES = {
1858
- EXTRA_SMALL: 'xs',
1859
- SMALL: 'sm',
1860
- DEFAULT: 'md',
1861
- LARGE: 'lg',
1862
- EXTRA_LARGE: 'xl'
1863
- };
1864
- /* harmony default export */ var input_constants = ({
1865
- INPUT_TYPES,
1866
- INPUT_SIZES
1867
- });
1868
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"59098857-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=37c959ef&
1869
- var validation_messagesvue_type_template_id_37c959ef_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){
1870
- var message = ref.message;
1871
- var type = ref.type;
1872
- return _c('div',{key:_vm.getMessageKey(type, index),class:[
1873
- 'base-input__message',
1874
- 'd-validation-message',
1875
- ("base-input__message--" + type),
1876
- ("d-validation-message--" + type) ],attrs:{"role":"status","aria-live":"polite","data-qa":"validation-message"}},[_vm._v(" "+_vm._s(message)+" ")])}),0):_vm._e()}
1877
- var validation_messagesvue_type_template_id_37c959ef_staticRenderFns = []
1878
2264
 
2265
+ // CONCATENATED MODULE: ./components/breadcrumbs/breadcrumb_item.vue?vue&type=template&id=6f97ec8a&
1879
2266
 
1880
- // CONCATENATED MODULE: ./components/validation_messages/validation_messages.vue?vue&type=template&id=37c959ef&
2267
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1b85754c-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 = []
1881
2272
 
1882
- // CONCATENATED MODULE: ./components/validators.js
1883
2273
 
1884
- function validationMessageValidator(rawMessages) {
1885
- if (!rawMessages) {
1886
- return true;
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
+
2543
+ // CONCATENATED MODULE: ./components/button/index.js
2544
+
2545
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1b85754c-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&
2546
+ var inputvue_type_template_id_4e7e7271_render = function () {
2547
+ var _obj, _obj$1;
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:[
2549
+ 'base-input__label-text',
2550
+ 'd-label',
2551
+ ( _obj = {}, _obj[("d-label--" + _vm.size)] = (!_vm.isDefaultSize && _vm.isValidSize), _obj ) ],attrs:{"data-qa":"dt-input-label"}},[_vm._v(" "+_vm._s(_vm.label)+" ")])]),(_vm.$slots.description || _vm.description)?_c('div',{class:[
2552
+ 'base-input__description',
2553
+ 'd-description',
2554
+ ( _obj$1 = {}, _obj$1[("d-description--" + _vm.size)] = (!_vm.isDefaultSize && _vm.isValidDescriptionSize), _obj$1 ) ],attrs:{"id":_vm.descriptionKey,"data-qa":"dt-input-description"}},[_vm._t("description",[_vm._v(_vm._s(_vm.description))])],2):_vm._e(),_c('div',{staticClass:"d-ps-relative"},[(_vm.$slots.leftIcon)?_c('span',{class:_vm.inputIconClasses('left'),attrs:{"data-qa":"dt-input-left-icon-wrapper"},on:{"focusout":_vm.onBlur}},[_vm._t("leftIcon")],2):_vm._e(),(_vm.$slots.rightIcon)?_c('span',{class:_vm.inputIconClasses('right'),attrs:{"data-qa":"dt-input-right-icon-wrapper"},on:{"focusout":_vm.onBlur}},[_vm._t("rightIcon")],2):_vm._e(),(_vm.isTextarea)?_c('textarea',_vm._g(_vm._b({ref:"input",class:_vm.inputClasses(),attrs:{"name":_vm.name,"disabled":_vm.disabled,"data-qa":"dt-input-input"},domProps:{"value":_vm.value}},'textarea',_vm.$attrs,false),_vm.inputListeners)):_c('input',_vm._g(_vm._b({ref:"input",class:_vm.inputClasses(),attrs:{"name":_vm.name,"type":_vm.type,"disabled":_vm.disabled,"data-qa":"dt-input-input"},domProps:{"value":_vm.value}},'input',_vm.$attrs,false),_vm.inputListeners))])],2),_c('dt-validation-messages',_vm._b({class:_vm.messagesClass,attrs:{"validation-messages":_vm.formattedMessages,"show-messages":_vm.showMessages,"data-qa":"dt-input-messages"}},'dt-validation-messages',_vm.messagesChildProps,false))],1)}
2555
+ var inputvue_type_template_id_4e7e7271_staticRenderFns = []
2556
+
2557
+
2558
+ // CONCATENATED MODULE: ./components/input/input.vue?vue&type=template&id=4e7e7271&
2559
+
2560
+ // CONCATENATED MODULE: ./components/input/input_constants.js
2561
+ // Valid input types, any other input types (for example: 'radio' or 'checkbox') should
2562
+ // use the respective base vue components (radio.vue and checkout.vue).
2563
+ const INPUT_TYPES = {
2564
+ TEXT: 'text',
2565
+ TEXTAREA: 'textarea',
2566
+ PASSWORD: 'password',
2567
+ EMAIL: 'email',
2568
+ NUMBER: 'number'
2569
+ };
2570
+ const INPUT_SIZES = {
2571
+ EXTRA_SMALL: 'xs',
2572
+ SMALL: 'sm',
2573
+ DEFAULT: 'md',
2574
+ LARGE: 'lg',
2575
+ EXTRA_LARGE: 'xl'
2576
+ };
2577
+ /* harmony default export */ var input_constants = ({
2578
+ INPUT_TYPES,
2579
+ INPUT_SIZES
2580
+ });
2581
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1b85754c-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){
2583
+ var message = ref.message;
2584
+ var type = ref.type;
2585
+ return _c('div',{key:_vm.getMessageKey(type, index),class:[
2586
+ 'base-input__message',
2587
+ 'd-validation-message',
2588
+ ("base-input__message--" + type),
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 = []
2591
+
2592
+
2593
+ // CONCATENATED MODULE: ./components/validation_messages/validation_messages.vue?vue&type=template&id=7d26d3bb&
2594
+
2595
+ // CONCATENATED MODULE: ./components/validators.js
2596
+
2597
+ function validationMessageValidator(rawMessages) {
2598
+ if (!rawMessages) {
2599
+ return true;
1887
2600
  }
1888
2601
 
1889
2602
  return rawMessages.every(message => {
@@ -1994,8 +2707,8 @@ function validationMessageValidator(rawMessages) {
1994
2707
 
1995
2708
  var validation_messages_component = normalizeComponent(
1996
2709
  validation_messages_validation_messagesvue_type_script_lang_js_,
1997
- validation_messagesvue_type_template_id_37c959ef_render,
1998
- validation_messagesvue_type_template_id_37c959ef_staticRenderFns,
2710
+ validation_messagesvue_type_template_id_7d26d3bb_render,
2711
+ validation_messagesvue_type_template_id_7d26d3bb_staticRenderFns,
1999
2712
  false,
2000
2713
  null,
2001
2714
  null,
@@ -2297,7 +3010,7 @@ const MessagesMixin = {
2297
3010
  * Used to customize the the validation messages component
2298
3011
  */
2299
3012
  messagesClass: {
2300
- type: String,
3013
+ type: [String, Array, Object],
2301
3014
  default: ''
2302
3015
  },
2303
3016
 
@@ -2426,6 +3139,14 @@ const MessagesMixin = {
2426
3139
  //
2427
3140
  //
2428
3141
  //
3142
+ //
3143
+ //
3144
+ //
3145
+ //
3146
+ //
3147
+ //
3148
+ //
3149
+ //
2429
3150
 
2430
3151
 
2431
3152
 
@@ -2508,6 +3229,14 @@ const MessagesMixin = {
2508
3229
  return this.size === INPUT_SIZES.DEFAULT;
2509
3230
  },
2510
3231
 
3232
+ isValidSize() {
3233
+ return Object.values(INPUT_SIZES).includes(this.size);
3234
+ },
3235
+
3236
+ isValidDescriptionSize() {
3237
+ return Object.values(DESCRIPTION_SIZE_TYPES).includes(this.size);
3238
+ },
3239
+
2511
3240
  inputComponent() {
2512
3241
  if (this.isTextarea) {
2513
3242
  return 'textarea';
@@ -2541,28 +3270,12 @@ const MessagesMixin = {
2541
3270
  },
2542
3271
 
2543
3272
  sizeModifierClass() {
2544
- if (this.isDefaultSize || !Object.values(INPUT_SIZES).includes(this.size)) {
3273
+ if (this.isDefaultSize || !this.isValidSize) {
2545
3274
  return '';
2546
3275
  }
2547
3276
 
2548
3277
  return `d-${this.inputComponent}--${this.size}`;
2549
- },
2550
-
2551
- labelSizeModifierClass() {
2552
- if (this.isDefaultSize || !Object.values(INPUT_SIZES).includes(this.size)) {
2553
- return '';
2554
- }
2555
-
2556
- return `d-label--${this.size}`;
2557
- },
2558
-
2559
- descriptionSizeModifierClass() {
2560
- if (this.isDefaultSize || !Object.values(DESCRIPTION_SIZE_TYPES).includes(this.size)) {
2561
- return '';
2562
- }
2563
-
2564
- return `d-description--${this.size}`;
2565
- }
3278
+ }
2566
3279
 
2567
3280
  },
2568
3281
  methods: {
@@ -2579,8 +3292,10 @@ const MessagesMixin = {
2579
3292
  },
2580
3293
 
2581
3294
  onBlur(e) {
3295
+ var _this$$refs$container;
3296
+
2582
3297
  // Do not emit a blur event if the target element is a child of this component
2583
- if (!this.$refs.container.contains(e.relatedTarget)) {
3298
+ if (!((_this$$refs$container = this.$refs.container) !== null && _this$$refs$container !== void 0 && _this$$refs$container.contains(e.relatedTarget))) {
2584
3299
  this.$emit('blur', e);
2585
3300
  }
2586
3301
  },
@@ -2620,8 +3335,8 @@ const MessagesMixin = {
2620
3335
 
2621
3336
  var input_component = normalizeComponent(
2622
3337
  input_inputvue_type_script_lang_js_,
2623
- inputvue_type_template_id_4ecb5bb6_render,
2624
- inputvue_type_template_id_4ecb5bb6_staticRenderFns,
3338
+ inputvue_type_template_id_4e7e7271_render,
3339
+ inputvue_type_template_id_4e7e7271_staticRenderFns,
2625
3340
  false,
2626
3341
  null,
2627
3342
  null,
@@ -2633,7 +3348,7 @@ var input_component = normalizeComponent(
2633
3348
  // CONCATENATED MODULE: ./components/input/index.js
2634
3349
 
2635
3350
 
2636
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"59098857-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&
3351
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1b85754c-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&
2637
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)}
2638
3353
  var input_groupvue_type_template_id_34acc7c9_staticRenderFns = []
2639
3354
 
@@ -2928,23 +3643,27 @@ var input_group_component = normalizeComponent(
2928
3643
  /* harmony default export */ var input_group_input_group = (input_group_component.exports);
2929
3644
  // CONCATENATED MODULE: ./components/input_group/index.js
2930
3645
 
2931
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"59098857-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=7d597133&
2932
- var modalvue_type_template_id_7d597133_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.modalClasses,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)])}
2933
- var modalvue_type_template_id_7d597133_staticRenderFns = []
3646
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1b85754c-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 = []
2934
3653
 
2935
3654
 
2936
- // CONCATENATED MODULE: ./components/modal/modal.vue?vue&type=template&id=7d597133&
3655
+ // CONCATENATED MODULE: ./components/modal/modal.vue?vue&type=template&id=055b70f4&
2937
3656
 
2938
3657
  // CONCATENATED MODULE: ./components/modal/modal_constants.js
2939
3658
  // Modal style modifiers
2940
3659
  const MODAL_KIND_MODIFIERS = {
2941
3660
  default: '',
2942
- danger: 'danger'
3661
+ danger: 'd-modal--danger'
2943
3662
  }; // Modal size modifiers
2944
3663
 
2945
3664
  const MODAL_SIZE_MODIFIERS = {
2946
3665
  default: '',
2947
- full: 'full'
3666
+ full: 'd-modal--full'
2948
3667
  };
2949
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&
2950
3669
  //
@@ -3021,6 +3740,11 @@ const MODAL_SIZE_MODIFIERS = {
3021
3740
  //
3022
3741
  //
3023
3742
  //
3743
+ //
3744
+ //
3745
+ //
3746
+ //
3747
+ //
3024
3748
 
3025
3749
 
3026
3750
 
@@ -3100,8 +3824,8 @@ const MODAL_SIZE_MODIFIERS = {
3100
3824
  */
3101
3825
  kind: {
3102
3826
  type: String,
3103
- default: '',
3104
- validator: k => Object.values(MODAL_KIND_MODIFIERS).includes(k)
3827
+ default: 'default',
3828
+ validator: k => Object.keys(MODAL_KIND_MODIFIERS).includes(k)
3105
3829
  },
3106
3830
 
3107
3831
  /**
@@ -3111,8 +3835,8 @@ const MODAL_SIZE_MODIFIERS = {
3111
3835
  */
3112
3836
  size: {
3113
3837
  type: String,
3114
- default: '',
3115
- validator: s => Object.values(MODAL_SIZE_MODIFIERS).includes(s)
3838
+ default: 'default',
3839
+ validator: s => Object.keys(MODAL_SIZE_MODIFIERS).includes(s)
3116
3840
  },
3117
3841
 
3118
3842
  /**
@@ -3125,6 +3849,14 @@ const MODAL_SIZE_MODIFIERS = {
3125
3849
  default: ''
3126
3850
  }
3127
3851
  },
3852
+
3853
+ data() {
3854
+ return {
3855
+ MODAL_KIND_MODIFIERS: MODAL_KIND_MODIFIERS,
3856
+ MODAL_SIZE_MODIFIERS: MODAL_SIZE_MODIFIERS
3857
+ };
3858
+ },
3859
+
3128
3860
  computed: {
3129
3861
  open() {
3130
3862
  return `${!this.show}`;
@@ -3132,14 +3864,6 @@ const MODAL_SIZE_MODIFIERS = {
3132
3864
 
3133
3865
  hasFooterSlot() {
3134
3866
  return !!this.$slots.footer;
3135
- },
3136
-
3137
- modalClasses() {
3138
- return [{
3139
- 'd-modal': true,
3140
- [`d-modal--${this.kind}`]: this.kind,
3141
- [`d-modal--${this.size}`]: this.size
3142
- }, this.modalClass];
3143
3867
  }
3144
3868
 
3145
3869
  },
@@ -3200,8 +3924,8 @@ const MODAL_SIZE_MODIFIERS = {
3200
3924
 
3201
3925
  var modal_component = normalizeComponent(
3202
3926
  modal_modalvue_type_script_lang_js_,
3203
- modalvue_type_template_id_7d597133_render,
3204
- modalvue_type_template_id_7d597133_staticRenderFns,
3927
+ modalvue_type_template_id_055b70f4_render,
3928
+ modalvue_type_template_id_055b70f4_staticRenderFns,
3205
3929
  false,
3206
3930
  null,
3207
3931
  null,
@@ -3213,7 +3937,7 @@ var modal_component = normalizeComponent(
3213
3937
  // CONCATENATED MODULE: ./components/modal/index.js
3214
3938
 
3215
3939
 
3216
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"59098857-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&
3940
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1b85754c-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&
3217
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)])}
3218
3942
  var lazy_showvue_type_template_id_25b42290_staticRenderFns = []
3219
3943
 
@@ -3296,7 +4020,7 @@ var lazy_show_component = normalizeComponent(
3296
4020
  /* harmony default export */ var lazy_show = (lazy_show_component.exports);
3297
4021
  // CONCATENATED MODULE: ./components/lazy_show/index.js
3298
4022
 
3299
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"59098857-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=2154a8d5&
4023
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1b85754c-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=2154a8d5&
3300
4024
  var list_sectionvue_type_template_id_2154a8d5_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-border-color--ash-darker',
3301
4025
  { 'd-border-bottom': _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)}
3302
4026
  var list_sectionvue_type_template_id_2154a8d5_staticRenderFns = []
@@ -3475,7 +4199,7 @@ var list_section_component = normalizeComponent(
3475
4199
  /* harmony default export */ var list_section = (list_section_component.exports);
3476
4200
  // CONCATENATED MODULE: ./components/list_section/index.js
3477
4201
 
3478
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"59098857-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=6b1bb1b9&
4202
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1b85754c-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=6b1bb1b9&
3479
4203
  var list_itemvue_type_template_id_6b1bb1b9_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',
3480
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)}
3481
4205
  var list_itemvue_type_template_id_6b1bb1b9_staticRenderFns = []
@@ -3561,12 +4285,12 @@ var list_item_component = normalizeComponent(
3561
4285
  /* harmony default export */ var list_item = (list_item_component.exports);
3562
4286
  // CONCATENATED MODULE: ./components/list_item/index.js
3563
4287
 
3564
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"59098857-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=5dec1a72&
3565
- var noticevue_type_template_id_5dec1a72_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('aside',_vm._g({class:_vm.noticeClass,attrs:{"role":_vm.role}},_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},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)}
3566
- var noticevue_type_template_id_5dec1a72_staticRenderFns = []
4288
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1b85754c-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 = []
3567
4291
 
3568
4292
 
3569
- // CONCATENATED MODULE: ./components/notice/notice.vue?vue&type=template&id=5dec1a72&
4293
+ // CONCATENATED MODULE: ./components/notice/notice.vue?vue&type=template&id=f94c040c&
3570
4294
 
3571
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&
3572
4296
  //
@@ -3606,6 +4330,7 @@ var noticevue_type_template_id_5dec1a72_staticRenderFns = []
3606
4330
  //
3607
4331
  //
3608
4332
  //
4333
+ //
3609
4334
 
3610
4335
 
3611
4336
 
@@ -3644,6 +4369,21 @@ var noticevue_type_template_id_5dec1a72_staticRenderFns = []
3644
4369
  default: ''
3645
4370
  },
3646
4371
 
4372
+ /**
4373
+ * Provides a role for the notice. 'status' is used to communicate a message. 'alert' is used to communicate an
4374
+ * important message that does not contain any interactive elements. 'alertdialog' is used to communicate an
4375
+ * important message that does contain interactive elements.
4376
+ */
4377
+ role: {
4378
+ type: String,
4379
+ default: 'status',
4380
+
4381
+ validate(role) {
4382
+ return NOTICE_ROLES.includes(role);
4383
+ }
4384
+
4385
+ },
4386
+
3647
4387
  /**
3648
4388
  * Used in scenarios where the message needs to visually dominate the screen.
3649
4389
  * This will also change the aria role from status to alert.
@@ -3687,10 +4427,6 @@ var noticevue_type_template_id_5dec1a72_staticRenderFns = []
3687
4427
  return ['d-notice', `d-notice--${this.kind}`, {
3688
4428
  'd-notice--important': this.important
3689
4429
  }];
3690
- },
3691
-
3692
- role() {
3693
- return this.important ? 'alert' : 'status';
3694
4430
  }
3695
4431
 
3696
4432
  }
@@ -3707,8 +4443,8 @@ var noticevue_type_template_id_5dec1a72_staticRenderFns = []
3707
4443
 
3708
4444
  var notice_component = normalizeComponent(
3709
4445
  notice_noticevue_type_script_lang_js_,
3710
- noticevue_type_template_id_5dec1a72_render,
3711
- noticevue_type_template_id_5dec1a72_staticRenderFns,
4446
+ noticevue_type_template_id_f94c040c_render,
4447
+ noticevue_type_template_id_f94c040c_staticRenderFns,
3712
4448
  false,
3713
4449
  null,
3714
4450
  null,
@@ -3720,28 +4456,29 @@ var notice_component = normalizeComponent(
3720
4456
  // CONCATENATED MODULE: ./components/notice/index.js
3721
4457
 
3722
4458
 
3723
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"59098857-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=ec1d0844&
3724
- var popovervue_type_template_id_ec1d0844_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-p-relative dt-popover"},[_c('div',{ref:"anchor",attrs:{"id":!_vm.ariaLabelledby && _vm.labelledBy}},[_vm._t("anchor",null,{"attrs":{
4459
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1b85754c-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":{
3725
4461
  'aria-expanded': _vm.open.toString(),
3726
4462
  'aria-controls': _vm.id,
3727
4463
  'aria-haspopup': _vm.role,
3728
4464
  }})],2),_c('dt-lazy-show',_vm._g({ref:"container",class:[
3729
- 'd-border',
3730
- 'd-border-color--ash-dark',
3731
- 'd-border-radius--sm',
3732
- 'd-bgc-white d-box-shadow--md',
4465
+ 'd-ba',
4466
+ 'd-bc-black-075',
4467
+ 'd-bar4',
4468
+ 'd-bgc-white',
4469
+ 'd-bs-md',
3733
4470
  'd-mt4',
3734
4471
  'd-ps-absolute',
3735
- 'd-z-index--popover',
4472
+ 'd-zi-popover',
3736
4473
  'dt-popover__content',
3737
4474
  ("dt-popover__content--align-" + _vm.alignment),
3738
4475
  ("dt-popover__content--valign-" + _vm.verticalAlignment),
3739
4476
  ("dt-popover__content--pad-" + _vm.padding),
3740
- _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-border-top d-border-left d-border-color--ash-dark dt-popover__caret"}):_vm._e()],2)],1)}
3741
- var popovervue_type_template_id_ec1d0844_staticRenderFns = []
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 = []
3742
4479
 
3743
4480
 
3744
- // CONCATENATED MODULE: ./components/popover/popover.vue?vue&type=template&id=ec1d0844&
4481
+ // CONCATENATED MODULE: ./components/popover/popover.vue?vue&type=template&id=34e0d8ea&
3745
4482
 
3746
4483
  // CONCATENATED MODULE: ./components/popover/popover_constants.js
3747
4484
  const POPOVER_PADDING_CLASSES = ['none', 'small', 'medium', 'large'];
@@ -3811,6 +4548,7 @@ var v_click_outside_umd_default = /*#__PURE__*/__webpack_require__.n(v_click_out
3811
4548
  //
3812
4549
  //
3813
4550
  //
4551
+ //
3814
4552
 
3815
4553
 
3816
4554
 
@@ -4111,8 +4849,8 @@ var popovervue_type_style_index_0_lang_less_ = __webpack_require__("e0bf");
4111
4849
 
4112
4850
  var popover_component = normalizeComponent(
4113
4851
  popover_popovervue_type_script_lang_js_,
4114
- popovervue_type_template_id_ec1d0844_render,
4115
- popovervue_type_template_id_ec1d0844_staticRenderFns,
4852
+ popovervue_type_template_id_34e0d8ea_render,
4853
+ popovervue_type_template_id_34e0d8ea_staticRenderFns,
4116
4854
  false,
4117
4855
  null,
4118
4856
  null,
@@ -4124,12 +4862,12 @@ var popover_component = normalizeComponent(
4124
4862
  // CONCATENATED MODULE: ./components/popover/index.js
4125
4863
 
4126
4864
 
4127
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"59098857-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=7572bdc7&
4128
- var radiovue_type_template_id_7572bdc7_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-radio__description', _vm.descriptionValidationClass, _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)])])}
4129
- var radiovue_type_template_id_7572bdc7_staticRenderFns = []
4865
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1b85754c-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 = []
4130
4868
 
4131
4869
 
4132
- // CONCATENATED MODULE: ./components/radio/radio.vue?vue&type=template&id=7572bdc7&
4870
+ // CONCATENATED MODULE: ./components/radio/radio.vue?vue&type=template&id=6ab0a459&
4133
4871
 
4134
4872
  // CONCATENATED MODULE: ./components/radio/radio_constants.js
4135
4873
  const RADIO_INPUT_VALIDATION_CLASSES = {
@@ -4137,14 +4875,8 @@ const RADIO_INPUT_VALIDATION_CLASSES = {
4137
4875
  error: 'd-radio--error',
4138
4876
  success: 'd-radio--success'
4139
4877
  };
4140
- const RADIO_DESCRIPTION_VALIDATION_CLASSES = {
4141
- warning: 'd-radio__description--warning',
4142
- error: 'd-radio__description--error',
4143
- success: 'd-radio__description--success'
4144
- };
4145
4878
  /* harmony default export */ var radio_constants = ({
4146
- RADIO_INPUT_VALIDATION_CLASSES,
4147
- RADIO_DESCRIPTION_VALIDATION_CLASSES
4879
+ RADIO_INPUT_VALIDATION_CLASSES
4148
4880
  });
4149
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&
4150
4882
  //
@@ -4219,10 +4951,6 @@ const RADIO_DESCRIPTION_VALIDATION_CLASSES = {
4219
4951
  return RADIO_INPUT_VALIDATION_CLASSES[this.internalValidationState];
4220
4952
  },
4221
4953
 
4222
- descriptionValidationClass() {
4223
- return RADIO_DESCRIPTION_VALIDATION_CLASSES[this.internalValidationState];
4224
- },
4225
-
4226
4954
  radioGroupValue() {
4227
4955
  var _this$groupContext;
4228
4956
 
@@ -4284,8 +5012,8 @@ const RADIO_DESCRIPTION_VALIDATION_CLASSES = {
4284
5012
 
4285
5013
  var radio_component = normalizeComponent(
4286
5014
  radio_radiovue_type_script_lang_js_,
4287
- radiovue_type_template_id_7572bdc7_render,
4288
- radiovue_type_template_id_7572bdc7_staticRenderFns,
5015
+ radiovue_type_template_id_6ab0a459_render,
5016
+ radiovue_type_template_id_6ab0a459_staticRenderFns,
4289
5017
  false,
4290
5018
  null,
4291
5019
  null,
@@ -4356,34 +5084,1474 @@ var radio_component = normalizeComponent(
4356
5084
 
4357
5085
  },
4358
5086
  methods: {
4359
- /*
4360
- * provided value to support 2 way binding for slotted radios.
4361
- * slotted radios will change this value and need to emit new value up.
4362
- */
4363
- setGroupValue(newValue) {
4364
- this.$emit('input', newValue);
5087
+ /*
5088
+ * provided value to support 2 way binding for slotted radios.
5089
+ * slotted radios will change this value and need to emit new value up.
5090
+ */
5091
+ setGroupValue(newValue) {
5092
+ this.$emit('input', newValue);
5093
+ },
5094
+
5095
+ getMessageKey(type, index) {
5096
+ return `radio-group-message-${type}-${index}-${this.id}`;
5097
+ }
5098
+
5099
+ }
5100
+ });
5101
+ // CONCATENATED MODULE: ./components/radio_group/radio_group.vue?vue&type=script&lang=js&
5102
+ /* harmony default export */ var radio_group_radio_groupvue_type_script_lang_js_ = (radio_groupvue_type_script_lang_js_);
5103
+ // CONCATENATED MODULE: ./components/radio_group/radio_group.vue
5104
+ var radio_group_render, radio_group_staticRenderFns
5105
+
5106
+
5107
+
5108
+
5109
+ /* normalize component */
5110
+
5111
+ var radio_group_component = normalizeComponent(
5112
+ radio_group_radio_groupvue_type_script_lang_js_,
5113
+ radio_group_render,
5114
+ radio_group_staticRenderFns,
5115
+ false,
5116
+ null,
5117
+ null,
5118
+ null
5119
+
5120
+ )
5121
+
5122
+ /* harmony default export */ var radio_group = (radio_group_component.exports);
5123
+ // CONCATENATED MODULE: ./components/radio_group/index.js
5124
+
5125
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1b85754c-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 = []
5133
+
5134
+
5135
+ // CONCATENATED MODULE: ./components/tabs/tab_group.vue?vue&type=template&id=27640e10&
5136
+
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'
5141
+ };
5142
+ const TAB_LIST_KIND_MODIFIERS = {
5143
+ inverted: 'd-tablist--inverted'
5144
+ };
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&
5152
+ //
5153
+ //
5154
+ //
5155
+ //
5156
+ //
5157
+ //
5158
+ //
5159
+ //
5160
+ //
5161
+ //
5162
+ //
5163
+ //
5164
+ //
5165
+ //
5166
+ //
5167
+ //
5168
+ //
5169
+ //
5170
+ //
5171
+ //
5172
+ //
5173
+ //
5174
+ //
5175
+ //
5176
+ //
5177
+ //
5178
+ //
5179
+ //
5180
+ //
5181
+ //
5182
+
5183
+ /* harmony default export */ var tab_groupvue_type_script_lang_js_ = ({
5184
+ name: 'DtTabGroup',
5185
+
5186
+ provide() {
5187
+ return {
5188
+ groupContext: this.provideObj,
5189
+ changeContentPanel: this.changeContentPanel,
5190
+ setFocus: this.setFocus
5191
+ };
5192
+ },
5193
+
5194
+ props: {
5195
+ /**
5196
+ * Identifies the tab group
5197
+ */
5198
+ label: {
5199
+ type: String,
5200
+ default: ''
5201
+ },
5202
+
5203
+ /**
5204
+ * The id of the selected tab panel which should be displayed
5205
+ */
5206
+ selected: {
5207
+ type: String,
5208
+ default: ''
5209
+ },
5210
+
5211
+ /**
5212
+ * If true, disables the tab group
5213
+ */
5214
+ disabled: {
5215
+ type: Boolean,
5216
+ default: false
5217
+ },
5218
+
5219
+ /**
5220
+ * If true, applies inverted styles to the tab group
5221
+ */
5222
+ inverted: {
5223
+ type: Boolean,
5224
+ default: false
5225
+ },
5226
+
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
+ }
5245
+
5246
+ }
5247
+ },
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
+ };
5263
+ },
5264
+
5265
+ watch: {
5266
+ disabled: {
5267
+ immediate: true,
5268
+
5269
+ handler() {
5270
+ this.provideObj.disabled = this.disabled;
5271
+ }
5272
+
5273
+ }
5274
+ },
5275
+
5276
+ mounted() {
5277
+ this.updateSelected();
5278
+ },
5279
+
5280
+ beforeUpdate() {
5281
+ this.updateSelected();
5282
+ },
5283
+
5284
+ methods: {
5285
+ updateSelected() {
5286
+ /**
5287
+ * Prevent override tab selected by default
5288
+ */
5289
+ if (!this.provideObj.selected) {
5290
+ this.provideObj.selected = this.selected;
5291
+ }
5292
+
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();
5397
+ }
5398
+
5399
+ }
5400
+ });
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
5404
+
5405
+
5406
+
5407
+
5408
+
5409
+ /* normalize component */
5410
+
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,
5415
+ false,
5416
+ null,
5417
+ null,
5418
+ null
5419
+
5420
+ )
5421
+
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":"1b85754c-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 = []
5431
+
5432
+
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
+ //
5462
+
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: {
5472
+ /**
5473
+ * Id of the tab
5474
+ */
5475
+ id: {
5476
+ type: String,
5477
+ required: true
5478
+ },
5479
+
5480
+ /**
5481
+ * Id of the associated content panel
5482
+ */
5483
+ panelId: {
5484
+ type: String,
5485
+ required: true
5486
+ },
5487
+
5488
+ /**
5489
+ * Describes the tab
5490
+ */
5491
+ label: {
5492
+ type: String,
5493
+ default: ''
5494
+ },
5495
+
5496
+ /**
5497
+ * Controls the state of the tab
5498
+ */
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: ''
5518
+ }
5519
+ },
5520
+
5521
+ data() {
5522
+ return {
5523
+ TAB_IMPORTANCE_MODIFIERS: TAB_IMPORTANCE_MODIFIERS
5524
+ };
5525
+ },
5526
+
5527
+ computed: {
5528
+ isSelected() {
5529
+ return this.groupContext.selected === this.panelId;
5530
+ }
5531
+
5532
+ },
5533
+
5534
+ mounted() {
5535
+ this.setSelectedPanelByDefault();
5536
+ },
5537
+
5538
+ methods: {
5539
+ setSelectedPanelByDefault() {
5540
+ if (this.selected) {
5541
+ this.selectPanel(true);
5542
+ }
5543
+ },
5544
+
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":"1b85754c-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,
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 = []
5583
+
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;
5647
+ }
5648
+
5649
+ }
5650
+ });
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
+
5655
+
5656
+
5657
+
5658
+
5659
+ /* normalize component */
5660
+
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,
5665
+ false,
5666
+ null,
5667
+ null,
5668
+ null
5669
+
5670
+ )
5671
+
5672
+ /* harmony default export */ var tab_panel = (tab_panel_component.exports);
5673
+ // CONCATENATED MODULE: ./components/tabs/index.js
5674
+
5675
+
5676
+
5677
+
5678
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1b85754c-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":"1b85754c-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":"1b85754c-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);
4365
6532
  },
4366
6533
 
4367
- getMessageKey(type, index) {
4368
- return `radio-group-message-${type}-${index}-${this.id}`;
6534
+ close() {
6535
+ this.hidden = true;
6536
+ clearTimeout(this.displayTimer);
4369
6537
  }
4370
6538
 
4371
6539
  }
4372
6540
  });
4373
- // CONCATENATED MODULE: ./components/radio_group/radio_group.vue?vue&type=script&lang=js&
4374
- /* harmony default export */ var radio_group_radio_groupvue_type_script_lang_js_ = (radio_groupvue_type_script_lang_js_);
4375
- // CONCATENATED MODULE: ./components/radio_group/radio_group.vue
4376
- var radio_group_render, radio_group_staticRenderFns
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
6544
+
4377
6545
 
4378
6546
 
4379
6547
 
4380
6548
 
4381
6549
  /* normalize component */
4382
6550
 
4383
- var radio_group_component = normalizeComponent(
4384
- radio_group_radio_groupvue_type_script_lang_js_,
4385
- radio_group_render,
4386
- radio_group_staticRenderFns,
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,
4387
6555
  false,
4388
6556
  null,
4389
6557
  null,
@@ -4391,35 +6559,33 @@ var radio_group_component = normalizeComponent(
4391
6559
 
4392
6560
  )
4393
6561
 
4394
- /* harmony default export */ var radio_group = (radio_group_component.exports);
4395
- // CONCATENATED MODULE: ./components/radio_group/index.js
4396
-
4397
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"59098857-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=13edc8c6&
4398
- var checkboxvue_type_template_id_13edc8c6_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-checkbox__description', _vm.descriptionValidationClass, _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)])])}
4399
- var checkboxvue_type_template_id_13edc8c6_staticRenderFns = []
6562
+ /* harmony default export */ var toast = (toast_component.exports);
6563
+ // CONCATENATED MODULE: ./components/toast/index.js
4400
6564
 
4401
6565
 
4402
- // CONCATENATED MODULE: ./components/checkbox/checkbox.vue?vue&type=template&id=13edc8c6&
4403
-
4404
- // CONCATENATED MODULE: ./components/checkbox/checkbox_constants.js
4405
- const CHECKBOX_INPUT_VALIDATION_CLASSES = {
4406
- error: 'd-checkbox--error',
4407
- warning: 'd-checkbox--warning',
4408
- success: 'd-checkbox--success'
4409
- };
4410
- const CHECKBOX_DESCRIPTION_VALIDATION_CLASSES = {
4411
- error: 'd-checkbox__description--error',
4412
- warning: 'd-checkbox__description--warning',
4413
- success: 'd-checkbox__description--success'
6566
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1b85754c-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`
4414
6587
  };
4415
- /* harmony default export */ var checkbox_constants = ({
4416
- CHECKBOX_INPUT_VALIDATION_CLASSES,
4417
- CHECKBOX_DESCRIPTION_VALIDATION_CLASSES
4418
- });
4419
- // 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&
4420
- //
4421
- //
4422
- //
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&
4423
6589
  //
4424
6590
  //
4425
6591
  //
@@ -4462,225 +6628,186 @@ const CHECKBOX_DESCRIPTION_VALIDATION_CLASSES = {
4462
6628
  //
4463
6629
  //
4464
6630
  //
4465
- //
4466
- //
4467
- //
4468
- // Imports
4469
6631
 
4470
6632
 
4471
-
4472
- /* harmony default export */ var checkboxvue_type_script_lang_js_ = ({
4473
- name: 'DtCheckbox',
4474
- components: {
4475
- DtValidationMessages: validation_messages
4476
- },
4477
- mixins: [InputMixin, CheckableMixin, GroupableMixin, MessagesMixin],
6633
+ /* harmony default export */ var tooltipvue_type_script_lang_js_ = ({
6634
+ name: 'DtTooltip',
4478
6635
  inheritAttrs: false,
4479
- computed: {
4480
- inputValidationClass() {
4481
- return CHECKBOX_INPUT_VALIDATION_CLASSES[this.internalValidationState];
4482
- },
4483
-
4484
- descriptionValidationClass() {
4485
- return CHECKBOX_DESCRIPTION_VALIDATION_CLASSES[this.internalValidationState];
4486
- },
4487
-
4488
- checkboxGroupValueChecked() {
4489
- var _this$groupContext$se, _this$groupContext, _this$groupContext$se2;
4490
-
4491
- 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;
4492
- },
4493
-
4494
- inputListeners() {
4495
- return {
4496
- /* TODO
4497
- Check if any usages of this component leverage $listeners and either remove if unused or scope the removal
4498
- and migration prior to upgrading to Vue 3.x
4499
- */
4500
- // eslint-disable-next-line vue/no-deprecated-dollar-listeners-api
4501
- ...this.$listeners,
4502
-
4503
- /*
4504
- * Override input listener to as no-op. Prevents parent input listeners from being passed through onto the input
4505
- * element which will result in the hander being called twice (once on the input element and once by the emitted
4506
- * input event by the change listener).
4507
- */
4508
- input: () => {},
4509
- change: event => this.emitValue(event.target.value, event.target.checked)
4510
- };
4511
- }
4512
-
4513
- },
4514
- watch: {
4515
- checkboxGroupValueChecked: {
4516
- immediate: true,
6636
+ props: {
6637
+ /**
6638
+ * The id of the tooltip
6639
+ */
6640
+ id: {
6641
+ type: String,
4517
6642
 
4518
- handler(newCheckboxGroupValueChecked) {
4519
- if (this.hasGroup) {
4520
- // update internal value when the checkbox group value changes
4521
- this.internalChecked = newCheckboxGroupValueChecked;
4522
- }
6643
+ default() {
6644
+ return getUniqueString();
4523
6645
  }
4524
6646
 
4525
- }
4526
- },
4527
- methods: {
4528
- emitValue(value, checked) {
4529
- // update provided value if injected
4530
- this.setGroupValue(value, checked); // emit the state of the checkbox
4531
-
4532
- this.$emit('input', checked);
4533
- }
4534
-
4535
- }
4536
- });
4537
- // CONCATENATED MODULE: ./components/checkbox/checkbox.vue?vue&type=script&lang=js&
4538
- /* harmony default export */ var checkbox_checkboxvue_type_script_lang_js_ = (checkboxvue_type_script_lang_js_);
4539
- // CONCATENATED MODULE: ./components/checkbox/checkbox.vue
4540
-
4541
-
4542
-
4543
-
4544
-
4545
- /* normalize component */
4546
-
4547
- var checkbox_component = normalizeComponent(
4548
- checkbox_checkboxvue_type_script_lang_js_,
4549
- checkboxvue_type_template_id_13edc8c6_render,
4550
- checkboxvue_type_template_id_13edc8c6_staticRenderFns,
4551
- false,
4552
- null,
4553
- null,
4554
- null
4555
-
4556
- )
4557
-
4558
- /* harmony default export */ var checkbox_checkbox = (checkbox_component.exports);
4559
- // CONCATENATED MODULE: ./components/checkbox/index.js
4560
-
4561
- // 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&
4562
-
6647
+ },
4563
6648
 
4564
- /* harmony default export */ var checkbox_groupvue_type_script_lang_js_ = ({
4565
- name: 'DtCheckboxGroup',
4566
- extends: input_group_input_group,
4567
- model: {
4568
- prop: 'selectedValues'
4569
- },
4570
- props: {
4571
6649
  /**
4572
- * Not supported by this component, please use selectedValues
6650
+ * A provided message for the tooltip content
4573
6651
  */
4574
- value: {
4575
- type: [],
4576
- default: null,
4577
- validator: value => {
4578
- if (!value) {
4579
- return true;
4580
- }
4581
-
4582
- 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);
4583
- return false;
4584
- }
6652
+ message: {
6653
+ type: String,
6654
+ default: ''
4585
6655
  },
4586
6656
 
4587
6657
  /**
4588
- * A provided list of selected values(s) for the checkbox group
6658
+ * Describes the preferred placement of the tooltip
4589
6659
  */
4590
- selectedValues: {
4591
- type: Array,
6660
+ arrowDirection: {
6661
+ type: String,
6662
+ default: 'bottom-center',
4592
6663
 
4593
- default() {
4594
- return [];
6664
+ validator(direction) {
6665
+ return TOOLTIP_DIRECTION_MODIFIERS.includes(direction);
4595
6666
  }
4596
6667
 
4597
6668
  },
4598
6669
 
4599
6670
  /**
4600
- * A data qa tag for the radio group
6671
+ * Whether the tooltip should be shown. Anchor can sync on this value
6672
+ * by tooltip wrapper to control the tooltip's visibility.
4601
6673
  */
4602
- dataQaGroup: {
4603
- type: String,
4604
- default: 'checkbox-group'
6674
+ show: {
6675
+ type: Boolean,
6676
+ default: false
4605
6677
  },
4606
6678
 
4607
6679
  /**
4608
- * A data qa tag for the radio group legend
6680
+ * Mode of tooltip to control the tooltip's visibility.
4609
6681
  */
4610
- dataQaGroupLegend: {
4611
- type: String,
4612
- default: 'checkbox-group-legend'
6682
+ hover: {
6683
+ type: Boolean,
6684
+ default: true
4613
6685
  },
4614
6686
 
4615
6687
  /**
4616
- * A data qa tag for the radio group messages
6688
+ * Add inverted class
4617
6689
  */
4618
- dataQaGroupMessages: {
6690
+ inverted: {
6691
+ type: Boolean,
6692
+ default: false
6693
+ },
6694
+
6695
+ /**
6696
+ * This property is needed for focus event
6697
+ */
6698
+ tabIndex: {
4619
6699
  type: String,
4620
- default: 'checkbox-group-messages'
6700
+ default: '0'
4621
6701
  }
4622
6702
  },
4623
6703
 
4624
6704
  data() {
4625
6705
  return {
4626
- internalValue: this.selectedValues,
4627
- // wrap values in object to make reactive
4628
- provideObj: {
4629
- selectedValues: this.selectedValues
4630
- }
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
4631
6715
  };
4632
6716
  },
4633
6717
 
4634
- watch: {
4635
- selectedValues(newSelectedValues) {
4636
- this.internalValue = newSelectedValues;
6718
+ computed: {
6719
+ isTooltipVisible() {
6720
+ if (this.isDismissed) {
6721
+ return false;
6722
+ }
6723
+
6724
+ return this.hover ? this.isHover : this.show;
4637
6725
  },
4638
6726
 
4639
- /*
4640
- * watching value to support 2 way binding for slotted checkboxes.
4641
- * need this to pass value to slotted checkboxes if modified outside
4642
- * checkbox group.
4643
- */
4644
- internalValue(newInternalValue) {
4645
- this.provideObj.selectedValues = newInternalValue;
6727
+ shouldShowTooltip() {
6728
+ return this.isTooltipVisible || this.isChildFocused;
6729
+ },
6730
+
6731
+ shouldHasHoverModifier() {
6732
+ return this.hover && !this.isDismissed && !this.isChildFocused;
6733
+ },
6734
+
6735
+ shouldHasShowModifier() {
6736
+ return this.isChildFocused;
6737
+ },
6738
+
6739
+ ariaHidden() {
6740
+ return `${!this.isTooltipVisible}`;
4646
6741
  }
4647
6742
 
4648
6743
  },
6744
+
6745
+ mounted() {
6746
+ this.initAttributes();
6747
+ },
6748
+
6749
+ beforeUpdate() {
6750
+ this.initAttributes();
6751
+ },
6752
+
4649
6753
  methods: {
4650
- /*
4651
- * provided value to support 2 way binding for slotted checkboxes.
4652
- * slotted checkbox will change this value and need to emit new value up.
4653
- */
4654
- setGroupValue(value, checked) {
4655
- if (!checked) {
4656
- this.internalValue = this.internalValue.filter(checkedValue => checkedValue !== value);
4657
- } else if (!this.internalValue.includes(value)) {
4658
- this.internalValue.push(value);
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);
4659
6768
  }
6769
+ },
4660
6770
 
4661
- this.$emit('input', this.internalValue);
6771
+ hasFocusableAnchorNode() {
6772
+ return !!findFirstFocusableNode(this.$refs.anchor);
4662
6773
  },
4663
6774
 
4664
- getMessageKey(type, index) {
4665
- return `checkbox-group-message-${type}-${index}-${this.id}`;
6775
+ onFocus() {
6776
+ this.onHover();
6777
+ this.isChildFocused = true;
6778
+ },
6779
+
6780
+ onHover() {
6781
+ this.isHover = true;
6782
+ },
6783
+
6784
+ onBlur() {
6785
+ this.isHover = false;
6786
+ this.isDismissed = false;
6787
+ this.isChildFocused = false;
6788
+ },
6789
+
6790
+ onEsc() {
6791
+ this.isDismissed = this.hover && this.isHover || !this.show;
6792
+ this.isChildFocused = false;
4666
6793
  }
4667
6794
 
4668
6795
  }
4669
6796
  });
4670
- // CONCATENATED MODULE: ./components/checkbox_group/checkbox_group.vue?vue&type=script&lang=js&
4671
- /* harmony default export */ var checkbox_group_checkbox_groupvue_type_script_lang_js_ = (checkbox_groupvue_type_script_lang_js_);
4672
- // CONCATENATED MODULE: ./components/checkbox_group/checkbox_group.vue
4673
- var checkbox_group_render, checkbox_group_staticRenderFns
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
6800
+
4674
6801
 
4675
6802
 
4676
6803
 
4677
6804
 
4678
6805
  /* normalize component */
4679
6806
 
4680
- var checkbox_group_component = normalizeComponent(
4681
- checkbox_group_checkbox_groupvue_type_script_lang_js_,
4682
- checkbox_group_render,
4683
- checkbox_group_staticRenderFns,
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,
4684
6811
  false,
4685
6812
  null,
4686
6813
  null,
@@ -4688,8 +6815,9 @@ var checkbox_group_component = normalizeComponent(
4688
6815
 
4689
6816
  )
4690
6817
 
4691
- /* harmony default export */ var checkbox_group = (checkbox_group_component.exports);
4692
- // CONCATENATED MODULE: ./components/checkbox_group/index.js
6818
+ /* harmony default export */ var tooltip = (tooltip_component.exports);
6819
+ // CONCATENATED MODULE: ./components/tooltip/index.js
6820
+
4693
6821
 
4694
6822
  // CONCATENATED MODULE: ./components/mixins/index.js
4695
6823
 
@@ -4708,6 +6836,14 @@ var checkbox_group_component = normalizeComponent(
4708
6836
 
4709
6837
 
4710
6838
 
6839
+
6840
+
6841
+
6842
+
6843
+
6844
+
6845
+
6846
+
4711
6847
 
4712
6848
 
4713
6849
  // Mixins