@leavittsoftware/web 5.15.3 → 5.17.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/email-history-viewer/email-history-view-list-filter-dialog.d.ts +1 -1
- package/leavitt/email-history-viewer/email-history-viewer.d.ts +1 -1
- package/leavitt/email-history-viewer/view-sent-email-dialog.d.ts +1 -1
- 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/provide-feedback-dialog.d.ts +1 -1
- package/leavitt/user-feedback/report-a-problem-dialog.d.ts +1 -1
- package/leavitt/user-feedback/user-feedback.d.ts +1 -1
- package/package.json +3 -3
- package/titanium/chip-multi-select/chip-multi-select.d.ts +9 -4
- package/titanium/chip-multi-select/chip-multi-select.js +62 -7
- package/titanium/chip-multi-select/chip-multi-select.js.map +1 -1
- package/titanium/data-table/data-table-action-bar.js +2 -2
- package/titanium/data-table/data-table-core-settings-dialog.d.ts +398 -0
- package/titanium/data-table/data-table-core-settings-dialog.js +352 -0
- package/titanium/data-table/data-table-core-settings-dialog.js.map +1 -0
- package/titanium/data-table/data-table-core-settings-item.d.ts +15 -0
- package/titanium/data-table/data-table-core-settings-item.js +102 -0
- package/titanium/data-table/data-table-core-settings-item.js.map +1 -0
- package/titanium/data-table/data-table-core-settings-sort-item.d.ts +17 -0
- package/titanium/data-table/data-table-core-settings-sort-item.js +164 -0
- package/titanium/data-table/data-table-core-settings-sort-item.js.map +1 -0
- package/titanium/data-table/data-table-core.d.ts +29 -4
- package/titanium/data-table/data-table-core.js +96 -9
- package/titanium/data-table/data-table-core.js.map +1 -1
- package/titanium/data-table/draggable-item-base.d.ts +29 -0
- package/titanium/data-table/draggable-item-base.js +282 -0
- package/titanium/data-table/draggable-item-base.js.map +1 -0
- package/titanium/helpers/load-while.d.ts +1 -1
- package/titanium/input-validator/filled-input-validator.d.ts +20 -0
- package/titanium/input-validator/filled-input-validator.js +48 -0
- package/titanium/input-validator/filled-input-validator.js.map +1 -0
- package/titanium/input-validator/outlined-input-validator.d.ts +20 -0
- package/titanium/input-validator/outlined-input-validator.js +48 -0
- package/titanium/input-validator/outlined-input-validator.js.map +1 -0
- package/titanium/single-select-base/single-select-base.d.ts +1 -1
- package/titanium/single-select-base/single-select-base.js +1 -1
- package/titanium/smart-attachment-input/crop-and-save-image-dialog.d.ts +1 -1
- package/titanium/smart-attachment-input/smart-attachment-input.d.ts +2 -2
- package/titanium/styles/nice-badge.d.ts +2 -0
- package/titanium/styles/nice-badge.js +43 -0
- package/titanium/styles/nice-badge.js.map +1 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { customElement, property } from 'lit/decorators.js';
|
|
3
|
+
import { MdFilledField } from '@material/web/field/filled-field';
|
|
4
|
+
/**
|
|
5
|
+
* Input validator to make components use validation consistent with material 3 outlined styling
|
|
6
|
+
*
|
|
7
|
+
* @element titanium-filled-input-validator
|
|
8
|
+
* @slot default - The slotted element should fire the NotifyUserInputEvent when it is ready to be validated
|
|
9
|
+
* @example
|
|
10
|
+
* <titanium-filled-input-validator .evaluator=${() => (this.collection?.length ?? 0) > 0} validationMessage="Collection must have one item">
|
|
11
|
+
* <custom-input></custom-input>
|
|
12
|
+
* </titanium-filled-input-validator>
|
|
13
|
+
*/
|
|
14
|
+
let TitaniumFilledInputValidator = class TitaniumFilledInputValidator extends MdFilledField {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
this.populated = true;
|
|
18
|
+
}
|
|
19
|
+
#evaluator_accessor_storage;
|
|
20
|
+
get evaluator() { return this.#evaluator_accessor_storage; }
|
|
21
|
+
set evaluator(value) { this.#evaluator_accessor_storage = value; }
|
|
22
|
+
firstUpdated() {
|
|
23
|
+
this.addEventListener('focusin', () => (this.focused = true));
|
|
24
|
+
this.addEventListener('focusout', () => (this.focused = false));
|
|
25
|
+
}
|
|
26
|
+
reset() {
|
|
27
|
+
this.error = false;
|
|
28
|
+
}
|
|
29
|
+
reportValidity() {
|
|
30
|
+
const valid = this.checkValidity();
|
|
31
|
+
this.error = !valid;
|
|
32
|
+
return valid;
|
|
33
|
+
}
|
|
34
|
+
checkValidity() {
|
|
35
|
+
return !!this.evaluator();
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
__decorate([
|
|
39
|
+
property({ type: Boolean })
|
|
40
|
+
], TitaniumFilledInputValidator.prototype, "populated", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
property({ type: Object })
|
|
43
|
+
], TitaniumFilledInputValidator.prototype, "evaluator", null);
|
|
44
|
+
TitaniumFilledInputValidator = __decorate([
|
|
45
|
+
customElement('titanium-filled-input-validator')
|
|
46
|
+
], TitaniumFilledInputValidator);
|
|
47
|
+
export { TitaniumFilledInputValidator };
|
|
48
|
+
//# sourceMappingURL=filled-input-validator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filled-input-validator.js","sourceRoot":"","sources":["filled-input-validator.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAEjE;;;;;;;;;GASG;AAEI,IAAM,4BAA4B,GAAlC,MAAM,4BAA6B,SAAQ,aAAa;IAAxD;;QACwB,cAAS,GAAY,IAAI,CAAC;IAsBzD,CAAC;IArBsC,4BAAyB;IAAzB,IAAA,SAAS,+CAAgB;IAAzB,IAAA,SAAS,qDAAgB;IAE9D,YAAY;QACV,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC,CAAC;QAC9D,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,CAAC,CAAC;IAClE,CAAC;IAED,KAAK;QACH,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAED,cAAc;QACZ,MAAM,KAAK,GAAG,IAAI,CAAC,aAAa,EAAE,CAAC;QACnC,IAAI,CAAC,KAAK,GAAG,CAAC,KAAK,CAAC;QAEpB,OAAO,KAAK,CAAC;IACf,CAAC;IAED,aAAa;QACX,OAAO,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC;IAC5B,CAAC;CACF,CAAA;AAtB8B;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;+DAA2B;AAClB;IAApC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;6DAAmC;AAFnD,4BAA4B;IADxC,aAAa,CAAC,iCAAiC,CAAC;GACpC,4BAA4B,CAuBxC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { MdOutlinedField } from '@material/web/field/outlined-field';
|
|
2
|
+
/**
|
|
3
|
+
* Input validator to make components use validation consistent with material 3 outlined styling
|
|
4
|
+
*
|
|
5
|
+
* @element titanium-outlined-input-validator
|
|
6
|
+
* @slot default - The slotted element should fire the NotifyUserInputEvent when it is ready to be validated
|
|
7
|
+
* @example
|
|
8
|
+
* <titanium-outlined-input-validator .evaluator=${() => (this.collection?.length ?? 0) > 0} validationMessage="Collection must have one item">
|
|
9
|
+
* <custom-input></custom-input>
|
|
10
|
+
* </titanium-outlined-input-validator>
|
|
11
|
+
*/
|
|
12
|
+
export declare class TitaniumOutlinedInputValidator extends MdOutlinedField {
|
|
13
|
+
populated: boolean;
|
|
14
|
+
accessor evaluator: () => boolean;
|
|
15
|
+
firstUpdated(): void;
|
|
16
|
+
reset(): void;
|
|
17
|
+
reportValidity(): boolean;
|
|
18
|
+
checkValidity(): boolean;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=outlined-input-validator.d.ts.map
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { customElement, property } from 'lit/decorators.js';
|
|
3
|
+
import { MdOutlinedField } from '@material/web/field/outlined-field';
|
|
4
|
+
/**
|
|
5
|
+
* Input validator to make components use validation consistent with material 3 outlined styling
|
|
6
|
+
*
|
|
7
|
+
* @element titanium-outlined-input-validator
|
|
8
|
+
* @slot default - The slotted element should fire the NotifyUserInputEvent when it is ready to be validated
|
|
9
|
+
* @example
|
|
10
|
+
* <titanium-outlined-input-validator .evaluator=${() => (this.collection?.length ?? 0) > 0} validationMessage="Collection must have one item">
|
|
11
|
+
* <custom-input></custom-input>
|
|
12
|
+
* </titanium-outlined-input-validator>
|
|
13
|
+
*/
|
|
14
|
+
let TitaniumOutlinedInputValidator = class TitaniumOutlinedInputValidator extends MdOutlinedField {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
this.populated = true;
|
|
18
|
+
}
|
|
19
|
+
#evaluator_accessor_storage;
|
|
20
|
+
get evaluator() { return this.#evaluator_accessor_storage; }
|
|
21
|
+
set evaluator(value) { this.#evaluator_accessor_storage = value; }
|
|
22
|
+
firstUpdated() {
|
|
23
|
+
this.addEventListener('focusin', () => (this.focused = true));
|
|
24
|
+
this.addEventListener('focusout', () => (this.focused = false));
|
|
25
|
+
}
|
|
26
|
+
reset() {
|
|
27
|
+
this.error = false;
|
|
28
|
+
}
|
|
29
|
+
reportValidity() {
|
|
30
|
+
const valid = this.checkValidity();
|
|
31
|
+
this.error = !valid;
|
|
32
|
+
return valid;
|
|
33
|
+
}
|
|
34
|
+
checkValidity() {
|
|
35
|
+
return !!this.evaluator();
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
__decorate([
|
|
39
|
+
property({ type: Boolean })
|
|
40
|
+
], TitaniumOutlinedInputValidator.prototype, "populated", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
property({ type: Object })
|
|
43
|
+
], TitaniumOutlinedInputValidator.prototype, "evaluator", null);
|
|
44
|
+
TitaniumOutlinedInputValidator = __decorate([
|
|
45
|
+
customElement('titanium-outlined-input-validator')
|
|
46
|
+
], TitaniumOutlinedInputValidator);
|
|
47
|
+
export { TitaniumOutlinedInputValidator };
|
|
48
|
+
//# sourceMappingURL=outlined-input-validator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"outlined-input-validator.js","sourceRoot":"","sources":["outlined-input-validator.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAErE;;;;;;;;;GASG;AAEI,IAAM,8BAA8B,GAApC,MAAM,8BAA+B,SAAQ,eAAe;IAA5D;;QACwB,cAAS,GAAY,IAAI,CAAC;IAsBzD,CAAC;IArBsC,4BAAyB;IAAzB,IAAA,SAAS,+CAAgB;IAAzB,IAAA,SAAS,qDAAgB;IAE9D,YAAY;QACV,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC,CAAC;QAC9D,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,CAAC,CAAC;IAClE,CAAC;IAED,KAAK;QACH,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAED,cAAc;QACZ,MAAM,KAAK,GAAG,IAAI,CAAC,aAAa,EAAE,CAAC;QACnC,IAAI,CAAC,KAAK,GAAG,CAAC,KAAK,CAAC;QAEpB,OAAO,KAAK,CAAC;IACf,CAAC;IAED,aAAa;QACX,OAAO,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC;IAC5B,CAAC;CACF,CAAA;AAtB8B;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;iEAA2B;AAClB;IAApC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;+DAAmC;AAFnD,8BAA8B;IAD1C,aAAa,CAAC,mCAAmC,CAAC;GACtC,8BAA8B,CAuB1C"}
|
|
@@ -11,7 +11,7 @@ import { Menu } from '@material/web/menu/internal/menu';
|
|
|
11
11
|
import { Identifier } from '../types/identifier-interface';
|
|
12
12
|
declare const TitaniumSingleSelectBase_base: import("../../leavitt/theme/theme-preference").Constructor<import("../../leavitt/theme/theme-preference").ThemePreferenceInterface> & {
|
|
13
13
|
new (...args: any[]): {
|
|
14
|
-
#promiseCount: number;
|
|
14
|
+
"__#private@#promiseCount": number;
|
|
15
15
|
isLoading: boolean;
|
|
16
16
|
loadWhile(promise: Promise<unknown>): Promise<void>;
|
|
17
17
|
accessKey: string;
|
|
@@ -315,7 +315,7 @@ let TitaniumSingleSelectBase = class TitaniumSingleSelectBase extends ThemePrefe
|
|
|
315
315
|
--md-filled-text-field-focus-active-indicator-height: 0;
|
|
316
316
|
--md-filled-text-field-disabled-active-indicator-height: 0;
|
|
317
317
|
}
|
|
318
|
-
|
|
318
|
+
|
|
319
319
|
:host([shaped]) {
|
|
320
320
|
--md-outlined-text-field-container-shape: 28px;
|
|
321
321
|
--md-filled-text-field-container-shape: 28px;
|
|
@@ -24,7 +24,7 @@ export declare type SelectionData = {
|
|
|
24
24
|
};
|
|
25
25
|
declare const CropAndSaveImageDialog_base: {
|
|
26
26
|
new (...args: any[]): {
|
|
27
|
-
#promiseCount: number;
|
|
27
|
+
"__#private@#promiseCount": number;
|
|
28
28
|
isLoading: boolean;
|
|
29
29
|
loadWhile(promise: Promise<unknown>): Promise<void>;
|
|
30
30
|
accessKey: string;
|
|
@@ -107,11 +107,11 @@ export declare class TitaniumSmartAttachmentInput extends LitElement {
|
|
|
107
107
|
/**
|
|
108
108
|
* Returns true if the input passes validity checks.
|
|
109
109
|
*/
|
|
110
|
-
checkValidity(): boolean;
|
|
110
|
+
checkValidity(): boolean | undefined;
|
|
111
111
|
/**
|
|
112
112
|
* Runs checkValidity() method, and if it returns false, then it reports to the user that the input is invalid.
|
|
113
113
|
*/
|
|
114
|
-
reportValidity(): boolean;
|
|
114
|
+
reportValidity(): boolean | undefined;
|
|
115
115
|
/**
|
|
116
116
|
* Returns true if the images have been added, removed or edited.
|
|
117
117
|
*/
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
export const niceBadgeStyles = css `
|
|
3
|
+
nice-badge {
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
|
|
6
|
+
background-color: var(--md-sys-color-error);
|
|
7
|
+
color: var(--md-sys-color-on-error);
|
|
8
|
+
|
|
9
|
+
display: grid;
|
|
10
|
+
place-content: center;
|
|
11
|
+
border-radius: 16px;
|
|
12
|
+
font-weight: 400;
|
|
13
|
+
font-size: 14px;
|
|
14
|
+
line-height: 14px;
|
|
15
|
+
|
|
16
|
+
font-family: Metropolis;
|
|
17
|
+
|
|
18
|
+
padding: 1px 4px;
|
|
19
|
+
border: 1px solid transparent;
|
|
20
|
+
min-width: 18px;
|
|
21
|
+
|
|
22
|
+
height: initial;
|
|
23
|
+
width: initial;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
nice-badge[primary] {
|
|
27
|
+
background-color: var(--md-sys-color-primary);
|
|
28
|
+
color: var(--md-sys-color-on-primary);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
nice-badge[secondary] {
|
|
32
|
+
background-color: var(--md-sys-color-secondary);
|
|
33
|
+
color: var(--md-sys-color-on-secondary);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
nice-badge[compact] {
|
|
37
|
+
padding: 1px 2px;
|
|
38
|
+
|
|
39
|
+
font-size: 12px;
|
|
40
|
+
line-height: 12px;
|
|
41
|
+
}
|
|
42
|
+
`;
|
|
43
|
+
//# sourceMappingURL=nice-badge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nice-badge.js","sourceRoot":"","sources":["nice-badge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwCjC,CAAC"}
|