@etninfinite/core 1.0.3 → 1.0.4
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.
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as i4 from '@angular/common';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
1
|
import * as i0 from '@angular/core';
|
|
4
2
|
import { Input, ViewEncapsulation, Component, inject } from '@angular/core';
|
|
5
3
|
import * as i1 from 'primeng/button';
|
|
6
4
|
import { ButtonModule } from 'primeng/button';
|
|
7
5
|
import { definePreset } from '@primeuix/themes';
|
|
6
|
+
import * as i4 from '@angular/common';
|
|
7
|
+
import { CommonModule } from '@angular/common';
|
|
8
8
|
import { FormsModule } from '@angular/forms';
|
|
9
9
|
import * as i1$1 from 'primeng/table';
|
|
10
10
|
import { TableModule } from 'primeng/table';
|
|
@@ -28,12 +28,12 @@ class InfBtnComponent {
|
|
|
28
28
|
isRounded = false;
|
|
29
29
|
size;
|
|
30
30
|
variant;
|
|
31
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
32
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
31
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: InfBtnComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
32
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.2", type: InfBtnComponent, isStandalone: true, selector: "inf-btn", inputs: { label: "label", serverity: "serverity", isDisabled: "isDisabled", raised: "raised", isRounded: "isRounded", size: "size", variant: "variant" }, ngImport: i0, template: "<p-button\nstyleClass=\"inf-btn\"\nattr.aria-label=\"{{label}}\" \n[severity]=\"serverity\" \n[rounded]=\"isRounded\" \n[raised]=\"raised\" \n[disabled]=\"isDisabled\"\n[size]=\"size\"\n[variant]=\"variant\"\n[label]=\"label\"></p-button>", styles: [""], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i1.Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
33
33
|
}
|
|
34
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
34
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: InfBtnComponent, decorators: [{
|
|
35
35
|
type: Component,
|
|
36
|
-
args: [{ selector: 'inf-btn', imports: [
|
|
36
|
+
args: [{ selector: 'inf-btn', imports: [ButtonModule], encapsulation: ViewEncapsulation.None, template: "<p-button\nstyleClass=\"inf-btn\"\nattr.aria-label=\"{{label}}\" \n[severity]=\"serverity\" \n[rounded]=\"isRounded\" \n[raised]=\"raised\" \n[disabled]=\"isDisabled\"\n[size]=\"size\"\n[variant]=\"variant\"\n[label]=\"label\"></p-button>" }]
|
|
37
37
|
}], propDecorators: { label: [{
|
|
38
38
|
type: Input,
|
|
39
39
|
args: [{ required: true }]
|
|
@@ -5531,10 +5531,10 @@ class InfTable {
|
|
|
5531
5531
|
});
|
|
5532
5532
|
return uniqueFields;
|
|
5533
5533
|
}
|
|
5534
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5535
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", type: InfTable, isStandalone: true, selector: "inf-table", inputs: { tableData: "tableData", apiUrl: "apiUrl", paginator: "paginator", rows: "rows", rowsPerPageOptions: "rowsPerPageOptions", stripedRows: "stripedRows", showGridlines: "showGridlines", data: "data" }, ngImport: i0, template: "@if (tableData) {\n\n <div class=\"inftable\" >\n @if(tableData.title){\n <h2>{{tableData.title}}</h2>\n }\n <p-table [columns]= \"tableData.headers\"\n [value]=\"tableData.body\"\n [stripedRows]=\"stripedRows\"\n [showGridlines]=\"showGridlines\"\n [rows]=\"rows\"\n [loading]=\"showLoading\"\n [rowsPerPageOptions]=\"rowsPerPageOptions\"\n [paginator]=\"paginator\">\n <ng-template #header let-columns>\n <tr>\n @for(col of columns; track col.label) {\n @if(col.sortable){\n <th [pSortableColumn]=\"col.sortOn\">\n <div class=\"sortable-column flex justify-between items-center gap-2\">\n {{col.label}}\n <p-sortIcon [field]=\"col.sortOn\"></p-sortIcon>\n </div>\n </th>\n }@else{\n <th>\n {{col.label}}\n </th>\n }\n }\n </tr>\n @if(hasFilter(tableData.headers)){\n <tr>\n @for(col of columns; track col.label){\n @if(col.filter && col.filter){\n <th>\n @if(col.filter.type === 'basic'){\n <p-columnFilter type=\"text\" [field]=\"col.filter.filterOn\" [placeholder]=\"col.filter.placeholder\" \n ariaLabel=\"{{col.filter.placeholder}}\" filterOn=\"input\"></p-columnFilter>\n }@else if (col.filter.type === 'multiselect') {\n <p-columnFilter [field]=\"col.filter.filterOn\" [placeholder]=\"col.filter.placeholder\" matchMode=\"in\" [showMenu]=\"false\" \n filterElement=\"multiselect\">\n <ng-template #filter let-filter=\"filterCallback\">\n @let uniqueOptions = getUniqueOptions(col.filter.filterOn);\n <p-multiSelect [options]=\"uniqueOptions\" (onChange)=\"filter($event.value)\" [style]=\"{'min-width':'12rem'}\" [showClear]=\"true\" [placeholder]=\"col.filter.placeholder\">\n <ng-template let-option #item>\n <div class=\"flex items-center gap-2\">\n <span>{{option}}</span>\n </div>\n </ng-template>\n </p-multiSelect>\n </ng-template>\n </p-columnFilter>\n }\n </th>\n }@else {\n <th></th>\n }\n }\n </tr>\n }\n\n </ng-template>\n <ng-template #body let-row>\n <tr>\n @let attrValues = toValues(row);\n @for(attr of attrValues; track $index) {\n <td>\n @if(typeof attr === 'string'){\n {{attr}}\n }@else {\n @let data = toDynamicCellModel(attr);\n @if(data.type === 'tags'){\n <div class=\"tags flex gap-2 flex-wrap\">\n @for(tag of (data.tags); track tag) {\n <p-tag [value]=\"tag.label\" [severity]=\"tag.severity\" />\n }\n </div>\n }@else if(data.type === 'currency'){\n {{data.value | currency: data.currency?.format}}\n }@else if(data.type === 'date'){\n {{data.value | date:data.date?.format}}\n }@else if (data.type==='image') {\n <div class=\"flex items-center\">\n <img src=\"{{data.value}}\" alt=\"{{data.imgProps?.alt}}\" [width]=data.imgProps?.width [height]=\"data.imgProps?.height\" />\n </div>\n }\n @else{\n {{attr}}\n }\n }\n </td>\n }\n </tr>\n </ng-template>\n </p-table>\n </div>\n}\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: TableModule }, { kind: "component", type: i1$1.Table, selector: "p-table", inputs: ["frozenColumns", "frozenValue", "styleClass", "tableStyle", "tableStyleClass", "paginator", "pageLinks", "rowsPerPageOptions", "alwaysShowPaginator", "paginatorPosition", "paginatorStyleClass", "paginatorDropdownAppendTo", "paginatorDropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showJumpToPageInput", "showFirstLastIcon", "showPageLinks", "defaultSortOrder", "sortMode", "resetPageOnSort", "selectionMode", "selectionPageOnly", "contextMenuSelection", "contextMenuSelectionMode", "dataKey", "metaKeySelection", "rowSelectable", "rowTrackBy", "lazy", "lazyLoadOnInit", "compareSelectionBy", "csvSeparator", "exportFilename", "filters", "globalFilterFields", "filterDelay", "filterLocale", "expandedRowKeys", "editingRowKeys", "rowExpandMode", "scrollable", "rowGroupMode", "scrollHeight", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "virtualScrollDelay", "frozenWidth", "contextMenu", "resizableColumns", "columnResizeMode", "reorderableColumns", "loading", "loadingIcon", "showLoader", "rowHover", "customSort", "showInitialSortBadge", "exportFunction", "exportHeader", "stateKey", "stateStorage", "editMode", "groupRowsBy", "size", "showGridlines", "stripedRows", "groupRowsByOrder", "responsiveLayout", "breakpoint", "paginatorLocale", "value", "columns", "first", "rows", "totalRecords", "sortField", "sortOrder", "multiSortMeta", "selection", "selectAll"], outputs: ["contextMenuSelectionChange", "selectAllChange", "selectionChange", "onRowSelect", "onRowUnselect", "onPage", "onSort", "onFilter", "onLazyLoad", "onRowExpand", "onRowCollapse", "onContextMenuSelect", "onColResize", "onColReorder", "onRowReorder", "onEditInit", "onEditComplete", "onEditCancel", "onHeaderCheckboxToggle", "sortFunction", "firstChange", "rowsChange", "onStateSave", "onStateRestore"] }, { kind: "directive", type: i1$1.SortableColumn, selector: "[pSortableColumn]", inputs: ["pSortableColumn", "pSortableColumnDisabled"] }, { kind: "component", type: i1$1.SortIcon, selector: "p-sortIcon", inputs: ["field"] }, { kind: "component", type: i1$1.ColumnFilter, selector: "p-columnFilter, p-column-filter, p-columnfilter", inputs: ["field", "type", "display", "showMenu", "matchMode", "operator", "showOperator", "showClearButton", "showApplyButton", "showMatchModes", "showAddButton", "hideOnClear", "placeholder", "matchModeOptions", "maxConstraints", "minFractionDigits", "maxFractionDigits", "prefix", "suffix", "locale", "localeMatcher", "currency", "currencyDisplay", "filterOn", "useGrouping", "showButtons", "ariaLabel", "filterButtonProps"], outputs: ["onShow", "onHide"] }, { kind: "ngmodule", type: ButtonModule }, { kind: "ngmodule", type: MultiSelectModule }, { kind: "component", type: i2.MultiSelect, selector: "p-multiSelect, p-multiselect, p-multi-select", inputs: ["id", "ariaLabel", "styleClass", "panelStyle", "panelStyleClass", "inputId", "readonly", "group", "filter", "filterPlaceHolder", "filterLocale", "overlayVisible", "tabindex", "dataKey", "ariaLabelledBy", "displaySelectedLabel", "maxSelectedLabels", "selectionLimit", "selectedItemsLabel", "showToggleAll", "emptyFilterMessage", "emptyMessage", "resetFilterOnHide", "dropdownIcon", "chipIcon", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "showHeader", "filterBy", "scrollHeight", "lazy", "virtualScroll", "loading", "virtualScrollItemSize", "loadingIcon", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "autofocusFilter", "display", "autocomplete", "showClear", "autofocus", "placeholder", "options", "filterValue", "selectAll", "focusOnHover", "filterFields", "selectOnFocus", "autoOptionFocus", "highlightOnSelect", "size", "variant", "fluid", "appendTo"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onClear", "onPanelShow", "onPanelHide", "onLazyLoad", "onRemove", "onSelectAllChange"] }, { kind: "ngmodule", type: InputTextModule }, { kind: "ngmodule", type: SelectModule }, { kind: "ngmodule", type: InputIconModule }, { kind: "ngmodule", type: IconFieldModule }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: TagModule }, { kind: "component", type: i3.Tag, selector: "p-tag", inputs: ["styleClass", "severity", "value", "icon", "rounded"] }, { kind: "ngmodule", type: ProgressBarModule }, { kind: "ngmodule", type: ToastModule }, { kind: "pipe", type: i4.CurrencyPipe, name: "currency" }, { kind: "pipe", type: i4.DatePipe, name: "date" }], encapsulation: i0.ViewEncapsulation.None });
|
|
5534
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: InfTable, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5535
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.2", type: InfTable, isStandalone: true, selector: "inf-table", inputs: { tableData: "tableData", apiUrl: "apiUrl", paginator: "paginator", rows: "rows", rowsPerPageOptions: "rowsPerPageOptions", stripedRows: "stripedRows", showGridlines: "showGridlines", data: "data" }, ngImport: i0, template: "@if (tableData) {\n\n <div class=\"inftable\" >\n @if(tableData.title){\n <h2>{{tableData.title}}</h2>\n }\n <p-table [columns]= \"tableData.headers\"\n [value]=\"tableData.body\"\n [stripedRows]=\"stripedRows\"\n [showGridlines]=\"showGridlines\"\n [rows]=\"rows\"\n [loading]=\"showLoading\"\n [rowsPerPageOptions]=\"rowsPerPageOptions\"\n [paginator]=\"paginator\">\n <ng-template #header let-columns>\n <tr>\n @for(col of columns; track col.label) {\n @if(col.sortable){\n <th [pSortableColumn]=\"col.sortOn\">\n <div class=\"sortable-column flex justify-between items-center gap-2\">\n {{col.label}}\n <p-sortIcon [field]=\"col.sortOn\"></p-sortIcon>\n </div>\n </th>\n }@else{\n <th>\n {{col.label}}\n </th>\n }\n }\n </tr>\n @if(hasFilter(tableData.headers)){\n <tr>\n @for(col of columns; track col.label){\n @if(col.filter && col.filter){\n <th>\n @if(col.filter.type === 'basic'){\n <p-columnFilter type=\"text\" [field]=\"col.filter.filterOn\" [placeholder]=\"col.filter.placeholder\" \n ariaLabel=\"{{col.filter.placeholder}}\" filterOn=\"input\"></p-columnFilter>\n }@else if (col.filter.type === 'multiselect') {\n <p-columnFilter [field]=\"col.filter.filterOn\" [placeholder]=\"col.filter.placeholder\" matchMode=\"in\" [showMenu]=\"false\" \n filterElement=\"multiselect\">\n <ng-template #filter let-filter=\"filterCallback\">\n @let uniqueOptions = getUniqueOptions(col.filter.filterOn);\n <p-multiSelect [options]=\"uniqueOptions\" (onChange)=\"filter($event.value)\" [style]=\"{'min-width':'12rem'}\" [showClear]=\"true\" [placeholder]=\"col.filter.placeholder\">\n <ng-template let-option #item>\n <div class=\"flex items-center gap-2\">\n <span>{{option}}</span>\n </div>\n </ng-template>\n </p-multiSelect>\n </ng-template>\n </p-columnFilter>\n }\n </th>\n }@else {\n <th></th>\n }\n }\n </tr>\n }\n\n </ng-template>\n <ng-template #body let-row>\n <tr>\n @let attrValues = toValues(row);\n @for(attr of attrValues; track $index) {\n <td>\n @if(typeof attr === 'string'){\n {{attr}}\n }@else {\n @let data = toDynamicCellModel(attr);\n @if(data.type === 'tags'){\n <div class=\"tags flex gap-2 flex-wrap\">\n @for(tag of (data.tags); track tag) {\n <p-tag [value]=\"tag.label\" [severity]=\"tag.severity\" />\n }\n </div>\n }@else if(data.type === 'currency'){\n {{data.value | currency: data.currency?.format}}\n }@else if(data.type === 'date'){\n {{data.value | date:data.date?.format}}\n }@else if (data.type==='image') {\n <div class=\"flex items-center\">\n <img src=\"{{data.value}}\" alt=\"{{data.imgProps?.alt}}\" [width]=data.imgProps?.width [height]=\"data.imgProps?.height\" />\n </div>\n }\n @else{\n {{attr}}\n }\n }\n </td>\n }\n </tr>\n </ng-template>\n </p-table>\n </div>\n}\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: TableModule }, { kind: "component", type: i1$1.Table, selector: "p-table", inputs: ["frozenColumns", "frozenValue", "styleClass", "tableStyle", "tableStyleClass", "paginator", "pageLinks", "rowsPerPageOptions", "alwaysShowPaginator", "paginatorPosition", "paginatorStyleClass", "paginatorDropdownAppendTo", "paginatorDropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showJumpToPageInput", "showFirstLastIcon", "showPageLinks", "defaultSortOrder", "sortMode", "resetPageOnSort", "selectionMode", "selectionPageOnly", "contextMenuSelection", "contextMenuSelectionMode", "dataKey", "metaKeySelection", "rowSelectable", "rowTrackBy", "lazy", "lazyLoadOnInit", "compareSelectionBy", "csvSeparator", "exportFilename", "filters", "globalFilterFields", "filterDelay", "filterLocale", "expandedRowKeys", "editingRowKeys", "rowExpandMode", "scrollable", "rowGroupMode", "scrollHeight", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "virtualScrollDelay", "frozenWidth", "contextMenu", "resizableColumns", "columnResizeMode", "reorderableColumns", "loading", "loadingIcon", "showLoader", "rowHover", "customSort", "showInitialSortBadge", "exportFunction", "exportHeader", "stateKey", "stateStorage", "editMode", "groupRowsBy", "size", "showGridlines", "stripedRows", "groupRowsByOrder", "responsiveLayout", "breakpoint", "paginatorLocale", "value", "columns", "first", "rows", "totalRecords", "sortField", "sortOrder", "multiSortMeta", "selection", "selectAll"], outputs: ["contextMenuSelectionChange", "selectAllChange", "selectionChange", "onRowSelect", "onRowUnselect", "onPage", "onSort", "onFilter", "onLazyLoad", "onRowExpand", "onRowCollapse", "onContextMenuSelect", "onColResize", "onColReorder", "onRowReorder", "onEditInit", "onEditComplete", "onEditCancel", "onHeaderCheckboxToggle", "sortFunction", "firstChange", "rowsChange", "onStateSave", "onStateRestore"] }, { kind: "directive", type: i1$1.SortableColumn, selector: "[pSortableColumn]", inputs: ["pSortableColumn", "pSortableColumnDisabled"] }, { kind: "component", type: i1$1.SortIcon, selector: "p-sortIcon", inputs: ["field"] }, { kind: "component", type: i1$1.ColumnFilter, selector: "p-columnFilter, p-column-filter, p-columnfilter", inputs: ["field", "type", "display", "showMenu", "matchMode", "operator", "showOperator", "showClearButton", "showApplyButton", "showMatchModes", "showAddButton", "hideOnClear", "placeholder", "matchModeOptions", "maxConstraints", "minFractionDigits", "maxFractionDigits", "prefix", "suffix", "locale", "localeMatcher", "currency", "currencyDisplay", "filterOn", "useGrouping", "showButtons", "ariaLabel", "filterButtonProps", "motionOptions"], outputs: ["onShow", "onHide"] }, { kind: "ngmodule", type: ButtonModule }, { kind: "ngmodule", type: MultiSelectModule }, { kind: "component", type: i2.MultiSelect, selector: "p-multiSelect, p-multiselect, p-multi-select", inputs: ["id", "ariaLabel", "styleClass", "panelStyle", "panelStyleClass", "inputId", "readonly", "group", "filter", "filterPlaceHolder", "filterLocale", "overlayVisible", "tabindex", "dataKey", "ariaLabelledBy", "displaySelectedLabel", "maxSelectedLabels", "selectionLimit", "selectedItemsLabel", "showToggleAll", "emptyFilterMessage", "emptyMessage", "resetFilterOnHide", "dropdownIcon", "chipIcon", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "showHeader", "filterBy", "scrollHeight", "lazy", "virtualScroll", "loading", "virtualScrollItemSize", "loadingIcon", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "autofocusFilter", "display", "autocomplete", "showClear", "autofocus", "placeholder", "options", "filterValue", "selectAll", "focusOnHover", "filterFields", "selectOnFocus", "autoOptionFocus", "highlightOnSelect", "size", "variant", "fluid", "appendTo", "motionOptions"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onClear", "onPanelShow", "onPanelHide", "onLazyLoad", "onRemove", "onSelectAllChange"] }, { kind: "ngmodule", type: InputTextModule }, { kind: "ngmodule", type: SelectModule }, { kind: "ngmodule", type: InputIconModule }, { kind: "ngmodule", type: IconFieldModule }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: TagModule }, { kind: "component", type: i3.Tag, selector: "p-tag", inputs: ["styleClass", "severity", "value", "icon", "rounded"] }, { kind: "ngmodule", type: ProgressBarModule }, { kind: "ngmodule", type: ToastModule }, { kind: "pipe", type: i4.CurrencyPipe, name: "currency" }, { kind: "pipe", type: i4.DatePipe, name: "date" }], encapsulation: i0.ViewEncapsulation.None });
|
|
5536
5536
|
}
|
|
5537
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5537
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: InfTable, decorators: [{
|
|
5538
5538
|
type: Component,
|
|
5539
5539
|
args: [{ selector: 'inf-table', imports: [CommonModule, TableModule, ButtonModule,
|
|
5540
5540
|
MultiSelectModule, InputTextModule, SelectModule,
|