@leavittsoftware/web 1.0.0 → 1.2.1
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/leavitt/api-service/api-service.js +6 -6
- package/leavitt/api-service/api-service.js.map +1 -1
- package/leavitt/api-service/api2-service.js +1 -1
- package/leavitt/api-service/api2-service.js.map +1 -1
- package/leavitt/api-service/mapi-service.js +1 -1
- package/leavitt/api-service/mapi-service.js.map +1 -1
- package/leavitt/api-service/odata-response.js +2 -2
- package/leavitt/api-service/odata-response.js.map +1 -1
- package/leavitt/company-select/company-select.js +10 -10
- package/leavitt/person-company-select/person-company-select.js +14 -14
- package/leavitt/person-group-select/person-group-select.js +18 -18
- package/leavitt/person-select/person-select.js +4 -4
- package/leavitt/profile-picture/profile-picture-menu.js +96 -96
- package/leavitt/profile-picture/profile-picture.js +64 -64
- package/leavitt/user-feedback/user-feedback.js +79 -79
- package/package.json +37 -36
- package/titanium/access-denied-page/access-denied-page.js +330 -330
- package/titanium/address-input/address-input.js +17 -17
- package/titanium/address-input/address-input.js.map +1 -1
- package/titanium/address-input/google-address-input.js +4 -4
- package/titanium/address-input/manual-address-dialog.js +127 -127
- package/titanium/card/card.js +117 -117
- package/titanium/chip-multi-select/chip-multi-select.js +38 -38
- package/titanium/data-table/data-table-header.js +95 -95
- package/titanium/data-table/data-table-item.js +163 -163
- package/titanium/data-table/data-table.js +313 -313
- package/titanium/data-table/data-table.js.map +1 -1
- package/titanium/data-table/filter-controller.js +5 -5
- package/titanium/data-table/filter-controller.js.map +1 -1
- package/titanium/data-table/page-control.js +75 -75
- package/titanium/data-table/page-control.js.map +1 -1
- package/titanium/date-range-selector/date-range-change-event.js.map +1 -1
- package/titanium/date-range-selector/date-range-selector.d.ts +1 -11
- package/titanium/date-range-selector/date-range-selector.js +53 -271
- package/titanium/date-range-selector/date-range-selector.js.map +1 -1
- package/titanium/date-range-selector/types/date-range-key.d.ts +2 -0
- package/titanium/date-range-selector/types/date-range-key.js +2 -0
- package/titanium/date-range-selector/types/date-range-key.js.map +1 -0
- package/titanium/date-range-selector/types/date-range-option.d.ts +8 -0
- package/titanium/date-range-selector/types/date-range-option.js +2 -0
- package/titanium/date-range-selector/types/date-range-option.js.map +1 -0
- package/titanium/date-range-selector/types/date-range-time-key.d.ts +2 -0
- package/titanium/date-range-selector/types/date-range-time-key.js +2 -0
- package/titanium/date-range-selector/types/date-range-time-key.js.map +1 -0
- package/titanium/date-range-selector/types/date-ranges.d.ts +4 -0
- package/titanium/date-range-selector/types/date-ranges.js +139 -0
- package/titanium/date-range-selector/types/date-ranges.js.map +1 -0
- package/titanium/date-range-selector/types/date-time-ranges.d.ts +4 -0
- package/titanium/date-range-selector/types/date-time-ranges.js +86 -0
- package/titanium/date-range-selector/types/date-time-ranges.js.map +1 -0
- package/titanium/date-range-selector/types/range-label.d.ts +3 -0
- package/titanium/date-range-selector/types/range-label.js +14 -0
- package/titanium/date-range-selector/types/range-label.js.map +1 -0
- package/titanium/date-range-selector/types/range-time-label.d.ts +3 -0
- package/titanium/date-range-selector/types/range-time-label.js +14 -0
- package/titanium/date-range-selector/types/range-time-label.js.map +1 -0
- package/titanium/drawer/drawer.js +125 -125
- package/titanium/drawer/drawer.js.map +1 -1
- package/titanium/duration-input/human-interval.js +6 -6
- package/titanium/duration-input/human-interval.js.map +1 -1
- package/titanium/error-page/error-page.js +66 -66
- package/titanium/event-bus/event-bus.js +7 -7
- package/titanium/event-bus/event-bus.js.map +1 -1
- package/titanium/extendable-outlined-text-field/extendable-outlined-text-field.js +28 -28
- package/titanium/full-page-loading-indicator/full-page-loading-indicator.js +48 -48
- package/titanium/header/header.js +83 -83
- package/titanium/helpers/csv/convert-array-to-csv.d.ts +2 -0
- package/titanium/helpers/csv/convert-array-to-csv.js +38 -0
- package/titanium/helpers/csv/convert-array-to-csv.js.map +1 -0
- package/titanium/helpers/csv/flatten-object.d.ts +2 -0
- package/titanium/helpers/{csv-download.js → csv/flatten-object.js} +1 -12
- package/titanium/helpers/csv/flatten-object.js.map +1 -0
- package/titanium/helpers/csv/start-csv-download.d.ts +2 -0
- package/titanium/helpers/csv/start-csv-download.js +12 -0
- package/titanium/helpers/csv/start-csv-download.js.map +1 -0
- package/titanium/helpers/debouncer.js.map +1 -1
- package/titanium/helpers/{odata-helpers.d.ts → escape-term.d.ts} +1 -1
- package/titanium/helpers/{odata-helpers.js → escape-term.js} +1 -1
- package/titanium/helpers/escape-term.js.map +1 -0
- package/titanium/helpers/{leavitt-cdn.d.ts → get-cdn-Inline-url.d.ts} +1 -2
- package/titanium/helpers/{leavitt-cdn.js → get-cdn-Inline-url.js} +1 -12
- package/titanium/helpers/get-cdn-Inline-url.js.map +1 -0
- package/titanium/helpers/get-cdn-download-url.d.ts +3 -0
- package/titanium/helpers/get-cdn-download-url.js +12 -0
- package/titanium/helpers/get-cdn-download-url.js.map +1 -0
- package/titanium/helpers/{search-token.d.ts → get-search-token.d.ts} +1 -1
- package/titanium/helpers/{search-token.js → get-search-token.js} +4 -4
- package/titanium/helpers/get-search-token.js.map +1 -0
- package/titanium/helpers/helpers.d.ts +6 -5
- package/titanium/helpers/helpers.js +6 -5
- package/titanium/helpers/helpers.js.map +1 -1
- package/titanium/helpers/{media-query.d.ts → install-media-query-watcher.d.ts} +1 -1
- package/titanium/helpers/{media-query.js → install-media-query-watcher.js} +2 -2
- package/titanium/helpers/install-media-query-watcher.js.map +1 -0
- package/titanium/helpers/{dev-detection.d.ts → is-development.d.ts} +1 -1
- package/titanium/helpers/{dev-detection.js → is-development.js} +2 -2
- package/titanium/helpers/is-development.js.map +1 -0
- package/titanium/icon-picker/icon-picker.js +4 -4
- package/titanium/search-input/search-input.js +117 -117
- package/titanium/show-hide/show-hide.js +54 -54
- package/titanium/show-hide/show-hide.js.map +1 -1
- package/titanium/single-select-base/single-select-base.js +93 -92
- package/titanium/single-select-base/single-select-base.js.map +1 -1
- package/titanium/smart-attachment-input/crop-and-save-image-dialog.js +115 -115
- package/titanium/smart-attachment-input/cropper-styles.js +307 -307
- package/titanium/smart-attachment-input/image-preview-dialog.js +29 -29
- package/titanium/smart-attachment-input/smart-attachment-input.js +83 -82
- package/titanium/smart-attachment-input/smart-attachment-input.js.map +1 -1
- package/titanium/snackbar/snackbar.js +133 -133
- package/titanium/styles/a.js +15 -15
- package/titanium/styles/data-row.js +43 -43
- package/titanium/styles/ellipsis.js +6 -6
- package/titanium/styles/h1.js +14 -14
- package/titanium/styles/h2.js +14 -14
- package/titanium/styles/h3.js +14 -14
- package/titanium/styles/h4.js +14 -14
- package/titanium/styles/h5.js +16 -16
- package/titanium/styles/p.js +14 -14
- package/titanium/toolbar/toolbar.js +45 -45
- package/titanium/types/pending-state-event.js.map +1 -1
- package/titanium/youtube-input/youtube-input.js +9 -9
- package/titanium/address-input/Address.js.map +0 -1
- package/titanium/address-input/types/address.js.map +0 -1
- package/titanium/address-input/types/autocomplete-prediction-suggestion.js.map +0 -1
- package/titanium/date-range-selector/range-label.d.ts +0 -4
- package/titanium/date-range-selector/range-label.js +0 -25
- package/titanium/date-range-selector/range-label.js.map +0 -1
- package/titanium/extendable-outlined-text-field/extensible-outlined-text-field.d.ts +0 -45
- package/titanium/extendable-outlined-text-field/extensible-outlined-text-field.js.map +0 -1
- package/titanium/helpers/csv-download.d.ts +0 -3
- package/titanium/helpers/csv-download.js.map +0 -1
- package/titanium/helpers/dev-detection.js.map +0 -1
- package/titanium/helpers/leavitt-cdn.js.map +0 -1
- package/titanium/helpers/media-query.js.map +0 -1
- package/titanium/helpers/odata-helpers.js.map +0 -1
- package/titanium/helpers/search-token.js.map +0 -1
|
@@ -41,83 +41,83 @@ let CropAndSaveImageDialog = class CropAndSaveImageDialog extends LoadWhile(LitE
|
|
|
41
41
|
h1,
|
|
42
42
|
p,
|
|
43
43
|
cropperCSS,
|
|
44
|
-
css `
|
|
45
|
-
:host {
|
|
46
|
-
display: block;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
md-dialog {
|
|
50
|
-
max-width: calc(100vw - 24px);
|
|
51
|
-
max-height: calc(100vh - 24px);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
main {
|
|
55
|
-
display: flex;
|
|
56
|
-
position: relative;
|
|
57
|
-
align-self: center;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
loading-animation {
|
|
61
|
-
display: flex;
|
|
62
|
-
flex-direction: column;
|
|
63
|
-
place-content: center;
|
|
64
|
-
place-items: center;
|
|
65
|
-
width: 100%;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
loading-animation img {
|
|
69
|
-
height: 300px;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
section[crop] {
|
|
73
|
-
display: grid;
|
|
74
|
-
width: 100%;
|
|
75
|
-
grid: 'cropper buttons' / 1fr 58px;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
cropper-container {
|
|
79
|
-
grid-area: cropper;
|
|
80
|
-
|
|
81
|
-
display: block;
|
|
82
|
-
max-width: 800px;
|
|
83
|
-
max-height: 600px;
|
|
84
|
-
overflow: hidden;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
cropper-container img {
|
|
88
|
-
display: block;
|
|
89
|
-
/* This rule is very important, please don't ignore this */
|
|
90
|
-
max-width: 100%;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
crop-buttons {
|
|
94
|
-
grid-area: buttons;
|
|
95
|
-
|
|
96
|
-
display: grid;
|
|
97
|
-
align-content: start;
|
|
98
|
-
grid-auto-flow: row;
|
|
99
|
-
|
|
100
|
-
padding: 0 8px;
|
|
101
|
-
gap: 8px;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
@media (max-width: 600px) {
|
|
105
|
-
section[crop] {
|
|
106
|
-
grid:
|
|
107
|
-
'cropper'
|
|
108
|
-
'buttons';
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
crop-buttons {
|
|
112
|
-
justify-content: end;
|
|
113
|
-
grid-auto-flow: column;
|
|
114
|
-
padding: 8px 0;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
[hidden] {
|
|
119
|
-
display: none !important;
|
|
120
|
-
}
|
|
44
|
+
css `
|
|
45
|
+
:host {
|
|
46
|
+
display: block;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
md-dialog {
|
|
50
|
+
max-width: calc(100vw - 24px);
|
|
51
|
+
max-height: calc(100vh - 24px);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
main {
|
|
55
|
+
display: flex;
|
|
56
|
+
position: relative;
|
|
57
|
+
align-self: center;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
loading-animation {
|
|
61
|
+
display: flex;
|
|
62
|
+
flex-direction: column;
|
|
63
|
+
place-content: center;
|
|
64
|
+
place-items: center;
|
|
65
|
+
width: 100%;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
loading-animation img {
|
|
69
|
+
height: 300px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
section[crop] {
|
|
73
|
+
display: grid;
|
|
74
|
+
width: 100%;
|
|
75
|
+
grid: 'cropper buttons' / 1fr 58px;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
cropper-container {
|
|
79
|
+
grid-area: cropper;
|
|
80
|
+
|
|
81
|
+
display: block;
|
|
82
|
+
max-width: 800px;
|
|
83
|
+
max-height: 600px;
|
|
84
|
+
overflow: hidden;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
cropper-container img {
|
|
88
|
+
display: block;
|
|
89
|
+
/* This rule is very important, please don't ignore this */
|
|
90
|
+
max-width: 100%;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
crop-buttons {
|
|
94
|
+
grid-area: buttons;
|
|
95
|
+
|
|
96
|
+
display: grid;
|
|
97
|
+
align-content: start;
|
|
98
|
+
grid-auto-flow: row;
|
|
99
|
+
|
|
100
|
+
padding: 0 8px;
|
|
101
|
+
gap: 8px;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
@media (max-width: 600px) {
|
|
105
|
+
section[crop] {
|
|
106
|
+
grid:
|
|
107
|
+
'cropper'
|
|
108
|
+
'buttons';
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
crop-buttons {
|
|
112
|
+
justify-content: end;
|
|
113
|
+
grid-auto-flow: column;
|
|
114
|
+
padding: 8px 0;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
[hidden] {
|
|
119
|
+
display: none !important;
|
|
120
|
+
}
|
|
121
121
|
`,
|
|
122
122
|
]; }
|
|
123
123
|
#saveCroppedImageFunc;
|
|
@@ -185,47 +185,47 @@ let CropAndSaveImageDialog = class CropAndSaveImageDialog extends LoadWhile(LitE
|
|
|
185
185
|
return await imagePromise;
|
|
186
186
|
}
|
|
187
187
|
render() {
|
|
188
|
-
return html `
|
|
189
|
-
<md-dialog
|
|
190
|
-
focus-trap
|
|
188
|
+
return html `
|
|
189
|
+
<md-dialog
|
|
190
|
+
focus-trap
|
|
191
191
|
@close=${(e) => {
|
|
192
192
|
if (e.target.returnValue === 'cancel' || e.target.returnValue === 'cropped') {
|
|
193
193
|
return this.#resolve(e.target.returnValue);
|
|
194
194
|
}
|
|
195
195
|
e.preventDefault();
|
|
196
|
-
}}
|
|
197
|
-
>
|
|
198
|
-
<div slot="headline">Crop and save image</div>
|
|
199
|
-
<main slot="content">
|
|
200
|
-
<loading-animation ?hidden=${!this.isLoading}>
|
|
201
|
-
<img src=${LoaderGif} />
|
|
202
|
-
<p>Uploading image...</p>
|
|
203
|
-
</loading-animation>
|
|
204
|
-
<section crop ?hidden=${this.isLoading}>
|
|
205
|
-
<cropper-container ?circle=${this.options.shape === 'circle'}>
|
|
206
|
-
<img />
|
|
207
|
-
</cropper-container>
|
|
208
|
-
<crop-buttons>
|
|
209
|
-
<md-icon-button label="Rotate right" title="Rotate right" @click=${() => this.#cropper?.rotate(90)}
|
|
210
|
-
><md-icon>rotate_right</md-icon></md-icon-button
|
|
211
|
-
>
|
|
212
|
-
<md-icon-button label="Rotate left" title="Rotate left" @click=${() => this.#cropper?.rotate(-90)}>
|
|
213
|
-
<md-icon>rotate_left</md-icon>
|
|
214
|
-
</md-icon-button>
|
|
215
|
-
</crop-buttons>
|
|
216
|
-
</section>
|
|
217
|
-
</main>
|
|
218
|
-
<div slot="actions">
|
|
219
|
-
<md-text-button
|
|
220
|
-
?disabled=${this.isLoading}
|
|
196
|
+
}}
|
|
197
|
+
>
|
|
198
|
+
<div slot="headline">Crop and save image</div>
|
|
199
|
+
<main slot="content">
|
|
200
|
+
<loading-animation ?hidden=${!this.isLoading}>
|
|
201
|
+
<img src=${LoaderGif} />
|
|
202
|
+
<p>Uploading image...</p>
|
|
203
|
+
</loading-animation>
|
|
204
|
+
<section crop ?hidden=${this.isLoading}>
|
|
205
|
+
<cropper-container ?circle=${this.options.shape === 'circle'}>
|
|
206
|
+
<img />
|
|
207
|
+
</cropper-container>
|
|
208
|
+
<crop-buttons>
|
|
209
|
+
<md-icon-button label="Rotate right" title="Rotate right" @click=${() => this.#cropper?.rotate(90)}
|
|
210
|
+
><md-icon>rotate_right</md-icon></md-icon-button
|
|
211
|
+
>
|
|
212
|
+
<md-icon-button label="Rotate left" title="Rotate left" @click=${() => this.#cropper?.rotate(-90)}>
|
|
213
|
+
<md-icon>rotate_left</md-icon>
|
|
214
|
+
</md-icon-button>
|
|
215
|
+
</crop-buttons>
|
|
216
|
+
</section>
|
|
217
|
+
</main>
|
|
218
|
+
<div slot="actions">
|
|
219
|
+
<md-text-button
|
|
220
|
+
?disabled=${this.isLoading}
|
|
221
221
|
@click=${() => {
|
|
222
222
|
this.reset();
|
|
223
223
|
this.dialog.close('cancel');
|
|
224
|
-
}}
|
|
225
|
-
>Cancel</md-text-button
|
|
226
|
-
>
|
|
227
|
-
<md-text-button
|
|
228
|
-
?disabled=${this.isLoading}
|
|
224
|
+
}}
|
|
225
|
+
>Cancel</md-text-button
|
|
226
|
+
>
|
|
227
|
+
<md-text-button
|
|
228
|
+
?disabled=${this.isLoading}
|
|
229
229
|
@click=${async () => {
|
|
230
230
|
this.isLoading = true;
|
|
231
231
|
await this.updateComplete;
|
|
@@ -243,11 +243,11 @@ let CropAndSaveImageDialog = class CropAndSaveImageDialog extends LoadWhile(LitE
|
|
|
243
243
|
await save;
|
|
244
244
|
this.isLoading = false;
|
|
245
245
|
this.dialog.close('cropped');
|
|
246
|
-
}}
|
|
247
|
-
>Save</md-text-button
|
|
248
|
-
>
|
|
249
|
-
</div>
|
|
250
|
-
</md-dialog>
|
|
246
|
+
}}
|
|
247
|
+
>Save</md-text-button
|
|
248
|
+
>
|
|
249
|
+
</div>
|
|
250
|
+
</md-dialog>
|
|
251
251
|
`;
|
|
252
252
|
}
|
|
253
253
|
};
|