Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
$onInit() {
addDefaultParameter(this, 'id', `ouiTimepicker${this.$id}`);
addDefaultParameter(this, 'name', `ouiTimepicker${this.$id}`);
addDefaultParameter(this, 'format', this.options.dateFormat);
addDefaultParameter(this, 'altFormat', this.format || this.options.dateFormat);
addBooleanParameter(this, 'appendToBody');
addBooleanParameter(this, 'disabled');
addBooleanParameter(this, 'enableSeconds');
addBooleanParameter(this, 'enableAmPm');
addBooleanParameter(this, 'inline');
addBooleanParameter(this, 'required');
addBooleanParameter(this, 'static');
this.setOptionsProperty('enableSeconds', this.enableSeconds);
this.setOptionsProperty('time_24hr', !this.enableAmPm);
// flatpickr's timepicker need a default value to work in inline mode
if (this.inline) {
this.setOptionsProperty('defaultDate', this.model || 'today');
}
$onInit() {
addDefaultParameter(this, 'id', `ouiCriteriaAdder${this.$scope.$id}`);
addDefaultParameter(this, 'name', `ouiCriteriaAdder${this.$scope.$id}`);
addDefaultParameter(this, 'placement', 'center');
this.$timeout(() => {
const { 0: element } = this.$element;
this.dropdownContent = element;
});
// Auto select first column
if (this.properties) {
const [properties] = this.properties;
this.columnModel = properties;
}
this.selectableOperators = this.filterSelectableOperators();
const [selectableOperators] = this.selectableOperators;
$onInit() {
addBooleanParameter(this, 'disabled');
addBooleanParameter(this, 'required');
addDefaultParameter(this, 'id', `ouiPassword${this.$scope.$id}`);
addDefaultParameter(this, 'name', `ouiPassword${this.$scope.$id}`);
this.errors = {};
this.isVisible = false;
}
$onInit() {
addDefaultParameter(this, 'heading', this.translations.heading);
addDefaultParameter(this, 'placeholder', this.translations.placeholder);
addBooleanParameter(this, 'loading');
addBooleanParameter(this, 'searchable');
this.id = `ouiDualListTarget${this.$scope.id}`;
this.expanded = false;
}
$onInit() {
addBooleanParameter(this, 'disabled');
addBooleanParameter(this, 'required');
addDefaultParameter(this, 'variant', 'default');
addDefaultParameter(this, 'id', `ouiSelectPicker${this.$scope.$id}`);
if (this.picture) {
this.isImgPath = /^data:/.test(this.picture) || /\.(gif|png|jpg|svg)$/.test(this.picture);
}
if (this.values) {
if (this.model && find(this.values, this.model)) {
this.selectedValue = this.model;
} else {
[this.selectedValue] = this.values;
}
}
this.$scope.$watch(() => this.model, (newValue) => {
$onInit() {
addBooleanParameter(this, 'compact');
addDefaultParameter(this, 'minValue', '0');
addDefaultParameter(this, 'maxValue', '100');
}
$onInit() {
addBooleanParameter(this, 'disabled');
addBooleanParameter(this, 'required');
addBooleanParameter(this, 'thumbnail');
addDefaultParameter(this, 'id', `ouiCheckbox${this.$scope.$id}`);
addDefaultParameter(this, 'variant', 'default');
}
$onInit() {
addBooleanParameter(this, 'compact');
addDefaultParameter(this, 'minValue', '0');
addDefaultParameter(this, 'maxValue', '100');
}
$onInit() {
addBooleanParameter(this, 'disabled');
addBooleanParameter(this, 'required');
addBooleanParameter(this, 'thumbnail');
addDefaultParameter(this, 'id', `ouiCheckbox${this.$scope.$id}`);
addDefaultParameter(this, 'variant', 'default');
}
$onInit() {
addBooleanParameter(this, 'appendToBody');
addBooleanParameter(this, 'disabled');
addBooleanParameter(this, 'enableTime');
addBooleanParameter(this, 'inline');
addBooleanParameter(this, 'noCalendar');
addBooleanParameter(this, 'required');
addBooleanParameter(this, 'static');
addBooleanParameter(this, 'weekNumbers');
addDefaultParameter(this, 'id', `ouiCalendar${this.$id}`);
addDefaultParameter(this, 'name', `ouiCalendar${this.$id}`);
this.initCalendarInstance();
}