@inspark/inspark-components 1.0.21 → 1.0.23
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/full/bundles/inspark-inspark-components.umd.js +365 -23
- package/full/bundles/inspark-inspark-components.umd.js.map +1 -1
- package/full/bundles/inspark-inspark-components.umd.min.js +2 -2
- package/full/bundles/inspark-inspark-components.umd.min.js.map +1 -1
- package/full/components/autocomplete/autocomplete.component.d.ts +60 -0
- package/full/components/button/button.component.d.ts +1 -1
- package/full/components/input-text/input-text.component.d.ts +6 -0
- package/full/components/table/table.component.d.ts +2 -1
- package/full/components/tree-table/tree-table.component.d.ts +2 -2
- package/full/esm2015/components/autocomplete/autocomplete.component.js +310 -0
- package/full/esm2015/components/button/button.component.js +1 -1
- package/full/esm2015/components/dropdown/dropdown.component.js +4 -4
- package/full/esm2015/components/input-text/input-text.component.js +32 -4
- package/full/esm2015/components/inspark.module.js +7 -4
- package/full/esm2015/components/table/table.component.js +7 -4
- package/full/esm2015/components/tree-table/tree-table.component.js +4 -4
- package/full/esm2015/inspark-inspark-components.js +11 -10
- package/full/esm2015/public_api.js +2 -1
- package/full/esm5/components/autocomplete/autocomplete.component.js +318 -0
- package/full/esm5/components/button/button.component.js +1 -1
- package/full/esm5/components/dropdown/dropdown.component.js +2 -2
- package/full/esm5/components/input-text/input-text.component.js +32 -4
- package/full/esm5/components/inspark.module.js +7 -4
- package/full/esm5/components/table/table.component.js +7 -4
- package/full/esm5/components/tree-table/tree-table.component.js +4 -4
- package/full/esm5/inspark-inspark-components.js +11 -10
- package/full/esm5/public_api.js +2 -1
- package/full/fesm2015/inspark-inspark-components.js +347 -15
- package/full/fesm2015/inspark-inspark-components.js.map +1 -1
- package/full/fesm5/inspark-inspark-components.js +353 -13
- package/full/fesm5/inspark-inspark-components.js.map +1 -1
- package/full/index.css +6 -6
- package/full/inspark-inspark-components.d.ts +10 -9
- package/full/inspark-inspark-components.metadata.json +1 -1
- package/full/package.json +1 -1
- package/full/public_api.d.ts +1 -0
- package/interface/package.json +1 -1
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@ import { DynamicDialogInjector } from 'primeng/components/dynamicdialog/dynamicd
|
|
|
10
10
|
import { Subject } from 'rxjs';
|
|
11
11
|
import { NG_VALUE_ACCESSOR, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
12
12
|
import { CommonModule } from '@angular/common';
|
|
13
|
-
import { Menu, Button, DropdownModule, Dropdown, TooltipModule, TreeTableModule, RadioButtonModule, BreadcrumbModule, TreeModule, SharedModule } from 'primeng/primeng';
|
|
13
|
+
import { Menu, Button, DropdownModule, Dropdown, TooltipModule, TreeTableModule, AutoComplete, ButtonModule, RadioButtonModule, BreadcrumbModule, TreeModule, SharedModule } from 'primeng/primeng';
|
|
14
14
|
export { BreadcrumbModule, RadioButtonModule, SharedModule, TreeModule } from 'primeng/primeng';
|
|
15
15
|
import { Router } from '@angular/router';
|
|
16
16
|
import { ScrollingModule } from '@angular/cdk/scrolling';
|
|
@@ -696,14 +696,19 @@ var InputTextComponent = /** @class */ (function () {
|
|
|
696
696
|
this.error = null;
|
|
697
697
|
this.size = 100000;
|
|
698
698
|
this.maxlength = 100000;
|
|
699
|
-
this.width = '
|
|
699
|
+
this.width = '';
|
|
700
|
+
this.display = false;
|
|
701
|
+
this.large = true;
|
|
702
|
+
this.small = false;
|
|
700
703
|
this.placeholder = '';
|
|
701
704
|
this.id = null;
|
|
702
705
|
this.testId = null;
|
|
703
706
|
this.opacity = true;
|
|
704
707
|
this.shadow = false;
|
|
708
|
+
this.right = false;
|
|
705
709
|
this.focus = new EventEmitter();
|
|
706
710
|
this.blur = new EventEmitter();
|
|
711
|
+
this.onClick = new EventEmitter();
|
|
707
712
|
this.propagateChange = function (_) {
|
|
708
713
|
};
|
|
709
714
|
}
|
|
@@ -734,6 +739,9 @@ var InputTextComponent = /** @class */ (function () {
|
|
|
734
739
|
// Store the provided function as an internal method.
|
|
735
740
|
this.onTouched = fn;
|
|
736
741
|
};
|
|
742
|
+
InputTextComponent.prototype.clear = function () {
|
|
743
|
+
this.onClick.emit('');
|
|
744
|
+
};
|
|
737
745
|
InputTextComponent.prototype.onChange = function (_) {
|
|
738
746
|
if (this.type === 'number') {
|
|
739
747
|
this.propagateChange(+this.value);
|
|
@@ -777,6 +785,18 @@ var InputTextComponent = /** @class */ (function () {
|
|
|
777
785
|
Input(),
|
|
778
786
|
__metadata("design:type", Object)
|
|
779
787
|
], InputTextComponent.prototype, "width", void 0);
|
|
788
|
+
__decorate([
|
|
789
|
+
Input(),
|
|
790
|
+
__metadata("design:type", Object)
|
|
791
|
+
], InputTextComponent.prototype, "display", void 0);
|
|
792
|
+
__decorate([
|
|
793
|
+
Input(),
|
|
794
|
+
__metadata("design:type", Object)
|
|
795
|
+
], InputTextComponent.prototype, "large", void 0);
|
|
796
|
+
__decorate([
|
|
797
|
+
Input(),
|
|
798
|
+
__metadata("design:type", Object)
|
|
799
|
+
], InputTextComponent.prototype, "small", void 0);
|
|
780
800
|
__decorate([
|
|
781
801
|
Input(),
|
|
782
802
|
__metadata("design:type", Object)
|
|
@@ -801,6 +821,10 @@ var InputTextComponent = /** @class */ (function () {
|
|
|
801
821
|
Input(),
|
|
802
822
|
__metadata("design:type", Object)
|
|
803
823
|
], InputTextComponent.prototype, "shadow", void 0);
|
|
824
|
+
__decorate([
|
|
825
|
+
Input(),
|
|
826
|
+
__metadata("design:type", Object)
|
|
827
|
+
], InputTextComponent.prototype, "right", void 0);
|
|
804
828
|
__decorate([
|
|
805
829
|
Input(),
|
|
806
830
|
__metadata("design:type", String)
|
|
@@ -825,10 +849,14 @@ var InputTextComponent = /** @class */ (function () {
|
|
|
825
849
|
Output(),
|
|
826
850
|
__metadata("design:type", EventEmitter)
|
|
827
851
|
], InputTextComponent.prototype, "blur", void 0);
|
|
852
|
+
__decorate([
|
|
853
|
+
Output(),
|
|
854
|
+
__metadata("design:type", EventEmitter)
|
|
855
|
+
], InputTextComponent.prototype, "onClick", void 0);
|
|
828
856
|
InputTextComponent = InputTextComponent_1 = __decorate([
|
|
829
857
|
Component({
|
|
830
858
|
selector: 'in-input-text',
|
|
831
|
-
template: "<label [ngStyle]=\"{width: width}\" class=\"label type_varchars\">\n <span *ngIf=\"label\" class=\"c-label__content\">\n {{label}}\n <span *ngIf=\"required\" class=\"c-label__req\">*</span>\n <span *ngIf=\"error\" class=\"c-label__sub_is-error\">{{error}}</span>\n <span\n *ngIf=\"maxlength && value && value.length && value.length >= maxlength\"\n class=\"constraints-message__warning u-text_uppercase\">\n {{'maxlength: ' | translate}} {{maxlength}}</span>\n </span>\n <input (blur)=\"this.blur.emit($event)\"\n
|
|
859
|
+
template: "<label [ngStyle]=\"{width: width}\" class=\"label type_varchars\">\n <span *ngIf=\"label\" class=\"c-label__content\">\n {{label}}\n <span *ngIf=\"required\" class=\"c-label__req\">*</span>\n <span *ngIf=\"error\" class=\"c-label__sub_is-error\">{{error}}</span>\n <span\n *ngIf=\"maxlength && value && value.length && value.length >= maxlength\"\n class=\"constraints-message__warning u-text_uppercase\">\n {{'maxlength: ' | translate}} {{maxlength}}</span>\n </span>\n <form class=\"c-label\">\n <div class=\"input-wrapper u-margin-right-tiny\" [ngClass]=\"{'u-margin-right-tiny': right}\">\n <input (blur)=\"this.blur.emit($event)\"\n (change)=\"onChange($event)\"\n (focus)=\"this.focus.emit($event)\"\n (input)=\"onChange($event)\"\n [(ngModel)]=\"value\"\n [autocomplete]=\"autocomplete? 'on':'off'\"\n [disabled]=\"disabled\"\n [id]=\"id\"\n [maxlength]=\"maxlength\"\n [name]=\"name\"\n [ngClass]=\"{'c-input_opaque' : opacity === false,\n 'c-input_shadowed' : shadow,\n 'c-input_large' : large,\n 'c-input_small' : small}\"\n [ngModelOptions]=\"{standalone: true}\"\n [placeholder]=\"placeholder\"\n [required]=\"required\"\n [size]=\"size\"\n [min]=\"min\"\n [max]=\"max\"\n [step]=\"step\"\n class=\"search-box c-input c-input_large c-input_small field_{{id}}\"\n type=\"search\"\n autofocus=\"\"\n tabindex=\"1\"\n style=\"padding-right: 28px\">\n <button (click)=\"clear()\"\n class=\"button-reset empty\"\n [ngClass]=\"{empty: display}\"\n type=\"reset\"\n [attr.title]=\"'Reset' | translate\">\n <i class=\"fa fa-close\"></i>\n </button>\n </div>\n </form>\n</label>\n",
|
|
832
860
|
providers: [
|
|
833
861
|
{
|
|
834
862
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -836,7 +864,7 @@ var InputTextComponent = /** @class */ (function () {
|
|
|
836
864
|
multi: true,
|
|
837
865
|
}
|
|
838
866
|
],
|
|
839
|
-
styles: ["@charset \"UTF-8\";.label{display:inline-block;margin-bottom:0}.c-input{height:36px}.c-input_opaque{background:var(--colorBgLevel3)}.c-input_shadowed{box-shadow:0 2px 6px 0 rgba(0,0,0,.2)}.constraints-message__warning{color:red}"]
|
|
867
|
+
styles: ["@charset \"UTF-8\";.label{display:inline-block;margin-bottom:0}.c-input{height:36px}.c-input_opaque{background:var(--colorBgLevel3)}.c-input_shadowed{box-shadow:0 2px 6px 0 rgba(0,0,0,.2)}.constraints-message__warning{color:red}.button-reset{display:flex;align-items:center;position:absolute;right:6px;top:5px;padding:6px;font-size:15px;border:none;outline:0;cursor:pointer;color:var(--colorTextMuted);background-color:transparent}.button-reset:hover{color:var(--ids-theme-btn-default-color,#fff)}.empty{display:none}.input-wrapper{position:relative;display:flex;align-items:baseline}.c-input:not(:valid)~.button-reset{display:none}"]
|
|
840
868
|
})
|
|
841
869
|
], InputTextComponent);
|
|
842
870
|
return InputTextComponent;
|
|
@@ -1132,7 +1160,7 @@ var DropdownItem = /** @class */ (function () {
|
|
|
1132
1160
|
DropdownItem = __decorate([
|
|
1133
1161
|
Component({
|
|
1134
1162
|
selector: 'p-dropdownItem',
|
|
1135
|
-
template: "\n <li (click)=\"onOptionClick($event)\" role=\"option\"\n [attr.aria-label]=\"option.label\"\n [ngStyle]=\"{'height': itemSize + 'px'}\"\n [ngClass]=\"{'ui-dropdown-item ui-corner-all':true,\n
|
|
1163
|
+
template: "\n <li (click)=\"onOptionClick($event)\" role=\"option\"\n [attr.aria-label]=\"option.label\"\n [ngStyle]=\"{'height': itemSize + 'px'}\"\n [ngClass]=\"{'ui-dropdown-item ui-corner-all':true,\n 'ui-state-highlight': selected,\n 'ui-state-disabled':(option.disabled),\n 'ui-dropdown-item-empty': !option.label||option.label.length === 0}\">\n <span *ngIf=\"!template\">{{option.label || 'empty'}}</span>\n <ng-container *ngTemplateOutlet=\"template; context: {$implicit: option}\"></ng-container>\n </li>\n "
|
|
1136
1164
|
})
|
|
1137
1165
|
], DropdownItem);
|
|
1138
1166
|
return DropdownItem;
|
|
@@ -1835,8 +1863,11 @@ var TableComponent = /** @class */ (function () {
|
|
|
1835
1863
|
TableComponent.prototype.toggleGroup = function (rowIndex, key) {
|
|
1836
1864
|
this.groupInfo[key].isExpanded = !this.groupInfo[key].isExpanded;
|
|
1837
1865
|
};
|
|
1838
|
-
TableComponent.prototype.
|
|
1839
|
-
dt.filterGlobal(
|
|
1866
|
+
TableComponent.prototype.clear = function () {
|
|
1867
|
+
this.dt.filterGlobal('', 'contains');
|
|
1868
|
+
};
|
|
1869
|
+
TableComponent.prototype.localSearch = function (dt, searchText) {
|
|
1870
|
+
dt.filterGlobal(searchText, 'contains');
|
|
1840
1871
|
};
|
|
1841
1872
|
TableComponent.prototype.sortByGroup = function () {
|
|
1842
1873
|
var g = this.groupMode;
|
|
@@ -2029,7 +2060,7 @@ var TableComponent = /** @class */ (function () {
|
|
|
2029
2060
|
TableComponent = __decorate([
|
|
2030
2061
|
Component({
|
|
2031
2062
|
selector: 'in-table',
|
|
2032
|
-
template: "<span *ngIf=\"label\" class=\"c-label\">\n {{label}}\n <span *ngIf=\"required\" class=\"c-label__req\">*</span>\n <span *ngIf=\"error\" class=\"c-label__sub_is-error\">{{error}}</span>\n</span>\n<p-table #dt\n (onSort)=\"onSort()\"\n (onStateRestore)=\"restoreSearchText()\"\n (onStateSave)=\"stateSave($event)\"\n (sortFunction)=\"sortFunction? sortFunction.emit($event): null\"\n [(selection)]=\"selectionValue\"\n [class]=\"class\"\n [columns]=\"filteredColumns\"\n [customSort]=\"customSort\"\n [dataKey]=\"dataKey || 'id'\"\n [globalFilterFields]=\"globalFilteredColumns\"\n [resizableColumns]=\"resizableColumns\"\n [scrollHeight]=\"scrollHeight\"\n [scrollable]=\"scrollable\"\n [selectionMode]=\"selectionMode\"\n [sortField]=\"sortField || 'id'\"\n [sortOrder]=\"isAscending ? 1 : -1\"\n [stateKey]=\"stateKey\"\n [stateStorage]=\"'local'\"\n [style]=\"style\"\n [value]=\"values\"\n columnResizeMode=\"expand\"\n\n>\n\n <ng-template *ngIf=\"colGroupTemplate\" let-columns pTemplate=\"body\">\n <ng-container\n *ngTemplateOutlet=\"colGroupTemplate; context: {$implicit: { columns: columns}}\"></ng-container>\n </ng-template>\n\n <ng-template *ngIf=\"!colGroupTemplate\" let-columns pTemplate=\"colgroup\">\n <colgroup *ngIf=\"!isMobileView\">\n <col *ngIf=\"checkboxSelection\" style=\"width: 44px;\">\n <col *ngFor=\"let col of filteredColumns; let idx = index\" [style.width]=\"calcWidth(idx, col.field, col.width)\">\n </colgroup>\n </ng-template>\n\n <ng-template let-columns pTemplate=\"header\">\n <ng-container *ngIf=\"showHeader\">\n <tr>\n <th *ngIf=\"checkboxSelection\" class=\"u-position-relative u-text_center\" pResizableColumn style=\"width: 44px;\">\n <p-tableHeaderCheckbox></p-tableHeaderCheckbox>\n </th>\n <th *ngFor=\"let col of filteredColumns\" [pSortableColumn]=\"col.field\" class=\"u-position-relative\"\n pResizableColumn>\n <div class=\"ui-table-thead-title\"\n title=\"{{col.label | translate}}\">\n {{col.label | translate}}\n </div>\n <p-sortIcon *ngIf=\"isSortIcon\" [field]=\"col.field\"\n class=\"u-position-absolute u-position-absolute-right c-sorticon\"\n style=\"display: flex; width: 18px; top: 0; height: 100%;\"></p-sortIcon>\n </th>\n </tr>\n <tr *ngIf=\"toolbar && toolbar.filter && toolbar.filter.active\">\n <th *ngIf=\"checkboxSelection\" class=\"u-position-relative u-text_center\" pResizableColumn\n style=\"width: 44px;\"></th>\n <th *ngFor=\"let col of columns\" [ngSwitch]=\"col.field\">\n <input\n (input)=\"dt.filter($event.target.value, col.field, 'contains')\"\n *ngSwitchCase=\"colFilter(col.field).type === 'text' ? col.field : ''\"\n autofocus=\"\"\n class=\"c-input c-input_small ng-pristine ng-valid ng-scope ng-empty ng-touched\"\n pInputText\n type=\"text\">\n\n <p-dropdown (onChange)=\"dt.filter($event.value, col.field, 'equals')\"\n *ngSwitchCase=\"colFilter(col.field).type === 'dropdown' ? col.field : ''\"\n [options]=\"colFilter(col.field).options\"\n [style]=\"{ width: '100%', overflow: 'visible' }\"\n appendTo=\"body\"></p-dropdown>\n\n <p-multiSelect (onChange)=\"dt.filter($event.value, col.field, 'in')\"\n *ngSwitchCase=\"colFilter(col.field).type === 'multiselect' ? col.field : ''\"\n [options]=\"colFilter(col.field).options\"\n [style]=\"{ width: '100%', overflow: 'visible' }\" appendTo=\"body\"\n defaultLabel=\"{{'All' | translate}}\"></p-multiSelect>\n <input\n (input)=\"dt.filter($event.target.value, col.field + '2filter', 'contains')\"\n *ngSwitchCase=\"colFilter(col.field).type === 'datetext' ? col.field : ''\"\n autofocus=\"\"\n class=\"c-input c-input_small ng-pristine ng-valid ng-scope ng-empty ng-touched\"\n pInputText\n type=\"text\">\n </th>\n </tr>\n </ng-container>\n </ng-template>\n\n <ng-template *ngIf=\"bodyTemplate\" let-columns=\"columns\" let-rowData let-rowIndex=\"rowIndex\" pTemplate=\"body\">\n <ng-container\n *ngTemplateOutlet=\"bodyTemplate; context: {$implicit: { rowIndex: rowIndex, rowData: rowData, columns: columns}}\"></ng-container>\n </ng-template>\n\n <ng-template *ngIf=\"!bodyTemplate\" let-columns=\"columns\" let-index=\"rowIndex\" let-rowData pTemplate=\"body\">\n <tr\n (click)=\"toggleGroup(index, rowData.groupKey[groupMode])\"\n *ngIf=\"isGrouped && isShowGroup(rowData.groupKey[groupMode], index)\"\n class=\"row_hover_highlight\">\n <td [colSpan]=\"countVisibleColumns() + 1\">\n <span>\n <i\n [ngClass]=\"groupInfo[rowData.groupKey[groupMode]].isExpanded ? 'fa fa-fw fa-angle-down' : 'fa fa-fw fa-angle-right'\"></i>\n <span>{{rowData.groupKey[groupMode] | translate }} ({{countGroup(rowData.groupKey[groupMode], groupMode)}}\n )</span>\n </span>\n </td>\n </tr>\n <tr *ngIf=\"!isGrouped || groupInfo[(rowData.groupKey[groupMode])].isExpanded\"\n [ngClass]=\"{row_active: isRowActive(rowData)}\"\n [pSelectableRow]=\"rowData\"\n class=\"row\">\n <td *ngIf=\"checkboxSelection\" [ngClass]=\"{\n 'row_status_success': rowData.sdirparamstatecolor === 'success',\n 'row_status_error': rowData.sdirparamstatecolor === 'error',\n 'row_status_warning': rowData.sdirparamstatecolor === 'warning',\n 'row_status_critical': rowData.sdirparamstatecolor === 'critical',\n 'row_status_falsevalue': rowData.sdirparamstatecolor === 'falsevalue'\n }\" class=\"u-text_center\"\n style=\"width: 44px\"\n >\n <p-tableCheckbox [value]=\"rowData\"></p-tableCheckbox>\n </td>\n <td (click)=\"activeChange.emit(rowData)\"\n *ngFor=\"let col of filteredColumns\"\n class=\"u-overflow-visible\">\n <div (mouseover)=\"showTooltip($event)\" *ngIf=\"!valueTemplate\" class=\"ui-table-tbody-content\" title>\n {{col.translatable ? (rowData | propertyValue: col.field | translate) : (rowData | propertyValue: col.field)}}\n </div>\n <ng-container\n *ngTemplateOutlet=\"valueTemplate; context: {$implicit: { data: rowData, col: col}}\"></ng-container>\n </td>\n </tr>\n </ng-template>\n\n <ng-template *ngIf=\"toolbar\" pTemplate=\"caption\">\n\n <div class=\"o-grid o-grid_no-gutter\">\n <div class=\"c-tree-table__toolbar-content u-display-inline-flex\">\n <div *ngIf=\"isTextSearch\" class=\"c-form c-form_inline u-display-inline-block\">\n <form class=\"c-label\">\n <div class=\"input-wrapper u-margin-right-tiny\">\n <input #searchTextInput\n (input)=\"localSearch(dt, $event.target.value)\"\n [(ngModel)]=\"searchText\"\n [ngModelOptions]=\"{standalone: true}\"\n autofocus=\"\"\n class=\"search-box c-input c-input_small ng-pristine ng-valid ng-scope ng-empty ng-touched\"\n pInputText\n placeholder=\"{{('SHARED.SEARCH' | translate) + ':'}}\"\n required\n style=\"padding-right: 28px\"\n tabindex=\"1\"\n type=\"search\"\n >\n <button (click)=\"localSearch(dt, $event.target.value)\" class=\"button-reset\" type=\"reset\"\n [attr.title]=\"'Reset' | translate\">\n <i class=\"fa fa-close\"></i>\n </button>\n </div>\n </form>\n </div>\n <div class=\"c-btn c-btn_border-free c-btn_small\">\n <in-table-columns-multiselect (columnsChange)=\"columnsChange($event)\"\n [columns]=\"primaryColumns\"\n [disableActiveCheckboxes]=\"countVisibleColumns() === 1\"></in-table-columns-multiselect>\n </div>\n\n <button (click)=\"onFilter($event)\" *ngIf=\"toolbar.filter\"\n class=\"c-btn c-btn_border-free c-btn_small\"\n >\n <i class=\"fa fa-filter\" title=\"{{'Service filter' | translate}}\"></i>\n </button>\n\n <button (click)=\"addAction.emit($event)\" *ngIf=\"toolbar.add\" [disabled]=\"toolbar.add.disabled\"\n class=\"c-btn c-btn_border-free c-btn_small\"\n >\n <i class=\"fa fa-plus\" title=\"{{'Add' | translate}}\"></i>\n </button>\n\n <button (click)=\"linkAction.emit($event)\" *ngIf=\"toolbar.link\" [disabled]=\"toolbar.link.disabled\"\n class=\"c-btn c-btn_border-free c-btn_small\"\n >\n <i class=\"fa fa-link\" title=\"{{'Link' | translate}}\"></i>\n </button>\n <button (click)=\"csvAction.emit($event)\" *ngIf=\"toolbar.csv\" [disabled]=\"toolbar.csv.disabled\"\n class=\"c-btn c-btn_border-free c-btn_small\"\n >\n <i class=\"fa fa-file-csv\" title=\"{{'LOGS.SAVE_TO_SCV' | translate}}\"></i>\n </button>\n <button (click)=\"saveAction.emit($event)\" *ngIf=\"toolbar.save\"\n [disabled]=\"toolbar.save.disabled\"\n class=\"c-btn c-btn_primary c-btn_small\"\n title=\"{{'Save' | translate}}\"\n >\n {{'Save' | translate}}\n </button>\n <button (click)=\"groupEditAction.emit($event)\" *ngIf=\"toolbar.groupEdit && toolbar.groupEdit.active\"\n [disabled]=\"toolbar.groupEdit.disabled\"\n class=\"c-btn c-btn_border-free c-btn_small\">\n <i class=\"fa fa-pencil-square-o\" title=\"{{'groupEdit' | translate}}\"></i>\n </button>\n <button (click)=\"paramsEditAction.emit($event)\" *ngIf=\"toolbar.paramsEdit && toolbar.paramsEdit.active\"\n [disabled]=\"toolbar.paramsEdit.disabled\"\n class=\"c-btn c-btn_border-free c-btn_small\">\n <i class=\"fa fa-share-square-o\" title=\"{{'paramsEdit' | translate}}\"></i>\n </button>\n\n\n <button (click)=\"removeAction.emit($event)\" *ngIf=\"toolbar.remove && toolbar.remove.active\"\n [disabled]=\"toolbar.remove.disabled\"\n class=\"c-btn c-btn_border-free c-btn_small\">\n <i class=\"fa fa-trash\" title=\"{{'Delete' | translate}}\"></i>\n </button>\n <button (click)=\"unlinkAction.emit($event)\" *ngIf=\"toolbar.unlink\" [disabled]=\"toolbar.unlink.disabled\"\n class=\"c-btn c-btn_border-free c-btn_small\">\n <i class=\"fa fa-unlink\" title=\"{{'Detach tag from selected items' | translate}}\"></i>\n </button>\n <button (click)=\"toggleNodes(true)\"\n *ngIf=\"toolbar.expandAll\"\n class=\"c-btn c-btn_small c-btn_svg-24 c-icon c-icon_svg c-icon_svg-24 c-btn_border-free\"\n title=\"{{'Expand all' | translate}}\">\n <svg fill=\"currentColor\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M20 2H4v2h16V2zM4 20v2h16v-2H4zM12 5l5 6H7l5-6zM17 13l-5 6-5-6h10z\"/>\n </svg>\n </button>\n <button (click)=\"toggleNodes(false)\"\n *ngIf=\"toolbar.expandAll\"\n class=\"c-btn c-btn_small c-btn_svg-24 c-icon c-icon_svg c-icon_svg-24 c-btn_border-free\"\n title=\"{{'Collapse all' | translate}}\">\n <svg fill=\"currentColor\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" xmlns=\"http://www.w3.org/2000/svg\">\n <path clip-rule=\"evenodd\" d=\"M17 3l-5 6-5-6h10zM4 13v-2h16v2H4zm8 2l5 6H7l5-6z\" fill-rule=\"evenodd\"/>\n </svg>\n </button>\n\n <div *ngIf=\"toolbar.groupSort\"\n class=\"c-btn-group\"\n container=\"body\"\n ngbDropdown>\n\n <button class=\"c-btn c-btn_border-free c-btn_small\"\n id=\"dropdownGroupType\"\n ngbDropdownToggle\n title=\"{{'Change the way parameters are grouped' | translate}}\">\n <i aria-hidden=\"true\" class=\"fa fa-object-group\"></i>\n <i aria-hidden=\"true\" class=\"c-caret\"></i>\n </button>\n\n <ul aria-labelledby=\"dropdownGroupType\"\n class=\"c-dropdown-menu c-dropdown-menu_right ng-star-inserted\"\n ngbDropdownMenu\n role=\"menu\">\n <li *ngFor=\"let item of toolbar.groupSort.label\"\n [ngClass]=\"{'is-dropdown-menu__listitem_active': item.value === groupMode}\"\n class=\"c-dropdown-menu__listitem is-dropdown-menu__listitem_active\"\n ngbDropdownItem\n role=\"menuitem\">\n <a (click)=\"toggleMode(item.value)\" class=\"c-dropdown-menu__content\">\n {{item.label}}\n </a>\n </li>\n </ul>\n </div>\n </div>\n </div>\n </ng-template>\n</p-table>\n",
|
|
2063
|
+
template: "<span *ngIf=\"label\" class=\"c-label\">\n {{label}}\n <span *ngIf=\"required\" class=\"c-label__req\">*</span>\n <span *ngIf=\"error\" class=\"c-label__sub_is-error\">{{error}}</span>\n</span>\n<p-table #dt\n (onSort)=\"onSort()\"\n (onStateRestore)=\"restoreSearchText()\"\n (onStateSave)=\"stateSave($event)\"\n (sortFunction)=\"sortFunction? sortFunction.emit($event): null\"\n [(selection)]=\"selectionValue\"\n [class]=\"class\"\n [columns]=\"filteredColumns\"\n [customSort]=\"customSort\"\n [dataKey]=\"dataKey || 'id'\"\n [globalFilterFields]=\"globalFilteredColumns\"\n [resizableColumns]=\"resizableColumns\"\n [scrollHeight]=\"scrollHeight\"\n [scrollable]=\"scrollable\"\n [selectionMode]=\"selectionMode\"\n [sortField]=\"sortField || 'id'\"\n [sortOrder]=\"isAscending ? 1 : -1\"\n [stateKey]=\"stateKey\"\n [stateStorage]=\"'local'\"\n [style]=\"style\"\n [value]=\"values\"\n columnResizeMode=\"expand\"\n\n>\n\n <ng-template *ngIf=\"colGroupTemplate\" let-columns pTemplate=\"body\">\n <ng-container\n *ngTemplateOutlet=\"colGroupTemplate; context: {$implicit: { columns: columns}}\"></ng-container>\n </ng-template>\n\n <ng-template *ngIf=\"!colGroupTemplate\" let-columns pTemplate=\"colgroup\">\n <colgroup *ngIf=\"!isMobileView\">\n <col *ngIf=\"checkboxSelection\" style=\"width: 44px;\">\n <col *ngFor=\"let col of filteredColumns; let idx = index\" [style.width]=\"calcWidth(idx, col.field, col.width)\">\n </colgroup>\n </ng-template>\n\n <ng-template let-columns pTemplate=\"header\">\n <ng-container *ngIf=\"showHeader\">\n <tr>\n <th *ngIf=\"checkboxSelection\" class=\"u-position-relative u-text_center\" pResizableColumn style=\"width: 44px;\">\n <p-tableHeaderCheckbox></p-tableHeaderCheckbox>\n </th>\n <th *ngFor=\"let col of filteredColumns\" [pSortableColumn]=\"col.field\" class=\"u-position-relative\"\n pResizableColumn>\n <div class=\"ui-table-thead-title\"\n title=\"{{col.label | translate}}\">\n {{col.label | translate}}\n </div>\n <p-sortIcon *ngIf=\"isSortIcon\" [field]=\"col.field\"\n class=\"u-position-absolute u-position-absolute-right c-sorticon\"\n style=\"display: flex; width: 18px; top: 0; height: 100%;\"></p-sortIcon>\n </th>\n </tr>\n <tr *ngIf=\"toolbar && toolbar.filter && toolbar.filter.active\">\n <th *ngIf=\"checkboxSelection\" class=\"u-position-relative u-text_center\" pResizableColumn\n style=\"width: 44px;\"></th>\n <th *ngFor=\"let col of columns\" [ngSwitch]=\"col.field\">\n <input\n (input)=\"dt.filter($event.target.value, col.field, 'contains')\"\n *ngSwitchCase=\"colFilter(col.field).type === 'text' ? col.field : ''\"\n autofocus=\"\"\n class=\"c-input c-input_small ng-pristine ng-valid ng-scope ng-empty ng-touched\"\n pInputText\n type=\"text\">\n\n <p-dropdown (onChange)=\"dt.filter($event.value, col.field, 'equals')\"\n *ngSwitchCase=\"colFilter(col.field).type === 'dropdown' ? col.field : ''\"\n [options]=\"colFilter(col.field).options\"\n [style]=\"{ width: '100%', overflow: 'visible' }\"\n appendTo=\"body\"></p-dropdown>\n\n <p-multiSelect (onChange)=\"dt.filter($event.value, col.field, 'in')\"\n *ngSwitchCase=\"colFilter(col.field).type === 'multiselect' ? col.field : ''\"\n [options]=\"colFilter(col.field).options\"\n [style]=\"{ width: '100%', overflow: 'visible' }\" appendTo=\"body\"\n defaultLabel=\"{{'All' | translate}}\"></p-multiSelect>\n <input\n (input)=\"dt.filter($event.target.value, col.field + '2filter', 'contains')\"\n *ngSwitchCase=\"colFilter(col.field).type === 'datetext' ? col.field : ''\"\n autofocus=\"\"\n class=\"c-input c-input_small ng-pristine ng-valid ng-scope ng-empty ng-touched\"\n pInputText\n type=\"text\">\n </th>\n </tr>\n </ng-container>\n </ng-template>\n\n <ng-template *ngIf=\"bodyTemplate\" let-columns=\"columns\" let-rowData let-rowIndex=\"rowIndex\" pTemplate=\"body\">\n <ng-container\n *ngTemplateOutlet=\"bodyTemplate; context: {$implicit: { rowIndex: rowIndex, rowData: rowData, columns: columns}}\"></ng-container>\n </ng-template>\n\n <ng-template *ngIf=\"!bodyTemplate\" let-columns=\"columns\" let-index=\"rowIndex\" let-rowData pTemplate=\"body\">\n <tr\n (click)=\"toggleGroup(index, rowData.groupKey[groupMode])\"\n *ngIf=\"isGrouped && isShowGroup(rowData.groupKey[groupMode], index)\"\n class=\"row_hover_highlight\">\n <td [colSpan]=\"countVisibleColumns() + 1\">\n <span>\n <i\n [ngClass]=\"groupInfo[rowData.groupKey[groupMode]].isExpanded ? 'fa fa-fw fa-angle-down' : 'fa fa-fw fa-angle-right'\"></i>\n <span>{{rowData.groupKey[groupMode] | translate }} ({{countGroup(rowData.groupKey[groupMode], groupMode)}}\n )</span>\n </span>\n </td>\n </tr>\n <tr *ngIf=\"!isGrouped || groupInfo[(rowData.groupKey[groupMode])].isExpanded\"\n [ngClass]=\"{row_active: isRowActive(rowData)}\"\n [pSelectableRow]=\"rowData\"\n class=\"row\">\n <td *ngIf=\"checkboxSelection\" [ngClass]=\"{\n 'row_status_success': rowData.sdirparamstatecolor === 'success',\n 'row_status_error': rowData.sdirparamstatecolor === 'error',\n 'row_status_warning': rowData.sdirparamstatecolor === 'warning',\n 'row_status_critical': rowData.sdirparamstatecolor === 'critical',\n 'row_status_falsevalue': rowData.sdirparamstatecolor === 'falsevalue'\n }\" class=\"u-text_center\"\n style=\"width: 44px\"\n >\n <p-tableCheckbox [value]=\"rowData\"></p-tableCheckbox>\n </td>\n <td (click)=\"activeChange.emit(rowData)\"\n *ngFor=\"let col of filteredColumns\"\n class=\"u-overflow-visible\">\n <div (mouseover)=\"showTooltip($event)\" *ngIf=\"!valueTemplate\" class=\"ui-table-tbody-content\" title>\n {{col.translatable ? (rowData | propertyValue: col.field | translate) : (rowData | propertyValue: col.field)}}\n </div>\n <ng-container\n *ngTemplateOutlet=\"valueTemplate; context: {$implicit: { data: rowData, col: col}}\"></ng-container>\n </td>\n </tr>\n </ng-template>\n\n <ng-template *ngIf=\"toolbar\" pTemplate=\"caption\">\n\n <div class=\"o-grid o-grid_no-gutter\">\n <div class=\"c-tree-table__toolbar-content u-display-inline-flex\">\n <div *ngIf=\"isTextSearch\" class=\"c-form c-form_inline u-display-inline-block\">\n <form class=\"c-label\">\n <div class=\"input-wrapper u-margin-right-tiny\">\n <input #searchTextInput\n (input)=\"localSearch(dt, searchText)\"\n [(ngModel)]=\"searchText\"\n [ngModelOptions]=\"{standalone: true}\"\n autofocus=\"\"\n class=\"search-box c-input c-input_small ng-pristine ng-valid ng-scope ng-empty ng-touched\"\n pInputText\n placeholder=\"{{('SHARED.SEARCH' | translate) + ':'}}\"\n required\n style=\"padding-right: 28px\"\n tabindex=\"1\"\n type=\"search\"\n >\n <button (click)=\"clear()\" class=\"button-reset\" type=\"reset\"\n [attr.title]=\"'Reset' | translate\">\n <i class=\"fa fa-close\"></i>\n </button>\n </div>\n </form>\n </div>\n <div class=\"c-btn c-btn_border-free c-btn_small\">\n <in-table-columns-multiselect (columnsChange)=\"columnsChange($event)\"\n [columns]=\"primaryColumns\"\n [disableActiveCheckboxes]=\"countVisibleColumns() === 1\"></in-table-columns-multiselect>\n </div>\n\n <button (click)=\"onFilter($event)\" *ngIf=\"toolbar.filter\"\n class=\"c-btn c-btn_border-free c-btn_small\"\n >\n <i class=\"fa fa-filter\" title=\"{{'Service filter' | translate}}\"></i>\n </button>\n\n <button (click)=\"addAction.emit($event)\" *ngIf=\"toolbar.add\" [disabled]=\"toolbar.add.disabled\"\n class=\"c-btn c-btn_border-free c-btn_small\"\n >\n <i class=\"fa fa-plus\" title=\"{{'Add' | translate}}\"></i>\n </button>\n\n <button (click)=\"linkAction.emit($event)\" *ngIf=\"toolbar.link\" [disabled]=\"toolbar.link.disabled\"\n class=\"c-btn c-btn_border-free c-btn_small\"\n >\n <i class=\"fa fa-link\" title=\"{{'Link' | translate}}\"></i>\n </button>\n <button (click)=\"csvAction.emit($event)\" *ngIf=\"toolbar.csv\" [disabled]=\"toolbar.csv.disabled\"\n class=\"c-btn c-btn_border-free c-btn_small\"\n >\n <i class=\"fa fa-file-csv\" title=\"{{'LOGS.SAVE_TO_SCV' | translate}}\"></i>\n </button>\n <button (click)=\"saveAction.emit($event)\" *ngIf=\"toolbar.save\"\n [disabled]=\"toolbar.save.disabled\"\n class=\"c-btn c-btn_primary c-btn_small\"\n title=\"{{'Save' | translate}}\"\n >\n {{'Save' | translate}}\n </button>\n <button (click)=\"groupEditAction.emit($event)\" *ngIf=\"toolbar.groupEdit && toolbar.groupEdit.active\"\n [disabled]=\"toolbar.groupEdit.disabled\"\n class=\"c-btn c-btn_border-free c-btn_small\">\n <i class=\"fa fa-pencil-square-o\" title=\"{{'groupEdit' | translate}}\"></i>\n </button>\n <button (click)=\"paramsEditAction.emit($event)\" *ngIf=\"toolbar.paramsEdit && toolbar.paramsEdit.active\"\n [disabled]=\"toolbar.paramsEdit.disabled\"\n class=\"c-btn c-btn_border-free c-btn_small\">\n <i class=\"fa fa-share-square-o\" title=\"{{'paramsEdit' | translate}}\"></i>\n </button>\n\n\n <button (click)=\"removeAction.emit($event)\" *ngIf=\"toolbar.remove && toolbar.remove.active\"\n [disabled]=\"toolbar.remove.disabled\"\n class=\"c-btn c-btn_border-free c-btn_small\">\n <i class=\"fa fa-trash\" title=\"{{'Delete' | translate}}\"></i>\n </button>\n <button (click)=\"unlinkAction.emit($event)\" *ngIf=\"toolbar.unlink\" [disabled]=\"toolbar.unlink.disabled\"\n class=\"c-btn c-btn_border-free c-btn_small\">\n <i class=\"fa fa-unlink\" title=\"{{'Detach tag from selected items' | translate}}\"></i>\n </button>\n <button (click)=\"toggleNodes(true)\"\n *ngIf=\"toolbar.expandAll\"\n class=\"c-btn c-btn_small c-btn_svg-24 c-icon c-icon_svg c-icon_svg-24 c-btn_border-free\"\n title=\"{{'Expand all' | translate}}\">\n <svg fill=\"currentColor\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M20 2H4v2h16V2zM4 20v2h16v-2H4zM12 5l5 6H7l5-6zM17 13l-5 6-5-6h10z\"/>\n </svg>\n </button>\n <button (click)=\"toggleNodes(false)\"\n *ngIf=\"toolbar.expandAll\"\n class=\"c-btn c-btn_small c-btn_svg-24 c-icon c-icon_svg c-icon_svg-24 c-btn_border-free\"\n title=\"{{'Collapse all' | translate}}\">\n <svg fill=\"currentColor\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" xmlns=\"http://www.w3.org/2000/svg\">\n <path clip-rule=\"evenodd\" d=\"M17 3l-5 6-5-6h10zM4 13v-2h16v2H4zm8 2l5 6H7l5-6z\" fill-rule=\"evenodd\"/>\n </svg>\n </button>\n\n <div *ngIf=\"toolbar.groupSort\"\n class=\"c-btn-group\"\n container=\"body\"\n ngbDropdown>\n\n <button class=\"c-btn c-btn_border-free c-btn_small\"\n id=\"dropdownGroupType\"\n ngbDropdownToggle\n title=\"{{'Change the way parameters are grouped' | translate}}\">\n <i aria-hidden=\"true\" class=\"fa fa-object-group\"></i>\n <i aria-hidden=\"true\" class=\"c-caret\"></i>\n </button>\n\n <ul aria-labelledby=\"dropdownGroupType\"\n class=\"c-dropdown-menu c-dropdown-menu_right ng-star-inserted\"\n ngbDropdownMenu\n role=\"menu\">\n <li *ngFor=\"let item of toolbar.groupSort.label\"\n [ngClass]=\"{'is-dropdown-menu__listitem_active': item.value === groupMode}\"\n class=\"c-dropdown-menu__listitem is-dropdown-menu__listitem_active\"\n ngbDropdownItem\n role=\"menuitem\">\n <a (click)=\"toggleMode(item.value)\" class=\"c-dropdown-menu__content\">\n {{item.label}}\n </a>\n </li>\n </ul>\n </div>\n </div>\n </div>\n </ng-template>\n</p-table>\n",
|
|
2033
2064
|
entryComponents: [],
|
|
2034
2065
|
styles: ["@charset \"UTF-8\";.u-overflow-visible{overflow:visible!important}.row_status_success{padding-left:9px!important;border-left:4px solid var(--ids-theme-status-success,#31ac51)}.row_status_error{padding-left:9px!important;border-left:4px solid var(--ids-theme-status-error,#f95c5d)}.row_status_warning{padding-left:9px!important;border-left:4px solid var(--ids-theme-status-warning,#ee9946)}.row_status_critical{padding-left:9px!important;border-left:4px solid var(--ids-theme-status-critical,#f95c5d)}.row_status_falsevalue{padding-left:9px!important;border-left:4px solid var(--ids-theme-status-falsevalue,#85b3cb)}.row_status_disabled{padding-left:9px!important;border-left:4px solid var(--ids-theme-status-disabled)}.row_status_none{padding-left:9px!important;border-left:4px solid transparent}.button-reset{display:flex;align-items:center;position:absolute;right:6px;top:5px;padding:6px;font-size:15px;border:none;outline:0;cursor:pointer;color:var(--colorTextMuted);background-color:transparent}.button-reset:hover{color:var(--ids-theme-btn-default-color,#fff)}.input-wrapper{position:relative;display:flex;align-items:baseline}.c-input:not(:valid)~.button-reset{display:none}"]
|
|
2035
2066
|
})
|
|
@@ -3178,9 +3209,9 @@ var TreeTableComponent = /** @class */ (function () {
|
|
|
3178
3209
|
TreeTableComponent = __decorate([
|
|
3179
3210
|
Component({
|
|
3180
3211
|
selector: 'in-tree-table',
|
|
3181
|
-
template: "<p-treeTable #dt\n [(selection)]=\"selectionValue\"\n [class]=\"class\"\n [columns]=\"visibleColumns()\"\n [resizableColumns]=\"true\"\n [scrollHeight]=\"scrollHeight\"\n [scrollable]=\"scrollable\"\n [selectionMode]=\"selectionMode\"\n [sortField]=\"sortField || 'id'\"\n [sortOrder]=\"isAscending ? 1 : -1\"\n [style]=\"style\"\n [value]=\"values\"\n columnResizeMode=\"expand\"\n>\n <ng-template let-columns pTemplate=\"colgroup\">\n <colgroup>\n <col *ngIf=\"checkboxSelection\" style=\"width:44px;\">\n <col *ngFor=\"let col of visibleColumns()\" [style.width]=\"col.width ? col.width : '10px'\">\n </colgroup>\n </ng-template>\n <ng-template let-columns pTemplate=\"header\">\n <tr>\n <th *ngIf=\"checkboxSelection\">\n <p-treeTableHeaderCheckbox></p-treeTableHeaderCheckbox>\n </th>\n <th *ngFor=\"let col of columns; let i = index\" [ttSortableColumn]=\"col.field\" class=\"u-position-relative\"\n ttResizableColumn>\n <div class=\"ui-treetable-thead-title\" title=\"{{col.label | translate}}\">\n {{col.label | translate}}\n </div>\n <p-treeTableSortIcon [field]=\"col.field\" class=\"ui-sortable-column-buttons\"></p-treeTableSortIcon>\n </th>\n </tr>\n </ng-template>\n\n <ng-template let-columns=\"columns\" let-rowData=\"rowData\" let-rowNode pTemplate=\"body\">\n <tr [ngClass]=\"{row_active: isRowActive(rowData)}\" [ttSelectableRow]=\"rowNode\" class=\"row\">\n <td *ngIf=\"checkboxSelection\">\n <p-treeTableCheckbox [value]=\"rowNode\"></p-treeTableCheckbox>\n </td>\n <td (click)=\"activeChange.emit(rowData)\" *ngFor=\"let col of columns; let i = index\"\n class=\"_u-overflow-visible\">\n <div class=\"\" style=\"display: flex; flex-wrap: nowrap;\">\n <ng-template [ngIf]=\"i == 0\">\n <p-treeTableToggler [rowNode]=\"rowNode\" style=\"align-self: center;\"></p-treeTableToggler>\n </ng-template>\n <div [ngClass]=\"{ 'ui-treetable-tbody-content_has-toggler ': i == 0 }\"\n class=\"ui-treetable-tbody-content cell-content_hover\"\n style=\"flex-grow: 1;\"\n title=\"{{rowData | propertyValue: col.field}}\">\n <ng-container *ngIf=\"!valueTemplate\">\n <i *ngIf=\"rowData.icon && i == 0\" [ngClass]=\"rowData.icon\" class=\"u-margin-right-tiny\"></i>\n {{rowData | propertyValue: col.field}}\n </ng-container>\n\n <ng-container\n *ngTemplateOutlet=\"valueTemplate; context: {$implicit: { data: rowData, col: col}}\"></ng-container>\n </div>\n </div>\n </td>\n </tr>\n </ng-template>\n\n <ng-template *ngIf=\"toolbar\" pTemplate=\"caption\">\n\n <div class=\"o-grid o-grid_no-gutter\">\n <div class=\"c-tree-table__toolbar-content u-display-inline-flex\">\n <div class=\"c-form c-form_inline u-display-inline-block\">\n <
|
|
3212
|
+
template: "<p-treeTable #dt\n [(selection)]=\"selectionValue\"\n [class]=\"class\"\n [columns]=\"visibleColumns()\"\n [resizableColumns]=\"true\"\n [scrollHeight]=\"scrollHeight\"\n [scrollable]=\"scrollable\"\n [selectionMode]=\"selectionMode\"\n [sortField]=\"sortField || 'id'\"\n [sortOrder]=\"isAscending ? 1 : -1\"\n [style]=\"style\"\n [value]=\"values\"\n columnResizeMode=\"expand\"\n>\n <ng-template let-columns pTemplate=\"colgroup\">\n <colgroup>\n <col *ngIf=\"checkboxSelection\" style=\"width:44px;\">\n <col *ngFor=\"let col of visibleColumns()\" [style.width]=\"col.width ? col.width : '10px'\">\n </colgroup>\n </ng-template>\n <ng-template let-columns pTemplate=\"header\">\n <tr>\n <th *ngIf=\"checkboxSelection\">\n <p-treeTableHeaderCheckbox></p-treeTableHeaderCheckbox>\n </th>\n <th *ngFor=\"let col of columns; let i = index\" [ttSortableColumn]=\"col.field\" class=\"u-position-relative\"\n ttResizableColumn>\n <div class=\"ui-treetable-thead-title\" title=\"{{col.label | translate}}\">\n {{col.label | translate}}\n </div>\n <p-treeTableSortIcon [field]=\"col.field\" class=\"ui-sortable-column-buttons\"></p-treeTableSortIcon>\n </th>\n </tr>\n </ng-template>\n\n <ng-template let-columns=\"columns\" let-rowData=\"rowData\" let-rowNode pTemplate=\"body\">\n <tr [ngClass]=\"{row_active: isRowActive(rowData)}\" [ttSelectableRow]=\"rowNode\" class=\"row\">\n <td *ngIf=\"checkboxSelection\">\n <p-treeTableCheckbox [value]=\"rowNode\"></p-treeTableCheckbox>\n </td>\n <td (click)=\"activeChange.emit(rowData)\" *ngFor=\"let col of columns; let i = index\"\n class=\"_u-overflow-visible\">\n <div class=\"\" style=\"display: flex; flex-wrap: nowrap;\">\n <ng-template [ngIf]=\"i == 0\">\n <p-treeTableToggler [rowNode]=\"rowNode\" style=\"align-self: center;\"></p-treeTableToggler>\n </ng-template>\n <div [ngClass]=\"{ 'ui-treetable-tbody-content_has-toggler ': i == 0 }\"\n class=\"ui-treetable-tbody-content cell-content_hover\"\n style=\"flex-grow: 1;\"\n title=\"{{rowData | propertyValue: col.field}}\">\n <ng-container *ngIf=\"!valueTemplate\">\n <i *ngIf=\"rowData.icon && i == 0\" [ngClass]=\"rowData.icon\" class=\"u-margin-right-tiny\"></i>\n {{rowData | propertyValue: col.field}}\n </ng-container>\n\n <ng-container\n *ngTemplateOutlet=\"valueTemplate; context: {$implicit: { data: rowData, col: col}}\"></ng-container>\n </div>\n </div>\n </td>\n </tr>\n </ng-template>\n\n <ng-template *ngIf=\"toolbar\" pTemplate=\"caption\">\n\n <div class=\"o-grid o-grid_no-gutter\">\n <div class=\"c-tree-table__toolbar-content u-display-inline-flex\">\n <div class=\"c-form c-form_inline u-display-inline-block\">\n <form class=\"c-label\">\n <div class=\"input-wrapper u-margin-right-tiny\">\n <input #searchTextInput\n (input)=\"dt.filterGlobal($event.target.value, 'contains')\"\n [(ngModel)]=\"searchText\"\n [ngModelOptions]=\"{standalone: true}\"\n autofocus=\"\"\n class=\"search-box c-input c-input_small ng-pristine ng-valid ng-scope ng-empty ng-touched\"\n pInputText\n placeholder=\"{{('SHARED.SEARCH' | translate) + ':'}}\"\n required\n style=\"padding-right: 28px\"\n tabindex=\"1\"\n type=\"search\"\n >\n <button (click)=\"dt.filterGlobal($event.target.value, 'contains')\" class=\"button-reset\" type=\"reset\"\n [attr.title]=\"'Reset' | translate\">\n <i class=\"fa fa-close\"></i>\n </button>\n </div>\n </form>\n </div>\n <div class=\"c-btn c-btn_border-free c-btn_small\">\n <in-table-columns-multiselect (columnsChange)=\"columnsChange($event)\"\n [columns]=\"columns\"></in-table-columns-multiselect>\n </div>\n\n <button (click)=\"addAction.emit($event)\" *ngIf=\"toolbar.add\" [disabled]=\"toolbar.add.disabled\"\n class=\"c-btn c-btn_border-free c-btn_small\"\n >\n <i class=\"fa fa-plus\" [title]=\"toolbar.add.title || '\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C'\"></i>\n </button>\n\n <button (click)=\"groupAddAction.emit($event)\" *ngIf=\"toolbar.groupAdd\" [disabled]=\"toolbar.groupAdd.disabled\"\n class=\"c-btn c-btn_border-free c-btn_small\"\n >\n <i class=\"fa fa-folder\" [title]=\"toolbar.groupAdd.title || '\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0433\u0440\u0443\u043F\u043F\u0443'\"></i>\n </button>\n\n\n <button (click)=\"saveAction.emit($event)\" *ngIf=\"toolbar.save\"\n [disabled]=\"toolbar.save.disabled\"\n class=\"c-btn c-btn_primary c-btn_small\"\n title=\"{{'Save' | translate}}\"\n >\n {{'Save' | translate}}\n </button>\n <button (click)=\"groupEditAction.emit($event)\" *ngIf=\"toolbar.groupEdit && toolbar.groupEdit.active\"\n [disabled]=\"toolbar.groupEdit.disabled\"\n class=\"c-btn c-btn_border-free c-btn_small\">\n <i class=\"fa fa-pencil-square-o\" title=\"{{'groupEdit' | translate}}\"></i>\n </button>\n <button (click)=\"removeAction.emit($event)\" *ngIf=\"toolbar.remove && toolbar.remove.active\"\n [disabled]=\"toolbar.remove.disabled\"\n class=\"c-btn c-btn_border-free c-btn_small\">\n <i class=\"fa fa-trash\" [title]=\"toolbar.remove?.title || '\u0423\u0434\u0430\u043B\u0438\u0442\u044C'\"></i>\n </button>\n <button (click)=\"unlinkAction.emit($event)\" *ngIf=\"toolbar.unlink\" [disabled]=\"toolbar.unlink.disabled\"\n class=\"c-btn c-btn_border-free c-btn_small\">\n <i class=\"fa fa-unlink\" title=\"{{'Detach tag from selected items' | translate}}\"></i>\n </button>\n <button (click)=\"csvAction.emit($event)\" *ngIf=\"toolbar.csv\" [disabled]=\"toolbar.csv.disabled\"\n class=\"c-btn c-btn_border-free c-btn_small\"\n >\n <i class=\"fas fa-file-csv\" title=\"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u043A\u0430\u043A CSV\"></i>\n </button>\n <button *ngIf=\"toolbar.collapse\"\n class=\"c-btn c-btn_small c-btn_svg-24 c-icon c-icon_svg c-icon_svg-24 c-btn_border-free\"\n (click)=\"collapse($event, dt)\"\n title=\"{{(isCollapse ? 'Expand all' : 'Collapse all') | translate}}\">\n <svg *ngIf=\"isCollapse\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" fill=\"currentColor\" viewBox=\"0 0 24 24\">\n <path d=\"M20 2H4v2h16V2zM4 20v2h16v-2H4zM12 5l5 6H7l5-6zM17 13l-5 6-5-6h10z\"/>\n </svg>\n <svg *ngIf=\"!isCollapse\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" fill=\"currentColor\" viewBox=\"0 0 24 24\">\n <path fill-rule=\"evenodd\" d=\"M17 3l-5 6-5-6h10zM4 13v-2h16v2H4zm8 2l5 6H7l5-6z\" clip-rule=\"evenodd\"/>\n </svg>\n </button>\n </div>\n </div>\n </ng-template>\n</p-treeTable>\n",
|
|
3182
3213
|
entryComponents: [],
|
|
3183
|
-
styles: ["@charset \"UTF-8\";.ui-sortable-column{cursor:pointer;position:relative}.ui-sortable-column-buttons{position:absolute;top:0;right:0;width:18px;height:100%;display:inline-flex;align-items:center;z-index:10000}.ui-sortable-column-buttons>a{position:absolute;top:50%;right:0;left:0;transform:translateY(-50%)}.u-overflow-visible{overflow:visible!important}"]
|
|
3214
|
+
styles: ["@charset \"UTF-8\";.ui-sortable-column{cursor:pointer;position:relative}.ui-sortable-column-buttons{position:absolute;top:0;right:0;width:18px;height:100%;display:inline-flex;align-items:center;z-index:10000}.ui-sortable-column-buttons>a{position:absolute;top:50%;right:0;left:0;transform:translateY(-50%)}.u-overflow-visible{overflow:visible!important}.button-reset{display:flex;align-items:center;position:absolute;right:6px;top:5px;padding:6px;font-size:15px;border:none;outline:0;cursor:pointer;color:var(--colorTextMuted);background-color:transparent}.button-reset:hover{color:var(--colorIcon)}.input-wrapper{position:relative;display:flex;align-items:baseline}.c-input:not(:valid)~.button-reset{display:none}"]
|
|
3184
3215
|
})
|
|
3185
3216
|
], TreeTableComponent);
|
|
3186
3217
|
return TreeTableComponent;
|
|
@@ -3670,12 +3701,320 @@ var InputGroupComponent = /** @class */ (function () {
|
|
|
3670
3701
|
return InputGroupComponent;
|
|
3671
3702
|
}());
|
|
3672
3703
|
|
|
3704
|
+
var AutoCompleteComponent = /** @class */ (function (_super) {
|
|
3705
|
+
__extends(AutoCompleteComponent, _super);
|
|
3706
|
+
function AutoCompleteComponent() {
|
|
3707
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
3708
|
+
_this.minLength = 1;
|
|
3709
|
+
_this.delay = 300;
|
|
3710
|
+
_this.type = 'text';
|
|
3711
|
+
_this.autoZIndex = true;
|
|
3712
|
+
_this.baseZIndex = 0;
|
|
3713
|
+
_this.dropdownIcon = "pi pi-caret-down";
|
|
3714
|
+
_this.unique = true;
|
|
3715
|
+
_this.completeMethod = new EventEmitter();
|
|
3716
|
+
_this.onSelect = new EventEmitter();
|
|
3717
|
+
_this.onUnselect = new EventEmitter();
|
|
3718
|
+
_this.onFocus = new EventEmitter();
|
|
3719
|
+
_this.onBlur = new EventEmitter();
|
|
3720
|
+
_this.onDropdownClick = new EventEmitter();
|
|
3721
|
+
_this.onClear = new EventEmitter();
|
|
3722
|
+
_this.onKeyUp = new EventEmitter();
|
|
3723
|
+
_this.scrollHeight = '200px';
|
|
3724
|
+
_this.dropdownMode = 'blank';
|
|
3725
|
+
_this.immutable = true;
|
|
3726
|
+
_this.showTransitionOptions = '225ms ease-out';
|
|
3727
|
+
_this.hideTransitionOptions = '195ms ease-in';
|
|
3728
|
+
_this.autocomplete = 'off';
|
|
3729
|
+
return _this;
|
|
3730
|
+
}
|
|
3731
|
+
AutoCompleteComponent_1 = AutoCompleteComponent;
|
|
3732
|
+
AutoCompleteComponent.prototype.ngAfterContentInit = function () {
|
|
3733
|
+
var _this = this;
|
|
3734
|
+
this.templates.forEach(function (item) {
|
|
3735
|
+
switch (item.getType()) {
|
|
3736
|
+
case 'item':
|
|
3737
|
+
_this.itemTemplate = item.template;
|
|
3738
|
+
break;
|
|
3739
|
+
case 'selectedItem':
|
|
3740
|
+
_this.selectedItemTemplate = item.template;
|
|
3741
|
+
break;
|
|
3742
|
+
default:
|
|
3743
|
+
_this.itemTemplate = item.template;
|
|
3744
|
+
break;
|
|
3745
|
+
}
|
|
3746
|
+
});
|
|
3747
|
+
};
|
|
3748
|
+
var AutoCompleteComponent_1;
|
|
3749
|
+
__decorate([
|
|
3750
|
+
Input(),
|
|
3751
|
+
__metadata("design:type", Number)
|
|
3752
|
+
], AutoCompleteComponent.prototype, "minLength", void 0);
|
|
3753
|
+
__decorate([
|
|
3754
|
+
Input(),
|
|
3755
|
+
__metadata("design:type", Number)
|
|
3756
|
+
], AutoCompleteComponent.prototype, "delay", void 0);
|
|
3757
|
+
__decorate([
|
|
3758
|
+
Input(),
|
|
3759
|
+
__metadata("design:type", Object)
|
|
3760
|
+
], AutoCompleteComponent.prototype, "style", void 0);
|
|
3761
|
+
__decorate([
|
|
3762
|
+
Input(),
|
|
3763
|
+
__metadata("design:type", Object)
|
|
3764
|
+
], AutoCompleteComponent.prototype, "panelStyle", void 0);
|
|
3765
|
+
__decorate([
|
|
3766
|
+
Input(),
|
|
3767
|
+
__metadata("design:type", String)
|
|
3768
|
+
], AutoCompleteComponent.prototype, "styleClass", void 0);
|
|
3769
|
+
__decorate([
|
|
3770
|
+
Input(),
|
|
3771
|
+
__metadata("design:type", String)
|
|
3772
|
+
], AutoCompleteComponent.prototype, "panelStyleClass", void 0);
|
|
3773
|
+
__decorate([
|
|
3774
|
+
Input(),
|
|
3775
|
+
__metadata("design:type", Object)
|
|
3776
|
+
], AutoCompleteComponent.prototype, "inputStyle", void 0);
|
|
3777
|
+
__decorate([
|
|
3778
|
+
Input(),
|
|
3779
|
+
__metadata("design:type", String)
|
|
3780
|
+
], AutoCompleteComponent.prototype, "inputId", void 0);
|
|
3781
|
+
__decorate([
|
|
3782
|
+
Input(),
|
|
3783
|
+
__metadata("design:type", String)
|
|
3784
|
+
], AutoCompleteComponent.prototype, "inputStyleClass", void 0);
|
|
3785
|
+
__decorate([
|
|
3786
|
+
Input(),
|
|
3787
|
+
__metadata("design:type", String)
|
|
3788
|
+
], AutoCompleteComponent.prototype, "placeholder", void 0);
|
|
3789
|
+
__decorate([
|
|
3790
|
+
Input(),
|
|
3791
|
+
__metadata("design:type", Boolean)
|
|
3792
|
+
], AutoCompleteComponent.prototype, "readonly", void 0);
|
|
3793
|
+
__decorate([
|
|
3794
|
+
Input(),
|
|
3795
|
+
__metadata("design:type", Boolean)
|
|
3796
|
+
], AutoCompleteComponent.prototype, "disabled", void 0);
|
|
3797
|
+
__decorate([
|
|
3798
|
+
Input(),
|
|
3799
|
+
__metadata("design:type", Number)
|
|
3800
|
+
], AutoCompleteComponent.prototype, "maxlength", void 0);
|
|
3801
|
+
__decorate([
|
|
3802
|
+
Input(),
|
|
3803
|
+
__metadata("design:type", String)
|
|
3804
|
+
], AutoCompleteComponent.prototype, "name", void 0);
|
|
3805
|
+
__decorate([
|
|
3806
|
+
Input(),
|
|
3807
|
+
__metadata("design:type", Boolean)
|
|
3808
|
+
], AutoCompleteComponent.prototype, "required", void 0);
|
|
3809
|
+
__decorate([
|
|
3810
|
+
Input(),
|
|
3811
|
+
__metadata("design:type", Number)
|
|
3812
|
+
], AutoCompleteComponent.prototype, "size", void 0);
|
|
3813
|
+
__decorate([
|
|
3814
|
+
Input(),
|
|
3815
|
+
__metadata("design:type", Object)
|
|
3816
|
+
], AutoCompleteComponent.prototype, "appendTo", void 0);
|
|
3817
|
+
__decorate([
|
|
3818
|
+
Input(),
|
|
3819
|
+
__metadata("design:type", Boolean)
|
|
3820
|
+
], AutoCompleteComponent.prototype, "autoHighlight", void 0);
|
|
3821
|
+
__decorate([
|
|
3822
|
+
Input(),
|
|
3823
|
+
__metadata("design:type", Boolean)
|
|
3824
|
+
], AutoCompleteComponent.prototype, "forceSelection", void 0);
|
|
3825
|
+
__decorate([
|
|
3826
|
+
Input(),
|
|
3827
|
+
__metadata("design:type", String)
|
|
3828
|
+
], AutoCompleteComponent.prototype, "type", void 0);
|
|
3829
|
+
__decorate([
|
|
3830
|
+
Input(),
|
|
3831
|
+
__metadata("design:type", Boolean)
|
|
3832
|
+
], AutoCompleteComponent.prototype, "autoZIndex", void 0);
|
|
3833
|
+
__decorate([
|
|
3834
|
+
Input(),
|
|
3835
|
+
__metadata("design:type", Number)
|
|
3836
|
+
], AutoCompleteComponent.prototype, "baseZIndex", void 0);
|
|
3837
|
+
__decorate([
|
|
3838
|
+
Input(),
|
|
3839
|
+
__metadata("design:type", String)
|
|
3840
|
+
], AutoCompleteComponent.prototype, "ariaLabel", void 0);
|
|
3841
|
+
__decorate([
|
|
3842
|
+
Input(),
|
|
3843
|
+
__metadata("design:type", String)
|
|
3844
|
+
], AutoCompleteComponent.prototype, "ariaLabelledBy", void 0);
|
|
3845
|
+
__decorate([
|
|
3846
|
+
Input(),
|
|
3847
|
+
__metadata("design:type", String)
|
|
3848
|
+
], AutoCompleteComponent.prototype, "dropdownIcon", void 0);
|
|
3849
|
+
__decorate([
|
|
3850
|
+
Input(),
|
|
3851
|
+
__metadata("design:type", Boolean)
|
|
3852
|
+
], AutoCompleteComponent.prototype, "unique", void 0);
|
|
3853
|
+
__decorate([
|
|
3854
|
+
Output(),
|
|
3855
|
+
__metadata("design:type", EventEmitter)
|
|
3856
|
+
], AutoCompleteComponent.prototype, "completeMethod", void 0);
|
|
3857
|
+
__decorate([
|
|
3858
|
+
Output(),
|
|
3859
|
+
__metadata("design:type", EventEmitter)
|
|
3860
|
+
], AutoCompleteComponent.prototype, "onSelect", void 0);
|
|
3861
|
+
__decorate([
|
|
3862
|
+
Output(),
|
|
3863
|
+
__metadata("design:type", EventEmitter)
|
|
3864
|
+
], AutoCompleteComponent.prototype, "onUnselect", void 0);
|
|
3865
|
+
__decorate([
|
|
3866
|
+
Output(),
|
|
3867
|
+
__metadata("design:type", EventEmitter)
|
|
3868
|
+
], AutoCompleteComponent.prototype, "onFocus", void 0);
|
|
3869
|
+
__decorate([
|
|
3870
|
+
Output(),
|
|
3871
|
+
__metadata("design:type", EventEmitter)
|
|
3872
|
+
], AutoCompleteComponent.prototype, "onBlur", void 0);
|
|
3873
|
+
__decorate([
|
|
3874
|
+
Output(),
|
|
3875
|
+
__metadata("design:type", EventEmitter)
|
|
3876
|
+
], AutoCompleteComponent.prototype, "onDropdownClick", void 0);
|
|
3877
|
+
__decorate([
|
|
3878
|
+
Output(),
|
|
3879
|
+
__metadata("design:type", EventEmitter)
|
|
3880
|
+
], AutoCompleteComponent.prototype, "onClear", void 0);
|
|
3881
|
+
__decorate([
|
|
3882
|
+
Output(),
|
|
3883
|
+
__metadata("design:type", EventEmitter)
|
|
3884
|
+
], AutoCompleteComponent.prototype, "onKeyUp", void 0);
|
|
3885
|
+
__decorate([
|
|
3886
|
+
Input(),
|
|
3887
|
+
__metadata("design:type", String)
|
|
3888
|
+
], AutoCompleteComponent.prototype, "field", void 0);
|
|
3889
|
+
__decorate([
|
|
3890
|
+
Input(),
|
|
3891
|
+
__metadata("design:type", String)
|
|
3892
|
+
], AutoCompleteComponent.prototype, "scrollHeight", void 0);
|
|
3893
|
+
__decorate([
|
|
3894
|
+
Input(),
|
|
3895
|
+
__metadata("design:type", Boolean)
|
|
3896
|
+
], AutoCompleteComponent.prototype, "dropdown", void 0);
|
|
3897
|
+
__decorate([
|
|
3898
|
+
Input(),
|
|
3899
|
+
__metadata("design:type", String)
|
|
3900
|
+
], AutoCompleteComponent.prototype, "dropdownMode", void 0);
|
|
3901
|
+
__decorate([
|
|
3902
|
+
Input(),
|
|
3903
|
+
__metadata("design:type", Boolean)
|
|
3904
|
+
], AutoCompleteComponent.prototype, "multiple", void 0);
|
|
3905
|
+
__decorate([
|
|
3906
|
+
Input(),
|
|
3907
|
+
__metadata("design:type", Number)
|
|
3908
|
+
], AutoCompleteComponent.prototype, "tabindex", void 0);
|
|
3909
|
+
__decorate([
|
|
3910
|
+
Input(),
|
|
3911
|
+
__metadata("design:type", String)
|
|
3912
|
+
], AutoCompleteComponent.prototype, "dataKey", void 0);
|
|
3913
|
+
__decorate([
|
|
3914
|
+
Input(),
|
|
3915
|
+
__metadata("design:type", String)
|
|
3916
|
+
], AutoCompleteComponent.prototype, "emptyMessage", void 0);
|
|
3917
|
+
__decorate([
|
|
3918
|
+
Input(),
|
|
3919
|
+
__metadata("design:type", Boolean)
|
|
3920
|
+
], AutoCompleteComponent.prototype, "immutable", void 0);
|
|
3921
|
+
__decorate([
|
|
3922
|
+
Input(),
|
|
3923
|
+
__metadata("design:type", String)
|
|
3924
|
+
], AutoCompleteComponent.prototype, "showTransitionOptions", void 0);
|
|
3925
|
+
__decorate([
|
|
3926
|
+
Input(),
|
|
3927
|
+
__metadata("design:type", String)
|
|
3928
|
+
], AutoCompleteComponent.prototype, "hideTransitionOptions", void 0);
|
|
3929
|
+
__decorate([
|
|
3930
|
+
Input(),
|
|
3931
|
+
__metadata("design:type", Boolean)
|
|
3932
|
+
], AutoCompleteComponent.prototype, "autofocus", void 0);
|
|
3933
|
+
__decorate([
|
|
3934
|
+
Input(),
|
|
3935
|
+
__metadata("design:type", String)
|
|
3936
|
+
], AutoCompleteComponent.prototype, "autocomplete", void 0);
|
|
3937
|
+
__decorate([
|
|
3938
|
+
ViewChild('in', { static: false }),
|
|
3939
|
+
__metadata("design:type", ElementRef)
|
|
3940
|
+
], AutoCompleteComponent.prototype, "inputEL", void 0);
|
|
3941
|
+
__decorate([
|
|
3942
|
+
ViewChild('multiIn', { static: false }),
|
|
3943
|
+
__metadata("design:type", ElementRef)
|
|
3944
|
+
], AutoCompleteComponent.prototype, "multiInputEL", void 0);
|
|
3945
|
+
__decorate([
|
|
3946
|
+
ViewChild('multiContainer', { static: false }),
|
|
3947
|
+
__metadata("design:type", ElementRef)
|
|
3948
|
+
], AutoCompleteComponent.prototype, "multiContainerEL", void 0);
|
|
3949
|
+
__decorate([
|
|
3950
|
+
ViewChild('ddBtn', { static: false }),
|
|
3951
|
+
__metadata("design:type", ElementRef)
|
|
3952
|
+
], AutoCompleteComponent.prototype, "dropdownButton", void 0);
|
|
3953
|
+
__decorate([
|
|
3954
|
+
ContentChildren(InsparkTemplate),
|
|
3955
|
+
__metadata("design:type", QueryList)
|
|
3956
|
+
], AutoCompleteComponent.prototype, "templates", void 0);
|
|
3957
|
+
AutoCompleteComponent = AutoCompleteComponent_1 = __decorate([
|
|
3958
|
+
Component({
|
|
3959
|
+
selector: 'in-autocomplete',
|
|
3960
|
+
template: "<span [ngClass]=\"{'ui-autocomplete ui-widget':true,'ui-autocomplete-dd':dropdown,'ui-autocomplete-multiple':multiple}\"\n [ngStyle]=\"style\" [class]=\"styleClass\">\n <input *ngIf=\"!multiple\" #in [attr.type]=\"type\" [attr.id]=\"inputId\" [ngStyle]=\"inputStyle\"\n [class]=\"inputStyleClass\" [autocomplete]=\"autocomplete\" [attr.required]=\"required\" [attr.name]=\"name\"\n [ngClass]=\"'ui-inputtext ui-widget ui-state-default ui-corner-all ui-autocomplete-input'\"\n [value]=\"inputFieldValue\" aria-autocomplete=\"list\" role=\"combobox\"\n [attr.aria-expanded]=\"overlayVisible\" aria-haspopup=\"true\"\n [attr.aria-activedescendant]=\"'p-highlighted-option'\"\n (click)=\"onInputClick($event)\" (input)=\"onInput($event)\" (keydown)=\"onKeydown($event)\"\n (keyup)=\"onKeyup($event)\" [attr.autofocus]=\"autofocus\" (focus)=\"onInputFocus($event)\"\n (blur)=\"onInputBlur($event)\" (change)=\"onInputChange($event)\" (paste)=\"onInputPaste($event)\"\n [attr.placeholder]=\"placeholder\" [attr.size]=\"size\" [attr.maxlength]=\"maxlength\"\n [attr.tabindex]=\"tabindex\" [readonly]=\"readonly\" [disabled]=\"disabled\" [attr.aria-label]=\"ariaLabel\"\n [attr.aria-labelledby]=\"ariaLabelledBy\" [attr.aria-required]=\"required\"\n ><ul *ngIf=\"multiple\" #multiContainer\n class=\"ui-autocomplete-multiple-container ui-widget ui-inputtext ui-state-default ui-corner-all\"\n [ngClass]=\"{'ui-state-disabled':disabled,'ui-state-focus':focus}\" (click)=\"multiIn.focus()\">\n <li #token *ngFor=\"let val of value\" class=\"ui-autocomplete-token ui-state-highlight ui-corner-all\">\n <span class=\"ui-autocomplete-token-icon pi pi-fw pi-times\" (click)=\"removeItem(token)\"\n *ngIf=\"!disabled\"></span>\n <span *ngIf=\"!selectedItemTemplate\"\n class=\"ui-autocomplete-token-label\">{{resolveFieldData(val)}}</span>\n <ng-container *ngTemplateOutlet=\"selectedItemTemplate; context: {$implicit: val}\"></ng-container>\n </li>\n <li class=\"ui-autocomplete-input-token\">\n <input #multiIn [attr.type]=\"type\" [attr.id]=\"inputId\" [disabled]=\"disabled\"\n [attr.placeholder]=\"(value&&value.length ? null : placeholder)\" [attr.tabindex]=\"tabindex\"\n [attr.maxlength]=\"maxlength\" (input)=\"onInput($event)\" (click)=\"onInputClick($event)\"\n (keydown)=\"onKeydown($event)\" [readonly]=\"readonly\" (keyup)=\"onKeyup($event)\"\n [attr.autofocus]=\"autofocus\" (focus)=\"onInputFocus($event)\" (blur)=\"onInputBlur($event)\"\n (change)=\"onInputChange($event)\" (paste)=\"onInputPaste($event)\" [autocomplete]=\"autocomplete\"\n [ngStyle]=\"inputStyle\" [class]=\"inputStyleClass\" [attr.aria-label]=\"ariaLabel\"\n [attr.aria-labelledby]=\"ariaLabelledBy\" [attr.aria-required]=\"required\"\n aria-autocomplete=\"list\" role=\"combobox\" [attr.aria-expanded]=\"overlayVisible\"\n aria-haspopup=\"true\" [attr.aria-activedescendant]=\"'p-highlighted-option'\">\n </li>\n </ul\n ><i *ngIf=\"loading\" class=\"ui-autocomplete-loader pi pi-spinner pi-spin\"></i><button #ddBtn type=\"button\"\n pButton\n [icon]=\"dropdownIcon\"\n class=\"ui-autocomplete-dropdown\"\n [disabled]=\"disabled\"\n (click)=\"handleDropdownClick($event)\"\n *ngIf=\"dropdown\"\n [attr.tabindex]=\"tabindex\"></button>\n <div #panel *ngIf=\"overlayVisible\"\n [ngClass]=\"['ui-autocomplete-panel ui-widget ui-widget-content ui-corner-all ui-shadow']\"\n [style.max-height]=\"scrollHeight\" [ngStyle]=\"panelStyle\" [class]=\"panelStyleClass\"\n [@overlayAnimation]=\"{value: 'visible', params: {showTransitionParams: showTransitionOptions, hideTransitionParams: hideTransitionOptions}}\"\n (@overlayAnimation.start)=\"onOverlayAnimationStart($event)\"\n (@overlayAnimation.done)=\"onOverlayAnimationDone($event)\">\n <ul role=\"listbox\"\n class=\"ui-autocomplete-items ui-autocomplete-list ui-widget-content ui-widget ui-corner-all ui-helper-reset\">\n <li role=\"option\" *ngFor=\"let option of suggestions; let idx = index\"\n [ngClass]=\"{'ui-autocomplete-list-item ui-corner-all':true,'ui-state-highlight':(highlightOption==option)}\"\n (mouseenter)=\"highlightOption=option\" (mouseleave)=\"highlightOption=null\"\n [id]=\"highlightOption == option ? 'p-highlighted-option':''\" (click)=\"selectItem(option)\">\n <span *ngIf=\"!itemTemplate\">{{resolveFieldData(option)}}</span>\n <ng-container\n *ngTemplateOutlet=\"itemTemplate; context: {$implicit: option, index: idx}\"></ng-container>\n </li>\n <li *ngIf=\"noResults && emptyMessage\"\n class=\"ui-autocomplete-emptymessage ui-autocomplete-list-item ui-corner-all\">{{emptyMessage}}</li>\n </ul>\n </div>\n </span>\n",
|
|
3961
|
+
animations: [
|
|
3962
|
+
trigger('overlayAnimation', [
|
|
3963
|
+
state('void', style({
|
|
3964
|
+
transform: 'translateY(5%)',
|
|
3965
|
+
opacity: 0
|
|
3966
|
+
})),
|
|
3967
|
+
state('visible', style({
|
|
3968
|
+
transform: 'translateY(0)',
|
|
3969
|
+
opacity: 1
|
|
3970
|
+
})),
|
|
3971
|
+
transition('void => visible', animate('{{showTransitionParams}}')),
|
|
3972
|
+
transition('visible => void', animate('{{hideTransitionParams}}'))
|
|
3973
|
+
])
|
|
3974
|
+
],
|
|
3975
|
+
providers: [{
|
|
3976
|
+
provide: NG_VALUE_ACCESSOR,
|
|
3977
|
+
useExisting: forwardRef(function () { return AutoCompleteComponent_1; }),
|
|
3978
|
+
multi: true
|
|
3979
|
+
}],
|
|
3980
|
+
styles: [""]
|
|
3981
|
+
})
|
|
3982
|
+
], AutoCompleteComponent);
|
|
3983
|
+
return AutoCompleteComponent;
|
|
3984
|
+
}(AutoComplete));
|
|
3985
|
+
var AutoCompleteComponentModule = /** @class */ (function () {
|
|
3986
|
+
function AutoCompleteComponentModule() {
|
|
3987
|
+
}
|
|
3988
|
+
AutoCompleteComponentModule = __decorate([
|
|
3989
|
+
NgModule({
|
|
3990
|
+
declarations: [
|
|
3991
|
+
AutoCompleteComponent,
|
|
3992
|
+
],
|
|
3993
|
+
imports: [
|
|
3994
|
+
TooltipModule,
|
|
3995
|
+
ScrollingModule,
|
|
3996
|
+
CommonModule,
|
|
3997
|
+
PrimengComponentsModule,
|
|
3998
|
+
ButtonModule,
|
|
3999
|
+
],
|
|
4000
|
+
exports: [
|
|
4001
|
+
AutoCompleteComponent,
|
|
4002
|
+
],
|
|
4003
|
+
entryComponents: [
|
|
4004
|
+
AutoCompleteComponent,
|
|
4005
|
+
]
|
|
4006
|
+
})
|
|
4007
|
+
], AutoCompleteComponentModule);
|
|
4008
|
+
return AutoCompleteComponentModule;
|
|
4009
|
+
}());
|
|
4010
|
+
|
|
3673
4011
|
var InsparkComponentsModule = /** @class */ (function () {
|
|
3674
4012
|
function InsparkComponentsModule() {
|
|
3675
4013
|
}
|
|
3676
4014
|
InsparkComponentsModule = __decorate([
|
|
3677
4015
|
NgModule({
|
|
3678
4016
|
imports: [
|
|
4017
|
+
AutoCompleteComponentModule,
|
|
3679
4018
|
FormsModule,
|
|
3680
4019
|
ReactiveFormsModule,
|
|
3681
4020
|
CommonModule,
|
|
@@ -3719,7 +4058,7 @@ var InsparkComponentsModule = /** @class */ (function () {
|
|
|
3719
4058
|
RadiobuttonComponent,
|
|
3720
4059
|
ObjectTreeComponent,
|
|
3721
4060
|
ContentToggleComponent,
|
|
3722
|
-
InputGroupComponent
|
|
4061
|
+
InputGroupComponent
|
|
3723
4062
|
],
|
|
3724
4063
|
exports: [
|
|
3725
4064
|
ButtonComponent,
|
|
@@ -3754,7 +4093,8 @@ var InsparkComponentsModule = /** @class */ (function () {
|
|
|
3754
4093
|
RadiobuttonComponent,
|
|
3755
4094
|
ObjectTreeComponent,
|
|
3756
4095
|
ContentToggleComponent,
|
|
3757
|
-
InputGroupComponent
|
|
4096
|
+
InputGroupComponent,
|
|
4097
|
+
AutoCompleteComponentModule
|
|
3758
4098
|
],
|
|
3759
4099
|
entryComponents: [SelectListComponent, ModalInputTextComponent],
|
|
3760
4100
|
schemas: [NO_ERRORS_SCHEMA]
|
|
@@ -3771,5 +4111,5 @@ var InsparkComponentsModule = /** @class */ (function () {
|
|
|
3771
4111
|
* Generated bundle index. Do not edit.
|
|
3772
4112
|
*/
|
|
3773
4113
|
|
|
3774
|
-
export { BreadcrumbComponent, ButtonComponent, CheckboxComponent, CommunicationService, ComponentContainerComponent, ContentToggleComponent, DropdownComponentModule, EmptyComponent, FileComponent, InlineMessageComponent, InputTextComponent, InsparkComponentsModule, InsparkDialogService, InsparkHeaderComponent, InsparkMessageService, InsparkStickyComponent, InsparkTemplate, LinkComponent, ModalInputTextComponent, ObjectTreeComponent, PanelComponent, PipesModule, PreloaderComponent, RadiobuttonComponent, SelectButtonComponent, SelectListComponent, StatusCircleComponent, SvgComponent, SwitcherComponent, TableComponentModule, TextareaComponent, ToolbarComponent, TooltipComponent, TreeTableComponentModule, DropdownItem as ɵa, DropdownComponent as ɵb, TableComponent as ɵc, TreeTableComponent as ɵd,
|
|
4114
|
+
export { AutoCompleteComponentModule, BreadcrumbComponent, ButtonComponent, CheckboxComponent, CommunicationService, ComponentContainerComponent, ContentToggleComponent, DropdownComponentModule, EmptyComponent, FileComponent, InlineMessageComponent, InputTextComponent, InsparkComponentsModule, InsparkDialogService, InsparkHeaderComponent, InsparkMessageService, InsparkStickyComponent, InsparkTemplate, LinkComponent, ModalInputTextComponent, ObjectTreeComponent, PanelComponent, PipesModule, PreloaderComponent, RadiobuttonComponent, SelectButtonComponent, SelectListComponent, StatusCircleComponent, SvgComponent, SwitcherComponent, TableComponentModule, TextareaComponent, ToolbarComponent, TooltipComponent, TreeTableComponentModule, DropdownItem as ɵa, DropdownComponent as ɵb, TableComponent as ɵc, TreeTableComponent as ɵd, AutoCompleteComponent as ɵe, PropertyValuePipe as ɵf, ShortToFullWeekdayPipe as ɵg, NumToShortWeekdayPipe as ɵh, FormatNumToTime as ɵi, InDate as ɵj, SafeUrlPipe as ɵk, SortByPipe as ɵl, PrimengComponentsModule as ɵm, TableColumnsMultiselectComponent as ɵn, TableMenuOverlayComponent as ɵo, TableClickOutsideDirective as ɵp, InputGroupComponent as ɵq };
|
|
3775
4115
|
//# sourceMappingURL=inspark-inspark-components.js.map
|