@masterteam/components 0.0.108 → 0.0.109
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/package.json +2 -2
- package/.codex-tmp-pack/extract/package/README.md +0 -63
- package/.codex-tmp-pack/extract/package/assets/cairo.css +0 -70
- package/.codex-tmp-pack/extract/package/assets/common.css +0 -2
- package/.codex-tmp-pack/extract/package/assets/fonts/Cairo-Black.woff2 +0 -0
- package/.codex-tmp-pack/extract/package/assets/fonts/Cairo-Bold.woff2 +0 -0
- package/.codex-tmp-pack/extract/package/assets/fonts/Cairo-ExtraBold.woff2 +0 -0
- package/.codex-tmp-pack/extract/package/assets/fonts/Cairo-ExtraLight.woff2 +0 -0
- package/.codex-tmp-pack/extract/package/assets/fonts/Cairo-Light.woff2 +0 -0
- package/.codex-tmp-pack/extract/package/assets/fonts/Cairo-Medium.woff2 +0 -0
- package/.codex-tmp-pack/extract/package/assets/fonts/Cairo-Regular.woff2 +0 -0
- package/.codex-tmp-pack/extract/package/assets/fonts/Cairo-SemiBold.woff2 +0 -0
- package/.codex-tmp-pack/extract/package/assets/fonts/Cairo-VariableFont_slnt,wght.woff2 +0 -0
- package/.codex-tmp-pack/extract/package/assets/fonts/Inter-Black.woff2 +0 -0
- package/.codex-tmp-pack/extract/package/assets/fonts/Inter-BlackItalic.woff2 +0 -0
- package/.codex-tmp-pack/extract/package/assets/fonts/Inter-Bold.woff2 +0 -0
- package/.codex-tmp-pack/extract/package/assets/fonts/Inter-BoldItalic.woff2 +0 -0
- package/.codex-tmp-pack/extract/package/assets/fonts/Inter-ExtraBold.woff2 +0 -0
- package/.codex-tmp-pack/extract/package/assets/fonts/Inter-ExtraBoldItalic.woff2 +0 -0
- package/.codex-tmp-pack/extract/package/assets/fonts/Inter-ExtraLight.woff2 +0 -0
- package/.codex-tmp-pack/extract/package/assets/fonts/Inter-ExtraLightItalic.woff2 +0 -0
- package/.codex-tmp-pack/extract/package/assets/fonts/Inter-Italic.woff2 +0 -0
- package/.codex-tmp-pack/extract/package/assets/fonts/Inter-Light.woff2 +0 -0
- package/.codex-tmp-pack/extract/package/assets/fonts/Inter-LightItalic.woff2 +0 -0
- package/.codex-tmp-pack/extract/package/assets/fonts/Inter-Medium.woff2 +0 -0
- package/.codex-tmp-pack/extract/package/assets/fonts/Inter-MediumItalic.woff2 +0 -0
- package/.codex-tmp-pack/extract/package/assets/fonts/Inter-Regular.woff2 +0 -0
- package/.codex-tmp-pack/extract/package/assets/fonts/Inter-SemiBold.woff2 +0 -0
- package/.codex-tmp-pack/extract/package/assets/fonts/Inter-SemiBoldItalic.woff2 +0 -0
- package/.codex-tmp-pack/extract/package/assets/fonts/Inter-Thin.woff2 +0 -0
- package/.codex-tmp-pack/extract/package/assets/fonts/Inter-ThinItalic.woff2 +0 -0
- package/.codex-tmp-pack/extract/package/assets/fonts/InterDisplay-Black.woff2 +0 -0
- package/.codex-tmp-pack/extract/package/assets/fonts/InterDisplay-BlackItalic.woff2 +0 -0
- package/.codex-tmp-pack/extract/package/assets/fonts/InterDisplay-Bold.woff2 +0 -0
- package/.codex-tmp-pack/extract/package/assets/fonts/InterDisplay-BoldItalic.woff2 +0 -0
- package/.codex-tmp-pack/extract/package/assets/fonts/InterDisplay-ExtraBold.woff2 +0 -0
- package/.codex-tmp-pack/extract/package/assets/fonts/InterDisplay-ExtraBoldItalic.woff2 +0 -0
- package/.codex-tmp-pack/extract/package/assets/fonts/InterDisplay-ExtraLight.woff2 +0 -0
- package/.codex-tmp-pack/extract/package/assets/fonts/InterDisplay-ExtraLightItalic.woff2 +0 -0
- package/.codex-tmp-pack/extract/package/assets/fonts/InterDisplay-Italic.woff2 +0 -0
- package/.codex-tmp-pack/extract/package/assets/fonts/InterDisplay-Light.woff2 +0 -0
- package/.codex-tmp-pack/extract/package/assets/fonts/InterDisplay-LightItalic.woff2 +0 -0
- package/.codex-tmp-pack/extract/package/assets/fonts/InterDisplay-Medium.woff2 +0 -0
- package/.codex-tmp-pack/extract/package/assets/fonts/InterDisplay-MediumItalic.woff2 +0 -0
- package/.codex-tmp-pack/extract/package/assets/fonts/InterDisplay-Regular.woff2 +0 -0
- package/.codex-tmp-pack/extract/package/assets/fonts/InterDisplay-SemiBold.woff2 +0 -0
- package/.codex-tmp-pack/extract/package/assets/fonts/InterDisplay-SemiBoldItalic.woff2 +0 -0
- package/.codex-tmp-pack/extract/package/assets/fonts/InterDisplay-Thin.woff2 +0 -0
- package/.codex-tmp-pack/extract/package/assets/fonts/InterDisplay-ThinItalic.woff2 +0 -0
- package/.codex-tmp-pack/extract/package/assets/fonts/InterVariable-Italic.woff2 +0 -0
- package/.codex-tmp-pack/extract/package/assets/fonts/InterVariable.woff2 +0 -0
- package/.codex-tmp-pack/extract/package/assets/i18n/ar.json +0 -44
- package/.codex-tmp-pack/extract/package/assets/i18n/en.json +0 -44
- package/.codex-tmp-pack/extract/package/assets/inter.css +0 -418
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-avatar-text.mjs +0 -46
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-avatar-text.mjs.map +0 -1
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-avatar.mjs +0 -45
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-avatar.mjs.map +0 -1
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-breadcrumb.mjs +0 -27
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-breadcrumb.mjs.map +0 -1
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-business-fields.mjs +0 -222
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-business-fields.mjs.map +0 -1
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-button-group.mjs +0 -20
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-button-group.mjs.map +0 -1
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-button.mjs +0 -52
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-button.mjs.map +0 -1
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-card.mjs +0 -28
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-card.mjs.map +0 -1
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-checkbox-field.mjs +0 -88
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-checkbox-field.mjs.map +0 -1
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-chip.mjs +0 -35
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-chip.mjs.map +0 -1
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-client-page-menu.mjs +0 -92
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-client-page-menu.mjs.map +0 -1
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-client-page.mjs +0 -93
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-client-page.mjs.map +0 -1
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-color-picker-field.mjs +0 -94
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-color-picker-field.mjs.map +0 -1
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-confirmation.mjs +0 -93
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-confirmation.mjs.map +0 -1
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-date-field.mjs +0 -94
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-date-field.mjs.map +0 -1
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-dialog.mjs +0 -33
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-dialog.mjs.map +0 -1
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-drawer.mjs +0 -69
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-drawer.mjs.map +0 -1
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-dynamic-drawer.mjs +0 -321
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-dynamic-drawer.mjs.map +0 -1
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-editor-field.mjs +0 -96
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-editor-field.mjs.map +0 -1
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-entities.mjs +0 -572
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-entities.mjs.map +0 -1
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-field-validation.mjs +0 -103
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-field-validation.mjs.map +0 -1
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-formula.mjs +0 -3102
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-formula.mjs.map +0 -1
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-icon-field.mjs +0 -63
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-icon-field.mjs.map +0 -1
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-list.mjs +0 -31
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-list.mjs.map +0 -1
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-menu.mjs +0 -136
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-menu.mjs.map +0 -1
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-modal.mjs +0 -50
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-modal.mjs.map +0 -1
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-module-summary-card.mjs +0 -32
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-module-summary-card.mjs.map +0 -1
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-multi-select-field.mjs +0 -197
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-multi-select-field.mjs.map +0 -1
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-number-field.mjs +0 -95
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-number-field.mjs.map +0 -1
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-page-header.mjs +0 -42
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-page-header.mjs.map +0 -1
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-page.mjs +0 -35
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-page.mjs.map +0 -1
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-paginator.mjs +0 -44
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-paginator.mjs.map +0 -1
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-pick-list-field.mjs +0 -204
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-pick-list-field.mjs.map +0 -1
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-progress.mjs +0 -41
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-progress.mjs.map +0 -1
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-property-filter-builder.mjs +0 -383
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-property-filter-builder.mjs.map +0 -1
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-radio-button-field.mjs +0 -85
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-radio-button-field.mjs.map +0 -1
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-radio-cards-field.mjs +0 -68
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-radio-cards-field.mjs.map +0 -1
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-radio-cards.mjs +0 -74
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-radio-cards.mjs.map +0 -1
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-select-field.mjs +0 -258
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-select-field.mjs.map +0 -1
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-sidebar.mjs +0 -36
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-sidebar.mjs.map +0 -1
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-slider-field.mjs +0 -104
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-slider-field.mjs.map +0 -1
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-statistic-card.mjs +0 -21
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-statistic-card.mjs.map +0 -1
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-table.mjs +0 -583
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-table.mjs.map +0 -1
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-tabs.mjs +0 -44
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-tabs.mjs.map +0 -1
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-text-field.mjs +0 -159
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-text-field.mjs.map +0 -1
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-textarea-field.mjs +0 -92
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-textarea-field.mjs.map +0 -1
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-toast.mjs +0 -75
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-toast.mjs.map +0 -1
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-toggle-field.mjs +0 -104
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-toggle-field.mjs.map +0 -1
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-tooltip.mjs +0 -45
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-tooltip.mjs.map +0 -1
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-topbar.mjs +0 -28
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-topbar.mjs.map +0 -1
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-tree.mjs +0 -219
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-tree.mjs.map +0 -1
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-upload-field.mjs +0 -480
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-upload-field.mjs.map +0 -1
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-user-search-field.mjs +0 -153
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-user-search-field.mjs.map +0 -1
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components.mjs +0 -1338
- package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components.mjs.map +0 -1
- package/.codex-tmp-pack/extract/package/types/masterteam-components-avatar-text.d.ts +0 -23
- package/.codex-tmp-pack/extract/package/types/masterteam-components-avatar.d.ts +0 -21
- package/.codex-tmp-pack/extract/package/types/masterteam-components-breadcrumb.d.ts +0 -18
- package/.codex-tmp-pack/extract/package/types/masterteam-components-business-fields.d.ts +0 -114
- package/.codex-tmp-pack/extract/package/types/masterteam-components-button-group.d.ts +0 -8
- package/.codex-tmp-pack/extract/package/types/masterteam-components-button.d.ts +0 -36
- package/.codex-tmp-pack/extract/package/types/masterteam-components-card.d.ts +0 -14
- package/.codex-tmp-pack/extract/package/types/masterteam-components-checkbox-field.d.ts +0 -34
- package/.codex-tmp-pack/extract/package/types/masterteam-components-chip.d.ts +0 -19
- package/.codex-tmp-pack/extract/package/types/masterteam-components-client-page-menu.d.ts +0 -35
- package/.codex-tmp-pack/extract/package/types/masterteam-components-client-page.d.ts +0 -42
- package/.codex-tmp-pack/extract/package/types/masterteam-components-color-picker-field.d.ts +0 -35
- package/.codex-tmp-pack/extract/package/types/masterteam-components-confirmation.d.ts +0 -41
- package/.codex-tmp-pack/extract/package/types/masterteam-components-date-field.d.ts +0 -41
- package/.codex-tmp-pack/extract/package/types/masterteam-components-dialog.d.ts +0 -12
- package/.codex-tmp-pack/extract/package/types/masterteam-components-drawer.d.ts +0 -30
- package/.codex-tmp-pack/extract/package/types/masterteam-components-dynamic-drawer.d.ts +0 -93
- package/.codex-tmp-pack/extract/package/types/masterteam-components-editor-field.d.ts +0 -34
- package/.codex-tmp-pack/extract/package/types/masterteam-components-entities.d.ts +0 -326
- package/.codex-tmp-pack/extract/package/types/masterteam-components-field-validation.d.ts +0 -13
- package/.codex-tmp-pack/extract/package/types/masterteam-components-formula.d.ts +0 -651
- package/.codex-tmp-pack/extract/package/types/masterteam-components-icon-field.d.ts +0 -27
- package/.codex-tmp-pack/extract/package/types/masterteam-components-list.d.ts +0 -18
- package/.codex-tmp-pack/extract/package/types/masterteam-components-menu.d.ts +0 -55
- package/.codex-tmp-pack/extract/package/types/masterteam-components-modal.d.ts +0 -18
- package/.codex-tmp-pack/extract/package/types/masterteam-components-module-summary-card.d.ts +0 -17
- package/.codex-tmp-pack/extract/package/types/masterteam-components-multi-select-field.d.ts +0 -74
- package/.codex-tmp-pack/extract/package/types/masterteam-components-number-field.d.ts +0 -42
- package/.codex-tmp-pack/extract/package/types/masterteam-components-page-header.d.ts +0 -30
- package/.codex-tmp-pack/extract/package/types/masterteam-components-page.d.ts +0 -26
- package/.codex-tmp-pack/extract/package/types/masterteam-components-paginator.d.ts +0 -20
- package/.codex-tmp-pack/extract/package/types/masterteam-components-pick-list-field.d.ts +0 -60
- package/.codex-tmp-pack/extract/package/types/masterteam-components-progress.d.ts +0 -20
- package/.codex-tmp-pack/extract/package/types/masterteam-components-property-filter-builder.d.ts +0 -90
- package/.codex-tmp-pack/extract/package/types/masterteam-components-radio-button-field.d.ts +0 -41
- package/.codex-tmp-pack/extract/package/types/masterteam-components-radio-cards-field.d.ts +0 -30
- package/.codex-tmp-pack/extract/package/types/masterteam-components-radio-cards.d.ts +0 -33
- package/.codex-tmp-pack/extract/package/types/masterteam-components-select-field.d.ts +0 -84
- package/.codex-tmp-pack/extract/package/types/masterteam-components-sidebar.d.ts +0 -28
- package/.codex-tmp-pack/extract/package/types/masterteam-components-slider-field.d.ts +0 -45
- package/.codex-tmp-pack/extract/package/types/masterteam-components-statistic-card.d.ts +0 -17
- package/.codex-tmp-pack/extract/package/types/masterteam-components-table.d.ts +0 -207
- package/.codex-tmp-pack/extract/package/types/masterteam-components-tabs.d.ts +0 -23
- package/.codex-tmp-pack/extract/package/types/masterteam-components-text-field.d.ts +0 -44
- package/.codex-tmp-pack/extract/package/types/masterteam-components-textarea-field.d.ts +0 -38
- package/.codex-tmp-pack/extract/package/types/masterteam-components-toast.d.ts +0 -26
- package/.codex-tmp-pack/extract/package/types/masterteam-components-toggle-field.d.ts +0 -41
- package/.codex-tmp-pack/extract/package/types/masterteam-components-tooltip.d.ts +0 -9
- package/.codex-tmp-pack/extract/package/types/masterteam-components-topbar.d.ts +0 -17
- package/.codex-tmp-pack/extract/package/types/masterteam-components-tree.d.ts +0 -98
- package/.codex-tmp-pack/extract/package/types/masterteam-components-upload-field.d.ts +0 -77
- package/.codex-tmp-pack/extract/package/types/masterteam-components-user-search-field.d.ts +0 -61
- package/.codex-tmp-pack/extract/package/types/masterteam-components.d.ts +0 -780
- package/.codex-tmp-pack/masterteam-components-0.0.108.tgz +0 -0
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { model, input, booleanAttribute, output, Component } from '@angular/core';
|
|
3
|
-
import { FormsModule } from '@angular/forms';
|
|
4
|
-
import * as i1 from 'primeng/paginator';
|
|
5
|
-
import { PaginatorModule } from 'primeng/paginator';
|
|
6
|
-
import * as i3 from '@jsverse/transloco';
|
|
7
|
-
import { TranslocoModule } from '@jsverse/transloco';
|
|
8
|
-
import * as i2 from 'primeng/api';
|
|
9
|
-
|
|
10
|
-
class Paginator {
|
|
11
|
-
rows = model(10, ...(ngDevMode ? [{ debugName: "rows" }] : []));
|
|
12
|
-
totalRecords = input(0, ...(ngDevMode ? [{ debugName: "totalRecords" }] : []));
|
|
13
|
-
first = model(0, ...(ngDevMode ? [{ debugName: "first" }] : []));
|
|
14
|
-
page = model(0, ...(ngDevMode ? [{ debugName: "page" }] : []));
|
|
15
|
-
rowsPerPageOptions = input(undefined, ...(ngDevMode ? [{ debugName: "rowsPerPageOptions" }] : []));
|
|
16
|
-
showFirstLastIcon = input(false, { ...(ngDevMode ? { debugName: "showFirstLastIcon" } : {}), transform: booleanAttribute });
|
|
17
|
-
showCurrentPageReport = input(false, { ...(ngDevMode ? { debugName: "showCurrentPageReport" } : {}), transform: booleanAttribute });
|
|
18
|
-
fluid = input(false, { ...(ngDevMode ? { debugName: "fluid" } : {}), transform: booleanAttribute });
|
|
19
|
-
// Paginator Inputs
|
|
20
|
-
pageLinkSize = input(6, ...(ngDevMode ? [{ debugName: "pageLinkSize" }] : []));
|
|
21
|
-
alwaysShow = input(true, { ...(ngDevMode ? { debugName: "alwaysShow" } : {}), transform: booleanAttribute });
|
|
22
|
-
onPageChange = output();
|
|
23
|
-
onPaginatorChange(event) {
|
|
24
|
-
this.first.set(event.first);
|
|
25
|
-
this.page.set(event.page);
|
|
26
|
-
this.rows.set(event.rows);
|
|
27
|
-
this.onPageChange.emit(event);
|
|
28
|
-
}
|
|
29
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.3", ngImport: i0, type: Paginator, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
30
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.3", type: Paginator, isStandalone: true, selector: "mt-paginator", inputs: { rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, totalRecords: { classPropertyName: "totalRecords", publicName: "totalRecords", isSignal: true, isRequired: false, transformFunction: null }, first: { classPropertyName: "first", publicName: "first", isSignal: true, isRequired: false, transformFunction: null }, page: { classPropertyName: "page", publicName: "page", isSignal: true, isRequired: false, transformFunction: null }, rowsPerPageOptions: { classPropertyName: "rowsPerPageOptions", publicName: "rowsPerPageOptions", isSignal: true, isRequired: false, transformFunction: null }, showFirstLastIcon: { classPropertyName: "showFirstLastIcon", publicName: "showFirstLastIcon", isSignal: true, isRequired: false, transformFunction: null }, showCurrentPageReport: { classPropertyName: "showCurrentPageReport", publicName: "showCurrentPageReport", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null }, pageLinkSize: { classPropertyName: "pageLinkSize", publicName: "pageLinkSize", isSignal: true, isRequired: false, transformFunction: null }, alwaysShow: { classPropertyName: "alwaysShow", publicName: "alwaysShow", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { rows: "rowsChange", first: "firstChange", page: "pageChange", onPageChange: "onPageChange" }, host: { classAttribute: "grid gap-1" }, ngImport: i0, template: "<p-paginator\r\n [rows]=\"rows()\"\r\n [totalRecords]=\"totalRecords()\"\r\n [first]=\"first()\"\r\n [pageLinkSize]=\"pageLinkSize()\"\r\n [rowsPerPageOptions]=\"rowsPerPageOptions()\"\r\n [showFirstLastIcon]=\"showFirstLastIcon()\"\r\n [showCurrentPageReport]=\"showCurrentPageReport()\"\r\n [alwaysShow]=\"alwaysShow()\"\r\n (onPageChange)=\"onPaginatorChange($event)\"\r\n appendTo=\"body\"\r\n>\r\n <ng-template pTemplate=\"previouspagelinkicon\">\r\n <div class=\"flex items-center justify-center px-3 gap-3\">\r\n <svg\r\n width=\"12\"\r\n height=\"12\"\r\n viewBox=\"0 0 14 14\"\r\n fill=\"none\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n >\r\n <path\r\n d=\"M12.8346 6.99984H1.16797M1.16797 6.99984L7.0013 12.8332M1.16797 6.99984L7.0013 1.1665\"\r\n stroke=\"#414651\"\r\n stroke-width=\"1.67\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n />\r\n </svg>\r\n <span class=\"rtl:rotate-180\">\r\n {{ \"components.paginator.previous\" | transloco }}\r\n </span>\r\n </div>\r\n </ng-template>\r\n\r\n <ng-template pTemplate=\"nextpagelinkicon\">\r\n <div class=\"flex items-center justify-center px-3 gap-3\">\r\n <span class=\"rtl:rotate-180\">\r\n {{ \"components.paginator.next\" | transloco }}</span\r\n >\r\n <svg\r\n width=\"12\"\r\n height=\"12\"\r\n viewBox=\"0 0 14 14\"\r\n fill=\"none\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n >\r\n <path\r\n d=\"M1.16797 6.99984H12.8346M12.8346 6.99984L7.0013 1.1665M12.8346 6.99984L7.0013 12.8332\"\r\n stroke=\"#414651\"\r\n stroke-width=\"1.67\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n />\r\n </svg>\r\n </div>\r\n </ng-template>\r\n</p-paginator>\r\n", styles: [""], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: PaginatorModule }, { kind: "component", type: i1.Paginator, selector: "p-paginator", inputs: ["pageLinkSize", "styleClass", "alwaysShow", "dropdownAppendTo", "templateLeft", "templateRight", "dropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showFirstLastIcon", "totalRecords", "rows", "rowsPerPageOptions", "showJumpToPageDropdown", "showJumpToPageInput", "jumpToPageItemTemplate", "showPageLinks", "locale", "dropdownItemTemplate", "first", "appendTo"], outputs: ["onPageChange"] }, { kind: "directive", type: i2.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "ngmodule", type: TranslocoModule }, { kind: "pipe", type: i3.TranslocoPipe, name: "transloco" }] });
|
|
31
|
-
}
|
|
32
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.3", ngImport: i0, type: Paginator, decorators: [{
|
|
33
|
-
type: Component,
|
|
34
|
-
args: [{ selector: 'mt-paginator', standalone: true, imports: [FormsModule, PaginatorModule, TranslocoModule], host: {
|
|
35
|
-
class: 'grid gap-1',
|
|
36
|
-
}, template: "<p-paginator\r\n [rows]=\"rows()\"\r\n [totalRecords]=\"totalRecords()\"\r\n [first]=\"first()\"\r\n [pageLinkSize]=\"pageLinkSize()\"\r\n [rowsPerPageOptions]=\"rowsPerPageOptions()\"\r\n [showFirstLastIcon]=\"showFirstLastIcon()\"\r\n [showCurrentPageReport]=\"showCurrentPageReport()\"\r\n [alwaysShow]=\"alwaysShow()\"\r\n (onPageChange)=\"onPaginatorChange($event)\"\r\n appendTo=\"body\"\r\n>\r\n <ng-template pTemplate=\"previouspagelinkicon\">\r\n <div class=\"flex items-center justify-center px-3 gap-3\">\r\n <svg\r\n width=\"12\"\r\n height=\"12\"\r\n viewBox=\"0 0 14 14\"\r\n fill=\"none\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n >\r\n <path\r\n d=\"M12.8346 6.99984H1.16797M1.16797 6.99984L7.0013 12.8332M1.16797 6.99984L7.0013 1.1665\"\r\n stroke=\"#414651\"\r\n stroke-width=\"1.67\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n />\r\n </svg>\r\n <span class=\"rtl:rotate-180\">\r\n {{ \"components.paginator.previous\" | transloco }}\r\n </span>\r\n </div>\r\n </ng-template>\r\n\r\n <ng-template pTemplate=\"nextpagelinkicon\">\r\n <div class=\"flex items-center justify-center px-3 gap-3\">\r\n <span class=\"rtl:rotate-180\">\r\n {{ \"components.paginator.next\" | transloco }}</span\r\n >\r\n <svg\r\n width=\"12\"\r\n height=\"12\"\r\n viewBox=\"0 0 14 14\"\r\n fill=\"none\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n >\r\n <path\r\n d=\"M1.16797 6.99984H12.8346M12.8346 6.99984L7.0013 1.1665M12.8346 6.99984L7.0013 12.8332\"\r\n stroke=\"#414651\"\r\n stroke-width=\"1.67\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n />\r\n </svg>\r\n </div>\r\n </ng-template>\r\n</p-paginator>\r\n" }]
|
|
37
|
-
}], propDecorators: { rows: [{ type: i0.Input, args: [{ isSignal: true, alias: "rows", required: false }] }, { type: i0.Output, args: ["rowsChange"] }], totalRecords: [{ type: i0.Input, args: [{ isSignal: true, alias: "totalRecords", required: false }] }], first: [{ type: i0.Input, args: [{ isSignal: true, alias: "first", required: false }] }, { type: i0.Output, args: ["firstChange"] }], page: [{ type: i0.Input, args: [{ isSignal: true, alias: "page", required: false }] }, { type: i0.Output, args: ["pageChange"] }], rowsPerPageOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowsPerPageOptions", required: false }] }], showFirstLastIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showFirstLastIcon", required: false }] }], showCurrentPageReport: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCurrentPageReport", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], pageLinkSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageLinkSize", required: false }] }], alwaysShow: [{ type: i0.Input, args: [{ isSignal: true, alias: "alwaysShow", required: false }] }], onPageChange: [{ type: i0.Output, args: ["onPageChange"] }] } });
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Generated bundle index. Do not edit.
|
|
41
|
-
*/
|
|
42
|
-
|
|
43
|
-
export { Paginator };
|
|
44
|
-
//# sourceMappingURL=masterteam-components-paginator.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"masterteam-components-paginator.mjs","sources":["../../../../packages/masterteam/components/paginator/paginator.ts","../../../../packages/masterteam/components/paginator/paginator.html","../../../../packages/masterteam/components/paginator/masterteam-components-paginator.ts"],"sourcesContent":["import {\r\n booleanAttribute,\r\n Component,\r\n input,\r\n output,\r\n model,\r\n} from '@angular/core';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { PaginatorModule } from 'primeng/paginator';\r\nimport { TranslocoModule } from '@jsverse/transloco';\r\n\r\n@Component({\r\n selector: 'mt-paginator',\r\n standalone: true,\r\n imports: [FormsModule, PaginatorModule, TranslocoModule],\r\n templateUrl: './paginator.html',\r\n styleUrls: ['./paginator.scss'],\r\n host: {\r\n class: 'grid gap-1',\r\n },\r\n})\r\nexport class Paginator {\r\n readonly rows = model<number>(10);\r\n readonly totalRecords = input<number>(0);\r\n readonly first = model<number>(0);\r\n readonly page = model<number>(0);\r\n readonly rowsPerPageOptions = input<number[] | undefined>(undefined);\r\n readonly showFirstLastIcon = input<boolean, unknown>(false, {\r\n transform: booleanAttribute,\r\n });\r\n\r\n readonly showCurrentPageReport = input<boolean, unknown>(false, {\r\n transform: booleanAttribute,\r\n });\r\n readonly fluid = input<boolean, unknown>(false, {\r\n transform: booleanAttribute,\r\n });\r\n\r\n // Paginator Inputs\r\n readonly pageLinkSize = input<number | undefined>(6);\r\n readonly alwaysShow = input<boolean, unknown>(true, {\r\n transform: booleanAttribute,\r\n });\r\n\r\n readonly onPageChange = output<any>();\r\n\r\n onPaginatorChange(event: any) {\r\n this.first.set(event.first);\r\n this.page.set(event.page);\r\n this.rows.set(event.rows);\r\n this.onPageChange.emit(event);\r\n }\r\n}\r\n","<p-paginator\r\n [rows]=\"rows()\"\r\n [totalRecords]=\"totalRecords()\"\r\n [first]=\"first()\"\r\n [pageLinkSize]=\"pageLinkSize()\"\r\n [rowsPerPageOptions]=\"rowsPerPageOptions()\"\r\n [showFirstLastIcon]=\"showFirstLastIcon()\"\r\n [showCurrentPageReport]=\"showCurrentPageReport()\"\r\n [alwaysShow]=\"alwaysShow()\"\r\n (onPageChange)=\"onPaginatorChange($event)\"\r\n appendTo=\"body\"\r\n>\r\n <ng-template pTemplate=\"previouspagelinkicon\">\r\n <div class=\"flex items-center justify-center px-3 gap-3\">\r\n <svg\r\n width=\"12\"\r\n height=\"12\"\r\n viewBox=\"0 0 14 14\"\r\n fill=\"none\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n >\r\n <path\r\n d=\"M12.8346 6.99984H1.16797M1.16797 6.99984L7.0013 12.8332M1.16797 6.99984L7.0013 1.1665\"\r\n stroke=\"#414651\"\r\n stroke-width=\"1.67\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n />\r\n </svg>\r\n <span class=\"rtl:rotate-180\">\r\n {{ \"components.paginator.previous\" | transloco }}\r\n </span>\r\n </div>\r\n </ng-template>\r\n\r\n <ng-template pTemplate=\"nextpagelinkicon\">\r\n <div class=\"flex items-center justify-center px-3 gap-3\">\r\n <span class=\"rtl:rotate-180\">\r\n {{ \"components.paginator.next\" | transloco }}</span\r\n >\r\n <svg\r\n width=\"12\"\r\n height=\"12\"\r\n viewBox=\"0 0 14 14\"\r\n fill=\"none\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n >\r\n <path\r\n d=\"M1.16797 6.99984H12.8346M12.8346 6.99984L7.0013 1.1665M12.8346 6.99984L7.0013 12.8332\"\r\n stroke=\"#414651\"\r\n stroke-width=\"1.67\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n />\r\n </svg>\r\n </div>\r\n </ng-template>\r\n</p-paginator>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;MAqBa,SAAS,CAAA;AACX,IAAA,IAAI,GAAG,KAAK,CAAS,EAAE,gDAAC;AACxB,IAAA,YAAY,GAAG,KAAK,CAAS,CAAC,wDAAC;AAC/B,IAAA,KAAK,GAAG,KAAK,CAAS,CAAC,iDAAC;AACxB,IAAA,IAAI,GAAG,KAAK,CAAS,CAAC,gDAAC;AACvB,IAAA,kBAAkB,GAAG,KAAK,CAAuB,SAAS,8DAAC;IAC3D,iBAAiB,GAAG,KAAK,CAAmB,KAAK,8DACxD,SAAS,EAAE,gBAAgB,EAAA,CAC3B;IAEO,qBAAqB,GAAG,KAAK,CAAmB,KAAK,kEAC5D,SAAS,EAAE,gBAAgB,EAAA,CAC3B;IACO,KAAK,GAAG,KAAK,CAAmB,KAAK,kDAC5C,SAAS,EAAE,gBAAgB,EAAA,CAC3B;;AAGO,IAAA,YAAY,GAAG,KAAK,CAAqB,CAAC,wDAAC;IAC3C,UAAU,GAAG,KAAK,CAAmB,IAAI,uDAChD,SAAS,EAAE,gBAAgB,EAA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
import { input, signal, inject, effect, ViewChild, HostBinding, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
-
import { Validators, NgControl } from '@angular/forms';
|
|
4
|
-
import * as i1 from 'primeng/picklist';
|
|
5
|
-
import { PickListModule } from 'primeng/picklist';
|
|
6
|
-
import { FieldValidation } from '@masterteam/components/field-validation';
|
|
7
|
-
import { isInvalid } from '@masterteam/components';
|
|
8
|
-
import * as i2 from 'primeng/api';
|
|
9
|
-
|
|
10
|
-
class PickListField {
|
|
11
|
-
label = input(...(ngDevMode ? [undefined, { debugName: "label" }] : []));
|
|
12
|
-
class = input('', ...(ngDevMode ? [{ debugName: "class" }] : []));
|
|
13
|
-
readonly = input(false, ...(ngDevMode ? [{ debugName: "readonly" }] : []));
|
|
14
|
-
options = input([], ...(ngDevMode ? [{ debugName: "options" }] : []));
|
|
15
|
-
optionLabel = input('label', ...(ngDevMode ? [{ debugName: "optionLabel" }] : []));
|
|
16
|
-
optionValue = input('value', ...(ngDevMode ? [{ debugName: "optionValue" }] : []));
|
|
17
|
-
sourceHeader = input('Available', ...(ngDevMode ? [{ debugName: "sourceHeader" }] : []));
|
|
18
|
-
targetHeader = input('Selected', ...(ngDevMode ? [{ debugName: "targetHeader" }] : []));
|
|
19
|
-
showSourceControls = input(true, ...(ngDevMode ? [{ debugName: "showSourceControls" }] : []));
|
|
20
|
-
showTargetControls = input(true, ...(ngDevMode ? [{ debugName: "showTargetControls" }] : []));
|
|
21
|
-
showSourceFilter = input(false, ...(ngDevMode ? [{ debugName: "showSourceFilter" }] : []));
|
|
22
|
-
showTargetFilter = input(false, ...(ngDevMode ? [{ debugName: "showTargetFilter" }] : []));
|
|
23
|
-
filterBy = input(...(ngDevMode ? [undefined, { debugName: "filterBy" }] : []));
|
|
24
|
-
dataKey = input(...(ngDevMode ? [undefined, { debugName: "dataKey" }] : []));
|
|
25
|
-
filterLocale = input(...(ngDevMode ? [undefined, { debugName: "filterLocale" }] : []));
|
|
26
|
-
filterMatchMode = input('contains', ...(ngDevMode ? [{ debugName: "filterMatchMode" }] : []));
|
|
27
|
-
dragdrop = input(false, ...(ngDevMode ? [{ debugName: "dragdrop" }] : []));
|
|
28
|
-
responsive = input(true, ...(ngDevMode ? [{ debugName: "responsive" }] : []));
|
|
29
|
-
required = input(false, ...(ngDevMode ? [{ debugName: "required" }] : []));
|
|
30
|
-
styleClass = '';
|
|
31
|
-
requiredValidator = Validators.required;
|
|
32
|
-
value = signal([], ...(ngDevMode ? [{ debugName: "value" }] : []));
|
|
33
|
-
targetItems = signal([], ...(ngDevMode ? [{ debugName: "targetItems" }] : []));
|
|
34
|
-
sourceItems = signal([], ...(ngDevMode ? [{ debugName: "sourceItems" }] : []));
|
|
35
|
-
disabled = signal(false, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
|
|
36
|
-
onTouched = () => { };
|
|
37
|
-
onModelChange = () => { };
|
|
38
|
-
ngControl = inject(NgControl, { self: true });
|
|
39
|
-
isInvalid = isInvalid;
|
|
40
|
-
hasInitialized = false;
|
|
41
|
-
pickList;
|
|
42
|
-
constructor() {
|
|
43
|
-
if (this.ngControl) {
|
|
44
|
-
this.ngControl.valueAccessor = this;
|
|
45
|
-
}
|
|
46
|
-
effect(() => {
|
|
47
|
-
if (this.ngControl?.control && this.required()) {
|
|
48
|
-
this.ngControl.control.addValidators(Validators.required);
|
|
49
|
-
this.ngControl.control.updateValueAndValidity();
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
effect(() => {
|
|
53
|
-
this.options();
|
|
54
|
-
if (this.hasInitialized) {
|
|
55
|
-
this.syncLists();
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
ngOnInit() {
|
|
60
|
-
this.styleClass = this.class();
|
|
61
|
-
this.syncLists();
|
|
62
|
-
this.hasInitialized = true;
|
|
63
|
-
}
|
|
64
|
-
writeValue(value) {
|
|
65
|
-
const nextValue = Array.isArray(value)
|
|
66
|
-
? [...value]
|
|
67
|
-
: value === null || value === undefined
|
|
68
|
-
? []
|
|
69
|
-
: [value];
|
|
70
|
-
this.value.set(nextValue);
|
|
71
|
-
this.syncLists();
|
|
72
|
-
}
|
|
73
|
-
registerOnChange(fn) {
|
|
74
|
-
this.onModelChange = fn;
|
|
75
|
-
}
|
|
76
|
-
registerOnTouched(fn) {
|
|
77
|
-
this.onTouched = fn;
|
|
78
|
-
}
|
|
79
|
-
setDisabledState(disabled) {
|
|
80
|
-
this.disabled.set(disabled);
|
|
81
|
-
}
|
|
82
|
-
onInteractiveChange() {
|
|
83
|
-
this.syncFromPickList();
|
|
84
|
-
}
|
|
85
|
-
handleBlur() {
|
|
86
|
-
this.onTouched();
|
|
87
|
-
}
|
|
88
|
-
displayLabel(item) {
|
|
89
|
-
if (item === null || item === undefined) {
|
|
90
|
-
return '';
|
|
91
|
-
}
|
|
92
|
-
if (typeof item === 'string' || typeof item === 'number') {
|
|
93
|
-
return String(item);
|
|
94
|
-
}
|
|
95
|
-
const labelKey = this.optionLabel();
|
|
96
|
-
const nestedLabel = labelKey && labelKey.includes('.')
|
|
97
|
-
? this.getNestedValue(item, labelKey)
|
|
98
|
-
: undefined;
|
|
99
|
-
if (nestedLabel !== undefined) {
|
|
100
|
-
return nestedLabel;
|
|
101
|
-
}
|
|
102
|
-
if (labelKey && item[labelKey] !== undefined) {
|
|
103
|
-
return item[labelKey];
|
|
104
|
-
}
|
|
105
|
-
return JSON.stringify(item);
|
|
106
|
-
}
|
|
107
|
-
getNestedValue(target, path) {
|
|
108
|
-
if (!target || !path) {
|
|
109
|
-
return undefined;
|
|
110
|
-
}
|
|
111
|
-
return path
|
|
112
|
-
.split('.')
|
|
113
|
-
.reduce((acc, key) => acc !== null && acc !== undefined ? acc[key] : undefined, target);
|
|
114
|
-
}
|
|
115
|
-
syncLists() {
|
|
116
|
-
const currentValue = this.value();
|
|
117
|
-
const targetOptions = this.normalizeValueToOptions(currentValue);
|
|
118
|
-
this.targetItems.set(targetOptions);
|
|
119
|
-
this.updateSourceFromTarget(targetOptions);
|
|
120
|
-
}
|
|
121
|
-
syncFromPickList() {
|
|
122
|
-
const pickListInstance = this.pickList;
|
|
123
|
-
if (!pickListInstance) {
|
|
124
|
-
return;
|
|
125
|
-
}
|
|
126
|
-
const currentTarget = [...(pickListInstance.target() ?? [])];
|
|
127
|
-
const currentSource = [...(pickListInstance.source() ?? [])];
|
|
128
|
-
this.targetItems.set(currentTarget);
|
|
129
|
-
this.sourceItems.set(currentSource);
|
|
130
|
-
const newValue = this.extractValues(currentTarget);
|
|
131
|
-
this.value.set(newValue);
|
|
132
|
-
this.onModelChange(newValue);
|
|
133
|
-
this.onTouched();
|
|
134
|
-
}
|
|
135
|
-
normalizeValueToOptions(value) {
|
|
136
|
-
if (!Array.isArray(value)) {
|
|
137
|
-
return [];
|
|
138
|
-
}
|
|
139
|
-
return value
|
|
140
|
-
.map((entry) => this.findOption(entry) ?? entry)
|
|
141
|
-
.filter((item) => item !== undefined && item !== null);
|
|
142
|
-
}
|
|
143
|
-
extractValues(items) {
|
|
144
|
-
const optionValueKey = this.optionValue();
|
|
145
|
-
if (!optionValueKey) {
|
|
146
|
-
return items ?? [];
|
|
147
|
-
}
|
|
148
|
-
const values = [];
|
|
149
|
-
(items ?? []).forEach((item) => {
|
|
150
|
-
if (item && typeof item === 'object') {
|
|
151
|
-
values.push(item[optionValueKey] ?? item);
|
|
152
|
-
}
|
|
153
|
-
else {
|
|
154
|
-
values.push(item);
|
|
155
|
-
}
|
|
156
|
-
});
|
|
157
|
-
return values;
|
|
158
|
-
}
|
|
159
|
-
updateSourceFromTarget(targetItems) {
|
|
160
|
-
const options = this.options() ?? [];
|
|
161
|
-
const targetIds = new Set((targetItems ?? []).map((item) => this.getIdentifier(item)));
|
|
162
|
-
const newSource = options.filter((option) => !targetIds.has(this.getIdentifier(option)));
|
|
163
|
-
this.sourceItems.set(newSource);
|
|
164
|
-
}
|
|
165
|
-
getIdentifier(item) {
|
|
166
|
-
if (item === null || item === undefined) {
|
|
167
|
-
return item;
|
|
168
|
-
}
|
|
169
|
-
const optionValueKey = this.optionValue();
|
|
170
|
-
if (!optionValueKey) {
|
|
171
|
-
return item;
|
|
172
|
-
}
|
|
173
|
-
if (typeof item === 'object') {
|
|
174
|
-
return item[optionValueKey];
|
|
175
|
-
}
|
|
176
|
-
return item;
|
|
177
|
-
}
|
|
178
|
-
findOption(entry) {
|
|
179
|
-
const options = this.options() ?? [];
|
|
180
|
-
const entryId = this.getIdentifier(entry);
|
|
181
|
-
return options.find((option) => this.getIdentifier(option) === entryId);
|
|
182
|
-
}
|
|
183
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.3", ngImport: i0, type: PickListField, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
184
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.3", type: PickListField, isStandalone: true, selector: "mt-pick-list-field", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, optionLabel: { classPropertyName: "optionLabel", publicName: "optionLabel", isSignal: true, isRequired: false, transformFunction: null }, optionValue: { classPropertyName: "optionValue", publicName: "optionValue", isSignal: true, isRequired: false, transformFunction: null }, sourceHeader: { classPropertyName: "sourceHeader", publicName: "sourceHeader", isSignal: true, isRequired: false, transformFunction: null }, targetHeader: { classPropertyName: "targetHeader", publicName: "targetHeader", isSignal: true, isRequired: false, transformFunction: null }, showSourceControls: { classPropertyName: "showSourceControls", publicName: "showSourceControls", isSignal: true, isRequired: false, transformFunction: null }, showTargetControls: { classPropertyName: "showTargetControls", publicName: "showTargetControls", isSignal: true, isRequired: false, transformFunction: null }, showSourceFilter: { classPropertyName: "showSourceFilter", publicName: "showSourceFilter", isSignal: true, isRequired: false, transformFunction: null }, showTargetFilter: { classPropertyName: "showTargetFilter", publicName: "showTargetFilter", isSignal: true, isRequired: false, transformFunction: null }, filterBy: { classPropertyName: "filterBy", publicName: "filterBy", isSignal: true, isRequired: false, transformFunction: null }, dataKey: { classPropertyName: "dataKey", publicName: "dataKey", isSignal: true, isRequired: false, transformFunction: null }, filterLocale: { classPropertyName: "filterLocale", publicName: "filterLocale", isSignal: true, isRequired: false, transformFunction: null }, filterMatchMode: { classPropertyName: "filterMatchMode", publicName: "filterMatchMode", isSignal: true, isRequired: false, transformFunction: null }, dragdrop: { classPropertyName: "dragdrop", publicName: "dragdrop", isSignal: true, isRequired: false, transformFunction: null }, responsive: { classPropertyName: "responsive", publicName: "responsive", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "this.styleClass" }, classAttribute: "grid gap-1" }, viewQueries: [{ propertyName: "pickList", first: true, predicate: ["pickList"], descendants: true }], ngImport: i0, template: "@if (label()) {\r\n <label\r\n [class.required]=\"ngControl?.control?.hasValidator(requiredValidator)\"\r\n [for]=\"ngControl?.name || label()\"\r\n >{{ label() }}</label\r\n >\r\n}\r\n<p-pickList\r\n #pickList\r\n [source]=\"sourceItems()\"\r\n [target]=\"targetItems()\"\r\n (onMoveToTarget)=\"onInteractiveChange()\"\r\n (onMoveToSource)=\"onInteractiveChange()\"\r\n (onMoveAllToTarget)=\"onInteractiveChange()\"\r\n (onMoveAllToSource)=\"onInteractiveChange()\"\r\n (onTargetReorder)=\"onInteractiveChange()\"\r\n (onSourceReorder)=\"onInteractiveChange()\"\r\n (onBlur)=\"handleBlur()\"\r\n [filterBy]=\"filterBy() || optionLabel()\"\r\n [showSourceControls]=\"showSourceControls()\"\r\n [showTargetControls]=\"showTargetControls()\"\r\n [showSourceFilter]=\"showSourceFilter()\"\r\n [showTargetFilter]=\"showTargetFilter()\"\r\n [sourceHeader]=\"sourceHeader()\"\r\n [targetHeader]=\"targetHeader()\"\r\n [dragdrop]=\"dragdrop()\"\r\n [responsive]=\"responsive()\"\r\n [disabled]=\"disabled() || readonly()\"\r\n [styleClass]=\"'w-full relative'\"\r\n [class.p-invalid]=\"isInvalid(ngControl?.control)\"\r\n>\r\n <ng-template let-item pTemplate=\"item\">\r\n {{ displayLabel(item) }}\r\n </ng-template>\r\n</p-pickList>\r\n\r\n<mt-field-validation [control]=\"ngControl?.control\"></mt-field-validation>\r\n", styles: [":host{display:block}\n"], dependencies: [{ kind: "ngmodule", type: PickListModule }, { kind: "component", type: i1.PickList, selector: "p-pickList, p-picklist, p-pick-list", inputs: ["hostName", "source", "target", "dataKey", "sourceHeader", "tabindex", "rightButtonAriaLabel", "leftButtonAriaLabel", "allRightButtonAriaLabel", "allLeftButtonAriaLabel", "upButtonAriaLabel", "downButtonAriaLabel", "topButtonAriaLabel", "bottomButtonAriaLabel", "sourceAriaLabel", "targetAriaLabel", "targetHeader", "responsive", "filterBy", "filterLocale", "trackBy", "sourceTrackBy", "targetTrackBy", "showSourceFilter", "showTargetFilter", "metaKeySelection", "dragdrop", "style", "styleClass", "sourceStyle", "targetStyle", "showSourceControls", "showTargetControls", "sourceFilterPlaceholder", "targetFilterPlaceholder", "disabled", "sourceOptionDisabled", "targetOptionDisabled", "ariaSourceFilterLabel", "ariaTargetFilterLabel", "filterMatchMode", "stripedRows", "keepSelection", "scrollHeight", "autoOptionFocus", "buttonProps", "moveUpButtonProps", "moveTopButtonProps", "moveDownButtonProps", "moveBottomButtonProps", "moveToTargetProps", "moveAllToTargetProps", "moveToSourceProps", "moveAllToSourceProps", "breakpoint"], outputs: ["sourceChange", "targetChange", "onMoveToSource", "onMoveAllToSource", "onMoveAllToTarget", "onMoveToTarget", "onSourceReorder", "onTargetReorder", "onSourceSelect", "onTargetSelect", "onSourceFilter", "onTargetFilter", "onFocus", "onBlur"] }, { kind: "directive", type: i2.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: FieldValidation, selector: "mt-field-validation", inputs: ["control", "touched"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
185
|
-
}
|
|
186
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.3", ngImport: i0, type: PickListField, decorators: [{
|
|
187
|
-
type: Component,
|
|
188
|
-
args: [{ selector: 'mt-pick-list-field', imports: [PickListModule, FieldValidation], changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
189
|
-
class: 'grid gap-1',
|
|
190
|
-
}, template: "@if (label()) {\r\n <label\r\n [class.required]=\"ngControl?.control?.hasValidator(requiredValidator)\"\r\n [for]=\"ngControl?.name || label()\"\r\n >{{ label() }}</label\r\n >\r\n}\r\n<p-pickList\r\n #pickList\r\n [source]=\"sourceItems()\"\r\n [target]=\"targetItems()\"\r\n (onMoveToTarget)=\"onInteractiveChange()\"\r\n (onMoveToSource)=\"onInteractiveChange()\"\r\n (onMoveAllToTarget)=\"onInteractiveChange()\"\r\n (onMoveAllToSource)=\"onInteractiveChange()\"\r\n (onTargetReorder)=\"onInteractiveChange()\"\r\n (onSourceReorder)=\"onInteractiveChange()\"\r\n (onBlur)=\"handleBlur()\"\r\n [filterBy]=\"filterBy() || optionLabel()\"\r\n [showSourceControls]=\"showSourceControls()\"\r\n [showTargetControls]=\"showTargetControls()\"\r\n [showSourceFilter]=\"showSourceFilter()\"\r\n [showTargetFilter]=\"showTargetFilter()\"\r\n [sourceHeader]=\"sourceHeader()\"\r\n [targetHeader]=\"targetHeader()\"\r\n [dragdrop]=\"dragdrop()\"\r\n [responsive]=\"responsive()\"\r\n [disabled]=\"disabled() || readonly()\"\r\n [styleClass]=\"'w-full relative'\"\r\n [class.p-invalid]=\"isInvalid(ngControl?.control)\"\r\n>\r\n <ng-template let-item pTemplate=\"item\">\r\n {{ displayLabel(item) }}\r\n </ng-template>\r\n</p-pickList>\r\n\r\n<mt-field-validation [control]=\"ngControl?.control\"></mt-field-validation>\r\n", styles: [":host{display:block}\n"] }]
|
|
191
|
-
}], ctorParameters: () => [], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], optionLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionLabel", required: false }] }], optionValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionValue", required: false }] }], sourceHeader: [{ type: i0.Input, args: [{ isSignal: true, alias: "sourceHeader", required: false }] }], targetHeader: [{ type: i0.Input, args: [{ isSignal: true, alias: "targetHeader", required: false }] }], showSourceControls: [{ type: i0.Input, args: [{ isSignal: true, alias: "showSourceControls", required: false }] }], showTargetControls: [{ type: i0.Input, args: [{ isSignal: true, alias: "showTargetControls", required: false }] }], showSourceFilter: [{ type: i0.Input, args: [{ isSignal: true, alias: "showSourceFilter", required: false }] }], showTargetFilter: [{ type: i0.Input, args: [{ isSignal: true, alias: "showTargetFilter", required: false }] }], filterBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterBy", required: false }] }], dataKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataKey", required: false }] }], filterLocale: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterLocale", required: false }] }], filterMatchMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterMatchMode", required: false }] }], dragdrop: [{ type: i0.Input, args: [{ isSignal: true, alias: "dragdrop", required: false }] }], responsive: [{ type: i0.Input, args: [{ isSignal: true, alias: "responsive", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], styleClass: [{
|
|
192
|
-
type: HostBinding,
|
|
193
|
-
args: ['class']
|
|
194
|
-
}], pickList: [{
|
|
195
|
-
type: ViewChild,
|
|
196
|
-
args: ['pickList']
|
|
197
|
-
}] } });
|
|
198
|
-
|
|
199
|
-
/**
|
|
200
|
-
* Generated bundle index. Do not edit.
|
|
201
|
-
*/
|
|
202
|
-
|
|
203
|
-
export { PickListField };
|
|
204
|
-
//# sourceMappingURL=masterteam-components-pick-list-field.mjs.map
|
package/.codex-tmp-pack/extract/package/fesm2022/masterteam-components-pick-list-field.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"masterteam-components-pick-list-field.mjs","sources":["../../../../packages/masterteam/components/pick-list-field/pick-list-field.ts","../../../../packages/masterteam/components/pick-list-field/pick-list-field.html","../../../../packages/masterteam/components/pick-list-field/masterteam-components-pick-list-field.ts"],"sourcesContent":["import {\r\n ChangeDetectionStrategy,\r\n Component,\r\n HostBinding,\r\n OnInit,\r\n ViewChild,\r\n effect,\r\n inject,\r\n input,\r\n signal,\r\n} from '@angular/core';\r\nimport { ControlValueAccessor, NgControl, Validators } from '@angular/forms';\r\nimport { PickList, PickListModule } from 'primeng/picklist';\r\nimport { FieldValidation } from '@masterteam/components/field-validation';\r\nimport { isInvalid } from '@masterteam/components';\r\n\r\n@Component({\r\n selector: 'mt-pick-list-field',\r\n templateUrl: './pick-list-field.html',\r\n styleUrls: ['./pick-list-field.scss'],\r\n imports: [PickListModule, FieldValidation],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n host: {\r\n class: 'grid gap-1',\r\n },\r\n})\r\nexport class PickListField implements ControlValueAccessor, OnInit {\r\n readonly label = input<string>();\r\n readonly class = input<string>('');\r\n readonly readonly = input<boolean>(false);\r\n readonly options = input<any[]>([]);\r\n readonly optionLabel = input<string>('label');\r\n readonly optionValue = input<string>('value');\r\n readonly sourceHeader = input<string>('Available');\r\n readonly targetHeader = input<string>('Selected');\r\n readonly showSourceControls = input<boolean>(true);\r\n readonly showTargetControls = input<boolean>(true);\r\n readonly showSourceFilter = input<boolean>(false);\r\n readonly showTargetFilter = input<boolean>(false);\r\n readonly filterBy = input<string>();\r\n readonly dataKey = input<string>();\r\n readonly filterLocale = input<string>();\r\n readonly filterMatchMode = input<\r\n | 'contains'\r\n | 'startsWith'\r\n | 'endsWith'\r\n | 'equals'\r\n | 'notEquals'\r\n | 'in'\r\n | 'lt'\r\n | 'lte'\r\n | 'gt'\r\n | 'gte'\r\n | string\r\n >('contains');\r\n readonly dragdrop = input<boolean>(false);\r\n readonly responsive = input<boolean>(true);\r\n readonly required = input<boolean>(false);\r\n\r\n @HostBinding('class') styleClass: string = '';\r\n\r\n requiredValidator = Validators.required;\r\n value = signal<any[]>([]);\r\n targetItems = signal<any[]>([]);\r\n sourceItems = signal<any[]>([]);\r\n disabled = signal<boolean>(false);\r\n\r\n private onTouched: () => void = () => {};\r\n private onModelChange: (value: any) => void = () => {};\r\n\r\n public ngControl = inject(NgControl, { self: true });\r\n\r\n isInvalid = isInvalid;\r\n\r\n private hasInitialized = false;\r\n\r\n @ViewChild('pickList') pickList?: PickList;\r\n\r\n constructor() {\r\n if (this.ngControl) {\r\n this.ngControl.valueAccessor = this;\r\n }\r\n effect(() => {\r\n if (this.ngControl?.control && this.required()) {\r\n this.ngControl.control.addValidators(Validators.required);\r\n this.ngControl.control.updateValueAndValidity();\r\n }\r\n });\r\n effect(() => {\r\n this.options();\r\n if (this.hasInitialized) {\r\n this.syncLists();\r\n }\r\n });\r\n }\r\n\r\n ngOnInit() {\r\n this.styleClass = this.class();\r\n this.syncLists();\r\n this.hasInitialized = true;\r\n }\r\n\r\n writeValue(value: any) {\r\n const nextValue = Array.isArray(value)\r\n ? [...value]\r\n : value === null || value === undefined\r\n ? []\r\n : [value];\r\n this.value.set(nextValue);\r\n this.syncLists();\r\n }\r\n\r\n registerOnChange(fn: any) {\r\n this.onModelChange = fn;\r\n }\r\n\r\n registerOnTouched(fn: any) {\r\n this.onTouched = fn;\r\n }\r\n\r\n setDisabledState(disabled: boolean) {\r\n this.disabled.set(disabled);\r\n }\r\n\r\n onInteractiveChange() {\r\n this.syncFromPickList();\r\n }\r\n\r\n handleBlur() {\r\n this.onTouched();\r\n }\r\n\r\n displayLabel(item: any): string {\r\n if (item === null || item === undefined) {\r\n return '';\r\n }\r\n if (typeof item === 'string' || typeof item === 'number') {\r\n return String(item);\r\n }\r\n const labelKey = this.optionLabel();\r\n const nestedLabel =\r\n labelKey && labelKey.includes('.')\r\n ? this.getNestedValue(item, labelKey)\r\n : undefined;\r\n if (nestedLabel !== undefined) {\r\n return nestedLabel;\r\n }\r\n if (labelKey && item[labelKey] !== undefined) {\r\n return item[labelKey];\r\n }\r\n return JSON.stringify(item);\r\n }\r\n\r\n private getNestedValue(target: any, path: string): any {\r\n if (!target || !path) {\r\n return undefined;\r\n }\r\n return path\r\n .split('.')\r\n .reduce(\r\n (acc, key) =>\r\n acc !== null && acc !== undefined ? acc[key] : undefined,\r\n target,\r\n );\r\n }\r\n\r\n private syncLists() {\r\n const currentValue = this.value();\r\n const targetOptions = this.normalizeValueToOptions(currentValue);\r\n this.targetItems.set(targetOptions);\r\n this.updateSourceFromTarget(targetOptions);\r\n }\r\n\r\n private syncFromPickList() {\r\n const pickListInstance = this.pickList;\r\n if (!pickListInstance) {\r\n return;\r\n }\r\n const currentTarget = [...(pickListInstance.target() ?? [])];\r\n const currentSource = [...(pickListInstance.source() ?? [])];\r\n this.targetItems.set(currentTarget);\r\n this.sourceItems.set(currentSource);\r\n\r\n const newValue = this.extractValues(currentTarget);\r\n this.value.set(newValue);\r\n this.onModelChange(newValue);\r\n this.onTouched();\r\n }\r\n\r\n private normalizeValueToOptions(value: any[]): any[] {\r\n if (!Array.isArray(value)) {\r\n return [];\r\n }\r\n return value\r\n .map((entry) => this.findOption(entry) ?? entry)\r\n .filter((item) => item !== undefined && item !== null);\r\n }\r\n\r\n private extractValues(items: any[]): any[] {\r\n const optionValueKey = this.optionValue();\r\n if (!optionValueKey) {\r\n return items ?? [];\r\n }\r\n const values: any[] = [];\r\n (items ?? []).forEach((item) => {\r\n if (item && typeof item === 'object') {\r\n values.push(item[optionValueKey] ?? item);\r\n } else {\r\n values.push(item);\r\n }\r\n });\r\n return values;\r\n }\r\n\r\n private updateSourceFromTarget(targetItems: any[]) {\r\n const options = this.options() ?? [];\r\n const targetIds = new Set(\r\n (targetItems ?? []).map((item) => this.getIdentifier(item)),\r\n );\r\n const newSource = options.filter(\r\n (option) => !targetIds.has(this.getIdentifier(option)),\r\n );\r\n this.sourceItems.set(newSource);\r\n }\r\n\r\n private getIdentifier(item: any): any {\r\n if (item === null || item === undefined) {\r\n return item;\r\n }\r\n const optionValueKey = this.optionValue();\r\n if (!optionValueKey) {\r\n return item;\r\n }\r\n if (typeof item === 'object') {\r\n return item[optionValueKey];\r\n }\r\n return item;\r\n }\r\n\r\n private findOption(entry: any): any | undefined {\r\n const options = this.options() ?? [];\r\n const entryId = this.getIdentifier(entry);\r\n return options.find((option) => this.getIdentifier(option) === entryId);\r\n }\r\n}\r\n","@if (label()) {\r\n <label\r\n [class.required]=\"ngControl?.control?.hasValidator(requiredValidator)\"\r\n [for]=\"ngControl?.name || label()\"\r\n >{{ label() }}</label\r\n >\r\n}\r\n<p-pickList\r\n #pickList\r\n [source]=\"sourceItems()\"\r\n [target]=\"targetItems()\"\r\n (onMoveToTarget)=\"onInteractiveChange()\"\r\n (onMoveToSource)=\"onInteractiveChange()\"\r\n (onMoveAllToTarget)=\"onInteractiveChange()\"\r\n (onMoveAllToSource)=\"onInteractiveChange()\"\r\n (onTargetReorder)=\"onInteractiveChange()\"\r\n (onSourceReorder)=\"onInteractiveChange()\"\r\n (onBlur)=\"handleBlur()\"\r\n [filterBy]=\"filterBy() || optionLabel()\"\r\n [showSourceControls]=\"showSourceControls()\"\r\n [showTargetControls]=\"showTargetControls()\"\r\n [showSourceFilter]=\"showSourceFilter()\"\r\n [showTargetFilter]=\"showTargetFilter()\"\r\n [sourceHeader]=\"sourceHeader()\"\r\n [targetHeader]=\"targetHeader()\"\r\n [dragdrop]=\"dragdrop()\"\r\n [responsive]=\"responsive()\"\r\n [disabled]=\"disabled() || readonly()\"\r\n [styleClass]=\"'w-full relative'\"\r\n [class.p-invalid]=\"isInvalid(ngControl?.control)\"\r\n>\r\n <ng-template let-item pTemplate=\"item\">\r\n {{ displayLabel(item) }}\r\n </ng-template>\r\n</p-pickList>\r\n\r\n<mt-field-validation [control]=\"ngControl?.control\"></mt-field-validation>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;MA0Ba,aAAa,CAAA;IACf,KAAK,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,OAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAAU;AACvB,IAAA,KAAK,GAAG,KAAK,CAAS,EAAE,iDAAC;AACzB,IAAA,QAAQ,GAAG,KAAK,CAAU,KAAK,oDAAC;AAChC,IAAA,OAAO,GAAG,KAAK,CAAQ,EAAE,mDAAC;AAC1B,IAAA,WAAW,GAAG,KAAK,CAAS,OAAO,uDAAC;AACpC,IAAA,WAAW,GAAG,KAAK,CAAS,OAAO,uDAAC;AACpC,IAAA,YAAY,GAAG,KAAK,CAAS,WAAW,wDAAC;AACzC,IAAA,YAAY,GAAG,KAAK,CAAS,UAAU,wDAAC;AACxC,IAAA,kBAAkB,GAAG,KAAK,CAAU,IAAI,8DAAC;AACzC,IAAA,kBAAkB,GAAG,KAAK,CAAU,IAAI,8DAAC;AACzC,IAAA,gBAAgB,GAAG,KAAK,CAAU,KAAK,4DAAC;AACxC,IAAA,gBAAgB,GAAG,KAAK,CAAU,KAAK,4DAAC;IACxC,QAAQ,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,UAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAAU;IAC1B,OAAO,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,SAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAAU;IACzB,YAAY,GAAG,KA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C,cAAc,EAAE,eAAe,CAAC,EAAA,eAAA,EACzB,uBAAuB,CAAC,MAAM,EAAA,IAAA,EACzC;AACJ,wBAAA,KAAK,EAAE,YAAY;AACpB,qBAAA,EAAA,QAAA,EAAA,00CAAA,EAAA,MAAA,EAAA,CAAA,wBAAA,CAAA,EAAA;;sBAmCA,WAAW;uBAAC,OAAO;;sBAiBnB,SAAS;uBAAC,UAAU;;;AE5EvB;;AAEG;;;;"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, computed, Component } from '@angular/core';
|
|
3
|
-
import * as i1 from 'primeng/progressbar';
|
|
4
|
-
import { ProgressBarModule } from 'primeng/progressbar';
|
|
5
|
-
import * as i3 from 'primeng/knob';
|
|
6
|
-
import { KnobModule } from 'primeng/knob';
|
|
7
|
-
import * as i4 from '@angular/forms';
|
|
8
|
-
import { FormsModule } from '@angular/forms';
|
|
9
|
-
import * as i2 from 'primeng/api';
|
|
10
|
-
|
|
11
|
-
class Progress {
|
|
12
|
-
// Required Input: The progress value (0-100)
|
|
13
|
-
value = input.required(...(ngDevMode ? [{ debugName: "value" }] : []));
|
|
14
|
-
// Optional Inputs with Defaults
|
|
15
|
-
mode = input('linear', ...(ngDevMode ? [{ debugName: "mode" }] : []));
|
|
16
|
-
showLabel = input(true, ...(ngDevMode ? [{ debugName: "showLabel" }] : []));
|
|
17
|
-
unit = input('%', ...(ngDevMode ? [{ debugName: "unit" }] : []));
|
|
18
|
-
color = input('primary', ...(ngDevMode ? [{ debugName: "color" }] : [])); // Default Tailwind blue-500
|
|
19
|
-
minValue = input(0, ...(ngDevMode ? [{ debugName: "minValue" }] : [])); // Height for linear bar
|
|
20
|
-
maxValue = input(100, ...(ngDevMode ? [{ debugName: "maxValue" }] : [])); // Height for linear bar
|
|
21
|
-
// Style Inputs
|
|
22
|
-
height = input(20, ...(ngDevMode ? [{ debugName: "height" }] : [])); // Height for linear bar
|
|
23
|
-
circleSize = input(100, ...(ngDevMode ? [{ debugName: "circleSize" }] : [])); // Diameter for circle
|
|
24
|
-
strokeWidth = input(10, ...(ngDevMode ? [{ debugName: "strokeWidth" }] : [])); // Thickness for circle
|
|
25
|
-
customClass = input('', ...(ngDevMode ? [{ debugName: "customClass" }] : [])); // Pass tailwind classes like 'rounded-none'
|
|
26
|
-
// Computed template for the knob text (e.g. "75%")
|
|
27
|
-
labelTemplate = computed(() => `{value}${this.unit()}`, ...(ngDevMode ? [{ debugName: "labelTemplate" }] : []));
|
|
28
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.3", ngImport: i0, type: Progress, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
29
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.3", type: Progress, isStandalone: true, selector: "mt-progress", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, showLabel: { classPropertyName: "showLabel", publicName: "showLabel", isSignal: true, isRequired: false, transformFunction: null }, unit: { classPropertyName: "unit", publicName: "unit", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, minValue: { classPropertyName: "minValue", publicName: "minValue", isSignal: true, isRequired: false, transformFunction: null }, maxValue: { classPropertyName: "maxValue", publicName: "maxValue", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, circleSize: { classPropertyName: "circleSize", publicName: "circleSize", isSignal: true, isRequired: false, transformFunction: null }, strokeWidth: { classPropertyName: "strokeWidth", publicName: "strokeWidth", isSignal: true, isRequired: false, transformFunction: null }, customClass: { classPropertyName: "customClass", publicName: "customClass", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"w-full flex flex-col items-center justify-center gap-2\">\r\n @if (mode() === \"linear\") {\r\n <div class=\"w-full\">\r\n <p-progressBar\r\n [value]=\"value()\"\r\n [showValue]=\"showLabel()\"\r\n [styleClass]=\"customClass()\"\r\n [style]=\"{ height: height() + 'px' }\"\r\n [color]=\"color()\"\r\n >\r\n <ng-template pTemplate=\"content\" let-val>\r\n @if (showLabel()) {\r\n <span class=\"text-xs font-bold\">{{ val }}{{ unit() }}</span>\r\n }\r\n </ng-template>\r\n </p-progressBar>\r\n </div>\r\n } @else {\r\n <div class=\"relative flex items-center justify-center\">\r\n <p-knob\r\n [ngModel]=\"value()\"\r\n [readonly]=\"true\"\r\n [size]=\"circleSize()\"\r\n [strokeWidth]=\"strokeWidth()\"\r\n [rangeColor]=\"'#e5e7eb'\"\r\n [valueTemplate]=\"labelTemplate()\"\r\n [showValue]=\"showLabel()\"\r\n [min]=\"minValue()\"\r\n [max]=\"maxValue()\"\r\n >\r\n </p-knob>\r\n </div>\r\n }\r\n</div>\r\n", dependencies: [{ kind: "ngmodule", type: ProgressBarModule }, { kind: "component", type: i1.ProgressBar, selector: "p-progressBar, p-progressbar, p-progress-bar", inputs: ["value", "showValue", "styleClass", "valueStyleClass", "unit", "mode", "color"] }, { kind: "directive", type: i2.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "ngmodule", type: KnobModule }, { kind: "component", type: i3.Knob, selector: "p-knob", inputs: ["styleClass", "ariaLabel", "ariaLabelledBy", "tabindex", "valueColor", "rangeColor", "textColor", "valueTemplate", "size", "min", "max", "step", "strokeWidth", "showValue", "readonly"], outputs: ["onChange"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
|
|
30
|
-
}
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.3", ngImport: i0, type: Progress, decorators: [{
|
|
32
|
-
type: Component,
|
|
33
|
-
args: [{ standalone: true, imports: [ProgressBarModule, KnobModule, FormsModule], selector: 'mt-progress', template: "<div class=\"w-full flex flex-col items-center justify-center gap-2\">\r\n @if (mode() === \"linear\") {\r\n <div class=\"w-full\">\r\n <p-progressBar\r\n [value]=\"value()\"\r\n [showValue]=\"showLabel()\"\r\n [styleClass]=\"customClass()\"\r\n [style]=\"{ height: height() + 'px' }\"\r\n [color]=\"color()\"\r\n >\r\n <ng-template pTemplate=\"content\" let-val>\r\n @if (showLabel()) {\r\n <span class=\"text-xs font-bold\">{{ val }}{{ unit() }}</span>\r\n }\r\n </ng-template>\r\n </p-progressBar>\r\n </div>\r\n } @else {\r\n <div class=\"relative flex items-center justify-center\">\r\n <p-knob\r\n [ngModel]=\"value()\"\r\n [readonly]=\"true\"\r\n [size]=\"circleSize()\"\r\n [strokeWidth]=\"strokeWidth()\"\r\n [rangeColor]=\"'#e5e7eb'\"\r\n [valueTemplate]=\"labelTemplate()\"\r\n [showValue]=\"showLabel()\"\r\n [min]=\"minValue()\"\r\n [max]=\"maxValue()\"\r\n >\r\n </p-knob>\r\n </div>\r\n }\r\n</div>\r\n" }]
|
|
34
|
-
}], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], showLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLabel", required: false }] }], unit: [{ type: i0.Input, args: [{ isSignal: true, alias: "unit", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], minValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "minValue", required: false }] }], maxValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxValue", required: false }] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], circleSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "circleSize", required: false }] }], strokeWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "strokeWidth", required: false }] }], customClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "customClass", required: false }] }] } });
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Generated bundle index. Do not edit.
|
|
38
|
-
*/
|
|
39
|
-
|
|
40
|
-
export { Progress };
|
|
41
|
-
//# sourceMappingURL=masterteam-components-progress.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"masterteam-components-progress.mjs","sources":["../../../../packages/masterteam/components/progress/progress.ts","../../../../packages/masterteam/components/progress/progress.html","../../../../packages/masterteam/components/progress/masterteam-components-progress.ts"],"sourcesContent":["import { Component, computed, input } from '@angular/core';\r\nimport { ProgressBarModule } from 'primeng/progressbar';\r\nimport { KnobModule } from 'primeng/knob';\r\nimport { FormsModule } from '@angular/forms';\r\n\r\n@Component({\r\n standalone: true,\r\n imports: [ProgressBarModule, KnobModule, FormsModule],\r\n selector: 'mt-progress',\r\n templateUrl: 'progress.html',\r\n})\r\nexport class Progress {\r\n // Required Input: The progress value (0-100)\r\n value = input.required<number>();\r\n\r\n // Optional Inputs with Defaults\r\n mode = input<'linear' | 'circle'>('linear');\r\n showLabel = input<boolean>(true);\r\n unit = input<string>('%');\r\n color = input<string>('primary'); // Default Tailwind blue-500\r\n minValue = input<number>(0); // Height for linear bar\r\n maxValue = input<number>(100); // Height for linear bar\r\n\r\n // Style Inputs\r\n height = input<number>(20); // Height for linear bar\r\n circleSize = input<number>(100); // Diameter for circle\r\n strokeWidth = input<number>(10); // Thickness for circle\r\n customClass = input<string>(''); // Pass tailwind classes like 'rounded-none'\r\n\r\n // Computed template for the knob text (e.g. \"75%\")\r\n labelTemplate = computed(() => `{value}${this.unit()}`);\r\n}\r\n","<div class=\"w-full flex flex-col items-center justify-center gap-2\">\r\n @if (mode() === \"linear\") {\r\n <div class=\"w-full\">\r\n <p-progressBar\r\n [value]=\"value()\"\r\n [showValue]=\"showLabel()\"\r\n [styleClass]=\"customClass()\"\r\n [style]=\"{ height: height() + 'px' }\"\r\n [color]=\"color()\"\r\n >\r\n <ng-template pTemplate=\"content\" let-val>\r\n @if (showLabel()) {\r\n <span class=\"text-xs font-bold\">{{ val }}{{ unit() }}</span>\r\n }\r\n </ng-template>\r\n </p-progressBar>\r\n </div>\r\n } @else {\r\n <div class=\"relative flex items-center justify-center\">\r\n <p-knob\r\n [ngModel]=\"value()\"\r\n [readonly]=\"true\"\r\n [size]=\"circleSize()\"\r\n [strokeWidth]=\"strokeWidth()\"\r\n [rangeColor]=\"'#e5e7eb'\"\r\n [valueTemplate]=\"labelTemplate()\"\r\n [showValue]=\"showLabel()\"\r\n [min]=\"minValue()\"\r\n [max]=\"maxValue()\"\r\n >\r\n </p-knob>\r\n </div>\r\n }\r\n</div>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;MAWa,QAAQ,CAAA;;AAEnB,IAAA,KAAK,GAAG,KAAK,CAAC,QAAQ,gDAAU;;AAGhC,IAAA,IAAI,GAAG,KAAK,CAAsB,QAAQ,gDAAC;AAC3C,IAAA,SAAS,GAAG,KAAK,CAAU,IAAI,qDAAC;AAChC,IAAA,IAAI,GAAG,KAAK,CAAS,GAAG,gDAAC;AACzB,IAAA,KAAK,GAAG,KAAK,CAAS,SAAS,EAAA,IAAA,SAAA,GAAA,CAAA,EAAA,SAAA,EAAA,OAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAAC,CAAC;AACjC,IAAA,QAAQ,GAAG,KAAK,CAAS,CAAC,EAAA,IAAA,SAAA,GAAA,CAAA,EAAA,SAAA,EAAA,UAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAAC,CAAC;AAC5B,IAAA,QAAQ,GAAG,KAAK,CAAS,GAAG,EAAA,IAAA,SAAA,GAAA,CAAA,EAAA,SAAA,EAAA,UAAA,EAAA,CAAA,GAAA,E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