@seniorsistemas/angular-components 14.10.1 → 14.11.0
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/bundles/seniorsistemas-angular-components.umd.js +145 -95
- package/bundles/seniorsistemas-angular-components.umd.js.map +1 -1
- package/bundles/seniorsistemas-angular-components.umd.min.js +1 -1
- package/bundles/seniorsistemas-angular-components.umd.min.js.map +1 -1
- package/components/dynamic-form/components/lookup/lookup.component.d.ts +1 -0
- package/components/mouse-events/double-click.directive.d.ts +9 -0
- package/components/mouse-events/index.d.ts +1 -0
- package/esm2015/components/dynamic-form/components/fields/radio-button/radio-button-field.component.js +2 -2
- package/esm2015/components/dynamic-form/components/lookup/lookup.component.js +6 -2
- package/esm2015/components/dynamic-form/dynamic-form.module.js +4 -2
- package/esm2015/components/info-sign/info-sign.component.js +2 -2
- package/esm2015/components/mouse-events/double-click.directive.js +38 -0
- package/esm2015/components/mouse-events/index.js +2 -1
- package/esm2015/components/mouse-events/mouse-events.module.js +10 -3
- package/esm2015/seniorsistemas-angular-components.js +34 -33
- package/esm5/components/dynamic-form/components/fields/radio-button/radio-button-field.component.js +2 -2
- package/esm5/components/dynamic-form/components/lookup/lookup.component.js +6 -2
- package/esm5/components/dynamic-form/dynamic-form.module.js +4 -2
- package/esm5/components/info-sign/info-sign.component.js +2 -2
- package/esm5/components/mouse-events/double-click.directive.js +40 -0
- package/esm5/components/mouse-events/index.js +2 -1
- package/esm5/components/mouse-events/mouse-events.module.js +10 -3
- package/esm5/seniorsistemas-angular-components.js +34 -33
- package/fesm2015/seniorsistemas-angular-components.js +106 -60
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +113 -65
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-angular-components.d.ts +33 -32
- package/seniorsistemas-angular-components.metadata.json +1 -1
|
@@ -2373,6 +2373,10 @@
|
|
|
2373
2373
|
prefix: (_c = col.numberLocaleOptions) === null || _c === void 0 ? void 0 : _c.currencySymbol
|
|
2374
2374
|
};
|
|
2375
2375
|
};
|
|
2376
|
+
LookupComponent.prototype.onTableRowDoubleClick = function (rowData) {
|
|
2377
|
+
this.selected = [rowData];
|
|
2378
|
+
this.select();
|
|
2379
|
+
};
|
|
2376
2380
|
var LookupComponent_1;
|
|
2377
2381
|
LookupComponent.nextId = 0;
|
|
2378
2382
|
LookupComponent.ctorParameters = function () { return [
|
|
@@ -2510,7 +2514,7 @@
|
|
|
2510
2514
|
LookupComponent = LookupComponent_1 = __decorate([
|
|
2511
2515
|
core.Component({
|
|
2512
2516
|
selector: "s-lookup",
|
|
2513
|
-
template: "<div [ngClass]=\"{ inputgroup: showSearch }\">\n <p-autoComplete\n #autocomplete\n [(ngModel)]=\"value\"\n [disabled]=\"disabled\"\n [dataKey]=\"dataKey\"\n [multiple]=\"multiple\"\n [inputId]=\"id + '-autocomplete'\"\n [forceSelection]=\"true\"\n [suggestions]=\"getLookupSuggestions()\"\n (completeMethod)=\"lazyLoadLookup($event)\"\n (onSelect)=\"onSelect.next($event)\"\n (onBlur)=\"onBlur.next($event)\"\n (onFocus)=\"onFocus.next($event)\"\n (onUnselect)=\"onUnselect.next($event)\"\n (onClear)=\"onClear.next($event)\"\n (onKeyUp)=\"onKeyUp.next($event)\"\n [field]=\"lookupDisplayField\"\n [emptyMessage]=\"lookupEmptyMessage\"\n [dropdown]=\"!showSearch\"\n [appendTo]=\"lookupAppendTo\"\n [placeholder]=\"placeholder || ' '\"\n [autoHighlight]=\"true\"\n inputStyleClass=\"mousetrap\"\n >\n <ng-template let-item pTemplate=\"selectedItem\">\n <span class=\"ui-autocomplete-token-label ng-tns-c65-43 ng-star-inserted\" \n [pTooltip]=\"lookupDisplayFieldTooltip ? item[lookupDisplayField] : null\" \n tooltipPosition=\"top\">\n {{item[lookupDisplayField]}}\n </span>\n </ng-template>\n </p-autoComplete>\n\n <button\n *ngIf=\"showSearch\"\n pButton\n type=\"button\"\n icon=\"fa fa-search\"\n class=\"button-addon\"\n [disabled]=\"disabled\"\n (click)=\"showDialog()\"\n ></button>\n</div>\n\n<p-dialog\n appendTo=\"body\"\n styleClass=\"s-lookup-modal\"\n [header]=\"searchTitle\"\n [(visible)]=\"dialogVisible\"\n [modal]=\"true\"\n (onHide)=\"hideDialog()\"\n [blockScroll]=\"true\"\n [focusOnShow]=\"true\"\n [draggable]=\"false\"\n [resizable]=\"false\"\n #dialog\n>\n <div *ngIf=\"dialogVisible\" class=\"s-lookup-modal-container\">\n <div *ngIf=\"searchFields && searchFields.length\" class=\"filter\"\n [@collapseContent]=\"collapsed ? {value: 'hidden', params: {transitionParams: transitionOptions }} : {value: 'visible', params: {transitionParams: transitionOptions}}\"\n (@collapseContent.done)=\"onToggleDone()\">\n <form [formGroup]=\"formGroupDialog\" novalidate autocomplete=\"off\">\n <div *ngIf=\"!collapsed\"\n [@childCollapseContent]=\"collapsed ? {value: ':leave', params: {transitionParams: transitionOptions }} : {value: ':enter', params: {transitionParams: transitionOptions}}\"\n class=\"form-content\">\n <div class=\"filter-title sds-section-title\">{{ filterTitle }}</div>\n <div class=\"form-fields\">\n <s-dynamic-form [fields]=\"searchFields\" [form]=\"formGroupDialog\"></s-dynamic-form>\n </div>\n <div class=\"ui-g\">\n <div class=\"ui-g-12\">\n <s-button\n [id]=\"id + '-filter-button'\"\n type=\"submit\"\n [label]=\"filterLabel\"\n (onClick)=\"search()\"\n pTooltip=\"(ALT + SHIFT + F)\"\n showDelay=\"500\"\n ></s-button>\n <s-button\n [id]=\"id + '-clear-button'\"\n type=\"button\"\n [label]=\"clearLabel\"\n (onClick)=\"clear()\"\n priority=\"link\"\n pTooltip=\"(ALT + SHIFT + L)\"\n showDelay=\"500\"\n ></s-button>\n </div>\n </div>\n </div>\n </form> \n </div>\n <div *ngIf=\"searchFields && searchFields.length\" class=\"filter-toggle\">\n <div class=\"filter-toggle--start-border-mask\"></div>\n <button [id]=\"id + '-filter-toggle-button'\" type=\"button\" (click)=\"filterToggle()\">\n <span class=\"fa\" [ngClass]=\"{'fa-chevron-left': !collapsed, 'fa-chevron-right': collapsed}\"\n aria-hidden=\"true\"></span>\n </button>\n <div class=\"filter-toggle--end-border-mask\"></div>\n </div>\n <div class=\"content\" [ngClass]=\"{'empty-content': !searchTotalRecords && !loading}\">\n <s-empty-state\n [id]=\"id + '-empty-state'\"\n *ngIf=\"!searchTotalRecords && !loading\"\n [title]=\"searchEmptyTitle\"\n [description]=\"searchEmptyDescription\"\n iconClass=\"fa fa-search\"\n ></s-empty-state>\n\n <p-table\n [dataKey]=\"dataKey\"\n [value]=\"getGridData()\"\n [columns]=\"searchGridFields\"\n [lazy]=\"true\"\n [scrollable]=\"true\"\n [paginator]=\"true\"\n sortMode=\"multiple\"\n [totalRecords]=\"searchTotalRecords\"\n [rows]=\"10\"\n [selection]=\"selected\"\n (onLazyLoad)=\"lazyLoadGrid($event)\"\n *sLoadingState=\"loading\"\n [multiSortMeta]=\"multiSortMeta\"\n [attr.data-hidden]=\"!searchTotalRecords && !loading\"\n [selectionMode]=\"multiple ? 'multiple' : 'single'\"\n (selectionChange)=\"onSelectionChange($event)\"\n >\n <ng-template pTemplate=\"colgroup\" let-columns>\n <colgroup>\n <col *ngIf=\"multiple\" style=\"width: 50px\" />\n <col *ngFor=\"let col of columns\" [style.width]=\"col.width\" />\n </colgroup>\n </ng-template>\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th *ngIf=\"multiple\" style=\"width: 50px\">\n <s-table-header-checkbox [useAllObject]=\"lookupRowProps ? false : true\" [rowProps]=\"lookupRowProps\"></s-table-header-checkbox>\n </th>\n <th\n [style.width]=\"col.width\"\n *ngFor=\"let col of columns\"\n [pSortableColumn]=\"col.name\"\n [pSortableColumnDisabled]=\"sortableColumnsDisabled?.includes(col.name)\"\n >\n <div class=\"senior-header\">\n <span class=\"senior-header-title\">{{ col.label }}</span>\n <p-sortIcon [field]=\"col.name\" *ngIf=\"!sortableColumnsDisabled?.includes(col.name)\"></p-sortIcon>\n </div>\n </th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-columns let-rowIndex=\"rowIndex\">\n <tr sNavigation [pSelectableRow]=\"rowData\" [pSelectableRowIndex]=\"rowIndex\">\n <td *ngIf=\"multiple\" style=\"width: 50px\" tabindex=\"0\">\n <p-tableCheckbox [value]=\"rowData\" [pSelectableRow]=\"rowData\"></p-tableCheckbox>\n </td>\n <td\n [style.width]=\"col['width']\"\n *ngFor=\"let col of searchGridFields\"\n [ngSwitch]=\"col.type\"\n tabindex=\"0\"\n >\n <ng-container *ngSwitchCase=\"'Boolean'\">\n <ng-container *ngIf=\"isBooleanValue(rowData, col.name); else emptyTemplate\">\n <span>{{ getBooleanLabel(rowData, col.name, col.optionsLabel) }}</span>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'Date'\">\n <ng-container *ngIf=\"getFieldValue(rowData, col.name); else emptyTemplate\">\n <span>{{ getFieldValue(rowData, col.name) | localizedDate: col.calendarLocaleOptions?.dateFormat || \"L\" | async }}</span>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'DateTime'\">\n <ng-container *ngIf=\"getFieldValue(rowData, col.name); else emptyTemplate\">\n <span>{{ getFieldValue(rowData, col.name) | localizedDate | async }}</span>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'Time'\">\n <ng-container *ngIf=\"getFieldValue(rowData, col.name); else emptyTemplate\">\n <span>{{ getFieldValue(rowData, col.name) | localizedTime: col.calendarLocaleOptions?.dateFormat || \"LTS\" | async }}</span>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'Double'\">\n <ng-container *ngIf=\"isNumber(rowData, col.name); else emptyTemplate\">\n <span> {{ getFieldValue(rowData, col.name) | localizedNumber: getScale(col.scale) | async }} </span>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'Money'\">\n <ng-container *ngIf=\"isNumber(rowData, col.name); else emptyTemplate\">\n <span> {{ getFieldValue(rowData, col.name) | localizedCurrency | async }} </span>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'Number'\">\n <ng-container *ngIf=\"isNumber(rowData, col.name); else emptyTemplate\">\n <span> {{ getFieldValue(rowData, col.name) | localizedBignumber: getNumberMaskConfig(col) | async }} </span>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'Enum'\">\n <ng-container\n *ngIf=\"getLabelForValue(getFieldValue(rowData, col.name), col.options); else emptyTemplate\"\n >\n <span> {{ getLabelForValue(getFieldValue(rowData, col.name), col.options) }} </span>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <ng-container *ngIf=\"col.mask && col.mask()\">\n <ng-container *ngIf=\"(isNumber(rowData, col.name) || getFieldValue(rowData, col.name))\">\n <span>{{ getFieldValue(rowData, col.name) | sMaskFormatter: col.mask() }}</span>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"!(col.mask && col.mask())\">\n <ng-container *ngIf=\"(isNumber(rowData, col.name) || getFieldValue(rowData, col.name)); else emptyTemplate\">\n <span>{{ getFieldValue(rowData, col.name) }}</span>\n </ng-container>\n </ng-container>\n </ng-container>\n </td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"paginatorright\">\n <span [attr.data-hidden]=\"loading\">\n {{\n searchTotalRecordsLabel ||\n searchTotalRecords?.toString() + (searchTotalRecords === 1 ? recordLabel : recordsLabel)\n }}\n </span>\n </ng-template>\n </p-table>\n </div>\n </div>\n\n <p-footer>\n <s-button\n [id]=\"id + '-select-button'\"\n type=\"button\"\n [label]=\"selectLabel\"\n (onClick)=\"select()\"\n pTooltip=\"(ALT + SHIFT + S)\"\n showDelay=\"500\"\n [disabled]=\"!selected?.length\"\n ></s-button>\n <s-button\n [id]=\"id + '-cancel-button'\"\n type=\"button\"\n priority=\"link\"\n [label]=\"cancelLabel\"\n (onClick)=\"hideDialog()\"\n pTooltip=\"(ALT + SHIFT + C)\"\n showDelay=\"500\"\n ></s-button>\n </p-footer>\n</p-dialog>\n\n<ng-template #emptyTemplate>\n <span [ngClass]=\"'sds-empty-value'\">{{ emptyFieldLabel }}</span>\n</ng-template>\n",
|
|
2517
|
+
template: "<div [ngClass]=\"{ inputgroup: showSearch }\">\n <p-autoComplete\n #autocomplete\n [(ngModel)]=\"value\"\n [disabled]=\"disabled\"\n [dataKey]=\"dataKey\"\n [multiple]=\"multiple\"\n [inputId]=\"id + '-autocomplete'\"\n [forceSelection]=\"true\"\n [suggestions]=\"getLookupSuggestions()\"\n (completeMethod)=\"lazyLoadLookup($event)\"\n (onSelect)=\"onSelect.next($event)\"\n (onBlur)=\"onBlur.next($event)\"\n (onFocus)=\"onFocus.next($event)\"\n (onUnselect)=\"onUnselect.next($event)\"\n (onClear)=\"onClear.next($event)\"\n (onKeyUp)=\"onKeyUp.next($event)\"\n [field]=\"lookupDisplayField\"\n [emptyMessage]=\"lookupEmptyMessage\"\n [dropdown]=\"!showSearch\"\n [appendTo]=\"lookupAppendTo\"\n [placeholder]=\"placeholder || ' '\"\n [autoHighlight]=\"true\"\n inputStyleClass=\"mousetrap\"\n >\n <ng-template let-item pTemplate=\"selectedItem\">\n <span class=\"ui-autocomplete-token-label ng-tns-c65-43 ng-star-inserted\" \n [pTooltip]=\"lookupDisplayFieldTooltip ? item[lookupDisplayField] : null\" \n tooltipPosition=\"top\">\n {{item[lookupDisplayField]}}\n </span>\n </ng-template>\n </p-autoComplete>\n\n <button\n *ngIf=\"showSearch\"\n pButton\n type=\"button\"\n icon=\"fa fa-search\"\n class=\"button-addon\"\n [disabled]=\"disabled\"\n (click)=\"showDialog()\"\n ></button>\n</div>\n\n<p-dialog\n appendTo=\"body\"\n styleClass=\"s-lookup-modal\"\n [header]=\"searchTitle\"\n [(visible)]=\"dialogVisible\"\n [modal]=\"true\"\n (onHide)=\"hideDialog()\"\n [blockScroll]=\"true\"\n [focusOnShow]=\"true\"\n [draggable]=\"false\"\n [resizable]=\"false\"\n #dialog\n>\n <div *ngIf=\"dialogVisible\" class=\"s-lookup-modal-container\">\n <div *ngIf=\"searchFields && searchFields.length\" class=\"filter\"\n [@collapseContent]=\"collapsed ? {value: 'hidden', params: {transitionParams: transitionOptions }} : {value: 'visible', params: {transitionParams: transitionOptions}}\"\n (@collapseContent.done)=\"onToggleDone()\">\n <form [formGroup]=\"formGroupDialog\" novalidate autocomplete=\"off\">\n <div *ngIf=\"!collapsed\"\n [@childCollapseContent]=\"collapsed ? {value: ':leave', params: {transitionParams: transitionOptions }} : {value: ':enter', params: {transitionParams: transitionOptions}}\"\n class=\"form-content\">\n <div class=\"filter-title sds-section-title\">{{ filterTitle }}</div>\n <div class=\"form-fields\">\n <s-dynamic-form [fields]=\"searchFields\" [form]=\"formGroupDialog\"></s-dynamic-form>\n </div>\n <div class=\"ui-g\">\n <div class=\"ui-g-12\">\n <s-button\n [id]=\"id + '-filter-button'\"\n type=\"submit\"\n [label]=\"filterLabel\"\n (onClick)=\"search()\"\n pTooltip=\"(ALT + SHIFT + F)\"\n showDelay=\"500\"\n ></s-button>\n <s-button\n [id]=\"id + '-clear-button'\"\n type=\"button\"\n [label]=\"clearLabel\"\n (onClick)=\"clear()\"\n priority=\"link\"\n pTooltip=\"(ALT + SHIFT + L)\"\n showDelay=\"500\"\n ></s-button>\n </div>\n </div>\n </div>\n </form> \n </div>\n <div *ngIf=\"searchFields && searchFields.length\" class=\"filter-toggle\">\n <div class=\"filter-toggle--start-border-mask\"></div>\n <button [id]=\"id + '-filter-toggle-button'\" type=\"button\" (click)=\"filterToggle()\">\n <span class=\"fa\" [ngClass]=\"{'fa-chevron-left': !collapsed, 'fa-chevron-right': collapsed}\"\n aria-hidden=\"true\"></span>\n </button>\n <div class=\"filter-toggle--end-border-mask\"></div>\n </div>\n <div class=\"content\" [ngClass]=\"{'empty-content': !searchTotalRecords && !loading}\">\n <s-empty-state\n [id]=\"id + '-empty-state'\"\n *ngIf=\"!searchTotalRecords && !loading\"\n [title]=\"searchEmptyTitle\"\n [description]=\"searchEmptyDescription\"\n iconClass=\"fa fa-search\"\n ></s-empty-state>\n\n <p-table\n [dataKey]=\"dataKey\"\n [value]=\"getGridData()\"\n [columns]=\"searchGridFields\"\n [lazy]=\"true\"\n [scrollable]=\"true\"\n [paginator]=\"true\"\n sortMode=\"multiple\"\n [totalRecords]=\"searchTotalRecords\"\n [rows]=\"10\"\n [selection]=\"selected\"\n (onLazyLoad)=\"lazyLoadGrid($event)\"\n *sLoadingState=\"loading\"\n [multiSortMeta]=\"multiSortMeta\"\n [attr.data-hidden]=\"!searchTotalRecords && !loading\"\n [selectionMode]=\"multiple ? 'multiple' : 'single'\"\n (selectionChange)=\"onSelectionChange($event)\"\n >\n <ng-template pTemplate=\"colgroup\" let-columns>\n <colgroup>\n <col *ngIf=\"multiple\" style=\"width: 50px\" />\n <col *ngFor=\"let col of columns\" [style.width]=\"col.width\" />\n </colgroup>\n </ng-template>\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th *ngIf=\"multiple\" style=\"width: 50px\">\n <s-table-header-checkbox [useAllObject]=\"lookupRowProps ? false : true\" [rowProps]=\"lookupRowProps\"></s-table-header-checkbox>\n </th>\n <th\n [style.width]=\"col.width\"\n *ngFor=\"let col of columns\"\n [pSortableColumn]=\"col.name\"\n [pSortableColumnDisabled]=\"sortableColumnsDisabled?.includes(col.name)\"\n >\n <div class=\"senior-header\">\n <span class=\"senior-header-title\">{{ col.label }}</span>\n <p-sortIcon [field]=\"col.name\" *ngIf=\"!sortableColumnsDisabled?.includes(col.name)\"></p-sortIcon>\n </div>\n </th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-columns let-rowIndex=\"rowIndex\">\n <tr\n sNavigation\n [pSelectableRow]=\"rowData\"\n [pSelectableRowIndex]=\"rowIndex\"\n sDoubleClick (onDoubleClick)=\"onTableRowDoubleClick(rowData)\"\n >\n <td *ngIf=\"multiple\" style=\"width: 50px\" tabindex=\"0\">\n <p-tableCheckbox [value]=\"rowData\" [pSelectableRow]=\"rowData\"></p-tableCheckbox>\n </td>\n <td\n [style.width]=\"col['width']\"\n *ngFor=\"let col of searchGridFields\"\n [ngSwitch]=\"col.type\"\n tabindex=\"0\"\n >\n <ng-container *ngSwitchCase=\"'Boolean'\">\n <ng-container *ngIf=\"isBooleanValue(rowData, col.name); else emptyTemplate\">\n <span>{{ getBooleanLabel(rowData, col.name, col.optionsLabel) }}</span>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'Date'\">\n <ng-container *ngIf=\"getFieldValue(rowData, col.name); else emptyTemplate\">\n <span>{{ getFieldValue(rowData, col.name) | localizedDate: col.calendarLocaleOptions?.dateFormat || \"L\" | async }}</span>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'DateTime'\">\n <ng-container *ngIf=\"getFieldValue(rowData, col.name); else emptyTemplate\">\n <span>{{ getFieldValue(rowData, col.name) | localizedDate | async }}</span>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'Time'\">\n <ng-container *ngIf=\"getFieldValue(rowData, col.name); else emptyTemplate\">\n <span>{{ getFieldValue(rowData, col.name) | localizedTime: col.calendarLocaleOptions?.dateFormat || \"LTS\" | async }}</span>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'Double'\">\n <ng-container *ngIf=\"isNumber(rowData, col.name); else emptyTemplate\">\n <span> {{ getFieldValue(rowData, col.name) | localizedNumber: getScale(col.scale) | async }} </span>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'Money'\">\n <ng-container *ngIf=\"isNumber(rowData, col.name); else emptyTemplate\">\n <span> {{ getFieldValue(rowData, col.name) | localizedCurrency | async }} </span>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'Number'\">\n <ng-container *ngIf=\"isNumber(rowData, col.name); else emptyTemplate\">\n <span> {{ getFieldValue(rowData, col.name) | localizedBignumber: getNumberMaskConfig(col) | async }} </span>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'Enum'\">\n <ng-container\n *ngIf=\"getLabelForValue(getFieldValue(rowData, col.name), col.options); else emptyTemplate\"\n >\n <span> {{ getLabelForValue(getFieldValue(rowData, col.name), col.options) }} </span>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <ng-container *ngIf=\"col.mask && col.mask()\">\n <ng-container *ngIf=\"(isNumber(rowData, col.name) || getFieldValue(rowData, col.name))\">\n <span>{{ getFieldValue(rowData, col.name) | sMaskFormatter: col.mask() }}</span>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"!(col.mask && col.mask())\">\n <ng-container *ngIf=\"(isNumber(rowData, col.name) || getFieldValue(rowData, col.name)); else emptyTemplate\">\n <span>{{ getFieldValue(rowData, col.name) }}</span>\n </ng-container>\n </ng-container>\n </ng-container>\n </td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"paginatorright\">\n <span [attr.data-hidden]=\"loading\">\n {{\n searchTotalRecordsLabel ||\n searchTotalRecords?.toString() + (searchTotalRecords === 1 ? recordLabel : recordsLabel)\n }}\n </span>\n </ng-template>\n </p-table>\n </div>\n </div>\n\n <p-footer>\n <s-button\n [id]=\"id + '-select-button'\"\n type=\"button\"\n [label]=\"selectLabel\"\n (onClick)=\"select()\"\n pTooltip=\"(ALT + SHIFT + S)\"\n showDelay=\"500\"\n [disabled]=\"!selected?.length\"\n ></s-button>\n <s-button\n [id]=\"id + '-cancel-button'\"\n type=\"button\"\n priority=\"link\"\n [label]=\"cancelLabel\"\n (onClick)=\"hideDialog()\"\n pTooltip=\"(ALT + SHIFT + C)\"\n showDelay=\"500\"\n ></s-button>\n </p-footer>\n</p-dialog>\n\n<ng-template #emptyTemplate>\n <span [ngClass]=\"'sds-empty-value'\">{{ emptyFieldLabel }}</span>\n</ng-template>\n",
|
|
2514
2518
|
providers: [
|
|
2515
2519
|
{
|
|
2516
2520
|
provide: forms.NG_VALUE_ACCESSOR,
|
|
@@ -3075,7 +3079,7 @@
|
|
|
3075
3079
|
InfoSignComponent = __decorate([
|
|
3076
3080
|
core.Component({
|
|
3077
3081
|
selector: "s-info-sign-component",
|
|
3078
|
-
template: "<span style=\"display: inline-flex; justify-content: flex-start; align-items: baseline;\">\n <span *ngTemplateOutlet=\"templateRef\"></span>\n <i class=\"fa fa-info-circle\"
|
|
3082
|
+
template: "<span style=\"display: inline-flex; justify-content: flex-start; align-items: baseline;\">\n <span *ngTemplateOutlet=\"templateRef\"></span>\n <i class=\"fa fa-info-circle\"\n aria-hidden=\"true\"\n style=\"padding-left: 10px\"\n [pTooltip]=\"tooltip\"\n [escape]=\"false\"></i>\n</span>"
|
|
3079
3083
|
})
|
|
3080
3084
|
], InfoSignComponent);
|
|
3081
3085
|
return InfoSignComponent;
|
|
@@ -4446,7 +4450,7 @@
|
|
|
4446
4450
|
], RadioButtonComponent.prototype, "onFocus", void 0);
|
|
4447
4451
|
RadioButtonComponent = __decorate([
|
|
4448
4452
|
core.Component({
|
|
4449
|
-
template: "<ng-container *ngIf=\"field.verticalAlignment;else horizontalAlignment\">\n <div class=\"ui-g\">\n <div class=\"ui-g-12\" *ngFor=\"let option of field.options; let i = index\">\n <ng-container [ngTemplateOutlet]=\"radioButton\" [ngTemplateOutletContext]=\"{option: option, index: i}\">\n </ng-container>\n </div>\n </div>\n</ng-container>\n\n<ng-template #horizontalAlignment>\n <ng-container *ngFor=\"let option of field.options; let i = index\" [ngTemplateOutlet]=\"radioButton\"\n
|
|
4453
|
+
template: "<ng-container *ngIf=\"field.verticalAlignment;else horizontalAlignment\">\n <div class=\"ui-g\">\n <div class=\"ui-g-12\" *ngFor=\"let option of field.options; let i = index\">\n <ng-container [ngTemplateOutlet]=\"radioButton\" [ngTemplateOutletContext]=\"{option: option, index: i}\">\n </ng-container>\n </div>\n </div>\n</ng-container>\n\n<ng-template #horizontalAlignment>\n <div class=\"ui-g\">\n <ng-container *ngFor=\"let option of field.options; let i = index\" [ngTemplateOutlet]=\"radioButton\"\n [ngTemplateOutletContext]=\"{option: option, index: i}\">\n </ng-container>\n </div>\n</ng-template>\n\n<ng-template #radioButton let-option=\"option\" let-i=\"index\">\n <p-radioButton [name]=\"field.name\" [value]=\"option.value\" [label]=\"option.label\" [formControl]=\"formControl\"\n [inputId]=\"(field.id || field.name) + '-' + i\" [pTooltip]=\"field.tooltip\" (onClick)=\"onClick.next($event)\"\n (onFocus)=\"onFocus.next($event)\" (onBlur)=\"field.onBlur ? field.onBlur($event) : null\">\n </p-radioButton>\n</ng-template>\n"
|
|
4450
4454
|
})
|
|
4451
4455
|
], RadioButtonComponent);
|
|
4452
4456
|
return RadioButtonComponent;
|
|
@@ -4951,6 +4955,108 @@
|
|
|
4951
4955
|
return DynamicFormDirective;
|
|
4952
4956
|
}());
|
|
4953
4957
|
|
|
4958
|
+
var LongPressDirective = /** @class */ (function () {
|
|
4959
|
+
function LongPressDirective() {
|
|
4960
|
+
this.sLongPressDelay = 500;
|
|
4961
|
+
this.sLongPress = new core.EventEmitter();
|
|
4962
|
+
this.mouseUp = new rxjs.Subject();
|
|
4963
|
+
this.mouseDown = new rxjs.Subject();
|
|
4964
|
+
this.ngUnsubscribe = new rxjs.Subject();
|
|
4965
|
+
}
|
|
4966
|
+
LongPressDirective.prototype.onMouseUp = function (event) {
|
|
4967
|
+
this.mouseUp.next(event);
|
|
4968
|
+
};
|
|
4969
|
+
LongPressDirective.prototype.onMouseDown = function (event) {
|
|
4970
|
+
this.mouseDown.next(event);
|
|
4971
|
+
};
|
|
4972
|
+
LongPressDirective.prototype.ngOnInit = function () {
|
|
4973
|
+
var _this = this;
|
|
4974
|
+
this.mouseDown
|
|
4975
|
+
.pipe(operators.debounceTime(this.sLongPressDelay), operators.takeUntil(this.mouseUp), operators.repeat(), operators.takeUntil(this.ngUnsubscribe))
|
|
4976
|
+
.subscribe(function (event) { return _this.sLongPress.emit(event); });
|
|
4977
|
+
};
|
|
4978
|
+
LongPressDirective.prototype.ngOnDestroy = function () {
|
|
4979
|
+
this.ngUnsubscribe.next();
|
|
4980
|
+
this.ngUnsubscribe.complete();
|
|
4981
|
+
};
|
|
4982
|
+
__decorate([
|
|
4983
|
+
core.Input()
|
|
4984
|
+
], LongPressDirective.prototype, "sLongPressDelay", void 0);
|
|
4985
|
+
__decorate([
|
|
4986
|
+
core.Output()
|
|
4987
|
+
], LongPressDirective.prototype, "sLongPress", void 0);
|
|
4988
|
+
__decorate([
|
|
4989
|
+
core.HostListener("mouseup", ["$event"]),
|
|
4990
|
+
core.HostListener("touchend", ["$event"])
|
|
4991
|
+
], LongPressDirective.prototype, "onMouseUp", null);
|
|
4992
|
+
__decorate([
|
|
4993
|
+
core.HostListener("mousedown", ["$event"]),
|
|
4994
|
+
core.HostListener("touchstart", ["$event"])
|
|
4995
|
+
], LongPressDirective.prototype, "onMouseDown", null);
|
|
4996
|
+
LongPressDirective = __decorate([
|
|
4997
|
+
core.Directive({
|
|
4998
|
+
selector: "[sLongPress]",
|
|
4999
|
+
})
|
|
5000
|
+
], LongPressDirective);
|
|
5001
|
+
return LongPressDirective;
|
|
5002
|
+
}());
|
|
5003
|
+
|
|
5004
|
+
var DoubleClickDirective = /** @class */ (function () {
|
|
5005
|
+
function DoubleClickDirective() {
|
|
5006
|
+
this.onDoubleClick = new core.EventEmitter();
|
|
5007
|
+
this._timeout = null;
|
|
5008
|
+
this._DOUBLE_CLICK_DELAY = 500;
|
|
5009
|
+
}
|
|
5010
|
+
DoubleClickDirective.prototype.onClick = function (event) {
|
|
5011
|
+
this.handleOnClickEvent(event);
|
|
5012
|
+
};
|
|
5013
|
+
DoubleClickDirective.prototype.handleOnClickEvent = function (event) {
|
|
5014
|
+
var _this = this;
|
|
5015
|
+
if (this._timeout) {
|
|
5016
|
+
this.clearTimeout();
|
|
5017
|
+
this.onDoubleClick.emit(event);
|
|
5018
|
+
}
|
|
5019
|
+
else {
|
|
5020
|
+
this._timeout = setTimeout(function () { return _this.clearTimeout(); }, this._DOUBLE_CLICK_DELAY);
|
|
5021
|
+
}
|
|
5022
|
+
};
|
|
5023
|
+
DoubleClickDirective.prototype.clearTimeout = function () {
|
|
5024
|
+
clearTimeout(this._timeout);
|
|
5025
|
+
this._timeout = null;
|
|
5026
|
+
};
|
|
5027
|
+
__decorate([
|
|
5028
|
+
core.Output()
|
|
5029
|
+
], DoubleClickDirective.prototype, "onDoubleClick", void 0);
|
|
5030
|
+
__decorate([
|
|
5031
|
+
core.HostListener("click", ["$event"])
|
|
5032
|
+
], DoubleClickDirective.prototype, "onClick", null);
|
|
5033
|
+
DoubleClickDirective = __decorate([
|
|
5034
|
+
core.Directive({
|
|
5035
|
+
selector: '[sDoubleClick]'
|
|
5036
|
+
})
|
|
5037
|
+
], DoubleClickDirective);
|
|
5038
|
+
return DoubleClickDirective;
|
|
5039
|
+
}());
|
|
5040
|
+
|
|
5041
|
+
var MouseEventsModule = /** @class */ (function () {
|
|
5042
|
+
function MouseEventsModule() {
|
|
5043
|
+
}
|
|
5044
|
+
MouseEventsModule = __decorate([
|
|
5045
|
+
core.NgModule({
|
|
5046
|
+
imports: [common.CommonModule],
|
|
5047
|
+
declarations: [
|
|
5048
|
+
LongPressDirective,
|
|
5049
|
+
DoubleClickDirective
|
|
5050
|
+
],
|
|
5051
|
+
exports: [
|
|
5052
|
+
LongPressDirective,
|
|
5053
|
+
DoubleClickDirective
|
|
5054
|
+
],
|
|
5055
|
+
})
|
|
5056
|
+
], MouseEventsModule);
|
|
5057
|
+
return MouseEventsModule;
|
|
5058
|
+
}());
|
|
5059
|
+
|
|
4954
5060
|
var DynamicFormModule = /** @class */ (function () {
|
|
4955
5061
|
function DynamicFormModule() {
|
|
4956
5062
|
}
|
|
@@ -4993,7 +5099,8 @@
|
|
|
4993
5099
|
TableModule,
|
|
4994
5100
|
InfoSignModule,
|
|
4995
5101
|
MaskFormatterModule,
|
|
4996
|
-
angular2Hotkeys.HotkeyModule.forRoot()
|
|
5102
|
+
angular2Hotkeys.HotkeyModule.forRoot(),
|
|
5103
|
+
MouseEventsModule
|
|
4997
5104
|
],
|
|
4998
5105
|
declarations: [
|
|
4999
5106
|
AutocompleteFieldComponent,
|
|
@@ -5983,65 +6090,6 @@
|
|
|
5983
6090
|
return ImageCropperService;
|
|
5984
6091
|
}());
|
|
5985
6092
|
|
|
5986
|
-
var LongPressDirective = /** @class */ (function () {
|
|
5987
|
-
function LongPressDirective() {
|
|
5988
|
-
this.sLongPressDelay = 500;
|
|
5989
|
-
this.sLongPress = new core.EventEmitter();
|
|
5990
|
-
this.mouseUp = new rxjs.Subject();
|
|
5991
|
-
this.mouseDown = new rxjs.Subject();
|
|
5992
|
-
this.ngUnsubscribe = new rxjs.Subject();
|
|
5993
|
-
}
|
|
5994
|
-
LongPressDirective.prototype.onMouseUp = function (event) {
|
|
5995
|
-
this.mouseUp.next(event);
|
|
5996
|
-
};
|
|
5997
|
-
LongPressDirective.prototype.onMouseDown = function (event) {
|
|
5998
|
-
this.mouseDown.next(event);
|
|
5999
|
-
};
|
|
6000
|
-
LongPressDirective.prototype.ngOnInit = function () {
|
|
6001
|
-
var _this = this;
|
|
6002
|
-
this.mouseDown
|
|
6003
|
-
.pipe(operators.debounceTime(this.sLongPressDelay), operators.takeUntil(this.mouseUp), operators.repeat(), operators.takeUntil(this.ngUnsubscribe))
|
|
6004
|
-
.subscribe(function (event) { return _this.sLongPress.emit(event); });
|
|
6005
|
-
};
|
|
6006
|
-
LongPressDirective.prototype.ngOnDestroy = function () {
|
|
6007
|
-
this.ngUnsubscribe.next();
|
|
6008
|
-
this.ngUnsubscribe.complete();
|
|
6009
|
-
};
|
|
6010
|
-
__decorate([
|
|
6011
|
-
core.Input()
|
|
6012
|
-
], LongPressDirective.prototype, "sLongPressDelay", void 0);
|
|
6013
|
-
__decorate([
|
|
6014
|
-
core.Output()
|
|
6015
|
-
], LongPressDirective.prototype, "sLongPress", void 0);
|
|
6016
|
-
__decorate([
|
|
6017
|
-
core.HostListener("mouseup", ["$event"]),
|
|
6018
|
-
core.HostListener("touchend", ["$event"])
|
|
6019
|
-
], LongPressDirective.prototype, "onMouseUp", null);
|
|
6020
|
-
__decorate([
|
|
6021
|
-
core.HostListener("mousedown", ["$event"]),
|
|
6022
|
-
core.HostListener("touchstart", ["$event"])
|
|
6023
|
-
], LongPressDirective.prototype, "onMouseDown", null);
|
|
6024
|
-
LongPressDirective = __decorate([
|
|
6025
|
-
core.Directive({
|
|
6026
|
-
selector: "[sLongPress]",
|
|
6027
|
-
})
|
|
6028
|
-
], LongPressDirective);
|
|
6029
|
-
return LongPressDirective;
|
|
6030
|
-
}());
|
|
6031
|
-
|
|
6032
|
-
var MouseEventsModule = /** @class */ (function () {
|
|
6033
|
-
function MouseEventsModule() {
|
|
6034
|
-
}
|
|
6035
|
-
MouseEventsModule = __decorate([
|
|
6036
|
-
core.NgModule({
|
|
6037
|
-
imports: [common.CommonModule],
|
|
6038
|
-
declarations: [LongPressDirective],
|
|
6039
|
-
exports: [LongPressDirective],
|
|
6040
|
-
})
|
|
6041
|
-
], MouseEventsModule);
|
|
6042
|
-
return MouseEventsModule;
|
|
6043
|
-
}());
|
|
6044
|
-
|
|
6045
6093
|
|
|
6046
6094
|
(function (ThumbnailSize) {
|
|
6047
6095
|
ThumbnailSize["Small"] = "small";
|
|
@@ -8764,6 +8812,7 @@
|
|
|
8764
8812
|
exports.DEFAULT_CALENDAR_LOCALE_OPTIONS = DEFAULT_CALENDAR_LOCALE_OPTIONS;
|
|
8765
8813
|
exports.DEFAULT_LOCALE_OPTIONS = DEFAULT_LOCALE_OPTIONS;
|
|
8766
8814
|
exports.DEFAULT_NUMBER_LOCALE_OPTIONS = DEFAULT_NUMBER_LOCALE_OPTIONS;
|
|
8815
|
+
exports.DoubleClickDirective = DoubleClickDirective;
|
|
8767
8816
|
exports.DynamicConfig = DynamicConfig;
|
|
8768
8817
|
exports.DynamicFormComponent = DynamicFormComponent;
|
|
8769
8818
|
exports.DynamicFormModule = DynamicFormModule;
|
|
@@ -8846,42 +8895,43 @@
|
|
|
8846
8895
|
exports.TokenListModule = TokenListModule;
|
|
8847
8896
|
exports.ɵa = LocalizedCurrencyImpurePipe;
|
|
8848
8897
|
exports.ɵb = LocalizedBignumberPipe;
|
|
8849
|
-
exports.ɵ
|
|
8850
|
-
exports.ɵ
|
|
8851
|
-
exports.ɵ
|
|
8852
|
-
exports.ɵ
|
|
8853
|
-
exports.ɵ
|
|
8854
|
-
exports.ɵ
|
|
8855
|
-
exports.ɵ
|
|
8856
|
-
exports.ɵ
|
|
8857
|
-
exports.ɵ
|
|
8858
|
-
exports.ɵ
|
|
8859
|
-
exports.ɵ
|
|
8860
|
-
exports.ɵ
|
|
8861
|
-
exports.ɵ
|
|
8898
|
+
exports.ɵbb = DecimalField;
|
|
8899
|
+
exports.ɵbc = StructureModule;
|
|
8900
|
+
exports.ɵbd = HeaderComponent;
|
|
8901
|
+
exports.ɵbe = FooterComponent;
|
|
8902
|
+
exports.ɵbf = InfoSignComponent;
|
|
8903
|
+
exports.ɵbg = NumberLocaleOptions;
|
|
8904
|
+
exports.ɵbh = ThumbnailService;
|
|
8905
|
+
exports.ɵbi = InfiniteScrollModule;
|
|
8906
|
+
exports.ɵbj = InfiniteScrollDirective;
|
|
8907
|
+
exports.ɵbk = CustomTranslationsModule;
|
|
8908
|
+
exports.ɵbl = CodeEditorComponent;
|
|
8909
|
+
exports.ɵbm = CoreFacade;
|
|
8910
|
+
exports.ɵbn = CodeMirror6Core;
|
|
8862
8911
|
exports.ɵc = LocalizedBignumberImpurePipe;
|
|
8863
8912
|
exports.ɵd = TokenListModule;
|
|
8864
8913
|
exports.ɵe = TableColumnsComponent;
|
|
8865
8914
|
exports.ɵf = InfoSignModule;
|
|
8866
|
-
exports.ɵg =
|
|
8867
|
-
exports.ɵh =
|
|
8868
|
-
exports.ɵi =
|
|
8869
|
-
exports.ɵj =
|
|
8870
|
-
exports.ɵk =
|
|
8871
|
-
exports.ɵl =
|
|
8872
|
-
exports.ɵm =
|
|
8873
|
-
exports.ɵn =
|
|
8874
|
-
exports.ɵo =
|
|
8875
|
-
exports.ɵp =
|
|
8876
|
-
exports.ɵq =
|
|
8877
|
-
exports.ɵr =
|
|
8878
|
-
exports.ɵs =
|
|
8879
|
-
exports.ɵt =
|
|
8880
|
-
exports.ɵu =
|
|
8881
|
-
exports.ɵv =
|
|
8882
|
-
exports.ɵw =
|
|
8883
|
-
exports.ɵx =
|
|
8884
|
-
exports.ɵy =
|
|
8915
|
+
exports.ɵg = MouseEventsModule;
|
|
8916
|
+
exports.ɵh = AutocompleteFieldComponent;
|
|
8917
|
+
exports.ɵi = BooleanFieldComponent;
|
|
8918
|
+
exports.ɵj = CalendarFieldComponent;
|
|
8919
|
+
exports.ɵk = ChipsFieldComponent;
|
|
8920
|
+
exports.ɵl = CurrencyFieldComponent;
|
|
8921
|
+
exports.ɵm = BaseFieldComponent;
|
|
8922
|
+
exports.ɵn = DynamicFieldComponent;
|
|
8923
|
+
exports.ɵo = DynamicFormDirective;
|
|
8924
|
+
exports.ɵp = FieldsetComponent;
|
|
8925
|
+
exports.ɵq = FileUploadComponent$1;
|
|
8926
|
+
exports.ɵr = LookupFieldComponent;
|
|
8927
|
+
exports.ɵs = NumberFieldComponent;
|
|
8928
|
+
exports.ɵt = BignumberFieldComponent;
|
|
8929
|
+
exports.ɵu = RadioButtonComponent;
|
|
8930
|
+
exports.ɵv = RowComponent;
|
|
8931
|
+
exports.ɵw = SectionComponent;
|
|
8932
|
+
exports.ɵx = SelectFieldComponent;
|
|
8933
|
+
exports.ɵy = TextAreaFieldComponent;
|
|
8934
|
+
exports.ɵz = TextFieldComponent;
|
|
8885
8935
|
|
|
8886
8936
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8887
8937
|
|