@leavittsoftware/web 1.0.0 → 1.2.0

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 (74) hide show
  1. package/leavitt/api-service/api-service.js +5 -5
  2. package/leavitt/api-service/api-service.js.map +1 -1
  3. package/leavitt/api-service/odata-response.js +2 -2
  4. package/leavitt/api-service/odata-response.js.map +1 -1
  5. package/leavitt/company-select/company-select.js +10 -10
  6. package/leavitt/person-company-select/person-company-select.js +14 -14
  7. package/leavitt/person-group-select/person-group-select.js +18 -18
  8. package/leavitt/person-select/person-select.js +4 -4
  9. package/leavitt/profile-picture/profile-picture-menu.js +96 -96
  10. package/leavitt/profile-picture/profile-picture.js +64 -64
  11. package/leavitt/user-feedback/user-feedback.js +79 -79
  12. package/package.json +37 -36
  13. package/titanium/access-denied-page/access-denied-page.js +330 -330
  14. package/titanium/address-input/address-input.js +17 -17
  15. package/titanium/address-input/address-input.js.map +1 -1
  16. package/titanium/address-input/google-address-input.js +4 -4
  17. package/titanium/address-input/manual-address-dialog.js +127 -127
  18. package/titanium/card/card.js +117 -117
  19. package/titanium/chip-multi-select/chip-multi-select.js +38 -38
  20. package/titanium/data-table/data-table-header.js +95 -95
  21. package/titanium/data-table/data-table-item.js +163 -163
  22. package/titanium/data-table/data-table.js +313 -313
  23. package/titanium/data-table/data-table.js.map +1 -1
  24. package/titanium/data-table/filter-controller.js +5 -5
  25. package/titanium/data-table/filter-controller.js.map +1 -1
  26. package/titanium/data-table/page-control.js +75 -75
  27. package/titanium/data-table/page-control.js.map +1 -1
  28. package/titanium/date-range-selector/date-range-change-event.js.map +1 -1
  29. package/titanium/date-range-selector/date-range-selector.js +51 -51
  30. package/titanium/drawer/drawer.js +125 -125
  31. package/titanium/drawer/drawer.js.map +1 -1
  32. package/titanium/duration-input/human-interval.js +6 -6
  33. package/titanium/duration-input/human-interval.js.map +1 -1
  34. package/titanium/error-page/error-page.js +66 -66
  35. package/titanium/event-bus/event-bus.js +7 -7
  36. package/titanium/event-bus/event-bus.js.map +1 -1
  37. package/titanium/extendable-outlined-text-field/extendable-outlined-text-field.js +28 -28
  38. package/titanium/full-page-loading-indicator/full-page-loading-indicator.js +48 -48
  39. package/titanium/header/header.js +83 -83
  40. package/titanium/helpers/debouncer.js.map +1 -1
  41. package/titanium/helpers/dev-detection.js +1 -1
  42. package/titanium/helpers/dev-detection.js.map +1 -1
  43. package/titanium/helpers/media-query.js +1 -1
  44. package/titanium/helpers/media-query.js.map +1 -1
  45. package/titanium/helpers/search-token.js +2 -2
  46. package/titanium/helpers/search-token.js.map +1 -1
  47. package/titanium/icon-picker/icon-picker.js +4 -4
  48. package/titanium/search-input/search-input.js +117 -117
  49. package/titanium/show-hide/show-hide.js +54 -54
  50. package/titanium/show-hide/show-hide.js.map +1 -1
  51. package/titanium/single-select-base/single-select-base.js +93 -92
  52. package/titanium/single-select-base/single-select-base.js.map +1 -1
  53. package/titanium/smart-attachment-input/crop-and-save-image-dialog.js +115 -115
  54. package/titanium/smart-attachment-input/cropper-styles.js +307 -307
  55. package/titanium/smart-attachment-input/image-preview-dialog.js +29 -29
  56. package/titanium/smart-attachment-input/smart-attachment-input.js +81 -81
  57. package/titanium/snackbar/snackbar.js +133 -133
  58. package/titanium/styles/a.js +15 -15
  59. package/titanium/styles/data-row.js +43 -43
  60. package/titanium/styles/ellipsis.js +6 -6
  61. package/titanium/styles/h1.js +14 -14
  62. package/titanium/styles/h2.js +14 -14
  63. package/titanium/styles/h3.js +14 -14
  64. package/titanium/styles/h4.js +14 -14
  65. package/titanium/styles/h5.js +16 -16
  66. package/titanium/styles/p.js +14 -14
  67. package/titanium/toolbar/toolbar.js +45 -45
  68. package/titanium/types/pending-state-event.js.map +1 -1
  69. package/titanium/youtube-input/youtube-input.js +9 -9
  70. package/titanium/address-input/Address.js.map +0 -1
  71. package/titanium/address-input/types/address.js.map +0 -1
  72. package/titanium/address-input/types/autocomplete-prediction-suggestion.js.map +0 -1
  73. package/titanium/extendable-outlined-text-field/extensible-outlined-text-field.d.ts +0 -45
  74. package/titanium/extendable-outlined-text-field/extensible-outlined-text-field.js.map +0 -1
@@ -1,311 +1,311 @@
1
1
  import { css } from 'lit';
2
2
  /** Update when upgrading CropperJS */
3
- export const cropperCSS = css `
4
- .cropper-container {
5
- direction: ltr;
6
- font-size: 0;
7
- line-height: 0;
8
- position: relative;
9
- -ms-touch-action: none;
10
- touch-action: none;
11
- -webkit-user-select: none;
12
- -moz-user-select: none;
13
- -ms-user-select: none;
14
- user-select: none;
15
- }
16
-
17
- .cropper-container img {
18
- display: block;
19
- height: 100%;
20
- image-orientation: 0deg;
21
- max-height: none !important;
22
- max-width: none !important;
23
- min-height: 0 !important;
24
- min-width: 0 !important;
25
- width: 100%;
26
- }
27
-
28
- .cropper-wrap-box,
29
- .cropper-canvas,
30
- .cropper-drag-box,
31
- .cropper-crop-box,
32
- .cropper-modal {
33
- bottom: 0;
34
- left: 0;
35
- position: absolute;
36
- right: 0;
37
- top: 0;
38
- }
39
-
40
- .cropper-wrap-box,
41
- .cropper-canvas {
42
- overflow: hidden;
43
- }
44
-
45
- .cropper-drag-box {
46
- background-color: #fff;
47
- opacity: 0;
48
- }
49
-
50
- .cropper-modal {
51
- background-color: #000;
52
- opacity: 0.5;
53
- }
54
-
55
- .cropper-view-box {
56
- display: block;
57
- height: 100%;
58
- outline: 1px solid #39f;
59
- outline-color: rgba(51, 153, 255, 0.75);
60
- overflow: hidden;
61
- width: 100%;
62
- }
63
-
64
- .cropper-dashed {
65
- border: 0 dashed #eee;
66
- display: block;
67
- opacity: 0.5;
68
- position: absolute;
69
- }
70
-
71
- .cropper-dashed.dashed-h {
72
- border-bottom-width: 1px;
73
- border-top-width: 1px;
74
- height: calc(100% / 3);
75
- left: 0;
76
- top: calc(100% / 3);
77
- width: 100%;
78
- }
79
-
80
- .cropper-dashed.dashed-v {
81
- border-left-width: 1px;
82
- border-right-width: 1px;
83
- height: 100%;
84
- left: calc(100% / 3);
85
- top: 0;
86
- width: calc(100% / 3);
87
- }
88
-
89
- .cropper-center {
90
- display: block;
91
- height: 0;
92
- left: 50%;
93
- opacity: 0.75;
94
- position: absolute;
95
- top: 50%;
96
- width: 0;
97
- }
98
-
99
- .cropper-center::before,
100
- .cropper-center::after {
101
- background-color: #eee;
102
- content: ' ';
103
- display: block;
104
- position: absolute;
105
- }
106
-
107
- .cropper-center::before {
108
- height: 1px;
109
- left: -3px;
110
- top: 0;
111
- width: 7px;
112
- }
113
-
114
- .cropper-center::after {
115
- height: 7px;
116
- left: 0;
117
- top: -3px;
118
- width: 1px;
119
- }
120
-
121
- .cropper-face,
122
- .cropper-line,
123
- .cropper-point {
124
- display: block;
125
- height: 100%;
126
- opacity: 0.1;
127
- position: absolute;
128
- width: 100%;
129
- }
130
-
131
- .cropper-face {
132
- background-color: #fff;
133
- left: 0;
134
- top: 0;
135
- }
136
-
137
- .cropper-line {
138
- background-color: #39f;
139
- }
140
-
141
- .cropper-line.line-e {
142
- cursor: ew-resize;
143
- right: -3px;
144
- top: 0;
145
- width: 5px;
146
- }
147
-
148
- .cropper-line.line-n {
149
- cursor: ns-resize;
150
- height: 5px;
151
- left: 0;
152
- top: -3px;
153
- }
154
-
155
- .cropper-line.line-w {
156
- cursor: ew-resize;
157
- left: -3px;
158
- top: 0;
159
- width: 5px;
160
- }
161
-
162
- .cropper-line.line-s {
163
- bottom: -3px;
164
- cursor: ns-resize;
165
- height: 5px;
166
- left: 0;
167
- }
168
-
169
- .cropper-point {
170
- background-color: #39f;
171
- height: 5px;
172
- opacity: 0.75;
173
- width: 5px;
174
- }
175
-
176
- .cropper-point.point-e {
177
- cursor: ew-resize;
178
- margin-top: -3px;
179
- right: -3px;
180
- top: 50%;
181
- }
182
-
183
- .cropper-point.point-n {
184
- cursor: ns-resize;
185
- left: 50%;
186
- margin-left: -3px;
187
- top: -3px;
188
- }
189
-
190
- .cropper-point.point-w {
191
- cursor: ew-resize;
192
- left: -3px;
193
- margin-top: -3px;
194
- top: 50%;
195
- }
196
-
197
- .cropper-point.point-s {
198
- bottom: -3px;
199
- cursor: s-resize;
200
- left: 50%;
201
- margin-left: -3px;
202
- }
203
-
204
- .cropper-point.point-ne {
205
- cursor: nesw-resize;
206
- right: -3px;
207
- top: -3px;
208
- }
209
-
210
- .cropper-point.point-nw {
211
- cursor: nwse-resize;
212
- left: -3px;
213
- top: -3px;
214
- }
215
-
216
- .cropper-point.point-sw {
217
- bottom: -3px;
218
- cursor: nesw-resize;
219
- left: -3px;
220
- }
221
-
222
- .cropper-point.point-se {
223
- bottom: -3px;
224
- cursor: nwse-resize;
225
- height: 20px;
226
- opacity: 1;
227
- right: -3px;
228
- width: 20px;
229
- }
230
-
231
- @media (min-width: 768px) {
232
- .cropper-point.point-se {
233
- height: 15px;
234
- width: 15px;
235
- }
236
- }
237
-
238
- @media (min-width: 992px) {
239
- .cropper-point.point-se {
240
- height: 10px;
241
- width: 10px;
242
- }
243
- }
244
-
245
- @media (min-width: 1200px) {
246
- .cropper-point.point-se {
247
- height: 5px;
248
- opacity: 0.75;
249
- width: 5px;
250
- }
251
- }
252
-
253
- .cropper-point.point-se::before {
254
- background-color: #39f;
255
- bottom: -50%;
256
- content: ' ';
257
- display: block;
258
- height: 200%;
259
- opacity: 0;
260
- position: absolute;
261
- right: -50%;
262
- width: 200%;
263
- }
264
-
265
- .cropper-invisible {
266
- opacity: 0;
267
- }
268
-
269
- .cropper-bg {
270
- background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC');
271
- }
272
-
273
- .cropper-hide {
274
- display: block;
275
- height: 0;
276
- position: absolute;
277
- width: 0;
278
- }
279
-
280
- .cropper-hidden {
281
- display: none !important;
282
- }
283
-
284
- .cropper-move {
285
- cursor: move;
286
- }
287
-
288
- .cropper-crop {
289
- cursor: crosshair;
290
- }
291
-
292
- .cropper-disabled .cropper-drag-box,
293
- .cropper-disabled .cropper-face,
294
- .cropper-disabled .cropper-line,
295
- .cropper-disabled .cropper-point {
296
- cursor: not-allowed;
297
- }
298
-
299
- [circle] .cropper-view-box {
300
- box-shadow: 0 0 0 1px #39f;
301
- border-radius: 50%;
302
- outline: 0;
303
- }
304
- [circle] .cropper-face {
305
- background-color: inherit !important;
306
- }
307
- [circle] .cropper-view-box {
308
- outline: inherit !important;
309
- }
3
+ export const cropperCSS = css `
4
+ .cropper-container {
5
+ direction: ltr;
6
+ font-size: 0;
7
+ line-height: 0;
8
+ position: relative;
9
+ -ms-touch-action: none;
10
+ touch-action: none;
11
+ -webkit-user-select: none;
12
+ -moz-user-select: none;
13
+ -ms-user-select: none;
14
+ user-select: none;
15
+ }
16
+
17
+ .cropper-container img {
18
+ display: block;
19
+ height: 100%;
20
+ image-orientation: 0deg;
21
+ max-height: none !important;
22
+ max-width: none !important;
23
+ min-height: 0 !important;
24
+ min-width: 0 !important;
25
+ width: 100%;
26
+ }
27
+
28
+ .cropper-wrap-box,
29
+ .cropper-canvas,
30
+ .cropper-drag-box,
31
+ .cropper-crop-box,
32
+ .cropper-modal {
33
+ bottom: 0;
34
+ left: 0;
35
+ position: absolute;
36
+ right: 0;
37
+ top: 0;
38
+ }
39
+
40
+ .cropper-wrap-box,
41
+ .cropper-canvas {
42
+ overflow: hidden;
43
+ }
44
+
45
+ .cropper-drag-box {
46
+ background-color: #fff;
47
+ opacity: 0;
48
+ }
49
+
50
+ .cropper-modal {
51
+ background-color: #000;
52
+ opacity: 0.5;
53
+ }
54
+
55
+ .cropper-view-box {
56
+ display: block;
57
+ height: 100%;
58
+ outline: 1px solid #39f;
59
+ outline-color: rgba(51, 153, 255, 0.75);
60
+ overflow: hidden;
61
+ width: 100%;
62
+ }
63
+
64
+ .cropper-dashed {
65
+ border: 0 dashed #eee;
66
+ display: block;
67
+ opacity: 0.5;
68
+ position: absolute;
69
+ }
70
+
71
+ .cropper-dashed.dashed-h {
72
+ border-bottom-width: 1px;
73
+ border-top-width: 1px;
74
+ height: calc(100% / 3);
75
+ left: 0;
76
+ top: calc(100% / 3);
77
+ width: 100%;
78
+ }
79
+
80
+ .cropper-dashed.dashed-v {
81
+ border-left-width: 1px;
82
+ border-right-width: 1px;
83
+ height: 100%;
84
+ left: calc(100% / 3);
85
+ top: 0;
86
+ width: calc(100% / 3);
87
+ }
88
+
89
+ .cropper-center {
90
+ display: block;
91
+ height: 0;
92
+ left: 50%;
93
+ opacity: 0.75;
94
+ position: absolute;
95
+ top: 50%;
96
+ width: 0;
97
+ }
98
+
99
+ .cropper-center::before,
100
+ .cropper-center::after {
101
+ background-color: #eee;
102
+ content: ' ';
103
+ display: block;
104
+ position: absolute;
105
+ }
106
+
107
+ .cropper-center::before {
108
+ height: 1px;
109
+ left: -3px;
110
+ top: 0;
111
+ width: 7px;
112
+ }
113
+
114
+ .cropper-center::after {
115
+ height: 7px;
116
+ left: 0;
117
+ top: -3px;
118
+ width: 1px;
119
+ }
120
+
121
+ .cropper-face,
122
+ .cropper-line,
123
+ .cropper-point {
124
+ display: block;
125
+ height: 100%;
126
+ opacity: 0.1;
127
+ position: absolute;
128
+ width: 100%;
129
+ }
130
+
131
+ .cropper-face {
132
+ background-color: #fff;
133
+ left: 0;
134
+ top: 0;
135
+ }
136
+
137
+ .cropper-line {
138
+ background-color: #39f;
139
+ }
140
+
141
+ .cropper-line.line-e {
142
+ cursor: ew-resize;
143
+ right: -3px;
144
+ top: 0;
145
+ width: 5px;
146
+ }
147
+
148
+ .cropper-line.line-n {
149
+ cursor: ns-resize;
150
+ height: 5px;
151
+ left: 0;
152
+ top: -3px;
153
+ }
154
+
155
+ .cropper-line.line-w {
156
+ cursor: ew-resize;
157
+ left: -3px;
158
+ top: 0;
159
+ width: 5px;
160
+ }
161
+
162
+ .cropper-line.line-s {
163
+ bottom: -3px;
164
+ cursor: ns-resize;
165
+ height: 5px;
166
+ left: 0;
167
+ }
168
+
169
+ .cropper-point {
170
+ background-color: #39f;
171
+ height: 5px;
172
+ opacity: 0.75;
173
+ width: 5px;
174
+ }
175
+
176
+ .cropper-point.point-e {
177
+ cursor: ew-resize;
178
+ margin-top: -3px;
179
+ right: -3px;
180
+ top: 50%;
181
+ }
182
+
183
+ .cropper-point.point-n {
184
+ cursor: ns-resize;
185
+ left: 50%;
186
+ margin-left: -3px;
187
+ top: -3px;
188
+ }
189
+
190
+ .cropper-point.point-w {
191
+ cursor: ew-resize;
192
+ left: -3px;
193
+ margin-top: -3px;
194
+ top: 50%;
195
+ }
196
+
197
+ .cropper-point.point-s {
198
+ bottom: -3px;
199
+ cursor: s-resize;
200
+ left: 50%;
201
+ margin-left: -3px;
202
+ }
203
+
204
+ .cropper-point.point-ne {
205
+ cursor: nesw-resize;
206
+ right: -3px;
207
+ top: -3px;
208
+ }
209
+
210
+ .cropper-point.point-nw {
211
+ cursor: nwse-resize;
212
+ left: -3px;
213
+ top: -3px;
214
+ }
215
+
216
+ .cropper-point.point-sw {
217
+ bottom: -3px;
218
+ cursor: nesw-resize;
219
+ left: -3px;
220
+ }
221
+
222
+ .cropper-point.point-se {
223
+ bottom: -3px;
224
+ cursor: nwse-resize;
225
+ height: 20px;
226
+ opacity: 1;
227
+ right: -3px;
228
+ width: 20px;
229
+ }
230
+
231
+ @media (min-width: 768px) {
232
+ .cropper-point.point-se {
233
+ height: 15px;
234
+ width: 15px;
235
+ }
236
+ }
237
+
238
+ @media (min-width: 992px) {
239
+ .cropper-point.point-se {
240
+ height: 10px;
241
+ width: 10px;
242
+ }
243
+ }
244
+
245
+ @media (min-width: 1200px) {
246
+ .cropper-point.point-se {
247
+ height: 5px;
248
+ opacity: 0.75;
249
+ width: 5px;
250
+ }
251
+ }
252
+
253
+ .cropper-point.point-se::before {
254
+ background-color: #39f;
255
+ bottom: -50%;
256
+ content: ' ';
257
+ display: block;
258
+ height: 200%;
259
+ opacity: 0;
260
+ position: absolute;
261
+ right: -50%;
262
+ width: 200%;
263
+ }
264
+
265
+ .cropper-invisible {
266
+ opacity: 0;
267
+ }
268
+
269
+ .cropper-bg {
270
+ background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC');
271
+ }
272
+
273
+ .cropper-hide {
274
+ display: block;
275
+ height: 0;
276
+ position: absolute;
277
+ width: 0;
278
+ }
279
+
280
+ .cropper-hidden {
281
+ display: none !important;
282
+ }
283
+
284
+ .cropper-move {
285
+ cursor: move;
286
+ }
287
+
288
+ .cropper-crop {
289
+ cursor: crosshair;
290
+ }
291
+
292
+ .cropper-disabled .cropper-drag-box,
293
+ .cropper-disabled .cropper-face,
294
+ .cropper-disabled .cropper-line,
295
+ .cropper-disabled .cropper-point {
296
+ cursor: not-allowed;
297
+ }
298
+
299
+ [circle] .cropper-view-box {
300
+ box-shadow: 0 0 0 1px #39f;
301
+ border-radius: 50%;
302
+ outline: 0;
303
+ }
304
+ [circle] .cropper-face {
305
+ background-color: inherit !important;
306
+ }
307
+ [circle] .cropper-view-box {
308
+ outline: inherit !important;
309
+ }
310
310
  `;
311
311
  //# sourceMappingURL=cropper-styles.js.map
@@ -21,46 +21,46 @@ let ImagePreviewDialog = class ImagePreviewDialog extends LitElement {
21
21
  return this.dialog.show();
22
22
  }
23
23
  static { this.styles = [
24
- css `
25
- div[header] {
26
- word-break: break-all;
27
- }
28
-
29
- md-dialog {
30
- max-width: calc(100vw - 48px);
31
- max-height: calc(100vh - 48px);
32
- }
33
-
34
- img {
35
- width: 100%;
36
- }
24
+ css `
25
+ div[header] {
26
+ word-break: break-all;
27
+ }
28
+
29
+ md-dialog {
30
+ max-width: calc(100vw - 48px);
31
+ max-height: calc(100vh - 48px);
32
+ }
33
+
34
+ img {
35
+ width: 100%;
36
+ }
37
37
  `,
38
38
  ]; }
39
39
  render() {
40
- return html `
41
- <md-dialog>
42
- <div header slot="headline">${middleEllipsis(this.filename || 'Image preview', 60)}</div>
43
- <img slot="content" draggable="false" src=${ifDefined(this.imageUrl)} />
44
- <div slot="actions">
40
+ return html `
41
+ <md-dialog>
42
+ <div header slot="headline">${middleEllipsis(this.filename || 'Image preview', 60)}</div>
43
+ <img slot="content" draggable="false" src=${ifDefined(this.imageUrl)} />
44
+ <div slot="actions">
45
45
  ${this.downloadSrc
46
- ? html `<md-text-button
46
+ ? html `<md-text-button
47
47
  @click=${(e) => {
48
48
  e.stopPropagation();
49
49
  window.open(this.downloadSrc);
50
- }}
51
- ><md-icon slot="icon">file_download</md-icon>Download</md-text-button
50
+ }}
51
+ ><md-icon slot="icon">file_download</md-icon>Download</md-text-button
52
52
  >`
53
- : html `<div></div>`}
54
-
55
- <md-text-button
53
+ : html `<div></div>`}
54
+
55
+ <md-text-button
56
56
  @click=${(e) => {
57
57
  e.stopPropagation();
58
58
  this.dialog.close('close');
59
- }}
60
- >Close</md-text-button
61
- >
62
- </div>
63
- </md-dialog>
59
+ }}
60
+ >Close</md-text-button
61
+ >
62
+ </div>
63
+ </md-dialog>
64
64
  `;
65
65
  }
66
66
  };