@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
|
@@ -101,54 +101,54 @@ let TitaniumFullPageLoadingIndicator = class TitaniumFullPageLoadingIndicator ex
|
|
|
101
101
|
this.#animationFrame = window.setTimeout(callback, 0);
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
|
-
static { this.styles = css `
|
|
105
|
-
:host {
|
|
106
|
-
display: none;
|
|
107
|
-
position: relative;
|
|
108
|
-
position: fixed;
|
|
109
|
-
z-index: 19;
|
|
110
|
-
top: 0;
|
|
111
|
-
left: 0;
|
|
112
|
-
width: 100%;
|
|
113
|
-
height: 100%;
|
|
114
|
-
opacity: 0;
|
|
115
|
-
background: var(--md-sys-color-scrim, #000);
|
|
116
|
-
-webkit-transition: opacity 75ms linear;
|
|
117
|
-
-o-transition: opacity 75ms linear;
|
|
118
|
-
transition: opacity 75ms linear;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
:host([opening]),
|
|
122
|
-
:host([closing]),
|
|
123
|
-
:host([opened]) {
|
|
124
|
-
display: block;
|
|
125
|
-
z-index: 7;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
:host([opening]) {
|
|
129
|
-
-webkit-transition: opacity 50ms linear;
|
|
130
|
-
-o-transition: opacity 50ms linear;
|
|
131
|
-
transition: opacity 50ms linear;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
:host([closing]) {
|
|
135
|
-
-webkit-transition: opacity 150ms linear;
|
|
136
|
-
-o-transition: opacity 150ms linear;
|
|
137
|
-
transition: opacity 150ms linear;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
:host([opened]) {
|
|
141
|
-
opacity: 0.32;
|
|
142
|
-
backdrop-filter: blur(6px);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
md-linear-progress {
|
|
146
|
-
position: absolute;
|
|
147
|
-
width: 100%;
|
|
148
|
-
top: 0;
|
|
149
|
-
right: 0;
|
|
150
|
-
left: 0;
|
|
151
|
-
}
|
|
104
|
+
static { this.styles = css `
|
|
105
|
+
:host {
|
|
106
|
+
display: none;
|
|
107
|
+
position: relative;
|
|
108
|
+
position: fixed;
|
|
109
|
+
z-index: 19;
|
|
110
|
+
top: 0;
|
|
111
|
+
left: 0;
|
|
112
|
+
width: 100%;
|
|
113
|
+
height: 100%;
|
|
114
|
+
opacity: 0;
|
|
115
|
+
background: var(--md-sys-color-scrim, #000);
|
|
116
|
+
-webkit-transition: opacity 75ms linear;
|
|
117
|
+
-o-transition: opacity 75ms linear;
|
|
118
|
+
transition: opacity 75ms linear;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
:host([opening]),
|
|
122
|
+
:host([closing]),
|
|
123
|
+
:host([opened]) {
|
|
124
|
+
display: block;
|
|
125
|
+
z-index: 7;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
:host([opening]) {
|
|
129
|
+
-webkit-transition: opacity 50ms linear;
|
|
130
|
+
-o-transition: opacity 50ms linear;
|
|
131
|
+
transition: opacity 50ms linear;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
:host([closing]) {
|
|
135
|
+
-webkit-transition: opacity 150ms linear;
|
|
136
|
+
-o-transition: opacity 150ms linear;
|
|
137
|
+
transition: opacity 150ms linear;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
:host([opened]) {
|
|
141
|
+
opacity: 0.32;
|
|
142
|
+
backdrop-filter: blur(6px);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
md-linear-progress {
|
|
146
|
+
position: absolute;
|
|
147
|
+
width: 100%;
|
|
148
|
+
top: 0;
|
|
149
|
+
right: 0;
|
|
150
|
+
left: 0;
|
|
151
|
+
}
|
|
152
152
|
`; }
|
|
153
153
|
render() {
|
|
154
154
|
return html ` <md-linear-progress ?indeterminate=${this.opened} ?hide=${!this.opening && !this.closing && !this.opened}></md-linear-progress> `;
|
|
@@ -37,92 +37,92 @@ let TitaniumHeader = class TitaniumHeader extends LitElement {
|
|
|
37
37
|
static { this.styles = [
|
|
38
38
|
h1,
|
|
39
39
|
h3,
|
|
40
|
-
css `
|
|
41
|
-
:host {
|
|
42
|
-
display: flex;
|
|
43
|
-
flex-direction: column;
|
|
44
|
-
-webkit-font-smoothing: antialiased;
|
|
45
|
-
padding: 0 52px 8px 52px;
|
|
46
|
-
position: relative;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
:host([no-nav]) md-icon-button {
|
|
50
|
-
display: none;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
:host([no-nav]) {
|
|
54
|
-
padding: 0 0 8px 0;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
header {
|
|
58
|
-
display: block;
|
|
59
|
-
text-align: center;
|
|
60
|
-
padding: 0 0 8px 0;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
h1 {
|
|
64
|
-
display: inline;
|
|
65
|
-
font-size: 40px;
|
|
66
|
-
line-height: 42px;
|
|
67
|
-
font-weight: 200;
|
|
68
|
-
|
|
69
|
-
margin: 0;
|
|
70
|
-
color: var(--md-sys-color-on-background);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
h3 {
|
|
74
|
-
color: var(--md-sys-color-on-surface-variant);
|
|
75
|
-
font-family: Metropolis, Roboto, Noto, sans-serif;
|
|
76
|
-
font-weight: 300;
|
|
77
|
-
font-size: 16px;
|
|
78
|
-
line-height: 20px;
|
|
79
|
-
text-align: center;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
md-icon[header-icon] {
|
|
83
|
-
display: inline;
|
|
84
|
-
vertical-align: text-bottom;
|
|
85
|
-
font-size: 40px;
|
|
86
|
-
color: var(--md-sys-color-on-background);
|
|
87
|
-
margin-right: 8px;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
md-icon-button {
|
|
91
|
-
position: absolute;
|
|
92
|
-
top: 0;
|
|
93
|
-
left: 0;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
@media (max-width: 920px) {
|
|
97
|
-
h1 {
|
|
98
|
-
font-size: 30px;
|
|
99
|
-
line-height: 32px;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
h3 {
|
|
103
|
-
font-size: 14px;
|
|
104
|
-
line-height: 16px;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
md-icon[header-icon] {
|
|
108
|
-
font-size: 30px;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
:host([hidden]) {
|
|
113
|
-
display: none;
|
|
114
|
-
}
|
|
40
|
+
css `
|
|
41
|
+
:host {
|
|
42
|
+
display: flex;
|
|
43
|
+
flex-direction: column;
|
|
44
|
+
-webkit-font-smoothing: antialiased;
|
|
45
|
+
padding: 0 52px 8px 52px;
|
|
46
|
+
position: relative;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
:host([no-nav]) md-icon-button {
|
|
50
|
+
display: none;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
:host([no-nav]) {
|
|
54
|
+
padding: 0 0 8px 0;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
header {
|
|
58
|
+
display: block;
|
|
59
|
+
text-align: center;
|
|
60
|
+
padding: 0 0 8px 0;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
h1 {
|
|
64
|
+
display: inline;
|
|
65
|
+
font-size: 40px;
|
|
66
|
+
line-height: 42px;
|
|
67
|
+
font-weight: 200;
|
|
68
|
+
|
|
69
|
+
margin: 0;
|
|
70
|
+
color: var(--md-sys-color-on-background);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
h3 {
|
|
74
|
+
color: var(--md-sys-color-on-surface-variant);
|
|
75
|
+
font-family: Metropolis, Roboto, Noto, sans-serif;
|
|
76
|
+
font-weight: 300;
|
|
77
|
+
font-size: 16px;
|
|
78
|
+
line-height: 20px;
|
|
79
|
+
text-align: center;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
md-icon[header-icon] {
|
|
83
|
+
display: inline;
|
|
84
|
+
vertical-align: text-bottom;
|
|
85
|
+
font-size: 40px;
|
|
86
|
+
color: var(--md-sys-color-on-background);
|
|
87
|
+
margin-right: 8px;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
md-icon-button {
|
|
91
|
+
position: absolute;
|
|
92
|
+
top: 0;
|
|
93
|
+
left: 0;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
@media (max-width: 920px) {
|
|
97
|
+
h1 {
|
|
98
|
+
font-size: 30px;
|
|
99
|
+
line-height: 32px;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
h3 {
|
|
103
|
+
font-size: 14px;
|
|
104
|
+
line-height: 16px;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
md-icon[header-icon] {
|
|
108
|
+
font-size: 30px;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
:host([hidden]) {
|
|
113
|
+
display: none;
|
|
114
|
+
}
|
|
115
115
|
`,
|
|
116
116
|
]; }
|
|
117
117
|
render() {
|
|
118
|
-
return html `
|
|
119
|
-
<header part="header">
|
|
120
|
-
${this.icon ? html `<md-icon header-icon part="icon">${this.icon}</md-icon>` : nothing}
|
|
121
|
-
<h1 part="h1">${this.header}</h1>
|
|
122
|
-
<md-icon-button part="button" @click="${this.#handleBackClick}" large> <md-icon>arrow_back</md-icon></md-icon-button>
|
|
123
|
-
</header>
|
|
124
|
-
|
|
125
|
-
<h3 part="h3">${this.subHeader}</h3>
|
|
118
|
+
return html `
|
|
119
|
+
<header part="header">
|
|
120
|
+
${this.icon ? html `<md-icon header-icon part="icon">${this.icon}</md-icon>` : nothing}
|
|
121
|
+
<h1 part="h1">${this.header}</h1>
|
|
122
|
+
<md-icon-button part="button" @click="${this.#handleBackClick}" large> <md-icon>arrow_back</md-icon></md-icon-button>
|
|
123
|
+
</header>
|
|
124
|
+
|
|
125
|
+
<h3 part="h3">${this.subHeader}</h3>
|
|
126
126
|
`;
|
|
127
127
|
}
|
|
128
128
|
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
//TODO: Rewrite in a safer way...check types, etc...
|
|
2
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3
|
+
export const convertArrayToCsv = (json, flatten = false) => {
|
|
4
|
+
if (!json[0]) {
|
|
5
|
+
return 'Empty List';
|
|
6
|
+
}
|
|
7
|
+
if (flatten) {
|
|
8
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
9
|
+
json = json.map((o) => flattenObject(o));
|
|
10
|
+
}
|
|
11
|
+
const fields = Object.keys(json[0]);
|
|
12
|
+
const replacer = function (_key, value) {
|
|
13
|
+
return value === null ? '' : value;
|
|
14
|
+
};
|
|
15
|
+
const csv = json.map(function (row) {
|
|
16
|
+
return fields
|
|
17
|
+
.map(function (fieldName) {
|
|
18
|
+
let data = row[fieldName];
|
|
19
|
+
if (data == null) {
|
|
20
|
+
data = '';
|
|
21
|
+
}
|
|
22
|
+
if (typeof data === 'object') {
|
|
23
|
+
data = 'object';
|
|
24
|
+
}
|
|
25
|
+
// JSON.stringify replaces double quotes with \" , but in a csv,
|
|
26
|
+
// double quotes are escaped by using two double quotes
|
|
27
|
+
return JSON.stringify(data, replacer).replace(/\\"/g, '""');
|
|
28
|
+
})
|
|
29
|
+
.join(',');
|
|
30
|
+
});
|
|
31
|
+
csv.unshift(fields.join(',')); // add header column
|
|
32
|
+
return csv.join('\r\n');
|
|
33
|
+
};
|
|
34
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any
|
|
35
|
+
function flattenObject(_o) {
|
|
36
|
+
throw new Error('Function not implemented.');
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=convert-array-to-csv.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"convert-array-to-csv.js","sourceRoot":"","sources":["convert-array-to-csv.ts"],"names":[],"mappings":"AAAA,oDAAoD;AACpD,8DAA8D;AAC9D,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,IAAgB,EAAE,OAAO,GAAG,KAAK,EAAE,EAAE;IACrE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE;QACZ,OAAO,YAAY,CAAC;KACrB;IAED,IAAI,OAAO,EAAE;QACX,8DAA8D;QAC9D,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAsB,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC;KAC/D;IAED,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IACpC,MAAM,QAAQ,GAAG,UAAU,IAAI,EAAE,KAAK;QACpC,OAAO,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC;IACrC,CAAC,CAAC;IACF,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,UAAU,GAAG;QAChC,OAAO,MAAM;aACV,GAAG,CAAC,UAAU,SAAS;YACtB,IAAI,IAAI,GAAG,GAAG,CAAC,SAAS,CAAC,CAAC;YAC1B,IAAI,IAAI,IAAI,IAAI,EAAE;gBAChB,IAAI,GAAG,EAAE,CAAC;aACX;YACD,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;gBAC5B,IAAI,GAAG,QAAQ,CAAC;aACjB;YACD,iEAAiE;YACjE,uDAAuD;YACvD,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QAC9D,CAAC,CAAC;aACD,IAAI,CAAC,GAAG,CAAC,CAAC;IACf,CAAC,CAAC,CAAC;IACH,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,oBAAoB;IACnD,OAAO,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AAC1B,CAAC,CAAC;AAEF,iGAAiG;AACjG,SAAS,aAAa,CAAC,EAAuB;IAC5C,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;AAC/C,CAAC"}
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
export const startCsvDownload = (fileName, csv, context = document.body) => {
|
|
2
|
-
const link = document.createElement('a');
|
|
3
|
-
link.setAttribute('download', fileName);
|
|
4
|
-
link.setAttribute('href', 'data:text/csv;charset=utf-8,' + encodeURIComponent(csv));
|
|
5
|
-
link.style.visibility = 'hidden';
|
|
6
|
-
const clickEvent = document.createEvent('MouseEvent');
|
|
7
|
-
clickEvent.initEvent('click', true, true);
|
|
8
|
-
context.appendChild(link);
|
|
9
|
-
link.dispatchEvent(clickEvent);
|
|
10
|
-
context.removeChild(link);
|
|
11
|
-
};
|
|
12
1
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13
2
|
const flattenObject = (data) => {
|
|
14
3
|
// also strips odata annotation properties
|
|
@@ -75,4 +64,4 @@ export const convertArrayToCsv = (json, flatten = false) => {
|
|
|
75
64
|
csv.unshift(fields.join(',')); // add header column
|
|
76
65
|
return csv.join('\r\n');
|
|
77
66
|
};
|
|
78
|
-
//# sourceMappingURL=
|
|
67
|
+
//# sourceMappingURL=flatten-object.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flatten-object.js","sourceRoot":"","sources":["flatten-object.ts"],"names":[],"mappings":"AAAA,8DAA8D;AAC9D,MAAM,aAAa,GAAG,CAAC,IAAyB,EAAE,EAAE;IAClD,0CAA0C;IAC1C,MAAM,MAAM,GAAG,EAAE,CAAC;IAClB,MAAM,OAAO,GAAG,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;QAC5B,IAAI,MAAM,CAAC,GAAG,CAAC,KAAK,GAAG,EAAE;YACvB,IAAI,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE;gBACjC,MAAM,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC;aACpB;SACF;aAAM,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;YAC7B,MAAM,CAAC,GAAG,CAAC,CAAC;YACZ,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;gBAC1C,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC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AAC,CAAC;IACF,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,UAAU,GAAG;QAChC,OAAO,MAAM;aACV,GAAG,CAAC,UAAU,SAAS;YACtB,IAAI,IAAI,GAAG,GAAG,CAAC,SAAS,CAAC,CAAC;YAC1B,IAAI,IAAI,IAAI,IAAI,EAAE;gBAChB,IAAI,GAAG,EAAE,CAAC;aACX;YACD,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;gBAC5B,IAAI,GAAG,QAAQ,CAAC;aACjB;YACD,iEAAiE;YACjE,uDAAuD;YACvD,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QAC9D,CAAC,CAAC;aACD,IAAI,CAAC,GAAG,CAAC,CAAC;IACf,CAAC,CAAC,CAAC;IACH,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,oBAAoB;IACnD,OAAO,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AAC1B,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export const startCsvDownload = (fileName, csv, context = document.body) => {
|
|
2
|
+
const link = document.createElement('a');
|
|
3
|
+
link.setAttribute('download', fileName);
|
|
4
|
+
link.setAttribute('href', 'data:text/csv;charset=utf-8,' + encodeURIComponent(csv));
|
|
5
|
+
link.style.visibility = 'hidden';
|
|
6
|
+
const clickEvent = document.createEvent('MouseEvent');
|
|
7
|
+
clickEvent.initEvent('click', true, true);
|
|
8
|
+
context.appendChild(link);
|
|
9
|
+
link.dispatchEvent(clickEvent);
|
|
10
|
+
context.removeChild(link);
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=start-csv-download.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"start-csv-download.js","sourceRoot":"","sources":["start-csv-download.ts"],"names":[],"mappings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CAAC;YAC9B,CAAC,CAAC,CAAC;SACJ;QACD,OAAO,IAAI,CAAC,gBAAgB,CAAC;IAC/B,CAAC;CACF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const escapeTerm: (term: string) => string;
|
|
2
|
-
//# sourceMappingURL=
|
|
2
|
+
//# sourceMappingURL=escape-term.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const escapeTerm = (term) => encodeURIComponent(term.replace(/'/g, "''"));
|
|
2
|
-
//# sourceMappingURL=
|
|
2
|
+
//# sourceMappingURL=escape-term.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"escape-term.js","sourceRoot":"","sources":["escape-term.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,IAAY,EAAU,EAAE,CAAC,kBAAkB,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { IDatabaseAttachment } from '@leavittsoftware/lg-core-typescript/lg.net.system';
|
|
2
2
|
export declare function getCdnInlineUrl(attachment: Partial<IDatabaseAttachment> | null | undefined, size?: number): string | undefined;
|
|
3
3
|
export declare function isImage(attachment: Partial<IDatabaseAttachment>): boolean;
|
|
4
|
-
|
|
5
|
-
//# sourceMappingURL=leavitt-cdn.d.ts.map
|
|
4
|
+
//# sourceMappingURL=get-cdn-Inline-url.d.ts.map
|
|
@@ -24,15 +24,4 @@ export function isImage(attachment) {
|
|
|
24
24
|
attachment?.Extension === 'svg' ||
|
|
25
25
|
attachment?.Extension === 'webp');
|
|
26
26
|
}
|
|
27
|
-
|
|
28
|
-
* Requires CdnFileName,PreviewExtension,PreviewSizes,Extension,Name
|
|
29
|
-
*/
|
|
30
|
-
export function getCdnDownloadUrl(attachment, size) {
|
|
31
|
-
if (!attachment?.CdnFileName || (size && !attachment?.PreviewSizes?.split(',').includes(String(size)))) {
|
|
32
|
-
return undefined;
|
|
33
|
-
}
|
|
34
|
-
return size
|
|
35
|
-
? `https://cdn.leavitt.com/${attachment.CdnFileName}-${size}.${attachment.PreviewExtension}?d=${encodeURIComponent(`${attachment.Name}-${size}.${attachment.PreviewExtension}`)}`
|
|
36
|
-
: `https://cdn.leavitt.com/${attachment.CdnFileName}.${attachment.Extension}?d=${encodeURIComponent(`${attachment.Name}.${attachment.Extension}`)}`;
|
|
37
|
-
}
|
|
38
|
-
//# sourceMappingURL=leavitt-cdn.js.map
|
|
27
|
+
//# sourceMappingURL=get-cdn-Inline-url.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-cdn-Inline-url.js","sourceRoot":"","sources":["get-cdn-Inline-url.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,UAAU,eAAe,CAAC,UAA2D,EAAE,IAAa;IACxG,IAAI,CAAC,UAAU,EAAE,WAAW,EAAE;QAC5B,OAAO,SAAS,CAAC;KAClB;IAED,IAAI,CAAC,UAAU,EAAE,YAAY,IAAI,CAAC,UAAU,EAAE,YAAY,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE;QAC7F,IAAI,OAAO,CAAC,UAAU,CAAC,EAAE;YACvB,sBAAsB;YACtB,OAAO,2BAA2B,UAAU,CAAC,WAAW,IAAI,UAAU,CAAC,SAAS,EAAE,CAAC;SACpF;QACD,OAAO,SAAS,CAAC;KAClB;IAED,OAAO,IAAI;QACT,CAAC,CAAC,2BAA2B,UAAU,CAAC,WAAW,IAAI,IAAI,IAAI,UAAU,CAAC,gBAAgB,EAAE;QAC5F,CAAC,CAAC,2BAA2B,UAAU,CAAC,WAAW,IAAI,UAAU,CAAC,SAAS,EAAE,CAAC;AAClF,CAAC;AAED,MAAM,UAAU,OAAO,CAAC,UAAwC;IAC9D,OAAO,CACL,UAAU,EAAE,SAAS,KAAK,KAAK;QAC/B,UAAU,EAAE,SAAS,KAAK,KAAK;QAC/B,UAAU,EAAE,SAAS,KAAK,MAAM;QAChC,UAAU,EAAE,SAAS,KAAK,KAAK;QAC/B,UAAU,EAAE,SAAS,KAAK,KAAK;QAC/B,UAAU,EAAE,SAAS,KAAK,MAAM,CACjC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IDatabaseAttachment } from '@leavittsoftware/lg-core-typescript/lg.net.system';
|
|
2
|
+
export declare function getCdnDownloadUrl(attachment: Partial<IDatabaseAttachment> | null | undefined, size?: number): string | undefined;
|
|
3
|
+
//# sourceMappingURL=get-cdn-download-url.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Requires CdnFileName,PreviewExtension,PreviewSizes,Extension,Name
|
|
3
|
+
*/
|
|
4
|
+
export function getCdnDownloadUrl(attachment, size) {
|
|
5
|
+
if (!attachment?.CdnFileName || (size && !attachment?.PreviewSizes?.split(',').includes(String(size)))) {
|
|
6
|
+
return undefined;
|
|
7
|
+
}
|
|
8
|
+
return size
|
|
9
|
+
? `https://cdn.leavitt.com/${attachment.CdnFileName}-${size}.${attachment.PreviewExtension}?d=${encodeURIComponent(`${attachment.Name}-${size}.${attachment.PreviewExtension}`)}`
|
|
10
|
+
: `https://cdn.leavitt.com/${attachment.CdnFileName}.${attachment.Extension}?d=${encodeURIComponent(`${attachment.Name}.${attachment.Extension}`)}`;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=get-cdn-download-url.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-cdn-download-url.js","sourceRoot":"","sources":["get-cdn-download-url.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,UAAU,iBAAiB,CAAC,UAA2D,EAAE,IAAa;IAC1G,IAAI,CAAC,UAAU,EAAE,WAAW,IAAI,CAAC,IAAI,IAAI,CAAC,UAAU,EAAE,YAAY,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE;QACtG,OAAO,SAAS,CAAC;KAClB;IAED,OAAO,IAAI;QACT,CAAC,CAAC,2BAA2B,UAAU,CAAC,WAAW,IAAI,IAAI,IAAI,UAAU,CAAC,gBAAgB,MAAM,kBAAkB,CAC9G,GAAG,UAAU,CAAC,IAAI,IAAI,IAAI,IAAI,UAAU,CAAC,gBAAgB,EAAE,CAC5D,EAAE;QACL,CAAC,CAAC,2BAA2B,UAAU,CAAC,WAAW,IAAI,UAAU,CAAC,SAAS,MAAM,kBAAkB,CAAC,GAAG,UAAU,CAAC,IAAI,IAAI,UAAU,CAAC,SAAS,EAAE,CAAC,EAAE,CAAC;AACxJ,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const getSearchTokens: (inputText: string, allowedComplexityLevel?: number) => string[];
|
|
2
|
-
//# sourceMappingURL=search-token.d.ts.map
|
|
2
|
+
//# sourceMappingURL=get-search-token.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { escapeTerm } from './
|
|
1
|
+
import { escapeTerm } from './escape-term';
|
|
2
2
|
export const getSearchTokens = (inputText, allowedComplexityLevel = 3) => {
|
|
3
3
|
if (typeof inputText === 'undefined' || inputText === null || inputText.length === 0) {
|
|
4
4
|
return [];
|
|
5
5
|
}
|
|
6
6
|
let tokens = inputText
|
|
7
7
|
.split(' ')
|
|
8
|
-
.map(token => escapeTerm(token.trim()))
|
|
9
|
-
.filter(token => token.length > 0);
|
|
8
|
+
.map((token) => escapeTerm(token.trim()))
|
|
9
|
+
.filter((token) => token.length > 0);
|
|
10
10
|
if (tokens.length > allowedComplexityLevel) {
|
|
11
11
|
// if user types more than
|
|
12
12
|
// three words, do not tokenize
|
|
@@ -14,4 +14,4 @@ export const getSearchTokens = (inputText, allowedComplexityLevel = 3) => {
|
|
|
14
14
|
}
|
|
15
15
|
return tokens;
|
|
16
16
|
};
|
|
17
|
-
//# sourceMappingURL=search-token.js.map
|
|
17
|
+
//# sourceMappingURL=get-search-token.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-search-token.js","sourceRoot":"","sources":["get-search-token.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,SAAiB,EAAE,sBAAsB,GAAG,CAAC,EAAE,EAAE;IAC/E,IAAI,OAAO,SAAS,KAAK,WAAW,IAAI,SAAS,KAAK,IAAI,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE;QACpF,OAAO,EAAE,CAAC;KACX;IACD,IAAI,MAAM,GAAG,SAAS;SACnB,KAAK,CAAC,GAAG,CAAC;SACV,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC;SACxC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IACvC,IAAI,MAAM,CAAC,MAAM,GAAG,sBAAsB,EAAE;QAC1C,0BAA0B;QAC1B,+BAA+B;QAC/B,MAAM,GAAG,CAAC,UAAU,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;KACzC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export { startCsvDownload
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
1
|
+
export { startCsvDownload } from './csv/start-csv-download';
|
|
2
|
+
export { convertArrayToCsv } from './csv/convert-array-to-csv';
|
|
3
|
+
export { isDevelopment } from './is-development';
|
|
4
|
+
export { escapeTerm } from './escape-term';
|
|
5
|
+
export { installMediaQueryWatcher } from './install-media-query-watcher';
|
|
6
|
+
export { getSearchTokens } from './get-search-token';
|
|
6
7
|
export { Debouncer } from './debouncer';
|
|
7
8
|
export { LoadWhile } from './load-while';
|
|
8
9
|
export { join } from './join';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export { startCsvDownload
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
1
|
+
export { startCsvDownload } from './csv/start-csv-download';
|
|
2
|
+
export { convertArrayToCsv } from './csv/convert-array-to-csv';
|
|
3
|
+
export { isDevelopment } from './is-development';
|
|
4
|
+
export { escapeTerm } from './escape-term';
|
|
5
|
+
export { installMediaQueryWatcher } from './install-media-query-watcher';
|
|
6
|
+
export { getSearchTokens } from './get-search-token';
|
|
6
7
|
export { Debouncer } from './debouncer';
|
|
7
8
|
export { LoadWhile } from './load-while';
|
|
8
9
|
export { join } from './join';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const installMediaQueryWatcher: (mediaQuery: string, layoutChangedCallback: (mediaQueryMatches: boolean) => void) => void;
|
|
2
|
-
//# sourceMappingURL=media-query.d.ts.map
|
|
2
|
+
//# sourceMappingURL=install-media-query-watcher.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export const installMediaQueryWatcher = (mediaQuery, layoutChangedCallback) => {
|
|
2
2
|
const mql = window.matchMedia(mediaQuery);
|
|
3
|
-
mql.addListener(e => layoutChangedCallback(e.matches));
|
|
3
|
+
mql.addListener((e) => layoutChangedCallback(e.matches));
|
|
4
4
|
layoutChangedCallback(mql.matches);
|
|
5
5
|
};
|
|
6
|
-
//# sourceMappingURL=media-query.js.map
|
|
6
|
+
//# sourceMappingURL=install-media-query-watcher.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"install-media-query-watcher.js","sourceRoot":"","sources":["install-media-query-watcher.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,UAAkB,EAAE,qBAA2D,EAAE,EAAE;IAC1H,MAAM,GAAG,GAAG,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;IAC1C,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,qBAAqB,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;IACzD,qBAAqB,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AACrC,CAAC,CAAC"}
|
|
@@ -6,7 +6,7 @@ export const determineIsDevelopment = (url) => {
|
|
|
6
6
|
new RegExp('^http://localhost[:]0*(?:6553[0-5]|655[0-2][0-9]|65[0-4][0-9]{2}|6[0-4][0-9]{3}|[1-5][0-9]{4}|[1-9][0-9]{1,3}|[0-9])'),
|
|
7
7
|
new RegExp('^https://localhost[:]0*(?:6553[0-5]|655[0-2][0-9]|65[0-4][0-9]{2}|6[0-4][0-9]{3}|[1-5][0-9]{4}|[1-9][0-9]{1,3}|[0-9])'),
|
|
8
8
|
];
|
|
9
|
-
return !url || url.indexOf('dev') > -1 || allowedUrlRegularExpressions.some(o => o.exec(url) !== null);
|
|
9
|
+
return !url || url.indexOf('dev') > -1 || allowedUrlRegularExpressions.some((o) => o.exec(url) !== null);
|
|
10
10
|
};
|
|
11
11
|
export const isDevelopment = determineIsDevelopment(window.location.origin);
|
|
12
|
-
//# sourceMappingURL=
|
|
12
|
+
//# sourceMappingURL=is-development.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-development.js","sourceRoot":"","sources":["is-development.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,GAAW,EAAW,EAAE;IAC7D,MAAM,4BAA4B,GAAG;QACnC,IAAI,MAAM,CAAC,kBAAkB,CAAC;QAC9B,IAAI,MAAM,CAAC,iBAAiB,CAAC;QAC7B,IAAI,MAAM,CAAC,sBAAsB,CAAC;QAClC,IAAI,MAAM,CAAC,sHAAsH,CAAC;QAClI,IAAI,MAAM,CAAC,uHAAuH,CAAC;KACpI,CAAC;IAEF,OAAO,CAAC,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,4BAA4B,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,IAAI,CAAC,CAAC;AAC3G,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,sBAAsB,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -52,10 +52,10 @@ let TitaniumIconPicker = class TitaniumIconPicker extends TitaniumSingleSelectBa
|
|
|
52
52
|
return html ` <md-icon slot="leading-icon">${entity.icon}</md-icon> `;
|
|
53
53
|
}
|
|
54
54
|
renderSuggestion(entity) {
|
|
55
|
-
return html `<md-menu-item .item=${entity} ?selected=${this.selected?.Id === entity.Id}>
|
|
56
|
-
<slot name="trailing-icon" slot="trailing-icon"></slot>
|
|
57
|
-
<span slot="headline">${entity.icon}</span>
|
|
58
|
-
<md-icon slot="start">${entity.icon}</md-icon>
|
|
55
|
+
return html `<md-menu-item .item=${entity} ?selected=${this.selected?.Id === entity.Id}>
|
|
56
|
+
<slot name="trailing-icon" slot="trailing-icon"></slot>
|
|
57
|
+
<span slot="headline">${entity.icon}</span>
|
|
58
|
+
<md-icon slot="start">${entity.icon}</md-icon>
|
|
59
59
|
</md-menu-item>`;
|
|
60
60
|
}
|
|
61
61
|
};
|