smoothly 0.1.83 → 0.1.84
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/smoothly-accordion_47.cjs.entry.js +5 -13
- package/dist/cjs/smoothly-calendar.cjs.entry.js +5 -13
- package/dist/collection/components/calendar/index.js +9 -17
- package/dist/custom-elements/index.js +5 -13
- package/dist/esm/smoothly-accordion_47.entry.js +5 -13
- package/dist/esm/smoothly-calendar.entry.js +5 -13
- package/dist/smoothly/{p-c4dd9866.entry.js → p-5ca32c49.entry.js} +1 -1
- package/dist/smoothly/smoothly-calendar.entry.js +5 -13
- package/dist/types/components/calendar/index.d.ts +2 -2
- package/dist/types/components.d.ts +2 -2
- package/package.json +1 -1
|
@@ -18818,22 +18818,14 @@ let Calendar = class {
|
|
|
18818
18818
|
event.stopPropagation();
|
|
18819
18819
|
} }),
|
|
18820
18820
|
index.h("table", null, index.h("thead", null, index.h("tr", null, weekdays().map(day => (index.h("th", null, day))))), month((_b = this.month) !== null && _b !== void 0 ? _b : this.value).map(week => (index.h("tr", null, week.map(date => {
|
|
18821
|
-
var _a, _b, _c
|
|
18822
|
-
return (index.h("td", { tabindex: 1, onClick: this.min || this.max
|
|
18823
|
-
|
|
18824
|
-
|
|
18825
|
-
: undefined
|
|
18826
|
-
: () => this.onClick(date), class: (date == this.value ? ["selected"] : [])
|
|
18827
|
-
.concat(...(date == dist$4.Date.now() ? ["today"] : []), dist$4.Date.firstOfMonth((_c = this.month) !== null && _c !== void 0 ? _c : this.value) == dist$4.Date.firstOfMonth(date) ? ["currentMonth"] : [], this.doubleInput
|
|
18828
|
-
? date >= ((_d = this.start) !== null && _d !== void 0 ? _d : "") && date <= ((_e = this.end) !== null && _e !== void 0 ? _e : "")
|
|
18821
|
+
var _a, _b, _c;
|
|
18822
|
+
return (index.h("td", { tabindex: 1, onClick: (this.min || this.max) && (date < this.min || date > this.max) ? undefined : () => this.onClick(date), class: (date == this.value ? ["selected"] : [])
|
|
18823
|
+
.concat(...(date == dist$4.Date.now() ? ["today"] : []), dist$4.Date.firstOfMonth((_a = this.month) !== null && _a !== void 0 ? _a : this.value) == dist$4.Date.firstOfMonth(date) ? ["currentMonth"] : [], this.doubleInput
|
|
18824
|
+
? date >= ((_b = this.start) !== null && _b !== void 0 ? _b : "") && date <= ((_c = this.end) !== null && _c !== void 0 ? _c : "")
|
|
18829
18825
|
? ["dateRange"]
|
|
18830
18826
|
: []
|
|
18831
18827
|
: "")
|
|
18832
|
-
.concat(...(this.min || this.max
|
|
18833
|
-
? date < ((_f = this.min) !== null && _f !== void 0 ? _f : "") || date > ((_g = this.max) !== null && _g !== void 0 ? _g : "")
|
|
18834
|
-
? ["disable"]
|
|
18835
|
-
: []
|
|
18836
|
-
: ""))
|
|
18828
|
+
.concat(...(this.min || this.max ? (date < this.min || date > this.max ? ["disable"] : []) : ""))
|
|
18837
18829
|
.join(" ") }, date.substring(8, 10)));
|
|
18838
18830
|
}))))),
|
|
18839
18831
|
];
|
|
@@ -44,22 +44,14 @@ let Calendar = class {
|
|
|
44
44
|
event.stopPropagation();
|
|
45
45
|
} }),
|
|
46
46
|
index.h("table", null, index.h("thead", null, index.h("tr", null, generate.weekdays().map(day => (index.h("th", null, day))))), generate.month((_b = this.month) !== null && _b !== void 0 ? _b : this.value).map(week => (index.h("tr", null, week.map(date => {
|
|
47
|
-
var _a, _b, _c
|
|
48
|
-
return (index.h("td", { tabindex: 1, onClick: this.min || this.max
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
: undefined
|
|
52
|
-
: () => this.onClick(date), class: (date == this.value ? ["selected"] : [])
|
|
53
|
-
.concat(...(date == index$1.dist.Date.now() ? ["today"] : []), index$1.dist.Date.firstOfMonth((_c = this.month) !== null && _c !== void 0 ? _c : this.value) == index$1.dist.Date.firstOfMonth(date) ? ["currentMonth"] : [], this.doubleInput
|
|
54
|
-
? date >= ((_d = this.start) !== null && _d !== void 0 ? _d : "") && date <= ((_e = this.end) !== null && _e !== void 0 ? _e : "")
|
|
47
|
+
var _a, _b, _c;
|
|
48
|
+
return (index.h("td", { tabindex: 1, onClick: (this.min || this.max) && (date < this.min || date > this.max) ? undefined : () => this.onClick(date), class: (date == this.value ? ["selected"] : [])
|
|
49
|
+
.concat(...(date == index$1.dist.Date.now() ? ["today"] : []), index$1.dist.Date.firstOfMonth((_a = this.month) !== null && _a !== void 0 ? _a : this.value) == index$1.dist.Date.firstOfMonth(date) ? ["currentMonth"] : [], this.doubleInput
|
|
50
|
+
? date >= ((_b = this.start) !== null && _b !== void 0 ? _b : "") && date <= ((_c = this.end) !== null && _c !== void 0 ? _c : "")
|
|
55
51
|
? ["dateRange"]
|
|
56
52
|
: []
|
|
57
53
|
: "")
|
|
58
|
-
.concat(...(this.min || this.max
|
|
59
|
-
? date < ((_f = this.min) !== null && _f !== void 0 ? _f : "") || date > ((_g = this.max) !== null && _g !== void 0 ? _g : "")
|
|
60
|
-
? ["disable"]
|
|
61
|
-
: []
|
|
62
|
-
: ""))
|
|
54
|
+
.concat(...(this.min || this.max ? (date < this.min || date > this.max ? ["disable"] : []) : ""))
|
|
63
55
|
.join(" ") }, date.substring(8, 10)));
|
|
64
56
|
}))))),
|
|
65
57
|
];
|
|
@@ -35,22 +35,14 @@ export class Calendar {
|
|
|
35
35
|
h("thead", null,
|
|
36
36
|
h("tr", null, generate.weekdays().map(day => (h("th", null, day))))),
|
|
37
37
|
generate.month((_b = this.month) !== null && _b !== void 0 ? _b : this.value).map(week => (h("tr", null, week.map(date => {
|
|
38
|
-
var _a, _b, _c
|
|
39
|
-
return (h("td", { tabindex: 1, onClick: this.min || this.max
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
: undefined
|
|
43
|
-
: () => this.onClick(date), class: (date == this.value ? ["selected"] : [])
|
|
44
|
-
.concat(...(date == Date.now() ? ["today"] : []), Date.firstOfMonth((_c = this.month) !== null && _c !== void 0 ? _c : this.value) == Date.firstOfMonth(date) ? ["currentMonth"] : [], this.doubleInput
|
|
45
|
-
? date >= ((_d = this.start) !== null && _d !== void 0 ? _d : "") && date <= ((_e = this.end) !== null && _e !== void 0 ? _e : "")
|
|
38
|
+
var _a, _b, _c;
|
|
39
|
+
return (h("td", { tabindex: 1, onClick: (this.min || this.max) && (date < this.min || date > this.max) ? undefined : () => this.onClick(date), class: (date == this.value ? ["selected"] : [])
|
|
40
|
+
.concat(...(date == Date.now() ? ["today"] : []), Date.firstOfMonth((_a = this.month) !== null && _a !== void 0 ? _a : this.value) == Date.firstOfMonth(date) ? ["currentMonth"] : [], this.doubleInput
|
|
41
|
+
? date >= ((_b = this.start) !== null && _b !== void 0 ? _b : "") && date <= ((_c = this.end) !== null && _c !== void 0 ? _c : "")
|
|
46
42
|
? ["dateRange"]
|
|
47
43
|
: []
|
|
48
44
|
: "")
|
|
49
|
-
.concat(...(this.min || this.max
|
|
50
|
-
? date < ((_f = this.min) !== null && _f !== void 0 ? _f : "") || date > ((_g = this.max) !== null && _g !== void 0 ? _g : "")
|
|
51
|
-
? ["disable"]
|
|
52
|
-
: []
|
|
53
|
-
: ""))
|
|
45
|
+
.concat(...(this.min || this.max ? (date < this.min || date > this.max ? ["disable"] : []) : ""))
|
|
54
46
|
.join(" ") }, date.substring(8, 10)));
|
|
55
47
|
}))))),
|
|
56
48
|
];
|
|
@@ -158,7 +150,7 @@ export class Calendar {
|
|
|
158
150
|
"mutable": true,
|
|
159
151
|
"complexType": {
|
|
160
152
|
"original": "Date",
|
|
161
|
-
"resolved": "string
|
|
153
|
+
"resolved": "string",
|
|
162
154
|
"references": {
|
|
163
155
|
"Date": {
|
|
164
156
|
"location": "import",
|
|
@@ -167,7 +159,7 @@ export class Calendar {
|
|
|
167
159
|
}
|
|
168
160
|
},
|
|
169
161
|
"required": false,
|
|
170
|
-
"optional":
|
|
162
|
+
"optional": false,
|
|
171
163
|
"docs": {
|
|
172
164
|
"tags": [],
|
|
173
165
|
"text": ""
|
|
@@ -180,7 +172,7 @@ export class Calendar {
|
|
|
180
172
|
"mutable": true,
|
|
181
173
|
"complexType": {
|
|
182
174
|
"original": "Date",
|
|
183
|
-
"resolved": "string
|
|
175
|
+
"resolved": "string",
|
|
184
176
|
"references": {
|
|
185
177
|
"Date": {
|
|
186
178
|
"location": "import",
|
|
@@ -189,7 +181,7 @@ export class Calendar {
|
|
|
189
181
|
}
|
|
190
182
|
},
|
|
191
183
|
"required": false,
|
|
192
|
-
"optional":
|
|
184
|
+
"optional": false,
|
|
193
185
|
"docs": {
|
|
194
186
|
"tags": [],
|
|
195
187
|
"text": ""
|
|
@@ -21332,22 +21332,14 @@ let Calendar = class extends HTMLElement {
|
|
|
21332
21332
|
event.stopPropagation();
|
|
21333
21333
|
} }),
|
|
21334
21334
|
h("table", null, h("thead", null, h("tr", null, weekdays().map(day => (h("th", null, day))))), month((_b = this.month) !== null && _b !== void 0 ? _b : this.value).map(week => (h("tr", null, week.map(date => {
|
|
21335
|
-
var _a, _b, _c
|
|
21336
|
-
return (h("td", { tabindex: 1, onClick: this.min || this.max
|
|
21337
|
-
|
|
21338
|
-
|
|
21339
|
-
: undefined
|
|
21340
|
-
: () => this.onClick(date), class: (date == this.value ? ["selected"] : [])
|
|
21341
|
-
.concat(...(date == dist$4.Date.now() ? ["today"] : []), dist$4.Date.firstOfMonth((_c = this.month) !== null && _c !== void 0 ? _c : this.value) == dist$4.Date.firstOfMonth(date) ? ["currentMonth"] : [], this.doubleInput
|
|
21342
|
-
? date >= ((_d = this.start) !== null && _d !== void 0 ? _d : "") && date <= ((_e = this.end) !== null && _e !== void 0 ? _e : "")
|
|
21335
|
+
var _a, _b, _c;
|
|
21336
|
+
return (h("td", { tabindex: 1, onClick: (this.min || this.max) && (date < this.min || date > this.max) ? undefined : () => this.onClick(date), class: (date == this.value ? ["selected"] : [])
|
|
21337
|
+
.concat(...(date == dist$4.Date.now() ? ["today"] : []), dist$4.Date.firstOfMonth((_a = this.month) !== null && _a !== void 0 ? _a : this.value) == dist$4.Date.firstOfMonth(date) ? ["currentMonth"] : [], this.doubleInput
|
|
21338
|
+
? date >= ((_b = this.start) !== null && _b !== void 0 ? _b : "") && date <= ((_c = this.end) !== null && _c !== void 0 ? _c : "")
|
|
21343
21339
|
? ["dateRange"]
|
|
21344
21340
|
: []
|
|
21345
21341
|
: "")
|
|
21346
|
-
.concat(...(this.min || this.max
|
|
21347
|
-
? date < ((_f = this.min) !== null && _f !== void 0 ? _f : "") || date > ((_g = this.max) !== null && _g !== void 0 ? _g : "")
|
|
21348
|
-
? ["disable"]
|
|
21349
|
-
: []
|
|
21350
|
-
: ""))
|
|
21342
|
+
.concat(...(this.min || this.max ? (date < this.min || date > this.max ? ["disable"] : []) : ""))
|
|
21351
21343
|
.join(" ") }, date.substring(8, 10)));
|
|
21352
21344
|
}))))),
|
|
21353
21345
|
];
|
|
@@ -18814,22 +18814,14 @@ let Calendar = class {
|
|
|
18814
18814
|
event.stopPropagation();
|
|
18815
18815
|
} }),
|
|
18816
18816
|
h("table", null, h("thead", null, h("tr", null, weekdays().map(day => (h("th", null, day))))), month((_b = this.month) !== null && _b !== void 0 ? _b : this.value).map(week => (h("tr", null, week.map(date => {
|
|
18817
|
-
var _a, _b, _c
|
|
18818
|
-
return (h("td", { tabindex: 1, onClick: this.min || this.max
|
|
18819
|
-
|
|
18820
|
-
|
|
18821
|
-
: undefined
|
|
18822
|
-
: () => this.onClick(date), class: (date == this.value ? ["selected"] : [])
|
|
18823
|
-
.concat(...(date == dist$4.Date.now() ? ["today"] : []), dist$4.Date.firstOfMonth((_c = this.month) !== null && _c !== void 0 ? _c : this.value) == dist$4.Date.firstOfMonth(date) ? ["currentMonth"] : [], this.doubleInput
|
|
18824
|
-
? date >= ((_d = this.start) !== null && _d !== void 0 ? _d : "") && date <= ((_e = this.end) !== null && _e !== void 0 ? _e : "")
|
|
18817
|
+
var _a, _b, _c;
|
|
18818
|
+
return (h("td", { tabindex: 1, onClick: (this.min || this.max) && (date < this.min || date > this.max) ? undefined : () => this.onClick(date), class: (date == this.value ? ["selected"] : [])
|
|
18819
|
+
.concat(...(date == dist$4.Date.now() ? ["today"] : []), dist$4.Date.firstOfMonth((_a = this.month) !== null && _a !== void 0 ? _a : this.value) == dist$4.Date.firstOfMonth(date) ? ["currentMonth"] : [], this.doubleInput
|
|
18820
|
+
? date >= ((_b = this.start) !== null && _b !== void 0 ? _b : "") && date <= ((_c = this.end) !== null && _c !== void 0 ? _c : "")
|
|
18825
18821
|
? ["dateRange"]
|
|
18826
18822
|
: []
|
|
18827
18823
|
: "")
|
|
18828
|
-
.concat(...(this.min || this.max
|
|
18829
|
-
? date < ((_f = this.min) !== null && _f !== void 0 ? _f : "") || date > ((_g = this.max) !== null && _g !== void 0 ? _g : "")
|
|
18830
|
-
? ["disable"]
|
|
18831
|
-
: []
|
|
18832
|
-
: ""))
|
|
18824
|
+
.concat(...(this.min || this.max ? (date < this.min || date > this.max ? ["disable"] : []) : ""))
|
|
18833
18825
|
.join(" ") }, date.substring(8, 10)));
|
|
18834
18826
|
}))))),
|
|
18835
18827
|
];
|
|
@@ -40,22 +40,14 @@ let Calendar = class {
|
|
|
40
40
|
event.stopPropagation();
|
|
41
41
|
} }),
|
|
42
42
|
h("table", null, h("thead", null, h("tr", null, weekdays().map(day => (h("th", null, day))))), month((_b = this.month) !== null && _b !== void 0 ? _b : this.value).map(week => (h("tr", null, week.map(date => {
|
|
43
|
-
var _a, _b, _c
|
|
44
|
-
return (h("td", { tabindex: 1, onClick: this.min || this.max
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
: undefined
|
|
48
|
-
: () => this.onClick(date), class: (date == this.value ? ["selected"] : [])
|
|
49
|
-
.concat(...(date == dist.Date.now() ? ["today"] : []), dist.Date.firstOfMonth((_c = this.month) !== null && _c !== void 0 ? _c : this.value) == dist.Date.firstOfMonth(date) ? ["currentMonth"] : [], this.doubleInput
|
|
50
|
-
? date >= ((_d = this.start) !== null && _d !== void 0 ? _d : "") && date <= ((_e = this.end) !== null && _e !== void 0 ? _e : "")
|
|
43
|
+
var _a, _b, _c;
|
|
44
|
+
return (h("td", { tabindex: 1, onClick: (this.min || this.max) && (date < this.min || date > this.max) ? undefined : () => this.onClick(date), class: (date == this.value ? ["selected"] : [])
|
|
45
|
+
.concat(...(date == dist.Date.now() ? ["today"] : []), dist.Date.firstOfMonth((_a = this.month) !== null && _a !== void 0 ? _a : this.value) == dist.Date.firstOfMonth(date) ? ["currentMonth"] : [], this.doubleInput
|
|
46
|
+
? date >= ((_b = this.start) !== null && _b !== void 0 ? _b : "") && date <= ((_c = this.end) !== null && _c !== void 0 ? _c : "")
|
|
51
47
|
? ["dateRange"]
|
|
52
48
|
: []
|
|
53
49
|
: "")
|
|
54
|
-
.concat(...(this.min || this.max
|
|
55
|
-
? date < ((_f = this.min) !== null && _f !== void 0 ? _f : "") || date > ((_g = this.max) !== null && _g !== void 0 ? _g : "")
|
|
56
|
-
? ["disable"]
|
|
57
|
-
: []
|
|
58
|
-
: ""))
|
|
50
|
+
.concat(...(this.min || this.max ? (date < this.min || date > this.max ? ["disable"] : []) : ""))
|
|
59
51
|
.join(" ") }, date.substring(8, 10)));
|
|
60
52
|
}))))),
|
|
61
53
|
];
|