isite 2024.8.15 → 2024.8.17

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.
Files changed (31) hide show
  1. package/README.md +1 -1
  2. package/apps/client-side/site_files/css/bootstrap5-addon.css +21 -13
  3. package/apps/client-side/site_files/css/dropdown.css +12 -8
  4. package/apps/client-side/site_files/css/effect.css +32 -11
  5. package/apps/client-side/site_files/css/form.css +8 -2
  6. package/apps/client-side/site_files/css/images.css +3 -38
  7. package/apps/client-side/site_files/css/layout.css +7 -2
  8. package/apps/client-side/site_files/css/table.css +4 -2
  9. package/apps/client-side/site_files/css/theme_paper.css +182 -182
  10. package/apps/client-side/site_files/html/directive/i-image.html +1 -1
  11. package/apps/client-side/site_files/html/directive/i-list.html +1 -1
  12. package/apps/client-side/site_files/html/directive-core/i-date.html +6 -50
  13. package/apps/client-side/site_files/js/bootstrap-5-addon.js +3 -0
  14. package/apps/client-side/site_files/js/bootstrap-5-directive.js +18 -7
  15. package/apps/client-side/site_files/js/directive.js +25 -33
  16. package/apps/client-side/site_files/js/ref.js +12 -12
  17. package/apps/client-side/site_files/js/ref.min.js +1 -1
  18. package/apps/client-side/site_files/js/site.js +49 -47
  19. package/apps/client-side/site_files/js/site.min.js +1 -1
  20. package/apps/security/site_files/html/login_modal.html +1 -1
  21. package/apps/security/site_files/html/register_modal.html +1 -1
  22. package/isite_files/html/login.html +1 -1
  23. package/isite_files/html/navbar.html +61 -52
  24. package/lib/collection.js +19 -16
  25. package/lib/mongodb.js +10 -4
  26. package/lib/parser.js +1 -0
  27. package/lib/security.js +3 -0
  28. package/lib/session.js +3 -0
  29. package/lib/words.js +2 -0
  30. package/object-options/lib/fn.js +8 -0
  31. package/package.json +1 -1
package/README.md CHANGED
@@ -959,7 +959,7 @@ site.on('mongodb after delete many' , (result)=>{
959
959
  site.mongodb.deleteOne({
960
960
  dbName: 'company',
961
961
  collectionName: 'employess',
962
- where:{_id: new site.mongodb.ObjectID('df54fdt8h3n48ykd136vg')}
962
+ where:{_id: new site.mongodb.ObjectId('df54fdt8h3n48ykd136vg')}
963
963
  }, function (err, result) {
964
964
  if (err) {
965
965
  site.log(err.message)
@@ -41,10 +41,14 @@ body {
41
41
  float: right;
42
42
  margin-right: -1.5em;
43
43
  }
44
+ a {
45
+ word-wrap: break-word;
46
+ }
44
47
  .form-label {
45
- margin-bottom: 0.5rem;
46
- margin-left: 5px;
47
- border-bottom: 1px solid #00000061;
48
+ margin-bottom: 5px;
49
+ margin-left: 7px;
50
+ margin-right: 7px;
51
+ border-bottom: 1px solid var(--label-color);
48
52
  }
49
53
  label {
50
54
  float: left;
@@ -62,11 +66,12 @@ fieldset {
62
66
  margin: var(--fieldset-margin);
63
67
  background: var(--fieldset-background);
64
68
  border: var(--fieldset-border);
65
- border-radius: 10px;
69
+ border-radius: var(--fieldset-border-radius);
66
70
  max-width: 98% !important;
67
71
  }
68
72
 
69
73
  fieldset legend {
74
+ display: contents;
70
75
  color: var(--legend-color);
71
76
  font-size: var(--legend-font-size);
72
77
  text-shadow: var(--legend-text-shadow);
@@ -81,13 +86,13 @@ fieldset legend {
81
86
  .AR fieldset legend {
82
87
  float: right;
83
88
  }
84
- legend::after {
85
- content: ' : ';
86
- }
87
89
  .border {
88
90
  border: 1px solid #ced4da !important;
89
91
  border-radius: 0.375rem;
90
92
  }
93
+ i-control {
94
+ display: block;
95
+ }
91
96
  i-textarea {
92
97
  margin: 0px;
93
98
  }
@@ -118,6 +123,9 @@ i-button button {
118
123
  padding: 7px 9px !important;
119
124
  max-height: 40px;
120
125
  }
126
+ table i-button button {
127
+ margin-top: 0px !important;
128
+ }
121
129
  i-button.default button {
122
130
  margin: 3px;
123
131
  padding: 3px;
@@ -195,19 +203,19 @@ i-datetime input {
195
203
  .dropdown-content {
196
204
  display: none;
197
205
  position: absolute;
198
- top: 30px !important;
206
+ top: 75px !important;
199
207
  background-color: #ffffff;
200
208
  width: 100%;
201
- box-shadow: 0px 20px 16px 16px rgb(0 0 0);
202
209
  z-index: 999;
203
210
  max-height: 75vh;
204
- min-height: 20%;
205
211
  padding: 0px;
206
212
  margin: 0;
207
- scroll-behavior: auto;
213
+ scroll-behavior: smooth;
208
214
  overflow: auto;
209
- border: 5px solid #6b6868;
210
- transition: all 0.2s ease;
215
+ border: 5px solid var(--theme-color);
216
+ border-top: 10px solid var(--theme-color);
217
+ border-bottom: 10px solid var(--theme-color);
218
+ border-radius: 5px;
211
219
  }
212
220
  .v-tabs .nav-link {
213
221
  color: #aaa !important;
@@ -9,23 +9,26 @@
9
9
  .dropdown-content {
10
10
  display: none;
11
11
  position: absolute;
12
- top: 40px;
12
+ top: 75px !important;
13
13
  background-color: #ffffff;
14
14
  width: 100%;
15
- box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
16
15
  z-index: 999;
17
- max-height: 50vh;
16
+ max-height: 75vh;
17
+ min-height: 20%;
18
18
  padding: 0px;
19
+ margin: 0;
19
20
  scroll-behavior: auto;
20
21
  overflow: auto;
21
- border: 1px solid var(--theme-color);
22
+ border: 3px solid var(--theme-color);
23
+ border-radius: 10px;
24
+ box-shadow: 1px 1px 8px 2px #000;
22
25
  }
23
26
 
24
27
  .dropdown .dropdown-search {
25
28
  padding: 5px;
26
29
  position: sticky;
27
30
  top: 0;
28
- background: #eee;
31
+ background: var(--theme-color);
29
32
  }
30
33
  .dropdown .dropdown-search i-control2 {
31
34
  display: inline-block;
@@ -40,7 +43,7 @@
40
43
  }
41
44
  /* Links inside the dropdown */
42
45
  .dropdown-content p {
43
- color: black;
46
+ color: var(--color);
44
47
  background-color: #ffffff;
45
48
  padding: 12px 16px;
46
49
  text-decoration: none;
@@ -49,7 +52,8 @@
49
52
 
50
53
  /* Change color of dropdown links on hover */
51
54
  .dropdown-content .dropdown-item:hover {
52
- background-color: #bbbbbb;
55
+ background-color: #7c7c7c;
56
+ --color: #ffffff;
53
57
  }
54
58
 
55
59
  /* Show the dropdown menu on hover
@@ -70,12 +74,12 @@ i-list .dropdown-item {
70
74
  .dropdown-item p {
71
75
  color: var(--color);
72
76
  font-size: 16px;
73
- font-weight: bold;
74
77
  background: transparent;
75
78
  text-align: center;
76
79
  padding: 0;
77
80
  }
78
81
  .ar .dropdown-item p,
82
+ .rtl .dropdown-item p,
79
83
  .AR .dropdown-item p {
80
84
  text-align: right;
81
85
  }
@@ -110,17 +110,22 @@
110
110
  justify-content: center;
111
111
  }
112
112
  .center {
113
- margin: 0 auto ;
114
- text-align: center ;
115
- }
116
- .center,
117
- .center p,
118
- .center span,
119
- .center label,
120
- .center b,
121
- .center i,
122
- .center img {
123
- text-align: center !important;
113
+ margin: 0 auto;
114
+ display: flex;
115
+ flex-wrap: wrap;
116
+ justify-content: center;
117
+ align-items: center;
118
+ flex-direction: column;
119
+ align-content: center;
120
+ p,
121
+ b,
122
+ i,
123
+ img,
124
+ small,
125
+ span,
126
+ label {
127
+ text-align: center !important;
128
+ }
124
129
  }
125
130
 
126
131
  .center i.center {
@@ -369,3 +374,19 @@
369
374
  white-space: pre-line !important;
370
375
  }
371
376
  }
377
+
378
+ .zoom {
379
+ transition: transform 0.5s;
380
+ position: fixed;
381
+ top: 0;
382
+ left: 0;
383
+ right: 0;
384
+ border: 0;
385
+ width: 100% !important;
386
+ height: 100% !important;
387
+ object-fit: contain;
388
+ z-index: 99999999;
389
+ background: #000;
390
+ padding: 0;
391
+ margin: 0;
392
+ }
@@ -140,6 +140,8 @@ fieldset {
140
140
  margin: var(--fieldset-margin);
141
141
  background: var(--fieldset-background);
142
142
  border: var(--fieldset-border);
143
+ border-radius: var(--fieldset-border-radius);
144
+ max-width: 98% !important;
143
145
  }
144
146
 
145
147
  fieldset legend {
@@ -179,9 +181,13 @@ fieldset legend {
179
181
  font-size: 16px;
180
182
  color: #000;
181
183
  }
182
- .i-date2 .fa {
183
- font-size: 18px;
184
+ .i-date2 label {
185
+ display: none;
186
+ }
187
+ .i-date2 .fa-calendar-day {
188
+ font-size: 35px;
184
189
  cursor: pointer;
190
+ color: var(--theme-color);
185
191
  }
186
192
  i-file {
187
193
  display: block;
@@ -1,4 +1,3 @@
1
-
2
1
  .image {
3
2
  width: 400px;
4
3
  height: 300px;
@@ -14,11 +13,11 @@ i-image {
14
13
  border-radius: 5px;
15
14
  padding: 5px;
16
15
  }
17
- i-image div{
16
+ i-image div {
18
17
  width: 100%;
19
18
  height: 100%;
20
19
  }
21
- i-image button i{
20
+ i-image button i {
22
21
  width: 100%;
23
22
  }
24
23
  i-image.logo {
@@ -42,7 +41,7 @@ i-image i-button {
42
41
 
43
42
  i-image.full img {
44
43
  width: 100% !important;
45
- height: auto !important;
44
+ height: 100% !important;
46
45
  padding: 5px;
47
46
  }
48
47
 
@@ -53,12 +52,6 @@ i-image.img32 {
53
52
  min-height: 32px !important;
54
53
  padding: 1px !important;
55
54
  }
56
- i-image.img32 img {
57
- width: 30px !important;
58
- height: 30px !important;
59
- min-width: 30px !important;
60
- min-height: 30px !important;
61
- }
62
55
 
63
56
  i-image.img48 {
64
57
  width: 48px !important;
@@ -67,12 +60,6 @@ i-image.img48 {
67
60
  min-height: 48px !important;
68
61
  padding: 2px !important;
69
62
  }
70
- i-image.img48 img {
71
- width: 44px !important;
72
- height: 44px !important;
73
- min-width: 44px !important;
74
- min-height: 44px !important;
75
- }
76
63
 
77
64
  i-image.img64 {
78
65
  width: 64px !important;
@@ -81,12 +68,6 @@ i-image.img64 {
81
68
  min-height: 64px !important;
82
69
  padding: 2px !important;
83
70
  }
84
- i-image.img64 img {
85
- width: 60px !important;
86
- height: 60px !important;
87
- min-width: 60px !important;
88
- min-height: 60px !important;
89
- }
90
71
 
91
72
  i-image.img128 {
92
73
  width: 128px !important;
@@ -95,12 +76,6 @@ i-image.img128 {
95
76
  min-height: 128px !important;
96
77
  padding: 3px !important;
97
78
  }
98
- i-image.img128 img {
99
- width: 120px !important;
100
- height: 120px !important;
101
- min-width: 120px !important;
102
- min-height: 120px !important;
103
- }
104
79
 
105
80
  i-image.img256 {
106
81
  width: 256px !important;
@@ -109,12 +84,6 @@ i-image.img256 {
109
84
  min-height: 256px !important;
110
85
  padding: 3px !important;
111
86
  }
112
- i-image.img256 img {
113
- width: 200px !important;
114
- height: 200px !important;
115
- min-width: 200px !important;
116
- min-height: 200px !important;
117
- }
118
87
 
119
88
  i-image.hover img:hover {
120
89
  transform: scale(1.1);
@@ -126,7 +95,3 @@ i-image[view] {
126
95
  i-image[view] i-button {
127
96
  display: none;
128
97
  }
129
- i-image[view] img {
130
- background-image: none;
131
- background-color: transparent;
132
- }
@@ -100,7 +100,12 @@ h3 {
100
100
  padding: 0;
101
101
  margin: 0;
102
102
  float: var(--float);
103
- display: inline-block !important;
103
+ display: flex;
104
+ justify-content: flex-start;
105
+ align-items: stretch;
106
+ flex-direction: column;
107
+ align-content: stretch;
108
+ flex-wrap: nowrap;
104
109
  }
105
110
  .col-1,
106
111
  .col-2,
@@ -223,7 +228,7 @@ h3 {
223
228
  .row,
224
229
  fieldset,
225
230
  .container {
226
- max-width: 100vw !important;
231
+ /*max-width: 100vw !important;*/
227
232
  margin: 0 !important;
228
233
  }
229
234
  .row,
@@ -48,9 +48,11 @@
48
48
  font-weight: bold;
49
49
  white-space: nowrap;
50
50
  }
51
-
51
+ table td.center {
52
+ display: table-cell !important;
53
+ }
52
54
  .table.center {
53
- text-align: center !important;
55
+ display: table !important;
54
56
  }
55
57
 
56
58
  .table.center * {