@ascentgl/ads-ui 0.0.17 → 0.0.19

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.
Files changed (42) hide show
  1. package/esm2022/lib/components/buttons/button/button.component.mjs +3 -5
  2. package/esm2022/lib/components/card/card.component.mjs +17 -7
  3. package/esm2022/lib/components/divider/divider.component.mjs +4 -9
  4. package/esm2022/lib/components/error-page/error-page.component.mjs +1 -1
  5. package/esm2022/lib/components/expansion-panel/expansion-panel.component.mjs +2 -2
  6. package/esm2022/lib/components/form-fields/area/textarea.component.mjs +2 -2
  7. package/esm2022/lib/components/form-fields/common/error/error.component.mjs +2 -2
  8. package/esm2022/lib/components/form-fields/common/input.tooltip.component.mjs +3 -3
  9. package/esm2022/lib/components/form-fields/common/success/success.component.mjs +2 -2
  10. package/esm2022/lib/components/form-fields/datepickers/date-picker/datepicker.component.mjs +3 -3
  11. package/esm2022/lib/components/form-fields/datepickers/datetime-picker/datetimepicker.component.mjs +3 -3
  12. package/esm2022/lib/components/form-fields/datepickers/time-picker/timepicker.component.mjs +3 -3
  13. package/esm2022/lib/components/form-fields/dropdowns/dropdown/dropdown.component.mjs +3 -3
  14. package/esm2022/lib/components/form-fields/dropdowns/input-dropdown/input-dropdown.component.mjs +3 -3
  15. package/esm2022/lib/components/form-fields/dropdowns/multi-select-dropdown/multi-select-dropdown.component.mjs +3 -3
  16. package/esm2022/lib/components/form-fields/input/input.component.mjs +2 -2
  17. package/esm2022/lib/components/form-fields/search-fields/search-dropdown/search-dropdown.component.mjs +3 -3
  18. package/esm2022/lib/components/form-fields/search-fields/search-input/search-input.component.mjs +3 -3
  19. package/esm2022/lib/components/form-fields/selection-fields/checkbox/checkbox.component.mjs +3 -3
  20. package/esm2022/lib/components/form-fields/selection-fields/radio-button/radio-button.component.mjs +3 -3
  21. package/esm2022/lib/components/form-fields/selection-fields/slide-toggle/slide-toggle.component.mjs +3 -3
  22. package/esm2022/lib/components/modal/modal.component.mjs +1 -1
  23. package/esm2022/lib/components/nav-bar/scms-side-nav-bar/scms-side-nav-bar.component.mjs +3 -3
  24. package/esm2022/lib/components/nav-bar/side-nav-bar/side-nav-bar.component.mjs +3 -3
  25. package/esm2022/lib/components/snackbars/snackbar/snackbar.component.mjs +1 -1
  26. package/esm2022/lib/components/tags/create-tag/create-tag.component.mjs +1 -1
  27. package/fesm2022/ascentgl-ads-ui.mjs +61 -59
  28. package/fesm2022/ascentgl-ads-ui.mjs.map +1 -1
  29. package/lib/components/buttons/button/button.component.d.ts +1 -3
  30. package/lib/components/card/card.component.d.ts +7 -3
  31. package/lib/components/divider/divider.component.d.ts +2 -3
  32. package/package.json +13 -19
  33. package/esm2022/src/lib/components/divider/ascentgl-ads-ui-src-lib-components-divider.mjs +0 -5
  34. package/esm2022/src/lib/components/divider/divider.component.mjs +0 -43
  35. package/esm2022/src/lib/components/divider/divider.module.mjs +0 -18
  36. package/esm2022/src/lib/components/divider/public-api.mjs +0 -3
  37. package/fesm2022/ascentgl-ads-ui-src-lib-components-divider.mjs +0 -65
  38. package/fesm2022/ascentgl-ads-ui-src-lib-components-divider.mjs.map +0 -1
  39. package/src/lib/components/divider/divider.component.d.ts +0 -26
  40. package/src/lib/components/divider/divider.module.d.ts +0 -8
  41. package/src/lib/components/divider/index.d.ts +0 -5
  42. package/src/lib/components/divider/public-api.d.ts +0 -2
@@ -11,8 +11,6 @@ export declare class AdsButtonComponent {
11
11
  disabled: import("@angular/core").InputSignal<boolean>;
12
12
  /** Whether the button is a smaller version */
13
13
  size: import("@angular/core").InputSignal<Size>;
14
- /** Whether the button is rounded or squared */
15
- rounded: import("@angular/core").InputSignal<boolean>;
16
14
  /** Sets the "type" attribute on the button */
17
15
  type: import("@angular/core").InputSignal<"button" | "submit" | "reset">;
18
16
  /** @ignore */
@@ -20,5 +18,5 @@ export declare class AdsButtonComponent {
20
18
  /** @ignore */
21
19
  calcReverse: Signal<boolean>;
22
20
  static ɵfac: i0.ɵɵFactoryDeclaration<AdsButtonComponent, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<AdsButtonComponent, "ads-button", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; }, {}, never, ["*"], false, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<AdsButtonComponent, "ads-button", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; }, {}, never, ["*"], false, never>;
24
22
  }
@@ -4,13 +4,17 @@ export declare class AdsCardComponent {
4
4
  /**
5
5
  * Card border color
6
6
  */
7
- borderColor: import("@angular/core").InputSignal<Colors>;
7
+ borderColor: Colors;
8
8
  /**
9
9
  * Card border width
10
10
  */
11
- borderWidth: import("@angular/core").InputSignal<number>;
11
+ borderWidth: number;
12
+ /**
13
+ * Card border radius
14
+ */
15
+ borderRadius: number;
12
16
  /** @ignore */
13
17
  getBorderColor(color: string): string;
14
18
  static ɵfac: i0.ɵɵFactoryDeclaration<AdsCardComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<AdsCardComponent, "ads-card", never, { "borderColor": { "alias": "borderColor"; "required": false; "isSignal": true; }; "borderWidth": { "alias": "borderWidth"; "required": false; "isSignal": true; }; }, {}, never, ["*"], false, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<AdsCardComponent, "ads-card", never, { "borderColor": { "alias": "borderColor"; "required": false; }; "borderWidth": { "alias": "borderWidth"; "required": false; }; "borderRadius": { "alias": "borderRadius"; "required": false; }; }, {}, never, ["*"], false, never>;
16
20
  }
@@ -1,4 +1,5 @@
1
1
  import { OnInit } from '@angular/core';
2
+ import { Colors } from '../general/color-palette/colors.enums';
2
3
  import * as i0 from "@angular/core";
3
4
  export type DividerStyle = {
4
5
  margin: string | number;
@@ -12,12 +13,10 @@ export declare class DividerComponent implements OnInit {
12
13
  /**
13
14
  * The divider color
14
15
  */
15
- color: 'primary' | 'secondary' | 'light';
16
+ color: Colors;
16
17
  /** @ignore */
17
18
  style: DividerStyle;
18
19
  /** @ignore */
19
- private colors;
20
- /** @ignore */
21
20
  ngOnInit(): void;
22
21
  /** @ignore */
23
22
  private setDividerStyle;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ascentgl/ads-ui",
3
- "version": "0.0.17",
3
+ "version": "0.0.19",
4
4
  "peerDependencies": {
5
5
  "@ascentgl/ads-icons": ">=0.0.0",
6
6
  "@ascentgl/ads-utils": ">=0.0.0",
@@ -41,12 +41,6 @@
41
41
  "esm": "./esm2022/src/lib/components/drag-and-drop-list/ascentgl-ads-ui-src-lib-components-drag-and-drop-list.mjs",
42
42
  "default": "./fesm2022/ascentgl-ads-ui-src-lib-components-drag-and-drop-list.mjs"
43
43
  },
44
- "./src/lib/components/divider": {
45
- "types": "./src/lib/components/divider/index.d.ts",
46
- "esm2022": "./esm2022/src/lib/components/divider/ascentgl-ads-ui-src-lib-components-divider.mjs",
47
- "esm": "./esm2022/src/lib/components/divider/ascentgl-ads-ui-src-lib-components-divider.mjs",
48
- "default": "./fesm2022/ascentgl-ads-ui-src-lib-components-divider.mjs"
49
- },
50
44
  "./src/lib/components/footer": {
51
45
  "types": "./src/lib/components/footer/index.d.ts",
52
46
  "esm2022": "./esm2022/src/lib/components/footer/ascentgl-ads-ui-src-lib-components-footer.mjs",
@@ -71,12 +65,6 @@
71
65
  "esm": "./esm2022/src/lib/components/splash-page/ascentgl-ads-ui-src-lib-components-splash-page.mjs",
72
66
  "default": "./fesm2022/ascentgl-ads-ui-src-lib-components-splash-page.mjs"
73
67
  },
74
- "./src/lib/components/buttons/button-container": {
75
- "types": "./src/lib/components/buttons/button-container/index.d.ts",
76
- "esm2022": "./esm2022/src/lib/components/buttons/button-container/ascentgl-ads-ui-src-lib-components-buttons-button-container.mjs",
77
- "esm": "./esm2022/src/lib/components/buttons/button-container/ascentgl-ads-ui-src-lib-components-buttons-button-container.mjs",
78
- "default": "./fesm2022/ascentgl-ads-ui-src-lib-components-buttons-button-container.mjs"
79
- },
80
68
  "./src/lib/components/error-page/error-page-code": {
81
69
  "types": "./src/lib/components/error-page/error-page-code/index.d.ts",
82
70
  "esm2022": "./esm2022/src/lib/components/error-page/error-page-code/ascentgl-ads-ui-src-lib-components-error-page-error-page-code.mjs",
@@ -89,6 +77,12 @@
89
77
  "esm": "./esm2022/src/lib/components/footer/container/ascentgl-ads-ui-src-lib-components-footer-container.mjs",
90
78
  "default": "./fesm2022/ascentgl-ads-ui-src-lib-components-footer-container.mjs"
91
79
  },
80
+ "./src/lib/components/buttons/button-container": {
81
+ "types": "./src/lib/components/buttons/button-container/index.d.ts",
82
+ "esm2022": "./esm2022/src/lib/components/buttons/button-container/ascentgl-ads-ui-src-lib-components-buttons-button-container.mjs",
83
+ "esm": "./esm2022/src/lib/components/buttons/button-container/ascentgl-ads-ui-src-lib-components-buttons-button-container.mjs",
84
+ "default": "./fesm2022/ascentgl-ads-ui-src-lib-components-buttons-button-container.mjs"
85
+ },
92
86
  "./src/lib/components/header/container": {
93
87
  "types": "./src/lib/components/header/container/index.d.ts",
94
88
  "esm2022": "./esm2022/src/lib/components/header/container/ascentgl-ads-ui-src-lib-components-header-container.mjs",
@@ -107,18 +101,18 @@
107
101
  "esm": "./esm2022/src/lib/components/progress-indicators/progress-bar/ascentgl-ads-ui-src-lib-components-progress-indicators-progress-bar.mjs",
108
102
  "default": "./fesm2022/ascentgl-ads-ui-src-lib-components-progress-indicators-progress-bar.mjs"
109
103
  },
110
- "./src/lib/components/progress-indicators/progress-indicator-spinner": {
111
- "types": "./src/lib/components/progress-indicators/progress-indicator-spinner/index.d.ts",
112
- "esm2022": "./esm2022/src/lib/components/progress-indicators/progress-indicator-spinner/ascentgl-ads-ui-src-lib-components-progress-indicators-progress-indicator-spinner.mjs",
113
- "esm": "./esm2022/src/lib/components/progress-indicators/progress-indicator-spinner/ascentgl-ads-ui-src-lib-components-progress-indicators-progress-indicator-spinner.mjs",
114
- "default": "./fesm2022/ascentgl-ads-ui-src-lib-components-progress-indicators-progress-indicator-spinner.mjs"
115
- },
116
104
  "./src/lib/components/progress-indicators/progress-spinner": {
117
105
  "types": "./src/lib/components/progress-indicators/progress-spinner/index.d.ts",
118
106
  "esm2022": "./esm2022/src/lib/components/progress-indicators/progress-spinner/ascentgl-ads-ui-src-lib-components-progress-indicators-progress-spinner.mjs",
119
107
  "esm": "./esm2022/src/lib/components/progress-indicators/progress-spinner/ascentgl-ads-ui-src-lib-components-progress-indicators-progress-spinner.mjs",
120
108
  "default": "./fesm2022/ascentgl-ads-ui-src-lib-components-progress-indicators-progress-spinner.mjs"
121
109
  },
110
+ "./src/lib/components/progress-indicators/progress-indicator-spinner": {
111
+ "types": "./src/lib/components/progress-indicators/progress-indicator-spinner/index.d.ts",
112
+ "esm2022": "./esm2022/src/lib/components/progress-indicators/progress-indicator-spinner/ascentgl-ads-ui-src-lib-components-progress-indicators-progress-indicator-spinner.mjs",
113
+ "esm": "./esm2022/src/lib/components/progress-indicators/progress-indicator-spinner/ascentgl-ads-ui-src-lib-components-progress-indicators-progress-indicator-spinner.mjs",
114
+ "default": "./fesm2022/ascentgl-ads-ui-src-lib-components-progress-indicators-progress-indicator-spinner.mjs"
115
+ },
122
116
  "./src/lib/components/tags/tag-container": {
123
117
  "types": "./src/lib/components/tags/tag-container/index.d.ts",
124
118
  "esm2022": "./esm2022/src/lib/components/tags/tag-container/ascentgl-ads-ui-src-lib-components-tags-tag-container.mjs",
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './public-api';
5
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXNjZW50Z2wtYWRzLXVpLXNyYy1saWItY29tcG9uZW50cy1kaXZpZGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9hZHMtdWkvc3JjL2xpYi9jb21wb25lbnRzL2RpdmlkZXIvYXNjZW50Z2wtYWRzLXVpLXNyYy1saWItY29tcG9uZW50cy1kaXZpZGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljLWFwaSc7XG4iXX0=
@@ -1,43 +0,0 @@
1
- import { Component, Input } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- import * as i1 from "@angular/common";
4
- export class DividerComponent {
5
- constructor() {
6
- /**
7
- * The divider left and right margin
8
- */
9
- this.margin = 0;
10
- /**
11
- * The divider color
12
- */
13
- this.color = 'light';
14
- /** @ignore */
15
- this.colors = {
16
- primary: '--color-primary',
17
- secondary: '--color-secondary',
18
- light: '--color-light',
19
- };
20
- }
21
- /** @ignore */
22
- ngOnInit() {
23
- this.setDividerStyle();
24
- }
25
- /** @ignore */
26
- setDividerStyle() {
27
- this.style = {
28
- margin: `${this.margin}px`,
29
- 'background-color': `var(${this.colors[this.color] || this.colors['light']})`,
30
- };
31
- }
32
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: DividerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
33
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.1", type: DividerComponent, selector: "ads-divider", inputs: { margin: "margin", color: "color" }, ngImport: i0, template: "<div [ngStyle]=\"style\" class=\"ads-divider\"></div>\n", styles: [".ads-divider{height:1px}\n"], dependencies: [{ kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
34
- }
35
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: DividerComponent, decorators: [{
36
- type: Component,
37
- args: [{ selector: 'ads-divider', template: "<div [ngStyle]=\"style\" class=\"ads-divider\"></div>\n", styles: [".ads-divider{height:1px}\n"] }]
38
- }], propDecorators: { margin: [{
39
- type: Input
40
- }], color: [{
41
- type: Input
42
- }] } });
43
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGl2aWRlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2Fkcy11aS9zcmMvbGliL2NvbXBvbmVudHMvZGl2aWRlci9kaXZpZGVyLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvYWRzLXVpL3NyYy9saWIvY29tcG9uZW50cy9kaXZpZGVyL2RpdmlkZXIuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQXFCLE1BQU0sZUFBZSxDQUFDOzs7QUFZcEUsTUFBTSxPQUFPLGdCQUFnQjtJQUw3QjtRQU1FOztXQUVHO1FBQ00sV0FBTSxHQUFvQixDQUFDLENBQUM7UUFFckM7O1dBRUc7UUFDTSxVQUFLLEdBQXNDLE9BQU8sQ0FBQztRQUs1RCxjQUFjO1FBQ04sV0FBTSxHQUFHO1lBQ2YsT0FBTyxFQUFFLGlCQUFpQjtZQUMxQixTQUFTLEVBQUUsbUJBQW1CO1lBQzlCLEtBQU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8qKlxuICAgKiBUaGUgZGl2aWRlciBsZWZ0IGFuZCByaWdodCBtYXJnaW5cbiAgICovXG4gIEBJbnB1dCgpIG1hcmdpbjogc3RyaW5nIHwgbnVtYmVyID0gMDtcblxuICAvKipcbiAgICogVGhlIGRpdmlkZXIgY29sb3JcbiAgICovXG4gIEBJbnB1dCgpIGNvbG9yOiAncHJpbWFyeScgfCAnc2Vjb25kYXJ5JyB8ICdsaWdodCcgPSAnbGlnaHQnO1xuXG4gIC8qKiBAaWdub3JlICovXG4gIHB1YmxpYyBzdHlsZSE6IERpdmlkZXJTdHlsZTtcblxuICAvKiogQGlnbm9yZSAqL1xuICBwcml2YXRlIGNvbG9ycyA9IHtcbiAgICBwcmltYXJ5OiAnLS1jb2xvci1wcmltYXJ5JyxcbiAgICBzZWNvbmRhcnk6ICctLWNvbG9yLXNlY29uZGFyeScsXG4gICAgbGlnaHQ6ICctLWNvbG9yLWxpZ2h0JyxcbiAgfTtcblxuICAvKiogQGlnbm9yZSAqL1xuICBuZ09uSW5pdCgpOiB2b2lkIHtcbiAgICB0aGlzLnNldERpdmlkZXJTdHlsZSgpO1xuICB9XG5cbiAgLyoqIEBpZ25vcmUgKi9cbiAgcHJpdmF0ZSBzZXREaXZpZGVyU3R5bGUoKSB7XG4gICAgdGhpcy5zdHlsZSA9IHtcbiAgICAgIG1hcmdpbjogYCR7dGhpcy5tYXJnaW59cHhgLFxuICAgICAgJ2JhY2tncm91bmQtY29sb3InOiBgdmFyKCR7dGhpcy5jb2xvcnNbdGhpcy5jb2xvcl0gfHwgdGhpcy5jb2xvcnNbJ2xpZ2h0J119KWAsXG4gICAgfTtcbiAgfVxufVxuIiwiPGRpdiBbbmdTdHlsZV09XCJzdHlsZVwiIGNsYXNzPVwiYWRzLWRpdmlkZXJcIj48L2Rpdj5cbiJdfQ==
@@ -1,18 +0,0 @@
1
- import { CommonModule } from '@angular/common';
2
- import { NgModule } from '@angular/core';
3
- import { DividerComponent } from './divider.component';
4
- import * as i0 from "@angular/core";
5
- export class AdsDividerModule {
6
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: AdsDividerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
7
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.1.1", ngImport: i0, type: AdsDividerModule, declarations: [DividerComponent], imports: [CommonModule], exports: [DividerComponent] }); }
8
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: AdsDividerModule, imports: [CommonModule] }); }
9
- }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: AdsDividerModule, decorators: [{
11
- type: NgModule,
12
- args: [{
13
- imports: [CommonModule],
14
- exports: [DividerComponent],
15
- declarations: [DividerComponent],
16
- }]
17
- }] });
18
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGl2aWRlci5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2Fkcy11aS9zcmMvbGliL2NvbXBvbmVudHMvZGl2aWRlci9kaXZpZGVyLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUV6QyxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQzs7QUFPdkQsTUFBTSxPQUFPLGdCQUFnQjs4R0FBaEIsZ0JBQWdCOytHQUFoQixnQkFBZ0IsaUJBRlosZ0JBQWdCLGFBRnJCLFlBQVksYUFDWixnQkFBZ0I7K0dBR2YsZ0JBQWdCLFlBSmpCLFlBQVk7OzJGQUlYLGdCQUFnQjtrQkFMNUIsUUFBUTttQkFBQztvQkFDUixPQUFPLEVBQUUsQ0FBQyxZQUFZLENBQUM7b0JBQ3ZCLE9BQU8sRUFBRSxDQUFDLGdCQUFnQixDQUFDO29CQUMzQixZQUFZLEVBQUUsQ0FBQyxnQkFBZ0IsQ0FBQztpQkFDakMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb21tb25Nb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb21tb24nO1xuaW1wb3J0IHsgTmdNb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuaW1wb3J0IHsgRGl2aWRlckNvbXBvbmVudCB9IGZyb20gJy4vZGl2aWRlci5jb21wb25lbnQnO1xuXG5ATmdNb2R1bGUoe1xuICBpbXBvcnRzOiBbQ29tbW9uTW9kdWxlXSxcbiAgZXhwb3J0czogW0RpdmlkZXJDb21wb25lbnRdLFxuICBkZWNsYXJhdGlvbnM6IFtEaXZpZGVyQ29tcG9uZW50XSxcbn0pXG5leHBvcnQgY2xhc3MgQWRzRGl2aWRlck1vZHVsZSB7fVxuIl19
@@ -1,3 +0,0 @@
1
- export * from './divider.component';
2
- export * from './divider.module';
3
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvYWRzLXVpL3NyYy9saWIvY29tcG9uZW50cy9kaXZpZGVyL3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxxQkFBcUIsQ0FBQztBQUNwQyxjQUFjLGtCQUFrQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9kaXZpZGVyLmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2RpdmlkZXIubW9kdWxlJztcbiJdfQ==
@@ -1,65 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Component, Input, NgModule } from '@angular/core';
3
- import * as i1 from '@angular/common';
4
- import { CommonModule } from '@angular/common';
5
-
6
- class DividerComponent {
7
- constructor() {
8
- /**
9
- * The divider left and right margin
10
- */
11
- this.margin = 0;
12
- /**
13
- * The divider color
14
- */
15
- this.color = 'light';
16
- /** @ignore */
17
- this.colors = {
18
- primary: '--color-primary',
19
- secondary: '--color-secondary',
20
- light: '--color-light',
21
- };
22
- }
23
- /** @ignore */
24
- ngOnInit() {
25
- this.setDividerStyle();
26
- }
27
- /** @ignore */
28
- setDividerStyle() {
29
- this.style = {
30
- margin: `${this.margin}px`,
31
- 'background-color': `var(${this.colors[this.color] || this.colors['light']})`,
32
- };
33
- }
34
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: DividerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
35
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.1", type: DividerComponent, selector: "ads-divider", inputs: { margin: "margin", color: "color" }, ngImport: i0, template: "<div [ngStyle]=\"style\" class=\"ads-divider\"></div>\n", styles: [".ads-divider{height:1px}\n"], dependencies: [{ kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
36
- }
37
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: DividerComponent, decorators: [{
38
- type: Component,
39
- args: [{ selector: 'ads-divider', template: "<div [ngStyle]=\"style\" class=\"ads-divider\"></div>\n", styles: [".ads-divider{height:1px}\n"] }]
40
- }], propDecorators: { margin: [{
41
- type: Input
42
- }], color: [{
43
- type: Input
44
- }] } });
45
-
46
- class AdsDividerModule {
47
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: AdsDividerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
48
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.1.1", ngImport: i0, type: AdsDividerModule, declarations: [DividerComponent], imports: [CommonModule], exports: [DividerComponent] }); }
49
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: AdsDividerModule, imports: [CommonModule] }); }
50
- }
51
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: AdsDividerModule, decorators: [{
52
- type: NgModule,
53
- args: [{
54
- imports: [CommonModule],
55
- exports: [DividerComponent],
56
- declarations: [DividerComponent],
57
- }]
58
- }] });
59
-
60
- /**
61
- * Generated bundle index. Do not edit.
62
- */
63
-
64
- export { AdsDividerModule, DividerComponent };
65
- //# sourceMappingURL=ascentgl-ads-ui-src-lib-components-divider.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ascentgl-ads-ui-src-lib-components-divider.mjs","sources":["../../../../libs/ads-ui/src/lib/components/divider/divider.component.ts","../../../../libs/ads-ui/src/lib/components/divider/divider.component.html","../../../../libs/ads-ui/src/lib/components/divider/divider.module.ts","../../../../libs/ads-ui/src/lib/components/divider/ascentgl-ads-ui-src-lib-components-divider.ts"],"sourcesContent":["import { Component, Input, OnChanges, OnInit } from '@angular/core';\n\nexport type DividerStyle = {\n margin: string | number;\n 'background-color': string;\n};\n\n@Component({\n selector: 'ads-divider',\n templateUrl: './divider.component.html',\n styleUrls: ['./divider.component.scss'],\n})\nexport class DividerComponent implements OnInit {\n /**\n * The divider left and right margin\n */\n @Input() margin: string | number = 0;\n\n /**\n * The divider color\n */\n @Input() color: 'primary' | 'secondary' | 'light' = 'light';\n\n /** @ignore */\n public style!: DividerStyle;\n\n /** @ignore */\n private colors = {\n primary: '--color-primary',\n secondary: '--color-secondary',\n light: '--color-light',\n };\n\n /** @ignore */\n ngOnInit(): void {\n this.setDividerStyle();\n }\n\n /** @ignore */\n private setDividerStyle() {\n this.style = {\n margin: `${this.margin}px`,\n 'background-color': `var(${this.colors[this.color] || this.colors['light']})`,\n };\n }\n}\n","<div [ngStyle]=\"style\" class=\"ads-divider\"></div>\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { DividerComponent } from './divider.component';\n\n@NgModule({\n imports: [CommonModule],\n exports: [DividerComponent],\n declarations: [DividerComponent],\n})\nexport class AdsDividerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MAYa,gBAAgB,CAAA;AAL7B,IAAA,WAAA,GAAA;AAME;;AAEG;QACM,IAAM,CAAA,MAAA,GAAoB,CAAC,CAAC;AAErC;;AAEG;QACM,IAAK,CAAA,KAAA,GAAsC,OAAO,CAAC;;AAMpD,QAAA,IAAA,CAAA,MAAM,GAAG;AACf,YAAA,OAAO,EAAE,iBAAiB;AAC1B,YAAA,SAAS,EAAE,mBAAmB;AAC9B,YAAA,KAAK,EAAE,eAAe;SACvB,CAAC;AAcH,KAAA;;IAXC,QAAQ,GAAA;QACN,IAAI,CAAC,eAAe,EAAE,CAAC;KACxB;;IAGO,eAAe,GAAA;QACrB,IAAI,CAAC,KAAK,GAAG;AACX,YAAA,MAAM,EAAE,CAAA,EAAG,IAAI,CAAC,MAAM,CAAI,EAAA,CAAA;AAC1B,YAAA,kBAAkB,EAAE,CAAO,IAAA,EAAA,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAG,CAAA,CAAA;SAC9E,CAAC;KACH;8GAhCU,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAhB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,C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A,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,OAAO,EAAE,CAAC,gBAAgB,CAAC;oBAC3B,YAAY,EAAE,CAAC,gBAAgB,CAAC;AACjC,iBAAA,CAAA;;;ACTD;;AAEG;;;;"}
@@ -1,26 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export type DividerStyle = {
4
- margin: string | number;
5
- 'background-color': string;
6
- };
7
- export declare class DividerComponent implements OnInit {
8
- /**
9
- * The divider left and right margin
10
- */
11
- margin: string | number;
12
- /**
13
- * The divider color
14
- */
15
- color: 'primary' | 'secondary' | 'light';
16
- /** @ignore */
17
- style: DividerStyle;
18
- /** @ignore */
19
- private colors;
20
- /** @ignore */
21
- ngOnInit(): void;
22
- /** @ignore */
23
- private setDividerStyle;
24
- static ɵfac: i0.ɵɵFactoryDeclaration<DividerComponent, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<DividerComponent, "ads-divider", never, { "margin": { "alias": "margin"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, {}, never, never, false, never>;
26
- }
@@ -1,8 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./divider.component";
3
- import * as i2 from "@angular/common";
4
- export declare class AdsDividerModule {
5
- static ɵfac: i0.ɵɵFactoryDeclaration<AdsDividerModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<AdsDividerModule, [typeof i1.DividerComponent], [typeof i2.CommonModule], [typeof i1.DividerComponent]>;
7
- static ɵinj: i0.ɵɵInjectorDeclaration<AdsDividerModule>;
8
- }
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@ascentgl/ads-ui/src/lib/components/divider" />
5
- export * from './public-api';
@@ -1,2 +0,0 @@
1
- export * from './divider.component';
2
- export * from './divider.module';