@genesislcap/foundation-ui 14.264.3 → 14.264.4
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.
|
@@ -115,11 +115,6 @@ export declare class DatePicker extends FoundationElement {
|
|
|
115
115
|
*/
|
|
116
116
|
disabledDaysOfWeek: number[];
|
|
117
117
|
calendar: Calendar;
|
|
118
|
-
toggleButton: HTMLElement;
|
|
119
|
-
calendarDaysContainer: HTMLElement;
|
|
120
|
-
selectedDayElement: HTMLElement;
|
|
121
|
-
prevBtn: HTMLElement;
|
|
122
|
-
nextBtn: HTMLElement;
|
|
123
118
|
substringNumber: number;
|
|
124
119
|
connectedCallback(): void;
|
|
125
120
|
updateHeaderText(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-picker.d.ts","sourceRoot":"","sources":["../../../src/date-picker/date-picker.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAO/D,OAAO,QAAQ,MAAM,YAAY,CAAC;AAGlC,OAAO,GAAG,MAAM,OAAO,CAAC;AAGxB,eAAO,MAAM,iCAAiC,EAAE,cAA0B,CAAC;AAE3E,eAAO,MAAM,uBAAuB,IAAK,CAAC;AAE1C;;;;GAIG;AACH,qBAAa,UAAW,SAAQ,iBAAiB;IAC/C;;;;;;;;;OASG;IACG,MAAM,SAAgB;IAC5B,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAK1C,IAAI,SAAW;IACf,OAAO,UAAS;IAEtB;;;;;;;;;OASG;IACsD,cAAc,EAAE,OAAO,CAAC;IACjF,qBAAqB;IAIrB;;;;;;;;;OASG;IACoD,YAAY,EAAE,OAAO,CAAC;IAC7E,2BAA2B;IAI3B;;;;;;;;;OASG;IACG,QAAQ,EAAE,QAAQ,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,CAAY;IAE/D;;;;;;;;OAQG;IACG,KAAK,EA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G,KAAK,EAAE,MAAM,CAAC;IACpB;;;;;;;;OAQG;IACG,KAAK,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAU/C;;OAEG;IACS,WAAW,EAAE,GAAG,CAAC;IAC7B;;OAEG;IACS,YAAY,EAAE,MAAM,CAAC;IACjC;;OAEG;IACS,WAAW,EAAE,MAAM,CAAC;IAChC;;OAEG;IACS,uBAAuB,EAAE,MAAM,CAAC;IAC5C;;OAEG;IACS,UAAU,EAAE,MAAM,CAAC;IAE/B;;OAEG;IACS,SAAS,EAAE,GAAG,EAAE,CAAC;IAE7B;;;;;;;;;OASG;IACS,kBAAkB,EAAE,MAAM,EAAE,CAAM;IAClC,QAAQ,EAAE,QAAQ,CAAC;IAC/B,eAAe,EAAE,MAAM,CAAC;IAExB,iBAAiB;IAqBjB,gBAAgB,IAAI,IAAI;IAKxB,cAAc,IAAI,IAAI;IAUtB,gBAAgB,IAAI,IAAI;IASxB,cAAc,CAAC,IAAI,KAAA,GAAG,OAAO;IAI7B,sBAAsB,IAAI,OAAO;IASjC,SAAS,IAAI,IAAI;IAMjB,SAAS,IAAI,IAAI;IAMjB,SAAS,CAAC,GAAG,KAAA,GAAG,IAAI;IAapB,gBAAgB,IAAI,GAAG,EAAE;CAkB1B;AACD;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;qBAM/B,CAAC"}
|
|
@@ -97,9 +97,6 @@ export class DatePicker extends FoundationElement {
|
|
|
97
97
|
this.currentMonth = this.calendar.month.name;
|
|
98
98
|
this.currentYear = this.calendar.year;
|
|
99
99
|
this.formatDate = dayjs(this.currentDate.Date).format(this.format);
|
|
100
|
-
this.toggleButton.addEventListener('click', () => this.toggleCalendar());
|
|
101
|
-
this.prevBtn.addEventListener('click', () => this.prevMonth());
|
|
102
|
-
this.nextBtn.addEventListener('click', () => this.nextMonth());
|
|
103
100
|
this.monthList = this.getMonthDaysGrid();
|
|
104
101
|
}
|
|
105
102
|
updateHeaderText() {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { html, when } from '@microsoft/fast-element';
|
|
2
|
-
import {
|
|
2
|
+
import { repeat } from '@microsoft/fast-element';
|
|
3
3
|
import { classNames } from '@microsoft/fast-web-utilities';
|
|
4
|
-
import { getPrefix } from '../utils
|
|
4
|
+
import { getPrefix } from '../utils';
|
|
5
5
|
const SUNDAY_INDEX = 1;
|
|
6
6
|
const SATURDAY_INDEX = 7;
|
|
7
7
|
const WEEKEND_DAY_INDICES = [SUNDAY_INDEX, SATURDAY_INDEX];
|
|
8
8
|
export const getPrefixedDatePicker = (prefix) => html `
|
|
9
|
-
<${prefix}-text-field data-test-id="date-picker" readonly :value="${(x) => x.formatDate}" part="date-toggle" class="date-toggle" ${
|
|
9
|
+
<${prefix}-text-field data-test-id="date-picker" readonly :value="${(x) => x.formatDate}" part="date-toggle" class="date-toggle" @click="${(x) => x.toggleCalendar()}">
|
|
10
10
|
${(x) => x.label}
|
|
11
11
|
<div class="input-icon-container" part="input-icon-container" slot="end"><${prefix}-icon variant="regular" name="calendar-alt" size="sm"></${prefix}-icon></div>
|
|
12
12
|
</${prefix}-text-field>
|
|
@@ -14,10 +14,10 @@ export const getPrefixedDatePicker = (prefix) => html `
|
|
|
14
14
|
<div class="header">
|
|
15
15
|
<h3>${(x) => x.currentMonth} ${(x) => x.currentYear}</h3>
|
|
16
16
|
<div class="months-arrows">
|
|
17
|
-
<div class="icon-container" ${
|
|
17
|
+
<div class="icon-container" @click="${(x) => x.prevMonth()}">
|
|
18
18
|
<${prefix}-icon name="angle-left" class="prev-month" aria-label="previous month"></${prefix}-icon>
|
|
19
19
|
</div>
|
|
20
|
-
<div class="icon-container" ${
|
|
20
|
+
<div class="icon-container" @click="${(x) => x.nextMonth()}">
|
|
21
21
|
<${prefix}-icon name="angle-right" class="next-month" aria-label="next month"></${prefix}-icon>
|
|
22
22
|
</div>
|
|
23
23
|
</div>
|
|
@@ -36,7 +36,7 @@ export const getPrefixedDatePicker = (prefix) => html `
|
|
|
36
36
|
`)}
|
|
37
37
|
`, { positioning: true })}
|
|
38
38
|
</div>
|
|
39
|
-
<div class="month-days ${(x) => classNames(['hide-weekends', x.hideWeekends])}"
|
|
39
|
+
<div class="month-days ${(x) => classNames(['hide-weekends', x.hideWeekends])}">
|
|
40
40
|
${repeat((x) => x.monthList, html `
|
|
41
41
|
${when((x, ctx) => !ctx.parent.hideWeekends || WEEKEND_DAY_INDICES.indexOf(x.dayNumber) === -1, html `
|
|
42
42
|
<button
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-ui",
|
|
3
3
|
"description": "Genesis Foundation UI",
|
|
4
|
-
"version": "14.264.
|
|
4
|
+
"version": "14.264.4",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -83,13 +83,13 @@
|
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
|
-
"@genesislcap/foundation-testing": "14.264.
|
|
87
|
-
"@genesislcap/genx": "14.264.
|
|
88
|
-
"@genesislcap/rollup-builder": "14.264.
|
|
89
|
-
"@genesislcap/ts-builder": "14.264.
|
|
90
|
-
"@genesislcap/uvu-playwright-builder": "14.264.
|
|
91
|
-
"@genesislcap/vite-builder": "14.264.
|
|
92
|
-
"@genesislcap/webpack-builder": "14.264.
|
|
86
|
+
"@genesislcap/foundation-testing": "14.264.4",
|
|
87
|
+
"@genesislcap/genx": "14.264.4",
|
|
88
|
+
"@genesislcap/rollup-builder": "14.264.4",
|
|
89
|
+
"@genesislcap/ts-builder": "14.264.4",
|
|
90
|
+
"@genesislcap/uvu-playwright-builder": "14.264.4",
|
|
91
|
+
"@genesislcap/vite-builder": "14.264.4",
|
|
92
|
+
"@genesislcap/webpack-builder": "14.264.4",
|
|
93
93
|
"copyfiles": "^2.4.1",
|
|
94
94
|
"rimraf": "^5.0.0",
|
|
95
95
|
"rxjs": "^7.5.4"
|
|
@@ -100,15 +100,15 @@
|
|
|
100
100
|
"@fortawesome/free-regular-svg-icons": "^6.2.1",
|
|
101
101
|
"@fortawesome/free-solid-svg-icons": "^6.2.1",
|
|
102
102
|
"@genesiscommunitysuccess/analyzer-import-alias-plugin": "^5.0.3",
|
|
103
|
-
"@genesislcap/expression-builder": "14.264.
|
|
104
|
-
"@genesislcap/foundation-comms": "14.264.
|
|
105
|
-
"@genesislcap/foundation-criteria": "14.264.
|
|
106
|
-
"@genesislcap/foundation-errors": "14.264.
|
|
107
|
-
"@genesislcap/foundation-events": "14.264.
|
|
108
|
-
"@genesislcap/foundation-logger": "14.264.
|
|
109
|
-
"@genesislcap/foundation-notifications": "14.264.
|
|
110
|
-
"@genesislcap/foundation-user": "14.264.
|
|
111
|
-
"@genesislcap/foundation-utils": "14.264.
|
|
103
|
+
"@genesislcap/expression-builder": "14.264.4",
|
|
104
|
+
"@genesislcap/foundation-comms": "14.264.4",
|
|
105
|
+
"@genesislcap/foundation-criteria": "14.264.4",
|
|
106
|
+
"@genesislcap/foundation-errors": "14.264.4",
|
|
107
|
+
"@genesislcap/foundation-events": "14.264.4",
|
|
108
|
+
"@genesislcap/foundation-logger": "14.264.4",
|
|
109
|
+
"@genesislcap/foundation-notifications": "14.264.4",
|
|
110
|
+
"@genesislcap/foundation-user": "14.264.4",
|
|
111
|
+
"@genesislcap/foundation-utils": "14.264.4",
|
|
112
112
|
"@microsoft/fast-colors": "5.3.1",
|
|
113
113
|
"@microsoft/fast-components": "2.30.6",
|
|
114
114
|
"@microsoft/fast-element": "1.14.0",
|
|
@@ -130,5 +130,5 @@
|
|
|
130
130
|
"access": "public"
|
|
131
131
|
},
|
|
132
132
|
"customElements": "dist/custom-elements.json",
|
|
133
|
-
"gitHead": "
|
|
133
|
+
"gitHead": "ea119114d24437af3279caeea8739538760b018b"
|
|
134
134
|
}
|