@lucca-front/ng 8.2.0-rc.4 → 8.2.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/api/lib/select/feeder/api-feeder.component.d.ts +1 -1
- package/api/lib/select/input/api-select-input.component.d.ts +10 -1
- package/api/lib/select/pager/api-pager.component.d.ts +1 -1
- package/api/lib/select/searcher/api-searcher.component.d.ts +2 -2
- package/api/lib/service/api-hybrid.service.d.ts +3 -3
- package/esm2020/api/lib/select/feeder/api-feeder.component.mjs +1 -1
- package/esm2020/api/lib/select/input/api-select-input.component.mjs +3 -2
- package/esm2020/api/lib/select/pager/api-pager.component.mjs +1 -1
- package/esm2020/api/lib/select/searcher/api-searcher.component.mjs +1 -1
- package/esm2020/api/lib/service/api-hybrid.service.mjs +1 -1
- package/esm2020/department/lib/select/input/department-select-input.component.mjs +1 -1
- package/esm2020/establishment/lib/select/input/establishment-select-input.component.mjs +1 -1
- package/esm2020/formly/lib/types/api.mjs +1 -1
- package/esm2020/formly/lib/types/select.mjs +1 -1
- package/esm2020/option/lib/item/option-item.component.mjs +17 -6
- package/esm2020/option/lib/item/option-item.model.mjs +1 -1
- package/esm2020/option/lib/item/tree-option-item.component.mjs +14 -2
- package/esm2020/option/lib/picker/option-picker.component.mjs +25 -7
- package/esm2020/popover/lib/trigger/popover-trigger.model.mjs +2 -2
- package/esm2020/qualification/lib/select/input/qualification-select-input.component.mjs +1 -1
- package/esm2020/select/lib/input/select-input.component.mjs +8 -2
- package/esm2020/user/lib/select/input/user-select-input.component.mjs +1 -1
- package/fesm2015/lucca-front-ng-api.mjs +2 -1
- package/fesm2015/lucca-front-ng-api.mjs.map +1 -1
- package/fesm2015/lucca-front-ng-department.mjs +1 -1
- package/fesm2015/lucca-front-ng-establishment.mjs +1 -1
- package/fesm2015/lucca-front-ng-formly.mjs +1 -1
- package/fesm2015/lucca-front-ng-formly.mjs.map +1 -1
- package/fesm2015/lucca-front-ng-option.mjs +52 -11
- package/fesm2015/lucca-front-ng-option.mjs.map +1 -1
- package/fesm2015/lucca-front-ng-popover.mjs +1 -1
- package/fesm2015/lucca-front-ng-popover.mjs.map +1 -1
- package/fesm2015/lucca-front-ng-qualification.mjs +1 -1
- package/fesm2015/lucca-front-ng-select.mjs +7 -1
- package/fesm2015/lucca-front-ng-select.mjs.map +1 -1
- package/fesm2015/lucca-front-ng-user.mjs +1 -1
- package/fesm2020/lucca-front-ng-api.mjs +2 -1
- package/fesm2020/lucca-front-ng-api.mjs.map +1 -1
- package/fesm2020/lucca-front-ng-department.mjs +1 -1
- package/fesm2020/lucca-front-ng-establishment.mjs +1 -1
- package/fesm2020/lucca-front-ng-formly.mjs +1 -1
- package/fesm2020/lucca-front-ng-formly.mjs.map +1 -1
- package/fesm2020/lucca-front-ng-option.mjs +52 -11
- package/fesm2020/lucca-front-ng-option.mjs.map +1 -1
- package/fesm2020/lucca-front-ng-popover.mjs +1 -1
- package/fesm2020/lucca-front-ng-popover.mjs.map +1 -1
- package/fesm2020/lucca-front-ng-qualification.mjs +1 -1
- package/fesm2020/lucca-front-ng-select.mjs +7 -1
- package/fesm2020/lucca-front-ng-select.mjs.map +1 -1
- package/fesm2020/lucca-front-ng-user.mjs +1 -1
- package/formly/lib/types/api.d.ts +1 -1
- package/option/lib/item/option-item.component.d.ts +6 -3
- package/option/lib/item/option-item.model.d.ts +2 -0
- package/option/lib/item/tree-option-item.component.d.ts +4 -1
- package/package.json +1 -1
- package/select/lib/input/select-input.component.d.ts +2 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lucca-front-ng-formly.mjs","sources":["../../../packages/ng/formly/src/lib/types/api.ts","../../../packages/ng/formly/src/lib/types/api.html","../../../packages/ng/formly/src/lib/types/establishment.ts","../../../packages/ng/formly/src/lib/types/establishment.html","../../../packages/ng/formly/src/lib/types/checkbox.ts","../../../packages/ng/formly/src/lib/types/checkbox.html","../../../packages/ng/formly/src/lib/types/date.ts","../../../packages/ng/formly/src/lib/types/date.html","../../../packages/ng/formly/src/lib/types/department.ts","../../../packages/ng/formly/src/lib/types/department.html","../../../packages/ng/formly/src/lib/types/input.ts","../../../packages/ng/formly/src/lib/types/input.html","../../../packages/ng/formly/src/lib/types/radios.ts","../../../packages/ng/formly/src/lib/types/radios.html","../../../packages/ng/formly/src/lib/types/select.ts","../../../packages/ng/formly/src/lib/types/select.html","../../../packages/ng/formly/src/lib/types/textarea.ts","../../../packages/ng/formly/src/lib/types/textarea.html","../../../packages/ng/formly/src/lib/types/user.ts","../../../packages/ng/formly/src/lib/types/user.html","../../../packages/ng/formly/src/lib/types/qualification.ts","../../../packages/ng/formly/src/lib/types/qualification.html","../../../packages/ng/formly/src/lib/wrappers/error.ts","../../../packages/ng/formly/src/lib/wrappers/error.html","../../../packages/ng/formly/src/lib/wrappers/helper.ts","../../../packages/ng/formly/src/lib/wrappers/helper.html","../../../packages/ng/formly/src/lib/wrappers/icon.ts","../../../packages/ng/formly/src/lib/wrappers/icon.html","../../../packages/ng/formly/src/lib/wrappers/radiosfield-layout.ts","../../../packages/ng/formly/src/lib/wrappers/radiosfield-layout.html","../../../packages/ng/formly/src/lib/wrappers/suffix.ts","../../../packages/ng/formly/src/lib/wrappers/suffix.html","../../../packages/ng/formly/src/lib/wrappers/textfield-layout.ts","../../../packages/ng/formly/src/lib/wrappers/textfield-layout.html","../../../packages/ng/formly/src/lib/wrappers/checkbox-layout.ts","../../../packages/ng/formly/src/lib/wrappers/checkbox-layout.html","../../../packages/ng/formly/src/lib/formly.config.ts","../../../packages/ng/formly/src/lib/formly.module.ts","../../../packages/ng/formly/src/public-api.ts","../../../packages/ng/formly/src/lucca-front-ng-formly.ts"],"sourcesContent":["import { Component } from '@angular/core';\r\nimport { FormControl } from '@angular/forms';\r\nimport { FieldType } from '@ngx-formly/core';\r\n\r\n@Component({\r\n\tselector: 'lu-formly-field-api',\r\n\tstyleUrls: ['formly-field.common.scss', 'select.scss'],\r\n\ttemplateUrl: './api.html',\r\n\t// changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\n// eslint-disable-next-line @angular-eslint/component-class-suffix\r\nexport class LuFormlyFieldApi extends FieldType {\r\n\tget _api() {\r\n\t\treturn this.to['api'] as string;\r\n\t}\r\n\tget _filters() {\r\n\t\treturn (this.to['filters'] || []) as string[];\r\n\t}\r\n\tget _orderBy() {\r\n\t\treturn this.to['orderBy'] as string;\r\n\t}\r\n\tget _sort() {\r\n\t\treturn this.to['sort'] as string;\r\n\t}\r\n\tget _standard() {\r\n\t\treturn (this.to['standard'] || 'v3') as string;\r\n\t}\r\n\toverride readonly formControl: FormControl;\r\n\tfocus() {\r\n\t\tthis.to['_isFocused'] = true;\r\n\t}\r\n\tblur() {\r\n\t\tthis.to['_isFocused'] = false;\r\n\t}\r\n}\r\n","<lu-api-select\r\n\tclass=\"textfield-input\"\r\n\t[formControl]=\"formControl\"\r\n\t[formlyAttributes]=\"field\"\r\n\t[multiple]=\"to['multiple']\"\r\n\t(focus)=\"focus()\"\r\n\t(blur)=\"blur()\"\r\n\t[placeholder]=\"to.placeholder\"\r\n\t[api]=\"_api\"\r\n\t[filters]=\"_filters\"\r\n\t[orderBy]=\"_orderBy\"\r\n\t[sort]=\"_sort\"\r\n\t[standard]=\"_standard\"\r\n>\r\n</lu-api-select>\r\n<span [attr.for]=\"id\" class=\"textfield-label\">{{ to.label }}</span>\r\n","import { Component } from '@angular/core';\r\nimport { FormControl } from '@angular/forms';\r\nimport { FieldType } from '@ngx-formly/core';\r\n\r\n@Component({\r\n\tselector: 'lu-formly-field-establishment',\r\n\tstyleUrls: ['formly-field.common.scss', 'select.scss'],\r\n\ttemplateUrl: './establishment.html',\r\n})\r\n// eslint-disable-next-line @angular-eslint/component-class-suffix\r\nexport class LuFormlyFieldEstablishment extends FieldType {\r\n\toverride readonly formControl: FormControl;\r\n\tfocus() {\r\n\t\tthis.to['_isFocused'] = true;\r\n\t}\r\n\tblur() {\r\n\t\tthis.to['_isFocused'] = false;\r\n\t}\r\n}\r\n","<lu-establishment-select\r\n\tclass=\"textfield-input\"\r\n\t[formControl]=\"formControl\"\r\n\t[formlyAttributes]=\"field\"\r\n\t[multiple]=\"to['multiple']\"\r\n\t(focus)=\"focus()\"\r\n\t(blur)=\"blur()\"\r\n\t[placeholder]=\"to.placeholder\"\r\n\t[filters]=\"to['filters']\"\r\n\t[appInstanceId]=\"to['appInstanceId']\"\r\n\t[operations]=\"to['operations']\"\r\n>\r\n</lu-establishment-select>\r\n<span class=\"textfield-label\">{{ to.label }}</span>\r\n","import { Component } from '@angular/core';\r\nimport { FormControl } from '@angular/forms';\r\nimport { FieldType } from '@ngx-formly/core';\r\n\r\n@Component({\r\n\tselector: 'lu-formly-field-checkbox',\r\n\tstyleUrls: ['formly-field.common.scss'],\r\n\ttemplateUrl: './checkbox.html',\r\n\t// changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\n// eslint-disable-next-line @angular-eslint/component-class-suffix\r\nexport class LuFormlyFieldCheckbox extends FieldType {\r\n\toverride readonly formControl: FormControl;\r\n\tfocus() {\r\n\t\tthis.to['_isFocused'] = true;\r\n\t}\r\n\tblur() {\r\n\t\tthis.to['_isFocused'] = false;\r\n\t}\r\n}\r\n","<label class=\"checkbox\" [ngClass]=\"to['mod']\">\r\n\t<input class=\"checkbox-input\" type=\"checkbox\" [name]=\"to['name']\" [id]=\"id\" [formControl]=\"formControl\" [formlyAttributes]=\"field\" />\r\n\t<span class=\"checkbox-label\">{{to.label}}</span>\r\n</label>\r\n","import { Component } from '@angular/core';\r\nimport { FormControl } from '@angular/forms';\r\nimport { FieldType } from '@ngx-formly/core';\r\n\r\n@Component({\r\n\tselector: 'lu-formly-field-date',\r\n\tstyleUrls: ['formly-field.common.scss', 'select.scss'],\r\n\ttemplateUrl: './date.html',\r\n\t// changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\n// eslint-disable-next-line @angular-eslint/component-class-suffix\r\nexport class LuFormlyFieldDate extends FieldType {\r\n\toverride readonly formControl: FormControl;\r\n\tfocus() {\r\n\t\tthis.to['_isFocused'] = true;\r\n\t}\r\n\tblur() {\r\n\t\tthis.to['_isFocused'] = false;\r\n\t}\r\n}\r\n","<lu-date-select\r\n\tclass=\"textfield-input\"\r\n\t[formControl]=\"formControl\"\r\n\t[formlyAttributes]=\"field\"\r\n\t(focus)=\"focus()\"\r\n\t(blur)=\"blur()\"\r\n\t[placeholder]=\"to.placeholder\"\r\n\t[min]=\"to.min\"\r\n\t[max]=\"to.max\"\r\n></lu-date-select>\r\n<span class=\"textfield-label\">{{ to.label }}</span>\r\n","import { Component } from '@angular/core';\r\nimport { FormControl } from '@angular/forms';\r\nimport { FieldType } from '@ngx-formly/core';\r\n\r\n@Component({\r\n\tselector: 'lu-formly-field-department',\r\n\tstyleUrls: ['formly-field.common.scss', 'select.scss'],\r\n\ttemplateUrl: './department.html',\r\n\t// changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\n// eslint-disable-next-line @angular-eslint/component-class-suffix\r\nexport class LuFormlyFieldDepartment extends FieldType {\r\n\toverride readonly formControl: FormControl;\r\n\tfocus() {\r\n\t\tthis.to['_isFocused'] = true;\r\n\t}\r\n\tblur() {\r\n\t\tthis.to['_isFocused'] = false;\r\n\t}\r\n}\r\n","<lu-department-select\r\n\tclass=\"textfield-input\"\r\n\t[formControl]=\"formControl\"\r\n\t[formlyAttributes]=\"field\"\r\n\t[multiple]=\"to['multiple']\"\r\n\t(focus)=\"focus()\"\r\n\t(blur)=\"blur()\"\r\n\t[placeholder]=\"to.placeholder\"\r\n\t[filters]=\"to['filters']\"\r\n\t[appInstanceId]=\"to['appInstanceId']\"\r\n\t[operations]=\"to['operations']\"\r\n>\r\n</lu-department-select>\r\n<span class=\"textfield-label\">{{ to.label }}</span>\r\n","import { Component } from '@angular/core';\r\nimport { FormControl } from '@angular/forms';\r\nimport { FieldType } from '@ngx-formly/core';\r\n@Component({\r\n\tselector: 'lu-formly-field-input',\r\n\tstyleUrls: ['formly-field.common.scss'],\r\n\ttemplateUrl: './input.html',\r\n\t// changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\n// eslint-disable-next-line @angular-eslint/component-class-suffix\r\nexport class LuFormlyFieldInput extends FieldType {\r\n\tget type() {\r\n\t\treturn this.to.type || 'text';\r\n\t}\r\n\toverride readonly formControl: FormControl;\r\n\tfocus() {\r\n\t\tthis.to['_isFocused'] = true;\r\n\t}\r\n\tblur() {\r\n\t\tthis.to['_isFocused'] = false;\r\n\t}\r\n}\r\n","<ng-template [ngIf]=\"type !== 'number'\" [ngIfElse]=\"numberInput\">\r\n\t<input\r\n\t\t[type]=\"type\"\r\n\t\tclass=\"textfield-input\"\r\n\t\t[name]=\"to['name']\"\r\n\t\t[formControl]=\"formControl\"\r\n\t\t[formlyAttributes]=\"field\"\r\n\t\tluInput\r\n\t\t(focus)=\"focus()\"\r\n\t\t(blur)=\"blur()\"\r\n\t\t[placeholder]=\"to.placeholder\"\r\n\t/>\r\n</ng-template>\r\n<!-- type=\"number\" has to be static in order to have NumberValueAccessor instead of DefaultValueAccessor -->\r\n<ng-template #numberInput>\r\n\t<input\r\n\t\ttype=\"number\"\r\n\t\tclass=\"textfield-input\"\r\n\t\t[name]=\"to['name']\"\r\n\t\t[formControl]=\"formControl\"\r\n\t\t[formlyAttributes]=\"field\"\r\n\t\tluInput\r\n\t\t(focus)=\"focus()\"\r\n\t\t(blur)=\"blur()\"\r\n\t\t[placeholder]=\"to.placeholder\"\r\n\t/>\r\n</ng-template>\r\n<span class=\"textfield-label\">{{ to.label }}</span>\r\n","import { Component } from '@angular/core';\r\nimport { FormControl } from '@angular/forms';\r\nimport { FieldType } from '@ngx-formly/core';\r\n\r\n@Component({\r\n\tselector: 'lu-formly-field-radios',\r\n\tstyleUrls: ['formly-field.common.scss'],\r\n\ttemplateUrl: './radios.html',\r\n\t// changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\n// eslint-disable-next-line @angular-eslint/component-class-suffix\r\nexport class LuFormlyFieldRadios extends FieldType {\r\n\tget _options() {\r\n\t\treturn (this.to.options || []) as { value: unknown; label: unknown }[];\r\n\t}\r\n\toverride readonly formControl: FormControl;\r\n\tfocus() {\r\n\t\tthis.to['_isFocused'] = true;\r\n\t}\r\n\tblur() {\r\n\t\tthis.to['_isFocused'] = false;\r\n\t}\r\n}\r\n","<legend class=\"radiosfield-label\">{{to.label}}</legend>\r\n<div class=\"radiosfield-input\">\r\n\t<label *ngFor=\"let option of _options, let i = index\" class=\"radio\">\r\n\t\t<input\r\n\t\t\tclass=\"radio-input\"\r\n\t\t\ttype=\"radio\"\r\n\t\t\t[name]=\"to['name']\"\r\n\t\t\t[value]=\"option.value\"\r\n\t\t\t[id]=\"id + '_'+ i\"\r\n\t\t\t[formControl]=\"formControl\"\r\n\t\t\t[formlyAttributes]=\"field\"\r\n\t\t/>\r\n\t\t<span class=\"radio-label\">{{option.label}}</span>\r\n\t</label>\r\n</div>\r\n","import { Component } from '@angular/core';\r\nimport { FormControl } from '@angular/forms';\r\nimport { FieldType } from '@ngx-formly/core';\r\n\r\n@Component({\r\n\tselector: 'lu-formly-field-select',\r\n\tstyleUrls: ['formly-field.common.scss', 'select.scss'],\r\n\ttemplateUrl: './select.html',\r\n\t// changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\n// eslint-disable-next-line @angular-eslint/component-class-suffix\r\nexport class LuFormlyFieldSelect extends FieldType {\r\n\tget _options() {\r\n\t\treturn (this.to.options || []) as { value: unknown; label: unknown; name: string }[];\r\n\t}\r\n\toverride readonly formControl: FormControl;\r\n\tfocus() {\r\n\t\tthis.to['_isFocused'] = true;\r\n\t}\r\n\tblur() {\r\n\t\tthis.to['_isFocused'] = false;\r\n\t}\r\n}\r\n","<lu-select\r\n\tclass=\"textfield-input\"\r\n\t[formControl]=\"formControl\"\r\n\t[formlyAttributes]=\"field\"\r\n\t(focus)=\"focus()\"\r\n\t(blur)=\"blur()\"\r\n\t[multiple]=\"to['multiple']\"\r\n\t[placeholder]=\"to.placeholder\"\r\n>\r\n\t<ng-container *luDisplayer=\"let option\">\r\n\t\t<span [class.chip]=\"to['multiple']\" [class.mod-unkillable]=\"to['multiple']\">{{ option.name }}</span>\r\n\t</ng-container>\r\n\t<lu-option-picker>\r\n\t\t<lu-option *ngFor=\"let option of _options\" [value]=\"option\"> {{ option.name }} </lu-option>\r\n\t</lu-option-picker>\r\n\t<lu-input-clearer *ngIf=\"!to.required && !to['multiple']\"></lu-input-clearer>\r\n</lu-select>\r\n<span class=\"textfield-label\">{{ to.label }}</span>\r\n","import { Component } from '@angular/core';\r\nimport { FormControl } from '@angular/forms';\r\nimport { FieldType } from '@ngx-formly/core';\r\n\r\n@Component({\r\n\tselector: 'lu-formly-field-input',\r\n\tstyleUrls: ['formly-field.common.scss'],\r\n\ttemplateUrl: './textarea.html',\r\n\t// changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\n// eslint-disable-next-line @angular-eslint/component-class-suffix\r\nexport class LuFormlyFieldTextarea extends FieldType {\r\n\toverride readonly formControl: FormControl;\r\n\tfocus() {\r\n\t\tthis.to['_isFocused'] = true;\r\n\t}\r\n\tblur() {\r\n\t\tthis.to['_isFocused'] = false;\r\n\t}\r\n}\r\n","<textarea\r\n\tclass=\"textfield-input\"\r\n\t[name]=\"to['name']\"\r\n\t[formControl]=\"formControl\"\r\n\t[formlyAttributes]=\"field\"\r\n\tluInput\r\n\t(focus)=\"focus()\"\r\n\t(blur)=\"blur()\"\r\n\t[placeholder]=\"to.placeholder\"\r\n></textarea>\r\n<span class=\"textfield-label\">{{ to.label }}</span>\r\n","import { Component } from '@angular/core';\r\nimport { FormControl } from '@angular/forms';\r\nimport { FieldType } from '@ngx-formly/core';\r\n\r\n@Component({\r\n\tselector: 'lu-formly-field-user',\r\n\tstyleUrls: ['formly-field.common.scss', 'select.scss'],\r\n\ttemplateUrl: './user.html',\r\n\t// changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\n// eslint-disable-next-line @angular-eslint/component-class-suffix\r\nexport class LuFormlyFieldUser extends FieldType {\r\n\toverride readonly formControl: FormControl;\r\n\r\n\tfocus() {\r\n\t\tthis.to['_isFocused'] = true;\r\n\t}\r\n\tblur() {\r\n\t\tthis.to['_isFocused'] = false;\r\n\t}\r\n}\r\n","<lu-user-select\r\n\tclass=\"textfield-input\"\r\n\t[formControl]=\"formControl\"\r\n\t[formlyAttributes]=\"field\"\r\n\t[multiple]=\"to['multiple']\"\r\n\t(focus)=\"focus()\"\r\n\t(blur)=\"blur()\"\r\n\t[placeholder]=\"to.placeholder\"\r\n>\r\n</lu-user-select>\r\n<span class=\"textfield-label\">{{ to.label }}</span>\r\n","import { Component } from '@angular/core';\r\nimport { FormControl } from '@angular/forms';\r\nimport { FieldType } from '@ngx-formly/core';\r\n\r\n@Component({\r\n\tselector: 'lu-formly-field-qualification',\r\n\tstyleUrls: ['formly-field.common.scss', 'select.scss'],\r\n\ttemplateUrl: './qualification.html',\r\n})\r\n// eslint-disable-next-line @angular-eslint/component-class-suffix\r\nexport class LuFormlyFieldQualification extends FieldType {\r\n\toverride readonly formControl: FormControl;\r\n\tfocus() {\r\n\t\tthis.to['_isFocused'] = true;\r\n\t}\r\n\tblur() {\r\n\t\tthis.to['_isFocused'] = false;\r\n\t}\r\n}\r\n","<lu-qualification-select\r\n\tclass=\"textfield-input\"\r\n\t[formControl]=\"formControl\"\r\n\t[formlyAttributes]=\"field\"\r\n\t[multiple]=\"to['multiple']\"\r\n\t(focus)=\"focus()\"\r\n\t(blur)=\"blur()\"\r\n\t[placeholder]=\"to.placeholder\"\r\n\t[filters]=\"to['filters']\"\r\n>\r\n</lu-qualification-select>\r\n<span class=\"textfield-label\">{{ to.label }}</span>\r\n","import { ChangeDetectionStrategy, Component, Input, ViewChild, ViewContainerRef } from '@angular/core';\r\nimport { FormControl } from '@angular/forms';\r\nimport { FieldWrapper, FormlyConfig, FormlyFieldConfig } from '@ngx-formly/core';\r\n\r\n// wrapper\r\n@Component({\r\n\tselector: 'lu-formly-wrapper-error',\r\n\tstyleUrls: ['flex-layout.scss'],\r\n\ttemplateUrl: './error.html',\r\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\n// eslint-disable-next-line @angular-eslint/component-class-suffix\r\nexport class LuFormlyWrapperError extends FieldWrapper {\r\n\t@ViewChild('fieldComponent', { read: ViewContainerRef, static: true })\r\n\toverride fieldComponent: ViewContainerRef;\r\n\r\n\toverride readonly formControl: FormControl;\r\n\r\n\tget validationId() {\r\n\t\treturn this.field.id + '-message';\r\n\t}\r\n}\r\n\r\n// component that display the right error message\r\n@Component({\r\n\tselector: 'lu-formly-error-message',\r\n\ttemplate: `<div class=\"textfield-messages-error\" *ngFor=\"let message of errorMessages\">\r\n\t\t{{ message }}\r\n\t</div>`,\r\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\n// eslint-disable-next-line @angular-eslint/component-class-suffix\r\nexport class LuFormlyErrorMessage {\r\n\t@Input() fieldForm: FormControl;\r\n\t@Input() field: FormlyFieldConfig;\r\n\r\n\tget errorMessages(): string[] {\r\n\t\tconst messages: string[] = [];\r\n\t\tif (this.fieldForm.errors) {\r\n\t\t\tObject.keys(this.fieldForm.errors).forEach((key) => {\r\n\t\t\t\tif (this.field.validation?.messages?.[key]) {\r\n\t\t\t\t\tmessages.push(this.field.validation.messages[key] as string);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn messages;\r\n\t}\r\n}\r\n\r\n// run to know when to add said wrapper\r\nexport class TemplateError {\r\n\trun(fc: FormlyConfig) {\r\n\t\tfc.templateManipulators.postWrapper.push((field: FormlyFieldConfig) => {\r\n\t\t\tif (field && field.validation) {\r\n\t\t\t\treturn 'error';\r\n\t\t\t}\r\n\t\t\treturn '';\r\n\t\t});\r\n\t}\r\n}\r\n","<ng-container #fieldComponent></ng-container>\r\n<div class=\"textfield-messages\" *ngIf=\"formControl.touched && formControl.invalid\" [id]=\"validationId\">\r\n\t<lu-formly-error-message [fieldForm]=\"formControl\" [field]=\"field\"></lu-formly-error-message>\r\n</div>\r\n","import { ChangeDetectionStrategy, Component, ViewChild, ViewContainerRef } from '@angular/core';\r\nimport { FieldWrapper, FormlyConfig, FormlyFieldConfig } from '@ngx-formly/core';\r\n\r\n// wrapper component\r\n@Component({\r\n\tselector: 'lu-formly-wrapper-helper',\r\n\tstyleUrls: ['flex-layout.scss'],\r\n\ttemplateUrl: './helper.html',\r\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\n// eslint-disable-next-line @angular-eslint/component-class-suffix\r\nexport class LuFormlyWrapperHelper extends FieldWrapper {\r\n\t@ViewChild('fieldComponent', { read: ViewContainerRef, static: true })\r\n\toverride fieldComponent: ViewContainerRef;\r\n}\r\n// run to know when to add said wrapper\r\nexport class TemplateHelper {\r\n\trun(fc: FormlyConfig) {\r\n\t\tfc.templateManipulators.postWrapper.push((field: FormlyFieldConfig) => {\r\n\t\t\tif (field && field.templateOptions && field.templateOptions['helper']) {\r\n\t\t\t\treturn 'helper';\r\n\t\t\t}\r\n\t\t\treturn '';\r\n\t\t});\r\n\t}\r\n}\r\n","<ng-container #fieldComponent></ng-container>\r\n<div class=\"textfield-messages mod-helper\">\r\n\t<div class=\"textfield-messages-helper\">{{ to['helper'] }}</div>\r\n</div>\r\n","import { ChangeDetectionStrategy, Component, ViewChild, ViewContainerRef } from '@angular/core';\r\nimport { FieldWrapper, FormlyConfig, FormlyFieldConfig } from '@ngx-formly/core';\r\n\r\n// wrapper component\r\n@Component({\r\n\tselector: 'lu-formly-wrapper-suffix',\r\n\tstyleUrls: ['flex-layout.scss', 'suffixes.common.scss'],\r\n\ttemplateUrl: './icon.html',\r\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\n// eslint-disable-next-line @angular-eslint/component-class-suffix\r\nexport class LuFormlyWrapperIcon extends FieldWrapper {\r\n\t@ViewChild('fieldComponent', { read: ViewContainerRef, static: true })\r\n\toverride fieldComponent: ViewContainerRef;\r\n}\r\n// run to know when to add said wrapper\r\nexport class TemplateIcon {\r\n\trun(fc: FormlyConfig) {\r\n\t\tfc.templateManipulators.postWrapper.push((field: FormlyFieldConfig) => {\r\n\t\t\t// if (field && field.type === 'date') {\r\n\t\t\t// \tfield.templateOptions.icon = 'calendar';\r\n\t\t\t// \treturn 'icon';\r\n\t\t\t// }\r\n\t\t\t// if (field && field.type === 'api') {\r\n\t\t\t// \tfield.templateOptions.icon = 'search';\r\n\t\t\t// \treturn 'icon';\r\n\t\t\t// }\r\n\t\t\tif (field && field.templateOptions && field.templateOptions['icon']) {\r\n\t\t\t\treturn 'icon';\r\n\t\t\t}\r\n\t\t\treturn '';\r\n\t\t});\r\n\t}\r\n}\r\n","<ng-container #fieldComponent></ng-container>\r\n<span aria-hidden=\"true\" class=\"textfield-suffix mod-icon lucca-icon\">{{ to['icon'] }}</span>\r\n","import { ChangeDetectionStrategy, Component, ViewChild, ViewContainerRef } from '@angular/core';\r\nimport { FieldWrapper } from '@ngx-formly/core';\r\n\r\n// wrapper component\r\n@Component({\r\n\tselector: 'lu-formly-wrapper-radiosfield-layout',\r\n\tstyleUrls: ['flex-layout.scss'],\r\n\ttemplateUrl: './radiosfield-layout.html',\r\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\n// eslint-disable-next-line @angular-eslint/component-class-suffix\r\nexport class LuFormlyWrapperRadiosfieldLayout extends FieldWrapper {\r\n\t@ViewChild('fieldComponent', { read: ViewContainerRef, static: true })\r\n\toverride fieldComponent: ViewContainerRef;\r\n\r\n\tget mod() {\r\n\t\treturn (this.to['mod'] || '') as string;\r\n\t}\r\n\r\n\tget isRequired() {\r\n\t\treturn !!this.to && !!this.to.required ? 'is-required' : '';\r\n\t}\r\n\r\n\tget isFocused() {\r\n\t\treturn !!this.to && this.to['_isFocused'] ? 'is-focused' : '';\r\n\t}\r\n\r\n\tget isError() {\r\n\t\treturn this.formControl.invalid && this.formControl.touched ? 'is-error' : '';\r\n\t}\r\n}\r\n","<div class=\"fieldsetWrapper\">\r\n\t<fieldset class=\"radiosfield\" [ngClass]=\"[mod, isRequired, isFocused, isError]\">\r\n\t\t<ng-container #fieldComponent></ng-container>\r\n\t</fieldset>\r\n</div>\r\n","import { ChangeDetectionStrategy, Component, ViewChild, ViewContainerRef } from '@angular/core';\r\nimport { FieldWrapper, FormlyConfig, FormlyFieldConfig } from '@ngx-formly/core';\r\n\r\n// wrapper component\r\n@Component({\r\n\tselector: 'lu-formly-wrapper-suffix',\r\n\tstyleUrls: ['flex-layout.scss', 'suffixes.common.scss'],\r\n\ttemplateUrl: './suffix.html',\r\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\n// eslint-disable-next-line @angular-eslint/component-class-suffix\r\nexport class LuFormlyWrapperSuffix extends FieldWrapper {\r\n\t@ViewChild('fieldComponent', { read: ViewContainerRef, static: true })\r\n\toverride fieldComponent: ViewContainerRef;\r\n}\r\n// run to know when to add said wrapper\r\nexport class TemplateSuffix {\r\n\trun(fc: FormlyConfig) {\r\n\t\tfc.templateManipulators.postWrapper.push((field: FormlyFieldConfig) => {\r\n\t\t\tif (field?.templateOptions?.['suffix'] && !field?.templateOptions?.['icon']) {\r\n\t\t\t\treturn 'suffix';\r\n\t\t\t}\r\n\t\t\treturn '';\r\n\t\t});\r\n\t}\r\n}\r\n","<ng-container #fieldComponent></ng-container>\r\n<span class=\"textfield-suffix\">{{ to['suffix'] }}</span>\r\n","import { ChangeDetectionStrategy, Component, ViewChild, ViewContainerRef } from '@angular/core';\r\nimport { FieldWrapper } from '@ngx-formly/core';\r\n\r\n// wrapper component\r\n@Component({\r\n\tselector: 'lu-formly-wrapper-layout',\r\n\tstyleUrls: ['flex-layout.scss'],\r\n\ttemplateUrl: './textfield-layout.html',\r\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\n// eslint-disable-next-line @angular-eslint/component-class-suffix\r\nexport class LuFormlyWrapperTextfieldLayout extends FieldWrapper {\r\n\t@ViewChild('fieldComponent', { read: ViewContainerRef, static: true })\r\n\toverride fieldComponent: ViewContainerRef;\r\n\r\n\tget mod() {\r\n\t\treturn (this.to['mod'] || '') as string;\r\n\t}\r\n\r\n\tget modMultiline() {\r\n\t\treturn !!this.field && this.field.type === 'textarea' ? 'mod-multiline' : '';\r\n\t}\r\n\r\n\tget modWithSuffix() {\r\n\t\treturn !!this.to && !!this.to['suffix'] ? 'mod-withSuffix' : '';\r\n\t}\r\n\r\n\tget isRequired() {\r\n\t\treturn !!this.to && !!this.to.required ? 'is-required' : '';\r\n\t}\r\n\r\n\tget isDisabled() {\r\n\t\treturn !!this.to && !!this.to.disabled ? 'is-disabled' : '';\r\n\t}\r\n\r\n\tget isFocused() {\r\n\t\treturn !!this.to && this.to['_isFocused'] ? 'is-focused' : '';\r\n\t}\r\n\r\n\tget isError() {\r\n\t\treturn this.formControl.invalid && this.formControl.touched ? 'is-error' : '';\r\n\t}\r\n}\r\n","<label class=\"textfield\" [ngClass]=\"[mod, modWithSuffix, modMultiline, isRequired, isFocused, isError, isDisabled]\">\r\n\t<ng-container #fieldComponent></ng-container>\r\n</label>\r\n","import { ChangeDetectionStrategy, Component, ViewChild, ViewContainerRef } from '@angular/core';\r\nimport { FieldWrapper } from '@ngx-formly/core';\r\n\r\n// wrapper component\r\n@Component({\r\n\tselector: 'lu-formly-wrapper-checkbox-layout',\r\n\tstyleUrls: ['flex-layout.scss'],\r\n\ttemplateUrl: './checkbox-layout.html',\r\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\n// eslint-disable-next-line @angular-eslint/component-class-suffix\r\nexport class LuFormlyWrapperCheckboxLayout extends FieldWrapper {\r\n\t@ViewChild('fieldComponent', { read: ViewContainerRef, static: true })\r\n\toverride fieldComponent: ViewContainerRef;\r\n\r\n\tget mod() {\r\n\t\treturn (this.to['mod'] || '') as string;\r\n\t}\r\n\r\n\tget isRequired() {\r\n\t\treturn !!this.to && !!this.to.required ? 'is-required' : '';\r\n\t}\r\n\r\n\tget isFocused() {\r\n\t\treturn !!this.to && this.to['_isFocused'] ? 'is-focused' : '';\r\n\t}\r\n\r\n\tget isError() {\r\n\t\treturn this.formControl.invalid && this.formControl.touched ? 'is-error' : '';\r\n\t}\r\n}\r\n","<div class=\"fieldsetWrapper\">\r\n\t<fieldset class=\"checkboxesfield\" [ngClass]=\"[mod, isRequired, isFocused, isError]\">\r\n\t\t<ng-container #fieldComponent></ng-container>\r\n\t</fieldset>\r\n</div>\r\n","import { ConfigOption } from '@ngx-formly/core';\r\n// inputs\r\nimport {\r\n\tLuFormlyFieldApi,\r\n\tLuFormlyFieldCheckbox,\r\n\tLuFormlyFieldDate,\r\n\tLuFormlyFieldDepartment,\r\n\tLuFormlyFieldEstablishment,\r\n\tLuFormlyFieldInput,\r\n\tLuFormlyFieldQualification,\r\n\tLuFormlyFieldRadios,\r\n\tLuFormlyFieldSelect,\r\n\tLuFormlyFieldTextarea,\r\n\tLuFormlyFieldUser,\r\n} from './types/index';\r\n// wrappers\r\nimport {\r\n\tLuFormlyWrapperCheckboxLayout,\r\n\tLuFormlyWrapperError,\r\n\tLuFormlyWrapperHelper,\r\n\tLuFormlyWrapperIcon,\r\n\t// LuFormlyErrorMessage,\r\n\tLuFormlyWrapperRadiosfieldLayout,\r\n\tLuFormlyWrapperSuffix,\r\n\tLuFormlyWrapperTextfieldLayout,\r\n\tTemplateError,\r\n\tTemplateHelper,\r\n\tTemplateIcon,\r\n\tTemplateSuffix,\r\n} from './wrappers/index';\r\n\r\nexport const LU_FORMLY_CONFIG: ConfigOption = {\r\n\ttypes: [\r\n\t\t{\r\n\t\t\tname: 'input',\r\n\t\t\tcomponent: LuFormlyFieldInput,\r\n\t\t\twrappers: ['textfield-layout'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 'radio',\r\n\t\t\tcomponent: LuFormlyFieldRadios,\r\n\t\t\twrappers: ['radiosfield-layout'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 'checkbox',\r\n\t\t\tcomponent: LuFormlyFieldCheckbox,\r\n\t\t\twrappers: ['checkbox-layout'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 'date',\r\n\t\t\tcomponent: LuFormlyFieldDate,\r\n\t\t\twrappers: ['textfield-layout'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 'textarea',\r\n\t\t\tcomponent: LuFormlyFieldTextarea,\r\n\t\t\twrappers: ['textfield-layout'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 'select',\r\n\t\t\tcomponent: LuFormlyFieldSelect,\r\n\t\t\twrappers: ['textfield-layout'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 'user',\r\n\t\t\tcomponent: LuFormlyFieldUser,\r\n\t\t\twrappers: ['textfield-layout'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 'api',\r\n\t\t\tcomponent: LuFormlyFieldApi,\r\n\t\t\twrappers: ['textfield-layout'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 'department',\r\n\t\t\tcomponent: LuFormlyFieldDepartment,\r\n\t\t\twrappers: ['textfield-layout'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 'establishment',\r\n\t\t\tcomponent: LuFormlyFieldEstablishment,\r\n\t\t\twrappers: ['textfield-layout'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 'qualification',\r\n\t\t\tcomponent: LuFormlyFieldQualification,\r\n\t\t\twrappers: ['textfield-layout'],\r\n\t\t},\r\n\t],\r\n\twrappers: [\r\n\t\t{ name: 'helper', component: LuFormlyWrapperHelper },\r\n\t\t{ name: 'checkbox-layout', component: LuFormlyWrapperCheckboxLayout },\r\n\t\t{ name: 'radiosfield-layout', component: LuFormlyWrapperRadiosfieldLayout },\r\n\t\t{ name: 'textfield-layout', component: LuFormlyWrapperTextfieldLayout },\r\n\t\t{ name: 'suffix', component: LuFormlyWrapperSuffix },\r\n\t\t{ name: 'icon', component: LuFormlyWrapperIcon },\r\n\t\t{ name: 'error', component: LuFormlyWrapperError },\r\n\t],\r\n\tmanipulators: [\r\n\t\t{ class: TemplateError, method: 'run' }, // fifth\r\n\t\t{ class: TemplateHelper, method: 'run' }, // fourth\r\n\t\t{ class: TemplateSuffix, method: 'run' }, // third\r\n\t\t{ class: TemplateIcon, method: 'run' }, // second\r\n\t],\r\n};\r\n","import { CommonModule } from '@angular/common';\r\nimport { NgModule } from '@angular/core';\r\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\r\nimport { LuApiModule } from '@lucca-front/ng/api';\r\nimport { LuDateModule } from '@lucca-front/ng/date';\r\nimport { LuDepartmentModule } from '@lucca-front/ng/department';\r\nimport { LuEstablishmentModule } from '@lucca-front/ng/establishment';\r\nimport { LuInputModule } from '@lucca-front/ng/input';\r\nimport { LuOptionModule } from '@lucca-front/ng/option';\r\nimport { LuQualificationModule } from '@lucca-front/ng/qualification';\r\nimport { LuSelectModule } from '@lucca-front/ng/select';\r\nimport { LuUserModule } from '@lucca-front/ng/user';\r\nimport { FormlyModule } from '@ngx-formly/core';\r\nimport { LU_FORMLY_CONFIG } from './formly.config';\r\nimport {\r\n\tLuFormlyFieldApi,\r\n\tLuFormlyFieldCheckbox,\r\n\tLuFormlyFieldDate,\r\n\tLuFormlyFieldDepartment,\r\n\tLuFormlyFieldEstablishment,\r\n\tLuFormlyFieldInput,\r\n\tLuFormlyFieldRadios,\r\n\tLuFormlyFieldSelect,\r\n\tLuFormlyFieldTextarea,\r\n\tLuFormlyFieldUser,\r\n\tLuFormlyFieldQualification,\r\n} from './types/index';\r\nimport {\r\n\tLuFormlyErrorMessage,\r\n\tLuFormlyWrapperCheckboxLayout,\r\n\tLuFormlyWrapperError,\r\n\tLuFormlyWrapperHelper,\r\n\tLuFormlyWrapperIcon,\r\n\tLuFormlyWrapperRadiosfieldLayout,\r\n\tLuFormlyWrapperSuffix,\r\n\tLuFormlyWrapperTextfieldLayout,\r\n} from './wrappers/index';\r\n\r\n/** HACK to avoid a 'Function calls are not supported in decorators' error */\r\nexport const LuFormlyChild = FormlyModule.forChild(LU_FORMLY_CONFIG);\r\n\r\n@NgModule({\r\n\tdeclarations: [\r\n\t\tLuFormlyErrorMessage,\r\n\r\n\t\tLuFormlyFieldInput,\r\n\t\tLuFormlyFieldDate,\r\n\t\tLuFormlyFieldTextarea,\r\n\t\tLuFormlyFieldSelect,\r\n\t\tLuFormlyFieldUser,\r\n\t\tLuFormlyFieldApi,\r\n\t\tLuFormlyFieldDepartment,\r\n\t\tLuFormlyFieldEstablishment,\r\n\t\tLuFormlyFieldQualification,\r\n\t\tLuFormlyFieldRadios,\r\n\t\tLuFormlyFieldCheckbox,\r\n\r\n\t\tLuFormlyWrapperHelper,\r\n\t\tLuFormlyWrapperCheckboxLayout,\r\n\t\tLuFormlyWrapperTextfieldLayout,\r\n\t\tLuFormlyWrapperRadiosfieldLayout,\r\n\t\tLuFormlyWrapperSuffix,\r\n\t\tLuFormlyWrapperIcon,\r\n\t\tLuFormlyWrapperError,\r\n\t],\r\n\timports: [\r\n\t\tCommonModule,\r\n\t\tFormsModule,\r\n\t\tReactiveFormsModule,\r\n\r\n\t\tLuSelectModule,\r\n\t\tLuOptionModule,\r\n\t\tLuUserModule,\r\n\t\tLuInputModule,\r\n\t\tLuApiModule,\r\n\t\tLuDepartmentModule,\r\n\t\tLuEstablishmentModule,\r\n\t\tLuQualificationModule,\r\n\t\tLuDateModule,\r\n\r\n\t\tLuFormlyChild,\r\n\t],\r\n})\r\nexport class LuFormlyModule {}\r\n","/*\r\n * Public API Surface of formly\r\n */\r\n\r\nexport * from './index';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA;MACa,gBAAiB,SAAQ,SAAS;IAC9C,IAAI,IAAI;QACP,OAAO,IAAI,CAAC,EAAE,CAAC,KAAK,CAAW,CAAC;KAChC;IACD,IAAI,QAAQ;QACX,QAAQ,IAAI,CAAC,EAAE,CAAC,SAAS,CAAC,IAAI,EAAE,EAAc;KAC9C;IACD,IAAI,Q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A0B;wBAC1B,mBAAmB;wBACnB,qBAAqB;wBAErB,qBAAqB;wBACrB,6BAA6B;wBAC7B,8BAA8B;wBAC9B,gCAAgC;wBAChC,qBAAqB;wBACrB,mBAAmB;wBACnB,oBAAoB;qBACpB;oBACD,OAAO,EAAE;wBACR,YAAY;wBACZ,WAAW;wBACX,mBAAmB;wBAEnB,cAAc;wBACd,cAAc;wBACd,YAAY;wBACZ,aAAa;wBACb,WAAW;wBACX,kBAAkB;wBAClB,qBAAqB;wBACrB,qBAAqB;wBACrB,YAAY;wBAEZ,aAAa;qBACb;iBACD;;;AClFD;;;;ACAA;;;;;;"}
|
|
1
|
+
{"version":3,"file":"lucca-front-ng-formly.mjs","sources":["../../../packages/ng/formly/src/lib/types/api.ts","../../../packages/ng/formly/src/lib/types/api.html","../../../packages/ng/formly/src/lib/types/establishment.ts","../../../packages/ng/formly/src/lib/types/establishment.html","../../../packages/ng/formly/src/lib/types/checkbox.ts","../../../packages/ng/formly/src/lib/types/checkbox.html","../../../packages/ng/formly/src/lib/types/date.ts","../../../packages/ng/formly/src/lib/types/date.html","../../../packages/ng/formly/src/lib/types/department.ts","../../../packages/ng/formly/src/lib/types/department.html","../../../packages/ng/formly/src/lib/types/input.ts","../../../packages/ng/formly/src/lib/types/input.html","../../../packages/ng/formly/src/lib/types/radios.ts","../../../packages/ng/formly/src/lib/types/radios.html","../../../packages/ng/formly/src/lib/types/select.ts","../../../packages/ng/formly/src/lib/types/select.html","../../../packages/ng/formly/src/lib/types/textarea.ts","../../../packages/ng/formly/src/lib/types/textarea.html","../../../packages/ng/formly/src/lib/types/user.ts","../../../packages/ng/formly/src/lib/types/user.html","../../../packages/ng/formly/src/lib/types/qualification.ts","../../../packages/ng/formly/src/lib/types/qualification.html","../../../packages/ng/formly/src/lib/wrappers/error.ts","../../../packages/ng/formly/src/lib/wrappers/error.html","../../../packages/ng/formly/src/lib/wrappers/helper.ts","../../../packages/ng/formly/src/lib/wrappers/helper.html","../../../packages/ng/formly/src/lib/wrappers/icon.ts","../../../packages/ng/formly/src/lib/wrappers/icon.html","../../../packages/ng/formly/src/lib/wrappers/radiosfield-layout.ts","../../../packages/ng/formly/src/lib/wrappers/radiosfield-layout.html","../../../packages/ng/formly/src/lib/wrappers/suffix.ts","../../../packages/ng/formly/src/lib/wrappers/suffix.html","../../../packages/ng/formly/src/lib/wrappers/textfield-layout.ts","../../../packages/ng/formly/src/lib/wrappers/textfield-layout.html","../../../packages/ng/formly/src/lib/wrappers/checkbox-layout.ts","../../../packages/ng/formly/src/lib/wrappers/checkbox-layout.html","../../../packages/ng/formly/src/lib/formly.config.ts","../../../packages/ng/formly/src/lib/formly.module.ts","../../../packages/ng/formly/src/public-api.ts","../../../packages/ng/formly/src/lucca-front-ng-formly.ts"],"sourcesContent":["import { Component } from '@angular/core';\r\nimport { FormControl } from '@angular/forms';\r\nimport { FieldType } from '@ngx-formly/core';\r\n\r\n@Component({\r\n\tselector: 'lu-formly-field-api',\r\n\tstyleUrls: ['formly-field.common.scss', 'select.scss'],\r\n\ttemplateUrl: './api.html',\r\n\t// changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\n// eslint-disable-next-line @angular-eslint/component-class-suffix\r\nexport class LuFormlyFieldApi extends FieldType {\r\n\tget _api() {\r\n\t\treturn this.to['api'] as string;\r\n\t}\r\n\tget _filters() {\r\n\t\treturn (this.to['filters'] || []) as string[];\r\n\t}\r\n\tget _orderBy() {\r\n\t\treturn this.to['orderBy'] as string;\r\n\t}\r\n\tget _sort() {\r\n\t\treturn this.to['sort'] as string;\r\n\t}\r\n\tget _standard() {\r\n\t\treturn (this.to['standard'] || 'v3') as 'v3' | 'v4';\r\n\t}\r\n\toverride readonly formControl: FormControl;\r\n\tfocus() {\r\n\t\tthis.to['_isFocused'] = true;\r\n\t}\r\n\tblur() {\r\n\t\tthis.to['_isFocused'] = false;\r\n\t}\r\n}\r\n","<lu-api-select\r\n\tclass=\"textfield-input\"\r\n\t[formControl]=\"formControl\"\r\n\t[formlyAttributes]=\"field\"\r\n\t[multiple]=\"to['multiple']\"\r\n\t(focus)=\"focus()\"\r\n\t(blur)=\"blur()\"\r\n\t[placeholder]=\"to.placeholder\"\r\n\t[api]=\"_api\"\r\n\t[filters]=\"_filters\"\r\n\t[orderBy]=\"_orderBy\"\r\n\t[sort]=\"_sort\"\r\n\t[standard]=\"_standard\"\r\n>\r\n</lu-api-select>\r\n<span [attr.for]=\"id\" class=\"textfield-label\">{{ to.label }}</span>\r\n","import { Component } from '@angular/core';\r\nimport { FormControl } from '@angular/forms';\r\nimport { FieldType } from '@ngx-formly/core';\r\n\r\n@Component({\r\n\tselector: 'lu-formly-field-establishment',\r\n\tstyleUrls: ['formly-field.common.scss', 'select.scss'],\r\n\ttemplateUrl: './establishment.html',\r\n})\r\n// eslint-disable-next-line @angular-eslint/component-class-suffix\r\nexport class LuFormlyFieldEstablishment extends FieldType {\r\n\toverride readonly formControl: FormControl;\r\n\tfocus() {\r\n\t\tthis.to['_isFocused'] = true;\r\n\t}\r\n\tblur() {\r\n\t\tthis.to['_isFocused'] = false;\r\n\t}\r\n}\r\n","<lu-establishment-select\r\n\tclass=\"textfield-input\"\r\n\t[formControl]=\"formControl\"\r\n\t[formlyAttributes]=\"field\"\r\n\t[multiple]=\"to['multiple']\"\r\n\t(focus)=\"focus()\"\r\n\t(blur)=\"blur()\"\r\n\t[placeholder]=\"to.placeholder\"\r\n\t[filters]=\"to['filters']\"\r\n\t[appInstanceId]=\"to['appInstanceId']\"\r\n\t[operations]=\"to['operations']\"\r\n>\r\n</lu-establishment-select>\r\n<span class=\"textfield-label\">{{ to.label }}</span>\r\n","import { Component } from '@angular/core';\r\nimport { FormControl } from '@angular/forms';\r\nimport { FieldType } from '@ngx-formly/core';\r\n\r\n@Component({\r\n\tselector: 'lu-formly-field-checkbox',\r\n\tstyleUrls: ['formly-field.common.scss'],\r\n\ttemplateUrl: './checkbox.html',\r\n\t// changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\n// eslint-disable-next-line @angular-eslint/component-class-suffix\r\nexport class LuFormlyFieldCheckbox extends FieldType {\r\n\toverride readonly formControl: FormControl;\r\n\tfocus() {\r\n\t\tthis.to['_isFocused'] = true;\r\n\t}\r\n\tblur() {\r\n\t\tthis.to['_isFocused'] = false;\r\n\t}\r\n}\r\n","<label class=\"checkbox\" [ngClass]=\"to['mod']\">\r\n\t<input class=\"checkbox-input\" type=\"checkbox\" [name]=\"to['name']\" [id]=\"id\" [formControl]=\"formControl\" [formlyAttributes]=\"field\" />\r\n\t<span class=\"checkbox-label\">{{to.label}}</span>\r\n</label>\r\n","import { Component } from '@angular/core';\r\nimport { FormControl } from '@angular/forms';\r\nimport { FieldType } from '@ngx-formly/core';\r\n\r\n@Component({\r\n\tselector: 'lu-formly-field-date',\r\n\tstyleUrls: ['formly-field.common.scss', 'select.scss'],\r\n\ttemplateUrl: './date.html',\r\n\t// changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\n// eslint-disable-next-line @angular-eslint/component-class-suffix\r\nexport class LuFormlyFieldDate extends FieldType {\r\n\toverride readonly formControl: FormControl;\r\n\tfocus() {\r\n\t\tthis.to['_isFocused'] = true;\r\n\t}\r\n\tblur() {\r\n\t\tthis.to['_isFocused'] = false;\r\n\t}\r\n}\r\n","<lu-date-select\r\n\tclass=\"textfield-input\"\r\n\t[formControl]=\"formControl\"\r\n\t[formlyAttributes]=\"field\"\r\n\t(focus)=\"focus()\"\r\n\t(blur)=\"blur()\"\r\n\t[placeholder]=\"to.placeholder\"\r\n\t[min]=\"to.min\"\r\n\t[max]=\"to.max\"\r\n></lu-date-select>\r\n<span class=\"textfield-label\">{{ to.label }}</span>\r\n","import { Component } from '@angular/core';\r\nimport { FormControl } from '@angular/forms';\r\nimport { FieldType } from '@ngx-formly/core';\r\n\r\n@Component({\r\n\tselector: 'lu-formly-field-department',\r\n\tstyleUrls: ['formly-field.common.scss', 'select.scss'],\r\n\ttemplateUrl: './department.html',\r\n\t// changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\n// eslint-disable-next-line @angular-eslint/component-class-suffix\r\nexport class LuFormlyFieldDepartment extends FieldType {\r\n\toverride readonly formControl: FormControl;\r\n\tfocus() {\r\n\t\tthis.to['_isFocused'] = true;\r\n\t}\r\n\tblur() {\r\n\t\tthis.to['_isFocused'] = false;\r\n\t}\r\n}\r\n","<lu-department-select\r\n\tclass=\"textfield-input\"\r\n\t[formControl]=\"formControl\"\r\n\t[formlyAttributes]=\"field\"\r\n\t[multiple]=\"to['multiple']\"\r\n\t(focus)=\"focus()\"\r\n\t(blur)=\"blur()\"\r\n\t[placeholder]=\"to.placeholder\"\r\n\t[filters]=\"to['filters']\"\r\n\t[appInstanceId]=\"to['appInstanceId']\"\r\n\t[operations]=\"to['operations']\"\r\n>\r\n</lu-department-select>\r\n<span class=\"textfield-label\">{{ to.label }}</span>\r\n","import { Component } from '@angular/core';\r\nimport { FormControl } from '@angular/forms';\r\nimport { FieldType } from '@ngx-formly/core';\r\n@Component({\r\n\tselector: 'lu-formly-field-input',\r\n\tstyleUrls: ['formly-field.common.scss'],\r\n\ttemplateUrl: './input.html',\r\n\t// changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\n// eslint-disable-next-line @angular-eslint/component-class-suffix\r\nexport class LuFormlyFieldInput extends FieldType {\r\n\tget type() {\r\n\t\treturn this.to.type || 'text';\r\n\t}\r\n\toverride readonly formControl: FormControl;\r\n\tfocus() {\r\n\t\tthis.to['_isFocused'] = true;\r\n\t}\r\n\tblur() {\r\n\t\tthis.to['_isFocused'] = false;\r\n\t}\r\n}\r\n","<ng-template [ngIf]=\"type !== 'number'\" [ngIfElse]=\"numberInput\">\r\n\t<input\r\n\t\t[type]=\"type\"\r\n\t\tclass=\"textfield-input\"\r\n\t\t[name]=\"to['name']\"\r\n\t\t[formControl]=\"formControl\"\r\n\t\t[formlyAttributes]=\"field\"\r\n\t\tluInput\r\n\t\t(focus)=\"focus()\"\r\n\t\t(blur)=\"blur()\"\r\n\t\t[placeholder]=\"to.placeholder\"\r\n\t/>\r\n</ng-template>\r\n<!-- type=\"number\" has to be static in order to have NumberValueAccessor instead of DefaultValueAccessor -->\r\n<ng-template #numberInput>\r\n\t<input\r\n\t\ttype=\"number\"\r\n\t\tclass=\"textfield-input\"\r\n\t\t[name]=\"to['name']\"\r\n\t\t[formControl]=\"formControl\"\r\n\t\t[formlyAttributes]=\"field\"\r\n\t\tluInput\r\n\t\t(focus)=\"focus()\"\r\n\t\t(blur)=\"blur()\"\r\n\t\t[placeholder]=\"to.placeholder\"\r\n\t/>\r\n</ng-template>\r\n<span class=\"textfield-label\">{{ to.label }}</span>\r\n","import { Component } from '@angular/core';\r\nimport { FormControl } from '@angular/forms';\r\nimport { FieldType } from '@ngx-formly/core';\r\n\r\n@Component({\r\n\tselector: 'lu-formly-field-radios',\r\n\tstyleUrls: ['formly-field.common.scss'],\r\n\ttemplateUrl: './radios.html',\r\n\t// changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\n// eslint-disable-next-line @angular-eslint/component-class-suffix\r\nexport class LuFormlyFieldRadios extends FieldType {\r\n\tget _options() {\r\n\t\treturn (this.to.options || []) as { value: unknown; label: unknown }[];\r\n\t}\r\n\toverride readonly formControl: FormControl;\r\n\tfocus() {\r\n\t\tthis.to['_isFocused'] = true;\r\n\t}\r\n\tblur() {\r\n\t\tthis.to['_isFocused'] = false;\r\n\t}\r\n}\r\n","<legend class=\"radiosfield-label\">{{to.label}}</legend>\r\n<div class=\"radiosfield-input\">\r\n\t<label *ngFor=\"let option of _options, let i = index\" class=\"radio\">\r\n\t\t<input\r\n\t\t\tclass=\"radio-input\"\r\n\t\t\ttype=\"radio\"\r\n\t\t\t[name]=\"to['name']\"\r\n\t\t\t[value]=\"option.value\"\r\n\t\t\t[id]=\"id + '_'+ i\"\r\n\t\t\t[formControl]=\"formControl\"\r\n\t\t\t[formlyAttributes]=\"field\"\r\n\t\t/>\r\n\t\t<span class=\"radio-label\">{{option.label}}</span>\r\n\t</label>\r\n</div>\r\n","import { Component } from '@angular/core';\r\nimport { FormControl } from '@angular/forms';\r\nimport { FieldType } from '@ngx-formly/core';\r\n\r\n@Component({\r\n\tselector: 'lu-formly-field-select',\r\n\tstyleUrls: ['formly-field.common.scss', 'select.scss'],\r\n\ttemplateUrl: './select.html',\r\n\t// changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\n// eslint-disable-next-line @angular-eslint/component-class-suffix\r\nexport class LuFormlyFieldSelect extends FieldType {\r\n\tget _options() {\r\n\t\treturn (this.to.options || []) as { value: unknown; label: unknown; name: string }[];\r\n\t}\r\n\toverride readonly formControl: FormControl;\r\n\tfocus() {\r\n\t\tthis.to['_isFocused'] = true;\r\n\t}\r\n\tblur() {\r\n\t\tthis.to['_isFocused'] = false;\r\n\t}\r\n}\r\n","<lu-select\r\n\tclass=\"textfield-input\"\r\n\t[formControl]=\"formControl\"\r\n\t[formlyAttributes]=\"field\"\r\n\t(focus)=\"focus()\"\r\n\t(blur)=\"blur()\"\r\n\t[multiple]=\"to['multiple']\"\r\n\t[placeholder]=\"to.placeholder\"\r\n>\r\n\t<ng-container *luDisplayer=\"let option\">\r\n\t\t<span [class.chip]=\"to['multiple']\" [class.mod-unkillable]=\"to['multiple']\">{{ option.name }}</span>\r\n\t</ng-container>\r\n\t<lu-option-picker>\r\n\t\t<lu-option *ngFor=\"let option of _options\" [value]=\"option\"> {{ option.name }} </lu-option>\r\n\t</lu-option-picker>\r\n\t<lu-input-clearer *ngIf=\"!to.required && !to['multiple']\"></lu-input-clearer>\r\n</lu-select>\r\n<span class=\"textfield-label\">{{ to.label }}</span>\r\n","import { Component } from '@angular/core';\r\nimport { FormControl } from '@angular/forms';\r\nimport { FieldType } from '@ngx-formly/core';\r\n\r\n@Component({\r\n\tselector: 'lu-formly-field-input',\r\n\tstyleUrls: ['formly-field.common.scss'],\r\n\ttemplateUrl: './textarea.html',\r\n\t// changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\n// eslint-disable-next-line @angular-eslint/component-class-suffix\r\nexport class LuFormlyFieldTextarea extends FieldType {\r\n\toverride readonly formControl: FormControl;\r\n\tfocus() {\r\n\t\tthis.to['_isFocused'] = true;\r\n\t}\r\n\tblur() {\r\n\t\tthis.to['_isFocused'] = false;\r\n\t}\r\n}\r\n","<textarea\r\n\tclass=\"textfield-input\"\r\n\t[name]=\"to['name']\"\r\n\t[formControl]=\"formControl\"\r\n\t[formlyAttributes]=\"field\"\r\n\tluInput\r\n\t(focus)=\"focus()\"\r\n\t(blur)=\"blur()\"\r\n\t[placeholder]=\"to.placeholder\"\r\n></textarea>\r\n<span class=\"textfield-label\">{{ to.label }}</span>\r\n","import { Component } from '@angular/core';\r\nimport { FormControl } from '@angular/forms';\r\nimport { FieldType } from '@ngx-formly/core';\r\n\r\n@Component({\r\n\tselector: 'lu-formly-field-user',\r\n\tstyleUrls: ['formly-field.common.scss', 'select.scss'],\r\n\ttemplateUrl: './user.html',\r\n\t// changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\n// eslint-disable-next-line @angular-eslint/component-class-suffix\r\nexport class LuFormlyFieldUser extends FieldType {\r\n\toverride readonly formControl: FormControl;\r\n\r\n\tfocus() {\r\n\t\tthis.to['_isFocused'] = true;\r\n\t}\r\n\tblur() {\r\n\t\tthis.to['_isFocused'] = false;\r\n\t}\r\n}\r\n","<lu-user-select\r\n\tclass=\"textfield-input\"\r\n\t[formControl]=\"formControl\"\r\n\t[formlyAttributes]=\"field\"\r\n\t[multiple]=\"to['multiple']\"\r\n\t(focus)=\"focus()\"\r\n\t(blur)=\"blur()\"\r\n\t[placeholder]=\"to.placeholder\"\r\n>\r\n</lu-user-select>\r\n<span class=\"textfield-label\">{{ to.label }}</span>\r\n","import { Component } from '@angular/core';\r\nimport { FormControl } from '@angular/forms';\r\nimport { FieldType } from '@ngx-formly/core';\r\n\r\n@Component({\r\n\tselector: 'lu-formly-field-qualification',\r\n\tstyleUrls: ['formly-field.common.scss', 'select.scss'],\r\n\ttemplateUrl: './qualification.html',\r\n})\r\n// eslint-disable-next-line @angular-eslint/component-class-suffix\r\nexport class LuFormlyFieldQualification extends FieldType {\r\n\toverride readonly formControl: FormControl;\r\n\tfocus() {\r\n\t\tthis.to['_isFocused'] = true;\r\n\t}\r\n\tblur() {\r\n\t\tthis.to['_isFocused'] = false;\r\n\t}\r\n}\r\n","<lu-qualification-select\r\n\tclass=\"textfield-input\"\r\n\t[formControl]=\"formControl\"\r\n\t[formlyAttributes]=\"field\"\r\n\t[multiple]=\"to['multiple']\"\r\n\t(focus)=\"focus()\"\r\n\t(blur)=\"blur()\"\r\n\t[placeholder]=\"to.placeholder\"\r\n\t[filters]=\"to['filters']\"\r\n>\r\n</lu-qualification-select>\r\n<span class=\"textfield-label\">{{ to.label }}</span>\r\n","import { ChangeDetectionStrategy, Component, Input, ViewChild, ViewContainerRef } from '@angular/core';\r\nimport { FormControl } from '@angular/forms';\r\nimport { FieldWrapper, FormlyConfig, FormlyFieldConfig } from '@ngx-formly/core';\r\n\r\n// wrapper\r\n@Component({\r\n\tselector: 'lu-formly-wrapper-error',\r\n\tstyleUrls: ['flex-layout.scss'],\r\n\ttemplateUrl: './error.html',\r\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\n// eslint-disable-next-line @angular-eslint/component-class-suffix\r\nexport class LuFormlyWrapperError extends FieldWrapper {\r\n\t@ViewChild('fieldComponent', { read: ViewContainerRef, static: true })\r\n\toverride fieldComponent: ViewContainerRef;\r\n\r\n\toverride readonly formControl: FormControl;\r\n\r\n\tget validationId() {\r\n\t\treturn this.field.id + '-message';\r\n\t}\r\n}\r\n\r\n// component that display the right error message\r\n@Component({\r\n\tselector: 'lu-formly-error-message',\r\n\ttemplate: `<div class=\"textfield-messages-error\" *ngFor=\"let message of errorMessages\">\r\n\t\t{{ message }}\r\n\t</div>`,\r\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\n// eslint-disable-next-line @angular-eslint/component-class-suffix\r\nexport class LuFormlyErrorMessage {\r\n\t@Input() fieldForm: FormControl;\r\n\t@Input() field: FormlyFieldConfig;\r\n\r\n\tget errorMessages(): string[] {\r\n\t\tconst messages: string[] = [];\r\n\t\tif (this.fieldForm.errors) {\r\n\t\t\tObject.keys(this.fieldForm.errors).forEach((key) => {\r\n\t\t\t\tif (this.field.validation?.messages?.[key]) {\r\n\t\t\t\t\tmessages.push(this.field.validation.messages[key] as string);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn messages;\r\n\t}\r\n}\r\n\r\n// run to know when to add said wrapper\r\nexport class TemplateError {\r\n\trun(fc: FormlyConfig) {\r\n\t\tfc.templateManipulators.postWrapper.push((field: FormlyFieldConfig) => {\r\n\t\t\tif (field && field.validation) {\r\n\t\t\t\treturn 'error';\r\n\t\t\t}\r\n\t\t\treturn '';\r\n\t\t});\r\n\t}\r\n}\r\n","<ng-container #fieldComponent></ng-container>\r\n<div class=\"textfield-messages\" *ngIf=\"formControl.touched && formControl.invalid\" [id]=\"validationId\">\r\n\t<lu-formly-error-message [fieldForm]=\"formControl\" [field]=\"field\"></lu-formly-error-message>\r\n</div>\r\n","import { ChangeDetectionStrategy, Component, ViewChild, ViewContainerRef } from '@angular/core';\r\nimport { FieldWrapper, FormlyConfig, FormlyFieldConfig } from '@ngx-formly/core';\r\n\r\n// wrapper component\r\n@Component({\r\n\tselector: 'lu-formly-wrapper-helper',\r\n\tstyleUrls: ['flex-layout.scss'],\r\n\ttemplateUrl: './helper.html',\r\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\n// eslint-disable-next-line @angular-eslint/component-class-suffix\r\nexport class LuFormlyWrapperHelper extends FieldWrapper {\r\n\t@ViewChild('fieldComponent', { read: ViewContainerRef, static: true })\r\n\toverride fieldComponent: ViewContainerRef;\r\n}\r\n// run to know when to add said wrapper\r\nexport class TemplateHelper {\r\n\trun(fc: FormlyConfig) {\r\n\t\tfc.templateManipulators.postWrapper.push((field: FormlyFieldConfig) => {\r\n\t\t\tif (field && field.templateOptions && field.templateOptions['helper']) {\r\n\t\t\t\treturn 'helper';\r\n\t\t\t}\r\n\t\t\treturn '';\r\n\t\t});\r\n\t}\r\n}\r\n","<ng-container #fieldComponent></ng-container>\r\n<div class=\"textfield-messages mod-helper\">\r\n\t<div class=\"textfield-messages-helper\">{{ to['helper'] }}</div>\r\n</div>\r\n","import { ChangeDetectionStrategy, Component, ViewChild, ViewContainerRef } from '@angular/core';\r\nimport { FieldWrapper, FormlyConfig, FormlyFieldConfig } from '@ngx-formly/core';\r\n\r\n// wrapper component\r\n@Component({\r\n\tselector: 'lu-formly-wrapper-suffix',\r\n\tstyleUrls: ['flex-layout.scss', 'suffixes.common.scss'],\r\n\ttemplateUrl: './icon.html',\r\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\n// eslint-disable-next-line @angular-eslint/component-class-suffix\r\nexport class LuFormlyWrapperIcon extends FieldWrapper {\r\n\t@ViewChild('fieldComponent', { read: ViewContainerRef, static: true })\r\n\toverride fieldComponent: ViewContainerRef;\r\n}\r\n// run to know when to add said wrapper\r\nexport class TemplateIcon {\r\n\trun(fc: FormlyConfig) {\r\n\t\tfc.templateManipulators.postWrapper.push((field: FormlyFieldConfig) => {\r\n\t\t\t// if (field && field.type === 'date') {\r\n\t\t\t// \tfield.templateOptions.icon = 'calendar';\r\n\t\t\t// \treturn 'icon';\r\n\t\t\t// }\r\n\t\t\t// if (field && field.type === 'api') {\r\n\t\t\t// \tfield.templateOptions.icon = 'search';\r\n\t\t\t// \treturn 'icon';\r\n\t\t\t// }\r\n\t\t\tif (field && field.templateOptions && field.templateOptions['icon']) {\r\n\t\t\t\treturn 'icon';\r\n\t\t\t}\r\n\t\t\treturn '';\r\n\t\t});\r\n\t}\r\n}\r\n","<ng-container #fieldComponent></ng-container>\r\n<span aria-hidden=\"true\" class=\"textfield-suffix mod-icon lucca-icon\">{{ to['icon'] }}</span>\r\n","import { ChangeDetectionStrategy, Component, ViewChild, ViewContainerRef } from '@angular/core';\r\nimport { FieldWrapper } from '@ngx-formly/core';\r\n\r\n// wrapper component\r\n@Component({\r\n\tselector: 'lu-formly-wrapper-radiosfield-layout',\r\n\tstyleUrls: ['flex-layout.scss'],\r\n\ttemplateUrl: './radiosfield-layout.html',\r\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\n// eslint-disable-next-line @angular-eslint/component-class-suffix\r\nexport class LuFormlyWrapperRadiosfieldLayout extends FieldWrapper {\r\n\t@ViewChild('fieldComponent', { read: ViewContainerRef, static: true })\r\n\toverride fieldComponent: ViewContainerRef;\r\n\r\n\tget mod() {\r\n\t\treturn (this.to['mod'] || '') as string;\r\n\t}\r\n\r\n\tget isRequired() {\r\n\t\treturn !!this.to && !!this.to.required ? 'is-required' : '';\r\n\t}\r\n\r\n\tget isFocused() {\r\n\t\treturn !!this.to && this.to['_isFocused'] ? 'is-focused' : '';\r\n\t}\r\n\r\n\tget isError() {\r\n\t\treturn this.formControl.invalid && this.formControl.touched ? 'is-error' : '';\r\n\t}\r\n}\r\n","<div class=\"fieldsetWrapper\">\r\n\t<fieldset class=\"radiosfield\" [ngClass]=\"[mod, isRequired, isFocused, isError]\">\r\n\t\t<ng-container #fieldComponent></ng-container>\r\n\t</fieldset>\r\n</div>\r\n","import { ChangeDetectionStrategy, Component, ViewChild, ViewContainerRef } from '@angular/core';\r\nimport { FieldWrapper, FormlyConfig, FormlyFieldConfig } from '@ngx-formly/core';\r\n\r\n// wrapper component\r\n@Component({\r\n\tselector: 'lu-formly-wrapper-suffix',\r\n\tstyleUrls: ['flex-layout.scss', 'suffixes.common.scss'],\r\n\ttemplateUrl: './suffix.html',\r\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\n// eslint-disable-next-line @angular-eslint/component-class-suffix\r\nexport class LuFormlyWrapperSuffix extends FieldWrapper {\r\n\t@ViewChild('fieldComponent', { read: ViewContainerRef, static: true })\r\n\toverride fieldComponent: ViewContainerRef;\r\n}\r\n// run to know when to add said wrapper\r\nexport class TemplateSuffix {\r\n\trun(fc: FormlyConfig) {\r\n\t\tfc.templateManipulators.postWrapper.push((field: FormlyFieldConfig) => {\r\n\t\t\tif (field?.templateOptions?.['suffix'] && !field?.templateOptions?.['icon']) {\r\n\t\t\t\treturn 'suffix';\r\n\t\t\t}\r\n\t\t\treturn '';\r\n\t\t});\r\n\t}\r\n}\r\n","<ng-container #fieldComponent></ng-container>\r\n<span class=\"textfield-suffix\">{{ to['suffix'] }}</span>\r\n","import { ChangeDetectionStrategy, Component, ViewChild, ViewContainerRef } from '@angular/core';\r\nimport { FieldWrapper } from '@ngx-formly/core';\r\n\r\n// wrapper component\r\n@Component({\r\n\tselector: 'lu-formly-wrapper-layout',\r\n\tstyleUrls: ['flex-layout.scss'],\r\n\ttemplateUrl: './textfield-layout.html',\r\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\n// eslint-disable-next-line @angular-eslint/component-class-suffix\r\nexport class LuFormlyWrapperTextfieldLayout extends FieldWrapper {\r\n\t@ViewChild('fieldComponent', { read: ViewContainerRef, static: true })\r\n\toverride fieldComponent: ViewContainerRef;\r\n\r\n\tget mod() {\r\n\t\treturn (this.to['mod'] || '') as string;\r\n\t}\r\n\r\n\tget modMultiline() {\r\n\t\treturn !!this.field && this.field.type === 'textarea' ? 'mod-multiline' : '';\r\n\t}\r\n\r\n\tget modWithSuffix() {\r\n\t\treturn !!this.to && !!this.to['suffix'] ? 'mod-withSuffix' : '';\r\n\t}\r\n\r\n\tget isRequired() {\r\n\t\treturn !!this.to && !!this.to.required ? 'is-required' : '';\r\n\t}\r\n\r\n\tget isDisabled() {\r\n\t\treturn !!this.to && !!this.to.disabled ? 'is-disabled' : '';\r\n\t}\r\n\r\n\tget isFocused() {\r\n\t\treturn !!this.to && this.to['_isFocused'] ? 'is-focused' : '';\r\n\t}\r\n\r\n\tget isError() {\r\n\t\treturn this.formControl.invalid && this.formControl.touched ? 'is-error' : '';\r\n\t}\r\n}\r\n","<label class=\"textfield\" [ngClass]=\"[mod, modWithSuffix, modMultiline, isRequired, isFocused, isError, isDisabled]\">\r\n\t<ng-container #fieldComponent></ng-container>\r\n</label>\r\n","import { ChangeDetectionStrategy, Component, ViewChild, ViewContainerRef } from '@angular/core';\r\nimport { FieldWrapper } from '@ngx-formly/core';\r\n\r\n// wrapper component\r\n@Component({\r\n\tselector: 'lu-formly-wrapper-checkbox-layout',\r\n\tstyleUrls: ['flex-layout.scss'],\r\n\ttemplateUrl: './checkbox-layout.html',\r\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\n// eslint-disable-next-line @angular-eslint/component-class-suffix\r\nexport class LuFormlyWrapperCheckboxLayout extends FieldWrapper {\r\n\t@ViewChild('fieldComponent', { read: ViewContainerRef, static: true })\r\n\toverride fieldComponent: ViewContainerRef;\r\n\r\n\tget mod() {\r\n\t\treturn (this.to['mod'] || '') as string;\r\n\t}\r\n\r\n\tget isRequired() {\r\n\t\treturn !!this.to && !!this.to.required ? 'is-required' : '';\r\n\t}\r\n\r\n\tget isFocused() {\r\n\t\treturn !!this.to && this.to['_isFocused'] ? 'is-focused' : '';\r\n\t}\r\n\r\n\tget isError() {\r\n\t\treturn this.formControl.invalid && this.formControl.touched ? 'is-error' : '';\r\n\t}\r\n}\r\n","<div class=\"fieldsetWrapper\">\r\n\t<fieldset class=\"checkboxesfield\" [ngClass]=\"[mod, isRequired, isFocused, isError]\">\r\n\t\t<ng-container #fieldComponent></ng-container>\r\n\t</fieldset>\r\n</div>\r\n","import { ConfigOption } from '@ngx-formly/core';\r\n// inputs\r\nimport {\r\n\tLuFormlyFieldApi,\r\n\tLuFormlyFieldCheckbox,\r\n\tLuFormlyFieldDate,\r\n\tLuFormlyFieldDepartment,\r\n\tLuFormlyFieldEstablishment,\r\n\tLuFormlyFieldInput,\r\n\tLuFormlyFieldQualification,\r\n\tLuFormlyFieldRadios,\r\n\tLuFormlyFieldSelect,\r\n\tLuFormlyFieldTextarea,\r\n\tLuFormlyFieldUser,\r\n} from './types/index';\r\n// wrappers\r\nimport {\r\n\tLuFormlyWrapperCheckboxLayout,\r\n\tLuFormlyWrapperError,\r\n\tLuFormlyWrapperHelper,\r\n\tLuFormlyWrapperIcon,\r\n\t// LuFormlyErrorMessage,\r\n\tLuFormlyWrapperRadiosfieldLayout,\r\n\tLuFormlyWrapperSuffix,\r\n\tLuFormlyWrapperTextfieldLayout,\r\n\tTemplateError,\r\n\tTemplateHelper,\r\n\tTemplateIcon,\r\n\tTemplateSuffix,\r\n} from './wrappers/index';\r\n\r\nexport const LU_FORMLY_CONFIG: ConfigOption = {\r\n\ttypes: [\r\n\t\t{\r\n\t\t\tname: 'input',\r\n\t\t\tcomponent: LuFormlyFieldInput,\r\n\t\t\twrappers: ['textfield-layout'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 'radio',\r\n\t\t\tcomponent: LuFormlyFieldRadios,\r\n\t\t\twrappers: ['radiosfield-layout'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 'checkbox',\r\n\t\t\tcomponent: LuFormlyFieldCheckbox,\r\n\t\t\twrappers: ['checkbox-layout'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 'date',\r\n\t\t\tcomponent: LuFormlyFieldDate,\r\n\t\t\twrappers: ['textfield-layout'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 'textarea',\r\n\t\t\tcomponent: LuFormlyFieldTextarea,\r\n\t\t\twrappers: ['textfield-layout'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 'select',\r\n\t\t\tcomponent: LuFormlyFieldSelect,\r\n\t\t\twrappers: ['textfield-layout'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 'user',\r\n\t\t\tcomponent: LuFormlyFieldUser,\r\n\t\t\twrappers: ['textfield-layout'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 'api',\r\n\t\t\tcomponent: LuFormlyFieldApi,\r\n\t\t\twrappers: ['textfield-layout'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 'department',\r\n\t\t\tcomponent: LuFormlyFieldDepartment,\r\n\t\t\twrappers: ['textfield-layout'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 'establishment',\r\n\t\t\tcomponent: LuFormlyFieldEstablishment,\r\n\t\t\twrappers: ['textfield-layout'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 'qualification',\r\n\t\t\tcomponent: LuFormlyFieldQualification,\r\n\t\t\twrappers: ['textfield-layout'],\r\n\t\t},\r\n\t],\r\n\twrappers: [\r\n\t\t{ name: 'helper', component: LuFormlyWrapperHelper },\r\n\t\t{ name: 'checkbox-layout', component: LuFormlyWrapperCheckboxLayout },\r\n\t\t{ name: 'radiosfield-layout', component: LuFormlyWrapperRadiosfieldLayout },\r\n\t\t{ name: 'textfield-layout', component: LuFormlyWrapperTextfieldLayout },\r\n\t\t{ name: 'suffix', component: LuFormlyWrapperSuffix },\r\n\t\t{ name: 'icon', component: LuFormlyWrapperIcon },\r\n\t\t{ name: 'error', component: LuFormlyWrapperError },\r\n\t],\r\n\tmanipulators: [\r\n\t\t{ class: TemplateError, method: 'run' }, // fifth\r\n\t\t{ class: TemplateHelper, method: 'run' }, // fourth\r\n\t\t{ class: TemplateSuffix, method: 'run' }, // third\r\n\t\t{ class: TemplateIcon, method: 'run' }, // second\r\n\t],\r\n};\r\n","import { CommonModule } from '@angular/common';\r\nimport { NgModule } from '@angular/core';\r\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\r\nimport { LuApiModule } from '@lucca-front/ng/api';\r\nimport { LuDateModule } from '@lucca-front/ng/date';\r\nimport { LuDepartmentModule } from '@lucca-front/ng/department';\r\nimport { LuEstablishmentModule } from '@lucca-front/ng/establishment';\r\nimport { LuInputModule } from '@lucca-front/ng/input';\r\nimport { LuOptionModule } from '@lucca-front/ng/option';\r\nimport { LuQualificationModule } from '@lucca-front/ng/qualification';\r\nimport { LuSelectModule } from '@lucca-front/ng/select';\r\nimport { LuUserModule } from '@lucca-front/ng/user';\r\nimport { FormlyModule } from '@ngx-formly/core';\r\nimport { LU_FORMLY_CONFIG } from './formly.config';\r\nimport {\r\n\tLuFormlyFieldApi,\r\n\tLuFormlyFieldCheckbox,\r\n\tLuFormlyFieldDate,\r\n\tLuFormlyFieldDepartment,\r\n\tLuFormlyFieldEstablishment,\r\n\tLuFormlyFieldInput,\r\n\tLuFormlyFieldRadios,\r\n\tLuFormlyFieldSelect,\r\n\tLuFormlyFieldTextarea,\r\n\tLuFormlyFieldUser,\r\n\tLuFormlyFieldQualification,\r\n} from './types/index';\r\nimport {\r\n\tLuFormlyErrorMessage,\r\n\tLuFormlyWrapperCheckboxLayout,\r\n\tLuFormlyWrapperError,\r\n\tLuFormlyWrapperHelper,\r\n\tLuFormlyWrapperIcon,\r\n\tLuFormlyWrapperRadiosfieldLayout,\r\n\tLuFormlyWrapperSuffix,\r\n\tLuFormlyWrapperTextfieldLayout,\r\n} from './wrappers/index';\r\n\r\n/** HACK to avoid a 'Function calls are not supported in decorators' error */\r\nexport const LuFormlyChild = FormlyModule.forChild(LU_FORMLY_CONFIG);\r\n\r\n@NgModule({\r\n\tdeclarations: [\r\n\t\tLuFormlyErrorMessage,\r\n\r\n\t\tLuFormlyFieldInput,\r\n\t\tLuFormlyFieldDate,\r\n\t\tLuFormlyFieldTextarea,\r\n\t\tLuFormlyFieldSelect,\r\n\t\tLuFormlyFieldUser,\r\n\t\tLuFormlyFieldApi,\r\n\t\tLuFormlyFieldDepartment,\r\n\t\tLuFormlyFieldEstablishment,\r\n\t\tLuFormlyFieldQualification,\r\n\t\tLuFormlyFieldRadios,\r\n\t\tLuFormlyFieldCheckbox,\r\n\r\n\t\tLuFormlyWrapperHelper,\r\n\t\tLuFormlyWrapperCheckboxLayout,\r\n\t\tLuFormlyWrapperTextfieldLayout,\r\n\t\tLuFormlyWrapperRadiosfieldLayout,\r\n\t\tLuFormlyWrapperSuffix,\r\n\t\tLuFormlyWrapperIcon,\r\n\t\tLuFormlyWrapperError,\r\n\t],\r\n\timports: [\r\n\t\tCommonModule,\r\n\t\tFormsModule,\r\n\t\tReactiveFormsModule,\r\n\r\n\t\tLuSelectModule,\r\n\t\tLuOptionModule,\r\n\t\tLuUserModule,\r\n\t\tLuInputModule,\r\n\t\tLuApiModule,\r\n\t\tLuDepartmentModule,\r\n\t\tLuEstablishmentModule,\r\n\t\tLuQualificationModule,\r\n\t\tLuDateModule,\r\n\r\n\t\tLuFormlyChild,\r\n\t],\r\n})\r\nexport class LuFormlyModule {}\r\n","/*\r\n * Public API Surface of formly\r\n */\r\n\r\nexport * from './index';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA;MACa,gBAAiB,SAAQ,SAAS;IAC9C,IAAI,IAAI;QACP,OAAO,IAAI,CAAC,EAAE,CAAC,KAAK,CAAW,CAAC;KAChC;IACD,IAAI,QAAQ;QACX,QAAQ,IAAI,CAAC,EAAE,CAAC,SAAS,CAAC,IAAI,EAAE,EAAc;KAC9C;IACD,IAAI,QAAQ;QACX,OAAO,IAAI,CAAC,EAAE,CAAC,SAAS,CAAW,CAAC;KACpC;IACD,IAAI,KAAK;QACR,OAAO,IAAI,CAAC,EAAE,CAAC,MAAM,CAAW,CAAC;KACjC;IACD,IAAI,SAAS;QACZ,QAAQ,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,IAAI,IAAI,EAAiB;KACpD;IAED,KAAK;QACJ,IAAI,CAAC,EAAE,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC;KAC7B;IACD,IAAI;QACH,IAAI,CAAC,EAAE,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC;KAC9B;;6GAtBW,gBAAgB;iGAAhB,gBAAgB,kFCX7B,qdAgBA;2FDLa,gBAAgB;kBAP5B,SAAS;+BACC,qBAAqB;;;AEIhC;MACa,0BAA2B,SAAQ,SAAS;IAExD,KAAK;QACJ,IAAI,CAAC,EAAE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C1B,mBAAmB;QACnB,qBAAqB;QAErB,qBAAqB;QACrB,6BAA6B;QAC7B,8BAA8B;QAC9B,gCAAgC;QAChC,qBAAqB;QACrB,mBAAmB;QACnB,oBAAoB,aAGpB,YAAY;QACZ,WAAW;QACX,mBAAmB;QAEnB,cAAc;QACd,cAAc;QACd,YAAY;QACZ,aAAa;QACb,WAAW;QACX,kBAAkB;QAClB,qBAAqB;QACrB,qBAAqB;QACrB,YAAY;4GAKD,cAAc,YAlBjB;YACR,YAAY;YACZ,WAAW;YACX,mBAAmB;YAEnB,cAAc;YACd,cAAc;YACd,YAAY;YACZ,aAAa;YACb,WAAW;YACX,kBAAkB;YAClB,qBAAqB;YACrB,qBAAqB;YACrB,YAAY;YAEZ,aAAa;SACb;2FAEW,cAAc;kBA1C1B,QAAQ;mBAAC;oBACT,YAAY,EAAE;wBACb,oBAAoB;wBAEpB,kBAAkB;wBAClB,iBAAiB;wBACjB,qBAAqB;wBACrB,mBAAmB;wBACnB,iBAAiB;wBACjB,gBAAgB;wBAChB,uBAAuB;wBACvB,0BAA0B;wBAC1B,0BAA0B;wBAC1B,mBAAmB;wBACnB,qBAAqB;wBAErB,qBAAqB;wBACrB,6BAA6B;wBAC7B,8BAA8B;wBAC9B,gCAAgC;wBAChC,qBAAqB;wBACrB,mBAAmB;wBACnB,oBAAoB;qBACpB;oBACD,OAAO,EAAE;wBACR,YAAY;wBACZ,WAAW;wBACX,mBAAmB;wBAEnB,cAAc;wBACd,cAAc;wBACd,YAAY;wBACZ,aAAa;wBACb,WAAW;wBACX,kBAAkB;wBAClB,qBAAqB;wBACrB,qBAAqB;wBACrB,YAAY;wBAEZ,aAAa;qBACb;iBACD;;;AClFD;;;;ACAA;;;;;;"}
|
|
@@ -29,6 +29,7 @@ class LuOptionItemComponent extends ALuOptionItem {
|
|
|
29
29
|
this._selected = false;
|
|
30
30
|
this._highlighted = false;
|
|
31
31
|
this.onSelect = new EventEmitter();
|
|
32
|
+
this._disabled = false;
|
|
32
33
|
}
|
|
33
34
|
get selected() {
|
|
34
35
|
return this._selected;
|
|
@@ -49,17 +50,25 @@ class LuOptionItemComponent extends ALuOptionItem {
|
|
|
49
50
|
}
|
|
50
51
|
}
|
|
51
52
|
select() {
|
|
52
|
-
this.
|
|
53
|
+
if (!this.disabled) {
|
|
54
|
+
this.onSelect.emit(this);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
get disabled() {
|
|
58
|
+
return this._disabled;
|
|
59
|
+
}
|
|
60
|
+
set disabled(d) {
|
|
61
|
+
this._disabled = d;
|
|
53
62
|
}
|
|
54
63
|
}
|
|
55
64
|
LuOptionItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: LuOptionItemComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
56
|
-
LuOptionItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: LuOptionItemComponent, selector: "lu-option", inputs: { selected: "selected", highlighted: "highlighted", value: "value" }, outputs: { onSelect: "onSelect" }, providers: [
|
|
65
|
+
LuOptionItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: LuOptionItemComponent, selector: "lu-option", inputs: { selected: "selected", highlighted: "highlighted", value: "value", disabled: "disabled" }, outputs: { onSelect: "onSelect" }, providers: [
|
|
57
66
|
{
|
|
58
67
|
provide: ALuOptionItem,
|
|
59
68
|
useExisting: forwardRef(() => LuOptionItemComponent),
|
|
60
69
|
multi: true,
|
|
61
70
|
},
|
|
62
|
-
], viewQueries: [{ propertyName: "element", first: true, predicate: ["element"], descendants: true, read: ElementRef, static: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"optionItem\" #element>\r\n\t<div
|
|
71
|
+
], viewQueries: [{ propertyName: "element", first: true, predicate: ["element"], descendants: true, read: ElementRef, static: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"optionItem\" #element>\r\n\t<div\r\n\t\tclass=\"optionItem-value\"\r\n\t\t(click)=\"select()\"\r\n\t\t[class.is-selected]=\"selected\"\r\n\t\t[class.is-highlighted]=\"highlighted\"\r\n\t\t[class.is-disabled]=\"disabled\"\r\n\t>\r\n\t\t<ng-content></ng-content>\r\n\t</div>\r\n</div>\r\n", styles: [":host{display:block}.optionItem{position:relative}.optionItem-value{display:block;cursor:pointer;padding:.5rem;padding:var(--components-options-item-padding-vertical) var(--components-options-item-padding-horizontal);transition:background 50ms ease}.optionItem-value.is-selected{background:var(--palettes-primary-100);background:var(--commons-selected)}.optionItem-value:hover,.optionItem-value.is-highlighted,.optionItem-value.is-focus{background:var(--palettes-primary-50);background:var(--commons-highlight)}:host-context(.lu-select-value) .optionItem-value{padding:0;overflow:hidden;text-overflow:ellipsis}:host-context(.lu-select-value) .optionItem-value:hover,:host-context(.lu-select-value) .optionItem-value.is-focus,:host-context(.lu-select-value) .optionItem-value.is-highlighted{background:inherit}:host-context(.mod-multiple) .optionItem-value{position:relative;padding-left:2rem;padding-left:var(--components-options-item-multiple-padding)}:host-context(.mod-multiple) .optionItem-value:after,:host-context(.mod-multiple) .optionItem-value:before{display:block;position:absolute;left:.5rem;left:var(--components-options-checkbox-left);top:50%;transform:translateY(-50%)}:host-context(.mod-multiple) .optionItem-value:before{border-radius:var(--commons-border-radius);border-radius:var(--components-options-checkbox-border-radius);box-shadow:inset 0 0 0 2px var(--palettes-grey-color);box-shadow:inset 0 0 0 2px var(--components-options-checkbox-border-color);content:\"\";display:block;height:1rem;height:var(--components-options-checkbox-size);transition:all .1s ease;width:1rem;width:var(--components-options-checkbox-size)}:host-context(.mod-multiple) .optionItem-value:after{color:#fff;font-size:.8rem;content:\"\\e91a\";font-family:Lucca icons;display:inline-block;vertical-align:text-bottom;font-style:normal;line-height:1rem;line-height:var(--components-options-checkbox-size);padding-top:.05rem;position:absolute;text-align:center;transform:translateY(-50%) scale(0);transition:all .1s ease;width:1rem;width:var(--components-options-checkbox-size)}:host-context(.mod-multiple) .optionItem-value.is-selected:before{background-color:#f60;background-color:var(--components-options-checkbox-color);box-shadow:inset 0 0 0 2px #f60;box-shadow:inset 0 0 0 2px var(--components-options-checkbox-color)}:host-context(.mod-multiple) .optionItem-value.is-selected:after{transform:translateY(-50%) scale(1)}:host-context(.mod-multiple) .optionItem-value:hover:before{box-shadow:inset 0 0 0 2px #f60;box-shadow:inset 0 0 0 2px var(--components-options-checkbox-color)}:host-context(.mod-multiple).establishmentOption .optionItem-value{position:relative;padding-left:2.5rem;padding-left:calc(2 * var(--components-options-item-padding-horizontal) + var(--components-options-checkbox-size) + var(--spacings-smaller))}:host-context(.mod-multiple).establishmentOption .optionItem-value:before,:host-context(.mod-multiple).establishmentOption .optionItem-value:after{left:1rem;left:calc(2 * var(--components-options-item-padding-horizontal))}.is-disabled{color:#96a6c5;color:var(--palettes-grey-500);cursor:default;-webkit-user-select:none;user-select:none}.is-disabled.is-selected{background-color:#e0e7f6;background-color:var(--palettes-grey-100)}.is-disabled:hover{background:inherit}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
63
72
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: LuOptionItemComponent, decorators: [{
|
|
64
73
|
type: Component,
|
|
65
74
|
args: [{ selector: 'lu-option', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
@@ -68,7 +77,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
68
77
|
useExisting: forwardRef(() => LuOptionItemComponent),
|
|
69
78
|
multi: true,
|
|
70
79
|
},
|
|
71
|
-
], template: "<div class=\"optionItem\" #element>\r\n\t<div
|
|
80
|
+
], template: "<div class=\"optionItem\" #element>\r\n\t<div\r\n\t\tclass=\"optionItem-value\"\r\n\t\t(click)=\"select()\"\r\n\t\t[class.is-selected]=\"selected\"\r\n\t\t[class.is-highlighted]=\"highlighted\"\r\n\t\t[class.is-disabled]=\"disabled\"\r\n\t>\r\n\t\t<ng-content></ng-content>\r\n\t</div>\r\n</div>\r\n", styles: [":host{display:block}.optionItem{position:relative}.optionItem-value{display:block;cursor:pointer;padding:.5rem;padding:var(--components-options-item-padding-vertical) var(--components-options-item-padding-horizontal);transition:background 50ms ease}.optionItem-value.is-selected{background:var(--palettes-primary-100);background:var(--commons-selected)}.optionItem-value:hover,.optionItem-value.is-highlighted,.optionItem-value.is-focus{background:var(--palettes-primary-50);background:var(--commons-highlight)}:host-context(.lu-select-value) .optionItem-value{padding:0;overflow:hidden;text-overflow:ellipsis}:host-context(.lu-select-value) .optionItem-value:hover,:host-context(.lu-select-value) .optionItem-value.is-focus,:host-context(.lu-select-value) .optionItem-value.is-highlighted{background:inherit}:host-context(.mod-multiple) .optionItem-value{position:relative;padding-left:2rem;padding-left:var(--components-options-item-multiple-padding)}:host-context(.mod-multiple) .optionItem-value:after,:host-context(.mod-multiple) .optionItem-value:before{display:block;position:absolute;left:.5rem;left:var(--components-options-checkbox-left);top:50%;transform:translateY(-50%)}:host-context(.mod-multiple) .optionItem-value:before{border-radius:var(--commons-border-radius);border-radius:var(--components-options-checkbox-border-radius);box-shadow:inset 0 0 0 2px var(--palettes-grey-color);box-shadow:inset 0 0 0 2px var(--components-options-checkbox-border-color);content:\"\";display:block;height:1rem;height:var(--components-options-checkbox-size);transition:all .1s ease;width:1rem;width:var(--components-options-checkbox-size)}:host-context(.mod-multiple) .optionItem-value:after{color:#fff;font-size:.8rem;content:\"\\e91a\";font-family:Lucca icons;display:inline-block;vertical-align:text-bottom;font-style:normal;line-height:1rem;line-height:var(--components-options-checkbox-size);padding-top:.05rem;position:absolute;text-align:center;transform:translateY(-50%) scale(0);transition:all .1s ease;width:1rem;width:var(--components-options-checkbox-size)}:host-context(.mod-multiple) .optionItem-value.is-selected:before{background-color:#f60;background-color:var(--components-options-checkbox-color);box-shadow:inset 0 0 0 2px #f60;box-shadow:inset 0 0 0 2px var(--components-options-checkbox-color)}:host-context(.mod-multiple) .optionItem-value.is-selected:after{transform:translateY(-50%) scale(1)}:host-context(.mod-multiple) .optionItem-value:hover:before{box-shadow:inset 0 0 0 2px #f60;box-shadow:inset 0 0 0 2px var(--components-options-checkbox-color)}:host-context(.mod-multiple).establishmentOption .optionItem-value{position:relative;padding-left:2.5rem;padding-left:calc(2 * var(--components-options-item-padding-horizontal) + var(--components-options-checkbox-size) + var(--spacings-smaller))}:host-context(.mod-multiple).establishmentOption .optionItem-value:before,:host-context(.mod-multiple).establishmentOption .optionItem-value:after{left:1rem;left:calc(2 * var(--components-options-item-padding-horizontal))}.is-disabled{color:#96a6c5;color:var(--palettes-grey-500);cursor:default;-webkit-user-select:none;user-select:none}.is-disabled.is-selected{background-color:#e0e7f6;background-color:var(--palettes-grey-100)}.is-disabled:hover{background:inherit}\n"] }]
|
|
72
81
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { selected: [{
|
|
73
82
|
type: Input
|
|
74
83
|
}], highlighted: [{
|
|
@@ -77,6 +86,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
77
86
|
type: Input
|
|
78
87
|
}], onSelect: [{
|
|
79
88
|
type: Output
|
|
89
|
+
}], disabled: [{
|
|
90
|
+
type: Input
|
|
80
91
|
}], element: [{
|
|
81
92
|
type: ViewChild,
|
|
82
93
|
args: ['element', { read: ElementRef, static: true }]
|
|
@@ -132,6 +143,7 @@ class LuTreeOptionItemComponent extends ALuTreeOptionItem {
|
|
|
132
143
|
this.onSelectChildren = new EventEmitter();
|
|
133
144
|
this._selected = false;
|
|
134
145
|
this._highlighted = false;
|
|
146
|
+
this._disabled = false;
|
|
135
147
|
}
|
|
136
148
|
select() {
|
|
137
149
|
this.onSelect.emit(this);
|
|
@@ -177,6 +189,15 @@ class LuTreeOptionItemComponent extends ALuTreeOptionItem {
|
|
|
177
189
|
this._cdr.markForCheck();
|
|
178
190
|
}
|
|
179
191
|
}
|
|
192
|
+
get disabled() {
|
|
193
|
+
return this._disabled;
|
|
194
|
+
}
|
|
195
|
+
set disabled(h) {
|
|
196
|
+
if (h !== this._disabled) {
|
|
197
|
+
this._disabled = h;
|
|
198
|
+
this._cdr.markForCheck();
|
|
199
|
+
}
|
|
200
|
+
}
|
|
180
201
|
set _contentChildDisplayer(displayer) {
|
|
181
202
|
this._displayer = displayer;
|
|
182
203
|
}
|
|
@@ -196,7 +217,7 @@ class LuTreeOptionItemComponent extends ALuTreeOptionItem {
|
|
|
196
217
|
}
|
|
197
218
|
}
|
|
198
219
|
LuTreeOptionItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: LuTreeOptionItemComponent, deps: [{ token: LuTreeOptionItemIntl }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
199
|
-
LuTreeOptionItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: LuTreeOptionItemComponent, selector: "lu-tree-option", inputs: { tree: "tree", selected: "selected", highlighted: "highlighted" }, outputs: { onSelect: "onSelect", onSelectSelf: "onSelectSelf", onSelectChildren: "onSelectChildren" }, providers: [
|
|
220
|
+
LuTreeOptionItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: LuTreeOptionItemComponent, selector: "lu-tree-option", inputs: { tree: "tree", selected: "selected", highlighted: "highlighted", disabled: "disabled" }, outputs: { onSelect: "onSelect", onSelectSelf: "onSelectSelf", onSelectChildren: "onSelectChildren" }, providers: [
|
|
200
221
|
{
|
|
201
222
|
provide: ALuTreeOptionItem,
|
|
202
223
|
useExisting: forwardRef(() => LuTreeOptionItemComponent),
|
|
@@ -236,6 +257,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
236
257
|
type: Input
|
|
237
258
|
}], highlighted: [{
|
|
238
259
|
type: Input
|
|
260
|
+
}], disabled: [{
|
|
261
|
+
type: Input
|
|
239
262
|
}], _contentChildDisplayer: [{
|
|
240
263
|
type: ContentChild,
|
|
241
264
|
args: [ALuInputDisplayer, { static: true }]
|
|
@@ -1342,8 +1365,8 @@ class ALuOptionPickerComponent extends ALuOptionPicker {
|
|
|
1342
1365
|
}
|
|
1343
1366
|
onOpen() {
|
|
1344
1367
|
super.onOpen();
|
|
1345
|
-
this.highlightIndex =
|
|
1346
|
-
|
|
1368
|
+
this.highlightIndex = -1;
|
|
1369
|
+
this._incrHighlight();
|
|
1347
1370
|
this._applySelected();
|
|
1348
1371
|
}
|
|
1349
1372
|
set vcTemplateRef(tr) {
|
|
@@ -1390,17 +1413,35 @@ class ALuOptionPickerComponent extends ALuOptionPicker {
|
|
|
1390
1413
|
}, 1);
|
|
1391
1414
|
}
|
|
1392
1415
|
_incrHighlight() {
|
|
1393
|
-
const
|
|
1394
|
-
this.highlightIndex =
|
|
1416
|
+
const nextIndex = this._options.findIndex((item, index) => index > this.highlightIndex && !item.disabled);
|
|
1417
|
+
this.highlightIndex = nextIndex > -1 ? nextIndex : this._options.findIndex((item) => !item.disabled);
|
|
1395
1418
|
}
|
|
1396
1419
|
_decrHighlight() {
|
|
1397
|
-
|
|
1420
|
+
//NB: findLastIndex would be better but is not available on this project
|
|
1421
|
+
let nextIndex = -1;
|
|
1422
|
+
for (let i = this.highlightIndex - 1; i >= 0; --i) {
|
|
1423
|
+
if (!this._options[i].disabled) {
|
|
1424
|
+
nextIndex = i;
|
|
1425
|
+
break;
|
|
1426
|
+
}
|
|
1427
|
+
}
|
|
1428
|
+
if (nextIndex > -1) {
|
|
1429
|
+
this.highlightIndex = nextIndex;
|
|
1430
|
+
return;
|
|
1431
|
+
}
|
|
1432
|
+
const optionsLength = this._options.length - 1;
|
|
1433
|
+
for (let i = optionsLength; i >= 0; --i) {
|
|
1434
|
+
if (!this._options[i].disabled) {
|
|
1435
|
+
nextIndex = i;
|
|
1436
|
+
break;
|
|
1437
|
+
}
|
|
1438
|
+
}
|
|
1439
|
+
this.highlightIndex = nextIndex;
|
|
1398
1440
|
}
|
|
1399
1441
|
_applyHighlight(reScroll = false) {
|
|
1400
1442
|
if (!this.isOpen) {
|
|
1401
1443
|
return;
|
|
1402
1444
|
}
|
|
1403
|
-
// const highlightClass = 'is-highlighted';
|
|
1404
1445
|
const options = this._options;
|
|
1405
1446
|
// remove `is-highlighted` class from all other options
|
|
1406
1447
|
options.forEach((option) => (option.highlighted = false));
|