@kris701/ez-ui 1.2.13 → 1.2.14
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/fesm2022/kris701-ez-ui.mjs +257 -12
- package/fesm2022/kris701-ez-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/kris701-ez-ui.d.ts +18 -2
|
@@ -7,7 +7,7 @@ import { FormsModule } from '@angular/forms';
|
|
|
7
7
|
import * as i3$1 from '@taiga-ui/core';
|
|
8
8
|
import { TuiIcon, TuiInput, TuiButton, TuiTitle, TuiLoader, TuiDialog, TuiDropdown, TuiOption, TuiGroup, TuiScrollbar, TuiSelectLike, TuiDataList, TuiTextfield, TuiLink, TuiHint, TuiCheckbox, TUI_DARK_MODE, TuiRoot } from '@taiga-ui/core';
|
|
9
9
|
import * as i4$1 from '@taiga-ui/kit';
|
|
10
|
-
import { TuiBlock, TuiSwitch, TuiInputDate, TuiInputDateTime, TuiFiles, TuiChevron, TuiTextarea, TuiChip, TuiMultiSelect, TuiInputNumber, TuiInputChip, TuiPassword, TuiSelect, TuiBadge, TuiStatus, TuiDataListWrapper, TuiBadgeNotification, TuiBadgedContent, TuiButtonSelect, TuiStringifyContentPipe, TUI_CONFIRM } from '@taiga-ui/kit';
|
|
10
|
+
import { TuiBlock, TuiSwitch, TuiInputDate, TuiInputDateTime, TuiFiles, TuiChevron, TuiTextarea, TuiChip, TuiMultiSelect, TuiInputNumber, TuiInputChip, TuiPassword, TuiSelect, TuiBadge, TuiStatus, TuiDataListWrapper, TuiBadgeNotification, TuiBadgedContent, TuiButtonSelect, TuiInputDateDirective, TuiStringifyContentPipe, TUI_CONFIRM } from '@taiga-ui/kit';
|
|
11
11
|
import * as i3$3 from '@taiga-ui/addon-mobile';
|
|
12
12
|
import { TuiDropdownSheet } from '@taiga-ui/addon-mobile';
|
|
13
13
|
import { TuiDay, TuiTime } from '@taiga-ui/cdk/date-time';
|
|
@@ -3621,9 +3621,9 @@ class EzUITableFilterService {
|
|
|
3621
3621
|
action: 'ncon',
|
|
3622
3622
|
filter: (values, column, value) => EzUIFilterHelpers.genericFilter(values, (i) => !value.includes(i), column)
|
|
3623
3623
|
},
|
|
3624
|
-
// Date filters
|
|
3624
|
+
// Date Time filters
|
|
3625
3625
|
{
|
|
3626
|
-
key: '
|
|
3626
|
+
key: 'datt',
|
|
3627
3627
|
action: 'bef',
|
|
3628
3628
|
filter: (values, column, value) => EzUIFilterHelpers.dateFilter(values, (i) => {
|
|
3629
3629
|
var normal = value[0].toLocalNativeDate();
|
|
@@ -3632,7 +3632,7 @@ class EzUITableFilterService {
|
|
|
3632
3632
|
}, column)
|
|
3633
3633
|
},
|
|
3634
3634
|
{
|
|
3635
|
-
key: '
|
|
3635
|
+
key: 'datt',
|
|
3636
3636
|
action: 'aft',
|
|
3637
3637
|
filter: (values, column, value) => EzUIFilterHelpers.dateFilter(values, (i) => {
|
|
3638
3638
|
var normal = value[0].toLocalNativeDate();
|
|
@@ -3640,6 +3640,23 @@ class EzUITableFilterService {
|
|
|
3640
3640
|
return i.getTime() > normal.getTime();
|
|
3641
3641
|
}, column)
|
|
3642
3642
|
},
|
|
3643
|
+
// Date filters
|
|
3644
|
+
{
|
|
3645
|
+
key: 'dat',
|
|
3646
|
+
action: 'bef',
|
|
3647
|
+
filter: (values, column, value) => EzUIFilterHelpers.dateFilter(values, (i) => {
|
|
3648
|
+
var normal = value.toLocalNativeDate();
|
|
3649
|
+
return i.getTime() < normal.getTime();
|
|
3650
|
+
}, column)
|
|
3651
|
+
},
|
|
3652
|
+
{
|
|
3653
|
+
key: 'dat',
|
|
3654
|
+
action: 'aft',
|
|
3655
|
+
filter: (values, column, value) => EzUIFilterHelpers.dateFilter(values, (i) => {
|
|
3656
|
+
var normal = value.toLocalNativeDate();
|
|
3657
|
+
return i.getTime() > normal.getTime();
|
|
3658
|
+
}, column)
|
|
3659
|
+
},
|
|
3643
3660
|
// Boolean filters
|
|
3644
3661
|
{
|
|
3645
3662
|
key: 'bol',
|
|
@@ -4253,7 +4270,7 @@ class EzUITableDateFilter {
|
|
|
4253
4270
|
filterVisible = signal(false, /* @ts-ignore */
|
|
4254
4271
|
...(ngDevMode ? [{ debugName: "filterVisible" }] : /* istanbul ignore next */ []));
|
|
4255
4272
|
table;
|
|
4256
|
-
value =
|
|
4273
|
+
value = TuiDay.currentLocal();
|
|
4257
4274
|
filterType = signal({}, /* @ts-ignore */
|
|
4258
4275
|
...(ngDevMode ? [{ debugName: "filterType" }] : /* istanbul ignore next */ []));
|
|
4259
4276
|
filterTypes;
|
|
@@ -4271,6 +4288,234 @@ class EzUITableDateFilter {
|
|
|
4271
4288
|
}
|
|
4272
4289
|
];
|
|
4273
4290
|
this.filterType.set(this.filterTypes[0]);
|
|
4291
|
+
this.table.onPresetChange.subscribe(x => {
|
|
4292
|
+
if (!x) {
|
|
4293
|
+
this.filterType.set(this.filterTypes[0]);
|
|
4294
|
+
this.value = TuiDay.currentLocal();
|
|
4295
|
+
this.filterApplied.set(false);
|
|
4296
|
+
return;
|
|
4297
|
+
}
|
|
4298
|
+
const filter = x.filters.find(x => x.column == this.column);
|
|
4299
|
+
if (!filter) {
|
|
4300
|
+
this.filterType.set(this.filterTypes[0]);
|
|
4301
|
+
this.value = TuiDay.currentLocal();
|
|
4302
|
+
this.filterApplied.set(false);
|
|
4303
|
+
return;
|
|
4304
|
+
}
|
|
4305
|
+
const type = this.filterTypes.find(x => x.expression == filter.expression);
|
|
4306
|
+
if (!type) {
|
|
4307
|
+
this.filterType.set(this.filterTypes[0]);
|
|
4308
|
+
this.value = TuiDay.currentLocal();
|
|
4309
|
+
this.filterApplied.set(false);
|
|
4310
|
+
return;
|
|
4311
|
+
}
|
|
4312
|
+
this.filterType.set(type);
|
|
4313
|
+
let forceReapply = false;
|
|
4314
|
+
if (typeof filter.value[0] == 'string') {
|
|
4315
|
+
this.value = TuiDay.jsonParse(filter.value[0]);
|
|
4316
|
+
forceReapply = true;
|
|
4317
|
+
}
|
|
4318
|
+
else {
|
|
4319
|
+
this.value = filter.value;
|
|
4320
|
+
}
|
|
4321
|
+
this.filterApplied.set(true);
|
|
4322
|
+
if (forceReapply) {
|
|
4323
|
+
// Force reapply filter, to fix local storage parsing issue
|
|
4324
|
+
this.applyFilter(type.expression);
|
|
4325
|
+
}
|
|
4326
|
+
});
|
|
4327
|
+
}
|
|
4328
|
+
applyFilter(expression) {
|
|
4329
|
+
this.table.setFilter({
|
|
4330
|
+
column: this.column,
|
|
4331
|
+
value: this.value,
|
|
4332
|
+
expression: expression,
|
|
4333
|
+
});
|
|
4334
|
+
this.filterVisible.set(false);
|
|
4335
|
+
this.filterApplied.set(true);
|
|
4336
|
+
}
|
|
4337
|
+
clearFilter() {
|
|
4338
|
+
this.table.clearFilter(this.column);
|
|
4339
|
+
this.filterVisible.set(false);
|
|
4340
|
+
this.filterApplied.set(false);
|
|
4341
|
+
}
|
|
4342
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: EzUITableDateFilter, deps: [{ token: EzUITable }], target: i0.ɵɵFactoryTarget.Component });
|
|
4343
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: EzUITableDateFilter, isStandalone: true, selector: "ezui-table-datefilter", inputs: { column: "column" }, ngImport: i0, template: `
|
|
4344
|
+
@if(column){
|
|
4345
|
+
<tui-badged-content>
|
|
4346
|
+
@if(filterApplied()){
|
|
4347
|
+
<tui-badge-notification
|
|
4348
|
+
size="s"
|
|
4349
|
+
tuiSlot="top"
|
|
4350
|
+
>
|
|
4351
|
+
1
|
|
4352
|
+
</tui-badge-notification>
|
|
4353
|
+
}
|
|
4354
|
+
<button
|
|
4355
|
+
tuiButton size="s"
|
|
4356
|
+
iconStart="funnel"
|
|
4357
|
+
appearance="flat-grayscale"
|
|
4358
|
+
style="opacity:0.72"
|
|
4359
|
+
[tuiDropdown]="filterPop"
|
|
4360
|
+
[(tuiDropdownOpen)]="filterVisible"
|
|
4361
|
+
(click)="filterVisible.set(true)"
|
|
4362
|
+
></button>
|
|
4363
|
+
</tui-badged-content>
|
|
4364
|
+
|
|
4365
|
+
<ng-template #filterPop>
|
|
4366
|
+
<div class="filterPopContainer">
|
|
4367
|
+
@let filter = filterType();
|
|
4368
|
+
<button
|
|
4369
|
+
appearance="outline-grayscale"
|
|
4370
|
+
size="s"
|
|
4371
|
+
tuiButton
|
|
4372
|
+
tuiButtonSelect
|
|
4373
|
+
[(ngModel)]="filterType"
|
|
4374
|
+
>
|
|
4375
|
+
{{ filter.label }}
|
|
4376
|
+
<tui-data-list-wrapper
|
|
4377
|
+
*tuiDropdown
|
|
4378
|
+
[itemContent]="stringify | tuiStringifyContent"
|
|
4379
|
+
[items]="filterTypes"
|
|
4380
|
+
/>
|
|
4381
|
+
</button>
|
|
4382
|
+
|
|
4383
|
+
<tui-textfield (keydown.enter)="applyFilter(filter.expression)">
|
|
4384
|
+
<label tuiLabel>Choose a date</label>
|
|
4385
|
+
<input
|
|
4386
|
+
tuiInputDate
|
|
4387
|
+
[(ngModel)]="value"
|
|
4388
|
+
/>
|
|
4389
|
+
<tui-calendar *tuiDropdown />
|
|
4390
|
+
</tui-textfield>
|
|
4391
|
+
<button
|
|
4392
|
+
tuiButton size="s"
|
|
4393
|
+
iconStart="funnel"
|
|
4394
|
+
tuiButton
|
|
4395
|
+
(click)="applyFilter(filter.expression)"
|
|
4396
|
+
>
|
|
4397
|
+
Apply
|
|
4398
|
+
</button>
|
|
4399
|
+
|
|
4400
|
+
@if(filterApplied()){
|
|
4401
|
+
<button
|
|
4402
|
+
tuiButton size="s"
|
|
4403
|
+
iconStart="circle-x"
|
|
4404
|
+
appearance="secondary"
|
|
4405
|
+
tuiButton
|
|
4406
|
+
(click)="clearFilter()"
|
|
4407
|
+
>
|
|
4408
|
+
Clear
|
|
4409
|
+
</button>
|
|
4410
|
+
}
|
|
4411
|
+
</div>
|
|
4412
|
+
</ng-template>
|
|
4413
|
+
}
|
|
4414
|
+
`, isInline: true, styles: [".filterPopContainer{display:flex;flex-direction:column;gap:10px;padding:10px;min-width:20rem}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3$1.TuiDropdownDirective, selector: "[tuiDropdown]:not(ng-container):not(ng-template)", inputs: ["tuiDropdown"], exportAs: ["tuiDropdown"] }, { kind: "directive", type: i3$1.TuiDropdownOpen, selector: "[tuiDropdown][tuiDropdownAuto],[tuiDropdown][tuiDropdownOpen],[tuiDropdown][tuiDropdownOpenChange]", inputs: ["tuiDropdownEnabled", "tuiDropdownOpen"], outputs: ["tuiDropdownOpenChange"] }, { kind: "directive", type: i3$1.TuiDropdownContent, selector: "ng-template[tuiDropdown]" }, { kind: "component", type: i4$1.TuiDataListWrapperComponent, selector: "tui-data-list-wrapper:not([labels])", inputs: ["items", "emptyContent", "size", "itemContent"], outputs: ["itemClick"] }, { kind: "directive", type: TuiButton, selector: "a[tuiButton],button[tuiButton],label[tuiButton],a[tuiIconButton],button[tuiIconButton],label[tuiIconButton]", inputs: ["size"] }, { kind: "directive", type: TuiButtonSelect, selector: "button[tuiButtonSelect]" }, { kind: "component", type: TuiBadgeNotification, selector: "tui-badge-notification", inputs: ["size"] }, { kind: "directive", type: i4$1.TuiBadgedContentDirective, selector: "[tuiSlot]", inputs: ["tuiSlot"] }, { kind: "component", type: i4$1.TuiBadgedContentComponent, selector: "tui-badged-content" }, { kind: "directive", type: i2.TuiLabel, selector: "label[tuiLabel]" }, { kind: "component", type: i3.TuiTextfieldComponent, selector: "tui-textfield:not([multi])", inputs: ["content", "filler", "invalid", "tuiAppearanceFocus", "tuiAppearanceState"] }, { kind: "component", type: i6.TuiCalendar, selector: "tui-calendar:not([new]):not([months])", inputs: ["minViewedMonth", "maxViewedMonth", "showAdjacent", "markerHandler", "initialView", "hoveredItem"], outputs: ["hoveredItemChange", "dayClick"] }, { kind: "directive", type: TuiInputDateDirective, selector: "input[tuiInputDate]", inputs: ["max", "min"] }, { kind: "pipe", type: TuiStringifyContentPipe, name: "tuiStringifyContent" }] });
|
|
4415
|
+
}
|
|
4416
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: EzUITableDateFilter, decorators: [{
|
|
4417
|
+
type: Component,
|
|
4418
|
+
args: [{ selector: 'ezui-table-datefilter', imports: [CommonModule, FormsModule, TuiDropdown, TuiDataListWrapper, TuiButton, TuiButtonSelect, TuiStringifyContentPipe, TuiBadgeNotification, TuiBadgedContent, TuiInput, TuiInputDateTime, TuiInputDateDirective], template: `
|
|
4419
|
+
@if(column){
|
|
4420
|
+
<tui-badged-content>
|
|
4421
|
+
@if(filterApplied()){
|
|
4422
|
+
<tui-badge-notification
|
|
4423
|
+
size="s"
|
|
4424
|
+
tuiSlot="top"
|
|
4425
|
+
>
|
|
4426
|
+
1
|
|
4427
|
+
</tui-badge-notification>
|
|
4428
|
+
}
|
|
4429
|
+
<button
|
|
4430
|
+
tuiButton size="s"
|
|
4431
|
+
iconStart="funnel"
|
|
4432
|
+
appearance="flat-grayscale"
|
|
4433
|
+
style="opacity:0.72"
|
|
4434
|
+
[tuiDropdown]="filterPop"
|
|
4435
|
+
[(tuiDropdownOpen)]="filterVisible"
|
|
4436
|
+
(click)="filterVisible.set(true)"
|
|
4437
|
+
></button>
|
|
4438
|
+
</tui-badged-content>
|
|
4439
|
+
|
|
4440
|
+
<ng-template #filterPop>
|
|
4441
|
+
<div class="filterPopContainer">
|
|
4442
|
+
@let filter = filterType();
|
|
4443
|
+
<button
|
|
4444
|
+
appearance="outline-grayscale"
|
|
4445
|
+
size="s"
|
|
4446
|
+
tuiButton
|
|
4447
|
+
tuiButtonSelect
|
|
4448
|
+
[(ngModel)]="filterType"
|
|
4449
|
+
>
|
|
4450
|
+
{{ filter.label }}
|
|
4451
|
+
<tui-data-list-wrapper
|
|
4452
|
+
*tuiDropdown
|
|
4453
|
+
[itemContent]="stringify | tuiStringifyContent"
|
|
4454
|
+
[items]="filterTypes"
|
|
4455
|
+
/>
|
|
4456
|
+
</button>
|
|
4457
|
+
|
|
4458
|
+
<tui-textfield (keydown.enter)="applyFilter(filter.expression)">
|
|
4459
|
+
<label tuiLabel>Choose a date</label>
|
|
4460
|
+
<input
|
|
4461
|
+
tuiInputDate
|
|
4462
|
+
[(ngModel)]="value"
|
|
4463
|
+
/>
|
|
4464
|
+
<tui-calendar *tuiDropdown />
|
|
4465
|
+
</tui-textfield>
|
|
4466
|
+
<button
|
|
4467
|
+
tuiButton size="s"
|
|
4468
|
+
iconStart="funnel"
|
|
4469
|
+
tuiButton
|
|
4470
|
+
(click)="applyFilter(filter.expression)"
|
|
4471
|
+
>
|
|
4472
|
+
Apply
|
|
4473
|
+
</button>
|
|
4474
|
+
|
|
4475
|
+
@if(filterApplied()){
|
|
4476
|
+
<button
|
|
4477
|
+
tuiButton size="s"
|
|
4478
|
+
iconStart="circle-x"
|
|
4479
|
+
appearance="secondary"
|
|
4480
|
+
tuiButton
|
|
4481
|
+
(click)="clearFilter()"
|
|
4482
|
+
>
|
|
4483
|
+
Clear
|
|
4484
|
+
</button>
|
|
4485
|
+
}
|
|
4486
|
+
</div>
|
|
4487
|
+
</ng-template>
|
|
4488
|
+
}
|
|
4489
|
+
`, styles: [".filterPopContainer{display:flex;flex-direction:column;gap:10px;padding:10px;min-width:20rem}\n"] }]
|
|
4490
|
+
}], ctorParameters: () => [{ type: EzUITable }], propDecorators: { column: [{
|
|
4491
|
+
type: Input
|
|
4492
|
+
}] } });
|
|
4493
|
+
|
|
4494
|
+
class EzUITableDateTimeFilter {
|
|
4495
|
+
column;
|
|
4496
|
+
filterApplied = signal(false, /* @ts-ignore */
|
|
4497
|
+
...(ngDevMode ? [{ debugName: "filterApplied" }] : /* istanbul ignore next */ []));
|
|
4498
|
+
filterVisible = signal(false, /* @ts-ignore */
|
|
4499
|
+
...(ngDevMode ? [{ debugName: "filterVisible" }] : /* istanbul ignore next */ []));
|
|
4500
|
+
table;
|
|
4501
|
+
value = [TuiDay.currentLocal(), TuiTime.currentLocal()];
|
|
4502
|
+
filterType = signal({}, /* @ts-ignore */
|
|
4503
|
+
...(ngDevMode ? [{ debugName: "filterType" }] : /* istanbul ignore next */ []));
|
|
4504
|
+
filterTypes;
|
|
4505
|
+
stringify = (item) => `${item.label}`;
|
|
4506
|
+
constructor(table) {
|
|
4507
|
+
this.table = table;
|
|
4508
|
+
this.filterTypes = [
|
|
4509
|
+
{
|
|
4510
|
+
label: 'After',
|
|
4511
|
+
expression: 'datt;aft'
|
|
4512
|
+
},
|
|
4513
|
+
{
|
|
4514
|
+
label: 'Before',
|
|
4515
|
+
expression: 'datt;bef'
|
|
4516
|
+
}
|
|
4517
|
+
];
|
|
4518
|
+
this.filterType.set(this.filterTypes[0]);
|
|
4274
4519
|
this.table.onPresetChange.subscribe(x => {
|
|
4275
4520
|
if (!x) {
|
|
4276
4521
|
this.filterType.set(this.filterTypes[0]);
|
|
@@ -4322,8 +4567,8 @@ class EzUITableDateFilter {
|
|
|
4322
4567
|
this.filterVisible.set(false);
|
|
4323
4568
|
this.filterApplied.set(false);
|
|
4324
4569
|
}
|
|
4325
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type:
|
|
4326
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type:
|
|
4570
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: EzUITableDateTimeFilter, deps: [{ token: EzUITable }], target: i0.ɵɵFactoryTarget.Component });
|
|
4571
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: EzUITableDateTimeFilter, isStandalone: true, selector: "ezui-table-datetimefilter", inputs: { column: "column" }, ngImport: i0, template: `
|
|
4327
4572
|
@if(column){
|
|
4328
4573
|
<tui-badged-content>
|
|
4329
4574
|
@if(filterApplied()){
|
|
@@ -4364,7 +4609,7 @@ class EzUITableDateFilter {
|
|
|
4364
4609
|
</button>
|
|
4365
4610
|
|
|
4366
4611
|
<tui-textfield (keydown.enter)="applyFilter(filter.expression)">
|
|
4367
|
-
<label tuiLabel>Choose a date</label>
|
|
4612
|
+
<label tuiLabel>Choose a date and time</label>
|
|
4368
4613
|
<input
|
|
4369
4614
|
tuiInputDateTime
|
|
4370
4615
|
[(ngModel)]="value"
|
|
@@ -4396,9 +4641,9 @@ class EzUITableDateFilter {
|
|
|
4396
4641
|
}
|
|
4397
4642
|
`, isInline: true, styles: [".filterPopContainer{display:flex;flex-direction:column;gap:10px;padding:10px;min-width:20rem}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3$1.TuiDropdownDirective, selector: "[tuiDropdown]:not(ng-container):not(ng-template)", inputs: ["tuiDropdown"], exportAs: ["tuiDropdown"] }, { kind: "directive", type: i3$1.TuiDropdownOpen, selector: "[tuiDropdown][tuiDropdownAuto],[tuiDropdown][tuiDropdownOpen],[tuiDropdown][tuiDropdownOpenChange]", inputs: ["tuiDropdownEnabled", "tuiDropdownOpen"], outputs: ["tuiDropdownOpenChange"] }, { kind: "directive", type: i3$1.TuiDropdownContent, selector: "ng-template[tuiDropdown]" }, { kind: "component", type: i4$1.TuiDataListWrapperComponent, selector: "tui-data-list-wrapper:not([labels])", inputs: ["items", "emptyContent", "size", "itemContent"], outputs: ["itemClick"] }, { kind: "directive", type: TuiButton, selector: "a[tuiButton],button[tuiButton],label[tuiButton],a[tuiIconButton],button[tuiIconButton],label[tuiIconButton]", inputs: ["size"] }, { kind: "directive", type: TuiButtonSelect, selector: "button[tuiButtonSelect]" }, { kind: "component", type: TuiBadgeNotification, selector: "tui-badge-notification", inputs: ["size"] }, { kind: "directive", type: i4$1.TuiBadgedContentDirective, selector: "[tuiSlot]", inputs: ["tuiSlot"] }, { kind: "component", type: i4$1.TuiBadgedContentComponent, selector: "tui-badged-content" }, { kind: "directive", type: i2.TuiLabel, selector: "label[tuiLabel]" }, { kind: "component", type: i3.TuiTextfieldComponent, selector: "tui-textfield:not([multi])", inputs: ["content", "filler", "invalid", "tuiAppearanceFocus", "tuiAppearanceState"] }, { kind: "directive", type: i4$1.TuiInputDateTimeDirective, selector: "input[tuiInputDateTime]", inputs: ["timeMode", "min", "max"] }, { kind: "component", type: i6.TuiCalendar, selector: "tui-calendar:not([new]):not([months])", inputs: ["minViewedMonth", "maxViewedMonth", "showAdjacent", "markerHandler", "initialView", "hoveredItem"], outputs: ["hoveredItemChange", "dayClick"] }, { kind: "pipe", type: TuiStringifyContentPipe, name: "tuiStringifyContent" }] });
|
|
4398
4643
|
}
|
|
4399
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type:
|
|
4644
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: EzUITableDateTimeFilter, decorators: [{
|
|
4400
4645
|
type: Component,
|
|
4401
|
-
args: [{ selector: 'ezui-table-
|
|
4646
|
+
args: [{ selector: 'ezui-table-datetimefilter', imports: [CommonModule, FormsModule, TuiDropdown, TuiDataListWrapper, TuiButton, TuiButtonSelect, TuiStringifyContentPipe, TuiBadgeNotification, TuiBadgedContent, TuiInput, TuiInputDateTime], template: `
|
|
4402
4647
|
@if(column){
|
|
4403
4648
|
<tui-badged-content>
|
|
4404
4649
|
@if(filterApplied()){
|
|
@@ -4439,7 +4684,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
|
|
|
4439
4684
|
</button>
|
|
4440
4685
|
|
|
4441
4686
|
<tui-textfield (keydown.enter)="applyFilter(filter.expression)">
|
|
4442
|
-
<label tuiLabel>Choose a date</label>
|
|
4687
|
+
<label tuiLabel>Choose a date and time</label>
|
|
4443
4688
|
<input
|
|
4444
4689
|
tuiInputDateTime
|
|
4445
4690
|
[(ngModel)]="value"
|
|
@@ -5923,5 +6168,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
|
|
|
5923
6168
|
* Generated bundle index. Do not edit.
|
|
5924
6169
|
*/
|
|
5925
6170
|
|
|
5926
|
-
export { BaseCRUDInterface, BaseListInterface, EzUIBooleanInput, EzUIDateInput, EzUIDateTimeInput, EzUIDialog, EzUIFileInput, EzUIFilterHelpers, EzUIIconSelector, EzUILayout, EzUILayoutService, EzUIMarkdownEditor, EzUIMenuBar, EzUIMenuBarSubDataList, EzUIMultiSelect, EzUINumberInput, EzUIPasswordInput, EzUISelect, EzUIShowMoreText, EzUITTableSortableColumn, EzUITable, EzUITableBooleanFilter, EzUITableDateFilter, EzUITableFilterService, EzUITableNumberFilter, EzUITableSelectFilter, EzUITableTextFilter, EzUITextInput, compressImage };
|
|
6171
|
+
export { BaseCRUDInterface, BaseListInterface, EzUIBooleanInput, EzUIDateInput, EzUIDateTimeInput, EzUIDialog, EzUIFileInput, EzUIFilterHelpers, EzUIIconSelector, EzUILayout, EzUILayoutService, EzUIMarkdownEditor, EzUIMenuBar, EzUIMenuBarSubDataList, EzUIMultiSelect, EzUINumberInput, EzUIPasswordInput, EzUISelect, EzUIShowMoreText, EzUITTableSortableColumn, EzUITable, EzUITableBooleanFilter, EzUITableDateFilter, EzUITableDateTimeFilter, EzUITableFilterService, EzUITableNumberFilter, EzUITableSelectFilter, EzUITableTextFilter, EzUITextInput, compressImage };
|
|
5927
6172
|
//# sourceMappingURL=kris701-ez-ui.mjs.map
|