aril 1.1.65 → 1.1.67
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 +62 -62
- package/boot/config/api.sample.json +8 -8
- package/esm2022/boot/config/api/index.mjs +1 -1
- package/esm2022/boot/config/api/src/api.service.mjs +1 -1
- package/esm2022/boot/config/api/src/interfaces.mjs +1 -1
- package/esm2022/boot/config/apps/index.mjs +1 -1
- package/esm2022/boot/config/apps/src/apps.service.mjs +1 -1
- package/esm2022/boot/config/apps/src/auth.guard.mjs +1 -1
- package/esm2022/boot/config/apps/src/interfaces.mjs +1 -1
- package/esm2022/boot/config/apps/src/reuse-strategy.mjs +1 -1
- package/esm2022/boot/config/apps/src/showdowDOMWrapper.mjs +1 -1
- package/esm2022/boot/config/plugins/index.mjs +1 -1
- package/esm2022/boot/config/plugins/src/getNgZone.mjs +1 -1
- package/esm2022/boot/config/plugins/src/interfaces.mjs +1 -1
- package/esm2022/boot/config/plugins/src/plugins.service.mjs +1 -1
- package/esm2022/boot/config/translate/constants.mjs +1 -1
- package/esm2022/boot/config/translate/index.mjs +1 -1
- package/esm2022/boot/config/translate/primeng/i18n/tr.mjs +1 -1
- package/esm2022/boot/host/index.mjs +1 -1
- package/esm2022/boot/host/src/app.component.mjs +1 -1
- package/esm2022/boot/host/src/bootstrap.mjs +1 -1
- package/esm2022/boot/index.mjs +1 -1
- package/esm2022/boot/mfe/index.mjs +1 -1
- package/esm2022/boot/mfe/src/app.component.mjs +13 -13
- package/esm2022/boot/mfe/src/appComponentLoader.mjs +1 -1
- package/esm2022/boot/mfe/src/bootstrap.mjs +1 -1
- package/esm2022/boot/mfe/src/loadStyles.mjs +1 -1
- package/esm2022/boot/mfe/src/monaco.config.mjs +1 -1
- package/esm2022/http/index.mjs +1 -1
- package/esm2022/http/lib/enums.mjs +1 -1
- package/esm2022/http/lib/interfaces.mjs +1 -1
- package/esm2022/http/src/httpBackend.mjs +1 -1
- package/esm2022/http/src/httpClient.mjs +1 -1
- package/esm2022/http/src/interceptor/accept-language.interceptor.mjs +1 -1
- package/esm2022/http/src/serviceBase.mjs +1 -1
- package/esm2022/http/src/serviceMockBase.mjs +1 -1
- package/esm2022/http/src/serviceRequest.mjs +1 -1
- package/esm2022/http/src/serviceStateMethods.mjs +1 -1
- package/esm2022/i18n/index.mjs +1 -1
- package/esm2022/i18n/src/folder-name-token.mjs +1 -1
- package/esm2022/i18n/src/i18n.module.mjs +1 -1
- package/esm2022/i18n/src/loader.mjs +1 -1
- package/esm2022/i18n/src/provideI18n.mjs +1 -1
- package/esm2022/i18n/src/provideScope.mjs +1 -1
- package/esm2022/keycloak/src/auth.interceptor.mjs +1 -1
- package/esm2022/provider/index.mjs +1 -1
- package/esm2022/provider/src/index.mjs +1 -1
- package/esm2022/provider/src/prodiveHost.mjs +1 -1
- package/esm2022/provider/src/prodiveHostRouter.mjs +1 -1
- package/esm2022/provider/src/provideHostKeycloak.mjs +1 -1
- package/esm2022/provider/src/provideLocaleId.mjs +1 -1
- package/esm2022/public-api.mjs +1 -1
- package/esm2022/theme/index.mjs +1 -1
- package/esm2022/theme/layout/app/breadcrumb/app.breadcrumb.component.mjs +3 -3
- package/esm2022/theme/layout/app/chatbot/app.chatbot.component.mjs +3 -3
- package/esm2022/theme/layout/app/expandableMenu/expandable-menu.component.mjs +3 -3
- package/esm2022/theme/layout/app/favorite-pages/favorite-pages-sidebar.component.mjs +3 -3
- package/esm2022/theme/layout/app/favorite-pages/favorite-pages.service.mjs +1 -1
- package/esm2022/theme/layout/app/favorite-pages/modals/add-edit-favorite-modal/add-edit-favorite-modal.component.mjs +3 -3
- package/esm2022/theme/layout/app/general-search/general-search.component.mjs +3 -3
- package/esm2022/theme/layout/app/general-search/helpers.mjs +1 -1
- package/esm2022/theme/layout/app/general-search/models.mjs +1 -1
- package/esm2022/theme/layout/app/history/history-sidebar.component.mjs +3 -3
- package/esm2022/theme/layout/app/history/history.service.mjs +1 -1
- package/esm2022/theme/layout/app/layout/app.layout.component.mjs +3 -3
- package/esm2022/theme/layout/app/layout/mfe.layout.component.mjs +23 -23
- package/esm2022/theme/layout/app/notifications/notifications-sidebar.component.mjs +3 -3
- package/esm2022/theme/layout/app/profileSidebar/app.profilesidebar.component.mjs +3 -3
- package/esm2022/theme/layout/app/profileSidebar/modals/change-password-modal/change-password-modal.component.mjs +3 -3
- package/esm2022/theme/layout/app/profileSidebar/modals/edit-profile-modal/edit-profile-modal.component.mjs +3 -3
- package/esm2022/theme/layout/app/profileSidebar/profile.service.mjs +1 -1
- package/esm2022/theme/layout/app/site-map/site-map-sidebar.component.mjs +3 -3
- package/esm2022/theme/layout/app/static-sidebar/static-sidebar.component.mjs +3 -3
- package/esm2022/theme/layout/app/topbar/app.topbar.component.mjs +3 -3
- package/esm2022/theme/layout/index.mjs +1 -1
- package/esm2022/theme/layout/service/app.layout.service.mjs +1 -1
- package/esm2022/theme/layout/service/app.menu.service.mjs +1 -1
- package/esm2022/theme/layout/service/breadcrumb.service.mjs +1 -1
- package/esm2022/theme/layout/service/interfaces/enum.mjs +1 -1
- package/esm2022/theme/layout/service/interfaces/interfaces.mjs +1 -1
- package/esm2022/theme/layout/service/menuchangeevent.mjs +1 -1
- package/esm2022/theme/layout/service/notifications.service.mjs +1 -1
- package/esm2022/theme/layout/service/search.service.mjs +1 -1
- package/esm2022/theme/layout/service/selection-group.service.mjs +1 -1
- package/esm2022/ui/autoComplete/index.mjs +1 -1
- package/esm2022/ui/autoComplete/src/auto-complete.component.mjs +3 -3
- package/esm2022/ui/autoComplete/src/interfaces.mjs +1 -1
- package/esm2022/ui/badge/index.mjs +1 -1
- package/esm2022/ui/badge/src/badge.component.mjs +3 -3
- package/esm2022/ui/button/index.mjs +1 -1
- package/esm2022/ui/button/src/button.component.mjs +3 -3
- package/esm2022/ui/button/src/split-button.component.mjs +3 -3
- package/esm2022/ui/calendar/index.mjs +1 -1
- package/esm2022/ui/calendar/src/calendar.component.mjs +3 -3
- package/esm2022/ui/charts/index.mjs +1 -1
- package/esm2022/ui/charts/src/amCharts/column/column-chart.component.mjs +1 -1
- package/esm2022/ui/charts/src/amCharts/line/line-chart.component.mjs +1 -1
- package/esm2022/ui/charts/src/amCharts/pie/pie-chart.component.mjs +1 -1
- package/esm2022/ui/charts/src/highCharts/area/area-chart.component.mjs +19 -19
- package/esm2022/ui/charts/src/highCharts/bar/bar-chart.component.mjs +14 -14
- package/esm2022/ui/charts/src/highCharts/column/column-chart.component.mjs +14 -14
- package/esm2022/ui/charts/src/highCharts/gauge/solid-gauge.component.mjs +19 -19
- package/esm2022/ui/charts/src/highCharts/heatmap/heatMap-chart.component.mjs +15 -15
- package/esm2022/ui/charts/src/highCharts/line/line-chart-datetime-axis.component.mjs +15 -15
- package/esm2022/ui/charts/src/highCharts/line/line-chart-series.component.mjs +5 -5
- package/esm2022/ui/charts/src/highCharts/line/line-chart.component.mjs +1 -1
- package/esm2022/ui/charts/src/highCharts/pie/pie-chart.component.mjs +17 -17
- package/esm2022/ui/charts/src/theme/theme.mjs +1 -1
- package/esm2022/ui/checkbox/index.mjs +1 -1
- package/esm2022/ui/checkbox/src/check-box.component.mjs +3 -3
- package/esm2022/ui/checkbox/src/tri-state-checkbox.component.mjs +3 -3
- package/esm2022/ui/chip/src/chip.component.mjs +3 -3
- package/esm2022/ui/collapse-reorder-list/src/collapse-reorder-list.component.mjs +3 -3
- package/esm2022/ui/dxEditor/index.mjs +1 -1
- package/esm2022/ui/dxEditor/src/dx-editor.component.mjs +3 -3
- package/esm2022/ui/dxField/index.mjs +1 -1
- package/esm2022/ui/dxField/src/dx-field.component.mjs +3 -3
- package/esm2022/ui/editor/index.mjs +1 -1
- package/esm2022/ui/editor/src/aril-editor.component.mjs +3 -3
- package/esm2022/ui/editor/src/types.mjs +1 -1
- package/esm2022/ui/field/index.mjs +1 -1
- package/esm2022/ui/field/src/field.component.mjs +3 -3
- package/esm2022/ui/fileUpload/index.mjs +1 -1
- package/esm2022/ui/fileUpload/src/file-upload.component.mjs +3 -3
- package/esm2022/ui/form/index.mjs +1 -1
- package/esm2022/ui/form/src/form-submit-button.component.mjs +3 -3
- package/esm2022/ui/form/src/form.component.mjs +1 -1
- package/esm2022/ui/img-viewer/index.mjs +1 -1
- package/esm2022/ui/img-viewer/src/img-viewer.component.mjs +3 -3
- package/esm2022/ui/index.mjs +1 -1
- package/esm2022/ui/json-diff-comparison/index.mjs +1 -1
- package/esm2022/ui/json-diff-comparison/src/json-diff.component.mjs +3 -3
- package/esm2022/ui/lib/index.mjs +1 -1
- package/esm2022/ui/lib/src/form/form-error-message.component.mjs +9 -9
- package/esm2022/ui/lib/src/form/form-error-message.directive.mjs +1 -1
- package/esm2022/ui/lib/src/form/form-field-builder.mjs +1 -1
- package/esm2022/ui/lib/src/form/form-validation.mjs +1 -1
- package/esm2022/ui/lib/src/grid/enum-color-picker.pipe.mjs +1 -1
- package/esm2022/ui/lib/src/grid/flex-grid.directive.mjs +1 -1
- package/esm2022/ui/lib/src/input/baseInput.mjs +1 -1
- package/esm2022/ui/lib/src/input/common-input-validators.service.mjs +1 -1
- package/esm2022/ui/lib/src/input/dx-input-error-message.pipe.mjs +1 -1
- package/esm2022/ui/lib/src/input/input-disabled.directive.mjs +1 -1
- package/esm2022/ui/lib/src/input/input-error-message.pipe.mjs +1 -1
- package/esm2022/ui/lib/src/input/input-transforms.mjs +1 -1
- package/esm2022/ui/lib/src/input/value-accessor.directive.mjs +1 -1
- package/esm2022/ui/loader/index.mjs +1 -1
- package/esm2022/ui/loader/src/loader.component.mjs +3 -3
- package/esm2022/ui/mask/index.mjs +1 -1
- package/esm2022/ui/mask/src/mask.component.mjs +3 -3
- package/esm2022/ui/multiSelect/index.mjs +1 -1
- package/esm2022/ui/multiSelect/src/interfaces.mjs +1 -1
- package/esm2022/ui/multiSelect/src/multi-select.component.mjs +3 -3
- package/esm2022/ui/number/index.mjs +1 -1
- package/esm2022/ui/number/src/number.component.mjs +3 -3
- package/esm2022/ui/operation-types-dialog/index.mjs +1 -1
- package/esm2022/ui/operation-types-dialog/src/operation-types-dialog.component.mjs +11 -11
- package/esm2022/ui/overlayPanel/index.mjs +1 -1
- package/esm2022/ui/overlayPanel/src/overlay-panel.component.mjs +3 -3
- package/esm2022/ui/panel/index.mjs +1 -1
- package/esm2022/ui/panel/src/panel.component.mjs +3 -3
- package/esm2022/ui/password/index.mjs +1 -1
- package/esm2022/ui/password/src/password.component.mjs +3 -3
- package/esm2022/ui/pdf-viewer/index.mjs +1 -1
- package/esm2022/ui/pdf-viewer/src/pdf-viewer.component.mjs +3 -3
- package/esm2022/ui/progressbar/index.mjs +1 -1
- package/esm2022/ui/progressbar/src/progressbar.component.mjs +3 -3
- package/esm2022/ui/radioButton/index.mjs +1 -1
- package/esm2022/ui/radioButton/src/radio-button.component.mjs +3 -3
- package/esm2022/ui/relativeDateSelector/src/enum.mjs +1 -1
- package/esm2022/ui/relativeDateSelector/src/relative-date-selector.component.mjs +3 -3
- package/esm2022/ui/selectBox/index.mjs +1 -1
- package/esm2022/ui/selectBox/src/interfaces.mjs +1 -1
- package/esm2022/ui/selectBox/src/select-box.component.mjs +3 -3
- package/esm2022/ui/switch/index.mjs +1 -1
- package/esm2022/ui/switch/src/switch.component.mjs +3 -3
- package/esm2022/ui/table/index.mjs +1 -1
- package/esm2022/ui/table/src/export-overlay-panel.component.mjs +127 -127
- package/esm2022/ui/table/src/interfaces.mjs +1 -1
- package/esm2022/ui/table/src/table-column.component.mjs +1 -1
- package/esm2022/ui/table/src/table.component.mjs +3 -3
- package/esm2022/ui/table-expand/index.mjs +1 -1
- package/esm2022/ui/table-expand/src/table-column.component.mjs +1 -1
- package/esm2022/ui/table-expand/src/table-expand-area.component.mjs +1 -1
- package/esm2022/ui/table-expand/src/table.component.mjs +3 -3
- package/esm2022/ui/tag/src/tag.component.mjs +3 -3
- package/esm2022/ui/tagBox/index.mjs +1 -1
- package/esm2022/ui/tagBox/src/tag-box.component.mjs +3 -3
- package/esm2022/ui/text/index.mjs +1 -1
- package/esm2022/ui/text/src/text.component.mjs +3 -3
- package/esm2022/ui/textArea/index.mjs +1 -1
- package/esm2022/ui/textArea/src/text-area.component.mjs +3 -3
- package/esm2022/ui/toggle-button/src/toggle-button.component.mjs +3 -3
- package/esm2022/ui/tooltip/index.mjs +1 -1
- package/esm2022/ui/tooltip/src/tooltip-component.mjs +3 -3
- package/esm2022/ui/translate-input/index.mjs +1 -1
- package/esm2022/ui/translate-input/src/aril-lang-modal/aril-lang-modal.component.mjs +3 -3
- package/esm2022/ui/translate-input/src/aril-lang-modal/constants.mjs +1 -1
- package/esm2022/ui/translate-input/src/aril-translate-input.component.mjs +25 -25
- package/esm2022/ui/translate-input/src/interface.mjs +1 -1
- package/esm2022/ui/tree/index.mjs +1 -1
- package/esm2022/ui/tree/src/tree.component.mjs +3 -3
- package/esm2022/ui/treeSelect/index.mjs +1 -1
- package/esm2022/ui/treeSelect/src/treeSelect.component.mjs +3 -3
- package/esm2022/ui/treeTable/index.mjs +1 -1
- package/esm2022/ui/treeTable/src/tree-table.component.mjs +3 -3
- package/esm2022/ui/value/index.mjs +1 -1
- package/esm2022/ui/value/src/value.component.mjs +3 -3
- package/esm2022/ui-business/assetPicker/src/asset-picker.component.mjs +71 -31
- package/esm2022/ui-business/assetPicker/src/interface.mjs +1 -1
- package/esm2022/ui-business/detailed-overlay-panel/index.mjs +1 -1
- package/esm2022/ui-business/detailed-overlay-panel/src/detailed-overlay-panel.component.mjs +3 -3
- package/esm2022/ui-business/detailed-overlay-panel/src/interface.mjs +1 -1
- package/esm2022/ui-business/enumPicker/src/enum-picker.component.mjs +3 -3
- package/esm2022/ui-business/enumPicker/src/interface.mjs +1 -1
- package/esm2022/ui-business/image-viewer/src/aril-image-viewer.component.mjs +29 -29
- package/esm2022/ui-business/index.mjs +1 -1
- package/esm2022/ui-business/multiple-ref-value/index.mjs +1 -1
- package/esm2022/ui-business/multiple-ref-value/src/multiple-ref-value.component.mjs +3 -3
- package/esm2022/ui-business/notification-templates-dialog/index.mjs +1 -1
- package/esm2022/ui-business/notification-templates-dialog/src/interface.mjs +1 -1
- package/esm2022/ui-business/notification-templates-dialog/src/notification-templates-dialog.component.mjs +3 -3
- package/esm2022/ui-business/operation-types-dialog/index.mjs +1 -1
- package/esm2022/ui-business/operation-types-dialog/src/operation-types-dialog.component.mjs +11 -11
- package/esm2022/ui-business/ref-value/index.mjs +1 -1
- package/esm2022/ui-business/ref-value/src/ref-value.component.mjs +3 -3
- package/esm2022/ui-business/rolePicker/index.mjs +1 -1
- package/esm2022/ui-business/rolePicker/src/interface.mjs +1 -1
- package/esm2022/ui-business/rolePicker/src/role-picker.component.mjs +3 -3
- package/esm2022/ui-business/userPicker/src/interface.mjs +1 -1
- package/esm2022/ui-business/userPicker/src/user-picker.component.mjs +3 -3
- package/esm2022/util/block/index.mjs +1 -1
- package/esm2022/util/block/src/block.mjs +1 -1
- package/esm2022/util/custom_pages/index.mjs +1 -1
- package/esm2022/util/custom_pages/src/notFound.component.mjs +47 -47
- package/esm2022/util/directives/index.mjs +1 -1
- package/esm2022/util/directives/src/detail-page-customization/detail-page-customization.directive.mjs +1 -1
- package/esm2022/util/directives/src/detail-page-customization/index.mjs +1 -1
- package/esm2022/util/directives/src/detail-page-customization/models.mjs +1 -1
- package/esm2022/util/directives/src/dialog-component/plugin-dialog.component.mjs +1 -1
- package/esm2022/util/directives/src/dialog-service/plugin-dialog.service.mjs +1 -1
- package/esm2022/util/init-event/index.mjs +1 -1
- package/esm2022/util/init-event/src/init-event.directive.mjs +1 -1
- package/esm2022/util/lib/index.mjs +1 -1
- package/esm2022/util/lib/src/interfaces.mjs +1 -1
- package/esm2022/util/lib/src/module-router.mjs +1 -1
- package/esm2022/util/lib/src/types.mjs +1 -1
- package/esm2022/util/lib/src/validators/iban.validator.mjs +1 -1
- package/esm2022/util/lib/src/validators/index.mjs +1 -1
- package/esm2022/util/lib/src/validators/max-array-length.validator.mjs +1 -1
- package/esm2022/util/lib/src/validators/min-array-length.validator.mjs +1 -1
- package/esm2022/util/lib/src/validators/tckn.validator.mjs +1 -1
- package/esm2022/util/lib/src/validators/validators.mjs +1 -1
- package/esm2022/util/loaders/index.mjs +1 -1
- package/esm2022/util/loaders/script/script.loader.service.mjs +1 -1
- package/esm2022/util/loaders/style/style.loader.service.mjs +1 -1
- package/esm2022/util/pipes/index.mjs +1 -1
- package/esm2022/util/pipes/src/distance-to-now.pipe.mjs +1 -1
- package/esm2022/util/pipes/src/get-column-by-field.pipe.mjs +1 -1
- package/esm2022/util/pipes/src/parse.pipe.mjs +1 -1
- package/esm2022/util/pipes/src/round-number.pipe.mjs +1 -1
- package/esm2022/util/pipes/src/safe.pipe.mjs +1 -1
- package/esm2022/util/pipes/src/translate-json/translate-json.pipe.mjs +1 -1
- package/esm2022/util/primitive-extensions/index.mjs +1 -1
- package/esm2022/util/primitive-extensions/src/boolean.extensions.mjs +1 -1
- package/esm2022/util/primitive-extensions/src/date.extensions.mjs +1 -1
- package/esm2022/util/primitive-extensions/src/number.extensions.mjs +1 -1
- package/esm2022/util/primitive-extensions/src/string.extensions.mjs +1 -1
- package/esm2022/util/pub-sub/index.mjs +1 -1
- package/esm2022/util/pub-sub/src/pub-sub.service.mjs +1 -1
- package/esm2022/util/sync-active-tab-route/index.mjs +1 -1
- package/esm2022/util/sync-active-tab-route/src/sync-active-tab-route.directive.mjs +1 -1
- package/esm2022/util/unwrap/index.mjs +1 -1
- package/esm2022/util/unwrap/src/unwrap-tag.directive.mjs +1 -1
- package/fesm2022/{aril-app.component-BrM-uBqB.mjs → aril-app.component-hxaLgwmC.mjs} +13 -13
- package/fesm2022/aril-app.component-hxaLgwmC.mjs.map +1 -0
- package/fesm2022/aril-boot-config-api.mjs.map +1 -1
- package/fesm2022/aril-boot-config-apps.mjs +1 -1
- package/fesm2022/aril-boot-config-apps.mjs.map +1 -1
- package/fesm2022/aril-boot-config-plugins.mjs +2 -2
- package/fesm2022/aril-boot-config-plugins.mjs.map +1 -1
- package/fesm2022/aril-boot-config-translate.mjs.map +1 -1
- package/fesm2022/aril-boot-host.mjs +4 -4
- package/fesm2022/aril-boot-host.mjs.map +1 -1
- package/fesm2022/{aril-boot-mfe-app.component-BWEM0ozE.mjs → aril-boot-mfe-app.component-s1a-tkOD.mjs} +14 -14
- package/fesm2022/aril-boot-mfe-app.component-s1a-tkOD.mjs.map +1 -0
- package/fesm2022/{aril-boot-mfe-aril-boot-mfe-Chnmyg0H.mjs → aril-boot-mfe-aril-boot-mfe-wLTqwDtz.mjs} +7 -7
- package/fesm2022/aril-boot-mfe-aril-boot-mfe-wLTqwDtz.mjs.map +1 -0
- package/fesm2022/aril-boot-mfe.mjs +1 -1
- package/fesm2022/aril-boot.mjs.map +1 -1
- package/fesm2022/aril-http.mjs.map +1 -1
- package/fesm2022/aril-i18n.mjs.map +1 -1
- package/fesm2022/aril-keycloak.mjs.map +1 -1
- package/fesm2022/aril-provider.mjs +1 -1
- package/fesm2022/aril-provider.mjs.map +1 -1
- package/fesm2022/aril-theme-layout.mjs +52 -52
- package/fesm2022/aril-theme-layout.mjs.map +1 -1
- package/fesm2022/aril-theme.mjs.map +1 -1
- package/fesm2022/aril-ui-autoComplete.mjs +5 -5
- package/fesm2022/aril-ui-autoComplete.mjs.map +1 -1
- package/fesm2022/aril-ui-badge.mjs +3 -3
- package/fesm2022/aril-ui-badge.mjs.map +1 -1
- package/fesm2022/aril-ui-business-assetPicker.mjs +71 -31
- package/fesm2022/aril-ui-business-assetPicker.mjs.map +1 -1
- package/fesm2022/aril-ui-business-detailed-overlay-panel.mjs +4 -4
- package/fesm2022/aril-ui-business-detailed-overlay-panel.mjs.map +1 -1
- package/fesm2022/aril-ui-business-enumPicker.mjs +4 -4
- package/fesm2022/aril-ui-business-enumPicker.mjs.map +1 -1
- package/fesm2022/aril-ui-business-image-viewer.mjs +28 -28
- package/fesm2022/aril-ui-business-image-viewer.mjs.map +1 -1
- package/fesm2022/aril-ui-business-multiple-ref-value.mjs +3 -3
- package/fesm2022/aril-ui-business-multiple-ref-value.mjs.map +1 -1
- package/fesm2022/aril-ui-business-notification-templates-dialog.mjs +2 -2
- package/fesm2022/aril-ui-business-notification-templates-dialog.mjs.map +1 -1
- package/fesm2022/aril-ui-business-operation-types-dialog.mjs +10 -10
- package/fesm2022/aril-ui-business-operation-types-dialog.mjs.map +1 -1
- package/fesm2022/aril-ui-business-ref-value.mjs +3 -3
- package/fesm2022/aril-ui-business-ref-value.mjs.map +1 -1
- package/fesm2022/aril-ui-business-rolePicker.mjs +3 -3
- package/fesm2022/aril-ui-business-rolePicker.mjs.map +1 -1
- package/fesm2022/aril-ui-business-userPicker.mjs +2 -2
- package/fesm2022/aril-ui-business-userPicker.mjs.map +1 -1
- package/fesm2022/aril-ui-business.mjs.map +1 -1
- package/fesm2022/aril-ui-button.mjs +5 -5
- package/fesm2022/aril-ui-button.mjs.map +1 -1
- package/fesm2022/aril-ui-calendar.mjs +2 -2
- package/fesm2022/aril-ui-calendar.mjs.map +1 -1
- package/fesm2022/aril-ui-charts.mjs +111 -111
- package/fesm2022/aril-ui-charts.mjs.map +1 -1
- package/fesm2022/aril-ui-checkbox.mjs +4 -4
- package/fesm2022/aril-ui-checkbox.mjs.map +1 -1
- package/fesm2022/aril-ui-chip.mjs +3 -3
- package/fesm2022/aril-ui-chip.mjs.map +1 -1
- package/fesm2022/aril-ui-collapse-reorder-list.mjs +3 -3
- package/fesm2022/aril-ui-collapse-reorder-list.mjs.map +1 -1
- package/fesm2022/aril-ui-dxEditor.mjs +3 -3
- package/fesm2022/aril-ui-dxEditor.mjs.map +1 -1
- package/fesm2022/aril-ui-dxField.mjs +3 -3
- package/fesm2022/aril-ui-dxField.mjs.map +1 -1
- package/fesm2022/aril-ui-editor.mjs +3 -3
- package/fesm2022/aril-ui-editor.mjs.map +1 -1
- package/fesm2022/aril-ui-field.mjs +3 -3
- package/fesm2022/aril-ui-field.mjs.map +1 -1
- package/fesm2022/aril-ui-fileUpload.mjs +3 -3
- package/fesm2022/aril-ui-fileUpload.mjs.map +1 -1
- package/fesm2022/aril-ui-form.mjs +3 -3
- package/fesm2022/aril-ui-form.mjs.map +1 -1
- package/fesm2022/aril-ui-img-viewer.mjs +2 -2
- package/fesm2022/aril-ui-img-viewer.mjs.map +1 -1
- package/fesm2022/aril-ui-json-diff-comparison.mjs +3 -3
- package/fesm2022/aril-ui-json-diff-comparison.mjs.map +1 -1
- package/fesm2022/aril-ui-lib.mjs +9 -9
- package/fesm2022/aril-ui-lib.mjs.map +1 -1
- package/fesm2022/aril-ui-loader.mjs +2 -2
- package/fesm2022/aril-ui-loader.mjs.map +1 -1
- package/fesm2022/aril-ui-mask.mjs +2 -2
- package/fesm2022/aril-ui-mask.mjs.map +1 -1
- package/fesm2022/aril-ui-multiSelect.mjs +2 -2
- package/fesm2022/aril-ui-multiSelect.mjs.map +1 -1
- package/fesm2022/aril-ui-number.mjs +2 -2
- package/fesm2022/aril-ui-number.mjs.map +1 -1
- package/fesm2022/aril-ui-operation-types-dialog.mjs +10 -10
- package/fesm2022/aril-ui-operation-types-dialog.mjs.map +1 -1
- package/fesm2022/aril-ui-overlayPanel.mjs +3 -3
- package/fesm2022/aril-ui-overlayPanel.mjs.map +1 -1
- package/fesm2022/aril-ui-panel.mjs +3 -3
- package/fesm2022/aril-ui-panel.mjs.map +1 -1
- package/fesm2022/aril-ui-password.mjs +2 -2
- package/fesm2022/aril-ui-password.mjs.map +1 -1
- package/fesm2022/aril-ui-pdf-viewer.mjs +2 -2
- package/fesm2022/aril-ui-pdf-viewer.mjs.map +1 -1
- package/fesm2022/aril-ui-progressbar.mjs +2 -2
- package/fesm2022/aril-ui-progressbar.mjs.map +1 -1
- package/fesm2022/aril-ui-radioButton.mjs +2 -2
- package/fesm2022/aril-ui-radioButton.mjs.map +1 -1
- package/fesm2022/aril-ui-relativeDateSelector.mjs +3 -3
- package/fesm2022/aril-ui-relativeDateSelector.mjs.map +1 -1
- package/fesm2022/aril-ui-selectBox.mjs +4 -4
- package/fesm2022/aril-ui-selectBox.mjs.map +1 -1
- package/fesm2022/aril-ui-switch.mjs +2 -2
- package/fesm2022/aril-ui-switch.mjs.map +1 -1
- package/fesm2022/aril-ui-table-expand.mjs +3 -3
- package/fesm2022/aril-ui-table-expand.mjs.map +1 -1
- package/fesm2022/aril-ui-table.mjs +130 -130
- package/fesm2022/aril-ui-table.mjs.map +1 -1
- package/fesm2022/aril-ui-tag.mjs +2 -2
- package/fesm2022/aril-ui-tag.mjs.map +1 -1
- package/fesm2022/aril-ui-tagBox.mjs +4 -4
- package/fesm2022/aril-ui-tagBox.mjs.map +1 -1
- package/fesm2022/aril-ui-text.mjs +2 -2
- package/fesm2022/aril-ui-text.mjs.map +1 -1
- package/fesm2022/aril-ui-textArea.mjs +2 -2
- package/fesm2022/aril-ui-textArea.mjs.map +1 -1
- package/fesm2022/aril-ui-toggle-button.mjs +3 -3
- package/fesm2022/aril-ui-toggle-button.mjs.map +1 -1
- package/fesm2022/aril-ui-tooltip.mjs +2 -2
- package/fesm2022/aril-ui-tooltip.mjs.map +1 -1
- package/fesm2022/aril-ui-translate-input.mjs +26 -26
- package/fesm2022/aril-ui-translate-input.mjs.map +1 -1
- package/fesm2022/aril-ui-tree.mjs +3 -3
- package/fesm2022/aril-ui-tree.mjs.map +1 -1
- package/fesm2022/aril-ui-treeSelect.mjs +3 -3
- package/fesm2022/aril-ui-treeSelect.mjs.map +1 -1
- package/fesm2022/aril-ui-treeTable.mjs +3 -3
- package/fesm2022/aril-ui-treeTable.mjs.map +1 -1
- package/fesm2022/aril-ui-value.mjs +4 -4
- package/fesm2022/aril-ui-value.mjs.map +1 -1
- package/fesm2022/aril-ui.mjs.map +1 -1
- package/fesm2022/aril-util-block.mjs.map +1 -1
- package/fesm2022/aril-util-custom_pages.mjs +46 -46
- package/fesm2022/aril-util-custom_pages.mjs.map +1 -1
- package/fesm2022/aril-util-directives.mjs +1 -1
- package/fesm2022/aril-util-directives.mjs.map +1 -1
- package/fesm2022/aril-util-init-event.mjs +1 -1
- package/fesm2022/aril-util-init-event.mjs.map +1 -1
- package/fesm2022/aril-util-lib.mjs.map +1 -1
- package/fesm2022/aril-util-loaders.mjs +1 -1
- package/fesm2022/aril-util-loaders.mjs.map +1 -1
- package/fesm2022/aril-util-pipes.mjs +1 -1
- package/fesm2022/aril-util-pipes.mjs.map +1 -1
- package/fesm2022/aril-util-primitive-extensions.mjs.map +1 -1
- package/fesm2022/aril-util-pub-sub.mjs.map +1 -1
- package/fesm2022/aril-util-sync-active-tab-route.mjs +1 -1
- package/fesm2022/aril-util-sync-active-tab-route.mjs.map +1 -1
- package/fesm2022/aril-util-unwrap.mjs.map +1 -1
- package/fesm2022/aril.mjs +6 -6
- package/fesm2022/aril.mjs.map +1 -1
- package/package.json +127 -127
- package/scripts/util/blockui.min.js +6 -6
- package/styles/ui/ui.common.scss +42 -42
- package/styles/util/blockui.css +56 -56
- package/theme/index.ts +1 -1
- package/theme/layout/app/breadcrumb/app.breadcrumb.component.html +8 -8
- package/theme/layout/app/breadcrumb/app.breadcrumb.component.ts +126 -126
- package/theme/layout/app/chatbot/app.chatbot.component.html +108 -108
- package/theme/layout/app/chatbot/app.chatbot.component.scss +34 -34
- package/theme/layout/app/chatbot/app.chatbot.component.ts +151 -151
- package/theme/layout/app/config/app.config.component.html +146 -146
- package/theme/layout/app/config/app.config.component.ts +143 -143
- package/theme/layout/app/expandableMenu/expandable-menu.component.html +89 -89
- package/theme/layout/app/expandableMenu/expandable-menu.component.ts +295 -295
- package/theme/layout/app/favorite-pages/favorite-pages-sidebar.component.html +110 -110
- package/theme/layout/app/favorite-pages/favorite-pages-sidebar.component.scss +181 -181
- package/theme/layout/app/favorite-pages/favorite-pages-sidebar.component.ts +260 -260
- package/theme/layout/app/favorite-pages/favorite-pages.service.ts +95 -95
- package/theme/layout/app/favorite-pages/modals/add-edit-favorite-modal/add-edit-favorite-modal.component.html +27 -27
- package/theme/layout/app/favorite-pages/modals/add-edit-favorite-modal/add-edit-favorite-modal.component.ts +165 -165
- package/theme/layout/app/general-search/general-search.component.html +57 -57
- package/theme/layout/app/general-search/general-search.component.scss +27 -27
- package/theme/layout/app/general-search/general-search.component.ts +93 -93
- package/theme/layout/app/general-search/helpers.spec.ts +527 -527
- package/theme/layout/app/general-search/helpers.ts +106 -106
- package/theme/layout/app/general-search/models.ts +142 -142
- package/theme/layout/app/history/history-sidebar.component.html +87 -87
- package/theme/layout/app/history/history-sidebar.component.scss +182 -182
- package/theme/layout/app/history/history-sidebar.component.ts +143 -143
- package/theme/layout/app/history/history.service.ts +154 -154
- package/theme/layout/app/layout/app.layout.component.html +27 -27
- package/theme/layout/app/layout/app.layout.component.ts +171 -171
- package/theme/layout/app/layout/mfe.layout.component.ts +59 -59
- package/theme/layout/app/menu/app.menu.component.html +14 -14
- package/theme/layout/app/menu/app.menu.component.ts +350 -350
- package/theme/layout/app/notifications/notifications-sidebar.component.html +104 -104
- package/theme/layout/app/notifications/notifications-sidebar.component.scss +237 -237
- package/theme/layout/app/notifications/notifications-sidebar.component.ts +221 -221
- package/theme/layout/app/profileSidebar/app.profilesidebar.component.html +122 -122
- package/theme/layout/app/profileSidebar/app.profilesidebar.component.scss +151 -151
- package/theme/layout/app/profileSidebar/app.profilesidebar.component.ts +141 -141
- package/theme/layout/app/profileSidebar/modals/change-password-modal/change-password-modal.component.html +48 -48
- package/theme/layout/app/profileSidebar/modals/change-password-modal/change-password-modal.component.scss +27 -27
- package/theme/layout/app/profileSidebar/modals/change-password-modal/change-password-modal.component.ts +178 -178
- package/theme/layout/app/profileSidebar/modals/edit-profile-modal/edit-profile-modal.component.html +71 -71
- package/theme/layout/app/profileSidebar/modals/edit-profile-modal/edit-profile-modal.component.ts +251 -251
- package/theme/layout/app/profileSidebar/profile.service.ts +116 -116
- package/theme/layout/app/sidebar/app.sidebar.component.html +24 -24
- package/theme/layout/app/sidebar/app.sidebar.component.ts +44 -44
- package/theme/layout/app/site-map/site-map-sidebar.component.html +121 -121
- package/theme/layout/app/site-map/site-map-sidebar.component.scss +178 -178
- package/theme/layout/app/site-map/site-map-sidebar.component.ts +193 -193
- package/theme/layout/app/static-sidebar/static-sidebar.component.html +123 -123
- package/theme/layout/app/static-sidebar/static-sidebar.component.scss +408 -408
- package/theme/layout/app/static-sidebar/static-sidebar.component.ts +276 -276
- package/theme/layout/app/topbar/app.topbar.component.html +85 -85
- package/theme/layout/app/topbar/app.topbar.component.scss +193 -193
- package/theme/layout/app/topbar/app.topbar.component.ts +172 -172
- package/theme/layout/index.ts +7 -7
- package/theme/layout/ng-package.json +6 -6
- package/theme/layout/service/app.layout.service.ts +307 -307
- package/theme/layout/service/app.menu.service.ts +53 -53
- package/theme/layout/service/breadcrumb.service.ts +14 -14
- package/theme/layout/service/interfaces/enum.ts +13 -13
- package/theme/layout/service/interfaces/interfaces.ts +150 -150
- package/theme/layout/service/menuchangeevent.ts +4 -4
- package/theme/layout/service/notifications.service.ts +26 -26
- package/theme/layout/service/search.service.ts +22 -22
- package/theme/layout/service/selection-group.service.ts +73 -73
- package/theme/ng-package.json +6 -6
- package/theme/styles/layout/_animation.scss +53 -53
- package/theme/styles/layout/_breadcrumb.scss +31 -31
- package/theme/styles/layout/_config.scss +42 -42
- package/theme/styles/layout/_content.scss +61 -61
- package/theme/styles/layout/_expanded_sidebar.scss +486 -486
- package/theme/styles/layout/_fonts.scss +93 -93
- package/theme/styles/layout/_layout_dark.scss +5 -5
- package/theme/styles/layout/_layout_dim.scss +5 -5
- package/theme/styles/layout/_layout_light.scss +5 -5
- package/theme/styles/layout/_main.scss +28 -28
- package/theme/styles/layout/_profile.scss +10 -10
- package/theme/styles/layout/_responsive.scss +153 -153
- package/theme/styles/layout/_sidebar_drawer.scss +234 -234
- package/theme/styles/layout/_sidebar_horizontal.scss +163 -163
- package/theme/styles/layout/_sidebar_reveal.scss +201 -201
- package/theme/styles/layout/_sidebar_slim.scss +144 -144
- package/theme/styles/layout/_sidebar_slim_plus.scss +168 -168
- package/theme/styles/layout/_sidebar_vertical.scss +156 -156
- package/theme/styles/layout/_topbar.scss +140 -140
- package/theme/styles/layout/_typography.scss +68 -68
- package/theme/styles/layout/_utils.scss +24 -24
- package/theme/styles/layout/layout.scss +25 -25
- package/theme/styles/layout/menutheme/_colorscheme.scss +11 -11
- package/theme/styles/layout/menutheme/_menutheme.scss +3 -3
- package/theme/styles/layout/menutheme/_primarycolor.scss +16 -16
- package/theme/styles/layout/menutheme/_transparent.scss +26 -26
- package/theme/styles/layout/preloading.scss +84 -84
- package/theme/styles/theme/base/_colors.scss +17 -17
- package/theme/styles/theme/base/_common.scss +89 -89
- package/theme/styles/theme/base/_components.scss +108 -108
- package/theme/styles/theme/base/_mixins.scss +337 -337
- package/theme/styles/theme/base/components/button/_button.scss +576 -576
- package/theme/styles/theme/base/components/button/_speeddial.scss +96 -96
- package/theme/styles/theme/base/components/button/_splitbutton.scss +348 -348
- package/theme/styles/theme/base/components/data/_carousel.scss +37 -37
- package/theme/styles/theme/base/components/data/_datatable.scss +338 -338
- package/theme/styles/theme/base/components/data/_dataview.scss +46 -46
- package/theme/styles/theme/base/components/data/_filter.scss +137 -137
- package/theme/styles/theme/base/components/data/_orderlist.scss +114 -114
- package/theme/styles/theme/base/components/data/_organizationchart.scss +50 -50
- package/theme/styles/theme/base/components/data/_paginator.scss +92 -92
- package/theme/styles/theme/base/components/data/_picklist.scss +114 -114
- package/theme/styles/theme/base/components/data/_table.scss +16 -16
- package/theme/styles/theme/base/components/data/_timeline.scss +35 -35
- package/theme/styles/theme/base/components/data/_tree.scss +150 -150
- package/theme/styles/theme/base/components/data/_treetable.scss +255 -255
- package/theme/styles/theme/base/components/data/_virtualscroller.scss +28 -28
- package/theme/styles/theme/base/components/file/_fileupload.scss +64 -64
- package/theme/styles/theme/base/components/input/_autocomplete.scss +141 -141
- package/theme/styles/theme/base/components/input/_calendar.scss +267 -267
- package/theme/styles/theme/base/components/input/_cascadeselect.scss +135 -135
- package/theme/styles/theme/base/components/input/_checkbox.scss +99 -99
- package/theme/styles/theme/base/components/input/_chips.scss +67 -67
- package/theme/styles/theme/base/components/input/_colorpicker.scss +19 -19
- package/theme/styles/theme/base/components/input/_dropdown.scss +151 -151
- package/theme/styles/theme/base/components/input/_editor.scss +122 -122
- package/theme/styles/theme/base/components/input/_inputgroup.scss +75 -75
- package/theme/styles/theme/base/components/input/_inputmask.scss +16 -16
- package/theme/styles/theme/base/components/input/_inputnumber.scss +28 -28
- package/theme/styles/theme/base/components/input/_inputswitch.scss +60 -60
- package/theme/styles/theme/base/components/input/_inputtext.scss +100 -100
- package/theme/styles/theme/base/components/input/_listbox.scss +97 -97
- package/theme/styles/theme/base/components/input/_multiselect.scss +177 -177
- package/theme/styles/theme/base/components/input/_password.scss +52 -52
- package/theme/styles/theme/base/components/input/_radiobutton.scss +78 -78
- package/theme/styles/theme/base/components/input/_rating.scss +60 -60
- package/theme/styles/theme/base/components/input/_selectbutton.scss +50 -50
- package/theme/styles/theme/base/components/input/_slider.scss +75 -75
- package/theme/styles/theme/base/components/input/_togglebutton.scss +48 -48
- package/theme/styles/theme/base/components/input/_treeselect.scss +139 -139
- package/theme/styles/theme/base/components/menu/_breadcrumb.scss +43 -43
- package/theme/styles/theme/base/components/menu/_contextmenu.scss +39 -39
- package/theme/styles/theme/base/components/menu/_dock.scss +95 -95
- package/theme/styles/theme/base/components/menu/_megamenu.scss +55 -55
- package/theme/styles/theme/base/components/menu/_menu.scss +37 -37
- package/theme/styles/theme/base/components/menu/_menubar.scss +140 -140
- package/theme/styles/theme/base/components/menu/_panelmenu.scss +153 -153
- package/theme/styles/theme/base/components/menu/_slidemenu.scss +59 -59
- package/theme/styles/theme/base/components/menu/_steps.scss +56 -56
- package/theme/styles/theme/base/components/menu/_tabmenu.scss +73 -73
- package/theme/styles/theme/base/components/menu/_tieredmenu.scss +43 -43
- package/theme/styles/theme/base/components/messages/_inlinemessage.scss +69 -69
- package/theme/styles/theme/base/components/messages/_message.scss +107 -107
- package/theme/styles/theme/base/components/messages/_toast.scss +99 -99
- package/theme/styles/theme/base/components/misc/_avatar.scss +30 -30
- package/theme/styles/theme/base/components/misc/_badge.scss +48 -48
- package/theme/styles/theme/base/components/misc/_chip.scss +42 -42
- package/theme/styles/theme/base/components/misc/_inplace.scss +16 -16
- package/theme/styles/theme/base/components/misc/_progressbar.scss +17 -17
- package/theme/styles/theme/base/components/misc/_scrolltop.scss +25 -25
- package/theme/styles/theme/base/components/misc/_skeleton.scss +8 -8
- package/theme/styles/theme/base/components/misc/_tag.scss +45 -45
- package/theme/styles/theme/base/components/misc/_terminal.scss +12 -12
- package/theme/styles/theme/base/components/multimedia/_galleria.scss +155 -155
- package/theme/styles/theme/base/components/multimedia/_image.scss +49 -49
- package/theme/styles/theme/base/components/overlay/_confirmpopup.scss +70 -70
- package/theme/styles/theme/base/components/overlay/_dialog.scss +69 -69
- package/theme/styles/theme/base/components/overlay/_overlaypanel.scss +62 -62
- package/theme/styles/theme/base/components/overlay/_sidebar.scss +28 -28
- package/theme/styles/theme/base/components/overlay/_tooltip.scss +33 -33
- package/theme/styles/theme/base/components/panel/_accordion.scss +119 -119
- package/theme/styles/theme/base/components/panel/_card.scss +30 -30
- package/theme/styles/theme/base/components/panel/_divider.scss +31 -31
- package/theme/styles/theme/base/components/panel/_fieldset.scss +47 -47
- package/theme/styles/theme/base/components/panel/_panel.scss +77 -77
- package/theme/styles/theme/base/components/panel/_scrollpanel.scss +6 -6
- package/theme/styles/theme/base/components/panel/_splitter.scss +19 -19
- package/theme/styles/theme/base/components/panel/_stepper.scss +200 -200
- package/theme/styles/theme/base/components/panel/_tabview.scss +91 -91
- package/theme/styles/theme/base/components/panel/_toolbar.scss +11 -11
- package/theme/styles/theme/dark/_extensions.scss +134 -134
- package/theme/styles/theme/dark/_variables.scss +933 -933
- package/theme/styles/theme/dark/blue/theme.scss +14 -14
- package/theme/styles/theme/dark/indigo/theme.scss +14 -14
- package/theme/styles/theme/dark/lena/theme.scss +14 -14
- package/theme/styles/theme/dark/orange/theme.scss +14 -14
- package/theme/styles/theme/dark/thor/theme.scss +14 -14
- package/theme/styles/theme/dark/yeap/theme.scss +14 -14
- package/theme/styles/theme/light/_extensions.scss +116 -116
- package/theme/styles/theme/light/_variables.scss +940 -940
- package/theme/styles/theme/light/blue/theme.scss +14 -14
- package/theme/styles/theme/light/custom/theme.scss +16 -16
- package/theme/styles/theme/light/indigo/theme.scss +14 -14
- package/theme/styles/theme/light/lena/theme.scss +14 -14
- package/theme/styles/theme/light/orange/theme.scss +14 -14
- package/theme/styles/theme/light/thor/theme.scss +15 -15
- package/theme/styles/theme/light/yeap/theme.scss +14 -14
- package/ui-business/assetPicker/src/asset-picker.component.d.ts +8 -2
- package/ui-business/assetPicker/src/interface.d.ts +2 -0
- package/fesm2022/aril-app.component-BrM-uBqB.mjs.map +0 -1
- package/fesm2022/aril-boot-mfe-app.component-BWEM0ozE.mjs.map +0 -1
- package/fesm2022/aril-boot-mfe-aril-boot-mfe-Chnmyg0H.mjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aril-ui-tagBox.mjs","sources":["../../projects/aril/ui/tagBox/src/tag-box.component.ts","../../projects/aril/ui/tagBox/src/tag-box.component.html","../../projects/aril/ui/tagBox/aril-ui-tagBox.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { NgClass } from '@angular/common';\nimport { Component, ElementRef, ViewChild, input } from '@angular/core';\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { DxTagBoxModule } from 'devextreme-angular/ui/tag-box';\n\nimport {\n\tBaseInputComponent,\n\tDXInputErrorMessagePipe,\n\tInputErrorMessagePipe,\n\tValueAccessorDirective\n} from 'aril/ui/lib';\n\n@Component({\n\tstandalone: true,\n\tselector: 'aril-tag-box',\n\ttemplateUrl: './tag-box.component.html',\n\timports: [ReactiveFormsModule, DxTagBoxModule, DXInputErrorMessagePipe, NgClass],\n\tproviders: [InputErrorMessagePipe],\n\thostDirectives: [ValueAccessorDirective]\n})\nexport class TagBoxComponent extends BaseInputComponent {\n\tplaceholder = input<string>('');\n\tvalueExpr = input.required<string>();\n\tdisplayExpr = input.required<string>();\n\tmaxDisplayedTags = input(5);\n\ttabindex = input<number>(0);\n\tacceptCustomValue = input(true);\n\titems = input.required<Array<string | number>>();\n\n\t@ViewChild('tagBox') tagBox!: ElementRef;\n\n\tonCustomItemCreating(e: any) {\n\t\tlet newValues = [];\n\n\t\tconst items = e.component.option('items');\n\t\tconst selectedItems = e.component.option('selectedItems');\n\n\t\tif (e.text.indexOf(',') != -1) newValues = e.text.replace(/ /g, '').split(',');\n\t\telse if (e.text.indexOf('|') != -1) newValues = e.text.replace(/ /g, '').split('|');\n\t\telse if (e.text.indexOf(' ') != -1) newValues = e.text.split(' ');\n\t\telse newValues.push(e.text);\n\n\t\tnewValues.forEach((value: string) => {\n\t\t\tif (selectedItems.indexOf(value) == -1) {\n\t\t\t\tselectedItems.push(value);\n\t\t\t\titems?.unshift(value);\n\t\t\t}\n\t\t});\n\n\t\te.component.option('items', items);\n\t\te.component.option('value', selectedItems);\n\t\te.text = '';\n\t}\n}\n","<dx-tag-box\n\t#ref\n\t[items]=\"items()\"\n\t[valueExpr]=\"valueExpr()\"\n\t[displayExpr]=\"displayExpr()\"\n\t[showSelectionControls]=\"!acceptCustomValue()\"\n\t[applyValueMode]=\"acceptCustomValue() ? 'instantly' : 'useButtons'\"\n\t[placeholder]=\"placeholder()\"\n\t[multiline]=\"false\"\n\t[tabIndex]=\"tabindex()\"\n\t[acceptCustomValue]=\"acceptCustomValue()\"\n\t[searchEnabled]=\"true\"\n\t[maxDisplayedTags]=\"maxDisplayedTags()\"\n\t[showMultiTagOnly]=\"false\"\n\t[showClearButton]=\"true\"\n\t[showDropDownButton]=\"true\"\n\t(onCustomItemCreating)=\"onCustomItemCreating($event)\"\n\t[isValid]=\"ngControl?.control?.valid || ngControl?.control?.pristine || ngControl?.control?.disabled || false\"\n\t[validationError]=\"ngControl?.control?.errors | dxInputErrorMessage: ngControl?.control\"\n\tvalidationMessagePosition=\"top\"\n\t[formControl]=\"ngControl.control\"\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\n\t<div *dxTemplate=\"let data of 'dropDownButton'\">\n\t\t<i [class]=\"!ref.opened ? 'pi pi-chevron-down' :'pi pi-chevron-up'\" style=\"font-size: xx-small\"></i>\n </div>\n</dx-tag-box>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAAA;AAsBM,MAAO,eAAgB,SAAQ,kBAAkB,CAAA;AARvD,IAAA,WAAA,GAAA;;AASC,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAS,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"aril-ui-tagBox.mjs","sources":["../../projects/aril/ui/tagBox/src/tag-box.component.ts","../../projects/aril/ui/tagBox/src/tag-box.component.html","../../projects/aril/ui/tagBox/aril-ui-tagBox.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\r\nimport { NgClass } from '@angular/common';\r\nimport { Component, ElementRef, ViewChild, input } from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\n\r\nimport { DxTagBoxModule } from 'devextreme-angular/ui/tag-box';\r\n\r\nimport {\r\n\tBaseInputComponent,\r\n\tDXInputErrorMessagePipe,\r\n\tInputErrorMessagePipe,\r\n\tValueAccessorDirective\r\n} from 'aril/ui/lib';\r\n\r\n@Component({\r\n\tstandalone: true,\r\n\tselector: 'aril-tag-box',\r\n\ttemplateUrl: './tag-box.component.html',\r\n\timports: [ReactiveFormsModule, DxTagBoxModule, DXInputErrorMessagePipe, NgClass],\r\n\tproviders: [InputErrorMessagePipe],\r\n\thostDirectives: [ValueAccessorDirective]\r\n})\r\nexport class TagBoxComponent extends BaseInputComponent {\r\n\tplaceholder = input<string>('');\r\n\tvalueExpr = input.required<string>();\r\n\tdisplayExpr = input.required<string>();\r\n\tmaxDisplayedTags = input(5);\r\n\ttabindex = input<number>(0);\r\n\tacceptCustomValue = input(true);\r\n\titems = input.required<Array<string | number>>();\r\n\r\n\t@ViewChild('tagBox') tagBox!: ElementRef;\r\n\r\n\tonCustomItemCreating(e: any) {\r\n\t\tlet newValues = [];\r\n\r\n\t\tconst items = e.component.option('items');\r\n\t\tconst selectedItems = e.component.option('selectedItems');\r\n\r\n\t\tif (e.text.indexOf(',') != -1) newValues = e.text.replace(/ /g, '').split(',');\r\n\t\telse if (e.text.indexOf('|') != -1) newValues = e.text.replace(/ /g, '').split('|');\r\n\t\telse if (e.text.indexOf(' ') != -1) newValues = e.text.split(' ');\r\n\t\telse newValues.push(e.text);\r\n\r\n\t\tnewValues.forEach((value: string) => {\r\n\t\t\tif (selectedItems.indexOf(value) == -1) {\r\n\t\t\t\tselectedItems.push(value);\r\n\t\t\t\titems?.unshift(value);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\te.component.option('items', items);\r\n\t\te.component.option('value', selectedItems);\r\n\t\te.text = '';\r\n\t}\r\n}\r\n","<dx-tag-box\r\n\t#ref\r\n\t[items]=\"items()\"\r\n\t[valueExpr]=\"valueExpr()\"\r\n\t[displayExpr]=\"displayExpr()\"\r\n\t[showSelectionControls]=\"!acceptCustomValue()\"\r\n\t[applyValueMode]=\"acceptCustomValue() ? 'instantly' : 'useButtons'\"\r\n\t[placeholder]=\"placeholder()\"\r\n\t[multiline]=\"false\"\r\n\t[tabIndex]=\"tabindex()\"\r\n\t[acceptCustomValue]=\"acceptCustomValue()\"\r\n\t[searchEnabled]=\"true\"\r\n\t[maxDisplayedTags]=\"maxDisplayedTags()\"\r\n\t[showMultiTagOnly]=\"false\"\r\n\t[showClearButton]=\"true\"\r\n\t[showDropDownButton]=\"true\"\r\n\t(onCustomItemCreating)=\"onCustomItemCreating($event)\"\r\n\t[isValid]=\"ngControl?.control?.valid || ngControl?.control?.pristine || ngControl?.control?.disabled || false\"\r\n\t[validationError]=\"ngControl?.control?.errors | dxInputErrorMessage: ngControl?.control\"\r\n\tvalidationMessagePosition=\"top\"\r\n\t[formControl]=\"ngControl.control\"\r\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\r\n\t<div *dxTemplate=\"let data of 'dropDownButton'\">\r\n\t\t<i [class]=\"!ref.opened ? 'pi pi-chevron-down' :'pi pi-chevron-up'\" style=\"font-size: xx-small\"></i>\r\n </div>\r\n</dx-tag-box>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAAA;AAsBM,MAAO,eAAgB,SAAQ,kBAAkB,CAAA;AARvD,IAAA,WAAA,GAAA;;AASC,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAS,EAAE,CAAC,CAAC;AAChC,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK,CAAC,QAAQ,EAAU,CAAC;AACrC,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAC,QAAQ,EAAU,CAAC;AACvC,QAAA,IAAA,CAAA,gBAAgB,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;AAC5B,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAS,CAAC,CAAC,CAAC;AAC5B,QAAA,IAAA,CAAA,iBAAiB,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC;AAChC,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAC,QAAQ,EAA0B,CAAC;AA0BjD,KAAA;AAtBA,IAAA,oBAAoB,CAAC,CAAM,EAAA;QAC1B,IAAI,SAAS,GAAG,EAAE,CAAC;QAEnB,MAAM,KAAK,GAAG,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAC1C,MAAM,aAAa,GAAG,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;QAE1D,IAAI,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AAAE,YAAA,SAAS,GAAG,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAA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,EAAA,wBAAA,EAAA,6BAAA,EAAA,iCAAA,EAAA,wBAAA,EAAA,aAAA,EAAA,wBAAA,EAAA,iBAAA,EAAA,eAAA,EAAA,aAAA,EAAA,oBAAA,EAAA,QAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,mBAAA,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,CAAA,cAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAE,uBAAuB,EAAA,IAAA,EAAA,qBAAA,EAAA,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAI1D,eAAe,EAAA,UAAA,EAAA,CAAA;kBAR3B,SAAS;AACG,YAAA,IAAA,EAAA,CAAA,EAAA,UAAA,EAAA,IAAI,YACN,cAAc,EAAA,OAAA,EAEf,CAAC,mBAAmB,EAAE,cAAc,EAAE,uBAAuB,EAAE,OAAO,CAAC,aACrE,CAAC,qBAAqB,CAAC,EAClB,cAAA,EAAA,CAAC,sBAAsB,CAAC,EAAA,QAAA,EAAA,mqCAAA,EAAA,CAAA;8BAWnB,MAAM,EAAA,CAAA;sBAA1B,SAAS;uBAAC,QAAQ,CAAA;;;AE/BpB;;AAEG;;;;"}
|
|
@@ -39,11 +39,11 @@ class TextComponent extends BaseInputComponent {
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TextComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
42
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: TextComponent, isStandalone: true, selector: "aril-text[ngModel], aril-text[formControl], aril-text[formControlName]", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, iconPos: { classPropertyName: "iconPos", publicName: "iconPos", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, hostDirectives: [{ directive: i1.ValueAccessorDirective }], ngImport: i0, template: "<ng-template #input>\n\t<input\n\t\tpInputText\n\t\ttype=\"text\"\n\t\t[class]=\"_sizeClass()\"\n\t\t[placeholder]=\"placeholder()\"\n\t\t[tabindex]=\"tabindex()\"\n\t\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\n\t\t[tooltipOptions]=\"tooltipOptions\"\n\t\t[formControl]=\"ngControl.control\"\n\t\t(input)=\"onInputChange($event)\" />\n</ng-template>\n\n@if (_icon()) {\n\t<span [class]=\"_iconPosClass()\">\n\t\t<i [class]=\"_icon()\"></i>\n\t\t<ng-container *ngTemplateOutlet=\"input\"></ng-container>\n\t</span>\n} @else {\n\t<ng-container *ngTemplateOutlet=\"input\"></ng-container>\n}\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: InputTextModule }, { kind: "directive", type: i3.InputText, selector: "[pInputText]", inputs: ["variant"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i4.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" }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
|
|
42
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: TextComponent, isStandalone: true, selector: "aril-text[ngModel], aril-text[formControl], aril-text[formControlName]", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, iconPos: { classPropertyName: "iconPos", publicName: "iconPos", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, hostDirectives: [{ directive: i1.ValueAccessorDirective }], ngImport: i0, template: "<ng-template #input>\r\n\t<input\r\n\t\tpInputText\r\n\t\ttype=\"text\"\r\n\t\t[class]=\"_sizeClass()\"\r\n\t\t[placeholder]=\"placeholder()\"\r\n\t\t[tabindex]=\"tabindex()\"\r\n\t\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\r\n\t\t[tooltipOptions]=\"tooltipOptions\"\r\n\t\t[formControl]=\"ngControl.control\"\r\n\t\t(input)=\"onInputChange($event)\" />\r\n</ng-template>\r\n\r\n@if (_icon()) {\r\n\t<span [class]=\"_iconPosClass()\">\r\n\t\t<i [class]=\"_icon()\"></i>\r\n\t\t<ng-container *ngTemplateOutlet=\"input\"></ng-container>\r\n\t</span>\r\n} @else {\r\n\t<ng-container *ngTemplateOutlet=\"input\"></ng-container>\r\n}\r\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: InputTextModule }, { kind: "directive", type: i3.InputText, selector: "[pInputText]", inputs: ["variant"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i4.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" }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
|
|
43
43
|
}
|
|
44
44
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TextComponent, decorators: [{
|
|
45
45
|
type: Component,
|
|
46
|
-
args: [{ standalone: true, selector: 'aril-text[ngModel], aril-text[formControl], aril-text[formControlName]', imports: [ReactiveFormsModule, InputTextModule, TooltipModule, InputErrorMessagePipe, NgTemplateOutlet], hostDirectives: [ValueAccessorDirective], template: "<ng-template #input>\n\t<input\n\t\tpInputText\n\t\ttype=\"text\"\n\t\t[class]=\"_sizeClass()\"\n\t\t[placeholder]=\"placeholder()\"\n\t\t[tabindex]=\"tabindex()\"\n\t\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\n\t\t[tooltipOptions]=\"tooltipOptions\"\n\t\t[formControl]=\"ngControl.control\"\n\t\t(input)=\"onInputChange($event)\" />\n</ng-template>\n\n@if (_icon()) {\n\t<span [class]=\"_iconPosClass()\">\n\t\t<i [class]=\"_icon()\"></i>\n\t\t<ng-container *ngTemplateOutlet=\"input\"></ng-container>\n\t</span>\n} @else {\n\t<ng-container *ngTemplateOutlet=\"input\"></ng-container>\n}\n" }]
|
|
46
|
+
args: [{ standalone: true, selector: 'aril-text[ngModel], aril-text[formControl], aril-text[formControlName]', imports: [ReactiveFormsModule, InputTextModule, TooltipModule, InputErrorMessagePipe, NgTemplateOutlet], hostDirectives: [ValueAccessorDirective], template: "<ng-template #input>\r\n\t<input\r\n\t\tpInputText\r\n\t\ttype=\"text\"\r\n\t\t[class]=\"_sizeClass()\"\r\n\t\t[placeholder]=\"placeholder()\"\r\n\t\t[tabindex]=\"tabindex()\"\r\n\t\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\r\n\t\t[tooltipOptions]=\"tooltipOptions\"\r\n\t\t[formControl]=\"ngControl.control\"\r\n\t\t(input)=\"onInputChange($event)\" />\r\n</ng-template>\r\n\r\n@if (_icon()) {\r\n\t<span [class]=\"_iconPosClass()\">\r\n\t\t<i [class]=\"_icon()\"></i>\r\n\t\t<ng-container *ngTemplateOutlet=\"input\"></ng-container>\r\n\t</span>\r\n} @else {\r\n\t<ng-container *ngTemplateOutlet=\"input\"></ng-container>\r\n}\r\n" }]
|
|
47
47
|
}] });
|
|
48
48
|
|
|
49
49
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aril-ui-text.mjs","sources":["../../projects/aril/ui/text/src/text.component.ts","../../projects/aril/ui/text/src/text.component.html","../../projects/aril/ui/text/aril-ui-text.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport { Component, computed, input } from '@angular/core';\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { InputTextModule } from 'primeng/inputtext';\nimport { TooltipModule } from 'primeng/tooltip';\n\nimport {\n\tBaseInputComponent,\n\tIconPosTypes,\n\tInputErrorMessagePipe,\n\tPrimeIcon,\n\tValueAccessorDirective,\n\ticonPosTransform,\n\ticonTransform\n} from 'aril/ui/lib';\n\ntype Size = 'sm' | 'md' | 'lg';\n\n@Component({\n\tstandalone: true,\n\tselector: 'aril-text[ngModel], aril-text[formControl], aril-text[formControlName]',\n\ttemplateUrl: './text.component.html',\n\timports: [ReactiveFormsModule, InputTextModule, TooltipModule, InputErrorMessagePipe, NgTemplateOutlet],\n\thostDirectives: [ValueAccessorDirective]\n})\nexport class TextComponent extends BaseInputComponent {\n\tplaceholder = input<string>('');\n\ttabindex = input<number>();\n\ticon = input<PrimeIcon>();\n\ticonPos = input<IconPosTypes>('left');\n\tsize = input<Size>('md');\n\n\t_icon = computed(() => iconTransform(this.icon()!));\n\t_iconPosClass = computed(() => iconPosTransform(this.iconPos()!));\n\n\t_sizeClass = computed(() => {\n\t\tswitch (this.size()) {\n\t\t\tcase 'sm':\n\t\t\t\treturn 'p-inputtext-sm';\n\t\t\tcase 'md':\n\t\t\t\treturn '';\n\t\t\tcase 'lg':\n\t\t\t\treturn 'p-inputtext-lg';\n\t\t}\n\t});\n\n\tonInputChange(event: Event) {\n\t\tconst value = (event.target as HTMLInputElement).value;\n\t\tconst transformedValue = value === '' ? null : value;\n\t\tif (this.ngControl.control) {\n\t\t\tthis.ngControl.control.setValue(transformedValue);\n\t\t}\n\t}\n}\n","<ng-template #input>\n\t<input\n\t\tpInputText\n\t\ttype=\"text\"\n\t\t[class]=\"_sizeClass()\"\n\t\t[placeholder]=\"placeholder()\"\n\t\t[tabindex]=\"tabindex()\"\n\t\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\n\t\t[tooltipOptions]=\"tooltipOptions\"\n\t\t[formControl]=\"ngControl.control\"\n\t\t(input)=\"onInputChange($event)\" />\n</ng-template>\n\n@if (_icon()) {\n\t<span [class]=\"_iconPosClass()\">\n\t\t<i [class]=\"_icon()\"></i>\n\t\t<ng-container *ngTemplateOutlet=\"input\"></ng-container>\n\t</span>\n} @else {\n\t<ng-container *ngTemplateOutlet=\"input\"></ng-container>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;AA0BM,MAAO,aAAc,SAAQ,kBAAkB,CAAA;AAPrD,IAAA,WAAA,GAAA;;AAQC,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAS,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"aril-ui-text.mjs","sources":["../../projects/aril/ui/text/src/text.component.ts","../../projects/aril/ui/text/src/text.component.html","../../projects/aril/ui/text/aril-ui-text.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\r\nimport { Component, computed, input } from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\n\r\nimport { InputTextModule } from 'primeng/inputtext';\r\nimport { TooltipModule } from 'primeng/tooltip';\r\n\r\nimport {\r\n\tBaseInputComponent,\r\n\tIconPosTypes,\r\n\tInputErrorMessagePipe,\r\n\tPrimeIcon,\r\n\tValueAccessorDirective,\r\n\ticonPosTransform,\r\n\ticonTransform\r\n} from 'aril/ui/lib';\r\n\r\ntype Size = 'sm' | 'md' | 'lg';\r\n\r\n@Component({\r\n\tstandalone: true,\r\n\tselector: 'aril-text[ngModel], aril-text[formControl], aril-text[formControlName]',\r\n\ttemplateUrl: './text.component.html',\r\n\timports: [ReactiveFormsModule, InputTextModule, TooltipModule, InputErrorMessagePipe, NgTemplateOutlet],\r\n\thostDirectives: [ValueAccessorDirective]\r\n})\r\nexport class TextComponent extends BaseInputComponent {\r\n\tplaceholder = input<string>('');\r\n\ttabindex = input<number>();\r\n\ticon = input<PrimeIcon>();\r\n\ticonPos = input<IconPosTypes>('left');\r\n\tsize = input<Size>('md');\r\n\r\n\t_icon = computed(() => iconTransform(this.icon()!));\r\n\t_iconPosClass = computed(() => iconPosTransform(this.iconPos()!));\r\n\r\n\t_sizeClass = computed(() => {\r\n\t\tswitch (this.size()) {\r\n\t\t\tcase 'sm':\r\n\t\t\t\treturn 'p-inputtext-sm';\r\n\t\t\tcase 'md':\r\n\t\t\t\treturn '';\r\n\t\t\tcase 'lg':\r\n\t\t\t\treturn 'p-inputtext-lg';\r\n\t\t}\r\n\t});\r\n\r\n\tonInputChange(event: Event) {\r\n\t\tconst value = (event.target as HTMLInputElement).value;\r\n\t\tconst transformedValue = value === '' ? null : value;\r\n\t\tif (this.ngControl.control) {\r\n\t\t\tthis.ngControl.control.setValue(transformedValue);\r\n\t\t}\r\n\t}\r\n}\r\n","<ng-template #input>\r\n\t<input\r\n\t\tpInputText\r\n\t\ttype=\"text\"\r\n\t\t[class]=\"_sizeClass()\"\r\n\t\t[placeholder]=\"placeholder()\"\r\n\t\t[tabindex]=\"tabindex()\"\r\n\t\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\r\n\t\t[tooltipOptions]=\"tooltipOptions\"\r\n\t\t[formControl]=\"ngControl.control\"\r\n\t\t(input)=\"onInputChange($event)\" />\r\n</ng-template>\r\n\r\n@if (_icon()) {\r\n\t<span [class]=\"_iconPosClass()\">\r\n\t\t<i [class]=\"_icon()\"></i>\r\n\t\t<ng-container *ngTemplateOutlet=\"input\"></ng-container>\r\n\t</span>\r\n} @else {\r\n\t<ng-container *ngTemplateOutlet=\"input\"></ng-container>\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;AA0BM,MAAO,aAAc,SAAQ,kBAAkB,CAAA;AAPrD,IAAA,WAAA,GAAA;;AAQC,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAS,EAAE,CAAC,CAAC;QAChC,IA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Ae,EAAE,aAAa,EAAE,qBAAqB,EAAE,gBAAgB,CAAC,EACvF,cAAA,EAAA,CAAC,sBAAsB,CAAC,EAAA,QAAA,EAAA,krBAAA,EAAA,CAAA;;;AExBzC;;AAEG;;;;"}
|
|
@@ -19,11 +19,11 @@ class TextAreaComponent extends BaseInputComponent {
|
|
|
19
19
|
this.placeholder = input('');
|
|
20
20
|
}
|
|
21
21
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TextAreaComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
22
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.1.2", type: TextAreaComponent, isStandalone: true, selector: "aril-text-area[ngModel], aril-text-area[formControl], aril-text-area[formControlName]", inputs: { rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, cols: { classPropertyName: "cols", publicName: "cols", isSignal: true, isRequired: false, transformFunction: null }, isAutoResize: { classPropertyName: "isAutoResize", publicName: "isAutoResize", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, hostDirectives: [{ directive: i1.ValueAccessorDirective }], ngImport: i0, template: "<textarea\n\tpInputTextarea\n\t[class.w-full]=\"!cols()\"\n\t[rows]=\"rows()\"\n\t[cols]=\"cols()\"\n\t[autoResize]=\"isAutoResize()\"\n\t[placeholder]=\"placeholder()\"\n\t[tabindex]=\"tabindex()\"\n\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\n\t[tooltipOptions]=\"tooltipOptions\"\n\t[formControl]=\"ngControl.control\"\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\"></textarea>\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: InputTextareaModule }, { kind: "directive", type: i3.InputTextarea, selector: "[pInputTextarea]", inputs: ["autoResize", "variant"], outputs: ["onResize"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i4.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" }] }); }
|
|
22
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.1.2", type: TextAreaComponent, isStandalone: true, selector: "aril-text-area[ngModel], aril-text-area[formControl], aril-text-area[formControlName]", inputs: { rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, cols: { classPropertyName: "cols", publicName: "cols", isSignal: true, isRequired: false, transformFunction: null }, isAutoResize: { classPropertyName: "isAutoResize", publicName: "isAutoResize", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, hostDirectives: [{ directive: i1.ValueAccessorDirective }], ngImport: i0, template: "<textarea\r\n\tpInputTextarea\r\n\t[class.w-full]=\"!cols()\"\r\n\t[rows]=\"rows()\"\r\n\t[cols]=\"cols()\"\r\n\t[autoResize]=\"isAutoResize()\"\r\n\t[placeholder]=\"placeholder()\"\r\n\t[tabindex]=\"tabindex()\"\r\n\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\r\n\t[tooltipOptions]=\"tooltipOptions\"\r\n\t[formControl]=\"ngControl.control\"\r\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\"></textarea>\r\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: InputTextareaModule }, { kind: "directive", type: i3.InputTextarea, selector: "[pInputTextarea]", inputs: ["autoResize", "variant"], outputs: ["onResize"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i4.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" }] }); }
|
|
23
23
|
}
|
|
24
24
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TextAreaComponent, decorators: [{
|
|
25
25
|
type: Component,
|
|
26
|
-
args: [{ standalone: true, selector: 'aril-text-area[ngModel], aril-text-area[formControl], aril-text-area[formControlName]', imports: [ReactiveFormsModule, InputTextareaModule, TooltipModule, InputErrorMessagePipe], hostDirectives: [ValueAccessorDirective], template: "<textarea\n\tpInputTextarea\n\t[class.w-full]=\"!cols()\"\n\t[rows]=\"rows()\"\n\t[cols]=\"cols()\"\n\t[autoResize]=\"isAutoResize()\"\n\t[placeholder]=\"placeholder()\"\n\t[tabindex]=\"tabindex()\"\n\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\n\t[tooltipOptions]=\"tooltipOptions\"\n\t[formControl]=\"ngControl.control\"\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\"></textarea>\n" }]
|
|
26
|
+
args: [{ standalone: true, selector: 'aril-text-area[ngModel], aril-text-area[formControl], aril-text-area[formControlName]', imports: [ReactiveFormsModule, InputTextareaModule, TooltipModule, InputErrorMessagePipe], hostDirectives: [ValueAccessorDirective], template: "<textarea\r\n\tpInputTextarea\r\n\t[class.w-full]=\"!cols()\"\r\n\t[rows]=\"rows()\"\r\n\t[cols]=\"cols()\"\r\n\t[autoResize]=\"isAutoResize()\"\r\n\t[placeholder]=\"placeholder()\"\r\n\t[tabindex]=\"tabindex()\"\r\n\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\r\n\t[tooltipOptions]=\"tooltipOptions\"\r\n\t[formControl]=\"ngControl.control\"\r\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\"></textarea>\r\n" }]
|
|
27
27
|
}] });
|
|
28
28
|
|
|
29
29
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aril-ui-textArea.mjs","sources":["../../projects/aril/ui/textArea/src/text-area.component.ts","../../projects/aril/ui/textArea/src/text-area.component.html","../../projects/aril/ui/textArea/aril-ui-textArea.ts"],"sourcesContent":["import { Component, input } from '@angular/core';\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { InputTextareaModule } from 'primeng/inputtextarea';\nimport { TooltipModule } from 'primeng/tooltip';\n\nimport { BaseInputComponent, InputErrorMessagePipe, ValueAccessorDirective } from 'aril/ui/lib';\n\n@Component({\n\tstandalone: true,\n\tselector: 'aril-text-area[ngModel], aril-text-area[formControl], aril-text-area[formControlName]',\n\ttemplateUrl: './text-area.component.html',\n\timports: [ReactiveFormsModule, InputTextareaModule, TooltipModule, InputErrorMessagePipe],\n\thostDirectives: [ValueAccessorDirective]\n})\nexport class TextAreaComponent extends BaseInputComponent {\n\trows = input<number>();\n\tcols = input<number>();\n\tisAutoResize = input<boolean>(true);\n\ttabindex = input<number>();\n\tplaceholder = input<string>('');\n}\n","<textarea\n\tpInputTextarea\n\t[class.w-full]=\"!cols()\"\n\t[rows]=\"rows()\"\n\t[cols]=\"cols()\"\n\t[autoResize]=\"isAutoResize()\"\n\t[placeholder]=\"placeholder()\"\n\t[tabindex]=\"tabindex()\"\n\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\n\t[tooltipOptions]=\"tooltipOptions\"\n\t[formControl]=\"ngControl.control\"\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\"></textarea>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAeM,MAAO,iBAAkB,SAAQ,kBAAkB,CAAA;AAPzD,IAAA,WAAA,GAAA;;QAQC,
|
|
1
|
+
{"version":3,"file":"aril-ui-textArea.mjs","sources":["../../projects/aril/ui/textArea/src/text-area.component.ts","../../projects/aril/ui/textArea/src/text-area.component.html","../../projects/aril/ui/textArea/aril-ui-textArea.ts"],"sourcesContent":["import { Component, input } from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\n\r\nimport { InputTextareaModule } from 'primeng/inputtextarea';\r\nimport { TooltipModule } from 'primeng/tooltip';\r\n\r\nimport { BaseInputComponent, InputErrorMessagePipe, ValueAccessorDirective } from 'aril/ui/lib';\r\n\r\n@Component({\r\n\tstandalone: true,\r\n\tselector: 'aril-text-area[ngModel], aril-text-area[formControl], aril-text-area[formControlName]',\r\n\ttemplateUrl: './text-area.component.html',\r\n\timports: [ReactiveFormsModule, InputTextareaModule, TooltipModule, InputErrorMessagePipe],\r\n\thostDirectives: [ValueAccessorDirective]\r\n})\r\nexport class TextAreaComponent extends BaseInputComponent {\r\n\trows = input<number>();\r\n\tcols = input<number>();\r\n\tisAutoResize = input<boolean>(true);\r\n\ttabindex = input<number>();\r\n\tplaceholder = input<string>('');\r\n}\r\n","<textarea\r\n\tpInputTextarea\r\n\t[class.w-full]=\"!cols()\"\r\n\t[rows]=\"rows()\"\r\n\t[cols]=\"cols()\"\r\n\t[autoResize]=\"isAutoResize()\"\r\n\t[placeholder]=\"placeholder()\"\r\n\t[tabindex]=\"tabindex()\"\r\n\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\r\n\t[tooltipOptions]=\"tooltipOptions\"\r\n\t[formControl]=\"ngControl.control\"\r\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\"></textarea>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAeM,MAAO,iBAAkB,SAAQ,kBAAkB,CAAA;AAPzD,IAAA,WAAA,GAAA;;QAQC,IAAI,CAAA,IAAA,GAAG,KAAK,EAAU,CAAC;QACvB,IAAI,CAAA,IAAA,GAAG,KAAK,EAAU,CAAC;AACvB,QAAA,IAAA,CAAA,YAAY,GAAG,KAAK,CAAU,IAAI,CAAC,CAAC;QACpC,IAAQ,CAAA,QAAA,GAAG,KAAK,EAAU,CAAC;AAC3B,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAS,EAAE,CAAC,CAAC;AAChC,KAAA;8GANY,iBAAiB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAAjB,iB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A,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAE,aAAa,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,YAAA,EAAA,MAAA,EAAA,CAAA,iBAAA,EAAA,cAAA,EAAA,UAAA,EAAA,eAAA,EAAA,mBAAA,EAAA,eAAA,EAAA,QAAA,EAAA,WAAA,EAAA,WAAA,EAAA,MAAA,EAAA,aAAA,EAAA,cAAA,EAAA,UAAA,EAAA,YAAA,EAAA,cAAA,EAAA,UAAA,EAAA,iBAAA,EAAA,gBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAE,qBAAqB,EAAA,IAAA,EAAA,mBAAA,EAAA,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAG5E,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAP7B,SAAS;AACG,YAAA,IAAA,EAAA,CAAA,EAAA,UAAA,EAAA,IAAI,EACN,QAAA,EAAA,uFAAuF,EAExF,OAAA,EAAA,CAAC,mBAAmB,EAAE,mBAAmB,EAAE,aAAa,EAAE,qBAAqB,CAAC,EACzE,cAAA,EAAA,CAAC,sBAAsB,CAAC,EAAA,QAAA,EAAA,2dAAA,EAAA,CAAA;;;AEbzC;;AAEG;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NgClass, NgStyle } from '@angular/common';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { input, EventEmitter,
|
|
3
|
+
import { input, EventEmitter, Component, Output } from '@angular/core';
|
|
4
4
|
import * as i1 from 'primeng/button';
|
|
5
5
|
import { ButtonModule } from 'primeng/button';
|
|
6
6
|
|
|
@@ -15,11 +15,11 @@ class ToggleButtonComponent {
|
|
|
15
15
|
this.selectionChange.emit(this.selectedIndex);
|
|
16
16
|
}
|
|
17
17
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: ToggleButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
18
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: ToggleButtonComponent, isStandalone: true, selector: "aril-toggle-button", inputs: { buttonLabels: { classPropertyName: "buttonLabels", publicName: "buttonLabels", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { selectionChange: "selectionChange" }, ngImport: i0, template: "<div class=\"toggle-button-container\">\n <div>\n @for(label of buttonLabels();track label; let i = $index){\n <button\n pButton\n (click)=\"toggleButton(i)\"\n [ngClass]=\"{'p-button-success': selectedIndex === i, 'p-button-secondary p-button-outlined': selectedIndex !== i}\"\n [ngStyle]=\"{'border-color': selectedIndex !== i ? '#E6E8EB' : null}\"\n >\n {{label}}</button>\n }\n </div>\n</div>", styles: [".toggle-button-container{width:100%;display:flex;justify-content:center}button{margin:0!important;border-radius:0!important}button:first-child{border-top-left-radius:4px!important;border-bottom-left-radius:4px!important}button:last-child{border-top-right-radius:4px!important;border-bottom-right-radius:4px!important}\n"], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "directive", type: i1.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading", "severity", "raised", "rounded", "text", "outlined", "size", "plain"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
|
|
18
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: ToggleButtonComponent, isStandalone: true, selector: "aril-toggle-button", inputs: { buttonLabels: { classPropertyName: "buttonLabels", publicName: "buttonLabels", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { selectionChange: "selectionChange" }, ngImport: i0, template: "<div class=\"toggle-button-container\">\r\n <div>\r\n @for(label of buttonLabels();track label; let i = $index){\r\n <button\r\n pButton\r\n (click)=\"toggleButton(i)\"\r\n [ngClass]=\"{'p-button-success': selectedIndex === i, 'p-button-secondary p-button-outlined': selectedIndex !== i}\"\r\n [ngStyle]=\"{'border-color': selectedIndex !== i ? '#E6E8EB' : null}\"\r\n >\r\n {{label}}</button>\r\n }\r\n </div>\r\n</div>", styles: [".toggle-button-container{width:100%;display:flex;justify-content:center}button{margin:0!important;border-radius:0!important}button:first-child{border-top-left-radius:4px!important;border-bottom-left-radius:4px!important}button:last-child{border-top-right-radius:4px!important;border-bottom-right-radius:4px!important}\n"], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "directive", type: i1.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading", "severity", "raised", "rounded", "text", "outlined", "size", "plain"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
|
|
19
19
|
}
|
|
20
20
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: ToggleButtonComponent, decorators: [{
|
|
21
21
|
type: Component,
|
|
22
|
-
args: [{ standalone: true, selector: 'aril-toggle-button', imports: [ButtonModule, NgClass, NgStyle], template: "<div class=\"toggle-button-container\">\n <div>\n @for(label of buttonLabels();track label; let i = $index){\n <button\n pButton\n (click)=\"toggleButton(i)\"\n [ngClass]=\"{'p-button-success': selectedIndex === i, 'p-button-secondary p-button-outlined': selectedIndex !== i}\"\n [ngStyle]=\"{'border-color': selectedIndex !== i ? '#E6E8EB' : null}\"\n >\n {{label}}</button>\n }\n </div>\n</div>", styles: [".toggle-button-container{width:100%;display:flex;justify-content:center}button{margin:0!important;border-radius:0!important}button:first-child{border-top-left-radius:4px!important;border-bottom-left-radius:4px!important}button:last-child{border-top-right-radius:4px!important;border-bottom-right-radius:4px!important}\n"] }]
|
|
22
|
+
args: [{ standalone: true, selector: 'aril-toggle-button', imports: [ButtonModule, NgClass, NgStyle], template: "<div class=\"toggle-button-container\">\r\n <div>\r\n @for(label of buttonLabels();track label; let i = $index){\r\n <button\r\n pButton\r\n (click)=\"toggleButton(i)\"\r\n [ngClass]=\"{'p-button-success': selectedIndex === i, 'p-button-secondary p-button-outlined': selectedIndex !== i}\"\r\n [ngStyle]=\"{'border-color': selectedIndex !== i ? '#E6E8EB' : null}\"\r\n >\r\n {{label}}</button>\r\n }\r\n </div>\r\n</div>", styles: [".toggle-button-container{width:100%;display:flex;justify-content:center}button{margin:0!important;border-radius:0!important}button:first-child{border-top-left-radius:4px!important;border-bottom-left-radius:4px!important}button:last-child{border-top-right-radius:4px!important;border-bottom-right-radius:4px!important}\n"] }]
|
|
23
23
|
}], propDecorators: { selectionChange: [{
|
|
24
24
|
type: Output
|
|
25
25
|
}] } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aril-ui-toggle-button.mjs","sources":["../../projects/aril/ui/toggle-button/src/toggle-button.component.ts","../../projects/aril/ui/toggle-button/src/toggle-button.component.html","../../projects/aril/ui/toggle-button/aril-ui-toggle-button.ts"],"sourcesContent":["import { NgClass, NgStyle } from '@angular/common';\nimport { Component, Input, Output, EventEmitter, input } from '@angular/core';\nimport { ButtonModule } from 'primeng/button';\n\n@Component({ \n standalone: true,\n selector: 'aril-toggle-button',\n templateUrl: './toggle-button.component.html',\n styleUrls: ['./toggle-button.component.scss'],\n imports: [ButtonModule, NgClass,NgStyle]\n})\nexport class ToggleButtonComponent {\n buttonLabels = input.required<string[]>();\n @Output() selectionChange: EventEmitter<number> = new EventEmitter<number>();\n\n selectedIndex = 0;\n\n toggleButton(index: number) {\n this.selectedIndex = index;\n this.selectionChange.emit(this.selectedIndex);\n }\n}","<div class=\"toggle-button-container\">\n <div>\n @for(label of buttonLabels();track label; let i = $index){\n <button\n pButton\n (click)=\"toggleButton(i)\"\n [ngClass]=\"{'p-button-success': selectedIndex === i, 'p-button-secondary p-button-outlined': selectedIndex !== i}\"\n [ngStyle]=\"{'border-color': selectedIndex !== i ? '#E6E8EB' : null}\"\n >\n {{label}}</button>\n }\n </div>\n</div>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAWa,qBAAqB,CAAA;AAPlC,IAAA,WAAA,GAAA;AAQG,QAAA,IAAA,CAAA,YAAY,GAAG,KAAK,CAAC,QAAQ,EAAY;
|
|
1
|
+
{"version":3,"file":"aril-ui-toggle-button.mjs","sources":["../../projects/aril/ui/toggle-button/src/toggle-button.component.ts","../../projects/aril/ui/toggle-button/src/toggle-button.component.html","../../projects/aril/ui/toggle-button/aril-ui-toggle-button.ts"],"sourcesContent":["import { NgClass, NgStyle } from '@angular/common';\r\nimport { Component, Input, Output, EventEmitter, input } from '@angular/core';\r\nimport { ButtonModule } from 'primeng/button';\r\n\r\n@Component({ \r\n standalone: true,\r\n selector: 'aril-toggle-button',\r\n templateUrl: './toggle-button.component.html',\r\n styleUrls: ['./toggle-button.component.scss'],\r\n imports: [ButtonModule, NgClass,NgStyle]\r\n})\r\nexport class ToggleButtonComponent {\r\n buttonLabels = input.required<string[]>();\r\n @Output() selectionChange: EventEmitter<number> = new EventEmitter<number>();\r\n\r\n selectedIndex = 0;\r\n\r\n toggleButton(index: number) {\r\n this.selectedIndex = index;\r\n this.selectionChange.emit(this.selectedIndex);\r\n }\r\n}","<div class=\"toggle-button-container\">\r\n <div>\r\n @for(label of buttonLabels();track label; let i = $index){\r\n <button\r\n pButton\r\n (click)=\"toggleButton(i)\"\r\n [ngClass]=\"{'p-button-success': selectedIndex === i, 'p-button-secondary p-button-outlined': selectedIndex !== i}\"\r\n [ngStyle]=\"{'border-color': selectedIndex !== i ? '#E6E8EB' : null}\"\r\n >\r\n {{label}}</button>\r\n }\r\n </div>\r\n</div>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAWa,qBAAqB,CAAA;AAPlC,IAAA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CACI,IAAI,EAAA,QAAA,EACN,oBAAoB,EAGrB,OAAA,EAAA,CAAC,YAAY,EAAE,OAAO,EAAC,OAAO,CAAC,EAAA,QAAA,EAAA,udAAA,EAAA,MAAA,EAAA,CAAA,iUAAA,CAAA,EAAA,CAAA;8BAI9B,eAAe,EAAA,CAAA;sBAAxB,MAAM;;;AEbT;;AAEG;;;;"}
|
|
@@ -15,11 +15,11 @@ class TooltipComponent {
|
|
|
15
15
|
this.appendTo = input('body');
|
|
16
16
|
}
|
|
17
17
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
18
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.1.2", type: TooltipComponent, isStandalone: true, selector: "aril-tooltip", inputs: { text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, template: { classPropertyName: "template", publicName: "template", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, showDelay: { classPropertyName: "showDelay", publicName: "showDelay", isSignal: true, isRequired: false, transformFunction: null }, hideDelay: { classPropertyName: "hideDelay", publicName: "hideDelay", isSignal: true, isRequired: false, transformFunction: null }, tooltipStyle: { classPropertyName: "tooltipStyle", publicName: "tooltipStyle", isSignal: true, isRequired: false, transformFunction: null }, tooltipStyleClass: { classPropertyName: "tooltipStyleClass", publicName: "tooltipStyleClass", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<span\n\t[pTooltip]=\"template() ?? text()\"\n\t[tooltipPosition]=\"position()\"\n\t[showDelay]=\"showDelay()\"\n\t[hideDelay]=\"hideDelay()\"\n\t[style]=\"tooltipStyle()\"\n\t[tooltipStyleClass]=\"tooltipStyleClass()\"\n\t[appendTo]=\"appendTo()\">\n\t<ng-content></ng-content>\n</span>\n", dependencies: [{ kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i1.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }] }); }
|
|
18
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.1.2", type: TooltipComponent, isStandalone: true, selector: "aril-tooltip", inputs: { text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, template: { classPropertyName: "template", publicName: "template", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, showDelay: { classPropertyName: "showDelay", publicName: "showDelay", isSignal: true, isRequired: false, transformFunction: null }, hideDelay: { classPropertyName: "hideDelay", publicName: "hideDelay", isSignal: true, isRequired: false, transformFunction: null }, tooltipStyle: { classPropertyName: "tooltipStyle", publicName: "tooltipStyle", isSignal: true, isRequired: false, transformFunction: null }, tooltipStyleClass: { classPropertyName: "tooltipStyleClass", publicName: "tooltipStyleClass", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<span\r\n\t[pTooltip]=\"template() ?? text()\"\r\n\t[tooltipPosition]=\"position()\"\r\n\t[showDelay]=\"showDelay()\"\r\n\t[hideDelay]=\"hideDelay()\"\r\n\t[style]=\"tooltipStyle()\"\r\n\t[tooltipStyleClass]=\"tooltipStyleClass()\"\r\n\t[appendTo]=\"appendTo()\">\r\n\t<ng-content></ng-content>\r\n</span>\r\n", dependencies: [{ kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i1.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }] }); }
|
|
19
19
|
}
|
|
20
20
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TooltipComponent, decorators: [{
|
|
21
21
|
type: Component,
|
|
22
|
-
args: [{ standalone: true, selector: 'aril-tooltip', imports: [TooltipModule], template: "<span\n\t[pTooltip]=\"template() ?? text()\"\n\t[tooltipPosition]=\"position()\"\n\t[showDelay]=\"showDelay()\"\n\t[hideDelay]=\"hideDelay()\"\n\t[style]=\"tooltipStyle()\"\n\t[tooltipStyleClass]=\"tooltipStyleClass()\"\n\t[appendTo]=\"appendTo()\">\n\t<ng-content></ng-content>\n</span>\n" }]
|
|
22
|
+
args: [{ standalone: true, selector: 'aril-tooltip', imports: [TooltipModule], template: "<span\r\n\t[pTooltip]=\"template() ?? text()\"\r\n\t[tooltipPosition]=\"position()\"\r\n\t[showDelay]=\"showDelay()\"\r\n\t[hideDelay]=\"hideDelay()\"\r\n\t[style]=\"tooltipStyle()\"\r\n\t[tooltipStyleClass]=\"tooltipStyleClass()\"\r\n\t[appendTo]=\"appendTo()\">\r\n\t<ng-content></ng-content>\r\n</span>\r\n" }]
|
|
23
23
|
}] });
|
|
24
24
|
|
|
25
25
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aril-ui-tooltip.mjs","sources":["../../projects/aril/ui/tooltip/src/tooltip-component.ts","../../projects/aril/ui/tooltip/src/tooltip-component.html","../../projects/aril/ui/tooltip/aril-ui-tooltip.ts"],"sourcesContent":["import { Component, TemplateRef, input } from '@angular/core';\n\nimport { TooltipModule } from 'primeng/tooltip';\n\n@Component({\n\tstandalone: true,\n\tselector: 'aril-tooltip',\n\ttemplateUrl: './tooltip-component.html',\n\timports: [TooltipModule]\n})\nexport class TooltipComponent {\n\ttext = input<string>('');\n\ttemplate = input<TemplateRef<any> | null>();\n\tposition = input<string>('right'); // (right, top, bottom, left)\n\tshowDelay = input<number>(0); // (ms)\n\thideDelay = input<number>(0); // (ms)\n\ttooltipStyle = input<any>({});\n\ttooltipStyleClass = input<string>('');\n\tappendTo = input<any>('body');\n}\n","<span\n\t[pTooltip]=\"template() ?? text()\"\n\t[tooltipPosition]=\"position()\"\n\t[showDelay]=\"showDelay()\"\n\t[hideDelay]=\"hideDelay()\"\n\t[style]=\"tooltipStyle()\"\n\t[tooltipStyleClass]=\"tooltipStyleClass()\"\n\t[appendTo]=\"appendTo()\">\n\t<ng-content></ng-content>\n</span>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAUa,gBAAgB,CAAA;AAN7B,IAAA,WAAA,GAAA;AAOC,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAS,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"aril-ui-tooltip.mjs","sources":["../../projects/aril/ui/tooltip/src/tooltip-component.ts","../../projects/aril/ui/tooltip/src/tooltip-component.html","../../projects/aril/ui/tooltip/aril-ui-tooltip.ts"],"sourcesContent":["import { Component, TemplateRef, input } from '@angular/core';\r\n\r\nimport { TooltipModule } from 'primeng/tooltip';\r\n\r\n@Component({\r\n\tstandalone: true,\r\n\tselector: 'aril-tooltip',\r\n\ttemplateUrl: './tooltip-component.html',\r\n\timports: [TooltipModule]\r\n})\r\nexport class TooltipComponent {\r\n\ttext = input<string>('');\r\n\ttemplate = input<TemplateRef<any> | null>();\r\n\tposition = input<string>('right'); // (right, top, bottom, left)\r\n\tshowDelay = input<number>(0); // (ms)\r\n\thideDelay = input<number>(0); // (ms)\r\n\ttooltipStyle = input<any>({});\r\n\ttooltipStyleClass = input<string>('');\r\n\tappendTo = input<any>('body');\r\n}\r\n","<span\r\n\t[pTooltip]=\"template() ?? text()\"\r\n\t[tooltipPosition]=\"position()\"\r\n\t[showDelay]=\"showDelay()\"\r\n\t[hideDelay]=\"hideDelay()\"\r\n\t[style]=\"tooltipStyle()\"\r\n\t[tooltipStyleClass]=\"tooltipStyleClass()\"\r\n\t[appendTo]=\"appendTo()\">\r\n\t<ng-content></ng-content>\r\n</span>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAUa,gBAAgB,CAAA;AAN7B,IAAA,WAAA,GAAA;AAOC,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAS,EAAE,CAAC,CAAC;QACzB,IAAQ,CAAA,QAAA,GAAG,KAAK,EAA2B,CAAC;AAC5C,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAS,OAAO,CAAC,CAAC;AAClC,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK,CAAS,CAAC,CAAC,CAAC;AAC7B,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK,CAAS,CAAC,CAAC,CAAC;AAC7B,QAAA,IAAA,CAAA,YAAY,GAAG,KAAK,CAAM,EAAE,CAAC,CAAC;AAC9B,QAAA,IAAA,CAAA,iBAAiB,GAAG,KAAK,CAAS,EAAE,CAAC,CAAC;AACtC,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAM,MAAM,CAAC,CAAC;AAC9B,KAAA;8GATY,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAAhB,gBAAgB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,EAAA,IAAA,EAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,QAAA,EAAA,EAAA,iBAAA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MAAA,EAAA,CAAA,iBAAA,EAAA,cAAA,EAAA,UAAA,EAAA,eAAA,EAAA,mBAAA,EAAA,eAAA,EAAA,QAAA,EAAA,WAAA,EAAA,WAAA,EAAA,MAAA,EAAA,aAAA,EAAA,cAAA,EAAA,UAAA,EAAA,YAAA,EAAA,cAAA,EAAA,UAAA,EAAA,iBAAA,EAAA,gBAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAEX,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAN5B,SAAS;AACG,YAAA,IAAA,EAAA,CAAA,EAAA,UAAA,EAAA,IAAI,EACN,QAAA,EAAA,cAAc,EAEf,OAAA,EAAA,CAAC,aAAa,CAAC,EAAA,QAAA,EAAA,uTAAA,EAAA,CAAA;;;AERzB;;AAEG;;;;"}
|
|
@@ -70,7 +70,7 @@ class ArilLangModalComponent {
|
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
72
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: ArilLangModalComponent, deps: [{ token: i1.DynamicDialogConfig }, { token: i1.DynamicDialogRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
73
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: ArilLangModalComponent, isStandalone: true, selector: "aril-lang-modal", ngImport: i0, template: "<div>\n\t<aril-field\n\t\t[label]=\"translocoService.translate('translationModal.addLanguage')\"\n\t\t[cols]=\"{ default: 12 }\"\n\t\tclass=\"mb-4 block\">\n\t\t<enum-picker\n\t\t\t[(ngModel)]=\"selectedLanguages\"\n\t\t\t[items]=\"availableLanguages\"\n\t\t\t[isMultiple]=\"true\"\n\t\t\titemKey=\"code\"\n\t\t\titemText=\"name\" />\n\t</aril-field>\n\n\t@for (lang of selectedLanguages; track lang) {\n\t\t<div class=\"border-1 border-gray-300 border-round py-2 px-4 mb-2 flex justify-content-between items-center\">\n\t\t\t<aril-field labelPos=\"left\" [label]=\"getLabel(lang)\" [cols]=\"{ default: 12 }\" [labelWidth]=\"15\" [valueWidth]=\"85\">\n\t\t\t\t<aril-text class=\"value-input\" [(ngModel)]=\"translations[lang]\" />\n\t\t\t</aril-field>\n\t\t</div>\n\t}\n\n\t<div class=\"mt-4\">\n\t\t@if (mandatoryLanguages.length && isSaveDisabled()) {\n\t\t\t<div class=\"mb-2\">\n\t\t\t\t<p-tag [value]=\"getInfoText()\" severity=\"info\" />\n\t\t\t</div>\n\t\t}\n\t</div>\n\n\t<div class=\"mt-4 flex justify-content-end\">\n\t\t<aril-button\n\t\t\tcolor=\"danger\"\n\t\t\t[outlined]=\"true\"\n\t\t\t[label]=\"translocoService.translate('cancel')\"\n\t\t\t[raised]=\"false\"\n\t\t\ticon=\"TIMES\"\n\t\t\t(clickEvent)=\"close()\" />\n\t\t<aril-button\n\t\t\t[label]=\"translocoService.translate('save')\"\n\t\t\tcolor=\"success\"\n\t\t\ticon=\"CHECK\"\n\t\t\tclass=\"ml-2\"\n\t\t\t(clickEvent)=\"save()\"\n\t\t\t[disabled]=\"isSaveDisabled()\" />\n\t</div>\n</div>\n", styles: [":host .value-input ::ng-deep input{width:100%}\n"], dependencies: [{ kind: "component", type: TextComponent, selector: "aril-text[ngModel], aril-text[formControl], aril-text[formControlName]", inputs: ["placeholder", "tabindex", "icon", "iconPos", "size"] }, { 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"] }, { kind: "ngmodule", type: CommonModule }, { kind: "component", type: ButtonComponent, selector: "aril-button:not([click])", inputs: ["label", "loading", "disabled", "raised", "rounded", "text", "outlined", "badge", "size", "icon", "iconPos", "color"], outputs: ["clickEvent"] }, { kind: "ngmodule", type: TranslocoModule }, { kind: "component", type: FieldComponent, selector: "aril-field", inputs: ["label", "color", "labelWidth", "valueWidth", "labelPos", "markAsRequired", "cols", "infoData", "infoDataOverlayPanel"] }, { kind: "component", type: EnumPickerComponent, selector: "enum-picker[ngModel], enum-picker[formControl], enum-picker[formControlName]", inputs: ["itemKey", "itemText", "groupName", "parentSelectionKey", "tabindex", "items", "isMultiple", "grouped", "showClearButton", "placeholder", "searchExpr", "acceptCustomValue", "selectedItemsLabel", "appendTo", "style", "styleClass", "tooltip", "tooltipPosition"], outputs: ["onSelectionChanged"] }, { kind: "ngmodule", type: TagModule }, { kind: "component", type: i3.Tag, selector: "p-tag", inputs: ["style", "styleClass", "severity", "value", "icon", "rounded"] }] }); }
|
|
73
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: ArilLangModalComponent, isStandalone: true, selector: "aril-lang-modal", ngImport: i0, template: "<div>\r\n\t<aril-field\r\n\t\t[label]=\"translocoService.translate('translationModal.addLanguage')\"\r\n\t\t[cols]=\"{ default: 12 }\"\r\n\t\tclass=\"mb-4 block\">\r\n\t\t<enum-picker\r\n\t\t\t[(ngModel)]=\"selectedLanguages\"\r\n\t\t\t[items]=\"availableLanguages\"\r\n\t\t\t[isMultiple]=\"true\"\r\n\t\t\titemKey=\"code\"\r\n\t\t\titemText=\"name\" />\r\n\t</aril-field>\r\n\r\n\t@for (lang of selectedLanguages; track lang) {\r\n\t\t<div class=\"border-1 border-gray-300 border-round py-2 px-4 mb-2 flex justify-content-between items-center\">\r\n\t\t\t<aril-field labelPos=\"left\" [label]=\"getLabel(lang)\" [cols]=\"{ default: 12 }\" [labelWidth]=\"15\" [valueWidth]=\"85\">\r\n\t\t\t\t<aril-text class=\"value-input\" [(ngModel)]=\"translations[lang]\" />\r\n\t\t\t</aril-field>\r\n\t\t</div>\r\n\t}\r\n\r\n\t<div class=\"mt-4\">\r\n\t\t@if (mandatoryLanguages.length && isSaveDisabled()) {\r\n\t\t\t<div class=\"mb-2\">\r\n\t\t\t\t<p-tag [value]=\"getInfoText()\" severity=\"info\" />\r\n\t\t\t</div>\r\n\t\t}\r\n\t</div>\r\n\r\n\t<div class=\"mt-4 flex justify-content-end\">\r\n\t\t<aril-button\r\n\t\t\tcolor=\"danger\"\r\n\t\t\t[outlined]=\"true\"\r\n\t\t\t[label]=\"translocoService.translate('cancel')\"\r\n\t\t\t[raised]=\"false\"\r\n\t\t\ticon=\"TIMES\"\r\n\t\t\t(clickEvent)=\"close()\" />\r\n\t\t<aril-button\r\n\t\t\t[label]=\"translocoService.translate('save')\"\r\n\t\t\tcolor=\"success\"\r\n\t\t\ticon=\"CHECK\"\r\n\t\t\tclass=\"ml-2\"\r\n\t\t\t(clickEvent)=\"save()\"\r\n\t\t\t[disabled]=\"isSaveDisabled()\" />\r\n\t</div>\r\n</div>\r\n", styles: [":host .value-input ::ng-deep input{width:100%}\n"], dependencies: [{ kind: "component", type: TextComponent, selector: "aril-text[ngModel], aril-text[formControl], aril-text[formControlName]", inputs: ["placeholder", "tabindex", "icon", "iconPos", "size"] }, { 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"] }, { kind: "ngmodule", type: CommonModule }, { kind: "component", type: ButtonComponent, selector: "aril-button:not([click])", inputs: ["label", "loading", "disabled", "raised", "rounded", "text", "outlined", "badge", "size", "icon", "iconPos", "color"], outputs: ["clickEvent"] }, { kind: "ngmodule", type: TranslocoModule }, { kind: "component", type: FieldComponent, selector: "aril-field", inputs: ["label", "color", "labelWidth", "valueWidth", "labelPos", "markAsRequired", "cols", "infoData", "infoDataOverlayPanel"] }, { kind: "component", type: EnumPickerComponent, selector: "enum-picker[ngModel], enum-picker[formControl], enum-picker[formControlName]", inputs: ["itemKey", "itemText", "groupName", "parentSelectionKey", "tabindex", "items", "isMultiple", "grouped", "showClearButton", "placeholder", "searchExpr", "acceptCustomValue", "selectedItemsLabel", "appendTo", "style", "styleClass", "tooltip", "tooltipPosition"], outputs: ["onSelectionChanged"] }, { kind: "ngmodule", type: TagModule }, { kind: "component", type: i3.Tag, selector: "p-tag", inputs: ["style", "styleClass", "severity", "value", "icon", "rounded"] }] }); }
|
|
74
74
|
}
|
|
75
75
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: ArilLangModalComponent, decorators: [{
|
|
76
76
|
type: Component,
|
|
@@ -83,7 +83,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
|
|
|
83
83
|
FieldComponent,
|
|
84
84
|
EnumPickerComponent,
|
|
85
85
|
TagModule
|
|
86
|
-
], standalone: true, template: "<div>\n\t<aril-field\n\t\t[label]=\"translocoService.translate('translationModal.addLanguage')\"\n\t\t[cols]=\"{ default: 12 }\"\n\t\tclass=\"mb-4 block\">\n\t\t<enum-picker\n\t\t\t[(ngModel)]=\"selectedLanguages\"\n\t\t\t[items]=\"availableLanguages\"\n\t\t\t[isMultiple]=\"true\"\n\t\t\titemKey=\"code\"\n\t\t\titemText=\"name\" />\n\t</aril-field>\n\n\t@for (lang of selectedLanguages; track lang) {\n\t\t<div class=\"border-1 border-gray-300 border-round py-2 px-4 mb-2 flex justify-content-between items-center\">\n\t\t\t<aril-field labelPos=\"left\" [label]=\"getLabel(lang)\" [cols]=\"{ default: 12 }\" [labelWidth]=\"15\" [valueWidth]=\"85\">\n\t\t\t\t<aril-text class=\"value-input\" [(ngModel)]=\"translations[lang]\" />\n\t\t\t</aril-field>\n\t\t</div>\n\t}\n\n\t<div class=\"mt-4\">\n\t\t@if (mandatoryLanguages.length && isSaveDisabled()) {\n\t\t\t<div class=\"mb-2\">\n\t\t\t\t<p-tag [value]=\"getInfoText()\" severity=\"info\" />\n\t\t\t</div>\n\t\t}\n\t</div>\n\n\t<div class=\"mt-4 flex justify-content-end\">\n\t\t<aril-button\n\t\t\tcolor=\"danger\"\n\t\t\t[outlined]=\"true\"\n\t\t\t[label]=\"translocoService.translate('cancel')\"\n\t\t\t[raised]=\"false\"\n\t\t\ticon=\"TIMES\"\n\t\t\t(clickEvent)=\"close()\" />\n\t\t<aril-button\n\t\t\t[label]=\"translocoService.translate('save')\"\n\t\t\tcolor=\"success\"\n\t\t\ticon=\"CHECK\"\n\t\t\tclass=\"ml-2\"\n\t\t\t(clickEvent)=\"save()\"\n\t\t\t[disabled]=\"isSaveDisabled()\" />\n\t</div>\n</div>\n", styles: [":host .value-input ::ng-deep input{width:100%}\n"] }]
|
|
86
|
+
], standalone: true, template: "<div>\r\n\t<aril-field\r\n\t\t[label]=\"translocoService.translate('translationModal.addLanguage')\"\r\n\t\t[cols]=\"{ default: 12 }\"\r\n\t\tclass=\"mb-4 block\">\r\n\t\t<enum-picker\r\n\t\t\t[(ngModel)]=\"selectedLanguages\"\r\n\t\t\t[items]=\"availableLanguages\"\r\n\t\t\t[isMultiple]=\"true\"\r\n\t\t\titemKey=\"code\"\r\n\t\t\titemText=\"name\" />\r\n\t</aril-field>\r\n\r\n\t@for (lang of selectedLanguages; track lang) {\r\n\t\t<div class=\"border-1 border-gray-300 border-round py-2 px-4 mb-2 flex justify-content-between items-center\">\r\n\t\t\t<aril-field labelPos=\"left\" [label]=\"getLabel(lang)\" [cols]=\"{ default: 12 }\" [labelWidth]=\"15\" [valueWidth]=\"85\">\r\n\t\t\t\t<aril-text class=\"value-input\" [(ngModel)]=\"translations[lang]\" />\r\n\t\t\t</aril-field>\r\n\t\t</div>\r\n\t}\r\n\r\n\t<div class=\"mt-4\">\r\n\t\t@if (mandatoryLanguages.length && isSaveDisabled()) {\r\n\t\t\t<div class=\"mb-2\">\r\n\t\t\t\t<p-tag [value]=\"getInfoText()\" severity=\"info\" />\r\n\t\t\t</div>\r\n\t\t}\r\n\t</div>\r\n\r\n\t<div class=\"mt-4 flex justify-content-end\">\r\n\t\t<aril-button\r\n\t\t\tcolor=\"danger\"\r\n\t\t\t[outlined]=\"true\"\r\n\t\t\t[label]=\"translocoService.translate('cancel')\"\r\n\t\t\t[raised]=\"false\"\r\n\t\t\ticon=\"TIMES\"\r\n\t\t\t(clickEvent)=\"close()\" />\r\n\t\t<aril-button\r\n\t\t\t[label]=\"translocoService.translate('save')\"\r\n\t\t\tcolor=\"success\"\r\n\t\t\ticon=\"CHECK\"\r\n\t\t\tclass=\"ml-2\"\r\n\t\t\t(clickEvent)=\"save()\"\r\n\t\t\t[disabled]=\"isSaveDisabled()\" />\r\n\t</div>\r\n</div>\r\n", styles: [":host .value-input ::ng-deep input{width:100%}\n"] }]
|
|
87
87
|
}], ctorParameters: () => [{ type: i1.DynamicDialogConfig }, { type: i1.DynamicDialogRef }] });
|
|
88
88
|
|
|
89
89
|
class ArilTranslateInputComponent extends BaseInputComponent {
|
|
@@ -168,34 +168,34 @@ class ArilTranslateInputComponent extends BaseInputComponent {
|
|
|
168
168
|
return true;
|
|
169
169
|
}
|
|
170
170
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: ArilTranslateInputComponent, deps: [{ token: i1.DialogService }, { token: i2.TranslocoService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
171
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.1.2", type: ArilTranslateInputComponent, isStandalone: true, selector: "aril-translate-input[ngModel], aril-translate-input[formControl], aril-translate-input[formControlName]", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, mandatoryLanguages: { classPropertyName: "mandatoryLanguages", publicName: "mandatoryLanguages", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, hostDirectives: [{ directive: i3$1.ValueAccessorDirective }], ngImport: i0, template: `
|
|
172
|
-
<div class="p-inputgroup">
|
|
173
|
-
<input
|
|
174
|
-
pInputText
|
|
175
|
-
type="text"
|
|
176
|
-
[placeholder]="placeholder()"
|
|
177
|
-
[ngModel]="getDisplayValue()"
|
|
178
|
-
(ngModelChange)="onInputChange($event)"
|
|
179
|
-
[pTooltip]="shouldShowError() ? (ngControl.control.value | inputErrorMessage: ngControl) : ''"
|
|
180
|
-
[tooltipOptions]="tooltipOptions" />
|
|
181
|
-
<p-button icon="pi pi-language" (onClick)="openModal()" styleClass="p-button-text p-button-rounded"> </p-button>
|
|
182
|
-
</div>
|
|
171
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.1.2", type: ArilTranslateInputComponent, isStandalone: true, selector: "aril-translate-input[ngModel], aril-translate-input[formControl], aril-translate-input[formControlName]", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, mandatoryLanguages: { classPropertyName: "mandatoryLanguages", publicName: "mandatoryLanguages", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, hostDirectives: [{ directive: i3$1.ValueAccessorDirective }], ngImport: i0, template: `
|
|
172
|
+
<div class="p-inputgroup">
|
|
173
|
+
<input
|
|
174
|
+
pInputText
|
|
175
|
+
type="text"
|
|
176
|
+
[placeholder]="placeholder()"
|
|
177
|
+
[ngModel]="getDisplayValue()"
|
|
178
|
+
(ngModelChange)="onInputChange($event)"
|
|
179
|
+
[pTooltip]="shouldShowError() ? (ngControl.control.value | inputErrorMessage: ngControl) : ''"
|
|
180
|
+
[tooltipOptions]="tooltipOptions" />
|
|
181
|
+
<p-button icon="pi pi-language" (onClick)="openModal()" styleClass="p-button-text p-button-rounded"> </p-button>
|
|
182
|
+
</div>
|
|
183
183
|
`, isInline: true, styles: [":host ::ng-deep .p-inputgroup{display:flex;align-items:center;width:100%}:host ::ng-deep .p-inputgroup .p-inputtext{flex:1 1 auto;border-top-right-radius:0;border-bottom-right-radius:0}:host ::ng-deep .p-inputgroup .p-button{border-top-left-radius:0;border-bottom-left-radius:0}:host ::ng-deep .p-inputgroup-sm .p-inputtext,:host ::ng-deep .p-inputgroup-sm .p-button{line-height:1.3}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { 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"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: InputTextModule }, { kind: "directive", type: i5.InputText, selector: "[pInputText]", inputs: ["variant"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i6.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" }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i7.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "style", "styleClass", "badgeClass", "ariaLabel", "autofocus"], outputs: ["onClick", "onFocus", "onBlur"] }] }); }
|
|
184
184
|
}
|
|
185
185
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: ArilTranslateInputComponent, decorators: [{
|
|
186
186
|
type: Component,
|
|
187
|
-
args: [{ selector: 'aril-translate-input[ngModel], aril-translate-input[formControl], aril-translate-input[formControlName]', standalone: true, imports: [FormsModule, ReactiveFormsModule, InputTextModule, TooltipModule, InputErrorMessagePipe, ButtonModule], hostDirectives: [ValueAccessorDirective], template: `
|
|
188
|
-
<div class="p-inputgroup">
|
|
189
|
-
<input
|
|
190
|
-
pInputText
|
|
191
|
-
type="text"
|
|
192
|
-
[placeholder]="placeholder()"
|
|
193
|
-
[ngModel]="getDisplayValue()"
|
|
194
|
-
(ngModelChange)="onInputChange($event)"
|
|
195
|
-
[pTooltip]="shouldShowError() ? (ngControl.control.value | inputErrorMessage: ngControl) : ''"
|
|
196
|
-
[tooltipOptions]="tooltipOptions" />
|
|
197
|
-
<p-button icon="pi pi-language" (onClick)="openModal()" styleClass="p-button-text p-button-rounded"> </p-button>
|
|
198
|
-
</div>
|
|
187
|
+
args: [{ selector: 'aril-translate-input[ngModel], aril-translate-input[formControl], aril-translate-input[formControlName]', standalone: true, imports: [FormsModule, ReactiveFormsModule, InputTextModule, TooltipModule, InputErrorMessagePipe, ButtonModule], hostDirectives: [ValueAccessorDirective], template: `
|
|
188
|
+
<div class="p-inputgroup">
|
|
189
|
+
<input
|
|
190
|
+
pInputText
|
|
191
|
+
type="text"
|
|
192
|
+
[placeholder]="placeholder()"
|
|
193
|
+
[ngModel]="getDisplayValue()"
|
|
194
|
+
(ngModelChange)="onInputChange($event)"
|
|
195
|
+
[pTooltip]="shouldShowError() ? (ngControl.control.value | inputErrorMessage: ngControl) : ''"
|
|
196
|
+
[tooltipOptions]="tooltipOptions" />
|
|
197
|
+
<p-button icon="pi pi-language" (onClick)="openModal()" styleClass="p-button-text p-button-rounded"> </p-button>
|
|
198
|
+
</div>
|
|
199
199
|
`, styles: [":host ::ng-deep .p-inputgroup{display:flex;align-items:center;width:100%}:host ::ng-deep .p-inputgroup .p-inputtext{flex:1 1 auto;border-top-right-radius:0;border-bottom-right-radius:0}:host ::ng-deep .p-inputgroup .p-button{border-top-left-radius:0;border-bottom-left-radius:0}:host ::ng-deep .p-inputgroup-sm .p-inputtext,:host ::ng-deep .p-inputgroup-sm .p-button{line-height:1.3}\n"] }]
|
|
200
200
|
}], ctorParameters: () => [{ type: i1.DialogService }, { type: i2.TranslocoService }] });
|
|
201
201
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aril-ui-translate-input.mjs","sources":["../../projects/aril/ui/translate-input/src/aril-lang-modal/constants.ts","../../projects/aril/ui/translate-input/src/aril-lang-modal/aril-lang-modal.component.ts","../../projects/aril/ui/translate-input/src/aril-lang-modal/aril-lang-modal.component.html","../../projects/aril/ui/translate-input/src/aril-translate-input.component.ts","../../projects/aril/ui/translate-input/aril-ui-translate-input.ts"],"sourcesContent":["import { LanguageDto } from '../interface';\n\nexport const ALL_LANGS: LanguageDto[] = [\n\t{ code: 'en', name: '🇬🇧 English' },\n\t{ code: 'tr', name: '🇹🇷 Türkçe' },\n\t{ code: 'de', name: '🇩🇪 Deutsch' },\n\t{ code: 'fr', name: '🇫🇷 Français' },\n\t{ code: 'es', name: '🇪🇸 Español' },\n\t{ code: 'ar', name: '🇸🇦 العربية (السعودية)' },\n\t{ code: 'he', name: '🇮🇱 עברית' },\n\t{ code: 'fa', name: '🇮🇷 فارسی' },\n\t{ code: 'ro', name: '🇷🇴 Română' },\n\t{ code: 'ru', name: '🇷🇺 Русский' },\n\t{ code: 'ja', name: '🇯🇵 日本語' },\n\t{ code: 'zh', name: '🇨🇳 简体中文' }\n];\n","/* eslint-disable @angular-eslint/component-selector */\nimport { CommonModule } from '@angular/common';\nimport { Component, inject } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\nimport { DynamicDialogConfig, DynamicDialogRef } from 'primeng/dynamicdialog';\nimport { TagModule } from 'primeng/tag';\n\nimport { TranslocoModule, TranslocoService } from '@ngneat/transloco';\n\nimport { EnumPickerComponent } from 'aril/ui-business/enumPicker';\nimport { ButtonComponent } from 'aril/ui/button';\nimport { FieldComponent } from 'aril/ui/field';\nimport { TextComponent } from 'aril/ui/text';\n\nimport { LangModalData, TranslationObject } from '../interface';\nimport { ALL_LANGS } from './constants';\n\n@Component({\n\tselector: 'aril-lang-modal',\n\timports: [\n\t\tTextComponent,\n\t\tFormsModule,\n\t\tCommonModule,\n\t\tButtonComponent,\n\t\tTranslocoModule,\n\t\tFieldComponent,\n\t\tEnumPickerComponent,\n\t\tTagModule\n\t],\n\tstandalone: true,\n\ttemplateUrl: 'aril-lang-modal.component.html',\n\tstyleUrls: ['aril-lang-modal.component.scss']\n})\nexport class ArilLangModalComponent {\n\ttranslocoService = inject(TranslocoService);\n\tselectedLanguages: string[] = ['tr', 'en'];\n\tavailableLanguages = ALL_LANGS;\n\ttranslations: TranslationObject = {};\n\tmandatoryLanguages: string[] = [];\n\n\tconstructor(\n\t\tpublic config: DynamicDialogConfig<LangModalData>,\n\t\tpublic ref: DynamicDialogRef\n\t) {\n\t\tthis.translations = { ...this.config.data?.translations };\n\t\tthis.mandatoryLanguages = this.config.data?.mandatoryLanguages || [];\n\t}\n\n\tsave() {\n\t\tconst allowed = new Set(this.selectedLanguages);\n\t\t// only output the languages that are selected\n\t\tconst outputTranslations = Object.fromEntries(Object.entries(this.translations).filter(([k]) => allowed.has(k)));\n\t\tthis.ref.close(outputTranslations);\n\t}\n\n\tclose() {\n\t\tthis.ref.close();\n\t}\n\n\tgetLabel(code: string) {\n\t\treturn this.availableLanguages.find((lang) => lang.code === code)?.name;\n\t}\n\n\tisSaveDisabled() {\n\t\treturn this.mandatoryLanguages?.some((lang) => !this.selectedLanguages.includes(lang) || !this.translations[lang]);\n\t}\n\n\tgetInfoText() {\n\t\treturn this.translocoService.translate('translationModal.mandatoryLanguages', {\n\t\t\tlanguages: this.mandatoryLanguages?.map((lang) => this.getLabel(lang)).join(', ')\n\t\t});\n\t}\n}\n","<div>\n\t<aril-field\n\t\t[label]=\"translocoService.translate('translationModal.addLanguage')\"\n\t\t[cols]=\"{ default: 12 }\"\n\t\tclass=\"mb-4 block\">\n\t\t<enum-picker\n\t\t\t[(ngModel)]=\"selectedLanguages\"\n\t\t\t[items]=\"availableLanguages\"\n\t\t\t[isMultiple]=\"true\"\n\t\t\titemKey=\"code\"\n\t\t\titemText=\"name\" />\n\t</aril-field>\n\n\t@for (lang of selectedLanguages; track lang) {\n\t\t<div class=\"border-1 border-gray-300 border-round py-2 px-4 mb-2 flex justify-content-between items-center\">\n\t\t\t<aril-field labelPos=\"left\" [label]=\"getLabel(lang)\" [cols]=\"{ default: 12 }\" [labelWidth]=\"15\" [valueWidth]=\"85\">\n\t\t\t\t<aril-text class=\"value-input\" [(ngModel)]=\"translations[lang]\" />\n\t\t\t</aril-field>\n\t\t</div>\n\t}\n\n\t<div class=\"mt-4\">\n\t\t@if (mandatoryLanguages.length && isSaveDisabled()) {\n\t\t\t<div class=\"mb-2\">\n\t\t\t\t<p-tag [value]=\"getInfoText()\" severity=\"info\" />\n\t\t\t</div>\n\t\t}\n\t</div>\n\n\t<div class=\"mt-4 flex justify-content-end\">\n\t\t<aril-button\n\t\t\tcolor=\"danger\"\n\t\t\t[outlined]=\"true\"\n\t\t\t[label]=\"translocoService.translate('cancel')\"\n\t\t\t[raised]=\"false\"\n\t\t\ticon=\"TIMES\"\n\t\t\t(clickEvent)=\"close()\" />\n\t\t<aril-button\n\t\t\t[label]=\"translocoService.translate('save')\"\n\t\t\tcolor=\"success\"\n\t\t\ticon=\"CHECK\"\n\t\t\tclass=\"ml-2\"\n\t\t\t(clickEvent)=\"save()\"\n\t\t\t[disabled]=\"isSaveDisabled()\" />\n\t</div>\n</div>\n","import { Component, input } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\n\nimport { ButtonModule } from 'primeng/button';\nimport { DialogService } from 'primeng/dynamicdialog';\nimport { InputTextModule } from 'primeng/inputtext';\nimport { TooltipModule } from 'primeng/tooltip';\n\nimport { TranslocoService } from '@ngneat/transloco';\n\nimport { BaseInputComponent, InputErrorMessagePipe, ValueAccessorDirective } from 'aril/ui/lib';\n\nimport { ArilLangModalComponent } from './aril-lang-modal/aril-lang-modal.component';\nimport { TranslationObject } from './interface';\n\n@Component({\n\tselector: 'aril-translate-input[ngModel], aril-translate-input[formControl], aril-translate-input[formControlName]',\n\tstandalone: true,\n\timports: [FormsModule, ReactiveFormsModule, InputTextModule, TooltipModule, InputErrorMessagePipe, ButtonModule],\n\thostDirectives: [ValueAccessorDirective],\n\ttemplate: `\n\t\t<div class=\"p-inputgroup\">\n\t\t\t<input\n\t\t\t\tpInputText\n\t\t\t\ttype=\"text\"\n\t\t\t\t[placeholder]=\"placeholder()\"\n\t\t\t\t[ngModel]=\"getDisplayValue()\"\n\t\t\t\t(ngModelChange)=\"onInputChange($event)\"\n\t\t\t\t[pTooltip]=\"shouldShowError() ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\n\t\t\t\t[tooltipOptions]=\"tooltipOptions\" />\n\t\t\t<p-button icon=\"pi pi-language\" (onClick)=\"openModal()\" styleClass=\"p-button-text p-button-rounded\"> </p-button>\n\t\t</div>\n\t`,\n\tstyles: [\n\t\t`\n\t\t\t:host ::ng-deep .p-inputgroup {\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\twidth: 100%;\n\t\t\t}\n\n\t\t\t:host ::ng-deep .p-inputgroup .p-inputtext {\n\t\t\t\tflex: 1 1 auto;\n\t\t\t\tborder-top-right-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\n\t\t\t:host ::ng-deep .p-inputgroup .p-button {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t}\n\n\t\t\t:host ::ng-deep .p-inputgroup-sm .p-inputtext,\n\t\t\t:host ::ng-deep .p-inputgroup-sm .p-button {\n\t\t\t\tline-height: 1.3;\n\t\t\t}\n\t\t`\n\t]\n})\nexport class ArilTranslateInputComponent extends BaseInputComponent {\n\tplaceholder = input<string>('');\n\tmandatoryLanguages = input<string[]>();\n\n\tvalue: TranslationObject = {};\n\tcurrentLang!: string;\n\n\tonChange = (used: any) => {};\n\tonTouch = () => {};\n\n\tconstructor(\n\t\treadonly dialogService: DialogService,\n\t\treadonly translocoService: TranslocoService\n\t) {\n\t\tsuper();\n\t\tthis.currentLang = this.translocoService.getActiveLang();\n\t}\n\n\twriteValue(value: TranslationObject): void {\n\t\tif (!value) {\n\t\t\tthis.value = {};\n\t\t} else if (typeof value === 'object') {\n\t\t\tthis.value = value || {};\n\t\t} else {\n\t\t\tconsole.error('Invalid value type for translations, expected object');\n\t\t\tthis.value = {};\n\t\t}\n\t\tthis.updateFormControlSilently(this.value);\n\t}\n\n\tprivate updateFormControlSilently(value: TranslationObject): void {\n\t\tif (this.ngControl?.control) {\n\t\t\tthis.ngControl.control.setValue(value, { emitEvent: false });\n\t\t}\n\t}\n\n\tprivate updateValueAndFormControl(newValue: TranslationObject): void {\n\t\tthis.value = { ...newValue };\n\t\tthis.updateFormControlSilently(this.value);\n\t\tthis.onChange(this.value);\n\t\tthis.onTouch();\n\t}\n\n\tonInputChange(newValue: string): void {\n\t\tconst updatedValue = {\n\t\t\t...this.value,\n\t\t\t[this.currentLang]: newValue\n\t\t};\n\t\tthis.updateValueAndFormControl(updatedValue);\n\t}\n\n\tgetDisplayValue(): string {\n\t\tlet translationObj = this.value;\n\n\t\tconst controlValue = this.ngControl?.control?.value;\n\t\tif (controlValue && typeof controlValue === 'object') {\n\t\t\ttranslationObj = controlValue;\n\t\t}\n\n\t\treturn translationObj?.[this.currentLang] || '';\n\t}\n\n\topenModal() {\n\t\tconst currentTranslations = this.ngControl?.control?.value || this.value || {};\n\t\tconst ref = this.dialogService.open(ArilLangModalComponent, {\n\t\t\twidth: '40%',\n\t\t\tdata: {\n\t\t\t\ttranslations: { ...currentTranslations },\n\t\t\t\tcurrentLang: this.currentLang,\n\t\t\t\tmandatoryLanguages: this.mandatoryLanguages()\n\t\t\t},\n\t\t\theader: this.translocoService.translate('translationModal.title')\n\t\t});\n\n\t\tref.onClose.subscribe((result) => {\n\t\t\tif (result) {\n\t\t\t\tthis.updateValueAndFormControl(result);\n\t\t\t\tsetTimeout(() => {\n\t\t\t\t\tthis.updateValueAndFormControl({ ...result });\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t}\n\n\tshouldShowError(): boolean {\n\t\tif (!this.ngControl?.invalid) return false;\n\t\tif (this.value && typeof this.value === 'object') {\n\t\t\tconst hasAnyTranslation = Object.values(this.value).some((val) => val && val.trim() !== '');\n\t\t\tif (hasAnyTranslation) return false;\n\t\t}\n\t\treturn true;\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i2","i3"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAEO,MAAM,SAAS,GAAkB;AACvC,IAAA,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,EAAE;AACpC,IAAA,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,aAAa,EAAE;AACnC,IAAA,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,EAAE;AACpC,IAAA,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE;AACrC,IAAA,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,EAAE;AACpC,IAAA,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,yBAAyB,EAAE;AAC/C,IAAA,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE;AAClC,IAAA,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE;AAClC,IAAA,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,aAAa,EAAE;AACnC,IAAA,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,EAAE;AACpC,IAAA,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE;AAChC,IAAA,EAAE,IAAI,EAAE,IAA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EAAA,YAAA,EAAA,cAAA,EAAA,UAAA,EAAA,iBAAA,EAAA,gBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAE,qBAAqB,EAAA,IAAA,EAAA,mBAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAE,YAAY,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,SAAA,EAAA,MAAA,EAAA,OAAA,EAAA,OAAA,EAAA,UAAA,EAAA,SAAA,EAAA,aAAA,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,OAAA,EAAA,UAAA,EAAA,UAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,OAAA,EAAA,YAAA,EAAA,YAAA,EAAA,WAAA,EAAA,WAAA,CAAA,EAAA,OAAA,EAAA,CAAA,SAAA,EAAA,SAAA,EAAA,QAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAyCnG,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBA5CvC,SAAS;+BACC,yGAAyG,EAAA,UAAA,EACvG,IAAI,EAAA,OAAA,EACP,CAAC,WAAW,EAAE,mBAAmB,EAAE,eAAe,EAAE,aAAa,EAAE,qBAAqB,EAAE,YAAY,CAAC,kBAChG,CAAC,sBAAsB,CAAC,EAAA,QAAA,EAC9B;;;;;;;;;;;;AAYT,CAAA,CAAA,EAAA,MAAA,EAAA,CAAA,mYAAA,CAAA,EAAA;;;AChCF;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"aril-ui-translate-input.mjs","sources":["../../projects/aril/ui/translate-input/src/aril-lang-modal/constants.ts","../../projects/aril/ui/translate-input/src/aril-lang-modal/aril-lang-modal.component.ts","../../projects/aril/ui/translate-input/src/aril-lang-modal/aril-lang-modal.component.html","../../projects/aril/ui/translate-input/src/aril-translate-input.component.ts","../../projects/aril/ui/translate-input/aril-ui-translate-input.ts"],"sourcesContent":["import { LanguageDto } from '../interface';\r\n\r\nexport const ALL_LANGS: LanguageDto[] = [\r\n\t{ code: 'en', name: '🇬🇧 English' },\r\n\t{ code: 'tr', name: '🇹🇷 Türkçe' },\r\n\t{ code: 'de', name: '🇩🇪 Deutsch' },\r\n\t{ code: 'fr', name: '🇫🇷 Français' },\r\n\t{ code: 'es', name: '🇪🇸 Español' },\r\n\t{ code: 'ar', name: '🇸🇦 العربية (السعودية)' },\r\n\t{ code: 'he', name: '🇮🇱 עברית' },\r\n\t{ code: 'fa', name: '🇮🇷 فارسی' },\r\n\t{ code: 'ro', name: '🇷🇴 Română' },\r\n\t{ code: 'ru', name: '🇷🇺 Русский' },\r\n\t{ code: 'ja', name: '🇯🇵 日本語' },\r\n\t{ code: 'zh', name: '🇨🇳 简体中文' }\r\n];\r\n","/* eslint-disable @angular-eslint/component-selector */\r\nimport { CommonModule } from '@angular/common';\r\nimport { Component, inject } from '@angular/core';\r\nimport { FormsModule } from '@angular/forms';\r\n\r\nimport { DynamicDialogConfig, DynamicDialogRef } from 'primeng/dynamicdialog';\r\nimport { TagModule } from 'primeng/tag';\r\n\r\nimport { TranslocoModule, TranslocoService } from '@ngneat/transloco';\r\n\r\nimport { EnumPickerComponent } from 'aril/ui-business/enumPicker';\r\nimport { ButtonComponent } from 'aril/ui/button';\r\nimport { FieldComponent } from 'aril/ui/field';\r\nimport { TextComponent } from 'aril/ui/text';\r\n\r\nimport { LangModalData, TranslationObject } from '../interface';\r\nimport { ALL_LANGS } from './constants';\r\n\r\n@Component({\r\n\tselector: 'aril-lang-modal',\r\n\timports: [\r\n\t\tTextComponent,\r\n\t\tFormsModule,\r\n\t\tCommonModule,\r\n\t\tButtonComponent,\r\n\t\tTranslocoModule,\r\n\t\tFieldComponent,\r\n\t\tEnumPickerComponent,\r\n\t\tTagModule\r\n\t],\r\n\tstandalone: true,\r\n\ttemplateUrl: 'aril-lang-modal.component.html',\r\n\tstyleUrls: ['aril-lang-modal.component.scss']\r\n})\r\nexport class ArilLangModalComponent {\r\n\ttranslocoService = inject(TranslocoService);\r\n\tselectedLanguages: string[] = ['tr', 'en'];\r\n\tavailableLanguages = ALL_LANGS;\r\n\ttranslations: TranslationObject = {};\r\n\tmandatoryLanguages: string[] = [];\r\n\r\n\tconstructor(\r\n\t\tpublic config: DynamicDialogConfig<LangModalData>,\r\n\t\tpublic ref: DynamicDialogRef\r\n\t) {\r\n\t\tthis.translations = { ...this.config.data?.translations };\r\n\t\tthis.mandatoryLanguages = this.config.data?.mandatoryLanguages || [];\r\n\t}\r\n\r\n\tsave() {\r\n\t\tconst allowed = new Set(this.selectedLanguages);\r\n\t\t// only output the languages that are selected\r\n\t\tconst outputTranslations = Object.fromEntries(Object.entries(this.translations).filter(([k]) => allowed.has(k)));\r\n\t\tthis.ref.close(outputTranslations);\r\n\t}\r\n\r\n\tclose() {\r\n\t\tthis.ref.close();\r\n\t}\r\n\r\n\tgetLabel(code: string) {\r\n\t\treturn this.availableLanguages.find((lang) => lang.code === code)?.name;\r\n\t}\r\n\r\n\tisSaveDisabled() {\r\n\t\treturn this.mandatoryLanguages?.some((lang) => !this.selectedLanguages.includes(lang) || !this.translations[lang]);\r\n\t}\r\n\r\n\tgetInfoText() {\r\n\t\treturn this.translocoService.translate('translationModal.mandatoryLanguages', {\r\n\t\t\tlanguages: this.mandatoryLanguages?.map((lang) => this.getLabel(lang)).join(', ')\r\n\t\t});\r\n\t}\r\n}\r\n","<div>\r\n\t<aril-field\r\n\t\t[label]=\"translocoService.translate('translationModal.addLanguage')\"\r\n\t\t[cols]=\"{ default: 12 }\"\r\n\t\tclass=\"mb-4 block\">\r\n\t\t<enum-picker\r\n\t\t\t[(ngModel)]=\"selectedLanguages\"\r\n\t\t\t[items]=\"availableLanguages\"\r\n\t\t\t[isMultiple]=\"true\"\r\n\t\t\titemKey=\"code\"\r\n\t\t\titemText=\"name\" />\r\n\t</aril-field>\r\n\r\n\t@for (lang of selectedLanguages; track lang) {\r\n\t\t<div class=\"border-1 border-gray-300 border-round py-2 px-4 mb-2 flex justify-content-between items-center\">\r\n\t\t\t<aril-field labelPos=\"left\" [label]=\"getLabel(lang)\" [cols]=\"{ default: 12 }\" [labelWidth]=\"15\" [valueWidth]=\"85\">\r\n\t\t\t\t<aril-text class=\"value-input\" [(ngModel)]=\"translations[lang]\" />\r\n\t\t\t</aril-field>\r\n\t\t</div>\r\n\t}\r\n\r\n\t<div class=\"mt-4\">\r\n\t\t@if (mandatoryLanguages.length && isSaveDisabled()) {\r\n\t\t\t<div class=\"mb-2\">\r\n\t\t\t\t<p-tag [value]=\"getInfoText()\" severity=\"info\" />\r\n\t\t\t</div>\r\n\t\t}\r\n\t</div>\r\n\r\n\t<div class=\"mt-4 flex justify-content-end\">\r\n\t\t<aril-button\r\n\t\t\tcolor=\"danger\"\r\n\t\t\t[outlined]=\"true\"\r\n\t\t\t[label]=\"translocoService.translate('cancel')\"\r\n\t\t\t[raised]=\"false\"\r\n\t\t\ticon=\"TIMES\"\r\n\t\t\t(clickEvent)=\"close()\" />\r\n\t\t<aril-button\r\n\t\t\t[label]=\"translocoService.translate('save')\"\r\n\t\t\tcolor=\"success\"\r\n\t\t\ticon=\"CHECK\"\r\n\t\t\tclass=\"ml-2\"\r\n\t\t\t(clickEvent)=\"save()\"\r\n\t\t\t[disabled]=\"isSaveDisabled()\" />\r\n\t</div>\r\n</div>\r\n","import { Component, input } from '@angular/core';\r\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\r\n\r\nimport { ButtonModule } from 'primeng/button';\r\nimport { DialogService } from 'primeng/dynamicdialog';\r\nimport { InputTextModule } from 'primeng/inputtext';\r\nimport { TooltipModule } from 'primeng/tooltip';\r\n\r\nimport { TranslocoService } from '@ngneat/transloco';\r\n\r\nimport { BaseInputComponent, InputErrorMessagePipe, ValueAccessorDirective } from 'aril/ui/lib';\r\n\r\nimport { ArilLangModalComponent } from './aril-lang-modal/aril-lang-modal.component';\r\nimport { TranslationObject } from './interface';\r\n\r\n@Component({\r\n\tselector: 'aril-translate-input[ngModel], aril-translate-input[formControl], aril-translate-input[formControlName]',\r\n\tstandalone: true,\r\n\timports: [FormsModule, ReactiveFormsModule, InputTextModule, TooltipModule, InputErrorMessagePipe, ButtonModule],\r\n\thostDirectives: [ValueAccessorDirective],\r\n\ttemplate: `\r\n\t\t<div class=\"p-inputgroup\">\r\n\t\t\t<input\r\n\t\t\t\tpInputText\r\n\t\t\t\ttype=\"text\"\r\n\t\t\t\t[placeholder]=\"placeholder()\"\r\n\t\t\t\t[ngModel]=\"getDisplayValue()\"\r\n\t\t\t\t(ngModelChange)=\"onInputChange($event)\"\r\n\t\t\t\t[pTooltip]=\"shouldShowError() ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\r\n\t\t\t\t[tooltipOptions]=\"tooltipOptions\" />\r\n\t\t\t<p-button icon=\"pi pi-language\" (onClick)=\"openModal()\" styleClass=\"p-button-text p-button-rounded\"> </p-button>\r\n\t\t</div>\r\n\t`,\r\n\tstyles: [\r\n\t\t`\r\n\t\t\t:host ::ng-deep .p-inputgroup {\r\n\t\t\t\tdisplay: flex;\r\n\t\t\t\talign-items: center;\r\n\t\t\t\twidth: 100%;\r\n\t\t\t}\r\n\r\n\t\t\t:host ::ng-deep .p-inputgroup .p-inputtext {\r\n\t\t\t\tflex: 1 1 auto;\r\n\t\t\t\tborder-top-right-radius: 0;\r\n\t\t\t\tborder-bottom-right-radius: 0;\r\n\t\t\t}\r\n\r\n\t\t\t:host ::ng-deep .p-inputgroup .p-button {\r\n\t\t\t\tborder-top-left-radius: 0;\r\n\t\t\t\tborder-bottom-left-radius: 0;\r\n\t\t\t}\r\n\r\n\t\t\t:host ::ng-deep .p-inputgroup-sm .p-inputtext,\r\n\t\t\t:host ::ng-deep .p-inputgroup-sm .p-button {\r\n\t\t\t\tline-height: 1.3;\r\n\t\t\t}\r\n\t\t`\r\n\t]\r\n})\r\nexport class ArilTranslateInputComponent extends BaseInputComponent {\r\n\tplaceholder = input<string>('');\r\n\tmandatoryLanguages = input<string[]>();\r\n\r\n\tvalue: TranslationObject = {};\r\n\tcurrentLang!: string;\r\n\r\n\tonChange = (used: any) => {};\r\n\tonTouch = () => {};\r\n\r\n\tconstructor(\r\n\t\treadonly dialogService: DialogService,\r\n\t\treadonly translocoService: TranslocoService\r\n\t) {\r\n\t\tsuper();\r\n\t\tthis.currentLang = this.translocoService.getActiveLang();\r\n\t}\r\n\r\n\twriteValue(value: TranslationObject): void {\r\n\t\tif (!value) {\r\n\t\t\tthis.value = {};\r\n\t\t} else if (typeof value === 'object') {\r\n\t\t\tthis.value = value || {};\r\n\t\t} else {\r\n\t\t\tconsole.error('Invalid value type for translations, expected object');\r\n\t\t\tthis.value = {};\r\n\t\t}\r\n\t\tthis.updateFormControlSilently(this.value);\r\n\t}\r\n\r\n\tprivate updateFormControlSilently(value: TranslationObject): void {\r\n\t\tif (this.ngControl?.control) {\r\n\t\t\tthis.ngControl.control.setValue(value, { emitEvent: false });\r\n\t\t}\r\n\t}\r\n\r\n\tprivate updateValueAndFormControl(newValue: TranslationObject): void {\r\n\t\tthis.value = { ...newValue };\r\n\t\tthis.updateFormControlSilently(this.value);\r\n\t\tthis.onChange(this.value);\r\n\t\tthis.onTouch();\r\n\t}\r\n\r\n\tonInputChange(newValue: string): void {\r\n\t\tconst updatedValue = {\r\n\t\t\t...this.value,\r\n\t\t\t[this.currentLang]: newValue\r\n\t\t};\r\n\t\tthis.updateValueAndFormControl(updatedValue);\r\n\t}\r\n\r\n\tgetDisplayValue(): string {\r\n\t\tlet translationObj = this.value;\r\n\r\n\t\tconst controlValue = this.ngControl?.control?.value;\r\n\t\tif (controlValue && typeof controlValue === 'object') {\r\n\t\t\ttranslationObj = controlValue;\r\n\t\t}\r\n\r\n\t\treturn translationObj?.[this.currentLang] || '';\r\n\t}\r\n\r\n\topenModal() {\r\n\t\tconst currentTranslations = this.ngControl?.control?.value || this.value || {};\r\n\t\tconst ref = this.dialogService.open(ArilLangModalComponent, {\r\n\t\t\twidth: '40%',\r\n\t\t\tdata: {\r\n\t\t\t\ttranslations: { ...currentTranslations },\r\n\t\t\t\tcurrentLang: this.currentLang,\r\n\t\t\t\tmandatoryLanguages: this.mandatoryLanguages()\r\n\t\t\t},\r\n\t\t\theader: this.translocoService.translate('translationModal.title')\r\n\t\t});\r\n\r\n\t\tref.onClose.subscribe((result) => {\r\n\t\t\tif (result) {\r\n\t\t\t\tthis.updateValueAndFormControl(result);\r\n\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\tthis.updateValueAndFormControl({ ...result });\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tshouldShowError(): boolean {\r\n\t\tif (!this.ngControl?.invalid) return false;\r\n\t\tif (this.value && typeof this.value === 'object') {\r\n\t\t\tconst hasAnyTranslation = Object.values(this.value).some((val) => val && val.trim() !== '');\r\n\t\t\tif (hasAnyTranslation) return false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i2","i3"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAEO,MAAM,SAAS,GAAkB;AACvC,IAAA,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,EAAE;AACpC,IAAA,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,aAAa,EAAE;AACnC,IAAA,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,EAAE;AACpC,IAAA,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE;AACrC,IAAA,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,EAAE;AACpC,IAAA,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,yBAAyB,EAAE;AAC/C,IAAA,EAAE,IAAI,EAAE,IAAI,EAAE,IA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A,YAAA,EAAA,WAAA,EAAA,WAAA,CAAA,EAAA,OAAA,EAAA,CAAA,SAAA,EAAA,SAAA,EAAA,QAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAyCnG,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBA5CvC,SAAS;+BACC,yGAAyG,EAAA,UAAA,EACvG,IAAI,EACP,OAAA,EAAA,CAAC,WAAW,EAAE,mBAAmB,EAAE,eAAe,EAAE,aAAa,EAAE,qBAAqB,EAAE,YAAY,CAAC,kBAChG,CAAC,sBAAsB,CAAC,EAC9B,QAAA,EAAA,CAAA;;;;;;;;;;;;AAYT,CAAA,CAAA,EAAA,MAAA,EAAA,CAAA,mYAAA,CAAA,EAAA,CAAA;;;AChCF;;AAEG;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, EventEmitter, effect,
|
|
2
|
+
import { input, EventEmitter, effect, Component, ChangeDetectionStrategy, Output } from '@angular/core';
|
|
3
3
|
import * as i2 from 'primeng/contextmenu';
|
|
4
4
|
import { ContextMenuModule } from 'primeng/contextmenu';
|
|
5
5
|
import * as i1 from 'primeng/tree';
|
|
@@ -41,11 +41,11 @@ class TreeComponent {
|
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TreeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
44
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.1.2", type: TreeComponent, isStandalone: true, selector: "aril-tree", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, contextMenu: { classPropertyName: "contextMenu", publicName: "contextMenu", isSignal: true, isRequired: false, transformFunction: null }, filterPlaceholder: { classPropertyName: "filterPlaceholder", publicName: "filterPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, selectedNode: { classPropertyName: "selectedNode", publicName: "selectedNode", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, isAllExpanded: { classPropertyName: "isAllExpanded", publicName: "isAllExpanded", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { expandEvent: "expandEvent", selectionEvent: "selectionEvent" }, ngImport: i0, template: "<!-- <div class=\"mb-3\">\n\t<aril-button [label]=\"isExpended ? 'Daralt' : 'Geni\u015Flet'\" size=\"sm\" [color]=\"isExpended ? 'primary' :'warning'\" (clickEvent)=\"toggleTree()\"></aril-button>\n</div> -->\n<p-tree\n\t[value]=\"data()\"\n\t[selectionMode]=\"selectionMode()\"\n\t[(selection)]=\"selectionNodes\"\n\t[contextMenu]=\"contextMenu()?.length ? contextMenuRef : null\"\n\t[filter]=\"filter()\"\n\tfilterMode=\"lenient\"\n\tfilterBy=\"label\"\n\t[filterPlaceholder]=\"filterPlaceholder()\"\n\t[styleClass]=\"styleClass()!\"\n\t(onNodeExpand)=\"expandEvent.emit($event.node)\"\n\t(selectionChange)=\"selectionEvent.emit(selectionNodes)\">\n</p-tree>\n<p-contextMenu #contextMenuRef [model]=\"contextMenu()\"></p-contextMenu>\n", styles: ["::ng-deep .p-tree .p-tree-filter{padding:.75rem 2rem .75rem .75rem!important}\n"], dependencies: [{ kind: "ngmodule", type: TreeModule }, { kind: "component", type: i1.Tree, selector: "p-tree", inputs: ["value", "selectionMode", "loadingMode", "selection", "style", "styleClass", "contextMenu", "layout", "draggableScope", "droppableScope", "draggableNodes", "droppableNodes", "metaKeySelection", "propagateSelectionUp", "propagateSelectionDown", "loading", "loadingIcon", "emptyMessage", "ariaLabel", "togglerAriaLabel", "ariaLabelledBy", "validateDrop", "filter", "filterBy", "filterMode", "filterPlaceholder", "filteredNodes", "filterLocale", "scrollHeight", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "indentation", "_templateMap", "trackBy", "virtualNodeHeight"], outputs: ["selectionChange", "onNodeSelect", "onNodeUnselect", "onNodeExpand", "onNodeCollapse", "onNodeContextMenuSelect", "onNodeDrop", "onLazyLoad", "onScroll", "onScrollIndexChange", "onFilter"] }, { kind: "ngmodule", type: ContextMenuModule }, { kind: "component", type: i2.ContextMenu, selector: "p-contextMenu", inputs: ["model", "triggerEvent", "target", "global", "style", "styleClass", "appendTo", "autoZIndex", "baseZIndex", "id", "ariaLabel", "ariaLabelledBy", "pressDelay"], outputs: ["onShow", "onHide"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
44
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.1.2", type: TreeComponent, isStandalone: true, selector: "aril-tree", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, contextMenu: { classPropertyName: "contextMenu", publicName: "contextMenu", isSignal: true, isRequired: false, transformFunction: null }, filterPlaceholder: { classPropertyName: "filterPlaceholder", publicName: "filterPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, selectedNode: { classPropertyName: "selectedNode", publicName: "selectedNode", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, isAllExpanded: { classPropertyName: "isAllExpanded", publicName: "isAllExpanded", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { expandEvent: "expandEvent", selectionEvent: "selectionEvent" }, ngImport: i0, template: "<!-- <div class=\"mb-3\">\r\n\t<aril-button [label]=\"isExpended ? 'Daralt' : 'Geni\u015Flet'\" size=\"sm\" [color]=\"isExpended ? 'primary' :'warning'\" (clickEvent)=\"toggleTree()\"></aril-button>\r\n</div> -->\r\n<p-tree\r\n\t[value]=\"data()\"\r\n\t[selectionMode]=\"selectionMode()\"\r\n\t[(selection)]=\"selectionNodes\"\r\n\t[contextMenu]=\"contextMenu()?.length ? contextMenuRef : null\"\r\n\t[filter]=\"filter()\"\r\n\tfilterMode=\"lenient\"\r\n\tfilterBy=\"label\"\r\n\t[filterPlaceholder]=\"filterPlaceholder()\"\r\n\t[styleClass]=\"styleClass()!\"\r\n\t(onNodeExpand)=\"expandEvent.emit($event.node)\"\r\n\t(selectionChange)=\"selectionEvent.emit(selectionNodes)\">\r\n</p-tree>\r\n<p-contextMenu #contextMenuRef [model]=\"contextMenu()\"></p-contextMenu>\r\n", styles: ["::ng-deep .p-tree .p-tree-filter{padding:.75rem 2rem .75rem .75rem!important}\n"], dependencies: [{ kind: "ngmodule", type: TreeModule }, { kind: "component", type: i1.Tree, selector: "p-tree", inputs: ["value", "selectionMode", "loadingMode", "selection", "style", "styleClass", "contextMenu", "layout", "draggableScope", "droppableScope", "draggableNodes", "droppableNodes", "metaKeySelection", "propagateSelectionUp", "propagateSelectionDown", "loading", "loadingIcon", "emptyMessage", "ariaLabel", "togglerAriaLabel", "ariaLabelledBy", "validateDrop", "filter", "filterBy", "filterMode", "filterPlaceholder", "filteredNodes", "filterLocale", "scrollHeight", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "indentation", "_templateMap", "trackBy", "virtualNodeHeight"], outputs: ["selectionChange", "onNodeSelect", "onNodeUnselect", "onNodeExpand", "onNodeCollapse", "onNodeContextMenuSelect", "onNodeDrop", "onLazyLoad", "onScroll", "onScrollIndexChange", "onFilter"] }, { kind: "ngmodule", type: ContextMenuModule }, { kind: "component", type: i2.ContextMenu, selector: "p-contextMenu", inputs: ["model", "triggerEvent", "target", "global", "style", "styleClass", "appendTo", "autoZIndex", "baseZIndex", "id", "ariaLabel", "ariaLabelledBy", "pressDelay"], outputs: ["onShow", "onHide"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
45
45
|
}
|
|
46
46
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TreeComponent, decorators: [{
|
|
47
47
|
type: Component,
|
|
48
|
-
args: [{ standalone: true, selector: 'aril-tree', imports: [TreeModule, ContextMenuModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- <div class=\"mb-3\">\n\t<aril-button [label]=\"isExpended ? 'Daralt' : 'Geni\u015Flet'\" size=\"sm\" [color]=\"isExpended ? 'primary' :'warning'\" (clickEvent)=\"toggleTree()\"></aril-button>\n</div> -->\n<p-tree\n\t[value]=\"data()\"\n\t[selectionMode]=\"selectionMode()\"\n\t[(selection)]=\"selectionNodes\"\n\t[contextMenu]=\"contextMenu()?.length ? contextMenuRef : null\"\n\t[filter]=\"filter()\"\n\tfilterMode=\"lenient\"\n\tfilterBy=\"label\"\n\t[filterPlaceholder]=\"filterPlaceholder()\"\n\t[styleClass]=\"styleClass()!\"\n\t(onNodeExpand)=\"expandEvent.emit($event.node)\"\n\t(selectionChange)=\"selectionEvent.emit(selectionNodes)\">\n</p-tree>\n<p-contextMenu #contextMenuRef [model]=\"contextMenu()\"></p-contextMenu>\n", styles: ["::ng-deep .p-tree .p-tree-filter{padding:.75rem 2rem .75rem .75rem!important}\n"] }]
|
|
48
|
+
args: [{ standalone: true, selector: 'aril-tree', imports: [TreeModule, ContextMenuModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- <div class=\"mb-3\">\r\n\t<aril-button [label]=\"isExpended ? 'Daralt' : 'Geni\u015Flet'\" size=\"sm\" [color]=\"isExpended ? 'primary' :'warning'\" (clickEvent)=\"toggleTree()\"></aril-button>\r\n</div> -->\r\n<p-tree\r\n\t[value]=\"data()\"\r\n\t[selectionMode]=\"selectionMode()\"\r\n\t[(selection)]=\"selectionNodes\"\r\n\t[contextMenu]=\"contextMenu()?.length ? contextMenuRef : null\"\r\n\t[filter]=\"filter()\"\r\n\tfilterMode=\"lenient\"\r\n\tfilterBy=\"label\"\r\n\t[filterPlaceholder]=\"filterPlaceholder()\"\r\n\t[styleClass]=\"styleClass()!\"\r\n\t(onNodeExpand)=\"expandEvent.emit($event.node)\"\r\n\t(selectionChange)=\"selectionEvent.emit(selectionNodes)\">\r\n</p-tree>\r\n<p-contextMenu #contextMenuRef [model]=\"contextMenu()\"></p-contextMenu>\r\n", styles: ["::ng-deep .p-tree .p-tree-filter{padding:.75rem 2rem .75rem .75rem!important}\n"] }]
|
|
49
49
|
}], ctorParameters: () => [], propDecorators: { expandEvent: [{
|
|
50
50
|
type: Output
|
|
51
51
|
}], selectionEvent: [{
|