@politiet/sheriff-web-components 2.12.0 → 2.13.1
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 +224 -8
- package/dist/frameworks/vue.d.ts +79 -30
- package/dist/frameworks/vue.d.ts.map +1 -1
- package/dist/mixins/sds-dialog-target-mixin.d.ts.map +1 -1
- package/dist/mixins/sds-dialog-target-mixin.js +10 -0
- package/dist/mixins/sds-dialog-target-mixin.js.map +1 -1
- package/dist/sds-alert/sds-alert.component.js +3 -3
- package/dist/sds-alert/sds-alert.component.js.map +1 -1
- package/dist/sds-alert/sds-alert.styles.d.ts.map +1 -1
- package/dist/sds-alert/sds-alert.styles.js +0 -6
- package/dist/sds-alert/sds-alert.styles.js.map +1 -1
- package/dist/sds-button/sds-button.component.d.ts +1 -0
- package/dist/sds-button/sds-button.component.d.ts.map +1 -1
- package/dist/sds-button/sds-button.component.js.map +1 -1
- package/dist/sds-button/sds-button.styles.d.ts.map +1 -1
- package/dist/sds-button/sds-button.styles.js +7 -2
- package/dist/sds-button/sds-button.styles.js.map +1 -1
- package/dist/sds-details/sds-details.styles.d.ts.map +1 -1
- package/dist/sds-details/sds-details.styles.js +4 -2
- package/dist/sds-details/sds-details.styles.js.map +1 -1
- package/dist/sds-dialog/sds-dialog.styles.d.ts.map +1 -1
- package/dist/sds-dialog/sds-dialog.styles.js +2 -0
- package/dist/sds-dialog/sds-dialog.styles.js.map +1 -1
- package/dist/sds-icon/sds-icon-loader.d.ts +1 -0
- package/dist/sds-icon/sds-icon-loader.d.ts.map +1 -1
- package/dist/sds-icon/sds-icon-loader.js +21 -14
- package/dist/sds-icon/sds-icon-loader.js.map +1 -1
- package/dist/sds-radio/sds-radio.d.ts +53 -1
- package/dist/sds-radio/sds-radio.d.ts.map +1 -1
- package/dist/sds-radio/sds-radio.js +218 -41
- package/dist/sds-radio/sds-radio.js.map +1 -1
- package/dist/sds-radio/sds-radio.styles.js +36 -36
- package/dist/sds-radio/sds-radio.styles.js.map +1 -1
- package/dist/sds-radio-group/sds-radio-group.d.ts +4 -2
- package/dist/sds-radio-group/sds-radio-group.d.ts.map +1 -1
- package/dist/sds-radio-group/sds-radio-group.js +10 -3
- package/dist/sds-radio-group/sds-radio-group.js.map +1 -1
- package/dist/sds-text/sds-text.component.d.ts +2 -0
- package/dist/sds-text/sds-text.component.d.ts.map +1 -1
- package/dist/sds-text/sds-text.component.js +4 -0
- package/dist/sds-text/sds-text.component.js.map +1 -1
- package/dist/sds-text/sds-text.styles.d.ts.map +1 -1
- package/dist/sds-text/sds-text.styles.js +4 -0
- package/dist/sds-text/sds-text.styles.js.map +1 -1
- package/dist/sds-textarea/sds-textarea.styles.d.ts.map +1 -1
- package/dist/sds-textarea/sds-textarea.styles.js +2 -0
- package/dist/sds-textarea/sds-textarea.styles.js.map +1 -1
- package/dist/shared/assets/positioning.js +1 -1
- package/dist/sheriff-web-components.js +206 -194
- package/dist/skill/SKILL.md +127 -41
- package/dist/skill/references/components.md +247 -35
- package/dist/skill/references/react-wrappers.md +34 -9
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +78 -36
- package/web-types.json +163 -45
package/custom-elements.json
CHANGED
|
@@ -3116,7 +3116,13 @@
|
|
|
3116
3116
|
"kind": "field",
|
|
3117
3117
|
"name": "cache",
|
|
3118
3118
|
"privacy": "private",
|
|
3119
|
-
"default": "new Map<string, string
|
|
3119
|
+
"default": "new Map<string, string>()"
|
|
3120
|
+
},
|
|
3121
|
+
{
|
|
3122
|
+
"kind": "field",
|
|
3123
|
+
"name": "pending",
|
|
3124
|
+
"privacy": "private",
|
|
3125
|
+
"default": "new Map<string, Promise<string>>()"
|
|
3120
3126
|
},
|
|
3121
3127
|
{
|
|
3122
3128
|
"kind": "field",
|
|
@@ -4268,6 +4274,16 @@
|
|
|
4268
4274
|
"description": "",
|
|
4269
4275
|
"name": "SDSRadio",
|
|
4270
4276
|
"members": [
|
|
4277
|
+
{
|
|
4278
|
+
"kind": "field",
|
|
4279
|
+
"name": "shadowRootOptions",
|
|
4280
|
+
"type": {
|
|
4281
|
+
"text": "ShadowRootInit"
|
|
4282
|
+
},
|
|
4283
|
+
"static": true,
|
|
4284
|
+
"default": "{ ...LitElement.shadowRootOptions, delegatesFocus: false, }",
|
|
4285
|
+
"description": "The host carries `role=\"radio\"` and must receive focus itself, so focus must not be\ndelegated into the shadow root the way SDSFormControlMixin sets up by default."
|
|
4286
|
+
},
|
|
4271
4287
|
{
|
|
4272
4288
|
"kind": "field",
|
|
4273
4289
|
"name": "required",
|
|
@@ -4370,6 +4386,14 @@
|
|
|
4370
4386
|
"text": "HTMLInputElement"
|
|
4371
4387
|
}
|
|
4372
4388
|
},
|
|
4389
|
+
{
|
|
4390
|
+
"kind": "field",
|
|
4391
|
+
"name": "_helpTextElement",
|
|
4392
|
+
"type": {
|
|
4393
|
+
"text": "HTMLElement | undefined"
|
|
4394
|
+
},
|
|
4395
|
+
"privacy": "private"
|
|
4396
|
+
},
|
|
4373
4397
|
{
|
|
4374
4398
|
"kind": "field",
|
|
4375
4399
|
"name": "_hasSlottedLabel",
|
|
@@ -4379,6 +4403,24 @@
|
|
|
4379
4403
|
"privacy": "private",
|
|
4380
4404
|
"default": "false"
|
|
4381
4405
|
},
|
|
4406
|
+
{
|
|
4407
|
+
"kind": "field",
|
|
4408
|
+
"name": "_slottedLabelText",
|
|
4409
|
+
"type": {
|
|
4410
|
+
"text": "string"
|
|
4411
|
+
},
|
|
4412
|
+
"privacy": "private",
|
|
4413
|
+
"default": "''"
|
|
4414
|
+
},
|
|
4415
|
+
{
|
|
4416
|
+
"kind": "field",
|
|
4417
|
+
"name": "_rootNode",
|
|
4418
|
+
"type": {
|
|
4419
|
+
"text": "Document | ShadowRoot | null"
|
|
4420
|
+
},
|
|
4421
|
+
"privacy": "private",
|
|
4422
|
+
"default": "null"
|
|
4423
|
+
},
|
|
4382
4424
|
{
|
|
4383
4425
|
"kind": "field",
|
|
4384
4426
|
"name": "_disabled",
|
|
@@ -4424,6 +4466,15 @@
|
|
|
4424
4466
|
"privacy": "private",
|
|
4425
4467
|
"default": "false"
|
|
4426
4468
|
},
|
|
4469
|
+
{
|
|
4470
|
+
"kind": "field",
|
|
4471
|
+
"name": "_pendingGroupSync",
|
|
4472
|
+
"type": {
|
|
4473
|
+
"text": "boolean"
|
|
4474
|
+
},
|
|
4475
|
+
"privacy": "private",
|
|
4476
|
+
"default": "false"
|
|
4477
|
+
},
|
|
4427
4478
|
{
|
|
4428
4479
|
"kind": "method",
|
|
4429
4480
|
"name": "_getGroupRadios",
|
|
@@ -4432,34 +4483,119 @@
|
|
|
4432
4483
|
"type": {
|
|
4433
4484
|
"text": "SDSRadio[]"
|
|
4434
4485
|
}
|
|
4435
|
-
}
|
|
4486
|
+
},
|
|
4487
|
+
"parameters": [
|
|
4488
|
+
{
|
|
4489
|
+
"name": "name",
|
|
4490
|
+
"default": "this.name"
|
|
4491
|
+
},
|
|
4492
|
+
{
|
|
4493
|
+
"name": "root",
|
|
4494
|
+
"default": "this._rootNode ?? (this.getRootNode() as Document | ShadowRoot)"
|
|
4495
|
+
}
|
|
4496
|
+
],
|
|
4497
|
+
"description": "Matches on the `name` property rather than the reflected attribute, so radios created\nimperatively are found before Lit has reflected `name` back out."
|
|
4436
4498
|
},
|
|
4437
4499
|
{
|
|
4438
4500
|
"kind": "method",
|
|
4439
|
-
"name": "
|
|
4440
|
-
"privacy": "private"
|
|
4501
|
+
"name": "_syncHostAria",
|
|
4502
|
+
"privacy": "private",
|
|
4503
|
+
"description": "Mirrors state onto the host, which is the radio in the accessibility tree.\n\nWritten as attributes rather than through ElementInternals: internals ARIA is\nIDL-only, so assistive technology sees it but axe, Playwright and Testing Library —\nwhich all resolve role and name from attributes — do not."
|
|
4441
4504
|
},
|
|
4442
4505
|
{
|
|
4443
4506
|
"kind": "field",
|
|
4444
|
-
"name": "
|
|
4507
|
+
"name": "_supportsAriaElementReferences",
|
|
4445
4508
|
"privacy": "private",
|
|
4509
|
+
"static": true,
|
|
4446
4510
|
"readonly": true
|
|
4447
4511
|
},
|
|
4512
|
+
{
|
|
4513
|
+
"kind": "field",
|
|
4514
|
+
"name": "_handleMouseDown",
|
|
4515
|
+
"privacy": "private",
|
|
4516
|
+
"readonly": true,
|
|
4517
|
+
"description": "Not every browser focuses a tabindex host on click, and the host must hold focus."
|
|
4518
|
+
},
|
|
4519
|
+
{
|
|
4520
|
+
"kind": "field",
|
|
4521
|
+
"name": "_handleClick",
|
|
4522
|
+
"privacy": "private",
|
|
4523
|
+
"readonly": true,
|
|
4524
|
+
"description": "The label is deliberately not associated with the inert input — a `for` would make\ngetByLabel and friends resolve to an unclickable element — so selection is driven here."
|
|
4525
|
+
},
|
|
4448
4526
|
{
|
|
4449
4527
|
"kind": "method",
|
|
4450
|
-
"name": "
|
|
4528
|
+
"name": "_select",
|
|
4529
|
+
"privacy": "private",
|
|
4530
|
+
"description": "Selection never goes through the inner input: its click is composed, so it would\nretarget to the host and every click would be seen twice from the outside.\nLike a native radio, this only fires `change` when the checkedness actually changes."
|
|
4451
4531
|
},
|
|
4452
4532
|
{
|
|
4453
4533
|
"kind": "method",
|
|
4454
|
-
"name": "
|
|
4534
|
+
"name": "_updateGroupPositions",
|
|
4535
|
+
"privacy": "private",
|
|
4536
|
+
"parameters": [
|
|
4537
|
+
{
|
|
4538
|
+
"name": "members",
|
|
4539
|
+
"type": {
|
|
4540
|
+
"text": "SDSRadio[]"
|
|
4541
|
+
}
|
|
4542
|
+
}
|
|
4543
|
+
],
|
|
4544
|
+
"description": "A radio group does not cross shadow roots, so the browser sees each radio as a set of\none. State the position explicitly across the whole name-group instead."
|
|
4545
|
+
},
|
|
4546
|
+
{
|
|
4547
|
+
"kind": "method",
|
|
4548
|
+
"name": "_updateGroupTabStops",
|
|
4549
|
+
"privacy": "private",
|
|
4550
|
+
"parameters": [
|
|
4551
|
+
{
|
|
4552
|
+
"name": "members",
|
|
4553
|
+
"type": {
|
|
4554
|
+
"text": "SDSRadio[]"
|
|
4555
|
+
}
|
|
4556
|
+
}
|
|
4557
|
+
],
|
|
4558
|
+
"description": "A radio group is one tab stop: the checked option, or the first enabled one."
|
|
4559
|
+
},
|
|
4560
|
+
{
|
|
4561
|
+
"kind": "method",
|
|
4562
|
+
"name": "_syncGroup",
|
|
4563
|
+
"privacy": "private",
|
|
4564
|
+
"parameters": [
|
|
4565
|
+
{
|
|
4566
|
+
"name": "members",
|
|
4567
|
+
"type": {
|
|
4568
|
+
"text": "SDSRadio[]"
|
|
4569
|
+
}
|
|
4570
|
+
}
|
|
4571
|
+
]
|
|
4572
|
+
},
|
|
4573
|
+
{
|
|
4574
|
+
"kind": "method",
|
|
4575
|
+
"name": "_scheduleGroupSync",
|
|
4576
|
+
"privacy": "private",
|
|
4577
|
+
"description": "Conditional rendering and reordering both run through disconnect/connect, while\nfirstUpdated only ever fires once. Membership is recomputed from the microtask so the\nsurrounding batch of insertions has settled — and so every member has been upgraded,\nsince a non-upgraded element matches the selector but has no `name`."
|
|
4578
|
+
},
|
|
4579
|
+
{
|
|
4580
|
+
"kind": "method",
|
|
4581
|
+
"name": "_updateGroupValidation",
|
|
4455
4582
|
"privacy": "private"
|
|
4456
4583
|
},
|
|
4457
4584
|
{
|
|
4458
4585
|
"kind": "field",
|
|
4459
|
-
"name": "
|
|
4586
|
+
"name": "_handleKeydown",
|
|
4460
4587
|
"privacy": "private",
|
|
4461
4588
|
"readonly": true
|
|
4462
4589
|
},
|
|
4590
|
+
{
|
|
4591
|
+
"kind": "method",
|
|
4592
|
+
"name": "formResetCallback"
|
|
4593
|
+
},
|
|
4594
|
+
{
|
|
4595
|
+
"kind": "method",
|
|
4596
|
+
"name": "_uncheckSiblings",
|
|
4597
|
+
"privacy": "private"
|
|
4598
|
+
},
|
|
4463
4599
|
{
|
|
4464
4600
|
"kind": "field",
|
|
4465
4601
|
"name": "_handleFocus",
|
|
@@ -4472,6 +4608,42 @@
|
|
|
4472
4608
|
"privacy": "private",
|
|
4473
4609
|
"readonly": true
|
|
4474
4610
|
},
|
|
4611
|
+
{
|
|
4612
|
+
"kind": "method",
|
|
4613
|
+
"name": "focus",
|
|
4614
|
+
"return": {
|
|
4615
|
+
"type": {
|
|
4616
|
+
"text": "void"
|
|
4617
|
+
}
|
|
4618
|
+
},
|
|
4619
|
+
"parameters": [
|
|
4620
|
+
{
|
|
4621
|
+
"name": "options",
|
|
4622
|
+
"optional": true,
|
|
4623
|
+
"type": {
|
|
4624
|
+
"text": "FocusOptions"
|
|
4625
|
+
}
|
|
4626
|
+
}
|
|
4627
|
+
]
|
|
4628
|
+
},
|
|
4629
|
+
{
|
|
4630
|
+
"kind": "method",
|
|
4631
|
+
"name": "blur",
|
|
4632
|
+
"return": {
|
|
4633
|
+
"type": {
|
|
4634
|
+
"text": "void"
|
|
4635
|
+
}
|
|
4636
|
+
}
|
|
4637
|
+
},
|
|
4638
|
+
{
|
|
4639
|
+
"kind": "method",
|
|
4640
|
+
"name": "click",
|
|
4641
|
+
"return": {
|
|
4642
|
+
"type": {
|
|
4643
|
+
"text": "void"
|
|
4644
|
+
}
|
|
4645
|
+
}
|
|
4646
|
+
},
|
|
4475
4647
|
{
|
|
4476
4648
|
"kind": "field",
|
|
4477
4649
|
"name": "type",
|
|
@@ -6161,6 +6333,16 @@
|
|
|
6161
6333
|
"attribute": "strong",
|
|
6162
6334
|
"reflects": true
|
|
6163
6335
|
},
|
|
6336
|
+
{
|
|
6337
|
+
"kind": "field",
|
|
6338
|
+
"name": "subtle",
|
|
6339
|
+
"type": {
|
|
6340
|
+
"text": "boolean"
|
|
6341
|
+
},
|
|
6342
|
+
"default": "false",
|
|
6343
|
+
"attribute": "subtle",
|
|
6344
|
+
"reflects": true
|
|
6345
|
+
},
|
|
6164
6346
|
{
|
|
6165
6347
|
"kind": "field",
|
|
6166
6348
|
"name": "tall",
|
|
@@ -6189,6 +6371,14 @@
|
|
|
6189
6371
|
"default": "false",
|
|
6190
6372
|
"fieldName": "strong"
|
|
6191
6373
|
},
|
|
6374
|
+
{
|
|
6375
|
+
"name": "subtle",
|
|
6376
|
+
"type": {
|
|
6377
|
+
"text": "boolean"
|
|
6378
|
+
},
|
|
6379
|
+
"default": "false",
|
|
6380
|
+
"fieldName": "subtle"
|
|
6381
|
+
},
|
|
6192
6382
|
{
|
|
6193
6383
|
"name": "tall",
|
|
6194
6384
|
"type": {
|
|
@@ -6252,6 +6442,18 @@
|
|
|
6252
6442
|
"module": "src/sds-text/sds-text.component.ts"
|
|
6253
6443
|
}
|
|
6254
6444
|
},
|
|
6445
|
+
{
|
|
6446
|
+
"name": "subtle",
|
|
6447
|
+
"type": {
|
|
6448
|
+
"text": "boolean"
|
|
6449
|
+
},
|
|
6450
|
+
"default": "false",
|
|
6451
|
+
"fieldName": "subtle",
|
|
6452
|
+
"inheritedFrom": {
|
|
6453
|
+
"name": "SDSTextComponent",
|
|
6454
|
+
"module": "src/sds-text/sds-text.component.ts"
|
|
6455
|
+
}
|
|
6456
|
+
},
|
|
6255
6457
|
{
|
|
6256
6458
|
"name": "tall",
|
|
6257
6459
|
"type": {
|
|
@@ -6294,6 +6496,20 @@
|
|
|
6294
6496
|
"module": "src/sds-text/sds-text.component.ts"
|
|
6295
6497
|
}
|
|
6296
6498
|
},
|
|
6499
|
+
{
|
|
6500
|
+
"kind": "field",
|
|
6501
|
+
"name": "subtle",
|
|
6502
|
+
"type": {
|
|
6503
|
+
"text": "boolean"
|
|
6504
|
+
},
|
|
6505
|
+
"default": "false",
|
|
6506
|
+
"attribute": "subtle",
|
|
6507
|
+
"reflects": true,
|
|
6508
|
+
"inheritedFrom": {
|
|
6509
|
+
"name": "SDSTextComponent",
|
|
6510
|
+
"module": "src/sds-text/sds-text.component.ts"
|
|
6511
|
+
}
|
|
6512
|
+
},
|
|
6297
6513
|
{
|
|
6298
6514
|
"kind": "field",
|
|
6299
6515
|
"name": "tall",
|
package/dist/frameworks/vue.d.ts
CHANGED
|
@@ -1,35 +1,84 @@
|
|
|
1
|
-
import type { DefineComponent } from 'vue';
|
|
1
|
+
import type { DefineComponent, HTMLAttributes, ButtonHTMLAttributes, DetailsHTMLAttributes, DialogHTMLAttributes, InputHTMLAttributes, LiHTMLAttributes, SelectHTMLAttributes, TextareaHTMLAttributes } from 'vue';
|
|
2
|
+
import type { SDSAlertProps, SDSButtonProps, SDSCardProps, SDSCheckboxGroupProps, SDSCheckboxProps, SDSChipProps, SDSDetailsGroupProps, SDSDetailProps, SDSDialogProps, SDSEnvironmentBannerProps, SDSHeadingProps, SDSIconProps, SDSInternalHeaderProps, SDSLoaderProps, SDSNotificationProps, SDSPopoverProps, SDSProcessProps, SDSProcessStepProps, SDSRadioGroupProps, SDSRadioProps, SDSSelectProps, SDSStepperProps, SDSStepperStepProps, SDSSwitchProps, SDSTagProps, SDSTextAreaProps, SDSTextFieldProps, SDSTextProps, SDSTooltipProps } from '..';
|
|
3
|
+
type Merge<Base, Props> = Omit<Base, keyof Props> & Props;
|
|
4
|
+
/**
|
|
5
|
+
* Convert kebab-cased to camelCased/
|
|
6
|
+
* E.g. `@sds-remove` converts to an `onSdsRemove` prop, because Vue
|
|
7
|
+
* camelizes listener names that contain no uppercase letters
|
|
8
|
+
*/
|
|
9
|
+
type Camelize<S extends string> = S extends `${infer Head}-${infer Tail}` ? `${Head}${Camelize<Capitalize<Tail>>}` : S;
|
|
10
|
+
/** A component that dispatches no custom events */
|
|
11
|
+
type NoEvents = Record<never, never>;
|
|
12
|
+
/**
|
|
13
|
+
* Type for a handler receives several kinds of events with the same name.
|
|
14
|
+
*/
|
|
15
|
+
type EventFor<DetailOrEvent> = DetailOrEvent extends Event ? DetailOrEvent : CustomEvent<DetailOrEvent>;
|
|
16
|
+
/**
|
|
17
|
+
* Makes our event more Vue-esque by mapping a record of `eventName: detail` to the optional `on*` handler.
|
|
18
|
+
* Covers both the plain-name events (`change`) and the prefixed ones (`sds-remove`).
|
|
19
|
+
*/
|
|
20
|
+
type CustomEventHandlers<Events> = {
|
|
21
|
+
[Name in keyof Events as `on${Capitalize<Camelize<Name & string>>}`]?: (event: EventFor<Events[Name]>) => void;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* A base type for all of our Sheriff components with props, the standard attributes/events
|
|
25
|
+
* of the closest matching HTML element, and any custom events it dispatches.
|
|
26
|
+
*/
|
|
27
|
+
type SDSCustomElement<Props, Events = NoEvents, Base = HTMLAttributes> = DefineComponent<Merge<Merge<Base, Partial<Props>>, CustomEventHandlers<Events>>>;
|
|
2
28
|
declare module 'vue' {
|
|
3
29
|
interface GlobalComponents {
|
|
4
|
-
'sds-alert':
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
'sds-
|
|
8
|
-
'sds-
|
|
9
|
-
'sds-
|
|
10
|
-
'sds-
|
|
11
|
-
'sds-
|
|
12
|
-
'sds-
|
|
13
|
-
'sds-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
'sds-
|
|
17
|
-
'sds-
|
|
18
|
-
'sds-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
'sds-
|
|
22
|
-
'sds-
|
|
23
|
-
'sds-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
'sds-
|
|
29
|
-
'sds-
|
|
30
|
-
'sds-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
'sds-alert': SDSCustomElement<SDSAlertProps, {
|
|
31
|
+
'sds-remove': void;
|
|
32
|
+
}>;
|
|
33
|
+
'sds-card': SDSCustomElement<SDSCardProps>;
|
|
34
|
+
'sds-environment-banner': SDSCustomElement<SDSEnvironmentBannerProps>;
|
|
35
|
+
'sds-heading': SDSCustomElement<SDSHeadingProps>;
|
|
36
|
+
'sds-icon': SDSCustomElement<SDSIconProps>;
|
|
37
|
+
'sds-internal-header': SDSCustomElement<SDSInternalHeaderProps>;
|
|
38
|
+
'sds-loader': SDSCustomElement<SDSLoaderProps>;
|
|
39
|
+
'sds-notification': SDSCustomElement<SDSNotificationProps, {
|
|
40
|
+
'sds-remove': void;
|
|
41
|
+
}>;
|
|
42
|
+
'sds-tag': SDSCustomElement<SDSTagProps>;
|
|
43
|
+
'sds-text': SDSCustomElement<SDSTextProps>;
|
|
44
|
+
'sds-tooltip': SDSCustomElement<SDSTooltipProps, {
|
|
45
|
+
toggle: CustomEvent<HTMLElement> | ToggleEvent;
|
|
46
|
+
}>;
|
|
47
|
+
'sds-process': SDSCustomElement<SDSProcessProps>;
|
|
48
|
+
'sds-process-step': SDSCustomElement<SDSProcessStepProps, NoEvents, LiHTMLAttributes>;
|
|
49
|
+
'sds-stepper': SDSCustomElement<SDSStepperProps, {
|
|
50
|
+
change: {
|
|
51
|
+
index: number;
|
|
52
|
+
};
|
|
53
|
+
}>;
|
|
54
|
+
'sds-stepper-step': SDSCustomElement<SDSStepperStepProps, NoEvents, LiHTMLAttributes>;
|
|
55
|
+
'sds-popover': SDSCustomElement<SDSPopoverProps>;
|
|
56
|
+
'sds-details': SDSCustomElement<SDSDetailProps, {
|
|
57
|
+
toggle: {
|
|
58
|
+
open: boolean;
|
|
59
|
+
};
|
|
60
|
+
}, DetailsHTMLAttributes>;
|
|
61
|
+
'sds-details-group': SDSCustomElement<SDSDetailsGroupProps>;
|
|
62
|
+
'sds-button': SDSCustomElement<SDSButtonProps, NoEvents, ButtonHTMLAttributes>;
|
|
63
|
+
'sds-dialog': SDSCustomElement<SDSDialogProps, {
|
|
64
|
+
'sds-close': void;
|
|
65
|
+
}, DialogHTMLAttributes>;
|
|
66
|
+
'sds-checkbox': SDSCustomElement<SDSCheckboxProps, NoEvents, InputHTMLAttributes>;
|
|
67
|
+
'sds-checkbox-group': SDSCustomElement<SDSCheckboxGroupProps, {
|
|
68
|
+
'sds-update': void;
|
|
69
|
+
}, InputHTMLAttributes>;
|
|
70
|
+
'sds-chip': SDSCustomElement<SDSChipProps, {
|
|
71
|
+
'sds-remove': void;
|
|
72
|
+
}, InputHTMLAttributes>;
|
|
73
|
+
'sds-radio': SDSCustomElement<SDSRadioProps, NoEvents, InputHTMLAttributes>;
|
|
74
|
+
'sds-radio-group': SDSCustomElement<SDSRadioGroupProps, {
|
|
75
|
+
'sds-update': void;
|
|
76
|
+
}, InputHTMLAttributes>;
|
|
77
|
+
'sds-switch': SDSCustomElement<SDSSwitchProps, NoEvents, InputHTMLAttributes>;
|
|
78
|
+
'sds-textfield': SDSCustomElement<SDSTextFieldProps, NoEvents, InputHTMLAttributes>;
|
|
79
|
+
'sds-select': SDSCustomElement<SDSSelectProps, NoEvents, SelectHTMLAttributes>;
|
|
80
|
+
'sds-textarea': SDSCustomElement<SDSTextAreaProps, NoEvents, TextareaHTMLAttributes>;
|
|
33
81
|
}
|
|
34
82
|
}
|
|
83
|
+
export {};
|
|
35
84
|
//# sourceMappingURL=vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vue.d.ts","sourceRoot":"","sources":["../../src/frameworks/vue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"vue.d.ts","sourceRoot":"","sources":["../../src/frameworks/vue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,eAAe,EACf,cAAc,EACd,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,EAChB,oBAAoB,EACpB,sBAAsB,EACtB,MAAM,KAAK,CAAC;AACb,OAAO,KAAK,EACX,aAAa,EACb,cAAc,EACd,YAAY,EACZ,qBAAqB,EACrB,gBAAgB,EAChB,YAAY,EACZ,oBAAoB,EACpB,cAAc,EACd,cAAc,EACd,yBAAyB,EACzB,eAAe,EACf,YAAY,EACZ,sBAAsB,EACtB,cAAc,EACd,oBAAoB,EACpB,eAAe,EACf,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EAClB,aAAa,EACb,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,iBAAiB,EACjB,YAAY,EACZ,eAAe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G,YAAY,CAAC;AAM9D,MAAM,WAAW,6BAA6B;IAC7C,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,gBAAgB,CAAC,EAAE,aAAa,CAAC;IAC1C,QAAQ,CAAC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IACtC,gBAAgB,IAAI,IAAI,CAAC;CACzB;AAED,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,aAAa,CAAC,UAAU,CAAC,EAAE,UAAU,EAAE,CAAC,GAAG,aAAa,CAAC,6BAA6B,CAAC,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"sds-dialog-target-mixin.d.ts","sourceRoot":"","sources":["../../src/mixins/sds-dialog-target-mixin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAkB,MAAM,KAAK,CAAC;AAEjD,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAIxC,KAAK,aAAa,GAAG,OAAO,GAAG,eAAe,GAAG,YAAY,CAAC;AAM9D,MAAM,WAAW,6BAA6B;IAC7C,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,gBAAgB,CAAC,EAAE,aAAa,CAAC;IAC1C,QAAQ,CAAC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IACtC,gBAAgB,IAAI,IAAI,CAAC;CACzB;AAED,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,aAAa,CAAC,UAAU,CAAC,EAAE,UAAU,EAAE,CAAC,GAAG,aAAa,CAAC,6BAA6B,CAAC,GAAG,CAAC,CA8HzI"}
|
|
@@ -22,6 +22,13 @@ export function SDSDialogTargetMixin(superClass) {
|
|
|
22
22
|
this._updateCommandTarget();
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
+
connectedCallback() {
|
|
26
|
+
super.connectedCallback();
|
|
27
|
+
// React moves keyed nodes by disconnect/reconnect without changing props, so updated() won't re-run.
|
|
28
|
+
if (this.hasUpdated) {
|
|
29
|
+
this._updateCommandTarget();
|
|
30
|
+
}
|
|
31
|
+
}
|
|
25
32
|
disconnectedCallback() {
|
|
26
33
|
super.disconnectedCallback();
|
|
27
34
|
this._cleanupDialogObserver();
|
|
@@ -80,6 +87,9 @@ export function SDSDialogTargetMixin(superClass) {
|
|
|
80
87
|
}
|
|
81
88
|
}
|
|
82
89
|
runDialogCommand() {
|
|
90
|
+
if (!this._dialogElement?.isConnected) {
|
|
91
|
+
this._updateCommandTarget();
|
|
92
|
+
}
|
|
83
93
|
if (!this._dialogElement) {
|
|
84
94
|
return;
|
|
85
95
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sds-dialog-target-mixin.js","sourceRoot":"","sources":["../../src/mixins/sds-dialog-target-mixin.ts"],"names":[],"mappings":";;;;;;AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAO7C,SAAS,WAAW,CAAC,IAAoB;IACxC,OAAO,IAAI,IAAI,IAAI,IAAI,WAAW,IAAI,IAAI,IAAI,cAAc,IAAI,IAAI,IAAI,OAAO,IAAI,IAAI,IAAI,MAAM,IAAI,IAAI,CAAC;AAC3G,CAAC;AAUD,MAAM,UAAU,oBAAoB,CAAsC,UAAa;IACtF,MAAM,eAAgB,SAAQ,UAAU;QASvC,IAAI,gBAAgB;YACnB,OAAO,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,WAAW,CAAC;QACzC,CAAC;QAED,IAAI,mBAAmB;YACtB,OAAO,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,cAAc,CAAC;QAC/C,CAAC;QAEQ,OAAO,CAAC,OAAuB;YACvC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YAEvB,IAAI,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,OAAO,CAAC,GAAG,CAA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,CAAC,cAAc,CAAC,CAAC;YACvC,CAAC;QACF,CAAC;QAED,gBAAgB;YACf,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE,WAAW,EAAE,CAAC;gBACvC,IAAI,CAAC,oBAAoB,EAAE,CAAC;YAC7B,CAAC;YAED,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE,CAAC;gBAC1B,OAAO;YACR,CAAC;YAED,QAAQ,IAAI,CAAC,gBAAgB,EAAE,CAAC;gBAC/B,KAAK,YAAY;oBAChB,IAAI,CAAC,cAAc,CAAC,SAAS,EAAE,CAAC;oBAChC,MAAM;gBACP,KAAK,OAAO;oBACX,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,CAAC;oBAC5B,MAAM;gBACP,KAAK,eAAe;oBACnB,IAAI,CAAC,cAAc,CAAC,YAAY,EAAE,CAAC;oBACnC,MAAM;YACR,CAAC;QACF,CAAC;KACD;IAzHiE;QAAhE,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;oDAAyB;IACrB;QAAnE,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;uDAAqB;IACjC;QAAtD,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC;wDAA6B;IACzB;QAAzD,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAAC;2DAAyB;IAwHnF,OAAO,eAAe,CAAC;AACxB,CAAC","sourcesContent":["import { LitElement, PropertyValues } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { Constructable } from './types';\n\nimport type { SDSDialog } from '../sds-dialog/sds-dialog';\n\ntype DialogCommand = 'close' | 'request-close' | 'show-modal';\n\nfunction isSDSDialog(node: Element | null): node is SDSDialog {\n\treturn node != null && 'showModal' in node && 'requestClose' in node && 'close' in node && 'open' in node;\n}\n\nexport interface SDSDialogTargetMixinInterface {\n\tcommand?: DialogCommand;\n\tcommandFor?: string;\n\treadonly effectiveCommand?: DialogCommand;\n\treadonly effectiveCommandFor?: string;\n\trunDialogCommand(): void;\n}\n\nexport function SDSDialogTargetMixin<T extends Constructable<LitElement>>(superClass: T): Constructable<SDSDialogTargetMixinInterface> & T {\n\tclass SDSDialogTarget extends superClass {\n\t\t@property({ type: String, attribute: 'command', reflect: true }) command?: DialogCommand;\n\t\t@property({ type: String, attribute: 'commandfor', reflect: true }) commandFor?: string;\n\t\t@property({ type: String, attribute: 'data-command' }) dataCommand?: DialogCommand;\n\t\t@property({ type: String, attribute: 'data-commandfor' }) dataCommandFor?: string;\n\n\t\tprivate _dialogElement?: SDSDialog;\n\t\tprivate _dialogOpenObserver?: MutationObserver;\n\n\t\tget effectiveCommand(): DialogCommand | undefined {\n\t\t\treturn this.command ?? this.dataCommand;\n\t\t}\n\n\t\tget effectiveCommandFor(): string | undefined {\n\t\t\treturn this.commandFor ?? this.dataCommandFor;\n\t\t}\n\n\t\toverride updated(changed: PropertyValues) {\n\t\t\tsuper.updated(changed);\n\n\t\t\tif (changed.has('command') || changed.has('commandFor') || changed.has('dataCommand') || changed.has('dataCommandFor')) {\n\t\t\t\tthis._updateCommandTarget();\n\t\t\t}\n\t\t}\n\n\t\toverride connectedCallback() {\n\t\t\tsuper.connectedCallback();\n\t\t\t// React moves keyed nodes by disconnect/reconnect without changing props, so updated() won't re-run.\n\t\t\tif (this.hasUpdated) {\n\t\t\t\tthis._updateCommandTarget();\n\t\t\t}\n\t\t}\n\n\t\toverride disconnectedCallback() {\n\t\t\tsuper.disconnectedCallback();\n\t\t\tthis._cleanupDialogObserver();\n\t\t}\n\n\t\tprivate _cleanupDialogObserver() {\n\t\t\tif (this._dialogOpenObserver) {\n\t\t\t\tthis._dialogOpenObserver.disconnect();\n\t\t\t\tthis._dialogOpenObserver = undefined;\n\t\t\t}\n\t\t\tthis._dialogElement = undefined;\n\t\t}\n\n\t\tprivate _observeDialog(button: HTMLButtonElement, dialog: SDSDialog) {\n\t\t\t// Observe the 'open' attribute to detect when the dialog opens\n\t\t\tthis._dialogOpenObserver = new MutationObserver((mutations) => {\n\t\t\t\tfor (const mutation of mutations) {\n\t\t\t\t\tif (mutation.attributeName === 'open') {\n\t\t\t\t\t\tconst isOpen = dialog.hasAttribute('open');\n\t\t\t\t\t\tbutton.setAttribute('aria-expanded', String(isOpen));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\tthis._dialogOpenObserver.observe(dialog, { attributes: true, attributeFilter: ['open'] });\n\t\t}\n\n\t\tprivate _clearAriaFields(button: HTMLButtonElement) {\n\t\t\tbutton.removeAttribute('aria-haspopup');\n\t\t\tbutton.removeAttribute('aria-expanded');\n\t\t\tbutton.removeAttribute('aria-controls');\n\t\t}\n\n\t\tprivate _updateCommandTarget() {\n\t\t\tthis._cleanupDialogObserver();\n\n\t\t\tconst internalButton = this.shadowRoot?.querySelector<HTMLButtonElement>('#control');\n\t\t\tif (!internalButton) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst command = this.effectiveCommand;\n\t\t\tconst commandFor = this.effectiveCommandFor;\n\n\t\t\tif (!commandFor || !command) {\n\t\t\t\tthis._clearAriaFields(internalButton);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst root = this.getRootNode() as Document | ShadowRoot;\n\t\t\tconst targetDialog = root.getElementById?.(commandFor) ?? document.getElementById(commandFor);\n\n\t\t\tif (!isSDSDialog(targetDialog)) {\n\t\t\t\tthis._clearAriaFields(internalButton);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis._dialogElement = targetDialog;\n\n\t\t\tif (command === 'show-modal') {\n\t\t\t\tinternalButton.setAttribute('aria-haspopup', 'dialog');\n\t\t\t\tinternalButton.setAttribute('aria-expanded', String(targetDialog.open));\n\t\t\t\tinternalButton.setAttribute('aria-controls', commandFor);\n\t\t\t\tthis._observeDialog(internalButton, targetDialog);\n\t\t\t} else {\n\t\t\t\tthis._clearAriaFields(internalButton);\n\t\t\t}\n\t\t}\n\n\t\trunDialogCommand(): void {\n\t\t\tif (!this._dialogElement?.isConnected) {\n\t\t\t\tthis._updateCommandTarget();\n\t\t\t}\n\n\t\t\tif (!this._dialogElement) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tswitch (this.effectiveCommand) {\n\t\t\t\tcase 'show-modal':\n\t\t\t\t\tthis._dialogElement.showModal();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'close':\n\t\t\t\t\tthis._dialogElement.close();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'request-close':\n\t\t\t\t\tthis._dialogElement.requestClose();\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\treturn SDSDialogTarget;\n}\n"]}
|
|
@@ -27,8 +27,8 @@ export class SDSAlertComponent extends SDSEventDispatcherMixin(SDSElement) {
|
|
|
27
27
|
this._remove = () => {
|
|
28
28
|
this.dispatchSheriffEvent('sds-remove');
|
|
29
29
|
};
|
|
30
|
-
this._renderIcon = (iconName, size
|
|
31
|
-
return staticHtml `<${this.iconTag}
|
|
30
|
+
this._renderIcon = (iconName, size) => {
|
|
31
|
+
return staticHtml `<${this.iconTag} name="${iconName}" size=${size}></${this.iconTag}>`;
|
|
32
32
|
};
|
|
33
33
|
this._renderRemoveButton = (ariaLabel) => {
|
|
34
34
|
return staticHtml `<${this.buttonTag}
|
|
@@ -47,7 +47,7 @@ export class SDSAlertComponent extends SDSEventDispatcherMixin(SDSElement) {
|
|
|
47
47
|
const iconSize = this.variant === 'primary' ? 'md' : this.size ?? 'md';
|
|
48
48
|
const iconName = alertIcons[this.palette] ?? alertIcons['info'];
|
|
49
49
|
return html `<div class="sds-alert">
|
|
50
|
-
<div class="sds-alert__type">${this._renderIcon(iconName, iconSize
|
|
50
|
+
<div class="sds-alert__type">${this._renderIcon(iconName, iconSize)}</div>
|
|
51
51
|
<div class="sds-alert__content">
|
|
52
52
|
<slot name="title"></slot>
|
|
53
53
|
<slot name="message"></slot>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sds-alert.component.js","sourceRoot":"","sources":["../../src/sds-alert/sds-alert.component.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,IAAI,IAAI,UAAU,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAEjE,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAM/E,MAAM,UAAU,GAAiC;IAChD,IAAI,EAAE,oCAAoC;IAC1C,OAAO,EAAE,8BAA8B;IACvC,SAAS,EAAE,yBAAyB;IACpC,MAAM,EAAE,2BAA2B;CACnC,CAAC;AAQF,MAAM,OAAO,iBAAkB,SAAQ,uBAAuB,CAAC,UAAU,CAAC;IAA1E;;QAG4C,YAAO,GAAa,SAAS,CAAC;QAC9B,SAAI,GAAc,IAAI,CAAC;QAEI,YAAO,GAAiB,MAAM,CAAC;QAE3F,YAAO,GAAgB,OAAO,CAAA,UAAU,CAAC;QACzC,cAAS,GAAgB,OAAO,CAAA,YAAY,CAAC;QAEtC,YAAO,GAAG,GAAG,EAAE;YAC/B,IAAI,CAAC,oBAAoB,CAAC,YAAY,CAAC,CAAC;QACzC,CAAC,CAAC;QAEe,gBAAW,GAAG,CAAC,QAAgB,EAAE,IAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"sds-alert.component.js","sourceRoot":"","sources":["../../src/sds-alert/sds-alert.component.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,E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ACvB,CAAC,CAAC;IAeH,CAAC;IAbS,MAAM;QACd,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC;QACvE,MAAM,QAAQ,GAAG,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,UAAU,CAAC,MAAM,CAAC,CAAC;QAEhE,OAAO,IAAI,CAAA;kCACqB,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,QAAQ,CAAC;;;;;KAKjE,IAAI,CAAC,cAAc,IAAI,IAAI,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAA,mCAAmC,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO;SACtJ,CAAC;IACT,CAAC;;AA3Ce,wBAAM,GAAG,CAAC,MAAM,CAAC,AAAX,CAAY;AAES;IAA1C,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;kDAA+B;AAC9B;IAA1C,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;+CAAwB;AACO;IAAxE,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,iBAAiB,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;yDAAyB;AAC3B;IAArE,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,cAAc,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;kDAAgC","sourcesContent":["import { html, nothing } from 'lit';\nimport { SDSElement } from '../utils/sds-element';\nimport { property } from 'lit/decorators.js';\nimport { html as staticHtml, literal } from 'lit/static-html.js';\nimport type { StaticValue } from 'lit-html/static.js';\nimport { styles } from './sds-alert.styles';\nimport { SDS_VARIANTS, SDS_SIZES } from '../types';\nimport { SDSEventDispatcherMixin } from '../mixins/sds-event-dispatcher-mixin';\n\ntype ColorPalette = 'info' | 'success' | 'attention' | 'danger';\ntype Variants = Extract<SDS_VARIANTS, 'primary' | 'secondary'>;\ntype AlertSize = Extract<SDS_SIZES, 'lg' | 'md' | 'sm'>;\n\nconst alertIcons: Record<ColorPalette, string> = {\n\tinfo: 'InformationSquareFill-aksel-filled',\n\tsuccess: 'check_circle-material-filled',\n\tattention: 'warning-material-filled',\n\tdanger: 'dangerous-material-filled',\n};\n\nexport interface SDSAlertProps {\n\tvariant?: Variants;\n\tsize?: AlertSize;\n\t'removable-label'?: string;\n}\n\nexport class SDSAlertComponent extends SDSEventDispatcherMixin(SDSElement) {\n\tstatic override styles = [styles];\n\n\t@property({ type: String, reflect: true }) variant: Variants = 'primary';\n\t@property({ type: String, reflect: true }) size: AlertSize = 'md';\n\t@property({ type: String, attribute: 'removable-label', reflect: true }) removableLabel?: string;\n\t@property({ type: String, attribute: 'data-palette', reflect: true }) palette: ColorPalette = 'info';\n\n\tprotected iconTag: StaticValue = literal`sds-icon`;\n\tprotected buttonTag: StaticValue = literal`sds-button`;\n\n\tprivate readonly _remove = () => {\n\t\tthis.dispatchSheriffEvent('sds-remove');\n\t};\n\n\tprivate readonly _renderIcon = (iconName: string, size: string) => {\n\t\treturn staticHtml`<${this.iconTag} name=\"${iconName}\" size=${size}></${this.iconTag}>`;\n\t};\n\n\tprivate readonly _renderRemoveButton = (ariaLabel: string) => {\n\t\treturn staticHtml`<${this.buttonTag}\n\t\tclass=\"sds-alert__remove-btn\"\n\t\tvariant=\"tertiary\"\n\t\tsize=\"sm\"\n\t\t?icon=${true}\n\t\tlabel=${ariaLabel}\n\t\t@click=${this._remove}\n\t\t>\n\t\t${this._renderIcon('close-material-outlined', 'sm')}\n\t\t</${this.buttonTag}>`;\n\t};\n\n\toverride render() {\n\t\tconst iconSize = this.variant === 'primary' ? 'md' : this.size ?? 'md';\n\t\tconst iconName = alertIcons[this.palette] ?? alertIcons['info'];\n\n\t\treturn html`<div class=\"sds-alert\">\n\t\t\t<div class=\"sds-alert__type\">${this._renderIcon(iconName, iconSize)}</div>\n\t\t\t<div class=\"sds-alert__content\">\n\t\t\t\t<slot name=\"title\"></slot>\n\t\t\t\t<slot name=\"message\"></slot>\n\t\t\t</div>\n\t\t\t${this.removableLabel && this.variant === 'primary' ? html`<div class=\"sds-alert__actions\">${this._renderRemoveButton(this.removableLabel)}</div>` : nothing}\n\t\t</div>`;\n\t}\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sds-alert.styles.d.ts","sourceRoot":"","sources":["../../src/sds-alert/sds-alert.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"sds-alert.styles.d.ts","sourceRoot":"","sources":["../../src/sds-alert/sds-alert.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,yBAgLlB,CAAC"}
|
|
@@ -90,12 +90,6 @@ export const styles = css `
|
|
|
90
90
|
--sds-button-text-color: var(--_sds-alert-text-color);
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
.sds-alert__icon {
|
|
94
|
-
display: block;
|
|
95
|
-
position: relative;
|
|
96
|
-
z-index: 1;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
93
|
:host([variant='secondary']) {
|
|
100
94
|
--_sds-alert-background-color: var(--sds-alert-background-color, transparent);
|
|
101
95
|
--_sds-alert-border-color: var(--sds-alert-border-color, transparent);
|