nice-elements 1.10.10 → 1.10.11
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 +17 -17
- package/CHANGELOG.md +468 -464
- package/LICENSE.md +21 -21
- package/README.md +95 -95
- package/bower.json +10 -10
- package/dist/nice.js +8150 -8110
- package/dist/nice.min.js +1 -1
- package/dist/style.css +7 -7
- package/dist/style.min.css +7 -7
- package/eslint.config.mjs +27 -27
- package/package.json +45 -45
- 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 +336 -336
- package/src/components/nice-calendar/nice-calendar.scss +285 -285
- 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 +79 -79
- package/src/components/nice-date/nice-date.js +331 -331
- package/src/components/nice-date/nice-date.scss +305 -305
- package/src/components/nice-date-input/nice-date-input.html +41 -41
- package/src/components/nice-date-input/nice-date-input.js +111 -111
- package/src/components/nice-date-input/nice-date-input.scss +45 -45
- 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 +174 -174
- 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 +510 -510
- package/src/components/nice-dropdown/nice-dropdown.scss +261 -261
- package/src/components/nice-dropdown-date/nice-dropdown-date.html +28 -28
- package/src/components/nice-dropdown-date/nice-dropdown-date.js +128 -128
- package/src/components/nice-dropdown-date/nice-dropdown-date.scss +82 -82
- package/src/components/nice-dropdown-old/nice-dropdown-old.html +44 -44
- package/src/components/nice-dropdown-old/nice-dropdown-old.js +331 -331
- 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 +55 -55
- package/src/components/nice-help/nice-help.scss +78 -78
- package/src/components/nice-input/nice-input.html +48 -48
- package/src/components/nice-input/nice-input.js +245 -245
- 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 +30 -30
- 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 +170 -170
- package/src/components/nice-number/nice-number.scss +18 -18
- 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 +240 -240
- 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 +265 -265
- 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 +16 -16
- 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 +111 -111
- 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 +55 -55
- package/src/components/nice-toggle/nice-toggle.scss +131 -131
- package/src/components/nice-tooltip/_nice-tooltip.scss +71 -71
- package/src/components/nice-tooltip/nice-tooltip.js +23 -23
- 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-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 -471
- package/src/styles/_nice-ngdialog.scss +85 -85
- package/src/styles/_nice-spacing.scss +283 -283
- package/src/styles/_nice.scss +67 -67
- package/src/styles/_variables.scss +198 -198
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
<div class="nice-component nice-date" ng-form="forma" ng-class="{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }">
|
|
2
|
-
<div class="nice-date-background" ng-click="toggleOpen()" ng-if="isOpen && !inline"></div>
|
|
3
|
-
|
|
4
|
-
<div class="row">
|
|
5
|
-
<!------------------------- Title ------------------------->
|
|
6
|
-
<nice-title text="title || niceTitle" help="help" required="required" label-width="labelWidth"></nice-title>
|
|
7
|
-
|
|
8
|
-
<!------------------------- Field ------------------------->
|
|
9
|
-
<div class="nice-field col-xs-12" ng-class="[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]">
|
|
10
|
-
<div class="disabled-shield" ng-if="isDisabled"></div>
|
|
11
|
-
|
|
12
|
-
<!------------------------------ Input ------------------------------>
|
|
13
|
-
<div class="nice-date-button input-group" ng-class="{ 'open': isOpen }" ng-show="!inline" ng-click="toggleOpen()">
|
|
14
|
-
<input type="text" class="form-control" value="{{ model | niceDate:time }}" readonly="readonly" ng-disabled="isDisabled" />
|
|
15
|
-
<span class="input-group-btn">
|
|
16
|
-
<button type="button" class="btn btn-default btn-right" ng-disabled="isDisabled">
|
|
17
|
-
<nice-icon icon="icon-calendar"></nice-icon>
|
|
18
|
-
</button>
|
|
19
|
-
</span>
|
|
20
|
-
</div>
|
|
21
|
-
|
|
22
|
-
<!-------- Dropdown -------->
|
|
23
|
-
<div ng-class="{ 'nice-date-dropdown-wrapper': !inline }">
|
|
24
|
-
<div ng-class="{ 'nice-date-dropdown': !inline, 'with-time': time, 'no-date': !date }" ng-if="inline || isOpen">
|
|
25
|
-
<!------------------------------ Date picker ------------------------------>
|
|
26
|
-
<div class="nice-date-date" ng-if="date" role="grid">
|
|
27
|
-
<div class="nice-date-header">
|
|
28
|
-
<span>
|
|
29
|
-
<select class="year-picker" ng-model="innerDate.year" ng-change="handleDateChange()" ng-options="year for year in years" ng-disabled="isDisabled"></select>
|
|
30
|
-
<span class="nice-date-header-comma">,</span>
|
|
31
|
-
<select class="month-picker" ng-model="innerDate.month" ng-change="handleDateChange()" ng-options="month.value as month.name for month in months" ng-disabled="isDisabled"></select>
|
|
32
|
-
</span>
|
|
33
|
-
<button type="button" class="btn btn-default-naked" ng-disabled="isDisabled" ng-click="previous()">
|
|
34
|
-
<nice-icon icon="icon-chevron-left"></nice-icon>
|
|
35
|
-
</button>
|
|
36
|
-
<button type="button" class="btn btn-default-naked" ng-disabled="isDisabled" ng-click="today()">
|
|
37
|
-
<nice-icon icon="icon-circle"></nice-icon>
|
|
38
|
-
</button>
|
|
39
|
-
<button type="button" class="btn btn-default-naked" ng-disabled="isDisabled" ng-click="next()">
|
|
40
|
-
<nice-icon icon="icon-chevron-right"></nice-icon>
|
|
41
|
-
</button>
|
|
42
|
-
</div>
|
|
43
|
-
|
|
44
|
-
<div class="nice-date-week names">
|
|
45
|
-
<span class="nice-date-day" ng-class="{ 'weekend': $index == 6 || $index == 5 }" ng-repeat="day in weekdays">{{ day }}</span>
|
|
46
|
-
</div>
|
|
47
|
-
|
|
48
|
-
<div class="nice-date-week" role="row" ng-repeat="week in weeks">
|
|
49
|
-
<button type="button" class="nice-date-day" role="gridcell" title="{{ day.value }}" ng-class="{
|
|
50
|
-
'today': day.isToday,
|
|
51
|
-
'different-month': !day.isCurrentMonth,
|
|
52
|
-
'selected': isSameDay(model, day.date),
|
|
53
|
-
'weekend': day.isWeekday,
|
|
54
|
-
'disabled': day.isDisabled,
|
|
55
|
-
'between': isBetween(day.date, model, nextDate)
|
|
56
|
-
}" ng-click="select(day)" ng-repeat="day in week.days" ng-disabled="isDisabled">
|
|
57
|
-
{{ day.number }}
|
|
58
|
-
</button>
|
|
59
|
-
</div>
|
|
60
|
-
</div>
|
|
61
|
-
|
|
62
|
-
<!------------------------------ Time picker ------------------------------>
|
|
63
|
-
<div class="nice-date-time" ng-if="time">
|
|
64
|
-
<nice-icon icon="icon-clock"></nice-icon>
|
|
65
|
-
|
|
66
|
-
<div class="time-picker time-picker-hour">
|
|
67
|
-
<select ng-disabled="isDisabled" ng-model="innerDate.hour" ng-change="timeChange()" ng-options="hour as hour for hour in hours track by hour" ng-disabled="isDisabled"></select>
|
|
68
|
-
</div>
|
|
69
|
-
|
|
70
|
-
<div class="divider">:</div>
|
|
71
|
-
|
|
72
|
-
<div class="time-picker time-picker-minute">
|
|
73
|
-
<select ng-disabled="isDisabled" ng-model="innerDate.minute" ng-change="timeChange()" ng-options="minute as minute for minute in minutes track by minute" ng-disabled="isDisabled"></select>
|
|
74
|
-
</div>
|
|
75
|
-
</div>
|
|
76
|
-
</div>
|
|
77
|
-
</div>
|
|
78
|
-
</div>
|
|
79
|
-
</div>
|
|
1
|
+
<div class="nice-component nice-date" ng-form="forma" ng-class="{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }">
|
|
2
|
+
<div class="nice-date-background" ng-click="toggleOpen()" ng-if="isOpen && !inline"></div>
|
|
3
|
+
|
|
4
|
+
<div class="row">
|
|
5
|
+
<!------------------------- Title ------------------------->
|
|
6
|
+
<nice-title text="title || niceTitle" help="help" required="required" label-width="labelWidth"></nice-title>
|
|
7
|
+
|
|
8
|
+
<!------------------------- Field ------------------------->
|
|
9
|
+
<div class="nice-field col-xs-12" ng-class="[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]">
|
|
10
|
+
<div class="disabled-shield" ng-if="isDisabled"></div>
|
|
11
|
+
|
|
12
|
+
<!------------------------------ Input ------------------------------>
|
|
13
|
+
<div class="nice-date-button input-group" ng-class="{ 'open': isOpen }" ng-show="!inline" ng-click="toggleOpen()">
|
|
14
|
+
<input type="text" class="form-control" value="{{ model | niceDate:time }}" readonly="readonly" ng-disabled="isDisabled" />
|
|
15
|
+
<span class="input-group-btn">
|
|
16
|
+
<button type="button" class="btn btn-default btn-right" ng-disabled="isDisabled">
|
|
17
|
+
<nice-icon icon="icon-calendar"></nice-icon>
|
|
18
|
+
</button>
|
|
19
|
+
</span>
|
|
20
|
+
</div>
|
|
21
|
+
|
|
22
|
+
<!-------- Dropdown -------->
|
|
23
|
+
<div ng-class="{ 'nice-date-dropdown-wrapper': !inline }">
|
|
24
|
+
<div ng-class="{ 'nice-date-dropdown': !inline, 'with-time': time, 'no-date': !date }" ng-if="inline || isOpen">
|
|
25
|
+
<!------------------------------ Date picker ------------------------------>
|
|
26
|
+
<div class="nice-date-date" ng-if="date" role="grid">
|
|
27
|
+
<div class="nice-date-header">
|
|
28
|
+
<span>
|
|
29
|
+
<select class="year-picker" ng-model="innerDate.year" ng-change="handleDateChange()" ng-options="year for year in years" ng-disabled="isDisabled"></select>
|
|
30
|
+
<span class="nice-date-header-comma">,</span>
|
|
31
|
+
<select class="month-picker" ng-model="innerDate.month" ng-change="handleDateChange()" ng-options="month.value as month.name for month in months" ng-disabled="isDisabled"></select>
|
|
32
|
+
</span>
|
|
33
|
+
<button type="button" class="btn btn-default-naked" ng-disabled="isDisabled" ng-click="previous()">
|
|
34
|
+
<nice-icon icon="icon-chevron-left"></nice-icon>
|
|
35
|
+
</button>
|
|
36
|
+
<button type="button" class="btn btn-default-naked" ng-disabled="isDisabled" ng-click="today()">
|
|
37
|
+
<nice-icon icon="icon-circle"></nice-icon>
|
|
38
|
+
</button>
|
|
39
|
+
<button type="button" class="btn btn-default-naked" ng-disabled="isDisabled" ng-click="next()">
|
|
40
|
+
<nice-icon icon="icon-chevron-right"></nice-icon>
|
|
41
|
+
</button>
|
|
42
|
+
</div>
|
|
43
|
+
|
|
44
|
+
<div class="nice-date-week names">
|
|
45
|
+
<span class="nice-date-day" ng-class="{ 'weekend': $index == 6 || $index == 5 }" ng-repeat="day in weekdays">{{ day }}</span>
|
|
46
|
+
</div>
|
|
47
|
+
|
|
48
|
+
<div class="nice-date-week" role="row" ng-repeat="week in weeks">
|
|
49
|
+
<button type="button" class="nice-date-day" role="gridcell" title="{{ day.value }}" ng-class="{
|
|
50
|
+
'today': day.isToday,
|
|
51
|
+
'different-month': !day.isCurrentMonth,
|
|
52
|
+
'selected': isSameDay(model, day.date),
|
|
53
|
+
'weekend': day.isWeekday,
|
|
54
|
+
'disabled': day.isDisabled,
|
|
55
|
+
'between': isBetween(day.date, model, nextDate)
|
|
56
|
+
}" ng-click="select(day)" ng-repeat="day in week.days" ng-disabled="isDisabled">
|
|
57
|
+
{{ day.number }}
|
|
58
|
+
</button>
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
|
|
62
|
+
<!------------------------------ Time picker ------------------------------>
|
|
63
|
+
<div class="nice-date-time" ng-if="time">
|
|
64
|
+
<nice-icon icon="icon-clock"></nice-icon>
|
|
65
|
+
|
|
66
|
+
<div class="time-picker time-picker-hour">
|
|
67
|
+
<select ng-disabled="isDisabled" ng-model="innerDate.hour" ng-change="timeChange()" ng-options="hour as hour for hour in hours track by hour" ng-disabled="isDisabled"></select>
|
|
68
|
+
</div>
|
|
69
|
+
|
|
70
|
+
<div class="divider">:</div>
|
|
71
|
+
|
|
72
|
+
<div class="time-picker time-picker-minute">
|
|
73
|
+
<select ng-disabled="isDisabled" ng-model="innerDate.minute" ng-change="timeChange()" ng-options="minute as minute for minute in minutes track by minute" ng-disabled="isDisabled"></select>
|
|
74
|
+
</div>
|
|
75
|
+
</div>
|
|
76
|
+
</div>
|
|
77
|
+
</div>
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
80
80
|
</div>
|