@wkly/datetime-picker 11.0.0 → 12.0.0
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/bundles/wkly-datetime-picker-cdk-overlay.umd.js +26 -4
- package/bundles/wkly-datetime-picker-cdk-overlay.umd.js.map +1 -1
- package/bundles/wkly-datetime-picker.umd.js +108 -89
- package/bundles/wkly-datetime-picker.umd.js.map +1 -1
- package/esm2015/cdk-overlay/public-api.js +1 -1
- package/esm2015/cdk-overlay/public-api.ngfactory.js +2 -2
- package/esm2015/cdk-overlay/public-api.ngsummary.json +1 -1
- package/esm2015/cdk-overlay/wkly-datetime-picker-cdk-overlay.js +1 -1
- package/esm2015/config.js +2 -2
- package/esm2015/config.ngsummary.json +1 -1
- package/esm2015/field.component.css.shim.ngstyle.js +2 -2
- package/esm2015/field.component.js +2 -2
- package/esm2015/field.component.ngfactory.js +1 -1
- package/esm2015/picker.component.js +2 -2
- package/esm2015/picker.component.ngfactory.js +1 -1
- package/esm2015/presentation.js +1 -1
- package/esm2015/presentation.ngsummary.json +1 -1
- package/esm2015/public-api.js +1 -1
- package/esm2015/public-api.ngfactory.js +1 -1
- package/esm2015/wkly-datetime-picker.js +1 -1
- package/fesm2015/wkly-datetime-picker-cdk-overlay.js +5 -2
- package/fesm2015/wkly-datetime-picker-cdk-overlay.js.map +1 -1
- package/fesm2015/wkly-datetime-picker.js +7 -5
- package/fesm2015/wkly-datetime-picker.js.map +1 -1
- package/package.json +8 -8
- package/wkly-datetime-picker.metadata.json +1 -1
- package/bundles/wkly-datetime-picker-cdk-overlay.umd.min.js +0 -2
- package/bundles/wkly-datetime-picker-cdk-overlay.umd.min.js.map +0 -1
- package/bundles/wkly-datetime-picker.umd.min.js +0 -2
- package/bundles/wkly-datetime-picker.umd.min.js.map +0 -1
|
@@ -1,8 +1,29 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('@wkly/core'), require('@wkly/adapters'), require('@wkly/presentation')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define('@wkly/datetime-picker', ['exports', '@angular/core', '@angular/common', '@angular/forms', '@wkly/core', '@wkly/adapters', '@wkly/presentation'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.wkly = global.wkly || {}, global.wkly[
|
|
5
|
-
}(this, (function (exports, i0, i1, forms, core, adapters, presentation) { 'use strict';
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.wkly = global.wkly || {}, global.wkly["datetime-picker"] = {}), global.ng.core, global.ng.common, global.ng.forms, global.core, global.adapters, global.presentation));
|
|
5
|
+
})(this, (function (exports, i0, i1, forms, core, adapters, presentation) { 'use strict';
|
|
6
|
+
|
|
7
|
+
function _interopNamespace(e) {
|
|
8
|
+
if (e && e.__esModule) return e;
|
|
9
|
+
var n = Object.create(null);
|
|
10
|
+
if (e) {
|
|
11
|
+
Object.keys(e).forEach(function (k) {
|
|
12
|
+
if (k !== 'default') {
|
|
13
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () { return e[k]; }
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
n["default"] = e;
|
|
22
|
+
return Object.freeze(n);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
26
|
+
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
6
27
|
|
|
7
28
|
/******************************************************************************
|
|
8
29
|
Copyright (c) Microsoft Corporation.
|
|
@@ -58,7 +79,7 @@
|
|
|
58
79
|
}
|
|
59
80
|
return t;
|
|
60
81
|
}
|
|
61
|
-
function __decorate(decorators, target, key, desc) {
|
|
82
|
+
function __decorate$1(decorators, target, key, desc) {
|
|
62
83
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
63
84
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
64
85
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -129,7 +150,7 @@
|
|
|
129
150
|
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
130
151
|
}
|
|
131
152
|
;
|
|
132
|
-
function __metadata(metadataKey, metadataValue) {
|
|
153
|
+
function __metadata$1(metadataKey, metadataValue) {
|
|
133
154
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
134
155
|
return Reflect.metadata(metadataKey, metadataValue);
|
|
135
156
|
}
|
|
@@ -481,13 +502,13 @@
|
|
|
481
502
|
__extends: __extends,
|
|
482
503
|
__assign: __assign,
|
|
483
504
|
__rest: __rest,
|
|
484
|
-
__decorate: __decorate,
|
|
505
|
+
__decorate: __decorate$1,
|
|
485
506
|
__param: __param,
|
|
486
507
|
__esDecorate: __esDecorate,
|
|
487
508
|
__runInitializers: __runInitializers,
|
|
488
509
|
__propKey: __propKey,
|
|
489
510
|
__setFunctionName: __setFunctionName,
|
|
490
|
-
__metadata: __metadata,
|
|
511
|
+
__metadata: __metadata$1,
|
|
491
512
|
__awaiter: __awaiter,
|
|
492
513
|
__generator: __generator,
|
|
493
514
|
__createBinding: __createBinding,
|
|
@@ -512,7 +533,7 @@
|
|
|
512
533
|
__rewriteRelativeImportExtension: __rewriteRelativeImportExtension,
|
|
513
534
|
};
|
|
514
535
|
|
|
515
|
-
var __decorate
|
|
536
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
516
537
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
517
538
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
518
539
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -522,7 +543,7 @@
|
|
|
522
543
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
523
544
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
524
545
|
};
|
|
525
|
-
var __metadata
|
|
546
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
526
547
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
527
548
|
return Reflect.metadata(k, v);
|
|
528
549
|
};
|
|
@@ -535,7 +556,7 @@
|
|
|
535
556
|
var WKLY_LOCALIZATION = new i0.InjectionToken("WKLY_LOCALIZATION", { providedIn: "root", factory: function () { return ({}); } });
|
|
536
557
|
var WKLY_TRANSLATIONS = new i0.InjectionToken("WKLY_TRANSLATIONS", { providedIn: "root", factory: function () { return ({}); } });
|
|
537
558
|
/** Shared public inputs/outputs inherited by the picker and both trigger directives. */
|
|
538
|
-
//
|
|
559
|
+
// Inherited inputs need literal names in published decorator metadata.
|
|
539
560
|
var WklyPickerInputs = /** @class */ (function () {
|
|
540
561
|
function WklyPickerInputs() {
|
|
541
562
|
this[_a] = "datetime";
|
|
@@ -619,141 +640,141 @@
|
|
|
619
640
|
],
|
|
620
641
|
},] }
|
|
621
642
|
];
|
|
622
|
-
__decorate
|
|
643
|
+
__decorate([
|
|
623
644
|
i0.Input(),
|
|
624
|
-
__metadata
|
|
645
|
+
__metadata("design:type", String)
|
|
625
646
|
], WklyPickerInputs.prototype, _a, void 0);
|
|
626
|
-
__decorate
|
|
647
|
+
__decorate([
|
|
627
648
|
i0.Input(),
|
|
628
|
-
__metadata
|
|
649
|
+
__metadata("design:type", Object)
|
|
629
650
|
], WklyPickerInputs.prototype, _b, void 0);
|
|
630
|
-
__decorate
|
|
651
|
+
__decorate([
|
|
631
652
|
i0.Input(),
|
|
632
|
-
__metadata
|
|
653
|
+
__metadata("design:type", Object)
|
|
633
654
|
], WklyPickerInputs.prototype, _c, void 0);
|
|
634
|
-
__decorate
|
|
655
|
+
__decorate([
|
|
635
656
|
i0.Input(),
|
|
636
|
-
__metadata
|
|
657
|
+
__metadata("design:type", String)
|
|
637
658
|
], WklyPickerInputs.prototype, _d, void 0);
|
|
638
|
-
__decorate
|
|
659
|
+
__decorate([
|
|
639
660
|
i0.Input(),
|
|
640
|
-
__metadata
|
|
661
|
+
__metadata("design:type", Object)
|
|
641
662
|
], WklyPickerInputs.prototype, _e, void 0);
|
|
642
|
-
__decorate
|
|
663
|
+
__decorate([
|
|
643
664
|
i0.Input(),
|
|
644
|
-
__metadata
|
|
665
|
+
__metadata("design:type", Object)
|
|
645
666
|
], WklyPickerInputs.prototype, _f, void 0);
|
|
646
|
-
__decorate
|
|
667
|
+
__decorate([
|
|
647
668
|
i0.Input(),
|
|
648
|
-
__metadata
|
|
669
|
+
__metadata("design:type", String)
|
|
649
670
|
], WklyPickerInputs.prototype, _g, void 0);
|
|
650
|
-
__decorate
|
|
671
|
+
__decorate([
|
|
651
672
|
i0.Input(),
|
|
652
|
-
__metadata
|
|
673
|
+
__metadata("design:type", Boolean)
|
|
653
674
|
], WklyPickerInputs.prototype, _h, void 0);
|
|
654
|
-
__decorate
|
|
675
|
+
__decorate([
|
|
655
676
|
i0.Input(),
|
|
656
|
-
__metadata
|
|
677
|
+
__metadata("design:type", Number)
|
|
657
678
|
], WklyPickerInputs.prototype, _j, void 0);
|
|
658
|
-
__decorate
|
|
679
|
+
__decorate([
|
|
659
680
|
i0.Input(),
|
|
660
|
-
__metadata
|
|
681
|
+
__metadata("design:type", Number)
|
|
661
682
|
], WklyPickerInputs.prototype, _k, void 0);
|
|
662
|
-
__decorate
|
|
683
|
+
__decorate([
|
|
663
684
|
i0.Input(),
|
|
664
|
-
__metadata
|
|
685
|
+
__metadata("design:type", Object)
|
|
665
686
|
], WklyPickerInputs.prototype, _l, void 0);
|
|
666
|
-
__decorate
|
|
687
|
+
__decorate([
|
|
667
688
|
i0.Input(),
|
|
668
|
-
__metadata
|
|
689
|
+
__metadata("design:type", Object)
|
|
669
690
|
], WklyPickerInputs.prototype, _m, void 0);
|
|
670
|
-
__decorate
|
|
691
|
+
__decorate([
|
|
671
692
|
i0.Input(),
|
|
672
|
-
__metadata
|
|
693
|
+
__metadata("design:type", Object)
|
|
673
694
|
], WklyPickerInputs.prototype, _o, void 0);
|
|
674
|
-
__decorate
|
|
695
|
+
__decorate([
|
|
675
696
|
i0.Input(),
|
|
676
|
-
__metadata
|
|
697
|
+
__metadata("design:type", Object)
|
|
677
698
|
], WklyPickerInputs.prototype, _p, void 0);
|
|
678
|
-
__decorate
|
|
699
|
+
__decorate([
|
|
679
700
|
i0.Input(),
|
|
680
|
-
__metadata
|
|
701
|
+
__metadata("design:type", Object)
|
|
681
702
|
], WklyPickerInputs.prototype, _q, void 0);
|
|
682
|
-
__decorate
|
|
703
|
+
__decorate([
|
|
683
704
|
i0.Input(),
|
|
684
|
-
__metadata
|
|
705
|
+
__metadata("design:type", Object)
|
|
685
706
|
], WklyPickerInputs.prototype, _r, void 0);
|
|
686
|
-
__decorate
|
|
707
|
+
__decorate([
|
|
687
708
|
i0.Input(),
|
|
688
|
-
__metadata
|
|
709
|
+
__metadata("design:type", Object)
|
|
689
710
|
], WklyPickerInputs.prototype, _s, void 0);
|
|
690
|
-
__decorate
|
|
711
|
+
__decorate([
|
|
691
712
|
i0.Input(),
|
|
692
|
-
__metadata
|
|
713
|
+
__metadata("design:type", Object)
|
|
693
714
|
], WklyPickerInputs.prototype, _t, void 0);
|
|
694
|
-
__decorate
|
|
715
|
+
__decorate([
|
|
695
716
|
i0.Input(),
|
|
696
|
-
__metadata
|
|
717
|
+
__metadata("design:type", String)
|
|
697
718
|
], WklyPickerInputs.prototype, _u, void 0);
|
|
698
|
-
__decorate
|
|
719
|
+
__decorate([
|
|
699
720
|
i0.Input(),
|
|
700
|
-
__metadata
|
|
721
|
+
__metadata("design:type", Object)
|
|
701
722
|
], WklyPickerInputs.prototype, _v, void 0);
|
|
702
|
-
__decorate
|
|
723
|
+
__decorate([
|
|
703
724
|
i0.Input(),
|
|
704
|
-
__metadata
|
|
725
|
+
__metadata("design:type", Object)
|
|
705
726
|
], WklyPickerInputs.prototype, _w, void 0);
|
|
706
|
-
__decorate
|
|
727
|
+
__decorate([
|
|
707
728
|
i0.Input(),
|
|
708
|
-
__metadata
|
|
729
|
+
__metadata("design:type", Object)
|
|
709
730
|
], WklyPickerInputs.prototype, _x, void 0);
|
|
710
|
-
__decorate
|
|
731
|
+
__decorate([
|
|
711
732
|
i0.Input(),
|
|
712
|
-
__metadata
|
|
733
|
+
__metadata("design:type", Object)
|
|
713
734
|
], WklyPickerInputs.prototype, _y, void 0);
|
|
714
|
-
__decorate
|
|
735
|
+
__decorate([
|
|
715
736
|
i0.Input(),
|
|
716
|
-
__metadata
|
|
737
|
+
__metadata("design:type", Object)
|
|
717
738
|
], WklyPickerInputs.prototype, _z, void 0);
|
|
718
|
-
__decorate
|
|
739
|
+
__decorate([
|
|
719
740
|
i0.Input(),
|
|
720
|
-
__metadata
|
|
741
|
+
__metadata("design:type", Object)
|
|
721
742
|
], WklyPickerInputs.prototype, _0, void 0);
|
|
722
|
-
__decorate
|
|
743
|
+
__decorate([
|
|
723
744
|
i0.Input(),
|
|
724
|
-
__metadata
|
|
745
|
+
__metadata("design:type", Object)
|
|
725
746
|
], WklyPickerInputs.prototype, _1, void 0);
|
|
726
|
-
__decorate
|
|
747
|
+
__decorate([
|
|
727
748
|
i0.Input(),
|
|
728
|
-
__metadata
|
|
749
|
+
__metadata("design:type", Array)
|
|
729
750
|
], WklyPickerInputs.prototype, _2, void 0);
|
|
730
|
-
__decorate
|
|
751
|
+
__decorate([
|
|
731
752
|
i0.Input(),
|
|
732
|
-
__metadata
|
|
753
|
+
__metadata("design:type", Object)
|
|
733
754
|
], WklyPickerInputs.prototype, _3, void 0);
|
|
734
|
-
__decorate
|
|
755
|
+
__decorate([
|
|
735
756
|
i0.Output(),
|
|
736
|
-
__metadata
|
|
757
|
+
__metadata("design:type", Object)
|
|
737
758
|
], WklyPickerInputs.prototype, _4, void 0);
|
|
738
|
-
__decorate
|
|
759
|
+
__decorate([
|
|
739
760
|
i0.Output(),
|
|
740
|
-
__metadata
|
|
761
|
+
__metadata("design:type", Object)
|
|
741
762
|
], WklyPickerInputs.prototype, _5, void 0);
|
|
742
|
-
__decorate
|
|
763
|
+
__decorate([
|
|
743
764
|
i0.Output(),
|
|
744
|
-
__metadata
|
|
765
|
+
__metadata("design:type", Object)
|
|
745
766
|
], WklyPickerInputs.prototype, _6, void 0);
|
|
746
|
-
__decorate
|
|
767
|
+
__decorate([
|
|
747
768
|
i0.Output(),
|
|
748
|
-
__metadata
|
|
769
|
+
__metadata("design:type", Object)
|
|
749
770
|
], WklyPickerInputs.prototype, _7, void 0);
|
|
750
|
-
__decorate
|
|
771
|
+
__decorate([
|
|
751
772
|
i0.Output(),
|
|
752
|
-
__metadata
|
|
773
|
+
__metadata("design:type", Object)
|
|
753
774
|
], WklyPickerInputs.prototype, _8, void 0);
|
|
754
|
-
__decorate
|
|
775
|
+
__decorate([
|
|
755
776
|
i0.Output(),
|
|
756
|
-
__metadata
|
|
777
|
+
__metadata("design:type", Object)
|
|
757
778
|
], WklyPickerInputs.prototype, _9, void 0);
|
|
758
779
|
|
|
759
780
|
var WklyDateTimePickerComponent = /** @class */ (function (_super) {
|
|
@@ -1732,7 +1753,7 @@
|
|
|
1732
1753
|
multi: true,
|
|
1733
1754
|
},
|
|
1734
1755
|
],
|
|
1735
|
-
styles: [":host{display:block;width:100%;box-sizing:border-box;--wkly-background-color
|
|
1756
|
+
styles: [":host{display:block;width:100%;box-sizing:border-box;--wkly-background-color: #fff;--wkly-background-color-alternate: #fafafa;--wkly-text-color: #192c28;--wkly-muted-color: #52635e;--wkly-border-color: #dce5e1;--wkly-accent-color: #176c55;--wkly-accent-color-alternate: #6ea494;--wkly-accent-text-color: #fff;--wkly-range-color: #e5f1ee;--wkly-error-color: #b42318;--wkly-focus-color: #245bd6;--wkly-size-multiplier: 1;--wkly-size-unit: 3.5em;color:var(--wkly-text-color);font:14px/1.4 system-ui,sans-serif;container-type:inline-size}.wkly{background:var(--wkly-background-color);border:1px solid var(--wkly-border-color);border-radius:14px;overflow:hidden;min-width:0;font-size:calc(14px * clamp(1,var(--wkly-size-multiplier),1.5))}button{font:inherit;color:inherit;min-width:var(--wkly-size-unit);min-height:var(--wkly-size-unit);border:0;background:transparent;border-radius:8px;cursor:pointer}button:hover:not(:disabled):not([aria-disabled=\"true\"]){background:var(--wkly-accent-color-alternate)}button:disabled,button[aria-disabled=true]{opacity:.4;cursor:default}button:focus-visible{outline:2px solid var(--wkly-focus-color);outline-offset:-2px}.toolbar{display:flex;align-items:center;padding:8px;grid-gap:3px;gap:3px;border-bottom:1px solid var(--wkly-border-color)}.spacer{flex:1}.year-control{padding:0 6px;font-weight:650;text-align:start;line-height:1.2}.now{color:var(--wkly-accent-color);font-weight:650}.week-head,.week-row{display:grid;grid-template-columns:28px repeat(7,minmax(0,1fr))}.week-head{font-size:.85em;color:var(--wkly-muted-color);height:34px;align-items:center;text-align:center}.week-row{height:calc(var(--wkly-size-unit) * clamp(1,var(--wkly-size-multiplier),1));align-items:end}.no-label{grid-template-columns:repeat(7,minmax(0,1fr))}.week-scroll{overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;overflow-anchor:none;scrollbar-width:thin;max-height:65vh;touch-action:pan-y}.scroll-space{position:relative}.rows{position:absolute;left:0;right:0}.week-number{font-size:.85em;text-align:center;align-self:end;line-height:var(--wkly-size-unit);color:var(--wkly-muted-color)}[role=gridcell]{position:relative;min-width:0;height:var(--wkly-size-unit);text-align:center}[role=gridcell].odd-month:not(.range):not(.today){background:var(--wkly-background-color-alternate)}.day{width:100%;min-width:0;height:var(--wkly-size-unit);padding:0;border-radius:8px}.annotation{position:absolute;bottom:.25em;white-space:nowrap;font-size:1.25em;font-weight:650;line-height:1;pointer-events:none;z-index:1;color:var(--wkly-muted-color);color:color-mix(in srgb,var(--wkly-muted-color) 50%,transparent);text-shadow:0 0 2px --wkly-background-color,0 0 4px --wkly-background-color}.odd-month .annotation{text-shadow:0 0 2px --wkly-background-color-alternate,0 0 4px --wkly-background-color-alternate}.annotation:empty{display:none}.annotation--0{inset-inline-start:10%;bottom:1.75em}.annotation--1{inset-inline-start:-5%}.annotation--2{inset-inline-start:-20%}.annotation--3{inset-inline-start:-50%;inset-inline-end:-50%}.annotation--4{inset-inline-end:-20%}.annotation--5{inset-inline-end:-5%}.annotation--6{inset-inline-end:10%}.range{background:var(--wkly-range-color)}.day.selected{background:var(--wkly-accent-color);color:var(--wkly-accent-text-color);font-weight:700}.today:after{content:\"\";display:block;width:5px;height:5px;background:currentColor;border-radius:50%;position:absolute;bottom:2px;left:calc(50% - 2px)}.today{font-weight:750;box-shadow:inset 0 0 0 1px var(--wkly-accent-color)}.hidden{visibility:hidden}.week-navigation{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--wkly-border-color);font-size:.85em;color:var(--wkly-muted-color)}fieldset{border:0;padding:0 12px;margin:0;min-width:0}legend{padding-top:.85em;font-weight:650;color:var(--wkly-accent-color)}.date-fields{display:grid;grid-template-columns:1fr 2fr 1.4fr;grid-gap:7px;gap:7px;padding:12px 0}.end-view-toggle{display:inline-flex}.end-view-toggle button{min-height:0;min-width:0;padding:0 6px;border-radius:0;line-height:inherit}.end-view-toggle button:first-child{padding-inline-start:0}.end-view-toggle button+button{border-inline-start:1px solid var(--wkly-text-color)}.end-view-toggle button[aria-pressed=false]{color:var(--wkly-muted-color);font-weight:400}.in-days-fields{grid-template-columns:minmax(0,1fr);grid-gap:0;gap:0;text-align:center}.resulting-end-date{font-size:11px;color:var(--wkly-muted-color);height:1.4em;margin-bottom:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.time-fields{display:grid;grid-template-columns:1fr 1fr 52px;grid-gap:8px;gap:8px;padding:14px 0;border-top:1px solid var(--wkly-border-color)}.time-fields.seconds{grid-template-columns:1fr 1fr 1fr 48px}.period{display:flex;flex-direction:column;justify-content:center;grid-gap:2px;gap:2px;padding-top:1.25em}.period button{font-size:.85em}.period [aria-pressed=true]{background:var(--wkly-range-color);box-shadow:inset 0 0 0 1px var(--wkly-accent-color);font-weight:700}.validation{color:var(--wkly-error-color);font-size:.85em}.validation p{margin:.5em .85em}footer{padding:12px;border-top:1px solid var(--wkly-border-color)}.confirm{background:var(--wkly-accent-color);color:var(--wkly-accent-text-color);width:100%;font-weight:650}.confirm:hover:not(:disabled){background:var(--wkly-accent-color-alternate)}@media (forced-colors: active){.day.selected{outline:2px solid Highlight}.range{border-bottom:2px solid Highlight}.today{outline:1px dashed CanvasText}}@media (prefers-reduced-motion: reduce){*{scroll-behavior:auto!important;animation:none!important}}\n"]
|
|
1736
1757
|
},] }
|
|
1737
1758
|
];
|
|
1738
1759
|
WklyDateTimePickerComponent.ctorParameters = function () { return [
|
|
@@ -1830,7 +1851,7 @@
|
|
|
1830
1851
|
};
|
|
1831
1852
|
return WklyDateTimePickerDialogService;
|
|
1832
1853
|
}());
|
|
1833
|
-
WklyDateTimePickerDialogService.ɵprov =
|
|
1854
|
+
WklyDateTimePickerDialogService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function WklyDateTimePickerDialogService_Factory() { return new WklyDateTimePickerDialogService(i0__namespace.ɵɵinject(i0__namespace.ComponentFactoryResolver), i0__namespace.ɵɵinject(i0__namespace.INJECTOR), i0__namespace.ɵɵinject(i0__namespace.ApplicationRef), i0__namespace.ɵɵinject(i1__namespace.DOCUMENT), i0__namespace.ɵɵinject(i0__namespace.PLATFORM_ID)); }, token: WklyDateTimePickerDialogService, providedIn: "root" });
|
|
1834
1855
|
WklyDateTimePickerDialogService.decorators = [
|
|
1835
1856
|
{ type: i0.Injectable, args: [{ providedIn: "root" },] }
|
|
1836
1857
|
];
|
|
@@ -2286,7 +2307,7 @@
|
|
|
2286
2307
|
{ type: i0.Component, args: [{
|
|
2287
2308
|
selector: "wkly-field",
|
|
2288
2309
|
template: "<div\n class=\"field\"\n (wheel)=\"wheel($event)\"\n (touchstart)=\"touchStart($event)\"\n (touchmove)=\"touchMove($event)\"\n (touchend)=\"touchEnd($event)\"\n (touchcancel)=\"touchEnd($event)\"\n>\n <span *ngIf=\"!hideLabel\" class=\"label\">{{ label }}</span>\n <button\n type=\"button\"\n [disabled]=\"disabled\"\n [attr.aria-label]=\"previousLabel || label + ': previous'\"\n (click)=\"stepBy(-1)\"\n >\n {{ neighbor(-1) }}\n </button>\n <input\n [attr.aria-label]=\"label\"\n [attr.aria-invalid]=\"invalid\"\n [disabled]=\"disabled\"\n [value]=\"display\"\n [attr.inputmode]=\"labels ? 'text' : min < 0 ? 'text' : 'numeric'\"\n autocomplete=\"off\"\n (focus)=\"begin($event)\"\n (input)=\"type($event)\"\n (blur)=\"finish()\"\n (keydown)=\"key($event)\"\n />\n <button\n type=\"button\"\n [disabled]=\"disabled\"\n [attr.aria-label]=\"nextLabel || label + ': next'\"\n (click)=\"stepBy(1)\"\n >\n {{ neighbor(1) }}\n </button>\n</div>\n",
|
|
2289
|
-
styles: [".field{display:flex;flex-direction:column;align-items:stretch;min-width:0;text-align:center;touch-action:pan-x}.label{font-size:11px;color:var(--wkly-muted-color
|
|
2310
|
+
styles: [".field{display:flex;flex-direction:column;align-items:stretch;min-width:0;text-align:center;touch-action:pan-x}.label{font-size:11px;color:var(--wkly-muted-color, #54616e);margin-bottom:4px}button,input{font:inherit;box-sizing:border-box;min-height:44px;width:100%;border:0;text-align:center;background:transparent;color:inherit;border-radius:7px}button{color:var(--wkly-muted-color, #54616e);cursor:pointer}input{font-size:18px;font-weight:650;background:var(--wkly-range-color, #e5f1ee);border-block:2px solid var(--wkly-accent-color, #176c55)}input[aria-invalid=true]{border-color:var(--wkly-error-color, #b42318)}:focus-visible{outline:2px solid var(--wkly-focus-color, #124ee0);outline-offset:1px}button:disabled,input:disabled{opacity:.45}button:hover:not(:disabled){background:var(--wkly-range-color, #e5f1ee)}\n"]
|
|
2290
2311
|
},] }
|
|
2291
2312
|
];
|
|
2292
2313
|
WklyFieldComponent.propDecorators = {
|
|
@@ -2328,14 +2349,6 @@
|
|
|
2328
2349
|
* Generated bundle index. Do not edit.
|
|
2329
2350
|
*/
|
|
2330
2351
|
|
|
2331
|
-
Object.keys(presentation).forEach(function (k) {
|
|
2332
|
-
if (k !== 'default') Object.defineProperty(exports, k, {
|
|
2333
|
-
enumerable: true,
|
|
2334
|
-
get: function () {
|
|
2335
|
-
return presentation[k];
|
|
2336
|
-
}
|
|
2337
|
-
});
|
|
2338
|
-
});
|
|
2339
2352
|
exports.WKLY_CLOCK = WKLY_CLOCK;
|
|
2340
2353
|
exports.WKLY_CONFIG = WKLY_CONFIG;
|
|
2341
2354
|
exports.WKLY_LOCALIZATION = WKLY_LOCALIZATION;
|
|
@@ -2347,8 +2360,14 @@
|
|
|
2347
2360
|
exports.WklyFieldComponent = WklyFieldComponent;
|
|
2348
2361
|
exports.WklyPickerInputs = WklyPickerInputs;
|
|
2349
2362
|
exports.WklyTriggerBase = WklyTriggerBase;
|
|
2363
|
+
Object.keys(presentation).forEach(function (k) {
|
|
2364
|
+
if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
|
|
2365
|
+
enumerable: true,
|
|
2366
|
+
get: function () { return presentation[k]; }
|
|
2367
|
+
});
|
|
2368
|
+
});
|
|
2350
2369
|
|
|
2351
2370
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2352
2371
|
|
|
2353
|
-
}))
|
|
2372
|
+
}));
|
|
2354
2373
|
//# sourceMappingURL=wkly-datetime-picker.umd.js.map
|