@kubex/zinc 1.1.76 → 1.1.77

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.
@@ -29069,7 +29069,7 @@
29069
29069
  "text": "boolean"
29070
29070
  },
29071
29071
  "default": "false",
29072
- "description": "Lets pointer input through to the embedded page. The preview is inert by\ndefault: clicks never reach the frame, so the previewed page can't be\nnavigated or submitted from inside the preview. Cross-origin content can't\nbe reached from here to cancel its own handlers, so this blocks pointer\ninput entirely — hover goes with it. Scrolling doesn't: an overflowing\npage is scrolled by the panel rather than by the frame (see _contentHeight).",
29072
+ "description": "Lets pointer input through to the embedded page. The preview is inert by\ndefault: clicks never reach the frame, so the previewed page can't be\nnavigated or submitted from inside the preview. Cross-origin content can't\nbe reached from here to cancel its own handlers, so this blocks pointer\ninput entirely — hover goes with it. Scrolling doesn't: an overflowing\npage is scrolled by the panel rather than by the frame (see _contentHeight).\n\nSet, the frame becomes a real viewport instead: it stays the panel's own\nheight and the embed scrolls itself, so there is one scrollbar rather than\na panel scrolling an oversized frame, and the embed's viewport-relative\nlayout (`100vh`, `position: fixed`, sticky headers) sizes to what's on\nscreen. _contentHeight is ignored while this is set.",
29073
29073
  "attribute": "interactive",
29074
29074
  "reflects": true
29075
29075
  },
@@ -29097,7 +29097,7 @@
29097
29097
  },
29098
29098
  "privacy": "private",
29099
29099
  "default": "0",
29100
- "description": "Height of the embedded page's content, when it's known: reported by the\nembed (`height` on hp-preview:rendered, or an hp-preview:height message) or\nmeasured directly for a same-origin embed. The frame is laid out at this\nheight rather than the panel's, so the page never scrolls inside the frame\n— the panel scrolls instead, which is what makes an overflowing preview\nreachable while pointer input to the frame is blocked. 0 = unknown, and the\nframe falls back to filling the panel."
29100
+ "description": "Height of the embedded page's content, when it's known: reported by the\nembed (`height` on hp-preview:rendered, or an hp-preview:height message) or\nmeasured directly for a same-origin embed. The frame is laid out at this\nheight rather than the panel's, so the page never scrolls inside the frame\n— the panel scrolls instead, which is what makes an overflowing preview\nreachable while pointer input to the frame is blocked. 0 = unknown, and the\nframe falls back to filling the panel. Kept up to date either way, but only\nlaid out when the frame is inert: an `interactive` frame scrolls itself."
29101
29101
  },
29102
29102
  {
29103
29103
  "kind": "field",
@@ -29385,7 +29385,7 @@
29385
29385
  "text": "boolean"
29386
29386
  },
29387
29387
  "default": "false",
29388
- "description": "Lets pointer input through to the embedded page. The preview is inert by\ndefault: clicks never reach the frame, so the previewed page can't be\nnavigated or submitted from inside the preview. Cross-origin content can't\nbe reached from here to cancel its own handlers, so this blocks pointer\ninput entirely — hover goes with it. Scrolling doesn't: an overflowing\npage is scrolled by the panel rather than by the frame (see _contentHeight).",
29388
+ "description": "Lets pointer input through to the embedded page. The preview is inert by\ndefault: clicks never reach the frame, so the previewed page can't be\nnavigated or submitted from inside the preview. Cross-origin content can't\nbe reached from here to cancel its own handlers, so this blocks pointer\ninput entirely — hover goes with it. Scrolling doesn't: an overflowing\npage is scrolled by the panel rather than by the frame (see _contentHeight).\n\nSet, the frame becomes a real viewport instead: it stays the panel's own\nheight and the embed scrolls itself, so there is one scrollbar rather than\na panel scrolling an oversized frame, and the embed's viewport-relative\nlayout (`100vh`, `position: fixed`, sticky headers) sizes to what's on\nscreen. _contentHeight is ignored while this is set.",
29389
29389
  "fieldName": "interactive"
29390
29390
  }
29391
29391
  ],
@@ -38862,845 +38862,887 @@
38862
38862
  },
38863
38863
  {
38864
38864
  "kind": "javascript-module",
38865
- "path": "components/textarea/textarea.js",
38865
+ "path": "components/tabs/tabs.js",
38866
38866
  "declarations": [
38867
38867
  {
38868
38868
  "kind": "class",
38869
38869
  "description": "",
38870
- "name": "ZnTextarea",
38871
- "cssParts": [
38872
- {
38873
- "description": "The form control that wraps the label, input, and help text.",
38874
- "name": "form-control"
38875
- },
38876
- {
38877
- "description": "The label's wrapper.",
38878
- "name": "form-control-label"
38879
- },
38880
- {
38881
- "description": "The input's wrapper.",
38882
- "name": "form-control-input"
38883
- },
38870
+ "name": "ZnTabs",
38871
+ "cssProperties": [
38884
38872
  {
38885
- "description": "The help text's wrapper.",
38886
- "name": "form-control-help-text"
38887
- },
38873
+ "description": "An example CSS custom property.",
38874
+ "name": "--example"
38875
+ }
38876
+ ],
38877
+ "cssParts": [
38888
38878
  {
38889
38879
  "description": "The component's base wrapper.",
38890
38880
  "name": "base"
38891
- },
38892
- {
38893
- "description": "The internal `<textarea>` control.",
38894
- "name": "textarea"
38895
38881
  }
38896
38882
  ],
38897
38883
  "slots": [
38898
38884
  {
38899
- "description": "The textareas label. Alternatively, you can use the `label` attribute.",
38900
- "name": "label"
38901
- },
38902
- {
38903
- "description": "Used to add text that is displayed in a tooltip next to the label. Alternatively, you can use the `label-tooltip` attribute.",
38904
- "name": "label-tooltip"
38905
- },
38906
- {
38907
- "description": "Used to add contextual text that is displayed above the textarea, on the right. Alternatively, you can use the `context-note` attribute.",
38908
- "name": "context-note"
38885
+ "description": "The default slot.",
38886
+ "name": ""
38909
38887
  },
38910
38888
  {
38911
- "description": "Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.",
38912
- "name": "help-text"
38889
+ "description": "An example slot.",
38890
+ "name": "example"
38913
38891
  }
38914
38892
  ],
38915
38893
  "members": [
38916
38894
  {
38917
38895
  "kind": "field",
38918
- "name": "formControlController",
38919
- "privacy": "private",
38920
- "readonly": true,
38921
- "default": "new FormControlController(this, { assumeInteractionOn: ['zn-blur', 'zn-input'] })"
38922
- },
38923
- {
38924
- "kind": "field",
38925
- "name": "hasSlotController",
38926
- "privacy": "private",
38927
- "readonly": true,
38928
- "default": "new HasSlotController(this, 'help-text', 'label')"
38929
- },
38930
- {
38931
- "kind": "field",
38932
- "name": "resizeObserver",
38933
- "privacy": "private",
38934
- "readonly": true,
38935
- "default": "new ResizeController(this, { target: null, callback: () => this.setTextareaHeight(), })"
38936
- },
38937
- {
38938
- "kind": "field",
38939
- "name": "_didInitFromContent",
38896
+ "name": "masterId",
38940
38897
  "type": {
38941
- "text": "boolean"
38898
+ "text": "string"
38942
38899
  },
38943
- "privacy": "private",
38944
- "default": "false",
38945
- "description": "Ensures we only attempt to derive the initial value from light DOM content once"
38946
- },
38947
- {
38948
- "kind": "field",
38949
- "name": "formControl",
38950
- "type": {
38951
- "text": "HTMLElement"
38952
- }
38953
- },
38954
- {
38955
- "kind": "field",
38956
- "name": "input",
38957
- "type": {
38958
- "text": "HTMLTextAreaElement"
38959
- }
38900
+ "attribute": "master-id",
38901
+ "reflects": true
38960
38902
  },
38961
38903
  {
38962
38904
  "kind": "field",
38963
- "name": "hasFocus",
38905
+ "name": "defaultUri",
38964
38906
  "type": {
38965
- "text": "boolean"
38907
+ "text": "string"
38966
38908
  },
38967
- "default": "false"
38909
+ "default": "''",
38910
+ "attribute": "default-uri",
38911
+ "reflects": true
38968
38912
  },
38969
38913
  {
38970
38914
  "kind": "field",
38971
- "name": "title",
38915
+ "name": "_current",
38972
38916
  "type": {
38973
38917
  "text": "string"
38974
38918
  },
38975
38919
  "default": "''",
38976
- "attribute": "title"
38920
+ "attribute": "active",
38921
+ "reflects": true
38977
38922
  },
38978
38923
  {
38979
38924
  "kind": "field",
38980
- "name": "name",
38925
+ "name": "_split",
38981
38926
  "type": {
38982
- "text": "string"
38927
+ "text": "number"
38983
38928
  },
38984
- "default": "''",
38985
- "description": "The name of the textarea, submitted as a name/value pair with form data.",
38986
- "attribute": "name"
38929
+ "attribute": "split",
38930
+ "reflects": true
38987
38931
  },
38988
38932
  {
38989
38933
  "kind": "field",
38990
- "name": "value",
38934
+ "name": "_splitMin",
38991
38935
  "type": {
38992
- "text": "string"
38936
+ "text": "number"
38993
38937
  },
38994
- "default": "''",
38995
- "description": "The current value of the textarea, submitted as a name/value pair with form data.",
38996
- "attribute": "value"
38938
+ "default": "60",
38939
+ "attribute": "split-min",
38940
+ "reflects": true
38997
38941
  },
38998
38942
  {
38999
38943
  "kind": "field",
39000
- "name": "size",
38944
+ "name": "_splitMinSecondary",
39001
38945
  "type": {
39002
- "text": "'small' | 'medium' | 'large'"
38946
+ "text": "number"
39003
38947
  },
39004
- "default": "'medium'",
39005
- "description": "The text area's size.",
39006
- "attribute": "size",
38948
+ "attribute": "split-min-secondary",
39007
38949
  "reflects": true
39008
38950
  },
39009
38951
  {
39010
38952
  "kind": "field",
39011
- "name": "label",
38953
+ "name": "_splitMax",
39012
38954
  "type": {
39013
- "text": "string"
38955
+ "text": "number"
39014
38956
  },
39015
- "default": "''",
39016
- "description": "The textarea label. If you need to display HTML, use the `label` slot instead.",
39017
- "attribute": "label"
38957
+ "attribute": "split-max",
38958
+ "reflects": true
39018
38959
  },
39019
38960
  {
39020
38961
  "kind": "field",
39021
- "name": "labelTooltip",
38962
+ "name": "primaryCaption",
39022
38963
  "type": {
39023
38964
  "text": "string"
39024
38965
  },
39025
- "default": "''",
39026
- "description": "Text that appears in a tooltip next to the label. If you need to display HTML in the tooltip, use the `label-tooltip` slot instead.",
39027
- "attribute": "label-tooltip"
38966
+ "default": "'Navigation'",
38967
+ "attribute": "primary-caption",
38968
+ "reflects": true
39028
38969
  },
39029
38970
  {
39030
38971
  "kind": "field",
39031
- "name": "contextNote",
38972
+ "name": "secondaryCaption",
39032
38973
  "type": {
39033
38974
  "text": "string"
39034
38975
  },
39035
- "default": "''",
39036
- "description": "Text that appears above the textarea, on the right, to add additional context. If you need to display HTML in this text, use the `context-note` slot instead.",
39037
- "attribute": "context-note"
38976
+ "default": "'Content'",
38977
+ "attribute": "secondary-caption",
38978
+ "reflects": true
39038
38979
  },
39039
38980
  {
39040
38981
  "kind": "field",
39041
- "name": "helpText",
38982
+ "name": "noPrefetch",
39042
38983
  "type": {
39043
- "text": "string"
38984
+ "text": "boolean"
39044
38985
  },
39045
- "default": "''",
39046
- "description": "The text area's help text. If you need to display HTML, use the `help-text` slot instead.",
39047
- "attribute": "help-text"
38986
+ "default": "false",
38987
+ "attribute": "no-prefetch",
38988
+ "reflects": true
39048
38989
  },
39049
38990
  {
39050
38991
  "kind": "field",
39051
- "name": "placeholder",
38992
+ "name": "noCache",
39052
38993
  "type": {
39053
- "text": "string"
38994
+ "text": "boolean"
39054
38995
  },
39055
- "default": "''",
39056
- "description": "Placeholder text to show as a hint when the input is empty.",
39057
- "attribute": "placeholder"
38996
+ "default": "false",
38997
+ "attribute": "no-cache",
38998
+ "reflects": true
39058
38999
  },
39059
39000
  {
39060
39001
  "kind": "field",
39061
- "name": "rows",
39002
+ "name": "localStorage",
39062
39003
  "type": {
39063
- "text": "number"
39004
+ "text": "boolean"
39064
39005
  },
39065
- "default": "4",
39066
- "description": "The number of rows to display by default.",
39067
- "attribute": "rows"
39006
+ "attribute": "local-storage",
39007
+ "reflects": true
39068
39008
  },
39069
39009
  {
39070
39010
  "kind": "field",
39071
- "name": "resize",
39011
+ "name": "storeKey",
39072
39012
  "type": {
39073
- "text": "'none' | 'vertical' | 'auto'"
39013
+ "text": "string"
39074
39014
  },
39075
- "default": "'vertical'",
39076
- "description": "Controls how the textarea can be resized.",
39077
- "attribute": "resize"
39015
+ "attribute": "store-key"
39078
39016
  },
39079
39017
  {
39080
39018
  "kind": "field",
39081
- "name": "disabled",
39019
+ "name": "storeTtl",
39082
39020
  "type": {
39083
- "text": "boolean"
39021
+ "text": "number"
39084
39022
  },
39085
- "default": "false",
39086
- "description": "Disables the textarea.",
39087
- "attribute": "disabled",
39023
+ "default": "0",
39024
+ "attribute": "store-ttl",
39088
39025
  "reflects": true
39089
39026
  },
39090
39027
  {
39091
39028
  "kind": "field",
39092
- "name": "readonly",
39029
+ "name": "padded",
39093
39030
  "type": {
39094
39031
  "text": "boolean"
39095
39032
  },
39096
39033
  "default": "false",
39097
- "description": "Makes the textarea readonly.",
39098
- "attribute": "readonly",
39034
+ "attribute": "padded",
39099
39035
  "reflects": true
39100
39036
  },
39101
39037
  {
39102
39038
  "kind": "field",
39103
- "name": "form",
39039
+ "name": "fetchStyle",
39104
39040
  "type": {
39105
39041
  "text": "string"
39106
39042
  },
39107
- "default": "''",
39108
- "description": "By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you\nto place the form control outside of a form and associate it with the form that has this `id`. The form must be in\nthe same document or shadow root for this to work.",
39109
- "attribute": "form",
39043
+ "default": "\"\"",
39044
+ "attribute": "fetch-style",
39110
39045
  "reflects": true
39111
39046
  },
39112
39047
  {
39113
39048
  "kind": "field",
39114
- "name": "flush",
39049
+ "name": "fullWidth",
39115
39050
  "type": {
39116
39051
  "text": "boolean"
39117
39052
  },
39118
39053
  "default": "false",
39119
- "attribute": "flush",
39054
+ "attribute": "full-width",
39120
39055
  "reflects": true
39121
39056
  },
39122
39057
  {
39123
39058
  "kind": "field",
39124
- "name": "required",
39059
+ "name": "paddedRight",
39125
39060
  "type": {
39126
39061
  "text": "boolean"
39127
39062
  },
39128
39063
  "default": "false",
39129
- "description": "Makes the textarea a required field.",
39130
- "attribute": "required",
39064
+ "attribute": "padded-right",
39131
39065
  "reflects": true
39132
39066
  },
39133
39067
  {
39134
39068
  "kind": "field",
39135
- "name": "minlength",
39069
+ "name": "monitor",
39136
39070
  "type": {
39137
- "text": "number"
39071
+ "text": "string"
39138
39072
  },
39139
- "description": "The minimum length of input that will be considered valid.",
39140
- "attribute": "minlength"
39073
+ "attribute": "monitor"
39141
39074
  },
39142
39075
  {
39143
39076
  "kind": "field",
39144
- "name": "maxlength",
39077
+ "name": "caption",
39145
39078
  "type": {
39146
- "text": "number"
39079
+ "text": "string"
39147
39080
  },
39148
- "description": "The maximum length of input that will be considered valid.",
39149
- "attribute": "maxlength"
39081
+ "attribute": "caption"
39150
39082
  },
39151
39083
  {
39152
39084
  "kind": "field",
39153
- "name": "autocapitalize",
39085
+ "name": "description",
39154
39086
  "type": {
39155
- "text": "'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters'"
39087
+ "text": "string"
39156
39088
  },
39157
- "description": "Controls whether and how text input is automatically capitalized as it is entered by the user.",
39158
- "attribute": "autocapitalize"
39089
+ "attribute": "description"
39159
39090
  },
39160
39091
  {
39161
39092
  "kind": "field",
39162
- "name": "autocorrect",
39093
+ "name": "preload",
39163
39094
  "type": {
39164
- "text": "string"
39095
+ "text": "boolean"
39165
39096
  },
39166
- "description": "Indicates whether the browser's autocorrect feature is on or off.",
39167
- "attribute": "autocorrect"
39097
+ "privacy": "protected",
39098
+ "default": "true"
39168
39099
  },
39169
39100
  {
39170
39101
  "kind": "field",
39171
- "name": "autocomplete",
39102
+ "name": "_store",
39172
39103
  "type": {
39173
- "text": "string"
39104
+ "text": "Store"
39174
39105
  },
39175
- "description": "Specifies what permission the browser has to provide assistance in filling out form field values. Refer to\n[this page on MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) for available values.",
39176
- "attribute": "autocomplete"
39106
+ "privacy": "protected"
39177
39107
  },
39178
39108
  {
39179
39109
  "kind": "field",
39180
- "name": "autofocus",
39110
+ "name": "_activeClicks",
39181
39111
  "type": {
39182
- "text": "boolean"
39112
+ "text": "number"
39183
39113
  },
39184
- "description": "Indicates that the input should receive focus on page load.",
39185
- "attribute": "autofocus"
39114
+ "privacy": "protected",
39115
+ "default": "0"
39186
39116
  },
39187
39117
  {
39188
39118
  "kind": "field",
39189
- "name": "enterkeyhint",
39119
+ "name": "_panel",
39190
39120
  "type": {
39191
- "text": "'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send'"
39121
+ "text": "Element | null | undefined"
39192
39122
  },
39193
- "description": "Used to customize the label or icon of the Enter key on virtual keyboards.",
39194
- "attribute": "enterkeyhint"
39123
+ "privacy": "private"
39195
39124
  },
39196
39125
  {
39197
39126
  "kind": "field",
39198
- "name": "spellcheck",
39127
+ "name": "_panels",
39199
39128
  "type": {
39200
- "text": "boolean"
39129
+ "text": "Map<string, Element[]>"
39201
39130
  },
39202
- "default": "true",
39203
- "description": "Enables spell checking on the textarea.",
39204
- "attribute": "spellcheck"
39131
+ "privacy": "private",
39132
+ "default": "new Map<string, Element[]>()"
39205
39133
  },
39206
39134
  {
39207
39135
  "kind": "field",
39208
- "name": "inputmode",
39136
+ "name": "_activeTab",
39209
39137
  "type": {
39210
- "text": "'none' | 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url'"
39138
+ "text": "Element | null"
39211
39139
  },
39212
- "description": "Tells the browser what type of data will be entered by the user, allowing it to display the appropriate virtual\nkeyboard on supportive devices.",
39213
- "attribute": "inputmode"
39140
+ "privacy": "private",
39141
+ "default": "null"
39214
39142
  },
39215
39143
  {
39216
39144
  "kind": "field",
39217
- "name": "defaultValue",
39145
+ "name": "_tabs",
39218
39146
  "type": {
39219
- "text": "string"
39147
+ "text": "HTMLElement[]"
39220
39148
  },
39221
- "default": "''",
39222
- "description": "The default value of the form control. Primarily used for resetting the form control."
39149
+ "privacy": "private",
39150
+ "default": "[]"
39223
39151
  },
39224
39152
  {
39225
39153
  "kind": "field",
39226
- "name": "transparent",
39154
+ "name": "_actions",
39227
39155
  "type": {
39228
- "text": "boolean"
39156
+ "text": "HTMLElement[]"
39229
39157
  },
39230
- "default": "false",
39231
- "attribute": "transparent"
39158
+ "privacy": "private",
39159
+ "default": "[]"
39232
39160
  },
39233
39161
  {
39234
39162
  "kind": "field",
39235
- "name": "validity",
39236
- "description": "Gets the validity state object",
39237
- "readonly": true
39163
+ "name": "_knownUri",
39164
+ "type": {
39165
+ "text": "Map<string, string>"
39166
+ },
39167
+ "privacy": "private",
39168
+ "default": "new Map<string, string>()"
39238
39169
  },
39239
39170
  {
39240
39171
  "kind": "field",
39241
- "name": "validationMessage",
39242
- "description": "Gets the validation message",
39243
- "readonly": true
39172
+ "name": "_defaultTab",
39173
+ "type": {
39174
+ "text": "string"
39175
+ },
39176
+ "privacy": "private",
39177
+ "default": "''"
39178
+ },
39179
+ {
39180
+ "kind": "field",
39181
+ "name": "hasSlotController",
39182
+ "privacy": "private",
39183
+ "readonly": true,
39184
+ "default": "new HasSlotController(this, '[default]', 'bottom', 'right', 'left', 'top', 'actions')"
39185
+ },
39186
+ {
39187
+ "kind": "field",
39188
+ "name": "_domObserver",
39189
+ "privacy": "private",
39190
+ "readonly": true,
39191
+ "default": "new MutationController(this, { target: null, config: {childList: true, subtree: true}, callback: mutations => { mutations.forEach(mutation => { if (mutation.type !== 'childList') return; if (mutation.addedNodes.length > 0) { this._registerTabs(); } if (mutation.removedNodes.length > 0) { mutation.removedNodes.forEach(node => { const id = node instanceof HTMLElement ? node.id : ''; if (id) this.removeTabAndPanel(id); }); } }); }, })"
39192
+ },
39193
+ {
39194
+ "kind": "field",
39195
+ "name": "_monitorObserver",
39196
+ "privacy": "private",
39197
+ "readonly": true,
39198
+ "default": "new MutationController(this, { target: null, config: {childList: true, subtree: true}, callback: mutations => { mutations.forEach(mutation => { if (mutation.type !== 'childList') return; mutation.addedNodes.forEach(node => { if (node instanceof HTMLElement && node.id === this.monitor) { this.reRegisterTabs(); const storedValue = this.getStoredTab(); if (storedValue !== null) { this.restoreStoredTab(storedValue); } } }); }); }, })"
39244
39199
  },
39245
39200
  {
39246
39201
  "kind": "method",
39247
- "name": "handleBlur",
39248
- "privacy": "private"
39202
+ "name": "monitorDom"
39249
39203
  },
39250
39204
  {
39251
39205
  "kind": "method",
39252
- "name": "handleChange",
39253
- "privacy": "private"
39206
+ "name": "getTabStoreKey",
39207
+ "privacy": "protected",
39208
+ "return": {
39209
+ "type": {
39210
+ "text": "string | null"
39211
+ }
39212
+ },
39213
+ "description": "The key the active tab is persisted under. Null disables persistence."
39254
39214
  },
39255
39215
  {
39256
39216
  "kind": "method",
39257
- "name": "handleFocus",
39258
- "privacy": "private"
39217
+ "name": "getStoredTab",
39218
+ "privacy": "protected",
39219
+ "return": {
39220
+ "type": {
39221
+ "text": "string | null"
39222
+ }
39223
+ }
39259
39224
  },
39260
39225
  {
39261
39226
  "kind": "method",
39262
- "name": "handleInput",
39263
- "privacy": "private"
39227
+ "name": "storeActiveTab",
39228
+ "privacy": "protected",
39229
+ "parameters": [
39230
+ {
39231
+ "name": "tabName",
39232
+ "type": {
39233
+ "text": "string"
39234
+ }
39235
+ }
39236
+ ]
39264
39237
  },
39265
39238
  {
39266
39239
  "kind": "method",
39267
- "name": "handleInvalid",
39268
- "privacy": "private",
39240
+ "name": "restoreStoredTab",
39241
+ "privacy": "protected",
39269
39242
  "parameters": [
39270
39243
  {
39271
- "name": "event",
39244
+ "name": "stored",
39272
39245
  "type": {
39273
- "text": "Event"
39246
+ "text": "string"
39274
39247
  }
39275
39248
  }
39276
39249
  ]
39277
39250
  },
39278
39251
  {
39279
39252
  "kind": "method",
39280
- "name": "handleKeyDown",
39253
+ "name": "activateDefaultTab",
39254
+ "privacy": "protected",
39255
+ "description": "Activates the tab the container starts on, ignoring any stored selection."
39256
+ },
39257
+ {
39258
+ "kind": "field",
39259
+ "name": "handlePopState",
39260
+ "privacy": "private",
39261
+ "readonly": true
39262
+ },
39263
+ {
39264
+ "kind": "method",
39265
+ "name": "pushTabHistory",
39281
39266
  "privacy": "private",
39282
39267
  "parameters": [
39283
39268
  {
39284
- "name": "event",
39269
+ "name": "tabName",
39285
39270
  "type": {
39286
- "text": "KeyboardEvent"
39271
+ "text": "string"
39287
39272
  }
39288
39273
  }
39289
39274
  ]
39290
39275
  },
39291
39276
  {
39292
39277
  "kind": "method",
39293
- "name": "setTextareaHeight",
39294
- "privacy": "private"
39278
+ "name": "getUriForTabId",
39279
+ "privacy": "private",
39280
+ "return": {
39281
+ "type": {
39282
+ "text": "string | null"
39283
+ }
39284
+ },
39285
+ "parameters": [
39286
+ {
39287
+ "name": "tabId",
39288
+ "type": {
39289
+ "text": "string"
39290
+ }
39291
+ }
39292
+ ]
39295
39293
  },
39296
39294
  {
39297
39295
  "kind": "method",
39298
- "name": "handleDisabledChange"
39296
+ "name": "_addPanel",
39297
+ "parameters": [
39298
+ {
39299
+ "name": "panel",
39300
+ "type": {
39301
+ "text": "HTMLElement"
39302
+ }
39303
+ }
39304
+ ]
39299
39305
  },
39300
39306
  {
39301
39307
  "kind": "method",
39302
- "name": "handleRowsChange"
39308
+ "name": "_addTab",
39309
+ "parameters": [
39310
+ {
39311
+ "name": "tab",
39312
+ "type": {
39313
+ "text": "HTMLElement"
39314
+ }
39315
+ }
39316
+ ]
39303
39317
  },
39304
39318
  {
39305
- "kind": "method",
39306
- "name": "handleValueChange"
39319
+ "kind": "field",
39320
+ "name": "reRegisterTabs"
39307
39321
  },
39308
39322
  {
39309
39323
  "kind": "method",
39310
- "name": "focus",
39324
+ "name": "switchTab",
39311
39325
  "parameters": [
39312
39326
  {
39313
- "name": "options",
39314
- "optional": true,
39327
+ "name": "inc",
39315
39328
  "type": {
39316
- "text": "FocusOptions"
39329
+ "text": "number"
39317
39330
  }
39318
39331
  }
39319
- ],
39320
- "description": "Sets focus on the textarea."
39332
+ ]
39321
39333
  },
39322
39334
  {
39323
39335
  "kind": "method",
39324
- "name": "blur",
39325
- "description": "Removes focus from the textarea."
39336
+ "name": "nextTab"
39326
39337
  },
39327
39338
  {
39328
39339
  "kind": "method",
39329
- "name": "select",
39330
- "description": "Selects all the text in the textarea."
39340
+ "name": "previousTab"
39331
39341
  },
39332
39342
  {
39333
39343
  "kind": "method",
39334
- "name": "scrollPosition",
39344
+ "name": "_prepareTab",
39345
+ "parameters": [
39346
+ {
39347
+ "name": "tabId",
39348
+ "type": {
39349
+ "text": "string"
39350
+ }
39351
+ }
39352
+ ]
39353
+ },
39354
+ {
39355
+ "kind": "method",
39356
+ "name": "_uriToId",
39335
39357
  "return": {
39336
39358
  "type": {
39337
- "text": "{ top: number; left: number } | undefined"
39359
+ "text": "string"
39338
39360
  }
39339
39361
  },
39340
39362
  "parameters": [
39341
39363
  {
39342
- "name": "position",
39343
- "optional": true,
39364
+ "name": "tabUri",
39344
39365
  "type": {
39345
- "text": "{ top?: number; left?: number }"
39366
+ "text": "string"
39346
39367
  }
39347
39368
  }
39348
- ],
39349
- "description": "Gets or sets the textarea scroll position."
39369
+ ]
39350
39370
  },
39351
39371
  {
39352
39372
  "kind": "method",
39353
- "name": "setSelectionRange",
39373
+ "name": "_createUriPanel",
39374
+ "return": {
39375
+ "type": {
39376
+ "text": "HTMLDivElement"
39377
+ }
39378
+ },
39354
39379
  "parameters": [
39355
39380
  {
39356
- "name": "selectionStart",
39381
+ "name": "tabEle",
39357
39382
  "type": {
39358
- "text": "number"
39383
+ "text": "Element"
39359
39384
  }
39360
39385
  },
39361
39386
  {
39362
- "name": "selectionEnd",
39387
+ "name": "tabUri",
39363
39388
  "type": {
39364
- "text": "number"
39389
+ "text": "string"
39365
39390
  }
39366
39391
  },
39367
39392
  {
39368
- "name": "selectionDirection",
39369
- "default": "'none'",
39393
+ "name": "tabId",
39370
39394
  "type": {
39371
- "text": "'forward' | 'backward' | 'none'"
39395
+ "text": "string"
39372
39396
  }
39373
39397
  }
39374
- ],
39375
- "description": "Sets the start and end positions of the text selection (0-based)."
39398
+ ]
39376
39399
  },
39377
39400
  {
39378
39401
  "kind": "method",
39379
- "name": "setRangeText",
39402
+ "name": "_handleClick",
39380
39403
  "parameters": [
39381
39404
  {
39382
- "name": "replacement",
39405
+ "name": "event",
39406
+ "type": {
39407
+ "text": "PointerEvent"
39408
+ }
39409
+ }
39410
+ ]
39411
+ },
39412
+ {
39413
+ "kind": "method",
39414
+ "name": "fetchUriTab",
39415
+ "parameters": [
39416
+ {
39417
+ "name": "target",
39418
+ "type": {
39419
+ "text": "HTMLElement"
39420
+ }
39421
+ }
39422
+ ]
39423
+ },
39424
+ {
39425
+ "kind": "method",
39426
+ "name": "clickTab",
39427
+ "parameters": [
39428
+ {
39429
+ "name": "target",
39430
+ "type": {
39431
+ "text": "HTMLElement"
39432
+ }
39433
+ },
39434
+ {
39435
+ "name": "refresh",
39436
+ "type": {
39437
+ "text": "boolean"
39438
+ }
39439
+ },
39440
+ {
39441
+ "name": "pushHistory",
39442
+ "default": "false"
39443
+ }
39444
+ ]
39445
+ },
39446
+ {
39447
+ "kind": "method",
39448
+ "name": "getRefTab",
39449
+ "parameters": [
39450
+ {
39451
+ "name": "target",
39452
+ "type": {
39453
+ "text": "HTMLElement"
39454
+ }
39455
+ }
39456
+ ]
39457
+ },
39458
+ {
39459
+ "kind": "method",
39460
+ "name": "setActiveTab",
39461
+ "parameters": [
39462
+ {
39463
+ "name": "tabName",
39383
39464
  "type": {
39384
39465
  "text": "string"
39385
39466
  }
39386
39467
  },
39387
39468
  {
39388
- "name": "start",
39389
- "optional": true,
39469
+ "name": "store",
39390
39470
  "type": {
39391
- "text": "number"
39471
+ "text": "boolean"
39392
39472
  }
39393
39473
  },
39394
39474
  {
39395
- "name": "end",
39396
- "optional": true,
39475
+ "name": "refresh",
39397
39476
  "type": {
39398
- "text": "number"
39477
+ "text": "boolean"
39399
39478
  }
39400
39479
  },
39401
39480
  {
39402
- "name": "selectMode",
39403
- "default": "'preserve'",
39481
+ "name": "refTab",
39482
+ "default": "null",
39404
39483
  "type": {
39405
- "text": "'select' | 'start' | 'end' | 'preserve'"
39484
+ "text": "string | null"
39406
39485
  }
39486
+ },
39487
+ {
39488
+ "name": "pushHistory",
39489
+ "default": "false"
39407
39490
  }
39408
- ],
39409
- "description": "Replaces a range of text with a new string."
39491
+ ]
39410
39492
  },
39411
39493
  {
39412
39494
  "kind": "method",
39413
- "name": "checkValidity",
39414
- "description": "Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid."
39495
+ "name": "_setTabEleActive",
39496
+ "parameters": [
39497
+ {
39498
+ "name": "ele",
39499
+ "type": {
39500
+ "text": "Element"
39501
+ }
39502
+ },
39503
+ {
39504
+ "name": "active",
39505
+ "type": {
39506
+ "text": "boolean"
39507
+ }
39508
+ }
39509
+ ]
39415
39510
  },
39416
39511
  {
39417
39512
  "kind": "method",
39418
- "name": "getForm",
39513
+ "name": "selectTab",
39419
39514
  "return": {
39420
39515
  "type": {
39421
- "text": "HTMLFormElement | null"
39516
+ "text": "boolean"
39422
39517
  }
39423
39518
  },
39424
- "description": "Gets the associated form, if one exists."
39519
+ "parameters": [
39520
+ {
39521
+ "name": "tabName",
39522
+ "type": {
39523
+ "text": "string"
39524
+ }
39525
+ },
39526
+ {
39527
+ "name": "refresh",
39528
+ "type": {
39529
+ "text": "boolean"
39530
+ }
39531
+ }
39532
+ ]
39425
39533
  },
39426
39534
  {
39427
39535
  "kind": "method",
39428
- "name": "reportValidity",
39429
- "description": "Checks for validity and shows the browser's validation message if the control is invalid."
39536
+ "name": "getActiveTab",
39537
+ "return": {
39538
+ "type": {
39539
+ "text": "Element[]"
39540
+ }
39541
+ }
39430
39542
  },
39431
39543
  {
39432
39544
  "kind": "method",
39433
- "name": "setCustomValidity",
39545
+ "name": "observerDom"
39546
+ },
39547
+ {
39548
+ "kind": "method",
39549
+ "name": "removeTabAndPanel",
39434
39550
  "parameters": [
39435
39551
  {
39436
- "name": "message",
39552
+ "name": "tabId",
39437
39553
  "type": {
39438
39554
  "text": "string"
39439
39555
  }
39440
39556
  }
39441
- ],
39442
- "description": "Sets a custom validation message. Pass an empty string to restore validity."
39557
+ ]
39558
+ },
39559
+ {
39560
+ "kind": "field",
39561
+ "name": "_registerTabs"
39443
39562
  }
39444
39563
  ],
39445
39564
  "events": [
39446
39565
  {
39447
- "description": "Emitted when the control loses focus.",
39448
- "name": "zn-blur"
39449
- },
39450
- {
39451
- "description": "Emitted when an alteration to the control's value is committed by the user.",
39452
- "name": "zn-change"
39453
- },
39454
- {
39455
- "description": "Emitted when the control gains focus.",
39456
- "name": "zn-focus"
39457
- },
39458
- {
39459
- "description": "Emitted when the control receives input.",
39460
- "name": "zn-input"
39461
- },
39462
- {
39463
- "description": "Emitted when the form control has been checked for validity and its constraints aren't satisfied.",
39464
- "name": "zn-invalid"
39566
+ "description": "Emitted as an example.",
39567
+ "name": "zn-event-name"
39465
39568
  }
39466
39569
  ],
39467
39570
  "attributes": [
39468
39571
  {
39469
- "name": "title",
39572
+ "name": "master-id",
39470
39573
  "type": {
39471
39574
  "text": "string"
39472
39575
  },
39473
- "default": "''",
39474
- "fieldName": "title"
39576
+ "fieldName": "masterId"
39475
39577
  },
39476
39578
  {
39477
- "name": "name",
39579
+ "name": "default-uri",
39478
39580
  "type": {
39479
39581
  "text": "string"
39480
39582
  },
39481
39583
  "default": "''",
39482
- "description": "The name of the textarea, submitted as a name/value pair with form data.",
39483
- "fieldName": "name"
39584
+ "fieldName": "defaultUri"
39484
39585
  },
39485
39586
  {
39486
- "name": "value",
39587
+ "name": "active",
39487
39588
  "type": {
39488
39589
  "text": "string"
39489
39590
  },
39490
39591
  "default": "''",
39491
- "description": "The current value of the textarea, submitted as a name/value pair with form data.",
39492
- "fieldName": "value"
39592
+ "fieldName": "_current"
39493
39593
  },
39494
39594
  {
39495
- "name": "size",
39595
+ "name": "split",
39496
39596
  "type": {
39497
- "text": "'small' | 'medium' | 'large'"
39597
+ "text": "number"
39498
39598
  },
39499
- "default": "'medium'",
39500
- "description": "The text area's size.",
39501
- "fieldName": "size"
39599
+ "fieldName": "_split"
39502
39600
  },
39503
39601
  {
39504
- "name": "label",
39602
+ "name": "split-min",
39505
39603
  "type": {
39506
- "text": "string"
39604
+ "text": "number"
39507
39605
  },
39508
- "default": "''",
39509
- "description": "The textarea label. If you need to display HTML, use the `label` slot instead.",
39510
- "fieldName": "label"
39606
+ "default": "60",
39607
+ "fieldName": "_splitMin"
39511
39608
  },
39512
39609
  {
39513
- "name": "label-tooltip",
39610
+ "name": "split-min-secondary",
39514
39611
  "type": {
39515
- "text": "string"
39612
+ "text": "number"
39516
39613
  },
39517
- "default": "''",
39518
- "description": "Text that appears in a tooltip next to the label. If you need to display HTML in the tooltip, use the `label-tooltip` slot instead.",
39519
- "fieldName": "labelTooltip"
39614
+ "fieldName": "_splitMinSecondary"
39520
39615
  },
39521
39616
  {
39522
- "name": "context-note",
39617
+ "name": "split-max",
39523
39618
  "type": {
39524
- "text": "string"
39619
+ "text": "number"
39525
39620
  },
39526
- "default": "''",
39527
- "description": "Text that appears above the textarea, on the right, to add additional context. If you need to display HTML in this text, use the `context-note` slot instead.",
39528
- "fieldName": "contextNote"
39621
+ "fieldName": "_splitMax"
39529
39622
  },
39530
39623
  {
39531
- "name": "help-text",
39624
+ "name": "primary-caption",
39532
39625
  "type": {
39533
39626
  "text": "string"
39534
39627
  },
39535
- "default": "''",
39536
- "description": "The text area's help text. If you need to display HTML, use the `help-text` slot instead.",
39537
- "fieldName": "helpText"
39628
+ "default": "'Navigation'",
39629
+ "fieldName": "primaryCaption"
39538
39630
  },
39539
39631
  {
39540
- "name": "placeholder",
39632
+ "name": "secondary-caption",
39541
39633
  "type": {
39542
39634
  "text": "string"
39543
39635
  },
39544
- "default": "''",
39545
- "description": "Placeholder text to show as a hint when the input is empty.",
39546
- "fieldName": "placeholder"
39547
- },
39548
- {
39549
- "name": "rows",
39550
- "type": {
39551
- "text": "number"
39552
- },
39553
- "default": "4",
39554
- "description": "The number of rows to display by default.",
39555
- "fieldName": "rows"
39636
+ "default": "'Content'",
39637
+ "fieldName": "secondaryCaption"
39556
39638
  },
39557
39639
  {
39558
- "name": "resize",
39640
+ "name": "no-prefetch",
39559
39641
  "type": {
39560
- "text": "'none' | 'vertical' | 'auto'"
39642
+ "text": "boolean"
39561
39643
  },
39562
- "default": "'vertical'",
39563
- "description": "Controls how the textarea can be resized.",
39564
- "fieldName": "resize"
39644
+ "default": "false",
39645
+ "fieldName": "noPrefetch"
39565
39646
  },
39566
39647
  {
39567
- "name": "disabled",
39648
+ "name": "no-cache",
39568
39649
  "type": {
39569
39650
  "text": "boolean"
39570
39651
  },
39571
39652
  "default": "false",
39572
- "description": "Disables the textarea.",
39573
- "fieldName": "disabled"
39653
+ "fieldName": "noCache"
39574
39654
  },
39575
39655
  {
39576
- "name": "readonly",
39656
+ "name": "local-storage",
39577
39657
  "type": {
39578
39658
  "text": "boolean"
39579
39659
  },
39580
- "default": "false",
39581
- "description": "Makes the textarea readonly.",
39582
- "fieldName": "readonly"
39660
+ "fieldName": "localStorage"
39583
39661
  },
39584
39662
  {
39585
- "name": "form",
39663
+ "name": "store-key",
39586
39664
  "type": {
39587
39665
  "text": "string"
39588
39666
  },
39589
- "default": "''",
39590
- "description": "By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you\nto place the form control outside of a form and associate it with the form that has this `id`. The form must be in\nthe same document or shadow root for this to work.",
39591
- "fieldName": "form"
39667
+ "fieldName": "storeKey"
39592
39668
  },
39593
39669
  {
39594
- "name": "flush",
39670
+ "name": "store-ttl",
39595
39671
  "type": {
39596
- "text": "boolean"
39672
+ "text": "number"
39597
39673
  },
39598
- "default": "false",
39599
- "fieldName": "flush"
39674
+ "default": "0",
39675
+ "fieldName": "storeTtl"
39600
39676
  },
39601
39677
  {
39602
- "name": "required",
39678
+ "name": "padded",
39603
39679
  "type": {
39604
39680
  "text": "boolean"
39605
39681
  },
39606
39682
  "default": "false",
39607
- "description": "Makes the textarea a required field.",
39608
- "fieldName": "required"
39609
- },
39610
- {
39611
- "name": "minlength",
39612
- "type": {
39613
- "text": "number"
39614
- },
39615
- "description": "The minimum length of input that will be considered valid.",
39616
- "fieldName": "minlength"
39617
- },
39618
- {
39619
- "name": "maxlength",
39620
- "type": {
39621
- "text": "number"
39622
- },
39623
- "description": "The maximum length of input that will be considered valid.",
39624
- "fieldName": "maxlength"
39625
- },
39626
- {
39627
- "name": "autocapitalize",
39628
- "type": {
39629
- "text": "'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters'"
39630
- },
39631
- "description": "Controls whether and how text input is automatically capitalized as it is entered by the user.",
39632
- "fieldName": "autocapitalize"
39633
- },
39634
- {
39635
- "name": "autocorrect",
39636
- "type": {
39637
- "text": "string"
39638
- },
39639
- "description": "Indicates whether the browser's autocorrect feature is on or off.",
39640
- "fieldName": "autocorrect"
39683
+ "fieldName": "padded"
39641
39684
  },
39642
39685
  {
39643
- "name": "autocomplete",
39686
+ "name": "fetch-style",
39644
39687
  "type": {
39645
39688
  "text": "string"
39646
39689
  },
39647
- "description": "Specifies what permission the browser has to provide assistance in filling out form field values. Refer to\n[this page on MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) for available values.",
39648
- "fieldName": "autocomplete"
39690
+ "default": "\"\"",
39691
+ "fieldName": "fetchStyle"
39649
39692
  },
39650
39693
  {
39651
- "name": "autofocus",
39694
+ "name": "full-width",
39652
39695
  "type": {
39653
39696
  "text": "boolean"
39654
39697
  },
39655
- "description": "Indicates that the input should receive focus on page load.",
39656
- "fieldName": "autofocus"
39698
+ "default": "false",
39699
+ "fieldName": "fullWidth"
39657
39700
  },
39658
39701
  {
39659
- "name": "enterkeyhint",
39702
+ "name": "padded-right",
39660
39703
  "type": {
39661
- "text": "'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send'"
39704
+ "text": "boolean"
39662
39705
  },
39663
- "description": "Used to customize the label or icon of the Enter key on virtual keyboards.",
39664
- "fieldName": "enterkeyhint"
39706
+ "default": "false",
39707
+ "fieldName": "paddedRight"
39665
39708
  },
39666
39709
  {
39667
- "name": "spellcheck",
39710
+ "name": "monitor",
39668
39711
  "type": {
39669
- "text": "boolean"
39712
+ "text": "string"
39670
39713
  },
39671
- "default": "true",
39672
- "description": "Enables spell checking on the textarea.",
39673
- "fieldName": "spellcheck"
39714
+ "fieldName": "monitor"
39674
39715
  },
39675
39716
  {
39676
- "name": "inputmode",
39717
+ "name": "caption",
39677
39718
  "type": {
39678
- "text": "'none' | 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url'"
39719
+ "text": "string"
39679
39720
  },
39680
- "description": "Tells the browser what type of data will be entered by the user, allowing it to display the appropriate virtual\nkeyboard on supportive devices.",
39681
- "fieldName": "inputmode"
39721
+ "fieldName": "caption"
39682
39722
  },
39683
39723
  {
39684
- "name": "transparent",
39724
+ "name": "description",
39685
39725
  "type": {
39686
- "text": "boolean"
39726
+ "text": "string"
39687
39727
  },
39688
- "default": "false",
39689
- "fieldName": "transparent"
39728
+ "fieldName": "description"
39690
39729
  }
39691
39730
  ],
39692
39731
  "superclass": {
39693
39732
  "name": "ZincElement",
39694
39733
  "module": "/src/internal/zinc-element"
39695
39734
  },
39696
- "summary": "Textareas collect data from the user and allow multiple lines of text.",
39697
- "tagNameWithoutPrefix": "textarea",
39698
- "tagName": "zn-textarea",
39735
+ "summary": "Short summary of the component's intended use.",
39736
+ "tagNameWithoutPrefix": "tabs",
39737
+ "tagName": "zn-tabs",
39699
39738
  "customElement": true,
39700
- "jsDoc": "/**\n * @summary Textareas collect data from the user and allow multiple lines of text.\n * @documentation https://zinc.style/components/textarea\n * @status stable\n * @since 2.0\n *\n * @slot label - The textareas label. Alternatively, you can use the `label` attribute.\n * @slot label-tooltip - Used to add text that is displayed in a tooltip next to the label. Alternatively, you can use the `label-tooltip` attribute.\n * @slot context-note - Used to add contextual text that is displayed above the textarea, on the right. Alternatively, you can use the `context-note` attribute.\n * @slot help-text - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.\n *\n * @event zn-blur - Emitted when the control loses focus.\n * @event zn-change - Emitted when an alteration to the control's value is committed by the user.\n * @event zn-focus - Emitted when the control gains focus.\n * @event zn-input - Emitted when the control receives input.\n * @event zn-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n *\n * @csspart form-control - The form control that wraps the label, input, and help text.\n * @csspart form-control-label - The label's wrapper.\n * @csspart form-control-input - The input's wrapper.\n * @csspart form-control-help-text - The help text's wrapper.\n * @csspart base - The component's base wrapper.\n * @csspart textarea - The internal `<textarea>` control.\n */",
39701
- "documentation": "https://zinc.style/components/textarea",
39702
- "status": "stable",
39703
- "since": "2.0"
39739
+ "jsDoc": "/**\n * @summary Short summary of the component's intended use.\n * @documentation https://zinc.style/components/tabs\n * @status experimental\n * @since 1.0\n *\n * @dependency zn-example\n *\n * @event zn-event-name - Emitted as an example.\n *\n * @slot - The default slot.\n * @slot example - An example slot.\n *\n * @csspart base - The component's base wrapper.\n *\n * @cssproperty --example - An example CSS custom property.\n */",
39740
+ "documentation": "https://zinc.style/components/tabs",
39741
+ "status": "experimental",
39742
+ "since": "1.0",
39743
+ "dependencies": [
39744
+ "zn-example"
39745
+ ]
39704
39746
  }
39705
39747
  ],
39706
39748
  "exports": [
@@ -39708,895 +39750,853 @@
39708
39750
  "kind": "js",
39709
39751
  "name": "default",
39710
39752
  "declaration": {
39711
- "name": "ZnTextarea",
39712
- "module": "components/textarea/textarea.js"
39753
+ "name": "ZnTabs",
39754
+ "module": "components/tabs/tabs.js"
39713
39755
  }
39714
39756
  }
39715
39757
  ]
39716
39758
  },
39717
39759
  {
39718
39760
  "kind": "javascript-module",
39719
- "path": "components/tabs/tabs.js",
39761
+ "path": "components/textarea/textarea.js",
39720
39762
  "declarations": [
39721
39763
  {
39722
39764
  "kind": "class",
39723
39765
  "description": "",
39724
- "name": "ZnTabs",
39725
- "cssProperties": [
39726
- {
39727
- "description": "An example CSS custom property.",
39728
- "name": "--example"
39729
- }
39730
- ],
39766
+ "name": "ZnTextarea",
39731
39767
  "cssParts": [
39768
+ {
39769
+ "description": "The form control that wraps the label, input, and help text.",
39770
+ "name": "form-control"
39771
+ },
39772
+ {
39773
+ "description": "The label's wrapper.",
39774
+ "name": "form-control-label"
39775
+ },
39776
+ {
39777
+ "description": "The input's wrapper.",
39778
+ "name": "form-control-input"
39779
+ },
39780
+ {
39781
+ "description": "The help text's wrapper.",
39782
+ "name": "form-control-help-text"
39783
+ },
39732
39784
  {
39733
39785
  "description": "The component's base wrapper.",
39734
39786
  "name": "base"
39787
+ },
39788
+ {
39789
+ "description": "The internal `<textarea>` control.",
39790
+ "name": "textarea"
39735
39791
  }
39736
39792
  ],
39737
39793
  "slots": [
39738
39794
  {
39739
- "description": "The default slot.",
39740
- "name": ""
39795
+ "description": "The textareas label. Alternatively, you can use the `label` attribute.",
39796
+ "name": "label"
39741
39797
  },
39742
39798
  {
39743
- "description": "An example slot.",
39744
- "name": "example"
39799
+ "description": "Used to add text that is displayed in a tooltip next to the label. Alternatively, you can use the `label-tooltip` attribute.",
39800
+ "name": "label-tooltip"
39801
+ },
39802
+ {
39803
+ "description": "Used to add contextual text that is displayed above the textarea, on the right. Alternatively, you can use the `context-note` attribute.",
39804
+ "name": "context-note"
39805
+ },
39806
+ {
39807
+ "description": "Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.",
39808
+ "name": "help-text"
39745
39809
  }
39746
39810
  ],
39747
39811
  "members": [
39748
39812
  {
39749
39813
  "kind": "field",
39750
- "name": "masterId",
39751
- "type": {
39752
- "text": "string"
39753
- },
39754
- "attribute": "master-id",
39755
- "reflects": true
39814
+ "name": "formControlController",
39815
+ "privacy": "private",
39816
+ "readonly": true,
39817
+ "default": "new FormControlController(this, { assumeInteractionOn: ['zn-blur', 'zn-input'] })"
39756
39818
  },
39757
39819
  {
39758
39820
  "kind": "field",
39759
- "name": "defaultUri",
39760
- "type": {
39761
- "text": "string"
39762
- },
39763
- "default": "''",
39764
- "attribute": "default-uri",
39765
- "reflects": true
39821
+ "name": "hasSlotController",
39822
+ "privacy": "private",
39823
+ "readonly": true,
39824
+ "default": "new HasSlotController(this, 'help-text', 'label')"
39766
39825
  },
39767
39826
  {
39768
39827
  "kind": "field",
39769
- "name": "_current",
39770
- "type": {
39771
- "text": "string"
39772
- },
39773
- "default": "''",
39774
- "attribute": "active",
39775
- "reflects": true
39828
+ "name": "resizeObserver",
39829
+ "privacy": "private",
39830
+ "readonly": true,
39831
+ "default": "new ResizeController(this, { target: null, callback: () => this.setTextareaHeight(), })"
39776
39832
  },
39777
39833
  {
39778
39834
  "kind": "field",
39779
- "name": "_split",
39835
+ "name": "_didInitFromContent",
39780
39836
  "type": {
39781
- "text": "number"
39837
+ "text": "boolean"
39782
39838
  },
39783
- "attribute": "split",
39784
- "reflects": true
39839
+ "privacy": "private",
39840
+ "default": "false",
39841
+ "description": "Ensures we only attempt to derive the initial value from light DOM content once"
39785
39842
  },
39786
39843
  {
39787
39844
  "kind": "field",
39788
- "name": "_splitMin",
39845
+ "name": "formControl",
39789
39846
  "type": {
39790
- "text": "number"
39791
- },
39792
- "default": "60",
39793
- "attribute": "split-min",
39794
- "reflects": true
39847
+ "text": "HTMLElement"
39848
+ }
39795
39849
  },
39796
39850
  {
39797
39851
  "kind": "field",
39798
- "name": "_splitMinSecondary",
39852
+ "name": "input",
39799
39853
  "type": {
39800
- "text": "number"
39801
- },
39802
- "attribute": "split-min-secondary",
39803
- "reflects": true
39854
+ "text": "HTMLTextAreaElement"
39855
+ }
39804
39856
  },
39805
39857
  {
39806
39858
  "kind": "field",
39807
- "name": "_splitMax",
39859
+ "name": "hasFocus",
39808
39860
  "type": {
39809
- "text": "number"
39861
+ "text": "boolean"
39810
39862
  },
39811
- "attribute": "split-max",
39812
- "reflects": true
39863
+ "default": "false"
39813
39864
  },
39814
39865
  {
39815
39866
  "kind": "field",
39816
- "name": "primaryCaption",
39867
+ "name": "title",
39817
39868
  "type": {
39818
39869
  "text": "string"
39819
39870
  },
39820
- "default": "'Navigation'",
39821
- "attribute": "primary-caption",
39822
- "reflects": true
39871
+ "default": "''",
39872
+ "attribute": "title"
39823
39873
  },
39824
39874
  {
39825
39875
  "kind": "field",
39826
- "name": "secondaryCaption",
39876
+ "name": "name",
39827
39877
  "type": {
39828
39878
  "text": "string"
39829
39879
  },
39830
- "default": "'Content'",
39831
- "attribute": "secondary-caption",
39832
- "reflects": true
39880
+ "default": "''",
39881
+ "description": "The name of the textarea, submitted as a name/value pair with form data.",
39882
+ "attribute": "name"
39833
39883
  },
39834
39884
  {
39835
39885
  "kind": "field",
39836
- "name": "noPrefetch",
39886
+ "name": "value",
39837
39887
  "type": {
39838
- "text": "boolean"
39888
+ "text": "string"
39839
39889
  },
39840
- "default": "false",
39841
- "attribute": "no-prefetch",
39842
- "reflects": true
39890
+ "default": "''",
39891
+ "description": "The current value of the textarea, submitted as a name/value pair with form data.",
39892
+ "attribute": "value"
39843
39893
  },
39844
39894
  {
39845
39895
  "kind": "field",
39846
- "name": "noCache",
39896
+ "name": "size",
39847
39897
  "type": {
39848
- "text": "boolean"
39898
+ "text": "'small' | 'medium' | 'large'"
39849
39899
  },
39850
- "default": "false",
39851
- "attribute": "no-cache",
39900
+ "default": "'medium'",
39901
+ "description": "The text area's size.",
39902
+ "attribute": "size",
39852
39903
  "reflects": true
39853
39904
  },
39854
39905
  {
39855
39906
  "kind": "field",
39856
- "name": "localStorage",
39907
+ "name": "label",
39857
39908
  "type": {
39858
- "text": "boolean"
39909
+ "text": "string"
39859
39910
  },
39860
- "attribute": "local-storage",
39861
- "reflects": true
39911
+ "default": "''",
39912
+ "description": "The textarea label. If you need to display HTML, use the `label` slot instead.",
39913
+ "attribute": "label"
39862
39914
  },
39863
39915
  {
39864
39916
  "kind": "field",
39865
- "name": "storeKey",
39917
+ "name": "labelTooltip",
39866
39918
  "type": {
39867
39919
  "text": "string"
39868
39920
  },
39869
- "attribute": "store-key"
39921
+ "default": "''",
39922
+ "description": "Text that appears in a tooltip next to the label. If you need to display HTML in the tooltip, use the `label-tooltip` slot instead.",
39923
+ "attribute": "label-tooltip"
39870
39924
  },
39871
39925
  {
39872
39926
  "kind": "field",
39873
- "name": "storeTtl",
39927
+ "name": "contextNote",
39874
39928
  "type": {
39875
- "text": "number"
39929
+ "text": "string"
39876
39930
  },
39877
- "default": "0",
39878
- "attribute": "store-ttl",
39879
- "reflects": true
39931
+ "default": "''",
39932
+ "description": "Text that appears above the textarea, on the right, to add additional context. If you need to display HTML in this text, use the `context-note` slot instead.",
39933
+ "attribute": "context-note"
39880
39934
  },
39881
39935
  {
39882
39936
  "kind": "field",
39883
- "name": "padded",
39937
+ "name": "helpText",
39884
39938
  "type": {
39885
- "text": "boolean"
39939
+ "text": "string"
39886
39940
  },
39887
- "default": "false",
39888
- "attribute": "padded",
39889
- "reflects": true
39941
+ "default": "''",
39942
+ "description": "The text area's help text. If you need to display HTML, use the `help-text` slot instead.",
39943
+ "attribute": "help-text"
39890
39944
  },
39891
39945
  {
39892
39946
  "kind": "field",
39893
- "name": "fetchStyle",
39947
+ "name": "placeholder",
39894
39948
  "type": {
39895
39949
  "text": "string"
39896
39950
  },
39897
- "default": "\"\"",
39898
- "attribute": "fetch-style",
39899
- "reflects": true
39951
+ "default": "''",
39952
+ "description": "Placeholder text to show as a hint when the input is empty.",
39953
+ "attribute": "placeholder"
39900
39954
  },
39901
39955
  {
39902
39956
  "kind": "field",
39903
- "name": "fullWidth",
39957
+ "name": "rows",
39958
+ "type": {
39959
+ "text": "number"
39960
+ },
39961
+ "default": "4",
39962
+ "description": "The number of rows to display by default.",
39963
+ "attribute": "rows"
39964
+ },
39965
+ {
39966
+ "kind": "field",
39967
+ "name": "resize",
39968
+ "type": {
39969
+ "text": "'none' | 'vertical' | 'auto'"
39970
+ },
39971
+ "default": "'vertical'",
39972
+ "description": "Controls how the textarea can be resized.",
39973
+ "attribute": "resize"
39974
+ },
39975
+ {
39976
+ "kind": "field",
39977
+ "name": "disabled",
39904
39978
  "type": {
39905
39979
  "text": "boolean"
39906
39980
  },
39907
39981
  "default": "false",
39908
- "attribute": "full-width",
39982
+ "description": "Disables the textarea.",
39983
+ "attribute": "disabled",
39909
39984
  "reflects": true
39910
39985
  },
39911
39986
  {
39912
39987
  "kind": "field",
39913
- "name": "paddedRight",
39988
+ "name": "readonly",
39914
39989
  "type": {
39915
39990
  "text": "boolean"
39916
39991
  },
39917
39992
  "default": "false",
39918
- "attribute": "padded-right",
39993
+ "description": "Makes the textarea readonly.",
39994
+ "attribute": "readonly",
39919
39995
  "reflects": true
39920
39996
  },
39921
39997
  {
39922
39998
  "kind": "field",
39923
- "name": "monitor",
39999
+ "name": "form",
39924
40000
  "type": {
39925
40001
  "text": "string"
39926
40002
  },
39927
- "attribute": "monitor"
40003
+ "default": "''",
40004
+ "description": "By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you\nto place the form control outside of a form and associate it with the form that has this `id`. The form must be in\nthe same document or shadow root for this to work.",
40005
+ "attribute": "form",
40006
+ "reflects": true
39928
40007
  },
39929
40008
  {
39930
40009
  "kind": "field",
39931
- "name": "caption",
40010
+ "name": "flush",
39932
40011
  "type": {
39933
- "text": "string"
40012
+ "text": "boolean"
39934
40013
  },
39935
- "attribute": "caption"
40014
+ "default": "false",
40015
+ "attribute": "flush",
40016
+ "reflects": true
39936
40017
  },
39937
40018
  {
39938
40019
  "kind": "field",
39939
- "name": "description",
40020
+ "name": "required",
39940
40021
  "type": {
39941
- "text": "string"
40022
+ "text": "boolean"
39942
40023
  },
39943
- "attribute": "description"
40024
+ "default": "false",
40025
+ "description": "Makes the textarea a required field.",
40026
+ "attribute": "required",
40027
+ "reflects": true
39944
40028
  },
39945
40029
  {
39946
40030
  "kind": "field",
39947
- "name": "preload",
40031
+ "name": "minlength",
39948
40032
  "type": {
39949
- "text": "boolean"
40033
+ "text": "number"
39950
40034
  },
39951
- "privacy": "protected",
39952
- "default": "true"
40035
+ "description": "The minimum length of input that will be considered valid.",
40036
+ "attribute": "minlength"
39953
40037
  },
39954
40038
  {
39955
40039
  "kind": "field",
39956
- "name": "_store",
40040
+ "name": "maxlength",
39957
40041
  "type": {
39958
- "text": "Store"
40042
+ "text": "number"
39959
40043
  },
39960
- "privacy": "protected"
40044
+ "description": "The maximum length of input that will be considered valid.",
40045
+ "attribute": "maxlength"
39961
40046
  },
39962
40047
  {
39963
40048
  "kind": "field",
39964
- "name": "_activeClicks",
40049
+ "name": "autocapitalize",
39965
40050
  "type": {
39966
- "text": "number"
40051
+ "text": "'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters'"
39967
40052
  },
39968
- "privacy": "protected",
39969
- "default": "0"
40053
+ "description": "Controls whether and how text input is automatically capitalized as it is entered by the user.",
40054
+ "attribute": "autocapitalize"
39970
40055
  },
39971
40056
  {
39972
40057
  "kind": "field",
39973
- "name": "_panel",
40058
+ "name": "autocorrect",
39974
40059
  "type": {
39975
- "text": "Element | null | undefined"
40060
+ "text": "string"
39976
40061
  },
39977
- "privacy": "private"
40062
+ "description": "Indicates whether the browser's autocorrect feature is on or off.",
40063
+ "attribute": "autocorrect"
39978
40064
  },
39979
40065
  {
39980
40066
  "kind": "field",
39981
- "name": "_panels",
40067
+ "name": "autocomplete",
39982
40068
  "type": {
39983
- "text": "Map<string, Element[]>"
40069
+ "text": "string"
39984
40070
  },
39985
- "privacy": "private",
39986
- "default": "new Map<string, Element[]>()"
40071
+ "description": "Specifies what permission the browser has to provide assistance in filling out form field values. Refer to\n[this page on MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) for available values.",
40072
+ "attribute": "autocomplete"
39987
40073
  },
39988
40074
  {
39989
40075
  "kind": "field",
39990
- "name": "_activeTab",
40076
+ "name": "autofocus",
39991
40077
  "type": {
39992
- "text": "Element | null"
40078
+ "text": "boolean"
39993
40079
  },
39994
- "privacy": "private",
39995
- "default": "null"
40080
+ "description": "Indicates that the input should receive focus on page load.",
40081
+ "attribute": "autofocus"
39996
40082
  },
39997
40083
  {
39998
40084
  "kind": "field",
39999
- "name": "_tabs",
40085
+ "name": "enterkeyhint",
40000
40086
  "type": {
40001
- "text": "HTMLElement[]"
40087
+ "text": "'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send'"
40002
40088
  },
40003
- "privacy": "private",
40004
- "default": "[]"
40089
+ "description": "Used to customize the label or icon of the Enter key on virtual keyboards.",
40090
+ "attribute": "enterkeyhint"
40005
40091
  },
40006
40092
  {
40007
40093
  "kind": "field",
40008
- "name": "_actions",
40094
+ "name": "spellcheck",
40009
40095
  "type": {
40010
- "text": "HTMLElement[]"
40096
+ "text": "boolean"
40011
40097
  },
40012
- "privacy": "private",
40013
- "default": "[]"
40098
+ "default": "true",
40099
+ "description": "Enables spell checking on the textarea.",
40100
+ "attribute": "spellcheck"
40014
40101
  },
40015
40102
  {
40016
40103
  "kind": "field",
40017
- "name": "_knownUri",
40104
+ "name": "inputmode",
40018
40105
  "type": {
40019
- "text": "Map<string, string>"
40106
+ "text": "'none' | 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url'"
40020
40107
  },
40021
- "privacy": "private",
40022
- "default": "new Map<string, string>()"
40108
+ "description": "Tells the browser what type of data will be entered by the user, allowing it to display the appropriate virtual\nkeyboard on supportive devices.",
40109
+ "attribute": "inputmode"
40023
40110
  },
40024
40111
  {
40025
40112
  "kind": "field",
40026
- "name": "_defaultTab",
40113
+ "name": "defaultValue",
40027
40114
  "type": {
40028
40115
  "text": "string"
40029
40116
  },
40030
- "privacy": "private",
40031
- "default": "''"
40117
+ "default": "''",
40118
+ "description": "The default value of the form control. Primarily used for resetting the form control."
40032
40119
  },
40033
40120
  {
40034
40121
  "kind": "field",
40035
- "name": "hasSlotController",
40036
- "privacy": "private",
40037
- "readonly": true,
40038
- "default": "new HasSlotController(this, '[default]', 'bottom', 'right', 'left', 'top', 'actions')"
40122
+ "name": "transparent",
40123
+ "type": {
40124
+ "text": "boolean"
40125
+ },
40126
+ "default": "false",
40127
+ "attribute": "transparent"
40039
40128
  },
40040
40129
  {
40041
40130
  "kind": "field",
40042
- "name": "_domObserver",
40043
- "privacy": "private",
40044
- "readonly": true,
40045
- "default": "new MutationController(this, { target: null, config: {childList: true, subtree: true}, callback: mutations => { mutations.forEach(mutation => { if (mutation.type !== 'childList') return; if (mutation.addedNodes.length > 0) { this._registerTabs(); } if (mutation.removedNodes.length > 0) { mutation.removedNodes.forEach(node => { const id = node instanceof HTMLElement ? node.id : ''; if (id) this.removeTabAndPanel(id); }); } }); }, })"
40131
+ "name": "validity",
40132
+ "description": "Gets the validity state object",
40133
+ "readonly": true
40046
40134
  },
40047
40135
  {
40048
40136
  "kind": "field",
40049
- "name": "_monitorObserver",
40050
- "privacy": "private",
40051
- "readonly": true,
40052
- "default": "new MutationController(this, { target: null, config: {childList: true, subtree: true}, callback: mutations => { mutations.forEach(mutation => { if (mutation.type !== 'childList') return; mutation.addedNodes.forEach(node => { if (node instanceof HTMLElement && node.id === this.monitor) { this.reRegisterTabs(); const storedValue = this.getStoredTab(); if (storedValue !== null) { this.restoreStoredTab(storedValue); } } }); }); }, })"
40137
+ "name": "validationMessage",
40138
+ "description": "Gets the validation message",
40139
+ "readonly": true
40053
40140
  },
40054
40141
  {
40055
40142
  "kind": "method",
40056
- "name": "monitorDom"
40143
+ "name": "handleBlur",
40144
+ "privacy": "private"
40057
40145
  },
40058
40146
  {
40059
40147
  "kind": "method",
40060
- "name": "getTabStoreKey",
40061
- "privacy": "protected",
40062
- "return": {
40063
- "type": {
40064
- "text": "string | null"
40065
- }
40066
- },
40067
- "description": "The key the active tab is persisted under. Null disables persistence."
40148
+ "name": "handleChange",
40149
+ "privacy": "private"
40068
40150
  },
40069
40151
  {
40070
40152
  "kind": "method",
40071
- "name": "getStoredTab",
40072
- "privacy": "protected",
40073
- "return": {
40074
- "type": {
40075
- "text": "string | null"
40076
- }
40077
- }
40153
+ "name": "handleFocus",
40154
+ "privacy": "private"
40078
40155
  },
40079
40156
  {
40080
40157
  "kind": "method",
40081
- "name": "storeActiveTab",
40082
- "privacy": "protected",
40083
- "parameters": [
40084
- {
40085
- "name": "tabName",
40086
- "type": {
40087
- "text": "string"
40088
- }
40089
- }
40090
- ]
40158
+ "name": "handleInput",
40159
+ "privacy": "private"
40091
40160
  },
40092
40161
  {
40093
40162
  "kind": "method",
40094
- "name": "restoreStoredTab",
40095
- "privacy": "protected",
40163
+ "name": "handleInvalid",
40164
+ "privacy": "private",
40096
40165
  "parameters": [
40097
40166
  {
40098
- "name": "stored",
40167
+ "name": "event",
40099
40168
  "type": {
40100
- "text": "string"
40169
+ "text": "Event"
40101
40170
  }
40102
40171
  }
40103
40172
  ]
40104
40173
  },
40105
40174
  {
40106
40175
  "kind": "method",
40107
- "name": "activateDefaultTab",
40108
- "privacy": "protected",
40109
- "description": "Activates the tab the container starts on, ignoring any stored selection."
40110
- },
40111
- {
40112
- "kind": "field",
40113
- "name": "handlePopState",
40114
- "privacy": "private",
40115
- "readonly": true
40116
- },
40117
- {
40118
- "kind": "method",
40119
- "name": "pushTabHistory",
40176
+ "name": "handleKeyDown",
40120
40177
  "privacy": "private",
40121
40178
  "parameters": [
40122
40179
  {
40123
- "name": "tabName",
40180
+ "name": "event",
40124
40181
  "type": {
40125
- "text": "string"
40182
+ "text": "KeyboardEvent"
40126
40183
  }
40127
40184
  }
40128
40185
  ]
40129
40186
  },
40130
40187
  {
40131
40188
  "kind": "method",
40132
- "name": "getUriForTabId",
40133
- "privacy": "private",
40134
- "return": {
40135
- "type": {
40136
- "text": "string | null"
40137
- }
40138
- },
40139
- "parameters": [
40140
- {
40141
- "name": "tabId",
40142
- "type": {
40143
- "text": "string"
40144
- }
40145
- }
40146
- ]
40189
+ "name": "setTextareaHeight",
40190
+ "privacy": "private"
40147
40191
  },
40148
40192
  {
40149
40193
  "kind": "method",
40150
- "name": "_addPanel",
40151
- "parameters": [
40152
- {
40153
- "name": "panel",
40154
- "type": {
40155
- "text": "HTMLElement"
40156
- }
40157
- }
40158
- ]
40194
+ "name": "handleDisabledChange"
40159
40195
  },
40160
40196
  {
40161
40197
  "kind": "method",
40162
- "name": "_addTab",
40163
- "parameters": [
40164
- {
40165
- "name": "tab",
40166
- "type": {
40167
- "text": "HTMLElement"
40168
- }
40169
- }
40170
- ]
40198
+ "name": "handleRowsChange"
40171
40199
  },
40172
40200
  {
40173
- "kind": "field",
40174
- "name": "reRegisterTabs"
40201
+ "kind": "method",
40202
+ "name": "handleValueChange"
40175
40203
  },
40176
40204
  {
40177
40205
  "kind": "method",
40178
- "name": "switchTab",
40206
+ "name": "focus",
40179
40207
  "parameters": [
40180
40208
  {
40181
- "name": "inc",
40209
+ "name": "options",
40210
+ "optional": true,
40182
40211
  "type": {
40183
- "text": "number"
40212
+ "text": "FocusOptions"
40184
40213
  }
40185
40214
  }
40186
- ]
40187
- },
40188
- {
40189
- "kind": "method",
40190
- "name": "nextTab"
40191
- },
40192
- {
40193
- "kind": "method",
40194
- "name": "previousTab"
40215
+ ],
40216
+ "description": "Sets focus on the textarea."
40195
40217
  },
40196
40218
  {
40197
40219
  "kind": "method",
40198
- "name": "_prepareTab",
40199
- "parameters": [
40200
- {
40201
- "name": "tabId",
40202
- "type": {
40203
- "text": "string"
40204
- }
40205
- }
40206
- ]
40220
+ "name": "blur",
40221
+ "description": "Removes focus from the textarea."
40207
40222
  },
40208
40223
  {
40209
40224
  "kind": "method",
40210
- "name": "_uriToId",
40211
- "return": {
40212
- "type": {
40213
- "text": "string"
40214
- }
40215
- },
40216
- "parameters": [
40217
- {
40218
- "name": "tabUri",
40219
- "type": {
40220
- "text": "string"
40221
- }
40222
- }
40223
- ]
40225
+ "name": "select",
40226
+ "description": "Selects all the text in the textarea."
40224
40227
  },
40225
40228
  {
40226
40229
  "kind": "method",
40227
- "name": "_createUriPanel",
40230
+ "name": "scrollPosition",
40228
40231
  "return": {
40229
40232
  "type": {
40230
- "text": "HTMLDivElement"
40233
+ "text": "{ top: number; left: number } | undefined"
40231
40234
  }
40232
40235
  },
40233
40236
  "parameters": [
40234
40237
  {
40235
- "name": "tabEle",
40236
- "type": {
40237
- "text": "Element"
40238
- }
40239
- },
40240
- {
40241
- "name": "tabUri",
40242
- "type": {
40243
- "text": "string"
40244
- }
40245
- },
40246
- {
40247
- "name": "tabId",
40248
- "type": {
40249
- "text": "string"
40250
- }
40251
- }
40252
- ]
40253
- },
40254
- {
40255
- "kind": "method",
40256
- "name": "_handleClick",
40257
- "parameters": [
40258
- {
40259
- "name": "event",
40260
- "type": {
40261
- "text": "PointerEvent"
40262
- }
40263
- }
40264
- ]
40265
- },
40266
- {
40267
- "kind": "method",
40268
- "name": "fetchUriTab",
40269
- "parameters": [
40270
- {
40271
- "name": "target",
40238
+ "name": "position",
40239
+ "optional": true,
40272
40240
  "type": {
40273
- "text": "HTMLElement"
40241
+ "text": "{ top?: number; left?: number }"
40274
40242
  }
40275
40243
  }
40276
- ]
40244
+ ],
40245
+ "description": "Gets or sets the textarea scroll position."
40277
40246
  },
40278
40247
  {
40279
40248
  "kind": "method",
40280
- "name": "clickTab",
40249
+ "name": "setSelectionRange",
40281
40250
  "parameters": [
40282
40251
  {
40283
- "name": "target",
40252
+ "name": "selectionStart",
40284
40253
  "type": {
40285
- "text": "HTMLElement"
40254
+ "text": "number"
40286
40255
  }
40287
40256
  },
40288
40257
  {
40289
- "name": "refresh",
40258
+ "name": "selectionEnd",
40290
40259
  "type": {
40291
- "text": "boolean"
40260
+ "text": "number"
40292
40261
  }
40293
40262
  },
40294
40263
  {
40295
- "name": "pushHistory",
40296
- "default": "false"
40297
- }
40298
- ]
40299
- },
40300
- {
40301
- "kind": "method",
40302
- "name": "getRefTab",
40303
- "parameters": [
40304
- {
40305
- "name": "target",
40264
+ "name": "selectionDirection",
40265
+ "default": "'none'",
40306
40266
  "type": {
40307
- "text": "HTMLElement"
40267
+ "text": "'forward' | 'backward' | 'none'"
40308
40268
  }
40309
40269
  }
40310
- ]
40270
+ ],
40271
+ "description": "Sets the start and end positions of the text selection (0-based)."
40311
40272
  },
40312
40273
  {
40313
40274
  "kind": "method",
40314
- "name": "setActiveTab",
40275
+ "name": "setRangeText",
40315
40276
  "parameters": [
40316
40277
  {
40317
- "name": "tabName",
40278
+ "name": "replacement",
40318
40279
  "type": {
40319
40280
  "text": "string"
40320
40281
  }
40321
40282
  },
40322
40283
  {
40323
- "name": "store",
40324
- "type": {
40325
- "text": "boolean"
40326
- }
40327
- },
40328
- {
40329
- "name": "refresh",
40330
- "type": {
40331
- "text": "boolean"
40332
- }
40333
- },
40334
- {
40335
- "name": "refTab",
40336
- "default": "null",
40337
- "type": {
40338
- "text": "string | null"
40339
- }
40340
- },
40341
- {
40342
- "name": "pushHistory",
40343
- "default": "false"
40344
- }
40345
- ]
40346
- },
40347
- {
40348
- "kind": "method",
40349
- "name": "_setTabEleActive",
40350
- "parameters": [
40351
- {
40352
- "name": "ele",
40284
+ "name": "start",
40285
+ "optional": true,
40353
40286
  "type": {
40354
- "text": "Element"
40287
+ "text": "number"
40355
40288
  }
40356
40289
  },
40357
40290
  {
40358
- "name": "active",
40359
- "type": {
40360
- "text": "boolean"
40361
- }
40362
- }
40363
- ]
40364
- },
40365
- {
40366
- "kind": "method",
40367
- "name": "selectTab",
40368
- "return": {
40369
- "type": {
40370
- "text": "boolean"
40371
- }
40372
- },
40373
- "parameters": [
40374
- {
40375
- "name": "tabName",
40291
+ "name": "end",
40292
+ "optional": true,
40376
40293
  "type": {
40377
- "text": "string"
40294
+ "text": "number"
40378
40295
  }
40379
40296
  },
40380
40297
  {
40381
- "name": "refresh",
40298
+ "name": "selectMode",
40299
+ "default": "'preserve'",
40382
40300
  "type": {
40383
- "text": "boolean"
40301
+ "text": "'select' | 'start' | 'end' | 'preserve'"
40384
40302
  }
40385
40303
  }
40386
- ]
40304
+ ],
40305
+ "description": "Replaces a range of text with a new string."
40387
40306
  },
40388
40307
  {
40389
40308
  "kind": "method",
40390
- "name": "getActiveTab",
40309
+ "name": "checkValidity",
40310
+ "description": "Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid."
40311
+ },
40312
+ {
40313
+ "kind": "method",
40314
+ "name": "getForm",
40391
40315
  "return": {
40392
40316
  "type": {
40393
- "text": "Element[]"
40317
+ "text": "HTMLFormElement | null"
40394
40318
  }
40395
- }
40319
+ },
40320
+ "description": "Gets the associated form, if one exists."
40396
40321
  },
40397
40322
  {
40398
40323
  "kind": "method",
40399
- "name": "observerDom"
40324
+ "name": "reportValidity",
40325
+ "description": "Checks for validity and shows the browser's validation message if the control is invalid."
40400
40326
  },
40401
40327
  {
40402
40328
  "kind": "method",
40403
- "name": "removeTabAndPanel",
40329
+ "name": "setCustomValidity",
40404
40330
  "parameters": [
40405
40331
  {
40406
- "name": "tabId",
40332
+ "name": "message",
40407
40333
  "type": {
40408
40334
  "text": "string"
40409
40335
  }
40410
40336
  }
40411
- ]
40412
- },
40413
- {
40414
- "kind": "field",
40415
- "name": "_registerTabs"
40337
+ ],
40338
+ "description": "Sets a custom validation message. Pass an empty string to restore validity."
40416
40339
  }
40417
40340
  ],
40418
40341
  "events": [
40419
40342
  {
40420
- "description": "Emitted as an example.",
40421
- "name": "zn-event-name"
40343
+ "description": "Emitted when the control loses focus.",
40344
+ "name": "zn-blur"
40345
+ },
40346
+ {
40347
+ "description": "Emitted when an alteration to the control's value is committed by the user.",
40348
+ "name": "zn-change"
40349
+ },
40350
+ {
40351
+ "description": "Emitted when the control gains focus.",
40352
+ "name": "zn-focus"
40353
+ },
40354
+ {
40355
+ "description": "Emitted when the control receives input.",
40356
+ "name": "zn-input"
40357
+ },
40358
+ {
40359
+ "description": "Emitted when the form control has been checked for validity and its constraints aren't satisfied.",
40360
+ "name": "zn-invalid"
40422
40361
  }
40423
40362
  ],
40424
40363
  "attributes": [
40425
40364
  {
40426
- "name": "master-id",
40365
+ "name": "title",
40427
40366
  "type": {
40428
40367
  "text": "string"
40429
40368
  },
40430
- "fieldName": "masterId"
40369
+ "default": "''",
40370
+ "fieldName": "title"
40431
40371
  },
40432
40372
  {
40433
- "name": "default-uri",
40373
+ "name": "name",
40434
40374
  "type": {
40435
40375
  "text": "string"
40436
40376
  },
40437
40377
  "default": "''",
40438
- "fieldName": "defaultUri"
40378
+ "description": "The name of the textarea, submitted as a name/value pair with form data.",
40379
+ "fieldName": "name"
40439
40380
  },
40440
40381
  {
40441
- "name": "active",
40382
+ "name": "value",
40442
40383
  "type": {
40443
40384
  "text": "string"
40444
40385
  },
40445
40386
  "default": "''",
40446
- "fieldName": "_current"
40387
+ "description": "The current value of the textarea, submitted as a name/value pair with form data.",
40388
+ "fieldName": "value"
40447
40389
  },
40448
40390
  {
40449
- "name": "split",
40391
+ "name": "size",
40450
40392
  "type": {
40451
- "text": "number"
40393
+ "text": "'small' | 'medium' | 'large'"
40452
40394
  },
40453
- "fieldName": "_split"
40395
+ "default": "'medium'",
40396
+ "description": "The text area's size.",
40397
+ "fieldName": "size"
40454
40398
  },
40455
40399
  {
40456
- "name": "split-min",
40400
+ "name": "label",
40457
40401
  "type": {
40458
- "text": "number"
40402
+ "text": "string"
40459
40403
  },
40460
- "default": "60",
40461
- "fieldName": "_splitMin"
40404
+ "default": "''",
40405
+ "description": "The textarea label. If you need to display HTML, use the `label` slot instead.",
40406
+ "fieldName": "label"
40462
40407
  },
40463
40408
  {
40464
- "name": "split-min-secondary",
40409
+ "name": "label-tooltip",
40465
40410
  "type": {
40466
- "text": "number"
40411
+ "text": "string"
40467
40412
  },
40468
- "fieldName": "_splitMinSecondary"
40413
+ "default": "''",
40414
+ "description": "Text that appears in a tooltip next to the label. If you need to display HTML in the tooltip, use the `label-tooltip` slot instead.",
40415
+ "fieldName": "labelTooltip"
40469
40416
  },
40470
40417
  {
40471
- "name": "split-max",
40418
+ "name": "context-note",
40472
40419
  "type": {
40473
- "text": "number"
40420
+ "text": "string"
40474
40421
  },
40475
- "fieldName": "_splitMax"
40422
+ "default": "''",
40423
+ "description": "Text that appears above the textarea, on the right, to add additional context. If you need to display HTML in this text, use the `context-note` slot instead.",
40424
+ "fieldName": "contextNote"
40476
40425
  },
40477
40426
  {
40478
- "name": "primary-caption",
40427
+ "name": "help-text",
40479
40428
  "type": {
40480
40429
  "text": "string"
40481
40430
  },
40482
- "default": "'Navigation'",
40483
- "fieldName": "primaryCaption"
40431
+ "default": "''",
40432
+ "description": "The text area's help text. If you need to display HTML, use the `help-text` slot instead.",
40433
+ "fieldName": "helpText"
40484
40434
  },
40485
40435
  {
40486
- "name": "secondary-caption",
40436
+ "name": "placeholder",
40487
40437
  "type": {
40488
40438
  "text": "string"
40489
40439
  },
40490
- "default": "'Content'",
40491
- "fieldName": "secondaryCaption"
40440
+ "default": "''",
40441
+ "description": "Placeholder text to show as a hint when the input is empty.",
40442
+ "fieldName": "placeholder"
40492
40443
  },
40493
40444
  {
40494
- "name": "no-prefetch",
40445
+ "name": "rows",
40495
40446
  "type": {
40496
- "text": "boolean"
40447
+ "text": "number"
40497
40448
  },
40498
- "default": "false",
40499
- "fieldName": "noPrefetch"
40449
+ "default": "4",
40450
+ "description": "The number of rows to display by default.",
40451
+ "fieldName": "rows"
40500
40452
  },
40501
40453
  {
40502
- "name": "no-cache",
40454
+ "name": "resize",
40455
+ "type": {
40456
+ "text": "'none' | 'vertical' | 'auto'"
40457
+ },
40458
+ "default": "'vertical'",
40459
+ "description": "Controls how the textarea can be resized.",
40460
+ "fieldName": "resize"
40461
+ },
40462
+ {
40463
+ "name": "disabled",
40503
40464
  "type": {
40504
40465
  "text": "boolean"
40505
40466
  },
40506
40467
  "default": "false",
40507
- "fieldName": "noCache"
40468
+ "description": "Disables the textarea.",
40469
+ "fieldName": "disabled"
40508
40470
  },
40509
40471
  {
40510
- "name": "local-storage",
40472
+ "name": "readonly",
40511
40473
  "type": {
40512
40474
  "text": "boolean"
40513
40475
  },
40514
- "fieldName": "localStorage"
40476
+ "default": "false",
40477
+ "description": "Makes the textarea readonly.",
40478
+ "fieldName": "readonly"
40515
40479
  },
40516
40480
  {
40517
- "name": "store-key",
40481
+ "name": "form",
40518
40482
  "type": {
40519
40483
  "text": "string"
40520
40484
  },
40521
- "fieldName": "storeKey"
40485
+ "default": "''",
40486
+ "description": "By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you\nto place the form control outside of a form and associate it with the form that has this `id`. The form must be in\nthe same document or shadow root for this to work.",
40487
+ "fieldName": "form"
40522
40488
  },
40523
40489
  {
40524
- "name": "store-ttl",
40490
+ "name": "flush",
40525
40491
  "type": {
40526
- "text": "number"
40492
+ "text": "boolean"
40527
40493
  },
40528
- "default": "0",
40529
- "fieldName": "storeTtl"
40494
+ "default": "false",
40495
+ "fieldName": "flush"
40530
40496
  },
40531
40497
  {
40532
- "name": "padded",
40498
+ "name": "required",
40533
40499
  "type": {
40534
40500
  "text": "boolean"
40535
40501
  },
40536
40502
  "default": "false",
40537
- "fieldName": "padded"
40503
+ "description": "Makes the textarea a required field.",
40504
+ "fieldName": "required"
40538
40505
  },
40539
40506
  {
40540
- "name": "fetch-style",
40507
+ "name": "minlength",
40541
40508
  "type": {
40542
- "text": "string"
40509
+ "text": "number"
40543
40510
  },
40544
- "default": "\"\"",
40545
- "fieldName": "fetchStyle"
40511
+ "description": "The minimum length of input that will be considered valid.",
40512
+ "fieldName": "minlength"
40546
40513
  },
40547
40514
  {
40548
- "name": "full-width",
40515
+ "name": "maxlength",
40549
40516
  "type": {
40550
- "text": "boolean"
40517
+ "text": "number"
40551
40518
  },
40552
- "default": "false",
40553
- "fieldName": "fullWidth"
40519
+ "description": "The maximum length of input that will be considered valid.",
40520
+ "fieldName": "maxlength"
40554
40521
  },
40555
40522
  {
40556
- "name": "padded-right",
40523
+ "name": "autocapitalize",
40557
40524
  "type": {
40558
- "text": "boolean"
40525
+ "text": "'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters'"
40559
40526
  },
40560
- "default": "false",
40561
- "fieldName": "paddedRight"
40527
+ "description": "Controls whether and how text input is automatically capitalized as it is entered by the user.",
40528
+ "fieldName": "autocapitalize"
40562
40529
  },
40563
40530
  {
40564
- "name": "monitor",
40531
+ "name": "autocorrect",
40565
40532
  "type": {
40566
40533
  "text": "string"
40567
40534
  },
40568
- "fieldName": "monitor"
40535
+ "description": "Indicates whether the browser's autocorrect feature is on or off.",
40536
+ "fieldName": "autocorrect"
40569
40537
  },
40570
40538
  {
40571
- "name": "caption",
40539
+ "name": "autocomplete",
40572
40540
  "type": {
40573
40541
  "text": "string"
40574
40542
  },
40575
- "fieldName": "caption"
40543
+ "description": "Specifies what permission the browser has to provide assistance in filling out form field values. Refer to\n[this page on MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) for available values.",
40544
+ "fieldName": "autocomplete"
40576
40545
  },
40577
40546
  {
40578
- "name": "description",
40547
+ "name": "autofocus",
40579
40548
  "type": {
40580
- "text": "string"
40549
+ "text": "boolean"
40581
40550
  },
40582
- "fieldName": "description"
40551
+ "description": "Indicates that the input should receive focus on page load.",
40552
+ "fieldName": "autofocus"
40553
+ },
40554
+ {
40555
+ "name": "enterkeyhint",
40556
+ "type": {
40557
+ "text": "'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send'"
40558
+ },
40559
+ "description": "Used to customize the label or icon of the Enter key on virtual keyboards.",
40560
+ "fieldName": "enterkeyhint"
40561
+ },
40562
+ {
40563
+ "name": "spellcheck",
40564
+ "type": {
40565
+ "text": "boolean"
40566
+ },
40567
+ "default": "true",
40568
+ "description": "Enables spell checking on the textarea.",
40569
+ "fieldName": "spellcheck"
40570
+ },
40571
+ {
40572
+ "name": "inputmode",
40573
+ "type": {
40574
+ "text": "'none' | 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url'"
40575
+ },
40576
+ "description": "Tells the browser what type of data will be entered by the user, allowing it to display the appropriate virtual\nkeyboard on supportive devices.",
40577
+ "fieldName": "inputmode"
40578
+ },
40579
+ {
40580
+ "name": "transparent",
40581
+ "type": {
40582
+ "text": "boolean"
40583
+ },
40584
+ "default": "false",
40585
+ "fieldName": "transparent"
40583
40586
  }
40584
40587
  ],
40585
40588
  "superclass": {
40586
40589
  "name": "ZincElement",
40587
40590
  "module": "/src/internal/zinc-element"
40588
40591
  },
40589
- "summary": "Short summary of the component's intended use.",
40590
- "tagNameWithoutPrefix": "tabs",
40591
- "tagName": "zn-tabs",
40592
+ "summary": "Textareas collect data from the user and allow multiple lines of text.",
40593
+ "tagNameWithoutPrefix": "textarea",
40594
+ "tagName": "zn-textarea",
40592
40595
  "customElement": true,
40593
- "jsDoc": "/**\n * @summary Short summary of the component's intended use.\n * @documentation https://zinc.style/components/tabs\n * @status experimental\n * @since 1.0\n *\n * @dependency zn-example\n *\n * @event zn-event-name - Emitted as an example.\n *\n * @slot - The default slot.\n * @slot example - An example slot.\n *\n * @csspart base - The component's base wrapper.\n *\n * @cssproperty --example - An example CSS custom property.\n */",
40594
- "documentation": "https://zinc.style/components/tabs",
40595
- "status": "experimental",
40596
- "since": "1.0",
40597
- "dependencies": [
40598
- "zn-example"
40599
- ]
40596
+ "jsDoc": "/**\n * @summary Textareas collect data from the user and allow multiple lines of text.\n * @documentation https://zinc.style/components/textarea\n * @status stable\n * @since 2.0\n *\n * @slot label - The textareas label. Alternatively, you can use the `label` attribute.\n * @slot label-tooltip - Used to add text that is displayed in a tooltip next to the label. Alternatively, you can use the `label-tooltip` attribute.\n * @slot context-note - Used to add contextual text that is displayed above the textarea, on the right. Alternatively, you can use the `context-note` attribute.\n * @slot help-text - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.\n *\n * @event zn-blur - Emitted when the control loses focus.\n * @event zn-change - Emitted when an alteration to the control's value is committed by the user.\n * @event zn-focus - Emitted when the control gains focus.\n * @event zn-input - Emitted when the control receives input.\n * @event zn-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n *\n * @csspart form-control - The form control that wraps the label, input, and help text.\n * @csspart form-control-label - The label's wrapper.\n * @csspart form-control-input - The input's wrapper.\n * @csspart form-control-help-text - The help text's wrapper.\n * @csspart base - The component's base wrapper.\n * @csspart textarea - The internal `<textarea>` control.\n */",
40597
+ "documentation": "https://zinc.style/components/textarea",
40598
+ "status": "stable",
40599
+ "since": "2.0"
40600
40600
  }
40601
40601
  ],
40602
40602
  "exports": [
@@ -40604,8 +40604,8 @@
40604
40604
  "kind": "js",
40605
40605
  "name": "default",
40606
40606
  "declaration": {
40607
- "name": "ZnTabs",
40608
- "module": "components/tabs/tabs.js"
40607
+ "name": "ZnTextarea",
40608
+ "module": "components/textarea/textarea.js"
40609
40609
  }
40610
40610
  }
40611
40611
  ]
@@ -44374,7 +44374,7 @@
44374
44374
  "package": {
44375
44375
  "name": "@kubex/zinc",
44376
44376
  "description": "A collection of web components for building web applications based off of @shoelace-style/Shoelace",
44377
- "version": "1.1.76",
44377
+ "version": "1.1.77",
44378
44378
  "author": "",
44379
44379
  "license": "MIT"
44380
44380
  }