@tylertech/forge 2.17.0 → 2.18.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/custom-elements.json +142 -0
- package/dist/esm/app-bar/help-button/index.js +1 -1
- package/dist/esm/app-bar/index.js +1 -1
- package/dist/esm/autocomplete/index.js +1 -1
- package/dist/esm/calendar/index.js +1 -1
- package/dist/esm/chip-field/index.js +1 -1
- package/dist/esm/chunks/chunk.6BTPAMJ7.js +7 -0
- package/dist/esm/chunks/chunk.6BTPAMJ7.js.map +7 -0
- package/dist/esm/chunks/chunk.BINM3NUA.js +7 -0
- package/dist/esm/chunks/chunk.BINM3NUA.js.map +7 -0
- package/dist/esm/chunks/{chunk.MS77SPS4.js → chunk.CR2XZYFM.js} +2 -2
- package/dist/esm/chunks/{chunk.MS77SPS4.js.map → chunk.CR2XZYFM.js.map} +2 -2
- package/dist/esm/chunks/{chunk.6CAOHLX6.js → chunk.FBHCNPUL.js} +2 -2
- package/dist/esm/chunks/{chunk.6CAOHLX6.js.map → chunk.FBHCNPUL.js.map} +2 -2
- package/dist/esm/chunks/chunk.H5XOBZLW.js +7 -0
- package/dist/esm/chunks/chunk.H5XOBZLW.js.map +7 -0
- package/dist/esm/chunks/{chunk.S2N5KJ7S.js → chunk.HHDEJSOK.js} +2 -2
- package/dist/esm/chunks/{chunk.ERO7T6WC.js → chunk.JPVIN4NH.js} +2 -2
- package/dist/esm/chunks/{chunk.AEKZWVNO.js → chunk.KIBLZSFZ.js} +2 -2
- package/dist/esm/chunks/chunk.KQK2XX5H.js +7 -0
- package/dist/esm/chunks/chunk.KQK2XX5H.js.map +7 -0
- package/dist/esm/chunks/{chunk.PYXKGV4Z.js → chunk.L4CNH27W.js} +2 -2
- package/dist/esm/chunks/{chunk.PYXKGV4Z.js.map → chunk.L4CNH27W.js.map} +2 -2
- package/dist/esm/chunks/{chunk.W3GR3VDN.js → chunk.MCIDFQOG.js} +2 -2
- package/dist/esm/chunks/{chunk.NOO2ZZKZ.js → chunk.OYIW3AI6.js} +2 -2
- package/dist/esm/chunks/{chunk.LLK7YGQW.js → chunk.QJ7LOIUK.js} +2 -2
- package/dist/esm/chunks/chunk.RW6UJSE4.js +7 -0
- package/dist/esm/chunks/{chunk.NQZXAC65.js.map → chunk.RW6UJSE4.js.map} +2 -2
- package/dist/esm/chunks/{chunk.H4ZMVM5H.js → chunk.WO32MVS4.js} +2 -2
- package/dist/esm/chunks/{chunk.H4ZMVM5H.js.map → chunk.WO32MVS4.js.map} +1 -1
- package/dist/esm/chunks/{chunk.BAVLVCGK.js → chunk.WRV4KYM5.js} +2 -2
- package/dist/esm/chunks/{chunk.BAVLVCGK.js.map → chunk.WRV4KYM5.js.map} +2 -2
- package/dist/esm/chunks/{chunk.AB5XER3E.js → chunk.WVRUVLT4.js} +2 -2
- package/dist/esm/chunks/{chunk.XIZILH2M.js → chunk.XNCXVZJA.js} +2 -2
- package/dist/esm/chunks/{chunk.IWMA7NUU.js → chunk.Y7N4KA4U.js} +2 -2
- package/dist/esm/chunks/{chunk.65II7E54.js → chunk.Z7KJ4SA5.js} +2 -2
- package/dist/esm/chunks/chunk.ZPWB74RA.js +7 -0
- package/dist/esm/chunks/chunk.ZPWB74RA.js.map +7 -0
- package/dist/esm/date-picker/index.js +1 -1
- package/dist/esm/date-range-picker/index.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/keyboard-shortcut/index.js +1 -1
- package/dist/esm/list-dropdown/index.js +1 -1
- package/dist/esm/menu/index.js +1 -1
- package/dist/esm/paginator/index.js +1 -1
- package/dist/esm/select/core/index.js +1 -1
- package/dist/esm/select/index.js +1 -1
- package/dist/esm/select/option/index.js +1 -1
- package/dist/esm/select/select/index.js +1 -1
- package/dist/esm/select/select-dropdown/index.js +1 -1
- package/dist/esm/split-view/index.js +1 -1
- package/dist/esm/split-view/split-view/index.js +1 -1
- package/dist/esm/split-view/split-view-panel/index.js +1 -1
- package/dist/esm/time-picker/index.js +1 -1
- package/esm/autocomplete/autocomplete-constants.d.ts +3 -0
- package/esm/autocomplete/autocomplete-foundation.d.ts +3 -1
- package/esm/autocomplete/autocomplete-foundation.js +14 -0
- package/esm/autocomplete/autocomplete.d.ts +7 -1
- package/esm/autocomplete/autocomplete.js +7 -0
- package/esm/calendar/calendar-foundation.js +6 -0
- package/esm/chip-field/chip-field-adapter.js +1 -1
- package/esm/chip-field/chip-field.js +2 -2
- package/esm/date-picker/base/base-date-picker-foundation.js +1 -1
- package/esm/date-range-picker/date-range-picker-foundation.js +2 -2
- package/esm/keyboard-shortcut/keyboard-shortcut-constants.d.ts +1 -0
- package/esm/keyboard-shortcut/keyboard-shortcut-foundation.d.ts +6 -0
- package/esm/keyboard-shortcut/keyboard-shortcut-foundation.js +9 -0
- package/esm/keyboard-shortcut/keyboard-shortcut.d.ts +4 -0
- package/esm/keyboard-shortcut/keyboard-shortcut.js +3 -0
- package/esm/list-dropdown/list-dropdown-constants.d.ts +4 -0
- package/esm/list-dropdown/list-dropdown-utils.js +14 -3
- package/esm/select/core/base-select-adapter.js +3 -0
- package/esm/select/option/option-constants.d.ts +1 -0
- package/esm/select/option/option-constants.js +1 -0
- package/esm/select/option/option-foundation.d.ts +13 -0
- package/esm/select/option/option-foundation.js +28 -0
- package/esm/select/option/option.d.ts +7 -0
- package/esm/select/option/option.js +13 -0
- package/esm/split-view/split-view-panel/split-view-panel.js +1 -1
- package/esm/time-picker/time-picker-foundation.js +3 -3
- package/package.json +1 -1
- package/styles/chip-field/_base.scss +1 -0
- package/styles/chip-field/_selector.scss +2 -2
- package/dist/esm/chunks/chunk.A4UN74PV.js +0 -7
- package/dist/esm/chunks/chunk.A4UN74PV.js.map +0 -7
- package/dist/esm/chunks/chunk.FFVZ6JMP.js +0 -7
- package/dist/esm/chunks/chunk.FFVZ6JMP.js.map +0 -7
- package/dist/esm/chunks/chunk.IMEODSRH.js +0 -7
- package/dist/esm/chunks/chunk.IMEODSRH.js.map +0 -7
- package/dist/esm/chunks/chunk.NQZXAC65.js +0 -7
- package/dist/esm/chunks/chunk.S7ZU6JKB.js +0 -7
- package/dist/esm/chunks/chunk.S7ZU6JKB.js.map +0 -7
- package/dist/esm/chunks/chunk.XY45YU7I.js +0 -7
- package/dist/esm/chunks/chunk.XY45YU7I.js.map +0 -7
- /package/dist/esm/chunks/{chunk.S2N5KJ7S.js.map → chunk.HHDEJSOK.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.ERO7T6WC.js.map → chunk.JPVIN4NH.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.AEKZWVNO.js.map → chunk.KIBLZSFZ.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.W3GR3VDN.js.map → chunk.MCIDFQOG.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.NOO2ZZKZ.js.map → chunk.OYIW3AI6.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.LLK7YGQW.js.map → chunk.QJ7LOIUK.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.AB5XER3E.js.map → chunk.WVRUVLT4.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.XIZILH2M.js.map → chunk.XNCXVZJA.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.IWMA7NUU.js.map → chunk.Y7N4KA4U.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.65II7E54.js.map → chunk.Z7KJ4SA5.js.map} +0 -0
package/custom-elements.json
CHANGED
|
@@ -4198,6 +4198,24 @@
|
|
|
4198
4198
|
}
|
|
4199
4199
|
}
|
|
4200
4200
|
},
|
|
4201
|
+
{
|
|
4202
|
+
"kind": "method",
|
|
4203
|
+
"name": "forceFilter",
|
|
4204
|
+
"privacy": "public",
|
|
4205
|
+
"return": {
|
|
4206
|
+
"type": {
|
|
4207
|
+
"text": "Promise<void>"
|
|
4208
|
+
}
|
|
4209
|
+
},
|
|
4210
|
+
"parameters": [
|
|
4211
|
+
{
|
|
4212
|
+
"name": "{ preserveValue }",
|
|
4213
|
+
"type": {
|
|
4214
|
+
"text": "IAutocompleteForceFilterOptions"
|
|
4215
|
+
}
|
|
4216
|
+
}
|
|
4217
|
+
]
|
|
4218
|
+
},
|
|
4201
4219
|
{
|
|
4202
4220
|
"kind": "method",
|
|
4203
4221
|
"name": "_attachListeners",
|
|
@@ -5407,6 +5425,26 @@
|
|
|
5407
5425
|
},
|
|
5408
5426
|
"description": "Closes the dropdown."
|
|
5409
5427
|
},
|
|
5428
|
+
{
|
|
5429
|
+
"kind": "method",
|
|
5430
|
+
"name": "forceFilter",
|
|
5431
|
+
"privacy": "public",
|
|
5432
|
+
"return": {
|
|
5433
|
+
"type": {
|
|
5434
|
+
"text": "void"
|
|
5435
|
+
}
|
|
5436
|
+
},
|
|
5437
|
+
"parameters": [
|
|
5438
|
+
{
|
|
5439
|
+
"name": "opts",
|
|
5440
|
+
"default": "{ preserveValue: false }",
|
|
5441
|
+
"type": {
|
|
5442
|
+
"text": "IAutocompleteForceFilterOptions"
|
|
5443
|
+
}
|
|
5444
|
+
}
|
|
5445
|
+
],
|
|
5446
|
+
"description": "Forces the filter callback to be executed to update the current selection state with new options."
|
|
5447
|
+
},
|
|
5410
5448
|
{
|
|
5411
5449
|
"kind": "field",
|
|
5412
5450
|
"name": "popupClasses",
|
|
@@ -46471,6 +46509,14 @@
|
|
|
46471
46509
|
"privacy": "private",
|
|
46472
46510
|
"default": "false"
|
|
46473
46511
|
},
|
|
46512
|
+
{
|
|
46513
|
+
"kind": "field",
|
|
46514
|
+
"name": "_activateCallback",
|
|
46515
|
+
"type": {
|
|
46516
|
+
"text": "KeyboardShortcutActivateCallback | null | undefined"
|
|
46517
|
+
},
|
|
46518
|
+
"privacy": "private"
|
|
46519
|
+
},
|
|
46474
46520
|
{
|
|
46475
46521
|
"kind": "field",
|
|
46476
46522
|
"name": "_keyCombinations",
|
|
@@ -46637,6 +46683,15 @@
|
|
|
46637
46683
|
},
|
|
46638
46684
|
"privacy": "public",
|
|
46639
46685
|
"description": "Gets/sets whether the event will be emitted."
|
|
46686
|
+
},
|
|
46687
|
+
{
|
|
46688
|
+
"kind": "field",
|
|
46689
|
+
"name": "activateCallback",
|
|
46690
|
+
"type": {
|
|
46691
|
+
"text": "KeyboardShortcutActivateCallback | null | undefined"
|
|
46692
|
+
},
|
|
46693
|
+
"privacy": "public",
|
|
46694
|
+
"description": "Gets/sets the activation callback."
|
|
46640
46695
|
}
|
|
46641
46696
|
]
|
|
46642
46697
|
}
|
|
@@ -46902,6 +46957,15 @@
|
|
|
46902
46957
|
},
|
|
46903
46958
|
"privacy": "public",
|
|
46904
46959
|
"description": "Gets/sets whether the callback will be called."
|
|
46960
|
+
},
|
|
46961
|
+
{
|
|
46962
|
+
"kind": "field",
|
|
46963
|
+
"name": "activateCallback",
|
|
46964
|
+
"type": {
|
|
46965
|
+
"text": "KeyboardShortcutActivateCallback | null | undefined"
|
|
46966
|
+
},
|
|
46967
|
+
"privacy": "public",
|
|
46968
|
+
"description": "Gets/sets whether the activation callback."
|
|
46905
46969
|
}
|
|
46906
46970
|
],
|
|
46907
46971
|
"superclass": {
|
|
@@ -104128,6 +104192,14 @@
|
|
|
104128
104192
|
},
|
|
104129
104193
|
"privacy": "private"
|
|
104130
104194
|
},
|
|
104195
|
+
{
|
|
104196
|
+
"kind": "field",
|
|
104197
|
+
"name": "_secondaryLabel",
|
|
104198
|
+
"type": {
|
|
104199
|
+
"text": "string"
|
|
104200
|
+
},
|
|
104201
|
+
"privacy": "private"
|
|
104202
|
+
},
|
|
104131
104203
|
{
|
|
104132
104204
|
"kind": "field",
|
|
104133
104205
|
"name": "_disabled",
|
|
@@ -104179,6 +104251,14 @@
|
|
|
104179
104251
|
},
|
|
104180
104252
|
"privacy": "private"
|
|
104181
104253
|
},
|
|
104254
|
+
{
|
|
104255
|
+
"kind": "field",
|
|
104256
|
+
"name": "_leadingIconComponentProps",
|
|
104257
|
+
"type": {
|
|
104258
|
+
"text": "Partial<IIconComponent>"
|
|
104259
|
+
},
|
|
104260
|
+
"privacy": "private"
|
|
104261
|
+
},
|
|
104182
104262
|
{
|
|
104183
104263
|
"kind": "field",
|
|
104184
104264
|
"name": "_trailingIcon",
|
|
@@ -104203,6 +104283,14 @@
|
|
|
104203
104283
|
},
|
|
104204
104284
|
"privacy": "private"
|
|
104205
104285
|
},
|
|
104286
|
+
{
|
|
104287
|
+
"kind": "field",
|
|
104288
|
+
"name": "_trailingIconComponentProps",
|
|
104289
|
+
"type": {
|
|
104290
|
+
"text": "Partial<IIconComponent>"
|
|
104291
|
+
},
|
|
104292
|
+
"privacy": "private"
|
|
104293
|
+
},
|
|
104206
104294
|
{
|
|
104207
104295
|
"kind": "field",
|
|
104208
104296
|
"name": "_leadingBuilder",
|
|
@@ -104237,6 +104325,15 @@
|
|
|
104237
104325
|
"privacy": "public",
|
|
104238
104326
|
"description": "Gets/sets the label of this option."
|
|
104239
104327
|
},
|
|
104328
|
+
{
|
|
104329
|
+
"kind": "field",
|
|
104330
|
+
"name": "secondaryLabel",
|
|
104331
|
+
"type": {
|
|
104332
|
+
"text": "string"
|
|
104333
|
+
},
|
|
104334
|
+
"privacy": "public",
|
|
104335
|
+
"description": "Gets/sets the secondary label of this option."
|
|
104336
|
+
},
|
|
104240
104337
|
{
|
|
104241
104338
|
"kind": "field",
|
|
104242
104339
|
"name": "disabled",
|
|
@@ -104291,6 +104388,15 @@
|
|
|
104291
104388
|
"privacy": "public",
|
|
104292
104389
|
"description": "Gets/sets the leading icon type of this option."
|
|
104293
104390
|
},
|
|
104391
|
+
{
|
|
104392
|
+
"kind": "field",
|
|
104393
|
+
"name": "leadingIconComponentProps",
|
|
104394
|
+
"type": {
|
|
104395
|
+
"text": "Partial<IIconComponent>"
|
|
104396
|
+
},
|
|
104397
|
+
"privacy": "public",
|
|
104398
|
+
"description": "Gets/sets the props on the leading icon component."
|
|
104399
|
+
},
|
|
104294
104400
|
{
|
|
104295
104401
|
"kind": "field",
|
|
104296
104402
|
"name": "trailingIcon",
|
|
@@ -104318,6 +104424,15 @@
|
|
|
104318
104424
|
"privacy": "public",
|
|
104319
104425
|
"description": "Gets/sets the trailing icon type of this option."
|
|
104320
104426
|
},
|
|
104427
|
+
{
|
|
104428
|
+
"kind": "field",
|
|
104429
|
+
"name": "trailingIconComponentProps",
|
|
104430
|
+
"type": {
|
|
104431
|
+
"text": "Partial<IIconComponent>"
|
|
104432
|
+
},
|
|
104433
|
+
"privacy": "public",
|
|
104434
|
+
"description": "Gets/sets the props on the trailing icon component."
|
|
104435
|
+
},
|
|
104321
104436
|
{
|
|
104322
104437
|
"kind": "field",
|
|
104323
104438
|
"name": "leadingBuilder",
|
|
@@ -104396,6 +104511,15 @@
|
|
|
104396
104511
|
"privacy": "public",
|
|
104397
104512
|
"description": "Gets/sets the label of this option."
|
|
104398
104513
|
},
|
|
104514
|
+
{
|
|
104515
|
+
"kind": "field",
|
|
104516
|
+
"name": "secondaryLabel",
|
|
104517
|
+
"type": {
|
|
104518
|
+
"text": "string"
|
|
104519
|
+
},
|
|
104520
|
+
"privacy": "public",
|
|
104521
|
+
"description": "Gets/sets the secondary label of this option."
|
|
104522
|
+
},
|
|
104399
104523
|
{
|
|
104400
104524
|
"kind": "field",
|
|
104401
104525
|
"name": "disabled",
|
|
@@ -104450,6 +104574,15 @@
|
|
|
104450
104574
|
"privacy": "public",
|
|
104451
104575
|
"description": "Gets/sets the leading icon type of this option."
|
|
104452
104576
|
},
|
|
104577
|
+
{
|
|
104578
|
+
"kind": "field",
|
|
104579
|
+
"name": "leadingIconComponentProps",
|
|
104580
|
+
"type": {
|
|
104581
|
+
"text": "Partial<IIconComponent>"
|
|
104582
|
+
},
|
|
104583
|
+
"privacy": "public",
|
|
104584
|
+
"description": "Gets/sets properties on leading icon component."
|
|
104585
|
+
},
|
|
104453
104586
|
{
|
|
104454
104587
|
"kind": "field",
|
|
104455
104588
|
"name": "trailingIcon",
|
|
@@ -104477,6 +104610,15 @@
|
|
|
104477
104610
|
"privacy": "public",
|
|
104478
104611
|
"description": "Gets/sets the trailing icon type of this option."
|
|
104479
104612
|
},
|
|
104613
|
+
{
|
|
104614
|
+
"kind": "field",
|
|
104615
|
+
"name": "trailingIconComponentProps",
|
|
104616
|
+
"type": {
|
|
104617
|
+
"text": "Partial<IIconComponent>"
|
|
104618
|
+
},
|
|
104619
|
+
"privacy": "public",
|
|
104620
|
+
"description": "Gets/sets properties on trailing icon component."
|
|
104621
|
+
},
|
|
104480
104622
|
{
|
|
104481
104623
|
"kind": "field",
|
|
104482
104624
|
"name": "leadingBuilder",
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* Copyright 2023 Tyler Technologies, Inc.
|
|
4
4
|
* License: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import{a,b,c,d,e}from"../../chunks/chunk.
|
|
6
|
+
import{a,b,c,d,e}from"../../chunks/chunk.QJ7LOIUK.js";import"../../chunks/chunk.HHDEJSOK.js";import"../../chunks/chunk.Y7N4KA4U.js";import"../../chunks/chunk.H5XOBZLW.js";import"../../chunks/chunk.K7HRCGML.js";import"../../chunks/chunk.FZQCBRPK.js";import"../../chunks/chunk.SXTM6OK4.js";import"../../chunks/chunk.DYF2MREZ.js";import"../../chunks/chunk.6YPD6CQM.js";import"../../chunks/chunk.JD4APKZS.js";import"../../chunks/chunk.BL4IBI6G.js";import"../../chunks/chunk.V4TCOZLK.js";import"../../chunks/chunk.4DAIIJ37.js";import"../../chunks/chunk.3C44DXZ2.js";import"../../chunks/chunk.CG5CVENX.js";import"../../chunks/chunk.4CWMNWZU.js";import"../../chunks/chunk.2DXG2R3M.js";import"../../chunks/chunk.F3MP6AXF.js";import"../../chunks/chunk.MZLPUI6R.js";import"../../chunks/chunk.73GVVX4K.js";import"../../chunks/chunk.3IXTRC6Z.js";import"../../chunks/chunk.YI4JTY4T.js";import"../../chunks/chunk.3KQL7VAZ.js";import"../../chunks/chunk.S2YVOMLW.js";import"../../chunks/chunk.6KTLOA7V.js";import"../../chunks/chunk.SKLCDWYQ.js";import"../../chunks/chunk.2KXSGD3S.js";import"../../chunks/chunk.FVRSGKJD.js";import"../../chunks/chunk.U6WGJELL.js";import"../../chunks/chunk.7XFU2W25.js";import"../../chunks/chunk.U6FJJGO3.js";import"../../chunks/chunk.Y66GSZJB.js";import"../../chunks/chunk.BESB4RGK.js";import"../../chunks/chunk.5KC43VFL.js";import"../../chunks/chunk.KTGSZEAG.js";import"../../chunks/chunk.QOA2O575.js";import"../../chunks/chunk.HOXFK44F.js";import"../../chunks/chunk.4LA6HEA7.js";import"../../chunks/chunk.J2M2MXP2.js";import"../../chunks/chunk.MCIQXNKY.js";export{c as APP_BAR_HELP_BUTTON_CONSTANTS,a as AppBarHelpButtonAdapter,d as AppBarHelpButtonComponent,b as AppBarHelpButtonFoundation,e as defineAppBarHelpButtonComponent};
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* Copyright 2023 Tyler Technologies, Inc.
|
|
4
4
|
* License: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import{a,b,c,d,e,f as I}from"../chunks/chunk.SAQSXX2T.js";import{a as t,b as u,c as v,d as w,e as x}from"../chunks/chunk.
|
|
6
|
+
import{a,b,c,d,e,f as I}from"../chunks/chunk.SAQSXX2T.js";import{a as t,b as u,c as v,d as w,e as x}from"../chunks/chunk.QJ7LOIUK.js";import"../chunks/chunk.HHDEJSOK.js";import"../chunks/chunk.Y7N4KA4U.js";import"../chunks/chunk.H5XOBZLW.js";import"../chunks/chunk.K7HRCGML.js";import"../chunks/chunk.FZQCBRPK.js";import"../chunks/chunk.SXTM6OK4.js";import"../chunks/chunk.DYF2MREZ.js";import"../chunks/chunk.6YPD6CQM.js";import"../chunks/chunk.JD4APKZS.js";import"../chunks/chunk.BL4IBI6G.js";import"../chunks/chunk.V4TCOZLK.js";import"../chunks/chunk.4DAIIJ37.js";import{a as l,b as m,c as n}from"../chunks/chunk.NX4EECNP.js";import{a as o,b as p,c as q,d as r,e as s}from"../chunks/chunk.D24CE6KE.js";import"../chunks/chunk.76PI42C5.js";import{a as D,b as E,c as F,d as G,e as H}from"../chunks/chunk.BKNYDA4V.js";import{a as y,b as z,c as A,d as B,e as C}from"../chunks/chunk.Q5YD3PKM.js";import"../chunks/chunk.ZCQO3N25.js";import"../chunks/chunk.EMV7JGHB.js";import"../chunks/chunk.AVKCWA7I.js";import"../chunks/chunk.BJZ7RB5F.js";import"../chunks/chunk.CE6NTUWI.js";import"../chunks/chunk.3C44DXZ2.js";import"../chunks/chunk.CG5CVENX.js";import"../chunks/chunk.4CWMNWZU.js";import"../chunks/chunk.2DXG2R3M.js";import"../chunks/chunk.F3MP6AXF.js";import{a as f,b as g,c as h,d as i,e as j,f as k}from"../chunks/chunk.UW2HWAVL.js";import"../chunks/chunk.MZLPUI6R.js";import"../chunks/chunk.73GVVX4K.js";import"../chunks/chunk.3IXTRC6Z.js";import"../chunks/chunk.YI4JTY4T.js";import"../chunks/chunk.3KQL7VAZ.js";import"../chunks/chunk.S2YVOMLW.js";import"../chunks/chunk.6KTLOA7V.js";import"../chunks/chunk.SKLCDWYQ.js";import"../chunks/chunk.2KXSGD3S.js";import"../chunks/chunk.FVRSGKJD.js";import"../chunks/chunk.U6WGJELL.js";import"../chunks/chunk.7XFU2W25.js";import"../chunks/chunk.U6FJJGO3.js";import"../chunks/chunk.Y66GSZJB.js";import"../chunks/chunk.BESB4RGK.js";import"../chunks/chunk.5KC43VFL.js";import"../chunks/chunk.KTGSZEAG.js";import"../chunks/chunk.QOA2O575.js";import"../chunks/chunk.HOXFK44F.js";import"../chunks/chunk.4LA6HEA7.js";import"../chunks/chunk.J2M2MXP2.js";import"../chunks/chunk.MCIQXNKY.js";export{b as APP_BAR_CONSTANTS,v as APP_BAR_HELP_BUTTON_CONSTANTS,l as APP_BAR_MENU_BUTTON_CONSTANTS,p as APP_BAR_NOTIFICATION_BUTTON_CONSTANTS,D as APP_BAR_PROFILE_BUTTON_CONSTANTS,f as APP_BAR_SEARCH_CONSTANTS,c as AppBarAdapter,e as AppBarComponent,d as AppBarFoundation,t as AppBarHelpButtonAdapter,w as AppBarHelpButtonComponent,u as AppBarHelpButtonFoundation,m as AppBarMenuButtonComponent,o as AppBarNotificationButtonAdapter,r as AppBarNotificationButtonComponent,q as AppBarNotificationButtonFoundation,E as AppBarProfileButtonAdapter,G as AppBarProfileButtonComponent,F as AppBarProfileButtonFoundation,i as AppBarSearchAdapter,j as AppBarSearchComponent,h as AppBarSearchFoundation,g as DEFAULT_COMBINED_OPTIONS,y as PROFILE_CARD_CONSTANTS,z as ProfileCardAdapter,B as ProfileCardComponent,A as ProfileCardFoundation,I as defineAppBarComponent,x as defineAppBarHelpButtonComponent,n as defineAppBarMenuButtonComponent,s as defineAppBarNotificationButtonComponent,H as defineAppBarProfileButtonComponent,k as defineAppBarSearchComponent,C as defineProfileCardComponent,a as elementName};
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* Copyright 2023 Tyler Technologies, Inc.
|
|
4
4
|
* License: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import{a,b,c,d,e,f,g,h,i,j,k}from"../chunks/chunk.
|
|
6
|
+
import{a,b,c,d,e,f,g,h,i,j,k}from"../chunks/chunk.6BTPAMJ7.js";import"../chunks/chunk.AMES2WWC.js";import"../chunks/chunk.NMKDIHFB.js";import"../chunks/chunk.VTB27IL7.js";import"../chunks/chunk.ZPWB74RA.js";import"../chunks/chunk.K4SWLH26.js";import"../chunks/chunk.DONAMICM.js";import"../chunks/chunk.AMWDVFAU.js";import"../chunks/chunk.GO5A4GKZ.js";import"../chunks/chunk.CKS5A4YN.js";import"../chunks/chunk.274MFEUZ.js";import"../chunks/chunk.XFAOB6LU.js";import"../chunks/chunk.K6LBO4KJ.js";import"../chunks/chunk.Y7N4KA4U.js";import"../chunks/chunk.H5XOBZLW.js";import"../chunks/chunk.K7HRCGML.js";import"../chunks/chunk.FZQCBRPK.js";import"../chunks/chunk.SXTM6OK4.js";import"../chunks/chunk.DYF2MREZ.js";import"../chunks/chunk.6YPD6CQM.js";import"../chunks/chunk.BL4IBI6G.js";import"../chunks/chunk.V4TCOZLK.js";import"../chunks/chunk.4DAIIJ37.js";import"../chunks/chunk.3C44DXZ2.js";import"../chunks/chunk.4CWMNWZU.js";import"../chunks/chunk.2DXG2R3M.js";import"../chunks/chunk.F3MP6AXF.js";import"../chunks/chunk.MZLPUI6R.js";import"../chunks/chunk.YI4JTY4T.js";import"../chunks/chunk.3KQL7VAZ.js";import"../chunks/chunk.S2YVOMLW.js";import"../chunks/chunk.6KTLOA7V.js";import"../chunks/chunk.SKLCDWYQ.js";import"../chunks/chunk.2KXSGD3S.js";import"../chunks/chunk.FVRSGKJD.js";import"../chunks/chunk.U6WGJELL.js";import"../chunks/chunk.7XFU2W25.js";import"../chunks/chunk.U6FJJGO3.js";import"../chunks/chunk.Y66GSZJB.js";import"../chunks/chunk.BESB4RGK.js";import"../chunks/chunk.5KC43VFL.js";import"../chunks/chunk.KTGSZEAG.js";import"../chunks/chunk.QOA2O575.js";import"../chunks/chunk.HOXFK44F.js";import"../chunks/chunk.4LA6HEA7.js";import"../chunks/chunk.J2M2MXP2.js";import"../chunks/chunk.MCIQXNKY.js";export{a as AUTOCOMPLETE_CONSTANTS,c as AutocompleteAdapter,i as AutocompleteComponent,j as AutocompleteComponentDelegate,h as AutocompleteFoundation,b as AutocompleteMode,d as OptionType,k as defineAutocompleteComponent,f as getSelectedOption,e as isOptionType,g as optionEqualPredicate};
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* Copyright 2023 Tyler Technologies, Inc.
|
|
4
4
|
* License: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import{A as oa,B as pa,C as qa,D as ra,E as sa,F as ta,G as wa,a as Q,b as R,c as S,d as T,e as U,f as V,g as W,h as X,i as Y,j as Z,k as _,l as $,m as aa,n as ba,o as ca,p as da,q as ea,r as fa,s as ga,t as ha,u as ia,v as ja,w as ka,x as la,y as ma,z as na}from"../chunks/chunk.
|
|
6
|
+
import{A as oa,B as pa,C as qa,D as ra,E as sa,F as ta,G as wa,a as Q,b as R,c as S,d as T,e as U,f as V,g as W,h as X,i as Y,j as Z,k as _,l as $,m as aa,n as ba,o as ca,p as da,q as ea,r as fa,s as ga,t as ha,u as ia,v as ja,w as ka,x as la,y as ma,z as na}from"../chunks/chunk.RW6UJSE4.js";import{A as M,B as N,C as O,D as P,E as ua,F as va,a as l,b as m,c as n,d as o,e as p,f as q,g as r,h as s,i as t,j as u,k as w,l as x,m as y,n as z,o as A,p as B,q as C,r as D,s as E,t as F,u as G,v as H,w as I,x as J,y as K,z as L}from"../chunks/chunk.44WDRTRR.js";import{a,b,c,d,e,f,g,h,i,j,k}from"../chunks/chunk.PADHAJLS.js";import{a as v}from"../chunks/chunk.YPZNIYQL.js";import"../chunks/chunk.6YPD6CQM.js";import"../chunks/chunk.4DAIIJ37.js";import"../chunks/chunk.CE6NTUWI.js";import"../chunks/chunk.3C44DXZ2.js";import"../chunks/chunk.CG5CVENX.js";import"../chunks/chunk.4CWMNWZU.js";import"../chunks/chunk.2DXG2R3M.js";import"../chunks/chunk.F3MP6AXF.js";import"../chunks/chunk.MZLPUI6R.js";import"../chunks/chunk.73GVVX4K.js";import"../chunks/chunk.3IXTRC6Z.js";import"../chunks/chunk.YI4JTY4T.js";import"../chunks/chunk.3KQL7VAZ.js";import"../chunks/chunk.S2YVOMLW.js";import"../chunks/chunk.6KTLOA7V.js";import"../chunks/chunk.SKLCDWYQ.js";import"../chunks/chunk.2KXSGD3S.js";import"../chunks/chunk.FVRSGKJD.js";import"../chunks/chunk.U6WGJELL.js";import"../chunks/chunk.7XFU2W25.js";import"../chunks/chunk.U6FJJGO3.js";import"../chunks/chunk.Y66GSZJB.js";import"../chunks/chunk.BESB4RGK.js";import"../chunks/chunk.5KC43VFL.js";import"../chunks/chunk.KTGSZEAG.js";import"../chunks/chunk.QOA2O575.js";import"../chunks/chunk.HOXFK44F.js";import"../chunks/chunk.4LA6HEA7.js";import"../chunks/chunk.J2M2MXP2.js";import"../chunks/chunk.MCIQXNKY.js";export{l as CALENDAR_CONSTANTS,ua as CALENDAR_DROPDOWN_CONSTANTS,a as CALENDAR_MENU_CONSTANTS,qa as CalendarAdapter,sa as CalendarComponent,ta as CalendarComponentDelegate,va as CalendarDropdown,ra as CalendarFoundation,h as CalendarMenuAdapter,j as CalendarMenuComponent,i as CalendarMenuFoundation,n as CalendarMonthFocus,v as DateRange,m as DayOfWeek,oa as coerceDateFromValue,wa as defineCalendarComponent,k as defineCalendarMenuComponent,N as eventIncludesDate,O as eventIncludesElement,J as getAccessibleHeader,ia as getAllYearOptions,L as getClearButton,B as getDateElement,x as getDateId,$ as getDateRangeFromDates,A as getDateRow,C as getDateSpacerElement,aa as getDatesFromDateRange,ca as getDatesInRange,z as getDayElement,w as getDayId,da as getEventDescriptions,E as getEventElement,D as getEventWrapperElement,y as getEventWrapperId,ma as getEventsOnDate,S as getFirstDateOfWeek,U as getFirstDayOfMonth,s as getFirstDayOfWeekForLocale,K as getFooter,b as getGrid,c as getGridItems,G as getHeader,la as getIndexOfDate,T as getLastDateOfWeek,d as getList,e as getListItems,p as getLocalizedDayOfMonth,o as getLocalizedDayOfWeek,q as getLocalizedMonth,r as getLocalizedYear,ba as getMinAndMaxDates,H as getMonthButtonContent,Q as getMonthDates,ga as getMonthOptions,na as getMultipleFromRange,f as getScrollSpy,V as getSortedDaysOfWeek,M as getTodayButton,F as getTooltip,R as getWeekDates,t as getWeekendDaysForLocale,I as getYearButtonContent,ha as getYearOptions,ka as isDisabled,X as isInMonth,Y as isInRange,u as isRtlLocale,ja as isSelected,W as isToday,ea as parseDateOffset,fa as parseYearRange,g as removeAllExceptLastChild,P as setTabindexOnElement,pa as shouldHandleEvent,Z as sortDates,_ as splitIntoWeeks};
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* Copyright 2023 Tyler Technologies, Inc.
|
|
4
4
|
* License: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import{a,b,c,d,e,f}from"../chunks/chunk.
|
|
6
|
+
import{a,b,c,d,e,f}from"../chunks/chunk.ZPWB74RA.js";import"../chunks/chunk.K4SWLH26.js";import"../chunks/chunk.DONAMICM.js";import"../chunks/chunk.AMWDVFAU.js";import"../chunks/chunk.GO5A4GKZ.js";import"../chunks/chunk.CKS5A4YN.js";import"../chunks/chunk.274MFEUZ.js";import"../chunks/chunk.XFAOB6LU.js";import"../chunks/chunk.K6LBO4KJ.js";import"../chunks/chunk.4CWMNWZU.js";import"../chunks/chunk.2DXG2R3M.js";import"../chunks/chunk.F3MP6AXF.js";import"../chunks/chunk.MZLPUI6R.js";import"../chunks/chunk.YI4JTY4T.js";import"../chunks/chunk.S2YVOMLW.js";import"../chunks/chunk.6KTLOA7V.js";import"../chunks/chunk.SKLCDWYQ.js";import"../chunks/chunk.2KXSGD3S.js";import"../chunks/chunk.FVRSGKJD.js";import"../chunks/chunk.U6WGJELL.js";import"../chunks/chunk.7XFU2W25.js";import"../chunks/chunk.U6FJJGO3.js";import"../chunks/chunk.Y66GSZJB.js";import"../chunks/chunk.BESB4RGK.js";import"../chunks/chunk.5KC43VFL.js";import"../chunks/chunk.KTGSZEAG.js";import"../chunks/chunk.QOA2O575.js";import"../chunks/chunk.HOXFK44F.js";import"../chunks/chunk.4LA6HEA7.js";import"../chunks/chunk.J2M2MXP2.js";import"../chunks/chunk.MCIQXNKY.js";export{a as CHIP_FIELD_CONSTANTS,b as ChipFieldAdapter,d as ChipFieldComponent,e as ChipFieldComponentDelegate,c as ChipFieldFoundation,f as defineChipFieldComponent};
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Tyler Technologies, Inc.
|
|
4
|
+
* License: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import{c as re}from"./chunk.AMES2WWC.js";import{a as se,b as le}from"./chunk.NMKDIHFB.js";import{b as j}from"./chunk.VTB27IL7.js";import{a as F}from"./chunk.ZPWB74RA.js";import{a as ne}from"./chunk.GO5A4GKZ.js";import{a as te}from"./chunk.Y7N4KA4U.js";import{h as pe,i as ae}from"./chunk.H5XOBZLW.js";import{b as oe}from"./chunk.K7HRCGML.js";import{c as ee}from"./chunk.SXTM6OK4.js";import{e as Z}from"./chunk.DYF2MREZ.js";import{b as Q}from"./chunk.BL4IBI6G.js";import{a as C,e as ie}from"./chunk.3C44DXZ2.js";import{c as W,g as K,h as q}from"./chunk.MZLPUI6R.js";import{a as D}from"./chunk.YI4JTY4T.js";import{d as Y,l as X,m as J}from"./chunk.S2YVOMLW.js";import{a as z}from"./chunk.2KXSGD3S.js";import{a as $}from"./chunk.Y66GSZJB.js";import{a as R}from"./chunk.5KC43VFL.js";import{a}from"./chunk.KTGSZEAG.js";import{a as H,b as G,c as V}from"./chunk.QOA2O575.js";import{a as k,e as U,g as L}from"./chunk.HOXFK44F.js";import{m as B,r as N,s as M,u as A}from"./chunk.4LA6HEA7.js";import{a as y,b as h,c as x,j as T,k as f,l as S,n as w,o as P}from"./chunk.J2M2MXP2.js";import{a as E,f as p}from"./chunk.MCIQXNKY.js";var g=`${G}autocomplete`,me={MODE:"mode",MULTIPLE:"multiple",DEBOUNCE:"debounce",FILTER_ON_FOCUS:"filter-on-focus",FILTER_FOCUS_FIRST:"filter-focus-first",ALLOW_UNMATCHED:"allow-unmatched",POPUP_TARGET:"popup-target",POPUP_CLASSES:"popup-classes",OPTION_LIMIT:"option-limit",OBSERVE_SCROLL:"observe-scroll",OBSERVE_SCROLL_THRESHOLD:"observe-scroll-threshold",SYNC_POPUP_WIDTH:"sync-popup-width",OPEN:"open",MATCH_KEY:"match-key",FILTER_TEXT:"filter-text",DROPDOWN_ICON_OPEN:"data-forge-dropdown-icon-open"},fe={INPUT:ne.selectors.INPUT,DROPDOWN_ICON:"[data-forge-dropdown-icon],[data-forge-dropdown-icon],[forge-dropdown-icon],.forge-dropdown-icon",CLEAR_BUTTON:"[data-forge-autocomplete-clear],[forge-autocomplete-clear]"},ve={DEFAULT_DEBOUNCE_TIME:500,NUM_SKELETON_ITEMS:3},be={CHANGE:`${g}-change`,SELECT:`${g}-select`,SCROLLED_BOTTOM:`${g}-scrolled-bottom`},o={elementName:g,attributes:me,selectors:fe,numbers:ve,events:be},ue=(e=>(e.Default="default",e.Stateless="stateless",e))(ue||{});var O=class extends R{constructor(e){super(e);this.setInputElement()}setInputElement(){let e=N(this._component,o.selectors.INPUT,!1);return e.length&&(this._inputElement=e[0]),this._inputElement}setInputAttribute(e,t){this._inputElement.setAttribute(e,t)}addInputListener(e,t){this._inputElement.addEventListener(e,t)}removeInputListener(e,t){this._inputElement.removeEventListener(e,t)}initializeInputAccessibility(e){this._inputElement.setAttribute("autocomplete","off"),this._inputElement.setAttribute("role","combobox"),this._inputElement.setAttribute("aria-live","polite"),this._inputElement.setAttribute("aria-atomic","true"),this._inputElement.setAttribute("aria-haspopup","true"),this._inputElement.setAttribute("aria-expanded","false"),this._inputElement.setAttribute("aria-autocomplete","list")}isWrappingChipField(){return!!this._component.querySelector(F.elementName)}show(e,t){this._targetElement=this._getTargetElement(t),this._targetElement&&(this._listDropdown=new pe(this._targetElement,e),this._listDropdown.open(),this._inputElement.setAttribute("aria-expanded","true"),this._inputElement.setAttribute("aria-controls",`list-dropdown-popup-${e.id}`),this._tryToggleDropdownIconRotation(!0))}hide(e){if(!this._listDropdown)return;let{targetElement:t}=this._listDropdown.dropdownElement;t.removeEventListener(C.events.BLUR,e),this.setBusyVisibility(!1),this._tryToggleDropdownIconRotation(!1),this._inputElement.removeAttribute("aria-activedescendant"),this._inputElement.removeAttribute("aria-controls"),this._inputElement.setAttribute("aria-expanded","false"),this._listDropdown.close(),this._listDropdown=void 0}setBusyVisibility(e){var t;(t=this._listDropdown)==null||t.setBusyVisibility(e)}setDismissListener(e){if(!this._listDropdown||!this._listDropdown.dropdownElement)return;let t=this._listDropdown.dropdownElement;t.targetElement&&t.targetElement.addEventListener(C.events.BLUR,e)}focus(){window.requestAnimationFrame(()=>this._inputElement.focus())}setOptions(e){var t;(t=this._listDropdown)==null||t.setOptions(e)}appendOptions(e){var t;(t=this._listDropdown)==null||t.appendOptions(e)}setSelectedText(e){this._inputElement.value=e}getInputValue(){return this._inputElement.value}setInputValue(e){this._inputElement.value=e}selectInputValue(){window.requestAnimationFrame(()=>this._inputElement.select())}isFocusWithinPopup(e){return!this._listDropdown||!this._listDropdown.dropdownElement?!1:this._listDropdown.dropdownElement.contains(e)}hasFocus(){let e=M(this._component.ownerDocument);return e===this._inputElement||this.isFocusWithinPopup(e)}hasInputElement(){return!!this._inputElement}setDropdownIconListener(e,t){window.requestAnimationFrame(()=>{let i=this._component.querySelector(o.selectors.DROPDOWN_ICON);i&&i.addEventListener(e,t)})}removeDropdownIconListener(e,t){let i=this._component.querySelector(o.selectors.DROPDOWN_ICON);i&&i.removeEventListener(e,t)}setClearButtonListener(e,t){window.requestAnimationFrame(()=>{let i=this._component.querySelector(o.selectors.CLEAR_BUTTON);i&&i.addEventListener(e,t)})}removeClearButtonListener(e,t){let i=this._component.querySelector(o.selectors.CLEAR_BUTTON);i&&i.removeEventListener(e,t)}propagateKey(e){var t;(t=this._listDropdown)==null||t.handleKey(e)}updateActiveDescendant(e){!this._targetElement||A(this._inputElement,!!e,"aria-activedescendant",e)}getTargetElementWidth(e){return this._targetElement||(this._targetElement=this._getTargetElement(e)),this._targetElement.getBoundingClientRect().width}getPopupElement(){var e,t;return(t=(e=this._listDropdown)==null?void 0:e.dropdownElement)!=null?t:null}activateFirstOption(){var e;(e=this._listDropdown)==null||e.activateFirstOption()}activateSelectedOption(){var e;(e=this._listDropdown)==null||e.activateSelectedOption()}activateOptionByIndex(e){var t;(t=this._listDropdown)==null||t.activateOption(e)}getActiveOptionIndex(){var e,t;return(t=(e=this._listDropdown)==null?void 0:e.getActiveOptionIndex())!=null?t:null}clearActiveOption(){var e;(e=this._listDropdown)==null||e.clearActiveOption()}setSelectedOptions(e){if(this._listDropdown){let t=e.map(i=>i.value);this._listDropdown.setSelectedValues(t)}}queueDropdownPositionUpdate(){!this.getPopupElement()||window.requestAnimationFrame(()=>{let e=this.getPopupElement();e==null||e.position()})}_getTargetElement(e){return e?this._component.querySelector(e)||this._getDefaultTargetElement():this._getDefaultTargetElement()}_getDefaultTargetElement(){let e=this._component.querySelector("forge-text-field");if(e&&e.shadowRoot){let i=L(e,se.selectors.ROOT);if(i)return i}let t=this._component.querySelector("forge-chip-field");if(t&&t.shadowRoot){let i=L(t,F.selectors.ROOT);if(i)return i}return this._component.querySelector("input")||this._component}_tryToggleDropdownIconRotation(e){let t=this._component.querySelector(o.selectors.DROPDOWN_ICON);t&&A(t,e,o.attributes.DROPDOWN_ICON_OPEN)}};var de=(e=>(e[e.Option=0]="Option",e[e.Group=1]="Group",e))(de||{});function v(u,d){let e=u.some(i=>h(i)&&T(i)&&i.hasOwnProperty("options")&&(i.hasOwnProperty("text")||i.hasOwnProperty("builder"))),t=u.some(i=>h(i)&&T(i)&&i.hasOwnProperty("label")&&i.hasOwnProperty("value"));return e&&d===1||t&&d===0}function ce(u,d){return u.find(e=>e.value===d)}function b(u,d,e=null){return e?!(e in u.value)||!(e in d)?!1:w(u.value[e],d[e]):w(u.value,d)}var I=class extends ae{constructor(e){super();this._adapter=e;this._isInitialized=!1;this._isDropdownOpen=!1;this._mode="default";this._multiple=!1;this._debounce=o.numbers.DEFAULT_DEBOUNCE_TIME;this._allowUnmatched=!1;this._filterOnFocus=!0;this._filterFocusFirst=!0;this._options=[];this._filterText="";this._selectedOptions=[];this._values=[];this._pendingFilterPromises=[];this._matchKey=null;this._clickListener=t=>this._onClick(t),this._focusListener=()=>this._onFocus(),this._blurListener=t=>this._onBlur(t),this._keydownListener=t=>this._onKeydown(t),this._dropdownIconClickListener=t=>this._onDropdownIconClick(t),this._dropdownScrollEndListener=()=>this._onDropdownScrollEnd(),this._dropdownIconMouseDownListener=t=>this._onDropdownIconMouseDown(t),this._clearButtonListener=t=>this._onClear(t),this._dismissListener=()=>this._onDismiss(),this._activeChangeListener=t=>this._adapter.updateActiveDescendant(t),this._targetWidthCallback=()=>this._adapter.getTargetElementWidth(this._popupTarget),this._identifier=y()}async initialize(){if(!this._adapter.hasInputElement()&&!this._adapter.setInputElement())throw new Error("An input element is required as a child of the autocomplete component.");if(this._setInputListener(),this._setFilterCallback(),this._attachListeners(),this._initializeAccessibility(),this._values.length){if(!this._selectedOptions.length){try{await this._executeFilter()}catch(e){console.error(e)}this._updateSelectedOptions(this._values)}this._adapter.setSelectedText(this._getSelectedText())}this._isInitialized=!0}disconnect(){this._isInitialized&&(this._detachListeners(),this._isInitialized=!1),this._isDropdownOpen&&this._closeDropdown()}async forceFilter({preserveValue:e}){this._options=[],await this._executeFilter(!0,!0),e&&this._options.push(...this._selectedOptions),this._applyValue(this._values)}_attachListeners(){this._adapter.addInputListener("click",this._clickListener),this._adapter.addInputListener("focus",this._focusListener),this._adapter.addInputListener("blur",this._blurListener),this._adapter.addInputListener("input",this._inputListener),this._adapter.addInputListener("keydown",this._keydownListener),this._adapter.setDropdownIconListener("click",this._dropdownIconClickListener),this._adapter.setDropdownIconListener("mousedown",this._dropdownIconMouseDownListener),this._adapter.setClearButtonListener("click",this._clearButtonListener)}_detachListeners(){this._adapter.removeInputListener("click",this._clickListener),this._adapter.removeInputListener("focus",this._focusListener),this._adapter.removeInputListener("blur",this._blurListener),this._adapter.removeInputListener("input",this._inputListener),this._adapter.removeInputListener("keydown",this._keydownListener),this._adapter.removeDropdownIconListener("click",this._dropdownIconClickListener),this._adapter.removeDropdownIconListener("mousedown",this._dropdownIconMouseDownListener),this._adapter.removeClearButtonListener("click",this._clearButtonListener)}_setInputListener(){this._inputListener=e=>this._onInput(e)}_setFilterCallback(){this._filterFn=h(this._debounce)&&this._debounce>0?P(this._debounceFilter,this._debounce,!1):this._debounceFilter}_initializeAccessibility(){this._adapter.initializeInputAccessibility(this._identifier)}get _flatOptions(){return v(this._options,1)?this._options.reduce((e,t)=>e.concat(t.options),[]):this._options}_onClick(e){!this._isDropdownOpen&&this._filterOnFocus&&this._showDropdown()}_onDropdownIconMouseDown(e){e.preventDefault()}_onDropdownIconClick(e){this._isDropdownOpen?this._closeDropdown():(this._adapter.focus(),window.requestAnimationFrame(()=>this._showDropdown()))}_onClear(e){this._filterText="",this._clearValue(),this._adapter.setSelectedText(this._getSelectedText())}_onDropdownScrollEnd(){this._adapter.emitHostEvent(o.events.SCROLLED_BOTTOM)}_onFocus(){!this._isDropdownOpen&&this._adapter.getInputValue()&&!D.isMobile&&this._adapter.selectInputValue()}_onBlur(e){this._adapter.isFocusWithinPopup(e.relatedTarget)||this._applyBlur()}_applyBlur(){this._isDropdownOpen&&this._closeDropdown(),this._mode!=="stateless"&&(this._selectedOptions.length?this._adapter.setSelectedText(this._getSelectedText()):this._allowUnmatched||(this._filterText="",this._adapter.setSelectedText("")))}_onInput(e){this._selectedOptions.length&&!this._multiple&&(!this._adapter.getInputValue()||this._allowUnmatched)&&!this._adapter.isWrappingChipField()&&(this._selectedOptions=[],this._values=[],this._emitChangeEvent()),this._filterText=this._adapter.getInputValue(),this._filterFn()}async _debounceFilter({checkFocus:e=!0}={}){if(!e&&!this._adapter.hasFocus()){this._pendingFilterPromises=[],this._isDropdownOpen&&this._closeDropdown();return}let t=this._filterText,i=this._executeFilter();this._pendingFilterPromises.push(i),this._isDropdownOpen?this._adapter.setBusyVisibility(!0):this._showDropdown({filter:!1});try{await i}catch(n){this._pendingFilterPromises=[],this._isDropdownOpen&&this._closeDropdown();return}if(t===this._filterText)this._pendingFilterPromises=[],this._onFilterComplete();else{let n=this._pendingFilterPromises.indexOf(i);n!==-1&&this._pendingFilterPromises.splice(n,1)}}_onKeydown(e){switch(e.key){case"Tab":this._isDropdownOpen&&!this._multiple&&this._selectActiveOption(!1);break;case"Esc":case"Escape":this._isDropdownOpen&&(e.preventDefault(),e.stopPropagation(),this._closeDropdown());break;case"Down":case"ArrowDown":e.preventDefault(),this._isDropdownOpen?this._adapter.propagateKey(e.key):this._showDropdown({activateFirst:!0,activateSelected:!0});break;case"Up":case"ArrowUp":e.preventDefault(),this._isDropdownOpen&&this._adapter.propagateKey(e.key);break;case"Enter":case"Home":case"End":this._isDropdownOpen&&(e.key==="Enter"&&e.stopPropagation(),e.preventDefault(),this._adapter.propagateKey(e.key));break;case"Backspace":case"Delete":let t=e.target,i=this._adapter.getInputValue(),n=t.value.substring(t.selectionStart,t.selectionEnd)===t.value,l=i.length===1&&t.selectionEnd===1,c=i.length===1&&t.selectionEnd===0,_=!i||n||l||c;!this._adapter.isWrappingChipField()&&_&&!this._multiple&&this._values.length&&this._clearValue();break}}_executeFilter(e=!0,t=!1){if(!this._filter||typeof this._filter!="function")throw new Error('A filter callback must be provided. Did you set the "filter" property?');let i=this._filter,n=e?this._filterText:"",l=t?this._getValue():null;return new Promise((c,_)=>Promise.resolve(i(n,l)).then(r=>{this._options=r,c(this._options)}).catch(r=>_(`An unexpected error occurred while filtering: ${r}`)))}_onFilterComplete(){if(!this._adapter.hasFocus()){this._isDropdownOpen&&this._closeDropdown();return}if(this._options.length){let e=this._allowUnmatched&&!this._selectedOptions.length;this._dropdownReady({userTriggered:e}),this._filterFocusFirst&&this._filterText&&this._adapter.activateFirstOption()}else this._closeDropdown()}_clearValue(){this._selectedOptions=[],this._values=[],this._isDropdownOpen&&(this._adapter.setSelectedOptions([]),this._adapter.clearActiveOption()),this._emitChangeEvent()}async _showDropdown({filter:e=!0,userTriggered:t=!0,activateFirst:i=!1,activateSelected:n=!1}={}){let l=this._allowUnmatched&&!this._selectedOptions.length;this._isDropdownOpen=!0;let c;if(this._optionBuilder){let r=this._optionBuilder;c=(m,_e)=>r(m,this._filterText,_e)}let _={options:this._options,multiple:this._multiple,selectedValues:[...this._values],id:`forge-autocomplete-${this._identifier}`,asyncStyle:"skeleton",optionLimit:this._optionLimit,popupClasses:this._popupClasses,headerBuilder:this._popupHeaderBuilder,footerBuilder:this._popupFooterBuilder,transform:r=>{if(this._filterText){let m=$(r,this._filterText);if(m)return m}return r},allowBusy:!0,optionBuilder:c,syncWidth:this._syncPopupWidth,observeScroll:this._observeScroll,observeScrollThreshold:this._observeScrollThreshold,scrollEndListener:this._dropdownScrollEndListener,activeChangeCallback:this._activeChangeListener,targetWidthCallback:this._targetWidthCallback,selectCallback:r=>this._onSelect(r),closeCallback:()=>this._closeDropdown()};if(this._adapter.show(_,this._popupTarget),this._adapter.toggleHostAttribute(o.attributes.OPEN,this._isDropdownOpen),e){this._options.length&&this._adapter.setBusyVisibility(!0);try{await this._executeFilter(l)}catch(r){console.error(r)}this._updateSelectedOptions(this._values)}this._pendingFilterPromises.length||this._dropdownReady({userTriggered:t,activateFirst:i,activateSelected:n})}_dropdownReady({userTriggered:e=!0,activateFirst:t=!1,activateSelected:i=!1}={}){if(!this._isDropdownOpen||!this._options.length||e&&!this._adapter.hasFocus()){this._closeDropdown();return}this._sortSelectedOptions(),this._adapter.setBusyVisibility(!1),this._adapter.setOptions(this._options),this._adapter.setSelectedOptions(this._selectedOptions),this._adapter.setDismissListener(this._dismissListener),i&&this._selectedOptions.length?this._adapter.activateSelectedOption():t&&this._adapter.activateFirstOption()}_closeDropdown(){this._multiple&&(this._filterText=""),this._isDropdownOpen=!1,this._adapter.hide(this._dismissListener),this._sortSelectedOptions(),this._adapter.toggleHostAttribute(o.attributes.OPEN,this._isDropdownOpen)}_sortSelectedOptions(){if(this._multiple&&this._selectedOptions.length&&v(this._options,0)){let e=[],t=[];this._options.forEach(i=>{this._selectedOptions.find(n=>b(n,i.value,this._matchKey))?e.push(i):t.push(i)}),this._options=[...e,...t]}}async _onSelect(e,t=!0){if(this._valueChanging)return;if(this._mode==="stateless"){let n={value:e};this._adapter.emitHostEvent(o.events.SELECT,n,!0,!0)&&(this._filterText="",this._multiple||this._closeDropdown());return}let i=()=>{let l=this._flatOptions.find(r=>b(r,e,this._matchKey)),c=l?l.value:"",_=l?l.label:"";if(this._multiple){let r=ce(this._selectedOptions,c);if(r){let m=this._selectedOptions.indexOf(r);this._selectedOptions.splice(m,1)}else this._selectedOptions.push(l)}else h(c)?(this._selectedOptions[0]=l,this._filterText=_):(this._selectedOptions=[],this._filterText="");this._isDropdownOpen&&this._adapter.setSelectedOptions(this._selectedOptions),this._values=this._selectedOptions.map(r=>r.value),this._adapter.setSelectedText(this._getSelectedText()),!D.isMobile&&t&&this._adapter.selectInputValue(),this._emitChangeEvent(),this._tryUpdateDropdownPosition()};this._isDropdownOpen&&!this._multiple&&this._closeDropdown(),typeof this._beforeValueChange=="function"?(this._valueChanging=Promise.resolve(this._beforeValueChange.call(null,e,this._matchKey)),await this._valueChanging?i():this._tryUpdateDropdownPosition(),this._valueChanging=void 0):i()}_selectActiveOption(e=!0){let t=this._adapter.getActiveOptionIndex();if(typeof t=="number"&&t>=0){let i=this._flatOptions[t];i&&this._onSelect(i.value,e)}}_emitChangeEvent(){this._adapter.emitHostEvent(o.events.CHANGE,this._getValue(),!0)}_tryUpdateDropdownPosition(){this._isDropdownOpen&&this._adapter.queueDropdownPositionUpdate()}_getValue(){return this._values?this._values.length?this._multiple?[...this._values]:this._values[0]:this._multiple?[]:null:null}_getSelectedText(){var e,t;return this._adapter.isWrappingChipField()?"":this._selectedTextBuilder?this._selectedTextBuilder(this._selectedOptions):this._multiple?this._values.length?this._values.length===1?(t=(e=this._selectedOptions[0])==null?void 0:e.label)!=null?t:"":`${this._values.length} options selected`:"":this._selectedOptions.filter(i=>i&&i.label).map(i=>i.label).join(" ").trim()}_onDismiss(){this._closeDropdown()}async _applyValue(e){let t=[];this._selectedOptions=[],Array.isArray(e)?t=e:t=h(e)?[e]:[],!this._multiple&&t.length>1&&(t=[t[0]]),v(t,0)?(this._values=t.map(n=>n.value),this._selectedOptions=t):this._values=t;let i=this._flatOptions;if(t.length&&i.length&&this._updateSelectedOptions(t),this._values.length&&!this._selectedOptions.length&&!!this._filter&&this._isInitialized){try{await this._executeFilter(!1,!0)}catch(n){console.error(n)}this._updateSelectedOptions(this._values)}this._multiple?this._filterText="":this._filterText=this._selectedOptions.length?this._selectedOptions[0].label:"",this._isInitialized&&this._adapter.setSelectedText(this._getSelectedText()),this._isDropdownOpen&&this._adapter.setSelectedOptions(this._selectedOptions)}_updateSelectedOptions(e){let t=[...this._flatOptions,...this._selectedOptions];if(this._selectedOptions.length&&(this._selectedOptions=[]),v(e,0))for(let i of e){let n=t.find(l=>b(l,i.value,this._matchKey));n?this._selectedOptions.push(n):this._selectedOptions.push(i)}else for(let i of e){let n=t.find(l=>b(l,i,this._matchKey));n?this._selectedOptions.push(n):this._allowUnmatched&&this._selectedOptions.push({label:i,value:i})}}get mode(){return this._mode}set mode(e){this._mode!==e&&(this._mode=e,this._mode==="stateless"&&(this._selectedOptions=[],this._isDropdownOpen&&this._closeDropdown()),this._adapter.setHostAttribute(o.attributes.MODE,this._mode))}get multiple(){return this._multiple}set multiple(e){this._multiple!==e&&(this._multiple=e,this._adapter.setHostAttribute(o.attributes.MULTIPLE,h(this._multiple)?this._multiple.toString():""))}get value(){return this._getValue()}set value(e){let t=[];e==null?t=[]:Array.isArray(e)?t=JSON.parse(JSON.stringify(e)):x(e)?t=[e]:t=[JSON.parse(JSON.stringify(e))],(t.length!==this._values.length||t.some(n=>!this._values.includes(n)))&&this._applyValue(e)}get filterOnFocus(){return this._filterOnFocus}set filterOnFocus(e){this._filterOnFocus!==e&&(this._filterOnFocus=e,this._adapter.setHostAttribute(o.attributes.FILTER_ON_FOCUS,h(this._filterOnFocus)?this._filterOnFocus.toString():""))}get filterFocusFirst(){return this._filterFocusFirst}set filterFocusFirst(e){this._filterFocusFirst!==e&&(this._filterFocusFirst=e,this._adapter.toggleHostAttribute(o.attributes.FILTER_FOCUS_FIRST,this._filterFocusFirst))}get allowUnmatched(){return this._allowUnmatched}set allowUnmatched(e){this._allowUnmatched!==e&&(this._allowUnmatched=e,h(this._allowUnmatched)&&this._adapter.setHostAttribute(o.attributes.ALLOW_UNMATCHED,this._allowUnmatched.toString()))}get matchKey(){return this._matchKey}set matchKey(e){this._matchKey!==e&&(this._matchKey=e)}get popupTarget(){return this._popupTarget}set popupTarget(e){this._popupTarget!==e&&(this._popupTarget=e)}get filterText(){return this._filterText}set filterText(e){this._filterText!==e&&(this._filterText=this._allowUnmatched?e:"",this._isInitialized&&this._allowUnmatched&&(this._adapter.setInputValue(this._filterText),this._isDropdownOpen&&this._debounceFilter({checkFocus:!1})))}get popupClasses(){return Array.isArray(this._popupClasses)?[...this._popupClasses]:[this._popupClasses]}set popupClasses(e){this._popupClasses!==e&&(this._popupClasses=Array.isArray(e)?[...e]:[e])}set popupHeaderBuilder(e){this._popupHeaderBuilder=e}set popupFooterBuilder(e){this._popupFooterBuilder=e}get syncPopupWidth(){return this._syncPopupWidth}set syncPopupWidth(e){this._syncPopupWidth!==e&&(this._syncPopupWidth=e)}get optionLimit(){return this._optionLimit}set optionLimit(e){this._optionLimit!==e&&(this._optionLimit=e)}get debounce(){return this._debounce}set debounce(e){this._debounce!==e&&(this._debounce=e,this._isInitialized&&this._setFilterCallback(),this._adapter.setHostAttribute(o.attributes.DEBOUNCE,h(this._debounce)?this._debounce.toString():""))}get optionBuilder(){return this._optionBuilder}set optionBuilder(e){this._optionBuilder=e}get filter(){return this._filter}set filter(e){this._filter!==e&&(this._filter=e,this._isInitialized&&this._values.length&&!this._flatOptions.length&&!!this._filter&&this._executeFilter().then(()=>{this._updateSelectedOptions(this._values),this._adapter.setSelectedText(this._getSelectedText())}))}get selectedTextBuilder(){return this._selectedTextBuilder}set selectedTextBuilder(e){this._selectedTextBuilder=e,this._selectedOptions.length&&this._adapter.setSelectedText(this._getSelectedText())}get observeScroll(){return this._observeScroll}set observeScroll(e){this._observeScroll=e}get observeScrollThreshold(){return this._observeScrollThreshold}set observeScrollThreshold(e){this._observeScrollThreshold=e}appendOptions(e){!this._isDropdownOpen||(this._options=[...this._options,...e],this._adapter.appendOptions(e))}get isInitialized(){return this._isInitialized}get open(){return this._isDropdownOpen}set open(e){this._isDropdownOpen!==e&&(e?this._showDropdown({userTriggered:!1}):this._closeDropdown())}get beforeValueChange(){return this._beforeValueChange}set beforeValueChange(e){e!==this._beforeValueChange&&(this._beforeValueChange=e)}get popupElement(){return this._adapter.getPopupElement()}};var ge="<template><slot></slot></template>",Oe=":host{display:block}:host([hidden]){display:none}",s=class extends te{constructor(){super();Y.define([W,q,K]),U(this,ge,Oe),this._foundation=new I(new O(this))}static get observedAttributes(){return[o.attributes.MODE,o.attributes.MULTIPLE,o.attributes.DEBOUNCE,o.attributes.FILTER_ON_FOCUS,o.attributes.FILTER_FOCUS_FIRST,o.attributes.ALLOW_UNMATCHED,o.attributes.POPUP_TARGET,o.attributes.POPUP_CLASSES,o.attributes.OBSERVE_SCROLL,o.attributes.OBSERVE_SCROLL_THRESHOLD,o.attributes.OPTION_LIMIT,o.attributes.SYNC_POPUP_WIDTH,o.attributes.OPEN,o.attributes.MATCH_KEY,o.attributes.FILTER_TEXT]}connectedCallback(){this.querySelector(o.selectors.INPUT)?this._foundation.initialize():B(this,o.selectors.INPUT).then(()=>this._foundation.initialize())}disconnectedCallback(){this._foundation.disconnect()}attributeChangedCallback(e,t,i){switch(super.attributeChangedCallback(e,t,i),e){case o.attributes.MODE:this.mode=i;break;case o.attributes.MULTIPLE:this.multiple=f(i);break;case o.attributes.DEBOUNCE:this.debounce=S(i);break;case o.attributes.FILTER_ON_FOCUS:this.filterOnFocus=f(i);break;case o.attributes.FILTER_FOCUS_FIRST:this.filterFocusFirst=f(i);break;case o.attributes.ALLOW_UNMATCHED:this.allowUnmatched=f(i);break;case o.attributes.POPUP_TARGET:this.popupTarget=i;break;case o.attributes.OPEN:this.open=f(i);break;case o.attributes.MATCH_KEY:this.matchKey=i;break;case o.attributes.FILTER_TEXT:this.filterText=i;break}}appendOptions(e){this._foundation.appendOptions(e)}openDropdown(){this.open=!0}closeDropdown(){this.open=!1}forceFilter(e={preserveValue:!1}){this._foundation.forceFilter(e)}};p([a()],s.prototype,"mode",2),p([a()],s.prototype,"multiple",2),p([a()],s.prototype,"value",2),p([a()],s.prototype,"debounce",2),p([a()],s.prototype,"filterOnFocus",2),p([a()],s.prototype,"filterFocusFirst",2),p([a()],s.prototype,"allowUnmatched",2),p([a()],s.prototype,"popupTarget",2),p([a()],s.prototype,"filterText",2),p([a()],s.prototype,"optionBuilder",2),p([a()],s.prototype,"filter",2),p([a()],s.prototype,"selectedTextBuilder",2),p([a()],s.prototype,"open",2),p([a()],s.prototype,"matchKey",2),p([a({set:!1})],s.prototype,"isInitialized",2),p([a({set:!1})],s.prototype,"popupElement",2),p([a()],s.prototype,"beforeValueChange",2),s=p([H({name:o.elementName,dependencies:[re,ie,ee,Z,j,oe,Q,X]})],s);var he=class extends z{constructor(e){super(e)}_build(){let e=document.createElement(o.elementName);return this._attachTextField(e),e}get textFieldDelegate(){return this._textFieldDelegate}get value(){return this._element.value}set value(e){this._element.value=e}get disabled(){return this._textFieldDelegate.inputElement.disabled}set disabled(e){this._textFieldDelegate.inputElement.disabled=e}get invalid(){return this._textFieldDelegate.invalid||!1}set invalid(e){this._textFieldDelegate.invalid=e}onChange(e){this._element.addEventListener(o.events.CHANGE,t=>e(t.detail))}onFocus(e){this._textFieldDelegate.inputElement.addEventListener("focus",t=>e(t))}onBlur(e){this._textFieldDelegate.inputElement.addEventListener("blur",t=>e(t))}_attachTextField(e){var i,n,l,c,_,r;let t={props:E({},(n=(i=this._config.options)==null?void 0:i.textFieldDelegateConfig)==null?void 0:n.props),options:E({},(c=(l=this._config.options)==null?void 0:l.textFieldDelegateConfig)==null?void 0:c.options)};t.options||(t.options={}),((_=this._config.options)==null?void 0:_.useDropdownIcon)!==!1&&!((r=t.options)!=null&&r.trailingElement)&&(t.options.trailingElement=this._createDropdownIconElement()),this._textFieldDelegate=new le(t),e.appendChild(this._textFieldDelegate.element)}_createDropdownIconElement(){let e={props:{slot:"trailing",name:"arrow_drop_down"},options:{attributes:{"forge-dropdown-icon":""}}};return new J(e).element}};function Gt(){k(s)}export{o as a,ue as b,O as c,de as d,v as e,ce as f,b as g,I as h,s as i,he as j,Gt as k};
|
|
7
|
+
//# sourceMappingURL=chunk.6BTPAMJ7.js.map
|