@softheon/armature 10.35.0 → 10.36.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/README.md +72 -0
- package/bundles/softheon-armature.umd.js +149 -0
- package/bundles/softheon-armature.umd.js.map +1 -1
- package/bundles/softheon-armature.umd.min.js +2 -2
- package/bundles/softheon-armature.umd.min.js.map +1 -1
- package/esm2015/lib/alert-banner/alert-banner-api.js +1 -1
- package/esm2015/lib/alert-banner/alert-banner.module.js +1 -1
- package/esm2015/lib/alert-banner/components/alert-banner/alert-banner.component.js +1 -1
- package/esm2015/lib/alert-banner/models/alert-banner-config.js +1 -1
- package/esm2015/lib/alert-banner/models/alert-banner-context.js +1 -1
- package/esm2015/lib/alert-banner/models/constants.js +1 -1
- package/esm2015/lib/alert-banner/services/alert-banner.service.js +1 -1
- package/esm2015/lib/armature.module.js +1 -1
- package/esm2015/lib/base-components/base-component-api.js +1 -1
- package/esm2015/lib/base-components/base-component.module.js +1 -1
- package/esm2015/lib/base-components/sof-alert/sof-alert.component.js +1 -1
- package/esm2015/lib/base-components/sof-banner/sof-banner.component.js +1 -1
- package/esm2015/lib/base-components/sof-modal/sof-modal.component.js +1 -1
- package/esm2015/lib/base-components/sof-progress-bar/sof-progress-bar.component.js +1 -1
- package/esm2015/lib/component-save-print/components/component-save-print/component-save-print.component.js +97 -0
- package/esm2015/lib/component-save-print/services/component-save-print.service.js +29 -0
- package/esm2015/lib/component-save-print/sof-ar-component-save-print.module.js +25 -0
- package/esm2015/lib/core/client-generated/api/session.service.js +1 -1
- package/esm2015/lib/core/client-generated/configuration.js +1 -1
- package/esm2015/lib/core/client-generated/encoder.js +1 -1
- package/esm2015/lib/core/client-generated/model/applicationUserModel.js +1 -1
- package/esm2015/lib/core/client-generated/model/assertedUserModel.js +1 -1
- package/esm2015/lib/core/client-generated/model/brandingModel.js +1 -1
- package/esm2015/lib/core/client-generated/model/errorModel.js +1 -1
- package/esm2015/lib/core/client-generated/model/folderLink.js +1 -1
- package/esm2015/lib/core/client-generated/model/identityProfile.js +1 -1
- package/esm2015/lib/core/client-generated/model/models.js +1 -1
- package/esm2015/lib/core/client-generated/model/oAuthModel.js +1 -1
- package/esm2015/lib/core/client-generated/model/preferencesRow.js +1 -1
- package/esm2015/lib/core/client-generated/model/rolesRow.js +1 -1
- package/esm2015/lib/core/client-generated/model/sessionGetResponseModel.js +1 -1
- package/esm2015/lib/core/client-generated/model/sessionPostRequestModel.js +1 -1
- package/esm2015/lib/core/client-generated/model/sessionPostResponseModel.js +1 -1
- package/esm2015/lib/core/client-generated/model/sessionPutRequestModel.js +1 -1
- package/esm2015/lib/core/client-generated/model/sessionPutResponseModel.js +1 -1
- package/esm2015/lib/core/client-generated/model/sessionResponseModel.js +1 -1
- package/esm2015/lib/core/client-generated/model/settingsProfile.js +1 -1
- package/esm2015/lib/core/client-generated/model/themePaletteColorsModel.js +1 -1
- package/esm2015/lib/core/client-generated/model/themePaletteModel.js +1 -1
- package/esm2015/lib/core/client-generated/model/trackingModel.js +1 -1
- package/esm2015/lib/core/client-generated/model/validationRecordsRow.js +1 -1
- package/esm2015/lib/core/client-generated/variables.js +1 -1
- package/esm2015/lib/core/components/app-template/app-template.component.js +1 -1
- package/esm2015/lib/core/functions/guid.js +1 -1
- package/esm2015/lib/core/functions/naming-convention.js +1 -1
- package/esm2015/lib/core/initializer/abstract-startup-service.js +1 -1
- package/esm2015/lib/core/initializer/initializer.service.js +1 -1
- package/esm2015/lib/core/interceptors/armature-auth-token-append.interceptor.js +1 -1
- package/esm2015/lib/core/models/base-config.js +1 -1
- package/esm2015/lib/core/models/constants.js +1 -1
- package/esm2015/lib/core/models/data-store-config.js +1 -1
- package/esm2015/lib/core/models/header-config.js +1 -1
- package/esm2015/lib/core/models/http-verbs.js +1 -1
- package/esm2015/lib/core/models/navigation-config.js +1 -1
- package/esm2015/lib/core/models/oidc-auth-settings.js +1 -1
- package/esm2015/lib/core/models/route-path.js +1 -1
- package/esm2015/lib/core/models/session-config.js +1 -1
- package/esm2015/lib/core/models/styles.js +1 -1
- package/esm2015/lib/core/models/typed-session.js +1 -1
- package/esm2015/lib/core/models/user-entity-service-config.js +1 -1
- package/esm2015/lib/core/services/authorization.service.js +1 -1
- package/esm2015/lib/core/services/banner.service.js +1 -1
- package/esm2015/lib/core/services/base-config.service.js +1 -1
- package/esm2015/lib/core/services/custom-auth-config.service.js +1 -1
- package/esm2015/lib/core/services/default-config.service.js +1 -1
- package/esm2015/lib/core/services/session.service.js +1 -1
- package/esm2015/lib/core/services/user-entity.service.js +1 -1
- package/esm2015/lib/distributed-cache/client-generated/api/api.js +1 -1
- package/esm2015/lib/distributed-cache/client-generated/api/cache.service.js +1 -1
- package/esm2015/lib/distributed-cache/client-generated/configuration.js +1 -1
- package/esm2015/lib/distributed-cache/client-generated/encoder.js +1 -1
- package/esm2015/lib/distributed-cache/client-generated/model/cacheExpirationType.js +1 -1
- package/esm2015/lib/distributed-cache/client-generated/model/createCacheEntryRequestModel.js +1 -1
- package/esm2015/lib/distributed-cache/client-generated/model/models.js +1 -1
- package/esm2015/lib/distributed-cache/client-generated/model/retrieveCacheEntryResponseModel.js +1 -1
- package/esm2015/lib/distributed-cache/client-generated/model/updateCacheEntryRequestModel.js +1 -1
- package/esm2015/lib/distributed-cache/client-generated/variables.js +1 -1
- package/esm2015/lib/distributed-cache/distributed-cache-api.js +1 -1
- package/esm2015/lib/distributed-cache/distributed-cache.module.js +1 -1
- package/esm2015/lib/distributed-cache/models/constants.js +1 -1
- package/esm2015/lib/distributed-cache/models/policy-person.js +1 -1
- package/esm2015/lib/distributed-cache/services/server-cache.service.js +1 -1
- package/esm2015/lib/error/components/error-common/error-common.component.js +1 -1
- package/esm2015/lib/error/error-api.js +1 -1
- package/esm2015/lib/error/error.module.js +1 -1
- package/esm2015/lib/error/models/error-common-config.js +1 -1
- package/esm2015/lib/faq/components/faq/faq.component.js +1 -1
- package/esm2015/lib/faq/faq-api.js +1 -1
- package/esm2015/lib/faq/faq.module.js +1 -1
- package/esm2015/lib/faq/models/faq-config.js +1 -1
- package/esm2015/lib/faq/models/faq.js +1 -1
- package/esm2015/lib/footer/components/footer/footer.component.js +1 -1
- package/esm2015/lib/footer/components/site-map/site-map.component.js +1 -1
- package/esm2015/lib/footer/footer-api.js +1 -1
- package/esm2015/lib/footer/footer.module.js +1 -1
- package/esm2015/lib/footer/models/enum/site-map-direction.js +1 -1
- package/esm2015/lib/footer/models/footer-config.js +1 -1
- package/esm2015/lib/footer/models/site-map-models.js +1 -1
- package/esm2015/lib/forms/components/sof-address/sof-address.component.js +1 -1
- package/esm2015/lib/forms/directives/alphanumeric/alphanumeric.directive.js +1 -1
- package/esm2015/lib/forms/directives/letters-only/letters-only.directive.js +1 -1
- package/esm2015/lib/forms/directives/numbers-only/numbers-only.directive.js +1 -1
- package/esm2015/lib/forms/forms-api.js +1 -1
- package/esm2015/lib/forms/forms.module.js +1 -1
- package/esm2015/lib/forms/models/address.js +1 -1
- package/esm2015/lib/forms/models/constants.js +1 -1
- package/esm2015/lib/forms/models/county.js +1 -1
- package/esm2015/lib/forms/models/enums/states.js +1 -1
- package/esm2015/lib/forms/pipes/phone-format.pipe.js +1 -1
- package/esm2015/lib/forms/services/alert.service.js +1 -1
- package/esm2015/lib/header/components/header/header.component.js +1 -1
- package/esm2015/lib/header/components/mobile-header-menu/mobile-header-menu.component.js +1 -1
- package/esm2015/lib/header/header-api.js +1 -1
- package/esm2015/lib/header/header.module.js +1 -1
- package/esm2015/lib/header/models/header-auth.settings.js +1 -1
- package/esm2015/lib/header/models/header-language.settings.js +1 -1
- package/esm2015/lib/header/models/header-theme.settings.js +1 -1
- package/esm2015/lib/header/models/header.settings.js +1 -1
- package/esm2015/lib/header/models/mobile-header-nav.settings.js +1 -1
- package/esm2015/lib/navigation/components/navigation/navigation.component.js +1 -1
- package/esm2015/lib/navigation/models/nav-theme.settings.js +1 -1
- package/esm2015/lib/navigation/models/nav.settings.js +1 -1
- package/esm2015/lib/navigation/models/navigation.js +1 -1
- package/esm2015/lib/navigation/navigation-api.js +1 -1
- package/esm2015/lib/navigation/navigation.module.js +1 -1
- package/esm2015/lib/oauth/models/constants.js +1 -1
- package/esm2015/lib/oauth/models/generated/accountManagementAssertionModel.js +1 -1
- package/esm2015/lib/oauth/models/generated/accountManagementRefreshRequestModel.js +1 -1
- package/esm2015/lib/oauth/models/generated/accountManagementResponseModel.js +1 -1
- package/esm2015/lib/oauth/models/generated/coverageDetail.js +1 -1
- package/esm2015/lib/oauth/models/generated/finance.js +1 -1
- package/esm2015/lib/oauth/models/generated/iSsoResponseModel.js +1 -1
- package/esm2015/lib/oauth/models/generated/iSsoResponseModelAccountManagementAssertionModel.js +1 -1
- package/esm2015/lib/oauth/models/generated/person.js +1 -1
- package/esm2015/lib/oauth/models/generated/policy.js +1 -1
- package/esm2015/lib/oauth/models/generated/refreshResponseModel.js +1 -1
- package/esm2015/lib/oauth/models/hybrid-saml-oauth-config.js +1 -1
- package/esm2015/lib/oauth/oauth-api.js +1 -1
- package/esm2015/lib/oauth/oauth.module.js +1 -1
- package/esm2015/lib/oauth/services/hybrid-saml-oauth.service.js +1 -1
- package/esm2015/lib/rbac/directives/rbac-action.directive.js +1 -1
- package/esm2015/lib/rbac/models/access-token-claims.js +1 -1
- package/esm2015/lib/rbac/models/constants.js +1 -1
- package/esm2015/lib/rbac/models/decoded-access-token.js +1 -1
- package/esm2015/lib/rbac/models/rbac-config.js +1 -1
- package/esm2015/lib/rbac/models/role-access.js +1 -1
- package/esm2015/lib/rbac/rbac-api.js +1 -1
- package/esm2015/lib/rbac/rbac.module.js +1 -1
- package/esm2015/lib/rbac/services/ar-role-nav.service.js +1 -1
- package/esm2015/lib/rbac/services/oauth2-role.service.js +1 -1
- package/esm2015/lib/rbac/services/role-nav.service.js +1 -1
- package/esm2015/lib/rum/models/arm-error.js +1 -1
- package/esm2015/lib/rum/models/rum-config.js +1 -1
- package/esm2015/lib/rum/rum-api.js +1 -1
- package/esm2015/lib/rum/rum.module.js +1 -1
- package/esm2015/lib/rum/services/rum.service.js +1 -1
- package/esm2015/lib/rum/services/shared-error.service.js +1 -1
- package/esm2015/lib/rum/services/softheon-error-handler.service.js +1 -1
- package/esm2015/lib/saml/components/redirect-saml/redirect-saml.component.js +1 -1
- package/esm2015/lib/saml/models/i-saml-request.js +1 -1
- package/esm2015/lib/saml/models/i-saml-response.js +1 -1
- package/esm2015/lib/saml/models/redirect-saml-request.js +1 -1
- package/esm2015/lib/saml/models/sso-gateway-model.js +1 -1
- package/esm2015/lib/saml/saml-api.js +1 -1
- package/esm2015/lib/saml/saml.module.js +1 -1
- package/esm2015/lib/saml/services/entry/abstract-saml-entry.service.js +1 -1
- package/esm2015/lib/saml/services/entry/sso-gateway-entry.service.js +1 -1
- package/esm2015/lib/saml/services/send-off/abstract-saml.service.js +1 -1
- package/esm2015/lib/saml/services/send-off/saml.service.js +1 -1
- package/esm2015/lib/sof-pipe/constants/constants.js +1 -1
- package/esm2015/lib/sof-pipe/models/sof-date-pipe-format.js +1 -1
- package/esm2015/lib/sof-pipe/pipes/sof-blank/sof-blank.pipe.js +1 -1
- package/esm2015/lib/sof-pipe/pipes/sof-date/sof-date.pipe.js +1 -1
- package/esm2015/lib/sof-pipe/pipes/sof-ssn/sof-ssn.pipe.js +1 -1
- package/esm2015/lib/sof-pipe/sof-pipe.api.js +1 -1
- package/esm2015/lib/sof-pipe/sof-pipe.module.js +1 -1
- package/esm2015/lib/theming/directives/css-override.directive.js +1 -1
- package/esm2015/lib/theming/models/css-override.js +1 -1
- package/esm2015/lib/theming/services/theme.service.js +1 -1
- package/esm2015/lib/theming/theme-api.js +1 -1
- package/esm2015/lib/theming/theme.module.js +1 -1
- package/esm2015/public-api.js +4 -1
- package/esm2015/softheon-armature.js +1 -1
- package/fesm2015/softheon-armature.js +142 -2
- package/fesm2015/softheon-armature.js.map +1 -1
- package/lib/component-save-print/components/component-save-print/component-save-print.component.d.ts +43 -0
- package/lib/component-save-print/services/component-save-print.service.d.ts +15 -0
- package/lib/component-save-print/sof-ar-component-save-print.module.d.ts +3 -0
- package/package.json +1 -1
- package/public-api.d.ts +3 -0
- package/softheon-armature.metadata.json +1 -1
package/README.md
CHANGED
|
@@ -1775,3 +1775,75 @@ The selector indicates how the dom will be searched for html elements
|
|
|
1775
1775
|
| -------- | -------- | ----------------- | ------------------------------------------------------------------- |
|
|
1776
1776
|
| name | `string` | any css attribute | The name of the css attribute to modify on returned elements styles |
|
|
1777
1777
|
| value | `string` | any string | The value to set for the css attribute |
|
|
1778
|
+
|
|
1779
|
+
## Saving/Printing a specified component
|
|
1780
|
+
|
|
1781
|
+
This section will describe how any component for an application can be saved/printed
|
|
1782
|
+
|
|
1783
|
+
### Setup
|
|
1784
|
+
|
|
1785
|
+
There are few steps that must be done in order to use this functionality
|
|
1786
|
+
|
|
1787
|
+
__First__: In the module that will be using this functionality include the following import
|
|
1788
|
+
|
|
1789
|
+
```javascript
|
|
1790
|
+
import { SofArComponentSavePrintModule } from '@softheon/armature';
|
|
1791
|
+
|
|
1792
|
+
@ngModule({
|
|
1793
|
+
declarations: [...],
|
|
1794
|
+
imports: [
|
|
1795
|
+
...
|
|
1796
|
+
SofArComponentSavePrintModule
|
|
1797
|
+
...
|
|
1798
|
+
]
|
|
1799
|
+
})
|
|
1800
|
+
|
|
1801
|
+
```
|
|
1802
|
+
|
|
1803
|
+
__Last__: Include the following component in a component that will be on the page at the time the user will select to save/print. This can be done in the app.component.ts or in a specific route in the application.
|
|
1804
|
+
|
|
1805
|
+
```html
|
|
1806
|
+
<sof-ar-component-save-print></sof-ar-component-save-print>
|
|
1807
|
+
```
|
|
1808
|
+
|
|
1809
|
+
### Usage
|
|
1810
|
+
|
|
1811
|
+
In this example, the print command will be executed by an application defined button in a component. The save/print functionality is not limited to a component, it can be executed from a service/directive/pipe etc.
|
|
1812
|
+
|
|
1813
|
+
```javascript
|
|
1814
|
+
import { Component, OnInit } from '@angular/core';
|
|
1815
|
+
import { ComponentSavePrintService } from '@softheon/armature';
|
|
1816
|
+
import { SomeOtherComponent } from './some/local/component/location';
|
|
1817
|
+
|
|
1818
|
+
/** The save print component */
|
|
1819
|
+
@Component({
|
|
1820
|
+
selector: 'app-save-print',
|
|
1821
|
+
templateUrl: './save-print.component.html',
|
|
1822
|
+
styleUrls: ['./save-print.component.scss']
|
|
1823
|
+
})
|
|
1824
|
+
export class SavePrintComponent implements OnInit {
|
|
1825
|
+
|
|
1826
|
+
/**
|
|
1827
|
+
* The constructor
|
|
1828
|
+
* @param componentSavePrintService The save/print component service
|
|
1829
|
+
*/
|
|
1830
|
+
constructor(
|
|
1831
|
+
private readonly componentSavePrintService: ComponentSavePrintService
|
|
1832
|
+
) { }
|
|
1833
|
+
|
|
1834
|
+
/** Angular life cycle hook for component initialization */
|
|
1835
|
+
public ngOnInit(): void {
|
|
1836
|
+
}
|
|
1837
|
+
|
|
1838
|
+
/** Downloads the pdf of the page */
|
|
1839
|
+
public downloadPdf(): void {
|
|
1840
|
+
this.componentSavePrintService.savePrintComponent(SomeOtherComponent);
|
|
1841
|
+
}
|
|
1842
|
+
}
|
|
1843
|
+
```
|
|
1844
|
+
|
|
1845
|
+
The `savePrintComponent` function takes the type of component that will be saved/printed as the only argument. This component does not have to be the same as the component executing the save/print function, it can be any component in the application including routes.
|
|
1846
|
+
|
|
1847
|
+
### Limitations
|
|
1848
|
+
|
|
1849
|
+
There is currently no way to pass in custom inputs to the component being save/printed. This can be prevented by having a component host the component in question with the correct default inputs and providing the host component to the function rather the desired component.
|
|
@@ -6481,6 +6481,152 @@
|
|
|
6481
6481
|
|
|
6482
6482
|
/** Public API surface for the forms */
|
|
6483
6483
|
|
|
6484
|
+
/** The component print service */
|
|
6485
|
+
var ComponentSavePrintService = /** @class */ (function () {
|
|
6486
|
+
/** Constructs the service */
|
|
6487
|
+
function ComponentSavePrintService() {
|
|
6488
|
+
/** The component to print behavior subject */
|
|
6489
|
+
this.componentSavePrintBs = new rxjs.BehaviorSubject(undefined);
|
|
6490
|
+
this.savePrintComponent$ = this.componentSavePrintBs.asObservable()
|
|
6491
|
+
.pipe(operators.filter(function (c) { return !!c; }));
|
|
6492
|
+
}
|
|
6493
|
+
/**
|
|
6494
|
+
* Save/Print the provided component
|
|
6495
|
+
* @param component The component to save/print
|
|
6496
|
+
*/
|
|
6497
|
+
ComponentSavePrintService.prototype.savePrintComponent = function (component) {
|
|
6498
|
+
this.componentSavePrintBs.next(component);
|
|
6499
|
+
};
|
|
6500
|
+
return ComponentSavePrintService;
|
|
6501
|
+
}());
|
|
6502
|
+
ComponentSavePrintService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ComponentSavePrintService_Factory() { return new ComponentSavePrintService(); }, token: ComponentSavePrintService, providedIn: "root" });
|
|
6503
|
+
ComponentSavePrintService.decorators = [
|
|
6504
|
+
{ type: i0.Injectable, args: [{
|
|
6505
|
+
providedIn: 'root'
|
|
6506
|
+
},] }
|
|
6507
|
+
];
|
|
6508
|
+
ComponentSavePrintService.ctorParameters = function () { return []; };
|
|
6509
|
+
|
|
6510
|
+
/** The component save and print component */
|
|
6511
|
+
var ComponentSavePrintComponent = /** @class */ (function () {
|
|
6512
|
+
/**
|
|
6513
|
+
* Constructs the component
|
|
6514
|
+
* @param cfr The component factory resolver
|
|
6515
|
+
* @param vcr The view container reference
|
|
6516
|
+
* @param componentSavePrintService The component save print service
|
|
6517
|
+
*/
|
|
6518
|
+
function ComponentSavePrintComponent(cfr, vcr, componentSavePrintService) {
|
|
6519
|
+
this.cfr = cfr;
|
|
6520
|
+
this.vcr = vcr;
|
|
6521
|
+
this.componentSavePrintService = componentSavePrintService;
|
|
6522
|
+
/** The component subscription */
|
|
6523
|
+
this.componentSub = new rxjs.Subscription();
|
|
6524
|
+
}
|
|
6525
|
+
/** Life cycle hook for component initialization */
|
|
6526
|
+
ComponentSavePrintComponent.prototype.ngOnInit = function () {
|
|
6527
|
+
var _this = this;
|
|
6528
|
+
this.componentSub.add(this.componentSavePrintService.savePrintComponent$.subscribe(function (c) {
|
|
6529
|
+
_this.print(c);
|
|
6530
|
+
}));
|
|
6531
|
+
};
|
|
6532
|
+
/** Life cycle hook for component destruction */
|
|
6533
|
+
ComponentSavePrintComponent.prototype.ngOnDestroy = function () {
|
|
6534
|
+
this.componentSub.unsubscribe();
|
|
6535
|
+
};
|
|
6536
|
+
/**
|
|
6537
|
+
* Prints the component
|
|
6538
|
+
* @param component The component type to print
|
|
6539
|
+
*/
|
|
6540
|
+
ComponentSavePrintComponent.prototype.print = function (component) {
|
|
6541
|
+
var _a;
|
|
6542
|
+
this.attachStyles(this.iframeRef.nativeElement.contentWindow);
|
|
6543
|
+
this.doc = ((_a = this.iframeRef) === null || _a === void 0 ? void 0 : _a.nativeElement.contentDocument) || this.iframeRef.nativeElement.iFrameRef.contentWindow;
|
|
6544
|
+
var compFactory = this.cfr.resolveComponentFactory(component);
|
|
6545
|
+
this.componentRef = this.vcr.createComponent(compFactory);
|
|
6546
|
+
this.componentRef.location.nativeElement.id = 'sofArComponentSavePrintContainer';
|
|
6547
|
+
this.doc.body.appendChild(this.componentRef.location.nativeElement);
|
|
6548
|
+
var iframe = this.iframeRef.nativeElement;
|
|
6549
|
+
iframe.contentWindow.onafterprint = function () {
|
|
6550
|
+
iframe.contentDocument.body.innerHTML = '';
|
|
6551
|
+
};
|
|
6552
|
+
this.waitForImageToLoad(iframe, function () { iframe.contentWindow.print(); });
|
|
6553
|
+
};
|
|
6554
|
+
/**
|
|
6555
|
+
* Helper function to execute print function on hold until images finish loading
|
|
6556
|
+
* @param iframe The iframe to load images on
|
|
6557
|
+
* @param done The function to wait execution
|
|
6558
|
+
*/
|
|
6559
|
+
ComponentSavePrintComponent.prototype.waitForImageToLoad = function (iframe, done) {
|
|
6560
|
+
var interval = setInterval(function () {
|
|
6561
|
+
var allImages = iframe.contentDocument.body.querySelectorAll('img');
|
|
6562
|
+
var loaded = Array.from({ length: allImages.length }).fill(false);
|
|
6563
|
+
allImages.forEach(function (img, idx) {
|
|
6564
|
+
loaded[idx] = img.complete;
|
|
6565
|
+
});
|
|
6566
|
+
if (loaded.every(function (c) { return !!c; })) {
|
|
6567
|
+
clearInterval(interval);
|
|
6568
|
+
done();
|
|
6569
|
+
}
|
|
6570
|
+
}, 500);
|
|
6571
|
+
};
|
|
6572
|
+
/**
|
|
6573
|
+
* Helper function to append all the styles to targe window
|
|
6574
|
+
* @param targetWindow The target window
|
|
6575
|
+
*/
|
|
6576
|
+
ComponentSavePrintComponent.prototype.attachStyles = function (targetWindow) {
|
|
6577
|
+
// Copy styles from parent window
|
|
6578
|
+
document.querySelectorAll('style')
|
|
6579
|
+
.forEach(function (htmlElement) {
|
|
6580
|
+
targetWindow.document.head.appendChild(htmlElement.cloneNode(true));
|
|
6581
|
+
});
|
|
6582
|
+
// Copy stylesheet link from parent window
|
|
6583
|
+
document.querySelectorAll('link')
|
|
6584
|
+
.forEach(function (htmlElement) {
|
|
6585
|
+
targetWindow.document.head.appendChild(htmlElement.cloneNode(true));
|
|
6586
|
+
});
|
|
6587
|
+
};
|
|
6588
|
+
return ComponentSavePrintComponent;
|
|
6589
|
+
}());
|
|
6590
|
+
ComponentSavePrintComponent.decorators = [
|
|
6591
|
+
{ type: i0.Component, args: [{
|
|
6592
|
+
selector: 'sof-ar-component-save-print',
|
|
6593
|
+
template: "<div class=\"save-print-container\">\r\n <iframe #iframe class=\"save-print\">\r\n </iframe>\r\n</div>\r\n",
|
|
6594
|
+
styles: ["iframe.save-print{height:1px;opacity:0;width:1000px}.save-print-container{height:1px;overflow-x:hidden;overflow-y:hidden;width:100%}"]
|
|
6595
|
+
},] }
|
|
6596
|
+
];
|
|
6597
|
+
ComponentSavePrintComponent.ctorParameters = function () { return [
|
|
6598
|
+
{ type: i0.ComponentFactoryResolver },
|
|
6599
|
+
{ type: i0.ViewContainerRef },
|
|
6600
|
+
{ type: ComponentSavePrintService }
|
|
6601
|
+
]; };
|
|
6602
|
+
ComponentSavePrintComponent.propDecorators = {
|
|
6603
|
+
iframeRef: [{ type: i0.ViewChild, args: ['iframe', { static: false },] }]
|
|
6604
|
+
};
|
|
6605
|
+
|
|
6606
|
+
/** The component save print module */
|
|
6607
|
+
var SofArComponentSavePrintModule = /** @class */ (function () {
|
|
6608
|
+
function SofArComponentSavePrintModule() {
|
|
6609
|
+
}
|
|
6610
|
+
return SofArComponentSavePrintModule;
|
|
6611
|
+
}());
|
|
6612
|
+
SofArComponentSavePrintModule.decorators = [
|
|
6613
|
+
{ type: i0.NgModule, args: [{
|
|
6614
|
+
declarations: [ComponentSavePrintComponent],
|
|
6615
|
+
imports: [
|
|
6616
|
+
common.CommonModule
|
|
6617
|
+
],
|
|
6618
|
+
providers: [
|
|
6619
|
+
ComponentSavePrintService
|
|
6620
|
+
],
|
|
6621
|
+
exports: [
|
|
6622
|
+
ComponentSavePrintComponent
|
|
6623
|
+
],
|
|
6624
|
+
entryComponents: [
|
|
6625
|
+
ComponentSavePrintComponent
|
|
6626
|
+
]
|
|
6627
|
+
},] }
|
|
6628
|
+
];
|
|
6629
|
+
|
|
6484
6630
|
/** Public API Surface of armature */
|
|
6485
6631
|
|
|
6486
6632
|
/**
|
|
@@ -6512,6 +6658,8 @@
|
|
|
6512
6658
|
exports.BaseComponentModule = BaseComponentModule;
|
|
6513
6659
|
exports.BaseConfigService = BaseConfigService;
|
|
6514
6660
|
exports.CacheExpirationType = CacheExpirationType;
|
|
6661
|
+
exports.ComponentSavePrintComponent = ComponentSavePrintComponent;
|
|
6662
|
+
exports.ComponentSavePrintService = ComponentSavePrintService;
|
|
6515
6663
|
exports.Configuration = Configuration$1;
|
|
6516
6664
|
exports.CssOverride = CssOverride;
|
|
6517
6665
|
exports.CssOverrideDirective = CssOverrideDirective;
|
|
@@ -6568,6 +6716,7 @@
|
|
|
6568
6716
|
exports.SiteMapComponent = SiteMapComponent;
|
|
6569
6717
|
exports.SofAddressComponent = SofAddressComponent;
|
|
6570
6718
|
exports.SofAlertComponent = SofAlertComponent;
|
|
6719
|
+
exports.SofArComponentSavePrintModule = SofArComponentSavePrintModule;
|
|
6571
6720
|
exports.SofBannerComponent = SofBannerComponent;
|
|
6572
6721
|
exports.SofBlankPipe = SofBlankPipe;
|
|
6573
6722
|
exports.SofDatePipe = SofDatePipe;
|