Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V3 - Fixed build error in src\utils\theme.ts #1404

Open
wants to merge 678 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
678 commits
Select commit Hold shift + click to select a range
f75a97a
Update docs
nathanreyes Jan 26, 2023
21f46ef
Fix date validation on mount
nathanreyes Jan 26, 2023
5ebe95c
Add date picker tests
nathanreyes Jan 26, 2023
bebd9af
config => opts
nathanreyes Jan 26, 2023
d20a046
Simplify move/focusDate promises
nathanreyes Jan 26, 2023
dd09d29
Update tests for rules
nathanreyes Jan 26, 2023
4b87485
Update BaseSelect classes
nathanreyes Jan 26, 2023
7b7ea29
Remove redundant class
nathanreyes Jan 26, 2023
b430a3a
Add min-date, max-date rules
nathanreyes Jan 26, 2023
84e8e47
toBe => toEqual
nathanreyes Jan 26, 2023
63fcd3f
Fix rule logic for object config
nathanreyes Jan 26, 2023
57836d3
Update docs example
nathanreyes Jan 26, 2023
570fe5c
Fix type for rules functions
nathanreyes Jan 26, 2023
f02ff47
Add more tests for time rules
nathanreyes Jan 26, 2023
f4218ab
Update methods in api docs
nathanreyes Jan 26, 2023
d51df91
Adds docs for function rules
nathanreyes Jan 27, 2023
66b6280
Update docs for plugin defaults
nathanreyes Jan 27, 2023
a87ef7b
Tweak defaults wording
nathanreyes Jan 27, 2023
d13bde5
Update time-rules.md
nathanreyes Jan 27, 2023
f4d22c9
Remove `loading` option
nathanreyes Jan 27, 2023
9f2a215
Simplify time picker render
nathanreyes Jan 28, 2023
a9e7e77
Simplify rules logic
nathanreyes Jan 30, 2023
25af1ea
Add rule interval tests
nathanreyes Jan 30, 2023
d5c3d0b
Use Array.isArray
nathanreyes Jan 31, 2023
c494cf7
Fix time picker alignments
nathanreyes Jan 31, 2023
71289ae
Fix date picker notify logic
nathanreyes Jan 31, 2023
1ef3941
Add disabled date range example to docs
nathanreyes Jan 31, 2023
a0a1229
Fix bug with selecting disabled dates
nathanreyes Jan 31, 2023
771012d
Add test for selecting disabled dates
nathanreyes Jan 31, 2023
c6e5578
Update DateDisplay.vue
nathanreyes Jan 31, 2023
c717a79
Fix denormalization bug
nathanreyes Jan 31, 2023
363bed4
Fix input value types
nathanreyes Jan 31, 2023
0359fda
Update slot-content.md
nathanreyes Jan 31, 2023
76f6b1d
Fix vite build issues with docs
nathanreyes Feb 1, 2023
79e11d1
Fix SSR bugs
nathanreyes Feb 1, 2023
28d68ed
Create netlify.toml
nathanreyes Feb 1, 2023
e68260d
Update vue-screen-utils
nathanreyes Feb 1, 2023
64a7ed1
Update netlify.toml
nathanreyes Feb 1, 2023
c02fe03
Add lodash to docs
nathanreyes Feb 1, 2023
14d4d7a
Fix TS build
nathanreyes Feb 1, 2023
c769aa4
Test vite config update
nathanreyes Feb 1, 2023
85d0c2a
Update docs config
nathanreyes Feb 1, 2023
a0fa782
Update docs config
nathanreyes Feb 1, 2023
d8bccc3
Update build config
nathanreyes Feb 1, 2023
2039ac2
Update vite.config.ts
nathanreyes Feb 2, 2023
699920a
Add plug-node-resolve package
nathanreyes Feb 2, 2023
af936e0
Update vite.config.ts
nathanreyes Feb 2, 2023
db75bc0
Update vite.config.ts
nathanreyes Feb 2, 2023
fa8d452
Update vite.config.ts
nathanreyes Feb 2, 2023
c2e72c2
Update vite.config.ts
nathanreyes Feb 2, 2023
fc1bc4f
Add @popperjs/core to docs
nathanreyes Feb 2, 2023
1fb6033
Update vite.config.ts
nathanreyes Feb 2, 2023
a908901
Update package.json
nathanreyes Feb 2, 2023
88c1f66
Update helpers.ts
nathanreyes Feb 2, 2023
3caff28
Update netlify.toml
nathanreyes Feb 2, 2023
b0e28be
Update netlify.toml
nathanreyes Feb 2, 2023
512b89f
Update netlify.toml
nathanreyes Feb 2, 2023
e2afcd2
Update vite.config.ts
nathanreyes Feb 2, 2023
b9ae887
Remove @rollup/plugin-node-resolve
nathanreyes Feb 2, 2023
60f86f1
Fix docs header
nathanreyes Feb 3, 2023
6c78586
Fix defaults assignment
nathanreyes Feb 3, 2023
36b7916
Docs styling
nathanreyes Feb 3, 2023
0a1886f
Update time-rules.md
nathanreyes Feb 3, 2023
d06c4b5
Update TimezonesPickerTime.vue
nathanreyes Feb 3, 2023
2c26caa
Switch styling
nathanreyes Feb 3, 2023
503b0f7
Docs updates
nathanreyes Feb 3, 2023
68c3f17
Update docs
nathanreyes Feb 4, 2023
a3a48a4
Update config.ts
nathanreyes Feb 4, 2023
c196e22
Update Hero.vue
nathanreyes Feb 4, 2023
3c1a83e
Update Hero.vue
nathanreyes Feb 4, 2023
5313121
Convert calendar reactive state to refs
nathanreyes Feb 4, 2023
b12fc4d
Rename refresh functions
nathanreyes Feb 4, 2023
f4ee2da
docs - add missing masks
nathanreyes Feb 5, 2023
8d80b94
Update docs home page
nathanreyes Feb 6, 2023
f69c534
Update docs home page
nathanreyes Feb 6, 2023
65eb046
Rearrange icon files
nathanreyes Feb 6, 2023
2751e57
Update home page docs
nathanreyes Feb 6, 2023
1d9435d
Add transparent, borderless props
nathanreyes Feb 6, 2023
91e2f7f
Update docs for `expanded` prop
nathanreyes Feb 6, 2023
37de805
Update docs for `borderless`, `transparent` props
nathanreyes Feb 6, 2023
021bca4
Set day `isFocused` property
nathanreyes Feb 6, 2023
00af08a
Update range cells
nathanreyes Feb 6, 2023
9f172ba
Update docs
nathanreyes Feb 7, 2023
f9d58a4
Update docs
nathanreyes Feb 7, 2023
aa11dce
Algolia config
nathanreyes Feb 7, 2023
045347e
Update netlify.toml
nathanreyes Feb 7, 2023
1959ada
Update .nvmrc
nathanreyes Feb 7, 2023
b04a457
Update docs
nathanreyes Feb 11, 2023
b43f99f
Add page weekdays
nathanreyes Feb 11, 2023
fd46333
Add popper peer dependency
nathanreyes Feb 11, 2023
8a3a814
Update installation.md
nathanreyes Feb 11, 2023
96b1bab
Update changelog link
nathanreyes Feb 12, 2023
14d3d23
Initial changes
nathanreyes Feb 25, 2023
88380a4
Update theme
nathanreyes Mar 11, 2023
9abee6b
Update docs
nathanreyes Mar 11, 2023
2265155
Docs updates
nathanreyes Mar 11, 2023
58fcaa7
Docs update
nathanreyes Mar 11, 2023
1ff3538
Home page updates
nathanreyes Mar 12, 2023
095a49c
v3.0.0-alpha.9
nathanreyes Mar 13, 2023
79b02b7
Update AttributesIntro.vue
nathanreyes Mar 13, 2023
2456628
main.css => index.css
nathanreyes Mar 14, 2023
94fc489
Fix import
nathanreyes Mar 14, 2023
4f3243f
Update README.md
nathanreyes Mar 14, 2023
27c799f
Update README.md
nathanreyes Mar 14, 2023
ea21136
Update v2 docs link
nathanreyes Mar 14, 2023
dee05a7
Update docs
nathanreyes Mar 15, 2023
c57b58f
Update docs config
nathanreyes Mar 15, 2023
7a68190
Update config.ts
nathanreyes Mar 15, 2023
4787ae5
Update tsconfig.json
nathanreyes Mar 15, 2023
4cbfc82
Update docs structure
nathanreyes Mar 15, 2023
b0ce8b5
Remove files
nathanreyes Mar 15, 2023
0bf7dc0
v3.0.0
nathanreyes Mar 15, 2023
1de71e0
Update CHANGELOG.md
nathanreyes Mar 15, 2023
30dcb7b
Update docs/README
nathanreyes Mar 15, 2023
be47eff
Update CHANGELOG.md
nathanreyes Mar 15, 2023
64117ba
add type="button"
jaketig Mar 16, 2023
7f44bf8
add type="button" to event editor
jaketig Mar 16, 2023
c7ff813
Merge pull request #1274 from jaketig/Fix-Unwanted-Form-Submit
nathanreyes Mar 16, 2023
a5a83d9
Update CHANGELOG.md
nathanreyes Mar 16, 2023
9a5dc99
v3.0.1
nathanreyes Mar 16, 2023
d41b00a
Fix test setup
nathanreyes Mar 22, 2023
4da5be4
Revert back to jsdom. Update testing packages.
nathanreyes Mar 22, 2023
04d9923
Restructure date picker tests
nathanreyes Mar 22, 2023
2fc8905
Update eslint
nathanreyes Mar 25, 2023
4be9ee6
Fix lint warning
nathanreyes Mar 25, 2023
7653f09
Add attributes to calendar day events. Closes #1277
nathanreyes Mar 25, 2023
0ebb63f
Add date picker tests with inputs
nathanreyes Mar 25, 2023
d346987
Deprecate renderFn option for popover events
nathanreyes Mar 25, 2023
5be2967
Remove Guide link from docs
nathanreyes Mar 25, 2023
68dd06a
Add date picker tests for range inputs
nathanreyes Mar 25, 2023
9052087
Emit null modelValue on input clear. Closes #1270. Closes #1283.
nathanreyes Mar 25, 2023
a587825
Update yarn.lock
nathanreyes Mar 25, 2023
395684c
Clean up type imports/usage
nathanreyes Mar 25, 2023
7407281
Fix day-content slot. Closes #1276.
nathanreyes Mar 26, 2023
fa506c0
Update docs
nathanreyes Mar 26, 2023
89bc886
Update Github1276.vue
nathanreyes Mar 26, 2023
cd1e508
Update CHANGELOG.md
nathanreyes Mar 26, 2023
1ac7d91
Pass slots from calendar component
nathanreyes Mar 26, 2023
e4c1ecd
Add test for day-content slot
nathanreyes Mar 26, 2023
2584f3b
v3.0.2
nathanreyes Mar 26, 2023
5021f27
Move calendar header css to SFC
nathanreyes Mar 27, 2023
f1d17ae
Remove child button styling from container
nathanreyes Mar 28, 2023
6c92949
Add unit test for calendar header slots
nathanreyes Mar 28, 2023
3481d6c
Fix calendar header slots
nathanreyes Mar 28, 2023
4fa29f5
Update docs
nathanreyes Mar 28, 2023
341be5a
Fix calendar nav slots. Improve semantic elements.
nathanreyes Mar 29, 2023
9497256
Update CalendarEventEdit.vue
nathanreyes Mar 29, 2023
0022323
Fix nav item styling
nathanreyes Mar 29, 2023
8b6be17
Update calendar tests
nathanreyes Mar 29, 2023
cabfc5f
Fix calendar header slots
nathanreyes Mar 29, 2023
cb37b6b
Update slot api docs
nathanreyes Mar 29, 2023
6aad5ee
Add calendar tests for nav slots
nathanreyes Mar 29, 2023
bf5c589
Adjust header title padding
nathanreyes Mar 29, 2023
1a423bb
Remove inline style
nathanreyes Mar 29, 2023
beb2c76
Update CHANGELOG.md
nathanreyes Mar 31, 2023
86df289
Add 'build:all' script
nathanreyes Mar 31, 2023
d3bc740
v3.0.3
nathanreyes Mar 31, 2023
7691008
Fix docs navigation example
nathanreyes Mar 31, 2023
cc6fd4c
Update package.json
nathanreyes Mar 31, 2023
5cec695
Improve docs for mobile
nathanreyes Apr 2, 2023
8fe08bf
Rearrange calendar component files
nathanreyes Apr 15, 2023
937f714
CalendarPane => CalendarPage
nathanreyes Apr 15, 2023
5103feb
Add auto-fit for base select component
nathanreyes Jun 11, 2023
67e979b
Remove unused CalendarTitleNav
nathanreyes Jun 11, 2023
bc87a28
Refactor calendar nav for composability
nathanreyes Jun 11, 2023
d8d7192
BaseSelect updates
nathanreyes Jun 12, 2023
0e0a6db
Update calendar to use page provider
nathanreyes Jun 12, 2023
03f4666
Remove component name requirement
nathanreyes Jun 12, 2023
3ccb1ab
Use export format for testability
nathanreyes Jun 25, 2023
bf5ec77
Update mount for date picker tests
nathanreyes Jul 1, 2023
1bb1b7c
Add `header-title-wrapper` slot
nathanreyes Jul 1, 2023
7fd9a3e
Remove unused import
nathanreyes Jul 1, 2023
729e8d5
Update page composable
nathanreyes Jul 1, 2023
e88c330
Popover type fixes. Fix `after-show` emits.
nathanreyes Jul 2, 2023
b1ab451
Refactor slot tests
nathanreyes Jul 16, 2023
8cb3ab3
Update helpers.ts
nathanreyes Jul 16, 2023
17e5f92
Use symbols for context keys
nathanreyes Jul 16, 2023
7c85a1b
Refactor slot inheritance
nathanreyes Jul 18, 2023
1763e4c
Fix unnecessary function call
nathanreyes Jul 18, 2023
e735f92
Rearrange test files. Add more slot tests.
nathanreyes Jul 18, 2023
cdfc513
fix types declaration
yurks Jul 27, 2023
512c550
Add 19 to dayInMonth type
liritz Aug 4, 2023
5c4da9f
fix: Spread disabled dates before modifying them
Aug 17, 2023
8880982
Allow attribute properties to be optional
abaumg Aug 18, 2023
c304128
Fix date picker basics page
nathanreyes Sep 3, 2023
3a99276
Simplify nav popover hide
nathanreyes Sep 4, 2023
b0c5bcc
Update slots.spec.ts
nathanreyes Sep 4, 2023
5e859e1
Update docs for footer slot
nathanreyes Sep 4, 2023
14b106c
Docs: Remove id from base component
nathanreyes Sep 4, 2023
76e391a
Update NavigationMove.vue
nathanreyes Sep 4, 2023
27d28b6
Type fixes
nathanreyes Sep 4, 2023
741b8dc
Sort imports with prettier
nathanreyes Sep 4, 2023
fc961dc
Wrap calendar with `defineComponent`
nathanreyes Sep 4, 2023
22da013
Move if any page in range
nathanreyes Sep 4, 2023
2c12534
Group calendar grid components
nathanreyes Sep 4, 2023
9c9f2fb
Fix imports for test files
nathanreyes Sep 4, 2023
732354f
Fix calendar grid ref assignment
nathanreyes Sep 4, 2023
df4579c
Use symbol over uuid
nathanreyes Sep 4, 2023
809d171
Clean up helper methods
nathanreyes Sep 4, 2023
e736ed3
Delete shims-vue.d.ts
nathanreyes Sep 4, 2023
e0a0237
Use templates for date picker component
nathanreyes Sep 5, 2023
f795f44
Update README.md
nathanreyes Sep 7, 2023
20e75d7
Update README.md
nathanreyes Sep 7, 2023
27d1f3f
Update v2 docs url
nathanreyes Sep 7, 2023
ffb1934
Add tests for calendar props/methods in date picker
nathanreyes Sep 9, 2023
82fa4cb
Pass minDate, maxDate via context
nathanreyes Sep 9, 2023
21fdfa3
Create CalendarTitleSelect.vue
nathanreyes Sep 10, 2023
2bd3243
Bump node version
nathanreyes Sep 10, 2023
fba0b3b
Fix type error
nathanreyes Sep 10, 2023
40cfd2b
Update tests
nathanreyes Sep 10, 2023
e6964ab
Update AttributesPopoverLabels.vue
nathanreyes Sep 10, 2023
269be9e
Move TimePicker to date picker folder
nathanreyes Sep 10, 2023
dfaa752
Fix missing attribute keys
nathanreyes Sep 10, 2023
98ea8d8
Add missing slots to docs
nathanreyes Sep 10, 2023
d951db5
Add slots to date picker api docs
nathanreyes Sep 10, 2023
3596079
Move PopoverRow to Popover folder
nathanreyes Sep 10, 2023
5907290
Merge pull request #1368 from nathanreyes/feat/project-reorg
nathanreyes Sep 10, 2023
f4f57e2
Merge pull request #1362 from abaumg/fix/optional-attribute-properties
nathanreyes Sep 10, 2023
a60e8ee
Merge pull request #1359 from liritz/next
nathanreyes Sep 10, 2023
0c8f4ce
Merge pull request #1356 from yurks/patch-1
nathanreyes Sep 10, 2023
c152fa0
Fix example
nathanreyes Sep 10, 2023
f8a58a0
Merge pull request #1361 from Ubax/v3
nathanreyes Sep 10, 2023
13e8d81
Check array exists before spread
nathanreyes Sep 10, 2023
aea66e9
Fix build errors
nathanreyes Sep 18, 2023
09d38a3
Update CHANGELOG.md
nathanreyes Sep 24, 2023
16bd9a1
v3.1.0
nathanreyes Sep 24, 2023
cf5905b
Formatting
nathanreyes Sep 24, 2023
cbdfafa
Add time picker classes and tests
nathanreyes Sep 30, 2023
4fa328c
Update time rules docs
nathanreyes Oct 1, 2023
d87cee4
Fix example
nathanreyes Oct 1, 2023
545743a
Bump Netlify node version
nathanreyes Oct 1, 2023
77ac86d
Fix example
nathanreyes Oct 1, 2023
e5823cb
Update prettier
nathanreyes Oct 7, 2023
64b0e8b
Fix attribute key auto-assign
nathanreyes Oct 8, 2023
f6c292b
Update AttributesIntro.vue
nathanreyes Oct 8, 2023
e7b643f
Update CHANGELOG.md
nathanreyes Oct 8, 2023
887c4c2
Update DatePicker.spec.ts
nathanreyes Oct 8, 2023
270497a
Update DatePicker.spec.ts
nathanreyes Oct 8, 2023
76a5f26
Type improvements. Clear value on mode change.
nathanreyes Oct 8, 2023
9ca7468
Add Github1171 example
nathanreyes Oct 8, 2023
90d10bf
Update docs utility component
nathanreyes Oct 8, 2023
d1966e4
Update CHANGELOG.md
nathanreyes Oct 8, 2023
200092f
v3.1.1
nathanreyes Oct 8, 2023
196d6be
Update `date-fns-tz` to 2.0
nathanreyes Oct 13, 2023
96b4116
Fix date value check. Fixes #1387.
nathanreyes Oct 13, 2023
e5bd445
Create Github1387.vue
nathanreyes Oct 13, 2023
38d4cf9
v3.1.2
nathanreyes Oct 13, 2023
d67806b
Update CHANGELOG.md
nathanreyes Oct 13, 2023
c487c52
Docs styling
nathanreyes Oct 16, 2023
b1cbc63
Fixed build error in theme.ts
alfisdad Oct 31, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Clean up helper methods
  • Loading branch information
nathanreyes committed Sep 4, 2023
commit 809d1714ab60bc2802899a6e9c70fd57c62c4022
21 changes: 1 addition & 20 deletions src/utils/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,25 +43,6 @@ export const pad = (val: string | number, len: number, char = '0') => {
return val;
};

export const evalFn = (fn: Function, args: any) =>
isFunction(fn) ? fn(args) : fn;

export const mergeEvents = (...args: Array<any>) => {
const result: any = {};
args.forEach(e =>
Object.entries(e).forEach(([key, value]) => {
if (!result[key]) {
result[key] = value;
} else if (isArray(result[key])) {
result[key].push(value);
} else {
result[key] = [result[key], value];
}
}),
);
return result;
};

export const roundTenth = (n: number) => {
return Math.round(n * 100) / 100;
};
Expand All @@ -72,7 +53,7 @@ export const arrayHasItems = (array: any): boolean =>
isArray(array) && array.length > 0;

export const resolveEl = (target: unknown): Node | null => {
if (target == null) return target ?? null;
if (target == null) return null;
if (document && isString(target)) return document.querySelector(target);
return (target as ComponentPublicInstance).$el ?? target;
};
Expand Down