@xy-planning-network/trees 0.2.61 → 0.2.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/trees.esm.js +73 -75
- package/dist/trees.min.js +2 -2
- package/dist/trees.ssr.js +83 -83
- package/package.json +1 -1
- package/src/lib-components/forms/{Switch.vue → Toggle.vue} +4 -8
- package/trees.d.ts +1 -1
package/dist/trees.esm.js
CHANGED
|
@@ -9948,61 +9948,14 @@ function render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9948
9948
|
|
|
9949
9949
|
Steps.render = render$9;
|
|
9950
9950
|
|
|
9951
|
-
var _dec$8, _dec2$8, _class$8, _class2$8, _descriptor$8;
|
|
9952
|
-
let
|
|
9953
|
-
name: "Switch",
|
|
9954
|
-
components: {
|
|
9955
|
-
Switch
|
|
9956
|
-
}
|
|
9957
|
-
}), _dec2$8 = Prop({
|
|
9958
|
-
type: Boolean,
|
|
9959
|
-
required: false
|
|
9960
|
-
}), _dec$8(_class$8 = (_class2$8 = class TreesSwitch extends Vue {
|
|
9961
|
-
constructor(...args) {
|
|
9962
|
-
super(...args);
|
|
9963
|
-
|
|
9964
|
-
_initializerDefineProperty(this, "modelValue", _descriptor$8, this);
|
|
9965
|
-
}
|
|
9966
|
-
|
|
9967
|
-
}, (_descriptor$8 = _applyDecoratedDescriptor(_class2$8.prototype, "modelValue", [_dec2$8], {
|
|
9968
|
-
configurable: true,
|
|
9969
|
-
enumerable: true,
|
|
9970
|
-
writable: true,
|
|
9971
|
-
initializer: null
|
|
9972
|
-
})), _class2$8)) || _class$8);
|
|
9973
|
-
|
|
9974
|
-
const _hoisted_1$6 = /*#__PURE__*/createVNode("span", {
|
|
9975
|
-
class: "sr-only"
|
|
9976
|
-
}, "Use", -1);
|
|
9977
|
-
|
|
9978
|
-
function render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9979
|
-
const _component_Switch = resolveComponent("Switch", true);
|
|
9980
|
-
|
|
9981
|
-
return openBlock(), createBlock(_component_Switch, mergeProps({
|
|
9982
|
-
class: [_ctx.modelValue ? 'bg-blue-600' : 'bg-gray-200', 'relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500']
|
|
9983
|
-
}, { ..._ctx.$attrs,
|
|
9984
|
-
onChange: $event => {
|
|
9985
|
-
_ctx.$emit('update:modelValue', $event);
|
|
9986
|
-
}
|
|
9987
|
-
}), {
|
|
9988
|
-
default: withCtx(() => [_hoisted_1$6, createVNode("span", {
|
|
9989
|
-
"aria-hidden": "true",
|
|
9990
|
-
class: [_ctx.modelValue ? 'translate-x-5' : 'translate-x-0', 'pointer-events-none inline-block h-5 w-5 rounded-full bg-white shadow transform ring-0 transition ease-in-out duration-200']
|
|
9991
|
-
}, null, 2)]),
|
|
9992
|
-
_: 1
|
|
9993
|
-
}, 16, ["class"]);
|
|
9994
|
-
}
|
|
9995
|
-
|
|
9996
|
-
TreesSwitch.render = render$8;
|
|
9997
|
-
|
|
9998
|
-
var _dec$7, _dec2$7, _dec3$7, _dec4$7, _dec5$3, _dec6$1, _class$7, _class2$7, _descriptor$7, _descriptor2$7, _descriptor3$7;
|
|
9999
|
-
let Table = (_dec$7 = Options({
|
|
9951
|
+
var _dec$8, _dec2$8, _dec3$7, _dec4$7, _dec5$3, _dec6$1, _class$8, _class2$8, _descriptor$8, _descriptor2$7, _descriptor3$7;
|
|
9952
|
+
let Table = (_dec$8 = Options({
|
|
10000
9953
|
components: {
|
|
10001
9954
|
DateRangePicker,
|
|
10002
9955
|
Paginator
|
|
10003
9956
|
},
|
|
10004
9957
|
name: "Table"
|
|
10005
|
-
}), _dec2$
|
|
9958
|
+
}), _dec2$8 = Prop({
|
|
10006
9959
|
type: Boolean,
|
|
10007
9960
|
required: false,
|
|
10008
9961
|
default: false
|
|
@@ -10013,11 +9966,11 @@ let Table = (_dec$7 = Options({
|
|
|
10013
9966
|
}), _dec4$7 = Prop({
|
|
10014
9967
|
type: Object,
|
|
10015
9968
|
required: true
|
|
10016
|
-
}), _dec5$3 = Watch("tableData.refreshTrigger"), _dec6$1 = Watch("tableData.reloadTrigger"), _dec$
|
|
9969
|
+
}), _dec5$3 = Watch("tableData.refreshTrigger"), _dec6$1 = Watch("tableData.reloadTrigger"), _dec$8(_class$8 = (_class2$8 = class Table extends Vue {
|
|
10017
9970
|
constructor(...args) {
|
|
10018
9971
|
super(...args);
|
|
10019
9972
|
|
|
10020
|
-
_initializerDefineProperty(this, "clickable", _descriptor$
|
|
9973
|
+
_initializerDefineProperty(this, "clickable", _descriptor$8, this);
|
|
10021
9974
|
|
|
10022
9975
|
_initializerDefineProperty(this, "loader", _descriptor2$7, this);
|
|
10023
9976
|
|
|
@@ -10127,24 +10080,24 @@ let Table = (_dec$7 = Options({
|
|
|
10127
10080
|
return this.items.length ? true : false;
|
|
10128
10081
|
}
|
|
10129
10082
|
|
|
10130
|
-
}, (_descriptor$
|
|
10083
|
+
}, (_descriptor$8 = _applyDecoratedDescriptor(_class2$8.prototype, "clickable", [_dec2$8], {
|
|
10131
10084
|
configurable: true,
|
|
10132
10085
|
enumerable: true,
|
|
10133
10086
|
writable: true,
|
|
10134
10087
|
initializer: null
|
|
10135
|
-
}), _descriptor2$7 = _applyDecoratedDescriptor(_class2$
|
|
10088
|
+
}), _descriptor2$7 = _applyDecoratedDescriptor(_class2$8.prototype, "loader", [_dec3$7], {
|
|
10136
10089
|
configurable: true,
|
|
10137
10090
|
enumerable: true,
|
|
10138
10091
|
writable: true,
|
|
10139
10092
|
initializer: null
|
|
10140
|
-
}), _descriptor3$7 = _applyDecoratedDescriptor(_class2$
|
|
10093
|
+
}), _descriptor3$7 = _applyDecoratedDescriptor(_class2$8.prototype, "tableData", [_dec4$7], {
|
|
10141
10094
|
configurable: true,
|
|
10142
10095
|
enumerable: true,
|
|
10143
10096
|
writable: true,
|
|
10144
10097
|
initializer: null
|
|
10145
|
-
}), _applyDecoratedDescriptor(_class2$
|
|
10098
|
+
}), _applyDecoratedDescriptor(_class2$8.prototype, "onRefreshTrigger", [_dec5$3], Object.getOwnPropertyDescriptor(_class2$8.prototype, "onRefreshTrigger"), _class2$8.prototype), _applyDecoratedDescriptor(_class2$8.prototype, "onReloadTrigger", [_dec6$1], Object.getOwnPropertyDescriptor(_class2$8.prototype, "onReloadTrigger"), _class2$8.prototype)), _class2$8)) || _class$8);
|
|
10146
10099
|
|
|
10147
|
-
const _hoisted_1$
|
|
10100
|
+
const _hoisted_1$6 = {
|
|
10148
10101
|
class: "flex flex-col mb-4 space-y-4 lg:space-y-0 lg:flex-row lg:justify-between"
|
|
10149
10102
|
};
|
|
10150
10103
|
const _hoisted_2$5 = {
|
|
@@ -10236,12 +10189,12 @@ const _hoisted_16 = {
|
|
|
10236
10189
|
const _hoisted_17 = {
|
|
10237
10190
|
key: 0
|
|
10238
10191
|
};
|
|
10239
|
-
function render$
|
|
10192
|
+
function render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10240
10193
|
const _component_DateRangePicker = resolveComponent("DateRangePicker");
|
|
10241
10194
|
|
|
10242
10195
|
const _component_Paginator = resolveComponent("Paginator");
|
|
10243
10196
|
|
|
10244
|
-
return openBlock(), createBlock("div", null, [createVNode("div", _hoisted_1$
|
|
10197
|
+
return openBlock(), createBlock("div", null, [createVNode("div", _hoisted_1$6, [_ctx.tableData.search ? (openBlock(), createBlock("div", _hoisted_2$5, [_hoisted_3$2, createVNode("div", _hoisted_4, [_hoisted_5, withDirectives(createVNode("input", {
|
|
10245
10198
|
class: "pl-10",
|
|
10246
10199
|
type: "search",
|
|
10247
10200
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => _ctx.query = $event),
|
|
@@ -10293,12 +10246,12 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10293
10246
|
}, null, 8, ["modelValue"])) : createCommentVNode("", true)]);
|
|
10294
10247
|
}
|
|
10295
10248
|
|
|
10296
|
-
Table.render = render$
|
|
10249
|
+
Table.render = render$8;
|
|
10297
10250
|
|
|
10298
|
-
var _dec$
|
|
10299
|
-
let Tabs = (_dec$
|
|
10251
|
+
var _dec$7, _dec2$7, _dec3$6, _dec4$6, _dec5$2, _class$7, _class2$7, _descriptor$7, _descriptor2$6, _descriptor3$6;
|
|
10252
|
+
let Tabs = (_dec$7 = Options({
|
|
10300
10253
|
name: "Tabs"
|
|
10301
|
-
}), _dec2$
|
|
10254
|
+
}), _dec2$7 = Prop({
|
|
10302
10255
|
type: String,
|
|
10303
10256
|
required: true
|
|
10304
10257
|
}), _dec3$6 = Prop({
|
|
@@ -10307,11 +10260,11 @@ let Tabs = (_dec$6 = Options({
|
|
|
10307
10260
|
}), _dec4$6 = Prop({
|
|
10308
10261
|
type: Array,
|
|
10309
10262
|
required: true
|
|
10310
|
-
}), _dec5$2 = Emit("update:modelValue"), _dec$
|
|
10263
|
+
}), _dec5$2 = Emit("update:modelValue"), _dec$7(_class$7 = (_class2$7 = class Tabs extends Vue {
|
|
10311
10264
|
constructor(...args) {
|
|
10312
10265
|
super(...args);
|
|
10313
10266
|
|
|
10314
|
-
_initializerDefineProperty(this, "modelValue", _descriptor$
|
|
10267
|
+
_initializerDefineProperty(this, "modelValue", _descriptor$7, this);
|
|
10315
10268
|
|
|
10316
10269
|
_initializerDefineProperty(this, "pillDesign", _descriptor2$6, this);
|
|
10317
10270
|
|
|
@@ -10353,24 +10306,24 @@ let Tabs = (_dec$6 = Options({
|
|
|
10353
10306
|
return !this.pillDesign;
|
|
10354
10307
|
}
|
|
10355
10308
|
|
|
10356
|
-
}, (_descriptor$
|
|
10309
|
+
}, (_descriptor$7 = _applyDecoratedDescriptor(_class2$7.prototype, "modelValue", [_dec2$7], {
|
|
10357
10310
|
configurable: true,
|
|
10358
10311
|
enumerable: true,
|
|
10359
10312
|
writable: true,
|
|
10360
10313
|
initializer: null
|
|
10361
|
-
}), _descriptor2$6 = _applyDecoratedDescriptor(_class2$
|
|
10314
|
+
}), _descriptor2$6 = _applyDecoratedDescriptor(_class2$7.prototype, "pillDesign", [_dec3$6], {
|
|
10362
10315
|
configurable: true,
|
|
10363
10316
|
enumerable: true,
|
|
10364
10317
|
writable: true,
|
|
10365
10318
|
initializer: null
|
|
10366
|
-
}), _descriptor3$6 = _applyDecoratedDescriptor(_class2$
|
|
10319
|
+
}), _descriptor3$6 = _applyDecoratedDescriptor(_class2$7.prototype, "tabs", [_dec4$6], {
|
|
10367
10320
|
configurable: true,
|
|
10368
10321
|
enumerable: true,
|
|
10369
10322
|
writable: true,
|
|
10370
10323
|
initializer: null
|
|
10371
|
-
}), _applyDecoratedDescriptor(_class2$
|
|
10324
|
+
}), _applyDecoratedDescriptor(_class2$7.prototype, "updateModelValue", [_dec5$2], Object.getOwnPropertyDescriptor(_class2$7.prototype, "updateModelValue"), _class2$7.prototype)), _class2$7)) || _class$7);
|
|
10372
10325
|
|
|
10373
|
-
const _hoisted_1$
|
|
10326
|
+
const _hoisted_1$5 = /*#__PURE__*/createVNode("label", {
|
|
10374
10327
|
for: "tabs",
|
|
10375
10328
|
class: "sr-only"
|
|
10376
10329
|
}, "Select a tab", -1);
|
|
@@ -10378,14 +10331,14 @@ const _hoisted_1$4 = /*#__PURE__*/createVNode("label", {
|
|
|
10378
10331
|
const _hoisted_2$4 = {
|
|
10379
10332
|
class: "hidden sm:block"
|
|
10380
10333
|
};
|
|
10381
|
-
function render$
|
|
10334
|
+
function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10382
10335
|
const _component_Select = resolveComponent("Select");
|
|
10383
10336
|
|
|
10384
10337
|
return openBlock(), createBlock("div", null, [createVNode("div", {
|
|
10385
10338
|
class: ["sm:hidden", {
|
|
10386
10339
|
'mb-4': _ctx.pillDesign
|
|
10387
10340
|
}]
|
|
10388
|
-
}, [_hoisted_1$
|
|
10341
|
+
}, [_hoisted_1$5, createVNode(_component_Select, {
|
|
10389
10342
|
name: "tabs",
|
|
10390
10343
|
modelValue: _ctx.modelValue,
|
|
10391
10344
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => _ctx.updateModelValue($event)),
|
|
@@ -10407,7 +10360,52 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10407
10360
|
}), 128))], 2)], 2)])]);
|
|
10408
10361
|
}
|
|
10409
10362
|
|
|
10410
|
-
Tabs.render = render$
|
|
10363
|
+
Tabs.render = render$7;
|
|
10364
|
+
|
|
10365
|
+
var _dec$6, _dec2$6, _class$6, _class2$6, _descriptor$6;
|
|
10366
|
+
let Toggle = (_dec$6 = Options({
|
|
10367
|
+
name: "Toggle",
|
|
10368
|
+
components: {
|
|
10369
|
+
Switch
|
|
10370
|
+
}
|
|
10371
|
+
}), _dec2$6 = Prop({
|
|
10372
|
+
type: Boolean,
|
|
10373
|
+
required: false
|
|
10374
|
+
}), _dec$6(_class$6 = (_class2$6 = class Toggle extends Vue {
|
|
10375
|
+
constructor(...args) {
|
|
10376
|
+
super(...args);
|
|
10377
|
+
|
|
10378
|
+
_initializerDefineProperty(this, "modelValue", _descriptor$6, this);
|
|
10379
|
+
}
|
|
10380
|
+
|
|
10381
|
+
}, (_descriptor$6 = _applyDecoratedDescriptor(_class2$6.prototype, "modelValue", [_dec2$6], {
|
|
10382
|
+
configurable: true,
|
|
10383
|
+
enumerable: true,
|
|
10384
|
+
writable: true,
|
|
10385
|
+
initializer: null
|
|
10386
|
+
})), _class2$6)) || _class$6);
|
|
10387
|
+
|
|
10388
|
+
const _hoisted_1$4 = /*#__PURE__*/createVNode("span", {
|
|
10389
|
+
class: "sr-only"
|
|
10390
|
+
}, "Use", -1);
|
|
10391
|
+
|
|
10392
|
+
function render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10393
|
+
const _component_Switch = resolveComponent("Switch");
|
|
10394
|
+
|
|
10395
|
+
return openBlock(), createBlock(_component_Switch, {
|
|
10396
|
+
class: [_ctx.modelValue ? 'bg-blue-600' : 'bg-gray-200', 'relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500'],
|
|
10397
|
+
modelValue: _ctx.modelValue,
|
|
10398
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => _ctx.$emit('update:modelValue', $event))
|
|
10399
|
+
}, {
|
|
10400
|
+
default: withCtx(() => [_hoisted_1$4, createVNode("span", {
|
|
10401
|
+
"aria-hidden": "true",
|
|
10402
|
+
class: [_ctx.modelValue ? 'translate-x-5' : 'translate-x-0', 'pointer-events-none inline-block h-5 w-5 rounded-full bg-white shadow transform ring-0 transition ease-in-out duration-200']
|
|
10403
|
+
}, null, 2)]),
|
|
10404
|
+
_: 1
|
|
10405
|
+
}, 8, ["class", "modelValue"]);
|
|
10406
|
+
}
|
|
10407
|
+
|
|
10408
|
+
Toggle.render = render$6;
|
|
10411
10409
|
|
|
10412
10410
|
var _dec$5, _dec2$5, _dec3$5, _dec4$5, _class$5, _class2$5, _descriptor$5, _descriptor2$5, _descriptor3$5;
|
|
10413
10411
|
let Checkbox = (_dec$5 = Options({
|
|
@@ -10973,9 +10971,9 @@ var components = /*#__PURE__*/Object.freeze({
|
|
|
10973
10971
|
Spinner: Spinner,
|
|
10974
10972
|
StaticTable: StaticTable,
|
|
10975
10973
|
Steps: Steps,
|
|
10976
|
-
Switch: TreesSwitch,
|
|
10977
10974
|
Table: Table,
|
|
10978
10975
|
Tabs: Tabs,
|
|
10976
|
+
Toggle: Toggle,
|
|
10979
10977
|
BaseInput: BaseInput,
|
|
10980
10978
|
Checkbox: Checkbox,
|
|
10981
10979
|
DateRangePicker: DateRangePicker,
|
|
@@ -10995,4 +10993,4 @@ const install = function installTrees(app) {
|
|
|
10995
10993
|
}; // Create module definition for Vue.use()
|
|
10996
10994
|
|
|
10997
10995
|
export default install;
|
|
10998
|
-
export { ActionsDropdown, BaseAPI, BaseInput, Cards, Checkbox, ContentModal, DateFilter, DateRangePicker, DetailList, DownloadCell, Flash, InputHelp, InputLabel, Modal, MultiCheckboxes, Paginator, Radio, Select, SidebarLayout, Slideover, Spinner, StackedLayout, StaticTable, Steps,
|
|
10996
|
+
export { ActionsDropdown, BaseAPI, BaseInput, Cards, Checkbox, ContentModal, DateFilter, DateRangePicker, DetailList, DownloadCell, Flash, InputHelp, InputLabel, Modal, MultiCheckboxes, Paginator, Radio, Select, SidebarLayout, Slideover, Spinner, StackedLayout, StaticTable, Steps, Table, Tabs, TextArea, Toggle, YesOrNoRadio };
|