coer-elements 0.0.30 → 0.0.32
Sign up to get free protection for your applications and to get access to all the features.
- package/components/lib/coer-accordion/coer-accordion.component.d.ts +18 -0
- package/components/lib/coer-form/coer-form.component.d.ts +3 -1
- package/components/lib/components.module.d.ts +34 -33
- package/components/public-api.d.ts +1 -1
- package/esm2022/components/lib/coer-accordion/coer-accordion.component.mjs +53 -0
- package/esm2022/components/lib/coer-button/coer-button.component.mjs +11 -5
- package/esm2022/components/lib/coer-filebox/coer-filebox.component.mjs +1 -1
- package/esm2022/components/lib/coer-form/coer-form.component.mjs +9 -3
- package/esm2022/components/lib/coer-grid/coer-grid.component.mjs +3 -3
- package/esm2022/components/lib/coer-modal/coer-modal.component.mjs +1 -1
- package/esm2022/components/lib/coer-sidenav/coer-sidenav.component.mjs +2 -2
- package/esm2022/components/lib/coer-sidenav/coer-tree-accordion/coer-tree-accordion.component.mjs +3 -2
- package/esm2022/components/lib/components.module.mjs +8 -3
- package/esm2022/components/public-api.mjs +2 -2
- package/esm2022/tools/lib/coer-grid.templates.mjs +34 -0
- package/esm2022/tools/lib/page.class.mjs +7 -1
- package/esm2022/tools/lib/service.class.mjs +2 -2
- package/esm2022/tools/public-api.mjs +2 -1
- package/fesm2022/coer-elements-components.mjs +95 -60
- package/fesm2022/coer-elements-components.mjs.map +1 -1
- package/fesm2022/coer-elements-tools.mjs +41 -2
- package/fesm2022/coer-elements-tools.mjs.map +1 -1
- package/package.json +7 -7
- package/styles/angular-material.scss +1 -0
- package/styles/bootstrap.scss +0 -6
- package/styles/coer-elements.css +25 -6
- package/styles/containers.scss +2 -0
- package/{components/lib/coer-grid → tools/lib}/coer-grid.templates.d.ts +2 -0
- package/tools/lib/page.class.d.ts +4 -0
- package/tools/public-api.d.ts +1 -0
- package/esm2022/components/lib/coer-grid/coer-grid.templates.mjs +0 -30
@@ -33,10 +33,16 @@ export class CoerForm {
|
|
33
33
|
}
|
34
34
|
}
|
35
35
|
/** */
|
36
|
-
GetControlValue(formControlName) {
|
36
|
+
GetControlValue(formControlName, alternative = null) {
|
37
37
|
return Tools.IsNotNull(this.formGroup().get(formControlName))
|
38
38
|
? this.formGroup().get(formControlName).value
|
39
|
-
:
|
39
|
+
: alternative;
|
40
|
+
}
|
41
|
+
/** */
|
42
|
+
HasControlValue(formControlName) {
|
43
|
+
return Tools.IsNotNull(this.formGroup().get(formControlName))
|
44
|
+
? Tools.IsNotOnlyWhiteSpace(this.formGroup().get(formControlName).value)
|
45
|
+
: false;
|
40
46
|
}
|
41
47
|
/** Get form value */
|
42
48
|
GetValue() {
|
@@ -98,4 +104,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
98
104
|
type: Component,
|
99
105
|
args: [{ selector: 'coer-form', template: "<form [formGroup]=\"formGroup()\" autocomplete=\"off\" class=\"coer-form\">\r\n <fieldset [disabled]=\"_isDisabled\">\r\n <ng-content></ng-content>\r\n </fieldset>\r\n</form>" }]
|
100
106
|
}] });
|
101
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29lci1mb3JtLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvZXItZWxlbWVudHMvY29tcG9uZW50cy9saWIvY29lci1mb3JtL2NvZXItZm9ybS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb2VyLWVsZW1lbnRzL2NvbXBvbmVudHMvbGliL2NvZXItZm9ybS9jb2VyLWZvcm0uY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLEVBQUUsS0FBSyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRXpELE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLE1BQU0scUJBQXFCLENB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db250cm9sQ29sbGVjdGlvbi5zaXplID4gMCkge1xyXG4gICAgICAgICAgICBpZihUb29scy5Jc051bGwoZm9ybUNvbnRyb2wpKSB7XHJcbiAgICAgICAgICAgICAgICBmb3IoY29uc3QgW3Byb3BlcnR5LCBlcnJvcl0gb2YgZm9ybUNvbnRyb2xFcnJvckNvbGxlY3Rpb24pIHtcclxuICAgICAgICAgICAgICAgICAgICBpZiAoVG9vbHMuSXNOb3ROdWxsKGVycm9yKSkge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICBmb3JtQ29udHJvbCA9IHByb3BlcnR5O1xyXG4gICAgICAgICAgICAgICAgICAgICAgICBicmVhaztcclxuICAgICAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgICAgICAgaWYoVG9vbHMuSXNOdWxsKGZvcm1Db250cm9sKSkge1xyXG4gICAgICAgICAgICAgICAgICAgIGZvcm1Db250cm9sID0gQXJyYXkuZnJvbShmb3JtQ29udHJvbENvbGxlY3Rpb24ua2V5cygpKVswXTtcclxuICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgfVxyXG5cclxuICAgICAgICAgICAgY29uc3QgZWxlbWVudDogYW55ID0gZm9ybUNvbnRyb2xDb2xsZWN0aW9uLmdldChmb3JtQ29udHJvbCEpO1xyXG4gICAgICAgICAgICBpZihUb29scy5Jc05vdE51bGwoZWxlbWVudCkpIGVsZW1lbnQuZm9jdXMoKTtcclxuICAgICAgICB9XHJcbiAgICB9XHJcbn0iLCI8Zm9ybSBbZm9ybUdyb3VwXT1cImZvcm1Hcm91cCgpXCIgYXV0b2NvbXBsZXRlPVwib2ZmXCIgY2xhc3M9XCJjb2VyLWZvcm1cIj5cclxuICAgIDxmaWVsZHNldCBbZGlzYWJsZWRdPVwiX2lzRGlzYWJsZWRcIj5cclxuICAgICAgICA8bmctY29udGVudD48L25nLWNvbnRlbnQ+XHJcbiAgICA8L2ZpZWxkc2V0PlxyXG48L2Z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ZWN0b3IoYFtmb3JtY29udHJvbG5hbWU9JyR7cHJvcGVydHl9J10gaW5wdXRgKVxyXG4gICAgICAgICAgICBpZihUb29scy5Jc05vdE51bGwoaHRtbEVsZW1lbnQpKSBmb3JtQ29udHJvbENvbGxlY3Rpb24uc2V0KHByb3BlcnR5LCBodG1sRWxlbWVudCEpO1xyXG4gICAgICAgIH1cclxuXHJcbiAgICAgICAgaWYoZm9ybUNvbnRyb2xDb2xsZWN0aW9uLnNpemUgPiAwKSB7XHJcbiAgICAgICAgICAgIGlmKFRvb2xzLklzTnVsbChmb3JtQ29udHJvbCkpIHtcclxuICAgICAgICAgICAgICAgIGZvcihjb25zdCBbcHJvcGVydHksIGVycm9yXSBvZiBmb3JtQ29udHJvbEVycm9yQ29sbGVjdGlvbikge1xyXG4gICAgICAgICAgICAgICAgICAgIGlmIChUb29scy5Jc05vdE51bGwoZXJyb3IpKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGZvcm1Db250cm9sID0gcHJvcGVydHk7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrO1xyXG4gICAgICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgIH1cclxuXHJcbiAgICAgICAgICAgICAgICBpZihUb29scy5Jc051bGwoZm9ybUNvbnRyb2wpKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgZm9ybUNvbnRyb2wgPSBBcnJheS5mcm9tKGZvcm1Db250cm9sQ29sbGVjdGlvbi5rZXlzKCkpWzBdO1xyXG4gICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgICBjb25zdCBlbGVtZW50OiBhbnkgPSBmb3JtQ29udHJvbENvbGxlY3Rpb24uZ2V0KGZvcm1Db250cm9sISk7XHJcbiAgICAgICAgICAgIGlmKFRvb2xzLklzTm90TnVsbChlbGVtZW50KSkgZWxlbWVudC5mb2N1cygpO1xyXG4gICAgICAgIH1cclxuICAgIH1cclxufSIsIjxmb3JtIFtmb3JtR3JvdXBdPVwiZm9ybUdyb3VwKClcIiBhdXRvY29tcGxldGU9XCJvZmZcIiBjbGFzcz1cImNvZXItZm9ybVwiPlxyXG4gICAgPGZpZWxkc2V0IFtkaXNhYmxlZF09XCJfaXNEaXNhYmxlZFwiPlxyXG4gICAgICAgIDxuZy1jb250ZW50PjwvbmctY29udGVudD5cclxuICAgIDwvZmllbGRzZXQ+XHJcbjwvZm9ybT4iXX0=
|