nice-elements 1.12.10 → 1.12.12
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 +589 -580
- package/LICENSE.md +21 -21
- package/README.md +102 -102
- package/bower.json +17 -17
- package/dist/nice.js +9200 -11639
- package/dist/nice.min.js +1 -1
- package/dist/style.css +12 -12
- 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 +29 -29
- package/src/components/nice-alert/nice-alert.scss +59 -59
- package/src/components/nice-avatar/nice-avatar.js +122 -122
- package/src/components/nice-avatar/nice-avatar.scss +4 -4
- 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 +20 -9
- package/src/components/nice-checkbox/nice-checkbox.js +38 -37
- package/src/components/nice-checkbox/nice-checkbox.scss +120 -120
- package/src/components/nice-choice/nice-choice.html +18 -18
- package/src/components/nice-choice/nice-choice.js +211 -211
- package/src/components/nice-choice/nice-choice.scss +110 -110
- 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 -82
- package/src/components/nice-date/nice-date.js +350 -350
- package/src/components/nice-date/nice-date.scss +305 -305
- package/src/components/nice-date-input/nice-date-input.html +56 -56
- package/src/components/nice-date-input/nice-date-input.js +143 -143
- package/src/components/nice-date-input/nice-date-input.scss +55 -55
- 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 +518 -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 -47
- package/src/components/nice-input/nice-input.js +251 -251
- 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 +1332 -1332
- 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 +6 -6
- package/src/components/nice-title/nice-title.js +22 -22
- 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 +57 -57
- package/src/components/nice-toggle/nice-toggle.scss +131 -131
- package/src/components/nice-upload/nice-upload.html +22 -22
- package/src/components/nice-upload/nice-upload.js +160 -160
- package/src/components/nice-upload/nice-upload.scss +85 -85
- package/src/components/nice-view/_nice-view.scss +63 -63
- package/src/components/nice-view/nice-view.html +12 -12
- package/src/components/nice-view/nice-view.js +29 -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/directives/nice-click-outside.js +105 -105
- package/src/directives/nice-infinite-loader.js +27 -27
- package/src/directives/nice-tooltip/_nice-tooltip.scss +55 -55
- package/src/directives/nice-tooltip/nice-tooltip.js +84 -84
- 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 +479 -479
- package/src/styles/_nice-ngdialog.scss +85 -85
- package/src/styles/_nice-spacing.scss +283 -283
- package/src/styles/_nice.scss +75 -75
- package/src/styles/_variables.scss +194 -194
|
@@ -1,131 +1,131 @@
|
|
|
1
|
-
.nice-input {
|
|
2
|
-
color: var(--nice-font-color);
|
|
3
|
-
display: block;
|
|
4
|
-
|
|
5
|
-
::-webkit-input-placeholder {
|
|
6
|
-
/* WebKit browsers */
|
|
7
|
-
color: $nice-input-placeholder-color;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
:-moz-placeholder {
|
|
11
|
-
/* Mozilla Firefox 4 to 18 */
|
|
12
|
-
color: $nice-input-placeholder-color;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
::-moz-placeholder {
|
|
16
|
-
/* Mozilla Firefox 19+ */
|
|
17
|
-
color: $nice-input-placeholder-color;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
:-ms-input-placeholder {
|
|
21
|
-
/* Internet Explorer 10+ */
|
|
22
|
-
color: $nice-input-placeholder-color;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
:disabled::-webkit-input-placeholder {
|
|
26
|
-
/* WebKit browsers */
|
|
27
|
-
color: $nice-input-disabled-bg;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
:disabled:-moz-placeholder {
|
|
31
|
-
/* Mozilla Firefox 4 to 18 */
|
|
32
|
-
color: $nice-input-disabled-bg;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
:disabled::-moz-placeholder {
|
|
36
|
-
/* Mozilla Firefox 19+ */
|
|
37
|
-
color: $nice-input-disabled-bg;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
:disabled:-ms-input-placeholder {
|
|
41
|
-
/* Internet Explorer 10+ */
|
|
42
|
-
color: $nice-input-disabled-bg;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
textarea {
|
|
46
|
-
border-right: 1px solid var(--nice-border-color) !important;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
.input-group {
|
|
51
|
-
margin-bottom: 0px;
|
|
52
|
-
width: 100%;
|
|
53
|
-
display: flex;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
.input-group-addon,
|
|
58
|
-
.input-group-btn {
|
|
59
|
-
flex-shrink: 0;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.input-group-btn {
|
|
63
|
-
background: transparent;
|
|
64
|
-
border: 1px solid var(--nice-border-color);
|
|
65
|
-
border-left: 0 none;
|
|
66
|
-
border-top-right-radius: var(--nice-border-radius);
|
|
67
|
-
border-bottom-right-radius: var(--nice-border-radius);
|
|
68
|
-
width: auto;
|
|
69
|
-
|
|
70
|
-
&:hover {
|
|
71
|
-
background: var(--nice-hover-color);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
&:active {
|
|
75
|
-
background: var(--nice-border-color);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.nice-icon {
|
|
79
|
-
width: 16px;
|
|
80
|
-
height: 16px;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.nice-input-addon-bubble {
|
|
84
|
-
position: absolute;
|
|
85
|
-
top: 3px;
|
|
86
|
-
right: 3px;
|
|
87
|
-
width: 10px;
|
|
88
|
-
height: 10px;
|
|
89
|
-
border-radius: 50%;
|
|
90
|
-
background: var(--nice-success-color);
|
|
91
|
-
color: #fff;
|
|
92
|
-
overflow: hidden;
|
|
93
|
-
font-size: 8px;
|
|
94
|
-
line-height: 10px;
|
|
95
|
-
text-align: center;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.input-group .form-control:first-child,
|
|
100
|
-
.input-group-addon:first-child,
|
|
101
|
-
.input-group-btn:first-child>.btn,
|
|
102
|
-
.input-group-btn:first-child>.btn-group>.btn,
|
|
103
|
-
.input-group-btn:first-child>.dropdown-toggle,
|
|
104
|
-
.input-group-btn:last-child>.btn-group:not(:last-child)>.btn,
|
|
105
|
-
.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle) {
|
|
106
|
-
border-radius: var(--nice-border-radius);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.input-group .form-control:last-child,
|
|
110
|
-
.input-group-addon:last-child,
|
|
111
|
-
.input-group-btn:first-child>.btn-group:not(:first-child)>.btn,
|
|
112
|
-
.input-group-btn:first-child>.btn:not(:first-child),
|
|
113
|
-
.input-group-btn:last-child>.btn,
|
|
114
|
-
.input-group-btn:last-child>.btn-group>.btn,
|
|
115
|
-
.input-group-btn:last-child>.dropdown-toggle {
|
|
116
|
-
border-radius: var(--nice-border-radius);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.symbol {
|
|
120
|
-
.form-control-feedback {
|
|
121
|
-
left: 0;
|
|
122
|
-
right: auto;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.form-control {
|
|
126
|
-
border-top-right-radius: 0;
|
|
127
|
-
border-bottom-right-radius: 0;
|
|
128
|
-
text-align: right;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
1
|
+
.nice-input {
|
|
2
|
+
color: var(--nice-font-color);
|
|
3
|
+
display: block;
|
|
4
|
+
|
|
5
|
+
::-webkit-input-placeholder {
|
|
6
|
+
/* WebKit browsers */
|
|
7
|
+
color: $nice-input-placeholder-color;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
:-moz-placeholder {
|
|
11
|
+
/* Mozilla Firefox 4 to 18 */
|
|
12
|
+
color: $nice-input-placeholder-color;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
::-moz-placeholder {
|
|
16
|
+
/* Mozilla Firefox 19+ */
|
|
17
|
+
color: $nice-input-placeholder-color;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
:-ms-input-placeholder {
|
|
21
|
+
/* Internet Explorer 10+ */
|
|
22
|
+
color: $nice-input-placeholder-color;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
:disabled::-webkit-input-placeholder {
|
|
26
|
+
/* WebKit browsers */
|
|
27
|
+
color: $nice-input-disabled-bg;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
:disabled:-moz-placeholder {
|
|
31
|
+
/* Mozilla Firefox 4 to 18 */
|
|
32
|
+
color: $nice-input-disabled-bg;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
:disabled::-moz-placeholder {
|
|
36
|
+
/* Mozilla Firefox 19+ */
|
|
37
|
+
color: $nice-input-disabled-bg;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
:disabled:-ms-input-placeholder {
|
|
41
|
+
/* Internet Explorer 10+ */
|
|
42
|
+
color: $nice-input-disabled-bg;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
textarea {
|
|
46
|
+
border-right: 1px solid var(--nice-border-color) !important;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
.input-group {
|
|
51
|
+
margin-bottom: 0px;
|
|
52
|
+
width: 100%;
|
|
53
|
+
display: flex;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
.input-group-addon,
|
|
58
|
+
.input-group-btn {
|
|
59
|
+
flex-shrink: 0;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.input-group-btn {
|
|
63
|
+
background: transparent;
|
|
64
|
+
border: 1px solid var(--nice-border-color);
|
|
65
|
+
border-left: 0 none;
|
|
66
|
+
border-top-right-radius: var(--nice-border-radius);
|
|
67
|
+
border-bottom-right-radius: var(--nice-border-radius);
|
|
68
|
+
width: auto;
|
|
69
|
+
|
|
70
|
+
&:hover {
|
|
71
|
+
background: var(--nice-hover-color);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&:active {
|
|
75
|
+
background: var(--nice-border-color);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.nice-icon {
|
|
79
|
+
width: 16px;
|
|
80
|
+
height: 16px;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.nice-input-addon-bubble {
|
|
84
|
+
position: absolute;
|
|
85
|
+
top: 3px;
|
|
86
|
+
right: 3px;
|
|
87
|
+
width: 10px;
|
|
88
|
+
height: 10px;
|
|
89
|
+
border-radius: 50%;
|
|
90
|
+
background: var(--nice-success-color);
|
|
91
|
+
color: #fff;
|
|
92
|
+
overflow: hidden;
|
|
93
|
+
font-size: 8px;
|
|
94
|
+
line-height: 10px;
|
|
95
|
+
text-align: center;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.input-group .form-control:first-child,
|
|
100
|
+
.input-group-addon:first-child,
|
|
101
|
+
.input-group-btn:first-child>.btn,
|
|
102
|
+
.input-group-btn:first-child>.btn-group>.btn,
|
|
103
|
+
.input-group-btn:first-child>.dropdown-toggle,
|
|
104
|
+
.input-group-btn:last-child>.btn-group:not(:last-child)>.btn,
|
|
105
|
+
.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle) {
|
|
106
|
+
border-radius: var(--nice-border-radius);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.input-group .form-control:last-child,
|
|
110
|
+
.input-group-addon:last-child,
|
|
111
|
+
.input-group-btn:first-child>.btn-group:not(:first-child)>.btn,
|
|
112
|
+
.input-group-btn:first-child>.btn:not(:first-child),
|
|
113
|
+
.input-group-btn:last-child>.btn,
|
|
114
|
+
.input-group-btn:last-child>.btn-group>.btn,
|
|
115
|
+
.input-group-btn:last-child>.dropdown-toggle {
|
|
116
|
+
border-radius: var(--nice-border-radius);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.symbol {
|
|
120
|
+
.form-control-feedback {
|
|
121
|
+
left: 0;
|
|
122
|
+
right: auto;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.form-control {
|
|
126
|
+
border-top-right-radius: 0;
|
|
127
|
+
border-bottom-right-radius: 0;
|
|
128
|
+
text-align: right;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
131
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
<div class="nice-component nice-label" 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-xs-8'">
|
|
8
|
-
<p class="value">{{ value }}</p>
|
|
9
|
-
</div>
|
|
10
|
-
</div>
|
|
1
|
+
<div class="nice-component nice-label" 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-xs-8'">
|
|
8
|
+
<p class="value">{{ value }}</p>
|
|
9
|
+
</div>
|
|
10
|
+
</div>
|
|
11
11
|
</div>
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @ngdoc directive
|
|
5
|
-
* @name niceElements.directive:niceLabel
|
|
6
|
-
* @description
|
|
7
|
-
* # niceLabel
|
|
8
|
-
*/
|
|
9
|
-
angular.module('niceElements')
|
|
10
|
-
.directive('niceLabel', function () {
|
|
11
|
-
return {
|
|
12
|
-
templateUrl: 'src/components/nice-label/nice-label.html',
|
|
13
|
-
restrict: 'E',
|
|
14
|
-
scope: {
|
|
15
|
-
fieldWidth: '@',
|
|
16
|
-
labelWidth: '@',
|
|
17
|
-
value: '@',
|
|
18
|
-
niceTitle: '@',
|
|
19
|
-
title: '@',
|
|
20
|
-
noMargin: '@',
|
|
21
|
-
isInline: '=',
|
|
22
|
-
help: '@',
|
|
23
|
-
required: '='
|
|
24
|
-
},
|
|
25
|
-
link: function postLink(scope, element, attrs) {
|
|
26
|
-
if (!attrs.fieldWidth) { attrs.fieldWidth = 'col-sm-8'; }
|
|
27
|
-
if (!attrs.labelWidth) { attrs.labelWidth = 'col-sm-4'; }
|
|
28
|
-
if (!attrs.value) { attrs.labelWidth = ''; }
|
|
29
|
-
if (!attrs.title) { attrs.labelWidth = ''; }
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
});
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @ngdoc directive
|
|
5
|
+
* @name niceElements.directive:niceLabel
|
|
6
|
+
* @description
|
|
7
|
+
* # niceLabel
|
|
8
|
+
*/
|
|
9
|
+
angular.module('niceElements')
|
|
10
|
+
.directive('niceLabel', function () {
|
|
11
|
+
return {
|
|
12
|
+
templateUrl: 'src/components/nice-label/nice-label.html',
|
|
13
|
+
restrict: 'E',
|
|
14
|
+
scope: {
|
|
15
|
+
fieldWidth: '@',
|
|
16
|
+
labelWidth: '@',
|
|
17
|
+
value: '@',
|
|
18
|
+
niceTitle: '@',
|
|
19
|
+
title: '@',
|
|
20
|
+
noMargin: '@',
|
|
21
|
+
isInline: '=',
|
|
22
|
+
help: '@',
|
|
23
|
+
required: '='
|
|
24
|
+
},
|
|
25
|
+
link: function postLink(scope, element, attrs) {
|
|
26
|
+
if (!attrs.fieldWidth) { attrs.fieldWidth = 'col-sm-8'; }
|
|
27
|
+
if (!attrs.labelWidth) { attrs.labelWidth = 'col-sm-4'; }
|
|
28
|
+
if (!attrs.value) { attrs.labelWidth = ''; }
|
|
29
|
+
if (!attrs.title) { attrs.labelWidth = ''; }
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
<div class="nice-loader" ng-class="{ 'nice-loader-fullscreen': fullscreen, 'nice-loader-fulldiv': fulldiv }">
|
|
2
|
-
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="40px" height="40px" viewBox="0 0 50 50" style="enable-background:new 0 0 50 50;" xml:space="preserve">
|
|
3
|
-
<path d="M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z"></path>
|
|
4
|
-
</svg>
|
|
5
|
-
<div class="nice-loader-message" ng-if="message">{{ message }}</div>
|
|
6
|
-
<ng-transclude ng-if="showSlot"></ng-transclude>
|
|
1
|
+
<div class="nice-loader" ng-class="{ 'nice-loader-fullscreen': fullscreen, 'nice-loader-fulldiv': fulldiv }">
|
|
2
|
+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="40px" height="40px" viewBox="0 0 50 50" style="enable-background:new 0 0 50 50;" xml:space="preserve">
|
|
3
|
+
<path d="M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z"></path>
|
|
4
|
+
</svg>
|
|
5
|
+
<div class="nice-loader-message" ng-if="message">{{ message }}</div>
|
|
6
|
+
<ng-transclude ng-if="showSlot"></ng-transclude>
|
|
7
7
|
</div>
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @ngdoc directive
|
|
5
|
-
* @name backofficeApp.directive:loader
|
|
6
|
-
* @description
|
|
7
|
-
* # loader
|
|
8
|
-
*/
|
|
9
|
-
angular.module('niceElements')
|
|
10
|
-
.directive('niceLoader', function () {
|
|
11
|
-
return {
|
|
12
|
-
templateUrl: 'src/components/nice-loader/nice-loader.html',
|
|
13
|
-
restrict: 'E',
|
|
14
|
-
transclude: true,
|
|
15
|
-
replace: true,
|
|
16
|
-
scope: {
|
|
17
|
-
visibleWhen: '=',
|
|
18
|
-
message: '@',
|
|
19
|
-
fullscreen: '@',
|
|
20
|
-
fulldiv: '@',
|
|
21
|
-
addClass: '@'
|
|
22
|
-
},
|
|
23
|
-
controller: function ($scope, $transclude) {
|
|
24
|
-
$scope.showSlot = $transclude().length > 0;
|
|
25
|
-
if ($scope.visibleWhen != undefined) console.warn("[NICE ELEMENTS] Nice loader: visible-when attribute is deprecated")
|
|
26
|
-
if ($scope.addClass != undefined) console.warn("[NICE ELEMENTS] Nice loader: add-class attribute is deprecated")
|
|
27
|
-
}
|
|
28
|
-
};
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @ngdoc directive
|
|
5
|
+
* @name backofficeApp.directive:loader
|
|
6
|
+
* @description
|
|
7
|
+
* # loader
|
|
8
|
+
*/
|
|
9
|
+
angular.module('niceElements')
|
|
10
|
+
.directive('niceLoader', function () {
|
|
11
|
+
return {
|
|
12
|
+
templateUrl: 'src/components/nice-loader/nice-loader.html',
|
|
13
|
+
restrict: 'E',
|
|
14
|
+
transclude: true,
|
|
15
|
+
replace: true,
|
|
16
|
+
scope: {
|
|
17
|
+
visibleWhen: '=',
|
|
18
|
+
message: '@',
|
|
19
|
+
fullscreen: '@',
|
|
20
|
+
fulldiv: '@',
|
|
21
|
+
addClass: '@'
|
|
22
|
+
},
|
|
23
|
+
controller: function ($scope, $transclude) {
|
|
24
|
+
$scope.showSlot = $transclude().length > 0;
|
|
25
|
+
if ($scope.visibleWhen != undefined) console.warn("[NICE ELEMENTS] Nice loader: visible-when attribute is deprecated")
|
|
26
|
+
if ($scope.addClass != undefined) console.warn("[NICE ELEMENTS] Nice loader: add-class attribute is deprecated")
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
29
|
});
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
.nice-loader {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
align-items: center;
|
|
5
|
-
justify-content: center;
|
|
6
|
-
gap: 3px;
|
|
7
|
-
color: var(--nice-primary-color);
|
|
8
|
-
|
|
9
|
-
svg {
|
|
10
|
-
animation: spin 0.5s infinite;
|
|
11
|
-
animation-delay: 0s;
|
|
12
|
-
width: 40px;
|
|
13
|
-
height: 40px;
|
|
14
|
-
fill: currentColor;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.nice-loader-message {
|
|
18
|
-
font-size: 0.8em;
|
|
19
|
-
opacity: 0.8;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
&.nice-loader-fulldiv,
|
|
23
|
-
&.nice-loader-fullscreen {
|
|
24
|
-
position: fixed;
|
|
25
|
-
top: 0;
|
|
26
|
-
left: 0;
|
|
27
|
-
width: 100%;
|
|
28
|
-
height: 100%;
|
|
29
|
-
background: rgba(255, 255, 255, 0.65);
|
|
30
|
-
z-index: 9999;
|
|
31
|
-
padding: 0;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
&.nice-loader-fulldiv {
|
|
35
|
-
position: absolute;
|
|
36
|
-
z-index: auto;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
@keyframes spin {
|
|
41
|
-
from {
|
|
42
|
-
transform: rotate(0deg);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
to {
|
|
46
|
-
transform: rotate(360deg);
|
|
47
|
-
}
|
|
1
|
+
.nice-loader {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
gap: 3px;
|
|
7
|
+
color: var(--nice-primary-color);
|
|
8
|
+
|
|
9
|
+
svg {
|
|
10
|
+
animation: spin 0.5s infinite;
|
|
11
|
+
animation-delay: 0s;
|
|
12
|
+
width: 40px;
|
|
13
|
+
height: 40px;
|
|
14
|
+
fill: currentColor;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.nice-loader-message {
|
|
18
|
+
font-size: 0.8em;
|
|
19
|
+
opacity: 0.8;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&.nice-loader-fulldiv,
|
|
23
|
+
&.nice-loader-fullscreen {
|
|
24
|
+
position: fixed;
|
|
25
|
+
top: 0;
|
|
26
|
+
left: 0;
|
|
27
|
+
width: 100%;
|
|
28
|
+
height: 100%;
|
|
29
|
+
background: rgba(255, 255, 255, 0.65);
|
|
30
|
+
z-index: 9999;
|
|
31
|
+
padding: 0;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&.nice-loader-fulldiv {
|
|
35
|
+
position: absolute;
|
|
36
|
+
z-index: auto;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@keyframes spin {
|
|
41
|
+
from {
|
|
42
|
+
transform: rotate(0deg);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
to {
|
|
46
|
+
transform: rotate(360deg);
|
|
47
|
+
}
|
|
48
48
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<div class="nice-no-data" ng-class="{ 'nice-no-data-fulldiv': fulldiv }">
|
|
2
|
-
<nice-icon class="nice-no-data-icon" icon="{{ innerIcon }}" ng-if="innerIcon"></nice-icon>
|
|
3
|
-
<div class="nice-no-data-message" ng-transclude>{{ innerMessage }}</div>
|
|
1
|
+
<div class="nice-no-data" ng-class="{ 'nice-no-data-fulldiv': fulldiv }">
|
|
2
|
+
<nice-icon class="nice-no-data-icon" icon="{{ innerIcon }}" ng-if="innerIcon"></nice-icon>
|
|
3
|
+
<div class="nice-no-data-message" ng-transclude>{{ innerMessage }}</div>
|
|
4
4
|
</div>
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @ngdoc directive
|
|
5
|
-
* @name niceElements.directive:niceNoData
|
|
6
|
-
* @description
|
|
7
|
-
* # niceNoData
|
|
8
|
-
*/
|
|
9
|
-
angular.module('niceElements')
|
|
10
|
-
.directive('niceNoData', function () {
|
|
11
|
-
return {
|
|
12
|
-
templateUrl: 'src/components/nice-no-data/nice-no-data.html',
|
|
13
|
-
restrict: 'E',
|
|
14
|
-
transclude: true,
|
|
15
|
-
replace: true,
|
|
16
|
-
scope: {
|
|
17
|
-
icon: '@?',
|
|
18
|
-
message: '@?',
|
|
19
|
-
fulldiv: '@?'
|
|
20
|
-
},
|
|
21
|
-
controller: function ($scope, gettextCatalog) {
|
|
22
|
-
if ($scope.icon == "" || !$scope.icon) $scope.innerIcon = "icon-alert-circle";
|
|
23
|
-
else $scope.innerIcon = $scope.icon;
|
|
24
|
-
if ($scope.message == "" || !$scope.message) $scope.innerMessage = gettextCatalog.getString("No data");
|
|
25
|
-
else $scope.innerMessage = $scope.message;
|
|
26
|
-
}
|
|
27
|
-
};
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @ngdoc directive
|
|
5
|
+
* @name niceElements.directive:niceNoData
|
|
6
|
+
* @description
|
|
7
|
+
* # niceNoData
|
|
8
|
+
*/
|
|
9
|
+
angular.module('niceElements')
|
|
10
|
+
.directive('niceNoData', function () {
|
|
11
|
+
return {
|
|
12
|
+
templateUrl: 'src/components/nice-no-data/nice-no-data.html',
|
|
13
|
+
restrict: 'E',
|
|
14
|
+
transclude: true,
|
|
15
|
+
replace: true,
|
|
16
|
+
scope: {
|
|
17
|
+
icon: '@?',
|
|
18
|
+
message: '@?',
|
|
19
|
+
fulldiv: '@?'
|
|
20
|
+
},
|
|
21
|
+
controller: function ($scope, gettextCatalog) {
|
|
22
|
+
if ($scope.icon == "" || !$scope.icon) $scope.innerIcon = "icon-alert-circle";
|
|
23
|
+
else $scope.innerIcon = $scope.icon;
|
|
24
|
+
if ($scope.message == "" || !$scope.message) $scope.innerMessage = gettextCatalog.getString("No data");
|
|
25
|
+
else $scope.innerMessage = $scope.message;
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
28
|
});
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
.nice-no-data {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
align-items: center;
|
|
5
|
-
justify-content: center;
|
|
6
|
-
padding: 2rem 1rem;
|
|
7
|
-
font-size: 0.9em;
|
|
8
|
-
gap: 0.3rem;
|
|
9
|
-
color: var(--nice-font-color-lighter);
|
|
10
|
-
|
|
11
|
-
&.nice-no-data-fulldiv {
|
|
12
|
-
position: absolute;
|
|
13
|
-
top: 0;
|
|
14
|
-
left: 0;
|
|
15
|
-
width: 100%;
|
|
16
|
-
height: 100%;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.nice-no-data-icon {
|
|
20
|
-
height: 24px;
|
|
21
|
-
width: 24px;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.nice-no-data-message {
|
|
25
|
-
}
|
|
26
|
-
}
|
|
1
|
+
.nice-no-data {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
padding: 2rem 1rem;
|
|
7
|
+
font-size: 0.9em;
|
|
8
|
+
gap: 0.3rem;
|
|
9
|
+
color: var(--nice-font-color-lighter);
|
|
10
|
+
|
|
11
|
+
&.nice-no-data-fulldiv {
|
|
12
|
+
position: absolute;
|
|
13
|
+
top: 0;
|
|
14
|
+
left: 0;
|
|
15
|
+
width: 100%;
|
|
16
|
+
height: 100%;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.nice-no-data-icon {
|
|
20
|
+
height: 24px;
|
|
21
|
+
width: 24px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.nice-no-data-message {
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<div class="notification">
|
|
2
|
-
<h3 ng-show="title" ng-bind-html="title"></h3>
|
|
3
|
-
<div class="message" ng-bind-html="message"></div>
|
|
1
|
+
<div class="notification">
|
|
2
|
+
<h3 ng-show="title" ng-bind-html="title"></h3>
|
|
3
|
+
<div class="message" ng-bind-html="message"></div>
|
|
4
4
|
</div>
|