aril 0.0.46 → 0.0.48
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 +65 -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 +84 -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 -82
- 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 @@
|
|
|
1
|
+
{"version":3,"file":"aril-util-block.mjs","sources":["../../projects/aril/util/block/src/block.ts","../../projects/aril/util/block/aril-util-block.ts"],"sourcesContent":["import { AfterViewInit, Directive, ElementRef, effect, input, signal } from '@angular/core';\r\n\r\ndeclare const KTBlockUI: any;\r\n\r\ninterface BlockOptions {\r\n\tzIndex?: number;\r\n\toverlayClass?: string;\r\n\tmessage?: string;\r\n}\r\n\r\n@Directive({\r\n\tstandalone: true,\r\n\tselector: '[arilBlock]'\r\n})\r\nexport class Block implements AfterViewInit {\r\n\tconstructor(private element: ElementRef) {\r\n\t\teffect(() => {\r\n\t\t\tif (this.target()) {\r\n\t\t\t\tif (this.arilBlock()) {\r\n\t\t\t\t\tthis.blockUI.block();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.blockUI.release();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tarilBlock = input.required<boolean>();\r\n\tblockOptions = input<BlockOptions>({});\r\n\r\n\tblockUI: typeof KTBlockUI;\r\n\ttarget = signal<HTMLElement>(this.element.nativeElement);\r\n\r\n\tngAfterViewInit() {\r\n\t\tthis.target.set(this.getTarget(this.element));\r\n\t\tthis.blockUI = new KTBlockUI(this.target(), this.blockOptions());\r\n\t}\r\n\r\n\tgetTarget(element: ElementRef): HTMLElement {\r\n\t\tlet nativeElement = element.nativeElement;\r\n\t\twhile (nativeElement && !nativeElement.clientWidth) nativeElement = nativeElement.children[0];\r\n\t\treturn nativeElement;\r\n\t}\r\n}\r\n\r\n@Directive({\r\n\tstandalone: true,\r\n\tselector: '[arilBlockPage]'\r\n})\r\nexport class BlockPage {\r\n\tconstructor() {\r\n\t\tconst blockUI = new KTBlockUI(document.body, this.blockOptions());\r\n\r\n\t\teffect(() => {\r\n\t\t\tif (this.arilBlockPage()) {\r\n\t\t\t\tblockUI.block();\r\n\t\t\t} else {\r\n\t\t\t\tblockUI.release();\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tarilBlockPage = input.required<boolean>();\r\n\tblockOptions = input<BlockOptions>({});\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAca,KAAK,CAAA;AACjB,IAAA,WAAA,CAAoB,OAAmB,EAAA;QAAnB,IAAO,CAAA,OAAA,GAAP,OAAO,CAAY;AAYvC,QAAA,IAAA,CA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,EAAA,eAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,YAAA,EAAA,EAAA,iBAAA,EAAA,cAAA,EAAA,UAAA,EAAA,cAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;2FAAT,SAAS,EAAA,UAAA,EAAA,CAAA;kBAJrB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,iBAAiB;AAC3B,iBAAA,CAAA;;;AChDD;;AAEG;;;;"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component } from '@angular/core';
|
|
3
|
+
import * as i2 from '@angular/router';
|
|
4
|
+
import { RouterModule } from '@angular/router';
|
|
5
|
+
import * as i1 from 'primeng/button';
|
|
6
|
+
import { ButtonModule } from 'primeng/button';
|
|
7
|
+
|
|
8
|
+
class NotFoundComponent {
|
|
9
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: NotFoundComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
10
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.2", type: NotFoundComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: `
|
|
11
|
+
<svg
|
|
12
|
+
viewBox="0 0 960 540"
|
|
13
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
14
|
+
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
15
|
+
version="1.1"
|
|
16
|
+
class="min-h-screen min-w-screen fixed left-0"
|
|
17
|
+
style="bottom:-10rem"
|
|
18
|
+
preserveAspectRatio="none">
|
|
19
|
+
<rect x="0" y="0" width="960" height="540" fill="var(--surface-ground)"></rect>
|
|
20
|
+
<path
|
|
21
|
+
d="M0 331L26.7 321C53.3 311 106.7 291 160 291C213.3 291 266.7 311 320 329.5C373.3 348 426.7 365 480 373.2C533.3 381.3 586.7 380.7 640 373.8C693.3 367 746.7 354 800 341.2C853.3 328.3 906.7 315.7 933.3 309.3L960 303L960 541L933.3 541C906.7 541 853.3 541 800 541C746.7 541 693.3 541 640 541C586.7 541 533.3 541 480 541C426.7 541 373.3 541 320 541C266.7 541 213.3 541 160 541C106.7 541 53.3 541 26.7 541L0 541Z"
|
|
22
|
+
fill="var(--primary-color)"
|
|
23
|
+
stroke-linecap="round"
|
|
24
|
+
stroke-linejoin="miter"></path>
|
|
25
|
+
</svg>
|
|
26
|
+
<div class="px-5 min-h-screen flex justify-content-center align-items-center">
|
|
27
|
+
<div class="z-1 text-center">
|
|
28
|
+
<div class="text-900 font-bold text-8xl mb-4">Oops!</div>
|
|
29
|
+
<p class="line-height-3 mt-0 mb-5 text-700 text-xl font-medium">Sayfa Bulunamadı</p>
|
|
30
|
+
<p-button routerLink="/" styleClass="p-button-dark font-medium p-button-raised">Anasayfaya Git</p-button>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i1.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "style", "styleClass", "badgeClass", "ariaLabel", "autofocus"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }] }); }
|
|
34
|
+
}
|
|
35
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: NotFoundComponent, decorators: [{
|
|
36
|
+
type: Component,
|
|
37
|
+
args: [{
|
|
38
|
+
standalone: true,
|
|
39
|
+
imports: [ButtonModule, RouterModule],
|
|
40
|
+
template: `
|
|
41
|
+
<svg
|
|
42
|
+
viewBox="0 0 960 540"
|
|
43
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
44
|
+
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
45
|
+
version="1.1"
|
|
46
|
+
class="min-h-screen min-w-screen fixed left-0"
|
|
47
|
+
style="bottom:-10rem"
|
|
48
|
+
preserveAspectRatio="none">
|
|
49
|
+
<rect x="0" y="0" width="960" height="540" fill="var(--surface-ground)"></rect>
|
|
50
|
+
<path
|
|
51
|
+
d="M0 331L26.7 321C53.3 311 106.7 291 160 291C213.3 291 266.7 311 320 329.5C373.3 348 426.7 365 480 373.2C533.3 381.3 586.7 380.7 640 373.8C693.3 367 746.7 354 800 341.2C853.3 328.3 906.7 315.7 933.3 309.3L960 303L960 541L933.3 541C906.7 541 853.3 541 800 541C746.7 541 693.3 541 640 541C586.7 541 533.3 541 480 541C426.7 541 373.3 541 320 541C266.7 541 213.3 541 160 541C106.7 541 53.3 541 26.7 541L0 541Z"
|
|
52
|
+
fill="var(--primary-color)"
|
|
53
|
+
stroke-linecap="round"
|
|
54
|
+
stroke-linejoin="miter"></path>
|
|
55
|
+
</svg>
|
|
56
|
+
<div class="px-5 min-h-screen flex justify-content-center align-items-center">
|
|
57
|
+
<div class="z-1 text-center">
|
|
58
|
+
<div class="text-900 font-bold text-8xl mb-4">Oops!</div>
|
|
59
|
+
<p class="line-height-3 mt-0 mb-5 text-700 text-xl font-medium">Sayfa Bulunamadı</p>
|
|
60
|
+
<p-button routerLink="/" styleClass="p-button-dark font-medium p-button-raised">Anasayfaya Git</p-button>
|
|
61
|
+
</div>
|
|
62
|
+
</div>
|
|
63
|
+
`
|
|
64
|
+
}]
|
|
65
|
+
}] });
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Generated bundle index. Do not edit.
|
|
69
|
+
*/
|
|
70
|
+
|
|
71
|
+
export { NotFoundComponent };
|
|
72
|
+
//# sourceMappingURL=aril-util-custom_pages.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aril-util-custom_pages.mjs","sources":["../../projects/aril/util/custom_pages/src/notFound.component.ts","../../projects/aril/util/custom_pages/aril-util-custom_pages.ts"],"sourcesContent":["import { Component } from '@angular/core';\r\nimport { Router, RouterModule } from '@angular/router';\r\n\r\nimport { ButtonModule } from 'primeng/button';\r\n\r\n@Component({\r\n\tstandalone: true,\r\n\timports: [ButtonModule, RouterModule],\r\n\ttemplate: `\r\n\t\t<svg\r\n\t\t\tviewBox=\"0 0 960 540\"\r\n\t\t\txmlns=\"http://www.w3.org/2000/svg\"\r\n\t\t\txmlns:xlink=\"http://www.w3.org/1999/xlink\"\r\n\t\t\tversion=\"1.1\"\r\n\t\t\tclass=\"min-h-screen min-w-screen fixed left-0\"\r\n\t\t\tstyle=\"bottom:-10rem\"\r\n\t\t\tpreserveAspectRatio=\"none\">\r\n\t\t\t<rect x=\"0\" y=\"0\" width=\"960\" height=\"540\" fill=\"var(--surface-ground)\"></rect>\r\n\t\t\t<path\r\n\t\t\t\td=\"M0 331L26.7 321C53.3 311 106.7 291 160 291C213.3 291 266.7 311 320 329.5C373.3 348 426.7 365 480 373.2C533.3 381.3 586.7 380.7 640 373.8C693.3 367 746.7 354 800 341.2C853.3 328.3 906.7 315.7 933.3 309.3L960 303L960 541L933.3 541C906.7 541 853.3 541 800 541C746.7 541 693.3 541 640 541C586.7 541 533.3 541 480 541C426.7 541 373.3 541 320 541C266.7 541 213.3 541 160 541C106.7 541 53.3 541 26.7 541L0 541Z\"\r\n\t\t\t\tfill=\"var(--primary-color)\"\r\n\t\t\t\tstroke-linecap=\"round\"\r\n\t\t\t\tstroke-linejoin=\"miter\"></path>\r\n\t\t</svg>\r\n\t\t<div class=\"px-5 min-h-screen flex justify-content-center align-items-center\">\r\n\t\t\t<div class=\"z-1 text-center\">\r\n\t\t\t\t<div class=\"text-900 font-bold text-8xl mb-4\">Oops!</div>\r\n\t\t\t\t<p class=\"line-height-3 mt-0 mb-5 text-700 text-xl font-medium\">Sayfa Bulunamadı</p>\r\n\t\t\t\t<p-button routerLink=\"/\" styleClass=\"p-button-dark font-medium p-button-raised\">Anasayfaya Git</p-button>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t`\r\n})\r\nexport class NotFoundComponent {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAiCa,iBAAiB,CAAA;8GAAjB,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAjB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,iBAAiB,EAzBnB,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,cAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBT,EAxBS,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,YAAY,6XAAE,YAAY,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,UAAA,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,CAAA,QAAA,EAAA,aAAA,EAAA,UAAA,EAAA,qBAAA,EAAA,OAAA,EAAA,MAAA,EAAA,YAAA,EAAA,kBAAA,EAAA,oBAAA,EAAA,YAAA,EAAA,YAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA,EAAA;;2FA0BxB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBA5B7B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,YAAY,CAAC;AACrC,oBAAA,QAAQ,EAAE,CAAA;;;;;;;;;;;;;;;;;;;;;;;AAuBT,CAAA,CAAA;AACD,iBAAA,CAAA;;;AChCD;;AAEG;;;;"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { EventEmitter, Directive, Output } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
class InitEventDirective {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.arilInit = new EventEmitter();
|
|
7
|
+
}
|
|
8
|
+
ngOnInit() {
|
|
9
|
+
this.arilInit.emit();
|
|
10
|
+
}
|
|
11
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: InitEventDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
12
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.2", type: InitEventDirective, isStandalone: true, selector: "[arilInit]", outputs: { arilInit: "arilInit" }, ngImport: i0 }); }
|
|
13
|
+
}
|
|
14
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: InitEventDirective, decorators: [{
|
|
15
|
+
type: Directive,
|
|
16
|
+
args: [{
|
|
17
|
+
standalone: true,
|
|
18
|
+
selector: '[arilInit]'
|
|
19
|
+
}]
|
|
20
|
+
}], propDecorators: { arilInit: [{
|
|
21
|
+
type: Output
|
|
22
|
+
}] } });
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Generated bundle index. Do not edit.
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
export { InitEventDirective };
|
|
29
|
+
//# sourceMappingURL=aril-util-init-event.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aril-util-init-event.mjs","sources":["../../projects/aril/util/init-event/src/init-event.directive.ts","../../projects/aril/util/init-event/aril-util-init-event.ts"],"sourcesContent":["import { Directive, EventEmitter, OnInit, Output } from '@angular/core';\r\n\r\n@Directive({\r\n\tstandalone: true,\r\n\tselector: '[arilInit]'\r\n})\r\nexport class InitEventDirective implements OnInit {\r\n\t@Output() arilInit: EventEmitter<never> = new EventEmitter<never>();\r\n\r\n\tngOnInit() {\r\n\t\tthis.arilInit.emit();\r\n\t}\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAMa,kBAAkB,CAAA;AAJ/B,IAAA,WAAA,GAAA;AAKW,QAAA,IAAA,CAAA,QAAQ,GAAwB,IAAI,YAAY,EAAS,CAAC;AAKpE,KAAA;IAHA,QAAQ,GAAA;AACP,QAAA,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;KACrB;8GALW,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAAlB,kBAAkB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,YAAA,EAAA,OAAA,EAAA,EAAA,QAAA,EAAA,UAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;2FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAJ9B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,YAAY;AACtB,iBAAA,CAAA;8BAEU,QAAQ,EAAA,CAAA;sBAAjB,MAAM;;;ACPR;;AAEG;;;;"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component } from '@angular/core';
|
|
3
|
+
import { RouterOutlet } from '@angular/router';
|
|
4
|
+
|
|
5
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
6
|
+
|
|
7
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
8
|
+
/* eslint-disable @typescript-eslint/no-namespace */
|
|
9
|
+
|
|
10
|
+
class ModuleRouterOutlet {
|
|
11
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: ModuleRouterOutlet, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
12
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.2", type: ModuleRouterOutlet, isStandalone: true, selector: "aril-module-router-outlet", ngImport: i0, template: ` <router-outlet /> `, isInline: true, dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }] }); }
|
|
13
|
+
}
|
|
14
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: ModuleRouterOutlet, decorators: [{
|
|
15
|
+
type: Component,
|
|
16
|
+
args: [{
|
|
17
|
+
standalone: true,
|
|
18
|
+
selector: 'aril-module-router-outlet',
|
|
19
|
+
template: ` <router-outlet /> `,
|
|
20
|
+
imports: [RouterOutlet]
|
|
21
|
+
}]
|
|
22
|
+
}] });
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Generated bundle index. Do not edit.
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
export { ModuleRouterOutlet };
|
|
29
|
+
//# sourceMappingURL=aril-util-lib.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aril-util-lib.mjs","sources":["../../projects/aril/util/lib/src/types.ts","../../projects/aril/util/lib/src/interfaces.ts","../../projects/aril/util/lib/src/module-router.ts","../../projects/aril/util/lib/aril-util-lib.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-unused-vars */\r\n\r\n/* eslint-disable @typescript-eslint/no-explicit-any */\r\n\r\n/* eslint-disable @typescript-eslint/ban-types */\r\n\r\n/* eslint-disable @typescript-eslint/no-namespace */\r\nimport { InputSignal } from '@angular/core';\r\nimport { FormArray, FormControl, FormGroup } from '@angular/forms';\r\n\r\nexport namespace Types {\r\n\ttype MarkComponentProps<Component> = {\r\n\t\t[Key in keyof Component]: Component[Key] extends Function ? never : Key;\r\n\t};\r\n\ttype KeyOfComponentProps<T> = MarkComponentProps<T>[keyof T];\r\n\ttype ComponentProps<T> = Pick<T, KeyOfComponentProps<T>>;\r\n\texport type NgChanges<Component, Props = ComponentProps<Component>> = {\r\n\t\t[Key in keyof Props]: {\r\n\t\t\tpreviousValue: Props[Key];\r\n\t\t\tcurrentValue: Props[Key];\r\n\t\t\tfirstChange: boolean;\r\n\t\t\tisFirstChange(): boolean;\r\n\t\t};\r\n\t};\r\n\r\n\texport type IsArray<T> = T extends (infer U)[] ? U : never;\r\n\r\n\texport type ControlsOf<T extends Record<string, any>> = {\r\n\t\t[K in keyof T]: T[K] extends Record<any, any> ?\r\n\t\t\tT[K] extends any[] ?\r\n\t\t\t\tFormArray | FormControl<T[K] | null>\r\n\t\t\t:\tFormGroup<ControlsOf<T[K]>>\r\n\t\t:\tFormControl<T[K] | null>;\r\n\t};\r\n\r\n\ttype Enumerate<N extends number, Acc extends number[] = []> =\r\n\t\tAcc['length'] extends N ? Acc[number] : Enumerate<N, [...Acc, Acc['length']]>;\r\n\r\n\texport type NumberRange<F extends number, T extends number> = Exclude<Enumerate<T>, Enumerate<F>>;\r\n\r\n\texport type ComponentInputs<C> = {\r\n\t\t[K in keyof Pick<\r\n\t\t\tC,\r\n\t\t\t{\r\n\t\t\t\t[K in keyof C]: C[K] extends InputSignal<any> ? K : never;\r\n\t\t\t}[keyof C]\r\n\t\t>]: C[K] extends InputSignal<infer _, infer Write> ? Write : never;\r\n\t};\r\n}\r\n","/* eslint-disable @typescript-eslint/no-explicit-any */\r\n/* eslint-disable @typescript-eslint/no-namespace */\r\n\r\nexport namespace Interfaces {\r\n\texport interface MapStringString {\r\n\t\t[key: string]: string;\r\n\t}\r\n\texport interface MapStringNumber {\r\n\t\t[key: string]: number;\r\n\t}\r\n\texport interface MapStringBoolean {\r\n\t\t[key: string]: boolean;\r\n\t}\r\n\texport interface MapStringObject<T> {\r\n\t\t[key: string]: T;\r\n\t}\r\n\texport interface MapStringAny {\r\n\t\t[key: string]: any;\r\n\t}\r\n\texport interface MapNumberString {\r\n\t\t[key: number]: string;\r\n\t}\r\n\texport interface MapNumberNumber {\r\n\t\t[key: number]: number;\r\n\t}\r\n\texport interface MapNumberBoolean {\r\n\t\t[key: number]: boolean;\r\n\t}\r\n\texport interface MapNumberObject<T> {\r\n\t\t[key: number]: T;\r\n\t}\r\n\texport interface MapNumberArray<T> {\r\n\t\t[key: number]: Array<T>;\r\n\t}\r\n\texport interface MapStringArray<T> {\r\n\t\t[key: string]: Array<T>;\r\n\t}\r\n\texport interface MapNumberAny {\r\n\t\t[key: number]: any;\r\n\t}\r\n\texport interface MapEnums {\r\n\t\t[key: number]: MapStringString;\r\n\t}\r\n}\r\n","import { Component } from '@angular/core';\r\nimport { RouterOutlet } from '@angular/router';\r\n\r\n@Component({\r\n\tstandalone: true,\r\n\tselector: 'aril-module-router-outlet',\r\n\ttemplate: ` <router-outlet /> `,\r\n\timports: [RouterOutlet]\r\n})\r\nexport class ModuleRouterOutlet {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAAA;;ACAA;AACA;;MCQa,kBAAkB,CAAA;8GAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAAlB,kBAAkB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,2BAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAHpB,CAAqB,mBAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EACrB,YAAY,EAAA,QAAA,EAAA,eAAA,EAAA,MAAA,EAAA,CAAA,MAAA,CAAA,EAAA,OAAA,EAAA,CAAA,UAAA,EAAA,YAAA,EAAA,QAAA,EAAA,QAAA,CAAA,EAAA,QAAA,EAAA,CAAA,QAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAEV,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAN9B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,2BAA2B;AACrC,oBAAA,QAAQ,EAAE,CAAqB,mBAAA,CAAA;oBAC/B,OAAO,EAAE,CAAC,YAAY,CAAC;AACvB,iBAAA,CAAA;;;ACRD;;AAEG;;;;"}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { DOCUMENT } from '@angular/common';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { Injectable, Inject } from '@angular/core';
|
|
4
|
+
|
|
5
|
+
class StyleLoaderService {
|
|
6
|
+
constructor(rendererFactory, document) {
|
|
7
|
+
this.document = document;
|
|
8
|
+
this._styles = {};
|
|
9
|
+
this.renderer = rendererFactory.createRenderer(null, null);
|
|
10
|
+
}
|
|
11
|
+
load(styles, loadOnce = true) {
|
|
12
|
+
let promises = [];
|
|
13
|
+
styles.forEach((style) => promises.push(this.loadStyle(style, loadOnce)));
|
|
14
|
+
return Promise.all(promises);
|
|
15
|
+
}
|
|
16
|
+
remove(styles) {
|
|
17
|
+
styles.forEach((src) => {
|
|
18
|
+
if (!this._styles[src]) {
|
|
19
|
+
console.warn('Style src=' + src + ' is not loaded');
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
const links = this.document.getElementsByTagName('link');
|
|
23
|
+
for (let i = 0; i < links.length; i++) {
|
|
24
|
+
if (links[i]?.href === src) {
|
|
25
|
+
this.renderer.removeChild(this.document.head, links[i]);
|
|
26
|
+
this._styles[src] = { src: src, loaded: false };
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
loadStyle(src, loadOnce) {
|
|
33
|
+
return new Promise((resolve, reject) => {
|
|
34
|
+
if (this._styles[src]?.loaded && loadOnce) {
|
|
35
|
+
resolve({ src: src, loaded: true });
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
try {
|
|
39
|
+
const style = this.renderer.createElement('link');
|
|
40
|
+
style.rel = 'stylesheet';
|
|
41
|
+
style.href = src;
|
|
42
|
+
this.renderer.appendChild(this.document.head, style);
|
|
43
|
+
this._styles[src] = { src: src, loaded: true };
|
|
44
|
+
resolve({ src: src, loaded: true });
|
|
45
|
+
}
|
|
46
|
+
catch (error) {
|
|
47
|
+
reject(error);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: StyleLoaderService, deps: [{ token: i0.RendererFactory2 }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
53
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: StyleLoaderService, providedIn: 'root' }); }
|
|
54
|
+
}
|
|
55
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: StyleLoaderService, decorators: [{
|
|
56
|
+
type: Injectable,
|
|
57
|
+
args: [{ providedIn: 'root' }]
|
|
58
|
+
}], ctorParameters: () => [{ type: i0.RendererFactory2 }, { type: Document, decorators: [{
|
|
59
|
+
type: Inject,
|
|
60
|
+
args: [DOCUMENT]
|
|
61
|
+
}] }] });
|
|
62
|
+
|
|
63
|
+
class ScriptLoaderService {
|
|
64
|
+
constructor(rendererFactory, document) {
|
|
65
|
+
this.document = document;
|
|
66
|
+
this._scripts = {};
|
|
67
|
+
this.renderer = rendererFactory.createRenderer(null, null);
|
|
68
|
+
}
|
|
69
|
+
load(scripts, loadOnce = true) {
|
|
70
|
+
let promises = [];
|
|
71
|
+
scripts.forEach((script) => promises.push(this.loadScript(script, loadOnce)));
|
|
72
|
+
return Promise.all(promises);
|
|
73
|
+
}
|
|
74
|
+
remove(scripts) {
|
|
75
|
+
scripts.forEach((src) => {
|
|
76
|
+
if (!this._scripts[src]) {
|
|
77
|
+
console.warn('Script src=' + src + ' is not loaded');
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
const scripts = this.document.getElementsByTagName('script');
|
|
81
|
+
for (let i = 0; i < scripts.length; i++) {
|
|
82
|
+
if (scripts[i]?.src === src) {
|
|
83
|
+
this.renderer.removeChild(this.document.head, scripts[i]);
|
|
84
|
+
this._scripts[src] = { src: src, loaded: false };
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
loadScript(src, loadOnce) {
|
|
91
|
+
return new Promise((resolve, reject) => {
|
|
92
|
+
if (this._scripts[src]?.loaded && loadOnce) {
|
|
93
|
+
resolve({ src: src, loaded: true });
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
try {
|
|
97
|
+
const script = this.renderer.createElement('script');
|
|
98
|
+
script.type = 'text/javascript';
|
|
99
|
+
script.src = src;
|
|
100
|
+
this.renderer.appendChild(this.document.head, script);
|
|
101
|
+
this._scripts[src] = { src: src, loaded: true };
|
|
102
|
+
resolve({ src: src, loaded: true });
|
|
103
|
+
}
|
|
104
|
+
catch (error) {
|
|
105
|
+
reject(error);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: ScriptLoaderService, deps: [{ token: i0.RendererFactory2 }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
111
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: ScriptLoaderService, providedIn: 'root' }); }
|
|
112
|
+
}
|
|
113
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: ScriptLoaderService, decorators: [{
|
|
114
|
+
type: Injectable,
|
|
115
|
+
args: [{ providedIn: 'root' }]
|
|
116
|
+
}], ctorParameters: () => [{ type: i0.RendererFactory2 }, { type: Document, decorators: [{
|
|
117
|
+
type: Inject,
|
|
118
|
+
args: [DOCUMENT]
|
|
119
|
+
}] }] });
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Generated bundle index. Do not edit.
|
|
123
|
+
*/
|
|
124
|
+
|
|
125
|
+
export { ScriptLoaderService, StyleLoaderService };
|
|
126
|
+
//# sourceMappingURL=aril-util-loaders.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aril-util-loaders.mjs","sources":["../../projects/aril/util/loaders/style/style.loader.service.ts","../../projects/aril/util/loaders/script/script.loader.service.ts","../../projects/aril/util/loaders/aril-util-loaders.ts"],"sourcesContent":["import { DOCUMENT } from '@angular/common';\r\nimport { Inject, Injectable, Renderer2, RendererFactory2 } from '@angular/core';\r\n\r\ninterface StyleItem {\r\n\tsrc: string;\r\n\tloaded: boolean;\r\n}\r\ninterface Styles {\r\n\t[key: string]: StyleItem;\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class StyleLoaderService {\r\n\tconstructor(\r\n\t\trendererFactory: RendererFactory2,\r\n\t\t@Inject(DOCUMENT) public document: Document\r\n\t) {\r\n\t\tthis.renderer = rendererFactory.createRenderer(null, null);\r\n\t}\r\n\r\n\tprivate renderer: Renderer2;\r\n\tprivate _styles: Styles = {};\r\n\r\n\tload(styles: string[], loadOnce = true): Promise<any> {\r\n\t\tlet promises: any[] = [];\r\n\t\tstyles.forEach((style) => promises.push(this.loadStyle(style, loadOnce)));\r\n\r\n\t\treturn Promise.all(promises);\r\n\t}\r\n\r\n\tremove(styles: string[]) {\r\n\t\tstyles.forEach((src) => {\r\n\t\t\tif (!this._styles[src]) {\r\n\t\t\t\tconsole.warn('Style src=' + src + ' is not loaded');\r\n\t\t\t} else {\r\n\t\t\t\tconst links = this.document.getElementsByTagName('link');\r\n\r\n\t\t\t\tfor (let i = 0; i < links.length; i++) {\r\n\t\t\t\t\tif (links[i]?.href === src) {\r\n\t\t\t\t\t\tthis.renderer.removeChild(this.document.head, links[i]);\r\n\t\t\t\t\t\tthis._styles[src] = { src: src, loaded: false };\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tprivate loadStyle(src: string, loadOnce: boolean): Promise<any> {\r\n\t\treturn new Promise((resolve, reject) => {\r\n\t\t\tif (this._styles[src]?.loaded && loadOnce) {\r\n\t\t\t\tresolve({ src: src, loaded: true });\r\n\t\t\t} else {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tconst style = this.renderer.createElement('link');\r\n\t\t\t\t\tstyle.rel = 'stylesheet';\r\n\t\t\t\t\tstyle.href = src;\r\n\r\n\t\t\t\t\tthis.renderer.appendChild(this.document.head, style);\r\n\r\n\t\t\t\t\tthis._styles[src] = { src: src, loaded: true };\r\n\r\n\t\t\t\t\tresolve({ src: src, loaded: true });\r\n\t\t\t\t} catch (error) {\r\n\t\t\t\t\treject(error);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n}\r\n","import { DOCUMENT } from '@angular/common';\r\nimport { Inject, Injectable, Renderer2, RendererFactory2 } from '@angular/core';\r\n\r\ninterface ScriptItem {\r\n\tsrc: string;\r\n\tloaded: boolean;\r\n}\r\ninterface Scripts {\r\n\t[key: string]: ScriptItem;\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class ScriptLoaderService {\r\n\tconstructor(\r\n\t\trendererFactory: RendererFactory2,\r\n\t\t@Inject(DOCUMENT) public document: Document\r\n\t) {\r\n\t\tthis.renderer = rendererFactory.createRenderer(null, null);\r\n\t}\r\n\r\n\tprivate renderer: Renderer2;\r\n\tprivate _scripts: Scripts = {};\r\n\r\n\tload(scripts: string[], loadOnce = true): Promise<any> {\r\n\t\tlet promises: any[] = [];\r\n\t\tscripts.forEach((script) => promises.push(this.loadScript(script, loadOnce)));\r\n\r\n\t\treturn Promise.all(promises);\r\n\t}\r\n\r\n\tremove(scripts: string[]) {\r\n\t\tscripts.forEach((src) => {\r\n\t\t\tif (!this._scripts[src]) {\r\n\t\t\t\tconsole.warn('Script src=' + src + ' is not loaded');\r\n\t\t\t} else {\r\n\t\t\t\tconst scripts = this.document.getElementsByTagName('script');\r\n\r\n\t\t\t\tfor (let i = 0; i < scripts.length; i++) {\r\n\t\t\t\t\tif (scripts[i]?.src === src) {\r\n\t\t\t\t\t\tthis.renderer.removeChild(this.document.head, scripts[i]);\r\n\t\t\t\t\t\tthis._scripts[src] = { src: src, loaded: false };\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tprivate loadScript(src: string, loadOnce: boolean): Promise<any> {\r\n\t\treturn new Promise((resolve, reject) => {\r\n\t\t\tif (this._scripts[src]?.loaded && loadOnce) {\r\n\t\t\t\tresolve({ src: src, loaded: true });\r\n\t\t\t} else {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tconst script = this.renderer.createElement('script');\r\n\t\t\t\t\tscript.type = 'text/javascript';\r\n\t\t\t\t\tscript.src = src;\r\n\r\n\t\t\t\t\tthis.renderer.appendChild(this.document.head, script);\r\n\r\n\t\t\t\t\tthis._scripts[src] = { src: src, loaded: true };\r\n\r\n\t\t\t\t\tresolve({ src: src, loaded: true });\r\n\t\t\t\t} catch (error) {\r\n\t\t\t\t\treject(error);\r\n\t\t\t\t}\r\n\t\t\t}\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":";;;;MAYa,kBAAkB,CAAA;IAC9B,WACC,CAAA,eAAiC,EACR,QAAkB,EAAA;QAAlB,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAU;QAMpC,IAAO,CAAA,OAAA,GAAW,EAAE,CAAC;QAJ5B,IAAI,CAAC,QAAQ,GAAG,eAAe,CAAC,cAAc,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;KAC3D;AAKD,IAAA,IAAI,CAAC,MAAgB,EAAE,QAAQ,GAAG,IAAI,EAAA;QACrC,IAAI,QAAQ,GAAU,EAAE,CAAC;QACzB,MAAM,CAAC,OAAO,CAAC,CAAC,KAAK,KAAK,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;AAE1E,QAAA,OAAO,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;KAC7B;AAED,IAAA,MAAM,CAAC,MAAgB,EAAA;AACtB,QAAA,MAAM,CAAC,OAAO,CAAC,CAAC,GAAG,KAAI;YACtB,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;gBACvB,OAAO,CAAC,IAAI,CAAC,YAAY,GAAG,GAAG,GAAG,gBAAgB,CAAC,CAAC;aACpD;iBAAM;gBACN,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC;AAEzD,gBAAA,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;oBACtC,IAAI,KAAK,C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CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;AAEtD,oBAAA,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;oBAEhD,OAAO,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;iBACpC;gBAAC,OAAO,KAAK,EAAE;oBACf,MAAM,CAAC,KAAK,CAAC,CAAC;iBACd;aACD;AACF,SAAC,CAAC,CAAC;KACH;AAvDW,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,kDAGtB,QAAQ,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA,EAAA;AAHL,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,cADN,MAAM,EAAA,CAAA,CAAA,EAAA;;2FACnB,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAD/B,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE,CAAA;;0BAI/B,MAAM;2BAAC,QAAQ,CAAA;;;ACflB;;AAEG;;;;"}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
Date.prototype.safeBool = function () {
|
|
2
|
+
return !!this;
|
|
3
|
+
};
|
|
4
|
+
Date.prototype.dateToString = function (format) {
|
|
5
|
+
if (!this || !this.getTime || isNaN(this.getTime()))
|
|
6
|
+
return undefined;
|
|
7
|
+
switch (format) {
|
|
8
|
+
case 'hour':
|
|
9
|
+
format = 'hh:mm';
|
|
10
|
+
break;
|
|
11
|
+
case 'time':
|
|
12
|
+
format = 'dd/MMMM/yyyy hh:mm';
|
|
13
|
+
break;
|
|
14
|
+
case 'second':
|
|
15
|
+
format = 'dd/MMMM/yyyy hh:mm:ss';
|
|
16
|
+
break;
|
|
17
|
+
case 'minute':
|
|
18
|
+
format = 'dd/MMMM/yyyy hh:mm';
|
|
19
|
+
break;
|
|
20
|
+
case 'day':
|
|
21
|
+
format = 'dd/MMMM/yyyy';
|
|
22
|
+
break;
|
|
23
|
+
case 'onlyDay':
|
|
24
|
+
format = 'dd';
|
|
25
|
+
break;
|
|
26
|
+
case 'month':
|
|
27
|
+
format = 'MMMM/yyyy';
|
|
28
|
+
break;
|
|
29
|
+
case 'monthInt':
|
|
30
|
+
format = 'MM/yyyy';
|
|
31
|
+
break;
|
|
32
|
+
case 'onlyMonth':
|
|
33
|
+
format = 'MMMM';
|
|
34
|
+
break;
|
|
35
|
+
case 'year':
|
|
36
|
+
format = 'yyyy';
|
|
37
|
+
break;
|
|
38
|
+
default:
|
|
39
|
+
format = format ? format : 'dd/MMMM/yyyy';
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
const months = [
|
|
43
|
+
'Ocak',
|
|
44
|
+
'Şubat',
|
|
45
|
+
'Mart',
|
|
46
|
+
'Nisan',
|
|
47
|
+
'Mayıs',
|
|
48
|
+
'Haziran',
|
|
49
|
+
'Temmuz',
|
|
50
|
+
'Ağustos',
|
|
51
|
+
'Eylül',
|
|
52
|
+
'Ekim',
|
|
53
|
+
'Kasım',
|
|
54
|
+
'Aralık'
|
|
55
|
+
];
|
|
56
|
+
const year = this.getFullYear().toString();
|
|
57
|
+
const month = this.getMonth() >= 9 ? (this.getMonth() + 1).toString() : '0' + (this.getMonth() + 1).toString();
|
|
58
|
+
const monthText = months[this.getMonth()];
|
|
59
|
+
const day = this.getDate() > 9 ? this.getDate().toString() : '0' + this.getDate().toString();
|
|
60
|
+
const hour = this.getHours() > 9 ? this.getHours().toString() : '0' + this.getHours().toString();
|
|
61
|
+
const minute = this.getMinutes() > 9 ? this.getMinutes().toString() : '0' + this.getMinutes().toString();
|
|
62
|
+
const second = this.getSeconds() > 9 ? this.getSeconds().toString() : '0' + this.getSeconds().toString();
|
|
63
|
+
const dictionary = {
|
|
64
|
+
dd: day,
|
|
65
|
+
hh: hour,
|
|
66
|
+
mm: minute,
|
|
67
|
+
ss: second,
|
|
68
|
+
yyyy: year,
|
|
69
|
+
MMMM: monthText,
|
|
70
|
+
MM: month
|
|
71
|
+
};
|
|
72
|
+
let result = format;
|
|
73
|
+
for (const i in dictionary) {
|
|
74
|
+
result = result.replace(i, dictionary[i]);
|
|
75
|
+
}
|
|
76
|
+
return result;
|
|
77
|
+
};
|
|
78
|
+
Date.prototype.dateToLong = function (zoomLevel) {
|
|
79
|
+
if (!this || !this.getFullYear)
|
|
80
|
+
return undefined;
|
|
81
|
+
const year = this.getFullYear().toString();
|
|
82
|
+
const month = this.getMonth() >= 9 ? (this.getMonth() + 1).toString() : '0' + (this.getMonth() + 1).toString();
|
|
83
|
+
const day = this.getDate() > 9 ? this.getDate().toString() : '0' + this.getDate().toString();
|
|
84
|
+
const hour = this.getHours() > 9 ? this.getHours().toString() : '0' + this.getHours().toString();
|
|
85
|
+
const minute = this.getMinutes() > 9 ? this.getMinutes().toString() : '0' + this.getMinutes().toString();
|
|
86
|
+
const second = this.getSeconds() > 9 ? this.getSeconds().toString() : '0' + this.getSeconds().toString();
|
|
87
|
+
let result;
|
|
88
|
+
if (!zoomLevel)
|
|
89
|
+
zoomLevel = 'day';
|
|
90
|
+
switch (zoomLevel) {
|
|
91
|
+
case 'time':
|
|
92
|
+
result = year + month + day + hour + minute + second;
|
|
93
|
+
break;
|
|
94
|
+
case 'minute':
|
|
95
|
+
result = year + month + day + hour + minute + '00';
|
|
96
|
+
break;
|
|
97
|
+
case 'hour':
|
|
98
|
+
result = year + month + day + hour + '0000';
|
|
99
|
+
break;
|
|
100
|
+
case 'day':
|
|
101
|
+
result = year + month + day + '000000';
|
|
102
|
+
break;
|
|
103
|
+
case 'month':
|
|
104
|
+
result = year + month + '01000000';
|
|
105
|
+
break;
|
|
106
|
+
case 'year':
|
|
107
|
+
result = year + '0101000000';
|
|
108
|
+
break;
|
|
109
|
+
default:
|
|
110
|
+
result = year + month + day + '000000';
|
|
111
|
+
break;
|
|
112
|
+
}
|
|
113
|
+
return Number(result);
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
Number.prototype.safeBool = function () {
|
|
117
|
+
return !!this;
|
|
118
|
+
};
|
|
119
|
+
Number.prototype.isNull = function () {
|
|
120
|
+
return this === null;
|
|
121
|
+
};
|
|
122
|
+
Number.prototype.isUndefined = function () {
|
|
123
|
+
return this === undefined;
|
|
124
|
+
};
|
|
125
|
+
Number.prototype.isNullOrUndefined = function () {
|
|
126
|
+
return this.isNull() || this.isUndefined();
|
|
127
|
+
};
|
|
128
|
+
Number.prototype.longToDate = function () {
|
|
129
|
+
if (!this || this.toString() == '0')
|
|
130
|
+
return undefined;
|
|
131
|
+
const str = this.toString();
|
|
132
|
+
const year = str.substring(0, 4);
|
|
133
|
+
const month = str.substring(4, 6);
|
|
134
|
+
const day = str.substring(6, 8);
|
|
135
|
+
const hour = str.substring(8, 10);
|
|
136
|
+
const min = str.substring(10, 12);
|
|
137
|
+
const sn = str.substring(12, 14);
|
|
138
|
+
return new Date(year + '-' + month + '-' + day + ' ' + hour + ':' + min + ':' + sn);
|
|
139
|
+
};
|
|
140
|
+
Number.prototype.longToString = function (format) {
|
|
141
|
+
if (!this || this.toString() == '0')
|
|
142
|
+
return undefined;
|
|
143
|
+
return this.longToDate()?.dateToString(format);
|
|
144
|
+
};
|
|
145
|
+
Number.prototype.decimalToString = function (format) {
|
|
146
|
+
if (!this && this !== 0)
|
|
147
|
+
return undefined;
|
|
148
|
+
if (!format)
|
|
149
|
+
return this.toString();
|
|
150
|
+
const count = (format.match(/#/g) || []).length;
|
|
151
|
+
return Number(parseFloat(this.toString()).toFixed(count)).toString();
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
String.prototype.safeBool = function () {
|
|
155
|
+
return !!this;
|
|
156
|
+
};
|
|
157
|
+
String.prototype.escapeRegExp = function () {
|
|
158
|
+
return this.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
159
|
+
};
|
|
160
|
+
String.prototype.toCamelCase = function () {
|
|
161
|
+
return this.replace(/(?:^\w|[A-Z]|-|\b\w)/g, (character, index) => index === 0 ? character.toLocaleLowerCase() : character.toLocaleUpperCase());
|
|
162
|
+
};
|
|
163
|
+
String.prototype.toPascalCase = function () {
|
|
164
|
+
return this.replace(/(?:^\w|[A-Z]|-|\b\w)/g, (firstCharacter) => firstCharacter.toLocaleUpperCase());
|
|
165
|
+
};
|
|
166
|
+
String.prototype.toCapitalizeFirstLetter = function () {
|
|
167
|
+
return this.charAt(0).toLocaleUpperCase() + this.slice(1);
|
|
168
|
+
};
|
|
169
|
+
String.prototype.stringToBool = function (str) {
|
|
170
|
+
if (str == 'true' || str == '1')
|
|
171
|
+
return true;
|
|
172
|
+
else
|
|
173
|
+
return false;
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Generated bundle index. Do not edit.
|
|
178
|
+
*/
|
|
179
|
+
//# sourceMappingURL=aril-util-primitive-extensions.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aril-util-primitive-extensions.mjs","sources":["../../projects/aril/util/primitive-extensions/src/date.extensions.ts","../../projects/aril/util/primitive-extensions/src/number.extensions.ts","../../projects/aril/util/primitive-extensions/src/string.extensions.ts","../../projects/aril/util/primitive-extensions/aril-util-primitive-extensions.ts"],"sourcesContent":["declare global {\r\n\tinterface Date {\r\n\t\tsafeBool(): boolean;\r\n\t\tdateToString(format?: string): string | undefined;\r\n\t\tdateToLong(zoomLevel?: string): number | undefined;\r\n\t}\r\n}\r\n\r\nDate.prototype.safeBool = function (): boolean {\r\n\treturn !!this;\r\n};\r\n\r\nDate.prototype.dateToString = function (format?: string): string | undefined {\r\n\tif (!this || !this.getTime || isNaN(this.getTime())) return undefined;\r\n\r\n\tswitch (format) {\r\n\t\tcase 'hour':\r\n\t\t\tformat = 'hh:mm';\r\n\t\t\tbreak;\r\n\t\tcase 'time':\r\n\t\t\tformat = 'dd/MMMM/yyyy hh:mm';\r\n\t\t\tbreak;\r\n\t\tcase 'second':\r\n\t\t\tformat = 'dd/MMMM/yyyy hh:mm:ss';\r\n\t\t\tbreak;\r\n\t\tcase 'minute':\r\n\t\t\tformat = 'dd/MMMM/yyyy hh:mm';\r\n\t\t\tbreak;\r\n\t\tcase 'day':\r\n\t\t\tformat = 'dd/MMMM/yyyy';\r\n\t\t\tbreak;\r\n\t\tcase 'onlyDay':\r\n\t\t\tformat = 'dd';\r\n\t\t\tbreak;\r\n\t\tcase 'month':\r\n\t\t\tformat = 'MMMM/yyyy';\r\n\t\t\tbreak;\r\n\t\tcase 'monthInt':\r\n\t\t\tformat = 'MM/yyyy';\r\n\t\t\tbreak;\r\n\t\tcase 'onlyMonth':\r\n\t\t\tformat = 'MMMM';\r\n\t\t\tbreak;\r\n\t\tcase 'year':\r\n\t\t\tformat = 'yyyy';\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tformat = format ? format : 'dd/MMMM/yyyy';\r\n\t\t\tbreak;\r\n\t}\r\n\r\n\tconst months = [\r\n\t\t'Ocak',\r\n\t\t'Şubat',\r\n\t\t'Mart',\r\n\t\t'Nisan',\r\n\t\t'Mayıs',\r\n\t\t'Haziran',\r\n\t\t'Temmuz',\r\n\t\t'Ağustos',\r\n\t\t'Eylül',\r\n\t\t'Ekim',\r\n\t\t'Kasım',\r\n\t\t'Aralık'\r\n\t];\r\n\r\n\tconst year = this.getFullYear().toString();\r\n\tconst month = this.getMonth() >= 9 ? (this.getMonth() + 1).toString() : '0' + (this.getMonth() + 1).toString();\r\n\tconst monthText = months[this.getMonth()];\r\n\tconst day = this.getDate() > 9 ? this.getDate().toString() : '0' + this.getDate().toString();\r\n\tconst hour = this.getHours() > 9 ? this.getHours().toString() : '0' + this.getHours().toString();\r\n\tconst minute = this.getMinutes() > 9 ? this.getMinutes().toString() : '0' + this.getMinutes().toString();\r\n\tconst second = this.getSeconds() > 9 ? this.getSeconds().toString() : '0' + this.getSeconds().toString();\r\n\r\n\tconst dictionary: { [key: string]: string } = {\r\n\t\tdd: day,\r\n\t\thh: hour,\r\n\t\tmm: minute,\r\n\t\tss: second,\r\n\t\tyyyy: year,\r\n\t\tMMMM: monthText,\r\n\t\tMM: month\r\n\t};\r\n\r\n\tlet result = format;\r\n\r\n\tfor (const i in dictionary) {\r\n\t\tresult = result.replace(i, dictionary[i]);\r\n\t}\r\n\r\n\treturn result;\r\n};\r\n\r\nDate.prototype.dateToLong = function (zoomLevel?: string): number | undefined {\r\n\tif (!this || !this.getFullYear) return undefined;\r\n\r\n\tconst year = this.getFullYear().toString();\r\n\tconst month = this.getMonth() >= 9 ? (this.getMonth() + 1).toString() : '0' + (this.getMonth() + 1).toString();\r\n\tconst day = this.getDate() > 9 ? this.getDate().toString() : '0' + this.getDate().toString();\r\n\r\n\tconst hour = this.getHours() > 9 ? this.getHours().toString() : '0' + this.getHours().toString();\r\n\tconst minute = this.getMinutes() > 9 ? this.getMinutes().toString() : '0' + this.getMinutes().toString();\r\n\tconst second = this.getSeconds() > 9 ? this.getSeconds().toString() : '0' + this.getSeconds().toString();\r\n\r\n\tlet result;\r\n\tif (!zoomLevel) zoomLevel = 'day';\r\n\r\n\tswitch (zoomLevel) {\r\n\t\tcase 'time':\r\n\t\t\tresult = year + month + day + hour + minute + second;\r\n\t\t\tbreak;\r\n\t\tcase 'minute':\r\n\t\t\tresult = year + month + day + hour + minute + '00';\r\n\t\t\tbreak;\r\n\t\tcase 'hour':\r\n\t\t\tresult = year + month + day + hour + '0000';\r\n\t\t\tbreak;\r\n\t\tcase 'day':\r\n\t\t\tresult = year + month + day + '000000';\r\n\t\t\tbreak;\r\n\t\tcase 'month':\r\n\t\t\tresult = year + month + '01000000';\r\n\t\t\tbreak;\r\n\t\tcase 'year':\r\n\t\t\tresult = year + '0101000000';\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tresult = year + month + day + '000000';\r\n\t\t\tbreak;\r\n\t}\r\n\r\n\treturn Number(result);\r\n};\r\n\r\nexport {};\r\n","declare global {\r\n\tinterface Number {\r\n\t\tsafeBool(): boolean;\r\n\t\tisNull(): boolean;\r\n\t\tisUndefined(): boolean;\r\n\t\tisNullOrUndefined(): boolean;\r\n\t\tlongToDate(): Date | undefined;\r\n\t\tlongToString(format?: string): string | undefined;\r\n\t\tdecimalToString(format: string): string | undefined;\r\n\t}\r\n}\r\n\r\nNumber.prototype.safeBool = function (): boolean {\r\n\treturn !!this;\r\n};\r\n\r\nNumber.prototype.isNull = function (): boolean {\r\n\treturn this === null;\r\n};\r\n\r\nNumber.prototype.isUndefined = function (): boolean {\r\n\treturn this === undefined;\r\n};\r\n\r\nNumber.prototype.isNullOrUndefined = function (): boolean {\r\n\treturn this.isNull() || this.isUndefined();\r\n};\r\n\r\nNumber.prototype.longToDate = function (): Date | undefined {\r\n\tif (!this || this.toString() == '0') return undefined;\r\n\r\n\tconst str = this.toString();\r\n\r\n\tconst year = str.substring(0, 4);\r\n\tconst month = str.substring(4, 6);\r\n\tconst day = str.substring(6, 8);\r\n\tconst hour = str.substring(8, 10);\r\n\tconst min = str.substring(10, 12);\r\n\tconst sn = str.substring(12, 14);\r\n\r\n\treturn new Date(year + '-' + month + '-' + day + ' ' + hour + ':' + min + ':' + sn);\r\n};\r\n\r\nNumber.prototype.longToString = function (format?: string): string | undefined {\r\n\tif (!this || this.toString() == '0') return undefined;\r\n\treturn this.longToDate()?.dateToString(format);\r\n};\r\n\r\nNumber.prototype.decimalToString = function (format: string): string | undefined {\r\n\tif (!this && this !== 0) return undefined;\r\n\tif (!format) return this.toString();\r\n\r\n\tconst count = (format.match(/#/g) || []).length;\r\n\treturn Number(parseFloat(this.toString()).toFixed(count)).toString();\r\n};\r\n\r\nexport {};\r\n","declare global {\r\n\tinterface String {\r\n\t\tsafeBool(): boolean;\r\n\t\tescapeRegExp(): string;\r\n\t\ttoCamelCase(): string;\r\n\t\ttoPascalCase(): string;\r\n\t\ttoCapitalizeFirstLetter(): string;\r\n\t\tstringToBool(str: string): boolean;\r\n\t}\r\n}\r\n\r\nString.prototype.safeBool = function (): boolean {\r\n\treturn !!this;\r\n};\r\n\r\nString.prototype.escapeRegExp = function (): string {\r\n\treturn this.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\r\n};\r\n\r\nString.prototype.toCamelCase = function (): string {\r\n\treturn this.replace(/(?:^\\w|[A-Z]|-|\\b\\w)/g, (character, index) =>\r\n\t\tindex === 0 ? character.toLocaleLowerCase() : character.toLocaleUpperCase()\r\n\t);\r\n};\r\n\r\nString.prototype.toPascalCase = function (): string {\r\n\treturn this.replace(/(?:^\\w|[A-Z]|-|\\b\\w)/g, (firstCharacter) => firstCharacter.toLocaleUpperCase());\r\n};\r\n\r\nString.prototype.toCapitalizeFirstLetter = function (): string {\r\n\treturn this.charAt(0).toLocaleUpperCase() + this.slice(1);\r\n};\r\n\r\nString.prototype.stringToBool = function (str: string): boolean {\r\n\tif (str == 'true' || str == '1') return true;\r\n\telse return false;\r\n};\r\n\r\nexport {};\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAQA,IAAI,CAAC,SAAS,CAAC,QAAQ,GAAG,YAAA;IACzB,OAAO,CAAC,CAAC,IAAI,CAAC;AACf,CAAC,CAAC;AAEF,IAAI,CAAC,SAAS,CAAC,YAAY,GAAG,UAAU,MAAe,EAAA;AACtD,IAAA,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;AAAE,QAAA,OAAO,SAAS,CAAC;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AAC1C,IAAA,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,iBAAiB,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAC3D,CAAC,CAAC;AAEF,MAAM,CAAC,SAAS,CAAC,YAAY,GAAG,UAAU,GAAW,EAAA;AACpD,IAAA,IAAI,GAAG,IAAI,MAAM,IAAI,GAAG,IAAI,GAAG;AAAE,QAAA,OAAO,IAAI,CAAC;;AACxC,QAAA,OAAO,KAAK,CAAC;AACnB,CAAC;;ACpCD;;AAEG"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Injectable } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
5
|
+
const PubSubEvents = {
|
|
6
|
+
navigateBetweenApps: 'navigateBetweenApps',
|
|
7
|
+
navigateInApps: 'navigateInApps'
|
|
8
|
+
};
|
|
9
|
+
class PubSubService {
|
|
10
|
+
publish(e) {
|
|
11
|
+
dispatchEvent(new CustomEvent(e.name, { detail: e.data }));
|
|
12
|
+
}
|
|
13
|
+
subscribe(eventName, listener) {
|
|
14
|
+
addEventListener(eventName, (event) => {
|
|
15
|
+
listener(event.detail);
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
unSubscribe(eventName, listener) {
|
|
19
|
+
removeEventListener(eventName, listener);
|
|
20
|
+
}
|
|
21
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: PubSubService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
22
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: PubSubService, providedIn: 'root' }); }
|
|
23
|
+
}
|
|
24
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: PubSubService, decorators: [{
|
|
25
|
+
type: Injectable,
|
|
26
|
+
args: [{
|
|
27
|
+
providedIn: 'root'
|
|
28
|
+
}]
|
|
29
|
+
}] });
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Generated bundle index. Do not edit.
|
|
33
|
+
*/
|
|
34
|
+
|
|
35
|
+
export { PubSubService };
|
|
36
|
+
//# sourceMappingURL=aril-util-pub-sub.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aril-util-pub-sub.mjs","sources":["../../projects/aril/util/pub-sub/src/pub-sub.service.ts","../../projects/aril/util/pub-sub/aril-util-pub-sub.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\r\nimport { Injectable } from '@angular/core';\r\n\r\ntype CustomEvent = {\r\n\tname: keyof typeof PubSubEvents;\r\n\tdata: {\r\n\t\tpath: string;\r\n\t\tcustom?: any;\r\n\t};\r\n};\r\n\r\nconst PubSubEvents = {\r\n\tnavigateBetweenApps: 'navigateBetweenApps',\r\n\tnavigateInApps: 'navigateInApps'\r\n};\r\n\r\n@Injectable({\r\n\tprovidedIn: 'root'\r\n})\r\nexport class PubSubService {\r\n\tpublish(e: CustomEvent) {\r\n\t\tdispatchEvent(new CustomEvent(e.name, { detail: e.data }));\r\n\t}\r\n\r\n\tsubscribe(eventName: keyof typeof PubSubEvents, listener: (data: any) => void) {\r\n\t\taddEventListener(eventName, (event: any) => {\r\n\t\t\tlistener(event.detail);\r\n\t\t});\r\n\t}\r\n\r\n\tunSubscribe(eventName: keyof typeof PubSubEvents, listener: () => void) {\r\n\t\tremoveEventListener(eventName, listener);\r\n\t}\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAAA;AAWA,MAAM,YAAY,GAAG;AACpB,IAAA,mBAAmB,EAAE,qBAAqB;AAC1C,IAAA,cAAc,EAAE,gBAAgB;CAChC,CAAC;MAKW,aAAa,CAAA;AACzB,IAAA,OAAO,CAAC,CAAc,EAAA;AACrB,QAAA,aAAa,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;KAC3D;IAED,SAAS,CAAC,SAAoC,EAAE,QAA6B,EAAA;AAC5E,QAAA,gBAAgB,CAAC,SAAS,EAAE,CAAC,KAAU,KAAI;AAC1C,YAAA,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;AACxB,SAAC,CAAC,CAAC;KACH;IAED,WAAW,CAAC,SAAoC,EAAE,QAAoB,EAAA;AACrE,QAAA,mBAAmB,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;KACzC;8GAbW,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA,EAAA;AAAb,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,cAFb,MAAM,EAAA,CAAA,CAAA,EAAA;;2FAEN,aAAa,EAAA,UAAA,EAAA,CAAA;kBAHzB,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACX,oBAAA,UAAU,EAAE,MAAM;AAClB,iBAAA,CAAA;;;AClBD;;AAEG;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aril-util.mjs","sources":["../../projects/aril/util/index.ts","../../projects/aril/util/aril-util.ts"],"sourcesContent":["export const aril_util = 'ARiL-UTIL';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAO,MAAM,SAAS,GAAG;;ACAzB;;AAEG;;;;"}
|