Skip to content

Commit

Permalink
MVP:
Browse files Browse the repository at this point in the history
- Finished configuring flatpickr component
- Configurable theme but defaulting to dark when dark mode is toggled
- Configurable optional month select plugin
- Fixed alt Format display
- Made the component reactive on load for auto config picking once toggled
- Using local assets except the theme css
  • Loading branch information
coolsam726 committed Aug 8, 2022
1 parent dc5a5f5 commit 239a552
Show file tree
Hide file tree
Showing 270 changed files with 51,206 additions and 9 deletions.
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@
],
"require": {
"php": "^8.0|^8.1",
"spatie/laravel-package-tools": "^1.9.2",
"illuminate/contracts": "^9.0"
"filament/filament": "^2.15",
"illuminate/contracts": "^8.0|^9.0",
"spatie/laravel-package-tools": "^1.9.2"
},
"require-dev": {
"laravel/pint": "^1.0",
Expand Down
2 changes: 1 addition & 1 deletion config/filament-flatpickr.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

// config for Savannabits/Flatpickr
return [

'default_theme' => 'airbnb' // 'default','dark','material_blue','material_green','material_red','material_orange','airbnb','confetti'
];
15,800 changes: 15,800 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"scripts": {
"dev": "vite",
"build": "vite build"
},
"devDependencies": {
"alpinejs": "^3.10.3",
"flatpickr": "^4.6.13",
"laravel-mix": "^6.0.49"
}
}
2,046 changes: 2,046 additions & 0 deletions public/dist/esm/index.js

Large diffs are not rendered by default.

48 changes: 48 additions & 0 deletions public/dist/esm/l10n/ar-dz.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
var fp = typeof window !== "undefined" && window.flatpickr !== undefined
? window.flatpickr
: {
l10ns: {},
};
export var AlgerianArabic = {
weekdays: {
shorthand: ["أحد", "اثنين", "ثلاثاء", "أربعاء", "خميس", "جمعة", "سبت"],
longhand: [
"الأحد",
"الاثنين",
"الثلاثاء",
"الأربعاء",
"الخميس",
"الجمعة",
"السبت",
],
},
months: {
shorthand: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"],
longhand: [
"جانفي",
"فيفري",
"مارس",
"أفريل",
"ماي",
"جوان",
"جويليه",
"أوت",
"سبتمبر",
"أكتوبر",
"نوفمبر",
"ديسمبر",
],
},
firstDayOfWeek: 0,
rangeSeparator: " إلى ",
weekAbbreviation: "Wk",
scrollTitle: "قم بالتمرير للزيادة",
toggleTitle: "اضغط للتبديل",
yearAriaLabel: "سنة",
monthAriaLabel: "شهر",
hourAriaLabel: "ساعة",
minuteAriaLabel: "دقيقة",
time_24hr: true,
};
fp.l10ns.ar = AlgerianArabic;
export default fp.l10ns;
49 changes: 49 additions & 0 deletions public/dist/esm/l10n/ar.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
var fp = typeof window !== "undefined" && window.flatpickr !== undefined
? window.flatpickr
: {
l10ns: {},
};
export var Arabic = {
weekdays: {
shorthand: ["أحد", "اثنين", "ثلاثاء", "أربعاء", "خميس", "جمعة", "سبت"],
longhand: [
"الأحد",
"الاثنين",
"الثلاثاء",
"الأربعاء",
"الخميس",
"الجمعة",
"السبت",
],
},
months: {
shorthand: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"],
longhand: [
"يناير",
"فبراير",
"مارس",
"أبريل",
"مايو",
"يونيو",
"يوليو",
"أغسطس",
"سبتمبر",
"أكتوبر",
"نوفمبر",
"ديسمبر",
],
},
firstDayOfWeek: 6,
rangeSeparator: " إلى ",
weekAbbreviation: "Wk",
scrollTitle: "قم بالتمرير للزيادة",
toggleTitle: "اضغط للتبديل",
amPM: ["ص", "م"],
yearAriaLabel: "سنة",
monthAriaLabel: "شهر",
hourAriaLabel: "ساعة",
minuteAriaLabel: "دقيقة",
time_24hr: false,
};
fp.l10ns.ar = Arabic;
export default fp.l10ns;
57 changes: 57 additions & 0 deletions public/dist/esm/l10n/at.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
var fp = typeof window !== "undefined" && window.flatpickr !== undefined
? window.flatpickr
: {
l10ns: {},
};
export var Austria = {
weekdays: {
shorthand: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"],
longhand: [
"Sonntag",
"Montag",
"Dienstag",
"Mittwoch",
"Donnerstag",
"Freitag",
"Samstag",
],
},
months: {
shorthand: [
"Jän",
"Feb",
"Mär",
"Apr",
"Mai",
"Jun",
"Jul",
"Aug",
"Sep",
"Okt",
"Nov",
"Dez",
],
longhand: [
"Jänner",
"Februar",
"März",
"April",
"Mai",
"Juni",
"Juli",
"August",
"September",
"Oktober",
"November",
"Dezember",
],
},
firstDayOfWeek: 1,
weekAbbreviation: "KW",
rangeSeparator: " bis ",
scrollTitle: "Zum Ändern scrollen",
toggleTitle: "Zum Umschalten klicken",
time_24hr: true,
};
fp.l10ns.at = Austria;
export default fp.l10ns;
61 changes: 61 additions & 0 deletions public/dist/esm/l10n/az.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
var fp = typeof window !== "undefined" && window.flatpickr !== undefined
? window.flatpickr
: {
l10ns: {},
};
export var Azerbaijan = {
weekdays: {
shorthand: ["B.", "B.e.", "Ç.a.", "Ç.", "C.a.", "C.", "Ş."],
longhand: [
"Bazar",
"Bazar ertəsi",
"Çərşənbə axşamı",
"Çərşənbə",
"Cümə axşamı",
"Cümə",
"Şənbə",
],
},
months: {
shorthand: [
"Yan",
"Fev",
"Mar",
"Apr",
"May",
"İyn",
"İyl",
"Avq",
"Sen",
"Okt",
"Noy",
"Dek",
],
longhand: [
"Yanvar",
"Fevral",
"Mart",
"Aprel",
"May",
"İyun",
"İyul",
"Avqust",
"Sentyabr",
"Oktyabr",
"Noyabr",
"Dekabr",
],
},
firstDayOfWeek: 1,
ordinal: function () {
return ".";
},
rangeSeparator: " - ",
weekAbbreviation: "Hf",
scrollTitle: "Artırmaq üçün sürüşdürün",
toggleTitle: "Aç / Bağla",
amPM: ["GƏ", "GS"],
time_24hr: true,
};
fp.l10ns.az = Azerbaijan;
export default fp.l10ns;
62 changes: 62 additions & 0 deletions public/dist/esm/l10n/be.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
var fp = typeof window !== "undefined" && window.flatpickr !== undefined
? window.flatpickr
: {
l10ns: {},
};
export var Belarusian = {
weekdays: {
shorthand: ["Нд", "Пн", "Аў", "Ср", "Чц", "Пт", "Сб"],
longhand: [
"Нядзеля",
"Панядзелак",
"Аўторак",
"Серада",
"Чацвер",
"Пятніца",
"Субота",
],
},
months: {
shorthand: [
"Сту",
"Лют",
"Сак",
"Кра",
"Тра",
"Чэр",
"Ліп",
"Жні",
"Вер",
"Кас",
"Ліс",
"Сне",
],
longhand: [
"Студзень",
"Люты",
"Сакавік",
"Красавік",
"Травень",
"Чэрвень",
"Ліпень",
"Жнівень",
"Верасень",
"Кастрычнік",
"Лістапад",
"Снежань",
],
},
firstDayOfWeek: 1,
ordinal: function () {
return "";
},
rangeSeparator: " — ",
weekAbbreviation: "Тыд.",
scrollTitle: "Пракруціце для павелічэння",
toggleTitle: "Націсніце для пераключэння",
amPM: ["ДП", "ПП"],
yearAriaLabel: "Год",
time_24hr: true,
};
fp.l10ns.be = Belarusian;
export default fp.l10ns;
53 changes: 53 additions & 0 deletions public/dist/esm/l10n/bg.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
var fp = typeof window !== "undefined" && window.flatpickr !== undefined
? window.flatpickr
: {
l10ns: {},
};
export var Bulgarian = {
weekdays: {
shorthand: ["Нд", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"],
longhand: [
"Неделя",
"Понеделник",
"Вторник",
"Сряда",
"Четвъртък",
"Петък",
"Събота",
],
},
months: {
shorthand: [
"Яну",
"Фев",
"Март",
"Апр",
"Май",
"Юни",
"Юли",
"Авг",
"Сеп",
"Окт",
"Ное",
"Дек",
],
longhand: [
"Януари",
"Февруари",
"Март",
"Април",
"Май",
"Юни",
"Юли",
"Август",
"Септември",
"Октомври",
"Ноември",
"Декември",
],
},
time_24hr: true,
firstDayOfWeek: 1,
};
fp.l10ns.bg = Bulgarian;
export default fp.l10ns;
Loading

0 comments on commit 239a552

Please sign in to comment.