@duskmoon-dev/el-carousel 1.7.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.
@@ -0,0 +1,120 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropNames = Object.getOwnPropertyNames;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ function __accessProp(key) {
6
+ return this[key];
7
+ }
8
+ var __toCommonJS = (from) => {
9
+ var entry = (__moduleCache ??= new WeakMap).get(from), desc;
10
+ if (entry)
11
+ return entry;
12
+ entry = __defProp({}, "__esModule", { value: true });
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (var key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(entry, key))
16
+ __defProp(entry, key, {
17
+ get: __accessProp.bind(from, key),
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ }
21
+ __moduleCache.set(from, entry);
22
+ return entry;
23
+ };
24
+ var __moduleCache;
25
+ var __returnValue = (v) => v;
26
+ function __exportSetter(name, newValue) {
27
+ this[name] = __returnValue.bind(null, newValue);
28
+ }
29
+ var __export = (target, all) => {
30
+ for (var name in all)
31
+ __defProp(target, name, {
32
+ get: all[name],
33
+ enumerable: true,
34
+ configurable: true,
35
+ set: __exportSetter.bind(all, name)
36
+ });
37
+ };
38
+
39
+ // src/index.ts
40
+ var exports_src = {};
41
+ __export(exports_src, {
42
+ ElDmCarousel: () => ElDmCarousel,
43
+ register: () => register
44
+ });
45
+ module.exports = __toCommonJS(exports_src);
46
+
47
+ // src/el-dm-carousel.ts
48
+ var import_el_base = require("@duskmoon-dev/el-base");
49
+ var import_carousel = require("@duskmoon-dev/core/components/carousel");
50
+ var ORIENTATIONS = ["horizontal", "vertical"];
51
+ var ALIGNS = ["start", "center", "end"];
52
+ var COLORS = [
53
+ "primary",
54
+ "secondary",
55
+ "tertiary",
56
+ "info",
57
+ "success",
58
+ "warning",
59
+ "error"
60
+ ];
61
+ var escapeAttribute = (value) => value.replaceAll("&", "&amp;").replaceAll('"', "&quot;").replaceAll("<", "&lt;");
62
+ var coreStyles = import_carousel.css.replace(/@layer\s+components\s*\{/, "").replace(/\}\s*$/, "");
63
+ var styles = import_el_base.css`
64
+ :host {
65
+ display: block;
66
+ min-width: 0;
67
+ }
68
+ :host([hidden]) {
69
+ display: none !important;
70
+ }
71
+ ${coreStyles}
72
+ .carousel > slot {
73
+ display: contents;
74
+ }
75
+ .carousel ::slotted(*) {
76
+ flex: none;
77
+ min-inline-size: 0;
78
+ max-inline-size: 100%;
79
+ scroll-snap-align: start;
80
+ overflow-wrap: anywhere;
81
+ }
82
+ .carousel-center ::slotted(*) {
83
+ scroll-snap-align: center;
84
+ }
85
+ .carousel-end ::slotted(*) {
86
+ scroll-snap-align: end;
87
+ }
88
+ `;
89
+
90
+ class ElDmCarousel extends import_el_base.BaseElement {
91
+ static properties = {
92
+ orientation: { type: String, reflect: true, default: "horizontal" },
93
+ align: { type: String, reflect: true, default: "start" },
94
+ color: { type: String, reflect: true }
95
+ };
96
+ constructor() {
97
+ super();
98
+ this.attachStyles(styles);
99
+ }
100
+ render() {
101
+ const orientation = ORIENTATIONS.includes(this.orientation) ? this.orientation : "horizontal";
102
+ const classes = ["carousel", `carousel-${orientation}`];
103
+ if (ALIGNS.includes(this.align))
104
+ classes.push(`carousel-${this.align}`);
105
+ if (COLORS.includes(this.color))
106
+ classes.push(`carousel-${this.color}`);
107
+ const label = this.getAttribute("aria-label");
108
+ const labelAttribute = label ? ` aria-label="${escapeAttribute(label)}"` : "";
109
+ return `<div class="${classes.join(" ")}" part="carousel" tabindex="0"${labelAttribute}><slot></slot></div>`;
110
+ }
111
+ }
112
+ // src/index.ts
113
+ function register() {
114
+ if (!customElements.get("el-dm-carousel")) {
115
+ customElements.define("el-dm-carousel", ElDmCarousel);
116
+ }
117
+ }
118
+
119
+ //# debugId=7DBC24BAA5FE7C1964756E2164756E21
120
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,11 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/el-dm-carousel.ts", "../../src/index.ts"],
4
+ "sourcesContent": [
5
+ "import { BaseElement, css } from '@duskmoon-dev/el-base';\nimport { css as carouselCSS } from '@duskmoon-dev/core/components/carousel';\n\nexport type CarouselOrientation = 'horizontal' | 'vertical';\nexport type CarouselAlign = 'start' | 'center' | 'end';\nexport type CarouselColor =\n 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'warning' | 'error';\nconst ORIENTATIONS: CarouselOrientation[] = ['horizontal', 'vertical'];\nconst ALIGNS: CarouselAlign[] = ['start', 'center', 'end'];\nconst COLORS: CarouselColor[] = [\n 'primary',\n 'secondary',\n 'tertiary',\n 'info',\n 'success',\n 'warning',\n 'error',\n];\nconst escapeAttribute = (value: string): string =>\n value.replaceAll('&', '&amp;').replaceAll('\"', '&quot;').replaceAll('<', '&lt;');\n\nconst coreStyles = carouselCSS.replace(/@layer\\s+components\\s*\\{/, '').replace(/\\}\\s*$/, '');\nconst styles = css`\n :host {\n display: block;\n min-width: 0;\n }\n :host([hidden]) {\n display: none !important;\n }\n ${coreStyles}\n .carousel > slot {\n display: contents;\n }\n .carousel ::slotted(*) {\n flex: none;\n min-inline-size: 0;\n max-inline-size: 100%;\n scroll-snap-align: start;\n overflow-wrap: anywhere;\n }\n .carousel-center ::slotted(*) {\n scroll-snap-align: center;\n }\n .carousel-end ::slotted(*) {\n scroll-snap-align: end;\n }\n`;\n\nexport class ElDmCarousel extends BaseElement {\n static properties = {\n orientation: { type: String, reflect: true, default: 'horizontal' },\n align: { type: String, reflect: true, default: 'start' },\n color: { type: String, reflect: true },\n };\n declare orientation: CarouselOrientation;\n declare align: CarouselAlign;\n declare color: CarouselColor;\n constructor() {\n super();\n this.attachStyles(styles);\n }\n render(): string {\n const orientation = ORIENTATIONS.includes(this.orientation) ? this.orientation : 'horizontal';\n const classes = ['carousel', `carousel-${orientation}`];\n if (ALIGNS.includes(this.align)) classes.push(`carousel-${this.align}`);\n if (COLORS.includes(this.color)) classes.push(`carousel-${this.color}`);\n const label = this.getAttribute('aria-label');\n const labelAttribute = label ? ` aria-label=\"${escapeAttribute(label)}\"` : '';\n return `<div class=\"${classes.join(' ')}\" part=\"carousel\" tabindex=\"0\"${labelAttribute}><slot></slot></div>`;\n }\n}\n",
6
+ "import { ElDmCarousel } from './el-dm-carousel.js';\n\nexport { ElDmCarousel };\nexport * from './el-dm-carousel.js';\n\nexport function register(): void {\n if (!customElements.get('el-dm-carousel')) {\n customElements.define('el-dm-carousel', ElDmCarousel);\n }\n}\n"
7
+ ],
8
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAiC,IAAjC;AACmC,IAAnC;AAMA,IAAM,eAAsC,CAAC,cAAc,UAAU;AACrE,IAAM,SAA0B,CAAC,SAAS,UAAU,KAAK;AACzD,IAAM,SAA0B;AAAA,EAC9B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AACA,IAAM,kBAAkB,CAAC,UACvB,MAAM,WAAW,KAAK,OAAO,EAAE,WAAW,KAAK,QAAQ,EAAE,WAAW,KAAK,MAAM;AAEjF,IAAM,aAAa,oBAAY,QAAQ,4BAA4B,EAAE,EAAE,QAAQ,UAAU,EAAE;AAC3F,IAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAQX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAmBG,MAAM,qBAAqB,2BAAY;AAAA,SACrC,aAAa;AAAA,IAClB,aAAa,EAAE,MAAM,QAAQ,SAAS,MAAM,SAAS,aAAa;AAAA,IAClE,OAAO,EAAE,MAAM,QAAQ,SAAS,MAAM,SAAS,QAAQ;AAAA,IACvD,OAAO,EAAE,MAAM,QAAQ,SAAS,KAAK;AAAA,EACvC;AAAA,EAIA,WAAW,GAAG;AAAA,IACZ,MAAM;AAAA,IACN,KAAK,aAAa,MAAM;AAAA;AAAA,EAE1B,MAAM,GAAW;AAAA,IACf,MAAM,cAAc,aAAa,SAAS,KAAK,WAAW,IAAI,KAAK,cAAc;AAAA,IACjF,MAAM,UAAU,CAAC,YAAY,YAAY,aAAa;AAAA,IACtD,IAAI,OAAO,SAAS,KAAK,KAAK;AAAA,MAAG,QAAQ,KAAK,YAAY,KAAK,OAAO;AAAA,IACtE,IAAI,OAAO,SAAS,KAAK,KAAK;AAAA,MAAG,QAAQ,KAAK,YAAY,KAAK,OAAO;AAAA,IACtE,MAAM,QAAQ,KAAK,aAAa,YAAY;AAAA,IAC5C,MAAM,iBAAiB,QAAQ,gBAAgB,gBAAgB,KAAK,OAAO;AAAA,IAC3E,OAAO,eAAe,QAAQ,KAAK,GAAG,kCAAkC;AAAA;AAE5E;;AClEO,SAAS,QAAQ,GAAS;AAAA,EAC/B,IAAI,CAAC,eAAe,IAAI,gBAAgB,GAAG;AAAA,IACzC,eAAe,OAAO,kBAAkB,YAAY;AAAA,EACtD;AAAA;",
9
+ "debugId": "7DBC24BAA5FE7C1964756E2164756E21",
10
+ "names": []
11
+ }
@@ -0,0 +1,122 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropNames = Object.getOwnPropertyNames;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ function __accessProp(key) {
6
+ return this[key];
7
+ }
8
+ var __toCommonJS = (from) => {
9
+ var entry = (__moduleCache ??= new WeakMap).get(from), desc;
10
+ if (entry)
11
+ return entry;
12
+ entry = __defProp({}, "__esModule", { value: true });
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (var key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(entry, key))
16
+ __defProp(entry, key, {
17
+ get: __accessProp.bind(from, key),
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ }
21
+ __moduleCache.set(from, entry);
22
+ return entry;
23
+ };
24
+ var __moduleCache;
25
+ var __returnValue = (v) => v;
26
+ function __exportSetter(name, newValue) {
27
+ this[name] = __returnValue.bind(null, newValue);
28
+ }
29
+ var __export = (target, all) => {
30
+ for (var name in all)
31
+ __defProp(target, name, {
32
+ get: all[name],
33
+ enumerable: true,
34
+ configurable: true,
35
+ set: __exportSetter.bind(all, name)
36
+ });
37
+ };
38
+
39
+ // src/index.ts
40
+ var exports_src = {};
41
+ __export(exports_src, {
42
+ ElDmCarousel: () => ElDmCarousel,
43
+ register: () => register
44
+ });
45
+
46
+ // src/el-dm-carousel.ts
47
+ var import_el_base = require("@duskmoon-dev/el-base");
48
+ var import_carousel = require("@duskmoon-dev/core/components/carousel");
49
+ var ORIENTATIONS = ["horizontal", "vertical"];
50
+ var ALIGNS = ["start", "center", "end"];
51
+ var COLORS = [
52
+ "primary",
53
+ "secondary",
54
+ "tertiary",
55
+ "info",
56
+ "success",
57
+ "warning",
58
+ "error"
59
+ ];
60
+ var escapeAttribute = (value) => value.replaceAll("&", "&amp;").replaceAll('"', "&quot;").replaceAll("<", "&lt;");
61
+ var coreStyles = import_carousel.css.replace(/@layer\s+components\s*\{/, "").replace(/\}\s*$/, "");
62
+ var styles = import_el_base.css`
63
+ :host {
64
+ display: block;
65
+ min-width: 0;
66
+ }
67
+ :host([hidden]) {
68
+ display: none !important;
69
+ }
70
+ ${coreStyles}
71
+ .carousel > slot {
72
+ display: contents;
73
+ }
74
+ .carousel ::slotted(*) {
75
+ flex: none;
76
+ min-inline-size: 0;
77
+ max-inline-size: 100%;
78
+ scroll-snap-align: start;
79
+ overflow-wrap: anywhere;
80
+ }
81
+ .carousel-center ::slotted(*) {
82
+ scroll-snap-align: center;
83
+ }
84
+ .carousel-end ::slotted(*) {
85
+ scroll-snap-align: end;
86
+ }
87
+ `;
88
+
89
+ class ElDmCarousel extends import_el_base.BaseElement {
90
+ static properties = {
91
+ orientation: { type: String, reflect: true, default: "horizontal" },
92
+ align: { type: String, reflect: true, default: "start" },
93
+ color: { type: String, reflect: true }
94
+ };
95
+ constructor() {
96
+ super();
97
+ this.attachStyles(styles);
98
+ }
99
+ render() {
100
+ const orientation = ORIENTATIONS.includes(this.orientation) ? this.orientation : "horizontal";
101
+ const classes = ["carousel", `carousel-${orientation}`];
102
+ if (ALIGNS.includes(this.align))
103
+ classes.push(`carousel-${this.align}`);
104
+ if (COLORS.includes(this.color))
105
+ classes.push(`carousel-${this.color}`);
106
+ const label = this.getAttribute("aria-label");
107
+ const labelAttribute = label ? ` aria-label="${escapeAttribute(label)}"` : "";
108
+ return `<div class="${classes.join(" ")}" part="carousel" tabindex="0"${labelAttribute}><slot></slot></div>`;
109
+ }
110
+ }
111
+ // src/index.ts
112
+ function register() {
113
+ if (!customElements.get("el-dm-carousel")) {
114
+ customElements.define("el-dm-carousel", ElDmCarousel);
115
+ }
116
+ }
117
+
118
+ // src/register.ts
119
+ register();
120
+
121
+ //# debugId=0ED3F9C0BFBA882C64756E2164756E21
122
+ //# sourceMappingURL=register.js.map
@@ -0,0 +1,12 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/el-dm-carousel.ts", "../../src/index.ts", "../../src/register.ts"],
4
+ "sourcesContent": [
5
+ "import { BaseElement, css } from '@duskmoon-dev/el-base';\nimport { css as carouselCSS } from '@duskmoon-dev/core/components/carousel';\n\nexport type CarouselOrientation = 'horizontal' | 'vertical';\nexport type CarouselAlign = 'start' | 'center' | 'end';\nexport type CarouselColor =\n 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'warning' | 'error';\nconst ORIENTATIONS: CarouselOrientation[] = ['horizontal', 'vertical'];\nconst ALIGNS: CarouselAlign[] = ['start', 'center', 'end'];\nconst COLORS: CarouselColor[] = [\n 'primary',\n 'secondary',\n 'tertiary',\n 'info',\n 'success',\n 'warning',\n 'error',\n];\nconst escapeAttribute = (value: string): string =>\n value.replaceAll('&', '&amp;').replaceAll('\"', '&quot;').replaceAll('<', '&lt;');\n\nconst coreStyles = carouselCSS.replace(/@layer\\s+components\\s*\\{/, '').replace(/\\}\\s*$/, '');\nconst styles = css`\n :host {\n display: block;\n min-width: 0;\n }\n :host([hidden]) {\n display: none !important;\n }\n ${coreStyles}\n .carousel > slot {\n display: contents;\n }\n .carousel ::slotted(*) {\n flex: none;\n min-inline-size: 0;\n max-inline-size: 100%;\n scroll-snap-align: start;\n overflow-wrap: anywhere;\n }\n .carousel-center ::slotted(*) {\n scroll-snap-align: center;\n }\n .carousel-end ::slotted(*) {\n scroll-snap-align: end;\n }\n`;\n\nexport class ElDmCarousel extends BaseElement {\n static properties = {\n orientation: { type: String, reflect: true, default: 'horizontal' },\n align: { type: String, reflect: true, default: 'start' },\n color: { type: String, reflect: true },\n };\n declare orientation: CarouselOrientation;\n declare align: CarouselAlign;\n declare color: CarouselColor;\n constructor() {\n super();\n this.attachStyles(styles);\n }\n render(): string {\n const orientation = ORIENTATIONS.includes(this.orientation) ? this.orientation : 'horizontal';\n const classes = ['carousel', `carousel-${orientation}`];\n if (ALIGNS.includes(this.align)) classes.push(`carousel-${this.align}`);\n if (COLORS.includes(this.color)) classes.push(`carousel-${this.color}`);\n const label = this.getAttribute('aria-label');\n const labelAttribute = label ? ` aria-label=\"${escapeAttribute(label)}\"` : '';\n return `<div class=\"${classes.join(' ')}\" part=\"carousel\" tabindex=\"0\"${labelAttribute}><slot></slot></div>`;\n }\n}\n",
6
+ "import { ElDmCarousel } from './el-dm-carousel.js';\n\nexport { ElDmCarousel };\nexport * from './el-dm-carousel.js';\n\nexport function register(): void {\n if (!customElements.get('el-dm-carousel')) {\n customElements.define('el-dm-carousel', ElDmCarousel);\n }\n}\n",
7
+ "import { register } from './index.js';\n\nregister();\n"
8
+ ],
9
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,aAAa,YAAY;AAAA,IAC5C,MAAM,iBAAiB,QAAQ,gBAAgB,gBAAgB,KAAK,OAAO;AAAA,IAC3E,OAAO,eAAe,QAAQ,KAAK,GAAG,kCAAkC;AAAA;AAE5E;;AClEO,SAAS,QAAQ,GAAS;AAAA,EAC/B,IAAI,CAAC,eAAe,IAAI,gBAAgB,GAAG;AAAA,IACzC,eAAe,OAAO,kBAAkB,YAAY;AAAA,EACtD;AAAA;;;ACNF,SAAS;",
10
+ "debugId": "0ED3F9C0BFBA882C64756E2164756E21",
11
+ "names": []
12
+ }
@@ -0,0 +1,78 @@
1
+ // src/el-dm-carousel.ts
2
+ import { BaseElement, css } from "@duskmoon-dev/el-base";
3
+ import { css as carouselCSS } from "@duskmoon-dev/core/components/carousel";
4
+ var ORIENTATIONS = ["horizontal", "vertical"];
5
+ var ALIGNS = ["start", "center", "end"];
6
+ var COLORS = [
7
+ "primary",
8
+ "secondary",
9
+ "tertiary",
10
+ "info",
11
+ "success",
12
+ "warning",
13
+ "error"
14
+ ];
15
+ var escapeAttribute = (value) => value.replaceAll("&", "&amp;").replaceAll('"', "&quot;").replaceAll("<", "&lt;");
16
+ var coreStyles = carouselCSS.replace(/@layer\s+components\s*\{/, "").replace(/\}\s*$/, "");
17
+ var styles = css`
18
+ :host {
19
+ display: block;
20
+ min-width: 0;
21
+ }
22
+ :host([hidden]) {
23
+ display: none !important;
24
+ }
25
+ ${coreStyles}
26
+ .carousel > slot {
27
+ display: contents;
28
+ }
29
+ .carousel ::slotted(*) {
30
+ flex: none;
31
+ min-inline-size: 0;
32
+ max-inline-size: 100%;
33
+ scroll-snap-align: start;
34
+ overflow-wrap: anywhere;
35
+ }
36
+ .carousel-center ::slotted(*) {
37
+ scroll-snap-align: center;
38
+ }
39
+ .carousel-end ::slotted(*) {
40
+ scroll-snap-align: end;
41
+ }
42
+ `;
43
+
44
+ class ElDmCarousel extends BaseElement {
45
+ static properties = {
46
+ orientation: { type: String, reflect: true, default: "horizontal" },
47
+ align: { type: String, reflect: true, default: "start" },
48
+ color: { type: String, reflect: true }
49
+ };
50
+ constructor() {
51
+ super();
52
+ this.attachStyles(styles);
53
+ }
54
+ render() {
55
+ const orientation = ORIENTATIONS.includes(this.orientation) ? this.orientation : "horizontal";
56
+ const classes = ["carousel", `carousel-${orientation}`];
57
+ if (ALIGNS.includes(this.align))
58
+ classes.push(`carousel-${this.align}`);
59
+ if (COLORS.includes(this.color))
60
+ classes.push(`carousel-${this.color}`);
61
+ const label = this.getAttribute("aria-label");
62
+ const labelAttribute = label ? ` aria-label="${escapeAttribute(label)}"` : "";
63
+ return `<div class="${classes.join(" ")}" part="carousel" tabindex="0"${labelAttribute}><slot></slot></div>`;
64
+ }
65
+ }
66
+ // src/index.ts
67
+ function register() {
68
+ if (!customElements.get("el-dm-carousel")) {
69
+ customElements.define("el-dm-carousel", ElDmCarousel);
70
+ }
71
+ }
72
+ export {
73
+ ElDmCarousel,
74
+ register
75
+ };
76
+
77
+ //# debugId=7F379B6D9CB3D64C64756E2164756E21
78
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,11 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/el-dm-carousel.ts", "../../src/index.ts"],
4
+ "sourcesContent": [
5
+ "import { BaseElement, css } from '@duskmoon-dev/el-base';\nimport { css as carouselCSS } from '@duskmoon-dev/core/components/carousel';\n\nexport type CarouselOrientation = 'horizontal' | 'vertical';\nexport type CarouselAlign = 'start' | 'center' | 'end';\nexport type CarouselColor =\n 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'warning' | 'error';\nconst ORIENTATIONS: CarouselOrientation[] = ['horizontal', 'vertical'];\nconst ALIGNS: CarouselAlign[] = ['start', 'center', 'end'];\nconst COLORS: CarouselColor[] = [\n 'primary',\n 'secondary',\n 'tertiary',\n 'info',\n 'success',\n 'warning',\n 'error',\n];\nconst escapeAttribute = (value: string): string =>\n value.replaceAll('&', '&amp;').replaceAll('\"', '&quot;').replaceAll('<', '&lt;');\n\nconst coreStyles = carouselCSS.replace(/@layer\\s+components\\s*\\{/, '').replace(/\\}\\s*$/, '');\nconst styles = css`\n :host {\n display: block;\n min-width: 0;\n }\n :host([hidden]) {\n display: none !important;\n }\n ${coreStyles}\n .carousel > slot {\n display: contents;\n }\n .carousel ::slotted(*) {\n flex: none;\n min-inline-size: 0;\n max-inline-size: 100%;\n scroll-snap-align: start;\n overflow-wrap: anywhere;\n }\n .carousel-center ::slotted(*) {\n scroll-snap-align: center;\n }\n .carousel-end ::slotted(*) {\n scroll-snap-align: end;\n }\n`;\n\nexport class ElDmCarousel extends BaseElement {\n static properties = {\n orientation: { type: String, reflect: true, default: 'horizontal' },\n align: { type: String, reflect: true, default: 'start' },\n color: { type: String, reflect: true },\n };\n declare orientation: CarouselOrientation;\n declare align: CarouselAlign;\n declare color: CarouselColor;\n constructor() {\n super();\n this.attachStyles(styles);\n }\n render(): string {\n const orientation = ORIENTATIONS.includes(this.orientation) ? this.orientation : 'horizontal';\n const classes = ['carousel', `carousel-${orientation}`];\n if (ALIGNS.includes(this.align)) classes.push(`carousel-${this.align}`);\n if (COLORS.includes(this.color)) classes.push(`carousel-${this.color}`);\n const label = this.getAttribute('aria-label');\n const labelAttribute = label ? ` aria-label=\"${escapeAttribute(label)}\"` : '';\n return `<div class=\"${classes.join(' ')}\" part=\"carousel\" tabindex=\"0\"${labelAttribute}><slot></slot></div>`;\n }\n}\n",
6
+ "import { ElDmCarousel } from './el-dm-carousel.js';\n\nexport { ElDmCarousel };\nexport * from './el-dm-carousel.js';\n\nexport function register(): void {\n if (!customElements.get('el-dm-carousel')) {\n customElements.define('el-dm-carousel', ElDmCarousel);\n }\n}\n"
7
+ ],
8
+ "mappings": ";AAAA;AACA,gBAAS;AAMT,IAAM,eAAsC,CAAC,cAAc,UAAU;AACrE,IAAM,SAA0B,CAAC,SAAS,UAAU,KAAK;AACzD,IAAM,SAA0B;AAAA,EAC9B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AA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AAI,gBAAgB,GAAG;AAAA,IACzC,eAAe,OAAO,kBAAkB,YAAY;AAAA,EACtD;AAAA;",
9
+ "debugId": "7F379B6D9CB3D64C64756E2164756E21",
10
+ "names": []
11
+ }
@@ -0,0 +1,77 @@
1
+ // src/el-dm-carousel.ts
2
+ import { BaseElement, css } from "@duskmoon-dev/el-base";
3
+ import { css as carouselCSS } from "@duskmoon-dev/core/components/carousel";
4
+ var ORIENTATIONS = ["horizontal", "vertical"];
5
+ var ALIGNS = ["start", "center", "end"];
6
+ var COLORS = [
7
+ "primary",
8
+ "secondary",
9
+ "tertiary",
10
+ "info",
11
+ "success",
12
+ "warning",
13
+ "error"
14
+ ];
15
+ var escapeAttribute = (value) => value.replaceAll("&", "&amp;").replaceAll('"', "&quot;").replaceAll("<", "&lt;");
16
+ var coreStyles = carouselCSS.replace(/@layer\s+components\s*\{/, "").replace(/\}\s*$/, "");
17
+ var styles = css`
18
+ :host {
19
+ display: block;
20
+ min-width: 0;
21
+ }
22
+ :host([hidden]) {
23
+ display: none !important;
24
+ }
25
+ ${coreStyles}
26
+ .carousel > slot {
27
+ display: contents;
28
+ }
29
+ .carousel ::slotted(*) {
30
+ flex: none;
31
+ min-inline-size: 0;
32
+ max-inline-size: 100%;
33
+ scroll-snap-align: start;
34
+ overflow-wrap: anywhere;
35
+ }
36
+ .carousel-center ::slotted(*) {
37
+ scroll-snap-align: center;
38
+ }
39
+ .carousel-end ::slotted(*) {
40
+ scroll-snap-align: end;
41
+ }
42
+ `;
43
+
44
+ class ElDmCarousel extends BaseElement {
45
+ static properties = {
46
+ orientation: { type: String, reflect: true, default: "horizontal" },
47
+ align: { type: String, reflect: true, default: "start" },
48
+ color: { type: String, reflect: true }
49
+ };
50
+ constructor() {
51
+ super();
52
+ this.attachStyles(styles);
53
+ }
54
+ render() {
55
+ const orientation = ORIENTATIONS.includes(this.orientation) ? this.orientation : "horizontal";
56
+ const classes = ["carousel", `carousel-${orientation}`];
57
+ if (ALIGNS.includes(this.align))
58
+ classes.push(`carousel-${this.align}`);
59
+ if (COLORS.includes(this.color))
60
+ classes.push(`carousel-${this.color}`);
61
+ const label = this.getAttribute("aria-label");
62
+ const labelAttribute = label ? ` aria-label="${escapeAttribute(label)}"` : "";
63
+ return `<div class="${classes.join(" ")}" part="carousel" tabindex="0"${labelAttribute}><slot></slot></div>`;
64
+ }
65
+ }
66
+ // src/index.ts
67
+ function register() {
68
+ if (!customElements.get("el-dm-carousel")) {
69
+ customElements.define("el-dm-carousel", ElDmCarousel);
70
+ }
71
+ }
72
+
73
+ // src/register.ts
74
+ register();
75
+
76
+ //# debugId=178CBEB2A1914D8864756E2164756E21
77
+ //# sourceMappingURL=register.js.map
@@ -0,0 +1,12 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/el-dm-carousel.ts", "../../src/index.ts", "../../src/register.ts"],
4
+ "sourcesContent": [
5
+ "import { BaseElement, css } from '@duskmoon-dev/el-base';\nimport { css as carouselCSS } from '@duskmoon-dev/core/components/carousel';\n\nexport type CarouselOrientation = 'horizontal' | 'vertical';\nexport type CarouselAlign = 'start' | 'center' | 'end';\nexport type CarouselColor =\n 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'warning' | 'error';\nconst ORIENTATIONS: CarouselOrientation[] = ['horizontal', 'vertical'];\nconst ALIGNS: CarouselAlign[] = ['start', 'center', 'end'];\nconst COLORS: CarouselColor[] = [\n 'primary',\n 'secondary',\n 'tertiary',\n 'info',\n 'success',\n 'warning',\n 'error',\n];\nconst escapeAttribute = (value: string): string =>\n value.replaceAll('&', '&amp;').replaceAll('\"', '&quot;').replaceAll('<', '&lt;');\n\nconst coreStyles = carouselCSS.replace(/@layer\\s+components\\s*\\{/, '').replace(/\\}\\s*$/, '');\nconst styles = css`\n :host {\n display: block;\n min-width: 0;\n }\n :host([hidden]) {\n display: none !important;\n }\n ${coreStyles}\n .carousel > slot {\n display: contents;\n }\n .carousel ::slotted(*) {\n flex: none;\n min-inline-size: 0;\n max-inline-size: 100%;\n scroll-snap-align: start;\n overflow-wrap: anywhere;\n }\n .carousel-center ::slotted(*) {\n scroll-snap-align: center;\n }\n .carousel-end ::slotted(*) {\n scroll-snap-align: end;\n }\n`;\n\nexport class ElDmCarousel extends BaseElement {\n static properties = {\n orientation: { type: String, reflect: true, default: 'horizontal' },\n align: { type: String, reflect: true, default: 'start' },\n color: { type: String, reflect: true },\n };\n declare orientation: CarouselOrientation;\n declare align: CarouselAlign;\n declare color: CarouselColor;\n constructor() {\n super();\n this.attachStyles(styles);\n }\n render(): string {\n const orientation = ORIENTATIONS.includes(this.orientation) ? this.orientation : 'horizontal';\n const classes = ['carousel', `carousel-${orientation}`];\n if (ALIGNS.includes(this.align)) classes.push(`carousel-${this.align}`);\n if (COLORS.includes(this.color)) classes.push(`carousel-${this.color}`);\n const label = this.getAttribute('aria-label');\n const labelAttribute = label ? ` aria-label=\"${escapeAttribute(label)}\"` : '';\n return `<div class=\"${classes.join(' ')}\" part=\"carousel\" tabindex=\"0\"${labelAttribute}><slot></slot></div>`;\n }\n}\n",
6
+ "import { ElDmCarousel } from './el-dm-carousel.js';\n\nexport { ElDmCarousel };\nexport * from './el-dm-carousel.js';\n\nexport function register(): void {\n if (!customElements.get('el-dm-carousel')) {\n customElements.define('el-dm-carousel', ElDmCarousel);\n }\n}\n",
7
+ "import { register } from './index.js';\n\nregister();\n"
8
+ ],
9
+ "mappings": ";AAAA;AACA,gBAAS;AAMT,IAAM,eAAsC,CAAC,cAAc,UAAU;AACrE,IAAM,SAA0B,CAAC,SAAS,UAAU,KAAK;AACzD,IAAM,SAA0B;AAAA,EAC9B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AACA,IAAM,kBAAkB,CAAC,UACvB,MAAM,WAAW,KAAK,OAAO,EAAE,WAAW,KAAK,QAAQ,EAAE,WAAW,KAAK,MAAM;AAEjF,IAAM,aAAa,YAAY,QAAQ,4BAA4B,EAAE,EAAE,QAAQ,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.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../src/duskmoon-core.d.ts","../../../packages/base/dist/types/base-element.d.ts","../../../packages/base/dist/types/styles.d.ts","../../../packages/base/dist/types/animations.d.ts","../../../packages/base/dist/types/themes.d.ts","../../../packages/base/dist/types/mixins.d.ts","../../../packages/base/dist/types/types.d.ts","../../../packages/base/dist/types/validation.d.ts","../../../packages/base/dist/types/performance.d.ts","../../../packages/base/dist/types/index.d.ts","../../../node_modules/.bun/@duskmoon-dev+core@1.19.9+e83bd97e7d41411e/node_modules/@duskmoon-dev/core/dist/esm/components/carousel.d.ts","../src/el-dm-carousel.ts","../src/index.ts","../src/register.ts"],"fileIdsList":[[60,69],[71],[72],[61,62,63,64,65,66,67,68],[61],[66]],"fileInfos":[{"version":"bcd24271a113971ba9eb71ff8cb01bc6b0f872a85c23fdbe5d93065b375933cd","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f88bedbeb09c6f5a6645cb24c7c55f1aa22d19ae96c8e6959cbd8b85a707bc6","impliedFormat":1},{"version":"7fe93b39b810eadd916be8db880dd7f0f7012a5cc6ffb62de8f62a2117fa6f1f","impliedFormat":1},{"version":"bb0074cc08b84a2374af33d8bf044b80851ccc9e719a5e202eacf40db2c31600","impliedFormat":1},{"version":"1a7daebe4f45fb03d9ec53d60008fbf9ac45a697fdc89e4ce218bc94b94f94d6","impliedFormat":1},{"version":"f94b133a3cb14a288803be545ac2683e0d0ff6661bcd37e31aaaec54fc382aed","impliedFormat":1},{"version":"f59d0650799f8782fd74cf73c19223730c6d1b9198671b1c5b3a38e1188b5953","impliedFormat":1},{"version":"8a15b4607d9a499e2dbeed9ec0d3c0d7372c850b2d5f1fb259e8f6d41d468a84","impliedFormat":1},{"version":"26e0fe14baee4e127f4365d1ae0b276f400562e45e19e35fd2d4c296684715e6","impliedFormat":1},{"version":"d6b1eba8496bdd0eed6fc8a685768fe01b2da4a0388b5fe7df558290bffcf32f","affectsGlobalScope":true,"impliedFormat":1},{"version":"7f57fc4404ff020bc45b9c620aff2b40f700b95fe31164024c453a5e3c163c54","impliedFormat":1},{"version":"eadcffda2aa84802c73938e589b9e58248d74c59cb7fcbca6474e3435ac15504","affectsGlobalScope":true,"impliedFormat":1},{"version":"105ba8ff7ba746404fe1a2e189d1d3d2e0eb29a08c18dded791af02f29fb4711","affectsGlobalScope":true,"impliedFormat":1},{"version":"00343ca5b2e3d48fa5df1db6e32ea2a59afab09590274a6cccb1dbae82e60c7c","affectsGlobalScope":true,"impliedFormat":1},{"version":"ebd9f816d4002697cb2864bea1f0b70a103124e18a8cd9645eeccc09bdf80ab4","affectsGlobalScope":true,"impliedFormat":1},{"version":"2c1afac30a01772cd2a9a298a7ce7706b5892e447bb46bdbeef720f7b5da77ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"7b0225f483e4fa685625ebe43dd584bb7973bbd84e66a6ba7bbe175ee1048b4f","affectsGlobalScope":true,"impliedFormat":1},{"version":"c0a4b8ac6ce74679c1da2b3795296f5896e31c38e888469a8e0f99dc3305de60","affectsGlobalScope":true,"impliedFormat":1},{"version":"3084a7b5f569088e0146533a00830e206565de65cae2239509168b11434cd84f","affectsGlobalScope":true,"impliedFormat":1},{"version":"c5079c53f0f141a0698faa903e76cb41cd664e3efb01cc17a5c46ec2eb0bef42","affectsGlobalScope":true,"impliedFormat":1},{"version":"32cafbc484dea6b0ab62cf8473182bbcb23020d70845b406f80b7526f38ae862","affectsGlobalScope":true,"impliedFormat":1},{"version":"fca4cdcb6d6c5ef18a869003d02c9f0fd95df8cfaf6eb431cd3376bc034cad36","affectsGlobalScope":true,"impliedFormat":1},{"version":"b93ec88115de9a9dc1b602291b85baf825c85666bf25985cc5f698073892b467","affectsGlobalScope":true,"impliedFormat":1},{"version":"f5c06dcc3fe849fcb297c247865a161f995cc29de7aa823afdd75aaaddc1419b","affectsGlobalScope":true,"impliedFormat":1},{"version":"b77e16112127a4b169ef0b8c3a4d730edf459c5f25fe52d5e436a6919206c4d7","affectsGlobalScope":true,"impliedFormat":1},{"version":"fbffd9337146eff822c7c00acbb78b01ea7ea23987f6c961eba689349e744f8c","affectsGlobalScope":true,"impliedFormat":1},{"version":"a995c0e49b721312f74fdfb89e4ba29bd9824c770bbb4021d74d2bf560e4c6bd","affectsGlobalScope":true,"impliedFormat":1},{"version":"c7b3542146734342e440a84b213384bfa188835537ddbda50d30766f0593aff9","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce6180fa19b1cccd07ee7f7dbb9a367ac19c0ed160573e4686425060b6df7f57","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f02e2476bccb9dbe21280d6090f0df17d2f66b74711489415a8aa4df73c9675","affectsGlobalScope":true,"impliedFormat":1},{"version":"45e3ab34c1c013c8ab2dc1ba4c80c780744b13b5676800ae2e3be27ae862c40c","affectsGlobalScope":true,"impliedFormat":1},{"version":"805c86f6cca8d7702a62a844856dbaa2a3fd2abef0536e65d48732441dde5b5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"e42e397f1a5a77994f0185fd1466520691456c772d06bf843e5084ceb879a0ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"f4c2b41f90c95b1c532ecc874bd3c111865793b23aebcc1c3cbbabcd5d76ffb0","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab26191cfad5b66afa11b8bf935ef1cd88fabfcb28d30b2dfa6fad877d050332","affectsGlobalScope":true,"impliedFormat":1},{"version":"2088bc26531e38fb05eedac2951480db5309f6be3fa4a08d2221abb0f5b4200d","affectsGlobalScope":true,"impliedFormat":1},{"version":"cb9d366c425fea79716a8fb3af0d78e6b22ebbab3bd64d25063b42dc9f531c1e","affectsGlobalScope":true,"impliedFormat":1},{"version":"500934a8089c26d57ebdb688fc9757389bb6207a3c8f0674d68efa900d2abb34","affectsGlobalScope":true,"impliedFormat":1},{"version":"689da16f46e647cef0d64b0def88910e818a5877ca5379ede156ca3afb780ac3","affectsGlobalScope":true,"impliedFormat":1},{"version":"bc21cc8b6fee4f4c2440d08035b7ea3c06b3511314c8bab6bef7a92de58a2593","affectsGlobalScope":true,"impliedFormat":1},{"version":"7ca53d13d2957003abb47922a71866ba7cb2068f8d154877c596d63c359fed25","affectsGlobalScope":true,"impliedFormat":1},{"version":"54725f8c4df3d900cb4dac84b64689ce29548da0b4e9b7c2de61d41c79293611","affectsGlobalScope":true,"impliedFormat":1},{"version":"e5594bc3076ac29e6c1ebda77939bc4c8833de72f654b6e376862c0473199323","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f3eb332c2d73e729f3364fcc0c2b375e72a121e8157d25a82d67a138c83a95c","affectsGlobalScope":true,"impliedFormat":1},{"version":"6f4427f9642ce8d500970e4e69d1397f64072ab73b97e476b4002a646ac743b1","affectsGlobalScope":true,"impliedFormat":1},{"version":"48915f327cd1dea4d7bd358d9dc7732f58f9e1626a29cc0c05c8c692419d9bb7","affectsGlobalScope":true,"impliedFormat":1},{"version":"b7bf9377723203b5a6a4b920164df22d56a43f593269ba6ae1fdc97774b68855","affectsGlobalScope":true,"impliedFormat":1},{"version":"db9709688f82c9e5f65a119c64d835f906efe5f559d08b11642d56eb85b79357","affectsGlobalScope":true,"impliedFormat":1},{"version":"4b25b8c874acd1a4cf8444c3617e037d444d19080ac9f634b405583fd10ce1f7","affectsGlobalScope":true,"impliedFormat":1},{"version":"37be57d7c90cf1f8112ee2636a068d8fd181289f82b744160ec56a7dc158a9f5","affectsGlobalScope":true,"impliedFormat":1},{"version":"a917a49ac94cd26b754ab84e113369a75d1a47a710661d7cd25e961cc797065f","affectsGlobalScope":true,"impliedFormat":1},{"version":"6d3261badeb7843d157ef3e6f5d1427d0eeb0af0cf9df84a62cfd29fd47ac86e","affectsGlobalScope":true,"impliedFormat":1},{"version":"195daca651dde22f2167ac0d0a05e215308119a3100f5e6268e8317d05a92526","affectsGlobalScope":true,"impliedFormat":1},{"version":"8b11e4285cd2bb164a4dc09248bdec69e9842517db4ca47c1ba913011e44ff2f","affectsGlobalScope":true,"impliedFormat":1},{"version":"0508571a52475e245b02bc50fa1394065a0a3d05277fbf5120c3784b85651799","affectsGlobalScope":true,"impliedFormat":1},{"version":"8f9af488f510c3015af3cc8c267a9e9d96c4dd38a1fdff0e11dc5a544711415b","affectsGlobalScope":true,"impliedFormat":1},{"version":"fc611fea8d30ea72c6bbfb599c9b4d393ce22e2f5bfef2172534781e7d138104","affectsGlobalScope":true,"impliedFormat":1},{"version":"1ce14b81c5cc821994aa8ec1d42b220dd41b27fcc06373bce3958af7421b77d4","affectsGlobalScope":true,"impliedFormat":1},{"version":"b3a048b3e9302ef9a34ef4ebb9aecfb28b66abb3bce577206a79fee559c230da","affectsGlobalScope":true,"impliedFormat":1},"891dc509530a8ce5ea7069fafd1ac106574418afc85ec2a29fff45a9b1305676","42526b6de804c10fd86f1cf55a6c660a74ee448e381f0f78356f223b75982280","28914adcfb92fa94199e1c887da7d67a7d9d736d9571627d6b02e55ff82f577b","b0a69607a92876948c2a42e3aa6703b0d724699468ed7e3c6e2a237d119a9db9","cdacb8e4ac607a46494d1187e073382c43e7269e8bf698502a285a8ccb470925","f5091ebbd718ea236a7f503df569deb07aff0621aa8f73ed90e419de88f006aa","d3a328c0eccf652bc8b6c14515a8b848a558b9d684e15a7c0c2e15de5016df57","1b5193795ee478857bf1115fed004151284dd4da883a5a4f22e62631c3b414ad","3be01044afc63501423c361deb531d3e95f5c2677f1f7a628802bd346988d62c","78d8d1ca7d54a437702c8a8c08764b6a49f2cf2ca357d0e459bfe89a06abf50a",{"version":"b751c35e2a5ec83e5119348114d562cfccb12ec0eece4ad6c8a387706841e1ed","impliedFormat":99},{"version":"7b9ffb28836ad8b6032e5fe02dbba6c9aa17e6a068113271be2204180e33ebe8","signature":"b960decf31035a26fd729315538f7c02456bbc63d4b06538f987d35211e70713"},{"version":"81e42f98e1fee437fe1220ea4b6e574f857779a73ac1e61e0d2e5ce20d136d82","signature":"7da0dd515fb24b8449c43ac160b2a075e02c3bb75ee90f56e1e5f6382725e821"},{"version":"e0a32396c971f440a5871afb0cc7947f33b4854a30f95b8e90e0a9aa0dd3f6bd","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"}],"root":[60,[71,73]],"options":{"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":99,"outDir":"./types","rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":9},"referencedMap":[[71,1],[72,2],[73,3],[69,4],[65,5],[67,6]],"latestChangedDtsFile":"./types/register.d.ts","version":"6.0.3"}
@@ -0,0 +1,28 @@
1
+ import { BaseElement } from '@duskmoon-dev/el-base';
2
+ export type CarouselOrientation = 'horizontal' | 'vertical';
3
+ export type CarouselAlign = 'start' | 'center' | 'end';
4
+ export type CarouselColor = 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'warning' | 'error';
5
+ export declare class ElDmCarousel extends BaseElement {
6
+ static properties: {
7
+ orientation: {
8
+ type: StringConstructor;
9
+ reflect: boolean;
10
+ default: string;
11
+ };
12
+ align: {
13
+ type: StringConstructor;
14
+ reflect: boolean;
15
+ default: string;
16
+ };
17
+ color: {
18
+ type: StringConstructor;
19
+ reflect: boolean;
20
+ };
21
+ };
22
+ orientation: CarouselOrientation;
23
+ align: CarouselAlign;
24
+ color: CarouselColor;
25
+ constructor();
26
+ render(): string;
27
+ }
28
+ //# sourceMappingURL=el-dm-carousel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"el-dm-carousel.d.ts","sourceRoot":"","sources":["../../src/el-dm-carousel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAO,MAAM,uBAAuB,CAAC;AAGzD,MAAM,MAAM,mBAAmB,GAAG,YAAY,GAAG,UAAU,CAAC;AAC5D,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;AACvD,MAAM,MAAM,aAAa,GACvB,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AA2ClF,qBAAa,YAAa,SAAQ,WAAW;IAC3C,MAAM,CAAC,UAAU;;;;;;;;;;;;;;;MAIf;IACM,WAAW,EAAE,mBAAmB,CAAC;IACjC,KAAK,EAAE,aAAa,CAAC;IACrB,KAAK,EAAE,aAAa,CAAC;;IAK7B,MAAM,IAAI,MAAM;CASjB"}
@@ -0,0 +1,5 @@
1
+ import { ElDmCarousel } from './el-dm-carousel.js';
2
+ export { ElDmCarousel };
3
+ export * from './el-dm-carousel.js';
4
+ export declare function register(): void;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEnD,OAAO,EAAE,YAAY,EAAE,CAAC;AACxB,cAAc,qBAAqB,CAAC;AAEpC,wBAAgB,QAAQ,IAAI,IAAI,CAI/B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=register.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../src/register.ts"],"names":[],"mappings":""}
package/package.json ADDED
@@ -0,0 +1,61 @@
1
+ {
2
+ "name": "@duskmoon-dev/el-carousel",
3
+ "version": "1.7.6",
4
+ "type": "module",
5
+ "main": "./dist/cjs/index.js",
6
+ "module": "./dist/esm/index.js",
7
+ "types": "./dist/types/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/types/index.d.ts",
11
+ "import": "./dist/esm/index.js",
12
+ "require": "./dist/cjs/index.js"
13
+ },
14
+ "./register": {
15
+ "types": "./dist/types/register.d.ts",
16
+ "import": "./dist/esm/register.js",
17
+ "require": "./dist/cjs/register.js"
18
+ }
19
+ },
20
+ "files": [
21
+ "dist"
22
+ ],
23
+ "scripts": {
24
+ "prebuild": "bun run clean",
25
+ "build": "bun run build:esm && bun run build:cjs && bun run build:types",
26
+ "build:esm": "bun build ./src/index.ts ./src/register.ts --outdir ./dist/esm --format esm --sourcemap --external @duskmoon-dev/el-base --external @duskmoon-dev/core",
27
+ "build:cjs": "bun build ./src/index.ts ./src/register.ts --outdir ./dist/cjs --format cjs --sourcemap --external @duskmoon-dev/el-base --external @duskmoon-dev/core",
28
+ "build:types": "tsc --emitDeclarationOnly --outDir ./dist/types",
29
+ "dev": "bun build ./src/index.ts --outdir ./dist/esm --format esm --sourcemap --external @duskmoon-dev/el-base --watch",
30
+ "clean": "del-cli dist",
31
+ "test": "bun test",
32
+ "typecheck": "tsc --noEmit",
33
+ "format": "prettier --write 'src/**/*.ts' '*.json'",
34
+ "format:check": "prettier --check 'src/**/*.ts' '*.json'",
35
+ "lint": "eslint src",
36
+ "lint:check": "eslint src --max-warnings 0",
37
+ "lint:fix": "eslint src --fix",
38
+ "release": "bun publish",
39
+ "release:dry-run": "bun publish --dry-run"
40
+ },
41
+ "dependencies": {
42
+ "@duskmoon-dev/el-base": "1.7.6",
43
+ "@duskmoon-dev/core": "1.19.9"
44
+ },
45
+ "devDependencies": {
46
+ "typescript": "6.0.3"
47
+ },
48
+ "publishConfig": {
49
+ "access": "public"
50
+ },
51
+ "keywords": [
52
+ "duskmoon-dev",
53
+ "custom-elements",
54
+ "web-components",
55
+ "carousel"
56
+ ],
57
+ "repository": {
58
+ "type": "git",
59
+ "url": "git+https://github.com/duskmoon-dev/duskmoon-elements.git"
60
+ }
61
+ }