@ongov/ontario-design-system-component-library-angular 6.0.0 → 7.0.0-alpha.1

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 CHANGED
@@ -52,6 +52,25 @@ To use the Ontario Design System Angular component library, follow these steps:
52
52
  export class AppModule {}
53
53
  ```
54
54
 
55
+ ### Asset path configuration (optional)
56
+
57
+ If your app serves component assets (fonts, images, favicons) from a non-root path, configure the asset base path before components render.
58
+
59
+ ```typescript
60
+ import { setAssetPath } from '@ongov/ontario-design-system-component-library-angular';
61
+
62
+ setAssetPath(`${window.location.origin}/assets/`);
63
+ ```
64
+
65
+ If you need to override the global styles theme with a custom asset base path, create a local theme wrapper that forwards the global styles and sets `$asset-base-path`, then import that wrapper in your app entry point.
66
+
67
+ ```scss
68
+ // src/styles/ontario-theme.scss
69
+ @forward 'pkg:@ongov/ontario-design-system-global-styles/styles/scss/theme.scss' with (
70
+ $asset-base-path: '/assets'
71
+ );
72
+ ```
73
+
55
74
  ### Usage
56
75
 
57
76
  You can now use the Angular Components in your component template files.
@@ -4,4 +4,5 @@
4
4
  export * from './lib/component-library.module';
5
5
  export { DIRECTIVES } from './lib/stencil-generated';
6
6
  export * from './lib/stencil-generated/components';
7
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL2NvbXBvbmVudC1saWJyYXJ5L3NyYy9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxnQ0FBZ0MsQ0FBQztBQUMvQyxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0seUJBQXlCLENBQUM7QUFDckQsY0FBYyxvQ0FBb0MsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2YgY29tcG9uZW50LWxpYnJhcnlcbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2xpYi9jb21wb25lbnQtbGlicmFyeS5tb2R1bGUnO1xuZXhwb3J0IHsgRElSRUNUSVZFUyB9IGZyb20gJy4vbGliL3N0ZW5jaWwtZ2VuZXJhdGVkJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL3N0ZW5jaWwtZ2VuZXJhdGVkL2NvbXBvbmVudHMnO1xuIl19
7
+ export { setAssetPath } from '@ongov/ontario-design-system-component-library/components';
8
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL2NvbXBvbmVudC1saWJyYXJ5L3NyYy9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxnQ0FBZ0MsQ0FBQztBQUMvQyxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0seUJBQXlCLENBQUM7QUFDckQsY0FBYyxvQ0FBb0MsQ0FBQztBQUNuRCxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sMkRBQTJELENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIGNvbXBvbmVudC1saWJyYXJ5XG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9saWIvY29tcG9uZW50LWxpYnJhcnkubW9kdWxlJztcbmV4cG9ydCB7IERJUkVDVElWRVMgfSBmcm9tICcuL2xpYi9zdGVuY2lsLWdlbmVyYXRlZCc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9zdGVuY2lsLWdlbmVyYXRlZC9jb21wb25lbnRzJztcbmV4cG9ydCB7IHNldEFzc2V0UGF0aCB9IGZyb20gJ0Bvbmdvdi9vbnRhcmlvLWRlc2lnbi1zeXN0ZW0tY29tcG9uZW50LWxpYnJhcnkvY29tcG9uZW50cyc7XG4iXX0=
@@ -3,6 +3,7 @@ import { Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
3
3
  import { __decorate } from 'tslib';
4
4
  import { fromEvent } from 'rxjs';
5
5
  import { defineCustomElements } from '@ongov/ontario-design-system-component-library/loader';
6
+ export { setAssetPath } from '@ongov/ontario-design-system-component-library/components';
6
7
 
7
8
  /* eslint-disable */
8
9
  /* tslint:disable */