@base-framework/ui 1.0.215 → 1.0.217
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/dist/{calendar-g937lhWs.js → calendar-Bn55oWBo.js} +2 -2
- package/dist/{empty-state-DX8ih8Tm.js → empty-state-2O1fITpG.js} +1 -1
- package/dist/index.es.js +69 -68
- package/dist/molecules.es.js +2 -2
- package/dist/organisms.es.js +39 -38
- package/dist/{signature-panel-BVYXGRnM.js → signature-panel-Cb3wM-a4.js} +331 -211
- package/dist/types/components/organisms/calendar/range/day-header.d.ts +1 -0
- package/dist/types/components/organisms/calendar/range/days-of-week-header.d.ts +1 -0
- package/dist/types/components/organisms/calendar/range/range-calendar.d.ts +60 -0
- package/dist/types/components/organisms/calendar/range/range-day-cell.d.ts +9 -0
- package/dist/types/components/organisms/calendar/range/range-days-grid.d.ts +3 -0
- package/dist/types/components/organisms/calendar/range/range-toggle.d.ts +7 -0
- package/dist/types/components/organisms/organisms.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function DayHeader(day: string): object;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function DaysOfWeekHeader(): object;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RangeCalendar
|
|
3
|
+
*
|
|
4
|
+
* A calendar component for selecting a start and end date.
|
|
5
|
+
*
|
|
6
|
+
* @class RangeCalendar
|
|
7
|
+
*/
|
|
8
|
+
export class RangeCalendar extends Component {
|
|
9
|
+
/**
|
|
10
|
+
* Initial start ISO date (YYYY-MM-DD).
|
|
11
|
+
* @member {string|null} startDate
|
|
12
|
+
*/
|
|
13
|
+
startDate: any;
|
|
14
|
+
/**
|
|
15
|
+
* Initial end ISO date (YYYY-MM-DD).
|
|
16
|
+
* @member {string|null} endDate
|
|
17
|
+
*/
|
|
18
|
+
endDate: any;
|
|
19
|
+
/**
|
|
20
|
+
* Callback after both dates are chosen.
|
|
21
|
+
* @member {function|null} onRangeSelect
|
|
22
|
+
*/
|
|
23
|
+
onRangeSelect: any;
|
|
24
|
+
/**
|
|
25
|
+
* Block dates before today.
|
|
26
|
+
* @member {boolean} blockPriorDates
|
|
27
|
+
*/
|
|
28
|
+
blockPriorDates: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Initialize reactive data for today and current view.
|
|
31
|
+
*
|
|
32
|
+
* @returns {Data}
|
|
33
|
+
*/
|
|
34
|
+
setData(): Data;
|
|
35
|
+
/**
|
|
36
|
+
* Initialize component state.
|
|
37
|
+
*
|
|
38
|
+
* @returns {{selecting:string,start:string|null,end:string|null}}
|
|
39
|
+
*/
|
|
40
|
+
setupStates(): {
|
|
41
|
+
selecting: string;
|
|
42
|
+
start: string | null;
|
|
43
|
+
end: string | null;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Handle a date cell click.
|
|
47
|
+
*
|
|
48
|
+
* @param {string} isoDate
|
|
49
|
+
* @returns {void}
|
|
50
|
+
*/
|
|
51
|
+
handleClick(isoDate: string): void;
|
|
52
|
+
/**
|
|
53
|
+
* Render the range calendar.
|
|
54
|
+
*
|
|
55
|
+
* @returns {object}
|
|
56
|
+
*/
|
|
57
|
+
render(): object;
|
|
58
|
+
}
|
|
59
|
+
import { Component } from '@base-framework/base';
|
|
60
|
+
import { Data } from '@base-framework/base';
|
|
@@ -9,6 +9,7 @@ export * from "./calendar/week/week-calendar.js";
|
|
|
9
9
|
export * from "./calendar/week/week-cell.js";
|
|
10
10
|
export * from "./calendar/week/week-cells.js";
|
|
11
11
|
export * from "./calendar/week/week-header.js";
|
|
12
|
+
export * from "./calendar/range/range-calendar.js";
|
|
12
13
|
export * from "./calendar/calendar.js";
|
|
13
14
|
export * from "./calendar/utils.js";
|
|
14
15
|
export * from "./lists/checkbox-col.js";
|
package/package.json
CHANGED