@leavittsoftware/web 2.2.0 → 2.3.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/file-explorer/add-folder-modal.d.ts +1 -1
- package/leavitt/file-explorer/file-explorer.d.ts +1 -1
- package/leavitt/file-explorer/file-modal.d.ts +1 -1
- package/leavitt/file-explorer/folder-modal.d.ts +1 -1
- package/leavitt/user-feedback/user-feedback.d.ts +1 -1
- package/package.json +2 -2
- package/titanium/helpers/load-while.d.ts +1 -1
- package/titanium/single-select-base/single-select-base.d.ts +1 -1
- package/titanium/smart-attachment-input/crop-and-save-image-dialog.d.ts +1 -1
- package/titanium/toolbar/toolbar.d.ts +2 -12
- package/titanium/toolbar/toolbar.js +13 -23
- package/titanium/toolbar/toolbar.js.map +1 -1
|
@@ -6,7 +6,7 @@ import { FileExplorerFolderDto } from '@leavittsoftware/lg-core-typescript';
|
|
|
6
6
|
import ApiService from '../api-service/api-service';
|
|
7
7
|
declare const AddFolderModal_base: {
|
|
8
8
|
new (...args: any[]): {
|
|
9
|
-
"__#
|
|
9
|
+
"__#4@#promiseCount": number;
|
|
10
10
|
isLoading: boolean;
|
|
11
11
|
loadWhile(promise: Promise<unknown>): Promise<void>;
|
|
12
12
|
accessKey: string;
|
|
@@ -16,7 +16,7 @@ import './file-list-item';
|
|
|
16
16
|
import './folder-list-item';
|
|
17
17
|
declare const LeavittFileExplorer_base: {
|
|
18
18
|
new (...args: any[]): {
|
|
19
|
-
"__#
|
|
19
|
+
"__#4@#promiseCount": number;
|
|
20
20
|
isLoading: boolean;
|
|
21
21
|
loadWhile(promise: Promise<unknown>): Promise<void>;
|
|
22
22
|
accessKey: string;
|
|
@@ -9,7 +9,7 @@ import { FileExplorerFileDto } from '@leavittsoftware/lg-core-typescript';
|
|
|
9
9
|
import ApiService from '../api-service/api-service';
|
|
10
10
|
declare const FileModal_base: {
|
|
11
11
|
new (...args: any[]): {
|
|
12
|
-
"__#
|
|
12
|
+
"__#4@#promiseCount": number;
|
|
13
13
|
isLoading: boolean;
|
|
14
14
|
loadWhile(promise: Promise<unknown>): Promise<void>;
|
|
15
15
|
accessKey: string;
|
|
@@ -9,7 +9,7 @@ import { FileExplorerFolderDto } from '@leavittsoftware/lg-core-typescript';
|
|
|
9
9
|
import ApiService from '../api-service/api-service';
|
|
10
10
|
declare const FolderModal_base: {
|
|
11
11
|
new (...args: any[]): {
|
|
12
|
-
"__#
|
|
12
|
+
"__#4@#promiseCount": number;
|
|
13
13
|
isLoading: boolean;
|
|
14
14
|
loadWhile(promise: Promise<unknown>): Promise<void>;
|
|
15
15
|
accessKey: string;
|
|
@@ -8,7 +8,7 @@ import '@material/web/tabs/tabs';
|
|
|
8
8
|
import { LitElement, PropertyValues } from 'lit';
|
|
9
9
|
declare const LeavittUserFeedback_base: {
|
|
10
10
|
new (...args: any[]): {
|
|
11
|
-
"__#
|
|
11
|
+
"__#4@#promiseCount": number;
|
|
12
12
|
isLoading: boolean;
|
|
13
13
|
loadWhile(promise: Promise<unknown>): Promise<void>;
|
|
14
14
|
accessKey: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leavittsoftware/web",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"files": [
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"url": "https://github.com/LeavittSoftware/titanium-elements/issues"
|
|
41
41
|
},
|
|
42
42
|
"homepage": "https://github.com/LeavittSoftware/titanium-elements/#readme",
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "2923f5ec402c831746bd837813326650e5f4a057"
|
|
44
44
|
}
|
|
@@ -6,7 +6,7 @@ export declare const LoadWhile: <C extends Constructor<HTMLElement>>(base: C) =>
|
|
|
6
6
|
/**
|
|
7
7
|
* @internal
|
|
8
8
|
*/
|
|
9
|
-
"__#
|
|
9
|
+
"__#4@#promiseCount": number;
|
|
10
10
|
isLoading: boolean;
|
|
11
11
|
loadWhile(promise: Promise<unknown>): Promise<void>;
|
|
12
12
|
accessKey: string;
|
|
@@ -9,7 +9,7 @@ import { Menu } from '@material/web/menu/internal/menu';
|
|
|
9
9
|
import { Identifier } from '../types/identifier-interface';
|
|
10
10
|
declare const TitaniumSingleSelectBase_base: {
|
|
11
11
|
new (...args: any[]): {
|
|
12
|
-
"__#
|
|
12
|
+
"__#4@#promiseCount": number;
|
|
13
13
|
isLoading: boolean;
|
|
14
14
|
loadWhile(promise: Promise<unknown>): Promise<void>;
|
|
15
15
|
accessKey: string;
|
|
@@ -10,7 +10,7 @@ import Cropper from 'cropperjs';
|
|
|
10
10
|
import { MdDialog } from '@material/web/dialog/dialog';
|
|
11
11
|
declare const CropAndSaveImageDialog_base: {
|
|
12
12
|
new (...args: any[]): {
|
|
13
|
-
"__#
|
|
13
|
+
"__#4@#promiseCount": number;
|
|
14
14
|
isLoading: boolean;
|
|
15
15
|
loadWhile(promise: Promise<unknown>): Promise<void>;
|
|
16
16
|
accessKey: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
|
+
import '@material/web/elevation/elevation';
|
|
2
3
|
/**
|
|
3
4
|
* A material design inspired site toolbar
|
|
4
5
|
*
|
|
@@ -10,6 +11,7 @@ import { LitElement } from 'lit';
|
|
|
10
11
|
* @cssprop {Color} [--md-sys-color-on-background] - Color of the toolbar text
|
|
11
12
|
*/
|
|
12
13
|
export declare class TitaniumToolbar extends LitElement {
|
|
14
|
+
#private;
|
|
13
15
|
/**
|
|
14
16
|
* Adds a box shadow around the toolbar
|
|
15
17
|
*/
|
|
@@ -17,18 +19,6 @@ export declare class TitaniumToolbar extends LitElement {
|
|
|
17
19
|
static styles: import("lit").CSSResult;
|
|
18
20
|
connectedCallback(): void;
|
|
19
21
|
disconnectedCallback(): void;
|
|
20
|
-
/**
|
|
21
|
-
* @ignore
|
|
22
|
-
*/
|
|
23
|
-
onScroll(): void;
|
|
24
|
-
/**
|
|
25
|
-
* @ignore
|
|
26
|
-
*/
|
|
27
|
-
amountScrolled(): void;
|
|
28
|
-
/**
|
|
29
|
-
* @ignore
|
|
30
|
-
*/
|
|
31
|
-
getDocHeight(): number;
|
|
32
22
|
render(): import("lit-html").TemplateResult<1>;
|
|
33
23
|
}
|
|
34
24
|
//# sourceMappingURL=toolbar.d.ts.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { css, html, LitElement } from 'lit';
|
|
3
3
|
import { property, customElement } from 'lit/decorators.js';
|
|
4
|
+
import '@material/web/elevation/elevation';
|
|
4
5
|
/**
|
|
5
6
|
* A material design inspired site toolbar
|
|
6
7
|
*
|
|
@@ -39,14 +40,12 @@ let TitaniumToolbar = class TitaniumToolbar extends LitElement {
|
|
|
39
40
|
padding: 0 14px;
|
|
40
41
|
background-color: var(--md-sys-color-background);
|
|
41
42
|
color: var(--md-sys-color-on-background);
|
|
43
|
+
|
|
44
|
+
--md-elevation-level: 0;
|
|
42
45
|
}
|
|
43
46
|
|
|
44
47
|
:host([shadow]) {
|
|
45
|
-
|
|
46
|
-
0px 2px 4px -1px rgb(from var(--md-sys-color-on-background) r g b / 0.2),
|
|
47
|
-
0px 4px 5px 0px rgb(from var(--md-sys-color-on-background) r g b / 0.14),
|
|
48
|
-
0px 1px 10px 0px rgb(from var(--md-sys-color-on-background) r g b / 0.12);
|
|
49
|
-
transition: box-shadow 0.3s ease-in-out;
|
|
48
|
+
--md-elevation-level: 3;
|
|
50
49
|
}
|
|
51
50
|
|
|
52
51
|
::slotted([main-title]) {
|
|
@@ -66,38 +65,29 @@ let TitaniumToolbar = class TitaniumToolbar extends LitElement {
|
|
|
66
65
|
`; }
|
|
67
66
|
connectedCallback() {
|
|
68
67
|
super.connectedCallback();
|
|
69
|
-
document.addEventListener('scroll', this
|
|
68
|
+
document.addEventListener('scroll', this.#onScroll.bind(this), false);
|
|
70
69
|
}
|
|
71
70
|
disconnectedCallback() {
|
|
72
|
-
document.removeEventListener('scroll', this
|
|
71
|
+
document.removeEventListener('scroll', this.#onScroll, false);
|
|
73
72
|
super.disconnectedCallback();
|
|
74
73
|
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
*/
|
|
78
|
-
onScroll() {
|
|
79
|
-
this.amountScrolled();
|
|
74
|
+
#onScroll() {
|
|
75
|
+
this.#amountScrolled();
|
|
80
76
|
}
|
|
81
|
-
|
|
82
|
-
* @ignore
|
|
83
|
-
*/
|
|
84
|
-
amountScrolled() {
|
|
77
|
+
#amountScrolled() {
|
|
85
78
|
const winHeight = window.innerHeight || (document.documentElement || document.body).clientHeight;
|
|
86
|
-
const docHeight = this
|
|
87
|
-
const scrollTop = window.
|
|
79
|
+
const docHeight = this.#getDocHeight();
|
|
80
|
+
const scrollTop = window.scrollY || (document.documentElement || document.body.parentNode || document.body).scrollTop;
|
|
88
81
|
const trackLength = docHeight - winHeight;
|
|
89
82
|
const pctScrolled = Math.floor((scrollTop / trackLength) * 100);
|
|
90
83
|
this.shadow = (pctScrolled || 0) !== 0;
|
|
91
84
|
}
|
|
92
|
-
|
|
93
|
-
* @ignore
|
|
94
|
-
*/
|
|
95
|
-
getDocHeight() {
|
|
85
|
+
#getDocHeight() {
|
|
96
86
|
const D = document;
|
|
97
87
|
return Math.max(D.body.scrollHeight, D.documentElement.scrollHeight, D.body.offsetHeight, D.documentElement.offsetHeight, D.body.clientHeight, D.documentElement.clientHeight);
|
|
98
88
|
}
|
|
99
89
|
render() {
|
|
100
|
-
return html ` <slot></slot
|
|
90
|
+
return html ` <md-elevation></md-elevation><slot></slot>`;
|
|
101
91
|
}
|
|
102
92
|
};
|
|
103
93
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolbar.js","sourceRoot":"","sources":["toolbar.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAA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