From cc8686283bc765a8d16dfd40cf494360972cd05b Mon Sep 17 00:00:00 2001 From: shubhadip Date: Sat, 4 Nov 2023 18:49:40 +0530 Subject: [PATCH] refactor: minor changes --- .eslintcache | 2 +- .eslintrc.cjs | 2 +- .releaserc | 37 + build/DatePickerComponent.css | 1 + build/vite.svg | 1 + build/vuejs3-datepicker.js | 1878 +++++++++++++++++++++++++++++++ build/vuejs3-datepicker.umd.cjs | 2 + package-lock.json | 373 +++++- package.json | 17 +- types/index.d.ts | 35 - 10 files changed, 2250 insertions(+), 98 deletions(-) create mode 100644 .releaserc create mode 100644 build/DatePickerComponent.css create mode 100644 build/vite.svg create mode 100644 build/vuejs3-datepicker.js create mode 100644 build/vuejs3-datepicker.umd.cjs delete mode 100644 types/index.d.ts diff --git a/.eslintcache b/.eslintcache index c8293d3..fc18631 100644 --- a/.eslintcache +++ b/.eslintcache @@ -1 +1 @@ -[{"/Users/shubhadipmaity/projects/vuejs3-datepicker/src/components/datepicker/utils/DateUtils.ts":"1","/Users/shubhadipmaity/projects/vuejs3-datepicker/src/components/prismcomponent/index.ts":"2","/Users/shubhadipmaity/projects/vuejs3-datepicker/src/vite-env.d.ts":"3","/Users/shubhadipmaity/projects/vuejs3-datepicker/vite.config.lib.ts":"4","/Users/shubhadipmaity/projects/vuejs3-datepicker/vite.config.project.ts":"5"},{"size":6908,"mtime":1699092855777,"results":"6","hashOfConfig":"7"},{"size":1192,"mtime":1699092855778},{"size":197,"mtime":1699092401934},{"size":833,"mtime":1699092401935,"results":"8","hashOfConfig":"9"},{"size":373,"mtime":1699092401935,"results":"10","hashOfConfig":"9"},{"filePath":"11","messages":"12","suppressedMessages":"13","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"a37l99",{"filePath":"14","messages":"15","suppressedMessages":"16","errorCount":1,"fatalErrorCount":1,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},"ofe5ac",{"filePath":"17","messages":"18","suppressedMessages":"19","errorCount":1,"fatalErrorCount":1,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},"/Users/shubhadipmaity/projects/vuejs3-datepicker/src/components/datepicker/utils/DateUtils.ts",[],["20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43"],"/Users/shubhadipmaity/projects/vuejs3-datepicker/vite.config.lib.ts",["44"],[],"/Users/shubhadipmaity/projects/vuejs3-datepicker/vite.config.project.ts",["45"],[],{"ruleId":"46","severity":2,"message":"47","line":56,"column":39,"nodeType":"48","messageId":"49","endLine":56,"endColumn":44,"suppressions":"50"},{"ruleId":"46","severity":2,"message":"47","line":56,"column":65,"nodeType":"48","messageId":"49","endLine":56,"endColumn":70,"suppressions":"51"},{"ruleId":"46","severity":2,"message":"47","line":64,"column":36,"nodeType":"48","messageId":"49","endLine":64,"endColumn":41,"suppressions":"52"},{"ruleId":"46","severity":2,"message":"47","line":64,"column":59,"nodeType":"48","messageId":"49","endLine":64,"endColumn":64,"suppressions":"53"},{"ruleId":"46","severity":2,"message":"47","line":73,"column":35,"nodeType":"48","messageId":"49","endLine":73,"endColumn":40,"suppressions":"54"},{"ruleId":"46","severity":2,"message":"47","line":73,"column":57,"nodeType":"48","messageId":"49","endLine":73,"endColumn":62,"suppressions":"55"},{"ruleId":"56","severity":2,"message":"57","line":122,"column":3,"nodeType":"58","messageId":"59","endLine":122,"endColumn":29,"suppressions":"60"},{"ruleId":"46","severity":2,"message":"61","line":122,"column":22,"nodeType":"48","messageId":"49","endLine":122,"endColumn":26,"suppressions":"62"},{"ruleId":"56","severity":2,"message":"57","line":136,"column":5,"nodeType":"58","messageId":"59","endLine":136,"endColumn":36,"suppressions":"63"},{"ruleId":"56","severity":2,"message":"57","line":139,"column":5,"nodeType":"58","messageId":"59","endLine":139,"endColumn":26,"suppressions":"64"},{"ruleId":"56","severity":2,"message":"57","line":154,"column":5,"nodeType":"58","messageId":"59","endLine":154,"endColumn":40,"suppressions":"65"},{"ruleId":"56","severity":2,"message":"57","line":157,"column":5,"nodeType":"58","messageId":"59","endLine":157,"endColumn":30,"suppressions":"66"},{"ruleId":"67","severity":1,"message":"68","line":229,"column":10,"nodeType":null,"messageId":"69","endLine":229,"endColumn":33,"fix":"70","suppressions":"71"},{"ruleId":"72","severity":2,"message":"73","line":229,"column":10,"nodeType":"48","messageId":"74","endLine":229,"endColumn":22,"suppressions":"75"},{"ruleId":"72","severity":2,"message":"76","line":229,"column":24,"nodeType":"48","messageId":"74","endLine":229,"endColumn":33,"suppressions":"77"},{"ruleId":"72","severity":2,"message":"78","line":232,"column":23,"nodeType":"48","messageId":"74","endLine":232,"endColumn":35,"suppressions":"79"},{"ruleId":"72","severity":2,"message":"80","line":232,"column":37,"nodeType":"48","messageId":"74","endLine":232,"endColumn":49,"suppressions":"81"},{"ruleId":"46","severity":2,"message":"82","line":248,"column":22,"nodeType":"83","messageId":"49","endLine":248,"endColumn":77,"suppressions":"84"},{"ruleId":"46","severity":2,"message":"85","line":248,"column":51,"nodeType":"86","messageId":"49","endLine":248,"endColumn":69,"suppressions":"87"},{"ruleId":"46","severity":2,"message":"82","line":249,"column":21,"nodeType":"83","messageId":"49","endLine":249,"endColumn":84,"suppressions":"88"},{"ruleId":"46","severity":2,"message":"85","line":249,"column":54,"nodeType":"86","messageId":"49","endLine":249,"endColumn":76,"suppressions":"89"},{"ruleId":"46","severity":2,"message":"82","line":253,"column":28,"nodeType":"83","messageId":"49","endLine":253,"endColumn":73,"suppressions":"90"},{"ruleId":"46","severity":2,"message":"91","line":253,"column":49,"nodeType":"86","messageId":"49","endLine":253,"endColumn":65,"suppressions":"92"},{"ruleId":"67","severity":1,"message":"93","line":263,"column":46,"nodeType":null,"messageId":"94","endLine":263,"endColumn":47,"fix":"95","suppressions":"96"},{"ruleId":null,"fatal":true,"severity":2,"message":"97","nodeType":null},{"ruleId":null,"fatal":true,"severity":2,"message":"98","nodeType":null},"@typescript-eslint/no-unsafe-argument","Unsafe argument of type `any` assigned to a parameter of type `number`.","Identifier","unsafeArgument",["99"],["100"],["101"],["102"],["103"],["104"],"@typescript-eslint/no-unsafe-return","Unsafe return of an `any` typed value.","ReturnStatement","unsafeReturn",["105"],"Unsafe argument of type `any` assigned to a parameter of type `Date`.",["106"],["107"],["108"],["109"],["110"],"prettier/prettier","Replace `arg0:·RegExp,·arg1:·any` with `⏎··········arg0:·RegExp,⏎··········arg1:·any⏎········`","replace",{"range":"111","text":"112"},["113"],"no-shadow","'arg0' is already declared in the upper scope on line 223 column 7.","noShadow",["114"],"'arg1' is already declared in the upper scope on line 224 column 7.",["115"],"'arg0' is already declared in the upper scope on line 229 column 10.",["116"],"'arg1' is already declared in the upper scope on line 229 column 24.",["117"],"Unsafe argument of type `any` assigned to a parameter of type `string`.","TSAsExpression",["118"],"Unsafe argument of type `any` assigned to a parameter of type `any[]`.","MemberExpression",["119"],["120"],["121"],["122"],"Unsafe argument of type `any` assigned to a parameter of type `{ [x: string]: any; }`.",["123"],"Delete `·`","delete",{"range":"124","text":"125"},["126"],"Parsing error: ESLint was configured to run on `/vite.config.lib.ts` using `parserOptions.project`: /users/shubhadipmaity/projects/vuejs3-datepicker/tsconfig.json\nHowever, that TSConfig does not include this file. Either:\n- Change ESLint's list of included files to not include this file\n- Change that TSConfig to include this file\n- Create a new TSConfig that includes this file and include it in your parserOptions.project\nSee the typescript-eslint docs for more info: https://typescript-eslint.io/linting/troubleshooting#i-get-errors-telling-me-eslint-was-configured-to-run--however-that-tsconfig-does-not--none-of-those-tsconfigs-include-this-file","Parsing error: ESLint was configured to run on `/vite.config.project.ts` using `parserOptions.project`: /users/shubhadipmaity/projects/vuejs3-datepicker/tsconfig.json\nHowever, that TSConfig does not include this file. Either:\n- Change ESLint's list of included files to not include this file\n- Change that TSConfig to include this file\n- Create a new TSConfig that includes this file and include it in your parserOptions.project\nSee the typescript-eslint docs for more info: https://typescript-eslint.io/linting/troubleshooting#i-get-errors-telling-me-eslint-was-configured-to-run--however-that-tsconfig-does-not--none-of-those-tsconfigs-include-this-file",{"kind":"127","justification":"125"},{"kind":"127","justification":"125"},{"kind":"127","justification":"125"},{"kind":"127","justification":"125"},{"kind":"127","justification":"125"},{"kind":"127","justification":"125"},{"kind":"127","justification":"125"},{"kind":"127","justification":"125"},{"kind":"127","justification":"125"},{"kind":"127","justification":"125"},{"kind":"127","justification":"125"},{"kind":"127","justification":"125"},[5204,5227],"\n arg0: RegExp,\n arg1: any\n ",{"kind":"127","justification":"125"},{"kind":"127","justification":"125"},{"kind":"127","justification":"125"},{"kind":"127","justification":"125"},{"kind":"127","justification":"125"},{"kind":"127","justification":"125"},{"kind":"127","justification":"125"},{"kind":"127","justification":"125"},{"kind":"127","justification":"125"},{"kind":"127","justification":"125"},{"kind":"127","justification":"125"},[6298,6299],"",{"kind":"127","justification":"125"},"directive"] \ No newline at end of file +[{"/Users/shubhadipmaity/projects/vuejs3-datepicker/src/components/datepicker/utils/DateUtils.ts":"1","/Users/shubhadipmaity/projects/vuejs3-datepicker/src/components/prismcomponent/index.ts":"2","/Users/shubhadipmaity/projects/vuejs3-datepicker/src/vite-env.d.ts":"3","/Users/shubhadipmaity/projects/vuejs3-datepicker/vite.config.lib.ts":"4","/Users/shubhadipmaity/projects/vuejs3-datepicker/vite.config.project.ts":"5","/Users/shubhadipmaity/projects/vuejs3-datepicker/src/components/datepicker/DateInput.vue":"6","/Users/shubhadipmaity/projects/vuejs3-datepicker/src/components/datepicker/DatePickerComponent.vue":"7","/Users/shubhadipmaity/projects/vuejs3-datepicker/src/components/datepicker/PickerDay.vue":"8","/Users/shubhadipmaity/projects/vuejs3-datepicker/src/components/datepicker/PickerMonth.vue":"9","/Users/shubhadipmaity/projects/vuejs3-datepicker/src/components/datepicker/PickerYear.vue":"10","/Users/shubhadipmaity/projects/vuejs3-datepicker/src/components/examples/CalendarIcon.vue":"11","/Users/shubhadipmaity/projects/vuejs3-datepicker/src/components/examples/DayView.vue":"12","/Users/shubhadipmaity/projects/vuejs3-datepicker/src/components/examples/DefaultValue.vue":"13","/Users/shubhadipmaity/projects/vuejs3-datepicker/src/components/examples/Disabled.vue":"14","/Users/shubhadipmaity/projects/vuejs3-datepicker/src/components/examples/HighlightedView.vue":"15","/Users/shubhadipmaity/projects/vuejs3-datepicker/src/components/examples/InlineView.vue":"16","/Users/shubhadipmaity/projects/vuejs3-datepicker/src/components/examples/Language.vue":"17","/Users/shubhadipmaity/projects/vuejs3-datepicker/src/components/examples/MonthView.vue":"18","/Users/shubhadipmaity/projects/vuejs3-datepicker/src/components/examples/ProgrammaticAccess.vue":"19","/Users/shubhadipmaity/projects/vuejs3-datepicker/src/components/examples/Slotview.vue":"20","/Users/shubhadipmaity/projects/vuejs3-datepicker/src/components/examples/StringView.vue":"21","/Users/shubhadipmaity/projects/vuejs3-datepicker/src/components/examples/Typeable.vue":"22","/Users/shubhadipmaity/projects/vuejs3-datepicker/src/components/examples/VModel.vue":"23","/Users/shubhadipmaity/projects/vuejs3-datepicker/src/components/examples/YearView.vue":"24"},{"size":6908,"mtime":1699092855777,"results":"25","hashOfConfig":"26"},{"size":1192,"mtime":1699092855778},{"size":197,"mtime":1699092401934},{"size":833,"mtime":1699092401935,"results":"27","hashOfConfig":"28"},{"size":373,"mtime":1699092401935,"results":"29","hashOfConfig":"28"},{"size":7316,"mtime":1699097037509},{"size":15848,"mtime":1699097037509},{"size":15674,"mtime":1699097037509},{"size":9203,"mtime":1699097037509,"results":"30","hashOfConfig":"31"},{"size":9108,"mtime":1699097037509},{"size":1170,"mtime":1699097037510},{"size":1372,"mtime":1699097037510},{"size":1811,"mtime":1699097037510,"results":"32","hashOfConfig":"31"},{"size":2311,"mtime":1699097037510},{"size":1309,"mtime":1699097037510},{"size":912,"mtime":1699097037510},{"size":1849,"mtime":1699097037510,"results":"33","hashOfConfig":"31"},{"size":1502,"mtime":1699097037510},{"size":1940,"mtime":1699097037511},{"size":2064,"mtime":1699097037511,"results":"34","hashOfConfig":"31"},{"size":1425,"mtime":1699097037511,"results":"35","hashOfConfig":"31"},{"size":1813,"mtime":1699097037512},{"size":1938,"mtime":1699097037512},{"size":1175,"mtime":1699097037512},{"filePath":"36","messages":"37","suppressedMessages":"38","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"a37l99",{"filePath":"39","messages":"40","suppressedMessages":"41","errorCount":1,"fatalErrorCount":1,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},"ofe5ac",{"filePath":"42","messages":"43","suppressedMessages":"44","errorCount":1,"fatalErrorCount":1,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"45","messages":"46","suppressedMessages":"47","errorCount":0,"fatalErrorCount":0,"warningCount":9,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},"1al9tq7",{"filePath":"48","messages":"49","suppressedMessages":"50","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"51","messages":"52","suppressedMessages":"53","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"54","messages":"55","suppressedMessages":"56","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"57","messages":"58","suppressedMessages":"59","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/Users/shubhadipmaity/projects/vuejs3-datepicker/src/components/datepicker/utils/DateUtils.ts",[],["60","61","62","63","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","81","82","83"],"/Users/shubhadipmaity/projects/vuejs3-datepicker/vite.config.lib.ts",["84"],[],"/Users/shubhadipmaity/projects/vuejs3-datepicker/vite.config.project.ts",["85"],[],"/Users/shubhadipmaity/projects/vuejs3-datepicker/src/components/datepicker/PickerMonth.vue",["86","87","88","89","90","91","92","93","94"],[],"/Users/shubhadipmaity/projects/vuejs3-datepicker/src/components/examples/DefaultValue.vue",[],[],"/Users/shubhadipmaity/projects/vuejs3-datepicker/src/components/examples/Language.vue",[],[],"/Users/shubhadipmaity/projects/vuejs3-datepicker/src/components/examples/Slotview.vue",[],[],"/Users/shubhadipmaity/projects/vuejs3-datepicker/src/components/examples/StringView.vue",[],[],{"ruleId":"95","severity":2,"message":"96","line":56,"column":39,"nodeType":"97","messageId":"98","endLine":56,"endColumn":44,"suppressions":"99"},{"ruleId":"95","severity":2,"message":"96","line":56,"column":65,"nodeType":"97","messageId":"98","endLine":56,"endColumn":70,"suppressions":"100"},{"ruleId":"95","severity":2,"message":"96","line":64,"column":36,"nodeType":"97","messageId":"98","endLine":64,"endColumn":41,"suppressions":"101"},{"ruleId":"95","severity":2,"message":"96","line":64,"column":59,"nodeType":"97","messageId":"98","endLine":64,"endColumn":64,"suppressions":"102"},{"ruleId":"95","severity":2,"message":"96","line":73,"column":35,"nodeType":"97","messageId":"98","endLine":73,"endColumn":40,"suppressions":"103"},{"ruleId":"95","severity":2,"message":"96","line":73,"column":57,"nodeType":"97","messageId":"98","endLine":73,"endColumn":62,"suppressions":"104"},{"ruleId":"105","severity":2,"message":"106","line":122,"column":3,"nodeType":"107","messageId":"108","endLine":122,"endColumn":29,"suppressions":"109"},{"ruleId":"95","severity":2,"message":"110","line":122,"column":22,"nodeType":"97","messageId":"98","endLine":122,"endColumn":26,"suppressions":"111"},{"ruleId":"105","severity":2,"message":"106","line":136,"column":5,"nodeType":"107","messageId":"108","endLine":136,"endColumn":36,"suppressions":"112"},{"ruleId":"105","severity":2,"message":"106","line":139,"column":5,"nodeType":"107","messageId":"108","endLine":139,"endColumn":26,"suppressions":"113"},{"ruleId":"105","severity":2,"message":"106","line":154,"column":5,"nodeType":"107","messageId":"108","endLine":154,"endColumn":40,"suppressions":"114"},{"ruleId":"105","severity":2,"message":"106","line":157,"column":5,"nodeType":"107","messageId":"108","endLine":157,"endColumn":30,"suppressions":"115"},{"ruleId":"116","severity":1,"message":"117","line":229,"column":10,"nodeType":null,"messageId":"118","endLine":229,"endColumn":33,"fix":"119","suppressions":"120"},{"ruleId":"121","severity":2,"message":"122","line":229,"column":10,"nodeType":"97","messageId":"123","endLine":229,"endColumn":22,"suppressions":"124"},{"ruleId":"121","severity":2,"message":"125","line":229,"column":24,"nodeType":"97","messageId":"123","endLine":229,"endColumn":33,"suppressions":"126"},{"ruleId":"121","severity":2,"message":"127","line":232,"column":23,"nodeType":"97","messageId":"123","endLine":232,"endColumn":35,"suppressions":"128"},{"ruleId":"121","severity":2,"message":"129","line":232,"column":37,"nodeType":"97","messageId":"123","endLine":232,"endColumn":49,"suppressions":"130"},{"ruleId":"95","severity":2,"message":"131","line":248,"column":22,"nodeType":"132","messageId":"98","endLine":248,"endColumn":77,"suppressions":"133"},{"ruleId":"95","severity":2,"message":"134","line":248,"column":51,"nodeType":"135","messageId":"98","endLine":248,"endColumn":69,"suppressions":"136"},{"ruleId":"95","severity":2,"message":"131","line":249,"column":21,"nodeType":"132","messageId":"98","endLine":249,"endColumn":84,"suppressions":"137"},{"ruleId":"95","severity":2,"message":"134","line":249,"column":54,"nodeType":"135","messageId":"98","endLine":249,"endColumn":76,"suppressions":"138"},{"ruleId":"95","severity":2,"message":"131","line":253,"column":28,"nodeType":"132","messageId":"98","endLine":253,"endColumn":73,"suppressions":"139"},{"ruleId":"95","severity":2,"message":"140","line":253,"column":49,"nodeType":"135","messageId":"98","endLine":253,"endColumn":65,"suppressions":"141"},{"ruleId":"116","severity":1,"message":"142","line":263,"column":46,"nodeType":null,"messageId":"143","endLine":263,"endColumn":47,"fix":"144","suppressions":"145"},{"ruleId":null,"fatal":true,"severity":2,"message":"146","nodeType":null},{"ruleId":null,"fatal":true,"severity":2,"message":"147","nodeType":null},{"ruleId":"148","severity":1,"message":"149","line":10,"column":7,"nodeType":"150","messageId":"151","endLine":10,"endColumn":106},{"ruleId":"148","severity":1,"message":"149","line":17,"column":9,"nodeType":"150","messageId":"151","endLine":19,"endColumn":10},{"ruleId":"148","severity":1,"message":"149","line":20,"column":9,"nodeType":"150","messageId":"151","endLine":22,"endColumn":18},{"ruleId":"148","severity":1,"message":"149","line":23,"column":9,"nodeType":"150","messageId":"151","endLine":25,"endColumn":10},{"ruleId":"148","severity":1,"message":"149","line":27,"column":7,"nodeType":"150","messageId":"151","endLine":34,"endColumn":8},{"ruleId":"152","severity":1,"message":"153","line":77,"column":5,"nodeType":"154","messageId":"155","endLine":79,"endColumn":6},{"ruleId":"152","severity":1,"message":"156","line":80,"column":5,"nodeType":"154","messageId":"155","endLine":82,"endColumn":6},{"ruleId":"152","severity":1,"message":"157","line":83,"column":5,"nodeType":"154","messageId":"155","endLine":85,"endColumn":6},{"ruleId":"152","severity":1,"message":"158","line":86,"column":5,"nodeType":"154","messageId":"155","endLine":88,"endColumn":6},"@typescript-eslint/no-unsafe-argument","Unsafe argument of type `any` assigned to a parameter of type `number`.","Identifier","unsafeArgument",["159"],["160"],["161"],["162"],["163"],["164"],"@typescript-eslint/no-unsafe-return","Unsafe return of an `any` typed value.","ReturnStatement","unsafeReturn",["165"],"Unsafe argument of type `any` assigned to a parameter of type `Date`.",["166"],["167"],["168"],["169"],["170"],"prettier/prettier","Replace `arg0:·RegExp,·arg1:·any` with `⏎··········arg0:·RegExp,⏎··········arg1:·any⏎········`","replace",{"range":"171","text":"172"},["173"],"no-shadow","'arg0' is already declared in the upper scope on line 223 column 7.","noShadow",["174"],"'arg1' is already declared in the upper scope on line 224 column 7.",["175"],"'arg0' is already declared in the upper scope on line 229 column 10.",["176"],"'arg1' is already declared in the upper scope on line 229 column 24.",["177"],"Unsafe argument of type `any` assigned to a parameter of type `string`.","TSAsExpression",["178"],"Unsafe argument of type `any` assigned to a parameter of type `any[]`.","MemberExpression",["179"],["180"],["181"],["182"],"Unsafe argument of type `any` assigned to a parameter of type `{ [x: string]: any; }`.",["183"],"Delete `·`","delete",{"range":"184","text":"185"},["186"],"Parsing error: ESLint was configured to run on `/vite.config.lib.ts` using `parserOptions.project`: /users/shubhadipmaity/projects/vuejs3-datepicker/tsconfig.json\nHowever, that TSConfig does not include this file. Either:\n- Change ESLint's list of included files to not include this file\n- Change that TSConfig to include this file\n- Create a new TSConfig that includes this file and include it in your parserOptions.project\nSee the typescript-eslint docs for more info: https://typescript-eslint.io/linting/troubleshooting#i-get-errors-telling-me-eslint-was-configured-to-run--however-that-tsconfig-does-not--none-of-those-tsconfigs-include-this-file","Parsing error: ESLint was configured to run on `/vite.config.project.ts` using `parserOptions.project`: /users/shubhadipmaity/projects/vuejs3-datepicker/tsconfig.json\nHowever, that TSConfig does not include this file. Either:\n- Change ESLint's list of included files to not include this file\n- Change that TSConfig to include this file\n- Create a new TSConfig that includes this file and include it in your parserOptions.project\nSee the typescript-eslint docs for more info: https://typescript-eslint.io/linting/troubleshooting#i-get-errors-telling-me-eslint-was-configured-to-run--however-that-tsconfig-does-not--none-of-those-tsconfigs-include-this-file","vuejs-accessibility/click-events-have-key-events","Visible, non-interactive elements with click handlers must have at least one keyboard listener.","VElement","default","vue/require-default-prop","Prop 'disabledDates' requires default value to be set.","Property","missingDefault","Prop 'calendarClass' requires default value to be set.","Prop 'calendarStyle' requires default value to be set.","Prop 'translation' requires default value to be set.",{"kind":"187","justification":"185"},{"kind":"187","justification":"185"},{"kind":"187","justification":"185"},{"kind":"187","justification":"185"},{"kind":"187","justification":"185"},{"kind":"187","justification":"185"},{"kind":"187","justification":"185"},{"kind":"187","justification":"185"},{"kind":"187","justification":"185"},{"kind":"187","justification":"185"},{"kind":"187","justification":"185"},{"kind":"187","justification":"185"},[5204,5227],"\n arg0: RegExp,\n arg1: any\n ",{"kind":"187","justification":"185"},{"kind":"187","justification":"185"},{"kind":"187","justification":"185"},{"kind":"187","justification":"185"},{"kind":"187","justification":"185"},{"kind":"187","justification":"185"},{"kind":"187","justification":"185"},{"kind":"187","justification":"185"},{"kind":"187","justification":"185"},{"kind":"187","justification":"185"},{"kind":"187","justification":"185"},[6298,6299],"",{"kind":"187","justification":"185"},"directive"] \ No newline at end of file diff --git a/.eslintrc.cjs b/.eslintrc.cjs index c2641e7..c07355a 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -23,7 +23,7 @@ module.exports = { 'no-useless-constructor': 'off', indent: 'off', 'no-tabs': 'error', - 'max-len': [2, 140, 4, { ignoreUrls: true }], + 'max-len': [2, 200, 4, { ignoreUrls: true }], 'no-template-curly-in-string': 'error', 'prefer-arrow-callback': 'error', 'no-param-reassign': 'off', diff --git a/.releaserc b/.releaserc new file mode 100644 index 0000000..a95e879 --- /dev/null +++ b/.releaserc @@ -0,0 +1,37 @@ +{ + "branches": [ + "main", + "master" + ], + "plugins": [ + "@semantic-release/commit-analyzer", + "@semantic-release/release-notes-generator", + [ + "@semantic-release/changelog", + { + "changelogFile": "CHANGELOG.md" + } + ], + [ + "@semantic-release/npm", + { + "npmPublish": true, + "pkgRoot": "./build" + } + ], + [ + "@semantic-release/github" + ], + [ + "@semantic-release/git", + { + "assets": [ + "/build", + "CHANGELOG.md", + "package.json" + ], + "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" + } + ] + ] +} diff --git a/build/DatePickerComponent.css b/build/DatePickerComponent.css new file mode 100644 index 0000000..d9303ae --- /dev/null +++ b/build/DatePickerComponent.css @@ -0,0 +1 @@ +.cursor-na[data-v-204bf2e8]{cursor:"not-allowed"}.rtl{direction:rtl}.vuejs3-datepicker{color:#2f2f2f;display:inline-block;position:relative}.vuejs3-datepicker *{box-sizing:border-box}.vuejs3-datepicker input{border:1px solid}.vuejs3-datepicker__icon{display:-webkit-flex;display:-ms-flexbox;display:flex}.vuejs3-datepicker__value{border:1px solid;border-radius:5px;cursor:pointer;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;min-width:200px;padding:13px 15px}.vuejs3-datepicker__content{font-size:15px;margin-left:10px}.vuejs3-datepicker__typeablecalendar{left:10px;position:absolute;top:10px}.vuejs3-datepicker__inputvalue{border:1px solid;border-radius:5px;cursor:pointer;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;min-width:200px;padding:12px 10px 13px 35px}.vuejs3-datepicker__calendar{background:#fff;border-radius:4px;box-shadow:0 .2rem 1rem #0000001f;margin-top:4px;position:absolute;width:300px;z-index:100}.vuejs3-datepicker__calendar-topbar{background-color:#40b983;border-radius:4px 4px 0 0;color:#fff;padding:25px}.vuejs3-datepicker__calendar-topbar-year{font-size:30px;margin:0;padding-bottom:10px}.vuejs3-datepicker__calendar-topbar-day{font-size:20px;margin:0}.vuejs3-datepicker__calendar-actionarea{padding:10px}.vuejs3-datepicker__calendar header{display:block;line-height:40px}.vuejs3-datepicker__calendar header span{float:left;text-align:center;width:71.42857142857143%}.vuejs3-datepicker__calendar header .next,.vuejs3-datepicker__calendar header .prev{float:left;position:relative;text-indent:-10000px;width:14.285714285714286%}.vuejs3-datepicker__calendar header .next:after,.vuejs3-datepicker__calendar header .prev:after{content:"";height:8px;left:50%;position:absolute;top:50%;-webkit-transform:translateX(-50%) translateY(-50%) rotate(45deg);transform:translate(-50%) translateY(-50%) rotate(45deg);width:8px}.vuejs3-datepicker__calendar header .prev:after{border-bottom:1px solid #2f2f2f;border-left:1px solid #2f2f2f}.vuejs3-datepicker__calendar header .next.disabled:after,.vuejs3-datepicker__calendar header .prev.disabled:after{opacity:.5}.vuejs3-datepicker__calendar header .next:after{border-right:1px solid #2f2f2f;border-top:1px solid #2f2f2f}.vuejs3-datepicker__calendar header .next:not(.disabled),.vuejs3-datepicker__calendar header .prev:not(.disabled),.vuejs3-datepicker__calendar header .up:not(.disabled){border-radius:4px;cursor:pointer;font-size:15px}.vuejs3-datepicker__calendar header .next:not(.disabled):hover,.vuejs3-datepicker__calendar header .prev:not(.disabled):hover,.vuejs3-datepicker__calendar header .up:not(.disabled):hover{background:#f8f8f8}.vuejs3-datepicker__calendar .disabled{color:#ddd;cursor:default}.vuejs3-datepicker__calendar .flex-rtl{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;width:inherit}.vuejs3-datepicker__calendar .cell{border:1px solid transparent;display:inline-block;font-size:14px;height:40px;line-height:40px;padding:0 5px;text-align:center;vertical-align:middle;width:14.285714285714286%}.vuejs3-datepicker__calendar .cell.month,.vuejs3-datepicker__calendar .cell.year{height:50px;line-height:28px;padding:10px 5px}.vuejs3-datepicker__calendar .cell.day-header{text-transform:uppercase}.vuejs3-datepicker__calendar .cell:not(.blank):not(.disabled).day,.vuejs3-datepicker__calendar .cell:not(.blank):not(.disabled).month,.vuejs3-datepicker__calendar .cell:not(.blank):not(.disabled).year{cursor:pointer;transition:.45s}.vuejs3-datepicker__calendar .cell:not(.blank):not(.disabled).day:hover,.vuejs3-datepicker__calendar .cell:not(.blank):not(.disabled).month:hover,.vuejs3-datepicker__calendar .cell:not(.blank):not(.disabled).year:hover{border:1px solid #40b983}.vuejs3-datepicker__calendar .cell.selected{background:#40b983;color:#fff}.vuejs3-datepicker__calendar .cell.selected:hover{background:#40b983}.vuejs3-datepicker__calendar .cell.highlighted{background:#40b983;color:#fff}.vuejs3-datepicker__calendar .cell.highlighted.selected{background:#40b983}.vuejs3-datepicker__calendar .cell.highlighted.disabled{color:#a3a3a3}.vuejs3-datepicker__calendar .cell.highlighted.highlight-start,.vuejs3-datepicker__calendar .cell.highlighted:last-child{background:#2f9668}.vuejs3-datepicker__calendar .cell.grey{color:#888}.vuejs3-datepicker__calendar .cell.grey:hover{background:inherit}.vuejs3-datepicker__calendar .cell.day-header{cursor:inherit;font-size:75%;white-space:nowrap}.vuejs3-datepicker__calendar .cell.day-header:hover{background:inherit}.vuejs3-datepicker__calendar .month,.vuejs3-datepicker__calendar .year{width:33.333%}.vuejs3-datepicker__calendar-button,.vuejs3-datepicker__clear-button{cursor:pointer;font-style:normal;position:absolute;right:12px;top:12px}.vuejs3-datepicker__calendar-button.disabled,.vuejs3-datepicker__clear-button.disabled{color:#999;cursor:default}.vuejs3-datepicker #calendar-div{background-color:#fff;border-radius:5px}.dp-error{color:red;font-size:12px}.backdrop{background-color:#00000080;bottom:0;cursor:pointer;display:none;height:100%;left:0;position:fixed;right:0;top:0;width:100%;z-index:2} diff --git a/build/vite.svg b/build/vite.svg new file mode 100644 index 0000000..e7b8dfb --- /dev/null +++ b/build/vite.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/build/vuejs3-datepicker.js b/build/vuejs3-datepicker.js new file mode 100644 index 0000000..3037f48 --- /dev/null +++ b/build/vuejs3-datepicker.js @@ -0,0 +1,1878 @@ +import './DatePickerComponent.css'; +import { defineComponent as q, openBlock as g, createElementBlock as b, normalizeClass as S, createElementVNode as N, ref as R, computed as h, watch as X, resolveComponent as Z, createTextVNode as Ce, toDisplayString as v, createCommentVNode as Y, createVNode as fe, renderSlot as U, withDirectives as le, normalizeStyle as ye, withModifiers as te, Fragment as _, renderList as x, vShow as ge, resolveDirective as Me, withCtx as se, createBlock as me } from "vue"; +const Ve = ["click"], ee = [], ke = { + instances: ee, + beforeMount: be, + update: (e, t) => { + JSON.stringify(t.value) !== JSON.stringify(t.oldValue) && be(e, t); + }, + unmounted: we +}; +function be(e, { value: t }) { + we(e); + const o = t, i = typeof o == "function"; + if (!i && !(typeof o == "object") || !(o.isActive !== !1)) + return; + const n = i ? o : o.handler, c = Te({ el: e, handler: n }); + c.eventHandlers.forEach( + ({ event: M, handler: $ }) => setTimeout(() => document.addEventListener(M, $, !1), 0) + ), ee.push(c); +} +function we(e) { + const t = ee.findIndex((i) => i.el === e); + if (t === -1) + return; + ee[t].eventHandlers.forEach( + ({ event: i, handler: r }) => document.removeEventListener(i, r, !1) + ), ee.splice(t, 1); +} +function Te({ el: e, handler: t }) { + return { + el: e, + eventHandlers: Ve.map((o) => ({ + event: o, + handler: (i) => Be({ event: i, el: e, handler: t }) + })) + }; +} +function Be({ event: e, el: t, handler: o }) { + const i = e.path || (e.composedPath ? e.composedPath() : void 0); + if (i ? i.indexOf(t) < 0 : !t.contains(e.target)) + return o && o(e, t); +} +const $e = q({ + name: "IconView", + props: { + height: { + type: [String, Number], + default: "16" + }, + width: { + type: [String, Number], + default: "16" + }, + color: { + type: String, + default: "black" + }, + customClass: { + type: String, + required: !1, + default: "" + } + }, + setup() { + return {}; + } +}), W = (e, t) => { + const o = e.__vccOpts || e; + for (const [i, r] of t) + o[i] = r; + return o; +}, Fe = ["height", "width"], Ye = ["fill"]; +function je(e, t, o, i, r, y) { + return g(), b("span", { + class: S(e.customClass) + }, [ + (g(), b("svg", { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 448 512", + height: e.height, + width: e.width, + role: "img", + "aria-hidden": "true", + "data-icon": "calendarAlt" + }, [ + N("path", { + fill: e.color, + d: "M400 64h-48V12c0-6.6-5.4-12-12-12h-8c-6.6 0-12 5.4-12 12v52H128V12c0-6.6-5.4-12-12-12h-8c-6.6 0-12 5.4-12 12v52H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM48 96h352c8.8 0 16 7.2 16 16v48H32v-48c0-8.8 7.2-16 16-16zm352 384H48c-8.8 0-16-7.2-16-16V192h384v272c0 8.8-7.2 16-16 16zM148 320h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm96 0h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm96 0h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm-96 96h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm-96 0h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm192 0h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12z" + }, null, 8, Ye) + ], 8, Fe)) + ], 2); +} +const Oe = /* @__PURE__ */ W($e, [["render", je]]), m = (e, t = !1) => t ? e.getUTCFullYear() : e.getFullYear(), p = (e, t = !1) => t ? e.getUTCMonth() : e.getMonth(), A = (e, t = !1) => t ? e.getUTCDate() : e.getDate(), J = (e, t = !1) => t ? e.getUTCDay() : e.getDay(), he = (e, t, o = !1) => o ? e.setUTCFullYear(t) : e.setFullYear(t), pe = (e, t, o = !1) => o ? e.setUTCMonth(t) : e.setMonth(t), ie = (e, t, o = !1) => o ? e.setUTCDate(t) : e.setDate(t), oe = (e, t, o = !1) => { + const i = new Date(e.getTime()), r = new Date(t.getTime()); + return o ? (i.setUTCHours(0, 0, 0, 0), r.setUTCHours(0, 0, 0, 0)) : (i.setHours(0, 0, 0, 0), r.setHours(0, 0, 0, 0)), i.getTime() === r.getTime(); +}, Ae = (e) => Object.prototype.toString.call(e) !== "[object Date]" ? !1 : !Number.isNaN(e.getTime()), re = (e, t) => { + if (typeof e != "object") + throw TypeError("Invalid Type"); + return t[J(e)]; +}, ae = (e, t) => { + if (!t) + throw Error("missing 2nd parameter Months array"); + if (typeof e == "object") + return t[p(e)]; + if (typeof e == "number") + return t[e]; + throw TypeError("Invalid type"); +}, ue = (e, t) => { + if (!t) + throw Error("missing 2nd paramter Months array"); + if (typeof e == "object") + return t[p(e)]; + if (typeof e == "number") + return t[e]; + throw TypeError("Invalid type"); +}, Ie = (e, t) => /8|3|5|10/.test(t) ? 30 : t === 1 ? !(e % 4) && e % 100 || !(e % 400) ? 29 : 28 : 31, He = (e) => { + switch (e) { + case 1: + case 21: + case 31: + return "st"; + case 2: + case 22: + return "nd"; + case 3: + case 23: + return "rd"; + default: + return "th"; + } +}, Pe = (e, t, o) => { + const i = m(e), r = p(e) + 1, y = A(e); + return t.replace(/dd/, `0${y}`.slice(-2)).replace(/d/, y).replace(/yyyy/, i).replace(/yy/, String(i).slice(2)).replace(/MMMM/, ae(p(e), o.months)).replace(/MMM/, ue(p(e), o.monthsAbbr)).replace(/MM/, `0${r}`.slice(-2)).replace(/M(?!a|ä|e)/, r.toString()).replace(/su/, He(A(e))).replace(/D(?!e|é|i)/, re(e, o.days)); +}, Je = (e) => e === null || e instanceof Date || typeof e == "string" || typeof e == "number", z = (e) => typeof e == "string" ? new Date(e) : e, ze = q({ + name: "DateInput", + components: { + IconView: Oe + }, + props: { + selectedDate: { + type: [Date, String], + default: null + }, + resetTypedDate: { + type: [Date], + default: /* @__PURE__ */ new Date() + }, + format: { + type: [String, Function] + }, + translation: { + type: Object + }, + inline: { + type: Boolean + }, + id: { + type: String + }, + name: { + type: String + }, + openDate: { + type: Date + }, + placeholder: { + type: String + }, + inputClass: { + type: [String, Object, Array] + }, + clearButton: { + type: Boolean + }, + clearButtonIcon: { + type: String + }, + calendarButton: { + type: Boolean + }, + calendarButtonIcon: { + type: String + }, + calendarButtonIconContent: { + type: String + }, + disabled: { + type: Boolean + }, + required: { + type: Boolean + }, + typeable: { + type: Boolean + }, + addBootstrapClass: { + type: Boolean, + default: !1, + required: !1, + validator: (e) => !!e + }, + useUtc: { + type: Boolean + }, + minimumView: { + type: String, + default: "day" + }, + maximumView: { + type: String, + default: "year" + }, + hideInput: { + type: Boolean, + default: !0 + }, + fullMonthName: { + type: Boolean, + default: !1 + }, + iconColor: { + default: "black", + type: String + }, + iconHeight: { + default: 16, + type: [String, Number] + }, + iconWidth: { + default: 16, + type: [String, Number] + }, + theme: { + default: "green", + type: String + } + }, + emits: ["show-calendar", "typed-date", "clear-date", "close-calendar"], + setup(e, { emit: t }) { + const o = R(), i = R(null), r = h(() => e.addBootstrapClass ? typeof e.inputClass == "string" ? [e.inputClass, "form-control"].join(" ") : { + "form-control": !0, + ...e.inputClass + } : e.inputClass), y = h(() => { + var T, C; + if (!e.selectedDate) + return null; + if (o.value) + return o.value; + const V = z(e.selectedDate); + let k = typeof e.format == "function" ? e.format(V) : Pe(V, e.format, e.translation); + if (e.minimumView === e.maximumView) { + const [, H, I] = k.split(" "); + if (e.maximumView === "month") { + if (e.fullMonthName) { + const P = (T = e.translation) == null ? void 0 : T.monthsAbbr.indexOf(H); + return (C = e.translation) == null ? void 0 : C.months[P]; + } + k = H; + } else + e.maximumView === "year" && (k = I); + } + return k; + }); + X( + () => e.resetTypedDate, + () => { + o.value = ""; + } + ); + function n() { + t("show-calendar"); + } + function c(V) { + if ([ + 27, + // escape + 13 + // enter + ].includes(V.keyCode) && i.value.blur(), e.typeable) { + const { value: k } = i.value, T = Date.parse(k); + Number.isNaN(T) || (o.value = k, t("typed-date", new Date(T))); + } + } + function M() { + t("clear-date"); + } + function $() { + e.typeable && Number.isNaN(Date.parse(i.value.value)) && (M(), i.value.value = null, o.value = ""), t("close-calendar", !0); + } + return { + typedDate: o, + computedInputClass: r, + formattedValue: y, + showCalendar: n, + parseTypedDate: c, + inputBlurred: $, + inputRef: i, + clearDate: M + }; + } +}); +const Re = { key: 0 }, Ue = { + key: 1, + style: { position: "relative" } +}, Ee = { key: 0 }, Le = ["type", "name", "id", "value", "open-date", "placeholder", "clear-button", "disabled", "required", "readonly"], qe = { + key: 0, + class: "vuejs3-datepicker__value" +}, We = { class: "vuejs3-datepicker__icon" }, Ge = { + key: 0, + class: "vuejs3-datepicker__content" +}, Ke = { + key: 1, + class: "vuejs3-datepicker__content" +}, Qe = { key: 0 }; +function Xe(e, t, o, i, r, y) { + const n = Z("IconView"); + return g(), b("div", { + class: S([e.addBootstrapClass ? "input-group" : ""]) + }, [ + e.calendarButton ? (g(), b("span", { + key: 0, + class: S(["vuejs3-datepicker__calendar-button", { "input-group-prepend": e.addBootstrapClass, "cursor-na": e.disabled }]), + onClick: t[0] || (t[0] = (...c) => e.showCalendar && e.showCalendar(...c)) + }, [ + N("span", { + class: S({ "input-group-text": e.addBootstrapClass }) + }, [ + N("i", { + class: S(e.calendarButtonIcon) + }, [ + Ce(v(e.calendarButtonIconContent) + " ", 1), + e.calendarButtonIcon ? Y("", !0) : (g(), b("span", Re, "…")) + ], 2) + ], 2) + ], 2)) : Y("", !0), + e.typeable || !e.hideInput ? (g(), b("div", Ue, [ + e.inline ? Y("", !0) : (g(), b("span", Ee, [ + fe(n, { + customClass: "vuejs3-datepicker__typeablecalendar", + color: e.iconColor, + width: e.iconWidth, + height: e.iconHeight + }, null, 8, ["color", "width", "height"]) + ])), + N("input", { + type: e.inline ? "hidden" : "text", + class: S([e.computedInputClass, "vuejs3-datepicker__inputvalue"]), + name: e.name, + ref: "inputRef", + id: e.id, + value: e.formattedValue, + "open-date": e.openDate, + placeholder: e.placeholder, + "clear-button": e.clearButton, + disabled: e.disabled, + required: e.required, + readonly: !e.typeable, + onClick: t[1] || (t[1] = (...c) => e.showCalendar && e.showCalendar(...c)), + onKeyup: t[2] || (t[2] = (...c) => e.parseTypedDate && e.parseTypedDate(...c)), + onBlur: t[3] || (t[3] = (...c) => e.inputBlurred && e.inputBlurred(...c)), + autocomplete: "off" + }, null, 42, Le) + ])) : (g(), b("div", { + key: 2, + onClick: t[4] || (t[4] = (...c) => e.showCalendar && e.showCalendar(...c)), + id: "calendar-div" + }, [ + e.inline ? Y("", !0) : (g(), b("div", qe, [ + N("span", We, [ + fe(n, { + color: e.iconColor, + width: e.iconWidth, + height: e.iconHeight + }, null, 8, ["color", "width", "height"]) + ]), + e.formattedValue ? (g(), b("div", Ge, v(e.formattedValue), 1)) : (g(), b("div", Ke, v(e.placeholder), 1)) + ])) + ])), + e.clearButton && e.selectedDate ? (g(), b("span", { + key: 3, + class: S(["vuejs3-datepicker__clear-button", { "input-group-append": e.addBootstrapClass }]), + onClick: t[5] || (t[5] = (c) => e.clearDate()) + }, [ + N("span", { + class: S({ "input-group-text": e.addBootstrapClass }) + }, [ + N("i", { + class: S(e.clearButtonIcon) + }, [ + e.clearButtonIcon ? Y("", !0) : (g(), b("span", Qe, "×")) + ], 2) + ], 2) + ], 2)) : Y("", !0), + U(e.$slots, "belowDate", {}, void 0, !0) + ], 2); +} +const Ze = /* @__PURE__ */ W(ze, [["render", Xe], ["__scopeId", "data-v-204bf2e8"]]), _e = q({ + name: "PickerDay", + props: { + showDayView: { + type: Boolean + }, + selectedDate: { + type: [String, Date], + required: !1, + default: null, + validator: (e) => ["string", "number"].indexOf(typeof e) !== -1 || e === null + }, + pageDate: { + type: Date, + default: /* @__PURE__ */ new Date() + }, + fullMonthName: { + type: Boolean + }, + allowedToShowView: { + type: Function, + required: !0 + }, + dayCellContent: { + type: Function, + default: (e) => e.date + }, + disabledDates: { + type: Object + }, + highlighted: { + type: Object + }, + calendarClass: { + type: [String, Object, Array] + }, + calendarStyle: { + type: Object + }, + translation: { + type: Object + }, + isRtl: { + type: Boolean + }, + mondayFirst: { + type: Boolean + }, + useUtc: { + type: Boolean + }, + minimumView: { + type: String, + default: "day" + }, + maximumView: { + type: String, + default: "year" + }, + preventDisableDateSelection: { + type: Boolean, + default: !0 + }, + theme: { + default: "green", + type: String + } + }, + emits: ["show-year-calendar", "changed-month", "show-month-calendar", "selected-disabled", "select-date"], + setup(e, { emit: t }) { + function o(a) { + a.isDisabled ? (t("selected-disabled", a), e.preventDisableDateSelection || t("select-date", a)) : t("select-date", a); + } + function i() { + t("show-month-calendar"); + } + function r() { + t("show-year-calendar"); + } + function y(a) { + const l = e.pageDate; + pe(l, p(l) + a), t("changed-month", l); + } + function n() { + const a = e.disabledDates; + if (!a || !a.to) + return !1; + const l = e.pageDate; + return p(a.to) >= p(l) && m(a.to) >= m(l); + } + function c() { + n() || y(-1); + } + function M() { + const a = e.disabledDates; + if (!a || !a.from) + return !1; + const l = e.pageDate; + return p(a.from) <= p(l) && m(a.from) <= m(l); + } + function $() { + M() || y(1); + } + function V(a) { + const l = z(e.selectedDate); + return e.selectedDate ? oe(l, a) : !1; + } + function k(a) { + let l = !1; + const d = e.disabledDates; + return d ? typeof d > "u" ? !1 : (typeof d.dates < "u" && d.dates.forEach((L) => { + oe(a, L) && (l = !0); + }), typeof d.to < "u" && d.to && a < d.to && (l = !0), typeof d.from < "u" && d.from && a > d.from && (l = !0), typeof d.days < "u" && d.days.indexOf(J(a)) !== -1 && (l = !0), typeof d.daysOfMonth < "u" && d.daysOfMonth.indexOf(A(a)) !== -1 && (l = !0), typeof d.customPredictor == "function" && d.customPredictor(a) && (l = !0), l) : l; + } + function T(a) { + return typeof a < "u" && a; + } + function C(a) { + const l = e.highlighted; + if (!(l && l.includeDisabled) && k(a)) + return !1; + let d = !1; + return typeof l > "u" ? !1 : (typeof l.dates < "u" && l.dates.forEach((L) => { + oe(a, L) && (d = !0); + }), T(l.from) && T(l.to) && (d = a >= l.from && a <= l.to), typeof l.days < "u" && l.days.indexOf(J(a)) !== -1 && (d = !0), typeof l.daysOfMonth < "u" && l.daysOfMonth.indexOf(A(a)) !== -1 && (d = !0), typeof l.customPredictor == "function" && l.customPredictor(a) && (d = !0), d); + } + function H(a) { + return { + selected: a.isSelected, + disabled: a.isDisabled, + highlighted: a.isHighlighted, + today: a.isToday, + weekend: a.isWeekend, + sat: a.isSaturday, + sun: a.isSunday, + "highlight-start": a.isHighlightStart, + "highlight-end": a.isHighlightEnd + }; + } + function I(a) { + const l = e.highlighted; + return l ? C(a) && l.from instanceof Date && m(l.from) === m(a) && p(l.from) === p(a) && A(l.from) === A(a) : !1; + } + function P(a) { + const l = e.highlighted; + return l ? C(a) && l.to instanceof Date && m(l.to) === m(a) && p(l.to) === p(a) && A(l.to) === A(a) : !1; + } + const F = h(() => { + if (e.mondayFirst) { + const a = e.translation && e.translation.days && e.translation.days.slice(); + return a.push(a.shift()), a; + } + return e.translation && e.translation.days; + }), j = h(() => { + const a = e.pageDate, l = e.useUtc ? new Date(Date.UTC(a.getUTCFullYear(), a.getUTCMonth(), 1)) : new Date(a.getFullYear(), a.getMonth(), 1, a.getHours(), a.getMinutes()); + return e.mondayFirst ? J(l) > 0 ? J(l) - 1 : 6 : J(l); + }), O = h(() => { + const a = e.pageDate, l = [], d = e.useUtc ? new Date(Date.UTC(a.getUTCFullYear(), a.getUTCMonth(), 1)) : new Date(a.getFullYear(), a.getMonth(), 1, a.getHours(), a.getMinutes()), L = Ie(m(d), p(d)); + for (let Q = 0; Q < L; Q += 1) + l.push({ + date: A(d), + timestamp: d.getTime(), + isSelected: V(d), + isDisabled: k(d), + isHighlighted: C(d), + isHighlightStart: I(d), + isHighlightEnd: P(d), + isToday: oe(d, /* @__PURE__ */ new Date()), + isWeekend: J(d) === 0 || J(d) === 6, + isSaturday: J(d) === 6, + isSunday: J(d) === 0 + }), ie(d, A(d) + 1); + return l; + }), u = h(() => { + const a = e.fullMonthName ? e.translation && e.translation.months : e.translation && e.translation.monthsAbbr; + return ue(p(e.pageDate), a); + }), s = h(() => { + const a = e.translation && e.translation.months; + return ae(p(e.pageDate), a); + }), D = h(() => { + const a = e.translation && e.translation.yearSuffix; + return `${m(e.pageDate)}${a}`; + }), w = h(() => (e.translation && e.translation.ymd && e.translation && e.translation.ymd) === !0), E = h(() => e.isRtl ? M() : n()), G = h(() => e.isRtl ? n() : M()), de = h(() => { + const a = z(e.selectedDate); + return e.selectedDate ? re(a, e.translation && e.translation.daysNames) : null; + }), K = h(() => { + const a = z(e.selectedDate); + return e.selectedDate ? A(a) : null; + }), ce = h(() => !(e.minimumView === e.maximumView && (e.minimumView !== "day" || e.maximumView !== "day"))); + return { + isDefined: T, + showMonthCalendar: i, + daysOfWeek: F, + blankDays: j, + isYmd: w, + days: O, + currMonthName: u, + currYearName: D, + isLeftNavDisabled: E, + isRightNavDisabled: G, + selectDate: o, + previousMonth: c, + nextMonth: $, + dayClasses: H, + monthName: s, + getDayName: de, + getDisplayDate: K, + showYearCalendar: r, + isNextMonthDisabled: M, + ifDifferentViews: ce, + isSelectedDate: V, + isDisabledDate: k, + isHighlightedDate: C, + isHighlightStart: I, + isHighlightEnd: P + }; + } +}), xe = { + key: 0, + class: "vuejs3-datepicker__calendar-topbar" +}, et = { class: "vuejs3-datepicker__calendar-topbar-day" }, tt = { class: "vuejs3-datepicker__calendar-actionarea" }, at = ["innerHTML", "onClick"]; +function nt(e, t, o, i, r, y) { + return le((g(), b("div", { + class: S(["vuejs3-datepicker__calendar", `vuejs3-${e.theme}`, e.calendarClass]), + style: ye(e.calendarStyle), + onMousedown: t[4] || (t[4] = te(() => { + }, ["prevent"])) + }, [ + U(e.$slots, "customCalendarHeader"), + e.ifDifferentViews && e.selectedDate ? (g(), b("section", xe, [ + N("p", { + class: "vuejs3-datepicker__calendar-topbar-year", + onClick: t[0] || (t[0] = (...n) => e.showYearCalendar && e.showYearCalendar(...n)) + }, v(e.currYearName), 1), + N("p", et, v(e.getDayName) + " " + v(e.getDisplayDate) + " " + v(e.monthName), 1) + ])) : Y("", !0), + N("div", tt, [ + N("header", null, [ + N("span", { + onClick: t[1] || (t[1] = (n) => e.isRtl ? e.nextMonth() : e.previousMonth()), + class: S(["prev", { disabled: e.isLeftNavDisabled }]) + }, "<", 2), + N("span", { + class: S(["day__month_btn", e.allowedToShowView("month") ? "up" : ""]), + onClick: t[2] || (t[2] = (...n) => e.showMonthCalendar && e.showMonthCalendar(...n)) + }, v(e.isYmd ? e.currYearName : e.currMonthName) + " " + v(e.isYmd ? e.currMonthName : e.currYearName), 3), + N("span", { + onClick: t[3] || (t[3] = (n) => e.isRtl ? e.previousMonth() : e.nextMonth()), + class: S(["next", { disabled: e.isRightNavDisabled }]) + }, ">", 2) + ]), + N("div", { + class: S(e.isRtl ? "flex-rtl" : "") + }, [ + (g(!0), b(_, null, x(e.daysOfWeek, (n) => (g(), b("span", { + class: "cell day-header", + key: n.timestamp + }, v(n), 1))), 128)), + e.blankDays > 0 ? (g(!0), b(_, { key: 0 }, x(e.blankDays, (n) => (g(), b("span", { + class: "cell day blank", + key: n.timestamp + }))), 128)) : Y("", !0), + (g(!0), b(_, null, x(e.days, (n) => (g(), b("span", { + class: S(["cell day", e.dayClasses(n)]), + key: n.timestamp, + innerHTML: e.dayCellContent(n), + onClick: (c) => e.selectDate(n) + }, null, 10, at))), 128)) + ], 2) + ]) + ], 38)), [ + [ge, e.showDayView] + ]); +} +const st = /* @__PURE__ */ W(_e, [["render", nt]]), ot = q({ + name: "PickerMonth", + props: { + showMonthView: { + type: Boolean + }, + selectedDate: { + type: [String, Date], + required: !1, + default: null, + validator: (e) => ["string", "number"].indexOf(typeof e) !== -1 || e === null + }, + pageDate: { + type: Date, + default: /* @__PURE__ */ new Date() + }, + disabledDates: { + type: Object + }, + calendarClass: { + type: [String, Object, Array] + }, + calendarStyle: { + type: Object + }, + translation: { + type: Object + }, + isRtl: { + type: Boolean + }, + allowedToShowView: { + type: Function, + required: !0 + }, + useUtc: { + type: Boolean + }, + fullMonthName: { + type: Boolean + }, + minimumView: { + type: String, + default: "day" + }, + maximumView: { + type: String, + default: "year" + }, + theme: { + default: "green", + type: String + } + }, + setup(e, { emit: t }) { + function o(s) { + s.isDisabled || t("select-month", s); + } + function i(s) { + const D = e.pageDate; + he(D, m(D) + s), t("changed-year", D); + } + function r() { + const s = e.disabledDates; + return !s || !s.to ? !1 : m(s.to) >= m(e.pageDate); + } + function y() { + r() || i(-1); + } + function n() { + const s = e.disabledDates; + return !s || !s.from ? !1 : m(s.from) <= m(e.pageDate); + } + function c() { + n() || i(1); + } + function M() { + t("show-year-calendar"); + } + function $(s) { + const D = z(e.selectedDate); + return D && m(D) === m(s) && p(D) === p(s); + } + function V(s) { + let D = !1; + const w = e.disabledDates; + return !w || typeof w > "u" ? !1 : (typeof w.to < "u" && w.to && (p(s) < p(w.to) && m(s) <= m(w.to) || m(s) < m(w.to)) && (D = !0), typeof w.from < "u" && w.from && (p(s) > p(w.from) && m(s) >= m(w.from) || m(s) > m(w.from)) && (D = !0), typeof w.customPredictor == "function" && w.customPredictor(s) && (D = !0), D); + } + const k = h(() => { + const s = e.pageDate, D = [], w = e.useUtc ? new Date(Date.UTC(s.getUTCFullYear(), 0, s.getUTCDate())) : new Date(s.getFullYear(), 0, s.getDate(), s.getHours(), s.getMinutes()); + for (let E = 0; E < 12; E += 1) + D.push({ + month: ae(E, e.translation && e.translation.months), + timestamp: w.getTime(), + isSelected: $(w), + isDisabled: V(w) + }), pe(w, p(w) + 1); + return D; + }), T = h(() => { + const s = e.translation && e.translation.yearSuffix; + return `${m(e.pageDate)}${s}`; + }), C = h(() => e.isRtl ? n() : r()), H = h(() => e.isRtl ? r() : n()), I = h(() => { + const s = e.translation && e.translation.months; + return ae(p(e.pageDate), s); + }), P = h(() => { + const s = z(e.selectedDate); + return e.selectedDate ? A(s) : null; + }), F = h(() => { + const s = z(e.selectedDate); + return e.selectedDate ? re(s, e.translation && e.translation.daysNames) : null; + }), j = h(() => { + const s = e.translation && e.translation.yearSuffix; + return `${m(e.pageDate)}${s}`; + }), O = h(() => { + const s = e.fullMonthName ? e.translation && e.translation.months : e.translation && e.translation.monthsAbbr; + return ue(p(e.pageDate), s); + }), u = h(() => !(e.minimumView === e.maximumView && (e.minimumView !== "day" || e.maximumView !== "day"))); + return { + isRightNavDisabled: H, + isLeftNavDisabled: C, + pageYearName: T, + months: k, + selectMonth: o, + previousYear: y, + nextYear: c, + currYearName: j, + getDisplayDate: P, + monthName: I, + showYearCalendar: M, + getDayName: F, + currMonthName: O, + ifDifferentViews: u, + isSelectedMonth: $, + isDisabledMonth: V + }; + } +}), it = { + key: 0, + class: "vuejs3-datepicker__calendar-topbar" +}, lt = { + key: 0, + class: "vuejs3-datepicker__calendar-topbar-day" +}, rt = { class: "vuejs3-datepicker__calendar-actionarea" }, ut = ["onClick"]; +function dt(e, t, o, i, r, y) { + return le((g(), b("div", { + class: S(["vuejs3-datepicker__calendar", `vuejs3-${e.theme}`, e.calendarClass]), + style: ye(e.calendarStyle), + onMousedown: t[4] || (t[4] = te(() => { + }, ["prevent"])) + }, [ + U(e.$slots, "customCalendarHeader"), + e.ifDifferentViews ? (g(), b("section", it, [ + N("p", { + class: "vuejs3-datepicker__calendar-topbar-year", + onClick: t[0] || (t[0] = (...n) => e.showYearCalendar && e.showYearCalendar(...n)) + }, v(e.currYearName), 1), + e.selectedDate ? (g(), b("p", lt, v(e.getDayName) + " " + v(e.getDisplayDate) + " " + v(e.monthName), 1)) : Y("", !0) + ])) : Y("", !0), + N("div", rt, [ + N("header", null, [ + N("span", { + onClick: t[1] || (t[1] = (n) => e.isRtl ? e.nextYear() : e.previousYear()), + class: S(["prev", { disabled: e.isLeftNavDisabled }]) + }, "<", 2), + N("span", { + class: S(["month__year_btn", e.allowedToShowView("year") ? "up" : ""]), + onClick: t[2] || (t[2] = (...n) => e.showYearCalendar && e.showYearCalendar(...n)) + }, v(e.pageYearName), 3), + N("span", { + onClick: t[3] || (t[3] = (n) => e.isRtl ? e.previousYear() : e.nextYear()), + class: S(["next", { disabled: e.isRightNavDisabled }]) + }, ">", 2) + ]), + (g(!0), b(_, null, x(e.months, (n) => (g(), b("span", { + class: S(["cell month", { selected: n.isSelected, disabled: n.isDisabled }]), + key: n.timestamp, + onClick: te((c) => e.selectMonth(n), ["stop"]) + }, v(n.month), 11, ut))), 128)) + ]) + ], 38)), [ + [ge, e.showMonthView] + ]); +} +const ct = /* @__PURE__ */ W(ot, [["render", dt]]), mt = q({ + name: "PickerYear", + props: { + showYearView: { + type: Boolean + }, + selectedDate: { + type: [String, Date], + required: !1, + default: null, + validator: (e) => ["string", "number"].indexOf(typeof e) !== -1 || e === null + }, + pageDate: { + type: Date, + default: /* @__PURE__ */ new Date() + }, + disabledDates: { + type: Object + }, + highlighted: { + type: Object + }, + calendarClass: { + type: [String, Object, Array] + }, + calendarStyle: { + type: Object + }, + translation: { + type: Object + }, + isRtl: { + type: Boolean + }, + allowedToShowView: { + type: Function, + required: !0 + }, + useUtc: { + type: Boolean + }, + fullMonthName: { + type: Boolean + }, + minimumView: { + type: String, + default: "day" + }, + maximumView: { + type: String, + default: "year" + }, + theme: { + default: "green", + type: String + } + }, + emits: ["select-year", "changed-decade"], + setup(e, { emit: t }) { + function o(u) { + u.isDisabled || t("select-year", u); + } + function i(u) { + const s = e.pageDate; + he(s, m(s) + u), t("changed-decade", s); + } + function r() { + const u = e.disabledDates; + if (!u || !u.to) + return !1; + const s = m(u.to), D = Math.floor(m(e.pageDate) / 10) * 10 - 1; + return s > D; + } + function y() { + r() || i(-10); + } + function n() { + const u = e.disabledDates; + if (!u || !u.from) + return !1; + const s = m(u.from), D = Math.ceil(m(e.pageDate) / 10) * 10; + return s <= D; + } + function c() { + n() || i(10); + } + function M(u) { + const s = z(e.selectedDate); + return e.selectedDate ? m(s) === m(u) : !1; + } + function $(u) { + let s = !1; + return typeof e.disabledDates > "u" || !e.disabledDates ? !1 : (typeof e.disabledDates.to < "u" && e.disabledDates.to && m(u) < m(e.disabledDates.to) && (s = !0), typeof e.disabledDates.from < "u" && e.disabledDates.from && m(u) > m(e.disabledDates.from) && (s = !0), typeof e.disabledDates.customPredictor == "function" && (s = e.disabledDates.customPredictor(u)), s); + } + const V = h(() => { + const u = e.pageDate, s = [], D = e.useUtc ? new Date(Date.UTC(Math.floor(u.getUTCFullYear() / 10) * 10, u.getUTCMonth(), u.getUTCDate())) : new Date(Math.floor(u.getFullYear() / 10) * 10, u.getMonth(), u.getDate(), u.getHours(), u.getMinutes()); + for (let w = 0; w < 10; w += 1) + s.push({ + year: m(D), + timestamp: D.getTime(), + isSelected: M(D), + isDisabled: $(D) + }), he(D, m(D) + 1); + return s; + }), k = h(() => { + const u = Math.floor(m(e.pageDate) / 10) * 10, s = u + 9, D = e.translation && e.translation.yearSuffix; + return `${u} - ${s}${D}`; + }), T = h(() => e.isRtl ? n() : r()), C = h(() => e.isRtl ? r() : n()), H = h(() => { + const u = z(e.selectedDate); + return e.selectedDate ? re(u, e.translation && e.translation.daysNames) : null; + }), I = h(() => { + const u = e.translation && e.translation.months; + return ae(p(e.pageDate), u); + }), P = h(() => { + const u = z(e.selectedDate); + return e.selectedDate ? A(u) : null; + }), F = h(() => { + const u = e.translation && e.translation.yearSuffix; + return `${m(e.pageDate)}${u}`; + }), j = h(() => { + const u = e.fullMonthName ? e.translation && e.translation.months : e.translation && e.translation.monthsAbbr; + return ue(p(e.pageDate), u); + }), O = h(() => !(e.minimumView === e.maximumView && (e.minimumView !== "day" || e.maximumView !== "day"))); + return { + isRightNavDisabled: C, + isLeftNavDisabled: T, + getPageDecade: k, + years: V, + nextDecade: c, + previousDecade: y, + selectYear: o, + getDayName: H, + monthName: I, + getDisplayDate: P, + currYearName: F, + currMonthName: j, + ifDifferentViews: O, + // methods + isNextDecadeDisabled: n, + isPreviousDecadeDisabled: r, + isDisabledYear: $ + }; + } +}), ft = { + key: 0, + class: "vuejs3-datepicker__calendar-topbar" +}, ht = { class: "vuejs3-datepicker__calendar-topbar-year" }, yt = { + key: 0, + class: "vuejs3-datepicker__calendar-topbar-day" +}, gt = { class: "vuejs3-datepicker__calendar-actionarea" }, Dt = ["onClick"]; +function bt(e, t, o, i, r, y) { + return le((g(), b("div", { + class: S(["vuejs3-datepicker__calendar", `vuejs3-${e.theme}`, e.calendarClass]), + style: ye(e.calendarStyle), + onMousedown: t[2] || (t[2] = te(() => { + }, ["prevent"])) + }, [ + U(e.$slots, "customCalendarHeader"), + e.ifDifferentViews && e.selectedDate ? (g(), b("section", ft, [ + N("p", ht, v(e.currYearName), 1), + e.selectedDate ? (g(), b("p", yt, v(e.getDayName) + " " + v(e.getDisplayDate) + " " + v(e.monthName), 1)) : Y("", !0) + ])) : Y("", !0), + N("div", gt, [ + N("header", null, [ + N("span", { + onClick: t[0] || (t[0] = (n) => e.isRtl ? e.nextDecade() : e.previousDecade()), + class: S(["prev", { disabled: e.isLeftNavDisabled }]) + }, "<", 2), + N("span", null, v(e.getPageDecade), 1), + N("span", { + onClick: t[1] || (t[1] = (n) => e.isRtl ? e.previousDecade() : e.nextDecade()), + class: S(["next", { disabled: e.isRightNavDisabled }]) + }, ">", 2) + ]), + (g(!0), b(_, null, x(e.years, (n) => (g(), b("span", { + class: S(["cell year", { selected: n.isSelected, disabled: n.isDisabled }]), + key: n.timestamp, + onClick: te((c) => e.selectYear(n), ["stop"]) + }, v(n.year), 11, Dt))), 128)) + ]) + ], 38)), [ + [ge, e.showYearView] + ]); +} +const wt = /* @__PURE__ */ W(mt, [["render", bt]]), pt = () => { + const e = "Afrikaans", t = [ + "Januarie", + "Februarie", + "Maart", + "April", + "Mei", + "Junie", + "Julie", + "Augustus", + "September", + "Oktober", + "November", + "Desember" + ], o = ["Jan", "Feb", "Mrt", "Apr", "Mei", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Des"], i = ["So.", "Ma.", "Di.", "Wo.", "Do.", "Vr.", "Sa."]; + return { + months: t, + monthsAbbr: o, + days: i, + yearSuffix: "", + ymd: !1, + rtl: !1, + language: e, + langName: e, + daysNames: i + }; +}, Nt = () => { + const e = "German"; + return { + months: [ + "Januar", + "Februar", + "März", + "April", + "Mai", + "Juni", + "Juli", + "August", + "September", + "Oktober", + "November", + "Dezember" + ], + monthsAbbr: ["Jan", "Feb", "Mär", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez"], + days: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], + language: e, + yearSuffix: "", + ymd: !1, + rtl: !1, + langName: e, + daysNames: ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"] + }; +}, St = () => { + const e = "English"; + return { + months: [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December" + ], + monthsAbbr: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], + days: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], + language: e, + yearSuffix: "", + ymd: !1, + rtl: !1, + langName: e, + daysNames: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"] + }; +}, vt = () => { + const e = "Español"; + return { + months: [ + "Enero", + "Febrero", + "Marzo", + "Abril", + "Mayo", + "Junio", + "Julio", + "Agosto", + "Septiembre", + "Octubre", + "Noviembre", + "Diciembre" + ], + monthsAbbr: ["Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic"], + days: ["Dom", "Lun", "Mar", "Mie", "Jue", "Vie", "Sab"], + language: e, + yearSuffix: "", + ymd: !1, + rtl: !1, + langName: e, + daysNames: ["Domingo", "Lunes", "Martes", "Miércoles", "Jueves", "Viernes", "Sábado"] + }; +}, Ct = () => { + const e = "Français"; + return { + months: [ + "Janvier", + "Février", + "Mars", + "Avril", + "Mai", + "Juin", + "Juillet", + "Août", + "Septembre", + "Octobre", + "Novembre", + "Décembre" + ], + monthsAbbr: ["Jan", "Fév", "Mar", "Avr", "Mai", "Jui", "Juil", "Aoû", "Sep", "Oct", "Nov", "Déc"], + days: ["Dim", "Lun", "Mar", "Mer", "Jeu", "Ven", "Sam"], + language: e, + yearSuffix: "", + ymd: !1, + rtl: !1, + langName: e, + daysNames: ["Dimanche", "Lundi", "Mardi", "Mercredi", "Jeudi", "Vendredi", "Samedi"] + }; +}, Mt = () => { + const e = "Hindi"; + return { + months: [ + "जनवरी", + "फ़रवरी", + "मार्च", + "अप्रैल", + "मई", + "जून", + "जुलाई", + "अगस्त", + "सितंबर", + "अक्टूबर", + "नवंबर", + "दिसंबर" + ], + monthsAbbr: ["जन", "फ़र", "मार्च", "अप्रै", "मई", "जून", "जुला", "अगस्त", "सितं", "अक्टू", "नवं", "दिसं"], + days: ["रवि", "सोम", "मंगल", "बुध", "गुरु", "शुक्र", "शनि"], + language: e, + yearSuffix: "", + ymd: !1, + rtl: !1, + langName: e, + daysNames: ["रविवार", "सोमवार", "मंगलवार", "बुधवार", "गुरुवार", "शुक्रवार", "शनिवार"] + }; +}, Vt = () => { + const e = "Japanese"; + return { + months: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"], + monthsAbbr: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"], + days: ["日", "月", "火", "水", "木", "金", "土"], + language: e, + yearSuffix: "", + ymd: !1, + rtl: !1, + langName: e, + daysNames: ["日曜日", "月曜日", "火曜日", "水曜日", "木曜日", "金曜日", "土曜日"] + }; +}, kt = () => { + const e = "Dutch", t = [ + "januari", + "februari", + "maart", + "april", + "mei", + "juni", + "juli", + "augustus", + "september", + "oktober", + "november", + "december" + ], o = ["jan.", "feb.", "mrt.", "apr.", "mei", "juni", "juli", "aug.", "sep.", "okt.", "nov.", "dec."], i = ["zo.", "ma.", "di.", "wo.", "do.", "vr.", "za."]; + return { + months: t, + monthsAbbr: o, + days: i, + yearSuffix: "", + ymd: !1, + rtl: !1, + langName: e, + language: e, + daysNames: i + }; +}, Tt = () => { + const e = "Português"; + return { + months: [ + "Janeiro", + "Fevereiro", + "Março", + "Abril", + "Maio", + "Junho", + "Julho", + "Agosto", + "Setembro", + "Outubro", + "Novembro", + "Dezembro" + ], + monthsAbbr: ["Jan", "Fev", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago", "Set", "Out", "Nov", "Dez"], + days: ["Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sab"], + language: e, + yearSuffix: "", + ymd: !1, + rtl: !1, + langName: e, + daysNames: [ + "Domingo", + "Segunda-Feira", + "Terça-Feira", + "Quarta-Feira", + "Quinta-Feira", + "Sexta-Feira", + "Sábado" + ] + }; +}, Bt = () => { + const e = "Italian"; + return { + months: [ + "Gennaio", + "Febbraio", + "Marzo", + "Aprile", + "Maggio", + "Giugno", + "Luglio", + "Agosto", + "Settembre", + "Ottobre", + "Novembre", + "Dicembre" + ], + monthsAbbr: ["Gen", "Feb", "Mar", "Apr", "Mag", "Giu", "Lug", "Ago", "Set", "Ott", "Nov", "Dic"], + days: ["Dom", "Lun", "Mar", "Mer", "Gio", "Ven", "Sab"], + language: e, + yearSuffix: "", + ymd: !1, + rtl: !1, + langName: e, + daysNames: ["Domenica", "Lunedì", "Martedì", "Mercoledì", "Gioved", "Venerdì", "Sabato"] + }; +}, $t = () => { + const e = "Polish"; + return { + months: [ + "Styczeń", + "Luty", + "Marzec", + "Kwiecień", + "Maj", + "Czerwiec", + "Lipiec", + "Sierpień", + "Wrzesień", + "Październik", + "Listopad", + "Grudzień" + ], + monthsAbbr: ["Sty", "Lut", "Mar", "Kwi", "Maj", "Cze", "Lip", "Sie", "Wrz", "Paź", "Lis", "Gru"], + days: ["Nd", "Pn", "Wt", "Śr", "Cz", "Pt", "So"], + language: e, + yearSuffix: "", + ymd: !1, + rtl: !1, + langName: e, + daysNames: ["Niedziela", "Poniedziałek", "Wtorek", "Środa", "Czwartek", "Piątek", "Sobota"] + }; +}, Ft = () => { + const e = "Russian"; + return { + months: [ + "Январь", + "Февраль", + "Март", + "Апрель", + "Май", + "Июнь", + "Июль", + "Август", + "Сентябрь", + "Октябрь", + "Ноябрь", + "Декабрь" + ], + monthsAbbr: ["Янв.", "Фев.", "Мар.", "Апр.", "Май", "Июн.", "Июл.", "Авг.", "Сен.", "Окт.", "Ноя.", "Дек."], + days: ["Вс", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"], + language: e, + yearSuffix: "", + ymd: !1, + rtl: !1, + langName: e, + daysNames: ["Воскресенье", "Понедельник", "Вторник", "Среда", "Четверг", "Пятница", "Суббота"] + }; +}, Yt = () => { + const e = "Türkçe"; + return { + months: [ + "Ocak", + "Şubat", + "Mart", + "Nisan", + "Mayıs", + "Haziran", + "Temmuz", + "Ağustos", + "Eylül", + "Ekim", + "Kasım", + "Aralık" + ], + monthsAbbr: ["Oca", "Şub", "Mar", "Nis", " May", "Haz", "Tem", "Ağu", "Eyl", "Eki", "Kas", "Ara"], + days: ["Pzt", "Sal", "Çar", "Per", "Cum", "Cmt", "Pzr"], + language: e, + yearSuffix: "", + ymd: !1, + rtl: !1, + langName: e, + daysNames: ["Pazartesi", "Salı", "Çarşamba", "Perşembe", "Cuma", "Cumartesi", "Pazar"] + }; +}, jt = () => { + const e = "Vietnamese"; + return { + months: [ + "Tháng 1", + "Tháng 2", + "Tháng 3", + "Tháng 4", + "Tháng 5", + "Tháng 6", + "Tháng 7", + "Tháng 8", + "Tháng 9", + "Tháng 10", + "Tháng 11", + "Tháng 12" + ], + monthsAbbr: [ + "Tháng 1", + "Tháng 2", + "Tháng 3", + "Tháng 4", + "Tháng 5", + "Tháng 6", + "Tháng 7", + "Tháng 8", + "Tháng 9", + "Tháng 10", + "Tháng 11", + "Tháng 12" + ], + days: ["CN", "H", "B", "T", "N", "S", "B"], + language: e, + yearSuffix: "", + ymd: !1, + rtl: !1, + langName: e, + daysNames: ["CN", "Thứ Hai", "Thứ Ba", "Thứ Tư", "Thứ Năm", "Thứ Sáu", "Thứ Bảy"] + }; +}, Ot = () => { + const e = "Bulgarian"; + return { + months: [ + "Януари", + "Февруари", + "Март", + "Април", + "Май", + "Юни", + "Юли", + "Август", + "Септември", + "Октомври", + "Ноември", + "Декември" + ], + monthsAbbr: ["Яну", "Фев", "Мар", "Апр", "Май", "Юни", "Юли", "Авг", "Сеп", "Окт", "Ное", "Дек"], + days: ["Нд", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"], + language: e, + yearSuffix: "", + ymd: !1, + rtl: !1, + langName: e, + daysNames: ["Неделя", "Понеделник", "Вторник", "Сряда", "Четвъртък", "Петък", "Събота"] + }; +}, At = { + af: pt(), + hi: Mt(), + ja: Vt(), + de: Nt(), + en: St(), + es: vt(), + fr: Ct(), + nl: kt(), + pt: Tt(), + it: Bt(), + pl: $t(), + ru: Ft(), + tr: Yt(), + vn: jt(), + bg: Ot() +}, It = q({ + name: "Datepicker", + components: { + DateInput: Ze, + PickerDay: st, + PickerMonth: ct, + PickerYear: wt + }, + directives: { + clickoutside: ke + }, + props: { + modelValue: { + type: [Date, String, Number] + }, + value: { + type: [Date, String, Number] + }, + format: { + type: [String, Function], + default: "dd MMM yyyy" + }, + language: { + type: String, + default: "en" + }, + openDate: { + validator: (e) => Je(e), + type: Date, + default: /* @__PURE__ */ new Date() + }, + minimumView: { + type: String, + default: "day" + }, + maximumView: { + type: String, + default: "year" + }, + name: { + type: String + }, + id: { + type: String + }, + dayCellContent: { + type: Function + }, + fullMonthName: { + type: Boolean + }, + disabledDates: { + type: Object + }, + highlighted: { + type: Object + }, + placeholder: { + type: String + }, + inline: { + type: Boolean + }, + calendarClass: { + type: [String, Object, Array] + }, + inputClass: { + type: [String, Object, Array] + }, + wrapperClass: { + type: [String, Object, Array] + }, + mondayFirst: { + type: Boolean + }, + clearButton: { + type: Boolean + }, + clearButtonIcon: { + type: String + }, + calendarButton: { + type: Boolean + }, + calendarButtonIcon: { + type: String + }, + calendarButtonIconContent: { + type: String + }, + addBootstrapClass: { + type: Boolean + }, + initialView: { + type: String + }, + disabled: { + type: Boolean + }, + required: { + type: Boolean + }, + typeable: { + type: Boolean + }, + useUtc: { + type: Boolean + }, + hideInput: { + type: Boolean, + default: !0 + }, + preventDisableDateSelection: { + type: Boolean, + default: !0 + }, + iconColor: { + default: "black", + type: String + }, + iconHeight: { + default: 16, + type: [String, Number] + }, + iconWidth: { + default: 16, + type: [String, Number] + }, + theme: { + default: "green", + type: String + } + }, + emits: [ + "input", + "cleared", + "update:modelValue", + "closed", + "changed-month", + "changed-year", + "changed-day", + "selected", + "selected-disabled" + ], + setup(e, { emit: t }) { + const o = new Date(e.modelValue), i = R(0), r = R(null); + e.modelValue && Ae(o) && (i.value = o.getTime(), r.value = o), e.openDate && (i.value = ie(new Date(e.openDate), 1)); + const y = R(!1), n = R(!1), c = R(!1), M = R(0), $ = R(/* @__PURE__ */ new Date()), V = h(() => e.initialView ? e.initialView : e.minimumView), k = h(() => new Date(i.value)), T = h(() => At[e.language]), C = h(() => !!e.inline), H = h(() => ({ + position: C.value ? "static" : void 0 + })), I = h(() => y.value || n.value || c.value), P = h(() => T.value && T.value.rtl === !0); + function F(f) { + f || (e.openDate ? f = new Date(e.openDate) : f = /* @__PURE__ */ new Date()), i.value = ie(new Date(f), 1); + } + function j(f) { + const B = ["day", "month", "year"], ne = B.indexOf(e.minimumView), ve = B.indexOf(e.maximumView), De = B.indexOf(f); + return De >= ne && De <= ve; + } + function O(f) { + y.value = !1, n.value = !1, c.value = !1, C.value || f && t("closed"); + } + function u() { + return j("day") ? (O(), y.value = !0, !0) : !1; + } + function s() { + return j("month") ? (O(), n.value = !0, !0) : !1; + } + function D() { + return j("year") ? (O(), c.value = !0, !0) : !1; + } + function w() { + const f = V.value; + if (!j(f)) + throw new Error( + `initialView '${f}' cannot be rendered based on minimum '${e.minimumView}' and maximum '${e.maximumView}'` + ); + switch (f) { + case "year": + D(); + break; + case "month": + s(); + break; + default: + u(); + break; + } + } + function E() { + return e.disabled || C.value ? !1 : I.value ? O(!0) : (w(), !0); + } + function G(f) { + const B = new Date(f); + r.value = B, F(B), t("selected", B), t("update:modelValue", B), t("input", B); + } + function de() { + r.value = null, F(), t("selected", null), e.modelValue ? t("update:modelValue", null) : t("input", null), t("cleared"); + } + function K(f) { + G(f.timestamp), C.value || O(!0), $.value = /* @__PURE__ */ new Date(); + } + function ce(f) { + t("selected-disabled", f); + } + function a(f) { + const B = new Date(f.timestamp); + j("day") ? (F(B), u()) : K(f), t("changed-month", f); + } + function l(f) { + const B = new Date(f.timestamp); + j("month") ? (F(B), s()) : K(f), t("changed-year", f); + } + function d(f) { + let B = f; + if (typeof f == "string" || typeof f == "number") { + const ne = new Date(f); + B = Number.isNaN(ne.valueOf()) ? "" : ne; + } + if (!B) { + F(), r.value = null; + return; + } + r.value = B, F(f); + } + function L(f) { + F(f), t("changed-month", f); + } + function Q(f) { + G(f.getTime()); + } + function Ne() { + e.value && d(e.value), C.value && w(); + } + function Se() { + O(); + } + return X( + () => e.modelValue, + (f) => { + d(f); + } + ), X( + () => e.value, + (f) => { + d(f); + } + ), X( + () => e.openDate, + () => { + F(); + } + ), X( + () => e.initialView, + () => { + w(); + } + ), Ne(), { + pageTimestamp: i, + selectedDate: r, + showDayView: y, + showMonthView: n, + showYearView: c, + calendarHeight: M, + resetTypedDate: $, + // computed + pageDate: k, + translation: T, + calendarStyle: H, + isOpen: I, + isInline: C, + isRtl: P, + // methods + setTypedDate: Q, + handleChangedMonthFromDayPicker: L, + selectYear: l, + selectMonth: a, + selectDisabledDate: ce, + clearDate: de, + showCalendar: E, + close: O, + allowedToShowView: j, + showYearCalendar: D, + showMonthCalendar: s, + setPageDate: F, + selectDate: K, + closeOnClickOutside: Se, + showDayCalendar: u, + computedInitialView: V, + setDate: ie, + setDate1: G, + setValue: d + }; + } +}); +function Ht(e, t, o, i, r, y) { + const n = Z("date-input"), c = Z("picker-day"), M = Z("picker-month"), $ = Z("picker-year"), V = Me("clickoutside"); + return le((g(), b("div", { + class: S(["vuejs3-datepicker", [e.isRtl ? "rtl" : "", `vuejs3-${e.theme}`, e.wrapperClass]]) + }, [ + fe(n, { + selectedDate: e.selectedDate, + resetTypedDate: e.resetTypedDate, + format: e.format, + translation: e.translation, + inline: e.inline, + id: e.id, + name: e.name, + fullMonthName: e.fullMonthName, + openDate: e.openDate, + placeholder: e.placeholder, + inputClass: e.inputClass, + typeable: e.typeable, + clearButton: e.clearButton, + clearButtonIcon: e.clearButtonIcon, + calendarButton: e.calendarButton, + calendarButtonIcon: e.calendarButtonIcon, + calendarButtonIconContent: e.calendarButtonIconContent, + disabled: e.disabled, + required: e.required, + addBootstrapClass: e.addBootstrapClass, + "use-utc": e.useUtc, + onShowCalendar: e.showCalendar, + onCloseCalendar: e.close, + onTypedDate: e.setTypedDate, + onClearDate: e.clearDate, + minimumView: e.minimumView, + maximumView: e.maximumView, + hideInput: e.hideInput, + iconWidth: e.iconWidth, + iconHeight: e.iconHeight, + iconColor: e.iconColor, + theme: e.theme + }, { + belowDate: se(() => [ + U(e.$slots, "belowDate") + ]), + _: 3 + }, 8, ["selectedDate", "resetTypedDate", "format", "translation", "inline", "id", "name", "fullMonthName", "openDate", "placeholder", "inputClass", "typeable", "clearButton", "clearButtonIcon", "calendarButton", "calendarButtonIcon", "calendarButtonIconContent", "disabled", "required", "addBootstrapClass", "use-utc", "onShowCalendar", "onCloseCalendar", "onTypedDate", "onClearDate", "minimumView", "maximumView", "hideInput", "iconWidth", "iconHeight", "iconColor", "theme"]), + e.allowedToShowView("day") ? (g(), me(c, { + key: 0, + pageDate: e.pageDate, + selectedDate: e.selectedDate, + showDayView: e.showDayView, + fullMonthName: e.fullMonthName, + allowedToShowView: e.allowedToShowView, + disabledDates: e.disabledDates, + highlighted: e.highlighted, + calendarClass: e.calendarClass, + calendarStyle: e.calendarStyle, + translation: e.translation, + pageTimestamp: e.pageTimestamp, + isRtl: e.isRtl, + mondayFirst: e.mondayFirst, + dayCellContent: e.dayCellContent, + onChangedMonth: e.handleChangedMonthFromDayPicker, + onSelectDate: e.selectDate, + onShowMonthCalendar: e.showMonthCalendar, + onSelectedDisabled: e.selectDisabledDate, + onShowYearCalendar: e.showYearCalendar, + minimumView: e.minimumView, + maximumView: e.maximumView, + preventDisableDateSelection: e.preventDisableDateSelection, + theme: e.theme + }, { + customCalendarHeader: se(() => [ + U(e.$slots, "customCalendarHeader") + ]), + _: 3 + }, 8, ["pageDate", "selectedDate", "showDayView", "fullMonthName", "allowedToShowView", "disabledDates", "highlighted", "calendarClass", "calendarStyle", "translation", "pageTimestamp", "isRtl", "mondayFirst", "dayCellContent", "onChangedMonth", "onSelectDate", "onShowMonthCalendar", "onSelectedDisabled", "onShowYearCalendar", "minimumView", "maximumView", "preventDisableDateSelection", "theme"])) : Y("", !0), + e.allowedToShowView("month") ? (g(), me(M, { + key: 1, + pageDate: e.pageDate, + selectedDate: e.selectedDate, + showMonthView: e.showMonthView, + allowedToShowView: e.allowedToShowView, + disabledDates: e.disabledDates, + calendarClass: e.calendarClass, + calendarStyle: e.calendarStyle, + translation: e.translation, + isRtl: e.isRtl, + "use-utc": e.useUtc, + fullMonthName: e.fullMonthName, + onSelectMonth: e.selectMonth, + onShowYearCalendar: e.showYearCalendar, + onChangedYear: e.setPageDate, + minimumView: e.minimumView, + maximumView: e.maximumView, + theme: e.theme + }, { + customCalendarHeader: se(() => [ + U(e.$slots, "customCalendarHeader") + ]), + _: 3 + }, 8, ["pageDate", "selectedDate", "showMonthView", "allowedToShowView", "disabledDates", "calendarClass", "calendarStyle", "translation", "isRtl", "use-utc", "fullMonthName", "onSelectMonth", "onShowYearCalendar", "onChangedYear", "minimumView", "maximumView", "theme"])) : Y("", !0), + e.allowedToShowView("year") ? (g(), me($, { + key: 2, + pageDate: e.pageDate, + selectedDate: e.selectedDate, + showYearView: e.showYearView, + allowedToShowView: e.allowedToShowView, + disabledDates: e.disabledDates, + calendarClass: e.calendarClass, + calendarStyle: e.calendarStyle, + translation: e.translation, + isRtl: e.isRtl, + "use-utc": e.useUtc, + onSelectYear: e.selectYear, + onChangedDecade: e.setPageDate, + fullMonthName: e.fullMonthName, + minimumView: e.minimumView, + maximumView: e.maximumView, + theme: e.theme + }, { + customCalendarHeader: se(() => [ + U(e.$slots, "customCalendarHeader") + ]), + _: 3 + }, 8, ["pageDate", "selectedDate", "showYearView", "allowedToShowView", "disabledDates", "calendarClass", "calendarStyle", "translation", "isRtl", "use-utc", "onSelectYear", "onChangedDecade", "fullMonthName", "minimumView", "maximumView", "theme"])) : Y("", !0) + ], 2)), [ + [V, { + handler: e.inline ? null : e.closeOnClickOutside + }] + ]); +} +const Jt = /* @__PURE__ */ W(It, [["render", Ht]]); +export { + Jt as default +}; diff --git a/build/vuejs3-datepicker.umd.cjs b/build/vuejs3-datepicker.umd.cjs new file mode 100644 index 0000000..4900ffa --- /dev/null +++ b/build/vuejs3-datepicker.umd.cjs @@ -0,0 +1,2 @@ +(function(t,I){typeof exports=="object"&&typeof module<"u"?module.exports=I(require("vue")):typeof define=="function"&&define.amd?define(["vue"],I):(t=typeof globalThis<"u"?globalThis:t||self,t["vuejs3-datepicker"]=I(t.Vue))})(this,function(t){"use strict";var I=document.createElement("style");I.textContent=`.cursor-na[data-v-204bf2e8]{cursor:"not-allowed"}.rtl{direction:rtl}.vuejs3-datepicker{color:#2f2f2f;display:inline-block;position:relative}.vuejs3-datepicker *{box-sizing:border-box}.vuejs3-datepicker input{border:1px solid}.vuejs3-datepicker__icon{display:-webkit-flex;display:-ms-flexbox;display:flex}.vuejs3-datepicker__value{border:1px solid;border-radius:5px;cursor:pointer;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;min-width:200px;padding:13px 15px}.vuejs3-datepicker__content{font-size:15px;margin-left:10px}.vuejs3-datepicker__typeablecalendar{left:10px;position:absolute;top:10px}.vuejs3-datepicker__inputvalue{border:1px solid;border-radius:5px;cursor:pointer;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;min-width:200px;padding:12px 10px 13px 35px}.vuejs3-datepicker__calendar{background:#fff;border-radius:4px;box-shadow:0 .2rem 1rem #0000001f;margin-top:4px;position:absolute;width:300px;z-index:100}.vuejs3-datepicker__calendar-topbar{background-color:#40b983;border-radius:4px 4px 0 0;color:#fff;padding:25px}.vuejs3-datepicker__calendar-topbar-year{font-size:30px;margin:0;padding-bottom:10px}.vuejs3-datepicker__calendar-topbar-day{font-size:20px;margin:0}.vuejs3-datepicker__calendar-actionarea{padding:10px}.vuejs3-datepicker__calendar header{display:block;line-height:40px}.vuejs3-datepicker__calendar header span{float:left;text-align:center;width:71.42857142857143%}.vuejs3-datepicker__calendar header .next,.vuejs3-datepicker__calendar header .prev{float:left;position:relative;text-indent:-10000px;width:14.285714285714286%}.vuejs3-datepicker__calendar header .next:after,.vuejs3-datepicker__calendar header .prev:after{content:"";height:8px;left:50%;position:absolute;top:50%;-webkit-transform:translateX(-50%) translateY(-50%) rotate(45deg);transform:translate(-50%) translateY(-50%) rotate(45deg);width:8px}.vuejs3-datepicker__calendar header .prev:after{border-bottom:1px solid #2f2f2f;border-left:1px solid #2f2f2f}.vuejs3-datepicker__calendar header .next.disabled:after,.vuejs3-datepicker__calendar header .prev.disabled:after{opacity:.5}.vuejs3-datepicker__calendar header .next:after{border-right:1px solid #2f2f2f;border-top:1px solid #2f2f2f}.vuejs3-datepicker__calendar header .next:not(.disabled),.vuejs3-datepicker__calendar header .prev:not(.disabled),.vuejs3-datepicker__calendar header .up:not(.disabled){border-radius:4px;cursor:pointer;font-size:15px}.vuejs3-datepicker__calendar header .next:not(.disabled):hover,.vuejs3-datepicker__calendar header .prev:not(.disabled):hover,.vuejs3-datepicker__calendar header .up:not(.disabled):hover{background:#f8f8f8}.vuejs3-datepicker__calendar .disabled{color:#ddd;cursor:default}.vuejs3-datepicker__calendar .flex-rtl{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;width:inherit}.vuejs3-datepicker__calendar .cell{border:1px solid transparent;display:inline-block;font-size:14px;height:40px;line-height:40px;padding:0 5px;text-align:center;vertical-align:middle;width:14.285714285714286%}.vuejs3-datepicker__calendar .cell.month,.vuejs3-datepicker__calendar .cell.year{height:50px;line-height:28px;padding:10px 5px}.vuejs3-datepicker__calendar .cell.day-header{text-transform:uppercase}.vuejs3-datepicker__calendar .cell:not(.blank):not(.disabled).day,.vuejs3-datepicker__calendar .cell:not(.blank):not(.disabled).month,.vuejs3-datepicker__calendar .cell:not(.blank):not(.disabled).year{cursor:pointer;transition:.45s}.vuejs3-datepicker__calendar .cell:not(.blank):not(.disabled).day:hover,.vuejs3-datepicker__calendar .cell:not(.blank):not(.disabled).month:hover,.vuejs3-datepicker__calendar .cell:not(.blank):not(.disabled).year:hover{border:1px solid #40b983}.vuejs3-datepicker__calendar .cell.selected{background:#40b983;color:#fff}.vuejs3-datepicker__calendar .cell.selected:hover{background:#40b983}.vuejs3-datepicker__calendar .cell.highlighted{background:#40b983;color:#fff}.vuejs3-datepicker__calendar .cell.highlighted.selected{background:#40b983}.vuejs3-datepicker__calendar .cell.highlighted.disabled{color:#a3a3a3}.vuejs3-datepicker__calendar .cell.highlighted.highlight-start,.vuejs3-datepicker__calendar .cell.highlighted:last-child{background:#2f9668}.vuejs3-datepicker__calendar .cell.grey{color:#888}.vuejs3-datepicker__calendar .cell.grey:hover{background:inherit}.vuejs3-datepicker__calendar .cell.day-header{cursor:inherit;font-size:75%;white-space:nowrap}.vuejs3-datepicker__calendar .cell.day-header:hover{background:inherit}.vuejs3-datepicker__calendar .month,.vuejs3-datepicker__calendar .year{width:33.333%}.vuejs3-datepicker__calendar-button,.vuejs3-datepicker__clear-button{cursor:pointer;font-style:normal;position:absolute;right:12px;top:12px}.vuejs3-datepicker__calendar-button.disabled,.vuejs3-datepicker__clear-button.disabled{color:#999;cursor:default}.vuejs3-datepicker #calendar-div{background-color:#fff;border-radius:5px}.dp-error{color:red;font-size:12px}.backdrop{background-color:#00000080;bottom:0;cursor:pointer;display:none;height:100%;left:0;position:fixed;right:0;top:0;width:100%;z-index:2} +`,document.head.appendChild(I);const ae=["click"],v=[],ne={instances:v,beforeMount:Z,update:(e,a)=>{JSON.stringify(a.value)!==JSON.stringify(a.oldValue)&&Z(e,a)},unmounted:x};function Z(e,{value:a}){x(e);const l=a,i=typeof l=="function";if(!i&&!(typeof l=="object")||!(l.isActive!==!1))return;const o=i?l:l.handler,m=oe({el:e,handler:o});m.eventHandlers.forEach(({event:w,handler:V})=>setTimeout(()=>document.addEventListener(w,V,!1),0)),v.push(m)}function x(e){const a=v.findIndex(i=>i.el===e);if(a===-1)return;v[a].eventHandlers.forEach(({event:i,handler:d})=>document.removeEventListener(i,d,!1)),v.splice(a,1)}function oe({el:e,handler:a}){return{el:e,eventHandlers:ae.map(l=>({event:l,handler:i=>re({event:i,el:e,handler:a})}))}}function re({event:e,el:a,handler:l}){const i=e.path||(e.composedPath?e.composedPath():void 0);if(i?i.indexOf(a)<0:!a.contains(e.target))return l&&l(e,a)}const le=t.defineComponent({name:"IconView",props:{height:{type:[String,Number],default:"16"},width:{type:[String,Number],default:"16"},color:{type:String,default:"black"},customClass:{type:String,required:!1,default:""}},setup(){return{}}}),H=(e,a)=>{const l=e.__vccOpts||e;for(const[i,d]of a)l[i]=d;return l},ie=["height","width"],se=["fill"];function de(e,a,l,i,d,y){return t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(e.customClass)},[(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:e.height,width:e.width,role:"img","aria-hidden":"true","data-icon":"calendarAlt"},[t.createElementVNode("path",{fill:e.color,d:"M400 64h-48V12c0-6.6-5.4-12-12-12h-8c-6.6 0-12 5.4-12 12v52H128V12c0-6.6-5.4-12-12-12h-8c-6.6 0-12 5.4-12 12v52H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM48 96h352c8.8 0 16 7.2 16 16v48H32v-48c0-8.8 7.2-16 16-16zm352 384H48c-8.8 0-16-7.2-16-16V192h384v272c0 8.8-7.2 16-16 16zM148 320h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm96 0h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm96 0h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm-96 96h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm-96 0h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm192 0h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12z"},null,8,se)],8,ie))],2)}const ce=H(le,[["render",de]]),f=(e,a=!1)=>a?e.getUTCFullYear():e.getFullYear(),D=(e,a=!1)=>a?e.getUTCMonth():e.getMonth(),B=(e,a=!1)=>a?e.getUTCDate():e.getDate(),F=(e,a=!1)=>a?e.getUTCDay():e.getDay(),K=(e,a,l=!1)=>l?e.setUTCFullYear(a):e.setFullYear(a),ee=(e,a,l=!1)=>l?e.setUTCMonth(a):e.setMonth(a),L=(e,a,l=!1)=>l?e.setUTCDate(a):e.setDate(a),q=(e,a,l=!1)=>{const i=new Date(e.getTime()),d=new Date(a.getTime());return l?(i.setUTCHours(0,0,0,0),d.setUTCHours(0,0,0,0)):(i.setHours(0,0,0,0),d.setHours(0,0,0,0)),i.getTime()===d.getTime()},ue=e=>Object.prototype.toString.call(e)!=="[object Date]"?!1:!Number.isNaN(e.getTime()),W=(e,a)=>{if(typeof e!="object")throw TypeError("Invalid Type");return a[F(e)]},P=(e,a)=>{if(!a)throw Error("missing 2nd parameter Months array");if(typeof e=="object")return a[D(e)];if(typeof e=="number")return a[e];throw TypeError("Invalid type")},_=(e,a)=>{if(!a)throw Error("missing 2nd paramter Months array");if(typeof e=="object")return a[D(e)];if(typeof e=="number")return a[e];throw TypeError("Invalid type")},me=(e,a)=>/8|3|5|10/.test(a)?30:a===1?!(e%4)&&e%100||!(e%400)?29:28:31,fe=e=>{switch(e){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th"}},he=(e,a,l)=>{const i=f(e),d=D(e)+1,y=B(e);return a.replace(/dd/,`0${y}`.slice(-2)).replace(/d/,y).replace(/yyyy/,i).replace(/yy/,String(i).slice(2)).replace(/MMMM/,P(D(e),l.months)).replace(/MMM/,_(D(e),l.monthsAbbr)).replace(/MM/,`0${d}`.slice(-2)).replace(/M(?!a|ä|e)/,d.toString()).replace(/su/,fe(B(e))).replace(/D(?!e|é|i)/,W(e,l.days))},ye=e=>e===null||e instanceof Date||typeof e=="string"||typeof e=="number",$=e=>typeof e=="string"?new Date(e):e,pe=t.defineComponent({name:"DateInput",components:{IconView:ce},props:{selectedDate:{type:[Date,String],default:null},resetTypedDate:{type:[Date],default:new Date},format:{type:[String,Function]},translation:{type:Object},inline:{type:Boolean},id:{type:String},name:{type:String},openDate:{type:Date},placeholder:{type:String},inputClass:{type:[String,Object,Array]},clearButton:{type:Boolean},clearButtonIcon:{type:String},calendarButton:{type:Boolean},calendarButtonIcon:{type:String},calendarButtonIconContent:{type:String},disabled:{type:Boolean},required:{type:Boolean},typeable:{type:Boolean},addBootstrapClass:{type:Boolean,default:!1,required:!1,validator:e=>!!e},useUtc:{type:Boolean},minimumView:{type:String,default:"day"},maximumView:{type:String,default:"year"},hideInput:{type:Boolean,default:!0},fullMonthName:{type:Boolean,default:!1},iconColor:{default:"black",type:String},iconHeight:{default:16,type:[String,Number]},iconWidth:{default:16,type:[String,Number]},theme:{default:"green",type:String}},emits:["show-calendar","typed-date","clear-date","close-calendar"],setup(e,{emit:a}){const l=t.ref(),i=t.ref(null),d=t.computed(()=>e.addBootstrapClass?typeof e.inputClass=="string"?[e.inputClass,"form-control"].join(" "):{"form-control":!0,...e.inputClass}:e.inputClass),y=t.computed(()=>{var S,b;if(!e.selectedDate)return null;if(l.value)return l.value;const k=$(e.selectedDate);let N=typeof e.format=="function"?e.format(k):he(k,e.format,e.translation);if(e.minimumView===e.maximumView){const[,z,E]=N.split(" ");if(e.maximumView==="month"){if(e.fullMonthName){const Y=(S=e.translation)==null?void 0:S.monthsAbbr.indexOf(z);return(b=e.translation)==null?void 0:b.months[Y]}N=z}else e.maximumView==="year"&&(N=E)}return N});t.watch(()=>e.resetTypedDate,()=>{l.value=""});function o(){a("show-calendar")}function m(k){if([27,13].includes(k.keyCode)&&i.value.blur(),e.typeable){const{value:N}=i.value,S=Date.parse(N);Number.isNaN(S)||(l.value=N,a("typed-date",new Date(S)))}}function w(){a("clear-date")}function V(){e.typeable&&Number.isNaN(Date.parse(i.value.value))&&(w(),i.value.value=null,l.value=""),a("close-calendar",!0)}return{typedDate:l,computedInputClass:d,formattedValue:y,showCalendar:o,parseTypedDate:m,inputBlurred:V,inputRef:i,clearDate:w}}}),gt="",ge={key:0},De={key:1,style:{position:"relative"}},be={key:0},we=["type","name","id","value","open-date","placeholder","clear-button","disabled","required","readonly"],ke={key:0,class:"vuejs3-datepicker__value"},Ne={class:"vuejs3-datepicker__icon"},Se={key:0,class:"vuejs3-datepicker__content"},Ce={key:1,class:"vuejs3-datepicker__content"},Ve={key:0};function Me(e,a,l,i,d,y){const o=t.resolveComponent("IconView");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([e.addBootstrapClass?"input-group":""])},[e.calendarButton?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["vuejs3-datepicker__calendar-button",{"input-group-prepend":e.addBootstrapClass,"cursor-na":e.disabled}]),onClick:a[0]||(a[0]=(...m)=>e.showCalendar&&e.showCalendar(...m))},[t.createElementVNode("span",{class:t.normalizeClass({"input-group-text":e.addBootstrapClass})},[t.createElementVNode("i",{class:t.normalizeClass(e.calendarButtonIcon)},[t.createTextVNode(t.toDisplayString(e.calendarButtonIconContent)+" ",1),e.calendarButtonIcon?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",ge,"…"))],2)],2)],2)):t.createCommentVNode("",!0),e.typeable||!e.hideInput?(t.openBlock(),t.createElementBlock("div",De,[e.inline?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",be,[t.createVNode(o,{customClass:"vuejs3-datepicker__typeablecalendar",color:e.iconColor,width:e.iconWidth,height:e.iconHeight},null,8,["color","width","height"])])),t.createElementVNode("input",{type:e.inline?"hidden":"text",class:t.normalizeClass([e.computedInputClass,"vuejs3-datepicker__inputvalue"]),name:e.name,ref:"inputRef",id:e.id,value:e.formattedValue,"open-date":e.openDate,placeholder:e.placeholder,"clear-button":e.clearButton,disabled:e.disabled,required:e.required,readonly:!e.typeable,onClick:a[1]||(a[1]=(...m)=>e.showCalendar&&e.showCalendar(...m)),onKeyup:a[2]||(a[2]=(...m)=>e.parseTypedDate&&e.parseTypedDate(...m)),onBlur:a[3]||(a[3]=(...m)=>e.inputBlurred&&e.inputBlurred(...m)),autocomplete:"off"},null,42,we)])):(t.openBlock(),t.createElementBlock("div",{key:2,onClick:a[4]||(a[4]=(...m)=>e.showCalendar&&e.showCalendar(...m)),id:"calendar-div"},[e.inline?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",ke,[t.createElementVNode("span",Ne,[t.createVNode(o,{color:e.iconColor,width:e.iconWidth,height:e.iconHeight},null,8,["color","width","height"])]),e.formattedValue?(t.openBlock(),t.createElementBlock("div",Se,t.toDisplayString(e.formattedValue),1)):(t.openBlock(),t.createElementBlock("div",Ce,t.toDisplayString(e.placeholder),1))]))])),e.clearButton&&e.selectedDate?(t.openBlock(),t.createElementBlock("span",{key:3,class:t.normalizeClass(["vuejs3-datepicker__clear-button",{"input-group-append":e.addBootstrapClass}]),onClick:a[5]||(a[5]=m=>e.clearDate())},[t.createElementVNode("span",{class:t.normalizeClass({"input-group-text":e.addBootstrapClass})},[t.createElementVNode("i",{class:t.normalizeClass(e.clearButtonIcon)},[e.clearButtonIcon?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",Ve,"×"))],2)],2)],2)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"belowDate",{},void 0,!0)],2)}const Be=H(pe,[["render",Me],["__scopeId","data-v-204bf2e8"]]),je=t.defineComponent({name:"PickerDay",props:{showDayView:{type:Boolean},selectedDate:{type:[String,Date],required:!1,default:null,validator:e=>["string","number"].indexOf(typeof e)!==-1||e===null},pageDate:{type:Date,default:new Date},fullMonthName:{type:Boolean},allowedToShowView:{type:Function,required:!0},dayCellContent:{type:Function,default:e=>e.date},disabledDates:{type:Object},highlighted:{type:Object},calendarClass:{type:[String,Object,Array]},calendarStyle:{type:Object},translation:{type:Object},isRtl:{type:Boolean},mondayFirst:{type:Boolean},useUtc:{type:Boolean},minimumView:{type:String,default:"day"},maximumView:{type:String,default:"year"},preventDisableDateSelection:{type:Boolean,default:!0},theme:{default:"green",type:String}},emits:["show-year-calendar","changed-month","show-month-calendar","selected-disabled","select-date"],setup(e,{emit:a}){function l(n){n.isDisabled?(a("selected-disabled",n),e.preventDisableDateSelection||a("select-date",n)):a("select-date",n)}function i(){a("show-month-calendar")}function d(){a("show-year-calendar")}function y(n){const s=e.pageDate;ee(s,D(s)+n),a("changed-month",s)}function o(){const n=e.disabledDates;if(!n||!n.to)return!1;const s=e.pageDate;return D(n.to)>=D(s)&&f(n.to)>=f(s)}function m(){o()||y(-1)}function w(){const n=e.disabledDates;if(!n||!n.from)return!1;const s=e.pageDate;return D(n.from)<=D(s)&&f(n.from)<=f(s)}function V(){w()||y(1)}function k(n){const s=$(e.selectedDate);return e.selectedDate?q(s,n):!1}function N(n){let s=!1;const u=e.disabledDates;return u?typeof u>"u"?!1:(typeof u.dates<"u"&&u.dates.forEach(A=>{q(n,A)&&(s=!0)}),typeof u.to<"u"&&u.to&&nu.from&&(s=!0),typeof u.days<"u"&&u.days.indexOf(F(n))!==-1&&(s=!0),typeof u.daysOfMonth<"u"&&u.daysOfMonth.indexOf(B(n))!==-1&&(s=!0),typeof u.customPredictor=="function"&&u.customPredictor(n)&&(s=!0),s):s}function S(n){return typeof n<"u"&&n}function b(n){const s=e.highlighted;if(!(s&&s.includeDisabled)&&N(n))return!1;let u=!1;return typeof s>"u"?!1:(typeof s.dates<"u"&&s.dates.forEach(A=>{q(n,A)&&(u=!0)}),S(s.from)&&S(s.to)&&(u=n>=s.from&&n<=s.to),typeof s.days<"u"&&s.days.indexOf(F(n))!==-1&&(u=!0),typeof s.daysOfMonth<"u"&&s.daysOfMonth.indexOf(B(n))!==-1&&(u=!0),typeof s.customPredictor=="function"&&s.customPredictor(n)&&(u=!0),u)}function z(n){return{selected:n.isSelected,disabled:n.isDisabled,highlighted:n.isHighlighted,today:n.isToday,weekend:n.isWeekend,sat:n.isSaturday,sun:n.isSunday,"highlight-start":n.isHighlightStart,"highlight-end":n.isHighlightEnd}}function E(n){const s=e.highlighted;return s?b(n)&&s.from instanceof Date&&f(s.from)===f(n)&&D(s.from)===D(n)&&B(s.from)===B(n):!1}function Y(n){const s=e.highlighted;return s?b(n)&&s.to instanceof Date&&f(s.to)===f(n)&&D(s.to)===D(n)&&B(s.to)===B(n):!1}const M=t.computed(()=>{if(e.mondayFirst){const n=e.translation&&e.translation.days&&e.translation.days.slice();return n.push(n.shift()),n}return e.translation&&e.translation.days}),j=t.computed(()=>{const n=e.pageDate,s=e.useUtc?new Date(Date.UTC(n.getUTCFullYear(),n.getUTCMonth(),1)):new Date(n.getFullYear(),n.getMonth(),1,n.getHours(),n.getMinutes());return e.mondayFirst?F(s)>0?F(s)-1:6:F(s)}),T=t.computed(()=>{const n=e.pageDate,s=[],u=e.useUtc?new Date(Date.UTC(n.getUTCFullYear(),n.getUTCMonth(),1)):new Date(n.getFullYear(),n.getMonth(),1,n.getHours(),n.getMinutes()),A=me(f(u),D(u));for(let U=0;U{const n=e.fullMonthName?e.translation&&e.translation.months:e.translation&&e.translation.monthsAbbr;return _(D(e.pageDate),n)}),r=t.computed(()=>{const n=e.translation&&e.translation.months;return P(D(e.pageDate),n)}),p=t.computed(()=>{const n=e.translation&&e.translation.yearSuffix;return`${f(e.pageDate)}${n}`}),g=t.computed(()=>(e.translation&&e.translation.ymd&&e.translation&&e.translation.ymd)===!0),O=t.computed(()=>e.isRtl?w():o()),J=t.computed(()=>e.isRtl?o():w()),Q=t.computed(()=>{const n=$(e.selectedDate);return e.selectedDate?W(n,e.translation&&e.translation.daysNames):null}),R=t.computed(()=>{const n=$(e.selectedDate);return e.selectedDate?B(n):null}),X=t.computed(()=>!(e.minimumView===e.maximumView&&(e.minimumView!=="day"||e.maximumView!=="day")));return{isDefined:S,showMonthCalendar:i,daysOfWeek:M,blankDays:j,isYmd:g,days:T,currMonthName:c,currYearName:p,isLeftNavDisabled:O,isRightNavDisabled:J,selectDate:l,previousMonth:m,nextMonth:V,dayClasses:z,monthName:r,getDayName:Q,getDisplayDate:R,showYearCalendar:d,isNextMonthDisabled:w,ifDifferentViews:X,isSelectedDate:k,isDisabledDate:N,isHighlightedDate:b,isHighlightStart:E,isHighlightEnd:Y}}}),Te={key:0,class:"vuejs3-datepicker__calendar-topbar"},Ee={class:"vuejs3-datepicker__calendar-topbar-day"},Fe={class:"vuejs3-datepicker__calendar-actionarea"},$e=["innerHTML","onClick"];function ze(e,a,l,i,d,y){return t.withDirectives((t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["vuejs3-datepicker__calendar",`vuejs3-${e.theme}`,e.calendarClass]),style:t.normalizeStyle(e.calendarStyle),onMousedown:a[4]||(a[4]=t.withModifiers(()=>{},["prevent"]))},[t.renderSlot(e.$slots,"customCalendarHeader"),e.ifDifferentViews&&e.selectedDate?(t.openBlock(),t.createElementBlock("section",Te,[t.createElementVNode("p",{class:"vuejs3-datepicker__calendar-topbar-year",onClick:a[0]||(a[0]=(...o)=>e.showYearCalendar&&e.showYearCalendar(...o))},t.toDisplayString(e.currYearName),1),t.createElementVNode("p",Ee,t.toDisplayString(e.getDayName)+" "+t.toDisplayString(e.getDisplayDate)+" "+t.toDisplayString(e.monthName),1)])):t.createCommentVNode("",!0),t.createElementVNode("div",Fe,[t.createElementVNode("header",null,[t.createElementVNode("span",{onClick:a[1]||(a[1]=o=>e.isRtl?e.nextMonth():e.previousMonth()),class:t.normalizeClass(["prev",{disabled:e.isLeftNavDisabled}])},"<",2),t.createElementVNode("span",{class:t.normalizeClass(["day__month_btn",e.allowedToShowView("month")?"up":""]),onClick:a[2]||(a[2]=(...o)=>e.showMonthCalendar&&e.showMonthCalendar(...o))},t.toDisplayString(e.isYmd?e.currYearName:e.currMonthName)+" "+t.toDisplayString(e.isYmd?e.currMonthName:e.currYearName),3),t.createElementVNode("span",{onClick:a[3]||(a[3]=o=>e.isRtl?e.previousMonth():e.nextMonth()),class:t.normalizeClass(["next",{disabled:e.isRightNavDisabled}])},">",2)]),t.createElementVNode("div",{class:t.normalizeClass(e.isRtl?"flex-rtl":"")},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.daysOfWeek,o=>(t.openBlock(),t.createElementBlock("span",{class:"cell day-header",key:o.timestamp},t.toDisplayString(o),1))),128)),e.blankDays>0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.blankDays,o=>(t.openBlock(),t.createElementBlock("span",{class:"cell day blank",key:o.timestamp}))),128)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.days,o=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["cell day",e.dayClasses(o)]),key:o.timestamp,innerHTML:e.dayCellContent(o),onClick:m=>e.selectDate(o)},null,10,$e))),128))],2)])],38)),[[t.vShow,e.showDayView]])}const Ye=H(je,[["render",ze]]),Oe=t.defineComponent({name:"PickerMonth",props:{showMonthView:{type:Boolean},selectedDate:{type:[String,Date],required:!1,default:null,validator:e=>["string","number"].indexOf(typeof e)!==-1||e===null},pageDate:{type:Date,default:new Date},disabledDates:{type:Object},calendarClass:{type:[String,Object,Array]},calendarStyle:{type:Object},translation:{type:Object},isRtl:{type:Boolean},allowedToShowView:{type:Function,required:!0},useUtc:{type:Boolean},fullMonthName:{type:Boolean},minimumView:{type:String,default:"day"},maximumView:{type:String,default:"year"},theme:{default:"green",type:String}},setup(e,{emit:a}){function l(r){r.isDisabled||a("select-month",r)}function i(r){const p=e.pageDate;K(p,f(p)+r),a("changed-year",p)}function d(){const r=e.disabledDates;return!r||!r.to?!1:f(r.to)>=f(e.pageDate)}function y(){d()||i(-1)}function o(){const r=e.disabledDates;return!r||!r.from?!1:f(r.from)<=f(e.pageDate)}function m(){o()||i(1)}function w(){a("show-year-calendar")}function V(r){const p=$(e.selectedDate);return p&&f(p)===f(r)&&D(p)===D(r)}function k(r){let p=!1;const g=e.disabledDates;return!g||typeof g>"u"?!1:(typeof g.to<"u"&&g.to&&(D(r)D(g.from)&&f(r)>=f(g.from)||f(r)>f(g.from))&&(p=!0),typeof g.customPredictor=="function"&&g.customPredictor(r)&&(p=!0),p)}const N=t.computed(()=>{const r=e.pageDate,p=[],g=e.useUtc?new Date(Date.UTC(r.getUTCFullYear(),0,r.getUTCDate())):new Date(r.getFullYear(),0,r.getDate(),r.getHours(),r.getMinutes());for(let O=0;O<12;O+=1)p.push({month:P(O,e.translation&&e.translation.months),timestamp:g.getTime(),isSelected:V(g),isDisabled:k(g)}),ee(g,D(g)+1);return p}),S=t.computed(()=>{const r=e.translation&&e.translation.yearSuffix;return`${f(e.pageDate)}${r}`}),b=t.computed(()=>e.isRtl?o():d()),z=t.computed(()=>e.isRtl?d():o()),E=t.computed(()=>{const r=e.translation&&e.translation.months;return P(D(e.pageDate),r)}),Y=t.computed(()=>{const r=$(e.selectedDate);return e.selectedDate?B(r):null}),M=t.computed(()=>{const r=$(e.selectedDate);return e.selectedDate?W(r,e.translation&&e.translation.daysNames):null}),j=t.computed(()=>{const r=e.translation&&e.translation.yearSuffix;return`${f(e.pageDate)}${r}`}),T=t.computed(()=>{const r=e.fullMonthName?e.translation&&e.translation.months:e.translation&&e.translation.monthsAbbr;return _(D(e.pageDate),r)}),c=t.computed(()=>!(e.minimumView===e.maximumView&&(e.minimumView!=="day"||e.maximumView!=="day")));return{isRightNavDisabled:z,isLeftNavDisabled:b,pageYearName:S,months:N,selectMonth:l,previousYear:y,nextYear:m,currYearName:j,getDisplayDate:Y,monthName:E,showYearCalendar:w,getDayName:M,currMonthName:T,ifDifferentViews:c,isSelectedMonth:V,isDisabledMonth:k}}}),Ae={key:0,class:"vuejs3-datepicker__calendar-topbar"},Ie={key:0,class:"vuejs3-datepicker__calendar-topbar-day"},He={class:"vuejs3-datepicker__calendar-actionarea"},ve=["onClick"];function Pe(e,a,l,i,d,y){return t.withDirectives((t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["vuejs3-datepicker__calendar",`vuejs3-${e.theme}`,e.calendarClass]),style:t.normalizeStyle(e.calendarStyle),onMousedown:a[4]||(a[4]=t.withModifiers(()=>{},["prevent"]))},[t.renderSlot(e.$slots,"customCalendarHeader"),e.ifDifferentViews?(t.openBlock(),t.createElementBlock("section",Ae,[t.createElementVNode("p",{class:"vuejs3-datepicker__calendar-topbar-year",onClick:a[0]||(a[0]=(...o)=>e.showYearCalendar&&e.showYearCalendar(...o))},t.toDisplayString(e.currYearName),1),e.selectedDate?(t.openBlock(),t.createElementBlock("p",Ie,t.toDisplayString(e.getDayName)+" "+t.toDisplayString(e.getDisplayDate)+" "+t.toDisplayString(e.monthName),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",He,[t.createElementVNode("header",null,[t.createElementVNode("span",{onClick:a[1]||(a[1]=o=>e.isRtl?e.nextYear():e.previousYear()),class:t.normalizeClass(["prev",{disabled:e.isLeftNavDisabled}])},"<",2),t.createElementVNode("span",{class:t.normalizeClass(["month__year_btn",e.allowedToShowView("year")?"up":""]),onClick:a[2]||(a[2]=(...o)=>e.showYearCalendar&&e.showYearCalendar(...o))},t.toDisplayString(e.pageYearName),3),t.createElementVNode("span",{onClick:a[3]||(a[3]=o=>e.isRtl?e.previousYear():e.nextYear()),class:t.normalizeClass(["next",{disabled:e.isRightNavDisabled}])},">",2)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.months,o=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["cell month",{selected:o.isSelected,disabled:o.isDisabled}]),key:o.timestamp,onClick:t.withModifiers(m=>e.selectMonth(o),["stop"])},t.toDisplayString(o.month),11,ve))),128))])],38)),[[t.vShow,e.showMonthView]])}const Je=H(Oe,[["render",Pe]]),Re=t.defineComponent({name:"PickerYear",props:{showYearView:{type:Boolean},selectedDate:{type:[String,Date],required:!1,default:null,validator:e=>["string","number"].indexOf(typeof e)!==-1||e===null},pageDate:{type:Date,default:new Date},disabledDates:{type:Object},highlighted:{type:Object},calendarClass:{type:[String,Object,Array]},calendarStyle:{type:Object},translation:{type:Object},isRtl:{type:Boolean},allowedToShowView:{type:Function,required:!0},useUtc:{type:Boolean},fullMonthName:{type:Boolean},minimumView:{type:String,default:"day"},maximumView:{type:String,default:"year"},theme:{default:"green",type:String}},emits:["select-year","changed-decade"],setup(e,{emit:a}){function l(c){c.isDisabled||a("select-year",c)}function i(c){const r=e.pageDate;K(r,f(r)+c),a("changed-decade",r)}function d(){const c=e.disabledDates;if(!c||!c.to)return!1;const r=f(c.to),p=Math.floor(f(e.pageDate)/10)*10-1;return r>p}function y(){d()||i(-10)}function o(){const c=e.disabledDates;if(!c||!c.from)return!1;const r=f(c.from),p=Math.ceil(f(e.pageDate)/10)*10;return r<=p}function m(){o()||i(10)}function w(c){const r=$(e.selectedDate);return e.selectedDate?f(r)===f(c):!1}function V(c){let r=!1;return typeof e.disabledDates>"u"||!e.disabledDates?!1:(typeof e.disabledDates.to<"u"&&e.disabledDates.to&&f(c)f(e.disabledDates.from)&&(r=!0),typeof e.disabledDates.customPredictor=="function"&&(r=e.disabledDates.customPredictor(c)),r)}const k=t.computed(()=>{const c=e.pageDate,r=[],p=e.useUtc?new Date(Date.UTC(Math.floor(c.getUTCFullYear()/10)*10,c.getUTCMonth(),c.getUTCDate())):new Date(Math.floor(c.getFullYear()/10)*10,c.getMonth(),c.getDate(),c.getHours(),c.getMinutes());for(let g=0;g<10;g+=1)r.push({year:f(p),timestamp:p.getTime(),isSelected:w(p),isDisabled:V(p)}),K(p,f(p)+1);return r}),N=t.computed(()=>{const c=Math.floor(f(e.pageDate)/10)*10,r=c+9,p=e.translation&&e.translation.yearSuffix;return`${c} - ${r}${p}`}),S=t.computed(()=>e.isRtl?o():d()),b=t.computed(()=>e.isRtl?d():o()),z=t.computed(()=>{const c=$(e.selectedDate);return e.selectedDate?W(c,e.translation&&e.translation.daysNames):null}),E=t.computed(()=>{const c=e.translation&&e.translation.months;return P(D(e.pageDate),c)}),Y=t.computed(()=>{const c=$(e.selectedDate);return e.selectedDate?B(c):null}),M=t.computed(()=>{const c=e.translation&&e.translation.yearSuffix;return`${f(e.pageDate)}${c}`}),j=t.computed(()=>{const c=e.fullMonthName?e.translation&&e.translation.months:e.translation&&e.translation.monthsAbbr;return _(D(e.pageDate),c)}),T=t.computed(()=>!(e.minimumView===e.maximumView&&(e.minimumView!=="day"||e.maximumView!=="day")));return{isRightNavDisabled:b,isLeftNavDisabled:S,getPageDecade:N,years:k,nextDecade:m,previousDecade:y,selectYear:l,getDayName:z,monthName:E,getDisplayDate:Y,currYearName:M,currMonthName:j,ifDifferentViews:T,isNextDecadeDisabled:o,isPreviousDecadeDisabled:d,isDisabledYear:V}}}),Ue={key:0,class:"vuejs3-datepicker__calendar-topbar"},Le={class:"vuejs3-datepicker__calendar-topbar-year"},qe={key:0,class:"vuejs3-datepicker__calendar-topbar-day"},We={class:"vuejs3-datepicker__calendar-actionarea"},_e=["onClick"];function Ge(e,a,l,i,d,y){return t.withDirectives((t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["vuejs3-datepicker__calendar",`vuejs3-${e.theme}`,e.calendarClass]),style:t.normalizeStyle(e.calendarStyle),onMousedown:a[2]||(a[2]=t.withModifiers(()=>{},["prevent"]))},[t.renderSlot(e.$slots,"customCalendarHeader"),e.ifDifferentViews&&e.selectedDate?(t.openBlock(),t.createElementBlock("section",Ue,[t.createElementVNode("p",Le,t.toDisplayString(e.currYearName),1),e.selectedDate?(t.openBlock(),t.createElementBlock("p",qe,t.toDisplayString(e.getDayName)+" "+t.toDisplayString(e.getDisplayDate)+" "+t.toDisplayString(e.monthName),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",We,[t.createElementVNode("header",null,[t.createElementVNode("span",{onClick:a[0]||(a[0]=o=>e.isRtl?e.nextDecade():e.previousDecade()),class:t.normalizeClass(["prev",{disabled:e.isLeftNavDisabled}])},"<",2),t.createElementVNode("span",null,t.toDisplayString(e.getPageDecade),1),t.createElementVNode("span",{onClick:a[1]||(a[1]=o=>e.isRtl?e.previousDecade():e.nextDecade()),class:t.normalizeClass(["next",{disabled:e.isRightNavDisabled}])},">",2)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.years,o=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["cell year",{selected:o.isSelected,disabled:o.isDisabled}]),key:o.timestamp,onClick:t.withModifiers(m=>e.selectYear(o),["stop"])},t.toDisplayString(o.year),11,_e))),128))])],38)),[[t.vShow,e.showYearView]])}const Ke=H(Re,[["render",Ge]]),Qe=()=>{const e="Afrikaans",a=["Januarie","Februarie","Maart","April","Mei","Junie","Julie","Augustus","September","Oktober","November","Desember"],l=["Jan","Feb","Mrt","Apr","Mei","Jun","Jul","Aug","Sep","Okt","Nov","Des"],i=["So.","Ma.","Di.","Wo.","Do.","Vr.","Sa."];return{months:a,monthsAbbr:l,days:i,yearSuffix:"",ymd:!1,rtl:!1,language:e,langName:e,daysNames:i}},Xe=()=>{const e="German";return{months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthsAbbr:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],days:["So","Mo","Di","Mi","Do","Fr","Sa"],language:e,yearSuffix:"",ymd:!1,rtl:!1,langName:e,daysNames:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]}},Ze=()=>{const e="English";return{months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],days:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],language:e,yearSuffix:"",ymd:!1,rtl:!1,langName:e,daysNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]}},xe=()=>{const e="Español";return{months:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],monthsAbbr:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],days:["Dom","Lun","Mar","Mie","Jue","Vie","Sab"],language:e,yearSuffix:"",ymd:!1,rtl:!1,langName:e,daysNames:["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"]}},et=()=>{const e="Français";return{months:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],monthsAbbr:["Jan","Fév","Mar","Avr","Mai","Jui","Juil","Aoû","Sep","Oct","Nov","Déc"],days:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],language:e,yearSuffix:"",ymd:!1,rtl:!1,langName:e,daysNames:["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"]}},tt=()=>{const e="Hindi";return{months:["जनवरी","फ़रवरी","मार्च","अप्रैल","मई","जून","जुलाई","अगस्त","सितंबर","अक्टूबर","नवंबर","दिसंबर"],monthsAbbr:["जन","फ़र","मार्च","अप्रै","मई","जून","जुला","अगस्त","सितं","अक्टू","नवं","दिसं"],days:["रवि","सोम","मंगल","बुध","गुरु","शुक्र","शनि"],language:e,yearSuffix:"",ymd:!1,rtl:!1,langName:e,daysNames:["रविवार","सोमवार","मंगलवार","बुधवार","गुरुवार","शुक्रवार","शनिवार"]}},at=()=>{const e="Japanese";return{months:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],monthsAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],days:["日","月","火","水","木","金","土"],language:e,yearSuffix:"",ymd:!1,rtl:!1,langName:e,daysNames:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"]}},nt=()=>{const e="Dutch",a=["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],l=["jan.","feb.","mrt.","apr.","mei","juni","juli","aug.","sep.","okt.","nov.","dec."],i=["zo.","ma.","di.","wo.","do.","vr.","za."];return{months:a,monthsAbbr:l,days:i,yearSuffix:"",ymd:!1,rtl:!1,langName:e,language:e,daysNames:i}},ot=()=>{const e="Português";return{months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthsAbbr:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],days:["Dom","Seg","Ter","Qua","Qui","Sex","Sab"],language:e,yearSuffix:"",ymd:!1,rtl:!1,langName:e,daysNames:["Domingo","Segunda-Feira","Terça-Feira","Quarta-Feira","Quinta-Feira","Sexta-Feira","Sábado"]}},rt=()=>{const e="Italian";return{months:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],monthsAbbr:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],days:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],language:e,yearSuffix:"",ymd:!1,rtl:!1,langName:e,daysNames:["Domenica","Lunedì","Martedì","Mercoledì","Gioved","Venerdì","Sabato"]}},lt=()=>{const e="Polish";return{months:["Styczeń","Luty","Marzec","Kwiecień","Maj","Czerwiec","Lipiec","Sierpień","Wrzesień","Październik","Listopad","Grudzień"],monthsAbbr:["Sty","Lut","Mar","Kwi","Maj","Cze","Lip","Sie","Wrz","Paź","Lis","Gru"],days:["Nd","Pn","Wt","Śr","Cz","Pt","So"],language:e,yearSuffix:"",ymd:!1,rtl:!1,langName:e,daysNames:["Niedziela","Poniedziałek","Wtorek","Środa","Czwartek","Piątek","Sobota"]}},it=()=>{const e="Russian";return{months:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],monthsAbbr:["Янв.","Фев.","Мар.","Апр.","Май","Июн.","Июл.","Авг.","Сен.","Окт.","Ноя.","Дек."],days:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],language:e,yearSuffix:"",ymd:!1,rtl:!1,langName:e,daysNames:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"]}},st=()=>{const e="Türkçe";return{months:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],monthsAbbr:["Oca","Şub","Mar","Nis"," May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],days:["Pzt","Sal","Çar","Per","Cum","Cmt","Pzr"],language:e,yearSuffix:"",ymd:!1,rtl:!1,langName:e,daysNames:["Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi","Pazar"]}},dt=()=>{const e="Vietnamese";return{months:["Tháng 1","Tháng 2","Tháng 3","Tháng 4","Tháng 5","Tháng 6","Tháng 7","Tháng 8","Tháng 9","Tháng 10","Tháng 11","Tháng 12"],monthsAbbr:["Tháng 1","Tháng 2","Tháng 3","Tháng 4","Tháng 5","Tháng 6","Tháng 7","Tháng 8","Tháng 9","Tháng 10","Tháng 11","Tháng 12"],days:["CN","H","B","T","N","S","B"],language:e,yearSuffix:"",ymd:!1,rtl:!1,langName:e,daysNames:["CN","Thứ Hai","Thứ Ba","Thứ Tư","Thứ Năm","Thứ Sáu","Thứ Bảy"]}},ct=()=>{const e="Bulgarian";return{months:["Януари","Февруари","Март","Април","Май","Юни","Юли","Август","Септември","Октомври","Ноември","Декември"],monthsAbbr:["Яну","Фев","Мар","Апр","Май","Юни","Юли","Авг","Сеп","Окт","Ное","Дек"],days:["Нд","Пн","Вт","Ср","Чт","Пт","Сб"],language:e,yearSuffix:"",ymd:!1,rtl:!1,langName:e,daysNames:["Неделя","Понеделник","Вторник","Сряда","Четвъртък","Петък","Събота"]}},ut={af:Qe(),hi:tt(),ja:at(),de:Xe(),en:Ze(),es:xe(),fr:et(),nl:nt(),pt:ot(),it:rt(),pl:lt(),ru:it(),tr:st(),vn:dt(),bg:ct()},mt=t.defineComponent({name:"Datepicker",components:{DateInput:Be,PickerDay:Ye,PickerMonth:Je,PickerYear:Ke},directives:{clickoutside:ne},props:{modelValue:{type:[Date,String,Number]},value:{type:[Date,String,Number]},format:{type:[String,Function],default:"dd MMM yyyy"},language:{type:String,default:"en"},openDate:{validator:e=>ye(e),type:Date,default:new Date},minimumView:{type:String,default:"day"},maximumView:{type:String,default:"year"},name:{type:String},id:{type:String},dayCellContent:{type:Function},fullMonthName:{type:Boolean},disabledDates:{type:Object},highlighted:{type:Object},placeholder:{type:String},inline:{type:Boolean},calendarClass:{type:[String,Object,Array]},inputClass:{type:[String,Object,Array]},wrapperClass:{type:[String,Object,Array]},mondayFirst:{type:Boolean},clearButton:{type:Boolean},clearButtonIcon:{type:String},calendarButton:{type:Boolean},calendarButtonIcon:{type:String},calendarButtonIconContent:{type:String},addBootstrapClass:{type:Boolean},initialView:{type:String},disabled:{type:Boolean},required:{type:Boolean},typeable:{type:Boolean},useUtc:{type:Boolean},hideInput:{type:Boolean,default:!0},preventDisableDateSelection:{type:Boolean,default:!0},iconColor:{default:"black",type:String},iconHeight:{default:16,type:[String,Number]},iconWidth:{default:16,type:[String,Number]},theme:{default:"green",type:String}},emits:["input","cleared","update:modelValue","closed","changed-month","changed-year","changed-day","selected","selected-disabled"],setup(e,{emit:a}){const l=new Date(e.modelValue),i=t.ref(0),d=t.ref(null);e.modelValue&&ue(l)&&(i.value=l.getTime(),d.value=l),e.openDate&&(i.value=L(new Date(e.openDate),1));const y=t.ref(!1),o=t.ref(!1),m=t.ref(!1),w=t.ref(0),V=t.ref(new Date),k=t.computed(()=>e.initialView?e.initialView:e.minimumView),N=t.computed(()=>new Date(i.value)),S=t.computed(()=>ut[e.language]),b=t.computed(()=>!!e.inline),z=t.computed(()=>({position:b.value?"static":void 0})),E=t.computed(()=>y.value||o.value||m.value),Y=t.computed(()=>S.value&&S.value.rtl===!0);function M(h){h||(e.openDate?h=new Date(e.openDate):h=new Date),i.value=L(new Date(h),1)}function j(h){const C=["day","month","year"],G=C.indexOf(e.minimumView),pt=C.indexOf(e.maximumView),te=C.indexOf(h);return te>=G&&te<=pt}function T(h){y.value=!1,o.value=!1,m.value=!1,b.value||h&&a("closed")}function c(){return j("day")?(T(),y.value=!0,!0):!1}function r(){return j("month")?(T(),o.value=!0,!0):!1}function p(){return j("year")?(T(),m.value=!0,!0):!1}function g(){const h=k.value;if(!j(h))throw new Error(`initialView '${h}' cannot be rendered based on minimum '${e.minimumView}' and maximum '${e.maximumView}'`);switch(h){case"year":p();break;case"month":r();break;default:c();break}}function O(){return e.disabled||b.value?!1:E.value?T(!0):(g(),!0)}function J(h){const C=new Date(h);d.value=C,M(C),a("selected",C),a("update:modelValue",C),a("input",C)}function Q(){d.value=null,M(),a("selected",null),e.modelValue?a("update:modelValue",null):a("input",null),a("cleared")}function R(h){J(h.timestamp),b.value||T(!0),V.value=new Date}function X(h){a("selected-disabled",h)}function n(h){const C=new Date(h.timestamp);j("day")?(M(C),c()):R(h),a("changed-month",h)}function s(h){const C=new Date(h.timestamp);j("month")?(M(C),r()):R(h),a("changed-year",h)}function u(h){let C=h;if(typeof h=="string"||typeof h=="number"){const G=new Date(h);C=Number.isNaN(G.valueOf())?"":G}if(!C){M(),d.value=null;return}d.value=C,M(h)}function A(h){M(h),a("changed-month",h)}function U(h){J(h.getTime())}function ht(){e.value&&u(e.value),b.value&&g()}function yt(){T()}return t.watch(()=>e.modelValue,h=>{u(h)}),t.watch(()=>e.value,h=>{u(h)}),t.watch(()=>e.openDate,()=>{M()}),t.watch(()=>e.initialView,()=>{g()}),ht(),{pageTimestamp:i,selectedDate:d,showDayView:y,showMonthView:o,showYearView:m,calendarHeight:w,resetTypedDate:V,pageDate:N,translation:S,calendarStyle:z,isOpen:E,isInline:b,isRtl:Y,setTypedDate:U,handleChangedMonthFromDayPicker:A,selectYear:s,selectMonth:n,selectDisabledDate:X,clearDate:Q,showCalendar:O,close:T,allowedToShowView:j,showYearCalendar:p,showMonthCalendar:r,setPageDate:M,selectDate:R,closeOnClickOutside:yt,showDayCalendar:c,computedInitialView:k,setDate:L,setDate1:J,setValue:u}}}),Dt="";function ft(e,a,l,i,d,y){const o=t.resolveComponent("date-input"),m=t.resolveComponent("picker-day"),w=t.resolveComponent("picker-month"),V=t.resolveComponent("picker-year"),k=t.resolveDirective("clickoutside");return t.withDirectives((t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["vuejs3-datepicker",[e.isRtl?"rtl":"",`vuejs3-${e.theme}`,e.wrapperClass]])},[t.createVNode(o,{selectedDate:e.selectedDate,resetTypedDate:e.resetTypedDate,format:e.format,translation:e.translation,inline:e.inline,id:e.id,name:e.name,fullMonthName:e.fullMonthName,openDate:e.openDate,placeholder:e.placeholder,inputClass:e.inputClass,typeable:e.typeable,clearButton:e.clearButton,clearButtonIcon:e.clearButtonIcon,calendarButton:e.calendarButton,calendarButtonIcon:e.calendarButtonIcon,calendarButtonIconContent:e.calendarButtonIconContent,disabled:e.disabled,required:e.required,addBootstrapClass:e.addBootstrapClass,"use-utc":e.useUtc,onShowCalendar:e.showCalendar,onCloseCalendar:e.close,onTypedDate:e.setTypedDate,onClearDate:e.clearDate,minimumView:e.minimumView,maximumView:e.maximumView,hideInput:e.hideInput,iconWidth:e.iconWidth,iconHeight:e.iconHeight,iconColor:e.iconColor,theme:e.theme},{belowDate:t.withCtx(()=>[t.renderSlot(e.$slots,"belowDate")]),_:3},8,["selectedDate","resetTypedDate","format","translation","inline","id","name","fullMonthName","openDate","placeholder","inputClass","typeable","clearButton","clearButtonIcon","calendarButton","calendarButtonIcon","calendarButtonIconContent","disabled","required","addBootstrapClass","use-utc","onShowCalendar","onCloseCalendar","onTypedDate","onClearDate","minimumView","maximumView","hideInput","iconWidth","iconHeight","iconColor","theme"]),e.allowedToShowView("day")?(t.openBlock(),t.createBlock(m,{key:0,pageDate:e.pageDate,selectedDate:e.selectedDate,showDayView:e.showDayView,fullMonthName:e.fullMonthName,allowedToShowView:e.allowedToShowView,disabledDates:e.disabledDates,highlighted:e.highlighted,calendarClass:e.calendarClass,calendarStyle:e.calendarStyle,translation:e.translation,pageTimestamp:e.pageTimestamp,isRtl:e.isRtl,mondayFirst:e.mondayFirst,dayCellContent:e.dayCellContent,onChangedMonth:e.handleChangedMonthFromDayPicker,onSelectDate:e.selectDate,onShowMonthCalendar:e.showMonthCalendar,onSelectedDisabled:e.selectDisabledDate,onShowYearCalendar:e.showYearCalendar,minimumView:e.minimumView,maximumView:e.maximumView,preventDisableDateSelection:e.preventDisableDateSelection,theme:e.theme},{customCalendarHeader:t.withCtx(()=>[t.renderSlot(e.$slots,"customCalendarHeader")]),_:3},8,["pageDate","selectedDate","showDayView","fullMonthName","allowedToShowView","disabledDates","highlighted","calendarClass","calendarStyle","translation","pageTimestamp","isRtl","mondayFirst","dayCellContent","onChangedMonth","onSelectDate","onShowMonthCalendar","onSelectedDisabled","onShowYearCalendar","minimumView","maximumView","preventDisableDateSelection","theme"])):t.createCommentVNode("",!0),e.allowedToShowView("month")?(t.openBlock(),t.createBlock(w,{key:1,pageDate:e.pageDate,selectedDate:e.selectedDate,showMonthView:e.showMonthView,allowedToShowView:e.allowedToShowView,disabledDates:e.disabledDates,calendarClass:e.calendarClass,calendarStyle:e.calendarStyle,translation:e.translation,isRtl:e.isRtl,"use-utc":e.useUtc,fullMonthName:e.fullMonthName,onSelectMonth:e.selectMonth,onShowYearCalendar:e.showYearCalendar,onChangedYear:e.setPageDate,minimumView:e.minimumView,maximumView:e.maximumView,theme:e.theme},{customCalendarHeader:t.withCtx(()=>[t.renderSlot(e.$slots,"customCalendarHeader")]),_:3},8,["pageDate","selectedDate","showMonthView","allowedToShowView","disabledDates","calendarClass","calendarStyle","translation","isRtl","use-utc","fullMonthName","onSelectMonth","onShowYearCalendar","onChangedYear","minimumView","maximumView","theme"])):t.createCommentVNode("",!0),e.allowedToShowView("year")?(t.openBlock(),t.createBlock(V,{key:2,pageDate:e.pageDate,selectedDate:e.selectedDate,showYearView:e.showYearView,allowedToShowView:e.allowedToShowView,disabledDates:e.disabledDates,calendarClass:e.calendarClass,calendarStyle:e.calendarStyle,translation:e.translation,isRtl:e.isRtl,"use-utc":e.useUtc,onSelectYear:e.selectYear,onChangedDecade:e.setPageDate,fullMonthName:e.fullMonthName,minimumView:e.minimumView,maximumView:e.maximumView,theme:e.theme},{customCalendarHeader:t.withCtx(()=>[t.renderSlot(e.$slots,"customCalendarHeader")]),_:3},8,["pageDate","selectedDate","showYearView","allowedToShowView","disabledDates","calendarClass","calendarStyle","translation","isRtl","use-utc","onSelectYear","onChangedDecade","fullMonthName","minimumView","maximumView","theme"])):t.createCommentVNode("",!0)],2)),[[k,{handler:e.inline?null:e.closeOnClickOutside}]])}return H(mt,[["render",ft]])}); diff --git a/package-lock.json b/package-lock.json index 651df6f..9a1337a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,6 +9,7 @@ "version": "1.0.18", "dependencies": { "prismjs": "^1.22.0", + "vite-plugin-dts": "^3.6.3", "vue": "^3.0.0" }, "devDependencies": { @@ -1881,6 +1882,98 @@ "@jridgewell/sourcemap-codec": "^1.4.14" } }, + "node_modules/@microsoft/api-extractor": { + "version": "7.38.2", + "resolved": "https://registry.npmjs.org/@microsoft/api-extractor/-/api-extractor-7.38.2.tgz", + "integrity": "sha512-JOARuhTwOcOMIU0O2czscoJy3ddVzIRhSA9/7T1ALuZSNphgWsPk+Bv4E7AnBDmTV4pP4lBNLtCxEHjjpWaytQ==", + "dependencies": { + "@microsoft/api-extractor-model": "7.28.2", + "@microsoft/tsdoc": "0.14.2", + "@microsoft/tsdoc-config": "~0.16.1", + "@rushstack/node-core-library": "3.61.0", + "@rushstack/rig-package": "0.5.1", + "@rushstack/ts-command-line": "4.17.1", + "colors": "~1.2.1", + "lodash": "~4.17.15", + "resolve": "~1.22.1", + "semver": "~7.5.4", + "source-map": "~0.6.1", + "typescript": "~5.0.4" + }, + "bin": { + "api-extractor": "bin/api-extractor" + } + }, + "node_modules/@microsoft/api-extractor-model": { + "version": "7.28.2", + "resolved": "https://registry.npmjs.org/@microsoft/api-extractor-model/-/api-extractor-model-7.28.2.tgz", + "integrity": "sha512-vkojrM2fo3q4n4oPh4uUZdjJ2DxQ2+RnDQL/xhTWSRUNPF6P4QyrvY357HBxbnltKcYu+nNNolVqc6TIGQ73Ig==", + "dependencies": { + "@microsoft/tsdoc": "0.14.2", + "@microsoft/tsdoc-config": "~0.16.1", + "@rushstack/node-core-library": "3.61.0" + } + }, + "node_modules/@microsoft/api-extractor/node_modules/typescript": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.0.4.tgz", + "integrity": "sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=12.20" + } + }, + "node_modules/@microsoft/tsdoc": { + "version": "0.14.2", + "resolved": "https://registry.npmjs.org/@microsoft/tsdoc/-/tsdoc-0.14.2.tgz", + "integrity": "sha512-9b8mPpKrfeGRuhFH5iO1iwCLeIIsV6+H1sRfxbkoGXIyQE2BTsPd9zqSqQJ+pv5sJ/hT5M1zvOFL02MnEezFug==" + }, + "node_modules/@microsoft/tsdoc-config": { + "version": "0.16.2", + "resolved": "https://registry.npmjs.org/@microsoft/tsdoc-config/-/tsdoc-config-0.16.2.tgz", + "integrity": "sha512-OGiIzzoBLgWWR0UdRJX98oYO+XKGf7tiK4Zk6tQ/E4IJqGCe7dvkTvgDZV5cFJUzLGDOjeAXrnZoA6QkVySuxw==", + "dependencies": { + "@microsoft/tsdoc": "0.14.2", + "ajv": "~6.12.6", + "jju": "~1.4.0", + "resolve": "~1.19.0" + } + }, + "node_modules/@microsoft/tsdoc-config/node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/@microsoft/tsdoc-config/node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" + }, + "node_modules/@microsoft/tsdoc-config/node_modules/resolve": { + "version": "1.19.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.19.0.tgz", + "integrity": "sha512-rArEXAgsBG4UgRGcynxWIWKFvh/XZCcS8UJdHhwy91zwAvCZIbcs+vAbflgBnNjYMs/i/i+/Ux6IZhML1yPvxg==", + "dependencies": { + "is-core-module": "^2.1.0", + "path-parse": "^1.0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", @@ -2125,6 +2218,106 @@ "node": ">=12" } }, + "node_modules/@rollup/pluginutils": { + "version": "5.0.5", + "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-5.0.5.tgz", + "integrity": "sha512-6aEYR910NyP73oHiJglti74iRyOwgFU4x3meH/H8OJx6Ry0j6cOVZ5X/wTvub7G7Ao6qaHBEaNsV3GLJkSsF+Q==", + "dependencies": { + "@types/estree": "^1.0.0", + "estree-walker": "^2.0.2", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, + "node_modules/@rushstack/node-core-library": { + "version": "3.61.0", + "resolved": "https://registry.npmjs.org/@rushstack/node-core-library/-/node-core-library-3.61.0.tgz", + "integrity": "sha512-tdOjdErme+/YOu4gPed3sFS72GhtWCgNV9oDsHDnoLY5oDfwjKUc9Z+JOZZ37uAxcm/OCahDHfuu2ugqrfWAVQ==", + "dependencies": { + "colors": "~1.2.1", + "fs-extra": "~7.0.1", + "import-lazy": "~4.0.0", + "jju": "~1.4.0", + "resolve": "~1.22.1", + "semver": "~7.5.4", + "z-schema": "~5.0.2" + }, + "peerDependencies": { + "@types/node": "*" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@rushstack/node-core-library/node_modules/fs-extra": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", + "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", + "dependencies": { + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + }, + "engines": { + "node": ">=6 <7 || >=8" + } + }, + "node_modules/@rushstack/node-core-library/node_modules/jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/@rushstack/node-core-library/node_modules/universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/@rushstack/rig-package": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/@rushstack/rig-package/-/rig-package-0.5.1.tgz", + "integrity": "sha512-pXRYSe29TjRw7rqxD4WS3HN/sRSbfr+tJs4a9uuaSIBAITbUggygdhuG0VrO0EO+QqH91GhYMN4S6KRtOEmGVA==", + "dependencies": { + "resolve": "~1.22.1", + "strip-json-comments": "~3.1.1" + } + }, + "node_modules/@rushstack/ts-command-line": { + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/@rushstack/ts-command-line/-/ts-command-line-4.17.1.tgz", + "integrity": "sha512-2jweO1O57BYP5qdBGl6apJLB+aRIn5ccIRTPDyULh0KMwVzFqWtw6IZWt1qtUoZD/pD2RNkIOosH6Cq45rIYeg==", + "dependencies": { + "@types/argparse": "1.0.38", + "argparse": "~1.0.9", + "colors": "~1.2.1", + "string-argv": "~0.3.1" + } + }, + "node_modules/@rushstack/ts-command-line/node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, "node_modules/@semantic-release/changelog": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/@semantic-release/changelog/-/changelog-6.0.3.tgz", @@ -2638,6 +2831,11 @@ "node": ">=10.13.0" } }, + "node_modules/@types/argparse": { + "version": "1.0.38", + "resolved": "https://registry.npmjs.org/@types/argparse/-/argparse-1.0.38.tgz", + "integrity": "sha512-ebDJ9b0e702Yr7pWgB0jzm+CX4Srzz8RcXtLJDJB+BSccqMa36uyH/zUsSYao5+BD1ytv3k3rPYCq4mAE1hsXA==" + }, "node_modules/@types/babel__core": { "version": "7.20.3", "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.3.tgz", @@ -2679,6 +2877,11 @@ "@babel/types": "^7.20.7" } }, + "node_modules/@types/estree": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.4.tgz", + "integrity": "sha512-2JwWnHK9H+wUZNorf2Zr6ves96WHoWDJIftkcxPKsS7Djta6Zu519LarhRNljPXkpsZR2ZMwNCPeW7omW07BJw==" + }, "node_modules/@types/graceful-fs": { "version": "4.1.8", "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.8.tgz", @@ -2734,7 +2937,7 @@ "version": "20.8.10", "resolved": "https://registry.npmjs.org/@types/node/-/node-20.8.10.tgz", "integrity": "sha512-TlgT8JntpcbmKUFzjhsyhGfP2fsiz1Mv56im6enJ905xG1DAYesxJaeSbGqQmAw8OWPdhyJGhGSQGKRNJ45u9w==", - "dev": true, + "devOptional": true, "dependencies": { "undici-types": "~5.26.4" } @@ -2990,7 +3193,6 @@ "version": "1.10.10", "resolved": "https://registry.npmjs.org/@volar/language-core/-/language-core-1.10.10.tgz", "integrity": "sha512-nsV1o3AZ5n5jaEAObrS3MWLBWaGwUj/vAsc15FVNIv+DbpizQRISg9wzygsHBr56ELRH8r4K75vkYNMtsSNNWw==", - "dev": true, "dependencies": { "@volar/source-map": "1.10.10" } @@ -2999,7 +3201,6 @@ "version": "1.10.10", "resolved": "https://registry.npmjs.org/@volar/source-map/-/source-map-1.10.10.tgz", "integrity": "sha512-GVKjLnifV4voJ9F0vhP56p4+F3WGf+gXlRtjFZsv6v3WxBTWU3ZVeaRaEHJmWrcv5LXmoYYpk/SC25BKemPRkg==", - "dev": true, "dependencies": { "muggle-string": "^0.3.1" } @@ -3008,7 +3209,6 @@ "version": "1.10.10", "resolved": "https://registry.npmjs.org/@volar/typescript/-/typescript-1.10.10.tgz", "integrity": "sha512-4a2r5bdUub2m+mYVnLu2wt59fuoYWe7nf0uXtGHU8QQ5LDNfzAR0wK7NgDiQ9rcl2WT3fxT2AA9AylAwFtj50A==", - "dev": true, "dependencies": { "@volar/language-core": "1.10.10", "path-browserify": "^1.0.1" @@ -3122,7 +3322,6 @@ "version": "1.8.22", "resolved": "https://registry.npmjs.org/@vue/language-core/-/language-core-1.8.22.tgz", "integrity": "sha512-bsMoJzCrXZqGsxawtUea1cLjUT9dZnDsy5TuZ+l1fxRMzUGQUG9+Ypq4w//CqpWmrx7nIAJpw2JVF/t258miRw==", - "dev": true, "dependencies": { "@volar/language-core": "~1.10.5", "@volar/source-map": "~1.10.5", @@ -3146,7 +3345,6 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, "dependencies": { "balanced-match": "^1.0.0" } @@ -3155,7 +3353,6 @@ "version": "9.0.3", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", - "dev": true, "dependencies": { "brace-expansion": "^2.0.1" }, @@ -3730,8 +3927,7 @@ "node_modules/balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" }, "node_modules/base64-js": { "version": "1.5.1", @@ -4266,6 +4462,14 @@ "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==", "dev": true }, + "node_modules/colors": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/colors/-/colors-1.2.5.tgz", + "integrity": "sha512-erNRLao/Y3Fv54qUa0LBB+//Uf3YwMUmdJinN20yMXm9zdKKqH9wt7R9IIVZ+K7ShzfpLV/Zg8+VyrBJYB4lpg==", + "engines": { + "node": ">=0.1.90" + } + }, "node_modules/commander": { "version": "11.1.0", "resolved": "https://registry.npmjs.org/commander/-/commander-11.1.0.tgz", @@ -4342,8 +4546,7 @@ "node_modules/computeds": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/computeds/-/computeds-0.0.1.tgz", - "integrity": "sha512-7CEBgcMjVmitjYo5q8JTJVra6X5mQ20uTThdK+0kR7UEaDrAWEQcRiBtWJzga4eRpP6afNwwLsX2SET2JhVB1Q==", - "dev": true + "integrity": "sha512-7CEBgcMjVmitjYo5q8JTJVra6X5mQ20uTThdK+0kR7UEaDrAWEQcRiBtWJzga4eRpP6afNwwLsX2SET2JhVB1Q==" }, "node_modules/concat-map": { "version": "0.0.1", @@ -4848,14 +5051,12 @@ "node_modules/de-indent": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/de-indent/-/de-indent-1.0.2.tgz", - "integrity": "sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg==", - "dev": true + "integrity": "sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg==" }, "node_modules/debug": { "version": "4.3.4", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "dev": true, "dependencies": { "ms": "2.1.2" }, @@ -5617,7 +5818,7 @@ "version": "0.18.20", "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.18.20.tgz", "integrity": "sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA==", - "dev": true, + "devOptional": true, "hasInstallScript": true, "bin": { "esbuild": "bin/esbuild" @@ -6276,8 +6477,7 @@ "node_modules/fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" }, "node_modules/fast-diff": { "version": "1.3.0", @@ -6316,8 +6516,7 @@ "node_modules/fast-json-stable-stringify": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" }, "node_modules/fast-levenshtein": { "version": "2.0.6", @@ -6555,7 +6754,6 @@ "version": "1.1.2", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", - "dev": true, "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -7113,8 +7311,7 @@ "node_modules/graceful-fs": { "version": "4.2.11", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", - "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", - "dev": true + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" }, "node_modules/graphemer": { "version": "1.4.0", @@ -7225,7 +7422,6 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.0.tgz", "integrity": "sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==", - "dev": true, "dependencies": { "function-bind": "^1.1.2" }, @@ -7237,7 +7433,6 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", - "dev": true, "bin": { "he": "bin/he" } @@ -7421,6 +7616,14 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/import-lazy": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-4.0.0.tgz", + "integrity": "sha512-rKtvo6a868b5Hu3heneU+L4yEQ4jYKLtjpnPeUdK7h0yzXGmyBTypknlkCvHFBqfX9YlorEiMM6Dnq/5atfHkw==", + "engines": { + "node": ">=8" + } + }, "node_modules/import-local": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", @@ -7627,7 +7830,6 @@ "version": "2.13.1", "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.1.tgz", "integrity": "sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==", - "dev": true, "dependencies": { "hasown": "^2.0.0" }, @@ -8730,6 +8932,11 @@ "jiti": "bin/jiti.js" } }, + "node_modules/jju": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/jju/-/jju-1.4.0.tgz", + "integrity": "sha512-8wb9Yw966OSxApiCt0K3yNJL8pnNeIv+OEq2YMidz4FKP6nonSRoOXc80iXY4JaN2FC11B9qsNmDsm+ZOfMROA==" + }, "node_modules/js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", @@ -8887,6 +9094,11 @@ "node": ">=6" } }, + "node_modules/kolorist": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/kolorist/-/kolorist-1.8.0.tgz", + "integrity": "sha512-Y+60/zizpJ3HRH8DCss+q95yr6145JXZo46OTpFvDZWLfRCE4qChOyk1b26nMaNpfHHgxagk9dXT5OP0Tfe+dQ==" + }, "node_modules/language-subtag-registry": { "version": "0.3.22", "resolved": "https://registry.npmjs.org/language-subtag-registry/-/language-subtag-registry-0.3.22.tgz", @@ -9269,8 +9481,7 @@ "node_modules/lodash": { "version": "4.17.21", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", - "dev": true + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" }, "node_modules/lodash-es": { "version": "4.17.21", @@ -9296,6 +9507,16 @@ "integrity": "sha512-TM9YBvyC84ZxE3rgfefxUWiQKLilstD6k7PTGt6wfbtXF8ixIJLOL3VYyV/z+ZiPLsVxAsKAFVwWlWeb2Y8Yyw==", "dev": true }, + "node_modules/lodash.get": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz", + "integrity": "sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==" + }, + "node_modules/lodash.isequal": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz", + "integrity": "sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==" + }, "node_modules/lodash.isfunction": { "version": "3.0.9", "resolved": "https://registry.npmjs.org/lodash.isfunction/-/lodash.isfunction-3.0.9.tgz", @@ -9808,14 +10029,12 @@ "node_modules/ms": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" }, "node_modules/muggle-string": { "version": "0.3.1", "resolved": "https://registry.npmjs.org/muggle-string/-/muggle-string-0.3.1.tgz", - "integrity": "sha512-ckmWDJjphvd/FvZawgygcUeQCxzvohjFO5RxTjj4eq8kw359gFF3E1brjfI+viLMxss5JrHTDRHZvu2/tuy0Qg==", - "dev": true + "integrity": "sha512-ckmWDJjphvd/FvZawgygcUeQCxzvohjFO5RxTjj4eq8kw359gFF3E1brjfI+viLMxss5JrHTDRHZvu2/tuy0Qg==" }, "node_modules/mute-stream": { "version": "0.0.8", @@ -13227,8 +13446,7 @@ "node_modules/path-browserify": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz", - "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==", - "dev": true + "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==" }, "node_modules/path-exists": { "version": "4.0.0", @@ -13260,8 +13478,7 @@ "node_modules/path-parse": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "dev": true + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" }, "node_modules/path-type": { "version": "4.0.0", @@ -13281,7 +13498,6 @@ "version": "2.3.1", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "dev": true, "engines": { "node": ">=8.6" }, @@ -14085,7 +14301,6 @@ "version": "2.3.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "dev": true, "engines": { "node": ">=6" } @@ -14375,7 +14590,6 @@ "version": "1.22.8", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", - "dev": true, "dependencies": { "is-core-module": "^2.13.0", "path-parse": "^1.0.7", @@ -14491,7 +14705,7 @@ "version": "3.29.4", "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.29.4.tgz", "integrity": "sha512-oWzmBZwvYrU0iJHtDmhsm662rC15FRXmcjCk1xD771dFDx5jJ02ufAQQTn0etB2emNk4J9EZg/yWKpsn9BWGRw==", - "dev": true, + "devOptional": true, "bin": { "rollup": "dist/bin/rollup" }, @@ -14904,7 +15118,6 @@ "version": "7.5.4", "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", - "dev": true, "dependencies": { "lru-cache": "^6.0.0" }, @@ -14946,7 +15159,6 @@ "version": "6.0.0", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, "dependencies": { "yallist": "^4.0.0" }, @@ -14957,8 +15169,7 @@ "node_modules/semver/node_modules/yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" }, "node_modules/set-function-length": { "version": "1.1.1", @@ -15186,7 +15397,6 @@ "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, "engines": { "node": ">=0.10.0" } @@ -15259,8 +15469,7 @@ "node_modules/sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", - "dev": true + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==" }, "node_modules/stack-utils": { "version": "2.0.6", @@ -15306,7 +15515,6 @@ "version": "0.3.2", "resolved": "https://registry.npmjs.org/string-argv/-/string-argv-0.3.2.tgz", "integrity": "sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==", - "dev": true, "engines": { "node": ">=0.6.19" } @@ -15464,7 +15672,6 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true, "engines": { "node": ">=8" }, @@ -15517,7 +15724,6 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", - "dev": true, "engines": { "node": ">= 0.4" }, @@ -15908,7 +16114,6 @@ "version": "5.2.2", "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz", "integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==", - "devOptional": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -15949,7 +16154,7 @@ "version": "5.26.5", "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", - "dev": true + "devOptional": true }, "node_modules/unicode-emoji-modifier-base": { "version": "1.0.0", @@ -16033,7 +16238,6 @@ "version": "4.4.1", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dev": true, "dependencies": { "punycode": "^2.1.0" } @@ -16077,11 +16281,19 @@ "spdx-expression-parse": "^3.0.0" } }, + "node_modules/validator": { + "version": "13.11.0", + "resolved": "https://registry.npmjs.org/validator/-/validator-13.11.0.tgz", + "integrity": "sha512-Ii+sehpSfZy+At5nPdnyMhx78fEoPDkR2XW/zimHEL3MyGJQOCQ7WeP20jPYRz7ZCpcKLB21NxuXHF3bxjStBQ==", + "engines": { + "node": ">= 0.10" + } + }, "node_modules/vite": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/vite/-/vite-4.5.0.tgz", "integrity": "sha512-ulr8rNLA6rkyFAlVWw2q5YJ91v098AFQ2R0PRFwPzREXOUJQPtFUG0t+/ZikhaOCDqFoDhN6/v8Sq0o4araFAw==", - "dev": true, + "devOptional": true, "dependencies": { "esbuild": "^0.18.10", "postcss": "^8.4.27", @@ -16132,6 +16344,31 @@ } } }, + "node_modules/vite-plugin-dts": { + "version": "3.6.3", + "resolved": "https://registry.npmjs.org/vite-plugin-dts/-/vite-plugin-dts-3.6.3.tgz", + "integrity": "sha512-NyRvgobl15rYj65coi/gH7UAEH+CpSjh539DbGb40DfOTZSvDLNYTzc8CK4460W+LqXuMK7+U3JAxRB3ksrNPw==", + "dependencies": { + "@microsoft/api-extractor": "^7.38.0", + "@rollup/pluginutils": "^5.0.5", + "@vue/language-core": "^1.8.20", + "debug": "^4.3.4", + "kolorist": "^1.8.0", + "vue-tsc": "^1.8.20" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "peerDependencies": { + "typescript": "*", + "vite": "*" + }, + "peerDependenciesMeta": { + "vite": { + "optional": true + } + } + }, "node_modules/vite-plugin-libcss": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/vite-plugin-libcss/-/vite-plugin-libcss-1.1.1.tgz", @@ -16216,7 +16453,6 @@ "version": "2.7.15", "resolved": "https://registry.npmjs.org/vue-template-compiler/-/vue-template-compiler-2.7.15.tgz", "integrity": "sha512-yQxjxMptBL7UAog00O8sANud99C6wJF+7kgbcwqkvA38vCGF7HWE66w0ZFnS/kX5gSoJr/PQ4/oS3Ne2pW37Og==", - "dev": true, "dependencies": { "de-indent": "^1.0.2", "he": "^1.2.0" @@ -16226,7 +16462,6 @@ "version": "1.8.22", "resolved": "https://registry.npmjs.org/vue-tsc/-/vue-tsc-1.8.22.tgz", "integrity": "sha512-j9P4kHtW6eEE08aS5McFZE/ivmipXy0JzrnTgbomfABMaVKx37kNBw//irL3+LlE3kOo63XpnRigyPC3w7+z+A==", - "dev": true, "dependencies": { "@volar/typescript": "~1.10.5", "@vue/language-core": "1.8.22", @@ -16485,6 +16720,34 @@ "funding": { "url": "https://github.com/sponsors/sindresorhus" } + }, + "node_modules/z-schema": { + "version": "5.0.5", + "resolved": "https://registry.npmjs.org/z-schema/-/z-schema-5.0.5.tgz", + "integrity": "sha512-D7eujBWkLa3p2sIpJA0d1pr7es+a7m0vFAnZLlCEKq/Ij2k0MLi9Br2UPxoxdYystm5K1yeBGzub0FlYUEWj2Q==", + "dependencies": { + "lodash.get": "^4.4.2", + "lodash.isequal": "^4.5.0", + "validator": "^13.7.0" + }, + "bin": { + "z-schema": "bin/z-schema" + }, + "engines": { + "node": ">=8.0.0" + }, + "optionalDependencies": { + "commander": "^9.4.1" + } + }, + "node_modules/z-schema/node_modules/commander": { + "version": "9.5.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-9.5.0.tgz", + "integrity": "sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==", + "optional": true, + "engines": { + "node": "^12.20.0 || >=14" + } } } } diff --git a/package.json b/package.json index 8742976..75badba 100644 --- a/package.json +++ b/package.json @@ -3,12 +3,17 @@ "version": "1.0.18", "description": "Vue 3 datepicker", "files": [ - "dist/*", - "src/*", - "types/*" + "build/*" ], "type": "module", - "module": "dist/vue3-datepicker.js", + "module": "./build/vuejs3-datepicker.js", + "main": "./build/vuejs3-datepicker.umd.cjs", + "exports": { + ".": { + "import": "./build/vuejs3-datepicker.js", + "require": "./build/vuejs3-datepicker.umd.cjs" + } + }, "scripts": { "dev": "vite --config vite.config.project.ts", "cz": "git-cz", @@ -19,12 +24,13 @@ "lint": "eslint --cache --fix", "prepublishOnly": "npm run lint && npm run build:lib", "commit-message": "npm run commitlint -e -V", - "semantic-release:local": "yarn run build:lib && yarn build:demo && semantic-release --no-ci", + "semantic-release:local": "npm run build:lib && npm build && semantic-release --no-ci", "semantic-release": "semantic-release", "prepare": "husky install" }, "dependencies": { "prismjs": "^1.22.0", + "vite-plugin-dts": "^3.6.3", "vue": "^3.0.0" }, "devDependencies": { @@ -68,7 +74,6 @@ "*.ts": "eslint --cache --fix", "*.vue": "eslint --cache --fix" }, - "types": "./types/index.d.ts", "keywords": [ "vue", "vuejs", diff --git a/types/index.d.ts b/types/index.d.ts deleted file mode 100644 index 6040b84..0000000 --- a/types/index.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -export interface Datepicker { - modelValue?: [Date, string]; - value?: [Date, string]; - format?: [string, Function]; - id?: string; - name?: string; - openDate?: Date; - minimumView?: string; - maximumView?: string; - dayCellContent?: Function; - fullMonthName?: boolean; - disabledDates?: Record; - highlighted?: Record; - placeholder?: string; - inline?: boolean; - calendarClass?: [string, Record]; - inputClass?: [string, Record]; - wrapperClass?: [string, Record]; - mondayFirst?: boolean; - clearButton?: boolean; - clearButtonIcon?: string; - calendarButton?: boolean; - calendarButtonIcon?: string; - calendarButtonIconContent?: string; - initialView?: string; - disabled?: boolean; - required?: boolean; - typeable?: boolean; - useUtc?: boolean; - preventDisableDateSelection?: boolean; - iconColor?: string; - iconWidth?: string; - iconHeight?: string; - addBootstrapClass?: boolean; -}