@lion/ui 0.3.1 → 0.3.3
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/components/input-file/src/LionInputFile.js +20 -11
- package/components/input-file/src/LionSelectedFileList.js +0 -3
- package/components/input-file/test/lion-input-file.test.js +2 -3
- package/components/input-file/types/{input-file.d.ts → input-file.ts} +4 -4
- package/custom-elements.json +246 -162
- package/dist-types/components/input-file/src/LionInputFile.d.ts +5 -0
- package/dist-types/components/input-file/src/LionInputFile.d.ts.map +1 -1
- package/dist-types/components/input-file/src/LionSelectedFileList.d.ts.map +1 -1
- package/dist-types/components/input-file/types/input-file.d.ts +28 -0
- package/dist-types/components/input-file/types/input-file.d.ts.map +1 -0
- package/dist-types/exports/types/form-core.d.ts +1 -2
- package/dist-types/exports/types/form-core.d.ts.map +1 -1
- package/dist-types/exports/types/input-file.d.ts +2 -0
- package/dist-types/exports/types/input-file.d.ts.map +1 -0
- package/dist-types/tsconfig.tsbuildinfo +1 -1
- package/docs/components/checkbox-group/overview.md +2 -2
- package/docs/components/collapsible/overview.md +1 -1
- package/docs/components/combobox/overview.md +1 -1
- package/docs/components/combobox/use-cases.md +1 -1
- package/docs/components/dialog/overview.md +1 -1
- package/docs/components/fieldset/overview.md +5 -5
- package/docs/components/form/overview.md +3 -3
- package/docs/components/icon/use-cases.md +1 -1
- package/docs/components/input/overview.md +1 -1
- package/docs/components/input-amount/overview.md +3 -3
- package/docs/components/input-date/overview.md +3 -3
- package/docs/components/input-datepicker/overview.md +5 -5
- package/docs/components/input-email/overview.md +2 -2
- package/docs/components/input-file/overview.md +1 -1
- package/docs/components/input-iban/overview.md +2 -2
- package/docs/components/input-range/overview.md +2 -2
- package/docs/components/input-stepper/overview.md +1 -1
- package/docs/components/input-tel/overview.md +1 -1
- package/docs/components/input-tel/use-cases.md +6 -6
- package/docs/components/input-tel-dropdown/overview.md +1 -1
- package/docs/components/radio-group/overview.md +3 -3
- package/docs/components/select-rich/use-cases.md +1 -1
- package/docs/components/tabs/examples.md +1 -1
- package/docs/fundamentals/index.md +4 -4
- package/docs/fundamentals/node-tools/providence-analytics/LocalConfiguration.md +1 -1
- package/docs/fundamentals/node-tools/providence-analytics/QueryResult.md +1 -1
- package/docs/fundamentals/node-tools/providence-analytics/analyzer.md +1 -1
- package/docs/fundamentals/node-tools/providence-analytics/dashboard.md +1 -1
- package/docs/fundamentals/node-tools/providence-analytics/overview.md +3 -3
- package/docs/fundamentals/node-tools/publish-docs/overview.md +3 -3
- package/docs/fundamentals/node-tools/rocket-preset-extend-lion-docs/overview.md +2 -2
- package/docs/fundamentals/rationales/accessibility.md +1 -1
- package/docs/fundamentals/systems/core/SlotMixin.md +1 -1
- package/docs/fundamentals/systems/core/overview.md +1 -1
- package/docs/fundamentals/systems/form/formatting-and-parsing.md +4 -4
- package/docs/fundamentals/systems/form/model-value.md +1 -1
- package/docs/fundamentals/systems/form/overview.md +28 -28
- package/docs/fundamentals/systems/form/validate.md +1 -1
- package/docs/fundamentals/systems/localize/overview.md +4 -4
- package/docs/fundamentals/systems/overlays/configuration.md +2 -2
- package/docs/fundamentals/systems/overlays/overview.md +5 -5
- package/docs/fundamentals/systems/overlays/use-cases.md +2 -2
- package/docs/fundamentals/tools/helpers/overview.md +1 -1
- package/docs/fundamentals/tools/singleton-manager/overview.md +4 -4
- package/docs/guides/how-to/create-a-custom-field.md +5 -5
- package/docs/guides/how-to/create-a-form.md +4 -4
- package/docs/guides/how-to/extend-a-native-input.md +2 -2
- package/docs/guides/index.md +8 -8
- package/docs/guides/principles/index.md +5 -5
- package/docs/guides/principles/styling.md +1 -1
- package/exports/types/form-core.ts +1 -2
- package/exports/types/input-file.ts +1 -0
- package/package.json +1 -1
|
@@ -176,26 +176,28 @@ export class LionInputFile extends ScopedElementsMixin(LocalizeMixin(LionField))
|
|
|
176
176
|
this.__duplicateFileNamesValidator = new DuplicateFileNames({ show: false });
|
|
177
177
|
}
|
|
178
178
|
|
|
179
|
+
/**
|
|
180
|
+
* @protected
|
|
181
|
+
* @type {LionSelectedFileList}
|
|
182
|
+
*/
|
|
183
|
+
get _fileListNode() {
|
|
184
|
+
return /** @type {LionSelectedFileList} */ (
|
|
185
|
+
Array.from(this.children).find(child => child.slot === 'selected-file-list')?.children[0]
|
|
186
|
+
);
|
|
187
|
+
}
|
|
188
|
+
|
|
179
189
|
connectedCallback() {
|
|
180
190
|
super.connectedCallback();
|
|
181
191
|
this.__initialUploadResponse = this.uploadResponse;
|
|
182
192
|
|
|
183
193
|
this._inputNode.addEventListener('change', this._onChange);
|
|
184
194
|
this._inputNode.addEventListener('click', this._onClick);
|
|
185
|
-
this.addEventListener(
|
|
186
|
-
'file-remove-requested',
|
|
187
|
-
/** @type {EventListener} */ (this._onRemoveFile),
|
|
188
|
-
);
|
|
189
195
|
}
|
|
190
196
|
|
|
191
197
|
disconnectedCallback() {
|
|
192
198
|
super.disconnectedCallback();
|
|
193
199
|
this._inputNode.removeEventListener('change', this._onChange);
|
|
194
200
|
this._inputNode.removeEventListener('click', this._onClick);
|
|
195
|
-
this.removeEventListener(
|
|
196
|
-
'file-remove-requested',
|
|
197
|
-
/** @type {EventListener} */ (this._onRemoveFile),
|
|
198
|
-
);
|
|
199
201
|
}
|
|
200
202
|
|
|
201
203
|
/**
|
|
@@ -347,6 +349,11 @@ export class LionInputFile extends ScopedElementsMixin(LocalizeMixin(LionField))
|
|
|
347
349
|
this.__setupDragDropEventListeners();
|
|
348
350
|
this.setAttribute('drop-zone', '');
|
|
349
351
|
}
|
|
352
|
+
|
|
353
|
+
/** @type {LionSelectedFileList} */ (this._fileListNode).addEventListener(
|
|
354
|
+
'file-remove-requested',
|
|
355
|
+
/** @type {EventListener} */ (this._onRemoveFile),
|
|
356
|
+
);
|
|
350
357
|
}
|
|
351
358
|
|
|
352
359
|
/**
|
|
@@ -420,13 +427,15 @@ export class LionInputFile extends ScopedElementsMixin(LocalizeMixin(LionField))
|
|
|
420
427
|
// eslint-disable-next-line no-param-reassign
|
|
421
428
|
file.validationFeedback = [
|
|
422
429
|
{
|
|
423
|
-
type:
|
|
424
|
-
|
|
430
|
+
type:
|
|
431
|
+
typeof response.errorMessage === 'string' && response.errorMessage?.length > 0
|
|
432
|
+
? 'error'
|
|
433
|
+
: 'success',
|
|
434
|
+
message: response.errorMessage ?? '',
|
|
425
435
|
},
|
|
426
436
|
];
|
|
427
437
|
}
|
|
428
438
|
});
|
|
429
|
-
// this._selectedFilesMetaData = [...this._selectedFilesMetaData];
|
|
430
439
|
}
|
|
431
440
|
});
|
|
432
441
|
}
|
|
@@ -74,10 +74,7 @@ export class LionSelectedFileList extends LocalizeMixin(ScopedElementsMixin(LitE
|
|
|
74
74
|
*/
|
|
75
75
|
_removeFile(removedFile) {
|
|
76
76
|
this.dispatchEvent(
|
|
77
|
-
// TODO: do we need bubble and composed for an internal event that only LionInputFile should know about?
|
|
78
77
|
new CustomEvent('file-remove-requested', {
|
|
79
|
-
// composed: true,
|
|
80
|
-
// bubbles: true,
|
|
81
78
|
detail: {
|
|
82
79
|
removedFile,
|
|
83
80
|
status: removedFile.status,
|
|
@@ -852,10 +852,9 @@ describe('lion-input-file', () => {
|
|
|
852
852
|
// @ts-expect-error [allow-protected-in-test]
|
|
853
853
|
expect(el._selectedFilesMetaData[1].systemFile.name).to.equal('file2.txt');
|
|
854
854
|
|
|
855
|
-
|
|
855
|
+
// @ts-expect-error [allow-protected-in-test]
|
|
856
|
+
el._fileListNode.dispatchEvent(
|
|
856
857
|
new CustomEvent('file-remove-requested', {
|
|
857
|
-
composed: true,
|
|
858
|
-
bubbles: true,
|
|
859
858
|
detail: {
|
|
860
859
|
removedFile,
|
|
861
860
|
status: removedFile.status,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FeedbackMessage } from "../../form-core/types/validate/ValidateMixinTypes.js";
|
|
2
2
|
|
|
3
|
-
type FileBasics = {
|
|
3
|
+
export type FileBasics = {
|
|
4
4
|
name: string;
|
|
5
5
|
/** size in bytes */
|
|
6
6
|
size: number;
|
|
@@ -10,7 +10,7 @@ type FileBasics = {
|
|
|
10
10
|
|
|
11
11
|
export type InputFile = {
|
|
12
12
|
downloadUrl?: string;
|
|
13
|
-
errorMessage?: FeedbackMessage
|
|
13
|
+
errorMessage?: FeedbackMessage["message"];
|
|
14
14
|
failedProp?: Array<string|number>;
|
|
15
15
|
response?: UploadResponse;
|
|
16
16
|
systemFile: Partial<SystemFile>;
|
|
@@ -19,7 +19,7 @@ export type InputFile = {
|
|
|
19
19
|
|
|
20
20
|
export type SystemFile = {
|
|
21
21
|
downloadUrl?: string;
|
|
22
|
-
errorMessage?: FeedbackMessage
|
|
22
|
+
errorMessage?: FeedbackMessage["message"];
|
|
23
23
|
failedProp?: Array<string|number>;
|
|
24
24
|
response?: UploadResponse;
|
|
25
25
|
} & FileBasics & Partial<File>;
|
|
@@ -27,6 +27,6 @@ export type SystemFile = {
|
|
|
27
27
|
|
|
28
28
|
export type UploadResponse = {
|
|
29
29
|
downloadUrl?: string;
|
|
30
|
-
errorMessage?: FeedbackMessage
|
|
30
|
+
errorMessage?: FeedbackMessage["message"];
|
|
31
31
|
id?: string;
|
|
32
32
|
} & Partial<FileBasics>;
|
package/custom-elements.json
CHANGED
|
@@ -5025,6 +5025,37 @@
|
|
|
5025
5025
|
"name": "ValidationType",
|
|
5026
5026
|
"module": "../../components/form-core/types/validate/ValidateMixinTypes.js"
|
|
5027
5027
|
}
|
|
5028
|
+
},
|
|
5029
|
+
{
|
|
5030
|
+
"kind": "js",
|
|
5031
|
+
"name": "FeedbackMessage",
|
|
5032
|
+
"declaration": {
|
|
5033
|
+
"name": "FeedbackMessage",
|
|
5034
|
+
"module": "../../components/form-core/types/validate/ValidateMixinTypes.js"
|
|
5035
|
+
}
|
|
5036
|
+
}
|
|
5037
|
+
]
|
|
5038
|
+
},
|
|
5039
|
+
{
|
|
5040
|
+
"kind": "javascript-module",
|
|
5041
|
+
"path": "exports/types/input-file.ts",
|
|
5042
|
+
"declarations": [],
|
|
5043
|
+
"exports": [
|
|
5044
|
+
{
|
|
5045
|
+
"kind": "js",
|
|
5046
|
+
"name": "InputFile",
|
|
5047
|
+
"declaration": {
|
|
5048
|
+
"name": "InputFile",
|
|
5049
|
+
"module": "../../components/input-file/types/input-file.js"
|
|
5050
|
+
}
|
|
5051
|
+
},
|
|
5052
|
+
{
|
|
5053
|
+
"kind": "js",
|
|
5054
|
+
"name": "SystemFile",
|
|
5055
|
+
"declaration": {
|
|
5056
|
+
"name": "SystemFile",
|
|
5057
|
+
"module": "../../components/input-file/types/input-file.js"
|
|
5058
|
+
}
|
|
5028
5059
|
}
|
|
5029
5060
|
]
|
|
5030
5061
|
},
|
|
@@ -21835,6 +21866,14 @@
|
|
|
21835
21866
|
"name": "_isDragAndDropSupported",
|
|
21836
21867
|
"privacy": "protected"
|
|
21837
21868
|
},
|
|
21869
|
+
{
|
|
21870
|
+
"kind": "field",
|
|
21871
|
+
"name": "_fileListNode",
|
|
21872
|
+
"privacy": "protected",
|
|
21873
|
+
"type": {
|
|
21874
|
+
"text": "LionSelectedFileList"
|
|
21875
|
+
}
|
|
21876
|
+
},
|
|
21838
21877
|
{
|
|
21839
21878
|
"kind": "method",
|
|
21840
21879
|
"name": "onLocaleUpdated"
|
|
@@ -23574,7 +23613,7 @@
|
|
|
23574
23613
|
},
|
|
23575
23614
|
{
|
|
23576
23615
|
"kind": "javascript-module",
|
|
23577
|
-
"path": "components/input-file/types/input-file.
|
|
23616
|
+
"path": "components/input-file/types/input-file.ts",
|
|
23578
23617
|
"declarations": [],
|
|
23579
23618
|
"exports": []
|
|
23580
23619
|
},
|
|
@@ -37505,6 +37544,37 @@
|
|
|
37505
37544
|
"name": "ValidationType",
|
|
37506
37545
|
"module": "../../components/form-core/types/validate/ValidateMixinTypes.js"
|
|
37507
37546
|
}
|
|
37547
|
+
},
|
|
37548
|
+
{
|
|
37549
|
+
"kind": "js",
|
|
37550
|
+
"name": "FeedbackMessage",
|
|
37551
|
+
"declaration": {
|
|
37552
|
+
"name": "FeedbackMessage",
|
|
37553
|
+
"module": "../../components/form-core/types/validate/ValidateMixinTypes.js"
|
|
37554
|
+
}
|
|
37555
|
+
}
|
|
37556
|
+
]
|
|
37557
|
+
},
|
|
37558
|
+
{
|
|
37559
|
+
"kind": "javascript-module",
|
|
37560
|
+
"path": "dist-types/exports/types/input-file.d.ts",
|
|
37561
|
+
"declarations": [],
|
|
37562
|
+
"exports": [
|
|
37563
|
+
{
|
|
37564
|
+
"kind": "js",
|
|
37565
|
+
"name": "InputFile",
|
|
37566
|
+
"declaration": {
|
|
37567
|
+
"name": "InputFile",
|
|
37568
|
+
"module": "../../components/input-file/types/input-file.js"
|
|
37569
|
+
}
|
|
37570
|
+
},
|
|
37571
|
+
{
|
|
37572
|
+
"kind": "js",
|
|
37573
|
+
"name": "SystemFile",
|
|
37574
|
+
"declaration": {
|
|
37575
|
+
"name": "SystemFile",
|
|
37576
|
+
"module": "../../components/input-file/types/input-file.js"
|
|
37577
|
+
}
|
|
37508
37578
|
}
|
|
37509
37579
|
]
|
|
37510
37580
|
},
|
|
@@ -61526,6 +61596,14 @@
|
|
|
61526
61596
|
"name": "__duplicateFileNamesValidator",
|
|
61527
61597
|
"privacy": "private"
|
|
61528
61598
|
},
|
|
61599
|
+
{
|
|
61600
|
+
"kind": "field",
|
|
61601
|
+
"name": "_fileListNode",
|
|
61602
|
+
"type": {
|
|
61603
|
+
"text": "LionSelectedFileList"
|
|
61604
|
+
},
|
|
61605
|
+
"privacy": "protected"
|
|
61606
|
+
},
|
|
61529
61607
|
{
|
|
61530
61608
|
"kind": "field",
|
|
61531
61609
|
"name": "_acceptCriteria",
|
|
@@ -63325,6 +63403,12 @@
|
|
|
63325
63403
|
}
|
|
63326
63404
|
]
|
|
63327
63405
|
},
|
|
63406
|
+
{
|
|
63407
|
+
"kind": "javascript-module",
|
|
63408
|
+
"path": "dist-types/components/input-file/types/input-file.d.ts",
|
|
63409
|
+
"declarations": [],
|
|
63410
|
+
"exports": []
|
|
63411
|
+
},
|
|
63328
63412
|
{
|
|
63329
63413
|
"kind": "javascript-module",
|
|
63330
63414
|
"path": "dist-types/components/input-iban/src/LionInputIban.d.ts",
|
|
@@ -69141,6 +69225,167 @@
|
|
|
69141
69225
|
}
|
|
69142
69226
|
]
|
|
69143
69227
|
},
|
|
69228
|
+
{
|
|
69229
|
+
"kind": "javascript-module",
|
|
69230
|
+
"path": "dist-types/components/localize/types/LocalizeMixinTypes.d.ts",
|
|
69231
|
+
"declarations": [
|
|
69232
|
+
{
|
|
69233
|
+
"kind": "class",
|
|
69234
|
+
"description": "",
|
|
69235
|
+
"name": "LocalizeMixinHost",
|
|
69236
|
+
"members": [
|
|
69237
|
+
{
|
|
69238
|
+
"kind": "field",
|
|
69239
|
+
"name": "localizeNamespaces",
|
|
69240
|
+
"type": {
|
|
69241
|
+
"text": "StringToFunctionMap[]"
|
|
69242
|
+
},
|
|
69243
|
+
"static": true
|
|
69244
|
+
},
|
|
69245
|
+
{
|
|
69246
|
+
"kind": "field",
|
|
69247
|
+
"name": "waitForLocalizeNamespaces",
|
|
69248
|
+
"type": {
|
|
69249
|
+
"text": "boolean"
|
|
69250
|
+
},
|
|
69251
|
+
"static": true
|
|
69252
|
+
},
|
|
69253
|
+
{
|
|
69254
|
+
"kind": "field",
|
|
69255
|
+
"name": "localizeNamespacesLoaded",
|
|
69256
|
+
"type": {
|
|
69257
|
+
"text": "Promise<Object> | undefined"
|
|
69258
|
+
}
|
|
69259
|
+
},
|
|
69260
|
+
{
|
|
69261
|
+
"kind": "method",
|
|
69262
|
+
"name": "onLocaleReady",
|
|
69263
|
+
"return": {
|
|
69264
|
+
"type": {
|
|
69265
|
+
"text": "void"
|
|
69266
|
+
}
|
|
69267
|
+
}
|
|
69268
|
+
},
|
|
69269
|
+
{
|
|
69270
|
+
"kind": "method",
|
|
69271
|
+
"name": "onLocaleChanged",
|
|
69272
|
+
"return": {
|
|
69273
|
+
"type": {
|
|
69274
|
+
"text": "void"
|
|
69275
|
+
}
|
|
69276
|
+
},
|
|
69277
|
+
"parameters": [
|
|
69278
|
+
{
|
|
69279
|
+
"name": "newLocale",
|
|
69280
|
+
"type": {
|
|
69281
|
+
"text": "string"
|
|
69282
|
+
}
|
|
69283
|
+
},
|
|
69284
|
+
{
|
|
69285
|
+
"name": "oldLocale",
|
|
69286
|
+
"type": {
|
|
69287
|
+
"text": "string"
|
|
69288
|
+
}
|
|
69289
|
+
}
|
|
69290
|
+
]
|
|
69291
|
+
},
|
|
69292
|
+
{
|
|
69293
|
+
"kind": "method",
|
|
69294
|
+
"name": "onLocaleUpdated",
|
|
69295
|
+
"return": {
|
|
69296
|
+
"type": {
|
|
69297
|
+
"text": "void"
|
|
69298
|
+
}
|
|
69299
|
+
}
|
|
69300
|
+
},
|
|
69301
|
+
{
|
|
69302
|
+
"kind": "method",
|
|
69303
|
+
"name": "msgLit",
|
|
69304
|
+
"return": {
|
|
69305
|
+
"type": {
|
|
69306
|
+
"text": "string | DirectiveResult"
|
|
69307
|
+
}
|
|
69308
|
+
},
|
|
69309
|
+
"parameters": [
|
|
69310
|
+
{
|
|
69311
|
+
"name": "keys",
|
|
69312
|
+
"type": {
|
|
69313
|
+
"text": "string | string[]"
|
|
69314
|
+
}
|
|
69315
|
+
},
|
|
69316
|
+
{
|
|
69317
|
+
"name": "variables",
|
|
69318
|
+
"optional": true,
|
|
69319
|
+
"type": {
|
|
69320
|
+
"text": "msgVariables"
|
|
69321
|
+
}
|
|
69322
|
+
},
|
|
69323
|
+
{
|
|
69324
|
+
"name": "options",
|
|
69325
|
+
"optional": true,
|
|
69326
|
+
"type": {
|
|
69327
|
+
"text": "msgOptions"
|
|
69328
|
+
}
|
|
69329
|
+
}
|
|
69330
|
+
]
|
|
69331
|
+
},
|
|
69332
|
+
{
|
|
69333
|
+
"kind": "field",
|
|
69334
|
+
"name": "_localizeManager",
|
|
69335
|
+
"type": {
|
|
69336
|
+
"text": "LocalizeManager"
|
|
69337
|
+
},
|
|
69338
|
+
"privacy": "protected"
|
|
69339
|
+
},
|
|
69340
|
+
{
|
|
69341
|
+
"kind": "field",
|
|
69342
|
+
"name": "__boundLocalizeOnLocaleChanged",
|
|
69343
|
+
"privacy": "private"
|
|
69344
|
+
},
|
|
69345
|
+
{
|
|
69346
|
+
"kind": "field",
|
|
69347
|
+
"name": "__boundLocalizeOnLocaleChanging",
|
|
69348
|
+
"privacy": "private"
|
|
69349
|
+
},
|
|
69350
|
+
{
|
|
69351
|
+
"kind": "field",
|
|
69352
|
+
"name": "__getUniqueNamespaces",
|
|
69353
|
+
"privacy": "private"
|
|
69354
|
+
},
|
|
69355
|
+
{
|
|
69356
|
+
"kind": "field",
|
|
69357
|
+
"name": "__localizeOnLocaleChanged",
|
|
69358
|
+
"privacy": "private"
|
|
69359
|
+
},
|
|
69360
|
+
{
|
|
69361
|
+
"kind": "field",
|
|
69362
|
+
"name": "__localizeMessageSync",
|
|
69363
|
+
"privacy": "private"
|
|
69364
|
+
},
|
|
69365
|
+
{
|
|
69366
|
+
"kind": "field",
|
|
69367
|
+
"name": "__localizeStartLoadingNamespaces",
|
|
69368
|
+
"privacy": "private"
|
|
69369
|
+
},
|
|
69370
|
+
{
|
|
69371
|
+
"kind": "field",
|
|
69372
|
+
"name": "__localizeOnLocaleChanging",
|
|
69373
|
+
"privacy": "private"
|
|
69374
|
+
}
|
|
69375
|
+
]
|
|
69376
|
+
}
|
|
69377
|
+
],
|
|
69378
|
+
"exports": [
|
|
69379
|
+
{
|
|
69380
|
+
"kind": "js",
|
|
69381
|
+
"name": "LocalizeMixinHost",
|
|
69382
|
+
"declaration": {
|
|
69383
|
+
"name": "LocalizeMixinHost",
|
|
69384
|
+
"module": "dist-types/components/localize/types/LocalizeMixinTypes.d.ts"
|
|
69385
|
+
}
|
|
69386
|
+
}
|
|
69387
|
+
]
|
|
69388
|
+
},
|
|
69144
69389
|
{
|
|
69145
69390
|
"kind": "javascript-module",
|
|
69146
69391
|
"path": "dist-types/components/overlays/src/ArrowMixin.d.ts",
|
|
@@ -70639,167 +70884,6 @@
|
|
|
70639
70884
|
}
|
|
70640
70885
|
]
|
|
70641
70886
|
},
|
|
70642
|
-
{
|
|
70643
|
-
"kind": "javascript-module",
|
|
70644
|
-
"path": "dist-types/components/localize/types/LocalizeMixinTypes.d.ts",
|
|
70645
|
-
"declarations": [
|
|
70646
|
-
{
|
|
70647
|
-
"kind": "class",
|
|
70648
|
-
"description": "",
|
|
70649
|
-
"name": "LocalizeMixinHost",
|
|
70650
|
-
"members": [
|
|
70651
|
-
{
|
|
70652
|
-
"kind": "field",
|
|
70653
|
-
"name": "localizeNamespaces",
|
|
70654
|
-
"type": {
|
|
70655
|
-
"text": "StringToFunctionMap[]"
|
|
70656
|
-
},
|
|
70657
|
-
"static": true
|
|
70658
|
-
},
|
|
70659
|
-
{
|
|
70660
|
-
"kind": "field",
|
|
70661
|
-
"name": "waitForLocalizeNamespaces",
|
|
70662
|
-
"type": {
|
|
70663
|
-
"text": "boolean"
|
|
70664
|
-
},
|
|
70665
|
-
"static": true
|
|
70666
|
-
},
|
|
70667
|
-
{
|
|
70668
|
-
"kind": "field",
|
|
70669
|
-
"name": "localizeNamespacesLoaded",
|
|
70670
|
-
"type": {
|
|
70671
|
-
"text": "Promise<Object> | undefined"
|
|
70672
|
-
}
|
|
70673
|
-
},
|
|
70674
|
-
{
|
|
70675
|
-
"kind": "method",
|
|
70676
|
-
"name": "onLocaleReady",
|
|
70677
|
-
"return": {
|
|
70678
|
-
"type": {
|
|
70679
|
-
"text": "void"
|
|
70680
|
-
}
|
|
70681
|
-
}
|
|
70682
|
-
},
|
|
70683
|
-
{
|
|
70684
|
-
"kind": "method",
|
|
70685
|
-
"name": "onLocaleChanged",
|
|
70686
|
-
"return": {
|
|
70687
|
-
"type": {
|
|
70688
|
-
"text": "void"
|
|
70689
|
-
}
|
|
70690
|
-
},
|
|
70691
|
-
"parameters": [
|
|
70692
|
-
{
|
|
70693
|
-
"name": "newLocale",
|
|
70694
|
-
"type": {
|
|
70695
|
-
"text": "string"
|
|
70696
|
-
}
|
|
70697
|
-
},
|
|
70698
|
-
{
|
|
70699
|
-
"name": "oldLocale",
|
|
70700
|
-
"type": {
|
|
70701
|
-
"text": "string"
|
|
70702
|
-
}
|
|
70703
|
-
}
|
|
70704
|
-
]
|
|
70705
|
-
},
|
|
70706
|
-
{
|
|
70707
|
-
"kind": "method",
|
|
70708
|
-
"name": "onLocaleUpdated",
|
|
70709
|
-
"return": {
|
|
70710
|
-
"type": {
|
|
70711
|
-
"text": "void"
|
|
70712
|
-
}
|
|
70713
|
-
}
|
|
70714
|
-
},
|
|
70715
|
-
{
|
|
70716
|
-
"kind": "method",
|
|
70717
|
-
"name": "msgLit",
|
|
70718
|
-
"return": {
|
|
70719
|
-
"type": {
|
|
70720
|
-
"text": "string | DirectiveResult"
|
|
70721
|
-
}
|
|
70722
|
-
},
|
|
70723
|
-
"parameters": [
|
|
70724
|
-
{
|
|
70725
|
-
"name": "keys",
|
|
70726
|
-
"type": {
|
|
70727
|
-
"text": "string | string[]"
|
|
70728
|
-
}
|
|
70729
|
-
},
|
|
70730
|
-
{
|
|
70731
|
-
"name": "variables",
|
|
70732
|
-
"optional": true,
|
|
70733
|
-
"type": {
|
|
70734
|
-
"text": "msgVariables"
|
|
70735
|
-
}
|
|
70736
|
-
},
|
|
70737
|
-
{
|
|
70738
|
-
"name": "options",
|
|
70739
|
-
"optional": true,
|
|
70740
|
-
"type": {
|
|
70741
|
-
"text": "msgOptions"
|
|
70742
|
-
}
|
|
70743
|
-
}
|
|
70744
|
-
]
|
|
70745
|
-
},
|
|
70746
|
-
{
|
|
70747
|
-
"kind": "field",
|
|
70748
|
-
"name": "_localizeManager",
|
|
70749
|
-
"type": {
|
|
70750
|
-
"text": "LocalizeManager"
|
|
70751
|
-
},
|
|
70752
|
-
"privacy": "protected"
|
|
70753
|
-
},
|
|
70754
|
-
{
|
|
70755
|
-
"kind": "field",
|
|
70756
|
-
"name": "__boundLocalizeOnLocaleChanged",
|
|
70757
|
-
"privacy": "private"
|
|
70758
|
-
},
|
|
70759
|
-
{
|
|
70760
|
-
"kind": "field",
|
|
70761
|
-
"name": "__boundLocalizeOnLocaleChanging",
|
|
70762
|
-
"privacy": "private"
|
|
70763
|
-
},
|
|
70764
|
-
{
|
|
70765
|
-
"kind": "field",
|
|
70766
|
-
"name": "__getUniqueNamespaces",
|
|
70767
|
-
"privacy": "private"
|
|
70768
|
-
},
|
|
70769
|
-
{
|
|
70770
|
-
"kind": "field",
|
|
70771
|
-
"name": "__localizeOnLocaleChanged",
|
|
70772
|
-
"privacy": "private"
|
|
70773
|
-
},
|
|
70774
|
-
{
|
|
70775
|
-
"kind": "field",
|
|
70776
|
-
"name": "__localizeMessageSync",
|
|
70777
|
-
"privacy": "private"
|
|
70778
|
-
},
|
|
70779
|
-
{
|
|
70780
|
-
"kind": "field",
|
|
70781
|
-
"name": "__localizeStartLoadingNamespaces",
|
|
70782
|
-
"privacy": "private"
|
|
70783
|
-
},
|
|
70784
|
-
{
|
|
70785
|
-
"kind": "field",
|
|
70786
|
-
"name": "__localizeOnLocaleChanging",
|
|
70787
|
-
"privacy": "private"
|
|
70788
|
-
}
|
|
70789
|
-
]
|
|
70790
|
-
}
|
|
70791
|
-
],
|
|
70792
|
-
"exports": [
|
|
70793
|
-
{
|
|
70794
|
-
"kind": "js",
|
|
70795
|
-
"name": "LocalizeMixinHost",
|
|
70796
|
-
"declaration": {
|
|
70797
|
-
"name": "LocalizeMixinHost",
|
|
70798
|
-
"module": "dist-types/components/localize/types/LocalizeMixinTypes.d.ts"
|
|
70799
|
-
}
|
|
70800
|
-
}
|
|
70801
|
-
]
|
|
70802
|
-
},
|
|
70803
70887
|
{
|
|
70804
70888
|
"kind": "javascript-module",
|
|
70805
70889
|
"path": "dist-types/components/overlays/test/ArrowMixin.test.d.ts",
|
|
@@ -109,6 +109,11 @@ export class LionInputFile extends LionInputFile_base {
|
|
|
109
109
|
protected _onRemoveFile(ev: CustomEvent): void;
|
|
110
110
|
/** @private */
|
|
111
111
|
private __duplicateFileNamesValidator;
|
|
112
|
+
/**
|
|
113
|
+
* @protected
|
|
114
|
+
* @type {LionSelectedFileList}
|
|
115
|
+
*/
|
|
116
|
+
protected get _fileListNode(): LionSelectedFileList;
|
|
112
117
|
connectedCallback(): void;
|
|
113
118
|
disconnectedCallback(): void;
|
|
114
119
|
get _acceptCriteria(): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LionInputFile.d.ts","sourceRoot":"","sources":["../../../../components/input-file/src/LionInputFile.js"],"names":[],"mappings":";AAiCA;IACE;;MAKC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAWC;IAED,sGAGE;IAEF,uCAEC;
|
|
1
|
+
{"version":3,"file":"LionInputFile.d.ts","sourceRoot":"","sources":["../../../../components/input-file/src/LionInputFile.js"],"names":[],"mappings":";AAiCA;IACE;;MAKC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAWC;IAED,sGAGE;IAEF,uCAEC;IAyxBD,gFAoCC;IA3zBD;;OAEG;IACH;;;;;;MAqBC;IAED;;;OAGG;IACH,6CAEC;IAED;;OAEG;IACH,4CAEC;IAWD;;OAEG;IACH,6BAKC;IAjBD;;;;OAIG;IACH,0BAEC;IAOC,qBAAqB;IACrB,kCAA6B;IAI/B;;;OAGG;IAEH,+CAEC;IAED;;OAEG;IAGH,iDAEC;IAIC,aAAkB;IAClB;;;OAGG;IACH,kCAFU,SAAS,EAAE,CAEW;IAChC;;OAEG;IAEH,gBAHU,cAAc,EAAE,CAGF;IACxB;;OAEG;IACH,gCAAkD;IAElD,wBAA2B;IAC3B,kBAAqB;IACrB,wBAA2B;IAC3B,oBAAgC;IAChC,eAAgB;IAChB;;OAEG;IACH,YAFU,SAAS,EAAE,CAED;IA2kBtB;;;OAGG;IACH,4BAHW,WAAW,QAarB;IAllBC,eAAe;IACf,sCAA4E;IAG9E;;;OAGG;IACH,oDAIC;IAED,0BAMC;IAED,6BAIC;IAgBD;;;;MAeC;IA2BD;;;;;OAKG;IACH,mDAJW,MAAM,QACN,MAAM,SAUhB;IAED;;;OAGG;IACH,UAFa,SAAS,EAAE,CAKvB;IAED;;;;OAIG;IAEH,aAJW,SAAS,EAAE,GACT,MAAM,CAKlB;IAED,eAAe;IACf,sCA6BC;IAoCD;;OAEG;IACH,2BAFW,OAAO,KAAK,EAAE,cAAc,QAkFtC;IAGD;;;OAGG;IACH,+BAcC;IAED;;;OAGG;IACH,mCAHW,SAAS,QAwBnB;IAkBD;;;;OAIG;IAEH,uBAJW,KAAK,QAOf;IAED;;OAEG;IACH,uCASC;IAED;;OAEG;IACH,yDAQC;IAED;;OAEG;IACH,0DAKC;IAED;;OAEG;IACH,8BAMC;IAED;;;;;OAKG;IACH,uCAHW,SAAS,EAAE,QAsDrB;IAED;;;OAGG;IACH,iDAHW,SAAS,EAAE,QAcrB;IAED;;OAEG;IACH,gCAsBC;IADC,oCAA+B;IAGjC;;;OAGG;IAEH,uCAJW,SAAS,QAgEnB;IAED;;;OAGG;IACH,6BAYC;IAmBD;;;OAGG;IACH,mCAHW,SAAS,QAgBnB;IAeD;;;OAGG;IACH,6BAEC;IAED;;;OAGG;IACH,+BAHY,cAAc,CAYzB;IAoED;;OAEG;IACH,2BAFW,UAAU,QAMpB;CACF;6BAz3BY,OAAO,KAAK,EAAE,cAAc;4BAC5B,OAAO,KAAK,EAAE,aAAa;wBAC3B,OAAO,wBAAwB,EAAE,SAAS;yBAC1C,OAAO,wBAAwB,EAAE,UAAU;6BAC3C,OAAO,wBAAwB,EAAE,cAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LionSelectedFileList.d.ts","sourceRoot":"","sources":["../../../../components/input-file/src/LionSelectedFileList.js"],"names":[],"mappings":";AASA;;;;GAIG;AAEH;IACE,iCAMC;IAED;;;;;;;MAKC;IAED,sGAGE;
|
|
1
|
+
{"version":3,"file":"LionSelectedFileList.d.ts","sourceRoot":"","sources":["../../../../components/input-file/src/LionSelectedFileList.js"],"names":[],"mappings":";AASA;;;;GAIG;AAEH;IACE,iCAMC;IAED;;;;;;;MAKC;IAED,sGAGE;IAwKF,+CAyBC;IA7LC;;OAEG;IACH,UAFU,SAAS,EAAE,CAEH;IAClB,kBAAqB;IAavB,6BAaC;IAED;;;OAGG;IACH,mCAFW,SAAS,QAYnB;IAED;;;;;OAKG;IAEH,0DALW,MAAM,OAAO,sDAAsD,EAAE,eAAe,CAAC,YACrF,MAAM,GACL,cAAc,CAWzB;IAED;;;;OAIG;IAEH,wCAJW,SAAS,GACR,cAAc,iBAAQ,CAKjC;IAED;;;;;OAKG;IAEH,uCALW,SAAS,YACT,MAAM,GACL,cAAc,CAezB;IAED;;;OAGG;IAEH,0CAHY,cAAc,CAKzB;IAED;;;;OAIG;IACH,0CAHW,SAAS,GACR,cAAc,CAsCzB;IAED,gEAcC;CA4BF;6BA1NY,OAAO,KAAK,EAAE,cAAc;wBAC5B,OAAO,wBAAwB,EAAE,SAAS;yBAC1C,OAAO,wBAAwB,EAAE,UAAU"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { FeedbackMessage } from "../../form-core/types/validate/ValidateMixinTypes.js";
|
|
2
|
+
export declare type FileBasics = {
|
|
3
|
+
name: string;
|
|
4
|
+
/** size in bytes */
|
|
5
|
+
size: number;
|
|
6
|
+
type: string;
|
|
7
|
+
status?: 'SUCCESS' | 'FAIL' | 'LOADING';
|
|
8
|
+
};
|
|
9
|
+
export declare type InputFile = {
|
|
10
|
+
downloadUrl?: string;
|
|
11
|
+
errorMessage?: FeedbackMessage["message"];
|
|
12
|
+
failedProp?: Array<string | number>;
|
|
13
|
+
response?: UploadResponse;
|
|
14
|
+
systemFile: Partial<SystemFile>;
|
|
15
|
+
validationFeedback?: Array<FeedbackMessage>;
|
|
16
|
+
} & FileBasics & Partial<File>;
|
|
17
|
+
export declare type SystemFile = {
|
|
18
|
+
downloadUrl?: string;
|
|
19
|
+
errorMessage?: FeedbackMessage["message"];
|
|
20
|
+
failedProp?: Array<string | number>;
|
|
21
|
+
response?: UploadResponse;
|
|
22
|
+
} & FileBasics & Partial<File>;
|
|
23
|
+
export declare type UploadResponse = {
|
|
24
|
+
downloadUrl?: string;
|
|
25
|
+
errorMessage?: FeedbackMessage["message"];
|
|
26
|
+
id?: string;
|
|
27
|
+
} & Partial<FileBasics>;
|
|
28
|
+
//# sourceMappingURL=input-file.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-file.d.ts","sourceRoot":"","sources":["../../../../components/input-file/types/input-file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sDAAsD,CAAC;AAEvF,oBAAY,UAAU,GAAG;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,oBAAoB;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;CACzC,CAAC;AAEF,oBAAY,SAAS,GAAG;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC;IAC1C,UAAU,CAAC,EAAE,KAAK,CAAC,MAAM,GAAC,MAAM,CAAC,CAAC;IAClC,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,UAAU,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;IAChC,kBAAkB,CAAC,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;CAC7C,GAAG,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AAE/B,oBAAY,UAAU,GAAG;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC;IAC1C,UAAU,CAAC,EAAE,KAAK,CAAC,MAAM,GAAC,MAAM,CAAC,CAAC;IAClC,QAAQ,CAAC,EAAE,cAAc,CAAC;CAC3B,GAAG,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AAG/B,oBAAY,cAAc,GAAG;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC;IAC1C,EAAE,CAAC,EAAE,MAAM,CAAC;CACb,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC"}
|
|
@@ -14,6 +14,5 @@ export { FormRegistrarHost } from '../../components/form-core/types/registration
|
|
|
14
14
|
export { ElementWithParentFormGroup } from '../../components/form-core/types/registration/FormRegistrarMixinTypes.js';
|
|
15
15
|
export { FormRegistrarPortalHost } from '../../components/form-core/types/registration/FormRegistrarPortalMixinTypes.js';
|
|
16
16
|
export { SyncUpdatableHost } from '../../components/form-core/types/utils/SyncUpdatableMixinTypes.js';
|
|
17
|
-
export { ValidateHost } from '../../components/form-core/types/validate/ValidateMixinTypes.js';
|
|
18
|
-
export { ValidationType } from '../../components/form-core/types/validate/ValidateMixinTypes.js';
|
|
17
|
+
export { ValidateHost, ValidationType, FeedbackMessage } from '../../components/form-core/types/validate/ValidateMixinTypes.js';
|
|
19
18
|
//# sourceMappingURL=form-core.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-core.d.ts","sourceRoot":"","sources":["../../../exports/types/form-core.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,wEAAwE,CAAC;AACzG,OAAO,EAAE,eAAe,EAAE,MAAM,wEAAwE,CAAC;AACzG,OAAO,EAAE,eAAe,EAAE,MAAM,2DAA2D,CAAC;AAC5F,OAAO,EAAE,oBAAoB,EAAE,MAAM,2DAA2D,CAAC;AACjG,OAAO,EAAE,aAAa,EAAE,MAAM,oEAAoE,CAAC;AACnG,OAAO,EAAE,WAAW,EAAE,MAAM,oEAAoE,CAAC;AACjG,OAAO,EAAE,UAAU,EAAE,MAAM,sDAAsD,CAAC;AAClF,OAAO,EAAE,aAAa,EAAE,MAAM,sDAAsD,CAAC;AACrF,OAAO,EAAE,oBAAoB,EAAE,MAAM,gEAAgE,CAAC;AACtG,OAAO,EAAE,iBAAiB,EAAE,MAAM,gEAAgE,CAAC;AACnG,OAAO,EAAE,mBAAmB,EAAE,MAAM,+DAA+D,CAAC;AACpG,OAAO,EAAE,mBAAmB,EAAE,MAAM,4EAA4E,CAAC;AACjH,OAAO,EAAE,iBAAiB,EAAE,MAAM,0EAA0E,CAAC;AAC7G,OAAO,EAAE,0BAA0B,EAAE,MAAM,0EAA0E,CAAC;AACtH,OAAO,EAAE,uBAAuB,EAAE,MAAM,gFAAgF,CAAC;AACzH,OAAO,EAAE,iBAAiB,EAAE,MAAM,mEAAmE,CAAC;AACtG,OAAO,EAAE,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"form-core.d.ts","sourceRoot":"","sources":["../../../exports/types/form-core.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,wEAAwE,CAAC;AACzG,OAAO,EAAE,eAAe,EAAE,MAAM,wEAAwE,CAAC;AACzG,OAAO,EAAE,eAAe,EAAE,MAAM,2DAA2D,CAAC;AAC5F,OAAO,EAAE,oBAAoB,EAAE,MAAM,2DAA2D,CAAC;AACjG,OAAO,EAAE,aAAa,EAAE,MAAM,oEAAoE,CAAC;AACnG,OAAO,EAAE,WAAW,EAAE,MAAM,oEAAoE,CAAC;AACjG,OAAO,EAAE,UAAU,EAAE,MAAM,sDAAsD,CAAC;AAClF,OAAO,EAAE,aAAa,EAAE,MAAM,sDAAsD,CAAC;AACrF,OAAO,EAAE,oBAAoB,EAAE,MAAM,gEAAgE,CAAC;AACtG,OAAO,EAAE,iBAAiB,EAAE,MAAM,gEAAgE,CAAC;AACnG,OAAO,EAAE,mBAAmB,EAAE,MAAM,+DAA+D,CAAC;AACpG,OAAO,EAAE,mBAAmB,EAAE,MAAM,4EAA4E,CAAC;AACjH,OAAO,EAAE,iBAAiB,EAAE,MAAM,0EAA0E,CAAC;AAC7G,OAAO,EAAE,0BAA0B,EAAE,MAAM,0EAA0E,CAAC;AACtH,OAAO,EAAE,uBAAuB,EAAE,MAAM,gFAAgF,CAAC;AACzH,OAAO,EAAE,iBAAiB,EAAE,MAAM,mEAAmE,CAAC;AACtG,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,iEAAiE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-file.d.ts","sourceRoot":"","sources":["../../../exports/types/input-file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAA"}
|