@oiz/stzh-components 2.6.0 → 2.7.0-alpha
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/cjs/{app-globals-4dcdf160.js → app-globals-5dfa53d1.js} +2 -2
- package/dist/cjs/{app-globals-4dcdf160.js.map → app-globals-5dfa53d1.js.map} +1 -1
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/stzh-amount.cjs.entry.js +30 -79
- package/dist/cjs/stzh-amount.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-components.cjs.js +2 -2
- package/dist/cjs/stzh-datepicker_3.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-dropdown.cjs.entry.js +60 -25
- package/dist/cjs/stzh-dropdown.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-monthyearpicker.cjs.entry.js +191 -0
- package/dist/cjs/stzh-monthyearpicker.cjs.entry.js.map +1 -0
- package/dist/cjs/stzh-skin-portal-mitwirken.cjs.entry.js +1 -1
- package/dist/cjs/stzh-skin-portal-mitwirken.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-timepicker.cjs.entry.js +82 -0
- package/dist/cjs/stzh-timepicker.cjs.entry.js.map +1 -0
- package/dist/cjs/translation-utils-73073e44.js.map +1 -1
- package/dist/collection/assets/i18n/de.json +10 -7
- package/dist/collection/assets/i18n/en.json +8 -5
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/stzh-amount/stzh-amount.js +32 -85
- package/dist/collection/components/stzh-amount/stzh-amount.js.map +1 -1
- package/dist/collection/components/stzh-amount/stzh-amount.localization.js.map +1 -1
- package/dist/collection/components/stzh-amount/stzh-amount.stories.js +1 -1
- package/dist/collection/components/stzh-datepicker/stzh-datepicker.js +1 -1
- package/dist/collection/components/stzh-datepicker/stzh-datepicker.js.map +1 -1
- package/dist/collection/components/stzh-datepicker/stzh-datepicker.stories.js +3 -0
- package/dist/collection/components/stzh-dropdown/stzh-dropdown.css +32 -20
- package/dist/collection/components/stzh-dropdown/stzh-dropdown.js +40 -9
- package/dist/collection/components/stzh-dropdown/stzh-dropdown.js.map +1 -1
- package/dist/collection/components/stzh-monthyearpicker/stzh-monthyearpicker.css +123 -0
- package/dist/collection/components/stzh-monthyearpicker/stzh-monthyearpicker.js +724 -0
- package/dist/collection/components/stzh-monthyearpicker/stzh-monthyearpicker.js.map +1 -0
- package/dist/collection/components/stzh-monthyearpicker/stzh-monthyearpicker.localization.js +2 -0
- package/dist/collection/components/stzh-monthyearpicker/stzh-monthyearpicker.localization.js.map +1 -0
- package/dist/collection/components/stzh-monthyearpicker/stzh-monthyearpicker.stories.js +61 -0
- package/dist/collection/components/stzh-skin-portal-mitwirken/stzh-skin-portal-mitwirken.css +1 -1
- package/dist/collection/components/stzh-timepicker/stzh-timepicker.css +109 -0
- package/dist/collection/components/stzh-timepicker/stzh-timepicker.js +438 -0
- package/dist/collection/components/stzh-timepicker/stzh-timepicker.js.map +1 -0
- package/dist/collection/components/stzh-timepicker/stzh-timepicker.localization.js +2 -0
- package/dist/collection/components/stzh-timepicker/stzh-timepicker.localization.js.map +1 -0
- package/dist/collection/components/stzh-timepicker/stzh-timepicker.stories.js +45 -0
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/libraries/tom-select/cjs/tom-select.complete.js +47 -18
- package/dist/collection/libraries/tom-select/cjs/tom-select.js +47 -18
- package/dist/collection/libraries/tom-select/cjs/tom-select.popular.js +47 -18
- package/dist/collection/libraries/tom-select/esm/tom-select.complete.js +47 -18
- package/dist/collection/libraries/tom-select/esm/tom-select.js +47 -18
- package/dist/collection/libraries/tom-select/esm/tom-select.popular.js +47 -18
- package/dist/collection/libraries/tom-select/js/tom-select.base.js +47 -18
- package/dist/collection/libraries/tom-select/js/tom-select.base.min.js +16 -17
- package/dist/collection/libraries/tom-select/js/tom-select.complete.js +47 -18
- package/dist/collection/libraries/tom-select/js/tom-select.complete.min.js +12 -13
- package/dist/collection/libraries/tom-select/js/tom-select.popular.js +47 -18
- package/dist/collection/libraries/tom-select/js/tom-select.popular.min.js +21 -22
- package/dist/collection/utils/translation-utils.js.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js.map +1 -1
- package/dist/components/stzh-amount.js +40 -83
- package/dist/components/stzh-amount.js.map +1 -1
- package/dist/components/stzh-buttongroup.js +1 -31
- package/dist/components/stzh-buttongroup.js.map +1 -1
- package/dist/components/stzh-buttongroup2.js +35 -0
- package/dist/components/stzh-buttongroup2.js.map +1 -0
- package/dist/components/stzh-datepicker2.js.map +1 -1
- package/dist/components/stzh-dropdown2.js +61 -25
- package/dist/components/stzh-dropdown2.js.map +1 -1
- package/dist/components/stzh-monthyearpicker.d.ts +11 -0
- package/dist/components/stzh-monthyearpicker.js +251 -0
- package/dist/components/stzh-monthyearpicker.js.map +1 -0
- package/dist/components/stzh-skin-portal-mitwirken.js +1 -1
- package/dist/components/stzh-skin-portal-mitwirken.js.map +1 -1
- package/dist/components/stzh-timepicker.d.ts +11 -0
- package/dist/components/stzh-timepicker.js +132 -0
- package/dist/components/stzh-timepicker.js.map +1 -0
- package/dist/components/translation-utils.js.map +1 -1
- package/dist/esm/{app-globals-91875913.js → app-globals-862dc6d0.js} +2 -2
- package/dist/esm/{app-globals-91875913.js.map → app-globals-862dc6d0.js.map} +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/stzh-amount.entry.js +30 -79
- package/dist/esm/stzh-amount.entry.js.map +1 -1
- package/dist/esm/stzh-components.js +2 -2
- package/dist/esm/stzh-datepicker_3.entry.js.map +1 -1
- package/dist/esm/stzh-dropdown.entry.js +60 -25
- package/dist/esm/stzh-dropdown.entry.js.map +1 -1
- package/dist/esm/stzh-monthyearpicker.entry.js +187 -0
- package/dist/esm/stzh-monthyearpicker.entry.js.map +1 -0
- package/dist/esm/stzh-skin-portal-mitwirken.entry.js +1 -1
- package/dist/esm/stzh-skin-portal-mitwirken.entry.js.map +1 -1
- package/dist/esm/stzh-timepicker.entry.js +78 -0
- package/dist/esm/stzh-timepicker.entry.js.map +1 -0
- package/dist/esm/translation-utils-2623783f.js.map +1 -1
- package/dist/esm-es5/{app-globals-91875913.js → app-globals-862dc6d0.js} +2 -2
- package/dist/esm-es5/{app-globals-91875913.js.map → app-globals-862dc6d0.js.map} +1 -1
- package/dist/esm-es5/index.js.map +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/loader.js.map +1 -1
- package/dist/esm-es5/stzh-amount.entry.js +1 -1
- package/dist/esm-es5/stzh-amount.entry.js.map +1 -1
- package/dist/esm-es5/stzh-components.js +1 -1
- package/dist/esm-es5/stzh-components.js.map +1 -1
- package/dist/esm-es5/stzh-datepicker_3.entry.js.map +1 -1
- package/dist/esm-es5/stzh-dropdown.entry.js +2 -2
- package/dist/esm-es5/stzh-dropdown.entry.js.map +1 -1
- package/dist/esm-es5/stzh-monthyearpicker.entry.js +2 -0
- package/dist/esm-es5/stzh-monthyearpicker.entry.js.map +1 -0
- package/dist/esm-es5/stzh-skin-portal-mitwirken.entry.js +1 -1
- package/dist/esm-es5/stzh-skin-portal-mitwirken.entry.js.map +1 -1
- package/dist/esm-es5/stzh-timepicker.entry.js +2 -0
- package/dist/esm-es5/stzh-timepicker.entry.js.map +1 -0
- package/dist/esm-es5/translation-utils-2623783f.js.map +1 -1
- package/dist/stzh-components/assets/i18n/de.json +10 -7
- package/dist/stzh-components/assets/i18n/en.json +8 -5
- package/dist/stzh-components/index.esm.js.map +1 -1
- package/dist/stzh-components/p-14e782cb.entry.js +2 -0
- package/dist/stzh-components/{p-85504842.entry.js.map → p-14e782cb.entry.js.map} +1 -1
- package/dist/stzh-components/p-1678e09c.system.js +2 -0
- package/dist/stzh-components/{p-3e10addb.system.js.map → p-1678e09c.system.js.map} +1 -1
- package/dist/stzh-components/p-25a09313.js.map +1 -1
- package/dist/stzh-components/{p-61b66e55.system.js → p-3b4833a0.system.js} +2 -2
- package/dist/stzh-components/{p-61b66e55.system.js.map → p-3b4833a0.system.js.map} +1 -1
- package/dist/stzh-components/p-51f1714c.system.entry.js +2 -0
- package/dist/stzh-components/p-51f1714c.system.entry.js.map +1 -0
- package/dist/stzh-components/p-5aa96b49.system.entry.js +2 -0
- package/dist/stzh-components/p-5aa96b49.system.entry.js.map +1 -0
- package/dist/stzh-components/p-82e886d4.entry.js.map +1 -1
- package/dist/stzh-components/p-9f31cf7d.entry.js +2 -0
- package/dist/stzh-components/p-9f31cf7d.entry.js.map +1 -0
- package/dist/stzh-components/p-9fe69be8.system.entry.js +2 -0
- package/dist/stzh-components/{p-479a02fb.system.entry.js.map → p-9fe69be8.system.entry.js.map} +1 -1
- package/dist/stzh-components/p-a408bfba.system.js.map +1 -1
- package/dist/stzh-components/p-ad33db31.entry.js +2 -0
- package/dist/stzh-components/p-ad33db31.entry.js.map +1 -0
- package/dist/stzh-components/p-b5cda655.entry.js +2 -0
- package/dist/stzh-components/p-b5cda655.entry.js.map +1 -0
- package/dist/stzh-components/{p-362af013.js → p-bc82ed48.js} +2 -2
- package/dist/stzh-components/{p-362af013.js.map → p-bc82ed48.js.map} +1 -1
- package/dist/stzh-components/p-c0f971f2.entry.js +9 -0
- package/dist/stzh-components/p-c0f971f2.entry.js.map +1 -0
- package/dist/stzh-components/p-c901fe72.system.entry.js +9 -0
- package/dist/stzh-components/p-c901fe72.system.entry.js.map +1 -0
- package/dist/stzh-components/p-e8545386.system.entry.js +2 -0
- package/dist/stzh-components/p-e8545386.system.entry.js.map +1 -0
- package/dist/stzh-components/p-eaa65f52.system.js.map +1 -1
- package/dist/stzh-components/p-f2d74491.system.entry.js.map +1 -1
- package/dist/stzh-components/stzh-components.css +1 -1
- package/dist/stzh-components/stzh-components.esm.js +1 -1
- package/dist/stzh-components/stzh-components.esm.js.map +1 -1
- package/dist/stzh-components/stzh-components.js +1 -1
- package/dist/types/components/stzh-amount/stzh-amount.localization.d.ts +0 -2
- package/dist/types/components/stzh-monthyearpicker/stzh-monthyearpicker.localization.d.ts +5 -0
- package/dist/types/components/stzh-timepicker/stzh-timepicker.localization.d.ts +2 -0
- package/dist/types/components.d.ts +428 -6
- package/dist/types/index.d.ts +14 -0
- package/dist/types/utils/translation-utils.d.ts +1 -0
- package/dist/vscode-data.json +263 -1
- package/package.json +1 -1
- package/dist/stzh-components/p-1cc48f98.entry.js +0 -9
- package/dist/stzh-components/p-1cc48f98.entry.js.map +0 -1
- package/dist/stzh-components/p-3e10addb.system.js +0 -2
- package/dist/stzh-components/p-479a02fb.system.entry.js +0 -2
- package/dist/stzh-components/p-67b11b03.system.entry.js +0 -2
- package/dist/stzh-components/p-67b11b03.system.entry.js.map +0 -1
- package/dist/stzh-components/p-6bb83b30.system.entry.js +0 -9
- package/dist/stzh-components/p-6bb83b30.system.entry.js.map +0 -1
- package/dist/stzh-components/p-85504842.entry.js +0 -2
- package/dist/stzh-components/p-c94f7331.entry.js +0 -2
- package/dist/stzh-components/p-c94f7331.entry.js.map +0 -1
|
@@ -0,0 +1,724 @@
|
|
|
1
|
+
import { Host, h, } from "@stencil/core";
|
|
2
|
+
import { fetchTranslations } from "../../utils/translation-utils";
|
|
3
|
+
/**
|
|
4
|
+
*/
|
|
5
|
+
export class StzhMonthyearpicker {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.onRootFocus = () => {
|
|
8
|
+
if (this.monthsDropdown) {
|
|
9
|
+
this.monthsDropdown.setFocus();
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
this.onMonthsDropdownChange = (event) => {
|
|
13
|
+
const year = this.value.split("-")[0] || "0000";
|
|
14
|
+
const month = event.detail.value || "00";
|
|
15
|
+
this.onChange(year, month);
|
|
16
|
+
};
|
|
17
|
+
this.onYearsDropdownChange = (event) => {
|
|
18
|
+
const year = event.detail.value || "0000";
|
|
19
|
+
const month = this.value.split("-")[1] || "00";
|
|
20
|
+
this.onChange(year, month);
|
|
21
|
+
};
|
|
22
|
+
this.months = undefined;
|
|
23
|
+
this.years = undefined;
|
|
24
|
+
this.min = undefined;
|
|
25
|
+
this.max = undefined;
|
|
26
|
+
this.minYear = undefined;
|
|
27
|
+
this.maxYear = undefined;
|
|
28
|
+
this.format = "default";
|
|
29
|
+
this.name = "";
|
|
30
|
+
this.value = "0000-00";
|
|
31
|
+
this.popoverPlacement = "bottom";
|
|
32
|
+
this.monthLabel = "";
|
|
33
|
+
this.yearLabel = "";
|
|
34
|
+
this.readonly = false;
|
|
35
|
+
this.disabled = false;
|
|
36
|
+
this.required = false;
|
|
37
|
+
this.showMarker = false;
|
|
38
|
+
this.size = "default";
|
|
39
|
+
this.descriptionMonth = undefined;
|
|
40
|
+
this.descriptionYear = undefined;
|
|
41
|
+
this.descriptionLongMonth = undefined;
|
|
42
|
+
this.descriptionLongYear = undefined;
|
|
43
|
+
this.errorMonth = undefined;
|
|
44
|
+
this.errorYear = undefined;
|
|
45
|
+
this.invalidMonth = false;
|
|
46
|
+
this.invalidYear = false;
|
|
47
|
+
this.a11yDescribedbyMonth = "";
|
|
48
|
+
this.a11yDescribedbyYear = "";
|
|
49
|
+
this.localization = undefined;
|
|
50
|
+
}
|
|
51
|
+
monthsWatcher(newValue) {
|
|
52
|
+
if (typeof newValue === "string") {
|
|
53
|
+
this._months = JSON.parse(newValue);
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
this._months = newValue;
|
|
57
|
+
}
|
|
58
|
+
this.updateMonthOptions();
|
|
59
|
+
}
|
|
60
|
+
yearsWatcher(newValue) {
|
|
61
|
+
if (typeof newValue === "string") {
|
|
62
|
+
this._years = JSON.parse(newValue);
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
this._years = newValue;
|
|
66
|
+
}
|
|
67
|
+
this.updateYearOptions();
|
|
68
|
+
}
|
|
69
|
+
minMaxWatcher() {
|
|
70
|
+
this.updateMonthOptions();
|
|
71
|
+
this.updateYearOptions();
|
|
72
|
+
}
|
|
73
|
+
onChange(year, month) {
|
|
74
|
+
this.value = `${year}-${month}`;
|
|
75
|
+
this.stzhChange.emit({
|
|
76
|
+
component: "stzh-monthyearpicker",
|
|
77
|
+
value: this.value,
|
|
78
|
+
valueMonth: month,
|
|
79
|
+
valueYear: year
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
updateMonthOptions() {
|
|
83
|
+
const options = [];
|
|
84
|
+
let months = [];
|
|
85
|
+
if (this._months) {
|
|
86
|
+
months = this._months;
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
const currentYear = Number(this.value.split("-")[0] || "0000");
|
|
90
|
+
let minMonth = 1;
|
|
91
|
+
let maxMonth = 12;
|
|
92
|
+
if (this.min) {
|
|
93
|
+
const minDate = new Date(this.min);
|
|
94
|
+
if (currentYear === minDate.getFullYear()) {
|
|
95
|
+
minMonth = minDate.getMonth() + 1;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
if (this.max) {
|
|
99
|
+
const maxDate = new Date(this.max);
|
|
100
|
+
if (currentYear === maxDate.getFullYear()) {
|
|
101
|
+
maxMonth = maxDate.getMonth() + 1;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
for (let i = minMonth; i <= maxMonth; i++) {
|
|
105
|
+
months.push(i);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
months.forEach((month) => {
|
|
109
|
+
const paddedMonth = ("00" + month).slice(-2);
|
|
110
|
+
const monthName = this.localization.$globals.monthNames[month - 1];
|
|
111
|
+
options.push({
|
|
112
|
+
text: this.format === "creditcard"
|
|
113
|
+
? `${paddedMonth} (${monthName})`
|
|
114
|
+
: monthName,
|
|
115
|
+
value: paddedMonth
|
|
116
|
+
});
|
|
117
|
+
});
|
|
118
|
+
this.dropdownMonthOptions = options;
|
|
119
|
+
}
|
|
120
|
+
updateYearOptions() {
|
|
121
|
+
const options = [];
|
|
122
|
+
let years = [];
|
|
123
|
+
if (this._years) {
|
|
124
|
+
years = this._years;
|
|
125
|
+
}
|
|
126
|
+
else {
|
|
127
|
+
const currentMonth = Number(this.value.split("-")[1] || "00");
|
|
128
|
+
const yearNow = new Date().getFullYear();
|
|
129
|
+
let minYear = this.minYear || (yearNow - 10);
|
|
130
|
+
let maxYear = this.maxYear || (yearNow + 10);
|
|
131
|
+
if (this.min) {
|
|
132
|
+
const minDate = new Date(this.min);
|
|
133
|
+
if (currentMonth && currentMonth < minDate.getMonth() + 1) {
|
|
134
|
+
minYear = minDate.getFullYear() + 1;
|
|
135
|
+
}
|
|
136
|
+
else {
|
|
137
|
+
minYear = minDate.getFullYear();
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
if (this.max) {
|
|
141
|
+
const maxDate = new Date(this.max);
|
|
142
|
+
if (currentMonth && currentMonth > maxDate.getMonth() + 1) {
|
|
143
|
+
maxYear = maxDate.getFullYear() - 1;
|
|
144
|
+
}
|
|
145
|
+
else {
|
|
146
|
+
maxYear = maxDate.getFullYear();
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
for (let i = minYear; i <= maxYear; i++) {
|
|
150
|
+
years.push(i);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
years.forEach((year) => {
|
|
154
|
+
options.push({ text: year, value: year });
|
|
155
|
+
});
|
|
156
|
+
this.dropdownYearOptions = options;
|
|
157
|
+
}
|
|
158
|
+
async componentWillLoad() {
|
|
159
|
+
if (!this.localization) {
|
|
160
|
+
this.localization = await fetchTranslations(this.element, "monthyearpicker");
|
|
161
|
+
}
|
|
162
|
+
this.monthsWatcher(this.months);
|
|
163
|
+
this.yearsWatcher(this.years);
|
|
164
|
+
}
|
|
165
|
+
render() {
|
|
166
|
+
const classes = {
|
|
167
|
+
"stzh-monthyearpicker": true
|
|
168
|
+
};
|
|
169
|
+
return (h(Host, { tabindex: this.disabled ? null : "-1", onFocus: this.onRootFocus }, h("div", { class: classes }, h("input", { type: "hidden", name: this.name, value: this.value }), h("div", { class: "stzh-monthyearpicker__wrapper" }, h("stzh-dropdown", { name: `${this.name}-month`, class: "stzh-monthyearpicker__months-dropdown", label: this.monthLabel || this.localization.monthLabel, ref: (el) => (this.monthsDropdown = el), onStzhChange: this.onMonthsDropdownChange, options: this.dropdownMonthOptions, items: [this.value.split("-")[1]], required: this.required, disabled: this.disabled, size: this.size, showMarker: this.showMarker, popoverPlacement: this.popoverPlacement, description: this.descriptionMonth, descriptionLong: this.descriptionLongMonth, error: this.errorMonth, a11yDescribedby: this.a11yDescribedbyMonth, invalid: this.invalidMonth }), h("div", { class: "stzh-monthyearpicker__separator" }, "/"), h("stzh-dropdown", { name: `${this.name}-year`, class: "stzh-monthyearpicker__years-dropdown", label: this.yearLabel || this.localization.yearLabel, onStzhChange: this.onYearsDropdownChange, options: this.dropdownYearOptions, items: [this.value.split("-")[0]], required: this.required, disabled: this.disabled, size: this.size, showMarker: this.showMarker, popoverPlacement: this.popoverPlacement, description: this.descriptionYear, descriptionLong: this.descriptionLongYear, error: this.errorYear, a11yDescribedby: this.a11yDescribedbyYear, invalid: this.invalidYear })))));
|
|
170
|
+
}
|
|
171
|
+
static get is() { return "stzh-monthyearpicker"; }
|
|
172
|
+
static get encapsulation() { return "scoped"; }
|
|
173
|
+
static get originalStyleUrls() {
|
|
174
|
+
return {
|
|
175
|
+
"$": ["stzh-monthyearpicker.scss"]
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
static get styleUrls() {
|
|
179
|
+
return {
|
|
180
|
+
"$": ["stzh-monthyearpicker.css"]
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
static get properties() {
|
|
184
|
+
return {
|
|
185
|
+
"months": {
|
|
186
|
+
"type": "string",
|
|
187
|
+
"mutable": false,
|
|
188
|
+
"complexType": {
|
|
189
|
+
"original": "number[] | string",
|
|
190
|
+
"resolved": "number[] | string",
|
|
191
|
+
"references": {}
|
|
192
|
+
},
|
|
193
|
+
"required": false,
|
|
194
|
+
"optional": false,
|
|
195
|
+
"docs": {
|
|
196
|
+
"tags": [],
|
|
197
|
+
"text": "Set which months to show (overwrites months from min/max)"
|
|
198
|
+
},
|
|
199
|
+
"attribute": "months",
|
|
200
|
+
"reflect": false
|
|
201
|
+
},
|
|
202
|
+
"years": {
|
|
203
|
+
"type": "string",
|
|
204
|
+
"mutable": false,
|
|
205
|
+
"complexType": {
|
|
206
|
+
"original": "number[] | string",
|
|
207
|
+
"resolved": "number[] | string",
|
|
208
|
+
"references": {}
|
|
209
|
+
},
|
|
210
|
+
"required": false,
|
|
211
|
+
"optional": false,
|
|
212
|
+
"docs": {
|
|
213
|
+
"tags": [],
|
|
214
|
+
"text": "Set which years to show (overwrites years from min/max)"
|
|
215
|
+
},
|
|
216
|
+
"attribute": "years",
|
|
217
|
+
"reflect": false
|
|
218
|
+
},
|
|
219
|
+
"min": {
|
|
220
|
+
"type": "string",
|
|
221
|
+
"mutable": false,
|
|
222
|
+
"complexType": {
|
|
223
|
+
"original": "string",
|
|
224
|
+
"resolved": "string",
|
|
225
|
+
"references": {}
|
|
226
|
+
},
|
|
227
|
+
"required": false,
|
|
228
|
+
"optional": false,
|
|
229
|
+
"docs": {
|
|
230
|
+
"tags": [],
|
|
231
|
+
"text": "Minimum month and year allowed to be picked in `YYYY-MM` format.\nThis setting can be used alone or together with the `max` property."
|
|
232
|
+
},
|
|
233
|
+
"attribute": "min",
|
|
234
|
+
"reflect": false
|
|
235
|
+
},
|
|
236
|
+
"max": {
|
|
237
|
+
"type": "string",
|
|
238
|
+
"mutable": false,
|
|
239
|
+
"complexType": {
|
|
240
|
+
"original": "string",
|
|
241
|
+
"resolved": "string",
|
|
242
|
+
"references": {}
|
|
243
|
+
},
|
|
244
|
+
"required": false,
|
|
245
|
+
"optional": false,
|
|
246
|
+
"docs": {
|
|
247
|
+
"tags": [],
|
|
248
|
+
"text": "Maximum month and year allowed to be picked in `YYYY-MM` format.\nThis setting can be used alone or together with the `min` property."
|
|
249
|
+
},
|
|
250
|
+
"attribute": "max",
|
|
251
|
+
"reflect": false
|
|
252
|
+
},
|
|
253
|
+
"minYear": {
|
|
254
|
+
"type": "number",
|
|
255
|
+
"mutable": false,
|
|
256
|
+
"complexType": {
|
|
257
|
+
"original": "number",
|
|
258
|
+
"resolved": "number",
|
|
259
|
+
"references": {}
|
|
260
|
+
},
|
|
261
|
+
"required": false,
|
|
262
|
+
"optional": false,
|
|
263
|
+
"docs": {
|
|
264
|
+
"tags": [],
|
|
265
|
+
"text": "Minimum year (will be overwritten if `min` is used).\nThis setting can be used alone or together with the `maxYear` property."
|
|
266
|
+
},
|
|
267
|
+
"attribute": "min-year",
|
|
268
|
+
"reflect": false
|
|
269
|
+
},
|
|
270
|
+
"maxYear": {
|
|
271
|
+
"type": "number",
|
|
272
|
+
"mutable": false,
|
|
273
|
+
"complexType": {
|
|
274
|
+
"original": "number",
|
|
275
|
+
"resolved": "number",
|
|
276
|
+
"references": {}
|
|
277
|
+
},
|
|
278
|
+
"required": false,
|
|
279
|
+
"optional": false,
|
|
280
|
+
"docs": {
|
|
281
|
+
"tags": [],
|
|
282
|
+
"text": "Maximum year (will be overwritten if `max` is used).\nThis setting can be used alone or together with the `minYear` property."
|
|
283
|
+
},
|
|
284
|
+
"attribute": "max-year",
|
|
285
|
+
"reflect": false
|
|
286
|
+
},
|
|
287
|
+
"format": {
|
|
288
|
+
"type": "string",
|
|
289
|
+
"mutable": false,
|
|
290
|
+
"complexType": {
|
|
291
|
+
"original": "\"default\" | \"creditcard\"",
|
|
292
|
+
"resolved": "\"creditcard\" | \"default\"",
|
|
293
|
+
"references": {}
|
|
294
|
+
},
|
|
295
|
+
"required": false,
|
|
296
|
+
"optional": false,
|
|
297
|
+
"docs": {
|
|
298
|
+
"tags": [],
|
|
299
|
+
"text": "Picker format."
|
|
300
|
+
},
|
|
301
|
+
"attribute": "format",
|
|
302
|
+
"reflect": true,
|
|
303
|
+
"defaultValue": "\"default\""
|
|
304
|
+
},
|
|
305
|
+
"name": {
|
|
306
|
+
"type": "string",
|
|
307
|
+
"mutable": false,
|
|
308
|
+
"complexType": {
|
|
309
|
+
"original": "string",
|
|
310
|
+
"resolved": "string",
|
|
311
|
+
"references": {}
|
|
312
|
+
},
|
|
313
|
+
"required": false,
|
|
314
|
+
"optional": false,
|
|
315
|
+
"docs": {
|
|
316
|
+
"tags": [],
|
|
317
|
+
"text": "Name of the hidden date picker input."
|
|
318
|
+
},
|
|
319
|
+
"attribute": "name",
|
|
320
|
+
"reflect": true,
|
|
321
|
+
"defaultValue": "\"\""
|
|
322
|
+
},
|
|
323
|
+
"value": {
|
|
324
|
+
"type": "string",
|
|
325
|
+
"mutable": true,
|
|
326
|
+
"complexType": {
|
|
327
|
+
"original": "string",
|
|
328
|
+
"resolved": "string",
|
|
329
|
+
"references": {}
|
|
330
|
+
},
|
|
331
|
+
"required": false,
|
|
332
|
+
"optional": false,
|
|
333
|
+
"docs": {
|
|
334
|
+
"tags": [],
|
|
335
|
+
"text": "Value of hidden input (current selected year and month YYYY-MM)."
|
|
336
|
+
},
|
|
337
|
+
"attribute": "value",
|
|
338
|
+
"reflect": false,
|
|
339
|
+
"defaultValue": "\"0000-00\""
|
|
340
|
+
},
|
|
341
|
+
"popoverPlacement": {
|
|
342
|
+
"type": "string",
|
|
343
|
+
"mutable": false,
|
|
344
|
+
"complexType": {
|
|
345
|
+
"original": "\"bottom\" | \"bottom-end\" | \"bottom-center\" | \"top\" | \"top-end\" | \"top-center\"",
|
|
346
|
+
"resolved": "\"bottom\" | \"bottom-center\" | \"bottom-end\" | \"top\" | \"top-center\" | \"top-end\"",
|
|
347
|
+
"references": {}
|
|
348
|
+
},
|
|
349
|
+
"required": false,
|
|
350
|
+
"optional": false,
|
|
351
|
+
"docs": {
|
|
352
|
+
"tags": [],
|
|
353
|
+
"text": "Popover placement for the dropdown (if applicable)"
|
|
354
|
+
},
|
|
355
|
+
"attribute": "popover-placement",
|
|
356
|
+
"reflect": true,
|
|
357
|
+
"defaultValue": "\"bottom\""
|
|
358
|
+
},
|
|
359
|
+
"monthLabel": {
|
|
360
|
+
"type": "string",
|
|
361
|
+
"mutable": false,
|
|
362
|
+
"complexType": {
|
|
363
|
+
"original": "string",
|
|
364
|
+
"resolved": "string",
|
|
365
|
+
"references": {}
|
|
366
|
+
},
|
|
367
|
+
"required": false,
|
|
368
|
+
"optional": false,
|
|
369
|
+
"docs": {
|
|
370
|
+
"tags": [],
|
|
371
|
+
"text": "Month dropdown label"
|
|
372
|
+
},
|
|
373
|
+
"attribute": "month-label",
|
|
374
|
+
"reflect": false,
|
|
375
|
+
"defaultValue": "\"\""
|
|
376
|
+
},
|
|
377
|
+
"yearLabel": {
|
|
378
|
+
"type": "string",
|
|
379
|
+
"mutable": false,
|
|
380
|
+
"complexType": {
|
|
381
|
+
"original": "string",
|
|
382
|
+
"resolved": "string",
|
|
383
|
+
"references": {}
|
|
384
|
+
},
|
|
385
|
+
"required": false,
|
|
386
|
+
"optional": false,
|
|
387
|
+
"docs": {
|
|
388
|
+
"tags": [],
|
|
389
|
+
"text": "Year dropdown label"
|
|
390
|
+
},
|
|
391
|
+
"attribute": "year-label",
|
|
392
|
+
"reflect": false,
|
|
393
|
+
"defaultValue": "\"\""
|
|
394
|
+
},
|
|
395
|
+
"readonly": {
|
|
396
|
+
"type": "boolean",
|
|
397
|
+
"mutable": false,
|
|
398
|
+
"complexType": {
|
|
399
|
+
"original": "boolean",
|
|
400
|
+
"resolved": "boolean",
|
|
401
|
+
"references": {}
|
|
402
|
+
},
|
|
403
|
+
"required": false,
|
|
404
|
+
"optional": false,
|
|
405
|
+
"docs": {
|
|
406
|
+
"tags": [],
|
|
407
|
+
"text": "Whether the element is readonly or not"
|
|
408
|
+
},
|
|
409
|
+
"attribute": "readonly",
|
|
410
|
+
"reflect": true,
|
|
411
|
+
"defaultValue": "false"
|
|
412
|
+
},
|
|
413
|
+
"disabled": {
|
|
414
|
+
"type": "boolean",
|
|
415
|
+
"mutable": false,
|
|
416
|
+
"complexType": {
|
|
417
|
+
"original": "boolean",
|
|
418
|
+
"resolved": "boolean",
|
|
419
|
+
"references": {}
|
|
420
|
+
},
|
|
421
|
+
"required": false,
|
|
422
|
+
"optional": false,
|
|
423
|
+
"docs": {
|
|
424
|
+
"tags": [],
|
|
425
|
+
"text": "Whether the element is disabled or not"
|
|
426
|
+
},
|
|
427
|
+
"attribute": "disabled",
|
|
428
|
+
"reflect": true,
|
|
429
|
+
"defaultValue": "false"
|
|
430
|
+
},
|
|
431
|
+
"required": {
|
|
432
|
+
"type": "boolean",
|
|
433
|
+
"mutable": false,
|
|
434
|
+
"complexType": {
|
|
435
|
+
"original": "boolean",
|
|
436
|
+
"resolved": "boolean",
|
|
437
|
+
"references": {}
|
|
438
|
+
},
|
|
439
|
+
"required": false,
|
|
440
|
+
"optional": false,
|
|
441
|
+
"docs": {
|
|
442
|
+
"tags": [],
|
|
443
|
+
"text": "Required status"
|
|
444
|
+
},
|
|
445
|
+
"attribute": "required",
|
|
446
|
+
"reflect": true,
|
|
447
|
+
"defaultValue": "false"
|
|
448
|
+
},
|
|
449
|
+
"showMarker": {
|
|
450
|
+
"type": "boolean",
|
|
451
|
+
"mutable": false,
|
|
452
|
+
"complexType": {
|
|
453
|
+
"original": "boolean",
|
|
454
|
+
"resolved": "boolean",
|
|
455
|
+
"references": {}
|
|
456
|
+
},
|
|
457
|
+
"required": false,
|
|
458
|
+
"optional": false,
|
|
459
|
+
"docs": {
|
|
460
|
+
"tags": [],
|
|
461
|
+
"text": "Append text to label depending if field is optional/required. true -> show \"(optional)\", false -> show nothing"
|
|
462
|
+
},
|
|
463
|
+
"attribute": "show-marker",
|
|
464
|
+
"reflect": true,
|
|
465
|
+
"defaultValue": "false"
|
|
466
|
+
},
|
|
467
|
+
"size": {
|
|
468
|
+
"type": "string",
|
|
469
|
+
"mutable": false,
|
|
470
|
+
"complexType": {
|
|
471
|
+
"original": "\"default\" | \"small\"",
|
|
472
|
+
"resolved": "\"default\" | \"small\"",
|
|
473
|
+
"references": {}
|
|
474
|
+
},
|
|
475
|
+
"required": false,
|
|
476
|
+
"optional": false,
|
|
477
|
+
"docs": {
|
|
478
|
+
"tags": [],
|
|
479
|
+
"text": "Size variant"
|
|
480
|
+
},
|
|
481
|
+
"attribute": "size",
|
|
482
|
+
"reflect": true,
|
|
483
|
+
"defaultValue": "\"default\""
|
|
484
|
+
},
|
|
485
|
+
"descriptionMonth": {
|
|
486
|
+
"type": "string",
|
|
487
|
+
"mutable": false,
|
|
488
|
+
"complexType": {
|
|
489
|
+
"original": "string",
|
|
490
|
+
"resolved": "string",
|
|
491
|
+
"references": {}
|
|
492
|
+
},
|
|
493
|
+
"required": false,
|
|
494
|
+
"optional": false,
|
|
495
|
+
"docs": {
|
|
496
|
+
"tags": [],
|
|
497
|
+
"text": "Description message for month"
|
|
498
|
+
},
|
|
499
|
+
"attribute": "description-month",
|
|
500
|
+
"reflect": false
|
|
501
|
+
},
|
|
502
|
+
"descriptionYear": {
|
|
503
|
+
"type": "string",
|
|
504
|
+
"mutable": false,
|
|
505
|
+
"complexType": {
|
|
506
|
+
"original": "string",
|
|
507
|
+
"resolved": "string",
|
|
508
|
+
"references": {}
|
|
509
|
+
},
|
|
510
|
+
"required": false,
|
|
511
|
+
"optional": false,
|
|
512
|
+
"docs": {
|
|
513
|
+
"tags": [],
|
|
514
|
+
"text": "Description message for year"
|
|
515
|
+
},
|
|
516
|
+
"attribute": "description-year",
|
|
517
|
+
"reflect": false
|
|
518
|
+
},
|
|
519
|
+
"descriptionLongMonth": {
|
|
520
|
+
"type": "string",
|
|
521
|
+
"mutable": false,
|
|
522
|
+
"complexType": {
|
|
523
|
+
"original": "string",
|
|
524
|
+
"resolved": "string",
|
|
525
|
+
"references": {}
|
|
526
|
+
},
|
|
527
|
+
"required": false,
|
|
528
|
+
"optional": false,
|
|
529
|
+
"docs": {
|
|
530
|
+
"tags": [],
|
|
531
|
+
"text": "Long description message appearing in a popover for month"
|
|
532
|
+
},
|
|
533
|
+
"attribute": "description-long-month",
|
|
534
|
+
"reflect": false
|
|
535
|
+
},
|
|
536
|
+
"descriptionLongYear": {
|
|
537
|
+
"type": "string",
|
|
538
|
+
"mutable": false,
|
|
539
|
+
"complexType": {
|
|
540
|
+
"original": "string",
|
|
541
|
+
"resolved": "string",
|
|
542
|
+
"references": {}
|
|
543
|
+
},
|
|
544
|
+
"required": false,
|
|
545
|
+
"optional": false,
|
|
546
|
+
"docs": {
|
|
547
|
+
"tags": [],
|
|
548
|
+
"text": "Long description message appearing in a popover for year"
|
|
549
|
+
},
|
|
550
|
+
"attribute": "description-long-year",
|
|
551
|
+
"reflect": false
|
|
552
|
+
},
|
|
553
|
+
"errorMonth": {
|
|
554
|
+
"type": "string",
|
|
555
|
+
"mutable": false,
|
|
556
|
+
"complexType": {
|
|
557
|
+
"original": "string | string[]",
|
|
558
|
+
"resolved": "string | string[]",
|
|
559
|
+
"references": {}
|
|
560
|
+
},
|
|
561
|
+
"required": false,
|
|
562
|
+
"optional": false,
|
|
563
|
+
"docs": {
|
|
564
|
+
"tags": [],
|
|
565
|
+
"text": "One or multiple error message for month"
|
|
566
|
+
},
|
|
567
|
+
"attribute": "error-month",
|
|
568
|
+
"reflect": false
|
|
569
|
+
},
|
|
570
|
+
"errorYear": {
|
|
571
|
+
"type": "string",
|
|
572
|
+
"mutable": false,
|
|
573
|
+
"complexType": {
|
|
574
|
+
"original": "string | string[]",
|
|
575
|
+
"resolved": "string | string[]",
|
|
576
|
+
"references": {}
|
|
577
|
+
},
|
|
578
|
+
"required": false,
|
|
579
|
+
"optional": false,
|
|
580
|
+
"docs": {
|
|
581
|
+
"tags": [],
|
|
582
|
+
"text": "One or multiple error message for year"
|
|
583
|
+
},
|
|
584
|
+
"attribute": "error-year",
|
|
585
|
+
"reflect": false
|
|
586
|
+
},
|
|
587
|
+
"invalidMonth": {
|
|
588
|
+
"type": "boolean",
|
|
589
|
+
"mutable": false,
|
|
590
|
+
"complexType": {
|
|
591
|
+
"original": "boolean",
|
|
592
|
+
"resolved": "boolean",
|
|
593
|
+
"references": {}
|
|
594
|
+
},
|
|
595
|
+
"required": false,
|
|
596
|
+
"optional": false,
|
|
597
|
+
"docs": {
|
|
598
|
+
"tags": [],
|
|
599
|
+
"text": "Invalid status for month"
|
|
600
|
+
},
|
|
601
|
+
"attribute": "invalid-month",
|
|
602
|
+
"reflect": true,
|
|
603
|
+
"defaultValue": "false"
|
|
604
|
+
},
|
|
605
|
+
"invalidYear": {
|
|
606
|
+
"type": "boolean",
|
|
607
|
+
"mutable": false,
|
|
608
|
+
"complexType": {
|
|
609
|
+
"original": "boolean",
|
|
610
|
+
"resolved": "boolean",
|
|
611
|
+
"references": {}
|
|
612
|
+
},
|
|
613
|
+
"required": false,
|
|
614
|
+
"optional": false,
|
|
615
|
+
"docs": {
|
|
616
|
+
"tags": [],
|
|
617
|
+
"text": "Invalid status for year"
|
|
618
|
+
},
|
|
619
|
+
"attribute": "invalid-year",
|
|
620
|
+
"reflect": true,
|
|
621
|
+
"defaultValue": "false"
|
|
622
|
+
},
|
|
623
|
+
"a11yDescribedbyMonth": {
|
|
624
|
+
"type": "string",
|
|
625
|
+
"mutable": false,
|
|
626
|
+
"complexType": {
|
|
627
|
+
"original": "string",
|
|
628
|
+
"resolved": "string",
|
|
629
|
+
"references": {}
|
|
630
|
+
},
|
|
631
|
+
"required": false,
|
|
632
|
+
"optional": false,
|
|
633
|
+
"docs": {
|
|
634
|
+
"tags": [],
|
|
635
|
+
"text": "Id of the element which describes the month dropdown"
|
|
636
|
+
},
|
|
637
|
+
"attribute": "a11y-describedby",
|
|
638
|
+
"reflect": false,
|
|
639
|
+
"defaultValue": "\"\""
|
|
640
|
+
},
|
|
641
|
+
"a11yDescribedbyYear": {
|
|
642
|
+
"type": "string",
|
|
643
|
+
"mutable": false,
|
|
644
|
+
"complexType": {
|
|
645
|
+
"original": "string",
|
|
646
|
+
"resolved": "string",
|
|
647
|
+
"references": {}
|
|
648
|
+
},
|
|
649
|
+
"required": false,
|
|
650
|
+
"optional": false,
|
|
651
|
+
"docs": {
|
|
652
|
+
"tags": [],
|
|
653
|
+
"text": "Id of the element which describes the year dropdown"
|
|
654
|
+
},
|
|
655
|
+
"attribute": "a11y-describedby",
|
|
656
|
+
"reflect": false,
|
|
657
|
+
"defaultValue": "\"\""
|
|
658
|
+
},
|
|
659
|
+
"localization": {
|
|
660
|
+
"type": "unknown",
|
|
661
|
+
"mutable": false,
|
|
662
|
+
"complexType": {
|
|
663
|
+
"original": "StzhMonthyearpickerLocalizedText",
|
|
664
|
+
"resolved": "StzhLocaleComponent & { monthLabel: string; yearLabel: string; }",
|
|
665
|
+
"references": {
|
|
666
|
+
"StzhMonthyearpickerLocalizedText": {
|
|
667
|
+
"location": "import",
|
|
668
|
+
"path": "./stzh-monthyearpicker.localization"
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
},
|
|
672
|
+
"required": false,
|
|
673
|
+
"optional": false,
|
|
674
|
+
"docs": {
|
|
675
|
+
"tags": [],
|
|
676
|
+
"text": "Translation strings."
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
};
|
|
680
|
+
}
|
|
681
|
+
static get events() {
|
|
682
|
+
return [{
|
|
683
|
+
"method": "stzhChange",
|
|
684
|
+
"name": "stzhChange",
|
|
685
|
+
"bubbles": true,
|
|
686
|
+
"cancelable": true,
|
|
687
|
+
"composed": true,
|
|
688
|
+
"docs": {
|
|
689
|
+
"tags": [],
|
|
690
|
+
"text": "Monthyearpicker change event"
|
|
691
|
+
},
|
|
692
|
+
"complexType": {
|
|
693
|
+
"original": "StzhMonthyearpickerChangeEvent",
|
|
694
|
+
"resolved": "{ component: \"stzh-monthyearpicker\"; value: string; valueMonth: string; valueYear: string; }",
|
|
695
|
+
"references": {
|
|
696
|
+
"StzhMonthyearpickerChangeEvent": {
|
|
697
|
+
"location": "import",
|
|
698
|
+
"path": "../../index"
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
}];
|
|
703
|
+
}
|
|
704
|
+
static get elementRef() { return "element"; }
|
|
705
|
+
static get watchers() {
|
|
706
|
+
return [{
|
|
707
|
+
"propName": "months",
|
|
708
|
+
"methodName": "monthsWatcher"
|
|
709
|
+
}, {
|
|
710
|
+
"propName": "years",
|
|
711
|
+
"methodName": "yearsWatcher"
|
|
712
|
+
}, {
|
|
713
|
+
"propName": "value",
|
|
714
|
+
"methodName": "minMaxWatcher"
|
|
715
|
+
}, {
|
|
716
|
+
"propName": "min",
|
|
717
|
+
"methodName": "minMaxWatcher"
|
|
718
|
+
}, {
|
|
719
|
+
"propName": "max",
|
|
720
|
+
"methodName": "minMaxWatcher"
|
|
721
|
+
}];
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
//# sourceMappingURL=stzh-monthyearpicker.js.map
|