@anglr/common 20.0.0-beta.20240529082303 → 20.0.0-beta.20240530105358
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/changelog.md +68 -0
- package/es2022/date-fns/src/misc/utils.js.map +1 -1
- package/es2022/floating-ui/src/services/floatingUiDomPosition.service.js +3 -3
- package/es2022/floating-ui/src/services/floatingUiDomPosition.service.js.map +1 -1
- package/es2022/forms/src/components/defaultValidationErrors/defaultValidationErrors.component.js +14 -24
- package/es2022/forms/src/components/defaultValidationErrors/defaultValidationErrors.component.js.map +1 -1
- package/es2022/forms/src/components/defaultValidationErrorsContainer/defaultValidationErrorsContainer.component.js +4 -24
- package/es2022/forms/src/components/defaultValidationErrorsContainer/defaultValidationErrorsContainer.component.js.map +1 -1
- package/es2022/forms/src/components/reservedSpaceValidationErrorsContainer/reservedSpaceValidationErrorsContainer.component.js +4 -28
- package/es2022/forms/src/components/reservedSpaceValidationErrorsContainer/reservedSpaceValidationErrorsContainer.component.js.map +1 -1
- package/es2022/forms/src/directives/groupHasError/groupHasError.directive.js +14 -14
- package/es2022/forms/src/directives/groupHasError/groupHasError.directive.js.map +1 -1
- package/es2022/forms/src/directives/groupHasErrorContainer/groupHasErrorContainer.directive.js +5 -4
- package/es2022/forms/src/directives/groupHasErrorContainer/groupHasErrorContainer.directive.js.map +1 -1
- package/es2022/forms/src/directives/hasError/hasError.directive.js +72 -111
- package/es2022/forms/src/directives/hasError/hasError.directive.js.map +1 -1
- package/es2022/forms/src/directives/numberInput/maxValueNumberValidator.directive.js +7 -21
- package/es2022/forms/src/directives/numberInput/maxValueNumberValidator.directive.js.map +1 -1
- package/es2022/forms/src/directives/numberInput/minValueNumberValidator.directive.js +7 -21
- package/es2022/forms/src/directives/numberInput/minValueNumberValidator.directive.js.map +1 -1
- package/es2022/forms/src/directives/numberInput/numberInputControlValueAccessor.directive.js +13 -15
- package/es2022/forms/src/directives/numberInput/numberInputControlValueAccessor.directive.js.map +1 -1
- package/es2022/forms/src/directives/numberInput/numberInputValidator.directive.js +3 -3
- package/es2022/forms/src/directives/numberInput/numberInputValidator.directive.js.map +1 -1
- package/es2022/forms/src/directives/requiredClass/requiredClass.directive.js +32 -27
- package/es2022/forms/src/directives/requiredClass/requiredClass.directive.js.map +1 -1
- package/es2022/forms/src/directives/validationErrorsContainer/validationErrorsContainer.directive.js +5 -4
- package/es2022/forms/src/directives/validationErrorsContainer/validationErrorsContainer.directive.js.map +1 -1
- package/es2022/forms/src/index.js +0 -1
- package/es2022/forms/src/index.js.map +1 -1
- package/es2022/forms/src/misc/formModel/decorators/formGroupAsyncValidator.decorator.js.map +1 -1
- package/es2022/forms/src/misc/formModel/decorators/formGroupValidator.decorator.js.map +1 -1
- package/es2022/forms/src/misc/formModel/decorators/invalidateOnChange.decorator.js.map +1 -1
- package/es2022/forms/src/misc/formModel/decorators/modelPropertyMetadata.decorator.js.map +1 -1
- package/es2022/forms/src/misc/formModel/decorators/requiredIf.decorator.js.map +1 -1
- package/es2022/forms/src/misc/formModel/misc/currentValue.js +0 -1
- package/es2022/forms/src/misc/formModel/misc/currentValue.js.map +1 -1
- package/es2022/forms/src/misc/formModel/misc/utils.js.map +1 -1
- package/es2022/forms/src/misc/formModel/misc/validatorFactories.js +0 -4
- package/es2022/forms/src/misc/formModel/misc/validatorFactories.js.map +1 -1
- package/es2022/forms/src/misc/utils.js.map +1 -1
- package/es2022/forms/src/misc/validationErrorsContainerView.js +7 -9
- package/es2022/forms/src/misc/validationErrorsContainerView.js.map +1 -1
- package/es2022/forms/src/misc/validators.js.map +1 -1
- package/es2022/forms/src/modules/errorMessage/components/groupErrors/groupErrors.component.js +7 -29
- package/es2022/forms/src/modules/errorMessage/components/groupErrors/groupErrors.component.js.map +1 -1
- package/es2022/forms/src/modules/errorMessage/directives/errorMessage/errorMessage.directive.js +8 -20
- package/es2022/forms/src/modules/errorMessage/directives/errorMessage/errorMessage.directive.js.map +1 -1
- package/es2022/forms/src/modules/errorMessage/directives/groupErrorsTemplate/groupErrorsTemplate.directive.js +3 -4
- package/es2022/forms/src/modules/errorMessage/directives/groupErrorsTemplate/groupErrorsTemplate.directive.js.map +1 -1
- package/es2022/forms/src/modules/errorMessage/modules/errorMessage.module.js +6 -6
- package/es2022/forms/src/modules/errorMessage/modules/errorMessage.module.js.map +1 -1
- package/es2022/forms/src/modules/errorMessage/pipes/withErrorMessage/withErrorMessage.pipe.js +3 -4
- package/es2022/forms/src/modules/errorMessage/pipes/withErrorMessage/withErrorMessage.pipe.js.map +1 -1
- package/es2022/forms/src/modules/formPipes/modules/formPipes.module.js +5 -5
- package/es2022/forms/src/modules/formPipes/modules/formPipes.module.js.map +1 -1
- package/es2022/forms/src/modules/formPipes/pipes/asFormArray/asFormArray.pipe.js +3 -4
- package/es2022/forms/src/modules/formPipes/pipes/asFormArray/asFormArray.pipe.js.map +1 -1
- package/es2022/forms/src/modules/formPipes/pipes/asFormControl/asFormControl.pipe.js +3 -4
- package/es2022/forms/src/modules/formPipes/pipes/asFormControl/asFormControl.pipe.js.map +1 -1
- package/es2022/forms/src/modules/formPipes/pipes/asFormGroup/asFormGroup.pipe.js +3 -4
- package/es2022/forms/src/modules/formPipes/pipes/asFormGroup/asFormGroup.pipe.js.map +1 -1
- package/es2022/forms/src/modules/formPipes/pipes/getControl/getControl.pipe.js +3 -3
- package/es2022/forms/src/modules/formPipes/pipes/getControl/getControl.pipe.js.map +1 -1
- package/es2022/forms/src/modules/hasError.module.js +6 -17
- package/es2022/forms/src/modules/hasError.module.js.map +1 -1
- package/es2022/forms/src/modules/numberInput.module.js +5 -5
- package/es2022/forms/src/modules/numberInput.module.js.map +1 -1
- package/es2022/forms/src/services/errorMessagesExtractor/errorMessagesExtractor.service.js +3 -10
- package/es2022/forms/src/services/errorMessagesExtractor/errorMessagesExtractor.service.js.map +1 -1
- package/es2022/forms/src/services/formModelBuilder/formModelBuilder.service.js +3 -4
- package/es2022/forms/src/services/formModelBuilder/formModelBuilder.service.js.map +1 -1
- package/es2022/forms/src/services/submitted/submitted.service.js +14 -12
- package/es2022/forms/src/services/submitted/submitted.service.js.map +1 -1
- package/es2022/forms/src/services/validationErrorRenderer/validationErrorRenderer.service.js +3 -24
- package/es2022/forms/src/services/validationErrorRenderer/validationErrorRenderer.service.js.map +1 -1
- package/es2022/hotkeys/src/components/cheatSheet/cheatSheet.component.js +18 -21
- package/es2022/hotkeys/src/components/cheatSheet/cheatSheet.component.js.map +1 -1
- package/es2022/hotkeys/src/services/appHotkeys.service.js +20 -26
- package/es2022/hotkeys/src/services/appHotkeys.service.js.map +1 -1
- package/es2022/material/src/components/confirmationDialog/confirmationDialog.component.js +3 -10
- package/es2022/material/src/components/confirmationDialog/confirmationDialog.component.js.map +1 -1
- package/es2022/material/src/components/movableTitledDialog/movableTitledDialog.component.js +3 -3
- package/es2022/material/src/components/movableTitledDialog/movableTitledDialog.component.js.map +1 -1
- package/es2022/material/src/components/titledDialog/titledDialog.component.js +3 -10
- package/es2022/material/src/components/titledDialog/titledDialog.component.js.map +1 -1
- package/es2022/material/src/directives/confirmationDialog/confirmationDialog.directive.js +37 -38
- package/es2022/material/src/directives/confirmationDialog/confirmationDialog.directive.js.map +1 -1
- package/es2022/material/src/directives/debugDataCopyClick/debugDataCopyClick.directive.js +10 -16
- package/es2022/material/src/directives/debugDataCopyClick/debugDataCopyClick.directive.js.map +1 -1
- package/es2022/material/src/modules/confirmationDialog.module.js +6 -6
- package/es2022/material/src/modules/confirmationDialog.module.js.map +1 -1
- package/es2022/material/src/modules/debugDataCopyClick.module.js +5 -5
- package/es2022/material/src/modules/debugDataCopyClick.module.js.map +1 -1
- package/es2022/material/src/modules/movableTitledDialog.module.js +6 -6
- package/es2022/material/src/modules/movableTitledDialog.module.js.map +1 -1
- package/es2022/material/src/modules/titledDialog.module.js +6 -6
- package/es2022/material/src/modules/titledDialog.module.js.map +1 -1
- package/es2022/material/src/services/titledDialog/titledDialog.service.js +3 -5
- package/es2022/material/src/services/titledDialog/titledDialog.service.js.map +1 -1
- package/es2022/material/src/services/titledDialog/titledDialogService.options.js +5 -5
- package/es2022/material/src/services/titledDialog/titledDialogService.options.js.map +1 -1
- package/es2022/moment/src/misc/utils.js.map +1 -1
- package/es2022/moment/src/modules/moment.module.js +5 -5
- package/es2022/moment/src/modules/moment.module.js.map +1 -1
- package/es2022/moment/src/pipes/momentConvert/momentConvert.pipe.js +3 -3
- package/es2022/moment/src/pipes/momentConvert/momentConvert.pipe.js.map +1 -1
- package/es2022/moment/src/pipes/momentFormat/momentFormat.pipe.js +3 -3
- package/es2022/moment/src/pipes/momentFormat/momentFormat.pipe.js.map +1 -1
- package/es2022/router/src/decorators/componentRedirectRoute.decorator.js.map +1 -1
- package/es2022/router/src/decorators/componentRoute.decorator.js.map +1 -1
- package/es2022/router/src/decorators/moduleRoutes.decorator.js.map +1 -1
- package/es2022/router/src/misc/utils.js.map +1 -1
- package/es2022/router/src/services/routing/dataRouter.js +16 -17
- package/es2022/router/src/services/routing/dataRouter.js.map +1 -1
- package/es2022/router/src/services/routing/dataRouterData.js +3 -8
- package/es2022/router/src/services/routing/dataRouterData.js.map +1 -1
- package/es2022/src/components/collapsibleIcon/collapsibleIcon.component.js +20 -22
- package/es2022/src/components/collapsibleIcon/collapsibleIcon.component.js.map +1 -1
- package/es2022/src/components/collapsibleTitle/collapsibleTitle.component.js +18 -20
- package/es2022/src/components/collapsibleTitle/collapsibleTitle.component.js.map +1 -1
- package/es2022/src/decorators/asSignal/asSignal.decorator.js.map +1 -1
- package/es2022/src/decorators/componentHostStyle/componentHostStyle.decorator.js.map +1 -1
- package/es2022/src/decorators/typeProvider/typeProvider.decorator.js.map +1 -1
- package/es2022/src/directives/bodyRender/bodyRender.directive.js +4 -23
- package/es2022/src/directives/bodyRender/bodyRender.directive.js.map +1 -1
- package/es2022/src/directives/clickOutside/clickOutside.directive.js +27 -39
- package/es2022/src/directives/clickOutside/clickOutside.directive.js.map +1 -1
- package/es2022/src/directives/ellipsisTooltip/ellipsisTooltip.directive.js +33 -48
- package/es2022/src/directives/ellipsisTooltip/ellipsisTooltip.directive.js.map +1 -1
- package/es2022/src/directives/goBack/goBack.directive.js +4 -5
- package/es2022/src/directives/goBack/goBack.directive.js.map +1 -1
- package/es2022/src/directives/ngComponentOutletEx/ngComponentOutletEx.directive.js +13 -27
- package/es2022/src/directives/ngComponentOutletEx/ngComponentOutletEx.directive.js.map +1 -1
- package/es2022/src/directives/positionTo/positionTo.directive.js +20 -45
- package/es2022/src/directives/positionTo/positionTo.directive.js.map +1 -1
- package/es2022/src/modules/castPipes/modules/castPipes.module.js +5 -5
- package/es2022/src/modules/castPipes/modules/castPipes.module.js.map +1 -1
- package/es2022/src/modules/castPipes/pipes/asHtmlElement/asHtmlElement.pipe.js +3 -3
- package/es2022/src/modules/castPipes/pipes/asHtmlElement/asHtmlElement.pipe.js.map +1 -1
- package/es2022/src/modules/castPipes/pipes/asNgClassRequired/asNgClassRequired.pipe.js +3 -3
- package/es2022/src/modules/castPipes/pipes/asNgClassRequired/asNgClassRequired.pipe.js.map +1 -1
- package/es2022/src/modules/castPipes/pipes/asRequired/asRequired.pipe.js +3 -3
- package/es2022/src/modules/castPipes/pipes/asRequired/asRequired.pipe.js.map +1 -1
- package/es2022/src/modules/castPipes/pipes/castType/castType.pipe.js +8 -9
- package/es2022/src/modules/castPipes/pipes/castType/castType.pipe.js.map +1 -1
- package/es2022/src/modules/commonDynamic.module.js +4 -4
- package/es2022/src/modules/commonDynamic.module.js.map +1 -1
- package/es2022/src/modules/commonLocalize.module.js +4 -4
- package/es2022/src/modules/commonLocalize.module.js.map +1 -1
- package/es2022/src/modules/commonUtils.module.js +21 -21
- package/es2022/src/modules/commonUtils.module.js.map +1 -1
- package/es2022/src/modules/debugData/components/debugData/debugData.component.js +3 -5
- package/es2022/src/modules/debugData/components/debugData/debugData.component.js.map +1 -1
- package/es2022/src/modules/debugData/modules/debugData.module.js +4 -4
- package/es2022/src/modules/debugData/modules/debugData.module.js.map +1 -1
- package/es2022/src/modules/debugData/services/debugDataEnabled/debugDataEnabled.service.js +10 -8
- package/es2022/src/modules/debugData/services/debugDataEnabled/debugDataEnabled.service.js.map +1 -1
- package/es2022/src/modules/logger/components/console/console.component.js +16 -23
- package/es2022/src/modules/logger/components/console/console.component.js.map +1 -1
- package/es2022/src/modules/logger/decorators/loggerSink.decorator.js.map +1 -1
- package/es2022/src/modules/logger/misc/utils.js.map +1 -1
- package/es2022/src/modules/logger/services/console/consoleComponent.service.js +18 -16
- package/es2022/src/modules/logger/services/console/consoleComponent.service.js.map +1 -1
- package/es2022/src/modules/logger/services/console/consoleComponent.sink.js +7 -5
- package/es2022/src/modules/logger/services/console/consoleComponent.sink.js.map +1 -1
- package/es2022/src/modules/logger/services/console/consoleComponentService.options.js +8 -8
- package/es2022/src/modules/logger/services/console/consoleComponentService.options.js.map +1 -1
- package/es2022/src/modules/logger/services/developmentConsoleSink/developmentConsole.sink.js.map +1 -1
- package/es2022/src/modules/logger/services/logLevelEnricher/logLevelEnricher.enricher.js.map +1 -1
- package/es2022/src/modules/logger/services/logger/logger.service.js +3 -4
- package/es2022/src/modules/logger/services/logger/logger.service.js.map +1 -1
- package/es2022/src/modules/logger/services/rest/rest.sink.js +17 -21
- package/es2022/src/modules/logger/services/rest/rest.sink.js.map +1 -1
- package/es2022/src/modules/logger/services/rest/restSink.options.js +16 -16
- package/es2022/src/modules/logger/services/rest/restSink.options.js.map +1 -1
- package/es2022/src/modules/logger/services/subLoggerSink/subLogger.sink.js +0 -1
- package/es2022/src/modules/logger/services/subLoggerSink/subLogger.sink.js.map +1 -1
- package/es2022/src/modules/logger/types/loggerConfiguration.js +8 -17
- package/es2022/src/modules/logger/types/loggerConfiguration.js.map +1 -1
- package/es2022/src/modules/logger/types/loggerOptions.js +30 -28
- package/es2022/src/modules/logger/types/loggerOptions.js.map +1 -1
- package/es2022/src/modules/logger/types/messageLog.js +5 -18
- package/es2022/src/modules/logger/types/messageLog.js.map +1 -1
- package/es2022/src/modules/multiButton/components/multiButton/multiButton.component.js +33 -46
- package/es2022/src/modules/multiButton/components/multiButton/multiButton.component.js.map +1 -1
- package/es2022/src/modules/multiButton/modules/multiButton.module.js +4 -4
- package/es2022/src/modules/multiButton/modules/multiButton.module.js.map +1 -1
- package/es2022/src/modules/progressIndicator/components/progressIndicator/progressIndicator.component.js +9 -21
- package/es2022/src/modules/progressIndicator/components/progressIndicator/progressIndicator.component.js.map +1 -1
- package/es2022/src/modules/progressIndicator/directives/progressOverlay/progressOverlay.directive.js +7 -45
- package/es2022/src/modules/progressIndicator/directives/progressOverlay/progressOverlay.directive.js.map +1 -1
- package/es2022/src/modules/progressIndicator/interceptors/progressInterceptor.js +3 -4
- package/es2022/src/modules/progressIndicator/interceptors/progressInterceptor.js.map +1 -1
- package/es2022/src/modules/progressIndicator/modules/progressIndicator.module.js +6 -6
- package/es2022/src/modules/progressIndicator/modules/progressIndicator.module.js.map +1 -1
- package/es2022/src/modules/progressIndicator/services/progressIndicator.service.js +29 -30
- package/es2022/src/modules/progressIndicator/services/progressIndicator.service.js.map +1 -1
- package/es2022/src/modules/progressIndicator/services/progressIndicatorOptions.js +9 -9
- package/es2022/src/modules/progressIndicator/services/progressIndicatorOptions.js.map +1 -1
- package/es2022/src/modules/tooltip/components/tooltip/tooltip.component.js +16 -31
- package/es2022/src/modules/tooltip/components/tooltip/tooltip.component.js.map +1 -1
- package/es2022/src/modules/tooltip/directives/tooltip/tooltip.directive.js +20 -77
- package/es2022/src/modules/tooltip/directives/tooltip/tooltip.directive.js.map +1 -1
- package/es2022/src/modules/tooltip/directives/tooltipTemplate/tooltipTemplate.directive.js +3 -4
- package/es2022/src/modules/tooltip/directives/tooltipTemplate/tooltipTemplate.directive.js.map +1 -1
- package/es2022/src/modules/tooltip/modules/tooltip.module.js +5 -5
- package/es2022/src/modules/tooltip/modules/tooltip.module.js.map +1 -1
- package/es2022/src/pipes/displayProperties/displayProperties.pipe.js +4 -4
- package/es2022/src/pipes/displayProperties/displayProperties.pipe.js.map +1 -1
- package/es2022/src/pipes/firstUppercase/firstUppercase.pipe.js +3 -3
- package/es2022/src/pipes/firstUppercase/firstUppercase.pipe.js.map +1 -1
- package/es2022/src/pipes/firstUppercaseLocalize/firstUppercaseLocalize.pipe.js +3 -18
- package/es2022/src/pipes/firstUppercaseLocalize/firstUppercaseLocalize.pipe.js.map +1 -1
- package/es2022/src/pipes/index.js +1 -0
- package/es2022/src/pipes/index.js.map +1 -1
- package/es2022/src/pipes/isNaN/isNaN.pipe.js +4 -4
- package/es2022/src/pipes/isNaN/isNaN.pipe.js.map +1 -1
- package/es2022/src/pipes/isPresent/isPresent.pipe.js +4 -4
- package/es2022/src/pipes/isPresent/isPresent.pipe.js.map +1 -1
- package/es2022/src/pipes/keys/keys.pipe.js +4 -4
- package/es2022/src/pipes/keys/keys.pipe.js.map +1 -1
- package/es2022/src/pipes/localize/localize.pipe.js +3 -10
- package/es2022/src/pipes/localize/localize.pipe.js.map +1 -1
- package/es2022/src/pipes/mergeCssClasses/mergeCssClasses.pipe.js +3 -3
- package/es2022/src/pipes/mergeCssClasses/mergeCssClasses.pipe.js.map +1 -1
- package/es2022/{numeral/src/pipes → src/pipes/numeral}/numeral.pipe.js +8 -15
- package/es2022/src/pipes/numeral/numeral.pipe.js.map +1 -0
- package/es2022/src/pipes/trimText/trimText.pipe.js +3 -3
- package/es2022/src/pipes/trimText/trimText.pipe.js.map +1 -1
- package/es2022/src/pipes/urlEncode/urlEncode.pipe.js +4 -4
- package/es2022/src/pipes/urlEncode/urlEncode.pipe.js.map +1 -1
- package/es2022/src/services/cookies/cookies.service.js +8 -9
- package/es2022/src/services/cookies/cookies.service.js.map +1 -1
- package/es2022/src/services/notifications/defaultNotifications.service.js +24 -25
- package/es2022/src/services/notifications/defaultNotifications.service.js.map +1 -1
- package/es2022/src/services/notifications/notifications.interface.js +0 -3
- package/es2022/src/services/notifications/notifications.interface.js.map +1 -1
- package/es2022/src/services/notifications/notificationsOptions.js +5 -5
- package/es2022/src/services/notifications/notificationsOptions.js.map +1 -1
- package/es2022/src/services/permanentStorage/cookiePermanentStorage.service.js +3 -4
- package/es2022/src/services/permanentStorage/cookiePermanentStorage.service.js.map +1 -1
- package/es2022/src/services/position/position.interface.js.map +1 -1
- package/es2022/src/services/statusCode/statusCode.service.js +3 -8
- package/es2022/src/services/statusCode/statusCode.service.js.map +1 -1
- package/es2022/src/services/stringLocalization/noStringLocalization.service.js +10 -8
- package/es2022/src/services/stringLocalization/noStringLocalization.service.js.map +1 -1
- package/es2022/src/services/temporaryStorage/memoryTemporaryStorage.service.js +10 -8
- package/es2022/src/services/temporaryStorage/memoryTemporaryStorage.service.js.map +1 -1
- package/es2022/src/utils/index.js.map +1 -1
- package/es2022/store/src/services/permanentStorage/localPermanentStorage.service.js +3 -3
- package/es2022/store/src/services/permanentStorage/localPermanentStorage.service.js.map +1 -1
- package/es2022/store/src/services/temporaryStorage/sessionTemporaryStorage.service.js +3 -3
- package/es2022/store/src/services/temporaryStorage/sessionTemporaryStorage.service.js.map +1 -1
- package/floating-ui/src/services/floatingUiDomPosition.service.d.ts +5 -5
- package/floating-ui/src/services/floatingUiDomPosition.service.d.ts.map +1 -1
- package/forms/src/components/defaultValidationErrors/defaultValidationErrors.component.d.ts +1 -1
- package/forms/src/components/defaultValidationErrors/defaultValidationErrors.component.d.ts.map +1 -1
- package/forms/src/components/defaultValidationErrors/defaultValidationErrors.component.html +9 -3
- package/forms/src/components/defaultValidationErrorsContainer/defaultValidationErrorsContainer.component.d.ts +1 -1
- package/forms/src/components/defaultValidationErrorsContainer/defaultValidationErrorsContainer.component.d.ts.map +1 -1
- package/forms/src/components/reservedSpaceValidationErrorsContainer/reservedSpaceValidationErrorsContainer.component.d.ts +1 -1
- package/forms/src/components/reservedSpaceValidationErrorsContainer/reservedSpaceValidationErrorsContainer.component.d.ts.map +1 -1
- package/forms/src/directives/groupHasError/groupHasError.directive.d.ts +1 -1
- package/forms/src/directives/groupHasError/groupHasError.directive.d.ts.map +1 -1
- package/forms/src/directives/groupHasErrorContainer/groupHasErrorContainer.directive.d.ts +1 -1
- package/forms/src/directives/groupHasErrorContainer/groupHasErrorContainer.directive.d.ts.map +1 -1
- package/forms/src/directives/hasError/hasError.directive.d.ts +24 -32
- package/forms/src/directives/hasError/hasError.directive.d.ts.map +1 -1
- package/forms/src/directives/requiredClass/requiredClass.directive.d.ts +14 -12
- package/forms/src/directives/requiredClass/requiredClass.directive.d.ts.map +1 -1
- package/forms/src/directives/validationErrorsContainer/validationErrorsContainer.directive.d.ts +1 -1
- package/forms/src/directives/validationErrorsContainer/validationErrorsContainer.directive.d.ts.map +1 -1
- package/forms/src/index.d.ts +0 -1
- package/forms/src/index.d.ts.map +1 -1
- package/forms/src/modules/hasError.module.d.ts +1 -5
- package/forms/src/modules/hasError.module.d.ts.map +1 -1
- package/hotkeys/src/components/cheatSheet/cheatSheet.component.d.ts +3 -3
- package/hotkeys/src/components/cheatSheet/cheatSheet.component.d.ts.map +1 -1
- package/hotkeys/src/components/cheatSheet/cheatSheet.component.html +13 -7
- package/lerna.json +4 -0
- package/package.json +54 -57
- package/readme.md +0 -1
- package/router/src/decorators/moduleRoutes.decorator.d.ts.map +1 -1
- package/src/components/collapsibleIcon/collapsibleIcon.component.d.ts +3 -3
- package/src/components/collapsibleIcon/collapsibleIcon.component.d.ts.map +1 -1
- package/src/components/collapsibleTitle/collapsibleTitle.component.d.ts +3 -3
- package/src/components/collapsibleTitle/collapsibleTitle.component.d.ts.map +1 -1
- package/src/directives/bodyRender/bodyRender.directive.d.ts +3 -3
- package/src/directives/bodyRender/bodyRender.directive.d.ts.map +1 -1
- package/src/directives/ellipsisTooltip/ellipsisTooltip.directive.d.ts +3 -3
- package/src/directives/ellipsisTooltip/ellipsisTooltip.directive.d.ts.map +1 -1
- package/src/directives/goBack/goBack.directive.d.ts +3 -3
- package/src/directives/goBack/goBack.directive.d.ts.map +1 -1
- package/src/directives/positionTo/positionTo.directive.d.ts +2 -2
- package/src/directives/positionTo/positionTo.directive.d.ts.map +1 -1
- package/src/modules/commonUtils.module.d.ts +1 -1
- package/src/modules/tooltip/directives/tooltip/tooltip.directive.d.ts +3 -3
- package/src/modules/tooltip/directives/tooltip/tooltip.directive.d.ts.map +1 -1
- package/src/pipes/displayProperties/displayProperties.pipe.d.ts +3 -3
- package/src/pipes/displayProperties/displayProperties.pipe.d.ts.map +1 -1
- package/src/pipes/index.d.ts +1 -0
- package/src/pipes/index.d.ts.map +1 -1
- package/src/pipes/isNaN/isNaN.pipe.d.ts +3 -3
- package/src/pipes/isNaN/isNaN.pipe.d.ts.map +1 -1
- package/src/pipes/isPresent/isPresent.pipe.d.ts +3 -3
- package/src/pipes/isPresent/isPresent.pipe.d.ts.map +1 -1
- package/src/pipes/keys/keys.pipe.d.ts +3 -3
- package/src/pipes/keys/keys.pipe.d.ts.map +1 -1
- package/{numeral/src/pipes → src/pipes/numeral}/numeral.pipe.d.ts +4 -4
- package/{numeral/src/pipes → src/pipes/numeral}/numeral.pipe.d.ts.map +1 -1
- package/src/pipes/urlEncode/urlEncode.pipe.d.ts +3 -3
- package/src/pipes/urlEncode/urlEncode.pipe.d.ts.map +1 -1
- package/src/services/position/position.interface.d.ts +10 -10
- package/src/services/position/position.interface.d.ts.map +1 -1
- package/version.bak +1 -1
- package/es2022/forms/src/modules/requiredClass.module.js +0 -19
- package/es2022/forms/src/modules/requiredClass.module.js.map +0 -1
- package/es2022/numeral/src/index.js +0 -2
- package/es2022/numeral/src/index.js.map +0 -1
- package/es2022/numeral/src/pipes/numeral.pipe.js.map +0 -1
- package/forms/src/modules/requiredClass.module.d.ts +0 -11
- package/forms/src/modules/requiredClass.module.d.ts.map +0 -1
- package/numeral/package.json +0 -8
- package/numeral/src/index.d.ts +0 -2
- package/numeral/src/index.d.ts.map +0 -1
|
@@ -8,20 +8,6 @@ import * as i1 from "@angular/router";
|
|
|
8
8
|
* Special implementation of router that allows routing with sending complex data to routed component
|
|
9
9
|
*/
|
|
10
10
|
export class DataRouter {
|
|
11
|
-
_router;
|
|
12
|
-
//######################### private fields #########################
|
|
13
|
-
/**
|
|
14
|
-
* Value that is going to be used for next routed data
|
|
15
|
-
*/
|
|
16
|
-
_nextValue = null;
|
|
17
|
-
/**
|
|
18
|
-
* Url path of next route
|
|
19
|
-
*/
|
|
20
|
-
_nextUrlPath = null;
|
|
21
|
-
/**
|
|
22
|
-
* Promise that resolves into value for current route
|
|
23
|
-
*/
|
|
24
|
-
_valuePromise = null;
|
|
25
11
|
//######################### public properties #########################
|
|
26
12
|
/**
|
|
27
13
|
* Gets promise that resolves into value for current route
|
|
@@ -32,6 +18,19 @@ export class DataRouter {
|
|
|
32
18
|
//######################### constructor #########################
|
|
33
19
|
constructor(_router) {
|
|
34
20
|
this._router = _router;
|
|
21
|
+
//######################### private fields #########################
|
|
22
|
+
/**
|
|
23
|
+
* Value that is going to be used for next routed data
|
|
24
|
+
*/
|
|
25
|
+
this._nextValue = null;
|
|
26
|
+
/**
|
|
27
|
+
* Url path of next route
|
|
28
|
+
*/
|
|
29
|
+
this._nextUrlPath = null;
|
|
30
|
+
/**
|
|
31
|
+
* Promise that resolves into value for current route
|
|
32
|
+
*/
|
|
33
|
+
this._valuePromise = null;
|
|
35
34
|
this._router.events.subscribe(next => {
|
|
36
35
|
//do not use DataRouter
|
|
37
36
|
if (isBlank(this._nextUrlPath)) {
|
|
@@ -80,10 +79,10 @@ export class DataRouter {
|
|
|
80
79
|
this._nextUrlPath = this._router.createUrlTree(linkParams).toString();
|
|
81
80
|
return this._router.navigate(linkParams);
|
|
82
81
|
}
|
|
83
|
-
static
|
|
84
|
-
static
|
|
82
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: DataRouter, deps: [{ token: i1.Router }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
83
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: DataRouter, providedIn: 'root' }); }
|
|
85
84
|
}
|
|
86
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
85
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: DataRouter, decorators: [{
|
|
87
86
|
type: Injectable,
|
|
88
87
|
args: [{ providedIn: 'root' }]
|
|
89
88
|
}], ctorParameters: () => [{ type: i1.Router }] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataRouter.js","sourceRoot":"","sources":["../../../../../router/src/services/routing/dataRouter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AACzC,OAAO,EAAC,MAAM,EAAE,aAAa,EAAE,eAAe,EAAE,YAAY,EAAE,eAAe,EAAC,MAAM,iBAAiB,CAAC;AACtG,OAAO,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAC;;;AAEvC,6EAA6E;AAE7E;;GAEG;AAEH,MAAM,OAAO,UAAU;
|
|
1
|
+
{"version":3,"file":"dataRouter.js","sourceRoot":"","sources":["../../../../../router/src/services/routing/dataRouter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AACzC,OAAO,EAAC,MAAM,EAAE,aAAa,EAAE,eAAe,EAAE,YAAY,EAAE,eAAe,EAAC,MAAM,iBAAiB,CAAC;AACtG,OAAO,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAC;;;AAEvC,6EAA6E;AAE7E;;GAEG;AAEH,MAAM,OAAO,UAAU;IAmBnB,uEAAuE;IAEvE;;OAEG;IACH,IAAW,YAAY;QAEnB,OAAO,IAAI,CAAC,aAAa,IAAI,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACvD,CAAC;IAED,iEAAiE;IACjE,YAAoB,OAAe;QAAf,YAAO,GAAP,OAAO,CAAQ;QA5BnC,oEAAoE;QAEpE;;WAEG;QACK,eAAU,GAAU,IAAI,CAAC;QAEjC;;WAEG;QACK,iBAAY,GAAgB,IAAI,CAAC;QAEzC;;WAEG;QACK,kBAAa,GAAwB,IAAI,CAAC;QAe9C,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE;YAEjC,uBAAuB;YACvB,IAAG,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,EAC7B,CAAC;gBACG,OAAO;YACX,CAAC;YAED,mDAAmD;YACnD,IAAG,IAAI,YAAY,eAAe,EAClC,CAAC;gBACG,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;gBAE1B,OAAO;YACX,CAAC;YAED,wDAAwD;YACxD,IAAG,IAAI,YAAY,aAAa,EAChC,CAAC;gBACG,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;gBACzB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;gBAEvB,qDAAqD;gBACrD,IAAG,IAAI,CAAC,YAAY,IAAI,IAAI,CAAC,GAAG,EAChC,CAAC;oBACG,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;gBAC9B,CAAC;YACL,CAAC;YAED,0BAA0B;YAC1B,IAAG,IAAI,YAAY,eAAe,EAClC,CAAC;gBACG,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;gBACzB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;gBACvB,IAAI,CAAC,aAAa,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;gBAE3C,OAAO;YACX,CAAC;YAED,iCAAiC;YACjC,IAAG,CAAC,CAAC,IAAI,YAAY,YAAY,CAAC,EAClC,CAAC;gBACG,OAAO;YACX,CAAC;YAED,6BAA6B;YAC7B,IAAG,IAAI,CAAC,YAAY,IAAI,IAAI,CAAC,GAAG,EAChC,CAAC;gBACG,IAAI,CAAC,aAAa,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YAC1D,CAAC;QACL,CAAC,CAAC,CAAC;IACP,CAAC;IAED,oEAAoE;IAEpE;;;;;OAKG;IACI,QAAQ,CAAC,UAAiB,EAAE,SAAgB;QAE/C,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAC5B,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC,QAAQ,EAAE,CAAC;QAEtE,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IAC7C,CAAC;8GAnGQ,UAAU;kHAAV,UAAU,cADE,MAAM;;2FAClB,UAAU;kBADtB,UAAU;mBAAC,EAAC,UAAU,EAAE,MAAM,EAAC","sourcesContent":["import {Injectable} from '@angular/core';\nimport {Router, NavigationEnd, NavigationError, ResolveStart, NavigationStart} from '@angular/router';\nimport {isBlank} from '@jscrpt/common';\n\n//TODO: think of complicated redirects between ResolveStart and NavigationEnd\n\n/**\n * Special implementation of router that allows routing with sending complex data to routed component\n */\n@Injectable({providedIn: 'root'})\nexport class DataRouter<TData = any>\n{\n //######################### private fields #########################\n\n /**\n * Value that is going to be used for next routed data\n */\n private _nextValue: TData = null;\n\n /**\n * Url path of next route\n */\n private _nextUrlPath: string|null = null;\n\n /**\n * Promise that resolves into value for current route\n */\n private _valuePromise: Promise<TData>|null = null;\n\n //######################### public properties #########################\n\n /**\n * Gets promise that resolves into value for current route\n */\n public get valuePromise(): Promise<TData>\n {\n return this._valuePromise || Promise.resolve(null);\n }\n\n //######################### constructor #########################\n constructor(private _router: Router)\n {\n this._router.events.subscribe(next =>\n {\n //do not use DataRouter\n if(isBlank(this._nextUrlPath))\n {\n return;\n }\n\n //if navigation started throw away previous promise\n if(next instanceof NavigationStart)\n {\n this._valuePromise = null;\n\n return;\n }\n\n //clears next value and next url after end of navigation\n if(next instanceof NavigationEnd)\n {\n this._nextUrlPath = null;\n this._nextValue = null;\n\n //if navigated to different route clear value promise\n if(this._nextUrlPath != next.url)\n {\n this._valuePromise = null;\n }\n }\n\n //if error throw away data\n if(next instanceof NavigationError)\n {\n this._nextUrlPath = null;\n this._nextValue = null;\n this._valuePromise = Promise.resolve(null);\n\n return;\n }\n\n //if not ResolveStart, do nothing\n if(!(next instanceof ResolveStart))\n {\n return;\n }\n\n //navigating to requested URL\n if(this._nextUrlPath == next.url)\n {\n this._valuePromise = Promise.resolve(this._nextValue);\n }\n });\n }\n\n //######################### public methods #########################\n\n /**\n * Navigate based on the provided Route Link DSL. This method also allows you to provide complex data for your route\n * @param linkParams - Link params that are used as for standard router\n * @param routeData - Any type of object that can be passed to your routed component\n * @returns Promise\n */\n public navigate(linkParams: any[], routeData: TData): Promise<boolean>\n {\n this._nextValue = routeData;\n this._nextUrlPath = this._router.createUrlTree(linkParams).toString();\n\n return this._router.navigate(linkParams);\n }\n}\n"]}
|
|
@@ -7,19 +7,14 @@ import * as i1 from "./dataRouter";
|
|
|
7
7
|
* @deprecated - Do not use this class, use directly DataRouter
|
|
8
8
|
*/
|
|
9
9
|
export class DataRouterData {
|
|
10
|
-
//######################### public properties #########################
|
|
11
|
-
/**
|
|
12
|
-
* Value of DataRouter for currently routed page
|
|
13
|
-
*/
|
|
14
|
-
value;
|
|
15
10
|
//######################### constructors #########################
|
|
16
11
|
constructor(dataRouter) {
|
|
17
12
|
this.value = dataRouter.valuePromise;
|
|
18
13
|
}
|
|
19
|
-
static
|
|
20
|
-
static
|
|
14
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: DataRouterData, deps: [{ token: i1.DataRouter }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
15
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: DataRouterData }); }
|
|
21
16
|
}
|
|
22
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
17
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: DataRouterData, decorators: [{
|
|
23
18
|
type: Injectable
|
|
24
19
|
}], ctorParameters: () => [{ type: i1.DataRouter }] });
|
|
25
20
|
//# sourceMappingURL=dataRouterData.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataRouterData.js","sourceRoot":"","sources":["../../../../../router/src/services/routing/dataRouterData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AAEzC,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;;;AAExC;;;GAGG;AAEH,MAAM,OAAO,cAAc;
|
|
1
|
+
{"version":3,"file":"dataRouterData.js","sourceRoot":"","sources":["../../../../../router/src/services/routing/dataRouterData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AAEzC,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;;;AAExC;;;GAGG;AAEH,MAAM,OAAO,cAAc;IASvB,kEAAkE;IAClE,YAAY,UAAsB;QAE9B,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,YAAY,CAAC;IACzC,CAAC;8GAbQ,cAAc;kHAAd,cAAc;;2FAAd,cAAc;kBAD1B,UAAU","sourcesContent":["import {Injectable} from '@angular/core';\n\nimport {DataRouter} from './dataRouter';\n\n/**\n * Class that is used for obtaining complex routed data\n * @deprecated - Do not use this class, use directly DataRouter\n */\n@Injectable()\nexport class DataRouterData\n{\n //######################### public properties #########################\n \n /**\n * Value of DataRouter for currently routed page\n */\n public value: Promise<any>;\n \n //######################### constructors #########################\n constructor(dataRouter: DataRouter)\n {\n this.value = dataRouter.valuePromise;\n }\n}\n"]}
|
|
@@ -8,29 +8,27 @@ import * as i2 from "../../modules/tooltip/directives/tooltip/tooltip.directive"
|
|
|
8
8
|
/**
|
|
9
9
|
* Component used for displaying collapsible icon
|
|
10
10
|
*/
|
|
11
|
-
export class
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
visibleChange =
|
|
30
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: CollapsibleIconSAComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
31
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.5", type: CollapsibleIconSAComponent, isStandalone: true, selector: "collapsible-icon", inputs: { visible: "visible", titleText: "titleText", cssClass: "cssClass" }, outputs: { visibleChange: "visibleChange" }, ngImport: i0, template: "<a class=\"btn-icon\" [ngClass]=\"cssClass\" style=\"font-size: 1em;\" (click)=\"visible = !visible; visibleChange.emit(visible)\" [tooltip]=\"titleText | localize\">\r\n <div [class.plus]=\"!visible\" [class.minus]=\"visible\">\r\n <span class=\"vertical\"></span>\r\n <span class=\"horizontal\"></span>\r\n </div>\r\n</a>", styles: [":host\r\n{\r\n display: block;\r\n}\r\n\r\n/** TODO: change somehow, do not use .app-page and btn-icon maybe move into app itself away from this **/\r\n:host-context(.app-page) .btn-icon:active\r\n{\r\n transform: none;\r\n}\r\n\r\na\r\n{\r\n position: relative;\r\n display: block;\r\n width: 1em;\r\n height: 1em;\r\n}\r\n\r\ndiv\r\n{\r\n transform: translateX(calc(0.5em - 0.14em));\r\n}\r\n\r\n.vertical,\r\n.horizontal\r\n{\r\n position: absolute;\r\n border-style: solid;\r\n border-width: 0.15em;\r\n border-radius: 0.3em;\r\n display: block;\r\n height: 1em;\r\n}\r\n\r\n.plus .vertical\r\n{\r\n transition: all 350ms;\r\n transform: rotate(0deg);\r\n}\r\n\r\n.plus .horizontal\r\n{\r\n transition: all 260ms;\r\n transform: rotate(-90deg);\r\n opacity: 1;\r\n}\r\n\r\n.minus .vertical\r\n{\r\n transition: all 350ms;\r\n transform: rotate(-90deg);\r\n}\r\n\r\n.minus .horizontal\r\n{\r\n transition: all 260ms;\r\n transform: rotate(-180deg);\r\n opacity: 0;\r\n}"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i2.TooltipDirective, selector: "[tooltip]", inputs: ["tooltip", "allowHtml", "template", "tooltipOptions", "tooltipVisible", "containerElement"] }, { kind: "pipe", type: LocalizeSAPipe, name: "localize" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
11
|
+
export class CollapsibleIconComponent {
|
|
12
|
+
constructor() {
|
|
13
|
+
//######################### public properties - inputs #########################
|
|
14
|
+
/**
|
|
15
|
+
* Initial value, if visible set to true minus is displayed, otherwise plus is displayed
|
|
16
|
+
*/
|
|
17
|
+
this.visible = false;
|
|
18
|
+
/**
|
|
19
|
+
* Text of title
|
|
20
|
+
*/
|
|
21
|
+
this.titleText = 'show/hide detail';
|
|
22
|
+
//######################### public properties - outputs #########################
|
|
23
|
+
/**
|
|
24
|
+
* Occurs when visible change
|
|
25
|
+
*/
|
|
26
|
+
this.visibleChange = new EventEmitter();
|
|
27
|
+
}
|
|
28
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: CollapsibleIconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
29
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.1", type: CollapsibleIconComponent, isStandalone: true, selector: "collapsible-icon", inputs: { visible: "visible", titleText: "titleText", cssClass: "cssClass" }, outputs: { visibleChange: "visibleChange" }, ngImport: i0, template: "<a class=\"btn-icon\" [ngClass]=\"cssClass\" style=\"font-size: 1em;\" (click)=\"visible = !visible; visibleChange.emit(visible)\" [tooltip]=\"titleText | localize\">\r\n <div [class.plus]=\"!visible\" [class.minus]=\"visible\">\r\n <span class=\"vertical\"></span>\r\n <span class=\"horizontal\"></span>\r\n </div>\r\n</a>", styles: [":host\r\n{\r\n display: block;\r\n}\r\n\r\n/** TODO: change somehow, do not use .app-page and btn-icon maybe move into app itself away from this **/\r\n:host-context(.app-page) .btn-icon:active\r\n{\r\n transform: none;\r\n}\r\n\r\na\r\n{\r\n position: relative;\r\n display: block;\r\n width: 1em;\r\n height: 1em;\r\n}\r\n\r\ndiv\r\n{\r\n transform: translateX(calc(0.5em - 0.14em));\r\n}\r\n\r\n.vertical,\r\n.horizontal\r\n{\r\n position: absolute;\r\n border-style: solid;\r\n border-width: 0.15em;\r\n border-radius: 0.3em;\r\n display: block;\r\n height: 1em;\r\n}\r\n\r\n.plus .vertical\r\n{\r\n transition: all 350ms;\r\n transform: rotate(0deg);\r\n}\r\n\r\n.plus .horizontal\r\n{\r\n transition: all 260ms;\r\n transform: rotate(-90deg);\r\n opacity: 1;\r\n}\r\n\r\n.minus .vertical\r\n{\r\n transition: all 350ms;\r\n transform: rotate(-90deg);\r\n}\r\n\r\n.minus .horizontal\r\n{\r\n transition: all 260ms;\r\n transform: rotate(-180deg);\r\n opacity: 0;\r\n}"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i2.TooltipDirective, selector: "[tooltip]", inputs: ["tooltip", "allowHtml", "template", "tooltipOptions", "tooltipVisible", "containerElement"] }, { kind: "pipe", type: LocalizeSAPipe, name: "localize" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
32
30
|
}
|
|
33
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: CollapsibleIconComponent, decorators: [{
|
|
34
32
|
type: Component,
|
|
35
33
|
args: [{ selector: 'collapsible-icon', standalone: true, imports: [
|
|
36
34
|
CommonModule,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collapsibleIcon.component.js","sourceRoot":"","sources":["../../../../src/components/collapsibleIcon/collapsibleIcon.component.ts","../../../../src/components/collapsibleIcon/collapsibleIcon.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAC,MAAM,eAAe,CAAC;AAC9F,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAE7C,OAAO,EAAC,aAAa,EAAC,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;;;;AAE3C;;GAEG;AAeH,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"collapsibleIcon.component.js","sourceRoot":"","sources":["../../../../src/components/collapsibleIcon/collapsibleIcon.component.ts","../../../../src/components/collapsibleIcon/collapsibleIcon.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAC,MAAM,eAAe,CAAC;AAC9F,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAE7C,OAAO,EAAC,aAAa,EAAC,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;;;;AAE3C;;GAEG;AAeH,MAAM,OAAO,wBAAwB;IAdrC;QAgBI,gFAAgF;QAEhF;;WAEG;QAEI,YAAO,GAAY,KAAK,CAAC;QAEhC;;WAEG;QAEI,cAAS,GAAW,kBAAkB,CAAC;QAQ9C,iFAAiF;QAEjF;;WAEG;QAEI,kBAAa,GAA0B,IAAI,YAAY,EAAW,CAAC;KAC7E;8GA7BY,wBAAwB;kGAAxB,wBAAwB,uMCvBrC,yVAKI,0kCDYI,YAAY,4HACZ,aAAa,yMACb,cAAc;;2FAIT,wBAAwB;kBAdpC,SAAS;+BAEI,kBAAkB,cAGhB,IAAI,WAEhB;wBACI,YAAY;wBACZ,aAAa;wBACb,cAAc;qBACjB,mBACgB,uBAAuB,CAAC,MAAM;8BAUxC,OAAO;sBADb,KAAK;gBAOC,SAAS;sBADf,KAAK;gBAOC,QAAQ;sBADd,KAAK;gBASC,aAAa;sBADnB,MAAM","sourcesContent":["import {Component, ChangeDetectionStrategy, Input, Output, EventEmitter} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {TooltipModule} from '../../modules/tooltip';\nimport {LocalizeSAPipe} from '../../pipes';\n\n/**\n * Component used for displaying collapsible icon\n */\n@Component(\n{\n selector: 'collapsible-icon',\n templateUrl: 'collapsibleIcon.component.html',\n styleUrl: 'collapsibleIcon.component.css',\n standalone: true,\n imports:\n [\n CommonModule,\n TooltipModule,\n LocalizeSAPipe,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class CollapsibleIconComponent\n{\n //######################### public properties - inputs #########################\n\n /**\n * Initial value, if visible set to true minus is displayed, otherwise plus is displayed\n */\n @Input()\n public visible: boolean = false;\n\n /**\n * Text of title\n */\n @Input()\n public titleText: string = 'show/hide detail';\n\n /**\n * Css class applied to button\n */\n @Input()\n public cssClass: string|undefined|null;\n\n //######################### public properties - outputs #########################\n\n /**\n * Occurs when visible change\n */\n @Output()\n public visibleChange: EventEmitter<boolean> = new EventEmitter<boolean>();\n}","<a class=\"btn-icon\" [ngClass]=\"cssClass\" style=\"font-size: 1em;\" (click)=\"visible = !visible; visibleChange.emit(visible)\" [tooltip]=\"titleText | localize\">\r\n <div [class.plus]=\"!visible\" [class.minus]=\"visible\">\r\n <span class=\"vertical\"></span>\r\n <span class=\"horizontal\"></span>\r\n </div>\r\n</a>"]}
|
|
@@ -1,35 +1,33 @@
|
|
|
1
1
|
import { Component, ChangeDetectionStrategy, Input, Output, EventEmitter } from '@angular/core';
|
|
2
2
|
import { CommonModule } from '@angular/common';
|
|
3
3
|
import { HostDisplayBlockStyle } from '../../types/styles';
|
|
4
|
-
import {
|
|
4
|
+
import { CollapsibleIconComponent } from '../collapsibleIcon/collapsibleIcon.component';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
import * as i1 from "@angular/common";
|
|
7
7
|
/**
|
|
8
8
|
* Component used for displaying title with collapsible icon
|
|
9
9
|
*/
|
|
10
|
-
export class
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
visibleChange =
|
|
25
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: CollapsibleTitleSAComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
26
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.5", type: CollapsibleTitleSAComponent, isStandalone: true, selector: "collapsible-title", inputs: { visible: "visible", cssClass: "cssClass" }, outputs: { visibleChange: "visibleChange" }, ngImport: i0, template: "<div class=\"flex-row\" [ngClass]=\"cssClass\">\r\n <collapsible-icon cssClass=\"margin-right-small\" [visible]=\"visible\" (visibleChange)=\"visible = $event; visibleChange.emit($event)\"></collapsible-icon>\r\n\r\n <ng-content></ng-content>\r\n</div>", styles: [":host{display: block;}"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: CollapsibleIconSAComponent, selector: "collapsible-icon", inputs: ["visible", "titleText", "cssClass"], outputs: ["visibleChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
10
|
+
export class CollapsibleTitleComponent {
|
|
11
|
+
constructor() {
|
|
12
|
+
//######################### public properties - inputs #########################
|
|
13
|
+
/**
|
|
14
|
+
* Initial value, if visible set to true minus is displayed, otherwise plus is displayed
|
|
15
|
+
*/
|
|
16
|
+
this.visible = false;
|
|
17
|
+
//######################### public properties - outputs #########################
|
|
18
|
+
/**
|
|
19
|
+
* Occurs when visible change
|
|
20
|
+
*/
|
|
21
|
+
this.visibleChange = new EventEmitter();
|
|
22
|
+
}
|
|
23
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: CollapsibleTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
24
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.1", type: CollapsibleTitleComponent, isStandalone: true, selector: "collapsible-title", inputs: { visible: "visible", cssClass: "cssClass" }, outputs: { visibleChange: "visibleChange" }, ngImport: i0, template: "<div class=\"flex-row\" [ngClass]=\"cssClass\">\r\n <collapsible-icon cssClass=\"margin-right-small\" [visible]=\"visible\" (visibleChange)=\"visible = $event; visibleChange.emit($event)\"></collapsible-icon>\r\n\r\n <ng-content></ng-content>\r\n</div>", styles: [":host{display: block;}"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: CollapsibleIconComponent, selector: "collapsible-icon", inputs: ["visible", "titleText", "cssClass"], outputs: ["visibleChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
27
25
|
}
|
|
28
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: CollapsibleTitleComponent, decorators: [{
|
|
29
27
|
type: Component,
|
|
30
28
|
args: [{ selector: 'collapsible-title', standalone: true, imports: [
|
|
31
29
|
CommonModule,
|
|
32
|
-
|
|
30
|
+
CollapsibleIconComponent,
|
|
33
31
|
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"flex-row\" [ngClass]=\"cssClass\">\r\n <collapsible-icon cssClass=\"margin-right-small\" [visible]=\"visible\" (visibleChange)=\"visible = $event; visibleChange.emit($event)\"></collapsible-icon>\r\n\r\n <ng-content></ng-content>\r\n</div>", styles: [":host{display: block;}"] }]
|
|
34
32
|
}], propDecorators: { visible: [{
|
|
35
33
|
type: Input
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collapsibleTitle.component.js","sourceRoot":"","sources":["../../../../src/components/collapsibleTitle/collapsibleTitle.component.ts","../../../../src/components/collapsibleTitle/collapsibleTitle.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAC,MAAM,eAAe,CAAC;AAC9F,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAE7C,OAAO,EAAC,qBAAqB,EAAC,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"collapsibleTitle.component.js","sourceRoot":"","sources":["../../../../src/components/collapsibleTitle/collapsibleTitle.component.ts","../../../../src/components/collapsibleTitle/collapsibleTitle.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAC,MAAM,eAAe,CAAC;AAC9F,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAE7C,OAAO,EAAC,qBAAqB,EAAC,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAC,wBAAwB,EAAC,MAAM,8CAA8C,CAAC;;;AAEtF;;GAEG;AAcH,MAAM,OAAO,yBAAyB;IAbtC;QAeI,gFAAgF;QAEhF;;WAEG;QAEI,YAAO,GAAY,KAAK,CAAC;QAQhC,iFAAiF;QAEjF;;WAEG;QAEI,kBAAa,GAA0B,IAAI,YAAY,EAAW,CAAC;KAC7E;8GAvBY,yBAAyB;kGAAzB,yBAAyB,gLCtBtC,oQAIM,+EDaE,YAAY,6HACZ,wBAAwB;;2FAInB,yBAAyB;kBAbrC,SAAS;+BAEI,mBAAmB,cAGjB,IAAI,WAEhB;wBACI,YAAY;wBACZ,wBAAwB;qBAC3B,mBACgB,uBAAuB,CAAC,MAAM;8BAUxC,OAAO;sBADb,KAAK;gBAOC,QAAQ;sBADd,KAAK;gBASC,aAAa;sBADnB,MAAM","sourcesContent":["import {Component, ChangeDetectionStrategy, Input, Output, EventEmitter} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {HostDisplayBlockStyle} from '../../types/styles';\nimport {CollapsibleIconComponent} from '../collapsibleIcon/collapsibleIcon.component';\n\n/**\n * Component used for displaying title with collapsible icon\n */\n@Component(\n{\n selector: 'collapsible-title',\n templateUrl: 'collapsibleTitle.component.html',\n styles: [HostDisplayBlockStyle],\n standalone: true,\n imports:\n [\n CommonModule,\n CollapsibleIconComponent,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class CollapsibleTitleComponent\n{\n //######################### public properties - inputs #########################\n\n /**\n * Initial value, if visible set to true minus is displayed, otherwise plus is displayed\n */\n @Input()\n public visible: boolean = false;\n\n /**\n * Css class applied to button\n */\n @Input()\n public cssClass: string|undefined|null;\n\n //######################### public properties - outputs #########################\n\n /**\n * Occurs when visible change\n */\n @Output()\n public visibleChange: EventEmitter<boolean> = new EventEmitter<boolean>();\n}","<div class=\"flex-row\" [ngClass]=\"cssClass\">\r\n <collapsible-icon cssClass=\"margin-right-small\" [visible]=\"visible\" (visibleChange)=\"visible = $event; visibleChange.emit($event)\"></collapsible-icon>\r\n\r\n <ng-content></ng-content>\r\n</div>"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asSignal.decorator.js","sourceRoot":"","sources":["../../../../src/decorators/asSignal/asSignal.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,MAAM,EAAC,MAAM,eAAe,CAAC;AAErD;;GAEG;AACH,MAAM,UAAU,QAAQ;IAEpB,OAAO,UAAU,MAAc,EAAE,WAA0B;QAEvD,MAAM,YAAY,GAAG,MAAM,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC,CAAC;QAEpD,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,WAAW,EACzC;YACI,YAAY,EAAE,KAAK;YACnB,UAAU,EAAE,IAAI;YAChB,GAAG,EAAE;gBAED,OAAO,IAAI,CAAC,YAAY,CAAC,EAAE,EAAE,CAAC;YAClC,CAAC;YACD,GAAG,EAAE,UAAyD,KAAc;gBAExE,IAAG,CAAC,MAAM,CAAC,wBAAwB,CAAC,IAAI,EAAE,YAAY,CAAC,EACvD;
|
|
1
|
+
{"version":3,"file":"asSignal.decorator.js","sourceRoot":"","sources":["../../../../src/decorators/asSignal/asSignal.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,MAAM,EAAC,MAAM,eAAe,CAAC;AAErD;;GAEG;AACH,MAAM,UAAU,QAAQ;IAEpB,OAAO,UAAU,MAAc,EAAE,WAA0B;QAEvD,MAAM,YAAY,GAAG,MAAM,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC,CAAC;QAEpD,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,WAAW,EACzC;YACI,YAAY,EAAE,KAAK;YACnB,UAAU,EAAE,IAAI;YAChB,GAAG,EAAE;gBAED,OAAO,IAAI,CAAC,YAAY,CAAC,EAAE,EAAE,CAAC;YAClC,CAAC;YACD,GAAG,EAAE,UAAyD,KAAc;gBAExE,IAAG,CAAC,MAAM,CAAC,wBAAwB,CAAC,IAAI,EAAE,YAAY,CAAC,EACvD,CAAC;oBACG,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,YAAY,EACxC;wBACI,YAAY,EAAE,KAAK;wBACnB,UAAU,EAAE,KAAK;wBACjB,QAAQ,EAAE,IAAI;wBACd,KAAK,EAAE,MAAM,CAAC,SAAS,CAAC;qBAC3B,CAAC,CAAC;gBACP,CAAC;gBAED,IAAI,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;YAClC,CAAC;SACJ,CAAC,CAAC;IACP,CAAC,CAAC;AACN,CAAC","sourcesContent":["import {WritableSignal, signal} from '@angular/core';\n\n/**\n * Creates backing field for this property as WritableSignal, reads and write to it\n */\nexport function AsSignal(): PropertyDecorator\n{\n return function (target: Object, propertyKey: string|symbol): void\n {\n const backingField = Symbol(propertyKey.toString());\n\n Object.defineProperty(target, propertyKey,\n {\n configurable: false,\n enumerable: true,\n get: function(this: {[key: symbol]: WritableSignal<unknown>})\n {\n return this[backingField]?.();\n },\n set: function(this: {[key: symbol]: WritableSignal<unknown>}, value: unknown)\n {\n if(!Object.getOwnPropertyDescriptor(this, backingField))\n {\n Object.defineProperty(this, backingField,\n {\n configurable: false,\n enumerable: false,\n writable: true,\n value: signal(undefined),\n });\n }\n\n this[backingField].set(value);\n }\n });\n };\n}"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"componentHostStyle.decorator.js","sourceRoot":"","sources":["../../../../src/decorators/componentHostStyle/componentHostStyle.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,iBAAiB,EAAgC,MAAM,eAAe,CAAC;AAE/E;;;;;GAKG;AACH,MAAM,UAAU,kBAAkB,CAAC,QAAgB;IAE/C,OAAO,UAAsC,MAAiB;QAE1D,MAAM,eAAe,GAA8B,MAAa,CAAC;QAEjE,IAAG,CAAC,eAAe,CAAC,IAAI,EACxB;
|
|
1
|
+
{"version":3,"file":"componentHostStyle.decorator.js","sourceRoot":"","sources":["../../../../src/decorators/componentHostStyle/componentHostStyle.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,iBAAiB,EAAgC,MAAM,eAAe,CAAC;AAE/E;;;;;GAKG;AACH,MAAM,UAAU,kBAAkB,CAAC,QAAgB;IAE/C,OAAO,UAAsC,MAAiB;QAE1D,MAAM,eAAe,GAA8B,MAAa,CAAC;QAEjE,IAAG,CAAC,eAAe,CAAC,IAAI,EACxB,CAAC;YACG,MAAM,IAAI,KAAK,CAAC,4CAA4C,MAAM,CAAC,IAAI,GAAG,CAAC,CAAC;QAChF,CAAC;QAED,MAAM,MAAM,GAA6B,eAAe,CAAC,IAAgC,CAAC;QAE1F,IAAG,CAAC,MAAM,CAAC,MAAM,EACjB,CAAC;YACG,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;QACnD,CAAC;QAED,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,aAAa,IAAI,iBAAiB,CAAC,QAAQ,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,OAAO,IAAI,QAAQ,GAAG,CAAC,CAAC;QAExH,OAAO,MAAM,CAAC;IAClB,CAAC,CAAC;AACN,CAAC","sourcesContent":["import {ViewEncapsulation, ɵComponentDef, ɵComponentType} from '@angular/core';\n\n/**\n * Applies css styles to host of component, requires at least empty style on Component\n * @param cssStyle - Css style properties to be applied\n * \n * @experimental\n */\nexport function ComponentHostStyle(cssStyle: string): ClassDecorator\n{\n return function<TFunction extends Function> (target: TFunction): TFunction|void\n {\n const targetComponent: ɵComponentType<TFunction> = target as any;\n\n if(!targetComponent.ɵcmp)\n {\n throw new Error(`Unable to apply 'ComponentHostStyle' to '${target.name}'`);\n }\n\n const cmpDef: ɵComponentDef<TFunction> = targetComponent.ɵcmp as ɵComponentDef<TFunction>;\n\n if(!cmpDef.styles)\n {\n throw new Error('Missing styles on component');\n }\n\n cmpDef.styles.push(`${cmpDef.encapsulation == ViewEncapsulation.Emulated ? '[_nghost-%COMP%]' : ':host'}{${cssStyle}}`);\n \n return target;\n };\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typeProvider.decorator.js","sourceRoot":"","sources":["../../../../src/decorators/typeProvider/typeProvider.decorator.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,MAAM,EAAC,MAAM,gBAAgB,CAAC;AAatC;;;GAGG;AACH,MAAM,UAAU,kBAAkB,CAAC,IAAmB;IAElD,MAAM,gBAAgB,GAAG,IAA6B,CAAC;IAEvD,IAAG,CAAC,gBAAgB,CAAC,UAAU,EAC/B;
|
|
1
|
+
{"version":3,"file":"typeProvider.decorator.js","sourceRoot":"","sources":["../../../../src/decorators/typeProvider/typeProvider.decorator.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,MAAM,EAAC,MAAM,gBAAgB,CAAC;AAatC;;;GAGG;AACH,MAAM,UAAU,kBAAkB,CAAC,IAAmB;IAElD,MAAM,gBAAgB,GAAG,IAA6B,CAAC;IAEvD,IAAG,CAAC,gBAAgB,CAAC,UAAU,EAC/B,CAAC;QACG,MAAM,IAAI,KAAK,CAAC,QAAQ,IAAI,uBAAuB,CAAC,CAAC;IACzD,CAAC;IAED,OAAO,gBAAgB,CAAC,UAAU,CAAC;AACvC,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,YAAY,CAAC,QAAkB;IAE3C,wDAAwD;IACxD,OAAO,UAAsC,MAAiB;QAE1D,MAAM,gBAAgB,GAAG,MAA+B,CAAC;QAEzD,IAAG,CAAC,gBAAgB,CAAC,UAAU,EAC/B,CAAC;YACG,MAAM,CAAC,cAAc,CAAC,gBAAgB,EAAE,MAAM,CAAwB,YAAY,CAAC,EACnF;gBACI,KAAK,EAAE,QAAQ;gBACf,QAAQ,EAAE,KAAK;gBACf,UAAU,EAAE,KAAK;gBACjB,YAAY,EAAE,KAAK;aACtB,CAAC,CAAC;QACP,CAAC;QAED,OAAO,MAAM,CAAC;IAClB,CAAC,CAAC;AACN,CAAC","sourcesContent":["import {Provider, Type} from '@angular/core';\nimport {nameof} from '@jscrpt/common';\n\n/**\n * Type that contains provider\n */\ninterface ProviderDecoratedType\n{\n /**\n * Provider that is attached to type\n */\n ɵɵprovider?: Provider;\n}\n\n/**\n * Gets provider from type\n * @param type - Type that should contain provider\n */\nexport function getProviderForType(type: Type<unknown>): Provider\n{\n const typeWithProvider = type as ProviderDecoratedType;\n\n if(!typeWithProvider.ɵɵprovider)\n {\n throw new Error(`Type ${type} is without provider!`);\n }\n\n return typeWithProvider.ɵɵprovider;\n}\n\n/**\n * Attach provider to type\n * @param provider - Provider to be attached\n */\nexport function TypeProvider(provider: Provider): ClassDecorator\n{\n // eslint-disable-next-line @typescript-eslint/ban-types\n return function<TFunction extends Function> (target: TFunction): TFunction\n {\n const typeWithProvider = target as ProviderDecoratedType;\n \n if(!typeWithProvider.ɵɵprovider)\n {\n Object.defineProperty(typeWithProvider, nameof<ProviderDecoratedType>('ɵɵprovider'),\n {\n value: provider,\n writable: false,\n enumerable: false,\n configurable: false,\n });\n }\n\n return target;\n };\n}"]}
|
|
@@ -5,26 +5,7 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
/**
|
|
6
6
|
* Renders element into body directly at the end
|
|
7
7
|
*/
|
|
8
|
-
export class
|
|
9
|
-
template;
|
|
10
|
-
viewContainer;
|
|
11
|
-
document;
|
|
12
|
-
//######################### protected properties #########################
|
|
13
|
-
/**
|
|
14
|
-
* Instance of created embedded view
|
|
15
|
-
*/
|
|
16
|
-
view;
|
|
17
|
-
/**
|
|
18
|
-
* Instance of created element
|
|
19
|
-
*/
|
|
20
|
-
element;
|
|
21
|
-
//######################### public properties - inputs #########################
|
|
22
|
-
/**
|
|
23
|
-
* String that defines element in which should be template rendered, if not specified, body is used
|
|
24
|
-
*
|
|
25
|
-
* Allows also css class to be specified (div.body-box)
|
|
26
|
-
*/
|
|
27
|
-
targetElement;
|
|
8
|
+
export class BodyRenderDirective {
|
|
28
9
|
//######################### constructor #########################
|
|
29
10
|
constructor(template, viewContainer, document) {
|
|
30
11
|
this.template = template;
|
|
@@ -51,10 +32,10 @@ export class BodyRenderSADirective {
|
|
|
51
32
|
this.view?.destroy();
|
|
52
33
|
this.view = null;
|
|
53
34
|
}
|
|
54
|
-
static
|
|
55
|
-
static
|
|
35
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: BodyRenderDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
36
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.1", type: BodyRenderDirective, isStandalone: true, selector: "[bodyRender]", inputs: { targetElement: ["bodyRender", "targetElement"] }, ngImport: i0 }); }
|
|
56
37
|
}
|
|
57
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
38
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: BodyRenderDirective, decorators: [{
|
|
58
39
|
type: Directive,
|
|
59
40
|
args: [{
|
|
60
41
|
selector: '[bodyRender]',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bodyRender.directive.js","sourceRoot":"","sources":["../../../../src/directives/bodyRender/bodyRender.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAmB,MAAM,EAAE,KAAK,EAAqB,WAAW,EAAE,gBAAgB,EAAC,MAAM,eAAe,CAAC;AAC1H,OAAO,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;;AAE5C;;GAEG;AAMH,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"bodyRender.directive.js","sourceRoot":"","sources":["../../../../src/directives/bodyRender/bodyRender.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAmB,MAAM,EAAE,KAAK,EAAqB,WAAW,EAAE,gBAAgB,EAAC,MAAM,eAAe,CAAC;AAC1H,OAAO,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;;AAE5C;;GAEG;AAMH,MAAM,OAAO,mBAAmB;IAwB5B,iEAAiE;IACjE,YAAsB,QAA2B,EAC3B,aAA+B,EACb,QAAkB;QAFpC,aAAQ,GAAR,QAAQ,CAAmB;QAC3B,kBAAa,GAAb,aAAa,CAAkB;QACb,aAAQ,GAAR,QAAQ,CAAU;IAE1D,CAAC;IAED,+FAA+F;IAE/F;;OAEG;IACI,QAAQ;QAEX,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,aAAa;aACzB,kBAAkB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAEvC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAgB,CAAC;QAErD,YAAY,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;IAClE,CAAC;IAED,kGAAkG;IAElG;;OAEG;IACI,WAAW;QAEd,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;QACpB,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACrB,CAAC;8GAzDQ,mBAAmB,6EA2BR,QAAQ;kGA3BnB,mBAAmB;;2FAAnB,mBAAmB;kBAL/B,SAAS;mBACV;oBACI,QAAQ,EAAE,cAAc;oBACxB,UAAU,EAAE,IAAI;iBACnB;;0BA4BgB,MAAM;2BAAC,QAAQ;yCALrB,aAAa;sBADnB,KAAK;uBAAC,YAAY","sourcesContent":["import {Directive, EmbeddedViewRef, Inject, Input, OnDestroy, OnInit, TemplateRef, ViewContainerRef} from '@angular/core';\nimport {DOCUMENT} from '@angular/common';\nimport {renderToBody} from '@jscrpt/common';\n\n/**\n * Renders element into body directly at the end\n */\n@Directive(\n{\n selector: '[bodyRender]',\n standalone: true\n})\nexport class BodyRenderDirective implements OnInit, OnDestroy\n{\n //######################### protected properties #########################\n\n /**\n * Instance of created embedded view\n */\n protected view: EmbeddedViewRef<void>|undefined|null;\n\n /**\n * Instance of created element\n */\n protected element: HTMLElement|undefined|null;\n\n //######################### public properties - inputs #########################\n\n /**\n * String that defines element in which should be template rendered, if not specified, body is used\n * \n * Allows also css class to be specified (div.body-box)\n */\n @Input('bodyRender')\n public targetElement: string|undefined|null;\n\n //######################### constructor #########################\n constructor(protected template: TemplateRef<void>,\n protected viewContainer: ViewContainerRef,\n @Inject(DOCUMENT) protected document: Document,)\n {\n }\n\n //######################### public methods - implementation of OnInit #########################\n \n /**\n * Initialize component\n */\n public ngOnInit(): void\n {\n this.view = this.viewContainer\n .createEmbeddedView(this.template);\n\n this.element = this.view.rootNodes[0] as HTMLElement;\n\n renderToBody(this.document, this.element, this.targetElement);\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n \n /**\n * Called when component is destroyed\n */\n public ngOnDestroy(): void\n {\n this.element?.remove();\n this.element = null;\n this.view?.destroy();\n this.view = null;\n }\n}"]}
|
|
@@ -6,14 +6,6 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
* Directive that handles click outside of element
|
|
7
7
|
*/
|
|
8
8
|
export class ClickOutsideSADirective {
|
|
9
|
-
element;
|
|
10
|
-
document;
|
|
11
|
-
ngZone;
|
|
12
|
-
//######################### protected fields #########################
|
|
13
|
-
/**
|
|
14
|
-
* Variable that is used for displaying element that handles click outside
|
|
15
|
-
*/
|
|
16
|
-
ɵclickOutsideCondition = false;
|
|
17
9
|
//######################### public properties - inputs #########################
|
|
18
10
|
/**
|
|
19
11
|
* Variable that is used for displaying element that handles click outside
|
|
@@ -28,20 +20,35 @@ export class ClickOutsideSADirective {
|
|
|
28
20
|
}
|
|
29
21
|
this.ɵclickOutsideCondition = value;
|
|
30
22
|
}
|
|
31
|
-
/**
|
|
32
|
-
* Additional element that is checked for click
|
|
33
|
-
*/
|
|
34
|
-
clickOutsideElement;
|
|
35
|
-
//######################### public properties - outputs #########################
|
|
36
|
-
/**
|
|
37
|
-
* Used for emitting event when click outside occurs
|
|
38
|
-
*/
|
|
39
|
-
clickOutsideConditionChange = new EventEmitter();
|
|
40
23
|
//######################### constructor #########################
|
|
41
24
|
constructor(element, document, ngZone) {
|
|
42
25
|
this.element = element;
|
|
43
26
|
this.document = document;
|
|
44
27
|
this.ngZone = ngZone;
|
|
28
|
+
//######################### protected fields #########################
|
|
29
|
+
/**
|
|
30
|
+
* Variable that is used for displaying element that handles click outside
|
|
31
|
+
*/
|
|
32
|
+
this.ɵclickOutsideCondition = false;
|
|
33
|
+
//######################### public properties - outputs #########################
|
|
34
|
+
/**
|
|
35
|
+
* Used for emitting event when click outside occurs
|
|
36
|
+
*/
|
|
37
|
+
this.clickOutsideConditionChange = new EventEmitter();
|
|
38
|
+
//######################### protected methods #########################
|
|
39
|
+
/**
|
|
40
|
+
* Handles click outside of element
|
|
41
|
+
* @param event - Mouse event object
|
|
42
|
+
*/
|
|
43
|
+
this.handleClickOutside = (event) => {
|
|
44
|
+
if (this.element.nativeElement != event.target &&
|
|
45
|
+
!isDescendant(this.element.nativeElement, event.target) &&
|
|
46
|
+
(!this.clickOutsideElement || (this.clickOutsideElement != event.target &&
|
|
47
|
+
!isDescendant(this.clickOutsideElement, event.target)))) {
|
|
48
|
+
this.clickOutsideCondition = !this.clickOutsideCondition;
|
|
49
|
+
this.clickOutsideConditionChange.emit(this.clickOutsideCondition);
|
|
50
|
+
}
|
|
51
|
+
};
|
|
45
52
|
}
|
|
46
53
|
//######################### public methods - implementation of OnInit #########################
|
|
47
54
|
/**
|
|
@@ -61,29 +68,10 @@ export class ClickOutsideSADirective {
|
|
|
61
68
|
this.document.removeEventListener('mouseup', this.handleClickOutside);
|
|
62
69
|
});
|
|
63
70
|
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
* Handles click outside of element
|
|
67
|
-
* @param event - Mouse event object
|
|
68
|
-
*/
|
|
69
|
-
handleClickOutside = (event) => {
|
|
70
|
-
if (this.element.nativeElement != event.target &&
|
|
71
|
-
!isDescendant(this.element.nativeElement, event.target) &&
|
|
72
|
-
(!this.clickOutsideElement || (this.clickOutsideElement != event.target &&
|
|
73
|
-
!isDescendant(this.clickOutsideElement, event.target)))) {
|
|
74
|
-
this.clickOutsideCondition = !this.clickOutsideCondition;
|
|
75
|
-
this.clickOutsideConditionChange.emit(this.clickOutsideCondition);
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
//######################### ng language server #########################
|
|
79
|
-
/**
|
|
80
|
-
* Custom input type for `clickOutsideCondition` input
|
|
81
|
-
*/
|
|
82
|
-
static ngAcceptInputType_clickOutsideCondition;
|
|
83
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: ClickOutsideSADirective, deps: [{ token: i0.ElementRef }, { token: DOCUMENT }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
84
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.5", type: ClickOutsideSADirective, isStandalone: true, selector: "[clickOutside]", inputs: { clickOutsideCondition: ["clickOutside", "clickOutsideCondition"], clickOutsideElement: "clickOutsideElement" }, outputs: { clickOutsideConditionChange: "clickOutsideChange" }, ngImport: i0 });
|
|
71
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: ClickOutsideSADirective, deps: [{ token: i0.ElementRef }, { token: DOCUMENT }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
72
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.1", type: ClickOutsideSADirective, isStandalone: true, selector: "[clickOutside]", inputs: { clickOutsideCondition: ["clickOutside", "clickOutsideCondition"], clickOutsideElement: "clickOutsideElement" }, outputs: { clickOutsideConditionChange: "clickOutsideChange" }, ngImport: i0 }); }
|
|
85
73
|
}
|
|
86
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
74
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: ClickOutsideSADirective, decorators: [{
|
|
87
75
|
type: Directive,
|
|
88
76
|
args: [{
|
|
89
77
|
selector: '[clickOutside]',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clickOutside.directive.js","sourceRoot":"","sources":["../../../../src/directives/clickOutside/clickOutside.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAqB,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAC,MAAM,eAAe,CAAC;AACpH,OAAO,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAC,YAAY,EAAE,QAAQ,EAAC,MAAM,gBAAgB,CAAC;;AAEtD;;GAEG;AAMH,MAAM,OAAO,uBAAuB;
|
|
1
|
+
{"version":3,"file":"clickOutside.directive.js","sourceRoot":"","sources":["../../../../src/directives/clickOutside/clickOutside.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAqB,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAC,MAAM,eAAe,CAAC;AACpH,OAAO,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAC,YAAY,EAAE,QAAQ,EAAC,MAAM,gBAAgB,CAAC;;AAEtD;;GAEG;AAMH,MAAM,OAAO,uBAAuB;IAShC,gFAAgF;IAEhF;;OAEG;IACH,IACW,qBAAqB;QAE5B,OAAO,IAAI,CAAC,sBAAsB,CAAC;IACvC,CAAC;IACD,IAAW,qBAAqB,CAAC,KAAc;QAE3C,IAAG,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,KAAK,EAAE,EAClC,CAAC;YACG,IAAI,CAAC,sBAAsB,GAAG,IAAI,CAAC;YAEnC,OAAO;QACX,CAAC;QAED,IAAI,CAAC,sBAAsB,GAAG,KAAK,CAAC;IACxC,CAAC;IAgBD,iEAAiE;IACjE,YAAsB,OAAgC,EACd,QAAkB,EACpC,MAAc;QAFd,YAAO,GAAP,OAAO,CAAyB;QACd,aAAQ,GAAR,QAAQ,CAAU;QACpC,WAAM,GAAN,MAAM,CAAQ;QA9CpC,sEAAsE;QAEtE;;WAEG;QACO,2BAAsB,GAAY,KAAK,CAAC;QA8BlD,iFAAiF;QAEjF;;WAEG;QAEI,gCAA2B,GAA0B,IAAI,YAAY,EAAW,CAAC;QAmCxF,uEAAuE;QAEvE;;;WAGG;QACO,uBAAkB,GAAG,CAAC,KAAiB,EAAE,EAAE;YAEjD,IAAG,IAAI,CAAC,OAAO,CAAC,aAAa,IAAI,KAAK,CAAC,MAAM;gBAC1C,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,KAAK,CAAC,MAAqB,CAAC;gBACtE,CAAC,CAAC,IAAI,CAAC,mBAAmB,IAAI,CAAC,IAAI,CAAC,mBAAmB,IAAI,KAAK,CAAC,MAAM;oBACxC,CAAC,YAAY,CAAC,IAAI,CAAC,mBAAmB,EAAE,KAAK,CAAC,MAAqB,CAAC,CAAC,CAAC,EACxG,CAAC;gBACG,IAAI,CAAC,qBAAqB,GAAG,CAAC,IAAI,CAAC,qBAAqB,CAAC;gBACzD,IAAI,CAAC,2BAA2B,CAAC,IAAI,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;YACtE,CAAC;QACL,CAAC,CAAA;IA5CD,CAAC;IAED,+FAA+F;IAE/F;;OAEG;IACI,QAAQ;QAEX,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,GAAG,EAAE;YAE/B,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC,SAAS,EAAE,IAAI,CAAC,kBAAkB,CAAC,CAAC;QACvE,CAAC,CAAC,CAAC;IACP,CAAC;IAED,kGAAkG;IAElG;;OAEG;IACI,WAAW;QAEd,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,GAAG,EAAE;YAE/B,IAAI,CAAC,QAAQ,CAAC,mBAAmB,CAAC,SAAS,EAAE,IAAI,CAAC,kBAAkB,CAAC,CAAC;QAC1E,CAAC,CAAC,CAAC;IACP,CAAC;8GA5EQ,uBAAuB,4CA+CZ,QAAQ;kGA/CnB,uBAAuB;;2FAAvB,uBAAuB;kBALnC,SAAS;mBACV;oBACI,QAAQ,EAAE,gBAAgB;oBAC1B,UAAU,EAAE,IAAI;iBACnB;;0BAgDgB,MAAM;2BAAC,QAAQ;8DAhCjB,qBAAqB;sBAD/B,KAAK;uBAAC,cAAc;gBAqBd,mBAAmB;sBADzB,KAAK;gBASC,2BAA2B;sBADjC,MAAM;uBAAC,oBAAoB","sourcesContent":["import {Directive, OnInit, OnDestroy, Input, EventEmitter, Output, ElementRef, Inject, NgZone} from '@angular/core';\nimport {DOCUMENT} from '@angular/common';\nimport {isDescendant, isString} from '@jscrpt/common';\n\n/**\n * Directive that handles click outside of element\n */\n@Directive(\n{\n selector: '[clickOutside]',\n standalone: true,\n})\nexport class ClickOutsideSADirective implements OnInit, OnDestroy\n{\n //######################### protected fields #########################\n\n /**\n * Variable that is used for displaying element that handles click outside\n */\n protected ɵclickOutsideCondition: boolean = false;\n\n //######################### public properties - inputs #########################\n\n /**\n * Variable that is used for displaying element that handles click outside\n */\n @Input('clickOutside')\n public get clickOutsideCondition(): boolean\n {\n return this.ɵclickOutsideCondition;\n }\n public set clickOutsideCondition(value: boolean)\n {\n if(isString(value) && value === '')\n {\n this.ɵclickOutsideCondition = true;\n\n return;\n }\n\n this.ɵclickOutsideCondition = value;\n }\n\n /**\n * Additional element that is checked for click\n */\n @Input()\n public clickOutsideElement: HTMLElement|undefined|null;\n\n //######################### public properties - outputs #########################\n\n /**\n * Used for emitting event when click outside occurs\n */\n @Output('clickOutsideChange')\n public clickOutsideConditionChange: EventEmitter<boolean> = new EventEmitter<boolean>();\n\n //######################### constructor #########################\n constructor(protected element: ElementRef<HTMLElement>,\n @Inject(DOCUMENT) protected document: Document,\n protected ngZone: NgZone,)\n {\n }\n\n //######################### public methods - implementation of OnInit #########################\n \n /**\n * Initialize component\n */\n public ngOnInit(): void\n {\n this.ngZone.runOutsideAngular(() =>\n {\n this.document.addEventListener('mouseup', this.handleClickOutside);\n });\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n \n /**\n * Called when component is destroyed\n */\n public ngOnDestroy(): void\n {\n this.ngZone.runOutsideAngular(() =>\n {\n this.document.removeEventListener('mouseup', this.handleClickOutside);\n });\n }\n\n //######################### protected methods #########################\n\n /**\n * Handles click outside of element\n * @param event - Mouse event object\n */\n protected handleClickOutside = (event: MouseEvent) =>\n {\n if(this.element.nativeElement != event.target &&\n !isDescendant(this.element.nativeElement, event.target as HTMLElement) &&\n (!this.clickOutsideElement || (this.clickOutsideElement != event.target &&\n !isDescendant(this.clickOutsideElement, event.target as HTMLElement))))\n { \n this.clickOutsideCondition = !this.clickOutsideCondition;\n this.clickOutsideConditionChange.emit(this.clickOutsideCondition);\n }\n }\n\n //######################### ng language server #########################\n \n /**\n * Custom input type for `clickOutsideCondition` input\n */\n public static ngAcceptInputType_clickOutsideCondition: boolean|'';\n}"]}
|
|
@@ -7,45 +7,35 @@ import * as i1 from "../../modules/tooltip/directives/tooltip/tooltip.directive"
|
|
|
7
7
|
/**
|
|
8
8
|
* Directive that is used for displaying text from attached element in tooltip
|
|
9
9
|
*/
|
|
10
|
-
export class
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
*/
|
|
40
|
-
tooltipPrefix;
|
|
41
|
-
/**
|
|
42
|
-
* Tooltip suffix text to be appended to tooltip read from content
|
|
43
|
-
*/
|
|
44
|
-
tooltipSuffix;
|
|
45
|
-
/**
|
|
46
|
-
* Indication whether are html tags allowed in tooltip text
|
|
47
|
-
*/
|
|
48
|
-
allowHtml = false;
|
|
10
|
+
export class EllipsisTooltipDirective {
|
|
11
|
+
constructor() {
|
|
12
|
+
//######################### protected fields #########################
|
|
13
|
+
/**
|
|
14
|
+
* Instance of renderer
|
|
15
|
+
*/
|
|
16
|
+
this.renderer = inject(Renderer2);
|
|
17
|
+
/**
|
|
18
|
+
* Instance of tooltip directive
|
|
19
|
+
*/
|
|
20
|
+
this.tooltip = inject(TooltipDirective);
|
|
21
|
+
/**
|
|
22
|
+
* HTML element from which is text taken for tooltip
|
|
23
|
+
*/
|
|
24
|
+
this.elementValue = inject(ElementRef).nativeElement;
|
|
25
|
+
/**
|
|
26
|
+
* Instance of mutation observer used for watching
|
|
27
|
+
*/
|
|
28
|
+
this.textObserver = new MutationObserver(this.updateTooltip);
|
|
29
|
+
//######################### public properties - inputs #########################
|
|
30
|
+
/**
|
|
31
|
+
* Css class appliet to element
|
|
32
|
+
*/
|
|
33
|
+
this.ellipsisClass = 'text-ellipsis';
|
|
34
|
+
/**
|
|
35
|
+
* Indication whether are html tags allowed in tooltip text
|
|
36
|
+
*/
|
|
37
|
+
this.allowHtml = false;
|
|
38
|
+
}
|
|
49
39
|
/**
|
|
50
40
|
* Gets or sets HTML element from which is text taken for tooltip
|
|
51
41
|
*/
|
|
@@ -106,21 +96,16 @@ export class EllipsisTooltipSADirective {
|
|
|
106
96
|
}
|
|
107
97
|
this.tooltip.tooltip = text;
|
|
108
98
|
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
* Custom input type for `element` input
|
|
112
|
-
*/
|
|
113
|
-
static ngAcceptInputType_element;
|
|
114
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: EllipsisTooltipSADirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
115
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "17.0.5", type: EllipsisTooltipSADirective, isStandalone: true, selector: "[ellipsisTooltip]", inputs: { ellipsisClass: "ellipsisClass", tooltipPrefix: "tooltipPrefix", tooltipSuffix: "tooltipSuffix", allowHtml: ["allowHtml", "allowHtml", booleanAttribute], element: ["ellipsisTooltip", "element"] }, usesOnChanges: true, hostDirectives: [{ directive: i1.TooltipDirective }], ngImport: i0 });
|
|
99
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: EllipsisTooltipDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
100
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "18.0.1", type: EllipsisTooltipDirective, isStandalone: true, selector: "[ellipsisTooltip]", inputs: { ellipsisClass: "ellipsisClass", tooltipPrefix: "tooltipPrefix", tooltipSuffix: "tooltipSuffix", allowHtml: ["allowHtml", "allowHtml", booleanAttribute], element: ["ellipsisTooltip", "element"] }, usesOnChanges: true, hostDirectives: [{ directive: i1.TooltipDirective }], ngImport: i0 }); }
|
|
116
101
|
}
|
|
117
102
|
__decorate([
|
|
118
103
|
BindThis,
|
|
119
104
|
__metadata("design:type", Function),
|
|
120
105
|
__metadata("design:paramtypes", []),
|
|
121
106
|
__metadata("design:returntype", void 0)
|
|
122
|
-
],
|
|
123
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
107
|
+
], EllipsisTooltipDirective.prototype, "updateTooltip", null);
|
|
108
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: EllipsisTooltipDirective, decorators: [{
|
|
124
109
|
type: Directive,
|
|
125
110
|
args: [{
|
|
126
111
|
selector: '[ellipsisTooltip]',
|