@impartner/design-components 2.0.1 → 2.1.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 +2 -1
- package/esm2022/lib/badge/badge.component.mjs +17 -1
- package/esm2022/lib/datetime-picker/components/datepicker-nav/datepicker-nav.component.mjs +105 -0
- package/esm2022/lib/datetime-picker/components/datepicker-nav/index.mjs +2 -0
- package/esm2022/lib/datetime-picker/components/datepicker-template-host/datepicker-template-host.component.mjs +30 -0
- package/esm2022/lib/datetime-picker/components/datepicker-template-host/index.mjs +2 -0
- package/esm2022/lib/datetime-picker/components/datetime-picker/datetime-picker.component.mjs +370 -0
- package/esm2022/lib/datetime-picker/components/datetime-picker/index.mjs +2 -0
- package/esm2022/lib/datetime-picker/components/datetime-picker-input/datetime-picker-input.component.mjs +367 -0
- package/esm2022/lib/datetime-picker/components/datetime-picker-input/index.mjs +2 -0
- package/esm2022/lib/datetime-picker/components/datetime-picker-input-footer/datetime-picker-input-footer.component.mjs +68 -0
- package/esm2022/lib/datetime-picker/components/datetime-picker-input-footer/index.mjs +2 -0
- package/esm2022/lib/datetime-picker/components/index.mjs +6 -0
- package/esm2022/lib/datetime-picker/constants/datetime-picker-defaults.mjs +12 -0
- package/esm2022/lib/datetime-picker/constants/index.mjs +2 -0
- package/esm2022/lib/datetime-picker/datetime-picker.module.mjs +22 -0
- package/esm2022/lib/datetime-picker/index.mjs +4 -0
- package/esm2022/lib/datetime-picker/services/datetime-formatter/datetime-formatter.service.mjs +40 -0
- package/esm2022/lib/datetime-picker/services/datetime-formatter/index.mjs +2 -0
- package/esm2022/lib/datetime-picker/services/index.mjs +2 -0
- package/esm2022/lib/datetime-picker/types/datetime-picker-value.interface.mjs +2 -0
- package/esm2022/lib/datetime-picker/types/index.mjs +2 -0
- package/esm2022/lib/design-components.module.mjs +20 -7
- package/esm2022/lib/form-field/component/directives/corner-hint.directive.mjs +15 -0
- package/esm2022/lib/form-field/component/directives/error.directive.mjs +27 -0
- package/esm2022/lib/form-field/component/directives/form-root.directive.mjs +93 -0
- package/esm2022/lib/form-field/component/directives/hint.directive.mjs +25 -0
- package/esm2022/lib/form-field/component/directives/index.mjs +25 -0
- package/esm2022/lib/form-field/component/directives/label.directive.mjs +15 -0
- package/esm2022/lib/form-field/component/directives/prefix.directive.mjs +25 -0
- package/esm2022/lib/form-field/component/directives/suffix.directive.mjs +25 -0
- package/esm2022/lib/form-field/component/form-field.component.mjs +131 -0
- package/esm2022/lib/form-field/component/form-field.module.mjs +24 -0
- package/esm2022/lib/form-field/component/index.mjs +4 -0
- package/esm2022/lib/form-field/controls/checkbox/checkbox.component.mjs +14 -6
- package/esm2022/lib/form-field/controls/checkbox/checkbox.module.mjs +4 -7
- package/esm2022/lib/form-field/controls/index.mjs +2 -1
- package/esm2022/lib/form-field/controls/input/input.directive.mjs +4 -3
- package/esm2022/lib/form-field/controls/radio/radio-button/radio-button.component.mjs +6 -4
- package/esm2022/lib/form-field/controls/radio/radio-group/radio-group.directive.mjs +4 -3
- package/esm2022/lib/form-field/controls/radio/radio.module.mjs +4 -7
- package/esm2022/lib/form-field/controls/select/index.mjs +6 -3
- package/esm2022/lib/form-field/controls/select/interfaces/index.mjs +2 -0
- package/esm2022/lib/form-field/controls/select/interfaces/select-option.interface.mjs +2 -0
- package/esm2022/lib/form-field/controls/select/option/index.mjs +2 -2
- package/esm2022/lib/form-field/controls/select/option/select-option.component.mjs +33 -128
- package/esm2022/lib/form-field/controls/select/option-display/index.mjs +2 -0
- package/esm2022/lib/form-field/controls/select/option-display/select-option-display.component.mjs +162 -0
- package/esm2022/lib/form-field/controls/select/option-group/index.mjs +2 -0
- package/esm2022/lib/form-field/controls/select/option-group/select-option-group.component.mjs +35 -0
- package/esm2022/lib/form-field/controls/select/option-parent.mjs +2 -1
- package/esm2022/lib/form-field/controls/select/select.component.mjs +348 -148
- package/esm2022/lib/form-field/controls/select/select.module.mjs +20 -13
- package/esm2022/lib/form-field/controls/select/value-tags-display/index.mjs +2 -0
- package/esm2022/lib/form-field/controls/select/value-tags-display/select-value-tags-display.component.mjs +91 -0
- package/esm2022/lib/form-field/controls/shared/toggle/components/toggle-input/toggle-input.component.mjs +3 -3
- package/esm2022/lib/form-field/controls/shared/toggle/toggle.component.mjs +19 -3
- package/esm2022/lib/form-field/controls/shared/toggle/toggle.module.mjs +4 -6
- package/esm2022/lib/form-field/controls/tag-select/index.mjs +2 -0
- package/esm2022/lib/form-field/controls/tag-select/tag-select.component.mjs +146 -0
- package/esm2022/lib/form-field/impdc-forms.mjs +2 -3
- package/esm2022/lib/form-field/impdc-forms.module.mjs +32 -47
- package/esm2022/lib/form-field/shared/error-state.mixin.mjs +1 -1
- package/esm2022/lib/icon/icon.component.mjs +12 -5
- package/esm2022/lib/index.mjs +3 -1
- package/esm2022/lib/pagination/pagination.component.mjs +6 -6
- package/esm2022/lib/select-icon/select-icon.component.mjs +6 -6
- package/esm2022/lib/select-icon/select-icon.module.mjs +5 -1
- package/esm2022/lib/table/containers/table.component.mjs +3 -3
- package/esm2022/lib/tag/index.mjs +2 -0
- package/esm2022/lib/tag/tag.component.mjs +104 -0
- package/esm2022/lib/text-highlight/text-highlight.component.mjs +52 -37
- package/esm2022/lib/text-highlight/text-highlight.module.mjs +4 -6
- package/fesm2022/impartner-design-components.mjs +5620 -3983
- package/fesm2022/impartner-design-components.mjs.map +1 -1
- package/lib/badge/badge.component.d.ts +15 -1
- package/lib/datetime-picker/components/datepicker-nav/datepicker-nav.component.d.ts +31 -0
- package/lib/datetime-picker/components/datepicker-nav/index.d.ts +1 -0
- package/lib/datetime-picker/components/datepicker-template-host/datepicker-template-host.component.d.ts +14 -0
- package/lib/datetime-picker/components/datepicker-template-host/index.d.ts +1 -0
- package/lib/datetime-picker/components/datetime-picker/datetime-picker.component.d.ts +157 -0
- package/lib/datetime-picker/components/datetime-picker/index.d.ts +1 -0
- package/lib/datetime-picker/components/datetime-picker-input/datetime-picker-input.component.d.ts +160 -0
- package/lib/datetime-picker/components/datetime-picker-input/index.d.ts +1 -0
- package/lib/datetime-picker/components/datetime-picker-input-footer/datetime-picker-input-footer.component.d.ts +24 -0
- package/lib/datetime-picker/components/datetime-picker-input-footer/index.d.ts +1 -0
- package/lib/datetime-picker/components/index.d.ts +5 -0
- package/lib/datetime-picker/constants/datetime-picker-defaults.d.ts +4 -0
- package/lib/datetime-picker/constants/index.d.ts +1 -0
- package/lib/datetime-picker/datetime-picker.module.d.ts +8 -0
- package/lib/datetime-picker/index.d.ts +4 -0
- package/lib/datetime-picker/services/datetime-formatter/datetime-formatter.service.d.ts +20 -0
- package/lib/datetime-picker/services/datetime-formatter/index.d.ts +1 -0
- package/lib/datetime-picker/services/index.d.ts +1 -0
- package/lib/datetime-picker/types/datetime-picker-value.interface.d.ts +5 -0
- package/lib/datetime-picker/types/index.d.ts +1 -0
- package/lib/design-components.module.d.ts +14 -12
- package/lib/form-field/{directives → component/directives}/corner-hint.directive.d.ts +1 -1
- package/lib/form-field/{directives → component/directives}/error.directive.d.ts +1 -1
- package/lib/form-field/{directives → component/directives}/form-root.directive.d.ts +2 -2
- package/lib/form-field/{directives → component/directives}/hint.directive.d.ts +1 -1
- package/lib/form-field/component/directives/index.d.ts +15 -0
- package/lib/form-field/{directives → component/directives}/label.directive.d.ts +1 -1
- package/lib/form-field/{directives → component/directives}/prefix.directive.d.ts +1 -1
- package/lib/form-field/{directives → component/directives}/suffix.directive.d.ts +1 -1
- package/lib/form-field/{form-field.component.d.ts → component/form-field.component.d.ts} +3 -5
- package/lib/form-field/component/form-field.module.d.ts +14 -0
- package/lib/form-field/component/index.d.ts +3 -0
- package/lib/form-field/controls/checkbox/checkbox.component.d.ts +6 -2
- package/lib/form-field/controls/checkbox/checkbox.module.d.ts +1 -3
- package/lib/form-field/controls/index.d.ts +1 -0
- package/lib/form-field/controls/input/input.directive.d.ts +2 -2
- package/lib/form-field/controls/radio/radio-button/radio-button.component.d.ts +1 -1
- package/lib/form-field/controls/radio/radio-group/radio-group.directive.d.ts +2 -2
- package/lib/form-field/controls/radio/radio.module.d.ts +1 -3
- package/lib/form-field/controls/select/index.d.ts +6 -2
- package/lib/form-field/controls/select/interfaces/index.d.ts +1 -0
- package/lib/form-field/controls/select/interfaces/select-option.interface.d.ts +6 -0
- package/lib/form-field/controls/select/option/index.d.ts +1 -1
- package/lib/form-field/controls/select/option/select-option.component.d.ts +10 -49
- package/lib/form-field/controls/select/option-display/index.d.ts +1 -0
- package/lib/form-field/controls/select/option-display/select-option-display.component.d.ts +64 -0
- package/lib/form-field/controls/select/option-group/index.d.ts +1 -0
- package/lib/form-field/controls/select/option-group/select-option-group.component.d.ts +11 -0
- package/lib/form-field/controls/select/option-parent.d.ts +12 -1
- package/lib/form-field/controls/select/select.component.d.ts +113 -51
- package/lib/form-field/controls/select/select.module.d.ts +5 -6
- package/lib/form-field/controls/select/value-tags-display/index.d.ts +1 -0
- package/lib/form-field/controls/select/value-tags-display/select-value-tags-display.component.d.ts +46 -0
- package/lib/form-field/controls/shared/toggle/components/toggle-input/toggle-input.component.d.ts +1 -1
- package/lib/form-field/controls/shared/toggle/toggle.component.d.ts +4 -1
- package/lib/form-field/controls/shared/toggle/toggle.module.d.ts +1 -2
- package/lib/form-field/controls/tag-select/index.d.ts +1 -0
- package/lib/form-field/controls/tag-select/tag-select.component.d.ts +43 -0
- package/lib/form-field/impdc-forms.d.ts +1 -2
- package/lib/form-field/impdc-forms.module.d.ts +8 -14
- package/lib/form-field/shared/error-state.mixin.d.ts +4 -4
- package/lib/icon/icon.component.d.ts +5 -3
- package/lib/index.d.ts +2 -0
- package/lib/select-icon/select-icon.module.d.ts +4 -3
- package/lib/tag/index.d.ts +1 -0
- package/lib/tag/tag.component.d.ts +54 -0
- package/lib/text-highlight/text-highlight.component.d.ts +12 -6
- package/lib/text-highlight/text-highlight.module.d.ts +1 -2
- package/package.json +2 -2
- package/esm2022/lib/form-field/directives/corner-hint.directive.mjs +0 -14
- package/esm2022/lib/form-field/directives/error.directive.mjs +0 -26
- package/esm2022/lib/form-field/directives/form-root.directive.mjs +0 -91
- package/esm2022/lib/form-field/directives/hint.directive.mjs +0 -24
- package/esm2022/lib/form-field/directives/index.mjs +0 -8
- package/esm2022/lib/form-field/directives/label.directive.mjs +0 -14
- package/esm2022/lib/form-field/directives/prefix.directive.mjs +0 -24
- package/esm2022/lib/form-field/directives/suffix.directive.mjs +0 -24
- package/esm2022/lib/form-field/form-field.component.mjs +0 -132
- package/lib/form-field/directives/index.d.ts +0 -7
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { Component, Input } from '@angular/core';
|
|
2
|
-
import { lc } from '../../utilities';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "@angular/common";
|
|
5
3
|
/**
|
|
6
4
|
* The `TextHighlightComponent` (`<impdc-text-highlight` or `<any impdc-text-highlight`) is a component that highlights search-matched text.
|
|
7
5
|
* To use, import `TextHighlightModule` or another module that imports and exports that module from `@impartner/design-components`.
|
|
@@ -17,65 +15,82 @@ export class TextHighlightComponent {
|
|
|
17
15
|
*/
|
|
18
16
|
this.search = '';
|
|
19
17
|
/**
|
|
20
|
-
* The method of highlighting, or otherwise what is wrapping the search matches.
|
|
18
|
+
* The method of highlighting, or otherwise what is wrapping the search matches. Options `'mark'`,
|
|
19
|
+
* `'b'`, `'strong'`, and `'u'` will wrap matching contents inside of those respective native element types;
|
|
20
|
+
* option `'class'` will wrap matching contents inside a `<span>` with the CSS class specified via the
|
|
21
|
+
* `highlightClass` input.
|
|
21
22
|
*/
|
|
22
23
|
this.method = 'mark';
|
|
23
24
|
/**
|
|
24
25
|
* Be default the search is case-insensitive, this will require exact matches only.
|
|
25
26
|
*/
|
|
26
27
|
this.exact = false;
|
|
28
|
+
/**
|
|
29
|
+
* The CSS `class` string applied to `<span>` elements containing matched text; only applied when specifying `'class'`
|
|
30
|
+
* for the `method` input property.
|
|
31
|
+
*/
|
|
32
|
+
this.highlightClass = 'impdc-highlight';
|
|
27
33
|
this.result = [];
|
|
28
|
-
this.lc = lc;
|
|
29
|
-
}
|
|
30
|
-
checkMatch(match) {
|
|
31
|
-
if (!match) {
|
|
32
|
-
return false;
|
|
33
|
-
}
|
|
34
|
-
if (this.exact) {
|
|
35
|
-
return match === this.search;
|
|
36
|
-
}
|
|
37
|
-
return lc(match) === lc(this.search);
|
|
38
34
|
}
|
|
39
35
|
ngOnChanges() {
|
|
40
|
-
const
|
|
36
|
+
const escapedText = this._escapeTextForRegExp(this.search);
|
|
37
|
+
const regEx = new RegExp(`(${escapedText})`, `g${this.exact ? '' : 'i'}`);
|
|
41
38
|
this.result = this.text.split(regEx);
|
|
42
39
|
}
|
|
40
|
+
_escapeTextForRegExp(text) {
|
|
41
|
+
return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
|
|
42
|
+
}
|
|
43
43
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: TextHighlightComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
44
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
</
|
|
54
|
-
|
|
44
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.1", type: TextHighlightComponent, isStandalone: true, selector: "impdc-text-highlight, [impdc-text-highlight]", inputs: { text: "text", search: "search", method: "method", exact: "exact", highlightClass: "highlightClass" }, usesOnChanges: true, ngImport: i0, template: `
|
|
45
|
+
@for (part of result; track part; let odd = $odd) { @if (odd) { @switch
|
|
46
|
+
(method) { @case ('mark') {
|
|
47
|
+
<mark>{{ part }}</mark>
|
|
48
|
+
} @case ('b') {
|
|
49
|
+
<b>{{ part }}</b>
|
|
50
|
+
} @case ('u') {
|
|
51
|
+
<u>{{ part }}</u>
|
|
52
|
+
} @case ('strong') {
|
|
53
|
+
<strong>{{ part }}</strong>
|
|
54
|
+
} @case('class') {
|
|
55
|
+
<span class="{{ highlightClass }}">{{ part }}</span>
|
|
56
|
+
} } } @else {
|
|
57
|
+
<ng-container>{{ part }}</ng-container>
|
|
58
|
+
} }
|
|
59
|
+
`, isInline: true }); }
|
|
55
60
|
}
|
|
56
61
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: TextHighlightComponent, decorators: [{
|
|
57
62
|
type: Component,
|
|
58
63
|
args: [{
|
|
59
64
|
selector: 'impdc-text-highlight, [impdc-text-highlight]',
|
|
65
|
+
standalone: true,
|
|
60
66
|
template: `
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
</
|
|
67
|
+
@for (part of result; track part; let odd = $odd) { @if (odd) { @switch
|
|
68
|
+
(method) { @case ('mark') {
|
|
69
|
+
<mark>{{ part }}</mark>
|
|
70
|
+
} @case ('b') {
|
|
71
|
+
<b>{{ part }}</b>
|
|
72
|
+
} @case ('u') {
|
|
73
|
+
<u>{{ part }}</u>
|
|
74
|
+
} @case ('strong') {
|
|
75
|
+
<strong>{{ part }}</strong>
|
|
76
|
+
} @case('class') {
|
|
77
|
+
<span class="{{ highlightClass }}">{{ part }}</span>
|
|
78
|
+
} } } @else {
|
|
79
|
+
<ng-container>{{ part }}</ng-container>
|
|
80
|
+
} }
|
|
70
81
|
`
|
|
71
82
|
}]
|
|
72
83
|
}], propDecorators: { text: [{
|
|
73
|
-
type: Input
|
|
84
|
+
type: Input,
|
|
85
|
+
args: [{ required: true }]
|
|
74
86
|
}], search: [{
|
|
75
|
-
type: Input
|
|
87
|
+
type: Input,
|
|
88
|
+
args: [{ required: true }]
|
|
76
89
|
}], method: [{
|
|
77
90
|
type: Input
|
|
78
91
|
}], exact: [{
|
|
79
92
|
type: Input
|
|
93
|
+
}], highlightClass: [{
|
|
94
|
+
type: Input
|
|
80
95
|
}] } });
|
|
81
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
96
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGV4dC1oaWdobGlnaHQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZGVzaWduLWNvbXBvbmVudHMvc3JjL2xpYi90ZXh0LWhpZ2hsaWdodC90ZXh0LWhpZ2hsaWdodC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQWEsTUFBTSxlQUFlLENBQUM7O0FBRTVEOzs7R0FHRztBQXFCSCxNQUFNLE9BQU8sc0JBQXNCO0lBcEJuQztRQXFCRTs7V0FFRztRQUN3QixTQUFJLEdBQUcsRUFBRSxDQUFDO1FBRXJDOztXQUVHO1FBQ3dCLFdBQU0sR0FBRyxFQUFFLENBQUM7UUFFdkM7Ozs7O1dBS0c7UUFDTSxXQUFNLEdBQTRDLE1BQU0sQ0FBQztRQUVsRTs7V0FFRztRQUNNLFVBQUssR0FBRyxLQUFLLENBQUM7UUFFdkI7OztXQUdHO1FBQ00sbUJBQWMsR0FBVyxpQkFBaUIsQ0FBQztRQUU3QyxXQUFNLEdBQWEsRUFBRSxDQUFDO0tBVzlCO0lBVEMsV0FBVztRQUNULE1BQU0sV0FBVyxHQUFHLElBQUksQ0FBQyxvQkFBb0IsQ0FBQyxJQUFJLENBQUMsTUFBTSxDQUFDLENBQUM7UUFDM0QsTUFBTSxLQUFLLEdBQUcsSUFBSSxNQUFNLENBQUMsSUFBSSxXQUFXLEdBQUcsRUFBRSxJQUFJLElBQUksQ0FBQyxLQUFLLENBQUMsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUMs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WVkIHRvIGA8c3Bhbj5gIGVsZW1lbnRzIGNvbnRhaW5pbmcgbWF0Y2hlZCB0ZXh0OyBvbmx5IGFwcGxpZWQgd2hlbiBzcGVjaWZ5aW5nIGAnY2xhc3MnYFxuICAgKiBmb3IgdGhlIGBtZXRob2RgIGlucHV0IHByb3BlcnR5LlxuICAgKi9cbiAgQElucHV0KCkgaGlnaGxpZ2h0Q2xhc3M6IHN0cmluZyA9ICdpbXBkYy1oaWdobGlnaHQnO1xuXG4gIHB1YmxpYyByZXN1bHQ6IHN0cmluZ1tdID0gW107XG5cbiAgbmdPbkNoYW5nZXMoKSB7XG4gICAgY29uc3QgZXNjYXBlZFRleHQgPSB0aGlzLl9lc2NhcGVUZXh0Rm9yUmVnRXhwKHRoaXMuc2VhcmNoKTtcbiAgICBjb25zdCByZWdFeCA9IG5ldyBSZWdFeHAoYCgke2VzY2FwZWRUZXh0fSlgLCBgZyR7dGhpcy5leGFjdCA/ICcnIDogJ2knfWApO1xuICAgIHRoaXMucmVzdWx0ID0gdGhpcy50ZXh0LnNwbGl0KHJlZ0V4KTtcbiAgfVxuXG4gIHByaXZhdGUgX2VzY2FwZVRleHRGb3JSZWdFeHAodGV4dDogc3RyaW5nKTogc3RyaW5nIHtcbiAgICByZXR1cm4gdGV4dC5yZXBsYWNlKC9bLVtcXF17fSgpKis/LixcXFxcXiR8I1xcc10vZywgJ1xcXFwkJicpO1xuICB9XG59XG4iXX0=
|
|
@@ -1,19 +1,17 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
1
|
import { NgModule } from '@angular/core';
|
|
3
2
|
import { TextHighlightComponent } from './text-highlight.component';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export class TextHighlightModule {
|
|
6
5
|
constructor() { }
|
|
7
6
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: TextHighlightModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
8
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.1", ngImport: i0, type: TextHighlightModule,
|
|
9
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: TextHighlightModule
|
|
7
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.1", ngImport: i0, type: TextHighlightModule, imports: [TextHighlightComponent], exports: [TextHighlightComponent] }); }
|
|
8
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: TextHighlightModule }); }
|
|
10
9
|
}
|
|
11
10
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: TextHighlightModule, decorators: [{
|
|
12
11
|
type: NgModule,
|
|
13
12
|
args: [{
|
|
14
|
-
imports: [
|
|
15
|
-
declarations: [TextHighlightComponent],
|
|
13
|
+
imports: [TextHighlightComponent],
|
|
16
14
|
exports: [TextHighlightComponent]
|
|
17
15
|
}]
|
|
18
16
|
}], ctorParameters: () => [] });
|
|
19
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGV4dC1oaWdobGlnaHQubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZGVzaWduLWNvbXBvbmVudHMvc3JjL2xpYi90ZXh0LWhpZ2hsaWdodC90ZXh0LWhpZ2hsaWdodC5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsc0JBQXNCLEVBQUUsTUFBTSw0QkFBNEIsQ0FBQzs7Q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