@kris701/ez-ui 1.3.15 → 1.3.17
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.
|
@@ -4359,8 +4359,8 @@ class EzUIShowMoreText {
|
|
|
4359
4359
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: EzUIShowMoreText, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4360
4360
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: EzUIShowMoreText, isStandalone: true, selector: "ezui-showmoretext", inputs: { value: "value", maxCharacters: "maxCharacters" }, usesOnChanges: true, ngImport: i0, template: `
|
|
4361
4361
|
<tui-elastic-container>
|
|
4362
|
-
<div [innerHTML]="current()"></div>
|
|
4363
4362
|
@if(value.length > maxCharacters){
|
|
4363
|
+
<div [innerHTML]="current()"></div>
|
|
4364
4364
|
<button
|
|
4365
4365
|
tuiLink
|
|
4366
4366
|
type="button"
|
|
@@ -4369,6 +4369,9 @@ class EzUIShowMoreText {
|
|
|
4369
4369
|
Show {{ current() === value ? 'less' : 'more' }}
|
|
4370
4370
|
</button>
|
|
4371
4371
|
}
|
|
4372
|
+
@else {
|
|
4373
|
+
<div [innerHTML]="value"></div>
|
|
4374
|
+
}
|
|
4372
4375
|
</tui-elastic-container>
|
|
4373
4376
|
`, isInline: true, styles: [""], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: CommonModule }, { kind: "component", type: TuiElasticContainer, selector: "tui-elastic-container" }, { kind: "directive", type: TuiLink, selector: "a[tuiLink], button[tuiLink]" }] });
|
|
4374
4377
|
}
|
|
@@ -4381,8 +4384,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
|
|
|
4381
4384
|
TuiLink
|
|
4382
4385
|
], template: `
|
|
4383
4386
|
<tui-elastic-container>
|
|
4384
|
-
<div [innerHTML]="current()"></div>
|
|
4385
4387
|
@if(value.length > maxCharacters){
|
|
4388
|
+
<div [innerHTML]="current()"></div>
|
|
4386
4389
|
<button
|
|
4387
4390
|
tuiLink
|
|
4388
4391
|
type="button"
|
|
@@ -4391,6 +4394,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
|
|
|
4391
4394
|
Show {{ current() === value ? 'less' : 'more' }}
|
|
4392
4395
|
</button>
|
|
4393
4396
|
}
|
|
4397
|
+
@else {
|
|
4398
|
+
<div [innerHTML]="value"></div>
|
|
4399
|
+
}
|
|
4394
4400
|
</tui-elastic-container>
|
|
4395
4401
|
` }]
|
|
4396
4402
|
}], propDecorators: { value: [{
|
|
@@ -6047,6 +6053,7 @@ class EzUITableSelectFilter {
|
|
|
6047
6053
|
selected = [];
|
|
6048
6054
|
filterType;
|
|
6049
6055
|
filterTypes;
|
|
6056
|
+
appearanceMap = new Map();
|
|
6050
6057
|
stringifyOption = (item) => `${item.label}`;
|
|
6051
6058
|
stringifyValue = (value) => this.getOptionLabel(this.options.find((item) => this.getOptionValue(item) === value));
|
|
6052
6059
|
getOptionLabel(item) {
|
|
@@ -6117,7 +6124,7 @@ class EzUITableSelectFilter {
|
|
|
6117
6124
|
this.filterApplied.set(false);
|
|
6118
6125
|
}
|
|
6119
6126
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: EzUITableSelectFilter, deps: [{ token: EzUITable }], target: i0.ɵɵFactoryTarget.Component });
|
|
6120
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: EzUITableSelectFilter, isStandalone: true, selector: "ezui-table-selectfilter", inputs: { column: "column", optionLabel: "optionLabel", optionValue: "optionValue", options: "options" }, ngImport: i0, template: `
|
|
6127
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: EzUITableSelectFilter, isStandalone: true, selector: "ezui-table-selectfilter", inputs: { column: "column", optionLabel: "optionLabel", optionValue: "optionValue", options: "options", appearanceMap: "appearanceMap" }, ngImport: i0, template: `
|
|
6121
6128
|
@if(column){
|
|
6122
6129
|
<tui-badged-content>
|
|
6123
6130
|
@if(filterApplied()){
|
|
@@ -6163,20 +6170,31 @@ class EzUITableSelectFilter {
|
|
|
6163
6170
|
tuiButtonSelect
|
|
6164
6171
|
[(ngModel)]="selected"
|
|
6165
6172
|
>
|
|
6166
|
-
|
|
6173
|
+
@if(selected.length == 0){
|
|
6174
|
+
<span style="opacity:0.7">No items selected</span>
|
|
6175
|
+
}
|
|
6176
|
+
@else {
|
|
6177
|
+
@for(select of selected; track select){
|
|
6178
|
+
@let appearance = appearanceMap.get(select);
|
|
6179
|
+
<span tuiChip size="xs" [appearance]="appearance ? appearance : ''">{{ stringifyValue(select) }}</span>
|
|
6180
|
+
}
|
|
6181
|
+
}
|
|
6167
6182
|
|
|
6168
|
-
<tui-data-list *tuiDropdown>
|
|
6183
|
+
<tui-data-list *tuiDropdown style="min-width:20vw">
|
|
6169
6184
|
<tui-opt-group
|
|
6170
6185
|
label="Options"
|
|
6171
6186
|
tuiMultiSelectGroup
|
|
6172
6187
|
>
|
|
6173
6188
|
@for (option of options; track getOptionValue(option)) {
|
|
6189
|
+
@let value = getOptionValue(option);
|
|
6190
|
+
@let label = getOptionLabel(option);
|
|
6191
|
+
@let appearance = appearanceMap.get(value);
|
|
6174
6192
|
<button
|
|
6175
6193
|
tuiOption
|
|
6176
6194
|
type="button"
|
|
6177
|
-
[value]="
|
|
6195
|
+
[value]="value"
|
|
6178
6196
|
>
|
|
6179
|
-
{{
|
|
6197
|
+
<span tuiChip size="xs" [appearance]="appearance ? appearance : ''">{{ label }}</span>
|
|
6180
6198
|
</button>
|
|
6181
6199
|
}
|
|
6182
6200
|
</tui-opt-group>
|
|
@@ -6206,11 +6224,11 @@ class EzUITableSelectFilter {
|
|
|
6206
6224
|
</div>
|
|
6207
6225
|
</ng-template>
|
|
6208
6226
|
}
|
|
6209
|
-
`, 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.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: "component", type: i4$1.TuiMultiSelectGroupComponent, selector: "tui-opt-group[tuiMultiSelectGroup]", inputs: ["label"] }, { kind: "directive", type: i4$1.TuiMultiSelectGroupDirective, selector: "[tuiMultiSelectGroup]" }, { kind: "component", type: i3$1.TuiDataListComponent, selector: "tui-data-list", inputs: ["emptyContent", "size"] }, { kind: "directive", type: i3$1.TuiOption, selector: "button[tuiOption], a[tuiOption], label[tuiOption]", inputs: ["disabled"] }, { kind: "directive", type: i3$1.TuiOptionWithValue, selector: "button[tuiOption][value], a[tuiOption][value], label[tuiOption][value]", inputs: ["disabled", "value"] }, { kind: "directive", type: i3$1.TuiOptGroup, selector: "tui-opt-group", inputs: ["label"] }, { kind: "pipe", type: TuiStringifyContentPipe, name: "tuiStringifyContent" }] });
|
|
6227
|
+
`, 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.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: "component", type: i4$1.TuiMultiSelectGroupComponent, selector: "tui-opt-group[tuiMultiSelectGroup]", inputs: ["label"] }, { kind: "directive", type: i4$1.TuiMultiSelectGroupDirective, selector: "[tuiMultiSelectGroup]" }, { kind: "component", type: i3$1.TuiDataListComponent, selector: "tui-data-list", inputs: ["emptyContent", "size"] }, { kind: "directive", type: i3$1.TuiOption, selector: "button[tuiOption], a[tuiOption], label[tuiOption]", inputs: ["disabled"] }, { kind: "directive", type: i3$1.TuiOptionWithValue, selector: "button[tuiOption][value], a[tuiOption][value], label[tuiOption][value]", inputs: ["disabled", "value"] }, { kind: "directive", type: i3$1.TuiOptGroup, selector: "tui-opt-group", inputs: ["label"] }, { kind: "directive", type: TuiChip, selector: "[tuiChip]", inputs: ["size"] }, { kind: "pipe", type: TuiStringifyContentPipe, name: "tuiStringifyContent" }] });
|
|
6210
6228
|
}
|
|
6211
6229
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: EzUITableSelectFilter, decorators: [{
|
|
6212
6230
|
type: Component,
|
|
6213
|
-
args: [{ selector: 'ezui-table-selectfilter', imports: [CommonModule, FormsModule, TuiDropdown, TuiDataListWrapper, TuiButton, TuiButtonSelect, TuiStringifyContentPipe, TuiBadgeNotification, TuiBadgedContent, TuiInput, TuiMultiSelect, TuiDataList], template: `
|
|
6231
|
+
args: [{ selector: 'ezui-table-selectfilter', imports: [CommonModule, FormsModule, TuiDropdown, TuiDataListWrapper, TuiButton, TuiButtonSelect, TuiStringifyContentPipe, TuiBadgeNotification, TuiBadgedContent, TuiInput, TuiMultiSelect, TuiDataList, TuiChip], template: `
|
|
6214
6232
|
@if(column){
|
|
6215
6233
|
<tui-badged-content>
|
|
6216
6234
|
@if(filterApplied()){
|
|
@@ -6256,20 +6274,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
|
|
|
6256
6274
|
tuiButtonSelect
|
|
6257
6275
|
[(ngModel)]="selected"
|
|
6258
6276
|
>
|
|
6259
|
-
|
|
6277
|
+
@if(selected.length == 0){
|
|
6278
|
+
<span style="opacity:0.7">No items selected</span>
|
|
6279
|
+
}
|
|
6280
|
+
@else {
|
|
6281
|
+
@for(select of selected; track select){
|
|
6282
|
+
@let appearance = appearanceMap.get(select);
|
|
6283
|
+
<span tuiChip size="xs" [appearance]="appearance ? appearance : ''">{{ stringifyValue(select) }}</span>
|
|
6284
|
+
}
|
|
6285
|
+
}
|
|
6260
6286
|
|
|
6261
|
-
<tui-data-list *tuiDropdown>
|
|
6287
|
+
<tui-data-list *tuiDropdown style="min-width:20vw">
|
|
6262
6288
|
<tui-opt-group
|
|
6263
6289
|
label="Options"
|
|
6264
6290
|
tuiMultiSelectGroup
|
|
6265
6291
|
>
|
|
6266
6292
|
@for (option of options; track getOptionValue(option)) {
|
|
6293
|
+
@let value = getOptionValue(option);
|
|
6294
|
+
@let label = getOptionLabel(option);
|
|
6295
|
+
@let appearance = appearanceMap.get(value);
|
|
6267
6296
|
<button
|
|
6268
6297
|
tuiOption
|
|
6269
6298
|
type="button"
|
|
6270
|
-
[value]="
|
|
6299
|
+
[value]="value"
|
|
6271
6300
|
>
|
|
6272
|
-
{{
|
|
6301
|
+
<span tuiChip size="xs" [appearance]="appearance ? appearance : ''">{{ label }}</span>
|
|
6273
6302
|
</button>
|
|
6274
6303
|
}
|
|
6275
6304
|
</tui-opt-group>
|
|
@@ -6308,6 +6337,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
|
|
|
6308
6337
|
type: Input
|
|
6309
6338
|
}], options: [{
|
|
6310
6339
|
type: Input
|
|
6340
|
+
}], appearanceMap: [{
|
|
6341
|
+
type: Input
|
|
6311
6342
|
}] } });
|
|
6312
6343
|
|
|
6313
6344
|
class EzUITableTextFilter {
|