@aquera/nile-elements 0.0.3-9 → 0.0.4-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/index.d.ts +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/index.js +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/index.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-calendar/index.d.ts +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-calendar/index.js +2 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-calendar/index.js.map +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-calendar/nile-calendar.css.d.ts +12 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-calendar/nile-calendar.css.js +186 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-calendar/nile-calendar.css.js.map +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-calendar/nile-calendar.d.ts +70 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-calendar/nile-calendar.js +477 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-calendar/nile-calendar.js.map +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-date-picker/nile-date-picker.css.js +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-date-picker/nile-date-picker.css.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-date-picker/nile-date-picker.d.ts +1 -17
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-date-picker/nile-date-picker.js +13 -317
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-date-picker/nile-date-picker.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-select/nile-select.js +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-select/nile-select.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.iife.js +332 -166
- package/dist/nile-calendar/index.cjs.js +2 -0
- package/dist/nile-calendar/index.cjs.js.map +1 -0
- package/dist/nile-calendar/index.esm.js +1 -0
- package/dist/nile-calendar/nile-calendar.cjs.js +2 -0
- package/dist/nile-calendar/nile-calendar.cjs.js.map +1 -0
- package/dist/nile-calendar/nile-calendar.css.cjs.js +2 -0
- package/dist/nile-calendar/nile-calendar.css.cjs.js.map +1 -0
- package/dist/nile-calendar/nile-calendar.css.esm.js +174 -0
- package/dist/nile-calendar/nile-calendar.esm.js +68 -0
- package/dist/nile-date-picker/nile-date-picker.cjs.js +1 -1
- package/dist/nile-date-picker/nile-date-picker.cjs.js.map +1 -1
- package/dist/nile-date-picker/nile-date-picker.css.cjs.js +1 -1
- package/dist/nile-date-picker/nile-date-picker.css.cjs.js.map +1 -1
- package/dist/nile-date-picker/nile-date-picker.css.esm.js +1 -1
- package/dist/nile-date-picker/nile-date-picker.esm.js +9 -83
- package/dist/nile-select/nile-select.cjs.js +1 -1
- package/dist/nile-select/nile-select.cjs.js.map +1 -1
- package/dist/nile-select/nile-select.esm.js +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.js +1 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/nile-calendar/index.d.ts +1 -0
- package/dist/src/nile-calendar/index.js +2 -0
- package/dist/src/nile-calendar/index.js.map +1 -0
- package/dist/src/nile-calendar/nile-calendar.css.d.ts +12 -0
- package/dist/src/nile-calendar/nile-calendar.css.js +186 -0
- package/dist/src/nile-calendar/nile-calendar.css.js.map +1 -0
- package/dist/src/nile-calendar/nile-calendar.d.ts +70 -0
- package/dist/src/nile-calendar/nile-calendar.js +477 -0
- package/dist/src/nile-calendar/nile-calendar.js.map +1 -0
- package/dist/src/nile-date-picker/nile-date-picker.css.js +1 -1
- package/dist/src/nile-date-picker/nile-date-picker.css.js.map +1 -1
- package/dist/src/nile-date-picker/nile-date-picker.d.ts +1 -17
- package/dist/src/nile-date-picker/nile-date-picker.js +13 -317
- package/dist/src/nile-date-picker/nile-date-picker.js.map +1 -1
- package/dist/src/nile-select/nile-select.js +1 -1
- package/dist/src/nile-select/nile-select.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/nile-calendar/index.ts +1 -0
- package/src/nile-calendar/nile-calendar.css.ts +188 -0
- package/src/nile-calendar/nile-calendar.ts +571 -0
- package/src/nile-date-picker/nile-date-picker.css.ts +1 -1
- package/src/nile-date-picker/nile-date-picker.ts +14 -381
- package/src/nile-select/nile-select.ts +1 -1
package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/index.d.ts
CHANGED
@@ -28,3 +28,4 @@ export { NileDatePicker } from './nile-date-picker';
|
|
28
28
|
export { NileErrorMessage } from './nile-error-message';
|
29
29
|
export { NileFormErrorMessage } from './nile-form-error-message';
|
30
30
|
export { NileFormHelpText } from './nile-form-help-text';
|
31
|
+
export { NileCalendar } from './nile-calendar';
|
package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/index.js
CHANGED
@@ -28,4 +28,5 @@ export { NileDatePicker } from './nile-date-picker';
|
|
28
28
|
export { NileErrorMessage } from './nile-error-message';
|
29
29
|
export { NileFormErrorMessage } from './nile-form-error-message';
|
30
30
|
export { NileFormHelpText } from './nile-form-help-text';
|
31
|
+
export { NileCalendar } from './nile-calendar';
|
31
32
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC","sourcesContent":["export { NileButton } from './nile-button';\nexport { NileHeading } from './nile-heading';\nexport { NileIcon } from './nile-icon';\nexport { NileInput } from './nile-input';\nexport { NileSidebar } from './nile-sidebar';\nexport { NileMenu } from './nile-menu';\nexport { NileBadge } from './nile-badge';\nexport { NileDrawer } from './nile-drawer';\nexport { NileCheckbox } from './nile-checkbox';\nexport { NileRadio } from './nile-radio';\nexport { NileRadioGroup } from './nile-radio-group';\nexport { NilePopup } from './nile-popup';\nexport { NileTooltip } from './nile-tooltip';\nexport { NileSlideToggle } from './nile-slide-toggle';\nexport { NileLoader } from './nile-loader';\nexport { NileProgressBar } from './nile-progress-bar';\nexport { NileSpinner } from './nile-spinner';\nexport { NileSelect } from './nile-select';\nexport { NileOption } from './nile-option';\nexport { NileTag } from './nile-tag';\nexport { NileIconButton } from './nile-icon-button';\nexport { NileMenuItem } from './nile-menu-item';\nexport { NileDropdown } from './nile-dropdown';\nexport { NileAutoComplete } from './nile-auto-complete';\nexport { NileChip } from './nile-chip';\nexport { NileTextarea } from './nile-textarea';\nexport { NileDatePicker } from './nile-date-picker';\nexport { NileErrorMessage } from './nile-error-message';\nexport { NileFormErrorMessage } from './nile-form-error-message';\nexport { NileFormHelpText } from './nile-form-help-text';\n"]}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC","sourcesContent":["export { NileButton } from './nile-button';\nexport { NileHeading } from './nile-heading';\nexport { NileIcon } from './nile-icon';\nexport { NileInput } from './nile-input';\nexport { NileSidebar } from './nile-sidebar';\nexport { NileMenu } from './nile-menu';\nexport { NileBadge } from './nile-badge';\nexport { NileDrawer } from './nile-drawer';\nexport { NileCheckbox } from './nile-checkbox';\nexport { NileRadio } from './nile-radio';\nexport { NileRadioGroup } from './nile-radio-group';\nexport { NilePopup } from './nile-popup';\nexport { NileTooltip } from './nile-tooltip';\nexport { NileSlideToggle } from './nile-slide-toggle';\nexport { NileLoader } from './nile-loader';\nexport { NileProgressBar } from './nile-progress-bar';\nexport { NileSpinner } from './nile-spinner';\nexport { NileSelect } from './nile-select';\nexport { NileOption } from './nile-option';\nexport { NileTag } from './nile-tag';\nexport { NileIconButton } from './nile-icon-button';\nexport { NileMenuItem } from './nile-menu-item';\nexport { NileDropdown } from './nile-dropdown';\nexport { NileAutoComplete } from './nile-auto-complete';\nexport { NileChip } from './nile-chip';\nexport { NileTextarea } from './nile-textarea';\nexport { NileDatePicker } from './nile-date-picker';\nexport { NileErrorMessage } from './nile-error-message';\nexport { NileFormErrorMessage } from './nile-form-error-message';\nexport { NileFormHelpText } from './nile-form-help-text';\nexport { NileCalendar } from './nile-calendar';\n"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { NileCalendar } from './nile-calendar';
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/nile-calendar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC","sourcesContent":["export { NileCalendar } from './nile-calendar';\n"]}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright Aquera Inc 2023
|
3
|
+
*
|
4
|
+
* This source code is licensed under the BSD-3-Clause license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
/**
|
8
|
+
* DatePicker CSS
|
9
|
+
*/
|
10
|
+
export declare const styles: import("lit-element").CSSResult;
|
11
|
+
declare const _default: import("lit-element").CSSResult[];
|
12
|
+
export default _default;
|
@@ -0,0 +1,186 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright Aquera Inc 2023
|
3
|
+
*
|
4
|
+
* This source code is licensed under the BSD-3-Clause license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
import { css } from 'lit-element';
|
8
|
+
/**
|
9
|
+
* DatePicker CSS
|
10
|
+
*/
|
11
|
+
export const styles = css `
|
12
|
+
:host {
|
13
|
+
}
|
14
|
+
|
15
|
+
.calendar-container {
|
16
|
+
font-family: Colfax-regular;
|
17
|
+
width: 365px;
|
18
|
+
height: auto;
|
19
|
+
text-align: center;
|
20
|
+
background: white;
|
21
|
+
}
|
22
|
+
|
23
|
+
.calendar-container.with-margin {
|
24
|
+
margin-right: 20px;
|
25
|
+
}
|
26
|
+
|
27
|
+
.calendar-header {
|
28
|
+
display: flex;
|
29
|
+
justify-content: space-between;
|
30
|
+
padding: 10px;
|
31
|
+
padding: 22px 20px;
|
32
|
+
font-size: 14px;
|
33
|
+
font-weight: 600;
|
34
|
+
line-height: 14px;
|
35
|
+
letter-spacing: 0.2px;
|
36
|
+
}
|
37
|
+
|
38
|
+
.calendar-header__month-navigation {
|
39
|
+
cursor: pointer;
|
40
|
+
}
|
41
|
+
|
42
|
+
.divider {
|
43
|
+
width: 100%;
|
44
|
+
height: 1px;
|
45
|
+
background: #c7ced4;
|
46
|
+
}
|
47
|
+
|
48
|
+
.day-names {
|
49
|
+
font-size: 14px;
|
50
|
+
font-weight: 600;
|
51
|
+
line-height: 14px;
|
52
|
+
letter-spacing: 0.2px;
|
53
|
+
height: 50px;
|
54
|
+
margin-top: 10px;
|
55
|
+
}
|
56
|
+
|
57
|
+
.day-names,
|
58
|
+
.days {
|
59
|
+
display: flex;
|
60
|
+
flex-wrap: wrap;
|
61
|
+
justify-content: flex-start;
|
62
|
+
height: auto;
|
63
|
+
align-items: center;
|
64
|
+
}
|
65
|
+
|
66
|
+
.days {
|
67
|
+
height: auto;
|
68
|
+
}
|
69
|
+
|
70
|
+
.day {
|
71
|
+
flex-basis: calc(100% / 7);
|
72
|
+
box-sizing: border-box;
|
73
|
+
width: 48px;
|
74
|
+
align-items: center;
|
75
|
+
padding: 10px;
|
76
|
+
height: 32px;
|
77
|
+
margin-top: 6px;
|
78
|
+
margin-bottom: 6px;
|
79
|
+
display: flex;
|
80
|
+
justify-content: center;
|
81
|
+
align-items: center;
|
82
|
+
cursor: pointer;
|
83
|
+
}
|
84
|
+
|
85
|
+
.filler {
|
86
|
+
color: grey;
|
87
|
+
}
|
88
|
+
|
89
|
+
.selected-date {
|
90
|
+
color: white;
|
91
|
+
border-radius: 4px;
|
92
|
+
background: #a5d3f3;
|
93
|
+
}
|
94
|
+
|
95
|
+
.calendar-wrapper {
|
96
|
+
background: white;
|
97
|
+
display: flex;
|
98
|
+
justify-content: space-between;
|
99
|
+
width: auto;
|
100
|
+
}
|
101
|
+
|
102
|
+
.selected-date,
|
103
|
+
.range-start,
|
104
|
+
.range-end {
|
105
|
+
border-radius: 4px;
|
106
|
+
background: #a5d3f3;
|
107
|
+
color: white;
|
108
|
+
}
|
109
|
+
|
110
|
+
.range-start {
|
111
|
+
background: #a5d3f3;
|
112
|
+
border-radius: 4px 0 0 4px;
|
113
|
+
color: white;
|
114
|
+
}
|
115
|
+
|
116
|
+
.range-end {
|
117
|
+
background: #a5d3f3;
|
118
|
+
border-radius: 0 4px 4px 0;
|
119
|
+
color: white;
|
120
|
+
}
|
121
|
+
|
122
|
+
.range-middle {
|
123
|
+
background: #a5d3f3;
|
124
|
+
color: white;
|
125
|
+
border-radius: 0;
|
126
|
+
}
|
127
|
+
|
128
|
+
.day.selected {
|
129
|
+
background: #a5d3f3;
|
130
|
+
color: white;
|
131
|
+
border-radius: 4px;
|
132
|
+
}
|
133
|
+
|
134
|
+
.day.in-range {
|
135
|
+
background: #a5d3f3;
|
136
|
+
color: white;
|
137
|
+
}
|
138
|
+
|
139
|
+
.selected-date {
|
140
|
+
color: white;
|
141
|
+
border-radius: 4px;
|
142
|
+
background: #a5d3f3;
|
143
|
+
}
|
144
|
+
|
145
|
+
.base {
|
146
|
+
background-color: white;
|
147
|
+
border-radius: 4px;
|
148
|
+
padding-bottom: 20px;
|
149
|
+
width: 365px;
|
150
|
+
}
|
151
|
+
|
152
|
+
.base__range {
|
153
|
+
width: 730px;
|
154
|
+
}
|
155
|
+
|
156
|
+
.calender-input {
|
157
|
+
padding: 20px;
|
158
|
+
padding-bottom: 0px;
|
159
|
+
background: white;
|
160
|
+
}
|
161
|
+
|
162
|
+
.from {
|
163
|
+
display: flex;
|
164
|
+
justify-content: space-between;
|
165
|
+
gap: 20px;
|
166
|
+
}
|
167
|
+
|
168
|
+
.manual-input {
|
169
|
+
width: 100%;
|
170
|
+
}
|
171
|
+
|
172
|
+
.manual-input-label {
|
173
|
+
font-size: 12px;
|
174
|
+
font-style: normal;
|
175
|
+
font-weight: 500;
|
176
|
+
margin-bottom: 10px;
|
177
|
+
}
|
178
|
+
|
179
|
+
.button-contaner {
|
180
|
+
width: 100%;
|
181
|
+
text-align: right;
|
182
|
+
padding: 10px 0;
|
183
|
+
}
|
184
|
+
`;
|
185
|
+
export default [styles];
|
186
|
+
//# sourceMappingURL=nile-calendar.css.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"nile-calendar.css.js","sourceRoot":"","sources":["../../../src/nile-calendar/nile-calendar.css.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAElC;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6KxB,CAAC;AAEF,eAAe,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { css } from 'lit-element';\n\n/**\n * DatePicker CSS\n */\nexport const styles = css`\n :host {\n }\n\n .calendar-container {\n font-family: Colfax-regular;\n width: 365px;\n height: auto;\n text-align: center;\n background: white;\n }\n\n .calendar-container.with-margin {\n margin-right: 20px;\n }\n\n .calendar-header {\n display: flex;\n justify-content: space-between;\n padding: 10px;\n padding: 22px 20px;\n font-size: 14px;\n font-weight: 600;\n line-height: 14px;\n letter-spacing: 0.2px;\n }\n\n .calendar-header__month-navigation {\n cursor: pointer;\n }\n\n .divider {\n width: 100%;\n height: 1px;\n background: #c7ced4;\n }\n\n .day-names {\n font-size: 14px;\n font-weight: 600;\n line-height: 14px;\n letter-spacing: 0.2px;\n height: 50px;\n margin-top: 10px;\n }\n\n .day-names,\n .days {\n display: flex;\n flex-wrap: wrap;\n justify-content: flex-start;\n height: auto;\n align-items: center;\n }\n\n .days {\n height: auto;\n }\n\n .day {\n flex-basis: calc(100% / 7);\n box-sizing: border-box;\n width: 48px;\n align-items: center;\n padding: 10px;\n height: 32px;\n margin-top: 6px;\n margin-bottom: 6px;\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n }\n\n .filler {\n color: grey;\n }\n\n .selected-date {\n color: white;\n border-radius: 4px;\n background: #a5d3f3;\n }\n\n .calendar-wrapper {\n background: white;\n display: flex;\n justify-content: space-between;\n width: auto;\n }\n\n .selected-date,\n .range-start,\n .range-end {\n border-radius: 4px;\n background: #a5d3f3;\n color: white;\n }\n\n .range-start {\n background: #a5d3f3;\n border-radius: 4px 0 0 4px;\n color: white;\n }\n\n .range-end {\n background: #a5d3f3;\n border-radius: 0 4px 4px 0;\n color: white;\n }\n\n .range-middle {\n background: #a5d3f3;\n color: white;\n border-radius: 0;\n }\n\n .day.selected {\n background: #a5d3f3;\n color: white;\n border-radius: 4px;\n }\n\n .day.in-range {\n background: #a5d3f3;\n color: white;\n }\n\n .selected-date {\n color: white;\n border-radius: 4px;\n background: #a5d3f3;\n }\n\n .base {\n background-color: white;\n border-radius: 4px;\n padding-bottom: 20px;\n width: 365px;\n }\n\n .base__range {\n width: 730px;\n }\n\n .calender-input {\n padding: 20px;\n padding-bottom: 0px;\n background: white;\n }\n\n .from {\n display: flex;\n justify-content: space-between;\n gap: 20px;\n }\n\n .manual-input {\n width: 100%;\n }\n\n .manual-input-label {\n font-size: 12px;\n font-style: normal;\n font-weight: 500;\n margin-bottom: 10px;\n }\n\n .button-contaner {\n width: 100%;\n text-align: right;\n padding: 10px 0;\n }\n`;\n\nexport default [styles];\n"]}
|
@@ -0,0 +1,70 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright Aquera Inc 2023
|
3
|
+
*
|
4
|
+
* This source code is licensed under the BSD-3-Clause license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
import { CSSResultArray, TemplateResult } from 'lit-element';
|
8
|
+
import NileElement from '../internal/nile-element';
|
9
|
+
import type { PropertyValues } from 'lit';
|
10
|
+
import '../nile-popup';
|
11
|
+
import { NileDropdown } from '../nile-dropdown';
|
12
|
+
/**
|
13
|
+
* Nile icon component.
|
14
|
+
*
|
15
|
+
* @tag nile-calendar
|
16
|
+
*
|
17
|
+
*/
|
18
|
+
export declare class NileCalendar extends NileElement {
|
19
|
+
/**
|
20
|
+
* The styles for NileCalendar
|
21
|
+
* @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`
|
22
|
+
*/
|
23
|
+
static get styles(): CSSResultArray;
|
24
|
+
private currentMonth;
|
25
|
+
private currentYear;
|
26
|
+
dropdown: NileDropdown;
|
27
|
+
dropDownOpened: boolean;
|
28
|
+
value: any;
|
29
|
+
rangeValue: any;
|
30
|
+
valueAttribute: string | null;
|
31
|
+
formattedDate: string | null;
|
32
|
+
startDate: Date | null;
|
33
|
+
endDate: Date | null;
|
34
|
+
isSelectingStart: boolean;
|
35
|
+
range: boolean;
|
36
|
+
valueChanged(): void;
|
37
|
+
updated(changedProperties: PropertyValues): void;
|
38
|
+
static get observedAttributes(): string[];
|
39
|
+
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
40
|
+
initializeValue(): void;
|
41
|
+
connectedCallback(): void;
|
42
|
+
private getDaysArray;
|
43
|
+
private nextMonth;
|
44
|
+
private prevMonth;
|
45
|
+
private selectDate;
|
46
|
+
private confimRange;
|
47
|
+
private renderMonth;
|
48
|
+
private formatDate;
|
49
|
+
private formatDateRange;
|
50
|
+
private handleStartDateInput;
|
51
|
+
private handleEndDateInput;
|
52
|
+
private parseDate;
|
53
|
+
private isValidDateInput;
|
54
|
+
private formatTime;
|
55
|
+
private isValidTimeInput;
|
56
|
+
private parseTime;
|
57
|
+
private handleStartTimeInput;
|
58
|
+
private handleEndTimeInput;
|
59
|
+
/**
|
60
|
+
* Render method
|
61
|
+
* @slot This is a slot test
|
62
|
+
*/
|
63
|
+
render(): TemplateResult;
|
64
|
+
}
|
65
|
+
export default NileCalendar;
|
66
|
+
declare global {
|
67
|
+
interface HTMLElementTagNameMap {
|
68
|
+
'nile-calendar': NileCalendar;
|
69
|
+
}
|
70
|
+
}
|