nice-elements 1.7.0 → 1.7.2
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/CHANGELOG.md +15 -0
- package/README.md +2 -1
- package/bower.json +1 -1
- package/dist/nice.js +76 -58
- package/dist/nice.min.js +1 -1
- package/dist/style.css +25 -10
- package/dist/style.css.map +1 -1
- package/dist/style.min.css +2 -2
- package/package.json +1 -1
- package/src/components/nice-calendar/nice-calendar.scss +0 -2
- package/src/components/nice-date/nice-date.html +2 -4
- package/src/components/nice-date/nice-date.js +1 -1
- package/src/components/nice-date-input/nice-date-input.html +6 -6
- package/src/components/nice-date-input/nice-date-input.js +22 -9
- package/src/components/nice-date-input/nice-date-input.scss +2 -0
- package/src/components/nice-datetime-picker/nice-datetime-picker.scss +1 -1
- package/src/components/nice-dropdown/nice-dropdown.scss +1 -0
- package/src/components/nice-dropdown-old/nice-dropdown-old.js +38 -36
- package/src/components/nice-dtp/nice-dtp.js +1 -0
- package/src/filters/nice-date.js +5 -2
- package/src/filters/nice-highlight.js +1 -0
- package/src/styles/_nice-buttons.scss +9 -3
- package/src/styles/_nice-common.scss +14 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v1.7.2 (15.12.2022)
|
|
4
|
+
|
|
5
|
+
- fixed nice dropdown alignment,
|
|
6
|
+
- fixed input addon border color on focus,
|
|
7
|
+
- fixed nice highlight null value,
|
|
8
|
+
- added more button icon and text margins,
|
|
9
|
+
- added addSeconds to niceDate filter,
|
|
10
|
+
- added filters example page
|
|
11
|
+
|
|
12
|
+
## v1.7.1 (8.12.2022)
|
|
13
|
+
|
|
14
|
+
- fixed nice-date-input,
|
|
15
|
+
- added deprecation warnings,
|
|
16
|
+
- fixes
|
|
17
|
+
|
|
3
18
|
## v1.7.0 (7.12.2022)
|
|
4
19
|
|
|
5
20
|
- created nice-date-input component - OLA-191
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|

|
|
2
2
|
|
|
3
|
-
# Nice elements v1.7.
|
|
3
|
+
# Nice elements v1.7.2
|
|
4
4
|
|
|
5
5
|
Nice elements is an AngularJS v1.5.8 module that contains nice form elements like inputs, choice fields, search, toggle, dropdown, etc.
|
|
6
6
|
|
|
@@ -16,6 +16,7 @@ Nice elements is an AngularJS v1.5.8 module that contains nice form elements lik
|
|
|
16
16
|
- nice-click-outside
|
|
17
17
|
- nice-comment
|
|
18
18
|
- nice-date
|
|
19
|
+
- nice-date-input
|
|
19
20
|
- nice-date-range
|
|
20
21
|
- nice-datetime-picker
|
|
21
22
|
- nice-datetimerange-picker
|
package/bower.json
CHANGED
package/dist/nice.js
CHANGED
|
@@ -841,21 +841,29 @@ angular.module('niceElements')
|
|
|
841
841
|
isInline: '=',
|
|
842
842
|
onChange: '&?'
|
|
843
843
|
},
|
|
844
|
-
controller: function ($scope) {
|
|
844
|
+
controller: function ($scope, $timeout) {
|
|
845
845
|
$scope.formatDate = "DD.MM.YYYY";
|
|
846
846
|
$scope.formatTime = "HH:mm";
|
|
847
847
|
if ($scope.date === undefined) $scope.date = true;
|
|
848
848
|
if ($scope.time === undefined) $scope.time = true;
|
|
849
849
|
$scope.model = moment($scope.model) || moment().set({ 'second': 0, 'millisecond': 0 });
|
|
850
|
+
$scope.inner = {
|
|
851
|
+
timeModel: angular.copy($scope.model),
|
|
852
|
+
dateModel: angular.copy($scope.model)
|
|
853
|
+
};
|
|
850
854
|
|
|
851
|
-
$scope.dateChanged = function (
|
|
852
|
-
$
|
|
853
|
-
|
|
855
|
+
$scope.dateChanged = function () {
|
|
856
|
+
$timeout(function () {
|
|
857
|
+
$scope.modelDate = $scope.inner.dateModel.format($scope.formatDate);
|
|
858
|
+
$scope.handleChange();
|
|
859
|
+
});
|
|
854
860
|
}
|
|
855
861
|
|
|
856
|
-
$scope.timeChanged = function (
|
|
857
|
-
$
|
|
858
|
-
|
|
862
|
+
$scope.timeChanged = function () {
|
|
863
|
+
$timeout(function () {
|
|
864
|
+
$scope.modelTime = $scope.inner.timeModel.format($scope.formatTime);
|
|
865
|
+
$scope.handleChange();
|
|
866
|
+
});
|
|
859
867
|
}
|
|
860
868
|
|
|
861
869
|
// -------------------- On date change --------------------
|
|
@@ -863,13 +871,13 @@ angular.module('niceElements')
|
|
|
863
871
|
var newModel = moment($scope.modelDate + " " + $scope.modelTime, $scope.formatDate + " " + $scope.formatTime).seconds(0).milliseconds(0);
|
|
864
872
|
if (newModel.isValid()) {
|
|
865
873
|
$scope.model = newModel;
|
|
866
|
-
if ($scope.onChange) $scope.onChange({ model: $scope.model });
|
|
867
874
|
$scope.niceDateInputForm.$setValidity('validDate', true);
|
|
868
875
|
} else {
|
|
869
876
|
$scope.model = null;
|
|
870
|
-
if ($scope.onChange) $scope.onChange({ model: $scope.model });
|
|
871
877
|
$scope.niceDateInputForm.$setValidity('validDate', false);
|
|
872
878
|
}
|
|
879
|
+
if ($scope.onChange) $scope.onChange({ model: $scope.model });
|
|
880
|
+
$scope.niceDateInputForm.$setDirty();
|
|
873
881
|
}
|
|
874
882
|
|
|
875
883
|
// -------------------- Format model --------------------
|
|
@@ -904,6 +912,11 @@ angular.module('niceElements')
|
|
|
904
912
|
// -------------------- Watch model --------------------
|
|
905
913
|
$scope.$watch('model', function () {
|
|
906
914
|
$scope.formatModel();
|
|
915
|
+
$scope.inner = {
|
|
916
|
+
timeModel: angular.copy($scope.model),
|
|
917
|
+
dateModel: angular.copy($scope.model)
|
|
918
|
+
};
|
|
919
|
+
|
|
907
920
|
});
|
|
908
921
|
}
|
|
909
922
|
}
|
|
@@ -1108,7 +1121,7 @@ angular.module('niceElements')
|
|
|
1108
1121
|
selectedDate.minutes($scope.innerDate.minute);
|
|
1109
1122
|
$scope.innerDate.value = $scope.formatDate(selectedDate);
|
|
1110
1123
|
|
|
1111
|
-
$scope.model = selectedDate;
|
|
1124
|
+
$scope.model = angular.copy(selectedDate);
|
|
1112
1125
|
if ($scope.onChange) $scope.onChange({ model: $scope.model });
|
|
1113
1126
|
$scope.forma.$setDirty();
|
|
1114
1127
|
};
|
|
@@ -1983,13 +1996,15 @@ angular.module('niceElements')
|
|
|
1983
1996
|
isInline: '=',
|
|
1984
1997
|
onChange: '&?'
|
|
1985
1998
|
},
|
|
1986
|
-
controller: function($scope, $element, gettextCatalog) {
|
|
1999
|
+
controller: function ($scope, $element, gettextCatalog) {
|
|
2000
|
+
console.warn("[NICE ELEMENTS] nice-dropdown-old component is deprecated!");
|
|
2001
|
+
|
|
1987
2002
|
if (!$scope.objValue) { $scope.objValue = 'value'; }
|
|
1988
2003
|
if (!$scope.objKey) { $scope.objKey = 'id'; }
|
|
1989
2004
|
if (!$scope.list) { $scope.list = []; }
|
|
1990
2005
|
if (!$scope.noOptionsText) { $scope.noOptionsText = gettextCatalog.getString("No options", null, "Nice"); }
|
|
1991
|
-
if(!$scope.addButtonFunction) { $scope.addButtonFunction = null; }
|
|
1992
|
-
if(!$scope.listenKeydown) { $scope.listenKeydown = false; }
|
|
2006
|
+
if (!$scope.addButtonFunction) { $scope.addButtonFunction = null; }
|
|
2007
|
+
if (!$scope.listenKeydown) { $scope.listenKeydown = false; }
|
|
1993
2008
|
$scope.valid = $scope.formDropdown;
|
|
1994
2009
|
|
|
1995
2010
|
|
|
@@ -2004,13 +2019,13 @@ angular.module('niceElements')
|
|
|
2004
2019
|
$scope.id = Math.random().toString(36).substring(7);
|
|
2005
2020
|
|
|
2006
2021
|
$scope.isOpen = false;
|
|
2007
|
-
$scope.toggle = function(){ $scope.isOpen = !$scope.isOpen; };
|
|
2008
|
-
$scope.close = function(){ $scope.isOpen = false; };
|
|
2009
|
-
$scope.open = function(){ $scope.isOpen = true; };
|
|
2022
|
+
$scope.toggle = function () { $scope.isOpen = !$scope.isOpen; };
|
|
2023
|
+
$scope.close = function () { $scope.isOpen = false; };
|
|
2024
|
+
$scope.open = function () { $scope.isOpen = true; };
|
|
2010
2025
|
|
|
2011
2026
|
|
|
2012
2027
|
// ----------------------------------- Get filter -----------------------------------
|
|
2013
|
-
var getFilter = function(item){
|
|
2028
|
+
var getFilter = function (item) {
|
|
2014
2029
|
// Create filter for finding object by objValue with _.where()
|
|
2015
2030
|
var filter = {};
|
|
2016
2031
|
if (item.hasOwnProperty($scope.objKey))
|
|
@@ -2022,13 +2037,13 @@ angular.module('niceElements')
|
|
|
2022
2037
|
|
|
2023
2038
|
|
|
2024
2039
|
// ----------------------------------- Set internal list -----------------------------------
|
|
2025
|
-
var _set_internal_list = function(){
|
|
2040
|
+
var _set_internal_list = function () {
|
|
2026
2041
|
$scope.internalList = angular.copy($scope.list);
|
|
2027
2042
|
};
|
|
2028
2043
|
|
|
2029
2044
|
|
|
2030
2045
|
// ----------------------------------- Add null object to internal list -----------------------------------
|
|
2031
|
-
var _add_null_object_to_internal = function(){
|
|
2046
|
+
var _add_null_object_to_internal = function () {
|
|
2032
2047
|
if ($scope.nullable && !$scope.multiple) {
|
|
2033
2048
|
var nullObj = {};
|
|
2034
2049
|
nullObj[$scope.objKey] = null;
|
|
@@ -2039,7 +2054,7 @@ angular.module('niceElements')
|
|
|
2039
2054
|
|
|
2040
2055
|
|
|
2041
2056
|
// ----------------------------------- Get selected object -----------------------------------
|
|
2042
|
-
var _get_selected_object = function(selected){
|
|
2057
|
+
var _get_selected_object = function (selected) {
|
|
2043
2058
|
if (!selected) return null;
|
|
2044
2059
|
if ($scope.selectedIsObj) {
|
|
2045
2060
|
return selected;
|
|
@@ -2050,12 +2065,12 @@ angular.module('niceElements')
|
|
|
2050
2065
|
|
|
2051
2066
|
|
|
2052
2067
|
// ----------------------------------- Init -----------------------------------
|
|
2053
|
-
var _set_internal_selected_one = function(selected){
|
|
2068
|
+
var _set_internal_selected_one = function (selected) {
|
|
2054
2069
|
var obj = {};
|
|
2055
2070
|
|
|
2056
2071
|
var selectedObj = _get_selected_object(selected);
|
|
2057
2072
|
// console.log('_set_internal_selected_one', selected, selectedObj);
|
|
2058
|
-
if(selectedObj && _.find($scope.internalList, getFilter(selected))){
|
|
2073
|
+
if (selectedObj && _.find($scope.internalList, getFilter(selected))) {
|
|
2059
2074
|
obj = selectedObj;
|
|
2060
2075
|
} else {
|
|
2061
2076
|
obj = $scope.internalList[0];
|
|
@@ -2066,7 +2081,7 @@ angular.module('niceElements')
|
|
|
2066
2081
|
|
|
2067
2082
|
|
|
2068
2083
|
// ----------------------------------- Get selected objects -----------------------------------
|
|
2069
|
-
var _get_selected_objects = function(selected){
|
|
2084
|
+
var _get_selected_objects = function (selected) {
|
|
2070
2085
|
if (!selected)
|
|
2071
2086
|
return null;
|
|
2072
2087
|
|
|
@@ -2082,9 +2097,9 @@ angular.module('niceElements')
|
|
|
2082
2097
|
|
|
2083
2098
|
|
|
2084
2099
|
// ----------------------------------- Set internal selected multiple -----------------------------------
|
|
2085
|
-
var _set_internal_selected_multiple = function(item){
|
|
2100
|
+
var _set_internal_selected_multiple = function (item) {
|
|
2086
2101
|
var _selected_objects = _get_selected_objects(item);
|
|
2087
|
-
if (_selected_objects){
|
|
2102
|
+
if (_selected_objects) {
|
|
2088
2103
|
$scope.internalSelected = _selected_objects;
|
|
2089
2104
|
_set_model($scope.internalSelected);
|
|
2090
2105
|
} else {
|
|
@@ -2095,21 +2110,21 @@ angular.module('niceElements')
|
|
|
2095
2110
|
|
|
2096
2111
|
|
|
2097
2112
|
// ----------------------------------- Set model -----------------------------------
|
|
2098
|
-
var _set_model = function(value){
|
|
2113
|
+
var _set_model = function (value) {
|
|
2099
2114
|
var _new = angular.copy($scope.model);
|
|
2100
2115
|
|
|
2101
|
-
if(!$scope.multiple){
|
|
2102
|
-
if (value[$scope.objKey]==null){
|
|
2116
|
+
if (!$scope.multiple) {
|
|
2117
|
+
if (value[$scope.objKey] == null) {
|
|
2103
2118
|
_new = null;
|
|
2104
2119
|
} else {
|
|
2105
|
-
if ($scope.selectedIsObj){
|
|
2120
|
+
if ($scope.selectedIsObj) {
|
|
2106
2121
|
_new = value;
|
|
2107
2122
|
} else {
|
|
2108
2123
|
_new = value[$scope.objKey];
|
|
2109
2124
|
}
|
|
2110
2125
|
}
|
|
2111
2126
|
} else {
|
|
2112
|
-
if ($scope.selectedIsObj){
|
|
2127
|
+
if ($scope.selectedIsObj) {
|
|
2113
2128
|
_new = value;
|
|
2114
2129
|
} else {
|
|
2115
2130
|
_new = _.map(value, function (val) {
|
|
@@ -2119,7 +2134,7 @@ angular.module('niceElements')
|
|
|
2119
2134
|
}
|
|
2120
2135
|
|
|
2121
2136
|
// update model only if it is changed
|
|
2122
|
-
if (!_.isEqual(_new, $scope.model)){
|
|
2137
|
+
if (!_.isEqual(_new, $scope.model)) {
|
|
2123
2138
|
$scope.model = _new;
|
|
2124
2139
|
if ($scope.onChange) $scope.onChange({ model: $scope.model });
|
|
2125
2140
|
}
|
|
@@ -2127,11 +2142,11 @@ angular.module('niceElements')
|
|
|
2127
2142
|
|
|
2128
2143
|
|
|
2129
2144
|
// ----------------------------------- Init -----------------------------------
|
|
2130
|
-
var init = function() {
|
|
2145
|
+
var init = function () {
|
|
2131
2146
|
_set_internal_list();
|
|
2132
2147
|
_add_null_object_to_internal();
|
|
2133
2148
|
|
|
2134
|
-
if($scope.multiple && $scope.model){
|
|
2149
|
+
if ($scope.multiple && $scope.model) {
|
|
2135
2150
|
if ($scope.internalSelected) {
|
|
2136
2151
|
// remove already selected but not in list - this happens when list changes from outside
|
|
2137
2152
|
_set_internal_selected_multiple(_.filter($scope.internalSelected, function (obj) {
|
|
@@ -2143,7 +2158,7 @@ angular.module('niceElements')
|
|
|
2143
2158
|
}
|
|
2144
2159
|
|
|
2145
2160
|
// Set internalSelected
|
|
2146
|
-
if($scope.internalList && $scope.internalList.length>0){
|
|
2161
|
+
if ($scope.internalList && $scope.internalList.length > 0) {
|
|
2147
2162
|
$scope.emptyList = false;
|
|
2148
2163
|
|
|
2149
2164
|
if ($scope.multiple) {
|
|
@@ -2152,7 +2167,7 @@ angular.module('niceElements')
|
|
|
2152
2167
|
_set_internal_selected_one($scope.model);
|
|
2153
2168
|
}
|
|
2154
2169
|
|
|
2155
|
-
if($scope.formDropdown && $scope.required){
|
|
2170
|
+
if ($scope.formDropdown && $scope.required) {
|
|
2156
2171
|
$scope.formDropdown.$setValidity('required', true);
|
|
2157
2172
|
}
|
|
2158
2173
|
} else {
|
|
@@ -2163,7 +2178,7 @@ angular.module('niceElements')
|
|
|
2163
2178
|
sel[$scope.objValue] = $scope.noOptionsText;
|
|
2164
2179
|
$scope.internalList = [sel];
|
|
2165
2180
|
|
|
2166
|
-
if($scope.formDropdown && $scope.required){
|
|
2181
|
+
if ($scope.formDropdown && $scope.required) {
|
|
2167
2182
|
$scope.formDropdown.$setValidity('required', false); // Form is not valid because dropdown is empty and required
|
|
2168
2183
|
}
|
|
2169
2184
|
|
|
@@ -2177,12 +2192,12 @@ angular.module('niceElements')
|
|
|
2177
2192
|
|
|
2178
2193
|
|
|
2179
2194
|
// ----------------------------------- Is Item selected -----------------------------------
|
|
2180
|
-
$scope.isItemSelected = function(item){
|
|
2195
|
+
$scope.isItemSelected = function (item) {
|
|
2181
2196
|
if (!$scope.internalSelected) return false;
|
|
2182
2197
|
|
|
2183
2198
|
// Which item is selected
|
|
2184
2199
|
if ($scope.multiple) {
|
|
2185
|
-
return _.where($scope.internalSelected, {'id':item.id}).length > 0;
|
|
2200
|
+
return _.where($scope.internalSelected, { 'id': item.id }).length > 0;
|
|
2186
2201
|
} else {
|
|
2187
2202
|
return $scope.internalSelected[$scope.objKey] == item[$scope.objKey];
|
|
2188
2203
|
}
|
|
@@ -2190,12 +2205,12 @@ angular.module('niceElements')
|
|
|
2190
2205
|
|
|
2191
2206
|
|
|
2192
2207
|
// ----------------------------------- Item clicked -----------------------------------
|
|
2193
|
-
$scope.clicked = function(item){
|
|
2208
|
+
$scope.clicked = function (item) {
|
|
2194
2209
|
$scope.formDropdown.$setDirty();
|
|
2195
|
-
if($scope.multiple){
|
|
2210
|
+
if ($scope.multiple) {
|
|
2196
2211
|
// This actually toggles selection
|
|
2197
2212
|
var _current = angular.copy($scope.internalSelected);
|
|
2198
|
-
if(!_.find(_current, getFilter(item))){
|
|
2213
|
+
if (!_.find(_current, getFilter(item))) {
|
|
2199
2214
|
_current.push(item);
|
|
2200
2215
|
} else {
|
|
2201
2216
|
_current = _.reject(_current, getFilter(item[$scope.objKey]));
|
|
@@ -2210,7 +2225,7 @@ angular.module('niceElements')
|
|
|
2210
2225
|
|
|
2211
2226
|
|
|
2212
2227
|
// ----------------------------------- Get label -----------------------------------
|
|
2213
|
-
$scope.getLabel = function(item){
|
|
2228
|
+
$scope.getLabel = function (item) {
|
|
2214
2229
|
if (item) {
|
|
2215
2230
|
return item[$scope.objValue];
|
|
2216
2231
|
} else {
|
|
@@ -2233,14 +2248,14 @@ angular.module('niceElements')
|
|
|
2233
2248
|
var _new_model_object = _get_selected_objects(value_new);
|
|
2234
2249
|
}
|
|
2235
2250
|
|
|
2236
|
-
if (!_.isEqual(_new_model_object, $scope.internalSelected)){
|
|
2251
|
+
if (!_.isEqual(_new_model_object, $scope.internalSelected)) {
|
|
2237
2252
|
init();
|
|
2238
2253
|
}
|
|
2239
2254
|
});
|
|
2240
2255
|
|
|
2241
2256
|
|
|
2242
2257
|
// ----------------------------------- Listen keydown -----------------------------------
|
|
2243
|
-
$scope.bindKeypress = function(){
|
|
2258
|
+
$scope.bindKeypress = function () {
|
|
2244
2259
|
if ($scope.listenKeydown) {
|
|
2245
2260
|
$element.bind('keyup', function (e) {
|
|
2246
2261
|
// bind to keypress events if dropdown list is opened
|
|
@@ -2267,8 +2282,8 @@ angular.module('niceElements')
|
|
|
2267
2282
|
}
|
|
2268
2283
|
};
|
|
2269
2284
|
|
|
2270
|
-
$scope.unbindKeypress = function(){
|
|
2271
|
-
$element.off('keyup', function (e) {});
|
|
2285
|
+
$scope.unbindKeypress = function () {
|
|
2286
|
+
$element.off('keyup', function (e) { });
|
|
2272
2287
|
};
|
|
2273
2288
|
|
|
2274
2289
|
}
|
|
@@ -2700,6 +2715,7 @@ angular.module('niceElements')
|
|
|
2700
2715
|
},
|
|
2701
2716
|
templateUrl: 'src/components/nice-dtp/nice-dtp.html',
|
|
2702
2717
|
controller: function ($scope, $element, $attrs, gettextCatalog) {
|
|
2718
|
+
console.warn("[NICE ELEMENTS] nice-dtp component is deprecated!");
|
|
2703
2719
|
|
|
2704
2720
|
// default parameters
|
|
2705
2721
|
var params = {
|
|
@@ -5378,9 +5394,12 @@ angular.module('niceElements')
|
|
|
5378
5394
|
* Filter in the niceElements.
|
|
5379
5395
|
*/
|
|
5380
5396
|
angular.module('niceElements').filter('niceDate', function () {
|
|
5381
|
-
return function(object,
|
|
5397
|
+
return function (object, addTime, addSeconds) {
|
|
5382
5398
|
var formatString = "D.M.YYYY";
|
|
5383
|
-
if (
|
|
5399
|
+
if (addTime) {
|
|
5400
|
+
formatString = "D.M.YYYY • H:mm";
|
|
5401
|
+
if (addSeconds) formatString += ":ss";
|
|
5402
|
+
}
|
|
5384
5403
|
return moment(object).format(formatString);
|
|
5385
5404
|
};
|
|
5386
5405
|
});
|
|
@@ -5394,6 +5413,7 @@ angular.module('niceElements').filter('niceDate', function () {
|
|
|
5394
5413
|
*/
|
|
5395
5414
|
angular.module('niceElements').filter('niceHighlight', function () {
|
|
5396
5415
|
return function (value, highlightedText) {
|
|
5416
|
+
if (!value) return "";
|
|
5397
5417
|
var regex = new RegExp(highlightedText, 'gmi');
|
|
5398
5418
|
var newValue = String(value).replace(regex, "<span class='nice-highligh'>$&</span>");
|
|
5399
5419
|
return newValue;
|
|
@@ -5565,8 +5585,8 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
5565
5585
|
"<nice-help class=\"nice-title-help\" ng-if=\"help\" text=\"{{ help }}\"></nice-help>\n" +
|
|
5566
5586
|
"</div>\n" +
|
|
5567
5587
|
"<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
|
|
5568
|
-
"<div class=\"input-group nice-date-input\" ng-
|
|
5569
|
-
"<input type=\"text\" class=\"form-control\" ng-model=\"modelDate\" ng-blur=\"dateBlur()\" ng-disabled=\"isDisabled\">\n" +
|
|
5588
|
+
"<div class=\"input-group nice-date-input\" ng-show=\"date\" ng-class=\"{ 'has-warning': !disabled && niceDateInputForm.$invalid && niceDateInputForm.$dirty }\">\n" +
|
|
5589
|
+
"<input type=\"text\" class=\"form-control\" ng-model=\"modelDate\" ng-blur=\"dateBlur($event)\" ng-disabled=\"isDisabled\">\n" +
|
|
5570
5590
|
"<nice-popup placement=\"bottom\">\n" +
|
|
5571
5591
|
"<nice-popup-target>\n" +
|
|
5572
5592
|
"<button class=\"input-group-addon btn btn-default\" tabindex=\"-1\">\n" +
|
|
@@ -5574,12 +5594,12 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
5574
5594
|
"</button>\n" +
|
|
5575
5595
|
"</nice-popup-target>\n" +
|
|
5576
5596
|
"<nice-popup-content>\n" +
|
|
5577
|
-
"<nice-date is-inline=\"true\" inline=\"true\" model=\"
|
|
5597
|
+
"<nice-date is-inline=\"true\" inline=\"true\" model=\"inner.dateModel\" on-change=\"dateChanged()\" no-margin=\"true\"></nice-date>\n" +
|
|
5578
5598
|
"</nice-popup-content>\n" +
|
|
5579
5599
|
"</nice-popup>\n" +
|
|
5580
5600
|
"</div>\n" +
|
|
5581
|
-
"<div class=\"input-group nice-time-input\" ng-
|
|
5582
|
-
"<input type=\"text\" class=\"form-control\" ng-model=\"modelTime\" ng-blur=\"timeBlur()\" ng-disabled=\"isDisabled\">\n" +
|
|
5601
|
+
"<div class=\"input-group nice-time-input\" ng-show=\"time\" ng-class=\"{ 'has-warning': !disabled && niceDateInputForm.$invalid && niceDateInputForm.$dirty }\">\n" +
|
|
5602
|
+
"<input type=\"text\" class=\"form-control\" ng-model=\"modelTime\" ng-blur=\"timeBlur($event)\" ng-disabled=\"isDisabled\">\n" +
|
|
5583
5603
|
"<nice-popup placement=\"bottom\">\n" +
|
|
5584
5604
|
"<nice-popup-target>\n" +
|
|
5585
5605
|
"<button class=\"input-group-addon btn btn-default\" tabindex=\"-1\">\n" +
|
|
@@ -5587,7 +5607,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
5587
5607
|
"</button>\n" +
|
|
5588
5608
|
"</nice-popup-target>\n" +
|
|
5589
5609
|
"<nice-popup-content>\n" +
|
|
5590
|
-
"<nice-date is-inline=\"true\" inline=\"true\"
|
|
5610
|
+
"<nice-date is-inline=\"true\" inline=\"true\" model=\"inner.timeModel\" on-change=\"timeChanged()\" time=\"true\" date=\"false\" no-margin=\"true\"></nice-date>\n" +
|
|
5591
5611
|
"</nice-popup-content>\n" +
|
|
5592
5612
|
"</nice-popup>\n" +
|
|
5593
5613
|
"</div>\n" +
|
|
@@ -5666,13 +5686,11 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
5666
5686
|
"<div class=\"nice-date-time\" ng-if=\"time\">\n" +
|
|
5667
5687
|
"<nice-icon icon=\"icon-clock\"></nice-icon>\n" +
|
|
5668
5688
|
"<div class=\"time-picker time-picker-hour\">\n" +
|
|
5669
|
-
"<select ng-disabled=\"isDisabled\" ng-model=\"innerDate.hour\" ng-change=\"timeChange()\" ng-options=\"hour as hour for hour in hours track by hour\">\n" +
|
|
5670
|
-
"</select>\n" +
|
|
5689
|
+
"<select ng-disabled=\"isDisabled\" ng-model=\"innerDate.hour\" ng-change=\"timeChange()\" ng-options=\"hour as hour for hour in hours track by hour\"></select>\n" +
|
|
5671
5690
|
"</div>\n" +
|
|
5672
5691
|
"<div class=\"divider\">:</div>\n" +
|
|
5673
5692
|
"<div class=\"time-picker time-picker-minute\">\n" +
|
|
5674
|
-
"<select ng-disabled=\"isDisabled\" ng-model=\"innerDate.minute\" ng-change=\"timeChange()\" ng-options=\"minute as minute for minute in minutes track by minute\">\n" +
|
|
5675
|
-
"</select>\n" +
|
|
5693
|
+
"<select ng-disabled=\"isDisabled\" ng-model=\"innerDate.minute\" ng-change=\"timeChange()\" ng-options=\"minute as minute for minute in minutes track by minute\"></select>\n" +
|
|
5676
5694
|
"</div>\n" +
|
|
5677
5695
|
"</div>\n" +
|
|
5678
5696
|
"</div>\n" +
|