@skedulo/breeze-ui 1.12.0 → 1.13.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.
@@ -21406,6 +21406,14 @@
21406
21406
  "name": "*",
21407
21407
  "package": "./labeled-input"
21408
21408
  }
21409
+ },
21410
+ {
21411
+ "kind": "js",
21412
+ "name": "*",
21413
+ "declaration": {
21414
+ "name": "*",
21415
+ "package": "./toggle-switch"
21416
+ }
21409
21417
  }
21410
21418
  ]
21411
21419
  },
@@ -29850,6 +29858,387 @@
29850
29858
  }
29851
29859
  ]
29852
29860
  },
29861
+ {
29862
+ "kind": "javascript-module",
29863
+ "path": "src/components/form-elements/toggle-switch.ts",
29864
+ "declarations": [
29865
+ {
29866
+ "kind": "variable",
29867
+ "name": "TOGGLE_SWITCH"
29868
+ },
29869
+ {
29870
+ "kind": "class",
29871
+ "description": "ToggleSwitch component.",
29872
+ "name": "ToggleSwitch",
29873
+ "members": [
29874
+ {
29875
+ "kind": "field",
29876
+ "name": "checked",
29877
+ "type": {
29878
+ "text": "boolean"
29879
+ },
29880
+ "default": "false",
29881
+ "description": "Puts the toggle into checked state",
29882
+ "attribute": "checked",
29883
+ "reflects": true
29884
+ },
29885
+ {
29886
+ "kind": "field",
29887
+ "name": "disabled",
29888
+ "type": {
29889
+ "text": "boolean"
29890
+ },
29891
+ "default": "false",
29892
+ "description": "Disables the input field",
29893
+ "attribute": "disabled",
29894
+ "reflects": true,
29895
+ "inheritedFrom": {
29896
+ "name": "InputBase",
29897
+ "module": "src/components/form-elements/input-base.ts"
29898
+ }
29899
+ },
29900
+ {
29901
+ "kind": "field",
29902
+ "name": "leftLabel",
29903
+ "type": {
29904
+ "text": "boolean"
29905
+ },
29906
+ "default": "false",
29907
+ "description": "Puts the label to the left of the toggle",
29908
+ "attribute": "left-label",
29909
+ "reflects": true
29910
+ },
29911
+ {
29912
+ "kind": "field",
29913
+ "name": "value",
29914
+ "type": {
29915
+ "text": "ValueType | undefined"
29916
+ },
29917
+ "description": "Set the value to be associated with the toggle, if needed. Native\ntoggle input values always default to \"on\".",
29918
+ "attribute": "value",
29919
+ "default": "'on'",
29920
+ "inheritedFrom": {
29921
+ "name": "InputBase",
29922
+ "module": "src/components/form-elements/input-base.ts"
29923
+ }
29924
+ },
29925
+ {
29926
+ "kind": "field",
29927
+ "name": "switchOffLabel",
29928
+ "type": {
29929
+ "text": "string"
29930
+ },
29931
+ "default": "''",
29932
+ "description": "Inner label of the toggle switch when it is off.",
29933
+ "attribute": "switchOffLabel"
29934
+ },
29935
+ {
29936
+ "kind": "field",
29937
+ "name": "switchOnLabel",
29938
+ "type": {
29939
+ "text": "string"
29940
+ },
29941
+ "default": "''",
29942
+ "description": "Inner label of the toggle switch when it is on.",
29943
+ "attribute": "switchOnLabel"
29944
+ },
29945
+ {
29946
+ "kind": "field",
29947
+ "name": "label",
29948
+ "type": {
29949
+ "text": "string"
29950
+ },
29951
+ "default": "''",
29952
+ "description": "Label of the toggle switch.",
29953
+ "attribute": "label",
29954
+ "reflects": true
29955
+ },
29956
+ {
29957
+ "kind": "method",
29958
+ "name": "onInput",
29959
+ "parameters": [
29960
+ {
29961
+ "name": "e",
29962
+ "type": {
29963
+ "text": "{ target: { value: ValueType } }"
29964
+ }
29965
+ }
29966
+ ],
29967
+ "inheritedFrom": {
29968
+ "name": "InputBase",
29969
+ "module": "src/components/form-elements/input-base.ts"
29970
+ }
29971
+ },
29972
+ {
29973
+ "kind": "method",
29974
+ "name": "handleKeyPress",
29975
+ "parameters": [
29976
+ {
29977
+ "name": "e",
29978
+ "type": {
29979
+ "text": "KeyboardEvent"
29980
+ }
29981
+ }
29982
+ ]
29983
+ },
29984
+ {
29985
+ "kind": "field",
29986
+ "name": "required",
29987
+ "type": {
29988
+ "text": "boolean"
29989
+ },
29990
+ "default": "false",
29991
+ "description": "Indicates that the input requires a value",
29992
+ "attribute": "required",
29993
+ "reflects": true,
29994
+ "inheritedFrom": {
29995
+ "name": "InputBase",
29996
+ "module": "src/components/form-elements/input-base.ts"
29997
+ }
29998
+ },
29999
+ {
30000
+ "kind": "field",
30001
+ "name": "invalid",
30002
+ "type": {
30003
+ "text": "boolean"
30004
+ },
30005
+ "default": "false",
30006
+ "description": "Makes the input invalid",
30007
+ "attribute": "invalid",
30008
+ "reflects": true,
30009
+ "inheritedFrom": {
30010
+ "name": "InputBase",
30011
+ "module": "src/components/form-elements/input-base.ts"
30012
+ }
30013
+ },
30014
+ {
30015
+ "kind": "field",
30016
+ "name": "name",
30017
+ "type": {
30018
+ "text": "string"
30019
+ },
30020
+ "default": "''",
30021
+ "description": "Sets the name attribute",
30022
+ "attribute": "name",
30023
+ "inheritedFrom": {
30024
+ "name": "InputBase",
30025
+ "module": "src/components/form-elements/input-base.ts"
30026
+ }
30027
+ },
30028
+ {
30029
+ "kind": "field",
30030
+ "name": "id",
30031
+ "type": {
30032
+ "text": "string"
30033
+ },
30034
+ "default": "'input'",
30035
+ "description": "Sets the id of the input",
30036
+ "attribute": "id",
30037
+ "inheritedFrom": {
30038
+ "name": "InputBase",
30039
+ "module": "src/components/form-elements/input-base.ts"
30040
+ }
30041
+ },
30042
+ {
30043
+ "kind": "method",
30044
+ "name": "dispatchChange",
30045
+ "description": "Dispatches a change event",
30046
+ "inheritedFrom": {
30047
+ "name": "InputBase",
30048
+ "module": "src/components/form-elements/input-base.ts"
30049
+ }
30050
+ },
30051
+ {
30052
+ "kind": "method",
30053
+ "name": "createProxyInput",
30054
+ "description": "Creates a proxy input element, used for easily accessing the field value outside of the shadow dom",
30055
+ "inheritedFrom": {
30056
+ "name": "InputBase",
30057
+ "module": "src/components/form-elements/input-base.ts"
30058
+ }
30059
+ },
30060
+ {
30061
+ "kind": "method",
30062
+ "name": "updateProxyInput",
30063
+ "description": "Updates the proxy input with a new value or name. This should always be called as part of\nthe main render cycle to ensure that it always has the most up to date values.",
30064
+ "inheritedFrom": {
30065
+ "name": "InputBase",
30066
+ "module": "src/components/form-elements/input-base.ts"
30067
+ }
30068
+ }
30069
+ ],
30070
+ "events": [
30071
+ {
30072
+ "name": "brz-input-change",
30073
+ "type": {
30074
+ "text": "InputChangeEvent"
30075
+ },
30076
+ "description": "Fires when the input value has changed, and carries the new value.",
30077
+ "inheritedFrom": {
30078
+ "name": "InputBase",
30079
+ "module": "src/components/form-elements/input-base.ts"
30080
+ }
30081
+ }
30082
+ ],
30083
+ "attributes": [
30084
+ {
30085
+ "name": "checked",
30086
+ "type": {
30087
+ "text": "boolean"
30088
+ },
30089
+ "default": "false",
30090
+ "description": "Puts the toggle into checked state",
30091
+ "fieldName": "checked"
30092
+ },
30093
+ {
30094
+ "name": "disabled",
30095
+ "type": {
30096
+ "text": "boolean"
30097
+ },
30098
+ "default": "false",
30099
+ "description": "Disables the input field",
30100
+ "fieldName": "disabled",
30101
+ "inheritedFrom": {
30102
+ "name": "InputBase",
30103
+ "module": "src/components/form-elements/input-base.ts"
30104
+ }
30105
+ },
30106
+ {
30107
+ "name": "left-label",
30108
+ "type": {
30109
+ "text": "boolean"
30110
+ },
30111
+ "default": "false",
30112
+ "description": "Puts the label to the left of the toggle",
30113
+ "fieldName": "leftLabel"
30114
+ },
30115
+ {
30116
+ "name": "value",
30117
+ "type": {
30118
+ "text": "ValueType | undefined"
30119
+ },
30120
+ "description": "Set the value to be associated with the toggle, if needed. Native\ntoggle input values always default to \"on\".",
30121
+ "fieldName": "value",
30122
+ "default": "'on'",
30123
+ "inheritedFrom": {
30124
+ "name": "InputBase",
30125
+ "module": "src/components/form-elements/input-base.ts"
30126
+ }
30127
+ },
30128
+ {
30129
+ "name": "switchOffLabel",
30130
+ "type": {
30131
+ "text": "string"
30132
+ },
30133
+ "default": "''",
30134
+ "description": "Inner label of the toggle switch when it is off.",
30135
+ "fieldName": "switchOffLabel"
30136
+ },
30137
+ {
30138
+ "name": "switchOnLabel",
30139
+ "type": {
30140
+ "text": "string"
30141
+ },
30142
+ "default": "''",
30143
+ "description": "Inner label of the toggle switch when it is on.",
30144
+ "fieldName": "switchOnLabel"
30145
+ },
30146
+ {
30147
+ "name": "label",
30148
+ "type": {
30149
+ "text": "string"
30150
+ },
30151
+ "default": "''",
30152
+ "description": "Label of the toggle switch.",
30153
+ "fieldName": "label"
30154
+ },
30155
+ {
30156
+ "name": "required",
30157
+ "type": {
30158
+ "text": "boolean"
30159
+ },
30160
+ "default": "false",
30161
+ "description": "Indicates that the input requires a value",
30162
+ "fieldName": "required",
30163
+ "inheritedFrom": {
30164
+ "name": "InputBase",
30165
+ "module": "src/components/form-elements/input-base.ts"
30166
+ }
30167
+ },
30168
+ {
30169
+ "name": "invalid",
30170
+ "type": {
30171
+ "text": "boolean"
30172
+ },
30173
+ "default": "false",
30174
+ "description": "Makes the input invalid",
30175
+ "fieldName": "invalid",
30176
+ "inheritedFrom": {
30177
+ "name": "InputBase",
30178
+ "module": "src/components/form-elements/input-base.ts"
30179
+ }
30180
+ },
30181
+ {
30182
+ "name": "name",
30183
+ "type": {
30184
+ "text": "string"
30185
+ },
30186
+ "default": "''",
30187
+ "description": "Sets the name attribute",
30188
+ "fieldName": "name",
30189
+ "inheritedFrom": {
30190
+ "name": "InputBase",
30191
+ "module": "src/components/form-elements/input-base.ts"
30192
+ }
30193
+ },
30194
+ {
30195
+ "name": "id",
30196
+ "type": {
30197
+ "text": "string"
30198
+ },
30199
+ "default": "'input'",
30200
+ "description": "Sets the id of the input",
30201
+ "fieldName": "id",
30202
+ "inheritedFrom": {
30203
+ "name": "InputBase",
30204
+ "module": "src/components/form-elements/input-base.ts"
30205
+ }
30206
+ }
30207
+ ],
30208
+ "superclass": {
30209
+ "name": "InputBase",
30210
+ "module": "/src/components/form-elements/input-base"
30211
+ },
30212
+ "tagName": "brz-toggle-switch",
30213
+ "customElement": true
30214
+ }
30215
+ ],
30216
+ "exports": [
30217
+ {
30218
+ "kind": "js",
30219
+ "name": "TOGGLE_SWITCH",
30220
+ "declaration": {
30221
+ "name": "TOGGLE_SWITCH",
30222
+ "module": "src/components/form-elements/toggle-switch.ts"
30223
+ }
30224
+ },
30225
+ {
30226
+ "kind": "js",
30227
+ "name": "ToggleSwitch",
30228
+ "declaration": {
30229
+ "name": "ToggleSwitch",
30230
+ "module": "src/components/form-elements/toggle-switch.ts"
30231
+ }
30232
+ },
30233
+ {
30234
+ "kind": "custom-element-definition",
30235
+ "declaration": {
30236
+ "name": "ToggleSwitch",
30237
+ "module": "src/components/form-elements/toggle-switch.ts"
30238
+ }
30239
+ }
30240
+ ]
30241
+ },
29853
30242
  {
29854
30243
  "kind": "javascript-module",
29855
30244
  "path": "src/components/icon/icon.ts",