nice-elements 1.12.1 → 1.12.3
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/.vscode/settings.json +18 -18
- package/CHANGELOG.md +537 -525
- package/LICENSE.md +21 -21
- package/README.md +98 -98
- package/bower.json +17 -17
- package/dist/nice.js +11318 -8411
- package/dist/nice.min.js +1 -1
- package/dist/style.css +17 -7
- package/dist/style.css.map +1 -1
- package/dist/style.min.css +8 -8
- package/eslint.config.mjs +32 -32
- package/package.json +44 -44
- package/src/components/nice-alert/nice-alert.html +6 -6
- package/src/components/nice-alert/nice-alert.js +28 -28
- package/src/components/nice-alert/nice-alert.scss +44 -44
- package/src/components/nice-button/nice-button.html +4 -4
- package/src/components/nice-button/nice-button.js +41 -41
- package/src/components/nice-button/nice-button.scss +16 -16
- package/src/components/nice-button-toggle/nice-button-toggle.html +9 -9
- package/src/components/nice-button-toggle/nice-button-toggle.js +23 -23
- package/src/components/nice-button-toggle/nice-button-toggle.scss +2 -2
- package/src/components/nice-calendar/nice-calendar.html +91 -91
- package/src/components/nice-calendar/nice-calendar.js +346 -346
- package/src/components/nice-calendar/nice-calendar.scss +288 -288
- package/src/components/nice-checkbox/nice-checkbox.html +5 -5
- package/src/components/nice-checkbox/nice-checkbox.js +34 -34
- package/src/components/nice-checkbox/nice-checkbox.scss +91 -91
- package/src/components/nice-choice/nice-choice.html +18 -18
- package/src/components/nice-choice/nice-choice.js +212 -212
- package/src/components/nice-choice/nice-choice.scss +110 -110
- package/src/components/nice-click-outside/nice-click-outside.js +105 -105
- package/src/components/nice-comment/nice-comment.html +10 -10
- package/src/components/nice-comment/nice-comment.js +71 -71
- package/src/components/nice-comment/nice-comment.scss +39 -39
- package/src/components/nice-date/nice-date.html +82 -79
- package/src/components/nice-date/nice-date.js +350 -333
- package/src/components/nice-date/nice-date.scss +305 -305
- package/src/components/nice-date-input/nice-date-input.html +49 -41
- package/src/components/nice-date-input/nice-date-input.js +128 -111
- package/src/components/nice-date-input/nice-date-input.scss +53 -46
- package/src/components/nice-date-range/nice-date-range.html +15 -15
- package/src/components/nice-date-range/nice-date-range.js +78 -78
- package/src/components/nice-date-range/nice-date-range.scss +390 -390
- package/src/components/nice-datetime-picker/nice-datetime-picker.html +29 -29
- package/src/components/nice-datetime-picker/nice-datetime-picker.js +89 -89
- package/src/components/nice-datetime-picker/nice-datetime-picker.scss +428 -428
- package/src/components/nice-datetimerange-picker/nice-datetimerange-picker.html +55 -55
- package/src/components/nice-datetimerange-picker/nice-datetimerange-picker.js +248 -248
- package/src/components/nice-datetimerange-picker/nice-datetimerange-picker.scss +73 -73
- package/src/components/nice-datetimerange-picker-2/nice-datetimerange-picker-2.html +44 -44
- package/src/components/nice-datetimerange-picker-2/nice-datetimerange-picker-2.js +175 -175
- package/src/components/nice-datetimerange-picker-2/nice-datetimerange-picker-2.scss +127 -127
- package/src/components/nice-dropdown/nice-dropdown.html +61 -61
- package/src/components/nice-dropdown/nice-dropdown.js +517 -517
- package/src/components/nice-dropdown/nice-dropdown.scss +262 -262
- package/src/components/nice-dropdown-date/nice-dropdown-date.html +28 -28
- package/src/components/nice-dropdown-date/nice-dropdown-date.js +132 -132
- package/src/components/nice-dropdown-date/nice-dropdown-date.scss +87 -87
- package/src/components/nice-dropdown-old/nice-dropdown-old.html +44 -44
- package/src/components/nice-dropdown-old/nice-dropdown-old.js +330 -330
- package/src/components/nice-dropdown-old/nice-dropdown-old.scss +129 -129
- package/src/components/nice-dtp/nice-dtp.html +91 -91
- package/src/components/nice-dtp/nice-dtp.js +835 -835
- package/src/components/nice-help/nice-help.html +6 -6
- package/src/components/nice-help/nice-help.js +58 -58
- package/src/components/nice-help/nice-help.scss +78 -78
- package/src/components/nice-input/nice-input.html +47 -48
- package/src/components/nice-input/nice-input.js +250 -249
- package/src/components/nice-input/nice-input.scss +130 -130
- package/src/components/nice-label/nice-label.html +10 -10
- package/src/components/nice-label/nice-label.js +32 -32
- package/src/components/nice-loader/nice-loader.html +6 -6
- package/src/components/nice-loader/nice-loader.js +28 -28
- package/src/components/nice-loader/nice-loader.scss +47 -47
- package/src/components/nice-no-data/nice-no-data.html +3 -3
- package/src/components/nice-no-data/nice-no-data.js +27 -27
- package/src/components/nice-no-data/nice-no-data.scss +26 -26
- package/src/components/nice-notification/nice-notification.html +3 -3
- package/src/components/nice-notification/nice-notification.js +124 -124
- package/src/components/nice-notification/nice-notification.scss +66 -66
- package/src/components/nice-number/nice-number.html +40 -40
- package/src/components/nice-number/nice-number.js +172 -172
- package/src/components/nice-number/nice-number.scss +18 -18
- package/src/components/nice-on-scroll/nice-on-scroll.js +17 -17
- package/src/components/nice-percent/nice-percent.html +24 -24
- package/src/components/nice-percent/nice-percent.js +95 -95
- package/src/components/nice-pill/nice-pill.html +3 -3
- package/src/components/nice-pill/nice-pill.js +29 -29
- package/src/components/nice-pill/nice-pill.scss +25 -25
- package/src/components/nice-popup/nice-popup.html +6 -6
- package/src/components/nice-popup/nice-popup.js +122 -122
- package/src/components/nice-popup/nice-popup.scss +43 -43
- package/src/components/nice-progress-bar/nice-progress-bar.html +15 -15
- package/src/components/nice-progress-bar/nice-progress-bar.js +55 -55
- package/src/components/nice-progress-bar/nice-progress-bar.scss +47 -47
- package/src/components/nice-quantity/nice-quantity.html +22 -22
- package/src/components/nice-quantity/nice-quantity.js +57 -57
- package/src/components/nice-quantity/nice-quantity.scss +51 -51
- package/src/components/nice-search/nice-search.html +44 -44
- package/src/components/nice-search/nice-search.js +243 -243
- package/src/components/nice-search/nice-search.scss +90 -90
- package/src/components/nice-search2/nice-search2.html +32 -32
- package/src/components/nice-search2/nice-search2.js +267 -267
- package/src/components/nice-search2/nice-search2.scss +80 -80
- package/src/components/nice-slot/nice-slot.html +10 -10
- package/src/components/nice-slot/nice-slot.js +31 -31
- package/src/components/nice-steps/nice-steps.scss +81 -81
- package/src/components/nice-svgs/nice-svgs.html +1275 -1275
- package/src/components/nice-svgs/nice-svgs.js +19 -19
- package/src/components/nice-table/nice-table.html +38 -38
- package/src/components/nice-table/nice-table.js +60 -60
- package/src/components/nice-table/nice-table.scss +112 -112
- package/src/components/nice-time-picker/nice-time-picker.html +43 -43
- package/src/components/nice-time-picker/nice-time-picker.js +85 -85
- package/src/components/nice-time-picker/nice-time-picker.scss +37 -37
- package/src/components/nice-title/nice-title.html +3 -3
- package/src/components/nice-title/nice-title.js +21 -21
- package/src/components/nice-toast/nice-toast.html +2 -2
- package/src/components/nice-toast/nice-toast.js +56 -56
- package/src/components/nice-toast/nice-toast.scss +74 -74
- package/src/components/nice-toggle/nice-toggle.html +12 -12
- package/src/components/nice-toggle/nice-toggle.js +56 -56
- package/src/components/nice-toggle/nice-toggle.scss +131 -131
- package/src/components/nice-tooltip/_nice-tooltip.scss +55 -55
- package/src/components/nice-tooltip/nice-tooltip.js +84 -84
- package/src/components/nice-upload/nice-upload.html +22 -22
- package/src/components/nice-upload/nice-upload.js +159 -159
- package/src/components/nice-upload/nice-upload.scss +85 -85
- package/src/components/nice-view/_nice-view.scss +62 -62
- package/src/components/nice-view/nice-view.html +12 -12
- package/src/components/nice-view/nice-view.js +30 -30
- package/src/components/nice-virtual-scroll/_nice-virtual-scroll.scss +17 -17
- package/src/components/nice-virtual-scroll/nice-virtual-scroll.html +12 -12
- package/src/components/nice-virtual-scroll/nice-virtual-scroll.js +70 -70
- package/src/components/nice-wrapper/_nice-wrapper.scss +87 -87
- package/src/components/nice-wrapper/nice-wrapper.html +12 -12
- package/src/components/nice-wrapper/nice-wrapper.js +44 -44
- package/src/components/nice-yesno/nice-yesno.html +14 -14
- package/src/components/nice-yesno/nice-yesno.js +111 -111
- package/src/components/nice-yesno/nice-yesno.scss +95 -95
- package/src/filters/nice-date.js +17 -17
- package/src/filters/nice-highlight.js +16 -16
- package/src/modals/nice-multilangual-modal/nice-multilangual-modal.html +30 -30
- package/src/modals/nice-multilangual-modal/nice-multilangual-modal.js +67 -67
- package/src/modals/nice-multilangual-modal/nice-multilangual-modal.scss +19 -19
- package/src/nice.js +2 -2
- package/src/services/nice-service.js +22 -22
- package/src/styles/_bootstrap-variables.scss +178 -178
- package/src/styles/_nice-buttons.scss +612 -612
- package/src/styles/_nice-common.scss +471 -472
- package/src/styles/_nice-ngdialog.scss +85 -85
- package/src/styles/_nice-spacing.scss +283 -283
- package/src/styles/_nice.scss +71 -71
- package/src/styles/_variables.scss +191 -191
|
@@ -1,92 +1,92 @@
|
|
|
1
|
-
<div class="nice-component nice-calendar" ng-form="formCalendar" ng-class="{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }">
|
|
2
|
-
<div class="row">
|
|
3
|
-
<!------------------------- Title ------------------------->
|
|
4
|
-
<nice-title text="title || niceTitle" help="help" required="required" label-width="labelWidth"></nice-title>
|
|
5
|
-
|
|
6
|
-
<!------------------------- Field ------------------------->
|
|
7
|
-
<div class="nice-field col-xs-12" ng-class="[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]">
|
|
8
|
-
<div class="disabled-shield" ng-if="isDisabled"></div>
|
|
9
|
-
|
|
10
|
-
<div class="nice-calendar-wrapper">
|
|
11
|
-
<div class="nice-calendar-weeks">
|
|
12
|
-
<div class="header">
|
|
13
|
-
<button type="button" class="btn" type="button" ng-click="previous()" title="{{ 'Previous month' | translate:'Nice' }}" ng-disabled="isDisabled"><i class="fa fa-angle-left"></i></button>
|
|
14
|
-
<span title="{{ month.format('M.YYYY' )}}">{{ month.format("MMMM, YYYY" )}}</span>
|
|
15
|
-
<button type="button" class="btn" type="button" ng-click="next()" title="{{ 'Next month' | translate:'Nice' }}" ng-disabled="isDisabled"><i class="fa fa-angle-right"></i></button>
|
|
16
|
-
</div>
|
|
17
|
-
|
|
18
|
-
<div class="week names">
|
|
19
|
-
<span class="day" translate translate-context="Nice">Mon</span>
|
|
20
|
-
<span class="day" translate translate-context="Nice">Tue</span>
|
|
21
|
-
<span class="day" translate translate-context="Nice">Wed</span>
|
|
22
|
-
<span class="day" translate translate-context="Nice">Thu</span>
|
|
23
|
-
<span class="day" translate translate-context="Nice">Fri</span>
|
|
24
|
-
<span class="day weekend" translate translate-context="Nice">Sat</span>
|
|
25
|
-
<span class="day weekend" translate translate-context="Nice">Sun</span>
|
|
26
|
-
</div>
|
|
27
|
-
|
|
28
|
-
<div class="week" ng-repeat="week in weeks">
|
|
29
|
-
<button type="button" class="day" type="button" title="{{ day.date.format('D.M.YYYY') }}" ng-class="{
|
|
30
|
-
today: day.isToday,
|
|
31
|
-
'different-month': !day.isCurrentMonth,
|
|
32
|
-
'start-selected': isSameDay(day.date, startDate),
|
|
33
|
-
'end-selected': isSameDay(day.date, endDate),
|
|
34
|
-
'selected': isBetweenRange(day.date),
|
|
35
|
-
'selecting-start': selectStart,
|
|
36
|
-
'selecting-end': !selectStart,
|
|
37
|
-
'weekend': day.isWeekday,
|
|
38
|
-
'disabled': day.isDisabled
|
|
39
|
-
}" ng-style="
|
|
40
|
-
(color && isBetweenRange(day.date)) && {'background-color': lighten(color) } ||
|
|
41
|
-
(color && isSameDay(day.date, startDate)) && {'background-color': color } ||
|
|
42
|
-
(color && isSameDay(day.date, endDate)) && {'background-color': color }
|
|
43
|
-
" ng-click="select(day)" ng-repeat="day in week.days" ng-disabled="isDisabled">
|
|
44
|
-
{{ day.number }}
|
|
45
|
-
<p class="popup" ng-if="!hideHover">{{ popupText }}</p>
|
|
46
|
-
</button>
|
|
47
|
-
</div>
|
|
48
|
-
</div>
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
<div class="nice-calendar-time" ng-if="time">
|
|
52
|
-
<div class="time-picker">
|
|
53
|
-
<select title="{{ 'Select start time' | translate:'Nice' }}" class="time-picker-hour" ng-model="startDateHour" ng-change="startHourChange(startDateHour)" ng-options="hour for hour in hours" ng-disabled="isDisabled">
|
|
54
|
-
</select>
|
|
55
|
-
</div>
|
|
56
|
-
|
|
57
|
-
<div class="time-picker">
|
|
58
|
-
<select title="{{ 'Select start time' | translate:'Nice' }}" class="time-picker-minute" ng-model="startDateMinute" ng-change="startMinuteChange(startDateMinute)" ng-options="minute for minute in minutes" ng-disabled="isDisabled">
|
|
59
|
-
</select>
|
|
60
|
-
</div>
|
|
61
|
-
|
|
62
|
-
<div class="time-picker-icon">
|
|
63
|
-
<!-- <i class="fa fa-clock-o"></i> -->
|
|
64
|
-
<nice-icon icon="icon-clock"></nice-icon>
|
|
65
|
-
</div>
|
|
66
|
-
|
|
67
|
-
<div class="time-picker">
|
|
68
|
-
<select title="{{ 'Select end time' | translate:'Nice' }}" class="time-picker-hour" ng-model="endDateHour" ng-change="endHourChange(endDateHour)" ng-options="hour for hour in hours" ng-disabled="isDisabled">
|
|
69
|
-
</select>
|
|
70
|
-
</div>
|
|
71
|
-
|
|
72
|
-
<div class="time-picker no-border-right">
|
|
73
|
-
<select title="{{ 'Select end time' | translate:'Nice' }}" class="time-picker-minute" ng-model="endDateMinute" ng-change="endMinuteChange(endDateMinute)" ng-options="minute for minute in minutes" ng-disabled="isDisabled">
|
|
74
|
-
</select>
|
|
75
|
-
</div>
|
|
76
|
-
</div>
|
|
77
|
-
|
|
78
|
-
<div class="nice-selected-dates">
|
|
79
|
-
<div class="nice-start-date">
|
|
80
|
-
<label translate translate-context="Nice">Start</label>
|
|
81
|
-
<div ng-class="startTimeClass">{{ formatDate(startDate) }}</div>
|
|
82
|
-
</div>
|
|
83
|
-
<div class="nice-end-date">
|
|
84
|
-
<label translate translate-context="Nice">End</label>
|
|
85
|
-
<div ng-class="endTimeClass">{{ formatDate(endDate) }}</div>
|
|
86
|
-
</div>
|
|
87
|
-
</div>
|
|
88
|
-
</div>
|
|
89
|
-
</div>
|
|
90
|
-
|
|
91
|
-
</div>
|
|
1
|
+
<div class="nice-component nice-calendar" ng-form="formCalendar" ng-class="{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }">
|
|
2
|
+
<div class="row">
|
|
3
|
+
<!------------------------- Title ------------------------->
|
|
4
|
+
<nice-title text="title || niceTitle" help="help" required="required" label-width="labelWidth"></nice-title>
|
|
5
|
+
|
|
6
|
+
<!------------------------- Field ------------------------->
|
|
7
|
+
<div class="nice-field col-xs-12" ng-class="[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]">
|
|
8
|
+
<div class="disabled-shield" ng-if="isDisabled"></div>
|
|
9
|
+
|
|
10
|
+
<div class="nice-calendar-wrapper">
|
|
11
|
+
<div class="nice-calendar-weeks">
|
|
12
|
+
<div class="header">
|
|
13
|
+
<button type="button" class="btn" type="button" ng-click="previous()" title="{{ 'Previous month' | translate:'Nice' }}" ng-disabled="isDisabled"><i class="fa fa-angle-left"></i></button>
|
|
14
|
+
<span title="{{ month.format('M.YYYY' )}}">{{ month.format("MMMM, YYYY" )}}</span>
|
|
15
|
+
<button type="button" class="btn" type="button" ng-click="next()" title="{{ 'Next month' | translate:'Nice' }}" ng-disabled="isDisabled"><i class="fa fa-angle-right"></i></button>
|
|
16
|
+
</div>
|
|
17
|
+
|
|
18
|
+
<div class="week names">
|
|
19
|
+
<span class="day" translate translate-context="Nice">Mon</span>
|
|
20
|
+
<span class="day" translate translate-context="Nice">Tue</span>
|
|
21
|
+
<span class="day" translate translate-context="Nice">Wed</span>
|
|
22
|
+
<span class="day" translate translate-context="Nice">Thu</span>
|
|
23
|
+
<span class="day" translate translate-context="Nice">Fri</span>
|
|
24
|
+
<span class="day weekend" translate translate-context="Nice">Sat</span>
|
|
25
|
+
<span class="day weekend" translate translate-context="Nice">Sun</span>
|
|
26
|
+
</div>
|
|
27
|
+
|
|
28
|
+
<div class="week" ng-repeat="week in weeks">
|
|
29
|
+
<button type="button" class="day" type="button" title="{{ day.date.format('D.M.YYYY') }}" ng-class="{
|
|
30
|
+
today: day.isToday,
|
|
31
|
+
'different-month': !day.isCurrentMonth,
|
|
32
|
+
'start-selected': isSameDay(day.date, startDate),
|
|
33
|
+
'end-selected': isSameDay(day.date, endDate),
|
|
34
|
+
'selected': isBetweenRange(day.date),
|
|
35
|
+
'selecting-start': selectStart,
|
|
36
|
+
'selecting-end': !selectStart,
|
|
37
|
+
'weekend': day.isWeekday,
|
|
38
|
+
'disabled': day.isDisabled
|
|
39
|
+
}" ng-style="
|
|
40
|
+
(color && isBetweenRange(day.date)) && {'background-color': lighten(color) } ||
|
|
41
|
+
(color && isSameDay(day.date, startDate)) && {'background-color': color } ||
|
|
42
|
+
(color && isSameDay(day.date, endDate)) && {'background-color': color }
|
|
43
|
+
" ng-click="select(day)" ng-repeat="day in week.days" ng-disabled="isDisabled">
|
|
44
|
+
{{ day.number }}
|
|
45
|
+
<p class="popup" ng-if="!hideHover">{{ popupText }}</p>
|
|
46
|
+
</button>
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
<div class="nice-calendar-time" ng-if="time">
|
|
52
|
+
<div class="time-picker">
|
|
53
|
+
<select title="{{ 'Select start time' | translate:'Nice' }}" class="time-picker-hour" ng-model="startDateHour" ng-change="startHourChange(startDateHour)" ng-options="hour for hour in hours" ng-disabled="isDisabled">
|
|
54
|
+
</select>
|
|
55
|
+
</div>
|
|
56
|
+
|
|
57
|
+
<div class="time-picker">
|
|
58
|
+
<select title="{{ 'Select start time' | translate:'Nice' }}" class="time-picker-minute" ng-model="startDateMinute" ng-change="startMinuteChange(startDateMinute)" ng-options="minute for minute in minutes" ng-disabled="isDisabled">
|
|
59
|
+
</select>
|
|
60
|
+
</div>
|
|
61
|
+
|
|
62
|
+
<div class="time-picker-icon">
|
|
63
|
+
<!-- <i class="fa fa-clock-o"></i> -->
|
|
64
|
+
<nice-icon icon="icon-clock"></nice-icon>
|
|
65
|
+
</div>
|
|
66
|
+
|
|
67
|
+
<div class="time-picker">
|
|
68
|
+
<select title="{{ 'Select end time' | translate:'Nice' }}" class="time-picker-hour" ng-model="endDateHour" ng-change="endHourChange(endDateHour)" ng-options="hour for hour in hours" ng-disabled="isDisabled">
|
|
69
|
+
</select>
|
|
70
|
+
</div>
|
|
71
|
+
|
|
72
|
+
<div class="time-picker no-border-right">
|
|
73
|
+
<select title="{{ 'Select end time' | translate:'Nice' }}" class="time-picker-minute" ng-model="endDateMinute" ng-change="endMinuteChange(endDateMinute)" ng-options="minute for minute in minutes" ng-disabled="isDisabled">
|
|
74
|
+
</select>
|
|
75
|
+
</div>
|
|
76
|
+
</div>
|
|
77
|
+
|
|
78
|
+
<div class="nice-selected-dates">
|
|
79
|
+
<div class="nice-start-date">
|
|
80
|
+
<label translate translate-context="Nice">Start</label>
|
|
81
|
+
<div ng-class="startTimeClass">{{ formatDate(startDate) }}</div>
|
|
82
|
+
</div>
|
|
83
|
+
<div class="nice-end-date">
|
|
84
|
+
<label translate translate-context="Nice">End</label>
|
|
85
|
+
<div ng-class="endTimeClass">{{ formatDate(endDate) }}</div>
|
|
86
|
+
</div>
|
|
87
|
+
</div>
|
|
88
|
+
</div>
|
|
89
|
+
</div>
|
|
90
|
+
|
|
91
|
+
</div>
|
|
92
92
|
</div>
|