@aotearoan/neon 28.3.0 → 28.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/feedback/alert/NeonAlert.cjs.js +1 -1
- package/dist/components/feedback/alert/NeonAlert.cjs.js.map +1 -1
- package/dist/components/feedback/alert/NeonAlert.es.js +1 -1
- package/dist/components/feedback/alert/NeonAlert.es.js.map +1 -1
- package/dist/components/feedback/splash-loader/NeonSplashLoader.vue.cjs.js +1 -1
- package/dist/components/feedback/splash-loader/NeonSplashLoader.vue.cjs.js.map +1 -1
- package/dist/components/feedback/splash-loader/NeonSplashLoader.vue.es.js +15 -15
- package/dist/components/feedback/splash-loader/NeonSplashLoader.vue.es.js.map +1 -1
- package/dist/components/layout/card-list/NeonCardList.cjs.js +1 -1
- package/dist/components/layout/card-list/NeonCardList.cjs.js.map +1 -1
- package/dist/components/layout/card-list/NeonCardList.es.js +28 -15
- package/dist/components/layout/card-list/NeonCardList.es.js.map +1 -1
- package/dist/components/layout/card-list/NeonCardList.vue.cjs.js +1 -1
- package/dist/components/layout/card-list/NeonCardList.vue.cjs.js.map +1 -1
- package/dist/components/layout/card-list/NeonCardList.vue.es.js +62 -65
- package/dist/components/layout/card-list/NeonCardList.vue.es.js.map +1 -1
- package/dist/components/layout/list-layout/NeonListLayout.cjs.js +2 -0
- package/dist/components/layout/list-layout/NeonListLayout.cjs.js.map +1 -0
- package/dist/components/layout/list-layout/NeonListLayout.es.js +107 -0
- package/dist/components/layout/list-layout/NeonListLayout.es.js.map +1 -0
- package/dist/components/layout/list-layout/NeonListLayout.vue.cjs.js +2 -0
- package/dist/components/layout/list-layout/NeonListLayout.vue.cjs.js.map +1 -0
- package/dist/components/layout/list-layout/NeonListLayout.vue.es.js +59 -0
- package/dist/components/layout/list-layout/NeonListLayout.vue.es.js.map +1 -0
- package/dist/components/navigation/breadcrumbs/NeonBreadcrumbs.vue.cjs.js +1 -1
- package/dist/components/navigation/breadcrumbs/NeonBreadcrumbs.vue.cjs.js.map +1 -1
- package/dist/components/navigation/breadcrumbs/NeonBreadcrumbs.vue.es.js +10 -10
- package/dist/components/navigation/breadcrumbs/NeonBreadcrumbs.vue.es.js.map +1 -1
- package/dist/components/navigation/pagination/NeonPagination.cjs.js +1 -1
- package/dist/components/navigation/pagination/NeonPagination.cjs.js.map +1 -1
- package/dist/components/navigation/pagination/NeonPagination.es.js +31 -21
- package/dist/components/navigation/pagination/NeonPagination.es.js.map +1 -1
- package/dist/components/navigation/pagination/NeonPagination.vue.cjs.js +1 -1
- package/dist/components/navigation/pagination/NeonPagination.vue.cjs.js.map +1 -1
- package/dist/components/navigation/pagination/NeonPagination.vue.es.js +43 -36
- package/dist/components/navigation/pagination/NeonPagination.vue.es.js.map +1 -1
- package/dist/components/presentation/empty-state/NeonEmptyState.cjs.js +2 -0
- package/dist/components/presentation/empty-state/NeonEmptyState.cjs.js.map +1 -0
- package/dist/components/presentation/empty-state/NeonEmptyState.es.js +62 -0
- package/dist/components/presentation/empty-state/NeonEmptyState.es.js.map +1 -0
- package/dist/components/presentation/empty-state/NeonEmptyState.vue.cjs.js +2 -0
- package/dist/components/presentation/empty-state/NeonEmptyState.vue.cjs.js.map +1 -0
- package/dist/components/presentation/empty-state/NeonEmptyState.vue.es.js +54 -0
- package/dist/components/presentation/empty-state/NeonEmptyState.vue.es.js.map +1 -0
- package/dist/components/presentation/image-carousel/NeonImageCarousel.vue.cjs.js +1 -1
- package/dist/components/presentation/image-carousel/NeonImageCarousel.vue.cjs.js.map +1 -1
- package/dist/components/presentation/image-carousel/NeonImageCarousel.vue.es.js +7 -7
- package/dist/components/presentation/image-carousel/NeonImageCarousel.vue.es.js.map +1 -1
- package/dist/components/user-input/date-picker/NeonDatePicker.vue.cjs.js +1 -1
- package/dist/components/user-input/date-picker/NeonDatePicker.vue.cjs.js.map +1 -1
- package/dist/components/user-input/date-picker/NeonDatePicker.vue.es.js +40 -40
- package/dist/components/user-input/date-picker/NeonDatePicker.vue.es.js.map +1 -1
- package/dist/model/presentation/empty-state/NeonEmptyStateType.cjs.js +2 -0
- package/dist/model/presentation/empty-state/NeonEmptyStateType.cjs.js.map +1 -0
- package/dist/model/presentation/empty-state/NeonEmptyStateType.es.js +5 -0
- package/dist/model/presentation/empty-state/NeonEmptyStateType.es.js.map +1 -0
- package/dist/neon.cjs.js +1 -1
- package/dist/neon.es.js +229 -223
- package/dist/neon.es.js.map +1 -1
- package/dist/src/components/layout/card-list/NeonCardList.d.ts +121 -10
- package/dist/src/components/layout/drawer/NeonDrawer.d.ts +1 -1
- package/dist/src/components/layout/list-layout/NeonListLayout.d.ts +2726 -0
- package/dist/src/components/layout/list-layout/NeonListLayout.vue.d.ts +2 -0
- package/dist/src/components/navigation/pagination/NeonPagination.d.ts +6 -5
- package/dist/src/components/presentation/empty-state/NeonEmptyState.d.ts +613 -0
- package/dist/src/components/presentation/empty-state/NeonEmptyState.vue.d.ts +2 -0
- package/dist/src/model/navigation/pagination/NeonPaginationModel.d.ts +1 -1
- package/dist/src/model/presentation/empty-state/NeonEmptyStateType.d.ts +9 -0
- package/dist/src/model/user-input/button/NeonButtonModel.d.ts +19 -0
- package/dist/src/neon.d.ts +4 -0
- package/package.json +1 -1
- package/src/sass/components/_card-list.scss +19 -0
- package/src/sass/components/_empty-state.scss +47 -0
- package/src/sass/components/_header.scss +2 -0
- package/src/sass/components/_list-layout.scss +37 -0
- package/src/sass/components/_page-container.scss +1 -0
- package/src/sass/components/components.scss +2 -0
- package/src/sass/core/_transitions.scss +15 -0
- package/src/sass/global/base-html.scss +0 -4
- package/src/sass/includes/_dependencies.scss +2 -0
- package/src/sass/theme.scss +8 -0
- package/src/sass/variables-global.scss +7 -0
- package/dist/components/feedback/alert/container/NeonDialogContainer.cjs2.js +0 -2
- package/dist/components/feedback/alert/container/NeonDialogContainer.cjs2.js.map +0 -1
- package/dist/components/feedback/alert/container/NeonDialogContainer.es2.js +0 -25
- package/dist/components/feedback/alert/container/NeonDialogContainer.es2.js.map +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import f from "../../user-input/button/NeonButton.vue.es.js";
|
|
2
|
-
import
|
|
3
|
-
import { defineComponent as
|
|
2
|
+
import d from "../../presentation/icon/NeonIcon.vue.es.js";
|
|
3
|
+
import { defineComponent as v, computed as l } from "vue";
|
|
4
4
|
import { NeonFunctionalColor as P } from "../../../model/common/color/NeonFunctionalColor.es.js";
|
|
5
|
-
const
|
|
5
|
+
const A = v({
|
|
6
6
|
name: "NeonPagination",
|
|
7
7
|
components: {
|
|
8
8
|
NeonButton: f,
|
|
9
|
-
NeonIcon:
|
|
9
|
+
NeonIcon: d
|
|
10
10
|
},
|
|
11
11
|
props: {
|
|
12
12
|
/**
|
|
@@ -17,7 +17,7 @@ const N = d({
|
|
|
17
17
|
* The URL template for the pagination links. The template should contain a '{page}' placeholder that will be
|
|
18
18
|
* substituted in links with the correct page number.
|
|
19
19
|
*/
|
|
20
|
-
urlTemplate: { type: String
|
|
20
|
+
urlTemplate: { type: String },
|
|
21
21
|
/**
|
|
22
22
|
* The number of items per page.
|
|
23
23
|
*/
|
|
@@ -35,37 +35,47 @@ const N = d({
|
|
|
35
35
|
*/
|
|
36
36
|
color: { type: String, default: () => P.Brand }
|
|
37
37
|
},
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
emits: [
|
|
39
|
+
/**
|
|
40
|
+
* Emitted when the user clicks on a page link (useful for paginated lists which are not the main focus of the page,
|
|
41
|
+
* i.e. should not be deep linked).
|
|
42
|
+
*
|
|
43
|
+
* @type {number} The new page number.
|
|
44
|
+
*/
|
|
45
|
+
"page-change"
|
|
46
|
+
],
|
|
47
|
+
setup(t, { emit: o }) {
|
|
48
|
+
const e = l(() => Math.ceil(t.total / t.pageSize)), s = l(() => e.value <= 1), r = l(() => Math.max(t.page - 1, 1)), u = l(() => t.page === 1), g = l(() => Math.min(t.page + 1, e.value)), m = l(() => t.page === e.value), p = l(
|
|
40
49
|
() => e.value > 5 && t.page >= 5
|
|
41
|
-
),
|
|
50
|
+
), y = l(
|
|
42
51
|
() => e.value > 5 && t.page <= e.value - 4
|
|
43
|
-
),
|
|
52
|
+
), c = l(() => {
|
|
44
53
|
if (e.value <= 5)
|
|
45
54
|
return Array.from(Array(e.value).keys()).map((a) => a + 1);
|
|
46
55
|
if (t.page <= e.value / 2) {
|
|
47
|
-
let a = Math.max(t.page - Math.floor(1.5), 1),
|
|
48
|
-
return a === 2 ? (a = 1,
|
|
56
|
+
let a = Math.max(t.page - Math.floor(1.5), 1), n = 3;
|
|
57
|
+
return a === 2 ? (a = 1, n += 1) : a === 3 && (a = 1, n += 2), Array.from(Array(n).keys()).map((i) => a + i);
|
|
49
58
|
} else {
|
|
50
|
-
let a = Math.min(t.page + Math.floor(1.5), e.value),
|
|
51
|
-
return a === e.value - 1 ? (a = e.value,
|
|
59
|
+
let a = Math.min(t.page + Math.floor(1.5), e.value), n = 3;
|
|
60
|
+
return a === e.value - 1 ? (a = e.value, n += 1) : a === e.value - 2 && (a = e.value, n += 2), Array.from(Array(n).keys()).map((i) => a - (n - 1) + i);
|
|
52
61
|
}
|
|
53
62
|
});
|
|
54
63
|
return {
|
|
55
64
|
pageCount: e,
|
|
56
|
-
hidePagination:
|
|
65
|
+
hidePagination: s,
|
|
57
66
|
previousPage: r,
|
|
58
|
-
disabledPrevious:
|
|
59
|
-
nextPage:
|
|
60
|
-
disabledNext:
|
|
67
|
+
disabledPrevious: u,
|
|
68
|
+
nextPage: g,
|
|
69
|
+
disabledNext: m,
|
|
61
70
|
showFirstPageWithEllipsis: p,
|
|
62
|
-
showLastPageWithEllipsis:
|
|
63
|
-
pageRange:
|
|
64
|
-
url: (a) => t.urlTemplate.replace("{page}", a.toString())
|
|
71
|
+
showLastPageWithEllipsis: y,
|
|
72
|
+
pageRange: c,
|
|
73
|
+
url: (a) => t.urlTemplate ? t.urlTemplate.replace("{page}", a.toString()) : void 0,
|
|
74
|
+
emit: o
|
|
65
75
|
};
|
|
66
76
|
}
|
|
67
77
|
});
|
|
68
78
|
export {
|
|
69
|
-
|
|
79
|
+
A as default
|
|
70
80
|
};
|
|
71
81
|
//# sourceMappingURL=NeonPagination.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NeonPagination.es.js","sources":["../../../../src/components/navigation/pagination/NeonPagination.ts?vue&type=script&src=true&lang.ts"],"sourcesContent":["import NeonButton from '@/components/user-input/button/NeonButton.vue';\nimport NeonIcon from '@/components/presentation/icon/NeonIcon.vue';\nimport { computed, defineComponent } from 'vue';\nimport { NeonFunctionalColor } from '@/model/common/color/NeonFunctionalColor';\n\n/**\n * A pagination component that displays a list of page numbers and allows the user to navigate between pages. Typically,\n * the component displays the first and last page numbers and 3 pages before and after the current page.\n */\nexport default defineComponent({\n name: 'NeonPagination',\n components: {\n NeonButton,\n NeonIcon,\n },\n props: {\n /**\n * The current page number.\n */\n page: { type: Number, required: true },\n /**\n * The URL template for the pagination links. The template should contain a '{page}' placeholder that will be\n * substituted in links with the correct page number.\n */\n urlTemplate: { type: String
|
|
1
|
+
{"version":3,"file":"NeonPagination.es.js","sources":["../../../../src/components/navigation/pagination/NeonPagination.ts?vue&type=script&src=true&lang.ts"],"sourcesContent":["import NeonButton from '@/components/user-input/button/NeonButton.vue';\nimport NeonIcon from '@/components/presentation/icon/NeonIcon.vue';\nimport { computed, defineComponent } from 'vue';\nimport { NeonFunctionalColor } from '@/model/common/color/NeonFunctionalColor';\n\n/**\n * A pagination component that displays a list of page numbers and allows the user to navigate between pages. Typically,\n * the component displays the first and last page numbers and 3 pages before and after the current page.\n */\nexport default defineComponent({\n name: 'NeonPagination',\n components: {\n NeonButton,\n NeonIcon,\n },\n props: {\n /**\n * The current page number.\n */\n page: { type: Number, required: true },\n /**\n * The URL template for the pagination links. The template should contain a '{page}' placeholder that will be\n * substituted in links with the correct page number.\n */\n urlTemplate: { type: String },\n /**\n * The number of items per page.\n */\n pageSize: { type: Number, default: 20 },\n /**\n * The total number of items.\n */\n total: { type: Number, required: true },\n /**\n * Whether to display links to the first and last pages.\n */\n displayFirstAndLast: { type: Boolean, default: false },\n /**\n * The accent color of the component.\n */\n color: { type: String as () => NeonFunctionalColor, default: () => NeonFunctionalColor.Brand },\n },\n emits: [\n /**\n * Emitted when the user clicks on a page link (useful for paginated lists which are not the main focus of the page,\n * i.e. should not be deep linked).\n *\n * @type {number} The new page number.\n */\n 'page-change',\n ],\n setup(props, { emit }) {\n const maxDisplayPageLinks = 5;\n const pageDisplayCount = maxDisplayPageLinks - 2;\n\n const pageCount = computed(() => Math.ceil(props.total / props.pageSize));\n const hidePagination = computed(() => pageCount.value <= 1);\n\n const previousPage = computed(() => Math.max(props.page - 1, 1));\n const disabledPrevious = computed(() => props.page === 1);\n\n const nextPage = computed(() => Math.min(props.page + 1, pageCount.value));\n const disabledNext = computed(() => props.page === pageCount.value);\n\n const showFirstPageWithEllipsis = computed(\n () => pageCount.value > maxDisplayPageLinks && props.page >= maxDisplayPageLinks,\n );\n\n const showLastPageWithEllipsis = computed(\n () => pageCount.value > maxDisplayPageLinks && props.page <= pageCount.value - (pageDisplayCount + 1),\n );\n\n const pageRange = computed(() => {\n // not enough pages to fill range, show them all\n if (pageCount.value <= maxDisplayPageLinks) {\n return Array.from(Array(pageCount.value).keys()).map((value) => value + 1);\n }\n\n // determine page range to display\n if (props.page <= pageCount.value / 2) {\n // bottom of range calculation\n let startPage = Math.max(props.page - Math.floor(pageDisplayCount / 2), 1);\n let numPages = pageDisplayCount;\n\n // when the start page would be 2 then also display 1, and if start page is 3 then also display 1 and 2 (no ellipsis)\n if (startPage === 2) {\n startPage = 1;\n numPages += 1;\n } else if (startPage === 3) {\n startPage = 1;\n numPages += 2;\n }\n\n return Array.from(Array(numPages).keys()).map((value) => startPage + value);\n } else {\n // top of range calculation\n let endPage = Math.min(props.page + Math.floor(pageDisplayCount / 2), pageCount.value);\n let numPages = pageDisplayCount;\n\n // when the end page would be pageCount - 1 then also display last page,\n // and if end page is pageCount - 2 then also display last page & second last page (no ellipsis)\n if (endPage === pageCount.value - 1) {\n endPage = pageCount.value;\n numPages += 1;\n } else if (endPage === pageCount.value - 2) {\n endPage = pageCount.value;\n numPages += 2;\n }\n\n return Array.from(Array(numPages).keys()).map((value) => endPage - (numPages - 1) + value);\n }\n });\n\n const url = (page: number) =>\n props.urlTemplate ? props.urlTemplate.replace('{page}', page.toString()) : undefined;\n\n return {\n pageCount,\n hidePagination,\n previousPage,\n disabledPrevious,\n nextPage,\n disabledNext,\n showFirstPageWithEllipsis,\n showLastPageWithEllipsis,\n pageRange,\n url,\n emit,\n };\n },\n});\n"],"names":["_sfc_main","defineComponent","NeonButton","NeonIcon","NeonFunctionalColor","props","emit","pageCount","computed","hidePagination","previousPage","disabledPrevious","nextPage","disabledNext","showFirstPageWithEllipsis","showLastPageWithEllipsis","pageRange","value","startPage","numPages","endPage","page"],"mappings":";;;;AASA,MAAAA,IAAeC,EAAgB;AAAA,EAC7B,MAAM;AAAA,EACN,YAAY;AAAA,IACV,YAAAC;AAAA,IACA,UAAAC;AAAA,EAAA;AAAA,EAEF,OAAO;AAAA;AAAA;AAAA;AAAA,IAIL,MAAM,EAAE,MAAM,QAAQ,UAAU,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAKhC,aAAa,EAAE,MAAM,OAAA;AAAA;AAAA;AAAA;AAAA,IAIrB,UAAU,EAAE,MAAM,QAAQ,SAAS,GAAA;AAAA;AAAA;AAAA;AAAA,IAInC,OAAO,EAAE,MAAM,QAAQ,UAAU,GAAA;AAAA;AAAA;AAAA;AAAA,IAIjC,qBAAqB,EAAE,MAAM,SAAS,SAAS,GAAA;AAAA;AAAA;AAAA;AAAA,IAI/C,OAAO,EAAE,MAAM,QAAqC,SAAS,MAAMC,EAAoB,MAAA;AAAA,EAAM;AAAA,EAE/F,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAOL;AAAA,EAAA;AAAA,EAEF,MAAMC,GAAO,EAAE,MAAAC,KAAQ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,EAAU,OACpBY,KAAY,IAGP,MAAM,KAAK,MAAMA,CAAQ,EAAE,KAAA,CAAM,EAAE,IAAI,CAACF,MAAUG,KAAWD,IAAW,KAAKF,CAAK;AAAA,MAC3F;AAAA,IACF,CAAC;AAKD,WAAO;AAAA,MACL,WAAAV;AAAA,MACA,gBAAAE;AAAA,MACA,cAAAC;AAAA,MACA,kBAAAC;AAAA,MACA,UAAAC;AAAA,MACA,cAAAC;AAAA,MACA,2BAAAC;AAAA,MACA,0BAAAC;AAAA,MACA,WAAAC;AAAA,MACA,KAbU,CAACK,MACXhB,EAAM,cAAcA,EAAM,YAAY,QAAQ,UAAUgB,EAAK,SAAA,CAAU,IAAI;AAAA,MAa3E,MAAAf;AAAA,IAAA;AAAA,EAEJ;AACF,CAAC;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const a=require("./NeonPagination.cjs.js"),
|
|
1
|
+
"use strict";const a=require("./NeonPagination.cjs.js"),n=require("vue"),s=require("../../../_virtual/_plugin-vue_export-helper.cjs.js"),r={class:"neon-pagination__page-links"},p={key:0,class:"neon-pagination__link--selected"};function u(e,o,g,c,k,h){const l=n.resolveComponent("neon-button"),i=n.resolveComponent("neon-icon");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass([[{"neon-pagination--empty":e.hidePagination},`neon-pagination--${e.color}`],"neon-pagination"])},[e.displayFirstAndLast?(n.openBlock(),n.createBlock(l,{key:0,disabled:e.disabledPrevious,href:e.disabledPrevious?void 0:e.url(1),"button-style":"outline",class:"neon-pagination__nav-link neon-pagination__first",color:"high-contrast",icon:"first-page",onClick:o[0]||(o[0]=t=>e.emit("page-change",1))},null,8,["disabled","href"])):n.createCommentVNode("",!0),n.createVNode(l,{disabled:e.disabledPrevious,href:e.disabledPrevious?void 0:e.url(e.previousPage),"button-style":"outline",class:"neon-pagination__nav-link neon-pagination__previous",color:"high-contrast",icon:"chevron-left",onClick:o[1]||(o[1]=t=>e.emit("page-change",e.previousPage))},null,8,["disabled","href"]),n.createElementVNode("div",r,[e.showFirstPageWithEllipsis?(n.openBlock(),n.createBlock(l,{key:0,href:e.url(1),"button-style":"text",class:"neon-pagination__link",color:"high-contrast",label:"1",transparent:"",onClick:o[2]||(o[2]=t=>e.emit("page-change",1))},null,8,["href"])):n.createCommentVNode("",!0),e.showFirstPageWithEllipsis?(n.openBlock(),n.createBlock(i,{key:1,class:"neon-pagination__less",color:"low-contrast",name:"ellipsis"})):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.pageRange,t=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:t},[e.page===t?(n.openBlock(),n.createElementBlock("span",p,n.toDisplayString(t),1)):(n.openBlock(),n.createBlock(l,{key:1,href:e.url(t),label:`${t}`,"button-style":"text",class:"neon-pagination__link",color:"high-contrast",transparent:"",onClick:m=>e.emit("page-change",t)},null,8,["href","label","onClick"]))],64))),128)),e.showLastPageWithEllipsis?(n.openBlock(),n.createBlock(i,{key:2,class:"neon-pagination__more",color:"low-contrast",name:"ellipsis"})):n.createCommentVNode("",!0),e.showLastPageWithEllipsis?(n.openBlock(),n.createBlock(l,{key:3,href:e.url(e.pageCount),label:`${e.pageCount}`,"button-style":"text",class:"neon-pagination__link",color:"high-contrast",transparent:"",onClick:o[3]||(o[3]=t=>e.emit("page-change",e.pageCount))},null,8,["href","label"])):n.createCommentVNode("",!0)]),n.createVNode(l,{disabled:e.disabledNext,href:e.disabledNext?void 0:e.url(e.nextPage),"button-style":"outline",class:"neon-pagination__nav-link neon-pagination__next",color:"high-contrast",icon:"chevron-right",onClick:o[4]||(o[4]=t=>e.emit("page-change",e.nextPage))},null,8,["disabled","href"]),e.displayFirstAndLast?(n.openBlock(),n.createBlock(l,{key:1,disabled:e.disabledNext,href:e.disabledNext?void 0:e.url(e.pageCount),"button-style":"outline",class:"neon-pagination__nav-link neon-pagination__last",color:"high-contrast",icon:"last-page",onClick:o[5]||(o[5]=t=>e.emit("page-change",e.pageCount))},null,8,["disabled","href"])):n.createCommentVNode("",!0)],2)}const d=s(a,[["render",u]]);module.exports=d;
|
|
2
2
|
//# sourceMappingURL=NeonPagination.vue.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NeonPagination.vue.cjs.js","sources":["../../../../src/components/navigation/pagination/NeonPagination.vue"],"sourcesContent":["<template>\n <div\n :class=\"[\n {\n 'neon-pagination--empty': hidePagination,\n },\n `neon-pagination--${color}`,\n ]\"\n class=\"neon-pagination\"\n >\n <neon-button\n v-if=\"displayFirstAndLast\"\n :disabled=\"disabledPrevious\"\n :href=\"!disabledPrevious ? url(1) : undefined\"\n button-style=\"outline\"\n class=\"neon-pagination__nav-link neon-pagination__first\"\n color=\"high-contrast\"\n icon=\"first-page\"\n />\n <neon-button\n :disabled=\"disabledPrevious\"\n :href=\"!disabledPrevious ? url(previousPage) : undefined\"\n button-style=\"outline\"\n class=\"neon-pagination__nav-link neon-pagination__previous\"\n color=\"high-contrast\"\n icon=\"
|
|
1
|
+
{"version":3,"file":"NeonPagination.vue.cjs.js","sources":["../../../../src/components/navigation/pagination/NeonPagination.vue"],"sourcesContent":["<template>\n <div\n :class=\"[\n {\n 'neon-pagination--empty': hidePagination,\n },\n `neon-pagination--${color}`,\n ]\"\n class=\"neon-pagination\"\n >\n <neon-button\n v-if=\"displayFirstAndLast\"\n :disabled=\"disabledPrevious\"\n :href=\"!disabledPrevious ? url(1) : undefined\"\n button-style=\"outline\"\n class=\"neon-pagination__nav-link neon-pagination__first\"\n color=\"high-contrast\"\n icon=\"first-page\"\n @click=\"emit('page-change', 1)\"\n />\n <neon-button\n :disabled=\"disabledPrevious\"\n :href=\"!disabledPrevious ? url(previousPage) : undefined\"\n button-style=\"outline\"\n class=\"neon-pagination__nav-link neon-pagination__previous\"\n color=\"high-contrast\"\n icon=\"chevron-left\"\n @click=\"emit('page-change', previousPage)\"\n />\n <div class=\"neon-pagination__page-links\">\n <neon-button\n v-if=\"showFirstPageWithEllipsis\"\n :href=\"url(1)\"\n button-style=\"text\"\n class=\"neon-pagination__link\"\n color=\"high-contrast\"\n label=\"1\"\n transparent\n @click=\"emit('page-change', 1)\"\n />\n <neon-icon v-if=\"showFirstPageWithEllipsis\" class=\"neon-pagination__less\" color=\"low-contrast\" name=\"ellipsis\" />\n <!-- eslint-disable-next-line -->\n <template v-for=\"pageInRange in pageRange\" :key=\"pageInRange\">\n <span v-if=\"page === pageInRange\" class=\"neon-pagination__link--selected\">\n {{ pageInRange }}\n </span>\n <neon-button\n v-else\n :href=\"url(pageInRange)\"\n :label=\"`${pageInRange}`\"\n button-style=\"text\"\n class=\"neon-pagination__link\"\n color=\"high-contrast\"\n transparent\n @click=\"emit('page-change', pageInRange)\"\n />\n </template>\n <neon-icon v-if=\"showLastPageWithEllipsis\" class=\"neon-pagination__more\" color=\"low-contrast\" name=\"ellipsis\" />\n <neon-button\n v-if=\"showLastPageWithEllipsis\"\n :href=\"url(pageCount)\"\n :label=\"`${pageCount}`\"\n button-style=\"text\"\n class=\"neon-pagination__link\"\n color=\"high-contrast\"\n transparent\n @click=\"emit('page-change', pageCount)\"\n />\n </div>\n <neon-button\n :disabled=\"disabledNext\"\n :href=\"!disabledNext ? url(nextPage) : undefined\"\n button-style=\"outline\"\n class=\"neon-pagination__nav-link neon-pagination__next\"\n color=\"high-contrast\"\n icon=\"chevron-right\"\n @click=\"emit('page-change', nextPage)\"\n />\n <neon-button\n v-if=\"displayFirstAndLast\"\n :disabled=\"disabledNext\"\n :href=\"!disabledNext ? url(pageCount) : undefined\"\n button-style=\"outline\"\n class=\"neon-pagination__nav-link neon-pagination__last\"\n color=\"high-contrast\"\n icon=\"last-page\"\n @click=\"emit('page-change', pageCount)\"\n />\n </div>\n</template>\n\n<script lang=\"ts\" src=\"./NeonPagination.ts\"></script>\n"],"names":["_hoisted_1","_createElementBlock","_normalizeClass","_ctx","_createBlock","_component_neon_button","_createVNode","_cache","$event","_createElementVNode","_component_neon_icon","_Fragment","_ren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C,QAAKL,GAAEL,EAAA,KAAI,cAAgBU,CAAW,oDAG1BV,EAAA,wCAAjBC,EAAAA,YAAgHM,EAAA,OAArE,MAAM,wBAAwB,MAAM,eAAe,KAAK,0CAE3FP,EAAA,wCADRC,EAAAA,YASEC,EAAA,OAPC,KAAMF,EAAA,IAAIA,EAAA,SAAS,EACnB,SAAUA,EAAA,SAAS,GACpB,eAAa,OACb,MAAM,wBACN,MAAM,gBACN,YAAA,GACC,QAAKI,EAAA,CAAA,IAAAA,EAAA,CAAA,EAAAC,GAAEL,EAAA,KAAI,cAAgBA,EAAA,SAAS,4DAGzCG,EAAAA,YAQED,EAAA,CAPC,SAAUF,EAAA,aACV,KAAOA,EAAA,aAA+B,OAAhBA,MAAIA,EAAA,QAAQ,EACnC,eAAa,UACb,MAAM,kDACN,MAAM,gBACN,KAAK,gBACJ,QAAKI,EAAA,CAAA,IAAAA,EAAA,CAAA,EAAAC,GAAEL,EAAA,KAAI,cAAgBA,EAAA,QAAQ,gCAG9BA,EAAA,mCADRC,EAAAA,YASEC,EAAA,OAPC,SAAUF,EAAA,aACV,KAAOA,EAAA,aAAgC,OAAjBA,MAAIA,EAAA,SAAS,EACpC,eAAa,UACb,MAAM,kDACN,MAAM,gBACN,KAAK,YACJ,QAAKI,EAAA,CAAA,IAAAA,EAAA,CAAA,EAAAC,GAAEL,EAAA,KAAI,cAAgBA,EAAA,SAAS"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { resolveComponent as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
1
|
+
import g from "./NeonPagination.es.js";
|
|
2
|
+
import { resolveComponent as p, openBlock as i, createElementBlock as s, normalizeClass as h, createBlock as a, createCommentVNode as t, createVNode as d, createElementVNode as b, Fragment as u, renderList as f, toDisplayString as k } from "vue";
|
|
3
|
+
import m from "../../../_virtual/_plugin-vue_export-helper.es.js";
|
|
4
|
+
const v = { class: "neon-pagination__page-links" }, y = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "neon-pagination__link--selected"
|
|
7
7
|
};
|
|
8
|
-
function
|
|
9
|
-
const
|
|
10
|
-
return
|
|
8
|
+
function C(n, e, P, $, c, N) {
|
|
9
|
+
const l = p("neon-button"), r = p("neon-icon");
|
|
10
|
+
return i(), s("div", {
|
|
11
11
|
class: h([[
|
|
12
12
|
{
|
|
13
13
|
"neon-pagination--empty": n.hidePagination
|
|
@@ -15,87 +15,94 @@ function y(n, _, v, P, w, N) {
|
|
|
15
15
|
`neon-pagination--${n.color}`
|
|
16
16
|
], "neon-pagination"])
|
|
17
17
|
}, [
|
|
18
|
-
n.displayFirstAndLast ? (
|
|
18
|
+
n.displayFirstAndLast ? (i(), a(l, {
|
|
19
19
|
key: 0,
|
|
20
20
|
disabled: n.disabledPrevious,
|
|
21
21
|
href: n.disabledPrevious ? void 0 : n.url(1),
|
|
22
22
|
"button-style": "outline",
|
|
23
23
|
class: "neon-pagination__nav-link neon-pagination__first",
|
|
24
24
|
color: "high-contrast",
|
|
25
|
-
icon: "first-page"
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
icon: "first-page",
|
|
26
|
+
onClick: e[0] || (e[0] = (o) => n.emit("page-change", 1))
|
|
27
|
+
}, null, 8, ["disabled", "href"])) : t("", !0),
|
|
28
|
+
d(l, {
|
|
28
29
|
disabled: n.disabledPrevious,
|
|
29
30
|
href: n.disabledPrevious ? void 0 : n.url(n.previousPage),
|
|
30
31
|
"button-style": "outline",
|
|
31
32
|
class: "neon-pagination__nav-link neon-pagination__previous",
|
|
32
33
|
color: "high-contrast",
|
|
33
|
-
icon: "
|
|
34
|
+
icon: "chevron-left",
|
|
35
|
+
onClick: e[1] || (e[1] = (o) => n.emit("page-change", n.previousPage))
|
|
34
36
|
}, null, 8, ["disabled", "href"]),
|
|
35
|
-
|
|
36
|
-
n.showFirstPageWithEllipsis ? (
|
|
37
|
+
b("div", v, [
|
|
38
|
+
n.showFirstPageWithEllipsis ? (i(), a(l, {
|
|
37
39
|
key: 0,
|
|
38
40
|
href: n.url(1),
|
|
39
41
|
"button-style": "text",
|
|
40
42
|
class: "neon-pagination__link",
|
|
41
43
|
color: "high-contrast",
|
|
42
44
|
label: "1",
|
|
43
|
-
transparent: ""
|
|
44
|
-
|
|
45
|
-
|
|
45
|
+
transparent: "",
|
|
46
|
+
onClick: e[2] || (e[2] = (o) => n.emit("page-change", 1))
|
|
47
|
+
}, null, 8, ["href"])) : t("", !0),
|
|
48
|
+
n.showFirstPageWithEllipsis ? (i(), a(r, {
|
|
46
49
|
key: 1,
|
|
47
50
|
class: "neon-pagination__less",
|
|
48
51
|
color: "low-contrast",
|
|
49
52
|
name: "ellipsis"
|
|
50
|
-
})) :
|
|
51
|
-
(
|
|
52
|
-
n.page ===
|
|
53
|
+
})) : t("", !0),
|
|
54
|
+
(i(!0), s(u, null, f(n.pageRange, (o) => (i(), s(u, { key: o }, [
|
|
55
|
+
n.page === o ? (i(), s("span", y, k(o), 1)) : (i(), a(l, {
|
|
53
56
|
key: 1,
|
|
54
|
-
href: n.url(
|
|
55
|
-
label: `${
|
|
57
|
+
href: n.url(o),
|
|
58
|
+
label: `${o}`,
|
|
56
59
|
"button-style": "text",
|
|
57
60
|
class: "neon-pagination__link",
|
|
58
61
|
color: "high-contrast",
|
|
59
|
-
transparent: ""
|
|
60
|
-
|
|
62
|
+
transparent: "",
|
|
63
|
+
onClick: (w) => n.emit("page-change", o)
|
|
64
|
+
}, null, 8, ["href", "label", "onClick"]))
|
|
61
65
|
], 64))), 128)),
|
|
62
|
-
n.showLastPageWithEllipsis ? (
|
|
66
|
+
n.showLastPageWithEllipsis ? (i(), a(r, {
|
|
63
67
|
key: 2,
|
|
64
68
|
class: "neon-pagination__more",
|
|
65
69
|
color: "low-contrast",
|
|
66
70
|
name: "ellipsis"
|
|
67
|
-
})) :
|
|
68
|
-
n.showLastPageWithEllipsis ? (
|
|
71
|
+
})) : t("", !0),
|
|
72
|
+
n.showLastPageWithEllipsis ? (i(), a(l, {
|
|
69
73
|
key: 3,
|
|
70
74
|
href: n.url(n.pageCount),
|
|
71
75
|
label: `${n.pageCount}`,
|
|
72
76
|
"button-style": "text",
|
|
73
77
|
class: "neon-pagination__link",
|
|
74
78
|
color: "high-contrast",
|
|
75
|
-
transparent: ""
|
|
76
|
-
|
|
79
|
+
transparent: "",
|
|
80
|
+
onClick: e[3] || (e[3] = (o) => n.emit("page-change", n.pageCount))
|
|
81
|
+
}, null, 8, ["href", "label"])) : t("", !0)
|
|
77
82
|
]),
|
|
78
|
-
d(
|
|
83
|
+
d(l, {
|
|
79
84
|
disabled: n.disabledNext,
|
|
80
85
|
href: n.disabledNext ? void 0 : n.url(n.nextPage),
|
|
81
86
|
"button-style": "outline",
|
|
82
87
|
class: "neon-pagination__nav-link neon-pagination__next",
|
|
83
88
|
color: "high-contrast",
|
|
84
|
-
icon: "
|
|
89
|
+
icon: "chevron-right",
|
|
90
|
+
onClick: e[4] || (e[4] = (o) => n.emit("page-change", n.nextPage))
|
|
85
91
|
}, null, 8, ["disabled", "href"]),
|
|
86
|
-
n.displayFirstAndLast ? (
|
|
92
|
+
n.displayFirstAndLast ? (i(), a(l, {
|
|
87
93
|
key: 1,
|
|
88
94
|
disabled: n.disabledNext,
|
|
89
95
|
href: n.disabledNext ? void 0 : n.url(n.pageCount),
|
|
90
96
|
"button-style": "outline",
|
|
91
97
|
class: "neon-pagination__nav-link neon-pagination__last",
|
|
92
98
|
color: "high-contrast",
|
|
93
|
-
icon: "last-page"
|
|
94
|
-
|
|
99
|
+
icon: "last-page",
|
|
100
|
+
onClick: e[5] || (e[5] = (o) => n.emit("page-change", n.pageCount))
|
|
101
|
+
}, null, 8, ["disabled", "href"])) : t("", !0)
|
|
95
102
|
], 2);
|
|
96
103
|
}
|
|
97
|
-
const
|
|
104
|
+
const W = /* @__PURE__ */ m(g, [["render", C]]);
|
|
98
105
|
export {
|
|
99
|
-
|
|
106
|
+
W as default
|
|
100
107
|
};
|
|
101
108
|
//# sourceMappingURL=NeonPagination.vue.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NeonPagination.vue.es.js","sources":["../../../../src/components/navigation/pagination/NeonPagination.vue"],"sourcesContent":["<template>\n <div\n :class=\"[\n {\n 'neon-pagination--empty': hidePagination,\n },\n `neon-pagination--${color}`,\n ]\"\n class=\"neon-pagination\"\n >\n <neon-button\n v-if=\"displayFirstAndLast\"\n :disabled=\"disabledPrevious\"\n :href=\"!disabledPrevious ? url(1) : undefined\"\n button-style=\"outline\"\n class=\"neon-pagination__nav-link neon-pagination__first\"\n color=\"high-contrast\"\n icon=\"first-page\"\n />\n <neon-button\n :disabled=\"disabledPrevious\"\n :href=\"!disabledPrevious ? url(previousPage) : undefined\"\n button-style=\"outline\"\n class=\"neon-pagination__nav-link neon-pagination__previous\"\n color=\"high-contrast\"\n icon=\"
|
|
1
|
+
{"version":3,"file":"NeonPagination.vue.es.js","sources":["../../../../src/components/navigation/pagination/NeonPagination.vue"],"sourcesContent":["<template>\n <div\n :class=\"[\n {\n 'neon-pagination--empty': hidePagination,\n },\n `neon-pagination--${color}`,\n ]\"\n class=\"neon-pagination\"\n >\n <neon-button\n v-if=\"displayFirstAndLast\"\n :disabled=\"disabledPrevious\"\n :href=\"!disabledPrevious ? url(1) : undefined\"\n button-style=\"outline\"\n class=\"neon-pagination__nav-link neon-pagination__first\"\n color=\"high-contrast\"\n icon=\"first-page\"\n @click=\"emit('page-change', 1)\"\n />\n <neon-button\n :disabled=\"disabledPrevious\"\n :href=\"!disabledPrevious ? url(previousPage) : undefined\"\n button-style=\"outline\"\n class=\"neon-pagination__nav-link neon-pagination__previous\"\n color=\"high-contrast\"\n icon=\"chevron-left\"\n @click=\"emit('page-change', previousPage)\"\n />\n <div class=\"neon-pagination__page-links\">\n <neon-button\n v-if=\"showFirstPageWithEllipsis\"\n :href=\"url(1)\"\n button-style=\"text\"\n class=\"neon-pagination__link\"\n color=\"high-contrast\"\n label=\"1\"\n transparent\n @click=\"emit('page-change', 1)\"\n />\n <neon-icon v-if=\"showFirstPageWithEllipsis\" class=\"neon-pagination__less\" color=\"low-contrast\" name=\"ellipsis\" />\n <!-- eslint-disable-next-line -->\n <template v-for=\"pageInRange in pageRange\" :key=\"pageInRange\">\n <span v-if=\"page === pageInRange\" class=\"neon-pagination__link--selected\">\n {{ pageInRange }}\n </span>\n <neon-button\n v-else\n :href=\"url(pageInRange)\"\n :label=\"`${pageInRange}`\"\n button-style=\"text\"\n class=\"neon-pagination__link\"\n color=\"high-contrast\"\n transparent\n @click=\"emit('page-change', pageInRange)\"\n />\n </template>\n <neon-icon v-if=\"showLastPageWithEllipsis\" class=\"neon-pagination__more\" color=\"low-contrast\" name=\"ellipsis\" />\n <neon-button\n v-if=\"showLastPageWithEllipsis\"\n :href=\"url(pageCount)\"\n :label=\"`${pageCount}`\"\n button-style=\"text\"\n class=\"neon-pagination__link\"\n color=\"high-contrast\"\n transparent\n @click=\"emit('page-change', pageCount)\"\n />\n </div>\n <neon-button\n :disabled=\"disabledNext\"\n :href=\"!disabledNext ? url(nextPage) : undefined\"\n button-style=\"outline\"\n class=\"neon-pagination__nav-link neon-pagination__next\"\n color=\"high-contrast\"\n icon=\"chevron-right\"\n @click=\"emit('page-change', nextPage)\"\n />\n <neon-button\n v-if=\"displayFirstAndLast\"\n :disabled=\"disabledNext\"\n :href=\"!disabledNext ? url(pageCount) : undefined\"\n button-style=\"outline\"\n class=\"neon-pagination__nav-link neon-pagination__last\"\n color=\"high-contrast\"\n icon=\"last-page\"\n @click=\"emit('page-change', pageCount)\"\n />\n </div>\n</template>\n\n<script lang=\"ts\" src=\"./NeonPagination.ts\"></script>\n"],"names":["_hoisted_1","_createElementBlock","_normalizeClass","_ctx","_createBlock","_component_neon_button","_createVNode","_cache","$event","_createElementVNode","_component_neon_icon","_Fragment","_renderList","pageInRange","_hoisted_2","_toDisplayString"],"mappings":";;;AA6BS,MAAAA,IAAA,EAAA,OAAM,8BAA6B;;EAcF,OAAM;;;;cA1C9CC,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,UACb,OAAM;AAAA,UACN,OAAM;AAAA,UACN,aAAA;AAAA,UACC,SAAK,CAAAL,MAAEL,EAAA,KAAI,eAAgBU,CAAW;AAAA;;MAG1BV,EAAA,iCAAjBC,EAAgHM,GAAA;AAAA;QAArE,OAAM;AAAA,QAAwB,OAAM;AAAA,QAAe,MAAK;AAAA;MAE3FP,EAAA,iCADRC,EASEC,GAAA;AAAA;QAPC,MAAMF,EAAA,IAAIA,EAAA,SAAS;AAAA,QACnB,UAAUA,EAAA,SAAS;AAAA,QACpB,gBAAa;AAAA,QACb,OAAM;AAAA,QACN,OAAM;AAAA,QACN,aAAA;AAAA,QACC,SAAKI,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA,CAAAC,MAAEL,EAAA,KAAI,eAAgBA,EAAA,SAAS;AAAA;;IAGzCG,EAQED,GAAA;AAAA,MAPC,UAAUF,EAAA;AAAA,MACV,MAAOA,EAAA,eAA+B,SAAhBA,MAAIA,EAAA,QAAQ;AAAA,MACnC,gBAAa;AAAA,MACb,OAAM;AAAA,MACN,OAAM;AAAA,MACN,MAAK;AAAA,MACJ,SAAKI,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA,CAAAC,MAAEL,EAAA,KAAI,eAAgBA,EAAA,QAAQ;AAAA;IAG9BA,EAAA,4BADRC,EASEC,GAAA;AAAA;MAPC,UAAUF,EAAA;AAAA,MACV,MAAOA,EAAA,eAAgC,SAAjBA,MAAIA,EAAA,SAAS;AAAA,MACpC,gBAAa;AAAA,MACb,OAAM;AAAA,MACN,OAAM;AAAA,MACN,MAAK;AAAA,MACJ,SAAKI,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA,CAAAC,MAAEL,EAAA,KAAI,eAAgBA,EAAA,SAAS;AAAA;;;;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const n=require("vue"),o=require("../../user-input/button/NeonButton.vue.cjs.js"),e=require("../../../model/common/color/NeonFunctionalColor.cjs.js"),r=require("../icon/NeonIcon.vue.cjs.js"),i=require("../../layout/inline/NeonInline.vue.cjs.js"),u=require("../../layout/stack/NeonStack.vue.cjs.js"),c=require("../../../model/user-input/button/NeonButtonStyle.cjs.js"),p=require("../../../model/presentation/empty-state/NeonEmptyStateType.cjs.js"),a=n.defineComponent({name:"NeonEmptyState",components:{NeonButton:o,NeonIcon:r,NeonInline:i,NeonStack:u},props:{image:{type:String},type:{type:String,default:()=>p.NeonEmptyStateType.EmptyState},imageColor:{type:String,default:()=>e.NeonFunctionalColor.Brand},title:{type:String,required:!0},subtitle:{type:String},ctas:{type:Array,default:()=>[]}},emits:["cta-click"],setup:(s,{emit:t})=>({emit:t,NeonButtonStyle:c.NeonButtonStyle,NeonFunctionalColor:e.NeonFunctionalColor})});module.exports=a;
|
|
2
|
+
//# sourceMappingURL=NeonEmptyState.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NeonEmptyState.cjs.js","sources":["../../../../src/components/presentation/empty-state/NeonEmptyState.ts?vue&type=script&src=true&lang.ts"],"sourcesContent":["import { defineComponent } from 'vue';\nimport NeonButton from '@/components/user-input/button/NeonButton.vue';\nimport type { NeonButtonModel } from '@/model/user-input/button/NeonButtonModel';\nimport { NeonFunctionalColor } from '@/model/common/color/NeonFunctionalColor';\nimport NeonIcon from '@/components/presentation/icon/NeonIcon.vue';\nimport NeonInline from '@/components/layout/inline/NeonInline.vue';\nimport NeonStack from '@/components/layout/stack/NeonStack.vue';\nimport { NeonButtonStyle } from '@/model/user-input/button/NeonButtonStyle';\nimport { NeonEmptyStateType } from '@/model/presentation/empty-state/NeonEmptyStateType';\n\n/**\n * NeonEmptyState is a component for displaying an empty state message with an image and optional call-to-action buttons.\n * It can also be used to render error pages.\n */\nexport default defineComponent({\n name: 'NeonEmptyState',\n components: {\n NeonButton,\n NeonIcon,\n NeonInline,\n NeonStack,\n },\n props: {\n /**\n * The image to display in the empty state. This is an icon name used by the NeonIcon component, typically an\n * svg illustration.\n */\n image: { type: String },\n /**\n * The type of empty state to render, either an empty state or an error.\n */\n type: { type: String as () => NeonEmptyStateType, default: () => NeonEmptyStateType.EmptyState },\n /**\n * The accent color of the image. This is a functional color from the NeonFunctionalColor enum.\n */\n imageColor: { type: String as () => NeonFunctionalColor, default: () => NeonFunctionalColor.Brand },\n /**\n * The title of the empty state component.\n */\n title: { type: String, required: true },\n /**\n * A subtitle of the empty state component.\n */\n subtitle: { type: String },\n /**\n * A list of CTA buttons to display in the empty state. These are\n * NeonButtonModel objects.\n */\n ctas: { type: Array as () => Array<NeonButtonModel>, default: () => [] },\n },\n emits: [\n /**\n * Emitted when a CTA button is clicked. The index of the button in the ctas array is passed as the first argument.\n * @type {number} The index of the button clicked. This corresponds to the index of the button in the ctas property\n * array.\n */\n 'cta-click',\n ],\n setup: (_props, { emit }) => {\n return {\n emit,\n NeonButtonStyle,\n NeonFunctionalColor,\n };\n },\n});\n"],"names":["_sfc_main","defineComponent","NeonButton","NeonIcon","NeonInline","NeonStack","NeonEmptyStateType","NeonFunctionalColor","_props","emit","NeonButtonStyle"],"mappings":"4cAcAA,EAAeC,kBAAgB,CAC7B,KAAM,iBACN,WAAY,CACV,WAAAC,EACA,SAAAC,EACA,WAAAC,EACA,UAAAC,CAAA,EAEF,MAAO,CAKL,MAAO,CAAE,KAAM,MAAA,EAIf,KAAM,CAAE,KAAM,OAAoC,QAAS,IAAMC,EAAAA,mBAAmB,UAAA,EAIpF,WAAY,CAAE,KAAM,OAAqC,QAAS,IAAMC,EAAAA,oBAAoB,KAAA,EAI5F,MAAO,CAAE,KAAM,OAAQ,SAAU,EAAA,EAIjC,SAAU,CAAE,KAAM,MAAA,EAKlB,KAAM,CAAE,KAAM,MAAuC,QAAS,IAAM,CAAA,CAAC,CAAE,EAEzE,MAAO,CAML,WAAA,EAEF,MAAO,CAACC,EAAQ,CAAE,KAAAC,MACT,CACL,KAAAA,EAAA,gBACAC,EAAAA,gBAAA,oBACAH,EAAAA,mBAAA,EAGN,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { defineComponent as o } from "vue";
|
|
2
|
+
import r from "../../user-input/button/NeonButton.vue.es.js";
|
|
3
|
+
import { NeonFunctionalColor as t } from "../../../model/common/color/NeonFunctionalColor.es.js";
|
|
4
|
+
import n from "../icon/NeonIcon.vue.es.js";
|
|
5
|
+
import p from "../../layout/inline/NeonInline.vue.es.js";
|
|
6
|
+
import m from "../../layout/stack/NeonStack.vue.es.js";
|
|
7
|
+
import { NeonButtonStyle as i } from "../../../model/user-input/button/NeonButtonStyle.es.js";
|
|
8
|
+
import { NeonEmptyStateType as a } from "../../../model/presentation/empty-state/NeonEmptyStateType.es.js";
|
|
9
|
+
const g = o({
|
|
10
|
+
name: "NeonEmptyState",
|
|
11
|
+
components: {
|
|
12
|
+
NeonButton: r,
|
|
13
|
+
NeonIcon: n,
|
|
14
|
+
NeonInline: p,
|
|
15
|
+
NeonStack: m
|
|
16
|
+
},
|
|
17
|
+
props: {
|
|
18
|
+
/**
|
|
19
|
+
* The image to display in the empty state. This is an icon name used by the NeonIcon component, typically an
|
|
20
|
+
* svg illustration.
|
|
21
|
+
*/
|
|
22
|
+
image: { type: String },
|
|
23
|
+
/**
|
|
24
|
+
* The type of empty state to render, either an empty state or an error.
|
|
25
|
+
*/
|
|
26
|
+
type: { type: String, default: () => a.EmptyState },
|
|
27
|
+
/**
|
|
28
|
+
* The accent color of the image. This is a functional color from the NeonFunctionalColor enum.
|
|
29
|
+
*/
|
|
30
|
+
imageColor: { type: String, default: () => t.Brand },
|
|
31
|
+
/**
|
|
32
|
+
* The title of the empty state component.
|
|
33
|
+
*/
|
|
34
|
+
title: { type: String, required: !0 },
|
|
35
|
+
/**
|
|
36
|
+
* A subtitle of the empty state component.
|
|
37
|
+
*/
|
|
38
|
+
subtitle: { type: String },
|
|
39
|
+
/**
|
|
40
|
+
* A list of CTA buttons to display in the empty state. These are
|
|
41
|
+
* NeonButtonModel objects.
|
|
42
|
+
*/
|
|
43
|
+
ctas: { type: Array, default: () => [] }
|
|
44
|
+
},
|
|
45
|
+
emits: [
|
|
46
|
+
/**
|
|
47
|
+
* Emitted when a CTA button is clicked. The index of the button in the ctas array is passed as the first argument.
|
|
48
|
+
* @type {number} The index of the button clicked. This corresponds to the index of the button in the ctas property
|
|
49
|
+
* array.
|
|
50
|
+
*/
|
|
51
|
+
"cta-click"
|
|
52
|
+
],
|
|
53
|
+
setup: (f, { emit: e }) => ({
|
|
54
|
+
emit: e,
|
|
55
|
+
NeonButtonStyle: i,
|
|
56
|
+
NeonFunctionalColor: t
|
|
57
|
+
})
|
|
58
|
+
});
|
|
59
|
+
export {
|
|
60
|
+
g as default
|
|
61
|
+
};
|
|
62
|
+
//# sourceMappingURL=NeonEmptyState.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NeonEmptyState.es.js","sources":["../../../../src/components/presentation/empty-state/NeonEmptyState.ts?vue&type=script&src=true&lang.ts"],"sourcesContent":["import { defineComponent } from 'vue';\nimport NeonButton from '@/components/user-input/button/NeonButton.vue';\nimport type { NeonButtonModel } from '@/model/user-input/button/NeonButtonModel';\nimport { NeonFunctionalColor } from '@/model/common/color/NeonFunctionalColor';\nimport NeonIcon from '@/components/presentation/icon/NeonIcon.vue';\nimport NeonInline from '@/components/layout/inline/NeonInline.vue';\nimport NeonStack from '@/components/layout/stack/NeonStack.vue';\nimport { NeonButtonStyle } from '@/model/user-input/button/NeonButtonStyle';\nimport { NeonEmptyStateType } from '@/model/presentation/empty-state/NeonEmptyStateType';\n\n/**\n * NeonEmptyState is a component for displaying an empty state message with an image and optional call-to-action buttons.\n * It can also be used to render error pages.\n */\nexport default defineComponent({\n name: 'NeonEmptyState',\n components: {\n NeonButton,\n NeonIcon,\n NeonInline,\n NeonStack,\n },\n props: {\n /**\n * The image to display in the empty state. This is an icon name used by the NeonIcon component, typically an\n * svg illustration.\n */\n image: { type: String },\n /**\n * The type of empty state to render, either an empty state or an error.\n */\n type: { type: String as () => NeonEmptyStateType, default: () => NeonEmptyStateType.EmptyState },\n /**\n * The accent color of the image. This is a functional color from the NeonFunctionalColor enum.\n */\n imageColor: { type: String as () => NeonFunctionalColor, default: () => NeonFunctionalColor.Brand },\n /**\n * The title of the empty state component.\n */\n title: { type: String, required: true },\n /**\n * A subtitle of the empty state component.\n */\n subtitle: { type: String },\n /**\n * A list of CTA buttons to display in the empty state. These are\n * NeonButtonModel objects.\n */\n ctas: { type: Array as () => Array<NeonButtonModel>, default: () => [] },\n },\n emits: [\n /**\n * Emitted when a CTA button is clicked. The index of the button in the ctas array is passed as the first argument.\n * @type {number} The index of the button clicked. This corresponds to the index of the button in the ctas property\n * array.\n */\n 'cta-click',\n ],\n setup: (_props, { emit }) => {\n return {\n emit,\n NeonButtonStyle,\n NeonFunctionalColor,\n };\n },\n});\n"],"names":["_sfc_main","defineComponent","NeonButton","NeonIcon","NeonInline","NeonStack","NeonEmptyStateType","NeonFunctionalColor","_props","emit","NeonButtonStyle"],"mappings":";;;;;;;;AAcA,MAAAA,IAAeC,EAAgB;AAAA,EAC7B,MAAM;AAAA,EACN,YAAY;AAAA,IACV,YAAAC;AAAA,IACA,UAAAC;AAAA,IACA,YAAAC;AAAA,IACA,WAAAC;AAAA,EAAA;AAAA,EAEF,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,IAKL,OAAO,EAAE,MAAM,OAAA;AAAA;AAAA;AAAA;AAAA,IAIf,MAAM,EAAE,MAAM,QAAoC,SAAS,MAAMC,EAAmB,WAAA;AAAA;AAAA;AAAA;AAAA,IAIpF,YAAY,EAAE,MAAM,QAAqC,SAAS,MAAMC,EAAoB,MAAA;AAAA;AAAA;AAAA;AAAA,IAI5F,OAAO,EAAE,MAAM,QAAQ,UAAU,GAAA;AAAA;AAAA;AAAA;AAAA,IAIjC,UAAU,EAAE,MAAM,OAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAKlB,MAAM,EAAE,MAAM,OAAuC,SAAS,MAAM,CAAA,EAAC;AAAA,EAAE;AAAA,EAEzE,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAML;AAAA,EAAA;AAAA,EAEF,OAAO,CAACC,GAAQ,EAAE,MAAAC,SACT;AAAA,IACL,MAAAA;AAAA,IACA,iBAAAC;AAAA,IACA,qBAAAH;AAAA,EAAA;AAGN,CAAC;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const c=require("./NeonEmptyState.cjs.js"),e=require("vue"),i=require("../../../_virtual/_plugin-vue_export-helper.cjs.js"),p={class:"neon-empty-state__title"},m={key:1,class:"neon-h3 neon-empty-state__subtitle"},u={class:"neon-empty-state__description"};function _(o,d,k,h,C,b){const l=e.resolveComponent("neon-icon"),s=e.resolveComponent("neon-button"),r=e.resolveComponent("neon-inline"),a=e.resolveComponent("neon-stack");return e.openBlock(),e.createBlock(a,{class:e.normalizeClass([`neon-empty-state--${o.type}`,"neon-empty-state"]),gap:"l"},{default:e.withCtx(()=>[o.image?(e.openBlock(),e.createBlock(l,{key:0,color:o.imageColor,name:o.image,class:"neon-empty-state__illustration"},null,8,["color","name"])):e.createCommentVNode("",!0),e.createElementVNode("h1",p,e.toDisplayString(o.title),1),o.subtitle?(e.openBlock(),e.createElementBlock("h2",m,e.toDisplayString(o.subtitle),1)):e.createCommentVNode("",!0),e.createElementVNode("div",u,[e.renderSlot(o.$slots,"description")]),o.ctas.length>0?(e.openBlock(),e.createBlock(r,{key:2,class:"neon-empty-state__ctas",gap:"m"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.ctas,(n,t)=>(e.openBlock(),e.createBlock(s,{key:n.label||n.icon,"button-style":n.style||(t===o.ctas.length-1?o.NeonButtonStyle.Solid:o.NeonButtonStyle.Outline),color:n.color||(t===o.ctas.length-1?o.NeonFunctionalColor.Primary:o.NeonFunctionalColor.HighContrast),disabled:!!n.disabled,href:n.href,icon:n.icon,label:n.label,class:"neon-empty-state__cta",onClick:g=>!n.href&&o.emit("cta-click",t)},null,8,["button-style","color","disabled","href","icon","label","onClick"]))),128))]),_:1})):e.createCommentVNode("",!0)]),_:3},8,["class"])}const y=i(c,[["render",_]]);module.exports=y;
|
|
2
|
+
//# sourceMappingURL=NeonEmptyState.vue.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NeonEmptyState.vue.cjs.js","sources":["../../../../src/components/presentation/empty-state/NeonEmptyState.vue"],"sourcesContent":["<template>\n <neon-stack :class=\"`neon-empty-state--${type}`\" class=\"neon-empty-state\" gap=\"l\">\n <neon-icon v-if=\"image\" :color=\"imageColor\" :name=\"image\" class=\"neon-empty-state__illustration\" />\n <h1 class=\"neon-empty-state__title\">{{ title }}</h1>\n <h2 v-if=\"subtitle\" class=\"neon-h3 neon-empty-state__subtitle\">{{ subtitle }}</h2>\n <div class=\"neon-empty-state__description\">\n <!-- @slot description rendered between the empty state title & any CTAs -->\n <slot name=\"description\"></slot>\n </div>\n <neon-inline v-if=\"ctas.length > 0\" class=\"neon-empty-state__ctas\" gap=\"m\">\n <neon-button\n v-for=\"(cta, index) in ctas\"\n :key=\"cta.label || cta.icon\"\n :button-style=\"cta.style || (index === ctas.length - 1 ? NeonButtonStyle.Solid : NeonButtonStyle.Outline)\"\n :color=\"\n cta.color || (index === ctas.length - 1 ? NeonFunctionalColor.Primary : NeonFunctionalColor.HighContrast)\n \"\n :disabled=\"!!cta.disabled\"\n :href=\"cta.href\"\n :icon=\"cta.icon\"\n :label=\"cta.label\"\n class=\"neon-empty-state__cta\"\n @click=\"!cta.href && emit('cta-click', index)\"\n />\n </neon-inline>\n </neon-stack>\n</template>\n\n<script lang=\"ts\" src=\"./NeonEmptyState.ts\" />\n"],"names":["_hoisted_1","_hoisted_3","_createBlock","_component_neon_stack","_normalizeClass","_ctx","_component_neon_icon","_createElementVNode","_toDisplayString","_createElementBlock","_hoisted_2","_renderSlot","_component_neon_inline","_openBlock","_Fragment","_renderList","cta","index","_component_neon_button"],"mapp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
+
import { resolveComponent as t, openBlock as o, createBlock as l, normalizeClass as h, withCtx as r, createCommentVNode as a, createElementVNode as i, toDisplayString as c, createElementBlock as m, renderSlot as b, Fragment as f, renderList as k } from "vue";
|
|
3
|
+
import g from "../../../_virtual/_plugin-vue_export-helper.es.js";
|
|
4
|
+
const C = { class: "neon-empty-state__title" }, N = {
|
|
5
|
+
key: 1,
|
|
6
|
+
class: "neon-h3 neon-empty-state__subtitle"
|
|
7
|
+
}, $ = { class: "neon-empty-state__description" };
|
|
8
|
+
function S(e, B, v, E, F, V) {
|
|
9
|
+
const p = t("neon-icon"), u = t("neon-button"), _ = t("neon-inline"), d = t("neon-stack");
|
|
10
|
+
return o(), l(d, {
|
|
11
|
+
class: h([`neon-empty-state--${e.type}`, "neon-empty-state"]),
|
|
12
|
+
gap: "l"
|
|
13
|
+
}, {
|
|
14
|
+
default: r(() => [
|
|
15
|
+
e.image ? (o(), l(p, {
|
|
16
|
+
key: 0,
|
|
17
|
+
color: e.imageColor,
|
|
18
|
+
name: e.image,
|
|
19
|
+
class: "neon-empty-state__illustration"
|
|
20
|
+
}, null, 8, ["color", "name"])) : a("", !0),
|
|
21
|
+
i("h1", C, c(e.title), 1),
|
|
22
|
+
e.subtitle ? (o(), m("h2", N, c(e.subtitle), 1)) : a("", !0),
|
|
23
|
+
i("div", $, [
|
|
24
|
+
b(e.$slots, "description")
|
|
25
|
+
]),
|
|
26
|
+
e.ctas.length > 0 ? (o(), l(_, {
|
|
27
|
+
key: 2,
|
|
28
|
+
class: "neon-empty-state__ctas",
|
|
29
|
+
gap: "m"
|
|
30
|
+
}, {
|
|
31
|
+
default: r(() => [
|
|
32
|
+
(o(!0), m(f, null, k(e.ctas, (n, s) => (o(), l(u, {
|
|
33
|
+
key: n.label || n.icon,
|
|
34
|
+
"button-style": n.style || (s === e.ctas.length - 1 ? e.NeonButtonStyle.Solid : e.NeonButtonStyle.Outline),
|
|
35
|
+
color: n.color || (s === e.ctas.length - 1 ? e.NeonFunctionalColor.Primary : e.NeonFunctionalColor.HighContrast),
|
|
36
|
+
disabled: !!n.disabled,
|
|
37
|
+
href: n.href,
|
|
38
|
+
icon: n.icon,
|
|
39
|
+
label: n.label,
|
|
40
|
+
class: "neon-empty-state__cta",
|
|
41
|
+
onClick: (w) => !n.href && e.emit("cta-click", s)
|
|
42
|
+
}, null, 8, ["button-style", "color", "disabled", "href", "icon", "label", "onClick"]))), 128))
|
|
43
|
+
]),
|
|
44
|
+
_: 1
|
|
45
|
+
})) : a("", !0)
|
|
46
|
+
]),
|
|
47
|
+
_: 3
|
|
48
|
+
}, 8, ["class"]);
|
|
49
|
+
}
|
|
50
|
+
const L = /* @__PURE__ */ g(y, [["render", S]]);
|
|
51
|
+
export {
|
|
52
|
+
L as default
|
|
53
|
+
};
|
|
54
|
+
//# sourceMappingURL=NeonEmptyState.vue.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NeonEmptyState.vue.es.js","sources":["../../../../src/components/presentation/empty-state/NeonEmptyState.vue"],"sourcesContent":["<template>\n <neon-stack :class=\"`neon-empty-state--${type}`\" class=\"neon-empty-state\" gap=\"l\">\n <neon-icon v-if=\"image\" :color=\"imageColor\" :name=\"image\" class=\"neon-empty-state__illustration\" />\n <h1 class=\"neon-empty-state__title\">{{ title }}</h1>\n <h2 v-if=\"subtitle\" class=\"neon-h3 neon-empty-state__subtitle\">{{ subtitle }}</h2>\n <div class=\"neon-empty-state__description\">\n <!-- @slot description rendered between the empty state title & any CTAs -->\n <slot name=\"description\"></slot>\n </div>\n <neon-inline v-if=\"ctas.length > 0\" class=\"neon-empty-state__ctas\" gap=\"m\">\n <neon-button\n v-for=\"(cta, index) in ctas\"\n :key=\"cta.label || cta.icon\"\n :button-style=\"cta.style || (index === ctas.length - 1 ? NeonButtonStyle.Solid : NeonButtonStyle.Outline)\"\n :color=\"\n cta.color || (index === ctas.length - 1 ? NeonFunctionalColor.Primary : NeonFunctionalColor.HighContrast)\n \"\n :disabled=\"!!cta.disabled\"\n :href=\"cta.href\"\n :icon=\"cta.icon\"\n :label=\"cta.label\"\n class=\"neon-empty-state__cta\"\n @click=\"!cta.href && emit('cta-click', index)\"\n />\n </neon-inline>\n </neon-stack>\n</template>\n\n<script lang=\"ts\" src=\"./NeonEmptyState.ts\" />\n"],"names":["_hoisted_1","_hoisted_3","_createBlock","_component_neon_stack","_normalizeClass","_ctx","_component_neon_icon","_createElementVNode","_toDisplayString","_createElementBlock","_hoisted_2","_renderSlot","_component_neon_inline","_openBlock","_Fragment","_renderList","cta","index","_component_neon_button"],"mappings":";;;AAGQ,MAAAA,IAAA,EAAA,OAAM,0BAAyB;;EACf,OAAM;GACrBC,IAAA,EAAA,OAAM,gCAA+B;;;cAJ5CC,EAwBaC,GAAA;AAAA,IAxBA,OAAKC,EAAA,CAAA,qBAAuBC,EAAA,IAAI,IAAU,kBAAkB,CAAA;AAAA,IAAC,KAAI;AAAA;eAC5E,MAAmG;AAAA,MAAlFA,EAAA,cAAjBH,EAAmGI,GAAA;AAAA;QAA1E,OAAOD,EAAA;AAAA,QAAa,MAAMA,EAAA;AAAA,QAAO,OAAM;AAAA;MAChEE,EAAoD,MAApDP,GAAoDQ,EAAbH,EAAA,KAAK,GAAA,CAAA;AAAA,MAClCA,EAAA,iBAAVI,EAAkF,MAAlFC,GAAkFF,EAAhBH,EAAA,QAAQ,GAAA,CAAA;MAC1EE,EAGM,OAHNN,GAGM;AAAA,QADJU,EAAgCN,EAAA,QAAA,aAAA;AAAA;MAEfA,EAAA,KAAK,SAAM,UAA9BH,EAecU,GAAA;AAAA;QAfsB,OAAM;AAAA,QAAyB,KAAI;AAAA;mBAEnE,MAA4B;AAAA,WAD9BC,EAAA,EAAA,GAAAJ,EAaEK,GAAA,MAAAC,EAZuBV,EAAA,MAAI,CAAnBW,GAAKC,YADff,EAaEgB,GAAA;AAAA,YAXC,KAAKF,EAAI,SAASA,EAAI;AAAA,YACtB,gBAAcA,EAAI,UAAUC,MAAUZ,EAAA,KAAK,aAAaA,EAAA,gBAAgB,QAAQA,EAAA,gBAAgB;AAAA,YAChG,OAAkBW,EAAI,UAAUC,MAAUZ,EAAA,KAAK,SAAM,IAAOA,sBAAoB,UAAUA,EAAA,oBAAoB;AAAA,YAG9G,UAAQ,CAAA,CAAIW,EAAI;AAAA,YAChB,MAAMA,EAAI;AAAA,YACV,MAAMA,EAAI;AAAA,YACV,OAAOA,EAAI;AAAA,YACZ,OAAM;AAAA,YACL,iBAAQA,EAAI,QAAQX,EAAA,kBAAkBY,CAAK;AAAA;;;;;;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const c=require("./NeonImageCarousel.cjs.js"),e=require("vue"),u=require("../../../_virtual/_plugin-vue_export-helper.cjs.js"),d={class:"neon-image-carousel-wrapper"},m={class:"neon-image-carousel__container",tabindex:"-1"},p={ref:"carouselItems",class:"no-style neon-image-carousel__items"},g=["alt","src"],v={key:0,class:"neon-image-carousel__item-title"},k={class:"neon-image-carousel__nav",tabindex:"-1"},C=["onClickCapture"],_={key:0,class:"neon-image-carousel__label",tabindex:"-1"};function b(n,o,E,h,w,f){const l=e.resolveComponent("neon-button"),i=e.resolveComponent("neon-link"),r=e.resolveComponent("neon-stack");return e.openBlock(),e.createElementBlock("div",d,[e.createElementVNode("div",{class:e.normalizeClass([{"neon-image-carousel--initialised":n.initialised,"neon-image-carousel--expanded":n.isExpanded},"neon-image-carousel"]),tabindex:"0",onKeydown:[o[2]||(o[2]=e.withKeys(e.withModifiers((...t)=>n.previous&&n.previous(...t),["stop","prevent"]),["left"])),o[3]||(o[3]=e.withKeys(e.withModifiers((...t)=>n.next&&n.next(...t),["stop","prevent"]),["right"])),o[4]||(o[4]=e.withKeys(t=>n.isExpanded&&n.toggleExpanded(),["esc"]))]},[e.createElementVNode("div",m,[n.isExpanded?(e.openBlock(),e.createBlock(l,{key:0,title:n.closeLabel,"button-style":"text",class:"neon-image-carousel__close",color:"low-contrast",icon:"close",size:"l",transparent:"",onClick:o[0]||(o[0]=t=>n.isExpanded&&n.toggleExpanded())},null,8,["title"])):e.createCommentVNode("",!0),e.createVNode(l,{disabled:n.currentImage===0,title:n.previousLabel,transparent:!0,"button-style":"text",class:"neon-image-carousel__previous",color:"neutral",icon:"chevron-left",size:"l",onClickCapture:e.withModifiers(n.previous,["stop"])},null,8,["disabled","title","onClickCapture"]),e.createElementVNode("ul",p,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.images,(t,s)=>(e.openBlock(),e.createElementBlock("li",{key:t.src,ref_for:!0,ref:"carouselItem",class:e.normalizeClass([{"neon-image-carousel__item--active":s===n.currentImage},"neon-image-carousel__item"])},[e.createElementVNode("img",{alt:t.alt,src:t.src,class:"neon-image-carousel__image",onClick:o[1]||(o[1]=e.withModifiers(a=>!n.isExpanded&&n.toggleExpanded(),["stop"]))},null,8,g),n.isExpanded&&t.title?(e.openBlock(),e.createElementBlock("p",v,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0)],2))),128))],512),e.createVNode(l,{disabled:n.currentImage===n.images.length-1,title:n.nextLabel,transparent:!0,"button-style":"text",class:"neon-image-carousel__next",color:"neutral",icon:"chevron-right",size:"l",onClickCapture:e.withModifiers(n.next,["stop"])},null,8,["disabled","title","onClickCapture"])]),e.createVNode(r,{class:"neon-image-carousel__nav-container",gap:"s"},{default:e.withCtx(()=>[e.createElementVNode("div",k,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.images,(t,s)=>(e.openBlock(),e.createBlock(i,{key:s,"aria-label":`Display image ${s+1}`,class:"neon-image-carousel__nav-item-link","no-style":"","outline-style":"none",role:"button",tabindex:"0",onKeydownCapture:[e.withKeys(e.withModifiers(a=>n.scrollTo(s),["stop","prevent"]),["enter"]),e.withKeys(e.withModifiers(a=>n.scrollTo(s),["stop","prevent"]),["space"])]},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass([{"neon-image-carousel__nav-item--active":s===n.currentImage},"neon-image-carousel__nav-item"]),tabindex:"-1",onClickCapture:e.withModifiers(a=>n.scrollTo(s),["stop"])},[...o[5]||(o[5]=[e.createElementVNode("div",{class:"neon-image-carousel__nav-item-indicator"},null,-1)])],42,C)]),_:2},1032,["aria-label","onKeydownCapture"]))),128))]),n.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",_,e.toDisplayString(n.imageCountLabel||`${n.images.length} ${n.images.length===1?"image":"images"}`),1))]),_:1})],34)])}const y=u(c,[["render",b]]);module.exports=y;
|
|
2
2
|
//# sourceMappingURL=NeonImageCarousel.vue.cjs.js.map
|