@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.
- package/leavitt/api-service/api-service.js +5 -5
- package/leavitt/api-service/api-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.js +51 -51
- 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/debouncer.js.map +1 -1
- package/titanium/helpers/dev-detection.js +1 -1
- package/titanium/helpers/dev-detection.js.map +1 -1
- package/titanium/helpers/media-query.js +1 -1
- package/titanium/helpers/media-query.js.map +1 -1
- package/titanium/helpers/search-token.js +2 -2
- package/titanium/helpers/search-token.js.map +1 -1
- 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 +81 -81
- 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/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
|
@@ -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
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debouncer.js","sourceRoot":"","sources":["debouncer.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,SAAS;IACpB,gBAAgB,CAAyB;IACzC,gBAAgB,CAAsE;IACtF,MAAM,GAAW,CAAC,CAAC;IACnB,KAAK,CAA+B;IACpC,SAAS,CAAS;IAElB,YAAY,OAAqC,EAAE,WAAmB,GAAG;QACvE,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC;QACrB,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;IAC5B,CAAC;IAED;;;;;;OAMG;IACH,QAAQ,CAAC,GAAG,IAAS;QACnB,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC1B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,UAAU,CAAC,KAAK,IAAI,EAAE;YACzC,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;YAC7C,IAAI,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC;YAClC,IAAI,CAAC,gBAAgB,GAAG,SAAS,CAAC;QACpC,CAAC,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;QAEnB,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE;YAC1B,IAAI,CAAC,gBAAgB,GAAG,IAAI,OAAO,CAAI,KAAK,
|
|
1
|
+
{"version":3,"file":"debouncer.js","sourceRoot":"","sources":["debouncer.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,SAAS;IACpB,gBAAgB,CAAyB;IACzC,gBAAgB,CAAsE;IACtF,MAAM,GAAW,CAAC,CAAC;IACnB,KAAK,CAA+B;IACpC,SAAS,CAAS;IAElB,YAAY,OAAqC,EAAE,WAAmB,GAAG;QACvE,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC;QACrB,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;IAC5B,CAAC;IAED;;;;;;OAMG;IACH,QAAQ,CAAC,GAAG,IAAS;QACnB,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC1B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,UAAU,CAAC,KAAK,IAAI,EAAE;YACzC,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;YAC7C,IAAI,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC;YAClC,IAAI,CAAC,gBAAgB,GAAG,SAAS,CAAC;QACpC,CAAC,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;QAEnB,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE;YAC1B,IAAI,CAAC,gBAAgB,GAAG,IAAI,OAAO,CAAI,KAAK,EAAE,GAAG,EAAE,EAAE;gBACnD,IAAI,CAAC,gBAAgB,GAAG,GAAG,CAAC;YAC9B,CAAC,CAAC,CAAC;SACJ;QACD,OAAO,IAAI,CAAC,gBAAgB,CAAC;IAC/B,CAAC;CACF"}
|
|
@@ -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
12
|
//# sourceMappingURL=dev-detection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev-detection.js","sourceRoot":"","sources":["dev-detection.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,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,IAAI,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"dev-detection.js","sourceRoot":"","sources":["dev-detection.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"}
|
|
@@ -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
6
|
//# sourceMappingURL=media-query.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"media-query.js","sourceRoot":"","sources":["media-query.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,CAAC,qBAAqB,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"media-query.js","sourceRoot":"","sources":["media-query.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"}
|
|
@@ -5,8 +5,8 @@ export const getSearchTokens = (inputText, allowedComplexityLevel = 3) => {
|
|
|
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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-token.js","sourceRoot":"","sources":["search-token.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,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,KAAK,
|
|
1
|
+
{"version":3,"file":"search-token.js","sourceRoot":"","sources":["search-token.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,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"}
|
|
@@ -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
|
};
|
|
@@ -85,127 +85,127 @@ let TitaniumSearchInput = class TitaniumSearchInput extends LitElement {
|
|
|
85
85
|
this.collapsed = true;
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
|
-
static { this.styles = css `
|
|
89
|
-
:host {
|
|
90
|
-
display: flex;
|
|
91
|
-
flex-direction: column;
|
|
92
|
-
height: 42px;
|
|
93
|
-
-webkit-transition: width 250ms 0ms cubic-bezier(0.4, 0, 0.2, 1); /* Safari */
|
|
94
|
-
transition: width 250ms 0ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
95
|
-
width: 250px;
|
|
96
|
-
--md-icon-button-state-layer-width: 42px;
|
|
97
|
-
--md-icon-button-state-layer-height: 42px;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
input-container {
|
|
101
|
-
display: flex;
|
|
102
|
-
flex-direction: row;
|
|
103
|
-
position: relative;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
md-icon-button {
|
|
107
|
-
position: absolute;
|
|
108
|
-
top: 0;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
md-icon-button[clear] {
|
|
112
|
-
right: 0;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
md-icon-button[search] {
|
|
116
|
-
left: 0;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
:host([disabled]) svg {
|
|
120
|
-
cursor: not-allowed;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
input-container input {
|
|
124
|
-
-webkit-appearance: none;
|
|
125
|
-
width: 100%;
|
|
126
|
-
height: 42px;
|
|
127
|
-
-webkit-font-smoothing: antialiased;
|
|
128
|
-
-moz-osx-font-smoothing: grayscale;
|
|
129
|
-
padding: 0;
|
|
130
|
-
margin: 0;
|
|
131
|
-
padding-left: 46px !important;
|
|
132
|
-
padding-right: 46px !important;
|
|
133
|
-
transition:
|
|
134
|
-
background 100ms ease-in,
|
|
135
|
-
width 100ms ease-out;
|
|
136
|
-
color: var(--md-sys-color-on-background);
|
|
137
|
-
background-color: transparent;
|
|
138
|
-
border-top-left-radius: 20px;
|
|
139
|
-
border-top-right-radius: 20px;
|
|
140
|
-
border-bottom-left-radius: 20px;
|
|
141
|
-
border-bottom-right-radius: 20px;
|
|
142
|
-
border: 1px solid var(--md-sys-color-outline-variant);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
:host([shallow]) input-container input {
|
|
146
|
-
border-top-left-radius: 12px;
|
|
147
|
-
border-top-right-radius: 12px;
|
|
148
|
-
border-bottom-left-radius: 12px;
|
|
149
|
-
border-bottom-right-radius: 12px;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
input-container:hover input {
|
|
153
|
-
box-shadow: 0 1px 6px 0 rgba(32, 33, 36, 0.28);
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
input-container input::-ms-clear {
|
|
157
|
-
display: none;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
:host([collapsed]:not([prevent-collapse])) {
|
|
161
|
-
width: 42px;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
:host([collapsed]:not([prevent-collapse])) input-container input {
|
|
165
|
-
opacity: 0;
|
|
166
|
-
pointer-events: none;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
:host([disabled]) input-container input {
|
|
170
|
-
cursor: not-allowed;
|
|
171
|
-
opacity: 0.6;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
:host([disabled]) input-container:hover input {
|
|
175
|
-
box-shadow: none;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
input-container input,
|
|
179
|
-
input-container input:focus {
|
|
180
|
-
box-sizing: border-box;
|
|
181
|
-
outline: none;
|
|
182
|
-
font-size: 16px;
|
|
183
|
-
font-weight: 400;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
[hidden] {
|
|
187
|
-
display: none;
|
|
188
|
-
}
|
|
88
|
+
static { this.styles = css `
|
|
89
|
+
:host {
|
|
90
|
+
display: flex;
|
|
91
|
+
flex-direction: column;
|
|
92
|
+
height: 42px;
|
|
93
|
+
-webkit-transition: width 250ms 0ms cubic-bezier(0.4, 0, 0.2, 1); /* Safari */
|
|
94
|
+
transition: width 250ms 0ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
95
|
+
width: 250px;
|
|
96
|
+
--md-icon-button-state-layer-width: 42px;
|
|
97
|
+
--md-icon-button-state-layer-height: 42px;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
input-container {
|
|
101
|
+
display: flex;
|
|
102
|
+
flex-direction: row;
|
|
103
|
+
position: relative;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
md-icon-button {
|
|
107
|
+
position: absolute;
|
|
108
|
+
top: 0;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
md-icon-button[clear] {
|
|
112
|
+
right: 0;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
md-icon-button[search] {
|
|
116
|
+
left: 0;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
:host([disabled]) svg {
|
|
120
|
+
cursor: not-allowed;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
input-container input {
|
|
124
|
+
-webkit-appearance: none;
|
|
125
|
+
width: 100%;
|
|
126
|
+
height: 42px;
|
|
127
|
+
-webkit-font-smoothing: antialiased;
|
|
128
|
+
-moz-osx-font-smoothing: grayscale;
|
|
129
|
+
padding: 0;
|
|
130
|
+
margin: 0;
|
|
131
|
+
padding-left: 46px !important;
|
|
132
|
+
padding-right: 46px !important;
|
|
133
|
+
transition:
|
|
134
|
+
background 100ms ease-in,
|
|
135
|
+
width 100ms ease-out;
|
|
136
|
+
color: var(--md-sys-color-on-background);
|
|
137
|
+
background-color: transparent;
|
|
138
|
+
border-top-left-radius: 20px;
|
|
139
|
+
border-top-right-radius: 20px;
|
|
140
|
+
border-bottom-left-radius: 20px;
|
|
141
|
+
border-bottom-right-radius: 20px;
|
|
142
|
+
border: 1px solid var(--md-sys-color-outline-variant);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
:host([shallow]) input-container input {
|
|
146
|
+
border-top-left-radius: 12px;
|
|
147
|
+
border-top-right-radius: 12px;
|
|
148
|
+
border-bottom-left-radius: 12px;
|
|
149
|
+
border-bottom-right-radius: 12px;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
input-container:hover input {
|
|
153
|
+
box-shadow: 0 1px 6px 0 rgba(32, 33, 36, 0.28);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
input-container input::-ms-clear {
|
|
157
|
+
display: none;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
:host([collapsed]:not([prevent-collapse])) {
|
|
161
|
+
width: 42px;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
:host([collapsed]:not([prevent-collapse])) input-container input {
|
|
165
|
+
opacity: 0;
|
|
166
|
+
pointer-events: none;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
:host([disabled]) input-container input {
|
|
170
|
+
cursor: not-allowed;
|
|
171
|
+
opacity: 0.6;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
:host([disabled]) input-container:hover input {
|
|
175
|
+
box-shadow: none;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
input-container input,
|
|
179
|
+
input-container input:focus {
|
|
180
|
+
box-sizing: border-box;
|
|
181
|
+
outline: none;
|
|
182
|
+
font-size: 16px;
|
|
183
|
+
font-weight: 400;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
[hidden] {
|
|
187
|
+
display: none;
|
|
188
|
+
}
|
|
189
189
|
`; }
|
|
190
190
|
render() {
|
|
191
|
-
return html `
|
|
192
|
-
<input-container>
|
|
193
|
-
<md-icon-button ?disabled=${this.disabled} search @click=${this.#handleSearchClick}><md-icon>search</md-icon></md-icon-button>
|
|
194
|
-
<input
|
|
195
|
-
type="text"
|
|
196
|
-
?disabled=${this.disabled || (this.collapsed && !this.preventCollapse)}
|
|
197
|
-
placeholder=${this.placeholder}
|
|
198
|
-
autocomplete="off"
|
|
199
|
-
.value=${this.value}
|
|
200
|
-
@keyup=${this.#onValueChange}
|
|
201
|
-
@focusout=${this.#lostFocus}
|
|
202
|
-
@change=${this.#onValueChange}
|
|
203
|
-
/>
|
|
204
|
-
|
|
191
|
+
return html `
|
|
192
|
+
<input-container>
|
|
193
|
+
<md-icon-button ?disabled=${this.disabled} search @click=${this.#handleSearchClick}><md-icon>search</md-icon></md-icon-button>
|
|
194
|
+
<input
|
|
195
|
+
type="text"
|
|
196
|
+
?disabled=${this.disabled || (this.collapsed && !this.preventCollapse)}
|
|
197
|
+
placeholder=${this.placeholder}
|
|
198
|
+
autocomplete="off"
|
|
199
|
+
.value=${this.value}
|
|
200
|
+
@keyup=${this.#onValueChange}
|
|
201
|
+
@focusout=${this.#lostFocus}
|
|
202
|
+
@change=${this.#onValueChange}
|
|
203
|
+
/>
|
|
204
|
+
|
|
205
205
|
${this.hideClearButton || !this.value
|
|
206
206
|
? ''
|
|
207
|
-
: html ` <md-icon-button clear @click=${this.#onClearClick} ?disabled=${this.disabled}> <md-icon>close</md-icon></md-icon-button> `}
|
|
208
|
-
</input-container>
|
|
207
|
+
: html ` <md-icon-button clear @click=${this.#onClearClick} ?disabled=${this.disabled}> <md-icon>close</md-icon></md-icon-button> `}
|
|
208
|
+
</input-container>
|
|
209
209
|
`;
|
|
210
210
|
}
|
|
211
211
|
};
|