@anglr/common 19.0.0-beta.20231109094203 → 19.0.0
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 +18 -0
- package/es2022/floating-ui/src/services/floatingUiDomPosition.service.js +6 -7
- package/es2022/floating-ui/src/services/floatingUiDomPosition.service.js.map +1 -1
- package/es2022/forms/src/components/defaultValidationErrors/defaultValidationErrors.component.js +5 -6
- package/es2022/forms/src/components/defaultValidationErrors/defaultValidationErrors.component.js.map +1 -1
- package/es2022/forms/src/components/defaultValidationErrorsContainer/defaultValidationErrorsContainer.component.js +5 -6
- package/es2022/forms/src/components/defaultValidationErrorsContainer/defaultValidationErrorsContainer.component.js.map +1 -1
- package/es2022/forms/src/components/reservedSpaceValidationErrorsContainer/reservedSpaceValidationErrorsContainer.component.js +4 -5
- package/es2022/forms/src/components/reservedSpaceValidationErrorsContainer/reservedSpaceValidationErrorsContainer.component.js.map +1 -1
- package/es2022/forms/src/directives/groupHasError/groupHasError.directive.js +5 -6
- package/es2022/forms/src/directives/groupHasError/groupHasError.directive.js.map +1 -1
- package/es2022/forms/src/directives/groupHasErrorContainer/groupHasErrorContainer.directive.js +4 -5
- package/es2022/forms/src/directives/groupHasErrorContainer/groupHasErrorContainer.directive.js.map +1 -1
- package/es2022/forms/src/directives/hasError/hasError.directive.js +6 -7
- package/es2022/forms/src/directives/hasError/hasError.directive.js.map +1 -1
- package/es2022/forms/src/directives/numberInput/maxValueNumberValidator.directive.js +6 -7
- package/es2022/forms/src/directives/numberInput/maxValueNumberValidator.directive.js.map +1 -1
- package/es2022/forms/src/directives/numberInput/minValueNumberValidator.directive.js +6 -7
- package/es2022/forms/src/directives/numberInput/minValueNumberValidator.directive.js.map +1 -1
- package/es2022/forms/src/directives/numberInput/numberInputControlValueAccessor.directive.js +5 -6
- package/es2022/forms/src/directives/numberInput/numberInputControlValueAccessor.directive.js.map +1 -1
- package/es2022/forms/src/directives/numberInput/numberInputValidator.directive.js +4 -5
- package/es2022/forms/src/directives/numberInput/numberInputValidator.directive.js.map +1 -1
- package/es2022/forms/src/directives/requiredClass/requiredClass.directive.js +6 -7
- package/es2022/forms/src/directives/requiredClass/requiredClass.directive.js.map +1 -1
- package/es2022/forms/src/directives/validationErrorsContainer/validationErrorsContainer.directive.js +6 -7
- package/es2022/forms/src/directives/validationErrorsContainer/validationErrorsContainer.directive.js.map +1 -1
- package/es2022/forms/src/modules/errorMessage/components/groupErrors/groupErrors.component.js +6 -7
- 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 +6 -7
- 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 +5 -6
- package/es2022/forms/src/modules/errorMessage/directives/groupErrorsTemplate/groupErrorsTemplate.directive.js.map +1 -1
- package/es2022/forms/src/modules/errorMessage/modules/errorMessage.module.js +5 -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 +6 -7
- 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 -6
- package/es2022/forms/src/modules/formPipes/modules/formPipes.module.js.map +1 -1
- package/es2022/forms/src/modules/formPipes/pipes/asFormArray/asFormArray.pipe.js +6 -7
- 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 +6 -7
- 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 +6 -7
- 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 +4 -5
- package/es2022/forms/src/modules/formPipes/pipes/getControl/getControl.pipe.js.map +1 -1
- package/es2022/forms/src/modules/hasError.module.js +5 -6
- package/es2022/forms/src/modules/hasError.module.js.map +1 -1
- package/es2022/forms/src/modules/numberInput.module.js +5 -6
- package/es2022/forms/src/modules/numberInput.module.js.map +1 -1
- package/es2022/forms/src/modules/requiredClass.module.js +5 -6
- package/es2022/forms/src/modules/requiredClass.module.js.map +1 -1
- package/es2022/forms/src/services/errorMessagesExtractor/errorMessagesExtractor.service.js +6 -7
- package/es2022/forms/src/services/errorMessagesExtractor/errorMessagesExtractor.service.js.map +1 -1
- package/es2022/forms/src/services/formModelBuilder/formModelBuilder.service.js +5 -6
- package/es2022/forms/src/services/formModelBuilder/formModelBuilder.service.js.map +1 -1
- package/es2022/forms/src/services/submitted/submitted.service.js +4 -5
- package/es2022/forms/src/services/submitted/submitted.service.js.map +1 -1
- package/es2022/forms/src/services/validationErrorRenderer/validationErrorRenderer.service.js +6 -7
- package/es2022/forms/src/services/validationErrorRenderer/validationErrorRenderer.service.js.map +1 -1
- package/es2022/hotkeys/src/components/cheatSheet/cheatSheet.component.js +5 -6
- package/es2022/hotkeys/src/components/cheatSheet/cheatSheet.component.js.map +1 -1
- package/es2022/hotkeys/src/services/appHotkeys.service.js +5 -6
- package/es2022/hotkeys/src/services/appHotkeys.service.js.map +1 -1
- package/es2022/material/src/components/confirmationDialog/confirmationDialog.component.js +6 -7
- package/es2022/material/src/components/confirmationDialog/confirmationDialog.component.js.map +1 -1
- package/es2022/material/src/components/movableTitledDialog/movableTitledDialog.component.js +4 -5
- package/es2022/material/src/components/movableTitledDialog/movableTitledDialog.component.js.map +1 -1
- package/es2022/material/src/components/titledDialog/titledDialog.component.js +6 -7
- package/es2022/material/src/components/titledDialog/titledDialog.component.js.map +1 -1
- package/es2022/material/src/directives/confirmationDialog/confirmationDialog.directive.js +5 -6
- package/es2022/material/src/directives/confirmationDialog/confirmationDialog.directive.js.map +1 -1
- package/es2022/material/src/directives/debugDataCopyClick/debugDataCopyClick.directive.js +5 -6
- package/es2022/material/src/directives/debugDataCopyClick/debugDataCopyClick.directive.js.map +1 -1
- package/es2022/material/src/modules/confirmationDialog.module.js +5 -6
- package/es2022/material/src/modules/confirmationDialog.module.js.map +1 -1
- package/es2022/material/src/modules/debugDataCopyClick.module.js +5 -6
- package/es2022/material/src/modules/debugDataCopyClick.module.js.map +1 -1
- package/es2022/material/src/modules/movableTitledDialog.module.js +5 -6
- package/es2022/material/src/modules/movableTitledDialog.module.js.map +1 -1
- package/es2022/material/src/modules/titledDialog.module.js +5 -6
- package/es2022/material/src/modules/titledDialog.module.js.map +1 -1
- package/es2022/material/src/services/titledDialog/titledDialog.service.js +6 -7
- package/es2022/material/src/services/titledDialog/titledDialog.service.js.map +1 -1
- package/es2022/moment/src/modules/moment.module.js +5 -6
- package/es2022/moment/src/modules/moment.module.js.map +1 -1
- package/es2022/moment/src/pipes/momentConvert/momentConvert.pipe.js +4 -5
- package/es2022/moment/src/pipes/momentConvert/momentConvert.pipe.js.map +1 -1
- package/es2022/moment/src/pipes/momentFormat/momentFormat.pipe.js +4 -5
- package/es2022/moment/src/pipes/momentFormat/momentFormat.pipe.js.map +1 -1
- package/es2022/numeral/src/pipes/numeral.pipe.js +5 -6
- package/es2022/numeral/src/pipes/numeral.pipe.js.map +1 -1
- package/es2022/router/src/services/routing/dataRouter.js +5 -6
- package/es2022/router/src/services/routing/dataRouter.js.map +1 -1
- package/es2022/router/src/services/routing/dataRouterData.js +5 -6
- package/es2022/router/src/services/routing/dataRouterData.js.map +1 -1
- package/es2022/src/components/collapsibleIcon/collapsibleIcon.component.js +4 -5
- package/es2022/src/components/collapsibleIcon/collapsibleIcon.component.js.map +1 -1
- package/es2022/src/components/collapsibleTitle/collapsibleTitle.component.js +4 -5
- package/es2022/src/components/collapsibleTitle/collapsibleTitle.component.js.map +1 -1
- package/es2022/src/directives/bodyRender/bodyRender.directive.js +6 -7
- package/es2022/src/directives/bodyRender/bodyRender.directive.js.map +1 -1
- package/es2022/src/directives/clickOutside/clickOutside.directive.js +6 -7
- package/es2022/src/directives/clickOutside/clickOutside.directive.js.map +1 -1
- package/es2022/src/directives/goBack/goBack.directive.js +5 -6
- package/es2022/src/directives/goBack/goBack.directive.js.map +1 -1
- package/es2022/src/directives/ngComponentOutletEx/ngComponentOutletEx.directive.js +5 -7
- package/es2022/src/directives/ngComponentOutletEx/ngComponentOutletEx.directive.js.map +1 -1
- package/es2022/src/directives/positionTo/positionTo.directive.js +6 -7
- package/es2022/src/directives/positionTo/positionTo.directive.js.map +1 -1
- package/es2022/src/modules/castPipes/modules/castPipes.module.js +5 -6
- package/es2022/src/modules/castPipes/modules/castPipes.module.js.map +1 -1
- package/es2022/src/modules/castPipes/pipes/asHtmlElement/asHtmlElement.pipe.js +4 -5
- package/es2022/src/modules/castPipes/pipes/asHtmlElement/asHtmlElement.pipe.js.map +1 -1
- package/es2022/src/modules/castPipes/pipes/asNgClassRequired/asNgClassRequired.pipe.js +4 -5
- package/es2022/src/modules/castPipes/pipes/asNgClassRequired/asNgClassRequired.pipe.js.map +1 -1
- package/es2022/src/modules/castPipes/pipes/asRequired/asRequired.pipe.js +4 -5
- package/es2022/src/modules/castPipes/pipes/asRequired/asRequired.pipe.js.map +1 -1
- package/es2022/src/modules/castPipes/pipes/castType/castType.pipe.js +6 -7
- package/es2022/src/modules/castPipes/pipes/castType/castType.pipe.js.map +1 -1
- package/es2022/src/modules/commonDynamic.module.js +5 -6
- package/es2022/src/modules/commonDynamic.module.js.map +1 -1
- package/es2022/src/modules/commonLocalize.module.js +5 -6
- package/es2022/src/modules/commonLocalize.module.js.map +1 -1
- package/es2022/src/modules/commonUtils.module.js +5 -6
- package/es2022/src/modules/commonUtils.module.js.map +1 -1
- package/es2022/src/modules/debugData/components/debugData/debugData.component.js +5 -6
- package/es2022/src/modules/debugData/components/debugData/debugData.component.js.map +1 -1
- package/es2022/src/modules/debugData/modules/debugData.module.js +5 -6
- package/es2022/src/modules/debugData/modules/debugData.module.js.map +1 -1
- package/es2022/src/modules/debugData/services/debugDataEnabled/debugDataEnabled.service.js +4 -5
- package/es2022/src/modules/debugData/services/debugDataEnabled/debugDataEnabled.service.js.map +1 -1
- package/es2022/src/modules/logger/components/console/console.component.js +5 -6
- package/es2022/src/modules/logger/components/console/console.component.js.map +1 -1
- package/es2022/src/modules/logger/services/console/consoleComponent.service.js +4 -5
- package/es2022/src/modules/logger/services/console/consoleComponent.service.js.map +1 -1
- package/es2022/src/modules/logger/services/console/consoleComponent.sink.js.map +1 -1
- package/es2022/src/modules/logger/services/console/consoleComponentService.options.js +5 -6
- 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/logger/logger.service.js +5 -6
- package/es2022/src/modules/logger/services/logger/logger.service.js.map +1 -1
- package/es2022/src/modules/logger/services/rest/rest.sink.js.map +1 -1
- package/es2022/src/modules/logger/services/rest/restSink.options.js +5 -6
- package/es2022/src/modules/logger/services/rest/restSink.options.js.map +1 -1
- package/es2022/src/modules/logger/types/loggerOptions.js +4 -5
- package/es2022/src/modules/logger/types/loggerOptions.js.map +1 -1
- package/es2022/src/modules/multiButton/components/multiButton/multiButton.component.js +6 -7
- package/es2022/src/modules/multiButton/components/multiButton/multiButton.component.js.map +1 -1
- package/es2022/src/modules/multiButton/modules/multiButton.module.js +5 -6
- package/es2022/src/modules/multiButton/modules/multiButton.module.js.map +1 -1
- package/es2022/src/modules/progressIndicator/components/progressIndicator/progressIndicator.component.js +5 -6
- package/es2022/src/modules/progressIndicator/components/progressIndicator/progressIndicator.component.js.map +1 -1
- package/es2022/src/modules/progressIndicator/directives/progressOverlay/progressOverlay.directive.js +6 -7
- package/es2022/src/modules/progressIndicator/directives/progressOverlay/progressOverlay.directive.js.map +1 -1
- package/es2022/src/modules/progressIndicator/interceptors/progressInterceptor.js +5 -6
- package/es2022/src/modules/progressIndicator/interceptors/progressInterceptor.js.map +1 -1
- package/es2022/src/modules/progressIndicator/modules/progressIndicator.module.js +5 -6
- package/es2022/src/modules/progressIndicator/modules/progressIndicator.module.js.map +1 -1
- package/es2022/src/modules/progressIndicator/services/progressIndicator.service.js +10 -16
- package/es2022/src/modules/progressIndicator/services/progressIndicator.service.js.map +1 -1
- package/es2022/src/modules/tooltip/components/tooltip/tooltip.component.js +5 -6
- package/es2022/src/modules/tooltip/components/tooltip/tooltip.component.js.map +1 -1
- package/es2022/src/modules/tooltip/directives/tooltip/tooltip.directive.js +6 -7
- package/es2022/src/modules/tooltip/directives/tooltip/tooltip.directive.js.map +1 -1
- package/es2022/src/modules/tooltip/directives/tooltipTemplate/tooltipTemplate.directive.js +5 -6
- package/es2022/src/modules/tooltip/directives/tooltipTemplate/tooltipTemplate.directive.js.map +1 -1
- package/es2022/src/modules/tooltip/modules/tooltip.module.js +5 -6
- package/es2022/src/modules/tooltip/modules/tooltip.module.js.map +1 -1
- package/es2022/src/pipes/displayProperties/displayProperties.pipe.js +4 -5
- package/es2022/src/pipes/displayProperties/displayProperties.pipe.js.map +1 -1
- package/es2022/src/pipes/firstUppercase/firstUppercase.pipe.js +4 -5
- package/es2022/src/pipes/firstUppercase/firstUppercase.pipe.js.map +1 -1
- package/es2022/src/pipes/firstUppercaseLocalize/firstUppercaseLocalize.pipe.js +6 -7
- package/es2022/src/pipes/firstUppercaseLocalize/firstUppercaseLocalize.pipe.js.map +1 -1
- package/es2022/src/pipes/isNaN/isNaN.pipe.js +4 -5
- package/es2022/src/pipes/isNaN/isNaN.pipe.js.map +1 -1
- package/es2022/src/pipes/isPresent/isPresent.pipe.js +4 -5
- package/es2022/src/pipes/isPresent/isPresent.pipe.js.map +1 -1
- package/es2022/src/pipes/keys/keys.pipe.js +4 -5
- package/es2022/src/pipes/keys/keys.pipe.js.map +1 -1
- package/es2022/src/pipes/localize/localize.pipe.js +6 -7
- package/es2022/src/pipes/localize/localize.pipe.js.map +1 -1
- package/es2022/src/pipes/mergeCssClasses/mergeCssClasses.pipe.js +8 -6
- package/es2022/src/pipes/mergeCssClasses/mergeCssClasses.pipe.js.map +1 -1
- package/es2022/src/pipes/urlEncode/urlEncode.pipe.js +4 -5
- package/es2022/src/pipes/urlEncode/urlEncode.pipe.js.map +1 -1
- package/es2022/src/services/cookies/cookies.service.js +6 -7
- package/es2022/src/services/cookies/cookies.service.js.map +1 -1
- package/es2022/src/services/notifications/defaultNotifications.service.js +6 -7
- package/es2022/src/services/notifications/defaultNotifications.service.js.map +1 -1
- package/es2022/src/services/permanentStorage/cookiePermanentStorage.service.js +7 -8
- package/es2022/src/services/permanentStorage/cookiePermanentStorage.service.js.map +1 -1
- package/es2022/src/services/statusCode/statusCode.service.js +4 -5
- package/es2022/src/services/statusCode/statusCode.service.js.map +1 -1
- package/es2022/src/services/stringLocalization/noStringLocalization.service.js +4 -5
- package/es2022/src/services/stringLocalization/noStringLocalization.service.js.map +1 -1
- package/es2022/src/services/temporaryStorage/memoryTemporaryStorage.service.js +4 -5
- package/es2022/src/services/temporaryStorage/memoryTemporaryStorage.service.js.map +1 -1
- package/es2022/store/src/services/permanentStorage/localPermanentStorage.service.js +7 -8
- package/es2022/store/src/services/permanentStorage/localPermanentStorage.service.js.map +1 -1
- package/es2022/store/src/services/temporaryStorage/sessionTemporaryStorage.service.js +6 -7
- package/es2022/store/src/services/temporaryStorage/sessionTemporaryStorage.service.js.map +1 -1
- package/package.json +41 -42
- package/src/directives/ngComponentOutletEx/ngComponentOutletEx.directive.d.ts.map +1 -1
- package/src/modules/progressIndicator/services/progressIndicator.service.d.ts +2 -3
- package/src/modules/progressIndicator/services/progressIndicator.service.d.ts.map +1 -1
- package/src/pipes/mergeCssClasses/mergeCssClasses.pipe.d.ts +1 -1
- package/src/pipes/mergeCssClasses/mergeCssClasses.pipe.d.ts.map +1 -1
- package/styles/themes/dark.scss +6 -0
- package/styles/themes/light.scss +0 -6
- package/version.bak +1 -1
|
@@ -5,7 +5,7 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
/**
|
|
6
6
|
* Performs moment conversion
|
|
7
7
|
*/
|
|
8
|
-
class MomentConvertPipe {
|
|
8
|
+
export class MomentConvertPipe {
|
|
9
9
|
//######################### public methods #########################
|
|
10
10
|
/**
|
|
11
11
|
* Transforms 'date' string to moment
|
|
@@ -20,11 +20,10 @@ class MomentConvertPipe {
|
|
|
20
20
|
}
|
|
21
21
|
return value;
|
|
22
22
|
}
|
|
23
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
24
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
23
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: MomentConvertPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
24
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.0.1", ngImport: i0, type: MomentConvertPipe, name: "momentConvert" });
|
|
25
25
|
}
|
|
26
|
-
|
|
27
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: MomentConvertPipe, decorators: [{
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: MomentConvertPipe, decorators: [{
|
|
28
27
|
type: Pipe,
|
|
29
28
|
args: [{
|
|
30
29
|
name: 'momentConvert'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"momentConvert.pipe.js","sourceRoot":"","sources":["../../../../../moment/src/pipes/momentConvert/momentConvert.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAgB,MAAM,eAAe,CAAC;AAClD,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AACzC,OAAO,MAAM,MAAM,QAAQ,CAAC;;AAE5B;;GAEG;
|
|
1
|
+
{"version":3,"file":"momentConvert.pipe.js","sourceRoot":"","sources":["../../../../../moment/src/pipes/momentConvert/momentConvert.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAgB,MAAM,eAAe,CAAC;AAClD,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AACzC,OAAO,MAAM,MAAM,QAAQ,CAAC;;AAE5B;;GAEG;AAKH,MAAM,OAAO,iBAAiB;IAE1B,oEAAoE;IAEpE;;;OAGG;IACI,SAAS,CAAC,KAA6B;QAE1C,IAAG,SAAS,CAAC,KAAK,CAAC,EACnB;YACI,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;YAEtB,IAAG,CAAC,KAAK,CAAC,OAAO,EACjB;gBACI,KAAK,GAAG,IAAI,CAAC;aAChB;SACJ;QAED,OAAO,KAAsB,CAAC;IAClC,CAAC;uGArBQ,iBAAiB;qGAAjB,iBAAiB;;2FAAjB,iBAAiB;kBAJ7B,IAAI;mBACL;oBACI,IAAI,EAAE,eAAe;iBACxB","sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\nimport {isPresent} from '@jscrpt/common';\nimport moment from 'moment';\n\n/**\n * Performs moment conversion\n */\n@Pipe(\n{\n name: 'momentConvert'\n})\nexport class MomentConvertPipe implements PipeTransform\n{\n //######################### public methods #########################\n\n /**\n * Transforms 'date' string to moment\n * @param value - Value to be converted to moment\n */\n public transform(value: string | moment.Moment): moment.Moment\n {\n if(isPresent(value))\n {\n value = moment(value);\n \n if(!value.isValid)\n {\n value = null;\n }\n }\n\n return value as moment.Moment;\n }\n}"]}
|
|
@@ -5,7 +5,7 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
/**
|
|
6
6
|
* Performs moment conversion and formats result
|
|
7
7
|
*/
|
|
8
|
-
class MomentFormatPipe {
|
|
8
|
+
export class MomentFormatPipe {
|
|
9
9
|
//######################### public methods #########################
|
|
10
10
|
/**
|
|
11
11
|
* Transforms 'date' string to moment and formats it
|
|
@@ -24,11 +24,10 @@ class MomentFormatPipe {
|
|
|
24
24
|
}
|
|
25
25
|
return null;
|
|
26
26
|
}
|
|
27
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
28
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
27
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: MomentFormatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
28
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.0.1", ngImport: i0, type: MomentFormatPipe, name: "momentFormat" });
|
|
29
29
|
}
|
|
30
|
-
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: MomentFormatPipe, decorators: [{
|
|
30
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: MomentFormatPipe, decorators: [{
|
|
32
31
|
type: Pipe,
|
|
33
32
|
args: [{
|
|
34
33
|
name: 'momentFormat'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"momentFormat.pipe.js","sourceRoot":"","sources":["../../../../../moment/src/pipes/momentFormat/momentFormat.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAgB,MAAM,eAAe,CAAC;AAClD,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AACzC,OAAO,MAAM,MAAM,QAAQ,CAAC;;AAE5B;;GAEG;
|
|
1
|
+
{"version":3,"file":"momentFormat.pipe.js","sourceRoot":"","sources":["../../../../../moment/src/pipes/momentFormat/momentFormat.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAgB,MAAM,eAAe,CAAC;AAClD,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AACzC,OAAO,MAAM,MAAM,QAAQ,CAAC;;AAE5B;;GAEG;AAKH,MAAM,OAAO,gBAAgB;IAEzB,oEAAoE;IAEpE;;;;OAIG;IACI,SAAS,CAAC,KAA6B,EAAE,SAAiB,GAAG;QAEhE,IAAG,SAAS,CAAC,KAAK,CAAC,EACnB;YACI,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;YAEtB,IAAG,CAAC,KAAK,CAAC,OAAO,EACjB;gBACI,KAAK,GAAG,IAAI,CAAC;aAChB;SACJ;QAED,IAAG,KAAK,EACR;YACI,OAAQ,KAAuB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;SAClD;QAED,OAAO,IAAI,CAAC;IAChB,CAAC;uGA3BQ,gBAAgB;qGAAhB,gBAAgB;;2FAAhB,gBAAgB;kBAJ5B,IAAI;mBACL;oBACI,IAAI,EAAE,cAAc;iBACvB","sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\nimport {isPresent} from '@jscrpt/common';\nimport moment from 'moment';\n\n/**\n * Performs moment conversion and formats result\n */\n@Pipe(\n{\n name: 'momentFormat'\n})\nexport class MomentFormatPipe implements PipeTransform\n{\n //######################### public methods #########################\n\n /**\n * Transforms 'date' string to moment and formats it\n * @param value - Value to be converted to moment\n * @param format - Formats used for formatting moment\n */\n public transform(value: string | moment.Moment, format: string = 'L'): string\n {\n if(isPresent(value))\n {\n value = moment(value);\n \n if(!value.isValid)\n {\n value = null;\n }\n }\n\n if(value)\n {\n return (value as moment.Moment).format(format);\n }\n\n return null;\n }\n}"]}
|
|
@@ -7,7 +7,7 @@ import * as i1 from "@anglr/common";
|
|
|
7
7
|
/**
|
|
8
8
|
* Pipe to transform numbers to regional formatting using numeraljs.
|
|
9
9
|
*/
|
|
10
|
-
class NumeralSAPipe {
|
|
10
|
+
export class NumeralSAPipe {
|
|
11
11
|
//######################### private fields #########################
|
|
12
12
|
/**
|
|
13
13
|
* Subscription for globalization changes
|
|
@@ -45,12 +45,11 @@ class NumeralSAPipe {
|
|
|
45
45
|
this._globalizationChangeSubscription = null;
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
49
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
48
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: NumeralSAPipe, deps: [{ token: i1.GlobalizationService }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
49
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.0.1", ngImport: i0, type: NumeralSAPipe, isStandalone: true, name: "numeral" });
|
|
50
50
|
}
|
|
51
|
-
|
|
52
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: NumeralSAPipe, decorators: [{
|
|
51
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: NumeralSAPipe, decorators: [{
|
|
53
52
|
type: Pipe,
|
|
54
53
|
args: [{ name: 'numeral', standalone: true }]
|
|
55
|
-
}], ctorParameters:
|
|
54
|
+
}], ctorParameters: () => [{ type: i1.GlobalizationService }] });
|
|
56
55
|
//# sourceMappingURL=numeral.pipe.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"numeral.pipe.js","sourceRoot":"","sources":["../../../../numeral/src/pipes/numeral.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAA2B,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAC,oBAAoB,EAAC,MAAM,eAAe,CAAC;AACnD,OAAO,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAC;AACvC,OAAO,OAAO,MAAM,SAAS,CAAC;;;AAG9B;;GAEG;
|
|
1
|
+
{"version":3,"file":"numeral.pipe.js","sourceRoot":"","sources":["../../../../numeral/src/pipes/numeral.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAA2B,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAC,oBAAoB,EAAC,MAAM,eAAe,CAAC;AACnD,OAAO,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAC;AACvC,OAAO,OAAO,MAAM,SAAS,CAAC;;;AAG9B;;GAEG;AAEH,MAAM,OAAO,aAAa;IAEtB,oEAAoE;IAEpE;;OAEG;IACK,gCAAgC,CAAoB;IAE5D,kEAAkE;IAClE,YAAY,gBAAsC;QAE9C,OAAO,CAAC,MAAM,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC;QAExC,IAAI,CAAC,gCAAgC,GAAG,gBAAgB;aACnD,YAAY;aACZ,SAAS,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC,CAAC;IAClE,CAAC;IAED,oEAAoE;IAEpE;;;;OAIG;IACI,SAAS,CAAC,KAAa,EAAE,MAAc;QAE1C,IAAG,OAAO,CAAC,KAAK,CAAC,EACjB;YACI,OAAO,EAAE,CAAC;SACb;QAED,IAAG,KAAK,CAAC,KAAK,CAAC,EACf;YACI,KAAK,GAAG,CAAC,CAAC;SACb;QAED,OAAO,OAAO,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACzC,CAAC;IAED,kGAAkG;IAElG;;OAEG;IACI,WAAW;QAEd,IAAG,IAAI,CAAC,gCAAgC,EACxC;YACI,IAAI,CAAC,gCAAgC,CAAC,WAAW,EAAE,CAAC;YACpD,IAAI,CAAC,gCAAgC,GAAG,IAAI,CAAC;SAChD;IACL,CAAC;uGArDQ,aAAa;qGAAb,aAAa;;2FAAb,aAAa;kBADzB,IAAI;mBAAC,EAAC,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,IAAI,EAAC","sourcesContent":["import {Pipe, PipeTransform, OnDestroy} from '@angular/core';\nimport {GlobalizationService} from '@anglr/common';\nimport {isBlank} from '@jscrpt/common';\nimport numeral from 'numeral';\nimport {Subscription} from 'rxjs';\n\n/**\n * Pipe to transform numbers to regional formatting using numeraljs.\n */\n@Pipe({name: 'numeral', standalone: true})\nexport class NumeralSAPipe implements PipeTransform, OnDestroy\n{\n //######################### private fields #########################\n \n /**\n * Subscription for globalization changes\n */\n private _globalizationChangeSubscription: Subscription|null;\n\n //######################### constructors #########################\n constructor(globalizationSvc: GlobalizationService)\n {\n numeral.locale(globalizationSvc.locale);\n\n this._globalizationChangeSubscription = globalizationSvc\n .localeChange\n .subscribe(() => numeral.locale(globalizationSvc.locale));\n }\n \n //######################### public methods #########################\n \n /**\n * Formats number value as slovak format string\n * @param value - Number to format\n * @param format - Format string (optional) \n */ \n public transform(value: number, format: string): string\n {\n if(isBlank(value))\n {\n return '';\n }\n \n if(isNaN(value))\n {\n value = 0;\n }\n \n return numeral(value).format(format);\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n \n /**\n * Called when component is destroyed\n */\n public ngOnDestroy(): void\n {\n if(this._globalizationChangeSubscription)\n {\n this._globalizationChangeSubscription.unsubscribe();\n this._globalizationChangeSubscription = null;\n }\n }\n}\n\n"]}
|
|
@@ -7,7 +7,7 @@ import * as i1 from "@angular/router";
|
|
|
7
7
|
/**
|
|
8
8
|
* Special implementation of router that allows routing with sending complex data to routed component
|
|
9
9
|
*/
|
|
10
|
-
class DataRouter {
|
|
10
|
+
export class DataRouter {
|
|
11
11
|
_router;
|
|
12
12
|
//######################### private fields #########################
|
|
13
13
|
/**
|
|
@@ -80,12 +80,11 @@ class DataRouter {
|
|
|
80
80
|
this._nextUrlPath = this._router.createUrlTree(linkParams).toString();
|
|
81
81
|
return this._router.navigate(linkParams);
|
|
82
82
|
}
|
|
83
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
84
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
83
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: DataRouter, deps: [{ token: i1.Router }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
84
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: DataRouter, providedIn: 'root' });
|
|
85
85
|
}
|
|
86
|
-
|
|
87
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DataRouter, decorators: [{
|
|
86
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: DataRouter, decorators: [{
|
|
88
87
|
type: Injectable,
|
|
89
88
|
args: [{ providedIn: 'root' }]
|
|
90
|
-
}], ctorParameters:
|
|
89
|
+
}], ctorParameters: () => [{ type: i1.Router }] });
|
|
91
90
|
//# sourceMappingURL=dataRouter.js.map
|
|
@@ -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;
|
|
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;IA8BC;IA5BpB,oEAAoE;IAEpE;;OAEG;IACK,UAAU,GAAU,IAAI,CAAC;IAEjC;;OAEG;IACK,YAAY,GAAgB,IAAI,CAAC;IAEzC;;OAEG;IACK,aAAa,GAAwB,IAAI,CAAC;IAElD,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;QAE/B,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE;YAEjC,uBAAuB;YACvB,IAAG,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,EAC7B;gBACI,OAAO;aACV;YAED,mDAAmD;YACnD,IAAG,IAAI,YAAY,eAAe,EAClC;gBACI,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;gBAE1B,OAAO;aACV;YAED,wDAAwD;YACxD,IAAG,IAAI,YAAY,aAAa,EAChC;gBACI,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;oBACI,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;iBAC7B;aACJ;YAED,0BAA0B;YAC1B,IAAG,IAAI,YAAY,eAAe,EAClC;gBACI,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;aACV;YAED,iCAAiC;YACjC,IAAG,CAAC,CAAC,IAAI,YAAY,YAAY,CAAC,EAClC;gBACI,OAAO;aACV;YAED,6BAA6B;YAC7B,IAAG,IAAI,CAAC,YAAY,IAAI,IAAI,CAAC,GAAG,EAChC;gBACI,IAAI,CAAC,aAAa,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;aACzD;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;uGAnGQ,UAAU;2GAAV,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"]}
|
|
@@ -6,7 +6,7 @@ import * as i1 from "./dataRouter";
|
|
|
6
6
|
* Class that is used for obtaining complex routed data
|
|
7
7
|
* @deprecated - Do not use this class, use directly DataRouter
|
|
8
8
|
*/
|
|
9
|
-
class DataRouterData {
|
|
9
|
+
export class DataRouterData {
|
|
10
10
|
//######################### public properties #########################
|
|
11
11
|
/**
|
|
12
12
|
* Value of DataRouter for currently routed page
|
|
@@ -16,11 +16,10 @@ class DataRouterData {
|
|
|
16
16
|
constructor(dataRouter) {
|
|
17
17
|
this.value = dataRouter.valuePromise;
|
|
18
18
|
}
|
|
19
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
20
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
19
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: DataRouterData, deps: [{ token: i1.DataRouter }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
20
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: DataRouterData });
|
|
21
21
|
}
|
|
22
|
-
|
|
23
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DataRouterData, decorators: [{
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: DataRouterData, decorators: [{
|
|
24
23
|
type: Injectable
|
|
25
|
-
}], ctorParameters:
|
|
24
|
+
}], ctorParameters: () => [{ type: i1.DataRouter }] });
|
|
26
25
|
//# 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;
|
|
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;IAEvB,uEAAuE;IAEvE;;OAEG;IACI,KAAK,CAAe;IAE3B,kEAAkE;IAClE,YAAY,UAAsB;QAE9B,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,YAAY,CAAC;IACzC,CAAC;uGAbQ,cAAc;2GAAd,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,7 +8,7 @@ import * as i2 from "../../modules/tooltip/directives/tooltip/tooltip.directive"
|
|
|
8
8
|
/**
|
|
9
9
|
* Component used for displaying collapsible icon
|
|
10
10
|
*/
|
|
11
|
-
class CollapsibleIconSAComponent {
|
|
11
|
+
export class CollapsibleIconSAComponent {
|
|
12
12
|
//######################### public properties - inputs #########################
|
|
13
13
|
/**
|
|
14
14
|
* Initial value, if visible set to true minus is displayed, otherwise plus is displayed
|
|
@@ -27,11 +27,10 @@ class CollapsibleIconSAComponent {
|
|
|
27
27
|
* Occurs when visible change
|
|
28
28
|
*/
|
|
29
29
|
visibleChange = new EventEmitter();
|
|
30
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
31
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
30
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: CollapsibleIconSAComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
31
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.1", 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 });
|
|
32
32
|
}
|
|
33
|
-
|
|
34
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: CollapsibleIconSAComponent, decorators: [{
|
|
33
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: CollapsibleIconSAComponent, decorators: [{
|
|
35
34
|
type: Component,
|
|
36
35
|
args: [{ selector: 'collapsible-icon', standalone: true, imports: [
|
|
37
36
|
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;
|
|
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,0BAA0B;IAEnC,gFAAgF;IAEhF;;OAEG;IAEI,OAAO,GAAY,KAAK,CAAC;IAEhC;;OAEG;IAEI,SAAS,GAAW,kBAAkB,CAAC;IAE9C;;OAEG;IAEI,QAAQ,CAAwB;IAEvC,iFAAiF;IAEjF;;OAEG;IAEI,aAAa,GAA0B,IAAI,YAAY,EAAW,CAAC;uGA5BjE,0BAA0B;2FAA1B,0BAA0B,uMCvBvC,yVAKI,0kCDYI,YAAY,4HACZ,aAAa,yMACb,cAAc;;2FAIT,0BAA0B;kBAdtC,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 styleUrls: ['collapsibleIcon.component.css'],\n standalone: true,\n imports:\n [\n CommonModule,\n TooltipModule,\n LocalizeSAPipe,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class CollapsibleIconSAComponent\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>"]}
|
|
@@ -7,7 +7,7 @@ import * as i1 from "@angular/common";
|
|
|
7
7
|
/**
|
|
8
8
|
* Component used for displaying title with collapsible icon
|
|
9
9
|
*/
|
|
10
|
-
class CollapsibleTitleSAComponent {
|
|
10
|
+
export class CollapsibleTitleSAComponent {
|
|
11
11
|
//######################### public properties - inputs #########################
|
|
12
12
|
/**
|
|
13
13
|
* Initial value, if visible set to true minus is displayed, otherwise plus is displayed
|
|
@@ -22,11 +22,10 @@ class CollapsibleTitleSAComponent {
|
|
|
22
22
|
* Occurs when visible change
|
|
23
23
|
*/
|
|
24
24
|
visibleChange = new EventEmitter();
|
|
25
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
26
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
25
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: CollapsibleTitleSAComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
26
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.1", 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 });
|
|
27
27
|
}
|
|
28
|
-
|
|
29
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: CollapsibleTitleSAComponent, decorators: [{
|
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: CollapsibleTitleSAComponent, decorators: [{
|
|
30
29
|
type: Component,
|
|
31
30
|
args: [{ selector: 'collapsible-title', standalone: true, imports: [
|
|
32
31
|
CommonModule,
|
|
@@ -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,0BAA0B,EAAC,MAAM,8CAA8C,CAAC;;;AAExF;;GAEG;
|
|
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,0BAA0B,EAAC,MAAM,8CAA8C,CAAC;;;AAExF;;GAEG;AAcH,MAAM,OAAO,2BAA2B;IAEpC,gFAAgF;IAEhF;;OAEG;IAEI,OAAO,GAAY,KAAK,CAAC;IAEhC;;OAEG;IAEI,QAAQ,CAAwB;IAEvC,iFAAiF;IAEjF;;OAEG;IAEI,aAAa,GAA0B,IAAI,YAAY,EAAW,CAAC;uGAtBjE,2BAA2B;2FAA3B,2BAA2B,gLCtBxC,oQAIM,+EDaE,YAAY,6HACZ,0BAA0B;;2FAIrB,2BAA2B;kBAbvC,SAAS;+BAEI,mBAAmB,cAGjB,IAAI,WAEhB;wBACI,YAAY;wBACZ,0BAA0B;qBAC7B,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 {CollapsibleIconSAComponent} 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 CollapsibleIconSAComponent,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class CollapsibleTitleSAComponent\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>"]}
|
|
@@ -5,7 +5,7 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
/**
|
|
6
6
|
* Renders element into body directly at the end
|
|
7
7
|
*/
|
|
8
|
-
class BodyRenderSADirective {
|
|
8
|
+
export class BodyRenderSADirective {
|
|
9
9
|
template;
|
|
10
10
|
viewContainer;
|
|
11
11
|
document;
|
|
@@ -51,20 +51,19 @@ class BodyRenderSADirective {
|
|
|
51
51
|
this.view?.destroy();
|
|
52
52
|
this.view = null;
|
|
53
53
|
}
|
|
54
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
55
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
54
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: BodyRenderSADirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Directive });
|
|
55
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.1", type: BodyRenderSADirective, isStandalone: true, selector: "[bodyRender]", inputs: { targetElement: ["bodyRender", "targetElement"] }, ngImport: i0 });
|
|
56
56
|
}
|
|
57
|
-
|
|
58
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: BodyRenderSADirective, decorators: [{
|
|
57
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: BodyRenderSADirective, decorators: [{
|
|
59
58
|
type: Directive,
|
|
60
59
|
args: [{
|
|
61
60
|
selector: '[bodyRender]',
|
|
62
61
|
standalone: true
|
|
63
62
|
}]
|
|
64
|
-
}], ctorParameters:
|
|
63
|
+
}], ctorParameters: () => [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }, { type: Document, decorators: [{
|
|
65
64
|
type: Inject,
|
|
66
65
|
args: [DOCUMENT]
|
|
67
|
-
}] }]
|
|
66
|
+
}] }], propDecorators: { targetElement: [{
|
|
68
67
|
type: Input,
|
|
69
68
|
args: ['bodyRender']
|
|
70
69
|
}] } });
|
|
@@ -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;
|
|
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,qBAAqB;IAyBR;IACA;IACkB;IAzBxC,0EAA0E;IAE1E;;OAEG;IACO,IAAI,CAAuC;IAErD;;OAEG;IACO,OAAO,CAA6B;IAE9C,gFAAgF;IAEhF;;;;OAIG;IAEI,aAAa,CAAwB;IAE5C,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;uGAzDQ,qBAAqB,6EA2BV,QAAQ;2FA3BnB,qBAAqB;;2FAArB,qBAAqB;kBALjC,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 BodyRenderSADirective 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}"]}
|
|
@@ -5,7 +5,7 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
/**
|
|
6
6
|
* Directive that handles click outside of element
|
|
7
7
|
*/
|
|
8
|
-
class ClickOutsideSADirective {
|
|
8
|
+
export class ClickOutsideSADirective {
|
|
9
9
|
element;
|
|
10
10
|
document;
|
|
11
11
|
ngZone;
|
|
@@ -80,20 +80,19 @@ class ClickOutsideSADirective {
|
|
|
80
80
|
* Custom input type for `clickOutsideCondition` input
|
|
81
81
|
*/
|
|
82
82
|
static ngAcceptInputType_clickOutsideCondition;
|
|
83
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
84
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
83
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.1", 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.1", type: ClickOutsideSADirective, isStandalone: true, selector: "[clickOutside]", inputs: { clickOutsideCondition: ["clickOutside", "clickOutsideCondition"], clickOutsideElement: "clickOutsideElement" }, outputs: { clickOutsideConditionChange: "clickOutsideChange" }, ngImport: i0 });
|
|
85
85
|
}
|
|
86
|
-
|
|
87
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ClickOutsideSADirective, decorators: [{
|
|
86
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: ClickOutsideSADirective, decorators: [{
|
|
88
87
|
type: Directive,
|
|
89
88
|
args: [{
|
|
90
89
|
selector: '[clickOutside]',
|
|
91
90
|
standalone: true,
|
|
92
91
|
}]
|
|
93
|
-
}], ctorParameters:
|
|
92
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: Document, decorators: [{
|
|
94
93
|
type: Inject,
|
|
95
94
|
args: [DOCUMENT]
|
|
96
|
-
}] }, { type: i0.NgZone }]
|
|
95
|
+
}] }, { type: i0.NgZone }], propDecorators: { clickOutsideCondition: [{
|
|
97
96
|
type: Input,
|
|
98
97
|
args: ['clickOutside']
|
|
99
98
|
}], clickOutsideElement: [{
|
|
@@ -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;
|
|
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;IA8CV;IACkB;IAClB;IA9CtB,sEAAsE;IAEtE;;OAEG;IACO,sBAAsB,GAAY,KAAK,CAAC;IAElD,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;YACI,IAAI,CAAC,sBAAsB,GAAG,IAAI,CAAC;YAEnC,OAAO;SACV;QAED,IAAI,CAAC,sBAAsB,GAAG,KAAK,CAAC;IACxC,CAAC;IAED;;OAEG;IAEI,mBAAmB,CAA6B;IAEvD,iFAAiF;IAEjF;;OAEG;IAEI,2BAA2B,GAA0B,IAAI,YAAY,EAAW,CAAC;IAExF,iEAAiE;IACjE,YAAsB,OAAgC,EACd,QAAkB,EACpC,MAAc;QAFd,YAAO,GAAP,OAAO,CAAyB;QACd,aAAQ,GAAR,QAAQ,CAAU;QACpC,WAAM,GAAN,MAAM,CAAQ;IAEpC,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;IAED,uEAAuE;IAEvE;;;OAGG;IACO,kBAAkB,GAAG,CAAC,KAAiB,EAAE,EAAE;QAEjD,IAAG,IAAI,CAAC,OAAO,CAAC,aAAa,IAAI,KAAK,CAAC,MAAM;YAC1C,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,KAAK,CAAC,MAAqB,CAAC;YACtE,CAAC,CAAC,IAAI,CAAC,mBAAmB,IAAI,CAAC,IAAI,CAAC,mBAAmB,IAAI,KAAK,CAAC,MAAM;gBACxC,CAAC,YAAY,CAAC,IAAI,CAAC,mBAAmB,EAAE,KAAK,CAAC,MAAqB,CAAC,CAAC,CAAC,EACxG;YACI,IAAI,CAAC,qBAAqB,GAAG,CAAC,IAAI,CAAC,qBAAqB,CAAC;YACzD,IAAI,CAAC,2BAA2B,CAAC,IAAI,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;SACrE;IACL,CAAC,CAAA;IAED,wEAAwE;IAExE;;OAEG;IACI,MAAM,CAAC,uCAAuC,CAAa;uGArGzD,uBAAuB,4CA+CZ,QAAQ;2FA/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}"]}
|
|
@@ -5,7 +5,7 @@ import * as i1 from "@angular/common";
|
|
|
5
5
|
/**
|
|
6
6
|
* Directive that performs browser back button action on click
|
|
7
7
|
*/
|
|
8
|
-
class GoBackSADirective {
|
|
8
|
+
export class GoBackSADirective {
|
|
9
9
|
_location;
|
|
10
10
|
//######################### constructor #########################
|
|
11
11
|
constructor(_location) {
|
|
@@ -21,17 +21,16 @@ class GoBackSADirective {
|
|
|
21
21
|
event.stopPropagation();
|
|
22
22
|
this._location.back();
|
|
23
23
|
}
|
|
24
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
25
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
24
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: GoBackSADirective, deps: [{ token: i1.Location }], target: i0.ɵɵFactoryTarget.Directive });
|
|
25
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.1", type: GoBackSADirective, isStandalone: true, selector: "[goBack]", host: { listeners: { "click": "goBack($event)" } }, ngImport: i0 });
|
|
26
26
|
}
|
|
27
|
-
|
|
28
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: GoBackSADirective, decorators: [{
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: GoBackSADirective, decorators: [{
|
|
29
28
|
type: Directive,
|
|
30
29
|
args: [{
|
|
31
30
|
selector: '[goBack]',
|
|
32
31
|
standalone: true,
|
|
33
32
|
}]
|
|
34
|
-
}], ctorParameters:
|
|
33
|
+
}], ctorParameters: () => [{ type: i1.Location }], propDecorators: { goBack: [{
|
|
35
34
|
type: HostListener,
|
|
36
35
|
args: ['click', ['$event']]
|
|
37
36
|
}] } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"goBack.directive.js","sourceRoot":"","sources":["../../../../src/directives/goBack/goBack.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,YAAY,EAAC,MAAM,eAAe,CAAC;AACtD,OAAO,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAC;;;AAEzC;;GAEG;
|
|
1
|
+
{"version":3,"file":"goBack.directive.js","sourceRoot":"","sources":["../../../../src/directives/goBack/goBack.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,YAAY,EAAC,MAAM,eAAe,CAAC;AACtD,OAAO,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAC;;;AAEzC;;GAEG;AAMH,MAAM,OAAO,iBAAiB;IAGN;IADpB,iEAAiE;IACjE,YAAoB,SAAmB;QAAnB,cAAS,GAAT,SAAS,CAAU;IAEvC,CAAC;IAED,2EAA2E;IAE3E;;;OAGG;IAEI,MAAM,CAAC,KAAiB;QAE3B,KAAK,CAAC,cAAc,EAAE,CAAC;QACvB,KAAK,CAAC,eAAe,EAAE,CAAC;QAExB,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;IAC1B,CAAC;uGApBQ,iBAAiB;2FAAjB,iBAAiB;;2FAAjB,iBAAiB;kBAL7B,SAAS;mBACV;oBACI,QAAQ,EAAE,UAAU;oBACpB,UAAU,EAAE,IAAI;iBACnB;6EAeU,MAAM;sBADZ,YAAY;uBAAC,OAAO,EAAE,CAAC,QAAQ,CAAC","sourcesContent":["import {Directive, HostListener} from '@angular/core';\nimport {Location} from '@angular/common';\n\n/**\n * Directive that performs browser back button action on click\n */\n@Directive(\n{\n selector: '[goBack]',\n standalone: true,\n})\nexport class GoBackSADirective\n{\n //######################### constructor #########################\n constructor(private _location: Location)\n {\n }\n\n //######################### public methods - host #########################\n\n /**\n * Navigates back in browser\n * @param event - Mouse event that occured\n */\n @HostListener('click', ['$event'])\n public goBack(event: MouseEvent): void\n {\n event.preventDefault();\n event.stopPropagation();\n\n this._location.back();\n }\n}"]}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { EventEmitter, Directive, Injector, Input, Type, ViewContainerRef, Output } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
//TODO: add module as origin componentOutlet has
|
|
4
|
-
//TODO: rename to SA component on next breaking change
|
|
5
4
|
/**
|
|
6
5
|
* Instantiates a single Component type and inserts its Host View into current View.
|
|
7
6
|
*/
|
|
8
|
-
class NgComponentOutletEx {
|
|
7
|
+
export class NgComponentOutletEx {
|
|
9
8
|
_viewContainerRef;
|
|
10
9
|
//######################### private fields #########################
|
|
11
10
|
/**
|
|
@@ -57,18 +56,17 @@ class NgComponentOutletEx {
|
|
|
57
56
|
}
|
|
58
57
|
this.ngComponentOutletExCreated.emit(this.component);
|
|
59
58
|
}
|
|
60
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
61
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
59
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: NgComponentOutletEx, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
60
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.1", type: NgComponentOutletEx, isStandalone: true, selector: "[ngComponentOutletEx]", inputs: { ngComponentOutletEx: "ngComponentOutletEx", ngComponentOutletExInjector: "ngComponentOutletExInjector", ngComponentOutletExContent: "ngComponentOutletExContent" }, outputs: { ngComponentOutletExCreated: "ngComponentOutletExCreated" }, exportAs: ["ngComponentOutletEx"], usesOnChanges: true, ngImport: i0 });
|
|
62
61
|
}
|
|
63
|
-
|
|
64
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: NgComponentOutletEx, decorators: [{
|
|
62
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: NgComponentOutletEx, decorators: [{
|
|
65
63
|
type: Directive,
|
|
66
64
|
args: [{
|
|
67
65
|
selector: '[ngComponentOutletEx]',
|
|
68
66
|
exportAs: 'ngComponentOutletEx',
|
|
69
67
|
standalone: true,
|
|
70
68
|
}]
|
|
71
|
-
}], ctorParameters:
|
|
69
|
+
}], ctorParameters: () => [{ type: i0.ViewContainerRef }], propDecorators: { ngComponentOutletEx: [{
|
|
72
70
|
type: Input
|
|
73
71
|
}], ngComponentOutletExInjector: [{
|
|
74
72
|
type: Input
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngComponentOutletEx.directive.js","sourceRoot":"","sources":["../../../../src/directives/ngComponentOutletEx/ngComponentOutletEx.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAgB,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAa,IAAI,EAAE,gBAAgB,EAAE,MAAM,EAAC,MAAM,eAAe,CAAC;;AAEhI,gDAAgD;
|
|
1
|
+
{"version":3,"file":"ngComponentOutletEx.directive.js","sourceRoot":"","sources":["../../../../src/directives/ngComponentOutletEx/ngComponentOutletEx.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAgB,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAa,IAAI,EAAE,gBAAgB,EAAE,MAAM,EAAC,MAAM,eAAe,CAAC;;AAEhI,gDAAgD;AAEhD;;GAEG;AAOH,MAAM,OAAO,mBAAmB;IAqDR;IAnDpB,oEAAoE;IAEpE;;OAEG;IACK,aAAa,GAAkC,IAAI,CAAC;IAE5D,gFAAgF;IAEhF;;OAEG;IAEI,mBAAmB,CAAkC;IAE5D;;OAEG;IAEI,2BAA2B,CAA0B;IAE5D;;OAEG;IAEI,0BAA0B,CAA0B;IAE3D,iFAAiF;IAEjF;;OAEG;IAEI,0BAA0B,GAAkC,IAAI,YAAY,EAAmB,CAAC;IAEvG,uEAAuE;IAEvE;;OAEG;IACH,IAAW,SAAS;QAEhB,IAAG,CAAC,IAAI,CAAC,aAAa,EACtB;YACI,OAAO,IAAI,CAAC;SACf;QAED,OAAO,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC;IACvC,CAAC;IAED,iEAAiE;IACjE,YAAoB,iBAAmC;QAAnC,sBAAiB,GAAjB,iBAAiB,CAAkB;IAEvD,CAAC;IAED,kGAAkG;IAC3F,WAAW;QAEd,IAAI,CAAC,iBAAiB,CAAC,KAAK,EAAE,CAAC;QAC/B,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;QAE1B,IAAI,IAAI,CAAC,mBAAmB,EAC5B;YACI,MAAM,QAAQ,GAAG,IAAI,CAAC,2BAA2B,IAAI,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAAC;YAErF,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,iBAAiB,CAAC,eAAe,CAAa,IAAI,CAAC,mBAAmB,EACxB;gBACI,QAAQ;gBACR,gBAAgB,EAAE,IAAI,CAAC,0BAA0B,IAAI,SAAS;aACjE,CAAC,CAAC;SAC9E;QAED,IAAI,CAAC,0BAA0B,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACzD,CAAC;uGA3EQ,mBAAmB;2FAAnB,mBAAmB;;2FAAnB,mBAAmB;kBAN/B,SAAS;mBACV;oBACI,QAAQ,EAAE,uBAAuB;oBACjC,QAAQ,EAAE,qBAAqB;oBAC/B,UAAU,EAAE,IAAI;iBACnB;qFAgBU,mBAAmB;sBADzB,KAAK;gBAOC,2BAA2B;sBADjC,KAAK;gBAOC,0BAA0B;sBADhC,KAAK;gBASC,0BAA0B;sBADhC,MAAM","sourcesContent":["import {EventEmitter, ComponentRef, Directive, Injector, Input, OnChanges, Type, ViewContainerRef, Output} from '@angular/core';\n\n//TODO: add module as origin componentOutlet has\n\n/**\n * Instantiates a single Component type and inserts its Host View into current View.\n */\n@Directive(\n{\n selector: '[ngComponentOutletEx]',\n exportAs: 'ngComponentOutletEx',\n standalone: true,\n})\nexport class NgComponentOutletEx<TComponent> implements OnChanges\n{\n //######################### private fields #########################\n\n /**\n * Created component reference\n */\n private _componentRef: ComponentRef<TComponent>|null = null;\n \n //######################### public properties - inputs #########################\n \n /**\n * Type that should be dynamically created into current container\n */\n @Input() \n public ngComponentOutletEx: Type<TComponent>|undefined|null;\n\n /**\n * Custom injector that will be used for newly created component\n */\n @Input() \n public ngComponentOutletExInjector: Injector|undefined|null;\n\n /**\n * Projectable nodes that can be injected into component\n */\n @Input() \n public ngComponentOutletExContent: Node[][]|undefined|null;\n\n //######################### public properties - outputs #########################\n\n /**\n * Occurs when component is created or destroyed, it can send instance of component, or null\n */\n @Output()\n public ngComponentOutletExCreated: EventEmitter<TComponent|null> = new EventEmitter<TComponent|null>();\n\n //######################### public properties #########################\n\n /**\n * Instance of dynamically created component \n */\n public get component(): TComponent|null\n {\n if(!this._componentRef)\n {\n return null;\n }\n\n return this._componentRef.instance;\n }\n\n //######################### constructor #########################\n constructor(private _viewContainerRef: ViewContainerRef)\n {\n }\n\n //######################### public methods - implementation of OnChanges #########################\n public ngOnChanges(): void\n {\n this._viewContainerRef.clear();\n this._componentRef = null;\n\n if (this.ngComponentOutletEx)\n {\n const injector = this.ngComponentOutletExInjector ?? this._viewContainerRef.injector;\n\n this._componentRef = this._viewContainerRef.createComponent<TComponent>(this.ngComponentOutletEx,\n {\n injector,\n projectableNodes: this.ngComponentOutletExContent ?? undefined\n });\n }\n\n this.ngComponentOutletExCreated.emit(this.component);\n }\n}\n"]}
|
|
@@ -6,7 +6,7 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
/**
|
|
7
7
|
* Sets position of attached element relative to provided element
|
|
8
8
|
*/
|
|
9
|
-
class PositionToSADirective {
|
|
9
|
+
export class PositionToSADirective {
|
|
10
10
|
target;
|
|
11
11
|
position;
|
|
12
12
|
//######################### protected fields #########################
|
|
@@ -126,20 +126,19 @@ class PositionToSADirective {
|
|
|
126
126
|
* Custom input type for `source` input
|
|
127
127
|
*/
|
|
128
128
|
static ngAcceptInputType_source;
|
|
129
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
130
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
129
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: PositionToSADirective, deps: [{ token: i0.ElementRef }, { token: POSITION }], target: i0.ɵɵFactoryTarget.Directive });
|
|
130
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.1", type: PositionToSADirective, isStandalone: true, selector: "[positionTo]", inputs: { source: ["positionTo", "source"], placement: "placement", offset: "offset", autoUpdate: "autoUpdate" }, outputs: { flip: "flip", done: "done" }, usesOnChanges: true, ngImport: i0 });
|
|
131
131
|
}
|
|
132
|
-
|
|
133
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: PositionToSADirective, decorators: [{
|
|
132
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: PositionToSADirective, decorators: [{
|
|
134
133
|
type: Directive,
|
|
135
134
|
args: [{
|
|
136
135
|
selector: '[positionTo]',
|
|
137
136
|
standalone: true,
|
|
138
137
|
}]
|
|
139
|
-
}], ctorParameters:
|
|
138
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: undefined, decorators: [{
|
|
140
139
|
type: Inject,
|
|
141
140
|
args: [POSITION]
|
|
142
|
-
}] }]
|
|
141
|
+
}] }], propDecorators: { source: [{
|
|
143
142
|
type: Input,
|
|
144
143
|
args: ['positionTo']
|
|
145
144
|
}], placement: [{
|