@kris701/ez-ui 1.2.12 → 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 +281 -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',
|
|
@@ -3857,6 +3874,18 @@ class EzUITable {
|
|
|
3857
3874
|
<ng-container [ngTemplateOutlet]="tableHeader"></ng-container>
|
|
3858
3875
|
</tr>
|
|
3859
3876
|
</thead>
|
|
3877
|
+
@if(displayValues().length == 0){
|
|
3878
|
+
<td colSpan="9999">
|
|
3879
|
+
<tui-block-status>
|
|
3880
|
+
<tui-icon tuiSlot="top" icon="grid-2x2-x" />
|
|
3881
|
+
|
|
3882
|
+
<h3>No Data</h3>
|
|
3883
|
+
|
|
3884
|
+
No data matches your filters
|
|
3885
|
+
</tui-block-status>
|
|
3886
|
+
</td>
|
|
3887
|
+
}
|
|
3888
|
+
|
|
3860
3889
|
@for (item of displayValues(); track page() * pageSize() + i; let i = $index){
|
|
3861
3890
|
@let fullIndex = page() * pageSize() + i;
|
|
3862
3891
|
<tbody tuiTbody>
|
|
@@ -3963,6 +3992,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
|
|
|
3963
3992
|
<ng-container [ngTemplateOutlet]="tableHeader"></ng-container>
|
|
3964
3993
|
</tr>
|
|
3965
3994
|
</thead>
|
|
3995
|
+
@if(displayValues().length == 0){
|
|
3996
|
+
<td colSpan="9999">
|
|
3997
|
+
<tui-block-status>
|
|
3998
|
+
<tui-icon tuiSlot="top" icon="grid-2x2-x" />
|
|
3999
|
+
|
|
4000
|
+
<h3>No Data</h3>
|
|
4001
|
+
|
|
4002
|
+
No data matches your filters
|
|
4003
|
+
</tui-block-status>
|
|
4004
|
+
</td>
|
|
4005
|
+
}
|
|
4006
|
+
|
|
3966
4007
|
@for (item of displayValues(); track page() * pageSize() + i; let i = $index){
|
|
3967
4008
|
@let fullIndex = page() * pageSize() + i;
|
|
3968
4009
|
<tbody tuiTbody>
|
|
@@ -4229,7 +4270,7 @@ class EzUITableDateFilter {
|
|
|
4229
4270
|
filterVisible = signal(false, /* @ts-ignore */
|
|
4230
4271
|
...(ngDevMode ? [{ debugName: "filterVisible" }] : /* istanbul ignore next */ []));
|
|
4231
4272
|
table;
|
|
4232
|
-
value =
|
|
4273
|
+
value = TuiDay.currentLocal();
|
|
4233
4274
|
filterType = signal({}, /* @ts-ignore */
|
|
4234
4275
|
...(ngDevMode ? [{ debugName: "filterType" }] : /* istanbul ignore next */ []));
|
|
4235
4276
|
filterTypes;
|
|
@@ -4247,6 +4288,234 @@ class EzUITableDateFilter {
|
|
|
4247
4288
|
}
|
|
4248
4289
|
];
|
|
4249
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]);
|
|
4250
4519
|
this.table.onPresetChange.subscribe(x => {
|
|
4251
4520
|
if (!x) {
|
|
4252
4521
|
this.filterType.set(this.filterTypes[0]);
|
|
@@ -4298,8 +4567,8 @@ class EzUITableDateFilter {
|
|
|
4298
4567
|
this.filterVisible.set(false);
|
|
4299
4568
|
this.filterApplied.set(false);
|
|
4300
4569
|
}
|
|
4301
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type:
|
|
4302
|
-
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: `
|
|
4303
4572
|
@if(column){
|
|
4304
4573
|
<tui-badged-content>
|
|
4305
4574
|
@if(filterApplied()){
|
|
@@ -4340,7 +4609,7 @@ class EzUITableDateFilter {
|
|
|
4340
4609
|
</button>
|
|
4341
4610
|
|
|
4342
4611
|
<tui-textfield (keydown.enter)="applyFilter(filter.expression)">
|
|
4343
|
-
<label tuiLabel>Choose a date</label>
|
|
4612
|
+
<label tuiLabel>Choose a date and time</label>
|
|
4344
4613
|
<input
|
|
4345
4614
|
tuiInputDateTime
|
|
4346
4615
|
[(ngModel)]="value"
|
|
@@ -4372,9 +4641,9 @@ class EzUITableDateFilter {
|
|
|
4372
4641
|
}
|
|
4373
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" }] });
|
|
4374
4643
|
}
|
|
4375
|
-
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: [{
|
|
4376
4645
|
type: Component,
|
|
4377
|
-
args: [{ selector: 'ezui-table-
|
|
4646
|
+
args: [{ selector: 'ezui-table-datetimefilter', imports: [CommonModule, FormsModule, TuiDropdown, TuiDataListWrapper, TuiButton, TuiButtonSelect, TuiStringifyContentPipe, TuiBadgeNotification, TuiBadgedContent, TuiInput, TuiInputDateTime], template: `
|
|
4378
4647
|
@if(column){
|
|
4379
4648
|
<tui-badged-content>
|
|
4380
4649
|
@if(filterApplied()){
|
|
@@ -4415,7 +4684,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
|
|
|
4415
4684
|
</button>
|
|
4416
4685
|
|
|
4417
4686
|
<tui-textfield (keydown.enter)="applyFilter(filter.expression)">
|
|
4418
|
-
<label tuiLabel>Choose a date</label>
|
|
4687
|
+
<label tuiLabel>Choose a date and time</label>
|
|
4419
4688
|
<input
|
|
4420
4689
|
tuiInputDateTime
|
|
4421
4690
|
[(ngModel)]="value"
|
|
@@ -5899,5 +6168,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
|
|
|
5899
6168
|
* Generated bundle index. Do not edit.
|
|
5900
6169
|
*/
|
|
5901
6170
|
|
|
5902
|
-
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 };
|
|
5903
6172
|
//# sourceMappingURL=kris701-ez-ui.mjs.map
|