@getflip/swirl-ai 0.536.0 → 0.537.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.
@@ -21,6 +21,7 @@ _None._
21
21
  - `mode` ("decimal" | "email" | "numeric" | "search" | "tel" | "text" | "url" | undefined) –
22
22
  - `multiSelect` (boolean | undefined) –
23
23
  - `placeholder` (string | undefined) –
24
+ - `readonly` (boolean | undefined) –
24
25
  - `required` (boolean | undefined) –
25
26
  - `spellCheck` (boolean | undefined) –
26
27
  - `swirlAriaDescribedby` (string | undefined) –
@@ -20,6 +20,7 @@ The SwirlFileUploader component allows users to select files to upload.
20
20
  - `dragDropLabel` (string | undefined) –
21
21
  - `hideLabel` (boolean | undefined) –
22
22
  - `multiple` (boolean | undefined) –
23
+ - `readonly` (boolean | undefined) –
23
24
  - `showDropzone` (boolean | undefined) –
24
25
  - `uploadButtonIcon` (string | undefined) –
25
26
  - `uploadButtonLabel` (string | undefined) –
@@ -16,6 +16,7 @@ The SwirlSelect component is used to allow users to select one or multiple optio
16
16
  - `inline` (boolean | undefined) –
17
17
  - `invalid` (boolean | undefined) –
18
18
  - `multiSelect` (boolean | undefined) –
19
+ - `readonly` (boolean | undefined) –
19
20
  - `required` (boolean | undefined) –
20
21
  - `searchInputLabel` (string | undefined) –
21
22
  - `searchLoading` (boolean | undefined) –
@@ -1977,6 +1977,13 @@
1977
1977
  },
1978
1978
  "fieldName": "placeholder"
1979
1979
  },
1980
+ {
1981
+ "name": "readonly",
1982
+ "type": {
1983
+ "text": "boolean | undefined"
1984
+ },
1985
+ "fieldName": "readonly"
1986
+ },
1980
1987
  {
1981
1988
  "name": "required",
1982
1989
  "type": {
@@ -2125,6 +2132,15 @@
2125
2132
  "readonly": true,
2126
2133
  "attribute": "placeholder"
2127
2134
  },
2135
+ {
2136
+ "kind": "field",
2137
+ "name": "readonly",
2138
+ "type": {
2139
+ "text": "boolean | undefined"
2140
+ },
2141
+ "readonly": true,
2142
+ "attribute": "readonly"
2143
+ },
2128
2144
  {
2129
2145
  "kind": "field",
2130
2146
  "name": "required",
@@ -9453,6 +9469,13 @@
9453
9469
  },
9454
9470
  "fieldName": "multiple"
9455
9471
  },
9472
+ {
9473
+ "name": "readonly",
9474
+ "type": {
9475
+ "text": "boolean | undefined"
9476
+ },
9477
+ "fieldName": "readonly"
9478
+ },
9456
9479
  {
9457
9480
  "name": "show-dropzone",
9458
9481
  "type": {
@@ -9595,6 +9618,15 @@
9595
9618
  "readonly": true,
9596
9619
  "attribute": "multiple"
9597
9620
  },
9621
+ {
9622
+ "kind": "field",
9623
+ "name": "readonly",
9624
+ "type": {
9625
+ "text": "boolean | undefined"
9626
+ },
9627
+ "readonly": true,
9628
+ "attribute": "readonly"
9629
+ },
9598
9630
  {
9599
9631
  "kind": "field",
9600
9632
  "name": "showDropzone",
@@ -51126,6 +51158,13 @@
51126
51158
  },
51127
51159
  "fieldName": "multiSelect"
51128
51160
  },
51161
+ {
51162
+ "name": "readonly",
51163
+ "type": {
51164
+ "text": "boolean | undefined"
51165
+ },
51166
+ "fieldName": "readonly"
51167
+ },
51129
51168
  {
51130
51169
  "name": "required",
51131
51170
  "type": {
@@ -51251,6 +51290,15 @@
51251
51290
  "readonly": true,
51252
51291
  "attribute": "multi-select"
51253
51292
  },
51293
+ {
51294
+ "kind": "field",
51295
+ "name": "readonly",
51296
+ "type": {
51297
+ "text": "boolean | undefined"
51298
+ },
51299
+ "readonly": true,
51300
+ "attribute": "readonly"
51301
+ },
51254
51302
  {
51255
51303
  "kind": "field",
51256
51304
  "name": "required",
@@ -22,6 +22,7 @@ export declare class SwirlAutocomplete implements SwirlFormInput<SwirlAutocomple
22
22
  mode?: SwirlTextInputMode;
23
23
  multiSelect?: boolean;
24
24
  placeholder?: string;
25
+ readonly?: boolean;
25
26
  required?: boolean;
26
27
  spellCheck?: boolean;
27
28
  swirlAriaDescribedby?: string;
@@ -39,6 +40,7 @@ export declare class SwirlAutocomplete implements SwirlFormInput<SwirlAutocomple
39
40
  componentWillLoad(): void;
40
41
  onWindowClick(event: MouseEvent): void;
41
42
  watchMultiSelect(): void;
43
+ watchReadonly(): void;
42
44
  private close;
43
45
  private open;
44
46
  private reposition;
@@ -13,6 +13,7 @@ export declare class SwirlFileUploader implements SwirlFormInput<FileList> {
13
13
  inputName: string;
14
14
  label: string;
15
15
  multiple?: boolean;
16
+ readonly?: boolean;
16
17
  showDropzone?: boolean;
17
18
  uploadButtonIcon?: string;
18
19
  uploadButtonLabel?: string;
@@ -26,6 +26,7 @@ export declare class SwirlFormControl {
26
26
  private labelId;
27
27
  private componentLoaded;
28
28
  private inputEl;
29
+ private originalContenteditableValue?;
29
30
  connectedCallback(): void;
30
31
  componentWillLoad(): void;
31
32
  componentDidRender(): void;
@@ -34,6 +35,13 @@ export declare class SwirlFormControl {
34
35
  watchErrorMessage(): void;
35
36
  setInputElementDisabledState(): void;
36
37
  setInputElementReadonlyState(): void;
38
+ /**
39
+ * Contenteditable elements ignore the disabled and readonly attributes, so
40
+ * editing has to be turned off via the contenteditable attribute itself. Its
41
+ * value is set to "false" (not removed), so the element is still detected as
42
+ * a contenteditable control.
43
+ */
44
+ private setContenteditableState;
37
45
  setInputElementInlineState(): void;
38
46
  setInputElementInvalidState(): void;
39
47
  setInputElementLabel(): void;
@@ -10,6 +10,7 @@ export declare class SwirlSelect implements SwirlFormInput<string[]> {
10
10
  invalid?: boolean;
11
11
  label: string;
12
12
  multiSelect?: boolean;
13
+ readonly?: boolean;
13
14
  required?: boolean;
14
15
  searchInputLabel?: string;
15
16
  searchLoading?: boolean;
@@ -28,6 +29,7 @@ export declare class SwirlSelect implements SwirlFormInput<string[]> {
28
29
  private observer;
29
30
  private optionList;
30
31
  private searchInput;
32
+ private skipFocusOnClose;
31
33
  private swirlPopover;
32
34
  private typeaheadBuffer;
33
35
  private typeaheadTimeout;
@@ -35,6 +37,7 @@ export declare class SwirlSelect implements SwirlFormInput<string[]> {
35
37
  disconnectedCallback(): void;
36
38
  onWindowFocusIn(event: FocusEvent): void;
37
39
  onValueChange(newValue: string[], oldValue: string[]): void;
40
+ watchReadonly(): void;
38
41
  selectSearchInput(): Promise<void>;
39
42
  focusSearchInput(): Promise<void>;
40
43
  private observeSlotChanges;
@@ -402,6 +402,7 @@ export namespace Components {
402
402
  "mode"?: SwirlTextInputMode;
403
403
  "multiSelect"?: boolean;
404
404
  "placeholder"?: string;
405
+ "readonly"?: boolean;
405
406
  "required"?: boolean;
406
407
  "spellCheck"?: boolean;
407
408
  "swirlAriaDescribedby"?: string;
@@ -1124,6 +1125,7 @@ export namespace Components {
1124
1125
  "inputName": string;
1125
1126
  "label": string;
1126
1127
  "multiple"?: boolean;
1128
+ "readonly"?: boolean;
1127
1129
  /**
1128
1130
  * Reset the file input.
1129
1131
  */
@@ -4449,6 +4451,7 @@ export namespace Components {
4449
4451
  "invalid"?: boolean;
4450
4452
  "label": string;
4451
4453
  "multiSelect"?: boolean;
4454
+ "readonly"?: boolean;
4452
4455
  "required"?: boolean;
4453
4456
  /**
4454
4457
  * @default "Search options"
@@ -11003,6 +11006,7 @@ declare namespace LocalJSX {
11003
11006
  "multiSelect"?: boolean;
11004
11007
  "onValueChange"?: (event: SwirlAutocompleteCustomEvent<SwirlAutocompleteValue>) => void;
11005
11008
  "placeholder"?: string;
11009
+ "readonly"?: boolean;
11006
11010
  "required"?: boolean;
11007
11011
  "spellCheck"?: boolean;
11008
11012
  "swirlAriaDescribedby"?: string;
@@ -11721,6 +11725,7 @@ declare namespace LocalJSX {
11721
11725
  "label": string;
11722
11726
  "multiple"?: boolean;
11723
11727
  "onValueChange"?: (event: SwirlFileUploaderCustomEvent<FileList>) => void;
11728
+ "readonly"?: boolean;
11724
11729
  /**
11725
11730
  * @default true
11726
11731
  */
@@ -14960,6 +14965,7 @@ declare namespace LocalJSX {
14960
14965
  "multiSelect"?: boolean;
14961
14966
  "onSearchChange"?: (event: SwirlSelectCustomEvent<string>) => void;
14962
14967
  "onValueChange"?: (event: SwirlSelectCustomEvent<string[]>) => void;
14968
+ "readonly"?: boolean;
14963
14969
  "required"?: boolean;
14964
14970
  /**
14965
14971
  * @default "Search options"
@@ -16528,6 +16534,7 @@ declare namespace LocalJSX {
16528
16534
  "mode": SwirlTextInputMode;
16529
16535
  "multiSelect": boolean;
16530
16536
  "placeholder": string;
16537
+ "readonly": boolean;
16531
16538
  "required": boolean;
16532
16539
  "spellCheck": boolean;
16533
16540
  "swirlAriaDescribedby": string;
@@ -16879,6 +16886,7 @@ declare namespace LocalJSX {
16879
16886
  "inputName": string;
16880
16887
  "label": string;
16881
16888
  "multiple": boolean;
16889
+ "readonly": boolean;
16882
16890
  "showDropzone": boolean;
16883
16891
  "uploadButtonIcon": string;
16884
16892
  "uploadButtonLabel": string;
@@ -18691,6 +18699,7 @@ declare namespace LocalJSX {
18691
18699
  "invalid": boolean;
18692
18700
  "label": string;
18693
18701
  "multiSelect": boolean;
18702
+ "readonly": boolean;
18694
18703
  "required": boolean;
18695
18704
  "searchInputLabel": string;
18696
18705
  "searchLoading": boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getflip/swirl-ai",
3
- "version": "0.536.0",
3
+ "version": "0.537.0",
4
4
  "description": "Swirl Design System AI package with artifacts for AI agents",
5
5
  "author": "Flip GmbH",
6
6
  "repository": {
@@ -26,7 +26,7 @@
26
26
  "lint": "tsc --noEmit"
27
27
  },
28
28
  "devDependencies": {
29
- "@getflip/swirl-components": "0.536.0",
29
+ "@getflip/swirl-components": "0.537.0",
30
30
  "@getflip/swirl-tokens": "2.14.3",
31
31
  "@types/node": "25.3.0",
32
32
  "tsx": "^4.7.0",