@coreui/angular-pro 4.2.24 → 4.2.25
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/esm2020/lib/date-picker/date-picker.component.mjs +3 -3
- package/esm2020/lib/date-range-picker/date-range-picker/date-range-picker.component.mjs +13 -5
- package/esm2020/lib/multi-select/multi-select/multi-select.component.mjs +12 -3
- package/esm2020/lib/time-picker/time-picker.component.mjs +44 -17
- package/fesm2015/coreui-angular-pro.mjs +443 -398
- package/fesm2015/coreui-angular-pro.mjs.map +1 -1
- package/fesm2020/coreui-angular-pro.mjs +437 -394
- package/fesm2020/coreui-angular-pro.mjs.map +1 -1
- package/lib/date-range-picker/date-range-picker/date-range-picker.component.d.ts +12 -2
- package/lib/multi-select/multi-select/multi-select.component.d.ts +14 -1
- package/lib/time-picker/time-picker.component.d.ts +18 -5
- package/package.json +1 -1
|
@@ -5039,6 +5039,277 @@ const getDayPeriods = (locale = 'default', options = {}) => {
|
|
|
5039
5039
|
//
|
|
5040
5040
|
// Object.keys(formats).forEach(lang => {const period = getDayPeriods(lang); if (period.am === 'AM') return; console.log(lang, period )})
|
|
5041
5041
|
|
|
5042
|
+
class DropdownDividerDirective {
|
|
5043
|
+
constructor() {
|
|
5044
|
+
}
|
|
5045
|
+
get hostClasses() {
|
|
5046
|
+
return {
|
|
5047
|
+
'dropdown-divider': true,
|
|
5048
|
+
};
|
|
5049
|
+
}
|
|
5050
|
+
}
|
|
5051
|
+
DropdownDividerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DropdownDividerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
5052
|
+
DropdownDividerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: DropdownDividerDirective, selector: "[cDropdownDivider]", host: { properties: { "class": "this.hostClasses" } }, ngImport: i0 });
|
|
5053
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DropdownDividerDirective, decorators: [{
|
|
5054
|
+
type: Directive,
|
|
5055
|
+
args: [{
|
|
5056
|
+
selector: '[cDropdownDivider]'
|
|
5057
|
+
}]
|
|
5058
|
+
}], ctorParameters: function () { return []; }, propDecorators: { hostClasses: [{
|
|
5059
|
+
type: HostBinding,
|
|
5060
|
+
args: ['class']
|
|
5061
|
+
}] } });
|
|
5062
|
+
|
|
5063
|
+
class DropdownHeaderDirective {
|
|
5064
|
+
constructor() {
|
|
5065
|
+
}
|
|
5066
|
+
get hostClasses() {
|
|
5067
|
+
return {
|
|
5068
|
+
'dropdown-header': true,
|
|
5069
|
+
};
|
|
5070
|
+
}
|
|
5071
|
+
}
|
|
5072
|
+
DropdownHeaderDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DropdownHeaderDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
5073
|
+
DropdownHeaderDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: DropdownHeaderDirective, selector: "[cDropdownHeader]", host: { properties: { "class": "this.hostClasses" } }, ngImport: i0 });
|
|
5074
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DropdownHeaderDirective, decorators: [{
|
|
5075
|
+
type: Directive,
|
|
5076
|
+
args: [{
|
|
5077
|
+
selector: '[cDropdownHeader]'
|
|
5078
|
+
}]
|
|
5079
|
+
}], ctorParameters: function () { return []; }, propDecorators: { hostClasses: [{
|
|
5080
|
+
type: HostBinding,
|
|
5081
|
+
args: ['class']
|
|
5082
|
+
}] } });
|
|
5083
|
+
|
|
5084
|
+
class DropdownItemDirective {
|
|
5085
|
+
constructor(dropdownService, dropdown) {
|
|
5086
|
+
this.dropdownService = dropdownService;
|
|
5087
|
+
this.dropdown = dropdown;
|
|
5088
|
+
/**
|
|
5089
|
+
* Configure dropdown-item close dropdown behavior.
|
|
5090
|
+
* @type boolean
|
|
5091
|
+
* @default true
|
|
5092
|
+
*/
|
|
5093
|
+
this.autoClose = true;
|
|
5094
|
+
this._tabIndex = null;
|
|
5095
|
+
}
|
|
5096
|
+
get ariaCurrent() {
|
|
5097
|
+
return this.active ? 'true' : null;
|
|
5098
|
+
}
|
|
5099
|
+
get hostClasses() {
|
|
5100
|
+
return {
|
|
5101
|
+
'dropdown-item': true,
|
|
5102
|
+
active: this.active,
|
|
5103
|
+
disabled: this.disabled
|
|
5104
|
+
};
|
|
5105
|
+
}
|
|
5106
|
+
set tabIndex(value) {
|
|
5107
|
+
this._tabIndex = value;
|
|
5108
|
+
}
|
|
5109
|
+
get tabIndex() {
|
|
5110
|
+
return this.disabled ? '-1' : this._tabIndex;
|
|
5111
|
+
}
|
|
5112
|
+
get isDisabled() {
|
|
5113
|
+
return this.disabled || null;
|
|
5114
|
+
}
|
|
5115
|
+
onClick($event) {
|
|
5116
|
+
if (this.autoClose) {
|
|
5117
|
+
this.dropdownService.toggle({ visible: 'toggle', dropdown: this.dropdown });
|
|
5118
|
+
}
|
|
5119
|
+
}
|
|
5120
|
+
onKeyUp($event) {
|
|
5121
|
+
if ($event.key === 'Enter') {
|
|
5122
|
+
if (this.autoClose) {
|
|
5123
|
+
this.dropdownService.toggle({ visible: false, dropdown: this.dropdown });
|
|
5124
|
+
}
|
|
5125
|
+
}
|
|
5126
|
+
}
|
|
5127
|
+
}
|
|
5128
|
+
DropdownItemDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DropdownItemDirective, deps: [{ token: DropdownService }, { token: DropdownComponent, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5129
|
+
DropdownItemDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: DropdownItemDirective, selector: "[cDropdownItem]", inputs: { active: "active", autoClose: "autoClose", disabled: "disabled", tabIndex: "tabIndex" }, host: { listeners: { "click": "onClick($event)", "keyup": "onKeyUp($event)" }, properties: { "attr.aria-current": "this.ariaCurrent", "class": "this.hostClasses", "attr.tabindex": "this.tabIndex", "attr.aria-disabled": "this.isDisabled" } }, exportAs: ["cDropdownItem"], ngImport: i0 });
|
|
5130
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DropdownItemDirective, decorators: [{
|
|
5131
|
+
type: Directive,
|
|
5132
|
+
args: [{
|
|
5133
|
+
selector: '[cDropdownItem]',
|
|
5134
|
+
exportAs: 'cDropdownItem'
|
|
5135
|
+
}]
|
|
5136
|
+
}], ctorParameters: function () {
|
|
5137
|
+
return [{ type: DropdownService }, { type: DropdownComponent, decorators: [{
|
|
5138
|
+
type: Optional
|
|
5139
|
+
}] }];
|
|
5140
|
+
}, propDecorators: { active: [{
|
|
5141
|
+
type: Input
|
|
5142
|
+
}], autoClose: [{
|
|
5143
|
+
type: Input
|
|
5144
|
+
}], disabled: [{
|
|
5145
|
+
type: Input
|
|
5146
|
+
}], ariaCurrent: [{
|
|
5147
|
+
type: HostBinding,
|
|
5148
|
+
args: ['attr.aria-current']
|
|
5149
|
+
}], hostClasses: [{
|
|
5150
|
+
type: HostBinding,
|
|
5151
|
+
args: ['class']
|
|
5152
|
+
}], tabIndex: [{
|
|
5153
|
+
type: HostBinding,
|
|
5154
|
+
args: ['attr.tabindex']
|
|
5155
|
+
}, {
|
|
5156
|
+
type: Input
|
|
5157
|
+
}], isDisabled: [{
|
|
5158
|
+
type: HostBinding,
|
|
5159
|
+
args: ['attr.aria-disabled']
|
|
5160
|
+
}], onClick: [{
|
|
5161
|
+
type: HostListener,
|
|
5162
|
+
args: ['click', ['$event']]
|
|
5163
|
+
}], onKeyUp: [{
|
|
5164
|
+
type: HostListener,
|
|
5165
|
+
args: ['keyup', ['$event']]
|
|
5166
|
+
}] } });
|
|
5167
|
+
|
|
5168
|
+
class DropdownItemPlainDirective {
|
|
5169
|
+
constructor() {
|
|
5170
|
+
}
|
|
5171
|
+
get hostClasses() {
|
|
5172
|
+
return {
|
|
5173
|
+
'dropdown-item-text': true,
|
|
5174
|
+
};
|
|
5175
|
+
}
|
|
5176
|
+
}
|
|
5177
|
+
DropdownItemPlainDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DropdownItemPlainDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
5178
|
+
DropdownItemPlainDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: DropdownItemPlainDirective, selector: "[cDropdownItemPlain]", host: { properties: { "class": "this.hostClasses" } }, ngImport: i0 });
|
|
5179
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DropdownItemPlainDirective, decorators: [{
|
|
5180
|
+
type: Directive,
|
|
5181
|
+
args: [{
|
|
5182
|
+
selector: '[cDropdownItemPlain]'
|
|
5183
|
+
}]
|
|
5184
|
+
}], ctorParameters: function () { return []; }, propDecorators: { hostClasses: [{
|
|
5185
|
+
type: HostBinding,
|
|
5186
|
+
args: ['class']
|
|
5187
|
+
}] } });
|
|
5188
|
+
|
|
5189
|
+
class DropdownCloseDirective {
|
|
5190
|
+
constructor(dropdownService, dropdown) {
|
|
5191
|
+
this.dropdownService = dropdownService;
|
|
5192
|
+
this.dropdown = dropdown;
|
|
5193
|
+
this._tabIndex = null;
|
|
5194
|
+
}
|
|
5195
|
+
ngAfterViewInit() {
|
|
5196
|
+
var _a;
|
|
5197
|
+
if (this.dropdownComponent) {
|
|
5198
|
+
this.dropdown = this.dropdownComponent;
|
|
5199
|
+
this.dropdownService = (_a = this.dropdownComponent) === null || _a === void 0 ? void 0 : _a.dropdownService;
|
|
5200
|
+
}
|
|
5201
|
+
}
|
|
5202
|
+
get hostClasses() {
|
|
5203
|
+
return {
|
|
5204
|
+
disabled: this.disabled
|
|
5205
|
+
};
|
|
5206
|
+
}
|
|
5207
|
+
set tabIndex(value) {
|
|
5208
|
+
this._tabIndex = value;
|
|
5209
|
+
}
|
|
5210
|
+
get tabIndex() {
|
|
5211
|
+
return this.disabled ? '-1' : this._tabIndex;
|
|
5212
|
+
}
|
|
5213
|
+
get isDisabled() {
|
|
5214
|
+
return this.disabled || null;
|
|
5215
|
+
}
|
|
5216
|
+
onClick($event) {
|
|
5217
|
+
!this.disabled && this.dropdownService.toggle({ visible: false, dropdown: this.dropdown });
|
|
5218
|
+
}
|
|
5219
|
+
onKeyUp($event) {
|
|
5220
|
+
if ($event.key === 'Enter') {
|
|
5221
|
+
!this.disabled && this.dropdownService.toggle({ visible: false, dropdown: this.dropdown });
|
|
5222
|
+
}
|
|
5223
|
+
}
|
|
5224
|
+
}
|
|
5225
|
+
DropdownCloseDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DropdownCloseDirective, deps: [{ token: DropdownService }, { token: DropdownComponent, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5226
|
+
DropdownCloseDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: DropdownCloseDirective, selector: "[cDropdownClose]", inputs: { disabled: "disabled", dropdownComponent: "dropdownComponent", tabIndex: "tabIndex" }, host: { listeners: { "click": "onClick($event)", "keyup": "onKeyUp($event)" }, properties: { "class": "this.hostClasses", "attr.tabindex": "this.tabIndex", "attr.aria-disabled": "this.isDisabled" } }, exportAs: ["cDropdownClose"], ngImport: i0 });
|
|
5227
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DropdownCloseDirective, decorators: [{
|
|
5228
|
+
type: Directive,
|
|
5229
|
+
args: [{
|
|
5230
|
+
selector: '[cDropdownClose]',
|
|
5231
|
+
exportAs: 'cDropdownClose'
|
|
5232
|
+
}]
|
|
5233
|
+
}], ctorParameters: function () {
|
|
5234
|
+
return [{ type: DropdownService }, { type: DropdownComponent, decorators: [{
|
|
5235
|
+
type: Optional
|
|
5236
|
+
}] }];
|
|
5237
|
+
}, propDecorators: { disabled: [{
|
|
5238
|
+
type: Input
|
|
5239
|
+
}], dropdownComponent: [{
|
|
5240
|
+
type: Input
|
|
5241
|
+
}], hostClasses: [{
|
|
5242
|
+
type: HostBinding,
|
|
5243
|
+
args: ['class']
|
|
5244
|
+
}], tabIndex: [{
|
|
5245
|
+
type: HostBinding,
|
|
5246
|
+
args: ['attr.tabindex']
|
|
5247
|
+
}, {
|
|
5248
|
+
type: Input
|
|
5249
|
+
}], isDisabled: [{
|
|
5250
|
+
type: HostBinding,
|
|
5251
|
+
args: ['attr.aria-disabled']
|
|
5252
|
+
}], onClick: [{
|
|
5253
|
+
type: HostListener,
|
|
5254
|
+
args: ['click', ['$event']]
|
|
5255
|
+
}], onKeyUp: [{
|
|
5256
|
+
type: HostListener,
|
|
5257
|
+
args: ['keyup', ['$event']]
|
|
5258
|
+
}] } });
|
|
5259
|
+
|
|
5260
|
+
class DropdownModule {
|
|
5261
|
+
}
|
|
5262
|
+
DropdownModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DropdownModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5263
|
+
DropdownModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: DropdownModule, declarations: [DropdownComponent,
|
|
5264
|
+
DropdownDividerDirective,
|
|
5265
|
+
DropdownHeaderDirective,
|
|
5266
|
+
DropdownItemDirective,
|
|
5267
|
+
DropdownItemPlainDirective,
|
|
5268
|
+
DropdownToggleDirective,
|
|
5269
|
+
DropdownMenuDirective,
|
|
5270
|
+
DropdownCloseDirective], imports: [CommonModule], exports: [DropdownComponent,
|
|
5271
|
+
DropdownDividerDirective,
|
|
5272
|
+
DropdownHeaderDirective,
|
|
5273
|
+
DropdownItemDirective,
|
|
5274
|
+
DropdownItemPlainDirective,
|
|
5275
|
+
DropdownToggleDirective,
|
|
5276
|
+
DropdownMenuDirective,
|
|
5277
|
+
DropdownCloseDirective] });
|
|
5278
|
+
DropdownModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DropdownModule, providers: [
|
|
5279
|
+
DropdownService,
|
|
5280
|
+
], imports: [CommonModule] });
|
|
5281
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DropdownModule, decorators: [{
|
|
5282
|
+
type: NgModule,
|
|
5283
|
+
args: [{
|
|
5284
|
+
declarations: [
|
|
5285
|
+
DropdownComponent,
|
|
5286
|
+
DropdownDividerDirective,
|
|
5287
|
+
DropdownHeaderDirective,
|
|
5288
|
+
DropdownItemDirective,
|
|
5289
|
+
DropdownItemPlainDirective,
|
|
5290
|
+
DropdownToggleDirective,
|
|
5291
|
+
DropdownMenuDirective,
|
|
5292
|
+
DropdownCloseDirective
|
|
5293
|
+
],
|
|
5294
|
+
imports: [
|
|
5295
|
+
CommonModule,
|
|
5296
|
+
],
|
|
5297
|
+
exports: [
|
|
5298
|
+
DropdownComponent,
|
|
5299
|
+
DropdownDividerDirective,
|
|
5300
|
+
DropdownHeaderDirective,
|
|
5301
|
+
DropdownItemDirective,
|
|
5302
|
+
DropdownItemPlainDirective,
|
|
5303
|
+
DropdownToggleDirective,
|
|
5304
|
+
DropdownMenuDirective,
|
|
5305
|
+
DropdownCloseDirective
|
|
5306
|
+
],
|
|
5307
|
+
providers: [
|
|
5308
|
+
DropdownService,
|
|
5309
|
+
]
|
|
5310
|
+
}]
|
|
5311
|
+
}] });
|
|
5312
|
+
|
|
5042
5313
|
class FormSelectDirective {
|
|
5043
5314
|
constructor() {
|
|
5044
5315
|
/**
|
|
@@ -5325,14 +5596,15 @@ class TimePickerComponent {
|
|
|
5325
5596
|
];
|
|
5326
5597
|
this._timeInputValue = (_b = (_a = this.time) === null || _a === void 0 ? void 0 : _a.toLocaleTimeString(this.locale, { timeStyle: this.seconds ? 'medium' : 'short' })) !== null && _b !== void 0 ? _b : '';
|
|
5327
5598
|
this.selectTime = new FormGroup({
|
|
5328
|
-
selectHours: new FormControl({ value: this.hour, disabled: this.disabled }),
|
|
5329
|
-
selectMinutes: new FormControl({ value: this.minute, disabled: this.disabled }),
|
|
5330
|
-
selectSeconds: new FormControl({ value: this.second, disabled: this.disabled }),
|
|
5331
|
-
selectDayPeriod: new FormControl({ value: this.dayPeriod, disabled: this.disabled })
|
|
5332
|
-
});
|
|
5333
|
-
this.timeInput = new FormControl({
|
|
5334
|
-
|
|
5335
|
-
|
|
5599
|
+
selectHours: new FormControl({ value: this.hour, disabled: this.disabled }, { validators: [Validators.min(0)] }),
|
|
5600
|
+
selectMinutes: new FormControl({ value: this.minute, disabled: this.disabled }, Validators.min(0)),
|
|
5601
|
+
selectSeconds: new FormControl({ value: this.second, disabled: this.disabled }, Validators.min(0)),
|
|
5602
|
+
selectDayPeriod: new FormControl({ value: this.dayPeriod, disabled: this.disabled }, Validators.required)
|
|
5603
|
+
}, { validators: [Validators.required] });
|
|
5604
|
+
this.timeInput = new FormControl({
|
|
5605
|
+
value: this.timeInputValue,
|
|
5606
|
+
disabled: this.disabled
|
|
5607
|
+
}, { validators: [Validators.required] });
|
|
5336
5608
|
this._hour = -1;
|
|
5337
5609
|
this._minute = -1;
|
|
5338
5610
|
this._second = -1;
|
|
@@ -5421,7 +5693,7 @@ class TimePickerComponent {
|
|
|
5421
5693
|
return this._time;
|
|
5422
5694
|
}
|
|
5423
5695
|
/**
|
|
5424
|
-
* Toggle the visibility of dropdown menu component.
|
|
5696
|
+
* Toggle the visibility of dropdown timepicker menu component.
|
|
5425
5697
|
* @type boolean
|
|
5426
5698
|
* @default false
|
|
5427
5699
|
*/
|
|
@@ -5441,6 +5713,13 @@ class TimePickerComponent {
|
|
|
5441
5713
|
get timeInputValue() {
|
|
5442
5714
|
return this._timeInputValue;
|
|
5443
5715
|
}
|
|
5716
|
+
get timePickerClasses() {
|
|
5717
|
+
return {
|
|
5718
|
+
'form-control': this.variant === 'select' && this.valid !== undefined,
|
|
5719
|
+
'is-valid': this.valid === true,
|
|
5720
|
+
'is-invalid': this.valid === false
|
|
5721
|
+
};
|
|
5722
|
+
}
|
|
5444
5723
|
set hour(value) {
|
|
5445
5724
|
if (this._hour !== value) {
|
|
5446
5725
|
if (value < 0) {
|
|
@@ -5506,6 +5785,7 @@ class TimePickerComponent {
|
|
|
5506
5785
|
this._second = -1;
|
|
5507
5786
|
this.dayPeriod = 'am';
|
|
5508
5787
|
this.patchSelectTimeValues();
|
|
5788
|
+
this.timeInputValue = '';
|
|
5509
5789
|
}
|
|
5510
5790
|
emitTime(time) {
|
|
5511
5791
|
var _a, _b, _c;
|
|
@@ -5668,7 +5948,7 @@ class TimePickerComponent {
|
|
|
5668
5948
|
handleTimeInputChange($event) {
|
|
5669
5949
|
var _a;
|
|
5670
5950
|
const value = (_a = $event.target) === null || _a === void 0 ? void 0 : _a.value;
|
|
5671
|
-
if (!isValidTime(value)) {
|
|
5951
|
+
if (!value || !isValidTime(value)) {
|
|
5672
5952
|
this.clearTime();
|
|
5673
5953
|
return;
|
|
5674
5954
|
}
|
|
@@ -5678,15 +5958,32 @@ class TimePickerComponent {
|
|
|
5678
5958
|
handleClear($event) {
|
|
5679
5959
|
this.clearTime();
|
|
5680
5960
|
}
|
|
5961
|
+
handleBlur($event) {
|
|
5962
|
+
var _a, _b;
|
|
5963
|
+
if (this.disabled) {
|
|
5964
|
+
return;
|
|
5965
|
+
}
|
|
5966
|
+
(_b = (_a = this.dropdownRef) === null || _a === void 0 ? void 0 : _a.nativeElement) === null || _b === void 0 ? void 0 : _b.classList.remove('show');
|
|
5967
|
+
setTimeout(() => {
|
|
5968
|
+
this.onBlur();
|
|
5969
|
+
}, 100);
|
|
5970
|
+
}
|
|
5971
|
+
handleFocus($event) {
|
|
5972
|
+
var _a, _b;
|
|
5973
|
+
if (this.disabled) {
|
|
5974
|
+
return;
|
|
5975
|
+
}
|
|
5976
|
+
(_b = (_a = this.dropdownRef) === null || _a === void 0 ? void 0 : _a.nativeElement) === null || _b === void 0 ? void 0 : _b.classList.add('show');
|
|
5977
|
+
}
|
|
5681
5978
|
}
|
|
5682
5979
|
TimePickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TimePickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5683
|
-
TimePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: TimePickerComponent, selector: "c-time-picker", inputs: { cleaner: "cleaner", dateTimeFormatOptions: "dateTimeFormatOptions", disabled: "disabled", filterHours: "filterHours", filterMinutes: "filterMinutes", filterSeconds: "filterSeconds", indicator: "indicator", inputReadOnly: "inputReadOnly", locale: "locale", placeholder: "placeholder", seconds: "seconds", size: "size", time: "time", variant: "variant", visible: "visible" }, outputs: { timeChange: "timeChange" }, host: { listeners: { "blur": "onBlur()" } }, providers: [
|
|
5980
|
+
TimePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: TimePickerComponent, selector: "c-time-picker", inputs: { cleaner: "cleaner", dateTimeFormatOptions: "dateTimeFormatOptions", disabled: "disabled", filterHours: "filterHours", filterMinutes: "filterMinutes", filterSeconds: "filterSeconds", indicator: "indicator", inputReadOnly: "inputReadOnly", locale: "locale", placeholder: "placeholder", seconds: "seconds", size: "size", time: "time", variant: "variant", valid: "valid", visible: "visible" }, outputs: { timeChange: "timeChange" }, host: { listeners: { "blur": "onBlur()" } }, providers: [
|
|
5684
5981
|
{
|
|
5685
5982
|
provide: NG_VALUE_ACCESSOR,
|
|
5686
5983
|
useExisting: forwardRef(() => TimePickerComponent),
|
|
5687
5984
|
multi: true
|
|
5688
5985
|
}
|
|
5689
|
-
], queries: [{ propertyName: "contentTemplates", predicate: TemplateIdDirective, descendants: true }], viewQueries: [{ propertyName: "
|
|
5986
|
+
], queries: [{ propertyName: "contentTemplates", predicate: TemplateIdDirective, descendants: true }], viewQueries: [{ propertyName: "dropdownRef", first: true, predicate: DropdownComponent, descendants: true, read: ElementRef }], exportAs: ["cTimePicker"], usesOnChanges: true, ngImport: i0, template: "<div class=\"date-picker-timepickers\" *ngIf=\"variant==='select'\">\n <div class=\"picker time-picker\">\n <div [formGroup]=\"selectTime\" class=\"time-picker-body\" [ngClass]=\"timePickerClasses\">\n <span class=\"time-picker-inline-icon\"></span>\n <select [attr.disabled]=\"disabled || null\" cSelect class=\"ms-0\" formControlName=\"selectHours\" (ngModelChange)=\"handleSelectHoursChange($event)\" (blur)=\"onBlur()\" [sizing]=\"size ?? ''\">\n <option *ngFor=\"let hour of listOfHours12; index as i; trackBy: trackByHour\" [ngValue]=\"hour.value\" [attr.disabled]=\"hour.disabled || null\">{{hour.label}}</option>\n </select>\n {{' :'}}<select [attr.disabled]=\"disabled || null\" cSelect class=\"ms-0\" formControlName=\"selectMinutes\" (ngModelChange)=\"handleSelectMinutesChange($event)\" (blur)=\"onBlur()\" [sizing]=\"size ?? ''\">\n <option *ngFor=\"let minute of listOfMinutes\" [ngValue]=\"minute.value\" [attr.disabled]=\"minute.disabled || null\">{{minute.label}}</option>\n </select>\n <ng-template [ngIf]=\"seconds\">\n {{' :'}}<select [attr.disabled]=\"disabled || null\" cSelect class=\"ms-0\" formControlName=\"selectSeconds\" (ngModelChange)=\"handleSelectSecondsChange($event)\" (blur)=\"onBlur()\" [sizing]=\"size ?? ''\">\n <option *ngFor=\"let second of listOfSeconds\" [ngValue]=\"second.value\" [attr.disabled]=\"second.disabled || null\">{{second.label}}</option>\n </select>\n </ng-template>\n <ng-template [ngIf]=\"hour12\">\n <select [attr.disabled]=\"disabled || null\" cSelect class=\"ms-0\" formControlName=\"selectDayPeriod\" (ngModelChange)=\"handleSelectDayPeriodChange($event)\" (blur)=\"onBlur()\" [sizing]=\"size ?? ''\">\n <option *ngFor=\"let dayPeriod of dayPeriods\" [ngValue]=\"dayPeriod.value\" class=\"time-picker-roll-cell\">{{dayPeriod.label}}</option>\n </select>\n </ng-template>\n </div>\n </div>\n</div>\n\n<c-dropdown #dropdown=\"cDropdown\" [autoClose]=\"'outside'\" class=\"time-picker picker\" [ngClass]=\"timePickerClasses\" *ngIf=\"variant==='roll'\" [visible]=\"visible\">\n <c-input-group [caret]=\"false\"\n [disabled]=\"disabled ?? dropdown.visible\"\n [sizing]=\"size ?? ''\"\n cDropdownToggle\n class=\"picker-input-group\">\n <input (blur)=\"handleBlur($event);\"\n (change)=\"handleTimeInputChange($event)\"\n (focus)=\"handleFocus($event)\"\n [formControl]=\"timeInput\"\n [placeholder]=\"placeholder\"\n cFormControl\n [attr.tabindex]=\"disabled ? -1 : 0\"\n [attr.disabled]=\"disabled ? '' : null\"\n [attr.pattern]=\"hour12 ? '(((0[1-9])|(1[0-2])):([0-5])([0-9])\\\\s(A|P)M)' : '([01]?[0-9]|2[0-3]):[0-5][0-9]'\"\n [readonly]=\"inputReadOnly ?? null\"\n [valid]=\"valid\"\n >\n <span *ngIf=\"indicator || cleaner\" cInputGroupText>\n <span *ngIf=\"indicator\" class=\"picker-input-group-indicator\">\n <span class=\"picker-input-group-icon time-picker-input-icon\"></span>\n </span>\n <span (click)=\"!disabled && handleClear($event)\" *ngIf=\"cleaner && time && !disabled\" class=\"picker-input-group-cleaner\" role=\"button\">\n <span class=\"picker-input-group-icon time-picker-cleaner-icon\"></span>\n </span>\n </span>\n\n </c-input-group>\n <div cDropdownMenu #dropdownMenu=\"cDropdownMenu\">\n <div class=\"time-picker-body time-picker-roll\" style=\"position: relative;\">\n <c-time-picker-roll-col\n [elements]=\"listOfHours12\"\n [selected]=\"hour\"\n (selectedChange)=\"handleSelectHoursChange($event)\"\n [disabled]=\"disabled\"\n [refresh]=\"dropdownMenu.visible\"\n role=\"listbox\"\n >\n </c-time-picker-roll-col>\n <c-time-picker-roll-col\n [elements]=\"listOfMinutes\"\n [selected]=\"minute\"\n (selectedChange)=\"handleSelectMinutesChange($event)\"\n [disabled]=\"disabled\"\n [refresh]=\"dropdownMenu.visible\"\n role=\"listbox\"\n >\n </c-time-picker-roll-col>\n <c-time-picker-roll-col\n *ngIf=\"seconds\"\n [elements]=\"listOfSeconds\"\n [selected]=\"second\"\n (selectedChange)=\"handleSelectSecondsChange($event)\"\n [disabled]=\"disabled\"\n [refresh]=\"dropdownMenu.visible\"\n role=\"listbox\"\n >\n </c-time-picker-roll-col>\n <c-time-picker-roll-am-pm\n *ngIf=\"hour12\" [elements]=\"dayPeriods\"\n [selected]=\"dayPeriod\"\n (selectedChange)=\"handleSelectDayPeriodChange($event)\"\n [disabled]=\"disabled\"\n [refresh]=\"dropdownMenu.visible\"\n role=\"listbox\"\n >\n </c-time-picker-roll-am-pm>\n </div>\n <div *ngIf=\"templates?.timePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.timePickerFooter; context: {$implicit: dropdown}\"></ng-container>\n </div>\n </div>\n</c-dropdown>\n", styles: [".disabled{pointer-events:none}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: FormControlDirective, selector: "input[cFormControl], textarea[cFormControl]", inputs: ["sizing", "valid", "type", "plaintext"] }, { kind: "directive", type: FormSelectDirective, selector: "select[cSelect]", inputs: ["sizing", "valid"] }, { kind: "component", type: InputGroupComponent, selector: "c-input-group", inputs: ["sizing"] }, { kind: "directive", type: InputGroupTextDirective, selector: "[cInputGroupText]" }, { kind: "component", type: DropdownComponent, selector: "c-dropdown", inputs: ["alignment", "autoClose", "dark", "direction", "placement", "popper", "popperOptions", "variant", "visible"], outputs: ["visibleChange"], exportAs: ["cDropdown"] }, { kind: "directive", type: DropdownToggleDirective, selector: "[cDropdownToggle]", inputs: ["dropdownComponent", "disabled", "caret", "split"], exportAs: ["cDropdownToggle"] }, { kind: "directive", type: DropdownMenuDirective, selector: "[cDropdownMenu]", inputs: ["alignment", "visible", "dark"], exportAs: ["cDropdownMenu"] }, { kind: "component", type: TimePickerRollColComponent, selector: "c-time-picker-roll-col", inputs: ["disabled", "elements", "onClick", "selected", "refresh"], outputs: ["selectedChange"], exportAs: ["cTimePickerRollCol"] }, { kind: "component", type: TimePickerRollAmPmComponent, selector: "c-time-picker-roll-am-pm", inputs: ["disabled", "elements", "onClick", "selected", "refresh"], outputs: ["selectedChange"] }] });
|
|
5690
5987
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TimePickerComponent, decorators: [{
|
|
5691
5988
|
type: Component,
|
|
5692
5989
|
args: [{ selector: 'c-time-picker', exportAs: 'cTimePicker', providers: [
|
|
@@ -5695,7 +5992,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
5695
5992
|
useExisting: forwardRef(() => TimePickerComponent),
|
|
5696
5993
|
multi: true
|
|
5697
5994
|
}
|
|
5698
|
-
], template: "<div class=\"date-picker-timepickers\" *ngIf=\"variant==='select'\">\
|
|
5995
|
+
], template: "<div class=\"date-picker-timepickers\" *ngIf=\"variant==='select'\">\n <div class=\"picker time-picker\">\n <div [formGroup]=\"selectTime\" class=\"time-picker-body\" [ngClass]=\"timePickerClasses\">\n <span class=\"time-picker-inline-icon\"></span>\n <select [attr.disabled]=\"disabled || null\" cSelect class=\"ms-0\" formControlName=\"selectHours\" (ngModelChange)=\"handleSelectHoursChange($event)\" (blur)=\"onBlur()\" [sizing]=\"size ?? ''\">\n <option *ngFor=\"let hour of listOfHours12; index as i; trackBy: trackByHour\" [ngValue]=\"hour.value\" [attr.disabled]=\"hour.disabled || null\">{{hour.label}}</option>\n </select>\n {{' :'}}<select [attr.disabled]=\"disabled || null\" cSelect class=\"ms-0\" formControlName=\"selectMinutes\" (ngModelChange)=\"handleSelectMinutesChange($event)\" (blur)=\"onBlur()\" [sizing]=\"size ?? ''\">\n <option *ngFor=\"let minute of listOfMinutes\" [ngValue]=\"minute.value\" [attr.disabled]=\"minute.disabled || null\">{{minute.label}}</option>\n </select>\n <ng-template [ngIf]=\"seconds\">\n {{' :'}}<select [attr.disabled]=\"disabled || null\" cSelect class=\"ms-0\" formControlName=\"selectSeconds\" (ngModelChange)=\"handleSelectSecondsChange($event)\" (blur)=\"onBlur()\" [sizing]=\"size ?? ''\">\n <option *ngFor=\"let second of listOfSeconds\" [ngValue]=\"second.value\" [attr.disabled]=\"second.disabled || null\">{{second.label}}</option>\n </select>\n </ng-template>\n <ng-template [ngIf]=\"hour12\">\n <select [attr.disabled]=\"disabled || null\" cSelect class=\"ms-0\" formControlName=\"selectDayPeriod\" (ngModelChange)=\"handleSelectDayPeriodChange($event)\" (blur)=\"onBlur()\" [sizing]=\"size ?? ''\">\n <option *ngFor=\"let dayPeriod of dayPeriods\" [ngValue]=\"dayPeriod.value\" class=\"time-picker-roll-cell\">{{dayPeriod.label}}</option>\n </select>\n </ng-template>\n </div>\n </div>\n</div>\n\n<c-dropdown #dropdown=\"cDropdown\" [autoClose]=\"'outside'\" class=\"time-picker picker\" [ngClass]=\"timePickerClasses\" *ngIf=\"variant==='roll'\" [visible]=\"visible\">\n <c-input-group [caret]=\"false\"\n [disabled]=\"disabled ?? dropdown.visible\"\n [sizing]=\"size ?? ''\"\n cDropdownToggle\n class=\"picker-input-group\">\n <input (blur)=\"handleBlur($event);\"\n (change)=\"handleTimeInputChange($event)\"\n (focus)=\"handleFocus($event)\"\n [formControl]=\"timeInput\"\n [placeholder]=\"placeholder\"\n cFormControl\n [attr.tabindex]=\"disabled ? -1 : 0\"\n [attr.disabled]=\"disabled ? '' : null\"\n [attr.pattern]=\"hour12 ? '(((0[1-9])|(1[0-2])):([0-5])([0-9])\\\\s(A|P)M)' : '([01]?[0-9]|2[0-3]):[0-5][0-9]'\"\n [readonly]=\"inputReadOnly ?? null\"\n [valid]=\"valid\"\n >\n <span *ngIf=\"indicator || cleaner\" cInputGroupText>\n <span *ngIf=\"indicator\" class=\"picker-input-group-indicator\">\n <span class=\"picker-input-group-icon time-picker-input-icon\"></span>\n </span>\n <span (click)=\"!disabled && handleClear($event)\" *ngIf=\"cleaner && time && !disabled\" class=\"picker-input-group-cleaner\" role=\"button\">\n <span class=\"picker-input-group-icon time-picker-cleaner-icon\"></span>\n </span>\n </span>\n\n </c-input-group>\n <div cDropdownMenu #dropdownMenu=\"cDropdownMenu\">\n <div class=\"time-picker-body time-picker-roll\" style=\"position: relative;\">\n <c-time-picker-roll-col\n [elements]=\"listOfHours12\"\n [selected]=\"hour\"\n (selectedChange)=\"handleSelectHoursChange($event)\"\n [disabled]=\"disabled\"\n [refresh]=\"dropdownMenu.visible\"\n role=\"listbox\"\n >\n </c-time-picker-roll-col>\n <c-time-picker-roll-col\n [elements]=\"listOfMinutes\"\n [selected]=\"minute\"\n (selectedChange)=\"handleSelectMinutesChange($event)\"\n [disabled]=\"disabled\"\n [refresh]=\"dropdownMenu.visible\"\n role=\"listbox\"\n >\n </c-time-picker-roll-col>\n <c-time-picker-roll-col\n *ngIf=\"seconds\"\n [elements]=\"listOfSeconds\"\n [selected]=\"second\"\n (selectedChange)=\"handleSelectSecondsChange($event)\"\n [disabled]=\"disabled\"\n [refresh]=\"dropdownMenu.visible\"\n role=\"listbox\"\n >\n </c-time-picker-roll-col>\n <c-time-picker-roll-am-pm\n *ngIf=\"hour12\" [elements]=\"dayPeriods\"\n [selected]=\"dayPeriod\"\n (selectedChange)=\"handleSelectDayPeriodChange($event)\"\n [disabled]=\"disabled\"\n [refresh]=\"dropdownMenu.visible\"\n role=\"listbox\"\n >\n </c-time-picker-roll-am-pm>\n </div>\n <div *ngIf=\"templates?.timePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.timePickerFooter; context: {$implicit: dropdown}\"></ng-container>\n </div>\n </div>\n</c-dropdown>\n", styles: [".disabled{pointer-events:none}\n"] }]
|
|
5699
5996
|
}], ctorParameters: function () { return []; }, propDecorators: { cleaner: [{
|
|
5700
5997
|
type: Input
|
|
5701
5998
|
}], dateTimeFormatOptions: [{
|
|
@@ -5724,6 +6021,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
5724
6021
|
type: Input
|
|
5725
6022
|
}], variant: [{
|
|
5726
6023
|
type: Input
|
|
6024
|
+
}], valid: [{
|
|
6025
|
+
type: Input
|
|
5727
6026
|
}], visible: [{
|
|
5728
6027
|
type: Input
|
|
5729
6028
|
}], timeChange: [{
|
|
@@ -5731,9 +6030,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
5731
6030
|
}], onBlur: [{
|
|
5732
6031
|
type: HostListener,
|
|
5733
6032
|
args: ['blur']
|
|
5734
|
-
}],
|
|
6033
|
+
}], dropdownRef: [{
|
|
5735
6034
|
type: ViewChild,
|
|
5736
|
-
args: [
|
|
6035
|
+
args: [DropdownComponent, { read: ElementRef }]
|
|
5737
6036
|
}], contentTemplates: [{
|
|
5738
6037
|
type: ContentChildren,
|
|
5739
6038
|
args: [TemplateIdDirective, { descendants: true }]
|
|
@@ -5925,7 +6224,7 @@ class DateRangePickerComponent {
|
|
|
5925
6224
|
// return this._timepicker;
|
|
5926
6225
|
}
|
|
5927
6226
|
/**
|
|
5928
|
-
* Toggle the visibility of the component.
|
|
6227
|
+
* Toggle the visibility of the dropdown date-picker component.
|
|
5929
6228
|
* @type boolean
|
|
5930
6229
|
* @default false
|
|
5931
6230
|
*/
|
|
@@ -6060,6 +6359,12 @@ class DateRangePickerComponent {
|
|
|
6060
6359
|
get inputEndHoverValue() {
|
|
6061
6360
|
return this._inputEndHoverValue;
|
|
6062
6361
|
}
|
|
6362
|
+
get datePickerClasses() {
|
|
6363
|
+
return {
|
|
6364
|
+
'is-valid': this.valid === true,
|
|
6365
|
+
'is-invalid': this.valid === false
|
|
6366
|
+
};
|
|
6367
|
+
}
|
|
6063
6368
|
formatDate(date) {
|
|
6064
6369
|
return this.format
|
|
6065
6370
|
? format(date, this.format)
|
|
@@ -6227,13 +6532,13 @@ class DateRangePickerComponent {
|
|
|
6227
6532
|
}
|
|
6228
6533
|
}
|
|
6229
6534
|
DateRangePickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DateRangePickerComponent, deps: [{ token: i1$2.BreakpointObserver }], target: i0.ɵɵFactoryTarget.Component });
|
|
6230
|
-
DateRangePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: DateRangePickerComponent, selector: "c-date-range-picker", inputs: { dayFormat: "dayFormat", calendars: "calendars", cleaner: "cleaner", format: "format", indicator: "indicator", inputReadOnly: "inputReadOnly", navYearFirst: "navYearFirst", placeholder: "placeholder", ranges: "ranges", rangesButtonsColor: "rangesButtonsColor", rangesButtonsSize: "rangesButtonsSize", rangesButtonsVariant: "rangesButtonsVariant", separator: "separator", size: "size", timepicker: "timepicker", visible: "visible", startDate: "startDate", endDate: "endDate", calendarDate: "calendarDate", disabledDates: "disabledDates", firstDayOfWeek: "firstDayOfWeek", locale: "locale", maxDate: "maxDate", minDate: "minDate", navigation: "navigation", range: "range", dateFilter: "dateFilter", disabled: "disabled", value: "value", weekdayFormat: "weekdayFormat", popperjsOptions: ["popperOptions", "popperjsOptions"] }, outputs: { valueChange: "valueChange", calendarCellHover: "calendarCellHover", calendarDateChange: "calendarDateChange", endDateChange: "endDateChange", startDateChange: "startDateChange" }, host: { listeners: { "blur": "onBlur()" } }, providers: [
|
|
6535
|
+
DateRangePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: DateRangePickerComponent, selector: "c-date-range-picker", inputs: { dayFormat: "dayFormat", calendars: "calendars", cleaner: "cleaner", format: "format", indicator: "indicator", inputReadOnly: "inputReadOnly", navYearFirst: "navYearFirst", placeholder: "placeholder", ranges: "ranges", rangesButtonsColor: "rangesButtonsColor", rangesButtonsSize: "rangesButtonsSize", rangesButtonsVariant: "rangesButtonsVariant", separator: "separator", size: "size", timepicker: "timepicker", valid: "valid", visible: "visible", startDate: "startDate", endDate: "endDate", calendarDate: "calendarDate", disabledDates: "disabledDates", firstDayOfWeek: "firstDayOfWeek", locale: "locale", maxDate: "maxDate", minDate: "minDate", navigation: "navigation", range: "range", dateFilter: "dateFilter", disabled: "disabled", value: "value", weekdayFormat: "weekdayFormat", popperjsOptions: ["popperOptions", "popperjsOptions"] }, outputs: { valueChange: "valueChange", calendarCellHover: "calendarCellHover", calendarDateChange: "calendarDateChange", endDateChange: "endDateChange", startDateChange: "startDateChange" }, host: { listeners: { "blur": "onBlur()" } }, providers: [
|
|
6231
6536
|
{
|
|
6232
6537
|
provide: NG_VALUE_ACCESSOR,
|
|
6233
6538
|
useExisting: forwardRef(() => DateRangePickerComponent),
|
|
6234
6539
|
multi: true
|
|
6235
6540
|
}
|
|
6236
|
-
], queries: [{ propertyName: "contentTemplates", predicate: TemplateIdDirective, descendants: true }], viewQueries: [{ propertyName: "startDateElementRef", first: true, predicate: ["startDateElementRef"], descendants: true }, { propertyName: "endDateElementRef", first: true, predicate: ["endDateElementRef"], descendants: true }], exportAs: ["cDateRangePicker"], usesOnChanges: true, ngImport: i0, template: "<c-dropdown #dropdown=\"cDropdown\" [autoClose]=\"'outside'\" class=\"date-picker picker\" [visible]=\"visible\" [popperOptions]=\"popperjsOptions\">\
|
|
6541
|
+
], queries: [{ propertyName: "contentTemplates", predicate: TemplateIdDirective, descendants: true }], viewQueries: [{ propertyName: "startDateElementRef", first: true, predicate: ["startDateElementRef"], descendants: true }, { propertyName: "endDateElementRef", first: true, predicate: ["endDateElementRef"], descendants: true }], exportAs: ["cDateRangePicker"], usesOnChanges: true, ngImport: i0, template: "<c-dropdown #dropdown=\"cDropdown\" [autoClose]=\"'outside'\" class=\"date-picker picker\" [ngClass]=\"datePickerClasses\" [visible]=\"visible\" [popperOptions]=\"popperjsOptions\">\n <c-input-group [caret]=\"false\"\n [disabled]=\"disabled ?? dropdown.visible\"\n [sizing]=\"size ?? ''\"\n cDropdownToggle\n class=\"picker-input-group\"\n >\n <input (change)=\"handleStartDateInputChange($event)\"\n [formControl]=\"startDateInput\"\n [ngClass]=\"{hover: !!inputStartHoverValue}\"\n [placeholder]=\"startDatePlaceholder ?? placeholder[0]\"\n cFormControl\n #startDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n [attr.disabled]=\"disabled ? '' : null\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [valid]=\"range ? undefined : valid\"\n >\n <span *ngIf=\"range && separator !== false\" cInputGroupText>\n <span class=\"picker-input-group-icon date-picker-arrow-icon\"></span>\n </span>\n <input (change)=\"handleEndDateInputChange($event)\"\n *ngIf=\"range\"\n [formControl]=\"endDateInput\"\n [ngClass]=\"{hover: !!inputEndHoverValue}\"\n [placeholder]=\"endDatePlaceholder ?? placeholder[1]\"\n cFormControl\n #endDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n [attr.disabled]=\"disabled ? '' : null\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [valid]=\"valid\"\n >\n <span *ngIf=\"indicator || cleaner\" cInputGroupText>\n <span *ngIf=\"indicator\" class=\"picker-input-group-indicator\">\n <span class=\"picker-input-group-icon date-picker-input-icon\"></span>\n </span>\n <span (click)=\"!disabled && handleClear($event)\" *ngIf=\"cleaner && startDateElementRef.value && !disabled\" class=\"picker-input-group-cleaner\" role=\"button\">\n <span class=\"picker-input-group-icon date-picker-cleaner-icon\"></span>\n </span>\n </span>\n\n </c-input-group>\n <div cDropdownMenu>\n <div class=\"date-picker-body\">\n <ng-template [ngIf]=\"!isMobile\">\n <div *ngIf=\"ranges\" class=\"date-picker-ranges\">\n <button (click)=\"setCustomRange(customRange)\"\n *ngFor=\"let customRange of customRanges\"\n [color]=\"rangesButtonsColor\"\n [size]=\"rangesButtonsSize\"\n [variant]=\"rangesButtonsVariant\"\n cButton>\n {{getCustomRangeKey(customRange)}}\n </button>\n </div>\n </ng-template>\n <c-calendar\n (calendarCellHover)=\"handleCalendarCellHover($event)\"\n (calendarDateChange)=\"handleCalendarDateChange($event)\"\n (endDateChange)=\"handleEndDateChange($event)\"\n (startDateChange)=\"handleStartDateChange($event)\"\n [calendarDate]=\"calendarDate\"\n [calendars]=\"isMobile ? 1 : calendars\"\n [dateFilter]=\"dateFilter\"\n [disabledDates]=\"disabledDates\"\n [endDate]=\"endDate\"\n [firstDayOfWeek]=\"firstDayOfWeek\"\n [locale]=\"locale\"\n [maxDate]=\"maxDate\"\n [minDate]=\"minDate\"\n [navigation]=\"navigation\"\n [range]=\"range\"\n [startDate]=\"startDate\"\n [navYearFirst]=\"navYearFirst\"\n [dayFormat]=\"dayFormat\"\n [weekdayFormat]=\"weekdayFormat\"\n class=\"date-picker-calendars\"\n ></c-calendar>\n <div *ngIf=\"false && timepicker\" class=\"date-picker-timepickers\">\n <!-- todo-->\n <c-time-picker\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!startDate\"\n [time]=\"startDate ?? undefined\"\n (timeChange)=\"handleStartTimeChange($event)\"\n ></c-time-picker>\n <c-time-picker\n *ngIf=\"range\"\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!endDate\"\n [time]=\"endDate ?? undefined\"\n (timeChange)=\"handleEndTimeChange($event)\"\n ></c-time-picker>\n </div>\n </div>\n <div *ngIf=\"templates?.datePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.datePickerFooter; context: {$implicit: dropdown}\"></ng-container>\n </div>\n </div>\n <ng-content></ng-content>\n</c-dropdown>\n", styles: [""], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: ButtonDirective, selector: "[cButton]", inputs: ["active", "color", "disabled", "shape", "size", "type", "variant"], exportAs: ["cButton"] }, { kind: "component", type: CalendarComponent, selector: "c-calendar", inputs: ["calendarDate", "calendars", "dayFormat", "disabledDates", "startDate", "endDate", "firstDayOfWeek", "locale", "maxDate", "minDate", "navigation", "navYearFirst", "range", "view", "weekdayFormat", "dateFilter"], outputs: ["calendarCellHover", "calendarDateChange", "endDateChange", "startDateChange", "viewChange"], exportAs: ["cCalendar"] }, { kind: "directive", type: FormControlDirective, selector: "input[cFormControl], textarea[cFormControl]", inputs: ["sizing", "valid", "type", "plaintext"] }, { kind: "component", type: InputGroupComponent, selector: "c-input-group", inputs: ["sizing"] }, { kind: "directive", type: InputGroupTextDirective, selector: "[cInputGroupText]" }, { kind: "component", type: DropdownComponent, selector: "c-dropdown", inputs: ["alignment", "autoClose", "dark", "direction", "placement", "popper", "popperOptions", "variant", "visible"], outputs: ["visibleChange"], exportAs: ["cDropdown"] }, { kind: "directive", type: DropdownToggleDirective, selector: "[cDropdownToggle]", inputs: ["dropdownComponent", "disabled", "caret", "split"], exportAs: ["cDropdownToggle"] }, { kind: "directive", type: DropdownMenuDirective, selector: "[cDropdownMenu]", inputs: ["alignment", "visible", "dark"], exportAs: ["cDropdownMenu"] }, { kind: "component", type: TimePickerComponent, selector: "c-time-picker", inputs: ["cleaner", "dateTimeFormatOptions", "disabled", "filterHours", "filterMinutes", "filterSeconds", "indicator", "inputReadOnly", "locale", "placeholder", "seconds", "size", "time", "variant", "valid", "visible"], outputs: ["timeChange"], exportAs: ["cTimePicker"] }] });
|
|
6237
6542
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DateRangePickerComponent, decorators: [{
|
|
6238
6543
|
type: Component,
|
|
6239
6544
|
args: [{ selector: 'c-date-range-picker', exportAs: 'cDateRangePicker', providers: [
|
|
@@ -6242,7 +6547,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
6242
6547
|
useExisting: forwardRef(() => DateRangePickerComponent),
|
|
6243
6548
|
multi: true
|
|
6244
6549
|
}
|
|
6245
|
-
], template: "<c-dropdown #dropdown=\"cDropdown\" [autoClose]=\"'outside'\" class=\"date-picker picker\" [visible]=\"visible\" [popperOptions]=\"popperjsOptions\">\
|
|
6550
|
+
], template: "<c-dropdown #dropdown=\"cDropdown\" [autoClose]=\"'outside'\" class=\"date-picker picker\" [ngClass]=\"datePickerClasses\" [visible]=\"visible\" [popperOptions]=\"popperjsOptions\">\n <c-input-group [caret]=\"false\"\n [disabled]=\"disabled ?? dropdown.visible\"\n [sizing]=\"size ?? ''\"\n cDropdownToggle\n class=\"picker-input-group\"\n >\n <input (change)=\"handleStartDateInputChange($event)\"\n [formControl]=\"startDateInput\"\n [ngClass]=\"{hover: !!inputStartHoverValue}\"\n [placeholder]=\"startDatePlaceholder ?? placeholder[0]\"\n cFormControl\n #startDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n [attr.disabled]=\"disabled ? '' : null\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [valid]=\"range ? undefined : valid\"\n >\n <span *ngIf=\"range && separator !== false\" cInputGroupText>\n <span class=\"picker-input-group-icon date-picker-arrow-icon\"></span>\n </span>\n <input (change)=\"handleEndDateInputChange($event)\"\n *ngIf=\"range\"\n [formControl]=\"endDateInput\"\n [ngClass]=\"{hover: !!inputEndHoverValue}\"\n [placeholder]=\"endDatePlaceholder ?? placeholder[1]\"\n cFormControl\n #endDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n [attr.disabled]=\"disabled ? '' : null\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [valid]=\"valid\"\n >\n <span *ngIf=\"indicator || cleaner\" cInputGroupText>\n <span *ngIf=\"indicator\" class=\"picker-input-group-indicator\">\n <span class=\"picker-input-group-icon date-picker-input-icon\"></span>\n </span>\n <span (click)=\"!disabled && handleClear($event)\" *ngIf=\"cleaner && startDateElementRef.value && !disabled\" class=\"picker-input-group-cleaner\" role=\"button\">\n <span class=\"picker-input-group-icon date-picker-cleaner-icon\"></span>\n </span>\n </span>\n\n </c-input-group>\n <div cDropdownMenu>\n <div class=\"date-picker-body\">\n <ng-template [ngIf]=\"!isMobile\">\n <div *ngIf=\"ranges\" class=\"date-picker-ranges\">\n <button (click)=\"setCustomRange(customRange)\"\n *ngFor=\"let customRange of customRanges\"\n [color]=\"rangesButtonsColor\"\n [size]=\"rangesButtonsSize\"\n [variant]=\"rangesButtonsVariant\"\n cButton>\n {{getCustomRangeKey(customRange)}}\n </button>\n </div>\n </ng-template>\n <c-calendar\n (calendarCellHover)=\"handleCalendarCellHover($event)\"\n (calendarDateChange)=\"handleCalendarDateChange($event)\"\n (endDateChange)=\"handleEndDateChange($event)\"\n (startDateChange)=\"handleStartDateChange($event)\"\n [calendarDate]=\"calendarDate\"\n [calendars]=\"isMobile ? 1 : calendars\"\n [dateFilter]=\"dateFilter\"\n [disabledDates]=\"disabledDates\"\n [endDate]=\"endDate\"\n [firstDayOfWeek]=\"firstDayOfWeek\"\n [locale]=\"locale\"\n [maxDate]=\"maxDate\"\n [minDate]=\"minDate\"\n [navigation]=\"navigation\"\n [range]=\"range\"\n [startDate]=\"startDate\"\n [navYearFirst]=\"navYearFirst\"\n [dayFormat]=\"dayFormat\"\n [weekdayFormat]=\"weekdayFormat\"\n class=\"date-picker-calendars\"\n ></c-calendar>\n <div *ngIf=\"false && timepicker\" class=\"date-picker-timepickers\">\n <!-- todo-->\n <c-time-picker\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!startDate\"\n [time]=\"startDate ?? undefined\"\n (timeChange)=\"handleStartTimeChange($event)\"\n ></c-time-picker>\n <c-time-picker\n *ngIf=\"range\"\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!endDate\"\n [time]=\"endDate ?? undefined\"\n (timeChange)=\"handleEndTimeChange($event)\"\n ></c-time-picker>\n </div>\n </div>\n <div *ngIf=\"templates?.datePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.datePickerFooter; context: {$implicit: dropdown}\"></ng-container>\n </div>\n </div>\n <ng-content></ng-content>\n</c-dropdown>\n" }]
|
|
6246
6551
|
}], ctorParameters: function () { return [{ type: i1$2.BreakpointObserver }]; }, propDecorators: { dayFormat: [{
|
|
6247
6552
|
type: Input
|
|
6248
6553
|
}], calendars: [{
|
|
@@ -6273,6 +6578,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
6273
6578
|
type: Input
|
|
6274
6579
|
}], timepicker: [{
|
|
6275
6580
|
type: Input
|
|
6581
|
+
}], valid: [{
|
|
6582
|
+
type: Input
|
|
6276
6583
|
}], visible: [{
|
|
6277
6584
|
type: Input
|
|
6278
6585
|
}], startDate: [{
|
|
@@ -6551,430 +6858,159 @@ class FormCheckInputDirective {
|
|
|
6551
6858
|
const newValue = coerceBooleanProperty(value);
|
|
6552
6859
|
if (this._indeterminate !== newValue) {
|
|
6553
6860
|
this._indeterminate = newValue;
|
|
6554
|
-
this.renderer.setProperty(this.hostElement.nativeElement, 'indeterminate', newValue);
|
|
6555
|
-
}
|
|
6556
|
-
}
|
|
6557
|
-
;
|
|
6558
|
-
get indeterminate() {
|
|
6559
|
-
return this._indeterminate;
|
|
6560
|
-
}
|
|
6561
|
-
get hostClasses() {
|
|
6562
|
-
return {
|
|
6563
|
-
'form-check-input': true,
|
|
6564
|
-
'is-valid': this.valid === true,
|
|
6565
|
-
'is-invalid': this.valid === false
|
|
6566
|
-
};
|
|
6567
|
-
}
|
|
6568
|
-
get checked() {
|
|
6569
|
-
var _a, _b;
|
|
6570
|
-
return (_b = (_a = this.hostElement) === null || _a === void 0 ? void 0 : _a.nativeElement) === null || _b === void 0 ? void 0 : _b.checked;
|
|
6571
|
-
}
|
|
6572
|
-
}
|
|
6573
|
-
FormCheckInputDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: FormCheckInputDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6574
|
-
FormCheckInputDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: FormCheckInputDirective, selector: "input[cFormCheckInput]", inputs: { type: "type", indeterminate: "indeterminate", valid: "valid" }, host: { properties: { "attr.type": "this.type", "class": "this.hostClasses" } }, ngImport: i0 });
|
|
6575
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: FormCheckInputDirective, decorators: [{
|
|
6576
|
-
type: Directive,
|
|
6577
|
-
args: [{
|
|
6578
|
-
selector: 'input[cFormCheckInput]'
|
|
6579
|
-
}]
|
|
6580
|
-
}], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ElementRef }]; }, propDecorators: { type: [{
|
|
6581
|
-
type: HostBinding,
|
|
6582
|
-
args: ['attr.type']
|
|
6583
|
-
}, {
|
|
6584
|
-
type: Input
|
|
6585
|
-
}], indeterminate: [{
|
|
6586
|
-
type: Input
|
|
6587
|
-
}], valid: [{
|
|
6588
|
-
type: Input
|
|
6589
|
-
}], hostClasses: [{
|
|
6590
|
-
type: HostBinding,
|
|
6591
|
-
args: ['class']
|
|
6592
|
-
}] } });
|
|
6593
|
-
|
|
6594
|
-
class FormTextDirective {
|
|
6595
|
-
constructor() { }
|
|
6596
|
-
get hostClasses() {
|
|
6597
|
-
return {
|
|
6598
|
-
'form-text': true,
|
|
6599
|
-
};
|
|
6600
|
-
}
|
|
6601
|
-
}
|
|
6602
|
-
FormTextDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: FormTextDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
6603
|
-
FormTextDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: FormTextDirective, selector: "[cFormText]", host: { properties: { "class": "this.hostClasses" } }, ngImport: i0 });
|
|
6604
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: FormTextDirective, decorators: [{
|
|
6605
|
-
type: Directive,
|
|
6606
|
-
args: [{
|
|
6607
|
-
selector: '[cFormText]'
|
|
6608
|
-
}]
|
|
6609
|
-
}], ctorParameters: function () { return []; }, propDecorators: { hostClasses: [{
|
|
6610
|
-
type: HostBinding,
|
|
6611
|
-
args: ['class']
|
|
6612
|
-
}] } });
|
|
6613
|
-
|
|
6614
|
-
class FormFloatingDirective {
|
|
6615
|
-
constructor() {
|
|
6616
|
-
this._floating = true;
|
|
6617
|
-
}
|
|
6618
|
-
/**
|
|
6619
|
-
* Enable floating labels
|
|
6620
|
-
* @type boolean
|
|
6621
|
-
*/
|
|
6622
|
-
get floating() {
|
|
6623
|
-
return this._floating;
|
|
6624
|
-
}
|
|
6625
|
-
set floating(value) {
|
|
6626
|
-
this._floating = coerceBooleanProperty(value);
|
|
6627
|
-
}
|
|
6628
|
-
get hostClasses() {
|
|
6629
|
-
return {
|
|
6630
|
-
'form-floating': this.floating,
|
|
6631
|
-
};
|
|
6632
|
-
}
|
|
6633
|
-
}
|
|
6634
|
-
FormFloatingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: FormFloatingDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
6635
|
-
FormFloatingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: FormFloatingDirective, selector: "[cFormFloating]", inputs: { floating: ["cFormFloating", "floating"] }, host: { properties: { "class": "this.hostClasses" } }, ngImport: i0 });
|
|
6636
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: FormFloatingDirective, decorators: [{
|
|
6637
|
-
type: Directive,
|
|
6638
|
-
args: [{
|
|
6639
|
-
selector: '[cFormFloating]'
|
|
6640
|
-
}]
|
|
6641
|
-
}], ctorParameters: function () { return []; }, propDecorators: { floating: [{
|
|
6642
|
-
type: Input,
|
|
6643
|
-
args: ['cFormFloating']
|
|
6644
|
-
}], hostClasses: [{
|
|
6645
|
-
type: HostBinding,
|
|
6646
|
-
args: ['class']
|
|
6647
|
-
}] } });
|
|
6648
|
-
|
|
6649
|
-
class FormModule {
|
|
6650
|
-
}
|
|
6651
|
-
FormModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: FormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
6652
|
-
FormModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: FormModule, declarations: [FormDirective,
|
|
6653
|
-
FormCheckComponent,
|
|
6654
|
-
FormControlDirective,
|
|
6655
|
-
FormFeedbackComponent,
|
|
6656
|
-
FormFloatingDirective,
|
|
6657
|
-
FormLabelDirective,
|
|
6658
|
-
FormSelectDirective,
|
|
6659
|
-
FormTextDirective,
|
|
6660
|
-
InputGroupComponent,
|
|
6661
|
-
InputGroupTextDirective,
|
|
6662
|
-
FormCheckLabelDirective,
|
|
6663
|
-
FormCheckInputDirective], imports: [CommonModule], exports: [FormDirective,
|
|
6664
|
-
FormCheckComponent,
|
|
6665
|
-
FormControlDirective,
|
|
6666
|
-
FormFeedbackComponent,
|
|
6667
|
-
FormFloatingDirective,
|
|
6668
|
-
FormLabelDirective,
|
|
6669
|
-
FormSelectDirective,
|
|
6670
|
-
FormTextDirective,
|
|
6671
|
-
InputGroupComponent,
|
|
6672
|
-
InputGroupTextDirective,
|
|
6673
|
-
FormCheckLabelDirective,
|
|
6674
|
-
FormCheckInputDirective] });
|
|
6675
|
-
FormModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: FormModule, imports: [CommonModule] });
|
|
6676
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: FormModule, decorators: [{
|
|
6677
|
-
type: NgModule,
|
|
6678
|
-
args: [{
|
|
6679
|
-
declarations: [
|
|
6680
|
-
FormDirective,
|
|
6681
|
-
FormCheckComponent,
|
|
6682
|
-
FormControlDirective,
|
|
6683
|
-
FormFeedbackComponent,
|
|
6684
|
-
FormFloatingDirective,
|
|
6685
|
-
FormLabelDirective,
|
|
6686
|
-
FormSelectDirective,
|
|
6687
|
-
FormTextDirective,
|
|
6688
|
-
InputGroupComponent,
|
|
6689
|
-
InputGroupTextDirective,
|
|
6690
|
-
FormCheckLabelDirective,
|
|
6691
|
-
FormCheckInputDirective,
|
|
6692
|
-
],
|
|
6693
|
-
imports: [CommonModule],
|
|
6694
|
-
exports: [
|
|
6695
|
-
FormDirective,
|
|
6696
|
-
FormCheckComponent,
|
|
6697
|
-
FormControlDirective,
|
|
6698
|
-
FormFeedbackComponent,
|
|
6699
|
-
FormFloatingDirective,
|
|
6700
|
-
FormLabelDirective,
|
|
6701
|
-
FormSelectDirective,
|
|
6702
|
-
FormTextDirective,
|
|
6703
|
-
InputGroupComponent,
|
|
6704
|
-
InputGroupTextDirective,
|
|
6705
|
-
FormCheckLabelDirective,
|
|
6706
|
-
FormCheckInputDirective
|
|
6707
|
-
]
|
|
6708
|
-
}]
|
|
6709
|
-
}] });
|
|
6710
|
-
|
|
6711
|
-
class DropdownDividerDirective {
|
|
6712
|
-
constructor() {
|
|
6713
|
-
}
|
|
6714
|
-
get hostClasses() {
|
|
6715
|
-
return {
|
|
6716
|
-
'dropdown-divider': true,
|
|
6717
|
-
};
|
|
6718
|
-
}
|
|
6719
|
-
}
|
|
6720
|
-
DropdownDividerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DropdownDividerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
6721
|
-
DropdownDividerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: DropdownDividerDirective, selector: "[cDropdownDivider]", host: { properties: { "class": "this.hostClasses" } }, ngImport: i0 });
|
|
6722
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DropdownDividerDirective, decorators: [{
|
|
6723
|
-
type: Directive,
|
|
6724
|
-
args: [{
|
|
6725
|
-
selector: '[cDropdownDivider]'
|
|
6726
|
-
}]
|
|
6727
|
-
}], ctorParameters: function () { return []; }, propDecorators: { hostClasses: [{
|
|
6728
|
-
type: HostBinding,
|
|
6729
|
-
args: ['class']
|
|
6730
|
-
}] } });
|
|
6731
|
-
|
|
6732
|
-
class DropdownHeaderDirective {
|
|
6733
|
-
constructor() {
|
|
6734
|
-
}
|
|
6735
|
-
get hostClasses() {
|
|
6736
|
-
return {
|
|
6737
|
-
'dropdown-header': true,
|
|
6738
|
-
};
|
|
6739
|
-
}
|
|
6740
|
-
}
|
|
6741
|
-
DropdownHeaderDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DropdownHeaderDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
6742
|
-
DropdownHeaderDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: DropdownHeaderDirective, selector: "[cDropdownHeader]", host: { properties: { "class": "this.hostClasses" } }, ngImport: i0 });
|
|
6743
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DropdownHeaderDirective, decorators: [{
|
|
6744
|
-
type: Directive,
|
|
6745
|
-
args: [{
|
|
6746
|
-
selector: '[cDropdownHeader]'
|
|
6747
|
-
}]
|
|
6748
|
-
}], ctorParameters: function () { return []; }, propDecorators: { hostClasses: [{
|
|
6749
|
-
type: HostBinding,
|
|
6750
|
-
args: ['class']
|
|
6751
|
-
}] } });
|
|
6752
|
-
|
|
6753
|
-
class DropdownItemDirective {
|
|
6754
|
-
constructor(dropdownService, dropdown) {
|
|
6755
|
-
this.dropdownService = dropdownService;
|
|
6756
|
-
this.dropdown = dropdown;
|
|
6757
|
-
/**
|
|
6758
|
-
* Configure dropdown-item close dropdown behavior.
|
|
6759
|
-
* @type boolean
|
|
6760
|
-
* @default true
|
|
6761
|
-
*/
|
|
6762
|
-
this.autoClose = true;
|
|
6763
|
-
this._tabIndex = null;
|
|
6764
|
-
}
|
|
6765
|
-
get ariaCurrent() {
|
|
6766
|
-
return this.active ? 'true' : null;
|
|
6767
|
-
}
|
|
6768
|
-
get hostClasses() {
|
|
6769
|
-
return {
|
|
6770
|
-
'dropdown-item': true,
|
|
6771
|
-
active: this.active,
|
|
6772
|
-
disabled: this.disabled
|
|
6773
|
-
};
|
|
6774
|
-
}
|
|
6775
|
-
set tabIndex(value) {
|
|
6776
|
-
this._tabIndex = value;
|
|
6777
|
-
}
|
|
6778
|
-
get tabIndex() {
|
|
6779
|
-
return this.disabled ? '-1' : this._tabIndex;
|
|
6780
|
-
}
|
|
6781
|
-
get isDisabled() {
|
|
6782
|
-
return this.disabled || null;
|
|
6783
|
-
}
|
|
6784
|
-
onClick($event) {
|
|
6785
|
-
if (this.autoClose) {
|
|
6786
|
-
this.dropdownService.toggle({ visible: 'toggle', dropdown: this.dropdown });
|
|
6861
|
+
this.renderer.setProperty(this.hostElement.nativeElement, 'indeterminate', newValue);
|
|
6787
6862
|
}
|
|
6788
6863
|
}
|
|
6789
|
-
|
|
6790
|
-
|
|
6791
|
-
|
|
6792
|
-
|
|
6793
|
-
|
|
6794
|
-
|
|
6864
|
+
;
|
|
6865
|
+
get indeterminate() {
|
|
6866
|
+
return this._indeterminate;
|
|
6867
|
+
}
|
|
6868
|
+
get hostClasses() {
|
|
6869
|
+
return {
|
|
6870
|
+
'form-check-input': true,
|
|
6871
|
+
'is-valid': this.valid === true,
|
|
6872
|
+
'is-invalid': this.valid === false
|
|
6873
|
+
};
|
|
6874
|
+
}
|
|
6875
|
+
get checked() {
|
|
6876
|
+
var _a, _b;
|
|
6877
|
+
return (_b = (_a = this.hostElement) === null || _a === void 0 ? void 0 : _a.nativeElement) === null || _b === void 0 ? void 0 : _b.checked;
|
|
6795
6878
|
}
|
|
6796
6879
|
}
|
|
6797
|
-
|
|
6798
|
-
|
|
6799
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type:
|
|
6880
|
+
FormCheckInputDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: FormCheckInputDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6881
|
+
FormCheckInputDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: FormCheckInputDirective, selector: "input[cFormCheckInput]", inputs: { type: "type", indeterminate: "indeterminate", valid: "valid" }, host: { properties: { "attr.type": "this.type", "class": "this.hostClasses" } }, ngImport: i0 });
|
|
6882
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: FormCheckInputDirective, decorators: [{
|
|
6800
6883
|
type: Directive,
|
|
6801
6884
|
args: [{
|
|
6802
|
-
selector: '[
|
|
6803
|
-
exportAs: 'cDropdownItem'
|
|
6885
|
+
selector: 'input[cFormCheckInput]'
|
|
6804
6886
|
}]
|
|
6805
|
-
}], ctorParameters: function () {
|
|
6806
|
-
|
|
6807
|
-
|
|
6808
|
-
|
|
6809
|
-
}, propDecorators: { active: [{
|
|
6887
|
+
}], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ElementRef }]; }, propDecorators: { type: [{
|
|
6888
|
+
type: HostBinding,
|
|
6889
|
+
args: ['attr.type']
|
|
6890
|
+
}, {
|
|
6810
6891
|
type: Input
|
|
6811
|
-
}],
|
|
6892
|
+
}], indeterminate: [{
|
|
6812
6893
|
type: Input
|
|
6813
|
-
}],
|
|
6894
|
+
}], valid: [{
|
|
6814
6895
|
type: Input
|
|
6815
|
-
}], ariaCurrent: [{
|
|
6816
|
-
type: HostBinding,
|
|
6817
|
-
args: ['attr.aria-current']
|
|
6818
6896
|
}], hostClasses: [{
|
|
6819
6897
|
type: HostBinding,
|
|
6820
6898
|
args: ['class']
|
|
6821
|
-
}], tabIndex: [{
|
|
6822
|
-
type: HostBinding,
|
|
6823
|
-
args: ['attr.tabindex']
|
|
6824
|
-
}, {
|
|
6825
|
-
type: Input
|
|
6826
|
-
}], isDisabled: [{
|
|
6827
|
-
type: HostBinding,
|
|
6828
|
-
args: ['attr.aria-disabled']
|
|
6829
|
-
}], onClick: [{
|
|
6830
|
-
type: HostListener,
|
|
6831
|
-
args: ['click', ['$event']]
|
|
6832
|
-
}], onKeyUp: [{
|
|
6833
|
-
type: HostListener,
|
|
6834
|
-
args: ['keyup', ['$event']]
|
|
6835
6899
|
}] } });
|
|
6836
6900
|
|
|
6837
|
-
class
|
|
6838
|
-
constructor() {
|
|
6839
|
-
}
|
|
6901
|
+
class FormTextDirective {
|
|
6902
|
+
constructor() { }
|
|
6840
6903
|
get hostClasses() {
|
|
6841
6904
|
return {
|
|
6842
|
-
'
|
|
6905
|
+
'form-text': true,
|
|
6843
6906
|
};
|
|
6844
6907
|
}
|
|
6845
6908
|
}
|
|
6846
|
-
|
|
6847
|
-
|
|
6848
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type:
|
|
6909
|
+
FormTextDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: FormTextDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
6910
|
+
FormTextDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: FormTextDirective, selector: "[cFormText]", host: { properties: { "class": "this.hostClasses" } }, ngImport: i0 });
|
|
6911
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: FormTextDirective, decorators: [{
|
|
6849
6912
|
type: Directive,
|
|
6850
6913
|
args: [{
|
|
6851
|
-
selector: '[
|
|
6914
|
+
selector: '[cFormText]'
|
|
6852
6915
|
}]
|
|
6853
6916
|
}], ctorParameters: function () { return []; }, propDecorators: { hostClasses: [{
|
|
6854
6917
|
type: HostBinding,
|
|
6855
6918
|
args: ['class']
|
|
6856
6919
|
}] } });
|
|
6857
6920
|
|
|
6858
|
-
class
|
|
6859
|
-
constructor(
|
|
6860
|
-
this.
|
|
6861
|
-
this.dropdown = dropdown;
|
|
6862
|
-
this._tabIndex = null;
|
|
6921
|
+
class FormFloatingDirective {
|
|
6922
|
+
constructor() {
|
|
6923
|
+
this._floating = true;
|
|
6863
6924
|
}
|
|
6864
|
-
|
|
6865
|
-
|
|
6866
|
-
|
|
6867
|
-
|
|
6868
|
-
|
|
6869
|
-
|
|
6925
|
+
/**
|
|
6926
|
+
* Enable floating labels
|
|
6927
|
+
* @type boolean
|
|
6928
|
+
*/
|
|
6929
|
+
get floating() {
|
|
6930
|
+
return this._floating;
|
|
6931
|
+
}
|
|
6932
|
+
set floating(value) {
|
|
6933
|
+
this._floating = coerceBooleanProperty(value);
|
|
6870
6934
|
}
|
|
6871
6935
|
get hostClasses() {
|
|
6872
6936
|
return {
|
|
6873
|
-
|
|
6937
|
+
'form-floating': this.floating,
|
|
6874
6938
|
};
|
|
6875
6939
|
}
|
|
6876
|
-
set tabIndex(value) {
|
|
6877
|
-
this._tabIndex = value;
|
|
6878
|
-
}
|
|
6879
|
-
get tabIndex() {
|
|
6880
|
-
return this.disabled ? '-1' : this._tabIndex;
|
|
6881
|
-
}
|
|
6882
|
-
get isDisabled() {
|
|
6883
|
-
return this.disabled || null;
|
|
6884
|
-
}
|
|
6885
|
-
onClick($event) {
|
|
6886
|
-
!this.disabled && this.dropdownService.toggle({ visible: false, dropdown: this.dropdown });
|
|
6887
|
-
}
|
|
6888
|
-
onKeyUp($event) {
|
|
6889
|
-
if ($event.key === 'Enter') {
|
|
6890
|
-
!this.disabled && this.dropdownService.toggle({ visible: false, dropdown: this.dropdown });
|
|
6891
|
-
}
|
|
6892
|
-
}
|
|
6893
6940
|
}
|
|
6894
|
-
|
|
6895
|
-
|
|
6896
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type:
|
|
6941
|
+
FormFloatingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: FormFloatingDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
6942
|
+
FormFloatingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: FormFloatingDirective, selector: "[cFormFloating]", inputs: { floating: ["cFormFloating", "floating"] }, host: { properties: { "class": "this.hostClasses" } }, ngImport: i0 });
|
|
6943
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: FormFloatingDirective, decorators: [{
|
|
6897
6944
|
type: Directive,
|
|
6898
6945
|
args: [{
|
|
6899
|
-
selector: '[
|
|
6900
|
-
exportAs: 'cDropdownClose'
|
|
6946
|
+
selector: '[cFormFloating]'
|
|
6901
6947
|
}]
|
|
6902
|
-
}], ctorParameters: function () {
|
|
6903
|
-
|
|
6904
|
-
|
|
6905
|
-
}] }];
|
|
6906
|
-
}, propDecorators: { disabled: [{
|
|
6907
|
-
type: Input
|
|
6908
|
-
}], dropdownComponent: [{
|
|
6909
|
-
type: Input
|
|
6948
|
+
}], ctorParameters: function () { return []; }, propDecorators: { floating: [{
|
|
6949
|
+
type: Input,
|
|
6950
|
+
args: ['cFormFloating']
|
|
6910
6951
|
}], hostClasses: [{
|
|
6911
6952
|
type: HostBinding,
|
|
6912
6953
|
args: ['class']
|
|
6913
|
-
}], tabIndex: [{
|
|
6914
|
-
type: HostBinding,
|
|
6915
|
-
args: ['attr.tabindex']
|
|
6916
|
-
}, {
|
|
6917
|
-
type: Input
|
|
6918
|
-
}], isDisabled: [{
|
|
6919
|
-
type: HostBinding,
|
|
6920
|
-
args: ['attr.aria-disabled']
|
|
6921
|
-
}], onClick: [{
|
|
6922
|
-
type: HostListener,
|
|
6923
|
-
args: ['click', ['$event']]
|
|
6924
|
-
}], onKeyUp: [{
|
|
6925
|
-
type: HostListener,
|
|
6926
|
-
args: ['keyup', ['$event']]
|
|
6927
6954
|
}] } });
|
|
6928
6955
|
|
|
6929
|
-
class
|
|
6956
|
+
class FormModule {
|
|
6930
6957
|
}
|
|
6931
|
-
|
|
6932
|
-
|
|
6933
|
-
|
|
6934
|
-
|
|
6935
|
-
|
|
6936
|
-
|
|
6937
|
-
|
|
6938
|
-
|
|
6939
|
-
|
|
6940
|
-
|
|
6941
|
-
|
|
6942
|
-
|
|
6943
|
-
|
|
6944
|
-
|
|
6945
|
-
|
|
6946
|
-
|
|
6947
|
-
|
|
6948
|
-
|
|
6949
|
-
|
|
6950
|
-
|
|
6958
|
+
FormModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: FormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
6959
|
+
FormModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: FormModule, declarations: [FormDirective,
|
|
6960
|
+
FormCheckComponent,
|
|
6961
|
+
FormControlDirective,
|
|
6962
|
+
FormFeedbackComponent,
|
|
6963
|
+
FormFloatingDirective,
|
|
6964
|
+
FormLabelDirective,
|
|
6965
|
+
FormSelectDirective,
|
|
6966
|
+
FormTextDirective,
|
|
6967
|
+
InputGroupComponent,
|
|
6968
|
+
InputGroupTextDirective,
|
|
6969
|
+
FormCheckLabelDirective,
|
|
6970
|
+
FormCheckInputDirective], imports: [CommonModule], exports: [FormDirective,
|
|
6971
|
+
FormCheckComponent,
|
|
6972
|
+
FormControlDirective,
|
|
6973
|
+
FormFeedbackComponent,
|
|
6974
|
+
FormFloatingDirective,
|
|
6975
|
+
FormLabelDirective,
|
|
6976
|
+
FormSelectDirective,
|
|
6977
|
+
FormTextDirective,
|
|
6978
|
+
InputGroupComponent,
|
|
6979
|
+
InputGroupTextDirective,
|
|
6980
|
+
FormCheckLabelDirective,
|
|
6981
|
+
FormCheckInputDirective] });
|
|
6982
|
+
FormModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: FormModule, imports: [CommonModule] });
|
|
6983
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: FormModule, decorators: [{
|
|
6951
6984
|
type: NgModule,
|
|
6952
6985
|
args: [{
|
|
6953
6986
|
declarations: [
|
|
6954
|
-
|
|
6955
|
-
|
|
6956
|
-
|
|
6957
|
-
|
|
6958
|
-
|
|
6959
|
-
|
|
6960
|
-
|
|
6961
|
-
|
|
6962
|
-
|
|
6963
|
-
|
|
6964
|
-
|
|
6987
|
+
FormDirective,
|
|
6988
|
+
FormCheckComponent,
|
|
6989
|
+
FormControlDirective,
|
|
6990
|
+
FormFeedbackComponent,
|
|
6991
|
+
FormFloatingDirective,
|
|
6992
|
+
FormLabelDirective,
|
|
6993
|
+
FormSelectDirective,
|
|
6994
|
+
FormTextDirective,
|
|
6995
|
+
InputGroupComponent,
|
|
6996
|
+
InputGroupTextDirective,
|
|
6997
|
+
FormCheckLabelDirective,
|
|
6998
|
+
FormCheckInputDirective,
|
|
6965
6999
|
],
|
|
7000
|
+
imports: [CommonModule],
|
|
6966
7001
|
exports: [
|
|
6967
|
-
|
|
6968
|
-
|
|
6969
|
-
|
|
6970
|
-
|
|
6971
|
-
|
|
6972
|
-
|
|
6973
|
-
|
|
6974
|
-
|
|
6975
|
-
|
|
6976
|
-
|
|
6977
|
-
|
|
7002
|
+
FormDirective,
|
|
7003
|
+
FormCheckComponent,
|
|
7004
|
+
FormControlDirective,
|
|
7005
|
+
FormFeedbackComponent,
|
|
7006
|
+
FormFloatingDirective,
|
|
7007
|
+
FormLabelDirective,
|
|
7008
|
+
FormSelectDirective,
|
|
7009
|
+
FormTextDirective,
|
|
7010
|
+
InputGroupComponent,
|
|
7011
|
+
InputGroupTextDirective,
|
|
7012
|
+
FormCheckLabelDirective,
|
|
7013
|
+
FormCheckInputDirective
|
|
6978
7014
|
]
|
|
6979
7015
|
}]
|
|
6980
7016
|
}] });
|
|
@@ -7110,7 +7146,7 @@ DatePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ve
|
|
|
7110
7146
|
useExisting: forwardRef(() => DatePickerComponent),
|
|
7111
7147
|
multi: true
|
|
7112
7148
|
}
|
|
7113
|
-
], exportAs: ["cDatePicker"], usesInheritance: true, ngImport: i0, template: "<c-dropdown #dropdown=\"cDropdown\" [autoClose]=\"'outside'\" class=\"date-picker picker\" [visible]=\"visible\" [popperOptions]=\"popperjsOptions\">\
|
|
7149
|
+
], exportAs: ["cDatePicker"], usesInheritance: true, ngImport: i0, template: "<c-dropdown #dropdown=\"cDropdown\" [autoClose]=\"'outside'\" class=\"date-picker picker\" [ngClass]=\"datePickerClasses\" [visible]=\"visible\" [popperOptions]=\"popperjsOptions\">\n <c-input-group [caret]=\"false\"\n [disabled]=\"disabled ?? dropdown.visible\"\n [sizing]=\"size ?? ''\"\n cDropdownToggle\n class=\"picker-input-group\"\n >\n <input (change)=\"handleStartDateInputChange($event)\"\n [formControl]=\"startDateInput\"\n [ngClass]=\"{hover: !!inputStartHoverValue}\"\n [placeholder]=\"startDatePlaceholder ?? placeholder[0]\"\n cFormControl\n #startDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n [attr.disabled]=\"disabled ? '' : null\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [valid]=\"range ? undefined : valid\"\n >\n <span *ngIf=\"range && separator !== false\" cInputGroupText>\n <span class=\"picker-input-group-icon date-picker-arrow-icon\"></span>\n </span>\n <input (change)=\"handleEndDateInputChange($event)\"\n *ngIf=\"range\"\n [formControl]=\"endDateInput\"\n [ngClass]=\"{hover: !!inputEndHoverValue}\"\n [placeholder]=\"endDatePlaceholder ?? placeholder[1]\"\n cFormControl\n #endDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n [attr.disabled]=\"disabled ? '' : null\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [valid]=\"valid\"\n >\n <span *ngIf=\"indicator || cleaner\" cInputGroupText>\n <span *ngIf=\"indicator\" class=\"picker-input-group-indicator\">\n <span class=\"picker-input-group-icon date-picker-input-icon\"></span>\n </span>\n <span (click)=\"!disabled && handleClear($event)\" *ngIf=\"cleaner && startDateElementRef.value && !disabled\" class=\"picker-input-group-cleaner\" role=\"button\">\n <span class=\"picker-input-group-icon date-picker-cleaner-icon\"></span>\n </span>\n </span>\n\n </c-input-group>\n <div cDropdownMenu>\n <div class=\"date-picker-body\">\n <ng-template [ngIf]=\"!isMobile\">\n <div *ngIf=\"ranges\" class=\"date-picker-ranges\">\n <button (click)=\"setCustomRange(customRange)\"\n *ngFor=\"let customRange of customRanges\"\n [color]=\"rangesButtonsColor\"\n [size]=\"rangesButtonsSize\"\n [variant]=\"rangesButtonsVariant\"\n cButton>\n {{getCustomRangeKey(customRange)}}\n </button>\n </div>\n </ng-template>\n <c-calendar\n (calendarCellHover)=\"handleCalendarCellHover($event)\"\n (calendarDateChange)=\"handleCalendarDateChange($event)\"\n (endDateChange)=\"handleEndDateChange($event)\"\n (startDateChange)=\"handleStartDateChange($event)\"\n [calendarDate]=\"calendarDate\"\n [calendars]=\"isMobile ? 1 : calendars\"\n [dateFilter]=\"dateFilter\"\n [disabledDates]=\"disabledDates\"\n [endDate]=\"endDate\"\n [firstDayOfWeek]=\"firstDayOfWeek\"\n [locale]=\"locale\"\n [maxDate]=\"maxDate\"\n [minDate]=\"minDate\"\n [navigation]=\"navigation\"\n [range]=\"range\"\n [startDate]=\"startDate\"\n [navYearFirst]=\"navYearFirst\"\n [dayFormat]=\"dayFormat\"\n [weekdayFormat]=\"weekdayFormat\"\n class=\"date-picker-calendars\"\n ></c-calendar>\n <div *ngIf=\"false && timepicker\" class=\"date-picker-timepickers\">\n <!-- todo-->\n <c-time-picker\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!startDate\"\n [time]=\"startDate ?? undefined\"\n (timeChange)=\"handleStartTimeChange($event)\"\n ></c-time-picker>\n <c-time-picker\n *ngIf=\"range\"\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!endDate\"\n [time]=\"endDate ?? undefined\"\n (timeChange)=\"handleEndTimeChange($event)\"\n ></c-time-picker>\n </div>\n </div>\n <div *ngIf=\"templates?.datePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.datePickerFooter; context: {$implicit: dropdown}\"></ng-container>\n </div>\n </div>\n <ng-content></ng-content>\n</c-dropdown>\n", styles: [""], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: ButtonDirective, selector: "[cButton]", inputs: ["active", "color", "disabled", "shape", "size", "type", "variant"], exportAs: ["cButton"] }, { kind: "component", type: CalendarComponent, selector: "c-calendar", inputs: ["calendarDate", "calendars", "dayFormat", "disabledDates", "startDate", "endDate", "firstDayOfWeek", "locale", "maxDate", "minDate", "navigation", "navYearFirst", "range", "view", "weekdayFormat", "dateFilter"], outputs: ["calendarCellHover", "calendarDateChange", "endDateChange", "startDateChange", "viewChange"], exportAs: ["cCalendar"] }, { kind: "directive", type: FormControlDirective, selector: "input[cFormControl], textarea[cFormControl]", inputs: ["sizing", "valid", "type", "plaintext"] }, { kind: "component", type: InputGroupComponent, selector: "c-input-group", inputs: ["sizing"] }, { kind: "directive", type: InputGroupTextDirective, selector: "[cInputGroupText]" }, { kind: "component", type: DropdownComponent, selector: "c-dropdown", inputs: ["alignment", "autoClose", "dark", "direction", "placement", "popper", "popperOptions", "variant", "visible"], outputs: ["visibleChange"], exportAs: ["cDropdown"] }, { kind: "directive", type: DropdownToggleDirective, selector: "[cDropdownToggle]", inputs: ["dropdownComponent", "disabled", "caret", "split"], exportAs: ["cDropdownToggle"] }, { kind: "directive", type: DropdownMenuDirective, selector: "[cDropdownMenu]", inputs: ["alignment", "visible", "dark"], exportAs: ["cDropdownMenu"] }, { kind: "component", type: TimePickerComponent, selector: "c-time-picker", inputs: ["cleaner", "dateTimeFormatOptions", "disabled", "filterHours", "filterMinutes", "filterSeconds", "indicator", "inputReadOnly", "locale", "placeholder", "seconds", "size", "time", "variant", "valid", "visible"], outputs: ["timeChange"], exportAs: ["cTimePicker"] }] });
|
|
7114
7150
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DatePickerComponent, decorators: [{
|
|
7115
7151
|
type: Component,
|
|
7116
7152
|
args: [{ selector: 'c-date-picker', exportAs: 'cDatePicker', providers: [
|
|
@@ -7119,7 +7155,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
7119
7155
|
useExisting: forwardRef(() => DatePickerComponent),
|
|
7120
7156
|
multi: true
|
|
7121
7157
|
}
|
|
7122
|
-
], template: "<c-dropdown #dropdown=\"cDropdown\" [autoClose]=\"'outside'\" class=\"date-picker picker\" [visible]=\"visible\" [popperOptions]=\"popperjsOptions\">\
|
|
7158
|
+
], template: "<c-dropdown #dropdown=\"cDropdown\" [autoClose]=\"'outside'\" class=\"date-picker picker\" [ngClass]=\"datePickerClasses\" [visible]=\"visible\" [popperOptions]=\"popperjsOptions\">\n <c-input-group [caret]=\"false\"\n [disabled]=\"disabled ?? dropdown.visible\"\n [sizing]=\"size ?? ''\"\n cDropdownToggle\n class=\"picker-input-group\"\n >\n <input (change)=\"handleStartDateInputChange($event)\"\n [formControl]=\"startDateInput\"\n [ngClass]=\"{hover: !!inputStartHoverValue}\"\n [placeholder]=\"startDatePlaceholder ?? placeholder[0]\"\n cFormControl\n #startDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n [attr.disabled]=\"disabled ? '' : null\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [valid]=\"range ? undefined : valid\"\n >\n <span *ngIf=\"range && separator !== false\" cInputGroupText>\n <span class=\"picker-input-group-icon date-picker-arrow-icon\"></span>\n </span>\n <input (change)=\"handleEndDateInputChange($event)\"\n *ngIf=\"range\"\n [formControl]=\"endDateInput\"\n [ngClass]=\"{hover: !!inputEndHoverValue}\"\n [placeholder]=\"endDatePlaceholder ?? placeholder[1]\"\n cFormControl\n #endDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n [attr.disabled]=\"disabled ? '' : null\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [valid]=\"valid\"\n >\n <span *ngIf=\"indicator || cleaner\" cInputGroupText>\n <span *ngIf=\"indicator\" class=\"picker-input-group-indicator\">\n <span class=\"picker-input-group-icon date-picker-input-icon\"></span>\n </span>\n <span (click)=\"!disabled && handleClear($event)\" *ngIf=\"cleaner && startDateElementRef.value && !disabled\" class=\"picker-input-group-cleaner\" role=\"button\">\n <span class=\"picker-input-group-icon date-picker-cleaner-icon\"></span>\n </span>\n </span>\n\n </c-input-group>\n <div cDropdownMenu>\n <div class=\"date-picker-body\">\n <ng-template [ngIf]=\"!isMobile\">\n <div *ngIf=\"ranges\" class=\"date-picker-ranges\">\n <button (click)=\"setCustomRange(customRange)\"\n *ngFor=\"let customRange of customRanges\"\n [color]=\"rangesButtonsColor\"\n [size]=\"rangesButtonsSize\"\n [variant]=\"rangesButtonsVariant\"\n cButton>\n {{getCustomRangeKey(customRange)}}\n </button>\n </div>\n </ng-template>\n <c-calendar\n (calendarCellHover)=\"handleCalendarCellHover($event)\"\n (calendarDateChange)=\"handleCalendarDateChange($event)\"\n (endDateChange)=\"handleEndDateChange($event)\"\n (startDateChange)=\"handleStartDateChange($event)\"\n [calendarDate]=\"calendarDate\"\n [calendars]=\"isMobile ? 1 : calendars\"\n [dateFilter]=\"dateFilter\"\n [disabledDates]=\"disabledDates\"\n [endDate]=\"endDate\"\n [firstDayOfWeek]=\"firstDayOfWeek\"\n [locale]=\"locale\"\n [maxDate]=\"maxDate\"\n [minDate]=\"minDate\"\n [navigation]=\"navigation\"\n [range]=\"range\"\n [startDate]=\"startDate\"\n [navYearFirst]=\"navYearFirst\"\n [dayFormat]=\"dayFormat\"\n [weekdayFormat]=\"weekdayFormat\"\n class=\"date-picker-calendars\"\n ></c-calendar>\n <div *ngIf=\"false && timepicker\" class=\"date-picker-timepickers\">\n <!-- todo-->\n <c-time-picker\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!startDate\"\n [time]=\"startDate ?? undefined\"\n (timeChange)=\"handleStartTimeChange($event)\"\n ></c-time-picker>\n <c-time-picker\n *ngIf=\"range\"\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!endDate\"\n [time]=\"endDate ?? undefined\"\n (timeChange)=\"handleEndTimeChange($event)\"\n ></c-time-picker>\n </div>\n </div>\n <div *ngIf=\"templates?.datePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.datePickerFooter; context: {$implicit: dropdown}\"></ng-container>\n </div>\n </div>\n <ng-content></ng-content>\n</c-dropdown>\n" }]
|
|
7123
7159
|
}], ctorParameters: function () { return [{ type: i1$2.BreakpointObserver }]; }, propDecorators: { placeholder: [{
|
|
7124
7160
|
type: Input
|
|
7125
7161
|
}], startDateChange: [{
|
|
@@ -8723,6 +8759,11 @@ class MultiSelectComponent {
|
|
|
8723
8759
|
var _a, _b;
|
|
8724
8760
|
return this.multiple ? [...this._value] : (_b = (_a = this._value[0]) === null || _a === void 0 ? void 0 : _a.toString()) !== null && _b !== void 0 ? _b : '';
|
|
8725
8761
|
}
|
|
8762
|
+
/**
|
|
8763
|
+
* Toggle the visibility of the dropdown select component.
|
|
8764
|
+
* @type boolean
|
|
8765
|
+
* @default false
|
|
8766
|
+
*/
|
|
8726
8767
|
set visible(value) {
|
|
8727
8768
|
const newValue = coerceBooleanProperty(value);
|
|
8728
8769
|
if (newValue !== this._visible) {
|
|
@@ -8767,7 +8808,9 @@ class MultiSelectComponent {
|
|
|
8767
8808
|
[`form-multi-select-${this.size}`]: !!this.size,
|
|
8768
8809
|
'form-multi-select-with-cleaner': this.cleaner,
|
|
8769
8810
|
show: this.visible,
|
|
8770
|
-
disabled: this.disabled
|
|
8811
|
+
disabled: this.disabled,
|
|
8812
|
+
'is-valid': this.valid === true,
|
|
8813
|
+
'is-invalid': this.valid === false
|
|
8771
8814
|
};
|
|
8772
8815
|
}
|
|
8773
8816
|
get tabIndex() {
|
|
@@ -9038,7 +9081,7 @@ class MultiSelectComponent {
|
|
|
9038
9081
|
}
|
|
9039
9082
|
}
|
|
9040
9083
|
MultiSelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: MultiSelectComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i0.ViewContainerRef }, { token: i1$3.FocusMonitor }, { token: MultiSelectService }, { token: i0.IterableDiffers }], target: i0.ɵɵFactoryTarget.Component });
|
|
9041
|
-
MultiSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: MultiSelectComponent, selector: "c-multi-select", inputs: { cleaner: "cleaner", disabled: "disabled", multiple: "multiple", nativeName: "nativeName", nativeId: "nativeId", optionsMaxHeight: "optionsMaxHeight", optionsStyle: "optionsStyle", placeholder: "placeholder", search: "search", searchNoResultsLabel: "searchNoResultsLabel", selectAll: "selectAll", selectAllLabel: "selectAllLabel", selectionType: "selectionType", selectionTypeCounterText: "selectionTypeCounterText", selectionTypeCounterTextPluralMap: "selectionTypeCounterTextPluralMap", size: "size", value: "value", visible: "visible", popperjsOptions: ["popperOptions", "popperjsOptions"] }, outputs: { valueChange: "valueChange", visibleChange: "visibleChange" }, host: { listeners: { "keyup": "onKeyUp($event)", "keydown": "onKeyDown($event)", "click": "onClick($event)" }, properties: { "class": "this.hostClasses", "attr.tabindex": "this.tabIndex" } }, providers: [
|
|
9084
|
+
MultiSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: MultiSelectComponent, selector: "c-multi-select", inputs: { cleaner: "cleaner", disabled: "disabled", multiple: "multiple", nativeName: "nativeName", nativeId: "nativeId", optionsMaxHeight: "optionsMaxHeight", optionsStyle: "optionsStyle", placeholder: "placeholder", search: "search", searchNoResultsLabel: "searchNoResultsLabel", selectAll: "selectAll", selectAllLabel: "selectAllLabel", selectionType: "selectionType", selectionTypeCounterText: "selectionTypeCounterText", selectionTypeCounterTextPluralMap: "selectionTypeCounterTextPluralMap", size: "size", value: "value", valid: "valid", visible: "visible", popperjsOptions: ["popperOptions", "popperjsOptions"] }, outputs: { valueChange: "valueChange", visibleChange: "visibleChange" }, host: { listeners: { "keyup": "onKeyUp($event)", "keydown": "onKeyDown($event)", "click": "onClick($event)" }, properties: { "class": "this.hostClasses", "attr.tabindex": "this.tabIndex" } }, providers: [
|
|
9042
9085
|
MultiSelectService,
|
|
9043
9086
|
{
|
|
9044
9087
|
provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => MultiSelectComponent), multi: true
|
|
@@ -9088,6 +9131,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
9088
9131
|
type: Input
|
|
9089
9132
|
}], valueChange: [{
|
|
9090
9133
|
type: Output
|
|
9134
|
+
}], valid: [{
|
|
9135
|
+
type: Input
|
|
9091
9136
|
}], visible: [{
|
|
9092
9137
|
type: Input
|
|
9093
9138
|
}], visibleChange: [{
|