@logosphere-ui/core 0.0.0-alpha.2

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.
Files changed (110) hide show
  1. package/README.md +759 -0
  2. package/dist/atoms/Badge/badge.d.ts +21 -0
  3. package/dist/atoms/Badge/index.d.ts +2 -0
  4. package/dist/atoms/Button/button.d.ts +11 -0
  5. package/dist/atoms/Button/index.d.ts +1 -0
  6. package/dist/atoms/Checkbox/checkbox.d.ts +20 -0
  7. package/dist/atoms/Checkbox/index.d.ts +1 -0
  8. package/dist/atoms/FormField/formfield.d.ts +30 -0
  9. package/dist/atoms/FormField/index.d.ts +2 -0
  10. package/dist/atoms/Switch/index.d.ts +1 -0
  11. package/dist/atoms/Switch/switch.d.ts +10 -0
  12. package/dist/badge-BbhaO73N.cjs +13 -0
  13. package/dist/badge-DE7Tgd8Z.js +71 -0
  14. package/dist/badge.cjs +1 -0
  15. package/dist/badge.js +4 -0
  16. package/dist/breadcrumb-B-4yqoJZ.js +41 -0
  17. package/dist/breadcrumb-Cop-B1J7.cjs +12 -0
  18. package/dist/breadcrumb.cjs +1 -0
  19. package/dist/breadcrumb.js +4 -0
  20. package/dist/button-C1EwOosO.js +58 -0
  21. package/dist/button-CDRccsk9.cjs +10 -0
  22. package/dist/button.cjs +1 -0
  23. package/dist/button.js +4 -0
  24. package/dist/card-CUhlTJyJ.js +97 -0
  25. package/dist/card-n8ka8Zk-.cjs +43 -0
  26. package/dist/card.cjs +1 -0
  27. package/dist/card.js +4 -0
  28. package/dist/chatbot-Ces7Xveb.js +496 -0
  29. package/dist/chatbot-oRwt64d8.cjs +160 -0
  30. package/dist/chatbot.cjs +1 -0
  31. package/dist/chatbot.js +4 -0
  32. package/dist/checkbox-7Rb3WKGx.js +119 -0
  33. package/dist/checkbox-CdDTRdKV.cjs +37 -0
  34. package/dist/checkbox.cjs +1 -0
  35. package/dist/checkbox.js +4 -0
  36. package/dist/combobox-BJbI-Tgi.js +268 -0
  37. package/dist/combobox-pmE7bgEL.cjs +99 -0
  38. package/dist/combobox.cjs +1 -0
  39. package/dist/combobox.js +4 -0
  40. package/dist/datepicker-DFJx45C-.js +750 -0
  41. package/dist/datepicker-b9JGTTMx.cjs +115 -0
  42. package/dist/datepicker.cjs +1 -0
  43. package/dist/datepicker.js +4 -0
  44. package/dist/directive-Z_rhNYWK.js +240 -0
  45. package/dist/directive-ekjitgzi.cjs +3 -0
  46. package/dist/download-manager-A4fOxGWJ.js +381 -0
  47. package/dist/download-manager-BSIMTGaK.cjs +97 -0
  48. package/dist/download-manager.cjs +1 -0
  49. package/dist/download-manager.js +4 -0
  50. package/dist/formfield-D_7NFFoe.cjs +27 -0
  51. package/dist/formfield-d8fp9FTV.js +118 -0
  52. package/dist/formfield.cjs +1 -0
  53. package/dist/formfield.js +4 -0
  54. package/dist/index.cjs +1 -0
  55. package/dist/index.d.ts +16 -0
  56. package/dist/index.js +34 -0
  57. package/dist/index.umd.js +819 -0
  58. package/dist/input-ByllRq9M.js +192 -0
  59. package/dist/input-DsIOQPGV.cjs +46 -0
  60. package/dist/input.cjs +1 -0
  61. package/dist/input.js +4 -0
  62. package/dist/live-BX-yBGvT.cjs +1 -0
  63. package/dist/live-WTVSYE2F.js +24 -0
  64. package/dist/modal-Bfc6WQSL.js +110 -0
  65. package/dist/modal-DQ8VFL-P.cjs +39 -0
  66. package/dist/modal.cjs +1 -0
  67. package/dist/modal.js +4 -0
  68. package/dist/molecules/Breadcrumb/breadcrumb.d.ts +10 -0
  69. package/dist/molecules/Breadcrumb/index.d.ts +1 -0
  70. package/dist/molecules/Card/card.d.ts +16 -0
  71. package/dist/molecules/Card/index.d.ts +1 -0
  72. package/dist/molecules/Input/index.d.ts +2 -0
  73. package/dist/molecules/Input/input.d.ts +50 -0
  74. package/dist/molecules/Popover/index.d.ts +1 -0
  75. package/dist/molecules/Popover/popover.d.ts +33 -0
  76. package/dist/molecules/Textarea/index.d.ts +1 -0
  77. package/dist/molecules/Textarea/text-area.d.ts +49 -0
  78. package/dist/organisms/Chatbot/chatbot.d.ts +79 -0
  79. package/dist/organisms/Chatbot/index.d.ts +1 -0
  80. package/dist/organisms/Combobox/combobox.d.ts +49 -0
  81. package/dist/organisms/Combobox/index.d.ts +1 -0
  82. package/dist/organisms/DatePicker/datepicker.d.ts +79 -0
  83. package/dist/organisms/DatePicker/index.d.ts +1 -0
  84. package/dist/organisms/DownloadManager/download-manager.d.ts +52 -0
  85. package/dist/organisms/DownloadManager/index.d.ts +1 -0
  86. package/dist/organisms/Modal/index.d.ts +1 -0
  87. package/dist/organisms/Modal/modal.d.ts +21 -0
  88. package/dist/organisms/Tab/index.d.ts +1 -0
  89. package/dist/organisms/Tab/tab.d.ts +33 -0
  90. package/dist/popover-C_Ob86CJ.cjs +30 -0
  91. package/dist/popover-D-FXdEdS.js +1040 -0
  92. package/dist/popover.cjs +1 -0
  93. package/dist/popover.js +4 -0
  94. package/dist/shared/icons/icon-map.d.ts +1 -0
  95. package/dist/shared/icons/ui-icon.d.ts +15 -0
  96. package/dist/styles/main.css +247 -0
  97. package/dist/switch-Cpl53nRW.js +64 -0
  98. package/dist/switch-Rnnn10bn.cjs +17 -0
  99. package/dist/switch.cjs +1 -0
  100. package/dist/switch.js +4 -0
  101. package/dist/tab-BKdN4xAz.js +176 -0
  102. package/dist/tab-DcjAlXzU.cjs +40 -0
  103. package/dist/tab.cjs +1 -0
  104. package/dist/tab.js +4 -0
  105. package/dist/text-area-CtZY3yLA.js +204 -0
  106. package/dist/text-area-DFDF5oos.cjs +44 -0
  107. package/dist/textarea.cjs +1 -0
  108. package/dist/textarea.js +4 -0
  109. package/dist/vite.svg +1 -0
  110. package/package.json +185 -0
@@ -0,0 +1,750 @@
1
+ import { LitElement as Ye, html as E, nothing as ce, unsafeCSS as ke, css as De } from "lit";
2
+ import { property as w, state as C, customElement as xe } from "lit/decorators.js";
3
+ import v from "dayjs";
4
+ function q(e) {
5
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
6
+ }
7
+ var Z = { exports: {} }, Se = Z.exports, ue;
8
+ function $e() {
9
+ return ue || (ue = 1, (function(e, t) {
10
+ (function(r, a) {
11
+ e.exports = a();
12
+ })(Se, (function() {
13
+ var r = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" };
14
+ return function(a, s, l) {
15
+ var o = s.prototype, c = o.format;
16
+ l.en.formats = r, o.format = function(u) {
17
+ u === void 0 && (u = "YYYY-MM-DDTHH:mm:ssZ");
18
+ var y = this.$locale().formats, h = (function(i, d) {
19
+ return i.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(M, S, b) {
20
+ var n = b && b.toUpperCase();
21
+ return S || d[b] || r[b] || d[n].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(p, f, _) {
22
+ return f || _.slice(1);
23
+ }));
24
+ }));
25
+ })(u, y === void 0 ? {} : y);
26
+ return c.call(this, h);
27
+ };
28
+ };
29
+ }));
30
+ })(Z)), Z.exports;
31
+ }
32
+ var Ee = $e();
33
+ const Le = /* @__PURE__ */ q(Ee);
34
+ var N = { exports: {} }, ze = N.exports, he;
35
+ function Ce() {
36
+ return he || (he = 1, (function(e, t) {
37
+ (function(r, a) {
38
+ e.exports = a();
39
+ })(ze, (function() {
40
+ var r = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, a = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, s = /\d/, l = /\d\d/, o = /\d\d?/, c = /\d*[^-_:/,()\s\d]+/, u = {}, y = function(n) {
41
+ return (n = +n) + (n > 68 ? 1900 : 2e3);
42
+ }, h = function(n) {
43
+ return function(p) {
44
+ this[n] = +p;
45
+ };
46
+ }, i = [/[+-]\d\d:?(\d\d)?|Z/, function(n) {
47
+ (this.zone || (this.zone = {})).offset = (function(p) {
48
+ if (!p || p === "Z") return 0;
49
+ var f = p.match(/([+-]|\d\d)/g), _ = 60 * f[1] + (+f[2] || 0);
50
+ return _ === 0 ? 0 : f[0] === "+" ? -_ : _;
51
+ })(n);
52
+ }], d = function(n) {
53
+ var p = u[n];
54
+ return p && (p.indexOf ? p : p.s.concat(p.f));
55
+ }, M = function(n, p) {
56
+ var f, _ = u.meridiem;
57
+ if (_) {
58
+ for (var D = 1; D <= 24; D += 1) if (n.indexOf(_(D, 0, p)) > -1) {
59
+ f = D > 12;
60
+ break;
61
+ }
62
+ } else f = n === (p ? "pm" : "PM");
63
+ return f;
64
+ }, S = { A: [c, function(n) {
65
+ this.afternoon = M(n, !1);
66
+ }], a: [c, function(n) {
67
+ this.afternoon = M(n, !0);
68
+ }], Q: [s, function(n) {
69
+ this.month = 3 * (n - 1) + 1;
70
+ }], S: [s, function(n) {
71
+ this.milliseconds = 100 * +n;
72
+ }], SS: [l, function(n) {
73
+ this.milliseconds = 10 * +n;
74
+ }], SSS: [/\d{3}/, function(n) {
75
+ this.milliseconds = +n;
76
+ }], s: [o, h("seconds")], ss: [o, h("seconds")], m: [o, h("minutes")], mm: [o, h("minutes")], H: [o, h("hours")], h: [o, h("hours")], HH: [o, h("hours")], hh: [o, h("hours")], D: [o, h("day")], DD: [l, h("day")], Do: [c, function(n) {
77
+ var p = u.ordinal, f = n.match(/\d+/);
78
+ if (this.day = f[0], p) for (var _ = 1; _ <= 31; _ += 1) p(_).replace(/\[|\]/g, "") === n && (this.day = _);
79
+ }], w: [o, h("week")], ww: [l, h("week")], M: [o, h("month")], MM: [l, h("month")], MMM: [c, function(n) {
80
+ var p = d("months"), f = (d("monthsShort") || p.map((function(_) {
81
+ return _.slice(0, 3);
82
+ }))).indexOf(n) + 1;
83
+ if (f < 1) throw new Error();
84
+ this.month = f % 12 || f;
85
+ }], MMMM: [c, function(n) {
86
+ var p = d("months").indexOf(n) + 1;
87
+ if (p < 1) throw new Error();
88
+ this.month = p % 12 || p;
89
+ }], Y: [/[+-]?\d+/, h("year")], YY: [l, function(n) {
90
+ this.year = y(n);
91
+ }], YYYY: [/\d{4}/, h("year")], Z: i, ZZ: i };
92
+ function b(n) {
93
+ var p, f;
94
+ p = n, f = u && u.formats;
95
+ for (var _ = (n = p.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(H, P, $) {
96
+ var x = $ && $.toUpperCase();
97
+ return P || f[$] || r[$] || f[x].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(O, A, R) {
98
+ return A || R.slice(1);
99
+ }));
100
+ }))).match(a), D = _.length, Y = 0; Y < D; Y += 1) {
101
+ var T = _[Y], B = S[T], L = B && B[0], z = B && B[1];
102
+ _[Y] = z ? { regex: L, parser: z } : T.replace(/^\[|\]$/g, "");
103
+ }
104
+ return function(H) {
105
+ for (var P = {}, $ = 0, x = 0; $ < D; $ += 1) {
106
+ var O = _[$];
107
+ if (typeof O == "string") x += O.length;
108
+ else {
109
+ var A = O.regex, R = O.parser, I = H.slice(x), F = A.exec(I)[0];
110
+ R.call(P, F), H = H.replace(F, "");
111
+ }
112
+ }
113
+ return (function(j) {
114
+ var G = j.afternoon;
115
+ if (G !== void 0) {
116
+ var k = j.hours;
117
+ G ? k < 12 && (j.hours += 12) : k === 12 && (j.hours = 0), delete j.afternoon;
118
+ }
119
+ })(P), P;
120
+ };
121
+ }
122
+ return function(n, p, f) {
123
+ f.p.customParseFormat = !0, n && n.parseTwoDigitYear && (y = n.parseTwoDigitYear);
124
+ var _ = p.prototype, D = _.parse;
125
+ _.parse = function(Y) {
126
+ var T = Y.date, B = Y.utc, L = Y.args;
127
+ this.$u = B;
128
+ var z = L[1];
129
+ if (typeof z == "string") {
130
+ var H = L[2] === !0, P = L[3] === !0, $ = H || P, x = L[2];
131
+ P && (x = L[2]), u = this.$locale(), !H && x && (u = f.Ls[x]), this.$d = (function(I, F, j, G) {
132
+ try {
133
+ if (["x", "X"].indexOf(F) > -1) return new Date((F === "X" ? 1e3 : 1) * I);
134
+ var k = b(F)(I), ee = k.year, K = k.month, ye = k.day, ve = k.hours, be = k.minutes, Me = k.seconds, we = k.milliseconds, de = k.zone, le = k.week, te = /* @__PURE__ */ new Date(), re = ye || (ee || K ? 1 : te.getDate()), ae = ee || te.getFullYear(), U = 0;
135
+ ee && !K || (U = K > 0 ? K - 1 : te.getMonth());
136
+ var W, ne = ve || 0, ie = be || 0, oe = Me || 0, se = we || 0;
137
+ return de ? new Date(Date.UTC(ae, U, re, ne, ie, oe, se + 60 * de.offset * 1e3)) : j ? new Date(Date.UTC(ae, U, re, ne, ie, oe, se)) : (W = new Date(ae, U, re, ne, ie, oe, se), le && (W = G(W).week(le).toDate()), W);
138
+ } catch {
139
+ return /* @__PURE__ */ new Date("");
140
+ }
141
+ })(T, z, B, f), this.init(), x && x !== !0 && (this.$L = this.locale(x).$L), $ && T != this.format(z) && (this.$d = /* @__PURE__ */ new Date("")), u = {};
142
+ } else if (z instanceof Array) for (var O = z.length, A = 1; A <= O; A += 1) {
143
+ L[1] = z[A - 1];
144
+ var R = f.apply(this, L);
145
+ if (R.isValid()) {
146
+ this.$d = R.$d, this.$L = R.$L, this.init();
147
+ break;
148
+ }
149
+ A === O && (this.$d = /* @__PURE__ */ new Date(""));
150
+ }
151
+ else D.call(this, Y);
152
+ };
153
+ };
154
+ }));
155
+ })(N)), N.exports;
156
+ }
157
+ var Pe = Ce();
158
+ const Oe = /* @__PURE__ */ q(Pe);
159
+ var V = { exports: {} }, Ae = V.exports, pe;
160
+ function Te() {
161
+ return pe || (pe = 1, (function(e, t) {
162
+ (function(r, a) {
163
+ e.exports = a();
164
+ })(Ae, (function() {
165
+ return function(r, a, s) {
166
+ a.prototype.isBetween = function(l, o, c, u) {
167
+ var y = s(l), h = s(o), i = (u = u || "()")[0] === "(", d = u[1] === ")";
168
+ return (i ? this.isAfter(y, c) : !this.isBefore(y, c)) && (d ? this.isBefore(h, c) : !this.isAfter(h, c)) || (i ? this.isBefore(y, c) : !this.isAfter(y, c)) && (d ? this.isAfter(h, c) : !this.isBefore(h, c));
169
+ };
170
+ };
171
+ }));
172
+ })(V)), V.exports;
173
+ }
174
+ var Be = Te();
175
+ const He = /* @__PURE__ */ q(Be);
176
+ var Q = { exports: {} }, Re = Q.exports, _e;
177
+ function je() {
178
+ return _e || (_e = 1, (function(e, t) {
179
+ (function(r, a) {
180
+ e.exports = a();
181
+ })(Re, (function() {
182
+ var r = "week", a = "year";
183
+ return function(s, l, o) {
184
+ var c = l.prototype;
185
+ c.week = function(u) {
186
+ if (u === void 0 && (u = null), u !== null) return this.add(7 * (u - this.week()), "day");
187
+ var y = this.$locale().yearStart || 1;
188
+ if (this.month() === 11 && this.date() > 25) {
189
+ var h = o(this).startOf(a).add(1, a).date(y), i = o(this).endOf(r);
190
+ if (h.isBefore(i)) return 1;
191
+ }
192
+ var d = o(this).startOf(a).date(y).startOf(r).subtract(1, "millisecond"), M = this.diff(d, r, !0);
193
+ return M < 0 ? o(this).startOf("week").week() : Math.ceil(M);
194
+ }, c.weeks = function(u) {
195
+ return u === void 0 && (u = null), this.week(u);
196
+ };
197
+ };
198
+ }));
199
+ })(Q)), Q.exports;
200
+ }
201
+ var Fe = je();
202
+ const qe = /* @__PURE__ */ q(Fe);
203
+ var X = { exports: {} }, Ie = X.exports, fe;
204
+ function Ge() {
205
+ return fe || (fe = 1, (function(e, t) {
206
+ (function(r, a) {
207
+ e.exports = a();
208
+ })(Ie, (function() {
209
+ return function(r, a, s) {
210
+ var l = a.prototype, o = function(i) {
211
+ return i && (i.indexOf ? i : i.s);
212
+ }, c = function(i, d, M, S, b) {
213
+ var n = i.name ? i : i.$locale(), p = o(n[d]), f = o(n[M]), _ = p || f.map((function(Y) {
214
+ return Y.slice(0, S);
215
+ }));
216
+ if (!b) return _;
217
+ var D = n.weekStart;
218
+ return _.map((function(Y, T) {
219
+ return _[(T + (D || 0)) % 7];
220
+ }));
221
+ }, u = function() {
222
+ return s.Ls[s.locale()];
223
+ }, y = function(i, d) {
224
+ return i.formats[d] || (function(M) {
225
+ return M.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(S, b, n) {
226
+ return b || n.slice(1);
227
+ }));
228
+ })(i.formats[d.toUpperCase()]);
229
+ }, h = function() {
230
+ var i = this;
231
+ return { months: function(d) {
232
+ return d ? d.format("MMMM") : c(i, "months");
233
+ }, monthsShort: function(d) {
234
+ return d ? d.format("MMM") : c(i, "monthsShort", "months", 3);
235
+ }, firstDayOfWeek: function() {
236
+ return i.$locale().weekStart || 0;
237
+ }, weekdays: function(d) {
238
+ return d ? d.format("dddd") : c(i, "weekdays");
239
+ }, weekdaysMin: function(d) {
240
+ return d ? d.format("dd") : c(i, "weekdaysMin", "weekdays", 2);
241
+ }, weekdaysShort: function(d) {
242
+ return d ? d.format("ddd") : c(i, "weekdaysShort", "weekdays", 3);
243
+ }, longDateFormat: function(d) {
244
+ return y(i.$locale(), d);
245
+ }, meridiem: this.$locale().meridiem, ordinal: this.$locale().ordinal };
246
+ };
247
+ l.localeData = function() {
248
+ return h.bind(this)();
249
+ }, s.localeData = function() {
250
+ var i = u();
251
+ return { firstDayOfWeek: function() {
252
+ return i.weekStart || 0;
253
+ }, weekdays: function() {
254
+ return s.weekdays();
255
+ }, weekdaysShort: function() {
256
+ return s.weekdaysShort();
257
+ }, weekdaysMin: function() {
258
+ return s.weekdaysMin();
259
+ }, months: function() {
260
+ return s.months();
261
+ }, monthsShort: function() {
262
+ return s.monthsShort();
263
+ }, longDateFormat: function(d) {
264
+ return y(i, d);
265
+ }, meridiem: i.meridiem, ordinal: i.ordinal };
266
+ }, s.months = function() {
267
+ return c(u(), "months");
268
+ }, s.monthsShort = function() {
269
+ return c(u(), "monthsShort", "months", 3);
270
+ }, s.weekdays = function(i) {
271
+ return c(u(), "weekdays", null, null, i);
272
+ }, s.weekdaysShort = function(i) {
273
+ return c(u(), "weekdaysShort", "weekdays", 3, i);
274
+ }, s.weekdaysMin = function(i) {
275
+ return c(u(), "weekdaysMin", "weekdays", 2, i);
276
+ };
277
+ };
278
+ }));
279
+ })(X)), X.exports;
280
+ }
281
+ var Ke = Ge();
282
+ const Ue = /* @__PURE__ */ q(Ke);
283
+ var J = { exports: {} }, We = J.exports, me;
284
+ function Ze() {
285
+ return me || (me = 1, (function(e, t) {
286
+ (function(r, a) {
287
+ e.exports = a(v);
288
+ })(We, (function(r) {
289
+ function a(o) {
290
+ return o && typeof o == "object" && "default" in o ? o : { default: o };
291
+ }
292
+ var s = a(r), l = { name: "tr", weekdays: "Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"), weekdaysShort: "Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"), weekdaysMin: "Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"), months: "Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"), monthsShort: "Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"), weekStart: 1, formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD.MM.YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd, D MMMM YYYY HH:mm" }, relativeTime: { future: "%s sonra", past: "%s önce", s: "birkaç saniye", m: "bir dakika", mm: "%d dakika", h: "bir saat", hh: "%d saat", d: "bir gün", dd: "%d gün", M: "bir ay", MM: "%d ay", y: "bir yıl", yy: "%d yıl" }, ordinal: function(o) {
293
+ return o + ".";
294
+ } };
295
+ return s.default.locale(l, null, !0), l;
296
+ }));
297
+ })(J)), J.exports;
298
+ }
299
+ Ze();
300
+ const Ne = '.dp{display:block;position:relative;font-family:var(--font-family-base);width:100%}.dp__input-wrapper{position:relative;width:100%}.dp__input{width:100%;height:40px;padding:0 var(--spacing-10) 0 var(--spacing-3);border:1px solid var(--color-border);border-radius:var(--radius-base);outline:none;font-size:var(--font-size-sm);font-family:var(--font-family-base);color:var(--color-body-text);background-color:var(--color-body-bg);transition:border-color var(--transition-speed-fast) var(--transition-timing);box-sizing:border-box}.dp__input::placeholder{color:var(--color-tertiary)}.dp__input:focus,.dp__input--open{border-color:var(--color-primary)}.dp__input:disabled{opacity:.5;cursor:not-allowed;background-color:var(--color-tertiary-bg)}.dp__input--error{border-color:var(--color-danger);background-color:var(--color-danger-bg-subtle)}.dp__input--required{border-color:var(--color-danger)}.dp__icon-btn{position:absolute;right:var(--spacing-2);top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer;color:var(--color-tertiary);display:inline-flex;align-items:center;justify-content:center;padding:0;line-height:1;transition:color var(--transition-speed-fast) var(--transition-timing)}.dp__icon-btn:hover{color:var(--color-body-text)}.dp__error-tooltip{position:absolute;top:calc(100% + var(--spacing-1));left:0;z-index:var(--z-index-tooltip);padding:var(--spacing-1) var(--spacing-2);font-size:var(--font-size-xs);color:var(--color-body-bg);background-color:var(--color-danger);border-radius:var(--radius-sm);box-shadow:var(--shadow-sm);pointer-events:none;white-space:nowrap;font-family:var(--font-family-base)}.dp__popup{position:fixed;background-color:var(--color-body-bg);border:1px solid var(--color-border);border-radius:var(--radius-lg);box-shadow:var(--shadow-md);z-index:var(--z-index-dropdown);padding:var(--spacing-4);box-sizing:border-box;overflow:hidden}.dp__header{display:flex;align-items:center;justify-content:space-between;margin-bottom:var(--spacing-3)}.dp__nav-btn{display:inline-flex;align-items:center;justify-content:center;padding:var(--spacing-2);border:none;background:none;border-radius:var(--radius-base);cursor:pointer;color:var(--color-body-text);transition:background-color var(--transition-speed-fast) var(--transition-timing)}.dp__nav-btn:hover{background-color:var(--color-tertiary-bg)}.dp__header-label{font-size:var(--font-size-xl);font-weight:var(--font-weight-semibold);letter-spacing:-.025em;-webkit-user-select:none;user-select:none;cursor:pointer;color:var(--color-body-text);transition:color var(--transition-speed-fast) var(--transition-timing)}.dp__header-label:hover{color:var(--color-primary)}.dp__weekdays{display:grid;grid-template-columns:repeat(7,1fr);text-align:center;font-size:var(--font-size-sm);color:var(--color-tertiary);margin-bottom:var(--spacing-1);-webkit-user-select:none;user-select:none}.dp__weekday{padding:var(--spacing-1) 0}.dp__grid{display:grid;grid-template-columns:repeat(7,1fr);row-gap:2px;outline:none}.dp__day{position:relative;height:36px;display:flex;align-items:center;justify-content:center;border:none;background:transparent;cursor:pointer;padding:0;min-width:0;border-radius:0;color:var(--color-body-text);font-family:var(--font-family-base)}.dp__day-num{position:relative;z-index:1;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-full);font-size:var(--font-size-sm);flex-shrink:0;transition:background-color var(--transition-speed-fast) var(--transition-timing),color var(--transition-speed-fast) var(--transition-timing)}.dp__day--range-start:before,.dp__day--range-end:before,.dp__day--range-between:before{content:"";position:absolute;top:2px;bottom:2px;background-color:color-mix(in srgb,var(--color-primary) 15%,transparent);z-index:0;pointer-events:none}.dp__day--range-start:before{left:50%;right:0}.dp__day--range-end:before{left:0;right:50%}.dp__day--range-between:before{left:0;right:0}.dp__day--out-of-month{opacity:.4}.dp__day--focused .dp__day-num{background-color:var(--color-tertiary-bg)}.dp__day--disabled{cursor:not-allowed;pointer-events:none}.dp__day--disabled .dp__day-num{color:var(--color-gray-300);background-color:var(--color-gray-50)}.dp__day--disabled-weekday{cursor:not-allowed;pointer-events:none}.dp__day--disabled-weekday .dp__day-num{color:var(--color-gray-300)}.dp__day--today .dp__day-num{background-color:var(--color-gray-200);color:var(--color-gray-800)}.dp__day--selected .dp__day-num{background-color:var(--color-primary);color:#fff}.dp__day--default:hover .dp__day-num{background-color:var(--color-tertiary-bg)}.dp__day--range-pending .dp__day-num,.dp__day--range-start .dp__day-num,.dp__day--range-end .dp__day-num{background-color:var(--color-primary);color:#fff}.dp__day--range-between .dp__day-num{color:var(--color-primary);background:transparent}.dp__month-grid,.dp__year-grid{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(4,1fr);gap:10px;margin-top:var(--spacing-3)}.dp__month-btn,.dp__year-btn{height:48px;display:flex;align-items:center;justify-content:center;border:none;border-radius:var(--radius-base);font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);font-family:var(--font-family-base);cursor:pointer;background:none;color:var(--color-body-text);transition:background-color var(--transition-speed-fast) var(--transition-timing),color var(--transition-speed-fast) var(--transition-timing)}.dp__month-btn:hover:not(.dp__month-btn--selected),.dp__year-btn:hover:not(.dp__year-btn--selected){background-color:var(--color-tertiary-bg)}.dp__month-btn--selected,.dp__year-btn--selected{background-color:var(--color-primary);color:#fff}.dp__month-btn--current:not(.dp__month-btn--selected),.dp__year-btn--current:not(.dp__year-btn--selected){background-color:var(--color-gray-200);color:var(--color-gray-800)}.dp__footer{display:flex;align-items:center;justify-content:space-evenly;margin-top:var(--spacing-4);padding-bottom:var(--spacing-3)}.dp__footer-btn{display:inline-flex;align-items:center;gap:var(--spacing-2);padding:var(--spacing-1) var(--spacing-2);font-size:var(--font-size-sm);color:var(--color-tertiary);border:none;border-radius:var(--radius-sm);background:none;cursor:pointer;font-family:var(--font-family-base);transition:background-color var(--transition-speed-fast) var(--transition-timing),color var(--transition-speed-fast) var(--transition-timing)}.dp__footer-btn:hover{background-color:var(--color-tertiary-bg);color:var(--color-body-text)}';
301
+ var Ve = Object.defineProperty, Qe = Object.getOwnPropertyDescriptor, g = (e, t, r, a) => {
302
+ for (var s = a > 1 ? void 0 : a ? Qe(t, r) : t, l = e.length - 1, o; l >= 0; l--)
303
+ (o = e[l]) && (s = (a ? o(t, r, s) : o(s)) || s);
304
+ return a && s && Ve(t, r, s), s;
305
+ };
306
+ v.extend(Le);
307
+ v.extend(Oe);
308
+ v.extend(He);
309
+ v.extend(qe);
310
+ v.extend(Ue);
311
+ v.locale("tr");
312
+ const Xe = [
313
+ "DD/MM/YYYY",
314
+ "DD.MM.YYYY",
315
+ "DD MM YYYY",
316
+ "DD-MM-YYYY",
317
+ "DD/MM/YY",
318
+ "DD.MM.YY",
319
+ "DD MM YY",
320
+ "DD-MM-YY",
321
+ "YYYY-MM-DD",
322
+ "YYYY/MM/DD",
323
+ "YYYY.MM.DD",
324
+ "YYYY MM DD"
325
+ ], Je = v.months(), ge = v.weekdaysShort(), et = [...ge.slice(1), ge[0]];
326
+ let tt = 0;
327
+ const rt = () => `dp-${++tt}`;
328
+ let m = class extends Ye {
329
+ constructor() {
330
+ super(...arguments), this.value = null, this.min = null, this.max = null, this.required = !1, this.disabled = !1, this.expandFactor = 1.05, this.placeholder = "GG/AA/YYYY veya GG.AA.YYYY", this.rangeMode = !1, this.disabledDays = [], this.rangeStart = null, this.rangeEnd = null, this._open = !1, this._cursor = v(), this._popupPos = null, this._rangeStart = null, this._rangeEnd = null, this._hoverDate = null, this._viewMode = "calendar", this._hasError = !1, this._errorMsg = "", this._errorTimer = null, this.inputId = rt(), this._outsideClick = (e) => {
331
+ this._open && (e.composedPath().includes(this) || (this._parseAndSetDate(), this._viewMode = "calendar", this._toggleOpen(!1)));
332
+ }, this._onScrollOrResize = () => {
333
+ this._open && this._recalcPopupPos();
334
+ }, this._clear = () => {
335
+ this._emitChange(null), this.rangeMode && (this._rangeStart = null, this._rangeEnd = null);
336
+ }, this._today = () => {
337
+ const e = v();
338
+ this._withinBounds(e) && this._select(e);
339
+ }, this._navigatePrevious = () => {
340
+ switch (this._viewMode) {
341
+ case "calendar":
342
+ this._cursor = this._cursor.subtract(1, "month");
343
+ break;
344
+ case "month":
345
+ this._cursor = this._cursor.subtract(1, "year");
346
+ break;
347
+ case "year":
348
+ this._cursor = this._cursor.subtract(12, "year");
349
+ break;
350
+ }
351
+ }, this._navigateNext = () => {
352
+ switch (this._viewMode) {
353
+ case "calendar":
354
+ this._cursor = this._cursor.add(1, "month");
355
+ break;
356
+ case "month":
357
+ this._cursor = this._cursor.add(1, "year");
358
+ break;
359
+ case "year":
360
+ this._cursor = this._cursor.add(12, "year");
361
+ break;
362
+ }
363
+ }, this._handleHeaderClick = () => {
364
+ this._viewMode === "calendar" ? this._viewMode = "month" : this._viewMode === "month" && (this._viewMode = "year");
365
+ }, this._recalcPopupPos = () => {
366
+ const e = this.renderRoot.querySelector("#" + this.inputId);
367
+ if (!e) return;
368
+ const t = e.getBoundingClientRect(), r = this.renderRoot.querySelector("#" + this.inputId + "-ico"), a = window.innerWidth, s = window.innerHeight, l = 8, o = r ? r.getBoundingClientRect().left : t.left + t.width, c = Math.round(Math.max(0, o - t.left - l) * (this.expandFactor || 1)), u = Math.round(t.right - t.left - l), y = Math.max(220, Math.min(c, u));
369
+ let h = Math.round(t.left);
370
+ h + y > a - l && (h = Math.max(l, Math.round(a - y - l)));
371
+ const i = Math.max(0, s - t.bottom - l * 2), d = Math.max(0, t.top - l * 2), M = 260;
372
+ let S, b;
373
+ i >= M || i >= d ? (S = Math.round(t.bottom + l), b = Math.max(M, i)) : (b = Math.max(M, d), S = Math.max(l, Math.round(t.top - l - b))), this._popupPos = { left: h, top: S, width: y, maxH: b };
374
+ };
375
+ }
376
+ // ==================== LIFECYCLE ====================
377
+ willUpdate(e) {
378
+ if (e.has("value") && !this._open && !this.rangeMode) {
379
+ const t = this._safeDay(this.value);
380
+ t && (this._cursor = t);
381
+ }
382
+ e.has("rangeStart") && (this._rangeStart = this.rangeStart), e.has("rangeEnd") && (this._rangeEnd = this.rangeEnd);
383
+ }
384
+ connectedCallback() {
385
+ super.connectedCallback(), window.addEventListener("click", this._outsideClick, !0), window.addEventListener("scroll", this._onScrollOrResize, !0), window.addEventListener("resize", this._onScrollOrResize);
386
+ }
387
+ disconnectedCallback() {
388
+ window.removeEventListener("click", this._outsideClick, !0), window.removeEventListener("scroll", this._onScrollOrResize, !0), window.removeEventListener("resize", this._onScrollOrResize), this._errorTimer && clearTimeout(this._errorTimer), super.disconnectedCallback();
389
+ }
390
+ // ==================== HELPERS ====================
391
+ _safeDay(e) {
392
+ if (!e) return null;
393
+ for (const r of Xe) {
394
+ const a = v(e, r, !0);
395
+ if (a.isValid()) return a;
396
+ }
397
+ const t = v(e);
398
+ return t.isValid() ? t : null;
399
+ }
400
+ _withinBounds(e) {
401
+ const t = this._safeDay(this.min), r = this._safeDay(this.max);
402
+ return !(t && e.isBefore(t, "day") || r && e.isAfter(r, "day") || this.disabledDays.includes(e.day()));
403
+ }
404
+ _displayValue() {
405
+ if (this.rangeMode && this._rangeStart && this._rangeEnd) {
406
+ const t = this._safeDay(this._rangeStart), r = this._safeDay(this._rangeEnd);
407
+ if (t && r) return `${t.format("DD/MM/YYYY")} - ${r.format("DD/MM/YYYY")}`;
408
+ }
409
+ const e = this._safeDay(this.value);
410
+ return e ? e.format("DD/MM/YYYY") : "";
411
+ }
412
+ _getYears() {
413
+ const e = this._cursor.year() - 6;
414
+ return Array.from({ length: 12 }, (t, r) => e + r);
415
+ }
416
+ _getHeaderLabel() {
417
+ switch (this._viewMode) {
418
+ case "calendar":
419
+ return this._cursor.format("MMMM YYYY");
420
+ case "month":
421
+ return this._cursor.format("YYYY");
422
+ case "year": {
423
+ const e = this._getYears();
424
+ return `${e[0]}-${e[e.length - 1]}`;
425
+ }
426
+ }
427
+ }
428
+ _daysInGrid() {
429
+ const e = this._cursor.startOf("month"), t = e.subtract((e.day() + 6) % 7, "day");
430
+ return Array.from({ length: 42 }, (r, a) => t.add(a, "day"));
431
+ }
432
+ _isInRange(e) {
433
+ if (!this.rangeMode || !this._rangeStart || !this._rangeEnd) return null;
434
+ const t = this._safeDay(this._rangeStart), r = this._safeDay(this._rangeEnd);
435
+ return !t || !r ? null : e.isSame(t, "day") ? "start" : e.isSame(r, "day") ? "end" : e.isBetween(t, r, "day", "[]") ? "between" : null;
436
+ }
437
+ _getHoverPreview(e) {
438
+ if (!this.rangeMode || !this._rangeStart || this._rangeEnd || !this._hoverDate) return null;
439
+ const t = this._safeDay(this._rangeStart);
440
+ if (!t) return null;
441
+ const r = this._hoverDate, a = r.isAfter(t, "day"), s = a ? t : r, l = a ? r : t;
442
+ return e.isSame(t, "day") ? "preview-start" : e.isSame(r, "day") ? "preview-end" : e.isAfter(s, "day") && e.isBefore(l, "day") ? "preview-between" : null;
443
+ }
444
+ _getDayClasses(e) {
445
+ const t = ["dp__day"];
446
+ if (!this._withinBounds(e))
447
+ return t.push(this.disabledDays.includes(e.day()) ? "dp__day--disabled-weekday" : "dp__day--disabled"), t.join(" ");
448
+ const r = this._isInRange(e);
449
+ if (r === "start")
450
+ return t.push("dp__day--range-start"), t.join(" ");
451
+ if (r === "end")
452
+ return t.push("dp__day--range-end"), t.join(" ");
453
+ if (r === "between")
454
+ return t.push("dp__day--range-between"), t.join(" ");
455
+ const a = this._getHoverPreview(e);
456
+ return a === "preview-start" ? (t.push("dp__day--range-start"), t.join(" ")) : a === "preview-end" ? (t.push("dp__day--range-end"), t.join(" ")) : a === "preview-between" ? (t.push("dp__day--range-between"), t.join(" ")) : this.rangeMode && this._rangeStart && !this._rangeEnd && e.isSame(this._safeDay(this._rangeStart), "day") ? (t.push("dp__day--range-pending"), t.join(" ")) : (e.isSame(this._safeDay(this.value), "day") ? t.push("dp__day--selected") : e.isSame(v(), "day") ? t.push("dp__day--today") : t.push("dp__day--default"), t.join(" "));
457
+ }
458
+ // ==================== EVENTS ====================
459
+ _emitChange(e) {
460
+ this.value = e, this.dispatchEvent(new CustomEvent("change", { detail: { value: e } })), this.onChange?.(e);
461
+ }
462
+ _emitRangeChange() {
463
+ if (this._rangeStart && this._rangeEnd) {
464
+ const e = { start: this._rangeStart, end: this._rangeEnd };
465
+ this.dispatchEvent(new CustomEvent("rangeChange", { detail: e })), this.onRangeChange?.(e);
466
+ }
467
+ }
468
+ _showInputError(e) {
469
+ this._errorTimer && clearTimeout(this._errorTimer), this._hasError = !0, this._errorMsg = e, this._errorTimer = setTimeout(() => this._clearInputError(), 3e3);
470
+ }
471
+ _clearInputError() {
472
+ this._hasError = !1, this._errorMsg = "", this._errorTimer && (clearTimeout(this._errorTimer), this._errorTimer = null);
473
+ }
474
+ _toggleOpen(e) {
475
+ if (this.disabled) return;
476
+ const t = e ?? !this._open;
477
+ this._open = t, t || (this._hoverDate = null), t && (this.rangeMode ? this._cursor = this._safeDay(this._rangeEnd)?.clone() ?? this._safeDay(this._rangeStart)?.clone() ?? v() : this._cursor = this._safeDay(this.value)?.clone() ?? v(), this._viewMode = "calendar", this.updateComplete.then(() => {
478
+ this._recalcPopupPos(), window.requestAnimationFrame(() => {
479
+ this._recalcPopupPos(), this.renderRoot.querySelector("#grid")?.focus();
480
+ });
481
+ }));
482
+ }
483
+ _onInput(e) {
484
+ e.target.value.trim() || (this._emitChange(null), this.rangeMode && (this._rangeStart = null, this._rangeEnd = null)), this._clearInputError();
485
+ }
486
+ _onKeydown(e) {
487
+ (e.key === "Tab" || e.key === "Enter") && this._parseAndSetDate();
488
+ }
489
+ _parseAndSetDate() {
490
+ const e = this.renderRoot.querySelector("#" + this.inputId);
491
+ if (!e) return;
492
+ const t = e.value.trim();
493
+ if (!t) {
494
+ if (this.rangeMode && this._rangeStart && !this._rangeEnd) return;
495
+ this._emitChange(null), this.rangeMode && (this._rangeStart = null, this._rangeEnd = null);
496
+ return;
497
+ }
498
+ if (this.rangeMode && this._rangeStart && this._rangeEnd) return;
499
+ const r = this._safeDay(t);
500
+ r && this._withinBounds(r) ? (this._emitChange(r.format("YYYY-MM-DD")), this._cursor = r, this.rangeMode && (this._rangeStart = null, this._rangeEnd = null), this._clearInputError()) : this._showInputError("Geçersiz tarih formatı. Örnek: 19/09/2025");
501
+ }
502
+ _select(e) {
503
+ if (this._withinBounds(e))
504
+ if (this.rangeMode)
505
+ if (!this._rangeStart)
506
+ this._rangeStart = e.format("YYYY-MM-DD"), this._cursor = e;
507
+ else if (this._rangeEnd)
508
+ this._rangeStart = e.format("YYYY-MM-DD"), this._rangeEnd = null, this._cursor = e;
509
+ else {
510
+ const t = this._safeDay(this._rangeStart);
511
+ t && e.isBefore(t, "day") ? (this._rangeEnd = this._rangeStart, this._rangeStart = e.format("YYYY-MM-DD")) : this._rangeEnd = e.format("YYYY-MM-DD"), this._cursor = e, this._viewMode = "calendar", this._toggleOpen(!1), this._emitRangeChange();
512
+ }
513
+ else
514
+ this._emitChange(e.format("YYYY-MM-DD")), this._cursor = e, this._viewMode = "calendar", this._toggleOpen(!1);
515
+ }
516
+ _selectMonth(e) {
517
+ this._cursor = this._cursor.month(e), this._viewMode = "calendar";
518
+ }
519
+ _selectYear(e) {
520
+ this._cursor = this._cursor.year(e), this._viewMode = "month";
521
+ }
522
+ _keydownGrid(e) {
523
+ const t = { ArrowLeft: -1, ArrowRight: 1, ArrowUp: -7, ArrowDown: 7 };
524
+ e.key in t ? (e.preventDefault(), this._cursor = this._cursor.add(t[e.key], "day")) : e.key === "Enter" || e.key === " " ? (e.preventDefault(), this._select(this._cursor)) : e.key === "Escape" ? (e.preventDefault(), this._toggleOpen(!1)) : e.key === "PageUp" ? (e.preventDefault(), this._cursor = e.shiftKey ? this._cursor.subtract(1, "year") : this._cursor.subtract(1, "month")) : e.key === "PageDown" ? (e.preventDefault(), this._cursor = e.shiftKey ? this._cursor.add(1, "year") : this._cursor.add(1, "month")) : e.key === "Home" ? (e.preventDefault(), this._cursor = this._cursor.startOf("month")) : e.key === "End" && (e.preventDefault(), this._cursor = this._cursor.endOf("month"));
525
+ }
526
+ // ==================== RENDER ====================
527
+ _renderCalendar(e) {
528
+ const t = this._daysInGrid();
529
+ return E`
530
+ <div class="dp__weekdays" role="row">
531
+ ${et.map((r) => E`<div class="dp__weekday" role="columnheader" aria-label=${r}>${r}</div>`)}
532
+ </div>
533
+ <div
534
+ id="grid"
535
+ tabindex="0"
536
+ class="dp__grid"
537
+ role="grid"
538
+ aria-label="Takvim"
539
+ @keydown=${this._keydownGrid}
540
+ @mouseleave=${() => {
541
+ this._hoverDate = null;
542
+ }}
543
+ >
544
+ ${t.map((r) => {
545
+ const a = r.month() === this._cursor.month(), s = e ? r.isSame(e, "day") : !1, l = r.isSame(this._cursor, "day"), o = !this._withinBounds(r), c = [
546
+ this._getDayClasses(r),
547
+ a ? "" : "dp__day--out-of-month",
548
+ l ? "dp__day--focused" : ""
549
+ ].filter(Boolean).join(" ");
550
+ return E`
551
+ <button
552
+ class="${c}"
553
+ role="gridcell"
554
+ @click=${() => !o && this._select(r)}
555
+ @mouseenter=${() => {
556
+ this.rangeMode && this._rangeStart && !this._rangeEnd && (this._hoverDate = r);
557
+ }}
558
+ aria-selected=${s ? "true" : "false"}
559
+ aria-disabled=${o ? "true" : "false"}
560
+ tabindex=${l ? "0" : "-1"}
561
+ >
562
+ <span class="dp__day-num">${r.date()}</span>
563
+ </button>
564
+ `;
565
+ })}
566
+ </div>
567
+ `;
568
+ }
569
+ _renderMonthGrid() {
570
+ return E`
571
+ <div class="dp__month-grid" role="grid" aria-label="Ay seçimi">
572
+ ${Je.map((e, t) => {
573
+ const r = t === this._cursor.month(), a = t === v().month() && this._cursor.year() === v().year();
574
+ return E`
575
+ <button
576
+ class="dp__month-btn ${r ? "dp__month-btn--selected" : ""} ${a && !r ? "dp__month-btn--current" : ""}"
577
+ role="gridcell"
578
+ aria-selected=${r ? "true" : "false"}
579
+ @click=${() => this._selectMonth(t)}
580
+ >${e}</button>
581
+ `;
582
+ })}
583
+ </div>
584
+ `;
585
+ }
586
+ _renderYearGrid() {
587
+ return E`
588
+ <div class="dp__year-grid" role="grid" aria-label="Yıl seçimi">
589
+ ${this._getYears().map((e) => {
590
+ const t = e === this._cursor.year(), r = e === v().year();
591
+ return E`
592
+ <button
593
+ class="dp__year-btn ${t ? "dp__year-btn--selected" : ""} ${r && !t ? "dp__year-btn--current" : ""}"
594
+ role="gridcell"
595
+ aria-selected=${t ? "true" : "false"}
596
+ @click=${() => this._selectYear(e)}
597
+ >${e}</button>
598
+ `;
599
+ })}
600
+ </div>
601
+ `;
602
+ }
603
+ render() {
604
+ const e = this._displayValue(), t = this._safeDay(this.value), r = [
605
+ "dp__input",
606
+ this._open ? "dp__input--open" : "",
607
+ this._hasError ? "dp__input--error" : "",
608
+ this.required && !e ? "dp__input--required" : ""
609
+ ].filter(Boolean).join(" ");
610
+ return E`
611
+ <div class="dp">
612
+ <div class="dp__input-wrapper">
613
+ <input
614
+ id=${this.inputId}
615
+ class="${r}"
616
+ .value=${e}
617
+ ?disabled=${this.disabled}
618
+ placeholder=${this.placeholder}
619
+ aria-label="Tarih girin"
620
+ aria-invalid=${this._hasError ? "true" : "false"}
621
+ @input=${this._onInput}
622
+ @keydown=${this._onKeydown}
623
+ />
624
+ <button
625
+ id=${this.inputId + "-ico"}
626
+ class="dp__icon-btn"
627
+ aria-label=${this._open ? "Takvimi kapat" : "Takvimi aç"}
628
+ aria-expanded=${this._open ? "true" : "false"}
629
+ aria-haspopup="dialog"
630
+ @click=${() => this._toggleOpen()}
631
+ >
632
+ <ui-icon name="uil-calendar" size="16"></ui-icon>
633
+ </button>
634
+ ${this._hasError ? E`
635
+ <div class="dp__error-tooltip" role="alert">${this._errorMsg}</div>
636
+ ` : ce}
637
+ </div>
638
+
639
+ ${this._open ? E`
640
+ <div
641
+ class="dp__popup"
642
+ style="left:${this._popupPos?.left ?? 0}px; top:${this._popupPos?.top ?? 0}px; width:${this._popupPos?.width ?? 320}px; max-height:${this._popupPos?.maxH ?? 420}px;"
643
+ role="dialog"
644
+ aria-modal="true"
645
+ aria-label="Tarih seçici"
646
+ >
647
+ <div class="dp__header">
648
+ <button class="dp__nav-btn" @click=${this._navigatePrevious} aria-label="Önceki">
649
+ <ui-icon name="uil-arrow-left" size="16"></ui-icon>
650
+ </button>
651
+ <span class="dp__header-label" @click=${this._handleHeaderClick} role="button" tabindex="0">
652
+ ${this._getHeaderLabel()}
653
+ </span>
654
+ <button class="dp__nav-btn" @click=${this._navigateNext} aria-label="Sonraki">
655
+ <ui-icon name="uil-arrow-right" size="16"></ui-icon>
656
+ </button>
657
+ </div>
658
+
659
+ ${this._viewMode === "calendar" ? this._renderCalendar(t) : this._viewMode === "month" ? this._renderMonthGrid() : this._renderYearGrid()}
660
+
661
+ <div class="dp__footer">
662
+ <button class="dp__footer-btn" @click=${this._today} aria-label="Bugün">
663
+ <ui-icon name="uil-calendar" size="14"></ui-icon>
664
+ </button>
665
+ <button class="dp__footer-btn" @click=${this._clear} aria-label="Temizle">
666
+ <ui-icon name="uil-trash" size="14"></ui-icon>
667
+ </button>
668
+ <button class="dp__footer-btn" @click=${() => this._toggleOpen(!1)} aria-label="Kapat">
669
+ <ui-icon name="uil-times" size="14"></ui-icon>
670
+ </button>
671
+ </div>
672
+ </div>
673
+ ` : ce}
674
+ </div>
675
+ `;
676
+ }
677
+ };
678
+ m.styles = [De`${ke(Ne)}`];
679
+ g([
680
+ w({ type: String })
681
+ ], m.prototype, "value", 2);
682
+ g([
683
+ w({ type: String })
684
+ ], m.prototype, "min", 2);
685
+ g([
686
+ w({ type: String })
687
+ ], m.prototype, "max", 2);
688
+ g([
689
+ w({ type: Boolean })
690
+ ], m.prototype, "required", 2);
691
+ g([
692
+ w({ type: Boolean })
693
+ ], m.prototype, "disabled", 2);
694
+ g([
695
+ w({ type: Number })
696
+ ], m.prototype, "expandFactor", 2);
697
+ g([
698
+ w({ type: String })
699
+ ], m.prototype, "placeholder", 2);
700
+ g([
701
+ w({ type: Boolean })
702
+ ], m.prototype, "rangeMode", 2);
703
+ g([
704
+ w({ type: Array })
705
+ ], m.prototype, "disabledDays", 2);
706
+ g([
707
+ w({ type: String })
708
+ ], m.prototype, "rangeStart", 2);
709
+ g([
710
+ w({ type: String })
711
+ ], m.prototype, "rangeEnd", 2);
712
+ g([
713
+ w({ attribute: !1 })
714
+ ], m.prototype, "onChange", 2);
715
+ g([
716
+ w({ attribute: !1 })
717
+ ], m.prototype, "onRangeChange", 2);
718
+ g([
719
+ C()
720
+ ], m.prototype, "_open", 2);
721
+ g([
722
+ C()
723
+ ], m.prototype, "_cursor", 2);
724
+ g([
725
+ C()
726
+ ], m.prototype, "_popupPos", 2);
727
+ g([
728
+ C()
729
+ ], m.prototype, "_rangeStart", 2);
730
+ g([
731
+ C()
732
+ ], m.prototype, "_rangeEnd", 2);
733
+ g([
734
+ C()
735
+ ], m.prototype, "_hoverDate", 2);
736
+ g([
737
+ C()
738
+ ], m.prototype, "_viewMode", 2);
739
+ g([
740
+ C()
741
+ ], m.prototype, "_hasError", 2);
742
+ g([
743
+ C()
744
+ ], m.prototype, "_errorMsg", 2);
745
+ m = g([
746
+ xe("logosphere-datepicker")
747
+ ], m);
748
+ export {
749
+ m as L
750
+ };