Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'elaws-select-bucket',
templateUrl: 'select-bucket.html',
styleUrls: ['select-bucket.scss']
})
export class SelectBucketComponent implements ControlValueAccessor,
MatFormFieldControl,
OnDestroy {
static nextID = 0;
@HostBinding('attr.aria-describedby') describedBy = '';
@HostBinding() id = `elaws-select-bucket-${SelectBucketComponent.nextID++}`;
@Select(S3State.getBuckets) buckets$: Observable;
// @see MatFormFieldControl
controlType = 'elaws-select-bucket';
focused = false;
shouldLabelFloat = false;
stateChanges = new Subject();
selectBucketForm: FormGroup;
// disabled accessor / mutator
@Input() get disabled(): boolean {
return this._disabled;
}
set disabled(disabled: boolean) {
{ type: Component, args: [{
selector: 'abp-users',
template: "<div class="\"row">\r\n <div class="\"col-auto\"">\r\n <h1 class="\"content-header-title\"">{{ 'AbpIdentity::Users' | abpLocalization }}</h1>\r\n </div>\r\n <div class="\"col\"">\r\n <div id="\"AbpContentToolbar\"" class="\"text-lg-right">\r\n \r\n <i class="\"fa"></i> <span>{{ 'AbpIdentity::NewUser' | abpLocalization }}</span>\r\n \r\n </div>\r\n </div>\r\n</div>\r\n\r\n<div class="\"card\"" id="\"identity-roles-wrapper\"">\r\n <div class="\"card-body\"">\r\n <div class="\"data-tables-filter\"" id="\"data-tables-table-filter\"">\r\n \r\n </div>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{ 'AbpIdentity::Actions' | abpLocalization }}\r\n \r\n {{ 'AbpIdentity::UserName' | abpLocalization }}\r\n \r\n \r\n \r\n \r\n {{ 'AbpIdentity::EmailAddress' | abpLocalization }}\r\n \r\n \r\n \r\n {{ 'AbpIdentity::PhoneNumber' | abpLocalization }}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n <div class="\"d-inline-block\"">\r\n \r\n <i class="\"fa"></i>{{ 'AbpIdentity::Actions' | abpLocalization }}\r\n \r\n <div>\r\n \r\n {{ 'AbpIdentity::Edit' | abpLocalization }}\r\n \r\n \r\n {{ 'AbpIdentity::Permissions' | abpLocalization }}\r\n \r\n \r\n {{ 'AbpIdentity::Delete' | abpLocalization }}\r\n \r\n </div>\r\n </div>\r\n \r\n {{ data.userName }}\r\n {{ data.email }}\r\n {{ data.phoneNumber }}\r\n \r\n \r\n \r\n </div>\r\n</div>\r\n\r\n\r\n \r\n <h3>{{ (selected?.id ? 'AbpIdentity::Edit' : 'AbpIdentity::NewUser') | abpLocalization }}</h3>\r\n \r\n\r\n \r\n <div class="\"text-center\""><i class="\"fa"></i>\r\n\r\n <form>\r\n \r\n \r\n \r\n <div class="\"mt-2">\r\n <div class="\"form-group\"">\r\n <label for="\"user-name\"">{{ 'AbpIdentity::UserName' | abpLocalization }}<span> * </span>\r\n <input class="\"form-control\"" id="\"user-name\"" type="\"text\"">\r\n </label></div>\r\n\r\n <div class="\"form-group\"">\r\n <label for="\"name\"">{{ 'AbpIdentity::DisplayName:Name' | abpLocalization }}</label>\r\n <input class="\"form-control\"" id="\"name\"" type="\"text\"">\r\n </div>\r\n\r\n <div class="\"form-group\"">\r\n <label for="\"surname\"">{{ 'AbpIdentity::DisplayName:Surname' | abpLocalization }}</label>\r\n <input class="\"form-control\"" id="\"surname\"" type="\"text\"">\r\n </div>\r\n\r\n <div class="\"form-group\"">\r\n <label for="\"password\"">{{ 'AbpIdentity::Password' | abpLocalization }}<span> * </span>\r\n \r\n </label></div>\r\n\r\n <div class="\"form-group\"">\r\n <label for="\"email\"">{{ 'AbpIdentity::EmailAddress' | abpLocalization }}<span> * </span>\r\n <input class="\"form-control\"" id="\"email\"" type="\"text\"">\r\n </label></div>\r\n\r\n <div class="\"form-group\"">\r\n <label for="\"phone-number\"">{{ 'AbpIdentity::PhoneNumber' | abpLocalization }}</label>\r\n <input class="\"form-control\"" id="\"phone-number\"" type="\"text\"">\r\n </div>\r\n\r\n <div class="\"custom-checkbox">\r\n \r\n <label for="\"lockout-checkbox\"" class="\"custom-control-label\"">{{\r\n 'AbpIdentity::DisplayName:LockoutEnabled' | abpLocalization\r\n }}</label>\r\n </div>\r\n\r\n <div class="\"custom-checkbox">\r\n \r\n <label for="\"two-factor-checkbox\"" class="\"custom-control-label\"">{{\r\n 'AbpIdentity::DisplayName:TwoFactorEnabled' | abpLocalization\r\n }}</label>\r\n </div>\r\n </div>\r\n \r\n \r\n \r\n \r\n <div class="\"mt-2">\r\n \r\n \r\n <label class="\"custom-control-label\"">{{ roles[i].name }}</label>\r\n </div>\r\n </form></div>\r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n <button class="\"btn" type="\"button\"">\r\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\r\n </button>\r\n {{\r\n 'AbpIdentity::Save' | abpLocalization\r\n }}\r\n \r\n\r\n\r\n\r\n\r\n"
}] }
];
/** @nocollapse */
UsersComponent.ctorParameters = () => [
{ type: ConfirmationService },
{ type: FormBuilder },
{ type: Store }
];
UsersComponent.propDecorators = {
modalContent: [{ type: ViewChild, args: ['modalContent', { static: false },] }]
};
tslib_1.__decorate([
Select(IdentityState.getUsers),
tslib_1.__metadata("design:type", Observable)
], UsersComponent.prototype, "data$", void 0);
tslib_1.__decorate([
Select(IdentityState.getUsersTotalCount),
tslib_1.__metadata("design:type", Observable)
], UsersComponent.prototype, "totalCount$", void 0);
if (false) {
/** @type {?} */
UsersComponent.prototype.data$;
/** @type {?} */
UsersComponent.prototype.totalCount$;
/** @type {?} */
UsersComponent.prototype.modalContent;
/** @type {?} */
UsersComponent.prototype.form;
/** @type {?} */
this.buildForm();
};
PersonalSettingsComponent.decorators = [
{ type: Component, args: [{
selector: 'abp-personal-settings-form',
template: "<form novalidate="">\r\n <div class="\"form-group\"">\r\n <label for="\"username\"">{{ 'AbpIdentity::DisplayName:UserName' | abpLocalization }}<span> * </span><input class="\"form-control\"" id="\"username\"" type="\"text\"">\r\n </label></div>\r\n <div class="\"row\"">\r\n <div class="\"col">\r\n <div class="\"form-group\"">\r\n <label for="\"name\"">{{ 'AbpIdentity::DisplayName:Name' | abpLocalization }}<input class="\"form-control\"" id="\"name\"" type="\"text\"">\r\n </label></div>\r\n </div>\r\n <div class="\"col">\r\n <div class="\"form-group\"">\r\n <label for="\"surname\"">{{ 'AbpIdentity::DisplayName:Surname' | abpLocalization }}<input class="\"form-control\"" id="\"surname\"" type="\"text\"">\r\n </label></div>\r\n </div>\r\n </div>\r\n <div class="\"form-group\"">\r\n <label for="\"email-address\"">{{ 'AbpIdentity::DisplayName:Email' | abpLocalization }}<span> * </span><input class="\"form-control\"" id="\"email-address\"" type="\"text\"">\r\n </label></div>\r\n <div class="\"form-group\"">\r\n <label for="\"phone-number\"">{{ 'AbpIdentity::DisplayName:PhoneNumber' | abpLocalization }}<input class="\"form-control\"" id="\"phone-number\"" type="\"text\"">\r\n </label></div>\r\n \r\n {{ 'AbpIdentity::Save' | abpLocalization }}\r\n\r\n"
}] }
];
/** @nocollapse */
PersonalSettingsComponent.ctorParameters = function () { return [
{ type: FormBuilder },
{ type: Store },
{ type: ToasterService }
]; };
__decorate([
Select(ProfileState.getProfile),
__metadata("design:type", Observable)
], PersonalSettingsComponent.prototype, "profile$", void 0);
return PersonalSettingsComponent;
}());
if (false) {</form>
{ type: Component, args: [{
selector: 'abp-users',
template: "<div class="\"row">\r\n <div class="\"col-auto\"">\r\n <h1 class="\"content-header-title\"">{{ 'AbpIdentity::Users' | abpLocalization }}</h1>\r\n </div>\r\n <div class="\"col\"">\r\n <div id="\"AbpContentToolbar\"" class="\"text-lg-right">\r\n \r\n <i class="\"fa"></i> <span>{{ 'AbpIdentity::NewUser' | abpLocalization }}</span>\r\n \r\n </div>\r\n </div>\r\n</div>\r\n\r\n<div class="\"card\"" id="\"identity-roles-wrapper\"">\r\n <div class="\"card-body\"">\r\n <div class="\"data-tables-filter\"" id="\"data-tables-table-filter\"">\r\n \r\n </div>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{ 'AbpIdentity::Actions' | abpLocalization }}\r\n \r\n {{ 'AbpIdentity::UserName' | abpLocalization }}\r\n \r\n \r\n \r\n \r\n {{ 'AbpIdentity::EmailAddress' | abpLocalization }}\r\n \r\n \r\n \r\n {{ 'AbpIdentity::PhoneNumber' | abpLocalization }}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n <div class="\"d-inline-block\"">\r\n \r\n <i class="\"fa"></i>{{ 'AbpIdentity::Actions' | abpLocalization }}\r\n \r\n <div>\r\n \r\n {{ 'AbpIdentity::Edit' | abpLocalization }}\r\n \r\n \r\n {{ 'AbpIdentity::Permissions' | abpLocalization }}\r\n \r\n \r\n {{ 'AbpIdentity::Delete' | abpLocalization }}\r\n \r\n </div>\r\n </div>\r\n \r\n {{ data.userName }}\r\n {{ data.email }}\r\n {{ data.phoneNumber }}\r\n \r\n \r\n \r\n </div>\r\n</div>\r\n\r\n\r\n \r\n <h3>{{ (selected?.id ? 'AbpIdentity::Edit' : 'AbpIdentity::NewUser') | abpLocalization }}</h3>\r\n \r\n\r\n \r\n <div class="\"text-center\""><i class="\"fa"></i>\r\n\r\n <form>\r\n \r\n \r\n \r\n <div class="\"mt-2">\r\n <div class="\"form-group\"">\r\n <label for="\"user-name\"">{{ 'AbpIdentity::UserName' | abpLocalization }}<span> * </span>\r\n <input class="\"form-control\"" id="\"user-name\"" type="\"text\"">\r\n </label></div>\r\n\r\n <div class="\"form-group\"">\r\n <label for="\"name\"">{{ 'AbpIdentity::DisplayName:Name' | abpLocalization }}</label>\r\n <input class="\"form-control\"" id="\"name\"" type="\"text\"">\r\n </div>\r\n\r\n <div class="\"form-group\"">\r\n <label for="\"surname\"">{{ 'AbpIdentity::DisplayName:Surname' | abpLocalization }}</label>\r\n <input class="\"form-control\"" id="\"surname\"" type="\"text\"">\r\n </div>\r\n\r\n <div class="\"form-group\"">\r\n <label for="\"password\"">{{ 'AbpIdentity::Password' | abpLocalization }}<span> * </span>\r\n \r\n </label></div>\r\n\r\n <div class="\"form-group\"">\r\n <label for="\"email\"">{{ 'AbpIdentity::EmailAddress' | abpLocalization }}<span> * </span>\r\n <input class="\"form-control\"" id="\"email\"" type="\"text\"">\r\n </label></div>\r\n\r\n <div class="\"form-group\"">\r\n <label for="\"phone-number\"">{{ 'AbpIdentity::PhoneNumber' | abpLocalization }}</label>\r\n <input class="\"form-control\"" id="\"phone-number\"" type="\"text\"">\r\n </div>\r\n\r\n <div class="\"custom-checkbox">\r\n \r\n <label for="\"lockout-checkbox\"" class="\"custom-control-label\"">{{\r\n 'AbpIdentity::DisplayName:LockoutEnabled' | abpLocalization\r\n }}</label>\r\n </div>\r\n\r\n <div class="\"custom-checkbox">\r\n \r\n <label for="\"two-factor-checkbox\"" class="\"custom-control-label\"">{{\r\n 'AbpIdentity::DisplayName:TwoFactorEnabled' | abpLocalization\r\n }}</label>\r\n </div>\r\n </div>\r\n \r\n \r\n \r\n \r\n <div class="\"mt-2">\r\n \r\n \r\n <label class="\"custom-control-label\"">{{ roles[i].name }}</label>\r\n </div>\r\n </form></div>\r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n <button class="\"btn" type="\"button\"">\r\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\r\n </button>\r\n {{\r\n 'AbpIdentity::Save' | abpLocalization\r\n }}\r\n \r\n\r\n\r\n\r\n\r\n"
}] }
];
/** @nocollapse */
UsersComponent.ctorParameters = function () { return [
{ type: ConfirmationService },
{ type: FormBuilder },
{ type: Store }
]; };
UsersComponent.propDecorators = {
modalContent: [{ type: ViewChild, args: ['modalContent', { static: false },] }]
};
__decorate([
Select(IdentityState.getUsers),
__metadata("design:type", Observable)
], UsersComponent.prototype, "data$", void 0);
__decorate([
Select(IdentityState.getUsersTotalCount),
__metadata("design:type", Observable)
], UsersComponent.prototype, "totalCount$", void 0);
return UsersComponent;
}());
if (false) {
{ type: Component, args: [{
selector: 'abp-profile',
template: "\r\n \r\n <h4>{{ 'AbpIdentity::PersonalInfo' | abpLocalization }}</h4>\r\n \r\n \r\n <form novalidate="">\r\n <div class="\"form-group\"">\r\n <label for="\"username\"">{{ 'AbpIdentity::DisplayName:UserName' | abpLocalization }}<span> * </span><input class="\"form-control\"" id="\"username\"" type="\"text\"">\r\n </label></div>\r\n <div class="\"row\"">\r\n <div class="\"col">\r\n <div class="\"form-group\"">\r\n <label for="\"name\"">{{ 'AbpIdentity::DisplayName:Name' | abpLocalization }}<input class="\"form-control\"" id="\"name\"" type="\"text\"">\r\n </label></div>\r\n </div>\r\n <div class="\"col">\r\n <div class="\"form-group\"">\r\n <label for="\"surname\"">{{ 'AbpIdentity::DisplayName:Surname' | abpLocalization }}<input class="\"form-control\"" id="\"surname\"" type="\"text\"">\r\n </label></div>\r\n </div>\r\n </div>\r\n <div class="\"form-group\"">\r\n <label for="\"email-address\"">{{ 'AbpIdentity::DisplayName:Email' | abpLocalization }}<span> * </span><input class="\"form-control\"" id="\"email-address\"" type="\"text\"">\r\n </label></div>\r\n <div class="\"form-group\"">\r\n <label for="\"phone-number\"">{{ 'AbpIdentity::DisplayName:PhoneNumber' | abpLocalization }}<input class="\"form-control\"" id="\"phone-number\"" type="\"text\"">\r\n </label></div>\r\n </form>\r\n \r\n \r\n <button class="\"btn" type="\"button\"">\r\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\r\n </button>\r\n {{ 'AbpIdentity::Save' | abpLocalization }}\r\n \r\n\r\n"
}] }
];
/** @nocollapse */
ProfileComponent.ctorParameters = () => [
{ type: FormBuilder },
{ type: Store }
];
ProfileComponent.propDecorators = {
visible: [{ type: Input }],
visibleChange: [{ type: Output }]
};
tslib_1.__decorate([
Select(ProfileState.getProfile),
tslib_1.__metadata("design:type", Observable)
], ProfileComponent.prototype, "profile$", void 0);
if (false) {
/**
* @type {?}
* @protected
*/
ProfileComponent.prototype._visible;
/** @type {?} */
ProfileComponent.prototype.visibleChange;
/** @type {?} */
ProfileComponent.prototype.profile$;
/** @type {?} */
ProfileComponent.prototype.form;
/** @type {?} */
ProfileComponent.prototype.modalBusy;
template: "\n \n \n <h4>{{ 'AbpPermissionManagement::Permissions' | abpLocalization }} - {{ data.entityName }}</h4>\n \n \n <div class="\"custom-checkbox">\n \n <label for="\"select-all-in-all-tabs\"" class="\"custom-control-label\"">{{\n 'AbpPermissionManagement::SelectAllInAllTabs' | abpLocalization\n }}</label>\n </div>\n\n <hr class="\"mt-2">\n <div class="\"row\"">\n <div class="\"col-4\"">\n <ul class="\"nav">\n \n <li class="\"nav-item\"">\n {{ group?.displayName }}\n </li>\n \n </ul>\n </div>\n <div class="\"col-8\"">\n <h4>{{ selectedGroup.displayName }}</h4>\n <hr class="\"mt-2">\n <div class="\"pl-1">\n <div class="\"custom-checkbox">\n \n <label for="\"select-all-in-this-tabs\"" class="\"custom-control-label\"">{{\n 'AbpPermissionManagement::SelectAllInThisTab' | abpLocalization\n }}</label>\n </div>\n <hr class="\"mb-3\"">\n \n \n \n {{ permission.displayName }}\n <span class="\"badge">{{ provider.providerName }}: {{ provider.providerKey }}</span>\n </div>\n \n </div>\n </div>\n \n \n \n <button class="\"btn" type="\"button\"">\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\n </button>\n {{ 'AbpIdentity::Save' | abpLocalization }}\n \n \n\n"
}] }
];
/** @nocollapse */
PermissionManagementComponent.ctorParameters = () => [
{ type: Store },
{ type: Renderer2 }
];
PermissionManagementComponent.propDecorators = {
providerName: [{ type: Input }],
providerKey: [{ type: Input }],
visible: [{ type: Input }],
visibleChange: [{ type: Output }]
};
tslib_1.__decorate([
Select(PermissionManagementState.getPermissionGroups),
tslib_1.__metadata("design:type", Observable)
], PermissionManagementComponent.prototype, "groups$", void 0);
tslib_1.__decorate([
Select(PermissionManagementState.getEntitiyDisplayName),
tslib_1.__metadata("design:type", Observable)
], PermissionManagementComponent.prototype, "entityName$", void 0);
if (false) {
/** @type {?} */
PermissionManagementComponent.prototype.providerName;
/** @type {?} */
PermissionManagementComponent.prototype.providerKey;
/**
* @type {?}
* @protected
*/
PermissionManagementComponent.prototype._visible;
GetUsers,
UpdateUser,
GetRoles,
} from '../../actions/identity.actions';
import { Identity } from '../../models/identity';
import { IdentityState } from '../../states/identity.state';
import { PasswordRules, validatePassword } from '@ngx-validate/core';
@Component({
selector: 'abp-users',
templateUrl: './users.component.html',
})
export class UsersComponent implements OnInit {
@Select(IdentityState.getUsers)
data$: Observable;
@Select(IdentityState.getUsersTotalCount)
totalCount$: Observable;
@ViewChild('modalContent', { static: false })
modalContent: TemplateRef;
form: FormGroup;
selected: Identity.UserItem;
selectedUserRoles: Identity.RoleItem[];
roles: Identity.RoleItem[];
visiblePermissions = false;
providerKey: string;
PermissionManagementComponent.ctorParameters = function () { return [
{ type: Store },
{ type: Renderer2 }
]; };
PermissionManagementComponent.propDecorators = {
providerName: [{ type: Input }],
providerKey: [{ type: Input }],
visible: [{ type: Input }],
visibleChange: [{ type: Output }]
};
tslib_1.__decorate([
Select(PermissionManagementState.getPermissionGroups),
tslib_1.__metadata("design:type", Observable)
], PermissionManagementComponent.prototype, "groups$", void 0);
tslib_1.__decorate([
Select(PermissionManagementState.getEntitiyDisplayName),
tslib_1.__metadata("design:type", Observable)
], PermissionManagementComponent.prototype, "entityName$", void 0);
return PermissionManagementComponent;
}());
export { PermissionManagementComponent };
import { UserState } from '../../../states/user/user.state';
import { TabsService } from '../../tabs/tabs.service';
@Component({
selector: 'app-measure-report',
templateUrl: './measure-report.page.html',
styleUrls: ['./measure-report.page.scss']
})
export class MeasureReportPage extends AutoUnsubscribePage {
@Select(MeasuresState.currentMeasure)
currentMeasure$: Observable;
@Select(MeasuresState.expertMode)
expertMode$: Observable;
@Select(UserState.login)
login$: Observable;
measureReportForm: FormGroup;
reportScan = true;
measurementEnvironmentOptions: SelectIconOption[] = [
{
iconOn: 'assets/img/icon-countryside-on.png',
iconOff: 'assets/img/icon-countryside-off.png',
label: 'À la campagne',
value: MeasureEnvironment.Countryside
},
{
iconOn: 'assets/img/icon-ontheroad-on.png',
iconOff: 'assets/img/icon-ontheroad-off.png',
label: 'Sur la route',
@AutoUnsubscribe()
export class DDBCtrlComponent extends LifecycleComponent {
@Input() deleteForm = { } as DeleteForm;
@Input() filterForm = { } as FilterForm;
@Input() viewAndSchemaForm = { } as ViewAndSchemaForm;
@Output() openView = new EventEmitter();
@Select(DDBState) ddb$: Observable;
@Select(DDBFiltersState) ddbfilters$: Observable;
@Select(DDBSchemasState) ddbschemas$: Observable;
@Select(DDBViewsState) ddbviews$: Observable;
@Select(DDBSelectionState) ddbselection$: Observable;
@Select(PrefsState) prefs$: Observable;
ddbfilter$: Observable