aril 0.0.3 → 0.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.
- package/README.md +10 -1
- package/esm2022/ui/badge/src/badge.component.mjs +8 -8
- package/esm2022/ui/button/src/button.component.mjs +3 -4
- package/esm2022/ui/button/src/split-button.component.mjs +9 -8
- package/esm2022/ui/calendar/src/calendar.component.mjs +55 -33
- package/esm2022/ui/checkbox/index.mjs +2 -1
- package/esm2022/ui/checkbox/src/check-box.component.mjs +7 -9
- package/esm2022/ui/checkbox/src/tri-state-checkbox.component.mjs +24 -0
- package/esm2022/ui/confirmPopup/src/confirm-popup.component.mjs +8 -20
- package/esm2022/ui/dxField/src/dx-field.component.mjs +4 -1
- package/esm2022/ui/field/src/field.component.mjs +1 -1
- package/esm2022/ui/fileUpload/src/file-upload.component.mjs +9 -6
- package/esm2022/ui/form/index.mjs +2 -1
- package/esm2022/ui/form/src/form-submit-button.component.mjs +6 -3
- package/esm2022/ui/form/src/form.component.mjs +4 -1
- package/esm2022/ui/lib/src/form/form-error-message.component.mjs +5 -1
- package/esm2022/ui/lib/src/form/form-error-message.directive.mjs +4 -1
- package/esm2022/ui/lib/src/form/form-field-builder.mjs +2 -2
- package/esm2022/ui/lib/src/form/form-validation.mjs +1 -1
- package/esm2022/ui/lib/src/input/input-disabled.directive.mjs +5 -1
- package/esm2022/ui/mask/src/mask.component.mjs +11 -20
- package/esm2022/ui/number/src/number.component.mjs +7 -8
- package/esm2022/ui/overlayPanel/src/overlay-panel.component.mjs +10 -24
- package/esm2022/ui/panel/src/panel.component.mjs +7 -12
- package/esm2022/ui/password/src/password.component.mjs +8 -3
- package/esm2022/ui/radioButton/src/radio-button.component.mjs +5 -3
- package/esm2022/ui/selectBox/src/select-box.component.mjs +5 -3
- package/esm2022/ui/switch/src/switch.component.mjs +10 -5
- package/esm2022/ui/table/aril-ui-table.mjs +5 -0
- package/esm2022/ui/table/index.mjs +4 -0
- package/esm2022/ui/table/src/i18n.mjs +93 -0
- package/esm2022/ui/table/src/table-column.component.mjs +35 -0
- package/esm2022/ui/table/src/table.component.mjs +78 -0
- package/esm2022/ui/tagBox/src/tag-box.component.mjs +8 -3
- package/esm2022/ui/text/src/text.component.mjs +26 -9
- package/esm2022/ui/textArea/src/text-area.component.mjs +7 -4
- package/esm2022/ui/tree/src/tree.component.mjs +4 -13
- package/esm2022/ui/treeTable/src/tree-table.component.mjs +18 -11
- package/esm2022/ui/value/aril-ui-value.mjs +5 -0
- package/esm2022/ui/value/index.mjs +2 -0
- package/esm2022/ui/value/src/value.component.mjs +51 -0
- package/esm2022/util/lib/src/types.mjs +2 -1
- package/esm2022/util/primitive-extensions/src/string.extensions.mjs +7 -1
- package/fesm2022/aril-ui-badge.mjs +7 -7
- package/fesm2022/aril-ui-badge.mjs.map +1 -1
- package/fesm2022/aril-ui-button.mjs +10 -10
- package/fesm2022/aril-ui-button.mjs.map +1 -1
- package/fesm2022/aril-ui-calendar.mjs +54 -31
- package/fesm2022/aril-ui-calendar.mjs.map +1 -1
- package/fesm2022/aril-ui-checkbox.mjs +23 -9
- package/fesm2022/aril-ui-checkbox.mjs.map +1 -1
- package/fesm2022/aril-ui-confirmPopup.mjs +7 -19
- package/fesm2022/aril-ui-confirmPopup.mjs.map +1 -1
- package/fesm2022/aril-ui-dxField.mjs +3 -0
- package/fesm2022/aril-ui-dxField.mjs.map +1 -1
- package/fesm2022/aril-ui-field.mjs.map +1 -1
- package/fesm2022/aril-ui-fileUpload.mjs +8 -5
- package/fesm2022/aril-ui-fileUpload.mjs.map +1 -1
- package/fesm2022/aril-ui-form.mjs +10 -2
- package/fesm2022/aril-ui-form.mjs.map +1 -1
- package/fesm2022/aril-ui-lib.mjs +12 -1
- package/fesm2022/aril-ui-lib.mjs.map +1 -1
- package/fesm2022/aril-ui-mask.mjs +10 -19
- package/fesm2022/aril-ui-mask.mjs.map +1 -1
- package/fesm2022/aril-ui-number.mjs +6 -7
- package/fesm2022/aril-ui-number.mjs.map +1 -1
- package/fesm2022/aril-ui-overlayPanel.mjs +9 -23
- package/fesm2022/aril-ui-overlayPanel.mjs.map +1 -1
- package/fesm2022/aril-ui-panel.mjs +6 -11
- package/fesm2022/aril-ui-panel.mjs.map +1 -1
- package/fesm2022/aril-ui-password.mjs +7 -2
- package/fesm2022/aril-ui-password.mjs.map +1 -1
- package/fesm2022/aril-ui-radioButton.mjs +4 -2
- package/fesm2022/aril-ui-radioButton.mjs.map +1 -1
- package/fesm2022/aril-ui-selectBox.mjs +4 -2
- package/fesm2022/aril-ui-selectBox.mjs.map +1 -1
- package/fesm2022/aril-ui-switch.mjs +9 -4
- package/fesm2022/aril-ui-switch.mjs.map +1 -1
- package/fesm2022/aril-ui-table.mjs +211 -0
- package/fesm2022/aril-ui-table.mjs.map +1 -0
- package/fesm2022/aril-ui-tagBox.mjs +7 -2
- package/fesm2022/aril-ui-tagBox.mjs.map +1 -1
- package/fesm2022/aril-ui-text.mjs +25 -8
- package/fesm2022/aril-ui-text.mjs.map +1 -1
- package/fesm2022/aril-ui-textArea.mjs +6 -3
- package/fesm2022/aril-ui-textArea.mjs.map +1 -1
- package/fesm2022/aril-ui-tree.mjs +3 -12
- package/fesm2022/aril-ui-tree.mjs.map +1 -1
- package/fesm2022/aril-ui-treeTable.mjs +17 -10
- package/fesm2022/aril-ui-treeTable.mjs.map +1 -1
- package/fesm2022/aril-ui-value.mjs +58 -0
- package/fesm2022/aril-ui-value.mjs.map +1 -0
- package/fesm2022/aril-util-lib.mjs +1 -0
- package/fesm2022/aril-util-lib.mjs.map +1 -1
- package/fesm2022/aril-util-primitive-extensions.mjs +6 -0
- package/fesm2022/aril-util-primitive-extensions.mjs.map +1 -1
- package/package.json +22 -13
- package/theme/fonts/poppins-v20-latin-500.woff +0 -0
- package/theme/fonts/poppins-v20-latin-500.woff2 +0 -0
- package/theme/fonts/poppins-v20-latin-600.woff +0 -0
- package/theme/fonts/poppins-v20-latin-600.woff2 +0 -0
- package/theme/fonts/poppins-v20-latin-700.woff +0 -0
- package/theme/fonts/poppins-v20-latin-700.woff2 +0 -0
- package/theme/fonts/poppins-v20-latin-regular.woff +0 -0
- package/theme/fonts/poppins-v20-latin-regular.woff2 +0 -0
- package/theme/images/avatar.png +0 -0
- package/theme/styles/layout/_animation.scss +53 -0
- package/theme/styles/layout/_breadcrumb.scss +21 -0
- package/theme/styles/layout/_config.scss +42 -0
- package/theme/styles/layout/_content.scss +3 -0
- package/theme/styles/layout/_fonts.scss +36 -0
- package/theme/styles/layout/_layout_dark.scss +5 -0
- package/theme/styles/layout/_layout_dim.scss +5 -0
- package/theme/styles/layout/_layout_light.scss +5 -0
- package/theme/styles/layout/_main.scss +28 -0
- package/theme/styles/layout/_profile.scss +10 -0
- package/theme/styles/layout/_responsive.scss +113 -0
- package/theme/styles/layout/_sidebar_drawer.scss +236 -0
- package/theme/styles/layout/_sidebar_horizontal.scss +163 -0
- package/theme/styles/layout/_sidebar_reveal.scss +203 -0
- package/theme/styles/layout/_sidebar_slim.scss +145 -0
- package/theme/styles/layout/_sidebar_slim_plus.scss +163 -0
- package/theme/styles/layout/_sidebar_vertical.scss +153 -0
- package/theme/styles/layout/_topbar.scss +78 -0
- package/theme/styles/layout/_typography.scss +63 -0
- package/theme/styles/layout/_utils.scss +24 -0
- package/theme/styles/layout/layout.scss +24 -0
- package/theme/styles/layout/menutheme/_colorscheme.scss +11 -0
- package/theme/styles/layout/menutheme/_menutheme.scss +3 -0
- package/theme/styles/layout/menutheme/_primarycolor.scss +16 -0
- package/theme/styles/layout/menutheme/_transparent.scss +26 -0
- package/theme/styles/layout/preloading.scss +84 -0
- package/theme/styles/theme/base/_colors.scss +18 -0
- package/theme/styles/theme/base/_common.scss +75 -0
- package/theme/styles/theme/base/_components.scss +106 -0
- package/theme/styles/theme/base/_mixins.scss +337 -0
- package/theme/styles/theme/base/components/button/_button.scss +576 -0
- package/theme/styles/theme/base/components/button/_speeddial.scss +96 -0
- package/theme/styles/theme/base/components/button/_splitbutton.scss +354 -0
- package/theme/styles/theme/base/components/data/_carousel.scss +37 -0
- package/theme/styles/theme/base/components/data/_datatable.scss +338 -0
- package/theme/styles/theme/base/components/data/_dataview.scss +46 -0
- package/theme/styles/theme/base/components/data/_filter.scss +138 -0
- package/theme/styles/theme/base/components/data/_orderlist.scss +114 -0
- package/theme/styles/theme/base/components/data/_organizationchart.scss +50 -0
- package/theme/styles/theme/base/components/data/_paginator.scss +92 -0
- package/theme/styles/theme/base/components/data/_picklist.scss +114 -0
- package/theme/styles/theme/base/components/data/_timeline.scss +38 -0
- package/theme/styles/theme/base/components/data/_tree.scss +150 -0
- package/theme/styles/theme/base/components/data/_treetable.scss +256 -0
- package/theme/styles/theme/base/components/data/_virtualscroller.scss +28 -0
- package/theme/styles/theme/base/components/file/_fileupload.scss +64 -0
- package/theme/styles/theme/base/components/input/_autocomplete.scss +136 -0
- package/theme/styles/theme/base/components/input/_calendar.scss +267 -0
- package/theme/styles/theme/base/components/input/_cascadeselect.scss +136 -0
- package/theme/styles/theme/base/components/input/_checkbox.scss +94 -0
- package/theme/styles/theme/base/components/input/_chips.scss +65 -0
- package/theme/styles/theme/base/components/input/_colorpicker.scss +19 -0
- package/theme/styles/theme/base/components/input/_dropdown.scss +151 -0
- package/theme/styles/theme/base/components/input/_editor.scss +122 -0
- package/theme/styles/theme/base/components/input/_inputgroup.scss +75 -0
- package/theme/styles/theme/base/components/input/_inputmask.scss +16 -0
- package/theme/styles/theme/base/components/input/_inputnumber.scss +28 -0
- package/theme/styles/theme/base/components/input/_inputswitch.scss +60 -0
- package/theme/styles/theme/base/components/input/_inputtext.scss +100 -0
- package/theme/styles/theme/base/components/input/_listbox.scss +97 -0
- package/theme/styles/theme/base/components/input/_multiselect.scss +179 -0
- package/theme/styles/theme/base/components/input/_password.scss +52 -0
- package/theme/styles/theme/base/components/input/_radiobutton.scss +78 -0
- package/theme/styles/theme/base/components/input/_rating.scss +60 -0
- package/theme/styles/theme/base/components/input/_selectbutton.scss +50 -0
- package/theme/styles/theme/base/components/input/_slider.scss +71 -0
- package/theme/styles/theme/base/components/input/_togglebutton.scss +48 -0
- package/theme/styles/theme/base/components/input/_treeselect.scss +139 -0
- package/theme/styles/theme/base/components/menu/_breadcrumb.scss +42 -0
- package/theme/styles/theme/base/components/menu/_contextmenu.scss +39 -0
- package/theme/styles/theme/base/components/menu/_dock.scss +95 -0
- package/theme/styles/theme/base/components/menu/_megamenu.scss +55 -0
- package/theme/styles/theme/base/components/menu/_menu.scss +37 -0
- package/theme/styles/theme/base/components/menu/_menubar.scss +141 -0
- package/theme/styles/theme/base/components/menu/_panelmenu.scss +153 -0
- package/theme/styles/theme/base/components/menu/_slidemenu.scss +59 -0
- package/theme/styles/theme/base/components/menu/_steps.scss +56 -0
- package/theme/styles/theme/base/components/menu/_tabmenu.scss +74 -0
- package/theme/styles/theme/base/components/menu/_tieredmenu.scss +43 -0
- package/theme/styles/theme/base/components/messages/_inlinemessage.scss +69 -0
- package/theme/styles/theme/base/components/messages/_message.scss +107 -0
- package/theme/styles/theme/base/components/messages/_toast.scss +100 -0
- package/theme/styles/theme/base/components/misc/_avatar.scss +30 -0
- package/theme/styles/theme/base/components/misc/_badge.scss +48 -0
- package/theme/styles/theme/base/components/misc/_blockui.scss +0 -0
- package/theme/styles/theme/base/components/misc/_chip.scss +42 -0
- package/theme/styles/theme/base/components/misc/_inplace.scss +17 -0
- package/theme/styles/theme/base/components/misc/_progressbar.scss +17 -0
- package/theme/styles/theme/base/components/misc/_scrolltop.scss +25 -0
- package/theme/styles/theme/base/components/misc/_skeleton.scss +8 -0
- package/theme/styles/theme/base/components/misc/_tag.scss +40 -0
- package/theme/styles/theme/base/components/misc/_terminal.scss +12 -0
- package/theme/styles/theme/base/components/multimedia/_galleria.scss +155 -0
- package/theme/styles/theme/base/components/multimedia/_image.scss +49 -0
- package/theme/styles/theme/base/components/overlay/_confirmpopup.scss +72 -0
- package/theme/styles/theme/base/components/overlay/_dialog.scss +69 -0
- package/theme/styles/theme/base/components/overlay/_overlaypanel.scss +64 -0
- package/theme/styles/theme/base/components/overlay/_sidebar.scss +27 -0
- package/theme/styles/theme/base/components/overlay/_tooltip.scss +33 -0
- package/theme/styles/theme/base/components/panel/_accordion.scss +119 -0
- package/theme/styles/theme/base/components/panel/_card.scss +30 -0
- package/theme/styles/theme/base/components/panel/_divider.scss +31 -0
- package/theme/styles/theme/base/components/panel/_fieldset.scss +47 -0
- package/theme/styles/theme/base/components/panel/_panel.scss +63 -0
- package/theme/styles/theme/base/components/panel/_scrollpanel.scss +6 -0
- package/theme/styles/theme/base/components/panel/_splitter.scss +19 -0
- package/theme/styles/theme/base/components/panel/_tabview.scss +82 -0
- package/theme/styles/theme/base/components/panel/_toolbar.scss +11 -0
- package/theme/styles/theme/dark/_extensions.scss +120 -0
- package/theme/styles/theme/dark/_variables.scss +896 -0
- package/theme/styles/theme/dark/blue/theme.scss +14 -0
- package/theme/styles/theme/dark/indigo/theme.scss +14 -0
- package/theme/styles/theme/light/_extensions.scss +102 -0
- package/theme/styles/theme/light/_variables.scss +898 -0
- package/theme/styles/theme/light/blue/theme.scss +13 -0
- package/theme/styles/theme/light/indigo/theme.scss +14 -0
- package/ui/badge/src/badge.component.d.ts +4 -4
- package/ui/button/src/button.component.d.ts +7 -5
- package/ui/button/src/split-button.component.d.ts +2 -2
- package/ui/calendar/src/calendar.component.d.ts +13 -9
- package/ui/checkbox/index.d.ts +1 -0
- package/ui/checkbox/src/check-box.component.d.ts +3 -2
- package/ui/checkbox/src/tri-state-checkbox.component.d.ts +9 -0
- package/ui/confirmPopup/src/confirm-popup.component.d.ts +1 -7
- package/ui/field/src/field.component.d.ts +3 -2
- package/ui/fileUpload/src/file-upload.component.d.ts +3 -1
- package/ui/form/src/form-submit-button.component.d.ts +1 -1
- package/ui/lib/src/form/form-field-builder.d.ts +1 -0
- package/ui/mask/src/mask.component.d.ts +7 -7
- package/ui/number/src/number.component.d.ts +5 -4
- package/ui/overlayPanel/src/overlay-panel.component.d.ts +3 -10
- package/ui/panel/src/panel.component.d.ts +3 -4
- package/ui/password/src/password.component.d.ts +2 -1
- package/ui/radioButton/src/radio-button.component.d.ts +2 -1
- package/ui/selectBox/src/select-box.component.d.ts +4 -2
- package/ui/switch/src/switch.component.d.ts +2 -1
- package/ui/table/index.d.ts +2 -0
- package/ui/table/src/i18n.d.ts +42 -0
- package/ui/table/src/table-column.component.d.ts +22 -0
- package/ui/table/src/table.component.d.ts +30 -0
- package/ui/tagBox/src/tag-box.component.d.ts +2 -1
- package/ui/text/src/text.component.d.ts +6 -4
- package/ui/textArea/src/text-area.component.d.ts +2 -2
- package/ui/tree/src/tree.component.d.ts +3 -7
- package/ui/treeTable/src/tree-table.component.d.ts +10 -8
- package/ui/value/index.d.ts +1 -0
- package/ui/value/src/value.component.d.ts +15 -0
- package/util/lib/src/types.d.ts +7 -0
- package/util/primitive-extensions/src/string.extensions.d.ts +1 -0
- package/esm2022/ui/dialog/aril-ui-dialog.mjs +0 -5
- package/esm2022/ui/dialog/index.mjs +0 -2
- package/esm2022/ui/dialog/src/dialog.component.mjs +0 -56
- package/fesm2022/aril-ui-dialog.mjs +0 -63
- package/fesm2022/aril-ui-dialog.mjs.map +0 -1
- package/ui/dialog/index.d.ts +0 -1
- package/ui/dialog/src/dialog.component.d.ts +0 -20
- /package/styles/ui/{ui.styles.css → ui.common.scss} +0 -0
|
@@ -6,25 +6,32 @@ import * as i1 from "primeng/treetable";
|
|
|
6
6
|
import * as i2 from "primeng/api";
|
|
7
7
|
export class TreeTableComponent {
|
|
8
8
|
constructor() {
|
|
9
|
-
this.
|
|
9
|
+
this.rows = 10;
|
|
10
|
+
this.rowsPerPageOptions = [10, 20, 50, 100];
|
|
11
|
+
this.scrollable = false;
|
|
12
|
+
this.loading = false;
|
|
13
|
+
this.sortMode = "single";
|
|
14
|
+
this.filterMode = "lenient";
|
|
15
|
+
this.selectionMode = "single";
|
|
16
|
+
this.selectEvent = new EventEmitter();
|
|
10
17
|
}
|
|
11
18
|
getFilterTargetValue(event) {
|
|
12
19
|
const inputElement = event.target;
|
|
13
20
|
return inputElement.value;
|
|
14
21
|
}
|
|
15
|
-
|
|
22
|
+
emitSelectedRows() {
|
|
16
23
|
if (!this.selectedNodes)
|
|
17
24
|
return;
|
|
18
|
-
this.
|
|
25
|
+
this.selectEvent.emit(this.selectedNodes);
|
|
19
26
|
this.selectedNodes = null;
|
|
20
27
|
}
|
|
21
28
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TreeTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
22
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: TreeTableComponent, isStandalone: true, selector: "aril-tree-table", inputs: {
|
|
29
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: TreeTableComponent, isStandalone: true, selector: "aril-tree-table", inputs: { data: "data", columns: "columns", rows: "rows", rowsPerPageOptions: "rowsPerPageOptions", scrollable: "scrollable", scrollHeight: "scrollHeight", loading: "loading", sortMode: "sortMode", filterMode: "filterMode", selectionMode: "selectionMode" }, outputs: { selectEvent: "selectEvent" }, ngImport: i0, template: "@if (data && columns) {\r\n\t<p-treeTable\r\n\t\t#ref\r\n\t\t[value]=\"data\"\r\n\t\t[columns]=\"columns\"\r\n\t\t[rows]=\"rows\"\r\n\t\t[paginator]=\"true\"\r\n\t\t[rowsPerPageOptions]=\"rowsPerPageOptions\"\r\n\t\t[scrollable]=\"scrollable\"\r\n\t\t[scrollHeight]=\"scrollHeight\"\r\n\t\t[sortMode]=\"sortMode\"\r\n\t\t[filterMode]=\"filterMode\"\r\n\t\t[loading]=\"loading\"\r\n\t\t[selectionMode]=\"selectionMode\"\r\n\t\t[(selection)]=\"selectedNodes\"\r\n\t\tstyleClass=\"p-treetable-sm\">\r\n\t\t<ng-template pTemplate=\"caption\">\r\n\t\t\t<div class=\"flex justify-content-between align-items-center\">\r\n\t\t\t\t<div class=\"flex\">\r\n\t\t\t\t\t<p-treeTableHeaderCheckbox></p-treeTableHeaderCheckbox>\r\n\t\t\t\t\t<span class=\"ml-2\">T\u00FCm\u00FCn\u00FC se\u00E7</span>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div class=\"p-input-icon-left\">\r\n\t\t\t\t\t<i class=\"pi pi-search\"></i>\r\n\t\t\t\t\t<input\r\n\t\t\t\t\t\ttype=\"text\"\r\n\t\t\t\t\t\tpInputText\r\n\t\t\t\t\t\tplaceholder=\"Arama\"\r\n\t\t\t\t\t\t(input)=\"\r\n\t\t\t\t\t\t\tref.filterGlobal(getFilterTargetValue($event), 'contains')\r\n\t\t\t\t\t\t\" />\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t</ng-template>\r\n\t\t<ng-template pTemplate=\"header\" let-columns>\r\n\t\t\t<tr>\r\n\t\t\t\t@for (col of columns; track col) {\r\n\t\t\t\t\t<th [ttSortableColumn]=\"col.field\">\r\n\t\t\t\t\t\t<span>{{ col.header }}</span>\r\n\t\t\t\t\t\t<p-treeTableSortIcon [field]=\"col.field\"></p-treeTableSortIcon>\r\n\t\t\t\t\t</th>\r\n\t\t\t\t}\r\n\t\t\t</tr>\r\n\t\t</ng-template>\r\n\t\t<ng-template\r\n\t\t\tpTemplate=\"body\"\r\n\t\t\tlet-rowNode\r\n\t\t\tlet-rowData=\"rowData\"\r\n\t\t\tlet-columns=\"columns\">\r\n\t\t\t<tr [ttRow]=\"rowNode\">\r\n\t\t\t\t@for (col of columns; track col; let first = $first) {\r\n\t\t\t\t\t<td>\r\n\t\t\t\t\t\t@if (first) {\r\n\t\t\t\t\t\t\t<p-treeTableToggler [rowNode]=\"rowNode\"></p-treeTableToggler>\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t@if (first) {\r\n\t\t\t\t\t\t\t<p-treeTableCheckbox [value]=\"rowNode\"></p-treeTableCheckbox>\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t{{ rowData[col.field] }}\r\n\t\t\t\t\t</td>\r\n\t\t\t\t}\r\n\t\t\t</tr>\r\n\t\t</ng-template>\r\n\t\t<ng-template pTemplate=\"summary\">\r\n\t\t\t<div class=\"flex justify-content-end\">\r\n\t\t\t\t<div [attr.role]=\"'none'\" (click)=\"emitSelectedRows()\">\r\n\t\t\t\t\t<ng-content select=\".export-btn\"></ng-content>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t</ng-template>\r\n\t\t<ng-template pTemplate=\"emptymessage\">\r\n\t\t\t<tr>\r\n\t\t\t\t<td [attr.colspan]=\"columns.length\">Veri bulunamad\u0131..</td>\r\n\t\t\t</tr>\r\n\t\t</ng-template>\r\n\t</p-treeTable>\r\n}\r\n", styles: [":host ::ng-deep .p-icon-wrapper{display:inline-block!important}\n"], dependencies: [{ kind: "ngmodule", type: TreeTableModule }, { kind: "component", type: i1.TreeTable, selector: "p-treeTable", inputs: ["columns", "style", "styleClass", "tableStyle", "tableStyleClass", "autoLayout", "lazy", "lazyLoadOnInit", "paginator", "rows", "first", "pageLinks", "rowsPerPageOptions", "alwaysShowPaginator", "paginatorPosition", "paginatorStyleClass", "paginatorDropdownAppendTo", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showFirstLastIcon", "showPageLinks", "defaultSortOrder", "sortMode", "resetPageOnSort", "customSort", "selectionMode", "contextMenuSelection", "contextMenuSelectionMode", "dataKey", "metaKeySelection", "compareSelectionBy", "rowHover", "loading", "loadingIcon", "showLoader", "scrollable", "scrollHeight", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "virtualScrollDelay", "frozenWidth", "frozenColumns", "resizableColumns", "columnResizeMode", "reorderableColumns", "contextMenu", "rowTrackBy", "filters", "globalFilterFields", "filterDelay", "filterMode", "filterLocale", "paginatorLocale", "totalRecords", "sortField", "sortOrder", "multiSortMeta", "selection", "value", "virtualRowHeight"], outputs: ["selectionChange", "contextMenuSelectionChange", "onFilter", "onNodeExpand", "onNodeCollapse", "onPage", "onSort", "onLazyLoad", "sortFunction", "onColResize", "onColReorder", "onNodeSelect", "onNodeUnselect", "onContextMenuSelect", "onHeaderCheckboxToggle", "onEditInit", "onEditComplete", "onEditCancel"] }, { kind: "directive", type: i2.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: i1.TreeTableToggler, selector: "p-treeTableToggler", inputs: ["rowNode"] }, { kind: "directive", type: i1.TTSortableColumn, selector: "[ttSortableColumn]", inputs: ["ttSortableColumn", "ttSortableColumnDisabled"] }, { kind: "component", type: i1.TTSortIcon, selector: "p-treeTableSortIcon", inputs: ["field", "ariaLabelDesc", "ariaLabelAsc"] }, { kind: "directive", type: i1.TTRow, selector: "[ttRow]", inputs: ["ttRow"] }, { kind: "component", type: i1.TTCheckbox, selector: "p-treeTableCheckbox", inputs: ["disabled", "value"] }, { kind: "component", type: i1.TTHeaderCheckbox, selector: "p-treeTableHeaderCheckbox" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
23
30
|
}
|
|
24
31
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TreeTableComponent, decorators: [{
|
|
25
32
|
type: Component,
|
|
26
|
-
args: [{ standalone: true, selector: 'aril-tree-table', imports: [TreeTableModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (
|
|
27
|
-
}], propDecorators: {
|
|
33
|
+
args: [{ standalone: true, selector: 'aril-tree-table', imports: [TreeTableModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (data && columns) {\r\n\t<p-treeTable\r\n\t\t#ref\r\n\t\t[value]=\"data\"\r\n\t\t[columns]=\"columns\"\r\n\t\t[rows]=\"rows\"\r\n\t\t[paginator]=\"true\"\r\n\t\t[rowsPerPageOptions]=\"rowsPerPageOptions\"\r\n\t\t[scrollable]=\"scrollable\"\r\n\t\t[scrollHeight]=\"scrollHeight\"\r\n\t\t[sortMode]=\"sortMode\"\r\n\t\t[filterMode]=\"filterMode\"\r\n\t\t[loading]=\"loading\"\r\n\t\t[selectionMode]=\"selectionMode\"\r\n\t\t[(selection)]=\"selectedNodes\"\r\n\t\tstyleClass=\"p-treetable-sm\">\r\n\t\t<ng-template pTemplate=\"caption\">\r\n\t\t\t<div class=\"flex justify-content-between align-items-center\">\r\n\t\t\t\t<div class=\"flex\">\r\n\t\t\t\t\t<p-treeTableHeaderCheckbox></p-treeTableHeaderCheckbox>\r\n\t\t\t\t\t<span class=\"ml-2\">T\u00FCm\u00FCn\u00FC se\u00E7</span>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div class=\"p-input-icon-left\">\r\n\t\t\t\t\t<i class=\"pi pi-search\"></i>\r\n\t\t\t\t\t<input\r\n\t\t\t\t\t\ttype=\"text\"\r\n\t\t\t\t\t\tpInputText\r\n\t\t\t\t\t\tplaceholder=\"Arama\"\r\n\t\t\t\t\t\t(input)=\"\r\n\t\t\t\t\t\t\tref.filterGlobal(getFilterTargetValue($event), 'contains')\r\n\t\t\t\t\t\t\" />\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t</ng-template>\r\n\t\t<ng-template pTemplate=\"header\" let-columns>\r\n\t\t\t<tr>\r\n\t\t\t\t@for (col of columns; track col) {\r\n\t\t\t\t\t<th [ttSortableColumn]=\"col.field\">\r\n\t\t\t\t\t\t<span>{{ col.header }}</span>\r\n\t\t\t\t\t\t<p-treeTableSortIcon [field]=\"col.field\"></p-treeTableSortIcon>\r\n\t\t\t\t\t</th>\r\n\t\t\t\t}\r\n\t\t\t</tr>\r\n\t\t</ng-template>\r\n\t\t<ng-template\r\n\t\t\tpTemplate=\"body\"\r\n\t\t\tlet-rowNode\r\n\t\t\tlet-rowData=\"rowData\"\r\n\t\t\tlet-columns=\"columns\">\r\n\t\t\t<tr [ttRow]=\"rowNode\">\r\n\t\t\t\t@for (col of columns; track col; let first = $first) {\r\n\t\t\t\t\t<td>\r\n\t\t\t\t\t\t@if (first) {\r\n\t\t\t\t\t\t\t<p-treeTableToggler [rowNode]=\"rowNode\"></p-treeTableToggler>\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t@if (first) {\r\n\t\t\t\t\t\t\t<p-treeTableCheckbox [value]=\"rowNode\"></p-treeTableCheckbox>\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t{{ rowData[col.field] }}\r\n\t\t\t\t\t</td>\r\n\t\t\t\t}\r\n\t\t\t</tr>\r\n\t\t</ng-template>\r\n\t\t<ng-template pTemplate=\"summary\">\r\n\t\t\t<div class=\"flex justify-content-end\">\r\n\t\t\t\t<div [attr.role]=\"'none'\" (click)=\"emitSelectedRows()\">\r\n\t\t\t\t\t<ng-content select=\".export-btn\"></ng-content>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t</ng-template>\r\n\t\t<ng-template pTemplate=\"emptymessage\">\r\n\t\t\t<tr>\r\n\t\t\t\t<td [attr.colspan]=\"columns.length\">Veri bulunamad\u0131..</td>\r\n\t\t\t</tr>\r\n\t\t</ng-template>\r\n\t</p-treeTable>\r\n}\r\n", styles: [":host ::ng-deep .p-icon-wrapper{display:inline-block!important}\n"] }]
|
|
34
|
+
}], propDecorators: { data: [{
|
|
28
35
|
type: Input,
|
|
29
36
|
args: [{ required: true }]
|
|
30
37
|
}], columns: [{
|
|
@@ -32,21 +39,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
|
|
|
32
39
|
args: [{ required: true }]
|
|
33
40
|
}], rows: [{
|
|
34
41
|
type: Input
|
|
35
|
-
}], paginator: [{
|
|
36
|
-
type: Input
|
|
37
42
|
}], rowsPerPageOptions: [{
|
|
38
43
|
type: Input
|
|
39
44
|
}], scrollable: [{
|
|
40
45
|
type: Input
|
|
41
46
|
}], scrollHeight: [{
|
|
42
47
|
type: Input
|
|
48
|
+
}], loading: [{
|
|
49
|
+
type: Input
|
|
43
50
|
}], sortMode: [{
|
|
44
51
|
type: Input
|
|
45
52
|
}], filterMode: [{
|
|
46
53
|
type: Input
|
|
47
|
-
}],
|
|
54
|
+
}], selectionMode: [{
|
|
48
55
|
type: Input
|
|
49
|
-
}],
|
|
56
|
+
}], selectEvent: [{
|
|
50
57
|
type: Output
|
|
51
58
|
}] } });
|
|
52
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
59
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJlZS10YWJsZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hcmlsL3VpL3RyZWVUYWJsZS9zcmMvdHJlZS10YWJsZS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hcmlsL3VpL3RyZWVUYWJsZS9zcmMvdHJlZS10YWJsZS5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSx1REFBdUQ7QUFFdkQsT0FBTyxFQUFFLHVCQUF1QixFQUFFLFNBQVMsRUFBRSxZQUFZLEVBQUUsS0FBSyxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUVoRyxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sbUJBQW1CLENBQUM7Ozs7QUFzQnBELE1BQU0sT0FBTyxrQkFBa0I7SUFaL0I7UUFlVyxTQUFJLEdBQUcsRUFBRSxDQUFDO1FBQ1YsdUJBQWtCLEdBQUcsQ0FBQyxFQUFFLEVBQUUsRUFBRSxFQUFFLEVBQUUsRUFBRSxHQUFHLENBQUMsQ0FBQztRQUN2QyxlQUFVLEdBQUcsS0FBSyxDQUFDO1FBRW5CLFlBQU8sR0FBRyxLQUFLLENBQUM7UUFDaEIsYUFBUSxHQUFhLFFBQVEsQ0FBQztRQUM5QixlQUFVLEdBQWUsU0FBUyxDQUFDO1FBQ25DLGt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IGNsYXNzPVwiZmxleCBqdXN0aWZ5LWNvbnRlbnQtZW5kXCI+XHJcblx0XHRcdFx0PGRpdiBbYXR0ci5yb2xlXT1cIidub25lJ1wiIChjbGljayk9XCJlbWl0U2VsZWN0ZWRSb3dzKClcIj5cclxuXHRcdFx0XHRcdDxuZy1jb250ZW50IHNlbGVjdD1cIi5leHBvcnQtYnRuXCI+PC9uZy1jb250ZW50PlxyXG5cdFx0XHRcdDwvZGl2PlxyXG5cdFx0XHQ8L2Rpdj5cclxuXHRcdDwvbmctdGVtcGxhdGU+XHJcblx0XHQ8bmctdGVtcGxhdGUgcFRlbXBsYXRlPVwiZW1wdHltZXNzYWdlXCI+XHJcblx0XHRcdDx0cj5cclxuXHRcdFx0XHQ8dGQgW2F0dHIuY29sc3Bhbl09XCJjb2x1bW5zLmxlbmd0aFwiPlZlcmkgYnVsdW5hbWFkxLEuLjwvdGQ+XHJcblx0XHRcdDwvdHI+XHJcblx0XHQ8L25nLXRlbXBsYXRlPlxyXG5cdDwvcC10cmVlVGFibGU+XHJcbn1cclxuIl19
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './index';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXJpbC11aS12YWx1ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2FyaWwvdWkvdmFsdWUvYXJpbC11aS12YWx1ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ==
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export * from './src/value.component';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9hcmlsL3VpL3ZhbHVlL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsdUJBQXVCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL3NyYy92YWx1ZS5jb21wb25lbnQnOyJdfQ==
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
|
2
|
+
import "aril/util/primitive-extensions";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export class ValueComponent {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.type = "text";
|
|
7
|
+
this.color = "#333";
|
|
8
|
+
this.display = "";
|
|
9
|
+
}
|
|
10
|
+
ngOnChanges(changes) {
|
|
11
|
+
switch (this.type) {
|
|
12
|
+
case "text":
|
|
13
|
+
this.display = this.model;
|
|
14
|
+
break;
|
|
15
|
+
case "number":
|
|
16
|
+
this.format = this.format || '0.###';
|
|
17
|
+
this.display = format(this.format, this.model);
|
|
18
|
+
break;
|
|
19
|
+
case "decimal":
|
|
20
|
+
this.format = this.format || '#.##0,###';
|
|
21
|
+
this.display = format(this.format, this.model);
|
|
22
|
+
break;
|
|
23
|
+
case "date":
|
|
24
|
+
this.format = this.format || 'time';
|
|
25
|
+
this.display = this.model.longToString(this.format);
|
|
26
|
+
break;
|
|
27
|
+
case "password":
|
|
28
|
+
this.display = this.model.replace(/./g, "*");
|
|
29
|
+
break;
|
|
30
|
+
default:
|
|
31
|
+
console.error("Invalid type: '" + this.type + "'");
|
|
32
|
+
break;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: ValueComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
36
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: ValueComponent, isStandalone: true, selector: "aril-value", inputs: { model: "model", type: "type", format: "format", color: "color" }, usesOnChanges: true, ngImport: i0, template: "@if (model == undefined || model == null) {\n\t<span>\n\t\t<i class=\"pi pi-minus\" style=\"color: red\" pTooltip=\"No item to show\"></i>\n\t</span>\n} @else {\n\t<div style=\"display: inline-block\">\n\t\t@if (type == 'bool') {\n\t\t\t<span>\n\t\t\t\t@if (!!model) {\n\t\t\t\t\t<i class=\"pi pi-check\" style=\"color: green\"></i>\n\t\t\t\t} @else {\n\t\t\t\t\t<i class=\"pi pi-times\" style=\"color: crimson\"></i>\n\t\t\t\t}\n\t\t\t</span>\n\t\t} @else {\n\t\t\t@if (display == undefined) {\n\t\t\t\t<span>\n\t\t\t\t\t<i\n\t\t\t\t\t\tclass=\"pi pi-exclamation-circle\"\n\t\t\t\t\t\tstyle=\"color: red\"\n\t\t\t\t\t\tpTooltip=\"Invalid Data\">\n\t\t\t\t\t</i>\n\t\t\t\t</span>\n\t\t\t} @else {\n\t\t\t\t<span [style.color]=\"color\">\n\t\t\t\t\t{{ display }}\n\t\t\t\t</span>\n\t\t\t}\n\t\t}\n\t</div>\n}\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
37
|
+
}
|
|
38
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: ValueComponent, decorators: [{
|
|
39
|
+
type: Component,
|
|
40
|
+
args: [{ standalone: true, selector: 'aril-value', changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (model == undefined || model == null) {\n\t<span>\n\t\t<i class=\"pi pi-minus\" style=\"color: red\" pTooltip=\"No item to show\"></i>\n\t</span>\n} @else {\n\t<div style=\"display: inline-block\">\n\t\t@if (type == 'bool') {\n\t\t\t<span>\n\t\t\t\t@if (!!model) {\n\t\t\t\t\t<i class=\"pi pi-check\" style=\"color: green\"></i>\n\t\t\t\t} @else {\n\t\t\t\t\t<i class=\"pi pi-times\" style=\"color: crimson\"></i>\n\t\t\t\t}\n\t\t\t</span>\n\t\t} @else {\n\t\t\t@if (display == undefined) {\n\t\t\t\t<span>\n\t\t\t\t\t<i\n\t\t\t\t\t\tclass=\"pi pi-exclamation-circle\"\n\t\t\t\t\t\tstyle=\"color: red\"\n\t\t\t\t\t\tpTooltip=\"Invalid Data\">\n\t\t\t\t\t</i>\n\t\t\t\t</span>\n\t\t\t} @else {\n\t\t\t\t<span [style.color]=\"color\">\n\t\t\t\t\t{{ display }}\n\t\t\t\t</span>\n\t\t\t}\n\t\t}\n\t</div>\n}\n" }]
|
|
41
|
+
}], propDecorators: { model: [{
|
|
42
|
+
type: Input,
|
|
43
|
+
args: [{ required: true }]
|
|
44
|
+
}], type: [{
|
|
45
|
+
type: Input
|
|
46
|
+
}], format: [{
|
|
47
|
+
type: Input
|
|
48
|
+
}], color: [{
|
|
49
|
+
type: Input
|
|
50
|
+
}] } });
|
|
51
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsdWUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYXJpbC91aS92YWx1ZS9zcmMvdmFsdWUuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYXJpbC91aS92YWx1ZS9zcmMvdmFsdWUuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLHVCQUF1QixFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQWEsTUFBTSxlQUFlLENBQ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ImNvbG9yOiBjcmltc29uXCI+PC9pPlxuXHRcdFx0XHR9XG5cdFx0XHQ8L3NwYW4+XG5cdFx0fSBAZWxzZSB7XG5cdFx0XHRAaWYgKGRpc3BsYXkgPT0gdW5kZWZpbmVkKSB7XG5cdFx0XHRcdDxzcGFuPlxuXHRcdFx0XHRcdDxpXG5cdFx0XHRcdFx0XHRjbGFzcz1cInBpIHBpLWV4Y2xhbWF0aW9uLWNpcmNsZVwiXG5cdFx0XHRcdFx0XHRzdHlsZT1cImNvbG9yOiByZWRcIlxuXHRcdFx0XHRcdFx0cFRvb2x0aXA9XCJJbnZhbGlkIERhdGFcIj5cblx0XHRcdFx0XHQ8L2k+XG5cdFx0XHRcdDwvc3Bhbj5cblx0XHRcdH0gQGVsc2Uge1xuXHRcdFx0XHQ8c3BhbiBbc3R5bGUuY29sb3JdPVwiY29sb3JcIj5cblx0XHRcdFx0XHR7eyBkaXNwbGF5IH19XG5cdFx0XHRcdDwvc3Bhbj5cblx0XHRcdH1cblx0XHR9XG5cdDwvZGl2PlxufVxuIl19
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
1
2
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
3
|
/* eslint-disable @typescript-eslint/ban-types */
|
|
3
4
|
/* eslint-disable @typescript-eslint/no-namespace */
|
|
4
5
|
export {};
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hcmlsL3V0aWwvbGliL3NyYy90eXBlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxzREFBc0Q7QUFDdEQsdURBQXVEO0FBQ3ZELGlEQUFpRDtBQUNqRCxvREFBb0QiLCJzb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lnbmFsPGFueT4gPyBLIDogbmV2ZXI7XHJcbiAgICAgIH1ba2V5b2YgQ11cclxuICAgID5dOiBDW0tdIGV4dGVuZHMgSW5wdXRTaWduYWw8aW5mZXIgXywgaW5mZXIgV3JpdGU+ID8gV3JpdGUgOiBuZXZlcjtcclxuICB9O1xyXG59Il19
|
|
@@ -13,5 +13,11 @@ String.prototype.toPascalCase = function () {
|
|
|
13
13
|
String.prototype.toCapitalizeFirstLetter = function () {
|
|
14
14
|
return this.charAt(0).toLocaleUpperCase() + this.slice(1);
|
|
15
15
|
};
|
|
16
|
+
String.prototype.stringToBool = function (str) {
|
|
17
|
+
if (str == "true" || str == "1")
|
|
18
|
+
return true;
|
|
19
|
+
else
|
|
20
|
+
return false;
|
|
21
|
+
};
|
|
16
22
|
export {};
|
|
17
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
23
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RyaW5nLmV4dGVuc2lvbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hcmlsL3V0aWwvcHJpbWl0aXZlLWV4dGVuc2lvbnMvc3JjL3N0cmluZy5leHRlbnNpb25zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVdBLE1BQU0sQ0FBQyxTQUFTLENBQUMsUUFBUSxHQUFHO0lBQzFCLE9BQU8sQ0FBQyxDQUFDLElBQUksQ0FBQTtBQUNmLENBQUMsQ0FBQTtBQUVELE1BQU0sQ0FBQyxTQUFTLENBQUMsWUFBWSxHQUFHO0lBQzlCLE9BQU8sSUFBSSxDQUFDLE9BQU8sQ0FBQyxxQkFBcUIsRUFBRSxNQUFNLENBQUMsQ0FBQztBQUNyRCxDQUFDLENBQUM7QUFFRixNQUFNLENBQUMsU0FBUyxDQUFDLFdBQVcsR0FBRztJQUM3QixPQUFPLElBQUksQ0FBQyxPQUFPLEN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HtcclxuICByZXR1cm4gdGhpcy5jaGFyQXQoMCkudG9Mb2NhbGVVcHBlckNhc2UoKSArIHRoaXMuc2xpY2UoMSk7XHJcbn07XHJcblxyXG5TdHJpbmcucHJvdG90eXBlLnN0cmluZ1RvQm9vbCA9IGZ1bmN0aW9uIChzdHI6IHN0cmluZyk6IGJvb2xlYW4ge1xyXG4gIGlmIChzdHIgPT0gXCJ0cnVlXCIgfHwgc3RyID09IFwiMVwiKSByZXR1cm4gdHJ1ZTtcclxuICBlbHNlIHJldHVybiBmYWxzZTtcclxufTtcclxuXHJcblxyXG5leHBvcnQgeyB9OyJdfQ==
|
|
@@ -3,25 +3,25 @@ import { Component, ChangeDetectionStrategy, Input } from '@angular/core';
|
|
|
3
3
|
import * as i1 from 'primeng/tag';
|
|
4
4
|
import { TagModule } from 'primeng/tag';
|
|
5
5
|
|
|
6
|
+
/* TODO :
|
|
7
|
+
1. InputSignal
|
|
8
|
+
*/
|
|
6
9
|
class BadgeComponent {
|
|
7
10
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: BadgeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.2", type: BadgeComponent, isStandalone: true, selector: "aril-badge", inputs: { icon: "icon", value: "value", severity: "severity", rounded: "rounded"
|
|
11
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.2", type: BadgeComponent, isStandalone: true, selector: "aril-badge", inputs: { icon: "icon", value: "value", severity: "severity", rounded: "rounded" }, ngImport: i0, template: "<p-tag [icon]=\"icon\" [value]=\"value\" [severity]=\"severity\" [rounded]=\"rounded\">\r\n\t<ng-content></ng-content>\r\n</p-tag>\r\n", dependencies: [{ kind: "ngmodule", type: TagModule }, { kind: "component", type: i1.Tag, selector: "p-tag", inputs: ["style", "styleClass", "severity", "value", "icon", "rounded"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
9
12
|
}
|
|
10
13
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: BadgeComponent, decorators: [{
|
|
11
14
|
type: Component,
|
|
12
|
-
args: [{ standalone: true, selector: 'aril-badge', imports: [TagModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<p-tag
|
|
15
|
+
args: [{ standalone: true, selector: 'aril-badge', imports: [TagModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<p-tag [icon]=\"icon\" [value]=\"value\" [severity]=\"severity\" [rounded]=\"rounded\">\r\n\t<ng-content></ng-content>\r\n</p-tag>\r\n" }]
|
|
13
16
|
}], propDecorators: { icon: [{
|
|
14
17
|
type: Input
|
|
15
18
|
}], value: [{
|
|
16
19
|
type: Input
|
|
17
20
|
}], severity: [{
|
|
18
|
-
type: Input
|
|
21
|
+
type: Input,
|
|
22
|
+
args: [{ required: true }]
|
|
19
23
|
}], rounded: [{
|
|
20
24
|
type: Input
|
|
21
|
-
}], style: [{
|
|
22
|
-
type: Input
|
|
23
|
-
}], styleClass: [{
|
|
24
|
-
type: Input
|
|
25
25
|
}] } });
|
|
26
26
|
|
|
27
27
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aril-ui-badge.mjs","sources":["../../projects/aril/ui/badge/src/badge.component.ts","../../projects/aril/ui/badge/src/badge.component.html","../../projects/aril/ui/badge/aril-ui-badge.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\r\nimport { TagModule } from 'primeng/tag';\r\n\r\n@Component({\r\n standalone: true,\r\n selector: 'aril-badge',\r\n templateUrl: './badge.component.html',\r\n imports: [TagModule],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class BadgeComponent {\r\n @Input() icon!: string;\r\n @Input() value!: string;\r\n @Input() severity!:
|
|
1
|
+
{"version":3,"file":"aril-ui-badge.mjs","sources":["../../projects/aril/ui/badge/src/badge.component.ts","../../projects/aril/ui/badge/src/badge.component.html","../../projects/aril/ui/badge/aril-ui-badge.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\r\nimport { TagModule } from 'primeng/tag';\r\n\r\ntype Severity = 'primary' | 'success' | 'info' | 'warning' | 'danger';\r\n\r\n/* TODO : \r\n 1. InputSignal\r\n*/\r\n\r\n@Component({\r\n standalone: true,\r\n selector: 'aril-badge',\r\n templateUrl: './badge.component.html',\r\n imports: [TagModule],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class BadgeComponent {\r\n @Input() icon!: string;\r\n @Input() value!: string;\r\n @Input({ required: true }) severity!: Severity;\r\n @Input() rounded!: boolean;\r\n}\r\n","<p-tag [icon]=\"icon\" [value]=\"value\" [severity]=\"severity\" [rounded]=\"rounded\">\r\n\t<ng-content></ng-content>\r\n</p-tag>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAKA;;AAEE;MASW,cAAc,CAAA;8GAAd,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAAd,cAAc,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,YAAA,EAAA,MAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,KAAA,EAAA,OAAA,EAAA,QAAA,EAAA,UAAA,EAAA,OAAA,EAAA,SAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EChB3B,wIAGA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDUY,SAAS,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,GAAA,EAAA,QAAA,EAAA,OAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,YAAA,EAAA,UAAA,EAAA,OAAA,EAAA,MAAA,EAAA,SAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FAGR,cAAc,EAAA,UAAA,EAAA,CAAA;kBAP1B,SAAS;iCACI,IAAI,EAAA,QAAA,EACN,YAAY,EAEb,OAAA,EAAA,CAAC,SAAS,CAAC,EAAA,eAAA,EACH,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,wIAAA,EAAA,CAAA;8BAGtC,IAAI,EAAA,CAAA;sBAAZ,KAAK;gBACG,KAAK,EAAA,CAAA;sBAAb,KAAK;gBACqB,QAAQ,EAAA,CAAA;sBAAlC,KAAK;uBAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAA;gBAChB,OAAO,EAAA,CAAA;sBAAf,KAAK;;;AEpBR;;AAEG;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter, Component, ChangeDetectionStrategy, Input, Output } from '@angular/core';
|
|
2
|
+
import { EventEmitter, Component, ChangeDetectionStrategy, Input, Output, input } from '@angular/core';
|
|
3
3
|
import * as i1 from 'primeng/button';
|
|
4
4
|
import { ButtonModule } from 'primeng/button';
|
|
5
5
|
import { iconTransform } from 'aril/ui/lib';
|
|
@@ -26,8 +26,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
|
|
|
26
26
|
type: Component,
|
|
27
27
|
args: [{ standalone: true, selector: 'aril-button:not([click])', imports: [ButtonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<p-button\n\t[label]=\"label\"\n\t[badge]=\"badge\"\n\t[icon]=\"icon\"\n\ticonPos=\"left\"\n\t[disabled]=\"disabled\"\n\t[styleClass]=\"styleClass\"\n\t[loading]=\"loading\"\n\t(onClick)=\"clickEvent.emit($event)\">\n</p-button>\n" }]
|
|
28
28
|
}], propDecorators: { label: [{
|
|
29
|
-
type: Input
|
|
30
|
-
args: [{ required: true }]
|
|
29
|
+
type: Input
|
|
31
30
|
}], loading: [{
|
|
32
31
|
type: Input
|
|
33
32
|
}], disabled: [{
|
|
@@ -51,20 +50,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
|
|
|
51
50
|
}] } });
|
|
52
51
|
|
|
53
52
|
class SplitButtonComponent extends ButtonComponent {
|
|
53
|
+
constructor() {
|
|
54
|
+
super(...arguments);
|
|
55
|
+
this.menu = input.required();
|
|
56
|
+
}
|
|
54
57
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: SplitButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
55
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
58
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.1.2", type: SplitButtonComponent, isStandalone: true, selector: "aril-split-button", inputs: { menu: { classPropertyName: "menu", publicName: "menu", isSignal: true, isRequired: true, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: "<p-splitButton\r\n\t[label]=\"label\"\r\n\t[icon]=\"icon\"\r\n\t[styleClass]=\"styleClass\"\r\n\t[model]=\"menu()\"\r\n\t[disabled]=\"disabled\">\r\n</p-splitButton>\r\n", dependencies: [{ kind: "ngmodule", type: SplitButtonModule }, { kind: "component", type: i1$1.SplitButton, selector: "p-splitButton", inputs: ["model", "icon", "iconPos", "label", "style", "styleClass", "menuStyle", "menuStyleClass", "disabled", "tabindex", "appendTo", "dir", "expandAriaLabel", "showTransitionOptions", "hideTransitionOptions", "buttonProps", "menuButtonProps"], outputs: ["onClick", "onDropdownClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
56
59
|
}
|
|
57
60
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: SplitButtonComponent, decorators: [{
|
|
58
61
|
type: Component,
|
|
59
|
-
args: [{ standalone: true, selector: 'aril-split-button', imports: [SplitButtonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<p-splitButton\r\n\t[label]=\"label\"\r\n\t[icon]=\"icon\"\r\n\t[styleClass]=\"styleClass\"\r\n\t[model]=\"menu\"\r\n\t[disabled]=\"disabled\">\r\n</p-splitButton>\r\n" }]
|
|
60
|
-
}]
|
|
61
|
-
type: Input,
|
|
62
|
-
args: [{ required: true }]
|
|
63
|
-
}] } });
|
|
62
|
+
args: [{ standalone: true, selector: 'aril-split-button', imports: [SplitButtonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<p-splitButton\r\n\t[label]=\"label\"\r\n\t[icon]=\"icon\"\r\n\t[styleClass]=\"styleClass\"\r\n\t[model]=\"menu()\"\r\n\t[disabled]=\"disabled\">\r\n</p-splitButton>\r\n" }]
|
|
63
|
+
}] });
|
|
64
64
|
|
|
65
65
|
/**
|
|
66
66
|
* Generated bundle index. Do not edit.
|
|
67
67
|
*/
|
|
68
68
|
|
|
69
|
-
export { ButtonComponent, SplitButtonComponent };
|
|
69
|
+
export { ButtonComponent, SplitButtonComponent, colorTransform };
|
|
70
70
|
//# sourceMappingURL=aril-ui-button.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aril-ui-button.mjs","sources":["../../projects/aril/ui/button/src/button.component.ts","../../projects/aril/ui/button/src/button.component.html","../../projects/aril/ui/button/src/split-button.component.ts","../../projects/aril/ui/button/src/split-button.component.html","../../projects/aril/ui/button/aril-ui-button.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, EventEmitter, Input, OnInit, Output } from '@angular/core';\nimport { ButtonModule } from 'primeng/button';\nimport { PrimeIcon, iconTransform } from 'aril/ui/lib';\n\
|
|
1
|
+
{"version":3,"file":"aril-ui-button.mjs","sources":["../../projects/aril/ui/button/src/button.component.ts","../../projects/aril/ui/button/src/button.component.html","../../projects/aril/ui/button/src/split-button.component.ts","../../projects/aril/ui/button/src/split-button.component.html","../../projects/aril/ui/button/aril-ui-button.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, EventEmitter, Input, OnInit, Output } from '@angular/core';\r\nimport { ButtonModule } from 'primeng/button';\r\nimport { PrimeIcon, iconTransform } from 'aril/ui/lib';\r\n\r\n/* TODO : \r\n 1. InputSignal\r\n*/\r\n\r\ntype Size = 'sm' | 'md' | 'lg';\r\nexport type Colors = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'help' | 'danger';\r\n\r\nexport function colorTransform(color: Colors): string {\r\n return `p-button-${color}`;\r\n}\r\n\r\n@Component({\r\n standalone: true,\r\n selector: 'aril-button:not([click])',\r\n templateUrl: './button.component.html',\r\n imports: [ButtonModule],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class ButtonComponent implements OnInit {\r\n @Input() label!: string;\r\n @Input() loading!: boolean;\r\n @Input() disabled!: boolean;\r\n @Input() raised = true;\r\n @Input() outlined!: boolean;\r\n @Input() badge!: string;\r\n @Input() size: Size = \"md\";\r\n @Input({ transform: iconTransform }) icon!: PrimeIcon;\r\n @Input({ required: true, transform: colorTransform }) color!: Colors;\r\n\r\n @Output() clickEvent: EventEmitter<MouseEvent> = new EventEmitter<MouseEvent>();\r\n\r\n styleClass = '';\r\n\r\n ngOnInit() {\r\n this.styleClass = `${this.raised ? `p-button-raised` : ''} ${this.outlined ? `p-button-outlined` : ''} ${this.size ? `p-button-${this.size}` : ''} ${this.color}`;\r\n }\r\n}\r\n","<p-button\n\t[label]=\"label\"\n\t[badge]=\"badge\"\n\t[icon]=\"icon\"\n\ticonPos=\"left\"\n\t[disabled]=\"disabled\"\n\t[styleClass]=\"styleClass\"\n\t[loading]=\"loading\"\n\t(onClick)=\"clickEvent.emit($event)\">\n</p-button>\n","import { ChangeDetectionStrategy, Component, input } from '@angular/core';\r\nimport { MenuItem } from 'primeng/api';\r\nimport { SplitButtonModule } from 'primeng/splitbutton';\r\nimport { ButtonComponent } from './button.component';\r\n\r\n@Component({\r\n standalone: true,\r\n selector: 'aril-split-button',\r\n templateUrl: './split-button.component.html',\r\n imports: [SplitButtonModule],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class SplitButtonComponent extends ButtonComponent {\r\n menu = input.required<MenuItem[]>();\r\n}\r\n","<p-splitButton\r\n\t[label]=\"label\"\r\n\t[icon]=\"icon\"\r\n\t[styleClass]=\"styleClass\"\r\n\t[model]=\"menu()\"\r\n\t[disabled]=\"disabled\">\r\n</p-splitButton>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;AAWM,SAAU,cAAc,CAAC,KAAa,EAAA;IAC1C,OAAO,CAAA,SAAA,EAAY,KAAK,CAAA,CAAE,CAAC;AAC7B,CAAC;MASY,eAAe,CAAA;AAP5B,IAAA,WAAA,GAAA;QAWW,IAAM,CAAA,MAAA,GAAG,IAAI,CAAC;QAGd,IAAI,CAAA,IAAA,GAAS,IAAI,CAAC;AAIjB,QAAA,IAAA,CAAA,UAAU,GAA6B,IAAI,YAAY,EAAc,CAAC;QAEhF,IAAU,CAAA,UAAA,GAAG,EAAE,CAAC;AAKjB,KAAA;IAHC,QAAQ,GAAA;QACN,IAAI,CAAC,UAAU,GAAG,CAAA,EAAG,IAAI,CAAC,MAAM,GAAG,CAAA,eAAA,CAAiB,GAAG,EAAE,CAAI,CAAA,EAAA,IAAI,CAAC,QAAQ,GAAG,CAAmB,iBAAA,CAAA,GAAG,EAAE,IAAI,IAAI,CAAC,IAAI,GAAG,CAAA,SAAA,EAAY,IAAI,CAAC,IAAI,CAAE,CAAA,GAAG,EAAE,IAAI,IAAI,CAAC,KAAK,CAAA,CAAE,CAAC;KACnK;8GAjBU,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,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AAA,UAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,uBAAA,EAAA,uBAAA,EAAA,aAAA,EAAA,iBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,SAAA,EAAA,iBAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FAGhB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAPhC,SAAS;iCACI,IAAI,EAAA,QAAA,EACN,mBAAmB,EAEpB,OAAA,EAAA,CAAC,iBAAiB,CAAC,EAAA,eAAA,EACX,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,2KAAA,EAAA,CAAA;;;AEVjD;;AAEG;;;;"}
|
|
@@ -1,40 +1,31 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Component, ChangeDetectionStrategy, Input } from '@angular/core';
|
|
3
|
-
import * as
|
|
3
|
+
import * as i3 from '@angular/forms';
|
|
4
4
|
import { ReactiveFormsModule } from '@angular/forms';
|
|
5
|
-
import * as
|
|
5
|
+
import * as i4 from 'primeng/calendar';
|
|
6
6
|
import { CalendarModule } from 'primeng/calendar';
|
|
7
7
|
import * as i5 from 'primeng/tooltip';
|
|
8
8
|
import { TooltipModule } from 'primeng/tooltip';
|
|
9
|
-
import * as
|
|
9
|
+
import * as i2 from 'aril/ui/lib';
|
|
10
10
|
import { BaseInputComponent, InputErrorMessagePipe, ValueAccessorDirective } from 'aril/ui/lib';
|
|
11
11
|
import 'aril/util/primitive-extensions';
|
|
12
|
-
import * as
|
|
12
|
+
import * as i1 from 'primeng/api';
|
|
13
13
|
|
|
14
14
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
15
|
-
/*
|
|
15
|
+
/* TODOS
|
|
16
|
+
1. InputSignal
|
|
17
|
+
2. Adjust different color or background for weekends
|
|
18
|
+
*/
|
|
16
19
|
class CalendarComponent extends BaseInputComponent {
|
|
17
|
-
constructor() {
|
|
18
|
-
super(
|
|
20
|
+
constructor(primeNgConfig) {
|
|
21
|
+
super();
|
|
22
|
+
this.primeNgConfig = primeNgConfig;
|
|
19
23
|
this.disabledDates = [];
|
|
20
24
|
this.view = 'date';
|
|
21
25
|
this.selectionMode = 'single';
|
|
22
26
|
this.dateFormat = "dd/MM/yy";
|
|
23
27
|
this.selectedDisabledDates = [];
|
|
24
|
-
|
|
25
|
-
ngOnInit() {
|
|
26
|
-
// this.setLocale();
|
|
27
|
-
switch (this.view) {
|
|
28
|
-
case 'month':
|
|
29
|
-
this.dateFormat = "MM/yy";
|
|
30
|
-
break;
|
|
31
|
-
case 'year':
|
|
32
|
-
this.dateFormat = "yy";
|
|
33
|
-
break;
|
|
34
|
-
default:
|
|
35
|
-
this.dateFormat = "dd/MM/yy";
|
|
36
|
-
break;
|
|
37
|
-
}
|
|
28
|
+
this.setLocale();
|
|
38
29
|
}
|
|
39
30
|
ngOnChanges(changes) {
|
|
40
31
|
if (changes.minDate) {
|
|
@@ -46,21 +37,55 @@ class CalendarComponent extends BaseInputComponent {
|
|
|
46
37
|
if (changes.disabledDates?.currentValue.length) {
|
|
47
38
|
this.selectedDisabledDates = this.disabledDates.map((value) => value.longToDate());
|
|
48
39
|
}
|
|
40
|
+
if (changes.view) {
|
|
41
|
+
switch (this.view) {
|
|
42
|
+
case 'month':
|
|
43
|
+
this.dateFormat = "MM/yy";
|
|
44
|
+
break;
|
|
45
|
+
case 'year':
|
|
46
|
+
this.dateFormat = "yy";
|
|
47
|
+
break;
|
|
48
|
+
default:
|
|
49
|
+
this.dateFormat = "dd/MM/yy";
|
|
50
|
+
break;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
// isWeekend(date: any): boolean {
|
|
55
|
+
// if (!date) {
|
|
56
|
+
// return false;
|
|
57
|
+
// }
|
|
58
|
+
// if (this.view == 'date') {
|
|
59
|
+
// const dayOfWeek = date.getDay();
|
|
60
|
+
// return dayOfWeek === 5 || dayOfWeek === 6;
|
|
61
|
+
// }
|
|
62
|
+
// }
|
|
63
|
+
setLocale() {
|
|
64
|
+
this.primeNgConfig.setTranslation({
|
|
65
|
+
firstDayOfWeek: 0,
|
|
66
|
+
dayNames: ["Pazartesi", "Salı", "Çarşamba", "Perşembe", "Cuma", "Cumartesi", "Pazar"],
|
|
67
|
+
dayNamesMin: ["Pzt", "Sal", "Çar", "Per", "Cum", "Cmt", "Pzr"],
|
|
68
|
+
dayNamesShort: ["Pzt", "Sal", "Çar", "Per", "Cum", "Cmt", "Pzr"],
|
|
69
|
+
monthNames: ["Ocak", "Şubat", "Mart", "Nisan", "Mayıs", "Haziran", "Temmuz", "Ağustos", "Eylül", "Ekim", "Kasım", "Aralık"],
|
|
70
|
+
monthNamesShort: ["Oca", "Şub", "Mar", "Nis", "May", "Haz", "Tem", "Ağu", "Eyl", "Eki", "Kas", "Ara"],
|
|
71
|
+
today: 'Bugün',
|
|
72
|
+
clear: 'Temizle',
|
|
73
|
+
dateFormat: 'dd/mm/yy',
|
|
74
|
+
weekHeader: 'Hafta'
|
|
75
|
+
});
|
|
49
76
|
}
|
|
50
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: CalendarComponent, deps:
|
|
51
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.2", type: CalendarComponent, isStandalone: true, selector: "aril-calendar[ngModel], aril-calendar[formControl], aril-calendar[formControlName]", inputs: { minDate: "minDate", maxDate: "maxDate", inline: "inline",
|
|
77
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: CalendarComponent, deps: [{ token: i1.PrimeNGConfig }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
78
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.2", type: CalendarComponent, isStandalone: true, selector: "aril-calendar[ngModel], aril-calendar[formControl], aril-calendar[formControlName]", inputs: { minDate: "minDate", maxDate: "maxDate", inline: "inline", showIcon: "showIcon", showTime: "showTime", showWeek: "showWeek", showSeconds: "showSeconds", disabledDates: "disabledDates", view: "view", selectionMode: "selectionMode", tabindex: "tabindex" }, usesInheritance: true, usesOnChanges: true, hostDirectives: [{ directive: i2.ValueAccessorDirective }], ngImport: i0, template: "<p-calendar\r\n\t[showIcon]=\"true\"\r\n\t[dateFormat]=\"dateFormat\"\r\n\t[showButtonBar]=\"true\"\r\n\t[minDate]=\"minJSDate\"\r\n\t[maxDate]=\"maxJSDate\"\r\n\t[tabindex]=\"tabindex\"\r\n\t[disabledDates]=\"selectedDisabledDates\"\r\n\t[selectionMode]=\"selectionMode\"\r\n\t[readonlyInput]=\"true\"\r\n\t[showTime]=\"showTime\"\r\n\t[showSeconds]=\"showSeconds\"\r\n\t[inline]=\"inline\"\r\n\t[showWeek]=\"showWeek\"\r\n\t[pTooltip]=\"\r\n\t\tngControl.invalid\r\n\t\t\t? (ngControl.control.value | inputErrorMessage: ngControl)\r\n\t\t\t: ''\r\n\t\"\r\n\t[tooltipOptions]=\"tooltipOptions\"\r\n\t[formControl]=\"ngControl.control\"\r\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\r\n\t<ng-template pTemplate=\"header\">\r\n\t\t<ng-content select=\"[calendarHeader]\"></ng-content>\r\n\t</ng-template>\r\n\t<ng-template pTemplate=\"footer\">\r\n\t\t<ng-content select=\"[calendarFooter]\"></ng-content>\r\n\t</ng-template>\r\n</p-calendar>\r\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: CalendarModule }, { kind: "component", type: i4.Calendar, selector: "p-calendar", inputs: ["iconDisplay", "style", "styleClass", "inputStyle", "inputId", "name", "inputStyleClass", "placeholder", "ariaLabelledBy", "ariaLabel", "iconAriaLabel", "disabled", "dateFormat", "multipleSeparator", "rangeSeparator", "inline", "showOtherMonths", "selectOtherMonths", "showIcon", "icon", "appendTo", "readonlyInput", "shortYearCutoff", "monthNavigator", "yearNavigator", "hourFormat", "timeOnly", "stepHour", "stepMinute", "stepSecond", "showSeconds", "required", "showOnFocus", "showWeek", "showClear", "dataType", "selectionMode", "maxDateCount", "showButtonBar", "todayButtonStyleClass", "clearButtonStyleClass", "autoZIndex", "baseZIndex", "panelStyleClass", "panelStyle", "keepInvalid", "hideOnDateTimeSelect", "touchUI", "timeSeparator", "focusTrap", "showTransitionOptions", "hideTransitionOptions", "tabindex", "minDate", "maxDate", "disabledDates", "disabledDays", "yearRange", "showTime", "responsiveOptions", "numberOfMonths", "firstDayOfWeek", "locale", "view", "defaultDate"], outputs: ["onFocus", "onBlur", "onClose", "onSelect", "onClear", "onInput", "onTodayClick", "onClearClick", "onMonthChange", "onYearChange", "onClickOutside", "onShow"] }, { kind: "directive", type: i1.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i5.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "pipe", type: InputErrorMessagePipe, name: "inputErrorMessage" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
52
79
|
}
|
|
53
80
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: CalendarComponent, decorators: [{
|
|
54
81
|
type: Component,
|
|
55
|
-
args: [{ standalone: true, selector: 'aril-calendar[ngModel], aril-calendar[formControl], aril-calendar[formControlName]', imports: [ReactiveFormsModule, CalendarModule, TooltipModule, InputErrorMessagePipe], hostDirectives: [ValueAccessorDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<p-calendar\r\n\t[showIcon]=\"true\"\r\n\t[dateFormat]=\"dateFormat\"\r\n\t[showButtonBar]=\"true\"\r\n\t[minDate]=\"minJSDate\"\r\n\t[maxDate]=\"maxJSDate\"\r\n\t[disabledDates]=\"selectedDisabledDates\"\r\n\t[selectionMode]=\"selectionMode\"\r\n\t[readonlyInput]=\"true\"\r\n\t[showTime]=\"showTime\"\r\n\t[showSeconds]=\"showSeconds\"\r\n\t[inline]=\"inline\"\r\n\t[showWeek]=\"showWeek\"\r\n\t[pTooltip]=\"\r\n\t\tngControl.invalid\r\n\t\t\t? (ngControl.control.value | inputErrorMessage: ngControl)\r\n\t\t\t: ''\r\n\t\"\r\n\t[tooltipOptions]=\"tooltipOptions\"\r\n\t[formControl]=\"ngControl.control\"\r\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\r\n\t<ng-template pTemplate=\"header\">\r\n\t\t<ng-content select=\"
|
|
56
|
-
}], propDecorators: { minDate: [{
|
|
82
|
+
args: [{ standalone: true, selector: 'aril-calendar[ngModel], aril-calendar[formControl], aril-calendar[formControlName]', imports: [ReactiveFormsModule, CalendarModule, TooltipModule, InputErrorMessagePipe], hostDirectives: [ValueAccessorDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<p-calendar\r\n\t[showIcon]=\"true\"\r\n\t[dateFormat]=\"dateFormat\"\r\n\t[showButtonBar]=\"true\"\r\n\t[minDate]=\"minJSDate\"\r\n\t[maxDate]=\"maxJSDate\"\r\n\t[tabindex]=\"tabindex\"\r\n\t[disabledDates]=\"selectedDisabledDates\"\r\n\t[selectionMode]=\"selectionMode\"\r\n\t[readonlyInput]=\"true\"\r\n\t[showTime]=\"showTime\"\r\n\t[showSeconds]=\"showSeconds\"\r\n\t[inline]=\"inline\"\r\n\t[showWeek]=\"showWeek\"\r\n\t[pTooltip]=\"\r\n\t\tngControl.invalid\r\n\t\t\t? (ngControl.control.value | inputErrorMessage: ngControl)\r\n\t\t\t: ''\r\n\t\"\r\n\t[tooltipOptions]=\"tooltipOptions\"\r\n\t[formControl]=\"ngControl.control\"\r\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\r\n\t<ng-template pTemplate=\"header\">\r\n\t\t<ng-content select=\"[calendarHeader]\"></ng-content>\r\n\t</ng-template>\r\n\t<ng-template pTemplate=\"footer\">\r\n\t\t<ng-content select=\"[calendarFooter]\"></ng-content>\r\n\t</ng-template>\r\n</p-calendar>\r\n" }]
|
|
83
|
+
}], ctorParameters: () => [{ type: i1.PrimeNGConfig }], propDecorators: { minDate: [{
|
|
57
84
|
type: Input
|
|
58
85
|
}], maxDate: [{
|
|
59
86
|
type: Input
|
|
60
87
|
}], inline: [{
|
|
61
88
|
type: Input
|
|
62
|
-
}], disabled: [{
|
|
63
|
-
type: Input
|
|
64
89
|
}], showIcon: [{
|
|
65
90
|
type: Input
|
|
66
91
|
}], showTime: [{
|
|
@@ -69,16 +94,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
|
|
|
69
94
|
type: Input
|
|
70
95
|
}], showSeconds: [{
|
|
71
96
|
type: Input
|
|
72
|
-
}], showButtonBar: [{
|
|
73
|
-
type: Input
|
|
74
|
-
}], readonlyInput: [{
|
|
75
|
-
type: Input
|
|
76
97
|
}], disabledDates: [{
|
|
77
98
|
type: Input
|
|
78
99
|
}], view: [{
|
|
79
100
|
type: Input
|
|
80
101
|
}], selectionMode: [{
|
|
81
102
|
type: Input
|
|
103
|
+
}], tabindex: [{
|
|
104
|
+
type: Input
|
|
82
105
|
}] } });
|
|
83
106
|
|
|
84
107
|
/**
|