@dialpad/dialtone-vue 2.18.0 → 2.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dialtone-vue.common.js +271 -0
- package/dist/dialtone-vue.umd.js +271 -0
- package/dist/dialtone-vue.umd.min.js +1 -1
- package/package.json +1 -1
|
@@ -1113,6 +1113,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1113
1113
|
"DtListSection": () => (/* reexport */ list_section),
|
|
1114
1114
|
"DtModal": () => (/* reexport */ modal_modal),
|
|
1115
1115
|
"DtNotice": () => (/* reexport */ notice),
|
|
1116
|
+
"DtPagination": () => (/* reexport */ pagination),
|
|
1116
1117
|
"DtPopover": () => (/* reexport */ popover),
|
|
1117
1118
|
"DtRadio": () => (/* reexport */ radio_radio),
|
|
1118
1119
|
"DtRadioGroup": () => (/* reexport */ radio_group),
|
|
@@ -13679,6 +13680,275 @@ var notice_component = normalizeComponent(
|
|
|
13679
13680
|
;// CONCATENATED MODULE: ./components/notice/index.js
|
|
13680
13681
|
|
|
13681
13682
|
|
|
13683
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/pagination/pagination.vue?vue&type=template&id=3592a77a&
|
|
13684
|
+
var paginationvue_type_template_id_3592a77a_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('nav',{staticClass:"d-d-flex d-fd-row d-gg2 d-ai-center",attrs:{"aria-label":_vm.ariaLabel}},[_c('dt-button',{staticClass:"d-h32 d-w32",attrs:{"data-qa":"dt-pagination-prev","aria-label":_vm.prevAriaLabel,"importance":_vm.isFirstPage ? 'primary' : 'clear',"disabled":_vm.isFirstPage},on:{"click":function($event){return _vm.changePage(_vm.currentPage - 1)}}},[_c('template',{slot:"icon"},[_c('icon-chevron-left')],1)],2),_vm._l((_vm.pages),function(page,index){return _c('div',{key:("page-" + page + "-" + index)},[(isNaN(Number(page)))?_c('div',{staticClass:"d-h32 d-w32 d-d-flex d-ai-center d-jc-center",attrs:{"data-qa":"dt-pagination-separator"}},[_vm._v(" … ")]):_c('dt-button',{staticClass:"d-h32 d-w32",attrs:{"aria-label":_vm.pageNumberAriaLabel(page),"importance":_vm.currentPage === page ? 'primary' : 'clear',"label-class":"d-fs14"},on:{"click":function($event){return _vm.changePage(page)}}},[_vm._v(" "+_vm._s(page)+" ")])],1)}),_c('dt-button',{staticClass:"d-h32 d-w32",attrs:{"data-qa":"dt-pagination-next","aria-label":_vm.nextAriaLabel,"disabled":_vm.isLastPage,"importance":_vm.isLastPage ? 'primary' : 'clear'},on:{"click":function($event){return _vm.changePage(_vm.currentPage + 1)}}},[_c('template',{slot:"icon"},[_c('icon-chevron-right')],1)],2)],2)}
|
|
13685
|
+
var paginationvue_type_template_id_3592a77a_staticRenderFns = []
|
|
13686
|
+
|
|
13687
|
+
|
|
13688
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./node_modules/@dialpad/dialtone/lib/dist/vue/icons/IconChevronLeft.vue?vue&type=template&id=bdbc37f6&
|
|
13689
|
+
var IconChevronLeftvue_type_template_id_bdbc37f6_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__chevronLeft",attrs:{"aria-hidden":"true","aria-label":"Chevron Left","viewBox":"0 0 24 24"}},[_c('path',{attrs:{"d":"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12l4.58-4.59z"}})])}
|
|
13690
|
+
var IconChevronLeftvue_type_template_id_bdbc37f6_staticRenderFns = []
|
|
13691
|
+
|
|
13692
|
+
|
|
13693
|
+
;// CONCATENATED MODULE: ./node_modules/@dialpad/dialtone/lib/dist/vue/icons/IconChevronLeft.vue
|
|
13694
|
+
|
|
13695
|
+
var IconChevronLeft_script = {}
|
|
13696
|
+
|
|
13697
|
+
|
|
13698
|
+
/* normalize component */
|
|
13699
|
+
;
|
|
13700
|
+
var IconChevronLeft_component = normalizeComponent(
|
|
13701
|
+
IconChevronLeft_script,
|
|
13702
|
+
IconChevronLeftvue_type_template_id_bdbc37f6_render,
|
|
13703
|
+
IconChevronLeftvue_type_template_id_bdbc37f6_staticRenderFns,
|
|
13704
|
+
false,
|
|
13705
|
+
null,
|
|
13706
|
+
null,
|
|
13707
|
+
null
|
|
13708
|
+
|
|
13709
|
+
)
|
|
13710
|
+
|
|
13711
|
+
/* harmony default export */ const IconChevronLeft = (IconChevronLeft_component.exports);
|
|
13712
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./node_modules/@dialpad/dialtone/lib/dist/vue/icons/IconChevronRight.vue?vue&type=template&id=c72b3d10&
|
|
13713
|
+
var IconChevronRightvue_type_template_id_c72b3d10_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__chevronRight",attrs:{"aria-hidden":"true","aria-label":"Chevron Right","viewBox":"0 0 24 24"}},[_c('path',{attrs:{"d":"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6-6-6z"}})])}
|
|
13714
|
+
var IconChevronRightvue_type_template_id_c72b3d10_staticRenderFns = []
|
|
13715
|
+
|
|
13716
|
+
|
|
13717
|
+
;// CONCATENATED MODULE: ./node_modules/@dialpad/dialtone/lib/dist/vue/icons/IconChevronRight.vue
|
|
13718
|
+
|
|
13719
|
+
var IconChevronRight_script = {}
|
|
13720
|
+
|
|
13721
|
+
|
|
13722
|
+
/* normalize component */
|
|
13723
|
+
;
|
|
13724
|
+
var IconChevronRight_component = normalizeComponent(
|
|
13725
|
+
IconChevronRight_script,
|
|
13726
|
+
IconChevronRightvue_type_template_id_c72b3d10_render,
|
|
13727
|
+
IconChevronRightvue_type_template_id_c72b3d10_staticRenderFns,
|
|
13728
|
+
false,
|
|
13729
|
+
null,
|
|
13730
|
+
null,
|
|
13731
|
+
null
|
|
13732
|
+
|
|
13733
|
+
)
|
|
13734
|
+
|
|
13735
|
+
/* harmony default export */ const IconChevronRight = (IconChevronRight_component.exports);
|
|
13736
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/pagination/pagination.vue?vue&type=script&lang=js&
|
|
13737
|
+
//
|
|
13738
|
+
//
|
|
13739
|
+
//
|
|
13740
|
+
//
|
|
13741
|
+
//
|
|
13742
|
+
//
|
|
13743
|
+
//
|
|
13744
|
+
//
|
|
13745
|
+
//
|
|
13746
|
+
//
|
|
13747
|
+
//
|
|
13748
|
+
//
|
|
13749
|
+
//
|
|
13750
|
+
//
|
|
13751
|
+
//
|
|
13752
|
+
//
|
|
13753
|
+
//
|
|
13754
|
+
//
|
|
13755
|
+
//
|
|
13756
|
+
//
|
|
13757
|
+
//
|
|
13758
|
+
//
|
|
13759
|
+
//
|
|
13760
|
+
//
|
|
13761
|
+
//
|
|
13762
|
+
//
|
|
13763
|
+
//
|
|
13764
|
+
//
|
|
13765
|
+
//
|
|
13766
|
+
//
|
|
13767
|
+
//
|
|
13768
|
+
//
|
|
13769
|
+
//
|
|
13770
|
+
//
|
|
13771
|
+
//
|
|
13772
|
+
//
|
|
13773
|
+
//
|
|
13774
|
+
//
|
|
13775
|
+
//
|
|
13776
|
+
//
|
|
13777
|
+
//
|
|
13778
|
+
//
|
|
13779
|
+
//
|
|
13780
|
+
//
|
|
13781
|
+
//
|
|
13782
|
+
//
|
|
13783
|
+
//
|
|
13784
|
+
//
|
|
13785
|
+
//
|
|
13786
|
+
//
|
|
13787
|
+
//
|
|
13788
|
+
//
|
|
13789
|
+
//
|
|
13790
|
+
//
|
|
13791
|
+
//
|
|
13792
|
+
//
|
|
13793
|
+
|
|
13794
|
+
|
|
13795
|
+
|
|
13796
|
+
/* harmony default export */ const paginationvue_type_script_lang_js_ = ({
|
|
13797
|
+
name: 'DtPagination',
|
|
13798
|
+
components: {
|
|
13799
|
+
DtButton: button_button,
|
|
13800
|
+
IconChevronLeft: IconChevronLeft,
|
|
13801
|
+
IconChevronRight: IconChevronRight
|
|
13802
|
+
},
|
|
13803
|
+
props: {
|
|
13804
|
+
/**
|
|
13805
|
+
* Descriptive label for the pagination content.
|
|
13806
|
+
*/
|
|
13807
|
+
ariaLabel: {
|
|
13808
|
+
type: String,
|
|
13809
|
+
required: true
|
|
13810
|
+
},
|
|
13811
|
+
|
|
13812
|
+
/**
|
|
13813
|
+
* The total number of the pages
|
|
13814
|
+
*/
|
|
13815
|
+
totalPages: {
|
|
13816
|
+
type: Number,
|
|
13817
|
+
required: true
|
|
13818
|
+
},
|
|
13819
|
+
|
|
13820
|
+
/**
|
|
13821
|
+
* Descriptive label for the previous button.
|
|
13822
|
+
*/
|
|
13823
|
+
prevAriaLabel: {
|
|
13824
|
+
type: String,
|
|
13825
|
+
required: true
|
|
13826
|
+
},
|
|
13827
|
+
|
|
13828
|
+
/**
|
|
13829
|
+
* Descriptive label for the next button.
|
|
13830
|
+
*/
|
|
13831
|
+
nextAriaLabel: {
|
|
13832
|
+
type: String,
|
|
13833
|
+
required: true
|
|
13834
|
+
},
|
|
13835
|
+
|
|
13836
|
+
/**
|
|
13837
|
+
* A method that will be called to get the aria label of each page.
|
|
13838
|
+
*/
|
|
13839
|
+
pageNumberAriaLabel: {
|
|
13840
|
+
type: Function,
|
|
13841
|
+
required: true
|
|
13842
|
+
},
|
|
13843
|
+
|
|
13844
|
+
/**
|
|
13845
|
+
* The active current page in the list of pages, defaults to the first page
|
|
13846
|
+
*/
|
|
13847
|
+
activePage: {
|
|
13848
|
+
type: Number,
|
|
13849
|
+
default: 1
|
|
13850
|
+
},
|
|
13851
|
+
|
|
13852
|
+
/**
|
|
13853
|
+
* Determines the max pages to be shown in the list. Using an odd number is recommended.
|
|
13854
|
+
* If an even number is given, then it will be rounded down to the nearest odd number to always
|
|
13855
|
+
* keep current page in the middle when current page is in the mid-range.
|
|
13856
|
+
*/
|
|
13857
|
+
maxVisible: {
|
|
13858
|
+
type: Number,
|
|
13859
|
+
default: 5
|
|
13860
|
+
}
|
|
13861
|
+
},
|
|
13862
|
+
emits: ['change'],
|
|
13863
|
+
|
|
13864
|
+
data() {
|
|
13865
|
+
return {
|
|
13866
|
+
currentPage: this.activePage
|
|
13867
|
+
};
|
|
13868
|
+
},
|
|
13869
|
+
|
|
13870
|
+
computed: {
|
|
13871
|
+
isFirstPage() {
|
|
13872
|
+
return this.currentPage === 1;
|
|
13873
|
+
},
|
|
13874
|
+
|
|
13875
|
+
isLastPage() {
|
|
13876
|
+
return this.currentPage === this.totalPages;
|
|
13877
|
+
},
|
|
13878
|
+
|
|
13879
|
+
pages() {
|
|
13880
|
+
if (this.maxVisible === 0) {
|
|
13881
|
+
return [];
|
|
13882
|
+
}
|
|
13883
|
+
|
|
13884
|
+
if (this.totalPages <= this.maxVisible) {
|
|
13885
|
+
return this.range(1, this.totalPages);
|
|
13886
|
+
}
|
|
13887
|
+
|
|
13888
|
+
const start = this.maxVisible - 1;
|
|
13889
|
+
const end = this.totalPages - start + 1;
|
|
13890
|
+
|
|
13891
|
+
if (this.currentPage < start) {
|
|
13892
|
+
return [...this.range(1, start), '...', this.totalPages];
|
|
13893
|
+
}
|
|
13894
|
+
|
|
13895
|
+
if (this.currentPage > end) {
|
|
13896
|
+
return [1, '...', ...this.range(end, this.totalPages)];
|
|
13897
|
+
} // rounding to the nearest odd according to the maxlength to always show the page number in the middle.
|
|
13898
|
+
|
|
13899
|
+
|
|
13900
|
+
const total = this.maxVisible - (3 - this.maxVisible % 2);
|
|
13901
|
+
const centerIndex = Math.floor(total / 2);
|
|
13902
|
+
const left = this.currentPage - centerIndex;
|
|
13903
|
+
const right = this.currentPage + centerIndex;
|
|
13904
|
+
return [1, '...', ...this.range(left, right), '...', this.totalPages];
|
|
13905
|
+
}
|
|
13906
|
+
|
|
13907
|
+
},
|
|
13908
|
+
watch: {},
|
|
13909
|
+
methods: {
|
|
13910
|
+
range(from, to) {
|
|
13911
|
+
const range = [];
|
|
13912
|
+
from = from > 0 ? from : 1;
|
|
13913
|
+
|
|
13914
|
+
for (let i = from; i <= to; i++) {
|
|
13915
|
+
range.push(i);
|
|
13916
|
+
}
|
|
13917
|
+
|
|
13918
|
+
return range;
|
|
13919
|
+
},
|
|
13920
|
+
|
|
13921
|
+
changePage(page) {
|
|
13922
|
+
this.currentPage = page;
|
|
13923
|
+
this.$emit('change', this.currentPage);
|
|
13924
|
+
}
|
|
13925
|
+
|
|
13926
|
+
}
|
|
13927
|
+
});
|
|
13928
|
+
;// CONCATENATED MODULE: ./components/pagination/pagination.vue?vue&type=script&lang=js&
|
|
13929
|
+
/* harmony default export */ const pagination_paginationvue_type_script_lang_js_ = (paginationvue_type_script_lang_js_);
|
|
13930
|
+
;// CONCATENATED MODULE: ./components/pagination/pagination.vue
|
|
13931
|
+
|
|
13932
|
+
|
|
13933
|
+
|
|
13934
|
+
|
|
13935
|
+
|
|
13936
|
+
/* normalize component */
|
|
13937
|
+
;
|
|
13938
|
+
var pagination_component = normalizeComponent(
|
|
13939
|
+
pagination_paginationvue_type_script_lang_js_,
|
|
13940
|
+
paginationvue_type_template_id_3592a77a_render,
|
|
13941
|
+
paginationvue_type_template_id_3592a77a_staticRenderFns,
|
|
13942
|
+
false,
|
|
13943
|
+
null,
|
|
13944
|
+
null,
|
|
13945
|
+
null
|
|
13946
|
+
|
|
13947
|
+
)
|
|
13948
|
+
|
|
13949
|
+
/* harmony default export */ const pagination = (pagination_component.exports);
|
|
13950
|
+
;// CONCATENATED MODULE: ./components/pagination/index.js
|
|
13951
|
+
|
|
13682
13952
|
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/radio/radio.vue?vue&type=template&id=1e978b0c&
|
|
13683
13953
|
var radiovue_type_template_id_1e978b0c_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",function(){return [_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",function(){return [_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)])])}
|
|
13684
13954
|
var radiovue_type_template_id_1e978b0c_staticRenderFns = []
|
|
@@ -18289,6 +18559,7 @@ var top_banner_info_component = normalizeComponent(
|
|
|
18289
18559
|
|
|
18290
18560
|
|
|
18291
18561
|
|
|
18562
|
+
|
|
18292
18563
|
|
|
18293
18564
|
|
|
18294
18565
|
/// Recipes
|
package/dist/dialtone-vue.umd.js
CHANGED
|
@@ -1131,6 +1131,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1131
1131
|
"DtListSection": () => (/* reexport */ list_section),
|
|
1132
1132
|
"DtModal": () => (/* reexport */ modal_modal),
|
|
1133
1133
|
"DtNotice": () => (/* reexport */ notice),
|
|
1134
|
+
"DtPagination": () => (/* reexport */ pagination),
|
|
1134
1135
|
"DtPopover": () => (/* reexport */ popover),
|
|
1135
1136
|
"DtRadio": () => (/* reexport */ radio_radio),
|
|
1136
1137
|
"DtRadioGroup": () => (/* reexport */ radio_group),
|
|
@@ -13697,6 +13698,275 @@ var notice_component = normalizeComponent(
|
|
|
13697
13698
|
;// CONCATENATED MODULE: ./components/notice/index.js
|
|
13698
13699
|
|
|
13699
13700
|
|
|
13701
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/pagination/pagination.vue?vue&type=template&id=3592a77a&
|
|
13702
|
+
var paginationvue_type_template_id_3592a77a_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('nav',{staticClass:"d-d-flex d-fd-row d-gg2 d-ai-center",attrs:{"aria-label":_vm.ariaLabel}},[_c('dt-button',{staticClass:"d-h32 d-w32",attrs:{"data-qa":"dt-pagination-prev","aria-label":_vm.prevAriaLabel,"importance":_vm.isFirstPage ? 'primary' : 'clear',"disabled":_vm.isFirstPage},on:{"click":function($event){return _vm.changePage(_vm.currentPage - 1)}}},[_c('template',{slot:"icon"},[_c('icon-chevron-left')],1)],2),_vm._l((_vm.pages),function(page,index){return _c('div',{key:("page-" + page + "-" + index)},[(isNaN(Number(page)))?_c('div',{staticClass:"d-h32 d-w32 d-d-flex d-ai-center d-jc-center",attrs:{"data-qa":"dt-pagination-separator"}},[_vm._v(" … ")]):_c('dt-button',{staticClass:"d-h32 d-w32",attrs:{"aria-label":_vm.pageNumberAriaLabel(page),"importance":_vm.currentPage === page ? 'primary' : 'clear',"label-class":"d-fs14"},on:{"click":function($event){return _vm.changePage(page)}}},[_vm._v(" "+_vm._s(page)+" ")])],1)}),_c('dt-button',{staticClass:"d-h32 d-w32",attrs:{"data-qa":"dt-pagination-next","aria-label":_vm.nextAriaLabel,"disabled":_vm.isLastPage,"importance":_vm.isLastPage ? 'primary' : 'clear'},on:{"click":function($event){return _vm.changePage(_vm.currentPage + 1)}}},[_c('template',{slot:"icon"},[_c('icon-chevron-right')],1)],2)],2)}
|
|
13703
|
+
var paginationvue_type_template_id_3592a77a_staticRenderFns = []
|
|
13704
|
+
|
|
13705
|
+
|
|
13706
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./node_modules/@dialpad/dialtone/lib/dist/vue/icons/IconChevronLeft.vue?vue&type=template&id=bdbc37f6&
|
|
13707
|
+
var IconChevronLeftvue_type_template_id_bdbc37f6_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__chevronLeft",attrs:{"aria-hidden":"true","aria-label":"Chevron Left","viewBox":"0 0 24 24"}},[_c('path',{attrs:{"d":"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12l4.58-4.59z"}})])}
|
|
13708
|
+
var IconChevronLeftvue_type_template_id_bdbc37f6_staticRenderFns = []
|
|
13709
|
+
|
|
13710
|
+
|
|
13711
|
+
;// CONCATENATED MODULE: ./node_modules/@dialpad/dialtone/lib/dist/vue/icons/IconChevronLeft.vue
|
|
13712
|
+
|
|
13713
|
+
var IconChevronLeft_script = {}
|
|
13714
|
+
|
|
13715
|
+
|
|
13716
|
+
/* normalize component */
|
|
13717
|
+
;
|
|
13718
|
+
var IconChevronLeft_component = normalizeComponent(
|
|
13719
|
+
IconChevronLeft_script,
|
|
13720
|
+
IconChevronLeftvue_type_template_id_bdbc37f6_render,
|
|
13721
|
+
IconChevronLeftvue_type_template_id_bdbc37f6_staticRenderFns,
|
|
13722
|
+
false,
|
|
13723
|
+
null,
|
|
13724
|
+
null,
|
|
13725
|
+
null
|
|
13726
|
+
|
|
13727
|
+
)
|
|
13728
|
+
|
|
13729
|
+
/* harmony default export */ const IconChevronLeft = (IconChevronLeft_component.exports);
|
|
13730
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./node_modules/@dialpad/dialtone/lib/dist/vue/icons/IconChevronRight.vue?vue&type=template&id=c72b3d10&
|
|
13731
|
+
var IconChevronRightvue_type_template_id_c72b3d10_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__chevronRight",attrs:{"aria-hidden":"true","aria-label":"Chevron Right","viewBox":"0 0 24 24"}},[_c('path',{attrs:{"d":"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6-6-6z"}})])}
|
|
13732
|
+
var IconChevronRightvue_type_template_id_c72b3d10_staticRenderFns = []
|
|
13733
|
+
|
|
13734
|
+
|
|
13735
|
+
;// CONCATENATED MODULE: ./node_modules/@dialpad/dialtone/lib/dist/vue/icons/IconChevronRight.vue
|
|
13736
|
+
|
|
13737
|
+
var IconChevronRight_script = {}
|
|
13738
|
+
|
|
13739
|
+
|
|
13740
|
+
/* normalize component */
|
|
13741
|
+
;
|
|
13742
|
+
var IconChevronRight_component = normalizeComponent(
|
|
13743
|
+
IconChevronRight_script,
|
|
13744
|
+
IconChevronRightvue_type_template_id_c72b3d10_render,
|
|
13745
|
+
IconChevronRightvue_type_template_id_c72b3d10_staticRenderFns,
|
|
13746
|
+
false,
|
|
13747
|
+
null,
|
|
13748
|
+
null,
|
|
13749
|
+
null
|
|
13750
|
+
|
|
13751
|
+
)
|
|
13752
|
+
|
|
13753
|
+
/* harmony default export */ const IconChevronRight = (IconChevronRight_component.exports);
|
|
13754
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-80[0].rules[0].use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/pagination/pagination.vue?vue&type=script&lang=js&
|
|
13755
|
+
//
|
|
13756
|
+
//
|
|
13757
|
+
//
|
|
13758
|
+
//
|
|
13759
|
+
//
|
|
13760
|
+
//
|
|
13761
|
+
//
|
|
13762
|
+
//
|
|
13763
|
+
//
|
|
13764
|
+
//
|
|
13765
|
+
//
|
|
13766
|
+
//
|
|
13767
|
+
//
|
|
13768
|
+
//
|
|
13769
|
+
//
|
|
13770
|
+
//
|
|
13771
|
+
//
|
|
13772
|
+
//
|
|
13773
|
+
//
|
|
13774
|
+
//
|
|
13775
|
+
//
|
|
13776
|
+
//
|
|
13777
|
+
//
|
|
13778
|
+
//
|
|
13779
|
+
//
|
|
13780
|
+
//
|
|
13781
|
+
//
|
|
13782
|
+
//
|
|
13783
|
+
//
|
|
13784
|
+
//
|
|
13785
|
+
//
|
|
13786
|
+
//
|
|
13787
|
+
//
|
|
13788
|
+
//
|
|
13789
|
+
//
|
|
13790
|
+
//
|
|
13791
|
+
//
|
|
13792
|
+
//
|
|
13793
|
+
//
|
|
13794
|
+
//
|
|
13795
|
+
//
|
|
13796
|
+
//
|
|
13797
|
+
//
|
|
13798
|
+
//
|
|
13799
|
+
//
|
|
13800
|
+
//
|
|
13801
|
+
//
|
|
13802
|
+
//
|
|
13803
|
+
//
|
|
13804
|
+
//
|
|
13805
|
+
//
|
|
13806
|
+
//
|
|
13807
|
+
//
|
|
13808
|
+
//
|
|
13809
|
+
//
|
|
13810
|
+
//
|
|
13811
|
+
|
|
13812
|
+
|
|
13813
|
+
|
|
13814
|
+
/* harmony default export */ const paginationvue_type_script_lang_js_ = ({
|
|
13815
|
+
name: 'DtPagination',
|
|
13816
|
+
components: {
|
|
13817
|
+
DtButton: button_button,
|
|
13818
|
+
IconChevronLeft: IconChevronLeft,
|
|
13819
|
+
IconChevronRight: IconChevronRight
|
|
13820
|
+
},
|
|
13821
|
+
props: {
|
|
13822
|
+
/**
|
|
13823
|
+
* Descriptive label for the pagination content.
|
|
13824
|
+
*/
|
|
13825
|
+
ariaLabel: {
|
|
13826
|
+
type: String,
|
|
13827
|
+
required: true
|
|
13828
|
+
},
|
|
13829
|
+
|
|
13830
|
+
/**
|
|
13831
|
+
* The total number of the pages
|
|
13832
|
+
*/
|
|
13833
|
+
totalPages: {
|
|
13834
|
+
type: Number,
|
|
13835
|
+
required: true
|
|
13836
|
+
},
|
|
13837
|
+
|
|
13838
|
+
/**
|
|
13839
|
+
* Descriptive label for the previous button.
|
|
13840
|
+
*/
|
|
13841
|
+
prevAriaLabel: {
|
|
13842
|
+
type: String,
|
|
13843
|
+
required: true
|
|
13844
|
+
},
|
|
13845
|
+
|
|
13846
|
+
/**
|
|
13847
|
+
* Descriptive label for the next button.
|
|
13848
|
+
*/
|
|
13849
|
+
nextAriaLabel: {
|
|
13850
|
+
type: String,
|
|
13851
|
+
required: true
|
|
13852
|
+
},
|
|
13853
|
+
|
|
13854
|
+
/**
|
|
13855
|
+
* A method that will be called to get the aria label of each page.
|
|
13856
|
+
*/
|
|
13857
|
+
pageNumberAriaLabel: {
|
|
13858
|
+
type: Function,
|
|
13859
|
+
required: true
|
|
13860
|
+
},
|
|
13861
|
+
|
|
13862
|
+
/**
|
|
13863
|
+
* The active current page in the list of pages, defaults to the first page
|
|
13864
|
+
*/
|
|
13865
|
+
activePage: {
|
|
13866
|
+
type: Number,
|
|
13867
|
+
default: 1
|
|
13868
|
+
},
|
|
13869
|
+
|
|
13870
|
+
/**
|
|
13871
|
+
* Determines the max pages to be shown in the list. Using an odd number is recommended.
|
|
13872
|
+
* If an even number is given, then it will be rounded down to the nearest odd number to always
|
|
13873
|
+
* keep current page in the middle when current page is in the mid-range.
|
|
13874
|
+
*/
|
|
13875
|
+
maxVisible: {
|
|
13876
|
+
type: Number,
|
|
13877
|
+
default: 5
|
|
13878
|
+
}
|
|
13879
|
+
},
|
|
13880
|
+
emits: ['change'],
|
|
13881
|
+
|
|
13882
|
+
data() {
|
|
13883
|
+
return {
|
|
13884
|
+
currentPage: this.activePage
|
|
13885
|
+
};
|
|
13886
|
+
},
|
|
13887
|
+
|
|
13888
|
+
computed: {
|
|
13889
|
+
isFirstPage() {
|
|
13890
|
+
return this.currentPage === 1;
|
|
13891
|
+
},
|
|
13892
|
+
|
|
13893
|
+
isLastPage() {
|
|
13894
|
+
return this.currentPage === this.totalPages;
|
|
13895
|
+
},
|
|
13896
|
+
|
|
13897
|
+
pages() {
|
|
13898
|
+
if (this.maxVisible === 0) {
|
|
13899
|
+
return [];
|
|
13900
|
+
}
|
|
13901
|
+
|
|
13902
|
+
if (this.totalPages <= this.maxVisible) {
|
|
13903
|
+
return this.range(1, this.totalPages);
|
|
13904
|
+
}
|
|
13905
|
+
|
|
13906
|
+
const start = this.maxVisible - 1;
|
|
13907
|
+
const end = this.totalPages - start + 1;
|
|
13908
|
+
|
|
13909
|
+
if (this.currentPage < start) {
|
|
13910
|
+
return [...this.range(1, start), '...', this.totalPages];
|
|
13911
|
+
}
|
|
13912
|
+
|
|
13913
|
+
if (this.currentPage > end) {
|
|
13914
|
+
return [1, '...', ...this.range(end, this.totalPages)];
|
|
13915
|
+
} // rounding to the nearest odd according to the maxlength to always show the page number in the middle.
|
|
13916
|
+
|
|
13917
|
+
|
|
13918
|
+
const total = this.maxVisible - (3 - this.maxVisible % 2);
|
|
13919
|
+
const centerIndex = Math.floor(total / 2);
|
|
13920
|
+
const left = this.currentPage - centerIndex;
|
|
13921
|
+
const right = this.currentPage + centerIndex;
|
|
13922
|
+
return [1, '...', ...this.range(left, right), '...', this.totalPages];
|
|
13923
|
+
}
|
|
13924
|
+
|
|
13925
|
+
},
|
|
13926
|
+
watch: {},
|
|
13927
|
+
methods: {
|
|
13928
|
+
range(from, to) {
|
|
13929
|
+
const range = [];
|
|
13930
|
+
from = from > 0 ? from : 1;
|
|
13931
|
+
|
|
13932
|
+
for (let i = from; i <= to; i++) {
|
|
13933
|
+
range.push(i);
|
|
13934
|
+
}
|
|
13935
|
+
|
|
13936
|
+
return range;
|
|
13937
|
+
},
|
|
13938
|
+
|
|
13939
|
+
changePage(page) {
|
|
13940
|
+
this.currentPage = page;
|
|
13941
|
+
this.$emit('change', this.currentPage);
|
|
13942
|
+
}
|
|
13943
|
+
|
|
13944
|
+
}
|
|
13945
|
+
});
|
|
13946
|
+
;// CONCATENATED MODULE: ./components/pagination/pagination.vue?vue&type=script&lang=js&
|
|
13947
|
+
/* harmony default export */ const pagination_paginationvue_type_script_lang_js_ = (paginationvue_type_script_lang_js_);
|
|
13948
|
+
;// CONCATENATED MODULE: ./components/pagination/pagination.vue
|
|
13949
|
+
|
|
13950
|
+
|
|
13951
|
+
|
|
13952
|
+
|
|
13953
|
+
|
|
13954
|
+
/* normalize component */
|
|
13955
|
+
;
|
|
13956
|
+
var pagination_component = normalizeComponent(
|
|
13957
|
+
pagination_paginationvue_type_script_lang_js_,
|
|
13958
|
+
paginationvue_type_template_id_3592a77a_render,
|
|
13959
|
+
paginationvue_type_template_id_3592a77a_staticRenderFns,
|
|
13960
|
+
false,
|
|
13961
|
+
null,
|
|
13962
|
+
null,
|
|
13963
|
+
null
|
|
13964
|
+
|
|
13965
|
+
)
|
|
13966
|
+
|
|
13967
|
+
/* harmony default export */ const pagination = (pagination_component.exports);
|
|
13968
|
+
;// CONCATENATED MODULE: ./components/pagination/index.js
|
|
13969
|
+
|
|
13700
13970
|
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/radio/radio.vue?vue&type=template&id=1e978b0c&
|
|
13701
13971
|
var radiovue_type_template_id_1e978b0c_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",function(){return [_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",function(){return [_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)])])}
|
|
13702
13972
|
var radiovue_type_template_id_1e978b0c_staticRenderFns = []
|
|
@@ -18307,6 +18577,7 @@ var top_banner_info_component = normalizeComponent(
|
|
|
18307
18577
|
|
|
18308
18578
|
|
|
18309
18579
|
|
|
18580
|
+
|
|
18310
18581
|
|
|
18311
18582
|
|
|
18312
18583
|
/// Recipes
|