@skedulo/breeze-ui 1.12.0 → 1.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -787,6 +787,14 @@
787
787
  },
788
788
  "default": "[\n 'primary',\n 'secondary',\n 'transparent',\n 'transparent-primary',\n]"
789
789
  },
790
+ {
791
+ "kind": "variable",
792
+ "name": "htmlButtonTypes",
793
+ "type": {
794
+ "text": "['button', 'submit', 'reset']"
795
+ },
796
+ "default": "['button', 'submit', 'reset']"
797
+ },
790
798
  {
791
799
  "kind": "class",
792
800
  "description": "Buttons are used throughout the Skedulo platform to enable\nfunctionality such as confirming actions, filtering, opening dialogs, adding or deleting\nselections, and progressing through processes.",
@@ -899,6 +907,17 @@
899
907
  "description": "Sets a link href when using an anchor element",
900
908
  "attribute": "href"
901
909
  },
910
+ {
911
+ "kind": "field",
912
+ "name": "type",
913
+ "type": {
914
+ "text": "HtmlButtonType | undefined"
915
+ },
916
+ "default": "'button'",
917
+ "description": "Adds the type attribute to the button",
918
+ "attribute": "type",
919
+ "reflects": true
920
+ },
902
921
  {
903
922
  "kind": "field",
904
923
  "name": "target",
@@ -1056,6 +1075,15 @@
1056
1075
  "description": "Sets a link href when using an anchor element",
1057
1076
  "fieldName": "href"
1058
1077
  },
1078
+ {
1079
+ "name": "type",
1080
+ "type": {
1081
+ "text": "HtmlButtonType | undefined"
1082
+ },
1083
+ "default": "'button'",
1084
+ "description": "Adds the type attribute to the button",
1085
+ "fieldName": "type"
1086
+ },
1059
1087
  {
1060
1088
  "name": "target",
1061
1089
  "type": {
@@ -1155,6 +1183,14 @@
1155
1183
  "module": "src/components/button.ts"
1156
1184
  }
1157
1185
  },
1186
+ {
1187
+ "kind": "js",
1188
+ "name": "htmlButtonTypes",
1189
+ "declaration": {
1190
+ "name": "htmlButtonTypes",
1191
+ "module": "src/components/button.ts"
1192
+ }
1193
+ },
1158
1194
  {
1159
1195
  "kind": "js",
1160
1196
  "name": "Button",
@@ -2007,6 +2043,21 @@
2007
2043
  "module": "src/components/button.ts"
2008
2044
  }
2009
2045
  },
2046
+ {
2047
+ "kind": "field",
2048
+ "name": "type",
2049
+ "type": {
2050
+ "text": "HtmlButtonType | undefined"
2051
+ },
2052
+ "default": "'button'",
2053
+ "description": "Adds the type attribute to the button",
2054
+ "attribute": "type",
2055
+ "reflects": true,
2056
+ "inheritedFrom": {
2057
+ "name": "Button",
2058
+ "module": "src/components/button.ts"
2059
+ }
2060
+ },
2010
2061
  {
2011
2062
  "kind": "field",
2012
2063
  "name": "target",
@@ -2247,6 +2298,19 @@
2247
2298
  "module": "src/components/button.ts"
2248
2299
  }
2249
2300
  },
2301
+ {
2302
+ "name": "type",
2303
+ "type": {
2304
+ "text": "HtmlButtonType | undefined"
2305
+ },
2306
+ "default": "'button'",
2307
+ "description": "Adds the type attribute to the button",
2308
+ "fieldName": "type",
2309
+ "inheritedFrom": {
2310
+ "name": "Button",
2311
+ "module": "src/components/button.ts"
2312
+ }
2313
+ },
2250
2314
  {
2251
2315
  "name": "target",
2252
2316
  "type": {
@@ -3184,6 +3248,19 @@
3184
3248
  "module": "src/components/button.ts"
3185
3249
  }
3186
3250
  },
3251
+ {
3252
+ "name": "type",
3253
+ "type": {
3254
+ "text": "HtmlButtonType | undefined"
3255
+ },
3256
+ "default": "'button'",
3257
+ "description": "Adds the type attribute to the button",
3258
+ "fieldName": "type",
3259
+ "inheritedFrom": {
3260
+ "name": "Button",
3261
+ "module": "src/components/button.ts"
3262
+ }
3263
+ },
3187
3264
  {
3188
3265
  "name": "target",
3189
3266
  "type": {
@@ -3352,6 +3429,21 @@
3352
3429
  "module": "src/components/button.ts"
3353
3430
  }
3354
3431
  },
3432
+ {
3433
+ "kind": "field",
3434
+ "name": "type",
3435
+ "type": {
3436
+ "text": "HtmlButtonType | undefined"
3437
+ },
3438
+ "default": "'button'",
3439
+ "description": "Adds the type attribute to the button",
3440
+ "attribute": "type",
3441
+ "reflects": true,
3442
+ "inheritedFrom": {
3443
+ "name": "Button",
3444
+ "module": "src/components/button.ts"
3445
+ }
3446
+ },
3355
3447
  {
3356
3448
  "kind": "field",
3357
3449
  "name": "target",
@@ -21406,6 +21498,14 @@
21406
21498
  "name": "*",
21407
21499
  "package": "./labeled-input"
21408
21500
  }
21501
+ },
21502
+ {
21503
+ "kind": "js",
21504
+ "name": "*",
21505
+ "declaration": {
21506
+ "name": "*",
21507
+ "package": "./toggle-switch"
21508
+ }
21409
21509
  }
21410
21510
  ]
21411
21511
  },
@@ -29850,6 +29950,387 @@
29850
29950
  }
29851
29951
  ]
29852
29952
  },
29953
+ {
29954
+ "kind": "javascript-module",
29955
+ "path": "src/components/form-elements/toggle-switch.ts",
29956
+ "declarations": [
29957
+ {
29958
+ "kind": "variable",
29959
+ "name": "TOGGLE_SWITCH"
29960
+ },
29961
+ {
29962
+ "kind": "class",
29963
+ "description": "ToggleSwitch component.",
29964
+ "name": "ToggleSwitch",
29965
+ "members": [
29966
+ {
29967
+ "kind": "field",
29968
+ "name": "checked",
29969
+ "type": {
29970
+ "text": "boolean"
29971
+ },
29972
+ "default": "false",
29973
+ "description": "Puts the toggle into checked state",
29974
+ "attribute": "checked",
29975
+ "reflects": true
29976
+ },
29977
+ {
29978
+ "kind": "field",
29979
+ "name": "disabled",
29980
+ "type": {
29981
+ "text": "boolean"
29982
+ },
29983
+ "default": "false",
29984
+ "description": "Disables the input field",
29985
+ "attribute": "disabled",
29986
+ "reflects": true,
29987
+ "inheritedFrom": {
29988
+ "name": "InputBase",
29989
+ "module": "src/components/form-elements/input-base.ts"
29990
+ }
29991
+ },
29992
+ {
29993
+ "kind": "field",
29994
+ "name": "leftLabel",
29995
+ "type": {
29996
+ "text": "boolean"
29997
+ },
29998
+ "default": "false",
29999
+ "description": "Puts the label to the left of the toggle",
30000
+ "attribute": "left-label",
30001
+ "reflects": true
30002
+ },
30003
+ {
30004
+ "kind": "field",
30005
+ "name": "value",
30006
+ "type": {
30007
+ "text": "ValueType | undefined"
30008
+ },
30009
+ "description": "Set the value to be associated with the toggle, if needed. Native\ntoggle input values always default to \"on\".",
30010
+ "attribute": "value",
30011
+ "default": "'on'",
30012
+ "inheritedFrom": {
30013
+ "name": "InputBase",
30014
+ "module": "src/components/form-elements/input-base.ts"
30015
+ }
30016
+ },
30017
+ {
30018
+ "kind": "field",
30019
+ "name": "switchOffLabel",
30020
+ "type": {
30021
+ "text": "string"
30022
+ },
30023
+ "default": "''",
30024
+ "description": "Inner label of the toggle switch when it is off.",
30025
+ "attribute": "switchOffLabel"
30026
+ },
30027
+ {
30028
+ "kind": "field",
30029
+ "name": "switchOnLabel",
30030
+ "type": {
30031
+ "text": "string"
30032
+ },
30033
+ "default": "''",
30034
+ "description": "Inner label of the toggle switch when it is on.",
30035
+ "attribute": "switchOnLabel"
30036
+ },
30037
+ {
30038
+ "kind": "field",
30039
+ "name": "label",
30040
+ "type": {
30041
+ "text": "string"
30042
+ },
30043
+ "default": "''",
30044
+ "description": "Label of the toggle switch.",
30045
+ "attribute": "label",
30046
+ "reflects": true
30047
+ },
30048
+ {
30049
+ "kind": "method",
30050
+ "name": "onInput",
30051
+ "parameters": [
30052
+ {
30053
+ "name": "e",
30054
+ "type": {
30055
+ "text": "{ target: { value: ValueType } }"
30056
+ }
30057
+ }
30058
+ ],
30059
+ "inheritedFrom": {
30060
+ "name": "InputBase",
30061
+ "module": "src/components/form-elements/input-base.ts"
30062
+ }
30063
+ },
30064
+ {
30065
+ "kind": "method",
30066
+ "name": "handleKeyPress",
30067
+ "parameters": [
30068
+ {
30069
+ "name": "e",
30070
+ "type": {
30071
+ "text": "KeyboardEvent"
30072
+ }
30073
+ }
30074
+ ]
30075
+ },
30076
+ {
30077
+ "kind": "field",
30078
+ "name": "required",
30079
+ "type": {
30080
+ "text": "boolean"
30081
+ },
30082
+ "default": "false",
30083
+ "description": "Indicates that the input requires a value",
30084
+ "attribute": "required",
30085
+ "reflects": true,
30086
+ "inheritedFrom": {
30087
+ "name": "InputBase",
30088
+ "module": "src/components/form-elements/input-base.ts"
30089
+ }
30090
+ },
30091
+ {
30092
+ "kind": "field",
30093
+ "name": "invalid",
30094
+ "type": {
30095
+ "text": "boolean"
30096
+ },
30097
+ "default": "false",
30098
+ "description": "Makes the input invalid",
30099
+ "attribute": "invalid",
30100
+ "reflects": true,
30101
+ "inheritedFrom": {
30102
+ "name": "InputBase",
30103
+ "module": "src/components/form-elements/input-base.ts"
30104
+ }
30105
+ },
30106
+ {
30107
+ "kind": "field",
30108
+ "name": "name",
30109
+ "type": {
30110
+ "text": "string"
30111
+ },
30112
+ "default": "''",
30113
+ "description": "Sets the name attribute",
30114
+ "attribute": "name",
30115
+ "inheritedFrom": {
30116
+ "name": "InputBase",
30117
+ "module": "src/components/form-elements/input-base.ts"
30118
+ }
30119
+ },
30120
+ {
30121
+ "kind": "field",
30122
+ "name": "id",
30123
+ "type": {
30124
+ "text": "string"
30125
+ },
30126
+ "default": "'input'",
30127
+ "description": "Sets the id of the input",
30128
+ "attribute": "id",
30129
+ "inheritedFrom": {
30130
+ "name": "InputBase",
30131
+ "module": "src/components/form-elements/input-base.ts"
30132
+ }
30133
+ },
30134
+ {
30135
+ "kind": "method",
30136
+ "name": "dispatchChange",
30137
+ "description": "Dispatches a change event",
30138
+ "inheritedFrom": {
30139
+ "name": "InputBase",
30140
+ "module": "src/components/form-elements/input-base.ts"
30141
+ }
30142
+ },
30143
+ {
30144
+ "kind": "method",
30145
+ "name": "createProxyInput",
30146
+ "description": "Creates a proxy input element, used for easily accessing the field value outside of the shadow dom",
30147
+ "inheritedFrom": {
30148
+ "name": "InputBase",
30149
+ "module": "src/components/form-elements/input-base.ts"
30150
+ }
30151
+ },
30152
+ {
30153
+ "kind": "method",
30154
+ "name": "updateProxyInput",
30155
+ "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.",
30156
+ "inheritedFrom": {
30157
+ "name": "InputBase",
30158
+ "module": "src/components/form-elements/input-base.ts"
30159
+ }
30160
+ }
30161
+ ],
30162
+ "events": [
30163
+ {
30164
+ "name": "brz-input-change",
30165
+ "type": {
30166
+ "text": "InputChangeEvent"
30167
+ },
30168
+ "description": "Fires when the input value has changed, and carries the new value.",
30169
+ "inheritedFrom": {
30170
+ "name": "InputBase",
30171
+ "module": "src/components/form-elements/input-base.ts"
30172
+ }
30173
+ }
30174
+ ],
30175
+ "attributes": [
30176
+ {
30177
+ "name": "checked",
30178
+ "type": {
30179
+ "text": "boolean"
30180
+ },
30181
+ "default": "false",
30182
+ "description": "Puts the toggle into checked state",
30183
+ "fieldName": "checked"
30184
+ },
30185
+ {
30186
+ "name": "disabled",
30187
+ "type": {
30188
+ "text": "boolean"
30189
+ },
30190
+ "default": "false",
30191
+ "description": "Disables the input field",
30192
+ "fieldName": "disabled",
30193
+ "inheritedFrom": {
30194
+ "name": "InputBase",
30195
+ "module": "src/components/form-elements/input-base.ts"
30196
+ }
30197
+ },
30198
+ {
30199
+ "name": "left-label",
30200
+ "type": {
30201
+ "text": "boolean"
30202
+ },
30203
+ "default": "false",
30204
+ "description": "Puts the label to the left of the toggle",
30205
+ "fieldName": "leftLabel"
30206
+ },
30207
+ {
30208
+ "name": "value",
30209
+ "type": {
30210
+ "text": "ValueType | undefined"
30211
+ },
30212
+ "description": "Set the value to be associated with the toggle, if needed. Native\ntoggle input values always default to \"on\".",
30213
+ "fieldName": "value",
30214
+ "default": "'on'",
30215
+ "inheritedFrom": {
30216
+ "name": "InputBase",
30217
+ "module": "src/components/form-elements/input-base.ts"
30218
+ }
30219
+ },
30220
+ {
30221
+ "name": "switchOffLabel",
30222
+ "type": {
30223
+ "text": "string"
30224
+ },
30225
+ "default": "''",
30226
+ "description": "Inner label of the toggle switch when it is off.",
30227
+ "fieldName": "switchOffLabel"
30228
+ },
30229
+ {
30230
+ "name": "switchOnLabel",
30231
+ "type": {
30232
+ "text": "string"
30233
+ },
30234
+ "default": "''",
30235
+ "description": "Inner label of the toggle switch when it is on.",
30236
+ "fieldName": "switchOnLabel"
30237
+ },
30238
+ {
30239
+ "name": "label",
30240
+ "type": {
30241
+ "text": "string"
30242
+ },
30243
+ "default": "''",
30244
+ "description": "Label of the toggle switch.",
30245
+ "fieldName": "label"
30246
+ },
30247
+ {
30248
+ "name": "required",
30249
+ "type": {
30250
+ "text": "boolean"
30251
+ },
30252
+ "default": "false",
30253
+ "description": "Indicates that the input requires a value",
30254
+ "fieldName": "required",
30255
+ "inheritedFrom": {
30256
+ "name": "InputBase",
30257
+ "module": "src/components/form-elements/input-base.ts"
30258
+ }
30259
+ },
30260
+ {
30261
+ "name": "invalid",
30262
+ "type": {
30263
+ "text": "boolean"
30264
+ },
30265
+ "default": "false",
30266
+ "description": "Makes the input invalid",
30267
+ "fieldName": "invalid",
30268
+ "inheritedFrom": {
30269
+ "name": "InputBase",
30270
+ "module": "src/components/form-elements/input-base.ts"
30271
+ }
30272
+ },
30273
+ {
30274
+ "name": "name",
30275
+ "type": {
30276
+ "text": "string"
30277
+ },
30278
+ "default": "''",
30279
+ "description": "Sets the name attribute",
30280
+ "fieldName": "name",
30281
+ "inheritedFrom": {
30282
+ "name": "InputBase",
30283
+ "module": "src/components/form-elements/input-base.ts"
30284
+ }
30285
+ },
30286
+ {
30287
+ "name": "id",
30288
+ "type": {
30289
+ "text": "string"
30290
+ },
30291
+ "default": "'input'",
30292
+ "description": "Sets the id of the input",
30293
+ "fieldName": "id",
30294
+ "inheritedFrom": {
30295
+ "name": "InputBase",
30296
+ "module": "src/components/form-elements/input-base.ts"
30297
+ }
30298
+ }
30299
+ ],
30300
+ "superclass": {
30301
+ "name": "InputBase",
30302
+ "module": "/src/components/form-elements/input-base"
30303
+ },
30304
+ "tagName": "brz-toggle-switch",
30305
+ "customElement": true
30306
+ }
30307
+ ],
30308
+ "exports": [
30309
+ {
30310
+ "kind": "js",
30311
+ "name": "TOGGLE_SWITCH",
30312
+ "declaration": {
30313
+ "name": "TOGGLE_SWITCH",
30314
+ "module": "src/components/form-elements/toggle-switch.ts"
30315
+ }
30316
+ },
30317
+ {
30318
+ "kind": "js",
30319
+ "name": "ToggleSwitch",
30320
+ "declaration": {
30321
+ "name": "ToggleSwitch",
30322
+ "module": "src/components/form-elements/toggle-switch.ts"
30323
+ }
30324
+ },
30325
+ {
30326
+ "kind": "custom-element-definition",
30327
+ "declaration": {
30328
+ "name": "ToggleSwitch",
30329
+ "module": "src/components/form-elements/toggle-switch.ts"
30330
+ }
30331
+ }
30332
+ ]
30333
+ },
29853
30334
  {
29854
30335
  "kind": "javascript-module",
29855
30336
  "path": "src/components/icon/icon.ts",