aril 0.0.49 → 0.0.51
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/boot/config/api/{index.ts → index.d.ts} +1 -1
- package/boot/config/api/src/api.service.d.ts +14 -0
- package/boot/config/api/src/interfaces.d.ts +9 -0
- package/boot/config/apps/{index.ts → index.d.ts} +2 -2
- package/boot/config/apps/src/apps.service.d.ts +16 -0
- package/boot/config/apps/src/interfaces.d.ts +23 -0
- package/boot/config/apps/src/showdowDOMWrapper.d.ts +10 -0
- package/boot/config/plugins/{index.ts → index.d.ts} +2 -2
- package/boot/config/plugins/src/getNgZone.d.ts +5 -0
- package/boot/config/plugins/src/interfaces.d.ts +18 -0
- package/boot/config/plugins/src/plugins.service.d.ts +9 -0
- package/boot/host/{index.ts → index.d.ts} +1 -1
- package/boot/host/src/app.component.d.ts +8 -0
- package/boot/host/src/bootstrap.d.ts +2 -0
- package/boot/index.d.ts +1 -0
- package/boot/mfe/{index.ts → index.d.ts} +1 -1
- package/boot/mfe/src/app.component.d.ts +12 -0
- package/boot/mfe/src/appComponentLoader.d.ts +1 -0
- package/boot/mfe/src/bootstrap.d.ts +6 -0
- package/boot/mfe/src/loadStyles.d.ts +3 -0
- package/esm2022/aril.mjs +5 -0
- package/esm2022/boot/aril-boot.mjs +5 -0
- package/esm2022/boot/config/api/aril-boot-config-api.mjs +5 -0
- package/esm2022/boot/config/api/index.mjs +2 -0
- package/esm2022/boot/config/api/src/api.service.mjs +42 -0
- package/esm2022/boot/config/api/src/interfaces.mjs +11 -0
- package/esm2022/boot/config/apps/aril-boot-config-apps.mjs +5 -0
- package/esm2022/boot/config/apps/index.mjs +3 -0
- package/esm2022/boot/config/apps/src/apps.service.mjs +51 -0
- package/esm2022/boot/config/apps/src/interfaces.mjs +17 -0
- package/esm2022/boot/config/apps/src/showdowDOMWrapper.mjs +35 -0
- package/esm2022/boot/config/plugins/aril-boot-config-plugins.mjs +5 -0
- package/esm2022/boot/config/plugins/index.mjs +3 -0
- package/esm2022/boot/config/plugins/src/getNgZone.mjs +12 -0
- package/esm2022/boot/config/plugins/src/interfaces.mjs +3 -0
- package/esm2022/boot/config/plugins/src/plugins.service.mjs +62 -0
- package/esm2022/boot/host/aril-boot-host.mjs +5 -0
- package/esm2022/boot/host/index.mjs +2 -0
- package/esm2022/boot/host/src/app.component.mjs +32 -0
- package/esm2022/boot/host/src/bootstrap.mjs +50 -0
- package/esm2022/boot/index.mjs +2 -0
- package/esm2022/boot/mfe/aril-boot-mfe.mjs +5 -0
- package/esm2022/boot/mfe/index.mjs +2 -0
- package/esm2022/boot/mfe/src/app.component.mjs +60 -0
- package/esm2022/boot/mfe/src/appComponentLoader.mjs +5 -0
- package/esm2022/boot/mfe/src/bootstrap.mjs +64 -0
- package/esm2022/boot/mfe/src/loadStyles.mjs +16 -0
- package/esm2022/http/aril-http.mjs +5 -0
- package/esm2022/http/index.mjs +12 -0
- package/esm2022/http/lib/enums.mjs +16 -0
- package/esm2022/http/lib/interfaces.mjs +15 -0
- package/esm2022/http/src/httpBackend.mjs +17 -0
- package/esm2022/http/src/httpClient.mjs +14 -0
- package/esm2022/http/src/interceptor/state-machine.interceptor.mjs +8 -0
- package/esm2022/http/src/serviceBase.mjs +60 -0
- package/esm2022/http/src/serviceMockBase.mjs +5 -0
- package/esm2022/http/src/serviceRequest.mjs +21 -0
- package/esm2022/http/src/serviceStateMethods.mjs +118 -0
- package/esm2022/i18n/aril-i18n.mjs +5 -0
- package/esm2022/i18n/index.mjs +6 -0
- package/esm2022/i18n/src/folder-name-token.mjs +3 -0
- package/esm2022/i18n/src/i18n.module.mjs +17 -0
- package/esm2022/i18n/src/loader.mjs +20 -0
- package/esm2022/i18n/src/provideI18n.mjs +16 -0
- package/esm2022/i18n/src/provideScope.mjs +18 -0
- package/esm2022/keycloak/aril-keycloak.mjs +5 -0
- package/esm2022/keycloak/index.mjs +4 -0
- package/esm2022/keycloak/src/auth.guard.mjs +39 -0
- package/esm2022/keycloak/src/auth.interceptor.mjs +10 -0
- package/esm2022/keycloak/src/keycloak.manager.mjs +76 -0
- package/esm2022/public-api.mjs +3 -0
- package/esm2022/theme/aril-theme.mjs +5 -0
- package/esm2022/theme/index.mjs +2 -0
- package/esm2022/theme/layout/app/breadcrumb/app.breadcrumb.component.mjs +41 -0
- package/esm2022/theme/layout/app/config/app.config.component.mjs +132 -0
- package/esm2022/theme/layout/app/layout/app.layout.component.mjs +147 -0
- package/esm2022/theme/layout/app/layout/mfe.layout.component.mjs +67 -0
- package/esm2022/theme/layout/app/menu/app.menu.component.mjs +398 -0
- package/esm2022/theme/layout/app/profileSidebar/app.profilesidebar.component.mjs +28 -0
- package/esm2022/theme/layout/app/sidebar/app.sidebar.component.mjs +41 -0
- package/esm2022/theme/layout/app/topbar/app.topbar.component.mjs +34 -0
- package/esm2022/theme/layout/aril-theme-layout.mjs +5 -0
- package/esm2022/theme/layout/index.mjs +4 -0
- package/esm2022/theme/layout/service/app.layout.service.mjs +127 -0
- package/esm2022/theme/layout/service/app.menu.service.mjs +53 -0
- package/esm2022/theme/layout/service/menuchangeevent.mjs +2 -0
- package/esm2022/ui/aril-ui.mjs +5 -0
- package/esm2022/ui/autoComplete/aril-ui-autoComplete.mjs +5 -0
- package/esm2022/ui/autoComplete/index.mjs +2 -0
- package/esm2022/ui/autoComplete/src/auto-complete.component.mjs +81 -0
- package/esm2022/ui/autoComplete/src/interfaces.mjs +2 -0
- package/esm2022/ui/badge/aril-ui-badge.mjs +5 -0
- package/esm2022/ui/badge/index.mjs +2 -0
- package/esm2022/ui/badge/src/badge.component.mjs +19 -0
- package/esm2022/ui/button/aril-ui-button.mjs +5 -0
- package/esm2022/ui/button/index.mjs +3 -0
- package/esm2022/ui/button/src/button.component.mjs +37 -0
- package/esm2022/ui/button/src/split-button.component.mjs +18 -0
- package/esm2022/ui/calendar/aril-ui-calendar.mjs +5 -0
- package/esm2022/ui/calendar/index.mjs +2 -0
- package/esm2022/ui/calendar/src/calendar.component.mjs +119 -0
- package/esm2022/ui/checkbox/aril-ui-checkbox.mjs +5 -0
- package/esm2022/ui/checkbox/index.mjs +3 -0
- package/esm2022/ui/checkbox/src/check-box.component.mjs +24 -0
- package/esm2022/ui/checkbox/src/tri-state-checkbox.component.mjs +24 -0
- package/esm2022/ui/dxField/aril-ui-dxField.mjs +5 -0
- package/esm2022/ui/dxField/index.mjs +2 -0
- package/esm2022/ui/dxField/src/dx-field.component.mjs +18 -0
- package/esm2022/ui/field/aril-ui-field.mjs +5 -0
- package/esm2022/ui/field/index.mjs +2 -0
- package/esm2022/ui/field/src/field.component.mjs +39 -0
- package/esm2022/ui/fileUpload/aril-ui-fileUpload.mjs +5 -0
- package/esm2022/ui/fileUpload/index.mjs +2 -0
- package/esm2022/ui/fileUpload/src/file-upload.component.mjs +61 -0
- package/esm2022/ui/form/aril-ui-form.mjs +5 -0
- package/esm2022/ui/form/index.mjs +22 -0
- package/esm2022/ui/form/src/form-submit-button.component.mjs +40 -0
- package/esm2022/ui/form/src/form.component.mjs +27 -0
- package/esm2022/ui/index.mjs +2 -0
- package/esm2022/ui/lib/aril-ui-lib.mjs +5 -0
- package/esm2022/ui/lib/index.mjs +15 -0
- package/esm2022/ui/lib/src/form/form-error-message.component.mjs +33 -0
- package/esm2022/ui/lib/src/form/form-error-message.directive.mjs +34 -0
- package/esm2022/ui/lib/src/form/form-field-builder.mjs +23 -0
- package/esm2022/ui/lib/src/form/form-validation.mjs +14 -0
- package/esm2022/ui/lib/src/grid/flex-grid.directive.mjs +21 -0
- package/esm2022/ui/lib/src/input/baseInput.mjs +24 -0
- package/esm2022/ui/lib/src/input/common-input-validators.service.mjs +49 -0
- package/esm2022/ui/lib/src/input/dx-input-error-message.pipe.mjs +22 -0
- package/esm2022/ui/lib/src/input/input-disabled.directive.mjs +25 -0
- package/esm2022/ui/lib/src/input/input-error-message.pipe.mjs +42 -0
- package/esm2022/ui/lib/src/input/input-transforms.mjs +8 -0
- package/esm2022/ui/lib/src/input/value-accessor.directive.mjs +38 -0
- package/esm2022/ui/mask/aril-ui-mask.mjs +5 -0
- package/esm2022/ui/mask/index.mjs +2 -0
- package/esm2022/ui/mask/src/mask.component.mjs +35 -0
- package/esm2022/ui/number/aril-ui-number.mjs +5 -0
- package/esm2022/ui/number/index.mjs +2 -0
- package/esm2022/ui/number/src/number.component.mjs +36 -0
- package/esm2022/ui/overlayPanel/aril-ui-overlayPanel.mjs +5 -0
- package/esm2022/ui/overlayPanel/index.mjs +2 -0
- package/esm2022/ui/overlayPanel/src/overlay-panel.component.mjs +20 -0
- package/esm2022/ui/panel/aril-ui-panel.mjs +5 -0
- package/esm2022/ui/panel/index.mjs +2 -0
- package/esm2022/ui/panel/src/panel.component.mjs +24 -0
- package/esm2022/ui/password/aril-ui-password.mjs +5 -0
- package/esm2022/ui/password/index.mjs +2 -0
- package/esm2022/ui/password/src/password.component.mjs +29 -0
- package/esm2022/ui/radioButton/aril-ui-radioButton.mjs +5 -0
- package/esm2022/ui/radioButton/index.mjs +2 -0
- package/esm2022/ui/radioButton/src/radio-button.component.mjs +30 -0
- package/esm2022/ui/selectBox/aril-ui-selectBox.mjs +5 -0
- package/esm2022/ui/selectBox/index.mjs +2 -0
- package/esm2022/ui/selectBox/src/interfaces.mjs +2 -0
- package/esm2022/ui/selectBox/src/select-box.component.mjs +54 -0
- package/esm2022/ui/switch/aril-ui-switch.mjs +5 -0
- package/esm2022/ui/switch/index.mjs +2 -0
- package/esm2022/ui/switch/src/switch.component.mjs +23 -0
- package/esm2022/ui/table/aril-ui-table.mjs +5 -0
- package/esm2022/ui/table/index.mjs +49 -0
- package/esm2022/ui/table/src/i18n.mjs +56 -0
- package/esm2022/ui/table/src/table-column.component.mjs +23 -0
- package/esm2022/ui/table/src/table.component.mjs +94 -0
- package/esm2022/ui/tagBox/aril-ui-tagBox.mjs +5 -0
- package/esm2022/ui/tagBox/index.mjs +2 -0
- package/esm2022/ui/tagBox/src/tag-box.component.mjs +50 -0
- package/esm2022/ui/text/aril-ui-text.mjs +5 -0
- package/esm2022/ui/text/index.mjs +2 -0
- package/esm2022/ui/text/src/text.component.mjs +40 -0
- package/esm2022/ui/textArea/aril-ui-textArea.mjs +5 -0
- package/esm2022/ui/textArea/index.mjs +2 -0
- package/esm2022/ui/textArea/src/text-area.component.mjs +26 -0
- package/esm2022/ui/toggle-button/aril-ui-toggle-button.mjs +5 -0
- package/esm2022/ui/toggle-button/index.mjs +2 -0
- package/esm2022/ui/toggle-button/src/toggle-button.component.mjs +25 -0
- package/esm2022/ui/tree/aril-ui-tree.mjs +5 -0
- package/esm2022/ui/tree/index.mjs +2 -0
- package/esm2022/ui/tree/src/tree.component.mjs +34 -0
- package/esm2022/ui/treeTable/aril-ui-treeTable.mjs +5 -0
- package/esm2022/ui/treeTable/index.mjs +2 -0
- package/esm2022/ui/treeTable/src/tree-table.component.mjs +55 -0
- package/esm2022/ui/value/aril-ui-value.mjs +5 -0
- package/esm2022/ui/value/index.mjs +2 -0
- package/esm2022/ui/value/src/value.component.mjs +35 -0
- package/esm2022/util/aril-util.mjs +5 -0
- package/esm2022/util/block/aril-util-block.mjs +5 -0
- package/esm2022/util/block/index.mjs +2 -0
- package/esm2022/util/block/src/block.mjs +64 -0
- package/esm2022/util/custom_pages/aril-util-custom_pages.mjs +5 -0
- package/esm2022/util/custom_pages/index.mjs +2 -0
- package/esm2022/util/custom_pages/src/notFound.component.mjs +65 -0
- package/esm2022/util/index.mjs +2 -0
- package/esm2022/util/init-event/aril-util-init-event.mjs +5 -0
- package/esm2022/util/init-event/index.mjs +2 -0
- package/esm2022/util/init-event/src/init-event.directive.mjs +22 -0
- package/esm2022/util/lib/aril-util-lib.mjs +5 -0
- package/esm2022/util/lib/index.mjs +4 -0
- package/esm2022/util/lib/src/interfaces.mjs +4 -0
- package/esm2022/util/lib/src/module-router.mjs +17 -0
- package/esm2022/util/lib/src/types.mjs +3 -0
- package/esm2022/util/loaders/aril-util-loaders.mjs +5 -0
- package/esm2022/util/loaders/index.mjs +3 -0
- package/esm2022/util/loaders/script/script.loader.service.mjs +61 -0
- package/esm2022/util/loaders/style/style.loader.service.mjs +61 -0
- package/esm2022/util/primitive-extensions/aril-util-primitive-extensions.mjs +5 -0
- package/esm2022/util/primitive-extensions/index.mjs +5 -0
- package/esm2022/util/primitive-extensions/src/boolean.extensions.mjs +2 -0
- package/esm2022/util/primitive-extensions/src/date.extensions.mjs +116 -0
- package/esm2022/util/primitive-extensions/src/number.extensions.mjs +39 -0
- package/esm2022/util/primitive-extensions/src/string.extensions.mjs +23 -0
- package/esm2022/util/pub-sub/aril-util-pub-sub.mjs +5 -0
- package/esm2022/util/pub-sub/index.mjs +2 -0
- package/esm2022/util/pub-sub/src/pub-sub.service.mjs +29 -0
- package/fesm2022/aril-app.component-c363Er6g.mjs +76 -0
- package/fesm2022/aril-app.component-c363Er6g.mjs.map +1 -0
- package/fesm2022/aril-boot-config-api.mjs +59 -0
- package/fesm2022/aril-boot-config-api.mjs.map +1 -0
- package/fesm2022/aril-boot-config-apps.mjs +106 -0
- package/fesm2022/aril-boot-config-apps.mjs.map +1 -0
- package/fesm2022/aril-boot-config-plugins.mjs +81 -0
- package/fesm2022/aril-boot-config-plugins.mjs.map +1 -0
- package/fesm2022/aril-boot-host.mjs +86 -0
- package/fesm2022/aril-boot-host.mjs.map +1 -0
- package/fesm2022/aril-boot-mfe-app.component-WWRmTfs5.mjs +75 -0
- package/fesm2022/aril-boot-mfe-app.component-WWRmTfs5.mjs.map +1 -0
- package/fesm2022/aril-boot-mfe-aril-boot-mfe-PwAGdNZE.mjs +90 -0
- package/fesm2022/aril-boot-mfe-aril-boot-mfe-PwAGdNZE.mjs.map +1 -0
- package/fesm2022/aril-boot-mfe.mjs +16 -0
- package/fesm2022/aril-boot-mfe.mjs.map +1 -0
- package/fesm2022/aril-boot.mjs +8 -0
- package/fesm2022/aril-boot.mjs.map +1 -0
- package/fesm2022/aril-http.mjs +273 -0
- package/fesm2022/aril-http.mjs.map +1 -0
- package/fesm2022/aril-i18n.mjs +72 -0
- package/fesm2022/aril-i18n.mjs.map +1 -0
- package/fesm2022/aril-keycloak.mjs +129 -0
- package/fesm2022/aril-keycloak.mjs.map +1 -0
- package/fesm2022/aril-theme-layout.mjs +1010 -0
- package/fesm2022/aril-theme-layout.mjs.map +1 -0
- package/fesm2022/aril-theme.mjs +8 -0
- package/fesm2022/aril-theme.mjs.map +1 -0
- package/fesm2022/aril-ui-autoComplete.mjs +88 -0
- package/fesm2022/aril-ui-autoComplete.mjs.map +1 -0
- package/fesm2022/aril-ui-badge.mjs +26 -0
- package/fesm2022/aril-ui-badge.mjs.map +1 -0
- package/fesm2022/aril-ui-button.mjs +59 -0
- package/fesm2022/aril-ui-button.mjs.map +1 -0
- package/fesm2022/aril-ui-calendar.mjs +125 -0
- package/fesm2022/aril-ui-calendar.mjs.map +1 -0
- package/fesm2022/aril-ui-checkbox.mjs +47 -0
- package/fesm2022/aril-ui-checkbox.mjs.map +1 -0
- package/fesm2022/aril-ui-dxField.mjs +25 -0
- package/fesm2022/aril-ui-dxField.mjs.map +1 -0
- package/fesm2022/aril-ui-field.mjs +46 -0
- package/fesm2022/aril-ui-field.mjs.map +1 -0
- package/fesm2022/aril-ui-fileUpload.mjs +68 -0
- package/fesm2022/aril-ui-fileUpload.mjs.map +1 -0
- package/fesm2022/aril-ui-form.mjs +86 -0
- package/fesm2022/aril-ui-form.mjs.map +1 -0
- package/fesm2022/aril-ui-lib.mjs +322 -0
- package/fesm2022/aril-ui-lib.mjs.map +1 -0
- package/fesm2022/aril-ui-mask.mjs +42 -0
- package/fesm2022/aril-ui-mask.mjs.map +1 -0
- package/fesm2022/aril-ui-number.mjs +43 -0
- package/fesm2022/aril-ui-number.mjs.map +1 -0
- package/fesm2022/aril-ui-overlayPanel.mjs +27 -0
- package/fesm2022/aril-ui-overlayPanel.mjs.map +1 -0
- package/fesm2022/aril-ui-panel.mjs +31 -0
- package/fesm2022/aril-ui-panel.mjs.map +1 -0
- package/fesm2022/aril-ui-password.mjs +36 -0
- package/fesm2022/aril-ui-password.mjs.map +1 -0
- package/fesm2022/aril-ui-radioButton.mjs +37 -0
- package/fesm2022/aril-ui-radioButton.mjs.map +1 -0
- package/fesm2022/aril-ui-selectBox.mjs +61 -0
- package/fesm2022/aril-ui-selectBox.mjs.map +1 -0
- package/fesm2022/aril-ui-switch.mjs +30 -0
- package/fesm2022/aril-ui-switch.mjs.map +1 -0
- package/fesm2022/aril-ui-table.mjs +219 -0
- package/fesm2022/aril-ui-table.mjs.map +1 -0
- package/fesm2022/aril-ui-tagBox.mjs +57 -0
- package/fesm2022/aril-ui-tagBox.mjs.map +1 -0
- package/fesm2022/aril-ui-text.mjs +47 -0
- package/fesm2022/aril-ui-text.mjs.map +1 -0
- package/fesm2022/aril-ui-textArea.mjs +33 -0
- package/fesm2022/aril-ui-textArea.mjs.map +1 -0
- package/fesm2022/aril-ui-toggle-button.mjs +32 -0
- package/fesm2022/aril-ui-toggle-button.mjs.map +1 -0
- package/fesm2022/aril-ui-tree.mjs +41 -0
- package/fesm2022/aril-ui-tree.mjs.map +1 -0
- package/fesm2022/aril-ui-treeTable.mjs +62 -0
- package/fesm2022/aril-ui-treeTable.mjs.map +1 -0
- package/fesm2022/aril-ui-value.mjs +42 -0
- package/fesm2022/aril-ui-value.mjs.map +1 -0
- package/fesm2022/aril-ui.mjs +8 -0
- package/fesm2022/aril-ui.mjs.map +1 -0
- package/fesm2022/aril-util-block.mjs +71 -0
- package/fesm2022/aril-util-block.mjs.map +1 -0
- package/fesm2022/aril-util-custom_pages.mjs +72 -0
- package/fesm2022/aril-util-custom_pages.mjs.map +1 -0
- package/fesm2022/aril-util-init-event.mjs +29 -0
- package/fesm2022/aril-util-init-event.mjs.map +1 -0
- package/fesm2022/aril-util-lib.mjs +29 -0
- package/fesm2022/aril-util-lib.mjs.map +1 -0
- package/fesm2022/aril-util-loaders.mjs +126 -0
- package/fesm2022/aril-util-loaders.mjs.map +1 -0
- package/fesm2022/aril-util-primitive-extensions.mjs +179 -0
- package/fesm2022/aril-util-primitive-extensions.mjs.map +1 -0
- package/fesm2022/aril-util-pub-sub.mjs +36 -0
- package/fesm2022/aril-util-pub-sub.mjs.map +1 -0
- package/fesm2022/aril-util.mjs +8 -0
- package/fesm2022/aril-util.mjs.map +1 -0
- package/fesm2022/aril.mjs +157 -0
- package/fesm2022/aril.mjs.map +1 -0
- package/http/{index.ts → index.d.ts} +8 -13
- package/http/lib/enums.d.ts +13 -0
- package/http/lib/interfaces.d.ts +21 -0
- package/http/src/httpBackend.d.ts +8 -0
- package/http/src/httpClient.d.ts +8 -0
- package/http/src/interceptor/state-machine.interceptor.d.ts +2 -0
- package/http/src/serviceBase.d.ts +5 -0
- package/http/src/serviceMockBase.d.ts +6 -0
- package/http/src/serviceRequest.d.ts +4 -0
- package/http/src/serviceStateMethods.d.ts +14 -0
- package/i18n/{index.ts → index.d.ts} +5 -5
- package/i18n/src/folder-name-token.d.ts +2 -0
- package/i18n/src/i18n.module.d.ts +7 -0
- package/i18n/src/loader.d.ts +9 -0
- package/i18n/src/provideI18n.d.ts +2 -0
- package/i18n/src/provideScope.d.ts +5 -0
- package/index.d.ts +5 -0
- package/keycloak/{index.ts → index.d.ts} +3 -3
- package/keycloak/src/auth.guard.d.ts +11 -0
- package/keycloak/src/auth.interceptor.d.ts +2 -0
- package/keycloak/src/keycloak.manager.d.ts +25 -0
- package/package.json +314 -31
- package/{public-api.ts → public-api.d.ts} +2 -2
- package/theme/index.d.ts +1 -0
- package/theme/layout/app/breadcrumb/app.breadcrumb.component.d.ts +16 -0
- package/theme/layout/app/config/app.config.component.d.ts +36 -0
- package/theme/layout/app/layout/app.layout.component.d.ts +48 -0
- package/theme/layout/app/layout/mfe.layout.component.d.ts +8 -0
- package/theme/layout/app/menu/app.menu.component.d.ts +50 -0
- package/theme/layout/app/profileSidebar/app.profilesidebar.component.d.ts +13 -0
- package/theme/layout/app/sidebar/app.sidebar.component.d.ts +15 -0
- package/theme/layout/app/topbar/app.topbar.component.d.ts +16 -0
- package/theme/layout/index.d.ts +3 -0
- package/theme/layout/service/app.layout.service.d.ts +51 -0
- package/theme/layout/service/app.menu.service.d.ts +23 -0
- package/theme/layout/service/menuchangeevent.d.ts +4 -0
- package/ui/autoComplete/{index.ts → index.d.ts} +1 -1
- package/ui/autoComplete/src/auto-complete.component.d.ts +24 -0
- package/ui/autoComplete/src/interfaces.d.ts +24 -0
- package/ui/badge/{index.ts → index.d.ts} +1 -1
- package/ui/badge/src/badge.component.d.ts +11 -0
- package/ui/button/{index.ts → index.d.ts} +2 -2
- package/ui/button/src/button.component.d.ts +24 -0
- package/ui/button/src/split-button.component.d.ts +8 -0
- package/ui/calendar/{index.ts → index.d.ts} +1 -1
- package/ui/calendar/src/calendar.component.d.ts +38 -0
- package/ui/checkbox/{index.ts → index.d.ts} +2 -2
- package/ui/checkbox/src/check-box.component.d.ts +9 -0
- package/ui/checkbox/src/tri-state-checkbox.component.d.ts +9 -0
- package/ui/dxField/{index.ts → index.d.ts} +1 -1
- package/ui/dxField/src/dx-field.component.d.ts +9 -0
- package/ui/field/{index.ts → index.d.ts} +1 -1
- package/ui/field/src/field.component.d.ts +25 -0
- package/ui/fileUpload/{index.ts → index.d.ts} +1 -1
- package/ui/fileUpload/src/file-upload.component.d.ts +47 -0
- package/ui/form/index.d.ts +11 -0
- package/ui/form/src/form-submit-button.component.d.ts +14 -0
- package/ui/form/src/form.component.d.ts +8 -0
- package/ui/index.d.ts +1 -0
- package/ui/lib/{index.ts → index.d.ts} +11 -16
- package/ui/lib/src/form/form-error-message.component.d.ts +9 -0
- package/ui/lib/src/form/form-error-message.directive.d.ts +14 -0
- package/ui/lib/src/form/form-field-builder.d.ts +8 -0
- package/ui/lib/src/form/form-validation.d.ts +2 -0
- package/ui/lib/src/grid/flex-grid.directive.d.ts +6 -0
- package/ui/lib/src/input/baseInput.d.ts +7 -0
- package/ui/lib/src/input/common-input-validators.service.d.ts +20 -0
- package/ui/lib/src/input/dx-input-error-message.pipe.d.ts +11 -0
- package/ui/lib/src/input/input-disabled.directive.d.ts +9 -0
- package/ui/lib/src/input/input-error-message.pipe.d.ts +7 -0
- package/ui/lib/src/input/input-transforms.d.ts +5 -0
- package/ui/lib/src/input/value-accessor.directive.d.ts +9 -0
- package/ui/mask/{index.ts → index.d.ts} +1 -1
- package/ui/mask/src/mask.component.d.ts +21 -0
- package/ui/number/{index.ts → index.d.ts} +1 -1
- package/ui/number/src/number.component.d.ts +27 -0
- package/ui/overlayPanel/{index.ts → index.d.ts} +1 -1
- package/ui/overlayPanel/src/overlay-panel.component.d.ts +8 -0
- package/ui/panel/{index.ts → index.d.ts} +1 -1
- package/ui/panel/src/panel.component.d.ts +10 -0
- package/ui/password/{index.ts → index.d.ts} +1 -1
- package/ui/password/src/password.component.d.ts +11 -0
- package/ui/radioButton/{index.ts → index.d.ts} +1 -1
- package/ui/radioButton/src/radio-button.component.d.ts +20 -0
- package/ui/selectBox/{index.ts → index.d.ts} +1 -1
- package/ui/selectBox/src/interfaces.d.ts +32 -0
- package/ui/selectBox/src/select-box.component.d.ts +25 -0
- package/ui/switch/{index.ts → index.d.ts} +1 -1
- package/ui/switch/src/switch.component.d.ts +8 -0
- package/ui/table/index.d.ts +16 -0
- package/ui/table/src/i18n.d.ts +42 -0
- package/ui/table/src/table-column.component.d.ts +24 -0
- package/ui/table/src/table.component.d.ts +41 -0
- package/ui/tagBox/{index.ts → index.d.ts} +1 -1
- package/ui/tagBox/src/tag-box.component.d.ts +15 -0
- package/ui/text/{index.ts → index.d.ts} +1 -1
- package/ui/text/src/text.component.d.ts +17 -0
- package/ui/textArea/{index.ts → index.d.ts} +1 -1
- package/ui/textArea/src/text-area.component.d.ts +11 -0
- package/ui/toggle-button/index.d.ts +1 -0
- package/ui/toggle-button/src/toggle-button.component.d.ts +10 -0
- package/ui/tree/{index.ts → index.d.ts} +1 -1
- package/ui/tree/src/tree.component.d.ts +19 -0
- package/ui/treeTable/{index.ts → index.d.ts} +1 -1
- package/ui/treeTable/src/tree-table.component.d.ts +21 -0
- package/ui/value/{index.ts → index.d.ts} +1 -1
- package/ui/value/src/value.component.d.ts +13 -0
- package/util/block/{index.ts → index.d.ts} +1 -1
- package/util/block/src/block.d.ts +28 -0
- package/util/custom_pages/{index.ts → index.d.ts} +1 -1
- package/util/custom_pages/src/notFound.component.d.ts +5 -0
- package/util/index.d.ts +1 -0
- package/util/init-event/{index.ts → index.d.ts} +1 -1
- package/util/init-event/src/init-event.directive.d.ts +8 -0
- package/util/lib/{index.ts → index.d.ts} +3 -3
- package/util/lib/src/interfaces.d.ts +41 -0
- package/util/lib/src/module-router.d.ts +5 -0
- package/util/lib/src/types.d.ts +29 -0
- package/util/loaders/{index.ts → index.d.ts} +2 -2
- package/util/loaders/script/script.loader.service.d.ts +13 -0
- package/util/loaders/style/style.loader.service.d.ts +13 -0
- package/util/primitive-extensions/{index.ts → index.d.ts} +4 -4
- package/util/primitive-extensions/src/{boolean.extensions.ts → boolean.extensions.d.ts} +1 -1
- package/util/primitive-extensions/src/date.extensions.d.ts +8 -0
- package/util/primitive-extensions/src/number.extensions.d.ts +12 -0
- package/util/primitive-extensions/src/string.extensions.d.ts +11 -0
- package/util/pub-sub/{index.ts → index.d.ts} +1 -1
- package/util/pub-sub/src/pub-sub.service.d.ts +20 -0
- package/.eslintrc.json +0 -41
- package/boot/config/api/ng-package.json +0 -6
- package/boot/config/api/src/api.service.ts +0 -57
- package/boot/config/api/src/interfaces.ts +0 -13
- package/boot/config/apps/ng-package.json +0 -6
- package/boot/config/apps/src/apps.service.ts +0 -64
- package/boot/config/apps/src/interfaces.ts +0 -27
- package/boot/config/apps/src/showdowDOMWrapper.ts +0 -28
- package/boot/config/plugins/ng-package.json +0 -6
- package/boot/config/plugins/src/getNgZone.ts +0 -9
- package/boot/config/plugins/src/interfaces.ts +0 -11
- package/boot/config/plugins/src/plugins.service.ts +0 -81
- package/boot/host/ng-package.json +0 -6
- package/boot/host/src/app.component.ts +0 -27
- package/boot/host/src/bootstrap.ts +0 -61
- package/boot/index.ts +0 -1
- package/boot/mfe/ng-package.json +0 -6
- package/boot/mfe/src/app.component.ts +0 -57
- package/boot/mfe/src/appComponentLoader.ts +0 -4
- package/boot/mfe/src/bootstrap.ts +0 -78
- package/boot/mfe/src/loadStyles.ts +0 -19
- package/boot/ng-package.json +0 -6
- package/http/lib/enums.ts +0 -13
- package/http/lib/interfaces.ts +0 -38
- package/http/ng-package.json +0 -6
- package/http/src/httpBackend.ts +0 -12
- package/http/src/httpClient.ts +0 -20
- package/http/src/interceptor/state-machine.interceptor.ts +0 -9
- package/http/src/serviceBase.ts +0 -91
- package/http/src/serviceMockBase.ts +0 -12
- package/http/src/serviceRequest.ts +0 -26
- package/http/src/serviceStateMethods.ts +0 -155
- package/i18n/ng-package.json +0 -6
- package/i18n/src/folder-name-token.ts +0 -3
- package/i18n/src/i18n.module.ts +0 -11
- package/i18n/src/loader.ts +0 -16
- package/i18n/src/provideI18n.ts +0 -18
- package/i18n/src/provideScope.ts +0 -20
- package/keycloak/ng-package.json +0 -6
- package/keycloak/src/auth.guard.ts +0 -37
- package/keycloak/src/auth.interceptor.ts +0 -13
- package/keycloak/src/keycloak.manager.ts +0 -89
- package/ng-package.json +0 -14
- package/project.json +0 -39
- package/tsconfig.lib.json +0 -12
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -9
- package/ui/autoComplete/ng-package.json +0 -6
- package/ui/autoComplete/src/auto-complete.component.html +0 -11
- package/ui/autoComplete/src/auto-complete.component.ts +0 -92
- package/ui/autoComplete/src/interfaces.ts +0 -30
- package/ui/badge/ng-package.json +0 -6
- package/ui/badge/src/badge.component.html +0 -3
- package/ui/badge/src/badge.component.ts +0 -19
- package/ui/button/ng-package.json +0 -6
- package/ui/button/src/button.component.html +0 -10
- package/ui/button/src/button.component.ts +0 -43
- package/ui/button/src/split-button.component.html +0 -2
- package/ui/button/src/split-button.component.ts +0 -17
- package/ui/calendar/ng-package.json +0 -6
- package/ui/calendar/src/calendar.component.html +0 -31
- package/ui/calendar/src/calendar.component.ts +0 -136
- package/ui/checkbox/ng-package.json +0 -6
- package/ui/checkbox/src/check-box.component.html +0 -9
- package/ui/checkbox/src/check-box.component.ts +0 -19
- package/ui/checkbox/src/tri-state-checkbox.component.html +0 -7
- package/ui/checkbox/src/tri-state-checkbox.component.ts +0 -20
- package/ui/dxField/ng-package.json +0 -6
- package/ui/dxField/src/dx-field.component.html +0 -8
- package/ui/dxField/src/dx-field.component.ts +0 -16
- package/ui/field/ng-package.json +0 -6
- package/ui/field/src/field.component.html +0 -22
- package/ui/field/src/field.component.ts +0 -46
- package/ui/fileUpload/ng-package.json +0 -6
- package/ui/fileUpload/src/file-upload.component.html +0 -38
- package/ui/fileUpload/src/file-upload.component.ts +0 -72
- package/ui/form/index.ts +0 -18
- package/ui/form/ng-package.json +0 -6
- package/ui/form/src/form-submit-button.component.html +0 -12
- package/ui/form/src/form-submit-button.component.ts +0 -36
- package/ui/form/src/form.component.ts +0 -20
- package/ui/index.ts +0 -1
- package/ui/lib/ng-package.json +0 -6
- package/ui/lib/src/form/form-error-message.component.ts +0 -25
- package/ui/lib/src/form/form-error-message.directive.ts +0 -32
- package/ui/lib/src/form/form-field-builder.ts +0 -31
- package/ui/lib/src/form/form-validation.ts +0 -14
- package/ui/lib/src/grid/flex-grid.directive.ts +0 -10
- package/ui/lib/src/input/baseInput.ts +0 -30
- package/ui/lib/src/input/common-input-validators.service.ts +0 -57
- package/ui/lib/src/input/dx-input-error-message.pipe.ts +0 -16
- package/ui/lib/src/input/input-disabled.directive.ts +0 -15
- package/ui/lib/src/input/input-error-message.pipe.ts +0 -39
- package/ui/lib/src/input/input-transforms.ts +0 -11
- package/ui/lib/src/input/value-accessor.directive.ts +0 -27
- package/ui/mask/ng-package.json +0 -6
- package/ui/mask/src/mask.component.css +0 -23
- package/ui/mask/src/mask.component.html +0 -17
- package/ui/mask/src/mask.component.ts +0 -34
- package/ui/ng-package.json +0 -6
- package/ui/number/ng-package.json +0 -6
- package/ui/number/src/number.component.html +0 -25
- package/ui/number/src/number.component.ts +0 -34
- package/ui/overlayPanel/ng-package.json +0 -6
- package/ui/overlayPanel/src/overlay-panel.component.html +0 -5
- package/ui/overlayPanel/src/overlay-panel.component.ts +0 -16
- package/ui/panel/ng-package.json +0 -6
- package/ui/panel/src/panel.component.css +0 -25
- package/ui/panel/src/panel.component.html +0 -38
- package/ui/panel/src/panel.component.ts +0 -24
- package/ui/password/ng-package.json +0 -6
- package/ui/password/src/password.component.html +0 -24
- package/ui/password/src/password.component.ts +0 -22
- package/ui/radioButton/ng-package.json +0 -6
- package/ui/radioButton/src/radio-button.component.html +0 -17
- package/ui/radioButton/src/radio-button.component.ts +0 -36
- package/ui/selectBox/ng-package.json +0 -6
- package/ui/selectBox/src/interfaces.ts +0 -41
- package/ui/selectBox/src/select-box.component.html +0 -17
- package/ui/selectBox/src/select-box.component.ts +0 -69
- package/ui/switch/ng-package.json +0 -6
- package/ui/switch/src/switch.component.html +0 -7
- package/ui/switch/src/switch.component.ts +0 -18
- package/ui/table/index.ts +0 -34
- package/ui/table/ng-package.json +0 -6
- package/ui/table/src/i18n.ts +0 -55
- package/ui/table/src/table-column.component.ts +0 -28
- package/ui/table/src/table.component.html +0 -136
- package/ui/table/src/table.component.ts +0 -99
- package/ui/tagBox/ng-package.json +0 -6
- package/ui/tagBox/src/tag-box.component.html +0 -21
- package/ui/tagBox/src/tag-box.component.ts +0 -53
- package/ui/text/ng-package.json +0 -6
- package/ui/text/src/text.component.html +0 -21
- package/ui/text/src/text.component.ts +0 -47
- package/ui/textArea/ng-package.json +0 -6
- package/ui/textArea/src/text-area.component.html +0 -11
- package/ui/textArea/src/text-area.component.ts +0 -21
- package/ui/toggle-button/index.ts +0 -1
- package/ui/toggle-button/ng-package.json +0 -6
- package/ui/toggle-button/src/toggle-button.component.html +0 -13
- package/ui/toggle-button/src/toggle-button.component.scss +0 -19
- package/ui/toggle-button/src/toggle-button.component.ts +0 -22
- package/ui/tree/ng-package.json +0 -6
- package/ui/tree/src/tree.component.html +0 -16
- package/ui/tree/src/tree.component.ts +0 -52
- package/ui/treeTable/ng-package.json +0 -6
- package/ui/treeTable/src/tree-table.component.html +0 -88
- package/ui/treeTable/src/tree-table.component.ts +0 -57
- package/ui/value/ng-package.json +0 -6
- package/ui/value/src/value.component.html +0 -19
- package/ui/value/src/value.component.ts +0 -39
- package/util/block/ng-package.json +0 -6
- package/util/block/src/block.ts +0 -65
- package/util/custom_pages/ng-package.json +0 -6
- package/util/custom_pages/src/notFound.component.ts +0 -34
- package/util/index.ts +0 -1
- package/util/init-event/ng-package.json +0 -6
- package/util/init-event/src/init-event.directive.ts +0 -13
- package/util/lib/ng-package.json +0 -6
- package/util/lib/src/interfaces.ts +0 -44
- package/util/lib/src/module-router.ts +0 -10
- package/util/lib/src/types.ts +0 -49
- package/util/loaders/ng-package.json +0 -6
- package/util/loaders/script/script.loader.service.ts +0 -69
- package/util/loaders/style/style.loader.service.ts +0 -69
- package/util/ng-package.json +0 -6
- package/util/primitive-extensions/ng-package.json +0 -6
- package/util/primitive-extensions/src/date.extensions.ts +0 -135
- package/util/primitive-extensions/src/number.extensions.ts +0 -57
- package/util/primitive-extensions/src/string.extensions.ts +0 -39
- package/util/pub-sub/ng-package.json +0 -6
- package/util/pub-sub/src/pub-sub.service.ts +0 -34
- /package/boot/config/{api/src/api.sample.json → api.sample.json} +0 -0
- /package/{util/block/src → scripts/util}/blockui.min.js +0 -0
- /package/{ui/styles → styles/ui}/ui.common.scss +0 -0
- /package/{util/block/src → styles/util}/blockui.css +0 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { input, Component } from '@angular/core';
|
|
3
|
+
import * as i2 from '@angular/forms';
|
|
4
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
|
5
|
+
import * as i3 from 'devextreme-angular/ui/tag-box';
|
|
6
|
+
import { DxTagBoxModule } from 'devextreme-angular/ui/tag-box';
|
|
7
|
+
import * as i1 from 'aril/ui/lib';
|
|
8
|
+
import { BaseInputComponent, InputErrorMessagePipe, DXInputErrorMessagePipe, ValueAccessorDirective } from 'aril/ui/lib';
|
|
9
|
+
|
|
10
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
11
|
+
class TagBoxComponent extends BaseInputComponent {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments);
|
|
14
|
+
this.placeholder = input('');
|
|
15
|
+
this.valueExpr = input.required();
|
|
16
|
+
this.displayExpr = input.required();
|
|
17
|
+
this.maxDisplayedTags = input(5);
|
|
18
|
+
this.tabindex = input(0);
|
|
19
|
+
this.acceptCustomValue = input(true);
|
|
20
|
+
this.items = input.required();
|
|
21
|
+
}
|
|
22
|
+
onCustomItemCreating(e) {
|
|
23
|
+
let newValues = [];
|
|
24
|
+
const items = e.component.option('items');
|
|
25
|
+
const selectedItems = e.component.option('selectedItems');
|
|
26
|
+
if (e.text.indexOf(',') != -1)
|
|
27
|
+
newValues = e.text.replace(/ /g, '').split(',');
|
|
28
|
+
else if (e.text.indexOf('|') != -1)
|
|
29
|
+
newValues = e.text.replace(/ /g, '').split('|');
|
|
30
|
+
else if (e.text.indexOf(' ') != -1)
|
|
31
|
+
newValues = e.text.split(' ');
|
|
32
|
+
else
|
|
33
|
+
newValues.push(e.text);
|
|
34
|
+
newValues.forEach((value) => {
|
|
35
|
+
if (selectedItems.indexOf(value) == -1) {
|
|
36
|
+
selectedItems.push(value);
|
|
37
|
+
items.unshift(value);
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
e.component.option('items', items);
|
|
41
|
+
e.component.option('value', selectedItems);
|
|
42
|
+
e.text = '';
|
|
43
|
+
}
|
|
44
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TagBoxComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
45
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.1.2", type: TagBoxComponent, isStandalone: true, selector: "aril-tag-box", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, valueExpr: { classPropertyName: "valueExpr", publicName: "valueExpr", isSignal: true, isRequired: true, transformFunction: null }, displayExpr: { classPropertyName: "displayExpr", publicName: "displayExpr", isSignal: true, isRequired: true, transformFunction: null }, maxDisplayedTags: { classPropertyName: "maxDisplayedTags", publicName: "maxDisplayedTags", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, acceptCustomValue: { classPropertyName: "acceptCustomValue", publicName: "acceptCustomValue", isSignal: true, isRequired: false, transformFunction: null }, items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: true, transformFunction: null } }, providers: [InputErrorMessagePipe], usesInheritance: true, hostDirectives: [{ directive: i1.ValueAccessorDirective }], ngImport: i0, template: "<dx-tag-box\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(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</dx-tag-box>\r\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { 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: DxTagBoxModule }, { kind: "component", type: i3.DxTagBoxComponent, selector: "dx-tag-box", inputs: ["acceptCustomValue", "accessKey", "activeStateEnabled", "applyValueMode", "buttons", "customItemCreateEvent", "dataSource", "deferRendering", "disabled", "displayExpr", "dropDownButtonTemplate", "dropDownOptions", "elementAttr", "fieldTemplate", "focusStateEnabled", "grouped", "groupTemplate", "height", "hideSelectedItems", "hint", "hoverStateEnabled", "inputAttr", "isDirty", "isValid", "items", "itemTemplate", "label", "labelMode", "maxDisplayedTags", "maxFilterQueryLength", "maxLength", "minSearchLength", "multiline", "name", "noDataText", "opened", "openOnFieldClick", "placeholder", "readOnly", "rtlEnabled", "searchEnabled", "searchExpr", "searchMode", "searchTimeout", "selectAllMode", "selectAllText", "selectedItems", "showClearButton", "showDataBeforeSearch", "showDropDownButton", "showMultiTagOnly", "showSelectionControls", "stylingMode", "tabIndex", "tagTemplate", "text", "useItemTextAsTitle", "validationError", "validationErrors", "validationMessageMode", "validationMessagePosition", "validationStatus", "value", "valueChangeEvent", "valueExpr", "visible", "width", "wrapItemText"], outputs: ["onChange", "onClosed", "onContentReady", "onCustomItemCreating", "onDisposing", "onEnterKey", "onFocusIn", "onFocusOut", "onInitialized", "onInput", "onItemClick", "onKeyDown", "onKeyUp", "onMultiTagPreparing", "onOpened", "onOptionChanged", "onSelectAllValueChanged", "onSelectionChanged", "onValueChanged", "acceptCustomValueChange", "accessKeyChange", "activeStateEnabledChange", "applyValueModeChange", "buttonsChange", "customItemCreateEventChange", "dataSourceChange", "deferRenderingChange", "disabledChange", "displayExprChange", "dropDownButtonTemplateChange", "dropDownOptionsChange", "elementAttrChange", "fieldTemplateChange", "focusStateEnabledChange", "groupedChange", "groupTemplateChange", "heightChange", "hideSelectedItemsChange", "hintChange", "hoverStateEnabledChange", "inputAttrChange", "isDirtyChange", "isValidChange", "itemsChange", "itemTemplateChange", "labelChange", "labelModeChange", "maxDisplayedTagsChange", "maxFilterQueryLengthChange", "maxLengthChange", "minSearchLengthChange", "multilineChange", "nameChange", "noDataTextChange", "openedChange", "openOnFieldClickChange", "placeholderChange", "readOnlyChange", "rtlEnabledChange", "searchEnabledChange", "searchExprChange", "searchModeChange", "searchTimeoutChange", "selectAllModeChange", "selectAllTextChange", "selectedItemsChange", "showClearButtonChange", "showDataBeforeSearchChange", "showDropDownButtonChange", "showMultiTagOnlyChange", "showSelectionControlsChange", "stylingModeChange", "tabIndexChange", "tagTemplateChange", "textChange", "useItemTextAsTitleChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationMessagePositionChange", "validationStatusChange", "valueChange", "valueChangeEventChange", "valueExprChange", "visibleChange", "widthChange", "wrapItemTextChange", "onBlur"] }, { kind: "pipe", type: DXInputErrorMessagePipe, name: "dxInputErrorMessage" }] }); }
|
|
46
|
+
}
|
|
47
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TagBoxComponent, decorators: [{
|
|
48
|
+
type: Component,
|
|
49
|
+
args: [{ standalone: true, selector: 'aril-tag-box', imports: [ReactiveFormsModule, DxTagBoxModule, DXInputErrorMessagePipe], providers: [InputErrorMessagePipe], hostDirectives: [ValueAccessorDirective], template: "<dx-tag-box\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(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</dx-tag-box>\r\n" }]
|
|
50
|
+
}] });
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Generated bundle index. Do not edit.
|
|
54
|
+
*/
|
|
55
|
+
|
|
56
|
+
export { TagBoxComponent };
|
|
57
|
+
//# sourceMappingURL=aril-ui-tagBox.mjs.map
|
|
@@ -0,0 +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 */\r\nimport { Component, 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],\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\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[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(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</dx-tag-box>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAAA;AAqBM,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;AAwBjD,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,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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,CAAC,aAC5D,CAAC,qBAAqB,CAAC,EAClB,cAAA,EAAA,CAAC,sBAAsB,CAAC,EAAA,QAAA,EAAA,k8BAAA,EAAA,CAAA;;;AEnBzC;;AAEG;;;;"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { NgTemplateOutlet } from '@angular/common';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { input, computed, Component } from '@angular/core';
|
|
4
|
+
import * as i2 from '@angular/forms';
|
|
5
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
|
6
|
+
import * as i3 from 'primeng/inputtext';
|
|
7
|
+
import { InputTextModule } from 'primeng/inputtext';
|
|
8
|
+
import * as i4 from 'primeng/tooltip';
|
|
9
|
+
import { TooltipModule } from 'primeng/tooltip';
|
|
10
|
+
import * as i1 from 'aril/ui/lib';
|
|
11
|
+
import { BaseInputComponent, iconTransform, iconPosTransform, InputErrorMessagePipe, ValueAccessorDirective } from 'aril/ui/lib';
|
|
12
|
+
|
|
13
|
+
class TextComponent extends BaseInputComponent {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments);
|
|
16
|
+
this.placeholder = input('');
|
|
17
|
+
this.tabindex = input();
|
|
18
|
+
this.icon = input();
|
|
19
|
+
this.iconPos = input('left');
|
|
20
|
+
this.size = input('sm');
|
|
21
|
+
this._icon = computed(() => iconTransform(this.icon()));
|
|
22
|
+
this._iconPosClass = computed(() => iconPosTransform(this.iconPos()));
|
|
23
|
+
this._sizeClass = computed(() => {
|
|
24
|
+
switch (this.size()) {
|
|
25
|
+
case 'sm':
|
|
26
|
+
return 'p-inputtext-sm';
|
|
27
|
+
case 'md':
|
|
28
|
+
return '';
|
|
29
|
+
case 'lg':
|
|
30
|
+
return 'p-inputtext-lg';
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TextComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
35
|
+
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(ngModelChange)=\"ngControl.viewToModelUpdate($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"] }] }); }
|
|
36
|
+
}
|
|
37
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TextComponent, decorators: [{
|
|
38
|
+
type: Component,
|
|
39
|
+
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(ngModelChange)=\"ngControl.viewToModelUpdate($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" }]
|
|
40
|
+
}] });
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Generated bundle index. Do not edit.
|
|
44
|
+
*/
|
|
45
|
+
|
|
46
|
+
export { TextComponent };
|
|
47
|
+
//# sourceMappingURL=aril-ui-text.mjs.map
|
|
@@ -0,0 +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';\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>('sm');\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","<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(ngModelChange)=\"ngControl.viewToModelUpdate($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,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
|
|
3
|
+
import * as i2 from '@angular/forms';
|
|
4
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
|
5
|
+
import * as i3 from 'primeng/inputtextarea';
|
|
6
|
+
import { InputTextareaModule } from 'primeng/inputtextarea';
|
|
7
|
+
import * as i4 from 'primeng/tooltip';
|
|
8
|
+
import { TooltipModule } from 'primeng/tooltip';
|
|
9
|
+
import * as i1 from 'aril/ui/lib';
|
|
10
|
+
import { BaseInputComponent, InputErrorMessagePipe, ValueAccessorDirective } from 'aril/ui/lib';
|
|
11
|
+
|
|
12
|
+
class TextAreaComponent extends BaseInputComponent {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments);
|
|
15
|
+
this.rows = input();
|
|
16
|
+
this.cols = input();
|
|
17
|
+
this.tabindex = input();
|
|
18
|
+
this.placeholder = input('');
|
|
19
|
+
}
|
|
20
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TextAreaComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
21
|
+
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 }, 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[rows]=\"rows()\"\r\n\t[cols]=\"cols()\"\r\n\t[autoResize]=\"true\"\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" }] }); }
|
|
22
|
+
}
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TextAreaComponent, decorators: [{
|
|
24
|
+
type: Component,
|
|
25
|
+
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[rows]=\"rows()\"\r\n\t[cols]=\"cols()\"\r\n\t[autoResize]=\"true\"\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" }]
|
|
26
|
+
}] });
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Generated bundle index. Do not edit.
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
export { TextAreaComponent };
|
|
33
|
+
//# sourceMappingURL=aril-ui-textArea.mjs.map
|
|
@@ -0,0 +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';\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\ttabindex = input<number>();\r\n\tplaceholder = input<string>('');\r\n}\r\n","<textarea\r\n\tpInputTextarea\r\n\t[rows]=\"rows()\"\r\n\t[cols]=\"cols()\"\r\n\t[autoResize]=\"true\"\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;QACvB,IAAQ,CAAA,QAAA,GAAG,KAAK,EAAU,CAAC;AAC3B,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAS,EAAE,CAAC,CAAC;AAChC,KAAA;8GALY,iBAAiB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAAjB,iBAAiB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,uFAAA,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,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,EAAA,UAAA,EAAA,UAAA,EAAA,UAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,WAA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AAA,EAAA,CAAC,mBAAmB,EAAE,mBAAmB,EAAE,aAAa,EAAE,qBAAqB,CAAC,EACzE,cAAA,EAAA,CAAC,sBAAsB,CAAC,EAAA,QAAA,EAAA,ibAAA,EAAA,CAAA;;;AEbzC;;AAEG;;;;"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { NgClass, NgStyle } from '@angular/common';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { input, EventEmitter, Component, Output } from '@angular/core';
|
|
4
|
+
import * as i1 from 'primeng/button';
|
|
5
|
+
import { ButtonModule } from 'primeng/button';
|
|
6
|
+
|
|
7
|
+
class ToggleButtonComponent {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.buttonLabels = input.required();
|
|
10
|
+
this.selectionChange = new EventEmitter();
|
|
11
|
+
this.selectedIndex = 0;
|
|
12
|
+
}
|
|
13
|
+
toggleButton(index) {
|
|
14
|
+
this.selectedIndex = index;
|
|
15
|
+
this.selectionChange.emit(this.selectedIndex);
|
|
16
|
+
}
|
|
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\">\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
|
+
}
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: ToggleButtonComponent, decorators: [{
|
|
21
|
+
type: Component,
|
|
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
|
+
}], propDecorators: { selectionChange: [{
|
|
24
|
+
type: Output
|
|
25
|
+
}] } });
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Generated bundle index. Do not edit.
|
|
29
|
+
*/
|
|
30
|
+
|
|
31
|
+
export { ToggleButtonComponent };
|
|
32
|
+
//# sourceMappingURL=aril-ui-toggle-button.mjs.map
|
|
@@ -0,0 +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';\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,WAAA,GAAA;AAQG,QAAA,IAAA,CAAA,YAAY,GAAG,KAAK,CAAC,QAAQ,EAAY,CAAC;AACjC,QAAA,IAAA,CAAA,eAAe,GAAyB,IAAI,YAAY,EAAU,CAAC;QAE7E,IAAa,CAAA,aAAA,GAAG,CAAC,CAAC;AAMnB,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AAA;sBAAxB,MAAM;;;AEbT;;AAEG;;;;"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { input, EventEmitter, effect, Component, ChangeDetectionStrategy, Output } from '@angular/core';
|
|
3
|
+
import * as i2 from 'primeng/contextmenu';
|
|
4
|
+
import { ContextMenuModule } from 'primeng/contextmenu';
|
|
5
|
+
import * as i1 from 'primeng/tree';
|
|
6
|
+
import { TreeModule } from 'primeng/tree';
|
|
7
|
+
import { ButtonComponent } from 'aril/ui/button';
|
|
8
|
+
|
|
9
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
10
|
+
class TreeComponent {
|
|
11
|
+
constructor() {
|
|
12
|
+
this.data = input.required();
|
|
13
|
+
this.contextMenu = input();
|
|
14
|
+
this.filterPlaceholder = input('Arama');
|
|
15
|
+
this.filter = input(true);
|
|
16
|
+
this.selectionMode = input();
|
|
17
|
+
this.selectedNode = input(null);
|
|
18
|
+
this.expandEvent = new EventEmitter();
|
|
19
|
+
this.selectionEvent = new EventEmitter();
|
|
20
|
+
effect(() => {
|
|
21
|
+
this.selectionNodes = this.selectedNode();
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TreeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
25
|
+
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 } }, 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]=\"contextMenuRef\"\r\n\t[filter]=\"filter()\"\r\n\tfilterMode=\"lenient\"\r\n\tfilterBy=\"label\"\r\n\t[filterPlaceholder]=\"filterPlaceholder()\"\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", 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 }); }
|
|
26
|
+
}
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TreeComponent, decorators: [{
|
|
28
|
+
type: Component,
|
|
29
|
+
args: [{ standalone: true, selector: 'aril-tree', imports: [TreeModule, ContextMenuModule, ButtonComponent], 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]=\"contextMenuRef\"\r\n\t[filter]=\"filter()\"\r\n\tfilterMode=\"lenient\"\r\n\tfilterBy=\"label\"\r\n\t[filterPlaceholder]=\"filterPlaceholder()\"\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" }]
|
|
30
|
+
}], ctorParameters: () => [], propDecorators: { expandEvent: [{
|
|
31
|
+
type: Output
|
|
32
|
+
}], selectionEvent: [{
|
|
33
|
+
type: Output
|
|
34
|
+
}] } });
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Generated bundle index. Do not edit.
|
|
38
|
+
*/
|
|
39
|
+
|
|
40
|
+
export { TreeComponent };
|
|
41
|
+
//# sourceMappingURL=aril-ui-tree.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aril-ui-tree.mjs","sources":["../../projects/aril/ui/tree/src/tree.component.ts","../../projects/aril/ui/tree/src/tree.component.html","../../projects/aril/ui/tree/aril-ui-tree.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\r\nimport { ChangeDetectionStrategy, Component, EventEmitter, Output, effect, input } from '@angular/core';\r\n\r\nimport { MenuItem, TreeNode } from 'primeng/api';\r\nimport { ContextMenuModule } from 'primeng/contextmenu';\r\nimport { TreeModule } from 'primeng/tree';\r\n\r\nimport { ButtonComponent } from 'aril/ui/button';\r\n\r\ntype SelectionModes = 'multiple' | 'checkbox' | 'single';\r\n\r\n@Component({\r\n\tstandalone: true,\r\n\tselector: 'aril-tree',\r\n\ttemplateUrl: './tree.component.html',\r\n\timports: [TreeModule, ContextMenuModule, ButtonComponent],\r\n\tchangeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class TreeComponent {\r\n\tconstructor() {\r\n\t\teffect(() => {\r\n\t\t\tthis.selectionNodes = this.selectedNode();\r\n\t\t});\r\n\t}\r\n\r\n\tdata = input.required<TreeNode[]>();\r\n\tcontextMenu = input<MenuItem[]>();\r\n\tfilterPlaceholder = input<string>('Arama');\r\n\tfilter = input<boolean>(true);\r\n\tselectionMode = input<SelectionModes>();\r\n\tselectedNode = input<TreeNode | TreeNode[] | null>(null);\r\n\r\n\t@Output() expandEvent: EventEmitter<unknown> = new EventEmitter();\r\n\t@Output() selectionEvent: EventEmitter<any> = new EventEmitter<any>();\r\n\r\n\tselectionNodes!: TreeNode | TreeNode[] | null;\r\n\r\n\t// isExpended = false;\r\n\t// toggleTree() {\r\n\t// \tthis.isExpended = !this.isExpended;\r\n\t// \tthis.expandRecursive(this.data());\r\n\t// }\r\n\r\n\t// expandRecursive(node: TreeNode[]) {\r\n\t// \tnode.forEach((node) => {\r\n\t// \t\tif (node.children) {\r\n\t// \t\t\tnode.expanded = this.isExpended;\r\n\t// \t\t\tthis.expandRecursive(node.children);\r\n\t// \t\t}\r\n\t// \t});\r\n\t// }\r\n}\r\n","<!-- <div class=\"mb-3\">\r\n\t<aril-button [label]=\"isExpended ? 'Daralt' : 'Genişlet'\" 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]=\"contextMenuRef\"\r\n\t[filter]=\"filter()\"\r\n\tfilterMode=\"lenient\"\r\n\tfilterBy=\"label\"\r\n\t[filterPlaceholder]=\"filterPlaceholder()\"\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","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAAA;MAkBa,aAAa,CAAA;AACzB,IAAA,WAAA,GAAA;AAMA,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAC,QAAQ,EAAc,CAAC;QACpC,IAAW,CAAA,WAAA,GAAG,KAAK,EAAc,CAAC;AAClC,QAAA,IAAA,CAAA,iBAAiB,GAAG,KAAK,CAAS,OAAO,CAAC,CAAC;AAC3C,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK,CAAU,IAAI,CAAC,CAAC;QAC9B,IAAa,CAAA,aAAA,GAAG,KAAK,EAAkB,CAAC;AACxC,QAAA,IAAA,CAAA,YAAY,GAAG,KAAK,CAA+B,IAAI,CAAC,CAAC;AAE/C,QAAA,IAAA,CAAA,WAAW,GAA0B,IAAI,YAAY,EAAE,CAAC;AACxD,QAAA,IAAA,CAAA,cAAc,GAAsB,IAAI,YAAY,EAAO,C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component, ChangeDetectionStrategy, Output, ContentChildren } from '@angular/core';
|
|
4
|
+
import { FormsModule } from '@angular/forms';
|
|
5
|
+
import * as i1 from 'primeng/treetable';
|
|
6
|
+
import { TreeTableModule } from 'primeng/treetable';
|
|
7
|
+
import * as FileSaver from 'file-saver';
|
|
8
|
+
import { ButtonComponent } from 'aril/ui/button';
|
|
9
|
+
import { TableColumnComponent } from 'aril/ui/table';
|
|
10
|
+
import { TextComponent } from 'aril/ui/text';
|
|
11
|
+
import * as i2 from 'primeng/api';
|
|
12
|
+
|
|
13
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
14
|
+
const pageOptions = [10, 20, 50, 100];
|
|
15
|
+
class TreeTableComponent {
|
|
16
|
+
constructor() {
|
|
17
|
+
this.data = input.required();
|
|
18
|
+
this.checkboxSelection = input();
|
|
19
|
+
this.pageSize = input(10);
|
|
20
|
+
this.scrollable = input(false);
|
|
21
|
+
this.scrollHeight = input();
|
|
22
|
+
this.expandEvent = new EventEmitter();
|
|
23
|
+
this.selectionEvent = new EventEmitter();
|
|
24
|
+
this.pageOptions = pageOptions;
|
|
25
|
+
}
|
|
26
|
+
excelExport() {
|
|
27
|
+
import('xlsx').then((xlsx) => {
|
|
28
|
+
const worksheet = xlsx.utils.json_to_sheet(this.data());
|
|
29
|
+
const workbook = { Sheets: { data: worksheet }, SheetNames: ['data'] };
|
|
30
|
+
const excelBuffer = xlsx.write(workbook, { bookType: 'xlsx', type: 'array' });
|
|
31
|
+
this.saveAsExcelFile(excelBuffer, 'excel_worksheet');
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
saveAsExcelFile(buffer, fileName) {
|
|
35
|
+
const EXCEL_TYPE = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8';
|
|
36
|
+
const EXCEL_EXTENSION = '.xlsx';
|
|
37
|
+
const data = new Blob([buffer], {
|
|
38
|
+
type: EXCEL_TYPE
|
|
39
|
+
});
|
|
40
|
+
FileSaver.saveAs(data, fileName + '_export_' + new Date().getTime() + EXCEL_EXTENSION);
|
|
41
|
+
}
|
|
42
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TreeTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
43
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: TreeTableComponent, isStandalone: true, selector: "aril-tree-table", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, checkboxSelection: { classPropertyName: "checkboxSelection", publicName: "checkboxSelection", isSignal: true, isRequired: false, transformFunction: null }, pageSize: { classPropertyName: "pageSize", publicName: "pageSize", isSignal: true, isRequired: false, transformFunction: null }, scrollable: { classPropertyName: "scrollable", publicName: "scrollable", isSignal: true, isRequired: false, transformFunction: null }, scrollHeight: { classPropertyName: "scrollHeight", publicName: "scrollHeight", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { expandEvent: "expandEvent", selectionEvent: "selectionEvent" }, queries: [{ propertyName: "columns", predicate: TableColumnComponent }], ngImport: i0, template: "<p-treeTable\r\n\t#ref\r\n\t[value]=\"data()\"\r\n\t[columns]=\"columns._results\"\r\n\t[rows]=\"pageSize()\"\r\n\t[rowHover]=\"true\"\r\n\t[paginator]=\"true\"\r\n\t[rowsPerPageOptions]=\"pageOptions\"\r\n\t[filterDelay]=\"0\"\r\n\tsortMode=\"multiple\"\r\n\t[scrollable]=\"scrollable()\"\r\n\t[scrollHeight]=\"scrollHeight()\"\r\n\t[(selection)]=\"selectedNodes\"\r\n\t(onNodeExpand)=\"expandEvent.emit($event.node)\"\r\n\t(selectionChange)=\"selectionEvent.emit(selectedNodes)\"\r\n\t[showCurrentPageReport]=\"true\"\r\n\tcurrentPageReportTemplate=\"Toplam : {totalRecords} kay\u0131t | Sayfa : {currentPage} / {totalPages}\"\r\n\tstyleClass=\"p-treetable-gridlines p-treetable-striped p-treetable-sm\">\r\n\t<ng-template pTemplate=\"caption\">\r\n\t\t<div class=\"flex\">\r\n\t\t\t<aril-button\r\n\t\t\t\tsize=\"sm\"\r\n\t\t\t\ticon=\"FILE_EXCEL\"\r\n\t\t\t\tcolor=\"primary\"\r\n\t\t\t\tpTooltip=\"XLS\"\r\n\t\t\t\ttooltipPosition=\"top\"\r\n\t\t\t\t(clickEvent)=\"excelExport()\">\r\n\t\t\t</aril-button>\r\n\t\t\t<!-- <span class=\"p-input-icon-left ml-auto\">\r\n\t\t\t\t<aril-text\r\n\t\t\t\t\ticon=\"SEARCH\"\r\n\t\t\t\t\ticonPos=\"left\"\r\n\t\t\t\t\tplaceholder=\"Arama\"\r\n\t\t\t\t\t[ngModel]=\"filterText\"\r\n\t\t\t\t\t(ngModelChange)=\"ref.filterGlobal($event, 'contains')\">\r\n\t\t\t\t</aril-text>\r\n\t\t\t</span> -->\r\n\t\t</div>\r\n\t</ng-template>\r\n\t<ng-template pTemplate=\"header\" let-columns>\r\n\t\t<tr>\r\n\t\t\t@if (checkboxSelection()) {\r\n\t\t\t\t<th>\r\n\t\t\t\t\t<p-treeTableHeaderCheckbox></p-treeTableHeaderCheckbox>\r\n\t\t\t\t</th>\r\n\t\t\t}\r\n\t\t\t@for (column of columns; track $index) {\r\n\t\t\t\t@if (column.isOperation) {\r\n\t\t\t\t\t<th>\r\n\t\t\t\t\t\t<div class=\"flex justify-content-center\">Operations</div>\r\n\t\t\t\t\t</th>\r\n\t\t\t\t} @else {\r\n\t\t\t\t\t<th [ttSortableColumn]=\"column.field\">\r\n\t\t\t\t\t\t<div class=\"flex justify-content-between align-items-center\">\r\n\t\t\t\t\t\t\t{{ column.header }}\r\n\t\t\t\t\t\t\t<!-- <p-treeTableSortIcon [field]=\"column.field\"></p-treeTableSortIcon> -->\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</th>\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t</tr>\r\n\t</ng-template>\r\n\t<ng-template pTemplate=\"body\" let-rowNode let-rowData=\"rowData\" let-columns=\"columns\">\r\n\t\t<tr [ttRow]=\"rowNode\">\r\n\t\t\t@if (checkboxSelection()) {\r\n\t\t\t\t<td>\r\n\t\t\t\t\t<p-treeTableCheckbox [value]=\"rowNode\"></p-treeTableCheckbox>\r\n\t\t\t\t</td>\r\n\t\t\t}\r\n\t\t\t@for (column of columns; track $index) {\r\n\t\t\t\t<td>\r\n\t\t\t\t\t@if ($first) {\r\n\t\t\t\t\t\t<p-treeTableToggler [rowNode]=\"rowNode\"></p-treeTableToggler>\r\n\t\t\t\t\t}\r\n\t\t\t\t\t<ng-template ngFor [ngForOf]=\"[rowNode.node]\" [ngForTemplate]=\"column.template\"> </ng-template>\r\n\t\t\t\t</td>\r\n\t\t\t}\r\n\t\t</tr>\r\n\t</ng-template>\r\n\t<ng-template pTemplate=\"summary\">\r\n\t\t<ng-content select=\"[footer]\"></ng-content>\r\n\t</ng-template>\r\n\t<ng-template pTemplate=\"emptymessage\">\r\n\t\t<tr>\r\n\t\t\t<td [attr.colspan]=\"columns._results.length\">No Data Found</td>\r\n\t\t</tr>\r\n\t</ng-template>\r\n</p-treeTable>\r\n", dependencies: [{ kind: "ngmodule", type: TreeTableModule }, { kind: "component", type: i1.TreeTable, selector: "p-treeTable", inputs: ["columns", "style", "styleClass", "tableStyle", "tableStyleClass", "autoLayout", "lazy", "lazyLoadOnInit", "paginator", "rows", "first", "pageLinks", "rowsPerPageOptions", "alwaysShowPaginator", "paginatorPosition", "paginatorStyleClass", "paginatorDropdownAppendTo", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showFirstLastIcon", "showPageLinks", "defaultSortOrder", "sortMode", "resetPageOnSort", "customSort", "selectionMode", "contextMenuSelection", "contextMenuSelectionMode", "dataKey", "metaKeySelection", "compareSelectionBy", "rowHover", "loading", "loadingIcon", "showLoader", "scrollable", "scrollHeight", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "virtualScrollDelay", "frozenWidth", "frozenColumns", "resizableColumns", "columnResizeMode", "reorderableColumns", "contextMenu", "rowTrackBy", "filters", "globalFilterFields", "filterDelay", "filterMode", "filterLocale", "paginatorLocale", "totalRecords", "sortField", "sortOrder", "multiSortMeta", "selection", "value", "virtualRowHeight", "selectionKeys"], outputs: ["selectionChange", "contextMenuSelectionChange", "onFilter", "onNodeExpand", "onNodeCollapse", "onPage", "onSort", "onLazyLoad", "sortFunction", "onColResize", "onColReorder", "onNodeSelect", "onNodeUnselect", "onContextMenuSelect", "onHeaderCheckboxToggle", "onEditInit", "onEditComplete", "onEditCancel", "selectionKeysChange"] }, { kind: "directive", type: i2.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: i1.TreeTableToggler, selector: "p-treeTableToggler", inputs: ["rowNode"] }, { kind: "directive", type: i1.TTSortableColumn, selector: "[ttSortableColumn]", inputs: ["ttSortableColumn", "ttSortableColumnDisabled"] }, { kind: "directive", type: i1.TTRow, selector: "[ttRow]", inputs: ["ttRow"] }, { kind: "component", type: i1.TTCheckbox, selector: "p-treeTableCheckbox", inputs: ["disabled", "value"] }, { kind: "component", type: i1.TTHeaderCheckbox, selector: "p-treeTableHeaderCheckbox" }, { kind: "component", type: ButtonComponent, selector: "aril-button:not([click])", inputs: ["label", "loading", "disabled", "raised", "outlined", "badge", "size", "icon", "color"], outputs: ["clickEvent"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
44
|
+
}
|
|
45
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TreeTableComponent, decorators: [{
|
|
46
|
+
type: Component,
|
|
47
|
+
args: [{ standalone: true, selector: 'aril-tree-table', imports: [TreeTableModule, ButtonComponent, TextComponent, FormsModule, NgFor, NgForOf, NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, template: "<p-treeTable\r\n\t#ref\r\n\t[value]=\"data()\"\r\n\t[columns]=\"columns._results\"\r\n\t[rows]=\"pageSize()\"\r\n\t[rowHover]=\"true\"\r\n\t[paginator]=\"true\"\r\n\t[rowsPerPageOptions]=\"pageOptions\"\r\n\t[filterDelay]=\"0\"\r\n\tsortMode=\"multiple\"\r\n\t[scrollable]=\"scrollable()\"\r\n\t[scrollHeight]=\"scrollHeight()\"\r\n\t[(selection)]=\"selectedNodes\"\r\n\t(onNodeExpand)=\"expandEvent.emit($event.node)\"\r\n\t(selectionChange)=\"selectionEvent.emit(selectedNodes)\"\r\n\t[showCurrentPageReport]=\"true\"\r\n\tcurrentPageReportTemplate=\"Toplam : {totalRecords} kay\u0131t | Sayfa : {currentPage} / {totalPages}\"\r\n\tstyleClass=\"p-treetable-gridlines p-treetable-striped p-treetable-sm\">\r\n\t<ng-template pTemplate=\"caption\">\r\n\t\t<div class=\"flex\">\r\n\t\t\t<aril-button\r\n\t\t\t\tsize=\"sm\"\r\n\t\t\t\ticon=\"FILE_EXCEL\"\r\n\t\t\t\tcolor=\"primary\"\r\n\t\t\t\tpTooltip=\"XLS\"\r\n\t\t\t\ttooltipPosition=\"top\"\r\n\t\t\t\t(clickEvent)=\"excelExport()\">\r\n\t\t\t</aril-button>\r\n\t\t\t<!-- <span class=\"p-input-icon-left ml-auto\">\r\n\t\t\t\t<aril-text\r\n\t\t\t\t\ticon=\"SEARCH\"\r\n\t\t\t\t\ticonPos=\"left\"\r\n\t\t\t\t\tplaceholder=\"Arama\"\r\n\t\t\t\t\t[ngModel]=\"filterText\"\r\n\t\t\t\t\t(ngModelChange)=\"ref.filterGlobal($event, 'contains')\">\r\n\t\t\t\t</aril-text>\r\n\t\t\t</span> -->\r\n\t\t</div>\r\n\t</ng-template>\r\n\t<ng-template pTemplate=\"header\" let-columns>\r\n\t\t<tr>\r\n\t\t\t@if (checkboxSelection()) {\r\n\t\t\t\t<th>\r\n\t\t\t\t\t<p-treeTableHeaderCheckbox></p-treeTableHeaderCheckbox>\r\n\t\t\t\t</th>\r\n\t\t\t}\r\n\t\t\t@for (column of columns; track $index) {\r\n\t\t\t\t@if (column.isOperation) {\r\n\t\t\t\t\t<th>\r\n\t\t\t\t\t\t<div class=\"flex justify-content-center\">Operations</div>\r\n\t\t\t\t\t</th>\r\n\t\t\t\t} @else {\r\n\t\t\t\t\t<th [ttSortableColumn]=\"column.field\">\r\n\t\t\t\t\t\t<div class=\"flex justify-content-between align-items-center\">\r\n\t\t\t\t\t\t\t{{ column.header }}\r\n\t\t\t\t\t\t\t<!-- <p-treeTableSortIcon [field]=\"column.field\"></p-treeTableSortIcon> -->\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</th>\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t</tr>\r\n\t</ng-template>\r\n\t<ng-template pTemplate=\"body\" let-rowNode let-rowData=\"rowData\" let-columns=\"columns\">\r\n\t\t<tr [ttRow]=\"rowNode\">\r\n\t\t\t@if (checkboxSelection()) {\r\n\t\t\t\t<td>\r\n\t\t\t\t\t<p-treeTableCheckbox [value]=\"rowNode\"></p-treeTableCheckbox>\r\n\t\t\t\t</td>\r\n\t\t\t}\r\n\t\t\t@for (column of columns; track $index) {\r\n\t\t\t\t<td>\r\n\t\t\t\t\t@if ($first) {\r\n\t\t\t\t\t\t<p-treeTableToggler [rowNode]=\"rowNode\"></p-treeTableToggler>\r\n\t\t\t\t\t}\r\n\t\t\t\t\t<ng-template ngFor [ngForOf]=\"[rowNode.node]\" [ngForTemplate]=\"column.template\"> </ng-template>\r\n\t\t\t\t</td>\r\n\t\t\t}\r\n\t\t</tr>\r\n\t</ng-template>\r\n\t<ng-template pTemplate=\"summary\">\r\n\t\t<ng-content select=\"[footer]\"></ng-content>\r\n\t</ng-template>\r\n\t<ng-template pTemplate=\"emptymessage\">\r\n\t\t<tr>\r\n\t\t\t<td [attr.colspan]=\"columns._results.length\">No Data Found</td>\r\n\t\t</tr>\r\n\t</ng-template>\r\n</p-treeTable>\r\n" }]
|
|
48
|
+
}], propDecorators: { expandEvent: [{
|
|
49
|
+
type: Output
|
|
50
|
+
}], selectionEvent: [{
|
|
51
|
+
type: Output
|
|
52
|
+
}], columns: [{
|
|
53
|
+
type: ContentChildren,
|
|
54
|
+
args: [TableColumnComponent]
|
|
55
|
+
}] } });
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Generated bundle index. Do not edit.
|
|
59
|
+
*/
|
|
60
|
+
|
|
61
|
+
export { TreeTableComponent };
|
|
62
|
+
//# sourceMappingURL=aril-ui-treeTable.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aril-ui-treeTable.mjs","sources":["../../projects/aril/ui/treeTable/src/tree-table.component.ts","../../projects/aril/ui/treeTable/src/tree-table.component.html","../../projects/aril/ui/treeTable/aril-ui-treeTable.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\r\nimport { NgFor, NgForOf, NgTemplateOutlet } from '@angular/common';\r\nimport { ChangeDetectionStrategy, Component, ContentChildren, EventEmitter, Output, input } from '@angular/core';\r\nimport { FormsModule } from '@angular/forms';\r\n\r\nimport { TreeNode, TreeTableNode } from 'primeng/api';\r\nimport { TreeTableModule } from 'primeng/treetable';\r\n\r\nimport * as FileSaver from 'file-saver';\r\n\r\nimport { ButtonComponent } from 'aril/ui/button';\r\nimport { TableColumnComponent, TableColumns } from 'aril/ui/table';\r\nimport { TextComponent } from 'aril/ui/text';\r\n\r\nconst pageOptions = [10, 20, 50, 100];\r\n\r\n@Component({\r\n\tstandalone: true,\r\n\tselector: 'aril-tree-table',\r\n\ttemplateUrl: './tree-table.component.html',\r\n\timports: [TreeTableModule, ButtonComponent, TextComponent, FormsModule, NgFor, NgForOf, NgTemplateOutlet],\r\n\tchangeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class TreeTableComponent {\r\n\tdata = input.required<TreeNode[]>();\r\n\tcheckboxSelection = input<boolean>();\r\n\tpageSize = input<(typeof pageOptions)[number]>(10);\r\n\tscrollable = input<boolean>(false);\r\n\tscrollHeight = input<string>();\r\n\r\n\t@Output() expandEvent: EventEmitter<unknown> = new EventEmitter();\r\n\t@Output() selectionEvent: EventEmitter<any> = new EventEmitter<any>();\r\n\r\n\t@ContentChildren(TableColumnComponent) columns!: TableColumns;\r\n\r\n\tfilterText!: string;\r\n\tpageOptions = pageOptions;\r\n\tselectedNodes!: TreeTableNode<any> | TreeTableNode<any>[] | null;\r\n\r\n\texcelExport() {\r\n\t\timport('xlsx').then((xlsx) => {\r\n\t\t\tconst worksheet = xlsx.utils.json_to_sheet(this.data());\r\n\t\t\tconst workbook = { Sheets: { data: worksheet }, SheetNames: ['data'] };\r\n\t\t\tconst excelBuffer: any = xlsx.write(workbook, { bookType: 'xlsx', type: 'array' });\r\n\t\t\tthis.saveAsExcelFile(excelBuffer, 'excel_worksheet');\r\n\t\t});\r\n\t}\r\n\r\n\tsaveAsExcelFile(buffer: any, fileName: string): void {\r\n\t\tconst EXCEL_TYPE = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8';\r\n\t\tconst EXCEL_EXTENSION = '.xlsx';\r\n\t\tconst data: Blob = new Blob([buffer], {\r\n\t\t\ttype: EXCEL_TYPE\r\n\t\t});\r\n\t\tFileSaver.saveAs(data, fileName + '_export_' + new Date().getTime() + EXCEL_EXTENSION);\r\n\t}\r\n}\r\n","<p-treeTable\r\n\t#ref\r\n\t[value]=\"data()\"\r\n\t[columns]=\"columns._results\"\r\n\t[rows]=\"pageSize()\"\r\n\t[rowHover]=\"true\"\r\n\t[paginator]=\"true\"\r\n\t[rowsPerPageOptions]=\"pageOptions\"\r\n\t[filterDelay]=\"0\"\r\n\tsortMode=\"multiple\"\r\n\t[scrollable]=\"scrollable()\"\r\n\t[scrollHeight]=\"scrollHeight()\"\r\n\t[(selection)]=\"selectedNodes\"\r\n\t(onNodeExpand)=\"expandEvent.emit($event.node)\"\r\n\t(selectionChange)=\"selectionEvent.emit(selectedNodes)\"\r\n\t[showCurrentPageReport]=\"true\"\r\n\tcurrentPageReportTemplate=\"Toplam : {totalRecords} kayıt | Sayfa : {currentPage} / {totalPages}\"\r\n\tstyleClass=\"p-treetable-gridlines p-treetable-striped p-treetable-sm\">\r\n\t<ng-template pTemplate=\"caption\">\r\n\t\t<div class=\"flex\">\r\n\t\t\t<aril-button\r\n\t\t\t\tsize=\"sm\"\r\n\t\t\t\ticon=\"FILE_EXCEL\"\r\n\t\t\t\tcolor=\"primary\"\r\n\t\t\t\tpTooltip=\"XLS\"\r\n\t\t\t\ttooltipPosition=\"top\"\r\n\t\t\t\t(clickEvent)=\"excelExport()\">\r\n\t\t\t</aril-button>\r\n\t\t\t<!-- <span class=\"p-input-icon-left ml-auto\">\r\n\t\t\t\t<aril-text\r\n\t\t\t\t\ticon=\"SEARCH\"\r\n\t\t\t\t\ticonPos=\"left\"\r\n\t\t\t\t\tplaceholder=\"Arama\"\r\n\t\t\t\t\t[ngModel]=\"filterText\"\r\n\t\t\t\t\t(ngModelChange)=\"ref.filterGlobal($event, 'contains')\">\r\n\t\t\t\t</aril-text>\r\n\t\t\t</span> -->\r\n\t\t</div>\r\n\t</ng-template>\r\n\t<ng-template pTemplate=\"header\" let-columns>\r\n\t\t<tr>\r\n\t\t\t@if (checkboxSelection()) {\r\n\t\t\t\t<th>\r\n\t\t\t\t\t<p-treeTableHeaderCheckbox></p-treeTableHeaderCheckbox>\r\n\t\t\t\t</th>\r\n\t\t\t}\r\n\t\t\t@for (column of columns; track $index) {\r\n\t\t\t\t@if (column.isOperation) {\r\n\t\t\t\t\t<th>\r\n\t\t\t\t\t\t<div class=\"flex justify-content-center\">Operations</div>\r\n\t\t\t\t\t</th>\r\n\t\t\t\t} @else {\r\n\t\t\t\t\t<th [ttSortableColumn]=\"column.field\">\r\n\t\t\t\t\t\t<div class=\"flex justify-content-between align-items-center\">\r\n\t\t\t\t\t\t\t{{ column.header }}\r\n\t\t\t\t\t\t\t<!-- <p-treeTableSortIcon [field]=\"column.field\"></p-treeTableSortIcon> -->\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</th>\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t</tr>\r\n\t</ng-template>\r\n\t<ng-template pTemplate=\"body\" let-rowNode let-rowData=\"rowData\" let-columns=\"columns\">\r\n\t\t<tr [ttRow]=\"rowNode\">\r\n\t\t\t@if (checkboxSelection()) {\r\n\t\t\t\t<td>\r\n\t\t\t\t\t<p-treeTableCheckbox [value]=\"rowNode\"></p-treeTableCheckbox>\r\n\t\t\t\t</td>\r\n\t\t\t}\r\n\t\t\t@for (column of columns; track $index) {\r\n\t\t\t\t<td>\r\n\t\t\t\t\t@if ($first) {\r\n\t\t\t\t\t\t<p-treeTableToggler [rowNode]=\"rowNode\"></p-treeTableToggler>\r\n\t\t\t\t\t}\r\n\t\t\t\t\t<ng-template ngFor [ngForOf]=\"[rowNode.node]\" [ngForTemplate]=\"column.template\"> </ng-template>\r\n\t\t\t\t</td>\r\n\t\t\t}\r\n\t\t</tr>\r\n\t</ng-template>\r\n\t<ng-template pTemplate=\"summary\">\r\n\t\t<ng-content select=\"[footer]\"></ng-content>\r\n\t</ng-template>\r\n\t<ng-template pTemplate=\"emptymessage\">\r\n\t\t<tr>\r\n\t\t\t<td [attr.colspan]=\"columns._results.length\">No Data Found</td>\r\n\t\t</tr>\r\n\t</ng-template>\r\n</p-treeTable>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;AAAA;AAcA,MAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,CAAC;MASzB,kBAAkB,CAAA;AAP/B,IAAA,WAAA,GAAA;AAQC,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAC,QAAQ,EAAc,CAAC;QACpC,IAAiB,CAAA,iBAAA,GAAG,K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,SAAA,EAAA,cAAA,EAAA,eAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FAGjE,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAP9B,SAAS;iCACG,IAAI,EAAA,QAAA,EACN,iBAAiB,EAElB,OAAA,EAAA,CAAC,eAAe,EAAE,eAAe,EAAE,aAAa,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,EAAE,gBAAgB,CAAC,EAAA,eAAA,EACxF,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,mjGAAA,EAAA,CAAA;8BASrC,WAAW,EAAA,CAAA;sBAApB,MAAM;gBACG,cAAc,EAAA,CAAA;sBAAvB,MAAM;gBAEgC,OAAO,EAAA,CAAA;sBAA7C,eAAe;uBAAC,oBAAoB,CAAA;;;AEjCtC;;AAEG;;;;"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { input, computed, Component, ChangeDetectionStrategy } from '@angular/core';
|
|
3
|
+
import 'aril/util/primitive-extensions';
|
|
4
|
+
|
|
5
|
+
class ValueComponent {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.model = input.required();
|
|
8
|
+
this.type = input('text');
|
|
9
|
+
this.format = input();
|
|
10
|
+
this.color = input('#333');
|
|
11
|
+
this.display = computed(() => {
|
|
12
|
+
switch (this.type()) {
|
|
13
|
+
case 'text':
|
|
14
|
+
return this.model();
|
|
15
|
+
case 'number':
|
|
16
|
+
return format(this.format() ?? '0.###', this.model());
|
|
17
|
+
case 'decimal':
|
|
18
|
+
return format(this.format() ?? '#.##0,###', this.model());
|
|
19
|
+
case 'date':
|
|
20
|
+
return this.model().longToString(this.format() ?? 'time');
|
|
21
|
+
case 'password':
|
|
22
|
+
return this.model().replace(/./g, '*');
|
|
23
|
+
default:
|
|
24
|
+
console.error("Invalid type: '" + this.type() + "'");
|
|
25
|
+
return '';
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: ValueComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
30
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: ValueComponent, isStandalone: true, selector: "aril-value", inputs: { model: { classPropertyName: "model", publicName: "model", isSignal: true, isRequired: true, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, format: { classPropertyName: "format", publicName: "format", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@if (model() == undefined || model() == null) {\r\n\t<i class=\"pi pi-minus\" style=\"color: red\" pTooltip=\"No item to show\"></i>\r\n} @else {\r\n\t@if (type() == 'bool') {\r\n\t\t@if (!!model()) {\r\n\t\t\t<i class=\"pi pi-check\" style=\"color: green\"></i>\r\n\t\t} @else {\r\n\t\t\t<i class=\"pi pi-times\" style=\"color: crimson\"></i>\r\n\t\t}\r\n\t} @else {\r\n\t\t@if (display() == undefined) {\r\n\t\t\t<i class=\"pi pi-exclamation-circle\" style=\"color: red\" pTooltip=\"Invalid Data\"> </i>\r\n\t\t} @else {\r\n\t\t\t<span [style.color]=\"color\">\r\n\t\t\t\t{{ display() }}\r\n\t\t\t</span>\r\n\t\t}\r\n\t}\r\n}\r\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
31
|
+
}
|
|
32
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: ValueComponent, decorators: [{
|
|
33
|
+
type: Component,
|
|
34
|
+
args: [{ standalone: true, selector: 'aril-value', changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (model() == undefined || model() == null) {\r\n\t<i class=\"pi pi-minus\" style=\"color: red\" pTooltip=\"No item to show\"></i>\r\n} @else {\r\n\t@if (type() == 'bool') {\r\n\t\t@if (!!model()) {\r\n\t\t\t<i class=\"pi pi-check\" style=\"color: green\"></i>\r\n\t\t} @else {\r\n\t\t\t<i class=\"pi pi-times\" style=\"color: crimson\"></i>\r\n\t\t}\r\n\t} @else {\r\n\t\t@if (display() == undefined) {\r\n\t\t\t<i class=\"pi pi-exclamation-circle\" style=\"color: red\" pTooltip=\"Invalid Data\"> </i>\r\n\t\t} @else {\r\n\t\t\t<span [style.color]=\"color\">\r\n\t\t\t\t{{ display() }}\r\n\t\t\t</span>\r\n\t\t}\r\n\t}\r\n}\r\n" }]
|
|
35
|
+
}] });
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Generated bundle index. Do not edit.
|
|
39
|
+
*/
|
|
40
|
+
|
|
41
|
+
export { ValueComponent };
|
|
42
|
+
//# sourceMappingURL=aril-ui-value.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aril-ui-value.mjs","sources":["../../projects/aril/ui/value/src/value.component.ts","../../projects/aril/ui/value/src/value.component.html","../../projects/aril/ui/value/aril-ui-value.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\r\n\r\nimport 'aril/util/primitive-extensions';\r\n\r\n/* number-format.js */\r\ndeclare const format: Function;\r\n\r\ntype ValueTypes = 'text' | 'number' | 'bool' | 'decimal' | 'date' | 'password';\r\n\r\n@Component({\r\n\tstandalone: true,\r\n\tselector: 'aril-value',\r\n\ttemplateUrl: './value.component.html',\r\n\tchangeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class ValueComponent {\r\n\tmodel = input.required<string | number | boolean | undefined>();\r\n\ttype = input<ValueTypes>('text');\r\n\tformat = input<string>();\r\n\tcolor = input<string>('#333');\r\n\r\n\tdisplay = computed(() => {\r\n\t\tswitch (this.type()) {\r\n\t\t\tcase 'text':\r\n\t\t\t\treturn this.model();\r\n\t\t\tcase 'number':\r\n\t\t\t\treturn format(this.format() ?? '0.###', this.model());\r\n\t\t\tcase 'decimal':\r\n\t\t\t\treturn format(this.format() ?? '#.##0,###', this.model());\r\n\t\t\tcase 'date':\r\n\t\t\t\treturn (<number>this.model()).longToString(this.format() ?? 'time');\r\n\t\t\tcase 'password':\r\n\t\t\t\treturn (<string>this.model()).replace(/./g, '*');\r\n\t\t\tdefault:\r\n\t\t\t\tconsole.error(\"Invalid type: '\" + this.type() + \"'\");\r\n\t\t\t\treturn '';\r\n\t\t}\r\n\t});\r\n}\r\n","@if (model() == undefined || model() == null) {\r\n\t<i class=\"pi pi-minus\" style=\"color: red\" pTooltip=\"No item to show\"></i>\r\n} @else {\r\n\t@if (type() == 'bool') {\r\n\t\t@if (!!model()) {\r\n\t\t\t<i class=\"pi pi-check\" style=\"color: green\"></i>\r\n\t\t} @else {\r\n\t\t\t<i class=\"pi pi-times\" style=\"color: crimson\"></i>\r\n\t\t}\r\n\t} @else {\r\n\t\t@if (display() == undefined) {\r\n\t\t\t<i class=\"pi pi-exclamation-circle\" style=\"color: red\" pTooltip=\"Invalid Data\"> </i>\r\n\t\t} @else {\r\n\t\t\t<span [style.color]=\"color\">\r\n\t\t\t\t{{ display() }}\r\n\t\t\t</span>\r\n\t\t}\r\n\t}\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAea,cAAc,CAAA;AAN3B,IAAA,WAAA,GAAA;AAOC,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAC,QAAQ,EAAyC,CAAC;AAChE,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAa,MAAM,CAAC,CAAC;QACjC,IAAM,CAAA,MAAA,GAAG,KAAK,EAAU,CAAC;AACzB,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAS,MAAM,CAAC,CAAC;AAE9B,QAAA,IAAA,CAAA,OAAO,GAAG,QAAQ,CAAC,MAAK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A,CAAA,EAAA,UAAA,EAAA,IAAI,EACN,QAAA,EAAA,YAAY,EAEL,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,ynBAAA,EAAA,CAAA;;;AEbhD;;AAEG;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aril-ui.mjs","sources":["../../projects/aril/ui/index.ts","../../projects/aril/ui/aril-ui.ts"],"sourcesContent":["export const aril_ui = 'ARiL-UI';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAO,MAAM,OAAO,GAAG;;ACAvB;;AAEG;;;;"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { input, signal, effect, Directive } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
class Block {
|
|
5
|
+
constructor(element) {
|
|
6
|
+
this.element = element;
|
|
7
|
+
this.arilBlock = input.required();
|
|
8
|
+
this.blockOptions = input({});
|
|
9
|
+
this.target = signal(this.element.nativeElement);
|
|
10
|
+
effect(() => {
|
|
11
|
+
if (this.target()) {
|
|
12
|
+
if (this.arilBlock()) {
|
|
13
|
+
this.blockUI.block();
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
this.blockUI.release();
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
ngAfterViewInit() {
|
|
22
|
+
this.target.set(this.getTarget(this.element));
|
|
23
|
+
this.blockUI = new KTBlockUI(this.target(), this.blockOptions());
|
|
24
|
+
}
|
|
25
|
+
getTarget(element) {
|
|
26
|
+
let nativeElement = element.nativeElement;
|
|
27
|
+
while (nativeElement && !nativeElement.clientWidth)
|
|
28
|
+
nativeElement = nativeElement.children[0];
|
|
29
|
+
return nativeElement;
|
|
30
|
+
}
|
|
31
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: Block, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
32
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "17.1.2", type: Block, isStandalone: true, selector: "[arilBlock]", inputs: { arilBlock: { classPropertyName: "arilBlock", publicName: "arilBlock", isSignal: true, isRequired: true, transformFunction: null }, blockOptions: { classPropertyName: "blockOptions", publicName: "blockOptions", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
|
|
33
|
+
}
|
|
34
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: Block, decorators: [{
|
|
35
|
+
type: Directive,
|
|
36
|
+
args: [{
|
|
37
|
+
standalone: true,
|
|
38
|
+
selector: '[arilBlock]'
|
|
39
|
+
}]
|
|
40
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }] });
|
|
41
|
+
class BlockPage {
|
|
42
|
+
constructor() {
|
|
43
|
+
this.arilBlockPage = input.required();
|
|
44
|
+
this.blockOptions = input({});
|
|
45
|
+
const blockUI = new KTBlockUI(document.body, this.blockOptions());
|
|
46
|
+
effect(() => {
|
|
47
|
+
if (this.arilBlockPage()) {
|
|
48
|
+
blockUI.block();
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
blockUI.release();
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: BlockPage, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
56
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "17.1.2", type: BlockPage, isStandalone: true, selector: "[arilBlockPage]", inputs: { arilBlockPage: { classPropertyName: "arilBlockPage", publicName: "arilBlockPage", isSignal: true, isRequired: true, transformFunction: null }, blockOptions: { classPropertyName: "blockOptions", publicName: "blockOptions", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
|
|
57
|
+
}
|
|
58
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: BlockPage, decorators: [{
|
|
59
|
+
type: Directive,
|
|
60
|
+
args: [{
|
|
61
|
+
standalone: true,
|
|
62
|
+
selector: '[arilBlockPage]'
|
|
63
|
+
}]
|
|
64
|
+
}], ctorParameters: () => [] });
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Generated bundle index. Do not edit.
|
|
68
|
+
*/
|
|
69
|
+
|
|
70
|
+
export { Block, BlockPage };
|
|
71
|
+
//# sourceMappingURL=aril-util-block.mjs.map
|