cps-ui-kit 0.140.0 → 0.141.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/esm2020/lib/components/cps-autocomplete/cps-autocomplete.component.mjs +137 -4
- package/esm2020/lib/components/cps-button/cps-button.component.mjs +55 -2
- package/esm2020/lib/components/cps-button-toggle/cps-button-toggle.component.mjs +63 -2
- package/esm2020/lib/components/cps-checkbox/cps-checkbox.component.mjs +50 -1
- package/esm2020/lib/components/cps-chip/cps-chip.component.mjs +34 -1
- package/esm2020/lib/components/cps-datepicker/cps-datepicker.component.mjs +78 -1
- package/esm2020/lib/components/cps-expansion-panel/cps-expansion-panel.component.mjs +51 -1
- package/esm2020/lib/components/cps-icon/cps-icon.component.mjs +17 -1
- package/esm2020/lib/components/cps-info-circle/cps-info-circle.component.mjs +29 -1
- package/esm2020/lib/components/cps-input/cps-input.component.mjs +131 -1
- package/esm2020/lib/components/cps-loader/cps-loader.component.mjs +21 -1
- package/esm2020/lib/components/cps-menu/cps-menu.component.mjs +58 -2
- package/esm2020/lib/components/cps-paginator/cps-paginator.component.mjs +38 -1
- package/esm2020/lib/components/cps-paginator/pipes/cps-paginate.pipe.mjs +5 -1
- package/esm2020/lib/components/cps-progress-circular/cps-progress-circular.component.mjs +17 -1
- package/esm2020/lib/components/cps-progress-linear/cps-progress-linear.component.mjs +29 -1
- package/esm2020/lib/components/cps-radio-group/cps-radio/cps-radio.component.mjs +5 -1
- package/esm2020/lib/components/cps-radio-group/cps-radio-button/cps-radio-button.component.mjs +18 -1
- package/esm2020/lib/components/cps-radio-group/cps-radio-group.component.mjs +50 -1
- package/esm2020/lib/components/cps-select/cps-select.component.mjs +137 -4
- package/esm2020/lib/components/cps-sidebar-menu/cps-sidebar-menu.component.mjs +21 -1
- package/esm2020/lib/components/cps-tab-group/cps-tab/cps-tab.component.mjs +41 -1
- package/esm2020/lib/components/cps-tab-group/cps-tab-group.component.mjs +32 -2
- package/esm2020/lib/components/cps-table/components/internal/table-column-filter/table-column-filter.component.mjs +67 -3
- package/esm2020/lib/components/cps-table/components/internal/table-column-filter-constraint/table-column-filter-constraint.component.mjs +31 -3
- package/esm2020/lib/components/cps-table/components/internal/table-row-menu/table-row-menu.component.mjs +51 -0
- package/esm2020/lib/components/cps-table/cps-table.component.mjs +312 -8
- package/esm2020/lib/components/cps-table/directives/cps-table-column-filter.directive.mjs +67 -3
- package/esm2020/lib/components/cps-table/directives/cps-table-column-sortable.directive.mjs +9 -1
- package/esm2020/lib/components/cps-table/directives/cps-table-header-selectable.directive.mjs +5 -1
- package/esm2020/lib/components/cps-table/directives/cps-table-row-selectable.directive.mjs +5 -1
- package/esm2020/lib/components/cps-tag/cps-tag.component.mjs +35 -2
- package/esm2020/lib/components/cps-textarea/cps-textarea.component.mjs +101 -1
- package/esm2020/lib/components/cps-tree-autocomplete/cps-tree-autocomplete.component.mjs +17 -1
- package/esm2020/lib/components/cps-tree-select/cps-tree-select.component.mjs +13 -1
- package/esm2020/lib/components/cps-tree-table/cps-tree-table.component.mjs +314 -7
- package/esm2020/lib/components/cps-tree-table/directives/cps-tree-table-column-filter.directive.mjs +63 -3
- package/esm2020/lib/components/cps-tree-table/directives/cps-tree-table-column-sortable.directive.mjs +9 -1
- package/esm2020/lib/components/cps-tree-table/directives/cps-tree-table-header-selectable.directive.mjs +5 -1
- package/esm2020/lib/components/cps-tree-table/directives/cps-tree-table-row-selectable.directive.mjs +5 -1
- package/esm2020/lib/components/cps-tree-table/directives/cps-tree-table-row-toggler.directive.mjs +5 -1
- package/esm2020/lib/components/internal/cps-base-tree-dropdown/cps-base-tree-dropdown.component.mjs +118 -1
- package/esm2020/lib/directives/cps-tooltip.directive.mjs +37 -1
- package/esm2020/lib/services/cps-dialog/cps-dialog.service.mjs +2 -2
- package/fesm2015/cps-ui-kit.mjs +2312 -37
- package/fesm2015/cps-ui-kit.mjs.map +1 -1
- package/fesm2020/cps-ui-kit.mjs +2312 -37
- package/fesm2020/cps-ui-kit.mjs.map +1 -1
- package/lib/components/cps-autocomplete/cps-autocomplete.component.d.ts +133 -0
- package/lib/components/cps-button/cps-button.component.d.ts +53 -0
- package/lib/components/cps-button-toggle/cps-button-toggle.component.d.ts +61 -0
- package/lib/components/cps-checkbox/cps-checkbox.component.d.ts +49 -0
- package/lib/components/cps-chip/cps-chip.component.d.ts +33 -0
- package/lib/components/cps-datepicker/cps-datepicker.component.d.ts +85 -0
- package/lib/components/cps-expansion-panel/cps-expansion-panel.component.d.ts +50 -0
- package/lib/components/cps-icon/cps-icon.component.d.ts +16 -0
- package/lib/components/cps-info-circle/cps-info-circle.component.d.ts +28 -0
- package/lib/components/cps-input/cps-input.component.d.ts +130 -0
- package/lib/components/cps-loader/cps-loader.component.d.ts +20 -0
- package/lib/components/cps-menu/cps-menu.component.d.ts +56 -0
- package/lib/components/cps-paginator/cps-paginator.component.d.ts +37 -0
- package/lib/components/cps-paginator/pipes/cps-paginate.pipe.d.ts +4 -0
- package/lib/components/cps-progress-circular/cps-progress-circular.component.d.ts +16 -0
- package/lib/components/cps-progress-linear/cps-progress-linear.component.d.ts +28 -0
- package/lib/components/cps-radio-group/cps-radio/cps-radio.component.d.ts +8 -0
- package/lib/components/cps-radio-group/cps-radio-button/cps-radio-button.component.d.ts +21 -0
- package/lib/components/cps-radio-group/cps-radio-group.component.d.ts +49 -0
- package/lib/components/cps-select/cps-select.component.d.ts +133 -0
- package/lib/components/cps-sidebar-menu/cps-sidebar-menu.component.d.ts +21 -1
- package/lib/components/cps-tab-group/cps-tab/cps-tab.component.d.ts +40 -0
- package/lib/components/cps-tab-group/cps-tab-group.component.d.ts +30 -0
- package/lib/components/cps-table/components/internal/table-column-filter/table-column-filter.component.d.ts +68 -0
- package/lib/components/cps-table/components/internal/table-column-filter-constraint/table-column-filter-constraint.component.d.ts +36 -0
- package/lib/components/cps-table/{table-row-menu → components/internal/table-row-menu}/table-row-menu.component.d.ts +15 -1
- package/lib/components/cps-table/cps-table.component.d.ts +304 -0
- package/lib/components/cps-table/directives/cps-table-column-filter.directive.d.ts +68 -0
- package/lib/components/cps-table/directives/cps-table-column-sortable.directive.d.ts +8 -0
- package/lib/components/cps-table/directives/cps-table-header-selectable.directive.d.ts +4 -0
- package/lib/components/cps-table/directives/cps-table-row-selectable.directive.d.ts +8 -0
- package/lib/components/cps-tag/cps-tag.component.d.ts +33 -0
- package/lib/components/cps-textarea/cps-textarea.component.d.ts +100 -0
- package/lib/components/cps-tree-autocomplete/cps-tree-autocomplete.component.d.ts +16 -0
- package/lib/components/cps-tree-select/cps-tree-select.component.d.ts +12 -0
- package/lib/components/cps-tree-table/cps-tree-table.component.d.ts +307 -0
- package/lib/components/cps-tree-table/directives/cps-tree-table-column-filter.directive.d.ts +64 -0
- package/lib/components/cps-tree-table/directives/cps-tree-table-column-sortable.directive.d.ts +8 -0
- package/lib/components/cps-tree-table/directives/cps-tree-table-header-selectable.directive.d.ts +4 -0
- package/lib/components/cps-tree-table/directives/cps-tree-table-row-selectable.directive.d.ts +8 -0
- package/lib/components/cps-tree-table/directives/cps-tree-table-row-toggler.directive.d.ts +8 -0
- package/lib/components/internal/cps-base-tree-dropdown/cps-base-tree-dropdown.component.d.ts +117 -0
- package/lib/directives/cps-tooltip.directive.d.ts +40 -0
- package/lib/services/cps-dialog/cps-dialog.service.d.ts +1 -1
- package/package.json +1 -1
- package/esm2020/lib/components/cps-table/table-row-menu/table-row-menu.component.mjs +0 -37
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Component, EventEmitter, Output } from '@angular/core';
|
|
2
|
+
import { CpsIconComponent } from '../../../../cps-icon/cps-icon.component';
|
|
3
|
+
import { CpsMenuComponent } from '../../../../cps-menu/cps-menu.component';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* TableRowMenuComponent is an internal component which applies the menu to each row.
|
|
7
|
+
* @group Components
|
|
8
|
+
*/
|
|
9
|
+
export class TableRowMenuComponent {
|
|
10
|
+
constructor() {
|
|
11
|
+
/**
|
|
12
|
+
* Callback to invoke when edit-row button is clicked.
|
|
13
|
+
* @param {any} any - button clicked.
|
|
14
|
+
* @group Emits
|
|
15
|
+
*/
|
|
16
|
+
this.editRowBtnClicked = new EventEmitter();
|
|
17
|
+
/**
|
|
18
|
+
* Callback to invoke when remove-row button is clicked.
|
|
19
|
+
* @param {any} any - button clicked.
|
|
20
|
+
* @group Emits
|
|
21
|
+
*/
|
|
22
|
+
this.removeRowBtnClicked = new EventEmitter();
|
|
23
|
+
this.items = [
|
|
24
|
+
{
|
|
25
|
+
title: 'Edit',
|
|
26
|
+
icon: 'edit',
|
|
27
|
+
action: (event) => {
|
|
28
|
+
this.editRowBtnClicked.emit(event);
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
title: 'Remove',
|
|
33
|
+
icon: 'remove',
|
|
34
|
+
action: (event) => {
|
|
35
|
+
this.removeRowBtnClicked.emit(event);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
];
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
TableRowMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableRowMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
42
|
+
TableRowMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: TableRowMenuComponent, isStandalone: true, selector: "table-row-menu", outputs: { editRowBtnClicked: "editRowBtnClicked", removeRowBtnClicked: "removeRowBtnClicked" }, ngImport: i0, template: "<cps-menu #rowMenu [items]=\"items\" [compressed]=\"true\" [withArrow]=\"false\">\n</cps-menu>\n<cps-icon\n icon=\"dropdown-menu\"\n size=\"22\"\n (click)=\"rowMenu.toggle($event)\"\n class=\"cps-table-row-menu-icon\">\n</cps-icon>\n", styles: [":host{height:22px;display:block}:host .cps-table-row-menu-icon{cursor:pointer}:host .cps-table-row-menu-icon:hover{color:var(--cps-color-calm)}\n"], dependencies: [{ kind: "component", type: CpsIconComponent, selector: "cps-icon", inputs: ["icon", "size", "color"] }, { kind: "component", type: CpsMenuComponent, selector: "cps-menu", inputs: ["header", "items", "withArrow", "compressed", "focusOnShow", "persistent", "containerClass", "showTransitionOptions", "hideTransitionOptions"], outputs: ["menuShown", "menuHidden", "beforeMenuHidden", "contentClicked"] }] });
|
|
43
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableRowMenuComponent, decorators: [{
|
|
44
|
+
type: Component,
|
|
45
|
+
args: [{ selector: 'table-row-menu', standalone: true, imports: [CpsIconComponent, CpsMenuComponent], template: "<cps-menu #rowMenu [items]=\"items\" [compressed]=\"true\" [withArrow]=\"false\">\n</cps-menu>\n<cps-icon\n icon=\"dropdown-menu\"\n size=\"22\"\n (click)=\"rowMenu.toggle($event)\"\n class=\"cps-table-row-menu-icon\">\n</cps-icon>\n", styles: [":host{height:22px;display:block}:host .cps-table-row-menu-icon{cursor:pointer}:host .cps-table-row-menu-icon:hover{color:var(--cps-color-calm)}\n"] }]
|
|
46
|
+
}], propDecorators: { editRowBtnClicked: [{
|
|
47
|
+
type: Output
|
|
48
|
+
}], removeRowBtnClicked: [{
|
|
49
|
+
type: Output
|
|
50
|
+
}] } });
|
|
51
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFibGUtcm93LW1lbnUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY3BzLXVpLWtpdC9zcmMvbGliL2NvbXBvbmVudHMvY3BzLXRhYmxlL2NvbXBvbmVudHMvaW50ZXJuYWwvdGFibGUtcm93LW1lbnUvdGFibGUtcm93LW1lbnUuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJ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