@sbb-esta/lyne-elements-dev 5.0.0-next.3-dev.1780486982 → 5.0.0-next.3-dev.1780499181
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/calendar/calendar/calendar.component.js +1 -1
- package/{calendar.component-BM4L9oyb.js → calendar.component-RVAHcJf6.js} +46 -23
- package/calendar.js +1 -1
- package/calendar.pure.js +1 -1
- package/custom-elements.json +38 -2
- package/development/calendar/calendar/calendar.component.d.ts +7 -0
- package/development/calendar/calendar/calendar.component.d.ts.map +1 -1
- package/development/calendar/calendar/calendar.component.js +1 -1
- package/development/calendar.component-BmB8HoZt.js +1399 -0
- package/development/calendar.js +1 -1
- package/development/calendar.pure.js +1 -1
- package/development/header/header/header.component.d.ts +2 -0
- package/development/header/header/header.component.d.ts.map +1 -1
- package/development/header/header/header.component.js +1 -1
- package/development/header.component-FVw_5NRT.js +336 -0
- package/development/header.js +1 -1
- package/development/header.pure.js +1 -1
- package/development/map-container/map-container.component.d.ts +2 -2
- package/development/map-container/map-container.component.js +1 -1
- package/development/map-container.component-ASCfDs-R.js +176 -0
- package/development/map-container.js +1 -1
- package/development/map-container.pure.js +1 -1
- package/header/_header.global.scss +8 -1
- package/header/header/header.component.js +1 -1
- package/{header.component-DgWfgTse.js → header.component-BbdHh5fF.js} +1 -1
- package/header.js +1 -1
- package/header.pure.js +1 -1
- package/lean-off-brand-theme.css +5 -1
- package/lean-safety-theme.css +5 -1
- package/lean-theme.css +5 -1
- package/map-container/map-container.component.js +1 -1
- package/{map-container.component-bI8Gb4I8.js → map-container.component-C2_Miiv0.js} +1 -1
- package/map-container.js +1 -1
- package/map-container.pure.js +1 -1
- package/off-brand-theme.css +5 -1
- package/package.json +2 -2
- package/safety-theme.css +5 -1
- package/standard-theme.css +5 -1
- package/development/calendar.component-C_Yc2PNV.js +0 -1367
- package/development/header.component-B43X03Jg.js +0 -334
- package/development/map-container.component-N-e2oBnd.js +0 -176
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "../../calendar.component-
|
|
1
|
+
import { n as e, r as t, t as n } from "../../calendar.component-RVAHcJf6.js";
|
|
2
2
|
export { n as SbbCalendarElement, e as SbbDateSelectedEvent, t as SbbMonthChangeEvent };
|
|
@@ -31,7 +31,7 @@ var Te = ":host{display:block;width:max-content;max-width:100%;line-height:var(-
|
|
|
31
31
|
}), this._dateSelected = Object.freeze(e);
|
|
32
32
|
}
|
|
33
33
|
}, b = (() => {
|
|
34
|
-
let b = ee(l), x = [], S, C = [], w = [], T,
|
|
34
|
+
let b = ee(l), x = [], S, C = [], w = [], T, E = [], De = [], D, O = [], k = [], A, j = [], M = [], N, P = [], F = [], I, L, R = [], z = [], B, V = [], H = [], U, W, G = [], K = [], q, J = [], Y = [], X, Z = [], Q = [], $, Oe = [], ke = [], Ae, je = [], Me = [];
|
|
35
35
|
return class extends b {
|
|
36
36
|
static {
|
|
37
37
|
let t = typeof Symbol == "function" && Symbol.metadata ? Object.create(b[Symbol.metadata] ?? null) : void 0;
|
|
@@ -39,10 +39,10 @@ var Te = ":host{display:block;width:max-content;max-width:100%;line-height:var(-
|
|
|
39
39
|
u(),
|
|
40
40
|
se((e, t) => e._onMultipleChanged(t)),
|
|
41
41
|
o({ type: Boolean })
|
|
42
|
-
], I = [o()], L = [s()], B = [o({ attribute: "date-filter" })], U = [o({ reflect: !0 })],
|
|
42
|
+
], I = [o()], L = [s()], B = [o({ attribute: "date-filter" })], U = [u(), o({ attribute: "fixed-month" })], W = [o({ reflect: !0 })], q = [u(), o({
|
|
43
43
|
attribute: "week-numbers",
|
|
44
44
|
type: Boolean
|
|
45
|
-
})],
|
|
45
|
+
})], X = [s()], $ = [s()], Ae = [s()], e(this, null, S, {
|
|
46
46
|
kind: "accessor",
|
|
47
47
|
name: "amount",
|
|
48
48
|
static: !1,
|
|
@@ -68,7 +68,7 @@ var Te = ":host{display:block;width:max-content;max-width:100%;line-height:var(-
|
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
70
|
metadata: t
|
|
71
|
-
},
|
|
71
|
+
}, E, De), e(this, null, D, {
|
|
72
72
|
kind: "accessor",
|
|
73
73
|
name: "min",
|
|
74
74
|
static: !1,
|
|
@@ -146,6 +146,18 @@ var Te = ":host{display:block;width:max-content;max-width:100%;line-height:var(-
|
|
|
146
146
|
},
|
|
147
147
|
metadata: t
|
|
148
148
|
}, V, H), e(this, null, U, {
|
|
149
|
+
kind: "setter",
|
|
150
|
+
name: "fixedMonth",
|
|
151
|
+
static: !1,
|
|
152
|
+
private: !1,
|
|
153
|
+
access: {
|
|
154
|
+
has: (e) => "fixedMonth" in e,
|
|
155
|
+
set: (e, t) => {
|
|
156
|
+
e.fixedMonth = t;
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
metadata: t
|
|
160
|
+
}, null, x), e(this, null, W, {
|
|
149
161
|
kind: "accessor",
|
|
150
162
|
name: "orientation",
|
|
151
163
|
static: !1,
|
|
@@ -158,7 +170,7 @@ var Te = ":host{display:block;width:max-content;max-width:100%;line-height:var(-
|
|
|
158
170
|
}
|
|
159
171
|
},
|
|
160
172
|
metadata: t
|
|
161
|
-
},
|
|
173
|
+
}, G, K), e(this, null, q, {
|
|
162
174
|
kind: "accessor",
|
|
163
175
|
name: "weekNumbers",
|
|
164
176
|
static: !1,
|
|
@@ -171,7 +183,7 @@ var Te = ":host{display:block;width:max-content;max-width:100%;line-height:var(-
|
|
|
171
183
|
}
|
|
172
184
|
},
|
|
173
185
|
metadata: t
|
|
174
|
-
},
|
|
186
|
+
}, J, Y), e(this, null, X, {
|
|
175
187
|
kind: "accessor",
|
|
176
188
|
name: "_activeDate",
|
|
177
189
|
static: !1,
|
|
@@ -184,7 +196,7 @@ var Te = ":host{display:block;width:max-content;max-width:100%;line-height:var(-
|
|
|
184
196
|
}
|
|
185
197
|
},
|
|
186
198
|
metadata: t
|
|
187
|
-
},
|
|
199
|
+
}, Z, Q), e(this, null, $, {
|
|
188
200
|
kind: "accessor",
|
|
189
201
|
name: "_calendarView",
|
|
190
202
|
static: !1,
|
|
@@ -210,7 +222,7 @@ var Te = ":host{display:block;width:max-content;max-width:100%;line-height:var(-
|
|
|
210
222
|
}
|
|
211
223
|
},
|
|
212
224
|
metadata: t
|
|
213
|
-
}, je,
|
|
225
|
+
}, je, Me), t && Object.defineProperty(this, Symbol.metadata, {
|
|
214
226
|
enumerable: !0,
|
|
215
227
|
configurable: !0,
|
|
216
228
|
writable: !0,
|
|
@@ -303,6 +315,13 @@ var Te = ":host{display:block;width:max-content;max-width:100%;line-height:var(-
|
|
|
303
315
|
set dateFilter(e) {
|
|
304
316
|
this.#o = e;
|
|
305
317
|
}
|
|
318
|
+
set fixedMonth(e) {
|
|
319
|
+
let t = e ? e.match(/^(\d{4})-(\d{2})$/) : null;
|
|
320
|
+
this._fixedMonth = t ? this._dateAdapter.createDate(Number(t[1]), Number(t[2]), 1) : null;
|
|
321
|
+
}
|
|
322
|
+
get fixedMonth() {
|
|
323
|
+
return this._fixedMonth ? this._dateAdapter.toIso8601(this._fixedMonth).split("-").slice(0, 2).join("-") : "";
|
|
324
|
+
}
|
|
306
325
|
#s;
|
|
307
326
|
get orientation() {
|
|
308
327
|
return this.#s;
|
|
@@ -342,7 +361,7 @@ var Te = ":host{display:block;width:max-content;max-width:100%;line-height:var(-
|
|
|
342
361
|
this.#d = e;
|
|
343
362
|
}
|
|
344
363
|
constructor() {
|
|
345
|
-
super(), this.#e = (t(this, x), t(this, C, 1)), this.#t = (t(this, w), t(this,
|
|
364
|
+
super(), this.#e = (t(this, x), t(this, C, 1)), this.#t = (t(this, w), t(this, E, "day")), this.#n = (t(this, De), t(this, O, null)), this.#r = (t(this, k), t(this, j, null)), this.#i = (t(this, M), t(this, P, !1)), this.#a = (t(this, F), t(this, R, null)), this.#o = (t(this, z), t(this, V, null)), this._fixedMonth = (t(this, H), null), this.#s = t(this, G, "horizontal"), this.#c = (t(this, K), t(this, J, !1)), this._dateAdapter = (t(this, Y), ge().datetime?.dateAdapter ?? oe), this.#l = t(this, Z, this._dateAdapter.today()), this.#u = (t(this, Q), t(this, Oe, "day")), this._weekdays = t(this, ke), this._weeks = [], this._firstVisibleDay = "", this._lastVisibleDay = "", this._monthNames = this._dateAdapter.getMonthNames("long"), this._enhancedVariant = !1, this._resetFocus = !1, this._containingFocus = !1, this._lastSelection = null, this.#d = t(this, je, !1), this._language = (t(this, Me), new te(this).withHandler(() => {
|
|
346
365
|
this._monthNames = this._dateAdapter.getMonthNames("long"), this._createMonthRows();
|
|
347
366
|
})), this._sortDate = (e, t) => this._dateAdapter.compareDate(e, t), this._onSlotChange = () => {
|
|
348
367
|
this._enhancedVariant = Array.from(this.children).some((e) => e.localName === "sbb-calendar-day"), this.toggleState("enhanced", this._enhancedVariant), this._setTabIndex();
|
|
@@ -389,7 +408,7 @@ var Te = ":host{display:block;width:max-content;max-width:100%;line-height:var(-
|
|
|
389
408
|
this._resetFocus = !0, this._focusCell();
|
|
390
409
|
}
|
|
391
410
|
willUpdate(e) {
|
|
392
|
-
super.willUpdate(e), this._initialized && ((e.has("amount") || e.has("orientation")) && this.resetPosition(), e.has("view") && (this._setChosenYear(), this._chosenMonth = void 0, this._calendarView = this.view));
|
|
411
|
+
super.willUpdate(e), this._initialized && ((e.has("amount") || e.has("orientation") || e.has("fixedMonth")) && this.resetPosition(), e.has("view") && (this._setChosenYear(), this._chosenMonth = void 0, this._calendarView = this.view));
|
|
393
412
|
}
|
|
394
413
|
requestUpdate(e, t, n) {
|
|
395
414
|
super.requestUpdate(e, t, n), e === "_calendarView" && (this.internals.states.delete(`view-${t}`), this.internals.states.add(`view-${this._calendarView}`), this._containingFocus && (this._resetFocus = !0));
|
|
@@ -407,12 +426,12 @@ var Te = ":host{display:block;width:max-content;max-width:100%;line-height:var(-
|
|
|
407
426
|
return;
|
|
408
427
|
}
|
|
409
428
|
e && this._assignActiveDate(e);
|
|
410
|
-
let t = this.amount < 1 ? 1 : this.amount;
|
|
411
|
-
this._weeks = Array.from({ length:
|
|
412
|
-
let
|
|
413
|
-
this._firstVisibleDay = this._dateAdapter.toIso8601(this._dateAdapter.createDate(this._dateAdapter.getYear(
|
|
414
|
-
let
|
|
415
|
-
this._lastVisibleDay = this._dateAdapter.toIso8601(this._dateAdapter.createDate(this._dateAdapter.getYear(
|
|
429
|
+
let t = this._fixedMonth ?? this._activeDate, n = this.amount < 1 ? 1 : this.amount;
|
|
430
|
+
this._weeks = Array.from({ length: n }, (e, n) => this._createWeekRows(this._dateAdapter.addCalendarMonths(t, n)));
|
|
431
|
+
let i = this._weeks[0][0][0].dateValue;
|
|
432
|
+
this._firstVisibleDay = this._dateAdapter.toIso8601(this._dateAdapter.createDate(this._dateAdapter.getYear(i), this._dateAdapter.getMonth(i), 1));
|
|
433
|
+
let a = this._weeks[n - 1][0][0].dateValue;
|
|
434
|
+
this._lastVisibleDay = this._dateAdapter.toIso8601(this._dateAdapter.createDate(this._dateAdapter.getYear(a), this._dateAdapter.getMonth(a), this._dateAdapter.getNumDaysInMonth(a))), this._years = this._createYearRows(), this._weekNumbers = this._weeks.map((e) => e.flat().sort((e, t) => e.value.localeCompare(t.value)).map((e) => e.weekValue).filter((e, t, n) => n.indexOf(e) === t)), this._initialized = !0;
|
|
416
435
|
}
|
|
417
436
|
_focusCell() {
|
|
418
437
|
this._resetFocus &&= (this._getFirstFocusable()?.focus(), !1);
|
|
@@ -874,7 +893,7 @@ var Te = ":host{display:block;width:max-content;max-width:100%;line-height:var(-
|
|
|
874
893
|
`;
|
|
875
894
|
}
|
|
876
895
|
_createDayTableControls(e) {
|
|
877
|
-
return [
|
|
896
|
+
return this._fixedMonth ? [] : [
|
|
878
897
|
this._getArrow("left", () => this._goToDifferentMonth(-1), de[this._language.current], this._previousMonthDisabled()),
|
|
879
898
|
this._getArrow("right", () => this._goToDifferentMonth(1), ce[this._language.current], this._nextMonthDisabled()),
|
|
880
899
|
this._getArrow("up", () => {
|
|
@@ -896,9 +915,11 @@ var Te = ":host{display:block;width:max-content;max-width:100%;line-height:var(-
|
|
|
896
915
|
<div class="sbb-calendar__table-wrapper sbb-calendar__month-view">
|
|
897
916
|
<div class="sbb-calendar__table-header">
|
|
898
917
|
<span>${this._chosenYear}</span>
|
|
899
|
-
${this.
|
|
900
|
-
|
|
901
|
-
|
|
918
|
+
${this._fixedMonth ? [] : [
|
|
919
|
+
this._getArrow("left", () => this._goToDifferentYear(-1), fe[this._language.current], this._previousYearDisabled()),
|
|
920
|
+
this._getArrow("right", () => this._goToDifferentYear(1), le[this._language.current], this._nextYearDisabled()),
|
|
921
|
+
this._getArrow("down", () => this._resetCalendarViewAndEmitMonthChange(), d[this._language.current])
|
|
922
|
+
]}
|
|
902
923
|
<span class="sbb-screen-reader-only" role="status">${this._chosenYear}</span>
|
|
903
924
|
</div>
|
|
904
925
|
<table class="sbb-calendar__table">
|
|
@@ -931,9 +952,11 @@ var Te = ":host{display:block;width:max-content;max-width:100%;line-height:var(-
|
|
|
931
952
|
<div class="sbb-calendar__table-wrapper sbb-calendar__year-view">
|
|
932
953
|
<div class="sbb-calendar__table-header">
|
|
933
954
|
<span>${r}</span>
|
|
934
|
-
${this.
|
|
935
|
-
|
|
936
|
-
|
|
955
|
+
${this._fixedMonth ? [] : [
|
|
956
|
+
this._getArrow("left", () => this._goToDifferentYearRange(-24), pe(_)[this._language.current], this._previousYearRangeDisabled()),
|
|
957
|
+
this._getArrow("right", () => this._goToDifferentYearRange(_), ue(_)[this._language.current], this._nextYearRangeDisabled()),
|
|
958
|
+
this._getArrow("down", () => this._resetCalendarViewAndEmitMonthChange(), d[this._language.current])
|
|
959
|
+
]}
|
|
937
960
|
<span class="sbb-screen-reader-only" role="status">${r}</span>
|
|
938
961
|
</div>
|
|
939
962
|
<table class="sbb-calendar__table">
|
package/calendar.js
CHANGED
|
@@ -3,7 +3,7 @@ import { SbbCalendarMonthElement as t } from "./calendar/calendar-month/calendar
|
|
|
3
3
|
import { SbbCalendarYearElement as n } from "./calendar/calendar-year/calendar-year.component.js";
|
|
4
4
|
import { SbbCalendarWeekdayElement as r } from "./calendar/calendar-weekday/calendar-weekday.component.js";
|
|
5
5
|
import { SbbCalendarWeeknumberElement as i } from "./calendar/calendar-weeknumber/calendar-weeknumber.component.js";
|
|
6
|
-
import { n as a, r as o, t as s } from "./calendar.component-
|
|
6
|
+
import { n as a, r as o, t as s } from "./calendar.component-RVAHcJf6.js";
|
|
7
7
|
import { t as c } from "./calendar-cell-base-element-DHCKK3bU.js";
|
|
8
8
|
import "./calendar.pure.js";
|
|
9
9
|
s.define(), e.define(), t.define(), n.define(), r.define(), i.define();
|
package/calendar.pure.js
CHANGED
|
@@ -3,6 +3,6 @@ import { SbbCalendarMonthElement as t } from "./calendar/calendar-month/calendar
|
|
|
3
3
|
import { SbbCalendarYearElement as n } from "./calendar/calendar-year/calendar-year.component.js";
|
|
4
4
|
import { SbbCalendarWeekdayElement as r } from "./calendar/calendar-weekday/calendar-weekday.component.js";
|
|
5
5
|
import { SbbCalendarWeeknumberElement as i } from "./calendar/calendar-weeknumber/calendar-weeknumber.component.js";
|
|
6
|
-
import { n as a, r as o, t as s } from "./calendar.component-
|
|
6
|
+
import { n as a, r as o, t as s } from "./calendar.component-RVAHcJf6.js";
|
|
7
7
|
import { t as c } from "./calendar-cell-base-element-DHCKK3bU.js";
|
|
8
8
|
export { c as SbbCalendarCellBaseElement, e as SbbCalendarDayElement, s as SbbCalendarElement, t as SbbCalendarMonthElement, r as SbbCalendarWeekdayElement, i as SbbCalendarWeeknumberElement, n as SbbCalendarYearElement, a as SbbDateSelectedEvent, o as SbbMonthChangeEvent };
|
package/custom-elements.json
CHANGED
|
@@ -74781,6 +74781,26 @@
|
|
|
74781
74781
|
"description": "A function used to filter out dates.",
|
|
74782
74782
|
"attribute": "date-filter"
|
|
74783
74783
|
},
|
|
74784
|
+
{
|
|
74785
|
+
"kind": "field",
|
|
74786
|
+
"name": "fixedMonth",
|
|
74787
|
+
"privacy": "public",
|
|
74788
|
+
"description": "Set this with the format `YYYY-MM` to limit the calendar to a specific month,\nand prevent navigation to other months.",
|
|
74789
|
+
"type": {
|
|
74790
|
+
"text": "string"
|
|
74791
|
+
},
|
|
74792
|
+
"attribute": "fixed-month",
|
|
74793
|
+
"default": "null"
|
|
74794
|
+
},
|
|
74795
|
+
{
|
|
74796
|
+
"kind": "field",
|
|
74797
|
+
"name": "_fixedMonth",
|
|
74798
|
+
"type": {
|
|
74799
|
+
"text": "T | null"
|
|
74800
|
+
},
|
|
74801
|
+
"privacy": "private",
|
|
74802
|
+
"default": "null"
|
|
74803
|
+
},
|
|
74784
74804
|
{
|
|
74785
74805
|
"kind": "field",
|
|
74786
74806
|
"name": "orientation",
|
|
@@ -76971,6 +76991,14 @@
|
|
|
76971
76991
|
"description": "A function used to filter out dates.",
|
|
76972
76992
|
"fieldName": "dateFilter"
|
|
76973
76993
|
},
|
|
76994
|
+
{
|
|
76995
|
+
"name": "fixed-month",
|
|
76996
|
+
"description": "Set this with the format `YYYY-MM` to limit the calendar to a specific month,\nand prevent navigation to other months.",
|
|
76997
|
+
"type": {
|
|
76998
|
+
"text": "string"
|
|
76999
|
+
},
|
|
77000
|
+
"fieldName": "fixedMonth"
|
|
77001
|
+
},
|
|
76974
77002
|
{
|
|
76975
77003
|
"name": "orientation",
|
|
76976
77004
|
"type": {
|
|
@@ -113708,6 +113736,14 @@
|
|
|
113708
113736
|
"description": "Can be used to modify height of the header.",
|
|
113709
113737
|
"name": "--sbb-header-height",
|
|
113710
113738
|
"default": "zero-small:var(--sbb-spacing-fixed-14x);large-ultra:var(--sbb-spacing-fixed-24x)"
|
|
113739
|
+
},
|
|
113740
|
+
{
|
|
113741
|
+
"description": "Defines the header's padding-block-start. It defaults to the device's safe-area inset to prevent the header from being obscured by display cutouts or system UI elements. This variable must be set on the root document element (`<html>`) so that components relying on the header's height can calculate their layout correctly.",
|
|
113742
|
+
"name": "--sbb-header-padding-block-start:env(safe-area-inset-top, 0)"
|
|
113743
|
+
},
|
|
113744
|
+
{
|
|
113745
|
+
"description": "Readonly; sum of var(--sbb-header-height) and var(--sbb-header-padding-block-start) that can be used to manage spacing of absolute positioned elements that shouldn't overlap the header.",
|
|
113746
|
+
"name": "--sbb-header-vertical-spacing"
|
|
113711
113747
|
}
|
|
113712
113748
|
],
|
|
113713
113749
|
"slots": [
|
|
@@ -125844,7 +125880,7 @@
|
|
|
125844
125880
|
{
|
|
125845
125881
|
"description": "The component comes along with a height calculation that subtracts the height of the header. For specific use cases, this variable can be used to modify the preset height.",
|
|
125846
125882
|
"name": "--sbb-map-container-margin-start",
|
|
125847
|
-
"default": "var(--sbb-header-
|
|
125883
|
+
"default": "var(--sbb-header-vertical-spacing)"
|
|
125848
125884
|
},
|
|
125849
125885
|
{
|
|
125850
125886
|
"description": "Can be used to modify the width of the left sidebar.",
|
|
@@ -125852,7 +125888,7 @@
|
|
|
125852
125888
|
"default": "zero-large:400px;ultra:480px"
|
|
125853
125889
|
},
|
|
125854
125890
|
{
|
|
125855
|
-
"description": "If e.g. a header with a fixed height is placed before the map-container, the map should be sticky respecting this offset from the document's top. Only applied on mobile views. Most commonly it can be set to `var(--sbb-header-
|
|
125891
|
+
"description": "If e.g. a header with a fixed height is placed before the map-container, the map should be sticky respecting this offset from the document's top. Only applied on mobile views. Most commonly it can be set to `var(--sbb-header-vertical-spacing)`.",
|
|
125856
125892
|
"name": "--sbb-map-container-mobile-sticky-block-start",
|
|
125857
125893
|
"default": "0"
|
|
125858
125894
|
}
|
|
@@ -68,6 +68,13 @@ export declare class SbbCalendarElement<T = Date> extends SbbCalendarElement_bas
|
|
|
68
68
|
private accessor _value;
|
|
69
69
|
/** A function used to filter out dates. */
|
|
70
70
|
accessor dateFilter: ((date: T | null) => boolean) | null;
|
|
71
|
+
/**
|
|
72
|
+
* Set this with the format `YYYY-MM` to limit the calendar to a specific month,
|
|
73
|
+
* and prevent navigation to other months.
|
|
74
|
+
*/
|
|
75
|
+
set fixedMonth(value: string);
|
|
76
|
+
get fixedMonth(): string;
|
|
77
|
+
private _fixedMonth;
|
|
71
78
|
/** The orientation of days in the calendar. */
|
|
72
79
|
accessor orientation: 'horizontal' | 'vertical';
|
|
73
80
|
/** Whether it has to display the week numbers in addition to week days. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar.component.d.ts","sourceRoot":"","sources":["../../../../../src/elements/calendar/calendar/calendar.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EAInB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,cAAc,EAEpB,MAAM,KAAK,CAAC;AAIb,OAAO,EAKL,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EAerB,UAAU,EACV,KAAK,cAAc,EAOpB,MAAM,eAAe,CAAC;AAiBvB,qBAAa,mBAAoB,SAAQ,KAAK;IAC5C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAiB;IAExC,IAAW,KAAK,IAAI,SAAS,GAAG,EAAE,CAEjC;gBAEkB,KAAK,EAAE,SAAS,GAAG,EAAE;CAIzC;AAED,qBAAa,oBAAoB,CAAC,CAAC,CAAE,SAAQ,KAAK;IAChD,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAoB;IAElD,IAAW,YAAY,IAAI,QAAQ,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAE3C;gBAEkB,KAAK,EAAE,CAAC,GAAG,CAAC,EAAE;CAIlC;AAqBD,MAAM,WAAW,GAAG,CAAC,CAAC,GAAG,IAAI;IAC3B,0BAA0B;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,CAAC,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CA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AAE,kBAAkB,CAAC;KACpC;IACD,UAAU,mBAAmB;QAC3B,WAAW,EAAE,mBAAmB,CAAC;KAClC;CACF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as SbbDateSelectedEvent, r as SbbMonthChangeEvent, t as SbbCalendarElement } from "../../calendar.component-
|
|
1
|
+
import { n as SbbDateSelectedEvent, r as SbbMonthChangeEvent, t as SbbCalendarElement } from "../../calendar.component-BmB8HoZt.js";
|
|
2
2
|
export { SbbCalendarElement, SbbDateSelectedEvent, SbbMonthChangeEvent };
|